@lalalic/markcut 2.1.0 → 2.2.1
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/package.json +3 -2
- package/{SKILL.md → skills/markcut/SKILL.md} +8 -2
- package/skills/markcut/docs/template.md +213 -0
- package/{templates → skills/markcut/docs/templates}/courseware/TEMPLATE.md +220 -10
- package/{templates → skills/markcut/docs/templates}/courseware/prompts/outline.md +5 -0
- package/{templates → skills/markcut/docs/templates}/courseware/prompts/scene.md +6 -0
- package/skills/markcut/docs/templates/deep-dive/TEMPLATE.md +355 -0
- package/skills/markcut/docs/templates/deep-dive/agents/researcher.md +69 -0
- package/skills/markcut/docs/templates/deep-dive/agents/reviewer.md +108 -0
- package/skills/markcut/docs/templates/deep-dive/prompts/fix.md +28 -0
- package/skills/markcut/docs/templates/deep-dive/prompts/outline.md +102 -0
- package/skills/markcut/docs/templates/deep-dive/prompts/script.md +64 -0
- package/skills/markcut/docs/templates/illustrated-book/TEMPLATE.md +360 -0
- package/skills/markcut/docs/templates/illustrated-book/agents/reviewer.md +115 -0
- package/skills/markcut/docs/templates/illustrated-book/prompts/fix.md +29 -0
- package/skills/markcut/docs/templates/illustrated-book/prompts/illustration.md +35 -0
- package/skills/markcut/docs/templates/illustrated-book/prompts/story.md +69 -0
- package/skills/markcut/docs/templates/short-film/TEMPLATE.md +387 -0
- package/skills/markcut/docs/templates/short-film/agents/reviewer.md +115 -0
- package/skills/markcut/docs/templates/short-film/prompts/fix.md +29 -0
- package/skills/markcut/docs/templates/short-film/prompts/screenplay.md +101 -0
- package/skills/markcut/docs/templates/short-film/prompts/storyboard.md +54 -0
- package/skills/markcut/docs/templates/short-video/TEMPLATE.md +302 -0
- package/skills/markcut/docs/templates/short-video/agents/reviewer.md +94 -0
- package/skills/markcut/docs/templates/short-video/prompts/fix.md +27 -0
- package/skills/markcut/docs/templates/short-video/prompts/script.md +65 -0
- package/skills/markcut/docs/templates/vlog/TEMPLATE.md +405 -0
- package/skills/markcut/docs/templates/vlog/agents/reviewer.md +89 -0
- package/skills/markcut/docs/templates/vlog/agents/story-writer.md +100 -0
- package/skills/markcut/docs/templates/vlog/prompts/bgm-select.md +38 -0
- package/skills/markcut/docs/templates/vlog/prompts/group-clips.md +93 -0
- package/skills/markcut/docs/templates/vlog/prompts/local-context.md +59 -0
- package/skills/markcut/docs/templates/vlog/prompts/outline.md +56 -0
- package/skills/markcut/docs/templates/vlog/prompts/review-fix.md +27 -0
- package/skills/markcut/docs/templates/vlog/prompts/storyboard.md +41 -0
- package/src/config.mjs +11 -3
- package/src/player/bundle/player.js +793 -545
- package/src/player/pipeline.mjs +1 -0
- package/src/player/server.mjs +3 -5
- /package/{docs → skills/markcut/docs}/edit-mode.md +0 -0
- /package/{docs → skills/markcut/docs}/json-descriptive.md +0 -0
- /package/{docs → skills/markcut/docs}/label-mode.md +0 -0
- /package/{docs → skills/markcut/docs}/markdown-descriptive.md +0 -0
- /package/{docs → skills/markcut/docs}/system-prompt-edit.md +0 -0
- /package/{templates → skills/markcut/docs/templates}/courseware/agents/reviewer.md +0 -0
- /package/{templates → skills/markcut/docs/templates}/courseware/prompts/fix.md +0 -0
|
@@ -522,9 +522,9 @@ var require_scheduler_production = __commonJS({
|
|
|
522
522
|
}
|
|
523
523
|
return first;
|
|
524
524
|
}
|
|
525
|
-
function compare(
|
|
526
|
-
var diff =
|
|
527
|
-
return 0 !== diff ? diff :
|
|
525
|
+
function compare(a3, b3) {
|
|
526
|
+
var diff = a3.sortIndex - b3.sortIndex;
|
|
527
|
+
return 0 !== diff ? diff : a3.id - b3.id;
|
|
528
528
|
}
|
|
529
529
|
exports.unstable_now = void 0;
|
|
530
530
|
if ("object" === typeof performance && "function" === typeof performance.now) {
|
|
@@ -910,8 +910,8 @@ var require_react_dom_production = __commonJS({
|
|
|
910
910
|
exports.requestFormReset = function(form) {
|
|
911
911
|
Internals2.d.r(form);
|
|
912
912
|
};
|
|
913
|
-
exports.unstable_batchedUpdates = function(fn,
|
|
914
|
-
return fn(
|
|
913
|
+
exports.unstable_batchedUpdates = function(fn, a3) {
|
|
914
|
+
return fn(a3);
|
|
915
915
|
};
|
|
916
916
|
exports.useFormState = function(action, initialState, permalink) {
|
|
917
917
|
return ReactSharedInternals.H.useFormState(action, initialState, permalink);
|
|
@@ -1006,55 +1006,55 @@ var require_react_dom_client_production = __commonJS({
|
|
|
1006
1006
|
if (null === alternate) throw Error(formatProdErrorMessage(188));
|
|
1007
1007
|
return alternate !== fiber ? null : fiber;
|
|
1008
1008
|
}
|
|
1009
|
-
for (var
|
|
1010
|
-
var parentA =
|
|
1009
|
+
for (var a3 = fiber, b3 = alternate; ; ) {
|
|
1010
|
+
var parentA = a3.return;
|
|
1011
1011
|
if (null === parentA) break;
|
|
1012
1012
|
var parentB = parentA.alternate;
|
|
1013
1013
|
if (null === parentB) {
|
|
1014
1014
|
b3 = parentA.return;
|
|
1015
1015
|
if (null !== b3) {
|
|
1016
|
-
|
|
1016
|
+
a3 = b3;
|
|
1017
1017
|
continue;
|
|
1018
1018
|
}
|
|
1019
1019
|
break;
|
|
1020
1020
|
}
|
|
1021
1021
|
if (parentA.child === parentB.child) {
|
|
1022
1022
|
for (parentB = parentA.child; parentB; ) {
|
|
1023
|
-
if (parentB ===
|
|
1023
|
+
if (parentB === a3) return assertIsMounted(parentA), fiber;
|
|
1024
1024
|
if (parentB === b3) return assertIsMounted(parentA), alternate;
|
|
1025
1025
|
parentB = parentB.sibling;
|
|
1026
1026
|
}
|
|
1027
1027
|
throw Error(formatProdErrorMessage(188));
|
|
1028
1028
|
}
|
|
1029
|
-
if (
|
|
1029
|
+
if (a3.return !== b3.return) a3 = parentA, b3 = parentB;
|
|
1030
1030
|
else {
|
|
1031
1031
|
for (var didFindChild = false, child$0 = parentA.child; child$0; ) {
|
|
1032
|
-
if (child$0 ===
|
|
1032
|
+
if (child$0 === a3) {
|
|
1033
1033
|
didFindChild = true;
|
|
1034
|
-
|
|
1034
|
+
a3 = parentA;
|
|
1035
1035
|
b3 = parentB;
|
|
1036
1036
|
break;
|
|
1037
1037
|
}
|
|
1038
1038
|
if (child$0 === b3) {
|
|
1039
1039
|
didFindChild = true;
|
|
1040
1040
|
b3 = parentA;
|
|
1041
|
-
|
|
1041
|
+
a3 = parentB;
|
|
1042
1042
|
break;
|
|
1043
1043
|
}
|
|
1044
1044
|
child$0 = child$0.sibling;
|
|
1045
1045
|
}
|
|
1046
1046
|
if (!didFindChild) {
|
|
1047
1047
|
for (child$0 = parentB.child; child$0; ) {
|
|
1048
|
-
if (child$0 ===
|
|
1048
|
+
if (child$0 === a3) {
|
|
1049
1049
|
didFindChild = true;
|
|
1050
|
-
|
|
1050
|
+
a3 = parentB;
|
|
1051
1051
|
b3 = parentA;
|
|
1052
1052
|
break;
|
|
1053
1053
|
}
|
|
1054
1054
|
if (child$0 === b3) {
|
|
1055
1055
|
didFindChild = true;
|
|
1056
1056
|
b3 = parentB;
|
|
1057
|
-
|
|
1057
|
+
a3 = parentA;
|
|
1058
1058
|
break;
|
|
1059
1059
|
}
|
|
1060
1060
|
child$0 = child$0.sibling;
|
|
@@ -1062,10 +1062,10 @@ var require_react_dom_client_production = __commonJS({
|
|
|
1062
1062
|
if (!didFindChild) throw Error(formatProdErrorMessage(189));
|
|
1063
1063
|
}
|
|
1064
1064
|
}
|
|
1065
|
-
if (
|
|
1065
|
+
if (a3.alternate !== b3) throw Error(formatProdErrorMessage(190));
|
|
1066
1066
|
}
|
|
1067
|
-
if (3 !==
|
|
1068
|
-
return
|
|
1067
|
+
if (3 !== a3.tag) throw Error(formatProdErrorMessage(188));
|
|
1068
|
+
return a3.stateNode.current === a3 ? fiber : alternate;
|
|
1069
1069
|
}
|
|
1070
1070
|
function findCurrentHostFiberImpl(node) {
|
|
1071
1071
|
var tag = node.tag;
|
|
@@ -2111,16 +2111,16 @@ var require_react_dom_client_production = __commonJS({
|
|
|
2111
2111
|
}
|
|
2112
2112
|
}
|
|
2113
2113
|
var isInsideEventHandler = false;
|
|
2114
|
-
function batchedUpdates$1(fn,
|
|
2115
|
-
if (isInsideEventHandler) return fn(
|
|
2114
|
+
function batchedUpdates$1(fn, a3, b3) {
|
|
2115
|
+
if (isInsideEventHandler) return fn(a3, b3);
|
|
2116
2116
|
isInsideEventHandler = true;
|
|
2117
2117
|
try {
|
|
2118
|
-
var JSCompiler_inline_result = fn(
|
|
2118
|
+
var JSCompiler_inline_result = fn(a3);
|
|
2119
2119
|
return JSCompiler_inline_result;
|
|
2120
2120
|
} finally {
|
|
2121
2121
|
if (isInsideEventHandler = false, null !== restoreTarget || null !== restoreQueue) {
|
|
2122
|
-
if (flushSyncWork$1(), restoreTarget && (
|
|
2123
|
-
for (
|
|
2122
|
+
if (flushSyncWork$1(), restoreTarget && (a3 = restoreTarget, fn = restoreQueue, restoreQueue = restoreTarget = null, restoreStateOfTarget(a3), fn))
|
|
2123
|
+
for (a3 = 0; a3 < fn.length; a3++) restoreStateOfTarget(fn[a3]);
|
|
2124
2124
|
}
|
|
2125
2125
|
}
|
|
2126
2126
|
}
|
|
@@ -12050,8 +12050,8 @@ var require_react_dom_client_production = __commonJS({
|
|
|
12050
12050
|
function markRetryLaneImpl(fiber, retryLane) {
|
|
12051
12051
|
fiber = fiber.memoizedState;
|
|
12052
12052
|
if (null !== fiber && null !== fiber.dehydrated) {
|
|
12053
|
-
var
|
|
12054
|
-
fiber.retryLane = 0 !==
|
|
12053
|
+
var a3 = fiber.retryLane;
|
|
12054
|
+
fiber.retryLane = 0 !== a3 && a3 < retryLane ? a3 : retryLane;
|
|
12055
12055
|
}
|
|
12056
12056
|
}
|
|
12057
12057
|
function markRetryLaneIfNotHydrated(fiber, retryLane) {
|
|
@@ -12762,33 +12762,33 @@ var require_jsx_runtime = __commonJS({
|
|
|
12762
12762
|
var require_fast_deep_equal = __commonJS({
|
|
12763
12763
|
"node_modules/fast-deep-equal/index.js"(exports, module) {
|
|
12764
12764
|
"use strict";
|
|
12765
|
-
module.exports = function equal(
|
|
12766
|
-
if (
|
|
12767
|
-
if (
|
|
12768
|
-
if (
|
|
12765
|
+
module.exports = function equal(a3, b3) {
|
|
12766
|
+
if (a3 === b3) return true;
|
|
12767
|
+
if (a3 && b3 && typeof a3 == "object" && typeof b3 == "object") {
|
|
12768
|
+
if (a3.constructor !== b3.constructor) return false;
|
|
12769
12769
|
var length2, i3, keys;
|
|
12770
|
-
if (Array.isArray(
|
|
12771
|
-
length2 =
|
|
12770
|
+
if (Array.isArray(a3)) {
|
|
12771
|
+
length2 = a3.length;
|
|
12772
12772
|
if (length2 != b3.length) return false;
|
|
12773
12773
|
for (i3 = length2; i3-- !== 0; )
|
|
12774
|
-
if (!equal(
|
|
12774
|
+
if (!equal(a3[i3], b3[i3])) return false;
|
|
12775
12775
|
return true;
|
|
12776
12776
|
}
|
|
12777
|
-
if (
|
|
12778
|
-
if (
|
|
12779
|
-
if (
|
|
12780
|
-
keys = Object.keys(
|
|
12777
|
+
if (a3.constructor === RegExp) return a3.source === b3.source && a3.flags === b3.flags;
|
|
12778
|
+
if (a3.valueOf !== Object.prototype.valueOf) return a3.valueOf() === b3.valueOf();
|
|
12779
|
+
if (a3.toString !== Object.prototype.toString) return a3.toString() === b3.toString();
|
|
12780
|
+
keys = Object.keys(a3);
|
|
12781
12781
|
length2 = keys.length;
|
|
12782
12782
|
if (length2 !== Object.keys(b3).length) return false;
|
|
12783
12783
|
for (i3 = length2; i3-- !== 0; )
|
|
12784
12784
|
if (!Object.prototype.hasOwnProperty.call(b3, keys[i3])) return false;
|
|
12785
12785
|
for (i3 = length2; i3-- !== 0; ) {
|
|
12786
12786
|
var key = keys[i3];
|
|
12787
|
-
if (!equal(
|
|
12787
|
+
if (!equal(a3[key], b3[key])) return false;
|
|
12788
12788
|
}
|
|
12789
12789
|
return true;
|
|
12790
12790
|
}
|
|
12791
|
-
return
|
|
12791
|
+
return a3 !== a3 && b3 !== b3;
|
|
12792
12792
|
};
|
|
12793
12793
|
}
|
|
12794
12794
|
});
|
|
@@ -13258,7 +13258,7 @@ var serializeJSONWithSpecialTypes = ({
|
|
|
13258
13258
|
}
|
|
13259
13259
|
};
|
|
13260
13260
|
var deserializeJSONWithSpecialTypes = (data2) => {
|
|
13261
|
-
return JSON.parse(data2, (
|
|
13261
|
+
return JSON.parse(data2, (_2, value) => {
|
|
13262
13262
|
if (typeof value === "string" && value.startsWith(DATE_TOKEN)) {
|
|
13263
13263
|
return new Date(value.replace(DATE_TOKEN, ""));
|
|
13264
13264
|
}
|
|
@@ -14204,8 +14204,8 @@ __export2(exports_timeline_position_state, {
|
|
|
14204
14204
|
getInitialFrameState: () => getInitialFrameState,
|
|
14205
14205
|
getFrameForComposition: () => getFrameForComposition
|
|
14206
14206
|
});
|
|
14207
|
-
function mulberry32(
|
|
14208
|
-
let t =
|
|
14207
|
+
function mulberry32(a3) {
|
|
14208
|
+
let t = a3 + 1831565813;
|
|
14209
14209
|
t = Math.imul(t ^ t >>> 15, t | 1);
|
|
14210
14210
|
t ^= t + Math.imul(t ^ t >>> 7, t | 61);
|
|
14211
14211
|
return ((t ^ t >>> 14) >>> 0) / 4294967296;
|
|
@@ -15721,8 +15721,8 @@ var runEffectChain = async ({
|
|
|
15721
15721
|
let flipWebGLSourceY = true;
|
|
15722
15722
|
for (let runIndex = 0; runIndex < runs.length; runIndex++) {
|
|
15723
15723
|
const run = runs[runIndex];
|
|
15724
|
-
const [
|
|
15725
|
-
let dst =
|
|
15724
|
+
const [a3, b3] = state.pool.getPair(run.backend);
|
|
15725
|
+
let dst = a3;
|
|
15726
15726
|
for (const eff of run.effects) {
|
|
15727
15727
|
const def = eff.definition;
|
|
15728
15728
|
const setupState = ensureSetup(state, def, dst);
|
|
@@ -15741,7 +15741,7 @@ var runEffectChain = async ({
|
|
|
15741
15741
|
state.pool.assertContextNotLost(dst);
|
|
15742
15742
|
}
|
|
15743
15743
|
currentImage = dst;
|
|
15744
|
-
dst = dst ===
|
|
15744
|
+
dst = dst === a3 ? b3 : a3;
|
|
15745
15745
|
}
|
|
15746
15746
|
lastTarget = currentImage ?? lastTarget;
|
|
15747
15747
|
const nextRun = runs[runIndex + 1];
|
|
@@ -15923,8 +15923,8 @@ var decodeImage = async ({
|
|
|
15923
15923
|
};
|
|
15924
15924
|
const clearCache = (closeToTimeInSec) => {
|
|
15925
15925
|
const itemsInCache = cache2.filter((c3) => c3.frame);
|
|
15926
|
-
const sortByClosestToCurrentTime = itemsInCache.sort((
|
|
15927
|
-
const aDiff = Math.abs(
|
|
15926
|
+
const sortByClosestToCurrentTime = itemsInCache.sort((a3, b3) => {
|
|
15927
|
+
const aDiff = Math.abs(a3.timeInSeconds - closeToTimeInSec);
|
|
15928
15928
|
const bDiff = Math.abs(b3.timeInSeconds - closeToTimeInSec);
|
|
15929
15929
|
return aDiff - bDiff;
|
|
15930
15930
|
});
|
|
@@ -15946,7 +15946,7 @@ var decodeImage = async ({
|
|
|
15946
15946
|
timeInSec
|
|
15947
15947
|
});
|
|
15948
15948
|
const framesBefore = cache2.filter((c3) => c3.timeInSeconds <= actualTimeInSec);
|
|
15949
|
-
const biggestIndex = framesBefore.map((c3) => c3.frameIndex).reduce((
|
|
15949
|
+
const biggestIndex = framesBefore.map((c3) => c3.frameIndex).reduce((a3, b3) => Math.max(a3, b3), 0);
|
|
15950
15950
|
let i3 = biggestIndex;
|
|
15951
15951
|
while (true) {
|
|
15952
15952
|
const f2 = await getFrameByIndex(i3);
|
|
@@ -15989,10 +15989,10 @@ var decodeImage = async ({
|
|
|
15989
15989
|
});
|
|
15990
15990
|
await ensureFrameBeforeAndAfter({ timeInSec: actualTimeInSec, loopBehavior });
|
|
15991
15991
|
const itemsInCache = cache2.filter((c3) => c3.frame);
|
|
15992
|
-
const closest = itemsInCache.reduce((
|
|
15993
|
-
const aDiff = Math.abs(
|
|
15992
|
+
const closest = itemsInCache.reduce((a3, b3) => {
|
|
15993
|
+
const aDiff = Math.abs(a3.timeInSeconds - actualTimeInSec);
|
|
15994
15994
|
const bDiff = Math.abs(b3.timeInSeconds - actualTimeInSec);
|
|
15995
|
-
return aDiff < bDiff ?
|
|
15995
|
+
return aDiff < bDiff ? a3 : b3;
|
|
15996
15996
|
});
|
|
15997
15997
|
if (!closest.frame) {
|
|
15998
15998
|
throw new Error("No frame found");
|
|
@@ -16670,7 +16670,7 @@ var RenderAssetManagerProvider = ({ children, collectAssets }) => {
|
|
|
16670
16670
|
}, []);
|
|
16671
16671
|
}
|
|
16672
16672
|
const unregisterRenderAsset = (0, import_react38.useCallback)((id) => {
|
|
16673
|
-
renderAssetsRef.current = renderAssetsRef.current.filter((
|
|
16673
|
+
renderAssetsRef.current = renderAssetsRef.current.filter((a3) => a3.id !== id);
|
|
16674
16674
|
setRenderAssets(renderAssetsRef.current);
|
|
16675
16675
|
}, []);
|
|
16676
16676
|
(0, import_react38.useLayoutEffect)(() => {
|
|
@@ -17623,7 +17623,7 @@ var SharedAudioTagsContextProvider = ({ children, numberOfAudioTags }) => {
|
|
|
17623
17623
|
const takenAudios = (0, import_react47.useRef)(new Array(numberOfAudioTags).fill(false));
|
|
17624
17624
|
const rerenderAudios = (0, import_react47.useCallback)(() => {
|
|
17625
17625
|
refs.forEach(({ ref: ref2, id }) => {
|
|
17626
|
-
const data2 = audios.current?.find((
|
|
17626
|
+
const data2 = audios.current?.find((a3) => a3.id === id);
|
|
17627
17627
|
const { current: current2 } = ref2;
|
|
17628
17628
|
if (!current2) {
|
|
17629
17629
|
return;
|
|
@@ -17644,11 +17644,11 @@ var SharedAudioTagsContextProvider = ({ children, numberOfAudioTags }) => {
|
|
|
17644
17644
|
}, [refs]);
|
|
17645
17645
|
const registerAudio = (0, import_react47.useCallback)((options) => {
|
|
17646
17646
|
const { aud, audioId, premounting, postmounting } = options;
|
|
17647
|
-
const found = audios.current?.find((
|
|
17647
|
+
const found = audios.current?.find((a3) => a3.audioId === audioId);
|
|
17648
17648
|
if (found) {
|
|
17649
17649
|
return found;
|
|
17650
17650
|
}
|
|
17651
|
-
const firstFreeAudio = takenAudios.current.findIndex((
|
|
17651
|
+
const firstFreeAudio = takenAudios.current.findIndex((a3) => a3 === false);
|
|
17652
17652
|
if (firstFreeAudio === -1) {
|
|
17653
17653
|
throw new Error(`Tried to simultaneously mount ${numberOfAudioTags + 1} <Html5Audio /> tags at the same time. With the current settings, the maximum amount of <Html5Audio /> tags is limited to ${numberOfAudioTags} at the same time. Remotion pre-mounts silent audio tags to help avoid browser autoplay restrictions. See https://remotion.dev/docs/player/autoplay#using-the-numberofsharedaudiotags-prop for more information on how to increase this limit.`);
|
|
17654
17654
|
}
|
|
@@ -17680,7 +17680,7 @@ var SharedAudioTagsContextProvider = ({ children, numberOfAudioTags }) => {
|
|
|
17680
17680
|
}
|
|
17681
17681
|
cloned[index] = false;
|
|
17682
17682
|
takenAudios.current = cloned;
|
|
17683
|
-
audios.current = audios.current?.filter((
|
|
17683
|
+
audios.current = audios.current?.filter((a3) => a3.id !== id);
|
|
17684
17684
|
rerenderAudios();
|
|
17685
17685
|
}, [refs, rerenderAudios]);
|
|
17686
17686
|
const updateAudio = (0, import_react47.useCallback)(({
|
|
@@ -17719,7 +17719,7 @@ var SharedAudioTagsContextProvider = ({ children, numberOfAudioTags }) => {
|
|
|
17719
17719
|
}, [rerenderAudios]);
|
|
17720
17720
|
const playAllAudios = (0, import_react47.useCallback)(() => {
|
|
17721
17721
|
refs.forEach((ref2) => {
|
|
17722
|
-
const audio2 = audios.current.find((
|
|
17722
|
+
const audio2 = audios.current.find((a3) => a3.el === ref2.ref);
|
|
17723
17723
|
if (audio2?.premounting) {
|
|
17724
17724
|
return;
|
|
17725
17725
|
}
|
|
@@ -18118,7 +18118,7 @@ var useBasicMediaInTimeline = ({
|
|
|
18118
18118
|
if (typeof volume === "number") {
|
|
18119
18119
|
return volume;
|
|
18120
18120
|
}
|
|
18121
|
-
return new Array(Math.floor(Math.max(0, duration3 + mediaStartsAt))).fill(true).map((
|
|
18121
|
+
return new Array(Math.floor(Math.max(0, duration3 + mediaStartsAt))).fill(true).map((_2, i3) => {
|
|
18122
18122
|
return evaluateVolume({
|
|
18123
18123
|
frame: i3 + mediaStartsAt,
|
|
18124
18124
|
volume,
|
|
@@ -18462,7 +18462,7 @@ var useBufferUntilFirstFrame = ({
|
|
|
18462
18462
|
const onEndedOrPauseOrCanPlay = () => {
|
|
18463
18463
|
unblock();
|
|
18464
18464
|
};
|
|
18465
|
-
current2.requestVideoFrameCallback((
|
|
18465
|
+
current2.requestVideoFrameCallback((_2, info2) => {
|
|
18466
18466
|
const differenceFromRequested = Math.abs(info2.mediaTime - requestedTime);
|
|
18467
18467
|
if (differenceFromRequested > 0.5) {
|
|
18468
18468
|
onVariableFpsVideoDetected();
|
|
@@ -18691,7 +18691,7 @@ var useRequestVideoCallbackTime = ({
|
|
|
18691
18691
|
if (!videoTag) {
|
|
18692
18692
|
return;
|
|
18693
18693
|
}
|
|
18694
|
-
const cb = videoTag.requestVideoFrameCallback((
|
|
18694
|
+
const cb = videoTag.requestVideoFrameCallback((_2, info2) => {
|
|
18695
18695
|
if (currentTime.current !== null) {
|
|
18696
18696
|
const difference = Math.abs(currentTime.current.time - info2.mediaTime);
|
|
18697
18697
|
const differenceToLastSeek = Math.abs(lastSeek.current === null ? Infinity : info2.mediaTime - lastSeek.current);
|
|
@@ -19185,7 +19185,7 @@ var useMediaTag = ({
|
|
|
19185
19185
|
};
|
|
19186
19186
|
audioAndVideoTags.current.push(tag);
|
|
19187
19187
|
return () => {
|
|
19188
|
-
audioAndVideoTags.current = audioAndVideoTags.current.filter((
|
|
19188
|
+
audioAndVideoTags.current = audioAndVideoTags.current.filter((a3) => a3.id !== id);
|
|
19189
19189
|
};
|
|
19190
19190
|
}, [
|
|
19191
19191
|
audioAndVideoTags,
|
|
@@ -21991,7 +21991,7 @@ function getMatchers() {
|
|
|
21991
21991
|
}
|
|
21992
21992
|
return cachedMatchers;
|
|
21993
21993
|
}
|
|
21994
|
-
function hue2rgb(p2,
|
|
21994
|
+
function hue2rgb(p2, q2, t) {
|
|
21995
21995
|
if (t < 0) {
|
|
21996
21996
|
t += 1;
|
|
21997
21997
|
}
|
|
@@ -21999,22 +21999,22 @@ function hue2rgb(p2, q, t) {
|
|
|
21999
21999
|
t -= 1;
|
|
22000
22000
|
}
|
|
22001
22001
|
if (t < 1 / 6) {
|
|
22002
|
-
return p2 + (
|
|
22002
|
+
return p2 + (q2 - p2) * 6 * t;
|
|
22003
22003
|
}
|
|
22004
22004
|
if (t < 1 / 2) {
|
|
22005
|
-
return
|
|
22005
|
+
return q2;
|
|
22006
22006
|
}
|
|
22007
22007
|
if (t < 2 / 3) {
|
|
22008
|
-
return p2 + (
|
|
22008
|
+
return p2 + (q2 - p2) * (2 / 3 - t) * 6;
|
|
22009
22009
|
}
|
|
22010
22010
|
return p2;
|
|
22011
22011
|
}
|
|
22012
22012
|
function hslToRgb(h2, s2, l2) {
|
|
22013
|
-
const
|
|
22014
|
-
const p2 = 2 * l2 -
|
|
22015
|
-
const r = hue2rgb(p2,
|
|
22016
|
-
const g2 = hue2rgb(p2,
|
|
22017
|
-
const b22 = hue2rgb(p2,
|
|
22013
|
+
const q2 = l2 < 0.5 ? l2 * (1 + s2) : l2 + s2 - l2 * s2;
|
|
22014
|
+
const p2 = 2 * l2 - q2;
|
|
22015
|
+
const r = hue2rgb(p2, q2, h2 + 1 / 3);
|
|
22016
|
+
const g2 = hue2rgb(p2, q2, h2);
|
|
22017
|
+
const b22 = hue2rgb(p2, q2, h2 - 1 / 3);
|
|
22018
22018
|
return Math.round(r * 255) << 24 | Math.round(g2 * 255) << 16 | Math.round(b22 * 255) << 8;
|
|
22019
22019
|
}
|
|
22020
22020
|
function parse255(str) {
|
|
@@ -22094,10 +22094,10 @@ function rgbFloatToInt(r, g2, b22, alpha) {
|
|
|
22094
22094
|
const ai = Math.round(clamp01(alpha) * 255);
|
|
22095
22095
|
return (ri << 24 | gi << 16 | bi << 8 | ai) >>> 0;
|
|
22096
22096
|
}
|
|
22097
|
-
function oklabToSrgb(
|
|
22098
|
-
const l_ =
|
|
22099
|
-
const m_ =
|
|
22100
|
-
const s_ =
|
|
22097
|
+
function oklabToSrgb(L2, a22, b22) {
|
|
22098
|
+
const l_ = L2 + 0.3963377774 * a22 + 0.2158037573 * b22;
|
|
22099
|
+
const m_ = L2 - 0.1055613458 * a22 - 0.0638541728 * b22;
|
|
22100
|
+
const s_ = L2 - 0.0894841775 * a22 - 1.291485548 * b22;
|
|
22101
22101
|
const l2 = l_ * l_ * l_;
|
|
22102
22102
|
const m2 = m_ * m_ * m_;
|
|
22103
22103
|
const s2 = s_ * s_ * s_;
|
|
@@ -22106,26 +22106,26 @@ function oklabToSrgb(L, a2, b22) {
|
|
|
22106
22106
|
const bLin = -0.0041960863 * l2 - 0.7034186147 * m2 + 1.707614701 * s2;
|
|
22107
22107
|
return [linearToSrgb(rLin), linearToSrgb(gLin), linearToSrgb(bLin)];
|
|
22108
22108
|
}
|
|
22109
|
-
function labToSrgb(
|
|
22109
|
+
function labToSrgb(L2, a22, b22) {
|
|
22110
22110
|
const epsilon3 = 216 / 24389;
|
|
22111
22111
|
const kappa = 24389 / 27;
|
|
22112
22112
|
const Xn = 0.95047;
|
|
22113
22113
|
const Yn = 1;
|
|
22114
22114
|
const Zn = 1.08883;
|
|
22115
|
-
const fy = (
|
|
22116
|
-
const fx =
|
|
22115
|
+
const fy = (L2 + 16) / 116;
|
|
22116
|
+
const fx = a22 / 500 + fy;
|
|
22117
22117
|
const fz = fy - b22 / 200;
|
|
22118
22118
|
const fx3 = fx * fx * fx;
|
|
22119
22119
|
const fz3 = fz * fz * fz;
|
|
22120
22120
|
const xr = fx3 > epsilon3 ? fx3 : (116 * fx - 16) / kappa;
|
|
22121
|
-
const yr =
|
|
22121
|
+
const yr = L2 > kappa * epsilon3 ? ((L2 + 16) / 116) ** 3 : L2 / kappa;
|
|
22122
22122
|
const zr = fz3 > epsilon3 ? fz3 : (116 * fz - 16) / kappa;
|
|
22123
|
-
const
|
|
22124
|
-
const
|
|
22125
|
-
const
|
|
22126
|
-
const rLin = 3.2404542 *
|
|
22127
|
-
const gLin = -0.969266 *
|
|
22128
|
-
const bLin = 0.0556434 *
|
|
22123
|
+
const X2 = xr * Xn;
|
|
22124
|
+
const Y2 = yr * Yn;
|
|
22125
|
+
const Z2 = zr * Zn;
|
|
22126
|
+
const rLin = 3.2404542 * X2 - 1.5371385 * Y2 - 0.4985314 * Z2;
|
|
22127
|
+
const gLin = -0.969266 * X2 + 1.8760108 * Y2 + 0.041556 * Z2;
|
|
22128
|
+
const bLin = 0.0556434 * X2 - 0.2040259 * Y2 + 1.0572252 * Z2;
|
|
22129
22129
|
return [linearToSrgb(rLin), linearToSrgb(gLin), linearToSrgb(bLin)];
|
|
22130
22130
|
}
|
|
22131
22131
|
function hwbToSrgb(h2, w2, bk) {
|
|
@@ -22133,11 +22133,11 @@ function hwbToSrgb(h2, w2, bk) {
|
|
|
22133
22133
|
const gray = w2 / (w2 + bk);
|
|
22134
22134
|
return [gray, gray, gray];
|
|
22135
22135
|
}
|
|
22136
|
-
const
|
|
22136
|
+
const q2 = 1;
|
|
22137
22137
|
const p2 = 0;
|
|
22138
|
-
const r = hue2rgb(p2,
|
|
22139
|
-
const g2 = hue2rgb(p2,
|
|
22140
|
-
const bl = hue2rgb(p2,
|
|
22138
|
+
const r = hue2rgb(p2, q2, h2 + 1 / 3);
|
|
22139
|
+
const g2 = hue2rgb(p2, q2, h2);
|
|
22140
|
+
const bl = hue2rgb(p2, q2, h2 - 1 / 3);
|
|
22141
22141
|
const factor = 1 - w2 - bk;
|
|
22142
22142
|
return [r * factor + w2, g2 * factor + w2, bl * factor + w2];
|
|
22143
22143
|
}
|
|
@@ -22341,53 +22341,53 @@ function normalizeColor(color) {
|
|
|
22341
22341
|
}
|
|
22342
22342
|
if (matchers.oklch) {
|
|
22343
22343
|
if (match = matchers.oklch.exec(color)) {
|
|
22344
|
-
const
|
|
22345
|
-
const
|
|
22346
|
-
const
|
|
22344
|
+
const L2 = parseModernComponent(match[1], 1);
|
|
22345
|
+
const C2 = parseModernComponent(match[2], 0.4);
|
|
22346
|
+
const H2 = parseHueAngle(match[3]);
|
|
22347
22347
|
const alpha = parseModernAlpha(match[4]);
|
|
22348
|
-
const hRad =
|
|
22349
|
-
const [r, g2, b22] = oklabToSrgb(
|
|
22348
|
+
const hRad = H2 * Math.PI / 180;
|
|
22349
|
+
const [r, g2, b22] = oklabToSrgb(L2, C2 * Math.cos(hRad), C2 * Math.sin(hRad));
|
|
22350
22350
|
return rgbFloatToInt(r, g2, b22, alpha);
|
|
22351
22351
|
}
|
|
22352
22352
|
}
|
|
22353
22353
|
if (matchers.oklab) {
|
|
22354
22354
|
if (match = matchers.oklab.exec(color)) {
|
|
22355
|
-
const
|
|
22356
|
-
const
|
|
22355
|
+
const L2 = parseModernComponent(match[1], 1);
|
|
22356
|
+
const a22 = parseModernComponent(match[2], 0.4);
|
|
22357
22357
|
const b22 = parseModernComponent(match[3], 0.4);
|
|
22358
22358
|
const alpha = parseModernAlpha(match[4]);
|
|
22359
|
-
const [r, g2, bl] = oklabToSrgb(
|
|
22359
|
+
const [r, g2, bl] = oklabToSrgb(L2, a22, b22);
|
|
22360
22360
|
return rgbFloatToInt(r, g2, bl, alpha);
|
|
22361
22361
|
}
|
|
22362
22362
|
}
|
|
22363
22363
|
if (matchers.lab) {
|
|
22364
22364
|
if (match = matchers.lab.exec(color)) {
|
|
22365
|
-
const
|
|
22366
|
-
const
|
|
22365
|
+
const L2 = parseModernComponent(match[1], 100);
|
|
22366
|
+
const a22 = parseModernComponent(match[2], 125);
|
|
22367
22367
|
const b22 = parseModernComponent(match[3], 125);
|
|
22368
22368
|
const alpha = parseModernAlpha(match[4]);
|
|
22369
|
-
const [r, g2, bl] = labToSrgb(
|
|
22369
|
+
const [r, g2, bl] = labToSrgb(L2, a22, b22);
|
|
22370
22370
|
return rgbFloatToInt(r, g2, bl, alpha);
|
|
22371
22371
|
}
|
|
22372
22372
|
}
|
|
22373
22373
|
if (matchers.lch) {
|
|
22374
22374
|
if (match = matchers.lch.exec(color)) {
|
|
22375
|
-
const
|
|
22376
|
-
const
|
|
22377
|
-
const
|
|
22375
|
+
const L2 = parseModernComponent(match[1], 100);
|
|
22376
|
+
const C2 = parseModernComponent(match[2], 150);
|
|
22377
|
+
const H2 = parseHueAngle(match[3]);
|
|
22378
22378
|
const alpha = parseModernAlpha(match[4]);
|
|
22379
|
-
const hRad =
|
|
22380
|
-
const [r, g2, bl] = labToSrgb(
|
|
22379
|
+
const hRad = H2 * Math.PI / 180;
|
|
22380
|
+
const [r, g2, bl] = labToSrgb(L2, C2 * Math.cos(hRad), C2 * Math.sin(hRad));
|
|
22381
22381
|
return rgbFloatToInt(r, g2, bl, alpha);
|
|
22382
22382
|
}
|
|
22383
22383
|
}
|
|
22384
22384
|
if (matchers.hwb) {
|
|
22385
22385
|
if (match = matchers.hwb.exec(color)) {
|
|
22386
|
-
const
|
|
22387
|
-
const
|
|
22388
|
-
const
|
|
22386
|
+
const H2 = parseHueAngle(match[1]);
|
|
22387
|
+
const W2 = parseModernComponent(match[2], 1);
|
|
22388
|
+
const B2 = parseModernComponent(match[3], 1);
|
|
22389
22389
|
const alpha = parseModernAlpha(match[4]);
|
|
22390
|
-
const [r, g2, bl] = hwbToSrgb(
|
|
22390
|
+
const [r, g2, bl] = hwbToSrgb(H2 / 360, W2, B2);
|
|
22391
22391
|
return rgbFloatToInt(r, g2, bl, alpha);
|
|
22392
22392
|
}
|
|
22393
22393
|
}
|
|
@@ -22413,7 +22413,7 @@ function processColor(color) {
|
|
|
22413
22413
|
return (normalizedColor << 24 | normalizedColor >>> 8) >>> 0;
|
|
22414
22414
|
}
|
|
22415
22415
|
var interpolateColorsRGB = (value, inputRange, colors) => {
|
|
22416
|
-
const [r, g2, b22,
|
|
22416
|
+
const [r, g2, b22, a22] = [red, green, blue, opacity].map((f2) => {
|
|
22417
22417
|
const unrounded = interpolate(value, inputRange, colors.map((c22) => f2(c22)), {
|
|
22418
22418
|
extrapolateLeft: "clamp",
|
|
22419
22419
|
extrapolateRight: "clamp"
|
|
@@ -22423,7 +22423,7 @@ var interpolateColorsRGB = (value, inputRange, colors) => {
|
|
|
22423
22423
|
}
|
|
22424
22424
|
return Math.round(unrounded);
|
|
22425
22425
|
});
|
|
22426
|
-
return rgbaColor(r, g2, b22,
|
|
22426
|
+
return rgbaColor(r, g2, b22, a22);
|
|
22427
22427
|
};
|
|
22428
22428
|
var interpolateColors = (input, inputRange, outputRange) => {
|
|
22429
22429
|
if (typeof input === "undefined") {
|
|
@@ -23362,7 +23362,7 @@ var Experimental = {
|
|
|
23362
23362
|
};
|
|
23363
23363
|
var proxyObj = {};
|
|
23364
23364
|
var Config = new Proxy(proxyObj, {
|
|
23365
|
-
get(
|
|
23365
|
+
get(_2, prop) {
|
|
23366
23366
|
if (prop === "Bundling" || prop === "Rendering" || prop === "Log" || prop === "Puppeteer" || prop === "Output") {
|
|
23367
23367
|
return Config;
|
|
23368
23368
|
}
|
|
@@ -23641,7 +23641,7 @@ var serializeJSONWithSpecialTypes2 = ({
|
|
|
23641
23641
|
}
|
|
23642
23642
|
};
|
|
23643
23643
|
var deserializeJSONWithSpecialTypes2 = (data2) => {
|
|
23644
|
-
return JSON.parse(data2, (
|
|
23644
|
+
return JSON.parse(data2, (_2, value) => {
|
|
23645
23645
|
if (typeof value === "string" && value.startsWith(DATE_TOKEN2)) {
|
|
23646
23646
|
return new Date(value.replace(DATE_TOKEN2, ""));
|
|
23647
23647
|
}
|
|
@@ -23694,7 +23694,7 @@ function getMatchers2() {
|
|
|
23694
23694
|
}
|
|
23695
23695
|
return cachedMatchers;
|
|
23696
23696
|
}
|
|
23697
|
-
function hue2rgb2(p2,
|
|
23697
|
+
function hue2rgb2(p2, q2, t) {
|
|
23698
23698
|
if (t < 0) {
|
|
23699
23699
|
t += 1;
|
|
23700
23700
|
}
|
|
@@ -23702,22 +23702,22 @@ function hue2rgb2(p2, q, t) {
|
|
|
23702
23702
|
t -= 1;
|
|
23703
23703
|
}
|
|
23704
23704
|
if (t < 1 / 6) {
|
|
23705
|
-
return p2 + (
|
|
23705
|
+
return p2 + (q2 - p2) * 6 * t;
|
|
23706
23706
|
}
|
|
23707
23707
|
if (t < 1 / 2) {
|
|
23708
|
-
return
|
|
23708
|
+
return q2;
|
|
23709
23709
|
}
|
|
23710
23710
|
if (t < 2 / 3) {
|
|
23711
|
-
return p2 + (
|
|
23711
|
+
return p2 + (q2 - p2) * (2 / 3 - t) * 6;
|
|
23712
23712
|
}
|
|
23713
23713
|
return p2;
|
|
23714
23714
|
}
|
|
23715
23715
|
function hslToRgb2(h2, s2, l2) {
|
|
23716
|
-
const
|
|
23717
|
-
const p2 = 2 * l2 -
|
|
23718
|
-
const r = hue2rgb2(p2,
|
|
23719
|
-
const g2 = hue2rgb2(p2,
|
|
23720
|
-
const b3 = hue2rgb2(p2,
|
|
23716
|
+
const q2 = l2 < 0.5 ? l2 * (1 + s2) : l2 + s2 - l2 * s2;
|
|
23717
|
+
const p2 = 2 * l2 - q2;
|
|
23718
|
+
const r = hue2rgb2(p2, q2, h2 + 1 / 3);
|
|
23719
|
+
const g2 = hue2rgb2(p2, q2, h2);
|
|
23720
|
+
const b3 = hue2rgb2(p2, q2, h2 - 1 / 3);
|
|
23721
23721
|
return Math.round(r * 255) << 24 | Math.round(g2 * 255) << 16 | Math.round(b3 * 255) << 8;
|
|
23722
23722
|
}
|
|
23723
23723
|
function parse2552(str) {
|
|
@@ -23797,10 +23797,10 @@ function rgbFloatToInt2(r, g2, b3, alpha) {
|
|
|
23797
23797
|
const ai = Math.round(clamp012(alpha) * 255);
|
|
23798
23798
|
return (ri << 24 | gi << 16 | bi << 8 | ai) >>> 0;
|
|
23799
23799
|
}
|
|
23800
|
-
function oklabToSrgb2(
|
|
23801
|
-
const l_ =
|
|
23802
|
-
const m_ =
|
|
23803
|
-
const s_ =
|
|
23800
|
+
function oklabToSrgb2(L2, a3, b3) {
|
|
23801
|
+
const l_ = L2 + 0.3963377774 * a3 + 0.2158037573 * b3;
|
|
23802
|
+
const m_ = L2 - 0.1055613458 * a3 - 0.0638541728 * b3;
|
|
23803
|
+
const s_ = L2 - 0.0894841775 * a3 - 1.291485548 * b3;
|
|
23804
23804
|
const l2 = l_ * l_ * l_;
|
|
23805
23805
|
const m2 = m_ * m_ * m_;
|
|
23806
23806
|
const s2 = s_ * s_ * s_;
|
|
@@ -23809,26 +23809,26 @@ function oklabToSrgb2(L, a2, b3) {
|
|
|
23809
23809
|
const bLin = -0.0041960863 * l2 - 0.7034186147 * m2 + 1.707614701 * s2;
|
|
23810
23810
|
return [linearToSrgb2(rLin), linearToSrgb2(gLin), linearToSrgb2(bLin)];
|
|
23811
23811
|
}
|
|
23812
|
-
function labToSrgb2(
|
|
23812
|
+
function labToSrgb2(L2, a3, b3) {
|
|
23813
23813
|
const epsilon3 = 216 / 24389;
|
|
23814
23814
|
const kappa = 24389 / 27;
|
|
23815
23815
|
const Xn = 0.95047;
|
|
23816
23816
|
const Yn = 1;
|
|
23817
23817
|
const Zn = 1.08883;
|
|
23818
|
-
const fy = (
|
|
23819
|
-
const fx =
|
|
23818
|
+
const fy = (L2 + 16) / 116;
|
|
23819
|
+
const fx = a3 / 500 + fy;
|
|
23820
23820
|
const fz = fy - b3 / 200;
|
|
23821
23821
|
const fx3 = fx * fx * fx;
|
|
23822
23822
|
const fz3 = fz * fz * fz;
|
|
23823
23823
|
const xr = fx3 > epsilon3 ? fx3 : (116 * fx - 16) / kappa;
|
|
23824
|
-
const yr =
|
|
23824
|
+
const yr = L2 > kappa * epsilon3 ? ((L2 + 16) / 116) ** 3 : L2 / kappa;
|
|
23825
23825
|
const zr = fz3 > epsilon3 ? fz3 : (116 * fz - 16) / kappa;
|
|
23826
|
-
const
|
|
23827
|
-
const
|
|
23828
|
-
const
|
|
23829
|
-
const rLin = 3.2404542 *
|
|
23830
|
-
const gLin = -0.969266 *
|
|
23831
|
-
const bLin = 0.0556434 *
|
|
23826
|
+
const X2 = xr * Xn;
|
|
23827
|
+
const Y2 = yr * Yn;
|
|
23828
|
+
const Z2 = zr * Zn;
|
|
23829
|
+
const rLin = 3.2404542 * X2 - 1.5371385 * Y2 - 0.4985314 * Z2;
|
|
23830
|
+
const gLin = -0.969266 * X2 + 1.8760108 * Y2 + 0.041556 * Z2;
|
|
23831
|
+
const bLin = 0.0556434 * X2 - 0.2040259 * Y2 + 1.0572252 * Z2;
|
|
23832
23832
|
return [linearToSrgb2(rLin), linearToSrgb2(gLin), linearToSrgb2(bLin)];
|
|
23833
23833
|
}
|
|
23834
23834
|
function hwbToSrgb2(h2, w2, bk) {
|
|
@@ -23836,11 +23836,11 @@ function hwbToSrgb2(h2, w2, bk) {
|
|
|
23836
23836
|
const gray = w2 / (w2 + bk);
|
|
23837
23837
|
return [gray, gray, gray];
|
|
23838
23838
|
}
|
|
23839
|
-
const
|
|
23839
|
+
const q2 = 1;
|
|
23840
23840
|
const p2 = 0;
|
|
23841
|
-
const r = hue2rgb2(p2,
|
|
23842
|
-
const g2 = hue2rgb2(p2,
|
|
23843
|
-
const bl = hue2rgb2(p2,
|
|
23841
|
+
const r = hue2rgb2(p2, q2, h2 + 1 / 3);
|
|
23842
|
+
const g2 = hue2rgb2(p2, q2, h2);
|
|
23843
|
+
const bl = hue2rgb2(p2, q2, h2 - 1 / 3);
|
|
23844
23844
|
const factor = 1 - w2 - bk;
|
|
23845
23845
|
return [r * factor + w2, g2 * factor + w2, bl * factor + w2];
|
|
23846
23846
|
}
|
|
@@ -24044,53 +24044,53 @@ function normalizeColor2(color) {
|
|
|
24044
24044
|
}
|
|
24045
24045
|
if (matchers.oklch) {
|
|
24046
24046
|
if (match = matchers.oklch.exec(color)) {
|
|
24047
|
-
const
|
|
24048
|
-
const
|
|
24049
|
-
const
|
|
24047
|
+
const L2 = parseModernComponent2(match[1], 1);
|
|
24048
|
+
const C2 = parseModernComponent2(match[2], 0.4);
|
|
24049
|
+
const H2 = parseHueAngle2(match[3]);
|
|
24050
24050
|
const alpha = parseModernAlpha2(match[4]);
|
|
24051
|
-
const hRad =
|
|
24052
|
-
const [r, g2, b3] = oklabToSrgb2(
|
|
24051
|
+
const hRad = H2 * Math.PI / 180;
|
|
24052
|
+
const [r, g2, b3] = oklabToSrgb2(L2, C2 * Math.cos(hRad), C2 * Math.sin(hRad));
|
|
24053
24053
|
return rgbFloatToInt2(r, g2, b3, alpha);
|
|
24054
24054
|
}
|
|
24055
24055
|
}
|
|
24056
24056
|
if (matchers.oklab) {
|
|
24057
24057
|
if (match = matchers.oklab.exec(color)) {
|
|
24058
|
-
const
|
|
24059
|
-
const
|
|
24058
|
+
const L2 = parseModernComponent2(match[1], 1);
|
|
24059
|
+
const a3 = parseModernComponent2(match[2], 0.4);
|
|
24060
24060
|
const b3 = parseModernComponent2(match[3], 0.4);
|
|
24061
24061
|
const alpha = parseModernAlpha2(match[4]);
|
|
24062
|
-
const [r, g2, bl] = oklabToSrgb2(
|
|
24062
|
+
const [r, g2, bl] = oklabToSrgb2(L2, a3, b3);
|
|
24063
24063
|
return rgbFloatToInt2(r, g2, bl, alpha);
|
|
24064
24064
|
}
|
|
24065
24065
|
}
|
|
24066
24066
|
if (matchers.lab) {
|
|
24067
24067
|
if (match = matchers.lab.exec(color)) {
|
|
24068
|
-
const
|
|
24069
|
-
const
|
|
24068
|
+
const L2 = parseModernComponent2(match[1], 100);
|
|
24069
|
+
const a3 = parseModernComponent2(match[2], 125);
|
|
24070
24070
|
const b3 = parseModernComponent2(match[3], 125);
|
|
24071
24071
|
const alpha = parseModernAlpha2(match[4]);
|
|
24072
|
-
const [r, g2, bl] = labToSrgb2(
|
|
24072
|
+
const [r, g2, bl] = labToSrgb2(L2, a3, b3);
|
|
24073
24073
|
return rgbFloatToInt2(r, g2, bl, alpha);
|
|
24074
24074
|
}
|
|
24075
24075
|
}
|
|
24076
24076
|
if (matchers.lch) {
|
|
24077
24077
|
if (match = matchers.lch.exec(color)) {
|
|
24078
|
-
const
|
|
24079
|
-
const
|
|
24080
|
-
const
|
|
24078
|
+
const L2 = parseModernComponent2(match[1], 100);
|
|
24079
|
+
const C2 = parseModernComponent2(match[2], 150);
|
|
24080
|
+
const H2 = parseHueAngle2(match[3]);
|
|
24081
24081
|
const alpha = parseModernAlpha2(match[4]);
|
|
24082
|
-
const hRad =
|
|
24083
|
-
const [r, g2, bl] = labToSrgb2(
|
|
24082
|
+
const hRad = H2 * Math.PI / 180;
|
|
24083
|
+
const [r, g2, bl] = labToSrgb2(L2, C2 * Math.cos(hRad), C2 * Math.sin(hRad));
|
|
24084
24084
|
return rgbFloatToInt2(r, g2, bl, alpha);
|
|
24085
24085
|
}
|
|
24086
24086
|
}
|
|
24087
24087
|
if (matchers.hwb) {
|
|
24088
24088
|
if (match = matchers.hwb.exec(color)) {
|
|
24089
|
-
const
|
|
24090
|
-
const
|
|
24091
|
-
const
|
|
24089
|
+
const H2 = parseHueAngle2(match[1]);
|
|
24090
|
+
const W2 = parseModernComponent2(match[2], 1);
|
|
24091
|
+
const B2 = parseModernComponent2(match[3], 1);
|
|
24092
24092
|
const alpha = parseModernAlpha2(match[4]);
|
|
24093
|
-
const [r, g2, bl] = hwbToSrgb2(
|
|
24093
|
+
const [r, g2, bl] = hwbToSrgb2(H2 / 360, W2, B2);
|
|
24094
24094
|
return rgbFloatToInt2(r, g2, bl, alpha);
|
|
24095
24095
|
}
|
|
24096
24096
|
}
|
|
@@ -24928,7 +24928,7 @@ var usePlayer = () => {
|
|
|
24928
24928
|
if (audioTagsContext && audioTagsContext.numberOfAudioTags > 0 && e) {
|
|
24929
24929
|
audioTagsContext.playAllAudios();
|
|
24930
24930
|
}
|
|
24931
|
-
audioAndVideoTags.current.forEach((
|
|
24931
|
+
audioAndVideoTags.current.forEach((a3) => a3.play("player play() was called and playing audio from a click"));
|
|
24932
24932
|
imperativePlaying.current = true;
|
|
24933
24933
|
setPlaying(true);
|
|
24934
24934
|
playStart.current = frameRef.current;
|
|
@@ -30380,7 +30380,7 @@ function cssJS(css) {
|
|
|
30380
30380
|
const k2 = decl.slice(0, i3).trim();
|
|
30381
30381
|
const v2 = decl.slice(i3 + 1).trim();
|
|
30382
30382
|
if (!k2) continue;
|
|
30383
|
-
const camel = k2.replace(/-([a-z])/g, (
|
|
30383
|
+
const camel = k2.replace(/-([a-z])/g, (_2, c3) => c3.toUpperCase());
|
|
30384
30384
|
out[camel] = v2;
|
|
30385
30385
|
}
|
|
30386
30386
|
return out;
|
|
@@ -30458,10 +30458,10 @@ function parseVTT(src) {
|
|
|
30458
30458
|
const lines = b3.split("\n").filter(Boolean);
|
|
30459
30459
|
const tline = lines.find((l2) => l2.includes("-->"));
|
|
30460
30460
|
if (!tline) continue;
|
|
30461
|
-
const [
|
|
30462
|
-
if (!
|
|
30461
|
+
const [a3, z3] = tline.split("-->").map((s2) => s2.trim());
|
|
30462
|
+
if (!a3 || !z3) continue;
|
|
30463
30463
|
const text = lines.slice(lines.indexOf(tline) + 1).join("\n").trim();
|
|
30464
|
-
cues.push({ startFrom: vttSecond(
|
|
30464
|
+
cues.push({ startFrom: vttSecond(a3), endAt: vttSecond(z3), text });
|
|
30465
30465
|
}
|
|
30466
30466
|
return cues;
|
|
30467
30467
|
}
|
|
@@ -33839,8 +33839,8 @@ Defaulting to 2020, but this will stop working in the future.`);
|
|
|
33839
33839
|
if (this.options.ecmaVersion < 6 && this.input.slice(start, end).indexOf("\\") !== -1) {
|
|
33840
33840
|
return;
|
|
33841
33841
|
}
|
|
33842
|
-
var
|
|
33843
|
-
if (
|
|
33842
|
+
var re2 = this.strict ? this.reservedWordsStrict : this.reservedWords;
|
|
33843
|
+
if (re2.test(name)) {
|
|
33844
33844
|
if (!this.inAsync && name === "await") {
|
|
33845
33845
|
this.raiseRecoverable(start, "Cannot use keyword 'await' outside an async function");
|
|
33846
33846
|
}
|
|
@@ -34265,7 +34265,7 @@ Defaulting to 2020, but this will stop working in the future.`);
|
|
|
34265
34265
|
}
|
|
34266
34266
|
};
|
|
34267
34267
|
function hasProp2(obj) {
|
|
34268
|
-
for (var
|
|
34268
|
+
for (var _2 in obj) {
|
|
34269
34269
|
return true;
|
|
34270
34270
|
}
|
|
34271
34271
|
return false;
|
|
@@ -39383,8 +39383,8 @@ pp$5.checkUnreserved = function(ref2) {
|
|
|
39383
39383
|
if (this.options.ecmaVersion < 6 && this.input.slice(start, end).indexOf("\\") !== -1) {
|
|
39384
39384
|
return;
|
|
39385
39385
|
}
|
|
39386
|
-
var
|
|
39387
|
-
if (
|
|
39386
|
+
var re2 = this.strict ? this.reservedWordsStrict : this.reservedWords;
|
|
39387
|
+
if (re2.test(name)) {
|
|
39388
39388
|
if (!this.inAsync && name === "await") {
|
|
39389
39389
|
this.raiseRecoverable(start, "Cannot use keyword 'await' outside an async function");
|
|
39390
39390
|
}
|
|
@@ -39812,7 +39812,7 @@ pp$1.validateRegExpFlags = function(state) {
|
|
|
39812
39812
|
}
|
|
39813
39813
|
};
|
|
39814
39814
|
function hasProp(obj) {
|
|
39815
|
-
for (var
|
|
39815
|
+
for (var _2 in obj) {
|
|
39816
39816
|
return true;
|
|
39817
39817
|
}
|
|
39818
39818
|
return false;
|
|
@@ -41818,8 +41818,8 @@ var JsxParser = class extends import_react125.default.Component {
|
|
|
41818
41818
|
case "TemplateElement":
|
|
41819
41819
|
return expression.value.cooked;
|
|
41820
41820
|
case "TemplateLiteral":
|
|
41821
|
-
return [...expression.expressions, ...expression.quasis].sort((
|
|
41822
|
-
if (
|
|
41821
|
+
return [...expression.expressions, ...expression.quasis].sort((a3, b3) => {
|
|
41822
|
+
if (a3.start < b3.start)
|
|
41823
41823
|
return -1;
|
|
41824
41824
|
return 1;
|
|
41825
41825
|
}).map((item) => __privateGet(this, _parseExpression).call(this, item, scope)).join("");
|
|
@@ -41954,7 +41954,7 @@ var JsxParser = class extends import_react125.default.Component {
|
|
|
41954
41954
|
const rawName = expr.name.name;
|
|
41955
41955
|
const attributeName = attributeNames_default[rawName] || rawName;
|
|
41956
41956
|
const value = __privateGet(this, _parseExpression).call(this, expr, scope);
|
|
41957
|
-
const matches = blacklistedAttrs.filter((
|
|
41957
|
+
const matches = blacklistedAttrs.filter((re2) => re2.test(attributeName));
|
|
41958
41958
|
if (matches.length === 0) {
|
|
41959
41959
|
props[attributeName] = value;
|
|
41960
41960
|
}
|
|
@@ -41963,7 +41963,7 @@ var JsxParser = class extends import_react125.default.Component {
|
|
|
41963
41963
|
if (typeof value === "object") {
|
|
41964
41964
|
Object.keys(value).forEach((rawName) => {
|
|
41965
41965
|
const attributeName = attributeNames_default[rawName] || rawName;
|
|
41966
|
-
const matches = blacklistedAttrs.filter((
|
|
41966
|
+
const matches = blacklistedAttrs.filter((re2) => re2.test(attributeName));
|
|
41967
41967
|
if (matches.length === 0) {
|
|
41968
41968
|
props[attributeName] = value[rawName];
|
|
41969
41969
|
}
|
|
@@ -42037,8 +42037,8 @@ function hexToNumber(hex3) {
|
|
|
42037
42037
|
}
|
|
42038
42038
|
return parseInt(s2, 16);
|
|
42039
42039
|
}
|
|
42040
|
-
function lerp(
|
|
42041
|
-
return
|
|
42040
|
+
function lerp(a3, b3, t) {
|
|
42041
|
+
return a3 + (b3 - a3) * t;
|
|
42042
42042
|
}
|
|
42043
42043
|
function useTweenBindings(action) {
|
|
42044
42044
|
const frame = useCurrentFrame();
|
|
@@ -42753,12 +42753,12 @@ function isLatLngLiteral(obj) {
|
|
|
42753
42753
|
return false;
|
|
42754
42754
|
return Number.isFinite(obj.lat) && Number.isFinite(obj.lng);
|
|
42755
42755
|
}
|
|
42756
|
-
function latLngEquals(
|
|
42757
|
-
if (!
|
|
42756
|
+
function latLngEquals(a3, b3) {
|
|
42757
|
+
if (!a3 || !b3)
|
|
42758
42758
|
return false;
|
|
42759
|
-
const A2 = toLatLngLiteral(
|
|
42760
|
-
const
|
|
42761
|
-
if (A2.lat !==
|
|
42759
|
+
const A2 = toLatLngLiteral(a3);
|
|
42760
|
+
const B2 = toLatLngLiteral(b3);
|
|
42761
|
+
if (A2.lat !== B2.lat || A2.lng !== B2.lng)
|
|
42762
42762
|
return false;
|
|
42763
42763
|
return true;
|
|
42764
42764
|
}
|
|
@@ -42771,42 +42771,42 @@ function toLatLngBoundsLiteral(obj) {
|
|
|
42771
42771
|
if ("north" in obj && "south" in obj && "east" in obj && "west" in obj) {
|
|
42772
42772
|
return obj;
|
|
42773
42773
|
}
|
|
42774
|
-
const
|
|
42774
|
+
const ne2 = obj.getNorthEast().toJSON();
|
|
42775
42775
|
const sw = obj.getSouthWest().toJSON();
|
|
42776
42776
|
return {
|
|
42777
|
-
north:
|
|
42778
|
-
east:
|
|
42777
|
+
north: ne2.lat,
|
|
42778
|
+
east: ne2.lng,
|
|
42779
42779
|
south: sw.lat,
|
|
42780
42780
|
west: sw.lng
|
|
42781
42781
|
};
|
|
42782
42782
|
}
|
|
42783
|
-
function boundsEquals(
|
|
42784
|
-
if (!
|
|
42783
|
+
function boundsEquals(a3, b3) {
|
|
42784
|
+
if (!a3 || !b3)
|
|
42785
42785
|
return false;
|
|
42786
|
-
const A2 = toLatLngBoundsLiteral(
|
|
42787
|
-
const
|
|
42788
|
-
return A2.north ===
|
|
42786
|
+
const A2 = toLatLngBoundsLiteral(a3);
|
|
42787
|
+
const B2 = toLatLngBoundsLiteral(b3);
|
|
42788
|
+
return A2.north === B2.north && A2.south === B2.south && A2.east === B2.east && A2.west === B2.west;
|
|
42789
42789
|
}
|
|
42790
|
-
function pathEquals(
|
|
42791
|
-
if (!
|
|
42792
|
-
return
|
|
42790
|
+
function pathEquals(a3, b3) {
|
|
42791
|
+
if (!a3 || !b3)
|
|
42792
|
+
return a3 === b3;
|
|
42793
42793
|
const arrayB = "getArray" in b3 ? b3.getArray() : b3;
|
|
42794
|
-
if (
|
|
42794
|
+
if (a3.length !== arrayB.length)
|
|
42795
42795
|
return false;
|
|
42796
|
-
for (let i3 = 0; i3 <
|
|
42797
|
-
if (!latLngEquals(
|
|
42796
|
+
for (let i3 = 0; i3 < a3.length; i3++) {
|
|
42797
|
+
if (!latLngEquals(a3[i3], arrayB[i3]))
|
|
42798
42798
|
return false;
|
|
42799
42799
|
}
|
|
42800
42800
|
return true;
|
|
42801
42801
|
}
|
|
42802
|
-
function pathsEquals(
|
|
42803
|
-
if (!
|
|
42804
|
-
return
|
|
42802
|
+
function pathsEquals(a3, b3) {
|
|
42803
|
+
if (!a3 || !b3)
|
|
42804
|
+
return a3 === b3;
|
|
42805
42805
|
const arrayB = "getArray" in b3 ? b3.getArray().map((inner2) => inner2.getArray()) : b3;
|
|
42806
|
-
if (
|
|
42806
|
+
if (a3.length !== arrayB.length)
|
|
42807
42807
|
return false;
|
|
42808
|
-
for (let i3 = 0; i3 <
|
|
42809
|
-
if (!pathEquals(
|
|
42808
|
+
for (let i3 = 0; i3 < a3.length; i3++) {
|
|
42809
|
+
if (!pathEquals(a3[i3], arrayB[i3]))
|
|
42810
42810
|
return false;
|
|
42811
42811
|
}
|
|
42812
42812
|
return true;
|
|
@@ -44662,12 +44662,12 @@ function useAnimatedPosition({
|
|
|
44662
44662
|
const total = waypoints.length - 1;
|
|
44663
44663
|
const segI = Math.min(Math.floor(t * total), total - 1);
|
|
44664
44664
|
const segT = t * total - segI;
|
|
44665
|
-
const
|
|
44665
|
+
const a3 = waypoints[segI];
|
|
44666
44666
|
const b3 = waypoints[segI + 1];
|
|
44667
|
-
if (!
|
|
44667
|
+
if (!a3 || !b3) return null;
|
|
44668
44668
|
return {
|
|
44669
|
-
lat:
|
|
44670
|
-
lng:
|
|
44669
|
+
lat: a3.lat + (b3.lat - a3.lat) * segT,
|
|
44670
|
+
lng: a3.lng + (b3.lng - a3.lng) * segT
|
|
44671
44671
|
};
|
|
44672
44672
|
}
|
|
44673
44673
|
const currentInSecond = frame / fps * (leg.duration.value / actionDuration);
|
|
@@ -44677,12 +44677,12 @@ function useAnimatedPosition({
|
|
|
44677
44677
|
const total = waypoints.length - 1;
|
|
44678
44678
|
const segI = Math.min(Math.floor(t * total), total - 1);
|
|
44679
44679
|
const segT = t * total - segI;
|
|
44680
|
-
const
|
|
44680
|
+
const a3 = waypoints[segI];
|
|
44681
44681
|
const b3 = waypoints[segI + 1];
|
|
44682
|
-
if (!
|
|
44682
|
+
if (!a3 || !b3) return null;
|
|
44683
44683
|
return {
|
|
44684
|
-
lat:
|
|
44685
|
-
lng:
|
|
44684
|
+
lat: a3.lat + (b3.lat - a3.lat) * segT,
|
|
44685
|
+
lng: a3.lng + (b3.lng - a3.lng) * segT
|
|
44686
44686
|
};
|
|
44687
44687
|
}
|
|
44688
44688
|
const stepElapsed = currentInSecond - elapsedInSeconds;
|
|
@@ -45028,7 +45028,7 @@ function parseKeyframeData(data2) {
|
|
|
45028
45028
|
styles[String(perc)] = style2;
|
|
45029
45029
|
if (!steps.includes(perc)) steps.push(perc);
|
|
45030
45030
|
}
|
|
45031
|
-
steps.sort((
|
|
45031
|
+
steps.sort((a3, b3) => b3 - a3);
|
|
45032
45032
|
return { steps, styles };
|
|
45033
45033
|
}
|
|
45034
45034
|
function getEasing(timing) {
|
|
@@ -45578,250 +45578,480 @@ var React46 = __toESM(require_react(), 1);
|
|
|
45578
45578
|
// node_modules/remotion-subtitle/dist/index.esm.js
|
|
45579
45579
|
var index_esm_exports = {};
|
|
45580
45580
|
__export(index_esm_exports, {
|
|
45581
|
-
BounceCaption: () =>
|
|
45582
|
-
Caption: () =>
|
|
45583
|
-
ColorfulCaption: () =>
|
|
45584
|
-
ExplosiveCaption: () =>
|
|
45585
|
-
FadeCaption: () =>
|
|
45586
|
-
FireCaption: () =>
|
|
45587
|
-
GlitchCaption: () =>
|
|
45588
|
-
GlowingCaption: () =>
|
|
45589
|
-
LightningCaption: () =>
|
|
45590
|
-
NeonCaption: () =>
|
|
45591
|
-
RotatingCaption: () =>
|
|
45592
|
-
ShakeCaption: () =>
|
|
45593
|
-
SubtitleSequence: () =>
|
|
45594
|
-
ThreeDishCaption: () =>
|
|
45595
|
-
TiltShiftCaption: () =>
|
|
45596
|
-
TypewriterCaption: () =>
|
|
45597
|
-
WavingCaption: () =>
|
|
45598
|
-
ZoomCaption: () =>
|
|
45581
|
+
BounceCaption: () => Z,
|
|
45582
|
+
Caption: () => Q,
|
|
45583
|
+
ColorfulCaption: () => ee,
|
|
45584
|
+
ExplosiveCaption: () => te,
|
|
45585
|
+
FadeCaption: () => re,
|
|
45586
|
+
FireCaption: () => ne,
|
|
45587
|
+
GlitchCaption: () => oe,
|
|
45588
|
+
GlowingCaption: () => ae,
|
|
45589
|
+
LightningCaption: () => ie,
|
|
45590
|
+
NeonCaption: () => ce,
|
|
45591
|
+
RotatingCaption: () => le,
|
|
45592
|
+
ShakeCaption: () => ue,
|
|
45593
|
+
SubtitleSequence: () => K,
|
|
45594
|
+
ThreeDishCaption: () => se,
|
|
45595
|
+
TiltShiftCaption: () => fe,
|
|
45596
|
+
TypewriterCaption: () => pe,
|
|
45597
|
+
WavingCaption: () => de,
|
|
45598
|
+
ZoomCaption: () => ye
|
|
45599
45599
|
});
|
|
45600
|
-
|
|
45601
|
-
|
|
45602
|
-
var r = Object.keys(t);
|
|
45600
|
+
function a2(e, t) {
|
|
45601
|
+
var r = Object.keys(e);
|
|
45603
45602
|
if (Object.getOwnPropertySymbols) {
|
|
45604
|
-
var
|
|
45605
|
-
|
|
45606
|
-
return Object.getOwnPropertyDescriptor(
|
|
45607
|
-
}))), r.push.apply(r,
|
|
45603
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
45604
|
+
t && (n = n.filter((function(t2) {
|
|
45605
|
+
return Object.getOwnPropertyDescriptor(e, t2).enumerable;
|
|
45606
|
+
}))), r.push.apply(r, n);
|
|
45608
45607
|
}
|
|
45609
45608
|
return r;
|
|
45610
45609
|
}
|
|
45611
|
-
function
|
|
45612
|
-
for (var
|
|
45613
|
-
var r = null != arguments[
|
|
45614
|
-
|
|
45615
|
-
|
|
45616
|
-
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
45617
|
-
Object.defineProperty(
|
|
45610
|
+
function i2(e) {
|
|
45611
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
45612
|
+
var r = null != arguments[t] ? arguments[t] : {};
|
|
45613
|
+
t % 2 ? a2(Object(r), true).forEach((function(t2) {
|
|
45614
|
+
u(e, t2, r[t2]);
|
|
45615
|
+
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : a2(Object(r)).forEach((function(t2) {
|
|
45616
|
+
Object.defineProperty(e, t2, Object.getOwnPropertyDescriptor(r, t2));
|
|
45618
45617
|
}));
|
|
45619
45618
|
}
|
|
45620
|
-
return
|
|
45619
|
+
return e;
|
|
45621
45620
|
}
|
|
45622
|
-
function c2(
|
|
45623
|
-
var
|
|
45624
|
-
if ("object" != typeof
|
|
45625
|
-
var r =
|
|
45621
|
+
function c2(e) {
|
|
45622
|
+
var t = (function(e2, t2) {
|
|
45623
|
+
if ("object" != typeof e2 || !e2) return e2;
|
|
45624
|
+
var r = e2[Symbol.toPrimitive];
|
|
45626
45625
|
if (void 0 !== r) {
|
|
45627
|
-
var
|
|
45628
|
-
if ("object" != typeof
|
|
45626
|
+
var n = r.call(e2, t2 || "default");
|
|
45627
|
+
if ("object" != typeof n) return n;
|
|
45629
45628
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
45630
45629
|
}
|
|
45631
|
-
return ("string" ===
|
|
45632
|
-
})(
|
|
45633
|
-
return "symbol" == typeof
|
|
45630
|
+
return ("string" === t2 ? String : Number)(e2);
|
|
45631
|
+
})(e, "string");
|
|
45632
|
+
return "symbol" == typeof t ? t : t + "";
|
|
45634
45633
|
}
|
|
45635
|
-
function
|
|
45636
|
-
for (var r = 0; r <
|
|
45637
|
-
var
|
|
45638
|
-
|
|
45634
|
+
function l(e, t) {
|
|
45635
|
+
for (var r = 0; r < t.length; r++) {
|
|
45636
|
+
var n = t[r];
|
|
45637
|
+
n.enumerable = n.enumerable || false, n.configurable = true, "value" in n && (n.writable = true), Object.defineProperty(e, c2(n.key), n);
|
|
45639
45638
|
}
|
|
45640
45639
|
}
|
|
45641
|
-
function
|
|
45642
|
-
return (
|
|
45640
|
+
function u(e, t, r) {
|
|
45641
|
+
return (t = c2(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: true, configurable: true, writable: true }) : e[t] = r, e;
|
|
45643
45642
|
}
|
|
45644
|
-
function
|
|
45645
|
-
return (function(
|
|
45646
|
-
if (Array.isArray(
|
|
45647
|
-
})(
|
|
45648
|
-
var r = null ==
|
|
45643
|
+
function s(e, t) {
|
|
45644
|
+
return (function(e2) {
|
|
45645
|
+
if (Array.isArray(e2)) return e2;
|
|
45646
|
+
})(e) || (function(e2, t2) {
|
|
45647
|
+
var r = null == e2 ? null : "undefined" != typeof Symbol && e2[Symbol.iterator] || e2["@@iterator"];
|
|
45649
45648
|
if (null != r) {
|
|
45650
|
-
var
|
|
45649
|
+
var n, o, a3, i3, c3 = [], l2 = true, u2 = false;
|
|
45651
45650
|
try {
|
|
45652
|
-
if (
|
|
45651
|
+
if (a3 = (r = r.call(e2)).next, 0 === t2) {
|
|
45653
45652
|
if (Object(r) !== r) return;
|
|
45654
|
-
|
|
45655
|
-
} else for (; !(
|
|
45656
|
-
} catch (
|
|
45657
|
-
|
|
45653
|
+
l2 = false;
|
|
45654
|
+
} else for (; !(l2 = (n = a3.call(r)).done) && (c3.push(n.value), c3.length !== t2); l2 = true) ;
|
|
45655
|
+
} catch (e3) {
|
|
45656
|
+
u2 = true, o = e3;
|
|
45658
45657
|
} finally {
|
|
45659
45658
|
try {
|
|
45660
|
-
if (!
|
|
45659
|
+
if (!l2 && null != r.return && (i3 = r.return(), Object(i3) !== i3)) return;
|
|
45661
45660
|
} finally {
|
|
45662
|
-
if (
|
|
45661
|
+
if (u2) throw o;
|
|
45663
45662
|
}
|
|
45664
45663
|
}
|
|
45665
|
-
return
|
|
45664
|
+
return c3;
|
|
45666
45665
|
}
|
|
45667
|
-
})(
|
|
45668
|
-
if (!
|
|
45669
|
-
if ("string" == typeof
|
|
45670
|
-
var r = Object.prototype.toString.call(
|
|
45671
|
-
"Object" === r &&
|
|
45672
|
-
if ("Map" === r || "Set" === r) return Array.from(
|
|
45673
|
-
if ("Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return
|
|
45674
|
-
})(
|
|
45666
|
+
})(e, t) || (function(e2, t2) {
|
|
45667
|
+
if (!e2) return;
|
|
45668
|
+
if ("string" == typeof e2) return f(e2, t2);
|
|
45669
|
+
var r = Object.prototype.toString.call(e2).slice(8, -1);
|
|
45670
|
+
"Object" === r && e2.constructor && (r = e2.constructor.name);
|
|
45671
|
+
if ("Map" === r || "Set" === r) return Array.from(e2);
|
|
45672
|
+
if ("Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return f(e2, t2);
|
|
45673
|
+
})(e, t) || (function() {
|
|
45675
45674
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
45676
45675
|
})();
|
|
45677
45676
|
}
|
|
45678
|
-
function
|
|
45679
|
-
(null ==
|
|
45680
|
-
for (var r = 0,
|
|
45681
|
-
return
|
|
45682
|
-
}
|
|
45683
|
-
var
|
|
45684
|
-
|
|
45685
|
-
|
|
45686
|
-
|
|
45687
|
-
|
|
45688
|
-
|
|
45689
|
-
|
|
45690
|
-
|
|
45691
|
-
|
|
45692
|
-
|
|
45693
|
-
|
|
45694
|
-
|
|
45677
|
+
function f(e, t) {
|
|
45678
|
+
(null == t || t > e.length) && (t = e.length);
|
|
45679
|
+
for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r];
|
|
45680
|
+
return n;
|
|
45681
|
+
}
|
|
45682
|
+
var p = { exports: {} };
|
|
45683
|
+
var d = {};
|
|
45684
|
+
var y = Object.getOwnPropertySymbols;
|
|
45685
|
+
var m = Object.prototype.hasOwnProperty;
|
|
45686
|
+
var h = Object.prototype.propertyIsEnumerable;
|
|
45687
|
+
var v = (function() {
|
|
45688
|
+
try {
|
|
45689
|
+
if (!Object.assign) return false;
|
|
45690
|
+
var e = new String("abc");
|
|
45691
|
+
if (e[5] = "de", "5" === Object.getOwnPropertyNames(e)[0]) return false;
|
|
45692
|
+
for (var t = {}, r = 0; r < 10; r++) t["_" + String.fromCharCode(r)] = r;
|
|
45693
|
+
var n = Object.getOwnPropertyNames(t).map((function(e2) {
|
|
45694
|
+
return t[e2];
|
|
45695
|
+
}));
|
|
45696
|
+
if ("0123456789" !== n.join("")) return false;
|
|
45697
|
+
var o = {};
|
|
45698
|
+
return "abcdefghijklmnopqrst".split("").forEach((function(e2) {
|
|
45699
|
+
o[e2] = e2;
|
|
45700
|
+
})), "abcdefghijklmnopqrst" === Object.keys(Object.assign({}, o)).join("");
|
|
45701
|
+
} catch (e2) {
|
|
45702
|
+
return false;
|
|
45703
|
+
}
|
|
45704
|
+
})() ? Object.assign : function(e, t) {
|
|
45705
|
+
for (var r, n, o = (function(e2) {
|
|
45706
|
+
if (null == e2) throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
45707
|
+
return Object(e2);
|
|
45708
|
+
})(e), a3 = 1; a3 < arguments.length; a3++) {
|
|
45709
|
+
for (var i3 in r = Object(arguments[a3])) m.call(r, i3) && (o[i3] = r[i3]);
|
|
45710
|
+
if (y) {
|
|
45711
|
+
n = y(r);
|
|
45712
|
+
for (var c3 = 0; c3 < n.length; c3++) h.call(r, n[c3]) && (o[n[c3]] = r[n[c3]]);
|
|
45713
|
+
}
|
|
45714
|
+
}
|
|
45715
|
+
return o;
|
|
45716
|
+
};
|
|
45717
|
+
var g = v;
|
|
45718
|
+
var b2 = 60103;
|
|
45719
|
+
var x = 60106;
|
|
45720
|
+
d.Fragment = 60107, d.StrictMode = 60108, d.Profiler = 60114;
|
|
45721
|
+
var w = 60109;
|
|
45722
|
+
var _ = 60110;
|
|
45723
|
+
var S = 60112;
|
|
45724
|
+
d.Suspense = 60113;
|
|
45725
|
+
var R = 60115;
|
|
45726
|
+
var k = 60116;
|
|
45727
|
+
if ("function" == typeof Symbol && Symbol.for) {
|
|
45728
|
+
j = Symbol.for;
|
|
45729
|
+
b2 = j("react.element"), x = j("react.portal"), d.Fragment = j("react.fragment"), d.StrictMode = j("react.strict_mode"), d.Profiler = j("react.profiler"), w = j("react.provider"), _ = j("react.context"), S = j("react.forward_ref"), d.Suspense = j("react.suspense"), R = j("react.memo"), k = j("react.lazy");
|
|
45730
|
+
}
|
|
45731
|
+
var j;
|
|
45732
|
+
var C = "function" == typeof Symbol && Symbol.iterator;
|
|
45733
|
+
function O(e) {
|
|
45734
|
+
for (var t = "https://reactjs.org/docs/error-decoder.html?invariant=" + e, r = 1; r < arguments.length; r++) t += "&args[]=" + encodeURIComponent(arguments[r]);
|
|
45735
|
+
return "Minified React error #" + e + "; visit " + t + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
|
45736
|
+
}
|
|
45737
|
+
var E = { isMounted: function() {
|
|
45738
|
+
return false;
|
|
45739
|
+
}, enqueueForceUpdate: function() {
|
|
45740
|
+
}, enqueueReplaceState: function() {
|
|
45741
|
+
}, enqueueSetState: function() {
|
|
45742
|
+
} };
|
|
45743
|
+
var P = {};
|
|
45744
|
+
function F(e, t, r) {
|
|
45745
|
+
this.props = e, this.context = t, this.refs = P, this.updater = r || E;
|
|
45746
|
+
}
|
|
45747
|
+
function $() {
|
|
45748
|
+
}
|
|
45749
|
+
function A(e, t, r) {
|
|
45750
|
+
this.props = e, this.context = t, this.refs = P, this.updater = r || E;
|
|
45751
|
+
}
|
|
45752
|
+
F.prototype.isReactComponent = {}, F.prototype.setState = function(e, t) {
|
|
45753
|
+
if ("object" != typeof e && "function" != typeof e && null != e) throw Error(O(85));
|
|
45754
|
+
this.updater.enqueueSetState(this, e, t, "setState");
|
|
45755
|
+
}, F.prototype.forceUpdate = function(e) {
|
|
45756
|
+
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
45757
|
+
}, $.prototype = F.prototype;
|
|
45758
|
+
var I = A.prototype = new $();
|
|
45759
|
+
I.constructor = A, g(I, F.prototype), I.isPureReactComponent = true;
|
|
45760
|
+
var T = { current: null };
|
|
45761
|
+
var D = Object.prototype.hasOwnProperty;
|
|
45762
|
+
var N = { key: true, ref: true, __self: true, __source: true };
|
|
45763
|
+
function z(e, t, r) {
|
|
45764
|
+
var n, o = {}, a3 = null, i3 = null;
|
|
45765
|
+
if (null != t) for (n in void 0 !== t.ref && (i3 = t.ref), void 0 !== t.key && (a3 = "" + t.key), t) D.call(t, n) && !N.hasOwnProperty(n) && (o[n] = t[n]);
|
|
45766
|
+
var c3 = arguments.length - 2;
|
|
45767
|
+
if (1 === c3) o.children = r;
|
|
45768
|
+
else if (1 < c3) {
|
|
45769
|
+
for (var l2 = Array(c3), u2 = 0; u2 < c3; u2++) l2[u2] = arguments[u2 + 2];
|
|
45770
|
+
o.children = l2;
|
|
45771
|
+
}
|
|
45772
|
+
if (e && e.defaultProps) for (n in c3 = e.defaultProps) void 0 === o[n] && (o[n] = c3[n]);
|
|
45773
|
+
return { $$typeof: b2, type: e, key: a3, ref: i3, props: o, _owner: T.current };
|
|
45774
|
+
}
|
|
45775
|
+
function M(e) {
|
|
45776
|
+
return "object" == typeof e && null !== e && e.$$typeof === b2;
|
|
45777
|
+
}
|
|
45778
|
+
var W = /\/+/g;
|
|
45779
|
+
function U(e, t) {
|
|
45780
|
+
return "object" == typeof e && null !== e && null != e.key ? (function(e2) {
|
|
45781
|
+
var t2 = { "=": "=0", ":": "=2" };
|
|
45782
|
+
return "$" + e2.replace(/[=:]/g, (function(e3) {
|
|
45783
|
+
return t2[e3];
|
|
45784
|
+
}));
|
|
45785
|
+
})("" + e.key) : t.toString(36);
|
|
45786
|
+
}
|
|
45787
|
+
function V(e, t, r, n, o) {
|
|
45788
|
+
var a3 = typeof e;
|
|
45789
|
+
"undefined" !== a3 && "boolean" !== a3 || (e = null);
|
|
45790
|
+
var i3 = false;
|
|
45791
|
+
if (null === e) i3 = true;
|
|
45792
|
+
else switch (a3) {
|
|
45793
|
+
case "string":
|
|
45794
|
+
case "number":
|
|
45795
|
+
i3 = true;
|
|
45796
|
+
break;
|
|
45797
|
+
case "object":
|
|
45798
|
+
switch (e.$$typeof) {
|
|
45799
|
+
case b2:
|
|
45800
|
+
case x:
|
|
45801
|
+
i3 = true;
|
|
45802
|
+
}
|
|
45803
|
+
}
|
|
45804
|
+
if (i3) return o = o(i3 = e), e = "" === n ? "." + U(i3, 0) : n, Array.isArray(o) ? (r = "", null != e && (r = e.replace(W, "$&/") + "/"), V(o, t, r, "", (function(e2) {
|
|
45805
|
+
return e2;
|
|
45806
|
+
}))) : null != o && (M(o) && (o = (function(e2, t2) {
|
|
45807
|
+
return { $$typeof: b2, type: e2.type, key: t2, ref: e2.ref, props: e2.props, _owner: e2._owner };
|
|
45808
|
+
})(o, r + (!o.key || i3 && i3.key === o.key ? "" : ("" + o.key).replace(W, "$&/") + "/") + e)), t.push(o)), 1;
|
|
45809
|
+
if (i3 = 0, n = "" === n ? "." : n + ":", Array.isArray(e)) for (var c3 = 0; c3 < e.length; c3++) {
|
|
45810
|
+
var l2 = n + U(a3 = e[c3], c3);
|
|
45811
|
+
i3 += V(a3, t, r, l2, o);
|
|
45812
|
+
}
|
|
45813
|
+
else if (l2 = (function(e2) {
|
|
45814
|
+
return null === e2 || "object" != typeof e2 ? null : "function" == typeof (e2 = C && e2[C] || e2["@@iterator"]) ? e2 : null;
|
|
45815
|
+
})(e), "function" == typeof l2) for (e = l2.call(e), c3 = 0; !(a3 = e.next()).done; ) i3 += V(a3 = a3.value, t, r, l2 = n + U(a3, c3++), o);
|
|
45816
|
+
else if ("object" === a3) throw t = "" + e, Error(O(31, "[object Object]" === t ? "object with keys {" + Object.keys(e).join(", ") + "}" : t));
|
|
45817
|
+
return i3;
|
|
45818
|
+
}
|
|
45819
|
+
function X(e, t, r) {
|
|
45820
|
+
if (null == e) return e;
|
|
45821
|
+
var n = [], o = 0;
|
|
45822
|
+
return V(e, n, "", "", (function(e2) {
|
|
45823
|
+
return t.call(r, e2, o++);
|
|
45824
|
+
})), n;
|
|
45825
|
+
}
|
|
45826
|
+
function q(e) {
|
|
45827
|
+
if (-1 === e._status) {
|
|
45828
|
+
var t = e._result;
|
|
45829
|
+
t = t(), e._status = 0, e._result = t, t.then((function(t2) {
|
|
45830
|
+
0 === e._status && (t2 = t2.default, e._status = 1, e._result = t2);
|
|
45831
|
+
}), (function(t2) {
|
|
45832
|
+
0 === e._status && (e._status = 2, e._result = t2);
|
|
45833
|
+
}));
|
|
45834
|
+
}
|
|
45835
|
+
if (1 === e._status) return e._result;
|
|
45836
|
+
throw e._result;
|
|
45837
|
+
}
|
|
45838
|
+
var L = { current: null };
|
|
45839
|
+
function Y() {
|
|
45840
|
+
var e = L.current;
|
|
45841
|
+
if (null === e) throw Error(O(321));
|
|
45842
|
+
return e;
|
|
45843
|
+
}
|
|
45844
|
+
var B = { ReactCurrentDispatcher: L, ReactCurrentBatchConfig: { transition: 0 }, ReactCurrentOwner: T, IsSomeRendererActing: { current: false }, assign: g };
|
|
45845
|
+
d.Children = { map: X, forEach: function(e, t, r) {
|
|
45846
|
+
X(e, (function() {
|
|
45847
|
+
t.apply(this, arguments);
|
|
45848
|
+
}), r);
|
|
45849
|
+
}, count: function(e) {
|
|
45850
|
+
var t = 0;
|
|
45851
|
+
return X(e, (function() {
|
|
45852
|
+
t++;
|
|
45853
|
+
})), t;
|
|
45854
|
+
}, toArray: function(e) {
|
|
45855
|
+
return X(e, (function(e2) {
|
|
45856
|
+
return e2;
|
|
45857
|
+
})) || [];
|
|
45858
|
+
}, only: function(e) {
|
|
45859
|
+
if (!M(e)) throw Error(O(143));
|
|
45860
|
+
return e;
|
|
45861
|
+
} }, d.Component = F, d.PureComponent = A, d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = B, d.cloneElement = function(e, t, r) {
|
|
45862
|
+
if (null == e) throw Error(O(267, e));
|
|
45863
|
+
var n = g({}, e.props), o = e.key, a3 = e.ref, i3 = e._owner;
|
|
45864
|
+
if (null != t) {
|
|
45865
|
+
if (void 0 !== t.ref && (a3 = t.ref, i3 = T.current), void 0 !== t.key && (o = "" + t.key), e.type && e.type.defaultProps) var c3 = e.type.defaultProps;
|
|
45866
|
+
for (l2 in t) D.call(t, l2) && !N.hasOwnProperty(l2) && (n[l2] = void 0 === t[l2] && void 0 !== c3 ? c3[l2] : t[l2]);
|
|
45867
|
+
}
|
|
45868
|
+
var l2 = arguments.length - 2;
|
|
45869
|
+
if (1 === l2) n.children = r;
|
|
45870
|
+
else if (1 < l2) {
|
|
45871
|
+
c3 = Array(l2);
|
|
45872
|
+
for (var u2 = 0; u2 < l2; u2++) c3[u2] = arguments[u2 + 2];
|
|
45873
|
+
n.children = c3;
|
|
45874
|
+
}
|
|
45875
|
+
return { $$typeof: b2, type: e.type, key: o, ref: a3, props: n, _owner: i3 };
|
|
45876
|
+
}, d.createContext = function(e, t) {
|
|
45877
|
+
return void 0 === t && (t = null), (e = { $$typeof: _, _calculateChangedBits: t, _currentValue: e, _currentValue2: e, _threadCount: 0, Provider: null, Consumer: null }).Provider = { $$typeof: w, _context: e }, e.Consumer = e;
|
|
45878
|
+
}, d.createElement = z, d.createFactory = function(e) {
|
|
45879
|
+
var t = z.bind(null, e);
|
|
45880
|
+
return t.type = e, t;
|
|
45881
|
+
}, d.createRef = function() {
|
|
45882
|
+
return { current: null };
|
|
45883
|
+
}, d.forwardRef = function(e) {
|
|
45884
|
+
return { $$typeof: S, render: e };
|
|
45885
|
+
}, d.isValidElement = M, d.lazy = function(e) {
|
|
45886
|
+
return { $$typeof: k, _payload: { _status: -1, _result: e }, _init: q };
|
|
45887
|
+
}, d.memo = function(e, t) {
|
|
45888
|
+
return { $$typeof: R, type: e, compare: void 0 === t ? null : t };
|
|
45889
|
+
}, d.useCallback = function(e, t) {
|
|
45890
|
+
return Y().useCallback(e, t);
|
|
45891
|
+
}, d.useContext = function(e, t) {
|
|
45892
|
+
return Y().useContext(e, t);
|
|
45893
|
+
}, d.useDebugValue = function() {
|
|
45894
|
+
}, d.useEffect = function(e, t) {
|
|
45895
|
+
return Y().useEffect(e, t);
|
|
45896
|
+
}, d.useImperativeHandle = function(e, t, r) {
|
|
45897
|
+
return Y().useImperativeHandle(e, t, r);
|
|
45898
|
+
}, d.useLayoutEffect = function(e, t) {
|
|
45899
|
+
return Y().useLayoutEffect(e, t);
|
|
45900
|
+
}, d.useMemo = function(e, t) {
|
|
45901
|
+
return Y().useMemo(e, t);
|
|
45902
|
+
}, d.useReducer = function(e, t, r) {
|
|
45903
|
+
return Y().useReducer(e, t, r);
|
|
45904
|
+
}, d.useRef = function(e) {
|
|
45905
|
+
return Y().useRef(e);
|
|
45906
|
+
}, d.useState = function(e) {
|
|
45907
|
+
return Y().useState(e);
|
|
45908
|
+
}, d.version = "17.0.2";
|
|
45909
|
+
var H;
|
|
45910
|
+
var G = {};
|
|
45911
|
+
H = G, false, true ? p.exports = d : p.exports = G;
|
|
45912
|
+
var J = p.exports;
|
|
45913
|
+
var K = (function() {
|
|
45914
|
+
return r = function e(r2) {
|
|
45915
|
+
var n2 = this;
|
|
45916
|
+
!(function(e2, t) {
|
|
45917
|
+
if (!(e2 instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
45918
|
+
})(this, e), u(this, "seperator", ","), this.promise = new Promise((function(e2, o2) {
|
|
45919
|
+
fetch(staticFile(r2)).then((function(e3) {
|
|
45920
|
+
return e3.text();
|
|
45921
|
+
})).then((function(t) {
|
|
45922
|
+
n2.text = t, e2();
|
|
45923
|
+
})).catch((function(e3) {
|
|
45924
|
+
console.log("Error fetching subtitles", e3), o2(e3);
|
|
45695
45925
|
}));
|
|
45696
45926
|
}));
|
|
45697
|
-
},
|
|
45927
|
+
}, n = [{ key: "ready", value: function() {
|
|
45698
45928
|
return this.promise;
|
|
45699
|
-
} }, { key: "timestampToSeconds", value: function(
|
|
45700
|
-
var
|
|
45701
|
-
return parseInt(
|
|
45702
|
-
})), 3),
|
|
45703
|
-
return Math.round(1e3 *
|
|
45704
|
-
} }, { key: "correctFormat", value: function(
|
|
45705
|
-
var
|
|
45706
|
-
|
|
45707
|
-
var
|
|
45708
|
-
return
|
|
45709
|
-
} }, { key: "fixed_str_digit", value: function(
|
|
45929
|
+
} }, { key: "timestampToSeconds", value: function(e) {
|
|
45930
|
+
var t = s(e.split(","), 2), r2 = t[0], n2 = t[1], o2 = parseInt(n2), a3 = r2.split(":").map((function(e2) {
|
|
45931
|
+
return parseInt(e2);
|
|
45932
|
+
})), i3 = s(a3, 3), c3 = i3[0], l2 = i3[1], u2 = 1e-3 * o2 + i3[2] + 60 * l2 + 3600 * c3;
|
|
45933
|
+
return Math.round(1e3 * u2) / 1e3;
|
|
45934
|
+
} }, { key: "correctFormat", value: function(e) {
|
|
45935
|
+
var t, r2, n2, o2, a3 = s(e.replace(".", ",").split(","), 2), i3 = a3[0], c3 = a3[1];
|
|
45936
|
+
o2 = this.fixed_str_digit(3, c3);
|
|
45937
|
+
var l2 = s(i3.split(":"), 3), u2 = l2[0], f2 = l2[1], p2 = l2[2];
|
|
45938
|
+
return t = this.fixed_str_digit(2, u2, false), r2 = this.fixed_str_digit(2, f2, false), n2 = this.fixed_str_digit(2, p2, false), "".concat(t, ":").concat(r2, ":").concat(n2, ",").concat(o2);
|
|
45939
|
+
} }, { key: "fixed_str_digit", value: function(e, t) {
|
|
45710
45940
|
var r2 = !(arguments.length > 2 && void 0 !== arguments[2]) || arguments[2];
|
|
45711
|
-
return
|
|
45712
|
-
} }, { key: "commaParser", value: function(
|
|
45713
|
-
var
|
|
45714
|
-
return
|
|
45715
|
-
} }, { key: "dotParser", value: function(
|
|
45716
|
-
var
|
|
45717
|
-
return
|
|
45718
|
-
} }, { key: "fromSrt", value: function(
|
|
45719
|
-
var
|
|
45720
|
-
0 == r2.length && (r2 = this.dotParser(
|
|
45721
|
-
for (var
|
|
45722
|
-
var
|
|
45723
|
-
|
|
45724
|
-
}
|
|
45725
|
-
return
|
|
45726
|
-
} }, { key: "toSrt", value: function(
|
|
45727
|
-
for (var
|
|
45728
|
-
var
|
|
45729
|
-
|
|
45730
|
-
}
|
|
45731
|
-
return
|
|
45941
|
+
return t.length == e ? t : t.length > e ? t.slice(0, e) : t.length < e ? r2 ? t.padEnd(e, "0") : t.padStart(e, "0") : void 0;
|
|
45942
|
+
} }, { key: "commaParser", value: function(e) {
|
|
45943
|
+
var t = (e = e.replace(/\r/g, "")).split(/(\d+)\n(\d{1,2}:\d{2}:\d{2},\d{1,3}) --> (\d{1,2}:\d{2}:\d{2},\d{1,3})/g);
|
|
45944
|
+
return t.shift(), t;
|
|
45945
|
+
} }, { key: "dotParser", value: function(e) {
|
|
45946
|
+
var t = (e = e.replace(/\r/g, "")).split(/(\d+)\n(\d{1,2}:\d{2}:\d{2}\.\d{1,3}) --> (\d{1,2}:\d{2}:\d{2}\.\d{1,3})/g);
|
|
45947
|
+
return t.shift(), this.seperator = ".", t;
|
|
45948
|
+
} }, { key: "fromSrt", value: function(e) {
|
|
45949
|
+
var t = e, r2 = this.commaParser(t);
|
|
45950
|
+
0 == r2.length && (r2 = this.dotParser(t));
|
|
45951
|
+
for (var n2 = [], o2 = 0; o2 < r2.length; o2 += 4) {
|
|
45952
|
+
var a3 = this.correctFormat(r2[o2 + 1].trim()), i3 = this.correctFormat(r2[o2 + 2].trim()), c3 = { id: r2[o2].trim(), startTime: a3, startSeconds: this.timestampToSeconds(a3), endTime: i3, endSeconds: this.timestampToSeconds(i3), text: r2[o2 + 3].trim() };
|
|
45953
|
+
n2.push(c3);
|
|
45954
|
+
}
|
|
45955
|
+
return n2;
|
|
45956
|
+
} }, { key: "toSrt", value: function(e) {
|
|
45957
|
+
for (var t = "", r2 = "\r\n", n2 = 0; n2 < e.length; n2++) {
|
|
45958
|
+
var o2 = e[n2];
|
|
45959
|
+
t += o2.id + r2, t += o2.startTime + " --> " + o2.endTime + r2, t += o2.text.replace("\n", r2) + r2 + r2;
|
|
45960
|
+
}
|
|
45961
|
+
return t;
|
|
45732
45962
|
} }, { key: "getSequences", value: function() {
|
|
45733
|
-
var
|
|
45734
|
-
return this.getArray(r2).map((function(r3,
|
|
45735
|
-
return
|
|
45963
|
+
var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : null, r2 = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 30;
|
|
45964
|
+
return this.getArray(r2).map((function(r3, n2) {
|
|
45965
|
+
return J.createElement(Sequence, { key: n2, durationInFrames: r3.endFrame - r3.startFrame, from: r3.startFrame }, t && J.isValidElement(t) ? J.createElement(t.type, i2(i2({}, t.props), {}, { text: r3.text }), t.props.children) : J.createElement("h1", null, r3.text));
|
|
45736
45966
|
}));
|
|
45737
|
-
} }, { key: "setData", value: function(
|
|
45738
|
-
this.text =
|
|
45739
|
-
} }, { key: "getArray", value: function(
|
|
45740
|
-
return this.fromSrt(this.text).map((function(
|
|
45741
|
-
return { text:
|
|
45967
|
+
} }, { key: "setData", value: function(e) {
|
|
45968
|
+
this.text = e;
|
|
45969
|
+
} }, { key: "getArray", value: function(e) {
|
|
45970
|
+
return this.fromSrt(this.text).map((function(t) {
|
|
45971
|
+
return { text: t.text, startFrame: t.startSeconds * e, endFrame: t.endSeconds * e };
|
|
45742
45972
|
}));
|
|
45743
|
-
} }],
|
|
45744
|
-
var r,
|
|
45973
|
+
} }], n && l(r.prototype, n), o && l(r, o), Object.defineProperty(r, "prototype", { writable: false }), r;
|
|
45974
|
+
var r, n, o;
|
|
45745
45975
|
})();
|
|
45746
|
-
var
|
|
45747
|
-
var
|
|
45976
|
+
var Q = function(e) {
|
|
45977
|
+
var t = e.text, a3 = e.style, c3 = useCurrentFrame();
|
|
45748
45978
|
useVideoConfig().fps;
|
|
45749
|
-
var
|
|
45750
|
-
return
|
|
45979
|
+
var l2 = i2({ fontFamily: "Arial", fontSize: "11vmin", textAlign: "center", fontWeight: "bold", color: "white", textShadow: "-1px 1px 10px rgba(1, 1, 1, 0.95)", position: "absolute", bottom: "20px", left: "50%", transform: "translateX(-50%)", opacity: interpolate(c3, [0, 5], [0, 1], { extrapolateRight: "clamp" }) }, a3);
|
|
45980
|
+
return J.createElement("span", { style: l2 }, t);
|
|
45751
45981
|
};
|
|
45752
|
-
var
|
|
45753
|
-
var
|
|
45754
|
-
return
|
|
45982
|
+
var Z = function(e) {
|
|
45983
|
+
var t = e.text, a3 = e.style, c3 = useCurrentFrame(), l2 = useVideoConfig().durationInFrames, u2 = interpolate(c3, [0, 0.1 * l2, 0.2 * l2, 0.3 * l2, 0.4 * l2, 0.8 * l2, 0.9 * l2, l2], [0, 20, 13, 0, 0, 13, 20, 0], { extrapolateRight: "clamp" }), s2 = interpolate(c3, [0, 0.2 * l2, 0.8 * l2, l2], [0, 1, 1, 0], { extrapolateRight: "clamp" }), f2 = i2({ fontFamily: "Consolas, monospace", fontSize: "10vmin", textAlign: "center", fontWeight: "bold", color: "white", textShadow: "0 0 10px rgba(255, 255, 255, 0.5)", position: "absolute", bottom: "".concat(u2, "px"), left: "50%", transform: "translateX(-50%)", opacity: s2 }, a3);
|
|
45984
|
+
return J.createElement("span", { style: f2 }, t);
|
|
45755
45985
|
};
|
|
45756
|
-
var
|
|
45757
|
-
var
|
|
45758
|
-
return
|
|
45986
|
+
var ee = function(e) {
|
|
45987
|
+
var t = e.text, n = e.style, a3 = useCurrentFrame(), c3 = i2({ fontFamily: "Arial", fontSize: "11vmin", textAlign: "center", fontWeight: "bold", color: "rgb(".concat(interpolate(a3, [0, 10], [255, 0], { extrapolateRight: "clamp" }), ", ").concat(interpolate(a3, [0, 10], [0, 255], { extrapolateRight: "clamp" }), ", ").concat(interpolate(a3, [0, 10], [0, 255], { extrapolateRight: "clamp" }), ")"), textShadow: "-1px 1px 10px rgba(1, 1, 1, 0.95)", position: "absolute", bottom: "20px", left: "50%", transform: "translateX(-50%)" }, n);
|
|
45988
|
+
return J.createElement("span", { style: c3 }, t);
|
|
45759
45989
|
};
|
|
45760
|
-
var
|
|
45761
|
-
var
|
|
45762
|
-
return
|
|
45990
|
+
var te = function(e) {
|
|
45991
|
+
var t = e.text, a3 = e.style, c3 = useCurrentFrame(), l2 = useVideoConfig().durationInFrames, s2 = interpolate(c3, [0, 0.2 * l2, 0.6 * l2, l2], [0.5, 1.2, 1, 0.5], { extrapolateRight: "clamp" }), f2 = interpolate(c3, [0, 0.2 * l2, 0.6 * l2, l2], [0, 10, -10, 0], { extrapolateRight: "clamp" }), p2 = interpolate(c3, [0, 0.2 * l2, 0.6 * l2, l2], [0, 1, 1, 0], { extrapolateRight: "clamp" }), d2 = "rgba(255, 255, 0, ".concat(interpolate(c3, [0, 0.2 * l2, 0.6 * l2, l2], [0, 0.8, 0.8, 0], { extrapolateRight: "clamp" }), ")"), y2 = i2(u(u({ fontFamily: "Verdana, sans-serif", fontSize: "10vmin", textAlign: "center", fontWeight: "bold", color: "white", textShadow: "0 0 20px ".concat(d2, ", 0 0 40px ").concat(d2), transform: "scale(".concat(s2, ") rotate(").concat(f2, "deg)"), position: "absolute", bottom: "20px", left: "50%" }, "transform", "translateX(-50%)"), "opacity", p2), a3);
|
|
45992
|
+
return J.createElement("span", { style: y2 }, t);
|
|
45763
45993
|
};
|
|
45764
|
-
var
|
|
45765
|
-
var
|
|
45766
|
-
return
|
|
45994
|
+
var re = function(e) {
|
|
45995
|
+
var t = e.text, a3 = e.style, c3 = useCurrentFrame(), l2 = useVideoConfig().durationInFrames, u2 = i2({ fontFamily: "Georgia, serif", fontSize: "10vmin", textAlign: "center", fontWeight: "bold", color: "white", textShadow: "0 0 10px rgba(255, 255, 255, 0.5)", position: "absolute", bottom: "20px", left: "50%", transform: "translateX(-50%)", opacity: interpolate(c3, [0, 0.2 * l2, 0.8 * l2, l2], [0, 1, 1, 0], { extrapolateRight: "clamp" }) }, a3);
|
|
45996
|
+
return J.createElement("span", { style: u2 }, t);
|
|
45767
45997
|
};
|
|
45768
|
-
var
|
|
45769
|
-
var
|
|
45770
|
-
return
|
|
45998
|
+
var ne = function(e) {
|
|
45999
|
+
var t = e.text, a3 = e.style, c3 = useCurrentFrame(), l2 = useVideoConfig().durationInFrames, u2 = interpolate(c3, [0, 0.1 * l2, 0.2 * l2, 0.3 * l2, l2], [0, 10, -10, 10, 0], { extrapolateRight: "clamp" }), s2 = interpolate(c3, [0, 0.2 * l2, 0.6 * l2, l2], [0, 1, 1, 0], { extrapolateRight: "clamp" }), f2 = i2({ fontFamily: "Cinzel, serif", fontSize: "10vmin", textAlign: "center", fontWeight: "bold", color: "transparent", WebkitBackgroundClip: "text", backgroundImage: "linear-gradient(to right, \n hsl(".concat(interpolate(c3, [0, 0.5 * l2, l2], [0, 20, 20], { extrapolateRight: "clamp" }), ", 100%, 50%), \n hsl(").concat(interpolate(c3, [0, 0.5 * l2, l2], [30, 50, 50], { extrapolateRight: "clamp" }), ", 100%, 50%), \n hsl(").concat(interpolate(c3, [0, 0.5 * l2, l2], [60, 80, 80], { extrapolateRight: "clamp" }), ", 100%, 50%))"), backgroundSize: "200% 200%", backgroundPosition: "center", transform: "translateX(-50%) translateY(".concat(u2, "px)"), position: "absolute", bottom: "20px", left: "50%", opacity: s2 }, a3);
|
|
46000
|
+
return J.createElement("span", { style: f2 }, t);
|
|
45771
46001
|
};
|
|
45772
|
-
var
|
|
45773
|
-
var
|
|
46002
|
+
var oe = function(e) {
|
|
46003
|
+
var t = e.text, a3 = e.style, c3 = useCurrentFrame();
|
|
45774
46004
|
useVideoConfig().fps;
|
|
45775
|
-
var
|
|
45776
|
-
return
|
|
46005
|
+
var l2 = interpolate(c3, [0, 5], [0, 1], { extrapolateRight: "clamp" }), u2 = interpolate(c3, [0, 2, 4, 6, 8], [0, 10, -10, 5, 0], { extrapolateRight: "clamp" }), s2 = interpolate(c3, [0, 3, 5, 7, 9], [0, 5, -5, 3, 0], { extrapolateRight: "clamp" }), f2 = i2({ fontFamily: "VT323, monospace", fontSize: "10vmin", textAlign: "center", fontWeight: "bold", color: "white", textShadow: "0 0 10px rgba(255, 255, 255, 0.5)", position: "absolute", bottom: "20px", left: "50%", transform: "translateX(-50%) translateX(".concat(u2, "px) translateY(").concat(s2, "px)"), opacity: l2 }, a3);
|
|
46006
|
+
return J.createElement("span", { style: f2 }, t);
|
|
45777
46007
|
};
|
|
45778
|
-
var
|
|
45779
|
-
var
|
|
45780
|
-
return
|
|
46008
|
+
var ae = function(e) {
|
|
46009
|
+
var t = e.text, a3 = e.style, c3 = useCurrentFrame(), l2 = useVideoConfig().durationInFrames, s2 = interpolate(c3, [0, 0.2 * l2, 0.8 * l2, l2], [0, 1, 1, 0], { extrapolateRight: "clamp" }), f2 = interpolate(c3, [0, 0.5 * l2, l2], [1, 1.2, 1], { extrapolateRight: "clamp" }), p2 = i2(u({ fontFamily: "Helvetica, Arial, sans-serif", fontSize: "10vmin", textAlign: "center", fontWeight: "bold", color: "white", textShadow: "0 0 20px rgba(255, 255, 255, ".concat(s2, "), 0 0 50px rgba(255, 255, 255, ").concat(s2, ")"), transform: "scale(".concat(f2, ")"), position: "absolute", bottom: "20px", left: "50%" }, "transform", "translateX(-50%)"), a3);
|
|
46010
|
+
return J.createElement("span", { style: p2 }, t);
|
|
45781
46011
|
};
|
|
45782
|
-
var
|
|
45783
|
-
var
|
|
45784
|
-
return
|
|
46012
|
+
var ie = function(e) {
|
|
46013
|
+
var t = e.text, a3 = e.style, c3 = useCurrentFrame(), l2 = useVideoConfig().durationInFrames, u2 = interpolate(c3, [0, 0.1 * l2, 0.2 * l2, 0.3 * l2, l2], [0, 10, -10, 10, 0], { extrapolateRight: "clamp" }), s2 = interpolate(c3, [0, 0.1 * l2, 0.2 * l2, 0.3 * l2, l2], [0, 20, -20, 20, 0], { extrapolateRight: "clamp" }), f2 = interpolate(c3, [0, 0.2 * l2, 0.6 * l2, l2], [0, 1, 1, 0], { extrapolateRight: "clamp" }), p2 = "rgba(255, 255, 255, ".concat(interpolate(c3, [0, 0.2 * l2, 0.6 * l2, l2], [0, 0.8, 0.8, 0], { extrapolateRight: "clamp" }), ")"), d2 = i2({ fontFamily: "Bungee, cursive", fontSize: "10vmin", textAlign: "center", fontWeight: "bold", color: "white", textShadow: "0 0 20px ".concat(p2, ", 0 0 40px ").concat(p2), transform: "translateX(-50%) translateX(".concat(s2, "px) translateY(").concat(u2, "px)"), position: "absolute", bottom: "20px", left: "50%", opacity: f2 }, a3);
|
|
46014
|
+
return J.createElement("span", { style: d2 }, t);
|
|
45785
46015
|
};
|
|
45786
|
-
var
|
|
45787
|
-
var
|
|
46016
|
+
var ce = function(e) {
|
|
46017
|
+
var t = e.text, a3 = e.style, c3 = useCurrentFrame();
|
|
45788
46018
|
useVideoConfig().fps;
|
|
45789
|
-
var
|
|
45790
|
-
return
|
|
46019
|
+
var l2 = interpolate(c3, [0, 5], [0, 1], { extrapolateRight: "clamp" }), u2 = "rgba(".concat(interpolate(c3, [0, 10], [255, 0], { extrapolateRight: "clamp" }), ", ").concat(interpolate(c3, [0, 10], [255, 255], { extrapolateRight: "clamp" }), ", ").concat(interpolate(c3, [0, 10], [0, 0], { extrapolateRight: "clamp" }), ", ").concat(l2, ")"), s2 = i2({ fontFamily: "Neon Glow, sans-serif", fontSize: "10vmin", textAlign: "center", fontWeight: "bold", color: "white", textShadow: "0 0 10px ".concat(u2, ", 0 0 20px ").concat(u2, ", 0 0 30px ").concat(u2, ", 0 0 40px ").concat(u2), position: "absolute", bottom: "20px", left: "50%", transform: "translateX(-50%)", opacity: l2 }, a3);
|
|
46020
|
+
return J.createElement("span", { style: s2 }, t);
|
|
45791
46021
|
};
|
|
45792
|
-
var
|
|
45793
|
-
var
|
|
45794
|
-
return
|
|
46022
|
+
var le = function(e) {
|
|
46023
|
+
var t = e.text, a3 = e.style, c3 = useCurrentFrame(), l2 = useVideoConfig().durationInFrames, u2 = interpolate(c3, [0, 0.2 * l2, l2], [0, 360, 360], { extrapolateRight: "clamp" }), s2 = interpolate(c3, [0, 0.2 * l2, 0.8 * l2, l2], [0, 1, 1, 0], { extrapolateRight: "clamp" }), f2 = i2({ fontFamily: "Verdana, sans-serif", fontSize: "10vmin", textAlign: "center", fontWeight: "bold", color: "white", textShadow: "0 0 10px rgba(255, 255, 255, 0.5)", position: "absolute", bottom: "20px", left: "50%", transform: "translateX(-50%) rotate(".concat(u2, "deg)"), opacity: s2 }, a3);
|
|
46024
|
+
return J.createElement("span", { style: f2 }, t);
|
|
45795
46025
|
};
|
|
45796
|
-
var
|
|
45797
|
-
var
|
|
45798
|
-
return
|
|
46026
|
+
var ue = function(e) {
|
|
46027
|
+
var t = e.text, a3 = e.style, c3 = useCurrentFrame(), l2 = useVideoConfig().durationInFrames, u2 = interpolate(c3, [0, 0.1 * l2, 0.2 * l2, 0.3 * l2, 0.4 * l2, l2], [-15, 15, -15, 15, -15, 0], { extrapolateRight: "clamp" }), s2 = interpolate(c3, [0, 0.1 * l2, 0.2 * l2, 0.3 * l2, 0.4 * l2, l2], [0, 5, -5, 5, -5, 0], { extrapolateRight: "clamp" }), f2 = interpolate(c3, [0, 0.2 * l2, 0.8 * l2, l2], [0, 1, 1, 0], { extrapolateRight: "clamp" }), p2 = interpolate(c3, [0, 0.3 * l2, 0.7 * l2, l2], [14, 0, 0, 14], { extrapolateRight: "clamp" }), d2 = i2({ fontFamily: "Tahoma, sans-serif", fontSize: "10vmin", filter: "blur(".concat(p2, "px)"), textAlign: "center", fontWeight: "bold", color: "white", textShadow: "0 0 10px rgba(0, 0, 0, 0.9)", position: "absolute", bottom: "20px", left: "50%", transform: "translateX(-50%) translateX(".concat(u2, "px) translateY(").concat(s2, "px)"), opacity: f2 }, a3);
|
|
46028
|
+
return J.createElement("span", { style: d2 }, t);
|
|
45799
46029
|
};
|
|
45800
|
-
var
|
|
45801
|
-
var
|
|
45802
|
-
return
|
|
46030
|
+
var se = function(e) {
|
|
46031
|
+
var t = e.text, r = i2({ fontFamily: '"Helvetica Neue", sans-serif', fontSize: "6em", color: "#22313F", textAlign: "center", textTransform: "uppercase", letterSpacing: "0.03em", textShadow: "-0.09em 0 0 #F22613, 0.09em 0 0 #00FFFF", position: "absolute", bottom: "20px", left: "50%", transform: "translateX(-50%)" }, e.style);
|
|
46032
|
+
return J.createElement("div", { style: r }, t);
|
|
45803
46033
|
};
|
|
45804
|
-
var
|
|
45805
|
-
var
|
|
46034
|
+
var fe = function(e) {
|
|
46035
|
+
var t = e.text, a3 = e.style, c3 = useCurrentFrame();
|
|
45806
46036
|
useVideoConfig().fps;
|
|
45807
|
-
var
|
|
45808
|
-
return
|
|
45809
|
-
};
|
|
45810
|
-
var
|
|
45811
|
-
var
|
|
45812
|
-
return
|
|
45813
|
-
};
|
|
45814
|
-
var
|
|
45815
|
-
var
|
|
45816
|
-
|
|
45817
|
-
var
|
|
45818
|
-
return
|
|
45819
|
-
return
|
|
46037
|
+
var l2 = interpolate(c3, [0, 5], [0, 1], { extrapolateRight: "clamp" }), u2 = interpolate(c3, [0, 5], [10, 0], { extrapolateRight: "clamp" }), s2 = i2({ fontFamily: "Roboto, sans-serif", fontSize: "10vmin", textAlign: "center", fontWeight: "bold", color: "white", textShadow: "0 0 10px rgba(255, 255, 255, 0.5)", position: "absolute", bottom: "20px", left: "50%", transform: "translateX(-50%)", opacity: l2, filter: "blur(".concat(u2, "px)") }, a3);
|
|
46038
|
+
return J.createElement("span", { style: s2 }, t);
|
|
46039
|
+
};
|
|
46040
|
+
var pe = function(e) {
|
|
46041
|
+
var t = e.text, a3 = e.style, c3 = useCurrentFrame(), l2 = useVideoConfig(), u2 = l2.durationInFrames, s2 = l2.fps, f2 = interpolate(c3, [0, 0.5 * u2], [0, t.length], { extrapolateRight: "clamp" }), p2 = i2({ fontFamily: "Courier New, monospace", fontSize: "10vmin", textAlign: "center", fontWeight: "bold", color: "white", textShadow: "0 0 10px rgba(255, 255, 255, 0.5)", position: "absolute", bottom: "20px", left: "50%", transform: "translateX(-50%)", overflow: "hidden", whiteSpace: "nowrap", width: "100%" }, a3);
|
|
46042
|
+
return J.createElement("span", { style: p2 }, t.slice(0, Math.floor(f2)), J.createElement("span", { style: { opacity: interpolate(c3 % (0.5 * s2), [0, 0.5 * s2], [0, 1], { extrapolateRight: "clamp" }) } }, "|"));
|
|
46043
|
+
};
|
|
46044
|
+
var de = function(e) {
|
|
46045
|
+
var t = e.text, a3 = e.style, c3 = useCurrentFrame(), l2 = useVideoConfig(), u2 = l2.durationInFrames;
|
|
46046
|
+
l2.fps;
|
|
46047
|
+
var s2 = interpolate(c3, [0, u2], [0, 2 * Math.PI], { extrapolateRight: "clamp" }), f2 = i2({ fontFamily: "Georgia, serif", fontSize: "10vmin", fontWeight: "bold", color: "white", textShadow: "0 0 10px rgba(255, 255, 255, 0.5)", position: "absolute", bottom: "20px", left: "50%", transform: "translateX(-50%)", display: "flex", flexDirection: "row", justifyContent: "center" }, a3);
|
|
46048
|
+
return J.createElement("span", { style: f2 }, t.split("").map((function(e2, t2) {
|
|
46049
|
+
return J.createElement("span", { key: t2, style: { transform: "translateY(".concat(20 * Math.sin(s2 + 0.5 * t2), "px)"), display: "inline-block", marginRight: "0.2em" } }, e2);
|
|
45820
46050
|
})));
|
|
45821
46051
|
};
|
|
45822
|
-
var
|
|
45823
|
-
var
|
|
45824
|
-
return
|
|
46052
|
+
var ye = function(e) {
|
|
46053
|
+
var t = e.text, a3 = e.style, c3 = useCurrentFrame(), l2 = useVideoConfig().durationInFrames, u2 = interpolate(c3, [0, 0.1 * l2, 0.9 * l2, l2], [0.5, 1, 1, 0.5], { extrapolateRight: "clamp" }), s2 = interpolate(c3, [0, 0.1 * l2, 0.9 * l2, l2], [0, 1, 1, 0], { extrapolateRight: "clamp" }), f2 = i2({ fontFamily: "Roboto, Arial, sans-serif", fontSize: "10vmin", textAlign: "center", fontWeight: "bold", color: "white", textShadow: "0 0 10px rgba(255, 255, 255, 0.5)", position: "absolute", bottom: "20px", left: "50%", transform: "translateX(-50%) scale(".concat(u2, ")"), opacity: s2 }, a3);
|
|
46054
|
+
return J.createElement("span", { style: f2 }, t);
|
|
45825
46055
|
};
|
|
45826
46056
|
|
|
45827
46057
|
// src/types/Subtitle.tsx
|
|
@@ -46497,7 +46727,7 @@ function $constructor(name, initializer3, params) {
|
|
|
46497
46727
|
Object.defineProperty(inst, "_zod", {
|
|
46498
46728
|
value: {
|
|
46499
46729
|
def,
|
|
46500
|
-
constr:
|
|
46730
|
+
constr: _2,
|
|
46501
46731
|
traits: /* @__PURE__ */ new Set()
|
|
46502
46732
|
},
|
|
46503
46733
|
enumerable: false
|
|
@@ -46508,7 +46738,7 @@ function $constructor(name, initializer3, params) {
|
|
|
46508
46738
|
}
|
|
46509
46739
|
inst._zod.traits.add(name);
|
|
46510
46740
|
initializer3(inst, def);
|
|
46511
|
-
const proto =
|
|
46741
|
+
const proto = _2.prototype;
|
|
46512
46742
|
const keys = Object.keys(proto);
|
|
46513
46743
|
for (let i3 = 0; i3 < keys.length; i3++) {
|
|
46514
46744
|
const k2 = keys[i3];
|
|
@@ -46521,7 +46751,7 @@ function $constructor(name, initializer3, params) {
|
|
|
46521
46751
|
class Definition extends Parent {
|
|
46522
46752
|
}
|
|
46523
46753
|
Object.defineProperty(Definition, "name", { value: name });
|
|
46524
|
-
function
|
|
46754
|
+
function _2(def) {
|
|
46525
46755
|
var _a3;
|
|
46526
46756
|
const inst = params?.Parent ? new Definition() : this;
|
|
46527
46757
|
init(inst, def);
|
|
@@ -46531,16 +46761,16 @@ function $constructor(name, initializer3, params) {
|
|
|
46531
46761
|
}
|
|
46532
46762
|
return inst;
|
|
46533
46763
|
}
|
|
46534
|
-
Object.defineProperty(
|
|
46535
|
-
Object.defineProperty(
|
|
46764
|
+
Object.defineProperty(_2, "init", { value: init });
|
|
46765
|
+
Object.defineProperty(_2, Symbol.hasInstance, {
|
|
46536
46766
|
value: (inst) => {
|
|
46537
46767
|
if (params?.Parent && inst instanceof params.Parent)
|
|
46538
46768
|
return true;
|
|
46539
46769
|
return inst?._zod?.traits?.has(name);
|
|
46540
46770
|
}
|
|
46541
46771
|
});
|
|
46542
|
-
Object.defineProperty(
|
|
46543
|
-
return
|
|
46772
|
+
Object.defineProperty(_2, "name", { value: name });
|
|
46773
|
+
return _2;
|
|
46544
46774
|
}
|
|
46545
46775
|
var $brand = /* @__PURE__ */ Symbol("zod_brand");
|
|
46546
46776
|
var $ZodAsyncError = class extends Error {
|
|
@@ -46638,17 +46868,17 @@ function assertIs(_arg) {
|
|
|
46638
46868
|
function assertNever(_x) {
|
|
46639
46869
|
throw new Error("Unexpected value in exhaustive check");
|
|
46640
46870
|
}
|
|
46641
|
-
function assert(
|
|
46871
|
+
function assert(_2) {
|
|
46642
46872
|
}
|
|
46643
46873
|
function getEnumValues(entries) {
|
|
46644
46874
|
const numericValues = Object.values(entries).filter((v2) => typeof v2 === "number");
|
|
46645
|
-
const values = Object.entries(entries).filter(([k2,
|
|
46875
|
+
const values = Object.entries(entries).filter(([k2, _2]) => numericValues.indexOf(+k2) === -1).map(([_2, v2]) => v2);
|
|
46646
46876
|
return values;
|
|
46647
46877
|
}
|
|
46648
46878
|
function joinValues(array2, separator = "|") {
|
|
46649
46879
|
return array2.map((val) => stringifyPrimitive(val)).join(separator);
|
|
46650
46880
|
}
|
|
46651
|
-
function jsonStringifyReplacer(
|
|
46881
|
+
function jsonStringifyReplacer(_2, value) {
|
|
46652
46882
|
if (typeof value === "bigint")
|
|
46653
46883
|
return value.toString();
|
|
46654
46884
|
return value;
|
|
@@ -46777,14 +47007,14 @@ var allowsEval = cached(() => {
|
|
|
46777
47007
|
const F2 = Function;
|
|
46778
47008
|
new F2("");
|
|
46779
47009
|
return true;
|
|
46780
|
-
} catch (
|
|
47010
|
+
} catch (_2) {
|
|
46781
47011
|
return false;
|
|
46782
47012
|
}
|
|
46783
47013
|
});
|
|
46784
|
-
function isPlainObject(
|
|
46785
|
-
if (isObject(
|
|
47014
|
+
function isPlainObject(o) {
|
|
47015
|
+
if (isObject(o) === false)
|
|
46786
47016
|
return false;
|
|
46787
|
-
const ctor =
|
|
47017
|
+
const ctor = o.constructor;
|
|
46788
47018
|
if (ctor === void 0)
|
|
46789
47019
|
return true;
|
|
46790
47020
|
if (typeof ctor !== "function")
|
|
@@ -46797,12 +47027,12 @@ function isPlainObject(o2) {
|
|
|
46797
47027
|
}
|
|
46798
47028
|
return true;
|
|
46799
47029
|
}
|
|
46800
|
-
function shallowClone(
|
|
46801
|
-
if (isPlainObject(
|
|
46802
|
-
return { ...
|
|
46803
|
-
if (Array.isArray(
|
|
46804
|
-
return [...
|
|
46805
|
-
return
|
|
47030
|
+
function shallowClone(o) {
|
|
47031
|
+
if (isPlainObject(o))
|
|
47032
|
+
return { ...o };
|
|
47033
|
+
if (Array.isArray(o))
|
|
47034
|
+
return [...o];
|
|
47035
|
+
return o;
|
|
46806
47036
|
}
|
|
46807
47037
|
function numKeys(data2) {
|
|
46808
47038
|
let keyCount = 0;
|
|
@@ -46887,31 +47117,31 @@ function normalizeParams(_params) {
|
|
|
46887
47117
|
function createTransparentProxy(getter) {
|
|
46888
47118
|
let target;
|
|
46889
47119
|
return new Proxy({}, {
|
|
46890
|
-
get(
|
|
47120
|
+
get(_2, prop, receiver) {
|
|
46891
47121
|
target ?? (target = getter());
|
|
46892
47122
|
return Reflect.get(target, prop, receiver);
|
|
46893
47123
|
},
|
|
46894
|
-
set(
|
|
47124
|
+
set(_2, prop, value, receiver) {
|
|
46895
47125
|
target ?? (target = getter());
|
|
46896
47126
|
return Reflect.set(target, prop, value, receiver);
|
|
46897
47127
|
},
|
|
46898
|
-
has(
|
|
47128
|
+
has(_2, prop) {
|
|
46899
47129
|
target ?? (target = getter());
|
|
46900
47130
|
return Reflect.has(target, prop);
|
|
46901
47131
|
},
|
|
46902
|
-
deleteProperty(
|
|
47132
|
+
deleteProperty(_2, prop) {
|
|
46903
47133
|
target ?? (target = getter());
|
|
46904
47134
|
return Reflect.deleteProperty(target, prop);
|
|
46905
47135
|
},
|
|
46906
|
-
ownKeys(
|
|
47136
|
+
ownKeys(_2) {
|
|
46907
47137
|
target ?? (target = getter());
|
|
46908
47138
|
return Reflect.ownKeys(target);
|
|
46909
47139
|
},
|
|
46910
|
-
getOwnPropertyDescriptor(
|
|
47140
|
+
getOwnPropertyDescriptor(_2, prop) {
|
|
46911
47141
|
target ?? (target = getter());
|
|
46912
47142
|
return Reflect.getOwnPropertyDescriptor(target, prop);
|
|
46913
47143
|
},
|
|
46914
|
-
defineProperty(
|
|
47144
|
+
defineProperty(_2, prop, descriptor) {
|
|
46915
47145
|
target ?? (target = getter());
|
|
46916
47146
|
return Reflect.defineProperty(target, prop, descriptor);
|
|
46917
47147
|
}
|
|
@@ -47026,10 +47256,10 @@ function safeExtend(schema, shape) {
|
|
|
47026
47256
|
});
|
|
47027
47257
|
return clone(schema, def);
|
|
47028
47258
|
}
|
|
47029
|
-
function merge(
|
|
47030
|
-
const def = mergeDefs(
|
|
47259
|
+
function merge(a3, b3) {
|
|
47260
|
+
const def = mergeDefs(a3._zod.def, {
|
|
47031
47261
|
get shape() {
|
|
47032
|
-
const _shape = { ...
|
|
47262
|
+
const _shape = { ...a3._zod.def.shape, ...b3._zod.def.shape };
|
|
47033
47263
|
assignProp(this, "shape", _shape);
|
|
47034
47264
|
return _shape;
|
|
47035
47265
|
},
|
|
@@ -47039,7 +47269,7 @@ function merge(a2, b3) {
|
|
|
47039
47269
|
checks: []
|
|
47040
47270
|
// delete existing checks
|
|
47041
47271
|
});
|
|
47042
|
-
return clone(
|
|
47272
|
+
return clone(a3, def);
|
|
47043
47273
|
}
|
|
47044
47274
|
function partial(Class2, schema, mask) {
|
|
47045
47275
|
const currDef = schema._zod.def;
|
|
@@ -47194,7 +47424,7 @@ function issue(...args) {
|
|
|
47194
47424
|
return { ...iss };
|
|
47195
47425
|
}
|
|
47196
47426
|
function cleanEnum(obj) {
|
|
47197
|
-
return Object.entries(obj).filter(([k2,
|
|
47427
|
+
return Object.entries(obj).filter(([k2, _2]) => {
|
|
47198
47428
|
return Number.isNaN(Number.parseInt(k2, 10));
|
|
47199
47429
|
}).map((el) => el[1]);
|
|
47200
47430
|
}
|
|
@@ -47367,7 +47597,7 @@ function toDotPath(_path) {
|
|
|
47367
47597
|
}
|
|
47368
47598
|
function prettifyError(error49) {
|
|
47369
47599
|
const lines = [];
|
|
47370
|
-
const issues = [...error49.issues].sort((
|
|
47600
|
+
const issues = [...error49.issues].sort((a3, b3) => (a3.path ?? []).length - (b3.path ?? []).length);
|
|
47371
47601
|
for (const issue2 of issues) {
|
|
47372
47602
|
lines.push(`\u2716 ${issue2.message}`);
|
|
47373
47603
|
if (issue2.path?.length)
|
|
@@ -48246,13 +48476,13 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
48246
48476
|
continue;
|
|
48247
48477
|
}
|
|
48248
48478
|
const currLen = payload.issues.length;
|
|
48249
|
-
const
|
|
48250
|
-
if (
|
|
48479
|
+
const _2 = ch._zod.check(payload);
|
|
48480
|
+
if (_2 instanceof Promise && ctx?.async === false) {
|
|
48251
48481
|
throw new $ZodAsyncError();
|
|
48252
48482
|
}
|
|
48253
|
-
if (asyncResult ||
|
|
48483
|
+
if (asyncResult || _2 instanceof Promise) {
|
|
48254
48484
|
asyncResult = (asyncResult ?? Promise.resolve()).then(async () => {
|
|
48255
|
-
await
|
|
48485
|
+
await _2;
|
|
48256
48486
|
const nextLen = payload.issues.length;
|
|
48257
48487
|
if (nextLen === currLen)
|
|
48258
48488
|
return;
|
|
@@ -48314,7 +48544,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
48314
48544
|
try {
|
|
48315
48545
|
const r = safeParse(inst, value);
|
|
48316
48546
|
return r.success ? { value: r.data } : { issues: r.error?.issues };
|
|
48317
|
-
} catch (
|
|
48547
|
+
} catch (_2) {
|
|
48318
48548
|
return safeParseAsync(inst, value).then((r) => r.success ? { value: r.data } : { issues: r.error?.issues });
|
|
48319
48549
|
}
|
|
48320
48550
|
},
|
|
@@ -48325,11 +48555,11 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
48325
48555
|
var $ZodString = /* @__PURE__ */ $constructor("$ZodString", (inst, def) => {
|
|
48326
48556
|
$ZodType.init(inst, def);
|
|
48327
48557
|
inst._zod.pattern = [...inst?._zod.bag?.patterns ?? []].pop() ?? string(inst._zod.bag);
|
|
48328
|
-
inst._zod.parse = (payload,
|
|
48558
|
+
inst._zod.parse = (payload, _2) => {
|
|
48329
48559
|
if (def.coerce)
|
|
48330
48560
|
try {
|
|
48331
48561
|
payload.value = String(payload.value);
|
|
48332
|
-
} catch (
|
|
48562
|
+
} catch (_3) {
|
|
48333
48563
|
}
|
|
48334
48564
|
if (typeof payload.value === "string")
|
|
48335
48565
|
return payload;
|
|
@@ -48414,7 +48644,7 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
|
|
|
48414
48644
|
payload.value = trimmed;
|
|
48415
48645
|
}
|
|
48416
48646
|
return;
|
|
48417
|
-
} catch (
|
|
48647
|
+
} catch (_2) {
|
|
48418
48648
|
payload.issues.push({
|
|
48419
48649
|
code: "invalid_format",
|
|
48420
48650
|
format: "url",
|
|
@@ -48639,7 +48869,7 @@ var $ZodNumber = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def) => {
|
|
|
48639
48869
|
if (def.coerce)
|
|
48640
48870
|
try {
|
|
48641
48871
|
payload.value = Number(payload.value);
|
|
48642
|
-
} catch (
|
|
48872
|
+
} catch (_2) {
|
|
48643
48873
|
}
|
|
48644
48874
|
const input = payload.value;
|
|
48645
48875
|
if (typeof input === "number" && !Number.isNaN(input) && Number.isFinite(input)) {
|
|
@@ -48667,7 +48897,7 @@ var $ZodBoolean = /* @__PURE__ */ $constructor("$ZodBoolean", (inst, def) => {
|
|
|
48667
48897
|
if (def.coerce)
|
|
48668
48898
|
try {
|
|
48669
48899
|
payload.value = Boolean(payload.value);
|
|
48670
|
-
} catch (
|
|
48900
|
+
} catch (_2) {
|
|
48671
48901
|
}
|
|
48672
48902
|
const input = payload.value;
|
|
48673
48903
|
if (typeof input === "boolean")
|
|
@@ -48688,7 +48918,7 @@ var $ZodBigInt = /* @__PURE__ */ $constructor("$ZodBigInt", (inst, def) => {
|
|
|
48688
48918
|
if (def.coerce)
|
|
48689
48919
|
try {
|
|
48690
48920
|
payload.value = BigInt(payload.value);
|
|
48691
|
-
} catch (
|
|
48921
|
+
} catch (_2) {
|
|
48692
48922
|
}
|
|
48693
48923
|
if (typeof payload.value === "bigint")
|
|
48694
48924
|
return payload;
|
|
@@ -49103,17 +49333,17 @@ function handleUnionResults(results, final, inst, ctx) {
|
|
|
49103
49333
|
}
|
|
49104
49334
|
var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
|
|
49105
49335
|
$ZodType.init(inst, def);
|
|
49106
|
-
defineLazy(inst._zod, "optin", () => def.options.some((
|
|
49107
|
-
defineLazy(inst._zod, "optout", () => def.options.some((
|
|
49336
|
+
defineLazy(inst._zod, "optin", () => def.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0);
|
|
49337
|
+
defineLazy(inst._zod, "optout", () => def.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0);
|
|
49108
49338
|
defineLazy(inst._zod, "values", () => {
|
|
49109
|
-
if (def.options.every((
|
|
49339
|
+
if (def.options.every((o) => o._zod.values)) {
|
|
49110
49340
|
return new Set(def.options.flatMap((option) => Array.from(option._zod.values)));
|
|
49111
49341
|
}
|
|
49112
49342
|
return void 0;
|
|
49113
49343
|
});
|
|
49114
49344
|
defineLazy(inst._zod, "pattern", () => {
|
|
49115
|
-
if (def.options.every((
|
|
49116
|
-
const patterns = def.options.map((
|
|
49345
|
+
if (def.options.every((o) => o._zod.pattern)) {
|
|
49346
|
+
const patterns = def.options.map((o) => o._zod.pattern);
|
|
49117
49347
|
return new RegExp(`^(${patterns.map((p2) => cleanRegex(p2.source)).join("|")})$`);
|
|
49118
49348
|
}
|
|
49119
49349
|
return void 0;
|
|
@@ -49224,15 +49454,15 @@ var $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnio
|
|
|
49224
49454
|
const disc = cached(() => {
|
|
49225
49455
|
const opts = def.options;
|
|
49226
49456
|
const map2 = /* @__PURE__ */ new Map();
|
|
49227
|
-
for (const
|
|
49228
|
-
const values =
|
|
49457
|
+
for (const o of opts) {
|
|
49458
|
+
const values = o._zod.propValues?.[def.discriminator];
|
|
49229
49459
|
if (!values || values.size === 0)
|
|
49230
|
-
throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(
|
|
49460
|
+
throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(o)}"`);
|
|
49231
49461
|
for (const v2 of values) {
|
|
49232
49462
|
if (map2.has(v2)) {
|
|
49233
49463
|
throw new Error(`Duplicate discriminator value "${String(v2)}"`);
|
|
49234
49464
|
}
|
|
49235
|
-
map2.set(v2,
|
|
49465
|
+
map2.set(v2, o);
|
|
49236
49466
|
}
|
|
49237
49467
|
}
|
|
49238
49468
|
return map2;
|
|
@@ -49282,19 +49512,19 @@ var $ZodIntersection = /* @__PURE__ */ $constructor("$ZodIntersection", (inst, d
|
|
|
49282
49512
|
return handleIntersectionResults(payload, left, right);
|
|
49283
49513
|
};
|
|
49284
49514
|
});
|
|
49285
|
-
function mergeValues2(
|
|
49286
|
-
if (
|
|
49287
|
-
return { valid: true, data:
|
|
49515
|
+
function mergeValues2(a3, b3) {
|
|
49516
|
+
if (a3 === b3) {
|
|
49517
|
+
return { valid: true, data: a3 };
|
|
49288
49518
|
}
|
|
49289
|
-
if (
|
|
49290
|
-
return { valid: true, data:
|
|
49519
|
+
if (a3 instanceof Date && b3 instanceof Date && +a3 === +b3) {
|
|
49520
|
+
return { valid: true, data: a3 };
|
|
49291
49521
|
}
|
|
49292
|
-
if (isPlainObject(
|
|
49522
|
+
if (isPlainObject(a3) && isPlainObject(b3)) {
|
|
49293
49523
|
const bKeys = Object.keys(b3);
|
|
49294
|
-
const sharedKeys = Object.keys(
|
|
49295
|
-
const newObj = { ...
|
|
49524
|
+
const sharedKeys = Object.keys(a3).filter((key) => bKeys.indexOf(key) !== -1);
|
|
49525
|
+
const newObj = { ...a3, ...b3 };
|
|
49296
49526
|
for (const key of sharedKeys) {
|
|
49297
|
-
const sharedValue = mergeValues2(
|
|
49527
|
+
const sharedValue = mergeValues2(a3[key], b3[key]);
|
|
49298
49528
|
if (!sharedValue.valid) {
|
|
49299
49529
|
return {
|
|
49300
49530
|
valid: false,
|
|
@@ -49305,13 +49535,13 @@ function mergeValues2(a2, b3) {
|
|
|
49305
49535
|
}
|
|
49306
49536
|
return { valid: true, data: newObj };
|
|
49307
49537
|
}
|
|
49308
|
-
if (Array.isArray(
|
|
49309
|
-
if (
|
|
49538
|
+
if (Array.isArray(a3) && Array.isArray(b3)) {
|
|
49539
|
+
if (a3.length !== b3.length) {
|
|
49310
49540
|
return { valid: false, mergeErrorPath: [] };
|
|
49311
49541
|
}
|
|
49312
49542
|
const newArray = [];
|
|
49313
|
-
for (let index = 0; index <
|
|
49314
|
-
const itemA =
|
|
49543
|
+
for (let index = 0; index < a3.length; index++) {
|
|
49544
|
+
const itemA = a3[index];
|
|
49315
49545
|
const itemB = b3[index];
|
|
49316
49546
|
const sharedValue = mergeValues2(itemA, itemB);
|
|
49317
49547
|
if (!sharedValue.valid) {
|
|
@@ -49646,7 +49876,7 @@ var $ZodEnum = /* @__PURE__ */ $constructor("$ZodEnum", (inst, def) => {
|
|
|
49646
49876
|
const values = getEnumValues(def.entries);
|
|
49647
49877
|
const valuesSet = new Set(values);
|
|
49648
49878
|
inst._zod.values = valuesSet;
|
|
49649
|
-
inst._zod.pattern = new RegExp(`^(${values.filter((k2) => propertyKeyTypes.has(typeof k2)).map((
|
|
49879
|
+
inst._zod.pattern = new RegExp(`^(${values.filter((k2) => propertyKeyTypes.has(typeof k2)).map((o) => typeof o === "string" ? escapeRegex(o) : o.toString()).join("|")})$`);
|
|
49650
49880
|
inst._zod.parse = (payload, _ctx) => {
|
|
49651
49881
|
const input = payload.value;
|
|
49652
49882
|
if (valuesSet.has(input)) {
|
|
@@ -49668,7 +49898,7 @@ var $ZodLiteral = /* @__PURE__ */ $constructor("$ZodLiteral", (inst, def) => {
|
|
|
49668
49898
|
}
|
|
49669
49899
|
const values = new Set(def.values);
|
|
49670
49900
|
inst._zod.values = values;
|
|
49671
|
-
inst._zod.pattern = new RegExp(`^(${def.values.map((
|
|
49901
|
+
inst._zod.pattern = new RegExp(`^(${def.values.map((o) => typeof o === "string" ? escapeRegex(o) : o ? escapeRegex(o.toString()) : String(o)).join("|")})$`);
|
|
49672
49902
|
inst._zod.parse = (payload, _ctx) => {
|
|
49673
49903
|
const input = payload.value;
|
|
49674
49904
|
if (values.has(input)) {
|
|
@@ -50152,7 +50382,7 @@ var $ZodLazy = /* @__PURE__ */ $constructor("$ZodLazy", (inst, def) => {
|
|
|
50152
50382
|
var $ZodCustom = /* @__PURE__ */ $constructor("$ZodCustom", (inst, def) => {
|
|
50153
50383
|
$ZodCheck.init(inst, def);
|
|
50154
50384
|
$ZodType.init(inst, def);
|
|
50155
|
-
inst._zod.parse = (payload,
|
|
50385
|
+
inst._zod.parse = (payload, _2) => {
|
|
50156
50386
|
return payload;
|
|
50157
50387
|
};
|
|
50158
50388
|
inst._zod.check = (payload) => {
|
|
@@ -57506,7 +57736,7 @@ var unionProcessor = (schema, ctx, json2, params) => {
|
|
|
57506
57736
|
};
|
|
57507
57737
|
var intersectionProcessor = (schema, ctx, json2, params) => {
|
|
57508
57738
|
const def = schema._zod.def;
|
|
57509
|
-
const
|
|
57739
|
+
const a3 = process2(def.left, ctx, {
|
|
57510
57740
|
...params,
|
|
57511
57741
|
path: [...params.path, "allOf", 0]
|
|
57512
57742
|
});
|
|
@@ -57516,7 +57746,7 @@ var intersectionProcessor = (schema, ctx, json2, params) => {
|
|
|
57516
57746
|
});
|
|
57517
57747
|
const isSimpleIntersection = (val) => "allOf" in val && Object.keys(val).length === 1;
|
|
57518
57748
|
const allOf = [
|
|
57519
|
-
...isSimpleIntersection(
|
|
57749
|
+
...isSimpleIntersection(a3) ? a3.allOf : [a3],
|
|
57520
57750
|
...isSimpleIntersection(b3) ? b3.allOf : [b3]
|
|
57521
57751
|
];
|
|
57522
57752
|
json2.allOf = allOf;
|
|
@@ -57723,7 +57953,7 @@ function toJSONSchema(input, params) {
|
|
|
57723
57953
|
const ctx2 = initializeContext({ ...params, processors: allProcessors });
|
|
57724
57954
|
const defs = {};
|
|
57725
57955
|
for (const entry of registry2._idmap.entries()) {
|
|
57726
|
-
const [
|
|
57956
|
+
const [_2, schema] = entry;
|
|
57727
57957
|
process2(schema, ctx2);
|
|
57728
57958
|
}
|
|
57729
57959
|
const schemas = {};
|
|
@@ -57822,7 +58052,7 @@ var JSONSchemaGenerator = class {
|
|
|
57822
58052
|
}
|
|
57823
58053
|
extractDefs(this.ctx, schema);
|
|
57824
58054
|
const result = finalize(this.ctx, schema);
|
|
57825
|
-
const { "~standard":
|
|
58055
|
+
const { "~standard": _2, ...plainResult } = result;
|
|
57826
58056
|
return plainResult;
|
|
57827
58057
|
}
|
|
57828
58058
|
};
|
|
@@ -59234,7 +59464,7 @@ var ZodFirstPartyTypeKind;
|
|
|
59234
59464
|
})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
59235
59465
|
|
|
59236
59466
|
// node_modules/zod/v4/classic/from-json-schema.js
|
|
59237
|
-
var
|
|
59467
|
+
var z2 = {
|
|
59238
59468
|
...schemas_exports2,
|
|
59239
59469
|
...checks_exports2,
|
|
59240
59470
|
iso: iso_exports
|
|
@@ -59344,7 +59574,7 @@ function resolveRef(ref2, ctx) {
|
|
|
59344
59574
|
function convertBaseSchema(schema, ctx) {
|
|
59345
59575
|
if (schema.not !== void 0) {
|
|
59346
59576
|
if (typeof schema.not === "object" && Object.keys(schema.not).length === 0) {
|
|
59347
|
-
return
|
|
59577
|
+
return z2.never();
|
|
59348
59578
|
}
|
|
59349
59579
|
throw new Error("not is not supported in Zod (except { not: {} } for never)");
|
|
59350
59580
|
}
|
|
@@ -59366,7 +59596,7 @@ function convertBaseSchema(schema, ctx) {
|
|
|
59366
59596
|
return ctx.refs.get(refPath);
|
|
59367
59597
|
}
|
|
59368
59598
|
if (ctx.processing.has(refPath)) {
|
|
59369
|
-
return
|
|
59599
|
+
return z2.lazy(() => {
|
|
59370
59600
|
if (!ctx.refs.has(refPath)) {
|
|
59371
59601
|
throw new Error(`Circular reference not resolved: ${refPath}`);
|
|
59372
59602
|
}
|
|
@@ -59383,25 +59613,25 @@ function convertBaseSchema(schema, ctx) {
|
|
|
59383
59613
|
if (schema.enum !== void 0) {
|
|
59384
59614
|
const enumValues = schema.enum;
|
|
59385
59615
|
if (ctx.version === "openapi-3.0" && schema.nullable === true && enumValues.length === 1 && enumValues[0] === null) {
|
|
59386
|
-
return
|
|
59616
|
+
return z2.null();
|
|
59387
59617
|
}
|
|
59388
59618
|
if (enumValues.length === 0) {
|
|
59389
|
-
return
|
|
59619
|
+
return z2.never();
|
|
59390
59620
|
}
|
|
59391
59621
|
if (enumValues.length === 1) {
|
|
59392
|
-
return
|
|
59622
|
+
return z2.literal(enumValues[0]);
|
|
59393
59623
|
}
|
|
59394
59624
|
if (enumValues.every((v2) => typeof v2 === "string")) {
|
|
59395
|
-
return
|
|
59625
|
+
return z2.enum(enumValues);
|
|
59396
59626
|
}
|
|
59397
|
-
const literalSchemas = enumValues.map((v2) =>
|
|
59627
|
+
const literalSchemas = enumValues.map((v2) => z2.literal(v2));
|
|
59398
59628
|
if (literalSchemas.length < 2) {
|
|
59399
59629
|
return literalSchemas[0];
|
|
59400
59630
|
}
|
|
59401
|
-
return
|
|
59631
|
+
return z2.union([literalSchemas[0], literalSchemas[1], ...literalSchemas.slice(2)]);
|
|
59402
59632
|
}
|
|
59403
59633
|
if (schema.const !== void 0) {
|
|
59404
|
-
return
|
|
59634
|
+
return z2.literal(schema.const);
|
|
59405
59635
|
}
|
|
59406
59636
|
const type = schema.type;
|
|
59407
59637
|
if (Array.isArray(type)) {
|
|
@@ -59410,68 +59640,68 @@ function convertBaseSchema(schema, ctx) {
|
|
|
59410
59640
|
return convertBaseSchema(typeSchema, ctx);
|
|
59411
59641
|
});
|
|
59412
59642
|
if (typeSchemas.length === 0) {
|
|
59413
|
-
return
|
|
59643
|
+
return z2.never();
|
|
59414
59644
|
}
|
|
59415
59645
|
if (typeSchemas.length === 1) {
|
|
59416
59646
|
return typeSchemas[0];
|
|
59417
59647
|
}
|
|
59418
|
-
return
|
|
59648
|
+
return z2.union(typeSchemas);
|
|
59419
59649
|
}
|
|
59420
59650
|
if (!type) {
|
|
59421
|
-
return
|
|
59651
|
+
return z2.any();
|
|
59422
59652
|
}
|
|
59423
59653
|
let zodSchema;
|
|
59424
59654
|
switch (type) {
|
|
59425
59655
|
case "string": {
|
|
59426
|
-
let stringSchema =
|
|
59656
|
+
let stringSchema = z2.string();
|
|
59427
59657
|
if (schema.format) {
|
|
59428
59658
|
const format = schema.format;
|
|
59429
59659
|
if (format === "email") {
|
|
59430
|
-
stringSchema = stringSchema.check(
|
|
59660
|
+
stringSchema = stringSchema.check(z2.email());
|
|
59431
59661
|
} else if (format === "uri" || format === "uri-reference") {
|
|
59432
|
-
stringSchema = stringSchema.check(
|
|
59662
|
+
stringSchema = stringSchema.check(z2.url());
|
|
59433
59663
|
} else if (format === "uuid" || format === "guid") {
|
|
59434
|
-
stringSchema = stringSchema.check(
|
|
59664
|
+
stringSchema = stringSchema.check(z2.uuid());
|
|
59435
59665
|
} else if (format === "date-time") {
|
|
59436
|
-
stringSchema = stringSchema.check(
|
|
59666
|
+
stringSchema = stringSchema.check(z2.iso.datetime());
|
|
59437
59667
|
} else if (format === "date") {
|
|
59438
|
-
stringSchema = stringSchema.check(
|
|
59668
|
+
stringSchema = stringSchema.check(z2.iso.date());
|
|
59439
59669
|
} else if (format === "time") {
|
|
59440
|
-
stringSchema = stringSchema.check(
|
|
59670
|
+
stringSchema = stringSchema.check(z2.iso.time());
|
|
59441
59671
|
} else if (format === "duration") {
|
|
59442
|
-
stringSchema = stringSchema.check(
|
|
59672
|
+
stringSchema = stringSchema.check(z2.iso.duration());
|
|
59443
59673
|
} else if (format === "ipv4") {
|
|
59444
|
-
stringSchema = stringSchema.check(
|
|
59674
|
+
stringSchema = stringSchema.check(z2.ipv4());
|
|
59445
59675
|
} else if (format === "ipv6") {
|
|
59446
|
-
stringSchema = stringSchema.check(
|
|
59676
|
+
stringSchema = stringSchema.check(z2.ipv6());
|
|
59447
59677
|
} else if (format === "mac") {
|
|
59448
|
-
stringSchema = stringSchema.check(
|
|
59678
|
+
stringSchema = stringSchema.check(z2.mac());
|
|
59449
59679
|
} else if (format === "cidr") {
|
|
59450
|
-
stringSchema = stringSchema.check(
|
|
59680
|
+
stringSchema = stringSchema.check(z2.cidrv4());
|
|
59451
59681
|
} else if (format === "cidr-v6") {
|
|
59452
|
-
stringSchema = stringSchema.check(
|
|
59682
|
+
stringSchema = stringSchema.check(z2.cidrv6());
|
|
59453
59683
|
} else if (format === "base64") {
|
|
59454
|
-
stringSchema = stringSchema.check(
|
|
59684
|
+
stringSchema = stringSchema.check(z2.base64());
|
|
59455
59685
|
} else if (format === "base64url") {
|
|
59456
|
-
stringSchema = stringSchema.check(
|
|
59686
|
+
stringSchema = stringSchema.check(z2.base64url());
|
|
59457
59687
|
} else if (format === "e164") {
|
|
59458
|
-
stringSchema = stringSchema.check(
|
|
59688
|
+
stringSchema = stringSchema.check(z2.e164());
|
|
59459
59689
|
} else if (format === "jwt") {
|
|
59460
|
-
stringSchema = stringSchema.check(
|
|
59690
|
+
stringSchema = stringSchema.check(z2.jwt());
|
|
59461
59691
|
} else if (format === "emoji") {
|
|
59462
|
-
stringSchema = stringSchema.check(
|
|
59692
|
+
stringSchema = stringSchema.check(z2.emoji());
|
|
59463
59693
|
} else if (format === "nanoid") {
|
|
59464
|
-
stringSchema = stringSchema.check(
|
|
59694
|
+
stringSchema = stringSchema.check(z2.nanoid());
|
|
59465
59695
|
} else if (format === "cuid") {
|
|
59466
|
-
stringSchema = stringSchema.check(
|
|
59696
|
+
stringSchema = stringSchema.check(z2.cuid());
|
|
59467
59697
|
} else if (format === "cuid2") {
|
|
59468
|
-
stringSchema = stringSchema.check(
|
|
59698
|
+
stringSchema = stringSchema.check(z2.cuid2());
|
|
59469
59699
|
} else if (format === "ulid") {
|
|
59470
|
-
stringSchema = stringSchema.check(
|
|
59700
|
+
stringSchema = stringSchema.check(z2.ulid());
|
|
59471
59701
|
} else if (format === "xid") {
|
|
59472
|
-
stringSchema = stringSchema.check(
|
|
59702
|
+
stringSchema = stringSchema.check(z2.xid());
|
|
59473
59703
|
} else if (format === "ksuid") {
|
|
59474
|
-
stringSchema = stringSchema.check(
|
|
59704
|
+
stringSchema = stringSchema.check(z2.ksuid());
|
|
59475
59705
|
}
|
|
59476
59706
|
}
|
|
59477
59707
|
if (typeof schema.minLength === "number") {
|
|
@@ -59488,7 +59718,7 @@ function convertBaseSchema(schema, ctx) {
|
|
|
59488
59718
|
}
|
|
59489
59719
|
case "number":
|
|
59490
59720
|
case "integer": {
|
|
59491
|
-
let numberSchema = type === "integer" ?
|
|
59721
|
+
let numberSchema = type === "integer" ? z2.number().int() : z2.number();
|
|
59492
59722
|
if (typeof schema.minimum === "number") {
|
|
59493
59723
|
numberSchema = numberSchema.min(schema.minimum);
|
|
59494
59724
|
}
|
|
@@ -59512,11 +59742,11 @@ function convertBaseSchema(schema, ctx) {
|
|
|
59512
59742
|
break;
|
|
59513
59743
|
}
|
|
59514
59744
|
case "boolean": {
|
|
59515
|
-
zodSchema =
|
|
59745
|
+
zodSchema = z2.boolean();
|
|
59516
59746
|
break;
|
|
59517
59747
|
}
|
|
59518
59748
|
case "null": {
|
|
59519
|
-
zodSchema =
|
|
59749
|
+
zodSchema = z2.null();
|
|
59520
59750
|
break;
|
|
59521
59751
|
}
|
|
59522
59752
|
case "object": {
|
|
@@ -59529,14 +59759,14 @@ function convertBaseSchema(schema, ctx) {
|
|
|
59529
59759
|
}
|
|
59530
59760
|
if (schema.propertyNames) {
|
|
59531
59761
|
const keySchema = convertSchema(schema.propertyNames, ctx);
|
|
59532
|
-
const valueSchema = schema.additionalProperties && typeof schema.additionalProperties === "object" ? convertSchema(schema.additionalProperties, ctx) :
|
|
59762
|
+
const valueSchema = schema.additionalProperties && typeof schema.additionalProperties === "object" ? convertSchema(schema.additionalProperties, ctx) : z2.any();
|
|
59533
59763
|
if (Object.keys(shape).length === 0) {
|
|
59534
|
-
zodSchema =
|
|
59764
|
+
zodSchema = z2.record(keySchema, valueSchema);
|
|
59535
59765
|
break;
|
|
59536
59766
|
}
|
|
59537
|
-
const objectSchema2 =
|
|
59538
|
-
const recordSchema =
|
|
59539
|
-
zodSchema =
|
|
59767
|
+
const objectSchema2 = z2.object(shape).passthrough();
|
|
59768
|
+
const recordSchema = z2.looseRecord(keySchema, valueSchema);
|
|
59769
|
+
zodSchema = z2.intersection(objectSchema2, recordSchema);
|
|
59540
59770
|
break;
|
|
59541
59771
|
}
|
|
59542
59772
|
if (schema.patternProperties) {
|
|
@@ -59545,28 +59775,28 @@ function convertBaseSchema(schema, ctx) {
|
|
|
59545
59775
|
const looseRecords = [];
|
|
59546
59776
|
for (const pattern of patternKeys) {
|
|
59547
59777
|
const patternValue = convertSchema(patternProps[pattern], ctx);
|
|
59548
|
-
const keySchema =
|
|
59549
|
-
looseRecords.push(
|
|
59778
|
+
const keySchema = z2.string().regex(new RegExp(pattern));
|
|
59779
|
+
looseRecords.push(z2.looseRecord(keySchema, patternValue));
|
|
59550
59780
|
}
|
|
59551
59781
|
const schemasToIntersect = [];
|
|
59552
59782
|
if (Object.keys(shape).length > 0) {
|
|
59553
|
-
schemasToIntersect.push(
|
|
59783
|
+
schemasToIntersect.push(z2.object(shape).passthrough());
|
|
59554
59784
|
}
|
|
59555
59785
|
schemasToIntersect.push(...looseRecords);
|
|
59556
59786
|
if (schemasToIntersect.length === 0) {
|
|
59557
|
-
zodSchema =
|
|
59787
|
+
zodSchema = z2.object({}).passthrough();
|
|
59558
59788
|
} else if (schemasToIntersect.length === 1) {
|
|
59559
59789
|
zodSchema = schemasToIntersect[0];
|
|
59560
59790
|
} else {
|
|
59561
|
-
let result =
|
|
59791
|
+
let result = z2.intersection(schemasToIntersect[0], schemasToIntersect[1]);
|
|
59562
59792
|
for (let i3 = 2; i3 < schemasToIntersect.length; i3++) {
|
|
59563
|
-
result =
|
|
59793
|
+
result = z2.intersection(result, schemasToIntersect[i3]);
|
|
59564
59794
|
}
|
|
59565
59795
|
zodSchema = result;
|
|
59566
59796
|
}
|
|
59567
59797
|
break;
|
|
59568
59798
|
}
|
|
59569
|
-
const objectSchema =
|
|
59799
|
+
const objectSchema = z2.object(shape);
|
|
59570
59800
|
if (schema.additionalProperties === false) {
|
|
59571
59801
|
zodSchema = objectSchema.strict();
|
|
59572
59802
|
} else if (typeof schema.additionalProperties === "object") {
|
|
@@ -59583,33 +59813,33 @@ function convertBaseSchema(schema, ctx) {
|
|
|
59583
59813
|
const tupleItems = prefixItems.map((item) => convertSchema(item, ctx));
|
|
59584
59814
|
const rest = items && typeof items === "object" && !Array.isArray(items) ? convertSchema(items, ctx) : void 0;
|
|
59585
59815
|
if (rest) {
|
|
59586
|
-
zodSchema =
|
|
59816
|
+
zodSchema = z2.tuple(tupleItems).rest(rest);
|
|
59587
59817
|
} else {
|
|
59588
|
-
zodSchema =
|
|
59818
|
+
zodSchema = z2.tuple(tupleItems);
|
|
59589
59819
|
}
|
|
59590
59820
|
if (typeof schema.minItems === "number") {
|
|
59591
|
-
zodSchema = zodSchema.check(
|
|
59821
|
+
zodSchema = zodSchema.check(z2.minLength(schema.minItems));
|
|
59592
59822
|
}
|
|
59593
59823
|
if (typeof schema.maxItems === "number") {
|
|
59594
|
-
zodSchema = zodSchema.check(
|
|
59824
|
+
zodSchema = zodSchema.check(z2.maxLength(schema.maxItems));
|
|
59595
59825
|
}
|
|
59596
59826
|
} else if (Array.isArray(items)) {
|
|
59597
59827
|
const tupleItems = items.map((item) => convertSchema(item, ctx));
|
|
59598
59828
|
const rest = schema.additionalItems && typeof schema.additionalItems === "object" ? convertSchema(schema.additionalItems, ctx) : void 0;
|
|
59599
59829
|
if (rest) {
|
|
59600
|
-
zodSchema =
|
|
59830
|
+
zodSchema = z2.tuple(tupleItems).rest(rest);
|
|
59601
59831
|
} else {
|
|
59602
|
-
zodSchema =
|
|
59832
|
+
zodSchema = z2.tuple(tupleItems);
|
|
59603
59833
|
}
|
|
59604
59834
|
if (typeof schema.minItems === "number") {
|
|
59605
|
-
zodSchema = zodSchema.check(
|
|
59835
|
+
zodSchema = zodSchema.check(z2.minLength(schema.minItems));
|
|
59606
59836
|
}
|
|
59607
59837
|
if (typeof schema.maxItems === "number") {
|
|
59608
|
-
zodSchema = zodSchema.check(
|
|
59838
|
+
zodSchema = zodSchema.check(z2.maxLength(schema.maxItems));
|
|
59609
59839
|
}
|
|
59610
59840
|
} else if (items !== void 0) {
|
|
59611
59841
|
const element = convertSchema(items, ctx);
|
|
59612
|
-
let arraySchema =
|
|
59842
|
+
let arraySchema = z2.array(element);
|
|
59613
59843
|
if (typeof schema.minItems === "number") {
|
|
59614
59844
|
arraySchema = arraySchema.min(schema.minItems);
|
|
59615
59845
|
}
|
|
@@ -59618,7 +59848,7 @@ function convertBaseSchema(schema, ctx) {
|
|
|
59618
59848
|
}
|
|
59619
59849
|
zodSchema = arraySchema;
|
|
59620
59850
|
} else {
|
|
59621
|
-
zodSchema =
|
|
59851
|
+
zodSchema = z2.array(z2.any());
|
|
59622
59852
|
}
|
|
59623
59853
|
break;
|
|
59624
59854
|
}
|
|
@@ -59635,37 +59865,37 @@ function convertBaseSchema(schema, ctx) {
|
|
|
59635
59865
|
}
|
|
59636
59866
|
function convertSchema(schema, ctx) {
|
|
59637
59867
|
if (typeof schema === "boolean") {
|
|
59638
|
-
return schema ?
|
|
59868
|
+
return schema ? z2.any() : z2.never();
|
|
59639
59869
|
}
|
|
59640
59870
|
let baseSchema = convertBaseSchema(schema, ctx);
|
|
59641
59871
|
const hasExplicitType = schema.type || schema.enum !== void 0 || schema.const !== void 0;
|
|
59642
59872
|
if (schema.anyOf && Array.isArray(schema.anyOf)) {
|
|
59643
59873
|
const options = schema.anyOf.map((s2) => convertSchema(s2, ctx));
|
|
59644
|
-
const anyOfUnion =
|
|
59645
|
-
baseSchema = hasExplicitType ?
|
|
59874
|
+
const anyOfUnion = z2.union(options);
|
|
59875
|
+
baseSchema = hasExplicitType ? z2.intersection(baseSchema, anyOfUnion) : anyOfUnion;
|
|
59646
59876
|
}
|
|
59647
59877
|
if (schema.oneOf && Array.isArray(schema.oneOf)) {
|
|
59648
59878
|
const options = schema.oneOf.map((s2) => convertSchema(s2, ctx));
|
|
59649
|
-
const oneOfUnion =
|
|
59650
|
-
baseSchema = hasExplicitType ?
|
|
59879
|
+
const oneOfUnion = z2.xor(options);
|
|
59880
|
+
baseSchema = hasExplicitType ? z2.intersection(baseSchema, oneOfUnion) : oneOfUnion;
|
|
59651
59881
|
}
|
|
59652
59882
|
if (schema.allOf && Array.isArray(schema.allOf)) {
|
|
59653
59883
|
if (schema.allOf.length === 0) {
|
|
59654
|
-
baseSchema = hasExplicitType ? baseSchema :
|
|
59884
|
+
baseSchema = hasExplicitType ? baseSchema : z2.any();
|
|
59655
59885
|
} else {
|
|
59656
59886
|
let result = hasExplicitType ? baseSchema : convertSchema(schema.allOf[0], ctx);
|
|
59657
59887
|
const startIdx = hasExplicitType ? 0 : 1;
|
|
59658
59888
|
for (let i3 = startIdx; i3 < schema.allOf.length; i3++) {
|
|
59659
|
-
result =
|
|
59889
|
+
result = z2.intersection(result, convertSchema(schema.allOf[i3], ctx));
|
|
59660
59890
|
}
|
|
59661
59891
|
baseSchema = result;
|
|
59662
59892
|
}
|
|
59663
59893
|
}
|
|
59664
59894
|
if (schema.nullable === true && ctx.version === "openapi-3.0") {
|
|
59665
|
-
baseSchema =
|
|
59895
|
+
baseSchema = z2.nullable(baseSchema);
|
|
59666
59896
|
}
|
|
59667
59897
|
if (schema.readOnly === true) {
|
|
59668
|
-
baseSchema =
|
|
59898
|
+
baseSchema = z2.readonly(baseSchema);
|
|
59669
59899
|
}
|
|
59670
59900
|
const extraMeta = {};
|
|
59671
59901
|
const coreMetadataKeys = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"];
|
|
@@ -59692,7 +59922,7 @@ function convertSchema(schema, ctx) {
|
|
|
59692
59922
|
}
|
|
59693
59923
|
function fromJSONSchema(schema, params) {
|
|
59694
59924
|
if (typeof schema === "boolean") {
|
|
59695
|
-
return schema ?
|
|
59925
|
+
return schema ? z2.any() : z2.never();
|
|
59696
59926
|
}
|
|
59697
59927
|
const version4 = detectVersion(schema, params?.defaultTarget);
|
|
59698
59928
|
const defs = schema.$defs || schema.definitions || {};
|
|
@@ -60839,4 +61069,22 @@ react/cjs/react-jsx-runtime.production.js:
|
|
|
60839
61069
|
* This source code is licensed under the MIT license found in the
|
|
60840
61070
|
* LICENSE file in the root directory of this source tree.
|
|
60841
61071
|
*)
|
|
61072
|
+
|
|
61073
|
+
remotion-subtitle/dist/index.esm.js:
|
|
61074
|
+
(** @license React v17.0.2
|
|
61075
|
+
* react.production.min.js
|
|
61076
|
+
*
|
|
61077
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
61078
|
+
*
|
|
61079
|
+
* This source code is licensed under the MIT license found in the
|
|
61080
|
+
* LICENSE file in the root directory of this source tree.
|
|
61081
|
+
*)
|
|
61082
|
+
(** @license React v17.0.2
|
|
61083
|
+
* react.development.js
|
|
61084
|
+
*
|
|
61085
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
61086
|
+
*
|
|
61087
|
+
* This source code is licensed under the MIT license found in the
|
|
61088
|
+
* LICENSE file in the root directory of this source tree.
|
|
61089
|
+
*)
|
|
60842
61090
|
*/
|