@designcombo/state 0.1.36 → 0.1.38

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.es.js CHANGED
@@ -1,7 +1,7 @@
1
- var Ei = Object.defineProperty;
2
- var Si = (t, r, n) => r in t ? Ei(t, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[r] = n;
3
- var Nt = (t, r, n) => Si(t, typeof r != "symbol" ? r + "" : r, n);
4
- import { subject as ue, filter as le, DESIGN_PREFIX as Ti, ADD_PREFIX as wi, LAYER_PREFIX as ki, HISTORY_PREFIX as Ai, ACTIVE_PREFIX as Di, EDIT_PREFIX as Mi, DESIGN_LOAD as Oi, DESIGN_RESIZE as xi, HISTORY_UNDO as Pi, HISTORY_REDO as Ci, LAYER_DELETE as Ri, LAYER_CLONE as Li, ADD_CAPTION as Fi, ADD_TEXT as $i, ADD_TEMPLATE as Ni, ADD_IMAGE as Hi, ADD_AUDIO as ji, ADD_VIDEO as zi, ACTIVE_SPLIT as Ui, ACTIVE_CLONE as Gi, ACTIVE_PASTE as Yi, EDIT_OBJECT as Wi, REPLACE_MEDIA as Xi } from "@designcombo/events";
1
+ var Si = Object.defineProperty;
2
+ var Ei = (t, r, n) => r in t ? Si(t, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[r] = n;
3
+ var Ut = (t, r, n) => Ei(t, typeof r != "symbol" ? r + "" : r, n);
4
+ import { subject as de, filter as pe, DESIGN_PREFIX as Ti, ADD_PREFIX as ki, LAYER_PREFIX as wi, HISTORY_PREFIX as Ai, ACTIVE_PREFIX as Di, EDIT_PREFIX as Mi, DESIGN_LOAD as Oi, DESIGN_RESIZE as Pi, HISTORY_UNDO as xi, HISTORY_REDO as Ci, LAYER_DELETE as Ri, LAYER_CLONE as Li, ADD_CAPTION as Fi, ADD_TEXT as $i, ADD_TEMPLATE as Ni, ADD_IMAGE as Hi, ADD_AUDIO as ji, ADD_VIDEO as zi, ACTIVE_SPLIT as Ui, ACTIVE_CLONE as Gi, ACTIVE_PASTE as Yi, EDIT_OBJECT as Wi, REPLACE_MEDIA as Xi } from "@designcombo/events";
5
5
  var dn = function(t, r) {
6
6
  return dn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
7
7
  n.__proto__ = i;
@@ -50,7 +50,7 @@ function mn(t, r, n) {
50
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
- function kt(t) {
53
+ function At(t) {
54
54
  return typeof t == "function";
55
55
  }
56
56
  function Vn(t) {
@@ -86,15 +86,15 @@ var mr = function() {
86
86
  if (d)
87
87
  if (this._parentage = null, Array.isArray(d))
88
88
  try {
89
- for (var y = pn(d), w = y.next(); !w.done; w = y.next()) {
90
- var R = w.value;
91
- R.remove(this);
89
+ for (var y = pn(d), T = y.next(); !T.done; T = y.next()) {
90
+ var C = T.value;
91
+ C.remove(this);
92
92
  }
93
- } catch (p) {
94
- r = { error: p };
93
+ } catch (h) {
94
+ r = { error: h };
95
95
  } finally {
96
96
  try {
97
- w && !w.done && (n = y.return) && n.call(y);
97
+ T && !T.done && (n = y.return) && n.call(y);
98
98
  } finally {
99
99
  if (r) throw r.error;
100
100
  }
@@ -102,26 +102,26 @@ var mr = function() {
102
102
  else
103
103
  d.remove(this);
104
104
  var S = this.initialTeardown;
105
- if (kt(S))
105
+ if (At(S))
106
106
  try {
107
107
  S();
108
- } catch (p) {
109
- c = p instanceof on ? p.errors : [p];
108
+ } catch (h) {
109
+ c = h instanceof on ? h.errors : [h];
110
110
  }
111
- var N = this._finalizers;
112
- if (N) {
111
+ var F = this._finalizers;
112
+ if (F) {
113
113
  this._finalizers = null;
114
114
  try {
115
- for (var _ = pn(N), f = _.next(); !f.done; f = _.next()) {
115
+ for (var _ = pn(F), f = _.next(); !f.done; f = _.next()) {
116
116
  var l = f.value;
117
117
  try {
118
118
  Cn(l);
119
- } catch (p) {
120
- c = c ?? [], p instanceof on ? c = mn(mn([], hn(c)), hn(p.errors)) : c.push(p);
119
+ } catch (h) {
120
+ c = c ?? [], h instanceof on ? c = mn(mn([], hn(c)), hn(h.errors)) : c.push(h);
121
121
  }
122
122
  }
123
- } catch (p) {
124
- i = { error: p };
123
+ } catch (h) {
124
+ i = { error: h };
125
125
  } finally {
126
126
  try {
127
127
  f && !f.done && (s = _.return) && s.call(_);
@@ -164,10 +164,10 @@ var mr = function() {
164
164
  }(), t;
165
165
  }(), Jn = mr.EMPTY;
166
166
  function Zn(t) {
167
- return t instanceof mr || t && "closed" in t && kt(t.remove) && kt(t.add) && kt(t.unsubscribe);
167
+ return t instanceof mr || t && "closed" in t && At(t.remove) && At(t.add) && At(t.unsubscribe);
168
168
  }
169
169
  function Cn(t) {
170
- kt(t) ? t() : t.unsubscribe();
170
+ At(t) ? t() : t.unsubscribe();
171
171
  }
172
172
  var qn = {
173
173
  onUnhandledError: null,
@@ -194,7 +194,7 @@ function Bi(t) {
194
194
  }
195
195
  function Rn() {
196
196
  }
197
- function ur(t) {
197
+ function cr(t) {
198
198
  t();
199
199
  }
200
200
  var ti = function(t) {
@@ -242,7 +242,7 @@ var Vi = function() {
242
242
  try {
243
243
  n.next(r);
244
244
  } catch (i) {
245
- cr(i);
245
+ or(i);
246
246
  }
247
247
  }, t.prototype.error = function(r) {
248
248
  var n = this.partialObserver;
@@ -250,24 +250,24 @@ var Vi = function() {
250
250
  try {
251
251
  n.error(r);
252
252
  } catch (i) {
253
- cr(i);
253
+ or(i);
254
254
  }
255
255
  else
256
- cr(r);
256
+ or(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
- cr(n);
263
+ or(n);
264
264
  }
265
265
  }, t;
266
266
  }(), _n = function(t) {
267
267
  $e(r, t);
268
268
  function r(n, i, s) {
269
269
  var c = t.call(this) || this, d;
270
- if (kt(n) || !n)
270
+ if (At(n) || !n)
271
271
  d = {
272
272
  next: n ?? void 0,
273
273
  error: i ?? void 0,
@@ -287,7 +287,7 @@ var Vi = function() {
287
287
  }
288
288
  return r;
289
289
  }(ti);
290
- function cr(t) {
290
+ function or(t) {
291
291
  Bi(t);
292
292
  }
293
293
  function Ji(t) {
@@ -320,9 +320,9 @@ var Ln = function() {
320
320
  return n.source = this, n.operator = r, n;
321
321
  }, t.prototype.subscribe = function(r, n, i) {
322
322
  var s = this, c = ra(r) ? r : new _n(r, n, i);
323
- return ur(function() {
324
- var d = s, y = d.operator, w = d.source;
325
- c.add(y ? y.call(c, w) : w ? s._subscribe(c) : s._trySubscribe(c));
323
+ return cr(function() {
324
+ var d = s, y = d.operator, T = d.source;
325
+ c.add(y ? y.call(c, T) : T ? s._subscribe(c) : s._trySubscribe(c));
326
326
  }), c;
327
327
  }, t.prototype._trySubscribe = function(r) {
328
328
  try {
@@ -337,8 +337,8 @@ var Ln = function() {
337
337
  next: function(y) {
338
338
  try {
339
339
  r(y);
340
- } catch (w) {
341
- c(w), d.unsubscribe();
340
+ } catch (T) {
341
+ c(T), d.unsubscribe();
342
342
  }
343
343
  },
344
344
  error: c,
@@ -376,7 +376,7 @@ function Fn(t) {
376
376
  return (r = t ?? qn.Promise) !== null && r !== void 0 ? r : Promise;
377
377
  }
378
378
  function ea(t) {
379
- return t && kt(t.next) && kt(t.error) && kt(t.complete);
379
+ return t && At(t.next) && At(t.error) && At(t.complete);
380
380
  }
381
381
  function ra(t) {
382
382
  return t && t instanceof ti || ea(t) && Zn(t);
@@ -399,17 +399,17 @@ var na = Vn(function(t) {
399
399
  throw new na();
400
400
  }, r.prototype.next = function(n) {
401
401
  var i = this;
402
- ur(function() {
402
+ cr(function() {
403
403
  var s, c;
404
404
  if (i._throwIfClosed(), !i.isStopped) {
405
405
  i.currentObservers || (i.currentObservers = Array.from(i.observers));
406
406
  try {
407
407
  for (var d = pn(i.currentObservers), y = d.next(); !y.done; y = d.next()) {
408
- var w = y.value;
409
- w.next(n);
408
+ var T = y.value;
409
+ T.next(n);
410
410
  }
411
- } catch (R) {
412
- s = { error: R };
411
+ } catch (C) {
412
+ s = { error: C };
413
413
  } finally {
414
414
  try {
415
415
  y && !y.done && (c = d.return) && c.call(d);
@@ -421,7 +421,7 @@ var na = Vn(function(t) {
421
421
  });
422
422
  }, r.prototype.error = function(n) {
423
423
  var i = this;
424
- ur(function() {
424
+ cr(function() {
425
425
  if (i._throwIfClosed(), !i.isStopped) {
426
426
  i.hasError = i.isStopped = !0, i.thrownError = n;
427
427
  for (var s = i.observers; s.length; )
@@ -430,7 +430,7 @@ var na = Vn(function(t) {
430
430
  });
431
431
  }, r.prototype.complete = function() {
432
432
  var n = this;
433
- ur(function() {
433
+ cr(function() {
434
434
  if (n._throwIfClosed(), !n.isStopped) {
435
435
  n.isStopped = !0;
436
436
  for (var i = n.observers; i.length; )
@@ -506,34 +506,34 @@ var na = Vn(function(t) {
506
506
  }, r.prototype.next = function(n) {
507
507
  t.prototype.next.call(this, this._value = n);
508
508
  }, r;
509
- }(ei), pt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
510
- function wn(t) {
509
+ }(ei), ht = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
510
+ function kn(t) {
511
511
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
512
512
  }
513
513
  var lr = { exports: {} };
514
514
  lr.exports;
515
515
  (function(t, r) {
516
- var n = 200, i = "__lodash_hash_undefined__", s = 1, c = 2, d = 9007199254740991, y = "[object Arguments]", w = "[object Array]", R = "[object AsyncFunction]", S = "[object Boolean]", N = "[object Date]", _ = "[object Error]", f = "[object Function]", l = "[object GeneratorFunction]", p = "[object Map]", I = "[object Number]", b = "[object Null]", g = "[object Object]", m = "[object Promise]", h = "[object Proxy]", T = "[object RegExp]", D = "[object Set]", k = "[object String]", x = "[object Symbol]", C = "[object Undefined]", P = "[object WeakMap]", A = "[object ArrayBuffer]", O = "[object DataView]", z = "[object Float32Array]", ot = "[object Float64Array]", Ot = "[object Int8Array]", Wt = "[object Int16Array]", Xt = "[object Int32Array]", Bt = "[object Uint8Array]", Kt = "[object Uint8ClampedArray]", H = "[object Uint16Array]", Vt = "[object Uint32Array]", Jt = /[\\^$.*+?()[\]{}|]/g, F = /^\[object .+?Constructor\]$/, G = /^(?:0|[1-9]\d*)$/, v = {};
517
- v[z] = v[ot] = v[Ot] = v[Wt] = v[Xt] = v[Bt] = v[Kt] = v[H] = v[Vt] = !0, v[y] = v[w] = v[A] = v[S] = v[O] = v[N] = v[_] = v[f] = v[p] = v[I] = v[g] = v[T] = v[D] = v[k] = v[P] = !1;
518
- var ct = typeof pt == "object" && pt && pt.Object === Object && pt, nt = typeof self == "object" && self && self.Object === Object && self, U = ct || nt || Function("return this")(), ft = r && !r.nodeType && r, K = ft && !0 && t && !t.nodeType && t, Y = K && K.exports === ft, ht = Y && ct.process, Zt = function() {
516
+ var n = 200, i = "__lodash_hash_undefined__", s = 1, c = 2, d = 9007199254740991, y = "[object Arguments]", T = "[object Array]", C = "[object AsyncFunction]", S = "[object Boolean]", F = "[object Date]", _ = "[object Error]", f = "[object Function]", l = "[object GeneratorFunction]", h = "[object Map]", g = "[object Number]", I = "[object Null]", b = "[object Object]", p = "[object Promise]", m = "[object Proxy]", k = "[object RegExp]", O = "[object Set]", w = "[object String]", x = "[object Symbol]", R = "[object Undefined]", P = "[object WeakMap]", E = "[object ArrayBuffer]", D = "[object DataView]", z = "[object Float32Array]", Pt = "[object Float64Array]", xt = "[object Int8Array]", Vt = "[object Int16Array]", Jt = "[object Int32Array]", Zt = "[object Uint8Array]", qt = "[object Uint8ClampedArray]", N = "[object Uint16Array]", Qt = "[object Uint32Array]", te = /[\\^$.*+?()[\]{}|]/g, at = /^\[object .+?Constructor\]$/, Ct = /^(?:0|[1-9]\d*)$/, H = {};
517
+ H[z] = H[Pt] = H[xt] = H[Vt] = H[Jt] = H[Zt] = H[qt] = H[N] = H[Qt] = !0, H[y] = H[T] = H[E] = H[S] = H[D] = H[F] = H[_] = H[f] = H[h] = H[g] = H[b] = H[k] = H[O] = H[w] = H[P] = !1;
518
+ var U = typeof ht == "object" && ht && ht.Object === Object && ht, G = typeof self == "object" && self && self.Object === Object && self, M = U || G || Function("return this")(), ut = r && !r.nodeType && r, rt = ut && !0 && t && !t.nodeType && t, K = rt && rt.exports === ut, lt = K && U.process, V = function() {
519
519
  try {
520
- return ht && ht.binding && ht.binding("util");
520
+ return lt && lt.binding && lt.binding("util");
521
521
  } catch {
522
522
  }
523
- }(), pe = Zt && Zt.isTypedArray;
524
- function Ue(e, a) {
525
- for (var o = -1, u = e == null ? 0 : e.length, M = 0, E = []; ++o < u; ) {
523
+ }(), Y = V && V.isTypedArray;
524
+ function It(e, a) {
525
+ for (var o = -1, u = e == null ? 0 : e.length, A = 0, v = []; ++o < u; ) {
526
526
  var $ = e[o];
527
- a($, o, e) && (E[M++] = $);
527
+ a($, o, e) && (v[A++] = $);
528
528
  }
529
- return E;
529
+ return v;
530
530
  }
531
- function he(e, a) {
532
- for (var o = -1, u = a.length, M = e.length; ++o < u; )
533
- e[M + o] = a[o];
531
+ function Rt(e, a) {
532
+ for (var o = -1, u = a.length, A = e.length; ++o < u; )
533
+ e[A + o] = a[o];
534
534
  return e;
535
535
  }
536
- function Ge(e, a) {
536
+ function Ue(e, a) {
537
537
  for (var o = -1, u = e == null ? 0 : e.length; ++o < u; )
538
538
  if (a(e[o], o, e))
539
539
  return !0;
@@ -549,44 +549,44 @@ lr.exports;
549
549
  return e(a);
550
550
  };
551
551
  }
552
- function qt(e, a) {
552
+ function ee(e, a) {
553
553
  return e.has(a);
554
554
  }
555
- function me(e, a) {
555
+ function _e(e, a) {
556
556
  return e == null ? void 0 : e[a];
557
557
  }
558
- function Ye(e) {
558
+ function Ge(e) {
559
559
  var a = -1, o = Array(e.size);
560
- return e.forEach(function(u, M) {
561
- o[++a] = [M, u];
560
+ return e.forEach(function(u, A) {
561
+ o[++a] = [A, u];
562
562
  }), o;
563
563
  }
564
- function We(e, a) {
564
+ function Ye(e, a) {
565
565
  return function(o) {
566
566
  return e(a(o));
567
567
  };
568
568
  }
569
- function It(e) {
569
+ function gt(e) {
570
570
  var a = -1, o = Array(e.size);
571
571
  return e.forEach(function(u) {
572
572
  o[++a] = u;
573
573
  }), o;
574
574
  }
575
- var Qt = Array.prototype, vr = Function.prototype, xt = Object.prototype, te = U["__core-js_shared__"], ye = vr.toString, dt = xt.hasOwnProperty, Xe = function() {
576
- var e = /[^.]+$/.exec(te && te.keys && te.keys.IE_PROTO || "");
575
+ var re = Array.prototype, vr = Function.prototype, Lt = Object.prototype, ne = M["__core-js_shared__"], Ie = vr.toString, pt = Lt.hasOwnProperty, We = function() {
576
+ var e = /[^.]+$/.exec(ne && ne.keys && ne.keys.IE_PROTO || "");
577
577
  return e ? "Symbol(src)_1." + e : "";
578
- }(), Be = xt.toString, Er = RegExp(
579
- "^" + ye.call(dt).replace(Jt, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
580
- ), _e = Y ? U.Buffer : void 0, ee = U.Symbol, Ke = U.Uint8Array, re = xt.propertyIsEnumerable, Pt = Qt.splice, mt = ee ? ee.toStringTag : void 0, ne = Object.getOwnPropertySymbols, Ie = _e ? _e.isBuffer : void 0, Ct = We(Object.keys, Object), ge = St(U, "DataView"), Rt = St(U, "Map"), be = St(U, "Promise"), ve = St(U, "Set"), Ee = St(U, "WeakMap"), At = St(Object, "create"), Ve = et(ge), Et = et(Rt), Sr = et(be), Tr = et(ve), wr = et(Ee), Je = ee ? ee.prototype : void 0, Se = Je ? Je.valueOf : void 0;
581
- function V(e) {
578
+ }(), Xe = Lt.toString, Sr = RegExp(
579
+ "^" + Ie.call(pt).replace(te, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
580
+ ), ge = K ? M.Buffer : void 0, ie = M.Symbol, Be = M.Uint8Array, ae = Lt.propertyIsEnumerable, Ft = re.splice, mt = ie ? ie.toStringTag : void 0, se = Object.getOwnPropertySymbols, be = ge ? ge.isBuffer : void 0, $t = Ye(Object.keys, Object), ve = Tt(M, "DataView"), Nt = Tt(M, "Map"), Se = Tt(M, "Promise"), Ee = Tt(M, "Set"), Te = Tt(M, "WeakMap"), Dt = Tt(Object, "create"), Ke = nt(ve), Et = nt(Nt), Er = nt(Se), Tr = nt(Ee), kr = nt(Te), Ve = ie ? ie.prototype : void 0, ke = Ve ? Ve.valueOf : void 0;
581
+ function J(e) {
582
582
  var a = -1, o = e == null ? 0 : e.length;
583
583
  for (this.clear(); ++a < o; ) {
584
584
  var u = e[a];
585
585
  this.set(u[0], u[1]);
586
586
  }
587
587
  }
588
- function kr() {
589
- this.__data__ = At ? At(null) : {}, this.size = 0;
588
+ function wr() {
589
+ this.__data__ = Dt ? Dt(null) : {}, this.size = 0;
590
590
  }
591
591
  function Ar(e) {
592
592
  var a = this.has(e) && delete this.__data__[e];
@@ -594,51 +594,51 @@ lr.exports;
594
594
  }
595
595
  function Dr(e) {
596
596
  var a = this.__data__;
597
- if (At) {
597
+ if (Dt) {
598
598
  var o = a[e];
599
599
  return o === i ? void 0 : o;
600
600
  }
601
- return dt.call(a, e) ? a[e] : void 0;
601
+ return pt.call(a, e) ? a[e] : void 0;
602
602
  }
603
603
  function Mr(e) {
604
604
  var a = this.__data__;
605
- return At ? a[e] !== void 0 : dt.call(a, e);
605
+ return Dt ? a[e] !== void 0 : pt.call(a, e);
606
606
  }
607
607
  function Or(e, a) {
608
608
  var o = this.__data__;
609
- return this.size += this.has(e) ? 0 : 1, o[e] = At && a === void 0 ? i : a, this;
609
+ return this.size += this.has(e) ? 0 : 1, o[e] = Dt && a === void 0 ? i : a, this;
610
610
  }
611
- V.prototype.clear = kr, V.prototype.delete = Ar, V.prototype.get = Dr, V.prototype.has = Mr, V.prototype.set = Or;
612
- function Z(e) {
611
+ J.prototype.clear = wr, J.prototype.delete = Ar, J.prototype.get = Dr, J.prototype.has = Mr, J.prototype.set = Or;
612
+ function q(e) {
613
613
  var a = -1, o = e == null ? 0 : e.length;
614
614
  for (this.clear(); ++a < o; ) {
615
615
  var u = e[a];
616
616
  this.set(u[0], u[1]);
617
617
  }
618
618
  }
619
- function xr() {
619
+ function Pr() {
620
620
  this.__data__ = [], this.size = 0;
621
621
  }
622
- function Pr(e) {
623
- var a = this.__data__, o = se(a, e);
622
+ function xr(e) {
623
+ var a = this.__data__, o = ue(a, e);
624
624
  if (o < 0)
625
625
  return !1;
626
626
  var u = a.length - 1;
627
- return o == u ? a.pop() : Pt.call(a, o, 1), --this.size, !0;
627
+ return o == u ? a.pop() : Ft.call(a, o, 1), --this.size, !0;
628
628
  }
629
629
  function Cr(e) {
630
- var a = this.__data__, o = se(a, e);
630
+ var a = this.__data__, o = ue(a, e);
631
631
  return o < 0 ? void 0 : a[o][1];
632
632
  }
633
633
  function Rr(e) {
634
- return se(this.__data__, e) > -1;
634
+ return ue(this.__data__, e) > -1;
635
635
  }
636
636
  function Lr(e, a) {
637
- var o = this.__data__, u = se(o, e);
637
+ var o = this.__data__, u = ue(o, e);
638
638
  return u < 0 ? (++this.size, o.push([e, a])) : o[u][1] = a, this;
639
639
  }
640
- Z.prototype.clear = xr, Z.prototype.delete = Pr, Z.prototype.get = Cr, Z.prototype.has = Rr, Z.prototype.set = Lr;
641
- function it(e) {
640
+ q.prototype.clear = Pr, q.prototype.delete = xr, q.prototype.get = Cr, q.prototype.has = Rr, q.prototype.set = Lr;
641
+ function st(e) {
642
642
  var a = -1, o = e == null ? 0 : e.length;
643
643
  for (this.clear(); ++a < o; ) {
644
644
  var u = e[a];
@@ -647,9 +647,9 @@ lr.exports;
647
647
  }
648
648
  function Fr() {
649
649
  this.size = 0, this.__data__ = {
650
- hash: new V(),
651
- map: new (Rt || Z)(),
652
- string: new V()
650
+ hash: new J(),
651
+ map: new (Nt || q)(),
652
+ string: new J()
653
653
  };
654
654
  }
655
655
  function $r(e) {
@@ -666,25 +666,25 @@ lr.exports;
666
666
  var o = yt(this, e), u = o.size;
667
667
  return o.set(e, a), this.size += o.size == u ? 0 : 1, this;
668
668
  }
669
- it.prototype.clear = Fr, it.prototype.delete = $r, it.prototype.get = Nr, it.prototype.has = Hr, it.prototype.set = jr;
670
- function ie(e) {
669
+ st.prototype.clear = Fr, st.prototype.delete = $r, st.prototype.get = Nr, st.prototype.has = Hr, st.prototype.set = jr;
670
+ function oe(e) {
671
671
  var a = -1, o = e == null ? 0 : e.length;
672
- for (this.__data__ = new it(); ++a < o; )
672
+ for (this.__data__ = new st(); ++a < o; )
673
673
  this.add(e[a]);
674
674
  }
675
- function Ze(e) {
675
+ function Je(e) {
676
676
  return this.__data__.set(e, i), this;
677
677
  }
678
- function ae(e) {
678
+ function ce(e) {
679
679
  return this.__data__.has(e);
680
680
  }
681
- ie.prototype.add = ie.prototype.push = Ze, ie.prototype.has = ae;
682
- function gt(e) {
683
- var a = this.__data__ = new Z(e);
681
+ oe.prototype.add = oe.prototype.push = Je, oe.prototype.has = ce;
682
+ function bt(e) {
683
+ var a = this.__data__ = new q(e);
684
684
  this.size = a.size;
685
685
  }
686
- function Te() {
687
- this.__data__ = new Z(), this.size = 0;
686
+ function we() {
687
+ this.__data__ = new q(), this.size = 0;
688
688
  }
689
689
  function zr(e) {
690
690
  var a = this.__data__, o = a.delete(e);
@@ -698,244 +698,244 @@ lr.exports;
698
698
  }
699
699
  function Yr(e, a) {
700
700
  var o = this.__data__;
701
- if (o instanceof Z) {
701
+ if (o instanceof q) {
702
702
  var u = o.__data__;
703
- if (!Rt || u.length < n - 1)
703
+ if (!Nt || u.length < n - 1)
704
704
  return u.push([e, a]), this.size = ++o.size, this;
705
- o = this.__data__ = new it(u);
705
+ o = this.__data__ = new st(u);
706
706
  }
707
707
  return o.set(e, a), this.size = o.size, this;
708
708
  }
709
- gt.prototype.clear = Te, gt.prototype.delete = zr, gt.prototype.get = Ur, gt.prototype.has = Gr, gt.prototype.set = Yr;
709
+ bt.prototype.clear = we, bt.prototype.delete = zr, bt.prototype.get = Ur, bt.prototype.has = Gr, bt.prototype.set = Yr;
710
710
  function Wr(e, a) {
711
- var o = oe(e), u = !o && rr(e), M = !o && !u && ce(e), E = !o && !u && !M && ar(e), $ = o || u || M || E, L = $ ? gr(e.length, String) : [], W = L.length;
711
+ var o = le(e), u = !o && er(e), A = !o && !u && fe(e), v = !o && !u && !A && ir(e), $ = o || u || A || v, L = $ ? gr(e.length, String) : [], W = L.length;
712
712
  for (var j in e)
713
- dt.call(e, j) && !($ && // Safari 9 has enumerable `arguments.length` in strict mode.
713
+ pt.call(e, j) && !($ && // Safari 9 has enumerable `arguments.length` in strict mode.
714
714
  (j == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
715
- M && (j == "offset" || j == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
716
- E && (j == "buffer" || j == "byteLength" || j == "byteOffset") || // Skip index properties.
715
+ A && (j == "offset" || j == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
716
+ v && (j == "buffer" || j == "byteLength" || j == "byteOffset") || // Skip index properties.
717
717
  Qr(j, W))) && L.push(j);
718
718
  return L;
719
719
  }
720
- function se(e, a) {
720
+ function ue(e, a) {
721
721
  for (var o = e.length; o--; )
722
- if (er(e[o][0], a))
722
+ if (tr(e[o][0], a))
723
723
  return o;
724
724
  return -1;
725
725
  }
726
- function we(e, a, o) {
726
+ function Ae(e, a, o) {
727
727
  var u = a(e);
728
- return oe(e) ? u : he(u, o(e));
728
+ return le(e) ? u : Rt(u, o(e));
729
729
  }
730
- function Lt(e) {
731
- return e == null ? e === void 0 ? C : b : mt && mt in Object(e) ? Tt(e) : tr(e);
730
+ function Ht(e) {
731
+ return e == null ? e === void 0 ? R : I : mt && mt in Object(e) ? kt(e) : Qe(e);
732
732
  }
733
- function qe(e) {
734
- return vt(e) && Lt(e) == y;
733
+ function Ze(e) {
734
+ return St(e) && Ht(e) == y;
735
735
  }
736
- function Qe(e, a, o, u, M) {
737
- return e === a ? !0 : e == null || a == null || !vt(e) && !vt(a) ? e !== e && a !== a : Xr(e, a, o, u, Qe, M);
736
+ function qe(e, a, o, u, A) {
737
+ return e === a ? !0 : e == null || a == null || !St(e) && !St(a) ? e !== e && a !== a : Xr(e, a, o, u, qe, A);
738
738
  }
739
- function Xr(e, a, o, u, M, E) {
740
- var $ = oe(e), L = oe(a), W = $ ? w : bt(e), j = L ? w : bt(a);
741
- W = W == y ? g : W, j = j == y ? g : j;
742
- var q = W == g, at = j == g, X = W == j;
743
- if (X && ce(e)) {
744
- if (!ce(a))
739
+ function Xr(e, a, o, u, A, v) {
740
+ var $ = le(e), L = le(a), W = $ ? T : vt(e), j = L ? T : vt(a);
741
+ W = W == y ? b : W, j = j == y ? b : j;
742
+ var Q = W == b, ot = j == b, X = W == j;
743
+ if (X && fe(e)) {
744
+ if (!fe(a))
745
745
  return !1;
746
- $ = !0, q = !1;
746
+ $ = !0, Q = !1;
747
747
  }
748
- if (X && !q)
749
- return E || (E = new gt()), $ || ar(e) ? ke(e, a, o, u, M, E) : Jr(e, a, W, o, u, M, E);
748
+ if (X && !Q)
749
+ return v || (v = new bt()), $ || ir(e) ? De(e, a, o, u, A, v) : Jr(e, a, W, o, u, A, v);
750
750
  if (!(o & s)) {
751
- var Q = q && dt.call(e, "__wrapped__"), J = at && dt.call(a, "__wrapped__");
752
- if (Q || J) {
753
- var Dt = Q ? e.value() : e, wt = J ? a.value() : a;
754
- return E || (E = new gt()), M(Dt, wt, o, u, E);
751
+ var tt = Q && pt.call(e, "__wrapped__"), Z = ot && pt.call(a, "__wrapped__");
752
+ if (tt || Z) {
753
+ var Mt = tt ? e.value() : e, wt = Z ? a.value() : a;
754
+ return v || (v = new bt()), A(Mt, wt, o, u, v);
755
755
  }
756
756
  }
757
- return X ? (E || (E = new gt()), Zr(e, a, o, u, M, E)) : !1;
757
+ return X ? (v || (v = new bt()), Zr(e, a, o, u, A, v)) : !1;
758
758
  }
759
759
  function Br(e) {
760
- if (!ir(e) || en(e))
760
+ if (!nr(e) || en(e))
761
761
  return !1;
762
- var a = nr(e) ? Er : F;
763
- return a.test(et(e));
762
+ var a = rr(e) ? Sr : at;
763
+ return a.test(nt(e));
764
764
  }
765
765
  function Kr(e) {
766
- return vt(e) && De(e.length) && !!v[Lt(e)];
766
+ return St(e) && Oe(e.length) && !!H[Ht(e)];
767
767
  }
768
768
  function Vr(e) {
769
769
  if (!rn(e))
770
- return Ct(e);
770
+ return $t(e);
771
771
  var a = [];
772
772
  for (var o in Object(e))
773
- dt.call(e, o) && o != "constructor" && a.push(o);
773
+ pt.call(e, o) && o != "constructor" && a.push(o);
774
774
  return a;
775
775
  }
776
- function ke(e, a, o, u, M, E) {
776
+ function De(e, a, o, u, A, v) {
777
777
  var $ = o & s, L = e.length, W = a.length;
778
778
  if (L != W && !($ && W > L))
779
779
  return !1;
780
- var j = E.get(e);
781
- if (j && E.get(a))
780
+ var j = v.get(e);
781
+ if (j && v.get(a))
782
782
  return j == a;
783
- var q = -1, at = !0, X = o & c ? new ie() : void 0;
784
- for (E.set(e, a), E.set(a, e); ++q < L; ) {
785
- var Q = e[q], J = a[q];
783
+ var Q = -1, ot = !0, X = o & c ? new oe() : void 0;
784
+ for (v.set(e, a), v.set(a, e); ++Q < L; ) {
785
+ var tt = e[Q], Z = a[Q];
786
786
  if (u)
787
- var Dt = $ ? u(J, Q, q, a, e, E) : u(Q, J, q, e, a, E);
788
- if (Dt !== void 0) {
789
- if (Dt)
787
+ var Mt = $ ? u(Z, tt, Q, a, e, v) : u(tt, Z, Q, e, a, v);
788
+ if (Mt !== void 0) {
789
+ if (Mt)
790
790
  continue;
791
- at = !1;
791
+ ot = !1;
792
792
  break;
793
793
  }
794
794
  if (X) {
795
- if (!Ge(a, function(wt, $t) {
796
- if (!qt(X, $t) && (Q === wt || M(Q, wt, o, u, E)))
797
- return X.push($t);
795
+ if (!Ue(a, function(wt, zt) {
796
+ if (!ee(X, zt) && (tt === wt || A(tt, wt, o, u, v)))
797
+ return X.push(zt);
798
798
  })) {
799
- at = !1;
799
+ ot = !1;
800
800
  break;
801
801
  }
802
- } else if (!(Q === J || M(Q, J, o, u, E))) {
803
- at = !1;
802
+ } else if (!(tt === Z || A(tt, Z, o, u, v))) {
803
+ ot = !1;
804
804
  break;
805
805
  }
806
806
  }
807
- return E.delete(e), E.delete(a), at;
807
+ return v.delete(e), v.delete(a), ot;
808
808
  }
809
- function Jr(e, a, o, u, M, E, $) {
809
+ function Jr(e, a, o, u, A, v, $) {
810
810
  switch (o) {
811
- case O:
811
+ case D:
812
812
  if (e.byteLength != a.byteLength || e.byteOffset != a.byteOffset)
813
813
  return !1;
814
814
  e = e.buffer, a = a.buffer;
815
- case A:
816
- return !(e.byteLength != a.byteLength || !E(new Ke(e), new Ke(a)));
815
+ case E:
816
+ return !(e.byteLength != a.byteLength || !v(new Be(e), new Be(a)));
817
817
  case S:
818
- case N:
819
- case I:
820
- return er(+e, +a);
818
+ case F:
819
+ case g:
820
+ return tr(+e, +a);
821
821
  case _:
822
822
  return e.name == a.name && e.message == a.message;
823
- case T:
824
823
  case k:
824
+ case w:
825
825
  return e == a + "";
826
- case p:
827
- var L = Ye;
828
- case D:
826
+ case h:
827
+ var L = Ge;
828
+ case O:
829
829
  var W = u & s;
830
- if (L || (L = It), e.size != a.size && !W)
830
+ if (L || (L = gt), e.size != a.size && !W)
831
831
  return !1;
832
832
  var j = $.get(e);
833
833
  if (j)
834
834
  return j == a;
835
835
  u |= c, $.set(e, a);
836
- var q = ke(L(e), L(a), u, M, E, $);
837
- return $.delete(e), q;
836
+ var Q = De(L(e), L(a), u, A, v, $);
837
+ return $.delete(e), Q;
838
838
  case x:
839
- if (Se)
840
- return Se.call(e) == Se.call(a);
839
+ if (ke)
840
+ return ke.call(e) == ke.call(a);
841
841
  }
842
842
  return !1;
843
843
  }
844
- function Zr(e, a, o, u, M, E) {
845
- var $ = o & s, L = Ft(e), W = L.length, j = Ft(a), q = j.length;
846
- if (W != q && !$)
844
+ function Zr(e, a, o, u, A, v) {
845
+ var $ = o & s, L = jt(e), W = L.length, j = jt(a), Q = j.length;
846
+ if (W != Q && !$)
847
847
  return !1;
848
- for (var at = W; at--; ) {
849
- var X = L[at];
850
- if (!($ ? X in a : dt.call(a, X)))
848
+ for (var ot = W; ot--; ) {
849
+ var X = L[ot];
850
+ if (!($ ? X in a : pt.call(a, X)))
851
851
  return !1;
852
852
  }
853
- var Q = E.get(e);
854
- if (Q && E.get(a))
855
- return Q == a;
856
- var J = !0;
857
- E.set(e, a), E.set(a, e);
858
- for (var Dt = $; ++at < W; ) {
859
- X = L[at];
860
- var wt = e[X], $t = a[X];
853
+ var tt = v.get(e);
854
+ if (tt && v.get(a))
855
+ return tt == a;
856
+ var Z = !0;
857
+ v.set(e, a), v.set(a, e);
858
+ for (var Mt = $; ++ot < W; ) {
859
+ X = L[ot];
860
+ var wt = e[X], zt = a[X];
861
861
  if (u)
862
- var Pn = $ ? u($t, wt, X, a, e, E) : u(wt, $t, X, e, a, E);
863
- if (!(Pn === void 0 ? wt === $t || M(wt, $t, o, u, E) : Pn)) {
864
- J = !1;
862
+ var xn = $ ? u(zt, wt, X, a, e, v) : u(wt, zt, X, e, a, v);
863
+ if (!(xn === void 0 ? wt === zt || A(wt, zt, o, u, v) : xn)) {
864
+ Z = !1;
865
865
  break;
866
866
  }
867
- Dt || (Dt = X == "constructor");
867
+ Mt || (Mt = X == "constructor");
868
868
  }
869
- if (J && !Dt) {
870
- var sr = e.constructor, or = a.constructor;
871
- sr != or && "constructor" in e && "constructor" in a && !(typeof sr == "function" && sr instanceof sr && typeof or == "function" && or instanceof or) && (J = !1);
869
+ if (Z && !Mt) {
870
+ var ar = e.constructor, sr = a.constructor;
871
+ ar != sr && "constructor" in e && "constructor" in a && !(typeof ar == "function" && ar instanceof ar && typeof sr == "function" && sr instanceof sr) && (Z = !1);
872
872
  }
873
- return E.delete(e), E.delete(a), J;
873
+ return v.delete(e), v.delete(a), Z;
874
874
  }
875
- function Ft(e) {
876
- return we(e, Me, qr);
875
+ function jt(e) {
876
+ return Ae(e, Pe, qr);
877
877
  }
878
878
  function yt(e, a) {
879
879
  var o = e.__data__;
880
880
  return tn(a) ? o[typeof a == "string" ? "string" : "hash"] : o.map;
881
881
  }
882
- function St(e, a) {
883
- var o = me(e, a);
882
+ function Tt(e, a) {
883
+ var o = _e(e, a);
884
884
  return Br(o) ? o : void 0;
885
885
  }
886
- function Tt(e) {
887
- var a = dt.call(e, mt), o = e[mt];
886
+ function kt(e) {
887
+ var a = pt.call(e, mt), o = e[mt];
888
888
  try {
889
889
  e[mt] = void 0;
890
890
  var u = !0;
891
891
  } catch {
892
892
  }
893
- var M = Be.call(e);
894
- return u && (a ? e[mt] = o : delete e[mt]), M;
893
+ var A = Xe.call(e);
894
+ return u && (a ? e[mt] = o : delete e[mt]), A;
895
895
  }
896
- var qr = ne ? function(e) {
897
- return e == null ? [] : (e = Object(e), Ue(ne(e), function(a) {
898
- return re.call(e, a);
896
+ var qr = se ? function(e) {
897
+ return e == null ? [] : (e = Object(e), It(se(e), function(a) {
898
+ return ae.call(e, a);
899
899
  }));
900
- } : an, bt = Lt;
901
- (ge && bt(new ge(new ArrayBuffer(1))) != O || Rt && bt(new Rt()) != p || be && bt(be.resolve()) != m || ve && bt(new ve()) != D || Ee && bt(new Ee()) != P) && (bt = function(e) {
902
- var a = Lt(e), o = a == g ? e.constructor : void 0, u = o ? et(o) : "";
900
+ } : an, vt = Ht;
901
+ (ve && vt(new ve(new ArrayBuffer(1))) != D || Nt && vt(new Nt()) != h || Se && vt(Se.resolve()) != p || Ee && vt(new Ee()) != O || Te && vt(new Te()) != P) && (vt = function(e) {
902
+ var a = Ht(e), o = a == b ? e.constructor : void 0, u = o ? nt(o) : "";
903
903
  if (u)
904
904
  switch (u) {
905
- case Ve:
906
- return O;
905
+ case Ke:
906
+ return D;
907
907
  case Et:
908
+ return h;
909
+ case Er:
908
910
  return p;
909
- case Sr:
910
- return m;
911
911
  case Tr:
912
- return D;
913
- case wr:
912
+ return O;
913
+ case kr:
914
914
  return P;
915
915
  }
916
916
  return a;
917
917
  });
918
918
  function Qr(e, a) {
919
- return a = a ?? d, !!a && (typeof e == "number" || G.test(e)) && e > -1 && e % 1 == 0 && e < a;
919
+ return a = a ?? d, !!a && (typeof e == "number" || Ct.test(e)) && e > -1 && e % 1 == 0 && e < a;
920
920
  }
921
921
  function tn(e) {
922
922
  var a = typeof e;
923
923
  return a == "string" || a == "number" || a == "symbol" || a == "boolean" ? e !== "__proto__" : e === null;
924
924
  }
925
925
  function en(e) {
926
- return !!Xe && Xe in e;
926
+ return !!We && We in e;
927
927
  }
928
928
  function rn(e) {
929
- var a = e && e.constructor, o = typeof a == "function" && a.prototype || xt;
929
+ var a = e && e.constructor, o = typeof a == "function" && a.prototype || Lt;
930
930
  return e === o;
931
931
  }
932
- function tr(e) {
933
- return Be.call(e);
932
+ function Qe(e) {
933
+ return Xe.call(e);
934
934
  }
935
- function et(e) {
935
+ function nt(e) {
936
936
  if (e != null) {
937
937
  try {
938
- return ye.call(e);
938
+ return Ie.call(e);
939
939
  } catch {
940
940
  }
941
941
  try {
@@ -945,40 +945,40 @@ lr.exports;
945
945
  }
946
946
  return "";
947
947
  }
948
- function er(e, a) {
948
+ function tr(e, a) {
949
949
  return e === a || e !== e && a !== a;
950
950
  }
951
- var rr = qe(/* @__PURE__ */ function() {
951
+ var er = Ze(/* @__PURE__ */ function() {
952
952
  return arguments;
953
- }()) ? qe : function(e) {
954
- return vt(e) && dt.call(e, "callee") && !re.call(e, "callee");
955
- }, oe = Array.isArray;
956
- function Ae(e) {
957
- return e != null && De(e.length) && !nr(e);
953
+ }()) ? Ze : function(e) {
954
+ return St(e) && pt.call(e, "callee") && !ae.call(e, "callee");
955
+ }, le = Array.isArray;
956
+ function Me(e) {
957
+ return e != null && Oe(e.length) && !rr(e);
958
958
  }
959
- var ce = Ie || sn;
959
+ var fe = be || sn;
960
960
  function nn(e, a) {
961
- return Qe(e, a);
961
+ return qe(e, a);
962
962
  }
963
- function nr(e) {
964
- if (!ir(e))
963
+ function rr(e) {
964
+ if (!nr(e))
965
965
  return !1;
966
- var a = Lt(e);
967
- return a == f || a == l || a == R || a == h;
966
+ var a = Ht(e);
967
+ return a == f || a == l || a == C || a == m;
968
968
  }
969
- function De(e) {
969
+ function Oe(e) {
970
970
  return typeof e == "number" && e > -1 && e % 1 == 0 && e <= d;
971
971
  }
972
- function ir(e) {
972
+ function nr(e) {
973
973
  var a = typeof e;
974
974
  return e != null && (a == "object" || a == "function");
975
975
  }
976
- function vt(e) {
976
+ function St(e) {
977
977
  return e != null && typeof e == "object";
978
978
  }
979
- var ar = pe ? br(pe) : Kr;
980
- function Me(e) {
981
- return Ae(e) ? Wr(e) : Vr(e);
979
+ var ir = Y ? br(Y) : Kr;
980
+ function Pe(e) {
981
+ return Me(e) ? Wr(e) : Vr(e);
982
982
  }
983
983
  function an() {
984
984
  return [];
@@ -989,43 +989,43 @@ lr.exports;
989
989
  t.exports = nn;
990
990
  })(lr, lr.exports);
991
991
  var ia = lr.exports;
992
- const rt = /* @__PURE__ */ wn(ia);
992
+ const it = /* @__PURE__ */ kn(ia);
993
993
  var fr = { exports: {} };
994
994
  fr.exports;
995
995
  (function(t, r) {
996
- var n = 200, i = "__lodash_hash_undefined__", s = 9007199254740991, c = "[object Arguments]", d = "[object Array]", y = "[object Boolean]", w = "[object Date]", R = "[object Error]", S = "[object Function]", N = "[object GeneratorFunction]", _ = "[object Map]", f = "[object Number]", l = "[object Object]", p = "[object Promise]", I = "[object RegExp]", b = "[object Set]", g = "[object String]", m = "[object Symbol]", h = "[object WeakMap]", T = "[object ArrayBuffer]", D = "[object DataView]", k = "[object Float32Array]", x = "[object Float64Array]", C = "[object Int8Array]", P = "[object Int16Array]", A = "[object Int32Array]", O = "[object Uint8Array]", z = "[object Uint8ClampedArray]", ot = "[object Uint16Array]", Ot = "[object Uint32Array]", Wt = /[\\^$.*+?()[\]{}|]/g, Xt = /\w*$/, Bt = /^\[object .+?Constructor\]$/, Kt = /^(?:0|[1-9]\d*)$/, H = {};
997
- H[c] = H[d] = H[T] = H[D] = H[y] = H[w] = H[k] = H[x] = H[C] = H[P] = H[A] = H[_] = H[f] = H[l] = H[I] = H[b] = H[g] = H[m] = H[O] = H[z] = H[ot] = H[Ot] = !0, H[R] = H[S] = H[h] = !1;
998
- var Vt = typeof pt == "object" && pt && pt.Object === Object && pt, Jt = typeof self == "object" && self && self.Object === Object && self, F = Vt || Jt || Function("return this")(), G = r && !r.nodeType && r, v = G && !0 && t && !t.nodeType && t, ct = v && v.exports === G;
999
- function nt(e, a) {
996
+ var n = 200, i = "__lodash_hash_undefined__", s = 9007199254740991, c = "[object Arguments]", d = "[object Array]", y = "[object Boolean]", T = "[object Date]", C = "[object Error]", S = "[object Function]", F = "[object GeneratorFunction]", _ = "[object Map]", f = "[object Number]", l = "[object Object]", h = "[object Promise]", g = "[object RegExp]", I = "[object Set]", b = "[object String]", p = "[object Symbol]", m = "[object WeakMap]", k = "[object ArrayBuffer]", O = "[object DataView]", w = "[object Float32Array]", x = "[object Float64Array]", R = "[object Int8Array]", P = "[object Int16Array]", E = "[object Int32Array]", D = "[object Uint8Array]", z = "[object Uint8ClampedArray]", Pt = "[object Uint16Array]", xt = "[object Uint32Array]", Vt = /[\\^$.*+?()[\]{}|]/g, Jt = /\w*$/, Zt = /^\[object .+?Constructor\]$/, qt = /^(?:0|[1-9]\d*)$/, N = {};
997
+ N[c] = N[d] = N[k] = N[O] = N[y] = N[T] = N[w] = N[x] = N[R] = N[P] = N[E] = N[_] = N[f] = N[l] = N[g] = N[I] = N[b] = N[p] = N[D] = N[z] = N[Pt] = N[xt] = !0, N[C] = N[S] = N[m] = !1;
998
+ var Qt = typeof ht == "object" && ht && ht.Object === Object && ht, te = typeof self == "object" && self && self.Object === Object && self, at = Qt || te || Function("return this")(), Ct = r && !r.nodeType && r, H = Ct && !0 && t && !t.nodeType && t, U = H && H.exports === Ct;
999
+ function G(e, a) {
1000
1000
  return e.set(a[0], a[1]), e;
1001
1001
  }
1002
- function U(e, a) {
1002
+ function M(e, a) {
1003
1003
  return e.add(a), e;
1004
1004
  }
1005
- function ft(e, a) {
1005
+ function ut(e, a) {
1006
1006
  for (var o = -1, u = e ? e.length : 0; ++o < u && a(e[o], o, e) !== !1; )
1007
1007
  ;
1008
1008
  return e;
1009
1009
  }
1010
- function K(e, a) {
1011
- for (var o = -1, u = a.length, M = e.length; ++o < u; )
1012
- e[M + o] = a[o];
1010
+ function rt(e, a) {
1011
+ for (var o = -1, u = a.length, A = e.length; ++o < u; )
1012
+ e[A + o] = a[o];
1013
1013
  return e;
1014
1014
  }
1015
- function Y(e, a, o, u) {
1016
- for (var M = -1, E = e ? e.length : 0; ++M < E; )
1017
- o = a(o, e[M], M, e);
1015
+ function K(e, a, o, u) {
1016
+ for (var A = -1, v = e ? e.length : 0; ++A < v; )
1017
+ o = a(o, e[A], A, e);
1018
1018
  return o;
1019
1019
  }
1020
- function ht(e, a) {
1020
+ function lt(e, a) {
1021
1021
  for (var o = -1, u = Array(e); ++o < e; )
1022
1022
  u[o] = a(o);
1023
1023
  return u;
1024
1024
  }
1025
- function Zt(e, a) {
1025
+ function V(e, a) {
1026
1026
  return e == null ? void 0 : e[a];
1027
1027
  }
1028
- function pe(e) {
1028
+ function Y(e) {
1029
1029
  var a = !1;
1030
1030
  if (e != null && typeof e.toString != "function")
1031
1031
  try {
@@ -1034,29 +1034,29 @@ fr.exports;
1034
1034
  }
1035
1035
  return a;
1036
1036
  }
1037
- function Ue(e) {
1037
+ function It(e) {
1038
1038
  var a = -1, o = Array(e.size);
1039
- return e.forEach(function(u, M) {
1040
- o[++a] = [M, u];
1039
+ return e.forEach(function(u, A) {
1040
+ o[++a] = [A, u];
1041
1041
  }), o;
1042
1042
  }
1043
- function he(e, a) {
1043
+ function Rt(e, a) {
1044
1044
  return function(o) {
1045
1045
  return e(a(o));
1046
1046
  };
1047
1047
  }
1048
- function Ge(e) {
1048
+ function Ue(e) {
1049
1049
  var a = -1, o = Array(e.size);
1050
1050
  return e.forEach(function(u) {
1051
1051
  o[++a] = u;
1052
1052
  }), o;
1053
1053
  }
1054
- var gr = Array.prototype, br = Function.prototype, qt = Object.prototype, me = F["__core-js_shared__"], Ye = function() {
1055
- var e = /[^.]+$/.exec(me && me.keys && me.keys.IE_PROTO || "");
1054
+ var gr = Array.prototype, br = Function.prototype, ee = Object.prototype, _e = at["__core-js_shared__"], Ge = function() {
1055
+ var e = /[^.]+$/.exec(_e && _e.keys && _e.keys.IE_PROTO || "");
1056
1056
  return e ? "Symbol(src)_1." + e : "";
1057
- }(), We = br.toString, It = qt.hasOwnProperty, Qt = qt.toString, vr = RegExp(
1058
- "^" + We.call(It).replace(Wt, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
1059
- ), xt = ct ? F.Buffer : void 0, te = F.Symbol, ye = F.Uint8Array, dt = he(Object.getPrototypeOf, Object), Xe = Object.create, Be = qt.propertyIsEnumerable, Er = gr.splice, _e = Object.getOwnPropertySymbols, ee = xt ? xt.isBuffer : void 0, Ke = he(Object.keys, Object), re = yt(F, "DataView"), Pt = yt(F, "Map"), mt = yt(F, "Promise"), ne = yt(F, "Set"), Ie = yt(F, "WeakMap"), Ct = yt(Object, "create"), ge = et(re), Rt = et(Pt), be = et(mt), ve = et(ne), Ee = et(Ie), At = te ? te.prototype : void 0, Ve = At ? At.valueOf : void 0;
1057
+ }(), Ye = br.toString, gt = ee.hasOwnProperty, re = ee.toString, vr = RegExp(
1058
+ "^" + Ye.call(gt).replace(Vt, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
1059
+ ), Lt = U ? at.Buffer : void 0, ne = at.Symbol, Ie = at.Uint8Array, pt = Rt(Object.getPrototypeOf, Object), We = Object.create, Xe = ee.propertyIsEnumerable, Sr = gr.splice, ge = Object.getOwnPropertySymbols, ie = Lt ? Lt.isBuffer : void 0, Be = Rt(Object.keys, Object), ae = yt(at, "DataView"), Ft = yt(at, "Map"), mt = yt(at, "Promise"), se = yt(at, "Set"), be = yt(at, "WeakMap"), $t = yt(Object, "create"), ve = nt(ae), Nt = nt(Ft), Se = nt(mt), Ee = nt(se), Te = nt(be), Dt = ne ? ne.prototype : void 0, Ke = Dt ? Dt.valueOf : void 0;
1060
1060
  function Et(e) {
1061
1061
  var a = -1, o = e ? e.length : 0;
1062
1062
  for (this.clear(); ++a < o; ) {
@@ -1064,90 +1064,90 @@ fr.exports;
1064
1064
  this.set(u[0], u[1]);
1065
1065
  }
1066
1066
  }
1067
- function Sr() {
1068
- this.__data__ = Ct ? Ct(null) : {};
1067
+ function Er() {
1068
+ this.__data__ = $t ? $t(null) : {};
1069
1069
  }
1070
1070
  function Tr(e) {
1071
1071
  return this.has(e) && delete this.__data__[e];
1072
1072
  }
1073
- function wr(e) {
1073
+ function kr(e) {
1074
1074
  var a = this.__data__;
1075
- if (Ct) {
1075
+ if ($t) {
1076
1076
  var o = a[e];
1077
1077
  return o === i ? void 0 : o;
1078
1078
  }
1079
- return It.call(a, e) ? a[e] : void 0;
1079
+ return gt.call(a, e) ? a[e] : void 0;
1080
1080
  }
1081
- function Je(e) {
1081
+ function Ve(e) {
1082
1082
  var a = this.__data__;
1083
- return Ct ? a[e] !== void 0 : It.call(a, e);
1083
+ return $t ? a[e] !== void 0 : gt.call(a, e);
1084
1084
  }
1085
- function Se(e, a) {
1085
+ function ke(e, a) {
1086
1086
  var o = this.__data__;
1087
- return o[e] = Ct && a === void 0 ? i : a, this;
1087
+ return o[e] = $t && a === void 0 ? i : a, this;
1088
1088
  }
1089
- Et.prototype.clear = Sr, Et.prototype.delete = Tr, Et.prototype.get = wr, Et.prototype.has = Je, Et.prototype.set = Se;
1090
- function V(e) {
1089
+ Et.prototype.clear = Er, Et.prototype.delete = Tr, Et.prototype.get = kr, Et.prototype.has = Ve, Et.prototype.set = ke;
1090
+ function J(e) {
1091
1091
  var a = -1, o = e ? e.length : 0;
1092
1092
  for (this.clear(); ++a < o; ) {
1093
1093
  var u = e[a];
1094
1094
  this.set(u[0], u[1]);
1095
1095
  }
1096
1096
  }
1097
- function kr() {
1097
+ function wr() {
1098
1098
  this.__data__ = [];
1099
1099
  }
1100
1100
  function Ar(e) {
1101
- var a = this.__data__, o = ae(a, e);
1101
+ var a = this.__data__, o = ce(a, e);
1102
1102
  if (o < 0)
1103
1103
  return !1;
1104
1104
  var u = a.length - 1;
1105
- return o == u ? a.pop() : Er.call(a, o, 1), !0;
1105
+ return o == u ? a.pop() : Sr.call(a, o, 1), !0;
1106
1106
  }
1107
1107
  function Dr(e) {
1108
- var a = this.__data__, o = ae(a, e);
1108
+ var a = this.__data__, o = ce(a, e);
1109
1109
  return o < 0 ? void 0 : a[o][1];
1110
1110
  }
1111
1111
  function Mr(e) {
1112
- return ae(this.__data__, e) > -1;
1112
+ return ce(this.__data__, e) > -1;
1113
1113
  }
1114
1114
  function Or(e, a) {
1115
- var o = this.__data__, u = ae(o, e);
1115
+ var o = this.__data__, u = ce(o, e);
1116
1116
  return u < 0 ? o.push([e, a]) : o[u][1] = a, this;
1117
1117
  }
1118
- V.prototype.clear = kr, V.prototype.delete = Ar, V.prototype.get = Dr, V.prototype.has = Mr, V.prototype.set = Or;
1119
- function Z(e) {
1118
+ J.prototype.clear = wr, J.prototype.delete = Ar, J.prototype.get = Dr, J.prototype.has = Mr, J.prototype.set = Or;
1119
+ function q(e) {
1120
1120
  var a = -1, o = e ? e.length : 0;
1121
1121
  for (this.clear(); ++a < o; ) {
1122
1122
  var u = e[a];
1123
1123
  this.set(u[0], u[1]);
1124
1124
  }
1125
1125
  }
1126
- function xr() {
1126
+ function Pr() {
1127
1127
  this.__data__ = {
1128
1128
  hash: new Et(),
1129
- map: new (Pt || V)(),
1129
+ map: new (Ft || J)(),
1130
1130
  string: new Et()
1131
1131
  };
1132
1132
  }
1133
- function Pr(e) {
1134
- return Ft(this, e).delete(e);
1133
+ function xr(e) {
1134
+ return jt(this, e).delete(e);
1135
1135
  }
1136
1136
  function Cr(e) {
1137
- return Ft(this, e).get(e);
1137
+ return jt(this, e).get(e);
1138
1138
  }
1139
1139
  function Rr(e) {
1140
- return Ft(this, e).has(e);
1140
+ return jt(this, e).has(e);
1141
1141
  }
1142
1142
  function Lr(e, a) {
1143
- return Ft(this, e).set(e, a), this;
1143
+ return jt(this, e).set(e, a), this;
1144
1144
  }
1145
- Z.prototype.clear = xr, Z.prototype.delete = Pr, Z.prototype.get = Cr, Z.prototype.has = Rr, Z.prototype.set = Lr;
1146
- function it(e) {
1147
- this.__data__ = new V(e);
1145
+ q.prototype.clear = Pr, q.prototype.delete = xr, q.prototype.get = Cr, q.prototype.has = Rr, q.prototype.set = Lr;
1146
+ function st(e) {
1147
+ this.__data__ = new J(e);
1148
1148
  }
1149
1149
  function Fr() {
1150
- this.__data__ = new V();
1150
+ this.__data__ = new J();
1151
1151
  }
1152
1152
  function $r(e) {
1153
1153
  return this.__data__.delete(e);
@@ -1160,124 +1160,124 @@ fr.exports;
1160
1160
  }
1161
1161
  function jr(e, a) {
1162
1162
  var o = this.__data__;
1163
- if (o instanceof V) {
1163
+ if (o instanceof J) {
1164
1164
  var u = o.__data__;
1165
- if (!Pt || u.length < n - 1)
1165
+ if (!Ft || u.length < n - 1)
1166
1166
  return u.push([e, a]), this;
1167
- o = this.__data__ = new Z(u);
1167
+ o = this.__data__ = new q(u);
1168
1168
  }
1169
1169
  return o.set(e, a), this;
1170
1170
  }
1171
- it.prototype.clear = Fr, it.prototype.delete = $r, it.prototype.get = Nr, it.prototype.has = Hr, it.prototype.set = jr;
1172
- function ie(e, a) {
1173
- var o = Ae(e) || oe(e) ? ht(e.length, String) : [], u = o.length, M = !!u;
1174
- for (var E in e)
1175
- It.call(e, E) && !(M && (E == "length" || tn(E, u))) && o.push(E);
1171
+ st.prototype.clear = Fr, st.prototype.delete = $r, st.prototype.get = Nr, st.prototype.has = Hr, st.prototype.set = jr;
1172
+ function oe(e, a) {
1173
+ var o = Me(e) || le(e) ? lt(e.length, String) : [], u = o.length, A = !!u;
1174
+ for (var v in e)
1175
+ gt.call(e, v) && !(A && (v == "length" || tn(v, u))) && o.push(v);
1176
1176
  return o;
1177
1177
  }
1178
- function Ze(e, a, o) {
1178
+ function Je(e, a, o) {
1179
1179
  var u = e[a];
1180
- (!(It.call(e, a) && rr(u, o)) || o === void 0 && !(a in e)) && (e[a] = o);
1180
+ (!(gt.call(e, a) && er(u, o)) || o === void 0 && !(a in e)) && (e[a] = o);
1181
1181
  }
1182
- function ae(e, a) {
1182
+ function ce(e, a) {
1183
1183
  for (var o = e.length; o--; )
1184
- if (rr(e[o][0], a))
1184
+ if (er(e[o][0], a))
1185
1185
  return o;
1186
1186
  return -1;
1187
1187
  }
1188
- function gt(e, a) {
1189
- return e && ke(a, Me(a), e);
1188
+ function bt(e, a) {
1189
+ return e && De(a, Pe(a), e);
1190
1190
  }
1191
- function Te(e, a, o, u, M, E, $) {
1191
+ function we(e, a, o, u, A, v, $) {
1192
1192
  var L;
1193
- if (u && (L = E ? u(e, M, E, $) : u(e)), L !== void 0)
1193
+ if (u && (L = v ? u(e, A, v, $) : u(e)), L !== void 0)
1194
1194
  return L;
1195
- if (!vt(e))
1195
+ if (!St(e))
1196
1196
  return e;
1197
- var W = Ae(e);
1197
+ var W = Me(e);
1198
1198
  if (W) {
1199
1199
  if (L = qr(e), !a)
1200
1200
  return Vr(e, L);
1201
1201
  } else {
1202
- var j = Tt(e), q = j == S || j == N;
1203
- if (nr(e))
1204
- return se(e, a);
1205
- if (j == l || j == c || q && !E) {
1206
- if (pe(e))
1207
- return E ? e : {};
1208
- if (L = bt(q ? {} : e), !a)
1209
- return Jr(e, gt(L, e));
1202
+ var j = kt(e), Q = j == S || j == F;
1203
+ if (rr(e))
1204
+ return ue(e, a);
1205
+ if (j == l || j == c || Q && !v) {
1206
+ if (Y(e))
1207
+ return v ? e : {};
1208
+ if (L = vt(Q ? {} : e), !a)
1209
+ return Jr(e, bt(L, e));
1210
1210
  } else {
1211
- if (!H[j])
1212
- return E ? e : {};
1213
- L = Qr(e, j, Te, a);
1211
+ if (!N[j])
1212
+ return v ? e : {};
1213
+ L = Qr(e, j, we, a);
1214
1214
  }
1215
1215
  }
1216
- $ || ($ = new it());
1217
- var at = $.get(e);
1218
- if (at)
1219
- return at;
1216
+ $ || ($ = new st());
1217
+ var ot = $.get(e);
1218
+ if (ot)
1219
+ return ot;
1220
1220
  if ($.set(e, L), !W)
1221
- var X = o ? Zr(e) : Me(e);
1222
- return ft(X || e, function(Q, J) {
1223
- X && (J = Q, Q = e[J]), Ze(L, J, Te(Q, a, o, u, J, e, $));
1221
+ var X = o ? Zr(e) : Pe(e);
1222
+ return ut(X || e, function(tt, Z) {
1223
+ X && (Z = tt, tt = e[Z]), Je(L, Z, we(tt, a, o, u, Z, e, $));
1224
1224
  }), L;
1225
1225
  }
1226
1226
  function zr(e) {
1227
- return vt(e) ? Xe(e) : {};
1227
+ return St(e) ? We(e) : {};
1228
1228
  }
1229
1229
  function Ur(e, a, o) {
1230
1230
  var u = a(e);
1231
- return Ae(e) ? u : K(u, o(e));
1231
+ return Me(e) ? u : rt(u, o(e));
1232
1232
  }
1233
1233
  function Gr(e) {
1234
- return Qt.call(e);
1234
+ return re.call(e);
1235
1235
  }
1236
1236
  function Yr(e) {
1237
- if (!vt(e) || rn(e))
1237
+ if (!St(e) || rn(e))
1238
1238
  return !1;
1239
- var a = De(e) || pe(e) ? vr : Bt;
1240
- return a.test(et(e));
1239
+ var a = Oe(e) || Y(e) ? vr : Zt;
1240
+ return a.test(nt(e));
1241
1241
  }
1242
1242
  function Wr(e) {
1243
- if (!tr(e))
1244
- return Ke(e);
1243
+ if (!Qe(e))
1244
+ return Be(e);
1245
1245
  var a = [];
1246
1246
  for (var o in Object(e))
1247
- It.call(e, o) && o != "constructor" && a.push(o);
1247
+ gt.call(e, o) && o != "constructor" && a.push(o);
1248
1248
  return a;
1249
1249
  }
1250
- function se(e, a) {
1250
+ function ue(e, a) {
1251
1251
  if (a)
1252
1252
  return e.slice();
1253
1253
  var o = new e.constructor(e.length);
1254
1254
  return e.copy(o), o;
1255
1255
  }
1256
- function we(e) {
1256
+ function Ae(e) {
1257
1257
  var a = new e.constructor(e.byteLength);
1258
- return new ye(a).set(new ye(e)), a;
1258
+ return new Ie(a).set(new Ie(e)), a;
1259
1259
  }
1260
- function Lt(e, a) {
1261
- var o = a ? we(e.buffer) : e.buffer;
1260
+ function Ht(e, a) {
1261
+ var o = a ? Ae(e.buffer) : e.buffer;
1262
1262
  return new e.constructor(o, e.byteOffset, e.byteLength);
1263
1263
  }
1264
- function qe(e, a, o) {
1265
- var u = a ? o(Ue(e), !0) : Ue(e);
1266
- return Y(u, nt, new e.constructor());
1264
+ function Ze(e, a, o) {
1265
+ var u = a ? o(It(e), !0) : It(e);
1266
+ return K(u, G, new e.constructor());
1267
1267
  }
1268
- function Qe(e) {
1269
- var a = new e.constructor(e.source, Xt.exec(e));
1268
+ function qe(e) {
1269
+ var a = new e.constructor(e.source, Jt.exec(e));
1270
1270
  return a.lastIndex = e.lastIndex, a;
1271
1271
  }
1272
1272
  function Xr(e, a, o) {
1273
- var u = a ? o(Ge(e), !0) : Ge(e);
1274
- return Y(u, U, new e.constructor());
1273
+ var u = a ? o(Ue(e), !0) : Ue(e);
1274
+ return K(u, M, new e.constructor());
1275
1275
  }
1276
1276
  function Br(e) {
1277
- return Ve ? Object(Ve.call(e)) : {};
1277
+ return Ke ? Object(Ke.call(e)) : {};
1278
1278
  }
1279
1279
  function Kr(e, a) {
1280
- var o = a ? we(e.buffer) : e.buffer;
1280
+ var o = a ? Ae(e.buffer) : e.buffer;
1281
1281
  return new e.constructor(o, e.byteOffset, e.length);
1282
1282
  }
1283
1283
  function Vr(e, a) {
@@ -1286,104 +1286,104 @@ fr.exports;
1286
1286
  a[o] = e[o];
1287
1287
  return a;
1288
1288
  }
1289
- function ke(e, a, o, u) {
1289
+ function De(e, a, o, u) {
1290
1290
  o || (o = {});
1291
- for (var M = -1, E = a.length; ++M < E; ) {
1292
- var $ = a[M], L = void 0;
1293
- Ze(o, $, L === void 0 ? e[$] : L);
1291
+ for (var A = -1, v = a.length; ++A < v; ) {
1292
+ var $ = a[A], L = void 0;
1293
+ Je(o, $, L === void 0 ? e[$] : L);
1294
1294
  }
1295
1295
  return o;
1296
1296
  }
1297
1297
  function Jr(e, a) {
1298
- return ke(e, St(e), a);
1298
+ return De(e, Tt(e), a);
1299
1299
  }
1300
1300
  function Zr(e) {
1301
- return Ur(e, Me, St);
1301
+ return Ur(e, Pe, Tt);
1302
1302
  }
1303
- function Ft(e, a) {
1303
+ function jt(e, a) {
1304
1304
  var o = e.__data__;
1305
1305
  return en(a) ? o[typeof a == "string" ? "string" : "hash"] : o.map;
1306
1306
  }
1307
1307
  function yt(e, a) {
1308
- var o = Zt(e, a);
1308
+ var o = V(e, a);
1309
1309
  return Yr(o) ? o : void 0;
1310
1310
  }
1311
- var St = _e ? he(_e, Object) : an, Tt = Gr;
1312
- (re && Tt(new re(new ArrayBuffer(1))) != D || Pt && Tt(new Pt()) != _ || mt && Tt(mt.resolve()) != p || ne && Tt(new ne()) != b || Ie && Tt(new Ie()) != h) && (Tt = function(e) {
1313
- var a = Qt.call(e), o = a == l ? e.constructor : void 0, u = o ? et(o) : void 0;
1311
+ var Tt = ge ? Rt(ge, Object) : an, kt = Gr;
1312
+ (ae && kt(new ae(new ArrayBuffer(1))) != O || Ft && kt(new Ft()) != _ || mt && kt(mt.resolve()) != h || se && kt(new se()) != I || be && kt(new be()) != m) && (kt = function(e) {
1313
+ var a = re.call(e), o = a == l ? e.constructor : void 0, u = o ? nt(o) : void 0;
1314
1314
  if (u)
1315
1315
  switch (u) {
1316
- case ge:
1317
- return D;
1318
- case Rt:
1319
- return _;
1320
- case be:
1321
- return p;
1322
1316
  case ve:
1323
- return b;
1324
- case Ee:
1317
+ return O;
1318
+ case Nt:
1319
+ return _;
1320
+ case Se:
1325
1321
  return h;
1322
+ case Ee:
1323
+ return I;
1324
+ case Te:
1325
+ return m;
1326
1326
  }
1327
1327
  return a;
1328
1328
  });
1329
1329
  function qr(e) {
1330
1330
  var a = e.length, o = e.constructor(a);
1331
- return a && typeof e[0] == "string" && It.call(e, "index") && (o.index = e.index, o.input = e.input), o;
1331
+ return a && typeof e[0] == "string" && gt.call(e, "index") && (o.index = e.index, o.input = e.input), o;
1332
1332
  }
1333
- function bt(e) {
1334
- return typeof e.constructor == "function" && !tr(e) ? zr(dt(e)) : {};
1333
+ function vt(e) {
1334
+ return typeof e.constructor == "function" && !Qe(e) ? zr(pt(e)) : {};
1335
1335
  }
1336
1336
  function Qr(e, a, o, u) {
1337
- var M = e.constructor;
1337
+ var A = e.constructor;
1338
1338
  switch (a) {
1339
- case T:
1340
- return we(e);
1339
+ case k:
1340
+ return Ae(e);
1341
1341
  case y:
1342
+ case T:
1343
+ return new A(+e);
1344
+ case O:
1345
+ return Ht(e, u);
1342
1346
  case w:
1343
- return new M(+e);
1344
- case D:
1345
- return Lt(e, u);
1346
- case k:
1347
1347
  case x:
1348
- case C:
1348
+ case R:
1349
1349
  case P:
1350
- case A:
1351
- case O:
1350
+ case E:
1351
+ case D:
1352
1352
  case z:
1353
- case ot:
1354
- case Ot:
1353
+ case Pt:
1354
+ case xt:
1355
1355
  return Kr(e, u);
1356
1356
  case _:
1357
- return qe(e, u, o);
1357
+ return Ze(e, u, o);
1358
1358
  case f:
1359
+ case b:
1360
+ return new A(e);
1359
1361
  case g:
1360
- return new M(e);
1362
+ return qe(e);
1361
1363
  case I:
1362
- return Qe(e);
1363
- case b:
1364
1364
  return Xr(e, u, o);
1365
- case m:
1365
+ case p:
1366
1366
  return Br(e);
1367
1367
  }
1368
1368
  }
1369
1369
  function tn(e, a) {
1370
- return a = a ?? s, !!a && (typeof e == "number" || Kt.test(e)) && e > -1 && e % 1 == 0 && e < a;
1370
+ return a = a ?? s, !!a && (typeof e == "number" || qt.test(e)) && e > -1 && e % 1 == 0 && e < a;
1371
1371
  }
1372
1372
  function en(e) {
1373
1373
  var a = typeof e;
1374
1374
  return a == "string" || a == "number" || a == "symbol" || a == "boolean" ? e !== "__proto__" : e === null;
1375
1375
  }
1376
1376
  function rn(e) {
1377
- return !!Ye && Ye in e;
1377
+ return !!Ge && Ge in e;
1378
1378
  }
1379
- function tr(e) {
1380
- var a = e && e.constructor, o = typeof a == "function" && a.prototype || qt;
1379
+ function Qe(e) {
1380
+ var a = e && e.constructor, o = typeof a == "function" && a.prototype || ee;
1381
1381
  return e === o;
1382
1382
  }
1383
- function et(e) {
1383
+ function nt(e) {
1384
1384
  if (e != null) {
1385
1385
  try {
1386
- return We.call(e);
1386
+ return Ye.call(e);
1387
1387
  } catch {
1388
1388
  }
1389
1389
  try {
@@ -1393,39 +1393,39 @@ fr.exports;
1393
1393
  }
1394
1394
  return "";
1395
1395
  }
1396
- function er(e) {
1397
- return Te(e, !0, !0);
1396
+ function tr(e) {
1397
+ return we(e, !0, !0);
1398
1398
  }
1399
- function rr(e, a) {
1399
+ function er(e, a) {
1400
1400
  return e === a || e !== e && a !== a;
1401
1401
  }
1402
- function oe(e) {
1403
- return nn(e) && It.call(e, "callee") && (!Be.call(e, "callee") || Qt.call(e) == c);
1402
+ function le(e) {
1403
+ return nn(e) && gt.call(e, "callee") && (!Xe.call(e, "callee") || re.call(e) == c);
1404
1404
  }
1405
- var Ae = Array.isArray;
1406
- function ce(e) {
1407
- return e != null && ir(e.length) && !De(e);
1405
+ var Me = Array.isArray;
1406
+ function fe(e) {
1407
+ return e != null && nr(e.length) && !Oe(e);
1408
1408
  }
1409
1409
  function nn(e) {
1410
- return ar(e) && ce(e);
1410
+ return ir(e) && fe(e);
1411
1411
  }
1412
- var nr = ee || sn;
1413
- function De(e) {
1414
- var a = vt(e) ? Qt.call(e) : "";
1415
- return a == S || a == N;
1412
+ var rr = ie || sn;
1413
+ function Oe(e) {
1414
+ var a = St(e) ? re.call(e) : "";
1415
+ return a == S || a == F;
1416
1416
  }
1417
- function ir(e) {
1417
+ function nr(e) {
1418
1418
  return typeof e == "number" && e > -1 && e % 1 == 0 && e <= s;
1419
1419
  }
1420
- function vt(e) {
1420
+ function St(e) {
1421
1421
  var a = typeof e;
1422
1422
  return !!e && (a == "object" || a == "function");
1423
1423
  }
1424
- function ar(e) {
1424
+ function ir(e) {
1425
1425
  return !!e && typeof e == "object";
1426
1426
  }
1427
- function Me(e) {
1428
- return ce(e) ? ie(e) : Wr(e);
1427
+ function Pe(e) {
1428
+ return fe(e) ? oe(e) : Wr(e);
1429
1429
  }
1430
1430
  function an() {
1431
1431
  return [];
@@ -1433,10 +1433,10 @@ fr.exports;
1433
1433
  function sn() {
1434
1434
  return !1;
1435
1435
  }
1436
- t.exports = er;
1436
+ t.exports = tr;
1437
1437
  })(fr, fr.exports);
1438
1438
  var aa = fr.exports;
1439
- const tt = /* @__PURE__ */ wn(aa), ri = (t) => new Promise((r, n) => {
1439
+ const et = /* @__PURE__ */ kn(aa), ri = (t) => new Promise((r, n) => {
1440
1440
  const i = new Image();
1441
1441
  console.warn("update cdn config for cors?"), i.onload = () => {
1442
1442
  const s = i.width, c = i.height;
@@ -1477,15 +1477,15 @@ const tt = /* @__PURE__ */ wn(aa), ri = (t) => new Promise((r, n) => {
1477
1477
  }).catch((s) => i(s));
1478
1478
  });
1479
1479
  }, oa = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
1480
- let Oe = (t = 21) => {
1480
+ let ur = (t = 21) => {
1481
1481
  let r = "", n = crypto.getRandomValues(new Uint8Array(t));
1482
1482
  for (; t--; )
1483
1483
  r += oa[n[t] & 63];
1484
1484
  return r;
1485
1485
  };
1486
- function xe(t = 16) {
1486
+ function he(t = 16) {
1487
1487
  const r = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", n = r.charAt(Math.floor(Math.random() * r.length));
1488
- let i = Oe(t - 1);
1488
+ let i = ur(t - 1);
1489
1489
  return i = i.replace(/[^a-zA-Z0-9]/g, "").slice(0, t - 1), n + i;
1490
1490
  }
1491
1491
  const yr = {
@@ -1602,20 +1602,21 @@ const si = async (t, r) => {
1602
1602
  duration: s
1603
1603
  };
1604
1604
  }, ca = async (t, r) => {
1605
- const n = t.trackItemIds, i = {
1605
+ var F, _, f;
1606
+ const n = t.trackItemIds, i = t.size || {
1606
1607
  width: t.details.width,
1607
1608
  height: t.details.height
1608
1609
  }, s = Math.min(
1609
1610
  r.size.width / i.width,
1610
1611
  r.size.height / i.height
1611
- ), c = t.details.rotate || 0, d = {
1612
- top: t.details.top || 0,
1613
- left: t.details.left || 0
1614
- }, y = t.display, w = t.trim || t.display;
1615
- let R = 1 / 0, S = 0;
1616
- return n.forEach((N) => {
1617
- const _ = t.trackItemsMap[N];
1618
- _.display.from < R && (R = _.display.from), _.display.to > S && (S = _.display.to);
1612
+ ), c = ((F = t.details) == null ? void 0 : F.rotate) || 0, d = {
1613
+ top: ((_ = t.details) == null ? void 0 : _.top) || 0,
1614
+ left: ((f = t.details) == null ? void 0 : f.left) || 0
1615
+ }, y = t.display, T = t.trim || t.display;
1616
+ let C = 1 / 0, S = 0;
1617
+ return n.forEach((l) => {
1618
+ const h = t.trackItemsMap[l];
1619
+ h.display.from < C && (C = h.display.from), h.display.to > S && (S = h.display.to);
1619
1620
  }), {
1620
1621
  id: t.id,
1621
1622
  details: {
@@ -1625,8 +1626,8 @@ const si = async (t, r) => {
1625
1626
  scale: s,
1626
1627
  rotate: c
1627
1628
  },
1628
- trim: w,
1629
- display: y || { from: R, to: S },
1629
+ trim: T,
1630
+ display: y || { from: C, to: S },
1630
1631
  activeEdit: !1
1631
1632
  };
1632
1633
  }, ci = async (t, r) => {
@@ -1778,7 +1779,9 @@ const si = async (t, r) => {
1778
1779
  top: t.top,
1779
1780
  left: t.left,
1780
1781
  textTransform: t.textTransform || "none",
1781
- transform: t.transform || "none"
1782
+ transform: t.transform || "none",
1783
+ skewX: t.skewX || 0,
1784
+ skewY: t.skewY || 0
1782
1785
  }), ua = async (t, r) => {
1783
1786
  switch (t.type) {
1784
1787
  case "video":
@@ -1801,7 +1804,7 @@ function la(t, r) {
1801
1804
  );
1802
1805
  }
1803
1806
  const fa = (t = [], r = []) => t.length === 0 ? r.map((i) => ({
1804
- id: xe(),
1807
+ id: he(),
1805
1808
  items: [i.id],
1806
1809
  type: i.type,
1807
1810
  accepts: ["text", "image", "video", "audio", "caption", "template"]
@@ -1812,17 +1815,17 @@ const fa = (t = [], r = []) => t.length === 0 ? r.map((i) => ({
1812
1815
  type: n.type || "text",
1813
1816
  magnetic: n.magnetic || !1,
1814
1817
  static: n.static || !1,
1815
- id: n.id || xe()
1818
+ id: n.id || he()
1816
1819
  }));
1817
1820
  function da(t, r) {
1818
1821
  return t.filter((i) => {
1819
1822
  if (r.forEach((s) => {
1820
1823
  i.items.includes(s) && (i.items = i.items.filter((c) => c !== s));
1821
- }), i.items.length !== 0)
1824
+ }), i.items.length !== 0 || i.static)
1822
1825
  return i;
1823
1826
  });
1824
1827
  }
1825
- const jt = (t) => Object.keys(t).reduce((r, n) => {
1828
+ const Yt = (t) => Object.keys(t).reduce((r, n) => {
1826
1829
  const { display: i, playbackRate: s } = t[n];
1827
1830
  return Math.max(r, i.to / (s || 1));
1828
1831
  }, 0);
@@ -1832,18 +1835,18 @@ function In(t, r, n) {
1832
1835
  const pa = (t, r, n, i, s) => {
1833
1836
  if (i === void 0 && s === void 0)
1834
1837
  return { trackId: void 0, trackIndex: void 0 };
1835
- const c = s !== void 0 ? r[In(s, 0, r.length)] : r.find((w) => w.id === i);
1838
+ const c = s !== void 0 ? r[In(s, 0, r.length)] : r.find((T) => T.id === i);
1836
1839
  if (!c)
1837
1840
  return {
1838
1841
  trackId: void 0,
1839
1842
  trackIndex: s !== void 0 ? In(s, 0, r.length) : void 0
1840
1843
  };
1841
- const d = c.items.map((w) => n[w]), y = t.map((w) => n[w]);
1842
- for (const w of d) {
1843
- const R = w.display.from, S = w.display.to;
1844
- for (const N of y) {
1845
- const _ = N.display.from;
1846
- if (!(N.display.to <= R || _ >= S))
1844
+ const d = c.items.map((T) => n[T]), y = t.map((T) => n[T]);
1845
+ for (const T of d) {
1846
+ const C = T.display.from, S = T.display.to;
1847
+ for (const F of y) {
1848
+ const _ = F.display.from;
1849
+ if (!(F.display.to <= C || _ >= S))
1847
1850
  return {
1848
1851
  trackId: void 0,
1849
1852
  trackIndex: r.indexOf(c)
@@ -1856,38 +1859,38 @@ const pa = (t, r, n, i, s) => {
1856
1859
  };
1857
1860
  };
1858
1861
  function ha(t) {
1859
- const r = ue.pipe(
1860
- le(({ key: f }) => f.startsWith(Ti))
1861
- ), n = ue.pipe(
1862
- le(({ key: f }) => f.startsWith(wi))
1863
- ), i = ue.pipe(
1864
- le(({ key: f }) => f.startsWith(ki))
1865
- ), s = ue.pipe(
1866
- le(({ key: f }) => f.startsWith(Ai))
1867
- ), c = ue.pipe(
1868
- le(({ key: f }) => f.startsWith(Di))
1869
- ), d = ue.pipe(
1870
- le(({ key: f }) => f.startsWith(Mi))
1862
+ const r = de.pipe(
1863
+ pe(({ key: f }) => f.startsWith(Ti))
1864
+ ), n = de.pipe(
1865
+ pe(({ key: f }) => f.startsWith(ki))
1866
+ ), i = de.pipe(
1867
+ pe(({ key: f }) => f.startsWith(wi))
1868
+ ), s = de.pipe(
1869
+ pe(({ key: f }) => f.startsWith(Ai))
1870
+ ), c = de.pipe(
1871
+ pe(({ key: f }) => f.startsWith(Di))
1872
+ ), d = de.pipe(
1873
+ pe(({ key: f }) => f.startsWith(Mi))
1871
1874
  ), y = r.subscribe(async (f) => {
1872
- var l, p;
1875
+ var l, h;
1873
1876
  if (f.key === Oi) {
1874
- const I = (l = f.value) == null ? void 0 : l.payload, b = I.trackItemsMap, g = I.trackItemDetailsMap;
1877
+ const g = (l = f.value) == null ? void 0 : l.payload, I = g.trackItemsMap, b = g.trackItemDetailsMap;
1875
1878
  console.warn("IMPROVE FONTS LOADING");
1876
- for (const h in g)
1877
- if (g[h].type === "text" || g[h].type === "caption") {
1878
- const T = g[h].details;
1879
+ for (const m in b)
1880
+ if (b[m].type === "text" || b[m].type === "caption") {
1881
+ const k = b[m].details;
1879
1882
  await dr([
1880
1883
  {
1881
- fontFamily: T.fontFamily,
1882
- url: T.fontUrl
1884
+ fontFamily: k.fontFamily,
1885
+ url: k.fontUrl
1883
1886
  }
1884
1887
  ]);
1885
1888
  }
1886
- const m = jt(b);
1889
+ const p = Yt(I);
1887
1890
  t.updateState(
1888
1891
  {
1889
- ...I,
1890
- duration: m
1892
+ ...g,
1893
+ duration: p
1891
1894
  },
1892
1895
  {
1893
1896
  kind: "design:load",
@@ -1895,11 +1898,11 @@ function ha(t) {
1895
1898
  }
1896
1899
  );
1897
1900
  }
1898
- if (f.key === xi) {
1899
- const I = (p = f.value) == null ? void 0 : p.payload;
1901
+ if (f.key === Pi) {
1902
+ const g = (h = f.value) == null ? void 0 : h.payload;
1900
1903
  t.updateState(
1901
1904
  {
1902
- size: I
1905
+ size: g
1903
1906
  },
1904
1907
  {
1905
1908
  kind: "design:resize",
@@ -1907,81 +1910,74 @@ function ha(t) {
1907
1910
  }
1908
1911
  );
1909
1912
  }
1910
- }), w = s.subscribe((f) => {
1911
- if (f.key === Pi) return t.undo();
1913
+ }), T = s.subscribe((f) => {
1914
+ if (f.key === xi) return t.undo();
1912
1915
  if (f.key === Ci) return t.redo();
1913
- }), R = i.subscribe((f) => {
1914
- var I, b, g, m;
1915
- const l = [], p = [];
1916
- if ((I = f.value) != null && I.payload.trackItemIds && (l.push((b = f.value) == null ? void 0 : b.payload.trackItemIds), t.updateState(
1916
+ }), C = i.subscribe((f) => {
1917
+ var h, g, I, b;
1918
+ const l = [];
1919
+ if ((h = f.value) != null && h.payload.trackItemIds && (l.push((g = f.value) == null ? void 0 : g.payload.trackItemIds), t.updateState(
1917
1920
  { activeIds: l },
1918
1921
  {
1919
1922
  kind: "update",
1920
1923
  updateHistory: !1
1921
1924
  }
1922
1925
  )), f.key === Ri) {
1923
- const h = (g = f.value) == null ? void 0 : g.payload.trackItemIds, T = tt(t.getState()), D = h && h.length ? h : T.activeIds, k = T.trackItemIds, x = T.trackItemDetailsMap, C = k.filter(
1924
- (ot) => !D.includes(ot)
1925
- ), P = Object.fromEntries(
1926
- Object.entries(x).filter(
1927
- ([ot]) => !D.includes(ot)
1926
+ const p = (I = f.value) == null ? void 0 : I.payload.trackItemIds, m = et(t.getState()), k = p && p.length ? p : m.activeIds, O = m.trackItemIds, w = m.trackItemDetailsMap, x = O.filter(
1927
+ (z) => !k.includes(z)
1928
+ ), R = Object.fromEntries(
1929
+ Object.entries(w).filter(
1930
+ ([z]) => !k.includes(z)
1928
1931
  )
1929
- ), A = da(
1930
- T.tracks,
1931
- D
1932
- ), O = Object.fromEntries(
1933
- Object.entries(T.trackItemsMap).filter(
1934
- ([ot]) => !D.includes(ot)
1932
+ ), P = da(
1933
+ m.tracks,
1934
+ k
1935
+ ), E = Object.fromEntries(
1936
+ Object.entries(m.trackItemsMap).filter(
1937
+ ([z]) => !k.includes(z)
1935
1938
  )
1936
- ), z = jt(O);
1939
+ ), D = Yt(E);
1937
1940
  t.updateState(
1938
1941
  {
1939
- trackItemIds: C,
1940
- trackItemDetailsMap: P,
1942
+ trackItemIds: x,
1943
+ trackItemDetailsMap: R,
1941
1944
  activeIds: [],
1942
- trackItemsMap: O,
1943
- tracks: A,
1944
- duration: z
1945
+ trackItemsMap: E,
1946
+ tracks: P,
1947
+ duration: D
1945
1948
  },
1946
1949
  { updateHistory: !0, kind: "remove" }
1947
1950
  );
1948
1951
  }
1949
1952
  if (f.key === Li) {
1950
- const h = tt(t.getState()), T = ((m = f.value) == null ? void 0 : m.payload.trackItemIds) || h.activeIds;
1951
- if (T.length === 0) return;
1952
- T.forEach((k) => {
1953
- const x = h.trackItemsMap[k], C = h.trackItemDetailsMap[k], P = xe();
1954
- p.push(P), h.trackItemsMap = {
1955
- ...h.trackItemsMap,
1956
- [P]: { ...tt(x), id: P }
1957
- }, h.trackItemDetailsMap = {
1958
- ...h.trackItemDetailsMap,
1959
- [P]: {
1960
- ...tt(C)
1961
- }
1962
- }, h.trackItemIds.push(P);
1963
- });
1964
- const D = [];
1965
- h.tracks.forEach((k) => {
1966
- const x = {
1967
- ...k,
1968
- items: [],
1969
- id: Oe()
1953
+ const p = et(t.getState()), m = {}, k = ((b = f.value) == null ? void 0 : b.payload.trackItemIds) || p.activeIds;
1954
+ if (k.length === 0) return;
1955
+ k.forEach((w) => {
1956
+ const x = p.trackItemsMap[w], R = p.trackItemDetailsMap[w], P = he();
1957
+ p.trackItemsMap[P] = {
1958
+ ...et(x),
1959
+ id: P
1960
+ }, p.trackItemDetailsMap[P] = {
1961
+ ...et(R)
1962
+ }, p.trackItemIds.push(P);
1963
+ const E = p.tracks.find(
1964
+ (D) => D.items.includes(w)
1965
+ );
1966
+ m[E.id] ? m[E.id].items.push(P) : m[E.id] = {
1967
+ ...E,
1968
+ id: he(),
1969
+ items: [P],
1970
+ static: !1,
1971
+ magnetic: !1
1970
1972
  };
1971
- k.items.forEach((C) => {
1972
- if (T.includes(C)) {
1973
- const P = T.indexOf(C);
1974
- x.items.push(p[P]);
1975
- }
1976
- }), D.push(x);
1977
- }), D.forEach((k) => {
1978
- k.items.length !== 0 && h.tracks.unshift(k);
1979
- }), t.updateState(
1973
+ });
1974
+ const O = Object.values(m);
1975
+ p.tracks = [...O, ...p.tracks], t.updateState(
1980
1976
  {
1981
- trackItemDetailsMap: h.trackItemDetailsMap,
1982
- tracks: h.tracks,
1983
- trackItemIds: h.trackItemIds,
1984
- trackItemsMap: h.trackItemsMap
1977
+ trackItemDetailsMap: p.trackItemDetailsMap,
1978
+ tracks: p.tracks,
1979
+ trackItemIds: p.trackItemIds,
1980
+ trackItemsMap: p.trackItemsMap
1985
1981
  },
1986
1982
  {
1987
1983
  updateHistory: !0,
@@ -1990,50 +1986,50 @@ function ha(t) {
1990
1986
  );
1991
1987
  }
1992
1988
  }), S = n.subscribe(async (f) => {
1993
- var h, T, D, k, x, C, P, A, O, z, ot, Ot, Wt, Xt, Bt, Kt, H, Vt, Jt;
1994
- const l = tt(t.getState());
1995
- let p = [], I = "text";
1996
- const b = (T = (h = f.value) == null ? void 0 : h.options) == null ? void 0 : T.trackId;
1997
- let g = (k = (D = f.value) == null ? void 0 : D.options) == null ? void 0 : k.trackIndex;
1989
+ var k, O, w, x, R, P, E, D, z, Pt, xt, Vt, Jt, Zt, qt, N, Qt, te, at, Ct, H;
1990
+ const l = et(t.getState()), h = ((O = (k = f.value) == null ? void 0 : k.options) == null ? void 0 : O.isSelected) || !1;
1991
+ let g = [], I = "text";
1992
+ const b = (x = (w = f.value) == null ? void 0 : w.options) == null ? void 0 : x.trackId;
1993
+ let p = (P = (R = f.value) == null ? void 0 : R.options) == null ? void 0 : P.trackIndex;
1998
1994
  if (f.key === us) {
1999
- const F = (x = f.value) == null ? void 0 : x.payload, G = F.trackItems.map(
1995
+ const U = (E = f.value) == null ? void 0 : E.payload, G = U.trackItems.map(
2000
1996
  (Y) => ua(Y, {
2001
1997
  size: l.size
2002
1998
  })
2003
- ), v = await Promise.all(G), ct = fa(F.tracks, F.trackItems), nt = [], U = {}, ft = {};
2004
- if (v.forEach((Y) => {
2005
- const { details: ht, ...Zt } = Y;
2006
- nt.push(Y.id), U[Y.id] = {
1999
+ ), M = await Promise.all(G), ut = fa(U.tracks, U.trackItems), rt = [], K = {}, lt = {};
2000
+ if (M.forEach((Y) => {
2001
+ const { details: It, ...Rt } = Y;
2002
+ rt.push(Y.id), K[Y.id] = {
2007
2003
  type: Y.type,
2008
- details: ht
2009
- }, ft[Y.id] = Zt;
2004
+ details: It
2005
+ }, lt[Y.id] = Rt;
2010
2006
  }), la(
2011
2007
  l.tracks,
2012
- ct
2008
+ ut
2013
2009
  ))
2014
2010
  l.tracks.forEach((Y) => {
2015
- ct.forEach((ht) => {
2016
- Y.id === ht.id && Y.items.push(...nt);
2011
+ ut.forEach((It) => {
2012
+ Y.id === It.id && Y.items.push(...rt);
2017
2013
  });
2018
2014
  });
2019
2015
  else {
2020
- const Y = ((P = (C = f.value) == null ? void 0 : C.options) == null ? void 0 : P.trackIndex) || 0, ht = In(
2016
+ const Y = ((z = (D = f.value) == null ? void 0 : D.options) == null ? void 0 : z.trackIndex) || 0, It = In(
2021
2017
  Y,
2022
2018
  0,
2023
2019
  l.tracks.length
2024
2020
  );
2025
- l.tracks.splice(ht, 0, ...ct);
2021
+ l.tracks.splice(It, 0, ...ut);
2026
2022
  }
2027
2023
  l.trackItemDetailsMap = {
2028
2024
  ...l.trackItemDetailsMap,
2029
- ...U
2025
+ ...K
2030
2026
  }, l.trackItemsMap = {
2031
2027
  ...l.trackItemsMap,
2032
- ...ft
2028
+ ...lt
2033
2029
  }, l.trackItemIds = [
2034
2030
  ...l.trackItemIds,
2035
- ...nt
2036
- ], l.duration = jt(l.trackItemsMap), t.updateState(
2031
+ ...rt
2032
+ ], l.duration = Yt(l.trackItemsMap), t.updateState(
2037
2033
  {
2038
2034
  trackItemIds: l.trackItemIds,
2039
2035
  trackItemDetailsMap: l.trackItemDetailsMap,
@@ -2050,110 +2046,110 @@ function ha(t) {
2050
2046
  }
2051
2047
  if (f.key === Fi) {
2052
2048
  I = "caption";
2053
- const F = (A = f.value) == null ? void 0 : A.payload, G = [];
2054
- for (const nt of F) {
2055
- const U = ui(nt, {
2049
+ const U = (Pt = f.value) == null ? void 0 : Pt.payload, G = [];
2050
+ for (const rt of U) {
2051
+ const K = ui(rt, {
2056
2052
  size: l.size
2057
2053
  });
2058
- G.push(U);
2054
+ G.push(K);
2059
2055
  }
2060
- const v = await Promise.all(G), ct = [];
2061
- for (const nt of v) {
2062
- const U = nt.id;
2063
- ct.push(U);
2064
- const { details: ft, ...K } = nt;
2065
- l.trackItemDetailsMap[U] = {
2056
+ const M = await Promise.all(G), ut = [];
2057
+ for (const rt of M) {
2058
+ const K = rt.id;
2059
+ ut.push(K);
2060
+ const { details: lt, ...V } = rt;
2061
+ l.trackItemDetailsMap[K] = {
2066
2062
  type: I,
2067
- details: ft
2068
- }, l.trackItemsMap[U] = K, l.trackItemIds.push(U);
2063
+ details: lt
2064
+ }, l.trackItemsMap[K] = V, l.trackItemIds.push(K);
2069
2065
  }
2070
- p = ct;
2066
+ g = ut;
2071
2067
  }
2072
2068
  if (f.key === $i) {
2073
2069
  I = "text";
2074
- const F = await li((O = f.value) == null ? void 0 : O.payload, {
2070
+ const U = await li((xt = f.value) == null ? void 0 : xt.payload, {
2075
2071
  size: l.size
2076
- }), { details: G, ...v } = F;
2077
- l.trackItemDetailsMap[v.id] = {
2072
+ }), { details: G, ...M } = U;
2073
+ l.trackItemDetailsMap[M.id] = {
2078
2074
  type: I,
2079
2075
  details: G
2080
- }, l.trackItemsMap[v.id] = v, l.trackItemIds.push(v.id), p = [v.id];
2076
+ }, l.trackItemsMap[M.id] = M, l.trackItemIds.push(M.id), g = [M.id];
2081
2077
  }
2082
2078
  if (f.key === Ni) {
2083
2079
  I = "template";
2084
- const F = (z = f.value) == null ? void 0 : z.payload.trackItemsMap, G = (ot = f.value) == null ? void 0 : ot.payload.trackItemDetailsMap, v = (Ot = f.value) == null ? void 0 : Ot.payload.transitionsMap, ct = ((Wt = f.value) == null ? void 0 : Wt.payload.transitionIds) || [], nt = (Xt = f.value) == null ? void 0 : Xt.payload.trackItemIds, U = ((Bt = f.value) == null ? void 0 : Bt.payload.tracks) || [], { details: ft, ...K } = await ca((Kt = f.value) == null ? void 0 : Kt.payload, {
2080
+ const U = (Vt = f.value) == null ? void 0 : Vt.payload.trackItemsMap, G = (Jt = f.value) == null ? void 0 : Jt.payload.trackItemDetailsMap, M = (Zt = f.value) == null ? void 0 : Zt.payload.transitionsMap, ut = ((qt = f.value) == null ? void 0 : qt.payload.transitionIds) || [], rt = (N = f.value) == null ? void 0 : N.payload.trackItemIds, K = ((Qt = f.value) == null ? void 0 : Qt.payload.tracks) || [], { details: lt, ...V } = await ca((te = f.value) == null ? void 0 : te.payload, {
2085
2081
  size: l.size
2086
2082
  }), Y = {
2087
- id: K.id,
2088
- items: nt,
2089
- transitions: ct,
2090
- tracks: U
2083
+ id: V.id,
2084
+ items: rt,
2085
+ transitions: ut,
2086
+ tracks: K
2091
2087
  };
2092
- l.trackItemDetailsMap[K.id] = {
2088
+ l.trackItemDetailsMap[V.id] = {
2093
2089
  type: I,
2094
- details: ft
2095
- }, l.trackItemsMap[K.id] = K, l.trackItemIds.push(K.id), p = [K.id], l.trackItemsMap = {
2090
+ details: lt
2091
+ }, l.trackItemsMap[V.id] = V, l.trackItemIds.push(V.id), g = [V.id], l.trackItemsMap = {
2096
2092
  ...l.trackItemsMap,
2097
- ...F,
2098
- [K.id]: {
2093
+ ...U,
2094
+ [V.id]: {
2099
2095
  type: "template",
2100
- ...K
2096
+ ...V
2101
2097
  }
2102
2098
  }, l.trackItemDetailsMap = {
2103
2099
  ...l.trackItemDetailsMap,
2104
2100
  ...G,
2105
- [K.id]: {
2101
+ [V.id]: {
2106
2102
  type: "template",
2107
- details: ft
2103
+ details: lt
2108
2104
  }
2109
2105
  }, l.transitionsMap = {
2110
2106
  ...l.transitionsMap,
2111
- ...v
2107
+ ...M
2112
2108
  }, l.structure = [...l.structure, Y];
2113
2109
  }
2114
2110
  if (f.key === Hi) {
2115
2111
  I = "image";
2116
- const F = await ci((H = f.value) == null ? void 0 : H.payload, {
2112
+ const U = await ci((at = f.value) == null ? void 0 : at.payload, {
2117
2113
  size: l.size
2118
- }), { details: G, ...v } = F;
2119
- l.trackItemDetailsMap[v.id] = {
2114
+ }), { details: G, ...M } = U;
2115
+ l.trackItemDetailsMap[M.id] = {
2120
2116
  type: I,
2121
2117
  details: G
2122
- }, l.trackItemsMap[v.id] = v, l.trackItemIds.push(v.id), p = [v.id];
2118
+ }, l.trackItemsMap[M.id] = M, l.trackItemIds.push(M.id), g = [M.id];
2123
2119
  }
2124
2120
  if (f.key === ji) {
2125
2121
  I = "audio";
2126
- const F = await oi((Vt = f.value) == null ? void 0 : Vt.payload), { details: G, ...v } = F;
2127
- l.trackItemDetailsMap[v.id] = {
2122
+ const U = await oi((Ct = f.value) == null ? void 0 : Ct.payload), { details: G, ...M } = U;
2123
+ l.trackItemDetailsMap[M.id] = {
2128
2124
  type: I,
2129
2125
  details: G
2130
- }, l.trackItemsMap[v.id] = v, l.trackItemIds.push(v.id), p = [v.id];
2126
+ }, l.trackItemsMap[M.id] = M, l.trackItemIds.push(M.id), g = [M.id];
2131
2127
  }
2132
2128
  if (f.key === zi) {
2133
2129
  I = "video";
2134
- const F = await si((Jt = f.value) == null ? void 0 : Jt.payload, {
2130
+ const U = await si((H = f.value) == null ? void 0 : H.payload, {
2135
2131
  size: l.size
2136
- }), { details: G, ...v } = F;
2137
- l.trackItemDetailsMap[v.id] = {
2132
+ }), { details: G, ...M } = U;
2133
+ l.trackItemDetailsMap[M.id] = {
2138
2134
  type: I,
2139
2135
  details: G
2140
- }, l.trackItemsMap[v.id] = v, l.trackItemIds.push(v.id), p = [v.id];
2136
+ }, l.trackItemsMap[M.id] = M, l.trackItemIds.push(M.id), g = [M.id];
2141
2137
  }
2142
2138
  const m = pa(
2143
- p,
2139
+ g,
2144
2140
  l.tracks,
2145
2141
  l.trackItemsMap,
2146
2142
  b,
2147
- g
2143
+ p
2148
2144
  );
2149
2145
  if (m.trackId) {
2150
- const F = l.tracks.find(
2146
+ const U = l.tracks.find(
2151
2147
  (G) => G.id === m.trackId
2152
2148
  );
2153
- F && F.items.push(...p);
2149
+ U && U.items.push(...g);
2154
2150
  } else if (m.trackIndex !== void 0) {
2155
- const F = {
2156
- id: Oe(),
2151
+ const U = {
2152
+ id: ur(),
2157
2153
  accepts: [
2158
2154
  "text",
2159
2155
  "audio",
@@ -2164,14 +2160,14 @@ function ha(t) {
2164
2160
  "template"
2165
2161
  ],
2166
2162
  type: I,
2167
- items: p,
2163
+ items: g,
2168
2164
  magnetic: !1,
2169
2165
  static: !1
2170
2166
  };
2171
- l.tracks.splice(m.trackIndex, 0, F);
2167
+ l.tracks.splice(m.trackIndex, 0, U);
2172
2168
  } else
2173
2169
  l.tracks.unshift({
2174
- id: Oe(),
2170
+ id: ur(),
2175
2171
  accepts: [
2176
2172
  "text",
2177
2173
  "audio",
@@ -2182,12 +2178,13 @@ function ha(t) {
2182
2178
  "template"
2183
2179
  ],
2184
2180
  type: I,
2185
- items: p,
2181
+ items: g,
2186
2182
  magnetic: !1,
2187
2183
  static: !1
2188
2184
  });
2189
- l.duration = jt(l.trackItemsMap), t.updateState(
2185
+ h && (l.activeIds = g), l.duration = Yt(l.trackItemsMap), t.updateState(
2190
2186
  {
2187
+ activeIds: l.activeIds,
2191
2188
  trackItemIds: l.trackItemIds,
2192
2189
  trackItemDetailsMap: l.trackItemDetailsMap,
2193
2190
  trackItemsMap: l.trackItemsMap,
@@ -2201,34 +2198,34 @@ function ha(t) {
2201
2198
  kind: "add"
2202
2199
  }
2203
2200
  );
2204
- }), N = c.subscribe(async (f) => {
2201
+ }), F = c.subscribe(async (f) => {
2205
2202
  var l;
2206
2203
  if (f.key === Ui) {
2207
- const p = tt(t.getState()), I = (l = f.value) == null ? void 0 : l.options.time;
2208
- if (p.activeIds.length === 1) {
2209
- const b = p.activeIds[0], g = p.trackItemsMap[b];
2210
- if (I >= g.display.to || I <= g.display.from)
2204
+ const h = et(t.getState()), g = (l = f.value) == null ? void 0 : l.options.time;
2205
+ if (h.activeIds.length === 1) {
2206
+ const I = h.activeIds[0], b = h.trackItemsMap[I];
2207
+ if (g >= b.display.to || g <= b.display.from)
2211
2208
  return;
2212
- const m = p.trackItemDetailsMap[b], h = xe(), T = {
2213
- ...g,
2214
- id: h,
2209
+ const p = h.trackItemDetailsMap[I], m = he(), k = {
2210
+ ...b,
2211
+ id: m,
2215
2212
  display: {
2216
- from: I,
2217
- to: g.display.to
2213
+ from: g,
2214
+ to: b.display.to
2218
2215
  },
2219
2216
  trim: {
2220
- from: I,
2221
- to: g.display.to
2217
+ from: g,
2218
+ to: b.display.to
2222
2219
  }
2223
2220
  };
2224
- p.trackItemsMap[b].display.to = I, p.trackItemsMap[h] = T, p.trackItemIds.push(h), p.trackItemDetailsMap[h] = m, p.tracks.forEach((D) => {
2225
- D.items.includes(b) && D.items.push(h);
2221
+ h.trackItemsMap[I].display.to = g, h.trackItemsMap[m] = k, h.trackItemIds.push(m), h.trackItemDetailsMap[m] = p, h.tracks.forEach((O) => {
2222
+ O.items.includes(I) && O.items.push(m);
2226
2223
  }), t.updateState(
2227
2224
  {
2228
- trackItemDetailsMap: p.trackItemDetailsMap,
2229
- tracks: p.tracks,
2230
- trackItemIds: p.trackItemIds,
2231
- trackItemsMap: p.trackItemsMap
2225
+ trackItemDetailsMap: h.trackItemDetailsMap,
2226
+ tracks: h.tracks,
2227
+ trackItemIds: h.trackItemIds,
2228
+ trackItemsMap: h.trackItemsMap
2232
2229
  },
2233
2230
  {
2234
2231
  updateHistory: !0,
@@ -2239,53 +2236,53 @@ function ha(t) {
2239
2236
  return;
2240
2237
  }
2241
2238
  if (f.key === Gi) {
2242
- const p = tt(t.getState());
2243
- if (p.activeIds.length) {
2244
- const I = p.activeIds, b = [], g = {
2245
- activeIds: I,
2239
+ const h = et(t.getState());
2240
+ if (h.activeIds.length) {
2241
+ const g = h.activeIds, I = [], b = {
2242
+ activeIds: g,
2246
2243
  trackItemDetailsMap: {},
2247
2244
  trackItemsMap: {},
2248
2245
  tracks: []
2249
2246
  };
2250
- I.forEach((h) => {
2251
- g.trackItemDetailsMap[h] = p.trackItemDetailsMap[h], g.trackItemsMap[h] = p.trackItemsMap[h], b.push(
2252
- p.tracks.find((T) => T.items.includes(h))
2247
+ g.forEach((m) => {
2248
+ b.trackItemDetailsMap[m] = h.trackItemDetailsMap[m], b.trackItemsMap[m] = h.trackItemsMap[m], I.push(
2249
+ h.tracks.find((k) => k.items.includes(m))
2253
2250
  );
2254
2251
  });
2255
- const m = /* @__PURE__ */ new Set();
2256
- b.filter((h) => m.has(h.id) ? !1 : (m.add(h), !0)), g.tracks = Array.from(m.keys()), localStorage.setItem("DesignComboTemp", JSON.stringify(g));
2252
+ const p = /* @__PURE__ */ new Set();
2253
+ I.filter((m) => p.has(m.id) ? !1 : (p.add(m), !0)), b.tracks = Array.from(p.keys()), localStorage.setItem("DesignComboTemp", JSON.stringify(b));
2257
2254
  }
2258
2255
  }
2259
2256
  if (f.key === Yi) {
2260
- const p = localStorage.getItem("DesignComboTemp");
2261
- if (!p) return;
2262
- const I = tt(t.getState()), b = JSON.parse(p), g = {}, m = b.trackItemsMap, h = b.trackItemDetailsMap, T = b.tracks, D = [], k = b.activeIds.map(async (x) => {
2263
- const C = h[x];
2264
- (C.type === "caption" || C.type === "text") && C.details.fontUrl && await dr([
2257
+ const h = localStorage.getItem("DesignComboTemp");
2258
+ if (!h) return;
2259
+ const g = et(t.getState()), I = JSON.parse(h), b = {}, p = I.trackItemsMap, m = I.trackItemDetailsMap, k = I.tracks, O = [], w = I.activeIds.map(async (x) => {
2260
+ const R = m[x];
2261
+ (R.type === "caption" || R.type === "text") && R.details.fontUrl && await dr([
2265
2262
  {
2266
- fontFamily: C.details.fontFamily,
2267
- url: C.details.fontUrl
2263
+ fontFamily: R.details.fontFamily,
2264
+ url: R.details.fontUrl
2268
2265
  }
2269
2266
  ]);
2270
- const P = xe();
2271
- return g[x] = P, I.trackItemsMap[P] = {
2272
- ...m[x],
2267
+ const P = he();
2268
+ return b[x] = P, g.trackItemsMap[P] = {
2269
+ ...p[x],
2273
2270
  id: P
2274
- }, I.trackItemDetailsMap[P] = C, I.trackItemIds.push(P), !0;
2271
+ }, g.trackItemDetailsMap[P] = R, g.trackItemIds.push(P), !0;
2275
2272
  });
2276
- await Promise.all(k), T.forEach((x) => {
2277
- const C = x.items.map((A) => g[A]), P = {
2273
+ await Promise.all(w), k.forEach((x) => {
2274
+ const R = x.items.map((E) => b[E]), P = {
2278
2275
  ...x,
2279
- items: C,
2280
- id: Oe()
2276
+ items: R,
2277
+ id: ur()
2281
2278
  };
2282
- D.push(P);
2283
- }), I.tracks = [...I.tracks, ...D], t.updateState(
2279
+ O.push(P);
2280
+ }), g.tracks = [...g.tracks, ...O], t.updateState(
2284
2281
  {
2285
- trackItemDetailsMap: I.trackItemDetailsMap,
2286
- tracks: I.tracks,
2287
- trackItemIds: I.trackItemIds,
2288
- trackItemsMap: I.trackItemsMap
2282
+ trackItemDetailsMap: g.trackItemDetailsMap,
2283
+ tracks: g.tracks,
2284
+ trackItemIds: g.trackItemIds,
2285
+ trackItemsMap: g.trackItemsMap
2289
2286
  },
2290
2287
  {
2291
2288
  updateHistory: !0,
@@ -2294,24 +2291,24 @@ function ha(t) {
2294
2291
  );
2295
2292
  }
2296
2293
  }), _ = d.subscribe(async (f) => {
2297
- var l, p, I;
2294
+ var l, h, g;
2298
2295
  if (f.key === Wi) {
2299
- const b = tt(t.getState()), g = b.trackItemDetailsMap, m = b.trackItemsMap, h = Object.keys((l = f.value) == null ? void 0 : l.payload);
2300
- if (!h.length) return;
2301
- const T = (p = f.value) == null ? void 0 : p.payload;
2302
- h.forEach((k) => {
2303
- const x = T[k];
2304
- x.details ? g[k].details = {
2305
- ...g[k].details,
2296
+ const I = et(t.getState()), b = I.trackItemDetailsMap, p = I.trackItemsMap, m = Object.keys((l = f.value) == null ? void 0 : l.payload);
2297
+ if (!m.length) return;
2298
+ const k = (h = f.value) == null ? void 0 : h.payload;
2299
+ m.forEach((w) => {
2300
+ const x = k[w];
2301
+ x.details ? b[w].details = {
2302
+ ...b[w].details,
2306
2303
  ...x.details
2307
- } : T[k].playbackRate && (m[k].playbackRate = T[k].playbackRate);
2304
+ } : k[w].playbackRate && (p[w].playbackRate = k[w].playbackRate);
2308
2305
  });
2309
- const D = jt(m);
2306
+ const O = Yt(p);
2310
2307
  t.updateState(
2311
2308
  {
2312
- trackItemDetailsMap: { ...g },
2313
- trackItemsMap: { ...m },
2314
- duration: D
2309
+ trackItemDetailsMap: { ...b },
2310
+ trackItemsMap: { ...p },
2311
+ duration: O
2315
2312
  },
2316
2313
  {
2317
2314
  updateHistory: !0,
@@ -2320,34 +2317,34 @@ function ha(t) {
2320
2317
  );
2321
2318
  }
2322
2319
  if (f.key === Xi) {
2323
- const b = (I = f.value) == null ? void 0 : I.payload, g = Object.keys(b)[0], m = Object.values(b)[0], h = tt(t.getState()), T = h.trackItemDetailsMap[g];
2324
- if (m.details) {
2325
- if (m.type === "image" && m.details.src) {
2326
- const x = await ri(m.details.src), C = T.details.width || 0, P = T.details.height || 0;
2327
- let A = x.width, O = x.height;
2320
+ const I = (g = f.value) == null ? void 0 : g.payload, b = Object.keys(I)[0], p = Object.values(I)[0], m = et(t.getState()), k = m.trackItemDetailsMap[b];
2321
+ if (p.details) {
2322
+ if (p.type === "image" && p.details.src) {
2323
+ const x = await ri(p.details.src), R = k.details.width || 0, P = k.details.height || 0;
2324
+ let E = x.width, D = x.height;
2328
2325
  const z = x.width / x.height;
2329
- C / P > z ? (A = C, O = C / z) : (O = P, A = P * z), m.details.mediaWidth = A, m.details.mediaHeight = O;
2326
+ R / P > z ? (E = R, D = R / z) : (D = P, E = P * z), p.details.mediaWidth = E, p.details.mediaHeight = D;
2330
2327
  }
2331
- if (m.type === "video" && m.details.src) {
2332
- const x = await ni(m.details.src), C = T.details.width || 0, P = T.details.height || 0;
2333
- let A = x.width, O = x.height;
2328
+ if (p.type === "video" && p.details.src) {
2329
+ const x = await ni(p.details.src), R = k.details.width || 0, P = k.details.height || 0;
2330
+ let E = x.width, D = x.height;
2334
2331
  const z = x.width / x.height;
2335
- C / P > z ? (A = C, O = C / z) : (O = P, A = P * z), m.details.mediaWidth = A, m.details.mediaHeight = O;
2332
+ R / P > z ? (E = R, D = R / z) : (D = P, E = P * z), p.details.mediaWidth = E, p.details.mediaHeight = D;
2336
2333
  }
2337
- const k = T.details;
2338
- T.details = { ...k, ...m.details }, m.details = T.details;
2334
+ const w = k.details;
2335
+ k.details = { ...w, ...p.details }, p.details = k.details;
2339
2336
  }
2340
- const D = { ...T, ...m };
2341
- h.trackItemDetailsMap[g] = D, h.trackItemsMap[g] = {
2342
- ...h.trackItemsMap[g],
2343
- type: m.type
2337
+ const O = { ...k, ...p };
2338
+ m.trackItemDetailsMap[b] = O, m.trackItemsMap[b] = {
2339
+ ...m.trackItemsMap[b],
2340
+ type: p.type
2344
2341
  }, t.updateState(
2345
2342
  {
2346
2343
  trackItemDetailsMap: {
2347
- ...h.trackItemDetailsMap
2344
+ ...m.trackItemDetailsMap
2348
2345
  },
2349
2346
  trackItemsMap: {
2350
- ...h.trackItemsMap
2347
+ ...m.trackItemsMap
2351
2348
  }
2352
2349
  },
2353
2350
  {
@@ -2359,47 +2356,47 @@ function ha(t) {
2359
2356
  });
2360
2357
  return {
2361
2358
  unsubscribe: () => {
2362
- S.unsubscribe(), N.unsubscribe(), _.unsubscribe(), w.unsubscribe(), R.unsubscribe(), y.unsubscribe();
2359
+ S.unsubscribe(), F.unsubscribe(), _.unsubscribe(), T.unsubscribe(), C.unsubscribe(), y.unsubscribe();
2363
2360
  }
2364
2361
  };
2365
2362
  }
2366
2363
  const ma = { Date: !0, RegExp: !0, String: !0, Number: !0 };
2367
2364
  function di(t, r, n = { cyclesFix: !0 }, i = []) {
2368
- var y, w;
2365
+ var y, T;
2369
2366
  let s = [];
2370
2367
  const c = Array.isArray(t);
2371
- for (const R in t) {
2372
- const S = t[R], N = c ? +R : R;
2373
- if (!(R in r)) {
2368
+ for (const C in t) {
2369
+ const S = t[C], F = c ? +C : C;
2370
+ if (!(C in r)) {
2374
2371
  s.push({
2375
2372
  type: "REMOVE",
2376
- path: [N],
2377
- oldValue: t[R]
2373
+ path: [F],
2374
+ oldValue: t[C]
2378
2375
  });
2379
2376
  continue;
2380
2377
  }
2381
- const _ = r[R], f = typeof S == "object" && typeof _ == "object" && Array.isArray(S) === Array.isArray(_);
2382
- if (S && _ && f && !ma[(w = (y = Object.getPrototypeOf(S)) == null ? void 0 : y.constructor) == null ? void 0 : w.name] && (!n.cyclesFix || !i.includes(S))) {
2378
+ const _ = r[C], f = typeof S == "object" && typeof _ == "object" && Array.isArray(S) === Array.isArray(_);
2379
+ if (S && _ && f && !ma[(T = (y = Object.getPrototypeOf(S)) == null ? void 0 : y.constructor) == null ? void 0 : T.name] && (!n.cyclesFix || !i.includes(S))) {
2383
2380
  const l = di(S, _, n, n.cyclesFix ? i.concat([S]) : []);
2384
- s.push.apply(s, l.map((p) => (p.path.unshift(N), p)));
2381
+ s.push.apply(s, l.map((h) => (h.path.unshift(F), h)));
2385
2382
  } else S !== _ && // treat NaN values as equivalent
2386
2383
  !(Number.isNaN(S) && Number.isNaN(_)) && !(f && (isNaN(S) ? S + "" == _ + "" : +S == +_)) && s.push({
2387
- path: [N],
2384
+ path: [F],
2388
2385
  type: "CHANGE",
2389
2386
  value: _,
2390
2387
  oldValue: S
2391
2388
  });
2392
2389
  }
2393
2390
  const d = Array.isArray(r);
2394
- for (const R in r)
2395
- R in t || s.push({
2391
+ for (const C in r)
2392
+ C in t || s.push({
2396
2393
  type: "CREATE",
2397
- path: [d ? +R : R],
2398
- value: r[R]
2394
+ path: [d ? +C : C],
2395
+ value: r[C]
2399
2396
  });
2400
2397
  return s;
2401
2398
  }
2402
- var kn = Symbol.for("immer-nothing"), Pe = Symbol.for("immer-draftable"), ut = Symbol.for("immer-state"), pi = process.env.NODE_ENV !== "production" ? [
2399
+ var wn = Symbol.for("immer-nothing"), xe = Symbol.for("immer-draftable"), ft = Symbol.for("immer-state"), pi = process.env.NODE_ENV !== "production" ? [
2403
2400
  // All error codes, starting by 0:
2404
2401
  function(t) {
2405
2402
  return `The plugin for '${t}' has not been loaded into Immer. To enable the plugin, import and call \`enable${t}()\` when initializing your application.`;
@@ -2439,41 +2436,41 @@ function B(t, ...r) {
2439
2436
  `[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`
2440
2437
  );
2441
2438
  }
2442
- var zt = Object.getPrototypeOf;
2443
- function Ut(t) {
2444
- return !!t && !!t[ut];
2439
+ var Wt = Object.getPrototypeOf;
2440
+ function Xt(t) {
2441
+ return !!t && !!t[ft];
2445
2442
  }
2446
- function Mt(t) {
2443
+ function Ot(t) {
2447
2444
  var r;
2448
- return t ? hi(t) || Array.isArray(t) || !!t[Pe] || !!((r = t.constructor) != null && r[Pe]) || He(t) || je(t) : !1;
2445
+ return t ? hi(t) || Array.isArray(t) || !!t[xe] || !!((r = t.constructor) != null && r[xe]) || He(t) || je(t) : !1;
2449
2446
  }
2450
2447
  var ya = Object.prototype.constructor.toString();
2451
2448
  function hi(t) {
2452
2449
  if (!t || typeof t != "object")
2453
2450
  return !1;
2454
- const r = zt(t);
2451
+ const r = Wt(t);
2455
2452
  if (r === null)
2456
2453
  return !0;
2457
2454
  const n = Object.hasOwnProperty.call(r, "constructor") && r.constructor;
2458
2455
  return n === Object ? !0 : typeof n == "function" && Function.toString.call(n) === ya;
2459
2456
  }
2460
2457
  function Ce(t, r) {
2461
- Gt(t) === 0 ? Reflect.ownKeys(t).forEach((n) => {
2458
+ Bt(t) === 0 ? Reflect.ownKeys(t).forEach((n) => {
2462
2459
  r(n, t[n], t);
2463
2460
  }) : t.forEach((n, i) => r(i, n, t));
2464
2461
  }
2465
- function Gt(t) {
2466
- const r = t[ut];
2462
+ function Bt(t) {
2463
+ const r = t[ft];
2467
2464
  return r ? r.type_ : Array.isArray(t) ? 1 : He(t) ? 2 : je(t) ? 3 : 0;
2468
2465
  }
2469
2466
  function Re(t, r) {
2470
- return Gt(t) === 2 ? t.has(r) : Object.prototype.hasOwnProperty.call(t, r);
2467
+ return Bt(t) === 2 ? t.has(r) : Object.prototype.hasOwnProperty.call(t, r);
2471
2468
  }
2472
2469
  function un(t, r) {
2473
- return Gt(t) === 2 ? t.get(r) : t[r];
2470
+ return Bt(t) === 2 ? t.get(r) : t[r];
2474
2471
  }
2475
2472
  function mi(t, r, n) {
2476
- const i = Gt(t);
2473
+ const i = Bt(t);
2477
2474
  i === 2 ? t.set(r, n) : i === 3 ? t.add(n) : t[r] = n;
2478
2475
  }
2479
2476
  function _a(t, r) {
@@ -2485,7 +2482,7 @@ function He(t) {
2485
2482
  function je(t) {
2486
2483
  return t instanceof Set;
2487
2484
  }
2488
- function Ht(t) {
2485
+ function Gt(t) {
2489
2486
  return t.copy_ || t.base_;
2490
2487
  }
2491
2488
  function gn(t, r) {
@@ -2498,7 +2495,7 @@ function gn(t, r) {
2498
2495
  const n = hi(t);
2499
2496
  if (r === !0 || r === "class_only" && !n) {
2500
2497
  const i = Object.getOwnPropertyDescriptors(t);
2501
- delete i[ut];
2498
+ delete i[ft];
2502
2499
  let s = Reflect.ownKeys(i);
2503
2500
  for (let c = 0; c < s.length; c++) {
2504
2501
  const d = s[c], y = i[d];
@@ -2510,9 +2507,9 @@ function gn(t, r) {
2510
2507
  value: t[d]
2511
2508
  });
2512
2509
  }
2513
- return Object.create(zt(t), i);
2510
+ return Object.create(Wt(t), i);
2514
2511
  } else {
2515
- const i = zt(t);
2512
+ const i = Wt(t);
2516
2513
  if (i !== null && n)
2517
2514
  return { ...t };
2518
2515
  const s = Object.create(i);
@@ -2520,7 +2517,7 @@ function gn(t, r) {
2520
2517
  }
2521
2518
  }
2522
2519
  function An(t, r = !1) {
2523
- return Ir(t) || Ut(t) || !Mt(t) || (Gt(t) > 1 && (t.set = t.add = t.clear = t.delete = Ia), Object.freeze(t), r && Object.entries(t).forEach(([n, i]) => An(i, !0))), t;
2520
+ return Ir(t) || Xt(t) || !Ot(t) || (Bt(t) > 1 && (t.set = t.add = t.clear = t.delete = Ia), Object.freeze(t), r && Object.entries(t).forEach(([n, i]) => An(i, !0))), t;
2524
2521
  }
2525
2522
  function Ia() {
2526
2523
  B(2);
@@ -2529,7 +2526,7 @@ function Ir(t) {
2529
2526
  return Object.isFrozen(t);
2530
2527
  }
2531
2528
  var bn = {};
2532
- function Yt(t) {
2529
+ function Kt(t) {
2533
2530
  const r = bn[t];
2534
2531
  return r || B(0, t), r;
2535
2532
  }
@@ -2552,35 +2549,35 @@ function ba(t, r) {
2552
2549
  };
2553
2550
  }
2554
2551
  function Hn(t, r) {
2555
- r && (Yt("Patches"), t.patches_ = [], t.inversePatches_ = [], t.patchListener_ = r);
2552
+ r && (Kt("Patches"), t.patches_ = [], t.inversePatches_ = [], t.patchListener_ = r);
2556
2553
  }
2557
2554
  function vn(t) {
2558
- En(t), t.drafts_.forEach(va), t.drafts_ = null;
2555
+ Sn(t), t.drafts_.forEach(va), t.drafts_ = null;
2559
2556
  }
2560
- function En(t) {
2557
+ function Sn(t) {
2561
2558
  t === Le && (Le = t.parent_);
2562
2559
  }
2563
2560
  function jn(t) {
2564
2561
  return Le = ba(Le, t);
2565
2562
  }
2566
2563
  function va(t) {
2567
- const r = t[ut];
2564
+ const r = t[ft];
2568
2565
  r.type_ === 0 || r.type_ === 1 ? r.revoke_() : r.revoked_ = !0;
2569
2566
  }
2570
2567
  function zn(t, r) {
2571
2568
  r.unfinalizedDrafts_ = r.drafts_.length;
2572
2569
  const n = r.drafts_[0];
2573
- return t !== void 0 && t !== n ? (n[ut].modified_ && (vn(r), B(4)), Mt(t) && (t = pr(r, t), r.parent_ || hr(r, t)), r.patches_ && Yt("Patches").generateReplacementPatches_(
2574
- n[ut].base_,
2570
+ return t !== void 0 && t !== n ? (n[ft].modified_ && (vn(r), B(4)), Ot(t) && (t = pr(r, t), r.parent_ || hr(r, t)), r.patches_ && Kt("Patches").generateReplacementPatches_(
2571
+ n[ft].base_,
2575
2572
  t,
2576
2573
  r.patches_,
2577
2574
  r.inversePatches_
2578
- )) : t = pr(r, n, []), vn(r), r.patches_ && r.patchListener_(r.patches_, r.inversePatches_), t !== kn ? t : void 0;
2575
+ )) : t = pr(r, n, []), vn(r), r.patches_ && r.patchListener_(r.patches_, r.inversePatches_), t !== wn ? t : void 0;
2579
2576
  }
2580
2577
  function pr(t, r, n) {
2581
2578
  if (Ir(r))
2582
2579
  return r;
2583
- const i = r[ut];
2580
+ const i = r[ft];
2584
2581
  if (!i)
2585
2582
  return Ce(
2586
2583
  r,
@@ -2596,8 +2593,8 @@ function pr(t, r, n) {
2596
2593
  let c = s, d = !1;
2597
2594
  i.type_ === 3 && (c = new Set(s), s.clear(), d = !0), Ce(
2598
2595
  c,
2599
- (y, w) => Un(t, i, s, y, w, n, d)
2600
- ), hr(t, s, !1), n && t.patches_ && Yt("Patches").generatePatches_(
2596
+ (y, T) => Un(t, i, s, y, T, n, d)
2597
+ ), hr(t, s, !1), n && t.patches_ && Kt("Patches").generatePatches_(
2601
2598
  i,
2602
2599
  n,
2603
2600
  t.patches_,
@@ -2607,15 +2604,15 @@ function pr(t, r, n) {
2607
2604
  return i.copy_;
2608
2605
  }
2609
2606
  function Un(t, r, n, i, s, c, d) {
2610
- if (process.env.NODE_ENV !== "production" && s === n && B(5), Ut(s)) {
2607
+ if (process.env.NODE_ENV !== "production" && s === n && B(5), Xt(s)) {
2611
2608
  const y = c && r && r.type_ !== 3 && // Set objects are atomic since they have no keys.
2612
- !Re(r.assigned_, i) ? c.concat(i) : void 0, w = pr(t, s, y);
2613
- if (mi(n, i, w), Ut(w))
2609
+ !Re(r.assigned_, i) ? c.concat(i) : void 0, T = pr(t, s, y);
2610
+ if (mi(n, i, T), Xt(T))
2614
2611
  t.canAutoFreeze_ = !1;
2615
2612
  else
2616
2613
  return;
2617
2614
  } else d && n.add(s);
2618
- if (Mt(s) && !Ir(s)) {
2615
+ if (Ot(s) && !Ir(s)) {
2619
2616
  if (!t.immer_.autoFreeze_ && t.unfinalizedDrafts_ < 1)
2620
2617
  return;
2621
2618
  pr(t, s), (!r || !r.scope_.parent_) && typeof i != "symbol" && Object.prototype.propertyIsEnumerable.call(n, i) && hr(t, s);
@@ -2624,7 +2621,7 @@ function Un(t, r, n, i, s, c, d) {
2624
2621
  function hr(t, r, n = !1) {
2625
2622
  !t.parent_ && t.immer_.autoFreeze_ && t.canAutoFreeze_ && An(r, n);
2626
2623
  }
2627
- function Ea(t, r) {
2624
+ function Sa(t, r) {
2628
2625
  const n = Array.isArray(t), i = {
2629
2626
  type_: n ? 1 : 0,
2630
2627
  // Track which produce call this is associated with.
@@ -2655,43 +2652,43 @@ function Ea(t, r) {
2655
2652
  }
2656
2653
  var Dn = {
2657
2654
  get(t, r) {
2658
- if (r === ut)
2655
+ if (r === ft)
2659
2656
  return t;
2660
- const n = Ht(t);
2657
+ const n = Gt(t);
2661
2658
  if (!Re(n, r))
2662
- return Sa(t, n, r);
2659
+ return Ea(t, n, r);
2663
2660
  const i = n[r];
2664
- return t.finalized_ || !Mt(i) ? i : i === ln(t.base_, r) ? (fn(t), t.copy_[r] = Tn(i, t)) : i;
2661
+ return t.finalized_ || !Ot(i) ? i : i === ln(t.base_, r) ? (fn(t), t.copy_[r] = Tn(i, t)) : i;
2665
2662
  },
2666
2663
  has(t, r) {
2667
- return r in Ht(t);
2664
+ return r in Gt(t);
2668
2665
  },
2669
2666
  ownKeys(t) {
2670
- return Reflect.ownKeys(Ht(t));
2667
+ return Reflect.ownKeys(Gt(t));
2671
2668
  },
2672
2669
  set(t, r, n) {
2673
- const i = _i(Ht(t), r);
2670
+ const i = _i(Gt(t), r);
2674
2671
  if (i != null && i.set)
2675
2672
  return i.set.call(t.draft_, n), !0;
2676
2673
  if (!t.modified_) {
2677
- const s = ln(Ht(t), r), c = s == null ? void 0 : s[ut];
2674
+ const s = ln(Gt(t), r), c = s == null ? void 0 : s[ft];
2678
2675
  if (c && c.base_ === n)
2679
2676
  return t.copy_[r] = n, t.assigned_[r] = !1, !0;
2680
2677
  if (_a(n, s) && (n !== void 0 || Re(t.base_, r)))
2681
2678
  return !0;
2682
- fn(t), Sn(t);
2679
+ fn(t), En(t);
2683
2680
  }
2684
2681
  return t.copy_[r] === n && // special case: handle new props with value 'undefined'
2685
2682
  (n !== void 0 || r in t.copy_) || // special case: NaN
2686
2683
  Number.isNaN(n) && Number.isNaN(t.copy_[r]) || (t.copy_[r] = n, t.assigned_[r] = !0), !0;
2687
2684
  },
2688
2685
  deleteProperty(t, r) {
2689
- return ln(t.base_, r) !== void 0 || r in t.base_ ? (t.assigned_[r] = !1, fn(t), Sn(t)) : delete t.assigned_[r], t.copy_ && delete t.copy_[r], !0;
2686
+ return ln(t.base_, r) !== void 0 || r in t.base_ ? (t.assigned_[r] = !1, fn(t), En(t)) : delete t.assigned_[r], t.copy_ && delete t.copy_[r], !0;
2690
2687
  },
2691
2688
  // Note: We never coerce `desc.value` into an Immer draft, because we can't make
2692
2689
  // the same guarantee in ES5 mode.
2693
2690
  getOwnPropertyDescriptor(t, r) {
2694
- const n = Ht(t), i = Reflect.getOwnPropertyDescriptor(n, r);
2691
+ const n = Gt(t), i = Reflect.getOwnPropertyDescriptor(n, r);
2695
2692
  return i && {
2696
2693
  writable: !0,
2697
2694
  configurable: t.type_ !== 1 || r !== "length",
@@ -2703,7 +2700,7 @@ var Dn = {
2703
2700
  B(11);
2704
2701
  },
2705
2702
  getPrototypeOf(t) {
2706
- return zt(t.base_);
2703
+ return Wt(t.base_);
2707
2704
  },
2708
2705
  setPrototypeOf() {
2709
2706
  B(12);
@@ -2721,10 +2718,10 @@ Fe.set = function(t, r, n) {
2721
2718
  return process.env.NODE_ENV !== "production" && r !== "length" && isNaN(parseInt(r)) && B(14), Dn.set.call(this, t[0], r, n, t[0]);
2722
2719
  };
2723
2720
  function ln(t, r) {
2724
- const n = t[ut];
2725
- return (n ? Ht(n) : t)[r];
2721
+ const n = t[ft];
2722
+ return (n ? Gt(n) : t)[r];
2726
2723
  }
2727
- function Sa(t, r, n) {
2724
+ function Ea(t, r, n) {
2728
2725
  var s;
2729
2726
  const i = _i(r, n);
2730
2727
  return i ? "value" in i ? i.value : (
@@ -2736,16 +2733,16 @@ function Sa(t, r, n) {
2736
2733
  function _i(t, r) {
2737
2734
  if (!(r in t))
2738
2735
  return;
2739
- let n = zt(t);
2736
+ let n = Wt(t);
2740
2737
  for (; n; ) {
2741
2738
  const i = Object.getOwnPropertyDescriptor(n, r);
2742
2739
  if (i)
2743
2740
  return i;
2744
- n = zt(n);
2741
+ n = Wt(n);
2745
2742
  }
2746
2743
  }
2747
- function Sn(t) {
2748
- t.modified_ || (t.modified_ = !0, t.parent_ && Sn(t.parent_));
2744
+ function En(t) {
2745
+ t.modified_ || (t.modified_ = !0, t.parent_ && En(t.parent_));
2749
2746
  }
2750
2747
  function fn(t) {
2751
2748
  t.copy_ || (t.copy_ = gn(
@@ -2760,32 +2757,32 @@ var Ta = class {
2760
2757
  const c = n;
2761
2758
  n = r;
2762
2759
  const d = this;
2763
- return function(w = c, ...R) {
2764
- return d.produce(w, (S) => n.call(this, S, ...R));
2760
+ return function(T = c, ...C) {
2761
+ return d.produce(T, (S) => n.call(this, S, ...C));
2765
2762
  };
2766
2763
  }
2767
2764
  typeof n != "function" && B(6), i !== void 0 && typeof i != "function" && B(7);
2768
2765
  let s;
2769
- if (Mt(r)) {
2766
+ if (Ot(r)) {
2770
2767
  const c = jn(this), d = Tn(r, void 0);
2771
2768
  let y = !0;
2772
2769
  try {
2773
2770
  s = n(d), y = !1;
2774
2771
  } finally {
2775
- y ? vn(c) : En(c);
2772
+ y ? vn(c) : Sn(c);
2776
2773
  }
2777
2774
  return Hn(c, i), zn(s, c);
2778
2775
  } else if (!r || typeof r != "object") {
2779
- if (s = n(r), s === void 0 && (s = r), s === kn && (s = void 0), this.autoFreeze_ && An(s, !0), i) {
2776
+ if (s = n(r), s === void 0 && (s = r), s === wn && (s = void 0), this.autoFreeze_ && An(s, !0), i) {
2780
2777
  const c = [], d = [];
2781
- Yt("Patches").generateReplacementPatches_(r, s, c, d), i(c, d);
2778
+ Kt("Patches").generateReplacementPatches_(r, s, c, d), i(c, d);
2782
2779
  }
2783
2780
  return s;
2784
2781
  } else
2785
2782
  B(1, r);
2786
2783
  }, this.produceWithPatches = (r, n) => {
2787
2784
  if (typeof r == "function")
2788
- return (d, ...y) => this.produceWithPatches(d, (w) => r(w, ...y));
2785
+ return (d, ...y) => this.produceWithPatches(d, (T) => r(T, ...y));
2789
2786
  let i, s;
2790
2787
  return [this.produce(r, n, (d, y) => {
2791
2788
  i = d, s = y;
@@ -2793,12 +2790,12 @@ var Ta = class {
2793
2790
  }, typeof (t == null ? void 0 : t.autoFreeze) == "boolean" && this.setAutoFreeze(t.autoFreeze), typeof (t == null ? void 0 : t.useStrictShallowCopy) == "boolean" && this.setUseStrictShallowCopy(t.useStrictShallowCopy);
2794
2791
  }
2795
2792
  createDraft(t) {
2796
- Mt(t) || B(8), Ut(t) && (t = wa(t));
2793
+ Ot(t) || B(8), Xt(t) && (t = ka(t));
2797
2794
  const r = jn(this), n = Tn(t, void 0);
2798
- return n[ut].isManual_ = !0, En(r), n;
2795
+ return n[ft].isManual_ = !0, Sn(r), n;
2799
2796
  }
2800
2797
  finishDraft(t, r) {
2801
- const n = t && t[ut];
2798
+ const n = t && t[ft];
2802
2799
  (!n || !n.isManual_) && B(9);
2803
2800
  const { scope_: i } = n;
2804
2801
  return Hn(i, r), zn(void 0, i);
@@ -2829,24 +2826,24 @@ var Ta = class {
2829
2826
  }
2830
2827
  }
2831
2828
  n > -1 && (r = r.slice(n + 1));
2832
- const i = Yt("Patches").applyPatches_;
2833
- return Ut(t) ? i(t, r) : this.produce(
2829
+ const i = Kt("Patches").applyPatches_;
2830
+ return Xt(t) ? i(t, r) : this.produce(
2834
2831
  t,
2835
2832
  (s) => i(s, r)
2836
2833
  );
2837
2834
  }
2838
2835
  };
2839
2836
  function Tn(t, r) {
2840
- const n = He(t) ? Yt("MapSet").proxyMap_(t, r) : je(t) ? Yt("MapSet").proxySet_(t, r) : Ea(t, r);
2837
+ const n = He(t) ? Kt("MapSet").proxyMap_(t, r) : je(t) ? Kt("MapSet").proxySet_(t, r) : Sa(t, r);
2841
2838
  return (r ? r.scope_ : yi()).drafts_.push(n), n;
2842
2839
  }
2843
- function wa(t) {
2844
- return Ut(t) || B(10, t), Ii(t);
2840
+ function ka(t) {
2841
+ return Xt(t) || B(10, t), Ii(t);
2845
2842
  }
2846
2843
  function Ii(t) {
2847
- if (!Mt(t) || Ir(t))
2844
+ if (!Ot(t) || Ir(t))
2848
2845
  return t;
2849
- const r = t[ut];
2846
+ const r = t[ft];
2850
2847
  let n;
2851
2848
  if (r) {
2852
2849
  if (!r.modified_)
@@ -2870,7 +2867,7 @@ function Gn() {
2870
2867
  "Patching reserved attributes like __proto__, prototype and constructor is not allowed"
2871
2868
  );
2872
2869
  const r = "replace", n = "add", i = "remove";
2873
- function s(_, f, l, p) {
2870
+ function s(_, f, l, h) {
2874
2871
  switch (_.type_) {
2875
2872
  case 0:
2876
2873
  case 2:
@@ -2878,192 +2875,192 @@ function Gn() {
2878
2875
  _,
2879
2876
  f,
2880
2877
  l,
2881
- p
2878
+ h
2882
2879
  );
2883
2880
  case 1:
2884
- return c(_, f, l, p);
2881
+ return c(_, f, l, h);
2885
2882
  case 3:
2886
2883
  return y(
2887
2884
  _,
2888
2885
  f,
2889
2886
  l,
2890
- p
2887
+ h
2891
2888
  );
2892
2889
  }
2893
2890
  }
2894
- function c(_, f, l, p) {
2895
- let { base_: I, assigned_: b } = _, g = _.copy_;
2896
- g.length < I.length && ([I, g] = [g, I], [l, p] = [p, l]);
2897
- for (let m = 0; m < I.length; m++)
2898
- if (b[m] && g[m] !== I[m]) {
2899
- const h = f.concat([m]);
2891
+ function c(_, f, l, h) {
2892
+ let { base_: g, assigned_: I } = _, b = _.copy_;
2893
+ b.length < g.length && ([g, b] = [b, g], [l, h] = [h, l]);
2894
+ for (let p = 0; p < g.length; p++)
2895
+ if (I[p] && b[p] !== g[p]) {
2896
+ const m = f.concat([p]);
2900
2897
  l.push({
2901
2898
  op: r,
2902
- path: h,
2899
+ path: m,
2903
2900
  // Need to maybe clone it, as it can in fact be the original value
2904
2901
  // due to the base/copy inversion at the start of this function
2905
- value: N(g[m])
2906
- }), p.push({
2902
+ value: F(b[p])
2903
+ }), h.push({
2907
2904
  op: r,
2908
- path: h,
2909
- value: N(I[m])
2905
+ path: m,
2906
+ value: F(g[p])
2910
2907
  });
2911
2908
  }
2912
- for (let m = I.length; m < g.length; m++) {
2913
- const h = f.concat([m]);
2909
+ for (let p = g.length; p < b.length; p++) {
2910
+ const m = f.concat([p]);
2914
2911
  l.push({
2915
2912
  op: n,
2916
- path: h,
2913
+ path: m,
2917
2914
  // Need to maybe clone it, as it can in fact be the original value
2918
2915
  // due to the base/copy inversion at the start of this function
2919
- value: N(g[m])
2916
+ value: F(b[p])
2920
2917
  });
2921
2918
  }
2922
- for (let m = g.length - 1; I.length <= m; --m) {
2923
- const h = f.concat([m]);
2924
- p.push({
2919
+ for (let p = b.length - 1; g.length <= p; --p) {
2920
+ const m = f.concat([p]);
2921
+ h.push({
2925
2922
  op: i,
2926
- path: h
2923
+ path: m
2927
2924
  });
2928
2925
  }
2929
2926
  }
2930
- function d(_, f, l, p) {
2931
- const { base_: I, copy_: b } = _;
2932
- Ce(_.assigned_, (g, m) => {
2933
- const h = un(I, g), T = un(b, g), D = m ? Re(I, g) ? r : n : i;
2934
- if (h === T && D === r)
2927
+ function d(_, f, l, h) {
2928
+ const { base_: g, copy_: I } = _;
2929
+ Ce(_.assigned_, (b, p) => {
2930
+ const m = un(g, b), k = un(I, b), O = p ? Re(g, b) ? r : n : i;
2931
+ if (m === k && O === r)
2935
2932
  return;
2936
- const k = f.concat(g);
2937
- l.push(D === i ? { op: D, path: k } : { op: D, path: k, value: T }), p.push(
2938
- D === n ? { op: i, path: k } : D === i ? { op: n, path: k, value: N(h) } : { op: r, path: k, value: N(h) }
2933
+ const w = f.concat(b);
2934
+ l.push(O === i ? { op: O, path: w } : { op: O, path: w, value: k }), h.push(
2935
+ O === n ? { op: i, path: w } : O === i ? { op: n, path: w, value: F(m) } : { op: r, path: w, value: F(m) }
2939
2936
  );
2940
2937
  });
2941
2938
  }
2942
- function y(_, f, l, p) {
2943
- let { base_: I, copy_: b } = _, g = 0;
2944
- I.forEach((m) => {
2945
- if (!b.has(m)) {
2946
- const h = f.concat([g]);
2939
+ function y(_, f, l, h) {
2940
+ let { base_: g, copy_: I } = _, b = 0;
2941
+ g.forEach((p) => {
2942
+ if (!I.has(p)) {
2943
+ const m = f.concat([b]);
2947
2944
  l.push({
2948
2945
  op: i,
2949
- path: h,
2950
- value: m
2951
- }), p.unshift({
2946
+ path: m,
2947
+ value: p
2948
+ }), h.unshift({
2952
2949
  op: n,
2953
- path: h,
2954
- value: m
2950
+ path: m,
2951
+ value: p
2955
2952
  });
2956
2953
  }
2957
- g++;
2958
- }), g = 0, b.forEach((m) => {
2959
- if (!I.has(m)) {
2960
- const h = f.concat([g]);
2954
+ b++;
2955
+ }), b = 0, I.forEach((p) => {
2956
+ if (!g.has(p)) {
2957
+ const m = f.concat([b]);
2961
2958
  l.push({
2962
2959
  op: n,
2963
- path: h,
2964
- value: m
2965
- }), p.unshift({
2960
+ path: m,
2961
+ value: p
2962
+ }), h.unshift({
2966
2963
  op: i,
2967
- path: h,
2968
- value: m
2964
+ path: m,
2965
+ value: p
2969
2966
  });
2970
2967
  }
2971
- g++;
2968
+ b++;
2972
2969
  });
2973
2970
  }
2974
- function w(_, f, l, p) {
2971
+ function T(_, f, l, h) {
2975
2972
  l.push({
2976
2973
  op: r,
2977
2974
  path: [],
2978
- value: f === kn ? void 0 : f
2979
- }), p.push({
2975
+ value: f === wn ? void 0 : f
2976
+ }), h.push({
2980
2977
  op: r,
2981
2978
  path: [],
2982
2979
  value: _
2983
2980
  });
2984
2981
  }
2985
- function R(_, f) {
2982
+ function C(_, f) {
2986
2983
  return f.forEach((l) => {
2987
- const { path: p, op: I } = l;
2988
- let b = _;
2989
- for (let T = 0; T < p.length - 1; T++) {
2990
- const D = Gt(b);
2991
- let k = p[T];
2992
- typeof k != "string" && typeof k != "number" && (k = "" + k), (D === 0 || D === 1) && (k === "__proto__" || k === "constructor") && B(19), typeof b == "function" && k === "prototype" && B(19), b = un(b, k), typeof b != "object" && B(18, p.join("/"));
2984
+ const { path: h, op: g } = l;
2985
+ let I = _;
2986
+ for (let k = 0; k < h.length - 1; k++) {
2987
+ const O = Bt(I);
2988
+ let w = h[k];
2989
+ typeof w != "string" && typeof w != "number" && (w = "" + w), (O === 0 || O === 1) && (w === "__proto__" || w === "constructor") && B(19), typeof I == "function" && w === "prototype" && B(19), I = un(I, w), typeof I != "object" && B(18, h.join("/"));
2993
2990
  }
2994
- const g = Gt(b), m = S(l.value), h = p[p.length - 1];
2995
- switch (I) {
2991
+ const b = Bt(I), p = S(l.value), m = h[h.length - 1];
2992
+ switch (g) {
2996
2993
  case r:
2997
- switch (g) {
2994
+ switch (b) {
2998
2995
  case 2:
2999
- return b.set(h, m);
2996
+ return I.set(m, p);
3000
2997
  case 3:
3001
2998
  B(16);
3002
2999
  default:
3003
- return b[h] = m;
3000
+ return I[m] = p;
3004
3001
  }
3005
3002
  case n:
3006
- switch (g) {
3003
+ switch (b) {
3007
3004
  case 1:
3008
- return h === "-" ? b.push(m) : b.splice(h, 0, m);
3005
+ return m === "-" ? I.push(p) : I.splice(m, 0, p);
3009
3006
  case 2:
3010
- return b.set(h, m);
3007
+ return I.set(m, p);
3011
3008
  case 3:
3012
- return b.add(m);
3009
+ return I.add(p);
3013
3010
  default:
3014
- return b[h] = m;
3011
+ return I[m] = p;
3015
3012
  }
3016
3013
  case i:
3017
- switch (g) {
3014
+ switch (b) {
3018
3015
  case 1:
3019
- return b.splice(h, 1);
3016
+ return I.splice(m, 1);
3020
3017
  case 2:
3021
- return b.delete(h);
3018
+ return I.delete(m);
3022
3019
  case 3:
3023
- return b.delete(l.value);
3020
+ return I.delete(l.value);
3024
3021
  default:
3025
- return delete b[h];
3022
+ return delete I[m];
3026
3023
  }
3027
3024
  default:
3028
- B(17, I);
3025
+ B(17, g);
3029
3026
  }
3030
3027
  }), _;
3031
3028
  }
3032
3029
  function S(_) {
3033
- if (!Mt(_))
3030
+ if (!Ot(_))
3034
3031
  return _;
3035
3032
  if (Array.isArray(_))
3036
3033
  return _.map(S);
3037
3034
  if (He(_))
3038
3035
  return new Map(
3039
- Array.from(_.entries()).map(([l, p]) => [l, S(p)])
3036
+ Array.from(_.entries()).map(([l, h]) => [l, S(h)])
3040
3037
  );
3041
3038
  if (je(_))
3042
3039
  return new Set(Array.from(_).map(S));
3043
- const f = Object.create(zt(_));
3040
+ const f = Object.create(Wt(_));
3044
3041
  for (const l in _)
3045
3042
  f[l] = S(_[l]);
3046
- return Re(_, Pe) && (f[Pe] = _[Pe]), f;
3043
+ return Re(_, xe) && (f[xe] = _[xe]), f;
3047
3044
  }
3048
- function N(_) {
3049
- return Ut(_) ? S(_) : _;
3045
+ function F(_) {
3046
+ return Xt(_) ? S(_) : _;
3050
3047
  }
3051
3048
  ga("Patches", {
3052
- applyPatches_: R,
3049
+ applyPatches_: C,
3053
3050
  generatePatches_: s,
3054
- generateReplacementPatches_: w
3051
+ generateReplacementPatches_: T
3055
3052
  });
3056
3053
  }
3057
- var lt = new Ta(), ka = lt.produce;
3058
- lt.produceWithPatches.bind(
3059
- lt
3054
+ var dt = new Ta(), wa = dt.produce;
3055
+ dt.produceWithPatches.bind(
3056
+ dt
3060
3057
  );
3061
- lt.setAutoFreeze.bind(lt);
3062
- lt.setUseStrictShallowCopy.bind(lt);
3063
- var Aa = lt.applyPatches.bind(lt);
3064
- lt.createDraft.bind(lt);
3065
- lt.finishDraft.bind(lt);
3066
- var Da = 1 / 0, Ma = 9007199254740991, Oa = "[object Arguments]", xa = "[object Function]", Pa = "[object GeneratorFunction]", Ca = "[object Symbol]", Ra = typeof pt == "object" && pt && pt.Object === Object && pt, La = typeof self == "object" && self && self.Object === Object && self, Fa = Ra || La || Function("return this")();
3058
+ dt.setAutoFreeze.bind(dt);
3059
+ dt.setUseStrictShallowCopy.bind(dt);
3060
+ var Aa = dt.applyPatches.bind(dt);
3061
+ dt.createDraft.bind(dt);
3062
+ dt.finishDraft.bind(dt);
3063
+ var Da = 1 / 0, Ma = 9007199254740991, Oa = "[object Arguments]", Pa = "[object Function]", xa = "[object GeneratorFunction]", Ca = "[object Symbol]", Ra = typeof ht == "object" && ht && ht.Object === Object && ht, La = typeof self == "object" && self && self.Object === Object && self, Fa = Ra || La || Function("return this")();
3067
3064
  function $a(t, r, n) {
3068
3065
  switch (n.length) {
3069
3066
  case 0:
@@ -3139,7 +3136,7 @@ function Za(t) {
3139
3136
  }
3140
3137
  function qa(t) {
3141
3138
  var r = ts(t) ? On.call(t) : "";
3142
- return r == xa || r == Pa;
3139
+ return r == Pa || r == xa;
3143
3140
  }
3144
3141
  function Qa(t) {
3145
3142
  return typeof t == "number" && t > -1 && t % 1 == 0 && t <= Ma;
@@ -3157,7 +3154,7 @@ function es(t) {
3157
3154
  var rs = Wa(function(t, r) {
3158
3155
  return t == null ? {} : Ga(t, Na(Ua(r), Ba));
3159
3156
  }), ns = rs;
3160
- const Bn = /* @__PURE__ */ wn(ns), is = {
3157
+ const Bn = /* @__PURE__ */ kn(ns), is = {
3161
3158
  width: 1080,
3162
3159
  height: 1920
3163
3160
  }, as = {
@@ -3187,12 +3184,12 @@ const Bn = /* @__PURE__ */ wn(ns), is = {
3187
3184
  ];
3188
3185
  class hs {
3189
3186
  constructor(r) {
3190
- Nt(this, "stateSubject");
3191
- Nt(this, "stateHistorySubject");
3192
- Nt(this, "prevState");
3193
- Nt(this, "undos", []);
3194
- Nt(this, "redos", []);
3195
- Nt(this, "listener");
3187
+ Ut(this, "stateSubject");
3188
+ Ut(this, "stateHistorySubject");
3189
+ Ut(this, "prevState");
3190
+ Ut(this, "undos", []);
3191
+ Ut(this, "redos", []);
3192
+ Ut(this, "listener");
3196
3193
  const n = r || as;
3197
3194
  this.stateSubject = new Nn(n), this.stateHistorySubject = new Nn({
3198
3195
  handleRedo: !1,
@@ -3232,28 +3229,28 @@ class hs {
3232
3229
  ...i,
3233
3230
  ...r
3234
3231
  };
3235
- rt(i, s) || (n.updateHistory && this.updateHistory(s, n.kind), this.prevState = i, this.stateSubject.next(s));
3232
+ it(i, s) || (n.updateHistory && this.updateHistory(s, n.kind), this.prevState = i, this.stateSubject.next(s));
3236
3233
  }
3237
3234
  // emit changes for design size
3238
3235
  subscribeToSize(r) {
3239
3236
  return this.stateSubject.asObservable().subscribe((n) => {
3240
- rt(n.size, this.prevState.size) || r({ size: n.size });
3237
+ it(n.size, this.prevState.size) || r({ size: n.size });
3241
3238
  });
3242
3239
  }
3243
3240
  // Selectively subscribe to scale changes
3244
3241
  subscribeToScale(r) {
3245
3242
  return this.stateSubject.asObservable().subscribe((n) => {
3246
- rt(n.scale, this.prevState.scale) || r({ scale: n.scale });
3243
+ it(n.scale, this.prevState.scale) || r({ scale: n.scale });
3247
3244
  });
3248
3245
  }
3249
3246
  subscribeToUpdateTrackItem(r) {
3250
3247
  return this.stateSubject.asObservable().subscribe((n) => {
3251
- rt(n.trackItemsMap, this.prevState.trackItemsMap) || r({ trackItemsMap: n.trackItemsMap });
3248
+ it(n.trackItemsMap, this.prevState.trackItemsMap) || r({ trackItemsMap: n.trackItemsMap });
3252
3249
  });
3253
3250
  }
3254
3251
  subscribeToUpdateItemDetails(r) {
3255
3252
  return this.stateSubject.asObservable().subscribe((n) => {
3256
- rt(n.trackItemDetailsMap, this.prevState.trackItemDetailsMap) || r({ trackItemDetailsMap: n.trackItemDetailsMap });
3253
+ it(n.trackItemDetailsMap, this.prevState.trackItemDetailsMap) || r({ trackItemDetailsMap: n.trackItemDetailsMap });
3257
3254
  });
3258
3255
  }
3259
3256
  // Selectively subscribe to duration changes
@@ -3276,22 +3273,22 @@ class hs {
3276
3273
  }
3277
3274
  subscribeToAddOrRemoveItems(r) {
3278
3275
  return this.stateSubject.asObservable().subscribe((n) => {
3279
- (!rt(n.trackItemIds, this.prevState.trackItemIds) || !rt(n.tracks, this.prevState.tracks)) && r({ trackItemIds: n.trackItemIds });
3276
+ (!it(n.trackItemIds, this.prevState.trackItemIds) || !it(n.tracks, this.prevState.tracks)) && r({ trackItemIds: n.trackItemIds });
3280
3277
  });
3281
3278
  }
3282
3279
  // Selectively subscribe to activeIds changes
3283
3280
  subscribeToActiveIds(r) {
3284
3281
  return this.stateSubject.asObservable().subscribe((n) => {
3285
- rt(n.activeIds, this.prevState.activeIds) || r({ activeIds: n.activeIds });
3282
+ it(n.activeIds, this.prevState.activeIds) || r({ activeIds: n.activeIds });
3286
3283
  });
3287
3284
  }
3288
3285
  // Selectively subscribe to multiple track-related properties
3289
3286
  subscribeToTracks(r) {
3290
3287
  return this.stateSubject.asObservable().subscribe((n) => {
3291
- (!rt(n.tracks, this.prevState.tracks) || !rt(n.trackItemIds, this.prevState.trackItemIds) || !rt(n.trackItemsMap, this.prevState.trackItemsMap) || !rt(n.transitionIds, this.prevState.transitionIds) || !rt(n.transitionsMap, this.prevState.transitionsMap) || !rt(
3288
+ (!it(n.tracks, this.prevState.tracks) || !it(n.trackItemIds, this.prevState.trackItemIds) || !it(n.trackItemsMap, this.prevState.trackItemsMap) || !it(n.transitionIds, this.prevState.transitionIds) || !it(n.transitionsMap, this.prevState.transitionsMap) || !it(
3292
3289
  n.trackItemDetailsMap,
3293
3290
  this.prevState.trackItemDetailsMap
3294
- ) || !rt(n.structure, this.prevState.structure)) && r({
3291
+ ) || !it(n.structure, this.prevState.structure)) && r({
3295
3292
  tracks: n.tracks,
3296
3293
  trackItemIds: n.trackItemIds,
3297
3294
  trackItemsMap: n.trackItemsMap,
@@ -3311,65 +3308,65 @@ class hs {
3311
3308
  trackItemIds: c,
3312
3309
  tracks: d,
3313
3310
  transitionIds: y,
3314
- transitionsMap: w,
3315
- trackItemsMap: R
3316
- } = this.getState(), S = tt({
3311
+ transitionsMap: T,
3312
+ trackItemsMap: C
3313
+ } = this.getState(), S = et({
3317
3314
  trackItemDetailsMap: s,
3318
3315
  trackItemIds: c,
3319
3316
  tracks: d,
3320
3317
  transitionIds: y,
3321
- transitionsMap: w,
3322
- trackItemsMap: R
3323
- }), N = [], _ = [], f = [], l = [], p = [], I = [];
3324
- n.forEach((A) => {
3325
- let O;
3326
- const z = A.path.slice(1);
3327
- A.type === "CREATE" ? O = {
3318
+ transitionsMap: T,
3319
+ trackItemsMap: C
3320
+ }), F = [], _ = [], f = [], l = [], h = [], g = [];
3321
+ n.forEach((E) => {
3322
+ let D;
3323
+ const z = E.path.slice(1);
3324
+ E.type === "CREATE" ? D = {
3328
3325
  path: z,
3329
3326
  op: "remove",
3330
- value: A.value
3331
- } : A.type === "CHANGE" ? O = {
3327
+ value: E.value
3328
+ } : E.type === "CHANGE" ? D = {
3332
3329
  path: z,
3333
3330
  op: "replace",
3334
- value: A.oldValue
3335
- } : O = {
3331
+ value: E.oldValue
3332
+ } : D = {
3336
3333
  path: z,
3337
3334
  op: "add",
3338
- value: A.oldValue
3339
- }, A.path.includes("trackItemIds") ? f.push(O) : A.path.includes("transitionIds") ? _.push(O) : A.path.includes("trackItemsMap") ? p.push(O) : A.path.includes("transitionsMap") ? l.push(O) : A.path.includes("tracks") ? N.push(O) : A.path.includes("trackItemDetailsMap") && I.push(O);
3335
+ value: E.oldValue
3336
+ }, E.path.includes("trackItemIds") ? f.push(D) : E.path.includes("transitionIds") ? _.push(D) : E.path.includes("trackItemsMap") ? h.push(D) : E.path.includes("transitionsMap") ? l.push(D) : E.path.includes("tracks") ? F.push(D) : E.path.includes("trackItemDetailsMap") && g.push(D);
3340
3337
  });
3341
- const b = this.applyPatch(
3338
+ const I = this.applyPatch(
3342
3339
  S.tracks,
3343
- N
3344
- ), g = this.applyPatch(
3340
+ F
3341
+ ), b = this.applyPatch(
3345
3342
  S.transitionIds,
3346
3343
  _
3347
- ), m = this.applyPatch(
3344
+ ), p = this.applyPatch(
3348
3345
  S.trackItemIds,
3349
3346
  f
3350
- ), h = this.applyPatch(
3347
+ ), m = this.applyPatch(
3351
3348
  S.transitionsMap,
3352
3349
  l
3353
- ), T = this.applyPatch(
3350
+ ), k = this.applyPatch(
3354
3351
  S.trackItemsMap,
3355
- p
3356
- ), D = this.applyPatch(
3352
+ h
3353
+ ), O = this.applyPatch(
3357
3354
  S.trackItemDetailsMap,
3358
- I
3359
- ), k = tt({
3360
- tracks: b,
3361
- transitionIds: g,
3362
- trackItemIds: m,
3363
- transitionsMap: h,
3364
- trackItemsMap: T,
3365
- trackItemDetailsMap: D
3366
- }), x = tt(this.getState()), C = { ...x, ...k };
3355
+ g
3356
+ ), w = et({
3357
+ tracks: I,
3358
+ transitionIds: b,
3359
+ trackItemIds: p,
3360
+ transitionsMap: m,
3361
+ trackItemsMap: k,
3362
+ trackItemDetailsMap: O
3363
+ }), x = et(this.getState()), R = { ...x, ...w };
3367
3364
  this.prevState = x, this.redos.push({ redos: n, type: i });
3368
- const P = jt(C.trackItemsMap);
3369
- this.stateSubject.next({ ...C, duration: P }), this.stateHistorySubject.next({ handleRedo: !1, handleUndo: !0 });
3365
+ const P = Yt(R.trackItemsMap);
3366
+ this.stateSubject.next({ ...R, duration: P }), this.stateHistorySubject.next({ handleRedo: !1, handleUndo: !0 });
3370
3367
  }
3371
3368
  applyPatch(r, n) {
3372
- return n.reverse().reduce((i, s) => ka(i, (c) => {
3369
+ return n.reverse().reduce((i, s) => wa(i, (c) => {
3373
3370
  Aa(c, [s]);
3374
3371
  }), r);
3375
3372
  }
@@ -3382,65 +3379,65 @@ class hs {
3382
3379
  trackItemIds: c,
3383
3380
  tracks: d,
3384
3381
  transitionIds: y,
3385
- transitionsMap: w,
3386
- trackItemsMap: R
3387
- } = this.getState(), S = tt({
3382
+ transitionsMap: T,
3383
+ trackItemsMap: C
3384
+ } = this.getState(), S = et({
3388
3385
  trackItemDetailsMap: s,
3389
3386
  trackItemIds: c,
3390
3387
  tracks: d,
3391
3388
  transitionIds: y,
3392
- transitionsMap: w,
3393
- trackItemsMap: R
3394
- }), N = [], _ = [], f = [], l = [], p = [], I = [];
3395
- n.forEach((A) => {
3396
- let O;
3397
- const z = A.path.slice(1);
3398
- A.type === "CREATE" ? O = {
3389
+ transitionsMap: T,
3390
+ trackItemsMap: C
3391
+ }), F = [], _ = [], f = [], l = [], h = [], g = [];
3392
+ n.forEach((E) => {
3393
+ let D;
3394
+ const z = E.path.slice(1);
3395
+ E.type === "CREATE" ? D = {
3399
3396
  path: z,
3400
3397
  op: "add",
3401
- value: A.value
3402
- } : A.type === "CHANGE" ? O = {
3398
+ value: E.value
3399
+ } : E.type === "CHANGE" ? D = {
3403
3400
  path: z,
3404
3401
  op: "replace",
3405
- value: A.value
3406
- } : O = {
3402
+ value: E.value
3403
+ } : D = {
3407
3404
  path: z,
3408
3405
  op: "remove",
3409
- value: A.oldValue
3410
- }, A.path.includes("trackItemIds") ? f.push(O) : A.path.includes("transitionIds") ? _.push(O) : A.path.includes("trackItemsMap") ? p.push(O) : A.path.includes("transitionsMap") ? l.push(O) : A.path.includes("trackItemDetailsMap") ? I.push(O) : N.push(O);
3406
+ value: E.oldValue
3407
+ }, E.path.includes("trackItemIds") ? f.push(D) : E.path.includes("transitionIds") ? _.push(D) : E.path.includes("trackItemsMap") ? h.push(D) : E.path.includes("transitionsMap") ? l.push(D) : E.path.includes("trackItemDetailsMap") ? g.push(D) : F.push(D);
3411
3408
  });
3412
- const b = this.applyPatch(
3409
+ const I = this.applyPatch(
3413
3410
  S.tracks,
3414
- N
3415
- ), g = this.applyPatch(
3411
+ F
3412
+ ), b = this.applyPatch(
3416
3413
  S.transitionIds,
3417
3414
  _
3418
- ), m = this.applyPatch(
3415
+ ), p = this.applyPatch(
3419
3416
  S.trackItemIds,
3420
3417
  f
3421
- ), h = this.applyPatch(
3418
+ ), m = this.applyPatch(
3422
3419
  S.transitionsMap,
3423
3420
  l
3424
- ), T = this.applyPatch(
3421
+ ), k = this.applyPatch(
3425
3422
  S.trackItemsMap,
3426
- p
3427
- ), D = this.applyPatch(
3423
+ h
3424
+ ), O = this.applyPatch(
3428
3425
  S.trackItemDetailsMap,
3429
- I
3430
- ), k = tt({
3431
- tracks: b,
3432
- transitionIds: g,
3433
- trackItemIds: m,
3434
- transitionsMap: h,
3435
- trackItemsMap: T,
3436
- trackItemDetailsMap: D
3437
- }), x = tt(this.getState()), C = { ...x, ...k };
3426
+ g
3427
+ ), w = et({
3428
+ tracks: I,
3429
+ transitionIds: b,
3430
+ trackItemIds: p,
3431
+ transitionsMap: m,
3432
+ trackItemsMap: k,
3433
+ trackItemDetailsMap: O
3434
+ }), x = et(this.getState()), R = { ...x, ...w };
3438
3435
  this.prevState = x, this.undos.push({ undos: n, type: i });
3439
- const P = jt(C.trackItemsMap);
3440
- this.stateSubject.next({ ...C, duration: P }), this.stateHistorySubject.next({ handleRedo: !0, handleUndo: !1 });
3436
+ const P = Yt(R.trackItemsMap);
3437
+ this.stateSubject.next({ ...R, duration: P }), this.stateHistorySubject.next({ handleRedo: !0, handleUndo: !1 });
3441
3438
  }
3442
3439
  }
3443
- const ms = "add", ss = "track", os = "trackItems", ys = `${ss}:changed`, _s = `${os}:changed`, cs = "state", Is = `${cs}:changed`, bi = "design", gs = `${bi}:load`, bs = `${bi}:resize`, _t = "add", vs = `${_t}:text`, Es = `${_t}:video`, Ss = `${_t}:audio`, Ts = `${_t}:placeholder`, ws = `${_t}:image`, ks = `${_t}:mask`, us = `${_t}:items`, As = `${_t}:transition`, Ds = `${_t}:animation`, Ms = `${_t}:caption`, Os = `${_t}:template`, fe = "edit", xs = `${fe}:object`, Ps = `${fe}:text`, Cs = `${fe}:shape`, Rs = `${fe}:templateItem`, Ls = `${fe}:closeTemplate`, Fs = `${fe}:deleteTemplateItem`, $s = "enterEditMode", de = "player", Ns = `${de}:play`, Hs = `${de}:pause`, js = `${de}:seek`, zs = `${de}:seekTo`, Us = `${de}:seekBy`, Gs = `${de}:togglePlay`, ze = "active", Ys = `${ze}:set`, Ws = `${ze}:delete`, Xs = `${ze}:paste`, Bs = `${ze}:clone`, Ks = `${ze}:split`, st = "layer", Vs = `${st}:locked`, Js = `${st}:hidden`, Zs = `${st}:move`, qs = `${st}:select`, Qs = `${st}:selection`, to = `${st}:sendTo`, eo = `${st}:rename`, ro = `${st}:editingName`, no = `${st}:copy`, io = `${st}:paste`, ao = `${st}:clone`, so = `${st}:split`, oo = `${st}:cut`, co = `${st}:delete`, xn = "history", uo = `${xn}:undo`, lo = `${xn}:redo`, fo = `${xn}:reset`, ls = "scale", po = `${ls}:changed`, vi = "drag", ho = `${vi}:start`, mo = `${vi}:end`, fs = "timeline", yo = `${fs}:boundingChanged`;
3440
+ const ms = "add", ss = "track", os = "trackItems", ys = `${ss}:changed`, _s = `${os}:changed`, cs = "state", Is = `${cs}:changed`, bi = "design", gs = `${bi}:load`, bs = `${bi}:resize`, _t = "add", vs = `${_t}:text`, Ss = `${_t}:video`, Es = `${_t}:audio`, Ts = `${_t}:placeholder`, ks = `${_t}:image`, ws = `${_t}:mask`, us = `${_t}:items`, As = `${_t}:transition`, Ds = `${_t}:animation`, Ms = `${_t}:caption`, Os = `${_t}:template`, me = "edit", Ps = `${me}:object`, xs = `${me}:text`, Cs = `${me}:shape`, Rs = `${me}:templateItem`, Ls = `${me}:closeTemplate`, Fs = `${me}:deleteTemplateItem`, $s = "enterEditMode", ye = "player", Ns = `${ye}:play`, Hs = `${ye}:pause`, js = `${ye}:seek`, zs = `${ye}:seekTo`, Us = `${ye}:seekBy`, Gs = `${ye}:togglePlay`, ze = "active", Ys = `${ze}:set`, Ws = `${ze}:delete`, Xs = `${ze}:paste`, Bs = `${ze}:clone`, Ks = `${ze}:split`, ct = "layer", Vs = `${ct}:locked`, Js = `${ct}:hidden`, Zs = `${ct}:move`, qs = `${ct}:select`, Qs = `${ct}:selection`, to = `${ct}:sendTo`, eo = `${ct}:rename`, ro = `${ct}:editingName`, no = `${ct}:copy`, io = `${ct}:paste`, ao = `${ct}:clone`, so = `${ct}:split`, oo = `${ct}:cut`, co = `${ct}:delete`, Pn = "history", uo = `${Pn}:undo`, lo = `${Pn}:redo`, fo = `${Pn}:reset`, ls = "scale", po = `${ls}:changed`, vi = "drag", ho = `${vi}:start`, mo = `${vi}:end`, fs = "timeline", yo = `${fs}:boundingChanged`;
3444
3441
  export {
3445
3442
  Bs as ACTIVE_CLONE,
3446
3443
  Ws as ACTIVE_DELETE,
@@ -3449,18 +3446,18 @@ export {
3449
3446
  Ys as ACTIVE_SET,
3450
3447
  Ks as ACTIVE_SPLIT,
3451
3448
  Ds as ADD_ANIMATION,
3452
- Ss as ADD_AUDIO,
3449
+ Es as ADD_AUDIO,
3453
3450
  Ms as ADD_CAPTION,
3454
- ws as ADD_IMAGE,
3451
+ ks as ADD_IMAGE,
3455
3452
  us as ADD_ITEMS,
3456
- ks as ADD_MASK,
3453
+ ws as ADD_MASK,
3457
3454
  Ts as ADD_PLACEHOLDER,
3458
3455
  _t as ADD_PREFIX,
3459
3456
  ms as ADD_SUFFIX,
3460
3457
  Os as ADD_TEMPLATE,
3461
3458
  vs as ADD_TEXT,
3462
3459
  As as ADD_TRANSITION,
3463
- Es as ADD_VIDEO,
3460
+ Ss as ADD_VIDEO,
3464
3461
  Ls as CLOSE_EDIT_TEMPLATE,
3465
3462
  Fs as DELETE_TEMPLATE_ITEM,
3466
3463
  gs as DESIGN_LOAD,
@@ -3469,13 +3466,13 @@ export {
3469
3466
  mo as DRAG_END,
3470
3467
  vi as DRAG_PREFIX,
3471
3468
  ho as DRAG_START,
3472
- xs as EDIT_OBJECT,
3473
- fe as EDIT_PREFIX,
3469
+ Ps as EDIT_OBJECT,
3470
+ me as EDIT_PREFIX,
3474
3471
  Cs as EDIT_SHAPE,
3475
3472
  Rs as EDIT_TEMPLATE_ITEM,
3476
- Ps as EDIT_TEXT,
3473
+ xs as EDIT_TEXT,
3477
3474
  $s as ENTER_EDIT_MODE,
3478
- xn as HISTORY_PREFIX,
3475
+ Pn as HISTORY_PREFIX,
3479
3476
  lo as HISTORY_REDO,
3480
3477
  fo as HISTORY_RESET,
3481
3478
  uo as HISTORY_UNDO,
@@ -3488,7 +3485,7 @@ export {
3488
3485
  Vs as LAYER_LOCKED,
3489
3486
  Zs as LAYER_MOVE,
3490
3487
  io as LAYER_PASTE,
3491
- st as LAYER_PREFIX,
3488
+ ct as LAYER_PREFIX,
3492
3489
  eo as LAYER_RENAME,
3493
3490
  qs as LAYER_SELECT,
3494
3491
  Qs as LAYER_SELECTION,
@@ -3496,7 +3493,7 @@ export {
3496
3493
  so as LAYER_SPLIT,
3497
3494
  Hs as PLAYER_PAUSE,
3498
3495
  Ns as PLAYER_PLAY,
3499
- de as PLAYER_PREFIX,
3496
+ ye as PLAYER_PREFIX,
3500
3497
  js as PLAYER_SEEK,
3501
3498
  Us as PLAYER_SEEK_BY,
3502
3499
  zs as PLAYER_SEEK_TO,