@bylqwjc/media-editor-video 1.0.0

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.
Files changed (60) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +55 -0
  3. package/dist/chunk-EK7ODJWE.js +1 -0
  4. package/dist/index-CX2iAapm.d.ts +51 -0
  5. package/dist/index.d.ts +61 -0
  6. package/dist/index.js +2273 -0
  7. package/dist/lazy.d.ts +7 -0
  8. package/dist/lazy.js +1 -0
  9. package/dist/legacy.js +65 -0
  10. package/node_modules/@media-editor/client/LICENSE +21 -0
  11. package/node_modules/@media-editor/client/README.md +27 -0
  12. package/node_modules/@media-editor/client/dist/index.d.ts +24 -0
  13. package/node_modules/@media-editor/client/dist/index.js +1 -0
  14. package/node_modules/@media-editor/client/package.json +22 -0
  15. package/node_modules/@media-editor/core/LICENSE +21 -0
  16. package/node_modules/@media-editor/core/README.md +14 -0
  17. package/node_modules/@media-editor/core/dist/browser.d.ts +100 -0
  18. package/node_modules/@media-editor/core/dist/browser.js +3 -0
  19. package/node_modules/@media-editor/core/dist/chunk-MGKYVYOH.js +1 -0
  20. package/node_modules/@media-editor/core/dist/chunk-USY6UDGL.js +1 -0
  21. package/node_modules/@media-editor/core/dist/chunk-XCBM7P7N.js +1 -0
  22. package/node_modules/@media-editor/core/dist/engine.d.ts +359 -0
  23. package/node_modules/@media-editor/core/dist/engine.js +1 -0
  24. package/node_modules/@media-editor/core/dist/index.d.ts +264 -0
  25. package/node_modules/@media-editor/core/dist/index.js +1 -0
  26. package/node_modules/@media-editor/core/dist/platform-presets-B-o4C6uY.d.ts +80 -0
  27. package/node_modules/@media-editor/core/dist/state-B85vkf7_.d.ts +1027 -0
  28. package/node_modules/@media-editor/core/node_modules/zod/LICENSE +21 -0
  29. package/node_modules/@media-editor/core/node_modules/zod/README.md +208 -0
  30. package/node_modules/@media-editor/core/node_modules/zod/index.d.cts +4 -0
  31. package/node_modules/@media-editor/core/node_modules/zod/index.js +1 -0
  32. package/node_modules/@media-editor/core/node_modules/zod/package.json +74 -0
  33. package/node_modules/@media-editor/core/node_modules/zod/v3/ZodError.d.cts +164 -0
  34. package/node_modules/@media-editor/core/node_modules/zod/v3/ZodError.js +1 -0
  35. package/node_modules/@media-editor/core/node_modules/zod/v3/errors.d.cts +5 -0
  36. package/node_modules/@media-editor/core/node_modules/zod/v3/errors.js +1 -0
  37. package/node_modules/@media-editor/core/node_modules/zod/v3/external.d.cts +6 -0
  38. package/node_modules/@media-editor/core/node_modules/zod/v3/external.js +1 -0
  39. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
  40. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/enumUtil.js +0 -0
  41. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
  42. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/errorUtil.js +1 -0
  43. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
  44. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/parseUtil.js +1 -0
  45. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
  46. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/partialUtil.js +0 -0
  47. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
  48. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/typeAliases.js +0 -0
  49. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/util.d.cts +85 -0
  50. package/node_modules/@media-editor/core/node_modules/zod/v3/helpers/util.js +1 -0
  51. package/node_modules/@media-editor/core/node_modules/zod/v3/index.d.cts +4 -0
  52. package/node_modules/@media-editor/core/node_modules/zod/v3/index.js +1 -0
  53. package/node_modules/@media-editor/core/node_modules/zod/v3/locales/en.d.cts +3 -0
  54. package/node_modules/@media-editor/core/node_modules/zod/v3/locales/en.js +1 -0
  55. package/node_modules/@media-editor/core/node_modules/zod/v3/standard-schema.d.cts +102 -0
  56. package/node_modules/@media-editor/core/node_modules/zod/v3/standard-schema.js +0 -0
  57. package/node_modules/@media-editor/core/node_modules/zod/v3/types.d.cts +1031 -0
  58. package/node_modules/@media-editor/core/node_modules/zod/v3/types.js +1 -0
  59. package/node_modules/@media-editor/core/package.json +34 -0
  60. package/package.json +33 -0
@@ -0,0 +1,85 @@
1
+ export declare namespace util {
2
+ type AssertEqual<T, U> = (<V>() => V extends T ? 1 : 2) extends <V>() => V extends U ? 1 : 2 ? true : false;
3
+ export type isAny<T> = 0 extends 1 & T ? true : false;
4
+ export const assertEqual: <A, B>(_: AssertEqual<A, B>) => void;
5
+ export function assertIs<T>(_arg: T): void;
6
+ export function assertNever(_x: never): never;
7
+ export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
8
+ export type OmitKeys<T, K extends string> = Pick<T, Exclude<keyof T, K>>;
9
+ export type MakePartial<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
10
+ export type Exactly<T, X> = T & Record<Exclude<keyof X, keyof T>, never>;
11
+ export type InexactPartial<T> = {
12
+ [k in keyof T]?: T[k] | undefined;
13
+ };
14
+ export const arrayToEnum: <T extends string, U extends [T, ...T[]]>(items: U) => { [k in U[number]]: k; };
15
+ export const getValidEnumValues: (obj: any) => any[];
16
+ export const objectValues: (obj: any) => any[];
17
+ export const objectKeys: ObjectConstructor["keys"];
18
+ export const find: <T>(arr: T[], checker: (arg: T) => any) => T | undefined;
19
+ export type identity<T> = objectUtil.identity<T>;
20
+ export type flatten<T> = objectUtil.flatten<T>;
21
+ export type noUndefined<T> = T extends undefined ? never : T;
22
+ export const isInteger: NumberConstructor["isInteger"];
23
+ export function joinValues<T extends any[]>(array: T, separator?: string): string;
24
+ export const jsonStringifyReplacer: (_: string, value: any) => any;
25
+ export {};
26
+ }
27
+ export declare namespace objectUtil {
28
+ export type MergeShapes<U, V> = keyof U & keyof V extends never ? U & V : {
29
+ [k in Exclude<keyof U, keyof V>]: U[k];
30
+ } & V;
31
+ type optionalKeys<T extends object> = {
32
+ [k in keyof T]: undefined extends T[k] ? k : never;
33
+ }[keyof T];
34
+ type requiredKeys<T extends object> = {
35
+ [k in keyof T]: undefined extends T[k] ? never : k;
36
+ }[keyof T];
37
+ export type addQuestionMarks<T extends object, _O = any> = {
38
+ [K in requiredKeys<T>]: T[K];
39
+ } & {
40
+ [K in optionalKeys<T>]?: T[K];
41
+ } & {
42
+ [k in keyof T]?: unknown;
43
+ };
44
+ export type identity<T> = T;
45
+ export type flatten<T> = identity<{
46
+ [k in keyof T]: T[k];
47
+ }>;
48
+ export type noNeverKeys<T> = {
49
+ [k in keyof T]: [T[k]] extends [never] ? never : k;
50
+ }[keyof T];
51
+ export type noNever<T> = identity<{
52
+ [k in noNeverKeys<T>]: k extends keyof T ? T[k] : never;
53
+ }>;
54
+ export const mergeShapes: <U, T>(first: U, second: T) => T & U;
55
+ export type extendShape<A extends object, B extends object> = keyof A & keyof B extends never ? A & B : {
56
+ [K in keyof A as K extends keyof B ? never : K]: A[K];
57
+ } & {
58
+ [K in keyof B]: B[K];
59
+ };
60
+ export {};
61
+ }
62
+ export declare const ZodParsedType: {
63
+ string: "string";
64
+ nan: "nan";
65
+ number: "number";
66
+ integer: "integer";
67
+ float: "float";
68
+ boolean: "boolean";
69
+ date: "date";
70
+ bigint: "bigint";
71
+ symbol: "symbol";
72
+ function: "function";
73
+ undefined: "undefined";
74
+ null: "null";
75
+ array: "array";
76
+ object: "object";
77
+ unknown: "unknown";
78
+ promise: "promise";
79
+ void: "void";
80
+ never: "never";
81
+ map: "map";
82
+ set: "set";
83
+ };
84
+ export type ZodParsedType = keyof typeof ZodParsedType;
85
+ export declare const getParsedType: (data: any) => ZodParsedType;
@@ -0,0 +1 @@
1
+ var u;(function(n){n.assertEqual=e=>{};function s(e){}n.assertIs=s;function f(e){throw new Error}n.assertNever=f,n.arrayToEnum=e=>{const r={};for(const o of e)r[o]=o;return r},n.getValidEnumValues=e=>{const r=n.objectKeys(e).filter(i=>typeof e[e[i]]!="number"),o={};for(const i of r)o[i]=e[i];return n.objectValues(o)},n.objectValues=e=>n.objectKeys(e).map(function(r){return e[r]}),n.objectKeys=typeof Object.keys=="function"?e=>Object.keys(e):e=>{const r=[];for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.push(o);return r},n.find=(e,r)=>{for(const o of e)if(r(o))return o},n.isInteger=typeof Number.isInteger=="function"?e=>Number.isInteger(e):e=>typeof e=="number"&&Number.isFinite(e)&&Math.floor(e)===e;function a(e,r=" | "){return e.map(o=>typeof o=="string"?`'${o}'`:o).join(r)}n.joinValues=a,n.jsonStringifyReplacer=(e,r)=>typeof r=="bigint"?r.toString():r})(u||(u={}));var c;(function(n){n.mergeShapes=(s,f)=>({...s,...f})})(c||(c={}));const t=u.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),y=n=>{switch(typeof n){case"undefined":return t.undefined;case"string":return t.string;case"number":return Number.isNaN(n)?t.nan:t.number;case"boolean":return t.boolean;case"function":return t.function;case"bigint":return t.bigint;case"symbol":return t.symbol;case"object":return Array.isArray(n)?t.array:n===null?t.null:n.then&&typeof n.then=="function"&&n.catch&&typeof n.catch=="function"?t.promise:typeof Map<"u"&&n instanceof Map?t.map:typeof Set<"u"&&n instanceof Set?t.set:typeof Date<"u"&&n instanceof Date?t.date:t.object;default:return t.unknown}};export{t as ZodParsedType,y as getParsedType,c as objectUtil,u as util};
@@ -0,0 +1,4 @@
1
+ import * as z from "./external.cjs";
2
+ export * from "./external.cjs";
3
+ export { z };
4
+ export default z;
@@ -0,0 +1 @@
1
+ import*as o from"./external.js";export*from"./external.js";var r=o;export{r as default,o as z};
@@ -0,0 +1,3 @@
1
+ import { type ZodErrorMap } from "../ZodError.cjs";
2
+ declare const errorMap: ZodErrorMap;
3
+ export default errorMap;
@@ -0,0 +1 @@
1
+ import{ZodIssueCode as a}from"../ZodError.js";import{util as n,ZodParsedType as l}from"../helpers/util.js";const r=(e,i)=>{let t;switch(e.code){case a.invalid_type:e.received===l.undefined?t="Required":t=`Expected ${e.expected}, received ${e.received}`;break;case a.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(e.expected,n.jsonStringifyReplacer)}`;break;case a.unrecognized_keys:t=`Unrecognized key(s) in object: ${n.joinValues(e.keys,", ")}`;break;case a.invalid_union:t="Invalid input";break;case a.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${n.joinValues(e.options)}`;break;case a.invalid_enum_value:t=`Invalid enum value. Expected ${n.joinValues(e.options)}, received '${e.received}'`;break;case a.invalid_arguments:t="Invalid function arguments";break;case a.invalid_return_type:t="Invalid function return type";break;case a.invalid_date:t="Invalid date";break;case a.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(t=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(t=`${t} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?t=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?t=`Invalid input: must end with "${e.validation.endsWith}"`:n.assertNever(e.validation):e.validation!=="regex"?t=`Invalid ${e.validation}`:t="Invalid";break;case a.too_small:e.type==="array"?t=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?t=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?t=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?t=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?t=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:t="Invalid input";break;case a.too_big:e.type==="array"?t=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?t=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?t=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?t=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?t=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:t="Invalid input";break;case a.custom:t="Invalid input";break;case a.invalid_intersection_types:t="Intersection results could not be merged";break;case a.not_multiple_of:t=`Number must be a multiple of ${e.multipleOf}`;break;case a.not_finite:t="Number must be finite";break;default:t=i.defaultError,n.assertNever(e)}return{message:t}};var m=r;export{m as default};
@@ -0,0 +1,102 @@
1
+ /**
2
+ * The Standard Schema interface.
3
+ */
4
+ export type StandardSchemaV1<Input = unknown, Output = Input> = {
5
+ /**
6
+ * The Standard Schema properties.
7
+ */
8
+ readonly "~standard": StandardSchemaV1.Props<Input, Output>;
9
+ };
10
+ export declare namespace StandardSchemaV1 {
11
+ /**
12
+ * The Standard Schema properties interface.
13
+ */
14
+ export interface Props<Input = unknown, Output = Input> {
15
+ /**
16
+ * The version number of the standard.
17
+ */
18
+ readonly version: 1;
19
+ /**
20
+ * The vendor name of the schema library.
21
+ */
22
+ readonly vendor: string;
23
+ /**
24
+ * Validates unknown input values.
25
+ */
26
+ readonly validate: (value: unknown) => Result<Output> | Promise<Result<Output>>;
27
+ /**
28
+ * Inferred types associated with the schema.
29
+ */
30
+ readonly types?: Types<Input, Output> | undefined;
31
+ }
32
+ /**
33
+ * The result interface of the validate function.
34
+ */
35
+ export type Result<Output> = SuccessResult<Output> | FailureResult;
36
+ /**
37
+ * The result interface if validation succeeds.
38
+ */
39
+ export interface SuccessResult<Output> {
40
+ /**
41
+ * The typed output value.
42
+ */
43
+ readonly value: Output;
44
+ /**
45
+ * The non-existent issues.
46
+ */
47
+ readonly issues?: undefined;
48
+ }
49
+ /**
50
+ * The result interface if validation fails.
51
+ */
52
+ export interface FailureResult {
53
+ /**
54
+ * The issues of failed validation.
55
+ */
56
+ readonly issues: ReadonlyArray<Issue>;
57
+ }
58
+ /**
59
+ * The issue interface of the failure output.
60
+ */
61
+ export interface Issue {
62
+ /**
63
+ * The error message of the issue.
64
+ */
65
+ readonly message: string;
66
+ /**
67
+ * The path of the issue, if any.
68
+ */
69
+ readonly path?: ReadonlyArray<PropertyKey | PathSegment> | undefined;
70
+ }
71
+ /**
72
+ * The path segment interface of the issue.
73
+ */
74
+ export interface PathSegment {
75
+ /**
76
+ * The key representing a path segment.
77
+ */
78
+ readonly key: PropertyKey;
79
+ }
80
+ /**
81
+ * The Standard Schema types interface.
82
+ */
83
+ export interface Types<Input = unknown, Output = Input> {
84
+ /**
85
+ * The input type of the schema.
86
+ */
87
+ readonly input: Input;
88
+ /**
89
+ * The output type of the schema.
90
+ */
91
+ readonly output: Output;
92
+ }
93
+ /**
94
+ * Infers the input type of a Standard Schema.
95
+ */
96
+ export type InferInput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["input"];
97
+ /**
98
+ * Infers the output type of a Standard Schema.
99
+ */
100
+ export type InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["output"];
101
+ export {};
102
+ }