@designcombo/state 0.1.9 → 0.1.11
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.es.js +1380 -1326
- package/dist/index.umd.js +3 -3
- package/dist/utils/load-item.d.ts +150 -8
- package/package.json +6 -6
package/dist/index.es.js
CHANGED
@@ -1,94 +1,94 @@
|
|
1
|
-
var
|
2
|
-
var
|
3
|
-
var Et = (t, r, n) =>
|
4
|
-
import { subject as
|
5
|
-
var
|
6
|
-
return
|
7
|
-
n.__proto__ =
|
8
|
-
} || function(n,
|
9
|
-
for (var o in
|
10
|
-
},
|
1
|
+
var si = Object.defineProperty;
|
2
|
+
var oi = (t, r, n) => r in t ? si(t, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[r] = n;
|
3
|
+
var Et = (t, r, n) => oi(t, typeof r != "symbol" ? r + "" : r, n);
|
4
|
+
import { subject as $t, filter as Kt, DESIGN_PREFIX as ci, ADD_PREFIX as ui, LAYER_PREFIX as fi, HISTORY_PREFIX as li, ACTIVE_PREFIX as pi, EDIT_PREFIX as di, DESIGN_LOAD as hi, HISTORY_UNDO as yi, HISTORY_REDO as mi, LAYER_DELETE as bi, ADD_CAPTION as gi, ADD_TEXT as _i, ADD_IMAGE as vi, ADD_AUDIO as Ii, ADD_VIDEO as Si, ACTIVE_SPLIT as wi, ACTIVE_CLONE as Ti, ACTIVE_PASTE as Ai, EDIT_OBJECT as Ei } from "@designcombo/events";
|
5
|
+
var nn = function(t, r) {
|
6
|
+
return nn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
7
|
+
n.__proto__ = i;
|
8
|
+
} || function(n, i) {
|
9
|
+
for (var o in i) Object.prototype.hasOwnProperty.call(i, o) && (n[o] = i[o]);
|
10
|
+
}, nn(t, r);
|
11
11
|
};
|
12
|
-
function
|
12
|
+
function be(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
|
+
nn(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 an(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 sn(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), o, c = [], l;
|
35
35
|
try {
|
36
|
-
for (; (r === void 0 || r-- > 0) && !(o =
|
36
|
+
for (; (r === void 0 || r-- > 0) && !(o = i.next()).done; ) c.push(o.value);
|
37
37
|
} catch (d) {
|
38
38
|
l = { error: d };
|
39
39
|
} finally {
|
40
40
|
try {
|
41
|
-
o && !o.done && (n =
|
41
|
+
o && !o.done && (n = i.return) && n.call(i);
|
42
42
|
} finally {
|
43
43
|
if (l) throw l.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 on(t, r, n) {
|
49
|
+
if (n || arguments.length === 2) for (var i = 0, o = r.length, c; i < o; 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 yt(t) {
|
54
54
|
return typeof t == "function";
|
55
55
|
}
|
56
|
-
function
|
57
|
-
var r = function(
|
58
|
-
Error.call(
|
56
|
+
function Gn(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 Zr = Gn(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 o + 1 + ") " +
|
65
|
+
` + n.map(function(i, o) {
|
66
|
+
return o + 1 + ") " + i.toString();
|
67
67
|
}).join(`
|
68
68
|
`) : "", this.name = "UnsubscriptionError", this.errors = n;
|
69
69
|
};
|
70
70
|
});
|
71
|
-
function
|
71
|
+
function cn(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 tr = 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, o, c;
|
83
83
|
if (!this.closed) {
|
84
84
|
this.closed = !0;
|
85
85
|
var l = this._parentage;
|
86
86
|
if (l)
|
87
87
|
if (this._parentage = null, Array.isArray(l))
|
88
88
|
try {
|
89
|
-
for (var d =
|
90
|
-
var
|
91
|
-
|
89
|
+
for (var d = an(l), E = d.next(); !E.done; E = d.next()) {
|
90
|
+
var j = E.value;
|
91
|
+
j.remove(this);
|
92
92
|
}
|
93
93
|
} catch (f) {
|
94
94
|
r = { error: f };
|
@@ -101,43 +101,43 @@ var Ze = function() {
|
|
101
101
|
}
|
102
102
|
else
|
103
103
|
l.remove(this);
|
104
|
-
var
|
105
|
-
if (yt(
|
104
|
+
var S = this.initialTeardown;
|
105
|
+
if (yt(S))
|
106
106
|
try {
|
107
|
-
|
107
|
+
S();
|
108
108
|
} catch (f) {
|
109
|
-
c = f instanceof
|
109
|
+
c = f instanceof Zr ? f.errors : [f];
|
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
|
116
|
-
var
|
115
|
+
for (var y = an(N), p = y.next(); !p.done; p = y.next()) {
|
116
|
+
var h = p.value;
|
117
117
|
try {
|
118
|
-
|
118
|
+
Tn(h);
|
119
119
|
} catch (f) {
|
120
|
-
c = c ?? [], f instanceof
|
120
|
+
c = c ?? [], f instanceof Zr ? c = on(on([], sn(c)), sn(f.errors)) : c.push(f);
|
121
121
|
}
|
122
122
|
}
|
123
123
|
} catch (f) {
|
124
|
-
|
124
|
+
i = { error: f };
|
125
125
|
} finally {
|
126
126
|
try {
|
127
|
-
p && !p.done && (o =
|
127
|
+
p && !p.done && (o = y.return) && o.call(y);
|
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 Zr(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
|
+
Tn(r);
|
141
141
|
else {
|
142
142
|
if (r instanceof t) {
|
143
143
|
if (r.closed || r._hasParent(this))
|
@@ -154,57 +154,57 @@ var Ze = 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) && cn(n, r);
|
158
158
|
}, t.prototype.remove = function(r) {
|
159
159
|
var n = this._finalizers;
|
160
|
-
n &&
|
160
|
+
n && cn(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
|
-
}(), Wn =
|
166
|
-
function
|
167
|
-
return t instanceof
|
165
|
+
}(), Wn = tr.EMPTY;
|
166
|
+
function Bn(t) {
|
167
|
+
return t instanceof tr || t && "closed" in t && yt(t.remove) && yt(t.add) && yt(t.unsubscribe);
|
168
168
|
}
|
169
|
-
function
|
169
|
+
function Tn(t) {
|
170
170
|
yt(t) ? t() : t.unsubscribe();
|
171
171
|
}
|
172
|
-
var
|
172
|
+
var $n = {
|
173
173
|
onUnhandledError: null,
|
174
174
|
onStoppedNotification: null,
|
175
175
|
Promise: void 0,
|
176
176
|
useDeprecatedSynchronousErrorHandling: !1,
|
177
177
|
useDeprecatedNextContext: !1
|
178
|
-
},
|
178
|
+
}, Kn = {
|
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, on([t, r], sn(n)));
|
183
183
|
},
|
184
184
|
clearTimeout: function(t) {
|
185
|
-
var r =
|
185
|
+
var r = Kn.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 ki(t) {
|
191
|
+
Kn.setTimeout(function() {
|
192
192
|
throw t;
|
193
193
|
});
|
194
194
|
}
|
195
|
-
function
|
195
|
+
function An() {
|
196
196
|
}
|
197
197
|
function Ve(t) {
|
198
198
|
t();
|
199
199
|
}
|
200
200
|
var Yn = function(t) {
|
201
|
-
|
201
|
+
be(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, Bn(n) && n.add(i)) : i.destination = Pi, i;
|
205
205
|
}
|
206
|
-
return r.create = function(n,
|
207
|
-
return new
|
206
|
+
return r.create = function(n, i, o) {
|
207
|
+
return new un(n, i, o);
|
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 Yn = function(t) {
|
|
228
228
|
this.unsubscribe();
|
229
229
|
}
|
230
230
|
}, r;
|
231
|
-
}(
|
232
|
-
function
|
233
|
-
return
|
231
|
+
}(tr), Oi = Function.prototype.bind;
|
232
|
+
function Qr(t, r) {
|
233
|
+
return Oi.call(t, r);
|
234
234
|
}
|
235
|
-
var
|
235
|
+
var xi = function() {
|
236
236
|
function t(r) {
|
237
237
|
this.partialObserver = r;
|
238
238
|
}
|
@@ -241,85 +241,85 @@ var Oi = function() {
|
|
241
241
|
if (n.next)
|
242
242
|
try {
|
243
243
|
n.next(r);
|
244
|
-
} catch (
|
245
|
-
|
244
|
+
} catch (i) {
|
245
|
+
Ye(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
|
-
|
252
|
+
} catch (i) {
|
253
|
+
Ye(i);
|
254
254
|
}
|
255
255
|
else
|
256
|
-
|
256
|
+
Ye(r);
|
257
257
|
}, t.prototype.complete = function() {
|
258
258
|
var r = this.partialObserver;
|
259
259
|
if (r.complete)
|
260
260
|
try {
|
261
261
|
r.complete();
|
262
262
|
} catch (n) {
|
263
|
-
|
263
|
+
Ye(n);
|
264
264
|
}
|
265
265
|
}, t;
|
266
|
-
}(),
|
267
|
-
|
268
|
-
function r(n,
|
266
|
+
}(), un = function(t) {
|
267
|
+
be(r, t);
|
268
|
+
function r(n, i, o) {
|
269
269
|
var c = t.call(this) || this, l;
|
270
270
|
if (yt(n) || !n)
|
271
271
|
l = {
|
272
272
|
next: n ?? void 0,
|
273
|
-
error:
|
273
|
+
error: i ?? void 0,
|
274
274
|
complete: o ?? void 0
|
275
275
|
};
|
276
276
|
else {
|
277
277
|
var d;
|
278
|
-
c &&
|
278
|
+
c && $n.useDeprecatedNextContext ? (d = Object.create(n), d.unsubscribe = function() {
|
279
279
|
return c.unsubscribe();
|
280
280
|
}, l = {
|
281
|
-
next: n.next &&
|
282
|
-
error: n.error &&
|
283
|
-
complete: n.complete &&
|
281
|
+
next: n.next && Qr(n.next, d),
|
282
|
+
error: n.error && Qr(n.error, d),
|
283
|
+
complete: n.complete && Qr(n.complete, d)
|
284
284
|
}) : l = n;
|
285
285
|
}
|
286
|
-
return c.destination = new
|
286
|
+
return c.destination = new xi(l), c;
|
287
287
|
}
|
288
288
|
return r;
|
289
289
|
}(Yn);
|
290
|
-
function
|
291
|
-
|
290
|
+
function Ye(t) {
|
291
|
+
ki(t);
|
292
292
|
}
|
293
|
-
function
|
293
|
+
function Mi(t) {
|
294
294
|
throw t;
|
295
295
|
}
|
296
|
-
var
|
296
|
+
var Pi = {
|
297
297
|
closed: !0,
|
298
|
-
next:
|
299
|
-
error:
|
300
|
-
complete:
|
301
|
-
},
|
298
|
+
next: An,
|
299
|
+
error: Mi,
|
300
|
+
complete: An
|
301
|
+
}, Di = function() {
|
302
302
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
303
303
|
}();
|
304
|
-
function
|
304
|
+
function Ci(t) {
|
305
305
|
return t;
|
306
306
|
}
|
307
|
-
function
|
308
|
-
return t.length === 0 ?
|
309
|
-
return t.reduce(function(
|
310
|
-
return o(
|
307
|
+
function ji(t) {
|
308
|
+
return t.length === 0 ? Ci : t.length === 1 ? t[0] : function(n) {
|
309
|
+
return t.reduce(function(i, o) {
|
310
|
+
return o(i);
|
311
311
|
}, n);
|
312
312
|
};
|
313
313
|
}
|
314
|
-
var
|
314
|
+
var En = 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 o = this, c =
|
321
|
+
}, t.prototype.subscribe = function(r, n, i) {
|
322
|
+
var o = this, c = Ri(r) ? r : new un(r, n, i);
|
323
323
|
return Ve(function() {
|
324
324
|
var l = o, d = l.operator, E = l.source;
|
325
325
|
c.add(d ? d.call(c, E) : E ? o._subscribe(c) : o._trySubscribe(c));
|
@@ -331,9 +331,9 @@ var kn = function() {
|
|
331
331
|
r.error(n);
|
332
332
|
}
|
333
333
|
}, t.prototype.forEach = function(r, n) {
|
334
|
-
var
|
335
|
-
return n =
|
336
|
-
var l = new
|
334
|
+
var i = this;
|
335
|
+
return n = kn(n), new n(function(o, c) {
|
336
|
+
var l = new un({
|
337
337
|
next: function(d) {
|
338
338
|
try {
|
339
339
|
r(d);
|
@@ -344,72 +344,72 @@ var kn = function() {
|
|
344
344
|
error: c,
|
345
345
|
complete: o
|
346
346
|
});
|
347
|
-
|
347
|
+
i.subscribe(l);
|
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[Di] = 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 ji(r)(this);
|
358
358
|
}, t.prototype.toPromise = function(r) {
|
359
359
|
var n = this;
|
360
|
-
return r =
|
360
|
+
return r = kn(r), new r(function(i, o) {
|
361
361
|
var c;
|
362
362
|
n.subscribe(function(l) {
|
363
363
|
return c = l;
|
364
364
|
}, function(l) {
|
365
365
|
return o(l);
|
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 kn(t) {
|
375
375
|
var r;
|
376
|
-
return (r = t ??
|
376
|
+
return (r = t ?? $n.Promise) !== null && r !== void 0 ? r : Promise;
|
377
377
|
}
|
378
|
-
function
|
378
|
+
function Fi(t) {
|
379
379
|
return t && yt(t.next) && yt(t.error) && yt(t.complete);
|
380
380
|
}
|
381
|
-
function
|
382
|
-
return t && t instanceof Yn ||
|
381
|
+
function Ri(t) {
|
382
|
+
return t && t instanceof Yn || Fi(t) && Bn(t);
|
383
383
|
}
|
384
|
-
var
|
384
|
+
var zi = Gn(function(t) {
|
385
385
|
return function() {
|
386
386
|
t(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
387
387
|
};
|
388
|
-
}),
|
389
|
-
|
388
|
+
}), Vn = function(t) {
|
389
|
+
be(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 On(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 zi();
|
400
400
|
}, r.prototype.next = function(n) {
|
401
|
-
var
|
401
|
+
var i = this;
|
402
402
|
Ve(function() {
|
403
403
|
var o, 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 l =
|
407
|
+
for (var l = an(i.currentObservers), d = l.next(); !d.done; d = l.next()) {
|
408
408
|
var E = d.value;
|
409
409
|
E.next(n);
|
410
410
|
}
|
411
|
-
} catch (
|
412
|
-
o = { error:
|
411
|
+
} catch (j) {
|
412
|
+
o = { error: j };
|
413
413
|
} finally {
|
414
414
|
try {
|
415
415
|
d && !d.done && (c = l.return) && c.call(l);
|
@@ -420,11 +420,11 @@ var Ri = Bn(function(t) {
|
|
420
420
|
}
|
421
421
|
});
|
422
422
|
}, r.prototype.error = function(n) {
|
423
|
-
var
|
423
|
+
var i = this;
|
424
424
|
Ve(function() {
|
425
|
-
if (
|
426
|
-
|
427
|
-
for (var o =
|
425
|
+
if (i._throwIfClosed(), !i.isStopped) {
|
426
|
+
i.hasError = i.isStopped = !0, i.thrownError = n;
|
427
|
+
for (var o = i.observers; o.length; )
|
428
428
|
o.shift().error(n);
|
429
429
|
}
|
430
430
|
});
|
@@ -433,8 +433,8 @@ var Ri = Bn(function(t) {
|
|
433
433
|
Ve(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 Ri = Bn(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 || l ? Wn : (this.currentObservers = null, d.push(n), new
|
456
|
-
|
454
|
+
var i = this, o = this, c = o.hasError, l = o.isStopped, d = o.observers;
|
455
|
+
return c || l ? Wn : (this.currentObservers = null, d.push(n), new tr(function() {
|
456
|
+
i.currentObservers = null, cn(d, n);
|
457
457
|
}));
|
458
458
|
}, r.prototype._checkFinalizedStatuses = function(n) {
|
459
|
-
var
|
459
|
+
var i = this, o = i.hasError, c = i.thrownError, l = i.isStopped;
|
460
460
|
o ? n.error(c) : l && n.complete();
|
461
461
|
}, r.prototype.asObservable = function() {
|
462
|
-
var n = new
|
462
|
+
var n = new En();
|
463
463
|
return n.source = this, n;
|
464
|
-
}, r.create = function(n,
|
465
|
-
return new
|
464
|
+
}, r.create = function(n, i) {
|
465
|
+
return new On(n, i);
|
466
466
|
}, r;
|
467
|
-
}(
|
468
|
-
|
469
|
-
function r(n,
|
467
|
+
}(En), On = function(t) {
|
468
|
+
be(r, t);
|
469
|
+
function r(n, i) {
|
470
470
|
var o = t.call(this) || this;
|
471
|
-
return o.destination = n, o.source =
|
471
|
+
return o.destination = n, o.source = i, o;
|
472
472
|
}
|
473
473
|
return r.prototype.next = function(n) {
|
474
|
-
var
|
475
|
-
(o = (
|
474
|
+
var i, o;
|
475
|
+
(o = (i = this.destination) === null || i === void 0 ? void 0 : i.next) === null || o === void 0 || o.call(i, n);
|
476
476
|
}, r.prototype.error = function(n) {
|
477
|
-
var
|
478
|
-
(o = (
|
477
|
+
var i, o;
|
478
|
+
(o = (i = this.destination) === null || i === void 0 ? void 0 : i.error) === null || o === void 0 || o.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 (o = (
|
483
|
+
var i, o;
|
484
|
+
return (o = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(n)) !== null && o !== void 0 ? o : Wn;
|
485
485
|
}, r;
|
486
|
-
}(
|
487
|
-
|
486
|
+
}(Vn), xn = function(t) {
|
487
|
+
be(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 Ri = Bn(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, o = n.thrownError, c = n._value;
|
503
|
+
if (i)
|
504
504
|
throw o;
|
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
|
+
}(Vn), et = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
510
|
+
function bn(t) {
|
511
511
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
512
512
|
}
|
513
|
-
var
|
514
|
-
|
513
|
+
var Xe = { exports: {} };
|
514
|
+
Xe.exports;
|
515
515
|
(function(t, r) {
|
516
|
-
var n = 200,
|
517
|
-
|
518
|
-
var
|
516
|
+
var n = 200, i = "__lodash_hash_undefined__", o = 1, c = 2, l = 9007199254740991, d = "[object Arguments]", E = "[object Array]", j = "[object AsyncFunction]", S = "[object Boolean]", N = "[object Date]", y = "[object Error]", p = "[object Function]", h = "[object GeneratorFunction]", f = "[object Map]", g = "[object Number]", v = "[object Null]", _ = "[object Object]", b = "[object Promise]", m = "[object Proxy]", H = "[object RegExp]", O = "[object Set]", k = "[object String]", D = "[object Symbol]", w = "[object Undefined]", T = "[object WeakMap]", x = "[object ArrayBuffer]", F = "[object DataView]", Dt = "[object Float32Array]", Ct = "[object Float64Array]", Ie = "[object Int8Array]", ir = "[object Int16Array]", ar = "[object Int32Array]", sr = "[object Uint8Array]", or = "[object Uint8ClampedArray]", R = "[object Uint16Array]", cr = "[object Uint32Array]", ur = /[\\^$.*+?()[\]{}|]/g, rt = /^\[object .+?Constructor\]$/, Se = /^(?:0|[1-9]\d*)$/, z = {};
|
517
|
+
z[Dt] = z[Ct] = z[Ie] = z[ir] = z[ar] = z[sr] = z[or] = z[R] = z[cr] = !0, z[d] = z[E] = z[x] = z[S] = z[F] = z[N] = z[y] = z[p] = z[f] = z[g] = z[_] = z[H] = z[O] = z[k] = z[T] = !1;
|
518
|
+
var we = typeof et == "object" && et && et.Object === Object && et, fr = typeof self == "object" && self && self.Object === Object && self, nt = we || fr || Function("return this")(), Te = r && !r.nodeType && r, Ae = Te && !0 && t && !t.nodeType && t, Yt = Ae && Ae.exports === Te, Vt = Yt && we.process, Ee = function() {
|
519
519
|
try {
|
520
|
-
return
|
520
|
+
return Vt && Vt.binding && Vt.binding("util");
|
521
521
|
} catch {
|
522
522
|
}
|
523
|
-
}(),
|
524
|
-
function
|
523
|
+
}(), Xt = Ee && Ee.isTypedArray;
|
524
|
+
function ke(e, a) {
|
525
525
|
for (var s = -1, u = e == null ? 0 : e.length, A = 0, I = []; ++s < u; ) {
|
526
|
-
var
|
527
|
-
|
526
|
+
var P = e[s];
|
527
|
+
a(P, s, e) && (I[A++] = P);
|
528
528
|
}
|
529
529
|
return I;
|
530
530
|
}
|
531
|
-
function
|
532
|
-
for (var s = -1, u =
|
533
|
-
e[A + s] =
|
531
|
+
function qt(e, a) {
|
532
|
+
for (var s = -1, u = a.length, A = e.length; ++s < u; )
|
533
|
+
e[A + s] = a[s];
|
534
534
|
return e;
|
535
535
|
}
|
536
|
-
function
|
536
|
+
function Oe(e, a) {
|
537
537
|
for (var s = -1, u = e == null ? 0 : e.length; ++s < u; )
|
538
|
-
if (
|
538
|
+
if (a(e[s], s, e))
|
539
539
|
return !0;
|
540
540
|
return !1;
|
541
541
|
}
|
542
|
-
function
|
542
|
+
function lr(e, a) {
|
543
543
|
for (var s = -1, u = Array(e); ++s < e; )
|
544
|
-
u[s] =
|
544
|
+
u[s] = a(s);
|
545
545
|
return u;
|
546
546
|
}
|
547
|
-
function
|
548
|
-
return function(
|
549
|
-
return e(
|
547
|
+
function pr(e) {
|
548
|
+
return function(a) {
|
549
|
+
return e(a);
|
550
550
|
};
|
551
551
|
}
|
552
|
-
function
|
553
|
-
return e.has(
|
552
|
+
function jt(e, a) {
|
553
|
+
return e.has(a);
|
554
554
|
}
|
555
|
-
function
|
556
|
-
return e == null ? void 0 : e[
|
555
|
+
function Jt(e, a) {
|
556
|
+
return e == null ? void 0 : e[a];
|
557
557
|
}
|
558
|
-
function
|
559
|
-
var
|
558
|
+
function xe(e) {
|
559
|
+
var a = -1, s = Array(e.size);
|
560
560
|
return e.forEach(function(u, A) {
|
561
|
-
s[++
|
561
|
+
s[++a] = [A, u];
|
562
562
|
}), s;
|
563
563
|
}
|
564
|
-
function
|
564
|
+
function Me(e, a) {
|
565
565
|
return function(s) {
|
566
|
-
return e(
|
566
|
+
return e(a(s));
|
567
567
|
};
|
568
568
|
}
|
569
569
|
function st(e) {
|
570
|
-
var
|
570
|
+
var a = -1, s = Array(e.size);
|
571
571
|
return e.forEach(function(u) {
|
572
|
-
s[++
|
572
|
+
s[++a] = u;
|
573
573
|
}), s;
|
574
574
|
}
|
575
|
-
var
|
576
|
-
var e = /[^.]+$/.exec(
|
575
|
+
var Ft = Array.prototype, dr = Function.prototype, _t = Object.prototype, Rt = nt["__core-js_shared__"], Zt = dr.toString, Q = _t.hasOwnProperty, Pe = function() {
|
576
|
+
var e = /[^.]+$/.exec(Rt && Rt.keys && Rt.keys.IE_PROTO || "");
|
577
577
|
return e ? "Symbol(src)_1." + e : "";
|
578
|
-
}(),
|
579
|
-
"^" +
|
580
|
-
),
|
581
|
-
function
|
582
|
-
var
|
583
|
-
for (this.clear(); ++
|
584
|
-
var u = e[
|
578
|
+
}(), De = _t.toString, hr = RegExp(
|
579
|
+
"^" + Zt.call(Q).replace(ur, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
580
|
+
), Qt = Yt ? nt.Buffer : void 0, zt = nt.Symbol, Ce = nt.Uint8Array, Ht = _t.propertyIsEnumerable, vt = Ft.splice, it = zt ? zt.toStringTag : void 0, Nt = Object.getOwnPropertySymbols, te = Qt ? Qt.isBuffer : void 0, It = Me(Object.keys, Object), ee = pt(nt, "DataView"), St = pt(nt, "Map"), re = pt(nt, "Promise"), ne = pt(nt, "Set"), ie = pt(nt, "WeakMap"), mt = pt(Object, "create"), je = V(ee), lt = V(St), yr = V(re), mr = V(ne), br = V(ie), Fe = zt ? zt.prototype : void 0, ae = Fe ? Fe.valueOf : void 0;
|
581
|
+
function W(e) {
|
582
|
+
var a = -1, s = e == null ? 0 : e.length;
|
583
|
+
for (this.clear(); ++a < s; ) {
|
584
|
+
var u = e[a];
|
585
585
|
this.set(u[0], u[1]);
|
586
586
|
}
|
587
587
|
}
|
588
|
-
function
|
588
|
+
function gr() {
|
589
589
|
this.__data__ = mt ? mt(null) : {}, this.size = 0;
|
590
590
|
}
|
591
|
-
function
|
592
|
-
var
|
593
|
-
return this.size -=
|
591
|
+
function _r(e) {
|
592
|
+
var a = this.has(e) && delete this.__data__[e];
|
593
|
+
return this.size -= a ? 1 : 0, a;
|
594
594
|
}
|
595
|
-
function
|
596
|
-
var
|
595
|
+
function vr(e) {
|
596
|
+
var a = this.__data__;
|
597
597
|
if (mt) {
|
598
|
-
var s =
|
599
|
-
return s ===
|
598
|
+
var s = a[e];
|
599
|
+
return s === i ? void 0 : s;
|
600
600
|
}
|
601
|
-
return Q.call(
|
601
|
+
return Q.call(a, e) ? a[e] : void 0;
|
602
602
|
}
|
603
|
-
function
|
604
|
-
var
|
605
|
-
return mt ?
|
603
|
+
function Ir(e) {
|
604
|
+
var a = this.__data__;
|
605
|
+
return mt ? a[e] !== void 0 : Q.call(a, e);
|
606
606
|
}
|
607
|
-
function
|
607
|
+
function Sr(e, a) {
|
608
608
|
var s = this.__data__;
|
609
|
-
return this.size += this.has(e) ? 0 : 1, s[e] = mt &&
|
609
|
+
return this.size += this.has(e) ? 0 : 1, s[e] = mt && a === void 0 ? i : a, this;
|
610
610
|
}
|
611
|
-
|
611
|
+
W.prototype.clear = gr, W.prototype.delete = _r, W.prototype.get = vr, W.prototype.has = Ir, W.prototype.set = Sr;
|
612
612
|
function $(e) {
|
613
|
-
var
|
614
|
-
for (this.clear(); ++
|
615
|
-
var u = e[
|
613
|
+
var a = -1, s = e == null ? 0 : e.length;
|
614
|
+
for (this.clear(); ++a < s; ) {
|
615
|
+
var u = e[a];
|
616
616
|
this.set(u[0], u[1]);
|
617
617
|
}
|
618
618
|
}
|
619
|
-
function
|
619
|
+
function wr() {
|
620
620
|
this.__data__ = [], this.size = 0;
|
621
621
|
}
|
622
|
-
function
|
623
|
-
var
|
622
|
+
function Tr(e) {
|
623
|
+
var a = this.__data__, s = Gt(a, e);
|
624
624
|
if (s < 0)
|
625
625
|
return !1;
|
626
|
-
var u =
|
627
|
-
return s == u ?
|
626
|
+
var u = a.length - 1;
|
627
|
+
return s == u ? a.pop() : vt.call(a, s, 1), --this.size, !0;
|
628
628
|
}
|
629
|
-
function
|
630
|
-
var
|
631
|
-
return s < 0 ? void 0 :
|
629
|
+
function Ar(e) {
|
630
|
+
var a = this.__data__, s = Gt(a, e);
|
631
|
+
return s < 0 ? void 0 : a[s][1];
|
632
632
|
}
|
633
|
-
function
|
634
|
-
return
|
633
|
+
function Er(e) {
|
634
|
+
return Gt(this.__data__, e) > -1;
|
635
635
|
}
|
636
|
-
function
|
637
|
-
var s = this.__data__, u =
|
638
|
-
return u < 0 ? (++this.size, s.push([e,
|
636
|
+
function kr(e, a) {
|
637
|
+
var s = this.__data__, u = Gt(s, e);
|
638
|
+
return u < 0 ? (++this.size, s.push([e, a])) : s[u][1] = a, this;
|
639
639
|
}
|
640
|
-
$.prototype.clear =
|
640
|
+
$.prototype.clear = wr, $.prototype.delete = Tr, $.prototype.get = Ar, $.prototype.has = Er, $.prototype.set = kr;
|
641
641
|
function X(e) {
|
642
|
-
var
|
643
|
-
for (this.clear(); ++
|
644
|
-
var u = e[
|
642
|
+
var a = -1, s = e == null ? 0 : e.length;
|
643
|
+
for (this.clear(); ++a < s; ) {
|
644
|
+
var u = e[a];
|
645
645
|
this.set(u[0], u[1]);
|
646
646
|
}
|
647
647
|
}
|
648
|
-
function
|
648
|
+
function Or() {
|
649
649
|
this.size = 0, this.__data__ = {
|
650
|
-
hash: new
|
650
|
+
hash: new W(),
|
651
651
|
map: new (St || $)(),
|
652
|
-
string: new
|
652
|
+
string: new W()
|
653
653
|
};
|
654
654
|
}
|
655
|
-
function
|
656
|
-
var
|
657
|
-
return this.size -=
|
655
|
+
function xr(e) {
|
656
|
+
var a = at(this, e).delete(e);
|
657
|
+
return this.size -= a ? 1 : 0, a;
|
658
658
|
}
|
659
|
-
function
|
659
|
+
function Mr(e) {
|
660
660
|
return at(this, e).get(e);
|
661
661
|
}
|
662
|
-
function
|
662
|
+
function Pr(e) {
|
663
663
|
return at(this, e).has(e);
|
664
664
|
}
|
665
|
-
function
|
665
|
+
function Dr(e, a) {
|
666
666
|
var s = at(this, e), u = s.size;
|
667
|
-
return s.set(e,
|
667
|
+
return s.set(e, a), this.size += s.size == u ? 0 : 1, this;
|
668
668
|
}
|
669
|
-
X.prototype.clear =
|
670
|
-
function
|
671
|
-
var
|
672
|
-
for (this.__data__ = new X(); ++
|
673
|
-
this.add(e[
|
669
|
+
X.prototype.clear = Or, X.prototype.delete = xr, X.prototype.get = Mr, X.prototype.has = Pr, X.prototype.set = Dr;
|
670
|
+
function Ut(e) {
|
671
|
+
var a = -1, s = e == null ? 0 : e.length;
|
672
|
+
for (this.__data__ = new X(); ++a < s; )
|
673
|
+
this.add(e[a]);
|
674
674
|
}
|
675
|
-
function
|
676
|
-
return this.__data__.set(e,
|
675
|
+
function Re(e) {
|
676
|
+
return this.__data__.set(e, i), this;
|
677
677
|
}
|
678
|
-
function
|
678
|
+
function Lt(e) {
|
679
679
|
return this.__data__.has(e);
|
680
680
|
}
|
681
|
-
|
681
|
+
Ut.prototype.add = Ut.prototype.push = Re, Ut.prototype.has = Lt;
|
682
682
|
function ot(e) {
|
683
|
-
var
|
684
|
-
this.size =
|
683
|
+
var a = this.__data__ = new $(e);
|
684
|
+
this.size = a.size;
|
685
685
|
}
|
686
|
-
function
|
686
|
+
function se() {
|
687
687
|
this.__data__ = new $(), this.size = 0;
|
688
688
|
}
|
689
|
-
function
|
690
|
-
var
|
691
|
-
return this.size =
|
689
|
+
function Cr(e) {
|
690
|
+
var a = this.__data__, s = a.delete(e);
|
691
|
+
return this.size = a.size, s;
|
692
692
|
}
|
693
|
-
function
|
693
|
+
function jr(e) {
|
694
694
|
return this.__data__.get(e);
|
695
695
|
}
|
696
|
-
function
|
696
|
+
function Fr(e) {
|
697
697
|
return this.__data__.has(e);
|
698
698
|
}
|
699
|
-
function
|
699
|
+
function Rr(e, a) {
|
700
700
|
var s = this.__data__;
|
701
701
|
if (s instanceof $) {
|
702
702
|
var u = s.__data__;
|
703
703
|
if (!St || u.length < n - 1)
|
704
|
-
return u.push([e,
|
704
|
+
return u.push([e, a]), this.size = ++s.size, this;
|
705
705
|
s = this.__data__ = new X(u);
|
706
706
|
}
|
707
|
-
return s.set(e,
|
708
|
-
}
|
709
|
-
ot.prototype.clear =
|
710
|
-
function
|
711
|
-
var s =
|
712
|
-
for (var
|
713
|
-
Q.call(e,
|
714
|
-
(
|
715
|
-
A && (
|
716
|
-
I && (
|
717
|
-
|
718
|
-
return
|
719
|
-
}
|
720
|
-
function
|
707
|
+
return s.set(e, a), this.size = s.size, this;
|
708
|
+
}
|
709
|
+
ot.prototype.clear = se, ot.prototype.delete = Cr, ot.prototype.get = jr, ot.prototype.has = Fr, ot.prototype.set = Rr;
|
710
|
+
function zr(e, a) {
|
711
|
+
var s = Wt(e), u = !s && Le(e), A = !s && !u && Bt(e), I = !s && !u && !A && Be(e), P = s || u || A || I, M = P ? lr(e.length, String) : [], U = M.length;
|
712
|
+
for (var C in e)
|
713
|
+
Q.call(e, C) && !(P && // Safari 9 has enumerable `arguments.length` in strict mode.
|
714
|
+
(C == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
715
|
+
A && (C == "offset" || C == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
716
|
+
I && (C == "buffer" || C == "byteLength" || C == "byteOffset") || // Skip index properties.
|
717
|
+
$r(C, U))) && M.push(C);
|
718
|
+
return M;
|
719
|
+
}
|
720
|
+
function Gt(e, a) {
|
721
721
|
for (var s = e.length; s--; )
|
722
|
-
if (
|
722
|
+
if (Ue(e[s][0], a))
|
723
723
|
return s;
|
724
724
|
return -1;
|
725
725
|
}
|
726
|
-
function
|
727
|
-
var u =
|
728
|
-
return
|
726
|
+
function oe(e, a, s) {
|
727
|
+
var u = a(e);
|
728
|
+
return Wt(e) ? u : qt(u, s(e));
|
729
729
|
}
|
730
730
|
function wt(e) {
|
731
|
-
return e == null ? e === void 0 ?
|
731
|
+
return e == null ? e === void 0 ? w : v : it && it in Object(e) ? dt(e) : Ne(e);
|
732
732
|
}
|
733
|
-
function
|
733
|
+
function ze(e) {
|
734
734
|
return ut(e) && wt(e) == d;
|
735
735
|
}
|
736
|
-
function
|
737
|
-
return e ===
|
736
|
+
function He(e, a, s, u, A) {
|
737
|
+
return e === a ? !0 : e == null || a == null || !ut(e) && !ut(a) ? e !== e && a !== a : Hr(e, a, s, u, He, A);
|
738
738
|
}
|
739
|
-
function
|
740
|
-
var
|
741
|
-
|
742
|
-
var K =
|
743
|
-
if (
|
744
|
-
if (!
|
739
|
+
function Hr(e, a, s, u, A, I) {
|
740
|
+
var P = Wt(e), M = Wt(a), U = P ? E : ct(e), C = M ? E : ct(a);
|
741
|
+
U = U == d ? _ : U, C = C == d ? _ : C;
|
742
|
+
var K = U == _, q = C == _, L = U == C;
|
743
|
+
if (L && Bt(e)) {
|
744
|
+
if (!Bt(a))
|
745
745
|
return !1;
|
746
|
-
|
746
|
+
P = !0, K = !1;
|
747
747
|
}
|
748
|
-
if (
|
749
|
-
return I || (I = new ot()),
|
748
|
+
if (L && !K)
|
749
|
+
return I || (I = new ot()), P || Be(e) ? ce(e, a, s, u, A, I) : Gr(e, a, U, s, u, A, I);
|
750
750
|
if (!(s & o)) {
|
751
|
-
var
|
752
|
-
if (
|
753
|
-
var bt =
|
751
|
+
var Y = K && Q.call(e, "__wrapped__"), B = q && Q.call(a, "__wrapped__");
|
752
|
+
if (Y || B) {
|
753
|
+
var bt = Y ? e.value() : e, ht = B ? a.value() : a;
|
754
754
|
return I || (I = new ot()), A(bt, ht, s, u, I);
|
755
755
|
}
|
756
756
|
}
|
757
|
-
return
|
757
|
+
return L ? (I || (I = new ot()), Wr(e, a, s, u, A, I)) : !1;
|
758
758
|
}
|
759
|
-
function
|
760
|
-
if (!
|
759
|
+
function Nr(e) {
|
760
|
+
if (!We(e) || Yr(e))
|
761
761
|
return !1;
|
762
|
-
var
|
763
|
-
return
|
762
|
+
var a = Ge(e) ? hr : rt;
|
763
|
+
return a.test(V(e));
|
764
764
|
}
|
765
|
-
function
|
766
|
-
return ut(e) &&
|
765
|
+
function Ur(e) {
|
766
|
+
return ut(e) && fe(e.length) && !!z[wt(e)];
|
767
767
|
}
|
768
|
-
function
|
769
|
-
if (
|
768
|
+
function Lr(e) {
|
769
|
+
if (!Vr(e))
|
770
770
|
return It(e);
|
771
|
-
var
|
771
|
+
var a = [];
|
772
772
|
for (var s in Object(e))
|
773
|
-
Q.call(e, s) && s != "constructor" &&
|
774
|
-
return
|
773
|
+
Q.call(e, s) && s != "constructor" && a.push(s);
|
774
|
+
return a;
|
775
775
|
}
|
776
|
-
function
|
777
|
-
var
|
778
|
-
if (
|
776
|
+
function ce(e, a, s, u, A, I) {
|
777
|
+
var P = s & o, M = e.length, U = a.length;
|
778
|
+
if (M != U && !(P && U > M))
|
779
779
|
return !1;
|
780
|
-
var
|
781
|
-
if (
|
782
|
-
return
|
783
|
-
var K = -1, q = !0,
|
784
|
-
for (I.set(e,
|
785
|
-
var
|
780
|
+
var C = I.get(e);
|
781
|
+
if (C && I.get(a))
|
782
|
+
return C == a;
|
783
|
+
var K = -1, q = !0, L = s & c ? new Ut() : void 0;
|
784
|
+
for (I.set(e, a), I.set(a, e); ++K < M; ) {
|
785
|
+
var Y = e[K], B = a[K];
|
786
786
|
if (u)
|
787
|
-
var bt =
|
787
|
+
var bt = P ? u(B, Y, K, a, e, I) : u(Y, B, K, e, a, I);
|
788
788
|
if (bt !== void 0) {
|
789
789
|
if (bt)
|
790
790
|
continue;
|
791
791
|
q = !1;
|
792
792
|
break;
|
793
793
|
}
|
794
|
-
if (
|
795
|
-
if (!
|
796
|
-
if (!
|
797
|
-
return
|
794
|
+
if (L) {
|
795
|
+
if (!Oe(a, function(ht, At) {
|
796
|
+
if (!jt(L, At) && (Y === ht || A(Y, ht, s, u, I)))
|
797
|
+
return L.push(At);
|
798
798
|
})) {
|
799
799
|
q = !1;
|
800
800
|
break;
|
801
801
|
}
|
802
|
-
} else if (!(
|
802
|
+
} else if (!(Y === B || A(Y, B, s, u, I))) {
|
803
803
|
q = !1;
|
804
804
|
break;
|
805
805
|
}
|
806
806
|
}
|
807
|
-
return I.delete(e), I.delete(
|
807
|
+
return I.delete(e), I.delete(a), q;
|
808
808
|
}
|
809
|
-
function
|
809
|
+
function Gr(e, a, s, u, A, I, P) {
|
810
810
|
switch (s) {
|
811
|
-
case H:
|
812
|
-
if (e.byteLength != i.byteLength || e.byteOffset != i.byteOffset)
|
813
|
-
return !1;
|
814
|
-
e = e.buffer, i = i.buffer;
|
815
|
-
case T:
|
816
|
-
return !(e.byteLength != i.byteLength || !I(new De(e), new De(i)));
|
817
|
-
case w:
|
818
|
-
case z:
|
819
|
-
case v:
|
820
|
-
return He(+e, +i);
|
821
|
-
case h:
|
822
|
-
return e.name == i.name && e.message == i.message;
|
823
811
|
case F:
|
824
|
-
|
825
|
-
return e == i + "";
|
826
|
-
case f:
|
827
|
-
var O = Oe;
|
828
|
-
case k:
|
829
|
-
var L = u & o;
|
830
|
-
if (O || (O = st), e.size != i.size && !L)
|
812
|
+
if (e.byteLength != a.byteLength || e.byteOffset != a.byteOffset)
|
831
813
|
return !1;
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
var K = se(O(e), O(i), u, A, I, x);
|
837
|
-
return x.delete(e), K;
|
814
|
+
e = e.buffer, a = a.buffer;
|
815
|
+
case x:
|
816
|
+
return !(e.byteLength != a.byteLength || !I(new Ce(e), new Ce(a)));
|
817
|
+
case S:
|
838
818
|
case N:
|
839
|
-
|
840
|
-
|
819
|
+
case g:
|
820
|
+
return Ue(+e, +a);
|
821
|
+
case y:
|
822
|
+
return e.name == a.name && e.message == a.message;
|
823
|
+
case H:
|
824
|
+
case k:
|
825
|
+
return e == a + "";
|
826
|
+
case f:
|
827
|
+
var M = xe;
|
828
|
+
case O:
|
829
|
+
var U = u & o;
|
830
|
+
if (M || (M = st), e.size != a.size && !U)
|
831
|
+
return !1;
|
832
|
+
var C = P.get(e);
|
833
|
+
if (C)
|
834
|
+
return C == a;
|
835
|
+
u |= c, P.set(e, a);
|
836
|
+
var K = ce(M(e), M(a), u, A, I, P);
|
837
|
+
return P.delete(e), K;
|
838
|
+
case D:
|
839
|
+
if (ae)
|
840
|
+
return ae.call(e) == ae.call(a);
|
841
841
|
}
|
842
842
|
return !1;
|
843
843
|
}
|
844
|
-
function
|
845
|
-
var
|
846
|
-
if (
|
844
|
+
function Wr(e, a, s, u, A, I) {
|
845
|
+
var P = s & o, M = Tt(e), U = M.length, C = Tt(a), K = C.length;
|
846
|
+
if (U != K && !P)
|
847
847
|
return !1;
|
848
|
-
for (var q =
|
849
|
-
var
|
850
|
-
if (!(
|
848
|
+
for (var q = U; q--; ) {
|
849
|
+
var L = M[q];
|
850
|
+
if (!(P ? L in a : Q.call(a, L)))
|
851
851
|
return !1;
|
852
852
|
}
|
853
|
-
var
|
854
|
-
if (
|
855
|
-
return
|
856
|
-
var
|
857
|
-
I.set(e,
|
858
|
-
for (var bt =
|
859
|
-
|
860
|
-
var ht = e[
|
853
|
+
var Y = I.get(e);
|
854
|
+
if (Y && I.get(a))
|
855
|
+
return Y == a;
|
856
|
+
var B = !0;
|
857
|
+
I.set(e, a), I.set(a, e);
|
858
|
+
for (var bt = P; ++q < U; ) {
|
859
|
+
L = M[q];
|
860
|
+
var ht = e[L], At = a[L];
|
861
861
|
if (u)
|
862
|
-
var
|
863
|
-
if (!(
|
864
|
-
|
862
|
+
var wn = P ? u(At, ht, L, a, e, I) : u(ht, At, L, e, a, I);
|
863
|
+
if (!(wn === void 0 ? ht === At || A(ht, At, s, u, I) : wn)) {
|
864
|
+
B = !1;
|
865
865
|
break;
|
866
866
|
}
|
867
|
-
bt || (bt =
|
867
|
+
bt || (bt = L == "constructor");
|
868
868
|
}
|
869
|
-
if (
|
870
|
-
var
|
871
|
-
|
869
|
+
if (B && !bt) {
|
870
|
+
var $e = e.constructor, Ke = a.constructor;
|
871
|
+
$e != Ke && "constructor" in e && "constructor" in a && !(typeof $e == "function" && $e instanceof $e && typeof Ke == "function" && Ke instanceof Ke) && (B = !1);
|
872
872
|
}
|
873
|
-
return I.delete(e), I.delete(
|
873
|
+
return I.delete(e), I.delete(a), B;
|
874
874
|
}
|
875
875
|
function Tt(e) {
|
876
|
-
return
|
876
|
+
return oe(e, le, Br);
|
877
877
|
}
|
878
|
-
function at(e,
|
878
|
+
function at(e, a) {
|
879
879
|
var s = e.__data__;
|
880
|
-
return
|
880
|
+
return Kr(a) ? s[typeof a == "string" ? "string" : "hash"] : s.map;
|
881
881
|
}
|
882
|
-
function pt(e,
|
883
|
-
var s =
|
884
|
-
return
|
882
|
+
function pt(e, a) {
|
883
|
+
var s = Jt(e, a);
|
884
|
+
return Nr(s) ? s : void 0;
|
885
885
|
}
|
886
886
|
function dt(e) {
|
887
|
-
var
|
887
|
+
var a = Q.call(e, it), s = e[it];
|
888
888
|
try {
|
889
889
|
e[it] = void 0;
|
890
890
|
var u = !0;
|
891
891
|
} catch {
|
892
892
|
}
|
893
|
-
var A =
|
894
|
-
return u && (
|
893
|
+
var A = De.call(e);
|
894
|
+
return u && (a ? e[it] = s : delete e[it]), A;
|
895
895
|
}
|
896
|
-
var
|
897
|
-
return e == null ? [] : (e = Object(e),
|
898
|
-
return
|
896
|
+
var Br = Nt ? function(e) {
|
897
|
+
return e == null ? [] : (e = Object(e), ke(Nt(e), function(a) {
|
898
|
+
return Ht.call(e, a);
|
899
899
|
}));
|
900
|
-
} :
|
901
|
-
(
|
902
|
-
var
|
900
|
+
} : qr, ct = wt;
|
901
|
+
(ee && ct(new ee(new ArrayBuffer(1))) != F || St && ct(new St()) != f || re && ct(re.resolve()) != b || ne && ct(new ne()) != O || ie && ct(new ie()) != T) && (ct = function(e) {
|
902
|
+
var a = wt(e), s = a == _ ? e.constructor : void 0, u = s ? V(s) : "";
|
903
903
|
if (u)
|
904
904
|
switch (u) {
|
905
|
-
case
|
906
|
-
return
|
905
|
+
case je:
|
906
|
+
return F;
|
907
907
|
case lt:
|
908
908
|
return f;
|
909
|
-
case
|
910
|
-
return
|
911
|
-
case
|
912
|
-
return
|
913
|
-
case
|
914
|
-
return
|
909
|
+
case yr:
|
910
|
+
return b;
|
911
|
+
case mr:
|
912
|
+
return O;
|
913
|
+
case br:
|
914
|
+
return T;
|
915
915
|
}
|
916
|
-
return
|
916
|
+
return a;
|
917
917
|
});
|
918
|
-
function
|
919
|
-
return
|
918
|
+
function $r(e, a) {
|
919
|
+
return a = a ?? l, !!a && (typeof e == "number" || Se.test(e)) && e > -1 && e % 1 == 0 && e < a;
|
920
920
|
}
|
921
|
-
function
|
922
|
-
var
|
923
|
-
return
|
921
|
+
function Kr(e) {
|
922
|
+
var a = typeof e;
|
923
|
+
return a == "string" || a == "number" || a == "symbol" || a == "boolean" ? e !== "__proto__" : e === null;
|
924
924
|
}
|
925
|
-
function
|
926
|
-
return !!
|
925
|
+
function Yr(e) {
|
926
|
+
return !!Pe && Pe in e;
|
927
927
|
}
|
928
|
-
function
|
929
|
-
var
|
928
|
+
function Vr(e) {
|
929
|
+
var a = e && e.constructor, s = typeof a == "function" && a.prototype || _t;
|
930
930
|
return e === s;
|
931
931
|
}
|
932
932
|
function Ne(e) {
|
933
|
-
return
|
933
|
+
return De.call(e);
|
934
934
|
}
|
935
|
-
function
|
935
|
+
function V(e) {
|
936
936
|
if (e != null) {
|
937
937
|
try {
|
938
|
-
return
|
938
|
+
return Zt.call(e);
|
939
939
|
} catch {
|
940
940
|
}
|
941
941
|
try {
|
@@ -945,445 +945,445 @@ Ye.exports;
|
|
945
945
|
}
|
946
946
|
return "";
|
947
947
|
}
|
948
|
-
function
|
949
|
-
return e ===
|
948
|
+
function Ue(e, a) {
|
949
|
+
return e === a || e !== e && a !== a;
|
950
950
|
}
|
951
|
-
var Le =
|
951
|
+
var Le = ze(/* @__PURE__ */ function() {
|
952
952
|
return arguments;
|
953
|
-
}()) ?
|
954
|
-
return ut(e) && Q.call(e, "callee") && !
|
955
|
-
},
|
956
|
-
function
|
957
|
-
return e != null &&
|
953
|
+
}()) ? ze : function(e) {
|
954
|
+
return ut(e) && Q.call(e, "callee") && !Ht.call(e, "callee");
|
955
|
+
}, Wt = Array.isArray;
|
956
|
+
function ue(e) {
|
957
|
+
return e != null && fe(e.length) && !Ge(e);
|
958
958
|
}
|
959
|
-
var
|
960
|
-
function
|
961
|
-
return
|
959
|
+
var Bt = te || Jr;
|
960
|
+
function Xr(e, a) {
|
961
|
+
return He(e, a);
|
962
962
|
}
|
963
|
-
function
|
964
|
-
if (!
|
963
|
+
function Ge(e) {
|
964
|
+
if (!We(e))
|
965
965
|
return !1;
|
966
|
-
var
|
967
|
-
return
|
966
|
+
var a = wt(e);
|
967
|
+
return a == p || a == h || a == j || a == m;
|
968
968
|
}
|
969
|
-
function
|
969
|
+
function fe(e) {
|
970
970
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= l;
|
971
971
|
}
|
972
|
-
function
|
973
|
-
var
|
974
|
-
return e != null && (
|
972
|
+
function We(e) {
|
973
|
+
var a = typeof e;
|
974
|
+
return e != null && (a == "object" || a == "function");
|
975
975
|
}
|
976
976
|
function ut(e) {
|
977
977
|
return e != null && typeof e == "object";
|
978
978
|
}
|
979
|
-
var Be =
|
980
|
-
function
|
981
|
-
return
|
979
|
+
var Be = Xt ? pr(Xt) : Ur;
|
980
|
+
function le(e) {
|
981
|
+
return ue(e) ? zr(e) : Lr(e);
|
982
982
|
}
|
983
|
-
function
|
983
|
+
function qr() {
|
984
984
|
return [];
|
985
985
|
}
|
986
|
-
function
|
986
|
+
function Jr() {
|
987
987
|
return !1;
|
988
988
|
}
|
989
|
-
t.exports =
|
990
|
-
})(
|
991
|
-
var
|
992
|
-
const ft = /* @__PURE__ */
|
993
|
-
var
|
994
|
-
|
989
|
+
t.exports = Xr;
|
990
|
+
})(Xe, Xe.exports);
|
991
|
+
var Hi = Xe.exports;
|
992
|
+
const ft = /* @__PURE__ */ bn(Hi);
|
993
|
+
var qe = { exports: {} };
|
994
|
+
qe.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__", o = 9007199254740991, c = "[object Arguments]", l = "[object Array]", d = "[object Boolean]", E = "[object Date]", j = "[object Error]", S = "[object Function]", N = "[object GeneratorFunction]", y = "[object Map]", p = "[object Number]", h = "[object Object]", f = "[object Promise]", g = "[object RegExp]", v = "[object Set]", _ = "[object String]", b = "[object Symbol]", m = "[object WeakMap]", H = "[object ArrayBuffer]", O = "[object DataView]", k = "[object Float32Array]", D = "[object Float64Array]", w = "[object Int8Array]", T = "[object Int16Array]", x = "[object Int32Array]", F = "[object Uint8Array]", Dt = "[object Uint8ClampedArray]", Ct = "[object Uint16Array]", Ie = "[object Uint32Array]", ir = /[\\^$.*+?()[\]{}|]/g, ar = /\w*$/, sr = /^\[object .+?Constructor\]$/, or = /^(?:0|[1-9]\d*)$/, R = {};
|
997
|
+
R[c] = R[l] = R[H] = R[O] = R[d] = R[E] = R[k] = R[D] = R[w] = R[T] = R[x] = R[y] = R[p] = R[h] = R[g] = R[v] = R[_] = R[b] = R[F] = R[Dt] = R[Ct] = R[Ie] = !0, R[j] = R[S] = R[m] = !1;
|
998
|
+
var cr = typeof et == "object" && et && et.Object === Object && et, ur = typeof self == "object" && self && self.Object === Object && self, rt = cr || ur || Function("return this")(), Se = r && !r.nodeType && r, z = Se && !0 && t && !t.nodeType && t, we = z && z.exports === Se;
|
999
|
+
function fr(e, a) {
|
1000
|
+
return e.set(a[0], a[1]), e;
|
1001
1001
|
}
|
1002
|
-
function nt(e,
|
1003
|
-
return e.add(
|
1002
|
+
function nt(e, a) {
|
1003
|
+
return e.add(a), e;
|
1004
1004
|
}
|
1005
|
-
function
|
1006
|
-
for (var s = -1, u = e ? e.length : 0; ++s < u &&
|
1005
|
+
function Te(e, a) {
|
1006
|
+
for (var s = -1, u = e ? e.length : 0; ++s < u && a(e[s], s, e) !== !1; )
|
1007
1007
|
;
|
1008
1008
|
return e;
|
1009
1009
|
}
|
1010
|
-
function
|
1011
|
-
for (var s = -1, u =
|
1012
|
-
e[A + s] =
|
1010
|
+
function Ae(e, a) {
|
1011
|
+
for (var s = -1, u = a.length, A = e.length; ++s < u; )
|
1012
|
+
e[A + s] = a[s];
|
1013
1013
|
return e;
|
1014
1014
|
}
|
1015
|
-
function
|
1015
|
+
function Yt(e, a, s, u) {
|
1016
1016
|
for (var A = -1, I = e ? e.length : 0; ++A < I; )
|
1017
|
-
s =
|
1017
|
+
s = a(s, e[A], A, e);
|
1018
1018
|
return s;
|
1019
1019
|
}
|
1020
|
-
function
|
1020
|
+
function Vt(e, a) {
|
1021
1021
|
for (var s = -1, u = Array(e); ++s < e; )
|
1022
|
-
u[s] =
|
1022
|
+
u[s] = a(s);
|
1023
1023
|
return u;
|
1024
1024
|
}
|
1025
|
-
function
|
1026
|
-
return e == null ? void 0 : e[
|
1025
|
+
function Ee(e, a) {
|
1026
|
+
return e == null ? void 0 : e[a];
|
1027
1027
|
}
|
1028
|
-
function
|
1029
|
-
var
|
1028
|
+
function Xt(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
|
-
function
|
1038
|
-
var
|
1037
|
+
function ke(e) {
|
1038
|
+
var a = -1, s = Array(e.size);
|
1039
1039
|
return e.forEach(function(u, A) {
|
1040
|
-
s[++
|
1040
|
+
s[++a] = [A, u];
|
1041
1041
|
}), s;
|
1042
1042
|
}
|
1043
|
-
function
|
1043
|
+
function qt(e, a) {
|
1044
1044
|
return function(s) {
|
1045
|
-
return e(
|
1045
|
+
return e(a(s));
|
1046
1046
|
};
|
1047
1047
|
}
|
1048
|
-
function
|
1049
|
-
var
|
1048
|
+
function Oe(e) {
|
1049
|
+
var a = -1, s = Array(e.size);
|
1050
1050
|
return e.forEach(function(u) {
|
1051
|
-
s[++
|
1051
|
+
s[++a] = u;
|
1052
1052
|
}), s;
|
1053
1053
|
}
|
1054
|
-
var
|
1055
|
-
var e = /[^.]+$/.exec(
|
1054
|
+
var lr = Array.prototype, pr = Function.prototype, jt = Object.prototype, Jt = rt["__core-js_shared__"], xe = function() {
|
1055
|
+
var e = /[^.]+$/.exec(Jt && Jt.keys && Jt.keys.IE_PROTO || "");
|
1056
1056
|
return e ? "Symbol(src)_1." + e : "";
|
1057
|
-
}(),
|
1058
|
-
"^" +
|
1059
|
-
),
|
1057
|
+
}(), Me = pr.toString, st = jt.hasOwnProperty, Ft = jt.toString, dr = RegExp(
|
1058
|
+
"^" + Me.call(st).replace(ir, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
1059
|
+
), _t = we ? rt.Buffer : void 0, Rt = rt.Symbol, Zt = rt.Uint8Array, Q = qt(Object.getPrototypeOf, Object), Pe = Object.create, De = jt.propertyIsEnumerable, hr = lr.splice, Qt = Object.getOwnPropertySymbols, zt = _t ? _t.isBuffer : void 0, Ce = qt(Object.keys, Object), Ht = at(rt, "DataView"), vt = at(rt, "Map"), it = at(rt, "Promise"), Nt = at(rt, "Set"), te = at(rt, "WeakMap"), It = at(Object, "create"), ee = V(Ht), St = V(vt), re = V(it), ne = V(Nt), ie = V(te), mt = Rt ? Rt.prototype : void 0, je = mt ? mt.valueOf : void 0;
|
1060
1060
|
function lt(e) {
|
1061
|
-
var
|
1062
|
-
for (this.clear(); ++
|
1063
|
-
var u = e[
|
1061
|
+
var a = -1, s = e ? e.length : 0;
|
1062
|
+
for (this.clear(); ++a < s; ) {
|
1063
|
+
var u = e[a];
|
1064
1064
|
this.set(u[0], u[1]);
|
1065
1065
|
}
|
1066
1066
|
}
|
1067
|
-
function
|
1067
|
+
function yr() {
|
1068
1068
|
this.__data__ = It ? It(null) : {};
|
1069
1069
|
}
|
1070
|
-
function
|
1070
|
+
function mr(e) {
|
1071
1071
|
return this.has(e) && delete this.__data__[e];
|
1072
1072
|
}
|
1073
|
-
function
|
1074
|
-
var
|
1073
|
+
function br(e) {
|
1074
|
+
var a = this.__data__;
|
1075
1075
|
if (It) {
|
1076
|
-
var s =
|
1077
|
-
return s ===
|
1076
|
+
var s = a[e];
|
1077
|
+
return s === i ? void 0 : s;
|
1078
1078
|
}
|
1079
|
-
return st.call(
|
1079
|
+
return st.call(a, e) ? a[e] : void 0;
|
1080
1080
|
}
|
1081
|
-
function
|
1082
|
-
var
|
1083
|
-
return It ?
|
1081
|
+
function Fe(e) {
|
1082
|
+
var a = this.__data__;
|
1083
|
+
return It ? a[e] !== void 0 : st.call(a, e);
|
1084
1084
|
}
|
1085
|
-
function
|
1085
|
+
function ae(e, a) {
|
1086
1086
|
var s = this.__data__;
|
1087
|
-
return s[e] = It &&
|
1087
|
+
return s[e] = It && a === void 0 ? i : a, this;
|
1088
1088
|
}
|
1089
|
-
lt.prototype.clear =
|
1090
|
-
function
|
1091
|
-
var
|
1092
|
-
for (this.clear(); ++
|
1093
|
-
var u = e[
|
1089
|
+
lt.prototype.clear = yr, lt.prototype.delete = mr, lt.prototype.get = br, lt.prototype.has = Fe, lt.prototype.set = ae;
|
1090
|
+
function W(e) {
|
1091
|
+
var a = -1, s = e ? e.length : 0;
|
1092
|
+
for (this.clear(); ++a < s; ) {
|
1093
|
+
var u = e[a];
|
1094
1094
|
this.set(u[0], u[1]);
|
1095
1095
|
}
|
1096
1096
|
}
|
1097
|
-
function
|
1097
|
+
function gr() {
|
1098
1098
|
this.__data__ = [];
|
1099
1099
|
}
|
1100
|
-
function
|
1101
|
-
var
|
1100
|
+
function _r(e) {
|
1101
|
+
var a = this.__data__, s = Lt(a, e);
|
1102
1102
|
if (s < 0)
|
1103
1103
|
return !1;
|
1104
|
-
var u =
|
1105
|
-
return s == u ?
|
1104
|
+
var u = a.length - 1;
|
1105
|
+
return s == u ? a.pop() : hr.call(a, s, 1), !0;
|
1106
1106
|
}
|
1107
|
-
function
|
1108
|
-
var
|
1109
|
-
return s < 0 ? void 0 :
|
1107
|
+
function vr(e) {
|
1108
|
+
var a = this.__data__, s = Lt(a, e);
|
1109
|
+
return s < 0 ? void 0 : a[s][1];
|
1110
1110
|
}
|
1111
|
-
function
|
1112
|
-
return
|
1111
|
+
function Ir(e) {
|
1112
|
+
return Lt(this.__data__, e) > -1;
|
1113
1113
|
}
|
1114
|
-
function
|
1115
|
-
var s = this.__data__, u =
|
1116
|
-
return u < 0 ? s.push([e,
|
1114
|
+
function Sr(e, a) {
|
1115
|
+
var s = this.__data__, u = Lt(s, e);
|
1116
|
+
return u < 0 ? s.push([e, a]) : s[u][1] = a, this;
|
1117
1117
|
}
|
1118
|
-
|
1118
|
+
W.prototype.clear = gr, W.prototype.delete = _r, W.prototype.get = vr, W.prototype.has = Ir, W.prototype.set = Sr;
|
1119
1119
|
function $(e) {
|
1120
|
-
var
|
1121
|
-
for (this.clear(); ++
|
1122
|
-
var u = e[
|
1120
|
+
var a = -1, s = e ? e.length : 0;
|
1121
|
+
for (this.clear(); ++a < s; ) {
|
1122
|
+
var u = e[a];
|
1123
1123
|
this.set(u[0], u[1]);
|
1124
1124
|
}
|
1125
1125
|
}
|
1126
|
-
function
|
1126
|
+
function wr() {
|
1127
1127
|
this.__data__ = {
|
1128
1128
|
hash: new lt(),
|
1129
|
-
map: new (vt ||
|
1129
|
+
map: new (vt || W)(),
|
1130
1130
|
string: new lt()
|
1131
1131
|
};
|
1132
1132
|
}
|
1133
|
-
function
|
1133
|
+
function Tr(e) {
|
1134
1134
|
return Tt(this, e).delete(e);
|
1135
1135
|
}
|
1136
|
-
function
|
1136
|
+
function Ar(e) {
|
1137
1137
|
return Tt(this, e).get(e);
|
1138
1138
|
}
|
1139
|
-
function
|
1139
|
+
function Er(e) {
|
1140
1140
|
return Tt(this, e).has(e);
|
1141
1141
|
}
|
1142
|
-
function
|
1143
|
-
return Tt(this, e).set(e,
|
1142
|
+
function kr(e, a) {
|
1143
|
+
return Tt(this, e).set(e, a), this;
|
1144
1144
|
}
|
1145
|
-
$.prototype.clear =
|
1145
|
+
$.prototype.clear = wr, $.prototype.delete = Tr, $.prototype.get = Ar, $.prototype.has = Er, $.prototype.set = kr;
|
1146
1146
|
function X(e) {
|
1147
|
-
this.__data__ = new
|
1147
|
+
this.__data__ = new W(e);
|
1148
1148
|
}
|
1149
|
-
function
|
1150
|
-
this.__data__ = new
|
1149
|
+
function Or() {
|
1150
|
+
this.__data__ = new W();
|
1151
1151
|
}
|
1152
|
-
function
|
1152
|
+
function xr(e) {
|
1153
1153
|
return this.__data__.delete(e);
|
1154
1154
|
}
|
1155
|
-
function
|
1155
|
+
function Mr(e) {
|
1156
1156
|
return this.__data__.get(e);
|
1157
1157
|
}
|
1158
|
-
function
|
1158
|
+
function Pr(e) {
|
1159
1159
|
return this.__data__.has(e);
|
1160
1160
|
}
|
1161
|
-
function
|
1161
|
+
function Dr(e, a) {
|
1162
1162
|
var s = this.__data__;
|
1163
|
-
if (s instanceof
|
1163
|
+
if (s instanceof W) {
|
1164
1164
|
var u = s.__data__;
|
1165
1165
|
if (!vt || u.length < n - 1)
|
1166
|
-
return u.push([e,
|
1166
|
+
return u.push([e, a]), this;
|
1167
1167
|
s = this.__data__ = new $(u);
|
1168
1168
|
}
|
1169
|
-
return s.set(e,
|
1169
|
+
return s.set(e, a), this;
|
1170
1170
|
}
|
1171
|
-
X.prototype.clear =
|
1172
|
-
function
|
1173
|
-
var s =
|
1171
|
+
X.prototype.clear = Or, X.prototype.delete = xr, X.prototype.get = Mr, X.prototype.has = Pr, X.prototype.set = Dr;
|
1172
|
+
function Ut(e, a) {
|
1173
|
+
var s = ue(e) || Wt(e) ? Vt(e.length, String) : [], u = s.length, A = !!u;
|
1174
1174
|
for (var I in e)
|
1175
|
-
st.call(e, I) && !(A && (I == "length" ||
|
1175
|
+
st.call(e, I) && !(A && (I == "length" || Kr(I, u))) && s.push(I);
|
1176
1176
|
return s;
|
1177
1177
|
}
|
1178
|
-
function
|
1179
|
-
var u = e[
|
1180
|
-
(!(st.call(e,
|
1178
|
+
function Re(e, a, s) {
|
1179
|
+
var u = e[a];
|
1180
|
+
(!(st.call(e, a) && Le(u, s)) || s === void 0 && !(a in e)) && (e[a] = s);
|
1181
1181
|
}
|
1182
|
-
function
|
1182
|
+
function Lt(e, a) {
|
1183
1183
|
for (var s = e.length; s--; )
|
1184
|
-
if (Le(e[s][0],
|
1184
|
+
if (Le(e[s][0], a))
|
1185
1185
|
return s;
|
1186
1186
|
return -1;
|
1187
1187
|
}
|
1188
|
-
function ot(e,
|
1189
|
-
return e &&
|
1188
|
+
function ot(e, a) {
|
1189
|
+
return e && ce(a, le(a), e);
|
1190
1190
|
}
|
1191
|
-
function
|
1192
|
-
var
|
1193
|
-
if (u && (
|
1194
|
-
return
|
1191
|
+
function se(e, a, s, u, A, I, P) {
|
1192
|
+
var M;
|
1193
|
+
if (u && (M = I ? u(e, A, I, P) : u(e)), M !== void 0)
|
1194
|
+
return M;
|
1195
1195
|
if (!ut(e))
|
1196
1196
|
return e;
|
1197
|
-
var
|
1198
|
-
if (
|
1199
|
-
if (
|
1200
|
-
return
|
1197
|
+
var U = ue(e);
|
1198
|
+
if (U) {
|
1199
|
+
if (M = Br(e), !a)
|
1200
|
+
return Lr(e, M);
|
1201
1201
|
} else {
|
1202
|
-
var
|
1203
|
-
if (
|
1204
|
-
return
|
1205
|
-
if (
|
1206
|
-
if (
|
1202
|
+
var C = dt(e), K = C == S || C == N;
|
1203
|
+
if (Ge(e))
|
1204
|
+
return Gt(e, a);
|
1205
|
+
if (C == h || C == c || K && !I) {
|
1206
|
+
if (Xt(e))
|
1207
1207
|
return I ? e : {};
|
1208
|
-
if (
|
1209
|
-
return
|
1208
|
+
if (M = ct(K ? {} : e), !a)
|
1209
|
+
return Gr(e, ot(M, e));
|
1210
1210
|
} else {
|
1211
|
-
if (!C
|
1211
|
+
if (!R[C])
|
1212
1212
|
return I ? e : {};
|
1213
|
-
|
1213
|
+
M = $r(e, C, se, a);
|
1214
1214
|
}
|
1215
1215
|
}
|
1216
|
-
|
1217
|
-
var q =
|
1216
|
+
P || (P = new X());
|
1217
|
+
var q = P.get(e);
|
1218
1218
|
if (q)
|
1219
1219
|
return q;
|
1220
|
-
if (
|
1221
|
-
var
|
1222
|
-
return
|
1223
|
-
|
1224
|
-
}),
|
1220
|
+
if (P.set(e, M), !U)
|
1221
|
+
var L = s ? Wr(e) : le(e);
|
1222
|
+
return Te(L || e, function(Y, B) {
|
1223
|
+
L && (B = Y, Y = e[B]), Re(M, B, se(Y, a, s, u, B, e, P));
|
1224
|
+
}), M;
|
1225
1225
|
}
|
1226
|
-
function
|
1227
|
-
return ut(e) ?
|
1226
|
+
function Cr(e) {
|
1227
|
+
return ut(e) ? Pe(e) : {};
|
1228
1228
|
}
|
1229
|
-
function
|
1230
|
-
var u =
|
1231
|
-
return
|
1229
|
+
function jr(e, a, s) {
|
1230
|
+
var u = a(e);
|
1231
|
+
return ue(e) ? u : Ae(u, s(e));
|
1232
1232
|
}
|
1233
|
-
function
|
1234
|
-
return
|
1233
|
+
function Fr(e) {
|
1234
|
+
return Ft.call(e);
|
1235
1235
|
}
|
1236
|
-
function
|
1237
|
-
if (!ut(e) ||
|
1236
|
+
function Rr(e) {
|
1237
|
+
if (!ut(e) || Vr(e))
|
1238
1238
|
return !1;
|
1239
|
-
var
|
1240
|
-
return
|
1239
|
+
var a = fe(e) || Xt(e) ? dr : sr;
|
1240
|
+
return a.test(V(e));
|
1241
1241
|
}
|
1242
|
-
function
|
1242
|
+
function zr(e) {
|
1243
1243
|
if (!Ne(e))
|
1244
|
-
return
|
1245
|
-
var
|
1244
|
+
return Ce(e);
|
1245
|
+
var a = [];
|
1246
1246
|
for (var s in Object(e))
|
1247
|
-
st.call(e, s) && s != "constructor" &&
|
1248
|
-
return
|
1247
|
+
st.call(e, s) && s != "constructor" && a.push(s);
|
1248
|
+
return a;
|
1249
1249
|
}
|
1250
|
-
function
|
1251
|
-
if (
|
1250
|
+
function Gt(e, a) {
|
1251
|
+
if (a)
|
1252
1252
|
return e.slice();
|
1253
1253
|
var s = new e.constructor(e.length);
|
1254
1254
|
return e.copy(s), s;
|
1255
1255
|
}
|
1256
|
-
function
|
1257
|
-
var
|
1258
|
-
return new
|
1256
|
+
function oe(e) {
|
1257
|
+
var a = new e.constructor(e.byteLength);
|
1258
|
+
return new Zt(a).set(new Zt(e)), a;
|
1259
1259
|
}
|
1260
|
-
function wt(e,
|
1261
|
-
var s =
|
1260
|
+
function wt(e, a) {
|
1261
|
+
var s = a ? oe(e.buffer) : e.buffer;
|
1262
1262
|
return new e.constructor(s, e.byteOffset, e.byteLength);
|
1263
1263
|
}
|
1264
|
-
function
|
1265
|
-
var u =
|
1266
|
-
return
|
1264
|
+
function ze(e, a, s) {
|
1265
|
+
var u = a ? s(ke(e), !0) : ke(e);
|
1266
|
+
return Yt(u, fr, new e.constructor());
|
1267
1267
|
}
|
1268
|
-
function
|
1269
|
-
var
|
1270
|
-
return
|
1268
|
+
function He(e) {
|
1269
|
+
var a = new e.constructor(e.source, ar.exec(e));
|
1270
|
+
return a.lastIndex = e.lastIndex, a;
|
1271
1271
|
}
|
1272
|
-
function
|
1273
|
-
var u =
|
1274
|
-
return
|
1272
|
+
function Hr(e, a, s) {
|
1273
|
+
var u = a ? s(Oe(e), !0) : Oe(e);
|
1274
|
+
return Yt(u, nt, new e.constructor());
|
1275
1275
|
}
|
1276
|
-
function
|
1277
|
-
return
|
1276
|
+
function Nr(e) {
|
1277
|
+
return je ? Object(je.call(e)) : {};
|
1278
1278
|
}
|
1279
|
-
function
|
1280
|
-
var s =
|
1279
|
+
function Ur(e, a) {
|
1280
|
+
var s = a ? oe(e.buffer) : e.buffer;
|
1281
1281
|
return new e.constructor(s, e.byteOffset, e.length);
|
1282
1282
|
}
|
1283
|
-
function
|
1283
|
+
function Lr(e, a) {
|
1284
1284
|
var s = -1, u = e.length;
|
1285
|
-
for (
|
1286
|
-
|
1287
|
-
return
|
1285
|
+
for (a || (a = Array(u)); ++s < u; )
|
1286
|
+
a[s] = e[s];
|
1287
|
+
return a;
|
1288
1288
|
}
|
1289
|
-
function
|
1289
|
+
function ce(e, a, s, u) {
|
1290
1290
|
s || (s = {});
|
1291
|
-
for (var A = -1, I =
|
1292
|
-
var
|
1293
|
-
|
1291
|
+
for (var A = -1, I = a.length; ++A < I; ) {
|
1292
|
+
var P = a[A], M = void 0;
|
1293
|
+
Re(s, P, M === void 0 ? e[P] : M);
|
1294
1294
|
}
|
1295
1295
|
return s;
|
1296
1296
|
}
|
1297
|
-
function
|
1298
|
-
return
|
1297
|
+
function Gr(e, a) {
|
1298
|
+
return ce(e, pt(e), a);
|
1299
1299
|
}
|
1300
|
-
function
|
1301
|
-
return
|
1300
|
+
function Wr(e) {
|
1301
|
+
return jr(e, le, pt);
|
1302
1302
|
}
|
1303
|
-
function Tt(e,
|
1303
|
+
function Tt(e, a) {
|
1304
1304
|
var s = e.__data__;
|
1305
|
-
return
|
1305
|
+
return Yr(a) ? s[typeof a == "string" ? "string" : "hash"] : s.map;
|
1306
1306
|
}
|
1307
|
-
function at(e,
|
1308
|
-
var s =
|
1309
|
-
return
|
1307
|
+
function at(e, a) {
|
1308
|
+
var s = Ee(e, a);
|
1309
|
+
return Rr(s) ? s : void 0;
|
1310
1310
|
}
|
1311
|
-
var pt =
|
1312
|
-
(
|
1313
|
-
var
|
1311
|
+
var pt = Qt ? qt(Qt, Object) : qr, dt = Fr;
|
1312
|
+
(Ht && dt(new Ht(new ArrayBuffer(1))) != O || vt && dt(new vt()) != y || it && dt(it.resolve()) != f || Nt && dt(new Nt()) != v || te && dt(new te()) != m) && (dt = function(e) {
|
1313
|
+
var a = Ft.call(e), s = a == h ? e.constructor : void 0, u = s ? V(s) : void 0;
|
1314
1314
|
if (u)
|
1315
1315
|
switch (u) {
|
1316
|
-
case Qt:
|
1317
|
-
return k;
|
1318
|
-
case St:
|
1319
|
-
return h;
|
1320
|
-
case te:
|
1321
|
-
return f;
|
1322
1316
|
case ee:
|
1323
|
-
return
|
1324
|
-
case
|
1317
|
+
return O;
|
1318
|
+
case St:
|
1325
1319
|
return y;
|
1320
|
+
case re:
|
1321
|
+
return f;
|
1322
|
+
case ne:
|
1323
|
+
return v;
|
1324
|
+
case ie:
|
1325
|
+
return m;
|
1326
1326
|
}
|
1327
|
-
return
|
1327
|
+
return a;
|
1328
1328
|
});
|
1329
|
-
function
|
1330
|
-
var
|
1331
|
-
return
|
1329
|
+
function Br(e) {
|
1330
|
+
var a = e.length, s = e.constructor(a);
|
1331
|
+
return a && typeof e[0] == "string" && st.call(e, "index") && (s.index = e.index, s.input = e.input), s;
|
1332
1332
|
}
|
1333
1333
|
function ct(e) {
|
1334
|
-
return typeof e.constructor == "function" && !Ne(e) ?
|
1334
|
+
return typeof e.constructor == "function" && !Ne(e) ? Cr(Q(e)) : {};
|
1335
1335
|
}
|
1336
|
-
function
|
1336
|
+
function $r(e, a, s, u) {
|
1337
1337
|
var A = e.constructor;
|
1338
|
-
switch (
|
1339
|
-
case
|
1340
|
-
return
|
1338
|
+
switch (a) {
|
1339
|
+
case H:
|
1340
|
+
return oe(e);
|
1341
1341
|
case d:
|
1342
1342
|
case E:
|
1343
1343
|
return new A(+e);
|
1344
|
-
case
|
1344
|
+
case O:
|
1345
1345
|
return wt(e, u);
|
1346
|
-
case
|
1347
|
-
case
|
1348
|
-
case
|
1349
|
-
case S:
|
1346
|
+
case k:
|
1347
|
+
case D:
|
1348
|
+
case w:
|
1350
1349
|
case T:
|
1351
|
-
case
|
1352
|
-
case
|
1353
|
-
case
|
1354
|
-
case
|
1355
|
-
|
1356
|
-
|
1357
|
-
|
1350
|
+
case x:
|
1351
|
+
case F:
|
1352
|
+
case Dt:
|
1353
|
+
case Ct:
|
1354
|
+
case Ie:
|
1355
|
+
return Ur(e, u);
|
1356
|
+
case y:
|
1357
|
+
return ze(e, u, s);
|
1358
1358
|
case p:
|
1359
1359
|
case _:
|
1360
1360
|
return new A(e);
|
1361
|
+
case g:
|
1362
|
+
return He(e);
|
1361
1363
|
case v:
|
1362
|
-
return
|
1364
|
+
return Hr(e, u, s);
|
1363
1365
|
case b:
|
1364
|
-
return
|
1365
|
-
case m:
|
1366
|
-
return Rr(e);
|
1366
|
+
return Nr(e);
|
1367
1367
|
}
|
1368
1368
|
}
|
1369
|
-
function
|
1370
|
-
return
|
1369
|
+
function Kr(e, a) {
|
1370
|
+
return a = a ?? o, !!a && (typeof e == "number" || or.test(e)) && e > -1 && e % 1 == 0 && e < a;
|
1371
1371
|
}
|
1372
|
-
function
|
1373
|
-
var
|
1374
|
-
return
|
1372
|
+
function Yr(e) {
|
1373
|
+
var a = typeof e;
|
1374
|
+
return a == "string" || a == "number" || a == "symbol" || a == "boolean" ? e !== "__proto__" : e === null;
|
1375
1375
|
}
|
1376
|
-
function
|
1377
|
-
return !!
|
1376
|
+
function Vr(e) {
|
1377
|
+
return !!xe && xe in e;
|
1378
1378
|
}
|
1379
1379
|
function Ne(e) {
|
1380
|
-
var
|
1380
|
+
var a = e && e.constructor, s = typeof a == "function" && a.prototype || jt;
|
1381
1381
|
return e === s;
|
1382
1382
|
}
|
1383
|
-
function
|
1383
|
+
function V(e) {
|
1384
1384
|
if (e != null) {
|
1385
1385
|
try {
|
1386
|
-
return
|
1386
|
+
return Me.call(e);
|
1387
1387
|
} catch {
|
1388
1388
|
}
|
1389
1389
|
try {
|
@@ -1393,106 +1393,106 @@ Xe.exports;
|
|
1393
1393
|
}
|
1394
1394
|
return "";
|
1395
1395
|
}
|
1396
|
-
function
|
1397
|
-
return
|
1396
|
+
function Ue(e) {
|
1397
|
+
return se(e, !0, !0);
|
1398
1398
|
}
|
1399
|
-
function Le(e,
|
1400
|
-
return e ===
|
1399
|
+
function Le(e, a) {
|
1400
|
+
return e === a || e !== e && a !== a;
|
1401
1401
|
}
|
1402
|
-
function
|
1403
|
-
return
|
1402
|
+
function Wt(e) {
|
1403
|
+
return Xr(e) && st.call(e, "callee") && (!De.call(e, "callee") || Ft.call(e) == c);
|
1404
1404
|
}
|
1405
|
-
var
|
1406
|
-
function
|
1407
|
-
return e != null &&
|
1405
|
+
var ue = Array.isArray;
|
1406
|
+
function Bt(e) {
|
1407
|
+
return e != null && We(e.length) && !fe(e);
|
1408
1408
|
}
|
1409
|
-
function
|
1410
|
-
return Be(e) &&
|
1409
|
+
function Xr(e) {
|
1410
|
+
return Be(e) && Bt(e);
|
1411
1411
|
}
|
1412
|
-
var
|
1413
|
-
function
|
1414
|
-
var
|
1415
|
-
return
|
1412
|
+
var Ge = zt || Jr;
|
1413
|
+
function fe(e) {
|
1414
|
+
var a = ut(e) ? Ft.call(e) : "";
|
1415
|
+
return a == S || a == N;
|
1416
1416
|
}
|
1417
|
-
function
|
1417
|
+
function We(e) {
|
1418
1418
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= o;
|
1419
1419
|
}
|
1420
1420
|
function ut(e) {
|
1421
|
-
var
|
1422
|
-
return !!e && (
|
1421
|
+
var a = typeof e;
|
1422
|
+
return !!e && (a == "object" || a == "function");
|
1423
1423
|
}
|
1424
1424
|
function Be(e) {
|
1425
1425
|
return !!e && typeof e == "object";
|
1426
1426
|
}
|
1427
|
-
function
|
1428
|
-
return
|
1427
|
+
function le(e) {
|
1428
|
+
return Bt(e) ? Ut(e) : zr(e);
|
1429
1429
|
}
|
1430
|
-
function
|
1430
|
+
function qr() {
|
1431
1431
|
return [];
|
1432
1432
|
}
|
1433
|
-
function
|
1433
|
+
function Jr() {
|
1434
1434
|
return !1;
|
1435
1435
|
}
|
1436
|
-
t.exports =
|
1437
|
-
})(
|
1438
|
-
var Ni =
|
1439
|
-
const tt = /* @__PURE__ */
|
1440
|
-
const
|
1441
|
-
|
1442
|
-
|
1443
|
-
o.forEach((c) => {
|
1444
|
-
c && c.family && (document.fonts.add(c), n(!0));
|
1445
|
-
});
|
1446
|
-
}).catch((o) => a(o));
|
1447
|
-
});
|
1448
|
-
}, Hi = (t) => new Promise((r, n) => {
|
1449
|
-
const a = new Image();
|
1450
|
-
console.warn("update cdn config for cors?"), a.onload = () => {
|
1451
|
-
const o = a.width, c = a.height;
|
1436
|
+
t.exports = Ue;
|
1437
|
+
})(qe, qe.exports);
|
1438
|
+
var Ni = qe.exports;
|
1439
|
+
const tt = /* @__PURE__ */ bn(Ni), Ui = (t) => new Promise((r, n) => {
|
1440
|
+
const i = new Image();
|
1441
|
+
console.warn("update cdn config for cors?"), i.onload = () => {
|
1442
|
+
const o = i.width, c = i.height;
|
1452
1443
|
r({ width: o, height: c });
|
1453
|
-
},
|
1444
|
+
}, i.onerror = (o) => {
|
1454
1445
|
n(o);
|
1455
|
-
},
|
1446
|
+
}, i.crossOrigin = "anonymous", i.src = t;
|
1456
1447
|
}), Li = (t) => new Promise((r, n) => {
|
1457
|
-
const
|
1458
|
-
|
1459
|
-
const o =
|
1448
|
+
const i = new Audio();
|
1449
|
+
i.preload = "auto", i.addEventListener("loadedmetadata", () => {
|
1450
|
+
const o = i.duration * 1e3;
|
1460
1451
|
r({ duration: o });
|
1461
|
-
}),
|
1452
|
+
}), i.addEventListener("error", (o) => {
|
1462
1453
|
n(o);
|
1463
|
-
}),
|
1464
|
-
}),
|
1465
|
-
const
|
1466
|
-
|
1467
|
-
const o =
|
1454
|
+
}), i.src = t, i.crossOrigin = "anonymous", i.load();
|
1455
|
+
}), Gi = (t) => new Promise((r, n) => {
|
1456
|
+
const i = document.createElement("video");
|
1457
|
+
i.preload = "auto", i.addEventListener("loadedmetadata", () => {
|
1458
|
+
const o = i.duration * 1e3, c = i.videoWidth, l = i.videoHeight;
|
1468
1459
|
r({ duration: o, width: c, height: l });
|
1469
|
-
}),
|
1460
|
+
}), i.addEventListener("error", (o) => {
|
1470
1461
|
n(o);
|
1471
|
-
}),
|
1472
|
-
}),
|
1462
|
+
}), i.src = t, i.load();
|
1463
|
+
}), Xn = (t, r) => {
|
1473
1464
|
const n = document.createElement("div");
|
1474
1465
|
Object.keys(r).forEach((o) => {
|
1475
1466
|
o !== "height" && (n.style[o] = r[o]);
|
1476
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";
|
1477
|
-
const
|
1478
|
-
return document.body.removeChild(n), parseFloat(
|
1479
|
-
},
|
1468
|
+
const i = getComputedStyle(n).height;
|
1469
|
+
return document.body.removeChild(n), parseFloat(i);
|
1470
|
+
}, Je = (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
|
+
Promise.all(r).then((o) => {
|
1474
|
+
o.forEach((c) => {
|
1475
|
+
c && c.family && (document.fonts.add(c), n(!0));
|
1476
|
+
});
|
1477
|
+
}).catch((o) => i(o));
|
1478
|
+
});
|
1479
|
+
}, er = {
|
1480
1480
|
color: "#000000",
|
1481
1481
|
x: 0,
|
1482
1482
|
y: 0,
|
1483
1483
|
blur: 0
|
1484
|
-
},
|
1484
|
+
}, ge = (t, r) => {
|
1485
1485
|
let n = r != null && r.trim ? r.trim.to - r.trim.from : (r == null ? void 0 : r.duration) || 5e3;
|
1486
|
-
const
|
1486
|
+
const i = {
|
1487
1487
|
from: 0,
|
1488
1488
|
to: n
|
1489
1489
|
};
|
1490
1490
|
if (!t)
|
1491
|
-
return
|
1491
|
+
return i;
|
1492
1492
|
if (t.from < 0)
|
1493
1493
|
return console.error(
|
1494
1494
|
"'from' must be a non-negative number. Returning default display."
|
1495
|
-
),
|
1495
|
+
), i;
|
1496
1496
|
if (t.from !== void 0 && t.to === void 0)
|
1497
1497
|
return {
|
1498
1498
|
from: t.from,
|
@@ -1502,11 +1502,11 @@ const tt = /* @__PURE__ */ mn(Ni), cn = (t) => {
|
|
1502
1502
|
if (t.to < 0)
|
1503
1503
|
return console.error(
|
1504
1504
|
"'to' must be a non-negative number. Returning default display."
|
1505
|
-
),
|
1505
|
+
), i;
|
1506
1506
|
if (t.to < t.from)
|
1507
1507
|
return console.error(
|
1508
1508
|
"'to' must be greater than or equal to 'from'. Returning default display."
|
1509
|
-
),
|
1509
|
+
), i;
|
1510
1510
|
}
|
1511
1511
|
return t;
|
1512
1512
|
}, qn = (t, r) => t ? t.from && !t.to ? {
|
@@ -1516,27 +1516,27 @@ const tt = /* @__PURE__ */ mn(Ni), cn = (t) => {
|
|
1516
1516
|
from: 0,
|
1517
1517
|
to: r.duration
|
1518
1518
|
};
|
1519
|
-
function
|
1519
|
+
function rr(t, r) {
|
1520
1520
|
const n = {
|
1521
1521
|
x: t.size.width / 2,
|
1522
1522
|
y: t.size.height / 2
|
1523
|
-
},
|
1523
|
+
}, i = { x: r.width / 2, y: r.height / 2 }, o = Math.min(
|
1524
1524
|
t.size.width / r.width,
|
1525
1525
|
t.size.height / r.height
|
1526
|
-
), c = n.x -
|
1526
|
+
), c = n.x - i.x;
|
1527
1527
|
return {
|
1528
|
-
top: `${n.y -
|
1528
|
+
top: `${n.y - i.y}px`,
|
1529
1529
|
left: `${c}px`,
|
1530
1530
|
transform: `scale(${o})`
|
1531
1531
|
};
|
1532
1532
|
}
|
1533
|
-
const
|
1534
|
-
const n = t.details.src,
|
1535
|
-
...
|
1536
|
-
}), c = qn(t.trim, { duration:
|
1537
|
-
width:
|
1538
|
-
height:
|
1539
|
-
duration:
|
1533
|
+
const Wi = async (t, r) => {
|
1534
|
+
const n = t.details.src, i = await Gi(n), o = rr(r, {
|
1535
|
+
...i
|
1536
|
+
}), c = qn(t.trim, { duration: i.duration }), l = {
|
1537
|
+
width: i.width,
|
1538
|
+
height: i.height,
|
1539
|
+
duration: i.duration,
|
1540
1540
|
opacity: 100,
|
1541
1541
|
src: n,
|
1542
1542
|
volume: t.details.volume ?? 100,
|
@@ -1547,13 +1547,17 @@ const Bi = async (t, r) => {
|
|
1547
1547
|
// Default border width
|
1548
1548
|
borderColor: t.details.borderColor || "#000000",
|
1549
1549
|
// Default border color
|
1550
|
-
boxShadow: t.details.boxShadow ||
|
1550
|
+
boxShadow: t.details.boxShadow || er,
|
1551
1551
|
top: o.top || "0px",
|
1552
1552
|
// Default top
|
1553
1553
|
left: o.left || "0px",
|
1554
1554
|
// Default left
|
1555
|
-
transform: o.transform
|
1555
|
+
transform: o.transform,
|
1556
1556
|
// Default transform
|
1557
|
+
blur: t.details.blur || 0,
|
1558
|
+
brightness: t.details.brightness || 100,
|
1559
|
+
flipX: t.details.flipX || !1,
|
1560
|
+
flipY: t.details.flipY || !1
|
1557
1561
|
};
|
1558
1562
|
return {
|
1559
1563
|
...t,
|
@@ -1561,15 +1565,15 @@ const Bi = async (t, r) => {
|
|
1561
1565
|
type: "video",
|
1562
1566
|
name: "video",
|
1563
1567
|
details: l,
|
1564
|
-
display:
|
1568
|
+
display: ge(t.display, { duration: i.duration, trim: c })
|
1565
1569
|
};
|
1566
|
-
},
|
1570
|
+
}, Bi = async (t) => {
|
1567
1571
|
const r = t.id, n = t.details, o = (await Li(n.src)).duration, c = qn(t.trim, { duration: o });
|
1568
1572
|
return {
|
1569
1573
|
id: r,
|
1570
1574
|
name: "",
|
1571
1575
|
type: "audio",
|
1572
|
-
display:
|
1576
|
+
display: ge(t.display, { duration: o, trim: c }),
|
1573
1577
|
trim: c,
|
1574
1578
|
details: {
|
1575
1579
|
src: n.src,
|
@@ -1580,18 +1584,18 @@ const Bi = async (t, r) => {
|
|
1580
1584
|
metadata: { ...t.metadata }
|
1581
1585
|
};
|
1582
1586
|
}, $i = async (t, r) => {
|
1583
|
-
const n = t.details,
|
1587
|
+
const n = t.details, i = await Ui(n.src), o = rr(r, i);
|
1584
1588
|
return {
|
1585
1589
|
id: t.id,
|
1586
1590
|
type: "image",
|
1587
1591
|
name: "image",
|
1588
|
-
display:
|
1592
|
+
display: ge(t.display),
|
1589
1593
|
details: {
|
1590
1594
|
src: n.src || "",
|
1591
1595
|
// Default source URL
|
1592
|
-
width: n.width ||
|
1596
|
+
width: n.width || i.width || 100,
|
1593
1597
|
// Default width
|
1594
|
-
height: n.height ||
|
1598
|
+
height: n.height || i.height || 100,
|
1595
1599
|
// Default height
|
1596
1600
|
opacity: n.opacity ?? 100,
|
1597
1601
|
// Default opacity
|
@@ -1601,7 +1605,7 @@ const Bi = async (t, r) => {
|
|
1601
1605
|
// Default border
|
1602
1606
|
borderRadius: n.borderRadius || 0,
|
1603
1607
|
// Default border radius
|
1604
|
-
boxShadow: n.boxShadow ||
|
1608
|
+
boxShadow: n.boxShadow || er,
|
1605
1609
|
// Default box shadow
|
1606
1610
|
top: o.top || "0px",
|
1607
1611
|
// Default top
|
@@ -1609,44 +1613,78 @@ const Bi = async (t, r) => {
|
|
1609
1613
|
// Default left
|
1610
1614
|
borderWidth: n.borderWidth ?? 0,
|
1611
1615
|
// Default border width
|
1612
|
-
borderColor: n.borderColor || "#000000"
|
1616
|
+
borderColor: n.borderColor || "#000000",
|
1613
1617
|
// Default border color
|
1618
|
+
blur: n.blur || 0,
|
1619
|
+
brightness: n.brightness || 100,
|
1620
|
+
flipX: n.flipX || !1,
|
1621
|
+
flipY: n.flipY || !1
|
1614
1622
|
},
|
1615
1623
|
metadata: t.metadata || {}
|
1616
1624
|
};
|
1617
|
-
}, Ki = async (t, r
|
1618
|
-
|
1619
|
-
n && await cn([
|
1625
|
+
}, Ki = async (t, r) => {
|
1626
|
+
await Je([
|
1620
1627
|
{
|
1621
1628
|
fontFamily: t.details.fontFamily,
|
1622
1629
|
url: t.details.fontUrl
|
1623
1630
|
}
|
1624
1631
|
]);
|
1625
|
-
const
|
1626
|
-
width:
|
1627
|
-
height:
|
1632
|
+
const n = t.id, i = t.details, o = Jn(i), c = Xn(t.details.text, o), l = rr(r, {
|
1633
|
+
width: o.width,
|
1634
|
+
height: c
|
1628
1635
|
});
|
1629
1636
|
return {
|
1630
|
-
id:
|
1631
|
-
name:
|
1632
|
-
type:
|
1633
|
-
display:
|
1637
|
+
id: n,
|
1638
|
+
name: "caption",
|
1639
|
+
type: "caption",
|
1640
|
+
display: ge(t.display),
|
1634
1641
|
details: {
|
1635
|
-
...
|
1636
|
-
text:
|
1642
|
+
...o,
|
1643
|
+
text: i.text || "",
|
1637
1644
|
// Default text content
|
1638
|
-
height:
|
1645
|
+
height: c,
|
1639
1646
|
// Default height
|
1640
|
-
fontUrl:
|
1641
|
-
top:
|
1642
|
-
left:
|
1643
|
-
borderWidth:
|
1644
|
-
borderColor:
|
1645
|
-
boxShadow:
|
1647
|
+
fontUrl: i.fontUrl,
|
1648
|
+
top: l.top,
|
1649
|
+
left: l.left,
|
1650
|
+
borderWidth: i.borderWidth || 0,
|
1651
|
+
borderColor: i.borderColor || "#000000",
|
1652
|
+
boxShadow: i.boxShadow || er
|
1646
1653
|
},
|
1647
1654
|
metadata: {}
|
1648
1655
|
};
|
1649
|
-
},
|
1656
|
+
}, Yi = async (t, r) => {
|
1657
|
+
await Je([
|
1658
|
+
{
|
1659
|
+
fontFamily: t.details.fontFamily,
|
1660
|
+
url: t.details.fontUrl
|
1661
|
+
}
|
1662
|
+
]);
|
1663
|
+
const n = t.id, i = t.details, o = Jn(i), c = Xn(t.details.text, o), l = rr(r, {
|
1664
|
+
width: o.width,
|
1665
|
+
height: c
|
1666
|
+
});
|
1667
|
+
return {
|
1668
|
+
id: n,
|
1669
|
+
name: "text",
|
1670
|
+
type: "text",
|
1671
|
+
display: ge(t.display),
|
1672
|
+
details: {
|
1673
|
+
...o,
|
1674
|
+
text: i.text || "",
|
1675
|
+
// Default text content
|
1676
|
+
height: c,
|
1677
|
+
// Default height
|
1678
|
+
fontUrl: i.fontUrl,
|
1679
|
+
top: l.top,
|
1680
|
+
left: l.left,
|
1681
|
+
borderWidth: i.borderWidth || 0,
|
1682
|
+
borderColor: i.borderColor || "#000000",
|
1683
|
+
boxShadow: i.boxShadow || er
|
1684
|
+
},
|
1685
|
+
metadata: {}
|
1686
|
+
};
|
1687
|
+
}, Jn = (t) => ({
|
1650
1688
|
fontFamily: t.fontFamily || "Arial",
|
1651
1689
|
// Default font family
|
1652
1690
|
fontSize: t.fontSize || "16px",
|
@@ -1685,63 +1723,52 @@ const Bi = async (t, r) => {
|
|
1685
1723
|
WebkitTextStrokeColor: t.WebkitTextStrokeColor || "#ffffff",
|
1686
1724
|
WebkitTextStrokeWidth: t.WebkitTextStrokeWidth || "0px",
|
1687
1725
|
top: t.top || "0px",
|
1688
|
-
left: t.left || "0px"
|
1689
|
-
|
1690
|
-
|
1726
|
+
left: t.left || "0px",
|
1727
|
+
textTransform: t.textTransform || "none"
|
1728
|
+
}), Vi = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
1729
|
+
let fn = (t = 21) => {
|
1691
1730
|
let r = "", n = crypto.getRandomValues(new Uint8Array(t));
|
1692
1731
|
for (; t--; )
|
1693
|
-
r +=
|
1732
|
+
r += Vi[n[t] & 63];
|
1694
1733
|
return r;
|
1695
1734
|
};
|
1696
1735
|
function Xi(t, r) {
|
1697
|
-
return t.
|
1698
|
-
...
|
1699
|
-
items:
|
1700
|
-
}));
|
1736
|
+
return t.filter((i) => ({
|
1737
|
+
...i,
|
1738
|
+
items: i.items.filter((o) => !r.includes(o))
|
1739
|
+
})).filter((i) => !i.items.length);
|
1701
1740
|
}
|
1702
|
-
function
|
1741
|
+
function Mn(t = 16) {
|
1703
1742
|
const r = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", n = r.charAt(Math.floor(Math.random() * r.length));
|
1704
|
-
let
|
1705
|
-
return
|
1743
|
+
let i = fn(t - 1);
|
1744
|
+
return i = i.replace(/[^a-zA-Z0-9]/g, "").slice(0, t - 1), n + i;
|
1706
1745
|
}
|
1707
1746
|
const Pn = (t) => Object.keys(t).reduce((r, n) => {
|
1708
|
-
const { display:
|
1709
|
-
return Math.max(r,
|
1710
|
-
}, 0)
|
1711
|
-
const a = await Ki(t, {
|
1712
|
-
size: {
|
1713
|
-
width: 1080,
|
1714
|
-
height: 1920
|
1715
|
-
},
|
1716
|
-
type: n
|
1717
|
-
}), { details: o, ...c } = a;
|
1718
|
-
return r.trackItemDetailsMap[c.id] = {
|
1719
|
-
type: n,
|
1720
|
-
details: o
|
1721
|
-
}, r.trackItemsMap[c.id] = c, c.id;
|
1722
|
-
};
|
1747
|
+
const { display: i } = t[n];
|
1748
|
+
return Math.max(r, i.to);
|
1749
|
+
}, 0);
|
1723
1750
|
function qi(t) {
|
1724
|
-
const r =
|
1725
|
-
|
1726
|
-
), n =
|
1727
|
-
|
1728
|
-
),
|
1729
|
-
|
1730
|
-
), o =
|
1731
|
-
|
1732
|
-
), c =
|
1733
|
-
|
1734
|
-
), l =
|
1735
|
-
|
1751
|
+
const r = $t.pipe(
|
1752
|
+
Kt(({ key: p }) => p.startsWith(ci))
|
1753
|
+
), n = $t.pipe(
|
1754
|
+
Kt(({ key: p }) => p.startsWith(ui))
|
1755
|
+
), i = $t.pipe(
|
1756
|
+
Kt(({ key: p }) => p.startsWith(fi))
|
1757
|
+
), o = $t.pipe(
|
1758
|
+
Kt(({ key: p }) => p.startsWith(li))
|
1759
|
+
), c = $t.pipe(
|
1760
|
+
Kt(({ key: p }) => p.startsWith(pi))
|
1761
|
+
), l = $t.pipe(
|
1762
|
+
Kt(({ key: p }) => p.startsWith(di))
|
1736
1763
|
), d = r.subscribe(async (p) => {
|
1737
|
-
var
|
1738
|
-
if (p.key ===
|
1739
|
-
const f = (
|
1740
|
-
const
|
1741
|
-
return (
|
1764
|
+
var h;
|
1765
|
+
if (p.key === hi) {
|
1766
|
+
const f = (h = p.value) == null ? void 0 : h.payload, g = f.trackItemIds, v = f.trackItemDetailsMap, _ = g.map(async (b) => {
|
1767
|
+
const m = v[b];
|
1768
|
+
return (m.type === "caption" || m.type === "text") && await Je([
|
1742
1769
|
{
|
1743
|
-
fontFamily:
|
1744
|
-
url:
|
1770
|
+
fontFamily: m.details.fontFamily,
|
1771
|
+
url: m.details.fontUrl
|
1745
1772
|
}
|
1746
1773
|
]), !0;
|
1747
1774
|
});
|
@@ -1750,125 +1777,152 @@ function qi(t) {
|
|
1750
1777
|
});
|
1751
1778
|
}
|
1752
1779
|
}), E = o.subscribe((p) => {
|
1753
|
-
if (p.key ===
|
1754
|
-
if (p.key ===
|
1755
|
-
}),
|
1756
|
-
var f,
|
1757
|
-
const
|
1758
|
-
if ((f = p.value) != null && f.payload.trackItemIds && (
|
1759
|
-
const _ = (
|
1760
|
-
(
|
1761
|
-
),
|
1762
|
-
Object.entries(
|
1763
|
-
([
|
1780
|
+
if (p.key === yi) return t.undo();
|
1781
|
+
if (p.key === mi) return t.redo();
|
1782
|
+
}), j = i.subscribe((p) => {
|
1783
|
+
var f, g, v;
|
1784
|
+
const h = [];
|
1785
|
+
if ((f = p.value) != null && f.payload.trackItemIds && (h.push((g = p.value) == null ? void 0 : g.payload.trackItemIds), t.updateState({ activeIds: h })), p.key === bi) {
|
1786
|
+
const _ = (v = p.value) == null ? void 0 : v.payload.trackItemIds, b = tt(t.getState()), m = _ && _.length ? _ : b.activeIds, H = b.trackItemIds, O = b.trackItemDetailsMap, k = H.filter(
|
1787
|
+
(F) => !m.includes(F)
|
1788
|
+
), D = Object.fromEntries(
|
1789
|
+
Object.entries(O).filter(
|
1790
|
+
([F]) => !m.includes(F)
|
1791
|
+
)
|
1792
|
+
), w = Xi(
|
1793
|
+
b.tracks,
|
1794
|
+
m
|
1795
|
+
), T = Object.fromEntries(
|
1796
|
+
Object.entries(b.trackItemsMap).filter(
|
1797
|
+
([F]) => !m.includes(F)
|
1764
1798
|
)
|
1765
|
-
),
|
1766
|
-
m.tracks,
|
1767
|
-
y
|
1768
|
-
), S = Pn(m.trackItemsMap);
|
1799
|
+
), x = Pn(b.trackItemsMap);
|
1769
1800
|
t.updateState(
|
1770
1801
|
{
|
1771
|
-
trackItemIds:
|
1772
|
-
trackItemDetailsMap:
|
1802
|
+
trackItemIds: k,
|
1803
|
+
trackItemDetailsMap: D,
|
1773
1804
|
activeIds: [],
|
1774
|
-
|
1775
|
-
|
1805
|
+
trackItemsMap: T,
|
1806
|
+
tracks: w,
|
1807
|
+
duration: x
|
1776
1808
|
},
|
1777
1809
|
{ updateHistory: !0, kind: "remove" }
|
1778
1810
|
);
|
1779
1811
|
}
|
1780
|
-
}),
|
1781
|
-
var
|
1782
|
-
const
|
1783
|
-
|
1784
|
-
|
1785
|
-
|
1786
|
-
|
1787
|
-
|
1812
|
+
}), S = n.subscribe(async (p) => {
|
1813
|
+
var _, b, m, H, O;
|
1814
|
+
const h = tt(t.getState());
|
1815
|
+
let f = [], g = "text";
|
1816
|
+
if (p.key === gi) {
|
1817
|
+
const k = (_ = p.value) == null ? void 0 : _.payload, D = [];
|
1818
|
+
for (const x of k) {
|
1819
|
+
const F = Ki(x, {
|
1820
|
+
size: {
|
1821
|
+
width: 1080,
|
1822
|
+
height: 1920
|
1823
|
+
}
|
1824
|
+
});
|
1825
|
+
D.push(F);
|
1826
|
+
}
|
1827
|
+
const w = await Promise.all(D), T = [];
|
1828
|
+
for (const x of w) {
|
1829
|
+
const F = x.id;
|
1830
|
+
T.push(F);
|
1831
|
+
const { details: Dt, ...Ct } = x;
|
1832
|
+
h.trackItemDetailsMap[F] = {
|
1833
|
+
type: g,
|
1834
|
+
details: Dt
|
1835
|
+
}, h.trackItemsMap[F] = Ct, h.trackItemIds.push(F);
|
1836
|
+
}
|
1837
|
+
f = T;
|
1788
1838
|
}
|
1789
1839
|
if (p.key === _i) {
|
1790
|
-
|
1791
|
-
|
1792
|
-
f,
|
1793
|
-
"text"
|
1794
|
-
);
|
1795
|
-
f.trackItemIds.push(R);
|
1796
|
-
}
|
1797
|
-
let b = "text";
|
1798
|
-
if (p.key === gi) {
|
1799
|
-
b = "image";
|
1800
|
-
const R = await $i((k = p.value) == null ? void 0 : k.payload, {
|
1840
|
+
g = "text";
|
1841
|
+
const k = await Yi((b = p.value) == null ? void 0 : b.payload, {
|
1801
1842
|
size: {
|
1802
1843
|
width: 1080,
|
1803
1844
|
height: 1920
|
1804
1845
|
}
|
1805
|
-
}), { details:
|
1806
|
-
|
1807
|
-
type:
|
1808
|
-
details:
|
1809
|
-
},
|
1846
|
+
}), { details: D, ...w } = k;
|
1847
|
+
h.trackItemDetailsMap[w.id] = {
|
1848
|
+
type: g,
|
1849
|
+
details: D
|
1850
|
+
}, h.trackItemsMap[w.id] = w, h.trackItemIds.push(w.id), f = [w.id];
|
1810
1851
|
}
|
1811
1852
|
if (p.key === vi) {
|
1812
|
-
|
1813
|
-
const
|
1814
|
-
|
1815
|
-
|
1816
|
-
|
1817
|
-
|
1853
|
+
g = "image";
|
1854
|
+
const k = await $i((m = p.value) == null ? void 0 : m.payload, {
|
1855
|
+
size: {
|
1856
|
+
width: 1080,
|
1857
|
+
height: 1920
|
1858
|
+
}
|
1859
|
+
}), { details: D, ...w } = k;
|
1860
|
+
h.trackItemDetailsMap[w.id] = {
|
1861
|
+
type: g,
|
1862
|
+
details: D
|
1863
|
+
}, h.trackItemsMap[w.id] = w, h.trackItemIds.push(w.id), f = [w.id];
|
1818
1864
|
}
|
1819
1865
|
if (p.key === Ii) {
|
1820
|
-
|
1821
|
-
const
|
1866
|
+
g = "audio";
|
1867
|
+
const k = await Bi((H = p.value) == null ? void 0 : H.payload), { details: D, ...w } = k;
|
1868
|
+
h.trackItemDetailsMap[w.id] = {
|
1869
|
+
type: g,
|
1870
|
+
details: D
|
1871
|
+
}, h.trackItemsMap[w.id] = w, h.trackItemIds.push(w.id), f = [w.id];
|
1872
|
+
}
|
1873
|
+
if (p.key === Si) {
|
1874
|
+
g = "video";
|
1875
|
+
const k = await Wi((O = p.value) == null ? void 0 : O.payload, {
|
1822
1876
|
size: {
|
1823
1877
|
width: 1080,
|
1824
1878
|
height: 1920
|
1825
1879
|
}
|
1826
|
-
}), { details:
|
1827
|
-
|
1828
|
-
type:
|
1829
|
-
details:
|
1830
|
-
},
|
1880
|
+
}), { details: D, ...w } = k;
|
1881
|
+
h.trackItemDetailsMap[w.id] = {
|
1882
|
+
type: g,
|
1883
|
+
details: D
|
1884
|
+
}, h.trackItemsMap[w.id] = w, h.trackItemIds.push(w.id), f = [w.id];
|
1831
1885
|
}
|
1832
|
-
|
1833
|
-
id:
|
1886
|
+
h.tracks.unshift({
|
1887
|
+
id: fn(),
|
1834
1888
|
accepts: ["text", "audio", "helper", "video", "image", "caption"],
|
1835
|
-
type:
|
1836
|
-
items:
|
1889
|
+
type: g,
|
1890
|
+
items: f,
|
1837
1891
|
magnetic: !1,
|
1838
1892
|
static: !1
|
1839
1893
|
});
|
1840
|
-
const
|
1894
|
+
const v = Pn(h.trackItemsMap);
|
1841
1895
|
t.updateState(
|
1842
1896
|
{
|
1843
|
-
trackItemIds:
|
1844
|
-
trackItemDetailsMap:
|
1845
|
-
trackItemsMap:
|
1846
|
-
tracks:
|
1847
|
-
duration:
|
1897
|
+
trackItemIds: h.trackItemIds,
|
1898
|
+
trackItemDetailsMap: h.trackItemDetailsMap,
|
1899
|
+
trackItemsMap: h.trackItemsMap,
|
1900
|
+
tracks: h.tracks,
|
1901
|
+
duration: v
|
1848
1902
|
},
|
1849
1903
|
{
|
1850
1904
|
updateHistory: !0,
|
1851
1905
|
kind: "add"
|
1852
1906
|
}
|
1853
1907
|
);
|
1854
|
-
}),
|
1855
|
-
var
|
1856
|
-
if (p.key ===
|
1857
|
-
const f = tt(t.getState()),
|
1908
|
+
}), N = c.subscribe(async (p) => {
|
1909
|
+
var h;
|
1910
|
+
if (p.key === wi) {
|
1911
|
+
const f = tt(t.getState()), g = (h = p.value) == null ? void 0 : h.options.time;
|
1858
1912
|
if (f.activeIds.length === 1) {
|
1859
|
-
const
|
1860
|
-
if (
|
1913
|
+
const v = f.activeIds[0], _ = f.trackItemsMap[v];
|
1914
|
+
if (g >= _.display.to || g <= _.display.from)
|
1861
1915
|
return;
|
1862
|
-
const
|
1916
|
+
const b = f.trackItemDetailsMap[v], m = Mn(), H = {
|
1863
1917
|
..._,
|
1864
|
-
id:
|
1918
|
+
id: m,
|
1865
1919
|
display: {
|
1866
|
-
from:
|
1920
|
+
from: g,
|
1867
1921
|
to: _.display.to
|
1868
1922
|
}
|
1869
1923
|
};
|
1870
|
-
f.trackItemsMap[
|
1871
|
-
|
1924
|
+
f.trackItemsMap[v].display.to = g, f.trackItemsMap[m] = H, f.trackItemIds.push(m), f.trackItemDetailsMap[m] = b, f.tracks.forEach((O) => {
|
1925
|
+
O.items.includes(v) && O.items.push(m);
|
1872
1926
|
}), t.updateState(
|
1873
1927
|
{
|
1874
1928
|
trackItemDetailsMap: f.trackItemDetailsMap,
|
@@ -1884,54 +1938,54 @@ function qi(t) {
|
|
1884
1938
|
}
|
1885
1939
|
return;
|
1886
1940
|
}
|
1887
|
-
if (p.key ===
|
1941
|
+
if (p.key === Ti) {
|
1888
1942
|
const f = tt(t.getState());
|
1889
1943
|
if (f.activeIds.length) {
|
1890
|
-
const
|
1891
|
-
activeIds:
|
1944
|
+
const g = f.activeIds, v = [], _ = {
|
1945
|
+
activeIds: g,
|
1892
1946
|
trackItemDetailsMap: {},
|
1893
1947
|
trackItemsMap: {},
|
1894
1948
|
tracks: []
|
1895
1949
|
};
|
1896
|
-
|
1897
|
-
_.trackItemDetailsMap[
|
1898
|
-
f.tracks.find((
|
1950
|
+
g.forEach((m) => {
|
1951
|
+
_.trackItemDetailsMap[m] = f.trackItemDetailsMap[m], _.trackItemsMap[m] = f.trackItemsMap[m], v.push(
|
1952
|
+
f.tracks.find((H) => H.items.includes(m))
|
1899
1953
|
);
|
1900
1954
|
});
|
1901
|
-
const
|
1902
|
-
|
1955
|
+
const b = /* @__PURE__ */ new Set();
|
1956
|
+
v.filter((m) => b.has(m.id) ? !1 : (b.add(m), !0)), _.tracks = Array.from(b.keys()), localStorage.setItem("DesignComboTemp", JSON.stringify(_));
|
1903
1957
|
}
|
1904
1958
|
}
|
1905
|
-
if (p.key ===
|
1959
|
+
if (p.key === Ai) {
|
1906
1960
|
const f = localStorage.getItem("DesignComboTemp");
|
1907
1961
|
if (!f) return;
|
1908
|
-
const
|
1909
|
-
const
|
1910
|
-
(
|
1962
|
+
const g = tt(t.getState()), v = JSON.parse(f), _ = {}, b = v.trackItemsMap, m = v.trackItemDetailsMap, H = v.tracks, O = [], k = v.activeIds.map(async (D) => {
|
1963
|
+
const w = m[D];
|
1964
|
+
(w.type === "caption" || w.type === "text") && await Je([
|
1911
1965
|
{
|
1912
|
-
fontFamily:
|
1913
|
-
url:
|
1966
|
+
fontFamily: w.details.fontFamily,
|
1967
|
+
url: w.details.fontUrl
|
1914
1968
|
}
|
1915
1969
|
]);
|
1916
|
-
const
|
1917
|
-
return _[
|
1918
|
-
...
|
1919
|
-
id:
|
1920
|
-
},
|
1970
|
+
const T = Mn();
|
1971
|
+
return _[D] = T, g.trackItemsMap[T] = {
|
1972
|
+
...b[D],
|
1973
|
+
id: T
|
1974
|
+
}, g.trackItemDetailsMap[T] = w, g.trackItemIds.push(T), !0;
|
1921
1975
|
});
|
1922
|
-
await Promise.all(
|
1923
|
-
const
|
1924
|
-
...
|
1925
|
-
items:
|
1926
|
-
id:
|
1976
|
+
await Promise.all(k), H.forEach((D) => {
|
1977
|
+
const w = D.items.map((x) => _[x]), T = {
|
1978
|
+
...D,
|
1979
|
+
items: w,
|
1980
|
+
id: fn()
|
1927
1981
|
};
|
1928
|
-
|
1929
|
-
}),
|
1982
|
+
O.push(T);
|
1983
|
+
}), g.tracks = [...g.tracks, ...O], t.updateState(
|
1930
1984
|
{
|
1931
|
-
trackItemDetailsMap:
|
1932
|
-
tracks:
|
1933
|
-
trackItemIds:
|
1934
|
-
trackItemsMap:
|
1985
|
+
trackItemDetailsMap: g.trackItemDetailsMap,
|
1986
|
+
tracks: g.tracks,
|
1987
|
+
trackItemIds: g.trackItemIds,
|
1988
|
+
trackItemsMap: g.trackItemsMap
|
1935
1989
|
},
|
1936
1990
|
{
|
1937
1991
|
updateHistory: !0,
|
@@ -1939,20 +1993,20 @@ function qi(t) {
|
|
1939
1993
|
}
|
1940
1994
|
);
|
1941
1995
|
}
|
1942
|
-
}),
|
1943
|
-
var
|
1944
|
-
if (p.key ===
|
1945
|
-
const
|
1996
|
+
}), y = l.subscribe((p) => {
|
1997
|
+
var h, f;
|
1998
|
+
if (p.key === Ei) {
|
1999
|
+
const g = t.getState(), v = tt(g.trackItemDetailsMap), _ = Object.keys((h = p.value) == null ? void 0 : h.payload);
|
1946
2000
|
if (!_.length) return;
|
1947
|
-
const
|
1948
|
-
_.forEach((
|
1949
|
-
|
1950
|
-
...
|
1951
|
-
...m
|
2001
|
+
const b = (f = p.value) == null ? void 0 : f.payload;
|
2002
|
+
_.forEach((m) => {
|
2003
|
+
v[m].details = {
|
2004
|
+
...v[m].details,
|
2005
|
+
...b[m].details
|
1952
2006
|
};
|
1953
2007
|
}), t.updateState(
|
1954
2008
|
{
|
1955
|
-
trackItemDetailsMap: { ...
|
2009
|
+
trackItemDetailsMap: { ...v }
|
1956
2010
|
},
|
1957
2011
|
{
|
1958
2012
|
updateHistory: !0,
|
@@ -1963,47 +2017,47 @@ function qi(t) {
|
|
1963
2017
|
});
|
1964
2018
|
return {
|
1965
2019
|
unsubscribe: () => {
|
1966
|
-
|
2020
|
+
S.unsubscribe(), N.unsubscribe(), y.unsubscribe(), E.unsubscribe(), j.unsubscribe(), d.unsubscribe();
|
1967
2021
|
}
|
1968
2022
|
};
|
1969
2023
|
}
|
1970
2024
|
const Ji = { Date: !0, RegExp: !0, String: !0, Number: !0 };
|
1971
|
-
function
|
2025
|
+
function Zn(t, r, n = { cyclesFix: !0 }, i = []) {
|
1972
2026
|
var d, E;
|
1973
2027
|
let o = [];
|
1974
2028
|
const c = Array.isArray(t);
|
1975
|
-
for (const
|
1976
|
-
const
|
1977
|
-
if (!(
|
2029
|
+
for (const j in t) {
|
2030
|
+
const S = t[j], N = c ? +j : j;
|
2031
|
+
if (!(j in r)) {
|
1978
2032
|
o.push({
|
1979
2033
|
type: "REMOVE",
|
1980
|
-
path: [
|
1981
|
-
oldValue: t[
|
2034
|
+
path: [N],
|
2035
|
+
oldValue: t[j]
|
1982
2036
|
});
|
1983
2037
|
continue;
|
1984
2038
|
}
|
1985
|
-
const
|
1986
|
-
if (
|
1987
|
-
const
|
1988
|
-
o.push.apply(o,
|
1989
|
-
} else
|
1990
|
-
!(Number.isNaN(
|
1991
|
-
path: [
|
2039
|
+
const y = r[j], p = typeof S == "object" && typeof y == "object" && Array.isArray(S) === Array.isArray(y);
|
2040
|
+
if (S && y && p && !Ji[(E = (d = Object.getPrototypeOf(S)) == null ? void 0 : d.constructor) == null ? void 0 : E.name] && (!n.cyclesFix || !i.includes(S))) {
|
2041
|
+
const h = Zn(S, y, n, n.cyclesFix ? i.concat([S]) : []);
|
2042
|
+
o.push.apply(o, h.map((f) => (f.path.unshift(N), f)));
|
2043
|
+
} else S !== y && // treat NaN values as equivalent
|
2044
|
+
!(Number.isNaN(S) && Number.isNaN(y)) && !(p && (isNaN(S) ? S + "" == y + "" : +S == +y)) && o.push({
|
2045
|
+
path: [N],
|
1992
2046
|
type: "CHANGE",
|
1993
|
-
value:
|
1994
|
-
oldValue:
|
2047
|
+
value: y,
|
2048
|
+
oldValue: S
|
1995
2049
|
});
|
1996
2050
|
}
|
1997
2051
|
const l = Array.isArray(r);
|
1998
|
-
for (const
|
1999
|
-
|
2052
|
+
for (const j in r)
|
2053
|
+
j in t || o.push({
|
2000
2054
|
type: "CREATE",
|
2001
|
-
path: [l ? +
|
2002
|
-
value: r[
|
2055
|
+
path: [l ? +j : j],
|
2056
|
+
value: r[j]
|
2003
2057
|
});
|
2004
2058
|
return o;
|
2005
2059
|
}
|
2006
|
-
var gn = Symbol.for("immer-nothing"),
|
2060
|
+
var gn = Symbol.for("immer-nothing"), pe = Symbol.for("immer-draftable"), J = Symbol.for("immer-state"), Qn = process.env.NODE_ENV !== "production" ? [
|
2007
2061
|
// All error codes, starting by 0:
|
2008
2062
|
function(t) {
|
2009
2063
|
return `The plugin for '${t}' has not been loaded into Immer. To enable the plugin, import and call \`enable${t}()\` when initializing your application.`;
|
@@ -2036,8 +2090,8 @@ var gn = Symbol.for("immer-nothing"), fe = Symbol.for("immer-draftable"), J = Sy
|
|
2036
2090
|
] : [];
|
2037
2091
|
function G(t, ...r) {
|
2038
2092
|
if (process.env.NODE_ENV !== "production") {
|
2039
|
-
const n =
|
2040
|
-
throw new Error(`[Immer] ${
|
2093
|
+
const n = Qn[t], i = typeof n == "function" ? n.apply(null, r) : n;
|
2094
|
+
throw new Error(`[Immer] ${i}`);
|
2041
2095
|
}
|
2042
2096
|
throw new Error(
|
2043
2097
|
`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`
|
@@ -2047,12 +2101,12 @@ var Ot = Object.getPrototypeOf;
|
|
2047
2101
|
function xt(t) {
|
2048
2102
|
return !!t && !!t[J];
|
2049
2103
|
}
|
2050
|
-
function
|
2104
|
+
function gt(t) {
|
2051
2105
|
var r;
|
2052
|
-
return t ?
|
2106
|
+
return t ? ti(t) || Array.isArray(t) || !!t[pe] || !!((r = t.constructor) != null && r[pe]) || _e(t) || ve(t) : !1;
|
2053
2107
|
}
|
2054
2108
|
var Zi = Object.prototype.constructor.toString();
|
2055
|
-
function
|
2109
|
+
function ti(t) {
|
2056
2110
|
if (!t || typeof t != "object")
|
2057
2111
|
return !1;
|
2058
2112
|
const r = Ot(t);
|
@@ -2061,52 +2115,52 @@ function Qn(t) {
|
|
2061
2115
|
const n = Object.hasOwnProperty.call(r, "constructor") && r.constructor;
|
2062
2116
|
return n === Object ? !0 : typeof n == "function" && Function.toString.call(n) === Zi;
|
2063
2117
|
}
|
2064
|
-
function
|
2118
|
+
function de(t, r) {
|
2065
2119
|
Mt(t) === 0 ? Reflect.ownKeys(t).forEach((n) => {
|
2066
2120
|
r(n, t[n], t);
|
2067
|
-
}) : t.forEach((n,
|
2121
|
+
}) : t.forEach((n, i) => r(i, n, t));
|
2068
2122
|
}
|
2069
2123
|
function Mt(t) {
|
2070
2124
|
const r = t[J];
|
2071
|
-
return r ? r.type_ : Array.isArray(t) ? 1 :
|
2125
|
+
return r ? r.type_ : Array.isArray(t) ? 1 : _e(t) ? 2 : ve(t) ? 3 : 0;
|
2072
2126
|
}
|
2073
|
-
function
|
2127
|
+
function he(t, r) {
|
2074
2128
|
return Mt(t) === 2 ? t.has(r) : Object.prototype.hasOwnProperty.call(t, r);
|
2075
2129
|
}
|
2076
|
-
function
|
2130
|
+
function tn(t, r) {
|
2077
2131
|
return Mt(t) === 2 ? t.get(r) : t[r];
|
2078
2132
|
}
|
2079
|
-
function
|
2080
|
-
const
|
2081
|
-
|
2133
|
+
function ei(t, r, n) {
|
2134
|
+
const i = Mt(t);
|
2135
|
+
i === 2 ? t.set(r, n) : i === 3 ? t.add(n) : t[r] = n;
|
2082
2136
|
}
|
2083
2137
|
function Qi(t, r) {
|
2084
2138
|
return t === r ? t !== 0 || 1 / t === 1 / r : t !== t && r !== r;
|
2085
2139
|
}
|
2086
|
-
function
|
2140
|
+
function _e(t) {
|
2087
2141
|
return t instanceof Map;
|
2088
2142
|
}
|
2089
|
-
function
|
2143
|
+
function ve(t) {
|
2090
2144
|
return t instanceof Set;
|
2091
2145
|
}
|
2092
2146
|
function kt(t) {
|
2093
2147
|
return t.copy_ || t.base_;
|
2094
2148
|
}
|
2095
|
-
function
|
2096
|
-
if (
|
2149
|
+
function ln(t, r) {
|
2150
|
+
if (_e(t))
|
2097
2151
|
return new Map(t);
|
2098
|
-
if (
|
2152
|
+
if (ve(t))
|
2099
2153
|
return new Set(t);
|
2100
2154
|
if (Array.isArray(t))
|
2101
2155
|
return Array.prototype.slice.call(t);
|
2102
|
-
const n =
|
2156
|
+
const n = ti(t);
|
2103
2157
|
if (r === !0 || r === "class_only" && !n) {
|
2104
|
-
const
|
2105
|
-
delete
|
2106
|
-
let o = Reflect.ownKeys(
|
2158
|
+
const i = Object.getOwnPropertyDescriptors(t);
|
2159
|
+
delete i[J];
|
2160
|
+
let o = Reflect.ownKeys(i);
|
2107
2161
|
for (let c = 0; c < o.length; c++) {
|
2108
|
-
const l = o[c], d =
|
2109
|
-
d.writable === !1 && (d.writable = !0, d.configurable = !0), (d.get || d.set) && (
|
2162
|
+
const l = o[c], d = i[l];
|
2163
|
+
d.writable === !1 && (d.writable = !0, d.configurable = !0), (d.get || d.set) && (i[l] = {
|
2110
2164
|
configurable: !0,
|
2111
2165
|
writable: !0,
|
2112
2166
|
// could live with !!desc.set as well here...
|
@@ -2114,35 +2168,35 @@ function fn(t, r) {
|
|
2114
2168
|
value: t[l]
|
2115
2169
|
});
|
2116
2170
|
}
|
2117
|
-
return Object.create(Ot(t),
|
2171
|
+
return Object.create(Ot(t), i);
|
2118
2172
|
} else {
|
2119
|
-
const
|
2120
|
-
if (
|
2173
|
+
const i = Ot(t);
|
2174
|
+
if (i !== null && n)
|
2121
2175
|
return { ...t };
|
2122
|
-
const o = Object.create(
|
2176
|
+
const o = Object.create(i);
|
2123
2177
|
return Object.assign(o, t);
|
2124
2178
|
}
|
2125
2179
|
}
|
2126
|
-
function
|
2127
|
-
return
|
2180
|
+
function _n(t, r = !1) {
|
2181
|
+
return nr(t) || xt(t) || !gt(t) || (Mt(t) > 1 && (t.set = t.add = t.clear = t.delete = ta), Object.freeze(t), r && Object.entries(t).forEach(([n, i]) => _n(i, !0))), t;
|
2128
2182
|
}
|
2129
2183
|
function ta() {
|
2130
2184
|
G(2);
|
2131
2185
|
}
|
2132
|
-
function
|
2186
|
+
function nr(t) {
|
2133
2187
|
return Object.isFrozen(t);
|
2134
2188
|
}
|
2135
|
-
var
|
2189
|
+
var pn = {};
|
2136
2190
|
function Pt(t) {
|
2137
|
-
const r =
|
2191
|
+
const r = pn[t];
|
2138
2192
|
return r || G(0, t), r;
|
2139
2193
|
}
|
2140
2194
|
function ea(t, r) {
|
2141
|
-
|
2195
|
+
pn[t] || (pn[t] = r);
|
2142
2196
|
}
|
2143
|
-
var
|
2144
|
-
function
|
2145
|
-
return
|
2197
|
+
var ye;
|
2198
|
+
function ri() {
|
2199
|
+
return ye;
|
2146
2200
|
}
|
2147
2201
|
function ra(t, r) {
|
2148
2202
|
return {
|
@@ -2155,84 +2209,84 @@ function ra(t, r) {
|
|
2155
2209
|
unfinalizedDrafts_: 0
|
2156
2210
|
};
|
2157
2211
|
}
|
2158
|
-
function
|
2212
|
+
function Dn(t, r) {
|
2159
2213
|
r && (Pt("Patches"), t.patches_ = [], t.inversePatches_ = [], t.patchListener_ = r);
|
2160
2214
|
}
|
2161
|
-
function pn(t) {
|
2162
|
-
dn(t), t.drafts_.forEach(na), t.drafts_ = null;
|
2163
|
-
}
|
2164
2215
|
function dn(t) {
|
2165
|
-
t
|
2216
|
+
hn(t), t.drafts_.forEach(na), t.drafts_ = null;
|
2217
|
+
}
|
2218
|
+
function hn(t) {
|
2219
|
+
t === ye && (ye = t.parent_);
|
2166
2220
|
}
|
2167
|
-
function
|
2168
|
-
return
|
2221
|
+
function Cn(t) {
|
2222
|
+
return ye = ra(ye, t);
|
2169
2223
|
}
|
2170
2224
|
function na(t) {
|
2171
2225
|
const r = t[J];
|
2172
2226
|
r.type_ === 0 || r.type_ === 1 ? r.revoke_() : r.revoked_ = !0;
|
2173
2227
|
}
|
2174
|
-
function
|
2228
|
+
function jn(t, r) {
|
2175
2229
|
r.unfinalizedDrafts_ = r.drafts_.length;
|
2176
2230
|
const n = r.drafts_[0];
|
2177
|
-
return t !== void 0 && t !== n ? (n[J].modified_ && (
|
2231
|
+
return t !== void 0 && t !== n ? (n[J].modified_ && (dn(r), G(4)), gt(t) && (t = Ze(r, t), r.parent_ || Qe(r, t)), r.patches_ && Pt("Patches").generateReplacementPatches_(
|
2178
2232
|
n[J].base_,
|
2179
2233
|
t,
|
2180
2234
|
r.patches_,
|
2181
2235
|
r.inversePatches_
|
2182
|
-
)) : t =
|
2236
|
+
)) : t = Ze(r, n, []), dn(r), r.patches_ && r.patchListener_(r.patches_, r.inversePatches_), t !== gn ? t : void 0;
|
2183
2237
|
}
|
2184
|
-
function
|
2185
|
-
if (
|
2238
|
+
function Ze(t, r, n) {
|
2239
|
+
if (nr(r))
|
2186
2240
|
return r;
|
2187
|
-
const
|
2188
|
-
if (!
|
2189
|
-
return
|
2241
|
+
const i = r[J];
|
2242
|
+
if (!i)
|
2243
|
+
return de(
|
2190
2244
|
r,
|
2191
|
-
(o, c) =>
|
2245
|
+
(o, c) => Fn(t, i, r, o, c, n)
|
2192
2246
|
), r;
|
2193
|
-
if (
|
2247
|
+
if (i.scope_ !== t)
|
2194
2248
|
return r;
|
2195
|
-
if (!
|
2196
|
-
return
|
2197
|
-
if (!
|
2198
|
-
|
2199
|
-
const o =
|
2249
|
+
if (!i.modified_)
|
2250
|
+
return Qe(t, i.base_, !0), i.base_;
|
2251
|
+
if (!i.finalized_) {
|
2252
|
+
i.finalized_ = !0, i.scope_.unfinalizedDrafts_--;
|
2253
|
+
const o = i.copy_;
|
2200
2254
|
let c = o, l = !1;
|
2201
|
-
|
2255
|
+
i.type_ === 3 && (c = new Set(o), o.clear(), l = !0), de(
|
2202
2256
|
c,
|
2203
|
-
(d, E) =>
|
2204
|
-
),
|
2205
|
-
|
2257
|
+
(d, E) => Fn(t, i, o, d, E, n, l)
|
2258
|
+
), Qe(t, o, !1), n && t.patches_ && Pt("Patches").generatePatches_(
|
2259
|
+
i,
|
2206
2260
|
n,
|
2207
2261
|
t.patches_,
|
2208
2262
|
t.inversePatches_
|
2209
2263
|
);
|
2210
2264
|
}
|
2211
|
-
return
|
2265
|
+
return i.copy_;
|
2212
2266
|
}
|
2213
|
-
function
|
2267
|
+
function Fn(t, r, n, i, o, c, l) {
|
2214
2268
|
if (process.env.NODE_ENV !== "production" && o === n && G(5), xt(o)) {
|
2215
2269
|
const d = c && r && r.type_ !== 3 && // Set objects are atomic since they have no keys.
|
2216
|
-
!
|
2217
|
-
if (
|
2270
|
+
!he(r.assigned_, i) ? c.concat(i) : void 0, E = Ze(t, o, d);
|
2271
|
+
if (ei(n, i, E), xt(E))
|
2218
2272
|
t.canAutoFreeze_ = !1;
|
2219
2273
|
else
|
2220
2274
|
return;
|
2221
2275
|
} else l && n.add(o);
|
2222
|
-
if (
|
2276
|
+
if (gt(o) && !nr(o)) {
|
2223
2277
|
if (!t.immer_.autoFreeze_ && t.unfinalizedDrafts_ < 1)
|
2224
2278
|
return;
|
2225
|
-
|
2279
|
+
Ze(t, o), (!r || !r.scope_.parent_) && typeof i != "symbol" && Object.prototype.propertyIsEnumerable.call(n, i) && Qe(t, o);
|
2226
2280
|
}
|
2227
2281
|
}
|
2228
|
-
function
|
2229
|
-
!t.parent_ && t.immer_.autoFreeze_ && t.canAutoFreeze_ &&
|
2282
|
+
function Qe(t, r, n = !1) {
|
2283
|
+
!t.parent_ && t.immer_.autoFreeze_ && t.canAutoFreeze_ && _n(r, n);
|
2230
2284
|
}
|
2231
2285
|
function ia(t, r) {
|
2232
|
-
const n = Array.isArray(t),
|
2286
|
+
const n = Array.isArray(t), i = {
|
2233
2287
|
type_: n ? 1 : 0,
|
2234
2288
|
// Track which produce call this is associated with.
|
2235
|
-
scope_: r ? r.scope_ :
|
2289
|
+
scope_: r ? r.scope_ : ri(),
|
2236
2290
|
// True for both shallow and deep changes.
|
2237
2291
|
modified_: !1,
|
2238
2292
|
// Used during finalization.
|
@@ -2252,20 +2306,20 @@ function ia(t, r) {
|
|
2252
2306
|
revoke_: null,
|
2253
2307
|
isManual_: !1
|
2254
2308
|
};
|
2255
|
-
let o =
|
2256
|
-
n && (o = [
|
2309
|
+
let o = i, c = vn;
|
2310
|
+
n && (o = [i], c = me);
|
2257
2311
|
const { revoke: l, proxy: d } = Proxy.revocable(o, c);
|
2258
|
-
return
|
2312
|
+
return i.draft_ = d, i.revoke_ = l, d;
|
2259
2313
|
}
|
2260
|
-
var
|
2314
|
+
var vn = {
|
2261
2315
|
get(t, r) {
|
2262
2316
|
if (r === J)
|
2263
2317
|
return t;
|
2264
2318
|
const n = kt(t);
|
2265
|
-
if (!
|
2319
|
+
if (!he(n, r))
|
2266
2320
|
return aa(t, n, r);
|
2267
|
-
const
|
2268
|
-
return t.finalized_ || !
|
2321
|
+
const i = n[r];
|
2322
|
+
return t.finalized_ || !gt(i) ? i : i === en(t.base_, r) ? (rn(t), t.copy_[r] = mn(i, t)) : i;
|
2269
2323
|
},
|
2270
2324
|
has(t, r) {
|
2271
2325
|
return r in kt(t);
|
@@ -2274,32 +2328,32 @@ var In = {
|
|
2274
2328
|
return Reflect.ownKeys(kt(t));
|
2275
2329
|
},
|
2276
2330
|
set(t, r, n) {
|
2277
|
-
const
|
2278
|
-
if (
|
2279
|
-
return
|
2331
|
+
const i = ni(kt(t), r);
|
2332
|
+
if (i != null && i.set)
|
2333
|
+
return i.set.call(t.draft_, n), !0;
|
2280
2334
|
if (!t.modified_) {
|
2281
|
-
const o =
|
2335
|
+
const o = en(kt(t), r), c = o == null ? void 0 : o[J];
|
2282
2336
|
if (c && c.base_ === n)
|
2283
2337
|
return t.copy_[r] = n, t.assigned_[r] = !1, !0;
|
2284
|
-
if (Qi(n, o) && (n !== void 0 ||
|
2338
|
+
if (Qi(n, o) && (n !== void 0 || he(t.base_, r)))
|
2285
2339
|
return !0;
|
2286
|
-
|
2340
|
+
rn(t), yn(t);
|
2287
2341
|
}
|
2288
2342
|
return t.copy_[r] === n && // special case: handle new props with value 'undefined'
|
2289
2343
|
(n !== void 0 || r in t.copy_) || // special case: NaN
|
2290
2344
|
Number.isNaN(n) && Number.isNaN(t.copy_[r]) || (t.copy_[r] = n, t.assigned_[r] = !0), !0;
|
2291
2345
|
},
|
2292
2346
|
deleteProperty(t, r) {
|
2293
|
-
return
|
2347
|
+
return en(t.base_, r) !== void 0 || r in t.base_ ? (t.assigned_[r] = !1, rn(t), yn(t)) : delete t.assigned_[r], t.copy_ && delete t.copy_[r], !0;
|
2294
2348
|
},
|
2295
2349
|
// Note: We never coerce `desc.value` into an Immer draft, because we can't make
|
2296
2350
|
// the same guarantee in ES5 mode.
|
2297
2351
|
getOwnPropertyDescriptor(t, r) {
|
2298
|
-
const n = kt(t),
|
2299
|
-
return
|
2352
|
+
const n = kt(t), i = Reflect.getOwnPropertyDescriptor(n, r);
|
2353
|
+
return i && {
|
2300
2354
|
writable: !0,
|
2301
2355
|
configurable: t.type_ !== 1 || r !== "length",
|
2302
|
-
enumerable:
|
2356
|
+
enumerable: i.enumerable,
|
2303
2357
|
value: n[r]
|
2304
2358
|
};
|
2305
2359
|
},
|
@@ -2312,77 +2366,77 @@ var In = {
|
|
2312
2366
|
setPrototypeOf() {
|
2313
2367
|
G(12);
|
2314
2368
|
}
|
2315
|
-
},
|
2316
|
-
|
2317
|
-
|
2369
|
+
}, me = {};
|
2370
|
+
de(vn, (t, r) => {
|
2371
|
+
me[t] = function() {
|
2318
2372
|
return arguments[0] = arguments[0][0], r.apply(this, arguments);
|
2319
2373
|
};
|
2320
2374
|
});
|
2321
|
-
|
2322
|
-
return process.env.NODE_ENV !== "production" && isNaN(parseInt(r)) && G(13),
|
2375
|
+
me.deleteProperty = function(t, r) {
|
2376
|
+
return process.env.NODE_ENV !== "production" && isNaN(parseInt(r)) && G(13), me.set.call(this, t, r, void 0);
|
2323
2377
|
};
|
2324
|
-
|
2325
|
-
return process.env.NODE_ENV !== "production" && r !== "length" && isNaN(parseInt(r)) && G(14),
|
2378
|
+
me.set = function(t, r, n) {
|
2379
|
+
return process.env.NODE_ENV !== "production" && r !== "length" && isNaN(parseInt(r)) && G(14), vn.set.call(this, t[0], r, n, t[0]);
|
2326
2380
|
};
|
2327
|
-
function
|
2381
|
+
function en(t, r) {
|
2328
2382
|
const n = t[J];
|
2329
2383
|
return (n ? kt(n) : t)[r];
|
2330
2384
|
}
|
2331
2385
|
function aa(t, r, n) {
|
2332
2386
|
var o;
|
2333
|
-
const
|
2334
|
-
return
|
2387
|
+
const i = ni(r, n);
|
2388
|
+
return i ? "value" in i ? i.value : (
|
2335
2389
|
// This is a very special case, if the prop is a getter defined by the
|
2336
2390
|
// prototype, we should invoke it with the draft as context!
|
2337
|
-
(o =
|
2391
|
+
(o = i.get) == null ? void 0 : o.call(t.draft_)
|
2338
2392
|
) : void 0;
|
2339
2393
|
}
|
2340
|
-
function
|
2394
|
+
function ni(t, r) {
|
2341
2395
|
if (!(r in t))
|
2342
2396
|
return;
|
2343
2397
|
let n = Ot(t);
|
2344
2398
|
for (; n; ) {
|
2345
|
-
const
|
2346
|
-
if (
|
2347
|
-
return
|
2399
|
+
const i = Object.getOwnPropertyDescriptor(n, r);
|
2400
|
+
if (i)
|
2401
|
+
return i;
|
2348
2402
|
n = Ot(n);
|
2349
2403
|
}
|
2350
2404
|
}
|
2351
|
-
function
|
2352
|
-
t.modified_ || (t.modified_ = !0, t.parent_ &&
|
2405
|
+
function yn(t) {
|
2406
|
+
t.modified_ || (t.modified_ = !0, t.parent_ && yn(t.parent_));
|
2353
2407
|
}
|
2354
|
-
function
|
2355
|
-
t.copy_ || (t.copy_ =
|
2408
|
+
function rn(t) {
|
2409
|
+
t.copy_ || (t.copy_ = ln(
|
2356
2410
|
t.base_,
|
2357
2411
|
t.scope_.immer_.useStrictShallowCopy_
|
2358
2412
|
));
|
2359
2413
|
}
|
2360
2414
|
var sa = class {
|
2361
2415
|
constructor(t) {
|
2362
|
-
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.produce = (r, n,
|
2416
|
+
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.produce = (r, n, i) => {
|
2363
2417
|
if (typeof r == "function" && typeof n != "function") {
|
2364
2418
|
const c = n;
|
2365
2419
|
n = r;
|
2366
2420
|
const l = this;
|
2367
|
-
return function(E = c, ...
|
2368
|
-
return l.produce(E, (
|
2421
|
+
return function(E = c, ...j) {
|
2422
|
+
return l.produce(E, (S) => n.call(this, S, ...j));
|
2369
2423
|
};
|
2370
2424
|
}
|
2371
|
-
typeof n != "function" && G(6),
|
2425
|
+
typeof n != "function" && G(6), i !== void 0 && typeof i != "function" && G(7);
|
2372
2426
|
let o;
|
2373
|
-
if (
|
2374
|
-
const c =
|
2427
|
+
if (gt(r)) {
|
2428
|
+
const c = Cn(this), l = mn(r, void 0);
|
2375
2429
|
let d = !0;
|
2376
2430
|
try {
|
2377
2431
|
o = n(l), d = !1;
|
2378
2432
|
} finally {
|
2379
|
-
d ?
|
2433
|
+
d ? dn(c) : hn(c);
|
2380
2434
|
}
|
2381
|
-
return
|
2435
|
+
return Dn(c, i), jn(o, c);
|
2382
2436
|
} else if (!r || typeof r != "object") {
|
2383
|
-
if (o = n(r), o === void 0 && (o = r), o === gn && (o = void 0), this.autoFreeze_ &&
|
2437
|
+
if (o = n(r), o === void 0 && (o = r), o === gn && (o = void 0), this.autoFreeze_ && _n(o, !0), i) {
|
2384
2438
|
const c = [], l = [];
|
2385
|
-
Pt("Patches").generateReplacementPatches_(r, o, c, l),
|
2439
|
+
Pt("Patches").generateReplacementPatches_(r, o, c, l), i(c, l);
|
2386
2440
|
}
|
2387
2441
|
return o;
|
2388
2442
|
} else
|
@@ -2390,22 +2444,22 @@ var sa = class {
|
|
2390
2444
|
}, this.produceWithPatches = (r, n) => {
|
2391
2445
|
if (typeof r == "function")
|
2392
2446
|
return (l, ...d) => this.produceWithPatches(l, (E) => r(E, ...d));
|
2393
|
-
let
|
2447
|
+
let i, o;
|
2394
2448
|
return [this.produce(r, n, (l, d) => {
|
2395
|
-
|
2396
|
-
}),
|
2449
|
+
i = l, o = d;
|
2450
|
+
}), i, o];
|
2397
2451
|
}, typeof (t == null ? void 0 : t.autoFreeze) == "boolean" && this.setAutoFreeze(t.autoFreeze), typeof (t == null ? void 0 : t.useStrictShallowCopy) == "boolean" && this.setUseStrictShallowCopy(t.useStrictShallowCopy);
|
2398
2452
|
}
|
2399
2453
|
createDraft(t) {
|
2400
|
-
|
2401
|
-
const r =
|
2402
|
-
return n[J].isManual_ = !0,
|
2454
|
+
gt(t) || G(8), xt(t) && (t = oa(t));
|
2455
|
+
const r = Cn(this), n = mn(t, void 0);
|
2456
|
+
return n[J].isManual_ = !0, hn(r), n;
|
2403
2457
|
}
|
2404
2458
|
finishDraft(t, r) {
|
2405
2459
|
const n = t && t[J];
|
2406
2460
|
(!n || !n.isManual_) && G(9);
|
2407
|
-
const { scope_:
|
2408
|
-
return
|
2461
|
+
const { scope_: i } = n;
|
2462
|
+
return Dn(i, r), jn(void 0, i);
|
2409
2463
|
}
|
2410
2464
|
/**
|
2411
2465
|
* Pass true to automatically freeze all copies created by Immer.
|
@@ -2433,227 +2487,227 @@ var sa = class {
|
|
2433
2487
|
}
|
2434
2488
|
}
|
2435
2489
|
n > -1 && (r = r.slice(n + 1));
|
2436
|
-
const
|
2437
|
-
return xt(t) ?
|
2490
|
+
const i = Pt("Patches").applyPatches_;
|
2491
|
+
return xt(t) ? i(t, r) : this.produce(
|
2438
2492
|
t,
|
2439
|
-
(o) =>
|
2493
|
+
(o) => i(o, r)
|
2440
2494
|
);
|
2441
2495
|
}
|
2442
2496
|
};
|
2443
|
-
function
|
2444
|
-
const n =
|
2445
|
-
return (r ? r.scope_ :
|
2497
|
+
function mn(t, r) {
|
2498
|
+
const n = _e(t) ? Pt("MapSet").proxyMap_(t, r) : ve(t) ? Pt("MapSet").proxySet_(t, r) : ia(t, r);
|
2499
|
+
return (r ? r.scope_ : ri()).drafts_.push(n), n;
|
2446
2500
|
}
|
2447
2501
|
function oa(t) {
|
2448
|
-
return xt(t) || G(10, t),
|
2502
|
+
return xt(t) || G(10, t), ii(t);
|
2449
2503
|
}
|
2450
|
-
function
|
2451
|
-
if (!
|
2504
|
+
function ii(t) {
|
2505
|
+
if (!gt(t) || nr(t))
|
2452
2506
|
return t;
|
2453
2507
|
const r = t[J];
|
2454
2508
|
let n;
|
2455
2509
|
if (r) {
|
2456
2510
|
if (!r.modified_)
|
2457
2511
|
return r.base_;
|
2458
|
-
r.finalized_ = !0, n =
|
2512
|
+
r.finalized_ = !0, n = ln(t, r.scope_.immer_.useStrictShallowCopy_);
|
2459
2513
|
} else
|
2460
|
-
n =
|
2461
|
-
return
|
2462
|
-
|
2514
|
+
n = ln(t, !0);
|
2515
|
+
return de(n, (i, o) => {
|
2516
|
+
ei(n, i, ii(o));
|
2463
2517
|
}), r && (r.finalized_ = !1), n;
|
2464
2518
|
}
|
2465
|
-
function
|
2466
|
-
process.env.NODE_ENV !== "production" &&
|
2519
|
+
function Rn() {
|
2520
|
+
process.env.NODE_ENV !== "production" && Qn.push(
|
2467
2521
|
'Sets cannot have "replace" patches.',
|
2468
|
-
function(
|
2469
|
-
return "Unsupported patch operation: " +
|
2522
|
+
function(y) {
|
2523
|
+
return "Unsupported patch operation: " + y;
|
2470
2524
|
},
|
2471
|
-
function(
|
2472
|
-
return "Cannot apply patch, path doesn't resolve: " +
|
2525
|
+
function(y) {
|
2526
|
+
return "Cannot apply patch, path doesn't resolve: " + y;
|
2473
2527
|
},
|
2474
2528
|
"Patching reserved attributes like __proto__, prototype and constructor is not allowed"
|
2475
2529
|
);
|
2476
|
-
const r = "replace", n = "add",
|
2477
|
-
function o(
|
2478
|
-
switch (
|
2530
|
+
const r = "replace", n = "add", i = "remove";
|
2531
|
+
function o(y, p, h, f) {
|
2532
|
+
switch (y.type_) {
|
2479
2533
|
case 0:
|
2480
2534
|
case 2:
|
2481
2535
|
return l(
|
2482
|
-
|
2536
|
+
y,
|
2483
2537
|
p,
|
2484
|
-
|
2538
|
+
h,
|
2485
2539
|
f
|
2486
2540
|
);
|
2487
2541
|
case 1:
|
2488
|
-
return c(
|
2542
|
+
return c(y, p, h, f);
|
2489
2543
|
case 3:
|
2490
2544
|
return d(
|
2491
|
-
|
2545
|
+
y,
|
2492
2546
|
p,
|
2493
|
-
|
2547
|
+
h,
|
2494
2548
|
f
|
2495
2549
|
);
|
2496
2550
|
}
|
2497
2551
|
}
|
2498
|
-
function c(
|
2499
|
-
let { base_:
|
2500
|
-
_.length <
|
2501
|
-
for (let
|
2502
|
-
if (b
|
2503
|
-
const
|
2504
|
-
|
2552
|
+
function c(y, p, h, f) {
|
2553
|
+
let { base_: g, assigned_: v } = y, _ = y.copy_;
|
2554
|
+
_.length < g.length && ([g, _] = [_, g], [h, f] = [f, h]);
|
2555
|
+
for (let b = 0; b < g.length; b++)
|
2556
|
+
if (v[b] && _[b] !== g[b]) {
|
2557
|
+
const m = p.concat([b]);
|
2558
|
+
h.push({
|
2505
2559
|
op: r,
|
2506
|
-
path:
|
2560
|
+
path: m,
|
2507
2561
|
// Need to maybe clone it, as it can in fact be the original value
|
2508
2562
|
// due to the base/copy inversion at the start of this function
|
2509
|
-
value:
|
2563
|
+
value: N(_[b])
|
2510
2564
|
}), f.push({
|
2511
2565
|
op: r,
|
2512
|
-
path:
|
2513
|
-
value:
|
2566
|
+
path: m,
|
2567
|
+
value: N(g[b])
|
2514
2568
|
});
|
2515
2569
|
}
|
2516
|
-
for (let
|
2517
|
-
const
|
2518
|
-
|
2570
|
+
for (let b = g.length; b < _.length; b++) {
|
2571
|
+
const m = p.concat([b]);
|
2572
|
+
h.push({
|
2519
2573
|
op: n,
|
2520
|
-
path:
|
2574
|
+
path: m,
|
2521
2575
|
// Need to maybe clone it, as it can in fact be the original value
|
2522
2576
|
// due to the base/copy inversion at the start of this function
|
2523
|
-
value:
|
2577
|
+
value: N(_[b])
|
2524
2578
|
});
|
2525
2579
|
}
|
2526
|
-
for (let
|
2527
|
-
const
|
2580
|
+
for (let b = _.length - 1; g.length <= b; --b) {
|
2581
|
+
const m = p.concat([b]);
|
2528
2582
|
f.push({
|
2529
|
-
op:
|
2530
|
-
path:
|
2583
|
+
op: i,
|
2584
|
+
path: m
|
2531
2585
|
});
|
2532
2586
|
}
|
2533
2587
|
}
|
2534
|
-
function l(
|
2535
|
-
const { base_:
|
2536
|
-
|
2537
|
-
const
|
2538
|
-
if (
|
2588
|
+
function l(y, p, h, f) {
|
2589
|
+
const { base_: g, copy_: v } = y;
|
2590
|
+
de(y.assigned_, (_, b) => {
|
2591
|
+
const m = tn(g, _), H = tn(v, _), O = b ? he(g, _) ? r : n : i;
|
2592
|
+
if (m === H && O === r)
|
2539
2593
|
return;
|
2540
|
-
const
|
2541
|
-
|
2542
|
-
|
2594
|
+
const k = p.concat(_);
|
2595
|
+
h.push(O === i ? { op: O, path: k } : { op: O, path: k, value: H }), f.push(
|
2596
|
+
O === n ? { op: i, path: k } : O === i ? { op: n, path: k, value: N(m) } : { op: r, path: k, value: N(m) }
|
2543
2597
|
);
|
2544
2598
|
});
|
2545
2599
|
}
|
2546
|
-
function d(
|
2547
|
-
let { base_:
|
2548
|
-
|
2549
|
-
if (!
|
2550
|
-
const
|
2551
|
-
|
2552
|
-
op:
|
2553
|
-
path:
|
2554
|
-
value:
|
2600
|
+
function d(y, p, h, f) {
|
2601
|
+
let { base_: g, copy_: v } = y, _ = 0;
|
2602
|
+
g.forEach((b) => {
|
2603
|
+
if (!v.has(b)) {
|
2604
|
+
const m = p.concat([_]);
|
2605
|
+
h.push({
|
2606
|
+
op: i,
|
2607
|
+
path: m,
|
2608
|
+
value: b
|
2555
2609
|
}), f.unshift({
|
2556
2610
|
op: n,
|
2557
|
-
path:
|
2558
|
-
value:
|
2611
|
+
path: m,
|
2612
|
+
value: b
|
2559
2613
|
});
|
2560
2614
|
}
|
2561
2615
|
_++;
|
2562
|
-
}), _ = 0,
|
2563
|
-
if (!
|
2564
|
-
const
|
2565
|
-
|
2616
|
+
}), _ = 0, v.forEach((b) => {
|
2617
|
+
if (!g.has(b)) {
|
2618
|
+
const m = p.concat([_]);
|
2619
|
+
h.push({
|
2566
2620
|
op: n,
|
2567
|
-
path:
|
2568
|
-
value:
|
2621
|
+
path: m,
|
2622
|
+
value: b
|
2569
2623
|
}), f.unshift({
|
2570
|
-
op:
|
2571
|
-
path:
|
2572
|
-
value:
|
2624
|
+
op: i,
|
2625
|
+
path: m,
|
2626
|
+
value: b
|
2573
2627
|
});
|
2574
2628
|
}
|
2575
2629
|
_++;
|
2576
2630
|
});
|
2577
2631
|
}
|
2578
|
-
function E(
|
2579
|
-
|
2632
|
+
function E(y, p, h, f) {
|
2633
|
+
h.push({
|
2580
2634
|
op: r,
|
2581
2635
|
path: [],
|
2582
2636
|
value: p === gn ? void 0 : p
|
2583
2637
|
}), f.push({
|
2584
2638
|
op: r,
|
2585
2639
|
path: [],
|
2586
|
-
value:
|
2640
|
+
value: y
|
2587
2641
|
});
|
2588
2642
|
}
|
2589
|
-
function
|
2590
|
-
return p.forEach((
|
2591
|
-
const { path: f, op:
|
2592
|
-
let
|
2593
|
-
for (let
|
2594
|
-
const
|
2595
|
-
let
|
2596
|
-
typeof
|
2643
|
+
function j(y, p) {
|
2644
|
+
return p.forEach((h) => {
|
2645
|
+
const { path: f, op: g } = h;
|
2646
|
+
let v = y;
|
2647
|
+
for (let H = 0; H < f.length - 1; H++) {
|
2648
|
+
const O = Mt(v);
|
2649
|
+
let k = f[H];
|
2650
|
+
typeof k != "string" && typeof k != "number" && (k = "" + k), (O === 0 || O === 1) && (k === "__proto__" || k === "constructor") && G(19), typeof v == "function" && k === "prototype" && G(19), v = tn(v, k), typeof v != "object" && G(18, f.join("/"));
|
2597
2651
|
}
|
2598
|
-
const _ = Mt(
|
2599
|
-
switch (
|
2652
|
+
const _ = Mt(v), b = S(h.value), m = f[f.length - 1];
|
2653
|
+
switch (g) {
|
2600
2654
|
case r:
|
2601
2655
|
switch (_) {
|
2602
2656
|
case 2:
|
2603
|
-
return
|
2657
|
+
return v.set(m, b);
|
2604
2658
|
case 3:
|
2605
2659
|
G(16);
|
2606
2660
|
default:
|
2607
|
-
return
|
2661
|
+
return v[m] = b;
|
2608
2662
|
}
|
2609
2663
|
case n:
|
2610
2664
|
switch (_) {
|
2611
2665
|
case 1:
|
2612
|
-
return
|
2666
|
+
return m === "-" ? v.push(b) : v.splice(m, 0, b);
|
2613
2667
|
case 2:
|
2614
|
-
return
|
2668
|
+
return v.set(m, b);
|
2615
2669
|
case 3:
|
2616
|
-
return
|
2670
|
+
return v.add(b);
|
2617
2671
|
default:
|
2618
|
-
return
|
2672
|
+
return v[m] = b;
|
2619
2673
|
}
|
2620
|
-
case
|
2674
|
+
case i:
|
2621
2675
|
switch (_) {
|
2622
2676
|
case 1:
|
2623
|
-
return
|
2677
|
+
return v.splice(m, 1);
|
2624
2678
|
case 2:
|
2625
|
-
return
|
2679
|
+
return v.delete(m);
|
2626
2680
|
case 3:
|
2627
|
-
return
|
2681
|
+
return v.delete(h.value);
|
2628
2682
|
default:
|
2629
|
-
return delete
|
2683
|
+
return delete v[m];
|
2630
2684
|
}
|
2631
2685
|
default:
|
2632
|
-
G(17,
|
2686
|
+
G(17, g);
|
2633
2687
|
}
|
2634
|
-
}),
|
2635
|
-
}
|
2636
|
-
function
|
2637
|
-
if (!
|
2638
|
-
return
|
2639
|
-
if (Array.isArray(
|
2640
|
-
return
|
2641
|
-
if (
|
2688
|
+
}), y;
|
2689
|
+
}
|
2690
|
+
function S(y) {
|
2691
|
+
if (!gt(y))
|
2692
|
+
return y;
|
2693
|
+
if (Array.isArray(y))
|
2694
|
+
return y.map(S);
|
2695
|
+
if (_e(y))
|
2642
2696
|
return new Map(
|
2643
|
-
Array.from(
|
2697
|
+
Array.from(y.entries()).map(([h, f]) => [h, S(f)])
|
2644
2698
|
);
|
2645
|
-
if (
|
2646
|
-
return new Set(Array.from(
|
2647
|
-
const p = Object.create(Ot(
|
2648
|
-
for (const
|
2649
|
-
p[
|
2650
|
-
return
|
2699
|
+
if (ve(y))
|
2700
|
+
return new Set(Array.from(y).map(S));
|
2701
|
+
const p = Object.create(Ot(y));
|
2702
|
+
for (const h in y)
|
2703
|
+
p[h] = S(y[h]);
|
2704
|
+
return he(y, pe) && (p[pe] = y[pe]), p;
|
2651
2705
|
}
|
2652
|
-
function
|
2653
|
-
return xt(
|
2706
|
+
function N(y) {
|
2707
|
+
return xt(y) ? S(y) : y;
|
2654
2708
|
}
|
2655
2709
|
ea("Patches", {
|
2656
|
-
applyPatches_:
|
2710
|
+
applyPatches_: j,
|
2657
2711
|
generatePatches_: o,
|
2658
2712
|
generateReplacementPatches_: E
|
2659
2713
|
});
|
@@ -2667,8 +2721,8 @@ Z.setUseStrictShallowCopy.bind(Z);
|
|
2667
2721
|
var ua = Z.applyPatches.bind(Z);
|
2668
2722
|
Z.createDraft.bind(Z);
|
2669
2723
|
Z.finishDraft.bind(Z);
|
2670
|
-
var fa = 1 / 0, la = 9007199254740991, pa = "[object Arguments]", da = "[object Function]", ha = "[object GeneratorFunction]", ya = "[object Symbol]", ma = typeof et == "object" && et && et.Object === Object && et, ba = typeof self == "object" && self && self.Object === Object && self,
|
2671
|
-
function
|
2724
|
+
var fa = 1 / 0, la = 9007199254740991, pa = "[object Arguments]", da = "[object Function]", ha = "[object GeneratorFunction]", ya = "[object Symbol]", ma = typeof et == "object" && et && et.Object === Object && et, ba = typeof self == "object" && self && self.Object === Object && self, ga = ma || ba || Function("return this")();
|
2725
|
+
function _a(t, r, n) {
|
2672
2726
|
switch (n.length) {
|
2673
2727
|
case 0:
|
2674
2728
|
return t.call(r);
|
@@ -2682,17 +2736,17 @@ function ga(t, r, n) {
|
|
2682
2736
|
return t.apply(r, n);
|
2683
2737
|
}
|
2684
2738
|
function va(t, r) {
|
2685
|
-
for (var n = -1,
|
2739
|
+
for (var n = -1, i = t ? t.length : 0, o = Array(i); ++n < i; )
|
2686
2740
|
o[n] = r(t[n], n, t);
|
2687
2741
|
return o;
|
2688
2742
|
}
|
2689
2743
|
function Ia(t, r) {
|
2690
|
-
for (var n = -1,
|
2744
|
+
for (var n = -1, i = r.length, o = t.length; ++n < i; )
|
2691
2745
|
t[o + n] = r[n];
|
2692
2746
|
return t;
|
2693
2747
|
}
|
2694
|
-
var
|
2695
|
-
function Ta(t, r, n,
|
2748
|
+
var In = Object.prototype, Sa = In.hasOwnProperty, Sn = In.toString, zn = ga.Symbol, wa = In.propertyIsEnumerable, Hn = zn ? zn.isConcatSpreadable : void 0, Nn = Math.max;
|
2749
|
+
function Ta(t, r, n, i, o) {
|
2696
2750
|
var c = -1, l = t.length;
|
2697
2751
|
for (n || (n = Oa), o || (o = []); ++c < l; ) {
|
2698
2752
|
var d = t[c];
|
@@ -2701,25 +2755,25 @@ function Ta(t, r, n, a, o) {
|
|
2701
2755
|
return o;
|
2702
2756
|
}
|
2703
2757
|
function Aa(t, r) {
|
2704
|
-
return t = Object(t), Ea(t, r, function(n,
|
2705
|
-
return
|
2758
|
+
return t = Object(t), Ea(t, r, function(n, i) {
|
2759
|
+
return i in t;
|
2706
2760
|
});
|
2707
2761
|
}
|
2708
2762
|
function Ea(t, r, n) {
|
2709
|
-
for (var
|
2710
|
-
var l = r[
|
2763
|
+
for (var i = -1, o = r.length, c = {}; ++i < o; ) {
|
2764
|
+
var l = r[i], d = t[l];
|
2711
2765
|
n(d, l) && (c[l] = d);
|
2712
2766
|
}
|
2713
2767
|
return c;
|
2714
2768
|
}
|
2715
2769
|
function ka(t, r) {
|
2716
|
-
return r =
|
2717
|
-
for (var n = arguments,
|
2718
|
-
c[
|
2719
|
-
|
2720
|
-
for (var l = Array(r + 1); ++
|
2721
|
-
l[
|
2722
|
-
return l[r] = c,
|
2770
|
+
return r = Nn(r === void 0 ? t.length - 1 : r, 0), function() {
|
2771
|
+
for (var n = arguments, i = -1, o = Nn(n.length - r, 0), c = Array(o); ++i < o; )
|
2772
|
+
c[i] = n[r + i];
|
2773
|
+
i = -1;
|
2774
|
+
for (var l = Array(r + 1); ++i < r; )
|
2775
|
+
l[i] = n[i];
|
2776
|
+
return l[r] = c, _a(t, this, l);
|
2723
2777
|
};
|
2724
2778
|
}
|
2725
2779
|
function Oa(t) {
|
@@ -2732,17 +2786,17 @@ function xa(t) {
|
|
2732
2786
|
return r == "0" && 1 / t == -fa ? "-0" : r;
|
2733
2787
|
}
|
2734
2788
|
function Ma(t) {
|
2735
|
-
return Ca(t) && Sa.call(t, "callee") && (!wa.call(t, "callee") ||
|
2789
|
+
return Ca(t) && Sa.call(t, "callee") && (!wa.call(t, "callee") || Sn.call(t) == pa);
|
2736
2790
|
}
|
2737
2791
|
var Pa = Array.isArray;
|
2738
2792
|
function Da(t) {
|
2739
2793
|
return t != null && Fa(t.length) && !ja(t);
|
2740
2794
|
}
|
2741
2795
|
function Ca(t) {
|
2742
|
-
return
|
2796
|
+
return ai(t) && Da(t);
|
2743
2797
|
}
|
2744
2798
|
function ja(t) {
|
2745
|
-
var r = Ra(t) ?
|
2799
|
+
var r = Ra(t) ? Sn.call(t) : "";
|
2746
2800
|
return r == da || r == ha;
|
2747
2801
|
}
|
2748
2802
|
function Fa(t) {
|
@@ -2752,16 +2806,16 @@ function Ra(t) {
|
|
2752
2806
|
var r = typeof t;
|
2753
2807
|
return !!t && (r == "object" || r == "function");
|
2754
2808
|
}
|
2755
|
-
function
|
2809
|
+
function ai(t) {
|
2756
2810
|
return !!t && typeof t == "object";
|
2757
2811
|
}
|
2758
2812
|
function za(t) {
|
2759
|
-
return typeof t == "symbol" ||
|
2813
|
+
return typeof t == "symbol" || ai(t) && Sn.call(t) == ya;
|
2760
2814
|
}
|
2761
|
-
var
|
2815
|
+
var Ha = ka(function(t, r) {
|
2762
2816
|
return t == null ? {} : Aa(t, va(Ta(r), xa));
|
2763
|
-
}),
|
2764
|
-
const Un = /* @__PURE__ */
|
2817
|
+
}), Na = Ha;
|
2818
|
+
const Un = /* @__PURE__ */ bn(Na), Ua = {
|
2765
2819
|
tracks: [],
|
2766
2820
|
trackItemIds: [],
|
2767
2821
|
trackItemsMap: {},
|
@@ -2775,7 +2829,7 @@ const Un = /* @__PURE__ */ mn(Ha), La = {
|
|
2775
2829
|
duration: 0,
|
2776
2830
|
activeIds: [],
|
2777
2831
|
trackItemDetailsMap: {}
|
2778
|
-
},
|
2832
|
+
}, Ln = [
|
2779
2833
|
"tracks",
|
2780
2834
|
"trackItemsMap",
|
2781
2835
|
"trackItemDetailsMap",
|
@@ -2783,7 +2837,7 @@ const Un = /* @__PURE__ */ mn(Ha), La = {
|
|
2783
2837
|
"transitionsMap",
|
2784
2838
|
"trackItemIds"
|
2785
2839
|
];
|
2786
|
-
class
|
2840
|
+
class Wa {
|
2787
2841
|
constructor(r) {
|
2788
2842
|
Et(this, "stateSubject");
|
2789
2843
|
Et(this, "stateHistorySubject");
|
@@ -2791,8 +2845,8 @@ class Ba {
|
|
2791
2845
|
Et(this, "undos", []);
|
2792
2846
|
Et(this, "redos", []);
|
2793
2847
|
Et(this, "listener");
|
2794
|
-
const n = r ||
|
2795
|
-
this.stateSubject = new
|
2848
|
+
const n = r || Ua;
|
2849
|
+
this.stateSubject = new xn(n), this.stateHistorySubject = new xn({
|
2796
2850
|
handleRedo: !1,
|
2797
2851
|
handleUndo: !1
|
2798
2852
|
}), this.prevState = n, this.initListeners();
|
@@ -2807,7 +2861,7 @@ class Ba {
|
|
2807
2861
|
this.destroyListeners();
|
2808
2862
|
}
|
2809
2863
|
updateHistory(r, n) {
|
2810
|
-
const
|
2864
|
+
const i = Un(r, Ln), o = Un(this.getState(), Ln), c = Zn(o, i);
|
2811
2865
|
c.length && (this.undos.push({ undos: c, type: n }), this.redos = []);
|
2812
2866
|
}
|
2813
2867
|
getStateHistory() {
|
@@ -2826,11 +2880,11 @@ class Ba {
|
|
2826
2880
|
}
|
2827
2881
|
// Update the state, emitting only if the part of the state has changed
|
2828
2882
|
updateState(r, n = { updateHistory: !1 }) {
|
2829
|
-
const
|
2830
|
-
...
|
2883
|
+
const i = this.getState(), o = {
|
2884
|
+
...i,
|
2831
2885
|
...r
|
2832
2886
|
};
|
2833
|
-
ft(
|
2887
|
+
ft(i, o) || (n.updateHistory && this.updateHistory(o, n.kind), this.prevState = i, this.stateSubject.next(o));
|
2834
2888
|
}
|
2835
2889
|
// Selectively subscribe to scale changes
|
2836
2890
|
subscribeToScale(r) {
|
@@ -2852,12 +2906,12 @@ class Ba {
|
|
2852
2906
|
subscribeToHistory(r) {
|
2853
2907
|
return this.stateHistorySubject.asObservable().subscribe((n) => {
|
2854
2908
|
if (n.handleRedo) {
|
2855
|
-
const
|
2856
|
-
|
2909
|
+
const i = this.undos[this.undos.length - 1].type;
|
2910
|
+
i === "update" && r({ ...this.getState(), type: i }), this.stateHistorySubject.next({ handleRedo: !1, handleUndo: !1 });
|
2857
2911
|
}
|
2858
2912
|
if (n.handleUndo) {
|
2859
|
-
const
|
2860
|
-
|
2913
|
+
const i = this.redos[this.redos.length - 1].type;
|
2914
|
+
i === "update" && r({ ...this.getState(), type: i }), this.stateHistorySubject.next({ handleRedo: !1, handleUndo: !1 });
|
2861
2915
|
}
|
2862
2916
|
});
|
2863
2917
|
}
|
@@ -2886,139 +2940,139 @@ class Ba {
|
|
2886
2940
|
});
|
2887
2941
|
}
|
2888
2942
|
undo() {
|
2889
|
-
const r = this.undos.pop(), n = r == null ? void 0 : r.undos,
|
2890
|
-
if (!n || !
|
2891
|
-
|
2943
|
+
const r = this.undos.pop(), n = r == null ? void 0 : r.undos, i = r == null ? void 0 : r.type;
|
2944
|
+
if (!n || !i) return;
|
2945
|
+
Rn();
|
2892
2946
|
const {
|
2893
2947
|
trackItemDetailsMap: o,
|
2894
2948
|
trackItemIds: c,
|
2895
2949
|
tracks: l,
|
2896
2950
|
transitionIds: d,
|
2897
2951
|
transitionsMap: E,
|
2898
|
-
trackItemsMap:
|
2899
|
-
} = this.getState(),
|
2952
|
+
trackItemsMap: j
|
2953
|
+
} = this.getState(), S = tt({
|
2900
2954
|
trackItemDetailsMap: o,
|
2901
2955
|
trackItemIds: c,
|
2902
2956
|
tracks: l,
|
2903
2957
|
transitionIds: d,
|
2904
2958
|
transitionsMap: E,
|
2905
|
-
trackItemsMap:
|
2906
|
-
}),
|
2907
|
-
n.forEach((
|
2908
|
-
let
|
2909
|
-
const
|
2910
|
-
|
2911
|
-
path:
|
2959
|
+
trackItemsMap: j
|
2960
|
+
}), N = [], y = [], p = [], h = [], f = [], g = [];
|
2961
|
+
n.forEach((T) => {
|
2962
|
+
let x;
|
2963
|
+
const F = T.path.slice(1);
|
2964
|
+
T.type === "CREATE" ? x = {
|
2965
|
+
path: F,
|
2912
2966
|
op: "remove",
|
2913
|
-
value:
|
2914
|
-
} :
|
2915
|
-
path:
|
2967
|
+
value: T.value
|
2968
|
+
} : T.type === "CHANGE" ? x = {
|
2969
|
+
path: F,
|
2916
2970
|
op: "replace",
|
2917
|
-
value:
|
2918
|
-
} :
|
2919
|
-
path:
|
2971
|
+
value: T.oldValue
|
2972
|
+
} : x = {
|
2973
|
+
path: F,
|
2920
2974
|
op: "add",
|
2921
|
-
value:
|
2922
|
-
},
|
2975
|
+
value: T.oldValue
|
2976
|
+
}, T.path.includes("trackItemIds") ? p.push(x) : T.path.includes("transitionIds") ? y.push(x) : T.path.includes("trackItemsMap") ? f.push(x) : T.path.includes("transitionsMap") ? h.push(x) : T.path.includes("tracks") ? N.push(x) : T.path.includes("trackItemDetailsMap") && g.push(x);
|
2923
2977
|
});
|
2924
|
-
const
|
2925
|
-
|
2926
|
-
|
2978
|
+
const v = this.applyPatch(
|
2979
|
+
S.tracks,
|
2980
|
+
N
|
2927
2981
|
), _ = this.applyPatch(
|
2928
|
-
|
2929
|
-
|
2930
|
-
),
|
2931
|
-
|
2982
|
+
S.transitionIds,
|
2983
|
+
y
|
2984
|
+
), b = this.applyPatch(
|
2985
|
+
S.trackItemIds,
|
2932
2986
|
p
|
2933
|
-
),
|
2934
|
-
|
2935
|
-
|
2936
|
-
),
|
2937
|
-
|
2987
|
+
), m = this.applyPatch(
|
2988
|
+
S.transitionsMap,
|
2989
|
+
h
|
2990
|
+
), H = this.applyPatch(
|
2991
|
+
S.trackItemsMap,
|
2938
2992
|
f
|
2939
|
-
),
|
2940
|
-
|
2941
|
-
|
2942
|
-
),
|
2943
|
-
tracks:
|
2993
|
+
), O = this.applyPatch(
|
2994
|
+
S.trackItemDetailsMap,
|
2995
|
+
g
|
2996
|
+
), k = tt({
|
2997
|
+
tracks: v,
|
2944
2998
|
transitionIds: _,
|
2945
|
-
trackItemIds:
|
2946
|
-
transitionsMap:
|
2947
|
-
trackItemsMap:
|
2948
|
-
trackItemDetailsMap:
|
2949
|
-
}),
|
2950
|
-
this.prevState =
|
2999
|
+
trackItemIds: b,
|
3000
|
+
transitionsMap: m,
|
3001
|
+
trackItemsMap: H,
|
3002
|
+
trackItemDetailsMap: O
|
3003
|
+
}), D = tt(this.getState()), w = { ...D, ...k };
|
3004
|
+
this.prevState = D, this.redos.push({ redos: n, type: i }), this.stateSubject.next(w), this.stateHistorySubject.next({ handleRedo: !1, handleUndo: !0 });
|
2951
3005
|
}
|
2952
3006
|
applyPatch(r, n) {
|
2953
|
-
return n.reverse().reduce((
|
3007
|
+
return n.reverse().reduce((i, o) => ca(i, (c) => {
|
2954
3008
|
ua(c, [o]);
|
2955
3009
|
}), r);
|
2956
3010
|
}
|
2957
3011
|
redo() {
|
2958
|
-
const r = this.redos.pop(), n = r == null ? void 0 : r.redos,
|
2959
|
-
if (!n || !
|
2960
|
-
|
3012
|
+
const r = this.redos.pop(), n = r == null ? void 0 : r.redos, i = r == null ? void 0 : r.type;
|
3013
|
+
if (!n || !i) return;
|
3014
|
+
Rn();
|
2961
3015
|
const {
|
2962
3016
|
trackItemDetailsMap: o,
|
2963
3017
|
trackItemIds: c,
|
2964
3018
|
tracks: l,
|
2965
3019
|
transitionIds: d,
|
2966
3020
|
transitionsMap: E,
|
2967
|
-
trackItemsMap:
|
2968
|
-
} = this.getState(),
|
3021
|
+
trackItemsMap: j
|
3022
|
+
} = this.getState(), S = tt({
|
2969
3023
|
trackItemDetailsMap: o,
|
2970
3024
|
trackItemIds: c,
|
2971
3025
|
tracks: l,
|
2972
3026
|
transitionIds: d,
|
2973
3027
|
transitionsMap: E,
|
2974
|
-
trackItemsMap:
|
2975
|
-
}),
|
2976
|
-
n.forEach((
|
2977
|
-
let
|
2978
|
-
const
|
2979
|
-
|
2980
|
-
path:
|
3028
|
+
trackItemsMap: j
|
3029
|
+
}), N = [], y = [], p = [], h = [], f = [], g = [];
|
3030
|
+
n.forEach((T) => {
|
3031
|
+
let x;
|
3032
|
+
const F = T.path.slice(1);
|
3033
|
+
T.type === "CREATE" ? x = {
|
3034
|
+
path: F,
|
2981
3035
|
op: "add",
|
2982
|
-
value:
|
2983
|
-
} :
|
2984
|
-
path:
|
3036
|
+
value: T.value
|
3037
|
+
} : T.type === "CHANGE" ? x = {
|
3038
|
+
path: F,
|
2985
3039
|
op: "replace",
|
2986
|
-
value:
|
2987
|
-
} :
|
2988
|
-
path:
|
3040
|
+
value: T.value
|
3041
|
+
} : x = {
|
3042
|
+
path: F,
|
2989
3043
|
op: "remove",
|
2990
|
-
value:
|
2991
|
-
},
|
3044
|
+
value: T.oldValue
|
3045
|
+
}, T.path.includes("trackItemIds") ? p.push(x) : T.path.includes("transitionIds") ? y.push(x) : T.path.includes("trackItemsMap") ? f.push(x) : T.path.includes("transitionsMap") ? h.push(x) : T.path.includes("trackItemDetailsMap") ? g.push(x) : N.push(x);
|
2992
3046
|
});
|
2993
|
-
const
|
2994
|
-
|
2995
|
-
|
3047
|
+
const v = this.applyPatch(
|
3048
|
+
S.tracks,
|
3049
|
+
N
|
2996
3050
|
), _ = this.applyPatch(
|
2997
|
-
|
2998
|
-
|
2999
|
-
),
|
3000
|
-
|
3051
|
+
S.transitionIds,
|
3052
|
+
y
|
3053
|
+
), b = this.applyPatch(
|
3054
|
+
S.trackItemIds,
|
3001
3055
|
p
|
3002
|
-
),
|
3003
|
-
|
3004
|
-
|
3005
|
-
),
|
3006
|
-
|
3056
|
+
), m = this.applyPatch(
|
3057
|
+
S.transitionsMap,
|
3058
|
+
h
|
3059
|
+
), H = this.applyPatch(
|
3060
|
+
S.trackItemsMap,
|
3007
3061
|
f
|
3008
|
-
),
|
3009
|
-
|
3010
|
-
|
3011
|
-
),
|
3012
|
-
tracks:
|
3062
|
+
), O = this.applyPatch(
|
3063
|
+
S.trackItemDetailsMap,
|
3064
|
+
g
|
3065
|
+
), k = tt({
|
3066
|
+
tracks: v,
|
3013
3067
|
transitionIds: _,
|
3014
|
-
trackItemIds:
|
3015
|
-
transitionsMap:
|
3016
|
-
trackItemsMap:
|
3017
|
-
trackItemDetailsMap:
|
3018
|
-
}),
|
3019
|
-
this.prevState =
|
3068
|
+
trackItemIds: b,
|
3069
|
+
transitionsMap: m,
|
3070
|
+
trackItemsMap: H,
|
3071
|
+
trackItemDetailsMap: O
|
3072
|
+
}), D = tt(this.getState()), w = { ...D, ...k };
|
3073
|
+
this.prevState = D, this.undos.push({ undos: n, type: i }), this.stateSubject.next(w), this.stateHistorySubject.next({ handleRedo: !0, handleUndo: !1 });
|
3020
3074
|
}
|
3021
3075
|
}
|
3022
3076
|
export {
|
3023
|
-
|
3077
|
+
Wa as default
|
3024
3078
|
};
|