@designcombo/state 0.1.34 → 0.1.36
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.es.js +1536 -1555
- package/dist/index.umd.js +2 -2
- package/dist/utils/load-item.d.ts +0 -2
- package/package.json +5 -5
package/dist/index.es.js
CHANGED
|
@@ -1,143 +1,143 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { subject as
|
|
5
|
-
var
|
|
6
|
-
return
|
|
7
|
-
n.__proto__ =
|
|
8
|
-
} || function(n,
|
|
9
|
-
for (var s in
|
|
10
|
-
},
|
|
1
|
+
var Ei = Object.defineProperty;
|
|
2
|
+
var Si = (t, r, n) => r in t ? Ei(t, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[r] = n;
|
|
3
|
+
var Nt = (t, r, n) => Si(t, typeof r != "symbol" ? r + "" : r, n);
|
|
4
|
+
import { subject as ue, filter as le, DESIGN_PREFIX as Ti, ADD_PREFIX as wi, LAYER_PREFIX as ki, HISTORY_PREFIX as Ai, ACTIVE_PREFIX as Di, EDIT_PREFIX as Mi, DESIGN_LOAD as Oi, DESIGN_RESIZE as xi, HISTORY_UNDO as Pi, HISTORY_REDO as Ci, LAYER_DELETE as Ri, LAYER_CLONE as Li, ADD_CAPTION as Fi, ADD_TEXT as $i, ADD_TEMPLATE as Ni, ADD_IMAGE as Hi, ADD_AUDIO as ji, ADD_VIDEO as zi, ACTIVE_SPLIT as Ui, ACTIVE_CLONE as Gi, ACTIVE_PASTE as Yi, EDIT_OBJECT as Wi, REPLACE_MEDIA as Xi } from "@designcombo/events";
|
|
5
|
+
var dn = function(t, r) {
|
|
6
|
+
return dn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
7
|
+
n.__proto__ = i;
|
|
8
|
+
} || function(n, i) {
|
|
9
|
+
for (var s in i) Object.prototype.hasOwnProperty.call(i, s) && (n[s] = i[s]);
|
|
10
|
+
}, dn(t, r);
|
|
11
11
|
};
|
|
12
|
-
function
|
|
12
|
+
function $e(t, r) {
|
|
13
13
|
if (typeof r != "function" && r !== null)
|
|
14
14
|
throw new TypeError("Class extends value " + String(r) + " is not a constructor or null");
|
|
15
|
-
|
|
15
|
+
dn(t, r);
|
|
16
16
|
function n() {
|
|
17
17
|
this.constructor = t;
|
|
18
18
|
}
|
|
19
19
|
t.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
|
|
20
20
|
}
|
|
21
|
-
function
|
|
22
|
-
var r = typeof Symbol == "function" && Symbol.iterator, n = r && t[r],
|
|
21
|
+
function pn(t) {
|
|
22
|
+
var r = typeof Symbol == "function" && Symbol.iterator, n = r && t[r], i = 0;
|
|
23
23
|
if (n) return n.call(t);
|
|
24
24
|
if (t && typeof t.length == "number") return {
|
|
25
25
|
next: function() {
|
|
26
|
-
return t &&
|
|
26
|
+
return t && i >= t.length && (t = void 0), { value: t && t[i++], done: !t };
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
29
|
throw new TypeError(r ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function hn(t, r) {
|
|
32
32
|
var n = typeof Symbol == "function" && t[Symbol.iterator];
|
|
33
33
|
if (!n) return t;
|
|
34
|
-
var
|
|
34
|
+
var i = n.call(t), s, c = [], d;
|
|
35
35
|
try {
|
|
36
|
-
for (; (r === void 0 || r-- > 0) && !(s =
|
|
36
|
+
for (; (r === void 0 || r-- > 0) && !(s = i.next()).done; ) c.push(s.value);
|
|
37
37
|
} catch (y) {
|
|
38
38
|
d = { error: y };
|
|
39
39
|
} finally {
|
|
40
40
|
try {
|
|
41
|
-
s && !s.done && (n =
|
|
41
|
+
s && !s.done && (n = i.return) && n.call(i);
|
|
42
42
|
} finally {
|
|
43
43
|
if (d) throw d.error;
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
return c;
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
if (n || arguments.length === 2) for (var
|
|
50
|
-
(c || !(
|
|
48
|
+
function mn(t, r, n) {
|
|
49
|
+
if (n || arguments.length === 2) for (var i = 0, s = r.length, c; i < s; i++)
|
|
50
|
+
(c || !(i in r)) && (c || (c = Array.prototype.slice.call(r, 0, i)), c[i] = r[i]);
|
|
51
51
|
return t.concat(c || Array.prototype.slice.call(r));
|
|
52
52
|
}
|
|
53
53
|
function kt(t) {
|
|
54
54
|
return typeof t == "function";
|
|
55
55
|
}
|
|
56
|
-
function
|
|
57
|
-
var r = function(
|
|
58
|
-
Error.call(
|
|
56
|
+
function Vn(t) {
|
|
57
|
+
var r = function(i) {
|
|
58
|
+
Error.call(i), i.stack = new Error().stack;
|
|
59
59
|
}, n = t(r);
|
|
60
60
|
return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
|
|
61
61
|
}
|
|
62
|
-
var
|
|
62
|
+
var on = Vn(function(t) {
|
|
63
63
|
return function(n) {
|
|
64
64
|
t(this), this.message = n ? n.length + ` errors occurred during unsubscription:
|
|
65
|
-
` + n.map(function(
|
|
66
|
-
return s + 1 + ") " +
|
|
65
|
+
` + n.map(function(i, s) {
|
|
66
|
+
return s + 1 + ") " + i.toString();
|
|
67
67
|
}).join(`
|
|
68
68
|
`) : "", this.name = "UnsubscriptionError", this.errors = n;
|
|
69
69
|
};
|
|
70
70
|
});
|
|
71
|
-
function
|
|
71
|
+
function yn(t, r) {
|
|
72
72
|
if (t) {
|
|
73
73
|
var n = t.indexOf(r);
|
|
74
74
|
0 <= n && t.splice(n, 1);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
var
|
|
77
|
+
var mr = function() {
|
|
78
78
|
function t(r) {
|
|
79
79
|
this.initialTeardown = r, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
80
80
|
}
|
|
81
81
|
return t.prototype.unsubscribe = function() {
|
|
82
|
-
var r, n,
|
|
82
|
+
var r, n, i, s, c;
|
|
83
83
|
if (!this.closed) {
|
|
84
84
|
this.closed = !0;
|
|
85
85
|
var d = this._parentage;
|
|
86
86
|
if (d)
|
|
87
87
|
if (this._parentage = null, Array.isArray(d))
|
|
88
88
|
try {
|
|
89
|
-
for (var y =
|
|
90
|
-
var
|
|
91
|
-
|
|
89
|
+
for (var y = pn(d), w = y.next(); !w.done; w = y.next()) {
|
|
90
|
+
var R = w.value;
|
|
91
|
+
R.remove(this);
|
|
92
92
|
}
|
|
93
93
|
} catch (p) {
|
|
94
94
|
r = { error: p };
|
|
95
95
|
} finally {
|
|
96
96
|
try {
|
|
97
|
-
|
|
97
|
+
w && !w.done && (n = y.return) && n.call(y);
|
|
98
98
|
} finally {
|
|
99
99
|
if (r) throw r.error;
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
else
|
|
103
103
|
d.remove(this);
|
|
104
|
-
var
|
|
105
|
-
if (kt(
|
|
104
|
+
var S = this.initialTeardown;
|
|
105
|
+
if (kt(S))
|
|
106
106
|
try {
|
|
107
|
-
|
|
107
|
+
S();
|
|
108
108
|
} catch (p) {
|
|
109
|
-
c = p instanceof
|
|
109
|
+
c = p instanceof on ? p.errors : [p];
|
|
110
110
|
}
|
|
111
|
-
var
|
|
112
|
-
if (
|
|
111
|
+
var N = this._finalizers;
|
|
112
|
+
if (N) {
|
|
113
113
|
this._finalizers = null;
|
|
114
114
|
try {
|
|
115
|
-
for (var _ =
|
|
115
|
+
for (var _ = pn(N), f = _.next(); !f.done; f = _.next()) {
|
|
116
116
|
var l = f.value;
|
|
117
117
|
try {
|
|
118
|
-
|
|
118
|
+
Cn(l);
|
|
119
119
|
} catch (p) {
|
|
120
|
-
c = c ?? [], p instanceof
|
|
120
|
+
c = c ?? [], p instanceof on ? c = mn(mn([], hn(c)), hn(p.errors)) : c.push(p);
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
} catch (p) {
|
|
124
|
-
|
|
124
|
+
i = { error: p };
|
|
125
125
|
} finally {
|
|
126
126
|
try {
|
|
127
127
|
f && !f.done && (s = _.return) && s.call(_);
|
|
128
128
|
} finally {
|
|
129
|
-
if (
|
|
129
|
+
if (i) throw i.error;
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
if (c)
|
|
134
|
-
throw new
|
|
134
|
+
throw new on(c);
|
|
135
135
|
}
|
|
136
136
|
}, t.prototype.add = function(r) {
|
|
137
137
|
var n;
|
|
138
138
|
if (r && r !== this)
|
|
139
139
|
if (this.closed)
|
|
140
|
-
|
|
140
|
+
Cn(r);
|
|
141
141
|
else {
|
|
142
142
|
if (r instanceof t) {
|
|
143
143
|
if (r.closed || r._hasParent(this))
|
|
@@ -154,57 +154,57 @@ var hr = function() {
|
|
|
154
154
|
this._parentage = Array.isArray(n) ? (n.push(r), n) : n ? [n, r] : r;
|
|
155
155
|
}, t.prototype._removeParent = function(r) {
|
|
156
156
|
var n = this._parentage;
|
|
157
|
-
n === r ? this._parentage = null : Array.isArray(n) &&
|
|
157
|
+
n === r ? this._parentage = null : Array.isArray(n) && yn(n, r);
|
|
158
158
|
}, t.prototype.remove = function(r) {
|
|
159
159
|
var n = this._finalizers;
|
|
160
|
-
n &&
|
|
160
|
+
n && yn(n, r), r instanceof t && r._removeParent(this);
|
|
161
161
|
}, t.EMPTY = function() {
|
|
162
162
|
var r = new t();
|
|
163
163
|
return r.closed = !0, r;
|
|
164
164
|
}(), t;
|
|
165
|
-
}(),
|
|
166
|
-
function
|
|
167
|
-
return t instanceof
|
|
165
|
+
}(), Jn = mr.EMPTY;
|
|
166
|
+
function Zn(t) {
|
|
167
|
+
return t instanceof mr || t && "closed" in t && kt(t.remove) && kt(t.add) && kt(t.unsubscribe);
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function Cn(t) {
|
|
170
170
|
kt(t) ? t() : t.unsubscribe();
|
|
171
171
|
}
|
|
172
|
-
var
|
|
172
|
+
var qn = {
|
|
173
173
|
onUnhandledError: null,
|
|
174
174
|
onStoppedNotification: null,
|
|
175
175
|
Promise: void 0,
|
|
176
176
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
177
177
|
useDeprecatedNextContext: !1
|
|
178
|
-
},
|
|
178
|
+
}, Qn = {
|
|
179
179
|
setTimeout: function(t, r) {
|
|
180
|
-
for (var n = [],
|
|
181
|
-
n[
|
|
182
|
-
return setTimeout.apply(void 0,
|
|
180
|
+
for (var n = [], i = 2; i < arguments.length; i++)
|
|
181
|
+
n[i - 2] = arguments[i];
|
|
182
|
+
return setTimeout.apply(void 0, mn([t, r], hn(n)));
|
|
183
183
|
},
|
|
184
184
|
clearTimeout: function(t) {
|
|
185
|
-
var r =
|
|
185
|
+
var r = Qn.delegate;
|
|
186
186
|
return ((r == null ? void 0 : r.clearTimeout) || clearTimeout)(t);
|
|
187
187
|
},
|
|
188
188
|
delegate: void 0
|
|
189
189
|
};
|
|
190
|
-
function
|
|
191
|
-
|
|
190
|
+
function Bi(t) {
|
|
191
|
+
Qn.setTimeout(function() {
|
|
192
192
|
throw t;
|
|
193
193
|
});
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function Rn() {
|
|
196
196
|
}
|
|
197
197
|
function ur(t) {
|
|
198
198
|
t();
|
|
199
199
|
}
|
|
200
|
-
var
|
|
201
|
-
|
|
200
|
+
var ti = function(t) {
|
|
201
|
+
$e(r, t);
|
|
202
202
|
function r(n) {
|
|
203
|
-
var
|
|
204
|
-
return
|
|
203
|
+
var i = t.call(this) || this;
|
|
204
|
+
return i.isStopped = !1, n ? (i.destination = n, Zn(n) && n.add(i)) : i.destination = Zi, i;
|
|
205
205
|
}
|
|
206
|
-
return r.create = function(n,
|
|
207
|
-
return new
|
|
206
|
+
return r.create = function(n, i, s) {
|
|
207
|
+
return new _n(n, i, s);
|
|
208
208
|
}, r.prototype.next = function(n) {
|
|
209
209
|
this.isStopped || this._next(n);
|
|
210
210
|
}, r.prototype.error = function(n) {
|
|
@@ -228,11 +228,11 @@ var ia = function(t) {
|
|
|
228
228
|
this.unsubscribe();
|
|
229
229
|
}
|
|
230
230
|
}, r;
|
|
231
|
-
}(
|
|
232
|
-
function
|
|
233
|
-
return
|
|
231
|
+
}(mr), Ki = Function.prototype.bind;
|
|
232
|
+
function cn(t, r) {
|
|
233
|
+
return Ki.call(t, r);
|
|
234
234
|
}
|
|
235
|
-
var
|
|
235
|
+
var Vi = function() {
|
|
236
236
|
function t(r) {
|
|
237
237
|
this.partialObserver = r;
|
|
238
238
|
}
|
|
@@ -241,16 +241,16 @@ var Va = function() {
|
|
|
241
241
|
if (n.next)
|
|
242
242
|
try {
|
|
243
243
|
n.next(r);
|
|
244
|
-
} catch (
|
|
245
|
-
cr(
|
|
244
|
+
} catch (i) {
|
|
245
|
+
cr(i);
|
|
246
246
|
}
|
|
247
247
|
}, t.prototype.error = function(r) {
|
|
248
248
|
var n = this.partialObserver;
|
|
249
249
|
if (n.error)
|
|
250
250
|
try {
|
|
251
251
|
n.error(r);
|
|
252
|
-
} catch (
|
|
253
|
-
cr(
|
|
252
|
+
} catch (i) {
|
|
253
|
+
cr(i);
|
|
254
254
|
}
|
|
255
255
|
else
|
|
256
256
|
cr(r);
|
|
@@ -263,66 +263,66 @@ var Va = function() {
|
|
|
263
263
|
cr(n);
|
|
264
264
|
}
|
|
265
265
|
}, t;
|
|
266
|
-
}(),
|
|
267
|
-
|
|
268
|
-
function r(n,
|
|
266
|
+
}(), _n = function(t) {
|
|
267
|
+
$e(r, t);
|
|
268
|
+
function r(n, i, s) {
|
|
269
269
|
var c = t.call(this) || this, d;
|
|
270
270
|
if (kt(n) || !n)
|
|
271
271
|
d = {
|
|
272
272
|
next: n ?? void 0,
|
|
273
|
-
error:
|
|
273
|
+
error: i ?? void 0,
|
|
274
274
|
complete: s ?? void 0
|
|
275
275
|
};
|
|
276
276
|
else {
|
|
277
277
|
var y;
|
|
278
|
-
c &&
|
|
278
|
+
c && qn.useDeprecatedNextContext ? (y = Object.create(n), y.unsubscribe = function() {
|
|
279
279
|
return c.unsubscribe();
|
|
280
280
|
}, d = {
|
|
281
|
-
next: n.next &&
|
|
282
|
-
error: n.error &&
|
|
283
|
-
complete: n.complete &&
|
|
281
|
+
next: n.next && cn(n.next, y),
|
|
282
|
+
error: n.error && cn(n.error, y),
|
|
283
|
+
complete: n.complete && cn(n.complete, y)
|
|
284
284
|
}) : d = n;
|
|
285
285
|
}
|
|
286
|
-
return c.destination = new
|
|
286
|
+
return c.destination = new Vi(d), c;
|
|
287
287
|
}
|
|
288
288
|
return r;
|
|
289
|
-
}(
|
|
289
|
+
}(ti);
|
|
290
290
|
function cr(t) {
|
|
291
|
-
|
|
291
|
+
Bi(t);
|
|
292
292
|
}
|
|
293
|
-
function
|
|
293
|
+
function Ji(t) {
|
|
294
294
|
throw t;
|
|
295
295
|
}
|
|
296
|
-
var
|
|
296
|
+
var Zi = {
|
|
297
297
|
closed: !0,
|
|
298
|
-
next:
|
|
299
|
-
error:
|
|
300
|
-
complete:
|
|
301
|
-
},
|
|
298
|
+
next: Rn,
|
|
299
|
+
error: Ji,
|
|
300
|
+
complete: Rn
|
|
301
|
+
}, qi = function() {
|
|
302
302
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
303
303
|
}();
|
|
304
|
-
function
|
|
304
|
+
function Qi(t) {
|
|
305
305
|
return t;
|
|
306
306
|
}
|
|
307
|
-
function
|
|
308
|
-
return t.length === 0 ?
|
|
309
|
-
return t.reduce(function(
|
|
310
|
-
return s(
|
|
307
|
+
function ta(t) {
|
|
308
|
+
return t.length === 0 ? Qi : t.length === 1 ? t[0] : function(n) {
|
|
309
|
+
return t.reduce(function(i, s) {
|
|
310
|
+
return s(i);
|
|
311
311
|
}, n);
|
|
312
312
|
};
|
|
313
313
|
}
|
|
314
|
-
var
|
|
314
|
+
var Ln = function() {
|
|
315
315
|
function t(r) {
|
|
316
316
|
r && (this._subscribe = r);
|
|
317
317
|
}
|
|
318
318
|
return t.prototype.lift = function(r) {
|
|
319
319
|
var n = new t();
|
|
320
320
|
return n.source = this, n.operator = r, n;
|
|
321
|
-
}, t.prototype.subscribe = function(r, n,
|
|
322
|
-
var s = this, c =
|
|
321
|
+
}, t.prototype.subscribe = function(r, n, i) {
|
|
322
|
+
var s = this, c = ra(r) ? r : new _n(r, n, i);
|
|
323
323
|
return ur(function() {
|
|
324
|
-
var d = s, y = d.operator,
|
|
325
|
-
c.add(y ? y.call(c,
|
|
324
|
+
var d = s, y = d.operator, w = d.source;
|
|
325
|
+
c.add(y ? y.call(c, w) : w ? s._subscribe(c) : s._trySubscribe(c));
|
|
326
326
|
}), c;
|
|
327
327
|
}, t.prototype._trySubscribe = function(r) {
|
|
328
328
|
try {
|
|
@@ -331,85 +331,85 @@ var jn = function() {
|
|
|
331
331
|
r.error(n);
|
|
332
332
|
}
|
|
333
333
|
}, t.prototype.forEach = function(r, n) {
|
|
334
|
-
var
|
|
335
|
-
return n =
|
|
336
|
-
var d = new
|
|
334
|
+
var i = this;
|
|
335
|
+
return n = Fn(n), new n(function(s, c) {
|
|
336
|
+
var d = new _n({
|
|
337
337
|
next: function(y) {
|
|
338
338
|
try {
|
|
339
339
|
r(y);
|
|
340
|
-
} catch (
|
|
341
|
-
c(
|
|
340
|
+
} catch (w) {
|
|
341
|
+
c(w), d.unsubscribe();
|
|
342
342
|
}
|
|
343
343
|
},
|
|
344
344
|
error: c,
|
|
345
345
|
complete: s
|
|
346
346
|
});
|
|
347
|
-
|
|
347
|
+
i.subscribe(d);
|
|
348
348
|
});
|
|
349
349
|
}, t.prototype._subscribe = function(r) {
|
|
350
350
|
var n;
|
|
351
351
|
return (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r);
|
|
352
|
-
}, t.prototype[
|
|
352
|
+
}, t.prototype[qi] = function() {
|
|
353
353
|
return this;
|
|
354
354
|
}, t.prototype.pipe = function() {
|
|
355
355
|
for (var r = [], n = 0; n < arguments.length; n++)
|
|
356
356
|
r[n] = arguments[n];
|
|
357
|
-
return
|
|
357
|
+
return ta(r)(this);
|
|
358
358
|
}, t.prototype.toPromise = function(r) {
|
|
359
359
|
var n = this;
|
|
360
|
-
return r =
|
|
360
|
+
return r = Fn(r), new r(function(i, s) {
|
|
361
361
|
var c;
|
|
362
362
|
n.subscribe(function(d) {
|
|
363
363
|
return c = d;
|
|
364
364
|
}, function(d) {
|
|
365
365
|
return s(d);
|
|
366
366
|
}, function() {
|
|
367
|
-
return
|
|
367
|
+
return i(c);
|
|
368
368
|
});
|
|
369
369
|
});
|
|
370
370
|
}, t.create = function(r) {
|
|
371
371
|
return new t(r);
|
|
372
372
|
}, t;
|
|
373
373
|
}();
|
|
374
|
-
function
|
|
374
|
+
function Fn(t) {
|
|
375
375
|
var r;
|
|
376
|
-
return (r = t ??
|
|
376
|
+
return (r = t ?? qn.Promise) !== null && r !== void 0 ? r : Promise;
|
|
377
377
|
}
|
|
378
|
-
function
|
|
378
|
+
function ea(t) {
|
|
379
379
|
return t && kt(t.next) && kt(t.error) && kt(t.complete);
|
|
380
380
|
}
|
|
381
|
-
function
|
|
382
|
-
return t && t instanceof
|
|
381
|
+
function ra(t) {
|
|
382
|
+
return t && t instanceof ti || ea(t) && Zn(t);
|
|
383
383
|
}
|
|
384
|
-
var
|
|
384
|
+
var na = Vn(function(t) {
|
|
385
385
|
return function() {
|
|
386
386
|
t(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
387
387
|
};
|
|
388
|
-
}),
|
|
389
|
-
|
|
388
|
+
}), ei = function(t) {
|
|
389
|
+
$e(r, t);
|
|
390
390
|
function r() {
|
|
391
391
|
var n = t.call(this) || this;
|
|
392
392
|
return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
|
|
393
393
|
}
|
|
394
394
|
return r.prototype.lift = function(n) {
|
|
395
|
-
var
|
|
396
|
-
return
|
|
395
|
+
var i = new $n(this, this);
|
|
396
|
+
return i.operator = n, i;
|
|
397
397
|
}, r.prototype._throwIfClosed = function() {
|
|
398
398
|
if (this.closed)
|
|
399
|
-
throw new
|
|
399
|
+
throw new na();
|
|
400
400
|
}, r.prototype.next = function(n) {
|
|
401
|
-
var
|
|
401
|
+
var i = this;
|
|
402
402
|
ur(function() {
|
|
403
403
|
var s, c;
|
|
404
|
-
if (
|
|
405
|
-
|
|
404
|
+
if (i._throwIfClosed(), !i.isStopped) {
|
|
405
|
+
i.currentObservers || (i.currentObservers = Array.from(i.observers));
|
|
406
406
|
try {
|
|
407
|
-
for (var d =
|
|
408
|
-
var
|
|
409
|
-
|
|
407
|
+
for (var d = pn(i.currentObservers), y = d.next(); !y.done; y = d.next()) {
|
|
408
|
+
var w = y.value;
|
|
409
|
+
w.next(n);
|
|
410
410
|
}
|
|
411
|
-
} catch (
|
|
412
|
-
s = { error:
|
|
411
|
+
} catch (R) {
|
|
412
|
+
s = { error: R };
|
|
413
413
|
} finally {
|
|
414
414
|
try {
|
|
415
415
|
y && !y.done && (c = d.return) && c.call(d);
|
|
@@ -420,11 +420,11 @@ var ni = ta(function(t) {
|
|
|
420
420
|
}
|
|
421
421
|
});
|
|
422
422
|
}, r.prototype.error = function(n) {
|
|
423
|
-
var
|
|
423
|
+
var i = this;
|
|
424
424
|
ur(function() {
|
|
425
|
-
if (
|
|
426
|
-
|
|
427
|
-
for (var s =
|
|
425
|
+
if (i._throwIfClosed(), !i.isStopped) {
|
|
426
|
+
i.hasError = i.isStopped = !0, i.thrownError = n;
|
|
427
|
+
for (var s = i.observers; s.length; )
|
|
428
428
|
s.shift().error(n);
|
|
429
429
|
}
|
|
430
430
|
});
|
|
@@ -433,8 +433,8 @@ var ni = ta(function(t) {
|
|
|
433
433
|
ur(function() {
|
|
434
434
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
435
435
|
n.isStopped = !0;
|
|
436
|
-
for (var
|
|
437
|
-
|
|
436
|
+
for (var i = n.observers; i.length; )
|
|
437
|
+
i.shift().complete();
|
|
438
438
|
}
|
|
439
439
|
});
|
|
440
440
|
}, r.prototype.unsubscribe = function() {
|
|
@@ -451,43 +451,43 @@ var ni = ta(function(t) {
|
|
|
451
451
|
}, r.prototype._subscribe = function(n) {
|
|
452
452
|
return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
|
|
453
453
|
}, r.prototype._innerSubscribe = function(n) {
|
|
454
|
-
var
|
|
455
|
-
return c || d ?
|
|
456
|
-
|
|
454
|
+
var i = this, s = this, c = s.hasError, d = s.isStopped, y = s.observers;
|
|
455
|
+
return c || d ? Jn : (this.currentObservers = null, y.push(n), new mr(function() {
|
|
456
|
+
i.currentObservers = null, yn(y, n);
|
|
457
457
|
}));
|
|
458
458
|
}, r.prototype._checkFinalizedStatuses = function(n) {
|
|
459
|
-
var
|
|
459
|
+
var i = this, s = i.hasError, c = i.thrownError, d = i.isStopped;
|
|
460
460
|
s ? n.error(c) : d && n.complete();
|
|
461
461
|
}, r.prototype.asObservable = function() {
|
|
462
|
-
var n = new
|
|
462
|
+
var n = new Ln();
|
|
463
463
|
return n.source = this, n;
|
|
464
|
-
}, r.create = function(n,
|
|
465
|
-
return new
|
|
464
|
+
}, r.create = function(n, i) {
|
|
465
|
+
return new $n(n, i);
|
|
466
466
|
}, r;
|
|
467
|
-
}(
|
|
468
|
-
|
|
469
|
-
function r(n,
|
|
467
|
+
}(Ln), $n = function(t) {
|
|
468
|
+
$e(r, t);
|
|
469
|
+
function r(n, i) {
|
|
470
470
|
var s = t.call(this) || this;
|
|
471
|
-
return s.destination = n, s.source =
|
|
471
|
+
return s.destination = n, s.source = i, s;
|
|
472
472
|
}
|
|
473
473
|
return r.prototype.next = function(n) {
|
|
474
|
-
var
|
|
475
|
-
(s = (
|
|
474
|
+
var i, s;
|
|
475
|
+
(s = (i = this.destination) === null || i === void 0 ? void 0 : i.next) === null || s === void 0 || s.call(i, n);
|
|
476
476
|
}, r.prototype.error = function(n) {
|
|
477
|
-
var
|
|
478
|
-
(s = (
|
|
477
|
+
var i, s;
|
|
478
|
+
(s = (i = this.destination) === null || i === void 0 ? void 0 : i.error) === null || s === void 0 || s.call(i, n);
|
|
479
479
|
}, r.prototype.complete = function() {
|
|
480
|
-
var n,
|
|
481
|
-
(
|
|
480
|
+
var n, i;
|
|
481
|
+
(i = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || i === void 0 || i.call(n);
|
|
482
482
|
}, r.prototype._subscribe = function(n) {
|
|
483
|
-
var
|
|
484
|
-
return (s = (
|
|
483
|
+
var i, s;
|
|
484
|
+
return (s = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(n)) !== null && s !== void 0 ? s : Jn;
|
|
485
485
|
}, r;
|
|
486
|
-
}(
|
|
487
|
-
|
|
486
|
+
}(ei), Nn = function(t) {
|
|
487
|
+
$e(r, t);
|
|
488
488
|
function r(n) {
|
|
489
|
-
var
|
|
490
|
-
return
|
|
489
|
+
var i = t.call(this) || this;
|
|
490
|
+
return i._value = n, i;
|
|
491
491
|
}
|
|
492
492
|
return Object.defineProperty(r.prototype, "value", {
|
|
493
493
|
get: function() {
|
|
@@ -496,446 +496,446 @@ var ni = ta(function(t) {
|
|
|
496
496
|
enumerable: !1,
|
|
497
497
|
configurable: !0
|
|
498
498
|
}), r.prototype._subscribe = function(n) {
|
|
499
|
-
var
|
|
500
|
-
return !
|
|
499
|
+
var i = t.prototype._subscribe.call(this, n);
|
|
500
|
+
return !i.closed && n.next(this._value), i;
|
|
501
501
|
}, r.prototype.getValue = function() {
|
|
502
|
-
var n = this,
|
|
503
|
-
if (
|
|
502
|
+
var n = this, i = n.hasError, s = n.thrownError, c = n._value;
|
|
503
|
+
if (i)
|
|
504
504
|
throw s;
|
|
505
505
|
return this._throwIfClosed(), c;
|
|
506
506
|
}, r.prototype.next = function(n) {
|
|
507
507
|
t.prototype.next.call(this, this._value = n);
|
|
508
508
|
}, r;
|
|
509
|
-
}(
|
|
510
|
-
function
|
|
509
|
+
}(ei), pt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
510
|
+
function wn(t) {
|
|
511
511
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
512
512
|
}
|
|
513
513
|
var lr = { exports: {} };
|
|
514
514
|
lr.exports;
|
|
515
515
|
(function(t, r) {
|
|
516
|
-
var n = 200,
|
|
517
|
-
|
|
518
|
-
var
|
|
516
|
+
var n = 200, i = "__lodash_hash_undefined__", s = 1, c = 2, d = 9007199254740991, y = "[object Arguments]", w = "[object Array]", R = "[object AsyncFunction]", S = "[object Boolean]", N = "[object Date]", _ = "[object Error]", f = "[object Function]", l = "[object GeneratorFunction]", p = "[object Map]", I = "[object Number]", b = "[object Null]", g = "[object Object]", m = "[object Promise]", h = "[object Proxy]", T = "[object RegExp]", D = "[object Set]", k = "[object String]", x = "[object Symbol]", C = "[object Undefined]", P = "[object WeakMap]", A = "[object ArrayBuffer]", O = "[object DataView]", z = "[object Float32Array]", ot = "[object Float64Array]", Ot = "[object Int8Array]", Wt = "[object Int16Array]", Xt = "[object Int32Array]", Bt = "[object Uint8Array]", Kt = "[object Uint8ClampedArray]", H = "[object Uint16Array]", Vt = "[object Uint32Array]", Jt = /[\\^$.*+?()[\]{}|]/g, F = /^\[object .+?Constructor\]$/, G = /^(?:0|[1-9]\d*)$/, v = {};
|
|
517
|
+
v[z] = v[ot] = v[Ot] = v[Wt] = v[Xt] = v[Bt] = v[Kt] = v[H] = v[Vt] = !0, v[y] = v[w] = v[A] = v[S] = v[O] = v[N] = v[_] = v[f] = v[p] = v[I] = v[g] = v[T] = v[D] = v[k] = v[P] = !1;
|
|
518
|
+
var ct = typeof pt == "object" && pt && pt.Object === Object && pt, nt = typeof self == "object" && self && self.Object === Object && self, U = ct || nt || Function("return this")(), ft = r && !r.nodeType && r, K = ft && !0 && t && !t.nodeType && t, Y = K && K.exports === ft, ht = Y && ct.process, Zt = function() {
|
|
519
519
|
try {
|
|
520
|
-
return
|
|
520
|
+
return ht && ht.binding && ht.binding("util");
|
|
521
521
|
} catch {
|
|
522
522
|
}
|
|
523
|
-
}(),
|
|
524
|
-
function Ue(e,
|
|
525
|
-
for (var o = -1, u = e == null ? 0 : e.length,
|
|
526
|
-
var
|
|
527
|
-
|
|
523
|
+
}(), pe = Zt && Zt.isTypedArray;
|
|
524
|
+
function Ue(e, a) {
|
|
525
|
+
for (var o = -1, u = e == null ? 0 : e.length, M = 0, E = []; ++o < u; ) {
|
|
526
|
+
var $ = e[o];
|
|
527
|
+
a($, o, e) && (E[M++] = $);
|
|
528
528
|
}
|
|
529
529
|
return E;
|
|
530
530
|
}
|
|
531
|
-
function
|
|
532
|
-
for (var o = -1, u =
|
|
533
|
-
e[
|
|
531
|
+
function he(e, a) {
|
|
532
|
+
for (var o = -1, u = a.length, M = e.length; ++o < u; )
|
|
533
|
+
e[M + o] = a[o];
|
|
534
534
|
return e;
|
|
535
535
|
}
|
|
536
|
-
function Ge(e,
|
|
536
|
+
function Ge(e, a) {
|
|
537
537
|
for (var o = -1, u = e == null ? 0 : e.length; ++o < u; )
|
|
538
|
-
if (
|
|
538
|
+
if (a(e[o], o, e))
|
|
539
539
|
return !0;
|
|
540
540
|
return !1;
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function gr(e, a) {
|
|
543
543
|
for (var o = -1, u = Array(e); ++o < e; )
|
|
544
|
-
u[o] =
|
|
544
|
+
u[o] = a(o);
|
|
545
545
|
return u;
|
|
546
546
|
}
|
|
547
|
-
function
|
|
548
|
-
return function(
|
|
549
|
-
return e(
|
|
547
|
+
function br(e) {
|
|
548
|
+
return function(a) {
|
|
549
|
+
return e(a);
|
|
550
550
|
};
|
|
551
551
|
}
|
|
552
|
-
function
|
|
553
|
-
return e.has(
|
|
552
|
+
function qt(e, a) {
|
|
553
|
+
return e.has(a);
|
|
554
554
|
}
|
|
555
|
-
function
|
|
556
|
-
return e == null ? void 0 : e[
|
|
555
|
+
function me(e, a) {
|
|
556
|
+
return e == null ? void 0 : e[a];
|
|
557
557
|
}
|
|
558
558
|
function Ye(e) {
|
|
559
|
-
var
|
|
560
|
-
return e.forEach(function(u,
|
|
561
|
-
o[++
|
|
559
|
+
var a = -1, o = Array(e.size);
|
|
560
|
+
return e.forEach(function(u, M) {
|
|
561
|
+
o[++a] = [M, u];
|
|
562
562
|
}), o;
|
|
563
563
|
}
|
|
564
|
-
function We(e,
|
|
564
|
+
function We(e, a) {
|
|
565
565
|
return function(o) {
|
|
566
|
-
return e(
|
|
566
|
+
return e(a(o));
|
|
567
567
|
};
|
|
568
568
|
}
|
|
569
569
|
function It(e) {
|
|
570
|
-
var
|
|
570
|
+
var a = -1, o = Array(e.size);
|
|
571
571
|
return e.forEach(function(u) {
|
|
572
|
-
o[++
|
|
572
|
+
o[++a] = u;
|
|
573
573
|
}), o;
|
|
574
574
|
}
|
|
575
|
-
var
|
|
576
|
-
var e = /[^.]+$/.exec(
|
|
575
|
+
var Qt = Array.prototype, vr = Function.prototype, xt = Object.prototype, te = U["__core-js_shared__"], ye = vr.toString, dt = xt.hasOwnProperty, Xe = function() {
|
|
576
|
+
var e = /[^.]+$/.exec(te && te.keys && te.keys.IE_PROTO || "");
|
|
577
577
|
return e ? "Symbol(src)_1." + e : "";
|
|
578
|
-
}(), Be =
|
|
579
|
-
"^" +
|
|
580
|
-
),
|
|
578
|
+
}(), Be = xt.toString, Er = RegExp(
|
|
579
|
+
"^" + ye.call(dt).replace(Jt, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
580
|
+
), _e = Y ? U.Buffer : void 0, ee = U.Symbol, Ke = U.Uint8Array, re = xt.propertyIsEnumerable, Pt = Qt.splice, mt = ee ? ee.toStringTag : void 0, ne = Object.getOwnPropertySymbols, Ie = _e ? _e.isBuffer : void 0, Ct = We(Object.keys, Object), ge = St(U, "DataView"), Rt = St(U, "Map"), be = St(U, "Promise"), ve = St(U, "Set"), Ee = St(U, "WeakMap"), At = St(Object, "create"), Ve = et(ge), Et = et(Rt), Sr = et(be), Tr = et(ve), wr = et(Ee), Je = ee ? ee.prototype : void 0, Se = Je ? Je.valueOf : void 0;
|
|
581
581
|
function V(e) {
|
|
582
|
-
var
|
|
583
|
-
for (this.clear(); ++
|
|
584
|
-
var u = e[
|
|
582
|
+
var a = -1, o = e == null ? 0 : e.length;
|
|
583
|
+
for (this.clear(); ++a < o; ) {
|
|
584
|
+
var u = e[a];
|
|
585
585
|
this.set(u[0], u[1]);
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
|
-
function
|
|
588
|
+
function kr() {
|
|
589
589
|
this.__data__ = At ? At(null) : {}, this.size = 0;
|
|
590
590
|
}
|
|
591
|
-
function kr(e) {
|
|
592
|
-
var i = this.has(e) && delete this.__data__[e];
|
|
593
|
-
return this.size -= i ? 1 : 0, i;
|
|
594
|
-
}
|
|
595
591
|
function Ar(e) {
|
|
596
|
-
var
|
|
592
|
+
var a = this.has(e) && delete this.__data__[e];
|
|
593
|
+
return this.size -= a ? 1 : 0, a;
|
|
594
|
+
}
|
|
595
|
+
function Dr(e) {
|
|
596
|
+
var a = this.__data__;
|
|
597
597
|
if (At) {
|
|
598
|
-
var o =
|
|
599
|
-
return o ===
|
|
598
|
+
var o = a[e];
|
|
599
|
+
return o === i ? void 0 : o;
|
|
600
600
|
}
|
|
601
|
-
return
|
|
601
|
+
return dt.call(a, e) ? a[e] : void 0;
|
|
602
602
|
}
|
|
603
|
-
function
|
|
604
|
-
var
|
|
605
|
-
return At ?
|
|
603
|
+
function Mr(e) {
|
|
604
|
+
var a = this.__data__;
|
|
605
|
+
return At ? a[e] !== void 0 : dt.call(a, e);
|
|
606
606
|
}
|
|
607
|
-
function
|
|
607
|
+
function Or(e, a) {
|
|
608
608
|
var o = this.__data__;
|
|
609
|
-
return this.size += this.has(e) ? 0 : 1, o[e] = At &&
|
|
609
|
+
return this.size += this.has(e) ? 0 : 1, o[e] = At && a === void 0 ? i : a, this;
|
|
610
610
|
}
|
|
611
|
-
V.prototype.clear =
|
|
612
|
-
function
|
|
613
|
-
var
|
|
614
|
-
for (this.clear(); ++
|
|
615
|
-
var u = e[
|
|
611
|
+
V.prototype.clear = kr, V.prototype.delete = Ar, V.prototype.get = Dr, V.prototype.has = Mr, V.prototype.set = Or;
|
|
612
|
+
function Z(e) {
|
|
613
|
+
var a = -1, o = e == null ? 0 : e.length;
|
|
614
|
+
for (this.clear(); ++a < o; ) {
|
|
615
|
+
var u = e[a];
|
|
616
616
|
this.set(u[0], u[1]);
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
|
-
function
|
|
619
|
+
function xr() {
|
|
620
620
|
this.__data__ = [], this.size = 0;
|
|
621
621
|
}
|
|
622
|
-
function
|
|
623
|
-
var
|
|
622
|
+
function Pr(e) {
|
|
623
|
+
var a = this.__data__, o = se(a, e);
|
|
624
624
|
if (o < 0)
|
|
625
625
|
return !1;
|
|
626
|
-
var u =
|
|
627
|
-
return o == u ?
|
|
628
|
-
}
|
|
629
|
-
function Pr(e) {
|
|
630
|
-
var i = this.__data__, o = ae(i, e);
|
|
631
|
-
return o < 0 ? void 0 : i[o][1];
|
|
626
|
+
var u = a.length - 1;
|
|
627
|
+
return o == u ? a.pop() : Pt.call(a, o, 1), --this.size, !0;
|
|
632
628
|
}
|
|
633
629
|
function Cr(e) {
|
|
634
|
-
|
|
630
|
+
var a = this.__data__, o = se(a, e);
|
|
631
|
+
return o < 0 ? void 0 : a[o][1];
|
|
635
632
|
}
|
|
636
|
-
function Rr(e
|
|
637
|
-
|
|
638
|
-
return u < 0 ? (++this.size, o.push([e, i])) : o[u][1] = i, this;
|
|
633
|
+
function Rr(e) {
|
|
634
|
+
return se(this.__data__, e) > -1;
|
|
639
635
|
}
|
|
640
|
-
|
|
636
|
+
function Lr(e, a) {
|
|
637
|
+
var o = this.__data__, u = se(o, e);
|
|
638
|
+
return u < 0 ? (++this.size, o.push([e, a])) : o[u][1] = a, this;
|
|
639
|
+
}
|
|
640
|
+
Z.prototype.clear = xr, Z.prototype.delete = Pr, Z.prototype.get = Cr, Z.prototype.has = Rr, Z.prototype.set = Lr;
|
|
641
641
|
function it(e) {
|
|
642
|
-
var
|
|
643
|
-
for (this.clear(); ++
|
|
644
|
-
var u = e[
|
|
642
|
+
var a = -1, o = e == null ? 0 : e.length;
|
|
643
|
+
for (this.clear(); ++a < o; ) {
|
|
644
|
+
var u = e[a];
|
|
645
645
|
this.set(u[0], u[1]);
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
|
-
function
|
|
648
|
+
function Fr() {
|
|
649
649
|
this.size = 0, this.__data__ = {
|
|
650
650
|
hash: new V(),
|
|
651
|
-
map: new (
|
|
651
|
+
map: new (Rt || Z)(),
|
|
652
652
|
string: new V()
|
|
653
653
|
};
|
|
654
654
|
}
|
|
655
|
-
function Fr(e) {
|
|
656
|
-
var i = ht(this, e).delete(e);
|
|
657
|
-
return this.size -= i ? 1 : 0, i;
|
|
658
|
-
}
|
|
659
655
|
function $r(e) {
|
|
660
|
-
|
|
656
|
+
var a = yt(this, e).delete(e);
|
|
657
|
+
return this.size -= a ? 1 : 0, a;
|
|
661
658
|
}
|
|
662
659
|
function Nr(e) {
|
|
663
|
-
return
|
|
660
|
+
return yt(this, e).get(e);
|
|
661
|
+
}
|
|
662
|
+
function Hr(e) {
|
|
663
|
+
return yt(this, e).has(e);
|
|
664
664
|
}
|
|
665
|
-
function
|
|
666
|
-
var o =
|
|
667
|
-
return o.set(e,
|
|
665
|
+
function jr(e, a) {
|
|
666
|
+
var o = yt(this, e), u = o.size;
|
|
667
|
+
return o.set(e, a), this.size += o.size == u ? 0 : 1, this;
|
|
668
668
|
}
|
|
669
|
-
it.prototype.clear =
|
|
670
|
-
function
|
|
671
|
-
var
|
|
672
|
-
for (this.__data__ = new it(); ++
|
|
673
|
-
this.add(e[
|
|
669
|
+
it.prototype.clear = Fr, it.prototype.delete = $r, it.prototype.get = Nr, it.prototype.has = Hr, it.prototype.set = jr;
|
|
670
|
+
function ie(e) {
|
|
671
|
+
var a = -1, o = e == null ? 0 : e.length;
|
|
672
|
+
for (this.__data__ = new it(); ++a < o; )
|
|
673
|
+
this.add(e[a]);
|
|
674
674
|
}
|
|
675
675
|
function Ze(e) {
|
|
676
|
-
return this.__data__.set(e,
|
|
676
|
+
return this.__data__.set(e, i), this;
|
|
677
677
|
}
|
|
678
|
-
function
|
|
678
|
+
function ae(e) {
|
|
679
679
|
return this.__data__.has(e);
|
|
680
680
|
}
|
|
681
|
-
|
|
681
|
+
ie.prototype.add = ie.prototype.push = Ze, ie.prototype.has = ae;
|
|
682
682
|
function gt(e) {
|
|
683
|
-
var
|
|
684
|
-
this.size =
|
|
685
|
-
}
|
|
686
|
-
function Se() {
|
|
687
|
-
this.__data__ = new q(), this.size = 0;
|
|
683
|
+
var a = this.__data__ = new Z(e);
|
|
684
|
+
this.size = a.size;
|
|
688
685
|
}
|
|
689
|
-
function
|
|
690
|
-
|
|
691
|
-
return this.size = i.size, o;
|
|
686
|
+
function Te() {
|
|
687
|
+
this.__data__ = new Z(), this.size = 0;
|
|
692
688
|
}
|
|
693
689
|
function zr(e) {
|
|
694
|
-
|
|
690
|
+
var a = this.__data__, o = a.delete(e);
|
|
691
|
+
return this.size = a.size, o;
|
|
695
692
|
}
|
|
696
693
|
function Ur(e) {
|
|
694
|
+
return this.__data__.get(e);
|
|
695
|
+
}
|
|
696
|
+
function Gr(e) {
|
|
697
697
|
return this.__data__.has(e);
|
|
698
698
|
}
|
|
699
|
-
function
|
|
699
|
+
function Yr(e, a) {
|
|
700
700
|
var o = this.__data__;
|
|
701
|
-
if (o instanceof
|
|
701
|
+
if (o instanceof Z) {
|
|
702
702
|
var u = o.__data__;
|
|
703
|
-
if (!
|
|
704
|
-
return u.push([e,
|
|
703
|
+
if (!Rt || u.length < n - 1)
|
|
704
|
+
return u.push([e, a]), this.size = ++o.size, this;
|
|
705
705
|
o = this.__data__ = new it(u);
|
|
706
706
|
}
|
|
707
|
-
return o.set(e,
|
|
708
|
-
}
|
|
709
|
-
gt.prototype.clear =
|
|
710
|
-
function
|
|
711
|
-
var o =
|
|
712
|
-
for (var
|
|
713
|
-
|
|
714
|
-
(
|
|
715
|
-
|
|
716
|
-
E && (
|
|
717
|
-
|
|
718
|
-
return
|
|
719
|
-
}
|
|
720
|
-
function
|
|
707
|
+
return o.set(e, a), this.size = o.size, this;
|
|
708
|
+
}
|
|
709
|
+
gt.prototype.clear = Te, gt.prototype.delete = zr, gt.prototype.get = Ur, gt.prototype.has = Gr, gt.prototype.set = Yr;
|
|
710
|
+
function Wr(e, a) {
|
|
711
|
+
var o = oe(e), u = !o && rr(e), M = !o && !u && ce(e), E = !o && !u && !M && ar(e), $ = o || u || M || E, L = $ ? gr(e.length, String) : [], W = L.length;
|
|
712
|
+
for (var j in e)
|
|
713
|
+
dt.call(e, j) && !($ && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
714
|
+
(j == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
715
|
+
M && (j == "offset" || j == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
716
|
+
E && (j == "buffer" || j == "byteLength" || j == "byteOffset") || // Skip index properties.
|
|
717
|
+
Qr(j, W))) && L.push(j);
|
|
718
|
+
return L;
|
|
719
|
+
}
|
|
720
|
+
function se(e, a) {
|
|
721
721
|
for (var o = e.length; o--; )
|
|
722
|
-
if (er(e[o][0],
|
|
722
|
+
if (er(e[o][0], a))
|
|
723
723
|
return o;
|
|
724
724
|
return -1;
|
|
725
725
|
}
|
|
726
|
-
function
|
|
727
|
-
var u =
|
|
728
|
-
return
|
|
726
|
+
function we(e, a, o) {
|
|
727
|
+
var u = a(e);
|
|
728
|
+
return oe(e) ? u : he(u, o(e));
|
|
729
729
|
}
|
|
730
|
-
function
|
|
731
|
-
return e == null ? e === void 0 ?
|
|
730
|
+
function Lt(e) {
|
|
731
|
+
return e == null ? e === void 0 ? C : b : mt && mt in Object(e) ? Tt(e) : tr(e);
|
|
732
732
|
}
|
|
733
733
|
function qe(e) {
|
|
734
|
-
return vt(e) &&
|
|
734
|
+
return vt(e) && Lt(e) == y;
|
|
735
735
|
}
|
|
736
|
-
function Qe(e,
|
|
737
|
-
return e ===
|
|
736
|
+
function Qe(e, a, o, u, M) {
|
|
737
|
+
return e === a ? !0 : e == null || a == null || !vt(e) && !vt(a) ? e !== e && a !== a : Xr(e, a, o, u, Qe, M);
|
|
738
738
|
}
|
|
739
|
-
function
|
|
740
|
-
var
|
|
741
|
-
W = W == y ?
|
|
742
|
-
var
|
|
743
|
-
if (X &&
|
|
744
|
-
if (!
|
|
739
|
+
function Xr(e, a, o, u, M, E) {
|
|
740
|
+
var $ = oe(e), L = oe(a), W = $ ? w : bt(e), j = L ? w : bt(a);
|
|
741
|
+
W = W == y ? g : W, j = j == y ? g : j;
|
|
742
|
+
var q = W == g, at = j == g, X = W == j;
|
|
743
|
+
if (X && ce(e)) {
|
|
744
|
+
if (!ce(a))
|
|
745
745
|
return !1;
|
|
746
|
-
|
|
746
|
+
$ = !0, q = !1;
|
|
747
747
|
}
|
|
748
|
-
if (X && !
|
|
749
|
-
return E || (E = new gt()),
|
|
748
|
+
if (X && !q)
|
|
749
|
+
return E || (E = new gt()), $ || ar(e) ? ke(e, a, o, u, M, E) : Jr(e, a, W, o, u, M, E);
|
|
750
750
|
if (!(o & s)) {
|
|
751
|
-
var
|
|
752
|
-
if (
|
|
753
|
-
var Dt =
|
|
754
|
-
return E || (E = new gt()),
|
|
751
|
+
var Q = q && dt.call(e, "__wrapped__"), J = at && dt.call(a, "__wrapped__");
|
|
752
|
+
if (Q || J) {
|
|
753
|
+
var Dt = Q ? e.value() : e, wt = J ? a.value() : a;
|
|
754
|
+
return E || (E = new gt()), M(Dt, wt, o, u, E);
|
|
755
755
|
}
|
|
756
756
|
}
|
|
757
|
-
return X ? (E || (E = new gt()),
|
|
758
|
-
}
|
|
759
|
-
function Xr(e) {
|
|
760
|
-
if (!ar(e) || tn(e))
|
|
761
|
-
return !1;
|
|
762
|
-
var i = nr(e) ? vr : C;
|
|
763
|
-
return i.test(rt(e));
|
|
757
|
+
return X ? (E || (E = new gt()), Zr(e, a, o, u, M, E)) : !1;
|
|
764
758
|
}
|
|
765
759
|
function Br(e) {
|
|
766
|
-
|
|
760
|
+
if (!ir(e) || en(e))
|
|
761
|
+
return !1;
|
|
762
|
+
var a = nr(e) ? Er : F;
|
|
763
|
+
return a.test(et(e));
|
|
767
764
|
}
|
|
768
765
|
function Kr(e) {
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
766
|
+
return vt(e) && De(e.length) && !!v[Lt(e)];
|
|
767
|
+
}
|
|
768
|
+
function Vr(e) {
|
|
769
|
+
if (!rn(e))
|
|
770
|
+
return Ct(e);
|
|
771
|
+
var a = [];
|
|
772
772
|
for (var o in Object(e))
|
|
773
|
-
|
|
774
|
-
return
|
|
773
|
+
dt.call(e, o) && o != "constructor" && a.push(o);
|
|
774
|
+
return a;
|
|
775
775
|
}
|
|
776
|
-
function
|
|
777
|
-
var
|
|
778
|
-
if (
|
|
776
|
+
function ke(e, a, o, u, M, E) {
|
|
777
|
+
var $ = o & s, L = e.length, W = a.length;
|
|
778
|
+
if (L != W && !($ && W > L))
|
|
779
779
|
return !1;
|
|
780
|
-
var
|
|
781
|
-
if (
|
|
782
|
-
return
|
|
783
|
-
var
|
|
784
|
-
for (E.set(e,
|
|
785
|
-
var
|
|
780
|
+
var j = E.get(e);
|
|
781
|
+
if (j && E.get(a))
|
|
782
|
+
return j == a;
|
|
783
|
+
var q = -1, at = !0, X = o & c ? new ie() : void 0;
|
|
784
|
+
for (E.set(e, a), E.set(a, e); ++q < L; ) {
|
|
785
|
+
var Q = e[q], J = a[q];
|
|
786
786
|
if (u)
|
|
787
|
-
var Dt =
|
|
787
|
+
var Dt = $ ? u(J, Q, q, a, e, E) : u(Q, J, q, e, a, E);
|
|
788
788
|
if (Dt !== void 0) {
|
|
789
789
|
if (Dt)
|
|
790
790
|
continue;
|
|
791
|
-
|
|
791
|
+
at = !1;
|
|
792
792
|
break;
|
|
793
793
|
}
|
|
794
794
|
if (X) {
|
|
795
|
-
if (!Ge(
|
|
796
|
-
if (!
|
|
797
|
-
return X.push(
|
|
795
|
+
if (!Ge(a, function(wt, $t) {
|
|
796
|
+
if (!qt(X, $t) && (Q === wt || M(Q, wt, o, u, E)))
|
|
797
|
+
return X.push($t);
|
|
798
798
|
})) {
|
|
799
|
-
|
|
799
|
+
at = !1;
|
|
800
800
|
break;
|
|
801
801
|
}
|
|
802
|
-
} else if (!(
|
|
803
|
-
|
|
802
|
+
} else if (!(Q === J || M(Q, J, o, u, E))) {
|
|
803
|
+
at = !1;
|
|
804
804
|
break;
|
|
805
805
|
}
|
|
806
806
|
}
|
|
807
|
-
return E.delete(e), E.delete(
|
|
807
|
+
return E.delete(e), E.delete(a), at;
|
|
808
808
|
}
|
|
809
|
-
function
|
|
809
|
+
function Jr(e, a, o, u, M, E, $) {
|
|
810
810
|
switch (o) {
|
|
811
|
-
case
|
|
812
|
-
if (e.byteLength !=
|
|
811
|
+
case O:
|
|
812
|
+
if (e.byteLength != a.byteLength || e.byteOffset != a.byteOffset)
|
|
813
813
|
return !1;
|
|
814
|
-
e = e.buffer,
|
|
814
|
+
e = e.buffer, a = a.buffer;
|
|
815
|
+
case A:
|
|
816
|
+
return !(e.byteLength != a.byteLength || !E(new Ke(e), new Ke(a)));
|
|
815
817
|
case S:
|
|
816
|
-
|
|
817
|
-
case T:
|
|
818
|
-
case H:
|
|
818
|
+
case N:
|
|
819
819
|
case I:
|
|
820
|
-
return er(+e, +
|
|
820
|
+
return er(+e, +a);
|
|
821
821
|
case _:
|
|
822
|
-
return e.name ==
|
|
823
|
-
case
|
|
824
|
-
case
|
|
825
|
-
return e ==
|
|
822
|
+
return e.name == a.name && e.message == a.message;
|
|
823
|
+
case T:
|
|
824
|
+
case k:
|
|
825
|
+
return e == a + "";
|
|
826
826
|
case p:
|
|
827
|
-
var
|
|
828
|
-
case
|
|
827
|
+
var L = Ye;
|
|
828
|
+
case D:
|
|
829
829
|
var W = u & s;
|
|
830
|
-
if (
|
|
830
|
+
if (L || (L = It), e.size != a.size && !W)
|
|
831
831
|
return !1;
|
|
832
|
-
var
|
|
833
|
-
if (
|
|
834
|
-
return
|
|
835
|
-
u |= c,
|
|
836
|
-
var
|
|
837
|
-
return
|
|
832
|
+
var j = $.get(e);
|
|
833
|
+
if (j)
|
|
834
|
+
return j == a;
|
|
835
|
+
u |= c, $.set(e, a);
|
|
836
|
+
var q = ke(L(e), L(a), u, M, E, $);
|
|
837
|
+
return $.delete(e), q;
|
|
838
838
|
case x:
|
|
839
|
-
if (
|
|
840
|
-
return
|
|
839
|
+
if (Se)
|
|
840
|
+
return Se.call(e) == Se.call(a);
|
|
841
841
|
}
|
|
842
842
|
return !1;
|
|
843
843
|
}
|
|
844
|
-
function
|
|
845
|
-
var
|
|
846
|
-
if (W !=
|
|
844
|
+
function Zr(e, a, o, u, M, E) {
|
|
845
|
+
var $ = o & s, L = Ft(e), W = L.length, j = Ft(a), q = j.length;
|
|
846
|
+
if (W != q && !$)
|
|
847
847
|
return !1;
|
|
848
|
-
for (var
|
|
849
|
-
var X =
|
|
850
|
-
if (!(
|
|
848
|
+
for (var at = W; at--; ) {
|
|
849
|
+
var X = L[at];
|
|
850
|
+
if (!($ ? X in a : dt.call(a, X)))
|
|
851
851
|
return !1;
|
|
852
852
|
}
|
|
853
|
-
var
|
|
854
|
-
if (
|
|
855
|
-
return
|
|
853
|
+
var Q = E.get(e);
|
|
854
|
+
if (Q && E.get(a))
|
|
855
|
+
return Q == a;
|
|
856
856
|
var J = !0;
|
|
857
|
-
E.set(e,
|
|
858
|
-
for (var Dt =
|
|
859
|
-
X =
|
|
860
|
-
var wt = e[X],
|
|
857
|
+
E.set(e, a), E.set(a, e);
|
|
858
|
+
for (var Dt = $; ++at < W; ) {
|
|
859
|
+
X = L[at];
|
|
860
|
+
var wt = e[X], $t = a[X];
|
|
861
861
|
if (u)
|
|
862
|
-
var
|
|
863
|
-
if (!(
|
|
862
|
+
var Pn = $ ? u($t, wt, X, a, e, E) : u(wt, $t, X, e, a, E);
|
|
863
|
+
if (!(Pn === void 0 ? wt === $t || M(wt, $t, o, u, E) : Pn)) {
|
|
864
864
|
J = !1;
|
|
865
865
|
break;
|
|
866
866
|
}
|
|
867
867
|
Dt || (Dt = X == "constructor");
|
|
868
868
|
}
|
|
869
869
|
if (J && !Dt) {
|
|
870
|
-
var sr = e.constructor, or =
|
|
871
|
-
sr != or && "constructor" in e && "constructor" in
|
|
870
|
+
var sr = e.constructor, or = a.constructor;
|
|
871
|
+
sr != or && "constructor" in e && "constructor" in a && !(typeof sr == "function" && sr instanceof sr && typeof or == "function" && or instanceof or) && (J = !1);
|
|
872
872
|
}
|
|
873
|
-
return E.delete(e), E.delete(
|
|
873
|
+
return E.delete(e), E.delete(a), J;
|
|
874
874
|
}
|
|
875
|
-
function
|
|
876
|
-
return
|
|
875
|
+
function Ft(e) {
|
|
876
|
+
return we(e, Me, qr);
|
|
877
877
|
}
|
|
878
|
-
function
|
|
878
|
+
function yt(e, a) {
|
|
879
879
|
var o = e.__data__;
|
|
880
|
-
return
|
|
880
|
+
return tn(a) ? o[typeof a == "string" ? "string" : "hash"] : o.map;
|
|
881
881
|
}
|
|
882
|
-
function St(e,
|
|
883
|
-
var o =
|
|
884
|
-
return
|
|
882
|
+
function St(e, a) {
|
|
883
|
+
var o = me(e, a);
|
|
884
|
+
return Br(o) ? o : void 0;
|
|
885
885
|
}
|
|
886
886
|
function Tt(e) {
|
|
887
|
-
var
|
|
887
|
+
var a = dt.call(e, mt), o = e[mt];
|
|
888
888
|
try {
|
|
889
|
-
e[
|
|
889
|
+
e[mt] = void 0;
|
|
890
890
|
var u = !0;
|
|
891
891
|
} catch {
|
|
892
892
|
}
|
|
893
|
-
var
|
|
894
|
-
return u && (
|
|
893
|
+
var M = Be.call(e);
|
|
894
|
+
return u && (a ? e[mt] = o : delete e[mt]), M;
|
|
895
895
|
}
|
|
896
|
-
var
|
|
897
|
-
return e == null ? [] : (e = Object(e), Ue(
|
|
898
|
-
return
|
|
896
|
+
var qr = ne ? function(e) {
|
|
897
|
+
return e == null ? [] : (e = Object(e), Ue(ne(e), function(a) {
|
|
898
|
+
return re.call(e, a);
|
|
899
899
|
}));
|
|
900
|
-
} :
|
|
901
|
-
(
|
|
902
|
-
var
|
|
900
|
+
} : an, bt = Lt;
|
|
901
|
+
(ge && bt(new ge(new ArrayBuffer(1))) != O || Rt && bt(new Rt()) != p || be && bt(be.resolve()) != m || ve && bt(new ve()) != D || Ee && bt(new Ee()) != P) && (bt = function(e) {
|
|
902
|
+
var a = Lt(e), o = a == g ? e.constructor : void 0, u = o ? et(o) : "";
|
|
903
903
|
if (u)
|
|
904
904
|
switch (u) {
|
|
905
905
|
case Ve:
|
|
906
|
-
return
|
|
906
|
+
return O;
|
|
907
907
|
case Et:
|
|
908
908
|
return p;
|
|
909
|
-
case Er:
|
|
910
|
-
return h;
|
|
911
909
|
case Sr:
|
|
912
|
-
return
|
|
910
|
+
return m;
|
|
913
911
|
case Tr:
|
|
914
|
-
return
|
|
912
|
+
return D;
|
|
913
|
+
case wr:
|
|
914
|
+
return P;
|
|
915
915
|
}
|
|
916
|
-
return
|
|
916
|
+
return a;
|
|
917
917
|
});
|
|
918
|
-
function
|
|
919
|
-
return
|
|
920
|
-
}
|
|
921
|
-
function Qr(e) {
|
|
922
|
-
var i = typeof e;
|
|
923
|
-
return i == "string" || i == "number" || i == "symbol" || i == "boolean" ? e !== "__proto__" : e === null;
|
|
918
|
+
function Qr(e, a) {
|
|
919
|
+
return a = a ?? d, !!a && (typeof e == "number" || G.test(e)) && e > -1 && e % 1 == 0 && e < a;
|
|
924
920
|
}
|
|
925
921
|
function tn(e) {
|
|
926
|
-
|
|
922
|
+
var a = typeof e;
|
|
923
|
+
return a == "string" || a == "number" || a == "symbol" || a == "boolean" ? e !== "__proto__" : e === null;
|
|
927
924
|
}
|
|
928
925
|
function en(e) {
|
|
929
|
-
|
|
926
|
+
return !!Xe && Xe in e;
|
|
927
|
+
}
|
|
928
|
+
function rn(e) {
|
|
929
|
+
var a = e && e.constructor, o = typeof a == "function" && a.prototype || xt;
|
|
930
930
|
return e === o;
|
|
931
931
|
}
|
|
932
932
|
function tr(e) {
|
|
933
933
|
return Be.call(e);
|
|
934
934
|
}
|
|
935
|
-
function
|
|
935
|
+
function et(e) {
|
|
936
936
|
if (e != null) {
|
|
937
937
|
try {
|
|
938
|
-
return
|
|
938
|
+
return ye.call(e);
|
|
939
939
|
} catch {
|
|
940
940
|
}
|
|
941
941
|
try {
|
|
@@ -945,442 +945,442 @@ lr.exports;
|
|
|
945
945
|
}
|
|
946
946
|
return "";
|
|
947
947
|
}
|
|
948
|
-
function er(e,
|
|
949
|
-
return e ===
|
|
948
|
+
function er(e, a) {
|
|
949
|
+
return e === a || e !== e && a !== a;
|
|
950
950
|
}
|
|
951
951
|
var rr = qe(/* @__PURE__ */ function() {
|
|
952
952
|
return arguments;
|
|
953
953
|
}()) ? qe : function(e) {
|
|
954
|
-
return vt(e) &&
|
|
955
|
-
},
|
|
956
|
-
function
|
|
957
|
-
return e != null &&
|
|
954
|
+
return vt(e) && dt.call(e, "callee") && !re.call(e, "callee");
|
|
955
|
+
}, oe = Array.isArray;
|
|
956
|
+
function Ae(e) {
|
|
957
|
+
return e != null && De(e.length) && !nr(e);
|
|
958
958
|
}
|
|
959
|
-
var
|
|
960
|
-
function
|
|
961
|
-
return Qe(e,
|
|
959
|
+
var ce = Ie || sn;
|
|
960
|
+
function nn(e, a) {
|
|
961
|
+
return Qe(e, a);
|
|
962
962
|
}
|
|
963
963
|
function nr(e) {
|
|
964
|
-
if (!
|
|
964
|
+
if (!ir(e))
|
|
965
965
|
return !1;
|
|
966
|
-
var
|
|
967
|
-
return
|
|
966
|
+
var a = Lt(e);
|
|
967
|
+
return a == f || a == l || a == R || a == h;
|
|
968
968
|
}
|
|
969
|
-
function
|
|
969
|
+
function De(e) {
|
|
970
970
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= d;
|
|
971
971
|
}
|
|
972
|
-
function
|
|
973
|
-
var
|
|
974
|
-
return e != null && (
|
|
972
|
+
function ir(e) {
|
|
973
|
+
var a = typeof e;
|
|
974
|
+
return e != null && (a == "object" || a == "function");
|
|
975
975
|
}
|
|
976
976
|
function vt(e) {
|
|
977
977
|
return e != null && typeof e == "object";
|
|
978
978
|
}
|
|
979
|
-
var
|
|
980
|
-
function
|
|
981
|
-
return
|
|
979
|
+
var ar = pe ? br(pe) : Kr;
|
|
980
|
+
function Me(e) {
|
|
981
|
+
return Ae(e) ? Wr(e) : Vr(e);
|
|
982
982
|
}
|
|
983
|
-
function
|
|
983
|
+
function an() {
|
|
984
984
|
return [];
|
|
985
985
|
}
|
|
986
|
-
function
|
|
986
|
+
function sn() {
|
|
987
987
|
return !1;
|
|
988
988
|
}
|
|
989
|
-
t.exports =
|
|
989
|
+
t.exports = nn;
|
|
990
990
|
})(lr, lr.exports);
|
|
991
|
-
var
|
|
992
|
-
const
|
|
991
|
+
var ia = lr.exports;
|
|
992
|
+
const rt = /* @__PURE__ */ wn(ia);
|
|
993
993
|
var fr = { exports: {} };
|
|
994
994
|
fr.exports;
|
|
995
995
|
(function(t, r) {
|
|
996
|
-
var n = 200,
|
|
997
|
-
|
|
998
|
-
var
|
|
999
|
-
function
|
|
1000
|
-
return e.set(
|
|
996
|
+
var n = 200, i = "__lodash_hash_undefined__", s = 9007199254740991, c = "[object Arguments]", d = "[object Array]", y = "[object Boolean]", w = "[object Date]", R = "[object Error]", S = "[object Function]", N = "[object GeneratorFunction]", _ = "[object Map]", f = "[object Number]", l = "[object Object]", p = "[object Promise]", I = "[object RegExp]", b = "[object Set]", g = "[object String]", m = "[object Symbol]", h = "[object WeakMap]", T = "[object ArrayBuffer]", D = "[object DataView]", k = "[object Float32Array]", x = "[object Float64Array]", C = "[object Int8Array]", P = "[object Int16Array]", A = "[object Int32Array]", O = "[object Uint8Array]", z = "[object Uint8ClampedArray]", ot = "[object Uint16Array]", Ot = "[object Uint32Array]", Wt = /[\\^$.*+?()[\]{}|]/g, Xt = /\w*$/, Bt = /^\[object .+?Constructor\]$/, Kt = /^(?:0|[1-9]\d*)$/, H = {};
|
|
997
|
+
H[c] = H[d] = H[T] = H[D] = H[y] = H[w] = H[k] = H[x] = H[C] = H[P] = H[A] = H[_] = H[f] = H[l] = H[I] = H[b] = H[g] = H[m] = H[O] = H[z] = H[ot] = H[Ot] = !0, H[R] = H[S] = H[h] = !1;
|
|
998
|
+
var Vt = typeof pt == "object" && pt && pt.Object === Object && pt, Jt = typeof self == "object" && self && self.Object === Object && self, F = Vt || Jt || Function("return this")(), G = r && !r.nodeType && r, v = G && !0 && t && !t.nodeType && t, ct = v && v.exports === G;
|
|
999
|
+
function nt(e, a) {
|
|
1000
|
+
return e.set(a[0], a[1]), e;
|
|
1001
1001
|
}
|
|
1002
|
-
function
|
|
1003
|
-
return e.add(
|
|
1002
|
+
function U(e, a) {
|
|
1003
|
+
return e.add(a), e;
|
|
1004
1004
|
}
|
|
1005
|
-
function
|
|
1006
|
-
for (var o = -1, u = e ? e.length : 0; ++o < u &&
|
|
1005
|
+
function ft(e, a) {
|
|
1006
|
+
for (var o = -1, u = e ? e.length : 0; ++o < u && a(e[o], o, e) !== !1; )
|
|
1007
1007
|
;
|
|
1008
1008
|
return e;
|
|
1009
1009
|
}
|
|
1010
|
-
function
|
|
1011
|
-
for (var o = -1, u =
|
|
1012
|
-
e[
|
|
1010
|
+
function K(e, a) {
|
|
1011
|
+
for (var o = -1, u = a.length, M = e.length; ++o < u; )
|
|
1012
|
+
e[M + o] = a[o];
|
|
1013
1013
|
return e;
|
|
1014
1014
|
}
|
|
1015
|
-
function
|
|
1016
|
-
for (var
|
|
1017
|
-
o =
|
|
1015
|
+
function Y(e, a, o, u) {
|
|
1016
|
+
for (var M = -1, E = e ? e.length : 0; ++M < E; )
|
|
1017
|
+
o = a(o, e[M], M, e);
|
|
1018
1018
|
return o;
|
|
1019
1019
|
}
|
|
1020
|
-
function
|
|
1020
|
+
function ht(e, a) {
|
|
1021
1021
|
for (var o = -1, u = Array(e); ++o < e; )
|
|
1022
|
-
u[o] =
|
|
1022
|
+
u[o] = a(o);
|
|
1023
1023
|
return u;
|
|
1024
1024
|
}
|
|
1025
|
-
function
|
|
1026
|
-
return e == null ? void 0 : e[
|
|
1025
|
+
function Zt(e, a) {
|
|
1026
|
+
return e == null ? void 0 : e[a];
|
|
1027
1027
|
}
|
|
1028
|
-
function
|
|
1029
|
-
var
|
|
1028
|
+
function pe(e) {
|
|
1029
|
+
var a = !1;
|
|
1030
1030
|
if (e != null && typeof e.toString != "function")
|
|
1031
1031
|
try {
|
|
1032
|
-
|
|
1032
|
+
a = !!(e + "");
|
|
1033
1033
|
} catch {
|
|
1034
1034
|
}
|
|
1035
|
-
return
|
|
1035
|
+
return a;
|
|
1036
1036
|
}
|
|
1037
1037
|
function Ue(e) {
|
|
1038
|
-
var
|
|
1039
|
-
return e.forEach(function(u,
|
|
1040
|
-
o[++
|
|
1038
|
+
var a = -1, o = Array(e.size);
|
|
1039
|
+
return e.forEach(function(u, M) {
|
|
1040
|
+
o[++a] = [M, u];
|
|
1041
1041
|
}), o;
|
|
1042
1042
|
}
|
|
1043
|
-
function
|
|
1043
|
+
function he(e, a) {
|
|
1044
1044
|
return function(o) {
|
|
1045
|
-
return e(
|
|
1045
|
+
return e(a(o));
|
|
1046
1046
|
};
|
|
1047
1047
|
}
|
|
1048
1048
|
function Ge(e) {
|
|
1049
|
-
var
|
|
1049
|
+
var a = -1, o = Array(e.size);
|
|
1050
1050
|
return e.forEach(function(u) {
|
|
1051
|
-
o[++
|
|
1051
|
+
o[++a] = u;
|
|
1052
1052
|
}), o;
|
|
1053
1053
|
}
|
|
1054
|
-
var
|
|
1055
|
-
var e = /[^.]+$/.exec(
|
|
1054
|
+
var gr = Array.prototype, br = Function.prototype, qt = Object.prototype, me = F["__core-js_shared__"], Ye = function() {
|
|
1055
|
+
var e = /[^.]+$/.exec(me && me.keys && me.keys.IE_PROTO || "");
|
|
1056
1056
|
return e ? "Symbol(src)_1." + e : "";
|
|
1057
|
-
}(), We =
|
|
1058
|
-
"^" + We.call(It).replace(
|
|
1059
|
-
),
|
|
1057
|
+
}(), We = br.toString, It = qt.hasOwnProperty, Qt = qt.toString, vr = RegExp(
|
|
1058
|
+
"^" + We.call(It).replace(Wt, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1059
|
+
), xt = ct ? F.Buffer : void 0, te = F.Symbol, ye = F.Uint8Array, dt = he(Object.getPrototypeOf, Object), Xe = Object.create, Be = qt.propertyIsEnumerable, Er = gr.splice, _e = Object.getOwnPropertySymbols, ee = xt ? xt.isBuffer : void 0, Ke = he(Object.keys, Object), re = yt(F, "DataView"), Pt = yt(F, "Map"), mt = yt(F, "Promise"), ne = yt(F, "Set"), Ie = yt(F, "WeakMap"), Ct = yt(Object, "create"), ge = et(re), Rt = et(Pt), be = et(mt), ve = et(ne), Ee = et(Ie), At = te ? te.prototype : void 0, Ve = At ? At.valueOf : void 0;
|
|
1060
1060
|
function Et(e) {
|
|
1061
|
-
var
|
|
1062
|
-
for (this.clear(); ++
|
|
1063
|
-
var u = e[
|
|
1061
|
+
var a = -1, o = e ? e.length : 0;
|
|
1062
|
+
for (this.clear(); ++a < o; ) {
|
|
1063
|
+
var u = e[a];
|
|
1064
1064
|
this.set(u[0], u[1]);
|
|
1065
1065
|
}
|
|
1066
1066
|
}
|
|
1067
|
-
function
|
|
1068
|
-
this.__data__ =
|
|
1067
|
+
function Sr() {
|
|
1068
|
+
this.__data__ = Ct ? Ct(null) : {};
|
|
1069
1069
|
}
|
|
1070
|
-
function
|
|
1070
|
+
function Tr(e) {
|
|
1071
1071
|
return this.has(e) && delete this.__data__[e];
|
|
1072
1072
|
}
|
|
1073
|
-
function
|
|
1074
|
-
var
|
|
1075
|
-
if (
|
|
1076
|
-
var o =
|
|
1077
|
-
return o ===
|
|
1073
|
+
function wr(e) {
|
|
1074
|
+
var a = this.__data__;
|
|
1075
|
+
if (Ct) {
|
|
1076
|
+
var o = a[e];
|
|
1077
|
+
return o === i ? void 0 : o;
|
|
1078
1078
|
}
|
|
1079
|
-
return It.call(
|
|
1079
|
+
return It.call(a, e) ? a[e] : void 0;
|
|
1080
1080
|
}
|
|
1081
1081
|
function Je(e) {
|
|
1082
|
-
var
|
|
1083
|
-
return
|
|
1082
|
+
var a = this.__data__;
|
|
1083
|
+
return Ct ? a[e] !== void 0 : It.call(a, e);
|
|
1084
1084
|
}
|
|
1085
|
-
function
|
|
1085
|
+
function Se(e, a) {
|
|
1086
1086
|
var o = this.__data__;
|
|
1087
|
-
return o[e] =
|
|
1087
|
+
return o[e] = Ct && a === void 0 ? i : a, this;
|
|
1088
1088
|
}
|
|
1089
|
-
Et.prototype.clear =
|
|
1089
|
+
Et.prototype.clear = Sr, Et.prototype.delete = Tr, Et.prototype.get = wr, Et.prototype.has = Je, Et.prototype.set = Se;
|
|
1090
1090
|
function V(e) {
|
|
1091
|
-
var
|
|
1092
|
-
for (this.clear(); ++
|
|
1093
|
-
var u = e[
|
|
1091
|
+
var a = -1, o = e ? e.length : 0;
|
|
1092
|
+
for (this.clear(); ++a < o; ) {
|
|
1093
|
+
var u = e[a];
|
|
1094
1094
|
this.set(u[0], u[1]);
|
|
1095
1095
|
}
|
|
1096
1096
|
}
|
|
1097
|
-
function
|
|
1097
|
+
function kr() {
|
|
1098
1098
|
this.__data__ = [];
|
|
1099
1099
|
}
|
|
1100
|
-
function
|
|
1101
|
-
var
|
|
1100
|
+
function Ar(e) {
|
|
1101
|
+
var a = this.__data__, o = ae(a, e);
|
|
1102
1102
|
if (o < 0)
|
|
1103
1103
|
return !1;
|
|
1104
|
-
var u =
|
|
1105
|
-
return o == u ?
|
|
1106
|
-
}
|
|
1107
|
-
function Ar(e) {
|
|
1108
|
-
var i = this.__data__, o = ne(i, e);
|
|
1109
|
-
return o < 0 ? void 0 : i[o][1];
|
|
1104
|
+
var u = a.length - 1;
|
|
1105
|
+
return o == u ? a.pop() : Er.call(a, o, 1), !0;
|
|
1110
1106
|
}
|
|
1111
1107
|
function Dr(e) {
|
|
1112
|
-
|
|
1108
|
+
var a = this.__data__, o = ae(a, e);
|
|
1109
|
+
return o < 0 ? void 0 : a[o][1];
|
|
1113
1110
|
}
|
|
1114
|
-
function Mr(e
|
|
1115
|
-
|
|
1116
|
-
|
|
1111
|
+
function Mr(e) {
|
|
1112
|
+
return ae(this.__data__, e) > -1;
|
|
1113
|
+
}
|
|
1114
|
+
function Or(e, a) {
|
|
1115
|
+
var o = this.__data__, u = ae(o, e);
|
|
1116
|
+
return u < 0 ? o.push([e, a]) : o[u][1] = a, this;
|
|
1117
1117
|
}
|
|
1118
|
-
V.prototype.clear =
|
|
1119
|
-
function
|
|
1120
|
-
var
|
|
1121
|
-
for (this.clear(); ++
|
|
1122
|
-
var u = e[
|
|
1118
|
+
V.prototype.clear = kr, V.prototype.delete = Ar, V.prototype.get = Dr, V.prototype.has = Mr, V.prototype.set = Or;
|
|
1119
|
+
function Z(e) {
|
|
1120
|
+
var a = -1, o = e ? e.length : 0;
|
|
1121
|
+
for (this.clear(); ++a < o; ) {
|
|
1122
|
+
var u = e[a];
|
|
1123
1123
|
this.set(u[0], u[1]);
|
|
1124
1124
|
}
|
|
1125
1125
|
}
|
|
1126
|
-
function
|
|
1126
|
+
function xr() {
|
|
1127
1127
|
this.__data__ = {
|
|
1128
1128
|
hash: new Et(),
|
|
1129
|
-
map: new (
|
|
1129
|
+
map: new (Pt || V)(),
|
|
1130
1130
|
string: new Et()
|
|
1131
1131
|
};
|
|
1132
1132
|
}
|
|
1133
|
-
function xr(e) {
|
|
1134
|
-
return $t(this, e).delete(e);
|
|
1135
|
-
}
|
|
1136
1133
|
function Pr(e) {
|
|
1137
|
-
return
|
|
1134
|
+
return Ft(this, e).delete(e);
|
|
1138
1135
|
}
|
|
1139
1136
|
function Cr(e) {
|
|
1140
|
-
return
|
|
1137
|
+
return Ft(this, e).get(e);
|
|
1138
|
+
}
|
|
1139
|
+
function Rr(e) {
|
|
1140
|
+
return Ft(this, e).has(e);
|
|
1141
1141
|
}
|
|
1142
|
-
function
|
|
1143
|
-
return
|
|
1142
|
+
function Lr(e, a) {
|
|
1143
|
+
return Ft(this, e).set(e, a), this;
|
|
1144
1144
|
}
|
|
1145
|
-
|
|
1145
|
+
Z.prototype.clear = xr, Z.prototype.delete = Pr, Z.prototype.get = Cr, Z.prototype.has = Rr, Z.prototype.set = Lr;
|
|
1146
1146
|
function it(e) {
|
|
1147
1147
|
this.__data__ = new V(e);
|
|
1148
1148
|
}
|
|
1149
|
-
function
|
|
1149
|
+
function Fr() {
|
|
1150
1150
|
this.__data__ = new V();
|
|
1151
1151
|
}
|
|
1152
|
-
function
|
|
1152
|
+
function $r(e) {
|
|
1153
1153
|
return this.__data__.delete(e);
|
|
1154
1154
|
}
|
|
1155
|
-
function
|
|
1155
|
+
function Nr(e) {
|
|
1156
1156
|
return this.__data__.get(e);
|
|
1157
1157
|
}
|
|
1158
|
-
function
|
|
1158
|
+
function Hr(e) {
|
|
1159
1159
|
return this.__data__.has(e);
|
|
1160
1160
|
}
|
|
1161
|
-
function
|
|
1161
|
+
function jr(e, a) {
|
|
1162
1162
|
var o = this.__data__;
|
|
1163
1163
|
if (o instanceof V) {
|
|
1164
1164
|
var u = o.__data__;
|
|
1165
|
-
if (!
|
|
1166
|
-
return u.push([e,
|
|
1167
|
-
o = this.__data__ = new
|
|
1165
|
+
if (!Pt || u.length < n - 1)
|
|
1166
|
+
return u.push([e, a]), this;
|
|
1167
|
+
o = this.__data__ = new Z(u);
|
|
1168
1168
|
}
|
|
1169
|
-
return o.set(e,
|
|
1169
|
+
return o.set(e, a), this;
|
|
1170
1170
|
}
|
|
1171
|
-
it.prototype.clear =
|
|
1172
|
-
function
|
|
1173
|
-
var o =
|
|
1171
|
+
it.prototype.clear = Fr, it.prototype.delete = $r, it.prototype.get = Nr, it.prototype.has = Hr, it.prototype.set = jr;
|
|
1172
|
+
function ie(e, a) {
|
|
1173
|
+
var o = Ae(e) || oe(e) ? ht(e.length, String) : [], u = o.length, M = !!u;
|
|
1174
1174
|
for (var E in e)
|
|
1175
|
-
It.call(e, E) && !(
|
|
1175
|
+
It.call(e, E) && !(M && (E == "length" || tn(E, u))) && o.push(E);
|
|
1176
1176
|
return o;
|
|
1177
1177
|
}
|
|
1178
|
-
function Ze(e,
|
|
1179
|
-
var u = e[
|
|
1180
|
-
(!(It.call(e,
|
|
1178
|
+
function Ze(e, a, o) {
|
|
1179
|
+
var u = e[a];
|
|
1180
|
+
(!(It.call(e, a) && rr(u, o)) || o === void 0 && !(a in e)) && (e[a] = o);
|
|
1181
1181
|
}
|
|
1182
|
-
function
|
|
1182
|
+
function ae(e, a) {
|
|
1183
1183
|
for (var o = e.length; o--; )
|
|
1184
|
-
if (rr(e[o][0],
|
|
1184
|
+
if (rr(e[o][0], a))
|
|
1185
1185
|
return o;
|
|
1186
1186
|
return -1;
|
|
1187
1187
|
}
|
|
1188
|
-
function gt(e,
|
|
1189
|
-
return e &&
|
|
1188
|
+
function gt(e, a) {
|
|
1189
|
+
return e && ke(a, Me(a), e);
|
|
1190
1190
|
}
|
|
1191
|
-
function
|
|
1192
|
-
var
|
|
1193
|
-
if (u && (
|
|
1194
|
-
return
|
|
1191
|
+
function Te(e, a, o, u, M, E, $) {
|
|
1192
|
+
var L;
|
|
1193
|
+
if (u && (L = E ? u(e, M, E, $) : u(e)), L !== void 0)
|
|
1194
|
+
return L;
|
|
1195
1195
|
if (!vt(e))
|
|
1196
1196
|
return e;
|
|
1197
|
-
var W =
|
|
1197
|
+
var W = Ae(e);
|
|
1198
1198
|
if (W) {
|
|
1199
|
-
if (
|
|
1200
|
-
return
|
|
1199
|
+
if (L = qr(e), !a)
|
|
1200
|
+
return Vr(e, L);
|
|
1201
1201
|
} else {
|
|
1202
|
-
var
|
|
1202
|
+
var j = Tt(e), q = j == S || j == N;
|
|
1203
1203
|
if (nr(e))
|
|
1204
|
-
return
|
|
1205
|
-
if (
|
|
1206
|
-
if (
|
|
1204
|
+
return se(e, a);
|
|
1205
|
+
if (j == l || j == c || q && !E) {
|
|
1206
|
+
if (pe(e))
|
|
1207
1207
|
return E ? e : {};
|
|
1208
|
-
if (
|
|
1209
|
-
return
|
|
1208
|
+
if (L = bt(q ? {} : e), !a)
|
|
1209
|
+
return Jr(e, gt(L, e));
|
|
1210
1210
|
} else {
|
|
1211
|
-
if (!j
|
|
1211
|
+
if (!H[j])
|
|
1212
1212
|
return E ? e : {};
|
|
1213
|
-
|
|
1213
|
+
L = Qr(e, j, Te, a);
|
|
1214
1214
|
}
|
|
1215
1215
|
}
|
|
1216
|
-
|
|
1217
|
-
var
|
|
1218
|
-
if (
|
|
1219
|
-
return
|
|
1220
|
-
if (
|
|
1221
|
-
var X = o ?
|
|
1222
|
-
return
|
|
1223
|
-
X && (J =
|
|
1224
|
-
}),
|
|
1225
|
-
}
|
|
1226
|
-
function jr(e) {
|
|
1227
|
-
return vt(e) ? Xe(e) : {};
|
|
1216
|
+
$ || ($ = new it());
|
|
1217
|
+
var at = $.get(e);
|
|
1218
|
+
if (at)
|
|
1219
|
+
return at;
|
|
1220
|
+
if ($.set(e, L), !W)
|
|
1221
|
+
var X = o ? Zr(e) : Me(e);
|
|
1222
|
+
return ft(X || e, function(Q, J) {
|
|
1223
|
+
X && (J = Q, Q = e[J]), Ze(L, J, Te(Q, a, o, u, J, e, $));
|
|
1224
|
+
}), L;
|
|
1228
1225
|
}
|
|
1229
|
-
function zr(e
|
|
1230
|
-
|
|
1231
|
-
return ke(e) ? u : _t(u, o(e));
|
|
1226
|
+
function zr(e) {
|
|
1227
|
+
return vt(e) ? Xe(e) : {};
|
|
1232
1228
|
}
|
|
1233
|
-
function Ur(e) {
|
|
1234
|
-
|
|
1229
|
+
function Ur(e, a, o) {
|
|
1230
|
+
var u = a(e);
|
|
1231
|
+
return Ae(e) ? u : K(u, o(e));
|
|
1235
1232
|
}
|
|
1236
1233
|
function Gr(e) {
|
|
1237
|
-
|
|
1238
|
-
return !1;
|
|
1239
|
-
var i = Ae(e) || de(e) ? br : Kt;
|
|
1240
|
-
return i.test(rt(e));
|
|
1234
|
+
return Qt.call(e);
|
|
1241
1235
|
}
|
|
1242
1236
|
function Yr(e) {
|
|
1237
|
+
if (!vt(e) || rn(e))
|
|
1238
|
+
return !1;
|
|
1239
|
+
var a = De(e) || pe(e) ? vr : Bt;
|
|
1240
|
+
return a.test(et(e));
|
|
1241
|
+
}
|
|
1242
|
+
function Wr(e) {
|
|
1243
1243
|
if (!tr(e))
|
|
1244
1244
|
return Ke(e);
|
|
1245
|
-
var
|
|
1245
|
+
var a = [];
|
|
1246
1246
|
for (var o in Object(e))
|
|
1247
|
-
It.call(e, o) && o != "constructor" &&
|
|
1248
|
-
return
|
|
1247
|
+
It.call(e, o) && o != "constructor" && a.push(o);
|
|
1248
|
+
return a;
|
|
1249
1249
|
}
|
|
1250
|
-
function
|
|
1251
|
-
if (
|
|
1250
|
+
function se(e, a) {
|
|
1251
|
+
if (a)
|
|
1252
1252
|
return e.slice();
|
|
1253
1253
|
var o = new e.constructor(e.length);
|
|
1254
1254
|
return e.copy(o), o;
|
|
1255
1255
|
}
|
|
1256
|
-
function
|
|
1257
|
-
var
|
|
1258
|
-
return new
|
|
1256
|
+
function we(e) {
|
|
1257
|
+
var a = new e.constructor(e.byteLength);
|
|
1258
|
+
return new ye(a).set(new ye(e)), a;
|
|
1259
1259
|
}
|
|
1260
|
-
function
|
|
1261
|
-
var o =
|
|
1260
|
+
function Lt(e, a) {
|
|
1261
|
+
var o = a ? we(e.buffer) : e.buffer;
|
|
1262
1262
|
return new e.constructor(o, e.byteOffset, e.byteLength);
|
|
1263
1263
|
}
|
|
1264
|
-
function qe(e,
|
|
1265
|
-
var u =
|
|
1266
|
-
return
|
|
1264
|
+
function qe(e, a, o) {
|
|
1265
|
+
var u = a ? o(Ue(e), !0) : Ue(e);
|
|
1266
|
+
return Y(u, nt, new e.constructor());
|
|
1267
1267
|
}
|
|
1268
1268
|
function Qe(e) {
|
|
1269
|
-
var
|
|
1270
|
-
return
|
|
1269
|
+
var a = new e.constructor(e.source, Xt.exec(e));
|
|
1270
|
+
return a.lastIndex = e.lastIndex, a;
|
|
1271
1271
|
}
|
|
1272
|
-
function
|
|
1273
|
-
var u =
|
|
1274
|
-
return
|
|
1272
|
+
function Xr(e, a, o) {
|
|
1273
|
+
var u = a ? o(Ge(e), !0) : Ge(e);
|
|
1274
|
+
return Y(u, U, new e.constructor());
|
|
1275
1275
|
}
|
|
1276
|
-
function
|
|
1276
|
+
function Br(e) {
|
|
1277
1277
|
return Ve ? Object(Ve.call(e)) : {};
|
|
1278
1278
|
}
|
|
1279
|
-
function
|
|
1280
|
-
var o =
|
|
1279
|
+
function Kr(e, a) {
|
|
1280
|
+
var o = a ? we(e.buffer) : e.buffer;
|
|
1281
1281
|
return new e.constructor(o, e.byteOffset, e.length);
|
|
1282
1282
|
}
|
|
1283
|
-
function
|
|
1283
|
+
function Vr(e, a) {
|
|
1284
1284
|
var o = -1, u = e.length;
|
|
1285
|
-
for (
|
|
1286
|
-
|
|
1287
|
-
return
|
|
1285
|
+
for (a || (a = Array(u)); ++o < u; )
|
|
1286
|
+
a[o] = e[o];
|
|
1287
|
+
return a;
|
|
1288
1288
|
}
|
|
1289
|
-
function
|
|
1289
|
+
function ke(e, a, o, u) {
|
|
1290
1290
|
o || (o = {});
|
|
1291
|
-
for (var
|
|
1292
|
-
var
|
|
1293
|
-
Ze(o,
|
|
1291
|
+
for (var M = -1, E = a.length; ++M < E; ) {
|
|
1292
|
+
var $ = a[M], L = void 0;
|
|
1293
|
+
Ze(o, $, L === void 0 ? e[$] : L);
|
|
1294
1294
|
}
|
|
1295
1295
|
return o;
|
|
1296
1296
|
}
|
|
1297
|
-
function
|
|
1298
|
-
return
|
|
1297
|
+
function Jr(e, a) {
|
|
1298
|
+
return ke(e, St(e), a);
|
|
1299
1299
|
}
|
|
1300
|
-
function
|
|
1301
|
-
return
|
|
1300
|
+
function Zr(e) {
|
|
1301
|
+
return Ur(e, Me, St);
|
|
1302
1302
|
}
|
|
1303
|
-
function
|
|
1303
|
+
function Ft(e, a) {
|
|
1304
1304
|
var o = e.__data__;
|
|
1305
|
-
return
|
|
1305
|
+
return en(a) ? o[typeof a == "string" ? "string" : "hash"] : o.map;
|
|
1306
1306
|
}
|
|
1307
|
-
function
|
|
1308
|
-
var o =
|
|
1309
|
-
return
|
|
1307
|
+
function yt(e, a) {
|
|
1308
|
+
var o = Zt(e, a);
|
|
1309
|
+
return Yr(o) ? o : void 0;
|
|
1310
1310
|
}
|
|
1311
|
-
var St =
|
|
1312
|
-
(
|
|
1313
|
-
var
|
|
1311
|
+
var St = _e ? he(_e, Object) : an, Tt = Gr;
|
|
1312
|
+
(re && Tt(new re(new ArrayBuffer(1))) != D || Pt && Tt(new Pt()) != _ || mt && Tt(mt.resolve()) != p || ne && Tt(new ne()) != b || Ie && Tt(new Ie()) != h) && (Tt = function(e) {
|
|
1313
|
+
var a = Qt.call(e), o = a == l ? e.constructor : void 0, u = o ? et(o) : void 0;
|
|
1314
1314
|
if (u)
|
|
1315
1315
|
switch (u) {
|
|
1316
|
-
case Ie:
|
|
1317
|
-
return M;
|
|
1318
|
-
case Lt:
|
|
1319
|
-
return _;
|
|
1320
1316
|
case ge:
|
|
1321
|
-
return
|
|
1317
|
+
return D;
|
|
1318
|
+
case Rt:
|
|
1319
|
+
return _;
|
|
1322
1320
|
case be:
|
|
1323
|
-
return
|
|
1321
|
+
return p;
|
|
1324
1322
|
case ve:
|
|
1325
|
-
return
|
|
1323
|
+
return b;
|
|
1324
|
+
case Ee:
|
|
1325
|
+
return h;
|
|
1326
1326
|
}
|
|
1327
|
-
return
|
|
1327
|
+
return a;
|
|
1328
1328
|
});
|
|
1329
|
-
function
|
|
1330
|
-
var
|
|
1331
|
-
return
|
|
1329
|
+
function qr(e) {
|
|
1330
|
+
var a = e.length, o = e.constructor(a);
|
|
1331
|
+
return a && typeof e[0] == "string" && It.call(e, "index") && (o.index = e.index, o.input = e.input), o;
|
|
1332
1332
|
}
|
|
1333
1333
|
function bt(e) {
|
|
1334
|
-
return typeof e.constructor == "function" && !tr(e) ?
|
|
1334
|
+
return typeof e.constructor == "function" && !tr(e) ? zr(dt(e)) : {};
|
|
1335
1335
|
}
|
|
1336
|
-
function
|
|
1337
|
-
var
|
|
1338
|
-
switch (
|
|
1339
|
-
case
|
|
1340
|
-
return
|
|
1336
|
+
function Qr(e, a, o, u) {
|
|
1337
|
+
var M = e.constructor;
|
|
1338
|
+
switch (a) {
|
|
1339
|
+
case T:
|
|
1340
|
+
return we(e);
|
|
1341
1341
|
case y:
|
|
1342
|
-
case
|
|
1343
|
-
return new
|
|
1344
|
-
case M:
|
|
1345
|
-
return Ft(e, u);
|
|
1346
|
-
case g:
|
|
1347
|
-
case x:
|
|
1342
|
+
case w:
|
|
1343
|
+
return new M(+e);
|
|
1348
1344
|
case D:
|
|
1349
|
-
|
|
1350
|
-
case S:
|
|
1345
|
+
return Lt(e, u);
|
|
1351
1346
|
case k:
|
|
1352
|
-
case
|
|
1353
|
-
case
|
|
1347
|
+
case x:
|
|
1348
|
+
case C:
|
|
1349
|
+
case P:
|
|
1350
|
+
case A:
|
|
1351
|
+
case O:
|
|
1352
|
+
case z:
|
|
1353
|
+
case ot:
|
|
1354
1354
|
case Ot:
|
|
1355
|
-
return
|
|
1355
|
+
return Kr(e, u);
|
|
1356
1356
|
case _:
|
|
1357
1357
|
return qe(e, u, o);
|
|
1358
1358
|
case f:
|
|
1359
|
-
case
|
|
1360
|
-
return new
|
|
1359
|
+
case g:
|
|
1360
|
+
return new M(e);
|
|
1361
1361
|
case I:
|
|
1362
1362
|
return Qe(e);
|
|
1363
|
-
case
|
|
1364
|
-
return
|
|
1365
|
-
case
|
|
1366
|
-
return
|
|
1363
|
+
case b:
|
|
1364
|
+
return Xr(e, u, o);
|
|
1365
|
+
case m:
|
|
1366
|
+
return Br(e);
|
|
1367
1367
|
}
|
|
1368
1368
|
}
|
|
1369
|
-
function
|
|
1370
|
-
return
|
|
1371
|
-
}
|
|
1372
|
-
function tn(e) {
|
|
1373
|
-
var i = typeof e;
|
|
1374
|
-
return i == "string" || i == "number" || i == "symbol" || i == "boolean" ? e !== "__proto__" : e === null;
|
|
1369
|
+
function tn(e, a) {
|
|
1370
|
+
return a = a ?? s, !!a && (typeof e == "number" || Kt.test(e)) && e > -1 && e % 1 == 0 && e < a;
|
|
1375
1371
|
}
|
|
1376
1372
|
function en(e) {
|
|
1373
|
+
var a = typeof e;
|
|
1374
|
+
return a == "string" || a == "number" || a == "symbol" || a == "boolean" ? e !== "__proto__" : e === null;
|
|
1375
|
+
}
|
|
1376
|
+
function rn(e) {
|
|
1377
1377
|
return !!Ye && Ye in e;
|
|
1378
1378
|
}
|
|
1379
1379
|
function tr(e) {
|
|
1380
|
-
var
|
|
1380
|
+
var a = e && e.constructor, o = typeof a == "function" && a.prototype || qt;
|
|
1381
1381
|
return e === o;
|
|
1382
1382
|
}
|
|
1383
|
-
function
|
|
1383
|
+
function et(e) {
|
|
1384
1384
|
if (e != null) {
|
|
1385
1385
|
try {
|
|
1386
1386
|
return We.call(e);
|
|
@@ -1394,117 +1394,117 @@ fr.exports;
|
|
|
1394
1394
|
return "";
|
|
1395
1395
|
}
|
|
1396
1396
|
function er(e) {
|
|
1397
|
-
return
|
|
1397
|
+
return Te(e, !0, !0);
|
|
1398
1398
|
}
|
|
1399
|
-
function rr(e,
|
|
1400
|
-
return e ===
|
|
1399
|
+
function rr(e, a) {
|
|
1400
|
+
return e === a || e !== e && a !== a;
|
|
1401
1401
|
}
|
|
1402
|
-
function
|
|
1403
|
-
return
|
|
1402
|
+
function oe(e) {
|
|
1403
|
+
return nn(e) && It.call(e, "callee") && (!Be.call(e, "callee") || Qt.call(e) == c);
|
|
1404
1404
|
}
|
|
1405
|
-
var
|
|
1406
|
-
function
|
|
1407
|
-
return e != null &&
|
|
1405
|
+
var Ae = Array.isArray;
|
|
1406
|
+
function ce(e) {
|
|
1407
|
+
return e != null && ir(e.length) && !De(e);
|
|
1408
1408
|
}
|
|
1409
|
-
function
|
|
1410
|
-
return
|
|
1409
|
+
function nn(e) {
|
|
1410
|
+
return ar(e) && ce(e);
|
|
1411
1411
|
}
|
|
1412
|
-
var nr =
|
|
1413
|
-
function
|
|
1414
|
-
var
|
|
1415
|
-
return
|
|
1412
|
+
var nr = ee || sn;
|
|
1413
|
+
function De(e) {
|
|
1414
|
+
var a = vt(e) ? Qt.call(e) : "";
|
|
1415
|
+
return a == S || a == N;
|
|
1416
1416
|
}
|
|
1417
|
-
function
|
|
1417
|
+
function ir(e) {
|
|
1418
1418
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= s;
|
|
1419
1419
|
}
|
|
1420
1420
|
function vt(e) {
|
|
1421
|
-
var
|
|
1422
|
-
return !!e && (
|
|
1421
|
+
var a = typeof e;
|
|
1422
|
+
return !!e && (a == "object" || a == "function");
|
|
1423
1423
|
}
|
|
1424
|
-
function
|
|
1424
|
+
function ar(e) {
|
|
1425
1425
|
return !!e && typeof e == "object";
|
|
1426
1426
|
}
|
|
1427
|
-
function
|
|
1428
|
-
return
|
|
1427
|
+
function Me(e) {
|
|
1428
|
+
return ce(e) ? ie(e) : Wr(e);
|
|
1429
1429
|
}
|
|
1430
|
-
function
|
|
1430
|
+
function an() {
|
|
1431
1431
|
return [];
|
|
1432
1432
|
}
|
|
1433
|
-
function
|
|
1433
|
+
function sn() {
|
|
1434
1434
|
return !1;
|
|
1435
1435
|
}
|
|
1436
1436
|
t.exports = er;
|
|
1437
1437
|
})(fr, fr.exports);
|
|
1438
|
-
var
|
|
1439
|
-
const
|
|
1440
|
-
const
|
|
1441
|
-
console.warn("update cdn config for cors?"),
|
|
1442
|
-
const s =
|
|
1438
|
+
var aa = fr.exports;
|
|
1439
|
+
const tt = /* @__PURE__ */ wn(aa), ri = (t) => new Promise((r, n) => {
|
|
1440
|
+
const i = new Image();
|
|
1441
|
+
console.warn("update cdn config for cors?"), i.onload = () => {
|
|
1442
|
+
const s = i.width, c = i.height;
|
|
1443
1443
|
r({ width: s, height: c });
|
|
1444
|
-
},
|
|
1444
|
+
}, i.onerror = (s) => {
|
|
1445
1445
|
n(s);
|
|
1446
|
-
},
|
|
1447
|
-
}),
|
|
1448
|
-
const
|
|
1449
|
-
|
|
1450
|
-
const s =
|
|
1446
|
+
}, i.crossOrigin = "anonymous", i.src = t;
|
|
1447
|
+
}), sa = (t) => new Promise((r, n) => {
|
|
1448
|
+
const i = new Audio();
|
|
1449
|
+
i.preload = "auto", i.addEventListener("loadedmetadata", () => {
|
|
1450
|
+
const s = i.duration * 1e3;
|
|
1451
1451
|
r({ duration: s });
|
|
1452
|
-
}),
|
|
1452
|
+
}), i.addEventListener("error", (s) => {
|
|
1453
1453
|
n(s);
|
|
1454
|
-
}),
|
|
1455
|
-
}),
|
|
1456
|
-
const
|
|
1457
|
-
|
|
1458
|
-
const s =
|
|
1454
|
+
}), i.src = t, i.crossOrigin = "anonymous", i.load();
|
|
1455
|
+
}), ni = (t) => new Promise((r, n) => {
|
|
1456
|
+
const i = document.createElement("video");
|
|
1457
|
+
i.preload = "auto", i.addEventListener("loadedmetadata", () => {
|
|
1458
|
+
const s = i.duration * 1e3, c = i.videoWidth, d = i.videoHeight;
|
|
1459
1459
|
r({ duration: s, width: c, height: d });
|
|
1460
|
-
}),
|
|
1460
|
+
}), i.addEventListener("error", (s) => {
|
|
1461
1461
|
n(s);
|
|
1462
|
-
}),
|
|
1463
|
-
}),
|
|
1462
|
+
}), i.src = t, i.load();
|
|
1463
|
+
}), ii = (t, r) => {
|
|
1464
1464
|
const n = document.createElement("div");
|
|
1465
1465
|
Object.keys(r).forEach((s) => {
|
|
1466
1466
|
s !== "height" && (n.style[s] = r[s]);
|
|
1467
1467
|
}), document.body.appendChild(n), n.textContent = t, n.style.whiteSpace = "normal", n.style.position = "absolute", n.style.visibility = "hidden", n.style.display = "inline-block", n.style.width = r.width + "px", n.style.fontSize = r.fontSize + "px";
|
|
1468
|
-
const
|
|
1469
|
-
return document.body.removeChild(n), parseFloat(
|
|
1470
|
-
},
|
|
1471
|
-
const r = t.map((n) => new FontFace(n.fontFamily, `url(${n.url})`).load().catch((
|
|
1472
|
-
return r.length === 0 ? Promise.resolve(!0) : new Promise((n,
|
|
1468
|
+
const i = getComputedStyle(n).height;
|
|
1469
|
+
return document.body.removeChild(n), parseFloat(i);
|
|
1470
|
+
}, dr = (t) => {
|
|
1471
|
+
const r = t.map((n) => new FontFace(n.fontFamily, `url(${n.url})`).load().catch((i) => i));
|
|
1472
|
+
return r.length === 0 ? Promise.resolve(!0) : new Promise((n, i) => {
|
|
1473
1473
|
Promise.all(r).then((s) => {
|
|
1474
1474
|
s.forEach((c) => {
|
|
1475
1475
|
c && c.family && (document.fonts.add(c), n(!0));
|
|
1476
1476
|
});
|
|
1477
|
-
}).catch((s) =>
|
|
1477
|
+
}).catch((s) => i(s));
|
|
1478
1478
|
});
|
|
1479
|
-
},
|
|
1480
|
-
let
|
|
1479
|
+
}, oa = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
1480
|
+
let Oe = (t = 21) => {
|
|
1481
1481
|
let r = "", n = crypto.getRandomValues(new Uint8Array(t));
|
|
1482
1482
|
for (; t--; )
|
|
1483
|
-
r +=
|
|
1483
|
+
r += oa[n[t] & 63];
|
|
1484
1484
|
return r;
|
|
1485
1485
|
};
|
|
1486
|
-
function
|
|
1486
|
+
function xe(t = 16) {
|
|
1487
1487
|
const r = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", n = r.charAt(Math.floor(Math.random() * r.length));
|
|
1488
|
-
let
|
|
1489
|
-
return
|
|
1488
|
+
let i = Oe(t - 1);
|
|
1489
|
+
return i = i.replace(/[^a-zA-Z0-9]/g, "").slice(0, t - 1), n + i;
|
|
1490
1490
|
}
|
|
1491
|
-
const
|
|
1491
|
+
const yr = {
|
|
1492
1492
|
color: "#000000",
|
|
1493
1493
|
x: 0,
|
|
1494
1494
|
y: 0,
|
|
1495
1495
|
blur: 0
|
|
1496
|
-
},
|
|
1496
|
+
}, Ne = (t, r) => {
|
|
1497
1497
|
let n = r != null && r.trim ? r.trim.to - r.trim.from : (r == null ? void 0 : r.duration) || 5e3;
|
|
1498
|
-
const
|
|
1498
|
+
const i = {
|
|
1499
1499
|
from: 0,
|
|
1500
1500
|
to: n
|
|
1501
1501
|
};
|
|
1502
1502
|
if (!t)
|
|
1503
|
-
return
|
|
1503
|
+
return i;
|
|
1504
1504
|
if (t.from < 0)
|
|
1505
1505
|
return console.error(
|
|
1506
1506
|
"'from' must be a non-negative number. Returning default display."
|
|
1507
|
-
),
|
|
1507
|
+
), i;
|
|
1508
1508
|
if (t.from !== void 0 && t.to === void 0)
|
|
1509
1509
|
return {
|
|
1510
1510
|
from: t.from,
|
|
@@ -1514,40 +1514,40 @@ const mr = {
|
|
|
1514
1514
|
if (t.to < 0)
|
|
1515
1515
|
return console.error(
|
|
1516
1516
|
"'to' must be a non-negative number. Returning default display."
|
|
1517
|
-
),
|
|
1517
|
+
), i;
|
|
1518
1518
|
if (t.to < t.from)
|
|
1519
1519
|
return console.error(
|
|
1520
1520
|
"'to' must be greater than or equal to 'from'. Returning default display."
|
|
1521
|
-
),
|
|
1521
|
+
), i;
|
|
1522
1522
|
}
|
|
1523
1523
|
return t;
|
|
1524
|
-
},
|
|
1524
|
+
}, ai = (t, r) => t ? t.from && !t.to ? {
|
|
1525
1525
|
from: t.from,
|
|
1526
1526
|
to: r.duration
|
|
1527
1527
|
} : t : {
|
|
1528
1528
|
from: 0,
|
|
1529
1529
|
to: r.duration
|
|
1530
1530
|
};
|
|
1531
|
-
function
|
|
1531
|
+
function _r(t, r) {
|
|
1532
1532
|
const n = {
|
|
1533
1533
|
x: t.size.width / 2,
|
|
1534
1534
|
y: t.size.height / 2
|
|
1535
|
-
},
|
|
1535
|
+
}, i = { x: r.width / 2, y: r.height / 2 }, s = Math.min(
|
|
1536
1536
|
t.size.width / r.width,
|
|
1537
1537
|
t.size.height / r.height
|
|
1538
|
-
), c = n.x -
|
|
1538
|
+
), c = n.x - i.x;
|
|
1539
1539
|
return {
|
|
1540
|
-
top: `${n.y -
|
|
1540
|
+
top: `${n.y - i.y}px`,
|
|
1541
1541
|
left: `${c}px`,
|
|
1542
1542
|
transform: `scale(${s})`
|
|
1543
1543
|
};
|
|
1544
1544
|
}
|
|
1545
|
-
const
|
|
1546
|
-
const n = t.details.src,
|
|
1547
|
-
...
|
|
1548
|
-
}), c =
|
|
1549
|
-
width:
|
|
1550
|
-
height:
|
|
1545
|
+
const si = async (t, r) => {
|
|
1546
|
+
const n = t.details.src, i = await ni(n), s = _r(r, {
|
|
1547
|
+
...i
|
|
1548
|
+
}), c = ai(t.trim, { duration: i.duration }), d = {
|
|
1549
|
+
width: i.width,
|
|
1550
|
+
height: i.height,
|
|
1551
1551
|
opacity: 100,
|
|
1552
1552
|
src: n,
|
|
1553
1553
|
volume: t.details.volume ?? 100,
|
|
@@ -1558,7 +1558,7 @@ const _n = async (t, r) => {
|
|
|
1558
1558
|
// Default border width
|
|
1559
1559
|
borderColor: t.details.borderColor || "#000000",
|
|
1560
1560
|
// Default border color
|
|
1561
|
-
boxShadow: t.details.boxShadow ||
|
|
1561
|
+
boxShadow: t.details.boxShadow || yr,
|
|
1562
1562
|
top: t.details.top || s.top || "0px",
|
|
1563
1563
|
// Default top
|
|
1564
1564
|
left: t.details.left || s.left || "0px",
|
|
@@ -1571,8 +1571,8 @@ const _n = async (t, r) => {
|
|
|
1571
1571
|
flipY: t.details.flipY || !1,
|
|
1572
1572
|
rotate: t.details.rotate || "0deg",
|
|
1573
1573
|
visibility: t.details.visibility || "visible",
|
|
1574
|
-
mediaWidth: t.details.mediaWidth ||
|
|
1575
|
-
mediaHeight: t.details.mediaHeight ||
|
|
1574
|
+
mediaWidth: t.details.mediaWidth || i.width || 100,
|
|
1575
|
+
mediaHeight: t.details.mediaHeight || i.height || 100
|
|
1576
1576
|
};
|
|
1577
1577
|
return {
|
|
1578
1578
|
...t,
|
|
@@ -1581,16 +1581,16 @@ const _n = async (t, r) => {
|
|
|
1581
1581
|
name: "video",
|
|
1582
1582
|
details: d,
|
|
1583
1583
|
playbackRate: t.playbackRate || 1,
|
|
1584
|
-
display:
|
|
1585
|
-
duration:
|
|
1584
|
+
display: Ne(t.display, { duration: i.duration, trim: c }),
|
|
1585
|
+
duration: i.duration
|
|
1586
1586
|
};
|
|
1587
|
-
},
|
|
1588
|
-
const r = t.id, n = t.details, s = (await
|
|
1587
|
+
}, oi = async (t) => {
|
|
1588
|
+
const r = t.id, n = t.details, s = (await sa(n.src)).duration, c = ai(t.trim, { duration: s });
|
|
1589
1589
|
return {
|
|
1590
1590
|
id: r,
|
|
1591
1591
|
name: "",
|
|
1592
1592
|
type: "audio",
|
|
1593
|
-
display:
|
|
1593
|
+
display: Ne(t.display, { duration: s, trim: c }),
|
|
1594
1594
|
trim: c,
|
|
1595
1595
|
playbackRate: t.playbackRate || 1,
|
|
1596
1596
|
details: {
|
|
@@ -1601,45 +1601,48 @@ const _n = async (t, r) => {
|
|
|
1601
1601
|
metadata: { ...t.metadata },
|
|
1602
1602
|
duration: s
|
|
1603
1603
|
};
|
|
1604
|
-
},
|
|
1605
|
-
const n = t.
|
|
1604
|
+
}, ca = async (t, r) => {
|
|
1605
|
+
const n = t.trackItemIds, i = {
|
|
1606
1606
|
width: t.details.width,
|
|
1607
1607
|
height: t.details.height
|
|
1608
1608
|
}, s = Math.min(
|
|
1609
|
-
r.size.width /
|
|
1610
|
-
r.size.height /
|
|
1611
|
-
), c = t.details.rotate || 0, d = {
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1609
|
+
r.size.width / i.width,
|
|
1610
|
+
r.size.height / i.height
|
|
1611
|
+
), c = t.details.rotate || 0, d = {
|
|
1612
|
+
top: t.details.top || 0,
|
|
1613
|
+
left: t.details.left || 0
|
|
1614
|
+
}, y = t.display, w = t.trim || t.display;
|
|
1615
|
+
let R = 1 / 0, S = 0;
|
|
1616
|
+
return n.forEach((N) => {
|
|
1617
|
+
const _ = t.trackItemsMap[N];
|
|
1618
|
+
_.display.from < R && (R = _.display.from), _.display.to > S && (S = _.display.to);
|
|
1616
1619
|
}), {
|
|
1617
1620
|
id: t.id,
|
|
1618
1621
|
details: {
|
|
1619
|
-
...
|
|
1620
|
-
top: d.top
|
|
1621
|
-
left: d.left
|
|
1622
|
+
...i,
|
|
1623
|
+
top: d.top,
|
|
1624
|
+
left: d.left,
|
|
1622
1625
|
scale: s,
|
|
1623
1626
|
rotate: c
|
|
1624
1627
|
},
|
|
1625
|
-
trim:
|
|
1626
|
-
display: y || { from:
|
|
1628
|
+
trim: w,
|
|
1629
|
+
display: y || { from: R, to: S },
|
|
1627
1630
|
activeEdit: !1
|
|
1628
1631
|
};
|
|
1629
|
-
},
|
|
1630
|
-
const n = t.details,
|
|
1632
|
+
}, ci = async (t, r) => {
|
|
1633
|
+
const n = t.details, i = await ri(n.src), s = _r(r, i);
|
|
1631
1634
|
return {
|
|
1632
1635
|
id: t.id,
|
|
1633
1636
|
type: "image",
|
|
1634
1637
|
name: "image",
|
|
1635
|
-
display:
|
|
1638
|
+
display: Ne(t.display),
|
|
1636
1639
|
playbackRate: t.playbackRate || 1,
|
|
1637
1640
|
details: {
|
|
1638
1641
|
src: n.src || "",
|
|
1639
1642
|
// Default source URL
|
|
1640
|
-
width: n.width ||
|
|
1643
|
+
width: n.width || i.width || 100,
|
|
1641
1644
|
// Default width
|
|
1642
|
-
height: n.height ||
|
|
1645
|
+
height: n.height || i.height || 100,
|
|
1643
1646
|
// Default height
|
|
1644
1647
|
opacity: n.opacity ?? 100,
|
|
1645
1648
|
// Default opacity
|
|
@@ -1649,7 +1652,7 @@ const _n = async (t, r) => {
|
|
|
1649
1652
|
// Default border
|
|
1650
1653
|
borderRadius: n.borderRadius || 0,
|
|
1651
1654
|
// Default border radius
|
|
1652
|
-
boxShadow: n.boxShadow ||
|
|
1655
|
+
boxShadow: n.boxShadow || yr,
|
|
1653
1656
|
// Default box shadow
|
|
1654
1657
|
top: n.top || s.top || "0px",
|
|
1655
1658
|
// Default top
|
|
@@ -1665,28 +1668,28 @@ const _n = async (t, r) => {
|
|
|
1665
1668
|
flipY: n.flipY || !1,
|
|
1666
1669
|
rotate: n.rotate || "0deg",
|
|
1667
1670
|
visibility: n.visibility || "visible",
|
|
1668
|
-
mediaWidth: n.mediaWidth || n.width ||
|
|
1669
|
-
mediaHeight: n.mediaHeight || n.height ||
|
|
1671
|
+
mediaWidth: n.mediaWidth || n.width || i.width || 100,
|
|
1672
|
+
mediaHeight: n.mediaHeight || n.height || i.height || 100
|
|
1670
1673
|
},
|
|
1671
1674
|
metadata: t.metadata || {}
|
|
1672
1675
|
};
|
|
1673
|
-
},
|
|
1676
|
+
}, ui = async (t, r) => {
|
|
1674
1677
|
const n = t;
|
|
1675
|
-
n.details.fontUrl && await
|
|
1678
|
+
n.details.fontUrl && await dr([
|
|
1676
1679
|
{
|
|
1677
1680
|
fontFamily: n.details.fontFamily,
|
|
1678
1681
|
url: n.details.fontUrl
|
|
1679
1682
|
}
|
|
1680
1683
|
]);
|
|
1681
|
-
const
|
|
1684
|
+
const i = n.id, s = n.details, c = fi(s), d = ii(n.details.text, c), y = _r(r, {
|
|
1682
1685
|
width: c.width,
|
|
1683
1686
|
height: d
|
|
1684
1687
|
});
|
|
1685
1688
|
return {
|
|
1686
|
-
id:
|
|
1689
|
+
id: i,
|
|
1687
1690
|
name: "caption",
|
|
1688
1691
|
type: "caption",
|
|
1689
|
-
display:
|
|
1692
|
+
display: Ne(n.display),
|
|
1690
1693
|
details: {
|
|
1691
1694
|
...c,
|
|
1692
1695
|
text: s.text || "",
|
|
@@ -1698,19 +1701,19 @@ const _n = async (t, r) => {
|
|
|
1698
1701
|
left: c.left || y.left,
|
|
1699
1702
|
borderWidth: s.borderWidth || 0,
|
|
1700
1703
|
borderColor: s.borderColor || "#000000",
|
|
1701
|
-
boxShadow: s.boxShadow ||
|
|
1704
|
+
boxShadow: s.boxShadow || yr,
|
|
1702
1705
|
words: s.words || []
|
|
1703
1706
|
},
|
|
1704
1707
|
metadata: {}
|
|
1705
1708
|
};
|
|
1706
|
-
},
|
|
1707
|
-
t.details.fontUrl && await
|
|
1709
|
+
}, li = async (t, r) => {
|
|
1710
|
+
t.details.fontUrl && await dr([
|
|
1708
1711
|
{
|
|
1709
1712
|
fontFamily: t.details.fontFamily,
|
|
1710
1713
|
url: t.details.fontUrl
|
|
1711
1714
|
}
|
|
1712
1715
|
]);
|
|
1713
|
-
const n = t.id,
|
|
1716
|
+
const n = t.id, i = t.details, s = fi(i), c = ii(t.details.text, s), d = _r(r, {
|
|
1714
1717
|
width: s.width,
|
|
1715
1718
|
height: c
|
|
1716
1719
|
});
|
|
@@ -1718,23 +1721,23 @@ const _n = async (t, r) => {
|
|
|
1718
1721
|
id: n,
|
|
1719
1722
|
name: "text",
|
|
1720
1723
|
type: "text",
|
|
1721
|
-
display:
|
|
1724
|
+
display: Ne(t.display),
|
|
1722
1725
|
details: {
|
|
1723
1726
|
...s,
|
|
1724
|
-
text:
|
|
1727
|
+
text: i.text || "",
|
|
1725
1728
|
// Default text content
|
|
1726
1729
|
height: c,
|
|
1727
1730
|
// Default height
|
|
1728
|
-
fontUrl:
|
|
1731
|
+
fontUrl: i.fontUrl,
|
|
1729
1732
|
top: s.top || d.top,
|
|
1730
1733
|
left: s.left || d.left,
|
|
1731
|
-
borderWidth:
|
|
1732
|
-
borderColor:
|
|
1733
|
-
boxShadow:
|
|
1734
|
+
borderWidth: i.borderWidth || 0,
|
|
1735
|
+
borderColor: i.borderColor || "#000000",
|
|
1736
|
+
boxShadow: i.boxShadow || yr
|
|
1734
1737
|
},
|
|
1735
1738
|
metadata: {}
|
|
1736
1739
|
};
|
|
1737
|
-
},
|
|
1740
|
+
}, fi = (t) => ({
|
|
1738
1741
|
fontFamily: t.fontFamily || "Arial",
|
|
1739
1742
|
// Default font family
|
|
1740
1743
|
fontSize: t.fontSize || "16px",
|
|
@@ -1776,31 +1779,31 @@ const _n = async (t, r) => {
|
|
|
1776
1779
|
left: t.left,
|
|
1777
1780
|
textTransform: t.textTransform || "none",
|
|
1778
1781
|
transform: t.transform || "none"
|
|
1779
|
-
}),
|
|
1782
|
+
}), ua = async (t, r) => {
|
|
1780
1783
|
switch (t.type) {
|
|
1781
1784
|
case "video":
|
|
1782
|
-
return
|
|
1785
|
+
return si(t, r || {});
|
|
1783
1786
|
case "audio":
|
|
1784
|
-
return
|
|
1787
|
+
return oi(t);
|
|
1785
1788
|
case "image":
|
|
1786
|
-
return
|
|
1789
|
+
return ci(t, r || {});
|
|
1787
1790
|
case "text":
|
|
1788
|
-
return
|
|
1791
|
+
return li(t, r || {});
|
|
1789
1792
|
case "caption":
|
|
1790
|
-
return
|
|
1793
|
+
return ui(t, r || {});
|
|
1791
1794
|
default:
|
|
1792
1795
|
throw new Error("Unsupported track item");
|
|
1793
1796
|
}
|
|
1794
1797
|
};
|
|
1795
|
-
function
|
|
1798
|
+
function la(t, r) {
|
|
1796
1799
|
return r.some(
|
|
1797
|
-
(n) => t.some((
|
|
1800
|
+
(n) => t.some((i) => i.id === n.id)
|
|
1798
1801
|
);
|
|
1799
1802
|
}
|
|
1800
|
-
const
|
|
1801
|
-
id:
|
|
1802
|
-
items: [
|
|
1803
|
-
type:
|
|
1803
|
+
const fa = (t = [], r = []) => t.length === 0 ? r.map((i) => ({
|
|
1804
|
+
id: xe(),
|
|
1805
|
+
items: [i.id],
|
|
1806
|
+
type: i.type,
|
|
1804
1807
|
accepts: ["text", "image", "video", "audio", "caption", "template"]
|
|
1805
1808
|
})) : t.map((n) => ({
|
|
1806
1809
|
...n,
|
|
@@ -1809,38 +1812,38 @@ const fi = (t = [], r = []) => t.length === 0 ? r.map((a) => ({
|
|
|
1809
1812
|
type: n.type || "text",
|
|
1810
1813
|
magnetic: n.magnetic || !1,
|
|
1811
1814
|
static: n.static || !1,
|
|
1812
|
-
id: n.id ||
|
|
1815
|
+
id: n.id || xe()
|
|
1813
1816
|
}));
|
|
1814
|
-
function
|
|
1815
|
-
return t.filter((
|
|
1817
|
+
function da(t, r) {
|
|
1818
|
+
return t.filter((i) => {
|
|
1816
1819
|
if (r.forEach((s) => {
|
|
1817
|
-
|
|
1818
|
-
}),
|
|
1819
|
-
return
|
|
1820
|
+
i.items.includes(s) && (i.items = i.items.filter((c) => c !== s));
|
|
1821
|
+
}), i.items.length !== 0)
|
|
1822
|
+
return i;
|
|
1820
1823
|
});
|
|
1821
1824
|
}
|
|
1822
|
-
const
|
|
1823
|
-
const { display:
|
|
1824
|
-
return Math.max(r,
|
|
1825
|
+
const jt = (t) => Object.keys(t).reduce((r, n) => {
|
|
1826
|
+
const { display: i, playbackRate: s } = t[n];
|
|
1827
|
+
return Math.max(r, i.to / (s || 1));
|
|
1825
1828
|
}, 0);
|
|
1826
|
-
function
|
|
1829
|
+
function In(t, r, n) {
|
|
1827
1830
|
return Math.min(Math.max(t, r), n);
|
|
1828
1831
|
}
|
|
1829
|
-
const
|
|
1830
|
-
if (
|
|
1832
|
+
const pa = (t, r, n, i, s) => {
|
|
1833
|
+
if (i === void 0 && s === void 0)
|
|
1831
1834
|
return { trackId: void 0, trackIndex: void 0 };
|
|
1832
|
-
const c = s !== void 0 ? r[
|
|
1835
|
+
const c = s !== void 0 ? r[In(s, 0, r.length)] : r.find((w) => w.id === i);
|
|
1833
1836
|
if (!c)
|
|
1834
1837
|
return {
|
|
1835
1838
|
trackId: void 0,
|
|
1836
|
-
trackIndex: s !== void 0 ?
|
|
1839
|
+
trackIndex: s !== void 0 ? In(s, 0, r.length) : void 0
|
|
1837
1840
|
};
|
|
1838
|
-
const d = c.items.map((
|
|
1839
|
-
for (const
|
|
1840
|
-
const
|
|
1841
|
-
for (const
|
|
1842
|
-
const _ =
|
|
1843
|
-
if (!(
|
|
1841
|
+
const d = c.items.map((w) => n[w]), y = t.map((w) => n[w]);
|
|
1842
|
+
for (const w of d) {
|
|
1843
|
+
const R = w.display.from, S = w.display.to;
|
|
1844
|
+
for (const N of y) {
|
|
1845
|
+
const _ = N.display.from;
|
|
1846
|
+
if (!(N.display.to <= R || _ >= S))
|
|
1844
1847
|
return {
|
|
1845
1848
|
trackId: void 0,
|
|
1846
1849
|
trackIndex: r.indexOf(c)
|
|
@@ -1852,158 +1855,133 @@ const pi = (t, r, n, a, s) => {
|
|
|
1852
1855
|
trackIndex: r.indexOf(c)
|
|
1853
1856
|
};
|
|
1854
1857
|
};
|
|
1855
|
-
function
|
|
1856
|
-
const r =
|
|
1857
|
-
|
|
1858
|
-
), n =
|
|
1859
|
-
|
|
1860
|
-
),
|
|
1861
|
-
|
|
1862
|
-
), s =
|
|
1863
|
-
|
|
1864
|
-
), c =
|
|
1865
|
-
|
|
1866
|
-
), d =
|
|
1867
|
-
|
|
1858
|
+
function ha(t) {
|
|
1859
|
+
const r = ue.pipe(
|
|
1860
|
+
le(({ key: f }) => f.startsWith(Ti))
|
|
1861
|
+
), n = ue.pipe(
|
|
1862
|
+
le(({ key: f }) => f.startsWith(wi))
|
|
1863
|
+
), i = ue.pipe(
|
|
1864
|
+
le(({ key: f }) => f.startsWith(ki))
|
|
1865
|
+
), s = ue.pipe(
|
|
1866
|
+
le(({ key: f }) => f.startsWith(Ai))
|
|
1867
|
+
), c = ue.pipe(
|
|
1868
|
+
le(({ key: f }) => f.startsWith(Di))
|
|
1869
|
+
), d = ue.pipe(
|
|
1870
|
+
le(({ key: f }) => f.startsWith(Mi))
|
|
1868
1871
|
), y = r.subscribe(async (f) => {
|
|
1869
1872
|
var l, p;
|
|
1870
|
-
if (f.key ===
|
|
1871
|
-
const I = (l = f.value) == null ? void 0 : l.payload,
|
|
1873
|
+
if (f.key === Oi) {
|
|
1874
|
+
const I = (l = f.value) == null ? void 0 : l.payload, b = I.trackItemsMap, g = I.trackItemDetailsMap;
|
|
1872
1875
|
console.warn("IMPROVE FONTS LOADING");
|
|
1873
|
-
const
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
}
|
|
1883
|
-
), { details: k, ...F } = S;
|
|
1884
|
-
m[g] = { type: "image", details: k }, h[g] = F;
|
|
1885
|
-
} else if (D.type === "video") {
|
|
1886
|
-
const S = Z(
|
|
1887
|
-
(x = f.value) == null ? void 0 : x.payload.trackItemsMap[g]
|
|
1888
|
-
), k = await _n(
|
|
1889
|
-
{ ...D, ...S, ...O },
|
|
1890
|
-
{
|
|
1891
|
-
size: v
|
|
1892
|
-
}
|
|
1893
|
-
), { details: F, ...et } = k;
|
|
1894
|
-
m[g] = { type: "video", details: F }, h[g] = et;
|
|
1895
|
-
} else if (D.type === "audio") {
|
|
1896
|
-
const S = await In({
|
|
1897
|
-
id: g,
|
|
1898
|
-
details: D.details,
|
|
1899
|
-
...O
|
|
1900
|
-
}), { details: k, ...F } = S;
|
|
1901
|
-
m[g] = { type: "audio", details: k }, h[g] = F;
|
|
1902
|
-
} else if (D.type === "caption") {
|
|
1903
|
-
const S = await bn(
|
|
1904
|
-
{ id: g, details: D.details, ...O },
|
|
1905
|
-
{
|
|
1906
|
-
size: v
|
|
1907
|
-
}
|
|
1908
|
-
), { details: k, ...F } = S;
|
|
1909
|
-
m[g] = { type: "caption", details: k }, h[g] = F;
|
|
1910
|
-
} else if (D.type === "text") {
|
|
1911
|
-
const S = await vn(
|
|
1912
|
-
{ id: g, details: D.details, ...O },
|
|
1913
|
-
{
|
|
1914
|
-
size: v
|
|
1915
|
-
}
|
|
1916
|
-
), { details: k, ...F } = S;
|
|
1917
|
-
m[g] = { type: "text", details: k }, h[g] = F;
|
|
1918
|
-
}
|
|
1919
|
-
return !0;
|
|
1920
|
-
} catch {
|
|
1921
|
-
return !1;
|
|
1876
|
+
for (const h in g)
|
|
1877
|
+
if (g[h].type === "text" || g[h].type === "caption") {
|
|
1878
|
+
const T = g[h].details;
|
|
1879
|
+
await dr([
|
|
1880
|
+
{
|
|
1881
|
+
fontFamily: T.fontFamily,
|
|
1882
|
+
url: T.fontUrl
|
|
1883
|
+
}
|
|
1884
|
+
]);
|
|
1922
1885
|
}
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1886
|
+
const m = jt(b);
|
|
1887
|
+
t.updateState(
|
|
1888
|
+
{
|
|
1889
|
+
...I,
|
|
1890
|
+
duration: m
|
|
1891
|
+
},
|
|
1892
|
+
{
|
|
1893
|
+
kind: "design:load",
|
|
1894
|
+
updateHistory: !1
|
|
1895
|
+
}
|
|
1896
|
+
);
|
|
1931
1897
|
}
|
|
1932
|
-
if (f.key ===
|
|
1898
|
+
if (f.key === xi) {
|
|
1933
1899
|
const I = (p = f.value) == null ? void 0 : p.payload;
|
|
1934
|
-
t.updateState(
|
|
1935
|
-
|
|
1936
|
-
|
|
1900
|
+
t.updateState(
|
|
1901
|
+
{
|
|
1902
|
+
size: I
|
|
1903
|
+
},
|
|
1904
|
+
{
|
|
1905
|
+
kind: "design:resize",
|
|
1906
|
+
updateHistory: !1
|
|
1907
|
+
}
|
|
1908
|
+
);
|
|
1937
1909
|
}
|
|
1938
|
-
}),
|
|
1939
|
-
if (f.key ===
|
|
1940
|
-
if (f.key ===
|
|
1941
|
-
}),
|
|
1942
|
-
var I,
|
|
1910
|
+
}), w = s.subscribe((f) => {
|
|
1911
|
+
if (f.key === Pi) return t.undo();
|
|
1912
|
+
if (f.key === Ci) return t.redo();
|
|
1913
|
+
}), R = i.subscribe((f) => {
|
|
1914
|
+
var I, b, g, m;
|
|
1943
1915
|
const l = [], p = [];
|
|
1944
|
-
if ((I = f.value) != null && I.payload.trackItemIds && (l.push((
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1916
|
+
if ((I = f.value) != null && I.payload.trackItemIds && (l.push((b = f.value) == null ? void 0 : b.payload.trackItemIds), t.updateState(
|
|
1917
|
+
{ activeIds: l },
|
|
1918
|
+
{
|
|
1919
|
+
kind: "update",
|
|
1920
|
+
updateHistory: !1
|
|
1921
|
+
}
|
|
1922
|
+
)), f.key === Ri) {
|
|
1923
|
+
const h = (g = f.value) == null ? void 0 : g.payload.trackItemIds, T = tt(t.getState()), D = h && h.length ? h : T.activeIds, k = T.trackItemIds, x = T.trackItemDetailsMap, C = k.filter(
|
|
1924
|
+
(ot) => !D.includes(ot)
|
|
1925
|
+
), P = Object.fromEntries(
|
|
1948
1926
|
Object.entries(x).filter(
|
|
1949
|
-
([
|
|
1927
|
+
([ot]) => !D.includes(ot)
|
|
1950
1928
|
)
|
|
1951
|
-
),
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
),
|
|
1955
|
-
Object.entries(
|
|
1956
|
-
([
|
|
1929
|
+
), A = da(
|
|
1930
|
+
T.tracks,
|
|
1931
|
+
D
|
|
1932
|
+
), O = Object.fromEntries(
|
|
1933
|
+
Object.entries(T.trackItemsMap).filter(
|
|
1934
|
+
([ot]) => !D.includes(ot)
|
|
1957
1935
|
)
|
|
1958
|
-
),
|
|
1936
|
+
), z = jt(O);
|
|
1959
1937
|
t.updateState(
|
|
1960
1938
|
{
|
|
1961
|
-
trackItemIds:
|
|
1962
|
-
trackItemDetailsMap:
|
|
1939
|
+
trackItemIds: C,
|
|
1940
|
+
trackItemDetailsMap: P,
|
|
1963
1941
|
activeIds: [],
|
|
1964
|
-
trackItemsMap:
|
|
1965
|
-
tracks:
|
|
1966
|
-
duration:
|
|
1942
|
+
trackItemsMap: O,
|
|
1943
|
+
tracks: A,
|
|
1944
|
+
duration: z
|
|
1967
1945
|
},
|
|
1968
1946
|
{ updateHistory: !0, kind: "remove" }
|
|
1969
1947
|
);
|
|
1970
1948
|
}
|
|
1971
|
-
if (f.key ===
|
|
1972
|
-
const
|
|
1973
|
-
if (
|
|
1974
|
-
|
|
1975
|
-
const x =
|
|
1976
|
-
p.push(
|
|
1977
|
-
...
|
|
1978
|
-
[
|
|
1979
|
-
},
|
|
1980
|
-
...
|
|
1981
|
-
[
|
|
1982
|
-
...
|
|
1949
|
+
if (f.key === Li) {
|
|
1950
|
+
const h = tt(t.getState()), T = ((m = f.value) == null ? void 0 : m.payload.trackItemIds) || h.activeIds;
|
|
1951
|
+
if (T.length === 0) return;
|
|
1952
|
+
T.forEach((k) => {
|
|
1953
|
+
const x = h.trackItemsMap[k], C = h.trackItemDetailsMap[k], P = xe();
|
|
1954
|
+
p.push(P), h.trackItemsMap = {
|
|
1955
|
+
...h.trackItemsMap,
|
|
1956
|
+
[P]: { ...tt(x), id: P }
|
|
1957
|
+
}, h.trackItemDetailsMap = {
|
|
1958
|
+
...h.trackItemDetailsMap,
|
|
1959
|
+
[P]: {
|
|
1960
|
+
...tt(C)
|
|
1983
1961
|
}
|
|
1984
|
-
},
|
|
1962
|
+
}, h.trackItemIds.push(P);
|
|
1985
1963
|
});
|
|
1986
|
-
const
|
|
1987
|
-
|
|
1964
|
+
const D = [];
|
|
1965
|
+
h.tracks.forEach((k) => {
|
|
1988
1966
|
const x = {
|
|
1989
|
-
...
|
|
1967
|
+
...k,
|
|
1990
1968
|
items: [],
|
|
1991
|
-
id:
|
|
1969
|
+
id: Oe()
|
|
1992
1970
|
};
|
|
1993
|
-
|
|
1994
|
-
if (
|
|
1995
|
-
const
|
|
1996
|
-
x.items.push(p[
|
|
1971
|
+
k.items.forEach((C) => {
|
|
1972
|
+
if (T.includes(C)) {
|
|
1973
|
+
const P = T.indexOf(C);
|
|
1974
|
+
x.items.push(p[P]);
|
|
1997
1975
|
}
|
|
1998
|
-
}),
|
|
1999
|
-
}),
|
|
2000
|
-
|
|
1976
|
+
}), D.push(x);
|
|
1977
|
+
}), D.forEach((k) => {
|
|
1978
|
+
k.items.length !== 0 && h.tracks.unshift(k);
|
|
2001
1979
|
}), t.updateState(
|
|
2002
1980
|
{
|
|
2003
|
-
trackItemDetailsMap:
|
|
2004
|
-
tracks:
|
|
2005
|
-
trackItemIds:
|
|
2006
|
-
trackItemsMap:
|
|
1981
|
+
trackItemDetailsMap: h.trackItemDetailsMap,
|
|
1982
|
+
tracks: h.tracks,
|
|
1983
|
+
trackItemIds: h.trackItemIds,
|
|
1984
|
+
trackItemsMap: h.trackItemsMap
|
|
2007
1985
|
},
|
|
2008
1986
|
{
|
|
2009
1987
|
updateHistory: !0,
|
|
@@ -2011,51 +1989,51 @@ function hi(t) {
|
|
|
2011
1989
|
}
|
|
2012
1990
|
);
|
|
2013
1991
|
}
|
|
2014
|
-
}),
|
|
2015
|
-
var
|
|
2016
|
-
const l =
|
|
1992
|
+
}), S = n.subscribe(async (f) => {
|
|
1993
|
+
var h, T, D, k, x, C, P, A, O, z, ot, Ot, Wt, Xt, Bt, Kt, H, Vt, Jt;
|
|
1994
|
+
const l = tt(t.getState());
|
|
2017
1995
|
let p = [], I = "text";
|
|
2018
|
-
const
|
|
2019
|
-
let
|
|
1996
|
+
const b = (T = (h = f.value) == null ? void 0 : h.options) == null ? void 0 : T.trackId;
|
|
1997
|
+
let g = (k = (D = f.value) == null ? void 0 : D.options) == null ? void 0 : k.trackIndex;
|
|
2020
1998
|
if (f.key === us) {
|
|
2021
|
-
const
|
|
2022
|
-
(
|
|
1999
|
+
const F = (x = f.value) == null ? void 0 : x.payload, G = F.trackItems.map(
|
|
2000
|
+
(Y) => ua(Y, {
|
|
2023
2001
|
size: l.size
|
|
2024
2002
|
})
|
|
2025
|
-
),
|
|
2026
|
-
if (
|
|
2027
|
-
const { details:
|
|
2028
|
-
|
|
2029
|
-
type:
|
|
2030
|
-
details:
|
|
2031
|
-
},
|
|
2032
|
-
}),
|
|
2003
|
+
), v = await Promise.all(G), ct = fa(F.tracks, F.trackItems), nt = [], U = {}, ft = {};
|
|
2004
|
+
if (v.forEach((Y) => {
|
|
2005
|
+
const { details: ht, ...Zt } = Y;
|
|
2006
|
+
nt.push(Y.id), U[Y.id] = {
|
|
2007
|
+
type: Y.type,
|
|
2008
|
+
details: ht
|
|
2009
|
+
}, ft[Y.id] = Zt;
|
|
2010
|
+
}), la(
|
|
2033
2011
|
l.tracks,
|
|
2034
2012
|
ct
|
|
2035
2013
|
))
|
|
2036
|
-
l.tracks.forEach((
|
|
2037
|
-
ct.forEach((
|
|
2038
|
-
|
|
2014
|
+
l.tracks.forEach((Y) => {
|
|
2015
|
+
ct.forEach((ht) => {
|
|
2016
|
+
Y.id === ht.id && Y.items.push(...nt);
|
|
2039
2017
|
});
|
|
2040
2018
|
});
|
|
2041
2019
|
else {
|
|
2042
|
-
const
|
|
2043
|
-
|
|
2020
|
+
const Y = ((P = (C = f.value) == null ? void 0 : C.options) == null ? void 0 : P.trackIndex) || 0, ht = In(
|
|
2021
|
+
Y,
|
|
2044
2022
|
0,
|
|
2045
2023
|
l.tracks.length
|
|
2046
2024
|
);
|
|
2047
|
-
l.tracks.splice(
|
|
2025
|
+
l.tracks.splice(ht, 0, ...ct);
|
|
2048
2026
|
}
|
|
2049
2027
|
l.trackItemDetailsMap = {
|
|
2050
2028
|
...l.trackItemDetailsMap,
|
|
2051
|
-
...
|
|
2029
|
+
...U
|
|
2052
2030
|
}, l.trackItemsMap = {
|
|
2053
2031
|
...l.trackItemsMap,
|
|
2054
|
-
...
|
|
2032
|
+
...ft
|
|
2055
2033
|
}, l.trackItemIds = [
|
|
2056
2034
|
...l.trackItemIds,
|
|
2057
|
-
...
|
|
2058
|
-
], l.duration =
|
|
2035
|
+
...nt
|
|
2036
|
+
], l.duration = jt(l.trackItemsMap), t.updateState(
|
|
2059
2037
|
{
|
|
2060
2038
|
trackItemIds: l.trackItemIds,
|
|
2061
2039
|
trackItemDetailsMap: l.trackItemDetailsMap,
|
|
@@ -2070,107 +2048,112 @@ function hi(t) {
|
|
|
2070
2048
|
);
|
|
2071
2049
|
return;
|
|
2072
2050
|
}
|
|
2073
|
-
if (f.key ===
|
|
2051
|
+
if (f.key === Fi) {
|
|
2074
2052
|
I = "caption";
|
|
2075
|
-
const
|
|
2076
|
-
for (const
|
|
2077
|
-
const
|
|
2053
|
+
const F = (A = f.value) == null ? void 0 : A.payload, G = [];
|
|
2054
|
+
for (const nt of F) {
|
|
2055
|
+
const U = ui(nt, {
|
|
2078
2056
|
size: l.size
|
|
2079
2057
|
});
|
|
2080
|
-
|
|
2058
|
+
G.push(U);
|
|
2081
2059
|
}
|
|
2082
|
-
const
|
|
2083
|
-
for (const
|
|
2084
|
-
const
|
|
2085
|
-
ct.push(
|
|
2086
|
-
const { details:
|
|
2087
|
-
l.trackItemDetailsMap[
|
|
2060
|
+
const v = await Promise.all(G), ct = [];
|
|
2061
|
+
for (const nt of v) {
|
|
2062
|
+
const U = nt.id;
|
|
2063
|
+
ct.push(U);
|
|
2064
|
+
const { details: ft, ...K } = nt;
|
|
2065
|
+
l.trackItemDetailsMap[U] = {
|
|
2088
2066
|
type: I,
|
|
2089
|
-
details:
|
|
2090
|
-
}, l.trackItemsMap[
|
|
2067
|
+
details: ft
|
|
2068
|
+
}, l.trackItemsMap[U] = K, l.trackItemIds.push(U);
|
|
2091
2069
|
}
|
|
2092
2070
|
p = ct;
|
|
2093
2071
|
}
|
|
2094
|
-
if (f.key === $
|
|
2072
|
+
if (f.key === $i) {
|
|
2095
2073
|
I = "text";
|
|
2096
|
-
const
|
|
2074
|
+
const F = await li((O = f.value) == null ? void 0 : O.payload, {
|
|
2097
2075
|
size: l.size
|
|
2098
|
-
}), { details:
|
|
2099
|
-
l.trackItemDetailsMap[
|
|
2076
|
+
}), { details: G, ...v } = F;
|
|
2077
|
+
l.trackItemDetailsMap[v.id] = {
|
|
2100
2078
|
type: I,
|
|
2101
|
-
details:
|
|
2102
|
-
}, l.trackItemsMap[
|
|
2079
|
+
details: G
|
|
2080
|
+
}, l.trackItemsMap[v.id] = v, l.trackItemIds.push(v.id), p = [v.id];
|
|
2103
2081
|
}
|
|
2104
|
-
if (f.key ===
|
|
2082
|
+
if (f.key === Ni) {
|
|
2105
2083
|
I = "template";
|
|
2106
|
-
const
|
|
2084
|
+
const F = (z = f.value) == null ? void 0 : z.payload.trackItemsMap, G = (ot = f.value) == null ? void 0 : ot.payload.trackItemDetailsMap, v = (Ot = f.value) == null ? void 0 : Ot.payload.transitionsMap, ct = ((Wt = f.value) == null ? void 0 : Wt.payload.transitionIds) || [], nt = (Xt = f.value) == null ? void 0 : Xt.payload.trackItemIds, U = ((Bt = f.value) == null ? void 0 : Bt.payload.tracks) || [], { details: ft, ...K } = await ca((Kt = f.value) == null ? void 0 : Kt.payload, {
|
|
2107
2085
|
size: l.size
|
|
2108
|
-
}),
|
|
2109
|
-
|
|
2086
|
+
}), Y = {
|
|
2087
|
+
id: K.id,
|
|
2088
|
+
items: nt,
|
|
2089
|
+
transitions: ct,
|
|
2090
|
+
tracks: U
|
|
2091
|
+
};
|
|
2092
|
+
l.trackItemDetailsMap[K.id] = {
|
|
2110
2093
|
type: I,
|
|
2111
|
-
details:
|
|
2112
|
-
}, l.trackItemsMap[
|
|
2094
|
+
details: ft
|
|
2095
|
+
}, l.trackItemsMap[K.id] = K, l.trackItemIds.push(K.id), p = [K.id], l.trackItemsMap = {
|
|
2113
2096
|
...l.trackItemsMap,
|
|
2114
|
-
...
|
|
2115
|
-
[
|
|
2097
|
+
...F,
|
|
2098
|
+
[K.id]: {
|
|
2116
2099
|
type: "template",
|
|
2117
|
-
...
|
|
2100
|
+
...K
|
|
2118
2101
|
}
|
|
2119
2102
|
}, l.trackItemDetailsMap = {
|
|
2120
2103
|
...l.trackItemDetailsMap,
|
|
2121
|
-
...
|
|
2122
|
-
[
|
|
2104
|
+
...G,
|
|
2105
|
+
[K.id]: {
|
|
2123
2106
|
type: "template",
|
|
2124
|
-
details:
|
|
2107
|
+
details: ft
|
|
2125
2108
|
}
|
|
2126
2109
|
}, l.transitionsMap = {
|
|
2127
2110
|
...l.transitionsMap,
|
|
2128
|
-
...
|
|
2129
|
-
}, l.structure = [...l.structure,
|
|
2111
|
+
...v
|
|
2112
|
+
}, l.structure = [...l.structure, Y];
|
|
2130
2113
|
}
|
|
2131
|
-
if (f.key ===
|
|
2114
|
+
if (f.key === Hi) {
|
|
2132
2115
|
I = "image";
|
|
2133
|
-
const
|
|
2116
|
+
const F = await ci((H = f.value) == null ? void 0 : H.payload, {
|
|
2134
2117
|
size: l.size
|
|
2135
|
-
}), { details:
|
|
2136
|
-
l.trackItemDetailsMap[
|
|
2118
|
+
}), { details: G, ...v } = F;
|
|
2119
|
+
l.trackItemDetailsMap[v.id] = {
|
|
2137
2120
|
type: I,
|
|
2138
|
-
details:
|
|
2139
|
-
}, l.trackItemsMap[
|
|
2121
|
+
details: G
|
|
2122
|
+
}, l.trackItemsMap[v.id] = v, l.trackItemIds.push(v.id), p = [v.id];
|
|
2140
2123
|
}
|
|
2141
|
-
if (f.key ===
|
|
2124
|
+
if (f.key === ji) {
|
|
2142
2125
|
I = "audio";
|
|
2143
|
-
const
|
|
2144
|
-
l.trackItemDetailsMap[
|
|
2126
|
+
const F = await oi((Vt = f.value) == null ? void 0 : Vt.payload), { details: G, ...v } = F;
|
|
2127
|
+
l.trackItemDetailsMap[v.id] = {
|
|
2145
2128
|
type: I,
|
|
2146
|
-
details:
|
|
2147
|
-
}, l.trackItemsMap[
|
|
2129
|
+
details: G
|
|
2130
|
+
}, l.trackItemsMap[v.id] = v, l.trackItemIds.push(v.id), p = [v.id];
|
|
2148
2131
|
}
|
|
2149
|
-
if (f.key ===
|
|
2132
|
+
if (f.key === zi) {
|
|
2150
2133
|
I = "video";
|
|
2151
|
-
const
|
|
2134
|
+
const F = await si((Jt = f.value) == null ? void 0 : Jt.payload, {
|
|
2152
2135
|
size: l.size
|
|
2153
|
-
}), { details:
|
|
2154
|
-
l.trackItemDetailsMap[
|
|
2136
|
+
}), { details: G, ...v } = F;
|
|
2137
|
+
l.trackItemDetailsMap[v.id] = {
|
|
2155
2138
|
type: I,
|
|
2156
|
-
details:
|
|
2157
|
-
}, l.trackItemsMap[
|
|
2139
|
+
details: G
|
|
2140
|
+
}, l.trackItemsMap[v.id] = v, l.trackItemIds.push(v.id), p = [v.id];
|
|
2158
2141
|
}
|
|
2159
|
-
const
|
|
2142
|
+
const m = pa(
|
|
2160
2143
|
p,
|
|
2161
2144
|
l.tracks,
|
|
2162
2145
|
l.trackItemsMap,
|
|
2163
|
-
|
|
2164
|
-
|
|
2146
|
+
b,
|
|
2147
|
+
g
|
|
2165
2148
|
);
|
|
2166
|
-
if (
|
|
2167
|
-
const
|
|
2168
|
-
(
|
|
2149
|
+
if (m.trackId) {
|
|
2150
|
+
const F = l.tracks.find(
|
|
2151
|
+
(G) => G.id === m.trackId
|
|
2169
2152
|
);
|
|
2170
|
-
|
|
2171
|
-
} else if (
|
|
2172
|
-
const
|
|
2173
|
-
id:
|
|
2153
|
+
F && F.items.push(...p);
|
|
2154
|
+
} else if (m.trackIndex !== void 0) {
|
|
2155
|
+
const F = {
|
|
2156
|
+
id: Oe(),
|
|
2174
2157
|
accepts: [
|
|
2175
2158
|
"text",
|
|
2176
2159
|
"audio",
|
|
@@ -2185,10 +2168,10 @@ function hi(t) {
|
|
|
2185
2168
|
magnetic: !1,
|
|
2186
2169
|
static: !1
|
|
2187
2170
|
};
|
|
2188
|
-
l.tracks.splice(
|
|
2171
|
+
l.tracks.splice(m.trackIndex, 0, F);
|
|
2189
2172
|
} else
|
|
2190
2173
|
l.tracks.unshift({
|
|
2191
|
-
id:
|
|
2174
|
+
id: Oe(),
|
|
2192
2175
|
accepts: [
|
|
2193
2176
|
"text",
|
|
2194
2177
|
"audio",
|
|
@@ -2203,11 +2186,12 @@ function hi(t) {
|
|
|
2203
2186
|
magnetic: !1,
|
|
2204
2187
|
static: !1
|
|
2205
2188
|
});
|
|
2206
|
-
l.duration =
|
|
2189
|
+
l.duration = jt(l.trackItemsMap), t.updateState(
|
|
2207
2190
|
{
|
|
2208
2191
|
trackItemIds: l.trackItemIds,
|
|
2209
2192
|
trackItemDetailsMap: l.trackItemDetailsMap,
|
|
2210
2193
|
trackItemsMap: l.trackItemsMap,
|
|
2194
|
+
transitionsMap: l.transitionsMap,
|
|
2211
2195
|
tracks: l.tracks,
|
|
2212
2196
|
duration: l.duration,
|
|
2213
2197
|
structure: l.structure
|
|
@@ -2217,28 +2201,28 @@ function hi(t) {
|
|
|
2217
2201
|
kind: "add"
|
|
2218
2202
|
}
|
|
2219
2203
|
);
|
|
2220
|
-
}),
|
|
2204
|
+
}), N = c.subscribe(async (f) => {
|
|
2221
2205
|
var l;
|
|
2222
|
-
if (f.key ===
|
|
2223
|
-
const p =
|
|
2206
|
+
if (f.key === Ui) {
|
|
2207
|
+
const p = tt(t.getState()), I = (l = f.value) == null ? void 0 : l.options.time;
|
|
2224
2208
|
if (p.activeIds.length === 1) {
|
|
2225
|
-
const
|
|
2226
|
-
if (I >=
|
|
2209
|
+
const b = p.activeIds[0], g = p.trackItemsMap[b];
|
|
2210
|
+
if (I >= g.display.to || I <= g.display.from)
|
|
2227
2211
|
return;
|
|
2228
|
-
const
|
|
2229
|
-
...
|
|
2230
|
-
id:
|
|
2212
|
+
const m = p.trackItemDetailsMap[b], h = xe(), T = {
|
|
2213
|
+
...g,
|
|
2214
|
+
id: h,
|
|
2231
2215
|
display: {
|
|
2232
2216
|
from: I,
|
|
2233
|
-
to:
|
|
2217
|
+
to: g.display.to
|
|
2234
2218
|
},
|
|
2235
2219
|
trim: {
|
|
2236
2220
|
from: I,
|
|
2237
|
-
to:
|
|
2221
|
+
to: g.display.to
|
|
2238
2222
|
}
|
|
2239
2223
|
};
|
|
2240
|
-
p.trackItemsMap[
|
|
2241
|
-
|
|
2224
|
+
p.trackItemsMap[b].display.to = I, p.trackItemsMap[h] = T, p.trackItemIds.push(h), p.trackItemDetailsMap[h] = m, p.tracks.forEach((D) => {
|
|
2225
|
+
D.items.includes(b) && D.items.push(h);
|
|
2242
2226
|
}), t.updateState(
|
|
2243
2227
|
{
|
|
2244
2228
|
trackItemDetailsMap: p.trackItemDetailsMap,
|
|
@@ -2254,49 +2238,49 @@ function hi(t) {
|
|
|
2254
2238
|
}
|
|
2255
2239
|
return;
|
|
2256
2240
|
}
|
|
2257
|
-
if (f.key ===
|
|
2258
|
-
const p =
|
|
2241
|
+
if (f.key === Gi) {
|
|
2242
|
+
const p = tt(t.getState());
|
|
2259
2243
|
if (p.activeIds.length) {
|
|
2260
|
-
const I = p.activeIds,
|
|
2244
|
+
const I = p.activeIds, b = [], g = {
|
|
2261
2245
|
activeIds: I,
|
|
2262
2246
|
trackItemDetailsMap: {},
|
|
2263
2247
|
trackItemsMap: {},
|
|
2264
2248
|
tracks: []
|
|
2265
2249
|
};
|
|
2266
|
-
I.forEach((
|
|
2267
|
-
|
|
2268
|
-
p.tracks.find((
|
|
2250
|
+
I.forEach((h) => {
|
|
2251
|
+
g.trackItemDetailsMap[h] = p.trackItemDetailsMap[h], g.trackItemsMap[h] = p.trackItemsMap[h], b.push(
|
|
2252
|
+
p.tracks.find((T) => T.items.includes(h))
|
|
2269
2253
|
);
|
|
2270
2254
|
});
|
|
2271
|
-
const
|
|
2272
|
-
|
|
2255
|
+
const m = /* @__PURE__ */ new Set();
|
|
2256
|
+
b.filter((h) => m.has(h.id) ? !1 : (m.add(h), !0)), g.tracks = Array.from(m.keys()), localStorage.setItem("DesignComboTemp", JSON.stringify(g));
|
|
2273
2257
|
}
|
|
2274
2258
|
}
|
|
2275
|
-
if (f.key ===
|
|
2259
|
+
if (f.key === Yi) {
|
|
2276
2260
|
const p = localStorage.getItem("DesignComboTemp");
|
|
2277
2261
|
if (!p) return;
|
|
2278
|
-
const I =
|
|
2279
|
-
const
|
|
2280
|
-
(
|
|
2262
|
+
const I = tt(t.getState()), b = JSON.parse(p), g = {}, m = b.trackItemsMap, h = b.trackItemDetailsMap, T = b.tracks, D = [], k = b.activeIds.map(async (x) => {
|
|
2263
|
+
const C = h[x];
|
|
2264
|
+
(C.type === "caption" || C.type === "text") && C.details.fontUrl && await dr([
|
|
2281
2265
|
{
|
|
2282
|
-
fontFamily:
|
|
2283
|
-
url:
|
|
2266
|
+
fontFamily: C.details.fontFamily,
|
|
2267
|
+
url: C.details.fontUrl
|
|
2284
2268
|
}
|
|
2285
2269
|
]);
|
|
2286
|
-
const
|
|
2287
|
-
return
|
|
2288
|
-
...
|
|
2289
|
-
id:
|
|
2290
|
-
}, I.trackItemDetailsMap[
|
|
2270
|
+
const P = xe();
|
|
2271
|
+
return g[x] = P, I.trackItemsMap[P] = {
|
|
2272
|
+
...m[x],
|
|
2273
|
+
id: P
|
|
2274
|
+
}, I.trackItemDetailsMap[P] = C, I.trackItemIds.push(P), !0;
|
|
2291
2275
|
});
|
|
2292
|
-
await Promise.all(
|
|
2293
|
-
const
|
|
2276
|
+
await Promise.all(k), T.forEach((x) => {
|
|
2277
|
+
const C = x.items.map((A) => g[A]), P = {
|
|
2294
2278
|
...x,
|
|
2295
|
-
items:
|
|
2296
|
-
id:
|
|
2279
|
+
items: C,
|
|
2280
|
+
id: Oe()
|
|
2297
2281
|
};
|
|
2298
|
-
|
|
2299
|
-
}), I.tracks = [...I.tracks, ...
|
|
2282
|
+
D.push(P);
|
|
2283
|
+
}), I.tracks = [...I.tracks, ...D], t.updateState(
|
|
2300
2284
|
{
|
|
2301
2285
|
trackItemDetailsMap: I.trackItemDetailsMap,
|
|
2302
2286
|
tracks: I.tracks,
|
|
@@ -2311,26 +2295,23 @@ function hi(t) {
|
|
|
2311
2295
|
}
|
|
2312
2296
|
}), _ = d.subscribe(async (f) => {
|
|
2313
2297
|
var l, p, I;
|
|
2314
|
-
if (f.key ===
|
|
2315
|
-
const
|
|
2316
|
-
if (!
|
|
2317
|
-
const
|
|
2318
|
-
|
|
2319
|
-
const x =
|
|
2320
|
-
x.details ?
|
|
2321
|
-
...
|
|
2298
|
+
if (f.key === Wi) {
|
|
2299
|
+
const b = tt(t.getState()), g = b.trackItemDetailsMap, m = b.trackItemsMap, h = Object.keys((l = f.value) == null ? void 0 : l.payload);
|
|
2300
|
+
if (!h.length) return;
|
|
2301
|
+
const T = (p = f.value) == null ? void 0 : p.payload;
|
|
2302
|
+
h.forEach((k) => {
|
|
2303
|
+
const x = T[k];
|
|
2304
|
+
x.details ? g[k].details = {
|
|
2305
|
+
...g[k].details,
|
|
2322
2306
|
...x.details
|
|
2323
|
-
} :
|
|
2324
|
-
...h[g],
|
|
2325
|
-
...w[g]
|
|
2326
|
-
});
|
|
2307
|
+
} : T[k].playbackRate && (m[k].playbackRate = T[k].playbackRate);
|
|
2327
2308
|
});
|
|
2328
|
-
const
|
|
2309
|
+
const D = jt(m);
|
|
2329
2310
|
t.updateState(
|
|
2330
2311
|
{
|
|
2331
|
-
trackItemDetailsMap: { ...
|
|
2332
|
-
trackItemsMap: { ...
|
|
2333
|
-
duration:
|
|
2312
|
+
trackItemDetailsMap: { ...g },
|
|
2313
|
+
trackItemsMap: { ...m },
|
|
2314
|
+
duration: D
|
|
2334
2315
|
},
|
|
2335
2316
|
{
|
|
2336
2317
|
updateHistory: !0,
|
|
@@ -2338,35 +2319,35 @@ function hi(t) {
|
|
|
2338
2319
|
}
|
|
2339
2320
|
);
|
|
2340
2321
|
}
|
|
2341
|
-
if (f.key ===
|
|
2342
|
-
const
|
|
2343
|
-
if (
|
|
2344
|
-
if (
|
|
2345
|
-
const x = await
|
|
2346
|
-
let
|
|
2347
|
-
const
|
|
2348
|
-
|
|
2322
|
+
if (f.key === Xi) {
|
|
2323
|
+
const b = (I = f.value) == null ? void 0 : I.payload, g = Object.keys(b)[0], m = Object.values(b)[0], h = tt(t.getState()), T = h.trackItemDetailsMap[g];
|
|
2324
|
+
if (m.details) {
|
|
2325
|
+
if (m.type === "image" && m.details.src) {
|
|
2326
|
+
const x = await ri(m.details.src), C = T.details.width || 0, P = T.details.height || 0;
|
|
2327
|
+
let A = x.width, O = x.height;
|
|
2328
|
+
const z = x.width / x.height;
|
|
2329
|
+
C / P > z ? (A = C, O = C / z) : (O = P, A = P * z), m.details.mediaWidth = A, m.details.mediaHeight = O;
|
|
2349
2330
|
}
|
|
2350
|
-
if (
|
|
2351
|
-
const x = await
|
|
2352
|
-
let
|
|
2353
|
-
const
|
|
2354
|
-
|
|
2331
|
+
if (m.type === "video" && m.details.src) {
|
|
2332
|
+
const x = await ni(m.details.src), C = T.details.width || 0, P = T.details.height || 0;
|
|
2333
|
+
let A = x.width, O = x.height;
|
|
2334
|
+
const z = x.width / x.height;
|
|
2335
|
+
C / P > z ? (A = C, O = C / z) : (O = P, A = P * z), m.details.mediaWidth = A, m.details.mediaHeight = O;
|
|
2355
2336
|
}
|
|
2356
|
-
const
|
|
2357
|
-
|
|
2337
|
+
const k = T.details;
|
|
2338
|
+
T.details = { ...k, ...m.details }, m.details = T.details;
|
|
2358
2339
|
}
|
|
2359
|
-
const
|
|
2360
|
-
|
|
2361
|
-
...
|
|
2362
|
-
type:
|
|
2340
|
+
const D = { ...T, ...m };
|
|
2341
|
+
h.trackItemDetailsMap[g] = D, h.trackItemsMap[g] = {
|
|
2342
|
+
...h.trackItemsMap[g],
|
|
2343
|
+
type: m.type
|
|
2363
2344
|
}, t.updateState(
|
|
2364
2345
|
{
|
|
2365
2346
|
trackItemDetailsMap: {
|
|
2366
|
-
...
|
|
2347
|
+
...h.trackItemDetailsMap
|
|
2367
2348
|
},
|
|
2368
2349
|
trackItemsMap: {
|
|
2369
|
-
...
|
|
2350
|
+
...h.trackItemsMap
|
|
2370
2351
|
}
|
|
2371
2352
|
},
|
|
2372
2353
|
{
|
|
@@ -2378,47 +2359,47 @@ function hi(t) {
|
|
|
2378
2359
|
});
|
|
2379
2360
|
return {
|
|
2380
2361
|
unsubscribe: () => {
|
|
2381
|
-
|
|
2362
|
+
S.unsubscribe(), N.unsubscribe(), _.unsubscribe(), w.unsubscribe(), R.unsubscribe(), y.unsubscribe();
|
|
2382
2363
|
}
|
|
2383
2364
|
};
|
|
2384
2365
|
}
|
|
2385
|
-
const
|
|
2386
|
-
function
|
|
2387
|
-
var y,
|
|
2366
|
+
const ma = { Date: !0, RegExp: !0, String: !0, Number: !0 };
|
|
2367
|
+
function di(t, r, n = { cyclesFix: !0 }, i = []) {
|
|
2368
|
+
var y, w;
|
|
2388
2369
|
let s = [];
|
|
2389
2370
|
const c = Array.isArray(t);
|
|
2390
|
-
for (const
|
|
2391
|
-
const
|
|
2392
|
-
if (!(
|
|
2371
|
+
for (const R in t) {
|
|
2372
|
+
const S = t[R], N = c ? +R : R;
|
|
2373
|
+
if (!(R in r)) {
|
|
2393
2374
|
s.push({
|
|
2394
2375
|
type: "REMOVE",
|
|
2395
|
-
path: [
|
|
2396
|
-
oldValue: t[
|
|
2376
|
+
path: [N],
|
|
2377
|
+
oldValue: t[R]
|
|
2397
2378
|
});
|
|
2398
2379
|
continue;
|
|
2399
2380
|
}
|
|
2400
|
-
const _ = r[
|
|
2401
|
-
if (
|
|
2402
|
-
const l =
|
|
2403
|
-
s.push.apply(s, l.map((p) => (p.path.unshift(
|
|
2404
|
-
} else
|
|
2405
|
-
!(Number.isNaN(
|
|
2406
|
-
path: [
|
|
2381
|
+
const _ = r[R], f = typeof S == "object" && typeof _ == "object" && Array.isArray(S) === Array.isArray(_);
|
|
2382
|
+
if (S && _ && f && !ma[(w = (y = Object.getPrototypeOf(S)) == null ? void 0 : y.constructor) == null ? void 0 : w.name] && (!n.cyclesFix || !i.includes(S))) {
|
|
2383
|
+
const l = di(S, _, n, n.cyclesFix ? i.concat([S]) : []);
|
|
2384
|
+
s.push.apply(s, l.map((p) => (p.path.unshift(N), p)));
|
|
2385
|
+
} else S !== _ && // treat NaN values as equivalent
|
|
2386
|
+
!(Number.isNaN(S) && Number.isNaN(_)) && !(f && (isNaN(S) ? S + "" == _ + "" : +S == +_)) && s.push({
|
|
2387
|
+
path: [N],
|
|
2407
2388
|
type: "CHANGE",
|
|
2408
2389
|
value: _,
|
|
2409
|
-
oldValue:
|
|
2390
|
+
oldValue: S
|
|
2410
2391
|
});
|
|
2411
2392
|
}
|
|
2412
2393
|
const d = Array.isArray(r);
|
|
2413
|
-
for (const
|
|
2414
|
-
|
|
2394
|
+
for (const R in r)
|
|
2395
|
+
R in t || s.push({
|
|
2415
2396
|
type: "CREATE",
|
|
2416
|
-
path: [d ? +
|
|
2417
|
-
value: r[
|
|
2397
|
+
path: [d ? +R : R],
|
|
2398
|
+
value: r[R]
|
|
2418
2399
|
});
|
|
2419
2400
|
return s;
|
|
2420
2401
|
}
|
|
2421
|
-
var
|
|
2402
|
+
var kn = Symbol.for("immer-nothing"), Pe = Symbol.for("immer-draftable"), ut = Symbol.for("immer-state"), pi = process.env.NODE_ENV !== "production" ? [
|
|
2422
2403
|
// All error codes, starting by 0:
|
|
2423
2404
|
function(t) {
|
|
2424
2405
|
return `The plugin for '${t}' has not been loaded into Immer. To enable the plugin, import and call \`enable${t}()\` when initializing your application.`;
|
|
@@ -2451,77 +2432,77 @@ var xn = Symbol.for("immer-nothing"), xe = Symbol.for("immer-draftable"), ut = S
|
|
|
2451
2432
|
] : [];
|
|
2452
2433
|
function B(t, ...r) {
|
|
2453
2434
|
if (process.env.NODE_ENV !== "production") {
|
|
2454
|
-
const n =
|
|
2455
|
-
throw new Error(`[Immer] ${
|
|
2435
|
+
const n = pi[t], i = typeof n == "function" ? n.apply(null, r) : n;
|
|
2436
|
+
throw new Error(`[Immer] ${i}`);
|
|
2456
2437
|
}
|
|
2457
2438
|
throw new Error(
|
|
2458
2439
|
`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`
|
|
2459
2440
|
);
|
|
2460
2441
|
}
|
|
2461
|
-
var
|
|
2462
|
-
function
|
|
2442
|
+
var zt = Object.getPrototypeOf;
|
|
2443
|
+
function Ut(t) {
|
|
2463
2444
|
return !!t && !!t[ut];
|
|
2464
2445
|
}
|
|
2465
2446
|
function Mt(t) {
|
|
2466
2447
|
var r;
|
|
2467
|
-
return t ?
|
|
2448
|
+
return t ? hi(t) || Array.isArray(t) || !!t[Pe] || !!((r = t.constructor) != null && r[Pe]) || He(t) || je(t) : !1;
|
|
2468
2449
|
}
|
|
2469
|
-
var
|
|
2470
|
-
function
|
|
2450
|
+
var ya = Object.prototype.constructor.toString();
|
|
2451
|
+
function hi(t) {
|
|
2471
2452
|
if (!t || typeof t != "object")
|
|
2472
2453
|
return !1;
|
|
2473
|
-
const r =
|
|
2454
|
+
const r = zt(t);
|
|
2474
2455
|
if (r === null)
|
|
2475
2456
|
return !0;
|
|
2476
2457
|
const n = Object.hasOwnProperty.call(r, "constructor") && r.constructor;
|
|
2477
|
-
return n === Object ? !0 : typeof n == "function" && Function.toString.call(n) ===
|
|
2458
|
+
return n === Object ? !0 : typeof n == "function" && Function.toString.call(n) === ya;
|
|
2478
2459
|
}
|
|
2479
|
-
function
|
|
2480
|
-
|
|
2460
|
+
function Ce(t, r) {
|
|
2461
|
+
Gt(t) === 0 ? Reflect.ownKeys(t).forEach((n) => {
|
|
2481
2462
|
r(n, t[n], t);
|
|
2482
|
-
}) : t.forEach((n,
|
|
2463
|
+
}) : t.forEach((n, i) => r(i, n, t));
|
|
2483
2464
|
}
|
|
2484
|
-
function
|
|
2465
|
+
function Gt(t) {
|
|
2485
2466
|
const r = t[ut];
|
|
2486
|
-
return r ? r.type_ : Array.isArray(t) ? 1 :
|
|
2467
|
+
return r ? r.type_ : Array.isArray(t) ? 1 : He(t) ? 2 : je(t) ? 3 : 0;
|
|
2487
2468
|
}
|
|
2488
|
-
function
|
|
2489
|
-
return
|
|
2469
|
+
function Re(t, r) {
|
|
2470
|
+
return Gt(t) === 2 ? t.has(r) : Object.prototype.hasOwnProperty.call(t, r);
|
|
2490
2471
|
}
|
|
2491
|
-
function
|
|
2492
|
-
return
|
|
2472
|
+
function un(t, r) {
|
|
2473
|
+
return Gt(t) === 2 ? t.get(r) : t[r];
|
|
2493
2474
|
}
|
|
2494
|
-
function
|
|
2495
|
-
const
|
|
2496
|
-
|
|
2475
|
+
function mi(t, r, n) {
|
|
2476
|
+
const i = Gt(t);
|
|
2477
|
+
i === 2 ? t.set(r, n) : i === 3 ? t.add(n) : t[r] = n;
|
|
2497
2478
|
}
|
|
2498
|
-
function
|
|
2479
|
+
function _a(t, r) {
|
|
2499
2480
|
return t === r ? t !== 0 || 1 / t === 1 / r : t !== t && r !== r;
|
|
2500
2481
|
}
|
|
2501
|
-
function
|
|
2482
|
+
function He(t) {
|
|
2502
2483
|
return t instanceof Map;
|
|
2503
2484
|
}
|
|
2504
|
-
function
|
|
2485
|
+
function je(t) {
|
|
2505
2486
|
return t instanceof Set;
|
|
2506
2487
|
}
|
|
2507
|
-
function
|
|
2488
|
+
function Ht(t) {
|
|
2508
2489
|
return t.copy_ || t.base_;
|
|
2509
2490
|
}
|
|
2510
|
-
function
|
|
2511
|
-
if (Ne(t))
|
|
2512
|
-
return new Map(t);
|
|
2491
|
+
function gn(t, r) {
|
|
2513
2492
|
if (He(t))
|
|
2493
|
+
return new Map(t);
|
|
2494
|
+
if (je(t))
|
|
2514
2495
|
return new Set(t);
|
|
2515
2496
|
if (Array.isArray(t))
|
|
2516
2497
|
return Array.prototype.slice.call(t);
|
|
2517
|
-
const n =
|
|
2498
|
+
const n = hi(t);
|
|
2518
2499
|
if (r === !0 || r === "class_only" && !n) {
|
|
2519
|
-
const
|
|
2520
|
-
delete
|
|
2521
|
-
let s = Reflect.ownKeys(
|
|
2500
|
+
const i = Object.getOwnPropertyDescriptors(t);
|
|
2501
|
+
delete i[ut];
|
|
2502
|
+
let s = Reflect.ownKeys(i);
|
|
2522
2503
|
for (let c = 0; c < s.length; c++) {
|
|
2523
|
-
const d = s[c], y =
|
|
2524
|
-
y.writable === !1 && (y.writable = !0, y.configurable = !0), (y.get || y.set) && (
|
|
2504
|
+
const d = s[c], y = i[d];
|
|
2505
|
+
y.writable === !1 && (y.writable = !0, y.configurable = !0), (y.get || y.set) && (i[d] = {
|
|
2525
2506
|
configurable: !0,
|
|
2526
2507
|
writable: !0,
|
|
2527
2508
|
// could live with !!desc.set as well here...
|
|
@@ -2529,37 +2510,37 @@ function Sn(t, r) {
|
|
|
2529
2510
|
value: t[d]
|
|
2530
2511
|
});
|
|
2531
2512
|
}
|
|
2532
|
-
return Object.create(
|
|
2513
|
+
return Object.create(zt(t), i);
|
|
2533
2514
|
} else {
|
|
2534
|
-
const
|
|
2535
|
-
if (
|
|
2515
|
+
const i = zt(t);
|
|
2516
|
+
if (i !== null && n)
|
|
2536
2517
|
return { ...t };
|
|
2537
|
-
const s = Object.create(
|
|
2518
|
+
const s = Object.create(i);
|
|
2538
2519
|
return Object.assign(s, t);
|
|
2539
2520
|
}
|
|
2540
2521
|
}
|
|
2541
|
-
function
|
|
2542
|
-
return
|
|
2522
|
+
function An(t, r = !1) {
|
|
2523
|
+
return Ir(t) || Ut(t) || !Mt(t) || (Gt(t) > 1 && (t.set = t.add = t.clear = t.delete = Ia), Object.freeze(t), r && Object.entries(t).forEach(([n, i]) => An(i, !0))), t;
|
|
2543
2524
|
}
|
|
2544
|
-
function
|
|
2525
|
+
function Ia() {
|
|
2545
2526
|
B(2);
|
|
2546
2527
|
}
|
|
2547
|
-
function
|
|
2528
|
+
function Ir(t) {
|
|
2548
2529
|
return Object.isFrozen(t);
|
|
2549
2530
|
}
|
|
2550
|
-
var
|
|
2551
|
-
function
|
|
2552
|
-
const r =
|
|
2531
|
+
var bn = {};
|
|
2532
|
+
function Yt(t) {
|
|
2533
|
+
const r = bn[t];
|
|
2553
2534
|
return r || B(0, t), r;
|
|
2554
2535
|
}
|
|
2555
|
-
function
|
|
2556
|
-
|
|
2536
|
+
function ga(t, r) {
|
|
2537
|
+
bn[t] || (bn[t] = r);
|
|
2557
2538
|
}
|
|
2558
|
-
var
|
|
2559
|
-
function
|
|
2560
|
-
return
|
|
2539
|
+
var Le;
|
|
2540
|
+
function yi() {
|
|
2541
|
+
return Le;
|
|
2561
2542
|
}
|
|
2562
|
-
function
|
|
2543
|
+
function ba(t, r) {
|
|
2563
2544
|
return {
|
|
2564
2545
|
drafts_: [],
|
|
2565
2546
|
parent_: t,
|
|
@@ -2570,84 +2551,84 @@ function bi(t, r) {
|
|
|
2570
2551
|
unfinalizedDrafts_: 0
|
|
2571
2552
|
};
|
|
2572
2553
|
}
|
|
2573
|
-
function
|
|
2574
|
-
r && (
|
|
2554
|
+
function Hn(t, r) {
|
|
2555
|
+
r && (Yt("Patches"), t.patches_ = [], t.inversePatches_ = [], t.patchListener_ = r);
|
|
2575
2556
|
}
|
|
2576
|
-
function
|
|
2577
|
-
|
|
2557
|
+
function vn(t) {
|
|
2558
|
+
En(t), t.drafts_.forEach(va), t.drafts_ = null;
|
|
2578
2559
|
}
|
|
2579
|
-
function
|
|
2580
|
-
t ===
|
|
2560
|
+
function En(t) {
|
|
2561
|
+
t === Le && (Le = t.parent_);
|
|
2581
2562
|
}
|
|
2582
|
-
function
|
|
2583
|
-
return
|
|
2563
|
+
function jn(t) {
|
|
2564
|
+
return Le = ba(Le, t);
|
|
2584
2565
|
}
|
|
2585
|
-
function
|
|
2566
|
+
function va(t) {
|
|
2586
2567
|
const r = t[ut];
|
|
2587
2568
|
r.type_ === 0 || r.type_ === 1 ? r.revoke_() : r.revoked_ = !0;
|
|
2588
2569
|
}
|
|
2589
|
-
function
|
|
2570
|
+
function zn(t, r) {
|
|
2590
2571
|
r.unfinalizedDrafts_ = r.drafts_.length;
|
|
2591
2572
|
const n = r.drafts_[0];
|
|
2592
|
-
return t !== void 0 && t !== n ? (n[ut].modified_ && (
|
|
2573
|
+
return t !== void 0 && t !== n ? (n[ut].modified_ && (vn(r), B(4)), Mt(t) && (t = pr(r, t), r.parent_ || hr(r, t)), r.patches_ && Yt("Patches").generateReplacementPatches_(
|
|
2593
2574
|
n[ut].base_,
|
|
2594
2575
|
t,
|
|
2595
2576
|
r.patches_,
|
|
2596
2577
|
r.inversePatches_
|
|
2597
|
-
)) : t =
|
|
2578
|
+
)) : t = pr(r, n, []), vn(r), r.patches_ && r.patchListener_(r.patches_, r.inversePatches_), t !== kn ? t : void 0;
|
|
2598
2579
|
}
|
|
2599
|
-
function
|
|
2600
|
-
if (
|
|
2580
|
+
function pr(t, r, n) {
|
|
2581
|
+
if (Ir(r))
|
|
2601
2582
|
return r;
|
|
2602
|
-
const
|
|
2603
|
-
if (!
|
|
2604
|
-
return
|
|
2583
|
+
const i = r[ut];
|
|
2584
|
+
if (!i)
|
|
2585
|
+
return Ce(
|
|
2605
2586
|
r,
|
|
2606
|
-
(s, c) =>
|
|
2587
|
+
(s, c) => Un(t, i, r, s, c, n)
|
|
2607
2588
|
), r;
|
|
2608
|
-
if (
|
|
2589
|
+
if (i.scope_ !== t)
|
|
2609
2590
|
return r;
|
|
2610
|
-
if (!
|
|
2611
|
-
return
|
|
2612
|
-
if (!
|
|
2613
|
-
|
|
2614
|
-
const s =
|
|
2591
|
+
if (!i.modified_)
|
|
2592
|
+
return hr(t, i.base_, !0), i.base_;
|
|
2593
|
+
if (!i.finalized_) {
|
|
2594
|
+
i.finalized_ = !0, i.scope_.unfinalizedDrafts_--;
|
|
2595
|
+
const s = i.copy_;
|
|
2615
2596
|
let c = s, d = !1;
|
|
2616
|
-
|
|
2597
|
+
i.type_ === 3 && (c = new Set(s), s.clear(), d = !0), Ce(
|
|
2617
2598
|
c,
|
|
2618
|
-
(y,
|
|
2619
|
-
),
|
|
2620
|
-
|
|
2599
|
+
(y, w) => Un(t, i, s, y, w, n, d)
|
|
2600
|
+
), hr(t, s, !1), n && t.patches_ && Yt("Patches").generatePatches_(
|
|
2601
|
+
i,
|
|
2621
2602
|
n,
|
|
2622
2603
|
t.patches_,
|
|
2623
2604
|
t.inversePatches_
|
|
2624
2605
|
);
|
|
2625
2606
|
}
|
|
2626
|
-
return
|
|
2607
|
+
return i.copy_;
|
|
2627
2608
|
}
|
|
2628
|
-
function
|
|
2629
|
-
if (process.env.NODE_ENV !== "production" && s === n && B(5),
|
|
2609
|
+
function Un(t, r, n, i, s, c, d) {
|
|
2610
|
+
if (process.env.NODE_ENV !== "production" && s === n && B(5), Ut(s)) {
|
|
2630
2611
|
const y = c && r && r.type_ !== 3 && // Set objects are atomic since they have no keys.
|
|
2631
|
-
!
|
|
2632
|
-
if (
|
|
2612
|
+
!Re(r.assigned_, i) ? c.concat(i) : void 0, w = pr(t, s, y);
|
|
2613
|
+
if (mi(n, i, w), Ut(w))
|
|
2633
2614
|
t.canAutoFreeze_ = !1;
|
|
2634
2615
|
else
|
|
2635
2616
|
return;
|
|
2636
2617
|
} else d && n.add(s);
|
|
2637
|
-
if (Mt(s) && !
|
|
2618
|
+
if (Mt(s) && !Ir(s)) {
|
|
2638
2619
|
if (!t.immer_.autoFreeze_ && t.unfinalizedDrafts_ < 1)
|
|
2639
2620
|
return;
|
|
2640
|
-
|
|
2621
|
+
pr(t, s), (!r || !r.scope_.parent_) && typeof i != "symbol" && Object.prototype.propertyIsEnumerable.call(n, i) && hr(t, s);
|
|
2641
2622
|
}
|
|
2642
2623
|
}
|
|
2643
|
-
function
|
|
2644
|
-
!t.parent_ && t.immer_.autoFreeze_ && t.canAutoFreeze_ &&
|
|
2624
|
+
function hr(t, r, n = !1) {
|
|
2625
|
+
!t.parent_ && t.immer_.autoFreeze_ && t.canAutoFreeze_ && An(r, n);
|
|
2645
2626
|
}
|
|
2646
|
-
function
|
|
2647
|
-
const n = Array.isArray(t),
|
|
2627
|
+
function Ea(t, r) {
|
|
2628
|
+
const n = Array.isArray(t), i = {
|
|
2648
2629
|
type_: n ? 1 : 0,
|
|
2649
2630
|
// Track which produce call this is associated with.
|
|
2650
|
-
scope_: r ? r.scope_ :
|
|
2631
|
+
scope_: r ? r.scope_ : yi(),
|
|
2651
2632
|
// True for both shallow and deep changes.
|
|
2652
2633
|
modified_: !1,
|
|
2653
2634
|
// Used during finalization.
|
|
@@ -2667,54 +2648,54 @@ function Ei(t, r) {
|
|
|
2667
2648
|
revoke_: null,
|
|
2668
2649
|
isManual_: !1
|
|
2669
2650
|
};
|
|
2670
|
-
let s =
|
|
2671
|
-
n && (s = [
|
|
2651
|
+
let s = i, c = Dn;
|
|
2652
|
+
n && (s = [i], c = Fe);
|
|
2672
2653
|
const { revoke: d, proxy: y } = Proxy.revocable(s, c);
|
|
2673
|
-
return
|
|
2654
|
+
return i.draft_ = y, i.revoke_ = d, y;
|
|
2674
2655
|
}
|
|
2675
|
-
var
|
|
2656
|
+
var Dn = {
|
|
2676
2657
|
get(t, r) {
|
|
2677
2658
|
if (r === ut)
|
|
2678
2659
|
return t;
|
|
2679
|
-
const n =
|
|
2680
|
-
if (!
|
|
2681
|
-
return
|
|
2682
|
-
const
|
|
2683
|
-
return t.finalized_ || !Mt(
|
|
2660
|
+
const n = Ht(t);
|
|
2661
|
+
if (!Re(n, r))
|
|
2662
|
+
return Sa(t, n, r);
|
|
2663
|
+
const i = n[r];
|
|
2664
|
+
return t.finalized_ || !Mt(i) ? i : i === ln(t.base_, r) ? (fn(t), t.copy_[r] = Tn(i, t)) : i;
|
|
2684
2665
|
},
|
|
2685
2666
|
has(t, r) {
|
|
2686
|
-
return r in
|
|
2667
|
+
return r in Ht(t);
|
|
2687
2668
|
},
|
|
2688
2669
|
ownKeys(t) {
|
|
2689
|
-
return Reflect.ownKeys(
|
|
2670
|
+
return Reflect.ownKeys(Ht(t));
|
|
2690
2671
|
},
|
|
2691
2672
|
set(t, r, n) {
|
|
2692
|
-
const
|
|
2693
|
-
if (
|
|
2694
|
-
return
|
|
2673
|
+
const i = _i(Ht(t), r);
|
|
2674
|
+
if (i != null && i.set)
|
|
2675
|
+
return i.set.call(t.draft_, n), !0;
|
|
2695
2676
|
if (!t.modified_) {
|
|
2696
|
-
const s =
|
|
2677
|
+
const s = ln(Ht(t), r), c = s == null ? void 0 : s[ut];
|
|
2697
2678
|
if (c && c.base_ === n)
|
|
2698
2679
|
return t.copy_[r] = n, t.assigned_[r] = !1, !0;
|
|
2699
|
-
if (
|
|
2680
|
+
if (_a(n, s) && (n !== void 0 || Re(t.base_, r)))
|
|
2700
2681
|
return !0;
|
|
2701
|
-
|
|
2682
|
+
fn(t), Sn(t);
|
|
2702
2683
|
}
|
|
2703
2684
|
return t.copy_[r] === n && // special case: handle new props with value 'undefined'
|
|
2704
2685
|
(n !== void 0 || r in t.copy_) || // special case: NaN
|
|
2705
2686
|
Number.isNaN(n) && Number.isNaN(t.copy_[r]) || (t.copy_[r] = n, t.assigned_[r] = !0), !0;
|
|
2706
2687
|
},
|
|
2707
2688
|
deleteProperty(t, r) {
|
|
2708
|
-
return
|
|
2689
|
+
return ln(t.base_, r) !== void 0 || r in t.base_ ? (t.assigned_[r] = !1, fn(t), Sn(t)) : delete t.assigned_[r], t.copy_ && delete t.copy_[r], !0;
|
|
2709
2690
|
},
|
|
2710
2691
|
// Note: We never coerce `desc.value` into an Immer draft, because we can't make
|
|
2711
2692
|
// the same guarantee in ES5 mode.
|
|
2712
2693
|
getOwnPropertyDescriptor(t, r) {
|
|
2713
|
-
const n =
|
|
2714
|
-
return
|
|
2694
|
+
const n = Ht(t), i = Reflect.getOwnPropertyDescriptor(n, r);
|
|
2695
|
+
return i && {
|
|
2715
2696
|
writable: !0,
|
|
2716
2697
|
configurable: t.type_ !== 1 || r !== "length",
|
|
2717
|
-
enumerable:
|
|
2698
|
+
enumerable: i.enumerable,
|
|
2718
2699
|
value: n[r]
|
|
2719
2700
|
};
|
|
2720
2701
|
},
|
|
@@ -2722,105 +2703,105 @@ var Cn = {
|
|
|
2722
2703
|
B(11);
|
|
2723
2704
|
},
|
|
2724
2705
|
getPrototypeOf(t) {
|
|
2725
|
-
return
|
|
2706
|
+
return zt(t.base_);
|
|
2726
2707
|
},
|
|
2727
2708
|
setPrototypeOf() {
|
|
2728
2709
|
B(12);
|
|
2729
2710
|
}
|
|
2730
|
-
},
|
|
2731
|
-
|
|
2732
|
-
|
|
2711
|
+
}, Fe = {};
|
|
2712
|
+
Ce(Dn, (t, r) => {
|
|
2713
|
+
Fe[t] = function() {
|
|
2733
2714
|
return arguments[0] = arguments[0][0], r.apply(this, arguments);
|
|
2734
2715
|
};
|
|
2735
2716
|
});
|
|
2736
|
-
|
|
2737
|
-
return process.env.NODE_ENV !== "production" && isNaN(parseInt(r)) && B(13),
|
|
2717
|
+
Fe.deleteProperty = function(t, r) {
|
|
2718
|
+
return process.env.NODE_ENV !== "production" && isNaN(parseInt(r)) && B(13), Fe.set.call(this, t, r, void 0);
|
|
2738
2719
|
};
|
|
2739
|
-
|
|
2740
|
-
return process.env.NODE_ENV !== "production" && r !== "length" && isNaN(parseInt(r)) && B(14),
|
|
2720
|
+
Fe.set = function(t, r, n) {
|
|
2721
|
+
return process.env.NODE_ENV !== "production" && r !== "length" && isNaN(parseInt(r)) && B(14), Dn.set.call(this, t[0], r, n, t[0]);
|
|
2741
2722
|
};
|
|
2742
|
-
function
|
|
2723
|
+
function ln(t, r) {
|
|
2743
2724
|
const n = t[ut];
|
|
2744
|
-
return (n ?
|
|
2725
|
+
return (n ? Ht(n) : t)[r];
|
|
2745
2726
|
}
|
|
2746
|
-
function
|
|
2727
|
+
function Sa(t, r, n) {
|
|
2747
2728
|
var s;
|
|
2748
|
-
const
|
|
2749
|
-
return
|
|
2729
|
+
const i = _i(r, n);
|
|
2730
|
+
return i ? "value" in i ? i.value : (
|
|
2750
2731
|
// This is a very special case, if the prop is a getter defined by the
|
|
2751
2732
|
// prototype, we should invoke it with the draft as context!
|
|
2752
|
-
(s =
|
|
2733
|
+
(s = i.get) == null ? void 0 : s.call(t.draft_)
|
|
2753
2734
|
) : void 0;
|
|
2754
2735
|
}
|
|
2755
|
-
function
|
|
2736
|
+
function _i(t, r) {
|
|
2756
2737
|
if (!(r in t))
|
|
2757
2738
|
return;
|
|
2758
|
-
let n =
|
|
2739
|
+
let n = zt(t);
|
|
2759
2740
|
for (; n; ) {
|
|
2760
|
-
const
|
|
2761
|
-
if (
|
|
2762
|
-
return
|
|
2763
|
-
n =
|
|
2741
|
+
const i = Object.getOwnPropertyDescriptor(n, r);
|
|
2742
|
+
if (i)
|
|
2743
|
+
return i;
|
|
2744
|
+
n = zt(n);
|
|
2764
2745
|
}
|
|
2765
2746
|
}
|
|
2766
|
-
function
|
|
2767
|
-
t.modified_ || (t.modified_ = !0, t.parent_ &&
|
|
2747
|
+
function Sn(t) {
|
|
2748
|
+
t.modified_ || (t.modified_ = !0, t.parent_ && Sn(t.parent_));
|
|
2768
2749
|
}
|
|
2769
|
-
function
|
|
2770
|
-
t.copy_ || (t.copy_ =
|
|
2750
|
+
function fn(t) {
|
|
2751
|
+
t.copy_ || (t.copy_ = gn(
|
|
2771
2752
|
t.base_,
|
|
2772
2753
|
t.scope_.immer_.useStrictShallowCopy_
|
|
2773
2754
|
));
|
|
2774
2755
|
}
|
|
2775
|
-
var
|
|
2756
|
+
var Ta = class {
|
|
2776
2757
|
constructor(t) {
|
|
2777
|
-
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.produce = (r, n,
|
|
2758
|
+
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.produce = (r, n, i) => {
|
|
2778
2759
|
if (typeof r == "function" && typeof n != "function") {
|
|
2779
2760
|
const c = n;
|
|
2780
2761
|
n = r;
|
|
2781
2762
|
const d = this;
|
|
2782
|
-
return function(
|
|
2783
|
-
return d.produce(
|
|
2763
|
+
return function(w = c, ...R) {
|
|
2764
|
+
return d.produce(w, (S) => n.call(this, S, ...R));
|
|
2784
2765
|
};
|
|
2785
2766
|
}
|
|
2786
|
-
typeof n != "function" && B(6),
|
|
2767
|
+
typeof n != "function" && B(6), i !== void 0 && typeof i != "function" && B(7);
|
|
2787
2768
|
let s;
|
|
2788
2769
|
if (Mt(r)) {
|
|
2789
|
-
const c =
|
|
2770
|
+
const c = jn(this), d = Tn(r, void 0);
|
|
2790
2771
|
let y = !0;
|
|
2791
2772
|
try {
|
|
2792
2773
|
s = n(d), y = !1;
|
|
2793
2774
|
} finally {
|
|
2794
|
-
y ?
|
|
2775
|
+
y ? vn(c) : En(c);
|
|
2795
2776
|
}
|
|
2796
|
-
return
|
|
2777
|
+
return Hn(c, i), zn(s, c);
|
|
2797
2778
|
} else if (!r || typeof r != "object") {
|
|
2798
|
-
if (s = n(r), s === void 0 && (s = r), s ===
|
|
2779
|
+
if (s = n(r), s === void 0 && (s = r), s === kn && (s = void 0), this.autoFreeze_ && An(s, !0), i) {
|
|
2799
2780
|
const c = [], d = [];
|
|
2800
|
-
|
|
2781
|
+
Yt("Patches").generateReplacementPatches_(r, s, c, d), i(c, d);
|
|
2801
2782
|
}
|
|
2802
2783
|
return s;
|
|
2803
2784
|
} else
|
|
2804
2785
|
B(1, r);
|
|
2805
2786
|
}, this.produceWithPatches = (r, n) => {
|
|
2806
2787
|
if (typeof r == "function")
|
|
2807
|
-
return (d, ...y) => this.produceWithPatches(d, (
|
|
2808
|
-
let
|
|
2788
|
+
return (d, ...y) => this.produceWithPatches(d, (w) => r(w, ...y));
|
|
2789
|
+
let i, s;
|
|
2809
2790
|
return [this.produce(r, n, (d, y) => {
|
|
2810
|
-
|
|
2811
|
-
}),
|
|
2791
|
+
i = d, s = y;
|
|
2792
|
+
}), i, s];
|
|
2812
2793
|
}, typeof (t == null ? void 0 : t.autoFreeze) == "boolean" && this.setAutoFreeze(t.autoFreeze), typeof (t == null ? void 0 : t.useStrictShallowCopy) == "boolean" && this.setUseStrictShallowCopy(t.useStrictShallowCopy);
|
|
2813
2794
|
}
|
|
2814
2795
|
createDraft(t) {
|
|
2815
|
-
Mt(t) || B(8),
|
|
2816
|
-
const r =
|
|
2817
|
-
return n[ut].isManual_ = !0,
|
|
2796
|
+
Mt(t) || B(8), Ut(t) && (t = wa(t));
|
|
2797
|
+
const r = jn(this), n = Tn(t, void 0);
|
|
2798
|
+
return n[ut].isManual_ = !0, En(r), n;
|
|
2818
2799
|
}
|
|
2819
2800
|
finishDraft(t, r) {
|
|
2820
2801
|
const n = t && t[ut];
|
|
2821
2802
|
(!n || !n.isManual_) && B(9);
|
|
2822
|
-
const { scope_:
|
|
2823
|
-
return
|
|
2803
|
+
const { scope_: i } = n;
|
|
2804
|
+
return Hn(i, r), zn(void 0, i);
|
|
2824
2805
|
}
|
|
2825
2806
|
/**
|
|
2826
2807
|
* Pass true to automatically freeze all copies created by Immer.
|
|
@@ -2848,37 +2829,37 @@ var Ti = class {
|
|
|
2848
2829
|
}
|
|
2849
2830
|
}
|
|
2850
2831
|
n > -1 && (r = r.slice(n + 1));
|
|
2851
|
-
const
|
|
2852
|
-
return
|
|
2832
|
+
const i = Yt("Patches").applyPatches_;
|
|
2833
|
+
return Ut(t) ? i(t, r) : this.produce(
|
|
2853
2834
|
t,
|
|
2854
|
-
(s) =>
|
|
2835
|
+
(s) => i(s, r)
|
|
2855
2836
|
);
|
|
2856
2837
|
}
|
|
2857
2838
|
};
|
|
2858
|
-
function
|
|
2859
|
-
const n =
|
|
2860
|
-
return (r ? r.scope_ :
|
|
2839
|
+
function Tn(t, r) {
|
|
2840
|
+
const n = He(t) ? Yt("MapSet").proxyMap_(t, r) : je(t) ? Yt("MapSet").proxySet_(t, r) : Ea(t, r);
|
|
2841
|
+
return (r ? r.scope_ : yi()).drafts_.push(n), n;
|
|
2861
2842
|
}
|
|
2862
|
-
function
|
|
2863
|
-
return
|
|
2843
|
+
function wa(t) {
|
|
2844
|
+
return Ut(t) || B(10, t), Ii(t);
|
|
2864
2845
|
}
|
|
2865
|
-
function
|
|
2866
|
-
if (!Mt(t) ||
|
|
2846
|
+
function Ii(t) {
|
|
2847
|
+
if (!Mt(t) || Ir(t))
|
|
2867
2848
|
return t;
|
|
2868
2849
|
const r = t[ut];
|
|
2869
2850
|
let n;
|
|
2870
2851
|
if (r) {
|
|
2871
2852
|
if (!r.modified_)
|
|
2872
2853
|
return r.base_;
|
|
2873
|
-
r.finalized_ = !0, n =
|
|
2854
|
+
r.finalized_ = !0, n = gn(t, r.scope_.immer_.useStrictShallowCopy_);
|
|
2874
2855
|
} else
|
|
2875
|
-
n =
|
|
2876
|
-
return
|
|
2877
|
-
|
|
2856
|
+
n = gn(t, !0);
|
|
2857
|
+
return Ce(n, (i, s) => {
|
|
2858
|
+
mi(n, i, Ii(s));
|
|
2878
2859
|
}), r && (r.finalized_ = !1), n;
|
|
2879
2860
|
}
|
|
2880
|
-
function
|
|
2881
|
-
process.env.NODE_ENV !== "production" &&
|
|
2861
|
+
function Gn() {
|
|
2862
|
+
process.env.NODE_ENV !== "production" && pi.push(
|
|
2882
2863
|
'Sets cannot have "replace" patches.',
|
|
2883
2864
|
function(_) {
|
|
2884
2865
|
return "Unsupported patch operation: " + _;
|
|
@@ -2888,7 +2869,7 @@ function Kn() {
|
|
|
2888
2869
|
},
|
|
2889
2870
|
"Patching reserved attributes like __proto__, prototype and constructor is not allowed"
|
|
2890
2871
|
);
|
|
2891
|
-
const r = "replace", n = "add",
|
|
2872
|
+
const r = "replace", n = "add", i = "remove";
|
|
2892
2873
|
function s(_, f, l, p) {
|
|
2893
2874
|
switch (_.type_) {
|
|
2894
2875
|
case 0:
|
|
@@ -2911,179 +2892,179 @@ function Kn() {
|
|
|
2911
2892
|
}
|
|
2912
2893
|
}
|
|
2913
2894
|
function c(_, f, l, p) {
|
|
2914
|
-
let { base_: I, assigned_:
|
|
2915
|
-
|
|
2916
|
-
for (let
|
|
2917
|
-
if (
|
|
2918
|
-
const
|
|
2895
|
+
let { base_: I, assigned_: b } = _, g = _.copy_;
|
|
2896
|
+
g.length < I.length && ([I, g] = [g, I], [l, p] = [p, l]);
|
|
2897
|
+
for (let m = 0; m < I.length; m++)
|
|
2898
|
+
if (b[m] && g[m] !== I[m]) {
|
|
2899
|
+
const h = f.concat([m]);
|
|
2919
2900
|
l.push({
|
|
2920
2901
|
op: r,
|
|
2921
|
-
path:
|
|
2902
|
+
path: h,
|
|
2922
2903
|
// Need to maybe clone it, as it can in fact be the original value
|
|
2923
2904
|
// due to the base/copy inversion at the start of this function
|
|
2924
|
-
value:
|
|
2905
|
+
value: N(g[m])
|
|
2925
2906
|
}), p.push({
|
|
2926
2907
|
op: r,
|
|
2927
|
-
path:
|
|
2928
|
-
value:
|
|
2908
|
+
path: h,
|
|
2909
|
+
value: N(I[m])
|
|
2929
2910
|
});
|
|
2930
2911
|
}
|
|
2931
|
-
for (let
|
|
2932
|
-
const
|
|
2912
|
+
for (let m = I.length; m < g.length; m++) {
|
|
2913
|
+
const h = f.concat([m]);
|
|
2933
2914
|
l.push({
|
|
2934
2915
|
op: n,
|
|
2935
|
-
path:
|
|
2916
|
+
path: h,
|
|
2936
2917
|
// Need to maybe clone it, as it can in fact be the original value
|
|
2937
2918
|
// due to the base/copy inversion at the start of this function
|
|
2938
|
-
value:
|
|
2919
|
+
value: N(g[m])
|
|
2939
2920
|
});
|
|
2940
2921
|
}
|
|
2941
|
-
for (let
|
|
2942
|
-
const
|
|
2922
|
+
for (let m = g.length - 1; I.length <= m; --m) {
|
|
2923
|
+
const h = f.concat([m]);
|
|
2943
2924
|
p.push({
|
|
2944
|
-
op:
|
|
2945
|
-
path:
|
|
2925
|
+
op: i,
|
|
2926
|
+
path: h
|
|
2946
2927
|
});
|
|
2947
2928
|
}
|
|
2948
2929
|
}
|
|
2949
2930
|
function d(_, f, l, p) {
|
|
2950
|
-
const { base_: I, copy_:
|
|
2951
|
-
|
|
2952
|
-
const
|
|
2953
|
-
if (
|
|
2931
|
+
const { base_: I, copy_: b } = _;
|
|
2932
|
+
Ce(_.assigned_, (g, m) => {
|
|
2933
|
+
const h = un(I, g), T = un(b, g), D = m ? Re(I, g) ? r : n : i;
|
|
2934
|
+
if (h === T && D === r)
|
|
2954
2935
|
return;
|
|
2955
|
-
const
|
|
2956
|
-
l.push(
|
|
2957
|
-
|
|
2936
|
+
const k = f.concat(g);
|
|
2937
|
+
l.push(D === i ? { op: D, path: k } : { op: D, path: k, value: T }), p.push(
|
|
2938
|
+
D === n ? { op: i, path: k } : D === i ? { op: n, path: k, value: N(h) } : { op: r, path: k, value: N(h) }
|
|
2958
2939
|
);
|
|
2959
2940
|
});
|
|
2960
2941
|
}
|
|
2961
2942
|
function y(_, f, l, p) {
|
|
2962
|
-
let { base_: I, copy_:
|
|
2963
|
-
I.forEach((
|
|
2964
|
-
if (!
|
|
2965
|
-
const
|
|
2943
|
+
let { base_: I, copy_: b } = _, g = 0;
|
|
2944
|
+
I.forEach((m) => {
|
|
2945
|
+
if (!b.has(m)) {
|
|
2946
|
+
const h = f.concat([g]);
|
|
2966
2947
|
l.push({
|
|
2967
|
-
op:
|
|
2968
|
-
path:
|
|
2969
|
-
value:
|
|
2948
|
+
op: i,
|
|
2949
|
+
path: h,
|
|
2950
|
+
value: m
|
|
2970
2951
|
}), p.unshift({
|
|
2971
2952
|
op: n,
|
|
2972
|
-
path:
|
|
2973
|
-
value:
|
|
2953
|
+
path: h,
|
|
2954
|
+
value: m
|
|
2974
2955
|
});
|
|
2975
2956
|
}
|
|
2976
|
-
|
|
2977
|
-
}),
|
|
2978
|
-
if (!I.has(
|
|
2979
|
-
const
|
|
2957
|
+
g++;
|
|
2958
|
+
}), g = 0, b.forEach((m) => {
|
|
2959
|
+
if (!I.has(m)) {
|
|
2960
|
+
const h = f.concat([g]);
|
|
2980
2961
|
l.push({
|
|
2981
2962
|
op: n,
|
|
2982
|
-
path:
|
|
2983
|
-
value:
|
|
2963
|
+
path: h,
|
|
2964
|
+
value: m
|
|
2984
2965
|
}), p.unshift({
|
|
2985
|
-
op:
|
|
2986
|
-
path:
|
|
2987
|
-
value:
|
|
2966
|
+
op: i,
|
|
2967
|
+
path: h,
|
|
2968
|
+
value: m
|
|
2988
2969
|
});
|
|
2989
2970
|
}
|
|
2990
|
-
|
|
2971
|
+
g++;
|
|
2991
2972
|
});
|
|
2992
2973
|
}
|
|
2993
|
-
function
|
|
2974
|
+
function w(_, f, l, p) {
|
|
2994
2975
|
l.push({
|
|
2995
2976
|
op: r,
|
|
2996
2977
|
path: [],
|
|
2997
|
-
value: f ===
|
|
2978
|
+
value: f === kn ? void 0 : f
|
|
2998
2979
|
}), p.push({
|
|
2999
2980
|
op: r,
|
|
3000
2981
|
path: [],
|
|
3001
2982
|
value: _
|
|
3002
2983
|
});
|
|
3003
2984
|
}
|
|
3004
|
-
function
|
|
2985
|
+
function R(_, f) {
|
|
3005
2986
|
return f.forEach((l) => {
|
|
3006
2987
|
const { path: p, op: I } = l;
|
|
3007
|
-
let
|
|
3008
|
-
for (let
|
|
3009
|
-
const
|
|
3010
|
-
let
|
|
3011
|
-
typeof
|
|
2988
|
+
let b = _;
|
|
2989
|
+
for (let T = 0; T < p.length - 1; T++) {
|
|
2990
|
+
const D = Gt(b);
|
|
2991
|
+
let k = p[T];
|
|
2992
|
+
typeof k != "string" && typeof k != "number" && (k = "" + k), (D === 0 || D === 1) && (k === "__proto__" || k === "constructor") && B(19), typeof b == "function" && k === "prototype" && B(19), b = un(b, k), typeof b != "object" && B(18, p.join("/"));
|
|
3012
2993
|
}
|
|
3013
|
-
const
|
|
2994
|
+
const g = Gt(b), m = S(l.value), h = p[p.length - 1];
|
|
3014
2995
|
switch (I) {
|
|
3015
2996
|
case r:
|
|
3016
|
-
switch (
|
|
2997
|
+
switch (g) {
|
|
3017
2998
|
case 2:
|
|
3018
|
-
return
|
|
2999
|
+
return b.set(h, m);
|
|
3019
3000
|
case 3:
|
|
3020
3001
|
B(16);
|
|
3021
3002
|
default:
|
|
3022
|
-
return
|
|
3003
|
+
return b[h] = m;
|
|
3023
3004
|
}
|
|
3024
3005
|
case n:
|
|
3025
|
-
switch (
|
|
3006
|
+
switch (g) {
|
|
3026
3007
|
case 1:
|
|
3027
|
-
return
|
|
3008
|
+
return h === "-" ? b.push(m) : b.splice(h, 0, m);
|
|
3028
3009
|
case 2:
|
|
3029
|
-
return
|
|
3010
|
+
return b.set(h, m);
|
|
3030
3011
|
case 3:
|
|
3031
|
-
return
|
|
3012
|
+
return b.add(m);
|
|
3032
3013
|
default:
|
|
3033
|
-
return
|
|
3014
|
+
return b[h] = m;
|
|
3034
3015
|
}
|
|
3035
|
-
case
|
|
3036
|
-
switch (
|
|
3016
|
+
case i:
|
|
3017
|
+
switch (g) {
|
|
3037
3018
|
case 1:
|
|
3038
|
-
return
|
|
3019
|
+
return b.splice(h, 1);
|
|
3039
3020
|
case 2:
|
|
3040
|
-
return
|
|
3021
|
+
return b.delete(h);
|
|
3041
3022
|
case 3:
|
|
3042
|
-
return
|
|
3023
|
+
return b.delete(l.value);
|
|
3043
3024
|
default:
|
|
3044
|
-
return delete
|
|
3025
|
+
return delete b[h];
|
|
3045
3026
|
}
|
|
3046
3027
|
default:
|
|
3047
3028
|
B(17, I);
|
|
3048
3029
|
}
|
|
3049
3030
|
}), _;
|
|
3050
3031
|
}
|
|
3051
|
-
function
|
|
3032
|
+
function S(_) {
|
|
3052
3033
|
if (!Mt(_))
|
|
3053
3034
|
return _;
|
|
3054
3035
|
if (Array.isArray(_))
|
|
3055
|
-
return _.map(
|
|
3056
|
-
if (
|
|
3036
|
+
return _.map(S);
|
|
3037
|
+
if (He(_))
|
|
3057
3038
|
return new Map(
|
|
3058
|
-
Array.from(_.entries()).map(([l, p]) => [l,
|
|
3039
|
+
Array.from(_.entries()).map(([l, p]) => [l, S(p)])
|
|
3059
3040
|
);
|
|
3060
|
-
if (
|
|
3061
|
-
return new Set(Array.from(_).map(
|
|
3062
|
-
const f = Object.create(
|
|
3041
|
+
if (je(_))
|
|
3042
|
+
return new Set(Array.from(_).map(S));
|
|
3043
|
+
const f = Object.create(zt(_));
|
|
3063
3044
|
for (const l in _)
|
|
3064
|
-
f[l] =
|
|
3065
|
-
return
|
|
3045
|
+
f[l] = S(_[l]);
|
|
3046
|
+
return Re(_, Pe) && (f[Pe] = _[Pe]), f;
|
|
3066
3047
|
}
|
|
3067
|
-
function
|
|
3068
|
-
return
|
|
3048
|
+
function N(_) {
|
|
3049
|
+
return Ut(_) ? S(_) : _;
|
|
3069
3050
|
}
|
|
3070
|
-
|
|
3071
|
-
applyPatches_:
|
|
3051
|
+
ga("Patches", {
|
|
3052
|
+
applyPatches_: R,
|
|
3072
3053
|
generatePatches_: s,
|
|
3073
|
-
generateReplacementPatches_:
|
|
3054
|
+
generateReplacementPatches_: w
|
|
3074
3055
|
});
|
|
3075
3056
|
}
|
|
3076
|
-
var lt = new
|
|
3057
|
+
var lt = new Ta(), ka = lt.produce;
|
|
3077
3058
|
lt.produceWithPatches.bind(
|
|
3078
3059
|
lt
|
|
3079
3060
|
);
|
|
3080
3061
|
lt.setAutoFreeze.bind(lt);
|
|
3081
3062
|
lt.setUseStrictShallowCopy.bind(lt);
|
|
3082
|
-
var
|
|
3063
|
+
var Aa = lt.applyPatches.bind(lt);
|
|
3083
3064
|
lt.createDraft.bind(lt);
|
|
3084
3065
|
lt.finishDraft.bind(lt);
|
|
3085
|
-
var
|
|
3086
|
-
function $
|
|
3066
|
+
var Da = 1 / 0, Ma = 9007199254740991, Oa = "[object Arguments]", xa = "[object Function]", Pa = "[object GeneratorFunction]", Ca = "[object Symbol]", Ra = typeof pt == "object" && pt && pt.Object === Object && pt, La = typeof self == "object" && self && self.Object === Object && self, Fa = Ra || La || Function("return this")();
|
|
3067
|
+
function $a(t, r, n) {
|
|
3087
3068
|
switch (n.length) {
|
|
3088
3069
|
case 0:
|
|
3089
3070
|
return t.call(r);
|
|
@@ -3096,91 +3077,91 @@ function $i(t, r, n) {
|
|
|
3096
3077
|
}
|
|
3097
3078
|
return t.apply(r, n);
|
|
3098
3079
|
}
|
|
3099
|
-
function
|
|
3100
|
-
for (var n = -1,
|
|
3080
|
+
function Na(t, r) {
|
|
3081
|
+
for (var n = -1, i = t ? t.length : 0, s = Array(i); ++n < i; )
|
|
3101
3082
|
s[n] = r(t[n], n, t);
|
|
3102
3083
|
return s;
|
|
3103
3084
|
}
|
|
3104
|
-
function
|
|
3105
|
-
for (var n = -1,
|
|
3085
|
+
function Ha(t, r) {
|
|
3086
|
+
for (var n = -1, i = r.length, s = t.length; ++n < i; )
|
|
3106
3087
|
t[s + n] = r[n];
|
|
3107
3088
|
return t;
|
|
3108
3089
|
}
|
|
3109
|
-
var
|
|
3110
|
-
function
|
|
3090
|
+
var Mn = Object.prototype, ja = Mn.hasOwnProperty, On = Mn.toString, Yn = Fa.Symbol, za = Mn.propertyIsEnumerable, Wn = Yn ? Yn.isConcatSpreadable : void 0, Xn = Math.max;
|
|
3091
|
+
function Ua(t, r, n, i, s) {
|
|
3111
3092
|
var c = -1, d = t.length;
|
|
3112
|
-
for (n || (n =
|
|
3093
|
+
for (n || (n = Xa), s || (s = []); ++c < d; ) {
|
|
3113
3094
|
var y = t[c];
|
|
3114
|
-
n(y) ?
|
|
3095
|
+
n(y) ? Ha(s, y) : s[s.length] = y;
|
|
3115
3096
|
}
|
|
3116
3097
|
return s;
|
|
3117
3098
|
}
|
|
3118
|
-
function
|
|
3119
|
-
return t = Object(t),
|
|
3120
|
-
return
|
|
3099
|
+
function Ga(t, r) {
|
|
3100
|
+
return t = Object(t), Ya(t, r, function(n, i) {
|
|
3101
|
+
return i in t;
|
|
3121
3102
|
});
|
|
3122
3103
|
}
|
|
3123
|
-
function
|
|
3124
|
-
for (var
|
|
3125
|
-
var d = r[
|
|
3104
|
+
function Ya(t, r, n) {
|
|
3105
|
+
for (var i = -1, s = r.length, c = {}; ++i < s; ) {
|
|
3106
|
+
var d = r[i], y = t[d];
|
|
3126
3107
|
n(y, d) && (c[d] = y);
|
|
3127
3108
|
}
|
|
3128
3109
|
return c;
|
|
3129
3110
|
}
|
|
3130
|
-
function
|
|
3131
|
-
return r =
|
|
3132
|
-
for (var n = arguments,
|
|
3133
|
-
c[
|
|
3134
|
-
|
|
3135
|
-
for (var d = Array(r + 1); ++
|
|
3136
|
-
d[
|
|
3137
|
-
return d[r] = c, $
|
|
3111
|
+
function Wa(t, r) {
|
|
3112
|
+
return r = Xn(r === void 0 ? t.length - 1 : r, 0), function() {
|
|
3113
|
+
for (var n = arguments, i = -1, s = Xn(n.length - r, 0), c = Array(s); ++i < s; )
|
|
3114
|
+
c[i] = n[r + i];
|
|
3115
|
+
i = -1;
|
|
3116
|
+
for (var d = Array(r + 1); ++i < r; )
|
|
3117
|
+
d[i] = n[i];
|
|
3118
|
+
return d[r] = c, $a(t, this, d);
|
|
3138
3119
|
};
|
|
3139
3120
|
}
|
|
3140
|
-
function
|
|
3141
|
-
return
|
|
3121
|
+
function Xa(t) {
|
|
3122
|
+
return Va(t) || Ka(t) || !!(Wn && t && t[Wn]);
|
|
3142
3123
|
}
|
|
3143
|
-
function
|
|
3124
|
+
function Ba(t) {
|
|
3144
3125
|
if (typeof t == "string" || es(t))
|
|
3145
3126
|
return t;
|
|
3146
3127
|
var r = t + "";
|
|
3147
|
-
return r == "0" && 1 / t == -
|
|
3128
|
+
return r == "0" && 1 / t == -Da ? "-0" : r;
|
|
3148
3129
|
}
|
|
3149
|
-
function
|
|
3150
|
-
return
|
|
3130
|
+
function Ka(t) {
|
|
3131
|
+
return Za(t) && ja.call(t, "callee") && (!za.call(t, "callee") || On.call(t) == Oa);
|
|
3151
3132
|
}
|
|
3152
|
-
var
|
|
3153
|
-
function
|
|
3154
|
-
return t != null &&
|
|
3133
|
+
var Va = Array.isArray;
|
|
3134
|
+
function Ja(t) {
|
|
3135
|
+
return t != null && Qa(t.length) && !qa(t);
|
|
3155
3136
|
}
|
|
3156
|
-
function
|
|
3157
|
-
return
|
|
3137
|
+
function Za(t) {
|
|
3138
|
+
return gi(t) && Ja(t);
|
|
3158
3139
|
}
|
|
3159
|
-
function
|
|
3160
|
-
var r = ts(t) ?
|
|
3161
|
-
return r ==
|
|
3140
|
+
function qa(t) {
|
|
3141
|
+
var r = ts(t) ? On.call(t) : "";
|
|
3142
|
+
return r == xa || r == Pa;
|
|
3162
3143
|
}
|
|
3163
|
-
function
|
|
3164
|
-
return typeof t == "number" && t > -1 && t % 1 == 0 && t <=
|
|
3144
|
+
function Qa(t) {
|
|
3145
|
+
return typeof t == "number" && t > -1 && t % 1 == 0 && t <= Ma;
|
|
3165
3146
|
}
|
|
3166
3147
|
function ts(t) {
|
|
3167
3148
|
var r = typeof t;
|
|
3168
3149
|
return !!t && (r == "object" || r == "function");
|
|
3169
3150
|
}
|
|
3170
|
-
function
|
|
3151
|
+
function gi(t) {
|
|
3171
3152
|
return !!t && typeof t == "object";
|
|
3172
3153
|
}
|
|
3173
3154
|
function es(t) {
|
|
3174
|
-
return typeof t == "symbol" ||
|
|
3155
|
+
return typeof t == "symbol" || gi(t) && On.call(t) == Ca;
|
|
3175
3156
|
}
|
|
3176
|
-
var rs =
|
|
3177
|
-
return t == null ? {} :
|
|
3157
|
+
var rs = Wa(function(t, r) {
|
|
3158
|
+
return t == null ? {} : Ga(t, Na(Ua(r), Ba));
|
|
3178
3159
|
}), ns = rs;
|
|
3179
|
-
const
|
|
3160
|
+
const Bn = /* @__PURE__ */ wn(ns), is = {
|
|
3180
3161
|
width: 1080,
|
|
3181
3162
|
height: 1920
|
|
3182
|
-
},
|
|
3183
|
-
size:
|
|
3163
|
+
}, as = {
|
|
3164
|
+
size: is,
|
|
3184
3165
|
tracks: [],
|
|
3185
3166
|
trackItemIds: [],
|
|
3186
3167
|
trackItemsMap: {},
|
|
@@ -3196,7 +3177,7 @@ const qn = /* @__PURE__ */ Mn(ns), as = {
|
|
|
3196
3177
|
activeIds: [],
|
|
3197
3178
|
trackItemDetailsMap: {},
|
|
3198
3179
|
structure: []
|
|
3199
|
-
},
|
|
3180
|
+
}, Kn = [
|
|
3200
3181
|
"tracks",
|
|
3201
3182
|
"trackItemsMap",
|
|
3202
3183
|
"trackItemDetailsMap",
|
|
@@ -3206,20 +3187,20 @@ const qn = /* @__PURE__ */ Mn(ns), as = {
|
|
|
3206
3187
|
];
|
|
3207
3188
|
class hs {
|
|
3208
3189
|
constructor(r) {
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
const n = r ||
|
|
3216
|
-
this.stateSubject = new
|
|
3190
|
+
Nt(this, "stateSubject");
|
|
3191
|
+
Nt(this, "stateHistorySubject");
|
|
3192
|
+
Nt(this, "prevState");
|
|
3193
|
+
Nt(this, "undos", []);
|
|
3194
|
+
Nt(this, "redos", []);
|
|
3195
|
+
Nt(this, "listener");
|
|
3196
|
+
const n = r || as;
|
|
3197
|
+
this.stateSubject = new Nn(n), this.stateHistorySubject = new Nn({
|
|
3217
3198
|
handleRedo: !1,
|
|
3218
3199
|
handleUndo: !1
|
|
3219
3200
|
}), this.prevState = n, this.initListeners();
|
|
3220
3201
|
}
|
|
3221
3202
|
initListeners() {
|
|
3222
|
-
|
|
3203
|
+
ha(this);
|
|
3223
3204
|
}
|
|
3224
3205
|
destroyListeners() {
|
|
3225
3206
|
this.listener && this.listener.unsubscribe();
|
|
@@ -3228,7 +3209,7 @@ class hs {
|
|
|
3228
3209
|
this.destroyListeners();
|
|
3229
3210
|
}
|
|
3230
3211
|
updateHistory(r, n) {
|
|
3231
|
-
const
|
|
3212
|
+
const i = Bn(r, Kn), s = Bn(this.getState(), Kn), c = di(s, i);
|
|
3232
3213
|
c.length && (this.undos.push({ undos: c, type: n }), this.redos = []);
|
|
3233
3214
|
}
|
|
3234
3215
|
getStateHistory() {
|
|
@@ -3247,32 +3228,32 @@ class hs {
|
|
|
3247
3228
|
}
|
|
3248
3229
|
// Update the state, emitting only if the part of the state has changed
|
|
3249
3230
|
updateState(r, n = { updateHistory: !1 }) {
|
|
3250
|
-
const
|
|
3251
|
-
...
|
|
3231
|
+
const i = this.getState(), s = {
|
|
3232
|
+
...i,
|
|
3252
3233
|
...r
|
|
3253
3234
|
};
|
|
3254
|
-
|
|
3235
|
+
rt(i, s) || (n.updateHistory && this.updateHistory(s, n.kind), this.prevState = i, this.stateSubject.next(s));
|
|
3255
3236
|
}
|
|
3256
3237
|
// emit changes for design size
|
|
3257
3238
|
subscribeToSize(r) {
|
|
3258
3239
|
return this.stateSubject.asObservable().subscribe((n) => {
|
|
3259
|
-
|
|
3240
|
+
rt(n.size, this.prevState.size) || r({ size: n.size });
|
|
3260
3241
|
});
|
|
3261
3242
|
}
|
|
3262
3243
|
// Selectively subscribe to scale changes
|
|
3263
3244
|
subscribeToScale(r) {
|
|
3264
3245
|
return this.stateSubject.asObservable().subscribe((n) => {
|
|
3265
|
-
|
|
3246
|
+
rt(n.scale, this.prevState.scale) || r({ scale: n.scale });
|
|
3266
3247
|
});
|
|
3267
3248
|
}
|
|
3268
3249
|
subscribeToUpdateTrackItem(r) {
|
|
3269
3250
|
return this.stateSubject.asObservable().subscribe((n) => {
|
|
3270
|
-
|
|
3251
|
+
rt(n.trackItemsMap, this.prevState.trackItemsMap) || r({ trackItemsMap: n.trackItemsMap });
|
|
3271
3252
|
});
|
|
3272
3253
|
}
|
|
3273
3254
|
subscribeToUpdateItemDetails(r) {
|
|
3274
3255
|
return this.stateSubject.asObservable().subscribe((n) => {
|
|
3275
|
-
|
|
3256
|
+
rt(n.trackItemDetailsMap, this.prevState.trackItemDetailsMap) || r({ trackItemDetailsMap: n.trackItemDetailsMap });
|
|
3276
3257
|
});
|
|
3277
3258
|
}
|
|
3278
3259
|
// Selectively subscribe to duration changes
|
|
@@ -3284,33 +3265,33 @@ class hs {
|
|
|
3284
3265
|
subscribeToHistory(r) {
|
|
3285
3266
|
return this.stateHistorySubject.asObservable().subscribe((n) => {
|
|
3286
3267
|
if (n.handleRedo) {
|
|
3287
|
-
const
|
|
3288
|
-
|
|
3268
|
+
const i = this.undos[this.undos.length - 1].type;
|
|
3269
|
+
i === "update" && r({ ...this.getState(), type: i }), this.stateHistorySubject.next({ handleRedo: !1, handleUndo: !1 });
|
|
3289
3270
|
}
|
|
3290
3271
|
if (n.handleUndo) {
|
|
3291
|
-
const
|
|
3292
|
-
|
|
3272
|
+
const i = this.redos[this.redos.length - 1].type;
|
|
3273
|
+
i === "update" && r({ ...this.getState(), type: i }), this.stateHistorySubject.next({ handleRedo: !1, handleUndo: !1 });
|
|
3293
3274
|
}
|
|
3294
3275
|
});
|
|
3295
3276
|
}
|
|
3296
3277
|
subscribeToAddOrRemoveItems(r) {
|
|
3297
3278
|
return this.stateSubject.asObservable().subscribe((n) => {
|
|
3298
|
-
(!
|
|
3279
|
+
(!rt(n.trackItemIds, this.prevState.trackItemIds) || !rt(n.tracks, this.prevState.tracks)) && r({ trackItemIds: n.trackItemIds });
|
|
3299
3280
|
});
|
|
3300
3281
|
}
|
|
3301
3282
|
// Selectively subscribe to activeIds changes
|
|
3302
3283
|
subscribeToActiveIds(r) {
|
|
3303
3284
|
return this.stateSubject.asObservable().subscribe((n) => {
|
|
3304
|
-
|
|
3285
|
+
rt(n.activeIds, this.prevState.activeIds) || r({ activeIds: n.activeIds });
|
|
3305
3286
|
});
|
|
3306
3287
|
}
|
|
3307
3288
|
// Selectively subscribe to multiple track-related properties
|
|
3308
3289
|
subscribeToTracks(r) {
|
|
3309
3290
|
return this.stateSubject.asObservable().subscribe((n) => {
|
|
3310
|
-
(!
|
|
3291
|
+
(!rt(n.tracks, this.prevState.tracks) || !rt(n.trackItemIds, this.prevState.trackItemIds) || !rt(n.trackItemsMap, this.prevState.trackItemsMap) || !rt(n.transitionIds, this.prevState.transitionIds) || !rt(n.transitionsMap, this.prevState.transitionsMap) || !rt(
|
|
3311
3292
|
n.trackItemDetailsMap,
|
|
3312
3293
|
this.prevState.trackItemDetailsMap
|
|
3313
|
-
) || !
|
|
3294
|
+
) || !rt(n.structure, this.prevState.structure)) && r({
|
|
3314
3295
|
tracks: n.tracks,
|
|
3315
3296
|
trackItemIds: n.trackItemIds,
|
|
3316
3297
|
trackItemsMap: n.trackItemsMap,
|
|
@@ -3322,149 +3303,149 @@ class hs {
|
|
|
3322
3303
|
});
|
|
3323
3304
|
}
|
|
3324
3305
|
undo() {
|
|
3325
|
-
const r = this.undos.pop(), n = r == null ? void 0 : r.undos,
|
|
3326
|
-
if (!n || !
|
|
3327
|
-
|
|
3306
|
+
const r = this.undos.pop(), n = r == null ? void 0 : r.undos, i = r == null ? void 0 : r.type;
|
|
3307
|
+
if (!n || !i) return;
|
|
3308
|
+
Gn();
|
|
3328
3309
|
const {
|
|
3329
3310
|
trackItemDetailsMap: s,
|
|
3330
3311
|
trackItemIds: c,
|
|
3331
3312
|
tracks: d,
|
|
3332
3313
|
transitionIds: y,
|
|
3333
|
-
transitionsMap:
|
|
3334
|
-
trackItemsMap:
|
|
3335
|
-
} = this.getState(),
|
|
3314
|
+
transitionsMap: w,
|
|
3315
|
+
trackItemsMap: R
|
|
3316
|
+
} = this.getState(), S = tt({
|
|
3336
3317
|
trackItemDetailsMap: s,
|
|
3337
3318
|
trackItemIds: c,
|
|
3338
3319
|
tracks: d,
|
|
3339
3320
|
transitionIds: y,
|
|
3340
|
-
transitionsMap:
|
|
3341
|
-
trackItemsMap:
|
|
3342
|
-
}),
|
|
3343
|
-
n.forEach((
|
|
3344
|
-
let
|
|
3345
|
-
const
|
|
3346
|
-
|
|
3347
|
-
path:
|
|
3321
|
+
transitionsMap: w,
|
|
3322
|
+
trackItemsMap: R
|
|
3323
|
+
}), N = [], _ = [], f = [], l = [], p = [], I = [];
|
|
3324
|
+
n.forEach((A) => {
|
|
3325
|
+
let O;
|
|
3326
|
+
const z = A.path.slice(1);
|
|
3327
|
+
A.type === "CREATE" ? O = {
|
|
3328
|
+
path: z,
|
|
3348
3329
|
op: "remove",
|
|
3349
|
-
value:
|
|
3350
|
-
} :
|
|
3351
|
-
path:
|
|
3330
|
+
value: A.value
|
|
3331
|
+
} : A.type === "CHANGE" ? O = {
|
|
3332
|
+
path: z,
|
|
3352
3333
|
op: "replace",
|
|
3353
|
-
value:
|
|
3354
|
-
} :
|
|
3355
|
-
path:
|
|
3334
|
+
value: A.oldValue
|
|
3335
|
+
} : O = {
|
|
3336
|
+
path: z,
|
|
3356
3337
|
op: "add",
|
|
3357
|
-
value:
|
|
3358
|
-
},
|
|
3338
|
+
value: A.oldValue
|
|
3339
|
+
}, A.path.includes("trackItemIds") ? f.push(O) : A.path.includes("transitionIds") ? _.push(O) : A.path.includes("trackItemsMap") ? p.push(O) : A.path.includes("transitionsMap") ? l.push(O) : A.path.includes("tracks") ? N.push(O) : A.path.includes("trackItemDetailsMap") && I.push(O);
|
|
3359
3340
|
});
|
|
3360
|
-
const
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
),
|
|
3364
|
-
|
|
3341
|
+
const b = this.applyPatch(
|
|
3342
|
+
S.tracks,
|
|
3343
|
+
N
|
|
3344
|
+
), g = this.applyPatch(
|
|
3345
|
+
S.transitionIds,
|
|
3365
3346
|
_
|
|
3366
|
-
), h = this.applyPatch(
|
|
3367
|
-
T.trackItemIds,
|
|
3368
|
-
f
|
|
3369
3347
|
), m = this.applyPatch(
|
|
3370
|
-
|
|
3348
|
+
S.trackItemIds,
|
|
3349
|
+
f
|
|
3350
|
+
), h = this.applyPatch(
|
|
3351
|
+
S.transitionsMap,
|
|
3371
3352
|
l
|
|
3372
|
-
),
|
|
3373
|
-
|
|
3353
|
+
), T = this.applyPatch(
|
|
3354
|
+
S.trackItemsMap,
|
|
3374
3355
|
p
|
|
3375
|
-
),
|
|
3376
|
-
|
|
3356
|
+
), D = this.applyPatch(
|
|
3357
|
+
S.trackItemDetailsMap,
|
|
3377
3358
|
I
|
|
3378
|
-
),
|
|
3379
|
-
tracks:
|
|
3380
|
-
transitionIds:
|
|
3381
|
-
trackItemIds:
|
|
3382
|
-
transitionsMap:
|
|
3383
|
-
trackItemsMap:
|
|
3384
|
-
trackItemDetailsMap:
|
|
3385
|
-
}), x =
|
|
3386
|
-
this.prevState = x, this.redos.push({ redos: n, type:
|
|
3387
|
-
const
|
|
3388
|
-
this.stateSubject.next({ ...
|
|
3359
|
+
), k = tt({
|
|
3360
|
+
tracks: b,
|
|
3361
|
+
transitionIds: g,
|
|
3362
|
+
trackItemIds: m,
|
|
3363
|
+
transitionsMap: h,
|
|
3364
|
+
trackItemsMap: T,
|
|
3365
|
+
trackItemDetailsMap: D
|
|
3366
|
+
}), x = tt(this.getState()), C = { ...x, ...k };
|
|
3367
|
+
this.prevState = x, this.redos.push({ redos: n, type: i });
|
|
3368
|
+
const P = jt(C.trackItemsMap);
|
|
3369
|
+
this.stateSubject.next({ ...C, duration: P }), this.stateHistorySubject.next({ handleRedo: !1, handleUndo: !0 });
|
|
3389
3370
|
}
|
|
3390
3371
|
applyPatch(r, n) {
|
|
3391
|
-
return n.reverse().reduce((
|
|
3392
|
-
|
|
3372
|
+
return n.reverse().reduce((i, s) => ka(i, (c) => {
|
|
3373
|
+
Aa(c, [s]);
|
|
3393
3374
|
}), r);
|
|
3394
3375
|
}
|
|
3395
3376
|
redo() {
|
|
3396
|
-
const r = this.redos.pop(), n = r == null ? void 0 : r.redos,
|
|
3397
|
-
if (!n || !
|
|
3398
|
-
|
|
3377
|
+
const r = this.redos.pop(), n = r == null ? void 0 : r.redos, i = r == null ? void 0 : r.type;
|
|
3378
|
+
if (!n || !i) return;
|
|
3379
|
+
Gn();
|
|
3399
3380
|
const {
|
|
3400
3381
|
trackItemDetailsMap: s,
|
|
3401
3382
|
trackItemIds: c,
|
|
3402
3383
|
tracks: d,
|
|
3403
3384
|
transitionIds: y,
|
|
3404
|
-
transitionsMap:
|
|
3405
|
-
trackItemsMap:
|
|
3406
|
-
} = this.getState(),
|
|
3385
|
+
transitionsMap: w,
|
|
3386
|
+
trackItemsMap: R
|
|
3387
|
+
} = this.getState(), S = tt({
|
|
3407
3388
|
trackItemDetailsMap: s,
|
|
3408
3389
|
trackItemIds: c,
|
|
3409
3390
|
tracks: d,
|
|
3410
3391
|
transitionIds: y,
|
|
3411
|
-
transitionsMap:
|
|
3412
|
-
trackItemsMap:
|
|
3413
|
-
}),
|
|
3414
|
-
n.forEach((
|
|
3415
|
-
let
|
|
3416
|
-
const
|
|
3417
|
-
|
|
3418
|
-
path:
|
|
3392
|
+
transitionsMap: w,
|
|
3393
|
+
trackItemsMap: R
|
|
3394
|
+
}), N = [], _ = [], f = [], l = [], p = [], I = [];
|
|
3395
|
+
n.forEach((A) => {
|
|
3396
|
+
let O;
|
|
3397
|
+
const z = A.path.slice(1);
|
|
3398
|
+
A.type === "CREATE" ? O = {
|
|
3399
|
+
path: z,
|
|
3419
3400
|
op: "add",
|
|
3420
|
-
value:
|
|
3421
|
-
} :
|
|
3422
|
-
path:
|
|
3401
|
+
value: A.value
|
|
3402
|
+
} : A.type === "CHANGE" ? O = {
|
|
3403
|
+
path: z,
|
|
3423
3404
|
op: "replace",
|
|
3424
|
-
value:
|
|
3425
|
-
} :
|
|
3426
|
-
path:
|
|
3405
|
+
value: A.value
|
|
3406
|
+
} : O = {
|
|
3407
|
+
path: z,
|
|
3427
3408
|
op: "remove",
|
|
3428
|
-
value:
|
|
3429
|
-
},
|
|
3409
|
+
value: A.oldValue
|
|
3410
|
+
}, A.path.includes("trackItemIds") ? f.push(O) : A.path.includes("transitionIds") ? _.push(O) : A.path.includes("trackItemsMap") ? p.push(O) : A.path.includes("transitionsMap") ? l.push(O) : A.path.includes("trackItemDetailsMap") ? I.push(O) : N.push(O);
|
|
3430
3411
|
});
|
|
3431
|
-
const
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
),
|
|
3435
|
-
|
|
3412
|
+
const b = this.applyPatch(
|
|
3413
|
+
S.tracks,
|
|
3414
|
+
N
|
|
3415
|
+
), g = this.applyPatch(
|
|
3416
|
+
S.transitionIds,
|
|
3436
3417
|
_
|
|
3437
|
-
), h = this.applyPatch(
|
|
3438
|
-
T.trackItemIds,
|
|
3439
|
-
f
|
|
3440
3418
|
), m = this.applyPatch(
|
|
3441
|
-
|
|
3419
|
+
S.trackItemIds,
|
|
3420
|
+
f
|
|
3421
|
+
), h = this.applyPatch(
|
|
3422
|
+
S.transitionsMap,
|
|
3442
3423
|
l
|
|
3443
|
-
),
|
|
3444
|
-
|
|
3424
|
+
), T = this.applyPatch(
|
|
3425
|
+
S.trackItemsMap,
|
|
3445
3426
|
p
|
|
3446
|
-
),
|
|
3447
|
-
|
|
3427
|
+
), D = this.applyPatch(
|
|
3428
|
+
S.trackItemDetailsMap,
|
|
3448
3429
|
I
|
|
3449
|
-
),
|
|
3450
|
-
tracks:
|
|
3451
|
-
transitionIds:
|
|
3452
|
-
trackItemIds:
|
|
3453
|
-
transitionsMap:
|
|
3454
|
-
trackItemsMap:
|
|
3455
|
-
trackItemDetailsMap:
|
|
3456
|
-
}), x =
|
|
3457
|
-
this.prevState = x, this.undos.push({ undos: n, type:
|
|
3458
|
-
const
|
|
3459
|
-
this.stateSubject.next({ ...
|
|
3460
|
-
}
|
|
3461
|
-
}
|
|
3462
|
-
const ms = "add", ss = "track", os = "trackItems", ys = `${ss}:changed`, _s = `${os}:changed`, cs = "state", Is = `${cs}:changed`,
|
|
3430
|
+
), k = tt({
|
|
3431
|
+
tracks: b,
|
|
3432
|
+
transitionIds: g,
|
|
3433
|
+
trackItemIds: m,
|
|
3434
|
+
transitionsMap: h,
|
|
3435
|
+
trackItemsMap: T,
|
|
3436
|
+
trackItemDetailsMap: D
|
|
3437
|
+
}), x = tt(this.getState()), C = { ...x, ...k };
|
|
3438
|
+
this.prevState = x, this.undos.push({ undos: n, type: i });
|
|
3439
|
+
const P = jt(C.trackItemsMap);
|
|
3440
|
+
this.stateSubject.next({ ...C, duration: P }), this.stateHistorySubject.next({ handleRedo: !0, handleUndo: !1 });
|
|
3441
|
+
}
|
|
3442
|
+
}
|
|
3443
|
+
const ms = "add", ss = "track", os = "trackItems", ys = `${ss}:changed`, _s = `${os}:changed`, cs = "state", Is = `${cs}:changed`, bi = "design", gs = `${bi}:load`, bs = `${bi}:resize`, _t = "add", vs = `${_t}:text`, Es = `${_t}:video`, Ss = `${_t}:audio`, Ts = `${_t}:placeholder`, ws = `${_t}:image`, ks = `${_t}:mask`, us = `${_t}:items`, As = `${_t}:transition`, Ds = `${_t}:animation`, Ms = `${_t}:caption`, Os = `${_t}:template`, fe = "edit", xs = `${fe}:object`, Ps = `${fe}:text`, Cs = `${fe}:shape`, Rs = `${fe}:templateItem`, Ls = `${fe}:closeTemplate`, Fs = `${fe}:deleteTemplateItem`, $s = "enterEditMode", de = "player", Ns = `${de}:play`, Hs = `${de}:pause`, js = `${de}:seek`, zs = `${de}:seekTo`, Us = `${de}:seekBy`, Gs = `${de}:togglePlay`, ze = "active", Ys = `${ze}:set`, Ws = `${ze}:delete`, Xs = `${ze}:paste`, Bs = `${ze}:clone`, Ks = `${ze}:split`, st = "layer", Vs = `${st}:locked`, Js = `${st}:hidden`, Zs = `${st}:move`, qs = `${st}:select`, Qs = `${st}:selection`, to = `${st}:sendTo`, eo = `${st}:rename`, ro = `${st}:editingName`, no = `${st}:copy`, io = `${st}:paste`, ao = `${st}:clone`, so = `${st}:split`, oo = `${st}:cut`, co = `${st}:delete`, xn = "history", uo = `${xn}:undo`, lo = `${xn}:redo`, fo = `${xn}:reset`, ls = "scale", po = `${ls}:changed`, vi = "drag", ho = `${vi}:start`, mo = `${vi}:end`, fs = "timeline", yo = `${fs}:boundingChanged`;
|
|
3463
3444
|
export {
|
|
3464
3445
|
Bs as ACTIVE_CLONE,
|
|
3465
3446
|
Ws as ACTIVE_DELETE,
|
|
3466
3447
|
Xs as ACTIVE_PASTE,
|
|
3467
|
-
|
|
3448
|
+
ze as ACTIVE_PREFIX,
|
|
3468
3449
|
Ys as ACTIVE_SET,
|
|
3469
3450
|
Ks as ACTIVE_SPLIT,
|
|
3470
3451
|
Ds as ADD_ANIMATION,
|
|
@@ -3474,7 +3455,7 @@ export {
|
|
|
3474
3455
|
us as ADD_ITEMS,
|
|
3475
3456
|
ks as ADD_MASK,
|
|
3476
3457
|
Ts as ADD_PLACEHOLDER,
|
|
3477
|
-
|
|
3458
|
+
_t as ADD_PREFIX,
|
|
3478
3459
|
ms as ADD_SUFFIX,
|
|
3479
3460
|
Os as ADD_TEMPLATE,
|
|
3480
3461
|
vs as ADD_TEXT,
|
|
@@ -3483,22 +3464,22 @@ export {
|
|
|
3483
3464
|
Ls as CLOSE_EDIT_TEMPLATE,
|
|
3484
3465
|
Fs as DELETE_TEMPLATE_ITEM,
|
|
3485
3466
|
gs as DESIGN_LOAD,
|
|
3486
|
-
|
|
3467
|
+
bi as DESIGN_PREFIX,
|
|
3487
3468
|
bs as DESIGN_RESIZE,
|
|
3488
3469
|
mo as DRAG_END,
|
|
3489
|
-
|
|
3470
|
+
vi as DRAG_PREFIX,
|
|
3490
3471
|
ho as DRAG_START,
|
|
3491
3472
|
xs as EDIT_OBJECT,
|
|
3492
|
-
|
|
3473
|
+
fe as EDIT_PREFIX,
|
|
3493
3474
|
Cs as EDIT_SHAPE,
|
|
3494
3475
|
Rs as EDIT_TEMPLATE_ITEM,
|
|
3495
3476
|
Ps as EDIT_TEXT,
|
|
3496
3477
|
$s as ENTER_EDIT_MODE,
|
|
3497
|
-
|
|
3478
|
+
xn as HISTORY_PREFIX,
|
|
3498
3479
|
lo as HISTORY_REDO,
|
|
3499
3480
|
fo as HISTORY_RESET,
|
|
3500
3481
|
uo as HISTORY_UNDO,
|
|
3501
|
-
|
|
3482
|
+
ao as LAYER_CLONE,
|
|
3502
3483
|
no as LAYER_COPY,
|
|
3503
3484
|
oo as LAYER_CUT,
|
|
3504
3485
|
co as LAYER_DELETE,
|
|
@@ -3506,8 +3487,8 @@ export {
|
|
|
3506
3487
|
Js as LAYER_HIDDEN,
|
|
3507
3488
|
Vs as LAYER_LOCKED,
|
|
3508
3489
|
Zs as LAYER_MOVE,
|
|
3509
|
-
|
|
3510
|
-
|
|
3490
|
+
io as LAYER_PASTE,
|
|
3491
|
+
st as LAYER_PREFIX,
|
|
3511
3492
|
eo as LAYER_RENAME,
|
|
3512
3493
|
qs as LAYER_SELECT,
|
|
3513
3494
|
Qs as LAYER_SELECTION,
|
|
@@ -3515,7 +3496,7 @@ export {
|
|
|
3515
3496
|
so as LAYER_SPLIT,
|
|
3516
3497
|
Hs as PLAYER_PAUSE,
|
|
3517
3498
|
Ns as PLAYER_PLAY,
|
|
3518
|
-
|
|
3499
|
+
de as PLAYER_PREFIX,
|
|
3519
3500
|
js as PLAYER_SEEK,
|
|
3520
3501
|
Us as PLAYER_SEEK_BY,
|
|
3521
3502
|
zs as PLAYER_SEEK_TO,
|