@remotion/renderer 4.0.208 → 4.0.210
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/BrowserFetcher.js +0 -2
- package/dist/browser/browser-download-progress-bar.js +1 -1
- package/dist/client.d.ts +2 -2
- package/dist/create-ffmpeg-complex-filter.d.ts +4 -1
- package/dist/example-videos.d.ts +1 -0
- package/dist/example-videos.js +1 -0
- package/dist/index.d.ts +6 -5
- package/dist/port-config.d.ts +2 -2
- package/ensure-browser.mjs +115 -807
- package/package.json +10 -10
package/ensure-browser.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {createRequire} from "node:module";
|
|
2
2
|
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
3
|
var __getProtoOf = Object.getPrototypeOf;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __toESM = (mod, isNodeMode, target) => {
|
|
@@ -16,11 +16,11 @@ var __toESM = (mod, isNodeMode, target) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
19
|
-
var __require = createRequire(import.meta.url);
|
|
19
|
+
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
20
20
|
|
|
21
21
|
// /Users/jonathanburger/remotion/node_modules/.pnpm/debug@4.3.4/node_modules/ms/index.js
|
|
22
22
|
var require_ms = __commonJS((exports, module) => {
|
|
23
|
-
|
|
23
|
+
function parse(str) {
|
|
24
24
|
str = String(str);
|
|
25
25
|
if (str.length > 100) {
|
|
26
26
|
return;
|
|
@@ -73,8 +73,8 @@ var require_ms = __commonJS((exports, module) => {
|
|
|
73
73
|
default:
|
|
74
74
|
return;
|
|
75
75
|
}
|
|
76
|
-
}
|
|
77
|
-
|
|
76
|
+
}
|
|
77
|
+
function fmtShort(ms) {
|
|
78
78
|
var msAbs = Math.abs(ms);
|
|
79
79
|
if (msAbs >= d) {
|
|
80
80
|
return Math.round(ms / d) + "d";
|
|
@@ -89,8 +89,8 @@ var require_ms = __commonJS((exports, module) => {
|
|
|
89
89
|
return Math.round(ms / s) + "s";
|
|
90
90
|
}
|
|
91
91
|
return ms + "ms";
|
|
92
|
-
}
|
|
93
|
-
|
|
92
|
+
}
|
|
93
|
+
function fmtLong(ms) {
|
|
94
94
|
var msAbs = Math.abs(ms);
|
|
95
95
|
if (msAbs >= d) {
|
|
96
96
|
return plural(ms, msAbs, d, "day");
|
|
@@ -105,11 +105,11 @@ var require_ms = __commonJS((exports, module) => {
|
|
|
105
105
|
return plural(ms, msAbs, s, "second");
|
|
106
106
|
}
|
|
107
107
|
return ms + " ms";
|
|
108
|
-
}
|
|
109
|
-
|
|
108
|
+
}
|
|
109
|
+
function plural(ms, msAbs, n, name) {
|
|
110
110
|
var isPlural = msAbs >= n * 1.5;
|
|
111
111
|
return Math.round(ms / n) + " " + name + (isPlural ? "s" : "");
|
|
112
|
-
}
|
|
112
|
+
}
|
|
113
113
|
var s = 1000;
|
|
114
114
|
var m = s * 60;
|
|
115
115
|
var h = m * 60;
|
|
@@ -130,7 +130,7 @@ var require_ms = __commonJS((exports, module) => {
|
|
|
130
130
|
|
|
131
131
|
// ../../node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/common.js
|
|
132
132
|
var require_common = __commonJS((exports, module) => {
|
|
133
|
-
|
|
133
|
+
function setup(env) {
|
|
134
134
|
createDebug.debug = createDebug;
|
|
135
135
|
createDebug.default = createDebug;
|
|
136
136
|
createDebug.coerce = coerce;
|
|
@@ -285,13 +285,13 @@ var require_common = __commonJS((exports, module) => {
|
|
|
285
285
|
}
|
|
286
286
|
createDebug.enable(createDebug.load());
|
|
287
287
|
return createDebug;
|
|
288
|
-
}
|
|
288
|
+
}
|
|
289
289
|
module.exports = setup;
|
|
290
290
|
});
|
|
291
291
|
|
|
292
292
|
// ../../node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/browser.js
|
|
293
293
|
var require_browser = __commonJS((exports, module) => {
|
|
294
|
-
|
|
294
|
+
function useColors() {
|
|
295
295
|
if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
|
|
296
296
|
return true;
|
|
297
297
|
}
|
|
@@ -299,9 +299,9 @@ var require_browser = __commonJS((exports, module) => {
|
|
|
299
299
|
return false;
|
|
300
300
|
}
|
|
301
301
|
return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + exports.humanize(this.diff);
|
|
302
|
+
}
|
|
303
|
+
function formatArgs(args) {
|
|
304
|
+
args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module.exports.humanize(this.diff);
|
|
305
305
|
if (!this.useColors) {
|
|
306
306
|
return;
|
|
307
307
|
}
|
|
@@ -319,8 +319,8 @@ var require_browser = __commonJS((exports, module) => {
|
|
|
319
319
|
}
|
|
320
320
|
});
|
|
321
321
|
args.splice(lastC, 0, c);
|
|
322
|
-
}
|
|
323
|
-
|
|
322
|
+
}
|
|
323
|
+
function save(namespaces) {
|
|
324
324
|
try {
|
|
325
325
|
if (namespaces) {
|
|
326
326
|
exports.storage.setItem("debug", namespaces);
|
|
@@ -329,8 +329,8 @@ var require_browser = __commonJS((exports, module) => {
|
|
|
329
329
|
}
|
|
330
330
|
} catch (error) {
|
|
331
331
|
}
|
|
332
|
-
}
|
|
333
|
-
|
|
332
|
+
}
|
|
333
|
+
function load() {
|
|
334
334
|
let r;
|
|
335
335
|
try {
|
|
336
336
|
r = exports.storage.getItem("debug");
|
|
@@ -340,13 +340,13 @@ var require_browser = __commonJS((exports, module) => {
|
|
|
340
340
|
r = process.env.DEBUG;
|
|
341
341
|
}
|
|
342
342
|
return r;
|
|
343
|
-
}
|
|
344
|
-
|
|
343
|
+
}
|
|
344
|
+
function localstorage() {
|
|
345
345
|
try {
|
|
346
346
|
return localStorage;
|
|
347
347
|
} catch (error) {
|
|
348
348
|
}
|
|
349
|
-
}
|
|
349
|
+
}
|
|
350
350
|
exports.formatArgs = formatArgs;
|
|
351
351
|
exports.save = save;
|
|
352
352
|
exports.load = load;
|
|
@@ -464,7 +464,7 @@ var require_has_flag = __commonJS((exports, module) => {
|
|
|
464
464
|
|
|
465
465
|
// /Users/jonathanburger/remotion/node_modules/.pnpm/node_modules/supports-color/index.js
|
|
466
466
|
var require_supports_color = __commonJS((exports, module) => {
|
|
467
|
-
|
|
467
|
+
function translateLevel(level) {
|
|
468
468
|
if (level === 0) {
|
|
469
469
|
return false;
|
|
470
470
|
}
|
|
@@ -474,8 +474,8 @@ var require_supports_color = __commonJS((exports, module) => {
|
|
|
474
474
|
has256: level >= 2,
|
|
475
475
|
has16m: level >= 3
|
|
476
476
|
};
|
|
477
|
-
}
|
|
478
|
-
|
|
477
|
+
}
|
|
478
|
+
function supportsColor(haveStream, streamIsTTY) {
|
|
479
479
|
if (forceColor === 0) {
|
|
480
480
|
return 0;
|
|
481
481
|
}
|
|
@@ -530,11 +530,11 @@ var require_supports_color = __commonJS((exports, module) => {
|
|
|
530
530
|
return 1;
|
|
531
531
|
}
|
|
532
532
|
return min;
|
|
533
|
-
}
|
|
534
|
-
|
|
533
|
+
}
|
|
534
|
+
function getSupportLevel(stream) {
|
|
535
535
|
const level = supportsColor(stream, stream && stream.isTTY);
|
|
536
536
|
return translateLevel(level);
|
|
537
|
-
}
|
|
537
|
+
}
|
|
538
538
|
var os = __require("os");
|
|
539
539
|
var tty = __require("tty");
|
|
540
540
|
var hasFlag = require_has_flag();
|
|
@@ -563,47 +563,47 @@ var require_supports_color = __commonJS((exports, module) => {
|
|
|
563
563
|
|
|
564
564
|
// ../../node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/node.js
|
|
565
565
|
var require_node = __commonJS((exports, module) => {
|
|
566
|
-
|
|
566
|
+
function useColors() {
|
|
567
567
|
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
|
|
568
|
-
}
|
|
569
|
-
|
|
568
|
+
}
|
|
569
|
+
function formatArgs(args) {
|
|
570
570
|
const { namespace: name, useColors: useColors2 } = this;
|
|
571
571
|
if (useColors2) {
|
|
572
572
|
const c = this.color;
|
|
573
573
|
const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
|
|
574
574
|
const prefix = ` ${colorCode};1m${name} \x1B[0m`;
|
|
575
575
|
args[0] = prefix + args[0].split("\n").join("\n" + prefix);
|
|
576
|
-
args.push(colorCode + "m+" + exports.humanize(this.diff) + "\x1B[0m");
|
|
576
|
+
args.push(colorCode + "m+" + module.exports.humanize(this.diff) + "\x1B[0m");
|
|
577
577
|
} else {
|
|
578
578
|
args[0] = getDate() + name + " " + args[0];
|
|
579
579
|
}
|
|
580
|
-
}
|
|
581
|
-
|
|
580
|
+
}
|
|
581
|
+
function getDate() {
|
|
582
582
|
if (exports.inspectOpts.hideDate) {
|
|
583
583
|
return "";
|
|
584
584
|
}
|
|
585
585
|
return new Date().toISOString() + " ";
|
|
586
|
-
}
|
|
587
|
-
|
|
586
|
+
}
|
|
587
|
+
function log(...args) {
|
|
588
588
|
return process.stderr.write(util.format(...args) + "\n");
|
|
589
|
-
}
|
|
590
|
-
|
|
589
|
+
}
|
|
590
|
+
function save(namespaces) {
|
|
591
591
|
if (namespaces) {
|
|
592
592
|
process.env.DEBUG = namespaces;
|
|
593
593
|
} else {
|
|
594
594
|
delete process.env.DEBUG;
|
|
595
595
|
}
|
|
596
|
-
}
|
|
597
|
-
|
|
596
|
+
}
|
|
597
|
+
function load() {
|
|
598
598
|
return process.env.DEBUG;
|
|
599
|
-
}
|
|
600
|
-
|
|
599
|
+
}
|
|
600
|
+
function init(debug) {
|
|
601
601
|
debug.inspectOpts = {};
|
|
602
602
|
const keys = Object.keys(exports.inspectOpts);
|
|
603
603
|
for (let i = 0;i < keys.length; i++) {
|
|
604
604
|
debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
|
|
605
605
|
}
|
|
606
|
-
}
|
|
606
|
+
}
|
|
607
607
|
var tty = __require("tty");
|
|
608
608
|
var util = __require("util");
|
|
609
609
|
exports.init = init;
|
|
@@ -741,7 +741,7 @@ var require_src = __commonJS((exports, module) => {
|
|
|
741
741
|
|
|
742
742
|
// /Users/jonathanburger/remotion/node_modules/.pnpm/once@1.4.0/node_modules/wrappy/wrappy.js
|
|
743
743
|
var require_wrappy = __commonJS((exports, module) => {
|
|
744
|
-
|
|
744
|
+
function wrappy(fn, cb) {
|
|
745
745
|
if (fn && cb)
|
|
746
746
|
return wrappy(fn)(cb);
|
|
747
747
|
if (typeof fn !== "function")
|
|
@@ -764,13 +764,13 @@ var require_wrappy = __commonJS((exports, module) => {
|
|
|
764
764
|
}
|
|
765
765
|
return ret;
|
|
766
766
|
}
|
|
767
|
-
}
|
|
767
|
+
}
|
|
768
768
|
module.exports = wrappy;
|
|
769
769
|
});
|
|
770
770
|
|
|
771
771
|
// /Users/jonathanburger/remotion/node_modules/.pnpm/pump@3.0.0/node_modules/once/once.js
|
|
772
772
|
var require_once = __commonJS((exports, module) => {
|
|
773
|
-
|
|
773
|
+
function once(fn) {
|
|
774
774
|
var f = function() {
|
|
775
775
|
if (f.called)
|
|
776
776
|
return f.value;
|
|
@@ -779,8 +779,8 @@ var require_once = __commonJS((exports, module) => {
|
|
|
779
779
|
};
|
|
780
780
|
f.called = false;
|
|
781
781
|
return f;
|
|
782
|
-
}
|
|
783
|
-
|
|
782
|
+
}
|
|
783
|
+
function onceStrict(fn) {
|
|
784
784
|
var f = function() {
|
|
785
785
|
if (f.called)
|
|
786
786
|
throw new Error(f.onceError);
|
|
@@ -791,7 +791,7 @@ var require_once = __commonJS((exports, module) => {
|
|
|
791
791
|
f.onceError = name + " shouldn't be called more than once";
|
|
792
792
|
f.called = false;
|
|
793
793
|
return f;
|
|
794
|
-
}
|
|
794
|
+
}
|
|
795
795
|
var wrappy = require_wrappy();
|
|
796
796
|
module.exports = wrappy(once);
|
|
797
797
|
module.exports.strict = wrappy(onceStrict);
|
|
@@ -1081,14 +1081,14 @@ var require_get_stream = __commonJS((exports, module) => {
|
|
|
1081
1081
|
|
|
1082
1082
|
// /Users/jonathanburger/remotion/node_modules/.pnpm/fd-slicer@1.1.0/node_modules/pend/index.js
|
|
1083
1083
|
var require_pend = __commonJS((exports, module) => {
|
|
1084
|
-
|
|
1084
|
+
function Pend() {
|
|
1085
1085
|
this.pending = 0;
|
|
1086
1086
|
this.max = Infinity;
|
|
1087
1087
|
this.listeners = [];
|
|
1088
1088
|
this.waiting = [];
|
|
1089
1089
|
this.error = null;
|
|
1090
|
-
}
|
|
1091
|
-
|
|
1090
|
+
}
|
|
1091
|
+
function pendHold(self) {
|
|
1092
1092
|
self.pending += 1;
|
|
1093
1093
|
var called = false;
|
|
1094
1094
|
return onCb;
|
|
@@ -1109,10 +1109,10 @@ var require_pend = __commonJS((exports, module) => {
|
|
|
1109
1109
|
function cbListener(listener) {
|
|
1110
1110
|
listener(self.error);
|
|
1111
1111
|
}
|
|
1112
|
-
}
|
|
1113
|
-
|
|
1112
|
+
}
|
|
1113
|
+
function pendGo(self, fn) {
|
|
1114
1114
|
fn(pendHold(self));
|
|
1115
|
-
}
|
|
1115
|
+
}
|
|
1116
1116
|
module.exports = Pend;
|
|
1117
1117
|
Pend.prototype.go = function(fn) {
|
|
1118
1118
|
if (this.pending < this.max) {
|
|
@@ -1135,7 +1135,7 @@ var require_pend = __commonJS((exports, module) => {
|
|
|
1135
1135
|
|
|
1136
1136
|
// /Users/jonathanburger/remotion/node_modules/.pnpm/yauzl@2.10.0/node_modules/fd-slicer/index.js
|
|
1137
1137
|
var require_fd_slicer = __commonJS((exports) => {
|
|
1138
|
-
|
|
1138
|
+
function FdSlicer(fd, options) {
|
|
1139
1139
|
options = options || {};
|
|
1140
1140
|
EventEmitter.call(this);
|
|
1141
1141
|
this.fd = fd;
|
|
@@ -1143,8 +1143,8 @@ var require_fd_slicer = __commonJS((exports) => {
|
|
|
1143
1143
|
this.pend.max = 1;
|
|
1144
1144
|
this.refCount = 0;
|
|
1145
1145
|
this.autoClose = !!options.autoClose;
|
|
1146
|
-
}
|
|
1147
|
-
|
|
1146
|
+
}
|
|
1147
|
+
function ReadStream(context, options) {
|
|
1148
1148
|
options = options || {};
|
|
1149
1149
|
Readable.call(this, options);
|
|
1150
1150
|
this.context = context;
|
|
@@ -1153,8 +1153,8 @@ var require_fd_slicer = __commonJS((exports) => {
|
|
|
1153
1153
|
this.endOffset = options.end;
|
|
1154
1154
|
this.pos = this.start;
|
|
1155
1155
|
this.destroyed = false;
|
|
1156
|
-
}
|
|
1157
|
-
|
|
1156
|
+
}
|
|
1157
|
+
function WriteStream(context, options) {
|
|
1158
1158
|
options = options || {};
|
|
1159
1159
|
Writable.call(this, options);
|
|
1160
1160
|
this.context = context;
|
|
@@ -1165,20 +1165,20 @@ var require_fd_slicer = __commonJS((exports) => {
|
|
|
1165
1165
|
this.pos = this.start;
|
|
1166
1166
|
this.destroyed = false;
|
|
1167
1167
|
this.on("finish", this.destroy.bind(this));
|
|
1168
|
-
}
|
|
1169
|
-
|
|
1168
|
+
}
|
|
1169
|
+
function BufferSlicer(buffer, options) {
|
|
1170
1170
|
EventEmitter.call(this);
|
|
1171
1171
|
options = options || {};
|
|
1172
1172
|
this.refCount = 0;
|
|
1173
1173
|
this.buffer = buffer;
|
|
1174
1174
|
this.maxChunkSize = options.maxChunkSize || Number.MAX_SAFE_INTEGER;
|
|
1175
|
-
}
|
|
1176
|
-
|
|
1175
|
+
}
|
|
1176
|
+
function createFromBuffer(buffer, options) {
|
|
1177
1177
|
return new BufferSlicer(buffer, options);
|
|
1178
|
-
}
|
|
1179
|
-
|
|
1178
|
+
}
|
|
1179
|
+
function createFromFd(fd, options) {
|
|
1180
1180
|
return new FdSlicer(fd, options);
|
|
1181
|
-
}
|
|
1181
|
+
}
|
|
1182
1182
|
var fs = __require("fs");
|
|
1183
1183
|
var util = __require("util");
|
|
1184
1184
|
var stream = __require("stream");
|
|
@@ -1401,7 +1401,7 @@ var require_fd_slicer = __commonJS((exports) => {
|
|
|
1401
1401
|
|
|
1402
1402
|
// /Users/jonathanburger/remotion/node_modules/.pnpm/yauzl@2.10.0/node_modules/buffer-crc32/index.js
|
|
1403
1403
|
var require_buffer_crc32 = __commonJS((exports, module) => {
|
|
1404
|
-
|
|
1404
|
+
function ensureBuffer(input) {
|
|
1405
1405
|
if (Buffer2.isBuffer(input)) {
|
|
1406
1406
|
return input;
|
|
1407
1407
|
}
|
|
@@ -1413,13 +1413,13 @@ var require_buffer_crc32 = __commonJS((exports, module) => {
|
|
|
1413
1413
|
} else {
|
|
1414
1414
|
throw new Error("input must be buffer, number, or string, received " + typeof input);
|
|
1415
1415
|
}
|
|
1416
|
-
}
|
|
1417
|
-
|
|
1416
|
+
}
|
|
1417
|
+
function bufferizeInt(num) {
|
|
1418
1418
|
var tmp = ensureBuffer(4);
|
|
1419
1419
|
tmp.writeInt32BE(num, 0);
|
|
1420
1420
|
return tmp;
|
|
1421
|
-
}
|
|
1422
|
-
|
|
1421
|
+
}
|
|
1422
|
+
function _crc32(buf, previous) {
|
|
1423
1423
|
buf = ensureBuffer(buf);
|
|
1424
1424
|
if (Buffer2.isBuffer(previous)) {
|
|
1425
1425
|
previous = previous.readUInt32BE(0);
|
|
@@ -1429,10 +1429,10 @@ var require_buffer_crc32 = __commonJS((exports, module) => {
|
|
|
1429
1429
|
crc = CRC_TABLE[(crc ^ buf[n]) & 255] ^ crc >>> 8;
|
|
1430
1430
|
}
|
|
1431
1431
|
return crc ^ -1;
|
|
1432
|
-
}
|
|
1433
|
-
|
|
1432
|
+
}
|
|
1433
|
+
function crc32() {
|
|
1434
1434
|
return bufferizeInt(_crc32.apply(null, arguments));
|
|
1435
|
-
}
|
|
1435
|
+
}
|
|
1436
1436
|
var Buffer2 = __require("buffer").Buffer;
|
|
1437
1437
|
var CRC_TABLE = [
|
|
1438
1438
|
0,
|
|
@@ -1706,7 +1706,7 @@ var require_buffer_crc32 = __commonJS((exports, module) => {
|
|
|
1706
1706
|
|
|
1707
1707
|
// /Users/jonathanburger/remotion/node_modules/.pnpm/extract-zip@2.0.1/node_modules/yauzl/index.js
|
|
1708
1708
|
var require_yauzl = __commonJS((exports) => {
|
|
1709
|
-
|
|
1709
|
+
function open(path, options, callback) {
|
|
1710
1710
|
if (typeof options === "function") {
|
|
1711
1711
|
callback = options;
|
|
1712
1712
|
options = null;
|
|
@@ -1734,8 +1734,8 @@ var require_yauzl = __commonJS((exports) => {
|
|
|
1734
1734
|
callback(err2, zipfile);
|
|
1735
1735
|
});
|
|
1736
1736
|
});
|
|
1737
|
-
}
|
|
1738
|
-
|
|
1737
|
+
}
|
|
1738
|
+
function fromFd(fd, options, callback) {
|
|
1739
1739
|
if (typeof options === "function") {
|
|
1740
1740
|
callback = options;
|
|
1741
1741
|
options = null;
|
|
@@ -1760,8 +1760,8 @@ var require_yauzl = __commonJS((exports) => {
|
|
|
1760
1760
|
var reader = fd_slicer.createFromFd(fd, { autoClose: true });
|
|
1761
1761
|
fromRandomAccessReader(reader, stats.size, options, callback);
|
|
1762
1762
|
});
|
|
1763
|
-
}
|
|
1764
|
-
|
|
1763
|
+
}
|
|
1764
|
+
function fromBuffer(buffer, options, callback) {
|
|
1765
1765
|
if (typeof options === "function") {
|
|
1766
1766
|
callback = options;
|
|
1767
1767
|
options = null;
|
|
@@ -1779,8 +1779,8 @@ var require_yauzl = __commonJS((exports) => {
|
|
|
1779
1779
|
options.strictFileNames = false;
|
|
1780
1780
|
var reader = fd_slicer.createFromBuffer(buffer, { maxChunkSize: 65536 });
|
|
1781
1781
|
fromRandomAccessReader(reader, buffer.length, options, callback);
|
|
1782
|
-
}
|
|
1783
|
-
|
|
1782
|
+
}
|
|
1783
|
+
function fromRandomAccessReader(reader, totalSize, options, callback) {
|
|
1784
1784
|
if (typeof options === "function") {
|
|
1785
1785
|
callback = options;
|
|
1786
1786
|
options = null;
|
|
@@ -1858,8 +1858,8 @@ var require_yauzl = __commonJS((exports) => {
|
|
|
1858
1858
|
}
|
|
1859
1859
|
callback(new Error("end of central directory record signature not found"));
|
|
1860
1860
|
});
|
|
1861
|
-
}
|
|
1862
|
-
|
|
1861
|
+
}
|
|
1862
|
+
function ZipFile(reader, centralDirectoryOffset, fileSize, entryCount, comment, autoClose, lazyEntries, decodeStrings, validateEntrySizes, strictFileNames) {
|
|
1863
1863
|
var self = this;
|
|
1864
1864
|
EventEmitter.call(self);
|
|
1865
1865
|
self.reader = reader;
|
|
@@ -1883,21 +1883,21 @@ var require_yauzl = __commonJS((exports) => {
|
|
|
1883
1883
|
self.emittedError = false;
|
|
1884
1884
|
if (!self.lazyEntries)
|
|
1885
1885
|
self._readEntry();
|
|
1886
|
-
}
|
|
1887
|
-
|
|
1886
|
+
}
|
|
1887
|
+
function emitErrorAndAutoClose(self, err) {
|
|
1888
1888
|
if (self.autoClose)
|
|
1889
1889
|
self.close();
|
|
1890
1890
|
emitError(self, err);
|
|
1891
|
-
}
|
|
1892
|
-
|
|
1891
|
+
}
|
|
1892
|
+
function emitError(self, err) {
|
|
1893
1893
|
if (self.emittedError)
|
|
1894
1894
|
return;
|
|
1895
1895
|
self.emittedError = true;
|
|
1896
1896
|
self.emit("error", err);
|
|
1897
|
-
}
|
|
1898
|
-
|
|
1899
|
-
}
|
|
1900
|
-
|
|
1897
|
+
}
|
|
1898
|
+
function Entry() {
|
|
1899
|
+
}
|
|
1900
|
+
function dosDateTimeToDate(date, time) {
|
|
1901
1901
|
var day = date & 31;
|
|
1902
1902
|
var month = (date >> 5 & 15) - 1;
|
|
1903
1903
|
var year = (date >> 9 & 127) + 1980;
|
|
@@ -1906,8 +1906,8 @@ var require_yauzl = __commonJS((exports) => {
|
|
|
1906
1906
|
var minute = time >> 5 & 63;
|
|
1907
1907
|
var hour = time >> 11 & 31;
|
|
1908
1908
|
return new Date(year, month, day, hour, minute, second, millisecond);
|
|
1909
|
-
}
|
|
1910
|
-
|
|
1909
|
+
}
|
|
1910
|
+
function validateFileName(fileName) {
|
|
1911
1911
|
if (fileName.indexOf("\\") !== -1) {
|
|
1912
1912
|
return "invalid characters in fileName: " + fileName;
|
|
1913
1913
|
}
|
|
@@ -1918,8 +1918,8 @@ var require_yauzl = __commonJS((exports) => {
|
|
|
1918
1918
|
return "invalid relative path: " + fileName;
|
|
1919
1919
|
}
|
|
1920
1920
|
return null;
|
|
1921
|
-
}
|
|
1922
|
-
|
|
1921
|
+
}
|
|
1922
|
+
function readAndAssertNoEof(reader, buffer, offset, length, position, callback) {
|
|
1923
1923
|
if (length === 0) {
|
|
1924
1924
|
return setImmediate(function() {
|
|
1925
1925
|
callback(null, newBuffer(0));
|
|
@@ -1933,23 +1933,23 @@ var require_yauzl = __commonJS((exports) => {
|
|
|
1933
1933
|
}
|
|
1934
1934
|
callback();
|
|
1935
1935
|
});
|
|
1936
|
-
}
|
|
1937
|
-
|
|
1936
|
+
}
|
|
1937
|
+
function AssertByteCountStream(byteCount) {
|
|
1938
1938
|
Transform.call(this);
|
|
1939
1939
|
this.actualByteCount = 0;
|
|
1940
1940
|
this.expectedByteCount = byteCount;
|
|
1941
|
-
}
|
|
1942
|
-
|
|
1941
|
+
}
|
|
1942
|
+
function RandomAccessReader() {
|
|
1943
1943
|
EventEmitter.call(this);
|
|
1944
1944
|
this.refCount = 0;
|
|
1945
|
-
}
|
|
1946
|
-
|
|
1945
|
+
}
|
|
1946
|
+
function RefUnrefFilter(context) {
|
|
1947
1947
|
PassThrough.call(this);
|
|
1948
1948
|
this.context = context;
|
|
1949
1949
|
this.context.ref();
|
|
1950
1950
|
this.unreffedYet = false;
|
|
1951
|
-
}
|
|
1952
|
-
|
|
1951
|
+
}
|
|
1952
|
+
function decodeBuffer(buffer, start, end, isUtf8) {
|
|
1953
1953
|
if (isUtf8) {
|
|
1954
1954
|
return buffer.toString("utf8", start, end);
|
|
1955
1955
|
} else {
|
|
@@ -1959,16 +1959,16 @@ var require_yauzl = __commonJS((exports) => {
|
|
|
1959
1959
|
}
|
|
1960
1960
|
return result;
|
|
1961
1961
|
}
|
|
1962
|
-
}
|
|
1963
|
-
|
|
1962
|
+
}
|
|
1963
|
+
function readUInt64LE(buffer, offset) {
|
|
1964
1964
|
var lower32 = buffer.readUInt32LE(offset);
|
|
1965
1965
|
var upper32 = buffer.readUInt32LE(offset + 4);
|
|
1966
1966
|
return upper32 * 4294967296 + lower32;
|
|
1967
|
-
}
|
|
1968
|
-
|
|
1967
|
+
}
|
|
1968
|
+
function defaultCallback(err) {
|
|
1969
1969
|
if (err)
|
|
1970
1970
|
throw err;
|
|
1971
|
-
}
|
|
1971
|
+
}
|
|
1972
1972
|
var fs = __require("fs");
|
|
1973
1973
|
var zlib = __require("zlib");
|
|
1974
1974
|
var fd_slicer = require_fd_slicer();
|
|
@@ -3022,7 +3022,7 @@ var getDownloadsCacheDir = () => {
|
|
|
3022
3022
|
};
|
|
3023
3023
|
|
|
3024
3024
|
// src/browser/BrowserFetcher.ts
|
|
3025
|
-
|
|
3025
|
+
function getChromeDownloadUrl({
|
|
3026
3026
|
platform: platform2,
|
|
3027
3027
|
version: version2
|
|
3028
3028
|
}) {
|
|
@@ -3030,14 +3030,14 @@ var getChromeDownloadUrl = function({
|
|
|
3030
3030
|
return `https://playwright.azureedge.net/builds/chromium/${version2 ?? PLAYWRIGHT_VERSION}/chromium-linux-arm64.zip`;
|
|
3031
3031
|
}
|
|
3032
3032
|
return `https://storage.googleapis.com/chrome-for-testing-public/${version2 ?? TESTED_VERSION}/${platform2}/chrome-headless-shell-${platform2}.zip`;
|
|
3033
|
-
}
|
|
3034
|
-
|
|
3033
|
+
}
|
|
3034
|
+
function existsAsync(filePath) {
|
|
3035
3035
|
return new Promise((resolve2) => {
|
|
3036
3036
|
fs3.access(filePath, (err) => {
|
|
3037
3037
|
return resolve2(!err);
|
|
3038
3038
|
});
|
|
3039
3039
|
});
|
|
3040
|
-
}
|
|
3040
|
+
}
|
|
3041
3041
|
var TESTED_VERSION = "123.0.6312.86";
|
|
3042
3042
|
var PLAYWRIGHT_VERSION = "1105";
|
|
3043
3043
|
var mkdirAsync = fs3.promises.mkdir;
|
|
@@ -3104,7 +3104,6 @@ var downloadBrowser = async ({
|
|
|
3104
3104
|
indent,
|
|
3105
3105
|
logLevel
|
|
3106
3106
|
});
|
|
3107
|
-
Log.info({ indent, logLevel });
|
|
3108
3107
|
await import_extract_zip.default(archivePath, { dir: outputPath });
|
|
3109
3108
|
const chromePath = path3.join(outputPath, "chrome-linux", "chrome");
|
|
3110
3109
|
const chromeHeadlessShellPath = path3.join(outputPath, "chrome-linux", "chrome-headless-shell");
|
|
@@ -3160,7 +3159,6 @@ var defaultBrowserDownloadProgress = ({
|
|
|
3160
3159
|
logLevel,
|
|
3161
3160
|
api
|
|
3162
3161
|
}) => () => {
|
|
3163
|
-
Log.info({ indent, logLevel }, "No local browser could be found.");
|
|
3164
3162
|
Log.info({ indent, logLevel }, "Downloading Chrome Headless Shell https://www.remotion.dev/docs/miscellaneous/chrome-headless-shell");
|
|
3165
3163
|
Log.info({ indent, logLevel }, `Customize this behavior by adding a onBrowserDownload function to ${api}.`);
|
|
3166
3164
|
return {
|
|
@@ -3177,698 +3175,8 @@ var defaultBrowserDownloadProgress = ({
|
|
|
3177
3175
|
|
|
3178
3176
|
// src/get-local-browser.ts
|
|
3179
3177
|
import fs4 from "fs";
|
|
3180
|
-
import {homedir} from "node:os";
|
|
3181
|
-
|
|
3182
|
-
// /Users/jonathanburger/remotion/packages/renderer/node_modules/remotion/dist/esm/no-react.mjs
|
|
3183
|
-
var interpolate = function(input, inputRange, outputRange, options) {
|
|
3184
|
-
if (typeof input === "undefined") {
|
|
3185
|
-
throw new Error("input can not be undefined");
|
|
3186
|
-
}
|
|
3187
|
-
if (typeof inputRange === "undefined") {
|
|
3188
|
-
throw new Error("inputRange can not be undefined");
|
|
3189
|
-
}
|
|
3190
|
-
if (typeof outputRange === "undefined") {
|
|
3191
|
-
throw new Error("outputRange can not be undefined");
|
|
3192
|
-
}
|
|
3193
|
-
if (inputRange.length !== outputRange.length) {
|
|
3194
|
-
throw new Error("inputRange (" + inputRange.length + ") and outputRange (" + outputRange.length + ") must have the same length");
|
|
3195
|
-
}
|
|
3196
|
-
checkInfiniteRange("inputRange", inputRange);
|
|
3197
|
-
checkInfiniteRange("outputRange", outputRange);
|
|
3198
|
-
checkValidInputRange(inputRange);
|
|
3199
|
-
const easing = options?.easing ?? ((num) => num);
|
|
3200
|
-
let extrapolateLeft = "extend";
|
|
3201
|
-
if (options?.extrapolateLeft !== undefined) {
|
|
3202
|
-
extrapolateLeft = options.extrapolateLeft;
|
|
3203
|
-
}
|
|
3204
|
-
let extrapolateRight = "extend";
|
|
3205
|
-
if (options?.extrapolateRight !== undefined) {
|
|
3206
|
-
extrapolateRight = options.extrapolateRight;
|
|
3207
|
-
}
|
|
3208
|
-
if (typeof input !== "number") {
|
|
3209
|
-
throw new TypeError("Cannot interpolate an input which is not a number");
|
|
3210
|
-
}
|
|
3211
|
-
const range = findRange(input, inputRange);
|
|
3212
|
-
return interpolateFunction(input, [inputRange[range], inputRange[range + 1]], [outputRange[range], outputRange[range + 1]], {
|
|
3213
|
-
easing,
|
|
3214
|
-
extrapolateLeft,
|
|
3215
|
-
extrapolateRight
|
|
3216
|
-
});
|
|
3217
|
-
};
|
|
3218
|
-
var truthy4 = function(value) {
|
|
3219
|
-
return Boolean(value);
|
|
3220
|
-
};
|
|
3221
|
-
var processColor = function(color) {
|
|
3222
|
-
const normalizedColor = normalizeColor(color);
|
|
3223
|
-
return (normalizedColor << 24 | normalizedColor >>> 8) >>> 0;
|
|
3224
|
-
};
|
|
3225
|
-
var validateDimension = function(amount, nameOfProp, location) {
|
|
3226
|
-
if (typeof amount !== "number") {
|
|
3227
|
-
throw new Error(`The "${nameOfProp}" prop ${location} must be a number, but you passed a value of type ${typeof amount}`);
|
|
3228
|
-
}
|
|
3229
|
-
if (isNaN(amount)) {
|
|
3230
|
-
throw new TypeError(`The "${nameOfProp}" prop ${location} must not be NaN, but is NaN.`);
|
|
3231
|
-
}
|
|
3232
|
-
if (!Number.isFinite(amount)) {
|
|
3233
|
-
throw new TypeError(`The "${nameOfProp}" prop ${location} must be finite, but is ${amount}.`);
|
|
3234
|
-
}
|
|
3235
|
-
if (amount % 1 !== 0) {
|
|
3236
|
-
throw new TypeError(`The "${nameOfProp}" prop ${location} must be an integer, but is ${amount}.`);
|
|
3237
|
-
}
|
|
3238
|
-
if (amount <= 0) {
|
|
3239
|
-
throw new TypeError(`The "${nameOfProp}" prop ${location} must be positive, but got ${amount}.`);
|
|
3240
|
-
}
|
|
3241
|
-
};
|
|
3242
|
-
var validateDurationInFrames = function(durationInFrames, options) {
|
|
3243
|
-
const { allowFloats, component } = options;
|
|
3244
|
-
if (typeof durationInFrames === "undefined") {
|
|
3245
|
-
throw new Error(`The "durationInFrames" prop ${component} is missing.`);
|
|
3246
|
-
}
|
|
3247
|
-
if (typeof durationInFrames !== "number") {
|
|
3248
|
-
throw new Error(`The "durationInFrames" prop ${component} must be a number, but you passed a value of type ${typeof durationInFrames}`);
|
|
3249
|
-
}
|
|
3250
|
-
if (durationInFrames <= 0) {
|
|
3251
|
-
throw new TypeError(`The "durationInFrames" prop ${component} must be positive, but got ${durationInFrames}.`);
|
|
3252
|
-
}
|
|
3253
|
-
if (!allowFloats && durationInFrames % 1 !== 0) {
|
|
3254
|
-
throw new TypeError(`The "durationInFrames" prop ${component} must be an integer, but got ${durationInFrames}.`);
|
|
3255
|
-
}
|
|
3256
|
-
if (!Number.isFinite(durationInFrames)) {
|
|
3257
|
-
throw new TypeError(`The "durationInFrames" prop ${component} must be finite, but got ${durationInFrames}.`);
|
|
3258
|
-
}
|
|
3259
|
-
};
|
|
3260
|
-
var validateFps = function(fps, location, isGif) {
|
|
3261
|
-
if (typeof fps !== "number") {
|
|
3262
|
-
throw new Error(`"fps" must be a number, but you passed a value of type ${typeof fps} ${location}`);
|
|
3263
|
-
}
|
|
3264
|
-
if (!Number.isFinite(fps)) {
|
|
3265
|
-
throw new Error(`"fps" must be a finite, but you passed ${fps} ${location}`);
|
|
3266
|
-
}
|
|
3267
|
-
if (isNaN(fps)) {
|
|
3268
|
-
throw new Error(`"fps" must not be NaN, but got ${fps} ${location}`);
|
|
3269
|
-
}
|
|
3270
|
-
if (fps <= 0) {
|
|
3271
|
-
throw new TypeError(`"fps" must be positive, but got ${fps} ${location}`);
|
|
3272
|
-
}
|
|
3273
|
-
if (isGif && fps > 50) {
|
|
3274
|
-
throw new TypeError(`The FPS for a GIF cannot be higher than 50. Use the --every-nth-frame option to lower the FPS: https://remotion.dev/docs/render-as-gif`);
|
|
3275
|
-
}
|
|
3276
|
-
};
|
|
3277
|
-
var interpolateFunction = function(input, inputRange, outputRange, options) {
|
|
3278
|
-
const { extrapolateLeft, extrapolateRight, easing } = options;
|
|
3279
|
-
let result = input;
|
|
3280
|
-
const [inputMin, inputMax] = inputRange;
|
|
3281
|
-
const [outputMin, outputMax] = outputRange;
|
|
3282
|
-
if (result < inputMin) {
|
|
3283
|
-
if (extrapolateLeft === "identity") {
|
|
3284
|
-
return result;
|
|
3285
|
-
}
|
|
3286
|
-
if (extrapolateLeft === "clamp") {
|
|
3287
|
-
result = inputMin;
|
|
3288
|
-
} else if (extrapolateLeft === "wrap") {
|
|
3289
|
-
const range = inputMax - inputMin;
|
|
3290
|
-
result = ((result - inputMin) % range + range) % range + inputMin;
|
|
3291
|
-
} else if (extrapolateLeft === "extend") {
|
|
3292
|
-
}
|
|
3293
|
-
}
|
|
3294
|
-
if (result > inputMax) {
|
|
3295
|
-
if (extrapolateRight === "identity") {
|
|
3296
|
-
return result;
|
|
3297
|
-
}
|
|
3298
|
-
if (extrapolateRight === "clamp") {
|
|
3299
|
-
result = inputMax;
|
|
3300
|
-
} else if (extrapolateRight === "wrap") {
|
|
3301
|
-
const range = inputMax - inputMin;
|
|
3302
|
-
result = ((result - inputMin) % range + range) % range + inputMin;
|
|
3303
|
-
} else if (extrapolateRight === "extend") {
|
|
3304
|
-
}
|
|
3305
|
-
}
|
|
3306
|
-
if (outputMin === outputMax) {
|
|
3307
|
-
return outputMin;
|
|
3308
|
-
}
|
|
3309
|
-
result = (result - inputMin) / (inputMax - inputMin);
|
|
3310
|
-
result = easing(result);
|
|
3311
|
-
result = result * (outputMax - outputMin) + outputMin;
|
|
3312
|
-
return result;
|
|
3313
|
-
};
|
|
3314
|
-
var findRange = function(input, inputRange) {
|
|
3315
|
-
let i;
|
|
3316
|
-
for (i = 1;i < inputRange.length - 1; ++i) {
|
|
3317
|
-
if (inputRange[i] >= input) {
|
|
3318
|
-
break;
|
|
3319
|
-
}
|
|
3320
|
-
}
|
|
3321
|
-
return i - 1;
|
|
3322
|
-
};
|
|
3323
|
-
var checkValidInputRange = function(arr) {
|
|
3324
|
-
for (let i = 1;i < arr.length; ++i) {
|
|
3325
|
-
if (!(arr[i] > arr[i - 1])) {
|
|
3326
|
-
throw new Error(`inputRange must be strictly monotonically increasing but got [${arr.join(",")}]`);
|
|
3327
|
-
}
|
|
3328
|
-
}
|
|
3329
|
-
};
|
|
3330
|
-
var checkInfiniteRange = function(name, arr) {
|
|
3331
|
-
if (arr.length < 2) {
|
|
3332
|
-
throw new Error(name + " must have at least 2 elements");
|
|
3333
|
-
}
|
|
3334
|
-
for (const element of arr) {
|
|
3335
|
-
if (typeof element !== "number") {
|
|
3336
|
-
throw new Error(`${name} must contain only numbers`);
|
|
3337
|
-
}
|
|
3338
|
-
if (!Number.isFinite(element)) {
|
|
3339
|
-
throw new Error(`${name} must contain only finite numbers, but got [${arr.join(",")}]`);
|
|
3340
|
-
}
|
|
3341
|
-
}
|
|
3342
|
-
};
|
|
3343
|
-
if (typeof window !== "undefined") {
|
|
3344
|
-
window.remotion_renderReady = false;
|
|
3345
|
-
}
|
|
3346
|
-
if (typeof window !== "undefined") {
|
|
3347
|
-
window.remotion_delayRenderTimeouts = {};
|
|
3348
|
-
}
|
|
3349
|
-
var DELAY_RENDER_CALLSTACK_TOKEN = "The delayRender was called:";
|
|
3350
|
-
var DELAY_RENDER_RETRIES_LEFT = "Retries left: ";
|
|
3351
|
-
var DELAY_RENDER_RETRY_TOKEN = "- Rendering the frame will be retried.";
|
|
3352
|
-
var problematicCharacters = {
|
|
3353
|
-
"%3A": ":",
|
|
3354
|
-
"%2F": "/",
|
|
3355
|
-
"%3F": "?",
|
|
3356
|
-
"%23": "#",
|
|
3357
|
-
"%5B": "[",
|
|
3358
|
-
"%5D": "]",
|
|
3359
|
-
"%40": "@",
|
|
3360
|
-
"%21": "!",
|
|
3361
|
-
"%24": "$",
|
|
3362
|
-
"%26": "&",
|
|
3363
|
-
"%27": "'",
|
|
3364
|
-
"%28": "(",
|
|
3365
|
-
"%29": ")",
|
|
3366
|
-
"%2A": "*",
|
|
3367
|
-
"%2B": "+",
|
|
3368
|
-
"%2C": ",",
|
|
3369
|
-
"%3B": ";"
|
|
3370
|
-
};
|
|
3371
|
-
var didWarn = {};
|
|
3372
|
-
var warnOnce = (message) => {
|
|
3373
|
-
if (didWarn[message]) {
|
|
3374
|
-
return;
|
|
3375
|
-
}
|
|
3376
|
-
console.warn(message);
|
|
3377
|
-
didWarn[message] = true;
|
|
3378
|
-
};
|
|
3379
|
-
var includesHexOfUnsafeChar = (path4) => {
|
|
3380
|
-
for (const key of Object.keys(problematicCharacters)) {
|
|
3381
|
-
if (path4.includes(key)) {
|
|
3382
|
-
return { containsHex: true, hexCode: key };
|
|
3383
|
-
}
|
|
3384
|
-
}
|
|
3385
|
-
return { containsHex: false };
|
|
3386
|
-
};
|
|
3387
|
-
var trimLeadingSlash = (path4) => {
|
|
3388
|
-
if (path4.startsWith("/")) {
|
|
3389
|
-
return trimLeadingSlash(path4.substring(1));
|
|
3390
|
-
}
|
|
3391
|
-
return path4;
|
|
3392
|
-
};
|
|
3393
|
-
var inner = (path4) => {
|
|
3394
|
-
if (typeof window !== "undefined" && window.remotion_staticBase) {
|
|
3395
|
-
if (path4.startsWith(window.remotion_staticBase)) {
|
|
3396
|
-
throw new Error(`The value "${path4}" is already prefixed with the static base ${window.remotion_staticBase}. You don't need to call staticFile() on it.`);
|
|
3397
|
-
}
|
|
3398
|
-
return `${window.remotion_staticBase}/${trimLeadingSlash(path4)}`;
|
|
3399
|
-
}
|
|
3400
|
-
return `/${trimLeadingSlash(path4)}`;
|
|
3401
|
-
};
|
|
3402
|
-
var encodeBySplitting = (path4) => {
|
|
3403
|
-
const splitBySlash = path4.split("/");
|
|
3404
|
-
const encodedArray = splitBySlash.map((element) => {
|
|
3405
|
-
return encodeURIComponent(element);
|
|
3406
|
-
});
|
|
3407
|
-
const merged = encodedArray.join("/");
|
|
3408
|
-
return merged;
|
|
3409
|
-
};
|
|
3410
|
-
var staticFile = (path4) => {
|
|
3411
|
-
if (path4.startsWith("http://") || path4.startsWith("https://")) {
|
|
3412
|
-
throw new TypeError(`staticFile() does not support remote URLs - got "${path4}". Instead, pass the URL without wrapping it in staticFile(). See: https://remotion.dev/docs/staticfile-remote-urls`);
|
|
3413
|
-
}
|
|
3414
|
-
if (path4.startsWith("..") || path4.startsWith("./")) {
|
|
3415
|
-
throw new TypeError(`staticFile() does not support relative paths - got "${path4}". Instead, pass the name of a file that is inside the public/ folder. See: https://remotion.dev/docs/staticfile-relative-paths`);
|
|
3416
|
-
}
|
|
3417
|
-
if (path4.startsWith("/Users") || path4.startsWith("/home") || path4.startsWith("/tmp") || path4.startsWith("/etc") || path4.startsWith("/opt") || path4.startsWith("/var") || path4.startsWith("C:") || path4.startsWith("D:") || path4.startsWith("E:")) {
|
|
3418
|
-
throw new TypeError(`staticFile() does not support absolute paths - got "${path4}". Instead, pass the name of a file that is inside the public/ folder. See: https://remotion.dev/docs/staticfile-relative-paths`);
|
|
3419
|
-
}
|
|
3420
|
-
if (path4.startsWith("public/")) {
|
|
3421
|
-
throw new TypeError(`Do not include the public/ prefix when using staticFile() - got "${path4}". See: https://remotion.dev/docs/staticfile-relative-paths`);
|
|
3422
|
-
}
|
|
3423
|
-
const includesHex = includesHexOfUnsafeChar(path4);
|
|
3424
|
-
if (includesHex.containsHex) {
|
|
3425
|
-
warnOnce(`WARNING: You seem to pass an already encoded path (path contains ${includesHex.hexCode}). Since Remotion 4.0, the encoding is done by staticFile() itself. You may want to remove a encodeURIComponent() wrapping.`);
|
|
3426
|
-
}
|
|
3427
|
-
const preprocessed = encodeBySplitting(path4);
|
|
3428
|
-
const preparsed = inner(preprocessed);
|
|
3429
|
-
if (!preparsed.startsWith("/")) {
|
|
3430
|
-
return `/${preparsed}`;
|
|
3431
|
-
}
|
|
3432
|
-
return preparsed;
|
|
3433
|
-
};
|
|
3434
|
-
var DATE_TOKEN = "remotion-date:";
|
|
3435
|
-
var FILE_TOKEN = "remotion-file:";
|
|
3436
|
-
var serializeJSONWithDate = ({
|
|
3437
|
-
data,
|
|
3438
|
-
indent,
|
|
3439
|
-
staticBase
|
|
3440
|
-
}) => {
|
|
3441
|
-
let customDateUsed = false;
|
|
3442
|
-
let customFileUsed = false;
|
|
3443
|
-
let mapUsed = false;
|
|
3444
|
-
let setUsed = false;
|
|
3445
|
-
try {
|
|
3446
|
-
const serializedString = JSON.stringify(data, function(key, value) {
|
|
3447
|
-
const item = this[key];
|
|
3448
|
-
if (item instanceof Date) {
|
|
3449
|
-
customDateUsed = true;
|
|
3450
|
-
return `${DATE_TOKEN}${item.toISOString()}`;
|
|
3451
|
-
}
|
|
3452
|
-
if (item instanceof Map) {
|
|
3453
|
-
mapUsed = true;
|
|
3454
|
-
return value;
|
|
3455
|
-
}
|
|
3456
|
-
if (item instanceof Set) {
|
|
3457
|
-
setUsed = true;
|
|
3458
|
-
return value;
|
|
3459
|
-
}
|
|
3460
|
-
if (typeof item === "string" && staticBase !== null && item.startsWith(staticBase)) {
|
|
3461
|
-
customFileUsed = true;
|
|
3462
|
-
return `${FILE_TOKEN}${item.replace(staticBase + "/", "")}`;
|
|
3463
|
-
}
|
|
3464
|
-
return value;
|
|
3465
|
-
}, indent);
|
|
3466
|
-
return { serializedString, customDateUsed, customFileUsed, mapUsed, setUsed };
|
|
3467
|
-
} catch (err) {
|
|
3468
|
-
throw new Error("Could not serialize the passed input props to JSON: " + err.message);
|
|
3469
|
-
}
|
|
3470
|
-
};
|
|
3471
|
-
var deserializeJSONWithCustomFields = (data) => {
|
|
3472
|
-
return JSON.parse(data, (_, value) => {
|
|
3473
|
-
if (typeof value === "string" && value.startsWith(DATE_TOKEN)) {
|
|
3474
|
-
return new Date(value.replace(DATE_TOKEN, ""));
|
|
3475
|
-
}
|
|
3476
|
-
if (typeof value === "string" && value.startsWith(FILE_TOKEN)) {
|
|
3477
|
-
return staticFile(value.replace(FILE_TOKEN, ""));
|
|
3478
|
-
}
|
|
3479
|
-
return value;
|
|
3480
|
-
});
|
|
3481
|
-
};
|
|
3482
|
-
var call = function(...args) {
|
|
3483
|
-
return "\\(\\s*(" + args.join(")\\s*,\\s*(") + ")\\s*\\)";
|
|
3484
|
-
};
|
|
3485
|
-
var getMatchers = function() {
|
|
3486
|
-
const cachedMatchers = {
|
|
3487
|
-
rgb: undefined,
|
|
3488
|
-
rgba: undefined,
|
|
3489
|
-
hsl: undefined,
|
|
3490
|
-
hsla: undefined,
|
|
3491
|
-
hex3: undefined,
|
|
3492
|
-
hex4: undefined,
|
|
3493
|
-
hex5: undefined,
|
|
3494
|
-
hex6: undefined,
|
|
3495
|
-
hex8: undefined
|
|
3496
|
-
};
|
|
3497
|
-
if (cachedMatchers.rgb === undefined) {
|
|
3498
|
-
cachedMatchers.rgb = new RegExp("rgb" + call(NUMBER, NUMBER, NUMBER));
|
|
3499
|
-
cachedMatchers.rgba = new RegExp("rgba" + call(NUMBER, NUMBER, NUMBER, NUMBER));
|
|
3500
|
-
cachedMatchers.hsl = new RegExp("hsl" + call(NUMBER, PERCENTAGE, PERCENTAGE));
|
|
3501
|
-
cachedMatchers.hsla = new RegExp("hsla" + call(NUMBER, PERCENTAGE, PERCENTAGE, NUMBER));
|
|
3502
|
-
cachedMatchers.hex3 = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/;
|
|
3503
|
-
cachedMatchers.hex4 = /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/;
|
|
3504
|
-
cachedMatchers.hex6 = /^#([0-9a-fA-F]{6})$/;
|
|
3505
|
-
cachedMatchers.hex8 = /^#([0-9a-fA-F]{8})$/;
|
|
3506
|
-
}
|
|
3507
|
-
return cachedMatchers;
|
|
3508
|
-
};
|
|
3509
|
-
var hue2rgb = function(p, q, t) {
|
|
3510
|
-
if (t < 0) {
|
|
3511
|
-
t += 1;
|
|
3512
|
-
}
|
|
3513
|
-
if (t > 1) {
|
|
3514
|
-
t -= 1;
|
|
3515
|
-
}
|
|
3516
|
-
if (t < 1 / 6) {
|
|
3517
|
-
return p + (q - p) * 6 * t;
|
|
3518
|
-
}
|
|
3519
|
-
if (t < 1 / 2) {
|
|
3520
|
-
return q;
|
|
3521
|
-
}
|
|
3522
|
-
if (t < 2 / 3) {
|
|
3523
|
-
return p + (q - p) * (2 / 3 - t) * 6;
|
|
3524
|
-
}
|
|
3525
|
-
return p;
|
|
3526
|
-
};
|
|
3527
|
-
var hslToRgb = function(h, s, l) {
|
|
3528
|
-
const q = l < 0.5 ? l * (1 + s) : l + s - l * s;
|
|
3529
|
-
const p = 2 * l - q;
|
|
3530
|
-
const r = hue2rgb(p, q, h + 1 / 3);
|
|
3531
|
-
const g = hue2rgb(p, q, h);
|
|
3532
|
-
const b = hue2rgb(p, q, h - 1 / 3);
|
|
3533
|
-
return Math.round(r * 255) << 24 | Math.round(g * 255) << 16 | Math.round(b * 255) << 8;
|
|
3534
|
-
};
|
|
3535
|
-
var parse255 = function(str) {
|
|
3536
|
-
const int = Number.parseInt(str, 10);
|
|
3537
|
-
if (int < 0) {
|
|
3538
|
-
return 0;
|
|
3539
|
-
}
|
|
3540
|
-
if (int > 255) {
|
|
3541
|
-
return 255;
|
|
3542
|
-
}
|
|
3543
|
-
return int;
|
|
3544
|
-
};
|
|
3545
|
-
var parse360 = function(str) {
|
|
3546
|
-
const int = Number.parseFloat(str);
|
|
3547
|
-
return (int % 360 + 360) % 360 / 360;
|
|
3548
|
-
};
|
|
3549
|
-
var parse1 = function(str) {
|
|
3550
|
-
const num = Number.parseFloat(str);
|
|
3551
|
-
if (num < 0) {
|
|
3552
|
-
return 0;
|
|
3553
|
-
}
|
|
3554
|
-
if (num > 1) {
|
|
3555
|
-
return 255;
|
|
3556
|
-
}
|
|
3557
|
-
return Math.round(num * 255);
|
|
3558
|
-
};
|
|
3559
|
-
var parsePercentage = function(str) {
|
|
3560
|
-
const int = Number.parseFloat(str);
|
|
3561
|
-
if (int < 0) {
|
|
3562
|
-
return 0;
|
|
3563
|
-
}
|
|
3564
|
-
if (int > 100) {
|
|
3565
|
-
return 1;
|
|
3566
|
-
}
|
|
3567
|
-
return int / 100;
|
|
3568
|
-
};
|
|
3569
|
-
var normalizeColor = function(color) {
|
|
3570
|
-
const matchers = getMatchers();
|
|
3571
|
-
let match;
|
|
3572
|
-
if (matchers.hex6) {
|
|
3573
|
-
if (match = matchers.hex6.exec(color)) {
|
|
3574
|
-
return Number.parseInt(match[1] + "ff", 16) >>> 0;
|
|
3575
|
-
}
|
|
3576
|
-
}
|
|
3577
|
-
if (colorNames[color] !== undefined) {
|
|
3578
|
-
return colorNames[color];
|
|
3579
|
-
}
|
|
3580
|
-
if (matchers.rgb) {
|
|
3581
|
-
if (match = matchers.rgb.exec(color)) {
|
|
3582
|
-
return (parse255(match[1]) << 24 | parse255(match[2]) << 16 | parse255(match[3]) << 8 | 255) >>> 0;
|
|
3583
|
-
}
|
|
3584
|
-
}
|
|
3585
|
-
if (matchers.rgba) {
|
|
3586
|
-
if (match = matchers.rgba.exec(color)) {
|
|
3587
|
-
return (parse255(match[1]) << 24 | parse255(match[2]) << 16 | parse255(match[3]) << 8 | parse1(match[4])) >>> 0;
|
|
3588
|
-
}
|
|
3589
|
-
}
|
|
3590
|
-
if (matchers.hex3) {
|
|
3591
|
-
if (match = matchers.hex3.exec(color)) {
|
|
3592
|
-
return Number.parseInt(match[1] + match[1] + match[2] + match[2] + match[3] + match[3] + "ff", 16) >>> 0;
|
|
3593
|
-
}
|
|
3594
|
-
}
|
|
3595
|
-
if (matchers.hex8) {
|
|
3596
|
-
if (match = matchers.hex8.exec(color)) {
|
|
3597
|
-
return Number.parseInt(match[1], 16) >>> 0;
|
|
3598
|
-
}
|
|
3599
|
-
}
|
|
3600
|
-
if (matchers.hex4) {
|
|
3601
|
-
if (match = matchers.hex4.exec(color)) {
|
|
3602
|
-
return Number.parseInt(match[1] + match[1] + match[2] + match[2] + match[3] + match[3] + match[4] + match[4], 16) >>> 0;
|
|
3603
|
-
}
|
|
3604
|
-
}
|
|
3605
|
-
if (matchers.hsl) {
|
|
3606
|
-
if (match = matchers.hsl.exec(color)) {
|
|
3607
|
-
return (hslToRgb(parse360(match[1]), parsePercentage(match[2]), parsePercentage(match[3])) | 255) >>> 0;
|
|
3608
|
-
}
|
|
3609
|
-
}
|
|
3610
|
-
if (matchers.hsla) {
|
|
3611
|
-
if (match = matchers.hsla.exec(color)) {
|
|
3612
|
-
return (hslToRgb(parse360(match[1]), parsePercentage(match[2]), parsePercentage(match[3])) | parse1(match[4])) >>> 0;
|
|
3613
|
-
}
|
|
3614
|
-
}
|
|
3615
|
-
throw new Error(`invalid color string ${color} provided`);
|
|
3616
|
-
};
|
|
3617
|
-
var NUMBER = "[-+]?\\d*\\.?\\d+";
|
|
3618
|
-
var PERCENTAGE = NUMBER + "%";
|
|
3619
|
-
var colorNames = {
|
|
3620
|
-
transparent: 0,
|
|
3621
|
-
aliceblue: 4042850303,
|
|
3622
|
-
antiquewhite: 4209760255,
|
|
3623
|
-
aqua: 16777215,
|
|
3624
|
-
aquamarine: 2147472639,
|
|
3625
|
-
azure: 4043309055,
|
|
3626
|
-
beige: 4126530815,
|
|
3627
|
-
bisque: 4293182719,
|
|
3628
|
-
black: 255,
|
|
3629
|
-
blanchedalmond: 4293643775,
|
|
3630
|
-
blue: 65535,
|
|
3631
|
-
blueviolet: 2318131967,
|
|
3632
|
-
brown: 2771004159,
|
|
3633
|
-
burlywood: 3736635391,
|
|
3634
|
-
burntsienna: 3934150143,
|
|
3635
|
-
cadetblue: 1604231423,
|
|
3636
|
-
chartreuse: 2147418367,
|
|
3637
|
-
chocolate: 3530104575,
|
|
3638
|
-
coral: 4286533887,
|
|
3639
|
-
cornflowerblue: 1687547391,
|
|
3640
|
-
cornsilk: 4294499583,
|
|
3641
|
-
crimson: 3692313855,
|
|
3642
|
-
cyan: 16777215,
|
|
3643
|
-
darkblue: 35839,
|
|
3644
|
-
darkcyan: 9145343,
|
|
3645
|
-
darkgoldenrod: 3095792639,
|
|
3646
|
-
darkgray: 2846468607,
|
|
3647
|
-
darkgreen: 6553855,
|
|
3648
|
-
darkgrey: 2846468607,
|
|
3649
|
-
darkkhaki: 3182914559,
|
|
3650
|
-
darkmagenta: 2332068863,
|
|
3651
|
-
darkolivegreen: 1433087999,
|
|
3652
|
-
darkorange: 4287365375,
|
|
3653
|
-
darkorchid: 2570243327,
|
|
3654
|
-
darkred: 2332033279,
|
|
3655
|
-
darksalmon: 3918953215,
|
|
3656
|
-
darkseagreen: 2411499519,
|
|
3657
|
-
darkslateblue: 1211993087,
|
|
3658
|
-
darkslategray: 793726975,
|
|
3659
|
-
darkslategrey: 793726975,
|
|
3660
|
-
darkturquoise: 13554175,
|
|
3661
|
-
darkviolet: 2483082239,
|
|
3662
|
-
deeppink: 4279538687,
|
|
3663
|
-
deepskyblue: 12582911,
|
|
3664
|
-
dimgray: 1768516095,
|
|
3665
|
-
dimgrey: 1768516095,
|
|
3666
|
-
dodgerblue: 512819199,
|
|
3667
|
-
firebrick: 2988581631,
|
|
3668
|
-
floralwhite: 4294635775,
|
|
3669
|
-
forestgreen: 579543807,
|
|
3670
|
-
fuchsia: 4278255615,
|
|
3671
|
-
gainsboro: 3705462015,
|
|
3672
|
-
ghostwhite: 4177068031,
|
|
3673
|
-
gold: 4292280575,
|
|
3674
|
-
goldenrod: 3668254975,
|
|
3675
|
-
gray: 2155905279,
|
|
3676
|
-
green: 8388863,
|
|
3677
|
-
greenyellow: 2919182335,
|
|
3678
|
-
grey: 2155905279,
|
|
3679
|
-
honeydew: 4043305215,
|
|
3680
|
-
hotpink: 4285117695,
|
|
3681
|
-
indianred: 3445382399,
|
|
3682
|
-
indigo: 1258324735,
|
|
3683
|
-
ivory: 4294963455,
|
|
3684
|
-
khaki: 4041641215,
|
|
3685
|
-
lavender: 3873897215,
|
|
3686
|
-
lavenderblush: 4293981695,
|
|
3687
|
-
lawngreen: 2096890111,
|
|
3688
|
-
lemonchiffon: 4294626815,
|
|
3689
|
-
lightblue: 2916673279,
|
|
3690
|
-
lightcoral: 4034953471,
|
|
3691
|
-
lightcyan: 3774873599,
|
|
3692
|
-
lightgoldenrodyellow: 4210742015,
|
|
3693
|
-
lightgray: 3553874943,
|
|
3694
|
-
lightgreen: 2431553791,
|
|
3695
|
-
lightgrey: 3553874943,
|
|
3696
|
-
lightpink: 4290167295,
|
|
3697
|
-
lightsalmon: 4288707327,
|
|
3698
|
-
lightseagreen: 548580095,
|
|
3699
|
-
lightskyblue: 2278488831,
|
|
3700
|
-
lightslategray: 2005441023,
|
|
3701
|
-
lightslategrey: 2005441023,
|
|
3702
|
-
lightsteelblue: 2965692159,
|
|
3703
|
-
lightyellow: 4294959359,
|
|
3704
|
-
lime: 16711935,
|
|
3705
|
-
limegreen: 852308735,
|
|
3706
|
-
linen: 4210091775,
|
|
3707
|
-
magenta: 4278255615,
|
|
3708
|
-
maroon: 2147483903,
|
|
3709
|
-
mediumaquamarine: 1724754687,
|
|
3710
|
-
mediumblue: 52735,
|
|
3711
|
-
mediumorchid: 3126187007,
|
|
3712
|
-
mediumpurple: 2473647103,
|
|
3713
|
-
mediumseagreen: 1018393087,
|
|
3714
|
-
mediumslateblue: 2070474495,
|
|
3715
|
-
mediumspringgreen: 16423679,
|
|
3716
|
-
mediumturquoise: 1221709055,
|
|
3717
|
-
mediumvioletred: 3340076543,
|
|
3718
|
-
midnightblue: 421097727,
|
|
3719
|
-
mintcream: 4127193855,
|
|
3720
|
-
mistyrose: 4293190143,
|
|
3721
|
-
moccasin: 4293178879,
|
|
3722
|
-
navajowhite: 4292783615,
|
|
3723
|
-
navy: 33023,
|
|
3724
|
-
oldlace: 4260751103,
|
|
3725
|
-
olive: 2155872511,
|
|
3726
|
-
olivedrab: 1804477439,
|
|
3727
|
-
orange: 4289003775,
|
|
3728
|
-
orangered: 4282712319,
|
|
3729
|
-
orchid: 3664828159,
|
|
3730
|
-
palegoldenrod: 4008225535,
|
|
3731
|
-
palegreen: 2566625535,
|
|
3732
|
-
paleturquoise: 2951671551,
|
|
3733
|
-
palevioletred: 3681588223,
|
|
3734
|
-
papayawhip: 4293907967,
|
|
3735
|
-
peachpuff: 4292524543,
|
|
3736
|
-
peru: 3448061951,
|
|
3737
|
-
pink: 4290825215,
|
|
3738
|
-
plum: 3718307327,
|
|
3739
|
-
powderblue: 2967529215,
|
|
3740
|
-
purple: 2147516671,
|
|
3741
|
-
rebeccapurple: 1714657791,
|
|
3742
|
-
red: 4278190335,
|
|
3743
|
-
rosybrown: 3163525119,
|
|
3744
|
-
royalblue: 1097458175,
|
|
3745
|
-
saddlebrown: 2336560127,
|
|
3746
|
-
salmon: 4202722047,
|
|
3747
|
-
sandybrown: 4104413439,
|
|
3748
|
-
seagreen: 780883967,
|
|
3749
|
-
seashell: 4294307583,
|
|
3750
|
-
sienna: 2689740287,
|
|
3751
|
-
silver: 3233857791,
|
|
3752
|
-
skyblue: 2278484991,
|
|
3753
|
-
slateblue: 1784335871,
|
|
3754
|
-
slategray: 1887473919,
|
|
3755
|
-
slategrey: 1887473919,
|
|
3756
|
-
snow: 4294638335,
|
|
3757
|
-
springgreen: 16744447,
|
|
3758
|
-
steelblue: 1182971135,
|
|
3759
|
-
tan: 3535047935,
|
|
3760
|
-
teal: 8421631,
|
|
3761
|
-
thistle: 3636451583,
|
|
3762
|
-
tomato: 4284696575,
|
|
3763
|
-
turquoise: 1088475391,
|
|
3764
|
-
violet: 4001558271,
|
|
3765
|
-
wheat: 4125012991,
|
|
3766
|
-
white: 4294967295,
|
|
3767
|
-
whitesmoke: 4126537215,
|
|
3768
|
-
yellow: 4294902015,
|
|
3769
|
-
yellowgreen: 2597139199
|
|
3770
|
-
};
|
|
3771
|
-
var ENABLE_V5_BREAKING_CHANGES = false;
|
|
3772
|
-
var validateFrame = ({
|
|
3773
|
-
allowFloats,
|
|
3774
|
-
durationInFrames,
|
|
3775
|
-
frame
|
|
3776
|
-
}) => {
|
|
3777
|
-
if (typeof frame === "undefined") {
|
|
3778
|
-
throw new TypeError(`Argument missing for parameter "frame"`);
|
|
3779
|
-
}
|
|
3780
|
-
if (typeof frame !== "number") {
|
|
3781
|
-
throw new TypeError(`Argument passed for "frame" is not a number: ${frame}`);
|
|
3782
|
-
}
|
|
3783
|
-
if (!Number.isFinite(frame)) {
|
|
3784
|
-
throw new RangeError(`Frame ${frame} is not finite`);
|
|
3785
|
-
}
|
|
3786
|
-
if (frame % 1 !== 0 && !allowFloats) {
|
|
3787
|
-
throw new RangeError(`Argument for frame must be an integer, but got ${frame}`);
|
|
3788
|
-
}
|
|
3789
|
-
if (frame < 0 && frame < -durationInFrames) {
|
|
3790
|
-
throw new RangeError(`Cannot use frame ${frame}: Duration of composition is ${durationInFrames}, therefore the lowest frame that can be rendered is ${-durationInFrames}`);
|
|
3791
|
-
}
|
|
3792
|
-
if (frame > durationInFrames - 1) {
|
|
3793
|
-
throw new RangeError(`Cannot use frame ${frame}: Duration of composition is ${durationInFrames}, therefore the highest frame that can be rendered is ${durationInFrames - 1}`);
|
|
3794
|
-
}
|
|
3795
|
-
};
|
|
3796
|
-
var validateDefaultAndInputProps = (defaultProps, name, compositionId) => {
|
|
3797
|
-
if (!defaultProps) {
|
|
3798
|
-
return;
|
|
3799
|
-
}
|
|
3800
|
-
if (typeof defaultProps !== "object") {
|
|
3801
|
-
throw new Error(`"${name}" must be an object, but you passed a value of type ${typeof defaultProps}`);
|
|
3802
|
-
}
|
|
3803
|
-
if (Array.isArray(defaultProps)) {
|
|
3804
|
-
throw new Error(`"${name}" must be an object, an array was passed ${compositionId ? `for composition "${compositionId}"` : ""}`);
|
|
3805
|
-
}
|
|
3806
|
-
};
|
|
3807
|
-
var getExpectedMediaFrameUncorrected = ({
|
|
3808
|
-
frame,
|
|
3809
|
-
playbackRate,
|
|
3810
|
-
startFrom
|
|
3811
|
-
}) => {
|
|
3812
|
-
return interpolate(frame, [-1, startFrom, startFrom + 1], [-1, startFrom, startFrom + playbackRate]);
|
|
3813
|
-
};
|
|
3814
|
-
var getAbsoluteSrc = (relativeSrc) => {
|
|
3815
|
-
if (typeof window === "undefined") {
|
|
3816
|
-
return relativeSrc;
|
|
3817
|
-
}
|
|
3818
|
-
return new URL(relativeSrc, window.origin).href;
|
|
3819
|
-
};
|
|
3820
|
-
var getOffthreadVideoSource = ({
|
|
3821
|
-
src,
|
|
3822
|
-
transparent,
|
|
3823
|
-
currentTime,
|
|
3824
|
-
toneMapped
|
|
3825
|
-
}) => {
|
|
3826
|
-
return `http://localhost:${window.remotion_proxyPort}/proxy?src=${encodeURIComponent(getAbsoluteSrc(src))}&time=${encodeURIComponent(currentTime)}&transparent=${String(transparent)}&toneMapped=${String(toneMapped)}`;
|
|
3827
|
-
};
|
|
3828
|
-
var NoReactInternals = {
|
|
3829
|
-
processColor,
|
|
3830
|
-
truthy: truthy4,
|
|
3831
|
-
validateFps,
|
|
3832
|
-
validateDimension,
|
|
3833
|
-
validateDurationInFrames,
|
|
3834
|
-
validateDefaultAndInputProps,
|
|
3835
|
-
validateFrame,
|
|
3836
|
-
serializeJSONWithDate,
|
|
3837
|
-
bundleName: "bundle.js",
|
|
3838
|
-
bundleMapName: "bundle.js.map",
|
|
3839
|
-
deserializeJSONWithCustomFields,
|
|
3840
|
-
DELAY_RENDER_CALLSTACK_TOKEN,
|
|
3841
|
-
DELAY_RENDER_RETRY_TOKEN,
|
|
3842
|
-
DELAY_RENDER_ATTEMPT_TOKEN: DELAY_RENDER_RETRIES_LEFT,
|
|
3843
|
-
getOffthreadVideoSource,
|
|
3844
|
-
getExpectedMediaFrameUncorrected,
|
|
3845
|
-
ENABLE_V5_BREAKING_CHANGES,
|
|
3846
|
-
MIN_NODE_VERSION: ENABLE_V5_BREAKING_CHANGES ? 18 : 16,
|
|
3847
|
-
MIN_BUN_VERSION: ENABLE_V5_BREAKING_CHANGES ? "1.1.3" : "1.0.3",
|
|
3848
|
-
colorNames,
|
|
3849
|
-
DATE_TOKEN,
|
|
3850
|
-
FILE_TOKEN
|
|
3851
|
-
};
|
|
3852
|
-
|
|
3853
|
-
// src/get-local-browser.ts
|
|
3854
3178
|
var getSearchPathsForProduct = () => {
|
|
3855
|
-
|
|
3856
|
-
return [];
|
|
3857
|
-
}
|
|
3858
|
-
return [
|
|
3859
|
-
process.env.PUPPETEER_EXECUTABLE_PATH ?? null,
|
|
3860
|
-
process.platform === "darwin" ? "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" : null,
|
|
3861
|
-
process.platform === "linux" ? "/usr/bin/google-chrome" : null,
|
|
3862
|
-
process.platform === "linux" ? "/usr/bin/chromium-browser" : null,
|
|
3863
|
-
process.platform === "linux" ? "/usr/bin/chromium" : null,
|
|
3864
|
-
process.platform === "linux" ? "/app/.apt/usr/bin/google-chrome-stable" : null,
|
|
3865
|
-
process.platform === "win32" ? "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe" : null,
|
|
3866
|
-
process.platform === "win32" ? "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe" : null,
|
|
3867
|
-
process.platform === "win32" ? homedir() + "\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe" : null,
|
|
3868
|
-
process.platform === "win32" ? "C:\\Program Files\\Google\\Chrome SxS\\Application\\chrome.exe" : null,
|
|
3869
|
-
process.platform === "win32" ? "C:\\Program Files (x86)\\Google\\Chrome SxS\\Application\\chrome.exe" : null,
|
|
3870
|
-
process.platform === "win32" ? homedir() + "\\AppData\\Local\\Google\\Chrome SxS\\Application\\chrome.exe" : null
|
|
3871
|
-
].filter(Boolean);
|
|
3179
|
+
return [];
|
|
3872
3180
|
};
|
|
3873
3181
|
var getLocalBrowser = () => {
|
|
3874
3182
|
for (const p of getSearchPathsForProduct()) {
|