@byomakase/omakase-react-components 1.0.1-RC1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,8 +1,8 @@
1
1
  var Rn = Object.defineProperty;
2
2
  var Dn = (t, e, n) => e in t ? Rn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var S = (t, e, n) => Dn(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { MarkerLane as Yt, ThumbnailLane as Vn, OmakasePlayer as Bn, PeriodMarker as H } from "@byomakase/omakase-player";
5
- import b, { useEffect as Y, useRef as et, useState as pe, useMemo as Fn } from "react";
4
+ import { MarkerLane as Yt, ThumbnailLane as Vn, OmakasePlayer as Fn, PeriodMarker as H } from "@byomakase/omakase-player";
5
+ import w, { useEffect as Y, useRef as tt, useState as pe, useMemo as Bn } from "react";
6
6
  class to {
7
7
  constructor(e) {
8
8
  S(this, "_lanes", []);
@@ -55,17 +55,17 @@ class to {
55
55
  });
56
56
  }
57
57
  }
58
- var nt = function(t, e) {
59
- return nt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
58
+ var rt = function(t, e) {
59
+ return rt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
60
60
  n.__proto__ = r;
61
61
  } || function(n, r) {
62
62
  for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
63
- }, nt(t, e);
63
+ }, rt(t, e);
64
64
  };
65
- function Me(t, e) {
65
+ function Ie(t, e) {
66
66
  if (typeof e != "function" && e !== null)
67
67
  throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
68
- nt(t, e);
68
+ rt(t, e);
69
69
  function n() {
70
70
  this.constructor = t;
71
71
  }
@@ -158,7 +158,7 @@ function Qt(t, e) {
158
158
  return { value: u[0] ? u[1] : void 0, done: !0 };
159
159
  }
160
160
  }
161
- function ye(t) {
161
+ function Ce(t) {
162
162
  var e = typeof Symbol == "function" && Symbol.iterator, n = e && t[e], r = 0;
163
163
  if (n) return n.call(t);
164
164
  if (t && typeof t.length == "number") return {
@@ -168,7 +168,7 @@ function ye(t) {
168
168
  };
169
169
  throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
170
170
  }
171
- function He(t, e) {
171
+ function Pe(t, e) {
172
172
  var n = typeof Symbol == "function" && t[Symbol.iterator];
173
173
  if (!n) return t;
174
174
  var r = n.call(t), i, o = [], s;
@@ -185,13 +185,13 @@ function He(t, e) {
185
185
  }
186
186
  return o;
187
187
  }
188
- function Pe(t, e, n) {
188
+ function Ue(t, e, n) {
189
189
  if (n || arguments.length === 2) for (var r = 0, i = e.length, o; r < i; r++)
190
190
  (o || !(r in e)) && (o || (o = Array.prototype.slice.call(e, 0, r)), o[r] = e[r]);
191
191
  return t.concat(o || Array.prototype.slice.call(e));
192
192
  }
193
- function Te(t) {
194
- return this instanceof Te ? (this.v = t, this) : new Te(t);
193
+ function ye(t) {
194
+ return this instanceof ye ? (this.v = t, this) : new ye(t);
195
195
  }
196
196
  function Hn(t, e, n) {
197
197
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
@@ -200,26 +200,26 @@ function Hn(t, e, n) {
200
200
  return this;
201
201
  }, i;
202
202
  function s(h) {
203
- return function(g) {
204
- return Promise.resolve(g).then(h, d);
203
+ return function(v) {
204
+ return Promise.resolve(v).then(h, d);
205
205
  };
206
206
  }
207
- function a(h, g) {
208
- r[h] && (i[h] = function(v) {
209
- return new Promise(function(y, A) {
210
- o.push([h, v, y, A]) > 1 || c(h, v);
207
+ function a(h, v) {
208
+ r[h] && (i[h] = function(g) {
209
+ return new Promise(function(L, A) {
210
+ o.push([h, g, L, A]) > 1 || c(h, g);
211
211
  });
212
- }, g && (i[h] = g(i[h])));
212
+ }, v && (i[h] = v(i[h])));
213
213
  }
214
- function c(h, g) {
214
+ function c(h, v) {
215
215
  try {
216
- u(r[h](g));
217
- } catch (v) {
218
- f(o[0][3], v);
216
+ u(r[h](v));
217
+ } catch (g) {
218
+ f(o[0][3], g);
219
219
  }
220
220
  }
221
221
  function u(h) {
222
- h.value instanceof Te ? Promise.resolve(h.value.v).then(l, d) : f(o[0][2], h);
222
+ h.value instanceof ye ? Promise.resolve(h.value.v).then(l, d) : f(o[0][2], h);
223
223
  }
224
224
  function l(h) {
225
225
  c("next", h);
@@ -227,14 +227,14 @@ function Hn(t, e, n) {
227
227
  function d(h) {
228
228
  c("throw", h);
229
229
  }
230
- function f(h, g) {
231
- h(g), o.shift(), o.length && c(o[0][0], o[0][1]);
230
+ function f(h, v) {
231
+ h(v), o.shift(), o.length && c(o[0][0], o[0][1]);
232
232
  }
233
233
  }
234
234
  function Pn(t) {
235
235
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
236
236
  var e = t[Symbol.asyncIterator], n;
237
- return e ? e.call(t) : (t = typeof ye == "function" ? ye(t) : t[Symbol.iterator](), n = {}, r("next"), r("throw"), r("return"), n[Symbol.asyncIterator] = function() {
237
+ return e ? e.call(t) : (t = typeof Ce == "function" ? Ce(t) : t[Symbol.iterator](), n = {}, r("next"), r("throw"), r("return"), n[Symbol.asyncIterator] = function() {
238
238
  return this;
239
239
  }, n);
240
240
  function r(o) {
@@ -250,7 +250,7 @@ function Pn(t) {
250
250
  }, s);
251
251
  }
252
252
  }
253
- function F(t) {
253
+ function B(t) {
254
254
  return typeof t == "function";
255
255
  }
256
256
  function ft(t) {
@@ -259,7 +259,7 @@ function ft(t) {
259
259
  }, n = t(e);
260
260
  return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
261
261
  }
262
- var tt = ft(function(t) {
262
+ var nt = ft(function(t) {
263
263
  return function(n) {
264
264
  t(this), this.message = n ? n.length + ` errors occurred during unsubscription:
265
265
  ` + n.map(function(r, i) {
@@ -268,13 +268,13 @@ var tt = ft(function(t) {
268
268
  `) : "", this.name = "UnsubscriptionError", this.errors = n;
269
269
  };
270
270
  });
271
- function rt(t, e) {
271
+ function it(t, e) {
272
272
  if (t) {
273
273
  var n = t.indexOf(e);
274
274
  0 <= n && t.splice(n, 1);
275
275
  }
276
276
  }
277
- var qe = function() {
277
+ var We = function() {
278
278
  function t(e) {
279
279
  this.initialTeardown = e, this.closed = !1, this._parentage = null, this._finalizers = null;
280
280
  }
@@ -286,12 +286,12 @@ var qe = function() {
286
286
  if (s)
287
287
  if (this._parentage = null, Array.isArray(s))
288
288
  try {
289
- for (var a = ye(s), c = a.next(); !c.done; c = a.next()) {
289
+ for (var a = Ce(s), c = a.next(); !c.done; c = a.next()) {
290
290
  var u = c.value;
291
291
  u.remove(this);
292
292
  }
293
- } catch (v) {
294
- e = { error: v };
293
+ } catch (g) {
294
+ e = { error: g };
295
295
  } finally {
296
296
  try {
297
297
  c && !c.done && (n = a.return) && n.call(a);
@@ -302,26 +302,26 @@ var qe = function() {
302
302
  else
303
303
  s.remove(this);
304
304
  var l = this.initialTeardown;
305
- if (F(l))
305
+ if (B(l))
306
306
  try {
307
307
  l();
308
- } catch (v) {
309
- o = v instanceof tt ? v.errors : [v];
308
+ } catch (g) {
309
+ o = g instanceof nt ? g.errors : [g];
310
310
  }
311
311
  var d = this._finalizers;
312
312
  if (d) {
313
313
  this._finalizers = null;
314
314
  try {
315
- for (var f = ye(d), h = f.next(); !h.done; h = f.next()) {
316
- var g = h.value;
315
+ for (var f = Ce(d), h = f.next(); !h.done; h = f.next()) {
316
+ var v = h.value;
317
317
  try {
318
- xt(g);
319
- } catch (v) {
320
- o = o ?? [], v instanceof tt ? o = Pe(Pe([], He(o)), He(v.errors)) : o.push(v);
318
+ xt(v);
319
+ } catch (g) {
320
+ o = o ?? [], g instanceof nt ? o = Ue(Ue([], Pe(o)), Pe(g.errors)) : o.push(g);
321
321
  }
322
322
  }
323
- } catch (v) {
324
- r = { error: v };
323
+ } catch (g) {
324
+ r = { error: g };
325
325
  } finally {
326
326
  try {
327
327
  h && !h.done && (i = f.return) && i.call(f);
@@ -331,7 +331,7 @@ var qe = function() {
331
331
  }
332
332
  }
333
333
  if (o)
334
- throw new tt(o);
334
+ throw new nt(o);
335
335
  }
336
336
  }, t.prototype.add = function(e) {
337
337
  var n;
@@ -354,20 +354,20 @@ var qe = function() {
354
354
  this._parentage = Array.isArray(n) ? (n.push(e), n) : n ? [n, e] : e;
355
355
  }, t.prototype._removeParent = function(e) {
356
356
  var n = this._parentage;
357
- n === e ? this._parentage = null : Array.isArray(n) && rt(n, e);
357
+ n === e ? this._parentage = null : Array.isArray(n) && it(n, e);
358
358
  }, t.prototype.remove = function(e) {
359
359
  var n = this._finalizers;
360
- n && rt(n, e), e instanceof t && e._removeParent(this);
360
+ n && it(n, e), e instanceof t && e._removeParent(this);
361
361
  }, t.EMPTY = function() {
362
362
  var e = new t();
363
363
  return e.closed = !0, e;
364
364
  }(), t;
365
- }(), Jt = qe.EMPTY;
365
+ }(), Jt = We.EMPTY;
366
366
  function en(t) {
367
- return t instanceof qe || t && "closed" in t && F(t.remove) && F(t.add) && F(t.unsubscribe);
367
+ return t instanceof We || t && "closed" in t && B(t.remove) && B(t.add) && B(t.unsubscribe);
368
368
  }
369
369
  function xt(t) {
370
- F(t) ? t() : t.unsubscribe();
370
+ B(t) ? t() : t.unsubscribe();
371
371
  }
372
372
  var Un = {
373
373
  Promise: void 0
@@ -375,7 +375,7 @@ var Un = {
375
375
  setTimeout: function(t, e) {
376
376
  for (var n = [], r = 2; r < arguments.length; r++)
377
377
  n[r - 2] = arguments[r];
378
- return setTimeout.apply(void 0, Pe([t, e], He(n)));
378
+ return setTimeout.apply(void 0, Ue([t, e], Pe(n)));
379
379
  },
380
380
  clearTimeout: function(t) {
381
381
  return clearTimeout(t);
@@ -387,19 +387,19 @@ function tn(t) {
387
387
  throw t;
388
388
  });
389
389
  }
390
- function it() {
390
+ function ot() {
391
391
  }
392
392
  function Be(t) {
393
393
  t();
394
394
  }
395
395
  var ht = function(t) {
396
- Me(e, t);
396
+ Ie(e, t);
397
397
  function e(n) {
398
398
  var r = t.call(this) || this;
399
399
  return r.isStopped = !1, n ? (r.destination = n, en(n) && n.add(r)) : r.destination = Wn, r;
400
400
  }
401
401
  return e.create = function(n, r, i) {
402
- return new ot(n, r, i);
402
+ return new st(n, r, i);
403
403
  }, e.prototype.next = function(n) {
404
404
  this.isStopped || this._next(n);
405
405
  }, e.prototype.error = function(n) {
@@ -423,7 +423,7 @@ var ht = function(t) {
423
423
  this.unsubscribe();
424
424
  }
425
425
  }, e;
426
- }(qe), Zn = function() {
426
+ }(We), Zn = function() {
427
427
  function t(e) {
428
428
  this.partialObserver = e;
429
429
  }
@@ -433,7 +433,7 @@ var ht = function(t) {
433
433
  try {
434
434
  n.next(e);
435
435
  } catch (r) {
436
- Oe(r);
436
+ Ne(r);
437
437
  }
438
438
  }, t.prototype.error = function(e) {
439
439
  var n = this.partialObserver;
@@ -441,24 +441,24 @@ var ht = function(t) {
441
441
  try {
442
442
  n.error(e);
443
443
  } catch (r) {
444
- Oe(r);
444
+ Ne(r);
445
445
  }
446
446
  else
447
- Oe(e);
447
+ Ne(e);
448
448
  }, t.prototype.complete = function() {
449
449
  var e = this.partialObserver;
450
450
  if (e.complete)
451
451
  try {
452
452
  e.complete();
453
453
  } catch (n) {
454
- Oe(n);
454
+ Ne(n);
455
455
  }
456
456
  }, t;
457
- }(), ot = function(t) {
458
- Me(e, t);
457
+ }(), st = function(t) {
458
+ Ie(e, t);
459
459
  function e(n, r, i) {
460
460
  var o = t.call(this) || this, s;
461
- return F(n) || !n ? s = {
461
+ return B(n) || !n ? s = {
462
462
  next: n ?? void 0,
463
463
  error: r ?? void 0,
464
464
  complete: i ?? void 0
@@ -466,7 +466,7 @@ var ht = function(t) {
466
466
  }
467
467
  return e;
468
468
  }(ht);
469
- function Oe(t) {
469
+ function Ne(t) {
470
470
  tn(t);
471
471
  }
472
472
  function qn(t) {
@@ -474,17 +474,17 @@ function qn(t) {
474
474
  }
475
475
  var Wn = {
476
476
  closed: !0,
477
- next: it,
477
+ next: ot,
478
478
  error: qn,
479
- complete: it
479
+ complete: ot
480
480
  }, mt = function() {
481
481
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
482
482
  }();
483
- function We(t) {
483
+ function Xe(t) {
484
484
  return t;
485
485
  }
486
486
  function Xn(t) {
487
- return t.length === 0 ? We : t.length === 1 ? t[0] : function(n) {
487
+ return t.length === 0 ? Xe : t.length === 1 ? t[0] : function(n) {
488
488
  return t.reduce(function(r, i) {
489
489
  return i(r);
490
490
  }, n);
@@ -498,7 +498,7 @@ var j = function() {
498
498
  var n = new t();
499
499
  return n.source = this, n.operator = e, n;
500
500
  }, t.prototype.subscribe = function(e, n, r) {
501
- var i = this, o = jn(e) ? e : new ot(e, n, r);
501
+ var i = this, o = jn(e) ? e : new st(e, n, r);
502
502
  return Be(function() {
503
503
  var s = i, a = s.operator, c = s.source;
504
504
  o.add(a ? a.call(o, c) : c ? i._subscribe(o) : i._trySubscribe(o));
@@ -512,7 +512,7 @@ var j = function() {
512
512
  }, t.prototype.forEach = function(e, n) {
513
513
  var r = this;
514
514
  return n = Mt(n), new n(function(i, o) {
515
- var s = new ot({
515
+ var s = new st({
516
516
  next: function(a) {
517
517
  try {
518
518
  e(a);
@@ -555,13 +555,13 @@ function Mt(t) {
555
555
  return (e = t ?? Un.Promise) !== null && e !== void 0 ? e : Promise;
556
556
  }
557
557
  function Gn(t) {
558
- return t && F(t.next) && F(t.error) && F(t.complete);
558
+ return t && B(t.next) && B(t.error) && B(t.complete);
559
559
  }
560
560
  function jn(t) {
561
561
  return t && t instanceof ht || Gn(t) && en(t);
562
562
  }
563
563
  function zn(t) {
564
- return F(t == null ? void 0 : t.lift);
564
+ return B(t == null ? void 0 : t.lift);
565
565
  }
566
566
  function de(t) {
567
567
  return function(e) {
@@ -580,7 +580,7 @@ function fe(t, e, n, r, i) {
580
580
  return new Yn(t, e, n, r, i);
581
581
  }
582
582
  var Yn = function(t) {
583
- Me(e, t);
583
+ Ie(e, t);
584
584
  function e(n, r, i, o, s, a) {
585
585
  var c = t.call(this, n) || this;
586
586
  return c.onFinalize = s, c.shouldUnsubscribe = a, c._next = r ? function(u) {
@@ -619,7 +619,7 @@ var Yn = function(t) {
619
619
  t(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
620
620
  };
621
621
  }), ge = function(t) {
622
- Me(e, t);
622
+ Ie(e, t);
623
623
  function e() {
624
624
  var n = t.call(this) || this;
625
625
  return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
@@ -637,7 +637,7 @@ var Yn = function(t) {
637
637
  if (r._throwIfClosed(), !r.isStopped) {
638
638
  r.currentObservers || (r.currentObservers = Array.from(r.observers));
639
639
  try {
640
- for (var s = ye(r.currentObservers), a = s.next(); !a.done; a = s.next()) {
640
+ for (var s = Ce(r.currentObservers), a = s.next(); !a.done; a = s.next()) {
641
641
  var c = a.value;
642
642
  c.next(n);
643
643
  }
@@ -685,8 +685,8 @@ var Yn = function(t) {
685
685
  return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
686
686
  }, e.prototype._innerSubscribe = function(n) {
687
687
  var r = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
688
- return o || s ? Jt : (this.currentObservers = null, a.push(n), new qe(function() {
689
- r.currentObservers = null, rt(a, n);
688
+ return o || s ? Jt : (this.currentObservers = null, a.push(n), new We(function() {
689
+ r.currentObservers = null, it(a, n);
690
690
  }));
691
691
  }, e.prototype._checkFinalizedStatuses = function(n) {
692
692
  var r = this, i = r.hasError, o = r.thrownError, s = r.isStopped;
@@ -698,7 +698,7 @@ var Yn = function(t) {
698
698
  return new It(n, r);
699
699
  }, e;
700
700
  }(j), It = function(t) {
701
- Me(e, t);
701
+ Ie(e, t);
702
702
  function e(n, r) {
703
703
  var i = t.call(this) || this;
704
704
  return i.destination = n, i.source = r, i;
@@ -720,13 +720,13 @@ var Yn = function(t) {
720
720
  return t.complete();
721
721
  });
722
722
  function er(t) {
723
- return t && F(t.schedule);
723
+ return t && B(t.schedule);
724
724
  }
725
725
  function nn(t) {
726
726
  return t[t.length - 1];
727
727
  }
728
728
  function tr(t) {
729
- return F(nn(t)) ? t.pop() : void 0;
729
+ return B(nn(t)) ? t.pop() : void 0;
730
730
  }
731
731
  function nr(t) {
732
732
  return er(nn(t)) ? t.pop() : void 0;
@@ -735,13 +735,13 @@ var rn = function(t) {
735
735
  return t && typeof t.length == "number" && typeof t != "function";
736
736
  };
737
737
  function on(t) {
738
- return F(t == null ? void 0 : t.then);
738
+ return B(t == null ? void 0 : t.then);
739
739
  }
740
740
  function sn(t) {
741
- return F(t[mt]);
741
+ return B(t[mt]);
742
742
  }
743
743
  function an(t) {
744
- return Symbol.asyncIterator && F(t == null ? void 0 : t[Symbol.asyncIterator]);
744
+ return Symbol.asyncIterator && B(t == null ? void 0 : t[Symbol.asyncIterator]);
745
745
  }
746
746
  function un(t) {
747
747
  return new TypeError("You provided " + (t !== null && typeof t == "object" ? "an invalid object" : "'" + t + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
@@ -751,7 +751,7 @@ function rr() {
751
751
  }
752
752
  var cn = rr();
753
753
  function ln(t) {
754
- return F(t == null ? void 0 : t[cn]);
754
+ return B(t == null ? void 0 : t[cn]);
755
755
  }
756
756
  function dn(t) {
757
757
  return Hn(this, arguments, function() {
@@ -763,13 +763,13 @@ function dn(t) {
763
763
  case 1:
764
764
  s.trys.push([1, , 9, 10]), s.label = 2;
765
765
  case 2:
766
- return [4, Te(n.read())];
766
+ return [4, ye(n.read())];
767
767
  case 3:
768
- return r = s.sent(), i = r.value, o = r.done, o ? [4, Te(void 0)] : [3, 5];
768
+ return r = s.sent(), i = r.value, o = r.done, o ? [4, ye(void 0)] : [3, 5];
769
769
  case 4:
770
770
  return [2, s.sent()];
771
771
  case 5:
772
- return [4, Te(i)];
772
+ return [4, ye(i)];
773
773
  case 6:
774
774
  return [4, s.sent()];
775
775
  case 7:
@@ -785,9 +785,9 @@ function dn(t) {
785
785
  });
786
786
  }
787
787
  function fn(t) {
788
- return F(t == null ? void 0 : t.getReader);
788
+ return B(t == null ? void 0 : t.getReader);
789
789
  }
790
- function Xe(t) {
790
+ function Ge(t) {
791
791
  if (t instanceof j)
792
792
  return t;
793
793
  if (t != null) {
@@ -809,7 +809,7 @@ function Xe(t) {
809
809
  function ir(t) {
810
810
  return new j(function(e) {
811
811
  var n = t[mt]();
812
- if (F(n.subscribe))
812
+ if (B(n.subscribe))
813
813
  return n.subscribe(e);
814
814
  throw new TypeError("Provided object does not correctly implement Symbol.observable");
815
815
  });
@@ -834,7 +834,7 @@ function ar(t) {
834
834
  return new j(function(e) {
835
835
  var n, r;
836
836
  try {
837
- for (var i = ye(t), o = i.next(); !o.done; o = i.next()) {
837
+ for (var i = Ce(t), o = i.next(); !o.done; o = i.next()) {
838
838
  var s = o.value;
839
839
  if (e.next(s), e.closed)
840
840
  return;
@@ -932,10 +932,10 @@ function pn(t, e) {
932
932
  });
933
933
  }
934
934
  function lr(t, e) {
935
- return Xe(t).pipe(pn(e), mn(e));
935
+ return Ge(t).pipe(pn(e), mn(e));
936
936
  }
937
937
  function dr(t, e) {
938
- return Xe(t).pipe(pn(e), mn(e));
938
+ return Ge(t).pipe(pn(e), mn(e));
939
939
  }
940
940
  function fr(t, e) {
941
941
  return new j(function(n) {
@@ -960,7 +960,7 @@ function hr(t, e) {
960
960
  s ? n.complete() : n.next(o);
961
961
  }, 0, !0);
962
962
  }), function() {
963
- return F(r == null ? void 0 : r.return) && r.return();
963
+ return B(r == null ? void 0 : r.return) && r.return();
964
964
  };
965
965
  });
966
966
  }
@@ -999,9 +999,9 @@ function pr(t, e) {
999
999
  throw un(t);
1000
1000
  }
1001
1001
  function vn(t, e) {
1002
- return e ? pr(t, e) : Xe(t);
1002
+ return e ? pr(t, e) : Ge(t);
1003
1003
  }
1004
- var wn = ft(function(t) {
1004
+ var bn = ft(function(t) {
1005
1005
  return function() {
1006
1006
  t(this), this.name = "EmptyError", this.message = "no elements in sequence";
1007
1007
  };
@@ -1015,12 +1015,12 @@ function gr(t, e) {
1015
1015
  });
1016
1016
  }
1017
1017
  var vr = Array.isArray;
1018
- function wr(t, e) {
1019
- return vr(e) ? t.apply(void 0, Pe([], He(e))) : t(e);
1018
+ function br(t, e) {
1019
+ return vr(e) ? t.apply(void 0, Ue([], Pe(e))) : t(e);
1020
1020
  }
1021
- function br(t) {
1021
+ function wr(t) {
1022
1022
  return gr(function(e) {
1023
- return wr(t, e);
1023
+ return br(t, e);
1024
1024
  });
1025
1025
  }
1026
1026
  var Sr = Array.isArray, Er = Object.getPrototypeOf, Tr = Object.prototype, yr = Object.keys;
@@ -1057,11 +1057,11 @@ function xr() {
1057
1057
  return vn([], n);
1058
1058
  var a = new j(Mr(o, n, s ? function(c) {
1059
1059
  return Ar(s, c);
1060
- } : We));
1061
- return r ? a.pipe(br(r)) : a;
1060
+ } : Xe));
1061
+ return r ? a.pipe(wr(r)) : a;
1062
1062
  }
1063
1063
  function Mr(t, e, n) {
1064
- return n === void 0 && (n = We), function(r) {
1064
+ return n === void 0 && (n = Xe), function(r) {
1065
1065
  _t(e, function() {
1066
1066
  for (var i = t.length, o = new Array(i), s = i, a = i, c = function(l) {
1067
1067
  _t(e, function() {
@@ -1119,21 +1119,21 @@ function Nr(t) {
1119
1119
  });
1120
1120
  }
1121
1121
  function kr() {
1122
- return new wn();
1122
+ return new bn();
1123
1123
  }
1124
1124
  function Ee(t, e) {
1125
1125
  var n = arguments.length >= 2;
1126
1126
  return function(r) {
1127
- return r.pipe(We, Or(1), n ? _r(e) : Nr(function() {
1128
- return new wn();
1127
+ return r.pipe(Xe, Or(1), n ? _r(e) : Nr(function() {
1128
+ return new bn();
1129
1129
  }));
1130
1130
  };
1131
1131
  }
1132
1132
  function Z(t) {
1133
1133
  return de(function(e, n) {
1134
- Xe(t).subscribe(fe(n, function() {
1134
+ Ge(t).subscribe(fe(n, function() {
1135
1135
  return n.complete();
1136
- }, it)), !n.closed && e.subscribe(n);
1136
+ }, ot)), !n.closed && e.subscribe(n);
1137
1137
  });
1138
1138
  }
1139
1139
  class Rr {
@@ -1182,7 +1182,7 @@ class Rr {
1182
1182
  return ["INPUT", "TEXTAREA", "OMAKASE-MARKER-LIST"].includes(n.tagName.toUpperCase()) ? !1 : e.code === "Equal" && !e.shiftKey && !e.ctrlKey && !e.metaKey ? (this.actionZoomIn && this.actionZoomIn(), !0) : e.code === "Minus" && !e.shiftKey && !e.ctrlKey && !e.metaKey ? (this.actionZoomOut && this.actionZoomOut(), !0) : e.code === "Digit0" && !e.shiftKey && !e.ctrlKey && !e.metaKey ? (this.actionResetZoom && this.actionResetZoom(), !0) : e.code === "KeyE" && !e.ctrlKey && !e.metaKey ? (e.shiftKey ? this.actionToggleNextAudioTrack && this.actionToggleNextAudioTrack() : this.actionTogglePreviousAudioTrack && this.actionTogglePreviousAudioTrack(), !0) : e.code === "Quote" && !e.shiftKey && !e.ctrlKey && !e.metaKey ? (this.actionToggleCti && this.actionToggleCti(), !0) : !1;
1183
1183
  }
1184
1184
  }
1185
- const no = b.memo(
1185
+ const no = w.memo(
1186
1186
  ({
1187
1187
  omakasePlayer: t,
1188
1188
  onTimelineCreatedCallback: e,
@@ -1231,9 +1231,9 @@ const no = b.memo(
1231
1231
  window.removeEventListener("keydown", s);
1232
1232
  };
1233
1233
  }
1234
- }, [t]), /* @__PURE__ */ b.createElement("div", { id: n.timelineHTMLElementId }))
1234
+ }, [t]), /* @__PURE__ */ w.createElement("div", { id: n.timelineHTMLElementId }))
1235
1235
  );
1236
- class bn {
1236
+ class wn {
1237
1237
  static get window() {
1238
1238
  return window;
1239
1239
  }
@@ -1263,7 +1263,7 @@ class bn {
1263
1263
  this.window.open(e, n);
1264
1264
  }
1265
1265
  }
1266
- const Ae = [0.25, 0.5, 0.75, 1, 2, 4, 8];
1266
+ const xe = [0.25, 0.5, 0.75, 1, 2, 4, 8];
1267
1267
  class Ot {
1268
1268
  static getKeyboardShortcutsHelpMenuGroup() {
1269
1269
  let e = (...o) => o.join(" + "), n = "shift".toUpperCase(), r = "ctrl".toUpperCase();
@@ -1334,7 +1334,7 @@ class Ot {
1334
1334
  };
1335
1335
  }
1336
1336
  static handleKeyboardEvent(e, n) {
1337
- const r = e.target, i = ["INPUT", "TEXTAREA", "OMAKASE-MARKER-LIST"], o = bn.userAgent;
1337
+ const r = e.target, i = ["INPUT", "TEXTAREA", "OMAKASE-MARKER-LIST"], o = wn.userAgent;
1338
1338
  if (i.includes(r.tagName.toUpperCase()))
1339
1339
  return !1;
1340
1340
  if (n && n.video) {
@@ -1350,11 +1350,11 @@ class Ot {
1350
1350
  return n.subtitles.toggleShowHideActiveTrack(), !0;
1351
1351
  if (e.code === "KeyK" && !e.ctrlKey && !e.shiftKey && !e.metaKey && (n.video.setPlaybackRate(1), n.video.pause()), e.code === "KeyL" && !e.ctrlKey && !e.metaKey) {
1352
1352
  let s = e.shiftKey ? 1 : -1;
1353
- const a = Ae.indexOf(
1353
+ const a = xe.indexOf(
1354
1354
  n.video.getPlaybackRate()
1355
1355
  ) + s;
1356
1356
  let c;
1357
- return a < 0 ? c = Ae.at(0) : a >= Ae.length ? c = Ae.at(-1) : c = Ae.at(a), n.video.setPlaybackRate(c), n.video.isPaused() && n.video.play(), !0;
1357
+ return a < 0 ? c = xe.at(0) : a >= xe.length ? c = xe.at(-1) : c = xe.at(a), n.video.setPlaybackRate(c), n.video.isPaused() && n.video.play(), !0;
1358
1358
  }
1359
1359
  if (n.video.isVideoLoaded()) {
1360
1360
  if (["ArrowLeft", "ArrowRight"].includes(e.key) && !e.metaKey && !e.altKey) {
@@ -1372,7 +1372,7 @@ class Ot {
1372
1372
  return !1;
1373
1373
  }
1374
1374
  }
1375
- const Dr = b.memo(function({
1375
+ const Dr = w.memo(function({
1376
1376
  videoUrl: e,
1377
1377
  config: n,
1378
1378
  videoLoadOptions: r,
@@ -1381,7 +1381,7 @@ const Dr = b.memo(function({
1381
1381
  }) {
1382
1382
  return n && (n == null ? void 0 : n.playerHTMLElementId) === void 0 && (n.playerHTMLElementId = "omakase-player"), Y(() => {
1383
1383
  var c, u;
1384
- let s = new Bn(n);
1384
+ let s = new Fn(n);
1385
1385
  const a = (l) => {
1386
1386
  Ot.handleKeyboardEvent(
1387
1387
  l,
@@ -1397,8 +1397,8 @@ const Dr = b.memo(function({
1397
1397
  }), () => {
1398
1398
  (o === void 0 || o) && window.removeEventListener("keydown", a);
1399
1399
  };
1400
- }, [e]), /* @__PURE__ */ b.createElement("div", { id: n.playerHTMLElementId });
1401
- }), Vr = ({ width: t, height: e }) => /* @__PURE__ */ b.createElement(
1400
+ }, [e]), /* @__PURE__ */ w.createElement("div", { id: n.playerHTMLElementId });
1401
+ }), Vr = ({ width: t, height: e }) => /* @__PURE__ */ w.createElement(
1402
1402
  "svg",
1403
1403
  {
1404
1404
  width: t ?? 24,
@@ -1407,21 +1407,21 @@ const Dr = b.memo(function({
1407
1407
  fill: "none",
1408
1408
  xmlns: "http://www.w3.org/2000/svg"
1409
1409
  },
1410
- /* @__PURE__ */ b.createElement(
1410
+ /* @__PURE__ */ w.createElement(
1411
1411
  "path",
1412
1412
  {
1413
1413
  d: "M10.5675 21C10.2375 21 9.9675 20.73 9.9675 20.4V16.7925L5.6325 12.3675L9.9675 8.235V3.6C9.9675 3.27 10.2375 3 10.5675 3C10.8975 3 11.1675 3.27 11.1675 3.6V8.7525L7.3425 12.3975L11.1675 16.305V20.4C11.1675 20.73 10.8975 21 10.5675 21Z",
1414
1414
  fill: "#CACFEA"
1415
1415
  }
1416
1416
  ),
1417
- /* @__PURE__ */ b.createElement(
1417
+ /* @__PURE__ */ w.createElement(
1418
1418
  "path",
1419
1419
  {
1420
1420
  d: "M17.7675 17.145C17.61 17.145 17.46 17.085 17.34 16.965L12.8325 12.3675L17.355 8.0625C17.595 7.8375 17.9775 7.845 18.2025 8.085C18.4275 8.325 18.42 8.7075 18.18 8.9325L14.5425 12.3975L18.195 16.125C18.4275 16.365 18.42 16.74 18.1875 16.9725C18.075 17.085 17.9175 17.145 17.7675 17.145Z",
1421
1421
  fill: "#CACFEA"
1422
1422
  }
1423
1423
  )
1424
- ), Br = ({ width: t, height: e }) => /* @__PURE__ */ b.createElement(
1424
+ ), Fr = ({ width: t, height: e }) => /* @__PURE__ */ w.createElement(
1425
1425
  "svg",
1426
1426
  {
1427
1427
  width: t ?? 24,
@@ -1430,21 +1430,21 @@ const Dr = b.memo(function({
1430
1430
  fill: "none",
1431
1431
  xmlns: "http://www.w3.org/2000/svg"
1432
1432
  },
1433
- /* @__PURE__ */ b.createElement(
1433
+ /* @__PURE__ */ w.createElement(
1434
1434
  "path",
1435
1435
  {
1436
1436
  d: "M13.4325 21C13.7625 21 14.0325 20.73 14.0325 20.4V16.7925L18.3675 12.3675L14.0325 8.235V3.6C14.0325 3.27 13.7625 3 13.4325 3C13.1025 3 12.8325 3.27 12.8325 3.6V8.7525L16.6575 12.3975L12.8325 16.305V20.4C12.8325 20.73 13.1025 21 13.4325 21Z",
1437
1437
  fill: "#CACFEA"
1438
1438
  }
1439
1439
  ),
1440
- /* @__PURE__ */ b.createElement(
1440
+ /* @__PURE__ */ w.createElement(
1441
1441
  "path",
1442
1442
  {
1443
1443
  d: "M6.2325 17.145C6.39 17.145 6.54 17.085 6.66 16.965L11.1675 12.3675L6.645 8.0625C6.405 7.8375 6.0225 7.845 5.7975 8.085C5.5725 8.325 5.58 8.7075 5.82 8.9325L9.4575 12.3975L5.805 16.125C5.5725 16.365 5.58 16.74 5.8125 16.9725C5.925 17.085 6.0825 17.145 6.2325 17.145Z",
1444
1444
  fill: "#CACFEA"
1445
1445
  }
1446
1446
  )
1447
- ), Fr = ({ width: t, height: e }) => /* @__PURE__ */ b.createElement(
1447
+ ), Br = ({ width: t, height: e }) => /* @__PURE__ */ w.createElement(
1448
1448
  "svg",
1449
1449
  {
1450
1450
  width: t ?? 24,
@@ -1453,14 +1453,14 @@ const Dr = b.memo(function({
1453
1453
  fill: "none",
1454
1454
  xmlns: "http://www.w3.org/2000/svg"
1455
1455
  },
1456
- /* @__PURE__ */ b.createElement(
1456
+ /* @__PURE__ */ w.createElement(
1457
1457
  "path",
1458
1458
  {
1459
1459
  d: "M14.1675 21C13.8375 21 13.5675 20.73 13.5675 20.4V16.7925L9.2325 12.3675L13.5675 8.235V3.6C13.5675 3.27 13.8375 3 14.1675 3C14.4975 3 14.7675 3.27 14.7675 3.6V8.7525L10.9425 12.3975L14.7675 16.305V20.4C14.7675 20.73 14.4975 21 14.1675 21Z",
1460
1460
  fill: "#CACFEA"
1461
1461
  }
1462
1462
  )
1463
- ), Kr = ({ width: t, height: e }) => /* @__PURE__ */ b.createElement(
1463
+ ), Kr = ({ width: t, height: e }) => /* @__PURE__ */ w.createElement(
1464
1464
  "svg",
1465
1465
  {
1466
1466
  width: t ?? 24,
@@ -1469,14 +1469,14 @@ const Dr = b.memo(function({
1469
1469
  fill: "none",
1470
1470
  xmlns: "http://www.w3.org/2000/svg"
1471
1471
  },
1472
- /* @__PURE__ */ b.createElement(
1472
+ /* @__PURE__ */ w.createElement(
1473
1473
  "path",
1474
1474
  {
1475
1475
  d: "M9.8325 21C10.1625 21 10.4325 20.73 10.4325 20.4V16.7925L14.7675 12.3675L10.4325 8.235V3.6C10.4325 3.27 10.1625 3 9.8325 3C9.5025 3 9.2325 3.27 9.2325 3.6V8.7525L13.0575 12.3975L9.2325 16.305V20.4C9.2325 20.73 9.5025 21 9.8325 21Z",
1476
1476
  fill: "#CACFEA"
1477
1477
  }
1478
1478
  )
1479
- ), Hr = ({ width: t, height: e }) => /* @__PURE__ */ b.createElement(
1479
+ ), Hr = ({ width: t, height: e }) => /* @__PURE__ */ w.createElement(
1480
1480
  "svg",
1481
1481
  {
1482
1482
  width: t ?? 24,
@@ -1485,15 +1485,15 @@ const Dr = b.memo(function({
1485
1485
  fill: "none",
1486
1486
  xmlns: "http://www.w3.org/2000/svg"
1487
1487
  },
1488
- /* @__PURE__ */ b.createElement("path", { d: "M11.3475 3H5.775V21L11.3475 17.0475V3Z", fill: "#CACFEA" }),
1489
- /* @__PURE__ */ b.createElement(
1488
+ /* @__PURE__ */ w.createElement("path", { d: "M11.3475 3H5.775V21L11.3475 17.0475V3Z", fill: "#CACFEA" }),
1489
+ /* @__PURE__ */ w.createElement(
1490
1490
  "path",
1491
1491
  {
1492
1492
  d: "M18.225 21L12.6525 17.0475V3H18.225V21ZM13.7775 16.47L17.1 18.825V4.125H13.7775V16.47Z",
1493
1493
  fill: "#CACFEA"
1494
1494
  }
1495
1495
  )
1496
- ), Pr = ({ width: t, height: e }) => /* @__PURE__ */ b.createElement(
1496
+ ), Pr = ({ width: t, height: e }) => /* @__PURE__ */ w.createElement(
1497
1497
  "svg",
1498
1498
  {
1499
1499
  width: t ?? 24,
@@ -1502,21 +1502,21 @@ const Dr = b.memo(function({
1502
1502
  fill: "none",
1503
1503
  xmlns: "http://www.w3.org/2000/svg"
1504
1504
  },
1505
- /* @__PURE__ */ b.createElement(
1505
+ /* @__PURE__ */ w.createElement(
1506
1506
  "path",
1507
1507
  {
1508
1508
  d: "M4.6875 3V21L8.0625 17.0475L11.4375 21V3H4.6875Z",
1509
1509
  fill: "#CACFEA"
1510
1510
  }
1511
1511
  ),
1512
- /* @__PURE__ */ b.createElement(
1512
+ /* @__PURE__ */ w.createElement(
1513
1513
  "path",
1514
1514
  {
1515
1515
  d: "M12.5625 3V21L15.9375 17.0475L19.3125 21V3H12.5625Z",
1516
1516
  fill: "#CACFEA"
1517
1517
  }
1518
1518
  )
1519
- ), Ur = ({ width: t, height: e }) => /* @__PURE__ */ b.createElement(
1519
+ ), Ur = ({ width: t, height: e }) => /* @__PURE__ */ w.createElement(
1520
1520
  "svg",
1521
1521
  {
1522
1522
  width: t ?? 24,
@@ -1525,14 +1525,14 @@ const Dr = b.memo(function({
1525
1525
  fill: "none",
1526
1526
  xmlns: "http://www.w3.org/2000/svg"
1527
1527
  },
1528
- /* @__PURE__ */ b.createElement(
1528
+ /* @__PURE__ */ w.createElement(
1529
1529
  "path",
1530
1530
  {
1531
1531
  d: "M6.39001 3V21L12 17.0175L17.61 21V3H6.38251H6.39001ZM16.44 3.84L7.23001 18.7125V3.84H16.44ZM12 15.9975L8.25751 18.6525L16.77 4.89V19.3725L12 15.9825V15.9975Z",
1532
1532
  fill: "#CACFEA"
1533
1533
  }
1534
1534
  )
1535
- ), $r = ({ width: t, height: e }) => /* @__PURE__ */ b.createElement(
1535
+ ), $r = ({ width: t, height: e }) => /* @__PURE__ */ w.createElement(
1536
1536
  "svg",
1537
1537
  {
1538
1538
  width: t ?? 24,
@@ -1541,21 +1541,21 @@ const Dr = b.memo(function({
1541
1541
  fill: "none",
1542
1542
  xmlns: "http://www.w3.org/2000/svg"
1543
1543
  },
1544
- /* @__PURE__ */ b.createElement(
1544
+ /* @__PURE__ */ w.createElement(
1545
1545
  "path",
1546
1546
  {
1547
1547
  d: "M12.3075 8.0175L14.4525 5.8725C14.6175 5.7075 14.6175 5.43 14.4525 5.265L12.3 3.12C12.135 2.955 11.8575 2.955 11.6925 3.12C11.5275 3.285 11.5275 3.5625 11.6925 3.7275L13.1025 5.1375H6.64499C5.22749 5.1375 4.07249 6.2925 4.07249 7.71V16.2825C4.07249 17.7 5.22749 18.855 6.64499 18.855C6.87749 18.855 7.07249 18.66 7.07249 18.4275C7.07249 18.195 6.87749 18 6.64499 18C5.69249 18 4.93499 17.2275 4.93499 16.29V7.7175C4.93499 6.765 5.70749 6.0075 6.64499 6.0075H13.11L11.7 7.4175C11.535 7.5825 11.535 7.86 11.7 8.025C11.865 8.19 12.1425 8.19 12.3075 8.025V8.0175Z",
1548
1548
  fill: "#CACFEA"
1549
1549
  }
1550
1550
  ),
1551
- /* @__PURE__ */ b.createElement(
1551
+ /* @__PURE__ */ w.createElement(
1552
1552
  "path",
1553
1553
  {
1554
1554
  d: "M17.355 18.8625C18.7725 18.8625 19.9275 17.7075 19.9275 16.29V7.7175C19.9275 6.3 18.7725 5.145 17.355 5.145C17.1225 5.145 16.9275 5.34 16.9275 5.5725C16.9275 5.805 17.1225 6 17.355 6C18.3075 6 19.065 6.7725 19.065 7.71V16.2825C19.065 17.235 18.2925 17.9925 17.355 17.9925H10.89L12.3075 16.5825C12.3825 16.5075 12.435 16.395 12.435 16.2825C12.435 16.17 12.3975 16.0575 12.3075 15.9825C12.15 15.8175 11.8575 15.825 11.7 15.9825L9.52501 18.1575V18.18C9.45751 18.255 9.42751 18.345 9.42751 18.435C9.42751 18.555 9.46501 18.66 9.55501 18.735L11.7 20.88C11.8575 21.045 12.15 21.045 12.3075 20.88C12.4725 20.715 12.4725 20.4375 12.3075 20.2725L10.89 18.8625H17.355Z",
1555
1555
  fill: "#CACFEA"
1556
1556
  }
1557
1557
  )
1558
- ), Zr = ({ width: t, height: e }) => /* @__PURE__ */ b.createElement(
1558
+ ), Zr = ({ width: t, height: e }) => /* @__PURE__ */ w.createElement(
1559
1559
  "svg",
1560
1560
  {
1561
1561
  width: t ?? 24,
@@ -1564,20 +1564,20 @@ const Dr = b.memo(function({
1564
1564
  fill: "none",
1565
1565
  xmlns: "http://www.w3.org/2000/svg"
1566
1566
  },
1567
- /* @__PURE__ */ b.createElement("g", { clipPath: "url(#clip0_3377_237)" }, /* @__PURE__ */ b.createElement(
1567
+ /* @__PURE__ */ w.createElement("g", { clipPath: "url(#clip0_3377_237)" }, /* @__PURE__ */ w.createElement(
1568
1568
  "path",
1569
1569
  {
1570
1570
  d: "M13.02 19.95C17.42 19.95 21 16.37 21 11.97C21 7.57 17.42 4 13.02 4C8.88 4 5.39 7.24 5.08 11.37L5.02 12.14L3.56 10.68C3.49 10.61 3.41 10.58 3.33 10.58C3.25 10.58 3.17 10.61 3.1 10.68C3.03 10.75 3 10.83 3 10.92C3 11 3.03 11.08 3.1 11.15L5.22 13.27C5.35 13.4 5.55 13.43 5.65 13.3L7.8 11.15C7.87 11.08 7.9 11 7.9 10.92C7.9 10.84 7.86 10.76 7.8 10.69C7.73 10.62 7.65 10.59 7.57 10.59C7.49 10.59 7.41 10.62 7.34 10.69L5.9 12.13L6.03 11.11C6.45 7.57 9.46 4.91 13.02 4.91C16.91 4.91 20.08 8.08 20.08 11.97C20.08 15.86 16.91 19.03 13.02 19.03C12.77 19.03 12.56 19.24 12.56 19.49C12.56 19.74 12.77 19.95 13.02 19.95Z",
1571
1571
  fill: "#CACFEA"
1572
1572
  }
1573
- ), /* @__PURE__ */ b.createElement(
1573
+ ), /* @__PURE__ */ w.createElement(
1574
1574
  "path",
1575
1575
  {
1576
1576
  d: "M14.95 13.19C14.95 13.72 14.75 14.14 14.36 14.45C13.97 14.76 13.43 14.91 12.75 14.91C12.16 14.91 11.69 14.81 11.32 14.62V13.53C11.7 13.81 12.14 13.95 12.65 13.95C12.98 13.95 13.23 13.88 13.41 13.74C13.59 13.6 13.67 13.41 13.67 13.17C13.67 12.93 13.56 12.72 13.34 12.58C13.12 12.44 12.82 12.37 12.43 12.37H11.92V11.41H12.39C13.13 11.41 13.5 11.16 13.5 10.67C13.5 10.21 13.22 9.98 12.65 9.98C12.26 9.98 11.89 10.1 11.54 10.35V9.33C11.93 9.13 12.4 9.03 12.94 9.03C13.48 9.03 13.94 9.16 14.28 9.41C14.62 9.66 14.79 10.01 14.79 10.44C14.79 11.19 14.41 11.65 13.66 11.84V11.86C14.06 11.91 14.37 12.05 14.61 12.29C14.85 12.53 14.96 12.83 14.96 13.19H14.95Z",
1577
1577
  fill: "#CACFEA"
1578
1578
  }
1579
1579
  )),
1580
- /* @__PURE__ */ b.createElement("defs", null, /* @__PURE__ */ b.createElement("clipPath", { id: "clip0_3377_237" }, /* @__PURE__ */ b.createElement(
1580
+ /* @__PURE__ */ w.createElement("defs", null, /* @__PURE__ */ w.createElement("clipPath", { id: "clip0_3377_237" }, /* @__PURE__ */ w.createElement(
1581
1581
  "rect",
1582
1582
  {
1583
1583
  width: "18",
@@ -1586,7 +1586,7 @@ const Dr = b.memo(function({
1586
1586
  transform: "translate(3 4)"
1587
1587
  }
1588
1588
  )))
1589
- ), qr = ({ width: t, height: e }) => /* @__PURE__ */ b.createElement(
1589
+ ), qr = ({ width: t, height: e }) => /* @__PURE__ */ w.createElement(
1590
1590
  "svg",
1591
1591
  {
1592
1592
  width: t ?? 24,
@@ -1595,20 +1595,20 @@ const Dr = b.memo(function({
1595
1595
  fill: "none",
1596
1596
  xmlns: "http://www.w3.org/2000/svg"
1597
1597
  },
1598
- /* @__PURE__ */ b.createElement("g", { clipPath: "url(#clip0_3377_260)" }, /* @__PURE__ */ b.createElement(
1598
+ /* @__PURE__ */ w.createElement("g", { clipPath: "url(#clip0_3377_260)" }, /* @__PURE__ */ w.createElement(
1599
1599
  "path",
1600
1600
  {
1601
1601
  d: "M10.98 19.95C6.58 19.95 3 16.37 3 11.98C3 7.58 6.58 4 10.98 4C15.12 4 18.61 7.24 18.93 11.37L18.99 12.14L20.45 10.68C20.52 10.61 20.6 10.58 20.68 10.58C20.76 10.58 20.84 10.61 20.91 10.68C20.98 10.75 21.01 10.83 21.01 10.91C21.01 10.99 20.98 11.07 20.91 11.14L18.79 13.26C18.66 13.39 18.46 13.42 18.36 13.29L16.21 11.14C16.14 11.07 16.11 10.99 16.11 10.91C16.11 10.83 16.15 10.75 16.21 10.68C16.28 10.61 16.36 10.58 16.44 10.58C16.52 10.58 16.6 10.61 16.67 10.68L18.11 12.12L17.98 11.1C17.55 7.57 14.54 4.91 10.98 4.91C7.09 4.91 3.92 8.08 3.92 11.97C3.92 15.86 7.09 19.03 10.98 19.03C11.23 19.03 11.44 19.24 11.44 19.49C11.44 19.74 11.23 19.95 10.98 19.95Z",
1602
1602
  fill: "#CACFEA"
1603
1603
  }
1604
- ), /* @__PURE__ */ b.createElement(
1604
+ ), /* @__PURE__ */ w.createElement(
1605
1605
  "path",
1606
1606
  {
1607
1607
  d: "M12.91 13.19C12.91 13.72 12.71 14.14 12.32 14.45C11.93 14.76 11.39 14.91 10.71 14.91C10.12 14.91 9.65 14.81 9.28 14.62V13.53C9.66 13.81 10.1 13.95 10.61 13.95C10.94 13.95 11.19 13.88 11.37 13.74C11.55 13.6 11.63 13.41 11.63 13.17C11.63 12.93 11.52 12.72 11.3 12.58C11.08 12.44 10.78 12.37 10.39 12.37H9.88V11.41H10.35C11.09 11.41 11.46 11.16 11.46 10.67C11.46 10.21 11.18 9.98 10.61 9.98C10.22 9.98 9.85 10.1 9.5 10.35V9.33C9.89 9.13 10.36 9.03 10.9 9.03C11.44 9.03 11.9 9.16 12.24 9.41C12.58 9.66 12.75 10.01 12.75 10.44C12.75 11.19 12.37 11.65 11.62 11.84V11.86C12.02 11.91 12.33 12.05 12.57 12.29C12.81 12.53 12.92 12.83 12.92 13.19H12.91Z",
1608
1608
  fill: "#CACFEA"
1609
1609
  }
1610
1610
  )),
1611
- /* @__PURE__ */ b.createElement("defs", null, /* @__PURE__ */ b.createElement("clipPath", { id: "clip0_3377_260" }, /* @__PURE__ */ b.createElement(
1611
+ /* @__PURE__ */ w.createElement("defs", null, /* @__PURE__ */ w.createElement("clipPath", { id: "clip0_3377_260" }, /* @__PURE__ */ w.createElement(
1612
1612
  "rect",
1613
1613
  {
1614
1614
  width: "18",
@@ -1624,7 +1624,7 @@ const Dr = b.memo(function({
1624
1624
  height: r,
1625
1625
  text: i,
1626
1626
  disabled: o
1627
- }) => /* @__PURE__ */ b.createElement("button", { disabled: o, onClick: e }, /* @__PURE__ */ b.createElement(t, { width: n, height: r }), " ", i), Wr = ({ width: t, height: e }) => /* @__PURE__ */ b.createElement(
1627
+ }) => /* @__PURE__ */ w.createElement("button", { disabled: o, onClick: e }, /* @__PURE__ */ w.createElement(t, { width: n, height: r }), " ", i), Wr = ({ width: t, height: e }) => /* @__PURE__ */ w.createElement(
1628
1628
  "svg",
1629
1629
  {
1630
1630
  width: t ?? 24,
@@ -1633,15 +1633,15 @@ const Dr = b.memo(function({
1633
1633
  fill: "none",
1634
1634
  xmlns: "http://www.w3.org/2000/svg"
1635
1635
  },
1636
- /* @__PURE__ */ b.createElement("path", { d: "M12.6525 17.0475L18.225 21V3H12.6525V17.0475Z", fill: "#CACFEA" }),
1637
- /* @__PURE__ */ b.createElement(
1636
+ /* @__PURE__ */ w.createElement("path", { d: "M12.6525 17.0475L18.225 21V3H12.6525V17.0475Z", fill: "#CACFEA" }),
1637
+ /* @__PURE__ */ w.createElement(
1638
1638
  "path",
1639
1639
  {
1640
1640
  d: "M5.775 3H11.3475V17.0475L5.775 21V3ZM10.2225 4.125H6.9V18.825L10.2225 16.47V4.125Z",
1641
1641
  fill: "#CACFEA"
1642
1642
  }
1643
1643
  )
1644
- ), Xr = ({ width: t, height: e }) => /* @__PURE__ */ b.createElement(
1644
+ ), Xr = ({ width: t, height: e }) => /* @__PURE__ */ w.createElement(
1645
1645
  "svg",
1646
1646
  {
1647
1647
  width: "14",
@@ -1650,8 +1650,8 @@ const Dr = b.memo(function({
1650
1650
  fill: "none",
1651
1651
  xmlns: "http://www.w3.org/2000/svg"
1652
1652
  },
1653
- /* @__PURE__ */ b.createElement("rect", { x: "0.5", y: "0.5", width: "13", height: "13", rx: "2.5", stroke: "#CACFEA" }),
1654
- /* @__PURE__ */ b.createElement(
1653
+ /* @__PURE__ */ w.createElement("rect", { x: "0.5", y: "0.5", width: "13", height: "13", rx: "2.5", stroke: "#CACFEA" }),
1654
+ /* @__PURE__ */ w.createElement(
1655
1655
  "path",
1656
1656
  {
1657
1657
  d: "M7.16667 6.33333V6.83333H7.66667H10.3333C10.4257 6.83333 10.5 6.90769 10.5 7C10.5 7.09231 10.4257 7.16667 10.3333 7.16667H7.66667H7.16667V7.66667V10.3333C7.16667 10.4257 7.09231 10.5 7 10.5C6.90769 10.5 6.83333 10.4257 6.83333 10.3333V7.66667V7.16667H6.33333H3.66667C3.57468 7.16667 3.5 7.09199 3.5 7C3.5 6.90801 3.57468 6.83333 3.66667 6.83333H6.33333H6.83333V6.33333V3.66667C6.83333 3.57468 6.90801 3.5 7 3.5C7.09199 3.5 7.16667 3.57468 7.16667 3.66667V6.33333Z",
@@ -1680,7 +1680,7 @@ class Gr {
1680
1680
  }
1681
1681
  getKeyboardShortcutsHelpMenuGroup() {
1682
1682
  let e = (...s) => s.join(" + "), n = "shift".toUpperCase();
1683
- const r = bn.platform;
1683
+ const r = wn.platform;
1684
1684
  let i = r === "windows" ? "win" : r === "linux" ? "super" : "cmd";
1685
1685
  return {
1686
1686
  name: "Segmentation function shortcuts",
@@ -1741,7 +1741,7 @@ class Gr {
1741
1741
  return ["INPUT", "TEXTAREA", "OMAKASE-MARKER-LIST"].includes(r.tagName.toUpperCase()) ? !1 : e.code === "KeyM" && !e.shiftKey && !e.ctrlKey && !e.metaKey ? (this.actionMarkerInOut && this.actionMarkerInOut(), !0) : e.code === "Period" && !e.shiftKey && !e.ctrlKey && !e.metaKey ? (this.actionMarkerSplit && this.actionMarkerSplit(), !0) : e.code === "KeyN" && !e.shiftKey && !e.ctrlKey && !e.metaKey ? (this.actionMarkerDelete && this.actionMarkerDelete(), !0) : e.code === "Slash" && !e.ctrlKey && !e.metaKey ? (e.shiftKey ? this.actionNextMarkerToggle && this.actionNextMarkerToggle() : this.actionPreviousMarkerToggle && this.actionPreviousMarkerToggle(), !0) : e.code === "KeyI" && !e.shiftKey && !e.ctrlKey && !e.metaKey ? (this.actionSetMarkerStartToPlayhead && this.actionSetMarkerStartToPlayhead(), !0) : e.code === "KeyO" && !e.shiftKey && !e.ctrlKey && !e.metaKey ? (this.actionSetMarkerEndToPlayhead && this.actionSetMarkerEndToPlayhead(), !0) : e.code === "BracketLeft" && !e.shiftKey && !e.ctrlKey && !e.metaKey ? (this.actionSetPlayheadToMarkerStart && this.actionSetPlayheadToMarkerStart(), !0) : e.code === "BracketRight" && !e.shiftKey && !e.ctrlKey && !e.metaKey ? (this.actionSetPlayheadToMarkerEnd && this.actionSetPlayheadToMarkerEnd(), !0) : e.code === "ArrowLeft" && !e.shiftKey && !e.ctrlKey && e.metaKey ? (this.actionRewind3SecondsAndPlayToCurrent && this.actionRewind3SecondsAndPlayToCurrent(), !0) : e.code === "ArrowRight" && !e.shiftKey && !e.ctrlKey && e.metaKey ? (this.actionPlay3SecondsAndRewindToCurrent && this.actionPlay3SecondsAndRewindToCurrent(), !0) : e.code === "KeyP" && !e.shiftKey && !e.ctrlKey && !e.metaKey ? (this.actionLoopActiveMarker && this.actionLoopActiveMarker(), !0) : !1;
1742
1742
  }
1743
1743
  }
1744
- const Ne = (t, e, n) => t.getMarkers().reduce((r, i) => {
1744
+ const ke = (t, e, n) => t.getMarkers().reduce((r, i) => {
1745
1745
  if (e.id === i.id)
1746
1746
  return r;
1747
1747
  if (i instanceof H && i.timeObservation.start != null && i.timeObservation.end != null) {
@@ -1751,7 +1751,7 @@ const Ne = (t, e, n) => t.getMarkers().reduce((r, i) => {
1751
1751
  }
1752
1752
  return r;
1753
1753
  }, !1);
1754
- function ke(t, e, n) {
1754
+ function Re(t, e, n) {
1755
1755
  if (!t || !(t instanceof H))
1756
1756
  return !0;
1757
1757
  const r = t.timeObservation.start, i = t.timeObservation.end;
@@ -1760,7 +1760,7 @@ function ke(t, e, n) {
1760
1760
  const o = n.video.calculateTimeToFrame(i), s = n.video.calculateTimeToFrame(r), a = n.video.getCurrentFrame();
1761
1761
  return e < r || o - a < 2 || a - s < 1;
1762
1762
  }
1763
- function Re(t) {
1763
+ function De(t) {
1764
1764
  return !(t.timeObservation.start == null || t.timeObservation.end == null);
1765
1765
  }
1766
1766
  const ro = ({
@@ -1776,16 +1776,16 @@ const ro = ({
1776
1776
  source: u,
1777
1777
  constants: l
1778
1778
  }) => {
1779
- const d = et(void 0), f = et(void 0), h = new ge(), g = et(!1), v = (p, w, C) => {
1780
- const O = w ?? e.video.getCurrentTime();
1781
- return p.getMarkers().reduce((I, W) => W instanceof H && W.timeObservation.start !== void 0 && W.timeObservation.end !== void 0 && W.id !== (C == null ? void 0 : C.id) ? I || O >= W.timeObservation.start && O <= W.timeObservation.end : I, !1);
1782
- }, y = (p) => {
1779
+ const d = tt(void 0), f = tt(void 0), h = new ge(), v = tt(!1), g = (p, b, y) => {
1780
+ const O = b ?? e.video.getCurrentTime();
1781
+ return p.getMarkers().reduce((I, W) => W instanceof H && W.timeObservation.start !== void 0 && W.timeObservation.end !== void 0 && W.id !== (y == null ? void 0 : y.id) ? I || O >= W.timeObservation.start && O <= W.timeObservation.end : I, !1);
1782
+ }, L = (p) => {
1783
1783
  if (M === void 0)
1784
1784
  return !0;
1785
- const w = M.timeObservation.start, C = p ?? e.video.getCurrentTime();
1786
- return !!(w == null || w >= C || Ne(u, M, C));
1787
- }, A = (p) => M !== void 0 || u === void 0 ? !0 : v(u, p, M), [D, x] = pe(void 0), [k, P] = pe(
1788
- ke(
1785
+ const b = M.timeObservation.start, y = p ?? e.video.getCurrentTime();
1786
+ return !!(b == null || b >= y || ke(u, M, y));
1787
+ }, A = (p) => M !== void 0 || u === void 0 ? !0 : g(u, p, M), [D, x] = pe(void 0), [k, P] = pe(
1788
+ Re(
1789
1789
  t,
1790
1790
  e.video.getCurrentTime(),
1791
1791
  e
@@ -1793,113 +1793,113 @@ const ro = ({
1793
1793
  ), [M, te] = pe(
1794
1794
  void 0
1795
1795
  ), [me, G] = pe(
1796
- y()
1797
- ), [be, K] = pe(
1796
+ L()
1797
+ ), [we, K] = pe(
1798
1798
  A()
1799
1799
  ), ie = (p) => {
1800
1800
  if (p === void 0 || u === void 0 || !(p instanceof H))
1801
1801
  return !0;
1802
- const w = Ne(
1802
+ const b = ke(
1803
1803
  u,
1804
1804
  p,
1805
1805
  e.video.getCurrentTime()
1806
1806
  );
1807
- if (w)
1808
- return w;
1807
+ if (b)
1808
+ return b;
1809
1809
  if (p instanceof H) {
1810
- const C = p.timeObservation.end;
1811
- if (C != null && e.video.getCurrentTime() >= C)
1810
+ const y = p.timeObservation.end;
1811
+ if (y != null && e.video.getCurrentTime() >= y)
1812
1812
  return !0;
1813
1813
  }
1814
1814
  return !1;
1815
1815
  }, oe = (p) => {
1816
1816
  if (p === void 0 || u === void 0 || !(p instanceof H))
1817
1817
  return !0;
1818
- const w = Ne(
1818
+ const b = ke(
1819
1819
  u,
1820
1820
  p,
1821
1821
  e.video.getCurrentTime()
1822
1822
  );
1823
- if (w)
1824
- return w;
1823
+ if (b)
1824
+ return b;
1825
1825
  if (p instanceof H) {
1826
1826
  if (p.timeObservation.end == null)
1827
1827
  return !0;
1828
- const C = p.timeObservation.start;
1829
- if (C != null && e.video.getCurrentTime() <= C)
1828
+ const y = p.timeObservation.start;
1829
+ if (y != null && e.video.getCurrentTime() <= y)
1830
1830
  return !0;
1831
1831
  }
1832
1832
  return !1;
1833
- }, [Se, V] = pe(ie(t)), [_, Ye] = pe(oe(t));
1833
+ }, [Se, V] = pe(ie(t)), [_, Qe] = pe(oe(t));
1834
1834
  Y(() => {
1835
- if (G(() => y()), K(() => A()), M && M !== t) {
1835
+ if (G(() => L()), K(() => A()), M && M !== t) {
1836
1836
  const p = i.find(
1837
- (w) => w.getMarker(M.id)
1837
+ (b) => b.getMarker(M.id)
1838
1838
  );
1839
1839
  p == null || p.removeMarker(M.id), te(void 0);
1840
1840
  }
1841
1841
  }, [t, M, i, te]), Y(() => () => Q(h), []), Y(() => {
1842
1842
  if (V(
1843
1843
  ie(t)
1844
- ), Ye(
1844
+ ), Qe(
1845
1845
  oe(t)
1846
1846
  ), t) {
1847
- const p = ke(
1847
+ const p = Re(
1848
1848
  t,
1849
1849
  e.video.getCurrentTime(),
1850
1850
  e
1851
1851
  );
1852
1852
  P(p);
1853
- const w = e.video.onVideoTimeChange$.pipe(Z(h)).subscribe({
1854
- next: (C) => {
1853
+ const b = e.video.onVideoTimeChange$.pipe(Z(h)).subscribe({
1854
+ next: (y) => {
1855
1855
  P(
1856
- (O) => ke(
1856
+ (O) => Re(
1857
1857
  t,
1858
- C.currentTime,
1858
+ y.currentTime,
1859
1859
  e
1860
1860
  )
1861
1861
  ), V(
1862
1862
  () => ie(t)
1863
- ), Ye(
1863
+ ), Qe(
1864
1864
  () => oe(t)
1865
1865
  );
1866
1866
  }
1867
1867
  });
1868
- return () => w.unsubscribe();
1868
+ return () => b.unsubscribe();
1869
1869
  }
1870
1870
  }, [t]), Y(() => {
1871
1871
  e.video.onSeeking$.pipe(Z(h)).subscribe({
1872
- next: (w) => {
1872
+ next: (b) => {
1873
1873
  G(
1874
- () => y(w.toTime)
1874
+ () => L(b.toTime)
1875
1875
  ), K(
1876
- () => A(w.toTime)
1876
+ () => A(b.toTime)
1877
1877
  );
1878
1878
  }
1879
1879
  });
1880
1880
  const p = e.video.onVideoTimeChange$.pipe(Z(h)).subscribe({
1881
- next: (w) => {
1882
- G(() => y()), K(() => A());
1881
+ next: (b) => {
1882
+ G(() => L()), K(() => A());
1883
1883
  }
1884
1884
  });
1885
1885
  return () => p.unsubscribe();
1886
1886
  }, [M, u]), Y(() => {
1887
- const p = i.map((w) => w.onMarkerUpdate$.pipe(Z(h)).subscribe({
1888
- next: (C) => {
1889
- (t == null ? void 0 : t.id) === C.marker.id && (P(
1890
- (O) => ke(
1887
+ const p = i.map((b) => b.onMarkerUpdate$.pipe(Z(h)).subscribe({
1888
+ next: (y) => {
1889
+ (t == null ? void 0 : t.id) === y.marker.id && (P(
1890
+ (O) => Re(
1891
1891
  t,
1892
1892
  e.video.getCurrentTime(),
1893
1893
  e
1894
1894
  )
1895
1895
  ), V(
1896
1896
  () => ie(t)
1897
- ), Ye(
1897
+ ), Qe(
1898
1898
  () => oe(t)
1899
1899
  ));
1900
1900
  }
1901
1901
  }));
1902
- return () => p.forEach((w) => w.unsubscribe());
1902
+ return () => p.forEach((b) => b.unsubscribe());
1903
1903
  }, [i, t]), Y(() => {
1904
1904
  D && (D.marker.style = {
1905
1905
  ...D.marker.style,
@@ -1909,10 +1909,10 @@ const ro = ({
1909
1909
  }, x(void 0));
1910
1910
  }, [t]), Y(() => {
1911
1911
  if (u) {
1912
- G(() => y()), K(() => A());
1912
+ G(() => L()), K(() => A());
1913
1913
  const p = u.onMarkerDelete$.pipe(Z(h)).subscribe({
1914
- next: (C) => {
1915
- const O = C.marker;
1914
+ next: (y) => {
1915
+ const O = y.marker;
1916
1916
  x((I) => {
1917
1917
  if ((I == null ? void 0 : I.marker.id) !== O.id)
1918
1918
  return I;
@@ -1922,84 +1922,84 @@ const ro = ({
1922
1922
  }), te((I) => {
1923
1923
  if ((I == null ? void 0 : I.id) !== O.id)
1924
1924
  return I;
1925
- }), G(() => y()), K(() => A());
1925
+ }), G(() => L()), K(() => A());
1926
1926
  }
1927
- }), w = u.onMarkerUpdate$.pipe(Z(h)).subscribe({
1927
+ }), b = u.onMarkerUpdate$.pipe(Z(h)).subscribe({
1928
1928
  next: () => {
1929
- G(() => y()), K(() => A());
1929
+ G(() => L()), K(() => A());
1930
1930
  }
1931
1931
  });
1932
1932
  return () => {
1933
- p.unsubscribe(), w.unsubscribe();
1933
+ p.unsubscribe(), b.unsubscribe();
1934
1934
  };
1935
1935
  }
1936
1936
  }, [u]);
1937
- const gt = (p, w) => {
1938
- if (w === void 0)
1937
+ const gt = (p, b) => {
1938
+ if (b === void 0)
1939
1939
  return;
1940
- const C = w.timeObservation;
1941
- p.video.seekToTime(C.start);
1942
- }, vt = (p, w) => {
1943
- if (w === void 0)
1940
+ const y = b.timeObservation;
1941
+ p.video.seekToTime(y.start);
1942
+ }, vt = (p, b) => {
1943
+ if (b === void 0)
1944
1944
  return;
1945
- const C = w.timeObservation;
1946
- p.video.seekToTime(C.end);
1947
- }, wt = (p, w) => {
1948
- w instanceof H && w.timeObservation.start !== void 0 && (w.timeObservation = {
1949
- ...w.timeObservation,
1945
+ const y = b.timeObservation;
1946
+ p.video.seekToTime(y.end);
1947
+ }, bt = (p, b) => {
1948
+ b instanceof H && b.timeObservation.start !== void 0 && (b.timeObservation = {
1949
+ ...b.timeObservation,
1950
1950
  start: p.video.getCurrentTime()
1951
1951
  });
1952
- }, bt = (p, w) => {
1953
- w instanceof H && w.timeObservation.end !== void 0 && (w.timeObservation = {
1954
- ...w.timeObservation,
1952
+ }, wt = (p, b) => {
1953
+ b instanceof H && b.timeObservation.end !== void 0 && (b.timeObservation = {
1954
+ ...b.timeObservation,
1955
1955
  end: p.video.getCurrentTime()
1956
1956
  });
1957
- }, St = (p, w) => {
1957
+ }, St = (p, b) => {
1958
1958
  d.current && Q(d.current), d.current = new ge(), p.video.pause();
1959
- const C = p.video.getCurrentFrame(), O = p.video.getFrameRate(), I = C - w * O, W = I >= 0 ? I : 0;
1959
+ const y = p.video.getCurrentFrame(), O = p.video.getFrameRate(), I = y - b * O, W = I >= 0 ? I : 0;
1960
1960
  p.video.seekToFrame(W).pipe(Ee()).subscribe(() => {
1961
- }), p.video.play(), p.video.onVideoTimeChange$.pipe(Z(d.current), Z(h)).subscribe((_e) => {
1962
- _e.frame >= C - 1 && (p.video.pause().subscribe(() => {
1963
- p.video.seekToFrame(C).pipe(Ee()).subscribe(() => {
1961
+ }), p.video.play(), p.video.onVideoTimeChange$.pipe(Z(d.current), Z(h)).subscribe((Oe) => {
1962
+ Oe.frame >= y - 1 && (p.video.pause().subscribe(() => {
1963
+ p.video.seekToFrame(y).pipe(Ee()).subscribe(() => {
1964
1964
  });
1965
1965
  }), Q(d.current));
1966
1966
  });
1967
- }, Et = (p, w) => {
1967
+ }, Et = (p, b) => {
1968
1968
  d.current && Q(d.current), d.current = new ge(), f.current && Q(f.current), f.current = new ge();
1969
- const C = p.video.getCurrentFrame(), O = p.video.getFrameRate(), I = C + w * O;
1969
+ const y = p.video.getCurrentFrame(), O = p.video.getFrameRate(), I = y + b * O;
1970
1970
  p.video.play(), p.video.onVideoTimeChange$.pipe(Z(d.current), Z(h)).subscribe((W) => {
1971
1971
  W.frame >= I - 1 && (p.video.pause().subscribe(() => {
1972
- p.video.seekToFrame(C).pipe(Ee()).subscribe(() => {
1972
+ p.video.seekToFrame(y).pipe(Ee()).subscribe(() => {
1973
1973
  });
1974
1974
  }), Q(d.current));
1975
1975
  }), p.video.onEnded$.pipe(Z(f.current), Z(h)).subscribe((W) => {
1976
1976
  setTimeout(() => {
1977
- p.video.seekToFrame(C).pipe(Ee()).subscribe(() => {
1977
+ p.video.seekToFrame(y).pipe(Ee()).subscribe(() => {
1978
1978
  });
1979
1979
  }, 1), Q(f.current);
1980
1980
  });
1981
- }, Qe = (p) => {
1981
+ }, Je = (p) => {
1982
1982
  u.removeMarker(p.id), (M == null ? void 0 : M.id) === p.id && te(void 0);
1983
- }, Tt = (p, w) => {
1984
- if (!(w instanceof H))
1983
+ }, Tt = (p, b) => {
1984
+ if (!(b instanceof H))
1985
1985
  return;
1986
- const C = w.timeObservation.start, O = w.timeObservation.end, I = p.video.getCurrentTime();
1987
- if (C == null || O == null)
1986
+ const y = b.timeObservation.start, O = b.timeObservation.end, I = p.video.getCurrentTime();
1987
+ if (y == null || O == null)
1988
1988
  return;
1989
- const W = C, _e = I, Nn = _e + 1 / p.video.getFrameRate(), kn = O;
1990
- Qe(w);
1991
- const Je = new H({
1989
+ const W = y, Oe = I, Nn = Oe + 1 / p.video.getFrameRate(), kn = O;
1990
+ Je(b);
1991
+ const et = new H({
1992
1992
  style: l.PERIOD_MARKER_STYLE,
1993
1993
  timeObservation: {
1994
1994
  start: W,
1995
- end: _e
1995
+ end: Oe
1996
1996
  },
1997
1997
  editable: !0
1998
1998
  });
1999
- Je.onClick$.subscribe({
2000
- next: () => a(Je)
1999
+ et.onClick$.subscribe({
2000
+ next: () => a(et)
2001
2001
  });
2002
- const Le = new H({
2002
+ const Ae = new H({
2003
2003
  style: l.HIGHLIGHTED_PERIOD_MARKER_STYLE,
2004
2004
  timeObservation: {
2005
2005
  start: Nn,
@@ -2007,25 +2007,25 @@ const ro = ({
2007
2007
  },
2008
2008
  editable: !0
2009
2009
  });
2010
- Le.onClick$.subscribe({
2011
- next: () => a(Le)
2012
- }), u.addMarker(Je), u.addMarker(Le), a(Le), setTimeout(() => {
2010
+ Ae.onClick$.subscribe({
2011
+ next: () => a(Ae)
2012
+ }), u.addMarker(et), u.addMarker(Ae), a(Ae), setTimeout(() => {
2013
2013
  x({
2014
- marker: Le,
2014
+ marker: Ae,
2015
2015
  color: l.PERIOD_MARKER_STYLE.color
2016
2016
  });
2017
2017
  }, 0);
2018
2018
  }, yt = () => {
2019
- const p = e.video.getCurrentTime(), w = new H({
2019
+ const p = e.video.getCurrentTime(), b = new H({
2020
2020
  timeObservation: {
2021
2021
  start: p
2022
2022
  },
2023
2023
  style: l.PERIOD_MARKER_STYLE,
2024
2024
  editable: !0
2025
2025
  });
2026
- w.onClick$.subscribe({
2027
- next: () => a(w)
2028
- }), u.addMarker(w), te(w), G(y()), a(w);
2026
+ b.onClick$.subscribe({
2027
+ next: () => a(b)
2028
+ }), u.addMarker(b), te(b), G(L()), a(b);
2029
2029
  }, Ct = () => {
2030
2030
  const p = e.video.getCurrentTime();
2031
2031
  M.timeObservation = {
@@ -2034,140 +2034,140 @@ const ro = ({
2034
2034
  }, te(void 0);
2035
2035
  }, Lt = (p) => {
2036
2036
  d.current && Q(d.current), d.current = new ge(), f.current && Q(f.current), f.current = new ge();
2037
- const w = e.video.calculateTimeToFrame(
2037
+ const b = e.video.calculateTimeToFrame(
2038
2038
  p.timeObservation.start
2039
- ), C = e.video.calculateTimeToFrame(
2039
+ ), y = e.video.calculateTimeToFrame(
2040
2040
  p.timeObservation.end
2041
2041
  );
2042
- e.video.pause(), e.video.seekToFrame(w), e.video.play(), e.video.onVideoTimeChange$.pipe(Z(d.current), Z(h)).subscribe((O) => {
2043
- O.frame >= C - 1 && (e.video.pause().subscribe(() => {
2044
- e.video.seekToFrame(w).pipe(Ee()).subscribe(() => {
2042
+ e.video.pause(), e.video.seekToFrame(b), e.video.play(), e.video.onVideoTimeChange$.pipe(Z(d.current), Z(h)).subscribe((O) => {
2043
+ O.frame >= y - 1 && (e.video.pause().subscribe(() => {
2044
+ e.video.seekToFrame(b).pipe(Ee()).subscribe(() => {
2045
2045
  });
2046
2046
  }), Q(d.current));
2047
2047
  }), e.video.onEnded$.pipe(Z(f.current), Z(h)).subscribe((O) => {
2048
2048
  setTimeout(() => {
2049
- e.video.seekToFrame(w).pipe(Ee()).subscribe(() => {
2049
+ e.video.seekToFrame(b).pipe(Ee()).subscribe(() => {
2050
2050
  });
2051
2051
  }, 1), Q(f.current);
2052
2052
  });
2053
2053
  }, On = () => {
2054
- const p = i.length, w = `Segmentation ${i.length + 1}`, C = new Yt({
2054
+ const p = i.length, b = `Segmentation ${i.length + 1}`, y = new Yt({
2055
2055
  style: l.TIMELINE_LANE_STYLE,
2056
- description: w
2056
+ description: b
2057
2057
  });
2058
- C.onMarkerUpdate$.subscribe({
2058
+ y.onMarkerUpdate$.subscribe({
2059
2059
  next: (O) => {
2060
- Ne(
2061
- C,
2060
+ ke(
2061
+ y,
2062
2062
  O.marker
2063
2063
  ) && (O.marker.timeObservation = O.oldValue.timeObservation);
2064
2064
  }
2065
2065
  }), e.timeline.addTimelineLaneAtIndex(
2066
- C,
2066
+ y,
2067
2067
  p + 1
2068
- ), o([...i, C]), a(void 0), c(C);
2068
+ ), o([...i, y]), a(void 0), c(y);
2069
2069
  }, At = (p) => {
2070
2070
  if (!u)
2071
2071
  return;
2072
- const w = u.getMarkers().filter((I) => I instanceof H).sort((I, W) => I.timeObservation.start ?? 0 - (W.timeObservation.start ?? 0));
2072
+ const b = u.getMarkers().filter((I) => I instanceof H).sort((I, W) => I.timeObservation.start ?? 0 - (W.timeObservation.start ?? 0));
2073
2073
  if (t === void 0) {
2074
- a(w.at(0));
2074
+ a(b.at(0));
2075
2075
  return;
2076
2076
  }
2077
- const O = w.findIndex(
2077
+ const O = b.findIndex(
2078
2078
  (I) => I.id === t.id
2079
2079
  ) + (p ? -1 : 1);
2080
- O >= 0 && O < w.length && a(w.at(O));
2080
+ O >= 0 && O < b.length && a(b.at(O));
2081
2081
  };
2082
2082
  return Y(() => {
2083
2083
  if (!r)
2084
2084
  return;
2085
2085
  const p = new Gr();
2086
- p.actionLoopActiveMarker = () => t instanceof H && Re(t) && Lt(t), p.actionSetPlayheadToMarkerStart = () => t && gt(e, t), p.actionSetPlayheadToMarkerEnd = () => t && t instanceof H && Re(t) && vt(e, t), p.actionSetMarkerStartToPlayhead = () => !Se && wt(e, t), p.actionSetMarkerEndToPlayhead = () => !_ && bt(e, t), p.actionMarkerSplit = () => !k && Tt(e, t), p.actionMarkerDelete = () => t && Qe(t), p.actionMarkerInOut = () => {
2087
- M === void 0 ? !be && yt() : !me && Ct();
2086
+ p.actionLoopActiveMarker = () => t instanceof H && De(t) && Lt(t), p.actionSetPlayheadToMarkerStart = () => t && gt(e, t), p.actionSetPlayheadToMarkerEnd = () => t && t instanceof H && De(t) && vt(e, t), p.actionSetMarkerStartToPlayhead = () => !Se && bt(e, t), p.actionSetMarkerEndToPlayhead = () => !_ && wt(e, t), p.actionMarkerSplit = () => !k && Tt(e, t), p.actionMarkerDelete = () => t && Je(t), p.actionMarkerInOut = () => {
2087
+ M === void 0 ? !we && yt() : !me && Ct();
2088
2088
  }, p.actionPlay3SecondsAndRewindToCurrent = () => Et(e, 3), p.actionRewind3SecondsAndPlayToCurrent = () => St(e, 3), p.actionNextMarkerToggle = () => At(!1), p.actionPreviousMarkerToggle = () => At(!0);
2089
- const w = (C) => {
2090
- p.handleKeyboardEvent(C, e) && (C.stopPropagation(), C.preventDefault());
2089
+ const b = (y) => {
2090
+ p.handleKeyboardEvent(y, e) && (y.stopPropagation(), y.preventDefault());
2091
2091
  };
2092
- return window.addEventListener("keydown", w), g.current || (e.video.appendHelpMenuGroup(
2092
+ return window.addEventListener("keydown", b), v.current || (e.video.appendHelpMenuGroup(
2093
2093
  p.getKeyboardShortcutsHelpMenuGroup()
2094
- ), g.current = !0), () => window.removeEventListener("keydown", w);
2095
- }), /* @__PURE__ */ b.createElement("div", { className: "control-panel-wrapper" }, /* @__PURE__ */ b.createElement("div", { className: "control-panel" }, /* @__PURE__ */ b.createElement(
2094
+ ), v.current = !0), () => window.removeEventListener("keydown", b);
2095
+ }), /* @__PURE__ */ w.createElement("div", { className: "control-panel-wrapper" }, /* @__PURE__ */ w.createElement("div", { className: "control-panel" }, /* @__PURE__ */ w.createElement(
2096
2096
  z,
2097
2097
  {
2098
2098
  Icon: Vr,
2099
2099
  onClick: () => gt(e, t),
2100
2100
  disabled: t === void 0
2101
2101
  }
2102
- ), /* @__PURE__ */ b.createElement(
2102
+ ), /* @__PURE__ */ w.createElement(
2103
2103
  z,
2104
2104
  {
2105
- Icon: Br,
2105
+ Icon: Fr,
2106
2106
  onClick: () => vt(e, t),
2107
- disabled: t === void 0 || t instanceof H && !Re(t)
2107
+ disabled: t === void 0 || t instanceof H && !De(t)
2108
2108
  }
2109
- ), /* @__PURE__ */ b.createElement(
2109
+ ), /* @__PURE__ */ w.createElement(
2110
2110
  z,
2111
2111
  {
2112
- Icon: Fr,
2113
- onClick: () => wt(e, t),
2112
+ Icon: Br,
2113
+ onClick: () => bt(e, t),
2114
2114
  disabled: Se
2115
2115
  }
2116
- ), /* @__PURE__ */ b.createElement(
2116
+ ), /* @__PURE__ */ w.createElement(
2117
2117
  z,
2118
2118
  {
2119
2119
  Icon: Kr,
2120
- onClick: () => bt(e, t),
2120
+ onClick: () => wt(e, t),
2121
2121
  disabled: _
2122
2122
  }
2123
- ), M === void 0 ? /* @__PURE__ */ b.createElement(
2123
+ ), M === void 0 ? /* @__PURE__ */ w.createElement(
2124
2124
  z,
2125
2125
  {
2126
2126
  Icon: Hr,
2127
2127
  onClick: yt,
2128
- disabled: be
2128
+ disabled: we
2129
2129
  }
2130
- ) : /* @__PURE__ */ b.createElement(
2130
+ ) : /* @__PURE__ */ w.createElement(
2131
2131
  z,
2132
2132
  {
2133
2133
  Icon: Wr,
2134
2134
  onClick: Ct,
2135
2135
  disabled: me
2136
2136
  }
2137
- ), /* @__PURE__ */ b.createElement(
2137
+ ), /* @__PURE__ */ w.createElement(
2138
2138
  z,
2139
2139
  {
2140
2140
  Icon: Ur,
2141
- onClick: () => Qe(t),
2141
+ onClick: () => Je(t),
2142
2142
  disabled: t === void 0
2143
2143
  }
2144
- ), /* @__PURE__ */ b.createElement(
2144
+ ), /* @__PURE__ */ w.createElement(
2145
2145
  z,
2146
2146
  {
2147
2147
  Icon: Pr,
2148
2148
  onClick: () => Tt(e, t),
2149
2149
  disabled: k || t === void 0
2150
2150
  }
2151
- ), /* @__PURE__ */ b.createElement(
2151
+ ), /* @__PURE__ */ w.createElement(
2152
2152
  z,
2153
2153
  {
2154
2154
  Icon: $r,
2155
2155
  onClick: () => Lt(t),
2156
- disabled: !(t instanceof H && Re(t))
2156
+ disabled: !(t instanceof H && De(t))
2157
2157
  }
2158
- ), /* @__PURE__ */ b.createElement(
2158
+ ), /* @__PURE__ */ w.createElement(
2159
2159
  z,
2160
2160
  {
2161
2161
  Icon: Zr,
2162
2162
  onClick: () => St(e, 3)
2163
2163
  }
2164
- ), /* @__PURE__ */ b.createElement(
2164
+ ), /* @__PURE__ */ w.createElement(
2165
2165
  z,
2166
2166
  {
2167
2167
  Icon: qr,
2168
2168
  onClick: () => Et(e, 3)
2169
2169
  }
2170
- )), /* @__PURE__ */ b.createElement("div", { className: "control-panel" }, /* @__PURE__ */ b.createElement("div", { className: "segmentation-button-wrapper" }, /* @__PURE__ */ b.createElement(
2170
+ )), /* @__PURE__ */ w.createElement("div", { className: "control-panel" }, /* @__PURE__ */ w.createElement("div", { className: "segmentation-button-wrapper" }, /* @__PURE__ */ w.createElement(
2171
2171
  z,
2172
2172
  {
2173
2173
  Icon: Xr,
@@ -2208,7 +2208,7 @@ class ve {
2208
2208
  * Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
2209
2209
  * MIT Licence
2210
2210
  */
2211
- var st = 9e15, he = 1e9, at = "0123456789abcdef", Ue = "2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058", $e = "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789", ut = {
2211
+ var Te = 9e15, he = 1e9, at = "0123456789abcdef", $e = "2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058", Ze = "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789", ut = {
2212
2212
  // These values must be integers within the stated ranges (inclusive).
2213
2213
  // Most of these values can be changed at run-time using the `Decimal.config` method.
2214
2214
  // The maximum number of significant digits of the result of a calculation or base conversion.
@@ -2257,16 +2257,16 @@ var st = 9e15, he = 1e9, at = "0123456789abcdef", Ue = "2.3025850929940456840179
2257
2257
  // 0 to EXP_LIMIT
2258
2258
  // The minimum exponent value, beneath which underflow to zero occurs.
2259
2259
  // JavaScript numbers: -324 (5e-324)
2260
- minE: -9e15,
2260
+ minE: -Te,
2261
2261
  // -1 to -EXP_LIMIT
2262
2262
  // The maximum exponent value, above which overflow to Infinity occurs.
2263
2263
  // JavaScript numbers: 308 (1.7976931348623157e+308)
2264
- maxE: st,
2264
+ maxE: Te,
2265
2265
  // 1 to EXP_LIMIT
2266
2266
  // Whether to use cryptographically-secure random number generation, if available.
2267
2267
  crypto: !1
2268
2268
  // true/false
2269
- }, Sn, se, L = !0, Ge = "[DecimalError] ", le = Ge + "Invalid argument: ", En = Ge + "Precision limit exceeded", Tn = Ge + "crypto unavailable", yn = "[object Decimal]", q = Math.floor, B = Math.pow, jr = /^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i, zr = /^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i, Yr = /^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i, Cn = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, ee = 1e7, T = 7, Qr = 9007199254740991, Jr = Ue.length - 1, ct = $e.length - 1, m = { toStringTag: yn };
2269
+ }, Sn, se, C = !0, je = "[DecimalError] ", le = je + "Invalid argument: ", En = je + "Precision limit exceeded", Tn = je + "crypto unavailable", yn = "[object Decimal]", q = Math.floor, F = Math.pow, jr = /^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i, zr = /^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i, Yr = /^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i, Cn = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, ee = 1e7, T = 7, Qr = 9007199254740991, Jr = $e.length - 1, ct = Ze.length - 1, m = { toStringTag: yn };
2270
2270
  m.absoluteValue = m.abs = function() {
2271
2271
  var t = new this.constructor(this);
2272
2272
  return t.s < 0 && (t.s = 1), E(t);
@@ -2298,7 +2298,7 @@ m.cosine = m.cos = function() {
2298
2298
  m.cubeRoot = m.cbrt = function() {
2299
2299
  var t, e, n, r, i, o, s, a, c, u, l = this, d = l.constructor;
2300
2300
  if (!l.isFinite() || l.isZero()) return new d(l);
2301
- for (L = !1, o = l.s * B(l.s * l, 1 / 3), !o || Math.abs(o) == 1 / 0 ? (n = $(l.d), t = l.e, (o = (t - n.length + 1) % 3) && (n += o == 1 || o == -2 ? "0" : "00"), o = B(n, 1 / 3), t = q((t + 1) / 3) - (t % 3 == (t < 0 ? -1 : 2)), o == 1 / 0 ? n = "5e" + t : (n = o.toExponential(), n = n.slice(0, n.indexOf("e") + 1) + t), r = new d(n), r.s = l.s) : r = new d(o.toString()), s = (t = d.precision) + 3; ; )
2301
+ for (C = !1, o = l.s * F(l.s * l, 1 / 3), !o || Math.abs(o) == 1 / 0 ? (n = $(l.d), t = l.e, (o = (t - n.length + 1) % 3) && (n += o == 1 || o == -2 ? "0" : "00"), o = F(n, 1 / 3), t = q((t + 1) / 3) - (t % 3 == (t < 0 ? -1 : 2)), o == 1 / 0 ? n = "5e" + t : (n = o.toExponential(), n = n.slice(0, n.indexOf("e") + 1) + t), r = new d(n), r.s = l.s) : r = new d(o.toString()), s = (t = d.precision) + 3; ; )
2302
2302
  if (a = r, c = a.times(a).times(a), u = c.plus(l), r = N(u.plus(l).times(a), u.plus(c), s + 2, 1), $(a.d).slice(0, s) === (n = $(r.d)).slice(0, s))
2303
2303
  if (n = n.slice(s - 3, s + 1), n == "9999" || !i && n == "4999") {
2304
2304
  if (!i && (E(a, t + 1, 0), a.times(a).times(a).eq(l))) {
@@ -2310,7 +2310,7 @@ m.cubeRoot = m.cbrt = function() {
2310
2310
  (!+n || !+n.slice(1) && n.charAt(0) == "5") && (E(r, t + 1, 1), e = !r.times(r).times(r).eq(l));
2311
2311
  break;
2312
2312
  }
2313
- return L = !0, E(r, t, d.rounding, e);
2313
+ return C = !0, E(r, t, d.rounding, e);
2314
2314
  };
2315
2315
  m.decimalPlaces = m.dp = function() {
2316
2316
  var t, e = this.d, n = NaN;
@@ -2344,7 +2344,7 @@ m.hyperbolicCosine = m.cosh = function() {
2344
2344
  var t, e, n, r, i, o = this, s = o.constructor, a = new s(1);
2345
2345
  if (!o.isFinite()) return new s(o.s ? 1 / 0 : NaN);
2346
2346
  if (o.isZero()) return a;
2347
- n = s.precision, r = s.rounding, s.precision = n + Math.max(o.e, o.sd()) + 4, s.rounding = 1, i = o.d.length, i < 32 ? (t = Math.ceil(i / 3), e = (1 / ze(4, t)).toString()) : (t = 16, e = "2.3283064365386962890625e-10"), o = Ce(s, 1, o.times(e), new s(1), !0);
2347
+ n = s.precision, r = s.rounding, s.precision = n + Math.max(o.e, o.sd()) + 4, s.rounding = 1, i = o.d.length, i < 32 ? (t = Math.ceil(i / 3), e = (1 / Ye(4, t)).toString()) : (t = 16, e = "2.3283064365386962890625e-10"), o = Le(s, 1, o.times(e), new s(1), !0);
2348
2348
  for (var c, u = t, l = new s(8); u--; )
2349
2349
  c = o.times(o), o = a.minus(c.times(l.minus(c.times(l))));
2350
2350
  return E(o, s.precision = n, s.rounding = r, !0);
@@ -2353,9 +2353,9 @@ m.hyperbolicSine = m.sinh = function() {
2353
2353
  var t, e, n, r, i = this, o = i.constructor;
2354
2354
  if (!i.isFinite() || i.isZero()) return new o(i);
2355
2355
  if (e = o.precision, n = o.rounding, o.precision = e + Math.max(i.e, i.sd()) + 4, o.rounding = 1, r = i.d.length, r < 3)
2356
- i = Ce(o, 2, i, i, !0);
2356
+ i = Le(o, 2, i, i, !0);
2357
2357
  else {
2358
- t = 1.4 * Math.sqrt(r), t = t > 16 ? 16 : t | 0, i = i.times(1 / ze(5, t)), i = Ce(o, 2, i, i, !0);
2358
+ t = 1.4 * Math.sqrt(r), t = t > 16 ? 16 : t | 0, i = i.times(1 / Ye(5, t)), i = Le(o, 2, i, i, !0);
2359
2359
  for (var s, a = new o(5), c = new o(16), u = new o(20); t--; )
2360
2360
  s = i.times(i), i = i.times(a.plus(s.times(c.times(s).plus(u))));
2361
2361
  }
@@ -2371,11 +2371,11 @@ m.inverseCosine = m.acos = function() {
2371
2371
  };
2372
2372
  m.inverseHyperbolicCosine = m.acosh = function() {
2373
2373
  var t, e, n = this, r = n.constructor;
2374
- return n.lte(1) ? new r(n.eq(1) ? 0 : NaN) : n.isFinite() ? (t = r.precision, e = r.rounding, r.precision = t + Math.max(Math.abs(n.e), n.sd()) + 4, r.rounding = 1, L = !1, n = n.times(n).minus(1).sqrt().plus(n), L = !0, r.precision = t, r.rounding = e, n.ln()) : new r(n);
2374
+ return n.lte(1) ? new r(n.eq(1) ? 0 : NaN) : n.isFinite() ? (t = r.precision, e = r.rounding, r.precision = t + Math.max(Math.abs(n.e), n.sd()) + 4, r.rounding = 1, C = !1, n = n.times(n).minus(1).sqrt().plus(n), C = !0, r.precision = t, r.rounding = e, n.ln()) : new r(n);
2375
2375
  };
2376
2376
  m.inverseHyperbolicSine = m.asinh = function() {
2377
2377
  var t, e, n = this, r = n.constructor;
2378
- return !n.isFinite() || n.isZero() ? new r(n) : (t = r.precision, e = r.rounding, r.precision = t + 2 * Math.max(Math.abs(n.e), n.sd()) + 6, r.rounding = 1, L = !1, n = n.times(n).plus(1).sqrt().plus(n), L = !0, r.precision = t, r.rounding = e, n.ln());
2378
+ return !n.isFinite() || n.isZero() ? new r(n) : (t = r.precision, e = r.rounding, r.precision = t + 2 * Math.max(Math.abs(n.e), n.sd()) + 6, r.rounding = 1, C = !1, n = n.times(n).plus(1).sqrt().plus(n), C = !0, r.precision = t, r.rounding = e, n.ln());
2379
2379
  };
2380
2380
  m.inverseHyperbolicTangent = m.atanh = function() {
2381
2381
  var t, e, n, r, i = this, o = i.constructor;
@@ -2398,9 +2398,9 @@ m.inverseTangent = m.atan = function() {
2398
2398
  return s = ne(l, d + 4, f).times(0.5), s.s = u.s, s;
2399
2399
  }
2400
2400
  for (l.precision = a = d + 10, l.rounding = 1, n = Math.min(28, a / T + 2 | 0), t = n; t; --t) u = u.div(u.times(u).plus(1).sqrt().plus(1));
2401
- for (L = !1, e = Math.ceil(a / T), r = 1, c = u.times(u), s = new l(u), i = u; t !== -1; )
2401
+ for (C = !1, e = Math.ceil(a / T), r = 1, c = u.times(u), s = new l(u), i = u; t !== -1; )
2402
2402
  if (i = i.times(c), o = s.minus(i.div(r += 2)), i = i.times(c), s = o.plus(i.div(r += 2)), s.d[e] !== void 0) for (t = e; s.d[t] === o.d[t] && t--; ) ;
2403
- return n && (s = s.times(2 << n - 1)), L = !0, E(s, l.precision = d, l.rounding = f, !0);
2403
+ return n && (s = s.times(2 << n - 1)), C = !0, E(s, l.precision = d, l.rounding = f, !0);
2404
2404
  };
2405
2405
  m.isFinite = function() {
2406
2406
  return !!this.d;
@@ -2443,26 +2443,26 @@ m.logarithm = m.log = function(t) {
2443
2443
  for (i = n[0]; i % 10 === 0; ) i /= 10;
2444
2444
  o = i !== 1;
2445
2445
  }
2446
- if (L = !1, a = d + h, s = ue(u, a), r = e ? Ze(l, a + 10) : ue(t, a), c = N(s, r, a, 1), xe(c.d, i = d, f))
2446
+ if (C = !1, a = d + h, s = ue(u, a), r = e ? qe(l, a + 10) : ue(t, a), c = N(s, r, a, 1), Me(c.d, i = d, f))
2447
2447
  do
2448
- if (a += 10, s = ue(u, a), r = e ? Ze(l, a + 10) : ue(t, a), c = N(s, r, a, 1), !o) {
2448
+ if (a += 10, s = ue(u, a), r = e ? qe(l, a + 10) : ue(t, a), c = N(s, r, a, 1), !o) {
2449
2449
  +$(c.d).slice(i + 1, i + 15) + 1 == 1e14 && (c = E(c, d + 1, 0));
2450
2450
  break;
2451
2451
  }
2452
- while (xe(c.d, i += 10, f));
2453
- return L = !0, E(c, d, f);
2452
+ while (Me(c.d, i += 10, f));
2453
+ return C = !0, E(c, d, f);
2454
2454
  };
2455
2455
  m.minus = m.sub = function(t) {
2456
- var e, n, r, i, o, s, a, c, u, l, d, f, h = this, g = h.constructor;
2457
- if (t = new g(t), !h.d || !t.d)
2458
- return !h.s || !t.s ? t = new g(NaN) : h.d ? t.s = -t.s : t = new g(t.d || h.s !== t.s ? h : NaN), t;
2456
+ var e, n, r, i, o, s, a, c, u, l, d, f, h = this, v = h.constructor;
2457
+ if (t = new v(t), !h.d || !t.d)
2458
+ return !h.s || !t.s ? t = new v(NaN) : h.d ? t.s = -t.s : t = new v(t.d || h.s !== t.s ? h : NaN), t;
2459
2459
  if (h.s != t.s)
2460
2460
  return t.s = -t.s, h.plus(t);
2461
- if (u = h.d, f = t.d, a = g.precision, c = g.rounding, !u[0] || !f[0]) {
2461
+ if (u = h.d, f = t.d, a = v.precision, c = v.rounding, !u[0] || !f[0]) {
2462
2462
  if (f[0]) t.s = -t.s;
2463
- else if (u[0]) t = new g(h);
2464
- else return new g(c === 3 ? -0 : 0);
2465
- return L ? E(t, a, c) : t;
2463
+ else if (u[0]) t = new v(h);
2464
+ else return new v(c === 3 ? -0 : 0);
2465
+ return C ? E(t, a, c) : t;
2466
2466
  }
2467
2467
  if (n = q(t.e / T), l = q(h.e / T), u = u.slice(), o = l - n, o) {
2468
2468
  for (d = o < 0, d ? (e = u, o = -o, s = f.length) : (e = f, n = l, s = u.length), r = Math.max(Math.ceil(a / T), s) + 2, o > r && (o = r, e.length = 1), e.reverse(), r = o; r--; ) e.push(0);
@@ -2485,11 +2485,11 @@ m.minus = m.sub = function(t) {
2485
2485
  }
2486
2486
  for (; u[--s] === 0; ) u.pop();
2487
2487
  for (; u[0] === 0; u.shift()) --n;
2488
- return u[0] ? (t.d = u, t.e = je(u, n), L ? E(t, a, c) : t) : new g(c === 3 ? -0 : 0);
2488
+ return u[0] ? (t.d = u, t.e = ze(u, n), C ? E(t, a, c) : t) : new v(c === 3 ? -0 : 0);
2489
2489
  };
2490
2490
  m.modulo = m.mod = function(t) {
2491
2491
  var e, n = this, r = n.constructor;
2492
- return t = new r(t), !n.d || !t.s || t.d && !t.d[0] ? new r(NaN) : !t.d || n.d && !n.d[0] ? E(new r(n), r.precision, r.rounding) : (L = !1, r.modulo == 9 ? (e = N(n, t.abs(), 0, 3, 1), e.s *= t.s) : e = N(n, t, 0, r.modulo, 1), e = e.times(t), L = !0, n.minus(e));
2492
+ return t = new r(t), !n.d || !t.s || t.d && !t.d[0] ? new r(NaN) : !t.d || n.d && !n.d[0] ? E(new r(n), r.precision, r.rounding) : (C = !1, r.modulo == 9 ? (e = N(n, t.abs(), 0, 3, 1), e.s *= t.s) : e = N(n, t, 0, r.modulo, 1), e = e.times(t), C = !0, n.minus(e));
2493
2493
  };
2494
2494
  m.naturalExponential = m.exp = function() {
2495
2495
  return lt(this);
@@ -2508,7 +2508,7 @@ m.plus = m.add = function(t) {
2508
2508
  if (d.s != t.s)
2509
2509
  return t.s = -t.s, d.minus(t);
2510
2510
  if (u = d.d, l = t.d, a = f.precision, c = f.rounding, !u[0] || !l[0])
2511
- return l[0] || (t = new f(d)), L ? E(t, a, c) : t;
2511
+ return l[0] || (t = new f(d)), C ? E(t, a, c) : t;
2512
2512
  if (o = q(d.e / T), r = q(t.e / T), u = u.slice(), i = o - r, i) {
2513
2513
  for (i < 0 ? (n = u, i = -i, s = l.length) : (n = l, r = o, s = u.length), o = Math.ceil(a / T), s = o > s ? o + 1 : s + 1, i > s && (i = s, n.length = 1), n.reverse(); i--; ) n.push(0);
2514
2514
  n.reverse();
@@ -2516,7 +2516,7 @@ m.plus = m.add = function(t) {
2516
2516
  for (s = u.length, i = l.length, s - i < 0 && (i = s, n = l, l = u, u = n), e = 0; i; )
2517
2517
  e = (u[--i] = u[i] + l[i] + e) / ee | 0, u[i] %= ee;
2518
2518
  for (e && (u.unshift(e), ++r), s = u.length; u[--s] == 0; ) u.pop();
2519
- return t.d = u, t.e = je(u, r), L ? E(t, a, c) : t;
2519
+ return t.d = u, t.e = ze(u, r), C ? E(t, a, c) : t;
2520
2520
  };
2521
2521
  m.precision = m.sd = function(t) {
2522
2522
  var e, n = this;
@@ -2535,7 +2535,7 @@ m.squareRoot = m.sqrt = function() {
2535
2535
  var t, e, n, r, i, o, s = this, a = s.d, c = s.e, u = s.s, l = s.constructor;
2536
2536
  if (u !== 1 || !a || !a[0])
2537
2537
  return new l(!u || u < 0 && (!a || a[0]) ? NaN : a ? s : 1 / 0);
2538
- for (L = !1, u = Math.sqrt(+s), u == 0 || u == 1 / 0 ? (e = $(a), (e.length + c) % 2 == 0 && (e += "0"), u = Math.sqrt(e), c = q((c + 1) / 2) - (c < 0 || c % 2), u == 1 / 0 ? e = "5e" + c : (e = u.toExponential(), e = e.slice(0, e.indexOf("e") + 1) + c), r = new l(e)) : r = new l(u.toString()), n = (c = l.precision) + 3; ; )
2538
+ for (C = !1, u = Math.sqrt(+s), u == 0 || u == 1 / 0 ? (e = $(a), (e.length + c) % 2 == 0 && (e += "0"), u = Math.sqrt(e), c = q((c + 1) / 2) - (c < 0 || c % 2), u == 1 / 0 ? e = "5e" + c : (e = u.toExponential(), e = e.slice(0, e.indexOf("e") + 1) + c), r = new l(e)) : r = new l(u.toString()), n = (c = l.precision) + 3; ; )
2539
2539
  if (o = r, r = o.plus(N(s, o, n + 2, 1)).times(0.5), $(o.d).slice(0, n) === (e = $(r.d)).slice(0, n))
2540
2540
  if (e = e.slice(n - 3, n + 1), e == "9999" || !i && e == "4999") {
2541
2541
  if (!i && (E(o, c + 1, 0), o.times(o).eq(s))) {
@@ -2547,7 +2547,7 @@ m.squareRoot = m.sqrt = function() {
2547
2547
  (!+e || !+e.slice(1) && e.charAt(0) == "5") && (E(r, c + 1, 1), t = !r.times(r).eq(s));
2548
2548
  break;
2549
2549
  }
2550
- return L = !0, E(r, c, l.rounding, t);
2550
+ return C = !0, E(r, c, l.rounding, t);
2551
2551
  };
2552
2552
  m.tangent = m.tan = function() {
2553
2553
  var t, e, n = this, r = n.constructor;
@@ -2564,7 +2564,7 @@ m.times = m.mul = function(t) {
2564
2564
  o[i] = (o[i] + e) % ee | 0;
2565
2565
  }
2566
2566
  for (; !o[--s]; ) o.pop();
2567
- return e ? ++n : o.shift(), t.d = o, t.e = je(o, n), L ? E(t, d.precision, d.rounding) : t;
2567
+ return e ? ++n : o.shift(), t.d = o, t.e = ze(o, n), C ? E(t, d.precision, d.rounding) : t;
2568
2568
  };
2569
2569
  m.toBinary = function(t, e) {
2570
2570
  return pt(this, 2, t, e);
@@ -2582,17 +2582,17 @@ m.toFixed = function(t, e) {
2582
2582
  return t === void 0 ? n = re(i) : (X(t, 0, he), e === void 0 ? e = o.rounding : X(e, 0, 8), r = E(new o(i), t + i.e + 1, e), n = re(r, !1, t + r.e + 1)), i.isNeg() && !i.isZero() ? "-" + n : n;
2583
2583
  };
2584
2584
  m.toFraction = function(t) {
2585
- var e, n, r, i, o, s, a, c, u, l, d, f, h = this, g = h.d, v = h.constructor;
2586
- if (!g) return new v(h);
2587
- if (u = n = new v(1), r = c = new v(0), e = new v(r), o = e.e = Ln(g) - h.e - 1, s = o % T, e.d[0] = B(10, s < 0 ? T + s : s), t == null)
2585
+ var e, n, r, i, o, s, a, c, u, l, d, f, h = this, v = h.d, g = h.constructor;
2586
+ if (!v) return new g(h);
2587
+ if (u = n = new g(1), r = c = new g(0), e = new g(r), o = e.e = Ln(v) - h.e - 1, s = o % T, e.d[0] = F(10, s < 0 ? T + s : s), t == null)
2588
2588
  t = o > 0 ? e : u;
2589
2589
  else {
2590
- if (a = new v(t), !a.isInt() || a.lt(u)) throw Error(le + a);
2590
+ if (a = new g(t), !a.isInt() || a.lt(u)) throw Error(le + a);
2591
2591
  t = a.gt(e) ? o > 0 ? e : u : a;
2592
2592
  }
2593
- for (L = !1, a = new v($(g)), l = v.precision, v.precision = o = g.length * T * 2; d = N(a, e, 0, 1, 1), i = n.plus(d.times(r)), i.cmp(t) != 1; )
2593
+ for (C = !1, a = new g($(v)), l = g.precision, g.precision = o = v.length * T * 2; d = N(a, e, 0, 1, 1), i = n.plus(d.times(r)), i.cmp(t) != 1; )
2594
2594
  n = r, r = i, i = u, u = c.plus(d.times(i)), c = i, i = e, e = a.minus(d.times(i)), a = i;
2595
- return i = N(t.minus(n), r, 0, 1, 1), c = c.plus(i.times(u)), n = n.plus(i.times(r)), c.s = u.s = h.s, f = N(u, r, o, 1).minus(h).abs().cmp(N(c, n, o, 1).minus(h).abs()) < 1 ? [u, r] : [c, n], v.precision = l, L = !0, f;
2595
+ return i = N(t.minus(n), r, 0, 1, 1), c = c.plus(i.times(u)), n = n.plus(i.times(r)), c.s = u.s = h.s, f = N(u, r, o, 1).minus(h).abs().cmp(N(c, n, o, 1).minus(h).abs()) < 1 ? [u, r] : [c, n], g.precision = l, C = !0, f;
2596
2596
  };
2597
2597
  m.toHexadecimal = m.toHex = function(t, e) {
2598
2598
  return pt(this, 16, t, e);
@@ -2607,7 +2607,7 @@ m.toNearest = function(t, e) {
2607
2607
  if (!t.d)
2608
2608
  return t.s && (t.s = n.s), t;
2609
2609
  }
2610
- return t.d[0] ? (L = !1, n = N(n, t, 0, e, 1).times(t), L = !0, E(n)) : (t.s = n.s, n = t), n;
2610
+ return t.d[0] ? (C = !1, n = N(n, t, 0, e, 1).times(t), C = !0, E(n)) : (t.s = n.s, n = t), n;
2611
2611
  };
2612
2612
  m.toNumber = function() {
2613
2613
  return +this;
@@ -2617,7 +2617,7 @@ m.toOctal = function(t, e) {
2617
2617
  };
2618
2618
  m.toPower = m.pow = function(t) {
2619
2619
  var e, n, r, i, o, s, a = this, c = a.constructor, u = +(t = new c(t));
2620
- if (!a.d || !t.d || !a.d[0] || !t.d[0]) return new c(B(+a, u));
2620
+ if (!a.d || !t.d || !a.d[0] || !t.d[0]) return new c(F(+a, u));
2621
2621
  if (a = new c(a), a.eq(1)) return a;
2622
2622
  if (r = c.precision, o = c.rounding, t.eq(1)) return E(a, r, o);
2623
2623
  if (e = q(t.e / T), e >= t.d.length - 1 && (n = u < 0 ? -u : u) <= Qr)
@@ -2627,7 +2627,7 @@ m.toPower = m.pow = function(t) {
2627
2627
  if ((t.d[e] & 1) == 0 && (s = 1), a.e == 0 && a.d[0] == 1 && a.d.length == 1)
2628
2628
  return a.s = s, a;
2629
2629
  }
2630
- return n = B(+a, u), e = n == 0 || !isFinite(n) ? q(u * (Math.log("0." + $(a.d)) / Math.LN10 + a.e + 1)) : new c(n + "").e, e > c.maxE + 1 || e < c.minE - 1 ? new c(e > 0 ? s / 0 : 0) : (L = !1, c.rounding = a.s = 1, n = Math.min(12, (e + "").length), i = lt(t.times(ue(a, r + n)), r), i.d && (i = E(i, r + 5, 1), xe(i.d, r, o) && (e = r + 10, i = E(lt(t.times(ue(a, e + n)), e), e + 5, 1), +$(i.d).slice(r + 1, r + 15) + 1 == 1e14 && (i = E(i, r + 1, 0)))), i.s = s, L = !0, c.rounding = o, E(i, r, o));
2630
+ return n = F(+a, u), e = n == 0 || !isFinite(n) ? q(u * (Math.log("0." + $(a.d)) / Math.LN10 + a.e + 1)) : new c(n + "").e, e > c.maxE + 1 || e < c.minE - 1 ? new c(e > 0 ? s / 0 : 0) : (C = !1, c.rounding = a.s = 1, n = Math.min(12, (e + "").length), i = lt(t.times(ue(a, r + n)), r), i.d && (i = E(i, r + 5, 1), Me(i.d, r, o) && (e = r + 10, i = E(lt(t.times(ue(a, e + n)), e), e + 5, 1), +$(i.d).slice(r + 1, r + 15) + 1 == 1e14 && (i = E(i, r + 1, 0)))), i.s = s, C = !0, c.rounding = o, E(i, r, o));
2631
2631
  };
2632
2632
  m.toPrecision = function(t, e) {
2633
2633
  var n, r = this, i = r.constructor;
@@ -2663,12 +2663,12 @@ function X(t, e, n) {
2663
2663
  if (t !== ~~t || t < e || t > n)
2664
2664
  throw Error(le + t);
2665
2665
  }
2666
- function xe(t, e, n, r) {
2666
+ function Me(t, e, n, r) {
2667
2667
  var i, o, s, a;
2668
2668
  for (o = t[0]; o >= 10; o /= 10) --e;
2669
- return --e < 0 ? (e += T, i = 0) : (i = Math.ceil((e + 1) / T), e %= T), o = B(10, T - e), a = t[i] % o | 0, r == null ? e < 3 ? (e == 0 ? a = a / 100 | 0 : e == 1 && (a = a / 10 | 0), s = n < 4 && a == 99999 || n > 3 && a == 49999 || a == 5e4 || a == 0) : s = (n < 4 && a + 1 == o || n > 3 && a + 1 == o / 2) && (t[i + 1] / o / 100 | 0) == B(10, e - 2) - 1 || (a == o / 2 || a == 0) && (t[i + 1] / o / 100 | 0) == 0 : e < 4 ? (e == 0 ? a = a / 1e3 | 0 : e == 1 ? a = a / 100 | 0 : e == 2 && (a = a / 10 | 0), s = (r || n < 4) && a == 9999 || !r && n > 3 && a == 4999) : s = ((r || n < 4) && a + 1 == o || !r && n > 3 && a + 1 == o / 2) && (t[i + 1] / o / 1e3 | 0) == B(10, e - 3) - 1, s;
2669
+ return --e < 0 ? (e += T, i = 0) : (i = Math.ceil((e + 1) / T), e %= T), o = F(10, T - e), a = t[i] % o | 0, r == null ? e < 3 ? (e == 0 ? a = a / 100 | 0 : e == 1 && (a = a / 10 | 0), s = n < 4 && a == 99999 || n > 3 && a == 49999 || a == 5e4 || a == 0) : s = (n < 4 && a + 1 == o || n > 3 && a + 1 == o / 2) && (t[i + 1] / o / 100 | 0) == F(10, e - 2) - 1 || (a == o / 2 || a == 0) && (t[i + 1] / o / 100 | 0) == 0 : e < 4 ? (e == 0 ? a = a / 1e3 | 0 : e == 1 ? a = a / 100 | 0 : e == 2 && (a = a / 10 | 0), s = (r || n < 4) && a == 9999 || !r && n > 3 && a == 4999) : s = ((r || n < 4) && a + 1 == o || !r && n > 3 && a + 1 == o / 2) && (t[i + 1] / o / 1e3 | 0) == F(10, e - 3) - 1, s;
2670
2670
  }
2671
- function Fe(t, e, n) {
2671
+ function Ke(t, e, n) {
2672
2672
  for (var r, i = [0], o, s = 0, a = t.length; s < a; ) {
2673
2673
  for (o = i.length; o--; ) i[o] *= e;
2674
2674
  for (i[0] += at.indexOf(t.charAt(s++)), r = 0; r < i.length; r++)
@@ -2679,7 +2679,7 @@ function Fe(t, e, n) {
2679
2679
  function ei(t, e) {
2680
2680
  var n, r, i;
2681
2681
  if (e.isZero()) return e;
2682
- r = e.d.length, r < 32 ? (n = Math.ceil(r / 3), i = (1 / ze(4, n)).toString()) : (n = 16, i = "2.3283064365386962890625e-10"), t.precision += n, e = Ce(t, 1, e.times(i), new t(1));
2682
+ r = e.d.length, r < 32 ? (n = Math.ceil(r / 3), i = (1 / Ye(4, n)).toString()) : (n = 16, i = "2.3283064365386962890625e-10"), t.precision += n, e = Le(t, 1, e.times(i), new t(1));
2683
2683
  for (var o = n; o--; ) {
2684
2684
  var s = e.times(e);
2685
2685
  e = s.times(s).minus(s).times(8).plus(1);
@@ -2711,7 +2711,7 @@ var N = /* @__PURE__ */ function() {
2711
2711
  for (; !r[0] && r.length > 1; ) r.shift();
2712
2712
  }
2713
2713
  return function(r, i, o, s, a, c) {
2714
- var u, l, d, f, h, g, v, y, A, D, x, k, P, M, te, me, G, be, K, ie, oe = r.constructor, Se = r.s == i.s ? 1 : -1, V = r.d, _ = i.d;
2714
+ var u, l, d, f, h, v, g, L, A, D, x, k, P, M, te, me, G, we, K, ie, oe = r.constructor, Se = r.s == i.s ? 1 : -1, V = r.d, _ = i.d;
2715
2715
  if (!V || !V[0] || !_ || !_[0])
2716
2716
  return new oe(
2717
2717
  // Return NaN if either NaN, or both Infinity or 0.
@@ -2722,27 +2722,27 @@ var N = /* @__PURE__ */ function() {
2722
2722
  );
2723
2723
  for (c ? (h = 1, l = r.e - i.e) : (c = ee, h = T, l = q(r.e / h) - q(i.e / h)), K = _.length, G = V.length, A = new oe(Se), D = A.d = [], d = 0; _[d] == (V[d] || 0); d++) ;
2724
2724
  if (_[d] > (V[d] || 0) && l--, o == null ? (M = o = oe.precision, s = oe.rounding) : a ? M = o + (r.e - i.e) + 1 : M = o, M < 0)
2725
- D.push(1), g = !0;
2725
+ D.push(1), v = !0;
2726
2726
  else {
2727
2727
  if (M = M / h + 2 | 0, d = 0, K == 1) {
2728
2728
  for (f = 0, _ = _[0], M++; (d < G || f) && M--; d++)
2729
2729
  te = f * c + (V[d] || 0), D[d] = te / _ | 0, f = te % _ | 0;
2730
- g = f || d < G;
2730
+ v = f || d < G;
2731
2731
  } else {
2732
2732
  for (f = c / (_[0] + 1) | 0, f > 1 && (_ = t(_, f, c), V = t(V, f, c), K = _.length, G = V.length), me = K, x = V.slice(0, K), k = x.length; k < K; ) x[k++] = 0;
2733
- ie = _.slice(), ie.unshift(0), be = _[0], _[1] >= c / 2 && ++be;
2733
+ ie = _.slice(), ie.unshift(0), we = _[0], _[1] >= c / 2 && ++we;
2734
2734
  do
2735
- f = 0, u = e(_, x, K, k), u < 0 ? (P = x[0], K != k && (P = P * c + (x[1] || 0)), f = P / be | 0, f > 1 ? (f >= c && (f = c - 1), v = t(_, f, c), y = v.length, k = x.length, u = e(v, x, y, k), u == 1 && (f--, n(v, K < y ? ie : _, y, c))) : (f == 0 && (u = f = 1), v = _.slice()), y = v.length, y < k && v.unshift(0), n(x, v, k, c), u == -1 && (k = x.length, u = e(_, x, K, k), u < 1 && (f++, n(x, K < k ? ie : _, k, c))), k = x.length) : u === 0 && (f++, x = [0]), D[d++] = f, u && x[0] ? x[k++] = V[me] || 0 : (x = [V[me]], k = 1);
2735
+ f = 0, u = e(_, x, K, k), u < 0 ? (P = x[0], K != k && (P = P * c + (x[1] || 0)), f = P / we | 0, f > 1 ? (f >= c && (f = c - 1), g = t(_, f, c), L = g.length, k = x.length, u = e(g, x, L, k), u == 1 && (f--, n(g, K < L ? ie : _, L, c))) : (f == 0 && (u = f = 1), g = _.slice()), L = g.length, L < k && g.unshift(0), n(x, g, k, c), u == -1 && (k = x.length, u = e(_, x, K, k), u < 1 && (f++, n(x, K < k ? ie : _, k, c))), k = x.length) : u === 0 && (f++, x = [0]), D[d++] = f, u && x[0] ? x[k++] = V[me] || 0 : (x = [V[me]], k = 1);
2736
2736
  while ((me++ < G || x[0] !== void 0) && M--);
2737
- g = x[0] !== void 0;
2737
+ v = x[0] !== void 0;
2738
2738
  }
2739
2739
  D[0] || D.shift();
2740
2740
  }
2741
2741
  if (h == 1)
2742
- A.e = l, Sn = g;
2742
+ A.e = l, Sn = v;
2743
2743
  else {
2744
2744
  for (d = 1, f = D[0]; f >= 10; f /= 10) d++;
2745
- A.e = d + l * h - 1, E(A, a ? o + A.e + 1 : o, s, g);
2745
+ A.e = d + l * h - 1, E(A, a ? o + A.e + 1 : o, s, v);
2746
2746
  }
2747
2747
  return A;
2748
2748
  };
@@ -2753,7 +2753,7 @@ function E(t, e, n, r) {
2753
2753
  if (d = t.d, !d) return t;
2754
2754
  for (i = 1, a = d[0]; a >= 10; a /= 10) i++;
2755
2755
  if (o = e - i, o < 0)
2756
- o += T, s = e, l = d[f = 0], c = l / B(10, i - s - 1) % 10 | 0;
2756
+ o += T, s = e, l = d[f = 0], c = l / F(10, i - s - 1) % 10 | 0;
2757
2757
  else if (f = Math.ceil((o + 1) / T), a = d.length, f >= a)
2758
2758
  if (r) {
2759
2759
  for (; a++ <= f; ) d.push(0);
@@ -2762,12 +2762,12 @@ function E(t, e, n, r) {
2762
2762
  break e;
2763
2763
  else {
2764
2764
  for (l = a = d[f], i = 1; a >= 10; a /= 10) i++;
2765
- o %= T, s = o - T + i, c = s < 0 ? 0 : l / B(10, i - s - 1) % 10 | 0;
2765
+ o %= T, s = o - T + i, c = s < 0 ? 0 : l / F(10, i - s - 1) % 10 | 0;
2766
2766
  }
2767
- if (r = r || e < 0 || d[f + 1] !== void 0 || (s < 0 ? l : l % B(10, i - s - 1)), u = n < 4 ? (c || r) && (n == 0 || n == (t.s < 0 ? 3 : 2)) : c > 5 || c == 5 && (n == 4 || r || n == 6 && // Check whether the digit to the left of the rounding digit is odd.
2768
- (o > 0 ? s > 0 ? l / B(10, i - s) : 0 : d[f - 1]) % 10 & 1 || n == (t.s < 0 ? 8 : 7)), e < 1 || !d[0])
2769
- return d.length = 0, u ? (e -= t.e + 1, d[0] = B(10, (T - e % T) % T), t.e = -e || 0) : d[0] = t.e = 0, t;
2770
- if (o == 0 ? (d.length = f, a = 1, f--) : (d.length = f + 1, a = B(10, T - o), d[f] = s > 0 ? (l / B(10, i - s) % B(10, s) | 0) * a : 0), u)
2767
+ if (r = r || e < 0 || d[f + 1] !== void 0 || (s < 0 ? l : l % F(10, i - s - 1)), u = n < 4 ? (c || r) && (n == 0 || n == (t.s < 0 ? 3 : 2)) : c > 5 || c == 5 && (n == 4 || r || n == 6 && // Check whether the digit to the left of the rounding digit is odd.
2768
+ (o > 0 ? s > 0 ? l / F(10, i - s) : 0 : d[f - 1]) % 10 & 1 || n == (t.s < 0 ? 8 : 7)), e < 1 || !d[0])
2769
+ return d.length = 0, u ? (e -= t.e + 1, d[0] = F(10, (T - e % T) % T), t.e = -e || 0) : d[0] = t.e = 0, t;
2770
+ if (o == 0 ? (d.length = f, a = 1, f--) : (d.length = f + 1, a = F(10, T - o), d[f] = s > 0 ? (l / F(10, i - s) % F(10, s) | 0) * a : 0), u)
2771
2771
  for (; ; )
2772
2772
  if (f == 0) {
2773
2773
  for (o = 1, s = d[0]; s >= 10; s /= 10) o++;
@@ -2780,26 +2780,26 @@ function E(t, e, n, r) {
2780
2780
  }
2781
2781
  for (o = d.length; d[--o] === 0; ) d.pop();
2782
2782
  }
2783
- return L && (t.e > h.maxE ? (t.d = null, t.e = NaN) : t.e < h.minE && (t.e = 0, t.d = [0])), t;
2783
+ return C && (t.e > h.maxE ? (t.d = null, t.e = NaN) : t.e < h.minE && (t.e = 0, t.d = [0])), t;
2784
2784
  }
2785
2785
  function re(t, e, n) {
2786
2786
  if (!t.isFinite()) return Mn(t);
2787
2787
  var r, i = t.e, o = $(t.d), s = o.length;
2788
2788
  return e ? (n && (r = n - s) > 0 ? o = o.charAt(0) + "." + o.slice(1) + ae(r) : s > 1 && (o = o.charAt(0) + "." + o.slice(1)), o = o + (t.e < 0 ? "e" : "e+") + t.e) : i < 0 ? (o = "0." + ae(-i - 1) + o, n && (r = n - s) > 0 && (o += ae(r))) : i >= s ? (o += ae(i + 1 - s), n && (r = n - i - 1) > 0 && (o = o + "." + ae(r))) : ((r = i + 1) < s && (o = o.slice(0, r) + "." + o.slice(r)), n && (r = n - s) > 0 && (i + 1 === s && (o += "."), o += ae(r))), o;
2789
2789
  }
2790
- function je(t, e) {
2790
+ function ze(t, e) {
2791
2791
  var n = t[0];
2792
2792
  for (e *= T; n >= 10; n /= 10) e++;
2793
2793
  return e;
2794
2794
  }
2795
- function Ze(t, e, n) {
2795
+ function qe(t, e, n) {
2796
2796
  if (e > Jr)
2797
- throw L = !0, n && (t.precision = n), Error(En);
2798
- return E(new t(Ue), e, 1, !0);
2797
+ throw C = !0, n && (t.precision = n), Error(En);
2798
+ return E(new t($e), e, 1, !0);
2799
2799
  }
2800
2800
  function ne(t, e, n) {
2801
2801
  if (e > ct) throw Error(En);
2802
- return E(new t($e), e, n, !0);
2802
+ return E(new t(Ze), e, n, !0);
2803
2803
  }
2804
2804
  function Ln(t) {
2805
2805
  var e = t.length - 1, n = e * T + 1;
@@ -2815,14 +2815,14 @@ function ae(t) {
2815
2815
  }
2816
2816
  function An(t, e, n, r) {
2817
2817
  var i, o = new t(1), s = Math.ceil(r / T + 4);
2818
- for (L = !1; ; ) {
2818
+ for (C = !1; ; ) {
2819
2819
  if (n % 2 && (o = o.times(e), kt(o.d, s) && (i = !0)), n = q(n / 2), n === 0) {
2820
2820
  n = o.d.length - 1, i && o.d[n] === 0 && ++o.d[n];
2821
2821
  break;
2822
2822
  }
2823
2823
  e = e.times(e), kt(e.d, s);
2824
2824
  }
2825
- return L = !0, o;
2825
+ return C = !0, o;
2826
2826
  }
2827
2827
  function Nt(t) {
2828
2828
  return t.d[t.d.length - 1] & 1;
@@ -2838,42 +2838,42 @@ function xn(t, e, n) {
2838
2838
  return o;
2839
2839
  }
2840
2840
  function lt(t, e) {
2841
- var n, r, i, o, s, a, c, u = 0, l = 0, d = 0, f = t.constructor, h = f.rounding, g = f.precision;
2841
+ var n, r, i, o, s, a, c, u = 0, l = 0, d = 0, f = t.constructor, h = f.rounding, v = f.precision;
2842
2842
  if (!t.d || !t.d[0] || t.e > 17)
2843
2843
  return new f(t.d ? t.d[0] ? t.s < 0 ? 0 : 1 / 0 : 1 : t.s ? t.s < 0 ? 0 : t : NaN);
2844
- for (e == null ? (L = !1, c = g) : c = e, a = new f(0.03125); t.e > -2; )
2844
+ for (e == null ? (C = !1, c = v) : c = e, a = new f(0.03125); t.e > -2; )
2845
2845
  t = t.times(a), d += 5;
2846
- for (r = Math.log(B(2, d)) / Math.LN10 * 2 + 5 | 0, c += r, n = o = s = new f(1), f.precision = c; ; ) {
2846
+ for (r = Math.log(F(2, d)) / Math.LN10 * 2 + 5 | 0, c += r, n = o = s = new f(1), f.precision = c; ; ) {
2847
2847
  if (o = E(o.times(t), c, 1), n = n.times(++l), a = s.plus(N(o, n, c, 1)), $(a.d).slice(0, c) === $(s.d).slice(0, c)) {
2848
2848
  for (i = d; i--; ) s = E(s.times(s), c, 1);
2849
2849
  if (e == null)
2850
- if (u < 3 && xe(s.d, c - r, h, u))
2850
+ if (u < 3 && Me(s.d, c - r, h, u))
2851
2851
  f.precision = c += 10, n = o = a = new f(1), l = 0, u++;
2852
2852
  else
2853
- return E(s, f.precision = g, h, L = !0);
2853
+ return E(s, f.precision = v, h, C = !0);
2854
2854
  else
2855
- return f.precision = g, s;
2855
+ return f.precision = v, s;
2856
2856
  }
2857
2857
  s = a;
2858
2858
  }
2859
2859
  }
2860
2860
  function ue(t, e) {
2861
- var n, r, i, o, s, a, c, u, l, d, f, h = 1, g = 10, v = t, y = v.d, A = v.constructor, D = A.rounding, x = A.precision;
2862
- if (v.s < 0 || !y || !y[0] || !v.e && y[0] == 1 && y.length == 1)
2863
- return new A(y && !y[0] ? -1 / 0 : v.s != 1 ? NaN : y ? 0 : v);
2864
- if (e == null ? (L = !1, l = x) : l = e, A.precision = l += g, n = $(y), r = n.charAt(0), Math.abs(o = v.e) < 15e14) {
2861
+ var n, r, i, o, s, a, c, u, l, d, f, h = 1, v = 10, g = t, L = g.d, A = g.constructor, D = A.rounding, x = A.precision;
2862
+ if (g.s < 0 || !L || !L[0] || !g.e && L[0] == 1 && L.length == 1)
2863
+ return new A(L && !L[0] ? -1 / 0 : g.s != 1 ? NaN : L ? 0 : g);
2864
+ if (e == null ? (C = !1, l = x) : l = e, A.precision = l += v, n = $(L), r = n.charAt(0), Math.abs(o = g.e) < 15e14) {
2865
2865
  for (; r < 7 && r != 1 || r == 1 && n.charAt(1) > 3; )
2866
- v = v.times(t), n = $(v.d), r = n.charAt(0), h++;
2867
- o = v.e, r > 1 ? (v = new A("0." + n), o++) : v = new A(r + "." + n.slice(1));
2866
+ g = g.times(t), n = $(g.d), r = n.charAt(0), h++;
2867
+ o = g.e, r > 1 ? (g = new A("0." + n), o++) : g = new A(r + "." + n.slice(1));
2868
2868
  } else
2869
- return u = Ze(A, l + 2, x).times(o + ""), v = ue(new A(r + "." + n.slice(1)), l - g).plus(u), A.precision = x, e == null ? E(v, x, D, L = !0) : v;
2870
- for (d = v, c = s = v = N(v.minus(1), v.plus(1), l, 1), f = E(v.times(v), l, 1), i = 3; ; ) {
2869
+ return u = qe(A, l + 2, x).times(o + ""), g = ue(new A(r + "." + n.slice(1)), l - v).plus(u), A.precision = x, e == null ? E(g, x, D, C = !0) : g;
2870
+ for (d = g, c = s = g = N(g.minus(1), g.plus(1), l, 1), f = E(g.times(g), l, 1), i = 3; ; ) {
2871
2871
  if (s = E(s.times(f), l, 1), u = c.plus(N(s, new A(i), l, 1)), $(u.d).slice(0, l) === $(c.d).slice(0, l))
2872
- if (c = c.times(2), o !== 0 && (c = c.plus(Ze(A, l + 2, x).times(o + ""))), c = N(c, new A(h), l, 1), e == null)
2873
- if (xe(c.d, l - g, D, a))
2874
- A.precision = l += g, u = s = v = N(d.minus(1), d.plus(1), l, 1), f = E(v.times(v), l, 1), i = a = 1;
2872
+ if (c = c.times(2), o !== 0 && (c = c.plus(qe(A, l + 2, x).times(o + ""))), c = N(c, new A(h), l, 1), e == null)
2873
+ if (Me(c.d, l - v, D, a))
2874
+ A.precision = l += v, u = s = g = N(d.minus(1), d.plus(1), l, 1), f = E(g.times(g), l, 1), i = a = 1;
2875
2875
  else
2876
- return E(c, A.precision = x, D, L = !0);
2876
+ return E(c, A.precision = x, D, C = !0);
2877
2877
  else
2878
2878
  return A.precision = x, c;
2879
2879
  c = u, i += 2;
@@ -2882,7 +2882,7 @@ function ue(t, e) {
2882
2882
  function Mn(t) {
2883
2883
  return String(t.s * t.s / 0);
2884
2884
  }
2885
- function Ke(t, e) {
2885
+ function He(t, e) {
2886
2886
  var n, r, i;
2887
2887
  for ((n = e.indexOf(".")) > -1 && (e = e.replace(".", "")), (r = e.search(/e/i)) > 0 ? (n < 0 && (n = r), n += +e.slice(r + 1), e = e.substring(0, r)) : n < 0 && (n = e.length), r = 0; e.charCodeAt(r) === 48; r++) ;
2888
2888
  for (i = e.length; e.charCodeAt(i - 1) === 48; --i) ;
@@ -2893,7 +2893,7 @@ function Ke(t, e) {
2893
2893
  } else
2894
2894
  r -= i;
2895
2895
  for (; r--; ) e += "0";
2896
- t.d.push(+e), L && (t.e > t.constructor.maxE ? (t.d = null, t.e = NaN) : t.e < t.constructor.minE && (t.e = 0, t.d = [0]));
2896
+ t.d.push(+e), C && (t.e > t.constructor.maxE ? (t.d = null, t.e = NaN) : t.e < t.constructor.minE && (t.e = 0, t.d = [0]));
2897
2897
  } else
2898
2898
  t.e = 0, t.d = [0];
2899
2899
  return t;
@@ -2901,7 +2901,7 @@ function Ke(t, e) {
2901
2901
  function ti(t, e) {
2902
2902
  var n, r, i, o, s, a, c, u, l;
2903
2903
  if (e.indexOf("_") > -1) {
2904
- if (e = e.replace(/(\d)_(?=\d)/g, "$1"), Cn.test(e)) return Ke(t, e);
2904
+ if (e = e.replace(/(\d)_(?=\d)/g, "$1"), Cn.test(e)) return He(t, e);
2905
2905
  } else if (e === "Infinity" || e === "NaN")
2906
2906
  return +e || (t.s = NaN), t.e = NaN, t.d = null, t;
2907
2907
  if (zr.test(e))
@@ -2912,30 +2912,30 @@ function ti(t, e) {
2912
2912
  n = 8;
2913
2913
  else
2914
2914
  throw Error(le + e);
2915
- for (o = e.search(/p/i), o > 0 ? (c = +e.slice(o + 1), e = e.substring(2, o)) : e = e.slice(2), o = e.indexOf("."), s = o >= 0, r = t.constructor, s && (e = e.replace(".", ""), a = e.length, o = a - o, i = An(r, new r(n), o, o * 2)), u = Fe(e, n, ee), l = u.length - 1, o = l; u[o] === 0; --o) u.pop();
2916
- return o < 0 ? new r(t.s * 0) : (t.e = je(u, l), t.d = u, L = !1, s && (t = N(t, i, a * 4)), c && (t = t.times(Math.abs(c) < 54 ? B(2, c) : Ie.pow(2, c))), L = !0, t);
2915
+ for (o = e.search(/p/i), o > 0 ? (c = +e.slice(o + 1), e = e.substring(2, o)) : e = e.slice(2), o = e.indexOf("."), s = o >= 0, r = t.constructor, s && (e = e.replace(".", ""), a = e.length, o = a - o, i = An(r, new r(n), o, o * 2)), u = Ke(e, n, ee), l = u.length - 1, o = l; u[o] === 0; --o) u.pop();
2916
+ return o < 0 ? new r(t.s * 0) : (t.e = ze(u, l), t.d = u, C = !1, s && (t = N(t, i, a * 4)), c && (t = t.times(Math.abs(c) < 54 ? F(2, c) : _e.pow(2, c))), C = !0, t);
2917
2917
  }
2918
2918
  function ni(t, e) {
2919
2919
  var n, r = e.d.length;
2920
2920
  if (r < 3)
2921
- return e.isZero() ? e : Ce(t, 2, e, e);
2922
- n = 1.4 * Math.sqrt(r), n = n > 16 ? 16 : n | 0, e = e.times(1 / ze(5, n)), e = Ce(t, 2, e, e);
2921
+ return e.isZero() ? e : Le(t, 2, e, e);
2922
+ n = 1.4 * Math.sqrt(r), n = n > 16 ? 16 : n | 0, e = e.times(1 / Ye(5, n)), e = Le(t, 2, e, e);
2923
2923
  for (var i, o = new t(5), s = new t(16), a = new t(20); n--; )
2924
2924
  i = e.times(e), e = e.times(o.plus(i.times(s.times(i).minus(a))));
2925
2925
  return e;
2926
2926
  }
2927
- function Ce(t, e, n, r, i) {
2927
+ function Le(t, e, n, r, i) {
2928
2928
  var o, s, a, c, u = t.precision, l = Math.ceil(u / T);
2929
- for (L = !1, c = n.times(n), a = new t(r); ; ) {
2929
+ for (C = !1, c = n.times(n), a = new t(r); ; ) {
2930
2930
  if (s = N(a.times(c), new t(e++ * e++), u, 1), a = i ? r.plus(s) : r.minus(s), r = N(s.times(c), new t(e++ * e++), u, 1), s = a.plus(r), s.d[l] !== void 0) {
2931
2931
  for (o = l; s.d[o] === a.d[o] && o--; ) ;
2932
2932
  if (o == -1) break;
2933
2933
  }
2934
2934
  o = a, a = r, r = s, s = o;
2935
2935
  }
2936
- return L = !0, s.d.length = l + 1, s;
2936
+ return C = !0, s.d.length = l + 1, s;
2937
2937
  }
2938
- function ze(t, e) {
2938
+ function Ye(t, e) {
2939
2939
  for (var n = t; --e; ) n *= t;
2940
2940
  return n;
2941
2941
  }
@@ -2953,24 +2953,24 @@ function In(t, e) {
2953
2953
  return e.minus(i).abs();
2954
2954
  }
2955
2955
  function pt(t, e, n, r) {
2956
- var i, o, s, a, c, u, l, d, f, h = t.constructor, g = n !== void 0;
2957
- if (g ? (X(n, 1, he), r === void 0 ? r = h.rounding : X(r, 0, 8)) : (n = h.precision, r = h.rounding), !t.isFinite())
2956
+ var i, o, s, a, c, u, l, d, f, h = t.constructor, v = n !== void 0;
2957
+ if (v ? (X(n, 1, he), r === void 0 ? r = h.rounding : X(r, 0, 8)) : (n = h.precision, r = h.rounding), !t.isFinite())
2958
2958
  l = Mn(t);
2959
2959
  else {
2960
- for (l = re(t), s = l.indexOf("."), g ? (i = 2, e == 16 ? n = n * 4 - 3 : e == 8 && (n = n * 3 - 2)) : i = e, s >= 0 && (l = l.replace(".", ""), f = new h(1), f.e = l.length - s, f.d = Fe(re(f), 10, i), f.e = f.d.length), d = Fe(l, 10, i), o = c = d.length; d[--c] == 0; ) d.pop();
2960
+ for (l = re(t), s = l.indexOf("."), v ? (i = 2, e == 16 ? n = n * 4 - 3 : e == 8 && (n = n * 3 - 2)) : i = e, s >= 0 && (l = l.replace(".", ""), f = new h(1), f.e = l.length - s, f.d = Ke(re(f), 10, i), f.e = f.d.length), d = Ke(l, 10, i), o = c = d.length; d[--c] == 0; ) d.pop();
2961
2961
  if (!d[0])
2962
- l = g ? "0p+0" : "0";
2962
+ l = v ? "0p+0" : "0";
2963
2963
  else {
2964
2964
  if (s < 0 ? o-- : (t = new h(t), t.d = d, t.e = o, t = N(t, f, n, r, 0, i), d = t.d, o = t.e, u = Sn), s = d[n], a = i / 2, u = u || d[n + 1] !== void 0, u = r < 4 ? (s !== void 0 || u) && (r === 0 || r === (t.s < 0 ? 3 : 2)) : s > a || s === a && (r === 4 || u || r === 6 && d[n - 1] & 1 || r === (t.s < 0 ? 8 : 7)), d.length = n, u)
2965
2965
  for (; ++d[--n] > i - 1; )
2966
2966
  d[n] = 0, n || (++o, d.unshift(1));
2967
2967
  for (c = d.length; !d[c - 1]; --c) ;
2968
2968
  for (s = 0, l = ""; s < c; s++) l += at.charAt(d[s]);
2969
- if (g) {
2969
+ if (v) {
2970
2970
  if (c > 1)
2971
2971
  if (e == 16 || e == 8) {
2972
2972
  for (s = e == 16 ? 4 : 3, --c; c % s; c++) l += "0";
2973
- for (d = Fe(l, i, e), c = d.length; !d[c - 1]; --c) ;
2973
+ for (d = Ke(l, i, e), c = d.length; !d[c - 1]; --c) ;
2974
2974
  for (s = 1, l = "1."; s < c; s++) l += at.charAt(d[s]);
2975
2975
  } else
2976
2976
  l = l.charAt(0) + "." + l.slice(1);
@@ -3028,7 +3028,7 @@ function mi(t, e, n) {
3028
3028
  return new this(t).clamp(e, n);
3029
3029
  }
3030
3030
  function pi(t) {
3031
- if (!t || typeof t != "object") throw Error(Ge + "Object expected");
3031
+ if (!t || typeof t != "object") throw Error(je + "Object expected");
3032
3032
  var e, n, r, i = t.defaults === !0, o = [
3033
3033
  "precision",
3034
3034
  1,
@@ -3037,16 +3037,16 @@ function pi(t) {
3037
3037
  0,
3038
3038
  8,
3039
3039
  "toExpNeg",
3040
- -9e15,
3040
+ -Te,
3041
3041
  0,
3042
3042
  "toExpPos",
3043
3043
  0,
3044
- st,
3044
+ Te,
3045
3045
  "maxE",
3046
3046
  0,
3047
- st,
3047
+ Te,
3048
3048
  "minE",
3049
- -9e15,
3049
+ -Te,
3050
3050
  0,
3051
3051
  "modulo",
3052
3052
  0,
@@ -3081,7 +3081,7 @@ function _n(t) {
3081
3081
  var s, a, c, u = this;
3082
3082
  if (!(u instanceof i)) return new i(o);
3083
3083
  if (u.constructor = i, Rt(o)) {
3084
- u.s = o.s, L ? !o.d || o.e > i.maxE ? (u.e = NaN, u.d = null) : o.e < i.minE ? (u.e = 0, u.d = [0]) : (u.e = o.e, u.d = o.d.slice()) : (u.e = o.e, u.d = o.d ? o.d.slice() : o.d);
3084
+ u.s = o.s, C ? !o.d || o.e > i.maxE ? (u.e = NaN, u.d = null) : o.e < i.minE ? (u.e = 0, u.d = [0]) : (u.e = o.e, u.d = o.d.slice()) : (u.e = o.e, u.d = o.d ? o.d.slice() : o.d);
3085
3085
  return;
3086
3086
  }
3087
3087
  if (c = typeof o, c === "number") {
@@ -3091,29 +3091,29 @@ function _n(t) {
3091
3091
  }
3092
3092
  if (o < 0 ? (o = -o, u.s = -1) : u.s = 1, o === ~~o && o < 1e7) {
3093
3093
  for (s = 0, a = o; a >= 10; a /= 10) s++;
3094
- L ? s > i.maxE ? (u.e = NaN, u.d = null) : s < i.minE ? (u.e = 0, u.d = [0]) : (u.e = s, u.d = [o]) : (u.e = s, u.d = [o]);
3094
+ C ? s > i.maxE ? (u.e = NaN, u.d = null) : s < i.minE ? (u.e = 0, u.d = [0]) : (u.e = s, u.d = [o]) : (u.e = s, u.d = [o]);
3095
3095
  return;
3096
3096
  }
3097
3097
  if (o * 0 !== 0) {
3098
3098
  o || (u.s = NaN), u.e = NaN, u.d = null;
3099
3099
  return;
3100
3100
  }
3101
- return Ke(u, o.toString());
3101
+ return He(u, o.toString());
3102
3102
  }
3103
3103
  if (c === "string")
3104
- return (a = o.charCodeAt(0)) === 45 ? (o = o.slice(1), u.s = -1) : (a === 43 && (o = o.slice(1)), u.s = 1), Cn.test(o) ? Ke(u, o) : ti(u, o);
3104
+ return (a = o.charCodeAt(0)) === 45 ? (o = o.slice(1), u.s = -1) : (a === 43 && (o = o.slice(1)), u.s = 1), Cn.test(o) ? He(u, o) : ti(u, o);
3105
3105
  if (c === "bigint")
3106
- return o < 0 ? (o = -o, u.s = -1) : u.s = 1, Ke(u, o.toString());
3106
+ return o < 0 ? (o = -o, u.s = -1) : u.s = 1, He(u, o.toString());
3107
3107
  throw Error(le + o);
3108
3108
  }
3109
- if (i.prototype = m, i.ROUND_UP = 0, i.ROUND_DOWN = 1, i.ROUND_CEIL = 2, i.ROUND_FLOOR = 3, i.ROUND_HALF_UP = 4, i.ROUND_HALF_DOWN = 5, i.ROUND_HALF_EVEN = 6, i.ROUND_HALF_CEIL = 7, i.ROUND_HALF_FLOOR = 8, i.EUCLID = 9, i.config = i.set = pi, i.clone = _n, i.isDecimal = Rt, i.abs = ri, i.acos = ii, i.acosh = oi, i.add = si, i.asin = ai, i.asinh = ui, i.atan = ci, i.atanh = li, i.atan2 = di, i.cbrt = fi, i.ceil = hi, i.clamp = mi, i.cos = gi, i.cosh = vi, i.div = wi, i.exp = bi, i.floor = Si, i.hypot = Ei, i.ln = Ti, i.log = yi, i.log10 = Li, i.log2 = Ci, i.max = Ai, i.min = xi, i.mod = Mi, i.mul = Ii, i.pow = _i, i.random = Oi, i.round = Ni, i.sign = ki, i.sin = Ri, i.sinh = Di, i.sqrt = Vi, i.sub = Bi, i.sum = Fi, i.tan = Ki, i.tanh = Hi, i.trunc = Pi, t === void 0 && (t = {}), t && t.defaults !== !0)
3109
+ if (i.prototype = m, i.ROUND_UP = 0, i.ROUND_DOWN = 1, i.ROUND_CEIL = 2, i.ROUND_FLOOR = 3, i.ROUND_HALF_UP = 4, i.ROUND_HALF_DOWN = 5, i.ROUND_HALF_EVEN = 6, i.ROUND_HALF_CEIL = 7, i.ROUND_HALF_FLOOR = 8, i.EUCLID = 9, i.config = i.set = pi, i.clone = _n, i.isDecimal = Rt, i.abs = ri, i.acos = ii, i.acosh = oi, i.add = si, i.asin = ai, i.asinh = ui, i.atan = ci, i.atanh = li, i.atan2 = di, i.cbrt = fi, i.ceil = hi, i.clamp = mi, i.cos = gi, i.cosh = vi, i.div = bi, i.exp = wi, i.floor = Si, i.hypot = Ei, i.ln = Ti, i.log = yi, i.log10 = Li, i.log2 = Ci, i.max = Ai, i.min = xi, i.mod = Mi, i.mul = Ii, i.pow = _i, i.random = Oi, i.round = Ni, i.sign = ki, i.sin = Ri, i.sinh = Di, i.sqrt = Vi, i.sub = Fi, i.sum = Bi, i.tan = Ki, i.tanh = Hi, i.trunc = Pi, t === void 0 && (t = {}), t && t.defaults !== !0)
3110
3110
  for (r = ["precision", "rounding", "toExpNeg", "toExpPos", "maxE", "minE", "modulo", "crypto"], e = 0; e < r.length; ) t.hasOwnProperty(n = r[e++]) || (t[n] = this[n]);
3111
3111
  return i.config(t), i;
3112
3112
  }
3113
- function wi(t, e) {
3113
+ function bi(t, e) {
3114
3114
  return new this(t).div(e);
3115
3115
  }
3116
- function bi(t) {
3116
+ function wi(t) {
3117
3117
  return new this(t).exp();
3118
3118
  }
3119
3119
  function Si(t) {
@@ -3121,18 +3121,18 @@ function Si(t) {
3121
3121
  }
3122
3122
  function Ei() {
3123
3123
  var t, e, n = new this(0);
3124
- for (L = !1, t = 0; t < arguments.length; )
3124
+ for (C = !1, t = 0; t < arguments.length; )
3125
3125
  if (e = new this(arguments[t++]), e.d)
3126
3126
  n.d && (n = n.plus(e.times(e)));
3127
3127
  else {
3128
3128
  if (e.s)
3129
- return L = !0, new this(1 / 0);
3129
+ return C = !0, new this(1 / 0);
3130
3130
  n = e;
3131
3131
  }
3132
- return L = !0, n.sqrt();
3132
+ return C = !0, n.sqrt();
3133
3133
  }
3134
3134
  function Rt(t) {
3135
- return t instanceof Ie || t && t.toStringTag === yn || !1;
3135
+ return t instanceof _e || t && t.toStringTag === yn || !1;
3136
3136
  }
3137
3137
  function Ti(t) {
3138
3138
  return new this(t).ln();
@@ -3174,7 +3174,7 @@ function Oi(t) {
3174
3174
  } else
3175
3175
  throw Error(Tn);
3176
3176
  else for (; o < r; ) a[o++] = Math.random() * 1e7 | 0;
3177
- for (r = a[--o], t %= T, r && t && (i = B(10, T - t), a[o] = (r / i | 0) * i); a[o] === 0; o--) a.pop();
3177
+ for (r = a[--o], t %= T, r && t && (i = F(10, T - t), a[o] = (r / i | 0) * i); a[o] === 0; o--) a.pop();
3178
3178
  if (o < 0)
3179
3179
  n = 0, a = [0];
3180
3180
  else {
@@ -3199,13 +3199,13 @@ function Di(t) {
3199
3199
  function Vi(t) {
3200
3200
  return new this(t).sqrt();
3201
3201
  }
3202
- function Bi(t, e) {
3202
+ function Fi(t, e) {
3203
3203
  return new this(t).sub(e);
3204
3204
  }
3205
- function Fi() {
3205
+ function Bi() {
3206
3206
  var t = 0, e = arguments, n = new this(e[t]);
3207
- for (L = !1; n.s && ++t < e.length; ) n = n.plus(e[t]);
3208
- return L = !0, E(n, this.precision, this.rounding);
3207
+ for (C = !1; n.s && ++t < e.length; ) n = n.plus(e[t]);
3208
+ return C = !0, E(n, this.precision, this.rounding);
3209
3209
  }
3210
3210
  function Ki(t) {
3211
3211
  return new this(t).tan();
@@ -3218,19 +3218,19 @@ function Pi(t) {
3218
3218
  }
3219
3219
  m[Symbol.for("nodejs.util.inspect.custom")] = m.toString;
3220
3220
  m[Symbol.toStringTag] = "Decimal";
3221
- var Ie = m.constructor = _n(ut);
3222
- Ue = new Ie(Ue);
3223
- $e = new Ie($e);
3224
- class we {
3221
+ var _e = m.constructor = _n(ut);
3222
+ $e = new _e($e);
3223
+ Ze = new _e(Ze);
3224
+ class be {
3225
3225
  static formatToTimecode(e, n, r = !1) {
3226
- let i = new Ie(n), o, s = i.round();
3226
+ let i = new _e(n), o, s = i.round();
3227
3227
  o = i.mul(e).floor();
3228
- let a, c, u, l, d = s.mul(86400), f = o.mod(d), h = s.mul(3600), g = s.mul(60);
3229
- return l = f.divToInt(h), f = f.minus(l.mul(h)), u = f.divToInt(g), f = f.minus(u.mul(g)), c = f.divToInt(s), a = f.minus(c.mul(s)), we.formatTimecodeText(l.toNumber(), u.toNumber(), c.toNumber(), a.toNumber(), r);
3228
+ let a, c, u, l, d = s.mul(86400), f = o.mod(d), h = s.mul(3600), v = s.mul(60);
3229
+ return l = f.divToInt(h), f = f.minus(l.mul(h)), u = f.divToInt(v), f = f.minus(u.mul(v)), c = f.divToInt(s), a = f.minus(c.mul(s)), be.formatTimecodeText(l.toNumber(), u.toNumber(), c.toNumber(), a.toNumber(), r);
3230
3230
  }
3231
3231
  static formatTimecodeText(e, n, r, i, o = !1) {
3232
3232
  let s = o ? "." : ":";
3233
- return `${we.padZero(e)}:${we.padZero(n)}:${we.padZero(r)}${s}${we.padZero(i)}`;
3233
+ return `${be.padZero(e)}:${be.padZero(n)}:${be.padZero(r)}${s}${be.padZero(i)}`;
3234
3234
  }
3235
3235
  /**
3236
3236
  * Fast padding
@@ -3275,7 +3275,7 @@ const J = class J {
3275
3275
  }
3276
3276
  static formatTimeMomentToTimecodeText(e, n, r = !1) {
3277
3277
  let i = Ui.resolveFrameRateValueFromFraction(n);
3278
- return we.formatToTimecode(
3278
+ return be.formatToTimecode(
3279
3279
  J.timeMomentToSeconds(e),
3280
3280
  i,
3281
3281
  r
@@ -3509,18 +3509,18 @@ function Wi(t, e) {
3509
3509
  ({ streamInfo: l, mediaInfo: d }) => l && !d
3510
3510
  ), o = !1;
3511
3511
  for (let l = 0; l < t.length; l++) {
3512
- const { segments: d, metadata: f, streamInfo: h, mediaInfo: g } = t[l];
3513
- let v = f.targetDuration;
3514
- v === void 0 && (v = Math.max(
3512
+ const { segments: d, metadata: f, streamInfo: h, mediaInfo: v } = t[l];
3513
+ let g = f.targetDuration;
3514
+ g === void 0 && (g = Math.max(
3515
3515
  ...d.map((P) => P.duration),
3516
3516
  1
3517
3517
  ));
3518
- const y = new Dt().setVersion(f.version ?? 3).setIndependentSegments(f.independentSegments ?? !0).setTargetDuration(Math.ceil(v));
3519
- f.programDateTime && y.setProgramDateTime(f.programDateTime), f.playlistType && y.setPlaylistType(f.playlistType), d.forEach(
3520
- (P) => y.addSegment(P, P.uri === "http://byomakase.org/non-playable-gap")
3521
- ), y.setEndList();
3522
- const A = y.build(), D = Vt.write(A), x = new Blob([D], { type: "application/vnd.apple.mpegurl" }), k = URL.createObjectURL(x);
3523
- if (h && !g) {
3518
+ const L = new Dt().setVersion(f.version ?? 3).setIndependentSegments(f.independentSegments ?? !0).setTargetDuration(Math.ceil(g));
3519
+ f.programDateTime && L.setProgramDateTime(f.programDateTime), f.playlistType && L.setPlaylistType(f.playlistType), d.forEach(
3520
+ (P) => L.addSegment(P, P.uri === "http://byomakase.org/non-playable-gap")
3521
+ ), L.setEndList();
3522
+ const A = L.build(), D = Vt.write(A), x = new Blob([D], { type: "application/vnd.apple.mpegurl" }), k = URL.createObjectURL(x);
3523
+ if (h && !v) {
3524
3524
  const P = new dt(
3525
3525
  h.bandwidth,
3526
3526
  h.averageBandwidth,
@@ -3529,17 +3529,17 @@ function Wi(t, e) {
3529
3529
  k
3530
3530
  );
3531
3531
  r.addStreamInfo(P);
3532
- } else if (g) {
3532
+ } else if (v) {
3533
3533
  const P = new Zi(
3534
- g.type,
3535
- g.groupId ?? g.type.toLowerCase(),
3536
- g.name ?? "",
3537
- g.isDefault,
3538
- g.autoSelect,
3539
- g.channels,
3534
+ v.type,
3535
+ v.groupId ?? v.type.toLowerCase(),
3536
+ v.name ?? "",
3537
+ v.isDefault,
3538
+ v.autoSelect,
3539
+ v.channels,
3540
3540
  k
3541
3541
  );
3542
- if (r.addMedia(P), !i && g.type === "AUDIO" && !o) {
3542
+ if (r.addMedia(P), !i && v.type === "AUDIO" && !o) {
3543
3543
  const M = new dt(
3544
3544
  (h == null ? void 0 : h.bandwidth) ?? 0,
3545
3545
  (h == null ? void 0 : h.averageBandwidth) ?? 0,
@@ -3587,97 +3587,91 @@ function Xi(t) {
3587
3587
  ];
3588
3588
  });
3589
3589
  }
3590
- function Gi(t, e, n, r) {
3591
- const i = [], o = (a, c) => {
3592
- var f;
3593
- if (a.format !== "urn:x-nmos:format:video" && a.format !== "urn:x-nmos:format:audio")
3590
+ function Gi(t, e, n) {
3591
+ const r = [], i = (s, a) => {
3592
+ var d;
3593
+ if (s.format !== "urn:x-nmos:format:video" && s.format !== "urn:x-nmos:format:audio")
3594
3594
  return;
3595
- const u = ((f = Xi(c)) == null ? void 0 : f.map((h) => {
3596
- var v, y;
3597
- const g = U.timerangeExprDuration(h.timerange);
3595
+ const c = ((d = Xi(a)) == null ? void 0 : d.map((f) => {
3596
+ var v, g;
3597
+ const h = U.timerangeExprDuration(f.timerange);
3598
3598
  return new qi(
3599
- g,
3600
- ((y = (v = h.get_urls) == null ? void 0 : v.at(-1)) == null ? void 0 : y.url) ?? "http://byomakase.org/non-playable-gap"
3599
+ h,
3600
+ ((g = (v = f.get_urls) == null ? void 0 : v.at(-1)) == null ? void 0 : g.url) ?? "http://byomakase.org/non-playable-gap"
3601
3601
  );
3602
- })) ?? [], l = Math.max(
3603
- ...u.map((h) => h.duration),
3602
+ })) ?? [], u = Math.max(
3603
+ ...c.map((f) => f.duration),
3604
3604
  1
3605
- ), d = {
3605
+ ), l = {
3606
3606
  playlistType: "VOD",
3607
- targetDuration: Math.ceil(l),
3607
+ targetDuration: Math.ceil(u),
3608
3608
  version: 3,
3609
3609
  independentSegments: !0
3610
3610
  };
3611
- if (a.format === "urn:x-nmos:format:video") {
3612
- const g = a.essence_parameters, v = {
3613
- width: g.frame_width,
3614
- height: g.frame_height
3615
- }, y = g.frame_rate ? g.frame_rate.denominator ? g.frame_rate.numerator / g.frame_rate.denominator : g.frame_rate.numerator : null, A = new dt(
3616
- a.avg_bit_rate ?? 0,
3617
- a.avg_bit_rate ?? 0,
3611
+ if (s.format === "urn:x-nmos:format:video") {
3612
+ const h = s.essence_parameters, v = {
3613
+ width: h.frame_width,
3614
+ height: h.frame_height
3615
+ }, g = h.frame_rate ? h.frame_rate.denominator ? h.frame_rate.numerator / h.frame_rate.denominator : h.frame_rate.numerator : null, L = new dt(
3616
+ s.avg_bit_rate ?? 0,
3617
+ s.avg_bit_rate ?? 0,
3618
3618
  v,
3619
- y,
3619
+ g,
3620
3620
  ""
3621
3621
  // dummy, will be replaced by URI in exportSegmentsToManifest
3622
3622
  );
3623
- i.push({ segments: u, metadata: d, streamInfo: A });
3624
- } else if (a.format === "urn:x-nmos:format:audio") {
3625
- const g = a.essence_parameters, v = {
3623
+ r.push({ segments: c, metadata: l, streamInfo: L });
3624
+ } else if (s.format === "urn:x-nmos:format:audio") {
3625
+ const h = s.essence_parameters, v = {
3626
3626
  type: "AUDIO",
3627
3627
  groupId: "audio",
3628
- name: ve.isNullUndefinedOrWhitespace(a.description) ? "" : a.description,
3628
+ name: ve.isNullUndefinedOrWhitespace(s.description) ? "" : s.description,
3629
3629
  isDefault: !0,
3630
3630
  autoSelect: !0,
3631
- channels: g.channels.toString()
3632
- }, y = {
3633
- bandwidth: a.avg_bit_rate ?? 0,
3634
- averageBandwidth: a.avg_bit_rate ?? 0,
3631
+ channels: h.channels.toString()
3632
+ }, g = {
3633
+ bandwidth: s.avg_bit_rate ?? 0,
3634
+ averageBandwidth: s.avg_bit_rate ?? 0,
3635
3635
  resolution: null,
3636
3636
  frameRate: null,
3637
3637
  uri: ""
3638
3638
  // dummy
3639
3639
  };
3640
- i.push({ segments: u, metadata: d, mediaInfo: v, streamInfo: y });
3640
+ r.push({ segments: c, metadata: l, mediaInfo: v, streamInfo: g });
3641
3641
  }
3642
3642
  };
3643
- return t.format === "urn:x-nmos:format:multi" ? n == null || n.forEach((a) => {
3644
- const c = r == null ? void 0 : r.get(a.id);
3645
- o(a, c);
3646
- }) : o(t, e), Wi(i, {
3643
+ return t.format === "urn:x-nmos:format:multi" ? e == null || e.forEach((s) => {
3644
+ const a = n == null ? void 0 : n.get(s.id);
3645
+ i(s, a);
3646
+ }) : i(t, n == null ? void 0 : n.get(t.id)), Wi(r, {
3647
3647
  independentSegments: !0
3648
3648
  });
3649
3649
  }
3650
- const io = b.memo(
3650
+ const io = w.memo(
3651
3651
  function({
3652
3652
  flow: e,
3653
3653
  childFlows: n,
3654
- flowSegments: r,
3655
- childFlowsSegments: i,
3656
- videoLoadOptions: o,
3657
- onVideoLoadedCallback: s,
3658
- config: a,
3659
- timerange: c,
3660
- enableHotkey: u
3654
+ flowsSegments: r,
3655
+ videoLoadOptions: i,
3656
+ onVideoLoadedCallback: o,
3657
+ config: s,
3658
+ timerange: a,
3659
+ enableHotkey: c
3661
3660
  }) {
3662
- const l = Fn(() => Gi(
3663
- e,
3664
- r,
3665
- n,
3666
- i
3667
- ), [e, r, n, i, c]);
3668
- return /* @__PURE__ */ b.createElement(
3661
+ const u = Bn(() => Gi(e, n, r), [e, r, n, a]);
3662
+ return /* @__PURE__ */ w.createElement(
3669
3663
  Dr,
3670
3664
  {
3671
- videoUrl: l,
3672
- videoLoadOptions: o,
3673
- onVideoLoadedCallback: s,
3674
- config: a,
3675
- enableHotkeys: u
3665
+ videoUrl: u,
3666
+ videoLoadOptions: i,
3667
+ onVideoLoadedCallback: o,
3668
+ config: s,
3669
+ enableHotkeys: c
3676
3670
  }
3677
3671
  );
3678
3672
  }
3679
3673
  );
3680
- function De(t) {
3674
+ function Ve(t) {
3681
3675
  const e = new Date(t * 1e3), n = e.getUTCHours();
3682
3676
  let r = e.getUTCMinutes();
3683
3677
  return e.getUTCSeconds() >= 30 && r++, `${n}h ${r}min`;
@@ -3890,13 +3884,13 @@ const ji = `
3890
3884
  rangeSelectorDuration: "omakase-time-range-selector-range-selector-duration",
3891
3885
  buttonContainer: "omakase-time-range-selector-button-container",
3892
3886
  invisible: "omakase-time-range-selector-invisible"
3893
- }, Ve = {
3887
+ }, Fe = {
3894
3888
  leftHandle: "omakase-time-range-selector-range-selector-left-handle",
3895
3889
  rightHandle: "omakase-time-range-selector-range-selector-right-handle",
3896
3890
  rangeDuration: "omakase-time-range-selector-range-selector-range-duration",
3897
3891
  segments: "omakase-time-range-selector-segments"
3898
3892
  };
3899
- class Bt extends HTMLElement {
3893
+ class Ft extends HTMLElement {
3900
3894
  constructor() {
3901
3895
  super();
3902
3896
  S(this, "_container");
@@ -3962,7 +3956,7 @@ class Bt extends HTMLElement {
3962
3956
  });
3963
3957
  S(this, "updateDuration", () => {
3964
3958
  const { start: n, end: r } = this.getSliderValues(), i = r - n;
3965
- this._rangeSelectorRangeDisplay.textContent = De(i);
3959
+ this._rangeSelectorRangeDisplay.textContent = Ve(i);
3966
3960
  });
3967
3961
  S(this, "onXclick", () => {
3968
3962
  this.firstLabelIndex = this._initialFirstLabelIndex, this.resetSegments();
@@ -3982,16 +3976,16 @@ class Bt extends HTMLElement {
3982
3976
  let a = null, c = null;
3983
3977
  const u = (d) => {
3984
3978
  let f = d.clientX - r, h = Math.max(this.minWidth, i + f);
3985
- const g = Math.min(
3979
+ const v = Math.min(
3986
3980
  o * this.maxWidthPercent,
3987
3981
  o - s
3988
- ), v = h > g, y = performance.now();
3989
- v ? a === null && (a = y, c = window.setTimeout(() => {
3982
+ ), g = h > v, L = performance.now();
3983
+ g ? a === null && (a = L, c = window.setTimeout(() => {
3990
3984
  this.outOfBoundsCallback(!0), c = window.setInterval(
3991
3985
  () => this.outOfBoundsCallback(!0),
3992
3986
  400
3993
3987
  );
3994
- }, 500)) : (c !== null && (clearTimeout(c), clearInterval(c), c = null), a = null), h = Math.min(h, g), this._rangeSelector.style.width = `${h}px`, this.updateDuration();
3988
+ }, 500)) : (c !== null && (clearTimeout(c), clearInterval(c), c = null), a = null), h = Math.min(h, v), this._rangeSelector.style.width = `${h}px`, this.updateDuration();
3995
3989
  }, l = () => {
3996
3990
  this.showButtons(), document.removeEventListener("mousemove", u), document.removeEventListener("mouseup", l), c !== null && (clearTimeout(c), clearInterval(c), c = null), a = null;
3997
3991
  };
@@ -4003,18 +3997,18 @@ class Bt extends HTMLElement {
4003
3997
  let a = null, c = null;
4004
3998
  const u = (d) => {
4005
3999
  let f = d.clientX - r, h = i + f;
4006
- const g = h < 0, v = performance.now();
4007
- g ? a === null && (a = v, c = window.setTimeout(() => {
4000
+ const v = h < 0, g = performance.now();
4001
+ v ? a === null && (a = g, c = window.setTimeout(() => {
4008
4002
  this.outOfBoundsCallback(!1), c = window.setInterval(
4009
4003
  () => this.outOfBoundsCallback(!1),
4010
4004
  400
4011
4005
  );
4012
4006
  }, 500)) : (c !== null && (clearTimeout(c), clearInterval(c), c = null), a = null), h < 0 && (f = -i, h = 0);
4013
- let y = Math.min(
4007
+ let L = Math.min(
4014
4008
  Math.max(this.minWidth, o - f),
4015
4009
  s
4016
4010
  );
4017
- h + y > s && (h = s - y), y > this.minWidth && y < s * this.maxWidthPercent && (this._rangeSelector.style.left = `${h}px`, this._rangeSelector.style.width = `${y}px`), this.updateDuration();
4011
+ h + L > s && (h = s - L), L > this.minWidth && L < s * this.maxWidthPercent && (this._rangeSelector.style.left = `${h}px`, this._rangeSelector.style.width = `${L}px`), this.updateDuration();
4018
4012
  }, l = () => {
4019
4013
  this.showButtons(), document.removeEventListener("mousemove", u), document.removeEventListener("mouseup", l), c !== null && (clearTimeout(c), clearInterval(c), c = null), a = null;
4020
4014
  };
@@ -4031,11 +4025,11 @@ class Bt extends HTMLElement {
4031
4025
  let a = null, c = null;
4032
4026
  const u = (d) => {
4033
4027
  let f = d.clientX - r, h = i + f;
4034
- const g = s - o, v = h < 0 || h > g, y = performance.now();
4035
- if (v) {
4028
+ const v = s - o, g = h < 0 || h > v, L = performance.now();
4029
+ if (g) {
4036
4030
  if (a === null) {
4037
- const A = h > g;
4038
- a = y, c = window.setTimeout(() => {
4031
+ const A = h > v;
4032
+ a = L, c = window.setTimeout(() => {
4039
4033
  this.outOfBoundsCallback(A), c = window.setInterval(
4040
4034
  () => this.outOfBoundsCallback(A),
4041
4035
  400
@@ -4044,7 +4038,7 @@ class Bt extends HTMLElement {
4044
4038
  }
4045
4039
  } else
4046
4040
  c !== null && (clearTimeout(c), clearInterval(c), c = null), a = null;
4047
- h = Math.max(0, Math.min(h, g)), this._rangeSelector.style.left = `${h}px`, this.updateDuration();
4041
+ h = Math.max(0, Math.min(h, v)), this._rangeSelector.style.left = `${h}px`, this.updateDuration();
4048
4042
  }, l = () => {
4049
4043
  this.showButtons(), document.removeEventListener("mousemove", u), document.removeEventListener("mouseup", l), c !== null && (clearTimeout(c), clearInterval(c));
4050
4044
  };
@@ -4117,15 +4111,15 @@ class Bt extends HTMLElement {
4117
4111
  R.invisible
4118
4112
  );
4119
4113
  const s = this.createButtonSvg(zi), a = this.createButtonSvg(Yi);
4120
- s.onclick = this.onCheckmarkClick, a.onclick = this.onXclick, this._buttonContainer.append(s, a), this._container.append(this._buttonContainer), this._rangeSelector = document.createElement("div"), this._rangeSelector.classList.add(R.rangeSelector), this._rangeSelectorLeftHandle = document.createElement("div"), this._rangeSelectorLeftHandle.classList.add(R.rangeSelectorHandle), this._rangeSelectorLeftHandle.id = Ve.leftHandle, this._rangeSelectorRightHandle = document.createElement("div"), this._rangeSelectorRightHandle.classList.add(R.rangeSelectorHandle), this._rangeSelectorRightHandle.id = Ve.rightHandle, this._rangeSelectorRangeDisplay = document.createElement("div"), this._rangeSelectorRangeDisplay.classList.add(
4114
+ s.onclick = this.onCheckmarkClick, a.onclick = this.onXclick, this._buttonContainer.append(s, a), this._container.append(this._buttonContainer), this._rangeSelector = document.createElement("div"), this._rangeSelector.classList.add(R.rangeSelector), this._rangeSelectorLeftHandle = document.createElement("div"), this._rangeSelectorLeftHandle.classList.add(R.rangeSelectorHandle), this._rangeSelectorLeftHandle.id = Fe.leftHandle, this._rangeSelectorRightHandle = document.createElement("div"), this._rangeSelectorRightHandle.classList.add(R.rangeSelectorHandle), this._rangeSelectorRightHandle.id = Fe.rightHandle, this._rangeSelectorRangeDisplay = document.createElement("div"), this._rangeSelectorRangeDisplay.classList.add(
4121
4115
  R.rangeSelectorDuration
4122
- ), this._rangeSelectorRangeDisplay.id = Ve.rangeDuration, this._rangeSelector.append(
4116
+ ), this._rangeSelectorRangeDisplay.id = Fe.rangeDuration, this._rangeSelector.append(
4123
4117
  this._rangeSelectorLeftHandle,
4124
4118
  this._rangeSelectorRangeDisplay,
4125
4119
  this._rangeSelectorRightHandle
4126
4120
  ), this._container.append(this._rangeSelector), this._segments = this.buildSegments(
4127
4121
  this._labels.slice(this.firstLabelIndex, this.lastLabelIndex + 1)
4128
- ), this._segments.id = Ve.segments, this._segments.classList.add(R.segments), this._container.append(this._segments), this._rangeSelectorLeftHandle.addEventListener(
4122
+ ), this._segments.id = Fe.segments, this._segments.classList.add(R.segments), this._container.append(this._segments), this._rangeSelectorLeftHandle.addEventListener(
4129
4123
  "mousedown",
4130
4124
  this.onMouseDownLeft
4131
4125
  ), this._rangeSelectorRightHandle.addEventListener(
@@ -4167,7 +4161,7 @@ class Bt extends HTMLElement {
4167
4161
  const f = document.createElement("div");
4168
4162
  f.classList.add(R.segmentTick);
4169
4163
  const h = document.createElement("div");
4170
- h.classList.add(R.segmentLabel), h.innerHTML = De(u), l.append(d, f, h), r.append(l);
4164
+ h.classList.add(R.segmentLabel), h.innerHTML = Ve(u), l.append(d, f, h), r.append(l);
4171
4165
  });
4172
4166
  const i = document.createElement("div");
4173
4167
  i.classList.add(R.segment);
@@ -4179,12 +4173,12 @@ class Bt extends HTMLElement {
4179
4173
  a.classList.add(
4180
4174
  R.segmentLabel,
4181
4175
  R.firstSegmentLabel
4182
- ), a.innerHTML = De(n.at(-2));
4176
+ ), a.innerHTML = Ve(n.at(-2));
4183
4177
  const c = document.createElement("div");
4184
4178
  return c.classList.add(
4185
4179
  R.segmentLabel,
4186
4180
  R.secondSegmentLabel
4187
- ), c.innerHTML = De(n.at(-1)), i.append(
4181
+ ), c.innerHTML = Ve(n.at(-1)), i.append(
4188
4182
  o,
4189
4183
  s,
4190
4184
  a,
@@ -4192,7 +4186,7 @@ class Bt extends HTMLElement {
4192
4186
  ), r.append(i), r;
4193
4187
  }
4194
4188
  }
4195
- const Ft = "omakase-time-range-selector-react-div", oo = ({
4189
+ const Bt = "omakase-time-range-selector-react-div", oo = ({
4196
4190
  timeRange: t,
4197
4191
  maxTimeRange: e,
4198
4192
  numberOfSegments: n,
@@ -4201,19 +4195,19 @@ const Ft = "omakase-time-range-selector-react-div", oo = ({
4201
4195
  onCheckmarkClickCallback: o
4202
4196
  }) => (customElements.get("omakase-time-range-selector") || customElements.define(
4203
4197
  "omakase-time-range-selector",
4204
- Bt
4198
+ Ft
4205
4199
  ), Y(() => {
4206
4200
  var h;
4207
4201
  const s = U.parseTimeRange(e), a = U.timeMomentToSeconds(
4208
4202
  s.start
4209
4203
  ), c = U.timeMomentToSeconds(s.end), u = U.parseTimeRange(t), l = U.timeMomentToSeconds(
4210
4204
  u.start
4211
- ), d = U.timeMomentToSeconds(u.end), f = new Bt();
4205
+ ), d = U.timeMomentToSeconds(u.end), f = new Ft();
4212
4206
  f.setAttribute("minValue", a.toString()), f.setAttribute("maxValue", c.toString()), f.setAttribute("maxRange", i.toString()), f.setAttribute("segmentSize", r.toString()), f.setAttribute(
4213
4207
  "numberOfSegments",
4214
4208
  n.toString()
4215
- ), f.setAttribute("sliderStart", l.toString()), f.setAttribute("sliderEnd", d.toString()), f.onCheckmarkClickCallback = o, (h = document.getElementById(Ft)) == null || h.append(f);
4216
- }, []), /* @__PURE__ */ b.createElement("div", { id: Ft })), so = b.memo(
4209
+ ), f.setAttribute("sliderStart", l.toString()), f.setAttribute("sliderEnd", d.toString()), f.onCheckmarkClickCallback = o, (h = document.getElementById(Bt)) == null || h.append(f);
4210
+ }, []), /* @__PURE__ */ w.createElement("div", { id: Bt })), so = w.memo(
4217
4211
  ({
4218
4212
  omakasePlayer: t,
4219
4213
  config: e,
@@ -4227,7 +4221,7 @@ const Ft = "omakase-time-range-selector-react-div", oo = ({
4227
4221
  return () => {
4228
4222
  r.unsubscribe();
4229
4223
  };
4230
- }, [e.source]), /* @__PURE__ */ b.createElement("div", { id: e.markerListHTMLElementId }))
4224
+ }, [e.source]), /* @__PURE__ */ w.createElement("div", { id: e.markerListHTMLElementId }))
4231
4225
  );
4232
4226
  var Kt;
4233
4227
  ((t) => {
@@ -4342,7 +4336,7 @@ var jt;
4342
4336
  var zt;
4343
4337
  ((t) => {
4344
4338
  t.FormatEnum = {
4345
- UrnxNmosformatdata: "urn:x-nmos:format:image"
4339
+ UrnxNmosformatdata: "urn:x-tam:format:image"
4346
4340
  };
4347
4341
  })(zt || (zt = {}));
4348
4342
  export {
@@ -4363,7 +4357,7 @@ export {
4363
4357
  Zt as ServiceMediaStore,
4364
4358
  qt as Source,
4365
4359
  U as TimeRangeUtil,
4366
- we as TimecodeUtil,
4360
+ be as TimecodeUtil,
4367
4361
  Wt as UncompressedAudioParameters,
4368
4362
  Xt as UncompressedVideoParameters,
4369
4363
  Gt as VideoFlow,