@designcombo/state 0.1.13 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.es.js +173 -170
- package/dist/index.umd.js +1 -1
- package/dist/utils/load-item.d.ts +3 -4
- package/package.json +6 -6
package/dist/index.es.js
CHANGED
@@ -108,11 +108,11 @@ var tr = function() {
|
|
108
108
|
} catch (l) {
|
109
109
|
c = l instanceof Zr ? l.errors : [l];
|
110
110
|
}
|
111
|
-
var
|
112
|
-
if (
|
111
|
+
var H = this._finalizers;
|
112
|
+
if (H) {
|
113
113
|
this._finalizers = null;
|
114
114
|
try {
|
115
|
-
for (var m = sn(
|
115
|
+
for (var m = sn(H), p = m.next(); !p.done; p = m.next()) {
|
116
116
|
var h = p.value;
|
117
117
|
try {
|
118
118
|
kn(h);
|
@@ -513,8 +513,8 @@ function gn(t) {
|
|
513
513
|
var Xe = { exports: {} };
|
514
514
|
Xe.exports;
|
515
515
|
(function(t, r) {
|
516
|
-
var n = 200, i = "__lodash_hash_undefined__", o = 1, c = 2, f = 9007199254740991, d = "[object Arguments]", E = "[object Array]", j = "[object AsyncFunction]", S = "[object Boolean]",
|
517
|
-
|
516
|
+
var n = 200, i = "__lodash_hash_undefined__", o = 1, c = 2, f = 9007199254740991, d = "[object Arguments]", E = "[object Array]", j = "[object AsyncFunction]", S = "[object Boolean]", H = "[object Date]", m = "[object Error]", p = "[object Function]", h = "[object GeneratorFunction]", l = "[object Map]", b = "[object Number]", v = "[object Null]", _ = "[object Object]", g = "[object Promise]", y = "[object Proxy]", R = "[object RegExp]", A = "[object Set]", O = "[object String]", D = "[object Symbol]", w = "[object Undefined]", T = "[object WeakMap]", x = "[object ArrayBuffer]", F = "[object DataView]", Dt = "[object Float32Array]", Ct = "[object Float64Array]", Ie = "[object Int8Array]", ir = "[object Int16Array]", ar = "[object Int32Array]", sr = "[object Uint8Array]", or = "[object Uint8ClampedArray]", z = "[object Uint16Array]", cr = "[object Uint32Array]", ur = /[\\^$.*+?()[\]{}|]/g, rt = /^\[object .+?Constructor\]$/, Se = /^(?:0|[1-9]\d*)$/, N = {};
|
517
|
+
N[Dt] = N[Ct] = N[Ie] = N[ir] = N[ar] = N[sr] = N[or] = N[z] = N[cr] = !0, N[d] = N[E] = N[x] = N[S] = N[F] = N[H] = N[m] = N[p] = N[l] = N[b] = N[_] = N[R] = N[A] = N[O] = N[T] = !1;
|
518
518
|
var we = typeof et == "object" && et && et.Object === Object && et, lr = typeof self == "object" && self && self.Object === Object && self, nt = we || lr || Function("return this")(), Te = r && !r.nodeType && r, ke = Te && !0 && t && !t.nodeType && t, Yt = ke && ke.exports === Te, Vt = Yt && we.process, Ae = function() {
|
519
519
|
try {
|
520
520
|
return Vt && Vt.binding && Vt.binding("util");
|
@@ -577,7 +577,7 @@ Xe.exports;
|
|
577
577
|
return e ? "Symbol(src)_1." + e : "";
|
578
578
|
}(), De = _t.toString, hr = RegExp(
|
579
579
|
"^" + Zt.call(Q).replace(ur, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
580
|
-
), Qt = Yt ? nt.Buffer : void 0, zt = nt.Symbol, Ce = nt.Uint8Array,
|
580
|
+
), Qt = Yt ? nt.Buffer : void 0, zt = nt.Symbol, Ce = nt.Uint8Array, Nt = _t.propertyIsEnumerable, vt = Rt.splice, it = zt ? zt.toStringTag : void 0, Ht = Object.getOwnPropertySymbols, te = Qt ? Qt.isBuffer : void 0, It = Me(Object.keys, Object), ee = pt(nt, "DataView"), St = pt(nt, "Map"), re = pt(nt, "Promise"), ne = pt(nt, "Set"), ie = pt(nt, "WeakMap"), mt = pt(Object, "create"), je = V(ee), ft = V(St), yr = V(re), mr = V(ne), br = V(ie), Re = zt ? zt.prototype : void 0, ae = Re ? Re.valueOf : void 0;
|
581
581
|
function W(e) {
|
582
582
|
var a = -1, s = e == null ? 0 : e.length;
|
583
583
|
for (this.clear(); ++a < s; ) {
|
@@ -728,15 +728,15 @@ Xe.exports;
|
|
728
728
|
return Wt(e) ? u : qt(u, s(e));
|
729
729
|
}
|
730
730
|
function wt(e) {
|
731
|
-
return e == null ? e === void 0 ? w : v : it && it in Object(e) ? dt(e) :
|
731
|
+
return e == null ? e === void 0 ? w : v : it && it in Object(e) ? dt(e) : He(e);
|
732
732
|
}
|
733
733
|
function ze(e) {
|
734
734
|
return lt(e) && wt(e) == d;
|
735
735
|
}
|
736
|
-
function
|
737
|
-
return e === a ? !0 : e == null || a == null || !lt(e) && !lt(a) ? e !== e && a !== a :
|
736
|
+
function Ne(e, a, s, u, k) {
|
737
|
+
return e === a ? !0 : e == null || a == null || !lt(e) && !lt(a) ? e !== e && a !== a : Nr(e, a, s, u, Ne, k);
|
738
738
|
}
|
739
|
-
function
|
739
|
+
function Nr(e, a, s, u, k, I) {
|
740
740
|
var P = Wt(e), M = Wt(a), U = P ? E : ut(e), C = M ? E : ut(a);
|
741
741
|
U = U == d ? _ : U, C = C == d ? _ : C;
|
742
742
|
var K = U == _, q = C == _, L = U == C;
|
@@ -756,14 +756,14 @@ Xe.exports;
|
|
756
756
|
}
|
757
757
|
return L ? (I || (I = new ct()), Wr(e, a, s, u, k, I)) : !1;
|
758
758
|
}
|
759
|
-
function
|
759
|
+
function Hr(e) {
|
760
760
|
if (!We(e) || Yr(e))
|
761
761
|
return !1;
|
762
762
|
var a = Ge(e) ? hr : rt;
|
763
763
|
return a.test(V(e));
|
764
764
|
}
|
765
765
|
function Ur(e) {
|
766
|
-
return lt(e) && le(e.length) && !!
|
766
|
+
return lt(e) && le(e.length) && !!N[wt(e)];
|
767
767
|
}
|
768
768
|
function Lr(e) {
|
769
769
|
if (!Vr(e))
|
@@ -815,8 +815,8 @@ Xe.exports;
|
|
815
815
|
case x:
|
816
816
|
return !(e.byteLength != a.byteLength || !I(new Ce(e), new Ce(a)));
|
817
817
|
case S:
|
818
|
-
case
|
819
|
-
case
|
818
|
+
case H:
|
819
|
+
case b:
|
820
820
|
return Ue(+e, +a);
|
821
821
|
case m:
|
822
822
|
return e.name == a.name && e.message == a.message;
|
@@ -881,7 +881,7 @@ Xe.exports;
|
|
881
881
|
}
|
882
882
|
function pt(e, a) {
|
883
883
|
var s = Jt(e, a);
|
884
|
-
return
|
884
|
+
return Hr(s) ? s : void 0;
|
885
885
|
}
|
886
886
|
function dt(e) {
|
887
887
|
var a = Q.call(e, it), s = e[it];
|
@@ -893,12 +893,12 @@ Xe.exports;
|
|
893
893
|
var k = De.call(e);
|
894
894
|
return u && (a ? e[it] = s : delete e[it]), k;
|
895
895
|
}
|
896
|
-
var Br =
|
897
|
-
return e == null ? [] : (e = Object(e), Ee(
|
898
|
-
return
|
896
|
+
var Br = Ht ? function(e) {
|
897
|
+
return e == null ? [] : (e = Object(e), Ee(Ht(e), function(a) {
|
898
|
+
return Nt.call(e, a);
|
899
899
|
}));
|
900
900
|
} : qr, ut = wt;
|
901
|
-
(ee && ut(new ee(new ArrayBuffer(1))) != F || St && ut(new St()) != l || re && ut(re.resolve()) !=
|
901
|
+
(ee && ut(new ee(new ArrayBuffer(1))) != F || St && ut(new St()) != l || re && ut(re.resolve()) != g || ne && ut(new ne()) != A || ie && ut(new ie()) != T) && (ut = function(e) {
|
902
902
|
var a = wt(e), s = a == _ ? e.constructor : void 0, u = s ? V(s) : "";
|
903
903
|
if (u)
|
904
904
|
switch (u) {
|
@@ -907,7 +907,7 @@ Xe.exports;
|
|
907
907
|
case ft:
|
908
908
|
return l;
|
909
909
|
case yr:
|
910
|
-
return
|
910
|
+
return g;
|
911
911
|
case mr:
|
912
912
|
return A;
|
913
913
|
case br:
|
@@ -929,7 +929,7 @@ Xe.exports;
|
|
929
929
|
var a = e && e.constructor, s = typeof a == "function" && a.prototype || _t;
|
930
930
|
return e === s;
|
931
931
|
}
|
932
|
-
function
|
932
|
+
function He(e) {
|
933
933
|
return De.call(e);
|
934
934
|
}
|
935
935
|
function V(e) {
|
@@ -951,14 +951,14 @@ Xe.exports;
|
|
951
951
|
var Le = ze(/* @__PURE__ */ function() {
|
952
952
|
return arguments;
|
953
953
|
}()) ? ze : function(e) {
|
954
|
-
return lt(e) && Q.call(e, "callee") && !
|
954
|
+
return lt(e) && Q.call(e, "callee") && !Nt.call(e, "callee");
|
955
955
|
}, Wt = Array.isArray;
|
956
956
|
function ue(e) {
|
957
957
|
return e != null && le(e.length) && !Ge(e);
|
958
958
|
}
|
959
959
|
var Bt = te || Jr;
|
960
960
|
function Xr(e, a) {
|
961
|
-
return
|
961
|
+
return Ne(e, a);
|
962
962
|
}
|
963
963
|
function Ge(e) {
|
964
964
|
if (!We(e))
|
@@ -988,14 +988,14 @@ Xe.exports;
|
|
988
988
|
}
|
989
989
|
t.exports = Xr;
|
990
990
|
})(Xe, Xe.exports);
|
991
|
-
var
|
992
|
-
const st = /* @__PURE__ */ gn(
|
991
|
+
var Ni = Xe.exports;
|
992
|
+
const st = /* @__PURE__ */ gn(Ni);
|
993
993
|
var qe = { exports: {} };
|
994
994
|
qe.exports;
|
995
995
|
(function(t, r) {
|
996
|
-
var n = 200, i = "__lodash_hash_undefined__", o = 9007199254740991, c = "[object Arguments]", f = "[object Array]", d = "[object Boolean]", E = "[object Date]", j = "[object Error]", S = "[object Function]",
|
997
|
-
z[c] = z[f] = z[R] = z[A] = z[d] = z[E] = z[O] = z[D] = z[w] = z[T] = z[x] = z[m] = z[p] = z[h] = z[
|
998
|
-
var cr = typeof et == "object" && et && et.Object === Object && et, ur = typeof self == "object" && self && self.Object === Object && self, rt = cr || ur || Function("return this")(), Se = r && !r.nodeType && r,
|
996
|
+
var n = 200, i = "__lodash_hash_undefined__", o = 9007199254740991, c = "[object Arguments]", f = "[object Array]", d = "[object Boolean]", E = "[object Date]", j = "[object Error]", S = "[object Function]", H = "[object GeneratorFunction]", m = "[object Map]", p = "[object Number]", h = "[object Object]", l = "[object Promise]", b = "[object RegExp]", v = "[object Set]", _ = "[object String]", g = "[object Symbol]", y = "[object WeakMap]", R = "[object ArrayBuffer]", A = "[object DataView]", O = "[object Float32Array]", D = "[object Float64Array]", w = "[object Int8Array]", T = "[object Int16Array]", x = "[object Int32Array]", F = "[object Uint8Array]", Dt = "[object Uint8ClampedArray]", Ct = "[object Uint16Array]", Ie = "[object Uint32Array]", ir = /[\\^$.*+?()[\]{}|]/g, ar = /\w*$/, sr = /^\[object .+?Constructor\]$/, or = /^(?:0|[1-9]\d*)$/, z = {};
|
997
|
+
z[c] = z[f] = z[R] = z[A] = z[d] = z[E] = z[O] = z[D] = z[w] = z[T] = z[x] = z[m] = z[p] = z[h] = z[b] = z[v] = z[_] = z[g] = z[F] = z[Dt] = z[Ct] = z[Ie] = !0, z[j] = z[S] = z[y] = !1;
|
998
|
+
var cr = typeof et == "object" && et && et.Object === Object && et, ur = typeof self == "object" && self && self.Object === Object && self, rt = cr || ur || Function("return this")(), Se = r && !r.nodeType && r, N = Se && !0 && t && !t.nodeType && t, we = N && N.exports === Se;
|
999
999
|
function lr(e, a) {
|
1000
1000
|
return e.set(a[0], a[1]), e;
|
1001
1001
|
}
|
@@ -1056,7 +1056,7 @@ qe.exports;
|
|
1056
1056
|
return e ? "Symbol(src)_1." + e : "";
|
1057
1057
|
}(), Me = pr.toString, ot = jt.hasOwnProperty, Rt = jt.toString, dr = RegExp(
|
1058
1058
|
"^" + Me.call(ot).replace(ir, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
1059
|
-
), _t = we ? rt.Buffer : void 0, Ft = rt.Symbol, Zt = rt.Uint8Array, Q = qt(Object.getPrototypeOf, Object), Pe = Object.create, De = jt.propertyIsEnumerable, hr = fr.splice, Qt = Object.getOwnPropertySymbols, zt = _t ? _t.isBuffer : void 0, Ce = qt(Object.keys, Object),
|
1059
|
+
), _t = we ? rt.Buffer : void 0, Ft = rt.Symbol, Zt = rt.Uint8Array, Q = qt(Object.getPrototypeOf, Object), Pe = Object.create, De = jt.propertyIsEnumerable, hr = fr.splice, Qt = Object.getOwnPropertySymbols, zt = _t ? _t.isBuffer : void 0, Ce = qt(Object.keys, Object), Nt = at(rt, "DataView"), vt = at(rt, "Map"), it = at(rt, "Promise"), Ht = at(rt, "Set"), te = at(rt, "WeakMap"), It = at(Object, "create"), ee = V(Nt), St = V(vt), re = V(it), ne = V(Ht), ie = V(te), mt = Ft ? Ft.prototype : void 0, je = mt ? mt.valueOf : void 0;
|
1060
1060
|
function ft(e) {
|
1061
1061
|
var a = -1, s = e ? e.length : 0;
|
1062
1062
|
for (this.clear(); ++a < s; ) {
|
@@ -1199,7 +1199,7 @@ qe.exports;
|
|
1199
1199
|
if (M = Br(e), !a)
|
1200
1200
|
return Lr(e, M);
|
1201
1201
|
} else {
|
1202
|
-
var C = dt(e), K = C == S || C ==
|
1202
|
+
var C = dt(e), K = C == S || C == H;
|
1203
1203
|
if (Ge(e))
|
1204
1204
|
return Gt(e, a);
|
1205
1205
|
if (C == h || C == c || K && !I) {
|
@@ -1240,7 +1240,7 @@ qe.exports;
|
|
1240
1240
|
return a.test(V(e));
|
1241
1241
|
}
|
1242
1242
|
function zr(e) {
|
1243
|
-
if (!
|
1243
|
+
if (!He(e))
|
1244
1244
|
return Ce(e);
|
1245
1245
|
var a = [];
|
1246
1246
|
for (var s in Object(e))
|
@@ -1265,15 +1265,15 @@ qe.exports;
|
|
1265
1265
|
var u = a ? s(Ee(e), !0) : Ee(e);
|
1266
1266
|
return Yt(u, lr, new e.constructor());
|
1267
1267
|
}
|
1268
|
-
function
|
1268
|
+
function Ne(e) {
|
1269
1269
|
var a = new e.constructor(e.source, ar.exec(e));
|
1270
1270
|
return a.lastIndex = e.lastIndex, a;
|
1271
1271
|
}
|
1272
|
-
function
|
1272
|
+
function Nr(e, a, s) {
|
1273
1273
|
var u = a ? s(Oe(e), !0) : Oe(e);
|
1274
1274
|
return Yt(u, nt, new e.constructor());
|
1275
1275
|
}
|
1276
|
-
function
|
1276
|
+
function Hr(e) {
|
1277
1277
|
return je ? Object(je.call(e)) : {};
|
1278
1278
|
}
|
1279
1279
|
function Ur(e, a) {
|
@@ -1309,7 +1309,7 @@ qe.exports;
|
|
1309
1309
|
return Fr(s) ? s : void 0;
|
1310
1310
|
}
|
1311
1311
|
var pt = Qt ? qt(Qt, Object) : qr, dt = Rr;
|
1312
|
-
(
|
1312
|
+
(Nt && dt(new Nt(new ArrayBuffer(1))) != A || vt && dt(new vt()) != m || it && dt(it.resolve()) != l || Ht && dt(new Ht()) != v || te && dt(new te()) != y) && (dt = function(e) {
|
1313
1313
|
var a = Rt.call(e), s = a == h ? e.constructor : void 0, u = s ? V(s) : void 0;
|
1314
1314
|
if (u)
|
1315
1315
|
switch (u) {
|
@@ -1331,7 +1331,7 @@ qe.exports;
|
|
1331
1331
|
return a && typeof e[0] == "string" && ot.call(e, "index") && (s.index = e.index, s.input = e.input), s;
|
1332
1332
|
}
|
1333
1333
|
function ut(e) {
|
1334
|
-
return typeof e.constructor == "function" && !
|
1334
|
+
return typeof e.constructor == "function" && !He(e) ? Cr(Q(e)) : {};
|
1335
1335
|
}
|
1336
1336
|
function $r(e, a, s, u) {
|
1337
1337
|
var k = e.constructor;
|
@@ -1358,12 +1358,12 @@ qe.exports;
|
|
1358
1358
|
case p:
|
1359
1359
|
case _:
|
1360
1360
|
return new k(e);
|
1361
|
-
case g:
|
1362
|
-
return He(e);
|
1363
|
-
case v:
|
1364
|
-
return Hr(e, u, s);
|
1365
1361
|
case b:
|
1366
|
-
return
|
1362
|
+
return Ne(e);
|
1363
|
+
case v:
|
1364
|
+
return Nr(e, u, s);
|
1365
|
+
case g:
|
1366
|
+
return Hr(e);
|
1367
1367
|
}
|
1368
1368
|
}
|
1369
1369
|
function Kr(e, a) {
|
@@ -1376,7 +1376,7 @@ qe.exports;
|
|
1376
1376
|
function Vr(e) {
|
1377
1377
|
return !!xe && xe in e;
|
1378
1378
|
}
|
1379
|
-
function
|
1379
|
+
function He(e) {
|
1380
1380
|
var a = e && e.constructor, s = typeof a == "function" && a.prototype || jt;
|
1381
1381
|
return e === s;
|
1382
1382
|
}
|
@@ -1412,7 +1412,7 @@ qe.exports;
|
|
1412
1412
|
var Ge = zt || Jr;
|
1413
1413
|
function le(e) {
|
1414
1414
|
var a = lt(e) ? Rt.call(e) : "";
|
1415
|
-
return a == S || a ==
|
1415
|
+
return a == S || a == H;
|
1416
1416
|
}
|
1417
1417
|
function We(e) {
|
1418
1418
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= o;
|
@@ -1435,8 +1435,8 @@ qe.exports;
|
|
1435
1435
|
}
|
1436
1436
|
t.exports = Ue;
|
1437
1437
|
})(qe, qe.exports);
|
1438
|
-
var
|
1439
|
-
const tt = /* @__PURE__ */ gn(
|
1438
|
+
var Hi = qe.exports;
|
1439
|
+
const tt = /* @__PURE__ */ gn(Hi), Ui = (t) => new Promise((r, n) => {
|
1440
1440
|
const i = new Image();
|
1441
1441
|
console.warn("update cdn config for cors?"), i.onload = () => {
|
1442
1442
|
const o = i.width, c = i.height;
|
@@ -1626,34 +1626,35 @@ const Wi = async (t, r) => {
|
|
1626
1626
|
metadata: t.metadata || {}
|
1627
1627
|
};
|
1628
1628
|
}, Ki = async (t, r) => {
|
1629
|
+
const n = t;
|
1629
1630
|
await Je([
|
1630
1631
|
{
|
1631
|
-
fontFamily:
|
1632
|
-
url:
|
1632
|
+
fontFamily: n.details.fontFamily,
|
1633
|
+
url: n.details.fontUrl
|
1633
1634
|
}
|
1634
1635
|
]);
|
1635
|
-
const
|
1636
|
-
width:
|
1637
|
-
height:
|
1636
|
+
const i = n.id, o = n.details, c = Jn(o), f = Xn(n.details.text, c), d = rr(r, {
|
1637
|
+
width: c.width,
|
1638
|
+
height: f
|
1638
1639
|
});
|
1639
1640
|
return {
|
1640
|
-
id:
|
1641
|
+
id: i,
|
1641
1642
|
name: "caption",
|
1642
1643
|
type: "caption",
|
1643
|
-
display: ge(
|
1644
|
-
playbackRate: t.playbackRate || 1,
|
1644
|
+
display: ge(n.display),
|
1645
1645
|
details: {
|
1646
|
-
...
|
1647
|
-
text:
|
1646
|
+
...c,
|
1647
|
+
text: o.text || "",
|
1648
1648
|
// Default text content
|
1649
|
-
height:
|
1649
|
+
height: f,
|
1650
1650
|
// Default height
|
1651
|
-
fontUrl:
|
1652
|
-
top:
|
1653
|
-
left:
|
1654
|
-
borderWidth:
|
1655
|
-
borderColor:
|
1656
|
-
boxShadow:
|
1651
|
+
fontUrl: o.fontUrl,
|
1652
|
+
top: d.top,
|
1653
|
+
left: d.left,
|
1654
|
+
borderWidth: o.borderWidth || 0,
|
1655
|
+
borderColor: o.borderColor || "#000000",
|
1656
|
+
boxShadow: o.boxShadow || er,
|
1657
|
+
words: o.words || []
|
1657
1658
|
},
|
1658
1659
|
metadata: {}
|
1659
1660
|
};
|
@@ -1673,7 +1674,6 @@ const Wi = async (t, r) => {
|
|
1673
1674
|
name: "text",
|
1674
1675
|
type: "text",
|
1675
1676
|
display: ge(t.display),
|
1676
|
-
playbackRate: t.playbackRate || 1,
|
1677
1677
|
details: {
|
1678
1678
|
...o,
|
1679
1679
|
text: i.text || "",
|
@@ -1749,8 +1749,8 @@ function Pn(t = 16) {
|
|
1749
1749
|
return i = i.replace(/[^a-zA-Z0-9]/g, "").slice(0, t - 1), n + i;
|
1750
1750
|
}
|
1751
1751
|
const tn = (t) => Object.keys(t).reduce((r, n) => {
|
1752
|
-
const { display: i } = t[n];
|
1753
|
-
return Math.max(r, i.to);
|
1752
|
+
const { display: i, playbackRate: o } = t[n];
|
1753
|
+
return Math.max(r, i.to / (o || 1));
|
1754
1754
|
}, 0);
|
1755
1755
|
function qi(t) {
|
1756
1756
|
const r = $t.pipe(
|
@@ -1768,8 +1768,10 @@ function qi(t) {
|
|
1768
1768
|
), d = r.subscribe(async (p) => {
|
1769
1769
|
var h;
|
1770
1770
|
if (p.key === hi) {
|
1771
|
-
const l = (h = p.value) == null ? void 0 : h.payload,
|
1772
|
-
|
1771
|
+
const l = (h = p.value) == null ? void 0 : h.payload, b = l.trackItemIds, v = l.trackItemDetailsMap;
|
1772
|
+
console.warn("IMPROVE FONTS LOADING");
|
1773
|
+
const _ = b.map(async (g) => {
|
1774
|
+
const y = v[g];
|
1773
1775
|
return (y.type === "caption" || y.type === "text") && await Je([
|
1774
1776
|
{
|
1775
1777
|
fontFamily: y.details.fontFamily,
|
@@ -1785,23 +1787,23 @@ function qi(t) {
|
|
1785
1787
|
if (p.key === yi) return t.undo();
|
1786
1788
|
if (p.key === mi) return t.redo();
|
1787
1789
|
}), j = i.subscribe((p) => {
|
1788
|
-
var l,
|
1790
|
+
var l, b, v;
|
1789
1791
|
const h = [];
|
1790
|
-
if ((l = p.value) != null && l.payload.trackItemIds && (h.push((
|
1791
|
-
const _ = (v = p.value) == null ? void 0 : v.payload.trackItemIds,
|
1792
|
+
if ((l = p.value) != null && l.payload.trackItemIds && (h.push((b = p.value) == null ? void 0 : b.payload.trackItemIds), t.updateState({ activeIds: h })), p.key === bi) {
|
1793
|
+
const _ = (v = p.value) == null ? void 0 : v.payload.trackItemIds, g = tt(t.getState()), y = _ && _.length ? _ : g.activeIds, R = g.trackItemIds, A = g.trackItemDetailsMap, O = R.filter(
|
1792
1794
|
(F) => !y.includes(F)
|
1793
1795
|
), D = Object.fromEntries(
|
1794
1796
|
Object.entries(A).filter(
|
1795
1797
|
([F]) => !y.includes(F)
|
1796
1798
|
)
|
1797
1799
|
), w = Xi(
|
1798
|
-
|
1800
|
+
g.tracks,
|
1799
1801
|
y
|
1800
1802
|
), T = Object.fromEntries(
|
1801
|
-
Object.entries(
|
1803
|
+
Object.entries(g.trackItemsMap).filter(
|
1802
1804
|
([F]) => !y.includes(F)
|
1803
1805
|
)
|
1804
|
-
), x = tn(
|
1806
|
+
), x = tn(g.trackItemsMap);
|
1805
1807
|
t.updateState(
|
1806
1808
|
{
|
1807
1809
|
trackItemIds: O,
|
@@ -1815,10 +1817,11 @@ function qi(t) {
|
|
1815
1817
|
);
|
1816
1818
|
}
|
1817
1819
|
}), S = n.subscribe(async (p) => {
|
1818
|
-
var _,
|
1820
|
+
var _, g, y, R, A;
|
1819
1821
|
const h = tt(t.getState());
|
1820
|
-
let l = [],
|
1822
|
+
let l = [], b = "text";
|
1821
1823
|
if (p.key === gi) {
|
1824
|
+
b = "caption";
|
1822
1825
|
const O = (_ = p.value) == null ? void 0 : _.payload, D = [];
|
1823
1826
|
for (const x of O) {
|
1824
1827
|
const F = Ki(x, {
|
@@ -1835,27 +1838,27 @@ function qi(t) {
|
|
1835
1838
|
T.push(F);
|
1836
1839
|
const { details: Dt, ...Ct } = x;
|
1837
1840
|
h.trackItemDetailsMap[F] = {
|
1838
|
-
type:
|
1841
|
+
type: b,
|
1839
1842
|
details: Dt
|
1840
1843
|
}, h.trackItemsMap[F] = Ct, h.trackItemIds.push(F);
|
1841
1844
|
}
|
1842
1845
|
l = T;
|
1843
1846
|
}
|
1844
1847
|
if (p.key === _i) {
|
1845
|
-
|
1846
|
-
const O = await Yi((
|
1848
|
+
b = "text";
|
1849
|
+
const O = await Yi((g = p.value) == null ? void 0 : g.payload, {
|
1847
1850
|
size: {
|
1848
1851
|
width: 1080,
|
1849
1852
|
height: 1920
|
1850
1853
|
}
|
1851
1854
|
}), { details: D, ...w } = O;
|
1852
1855
|
h.trackItemDetailsMap[w.id] = {
|
1853
|
-
type:
|
1856
|
+
type: b,
|
1854
1857
|
details: D
|
1855
1858
|
}, h.trackItemsMap[w.id] = w, h.trackItemIds.push(w.id), l = [w.id];
|
1856
1859
|
}
|
1857
1860
|
if (p.key === vi) {
|
1858
|
-
|
1861
|
+
b = "image";
|
1859
1862
|
const O = await $i((y = p.value) == null ? void 0 : y.payload, {
|
1860
1863
|
size: {
|
1861
1864
|
width: 1080,
|
@@ -1863,20 +1866,20 @@ function qi(t) {
|
|
1863
1866
|
}
|
1864
1867
|
}), { details: D, ...w } = O;
|
1865
1868
|
h.trackItemDetailsMap[w.id] = {
|
1866
|
-
type:
|
1869
|
+
type: b,
|
1867
1870
|
details: D
|
1868
1871
|
}, h.trackItemsMap[w.id] = w, h.trackItemIds.push(w.id), l = [w.id];
|
1869
1872
|
}
|
1870
1873
|
if (p.key === Ii) {
|
1871
|
-
|
1874
|
+
b = "audio";
|
1872
1875
|
const O = await Bi((R = p.value) == null ? void 0 : R.payload), { details: D, ...w } = O;
|
1873
1876
|
h.trackItemDetailsMap[w.id] = {
|
1874
|
-
type:
|
1877
|
+
type: b,
|
1875
1878
|
details: D
|
1876
1879
|
}, h.trackItemsMap[w.id] = w, h.trackItemIds.push(w.id), l = [w.id];
|
1877
1880
|
}
|
1878
1881
|
if (p.key === Si) {
|
1879
|
-
|
1882
|
+
b = "video";
|
1880
1883
|
const O = await Wi((A = p.value) == null ? void 0 : A.payload, {
|
1881
1884
|
size: {
|
1882
1885
|
width: 1080,
|
@@ -1884,14 +1887,14 @@ function qi(t) {
|
|
1884
1887
|
}
|
1885
1888
|
}), { details: D, ...w } = O;
|
1886
1889
|
h.trackItemDetailsMap[w.id] = {
|
1887
|
-
type:
|
1890
|
+
type: b,
|
1888
1891
|
details: D
|
1889
1892
|
}, h.trackItemsMap[w.id] = w, h.trackItemIds.push(w.id), l = [w.id];
|
1890
1893
|
}
|
1891
1894
|
h.tracks.unshift({
|
1892
1895
|
id: fn(),
|
1893
1896
|
accepts: ["text", "audio", "helper", "video", "image", "caption"],
|
1894
|
-
type:
|
1897
|
+
type: b,
|
1895
1898
|
items: l,
|
1896
1899
|
magnetic: !1,
|
1897
1900
|
static: !1
|
@@ -1910,27 +1913,27 @@ function qi(t) {
|
|
1910
1913
|
kind: "add"
|
1911
1914
|
}
|
1912
1915
|
);
|
1913
|
-
}),
|
1916
|
+
}), H = c.subscribe(async (p) => {
|
1914
1917
|
var h;
|
1915
1918
|
if (p.key === wi) {
|
1916
|
-
const l = tt(t.getState()),
|
1919
|
+
const l = tt(t.getState()), b = (h = p.value) == null ? void 0 : h.options.time;
|
1917
1920
|
if (l.activeIds.length === 1) {
|
1918
1921
|
const v = l.activeIds[0], _ = l.trackItemsMap[v];
|
1919
|
-
if (
|
1922
|
+
if (b >= _.display.to || b <= _.display.from)
|
1920
1923
|
return;
|
1921
|
-
const
|
1924
|
+
const g = l.trackItemDetailsMap[v], y = Pn(), R = {
|
1922
1925
|
..._,
|
1923
1926
|
id: y,
|
1924
1927
|
display: {
|
1925
|
-
from:
|
1928
|
+
from: b,
|
1926
1929
|
to: _.display.to
|
1927
1930
|
},
|
1928
1931
|
trim: {
|
1929
|
-
from:
|
1932
|
+
from: b,
|
1930
1933
|
to: _.display.to
|
1931
1934
|
}
|
1932
1935
|
};
|
1933
|
-
l.trackItemsMap[v].display.to =
|
1936
|
+
l.trackItemsMap[v].display.to = b, l.trackItemsMap[y] = R, l.trackItemIds.push(y), l.trackItemDetailsMap[y] = g, l.tracks.forEach((A) => {
|
1934
1937
|
A.items.includes(v) && A.items.push(y);
|
1935
1938
|
}), t.updateState(
|
1936
1939
|
{
|
@@ -1950,25 +1953,25 @@ function qi(t) {
|
|
1950
1953
|
if (p.key === Ti) {
|
1951
1954
|
const l = tt(t.getState());
|
1952
1955
|
if (l.activeIds.length) {
|
1953
|
-
const
|
1954
|
-
activeIds:
|
1956
|
+
const b = l.activeIds, v = [], _ = {
|
1957
|
+
activeIds: b,
|
1955
1958
|
trackItemDetailsMap: {},
|
1956
1959
|
trackItemsMap: {},
|
1957
1960
|
tracks: []
|
1958
1961
|
};
|
1959
|
-
|
1962
|
+
b.forEach((y) => {
|
1960
1963
|
_.trackItemDetailsMap[y] = l.trackItemDetailsMap[y], _.trackItemsMap[y] = l.trackItemsMap[y], v.push(
|
1961
1964
|
l.tracks.find((R) => R.items.includes(y))
|
1962
1965
|
);
|
1963
1966
|
});
|
1964
|
-
const
|
1965
|
-
v.filter((y) =>
|
1967
|
+
const g = /* @__PURE__ */ new Set();
|
1968
|
+
v.filter((y) => g.has(y.id) ? !1 : (g.add(y), !0)), _.tracks = Array.from(g.keys()), localStorage.setItem("DesignComboTemp", JSON.stringify(_));
|
1966
1969
|
}
|
1967
1970
|
}
|
1968
1971
|
if (p.key === ki) {
|
1969
1972
|
const l = localStorage.getItem("DesignComboTemp");
|
1970
1973
|
if (!l) return;
|
1971
|
-
const
|
1974
|
+
const b = tt(t.getState()), v = JSON.parse(l), _ = {}, g = v.trackItemsMap, y = v.trackItemDetailsMap, R = v.tracks, A = [], O = v.activeIds.map(async (D) => {
|
1972
1975
|
const w = y[D];
|
1973
1976
|
(w.type === "caption" || w.type === "text") && await Je([
|
1974
1977
|
{
|
@@ -1977,10 +1980,10 @@ function qi(t) {
|
|
1977
1980
|
}
|
1978
1981
|
]);
|
1979
1982
|
const T = Pn();
|
1980
|
-
return _[D] = T,
|
1981
|
-
...
|
1983
|
+
return _[D] = T, b.trackItemsMap[T] = {
|
1984
|
+
...g[D],
|
1982
1985
|
id: T
|
1983
|
-
},
|
1986
|
+
}, b.trackItemDetailsMap[T] = w, b.trackItemIds.push(T), !0;
|
1984
1987
|
});
|
1985
1988
|
await Promise.all(O), R.forEach((D) => {
|
1986
1989
|
const w = D.items.map((x) => _[x]), T = {
|
@@ -1989,12 +1992,12 @@ function qi(t) {
|
|
1989
1992
|
id: fn()
|
1990
1993
|
};
|
1991
1994
|
A.push(T);
|
1992
|
-
}),
|
1995
|
+
}), b.tracks = [...b.tracks, ...A], t.updateState(
|
1993
1996
|
{
|
1994
|
-
trackItemDetailsMap:
|
1995
|
-
tracks:
|
1996
|
-
trackItemIds:
|
1997
|
-
trackItemsMap:
|
1997
|
+
trackItemDetailsMap: b.trackItemDetailsMap,
|
1998
|
+
tracks: b.tracks,
|
1999
|
+
trackItemIds: b.trackItemIds,
|
2000
|
+
trackItemsMap: b.trackItemsMap
|
1998
2001
|
},
|
1999
2002
|
{
|
2000
2003
|
updateHistory: !0,
|
@@ -2005,10 +2008,10 @@ function qi(t) {
|
|
2005
2008
|
}), m = f.subscribe((p) => {
|
2006
2009
|
var h, l;
|
2007
2010
|
if (p.key === Ai) {
|
2008
|
-
const
|
2009
|
-
if (!
|
2011
|
+
const b = tt(t.getState()), v = b.trackItemDetailsMap, _ = b.trackItemsMap, g = Object.keys((h = p.value) == null ? void 0 : h.payload);
|
2012
|
+
if (!g.length) return;
|
2010
2013
|
const y = (l = p.value) == null ? void 0 : l.payload;
|
2011
|
-
|
2014
|
+
g.forEach((A) => {
|
2012
2015
|
y[A].details ? v[A].details = {
|
2013
2016
|
...v[A].details,
|
2014
2017
|
...y[A].details
|
@@ -2030,7 +2033,7 @@ function qi(t) {
|
|
2030
2033
|
});
|
2031
2034
|
return {
|
2032
2035
|
unsubscribe: () => {
|
2033
|
-
S.unsubscribe(),
|
2036
|
+
S.unsubscribe(), H.unsubscribe(), m.unsubscribe(), E.unsubscribe(), j.unsubscribe(), d.unsubscribe();
|
2034
2037
|
}
|
2035
2038
|
};
|
2036
2039
|
}
|
@@ -2040,11 +2043,11 @@ function Zn(t, r, n = { cyclesFix: !0 }, i = []) {
|
|
2040
2043
|
let o = [];
|
2041
2044
|
const c = Array.isArray(t);
|
2042
2045
|
for (const j in t) {
|
2043
|
-
const S = t[j],
|
2046
|
+
const S = t[j], H = c ? +j : j;
|
2044
2047
|
if (!(j in r)) {
|
2045
2048
|
o.push({
|
2046
2049
|
type: "REMOVE",
|
2047
|
-
path: [
|
2050
|
+
path: [H],
|
2048
2051
|
oldValue: t[j]
|
2049
2052
|
});
|
2050
2053
|
continue;
|
@@ -2052,10 +2055,10 @@ function Zn(t, r, n = { cyclesFix: !0 }, i = []) {
|
|
2052
2055
|
const m = r[j], p = typeof S == "object" && typeof m == "object" && Array.isArray(S) === Array.isArray(m);
|
2053
2056
|
if (S && m && p && !Ji[(E = (d = Object.getPrototypeOf(S)) == null ? void 0 : d.constructor) == null ? void 0 : E.name] && (!n.cyclesFix || !i.includes(S))) {
|
2054
2057
|
const h = Zn(S, m, n, n.cyclesFix ? i.concat([S]) : []);
|
2055
|
-
o.push.apply(o, h.map((l) => (l.path.unshift(
|
2058
|
+
o.push.apply(o, h.map((l) => (l.path.unshift(H), l)));
|
2056
2059
|
} else S !== m && // treat NaN values as equivalent
|
2057
2060
|
!(Number.isNaN(S) && Number.isNaN(m)) && !(p && (isNaN(S) ? S + "" == m + "" : +S == +m)) && o.push({
|
2058
|
-
path: [
|
2061
|
+
path: [H],
|
2059
2062
|
type: "CHANGE",
|
2060
2063
|
value: m,
|
2061
2064
|
oldValue: S
|
@@ -2563,35 +2566,35 @@ function Fn() {
|
|
2563
2566
|
}
|
2564
2567
|
}
|
2565
2568
|
function c(m, p, h, l) {
|
2566
|
-
let { base_:
|
2567
|
-
_.length <
|
2568
|
-
for (let
|
2569
|
-
if (v[
|
2570
|
-
const y = p.concat([
|
2569
|
+
let { base_: b, assigned_: v } = m, _ = m.copy_;
|
2570
|
+
_.length < b.length && ([b, _] = [_, b], [h, l] = [l, h]);
|
2571
|
+
for (let g = 0; g < b.length; g++)
|
2572
|
+
if (v[g] && _[g] !== b[g]) {
|
2573
|
+
const y = p.concat([g]);
|
2571
2574
|
h.push({
|
2572
2575
|
op: r,
|
2573
2576
|
path: y,
|
2574
2577
|
// Need to maybe clone it, as it can in fact be the original value
|
2575
2578
|
// due to the base/copy inversion at the start of this function
|
2576
|
-
value:
|
2579
|
+
value: H(_[g])
|
2577
2580
|
}), l.push({
|
2578
2581
|
op: r,
|
2579
2582
|
path: y,
|
2580
|
-
value:
|
2583
|
+
value: H(b[g])
|
2581
2584
|
});
|
2582
2585
|
}
|
2583
|
-
for (let
|
2584
|
-
const y = p.concat([
|
2586
|
+
for (let g = b.length; g < _.length; g++) {
|
2587
|
+
const y = p.concat([g]);
|
2585
2588
|
h.push({
|
2586
2589
|
op: n,
|
2587
2590
|
path: y,
|
2588
2591
|
// Need to maybe clone it, as it can in fact be the original value
|
2589
2592
|
// due to the base/copy inversion at the start of this function
|
2590
|
-
value:
|
2593
|
+
value: H(_[g])
|
2591
2594
|
});
|
2592
2595
|
}
|
2593
|
-
for (let
|
2594
|
-
const y = p.concat([
|
2596
|
+
for (let g = _.length - 1; b.length <= g; --g) {
|
2597
|
+
const y = p.concat([g]);
|
2595
2598
|
l.push({
|
2596
2599
|
op: i,
|
2597
2600
|
path: y
|
@@ -2599,44 +2602,44 @@ function Fn() {
|
|
2599
2602
|
}
|
2600
2603
|
}
|
2601
2604
|
function f(m, p, h, l) {
|
2602
|
-
const { base_:
|
2603
|
-
de(m.assigned_, (_,
|
2604
|
-
const y = en(
|
2605
|
+
const { base_: b, copy_: v } = m;
|
2606
|
+
de(m.assigned_, (_, g) => {
|
2607
|
+
const y = en(b, _), R = en(v, _), A = g ? he(b, _) ? r : n : i;
|
2605
2608
|
if (y === R && A === r)
|
2606
2609
|
return;
|
2607
2610
|
const O = p.concat(_);
|
2608
2611
|
h.push(A === i ? { op: A, path: O } : { op: A, path: O, value: R }), l.push(
|
2609
|
-
A === n ? { op: i, path: O } : A === i ? { op: n, path: O, value:
|
2612
|
+
A === n ? { op: i, path: O } : A === i ? { op: n, path: O, value: H(y) } : { op: r, path: O, value: H(y) }
|
2610
2613
|
);
|
2611
2614
|
});
|
2612
2615
|
}
|
2613
2616
|
function d(m, p, h, l) {
|
2614
|
-
let { base_:
|
2615
|
-
|
2616
|
-
if (!v.has(
|
2617
|
+
let { base_: b, copy_: v } = m, _ = 0;
|
2618
|
+
b.forEach((g) => {
|
2619
|
+
if (!v.has(g)) {
|
2617
2620
|
const y = p.concat([_]);
|
2618
2621
|
h.push({
|
2619
2622
|
op: i,
|
2620
2623
|
path: y,
|
2621
|
-
value:
|
2624
|
+
value: g
|
2622
2625
|
}), l.unshift({
|
2623
2626
|
op: n,
|
2624
2627
|
path: y,
|
2625
|
-
value:
|
2628
|
+
value: g
|
2626
2629
|
});
|
2627
2630
|
}
|
2628
2631
|
_++;
|
2629
|
-
}), _ = 0, v.forEach((
|
2630
|
-
if (!
|
2632
|
+
}), _ = 0, v.forEach((g) => {
|
2633
|
+
if (!b.has(g)) {
|
2631
2634
|
const y = p.concat([_]);
|
2632
2635
|
h.push({
|
2633
2636
|
op: n,
|
2634
2637
|
path: y,
|
2635
|
-
value:
|
2638
|
+
value: g
|
2636
2639
|
}), l.unshift({
|
2637
2640
|
op: i,
|
2638
2641
|
path: y,
|
2639
|
-
value:
|
2642
|
+
value: g
|
2640
2643
|
});
|
2641
2644
|
}
|
2642
2645
|
_++;
|
@@ -2655,34 +2658,34 @@ function Fn() {
|
|
2655
2658
|
}
|
2656
2659
|
function j(m, p) {
|
2657
2660
|
return p.forEach((h) => {
|
2658
|
-
const { path: l, op:
|
2661
|
+
const { path: l, op: b } = h;
|
2659
2662
|
let v = m;
|
2660
2663
|
for (let R = 0; R < l.length - 1; R++) {
|
2661
2664
|
const A = Mt(v);
|
2662
2665
|
let O = l[R];
|
2663
2666
|
typeof O != "string" && typeof O != "number" && (O = "" + O), (A === 0 || A === 1) && (O === "__proto__" || O === "constructor") && G(19), typeof v == "function" && O === "prototype" && G(19), v = en(v, O), typeof v != "object" && G(18, l.join("/"));
|
2664
2667
|
}
|
2665
|
-
const _ = Mt(v),
|
2666
|
-
switch (
|
2668
|
+
const _ = Mt(v), g = S(h.value), y = l[l.length - 1];
|
2669
|
+
switch (b) {
|
2667
2670
|
case r:
|
2668
2671
|
switch (_) {
|
2669
2672
|
case 2:
|
2670
|
-
return v.set(y,
|
2673
|
+
return v.set(y, g);
|
2671
2674
|
case 3:
|
2672
2675
|
G(16);
|
2673
2676
|
default:
|
2674
|
-
return v[y] =
|
2677
|
+
return v[y] = g;
|
2675
2678
|
}
|
2676
2679
|
case n:
|
2677
2680
|
switch (_) {
|
2678
2681
|
case 1:
|
2679
|
-
return y === "-" ? v.push(
|
2682
|
+
return y === "-" ? v.push(g) : v.splice(y, 0, g);
|
2680
2683
|
case 2:
|
2681
|
-
return v.set(y,
|
2684
|
+
return v.set(y, g);
|
2682
2685
|
case 3:
|
2683
|
-
return v.add(
|
2686
|
+
return v.add(g);
|
2684
2687
|
default:
|
2685
|
-
return v[y] =
|
2688
|
+
return v[y] = g;
|
2686
2689
|
}
|
2687
2690
|
case i:
|
2688
2691
|
switch (_) {
|
@@ -2696,7 +2699,7 @@ function Fn() {
|
|
2696
2699
|
return delete v[y];
|
2697
2700
|
}
|
2698
2701
|
default:
|
2699
|
-
G(17,
|
2702
|
+
G(17, b);
|
2700
2703
|
}
|
2701
2704
|
}), m;
|
2702
2705
|
}
|
@@ -2716,7 +2719,7 @@ function Fn() {
|
|
2716
2719
|
p[h] = S(m[h]);
|
2717
2720
|
return he(m, pe) && (p[pe] = m[pe]), p;
|
2718
2721
|
}
|
2719
|
-
function
|
2722
|
+
function H(m) {
|
2720
2723
|
return xt(m) ? S(m) : m;
|
2721
2724
|
}
|
2722
2725
|
ea("Patches", {
|
@@ -2758,7 +2761,7 @@ function Ia(t, r) {
|
|
2758
2761
|
t[o + n] = r[n];
|
2759
2762
|
return t;
|
2760
2763
|
}
|
2761
|
-
var Sn = Object.prototype, Sa = Sn.hasOwnProperty, wn = Sn.toString, zn = ga.Symbol, wa = Sn.propertyIsEnumerable,
|
2764
|
+
var Sn = Object.prototype, Sa = Sn.hasOwnProperty, wn = Sn.toString, zn = ga.Symbol, wa = Sn.propertyIsEnumerable, Nn = zn ? zn.isConcatSpreadable : void 0, Hn = Math.max;
|
2762
2765
|
function Ta(t, r, n, i, o) {
|
2763
2766
|
var c = -1, f = t.length;
|
2764
2767
|
for (n || (n = Oa), o || (o = []); ++c < f; ) {
|
@@ -2780,8 +2783,8 @@ function Aa(t, r, n) {
|
|
2780
2783
|
return c;
|
2781
2784
|
}
|
2782
2785
|
function Ea(t, r) {
|
2783
|
-
return r =
|
2784
|
-
for (var n = arguments, i = -1, o =
|
2786
|
+
return r = Hn(r === void 0 ? t.length - 1 : r, 0), function() {
|
2787
|
+
for (var n = arguments, i = -1, o = Hn(n.length - r, 0), c = Array(o); ++i < o; )
|
2785
2788
|
c[i] = n[r + i];
|
2786
2789
|
i = -1;
|
2787
2790
|
for (var f = Array(r + 1); ++i < r; )
|
@@ -2790,7 +2793,7 @@ function Ea(t, r) {
|
|
2790
2793
|
};
|
2791
2794
|
}
|
2792
2795
|
function Oa(t) {
|
2793
|
-
return Pa(t) || Ma(t) || !!(
|
2796
|
+
return Pa(t) || Ma(t) || !!(Nn && t && t[Nn]);
|
2794
2797
|
}
|
2795
2798
|
function xa(t) {
|
2796
2799
|
if (typeof t == "string" || za(t))
|
@@ -2825,10 +2828,10 @@ function ai(t) {
|
|
2825
2828
|
function za(t) {
|
2826
2829
|
return typeof t == "symbol" || ai(t) && wn.call(t) == ya;
|
2827
2830
|
}
|
2828
|
-
var
|
2831
|
+
var Na = Ea(function(t, r) {
|
2829
2832
|
return t == null ? {} : ka(t, va(Ta(r), xa));
|
2830
|
-
}),
|
2831
|
-
const Un = /* @__PURE__ */ gn(
|
2833
|
+
}), Ha = Na;
|
2834
|
+
const Un = /* @__PURE__ */ gn(Ha), Ua = {
|
2832
2835
|
tracks: [],
|
2833
2836
|
trackItemIds: [],
|
2834
2837
|
trackItemsMap: {},
|
@@ -2975,7 +2978,7 @@ class Wa {
|
|
2975
2978
|
transitionIds: d,
|
2976
2979
|
transitionsMap: E,
|
2977
2980
|
trackItemsMap: j
|
2978
|
-
}),
|
2981
|
+
}), H = [], m = [], p = [], h = [], l = [], b = [];
|
2979
2982
|
n.forEach((T) => {
|
2980
2983
|
let x;
|
2981
2984
|
const F = T.path.slice(1);
|
@@ -2991,15 +2994,15 @@ class Wa {
|
|
2991
2994
|
path: F,
|
2992
2995
|
op: "add",
|
2993
2996
|
value: T.oldValue
|
2994
|
-
}, T.path.includes("trackItemIds") ? p.push(x) : T.path.includes("transitionIds") ? m.push(x) : T.path.includes("trackItemsMap") ? l.push(x) : T.path.includes("transitionsMap") ? h.push(x) : T.path.includes("tracks") ?
|
2997
|
+
}, T.path.includes("trackItemIds") ? p.push(x) : T.path.includes("transitionIds") ? m.push(x) : T.path.includes("trackItemsMap") ? l.push(x) : T.path.includes("transitionsMap") ? h.push(x) : T.path.includes("tracks") ? H.push(x) : T.path.includes("trackItemDetailsMap") && b.push(x);
|
2995
2998
|
});
|
2996
2999
|
const v = this.applyPatch(
|
2997
3000
|
S.tracks,
|
2998
|
-
|
3001
|
+
H
|
2999
3002
|
), _ = this.applyPatch(
|
3000
3003
|
S.transitionIds,
|
3001
3004
|
m
|
3002
|
-
),
|
3005
|
+
), g = this.applyPatch(
|
3003
3006
|
S.trackItemIds,
|
3004
3007
|
p
|
3005
3008
|
), y = this.applyPatch(
|
@@ -3010,11 +3013,11 @@ class Wa {
|
|
3010
3013
|
l
|
3011
3014
|
), A = this.applyPatch(
|
3012
3015
|
S.trackItemDetailsMap,
|
3013
|
-
|
3016
|
+
b
|
3014
3017
|
), O = tt({
|
3015
3018
|
tracks: v,
|
3016
3019
|
transitionIds: _,
|
3017
|
-
trackItemIds:
|
3020
|
+
trackItemIds: g,
|
3018
3021
|
transitionsMap: y,
|
3019
3022
|
trackItemsMap: R,
|
3020
3023
|
trackItemDetailsMap: A
|
@@ -3044,7 +3047,7 @@ class Wa {
|
|
3044
3047
|
transitionIds: d,
|
3045
3048
|
transitionsMap: E,
|
3046
3049
|
trackItemsMap: j
|
3047
|
-
}),
|
3050
|
+
}), H = [], m = [], p = [], h = [], l = [], b = [];
|
3048
3051
|
n.forEach((T) => {
|
3049
3052
|
let x;
|
3050
3053
|
const F = T.path.slice(1);
|
@@ -3060,15 +3063,15 @@ class Wa {
|
|
3060
3063
|
path: F,
|
3061
3064
|
op: "remove",
|
3062
3065
|
value: T.oldValue
|
3063
|
-
}, T.path.includes("trackItemIds") ? p.push(x) : T.path.includes("transitionIds") ? m.push(x) : T.path.includes("trackItemsMap") ? l.push(x) : T.path.includes("transitionsMap") ? h.push(x) : T.path.includes("trackItemDetailsMap") ?
|
3066
|
+
}, T.path.includes("trackItemIds") ? p.push(x) : T.path.includes("transitionIds") ? m.push(x) : T.path.includes("trackItemsMap") ? l.push(x) : T.path.includes("transitionsMap") ? h.push(x) : T.path.includes("trackItemDetailsMap") ? b.push(x) : H.push(x);
|
3064
3067
|
});
|
3065
3068
|
const v = this.applyPatch(
|
3066
3069
|
S.tracks,
|
3067
|
-
|
3070
|
+
H
|
3068
3071
|
), _ = this.applyPatch(
|
3069
3072
|
S.transitionIds,
|
3070
3073
|
m
|
3071
|
-
),
|
3074
|
+
), g = this.applyPatch(
|
3072
3075
|
S.trackItemIds,
|
3073
3076
|
p
|
3074
3077
|
), y = this.applyPatch(
|
@@ -3079,11 +3082,11 @@ class Wa {
|
|
3079
3082
|
l
|
3080
3083
|
), A = this.applyPatch(
|
3081
3084
|
S.trackItemDetailsMap,
|
3082
|
-
|
3085
|
+
b
|
3083
3086
|
), O = tt({
|
3084
3087
|
tracks: v,
|
3085
3088
|
transitionIds: _,
|
3086
|
-
trackItemIds:
|
3089
|
+
trackItemIds: g,
|
3087
3090
|
transitionsMap: y,
|
3088
3091
|
trackItemsMap: R,
|
3089
3092
|
trackItemDetailsMap: A
|