@shotstack/shotstack-studio 2.25.0 → 2.26.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/dist/index.d.ts +29 -5
- package/dist/internal.es.js +583 -575
- package/dist/internal.umd.js +11 -11
- package/dist/shotstack-studio.es.js +9010 -8774
- package/dist/shotstack-studio.umd.js +148 -148
- package/package.json +1 -1
- package/readme.md +34 -0
package/dist/internal.es.js
CHANGED
|
@@ -723,7 +723,7 @@ function Mx(t) {
|
|
|
723
723
|
t.transform?.skew?.y
|
|
724
724
|
].some(Tx);
|
|
725
725
|
}
|
|
726
|
-
function
|
|
726
|
+
function Br(t) {
|
|
727
727
|
return typeof t == "string" && /^alias:\/\/[a-zA-Z0-9_-]*$/.test(t);
|
|
728
728
|
}
|
|
729
729
|
function Wu(t) {
|
|
@@ -974,9 +974,9 @@ class nr extends Rx {
|
|
|
974
974
|
const e = this.edit.getDocumentClipById(this.clipId);
|
|
975
975
|
if (e) {
|
|
976
976
|
let r;
|
|
977
|
-
e.start === "auto" ? r = "auto" : (
|
|
977
|
+
e.start === "auto" ? r = "auto" : (Br(e.start), r = e.start);
|
|
978
978
|
let n;
|
|
979
|
-
return e.length === "auto" || e.length === "end" ||
|
|
979
|
+
return e.length === "auto" || e.length === "end" || Br(e.length), n = e.length, { start: r, length: n };
|
|
980
980
|
}
|
|
981
981
|
}
|
|
982
982
|
return {
|
|
@@ -2129,7 +2129,7 @@ function DD(t) {
|
|
|
2129
2129
|
const r = `${i0({ precision: t.precision, seconds: !0 })}(?:${e.join("|")})`, n = t.local ? `${r}|${i0({ precision: t.precision })}` : r;
|
|
2130
2130
|
return new RegExp(`^${uy}T(?:${n})$`);
|
|
2131
2131
|
}
|
|
2132
|
-
const CD = /^[\s\S]{0,}$/, ED = /^-?\d+$/, ah = /^-?\d+(?:\.\d+)?$/, AD = /^(?:true|false)$/i, kD = /^null$/i, SD = /^[^A-Z]*$/, FD = /^[^a-z]*$/,
|
|
2132
|
+
const CD = /^[\s\S]{0,}$/, ED = /^-?\d+$/, ah = /^-?\d+(?:\.\d+)?$/, AD = /^(?:true|false)$/i, kD = /^null$/i, SD = /^[^A-Z]*$/, FD = /^[^a-z]*$/, Pr = /* @__PURE__ */ q("$ZodCheck", (t, e) => {
|
|
2133
2133
|
var r;
|
|
2134
2134
|
t._zod ?? (t._zod = {}), t._zod.def = e, (r = t._zod).onattach ?? (r.onattach = []);
|
|
2135
2135
|
}), sh = (t) => {
|
|
@@ -2140,7 +2140,7 @@ const CD = /^[\s\S]{0,}$/, ED = /^-?\d+$/, ah = /^-?\d+(?:\.\d+)?$/, AD = /^(?:t
|
|
|
2140
2140
|
bigint: "bigint",
|
|
2141
2141
|
object: "date"
|
|
2142
2142
|
}, ly = /* @__PURE__ */ q("$ZodCheckLessThan", (t, e) => {
|
|
2143
|
-
|
|
2143
|
+
Pr.init(t, e);
|
|
2144
2144
|
const r = Yu[typeof e.value];
|
|
2145
2145
|
t._zod.check = (n) => {
|
|
2146
2146
|
(e.inclusive ? n.value <= e.value : n.value < e.value) || n.issues.push({
|
|
@@ -2154,7 +2154,7 @@ const CD = /^[\s\S]{0,}$/, ED = /^-?\d+$/, ah = /^-?\d+(?:\.\d+)?$/, AD = /^(?:t
|
|
|
2154
2154
|
});
|
|
2155
2155
|
};
|
|
2156
2156
|
}), cy = /* @__PURE__ */ q("$ZodCheckGreaterThan", (t, e) => {
|
|
2157
|
-
|
|
2157
|
+
Pr.init(t, e);
|
|
2158
2158
|
const r = Yu[typeof e.value];
|
|
2159
2159
|
t._zod.check = (n) => {
|
|
2160
2160
|
(e.inclusive ? n.value >= e.value : n.value > e.value) || n.issues.push({
|
|
@@ -2168,7 +2168,7 @@ const CD = /^[\s\S]{0,}$/, ED = /^-?\d+$/, ah = /^-?\d+(?:\.\d+)?$/, AD = /^(?:t
|
|
|
2168
2168
|
});
|
|
2169
2169
|
};
|
|
2170
2170
|
}), BD = /* @__PURE__ */ q("$ZodCheckMultipleOf", (t, e) => {
|
|
2171
|
-
|
|
2171
|
+
Pr.init(t, e), t._zod.check = (r) => {
|
|
2172
2172
|
if (typeof r.value != typeof e.value)
|
|
2173
2173
|
throw new Error("Cannot mix number and bigint in multiple_of check.");
|
|
2174
2174
|
(typeof r.value == "bigint" ? (
|
|
@@ -2184,7 +2184,7 @@ const CD = /^[\s\S]{0,}$/, ED = /^-?\d+$/, ah = /^-?\d+(?:\.\d+)?$/, AD = /^(?:t
|
|
|
2184
2184
|
});
|
|
2185
2185
|
};
|
|
2186
2186
|
}), ID = /* @__PURE__ */ q("$ZodCheckNumberFormat", (t, e) => {
|
|
2187
|
-
|
|
2187
|
+
Pr.init(t, e), e.format = e.format || "float64";
|
|
2188
2188
|
const r = e.format?.includes("int"), n = r ? "int" : "number", [i, a] = ry[e.format];
|
|
2189
2189
|
t._zod.check = (s) => {
|
|
2190
2190
|
const o = s.value;
|
|
@@ -2243,7 +2243,7 @@ const CD = /^[\s\S]{0,}$/, ED = /^-?\d+$/, ah = /^-?\d+(?:\.\d+)?$/, AD = /^(?:t
|
|
|
2243
2243
|
};
|
|
2244
2244
|
}), PD = /* @__PURE__ */ q("$ZodCheckMaxLength", (t, e) => {
|
|
2245
2245
|
var r;
|
|
2246
|
-
|
|
2246
|
+
Pr.init(t, e), (r = t._zod.def).when ?? (r.when = sh), t._zod.check = (n) => {
|
|
2247
2247
|
const i = n.value, a = i.length;
|
|
2248
2248
|
if ((typeof i == "string" && a > e.maximum ? Q0(i) : a) <= e.maximum)
|
|
2249
2249
|
return;
|
|
@@ -2260,7 +2260,7 @@ const CD = /^[\s\S]{0,}$/, ED = /^-?\d+$/, ah = /^-?\d+(?:\.\d+)?$/, AD = /^(?:t
|
|
|
2260
2260
|
};
|
|
2261
2261
|
}), ND = /* @__PURE__ */ q("$ZodCheckMinLength", (t, e) => {
|
|
2262
2262
|
var r;
|
|
2263
|
-
|
|
2263
|
+
Pr.init(t, e), (r = t._zod.def).when ?? (r.when = sh), t._zod.check = (n) => {
|
|
2264
2264
|
const i = n.value, a = i.length;
|
|
2265
2265
|
if ((typeof i == "string" && a >= e.minimum && a < e.minimum * 2 ? Q0(i) : a) >= e.minimum)
|
|
2266
2266
|
return;
|
|
@@ -2277,7 +2277,7 @@ const CD = /^[\s\S]{0,}$/, ED = /^-?\d+$/, ah = /^-?\d+(?:\.\d+)?$/, AD = /^(?:t
|
|
|
2277
2277
|
};
|
|
2278
2278
|
}), TD = /* @__PURE__ */ q("$ZodCheckLengthEquals", (t, e) => {
|
|
2279
2279
|
var r;
|
|
2280
|
-
|
|
2280
|
+
Pr.init(t, e), (r = t._zod.def).when ?? (r.when = sh), t._zod.check = (n) => {
|
|
2281
2281
|
const i = n.value, a = i.length, s = typeof i == "string" && a >= e.length && a <= e.length * 2 ? Q0(i) : a;
|
|
2282
2282
|
if (s === e.length)
|
|
2283
2283
|
return;
|
|
@@ -2294,7 +2294,7 @@ const CD = /^[\s\S]{0,}$/, ED = /^-?\d+$/, ah = /^-?\d+(?:\.\d+)?$/, AD = /^(?:t
|
|
|
2294
2294
|
};
|
|
2295
2295
|
}), zl = /* @__PURE__ */ q("$ZodCheckStringFormat", (t, e) => {
|
|
2296
2296
|
var r, n;
|
|
2297
|
-
|
|
2297
|
+
Pr.init(t, e), e.pattern ? (r = t._zod).check ?? (r.check = (i) => {
|
|
2298
2298
|
e.pattern.lastIndex = 0, !e.pattern.test(i.value) && i.issues.push({
|
|
2299
2299
|
origin: "string",
|
|
2300
2300
|
code: "invalid_format",
|
|
@@ -2323,7 +2323,7 @@ const CD = /^[\s\S]{0,}$/, ED = /^-?\d+$/, ah = /^-?\d+(?:\.\d+)?$/, AD = /^(?:t
|
|
|
2323
2323
|
}), VD = /* @__PURE__ */ q("$ZodCheckUpperCase", (t, e) => {
|
|
2324
2324
|
e.pattern ?? (e.pattern = FD), zl.init(t, e);
|
|
2325
2325
|
}), OD = /* @__PURE__ */ q("$ZodCheckIncludes", (t, e) => {
|
|
2326
|
-
|
|
2326
|
+
Pr.init(t, e);
|
|
2327
2327
|
const r = ja(e.includes), n = new RegExp(typeof e.position == "number" ? `^.{${e.position},}${r}` : r);
|
|
2328
2328
|
e.pattern = n, t._zod.check = (i) => {
|
|
2329
2329
|
i.value.includes(e.includes, e.position) || i.issues.push({
|
|
@@ -2337,7 +2337,7 @@ const CD = /^[\s\S]{0,}$/, ED = /^-?\d+$/, ah = /^-?\d+(?:\.\d+)?$/, AD = /^(?:t
|
|
|
2337
2337
|
});
|
|
2338
2338
|
};
|
|
2339
2339
|
}), RD = /* @__PURE__ */ q("$ZodCheckStartsWith", (t, e) => {
|
|
2340
|
-
|
|
2340
|
+
Pr.init(t, e);
|
|
2341
2341
|
const r = new RegExp(`^${ja(e.prefix)}.*`);
|
|
2342
2342
|
e.pattern ?? (e.pattern = r), t._zod.check = (n) => {
|
|
2343
2343
|
n.value.startsWith(e.prefix) || n.issues.push({
|
|
@@ -2351,7 +2351,7 @@ const CD = /^[\s\S]{0,}$/, ED = /^-?\d+$/, ah = /^-?\d+(?:\.\d+)?$/, AD = /^(?:t
|
|
|
2351
2351
|
});
|
|
2352
2352
|
};
|
|
2353
2353
|
}), LD = /* @__PURE__ */ q("$ZodCheckEndsWith", (t, e) => {
|
|
2354
|
-
|
|
2354
|
+
Pr.init(t, e);
|
|
2355
2355
|
const r = new RegExp(`.*${ja(e.suffix)}$`);
|
|
2356
2356
|
e.pattern ?? (e.pattern = r), t._zod.check = (n) => {
|
|
2357
2357
|
n.value.endsWith(e.suffix) || n.issues.push({
|
|
@@ -2365,7 +2365,7 @@ const CD = /^[\s\S]{0,}$/, ED = /^-?\d+$/, ah = /^-?\d+(?:\.\d+)?$/, AD = /^(?:t
|
|
|
2365
2365
|
});
|
|
2366
2366
|
};
|
|
2367
2367
|
}), $D = /* @__PURE__ */ q("$ZodCheckOverwrite", (t, e) => {
|
|
2368
|
-
|
|
2368
|
+
Pr.init(t, e), t._zod.check = (r) => {
|
|
2369
2369
|
r.value = e.tx(r.value);
|
|
2370
2370
|
};
|
|
2371
2371
|
});
|
|
@@ -3495,7 +3495,7 @@ function bm(t) {
|
|
|
3495
3495
|
return t.memo || (t.value = Object.freeze(t.value)), t;
|
|
3496
3496
|
}
|
|
3497
3497
|
const qC = /* @__PURE__ */ q("$ZodCustom", (t, e) => {
|
|
3498
|
-
|
|
3498
|
+
Pr.init(t, e), Ne.init(t, e), t._zod.parse = (r, n) => r, t._zod.check = (r) => {
|
|
3499
3499
|
const n = r.value, i = e.fn(n);
|
|
3500
3500
|
if (i instanceof Promise)
|
|
3501
3501
|
return i.then((a) => wm(a, r, n, t));
|
|
@@ -4329,7 +4329,7 @@ function JE(t, e) {
|
|
|
4329
4329
|
}
|
|
4330
4330
|
// @__NO_SIDE_EFFECTS__
|
|
4331
4331
|
function QE(t, e) {
|
|
4332
|
-
const r = new
|
|
4332
|
+
const r = new Pr({
|
|
4333
4333
|
check: "custom",
|
|
4334
4334
|
...Bt(e)
|
|
4335
4335
|
});
|
|
@@ -8303,22 +8303,22 @@ var C7 = Ge({ "node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-e
|
|
|
8303
8303
|
for (var Qe = 0; Qe < 3 * C; Qe++)
|
|
8304
8304
|
se[Qe] = new a(0, 0), he[Qe] = new a(0, 0);
|
|
8305
8305
|
for (; !vt; ) {
|
|
8306
|
-
var we = 0,
|
|
8306
|
+
var we = 0, Tr, Re = [1 << 28, 1 << 28, 1 << 28], Kt = [0], Yt = [1, 1, 1], or = [0, 1, 0, 1, 0, 1], dr = [0], Xe, Ae, Be, Un, Li = null, $i = null, fn, Gr = null, pr, Mr = 0, ur = null, Zi = 0, jn = 0, P = null, mt = 0, qt = 0, de = 0, ne, $e;
|
|
8307
8307
|
for (et = 0; et < 3; ++et)
|
|
8308
8308
|
xt[et].codes = null, xt[et].htrees = null;
|
|
8309
8309
|
yt.readMoreInput();
|
|
8310
|
-
var
|
|
8311
|
-
if (we =
|
|
8310
|
+
var zr = tt(yt);
|
|
8311
|
+
if (we = zr.meta_block_length, H + we > U.buffer.length) {
|
|
8312
8312
|
var si = new Uint8Array(H + we);
|
|
8313
8313
|
si.set(U.buffer), U.buffer = si;
|
|
8314
8314
|
}
|
|
8315
|
-
if (vt =
|
|
8315
|
+
if (vt = zr.input_end, Tr = zr.is_uncompressed, zr.is_metadata) {
|
|
8316
8316
|
for (fe(yt); we > 0; --we)
|
|
8317
8317
|
yt.readMoreInput(), yt.readBits(8);
|
|
8318
8318
|
continue;
|
|
8319
8319
|
}
|
|
8320
8320
|
if (we !== 0) {
|
|
8321
|
-
if (
|
|
8321
|
+
if (Tr) {
|
|
8322
8322
|
yt.bit_pos_ = yt.bit_pos_ + 7 & -8, ue(U, we, H, at, K, yt), H += we;
|
|
8323
8323
|
continue;
|
|
8324
8324
|
}
|
|
@@ -8334,7 +8334,7 @@ var C7 = Ge({ "node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-e
|
|
|
8334
8334
|
for (ur = 0, P = 0, ne = $i[Kt[0]], qt = o.lookupOffsets[ne], de = o.lookupOffsets[ne + 1], $e = xt[1].htrees[0]; we > 0; ) {
|
|
8335
8335
|
var hn, Wn, xa, dn, Hn, lr, cr, wr, Ui, yi, St;
|
|
8336
8336
|
for (yt.readMoreInput(), Re[1] === 0 && (jt(Yt[1], se, 1, Kt, or, dr, yt), Re[1] = ht(he, C, yt), $e = xt[1].htrees[Kt[1]]), --Re[1], hn = j(xt[1].codes, $e, yt), Wn = hn >> 6, Wn >= 2 ? (Wn -= 2, cr = -1) : cr = 0, xa = u.kInsertRangeLut[Wn] + (hn >> 3 & 7), dn = u.kCopyRangeLut[Wn] + (hn & 7), Hn = u.kInsertLengthPrefixCode[xa].offset + yt.readBits(u.kInsertLengthPrefixCode[xa].nbits), lr = u.kCopyLengthPrefixCode[dn].offset + yt.readBits(u.kCopyLengthPrefixCode[dn].nbits), Ft = at[H - 1 & K], It = at[H - 2 & K], yi = 0; yi < Hn; ++yi)
|
|
8337
|
-
yt.readMoreInput(), Re[0] === 0 && (jt(Yt[0], se, 0, Kt, or, dr, yt), Re[0] = ht(he, 0, yt),
|
|
8337
|
+
yt.readMoreInput(), Re[0] === 0 && (jt(Yt[0], se, 0, Kt, or, dr, yt), Re[0] = ht(he, 0, yt), Mr = Kt[0] << v, ur = Mr, ne = $i[Kt[0]], qt = o.lookupOffsets[ne], de = o.lookupOffsets[ne + 1]), Ui = o.lookup[qt + Ft] | o.lookup[de + It], Zi = Li[ur + Ui], --Re[0], It = Ft, Ft = j(xt[0].codes, xt[0].htrees[Zi], yt), at[H & K] = Ft, (H & K) === K && U.write(at, Pt), ++H;
|
|
8338
8338
|
if (we -= Hn, we <= 0) break;
|
|
8339
8339
|
if (cr < 0) {
|
|
8340
8340
|
var Ui;
|
|
@@ -8375,9 +8375,9 @@ var C7 = Ge({ "node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-e
|
|
|
8375
8375
|
} }), T7 = Ge({ "node_modules/.pnpm/brotli@1.3.3/node_modules/brotli/decompress.js"(t, e) {
|
|
8376
8376
|
e.exports = b4().BrotliDecompressBuffer;
|
|
8377
8377
|
} }), X = {};
|
|
8378
|
-
sn(X, { $brand: () => x4, $input: () => rw, $output: () => ew, NEVER: () => _4, TimePrecision: () => ow, ZodAny: () => Ed, ZodArray: () => Fd, ZodBase64: () => bc, ZodBase64URL: () => wc, ZodBigInt: () => zo, ZodBigIntFormat: () => Dc, ZodBoolean: () => Mo, ZodCIDRv4: () => yc, ZodCIDRv6: () => vc, ZodCUID: () => cc, ZodCUID2: () => fc, ZodCatch: () => Kd, ZodCodec: () => $o, ZodCustom: () => Zo, ZodCustomStringFormat: () => cs, ZodDate: () => Ec, ZodDefault: () => Gd, ZodDiscriminatedUnion: () => Id, ZodE164: () => _c, ZodEmail: () => oc, ZodEmoji: () => uc, ZodEnum: () => ts, ZodError: () => aB, ZodExactOptional: () => Zd, ZodFile: () => Ld, ZodFirstPartyTypeKind: () => m0, ZodFunction: () => op, ZodGUID: () => uo, ZodIPv4: () => mc, ZodIPv6: () => gc, ZodISODate: () => md, ZodISODateTime: () => pd, ZodISODuration: () => yd, ZodISOTime: () => gd, ZodIntersection: () => Pd, ZodIssueCode: () => sB, ZodJWT: () => xc, ZodKSUID: () => pc, ZodLazy: () => np, ZodLiteral: () => Rd, ZodMAC: () => vd, ZodMap: () => Vd, ZodNaN: () => Qd, ZodNanoID: () => lc, ZodNever: () => kd, ZodNonOptional: () => Bc, ZodNull: () => Dd, ZodNullable: () => jd, ZodNumber: () => To, ZodNumberFormat: () => va, ZodObject: () => Oo, ZodOptional: () => Fc, ZodPipe: () => Lo, ZodPrefault: () => Hd, ZodPreprocess: () => tp, ZodPromise: () => sp, ZodReadonly: () => ep, ZodRealError: () => jr, ZodRecord: () => Qa, ZodSet: () => Od, ZodString: () => Po, ZodStringFormat: () => Ee, ZodSuccess: () => Xd, ZodSymbol: () => _d, ZodTemplateLiteral: () => ip, ZodTransform: () => $d, ZodTuple: () => Td, ZodType: () => Wt, ZodULID: () => hc, ZodURL: () => No, ZodUUID: () => Bi, ZodUndefined: () => xd, ZodUnion: () => Ro, ZodUnknown: () => Ad, ZodVoid: () => Sd, ZodXID: () => dc, ZodXor: () => Bd, _ZodString: () => sc, _default: () => Wd, _function: () => ol, any: () => I2, array: () => Vo, base64: () => p2, base64url: () => m2, bigint: () => A2, boolean: () => wd, catch: () => Jd, check: () => t6, cidrv4: () => h2, cidrv6: () => d2, clone: () => ai, codec: () => X2, coerce: () => l6, config: () => ir, core: () => w4, cuid: () => n2, cuid2: () => a2, custom: () => e6, date: () => N2, decode: () => $3, decodeAsync: () => U3, describe: () => r6, discriminatedUnion: () => R2, e164: () => g2, email: () => Y3, emoji: () => r2, encode: () => L3, encodeAsync: () => Z3, endsWith: () => Ql, enum: () => kc, exactOptional: () => Ud, file: () => W2, flattenError: () => gh, float32: () => x2, float64: () => D2, formatError: () => yh, fromJSONSchema: () => hB, function: () => ol, getErrorMap: () => uB, globalRegistry: () => ti, gt: () => Mn, gte: () =>
|
|
8378
|
+
sn(X, { $brand: () => x4, $input: () => rw, $output: () => ew, NEVER: () => _4, TimePrecision: () => ow, ZodAny: () => Ed, ZodArray: () => Fd, ZodBase64: () => bc, ZodBase64URL: () => wc, ZodBigInt: () => zo, ZodBigIntFormat: () => Dc, ZodBoolean: () => Mo, ZodCIDRv4: () => yc, ZodCIDRv6: () => vc, ZodCUID: () => cc, ZodCUID2: () => fc, ZodCatch: () => Kd, ZodCodec: () => $o, ZodCustom: () => Zo, ZodCustomStringFormat: () => cs, ZodDate: () => Ec, ZodDefault: () => Gd, ZodDiscriminatedUnion: () => Id, ZodE164: () => _c, ZodEmail: () => oc, ZodEmoji: () => uc, ZodEnum: () => ts, ZodError: () => aB, ZodExactOptional: () => Zd, ZodFile: () => Ld, ZodFirstPartyTypeKind: () => m0, ZodFunction: () => op, ZodGUID: () => uo, ZodIPv4: () => mc, ZodIPv6: () => gc, ZodISODate: () => md, ZodISODateTime: () => pd, ZodISODuration: () => yd, ZodISOTime: () => gd, ZodIntersection: () => Pd, ZodIssueCode: () => sB, ZodJWT: () => xc, ZodKSUID: () => pc, ZodLazy: () => np, ZodLiteral: () => Rd, ZodMAC: () => vd, ZodMap: () => Vd, ZodNaN: () => Qd, ZodNanoID: () => lc, ZodNever: () => kd, ZodNonOptional: () => Bc, ZodNull: () => Dd, ZodNullable: () => jd, ZodNumber: () => To, ZodNumberFormat: () => va, ZodObject: () => Oo, ZodOptional: () => Fc, ZodPipe: () => Lo, ZodPrefault: () => Hd, ZodPreprocess: () => tp, ZodPromise: () => sp, ZodReadonly: () => ep, ZodRealError: () => jr, ZodRecord: () => Qa, ZodSet: () => Od, ZodString: () => Po, ZodStringFormat: () => Ee, ZodSuccess: () => Xd, ZodSymbol: () => _d, ZodTemplateLiteral: () => ip, ZodTransform: () => $d, ZodTuple: () => Td, ZodType: () => Wt, ZodULID: () => hc, ZodURL: () => No, ZodUUID: () => Bi, ZodUndefined: () => xd, ZodUnion: () => Ro, ZodUnknown: () => Ad, ZodVoid: () => Sd, ZodXID: () => dc, ZodXor: () => Bd, _ZodString: () => sc, _default: () => Wd, _function: () => ol, any: () => I2, array: () => Vo, base64: () => p2, base64url: () => m2, bigint: () => A2, boolean: () => wd, catch: () => Jd, check: () => t6, cidrv4: () => h2, cidrv6: () => d2, clone: () => ai, codec: () => X2, coerce: () => l6, config: () => ir, core: () => w4, cuid: () => n2, cuid2: () => a2, custom: () => e6, date: () => N2, decode: () => $3, decodeAsync: () => U3, describe: () => r6, discriminatedUnion: () => R2, e164: () => g2, email: () => Y3, emoji: () => r2, encode: () => L3, encodeAsync: () => Z3, endsWith: () => Ql, enum: () => kc, exactOptional: () => Ud, file: () => W2, flattenError: () => gh, float32: () => x2, float64: () => D2, formatError: () => yh, fromJSONSchema: () => hB, function: () => ol, getErrorMap: () => uB, globalRegistry: () => ti, gt: () => Mn, gte: () => Sr, guid: () => q3, hash: () => _2, hex: () => w2, hostname: () => b2, httpUrl: () => e2, includes: () => Kl, instanceof: () => n6, int: () => al, int32: () => C2, int64: () => k2, intersection: () => Nd, invertCodec: () => K2, ipv4: () => l2, ipv6: () => f2, iso: () => dd, json: () => s6, jwt: () => y2, keyof: () => T2, ksuid: () => u2, lazy: () => ap, length: () => Fo, literal: () => G2, locales: () => Oh, looseObject: () => V2, looseRecord: () => $2, lowercase: () => ql, lt: () => Tn, lte: () => ei, mac: () => c2, map: () => Z2, maxLength: () => So, maxSize: () => ls, meta: () => i6, mime: () => tc, minLength: () => ma, minSize: () => zn, multipleOf: () => qa, nan: () => q2, nanoid: () => i2, nativeEnum: () => j2, negative: () => od, never: () => Cc, nonnegative: () => ld, nonoptional: () => qd, nonpositive: () => ud, normalize: () => ec, null: () => Cd, nullable: () => co, nullish: () => H2, number: () => bd, object: () => M2, optional: () => lo, overwrite: () => ln, parse: () => z3, parseAsync: () => V3, partialRecord: () => L2, pipe: () => sl, positive: () => sd, prefault: () => Yd, preprocess: () => o6, prettifyError: () => V4, promise: () => Q2, property: () => cd, readonly: () => rp, record: () => zd, refine: () => up, regex: () => Yl, regexes: () => Nn, registry: () => Rh, safeDecode: () => G3, safeDecodeAsync: () => H3, safeEncode: () => j3, safeEncodeAsync: () => W3, safeParse: () => O3, safeParseAsync: () => R3, set: () => U2, setErrorMap: () => oB, size: () => ko, slugify: () => ac, startsWith: () => Jl, strictObject: () => z2, string: () => oo, stringFormat: () => v2, stringbool: () => a6, success: () => Y2, superRefine: () => lp, symbol: () => F2, templateLiteral: () => J2, toJSONSchema: () => S3, toLowerCase: () => ic, toUpperCase: () => nc, transform: () => Sc, treeifyError: () => M4, trim: () => rc, tuple: () => Md, uint32: () => E2, uint64: () => S2, ulid: () => s2, undefined: () => B2, union: () => Ac, unknown: () => ga, uppercase: () => Xl, url: () => t2, util: () => Qt, uuid: () => X3, uuidv4: () => K3, uuidv6: () => J3, uuidv7: () => Q3, void: () => P2, xid: () => o2, xor: () => O2 });
|
|
8379
8379
|
var w4 = {};
|
|
8380
|
-
sn(w4, { $ZodAny: () => yb, $ZodArray: () => xb, $ZodAsyncError: () => ua, $ZodBase64: () => ab, $ZodBase64URL: () => ob, $ZodBigInt: () => Nh, $ZodBigIntFormat: () => db, $ZodBoolean: () => Ph, $ZodCIDRv4: () => ib, $ZodCIDRv6: () => nb, $ZodCUID: () => Gv, $ZodCUID2: () => Wv, $ZodCatch: () => Ub, $ZodCheck: () => ze, $ZodCheckBigIntFormat: () => _v, $ZodCheckEndsWith: () => Nv, $ZodCheckGreaterThan: () => Fh, $ZodCheckIncludes: () => Iv, $ZodCheckLengthEquals: () => kv, $ZodCheckLessThan: () => Sh, $ZodCheckLowerCase: () => Fv, $ZodCheckMaxLength: () => Ev, $ZodCheckMaxSize: () => xv, $ZodCheckMimeType: () => Mv, $ZodCheckMinLength: () => Av, $ZodCheckMinSize: () => Dv, $ZodCheckMultipleOf: () => bv, $ZodCheckNumberFormat: () => wv, $ZodCheckOverwrite: () => zv, $ZodCheckProperty: () => Tv, $ZodCheckRegex: () => Sv, $ZodCheckSizeEquals: () => Cv, $ZodCheckStartsWith: () => Pv, $ZodCheckStringFormat: () => Eo, $ZodCheckUpperCase: () => Bv, $ZodCodec: () => Vh, $ZodCustom: () => Kb, $ZodCustomStringFormat: () => fb, $ZodDate: () => _b, $ZodDefault: () => Rb, $ZodDiscriminatedUnion: () => Sb, $ZodE164: () => ub, $ZodEmail: () => $v, $ZodEmoji: () => Uv, $ZodEncodeError: () => Zl, $ZodEnum: () => Nb, $ZodError: () => mh, $ZodExactOptional: () => Vb, $ZodFile: () => Mb, $ZodFunction: () => Yb, $ZodGUID: () => Rv, $ZodIPv4: () => tb, $ZodIPv6: () => eb, $ZodISODate: () => Kv, $ZodISODateTime: () => Xv, $ZodISODuration: () => Qv, $ZodISOTime: () => Jv, $ZodIntersection: () => Fb, $ZodJWT: () => cb, $ZodKSUID: () => qv, $ZodLazy: () => Xb, $ZodLiteral: () => Tb, $ZodMAC: () => rb, $ZodMap: () => Ib, $ZodNaN: () => jb, $ZodNanoID: () => jv, $ZodNever: () => bb, $ZodNonOptional: () => $b, $ZodNull: () => gb, $ZodNullable: () => Ob, $ZodNumber: () => Ih, $ZodNumberFormat: () => hb, $ZodObject: () => Eb, $ZodObjectJIT: () => Ab, $ZodOptional: () => Mh, $ZodPipe: () => zh, $ZodPrefault: () => Lb, $ZodPreprocess: () => Gb, $ZodPromise: () => qb, $ZodReadonly: () => Wb, $ZodRealError: () => Ur, $ZodRecord: () => Bb, $ZodRegistry: () => iw, $ZodSet: () => Pb, $ZodString: () => Ao, $ZodStringFormat: () => Ce, $ZodSuccess: () => Zb, $ZodSymbol: () => pb, $ZodTemplateLiteral: () => Hb, $ZodTransform: () => zb, $ZodTuple: () => Th, $ZodType: () => Ut, $ZodULID: () => Hv, $ZodURL: () => Zv, $ZodUUID: () => Lv, $ZodUndefined: () => mb, $ZodUnion: () => Wl, $ZodUnknown: () => vb, $ZodVoid: () => wb, $ZodXID: () => Yv, $ZodXor: () => kb, $brand: () => x4, $constructor: () => O, $input: () => rw, $output: () => ew, Doc: () => Vv, JSONSchema: () => nB, JSONSchemaGenerator: () => iB, NEVER: () => _4, TimePrecision: () => ow, _any: () => Sw, _array: () => Mw, _base64: () => rd, _base64url: () => id, _bigint: () => _w, _boolean: () => bw, _catch: () => XF, _check: () => Lw, _cidrv4: () => td, _cidrv6: () => ed, _coercedBigint: () => xw, _coercedBoolean: () => ww, _coercedDate: () => Nw, _coercedNumber: () => dw, _coercedString: () => aw, _cuid: () => Hh, _cuid2: () => Yh, _custom: () => Vw, _date: () => Pw, _decode: () => bh, _decodeAsync: () => _h, _default: () => HF, _discriminatedUnion: () => MF, _e164: () => nd, _email: () => Lh, _emoji: () => Gh, _encode: () => vh, _encodeAsync: () => wh, _endsWith: () => Ql, _enum: () => $F, _file: () => zw, _float32: () => mw, _float64: () => gw, _gt: () => Mn, _gte: () =>
|
|
8380
|
+
sn(w4, { $ZodAny: () => yb, $ZodArray: () => xb, $ZodAsyncError: () => ua, $ZodBase64: () => ab, $ZodBase64URL: () => ob, $ZodBigInt: () => Nh, $ZodBigIntFormat: () => db, $ZodBoolean: () => Ph, $ZodCIDRv4: () => ib, $ZodCIDRv6: () => nb, $ZodCUID: () => Gv, $ZodCUID2: () => Wv, $ZodCatch: () => Ub, $ZodCheck: () => ze, $ZodCheckBigIntFormat: () => _v, $ZodCheckEndsWith: () => Nv, $ZodCheckGreaterThan: () => Fh, $ZodCheckIncludes: () => Iv, $ZodCheckLengthEquals: () => kv, $ZodCheckLessThan: () => Sh, $ZodCheckLowerCase: () => Fv, $ZodCheckMaxLength: () => Ev, $ZodCheckMaxSize: () => xv, $ZodCheckMimeType: () => Mv, $ZodCheckMinLength: () => Av, $ZodCheckMinSize: () => Dv, $ZodCheckMultipleOf: () => bv, $ZodCheckNumberFormat: () => wv, $ZodCheckOverwrite: () => zv, $ZodCheckProperty: () => Tv, $ZodCheckRegex: () => Sv, $ZodCheckSizeEquals: () => Cv, $ZodCheckStartsWith: () => Pv, $ZodCheckStringFormat: () => Eo, $ZodCheckUpperCase: () => Bv, $ZodCodec: () => Vh, $ZodCustom: () => Kb, $ZodCustomStringFormat: () => fb, $ZodDate: () => _b, $ZodDefault: () => Rb, $ZodDiscriminatedUnion: () => Sb, $ZodE164: () => ub, $ZodEmail: () => $v, $ZodEmoji: () => Uv, $ZodEncodeError: () => Zl, $ZodEnum: () => Nb, $ZodError: () => mh, $ZodExactOptional: () => Vb, $ZodFile: () => Mb, $ZodFunction: () => Yb, $ZodGUID: () => Rv, $ZodIPv4: () => tb, $ZodIPv6: () => eb, $ZodISODate: () => Kv, $ZodISODateTime: () => Xv, $ZodISODuration: () => Qv, $ZodISOTime: () => Jv, $ZodIntersection: () => Fb, $ZodJWT: () => cb, $ZodKSUID: () => qv, $ZodLazy: () => Xb, $ZodLiteral: () => Tb, $ZodMAC: () => rb, $ZodMap: () => Ib, $ZodNaN: () => jb, $ZodNanoID: () => jv, $ZodNever: () => bb, $ZodNonOptional: () => $b, $ZodNull: () => gb, $ZodNullable: () => Ob, $ZodNumber: () => Ih, $ZodNumberFormat: () => hb, $ZodObject: () => Eb, $ZodObjectJIT: () => Ab, $ZodOptional: () => Mh, $ZodPipe: () => zh, $ZodPrefault: () => Lb, $ZodPreprocess: () => Gb, $ZodPromise: () => qb, $ZodReadonly: () => Wb, $ZodRealError: () => Ur, $ZodRecord: () => Bb, $ZodRegistry: () => iw, $ZodSet: () => Pb, $ZodString: () => Ao, $ZodStringFormat: () => Ce, $ZodSuccess: () => Zb, $ZodSymbol: () => pb, $ZodTemplateLiteral: () => Hb, $ZodTransform: () => zb, $ZodTuple: () => Th, $ZodType: () => Ut, $ZodULID: () => Hv, $ZodURL: () => Zv, $ZodUUID: () => Lv, $ZodUndefined: () => mb, $ZodUnion: () => Wl, $ZodUnknown: () => vb, $ZodVoid: () => wb, $ZodXID: () => Yv, $ZodXor: () => kb, $brand: () => x4, $constructor: () => O, $input: () => rw, $output: () => ew, Doc: () => Vv, JSONSchema: () => nB, JSONSchemaGenerator: () => iB, NEVER: () => _4, TimePrecision: () => ow, _any: () => Sw, _array: () => Mw, _base64: () => rd, _base64url: () => id, _bigint: () => _w, _boolean: () => bw, _catch: () => XF, _check: () => Lw, _cidrv4: () => td, _cidrv6: () => ed, _coercedBigint: () => xw, _coercedBoolean: () => ww, _coercedDate: () => Nw, _coercedNumber: () => dw, _coercedString: () => aw, _cuid: () => Hh, _cuid2: () => Yh, _custom: () => Vw, _date: () => Pw, _decode: () => bh, _decodeAsync: () => _h, _default: () => HF, _discriminatedUnion: () => MF, _e164: () => nd, _email: () => Lh, _emoji: () => Gh, _encode: () => vh, _encodeAsync: () => wh, _endsWith: () => Ql, _enum: () => $F, _file: () => zw, _float32: () => mw, _float64: () => gw, _gt: () => Mn, _gte: () => Sr, _guid: () => nl, _includes: () => Kl, _int: () => pw, _int32: () => yw, _int64: () => Dw, _intersection: () => zF, _ipv4: () => Jh, _ipv6: () => Qh, _isoDate: () => lw, _isoDateTime: () => uw, _isoDuration: () => fw, _isoTime: () => cw, _jwt: () => ad, _ksuid: () => Kh, _lazy: () => tB, _length: () => Fo, _literal: () => UF, _lowercase: () => ql, _lt: () => Tn, _lte: () => ei, _mac: () => sw, _map: () => RF, _max: () => ei, _maxLength: () => So, _maxSize: () => ls, _mime: () => tc, _min: () => Sr, _minLength: () => ma, _minSize: () => zn, _multipleOf: () => qa, _nan: () => Tw, _nanoid: () => Wh, _nativeEnum: () => ZF, _negative: () => od, _never: () => Bw, _nonnegative: () => ld, _nonoptional: () => YF, _nonpositive: () => ud, _normalize: () => ec, _null: () => kw, _nullable: () => WF, _number: () => hw, _optional: () => GF, _overwrite: () => ln, _parse: () => bo, _parseAsync: () => wo, _pipe: () => KF, _positive: () => sd, _promise: () => eB, _property: () => cd, _readonly: () => JF, _record: () => OF, _refine: () => Ow, _regex: () => Yl, _safeDecode: () => Dh, _safeDecodeAsync: () => Eh, _safeEncode: () => xh, _safeEncodeAsync: () => Ch, _safeParse: () => _o, _safeParseAsync: () => xo, _set: () => LF, _size: () => ko, _slugify: () => ac, _startsWith: () => Jl, _string: () => nw, _stringFormat: () => Bo, _stringbool: () => Uw, _success: () => qF, _superRefine: () => Rw, _symbol: () => Ew, _templateLiteral: () => QF, _toLowerCase: () => ic, _toUpperCase: () => nc, _transform: () => jF, _trim: () => rc, _tuple: () => VF, _uint32: () => vw, _uint64: () => Cw, _ulid: () => qh, _undefined: () => Aw, _union: () => NF, _unknown: () => Fw, _uppercase: () => Xl, _url: () => Hl, _uuid: () => $h, _uuidv4: () => Zh, _uuidv6: () => Uh, _uuidv7: () => jh, _void: () => Iw, _xid: () => Xh, _xor: () => TF, clone: () => ai, config: () => ir, createStandardJSONSchemaMethod: () => so, createToJSONSchemaMethod: () => jw, decode: () => u9, decodeAsync: () => c9, describe: () => $w, encode: () => o9, encodeAsync: () => l9, extractDefs: () => Ka, finalize: () => Ja, flattenError: () => gh, formatError: () => yh, globalConfig: () => ao, globalRegistry: () => ti, initializeContext: () => Xa, isValidBase64: () => Bh, isValidBase64URL: () => sb, isValidJWT: () => lb, locales: () => Oh, meta: () => Zw, parse: () => f0, parseAsync: () => h0, prettifyError: () => V4, process: () => _e, regexes: () => Nn, registry: () => Rh, safeDecode: () => h9, safeDecodeAsync: () => p9, safeEncode: () => f9, safeEncodeAsync: () => d9, safeParse: () => O4, safeParseAsync: () => R4, toDotPath: () => z4, toJSONSchema: () => S3, treeifyError: () => M4, util: () => Qt, version: () => Ov });
|
|
8381
8381
|
var Lm, _4 = Object.freeze({ status: "aborted" });
|
|
8382
8382
|
function O(t, e, r) {
|
|
8383
8383
|
function n(o, u) {
|
|
@@ -12618,7 +12618,7 @@ function ei(t, e) {
|
|
|
12618
12618
|
function Mn(t, e) {
|
|
12619
12619
|
return new Fh({ check: "greater_than", ...ot(e), value: t, inclusive: !1 });
|
|
12620
12620
|
}
|
|
12621
|
-
function
|
|
12621
|
+
function Sr(t, e) {
|
|
12622
12622
|
return new Fh({ check: "greater_than", ...ot(e), value: t, inclusive: !0 });
|
|
12623
12623
|
}
|
|
12624
12624
|
function sd(t) {
|
|
@@ -12631,7 +12631,7 @@ function ud(t) {
|
|
|
12631
12631
|
return ei(0, t);
|
|
12632
12632
|
}
|
|
12633
12633
|
function ld(t) {
|
|
12634
|
-
return
|
|
12634
|
+
return Sr(0, t);
|
|
12635
12635
|
}
|
|
12636
12636
|
function qa(t, e) {
|
|
12637
12637
|
return new bv({ check: "multiple_of", ...ot(e), value: t });
|
|
@@ -13264,7 +13264,7 @@ var iB = class {
|
|
|
13264
13264
|
}, nB = {}, F3 = {};
|
|
13265
13265
|
sn(F3, { ZodAny: () => Ed, ZodArray: () => Fd, ZodBase64: () => bc, ZodBase64URL: () => wc, ZodBigInt: () => zo, ZodBigIntFormat: () => Dc, ZodBoolean: () => Mo, ZodCIDRv4: () => yc, ZodCIDRv6: () => vc, ZodCUID: () => cc, ZodCUID2: () => fc, ZodCatch: () => Kd, ZodCodec: () => $o, ZodCustom: () => Zo, ZodCustomStringFormat: () => cs, ZodDate: () => Ec, ZodDefault: () => Gd, ZodDiscriminatedUnion: () => Id, ZodE164: () => _c, ZodEmail: () => oc, ZodEmoji: () => uc, ZodEnum: () => ts, ZodExactOptional: () => Zd, ZodFile: () => Ld, ZodFunction: () => op, ZodGUID: () => uo, ZodIPv4: () => mc, ZodIPv6: () => gc, ZodIntersection: () => Pd, ZodJWT: () => xc, ZodKSUID: () => pc, ZodLazy: () => np, ZodLiteral: () => Rd, ZodMAC: () => vd, ZodMap: () => Vd, ZodNaN: () => Qd, ZodNanoID: () => lc, ZodNever: () => kd, ZodNonOptional: () => Bc, ZodNull: () => Dd, ZodNullable: () => jd, ZodNumber: () => To, ZodNumberFormat: () => va, ZodObject: () => Oo, ZodOptional: () => Fc, ZodPipe: () => Lo, ZodPrefault: () => Hd, ZodPreprocess: () => tp, ZodPromise: () => sp, ZodReadonly: () => ep, ZodRecord: () => Qa, ZodSet: () => Od, ZodString: () => Po, ZodStringFormat: () => Ee, ZodSuccess: () => Xd, ZodSymbol: () => _d, ZodTemplateLiteral: () => ip, ZodTransform: () => $d, ZodTuple: () => Td, ZodType: () => Wt, ZodULID: () => hc, ZodURL: () => No, ZodUUID: () => Bi, ZodUndefined: () => xd, ZodUnion: () => Ro, ZodUnknown: () => Ad, ZodVoid: () => Sd, ZodXID: () => dc, ZodXor: () => Bd, _ZodString: () => sc, _default: () => Wd, _function: () => ol, any: () => I2, array: () => Vo, base64: () => p2, base64url: () => m2, bigint: () => A2, boolean: () => wd, catch: () => Jd, check: () => t6, cidrv4: () => h2, cidrv6: () => d2, codec: () => X2, cuid: () => n2, cuid2: () => a2, custom: () => e6, date: () => N2, describe: () => r6, discriminatedUnion: () => R2, e164: () => g2, email: () => Y3, emoji: () => r2, enum: () => kc, exactOptional: () => Ud, file: () => W2, float32: () => x2, float64: () => D2, function: () => ol, guid: () => q3, hash: () => _2, hex: () => w2, hostname: () => b2, httpUrl: () => e2, instanceof: () => n6, int: () => al, int32: () => C2, int64: () => k2, intersection: () => Nd, invertCodec: () => K2, ipv4: () => l2, ipv6: () => f2, json: () => s6, jwt: () => y2, keyof: () => T2, ksuid: () => u2, lazy: () => ap, literal: () => G2, looseObject: () => V2, looseRecord: () => $2, mac: () => c2, map: () => Z2, meta: () => i6, nan: () => q2, nanoid: () => i2, nativeEnum: () => j2, never: () => Cc, nonoptional: () => qd, null: () => Cd, nullable: () => co, nullish: () => H2, number: () => bd, object: () => M2, optional: () => lo, partialRecord: () => L2, pipe: () => sl, prefault: () => Yd, preprocess: () => o6, promise: () => Q2, readonly: () => rp, record: () => zd, refine: () => up, set: () => U2, strictObject: () => z2, string: () => oo, stringFormat: () => v2, stringbool: () => a6, success: () => Y2, superRefine: () => lp, symbol: () => F2, templateLiteral: () => J2, transform: () => Sc, tuple: () => Md, uint32: () => E2, uint64: () => S2, ulid: () => s2, undefined: () => B2, union: () => Ac, unknown: () => ga, url: () => t2, uuid: () => X3, uuidv4: () => K3, uuidv6: () => J3, uuidv7: () => Q3, void: () => P2, xid: () => o2, xor: () => O2 });
|
|
13266
13266
|
var B3 = {};
|
|
13267
|
-
sn(B3, { endsWith: () => Ql, gt: () => Mn, gte: () =>
|
|
13267
|
+
sn(B3, { endsWith: () => Ql, gt: () => Mn, gte: () => Sr, includes: () => Kl, length: () => Fo, lowercase: () => ql, lt: () => Tn, lte: () => ei, maxLength: () => So, maxSize: () => ls, mime: () => tc, minLength: () => ma, minSize: () => zn, multipleOf: () => qa, negative: () => od, nonnegative: () => ld, nonpositive: () => ud, normalize: () => ec, overwrite: () => ln, positive: () => sd, property: () => cd, regex: () => Yl, size: () => ko, slugify: () => ac, startsWith: () => Jl, toLowerCase: () => ic, toUpperCase: () => nc, trim: () => rc, uppercase: () => Xl });
|
|
13268
13268
|
var dd = {};
|
|
13269
13269
|
sn(dd, { ZodISODate: () => md, ZodISODateTime: () => pd, ZodISODuration: () => yd, ZodISOTime: () => gd, date: () => P3, datetime: () => I3, duration: () => T3, time: () => N3 });
|
|
13270
13270
|
var pd = O("ZodISODateTime", (t, e) => {
|
|
@@ -13571,9 +13571,9 @@ var To = O("ZodNumber", (t, e) => {
|
|
|
13571
13571
|
Ih.init(t, e), Wt.init(t, e), t._zod.processJSONSchema = (n, i, a) => Ww(t, n, i), Io(t, "ZodNumber", { gt(n, i) {
|
|
13572
13572
|
return this.check(Mn(n, i));
|
|
13573
13573
|
}, gte(n, i) {
|
|
13574
|
-
return this.check(
|
|
13574
|
+
return this.check(Sr(n, i));
|
|
13575
13575
|
}, min(n, i) {
|
|
13576
|
-
return this.check(
|
|
13576
|
+
return this.check(Sr(n, i));
|
|
13577
13577
|
}, lt(n, i) {
|
|
13578
13578
|
return this.check(Tn(n, i));
|
|
13579
13579
|
}, lte(n, i) {
|
|
@@ -13587,7 +13587,7 @@ var To = O("ZodNumber", (t, e) => {
|
|
|
13587
13587
|
}, positive(n) {
|
|
13588
13588
|
return this.check(Mn(0, n));
|
|
13589
13589
|
}, nonnegative(n) {
|
|
13590
|
-
return this.check(
|
|
13590
|
+
return this.check(Sr(0, n));
|
|
13591
13591
|
}, negative(n) {
|
|
13592
13592
|
return this.check(Tn(0, n));
|
|
13593
13593
|
}, nonpositive(n) {
|
|
@@ -13630,7 +13630,7 @@ function wd(t) {
|
|
|
13630
13630
|
return bw(Mo, t);
|
|
13631
13631
|
}
|
|
13632
13632
|
var zo = O("ZodBigInt", (t, e) => {
|
|
13633
|
-
Nh.init(t, e), Wt.init(t, e), t._zod.processJSONSchema = (n, i, a) => Yw(t, n), t.gte = (n, i) => t.check(
|
|
13633
|
+
Nh.init(t, e), Wt.init(t, e), t._zod.processJSONSchema = (n, i, a) => Yw(t, n), t.gte = (n, i) => t.check(Sr(n, i)), t.min = (n, i) => t.check(Sr(n, i)), t.gt = (n, i) => t.check(Mn(n, i)), t.gte = (n, i) => t.check(Sr(n, i)), t.min = (n, i) => t.check(Sr(n, i)), t.lt = (n, i) => t.check(Tn(n, i)), t.lte = (n, i) => t.check(ei(n, i)), t.max = (n, i) => t.check(ei(n, i)), t.positive = (n) => t.check(Mn(BigInt(0), n)), t.negative = (n) => t.check(Tn(BigInt(0), n)), t.nonpositive = (n) => t.check(ei(BigInt(0), n)), t.nonnegative = (n) => t.check(Sr(BigInt(0), n)), t.multipleOf = (n, i) => t.check(qa(n, i));
|
|
13634
13634
|
const r = t._zod.bag;
|
|
13635
13635
|
t.minValue = r.minimum ?? null, t.maxValue = r.maximum ?? null, t.format = r.format ?? null;
|
|
13636
13636
|
});
|
|
@@ -13689,7 +13689,7 @@ function P2(t) {
|
|
|
13689
13689
|
return Iw(Sd, t);
|
|
13690
13690
|
}
|
|
13691
13691
|
var Ec = O("ZodDate", (t, e) => {
|
|
13692
|
-
_b.init(t, e), Wt.init(t, e), t._zod.processJSONSchema = (n, i, a) => r3(t, n), t.min = (n, i) => t.check(
|
|
13692
|
+
_b.init(t, e), Wt.init(t, e), t._zod.processJSONSchema = (n, i, a) => r3(t, n), t.min = (n, i) => t.check(Sr(n, i)), t.max = (n, i) => t.check(ei(n, i));
|
|
13693
13693
|
const r = t._zod.bag;
|
|
13694
13694
|
t.minDate = r.minimum ? new Date(r.minimum) : null, t.maxDate = r.maximum ? new Date(r.maximum) : null;
|
|
13695
13695
|
});
|
|
@@ -14271,7 +14271,7 @@ function Rr(t, e) {
|
|
|
14271
14271
|
}
|
|
14272
14272
|
var IB = "https://unpkg.com/@resvg/resvg-wasm@2.6.2/index_bg.wasm", PB = new Uint8Array([0, 97, 115, 109]), Tu = null, cp = !1;
|
|
14273
14273
|
async function NB(t) {
|
|
14274
|
-
Tu || (Tu = await Promise.resolve().then(() =>
|
|
14274
|
+
Tu || (Tu = await Promise.resolve().then(() => nj));
|
|
14275
14275
|
const e = await WebAssembly.compile(t);
|
|
14276
14276
|
try {
|
|
14277
14277
|
await Tu.initWasm(e);
|
|
@@ -15123,7 +15123,7 @@ async function xI(t) {
|
|
|
15123
15123
|
if (cg() ? e = await bI() : e = await wI(t), !e)
|
|
15124
15124
|
throw new Error("Failed to load WASM binary from any source");
|
|
15125
15125
|
cg() || (_I(e), window.Module = { wasmBinary: e, locateFile: (u) => u });
|
|
15126
|
-
const r = await Promise.resolve().then(() =>
|
|
15126
|
+
const r = await Promise.resolve().then(() => uj), i = await (r.default || r)({ wasmBinary: e }), a = await Promise.resolve().then(() => fj), o = (a.default || a)(i);
|
|
15127
15127
|
if (!o || typeof o.createBuffer != "function" || typeof o.createFont != "function")
|
|
15128
15128
|
throw new Error("Failed to initialize HarfBuzz: unexpected export shape from 'harfbuzzjs'.");
|
|
15129
15129
|
return du = o, du;
|
|
@@ -15724,7 +15724,7 @@ var L = class extends cn {
|
|
|
15724
15724
|
this.type = t, this.value = e;
|
|
15725
15725
|
}
|
|
15726
15726
|
};
|
|
15727
|
-
function
|
|
15727
|
+
function Nr(t, e, r) {
|
|
15728
15728
|
return e in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
|
|
15729
15729
|
}
|
|
15730
15730
|
function ar(t, e, r, n) {
|
|
@@ -17196,7 +17196,7 @@ var TM = class {
|
|
|
17196
17196
|
}
|
|
17197
17197
|
}
|
|
17198
17198
|
};
|
|
17199
|
-
|
|
17199
|
+
Nr(On, "zeroMarkWidths", "AFTER_GPOS");
|
|
17200
17200
|
var $M = new yp.default(wp("APABAAAAAAAAOAAAAf0BAv7tmi1MxDAUx7vtvjhAgcDgkEgEAnmXEBIMCYaEcygEiqBQ4FAkCE4ikUgMiiBJSAgSiUQSDMn9L9eSl6bddddug9t7yS/trevre+3r27pcNxZiG+yCfdCVv/9LeQxOwRm4AJegD27ALbgD9+ABPJF+z+BN/h7yDj5k/VOWX6SdmU5+wLWknggxDxaS8u0qiiX4uiz9XamQ3wzDMAzDMAzDMAzDVI/h959V/v7BMAzDMAzDMLlyNTNiMSdewVxbiA44B4/guz1qW58VYlMI0WsJ0W+N6kXw0spvPtdwhtkwnGM6uLaV4Xyzg3v3PM9DPfQ/sOg4xPWjipy31P8LTqbU304c/cLCUmWJLNB2Uz2U1KTeRKNmKHVMfbJC+/0loTZRH/W5cvEvBJPMbREkWt3FD1NcqXZBSpuE2Ad0PBehPtNrPtIEdYP+hiRt/V1jIiE69X4NT/uVZI3PUHE9bm5M7ePGdZWy951v7Nn6j8v1WWKP3mt6ttnsigx6VN7Vc0VomSSGqW2mGNP1muZPl7LfjNUaKNFtDGVf2fvE9O7VlBS5j333c5p/eeoOqcs1R/hIqDWLJ7TTlksirVT1SI7l8k4Yp+g3jafGcrU1RM6l9th80XOpnlN97bDNY4i4s61B0Si/ipa0uHMl6zqEjlFfCZm/TM8KmzQDjmuTAQ==")), Ug = ["isol", "fina", "fin2", "fin3", "medi", "med2", "init"], D0 = { Non_Joining: 0, Transparent: 6 }, xe = "isol", yn = "fina", If = "fin2", ZM = "fin3", gu = "medi", yu = "med2", vu = "init", oe = null, UM = [[[oe, oe, 0], [oe, xe, 2], [oe, xe, 1], [oe, xe, 2], [oe, xe, 1], [oe, xe, 6]], [[oe, oe, 0], [oe, xe, 2], [oe, xe, 1], [oe, xe, 2], [oe, If, 5], [oe, xe, 6]], [[oe, oe, 0], [oe, xe, 2], [vu, yn, 1], [vu, yn, 3], [vu, yn, 4], [vu, yn, 6]], [[oe, oe, 0], [oe, xe, 2], [gu, yn, 1], [gu, yn, 3], [gu, yn, 4], [gu, yn, 6]], [[oe, oe, 0], [oe, xe, 2], [yu, xe, 1], [yu, xe, 2], [yu, If, 5], [yu, xe, 6]], [[oe, oe, 0], [oe, xe, 2], [xe, xe, 1], [xe, xe, 2], [xe, If, 5], [xe, xe, 6]], [[oe, oe, 0], [oe, xe, 2], [oe, xe, 1], [oe, xe, 2], [oe, ZM, 5], [oe, xe, 6]]], vn = class extends On {
|
|
17201
17201
|
static planFeatures(t) {
|
|
17202
17202
|
t.add(["ccmp", "locl"]);
|
|
@@ -17502,7 +17502,7 @@ var GM = class {
|
|
|
17502
17502
|
}
|
|
17503
17503
|
}
|
|
17504
17504
|
};
|
|
17505
|
-
|
|
17505
|
+
Nr(r_, "zeroMarkWidths", "NONE");
|
|
17506
17506
|
var ns = 44032, i_ = 55204, HM = i_ - ns + 1, Vc = 4352, Oc = 4449, la = 4519, YM = 19, yl = 21, mo = 28, qM = Vc + YM - 1, XM = Oc + yl - 1, KM = la + mo - 1, jg = 9676, JM = (t) => 4352 <= t && t <= 4447 || 43360 <= t && t <= 43388, QM = (t) => 4448 <= t && t <= 4519 || 55216 <= t && t <= 55238, tz = (t) => 4520 <= t && t <= 4607 || 55243 <= t && t <= 55291, ez = (t) => 12334 <= t && t <= 12335, rz = (t) => ns <= t && t <= i_, iz = (t) => t - ns < HM && (t - ns) % mo === 0, nz = (t) => Vc <= t && t <= qM, az = (t) => Oc <= t && t <= XM, sz = (t) => 1 <= t && t <= KM, oz = 0, uz = 1, vl = 2, xp = 3, bl = 4, n_ = 5, lz = 6;
|
|
17507
17507
|
function wl(t) {
|
|
17508
17508
|
return JM(t) ? uz : QM(t) ? vl : tz(t) ? xp : iz(t) ? bl : rz(t) ? n_ : ez(t) ? lz : oz;
|
|
@@ -17592,7 +17592,7 @@ var Jt = { X: 1, C: 2, V: 4, N: 8, H: 16, ZWNJ: 32, ZWJ: 64, M: 128, Placeholder
|
|
|
17592
17592
|
}
|
|
17593
17593
|
}
|
|
17594
17594
|
};
|
|
17595
|
-
|
|
17595
|
+
Nr(Ze, "zeroMarkWidths", "NONE");
|
|
17596
17596
|
function k0(t) {
|
|
17597
17597
|
return u_.get(t.codePoints[0]) >> 8;
|
|
17598
17598
|
}
|
|
@@ -17869,7 +17869,7 @@ var { categories: Dz, decompositions: Wg } = Nc(Rc), Cz = new yp.default(wp("AAA
|
|
|
17869
17869
|
}
|
|
17870
17870
|
}
|
|
17871
17871
|
};
|
|
17872
|
-
|
|
17872
|
+
Nr(Xt, "zeroMarkWidths", "BEFORE_GPOS");
|
|
17873
17873
|
function Hg(t) {
|
|
17874
17874
|
return Cz.get(t.codePoints[0]);
|
|
17875
17875
|
}
|
|
@@ -18586,7 +18586,7 @@ var Kg = new L({ numberOfContours: Q, xMin: Q, yMin: Q, xMax: Q, yMax: Q }), Oz
|
|
|
18586
18586
|
return e;
|
|
18587
18587
|
}
|
|
18588
18588
|
constructor(...t) {
|
|
18589
|
-
super(...t),
|
|
18589
|
+
super(...t), Nr(this, "type", "TTF");
|
|
18590
18590
|
}
|
|
18591
18591
|
}, Xz = class extends Oi {
|
|
18592
18592
|
_getName() {
|
|
@@ -18825,7 +18825,7 @@ var Kg = new L({ numberOfContours: Q, xMin: Q, yMin: Q, xMax: Q, yMax: Q }), Oz
|
|
|
18825
18825
|
return Z(), m && i.closePath(), i;
|
|
18826
18826
|
}
|
|
18827
18827
|
constructor(...t) {
|
|
18828
|
-
super(...t),
|
|
18828
|
+
super(...t), Nr(this, "type", "CFF");
|
|
18829
18829
|
}
|
|
18830
18830
|
}, Kz = new L({ originX: g, originY: g, type: new ve(4), data: new Ti((t) => t.parent.buflen - t._currentOffset) }), Jz = class extends $c {
|
|
18831
18831
|
getImageForSize(t) {
|
|
@@ -18845,7 +18845,7 @@ var Kg = new L({ numberOfContours: Q, xMin: Q, yMin: Q, xMax: Q, yMax: Q }), Oz
|
|
|
18845
18845
|
this._font.sbix.flags.renderOutlines && super.render(t, e);
|
|
18846
18846
|
}
|
|
18847
18847
|
constructor(...t) {
|
|
18848
|
-
super(...t),
|
|
18848
|
+
super(...t), Nr(this, "type", "SBIX");
|
|
18849
18849
|
}
|
|
18850
18850
|
}, Qg = class {
|
|
18851
18851
|
constructor(t, e) {
|
|
@@ -18888,7 +18888,7 @@ var Kg = new L({ numberOfContours: Q, xMin: Q, yMin: Q, xMax: Q, yMax: Q }), Oz
|
|
|
18888
18888
|
t.fillColor([n.red, n.green, n.blue], n.alpha / 255 * 100), r.render(t, e);
|
|
18889
18889
|
}
|
|
18890
18890
|
constructor(...t) {
|
|
18891
|
-
super(...t),
|
|
18891
|
+
super(...t), Nr(this, "type", "COLR");
|
|
18892
18892
|
}
|
|
18893
18893
|
}, tV = 32768, eV = 4095, rV = 32768, t1 = 16384, iV = 8192, e1 = 4095, r1 = 128, i1 = 127, nV = 128, aV = 64, sV = 63, oV = class {
|
|
18894
18894
|
normalizeCoords(t) {
|
|
@@ -19213,7 +19213,7 @@ var h_ = class {
|
|
|
19213
19213
|
constructor(t) {
|
|
19214
19214
|
if (super(t), this.cff = this.font["CFF "], !this.cff) throw new Error("Not a CFF Font");
|
|
19215
19215
|
}
|
|
19216
|
-
},
|
|
19216
|
+
}, Ir = class d_ {
|
|
19217
19217
|
static probe(e) {
|
|
19218
19218
|
let r = zc.decode(e.slice(0, 4));
|
|
19219
19219
|
return r === "true" || r === "OTTO" || r === "\0\0\0";
|
|
@@ -19386,27 +19386,27 @@ var h_ = class {
|
|
|
19386
19386
|
return this.getVariation(e);
|
|
19387
19387
|
}
|
|
19388
19388
|
constructor(e, r = null) {
|
|
19389
|
-
|
|
19389
|
+
Nr(this, "type", "TTF"), this.defaultLanguage = null, this.stream = e, this.variationCoords = r, this._directoryPos = this.stream.pos, this._tables = {}, this._glyphs = {}, this._decodeDirectory();
|
|
19390
19390
|
for (let n in this.directory.tables) {
|
|
19391
19391
|
let i = this.directory.tables[n];
|
|
19392
19392
|
pl[n] && i.length > 0 && Object.defineProperty(this, n, { get: this._getTable.bind(this, i) });
|
|
19393
19393
|
}
|
|
19394
19394
|
}
|
|
19395
19395
|
};
|
|
19396
|
-
ar([sr],
|
|
19397
|
-
ar([sr],
|
|
19398
|
-
ar([sr],
|
|
19399
|
-
ar([sr],
|
|
19400
|
-
ar([sr],
|
|
19401
|
-
ar([sr],
|
|
19402
|
-
ar([sr],
|
|
19396
|
+
ar([sr], Ir.prototype, "bbox", null);
|
|
19397
|
+
ar([sr], Ir.prototype, "_cmapProcessor", null);
|
|
19398
|
+
ar([sr], Ir.prototype, "characterSet", null);
|
|
19399
|
+
ar([sr], Ir.prototype, "_layoutEngine", null);
|
|
19400
|
+
ar([sr], Ir.prototype, "variationAxes", null);
|
|
19401
|
+
ar([sr], Ir.prototype, "namedVariations", null);
|
|
19402
|
+
ar([sr], Ir.prototype, "_variationProcessor", null);
|
|
19403
19403
|
var yV = new L({ tag: new ve(4), offset: new z(V, "void", { type: "global" }), compLength: V, length: V, origChecksum: V }), p_ = new L({ tag: new ve(4), flavor: V, length: V, numTables: g, reserved: new Fe(g), totalSfntSize: V, majorVersion: g, minorVersion: g, metaOffset: V, metaLength: V, metaOrigLength: V, privOffset: V, privLength: V, tables: new M(yV, "numTables") });
|
|
19404
19404
|
p_.process = function() {
|
|
19405
19405
|
let t = {};
|
|
19406
19406
|
for (let e of this.tables) t[e.tag] = e;
|
|
19407
19407
|
this.tables = t;
|
|
19408
19408
|
};
|
|
19409
|
-
var vV = p_, bV = class extends
|
|
19409
|
+
var vV = p_, bV = class extends Ir {
|
|
19410
19410
|
static probe(t) {
|
|
19411
19411
|
return zc.decode(t.slice(0, 4)) === "wOFF";
|
|
19412
19412
|
}
|
|
@@ -19424,7 +19424,7 @@ var vV = p_, bV = class extends Pr {
|
|
|
19424
19424
|
return null;
|
|
19425
19425
|
}
|
|
19426
19426
|
constructor(...t) {
|
|
19427
|
-
super(...t),
|
|
19427
|
+
super(...t), Nr(this, "type", "WOFF");
|
|
19428
19428
|
}
|
|
19429
19429
|
}, wV = class extends $c {
|
|
19430
19430
|
_decode() {
|
|
@@ -19434,7 +19434,7 @@ var vV = p_, bV = class extends Pr {
|
|
|
19434
19434
|
return this.path.bbox;
|
|
19435
19435
|
}
|
|
19436
19436
|
constructor(...t) {
|
|
19437
|
-
super(...t),
|
|
19437
|
+
super(...t), Nr(this, "type", "WOFF2");
|
|
19438
19438
|
}
|
|
19439
19439
|
}, s1 = { decode(t) {
|
|
19440
19440
|
let e = 0, r = [0, 1, 2, 3, 4];
|
|
@@ -19453,7 +19453,7 @@ m_.process = function() {
|
|
|
19453
19453
|
}
|
|
19454
19454
|
return this.tables = t;
|
|
19455
19455
|
};
|
|
19456
|
-
var DV = m_, CV = class extends
|
|
19456
|
+
var DV = m_, CV = class extends Ir {
|
|
19457
19457
|
static probe(t) {
|
|
19458
19458
|
return zc.decode(t.slice(0, 4)) === "wOF2";
|
|
19459
19459
|
}
|
|
@@ -19501,7 +19501,7 @@ var DV = m_, CV = class extends Pr {
|
|
|
19501
19501
|
this._transformedGlyphs = e;
|
|
19502
19502
|
}
|
|
19503
19503
|
constructor(...t) {
|
|
19504
|
-
super(...t),
|
|
19504
|
+
super(...t), Nr(this, "type", "WOFF2");
|
|
19505
19505
|
}
|
|
19506
19506
|
}, Kn = class {
|
|
19507
19507
|
decode(t, e) {
|
|
@@ -19550,7 +19550,7 @@ var BV = new ie(V, { 65536: { numFonts: V, offsets: new M(V, "numFonts") }, 1310
|
|
|
19550
19550
|
for (let e of this.header.offsets) {
|
|
19551
19551
|
let r = new rr(this.stream.buffer);
|
|
19552
19552
|
r.pos = e;
|
|
19553
|
-
let n = new
|
|
19553
|
+
let n = new Ir(r);
|
|
19554
19554
|
if (n.postscriptName === t || n.postscriptName instanceof Uint8Array && t instanceof Uint8Array && n.postscriptName.every((i, a) => t[a] === i)) return n;
|
|
19555
19555
|
}
|
|
19556
19556
|
return null;
|
|
@@ -19559,12 +19559,12 @@ var BV = new ie(V, { 65536: { numFonts: V, offsets: new M(V, "numFonts") }, 1310
|
|
|
19559
19559
|
let t = [];
|
|
19560
19560
|
for (let e of this.header.offsets) {
|
|
19561
19561
|
let r = new rr(this.stream.buffer);
|
|
19562
|
-
r.pos = e, t.push(new
|
|
19562
|
+
r.pos = e, t.push(new Ir(r));
|
|
19563
19563
|
}
|
|
19564
19564
|
return t;
|
|
19565
19565
|
}
|
|
19566
19566
|
constructor(t) {
|
|
19567
|
-
if (
|
|
19567
|
+
if (Nr(this, "type", "TTC"), this.stream = t, t.readString(4) !== "ttcf") throw new Error("Not a TrueType collection");
|
|
19568
19568
|
this.header = BV.decode(t);
|
|
19569
19569
|
}
|
|
19570
19570
|
}, PV = new ve(ct);
|
|
@@ -19584,7 +19584,7 @@ var NV = new L({ id: g, nameOffset: Q, attr: ct, dataOffset: Sn, handle: V }), T
|
|
|
19584
19584
|
getFont(t) {
|
|
19585
19585
|
if (!this.sfnt) return null;
|
|
19586
19586
|
for (let e of this.sfnt.refList) {
|
|
19587
|
-
let r = this.header.dataOffset + e.dataOffset + 4, n = new rr(this.stream.buffer.slice(r)), i = new
|
|
19587
|
+
let r = this.header.dataOffset + e.dataOffset + 4, n = new rr(this.stream.buffer.slice(r)), i = new Ir(n);
|
|
19588
19588
|
if (i.postscriptName === t || i.postscriptName instanceof Uint8Array && t instanceof Uint8Array && i.postscriptName.every((a, s) => t[s] === a)) return i;
|
|
19589
19589
|
}
|
|
19590
19590
|
return null;
|
|
@@ -19593,19 +19593,19 @@ var NV = new L({ id: g, nameOffset: Q, attr: ct, dataOffset: Sn, handle: V }), T
|
|
|
19593
19593
|
let t = [];
|
|
19594
19594
|
for (let e of this.sfnt.refList) {
|
|
19595
19595
|
let r = this.header.dataOffset + e.dataOffset + 4, n = new rr(this.stream.buffer.slice(r));
|
|
19596
|
-
t.push(new
|
|
19596
|
+
t.push(new Ir(n));
|
|
19597
19597
|
}
|
|
19598
19598
|
return t;
|
|
19599
19599
|
}
|
|
19600
19600
|
constructor(t) {
|
|
19601
|
-
|
|
19601
|
+
Nr(this, "type", "DFont"), this.stream = t, this.header = u1.decode(this.stream);
|
|
19602
19602
|
for (let e of this.header.map.typeList.types) {
|
|
19603
19603
|
for (let r of e.refList) r.nameOffset >= 0 ? (this.stream.pos = r.nameOffset + this.header.map.nameListOffset, r.name = PV.decode(this.stream)) : r.name = null;
|
|
19604
19604
|
e.name === "sfnt" && (this.sfnt = e);
|
|
19605
19605
|
}
|
|
19606
19606
|
}
|
|
19607
19607
|
};
|
|
19608
|
-
fs(
|
|
19608
|
+
fs(Ir);
|
|
19609
19609
|
fs(bV);
|
|
19610
19610
|
fs(CV);
|
|
19611
19611
|
fs(IV);
|
|
@@ -20015,7 +20015,7 @@ function $V() {
|
|
|
20015
20015
|
yt || he.push(yt = { start: Ve, end: K.length - 1, level: at === "rtl" ? 1 : at === "ltr" ? 0 : Xp(Ve, !1) }), it[Ve] & j && (yt.end = Ve, yt = null);
|
|
20016
20016
|
for (var Qe = jt | $t | kt | rt | a | le | ue | j, we = function(_r) {
|
|
20017
20017
|
return _r + (_r & 1 ? 1 : 2);
|
|
20018
|
-
},
|
|
20018
|
+
}, Tr = function(_r) {
|
|
20019
20019
|
return _r + (_r & 1 ? 2 : 1);
|
|
20020
20020
|
}, Re = 0; Re < he.length; Re++) {
|
|
20021
20021
|
yt = he[Re];
|
|
@@ -20026,15 +20026,15 @@ function $V() {
|
|
|
20026
20026
|
if (Yt = Kt[Kt.length - 1], Ft.set(Be, (Ft.get(Be) || 0) + 1), Be & o && Ft.set(o, (Ft.get(o) || 0) + 1), Be & Qe)
|
|
20027
20027
|
if (Be & (jt | $t)) {
|
|
20028
20028
|
xt[Ae] = Yt._level;
|
|
20029
|
-
var Un = (Be === jt ?
|
|
20029
|
+
var Un = (Be === jt ? Tr : we)(Yt._level);
|
|
20030
20030
|
Un <= wt && !or && !dr ? Kt.push({ _level: Un, _override: 0, _isolate: 0 }) : or || dr++;
|
|
20031
20031
|
} else if (Be & (kt | rt)) {
|
|
20032
20032
|
xt[Ae] = Yt._level;
|
|
20033
|
-
var Li = (Be === kt ?
|
|
20033
|
+
var Li = (Be === kt ? Tr : we)(Yt._level);
|
|
20034
20034
|
Li <= wt && !or && !dr ? Kt.push({ _level: Li, _override: Be & kt ? N : $, _isolate: 0 }) : or || dr++;
|
|
20035
20035
|
} else if (Be & a) {
|
|
20036
20036
|
Be & Ue && (Be = Xp(Ae + 1, !0) === 1 ? ee : fe), xt[Ae] = Yt._level, Yt._override && It(Ae, Yt._override);
|
|
20037
|
-
var $i = (Be === ee ?
|
|
20037
|
+
var $i = (Be === ee ? Tr : we)(Yt._level);
|
|
20038
20038
|
$i <= wt && or === 0 && dr === 0 ? (Xe++, Kt.push({ _level: $i, _override: 0, _isolate: 1, _isolInitIndex: Ae })) : or++;
|
|
20039
20039
|
} else if (Be & le) {
|
|
20040
20040
|
if (or > 0)
|
|
@@ -20050,20 +20050,20 @@ function $V() {
|
|
|
20050
20050
|
else
|
|
20051
20051
|
xt[Ae] = Yt._level, Yt._override && Be !== ht && It(Ae, Yt._override);
|
|
20052
20052
|
}
|
|
20053
|
-
for (var Gr = [], pr = null,
|
|
20054
|
-
var ur = it[
|
|
20053
|
+
for (var Gr = [], pr = null, Mr = yt.start; Mr <= yt.end; Mr++) {
|
|
20054
|
+
var ur = it[Mr];
|
|
20055
20055
|
if (!(ur & u)) {
|
|
20056
|
-
var Zi = xt[
|
|
20057
|
-
pr && Zi === pr._level ? (pr._end =
|
|
20056
|
+
var Zi = xt[Mr], jn = ur & a, P = ur === le;
|
|
20057
|
+
pr && Zi === pr._level ? (pr._end = Mr, pr._endsWithIsolInit = jn) : Gr.push(pr = { _start: Mr, _end: Mr, _level: Zi, _startsWithPDI: P, _endsWithIsolInit: jn });
|
|
20058
20058
|
}
|
|
20059
20059
|
}
|
|
20060
20060
|
for (var mt = [], qt = 0; qt < Gr.length; qt++) {
|
|
20061
20061
|
var de = Gr[qt];
|
|
20062
20062
|
if (!de._startsWithPDI || de._startsWithPDI && !se.has(de._start)) {
|
|
20063
20063
|
for (var ne = [pr = de], $e = void 0; pr && pr._endsWithIsolInit && ($e = se.get(pr._end)) != null; )
|
|
20064
|
-
for (var
|
|
20065
|
-
if (Gr[
|
|
20066
|
-
ne.push(pr = Gr[
|
|
20064
|
+
for (var zr = qt + 1; zr < Gr.length; zr++)
|
|
20065
|
+
if (Gr[zr]._start === $e) {
|
|
20066
|
+
ne.push(pr = Gr[zr]);
|
|
20067
20067
|
break;
|
|
20068
20068
|
}
|
|
20069
20069
|
for (var si = [], Gn = 0; Gn < ne.length; Gn++)
|
|
@@ -20239,10 +20239,10 @@ function $V() {
|
|
|
20239
20239
|
}
|
|
20240
20240
|
}
|
|
20241
20241
|
}
|
|
20242
|
-
for (var
|
|
20243
|
-
var bx = xt[
|
|
20244
|
-
if (bx & 1 ? ru & ($ | Z | T) && xt[
|
|
20245
|
-
for (var iu =
|
|
20242
|
+
for (var Vr = yt.start; Vr <= yt.end; Vr++) {
|
|
20243
|
+
var bx = xt[Vr], ru = it[Vr];
|
|
20244
|
+
if (bx & 1 ? ru & ($ | Z | T) && xt[Vr]++ : ru & N ? xt[Vr]++ : ru & (T | Z) && (xt[Vr] += 2), ru & u && (xt[Vr] = Vr === 0 ? yt.level : xt[Vr - 1]), Vr === yt.end || d(K[Vr]) & (ft | j))
|
|
20245
|
+
for (var iu = Vr; iu >= 0 && d(K[iu]) & l; iu--)
|
|
20246
20246
|
xt[iu] = yt.level;
|
|
20247
20247
|
}
|
|
20248
20248
|
}
|
|
@@ -20306,8 +20306,8 @@ function $V() {
|
|
|
20306
20306
|
for (var he = at.levels.slice(xt, se + 1), yt = se; yt >= xt && d(K[yt]) & l; yt--)
|
|
20307
20307
|
he[yt] = It.level;
|
|
20308
20308
|
for (var Ve = It.level, Qe = 1 / 0, we = 0; we < he.length; we++) {
|
|
20309
|
-
var
|
|
20310
|
-
|
|
20309
|
+
var Tr = he[we];
|
|
20310
|
+
Tr > Ve && (Ve = Tr), Tr < Qe && (Qe = Tr | 1);
|
|
20311
20311
|
}
|
|
20312
20312
|
for (var Re = Ve; Re >= Qe; Re--)
|
|
20313
20313
|
for (var Kt = 0; Kt < he.length; Kt++)
|
|
@@ -22664,15 +22664,15 @@ function qR(t) {
|
|
|
22664
22664
|
function x1(t) {
|
|
22665
22665
|
const e = t.lastIndexOf(".");
|
|
22666
22666
|
if (e === -1) return -1;
|
|
22667
|
-
const r = t.substring(e + 1), n =
|
|
22667
|
+
const r = t.substring(e + 1), n = kr(r);
|
|
22668
22668
|
if (n < 0) return -1;
|
|
22669
22669
|
const a = t.substring(0, e).split(":");
|
|
22670
22670
|
if (a.length === 2) {
|
|
22671
|
-
const s =
|
|
22671
|
+
const s = kr(a[0]), o = kr(a[1]);
|
|
22672
22672
|
return s < 0 || o < 0 ? -1 : s * 6e4 + o * 1e3 + n;
|
|
22673
22673
|
}
|
|
22674
22674
|
if (a.length === 3) {
|
|
22675
|
-
const s =
|
|
22675
|
+
const s = kr(a[0]), o = kr(a[1]), u = kr(a[2]);
|
|
22676
22676
|
return s < 0 || o < 0 || u < 0 ? -1 : s * 36e5 + o * 6e4 + u * 1e3 + n;
|
|
22677
22677
|
}
|
|
22678
22678
|
return -1;
|
|
@@ -22680,14 +22680,14 @@ function x1(t) {
|
|
|
22680
22680
|
function D1(t) {
|
|
22681
22681
|
const e = t.lastIndexOf(",");
|
|
22682
22682
|
if (e === -1) return -1;
|
|
22683
|
-
const r = t.substring(e + 1), n =
|
|
22683
|
+
const r = t.substring(e + 1), n = kr(r);
|
|
22684
22684
|
if (n < 0) return -1;
|
|
22685
22685
|
const a = t.substring(0, e).split(":");
|
|
22686
22686
|
if (a.length !== 3) return -1;
|
|
22687
|
-
const s =
|
|
22687
|
+
const s = kr(a[0]), o = kr(a[1]), u = kr(a[2]);
|
|
22688
22688
|
return s < 0 || o < 0 || u < 0 ? -1 : s * 36e5 + o * 6e4 + u * 1e3 + n;
|
|
22689
22689
|
}
|
|
22690
|
-
function
|
|
22690
|
+
function kr(t) {
|
|
22691
22691
|
let e = 0;
|
|
22692
22692
|
for (let r = 0; r < t.length; r++) {
|
|
22693
22693
|
const n = t.charCodeAt(r);
|
|
@@ -22706,7 +22706,7 @@ function KR(t) {
|
|
|
22706
22706
|
let r = "", n = 0, i;
|
|
22707
22707
|
for (C1.lastIndex = 0; (i = C1.exec(t)) !== null; ) {
|
|
22708
22708
|
r += t.substring(n, i.index);
|
|
22709
|
-
const a = r.length, s = i[1] ? i[1].substring(0, i[1].length - 1) : "00", o = i[2], u = i[3], l = u.indexOf("."), c = u.substring(0, l), h = u.substring(l + 1), d =
|
|
22709
|
+
const a = r.length, s = i[1] ? i[1].substring(0, i[1].length - 1) : "00", o = i[2], u = i[3], l = u.indexOf("."), c = u.substring(0, l), h = u.substring(l + 1), d = kr(s), m = kr(o), y = kr(c), v = kr(h);
|
|
22710
22710
|
if (d >= 0 && m >= 0 && y >= 0 && v >= 0) {
|
|
22711
22711
|
const b = d * 36e5 + m * 6e4 + y * 1e3 + v;
|
|
22712
22712
|
e.push({ timeMs: b, position: a });
|
|
@@ -38206,7 +38206,7 @@ const T_ = [
|
|
|
38206
38206
|
ExtraBold: 800,
|
|
38207
38207
|
Black: 900
|
|
38208
38208
|
};
|
|
38209
|
-
function
|
|
38209
|
+
function Fr(t) {
|
|
38210
38210
|
const { family: e, weight: r } = Ra(t);
|
|
38211
38211
|
return { baseFontFamily: e, fontWeight: Number(r) };
|
|
38212
38212
|
}
|
|
@@ -38214,7 +38214,7 @@ function as(t, e) {
|
|
|
38214
38214
|
const r = kp.get(t);
|
|
38215
38215
|
if (r)
|
|
38216
38216
|
return r.url;
|
|
38217
|
-
const { baseFontFamily: n } =
|
|
38217
|
+
const { baseFontFamily: n } = Fr(t), i = rL[n] ?? n;
|
|
38218
38218
|
if (e !== void 0 && e !== 400) {
|
|
38219
38219
|
const s = Object.entries(iL).find(([, o]) => o === e)?.[0];
|
|
38220
38220
|
if (s) {
|
|
@@ -38292,7 +38292,7 @@ class El extends nr {
|
|
|
38292
38292
|
async load() {
|
|
38293
38293
|
await super.load();
|
|
38294
38294
|
const e = this.clipConfiguration.asset, r = e.font?.family ?? "Open Sans";
|
|
38295
|
-
if (await this.loadFont(r), this.state =
|
|
38295
|
+
if (await this.loadFont(r), this.state = Br(e.src) ? { kind: "placeholder" } : await this.loadSubtitles(e.src), this.background = new st.Graphics(), this.contentContainer.addChild(this.background), this.text = new st.Text({ text: "", style: this.createTextStyle(e) }), this.text.visible = !1, e.stroke?.width && e.stroke.width > 0 && e.stroke.color) {
|
|
38296
38296
|
const n = new eo.OutlineFilter({
|
|
38297
38297
|
thickness: e.stroke.width,
|
|
38298
38298
|
color: sa(e.stroke.color)
|
|
@@ -38339,7 +38339,7 @@ class El extends nr {
|
|
|
38339
38339
|
this.updateDisplay(r, e);
|
|
38340
38340
|
}
|
|
38341
38341
|
createTextStyle(e) {
|
|
38342
|
-
const r = e.font?.family ?? "Open Sans", { baseFontFamily: n, fontWeight: i } =
|
|
38342
|
+
const r = e.font?.family ?? "Open Sans", { baseFontFamily: n, fontWeight: i } = Fr(r), a = e.font?.size ?? 32, { width: s } = this.getSize();
|
|
38343
38343
|
return new st.TextStyle({
|
|
38344
38344
|
fontFamily: n,
|
|
38345
38345
|
fontSize: a,
|
|
@@ -38385,7 +38385,7 @@ class El extends nr {
|
|
|
38385
38385
|
}, i > 0 ? this.background.roundRect(a, s, o, u, i) : this.background.rect(a, s, o, u), this.background.fill();
|
|
38386
38386
|
}
|
|
38387
38387
|
async loadFont(e) {
|
|
38388
|
-
const { baseFontFamily: r, fontWeight: n } =
|
|
38388
|
+
const { baseFontFamily: r, fontWeight: n } = Fr(e), i = `${r}-${n}`;
|
|
38389
38389
|
if (El.loadedFonts.has(i))
|
|
38390
38390
|
return;
|
|
38391
38391
|
const a = as(e);
|
|
@@ -38397,7 +38397,10 @@ class El extends nr {
|
|
|
38397
38397
|
}
|
|
38398
38398
|
}
|
|
38399
38399
|
}
|
|
38400
|
-
|
|
38400
|
+
function lL(t) {
|
|
38401
|
+
return t.includes('data-html-type="text"');
|
|
38402
|
+
}
|
|
38403
|
+
class cL extends nr {
|
|
38401
38404
|
background;
|
|
38402
38405
|
text;
|
|
38403
38406
|
constructor(e, r) {
|
|
@@ -38457,7 +38460,7 @@ class lL extends nr {
|
|
|
38457
38460
|
}
|
|
38458
38461
|
async parseDocument() {
|
|
38459
38462
|
const e = this.clipConfiguration.asset, { html: r, css: n = "", position: i } = e;
|
|
38460
|
-
if (!r
|
|
38463
|
+
if (!lL(r))
|
|
38461
38464
|
return console.warn("Unsupported html format."), null;
|
|
38462
38465
|
const s = new DOMParser().parseFromString(r, "text/html").body.textContent ?? "", u = (await new CSSStyleSheet().replace(n)).cssRules[0], l = { text: s, font: {}, alignment: {}, background: {}, stroke: {} };
|
|
38463
38466
|
if (u?.constructor.name !== "CSSStyleRule" || !("style" in u))
|
|
@@ -38546,7 +38549,7 @@ function $0() {
|
|
|
38546
38549
|
function ss(t) {
|
|
38547
38550
|
return !t.startsWith("http") || t.includes("?") ? t : `${t}?x-cors=1`;
|
|
38548
38551
|
}
|
|
38549
|
-
async function
|
|
38552
|
+
async function fL(t, e) {
|
|
38550
38553
|
if (t.startsWith("http"))
|
|
38551
38554
|
try {
|
|
38552
38555
|
await fetch(t, { method: "HEAD", mode: "cors" });
|
|
@@ -38559,12 +38562,12 @@ async function cL(t, e) {
|
|
|
38559
38562
|
}
|
|
38560
38563
|
}
|
|
38561
38564
|
}
|
|
38562
|
-
const
|
|
38565
|
+
const hL = "shotstack-html5-cache", dL = 1, Pi = "captures", E1 = 30;
|
|
38563
38566
|
let Eu = null, Au = null;
|
|
38564
38567
|
function M_() {
|
|
38565
38568
|
return Eu || (Eu = new Promise((t) => {
|
|
38566
38569
|
try {
|
|
38567
|
-
const e = indexedDB.open(
|
|
38570
|
+
const e = indexedDB.open(hL, dL);
|
|
38568
38571
|
e.onupgradeneeded = () => {
|
|
38569
38572
|
const r = e.result;
|
|
38570
38573
|
r.objectStoreNames.contains(Pi) || r.createObjectStore(Pi);
|
|
@@ -38603,7 +38606,7 @@ function z_(t) {
|
|
|
38603
38606
|
}
|
|
38604
38607
|
}), Au);
|
|
38605
38608
|
}
|
|
38606
|
-
async function
|
|
38609
|
+
async function pL(t) {
|
|
38607
38610
|
const e = await M_();
|
|
38608
38611
|
return e ? (z_(e).catch(() => {
|
|
38609
38612
|
}), new Promise((r) => {
|
|
@@ -38620,7 +38623,7 @@ async function dL(t) {
|
|
|
38620
38623
|
}
|
|
38621
38624
|
})) : null;
|
|
38622
38625
|
}
|
|
38623
|
-
async function
|
|
38626
|
+
async function mL(t, e) {
|
|
38624
38627
|
const r = await M_();
|
|
38625
38628
|
r && (z_(r).catch(() => {
|
|
38626
38629
|
}), await new Promise((n) => {
|
|
@@ -38638,7 +38641,7 @@ function Yo(t, e) {
|
|
|
38638
38641
|
const r = new st.Graphics();
|
|
38639
38642
|
return r.fillStyle = { color: "#cccccc", alpha: 0.5 }, r.rect(0, 0, t, e), r.fill(), r.strokeStyle = { color: "#999999", width: 2 }, r.moveTo(0, 0), r.lineTo(t, e), r.moveTo(t, 0), r.lineTo(0, e), r.stroke(), r;
|
|
38640
38643
|
}
|
|
38641
|
-
function
|
|
38644
|
+
function gL(t, e) {
|
|
38642
38645
|
const r = new st.Container(), n = Math.max(12, Math.round(t * 0.06)), i = t - n * 2, a = Math.max(4, Math.round(e / 220)), s = a / 2, o = n, u = e - Math.max(18, Math.round(e / 36)) - a, l = Math.min(30, Math.max(13, Math.round(e / 42))), c = new st.Text({
|
|
38643
38646
|
text: "Loading clip…",
|
|
38644
38647
|
style: new st.TextStyle({ fontFamily: "system-ui, sans-serif", fontSize: l, fill: 14870768, fontWeight: "600" })
|
|
@@ -38654,11 +38657,11 @@ function mL(t, e) {
|
|
|
38654
38657
|
};
|
|
38655
38658
|
return C(0), { container: r, setProgress: C };
|
|
38656
38659
|
}
|
|
38657
|
-
const A1 = -1e4,
|
|
38658
|
-
function
|
|
38660
|
+
const A1 = -1e4, yL = 1e4, vL = 30, bL = "__shotstackSeek", k1 = 4;
|
|
38661
|
+
function wL(t) {
|
|
38659
38662
|
t.getBoundingClientRect();
|
|
38660
38663
|
}
|
|
38661
|
-
function Wf(t, e =
|
|
38664
|
+
function Wf(t, e = yL, r = !1) {
|
|
38662
38665
|
return new Promise((n, i) => {
|
|
38663
38666
|
if (!r && t.contentDocument?.readyState === "complete") {
|
|
38664
38667
|
n();
|
|
@@ -38673,7 +38676,7 @@ function Wf(t, e = gL, r = !1) {
|
|
|
38673
38676
|
}, e), t.addEventListener("load", s, { once: !0 });
|
|
38674
38677
|
});
|
|
38675
38678
|
}
|
|
38676
|
-
async function
|
|
38679
|
+
async function _L(t, e, r) {
|
|
38677
38680
|
const n = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(t)}`, i = new Image();
|
|
38678
38681
|
i.src = n, await i.decode();
|
|
38679
38682
|
const a = document.createElement("canvas");
|
|
@@ -38741,7 +38744,7 @@ class Al extends nr {
|
|
|
38741
38744
|
this.iframe && (this.iframe.style.left = `${A1}px`);
|
|
38742
38745
|
}
|
|
38743
38746
|
seekHarness(e) {
|
|
38744
|
-
const r = this.harnessWindow, n = r?.[
|
|
38747
|
+
const r = this.harnessWindow, n = r?.[bL];
|
|
38745
38748
|
if (typeof n == "function")
|
|
38746
38749
|
try {
|
|
38747
38750
|
n.call(r, e * 1e3);
|
|
@@ -38850,7 +38853,7 @@ ${e.stack}` : e), this.recordLoadError(e), this.emitCaptureFailed(e, "static-pla
|
|
|
38850
38853
|
}
|
|
38851
38854
|
async runCapture() {
|
|
38852
38855
|
if (!this.iframe || !this.iframe.contentDocument || !this.iframe.contentWindow || !this.contentHash) return null;
|
|
38853
|
-
const e = this.contentHash, r = () => this.disposed || this.contentHash !== e, n = await
|
|
38856
|
+
const e = this.contentHash, r = () => this.disposed || this.contentHash !== e, n = await pL(e);
|
|
38854
38857
|
if (r()) return null;
|
|
38855
38858
|
if (n)
|
|
38856
38859
|
return this.captureFramesTotal = n.frameCount, this.captureFramesDone = n.frameCount, this.captureFps = n.fps, this.capturedFrames = n.pngs, this.capturedHash = e, this.emitCaptureCompleted(n.frameCount), n.pngs;
|
|
@@ -38873,13 +38876,13 @@ ${e.stack}` : e), this.recordLoadError(e), this.emitCaptureFailed(e, "static-pla
|
|
|
38873
38876
|
if (await $0(), r()) return null;
|
|
38874
38877
|
const h = [];
|
|
38875
38878
|
for (let m = c; m < Math.min(c + k1, a); m += 1)
|
|
38876
|
-
this.seekHarness(m / s),
|
|
38879
|
+
this.seekHarness(m / s), wL(this.iframe.contentDocument.body), h.push(_L(this.captureIframeAsForeignObjectSvg(o, u), o, u));
|
|
38877
38880
|
const d = await Promise.all(h);
|
|
38878
38881
|
if (r()) return null;
|
|
38879
38882
|
for (const m of d)
|
|
38880
38883
|
this.captureFramesDone += 1, l.push(new Blob([m], { type: "image/webp" }));
|
|
38881
38884
|
}
|
|
38882
|
-
return this.capturedFrames = l, this.capturedHash = e, this.emitCaptureCompleted(a),
|
|
38885
|
+
return this.capturedFrames = l, this.capturedHash = e, this.emitCaptureCompleted(a), mL(e, {
|
|
38883
38886
|
pngs: l,
|
|
38884
38887
|
fps: s,
|
|
38885
38888
|
frameCount: a,
|
|
@@ -38920,7 +38923,7 @@ ${e.stack}` : e), this.recordLoadError(e), this.emitCaptureFailed(e, "static-pla
|
|
|
38920
38923
|
return this.disposed ? (a.destroy(!0), null) : (this.decodedFrames.set(e, a), this.evictDecodedOverflow(e), a);
|
|
38921
38924
|
}
|
|
38922
38925
|
evictDecodedOverflow(e) {
|
|
38923
|
-
for (; this.decodedFrames.size >
|
|
38926
|
+
for (; this.decodedFrames.size > vL; ) {
|
|
38924
38927
|
let r;
|
|
38925
38928
|
for (const n of this.decodedFrames.keys())
|
|
38926
38929
|
if (n !== e && n !== this.lastFrameIdx) {
|
|
@@ -39018,7 +39021,7 @@ ${e.stack}` : e), this.recordLoadError(e), this.emitCaptureFailed(e, "static-pla
|
|
|
39018
39021
|
}
|
|
39019
39022
|
mountLoadingGraphic() {
|
|
39020
39023
|
if (this.loadingGraphic) return;
|
|
39021
|
-
const e = this.renderedWidth || this.edit.size.width, r = this.renderedHeight || this.edit.size.height, { container: n, setProgress: i } =
|
|
39024
|
+
const e = this.renderedWidth || this.edit.size.width, r = this.renderedHeight || this.edit.size.height, { container: n, setProgress: i } = gL(e, r);
|
|
39022
39025
|
this.loadingGraphic = n, this.loadingSetProgress = i, this.contentContainer.addChild(n), this.clipConfiguration.width && this.clipConfiguration.height && this.applyFixedDimensions();
|
|
39023
39026
|
}
|
|
39024
39027
|
removeLoadingGraphic() {
|
|
@@ -39075,7 +39078,7 @@ ${e.stack}` : e), this.recordLoadError(e), this.emitCaptureFailed(e, "static-pla
|
|
|
39075
39078
|
onDimensionsChanged() {
|
|
39076
39079
|
}
|
|
39077
39080
|
}
|
|
39078
|
-
class
|
|
39081
|
+
class xL extends nr {
|
|
39079
39082
|
texture;
|
|
39080
39083
|
sprite;
|
|
39081
39084
|
placeholder;
|
|
@@ -39144,18 +39147,18 @@ class _L extends nr {
|
|
|
39144
39147
|
return new st.Texture({ source: e.source, frame: m });
|
|
39145
39148
|
}
|
|
39146
39149
|
}
|
|
39147
|
-
const
|
|
39150
|
+
const DL = {
|
|
39148
39151
|
image: "M20.7134 8.12811L20.4668 8.69379C20.2864 9.10792 19.7136 9.10792 19.5331 8.69379L19.2866 8.12811C18.8471 7.11947 18.0555 6.31641 17.0677 5.87708L16.308 5.53922C15.8973 5.35653 15.8973 4.75881 16.308 4.57612L17.0252 4.25714C18.0384 3.80651 18.8442 2.97373 19.2761 1.93083L19.5293 1.31953C19.7058 0.893489 20.2942 0.893489 20.4706 1.31953L20.7238 1.93083C21.1558 2.97373 21.9616 3.80651 22.9748 4.25714L23.6919 4.57612C24.1027 4.75881 24.1027 5.35653 23.6919 5.53922L22.9323 5.87708C21.9445 6.31641 21.1529 7.11947 20.7134 8.12811ZM2.9918 3H14V5H4V19L13.2923 9.70649C13.6828 9.31595 14.3159 9.31591 14.7065 9.70641L20 15.0104V11H22V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z",
|
|
39149
39152
|
video: "M19.7134 8.12811L19.4668 8.69379C19.2864 9.10792 18.7136 9.10792 18.5331 8.69379L18.2866 8.12811C17.8471 7.11947 17.0555 6.31641 16.0677 5.87708L15.308 5.53922C14.8973 5.35653 14.8973 4.75881 15.308 4.57612L16.0252 4.25714C17.0384 3.80651 17.8442 2.97373 18.2761 1.93083L18.5293 1.31953C18.7058 0.893489 19.2942 0.893489 19.4706 1.31953L19.7238 1.93083C20.1558 2.97373 20.9616 3.80651 21.9748 4.25714L22.6919 4.57612C23.1027 4.75881 23.1027 5.35653 22.6919 5.53922L21.9323 5.87708C20.9445 6.31641 20.1529 7.11947 19.7134 8.12811ZM19 11C19.7013 11 20.3744 10.8797 21 10.6586V20.0066C21 20.5552 20.5551 21 20.0066 21H3.9934C3.44476 21 3 20.5551 3 20.0066V3.9934C3 3.44476 3.44495 3 3.9934 3H13.3414C13.1203 3.62556 13 4.29873 13 5C13 8.31371 15.6863 11 19 11ZM10.6219 8.41459C10.5562 8.37078 10.479 8.34741 10.4 8.34741C10.1791 8.34741 10 8.52649 10 8.74741V15.2526C10 15.3316 10.0234 15.4088 10.0672 15.4745C10.1897 15.6583 10.4381 15.708 10.6219 15.5854L15.5008 12.3328C15.5447 12.3035 15.5824 12.2658 15.6117 12.2219C15.7343 12.0381 15.6846 11.7897 15.5008 11.6672L10.6219 8.41459Z",
|
|
39150
39153
|
mic: "M20.4668 7.69379L20.7134 7.12811C21.1529 6.11947 21.9445 5.31641 22.9323 4.87708L23.6919 4.53922C24.1027 4.35653 24.1027 3.75881 23.6919 3.57612L22.9748 3.25714C21.9616 2.80651 21.1558 1.97373 20.7238 0.930828L20.4706 0.319534C20.2942 -0.106511 19.7058 -0.106511 19.5293 0.319534L19.2761 0.930828C18.8442 1.97373 18.0384 2.80651 17.0252 3.25714L16.308 3.57612C15.8973 3.75881 15.8973 4.35653 16.308 4.53922L17.0677 4.87708C18.0555 5.31641 18.8471 6.11947 19.2866 7.12811L19.5331 7.69379C19.7136 8.10792 20.2864 8.10792 20.4668 7.69379ZM14.3869 5.33879C14.661 5.77254 15.0357 6.09305 15.5111 6.30032L16.0764 6.54679C16.4565 6.71249 16.7643 6.94524 16.9998 7.24503V10C16.9998 12.7614 14.7612 15 11.9998 15C9.23833 15 6.99976 12.7614 6.99976 10V6C6.99976 3.23858 9.23833 1 11.9998 1C13.1238 1 14.1613 1.37094 14.9964 1.99709C14.7563 2.17678 14.5531 2.39813 14.3869 2.66114C14.129 3.06938 14 3.51566 14 3.99997C14 4.48428 14.129 4.93056 14.3869 5.33879ZM3.05469 11H5.07065C5.55588 14.3923 8.47329 17 11.9998 17C15.5262 17 18.4436 14.3923 18.9289 11H20.9448C20.4837 15.1716 17.1714 18.4839 12.9998 18.9451V23H10.9998V18.9451C6.82814 18.4839 3.51584 15.1716 3.05469 11Z"
|
|
39151
39154
|
};
|
|
39152
|
-
function
|
|
39155
|
+
function CL(t, e, r, n) {
|
|
39153
39156
|
let i = 0;
|
|
39154
39157
|
for (const [a, s, o] of n)
|
|
39155
39158
|
i += Math.sin(t * a + e * o + r) * s;
|
|
39156
39159
|
return i;
|
|
39157
39160
|
}
|
|
39158
|
-
function
|
|
39161
|
+
function EL(t) {
|
|
39159
39162
|
if (t === void 0)
|
|
39160
39163
|
return [
|
|
39161
39164
|
{
|
|
@@ -39295,7 +39298,7 @@ function CL(t) {
|
|
|
39295
39298
|
}
|
|
39296
39299
|
];
|
|
39297
39300
|
}
|
|
39298
|
-
const Hf = 64, fr = 72, S1 = 42,
|
|
39301
|
+
const Hf = 64, fr = 72, S1 = 42, AL = 1.4, ku = Math.PI / 8, zs = Math.PI * 1.5, kL = 10;
|
|
39299
39302
|
class V_ {
|
|
39300
39303
|
constructor(e) {
|
|
39301
39304
|
this.options = e, this.container = new st.Container(), this.build(), this.startAnimation();
|
|
@@ -39338,7 +39341,7 @@ class V_ {
|
|
|
39338
39341
|
const e = (r) => {
|
|
39339
39342
|
if (this.lastTime !== null) {
|
|
39340
39343
|
const n = (r - this.lastTime) / 1e3;
|
|
39341
|
-
this.time += n, this.generating && (this.generationElapsed += n, !this.stillGenerating && this.generationElapsed >=
|
|
39344
|
+
this.time += n, this.generating && (this.generationElapsed += n, !this.stillGenerating && this.generationElapsed >= kL && (this.stillGenerating = !0, this.generationStatusText && (this.generationStatusText.text = "Still generating…"))), this.drawAurora(), this.drawProgressRing();
|
|
39342
39345
|
}
|
|
39343
39346
|
this.lastTime = r, this.rafId = requestAnimationFrame(e);
|
|
39344
39347
|
};
|
|
@@ -39356,7 +39359,7 @@ class V_ {
|
|
|
39356
39359
|
const o = new st.Graphics();
|
|
39357
39360
|
o.rect(0, 0, r, n), o.fill({ color: "#000000", alpha: 0.25 }), this.container.addChild(o);
|
|
39358
39361
|
}
|
|
39359
|
-
this.auroraLayer = new st.Container(), this.layers =
|
|
39362
|
+
this.auroraLayer = new st.Container(), this.layers = EL(this.options.assetNumber).map((o) => {
|
|
39360
39363
|
const u = new st.Graphics();
|
|
39361
39364
|
return this.auroraLayer.addChild(u), { ...o, graphics: u };
|
|
39362
39365
|
});
|
|
@@ -39374,14 +39377,14 @@ class V_ {
|
|
|
39374
39377
|
a.graphics.clear();
|
|
39375
39378
|
const s = Math.sin(n * 0.3 + a.phase * 1.7) * 0.5 + 0.5, o = a.baseAlpha * (0.7 + 0.3 * s), u = n * a.scrollSpeed;
|
|
39376
39379
|
for (let l = 0; l < Hf; l += 1) {
|
|
39377
|
-
const h = l / Hf * Math.PI * 2 + u, d =
|
|
39380
|
+
const h = l / Hf * Math.PI * 2 + u, d = CL(h, n, a.phase, a.waves), m = (a.baseY + d) * r, y = 0.6 + 0.4 * Math.sin(h * 3.7 + n * 0.2 + a.phase * 2.3), v = a.rayHeight * r * y, b = 0.4 + 0.6 * (Math.sin(h * 5 + n * 0.15 + a.phase * 3.1) * 0.5 + 0.5) ** 0.7, D = o * b, B = l * i;
|
|
39378
39381
|
a.graphics.rect(B, m, i + 1, v), a.graphics.fill({ color: a.color, alpha: D });
|
|
39379
39382
|
}
|
|
39380
39383
|
}
|
|
39381
39384
|
}
|
|
39382
39385
|
drawProgressRing() {
|
|
39383
39386
|
if (!this.progressRing) return;
|
|
39384
|
-
const e = this.time /
|
|
39387
|
+
const e = this.time / AL, r = e % 1, n = r < 0.5 ? r * 2 : (r - 0.5) * 2, i = (1 - Math.cos(n * Math.PI)) / 2, a = r < 0.5 ? ku + (zs - ku) * i : zs - (zs - ku) * i, s = Math.floor(e) * (zs - ku), o = r < 0.5 ? 0 : zs - a, u = this.time * 0.6 + s + o;
|
|
39385
39388
|
this.progressRing.clear(), this.progressRing.arc(0, 0, fr / 2 + 6, u, u + a), this.progressRing.stroke({ color: "#C084FC", width: 4, cap: "round" });
|
|
39386
39389
|
}
|
|
39387
39390
|
buildBadge() {
|
|
@@ -39395,7 +39398,7 @@ class V_ {
|
|
|
39395
39398
|
m.position.set(fr / 2, fr / 2), o.addChild(m), this.progressRing = m, this.drawProgressRing();
|
|
39396
39399
|
}
|
|
39397
39400
|
const l = new st.Graphics();
|
|
39398
|
-
l.svg(`<svg viewBox="0 0 24 24"><path d="${
|
|
39401
|
+
l.svg(`<svg viewBox="0 0 24 24"><path d="${DL[n]}" fill="#C084FC" /></svg>`);
|
|
39399
39402
|
const c = S1 / 24, h = (fr - S1) / 2;
|
|
39400
39403
|
if (l.scale.set(c, c), l.position.set(h, h), o.addChild(l), i !== void 0) {
|
|
39401
39404
|
const d = s ? jx(s) : "", m = d ? `${d} ${i}` : String(i), y = new st.Text({
|
|
@@ -39501,7 +39504,7 @@ class F1 extends nr {
|
|
|
39501
39504
|
}
|
|
39502
39505
|
}
|
|
39503
39506
|
}
|
|
39504
|
-
class
|
|
39507
|
+
class SL extends nr {
|
|
39505
39508
|
texture;
|
|
39506
39509
|
sprite;
|
|
39507
39510
|
isPlaying;
|
|
@@ -39549,7 +39552,7 @@ const kl = (t) => {
|
|
|
39549
39552
|
full: r,
|
|
39550
39553
|
base: n
|
|
39551
39554
|
};
|
|
39552
|
-
}, R_ = (t) => t.includes("fonts.gstatic.com"),
|
|
39555
|
+
}, R_ = (t) => t.includes("fonts.gstatic.com"), FL = x({
|
|
39553
39556
|
color: f(p()),
|
|
39554
39557
|
opacity: f(w([F((t) => {
|
|
39555
39558
|
if (!(t === "" || t === null || t === void 0))
|
|
@@ -39563,7 +39566,7 @@ const kl = (t) => {
|
|
|
39563
39566
|
if (!(t === "" || t === null || t === void 0))
|
|
39564
39567
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
39565
39568
|
}, S().int()), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
39566
|
-
}).strict(),
|
|
39569
|
+
}).strict(), BL = x({
|
|
39567
39570
|
family: f(p()),
|
|
39568
39571
|
color: f(p()),
|
|
39569
39572
|
opacity: f(w([F((t) => {
|
|
@@ -39583,7 +39586,7 @@ const kl = (t) => {
|
|
|
39583
39586
|
if (!(t === "" || t === null || t === void 0))
|
|
39584
39587
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
39585
39588
|
}, S()), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
39586
|
-
}).strict(),
|
|
39589
|
+
}).strict(), IL = x({
|
|
39587
39590
|
top: f(w([F((t) => {
|
|
39588
39591
|
if (!(t === "" || t === null || t === void 0))
|
|
39589
39592
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
@@ -39596,12 +39599,12 @@ const kl = (t) => {
|
|
|
39596
39599
|
if (!(t === "" || t === null || t === void 0))
|
|
39597
39600
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
39598
39601
|
}, S()), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
39599
|
-
}).strict(),
|
|
39602
|
+
}).strict(), PL = x({
|
|
39600
39603
|
type: R(["caption"]),
|
|
39601
39604
|
src: p().min(1).regex(/\S/),
|
|
39602
|
-
font: f(
|
|
39603
|
-
background: f(
|
|
39604
|
-
margin: f(
|
|
39605
|
+
font: f(BL),
|
|
39606
|
+
background: f(FL),
|
|
39607
|
+
margin: f(IL),
|
|
39605
39608
|
trim: f(w([F((t) => {
|
|
39606
39609
|
if (!(t === "" || t === null || t === void 0))
|
|
39607
39610
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
@@ -39610,7 +39613,7 @@ const kl = (t) => {
|
|
|
39610
39613
|
if (!(t === "" || t === null || t === void 0))
|
|
39611
39614
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
39612
39615
|
}, S().gte(0).lte(10)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
39613
|
-
}).strict(),
|
|
39616
|
+
}).strict(), NL = x({
|
|
39614
39617
|
color: w([p().regex(/^#[0-9a-fA-F]{6}$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
39615
39618
|
threshold: f(w([F((t) => {
|
|
39616
39619
|
if (!(t === "" || t === null || t === void 0))
|
|
@@ -39637,7 +39640,7 @@ const kl = (t) => {
|
|
|
39637
39640
|
if (!(t === "" || t === null || t === void 0))
|
|
39638
39641
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
39639
39642
|
}, S().gte(0).lte(1)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
39640
|
-
}).strict(),
|
|
39643
|
+
}).strict(), TL = x({
|
|
39641
39644
|
host: p(),
|
|
39642
39645
|
cpCode: p(),
|
|
39643
39646
|
path: f(w([
|
|
@@ -39648,10 +39651,10 @@ const kl = (t) => {
|
|
|
39648
39651
|
p(),
|
|
39649
39652
|
ri()
|
|
39650
39653
|
]))
|
|
39651
|
-
}).strict(), TL = x({
|
|
39652
|
-
provider: Ct("akamai-netstorage"),
|
|
39653
|
-
options: f(NL)
|
|
39654
39654
|
}).strict(), ML = x({
|
|
39655
|
+
provider: Ct("akamai-netstorage"),
|
|
39656
|
+
options: f(TL)
|
|
39657
|
+
}).strict(), zL = x({
|
|
39655
39658
|
accountName: p(),
|
|
39656
39659
|
container: p(),
|
|
39657
39660
|
prefix: f(w([
|
|
@@ -39662,41 +39665,41 @@ const kl = (t) => {
|
|
|
39662
39665
|
p(),
|
|
39663
39666
|
ri()
|
|
39664
39667
|
]))
|
|
39665
|
-
}).strict(), zL = x({
|
|
39666
|
-
provider: Ct("azure-blob-storage"),
|
|
39667
|
-
options: f(ML)
|
|
39668
39668
|
}).strict(), VL = x({
|
|
39669
|
+
provider: Ct("azure-blob-storage"),
|
|
39670
|
+
options: f(zL)
|
|
39671
|
+
}).strict(), OL = x({
|
|
39669
39672
|
bucket: p(),
|
|
39670
39673
|
prefix: f(p()),
|
|
39671
39674
|
filename: f(p())
|
|
39672
|
-
}).strict(), OL = x({
|
|
39673
|
-
provider: Ct("google-cloud-storage"),
|
|
39674
|
-
options: f(VL)
|
|
39675
39675
|
}).strict(), RL = x({
|
|
39676
|
+
provider: Ct("google-cloud-storage"),
|
|
39677
|
+
options: f(OL)
|
|
39678
|
+
}).strict(), LL = x({
|
|
39676
39679
|
folderId: f(p()),
|
|
39677
39680
|
filename: f(p())
|
|
39678
|
-
}).strict(), LL = x({
|
|
39679
|
-
provider: Ct("google-drive"),
|
|
39680
|
-
options: f(RL)
|
|
39681
39681
|
}).strict(), $L = x({
|
|
39682
|
+
provider: Ct("google-drive"),
|
|
39683
|
+
options: f(LL)
|
|
39684
|
+
}).strict(), ZL = x({
|
|
39682
39685
|
playbackPolicy: f(Tt(R(["public", "signed"]))),
|
|
39683
39686
|
passthrough: f(p().max(255))
|
|
39684
|
-
}).strict(), ZL = x({
|
|
39685
|
-
provider: Ct("mux"),
|
|
39686
|
-
options: f($L)
|
|
39687
39687
|
}).strict(), UL = x({
|
|
39688
|
+
provider: Ct("mux"),
|
|
39689
|
+
options: f(ZL)
|
|
39690
|
+
}).strict(), jL = x({
|
|
39688
39691
|
region: p(),
|
|
39689
39692
|
bucket: p(),
|
|
39690
39693
|
prefix: f(p()),
|
|
39691
39694
|
filename: f(p()),
|
|
39692
39695
|
acl: f(p())
|
|
39693
|
-
}).strict(), jL = x({
|
|
39694
|
-
provider: Ct("s3"),
|
|
39695
|
-
options: f(UL)
|
|
39696
39696
|
}).strict(), GL = x({
|
|
39697
|
+
provider: Ct("s3"),
|
|
39698
|
+
options: f(jL)
|
|
39699
|
+
}).strict(), WL = x({
|
|
39697
39700
|
provider: Ct("shotstack"),
|
|
39698
39701
|
exclude: f(zt())
|
|
39699
|
-
}).strict(),
|
|
39702
|
+
}).strict(), HL = x({
|
|
39700
39703
|
title: f(p().max(150)),
|
|
39701
39704
|
privacyLevel: f(R([
|
|
39702
39705
|
"public",
|
|
@@ -39706,10 +39709,10 @@ const kl = (t) => {
|
|
|
39706
39709
|
disableDuet: f(zt()).default(!1),
|
|
39707
39710
|
disableStitch: f(zt()).default(!1),
|
|
39708
39711
|
disableComment: f(zt()).default(!1)
|
|
39709
|
-
}).strict(), HL = x({
|
|
39710
|
-
provider: Ct("tiktok"),
|
|
39711
|
-
options: f(WL)
|
|
39712
39712
|
}).strict(), YL = x({
|
|
39713
|
+
provider: Ct("tiktok"),
|
|
39714
|
+
options: f(HL)
|
|
39715
|
+
}).strict(), qL = x({
|
|
39713
39716
|
view: f(R([
|
|
39714
39717
|
"anybody",
|
|
39715
39718
|
"nobody",
|
|
@@ -39729,30 +39732,30 @@ const kl = (t) => {
|
|
|
39729
39732
|
])),
|
|
39730
39733
|
download: f(zt()),
|
|
39731
39734
|
add: f(zt())
|
|
39732
|
-
}).strict(),
|
|
39735
|
+
}).strict(), XL = x({
|
|
39733
39736
|
name: f(p()),
|
|
39734
39737
|
description: f(p()),
|
|
39735
|
-
privacy: f(
|
|
39738
|
+
privacy: f(qL),
|
|
39736
39739
|
folderUri: f(p())
|
|
39737
|
-
}).strict(),
|
|
39740
|
+
}).strict(), KL = x({
|
|
39738
39741
|
provider: Ct("vimeo"),
|
|
39739
|
-
options: f(
|
|
39742
|
+
options: f(XL)
|
|
39740
39743
|
}).strict(), Gc = Ol("provider", [
|
|
39744
|
+
WL,
|
|
39745
|
+
UL,
|
|
39741
39746
|
GL,
|
|
39742
|
-
|
|
39743
|
-
|
|
39744
|
-
|
|
39745
|
-
|
|
39746
|
-
|
|
39747
|
-
|
|
39748
|
-
|
|
39749
|
-
zL
|
|
39750
|
-
]), KL = Gc, JL = x({
|
|
39747
|
+
RL,
|
|
39748
|
+
$L,
|
|
39749
|
+
KL,
|
|
39750
|
+
YL,
|
|
39751
|
+
ML,
|
|
39752
|
+
VL
|
|
39753
|
+
]), JL = Gc, QL = x({
|
|
39751
39754
|
horizontal: f(zt()),
|
|
39752
39755
|
vertical: f(zt())
|
|
39753
|
-
}).strict(), QL = x({
|
|
39754
|
-
src: p()
|
|
39755
39756
|
}).strict(), t$ = x({
|
|
39757
|
+
src: p()
|
|
39758
|
+
}).strict(), e$ = x({
|
|
39756
39759
|
type: R([
|
|
39757
39760
|
"image",
|
|
39758
39761
|
"video",
|
|
@@ -39761,7 +39764,7 @@ const kl = (t) => {
|
|
|
39761
39764
|
prompt: p().min(1).max(4e3).regex(/\S/),
|
|
39762
39765
|
model: f(p()),
|
|
39763
39766
|
options: f(Ri(p(), Pe()))
|
|
39764
|
-
}).strict(),
|
|
39767
|
+
}).strict(), r$ = x({
|
|
39765
39768
|
model: p(),
|
|
39766
39769
|
type: R([
|
|
39767
39770
|
"image",
|
|
@@ -39778,17 +39781,17 @@ const kl = (t) => {
|
|
|
39778
39781
|
"AiAccessUnavailable"
|
|
39779
39782
|
]))
|
|
39780
39783
|
}).strict(), L_ = x({
|
|
39781
|
-
asset:
|
|
39784
|
+
asset: e$,
|
|
39782
39785
|
length: f(w([F((t) => {
|
|
39783
39786
|
if (!(t === "" || t === null || t === void 0))
|
|
39784
39787
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
39785
39788
|
}, S().gt(0)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
39786
|
-
}).strict(),
|
|
39789
|
+
}).strict(), i$ = x({
|
|
39787
39790
|
type: R(["html5"]),
|
|
39788
39791
|
html: p().max(1e6),
|
|
39789
39792
|
css: f(p().max(5e5)),
|
|
39790
39793
|
js: f(p().max(5e5))
|
|
39791
|
-
}).strict(),
|
|
39794
|
+
}).strict(), n$ = x({
|
|
39792
39795
|
type: R(["html"]),
|
|
39793
39796
|
html: p(),
|
|
39794
39797
|
css: f(p()),
|
|
@@ -39812,7 +39815,7 @@ const kl = (t) => {
|
|
|
39812
39815
|
"topLeft",
|
|
39813
39816
|
"center"
|
|
39814
39817
|
]))
|
|
39815
|
-
}).strict(),
|
|
39818
|
+
}).strict(), a$ = x({
|
|
39816
39819
|
type: R(["image"]),
|
|
39817
39820
|
src: f(p().min(1).regex(/\S/)),
|
|
39818
39821
|
prompt: f(p().max(4e3)),
|
|
@@ -39826,7 +39829,7 @@ const kl = (t) => {
|
|
|
39826
39829
|
message: 'A media asset requires either "src" (a source URL) or "prompt" (to generate the asset). Provide one.',
|
|
39827
39830
|
path: ["src"]
|
|
39828
39831
|
});
|
|
39829
|
-
}),
|
|
39832
|
+
}), s$ = x({
|
|
39830
39833
|
type: R(["image-to-video"]),
|
|
39831
39834
|
src: p().min(1),
|
|
39832
39835
|
prompt: f(p()),
|
|
@@ -39844,7 +39847,7 @@ const kl = (t) => {
|
|
|
39844
39847
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
39845
39848
|
}, S().gte(0).lte(10)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
39846
39849
|
crop: f(jc)
|
|
39847
|
-
}).strict(),
|
|
39850
|
+
}).strict(), o$ = x({
|
|
39848
39851
|
preset: R([
|
|
39849
39852
|
"conference",
|
|
39850
39853
|
"interview",
|
|
@@ -39856,49 +39859,49 @@ const kl = (t) => {
|
|
|
39856
39859
|
"studio",
|
|
39857
39860
|
"voice_over"
|
|
39858
39861
|
])
|
|
39859
|
-
}).strict(), o$ = x({
|
|
39860
|
-
provider: p().default("dolby"),
|
|
39861
|
-
options: s$
|
|
39862
39862
|
}).strict(), u$ = x({
|
|
39863
|
+
provider: p().default("dolby"),
|
|
39864
|
+
options: o$
|
|
39865
|
+
}).strict(), l$ = x({
|
|
39863
39866
|
enhancement: Ct("dolbyEnhancement_DolbyEnhancement")
|
|
39864
|
-
}).strict().and(
|
|
39865
|
-
audio: f(
|
|
39866
|
-
}).strict(),
|
|
39867
|
+
}).strict().and(u$), c$ = x({
|
|
39868
|
+
audio: f(l$)
|
|
39869
|
+
}).strict(), f$ = x({
|
|
39867
39870
|
status: p(),
|
|
39868
39871
|
title: p(),
|
|
39869
39872
|
detail: p()
|
|
39870
39873
|
}).strict();
|
|
39871
39874
|
x({
|
|
39872
|
-
errors: Tt(
|
|
39875
|
+
errors: Tt(f$)
|
|
39873
39876
|
}).strict();
|
|
39874
|
-
const
|
|
39877
|
+
const h$ = x({
|
|
39875
39878
|
type: p(),
|
|
39876
39879
|
id: p()
|
|
39877
39880
|
}).strict();
|
|
39878
39881
|
x({
|
|
39879
|
-
data:
|
|
39882
|
+
data: h$
|
|
39880
39883
|
}).strict();
|
|
39881
|
-
const
|
|
39884
|
+
const d$ = x({
|
|
39882
39885
|
id: p(),
|
|
39883
39886
|
url: p(),
|
|
39884
39887
|
expires: p()
|
|
39885
|
-
}).strict(),
|
|
39888
|
+
}).strict(), p$ = x({
|
|
39886
39889
|
type: p(),
|
|
39887
39890
|
id: p(),
|
|
39888
|
-
attributes:
|
|
39891
|
+
attributes: d$
|
|
39889
39892
|
}).strict();
|
|
39890
39893
|
x({
|
|
39891
|
-
data:
|
|
39894
|
+
data: p$
|
|
39892
39895
|
}).strict();
|
|
39893
|
-
const
|
|
39896
|
+
const m$ = x({
|
|
39894
39897
|
speed: f(w([F((t) => {
|
|
39895
39898
|
if (!(t === "" || t === null || t === void 0))
|
|
39896
39899
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
39897
39900
|
}, S().gte(0).lte(10)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
39898
39901
|
preservePitch: f(zt())
|
|
39899
|
-
}).strict(), m$ = x({
|
|
39900
|
-
format: f(R(["srt", "vtt"]))
|
|
39901
39902
|
}).strict(), g$ = x({
|
|
39903
|
+
format: f(R(["srt", "vtt"]))
|
|
39904
|
+
}).strict(), y$ = x({
|
|
39902
39905
|
type: R(["luma"]),
|
|
39903
39906
|
src: p().min(1).regex(/\S/),
|
|
39904
39907
|
trim: f(w([F((t) => {
|
|
@@ -39908,12 +39911,12 @@ const p$ = x({
|
|
|
39908
39911
|
}).strict(), $_ = x({
|
|
39909
39912
|
find: p(),
|
|
39910
39913
|
replace: Pe()
|
|
39911
|
-
}).strict(),
|
|
39914
|
+
}).strict(), v$ = x({
|
|
39912
39915
|
capture: w([F((t) => {
|
|
39913
39916
|
if (!(t === "" || t === null || t === void 0))
|
|
39914
39917
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
39915
39918
|
}, S()), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
39916
|
-
}).strict(),
|
|
39919
|
+
}).strict(), b$ = x({
|
|
39917
39920
|
start: f(w([F((t) => {
|
|
39918
39921
|
if (!(t === "" || t === null || t === void 0))
|
|
39919
39922
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
@@ -39922,7 +39925,7 @@ const p$ = x({
|
|
|
39922
39925
|
if (!(t === "" || t === null || t === void 0))
|
|
39923
39926
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
39924
39927
|
}, S().gte(0)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
39925
|
-
}).strict(),
|
|
39928
|
+
}).strict(), w$ = x({
|
|
39926
39929
|
id: p(),
|
|
39927
39930
|
owner: p(),
|
|
39928
39931
|
region: f(p()),
|
|
@@ -39940,7 +39943,7 @@ const p$ = x({
|
|
|
39940
39943
|
updated: f(p())
|
|
39941
39944
|
}).strict(), Z_ = x({
|
|
39942
39945
|
type: p(),
|
|
39943
|
-
attributes:
|
|
39946
|
+
attributes: w$
|
|
39944
39947
|
}).strict();
|
|
39945
39948
|
x({
|
|
39946
39949
|
data: Tt(Z_)
|
|
@@ -39963,7 +39966,7 @@ x({
|
|
|
39963
39966
|
})
|
|
39964
39967
|
}).strict();
|
|
39965
39968
|
x({
|
|
39966
|
-
models: Tt(
|
|
39969
|
+
models: Tt(r$)
|
|
39967
39970
|
}).strict();
|
|
39968
39971
|
x({
|
|
39969
39972
|
credits: w([F((t) => {
|
|
@@ -39988,39 +39991,39 @@ x({
|
|
|
39988
39991
|
message: p(),
|
|
39989
39992
|
response: Ri(p(), Pe())
|
|
39990
39993
|
}).strict();
|
|
39991
|
-
const
|
|
39994
|
+
const _$ = x({
|
|
39992
39995
|
message: p(),
|
|
39993
39996
|
id: p()
|
|
39994
39997
|
}).strict();
|
|
39995
39998
|
x({
|
|
39996
39999
|
success: zt(),
|
|
39997
40000
|
message: p(),
|
|
39998
|
-
response:
|
|
40001
|
+
response: _$
|
|
39999
40002
|
}).strict();
|
|
40000
|
-
const
|
|
40003
|
+
const x$ = x({
|
|
40001
40004
|
id: p(),
|
|
40002
40005
|
name: p(),
|
|
40003
40006
|
created: f(p()),
|
|
40004
40007
|
updated: f(p())
|
|
40005
|
-
}).strict(),
|
|
40008
|
+
}).strict(), D$ = x({
|
|
40006
40009
|
owner: p(),
|
|
40007
|
-
templates: Tt(
|
|
40010
|
+
templates: Tt(x$)
|
|
40008
40011
|
}).strict();
|
|
40009
40012
|
x({
|
|
40010
40013
|
success: zt(),
|
|
40011
40014
|
message: p(),
|
|
40012
|
-
response:
|
|
40015
|
+
response: D$
|
|
40013
40016
|
}).strict();
|
|
40014
|
-
const
|
|
40017
|
+
const C$ = x({
|
|
40015
40018
|
message: p(),
|
|
40016
40019
|
id: p()
|
|
40017
40020
|
}).strict();
|
|
40018
40021
|
x({
|
|
40019
40022
|
success: zt(),
|
|
40020
40023
|
message: p(),
|
|
40021
|
-
response:
|
|
40024
|
+
response: C$
|
|
40022
40025
|
}).strict();
|
|
40023
|
-
const
|
|
40026
|
+
const E$ = x({
|
|
40024
40027
|
family: f(p()),
|
|
40025
40028
|
weight: f(Pe()).default("400"),
|
|
40026
40029
|
color: f(w([p().regex(/^#[A-Fa-f0-9]{6}$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
@@ -40038,7 +40041,7 @@ const C$ = x({
|
|
|
40038
40041
|
"underline",
|
|
40039
40042
|
"line-through"
|
|
40040
40043
|
]))
|
|
40041
|
-
}).strict(),
|
|
40044
|
+
}).strict(), A$ = x({
|
|
40042
40045
|
style: R([
|
|
40043
40046
|
"karaoke",
|
|
40044
40047
|
"highlight",
|
|
@@ -40055,7 +40058,7 @@ const C$ = x({
|
|
|
40055
40058
|
"up",
|
|
40056
40059
|
"down"
|
|
40057
40060
|
]))
|
|
40058
|
-
}).strict(),
|
|
40061
|
+
}).strict(), k$ = x({
|
|
40059
40062
|
family: f(p()).default("Roboto"),
|
|
40060
40063
|
size: f(w([F((t) => {
|
|
40061
40064
|
if (!(t === "" || t === null || t === void 0))
|
|
@@ -40080,7 +40083,7 @@ const C$ = x({
|
|
|
40080
40083
|
"middle",
|
|
40081
40084
|
"bottom"
|
|
40082
40085
|
]))
|
|
40083
|
-
}).strict(),
|
|
40086
|
+
}).strict(), S$ = x({
|
|
40084
40087
|
preset: R([
|
|
40085
40088
|
"fadeIn",
|
|
40086
40089
|
"slideIn",
|
|
@@ -40142,7 +40145,7 @@ const C$ = x({
|
|
|
40142
40145
|
}, S().gte(0).lte(1)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
40143
40146
|
color: w([p().regex(/^#[A-Fa-f0-9]{6}$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
|
|
40144
40147
|
})).min(2)
|
|
40145
|
-
}).strict(),
|
|
40148
|
+
}).strict(), F$ = x({
|
|
40146
40149
|
letterSpacing: f(w([F((t) => {
|
|
40147
40150
|
if (!(t === "" || t === null || t === void 0))
|
|
40148
40151
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
@@ -40212,8 +40215,8 @@ const C$ = x({
|
|
|
40212
40215
|
if (!(t === "" || t === null || t === void 0))
|
|
40213
40216
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
40214
40217
|
}, S().gte(0).lte(1)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
|
|
40215
|
-
}).strict(),
|
|
40216
|
-
font: f(
|
|
40218
|
+
}).strict(), B$ = x({
|
|
40219
|
+
font: f(E$),
|
|
40217
40220
|
stroke: f(w([
|
|
40218
40221
|
Wc,
|
|
40219
40222
|
R(["none"])
|
|
@@ -40225,8 +40228,8 @@ const C$ = x({
|
|
|
40225
40228
|
}).strict(), Y_ = x({
|
|
40226
40229
|
type: R(["rich-caption"]),
|
|
40227
40230
|
src: p().min(1),
|
|
40228
|
-
font: f(
|
|
40229
|
-
style: f(
|
|
40231
|
+
font: f(k$),
|
|
40232
|
+
style: f(F$),
|
|
40230
40233
|
stroke: f(Wc),
|
|
40231
40234
|
shadow: f(Sp),
|
|
40232
40235
|
background: f(j_),
|
|
@@ -40239,9 +40242,9 @@ const C$ = x({
|
|
|
40239
40242
|
H_
|
|
40240
40243
|
])),
|
|
40241
40244
|
align: f(U_),
|
|
40242
|
-
active: f(
|
|
40243
|
-
animation: f(
|
|
40244
|
-
}).strict(),
|
|
40245
|
+
active: f(B$),
|
|
40246
|
+
animation: f(A$)
|
|
40247
|
+
}).strict(), I$ = Y_, P$ = x({
|
|
40245
40248
|
family: f(p()).default("Open Sans"),
|
|
40246
40249
|
size: f(w([F((t) => {
|
|
40247
40250
|
if (!(t === "" || t === null || t === void 0))
|
|
@@ -40256,7 +40259,7 @@ const C$ = x({
|
|
|
40256
40259
|
}, S().gte(0).lte(1)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
|
|
40257
40260
|
background: f(w([p().regex(/^#[A-Fa-f0-9]{6}$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
40258
40261
|
stroke: f(Wc)
|
|
40259
|
-
}).strict(),
|
|
40262
|
+
}).strict(), N$ = x({
|
|
40260
40263
|
letterSpacing: f(w([F((t) => {
|
|
40261
40264
|
if (!(t === "" || t === null || t === void 0))
|
|
40262
40265
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
@@ -40284,8 +40287,8 @@ const C$ = x({
|
|
|
40284
40287
|
}).strict(), q_ = x({
|
|
40285
40288
|
type: R(["rich-text"]),
|
|
40286
40289
|
text: p().max(5e3),
|
|
40287
|
-
font: f(
|
|
40288
|
-
style: f(
|
|
40290
|
+
font: f(P$),
|
|
40291
|
+
style: f(N$),
|
|
40289
40292
|
stroke: f(Wc),
|
|
40290
40293
|
shadow: f(Sp),
|
|
40291
40294
|
background: f(j_),
|
|
@@ -40298,24 +40301,24 @@ const C$ = x({
|
|
|
40298
40301
|
H_
|
|
40299
40302
|
])),
|
|
40300
40303
|
align: f(U_),
|
|
40301
|
-
animation: f(
|
|
40302
|
-
}).strict(),
|
|
40304
|
+
animation: f(S$)
|
|
40305
|
+
}).strict(), T$ = q_, M$ = x({
|
|
40303
40306
|
id: f(p()),
|
|
40304
40307
|
owner: f(p()),
|
|
40305
40308
|
status: f(R(["queued", "failed"])),
|
|
40306
40309
|
created: f(p())
|
|
40307
|
-
}).strict(),
|
|
40310
|
+
}).strict(), z$ = x({
|
|
40308
40311
|
type: f(p()),
|
|
40309
|
-
attributes: f(
|
|
40312
|
+
attributes: f(M$)
|
|
40310
40313
|
}).strict();
|
|
40311
40314
|
x({
|
|
40312
|
-
data:
|
|
40315
|
+
data: z$
|
|
40313
40316
|
}).strict();
|
|
40314
|
-
const
|
|
40317
|
+
const V$ = x({
|
|
40315
40318
|
url: p(),
|
|
40316
40319
|
id: p(),
|
|
40317
40320
|
destinations: Tt(Gc)
|
|
40318
|
-
}).strict(),
|
|
40321
|
+
}).strict(), O$ = x({
|
|
40319
40322
|
type: R(["shape"]),
|
|
40320
40323
|
shape: R([
|
|
40321
40324
|
"rectangle",
|
|
@@ -40383,7 +40386,7 @@ const z$ = x({
|
|
|
40383
40386
|
if (!(t === "" || t === null || t === void 0))
|
|
40384
40387
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
40385
40388
|
}, S().int().gte(1).lte(4096)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
40386
|
-
}).strict(),
|
|
40389
|
+
}).strict(), R$ = Fp, X_ = x({
|
|
40387
40390
|
format: f(R([
|
|
40388
40391
|
"mp4",
|
|
40389
40392
|
"webm",
|
|
@@ -40431,19 +40434,19 @@ const z$ = x({
|
|
|
40431
40434
|
Ct(59.94),
|
|
40432
40435
|
Ct(60)
|
|
40433
40436
|
])),
|
|
40434
|
-
speed: f(
|
|
40437
|
+
speed: f(m$),
|
|
40435
40438
|
keyframeInterval: f(w([F((t) => {
|
|
40436
40439
|
if (!(t === "" || t === null || t === void 0))
|
|
40437
40440
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
40438
40441
|
}, S().int().gte(1).lte(300)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
40439
40442
|
fixOffset: f(zt()),
|
|
40440
40443
|
fixRotation: f(zt()),
|
|
40441
|
-
enhance: f(
|
|
40444
|
+
enhance: f(c$),
|
|
40442
40445
|
filename: f(p())
|
|
40443
|
-
}).strict(), R$ = x({
|
|
40444
|
-
renditions: f(Tt(X_)),
|
|
40445
|
-
transcription: f(m$)
|
|
40446
40446
|
}).strict(), L$ = x({
|
|
40447
|
+
renditions: f(Tt(X_)),
|
|
40448
|
+
transcription: f(g$)
|
|
40449
|
+
}).strict(), $$ = x({
|
|
40447
40450
|
id: p(),
|
|
40448
40451
|
status: f(R([
|
|
40449
40452
|
"queued",
|
|
@@ -40475,9 +40478,9 @@ const z$ = x({
|
|
|
40475
40478
|
if (!(t === "" || t === null || t === void 0))
|
|
40476
40479
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
40477
40480
|
}, S()), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
40478
|
-
}).strict(), $$ = x({
|
|
40479
|
-
renditions: f(Tt(L$))
|
|
40480
40481
|
}).strict(), Z$ = x({
|
|
40482
|
+
renditions: f(Tt($$))
|
|
40483
|
+
}).strict(), U$ = x({
|
|
40481
40484
|
id: p(),
|
|
40482
40485
|
owner: p(),
|
|
40483
40486
|
input: f(p()),
|
|
@@ -40490,7 +40493,7 @@ const z$ = x({
|
|
|
40490
40493
|
"deleted",
|
|
40491
40494
|
"overwritten"
|
|
40492
40495
|
])),
|
|
40493
|
-
outputs: f(
|
|
40496
|
+
outputs: f(Z$),
|
|
40494
40497
|
width: f(w([F((t) => {
|
|
40495
40498
|
if (!(t === "" || t === null || t === void 0))
|
|
40496
40499
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
@@ -40512,7 +40515,7 @@ const z$ = x({
|
|
|
40512
40515
|
}).strict(), K_ = x({
|
|
40513
40516
|
type: p(),
|
|
40514
40517
|
id: p(),
|
|
40515
|
-
attributes:
|
|
40518
|
+
attributes: U$
|
|
40516
40519
|
}).strict();
|
|
40517
40520
|
x({
|
|
40518
40521
|
data: Tt(K_)
|
|
@@ -40520,12 +40523,12 @@ x({
|
|
|
40520
40523
|
x({
|
|
40521
40524
|
data: K_
|
|
40522
40525
|
}).strict();
|
|
40523
|
-
const
|
|
40526
|
+
const j$ = x({
|
|
40524
40527
|
url: f(p()),
|
|
40525
|
-
outputs: f(
|
|
40528
|
+
outputs: f(L$),
|
|
40526
40529
|
destinations: f(Gc),
|
|
40527
40530
|
callback: f(p())
|
|
40528
|
-
}).strict(),
|
|
40531
|
+
}).strict(), G$ = x({
|
|
40529
40532
|
src: p().min(1).regex(/\S/),
|
|
40530
40533
|
effect: f(R([
|
|
40531
40534
|
"fadeIn",
|
|
@@ -40539,10 +40542,10 @@ const U$ = x({
|
|
|
40539
40542
|
}).strict(), J_ = x({
|
|
40540
40543
|
type: R(["svg"]),
|
|
40541
40544
|
src: p().min(1).max(5e5)
|
|
40542
|
-
}).strict(),
|
|
40545
|
+
}).strict(), W$ = J_, H$ = x({
|
|
40543
40546
|
id: p(),
|
|
40544
40547
|
merge: f(Tt($_))
|
|
40545
|
-
}).strict(),
|
|
40548
|
+
}).strict(), Y$ = x({
|
|
40546
40549
|
horizontal: f(R([
|
|
40547
40550
|
"left",
|
|
40548
40551
|
"center",
|
|
@@ -40553,13 +40556,13 @@ const U$ = x({
|
|
|
40553
40556
|
"center",
|
|
40554
40557
|
"bottom"
|
|
40555
40558
|
]))
|
|
40556
|
-
}).strict(),
|
|
40559
|
+
}).strict(), q$ = x({
|
|
40557
40560
|
preset: R(["typewriter"]),
|
|
40558
40561
|
duration: f(w([F((t) => {
|
|
40559
40562
|
if (!(t === "" || t === null || t === void 0))
|
|
40560
40563
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
40561
40564
|
}, S().gte(0.1).lte(30)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
40562
|
-
}).strict(),
|
|
40565
|
+
}).strict(), X$ = x({
|
|
40563
40566
|
color: f(w([p().regex(/^#[A-Fa-f0-9]{6}$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
40564
40567
|
opacity: f(w([F((t) => {
|
|
40565
40568
|
if (!(t === "" || t === null || t === void 0))
|
|
@@ -40574,7 +40577,7 @@ const U$ = x({
|
|
|
40574
40577
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
40575
40578
|
}, S().gte(0)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
40576
40579
|
wrap: f(zt())
|
|
40577
|
-
}).strict(),
|
|
40580
|
+
}).strict(), K$ = x({
|
|
40578
40581
|
family: f(p()),
|
|
40579
40582
|
color: f(p()),
|
|
40580
40583
|
opacity: f(w([F((t) => {
|
|
@@ -40593,13 +40596,13 @@ const U$ = x({
|
|
|
40593
40596
|
if (!(t === "" || t === null || t === void 0))
|
|
40594
40597
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
40595
40598
|
}, S()), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
40596
|
-
}).strict(),
|
|
40599
|
+
}).strict(), J$ = x({
|
|
40597
40600
|
width: f(w([F((t) => {
|
|
40598
40601
|
if (!(t === "" || t === null || t === void 0))
|
|
40599
40602
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
40600
40603
|
}, S().gte(0).lte(10)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
40601
40604
|
color: f(w([p().regex(/^#[A-Fa-f0-9]{6}$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
40602
|
-
}).strict(),
|
|
40605
|
+
}).strict(), Q$ = x({
|
|
40603
40606
|
type: R(["text"]),
|
|
40604
40607
|
text: p(),
|
|
40605
40608
|
width: f(w([F((t) => {
|
|
@@ -40610,11 +40613,11 @@ const U$ = x({
|
|
|
40610
40613
|
if (!(t === "" || t === null || t === void 0))
|
|
40611
40614
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
40612
40615
|
}, S().int()), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
40613
|
-
font: f(
|
|
40614
|
-
background: f(
|
|
40615
|
-
alignment: f(
|
|
40616
|
-
stroke: f(
|
|
40617
|
-
animation: f(
|
|
40616
|
+
font: f(K$),
|
|
40617
|
+
background: f(X$),
|
|
40618
|
+
alignment: f(Y$),
|
|
40619
|
+
stroke: f(J$),
|
|
40620
|
+
animation: f(q$),
|
|
40618
40621
|
ellipsis: f(p())
|
|
40619
40622
|
}).strict().superRefine((t, e) => {
|
|
40620
40623
|
t.background && t.background.wrap === !0 && e.addIssue({
|
|
@@ -40622,7 +40625,7 @@ const U$ = x({
|
|
|
40622
40625
|
message: 'background.wrap is only supported on rich-text and rich-caption assets. For type "text", migrate to type "rich-text" to use this feature.',
|
|
40623
40626
|
path: ["background", "wrap"]
|
|
40624
40627
|
});
|
|
40625
|
-
}),
|
|
40628
|
+
}), tZ = x({
|
|
40626
40629
|
type: R(["text-to-image"]),
|
|
40627
40630
|
prompt: p(),
|
|
40628
40631
|
width: f(w([F((t) => {
|
|
@@ -40634,7 +40637,7 @@ const U$ = x({
|
|
|
40634
40637
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
40635
40638
|
}, S().int()), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
|
|
40636
40639
|
crop: f(jc)
|
|
40637
|
-
}).strict(),
|
|
40640
|
+
}).strict(), eZ = x({
|
|
40638
40641
|
capture: w([F((t) => {
|
|
40639
40642
|
if (!(t === "" || t === null || t === void 0))
|
|
40640
40643
|
return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
|
|
@@ -40698,9 +40701,9 @@ const U$ = x({
|
|
|
40698
40701
|
])),
|
|
40699
40702
|
repeat: f(zt()),
|
|
40700
40703
|
mute: f(zt()),
|
|
40701
|
-
range: f(
|
|
40702
|
-
poster: f(
|
|
40703
|
-
thumbnail: f(
|
|
40704
|
+
range: f(b$),
|
|
40705
|
+
poster: f(v$),
|
|
40706
|
+
thumbnail: f(eZ),
|
|
40704
40707
|
destinations: f(Tt(Gc))
|
|
40705
40708
|
}).strict().superRefine((t, e) => {
|
|
40706
40709
|
var r = t.format === "mp3";
|
|
@@ -40710,7 +40713,7 @@ const U$ = x({
|
|
|
40710
40713
|
}
|
|
40711
40714
|
var n = typeof t.resolution == "string", i = t.size != null && t.size.width != null && t.size.height != null;
|
|
40712
40715
|
!r && !n && !i && e.addIssue({ code: ii.custom, message: 'output requires either "resolution" or "size" (with width and height)' });
|
|
40713
|
-
}), Hc = Q_,
|
|
40716
|
+
}), Hc = Q_, rZ = x({
|
|
40714
40717
|
in: f(R([
|
|
40715
40718
|
"none",
|
|
40716
40719
|
"fade",
|
|
@@ -40885,7 +40888,7 @@ const U$ = x({
|
|
|
40885
40888
|
"easeInOutCirc",
|
|
40886
40889
|
"easeInOutBack"
|
|
40887
40890
|
]))
|
|
40888
|
-
}).strict(),
|
|
40891
|
+
}).strict(), iZ = x({
|
|
40889
40892
|
type: R(["audio"]),
|
|
40890
40893
|
src: f(p().min(1).regex(/\S/)),
|
|
40891
40894
|
prompt: f(p().max(4e3)),
|
|
@@ -40934,7 +40937,7 @@ const U$ = x({
|
|
|
40934
40937
|
}, S().gte(-10).lte(10)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
40935
40938
|
Tt(gi)
|
|
40936
40939
|
]))
|
|
40937
|
-
}).strict(),
|
|
40940
|
+
}).strict(), nZ = x({
|
|
40938
40941
|
angle: f(w([
|
|
40939
40942
|
w([F((t) => {
|
|
40940
40943
|
if (!(t === "" || t === null || t === void 0))
|
|
@@ -40942,7 +40945,7 @@ const U$ = x({
|
|
|
40942
40945
|
}, S().gte(-360).lte(360)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
40943
40946
|
Tt(gi)
|
|
40944
40947
|
]))
|
|
40945
|
-
}).strict(),
|
|
40948
|
+
}).strict(), aZ = x({
|
|
40946
40949
|
x: f(w([
|
|
40947
40950
|
w([F((t) => {
|
|
40948
40951
|
if (!(t === "" || t === null || t === void 0))
|
|
@@ -40957,7 +40960,7 @@ const U$ = x({
|
|
|
40957
40960
|
}, S().gte(-100).lte(100)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
40958
40961
|
Tt(gi)
|
|
40959
40962
|
]))
|
|
40960
|
-
}).strict(),
|
|
40963
|
+
}).strict(), sZ = x({
|
|
40961
40964
|
type: R(["text-to-speech"]),
|
|
40962
40965
|
text: p(),
|
|
40963
40966
|
voice: p(),
|
|
@@ -40984,7 +40987,7 @@ const U$ = x({
|
|
|
40984
40987
|
"fadeOut",
|
|
40985
40988
|
"fadeInFadeOut"
|
|
40986
40989
|
]))
|
|
40987
|
-
}).strict(),
|
|
40990
|
+
}).strict(), oZ = x({
|
|
40988
40991
|
type: R(["title"]),
|
|
40989
40992
|
text: p(),
|
|
40990
40993
|
style: f(R([
|
|
@@ -41022,11 +41025,11 @@ const U$ = x({
|
|
|
41022
41025
|
"center"
|
|
41023
41026
|
])),
|
|
41024
41027
|
offset: f(tx)
|
|
41025
|
-
}).strict(), oZ = x({
|
|
41026
|
-
rotate: f(iZ),
|
|
41027
|
-
skew: f(nZ),
|
|
41028
|
-
flip: f(JL)
|
|
41029
41028
|
}).strict(), uZ = x({
|
|
41029
|
+
rotate: f(nZ),
|
|
41030
|
+
skew: f(aZ),
|
|
41031
|
+
flip: f(QL)
|
|
41032
|
+
}).strict(), lZ = x({
|
|
41030
41033
|
type: R(["video"]),
|
|
41031
41034
|
src: f(p().min(1).regex(/\S/)),
|
|
41032
41035
|
prompt: f(p().max(4e3)),
|
|
@@ -41058,7 +41061,7 @@ const U$ = x({
|
|
|
41058
41061
|
Tt(gi)
|
|
41059
41062
|
])),
|
|
41060
41063
|
crop: f(jc),
|
|
41061
|
-
chromaKey: f(
|
|
41064
|
+
chromaKey: f(NL)
|
|
41062
41065
|
}).strict().superRefine((t, e) => {
|
|
41063
41066
|
var r = typeof t.src == "string" && t.src.trim().length > 0, n = typeof t.prompt == "string" && t.prompt.trim().length > 0;
|
|
41064
41067
|
!r && !n && e.addIssue({
|
|
@@ -41066,26 +41069,26 @@ const U$ = x({
|
|
|
41066
41069
|
message: 'A media asset requires either "src" (a source URL) or "prompt" (to generate the asset). Provide one.',
|
|
41067
41070
|
path: ["src"]
|
|
41068
41071
|
});
|
|
41069
|
-
}),
|
|
41070
|
-
|
|
41071
|
-
|
|
41072
|
-
|
|
41072
|
+
}), cZ = Ol("type", [
|
|
41073
|
+
lZ,
|
|
41074
|
+
a$,
|
|
41075
|
+
Q$,
|
|
41073
41076
|
q_,
|
|
41074
|
-
|
|
41075
|
-
|
|
41076
|
-
|
|
41077
|
+
iZ,
|
|
41078
|
+
y$,
|
|
41079
|
+
PL,
|
|
41077
41080
|
Y_,
|
|
41081
|
+
n$,
|
|
41078
41082
|
i$,
|
|
41079
|
-
|
|
41080
|
-
|
|
41081
|
-
V$,
|
|
41083
|
+
oZ,
|
|
41084
|
+
O$,
|
|
41082
41085
|
J_,
|
|
41083
|
-
|
|
41084
|
-
|
|
41085
|
-
|
|
41086
|
+
tZ,
|
|
41087
|
+
s$,
|
|
41088
|
+
sZ
|
|
41086
41089
|
]), ex = x({
|
|
41087
41090
|
id: f(p()),
|
|
41088
|
-
asset:
|
|
41091
|
+
asset: cZ,
|
|
41089
41092
|
start: w([
|
|
41090
41093
|
w([F((t) => {
|
|
41091
41094
|
if (!(t === "" || t === null || t === void 0))
|
|
@@ -41133,7 +41136,7 @@ const U$ = x({
|
|
|
41133
41136
|
"center"
|
|
41134
41137
|
])),
|
|
41135
41138
|
offset: f(tx),
|
|
41136
|
-
transition: f(
|
|
41139
|
+
transition: f(rZ),
|
|
41137
41140
|
effect: f(R([
|
|
41138
41141
|
"zoomIn",
|
|
41139
41142
|
"zoomInSlow",
|
|
@@ -41172,23 +41175,23 @@ const U$ = x({
|
|
|
41172
41175
|
}, S()), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
|
|
41173
41176
|
Tt(gi)
|
|
41174
41177
|
])),
|
|
41175
|
-
transform: f(
|
|
41178
|
+
transform: f(uZ),
|
|
41176
41179
|
alias: f(w([p().regex(/^[A-Za-z0-9_-]+$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
|
|
41177
|
-
}).strict(), os = ex,
|
|
41180
|
+
}).strict(), os = ex, fZ = ex.transform((t) => {
|
|
41178
41181
|
if (t.asset && typeof t.asset == "object" && "type" in t.asset && t.asset.type === "rich-text") {
|
|
41179
41182
|
const { fit: r, ...n } = t;
|
|
41180
41183
|
return n;
|
|
41181
41184
|
}
|
|
41182
41185
|
return t;
|
|
41183
41186
|
}), rx = x({
|
|
41184
|
-
clips: Tt(
|
|
41187
|
+
clips: Tt(fZ).min(1)
|
|
41185
41188
|
}).strict(), Bp = rx, ix = x({
|
|
41186
|
-
soundtrack: f(
|
|
41189
|
+
soundtrack: f(G$),
|
|
41187
41190
|
background: f(p()),
|
|
41188
|
-
fonts: f(Tt(
|
|
41191
|
+
fonts: f(Tt(t$)),
|
|
41189
41192
|
tracks: Tt(rx).min(1),
|
|
41190
41193
|
cache: f(zt())
|
|
41191
|
-
}).strict(),
|
|
41194
|
+
}).strict(), hZ = ix, qo = x({
|
|
41192
41195
|
timeline: ix,
|
|
41193
41196
|
output: Q_,
|
|
41194
41197
|
merge: f(Tt($_)),
|
|
@@ -41199,7 +41202,7 @@ const U$ = x({
|
|
|
41199
41202
|
"s2",
|
|
41200
41203
|
"a1"
|
|
41201
41204
|
]))
|
|
41202
|
-
}).strict(), $s = qo,
|
|
41205
|
+
}).strict(), $s = qo, dZ = x({
|
|
41203
41206
|
id: p(),
|
|
41204
41207
|
owner: p(),
|
|
41205
41208
|
plan: f(p()),
|
|
@@ -41238,9 +41241,9 @@ const U$ = x({
|
|
|
41238
41241
|
x({
|
|
41239
41242
|
success: zt(),
|
|
41240
41243
|
message: p(),
|
|
41241
|
-
response:
|
|
41244
|
+
response: dZ
|
|
41242
41245
|
}).strict();
|
|
41243
|
-
const
|
|
41246
|
+
const pZ = x({
|
|
41244
41247
|
id: p(),
|
|
41245
41248
|
name: p(),
|
|
41246
41249
|
owner: p(),
|
|
@@ -41249,7 +41252,7 @@ const dZ = x({
|
|
|
41249
41252
|
x({
|
|
41250
41253
|
success: zt(),
|
|
41251
41254
|
message: p(),
|
|
41252
|
-
response:
|
|
41255
|
+
response: pZ
|
|
41253
41256
|
}).strict();
|
|
41254
41257
|
const nx = x({
|
|
41255
41258
|
name: p(),
|
|
@@ -41302,7 +41305,7 @@ x({
|
|
|
41302
41305
|
query: f(ut())
|
|
41303
41306
|
}).strict();
|
|
41304
41307
|
x({
|
|
41305
|
-
body:
|
|
41308
|
+
body: H$,
|
|
41306
41309
|
path: f(ut()),
|
|
41307
41310
|
query: f(ut())
|
|
41308
41311
|
}).strict();
|
|
@@ -41369,7 +41372,7 @@ x({
|
|
|
41369
41372
|
query: f(ut())
|
|
41370
41373
|
}).strict();
|
|
41371
41374
|
x({
|
|
41372
|
-
body:
|
|
41375
|
+
body: V$,
|
|
41373
41376
|
path: f(ut()),
|
|
41374
41377
|
query: f(ut())
|
|
41375
41378
|
}).strict();
|
|
@@ -41379,7 +41382,7 @@ x({
|
|
|
41379
41382
|
query: f(ut())
|
|
41380
41383
|
}).strict();
|
|
41381
41384
|
x({
|
|
41382
|
-
body:
|
|
41385
|
+
body: j$,
|
|
41383
41386
|
path: f(ut()),
|
|
41384
41387
|
query: f(ut())
|
|
41385
41388
|
}).strict();
|
|
@@ -41402,15 +41405,15 @@ x({
|
|
|
41402
41405
|
path: f(ut()),
|
|
41403
41406
|
query: f(ut())
|
|
41404
41407
|
}).strict();
|
|
41405
|
-
const
|
|
41408
|
+
const mZ = JL, gZ = R$, yZ = Hc.shape.format, vZ = Hc.shape.fps.unwrap(), bZ = Hc.shape.resolution, wZ = Hc.shape.aspectRatio, _Z = p().regex(/^#[0-9A-Fa-f]{6}$|^#[0-9A-Fa-f]{8}$/), Zu = os.extend({ id: p() }), xZ = Bp.extend({
|
|
41406
41409
|
clips: Tt(Zu).min(1)
|
|
41407
41410
|
});
|
|
41408
41411
|
$s.extend({
|
|
41409
|
-
timeline:
|
|
41410
|
-
tracks: Tt(
|
|
41412
|
+
timeline: hZ.extend({
|
|
41413
|
+
tracks: Tt(xZ).min(1)
|
|
41411
41414
|
})
|
|
41412
41415
|
});
|
|
41413
|
-
const B1 = 1500, I1 = 5e3,
|
|
41416
|
+
const B1 = 1500, I1 = 5e3, DZ = 1e4;
|
|
41414
41417
|
class Js extends nr {
|
|
41415
41418
|
fontRegistry = null;
|
|
41416
41419
|
layoutEngine = null;
|
|
@@ -41454,12 +41457,12 @@ class Js extends nr {
|
|
|
41454
41457
|
await super.load();
|
|
41455
41458
|
const e = this.clipConfiguration.asset;
|
|
41456
41459
|
try {
|
|
41457
|
-
if (!
|
|
41460
|
+
if (!I$.safeParse(e).success) {
|
|
41458
41461
|
this.createFallbackGraphic("Invalid caption asset");
|
|
41459
41462
|
return;
|
|
41460
41463
|
}
|
|
41461
41464
|
let n;
|
|
41462
|
-
if (e.src ?
|
|
41465
|
+
if (e.src ? Br(e.src) ? (n = Js.createPlaceholderWords(this.getLength() * 1e3), this.isPlaceholder = !0, this.needsResolution = !0) : (n = await this.fetchAndParseSubtitle(e.src), this.resolvedPauseThreshold = 5) : n = (e.words ?? []).map((i) => ({
|
|
41463
41466
|
text: i.text,
|
|
41464
41467
|
start: i.start,
|
|
41465
41468
|
end: i.end,
|
|
@@ -41494,7 +41497,7 @@ class Js extends nr {
|
|
|
41494
41497
|
}
|
|
41495
41498
|
async reloadAsset() {
|
|
41496
41499
|
const e = this.clipConfiguration.asset;
|
|
41497
|
-
if (!e.src ||
|
|
41500
|
+
if (!e.src || Br(e.src)) {
|
|
41498
41501
|
this.loadComplete && !this.isPlaceholder && (this.resolvedPauseThreshold = 500, this.words = Js.createPlaceholderWords(this.getLength() * 1e3), this.isPlaceholder = !0, this.needsResolution = !0, await this.reconfigure());
|
|
41499
41502
|
return;
|
|
41500
41503
|
}
|
|
@@ -41574,7 +41577,7 @@ class Js extends nr {
|
|
|
41574
41577
|
}
|
|
41575
41578
|
}
|
|
41576
41579
|
async fetchAndParseSubtitle(e) {
|
|
41577
|
-
const r = new AbortController(), n = setTimeout(() => r.abort(),
|
|
41580
|
+
const r = new AbortController(), n = setTimeout(() => r.abort(), DZ);
|
|
41578
41581
|
try {
|
|
41579
41582
|
const i = await fetch(e, { signal: r.signal });
|
|
41580
41583
|
if (!i.ok)
|
|
@@ -41636,7 +41639,7 @@ class Js extends nr {
|
|
|
41636
41639
|
return this.fontRegistrationCache.set(i, s), s;
|
|
41637
41640
|
}
|
|
41638
41641
|
resolveFontWithWeight(e, r) {
|
|
41639
|
-
const n = Gf(e), { baseFontFamily: i, fontWeight: a } =
|
|
41642
|
+
const n = Gf(e), { baseFontFamily: i, fontWeight: a } = Fr(n), s = a !== 400 ? a : r, o = this.edit.getFontUrlByFamilyAndWeight(i, s);
|
|
41640
41643
|
if (o)
|
|
41641
41644
|
return { url: o, baseFontFamily: i, fontWeight: s };
|
|
41642
41645
|
const c = (this.edit.getEdit()?.timeline?.fonts || []).find((m) => {
|
|
@@ -41671,7 +41674,7 @@ class Js extends nr {
|
|
|
41671
41674
|
buildCustomFontsFromTimeline(e) {
|
|
41672
41675
|
const r = e.font?.family;
|
|
41673
41676
|
if (!r) return [];
|
|
41674
|
-
const n = Gf(r), { baseFontFamily: i, fontWeight: a } =
|
|
41677
|
+
const n = Gf(r), { baseFontFamily: i, fontWeight: a } = Fr(n), s = this.edit.getTimelineFonts(), o = s.find((d) => {
|
|
41675
41678
|
const { full: m, base: y } = kl(d.src), v = n.toLowerCase();
|
|
41676
41679
|
return m.toLowerCase() === v || y.toLowerCase() === v;
|
|
41677
41680
|
});
|
|
@@ -41769,26 +41772,25 @@ class Js extends nr {
|
|
|
41769
41772
|
return !0;
|
|
41770
41773
|
}
|
|
41771
41774
|
}
|
|
41772
|
-
|
|
41775
|
+
const CZ = {
|
|
41776
|
+
thin: 100,
|
|
41777
|
+
hairline: 100,
|
|
41778
|
+
extralight: 200,
|
|
41779
|
+
ultralight: 200,
|
|
41780
|
+
light: 300,
|
|
41781
|
+
normal: 400,
|
|
41782
|
+
regular: 400,
|
|
41783
|
+
medium: 500,
|
|
41784
|
+
semibold: 600,
|
|
41785
|
+
demibold: 600,
|
|
41786
|
+
bold: 700,
|
|
41787
|
+
extrabold: 800,
|
|
41788
|
+
ultrabold: 800,
|
|
41789
|
+
black: 900,
|
|
41790
|
+
heavy: 900
|
|
41791
|
+
};
|
|
41792
|
+
class Or extends nr {
|
|
41773
41793
|
static PREVIEW_FPS = 60;
|
|
41774
|
-
/** CSS font-weight string → numeric value. Extends WEIGHT_MODIFIERS (@core/fonts/font-config.ts) with CSS aliases. */
|
|
41775
|
-
static NAMED_WEIGHTS = {
|
|
41776
|
-
thin: 100,
|
|
41777
|
-
hairline: 100,
|
|
41778
|
-
extralight: 200,
|
|
41779
|
-
ultralight: 200,
|
|
41780
|
-
light: 300,
|
|
41781
|
-
normal: 400,
|
|
41782
|
-
regular: 400,
|
|
41783
|
-
medium: 500,
|
|
41784
|
-
semibold: 600,
|
|
41785
|
-
demibold: 600,
|
|
41786
|
-
bold: 700,
|
|
41787
|
-
extrabold: 800,
|
|
41788
|
-
ultrabold: 800,
|
|
41789
|
-
black: 900,
|
|
41790
|
-
heavy: 900
|
|
41791
|
-
};
|
|
41792
41794
|
static fontCapabilityCache = /* @__PURE__ */ new Map();
|
|
41793
41795
|
static fontBytesCache = /* @__PURE__ */ new Map();
|
|
41794
41796
|
textEngine = null;
|
|
@@ -41810,15 +41812,15 @@ class Ar extends nr {
|
|
|
41810
41812
|
return e.split("#", 1)[0].split("?", 1)[0];
|
|
41811
41813
|
}
|
|
41812
41814
|
static fetchFontBytes(e) {
|
|
41813
|
-
const r =
|
|
41815
|
+
const r = Or.getFontSourceCacheKey(e), n = Or.fontBytesCache.get(r);
|
|
41814
41816
|
if (n) return n;
|
|
41815
41817
|
const i = fetch(e).then((a) => {
|
|
41816
41818
|
if (!a.ok) throw new Error(`Failed to fetch font: ${a.status}`);
|
|
41817
41819
|
return a.arrayBuffer();
|
|
41818
41820
|
}).catch((a) => {
|
|
41819
|
-
throw
|
|
41821
|
+
throw Or.fontBytesCache.delete(r), a;
|
|
41820
41822
|
});
|
|
41821
|
-
return
|
|
41823
|
+
return Or.fontBytesCache.set(r, i), i;
|
|
41822
41824
|
}
|
|
41823
41825
|
constructor(e, r) {
|
|
41824
41826
|
const { fit: n, ...i } = r;
|
|
@@ -41828,7 +41830,7 @@ class Ar extends nr {
|
|
|
41828
41830
|
const n = e.font?.weight;
|
|
41829
41831
|
if (typeof n == "number") return n;
|
|
41830
41832
|
if (typeof n == "string") {
|
|
41831
|
-
const i =
|
|
41833
|
+
const i = CZ[n.toLowerCase().trim()];
|
|
41832
41834
|
if (i !== void 0) return i;
|
|
41833
41835
|
const a = parseInt(n, 10);
|
|
41834
41836
|
if (!Number.isNaN(a)) return a;
|
|
@@ -41837,7 +41839,7 @@ class Ar extends nr {
|
|
|
41837
41839
|
return r;
|
|
41838
41840
|
}
|
|
41839
41841
|
buildCanvasPayload(e, r) {
|
|
41840
|
-
const n = this.clipConfiguration.width || this.edit.size.width, i = this.clipConfiguration.height || this.edit.size.height, a = e.font?.family, { baseFontFamily: s, fontWeight: o } = r ?? (a ?
|
|
41842
|
+
const n = this.clipConfiguration.width || this.edit.size.width, i = this.clipConfiguration.height || this.edit.size.height, a = e.font?.family, { baseFontFamily: s, fontWeight: o } = r ?? (a ? Fr(a) : { baseFontFamily: a, fontWeight: 400 }), u = this.resolveFontWeight(e, o), l = this.edit.getTimelineFonts(), c = a ? l.find((y) => {
|
|
41841
41843
|
const { full: v, base: b } = kl(y.src), D = a.toLowerCase();
|
|
41842
41844
|
return v.toLowerCase() === D || b.toLowerCase() === D;
|
|
41843
41845
|
}) : void 0;
|
|
@@ -41860,13 +41862,13 @@ class Ar extends nr {
|
|
|
41860
41862
|
}
|
|
41861
41863
|
async registerFont(e, r, n) {
|
|
41862
41864
|
if (!this.textEngine) return !1;
|
|
41863
|
-
const i =
|
|
41865
|
+
const i = Or.getFontSourceCacheKey(n.path), a = `${n.type}:${i}|${e}|${r}`, s = this.fontRegistrationCache.get(a);
|
|
41864
41866
|
if (s) return s;
|
|
41865
41867
|
const o = (async () => {
|
|
41866
41868
|
try {
|
|
41867
41869
|
const u = { family: e, weight: r.toString() };
|
|
41868
41870
|
if (n.type === "url") {
|
|
41869
|
-
const l = await
|
|
41871
|
+
const l = await Or.fetchFontBytes(n.path);
|
|
41870
41872
|
await this.textEngine.registerFontFromFile(new Blob([l]), u);
|
|
41871
41873
|
} else
|
|
41872
41874
|
await this.textEngine.registerFontFromFile(n.path, u);
|
|
@@ -41880,7 +41882,7 @@ class Ar extends nr {
|
|
|
41880
41882
|
createFontCapabilityCheckPromise(e) {
|
|
41881
41883
|
return (async () => {
|
|
41882
41884
|
try {
|
|
41883
|
-
const r = await
|
|
41885
|
+
const r = await Or.fetchFontBytes(e);
|
|
41884
41886
|
return !!Qf.parse(r).tables.fvar?.axes?.find((a) => a.tag === "wght");
|
|
41885
41887
|
} catch (r) {
|
|
41886
41888
|
return console.warn("Failed to check font capabilities:", r), !1;
|
|
@@ -41891,14 +41893,14 @@ class Ar extends nr {
|
|
|
41891
41893
|
const n = await this.ensureFontRegistered(e);
|
|
41892
41894
|
if (!n)
|
|
41893
41895
|
return;
|
|
41894
|
-
const i =
|
|
41895
|
-
a ||
|
|
41896
|
+
const i = Or.getFontSourceCacheKey(n), a = Or.fontCapabilityCache.get(i), s = a ?? this.createFontCapabilityCheckPromise(n);
|
|
41897
|
+
a || Or.fontCapabilityCache.set(i, s), this.fontSupportsBold = await s, r && this.edit.getInternalEvents().emit(ge.FontCapabilitiesChanged, { supportsBold: this.fontSupportsBold });
|
|
41896
41898
|
}
|
|
41897
41899
|
supportsBold() {
|
|
41898
41900
|
return this.fontSupportsBold;
|
|
41899
41901
|
}
|
|
41900
41902
|
resolveFont(e, r) {
|
|
41901
|
-
const { baseFontFamily: n } =
|
|
41903
|
+
const { baseFontFamily: n } = Fr(e), i = this.edit.getFontUrlByFamilyAndWeight(n, r);
|
|
41902
41904
|
if (i)
|
|
41903
41905
|
return { url: i, baseFontFamily: n, fontWeight: r };
|
|
41904
41906
|
const o = (this.edit.getEdit()?.timeline?.fonts || []).find((l) => {
|
|
@@ -41927,22 +41929,22 @@ class Ar extends nr {
|
|
|
41927
41929
|
if (!this.textEngine) return null;
|
|
41928
41930
|
const r = e.font?.family;
|
|
41929
41931
|
if (!r) return null;
|
|
41930
|
-
const n = this.resolveFontWeight(e,
|
|
41932
|
+
const n = this.resolveFontWeight(e, Fr(r).fontWeight), i = this.resolveFont(r, n);
|
|
41931
41933
|
return i ? (await this.registerFont(i.baseFontFamily, n, { type: "url", path: i.url }), i.url) : null;
|
|
41932
41934
|
}
|
|
41933
41935
|
async load() {
|
|
41934
41936
|
await super.load();
|
|
41935
41937
|
const e = this.clipConfiguration.asset;
|
|
41936
41938
|
try {
|
|
41937
|
-
if (!
|
|
41939
|
+
if (!T$.safeParse(e).success) {
|
|
41938
41940
|
this.createFallbackText(e);
|
|
41939
41941
|
return;
|
|
41940
41942
|
}
|
|
41941
|
-
const n = e.font?.family, i = n ?
|
|
41943
|
+
const n = e.font?.family, i = n ? Fr(n) : void 0, a = this.buildCanvasPayload(e, i);
|
|
41942
41944
|
this.textEngine = await eL({
|
|
41943
41945
|
width: a.width,
|
|
41944
41946
|
height: a.height,
|
|
41945
|
-
fps:
|
|
41947
|
+
fps: Or.PREVIEW_FPS
|
|
41946
41948
|
});
|
|
41947
41949
|
const { value: s } = this.textEngine.validate(a);
|
|
41948
41950
|
this.validatedAsset = s, this.canvas = document.createElement("canvas"), this.canvas.width = a.width, this.canvas.height = a.height, this.renderer = this.textEngine.createRenderer(this.canvas), await this.prepareFontForAsset(e, !1), await this.renderFrame(0), this.configureKeyframes(), this.loadComplete = !0;
|
|
@@ -42078,7 +42080,7 @@ class Ar extends nr {
|
|
|
42078
42080
|
this.texture?.destroy(), this.texture = null, this.lastRenderedTime = -1, this.textEngine && this.renderer && this.renderFrameSafe(this.getPlaybackTime());
|
|
42079
42081
|
}
|
|
42080
42082
|
}
|
|
42081
|
-
class
|
|
42083
|
+
class EZ extends nr {
|
|
42082
42084
|
shape;
|
|
42083
42085
|
shapeBackground;
|
|
42084
42086
|
constructor(e, r) {
|
|
@@ -42169,7 +42171,7 @@ class qi extends nr {
|
|
|
42169
42171
|
r !== e.src && (e = { ...e, src: r });
|
|
42170
42172
|
}
|
|
42171
42173
|
try {
|
|
42172
|
-
const r =
|
|
42174
|
+
const r = W$.safeParse(e);
|
|
42173
42175
|
if (!r.success) {
|
|
42174
42176
|
this.recordLoadError(`Invalid svg asset: ${r.error.issues.map((n) => n.message).join("; ")}`), this.createFallbackGraphic();
|
|
42175
42177
|
return;
|
|
@@ -42728,7 +42730,7 @@ class $a extends nr {
|
|
|
42728
42730
|
applyFixedDimensions() {
|
|
42729
42731
|
}
|
|
42730
42732
|
createTextStyle(e) {
|
|
42731
|
-
const r = e.font?.family ?? "Open Sans", { baseFontFamily: n, fontWeight: i } =
|
|
42733
|
+
const r = e.font?.family ?? "Open Sans", { baseFontFamily: n, fontWeight: i } = Fr(r), { width: a } = this.getSize();
|
|
42732
42734
|
return new st.TextStyle({
|
|
42733
42735
|
fontFamily: n,
|
|
42734
42736
|
fontSize: e.font?.size ?? 32,
|
|
@@ -42759,7 +42761,7 @@ class $a extends nr {
|
|
|
42759
42761
|
this.edit.updateTextContent(this, e, r);
|
|
42760
42762
|
}
|
|
42761
42763
|
async loadFont(e) {
|
|
42762
|
-
const { baseFontFamily: r, fontWeight: n } =
|
|
42764
|
+
const { baseFontFamily: r, fontWeight: n } = Fr(e), i = `${r}-${n}`;
|
|
42763
42765
|
if ($a.loadedFonts.has(i))
|
|
42764
42766
|
return;
|
|
42765
42767
|
const a = as(e);
|
|
@@ -42826,18 +42828,17 @@ class N1 extends nr {
|
|
|
42826
42828
|
return { width: 0, height: 0 };
|
|
42827
42829
|
}
|
|
42828
42830
|
}
|
|
42829
|
-
const
|
|
42831
|
+
const AZ = 0.0625, kZ = 16, Zs = 0.01;
|
|
42830
42832
|
function T1(t, e) {
|
|
42831
|
-
|
|
42832
|
-
|
|
42833
|
-
|
|
42834
|
-
|
|
42835
|
-
|
|
42836
|
-
a[s] = a[s - 1] + (o + u) / 2 * Zs;
|
|
42833
|
+
if (!Array.isArray(t) || t.length === 0) return null;
|
|
42834
|
+
const [r] = [...t].sort((a, s) => (a.start ?? 0) - (s.start ?? 0)), n = new ha(t, e, typeof r.from == "number" ? r.from : 1), i = new Float64Array(Math.ceil(e / Zs) + 1);
|
|
42835
|
+
for (let a = 1; a < i.length; a += 1) {
|
|
42836
|
+
const s = n.getValue((a - 1) * Zs), o = n.getValue(a * Zs);
|
|
42837
|
+
i[a] = i[a - 1] + (s + o) / 2 * Zs;
|
|
42837
42838
|
}
|
|
42838
|
-
return { curve:
|
|
42839
|
+
return { curve: n, sourceOffsets: i };
|
|
42839
42840
|
}
|
|
42840
|
-
class
|
|
42841
|
+
class SZ extends nr {
|
|
42841
42842
|
texture;
|
|
42842
42843
|
sprite;
|
|
42843
42844
|
placeholder;
|
|
@@ -42850,7 +42851,7 @@ class AZ extends nr {
|
|
|
42850
42851
|
constructor(e, r) {
|
|
42851
42852
|
super(e, r, Se.Video), this.texture = null, this.sprite = null, this.placeholder = null, this.isPlaying = !1;
|
|
42852
42853
|
const n = this.clipConfiguration.asset;
|
|
42853
|
-
this.volumeKeyframeBuilder = new ha(n.volume ?? 1, this.getLength()), this.animatedSpeed = T1(n, this.getLength()), this.syncTimer = 0, this.activeSyncTimer = 0, this.skipVideoUpdate = !1;
|
|
42854
|
+
this.volumeKeyframeBuilder = new ha(n.volume ?? 1, this.getLength()), this.animatedSpeed = T1(n.speed, this.getLength()), this.syncTimer = 0, this.activeSyncTimer = 0, this.skipVideoUpdate = !1;
|
|
42854
42855
|
}
|
|
42855
42856
|
async load() {
|
|
42856
42857
|
this.skipVideoUpdate = !0, await super.load();
|
|
@@ -42869,7 +42870,7 @@ class AZ extends nr {
|
|
|
42869
42870
|
update(e, r) {
|
|
42870
42871
|
if (super.update(e, r), this.skipVideoUpdate || (this.syncTimer += r, !this.texture))
|
|
42871
42872
|
return;
|
|
42872
|
-
const n = this.getAssetSpeed(), i = this.getSourceTime(), a = n >=
|
|
42873
|
+
const n = this.getAssetSpeed(), i = this.getSourceTime(), a = n >= AZ && n <= kZ, s = this.edit.isPlaying && this.isActive() && a, o = 0.3;
|
|
42873
42874
|
s && (this.isPlaying || (this.isPlaying = !0, this.activeSyncTimer = 0, this.texture.source.resource.volume = this.getVolume(), Math.abs(this.texture.source.resource.currentTime - i) > o && (this.texture.source.resource.currentTime = i), this.texture.source.resource.play().catch(console.error)), this.texture.source.resource.volume !== this.getVolume() && (this.texture.source.resource.volume = this.getVolume()), this.texture.source.resource.playbackRate !== n && (this.texture.source.resource.playbackRate = n), this.activeSyncTimer += r, this.activeSyncTimer > 1e3 && (this.activeSyncTimer = 0, Math.abs(this.texture.source.resource.currentTime - i) > o && (this.texture.source.resource.currentTime = i))), !s && this.isPlaying && (this.isPlaying = !1, this.texture.source.resource.pause());
|
|
42874
42875
|
const u = this.syncTimer > 100;
|
|
42875
42876
|
(this.edit.playbackTime < this.getStart() || (!this.edit.isPlaying || !a) && this.isActive() && u) && (this.syncTimer = 0, Math.abs(this.texture.source.resource.currentTime - i) > 0.01 && (this.texture.source.resource.currentTime = i));
|
|
@@ -42900,7 +42901,7 @@ class AZ extends nr {
|
|
|
42900
42901
|
reconfigureAfterRestore() {
|
|
42901
42902
|
super.reconfigureAfterRestore();
|
|
42902
42903
|
const e = this.clipConfiguration.asset;
|
|
42903
|
-
this.volumeKeyframeBuilder = new ha(e.volume ?? 1, this.getLength()), this.animatedSpeed = T1(e, this.getLength());
|
|
42904
|
+
this.volumeKeyframeBuilder = new ha(e.volume ?? 1, this.getLength()), this.animatedSpeed = T1(e.speed, this.getLength());
|
|
42904
42905
|
}
|
|
42905
42906
|
async loadVideo() {
|
|
42906
42907
|
const e = this.clipConfiguration.asset, { src: r } = e;
|
|
@@ -42982,21 +42983,21 @@ class M1 {
|
|
|
42982
42983
|
case "text":
|
|
42983
42984
|
return new $a(e, r);
|
|
42984
42985
|
case "rich-text":
|
|
42985
|
-
return new
|
|
42986
|
+
return new Or(e, r);
|
|
42986
42987
|
case "shape":
|
|
42987
|
-
return new
|
|
42988
|
+
return new EZ(e, r);
|
|
42988
42989
|
case "html":
|
|
42989
|
-
return new
|
|
42990
|
+
return new cL(e, r);
|
|
42990
42991
|
case "html5":
|
|
42991
42992
|
return new Al(e, r);
|
|
42992
42993
|
case "image":
|
|
42993
|
-
return n ? new P1(e, r) : new
|
|
42994
|
+
return n ? new P1(e, r) : new xL(e, r);
|
|
42994
42995
|
case "video":
|
|
42995
|
-
return n ? new F1(e, r) : new
|
|
42996
|
+
return n ? new F1(e, r) : new SZ(e, r);
|
|
42996
42997
|
case "audio":
|
|
42997
42998
|
return n ? new N1(e, r) : new Yx(e, r);
|
|
42998
42999
|
case "luma":
|
|
42999
|
-
return new
|
|
43000
|
+
return new SL(e, r);
|
|
43000
43001
|
case "caption":
|
|
43001
43002
|
return new El(e, r);
|
|
43002
43003
|
case "rich-caption":
|
|
@@ -43043,17 +43044,17 @@ function ax(t) {
|
|
|
43043
43044
|
}
|
|
43044
43045
|
return null;
|
|
43045
43046
|
}
|
|
43046
|
-
function
|
|
43047
|
+
function FZ(t) {
|
|
43047
43048
|
const e = ax(t);
|
|
43048
43049
|
return !e || typeof e != "object" || Array.isArray(e) ? null : e;
|
|
43049
43050
|
}
|
|
43050
|
-
function
|
|
43051
|
-
const e =
|
|
43051
|
+
function BZ(t) {
|
|
43052
|
+
const e = FZ(t);
|
|
43052
43053
|
if (!e) return null;
|
|
43053
43054
|
const r = os.safeParse(e);
|
|
43054
43055
|
return r.success ? r.data : null;
|
|
43055
43056
|
}
|
|
43056
|
-
function
|
|
43057
|
+
function IZ(t) {
|
|
43057
43058
|
const e = ax(t);
|
|
43058
43059
|
if (e === null) return null;
|
|
43059
43060
|
const r = Array.isArray(e) ? e : [e];
|
|
@@ -43066,7 +43067,7 @@ function FZ(t) {
|
|
|
43066
43067
|
}
|
|
43067
43068
|
return n;
|
|
43068
43069
|
}
|
|
43069
|
-
function
|
|
43070
|
+
function PZ(t) {
|
|
43070
43071
|
const e = structuredClone(t);
|
|
43071
43072
|
return delete e.id, JSON.stringify(e, null, 2);
|
|
43072
43073
|
}
|
|
@@ -43119,7 +43120,7 @@ function sx(t, e, r, n) {
|
|
|
43119
43120
|
const i = Math.max(t, r), a = Math.min(e, n);
|
|
43120
43121
|
return Math.max(0, a - i);
|
|
43121
43122
|
}
|
|
43122
|
-
function
|
|
43123
|
+
function NZ(t) {
|
|
43123
43124
|
const { preferredTrackIndex: e, preferredTrackClips: r, desiredStart: n, desiredLength: i } = t;
|
|
43124
43125
|
if (r && r.length > 0) {
|
|
43125
43126
|
const a = n + i;
|
|
@@ -43128,7 +43129,7 @@ function IZ(t) {
|
|
|
43128
43129
|
return { type: "place", trackIndex: e };
|
|
43129
43130
|
}
|
|
43130
43131
|
async function Z0(t, e, r) {
|
|
43131
|
-
const n = typeof r.start == "number" ? r.start : 0, i = typeof r.length == "number" ? r.length : 0, s = t.getTracks()[e], o =
|
|
43132
|
+
const n = typeof r.start == "number" ? r.start : 0, i = typeof r.length == "number" ? r.length : 0, s = t.getTracks()[e], o = NZ({
|
|
43132
43133
|
preferredTrackIndex: e,
|
|
43133
43134
|
preferredTrackClips: s?.map((u) => ({ start: u.getStart(), length: u.getEnd() - u.getStart() })),
|
|
43134
43135
|
desiredStart: n,
|
|
@@ -43140,15 +43141,15 @@ async function Z0(t, e, r) {
|
|
|
43140
43141
|
}
|
|
43141
43142
|
await t.addClip(o.trackIndex, r);
|
|
43142
43143
|
}
|
|
43143
|
-
const
|
|
43144
|
+
const TZ = /* @__PURE__ */ new Set(["video", "audio", "text-to-speech"]), MZ = {
|
|
43144
43145
|
video: "Video",
|
|
43145
43146
|
audio: "Audio",
|
|
43146
43147
|
"text-to-speech": "TTS"
|
|
43147
|
-
},
|
|
43148
|
-
function
|
|
43149
|
-
return !!t && !
|
|
43148
|
+
}, zZ = /^\{\{\s*([A-Za-z0-9_]+)\s*\}\}$/, VZ = /^source_[\da-f]{8}$/i;
|
|
43149
|
+
function OZ(t) {
|
|
43150
|
+
return !!t && !VZ.test(t);
|
|
43150
43151
|
}
|
|
43151
|
-
function
|
|
43152
|
+
function RZ(t) {
|
|
43152
43153
|
try {
|
|
43153
43154
|
const { pathname: e } = new URL(t), r = e.split("/").pop();
|
|
43154
43155
|
return r ? decodeURIComponent(r.replace(/\.[^.]+$/, "")) : null;
|
|
@@ -43156,38 +43157,38 @@ function VZ(t) {
|
|
|
43156
43157
|
return null;
|
|
43157
43158
|
}
|
|
43158
43159
|
}
|
|
43159
|
-
function
|
|
43160
|
+
function LZ(t, e) {
|
|
43160
43161
|
return t.length <= e ? t : `${t.slice(0, e).trimEnd()}...`;
|
|
43161
43162
|
}
|
|
43162
|
-
function
|
|
43163
|
-
const i =
|
|
43164
|
-
if (
|
|
43163
|
+
function $Z(t, e, r, n) {
|
|
43164
|
+
const i = MZ[e] ?? e, { alias: a } = t, s = t.asset, o = `Track ${r + 1} · Clip ${n + 1}`;
|
|
43165
|
+
if (OZ(a))
|
|
43165
43166
|
return `${a} · ${i} · ${o}`;
|
|
43166
43167
|
if (e === "text-to-speech") {
|
|
43167
|
-
const h = s.text ?? "", d = s.voice ?? "", m =
|
|
43168
|
+
const h = s.text ?? "", d = s.voice ?? "", m = LZ(h, 25), y = d ? ` (${d})` : "";
|
|
43168
43169
|
return `"${m}"${y} · ${o}`;
|
|
43169
43170
|
}
|
|
43170
|
-
const u = s.src ?? "", l =
|
|
43171
|
+
const u = s.src ?? "", l = zZ.exec(u);
|
|
43171
43172
|
if (l)
|
|
43172
43173
|
return `${l[1]} · ${i} · ${o}`;
|
|
43173
|
-
const c =
|
|
43174
|
+
const c = RZ(u);
|
|
43174
43175
|
return c ? `${c} · ${i} · ${o}` : `${i} · ${o}`;
|
|
43175
43176
|
}
|
|
43176
|
-
function
|
|
43177
|
+
function ZZ(t) {
|
|
43177
43178
|
const e = t.getDocument();
|
|
43178
43179
|
if (!e) return [];
|
|
43179
43180
|
const r = [], n = e.getTrackCount();
|
|
43180
43181
|
for (let i = n - 1; i >= 0; i -= 1)
|
|
43181
43182
|
e.getClipsInTrack(i).forEach((s, o) => {
|
|
43182
43183
|
const u = s.asset?.type;
|
|
43183
|
-
if (!u || !
|
|
43184
|
+
if (!u || !TZ.has(u)) return;
|
|
43184
43185
|
const l = t.getClipId(i, o);
|
|
43185
43186
|
l && r.push({
|
|
43186
43187
|
trackIndex: i,
|
|
43187
43188
|
clipIndex: o,
|
|
43188
43189
|
clipId: l,
|
|
43189
43190
|
assetType: u,
|
|
43190
|
-
displayLabel:
|
|
43191
|
+
displayLabel: $Z(s, u, i, o),
|
|
43191
43192
|
currentAlias: s.alias
|
|
43192
43193
|
});
|
|
43193
43194
|
});
|
|
@@ -43196,7 +43197,7 @@ function LZ(t) {
|
|
|
43196
43197
|
function ox(t) {
|
|
43197
43198
|
return `source_${t.slice(-8)}`;
|
|
43198
43199
|
}
|
|
43199
|
-
async function
|
|
43200
|
+
async function UZ(t, e, r) {
|
|
43200
43201
|
const i = t.getDocumentClip(e, r)?.alias;
|
|
43201
43202
|
if (i) return i;
|
|
43202
43203
|
const a = t.getClipId(e, r);
|
|
@@ -43209,21 +43210,21 @@ function U0(t) {
|
|
|
43209
43210
|
const e = crypto.randomUUID();
|
|
43210
43211
|
t.id = e, t.alias = ox(e);
|
|
43211
43212
|
}
|
|
43212
|
-
const z1 = "[shotstack-studio:svg-clipboard]",
|
|
43213
|
+
const z1 = "[shotstack-studio:svg-clipboard]", jZ = ["script", "foreignObject"], GZ = /^on/i, WZ = /^\s*javascript:/i;
|
|
43213
43214
|
function qf(t) {
|
|
43214
43215
|
if (typeof DOMParser > "u" || typeof XMLSerializer > "u")
|
|
43215
43216
|
throw new Error(`${z1} sanitiseSvg requires DOMParser/XMLSerializer; call this only in a browser context`);
|
|
43216
43217
|
const e = new DOMParser().parseFromString(t, "image/svg+xml");
|
|
43217
43218
|
if (e.querySelector("parsererror"))
|
|
43218
43219
|
return console.warn(`${z1} sanitiseSvg: parser error, returning input unchanged`), t;
|
|
43219
|
-
for (const r of
|
|
43220
|
+
for (const r of jZ)
|
|
43220
43221
|
e.querySelectorAll(r).forEach((n) => n.remove());
|
|
43221
43222
|
return e.querySelectorAll("*").forEach((r) => {
|
|
43222
43223
|
for (const n of Array.from(r.attributes))
|
|
43223
|
-
(
|
|
43224
|
+
(GZ.test(n.name) || (n.name === "href" || n.name === "xlink:href") && WZ.test(n.value)) && r.removeAttribute(n.name);
|
|
43224
43225
|
}), new XMLSerializer().serializeToString(e);
|
|
43225
43226
|
}
|
|
43226
|
-
function
|
|
43227
|
+
function HZ(t) {
|
|
43227
43228
|
if (typeof DOMParser > "u") return {};
|
|
43228
43229
|
const e = new DOMParser().parseFromString(t, "image/svg+xml");
|
|
43229
43230
|
if (e.querySelector("parsererror")) return {};
|
|
@@ -43267,7 +43268,7 @@ function Pp(t, e, r, n) {
|
|
|
43267
43268
|
}
|
|
43268
43269
|
return i;
|
|
43269
43270
|
}
|
|
43270
|
-
function
|
|
43271
|
+
function YZ(t, e, r, n) {
|
|
43271
43272
|
const i = /* @__PURE__ */ new Map();
|
|
43272
43273
|
for (const a of r) {
|
|
43273
43274
|
const s = Pp(t, e, a, n);
|
|
@@ -43287,7 +43288,7 @@ function Np(t, e) {
|
|
|
43287
43288
|
}
|
|
43288
43289
|
}
|
|
43289
43290
|
}
|
|
43290
|
-
function
|
|
43291
|
+
function qZ(t) {
|
|
43291
43292
|
const e = [];
|
|
43292
43293
|
for (const r of t) {
|
|
43293
43294
|
const { alias: n } = r;
|
|
@@ -43295,7 +43296,7 @@ function HZ(t) {
|
|
|
43295
43296
|
}
|
|
43296
43297
|
return e;
|
|
43297
43298
|
}
|
|
43298
|
-
class
|
|
43299
|
+
class XZ {
|
|
43299
43300
|
constructor(e, r) {
|
|
43300
43301
|
this.trackIdx = e, this.clip = r;
|
|
43301
43302
|
}
|
|
@@ -43337,7 +43338,7 @@ class YZ {
|
|
|
43337
43338
|
this.addedClipId = void 0, this.convertedReferences = void 0;
|
|
43338
43339
|
}
|
|
43339
43340
|
}
|
|
43340
|
-
class
|
|
43341
|
+
class KZ {
|
|
43341
43342
|
name = "addTracks";
|
|
43342
43343
|
subCommands;
|
|
43343
43344
|
executedCount = 0;
|
|
@@ -43390,12 +43391,12 @@ class Tp {
|
|
|
43390
43391
|
return re("Cannot delete the last track");
|
|
43391
43392
|
const n = r.getTrack(this.trackIdx);
|
|
43392
43393
|
n && (this.deletedClips = n.clips.map((a) => structuredClone(a)));
|
|
43393
|
-
const i =
|
|
43394
|
+
const i = qZ(this.deletedClips);
|
|
43394
43395
|
if (i.length > 0) {
|
|
43395
43396
|
const a = /* @__PURE__ */ new Set();
|
|
43396
43397
|
for (let s = 0; s < this.deletedClips.length; s += 1)
|
|
43397
43398
|
a.add(`${this.trackIdx}:${s}`);
|
|
43398
|
-
this.convertedReferences =
|
|
43399
|
+
this.convertedReferences = YZ(r, e.getEditState(), i, a);
|
|
43399
43400
|
}
|
|
43400
43401
|
return r.removeTrack(this.trackIdx), e.resolve(), e.updateDuration(), e.emitEvent(pt.TrackRemoved, { trackIndex: this.trackIdx }), ce();
|
|
43401
43402
|
}
|
|
@@ -43469,7 +43470,7 @@ class Xf {
|
|
|
43469
43470
|
this.deletedClipConfig = void 0, this.deletedClipId = void 0, this.deleteTrackCommand = void 0, this.storedBindings = void 0, this.convertedReferences = void 0;
|
|
43470
43471
|
}
|
|
43471
43472
|
}
|
|
43472
|
-
class
|
|
43473
|
+
class JZ {
|
|
43473
43474
|
constructor(e, r, n, i) {
|
|
43474
43475
|
this.fromTrackIndex = e, this.fromClipIndex = r, this.toTrackIndex = n, this.newStart = i, this.effectiveToTrackIndex = n;
|
|
43475
43476
|
}
|
|
@@ -43553,7 +43554,7 @@ class XZ {
|
|
|
43553
43554
|
this.clipId = null, this.deleteTrackCommand = void 0;
|
|
43554
43555
|
}
|
|
43555
43556
|
}
|
|
43556
|
-
class
|
|
43557
|
+
class QZ {
|
|
43557
43558
|
constructor(e) {
|
|
43558
43559
|
this.aspectRatio = e;
|
|
43559
43560
|
}
|
|
@@ -43571,7 +43572,7 @@ class KZ {
|
|
|
43571
43572
|
this.previousAspectRatio = void 0;
|
|
43572
43573
|
}
|
|
43573
43574
|
}
|
|
43574
|
-
class
|
|
43575
|
+
class tU {
|
|
43575
43576
|
constructor(e) {
|
|
43576
43577
|
this.destinations = e;
|
|
43577
43578
|
}
|
|
@@ -43589,7 +43590,7 @@ class JZ {
|
|
|
43589
43590
|
this.previousDestinations = void 0;
|
|
43590
43591
|
}
|
|
43591
43592
|
}
|
|
43592
|
-
class
|
|
43593
|
+
class eU {
|
|
43593
43594
|
constructor(e) {
|
|
43594
43595
|
this.format = e;
|
|
43595
43596
|
}
|
|
@@ -43607,7 +43608,7 @@ class QZ {
|
|
|
43607
43608
|
this.previousFormat = void 0;
|
|
43608
43609
|
}
|
|
43609
43610
|
}
|
|
43610
|
-
class
|
|
43611
|
+
class rU {
|
|
43611
43612
|
constructor(e) {
|
|
43612
43613
|
this.fps = e;
|
|
43613
43614
|
}
|
|
@@ -43625,7 +43626,7 @@ class tU {
|
|
|
43625
43626
|
this.previousFps = void 0;
|
|
43626
43627
|
}
|
|
43627
43628
|
}
|
|
43628
|
-
class
|
|
43629
|
+
class iU {
|
|
43629
43630
|
constructor(e) {
|
|
43630
43631
|
this.resolution = e;
|
|
43631
43632
|
}
|
|
@@ -43643,7 +43644,7 @@ class eU {
|
|
|
43643
43644
|
this.previousResolution = void 0;
|
|
43644
43645
|
}
|
|
43645
43646
|
}
|
|
43646
|
-
class
|
|
43647
|
+
class nU {
|
|
43647
43648
|
constructor(e, r) {
|
|
43648
43649
|
this.width = e, this.height = r;
|
|
43649
43650
|
}
|
|
@@ -43661,7 +43662,7 @@ class rU {
|
|
|
43661
43662
|
this.previousSize = void 0;
|
|
43662
43663
|
}
|
|
43663
43664
|
}
|
|
43664
|
-
class
|
|
43665
|
+
class aU {
|
|
43665
43666
|
constructor(e) {
|
|
43666
43667
|
this.color = e;
|
|
43667
43668
|
}
|
|
@@ -43764,7 +43765,7 @@ class Su {
|
|
|
43764
43765
|
this.clipId = null, this.storedInitialConfig = null, this.storedFinalConfig = null, this.storedInitialBindings.clear(), this.previousDocClip = null;
|
|
43765
43766
|
}
|
|
43766
43767
|
}
|
|
43767
|
-
class
|
|
43768
|
+
class sU {
|
|
43768
43769
|
constructor(e, r, n) {
|
|
43769
43770
|
this.trackIndex = e, this.clipIndex = r, this.params = n;
|
|
43770
43771
|
}
|
|
@@ -43816,7 +43817,7 @@ class nU {
|
|
|
43816
43817
|
}), e.propagateTimingChanges(this.trackIndex, this.clipIndex), ce();
|
|
43817
43818
|
}
|
|
43818
43819
|
}
|
|
43819
|
-
class
|
|
43820
|
+
class oU {
|
|
43820
43821
|
constructor(e, r, n) {
|
|
43821
43822
|
this.trackIndex = e, this.clipIndex = r, this.newText = n;
|
|
43822
43823
|
}
|
|
@@ -43900,8 +43901,8 @@ class ux {
|
|
|
43900
43901
|
i(n);
|
|
43901
43902
|
}
|
|
43902
43903
|
}
|
|
43903
|
-
const
|
|
43904
|
-
class
|
|
43904
|
+
const uU = 0.5, lU = 1 / 30;
|
|
43905
|
+
class cU {
|
|
43905
43906
|
constructor(e, r, n) {
|
|
43906
43907
|
this.getCanvas = e, this.getTracks = r, this.events = n, this.onClipChangedBound = () => this.rebuildLumaMasksIfNeeded(), this.onPlayerLoadedBound = (i) => this.onPlayerLoaded(i);
|
|
43907
43908
|
}
|
|
@@ -43985,7 +43986,7 @@ class uU {
|
|
|
43985
43986
|
l.width = s, l.height = o;
|
|
43986
43987
|
const c = new st.ColorMatrixFilter();
|
|
43987
43988
|
c.negative(!1), l.filters = [c], u.addChild(l);
|
|
43988
|
-
const h = st.RenderTexture.create({ width: s, height: o, resolution:
|
|
43989
|
+
const h = st.RenderTexture.create({ width: s, height: o, resolution: uU });
|
|
43989
43990
|
a.render({ container: u, target: h, clear: !0 });
|
|
43990
43991
|
const d = new st.Sprite(h);
|
|
43991
43992
|
n.getContainer().addChild(d);
|
|
@@ -43999,7 +44000,7 @@ class uU {
|
|
|
43999
44000
|
for (const n of this.activeLumaMasks)
|
|
44000
44001
|
if (n.lumaPlayer.isVideoSource()) {
|
|
44001
44002
|
const i = n.lumaPlayer.getVideoCurrentTime();
|
|
44002
|
-
Math.abs(i - n.lastVideoTime) >=
|
|
44003
|
+
Math.abs(i - n.lastVideoTime) >= lU && (n.lastVideoTime = i, r.render({ container: n.tempContainer, target: n.maskTexture, clear: !0 }));
|
|
44003
44004
|
}
|
|
44004
44005
|
}
|
|
44005
44006
|
setupEventListeners() {
|
|
@@ -44038,15 +44039,15 @@ class uU {
|
|
|
44038
44039
|
}
|
|
44039
44040
|
}
|
|
44040
44041
|
}
|
|
44041
|
-
function
|
|
44042
|
+
function fU(t) {
|
|
44042
44043
|
return { find: t.name, replace: t.defaultValue };
|
|
44043
44044
|
}
|
|
44044
|
-
function
|
|
44045
|
+
function hU(t) {
|
|
44045
44046
|
const e = typeof t.replace == "string" ? t.replace : JSON.stringify(t.replace);
|
|
44046
44047
|
return { name: t.find, defaultValue: e };
|
|
44047
44048
|
}
|
|
44048
|
-
const
|
|
44049
|
-
class
|
|
44049
|
+
const dU = /\{\{\s*([A-Z_0-9]+)\s*\}\}/gi, Kf = /\{\{\s*[A-Z_0-9]+\s*\}\}/i;
|
|
44050
|
+
class pU {
|
|
44050
44051
|
fields = /* @__PURE__ */ new Map();
|
|
44051
44052
|
events;
|
|
44052
44053
|
constructor(e) {
|
|
@@ -44088,7 +44089,7 @@ class hU {
|
|
|
44088
44089
|
* Replaces {{ FIELD_NAME }} patterns with their default values.
|
|
44089
44090
|
*/
|
|
44090
44091
|
resolve(e) {
|
|
44091
|
-
return !e || this.fields.size === 0 ? e : e.replace(
|
|
44092
|
+
return !e || this.fields.size === 0 ? e : e.replace(dU, (r, n) => this.fields.get(n)?.defaultValue ?? r);
|
|
44092
44093
|
}
|
|
44093
44094
|
/**
|
|
44094
44095
|
* Resolve a merge field template to a numeric value.
|
|
@@ -44134,13 +44135,13 @@ class hU {
|
|
|
44134
44135
|
// ─── Serialization ──────────────────────────────────────────────────────────
|
|
44135
44136
|
/** Export fields in Shotstack API format ({ find, replace }) */
|
|
44136
44137
|
toSerializedArray() {
|
|
44137
|
-
return this.getAll().map(
|
|
44138
|
+
return this.getAll().map(fU);
|
|
44138
44139
|
}
|
|
44139
44140
|
/** Import fields from Shotstack API format (does not emit event - called during loadEdit) */
|
|
44140
44141
|
loadFromSerialized(e) {
|
|
44141
44142
|
this.fields.clear();
|
|
44142
44143
|
for (const r of e) {
|
|
44143
|
-
const n =
|
|
44144
|
+
const n = hU(r);
|
|
44144
44145
|
this.fields.set(r.find, n);
|
|
44145
44146
|
}
|
|
44146
44147
|
}
|
|
@@ -44154,7 +44155,7 @@ class hU {
|
|
|
44154
44155
|
return `${e}_${n}`;
|
|
44155
44156
|
}
|
|
44156
44157
|
}
|
|
44157
|
-
const
|
|
44158
|
+
const mU = {
|
|
44158
44159
|
preview: { width: 512, height: 288 },
|
|
44159
44160
|
mobile: { width: 640, height: 360 },
|
|
44160
44161
|
sd: { width: 1024, height: 576 },
|
|
@@ -44163,7 +44164,7 @@ const dU = {
|
|
|
44163
44164
|
"4k": { width: 3840, height: 2160 }
|
|
44164
44165
|
};
|
|
44165
44166
|
function Fl(t, e = "16:9") {
|
|
44166
|
-
const r =
|
|
44167
|
+
const r = mU[t];
|
|
44167
44168
|
if (!r)
|
|
44168
44169
|
throw new Error(`Unknown resolution: ${t}`);
|
|
44169
44170
|
switch (e) {
|
|
@@ -44181,7 +44182,7 @@ function Fl(t, e = "16:9") {
|
|
|
44181
44182
|
throw new Error(`Unknown aspectRatio: ${e}`);
|
|
44182
44183
|
}
|
|
44183
44184
|
}
|
|
44184
|
-
class
|
|
44185
|
+
class gU {
|
|
44185
44186
|
constructor(e) {
|
|
44186
44187
|
this.edit = e;
|
|
44187
44188
|
}
|
|
@@ -44190,7 +44191,7 @@ class pU {
|
|
|
44190
44191
|
* Set output size (internal - called by SetOutputSizeCommand).
|
|
44191
44192
|
*/
|
|
44192
44193
|
setSize(e, r) {
|
|
44193
|
-
|
|
44194
|
+
gZ.parse({ width: e, height: r });
|
|
44194
44195
|
const n = { width: e, height: r };
|
|
44195
44196
|
this.edit.size = n;
|
|
44196
44197
|
const i = this.edit.getResolvedEdit();
|
|
@@ -44209,7 +44210,7 @@ class pU {
|
|
|
44209
44210
|
* Set output FPS (internal - called by SetOutputFpsCommand).
|
|
44210
44211
|
*/
|
|
44211
44212
|
setFps(e) {
|
|
44212
|
-
const r =
|
|
44213
|
+
const r = vZ.parse(e), n = this.edit.getResolvedEdit();
|
|
44213
44214
|
n && (n.output = {
|
|
44214
44215
|
...n.output,
|
|
44215
44216
|
fps: r
|
|
@@ -44220,7 +44221,7 @@ class pU {
|
|
|
44220
44221
|
}
|
|
44221
44222
|
// ─── Format ───────────────────────────────────────────────────────────────
|
|
44222
44223
|
setFormat(e) {
|
|
44223
|
-
const r =
|
|
44224
|
+
const r = yZ.parse(e), n = this.edit.getResolvedEdit();
|
|
44224
44225
|
n && (n.output = {
|
|
44225
44226
|
...n.output,
|
|
44226
44227
|
format: r
|
|
@@ -44231,7 +44232,7 @@ class pU {
|
|
|
44231
44232
|
}
|
|
44232
44233
|
// ─── Destinations ─────────────────────────────────────────────────────────
|
|
44233
44234
|
setDestinations(e) {
|
|
44234
|
-
const r =
|
|
44235
|
+
const r = mZ.array().parse(e), n = this.edit.getResolvedEdit();
|
|
44235
44236
|
n && (n.output = {
|
|
44236
44237
|
...n.output,
|
|
44237
44238
|
destinations: r
|
|
@@ -44242,7 +44243,7 @@ class pU {
|
|
|
44242
44243
|
}
|
|
44243
44244
|
// ─── Resolution ───────────────────────────────────────────────────────────
|
|
44244
44245
|
setResolution(e) {
|
|
44245
|
-
const r =
|
|
44246
|
+
const r = bZ.parse(e), n = this.edit.getResolvedEdit(), i = n?.output?.aspectRatio ?? "16:9", a = Fl(r, i);
|
|
44246
44247
|
this.edit.size = a, n && (n.output = {
|
|
44247
44248
|
...n.output,
|
|
44248
44249
|
resolution: r
|
|
@@ -44255,7 +44256,7 @@ class pU {
|
|
|
44255
44256
|
}
|
|
44256
44257
|
// ─── Aspect Ratio ─────────────────────────────────────────────────────────
|
|
44257
44258
|
setAspectRatio(e) {
|
|
44258
|
-
const r =
|
|
44259
|
+
const r = wZ.parse(e), n = this.edit.getResolvedEdit(), i = n?.output?.resolution;
|
|
44259
44260
|
if (!i) {
|
|
44260
44261
|
n && (n.output = {
|
|
44261
44262
|
...n.output,
|
|
@@ -44275,16 +44276,16 @@ class pU {
|
|
|
44275
44276
|
return this.edit.getResolvedEdit()?.output?.aspectRatio;
|
|
44276
44277
|
}
|
|
44277
44278
|
}
|
|
44278
|
-
const
|
|
44279
|
-
async function
|
|
44279
|
+
const yU = "[shotstack-studio:system-clipboard]";
|
|
44280
|
+
async function vU(t) {
|
|
44280
44281
|
if (!(typeof navigator > "u" || !navigator.clipboard || typeof navigator.clipboard.writeText != "function"))
|
|
44281
44282
|
try {
|
|
44282
44283
|
await navigator.clipboard.writeText(t);
|
|
44283
44284
|
} catch (e) {
|
|
44284
|
-
console.warn(`${
|
|
44285
|
+
console.warn(`${yU} writeText failed`, e);
|
|
44285
44286
|
}
|
|
44286
44287
|
}
|
|
44287
|
-
class
|
|
44288
|
+
class bU {
|
|
44288
44289
|
constructor(e) {
|
|
44289
44290
|
this.edit = e;
|
|
44290
44291
|
}
|
|
@@ -44366,7 +44367,7 @@ class yU {
|
|
|
44366
44367
|
n && (this.copiedClip = {
|
|
44367
44368
|
trackIndex: e,
|
|
44368
44369
|
clipConfiguration: structuredClone(n)
|
|
44369
|
-
}, this.edit.getInternalEvents().emit(pt.ClipCopied, { trackIndex: e, clipIndex: r }),
|
|
44370
|
+
}, this.edit.getInternalEvents().emit(pt.ClipCopied, { trackIndex: e, clipIndex: r }), vU(PZ(n)).catch(() => {
|
|
44370
44371
|
}));
|
|
44371
44372
|
}
|
|
44372
44373
|
/**
|
|
@@ -44397,8 +44398,8 @@ class yU {
|
|
|
44397
44398
|
return null;
|
|
44398
44399
|
}
|
|
44399
44400
|
}
|
|
44400
|
-
const
|
|
44401
|
-
function
|
|
44401
|
+
const wU = 3;
|
|
44402
|
+
function _U(t) {
|
|
44402
44403
|
return new Promise((e) => {
|
|
44403
44404
|
const r = document.createElement("video");
|
|
44404
44405
|
r.preload = "metadata", r.crossOrigin = "anonymous", r.onloadedmetadata = () => e(r.duration), r.onerror = () => e(null), r.src = ss(t);
|
|
@@ -44407,13 +44408,13 @@ function bU(t) {
|
|
|
44407
44408
|
async function lx(t) {
|
|
44408
44409
|
const e = t;
|
|
44409
44410
|
if (["video", "audio", "luma"].includes(e.type) && e.src) {
|
|
44410
|
-
const r = await
|
|
44411
|
+
const r = await _U(e.src);
|
|
44411
44412
|
if (r !== null && !Number.isNaN(r)) {
|
|
44412
44413
|
const n = e.trim ?? 0;
|
|
44413
44414
|
return r - n;
|
|
44414
44415
|
}
|
|
44415
44416
|
}
|
|
44416
|
-
return
|
|
44417
|
+
return wU;
|
|
44417
44418
|
}
|
|
44418
44419
|
function cx(t, e, r) {
|
|
44419
44420
|
return e === 0 ? 0 : r[t][e - 1].getEnd();
|
|
@@ -44428,7 +44429,7 @@ function j0(t) {
|
|
|
44428
44429
|
n.getTimingIntent().length !== "end" && (e = Math.max(e, n.getEnd()));
|
|
44429
44430
|
return e;
|
|
44430
44431
|
}
|
|
44431
|
-
class
|
|
44432
|
+
class xU {
|
|
44432
44433
|
constructor(e) {
|
|
44433
44434
|
this.edit = e;
|
|
44434
44435
|
}
|
|
@@ -44526,7 +44527,7 @@ class wU {
|
|
|
44526
44527
|
for (let n = 0; n < e.length; n += 1) {
|
|
44527
44528
|
const i = e[n], a = r.timeline.tracks[n];
|
|
44528
44529
|
for (let s = 0; s < i.length; s += 1) {
|
|
44529
|
-
const o = i[s], u = a?.clips[s], l = o.getTimingIntent(), c =
|
|
44530
|
+
const o = i[s], u = a?.clips[s], l = o.getTimingIntent(), c = Br(l.start), h = Br(l.length);
|
|
44530
44531
|
if ((c || h) && u) {
|
|
44531
44532
|
const d = o.getStart(), m = o.getLength(), y = Math.abs(u.start - d) > 1e-3, v = Math.abs(u.length - m) > 1e-3;
|
|
44532
44533
|
(y || v) && (o.setResolvedTiming({
|
|
@@ -44549,7 +44550,7 @@ class wU {
|
|
|
44549
44550
|
return r;
|
|
44550
44551
|
}
|
|
44551
44552
|
}
|
|
44552
|
-
class
|
|
44553
|
+
class DU extends ux {
|
|
44553
44554
|
registry;
|
|
44554
44555
|
constructor() {
|
|
44555
44556
|
super(), this.registry = {};
|
|
@@ -44564,7 +44565,7 @@ class Bl {
|
|
|
44564
44565
|
".ogg": "video/ogg",
|
|
44565
44566
|
".ogv": "video/ogg"
|
|
44566
44567
|
};
|
|
44567
|
-
loadTracker = new
|
|
44568
|
+
loadTracker = new DU();
|
|
44568
44569
|
/** Reference counts for loaded assets - prevents premature unloading during transforms */
|
|
44569
44570
|
refCounts = /* @__PURE__ */ new Map();
|
|
44570
44571
|
/**
|
|
@@ -44703,7 +44704,7 @@ class Bl {
|
|
|
44703
44704
|
}
|
|
44704
44705
|
updateAssetLoadMetadata(e, r, n, i = e) {
|
|
44705
44706
|
const a = { progress: n, status: r };
|
|
44706
|
-
this.loadTracker.registry[e] = a, this.loadTracker.emit("onAssetLoadInfoUpdated", { registry: { ...this.loadTracker.registry } }), r === "failed" &&
|
|
44707
|
+
this.loadTracker.registry[e] = a, this.loadTracker.emit("onAssetLoadInfoUpdated", { registry: { ...this.loadTracker.registry } }), r === "failed" && fL(i, () => {
|
|
44707
44708
|
this.loadTracker.registry[e] === a && (this.loadTracker.registry[e] = { ...a, error: `CORS may be blocking '${i}'.` }, this.loadTracker.emit("onAssetLoadInfoUpdated", { registry: { ...this.loadTracker.registry } }));
|
|
44708
44709
|
}).catch(() => {
|
|
44709
44710
|
});
|
|
@@ -44756,7 +44757,7 @@ class Il {
|
|
|
44756
44757
|
e && document.fonts.delete(e);
|
|
44757
44758
|
}
|
|
44758
44759
|
}
|
|
44759
|
-
class
|
|
44760
|
+
class CU {
|
|
44760
44761
|
queue = [];
|
|
44761
44762
|
isProcessing = !1;
|
|
44762
44763
|
/**
|
|
@@ -45252,7 +45253,7 @@ class Za {
|
|
|
45252
45253
|
return new Za(this.data);
|
|
45253
45254
|
}
|
|
45254
45255
|
}
|
|
45255
|
-
const za = (t) => typeof t == "object" && t !== null && !Array.isArray(t), G0 = (t, e) => Object.prototype.hasOwnProperty.call(t, e),
|
|
45256
|
+
const za = (t) => typeof t == "object" && t !== null && !Array.isArray(t), G0 = (t, e) => Object.prototype.hasOwnProperty.call(t, e), EU = (t, e) => {
|
|
45256
45257
|
if (t.type === "string") {
|
|
45257
45258
|
if (typeof e != "string" || e.length === 0 || t.values && !t.values.includes(e)) return !1;
|
|
45258
45259
|
if (t.format !== "uri") return !0;
|
|
@@ -45263,7 +45264,7 @@ const za = (t) => typeof t == "object" && t !== null && !Array.isArray(t), G0 =
|
|
|
45263
45264
|
}
|
|
45264
45265
|
}
|
|
45265
45266
|
return t.type === "boolean" ? typeof e == "boolean" : !(!Number.isInteger(e) || t.minimum !== void 0 && e < t.minimum || t.maximum !== void 0 && e > t.maximum);
|
|
45266
|
-
},
|
|
45267
|
+
}, AU = (t, e, r) => {
|
|
45267
45268
|
if (!za(e) || !["string", "boolean", "integer"].includes(String(e.type)) || e.enum !== void 0 && (!Array.isArray(e.enum) || !e.enum.every((i) => typeof i == "string")) || e.format !== void 0 && e.format !== "uri") return;
|
|
45268
45269
|
const n = {
|
|
45269
45270
|
name: t,
|
|
@@ -45277,8 +45278,8 @@ const za = (t) => typeof t == "object" && t !== null && !Array.isArray(t), G0 =
|
|
|
45277
45278
|
hasDefault: G0(e, "default"),
|
|
45278
45279
|
...G0(e, "default") ? { defaultValue: e.default } : {}
|
|
45279
45280
|
};
|
|
45280
|
-
return n.hasDefault && !
|
|
45281
|
-
},
|
|
45281
|
+
return n.hasDefault && !EU(n, n.defaultValue) ? { ...n, hasDefault: !1, defaultValue: void 0 } : n;
|
|
45282
|
+
}, kU = (t) => !za(t) || !Array.isArray(t.models) ? [] : t.models.flatMap((e) => {
|
|
45282
45283
|
if (!za(e) || typeof e.model != "string") return [];
|
|
45283
45284
|
if (!["image", "video", "audio"].includes(e.type)) return [];
|
|
45284
45285
|
const { options: r } = e;
|
|
@@ -45291,7 +45292,7 @@ const za = (t) => typeof t == "object" && t !== null && !Array.isArray(t), G0 =
|
|
|
45291
45292
|
if (i.includes("inputSrc")) return [];
|
|
45292
45293
|
const a = [], s = [];
|
|
45293
45294
|
for (const [o, u] of Object.entries(n)) {
|
|
45294
|
-
const l =
|
|
45295
|
+
const l = AU(o, u, i.includes(o));
|
|
45295
45296
|
l ? a.push(l) : s.push({
|
|
45296
45297
|
name: o,
|
|
45297
45298
|
title: za(u) && typeof u.title == "string" ? u.title : o,
|
|
@@ -45309,7 +45310,7 @@ const za = (t) => typeof t == "object" && t !== null && !Array.isArray(t), G0 =
|
|
|
45309
45310
|
}
|
|
45310
45311
|
];
|
|
45311
45312
|
});
|
|
45312
|
-
class
|
|
45313
|
+
class SU {
|
|
45313
45314
|
constructor(e) {
|
|
45314
45315
|
this.deps = e;
|
|
45315
45316
|
}
|
|
@@ -45321,7 +45322,7 @@ class AU {
|
|
|
45321
45322
|
states = /* @__PURE__ */ new Map();
|
|
45322
45323
|
controllers = /* @__PURE__ */ new Map();
|
|
45323
45324
|
register(e, r) {
|
|
45324
|
-
this.handler = e, this.models = r?.catalogue === void 0 ? void 0 :
|
|
45325
|
+
this.handler = e, this.models = r?.catalogue === void 0 ? void 0 : kU(r.catalogue);
|
|
45325
45326
|
}
|
|
45326
45327
|
registerStatus(e) {
|
|
45327
45328
|
const r = (n) => e(n);
|
|
@@ -45408,7 +45409,7 @@ class AU {
|
|
|
45408
45409
|
function Fu(t) {
|
|
45409
45410
|
return Object.fromEntries(Object.entries(t).filter(([, e]) => e !== void 0));
|
|
45410
45411
|
}
|
|
45411
|
-
function
|
|
45412
|
+
function FU(t, e) {
|
|
45412
45413
|
return t.type === "text-to-image" ? { asset: Fu({ type: "image", src: e, prompt: t.prompt, model: "flux-schnell", crop: t.crop }) } : t.type === "image-to-video" ? {
|
|
45413
45414
|
asset: Fu({
|
|
45414
45415
|
type: "video",
|
|
@@ -45441,7 +45442,7 @@ function kU(t, e) {
|
|
|
45441
45442
|
} : null;
|
|
45442
45443
|
}
|
|
45443
45444
|
const R1 = /* @__PURE__ */ new Set(["asset", "start", "length", "id"]);
|
|
45444
|
-
class
|
|
45445
|
+
class BU {
|
|
45445
45446
|
constructor(e) {
|
|
45446
45447
|
this.edit = e, this.edit.getInternalEvents().on(ge.Resolved, this.onResolved);
|
|
45447
45448
|
}
|
|
@@ -45453,8 +45454,8 @@ class SU {
|
|
|
45453
45454
|
* - Recreates Players when asset type changes
|
|
45454
45455
|
*/
|
|
45455
45456
|
enableCreation = !0;
|
|
45456
|
-
/** In-flight player
|
|
45457
|
-
inFlightLoads = /* @__PURE__ */ new
|
|
45457
|
+
/** In-flight player loads by clip id: captureFrame awaits them, and an export that gives up on one names its clip. */
|
|
45458
|
+
inFlightLoads = /* @__PURE__ */ new Map();
|
|
45458
45459
|
onResolved = ({ edit: e }) => {
|
|
45459
45460
|
this.reconcile(e);
|
|
45460
45461
|
};
|
|
@@ -45480,7 +45481,10 @@ class SU {
|
|
|
45480
45481
|
*/
|
|
45481
45482
|
async whenSettled() {
|
|
45482
45483
|
for (; this.inFlightLoads.size > 0; )
|
|
45483
|
-
await Promise.allSettled([...this.inFlightLoads]);
|
|
45484
|
+
await Promise.allSettled([...this.inFlightLoads.keys()]);
|
|
45485
|
+
}
|
|
45486
|
+
getLoadingClipIds() {
|
|
45487
|
+
return [...this.inFlightLoads.values()];
|
|
45484
45488
|
}
|
|
45485
45489
|
/**
|
|
45486
45490
|
* Reconcile Players to match the ResolvedEdit.
|
|
@@ -45575,7 +45579,7 @@ class SU {
|
|
|
45575
45579
|
assetType: s
|
|
45576
45580
|
});
|
|
45577
45581
|
});
|
|
45578
|
-
return this.inFlightLoads.
|
|
45582
|
+
return this.inFlightLoads.set(o, r), o.finally(() => this.inFlightLoads.delete(o));
|
|
45579
45583
|
}
|
|
45580
45584
|
/**
|
|
45581
45585
|
* Update an existing Player to match resolved clip state.
|
|
@@ -45701,11 +45705,11 @@ class SU {
|
|
|
45701
45705
|
this.edit.getInternalEvents().off(ge.Resolved, this.onResolved);
|
|
45702
45706
|
}
|
|
45703
45707
|
}
|
|
45704
|
-
const
|
|
45708
|
+
const IU = /* @__PURE__ */ new Set(["text", "src", "prompt"]);
|
|
45705
45709
|
function fx(t, e) {
|
|
45706
45710
|
function r(n, i) {
|
|
45707
45711
|
if (typeof n == "string" && e.isMergeFieldTemplate(n)) {
|
|
45708
|
-
if (i &&
|
|
45712
|
+
if (i && IU.has(i))
|
|
45709
45713
|
return e.resolve(n);
|
|
45710
45714
|
const a = e.resolveToNumber(n);
|
|
45711
45715
|
return a !== null ? a : e.resolve(n);
|
|
@@ -45722,7 +45726,7 @@ function fx(t, e) {
|
|
|
45722
45726
|
}
|
|
45723
45727
|
return r(structuredClone(t));
|
|
45724
45728
|
}
|
|
45725
|
-
function
|
|
45729
|
+
function PU(t) {
|
|
45726
45730
|
const e = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), n = [];
|
|
45727
45731
|
for (let i = 0; i < t.getTrackCount(); i += 1) {
|
|
45728
45732
|
const a = t.getClipsInTrack(i);
|
|
@@ -45741,13 +45745,13 @@ function BU(t) {
|
|
|
45741
45745
|
const a = t.getClipsInTrack(i);
|
|
45742
45746
|
for (let s = 0; s < a.length; s += 1) {
|
|
45743
45747
|
const o = a[s], u = o.alias ?? o.id, l = /* @__PURE__ */ new Set();
|
|
45744
|
-
if (
|
|
45748
|
+
if (Br(o.start)) {
|
|
45745
45749
|
const c = Wu(o.start);
|
|
45746
45750
|
if (!r.has(c))
|
|
45747
45751
|
throw new Error(`Alias reference "alias://${c}" not found. No clip defines alias "${c}".`);
|
|
45748
45752
|
l.add(c);
|
|
45749
45753
|
}
|
|
45750
|
-
if (
|
|
45754
|
+
if (Br(o.length)) {
|
|
45751
45755
|
const c = Wu(o.length);
|
|
45752
45756
|
if (!r.has(c))
|
|
45753
45757
|
throw new Error(`Alias reference "alias://${c}" not found. No clip defines alias "${c}".`);
|
|
@@ -45762,7 +45766,7 @@ function BU(t) {
|
|
|
45762
45766
|
}
|
|
45763
45767
|
return { dependencies: e, clipsByAlias: r, allClips: n };
|
|
45764
45768
|
}
|
|
45765
|
-
function
|
|
45769
|
+
function NU(t) {
|
|
45766
45770
|
const e = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
|
|
45767
45771
|
function n(i, a) {
|
|
45768
45772
|
e.add(i), r.add(i);
|
|
@@ -45785,7 +45789,7 @@ function IU(t) {
|
|
|
45785
45789
|
}
|
|
45786
45790
|
return null;
|
|
45787
45791
|
}
|
|
45788
|
-
function
|
|
45792
|
+
function TU(t, e) {
|
|
45789
45793
|
const r = [], n = /* @__PURE__ */ new Set();
|
|
45790
45794
|
function i(a) {
|
|
45791
45795
|
if (n.has(a)) return;
|
|
@@ -45806,7 +45810,7 @@ function hx(t, e, r) {
|
|
|
45806
45810
|
let n;
|
|
45807
45811
|
if (t.start === "auto")
|
|
45808
45812
|
n = e;
|
|
45809
|
-
else if (
|
|
45813
|
+
else if (Br(t.start)) {
|
|
45810
45814
|
const s = Wu(t.start), o = r.get(s);
|
|
45811
45815
|
if (!o) throw new Error(`Internal error: Alias "${s}" not resolved.`);
|
|
45812
45816
|
n = o.start;
|
|
@@ -45817,7 +45821,7 @@ function hx(t, e, r) {
|
|
|
45817
45821
|
i = 1, a = !0;
|
|
45818
45822
|
else if (t.length === "auto")
|
|
45819
45823
|
i = 3;
|
|
45820
|
-
else if (
|
|
45824
|
+
else if (Br(t.length)) {
|
|
45821
45825
|
const s = Wu(t.length), o = r.get(s);
|
|
45822
45826
|
if (!o) throw new Error(`Internal error: Alias "${s}" not resolved.`);
|
|
45823
45827
|
i = o.length;
|
|
@@ -45831,7 +45835,7 @@ function hx(t, e, r) {
|
|
|
45831
45835
|
pendingEndLength: a || void 0
|
|
45832
45836
|
};
|
|
45833
45837
|
}
|
|
45834
|
-
function
|
|
45838
|
+
function MU(t) {
|
|
45835
45839
|
let e = 0;
|
|
45836
45840
|
for (const r of t)
|
|
45837
45841
|
for (const n of r.clips)
|
|
@@ -45845,7 +45849,7 @@ function W0(t) {
|
|
|
45845
45849
|
const { pendingEndLength: e, ...r } = t;
|
|
45846
45850
|
return r;
|
|
45847
45851
|
}
|
|
45848
|
-
function
|
|
45852
|
+
function zU(t, e, r) {
|
|
45849
45853
|
const n = t.getClipById(e);
|
|
45850
45854
|
if (!n)
|
|
45851
45855
|
return null;
|
|
@@ -45857,13 +45861,13 @@ function TU(t, e, r) {
|
|
|
45857
45861
|
};
|
|
45858
45862
|
}
|
|
45859
45863
|
function L1(t, e) {
|
|
45860
|
-
const { dependencies: r, allClips: n } =
|
|
45864
|
+
const { dependencies: r, allClips: n } = PU(t);
|
|
45861
45865
|
if (r.size > 0) {
|
|
45862
|
-
const m =
|
|
45866
|
+
const m = NU(r);
|
|
45863
45867
|
if (m)
|
|
45864
45868
|
throw new Error(`Circular alias reference detected: ${m.join(" -> ")}`);
|
|
45865
45869
|
}
|
|
45866
|
-
const i = n.map((m) => m.id), a =
|
|
45870
|
+
const i = n.map((m) => m.id), a = TU(r, i), s = /* @__PURE__ */ new Map();
|
|
45867
45871
|
for (const m of n)
|
|
45868
45872
|
s.set(m.id, m);
|
|
45869
45873
|
const o = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map();
|
|
@@ -45890,7 +45894,7 @@ function L1(t, e) {
|
|
|
45890
45894
|
}
|
|
45891
45895
|
c.push({ clips: v });
|
|
45892
45896
|
}
|
|
45893
|
-
const h =
|
|
45897
|
+
const h = MU(c), d = c.map((m) => ({
|
|
45894
45898
|
clips: m.clips.map((y) => {
|
|
45895
45899
|
if (y.pendingEndLength) {
|
|
45896
45900
|
const v = Math.max(h - y.start, 0.1);
|
|
@@ -45908,7 +45912,7 @@ function L1(t, e) {
|
|
|
45908
45912
|
output: t.getOutput()
|
|
45909
45913
|
};
|
|
45910
45914
|
}
|
|
45911
|
-
class
|
|
45915
|
+
class VU extends Error {
|
|
45912
45916
|
code = "INVALID_ASSET_URL";
|
|
45913
45917
|
url;
|
|
45914
45918
|
status;
|
|
@@ -45917,19 +45921,19 @@ class MU extends Error {
|
|
|
45917
45921
|
super(`Asset URL ${e} failed validation: ${n}`), this.name = "InvalidAssetUrlError", this.url = e, this.status = r, this.reason = n;
|
|
45918
45922
|
}
|
|
45919
45923
|
}
|
|
45920
|
-
function
|
|
45924
|
+
function OU(t, e, r) {
|
|
45921
45925
|
typeof r == "string" && /^https?:\/\//i.test(r) && (e.has(r) || (e.add(r), t.push(r)));
|
|
45922
45926
|
}
|
|
45923
45927
|
function dx(t, e, r) {
|
|
45924
45928
|
if (!t || typeof t != "object") return;
|
|
45925
45929
|
const { asset: n } = t;
|
|
45926
|
-
n &&
|
|
45930
|
+
n && OU(e, r, n.src);
|
|
45927
45931
|
}
|
|
45928
|
-
function
|
|
45932
|
+
function RU(t) {
|
|
45929
45933
|
const e = [];
|
|
45930
45934
|
return dx(t, e, /* @__PURE__ */ new Set()), e;
|
|
45931
45935
|
}
|
|
45932
|
-
function
|
|
45936
|
+
function LU(t) {
|
|
45933
45937
|
const e = [], r = /* @__PURE__ */ new Set(), { clips: n } = t;
|
|
45934
45938
|
if (Array.isArray(n))
|
|
45935
45939
|
for (const i of n) dx(i, e, r);
|
|
@@ -45976,7 +45980,7 @@ class En {
|
|
|
45976
45980
|
// ─── Command History ──────────────────────────────────────────────────────
|
|
45977
45981
|
commandHistory = [];
|
|
45978
45982
|
commandIndex = -1;
|
|
45979
|
-
commandQueue = new
|
|
45983
|
+
commandQueue = new CU();
|
|
45980
45984
|
// ─── Internal Bookkeeping ─────────────────────────────────────────────────
|
|
45981
45985
|
clipsToDispose = /* @__PURE__ */ new Set();
|
|
45982
45986
|
clipErrors = /* @__PURE__ */ new Map();
|
|
@@ -46021,18 +46025,18 @@ class En {
|
|
|
46021
46025
|
constructor(e) {
|
|
46022
46026
|
$s.parse(e), this.tracks = [], this.playbackTime = 0, this.totalDuration = 0, this.isPlaying = !1, this.document = new Za(e);
|
|
46023
46027
|
const r = this.document.getResolution(), n = this.document.getAspectRatio();
|
|
46024
|
-
this.backgroundColor = this.document.getBackground() ?? "#000000", this.size = r ? Fl(r, n) : this.document.getSize(), this.assetLoader = new Bl(), this.internalEvents = new ux(), this.events = this.internalEvents, this.lumaMaskController = new
|
|
46028
|
+
this.backgroundColor = this.document.getBackground() ?? "#000000", this.size = r ? Fl(r, n) : this.document.getSize(), this.assetLoader = new Bl(), this.internalEvents = new ux(), this.events = this.internalEvents, this.lumaMaskController = new cU(
|
|
46025
46029
|
() => this.canvas,
|
|
46026
46030
|
() => this.tracks,
|
|
46027
46031
|
this.internalEvents
|
|
46028
|
-
), this.playerReconciler = new
|
|
46032
|
+
), this.playerReconciler = new BU(this), this.assetGenerator = new SU({
|
|
46029
46033
|
getClipAsset: (i) => this.getResolvedClipById(i)?.asset,
|
|
46030
46034
|
applyGeneratedSrc: (i, a) => this.applyGeneratedSrc(i, a),
|
|
46031
46035
|
emitStarted: (i) => this.internalEvents.emit(pt.ClipGenerationStarted, { clipId: i }),
|
|
46032
46036
|
emitCompleted: (i) => this.internalEvents.emit(pt.ClipGenerationCompleted, { clipId: i }),
|
|
46033
46037
|
emitFailed: (i, a) => this.internalEvents.emit(pt.ClipGenerationFailed, { clipId: i, error: a }),
|
|
46034
46038
|
emitStatusChanged: (i) => this.internalEvents.emit(ge.GenerationStatusChanged, { clipId: i })
|
|
46035
|
-
}), this.mergeFieldService = new
|
|
46039
|
+
}), this.mergeFieldService = new pU(this.internalEvents), this.outputSettings = new gU(this), this.selectionManager = new bU(this), this.timingManager = new xU(this), this.setupIntentListeners(), this.setupGenerationListeners();
|
|
46036
46040
|
}
|
|
46037
46041
|
/**
|
|
46038
46042
|
* Load the edit session.
|
|
@@ -46051,7 +46055,7 @@ class En {
|
|
|
46051
46055
|
(a.timeline.fonts ?? []).map(async (o) => {
|
|
46052
46056
|
const u = o.src, l = { src: u, parser: Il.Name }, c = await this.assetLoader.load(u, l);
|
|
46053
46057
|
if (c?.family) {
|
|
46054
|
-
const h = c.family.replace(/^["']|["']$/g, ""), { baseFontFamily: d, fontWeight: m } =
|
|
46058
|
+
const h = c.family.replace(/^["']|["']$/g, ""), { baseFontFamily: d, fontWeight: m } = Fr(h);
|
|
46055
46059
|
this.fontMetadata.set(u, { baseFamilyName: d, weight: m });
|
|
46056
46060
|
}
|
|
46057
46061
|
return c;
|
|
@@ -46210,7 +46214,7 @@ class En {
|
|
|
46210
46214
|
async applyGeneratedSrc(e, r) {
|
|
46211
46215
|
const n = this.document.getClipById(e);
|
|
46212
46216
|
if (!n) return;
|
|
46213
|
-
const i = structuredClone(n.clip), a =
|
|
46217
|
+
const i = structuredClone(n.clip), a = FU(i.asset, r), s = {
|
|
46214
46218
|
...i,
|
|
46215
46219
|
asset: a?.asset ?? { ...i.asset, src: r }
|
|
46216
46220
|
};
|
|
@@ -46275,7 +46279,7 @@ class En {
|
|
|
46275
46279
|
`moveClipById: clip ${e} has a smart-clip start ("${a}"). Pass newStart explicitly or resolve start to a number first.`
|
|
46276
46280
|
)
|
|
46277
46281
|
);
|
|
46278
|
-
const o = new
|
|
46282
|
+
const o = new JZ(i.trackIndex, i.clipIndex, r, s);
|
|
46279
46283
|
return this.executeCommand(o);
|
|
46280
46284
|
}
|
|
46281
46285
|
/**
|
|
@@ -46355,7 +46359,7 @@ class En {
|
|
|
46355
46359
|
if (n?.clip.alias)
|
|
46356
46360
|
return this.resolve(), !0;
|
|
46357
46361
|
const i = n?.clip;
|
|
46358
|
-
if (i && (
|
|
46362
|
+
if (i && (Br(i.start) || Br(i.length)))
|
|
46359
46363
|
return this.resolve(), !0;
|
|
46360
46364
|
const a = r.layer - 1, s = this.tracks[a], o = s ? s.indexOf(r) : -1;
|
|
46361
46365
|
if (o < 0)
|
|
@@ -46364,7 +46368,7 @@ class En {
|
|
|
46364
46368
|
mergeFields: this.mergeFieldService,
|
|
46365
46369
|
previousClipEnd: l,
|
|
46366
46370
|
cachedTimelineEnd: this.timingManager.getTimelineEnd()
|
|
46367
|
-
}, h =
|
|
46371
|
+
}, h = zU(this.document, e, c);
|
|
46368
46372
|
if (!h)
|
|
46369
46373
|
return !1;
|
|
46370
46374
|
if (this.lastResolved) {
|
|
@@ -46374,12 +46378,12 @@ class En {
|
|
|
46374
46378
|
return this.playerReconciler.updateSinglePlayer(r, h.resolved, h.trackIndex, h.clipIndex) !== !1;
|
|
46375
46379
|
}
|
|
46376
46380
|
async addClip(e, r) {
|
|
46377
|
-
os.parse(r), await this.preflightAssetUrls(
|
|
46378
|
-
const n = new
|
|
46381
|
+
os.parse(r), await this.preflightAssetUrls(RU(r));
|
|
46382
|
+
const n = new XZ(e, r);
|
|
46379
46383
|
return this.executeCommand(n);
|
|
46380
46384
|
}
|
|
46381
46385
|
addSvgClip(e, r = {}) {
|
|
46382
|
-
const n = qf(e), { width: i, height: a } =
|
|
46386
|
+
const n = qf(e), { width: i, height: a } = HZ(n), s = r.trackIndex ?? this.selectionManager.getSelectedClipInfo()?.trackIndex ?? 0, o = {
|
|
46383
46387
|
asset: { type: "svg", src: n },
|
|
46384
46388
|
start: r.start ?? this.playbackTime,
|
|
46385
46389
|
length: r.length ?? 5,
|
|
@@ -46391,7 +46395,7 @@ class En {
|
|
|
46391
46395
|
}
|
|
46392
46396
|
/** Add a clip to the timeline from a Clip object or JSON string. */
|
|
46393
46397
|
addClipFromJson(e, r = {}) {
|
|
46394
|
-
const n = typeof e == "string" ?
|
|
46398
|
+
const n = typeof e == "string" ? BZ(e) : structuredClone(e);
|
|
46395
46399
|
if (!n)
|
|
46396
46400
|
return Promise.reject(new Error("addClipFromJson: invalid clip JSON or schema validation failed"));
|
|
46397
46401
|
U0(n);
|
|
@@ -46404,7 +46408,7 @@ class En {
|
|
|
46404
46408
|
async addTracksFromJson(e, r = {}) {
|
|
46405
46409
|
let n;
|
|
46406
46410
|
if (typeof e == "string") {
|
|
46407
|
-
const u =
|
|
46411
|
+
const u = IZ(e);
|
|
46408
46412
|
if (!u) throw new Error("addTracksFromJson: invalid tracks JSON or schema validation failed");
|
|
46409
46413
|
n = u;
|
|
46410
46414
|
} else Array.isArray(e) ? n = e : n = [e];
|
|
@@ -46427,7 +46431,7 @@ class En {
|
|
|
46427
46431
|
return c.start = d + s, c;
|
|
46428
46432
|
})
|
|
46429
46433
|
}));
|
|
46430
|
-
await this.executeCommand(new
|
|
46434
|
+
await this.executeCommand(new KZ(0, o));
|
|
46431
46435
|
}
|
|
46432
46436
|
getClip(e, r) {
|
|
46433
46437
|
const n = this.tracks[e];
|
|
@@ -46610,7 +46614,7 @@ class En {
|
|
|
46610
46614
|
return this.executeCommand(s);
|
|
46611
46615
|
}
|
|
46612
46616
|
async addTrack(e, r) {
|
|
46613
|
-
Bp.parse(r), await this.preflightAssetUrls(
|
|
46617
|
+
Bp.parse(r), await this.preflightAssetUrls(LU(r));
|
|
46614
46618
|
const n = await this.executeCommand(new Ip(e, r));
|
|
46615
46619
|
return await this.autoLinkCaptionSources(e, r.clips), n;
|
|
46616
46620
|
}
|
|
@@ -46637,10 +46641,10 @@ class En {
|
|
|
46637
46641
|
async autoLinkCaptionSources(e, r) {
|
|
46638
46642
|
for (let n = 0; n < r.length; n += 1) {
|
|
46639
46643
|
const a = r[n].asset;
|
|
46640
|
-
if (a.type === "rich-caption" &&
|
|
46641
|
-
const s =
|
|
46644
|
+
if (a.type === "rich-caption" && Br(a.src)) {
|
|
46645
|
+
const s = ZZ(this);
|
|
46642
46646
|
if (s.length > 0) {
|
|
46643
|
-
const o = s[0], u = await
|
|
46647
|
+
const o = s[0], u = await UZ(this, o.trackIndex, o.clipIndex);
|
|
46644
46648
|
await this.updateClip(e, n, { asset: { src: `alias://${u}` } });
|
|
46645
46649
|
}
|
|
46646
46650
|
}
|
|
@@ -46785,7 +46789,7 @@ class En {
|
|
|
46785
46789
|
console.warn(`Clip not found at track ${e}, index ${r}`);
|
|
46786
46790
|
return;
|
|
46787
46791
|
}
|
|
46788
|
-
const a = new
|
|
46792
|
+
const a = new sU(e, r, n);
|
|
46789
46793
|
this.executeCommand(a);
|
|
46790
46794
|
}
|
|
46791
46795
|
/** @internal */
|
|
@@ -46795,7 +46799,7 @@ class En {
|
|
|
46795
46799
|
console.warn("UpdateTextContent: clip not found in track");
|
|
46796
46800
|
return;
|
|
46797
46801
|
}
|
|
46798
|
-
const s = new
|
|
46802
|
+
const s = new oU(i, a, r);
|
|
46799
46803
|
this.executeCommand(s);
|
|
46800
46804
|
}
|
|
46801
46805
|
/** @internal */
|
|
@@ -46819,7 +46823,7 @@ class En {
|
|
|
46819
46823
|
);
|
|
46820
46824
|
for (const { url: n, status: i } of r)
|
|
46821
46825
|
if (i >= 400 && i < 500)
|
|
46822
|
-
throw new
|
|
46826
|
+
throw new VU(n, i, `HTTP ${i}`);
|
|
46823
46827
|
}
|
|
46824
46828
|
/** @internal */
|
|
46825
46829
|
executeCommand(e) {
|
|
@@ -47392,39 +47396,39 @@ class En {
|
|
|
47392
47396
|
}
|
|
47393
47397
|
// ─── Output Settings (delegated to OutputSettingsManager) ────────────────────
|
|
47394
47398
|
setOutputSize(e, r) {
|
|
47395
|
-
const n = new
|
|
47399
|
+
const n = new nU(e, r);
|
|
47396
47400
|
return this.executeCommand(n);
|
|
47397
47401
|
}
|
|
47398
47402
|
setOutputFps(e) {
|
|
47399
|
-
const r = new
|
|
47403
|
+
const r = new rU(e);
|
|
47400
47404
|
return this.executeCommand(r);
|
|
47401
47405
|
}
|
|
47402
47406
|
getOutputFps() {
|
|
47403
47407
|
return this.outputSettings.getFps();
|
|
47404
47408
|
}
|
|
47405
47409
|
setOutputFormat(e) {
|
|
47406
|
-
const r = new
|
|
47410
|
+
const r = new eU(e);
|
|
47407
47411
|
return this.executeCommand(r);
|
|
47408
47412
|
}
|
|
47409
47413
|
getOutputFormat() {
|
|
47410
47414
|
return this.outputSettings.getFormat();
|
|
47411
47415
|
}
|
|
47412
47416
|
setOutputDestinations(e) {
|
|
47413
|
-
const r = new
|
|
47417
|
+
const r = new tU(e);
|
|
47414
47418
|
return this.executeCommand(r);
|
|
47415
47419
|
}
|
|
47416
47420
|
getOutputDestinations() {
|
|
47417
47421
|
return this.outputSettings.getDestinations();
|
|
47418
47422
|
}
|
|
47419
47423
|
setOutputResolution(e) {
|
|
47420
|
-
const r = new
|
|
47424
|
+
const r = new iU(e);
|
|
47421
47425
|
return this.executeCommand(r);
|
|
47422
47426
|
}
|
|
47423
47427
|
getOutputResolution() {
|
|
47424
47428
|
return this.outputSettings.getResolution();
|
|
47425
47429
|
}
|
|
47426
47430
|
setOutputAspectRatio(e) {
|
|
47427
|
-
const r = new
|
|
47431
|
+
const r = new QZ(e);
|
|
47428
47432
|
return this.executeCommand(r);
|
|
47429
47433
|
}
|
|
47430
47434
|
/**
|
|
@@ -47437,6 +47441,10 @@ class En {
|
|
|
47437
47441
|
whenSettled() {
|
|
47438
47442
|
return this.playerReconciler.whenSettled();
|
|
47439
47443
|
}
|
|
47444
|
+
/** @internal */
|
|
47445
|
+
getLoadingClipIds() {
|
|
47446
|
+
return this.playerReconciler.getLoadingClipIds();
|
|
47447
|
+
}
|
|
47440
47448
|
/**
|
|
47441
47449
|
* Capture the rendered output frame as a base64 data URL.
|
|
47442
47450
|
*
|
|
@@ -47506,7 +47514,7 @@ class En {
|
|
|
47506
47514
|
* @internal
|
|
47507
47515
|
*/
|
|
47508
47516
|
getFontUrlByFamilyAndWeight(e, r) {
|
|
47509
|
-
const { baseFontFamily: n } =
|
|
47517
|
+
const { baseFontFamily: n } = Fr(e), i = n.toLowerCase();
|
|
47510
47518
|
for (const [a, s] of this.fontMetadata)
|
|
47511
47519
|
if (s.baseFamilyName.toLowerCase() === i && s.weight === r)
|
|
47512
47520
|
return a;
|
|
@@ -47520,11 +47528,11 @@ class En {
|
|
|
47520
47528
|
this.cleanupUnusedFonts();
|
|
47521
47529
|
}
|
|
47522
47530
|
setTimelineBackground(e) {
|
|
47523
|
-
const r = new
|
|
47531
|
+
const r = new aU(e);
|
|
47524
47532
|
return this.executeCommand(r);
|
|
47525
47533
|
}
|
|
47526
47534
|
setTimelineBackgroundInternal(e) {
|
|
47527
|
-
|
|
47535
|
+
_Z.parse(e), this.backgroundColor = e, this.document.setBackground(e), this.internalEvents.emit(ge.ViewportSizeChanged, {
|
|
47528
47536
|
width: this.size.width,
|
|
47529
47537
|
height: this.size.height,
|
|
47530
47538
|
backgroundColor: this.backgroundColor
|
|
@@ -47750,7 +47758,7 @@ class $1 {
|
|
|
47750
47758
|
this.storedPreviousBinding = void 0;
|
|
47751
47759
|
}
|
|
47752
47760
|
}
|
|
47753
|
-
function
|
|
47761
|
+
function $U(t) {
|
|
47754
47762
|
if (typeof t != "object" || t === null) return !1;
|
|
47755
47763
|
const e = t;
|
|
47756
47764
|
return e.type === "text" && (!e.text || e.text.trim() === "");
|
|
@@ -47758,7 +47766,7 @@ function RU(t) {
|
|
|
47758
47766
|
function Z1(t) {
|
|
47759
47767
|
return t.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
47760
47768
|
}
|
|
47761
|
-
function
|
|
47769
|
+
function ZU(t) {
|
|
47762
47770
|
const e = t.width ?? 100, r = t.height ?? 100, n = Z1(t.background?.color ?? "#000000"), i = t.background?.opacity ?? 1, a = t.background?.borderRadius ?? 0, s = [`width="${e}"`, `height="${r}"`, `fill="${n}"`];
|
|
47763
47771
|
if (i !== 1 && s.push(`fill-opacity="${i}"`), a > 0 && s.push(`rx="${a}"`, `ry="${a}"`), t.stroke?.width && t.stroke.width > 0) {
|
|
47764
47772
|
const o = Z1(t.stroke.color ?? "#000000");
|
|
@@ -47766,8 +47774,8 @@ function LU(t) {
|
|
|
47766
47774
|
}
|
|
47767
47775
|
return `<svg viewBox="0 0 ${e} ${r}" xmlns="http://www.w3.org/2000/svg"><rect ${s.join(" ")}/></svg>`;
|
|
47768
47776
|
}
|
|
47769
|
-
function
|
|
47770
|
-
const e = t.asset, r =
|
|
47777
|
+
function UU(t) {
|
|
47778
|
+
const e = t.asset, r = ZU(e), n = {
|
|
47771
47779
|
...t,
|
|
47772
47780
|
asset: {
|
|
47773
47781
|
type: "svg",
|
|
@@ -47776,7 +47784,7 @@ function $U(t) {
|
|
|
47776
47784
|
};
|
|
47777
47785
|
return e.width !== void 0 && n.width === void 0 && (n.width = e.width), e.height !== void 0 && n.height === void 0 && (n.height = e.height), n;
|
|
47778
47786
|
}
|
|
47779
|
-
class
|
|
47787
|
+
class vj extends En {
|
|
47780
47788
|
// Recursion guard for merge field updates (prevents stack overflow)
|
|
47781
47789
|
isUpdatingMergeFields = !1;
|
|
47782
47790
|
// ─── Merge Field API ───────────────────────────────────────────────────────
|
|
@@ -47945,7 +47953,7 @@ class gj extends En {
|
|
|
47945
47953
|
if (s.clips)
|
|
47946
47954
|
for (let o = 0; o < s.clips.length; o += 1) {
|
|
47947
47955
|
const u = s.clips[o], l = u.asset;
|
|
47948
|
-
l?.type === "text" && (
|
|
47956
|
+
l?.type === "text" && ($U(l) ? (s.clips[o] = UU(u), i += 1) : (s.clips[o] = this.convertTextClipToRichText(u), n += 1));
|
|
47949
47957
|
}
|
|
47950
47958
|
}
|
|
47951
47959
|
return console.log("CONVERTED TEMPLATE - Copy the JSON below:"), console.log(JSON.stringify(r, null, " ")), { richText: n, svg: i };
|
|
@@ -47961,7 +47969,7 @@ class gj extends En {
|
|
|
47961
47969
|
* Convert a text clip to rich-text format (pure JSON transformation).
|
|
47962
47970
|
*/
|
|
47963
47971
|
convertTextClipToRichText(e) {
|
|
47964
|
-
const r = e.asset, n = r.font?.family ?? "Open Sans", { fontWeight: i } =
|
|
47972
|
+
const r = e.asset, n = r.font?.family ?? "Open Sans", { fontWeight: i } = Fr(n), a = {
|
|
47965
47973
|
family: n,
|
|
47966
47974
|
size: typeof r.font?.size == "string" ? Number(r.font.size) : r.font?.size ?? 32,
|
|
47967
47975
|
weight: r.font?.weight ?? i,
|
|
@@ -48061,16 +48069,16 @@ class gj extends En {
|
|
|
48061
48069
|
}
|
|
48062
48070
|
}
|
|
48063
48071
|
}
|
|
48064
|
-
function
|
|
48072
|
+
function bj(t, e) {
|
|
48065
48073
|
return t.registerGenerationSettings(e);
|
|
48066
48074
|
}
|
|
48067
|
-
function
|
|
48075
|
+
function wj(t, e) {
|
|
48068
48076
|
return t.registerGenerationStatus(e);
|
|
48069
48077
|
}
|
|
48070
48078
|
var Nt, Ki = new Array(128).fill(void 0);
|
|
48071
48079
|
Ki.push(void 0, null, !0, !1);
|
|
48072
48080
|
var to = Ki.length;
|
|
48073
|
-
function
|
|
48081
|
+
function Ar(t) {
|
|
48074
48082
|
to === Ki.length && Ki.push(Ki.length + 1);
|
|
48075
48083
|
const e = to;
|
|
48076
48084
|
return to = Ki[e], Ki[e] = t, e;
|
|
@@ -48078,12 +48086,12 @@ function kr(t) {
|
|
|
48078
48086
|
function br(t) {
|
|
48079
48087
|
return Ki[t];
|
|
48080
48088
|
}
|
|
48081
|
-
function
|
|
48089
|
+
function jU(t) {
|
|
48082
48090
|
t < 132 || (Ki[t] = to, to = t);
|
|
48083
48091
|
}
|
|
48084
48092
|
function Ji(t) {
|
|
48085
48093
|
const e = br(t);
|
|
48086
|
-
return
|
|
48094
|
+
return jU(t), e;
|
|
48087
48095
|
}
|
|
48088
48096
|
var go = 0, Us = null;
|
|
48089
48097
|
function Uu() {
|
|
@@ -48091,7 +48099,7 @@ function Uu() {
|
|
|
48091
48099
|
}
|
|
48092
48100
|
var ju = typeof TextEncoder < "u" ? new TextEncoder("utf-8") : { encode: () => {
|
|
48093
48101
|
throw Error("TextEncoder not available");
|
|
48094
|
-
} },
|
|
48102
|
+
} }, GU = typeof ju.encodeInto == "function" ? function(t, e) {
|
|
48095
48103
|
return ju.encodeInto(t, e);
|
|
48096
48104
|
} : function(t, e) {
|
|
48097
48105
|
const r = ju.encode(t);
|
|
@@ -48116,7 +48124,7 @@ function H0(t, e, r) {
|
|
|
48116
48124
|
}
|
|
48117
48125
|
if (s !== n) {
|
|
48118
48126
|
s !== 0 && (t = t.slice(s)), i = r(i, n, n = s + t.length * 3, 1) >>> 0;
|
|
48119
|
-
const o = Uu().subarray(i + s, i + n), u =
|
|
48127
|
+
const o = Uu().subarray(i + s, i + n), u = GU(t, o);
|
|
48120
48128
|
s += u.written, i = r(i, n, s, 1) >>> 0;
|
|
48121
48129
|
}
|
|
48122
48130
|
return go = s, i;
|
|
@@ -48135,16 +48143,16 @@ typeof TextDecoder < "u" && px.decode();
|
|
|
48135
48143
|
function Gu(t, e) {
|
|
48136
48144
|
return t = t >>> 0, px.decode(Uu().subarray(t, t + e));
|
|
48137
48145
|
}
|
|
48138
|
-
function
|
|
48146
|
+
function WU(t, e) {
|
|
48139
48147
|
if (!(t instanceof e))
|
|
48140
48148
|
throw new Error(`expected instance of ${e.name}`);
|
|
48141
48149
|
return t.ptr;
|
|
48142
48150
|
}
|
|
48143
|
-
function
|
|
48151
|
+
function HU(t, e) {
|
|
48144
48152
|
try {
|
|
48145
48153
|
return t.apply(this, e);
|
|
48146
48154
|
} catch (r) {
|
|
48147
|
-
Nt.__wbindgen_exn_store(
|
|
48155
|
+
Nt.__wbindgen_exn_store(Ar(r));
|
|
48148
48156
|
}
|
|
48149
48157
|
}
|
|
48150
48158
|
var U1 = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
@@ -48213,7 +48221,7 @@ var U1 = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
|
48213
48221
|
}
|
|
48214
48222
|
}, j1 = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
48215
48223
|
}, unregister: () => {
|
|
48216
|
-
} } : new FinalizationRegistry((t) => Nt.__wbg_renderedimage_free(t >>> 0)),
|
|
48224
|
+
} } : new FinalizationRegistry((t) => Nt.__wbg_renderedimage_free(t >>> 0)), YU = class gx {
|
|
48217
48225
|
static __wrap(e) {
|
|
48218
48226
|
e = e >>> 0;
|
|
48219
48227
|
const r = Object.create(gx.prototype);
|
|
@@ -48265,12 +48273,12 @@ var U1 = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
|
48265
48273
|
const e = Nt.renderedimage_pixels(this.__wbg_ptr);
|
|
48266
48274
|
return Ji(e);
|
|
48267
48275
|
}
|
|
48268
|
-
},
|
|
48276
|
+
}, qU = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
48269
48277
|
}, unregister: () => {
|
|
48270
|
-
} } : new FinalizationRegistry((t) => Nt.__wbg_resvg_free(t >>> 0)),
|
|
48278
|
+
} } : new FinalizationRegistry((t) => Nt.__wbg_resvg_free(t >>> 0)), XU = class {
|
|
48271
48279
|
__destroy_into_raw() {
|
|
48272
48280
|
const t = this.__wbg_ptr;
|
|
48273
|
-
return this.__wbg_ptr = 0,
|
|
48281
|
+
return this.__wbg_ptr = 0, qU.unregister(this), t;
|
|
48274
48282
|
}
|
|
48275
48283
|
free() {
|
|
48276
48284
|
const t = this.__destroy_into_raw();
|
|
@@ -48285,7 +48293,7 @@ var U1 = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
|
48285
48293
|
try {
|
|
48286
48294
|
const u = Nt.__wbindgen_add_to_stack_pointer(-16);
|
|
48287
48295
|
var n = Y0(e) ? 0 : H0(e, Nt.__wbindgen_malloc, Nt.__wbindgen_realloc), i = go;
|
|
48288
|
-
Nt.resvg_new(u,
|
|
48296
|
+
Nt.resvg_new(u, Ar(t), n, i, Y0(r) ? 0 : Ar(r));
|
|
48289
48297
|
var a = Je()[u / 4 + 0], s = Je()[u / 4 + 1], o = Je()[u / 4 + 2];
|
|
48290
48298
|
if (o)
|
|
48291
48299
|
throw Ji(s);
|
|
@@ -48319,7 +48327,7 @@ var U1 = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
|
48319
48327
|
var t = Je()[n / 4 + 0], e = Je()[n / 4 + 1], r = Je()[n / 4 + 2];
|
|
48320
48328
|
if (r)
|
|
48321
48329
|
throw Ji(e);
|
|
48322
|
-
return
|
|
48330
|
+
return YU.__wrap(t);
|
|
48323
48331
|
} finally {
|
|
48324
48332
|
Nt.__wbindgen_add_to_stack_pointer(16);
|
|
48325
48333
|
}
|
|
@@ -48365,7 +48373,7 @@ var U1 = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
|
48365
48373
|
* @param {BBox} bbox
|
|
48366
48374
|
*/
|
|
48367
48375
|
cropByBBox(t) {
|
|
48368
|
-
|
|
48376
|
+
WU(t, Jf), Nt.resvg_cropByBBox(this.__wbg_ptr, t.__wbg_ptr);
|
|
48369
48377
|
}
|
|
48370
48378
|
/**
|
|
48371
48379
|
* @returns {Array<any>}
|
|
@@ -48389,7 +48397,7 @@ var U1 = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
|
48389
48397
|
resolveImage(t, e) {
|
|
48390
48398
|
try {
|
|
48391
48399
|
const i = Nt.__wbindgen_add_to_stack_pointer(-16), a = H0(t, Nt.__wbindgen_malloc, Nt.__wbindgen_realloc), s = go;
|
|
48392
|
-
Nt.resvg_resolveImage(i, this.__wbg_ptr, a, s,
|
|
48400
|
+
Nt.resvg_resolveImage(i, this.__wbg_ptr, a, s, Ar(e));
|
|
48393
48401
|
var r = Je()[i / 4 + 0], n = Je()[i / 4 + 1];
|
|
48394
48402
|
if (n)
|
|
48395
48403
|
throw Ji(r);
|
|
@@ -48398,7 +48406,7 @@ var U1 = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
|
48398
48406
|
}
|
|
48399
48407
|
}
|
|
48400
48408
|
};
|
|
48401
|
-
async function
|
|
48409
|
+
async function KU(t, e) {
|
|
48402
48410
|
if (typeof Response == "function" && t instanceof Response) {
|
|
48403
48411
|
if (typeof WebAssembly.instantiateStreaming == "function")
|
|
48404
48412
|
try {
|
|
@@ -48416,38 +48424,38 @@ async function qU(t, e) {
|
|
|
48416
48424
|
return r instanceof WebAssembly.Instance ? { instance: r, module: t } : r;
|
|
48417
48425
|
}
|
|
48418
48426
|
}
|
|
48419
|
-
function
|
|
48427
|
+
function JU() {
|
|
48420
48428
|
const t = {};
|
|
48421
48429
|
return t.wbg = {}, t.wbg.__wbg_new_28c511d9baebfa89 = function(e, r) {
|
|
48422
48430
|
const n = new Error(Gu(e, r));
|
|
48423
|
-
return
|
|
48431
|
+
return Ar(n);
|
|
48424
48432
|
}, t.wbg.__wbindgen_memory = function() {
|
|
48425
48433
|
const e = Nt.memory;
|
|
48426
|
-
return
|
|
48434
|
+
return Ar(e);
|
|
48427
48435
|
}, t.wbg.__wbg_buffer_12d079cc21e14bdb = function(e) {
|
|
48428
48436
|
const r = br(e).buffer;
|
|
48429
|
-
return
|
|
48437
|
+
return Ar(r);
|
|
48430
48438
|
}, t.wbg.__wbg_newwithbyteoffsetandlength_aa4a17c33a06e5cb = function(e, r, n) {
|
|
48431
48439
|
const i = new Uint8Array(br(e), r >>> 0, n >>> 0);
|
|
48432
|
-
return
|
|
48440
|
+
return Ar(i);
|
|
48433
48441
|
}, t.wbg.__wbindgen_object_drop_ref = function(e) {
|
|
48434
48442
|
Ji(e);
|
|
48435
48443
|
}, t.wbg.__wbg_new_63b92bc8671ed464 = function(e) {
|
|
48436
48444
|
const r = new Uint8Array(br(e));
|
|
48437
|
-
return
|
|
48445
|
+
return Ar(r);
|
|
48438
48446
|
}, t.wbg.__wbg_values_839f3396d5aac002 = function(e) {
|
|
48439
48447
|
const r = br(e).values();
|
|
48440
|
-
return
|
|
48448
|
+
return Ar(r);
|
|
48441
48449
|
}, t.wbg.__wbg_next_196c84450b364254 = function() {
|
|
48442
|
-
return
|
|
48450
|
+
return HU(function(e) {
|
|
48443
48451
|
const r = br(e).next();
|
|
48444
|
-
return
|
|
48452
|
+
return Ar(r);
|
|
48445
48453
|
}, arguments);
|
|
48446
48454
|
}, t.wbg.__wbg_done_298b57d23c0fc80c = function(e) {
|
|
48447
48455
|
return br(e).done;
|
|
48448
48456
|
}, t.wbg.__wbg_value_d93c65011f51a456 = function(e) {
|
|
48449
48457
|
const r = br(e).value;
|
|
48450
|
-
return
|
|
48458
|
+
return Ar(r);
|
|
48451
48459
|
}, t.wbg.__wbg_instanceof_Uint8Array_2b3bbecd033d19f6 = function(e) {
|
|
48452
48460
|
let r;
|
|
48453
48461
|
try {
|
|
@@ -48462,10 +48470,10 @@ function XU() {
|
|
|
48462
48470
|
Je()[e / 4 + 1] = s, Je()[e / 4 + 0] = a;
|
|
48463
48471
|
}, t.wbg.__wbg_new_16b304a2cfa7ff4a = function() {
|
|
48464
48472
|
const e = new Array();
|
|
48465
|
-
return
|
|
48473
|
+
return Ar(e);
|
|
48466
48474
|
}, t.wbg.__wbindgen_string_new = function(e, r) {
|
|
48467
48475
|
const n = Gu(e, r);
|
|
48468
|
-
return
|
|
48476
|
+
return Ar(n);
|
|
48469
48477
|
}, t.wbg.__wbg_push_a5b05aedc7234f9f = function(e, r) {
|
|
48470
48478
|
return br(e).push(br(r));
|
|
48471
48479
|
}, t.wbg.__wbg_length_c20a40f15020d68a = function(e) {
|
|
@@ -48476,23 +48484,23 @@ function XU() {
|
|
|
48476
48484
|
throw new Error(Gu(e, r));
|
|
48477
48485
|
}, t;
|
|
48478
48486
|
}
|
|
48479
|
-
function
|
|
48487
|
+
function QU(t, e) {
|
|
48480
48488
|
return Nt = t.exports, yx.__wbindgen_wasm_module = e, js = null, Us = null, Nt;
|
|
48481
48489
|
}
|
|
48482
48490
|
async function yx(t) {
|
|
48483
48491
|
if (Nt !== void 0)
|
|
48484
48492
|
return Nt;
|
|
48485
48493
|
typeof t > "u" && (t = new URL("index_bg.wasm", void 0));
|
|
48486
|
-
const e =
|
|
48494
|
+
const e = JU();
|
|
48487
48495
|
(typeof t == "string" || typeof Request == "function" && t instanceof Request || typeof URL == "function" && t instanceof URL) && (t = fetch(t));
|
|
48488
|
-
const { instance: r, module: n } = await
|
|
48489
|
-
return
|
|
48496
|
+
const { instance: r, module: n } = await KU(await t, e);
|
|
48497
|
+
return QU(r, n);
|
|
48490
48498
|
}
|
|
48491
|
-
var
|
|
48499
|
+
var tj = yx, q0 = !1, ej = async (t) => {
|
|
48492
48500
|
if (q0)
|
|
48493
48501
|
throw new Error("Already initialized. The `initWasm()` function can be used only once.");
|
|
48494
|
-
await
|
|
48495
|
-
},
|
|
48502
|
+
await tj(await t), q0 = !0;
|
|
48503
|
+
}, rj = class extends XU {
|
|
48496
48504
|
/**
|
|
48497
48505
|
* @param {Uint8Array | string} svg
|
|
48498
48506
|
* @param {ResvgRenderOptions | undefined} options
|
|
@@ -48501,7 +48509,7 @@ var JU = yx, q0 = !1, QU = async (t) => {
|
|
|
48501
48509
|
if (!q0)
|
|
48502
48510
|
throw new Error("Wasm has not been initialized. Call `initWasm()` function.");
|
|
48503
48511
|
const r = e?.font;
|
|
48504
|
-
if (r &&
|
|
48512
|
+
if (r && ij(r)) {
|
|
48505
48513
|
const n = {
|
|
48506
48514
|
...e,
|
|
48507
48515
|
font: {
|
|
@@ -48514,18 +48522,18 @@ var JU = yx, q0 = !1, QU = async (t) => {
|
|
|
48514
48522
|
super(t, JSON.stringify(e));
|
|
48515
48523
|
}
|
|
48516
48524
|
};
|
|
48517
|
-
function
|
|
48525
|
+
function ij(t) {
|
|
48518
48526
|
return Object.prototype.hasOwnProperty.call(t, "fontBuffers");
|
|
48519
48527
|
}
|
|
48520
|
-
const
|
|
48528
|
+
const nj = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
48521
48529
|
__proto__: null,
|
|
48522
|
-
Resvg:
|
|
48523
|
-
initWasm:
|
|
48524
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
48530
|
+
Resvg: rj,
|
|
48531
|
+
initWasm: ej
|
|
48532
|
+
}, Symbol.toStringTag, { value: "Module" })), aj = {}, Bu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
48525
48533
|
__proto__: null,
|
|
48526
|
-
default:
|
|
48534
|
+
default: aj
|
|
48527
48535
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
48528
|
-
var
|
|
48536
|
+
var sj = Ge({ "node_modules/.pnpm/harfbuzzjs@0.4.12/node_modules/harfbuzzjs/hb.js"(t, e) {
|
|
48529
48537
|
var r = (() => {
|
|
48530
48538
|
var n = typeof document < "u" ? document.currentScript?.src : void 0;
|
|
48531
48539
|
return async function(i = {}) {
|
|
@@ -48652,10 +48660,10 @@ var nj = Ge({ "node_modules/.pnpm/harfbuzzjs@0.4.12/node_modules/harfbuzzjs/hb.j
|
|
|
48652
48660
|
return jt(mt, qt);
|
|
48653
48661
|
}
|
|
48654
48662
|
function fe() {
|
|
48655
|
-
return { env:
|
|
48663
|
+
return { env: Mr, wasi_snapshot_preview1: Mr };
|
|
48656
48664
|
}
|
|
48657
48665
|
async function ee() {
|
|
48658
|
-
function P($e,
|
|
48666
|
+
function P($e, zr) {
|
|
48659
48667
|
return ur = $e.exports, s.wasmExports = ur, $ = ur.memory, s.wasmMemory = $, I(), Yt = ur.__indirect_function_table, pr(ur), ht(), ur;
|
|
48660
48668
|
}
|
|
48661
48669
|
gt();
|
|
@@ -48664,7 +48672,7 @@ var nj = Ge({ "node_modules/.pnpm/harfbuzzjs@0.4.12/node_modules/harfbuzzjs/hb.j
|
|
|
48664
48672
|
}
|
|
48665
48673
|
var qt = fe();
|
|
48666
48674
|
if (s.instantiateWasm)
|
|
48667
|
-
return new Promise(($e,
|
|
48675
|
+
return new Promise(($e, zr) => {
|
|
48668
48676
|
s.instantiateWasm(qt, (si, Gn) => {
|
|
48669
48677
|
$e(P(si));
|
|
48670
48678
|
});
|
|
@@ -48726,16 +48734,16 @@ var nj = Ge({ "node_modules/.pnpm/harfbuzzjs@0.4.12/node_modules/harfbuzzjs/hb.j
|
|
|
48726
48734
|
for (var de = 1; de <= 4; de *= 2) {
|
|
48727
48735
|
var ne = mt * (1 + 0.2 / de);
|
|
48728
48736
|
ne = Math.min(ne, P + 100663296);
|
|
48729
|
-
var $e = Math.min(qt, yt(Math.max(P, ne), 65536)),
|
|
48730
|
-
if (
|
|
48737
|
+
var $e = Math.min(qt, yt(Math.max(P, ne), 65536)), zr = Ve($e);
|
|
48738
|
+
if (zr)
|
|
48731
48739
|
return !0;
|
|
48732
48740
|
}
|
|
48733
48741
|
return !1;
|
|
48734
48742
|
}, we = (P) => {
|
|
48735
48743
|
const mt = P.length;
|
|
48736
48744
|
return [mt % 128 | 128, mt >> 7, ...P];
|
|
48737
|
-
},
|
|
48738
|
-
var qt =
|
|
48745
|
+
}, Tr = { i: 127, p: 127, j: 126, f: 125, d: 124, e: 111 }, Re = (P) => we(Array.from(P, (mt) => {
|
|
48746
|
+
var qt = Tr[mt];
|
|
48739
48747
|
return qt;
|
|
48740
48748
|
})), Kt = (P, mt) => {
|
|
48741
48749
|
var qt = Uint8Array.of(0, 97, 115, 109, 1, 0, 0, 0, 1, ...we([1, 96, ...Re(mt.slice(1)), ...Re(mt[0] === "v" ? "" : mt[0])]), 2, 7, 1, 1, 101, 1, 102, 0, 0, 7, 5, 1, 1, 102, 0, 0), de = new WebAssembly.Module(qt), ne = new WebAssembly.Instance(de, { e: { f: P } }), $e = ne.exports.f;
|
|
@@ -48768,7 +48776,7 @@ var nj = Ge({ "node_modules/.pnpm/harfbuzzjs@0.4.12/node_modules/harfbuzzjs/hb.j
|
|
|
48768
48776
|
function pr(P) {
|
|
48769
48777
|
s._hb_blob_create = P.hb_blob_create, s._hb_blob_destroy = P.hb_blob_destroy, s._hb_blob_get_length = P.hb_blob_get_length, s._hb_blob_get_data = P.hb_blob_get_data, s._hb_buffer_serialize_glyphs = P.hb_buffer_serialize_glyphs, s._hb_buffer_create = P.hb_buffer_create, s._hb_buffer_destroy = P.hb_buffer_destroy, s._hb_buffer_get_content_type = P.hb_buffer_get_content_type, s._hb_buffer_set_direction = P.hb_buffer_set_direction, s._hb_buffer_set_script = P.hb_buffer_set_script, s._hb_buffer_set_language = P.hb_buffer_set_language, s._hb_buffer_set_flags = P.hb_buffer_set_flags, s._hb_buffer_set_cluster_level = P.hb_buffer_set_cluster_level, s._hb_buffer_get_length = P.hb_buffer_get_length, s._hb_buffer_get_glyph_infos = P.hb_buffer_get_glyph_infos, s._hb_buffer_get_glyph_positions = P.hb_buffer_get_glyph_positions, s._hb_glyph_info_get_glyph_flags = P.hb_glyph_info_get_glyph_flags, s._hb_buffer_guess_segment_properties = P.hb_buffer_guess_segment_properties, s._hb_buffer_add_utf8 = P.hb_buffer_add_utf8, s._hb_buffer_add_utf16 = P.hb_buffer_add_utf16, s._hb_buffer_set_message_func = P.hb_buffer_set_message_func, s._hb_language_from_string = P.hb_language_from_string, s._hb_script_from_string = P.hb_script_from_string, s._hb_version = P.hb_version, s._hb_version_string = P.hb_version_string, s._hb_feature_from_string = P.hb_feature_from_string, s._malloc = P.malloc, s._free = P.free, s._hb_draw_funcs_set_move_to_func = P.hb_draw_funcs_set_move_to_func, s._hb_draw_funcs_set_line_to_func = P.hb_draw_funcs_set_line_to_func, s._hb_draw_funcs_set_quadratic_to_func = P.hb_draw_funcs_set_quadratic_to_func, s._hb_draw_funcs_set_cubic_to_func = P.hb_draw_funcs_set_cubic_to_func, s._hb_draw_funcs_set_close_path_func = P.hb_draw_funcs_set_close_path_func, s._hb_draw_funcs_create = P.hb_draw_funcs_create, s._hb_draw_funcs_destroy = P.hb_draw_funcs_destroy, s._hb_face_create = P.hb_face_create, s._hb_face_destroy = P.hb_face_destroy, s._hb_face_reference_table = P.hb_face_reference_table, s._hb_face_get_upem = P.hb_face_get_upem, s._hb_face_collect_unicodes = P.hb_face_collect_unicodes, s._hb_font_draw_glyph = P.hb_font_draw_glyph, s._hb_font_glyph_to_string = P.hb_font_glyph_to_string, s._hb_font_create = P.hb_font_create, s._hb_font_set_variations = P.hb_font_set_variations, s._hb_font_destroy = P.hb_font_destroy, s._hb_font_set_scale = P.hb_font_set_scale, s._hb_set_create = P.hb_set_create, s._hb_set_destroy = P.hb_set_destroy, s._hb_ot_var_get_axis_infos = P.hb_ot_var_get_axis_infos, s._hb_set_get_population = P.hb_set_get_population, s._hb_set_next_many = P.hb_set_next_many, s._hb_shape = P.hb_shape, Gr = P._emscripten_timeout;
|
|
48770
48778
|
}
|
|
48771
|
-
var
|
|
48779
|
+
var Mr = { _abort_js: Et, _emscripten_runtime_keepalive_clear: At, _setitimer_js: se, emscripten_resize_heap: Qe, proc_exit: wt }, ur = await ee();
|
|
48772
48780
|
function Zi() {
|
|
48773
48781
|
if (j > 0) {
|
|
48774
48782
|
ft = Zi;
|
|
@@ -48797,11 +48805,11 @@ var nj = Ge({ "node_modules/.pnpm/harfbuzzjs@0.4.12/node_modules/harfbuzzjs/hb.j
|
|
|
48797
48805
|
})();
|
|
48798
48806
|
typeof t == "object" && typeof e == "object" ? (e.exports = r, e.exports.default = r) : typeof define == "function" && define.amd && define([], () => r);
|
|
48799
48807
|
} });
|
|
48800
|
-
const
|
|
48808
|
+
const oj = sj(), uj = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
48801
48809
|
__proto__: null,
|
|
48802
|
-
default:
|
|
48810
|
+
default: oj
|
|
48803
48811
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
48804
|
-
var
|
|
48812
|
+
var lj = Ge({ "node_modules/.pnpm/harfbuzzjs@0.4.12/node_modules/harfbuzzjs/hbjs.js"(t, e) {
|
|
48805
48813
|
function r(n) {
|
|
48806
48814
|
var i = n.wasmExports, a = new TextDecoder("utf8");
|
|
48807
48815
|
let s = n.addFunction, o = n.removeFunction;
|
|
@@ -48982,14 +48990,14 @@ var oj = Ge({ "node_modules/.pnpm/harfbuzzjs@0.4.12/node_modules/harfbuzzjs/hbjs
|
|
|
48982
48990
|
} catch {
|
|
48983
48991
|
}
|
|
48984
48992
|
} });
|
|
48985
|
-
const
|
|
48993
|
+
const cj = lj(), fj = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
48986
48994
|
__proto__: null,
|
|
48987
|
-
default:
|
|
48995
|
+
default: cj
|
|
48988
48996
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
48989
48997
|
export {
|
|
48990
48998
|
En as Edit,
|
|
48991
|
-
|
|
48992
|
-
|
|
48993
|
-
|
|
48994
|
-
|
|
48999
|
+
VU as InvalidAssetUrlError,
|
|
49000
|
+
vj as ShotstackEdit,
|
|
49001
|
+
bj as registerGenerationSettings,
|
|
49002
|
+
wj as registerGenerationStatus
|
|
48995
49003
|
};
|