remotion 4.0.208 → 4.0.210

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.
@@ -3,4 +3,4 @@
3
3
  * @see [Documentation](https://remotion.dev/docs/version)
4
4
  * @returns {string} The current version of the remotion package
5
5
  */
6
- export declare const VERSION = "4.0.208";
6
+ export declare const VERSION = "4.0.210";
@@ -7,4 +7,4 @@ exports.VERSION = void 0;
7
7
  * @see [Documentation](https://remotion.dev/docs/version)
8
8
  * @returns {string} The current version of the remotion package
9
9
  */
10
- exports.VERSION = '4.0.208';
10
+ exports.VERSION = '4.0.210';
@@ -57,7 +57,7 @@ var NativeLayersProvider = ({
57
57
  };
58
58
  }, [clipRegion, setClipRegion]);
59
59
  }
60
- return jsx(NativeLayersContext.Provider, {
60
+ return /* @__PURE__ */ jsx(NativeLayersContext.Provider, {
61
61
  value: context,
62
62
  children
63
63
  });
@@ -87,9 +87,9 @@ var Clipper = ({ height, width, x, y }) => {
87
87
  import React from "react";
88
88
 
89
89
  // src/get-remotion-environment.ts
90
- var getNodeEnvString = function() {
90
+ function getNodeEnvString() {
91
91
  return ["NOD", "E_EN", "V"].join("");
92
- };
92
+ }
93
93
  var getEnvString = () => {
94
94
  return ["e", "nv"].join("");
95
95
  };
@@ -140,7 +140,7 @@ var IsPlayerContext = createContext3(false);
140
140
  var IsPlayerContextProvider = ({
141
141
  children
142
142
  }) => {
143
- return jsx2(IsPlayerContext.Provider, {
143
+ return /* @__PURE__ */ jsx2(IsPlayerContext.Provider, {
144
144
  value: true,
145
145
  children
146
146
  });
@@ -155,7 +155,7 @@ function truthy(value) {
155
155
  }
156
156
 
157
157
  // src/version.ts
158
- var VERSION = "4.0.208";
158
+ var VERSION = "4.0.210";
159
159
 
160
160
  // src/multiple-versions-warning.ts
161
161
  var checkMultipleRemotionVersions = () => {
@@ -229,7 +229,7 @@ var AbsoluteFillRefForwarding = (props, ref) => {
229
229
  ...style
230
230
  };
231
231
  }, [style]);
232
- return jsx3("div", {
232
+ return /* @__PURE__ */ jsx3("div", {
233
233
  ref,
234
234
  style: actualStyle,
235
235
  ...other
@@ -285,9 +285,9 @@ var SequenceManagerProvider = ({ children }) => {
285
285
  setHidden
286
286
  };
287
287
  }, [hidden]);
288
- return jsx4(SequenceManager.Provider, {
288
+ return /* @__PURE__ */ jsx4(SequenceManager.Provider, {
289
289
  value: sequenceContext,
290
- children: jsx4(SequenceVisibilityToggleContext.Provider, {
290
+ children: /* @__PURE__ */ jsx4(SequenceVisibilityToggleContext.Provider, {
291
291
  value: hiddenContext,
292
292
  children
293
293
  })
@@ -419,7 +419,7 @@ var EditorPropsProvider = ({ children }) => {
419
419
  const ctx = useMemo4(() => {
420
420
  return { props, updateProps, resetUnsaved };
421
421
  }, [props, resetUnsaved, updateProps]);
422
- return jsx5(EditorPropsContext.Provider, {
422
+ return /* @__PURE__ */ jsx5(EditorPropsContext.Provider, {
423
423
  value: ctx,
424
424
  children
425
425
  });
@@ -1048,7 +1048,7 @@ var ResolveCompositionConfig = ({ children }) => {
1048
1048
  }, {})
1049
1049
  };
1050
1050
  }, [compositions, resolvedConfigs]);
1051
- return jsx6(ResolveCompositionContext.Provider, {
1051
+ return /* @__PURE__ */ jsx6(ResolveCompositionContext.Provider, {
1052
1052
  value: resolvedConfigsIncludingStaticOnes,
1053
1053
  children
1054
1054
  });
@@ -1215,7 +1215,7 @@ jsx as jsx7
1215
1215
  } from "react/jsx-runtime";
1216
1216
  var CanUseRemotionHooks = createContext10(false);
1217
1217
  var CanUseRemotionHooksProvider = ({ children }) => {
1218
- return jsx7(CanUseRemotionHooks.Provider, {
1218
+ return /* @__PURE__ */ jsx7(CanUseRemotionHooks.Provider, {
1219
1219
  value: true,
1220
1220
  children
1221
1221
  });
@@ -1345,7 +1345,7 @@ var Freeze = ({
1345
1345
  }
1346
1346
  };
1347
1347
  }, [isActive, timelineContext, videoConfig.id, frameToFreeze, relativeFrom]);
1348
- return jsx8(TimelineContext.Provider, {
1348
+ return /* @__PURE__ */ jsx8(TimelineContext.Provider, {
1349
1349
  value: timelineValue,
1350
1350
  children
1351
1351
  });
@@ -1481,9 +1481,9 @@ var RegularSequenceRefForwardingFunction = ({
1481
1481
  if (isSequenceHidden) {
1482
1482
  return null;
1483
1483
  }
1484
- return jsx9(SequenceContext.Provider, {
1484
+ return /* @__PURE__ */ jsx9(SequenceContext.Provider, {
1485
1485
  value: contextValue,
1486
- children: content === null ? null : other.layout === "none" ? content : jsx9(AbsoluteFill, {
1486
+ children: content === null ? null : other.layout === "none" ? content : /* @__PURE__ */ jsx9(AbsoluteFill, {
1487
1487
  ref,
1488
1488
  style: defaultStyle,
1489
1489
  className: other.className,
@@ -1506,10 +1506,10 @@ var PremountedSequenceRefForwardingFunction = (props, ref) => {
1506
1506
  pointerEvents: premountingActive ? "none" : passedStyle?.pointerEvents ?? undefined
1507
1507
  };
1508
1508
  }, [premountingActive, passedStyle]);
1509
- return jsx9(Freeze, {
1509
+ return /* @__PURE__ */ jsx9(Freeze, {
1510
1510
  frame: from,
1511
1511
  active: premountingActive,
1512
- children: jsx9(Sequence, {
1512
+ children: /* @__PURE__ */ jsx9(Sequence, {
1513
1513
  ref,
1514
1514
  from,
1515
1515
  style,
@@ -1522,12 +1522,12 @@ var PremountedSequenceRefForwardingFunction = (props, ref) => {
1522
1522
  var PremountedSequence = forwardRef2(PremountedSequenceRefForwardingFunction);
1523
1523
  var SequenceRefForwardingFunction = (props, ref) => {
1524
1524
  if (props.layout !== "none" && props.premountFor && !getRemotionEnvironment().isRendering) {
1525
- return jsx9(PremountedSequence, {
1525
+ return /* @__PURE__ */ jsx9(PremountedSequence, {
1526
1526
  ...props,
1527
1527
  ref
1528
1528
  });
1529
1529
  }
1530
- return jsx9(RegularSequence, {
1530
+ return /* @__PURE__ */ jsx9(RegularSequence, {
1531
1531
  ...props,
1532
1532
  ref
1533
1533
  });
@@ -1614,7 +1614,7 @@ var RenderAssetManagerProvider = ({ children }) => {
1614
1614
  renderAssets
1615
1615
  };
1616
1616
  }, [renderAssets, registerRenderAsset, unregisterRenderAsset]);
1617
- return jsx10(RenderAssetManager.Provider, {
1617
+ return /* @__PURE__ */ jsx10(RenderAssetManager.Provider, {
1618
1618
  value: contextValue,
1619
1619
  children
1620
1620
  });
@@ -1780,9 +1780,9 @@ var Loop = ({ durationInFrames, times = Infinity, children, name, ...props }) =>
1780
1780
  durationInFrames
1781
1781
  };
1782
1782
  }, [currentFrame, durationInFrames]);
1783
- return jsx11(LoopContext.Provider, {
1783
+ return /* @__PURE__ */ jsx11(LoopContext.Provider, {
1784
1784
  value: loopContext,
1785
- children: jsx11(Sequence, {
1785
+ children: /* @__PURE__ */ jsx11(Sequence, {
1786
1786
  durationInFrames,
1787
1787
  from,
1788
1788
  name: name ?? "<Loop>",
@@ -1821,7 +1821,7 @@ var PrefetchProvider = ({ children }) => {
1821
1821
  updaters = updaters.filter((u) => u !== updaterFunction);
1822
1822
  };
1823
1823
  }, []);
1824
- return jsx12(PreloadContext.Provider, {
1824
+ return /* @__PURE__ */ jsx12(PreloadContext.Provider, {
1825
1825
  value: _preloads,
1826
1826
  children
1827
1827
  });
@@ -2053,7 +2053,7 @@ var DurationsContextProvider = ({ children }) => {
2053
2053
  setDurations
2054
2054
  };
2055
2055
  }, [durations]);
2056
- return jsx13(DurationsContext.Provider, {
2056
+ return /* @__PURE__ */ jsx13(DurationsContext.Provider, {
2057
2057
  value,
2058
2058
  children
2059
2059
  });
@@ -2071,13 +2071,13 @@ useState as useState14
2071
2071
  } from "react";
2072
2072
 
2073
2073
  // src/random.ts
2074
- var mulberry32 = function(a) {
2074
+ function mulberry32(a) {
2075
2075
  let t = a + 1831565813;
2076
2076
  t = Math.imul(t ^ t >>> 15, t | 1);
2077
2077
  t ^= t + Math.imul(t ^ t >>> 7, t | 61);
2078
2078
  return ((t ^ t >>> 14) >>> 0) / 4294967296;
2079
- };
2080
- var hashCode = function(str) {
2079
+ }
2080
+ function hashCode(str) {
2081
2081
  let i = 0;
2082
2082
  let chr = 0;
2083
2083
  let hash = 0;
@@ -2087,7 +2087,7 @@ var hashCode = function(str) {
2087
2087
  hash |= 0;
2088
2088
  }
2089
2089
  return hash;
2090
- };
2090
+ }
2091
2091
  var random = (seed, dummy) => {
2092
2092
  if (dummy !== undefined) {
2093
2093
  throw new TypeError("random() takes only one argument");
@@ -2396,7 +2396,7 @@ var useBufferManager = () => {
2396
2396
  var BufferingContextReact = React11.createContext(null);
2397
2397
  var BufferingProvider = ({ children }) => {
2398
2398
  const bufferManager = useBufferManager();
2399
- return jsx14(BufferingContextReact.Provider, {
2399
+ return /* @__PURE__ */ jsx14(BufferingContextReact.Provider, {
2400
2400
  value: bufferManager,
2401
2401
  children
2402
2402
  });
@@ -2616,7 +2616,7 @@ var useRequestVideoCallbackTime = ({
2616
2616
  };
2617
2617
 
2618
2618
  // src/interpolate.ts
2619
- var interpolateFunction = function(input, inputRange, outputRange, options) {
2619
+ function interpolateFunction(input, inputRange, outputRange, options) {
2620
2620
  const { extrapolateLeft, extrapolateRight, easing } = options;
2621
2621
  let result = input;
2622
2622
  const [inputMin, inputMax] = inputRange;
@@ -2652,8 +2652,8 @@ var interpolateFunction = function(input, inputRange, outputRange, options) {
2652
2652
  result = easing(result);
2653
2653
  result = result * (outputMax - outputMin) + outputMin;
2654
2654
  return result;
2655
- };
2656
- var findRange = function(input, inputRange) {
2655
+ }
2656
+ function findRange(input, inputRange) {
2657
2657
  let i;
2658
2658
  for (i = 1;i < inputRange.length - 1; ++i) {
2659
2659
  if (inputRange[i] >= input) {
@@ -2661,15 +2661,15 @@ var findRange = function(input, inputRange) {
2661
2661
  }
2662
2662
  }
2663
2663
  return i - 1;
2664
- };
2665
- var checkValidInputRange = function(arr) {
2664
+ }
2665
+ function checkValidInputRange(arr) {
2666
2666
  for (let i = 1;i < arr.length; ++i) {
2667
2667
  if (!(arr[i] > arr[i - 1])) {
2668
2668
  throw new Error(`inputRange must be strictly monotonically increasing but got [${arr.join(",")}]`);
2669
2669
  }
2670
2670
  }
2671
- };
2672
- var checkInfiniteRange = function(name, arr) {
2671
+ }
2672
+ function checkInfiniteRange(name, arr) {
2673
2673
  if (arr.length < 2) {
2674
2674
  throw new Error(name + " must have at least 2 elements");
2675
2675
  }
@@ -2681,7 +2681,7 @@ var checkInfiniteRange = function(name, arr) {
2681
2681
  throw new Error(`${name} must contain only finite numbers, but got [${arr.join(",")}]`);
2682
2682
  }
2683
2683
  }
2684
- };
2684
+ }
2685
2685
  function interpolate(input, inputRange, outputRange, options) {
2686
2686
  if (typeof input === "undefined") {
2687
2687
  throw new Error("input can not be undefined");
@@ -3316,11 +3316,11 @@ var SharedAudioContextProvider = ({ children, numberOfAudioTags, component }) =>
3316
3316
  resetAudio();
3317
3317
  };
3318
3318
  }, [component, resetAudio]);
3319
- return jsxs(SharedAudioContext.Provider, {
3319
+ return /* @__PURE__ */ jsxs(SharedAudioContext.Provider, {
3320
3320
  value,
3321
3321
  children: [
3322
3322
  refs.map(({ id, ref }) => {
3323
- return jsx15("audio", {
3323
+ return /* @__PURE__ */ jsx15("audio", {
3324
3324
  ref,
3325
3325
  preload: "metadata",
3326
3326
  src: EMPTY_AUDIO
@@ -3491,7 +3491,7 @@ var AudioForDevelopmentForwardRefFunction = (props, ref) => {
3491
3491
  if (initialShouldPreMountAudioElements) {
3492
3492
  return null;
3493
3493
  }
3494
- return jsx16("audio", {
3494
+ return /* @__PURE__ */ jsx16("audio", {
3495
3495
  ref: audioRef,
3496
3496
  preload: "metadata",
3497
3497
  ...propsToPass
@@ -3702,7 +3702,7 @@ var AudioForRenderingRefForwardingFunction = (props, ref) => {
3702
3702
  if (!needsToRenderAudioTag) {
3703
3703
  return null;
3704
3704
  }
3705
- return jsx17("audio", {
3705
+ return /* @__PURE__ */ jsx17("audio", {
3706
3706
  ref: audioRef,
3707
3707
  ...nativeProps
3708
3708
  });
@@ -3748,7 +3748,7 @@ var AudioRefForwardingFunction = (props, ref) => {
3748
3748
  const durationFetched = durations[getAbsoluteSrc(preloadedSrc)] ?? durations[getAbsoluteSrc(props.src)];
3749
3749
  if (loop3 && durationFetched !== undefined) {
3750
3750
  const duration = durationFetched * fps;
3751
- return jsx18(Loop, {
3751
+ return /* @__PURE__ */ jsx18(Loop, {
3752
3752
  layout: "none",
3753
3753
  durationInFrames: calculateLoopDuration({
3754
3754
  endAt,
@@ -3756,7 +3756,7 @@ var AudioRefForwardingFunction = (props, ref) => {
3756
3756
  playbackRate: props.playbackRate ?? 1,
3757
3757
  startFrom
3758
3758
  }),
3759
- children: jsx18(Audio, {
3759
+ children: /* @__PURE__ */ jsx18(Audio, {
3760
3760
  ...propsOtherThanLoop,
3761
3761
  ref,
3762
3762
  _remotionInternalNativeLoopPassed: true
@@ -3767,13 +3767,13 @@ var AudioRefForwardingFunction = (props, ref) => {
3767
3767
  validateStartFromProps(startFrom, endAt);
3768
3768
  const startFromFrameNo = startFrom ?? 0;
3769
3769
  const endAtFrameNo = endAt ?? Infinity;
3770
- return jsx18(Sequence, {
3770
+ return /* @__PURE__ */ jsx18(Sequence, {
3771
3771
  layout: "none",
3772
3772
  from: 0 - startFromFrameNo,
3773
3773
  showInTimeline: false,
3774
3774
  durationInFrames: endAtFrameNo,
3775
3775
  name,
3776
- children: jsx18(Audio, {
3776
+ children: /* @__PURE__ */ jsx18(Audio, {
3777
3777
  _remotionInternalNeedsDurationCalculation: Boolean(loop3),
3778
3778
  pauseWhenBuffering: pauseWhenBuffering ?? false,
3779
3779
  ...otherProps,
@@ -3783,7 +3783,7 @@ var AudioRefForwardingFunction = (props, ref) => {
3783
3783
  }
3784
3784
  validateMediaProps(props, "Audio");
3785
3785
  if (environment.isRendering) {
3786
- return jsx18(AudioForRendering, {
3786
+ return /* @__PURE__ */ jsx18(AudioForRendering, {
3787
3787
  onDuration,
3788
3788
  ...props,
3789
3789
  ref,
@@ -3791,7 +3791,7 @@ var AudioRefForwardingFunction = (props, ref) => {
3791
3791
  _remotionInternalNeedsDurationCalculation: Boolean(loop3)
3792
3792
  });
3793
3793
  }
3794
- return jsx18(AudioForPreview, {
3794
+ return /* @__PURE__ */ jsx18(AudioForPreview, {
3795
3795
  _remotionInternalNativeLoopPassed: props._remotionInternalNativeLoopPassed ?? false,
3796
3796
  _remotionDebugSeeking: _remotionDebugSeeking ?? false,
3797
3797
  _remotionInternalStack: stack ?? null,
@@ -3859,7 +3859,7 @@ var Folder = ({
3859
3859
  unregisterFolder(name, parentName);
3860
3860
  };
3861
3861
  }, [name, parent.folderName, parentName, registerFolder, unregisterFolder]);
3862
- return jsx19(FolderContext.Provider, {
3862
+ return /* @__PURE__ */ jsx19(FolderContext.Provider, {
3863
3863
  value,
3864
3864
  children
3865
3865
  });
@@ -3884,11 +3884,11 @@ var container = {
3884
3884
  alignItems: "center"
3885
3885
  };
3886
3886
  var Loading = () => {
3887
- return jsxs2(AbsoluteFill, {
3887
+ return /* @__PURE__ */ jsxs2(AbsoluteFill, {
3888
3888
  style: container,
3889
3889
  id: "remotion-comp-loading",
3890
3890
  children: [
3891
- jsx20("style", {
3891
+ /* @__PURE__ */ jsx20("style", {
3892
3892
  type: "text/css",
3893
3893
  children: `
3894
3894
  @keyframes anim {
@@ -3905,12 +3905,12 @@ var Loading = () => {
3905
3905
  }
3906
3906
  `
3907
3907
  }),
3908
- jsx20("svg", {
3908
+ /* @__PURE__ */ jsx20("svg", {
3909
3909
  width: ICON_SIZE,
3910
3910
  height: ICON_SIZE,
3911
3911
  viewBox: "-100 -100 400 400",
3912
3912
  style: rotate,
3913
- children: jsx20("path", {
3913
+ children: /* @__PURE__ */ jsx20("path", {
3914
3914
  fill: "#555",
3915
3915
  stroke: "#555",
3916
3916
  strokeWidth: "100",
@@ -3918,7 +3918,7 @@ var Loading = () => {
3918
3918
  d: "M 2 172 a 196 100 0 0 0 195 5 A 196 240 0 0 0 100 2.259 A 196 240 0 0 0 2 172 z"
3919
3919
  })
3920
3920
  }),
3921
- jsxs2("p", {
3921
+ /* @__PURE__ */ jsxs2("p", {
3922
3922
  style: label,
3923
3923
  children: [
3924
3924
  "Resolving ",
@@ -4011,7 +4011,7 @@ var ClipComposition = ({ children }) => {
4011
4011
  clipPath: clipRegion && clipRegion !== "hide" ? `polygon(${clipRegion.x}px ${clipRegion.y}px, ${clipRegion.x}px ${clipRegion.height + clipRegion.y}px, ${clipRegion.width + clipRegion.x}px ${clipRegion.height + clipRegion.y}px, ${clipRegion.width + clipRegion.x}px ${clipRegion.y}px)` : undefined
4012
4012
  };
4013
4013
  }, [clipRegion]);
4014
- return jsx21(AbsoluteFill, {
4014
+ return /* @__PURE__ */ jsx21(AbsoluteFill, {
4015
4015
  style,
4016
4016
  children
4017
4017
  });
@@ -4092,11 +4092,11 @@ var Composition = ({
4092
4092
  if (resolved === null || resolved.type !== "success") {
4093
4093
  return null;
4094
4094
  }
4095
- return createPortal(jsx21(ClipComposition, {
4096
- children: jsx21(CanUseRemotionHooksProvider, {
4097
- children: jsx21(Suspense, {
4098
- fallback: jsx21(Loading, {}),
4099
- children: jsx21(Comp, {
4095
+ return createPortal(/* @__PURE__ */ jsx21(ClipComposition, {
4096
+ children: /* @__PURE__ */ jsx21(CanUseRemotionHooksProvider, {
4097
+ children: /* @__PURE__ */ jsx21(Suspense, {
4098
+ fallback: /* @__PURE__ */ jsx21(Loading, {}),
4099
+ children: /* @__PURE__ */ jsx21(Comp, {
4100
4100
  ...resolved.result.props ?? {}
4101
4101
  })
4102
4102
  })
@@ -4108,10 +4108,10 @@ var Composition = ({
4108
4108
  if (resolved === null || resolved.type !== "success") {
4109
4109
  return null;
4110
4110
  }
4111
- return createPortal(jsx21(CanUseRemotionHooksProvider, {
4112
- children: jsx21(Suspense, {
4113
- fallback: jsx21(Fallback, {}),
4114
- children: jsx21(Comp, {
4111
+ return createPortal(/* @__PURE__ */ jsx21(CanUseRemotionHooksProvider, {
4112
+ children: /* @__PURE__ */ jsx21(Suspense, {
4113
+ fallback: /* @__PURE__ */ jsx21(Fallback, {}),
4114
+ children: /* @__PURE__ */ jsx21(Comp, {
4115
4115
  ...resolved.result.props ?? {}
4116
4116
  })
4117
4117
  })
@@ -4219,12 +4219,12 @@ var CompositionManagerProvider = ({ children, numberOfAudioTags }) => {
4219
4219
  canvasContent,
4220
4220
  updateCompositionDefaultProps
4221
4221
  ]);
4222
- return jsx22(CompositionManager.Provider, {
4222
+ return /* @__PURE__ */ jsx22(CompositionManager.Provider, {
4223
4223
  value: contextValue,
4224
- children: jsx22(SequenceManagerProvider, {
4225
- children: jsx22(RenderAssetManagerProvider, {
4226
- children: jsx22(ResolveCompositionConfig, {
4227
- children: jsx22(SharedAudioContextProvider, {
4224
+ children: /* @__PURE__ */ jsx22(SequenceManagerProvider, {
4225
+ children: /* @__PURE__ */ jsx22(RenderAssetManagerProvider, {
4226
+ children: /* @__PURE__ */ jsx22(ResolveCompositionConfig, {
4227
+ children: /* @__PURE__ */ jsx22(SharedAudioContextProvider, {
4228
4228
  numberOfAudioTags,
4229
4229
  component: composition?.component ?? null,
4230
4230
  children
@@ -4235,22 +4235,22 @@ var CompositionManagerProvider = ({ children, numberOfAudioTags }) => {
4235
4235
  });
4236
4236
  };
4237
4237
  // src/bezier.ts
4238
- var a = function(aA1, aA2) {
4238
+ function a(aA1, aA2) {
4239
4239
  return 1 - 3 * aA2 + 3 * aA1;
4240
- };
4241
- var b = function(aA1, aA2) {
4240
+ }
4241
+ function b(aA1, aA2) {
4242
4242
  return 3 * aA2 - 6 * aA1;
4243
- };
4244
- var c = function(aA1) {
4243
+ }
4244
+ function c(aA1) {
4245
4245
  return 3 * aA1;
4246
- };
4247
- var calcBezier = function(aT, aA1, aA2) {
4246
+ }
4247
+ function calcBezier(aT, aA1, aA2) {
4248
4248
  return ((a(aA1, aA2) * aT + b(aA1, aA2)) * aT + c(aA1)) * aT;
4249
- };
4250
- var getSlope = function(aT, aA1, aA2) {
4249
+ }
4250
+ function getSlope(aT, aA1, aA2) {
4251
4251
  return 3 * a(aA1, aA2) * aT * aT + 2 * b(aA1, aA2) * aT + c(aA1);
4252
- };
4253
- var binarySubdivide = function({
4252
+ }
4253
+ function binarySubdivide({
4254
4254
  aX,
4255
4255
  _aA,
4256
4256
  _aB,
@@ -4272,8 +4272,8 @@ var binarySubdivide = function({
4272
4272
  }
4273
4273
  } while (Math.abs(currentX) > SUBDIVISION_PRECISION && ++i < SUBDIVISION_MAX_ITERATIONS);
4274
4274
  return currentT;
4275
- };
4276
- var newtonRaphsonIterate = function(aX, _aGuessT, mX1, mX2) {
4275
+ }
4276
+ function newtonRaphsonIterate(aX, _aGuessT, mX1, mX2) {
4277
4277
  let aGuessT = _aGuessT;
4278
4278
  for (let i = 0;i < NEWTON_ITERATIONS; ++i) {
4279
4279
  const currentSlope = getSlope(aGuessT, mX1, mX2);
@@ -4284,7 +4284,7 @@ var newtonRaphsonIterate = function(aX, _aGuessT, mX1, mX2) {
4284
4284
  aGuessT -= currentX / currentSlope;
4285
4285
  }
4286
4286
  return aGuessT;
4287
- };
4287
+ }
4288
4288
  function bezier(mX1, mY1, mX2, mY2) {
4289
4289
  if (!(mX1 >= 0 && mX1 <= 1 && mX2 >= 0 && mX2 <= 1)) {
4290
4290
  throw new Error("bezier x values must be in [0, 1] range");
@@ -4475,7 +4475,7 @@ var IFrameRefForwarding = ({
4475
4475
  console.error("Error loading iframe:", e, "Handle the event using the onError() prop to make this message disappear.");
4476
4476
  }
4477
4477
  }, [handle, onError]);
4478
- return jsx23("iframe", {
4478
+ return /* @__PURE__ */ jsx23("iframe", {
4479
4479
  ...props2,
4480
4480
  ref,
4481
4481
  onError: didGetError,
@@ -4492,9 +4492,9 @@ useImperativeHandle as useImperativeHandle6,
4492
4492
  useLayoutEffect as useLayoutEffect4,
4493
4493
  useRef as useRef11
4494
4494
  } from "react";
4495
- var exponentialBackoff = function(errorCount) {
4495
+ function exponentialBackoff(errorCount) {
4496
4496
  return 1000 * 2 ** (errorCount - 1);
4497
- };
4497
+ }
4498
4498
  import {
4499
4499
  jsx as jsx24
4500
4500
  } from "react/jsx-runtime";
@@ -4601,7 +4601,7 @@ var ImgRefForwarding = ({
4601
4601
  onImageFrame
4602
4602
  ]);
4603
4603
  }
4604
- return jsx24("img", {
4604
+ return /* @__PURE__ */ jsx24("img", {
4605
4605
  ...props2,
4606
4606
  ref: imageRef,
4607
4607
  src: actualSrc,
@@ -4777,19 +4777,19 @@ var RemotionRoot = ({ children, numberOfAudioTags }) => {
4777
4777
  }
4778
4778
  }
4779
4779
  }, []);
4780
- return jsx25(NonceContext.Provider, {
4780
+ return /* @__PURE__ */ jsx25(NonceContext.Provider, {
4781
4781
  value: nonceContext,
4782
- children: jsx25(TimelineContext.Provider, {
4782
+ children: /* @__PURE__ */ jsx25(TimelineContext.Provider, {
4783
4783
  value: timelineContextValue,
4784
- children: jsx25(SetTimelineContext.Provider, {
4784
+ children: /* @__PURE__ */ jsx25(SetTimelineContext.Provider, {
4785
4785
  value: setTimelineContextValue,
4786
- children: jsx25(EditorPropsProvider, {
4787
- children: jsx25(PrefetchProvider, {
4788
- children: jsx25(NativeLayersProvider, {
4789
- children: jsx25(CompositionManagerProvider, {
4786
+ children: /* @__PURE__ */ jsx25(EditorPropsProvider, {
4787
+ children: /* @__PURE__ */ jsx25(PrefetchProvider, {
4788
+ children: /* @__PURE__ */ jsx25(NativeLayersProvider, {
4789
+ children: /* @__PURE__ */ jsx25(CompositionManagerProvider, {
4790
4790
  numberOfAudioTags,
4791
- children: jsx25(DurationsContextProvider, {
4792
- children: jsx25(BufferingProvider, {
4791
+ children: /* @__PURE__ */ jsx25(DurationsContextProvider, {
4792
+ children: /* @__PURE__ */ jsx25(BufferingProvider, {
4793
4793
  children
4794
4794
  })
4795
4795
  })
@@ -4964,29 +4964,29 @@ jsx as jsx26
4964
4964
  } from "react/jsx-runtime";
4965
4965
  var RemotionContextProvider = (props2) => {
4966
4966
  const { children, contexts } = props2;
4967
- return jsx26(CanUseRemotionHooks.Provider, {
4967
+ return /* @__PURE__ */ jsx26(CanUseRemotionHooks.Provider, {
4968
4968
  value: contexts.canUseRemotionHooksContext,
4969
- children: jsx26(NonceContext.Provider, {
4969
+ children: /* @__PURE__ */ jsx26(NonceContext.Provider, {
4970
4970
  value: contexts.nonceContext,
4971
- children: jsx26(NativeLayersContext.Provider, {
4971
+ children: /* @__PURE__ */ jsx26(NativeLayersContext.Provider, {
4972
4972
  value: contexts.nativeLayersContext,
4973
- children: jsx26(PreloadContext.Provider, {
4973
+ children: /* @__PURE__ */ jsx26(PreloadContext.Provider, {
4974
4974
  value: contexts.preloadContext,
4975
- children: jsx26(CompositionManager.Provider, {
4975
+ children: /* @__PURE__ */ jsx26(CompositionManager.Provider, {
4976
4976
  value: contexts.compositionManagerCtx,
4977
- children: jsx26(SequenceManager.Provider, {
4977
+ children: /* @__PURE__ */ jsx26(SequenceManager.Provider, {
4978
4978
  value: contexts.sequenceManagerContext,
4979
- children: jsx26(RenderAssetManager.Provider, {
4979
+ children: /* @__PURE__ */ jsx26(RenderAssetManager.Provider, {
4980
4980
  value: contexts.renderAssetManagerContext,
4981
- children: jsx26(ResolveCompositionContext.Provider, {
4981
+ children: /* @__PURE__ */ jsx26(ResolveCompositionContext.Provider, {
4982
4982
  value: contexts.resolveCompositionContext,
4983
- children: jsx26(TimelineContext.Provider, {
4983
+ children: /* @__PURE__ */ jsx26(TimelineContext.Provider, {
4984
4984
  value: contexts.timelineContext,
4985
- children: jsx26(SetTimelineContext.Provider, {
4985
+ children: /* @__PURE__ */ jsx26(SetTimelineContext.Provider, {
4986
4986
  value: contexts.setTimelineContext,
4987
- children: jsx26(SequenceContext.Provider, {
4987
+ children: /* @__PURE__ */ jsx26(SequenceContext.Provider, {
4988
4988
  value: contexts.sequenceContext,
4989
- children: jsx26(BufferingContextReact.Provider, {
4989
+ children: /* @__PURE__ */ jsx26(BufferingContextReact.Provider, {
4990
4990
  value: contexts.bufferManagerContext,
4991
4991
  children
4992
4992
  })
@@ -5068,10 +5068,10 @@ var Internals = {
5068
5068
  validateRenderAsset
5069
5069
  };
5070
5070
  // src/interpolate-colors.ts
5071
- var call = function(...args) {
5071
+ function call(...args) {
5072
5072
  return "\\(\\s*(" + args.join(")\\s*,\\s*(") + ")\\s*\\)";
5073
- };
5074
- var getMatchers = function() {
5073
+ }
5074
+ function getMatchers() {
5075
5075
  const cachedMatchers = {
5076
5076
  rgb: undefined,
5077
5077
  rgba: undefined,
@@ -5094,8 +5094,8 @@ var getMatchers = function() {
5094
5094
  cachedMatchers.hex8 = /^#([0-9a-fA-F]{8})$/;
5095
5095
  }
5096
5096
  return cachedMatchers;
5097
- };
5098
- var hue2rgb = function(p, q, t) {
5097
+ }
5098
+ function hue2rgb(p, q, t) {
5099
5099
  if (t < 0) {
5100
5100
  t += 1;
5101
5101
  }
@@ -5112,16 +5112,16 @@ var hue2rgb = function(p, q, t) {
5112
5112
  return p + (q - p) * (2 / 3 - t) * 6;
5113
5113
  }
5114
5114
  return p;
5115
- };
5116
- var hslToRgb = function(h, s, l) {
5115
+ }
5116
+ function hslToRgb(h, s, l) {
5117
5117
  const q = l < 0.5 ? l * (1 + s) : l + s - l * s;
5118
5118
  const p = 2 * l - q;
5119
5119
  const r = hue2rgb(p, q, h + 1 / 3);
5120
5120
  const g = hue2rgb(p, q, h);
5121
5121
  const b2 = hue2rgb(p, q, h - 1 / 3);
5122
5122
  return Math.round(r * 255) << 24 | Math.round(g * 255) << 16 | Math.round(b2 * 255) << 8;
5123
- };
5124
- var parse255 = function(str) {
5123
+ }
5124
+ function parse255(str) {
5125
5125
  const int = Number.parseInt(str, 10);
5126
5126
  if (int < 0) {
5127
5127
  return 0;
@@ -5130,12 +5130,12 @@ var parse255 = function(str) {
5130
5130
  return 255;
5131
5131
  }
5132
5132
  return int;
5133
- };
5134
- var parse360 = function(str) {
5133
+ }
5134
+ function parse360(str) {
5135
5135
  const int = Number.parseFloat(str);
5136
5136
  return (int % 360 + 360) % 360 / 360;
5137
- };
5138
- var parse1 = function(str) {
5137
+ }
5138
+ function parse1(str) {
5139
5139
  const num = Number.parseFloat(str);
5140
5140
  if (num < 0) {
5141
5141
  return 0;
@@ -5144,8 +5144,8 @@ var parse1 = function(str) {
5144
5144
  return 255;
5145
5145
  }
5146
5146
  return Math.round(num * 255);
5147
- };
5148
- var parsePercentage = function(str) {
5147
+ }
5148
+ function parsePercentage(str) {
5149
5149
  const int = Number.parseFloat(str);
5150
5150
  if (int < 0) {
5151
5151
  return 0;
@@ -5154,8 +5154,8 @@ var parsePercentage = function(str) {
5154
5154
  return 1;
5155
5155
  }
5156
5156
  return int / 100;
5157
- };
5158
- var normalizeColor = function(color) {
5157
+ }
5158
+ function normalizeColor(color) {
5159
5159
  const matchers = getMatchers();
5160
5160
  let match;
5161
5161
  if (matchers.hex6) {
@@ -5202,7 +5202,7 @@ var normalizeColor = function(color) {
5202
5202
  }
5203
5203
  }
5204
5204
  throw new Error(`invalid color string ${color} provided`);
5205
- };
5205
+ }
5206
5206
  function processColor(color) {
5207
5207
  const normalizedColor = normalizeColor(color);
5208
5208
  return (normalizedColor << 24 | normalizedColor >>> 8) >>> 0;
@@ -5463,13 +5463,13 @@ jsx as jsx27
5463
5463
  } from "react/jsx-runtime";
5464
5464
  var IsInsideSeriesContext = createContext19(false);
5465
5465
  var IsInsideSeriesContainer = ({ children }) => {
5466
- return jsx27(IsInsideSeriesContext.Provider, {
5466
+ return /* @__PURE__ */ jsx27(IsInsideSeriesContext.Provider, {
5467
5467
  value: true,
5468
5468
  children
5469
5469
  });
5470
5470
  };
5471
5471
  var IsNotInsideSeriesProvider = ({ children }) => {
5472
- return jsx27(IsInsideSeriesContext.Provider, {
5472
+ return /* @__PURE__ */ jsx27(IsInsideSeriesContext.Provider, {
5473
5473
  value: false,
5474
5474
  children
5475
5475
  });
@@ -5487,7 +5487,7 @@ jsx as jsx28
5487
5487
  } from "react/jsx-runtime";
5488
5488
  var SeriesSequenceRefForwardingFunction = ({ children }, _ref) => {
5489
5489
  useRequireToBeInsideSeries();
5490
- return jsx28(IsNotInsideSeriesProvider, {
5490
+ return /* @__PURE__ */ jsx28(IsNotInsideSeriesProvider, {
5491
5491
  children
5492
5492
  });
5493
5493
  };
@@ -5537,7 +5537,7 @@ var Series = (props2) => {
5537
5537
  }
5538
5538
  const currentStartFrame = startFrame + offset;
5539
5539
  startFrame += durationInFramesProp + offset;
5540
- return jsx28(Sequence, {
5540
+ return /* @__PURE__ */ jsx28(Sequence, {
5541
5541
  name: name || "<Series.Sequence>",
5542
5542
  from: currentStartFrame,
5543
5543
  durationInFrames: durationInFramesProp,
@@ -5548,14 +5548,14 @@ var Series = (props2) => {
5548
5548
  });
5549
5549
  }, [props2.children]);
5550
5550
  if (ENABLE_V5_BREAKING_CHANGES) {
5551
- return jsx28(IsInsideSeriesContainer, {
5552
- children: jsx28(Sequence, {
5551
+ return /* @__PURE__ */ jsx28(IsInsideSeriesContainer, {
5552
+ children: /* @__PURE__ */ jsx28(Sequence, {
5553
5553
  ...props2,
5554
5554
  children: childrenValue
5555
5555
  })
5556
5556
  });
5557
5557
  }
5558
- return jsx28(IsInsideSeriesContainer, {
5558
+ return /* @__PURE__ */ jsx28(IsInsideSeriesContainer, {
5559
5559
  children: childrenValue
5560
5560
  });
5561
5561
  };
@@ -5581,7 +5581,7 @@ var validateSpringDuration = (dur) => {
5581
5581
  };
5582
5582
 
5583
5583
  // src/spring/spring-utils.ts
5584
- var advance = function({
5584
+ function advance({
5585
5585
  animation,
5586
5586
  now,
5587
5587
  config
@@ -5631,7 +5631,7 @@ var advance = function({
5631
5631
  };
5632
5632
  advanceCache[cacheKey] = animationNode;
5633
5633
  return animationNode;
5634
- };
5634
+ }
5635
5635
  function springCalculation({
5636
5636
  frame,
5637
5637
  fps,
@@ -6007,7 +6007,7 @@ var OffthreadVideoForRendering = ({
6007
6007
  return null;
6008
6008
  }
6009
6009
  continueRender(imageSrc.handle);
6010
- return jsx29(Img, {
6010
+ return /* @__PURE__ */ jsx29(Img, {
6011
6011
  src: imageSrc.src,
6012
6012
  className,
6013
6013
  delayRenderRetries,
@@ -6210,7 +6210,7 @@ var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
6210
6210
  };
6211
6211
  }, [isSequenceHidden, style]);
6212
6212
  const crossOriginValue = crossOrigin ?? (onVideoFrame ? "anonymous" : undefined);
6213
- return jsx30("video", {
6213
+ return /* @__PURE__ */ jsx30("video", {
6214
6214
  ref: videoRef,
6215
6215
  muted: muted || mediaMuted,
6216
6216
  playsInline: true,
@@ -6252,13 +6252,13 @@ var OffthreadVideo = (props2) => {
6252
6252
  validateStartFromProps(startFrom, endAt);
6253
6253
  const startFromFrameNo = startFrom ?? 0;
6254
6254
  const endAtFrameNo = endAt ?? Infinity;
6255
- return jsx31(Sequence, {
6255
+ return /* @__PURE__ */ jsx31(Sequence, {
6256
6256
  layout: "none",
6257
6257
  from: 0 - startFromFrameNo,
6258
6258
  showInTimeline: false,
6259
6259
  durationInFrames: endAtFrameNo,
6260
6260
  name,
6261
- children: jsx31(OffthreadVideo, {
6261
+ children: /* @__PURE__ */ jsx31(OffthreadVideo, {
6262
6262
  pauseWhenBuffering: pauseWhenBuffering ?? false,
6263
6263
  ...otherProps
6264
6264
  })
@@ -6266,7 +6266,7 @@ var OffthreadVideo = (props2) => {
6266
6266
  }
6267
6267
  validateMediaProps(props2, "Video");
6268
6268
  if (environment.isRendering) {
6269
- return jsx31(OffthreadVideoForRendering, {
6269
+ return /* @__PURE__ */ jsx31(OffthreadVideoForRendering, {
6270
6270
  ...otherProps
6271
6271
  });
6272
6272
  }
@@ -6279,7 +6279,7 @@ var OffthreadVideo = (props2) => {
6279
6279
  crossOrigin,
6280
6280
  ...withoutTransparent
6281
6281
  } = otherProps;
6282
- return jsx31(VideoForPreview, {
6282
+ return /* @__PURE__ */ jsx31(VideoForPreview, {
6283
6283
  _remotionInternalStack: stack ?? null,
6284
6284
  _remotionInternalNativeLoopPassed: false,
6285
6285
  _remotionDebugSeeking: _remotionDebugSeeking ?? false,
@@ -6580,7 +6580,7 @@ var VideoForRenderingForwardFunction = ({
6580
6580
  };
6581
6581
  }, [src, onDuration, delayRenderRetries, delayRenderTimeoutInMilliseconds]);
6582
6582
  }
6583
- return jsx32("video", {
6583
+ return /* @__PURE__ */ jsx32("video", {
6584
6584
  ref: videoRef,
6585
6585
  ...props2
6586
6586
  });
@@ -6623,7 +6623,7 @@ var VideoForwardingFunction = (props2, ref) => {
6623
6623
  const durationFetched = durations[getAbsoluteSrc(preloadedSrc)] ?? durations[getAbsoluteSrc(props2.src)];
6624
6624
  if (loop4 && durationFetched !== undefined) {
6625
6625
  const mediaDuration = durationFetched * fps;
6626
- return jsx33(Loop, {
6626
+ return /* @__PURE__ */ jsx33(Loop, {
6627
6627
  durationInFrames: calculateLoopDuration({
6628
6628
  endAt,
6629
6629
  mediaDuration,
@@ -6632,7 +6632,7 @@ var VideoForwardingFunction = (props2, ref) => {
6632
6632
  }),
6633
6633
  layout: "none",
6634
6634
  name,
6635
- children: jsx33(Video, {
6635
+ children: /* @__PURE__ */ jsx33(Video, {
6636
6636
  ...propsOtherThanLoop,
6637
6637
  ref,
6638
6638
  _remotionInternalNativeLoopPassed: true
@@ -6643,13 +6643,13 @@ var VideoForwardingFunction = (props2, ref) => {
6643
6643
  validateStartFromProps(startFrom, endAt);
6644
6644
  const startFromFrameNo = startFrom ?? 0;
6645
6645
  const endAtFrameNo = endAt ?? Infinity;
6646
- return jsx33(Sequence, {
6646
+ return /* @__PURE__ */ jsx33(Sequence, {
6647
6647
  layout: "none",
6648
6648
  from: 0 - startFromFrameNo,
6649
6649
  showInTimeline: false,
6650
6650
  durationInFrames: endAtFrameNo,
6651
6651
  name,
6652
- children: jsx33(Video, {
6652
+ children: /* @__PURE__ */ jsx33(Video, {
6653
6653
  pauseWhenBuffering: pauseWhenBuffering ?? false,
6654
6654
  ...otherProps,
6655
6655
  ref
@@ -6658,14 +6658,14 @@ var VideoForwardingFunction = (props2, ref) => {
6658
6658
  }
6659
6659
  validateMediaProps(props2, "Video");
6660
6660
  if (environment.isRendering) {
6661
- return jsx33(VideoForRendering, {
6661
+ return /* @__PURE__ */ jsx33(VideoForRendering, {
6662
6662
  onDuration,
6663
6663
  onVideoFrame: onVideoFrame ?? null,
6664
6664
  ...otherProps,
6665
6665
  ref
6666
6666
  });
6667
6667
  }
6668
- return jsx33(VideoForPreview, {
6668
+ return /* @__PURE__ */ jsx33(VideoForPreview, {
6669
6669
  onlyWarnForMediaSeekingError: false,
6670
6670
  ...otherProps,
6671
6671
  ref,
@@ -1,5 +1,5 @@
1
1
  // src/interpolate.ts
2
- var interpolateFunction = function(input, inputRange, outputRange, options) {
2
+ function interpolateFunction(input, inputRange, outputRange, options) {
3
3
  const { extrapolateLeft, extrapolateRight, easing } = options;
4
4
  let result = input;
5
5
  const [inputMin, inputMax] = inputRange;
@@ -35,8 +35,8 @@ var interpolateFunction = function(input, inputRange, outputRange, options) {
35
35
  result = easing(result);
36
36
  result = result * (outputMax - outputMin) + outputMin;
37
37
  return result;
38
- };
39
- var findRange = function(input, inputRange) {
38
+ }
39
+ function findRange(input, inputRange) {
40
40
  let i;
41
41
  for (i = 1;i < inputRange.length - 1; ++i) {
42
42
  if (inputRange[i] >= input) {
@@ -44,15 +44,15 @@ var findRange = function(input, inputRange) {
44
44
  }
45
45
  }
46
46
  return i - 1;
47
- };
48
- var checkValidInputRange = function(arr) {
47
+ }
48
+ function checkValidInputRange(arr) {
49
49
  for (let i = 1;i < arr.length; ++i) {
50
50
  if (!(arr[i] > arr[i - 1])) {
51
51
  throw new Error(`inputRange must be strictly monotonically increasing but got [${arr.join(",")}]`);
52
52
  }
53
53
  }
54
- };
55
- var checkInfiniteRange = function(name, arr) {
54
+ }
55
+ function checkInfiniteRange(name, arr) {
56
56
  if (arr.length < 2) {
57
57
  throw new Error(name + " must have at least 2 elements");
58
58
  }
@@ -64,7 +64,7 @@ var checkInfiniteRange = function(name, arr) {
64
64
  throw new Error(`${name} must contain only finite numbers, but got [${arr.join(",")}]`);
65
65
  }
66
66
  }
67
- };
67
+ }
68
68
  function interpolate(input, inputRange, outputRange, options) {
69
69
  if (typeof input === "undefined") {
70
70
  throw new Error("input can not be undefined");
@@ -101,13 +101,13 @@ function interpolate(input, inputRange, outputRange, options) {
101
101
  });
102
102
  }
103
103
  // src/random.ts
104
- var mulberry32 = function(a) {
104
+ function mulberry32(a) {
105
105
  let t = a + 1831565813;
106
106
  t = Math.imul(t ^ t >>> 15, t | 1);
107
107
  t ^= t + Math.imul(t ^ t >>> 7, t | 61);
108
108
  return ((t ^ t >>> 14) >>> 0) / 4294967296;
109
- };
110
- var hashCode = function(str) {
109
+ }
110
+ function hashCode(str) {
111
111
  let i = 0;
112
112
  let chr = 0;
113
113
  let hash = 0;
@@ -117,7 +117,7 @@ var hashCode = function(str) {
117
117
  hash |= 0;
118
118
  }
119
119
  return hash;
120
- };
120
+ }
121
121
  var random = (seed, dummy) => {
122
122
  if (dummy !== undefined) {
123
123
  throw new TypeError("random() takes only one argument");
@@ -284,10 +284,10 @@ var deserializeJSONWithCustomFields = (data) => {
284
284
  };
285
285
 
286
286
  // src/interpolate-colors.ts
287
- var call = function(...args) {
287
+ function call(...args) {
288
288
  return "\\(\\s*(" + args.join(")\\s*,\\s*(") + ")\\s*\\)";
289
- };
290
- var getMatchers = function() {
289
+ }
290
+ function getMatchers() {
291
291
  const cachedMatchers = {
292
292
  rgb: undefined,
293
293
  rgba: undefined,
@@ -310,8 +310,8 @@ var getMatchers = function() {
310
310
  cachedMatchers.hex8 = /^#([0-9a-fA-F]{8})$/;
311
311
  }
312
312
  return cachedMatchers;
313
- };
314
- var hue2rgb = function(p, q, t) {
313
+ }
314
+ function hue2rgb(p, q, t) {
315
315
  if (t < 0) {
316
316
  t += 1;
317
317
  }
@@ -328,16 +328,16 @@ var hue2rgb = function(p, q, t) {
328
328
  return p + (q - p) * (2 / 3 - t) * 6;
329
329
  }
330
330
  return p;
331
- };
332
- var hslToRgb = function(h, s, l) {
331
+ }
332
+ function hslToRgb(h, s, l) {
333
333
  const q = l < 0.5 ? l * (1 + s) : l + s - l * s;
334
334
  const p = 2 * l - q;
335
335
  const r = hue2rgb(p, q, h + 1 / 3);
336
336
  const g = hue2rgb(p, q, h);
337
337
  const b = hue2rgb(p, q, h - 1 / 3);
338
338
  return Math.round(r * 255) << 24 | Math.round(g * 255) << 16 | Math.round(b * 255) << 8;
339
- };
340
- var parse255 = function(str) {
339
+ }
340
+ function parse255(str) {
341
341
  const int = Number.parseInt(str, 10);
342
342
  if (int < 0) {
343
343
  return 0;
@@ -346,12 +346,12 @@ var parse255 = function(str) {
346
346
  return 255;
347
347
  }
348
348
  return int;
349
- };
350
- var parse360 = function(str) {
349
+ }
350
+ function parse360(str) {
351
351
  const int = Number.parseFloat(str);
352
352
  return (int % 360 + 360) % 360 / 360;
353
- };
354
- var parse1 = function(str) {
353
+ }
354
+ function parse1(str) {
355
355
  const num = Number.parseFloat(str);
356
356
  if (num < 0) {
357
357
  return 0;
@@ -360,8 +360,8 @@ var parse1 = function(str) {
360
360
  return 255;
361
361
  }
362
362
  return Math.round(num * 255);
363
- };
364
- var parsePercentage = function(str) {
363
+ }
364
+ function parsePercentage(str) {
365
365
  const int = Number.parseFloat(str);
366
366
  if (int < 0) {
367
367
  return 0;
@@ -370,8 +370,8 @@ var parsePercentage = function(str) {
370
370
  return 1;
371
371
  }
372
372
  return int / 100;
373
- };
374
- var normalizeColor = function(color) {
373
+ }
374
+ function normalizeColor(color) {
375
375
  const matchers = getMatchers();
376
376
  let match;
377
377
  if (matchers.hex6) {
@@ -418,7 +418,7 @@ var normalizeColor = function(color) {
418
418
  }
419
419
  }
420
420
  throw new Error(`invalid color string ${color} provided`);
421
- };
421
+ }
422
422
  function processColor(color) {
423
423
  const normalizedColor = normalizeColor(color);
424
424
  return (normalizedColor << 24 | normalizedColor >>> 8) >>> 0;
@@ -1,5 +1,5 @@
1
1
  // src/version.ts
2
- var VERSION = "4.0.208";
2
+ var VERSION = "4.0.210";
3
3
  export {
4
4
  VERSION
5
5
  };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/core"
4
4
  },
5
5
  "name": "remotion",
6
- "version": "4.0.208",
6
+ "version": "4.0.210",
7
7
  "description": "Make videos programmatically",
8
8
  "main": "dist/cjs/index.js",
9
9
  "types": "dist/cjs/index.d.ts",