@byomakase/omakase-react-components 1.1.1 → 1.2.0-SNAPSHOT.1764084568

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,9 +1,9 @@
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 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
- class to {
4
+ import { MarkerLane as Yt, ThumbnailLane as Vn, LabelLane as Fn, SubtitlesLane as Bn, OmakasePlayer as Kn, PeriodMarker as H } from "@byomakase/omakase-player";
5
+ import w, { useEffect as Y, useRef as et, useState as pe, useMemo as Hn } from "react";
6
+ class ro {
7
7
  constructor(e) {
8
8
  S(this, "_lanes", []);
9
9
  S(this, "_markersLaneMap", /* @__PURE__ */ new Map());
@@ -30,6 +30,20 @@ class to {
30
30
  };
31
31
  this._lanes.push(n);
32
32
  }
33
+ addLabelLane(e) {
34
+ const n = {
35
+ config: e,
36
+ type: "label"
37
+ };
38
+ this._lanes.push(n);
39
+ }
40
+ addSubtitlesLane(e) {
41
+ const n = {
42
+ config: e,
43
+ type: "subtitles"
44
+ };
45
+ this._lanes.push(n);
46
+ }
33
47
  buildAndAttachTimeline(e) {
34
48
  this.omakasePlayer.createTimeline(e).subscribe({
35
49
  next: (n) => {
@@ -48,30 +62,30 @@ class to {
48
62
  r = new Yt(n.config), e.addTimelineLane(r);
49
63
  const o = this._markersLaneMap.get(r.id);
50
64
  o == null || o.forEach((s) => r.addMarker(s));
51
- } else n.type === "thumbnail" && (r = new Vn(n.config), e.addTimelineLane(r));
65
+ } else n.type === "thumbnail" ? (r = new Vn(n.config), e.addTimelineLane(r)) : n.type === "label" ? (r = new Fn(n.config), e.addTimelineLane(r)) : n.type === "subtitles" && (r = new Bn(n.config), e.addTimelineLane(r));
52
66
  const i = this._laneNodenMap.get(r.id);
53
67
  i == null || i.forEach((o) => {
54
68
  r.addTimelineNode(o.config);
55
69
  });
56
70
  }
57
71
  }
58
- var rt = function(t, e) {
59
- return rt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
72
+ var nt = function(t, e) {
73
+ return nt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
60
74
  n.__proto__ = r;
61
75
  } || function(n, r) {
62
76
  for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
63
- }, rt(t, e);
77
+ }, nt(t, e);
64
78
  };
65
- function Ie(t, e) {
79
+ function Me(t, e) {
66
80
  if (typeof e != "function" && e !== null)
67
81
  throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
68
- rt(t, e);
82
+ nt(t, e);
69
83
  function n() {
70
84
  this.constructor = t;
71
85
  }
72
86
  t.prototype = e === null ? Object.create(e) : (n.prototype = e.prototype, new n());
73
87
  }
74
- function Kn(t, e, n, r) {
88
+ function Pn(t, e, n, r) {
75
89
  function i(o) {
76
90
  return o instanceof n ? o : new n(function(s) {
77
91
  s(o);
@@ -158,7 +172,7 @@ function Qt(t, e) {
158
172
  return { value: c[0] ? c[1] : void 0, done: !0 };
159
173
  }
160
174
  }
161
- function Ce(t) {
175
+ function ye(t) {
162
176
  var e = typeof Symbol == "function" && Symbol.iterator, n = e && t[e], r = 0;
163
177
  if (n) return n.call(t);
164
178
  if (t && typeof t.length == "number") return {
@@ -168,7 +182,7 @@ function Ce(t) {
168
182
  };
169
183
  throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
170
184
  }
171
- function Pe(t, e) {
185
+ function He(t, e) {
172
186
  var n = typeof Symbol == "function" && t[Symbol.iterator];
173
187
  if (!n) return t;
174
188
  var r = n.call(t), i, o = [], s;
@@ -185,15 +199,15 @@ function Pe(t, e) {
185
199
  }
186
200
  return o;
187
201
  }
188
- function Ue(t, e, n) {
202
+ function Pe(t, e, n) {
189
203
  if (n || arguments.length === 2) for (var r = 0, i = e.length, o; r < i; r++)
190
204
  (o || !(r in e)) && (o || (o = Array.prototype.slice.call(e, 0, r)), o[r] = e[r]);
191
205
  return t.concat(o || Array.prototype.slice.call(e));
192
206
  }
193
- function ye(t) {
194
- return this instanceof ye ? (this.v = t, this) : new ye(t);
207
+ function Te(t) {
208
+ return this instanceof Te ? (this.v = t, this) : new Te(t);
195
209
  }
196
- function Hn(t, e, n) {
210
+ function Un(t, e, n) {
197
211
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
198
212
  var r = n.apply(t, e || []), i, o = [];
199
213
  return i = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), a("next"), a("throw"), a("return", s), i[Symbol.asyncIterator] = function() {
@@ -219,7 +233,7 @@ function Hn(t, e, n) {
219
233
  }
220
234
  }
221
235
  function c(h) {
222
- h.value instanceof ye ? Promise.resolve(h.value.v).then(l, d) : f(o[0][2], h);
236
+ h.value instanceof Te ? Promise.resolve(h.value.v).then(l, d) : f(o[0][2], h);
223
237
  }
224
238
  function l(h) {
225
239
  u("next", h);
@@ -231,10 +245,10 @@ function Hn(t, e, n) {
231
245
  h(v), o.shift(), o.length && u(o[0][0], o[0][1]);
232
246
  }
233
247
  }
234
- function Pn(t) {
248
+ function $n(t) {
235
249
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
236
250
  var e = t[Symbol.asyncIterator], n;
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() {
251
+ 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() {
238
252
  return this;
239
253
  }, n);
240
254
  function r(o) {
@@ -259,7 +273,7 @@ function ft(t) {
259
273
  }, n = t(e);
260
274
  return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
261
275
  }
262
- var nt = ft(function(t) {
276
+ var tt = ft(function(t) {
263
277
  return function(n) {
264
278
  t(this), this.message = n ? n.length + ` errors occurred during unsubscription:
265
279
  ` + n.map(function(r, i) {
@@ -268,13 +282,13 @@ var nt = ft(function(t) {
268
282
  `) : "", this.name = "UnsubscriptionError", this.errors = n;
269
283
  };
270
284
  });
271
- function it(t, e) {
285
+ function rt(t, e) {
272
286
  if (t) {
273
287
  var n = t.indexOf(e);
274
288
  0 <= n && t.splice(n, 1);
275
289
  }
276
290
  }
277
- var We = function() {
291
+ var qe = function() {
278
292
  function t(e) {
279
293
  this.initialTeardown = e, this.closed = !1, this._parentage = null, this._finalizers = null;
280
294
  }
@@ -286,7 +300,7 @@ var We = function() {
286
300
  if (s)
287
301
  if (this._parentage = null, Array.isArray(s))
288
302
  try {
289
- for (var a = Ce(s), u = a.next(); !u.done; u = a.next()) {
303
+ for (var a = ye(s), u = a.next(); !u.done; u = a.next()) {
290
304
  var c = u.value;
291
305
  c.remove(this);
292
306
  }
@@ -306,18 +320,18 @@ var We = function() {
306
320
  try {
307
321
  l();
308
322
  } catch (g) {
309
- o = g instanceof nt ? g.errors : [g];
323
+ o = g instanceof tt ? g.errors : [g];
310
324
  }
311
325
  var d = this._finalizers;
312
326
  if (d) {
313
327
  this._finalizers = null;
314
328
  try {
315
- for (var f = Ce(d), h = f.next(); !h.done; h = f.next()) {
329
+ for (var f = ye(d), h = f.next(); !h.done; h = f.next()) {
316
330
  var v = h.value;
317
331
  try {
318
332
  At(v);
319
333
  } catch (g) {
320
- o = o ?? [], g instanceof nt ? o = Ue(Ue([], Pe(o)), Pe(g.errors)) : o.push(g);
334
+ o = o ?? [], g instanceof tt ? o = Pe(Pe([], He(o)), He(g.errors)) : o.push(g);
321
335
  }
322
336
  }
323
337
  } catch (g) {
@@ -331,7 +345,7 @@ var We = function() {
331
345
  }
332
346
  }
333
347
  if (o)
334
- throw new nt(o);
348
+ throw new tt(o);
335
349
  }
336
350
  }, t.prototype.add = function(e) {
337
351
  var n;
@@ -354,28 +368,28 @@ var We = function() {
354
368
  this._parentage = Array.isArray(n) ? (n.push(e), n) : n ? [n, e] : e;
355
369
  }, t.prototype._removeParent = function(e) {
356
370
  var n = this._parentage;
357
- n === e ? this._parentage = null : Array.isArray(n) && it(n, e);
371
+ n === e ? this._parentage = null : Array.isArray(n) && rt(n, e);
358
372
  }, t.prototype.remove = function(e) {
359
373
  var n = this._finalizers;
360
- n && it(n, e), e instanceof t && e._removeParent(this);
374
+ n && rt(n, e), e instanceof t && e._removeParent(this);
361
375
  }, t.EMPTY = function() {
362
376
  var e = new t();
363
377
  return e.closed = !0, e;
364
378
  }(), t;
365
- }(), Jt = We.EMPTY;
379
+ }(), Jt = qe.EMPTY;
366
380
  function en(t) {
367
- return t instanceof We || t && "closed" in t && B(t.remove) && B(t.add) && B(t.unsubscribe);
381
+ return t instanceof qe || t && "closed" in t && B(t.remove) && B(t.add) && B(t.unsubscribe);
368
382
  }
369
383
  function At(t) {
370
384
  B(t) ? t() : t.unsubscribe();
371
385
  }
372
- var Un = {
386
+ var Zn = {
373
387
  Promise: void 0
374
- }, $n = {
388
+ }, qn = {
375
389
  setTimeout: function(t, e) {
376
390
  for (var n = [], r = 2; r < arguments.length; r++)
377
391
  n[r - 2] = arguments[r];
378
- return setTimeout.apply(void 0, Ue([t, e], Pe(n)));
392
+ return setTimeout.apply(void 0, Pe([t, e], He(n)));
379
393
  },
380
394
  clearTimeout: function(t) {
381
395
  return clearTimeout(t);
@@ -383,23 +397,23 @@ var Un = {
383
397
  delegate: void 0
384
398
  };
385
399
  function tn(t) {
386
- $n.setTimeout(function() {
400
+ qn.setTimeout(function() {
387
401
  throw t;
388
402
  });
389
403
  }
390
- function ot() {
404
+ function it() {
391
405
  }
392
- function Be(t) {
406
+ function Fe(t) {
393
407
  t();
394
408
  }
395
409
  var ht = function(t) {
396
- Ie(e, t);
410
+ Me(e, t);
397
411
  function e(n) {
398
412
  var r = t.call(this) || this;
399
- return r.isStopped = !1, n ? (r.destination = n, en(n) && n.add(r)) : r.destination = Wn, r;
413
+ return r.isStopped = !1, n ? (r.destination = n, en(n) && n.add(r)) : r.destination = Gn, r;
400
414
  }
401
415
  return e.create = function(n, r, i) {
402
- return new st(n, r, i);
416
+ return new ot(n, r, i);
403
417
  }, e.prototype.next = function(n) {
404
418
  this.isStopped || this._next(n);
405
419
  }, e.prototype.error = function(n) {
@@ -423,7 +437,7 @@ var ht = function(t) {
423
437
  this.unsubscribe();
424
438
  }
425
439
  }, e;
426
- }(We), Zn = function() {
440
+ }(qe), Wn = function() {
427
441
  function t(e) {
428
442
  this.partialObserver = e;
429
443
  }
@@ -433,7 +447,7 @@ var ht = function(t) {
433
447
  try {
434
448
  n.next(e);
435
449
  } catch (r) {
436
- Ne(r);
450
+ Oe(r);
437
451
  }
438
452
  }, t.prototype.error = function(e) {
439
453
  var n = this.partialObserver;
@@ -441,50 +455,50 @@ var ht = function(t) {
441
455
  try {
442
456
  n.error(e);
443
457
  } catch (r) {
444
- Ne(r);
458
+ Oe(r);
445
459
  }
446
460
  else
447
- Ne(e);
461
+ Oe(e);
448
462
  }, t.prototype.complete = function() {
449
463
  var e = this.partialObserver;
450
464
  if (e.complete)
451
465
  try {
452
466
  e.complete();
453
467
  } catch (n) {
454
- Ne(n);
468
+ Oe(n);
455
469
  }
456
470
  }, t;
457
- }(), st = function(t) {
458
- Ie(e, t);
471
+ }(), ot = function(t) {
472
+ Me(e, t);
459
473
  function e(n, r, i) {
460
474
  var o = t.call(this) || this, s;
461
475
  return B(n) || !n ? s = {
462
476
  next: n ?? void 0,
463
477
  error: r ?? void 0,
464
478
  complete: i ?? void 0
465
- } : s = n, o.destination = new Zn(s), o;
479
+ } : s = n, o.destination = new Wn(s), o;
466
480
  }
467
481
  return e;
468
482
  }(ht);
469
- function Ne(t) {
483
+ function Oe(t) {
470
484
  tn(t);
471
485
  }
472
- function qn(t) {
486
+ function Xn(t) {
473
487
  throw t;
474
488
  }
475
- var Wn = {
489
+ var Gn = {
476
490
  closed: !0,
477
- next: ot,
478
- error: qn,
479
- complete: ot
491
+ next: it,
492
+ error: Xn,
493
+ complete: it
480
494
  }, mt = function() {
481
495
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
482
496
  }();
483
- function Xe(t) {
497
+ function We(t) {
484
498
  return t;
485
499
  }
486
- function Xn(t) {
487
- return t.length === 0 ? Xe : t.length === 1 ? t[0] : function(n) {
500
+ function jn(t) {
501
+ return t.length === 0 ? We : t.length === 1 ? t[0] : function(n) {
488
502
  return t.reduce(function(r, i) {
489
503
  return i(r);
490
504
  }, n);
@@ -498,8 +512,8 @@ var j = function() {
498
512
  var n = new t();
499
513
  return n.source = this, n.operator = e, n;
500
514
  }, t.prototype.subscribe = function(e, n, r) {
501
- var i = this, o = jn(e) ? e : new st(e, n, r);
502
- return Be(function() {
515
+ var i = this, o = Yn(e) ? e : new ot(e, n, r);
516
+ return Fe(function() {
503
517
  var s = i, a = s.operator, u = s.source;
504
518
  o.add(a ? a.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
505
519
  }), o;
@@ -512,7 +526,7 @@ var j = function() {
512
526
  }, t.prototype.forEach = function(e, n) {
513
527
  var r = this;
514
528
  return n = Mt(n), new n(function(i, o) {
515
- var s = new st({
529
+ var s = new ot({
516
530
  next: function(a) {
517
531
  try {
518
532
  e(a);
@@ -533,7 +547,7 @@ var j = function() {
533
547
  }, t.prototype.pipe = function() {
534
548
  for (var e = [], n = 0; n < arguments.length; n++)
535
549
  e[n] = arguments[n];
536
- return Xn(e)(this);
550
+ return jn(e)(this);
537
551
  }, t.prototype.toPromise = function(e) {
538
552
  var n = this;
539
553
  return e = Mt(e), new e(function(r, i) {
@@ -552,20 +566,20 @@ var j = function() {
552
566
  }();
553
567
  function Mt(t) {
554
568
  var e;
555
- return (e = t ?? Un.Promise) !== null && e !== void 0 ? e : Promise;
569
+ return (e = t ?? Zn.Promise) !== null && e !== void 0 ? e : Promise;
556
570
  }
557
- function Gn(t) {
571
+ function zn(t) {
558
572
  return t && B(t.next) && B(t.error) && B(t.complete);
559
573
  }
560
- function jn(t) {
561
- return t && t instanceof ht || Gn(t) && en(t);
574
+ function Yn(t) {
575
+ return t && t instanceof ht || zn(t) && en(t);
562
576
  }
563
- function zn(t) {
577
+ function Qn(t) {
564
578
  return B(t == null ? void 0 : t.lift);
565
579
  }
566
580
  function de(t) {
567
581
  return function(e) {
568
- if (zn(e))
582
+ if (Qn(e))
569
583
  return e.lift(function(n) {
570
584
  try {
571
585
  return t(n, this);
@@ -577,10 +591,10 @@ function de(t) {
577
591
  };
578
592
  }
579
593
  function fe(t, e, n, r, i) {
580
- return new Yn(t, e, n, r, i);
594
+ return new Jn(t, e, n, r, i);
581
595
  }
582
- var Yn = function(t) {
583
- Ie(e, t);
596
+ var Jn = function(t) {
597
+ Me(e, t);
584
598
  function e(n, r, i, o, s, a) {
585
599
  var u = t.call(this, n) || this;
586
600
  return u.onFinalize = s, u.shouldUnsubscribe = a, u._next = r ? function(c) {
@@ -614,12 +628,12 @@ var Yn = function(t) {
614
628
  t.prototype.unsubscribe.call(this), !r && ((n = this.onFinalize) === null || n === void 0 || n.call(this));
615
629
  }
616
630
  }, e;
617
- }(ht), Qn = ft(function(t) {
631
+ }(ht), er = ft(function(t) {
618
632
  return function() {
619
633
  t(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
620
634
  };
621
635
  }), ge = function(t) {
622
- Ie(e, t);
636
+ Me(e, t);
623
637
  function e() {
624
638
  var n = t.call(this) || this;
625
639
  return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
@@ -629,15 +643,15 @@ var Yn = function(t) {
629
643
  return r.operator = n, r;
630
644
  }, e.prototype._throwIfClosed = function() {
631
645
  if (this.closed)
632
- throw new Qn();
646
+ throw new er();
633
647
  }, e.prototype.next = function(n) {
634
648
  var r = this;
635
- Be(function() {
649
+ Fe(function() {
636
650
  var i, o;
637
651
  if (r._throwIfClosed(), !r.isStopped) {
638
652
  r.currentObservers || (r.currentObservers = Array.from(r.observers));
639
653
  try {
640
- for (var s = Ce(r.currentObservers), a = s.next(); !a.done; a = s.next()) {
654
+ for (var s = ye(r.currentObservers), a = s.next(); !a.done; a = s.next()) {
641
655
  var u = a.value;
642
656
  u.next(n);
643
657
  }
@@ -654,7 +668,7 @@ var Yn = function(t) {
654
668
  });
655
669
  }, e.prototype.error = function(n) {
656
670
  var r = this;
657
- Be(function() {
671
+ Fe(function() {
658
672
  if (r._throwIfClosed(), !r.isStopped) {
659
673
  r.hasError = r.isStopped = !0, r.thrownError = n;
660
674
  for (var i = r.observers; i.length; )
@@ -663,7 +677,7 @@ var Yn = function(t) {
663
677
  });
664
678
  }, e.prototype.complete = function() {
665
679
  var n = this;
666
- Be(function() {
680
+ Fe(function() {
667
681
  if (n._throwIfClosed(), !n.isStopped) {
668
682
  n.isStopped = !0;
669
683
  for (var r = n.observers; r.length; )
@@ -685,8 +699,8 @@ var Yn = function(t) {
685
699
  return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
686
700
  }, e.prototype._innerSubscribe = function(n) {
687
701
  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 We(function() {
689
- r.currentObservers = null, it(a, n);
702
+ return o || s ? Jt : (this.currentObservers = null, a.push(n), new qe(function() {
703
+ r.currentObservers = null, rt(a, n);
690
704
  }));
691
705
  }, e.prototype._checkFinalizedStatuses = function(n) {
692
706
  var r = this, i = r.hasError, o = r.thrownError, s = r.isStopped;
@@ -698,7 +712,7 @@ var Yn = function(t) {
698
712
  return new It(n, r);
699
713
  }, e;
700
714
  }(j), It = function(t) {
701
- Ie(e, t);
715
+ Me(e, t);
702
716
  function e(n, r) {
703
717
  var i = t.call(this) || this;
704
718
  return i.destination = n, i.source = r, i;
@@ -716,20 +730,20 @@ var Yn = function(t) {
716
730
  var r, i;
717
731
  return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : Jt;
718
732
  }, e;
719
- }(ge), Jn = new j(function(t) {
733
+ }(ge), tr = new j(function(t) {
720
734
  return t.complete();
721
735
  });
722
- function er(t) {
736
+ function nr(t) {
723
737
  return t && B(t.schedule);
724
738
  }
725
739
  function nn(t) {
726
740
  return t[t.length - 1];
727
741
  }
728
- function tr(t) {
742
+ function rr(t) {
729
743
  return B(nn(t)) ? t.pop() : void 0;
730
744
  }
731
- function nr(t) {
732
- return er(nn(t)) ? t.pop() : void 0;
745
+ function ir(t) {
746
+ return nr(nn(t)) ? t.pop() : void 0;
733
747
  }
734
748
  var rn = function(t) {
735
749
  return t && typeof t.length == "number" && typeof t != "function";
@@ -746,15 +760,15 @@ function an(t) {
746
760
  function un(t) {
747
761
  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.");
748
762
  }
749
- function rr() {
763
+ function or() {
750
764
  return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
751
765
  }
752
- var cn = rr();
766
+ var cn = or();
753
767
  function ln(t) {
754
768
  return B(t == null ? void 0 : t[cn]);
755
769
  }
756
770
  function dn(t) {
757
- return Hn(this, arguments, function() {
771
+ return Un(this, arguments, function() {
758
772
  var n, r, i, o;
759
773
  return Qt(this, function(s) {
760
774
  switch (s.label) {
@@ -763,13 +777,13 @@ function dn(t) {
763
777
  case 1:
764
778
  s.trys.push([1, , 9, 10]), s.label = 2;
765
779
  case 2:
766
- return [4, ye(n.read())];
780
+ return [4, Te(n.read())];
767
781
  case 3:
768
- return r = s.sent(), i = r.value, o = r.done, o ? [4, ye(void 0)] : [3, 5];
782
+ return r = s.sent(), i = r.value, o = r.done, o ? [4, Te(void 0)] : [3, 5];
769
783
  case 4:
770
784
  return [2, s.sent()];
771
785
  case 5:
772
- return [4, ye(i)];
786
+ return [4, Te(i)];
773
787
  case 6:
774
788
  return [4, s.sent()];
775
789
  case 7:
@@ -787,26 +801,26 @@ function dn(t) {
787
801
  function fn(t) {
788
802
  return B(t == null ? void 0 : t.getReader);
789
803
  }
790
- function Ge(t) {
804
+ function Xe(t) {
791
805
  if (t instanceof j)
792
806
  return t;
793
807
  if (t != null) {
794
808
  if (sn(t))
795
- return ir(t);
809
+ return sr(t);
796
810
  if (rn(t))
797
- return or(t);
811
+ return ar(t);
798
812
  if (on(t))
799
- return sr(t);
813
+ return ur(t);
800
814
  if (an(t))
801
815
  return hn(t);
802
816
  if (ln(t))
803
- return ar(t);
817
+ return cr(t);
804
818
  if (fn(t))
805
- return ur(t);
819
+ return lr(t);
806
820
  }
807
821
  throw un(t);
808
822
  }
809
- function ir(t) {
823
+ function sr(t) {
810
824
  return new j(function(e) {
811
825
  var n = t[mt]();
812
826
  if (B(n.subscribe))
@@ -814,14 +828,14 @@ function ir(t) {
814
828
  throw new TypeError("Provided object does not correctly implement Symbol.observable");
815
829
  });
816
830
  }
817
- function or(t) {
831
+ function ar(t) {
818
832
  return new j(function(e) {
819
833
  for (var n = 0; n < t.length && !e.closed; n++)
820
834
  e.next(t[n]);
821
835
  e.complete();
822
836
  });
823
837
  }
824
- function sr(t) {
838
+ function ur(t) {
825
839
  return new j(function(e) {
826
840
  t.then(function(n) {
827
841
  e.closed || (e.next(n), e.complete());
@@ -830,11 +844,11 @@ function sr(t) {
830
844
  }).then(null, tn);
831
845
  });
832
846
  }
833
- function ar(t) {
847
+ function cr(t) {
834
848
  return new j(function(e) {
835
849
  var n, r;
836
850
  try {
837
- for (var i = Ce(t), o = i.next(); !o.done; o = i.next()) {
851
+ for (var i = ye(t), o = i.next(); !o.done; o = i.next()) {
838
852
  var s = o.value;
839
853
  if (e.next(s), e.closed)
840
854
  return;
@@ -853,22 +867,22 @@ function ar(t) {
853
867
  }
854
868
  function hn(t) {
855
869
  return new j(function(e) {
856
- cr(t, e).catch(function(n) {
870
+ dr(t, e).catch(function(n) {
857
871
  return e.error(n);
858
872
  });
859
873
  });
860
874
  }
861
- function ur(t) {
875
+ function lr(t) {
862
876
  return hn(dn(t));
863
877
  }
864
- function cr(t, e) {
878
+ function dr(t, e) {
865
879
  var n, r, i, o;
866
- return Kn(this, void 0, void 0, function() {
880
+ return Pn(this, void 0, void 0, function() {
867
881
  var s, a;
868
882
  return Qt(this, function(u) {
869
883
  switch (u.label) {
870
884
  case 0:
871
- u.trys.push([0, 5, 6, 11]), n = Pn(t), u.label = 1;
885
+ u.trys.push([0, 5, 6, 11]), n = $n(t), u.label = 1;
872
886
  case 1:
873
887
  return [4, n.next()];
874
888
  case 2:
@@ -931,13 +945,13 @@ function pn(t, e) {
931
945
  }, e));
932
946
  });
933
947
  }
934
- function lr(t, e) {
935
- return Ge(t).pipe(pn(e), mn(e));
948
+ function fr(t, e) {
949
+ return Xe(t).pipe(pn(e), mn(e));
936
950
  }
937
- function dr(t, e) {
938
- return Ge(t).pipe(pn(e), mn(e));
951
+ function hr(t, e) {
952
+ return Xe(t).pipe(pn(e), mn(e));
939
953
  }
940
- function fr(t, e) {
954
+ function mr(t, e) {
941
955
  return new j(function(n) {
942
956
  var r = 0;
943
957
  return e.schedule(function() {
@@ -945,7 +959,7 @@ function fr(t, e) {
945
959
  });
946
960
  });
947
961
  }
948
- function hr(t, e) {
962
+ function pr(t, e) {
949
963
  return new j(function(n) {
950
964
  var r;
951
965
  return ce(n, e, function() {
@@ -978,35 +992,35 @@ function gn(t, e) {
978
992
  });
979
993
  });
980
994
  }
981
- function mr(t, e) {
995
+ function gr(t, e) {
982
996
  return gn(dn(t), e);
983
997
  }
984
- function pr(t, e) {
998
+ function vr(t, e) {
985
999
  if (t != null) {
986
1000
  if (sn(t))
987
- return lr(t, e);
988
- if (rn(t))
989
1001
  return fr(t, e);
1002
+ if (rn(t))
1003
+ return mr(t, e);
990
1004
  if (on(t))
991
- return dr(t, e);
1005
+ return hr(t, e);
992
1006
  if (an(t))
993
1007
  return gn(t, e);
994
1008
  if (ln(t))
995
- return hr(t, e);
1009
+ return pr(t, e);
996
1010
  if (fn(t))
997
- return mr(t, e);
1011
+ return gr(t, e);
998
1012
  }
999
1013
  throw un(t);
1000
1014
  }
1001
1015
  function vn(t, e) {
1002
- return e ? pr(t, e) : Ge(t);
1016
+ return e ? vr(t, e) : Xe(t);
1003
1017
  }
1004
1018
  var bn = ft(function(t) {
1005
1019
  return function() {
1006
1020
  t(this), this.name = "EmptyError", this.message = "no elements in sequence";
1007
1021
  };
1008
1022
  });
1009
- function gr(t, e) {
1023
+ function br(t, e) {
1010
1024
  return de(function(n, r) {
1011
1025
  var i = 0;
1012
1026
  n.subscribe(fe(r, function(o) {
@@ -1014,23 +1028,23 @@ function gr(t, e) {
1014
1028
  }));
1015
1029
  });
1016
1030
  }
1017
- var vr = Array.isArray;
1018
- function br(t, e) {
1019
- return vr(e) ? t.apply(void 0, Ue([], Pe(e))) : t(e);
1031
+ var wr = Array.isArray;
1032
+ function Sr(t, e) {
1033
+ return wr(e) ? t.apply(void 0, Pe([], He(e))) : t(e);
1020
1034
  }
1021
- function wr(t) {
1022
- return gr(function(e) {
1023
- return br(t, e);
1035
+ function Er(t) {
1036
+ return br(function(e) {
1037
+ return Sr(t, e);
1024
1038
  });
1025
1039
  }
1026
- var Sr = Array.isArray, Er = Object.getPrototypeOf, Tr = Object.prototype, yr = Object.keys;
1027
- function Cr(t) {
1040
+ var Tr = Array.isArray, yr = Object.getPrototypeOf, Cr = Object.prototype, Lr = Object.keys;
1041
+ function xr(t) {
1028
1042
  if (t.length === 1) {
1029
1043
  var e = t[0];
1030
- if (Sr(e))
1044
+ if (Tr(e))
1031
1045
  return { args: e, keys: null };
1032
- if (Lr(e)) {
1033
- var n = yr(e);
1046
+ if (Ar(e)) {
1047
+ var n = Lr(e);
1034
1048
  return {
1035
1049
  args: n.map(function(r) {
1036
1050
  return e[r];
@@ -1041,27 +1055,27 @@ function Cr(t) {
1041
1055
  }
1042
1056
  return { args: t, keys: null };
1043
1057
  }
1044
- function Lr(t) {
1045
- return t && typeof t == "object" && Er(t) === Tr;
1058
+ function Ar(t) {
1059
+ return t && typeof t == "object" && yr(t) === Cr;
1046
1060
  }
1047
- function xr(t, e) {
1061
+ function Mr(t, e) {
1048
1062
  return t.reduce(function(n, r, i) {
1049
1063
  return n[r] = e[i], n;
1050
1064
  }, {});
1051
1065
  }
1052
- function Ar() {
1066
+ function Ir() {
1053
1067
  for (var t = [], e = 0; e < arguments.length; e++)
1054
1068
  t[e] = arguments[e];
1055
- var n = nr(t), r = tr(t), i = Cr(t), o = i.args, s = i.keys;
1069
+ var n = ir(t), r = rr(t), i = xr(t), o = i.args, s = i.keys;
1056
1070
  if (o.length === 0)
1057
1071
  return vn([], n);
1058
- var a = new j(Mr(o, n, s ? function(u) {
1059
- return xr(s, u);
1060
- } : Xe));
1061
- return r ? a.pipe(wr(r)) : a;
1072
+ var a = new j(_r(o, n, s ? function(u) {
1073
+ return Mr(s, u);
1074
+ } : We));
1075
+ return r ? a.pipe(Er(r)) : a;
1062
1076
  }
1063
- function Mr(t, e, n) {
1064
- return n === void 0 && (n = Xe), function(r) {
1077
+ function _r(t, e, n) {
1078
+ return n === void 0 && (n = We), function(r) {
1065
1079
  _t(e, function() {
1066
1080
  for (var i = t.length, o = new Array(i), s = i, a = i, u = function(l) {
1067
1081
  _t(e, function() {
@@ -1080,7 +1094,7 @@ function Mr(t, e, n) {
1080
1094
  function _t(t, e, n) {
1081
1095
  t ? ce(n, t, e) : e();
1082
1096
  }
1083
- function Ir(t, e) {
1097
+ function Or(t, e) {
1084
1098
  return de(function(n, r) {
1085
1099
  var i = 0;
1086
1100
  n.subscribe(fe(r, function(o) {
@@ -1088,7 +1102,7 @@ function Ir(t, e) {
1088
1102
  }));
1089
1103
  });
1090
1104
  }
1091
- function _r(t) {
1105
+ function Nr(t) {
1092
1106
  return de(function(e, n) {
1093
1107
  var r = !1;
1094
1108
  e.subscribe(fe(n, function(i) {
@@ -1098,9 +1112,9 @@ function _r(t) {
1098
1112
  }));
1099
1113
  });
1100
1114
  }
1101
- function Or(t) {
1115
+ function kr(t) {
1102
1116
  return t <= 0 ? function() {
1103
- return Jn;
1117
+ return tr;
1104
1118
  } : de(function(e, n) {
1105
1119
  var r = 0;
1106
1120
  e.subscribe(fe(n, function(i) {
@@ -1108,8 +1122,8 @@ function Or(t) {
1108
1122
  }));
1109
1123
  });
1110
1124
  }
1111
- function Nr(t) {
1112
- return t === void 0 && (t = kr), de(function(e, n) {
1125
+ function Rr(t) {
1126
+ return t === void 0 && (t = Dr), de(function(e, n) {
1113
1127
  var r = !1;
1114
1128
  e.subscribe(fe(n, function(i) {
1115
1129
  r = !0, n.next(i);
@@ -1118,25 +1132,25 @@ function Nr(t) {
1118
1132
  }));
1119
1133
  });
1120
1134
  }
1121
- function kr() {
1135
+ function Dr() {
1122
1136
  return new bn();
1123
1137
  }
1124
1138
  function Ee(t, e) {
1125
1139
  var n = arguments.length >= 2;
1126
1140
  return function(r) {
1127
- return r.pipe(Xe, Or(1), n ? _r(e) : Nr(function() {
1141
+ return r.pipe(We, kr(1), n ? Nr(e) : Rr(function() {
1128
1142
  return new bn();
1129
1143
  }));
1130
1144
  };
1131
1145
  }
1132
1146
  function Z(t) {
1133
1147
  return de(function(e, n) {
1134
- Ge(t).subscribe(fe(n, function() {
1148
+ Xe(t).subscribe(fe(n, function() {
1135
1149
  return n.complete();
1136
- }, ot)), !n.closed && e.subscribe(n);
1150
+ }, it)), !n.closed && e.subscribe(n);
1137
1151
  });
1138
1152
  }
1139
- class Rr {
1153
+ class Vr {
1140
1154
  constructor() {
1141
1155
  S(this, "actionZoomIn");
1142
1156
  S(this, "actionZoomOut");
@@ -1182,7 +1196,7 @@ class Rr {
1182
1196
  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
1197
  }
1184
1198
  }
1185
- const no = w.memo(
1199
+ const io = w.memo(
1186
1200
  ({
1187
1201
  omakasePlayer: t,
1188
1202
  onTimelineCreatedCallback: e,
@@ -1191,15 +1205,15 @@ const no = w.memo(
1191
1205
  }) => (Y(() => {
1192
1206
  if (n.timelineHTMLElementId === void 0 && (n.timelineHTMLElementId = "omakase-timeline"), t.createTimeline(n).subscribe({
1193
1207
  next: (i) => {
1194
- Ar([
1208
+ Ir([
1195
1209
  t.timeline.onReady$,
1196
- t.video.onVideoLoaded$.pipe(Ir((o) => !!o))
1210
+ t.video.onVideoLoaded$.pipe(Or((o) => !!o))
1197
1211
  ]).subscribe({
1198
1212
  next: () => e(i)
1199
1213
  });
1200
1214
  }
1201
1215
  }), r === void 0 || r) {
1202
- const i = new Rr();
1216
+ const i = new Vr();
1203
1217
  i.actionToggleCti = () => {
1204
1218
  var a;
1205
1219
  return (a = t.timeline) == null ? void 0 : a.toggleTimecodeEdit();
@@ -1263,7 +1277,7 @@ class wn {
1263
1277
  this.window.open(e, n);
1264
1278
  }
1265
1279
  }
1266
- const Ae = [0.25, 0.5, 0.75, 1, 2, 4, 8];
1280
+ const xe = [0.25, 0.5, 0.75, 1, 2, 4, 8];
1267
1281
  class Ot {
1268
1282
  static getKeyboardShortcutsHelpMenuGroup() {
1269
1283
  let e = (...o) => o.join(" + "), n = "shift".toUpperCase(), r = "ctrl".toUpperCase();
@@ -1350,11 +1364,11 @@ class Ot {
1350
1364
  return n.subtitles.toggleShowHideActiveTrack(), !0;
1351
1365
  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
1366
  let s = e.shiftKey ? 1 : -1;
1353
- const a = Ae.indexOf(
1367
+ const a = xe.indexOf(
1354
1368
  n.video.getPlaybackRate()
1355
1369
  ) + s;
1356
1370
  let u;
1357
- return a < 0 ? u = Ae.at(0) : a >= Ae.length ? u = Ae.at(-1) : u = Ae.at(a), n.video.setPlaybackRate(u), n.video.isPaused() && n.video.play(), !0;
1371
+ return a < 0 ? u = xe.at(0) : a >= xe.length ? u = xe.at(-1) : u = xe.at(a), n.video.setPlaybackRate(u), n.video.isPaused() && n.video.play(), !0;
1358
1372
  }
1359
1373
  if (n.video.isVideoLoaded()) {
1360
1374
  if (["ArrowLeft", "ArrowRight"].includes(e.key) && !e.metaKey && !e.altKey) {
@@ -1372,7 +1386,7 @@ class Ot {
1372
1386
  return !1;
1373
1387
  }
1374
1388
  }
1375
- const Dr = w.memo(function({
1389
+ const Fr = w.memo(function({
1376
1390
  videoUrl: e,
1377
1391
  config: n,
1378
1392
  videoLoadOptions: r,
@@ -1381,7 +1395,7 @@ const Dr = w.memo(function({
1381
1395
  }) {
1382
1396
  return n && (n == null ? void 0 : n.playerHTMLElementId) === void 0 && (n.playerHTMLElementId = "omakase-player"), Y(() => {
1383
1397
  var u, c;
1384
- let s = new Fn(n);
1398
+ let s = new Kn(n);
1385
1399
  const a = (l) => {
1386
1400
  Ot.handleKeyboardEvent(
1387
1401
  l,
@@ -1398,7 +1412,7 @@ const Dr = w.memo(function({
1398
1412
  (o === void 0 || o) && window.removeEventListener("keydown", a);
1399
1413
  };
1400
1414
  }, [e]), /* @__PURE__ */ w.createElement("div", { id: n.playerHTMLElementId });
1401
- }), Vr = ({ width: t, height: e }) => /* @__PURE__ */ w.createElement(
1415
+ }), Br = ({ width: t, height: e }) => /* @__PURE__ */ w.createElement(
1402
1416
  "svg",
1403
1417
  {
1404
1418
  width: t ?? 24,
@@ -1421,7 +1435,7 @@ const Dr = w.memo(function({
1421
1435
  fill: "#CACFEA"
1422
1436
  }
1423
1437
  )
1424
- ), Fr = ({ width: t, height: e }) => /* @__PURE__ */ w.createElement(
1438
+ ), Kr = ({ width: t, height: e }) => /* @__PURE__ */ w.createElement(
1425
1439
  "svg",
1426
1440
  {
1427
1441
  width: t ?? 24,
@@ -1444,7 +1458,7 @@ const Dr = w.memo(function({
1444
1458
  fill: "#CACFEA"
1445
1459
  }
1446
1460
  )
1447
- ), Br = ({ width: t, height: e }) => /* @__PURE__ */ w.createElement(
1461
+ ), Hr = ({ width: t, height: e }) => /* @__PURE__ */ w.createElement(
1448
1462
  "svg",
1449
1463
  {
1450
1464
  width: t ?? 24,
@@ -1460,7 +1474,7 @@ const Dr = w.memo(function({
1460
1474
  fill: "#CACFEA"
1461
1475
  }
1462
1476
  )
1463
- ), Kr = ({ width: t, height: e }) => /* @__PURE__ */ w.createElement(
1477
+ ), Pr = ({ width: t, height: e }) => /* @__PURE__ */ w.createElement(
1464
1478
  "svg",
1465
1479
  {
1466
1480
  width: t ?? 24,
@@ -1476,7 +1490,7 @@ const Dr = w.memo(function({
1476
1490
  fill: "#CACFEA"
1477
1491
  }
1478
1492
  )
1479
- ), Hr = ({ width: t, height: e }) => /* @__PURE__ */ w.createElement(
1493
+ ), Ur = ({ width: t, height: e }) => /* @__PURE__ */ w.createElement(
1480
1494
  "svg",
1481
1495
  {
1482
1496
  width: t ?? 24,
@@ -1493,7 +1507,7 @@ const Dr = w.memo(function({
1493
1507
  fill: "#CACFEA"
1494
1508
  }
1495
1509
  )
1496
- ), Pr = ({ width: t, height: e }) => /* @__PURE__ */ w.createElement(
1510
+ ), $r = ({ width: t, height: e }) => /* @__PURE__ */ w.createElement(
1497
1511
  "svg",
1498
1512
  {
1499
1513
  width: t ?? 24,
@@ -1516,7 +1530,7 @@ const Dr = w.memo(function({
1516
1530
  fill: "#CACFEA"
1517
1531
  }
1518
1532
  )
1519
- ), Ur = ({ width: t, height: e }) => /* @__PURE__ */ w.createElement(
1533
+ ), Zr = ({ width: t, height: e }) => /* @__PURE__ */ w.createElement(
1520
1534
  "svg",
1521
1535
  {
1522
1536
  width: t ?? 24,
@@ -1532,7 +1546,7 @@ const Dr = w.memo(function({
1532
1546
  fill: "#CACFEA"
1533
1547
  }
1534
1548
  )
1535
- ), $r = ({ width: t, height: e }) => /* @__PURE__ */ w.createElement(
1549
+ ), qr = ({ width: t, height: e }) => /* @__PURE__ */ w.createElement(
1536
1550
  "svg",
1537
1551
  {
1538
1552
  width: t ?? 24,
@@ -1555,7 +1569,7 @@ const Dr = w.memo(function({
1555
1569
  fill: "#CACFEA"
1556
1570
  }
1557
1571
  )
1558
- ), Zr = ({ width: t, height: e }) => /* @__PURE__ */ w.createElement(
1572
+ ), Wr = ({ width: t, height: e }) => /* @__PURE__ */ w.createElement(
1559
1573
  "svg",
1560
1574
  {
1561
1575
  width: t ?? 24,
@@ -1586,7 +1600,7 @@ const Dr = w.memo(function({
1586
1600
  transform: "translate(3 4)"
1587
1601
  }
1588
1602
  )))
1589
- ), qr = ({ width: t, height: e }) => /* @__PURE__ */ w.createElement(
1603
+ ), Xr = ({ width: t, height: e }) => /* @__PURE__ */ w.createElement(
1590
1604
  "svg",
1591
1605
  {
1592
1606
  width: t ?? 24,
@@ -1624,7 +1638,7 @@ const Dr = w.memo(function({
1624
1638
  height: r,
1625
1639
  text: i,
1626
1640
  disabled: o
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(
1641
+ }) => /* @__PURE__ */ w.createElement("button", { disabled: o, onClick: e }, /* @__PURE__ */ w.createElement(t, { width: n, height: r }), " ", i), Gr = ({ width: t, height: e }) => /* @__PURE__ */ w.createElement(
1628
1642
  "svg",
1629
1643
  {
1630
1644
  width: t ?? 24,
@@ -1641,7 +1655,7 @@ const Dr = w.memo(function({
1641
1655
  fill: "#CACFEA"
1642
1656
  }
1643
1657
  )
1644
- ), Xr = ({ width: t, height: e }) => /* @__PURE__ */ w.createElement(
1658
+ ), jr = ({ width: t, height: e }) => /* @__PURE__ */ w.createElement(
1645
1659
  "svg",
1646
1660
  {
1647
1661
  width: "14",
@@ -1663,7 +1677,7 @@ const Dr = w.memo(function({
1663
1677
  function Q(t) {
1664
1678
  t.next(), t.complete();
1665
1679
  }
1666
- class Gr {
1680
+ class zr {
1667
1681
  constructor() {
1668
1682
  S(this, "actionMarkerInOut");
1669
1683
  S(this, "actionMarkerSplit");
@@ -1741,7 +1755,7 @@ class Gr {
1741
1755
  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
1756
  }
1743
1757
  }
1744
- const ke = (t, e, n) => t.getMarkers().reduce((r, i) => {
1758
+ const Ne = (t, e, n) => t.getMarkers().reduce((r, i) => {
1745
1759
  if (e.id === i.id)
1746
1760
  return r;
1747
1761
  if (i instanceof H && i.timeObservation.start != null && i.timeObservation.end != null) {
@@ -1751,7 +1765,7 @@ const ke = (t, e, n) => t.getMarkers().reduce((r, i) => {
1751
1765
  }
1752
1766
  return r;
1753
1767
  }, !1);
1754
- function Re(t, e, n) {
1768
+ function ke(t, e, n) {
1755
1769
  if (!t || !(t instanceof H))
1756
1770
  return !0;
1757
1771
  const r = t.timeObservation.start, i = t.timeObservation.end;
@@ -1760,10 +1774,10 @@ function Re(t, e, n) {
1760
1774
  const o = n.video.calculateTimeToFrame(i), s = n.video.calculateTimeToFrame(r), a = n.video.getCurrentFrame();
1761
1775
  return e < r || o - a < 2 || a - s < 1;
1762
1776
  }
1763
- function De(t) {
1777
+ function Re(t) {
1764
1778
  return !(t.timeObservation.start == null || t.timeObservation.end == null);
1765
1779
  }
1766
- const ro = ({
1780
+ const oo = ({
1767
1781
  selectedMarker: t,
1768
1782
  omakasePlayer: e,
1769
1783
  markerListApi: n,
@@ -1776,16 +1790,16 @@ const ro = ({
1776
1790
  source: c,
1777
1791
  constants: l
1778
1792
  }) => {
1779
- const d = tt(void 0), f = tt(void 0), h = new ge(), v = tt(!1), g = (p, b, L) => {
1793
+ const d = et(void 0), f = et(void 0), h = new ge(), v = et(!1), g = (p, b, L) => {
1780
1794
  const O = b ?? e.video.getCurrentTime();
1781
1795
  return p.getMarkers().reduce((I, W) => W instanceof H && W.timeObservation.start !== void 0 && W.timeObservation.end !== void 0 && W.id !== (L == null ? void 0 : L.id) ? I || O >= W.timeObservation.start && O <= W.timeObservation.end : I, !1);
1782
1796
  }, y = (p) => {
1783
1797
  if (M === void 0)
1784
1798
  return !0;
1785
1799
  const b = M.timeObservation.start, L = p ?? e.video.getCurrentTime();
1786
- return !!(b == null || b >= L || ke(c, M, L));
1800
+ return !!(b == null || b >= L || Ne(c, M, L));
1787
1801
  }, C = (p) => M !== void 0 || c === void 0 ? !0 : g(c, p, M), [D, A] = pe(void 0), [k, P] = pe(
1788
- Re(
1802
+ ke(
1789
1803
  t,
1790
1804
  e.video.getCurrentTime(),
1791
1805
  e
@@ -1799,7 +1813,7 @@ const ro = ({
1799
1813
  ), ie = (p) => {
1800
1814
  if (p === void 0 || c === void 0 || !(p instanceof H))
1801
1815
  return !0;
1802
- const b = ke(
1816
+ const b = Ne(
1803
1817
  c,
1804
1818
  p,
1805
1819
  e.video.getCurrentTime()
@@ -1815,7 +1829,7 @@ const ro = ({
1815
1829
  }, oe = (p) => {
1816
1830
  if (p === void 0 || c === void 0 || !(p instanceof H))
1817
1831
  return !0;
1818
- const b = ke(
1832
+ const b = Ne(
1819
1833
  c,
1820
1834
  p,
1821
1835
  e.video.getCurrentTime()
@@ -1830,7 +1844,7 @@ const ro = ({
1830
1844
  return !0;
1831
1845
  }
1832
1846
  return !1;
1833
- }, [Se, V] = pe(ie(t)), [_, Qe] = pe(oe(t));
1847
+ }, [Se, V] = pe(ie(t)), [_, Ye] = pe(oe(t));
1834
1848
  Y(() => {
1835
1849
  if (G(() => y()), K(() => C()), M && M !== t) {
1836
1850
  const p = i.find(
@@ -1841,10 +1855,10 @@ const ro = ({
1841
1855
  }, [t, M, i, te]), Y(() => () => Q(h), []), Y(() => {
1842
1856
  if (V(
1843
1857
  ie(t)
1844
- ), Qe(
1858
+ ), Ye(
1845
1859
  oe(t)
1846
1860
  ), t) {
1847
- const p = Re(
1861
+ const p = ke(
1848
1862
  t,
1849
1863
  e.video.getCurrentTime(),
1850
1864
  e
@@ -1853,14 +1867,14 @@ const ro = ({
1853
1867
  const b = e.video.onVideoTimeChange$.pipe(Z(h)).subscribe({
1854
1868
  next: (L) => {
1855
1869
  P(
1856
- (O) => Re(
1870
+ (O) => ke(
1857
1871
  t,
1858
1872
  L.currentTime,
1859
1873
  e
1860
1874
  )
1861
1875
  ), V(
1862
1876
  () => ie(t)
1863
- ), Qe(
1877
+ ), Ye(
1864
1878
  () => oe(t)
1865
1879
  );
1866
1880
  }
@@ -1887,14 +1901,14 @@ const ro = ({
1887
1901
  const p = i.map((b) => b.onMarkerUpdate$.pipe(Z(h)).subscribe({
1888
1902
  next: (L) => {
1889
1903
  (t == null ? void 0 : t.id) === L.marker.id && (P(
1890
- (O) => Re(
1904
+ (O) => ke(
1891
1905
  t,
1892
1906
  e.video.getCurrentTime(),
1893
1907
  e
1894
1908
  )
1895
1909
  ), V(
1896
1910
  () => ie(t)
1897
- ), Qe(
1911
+ ), Ye(
1898
1912
  () => oe(t)
1899
1913
  ));
1900
1914
  }
@@ -1958,8 +1972,8 @@ const ro = ({
1958
1972
  d.current && Q(d.current), d.current = new ge(), p.video.pause();
1959
1973
  const L = p.video.getCurrentFrame(), O = p.video.getFrameRate(), I = L - b * O, W = I >= 0 ? I : 0;
1960
1974
  p.video.seekToFrame(W).pipe(Ee()).subscribe(() => {
1961
- }), p.video.play(), p.video.onVideoTimeChange$.pipe(Z(d.current), Z(h)).subscribe((Oe) => {
1962
- Oe.frame >= L - 1 && (p.video.pause().subscribe(() => {
1975
+ }), p.video.play(), p.video.onVideoTimeChange$.pipe(Z(d.current), Z(h)).subscribe((_e) => {
1976
+ _e.frame >= L - 1 && (p.video.pause().subscribe(() => {
1963
1977
  p.video.seekToFrame(L).pipe(Ee()).subscribe(() => {
1964
1978
  });
1965
1979
  }), Q(d.current));
@@ -1978,7 +1992,7 @@ const ro = ({
1978
1992
  });
1979
1993
  }, 1), Q(f.current);
1980
1994
  });
1981
- }, Je = (p) => {
1995
+ }, Qe = (p) => {
1982
1996
  c.removeMarker(p.id), (M == null ? void 0 : M.id) === p.id && te(void 0);
1983
1997
  }, Tt = (p, b) => {
1984
1998
  if (!(b instanceof H))
@@ -1986,20 +2000,20 @@ const ro = ({
1986
2000
  const L = b.timeObservation.start, O = b.timeObservation.end, I = p.video.getCurrentTime();
1987
2001
  if (L == null || O == null)
1988
2002
  return;
1989
- const W = L, Oe = I, Nn = Oe + 1 / p.video.getFrameRate(), kn = O;
1990
- Je(b);
1991
- const et = new H({
2003
+ const W = L, _e = I, Nn = _e + 1 / p.video.getFrameRate(), kn = O;
2004
+ Qe(b);
2005
+ const Je = new H({
1992
2006
  style: l.PERIOD_MARKER_STYLE,
1993
2007
  timeObservation: {
1994
2008
  start: W,
1995
- end: Oe
2009
+ end: _e
1996
2010
  },
1997
2011
  editable: !0
1998
2012
  });
1999
- et.onClick$.subscribe({
2000
- next: () => a(et)
2013
+ Je.onClick$.subscribe({
2014
+ next: () => a(Je)
2001
2015
  });
2002
- const xe = new H({
2016
+ const Le = new H({
2003
2017
  style: l.HIGHLIGHTED_PERIOD_MARKER_STYLE,
2004
2018
  timeObservation: {
2005
2019
  start: Nn,
@@ -2007,11 +2021,11 @@ const ro = ({
2007
2021
  },
2008
2022
  editable: !0
2009
2023
  });
2010
- xe.onClick$.subscribe({
2011
- next: () => a(xe)
2012
- }), c.addMarker(et), c.addMarker(xe), a(xe), setTimeout(() => {
2024
+ Le.onClick$.subscribe({
2025
+ next: () => a(Le)
2026
+ }), c.addMarker(Je), c.addMarker(Le), a(Le), setTimeout(() => {
2013
2027
  A({
2014
- marker: xe,
2028
+ marker: Le,
2015
2029
  color: l.PERIOD_MARKER_STYLE.color
2016
2030
  });
2017
2031
  }, 0);
@@ -2057,7 +2071,7 @@ const ro = ({
2057
2071
  });
2058
2072
  L.onMarkerUpdate$.subscribe({
2059
2073
  next: (O) => {
2060
- ke(
2074
+ Ne(
2061
2075
  L,
2062
2076
  O.marker
2063
2077
  ) && (O.marker.timeObservation = O.oldValue.timeObservation);
@@ -2082,8 +2096,8 @@ const ro = ({
2082
2096
  return Y(() => {
2083
2097
  if (!r)
2084
2098
  return;
2085
- const p = new Gr();
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 = () => {
2099
+ const p = new zr();
2100
+ 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 && bt(e, t), p.actionSetMarkerEndToPlayhead = () => !_ && wt(e, t), p.actionMarkerSplit = () => !k && Tt(e, t), p.actionMarkerDelete = () => t && Qe(t), p.actionMarkerInOut = () => {
2087
2101
  M === void 0 ? !we && yt() : !me && Ct();
2088
2102
  }, p.actionPlay3SecondsAndRewindToCurrent = () => Et(e, 3), p.actionRewind3SecondsAndPlayToCurrent = () => St(e, 3), p.actionNextMarkerToggle = () => xt(!1), p.actionPreviousMarkerToggle = () => xt(!0);
2089
2103
  const b = (L) => {
@@ -2095,82 +2109,82 @@ const ro = ({
2095
2109
  }), /* @__PURE__ */ w.createElement("div", { className: "control-panel-wrapper" }, /* @__PURE__ */ w.createElement("div", { className: "control-panel" }, /* @__PURE__ */ w.createElement(
2096
2110
  z,
2097
2111
  {
2098
- Icon: Vr,
2112
+ Icon: Br,
2099
2113
  onClick: () => gt(e, t),
2100
2114
  disabled: t === void 0
2101
2115
  }
2102
2116
  ), /* @__PURE__ */ w.createElement(
2103
2117
  z,
2104
2118
  {
2105
- Icon: Fr,
2119
+ Icon: Kr,
2106
2120
  onClick: () => vt(e, t),
2107
- disabled: t === void 0 || t instanceof H && !De(t)
2121
+ disabled: t === void 0 || t instanceof H && !Re(t)
2108
2122
  }
2109
2123
  ), /* @__PURE__ */ w.createElement(
2110
2124
  z,
2111
2125
  {
2112
- Icon: Br,
2126
+ Icon: Hr,
2113
2127
  onClick: () => bt(e, t),
2114
2128
  disabled: Se
2115
2129
  }
2116
2130
  ), /* @__PURE__ */ w.createElement(
2117
2131
  z,
2118
2132
  {
2119
- Icon: Kr,
2133
+ Icon: Pr,
2120
2134
  onClick: () => wt(e, t),
2121
2135
  disabled: _
2122
2136
  }
2123
2137
  ), M === void 0 ? /* @__PURE__ */ w.createElement(
2124
2138
  z,
2125
2139
  {
2126
- Icon: Hr,
2140
+ Icon: Ur,
2127
2141
  onClick: yt,
2128
2142
  disabled: we
2129
2143
  }
2130
2144
  ) : /* @__PURE__ */ w.createElement(
2131
2145
  z,
2132
2146
  {
2133
- Icon: Wr,
2147
+ Icon: Gr,
2134
2148
  onClick: Ct,
2135
2149
  disabled: me
2136
2150
  }
2137
2151
  ), /* @__PURE__ */ w.createElement(
2138
2152
  z,
2139
2153
  {
2140
- Icon: Ur,
2141
- onClick: () => Je(t),
2154
+ Icon: Zr,
2155
+ onClick: () => Qe(t),
2142
2156
  disabled: t === void 0
2143
2157
  }
2144
2158
  ), /* @__PURE__ */ w.createElement(
2145
2159
  z,
2146
2160
  {
2147
- Icon: Pr,
2161
+ Icon: $r,
2148
2162
  onClick: () => Tt(e, t),
2149
2163
  disabled: k || t === void 0
2150
2164
  }
2151
2165
  ), /* @__PURE__ */ w.createElement(
2152
2166
  z,
2153
2167
  {
2154
- Icon: $r,
2168
+ Icon: qr,
2155
2169
  onClick: () => Lt(t),
2156
- disabled: !(t instanceof H && De(t))
2170
+ disabled: !(t instanceof H && Re(t))
2157
2171
  }
2158
2172
  ), /* @__PURE__ */ w.createElement(
2159
2173
  z,
2160
2174
  {
2161
- Icon: Zr,
2175
+ Icon: Wr,
2162
2176
  onClick: () => St(e, 3)
2163
2177
  }
2164
2178
  ), /* @__PURE__ */ w.createElement(
2165
2179
  z,
2166
2180
  {
2167
- Icon: qr,
2181
+ Icon: Xr,
2168
2182
  onClick: () => Et(e, 3)
2169
2183
  }
2170
2184
  )), /* @__PURE__ */ w.createElement("div", { className: "control-panel" }, /* @__PURE__ */ w.createElement("div", { className: "segmentation-button-wrapper" }, /* @__PURE__ */ w.createElement(
2171
2185
  z,
2172
2186
  {
2173
- Icon: Xr,
2187
+ Icon: jr,
2174
2188
  text: "NEW SEGMENTATION",
2175
2189
  onClick: () => On(),
2176
2190
  disabled: i.length >= 3
@@ -2208,7 +2222,7 @@ class ve {
2208
2222
  * Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
2209
2223
  * MIT Licence
2210
2224
  */
2211
- var Te = 9e15, he = 1e9, at = "0123456789abcdef", $e = "2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058", Ze = "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789", ut = {
2225
+ var st = 9e15, he = 1e9, at = "0123456789abcdef", Ue = "2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058", $e = "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789", ut = {
2212
2226
  // These values must be integers within the stated ranges (inclusive).
2213
2227
  // Most of these values can be changed at run-time using the `Decimal.config` method.
2214
2228
  // The maximum number of significant digits of the result of a calculation or base conversion.
@@ -2257,16 +2271,16 @@ var Te = 9e15, he = 1e9, at = "0123456789abcdef", $e = "2.3025850929940456840179
2257
2271
  // 0 to EXP_LIMIT
2258
2272
  // The minimum exponent value, beneath which underflow to zero occurs.
2259
2273
  // JavaScript numbers: -324 (5e-324)
2260
- minE: -Te,
2274
+ minE: -9e15,
2261
2275
  // -1 to -EXP_LIMIT
2262
2276
  // The maximum exponent value, above which overflow to Infinity occurs.
2263
2277
  // JavaScript numbers: 308 (1.7976931348623157e+308)
2264
- maxE: Te,
2278
+ maxE: st,
2265
2279
  // 1 to EXP_LIMIT
2266
2280
  // Whether to use cryptographically-secure random number generation, if available.
2267
2281
  crypto: !1
2268
2282
  // true/false
2269
- }, Sn, se, x = !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 };
2283
+ }, Sn, se, x = !0, Ge = "[DecimalError] ", le = Ge + "Invalid argument: ", En = Ge + "Precision limit exceeded", Tn = Ge + "crypto unavailable", yn = "[object Decimal]", q = Math.floor, F = Math.pow, Yr = /^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i, Qr = /^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i, Jr = /^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i, Cn = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, ee = 1e7, T = 7, ei = 9007199254740991, ti = Ue.length - 1, ct = $e.length - 1, m = { toStringTag: yn };
2270
2284
  m.absoluteValue = m.abs = function() {
2271
2285
  var t = new this.constructor(this);
2272
2286
  return t.s < 0 && (t.s = 1), E(t);
@@ -2293,7 +2307,7 @@ m.comparedTo = m.cmp = function(t) {
2293
2307
  };
2294
2308
  m.cosine = m.cos = function() {
2295
2309
  var t, e, n = this, r = n.constructor;
2296
- return n.d ? n.d[0] ? (t = r.precision, e = r.rounding, r.precision = t + Math.max(n.e, n.sd()) + T, r.rounding = 1, n = ei(r, In(r, n)), r.precision = t, r.rounding = e, E(se == 2 || se == 3 ? n.neg() : n, t, e, !0)) : new r(1) : new r(NaN);
2310
+ return n.d ? n.d[0] ? (t = r.precision, e = r.rounding, r.precision = t + Math.max(n.e, n.sd()) + T, r.rounding = 1, n = ni(r, In(r, n)), r.precision = t, r.rounding = e, E(se == 2 || se == 3 ? n.neg() : n, t, e, !0)) : new r(1) : new r(NaN);
2297
2311
  };
2298
2312
  m.cubeRoot = m.cbrt = function() {
2299
2313
  var t, e, n, r, i, o, s, a, u, c, l = this, d = l.constructor;
@@ -2344,7 +2358,7 @@ m.hyperbolicCosine = m.cosh = function() {
2344
2358
  var t, e, n, r, i, o = this, s = o.constructor, a = new s(1);
2345
2359
  if (!o.isFinite()) return new s(o.s ? 1 / 0 : NaN);
2346
2360
  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 / Ye(4, t)).toString()) : (t = 16, e = "2.3283064365386962890625e-10"), o = Le(s, 1, o.times(e), new s(1), !0);
2361
+ 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);
2348
2362
  for (var u, c = t, l = new s(8); c--; )
2349
2363
  u = o.times(o), o = a.minus(u.times(l.minus(u.times(l))));
2350
2364
  return E(o, s.precision = n, s.rounding = r, !0);
@@ -2353,9 +2367,9 @@ m.hyperbolicSine = m.sinh = function() {
2353
2367
  var t, e, n, r, i = this, o = i.constructor;
2354
2368
  if (!i.isFinite() || i.isZero()) return new o(i);
2355
2369
  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 = Le(o, 2, i, i, !0);
2370
+ i = Ce(o, 2, i, i, !0);
2357
2371
  else {
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);
2372
+ 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);
2359
2373
  for (var s, a = new o(5), u = new o(16), c = new o(20); t--; )
2360
2374
  s = i.times(i), i = i.times(a.plus(s.times(u.times(s).plus(c))));
2361
2375
  }
@@ -2443,13 +2457,13 @@ m.logarithm = m.log = function(t) {
2443
2457
  for (i = n[0]; i % 10 === 0; ) i /= 10;
2444
2458
  o = i !== 1;
2445
2459
  }
2446
- if (x = !1, a = d + h, s = ue(c, a), r = e ? qe(l, a + 10) : ue(t, a), u = N(s, r, a, 1), Me(u.d, i = d, f))
2460
+ if (x = !1, a = d + h, s = ue(c, a), r = e ? Ze(l, a + 10) : ue(t, a), u = N(s, r, a, 1), Ae(u.d, i = d, f))
2447
2461
  do
2448
- if (a += 10, s = ue(c, a), r = e ? qe(l, a + 10) : ue(t, a), u = N(s, r, a, 1), !o) {
2462
+ if (a += 10, s = ue(c, a), r = e ? Ze(l, a + 10) : ue(t, a), u = N(s, r, a, 1), !o) {
2449
2463
  +$(u.d).slice(i + 1, i + 15) + 1 == 1e14 && (u = E(u, d + 1, 0));
2450
2464
  break;
2451
2465
  }
2452
- while (Me(u.d, i += 10, f));
2466
+ while (Ae(u.d, i += 10, f));
2453
2467
  return x = !0, E(u, d, f);
2454
2468
  };
2455
2469
  m.minus = m.sub = function(t) {
@@ -2485,7 +2499,7 @@ m.minus = m.sub = function(t) {
2485
2499
  }
2486
2500
  for (; c[--s] === 0; ) c.pop();
2487
2501
  for (; c[0] === 0; c.shift()) --n;
2488
- return c[0] ? (t.d = c, t.e = ze(c, n), x ? E(t, a, u) : t) : new v(u === 3 ? -0 : 0);
2502
+ return c[0] ? (t.d = c, t.e = je(c, n), x ? E(t, a, u) : t) : new v(u === 3 ? -0 : 0);
2489
2503
  };
2490
2504
  m.modulo = m.mod = function(t) {
2491
2505
  var e, n = this, r = n.constructor;
@@ -2516,7 +2530,7 @@ m.plus = m.add = function(t) {
2516
2530
  for (s = c.length, i = l.length, s - i < 0 && (i = s, n = l, l = c, c = n), e = 0; i; )
2517
2531
  e = (c[--i] = c[i] + l[i] + e) / ee | 0, c[i] %= ee;
2518
2532
  for (e && (c.unshift(e), ++r), s = c.length; c[--s] == 0; ) c.pop();
2519
- return t.d = c, t.e = ze(c, r), x ? E(t, a, u) : t;
2533
+ return t.d = c, t.e = je(c, r), x ? E(t, a, u) : t;
2520
2534
  };
2521
2535
  m.precision = m.sd = function(t) {
2522
2536
  var e, n = this;
@@ -2529,7 +2543,7 @@ m.round = function() {
2529
2543
  };
2530
2544
  m.sine = m.sin = function() {
2531
2545
  var t, e, n = this, r = n.constructor;
2532
- return n.isFinite() ? n.isZero() ? new r(n) : (t = r.precision, e = r.rounding, r.precision = t + Math.max(n.e, n.sd()) + T, r.rounding = 1, n = ni(r, In(r, n)), r.precision = t, r.rounding = e, E(se > 2 ? n.neg() : n, t, e, !0)) : new r(NaN);
2546
+ return n.isFinite() ? n.isZero() ? new r(n) : (t = r.precision, e = r.rounding, r.precision = t + Math.max(n.e, n.sd()) + T, r.rounding = 1, n = ii(r, In(r, n)), r.precision = t, r.rounding = e, E(se > 2 ? n.neg() : n, t, e, !0)) : new r(NaN);
2533
2547
  };
2534
2548
  m.squareRoot = m.sqrt = function() {
2535
2549
  var t, e, n, r, i, o, s = this, a = s.d, u = s.e, c = s.s, l = s.constructor;
@@ -2564,7 +2578,7 @@ m.times = m.mul = function(t) {
2564
2578
  o[i] = (o[i] + e) % ee | 0;
2565
2579
  }
2566
2580
  for (; !o[--s]; ) o.pop();
2567
- return e ? ++n : o.shift(), t.d = o, t.e = ze(o, n), x ? E(t, d.precision, d.rounding) : t;
2581
+ return e ? ++n : o.shift(), t.d = o, t.e = je(o, n), x ? E(t, d.precision, d.rounding) : t;
2568
2582
  };
2569
2583
  m.toBinary = function(t, e) {
2570
2584
  return pt(this, 2, t, e);
@@ -2620,14 +2634,14 @@ m.toPower = m.pow = function(t) {
2620
2634
  if (!a.d || !t.d || !a.d[0] || !t.d[0]) return new u(F(+a, c));
2621
2635
  if (a = new u(a), a.eq(1)) return a;
2622
2636
  if (r = u.precision, o = u.rounding, t.eq(1)) return E(a, r, o);
2623
- if (e = q(t.e / T), e >= t.d.length - 1 && (n = c < 0 ? -c : c) <= Qr)
2637
+ if (e = q(t.e / T), e >= t.d.length - 1 && (n = c < 0 ? -c : c) <= ei)
2624
2638
  return i = xn(u, a, n, r), t.s < 0 ? new u(1).div(i) : E(i, r, o);
2625
2639
  if (s = a.s, s < 0) {
2626
2640
  if (e < t.d.length - 1) return new u(NaN);
2627
2641
  if ((t.d[e] & 1) == 0 && (s = 1), a.e == 0 && a.d[0] == 1 && a.d.length == 1)
2628
2642
  return a.s = s, a;
2629
2643
  }
2630
- return n = F(+a, c), e = n == 0 || !isFinite(n) ? q(c * (Math.log("0." + $(a.d)) / Math.LN10 + a.e + 1)) : new u(n + "").e, e > u.maxE + 1 || e < u.minE - 1 ? new u(e > 0 ? s / 0 : 0) : (x = !1, u.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, x = !0, u.rounding = o, E(i, r, o));
2644
+ return n = F(+a, c), e = n == 0 || !isFinite(n) ? q(c * (Math.log("0." + $(a.d)) / Math.LN10 + a.e + 1)) : new u(n + "").e, e > u.maxE + 1 || e < u.minE - 1 ? new u(e > 0 ? s / 0 : 0) : (x = !1, u.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), Ae(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, x = !0, u.rounding = o, E(i, r, o));
2631
2645
  };
2632
2646
  m.toPrecision = function(t, e) {
2633
2647
  var n, r = this, i = r.constructor;
@@ -2663,12 +2677,12 @@ function X(t, e, n) {
2663
2677
  if (t !== ~~t || t < e || t > n)
2664
2678
  throw Error(le + t);
2665
2679
  }
2666
- function Me(t, e, n, r) {
2680
+ function Ae(t, e, n, r) {
2667
2681
  var i, o, s, a;
2668
2682
  for (o = t[0]; o >= 10; o /= 10) --e;
2669
2683
  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
2684
  }
2671
- function Ke(t, e, n) {
2685
+ function Be(t, e, n) {
2672
2686
  for (var r, i = [0], o, s = 0, a = t.length; s < a; ) {
2673
2687
  for (o = i.length; o--; ) i[o] *= e;
2674
2688
  for (i[0] += at.indexOf(t.charAt(s++)), r = 0; r < i.length; r++)
@@ -2676,10 +2690,10 @@ function Ke(t, e, n) {
2676
2690
  }
2677
2691
  return i.reverse();
2678
2692
  }
2679
- function ei(t, e) {
2693
+ function ni(t, e) {
2680
2694
  var n, r, i;
2681
2695
  if (e.isZero()) return e;
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));
2696
+ 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));
2683
2697
  for (var o = n; o--; ) {
2684
2698
  var s = e.times(e);
2685
2699
  e = s.times(s).minus(s).times(8).plus(1);
@@ -2787,19 +2801,19 @@ function re(t, e, n) {
2787
2801
  var r, i = t.e, o = $(t.d), s = o.length;
2788
2802
  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
2803
  }
2790
- function ze(t, e) {
2804
+ function je(t, e) {
2791
2805
  var n = t[0];
2792
2806
  for (e *= T; n >= 10; n /= 10) e++;
2793
2807
  return e;
2794
2808
  }
2795
- function qe(t, e, n) {
2796
- if (e > Jr)
2809
+ function Ze(t, e, n) {
2810
+ if (e > ti)
2797
2811
  throw x = !0, n && (t.precision = n), Error(En);
2798
- return E(new t($e), e, 1, !0);
2812
+ return E(new t(Ue), e, 1, !0);
2799
2813
  }
2800
2814
  function ne(t, e, n) {
2801
2815
  if (e > ct) throw Error(En);
2802
- return E(new t(Ze), e, n, !0);
2816
+ return E(new t($e), e, n, !0);
2803
2817
  }
2804
2818
  function Ln(t) {
2805
2819
  var e = t.length - 1, n = e * T + 1;
@@ -2847,7 +2861,7 @@ function lt(t, e) {
2847
2861
  if (o = E(o.times(t), u, 1), n = n.times(++l), a = s.plus(N(o, n, u, 1)), $(a.d).slice(0, u) === $(s.d).slice(0, u)) {
2848
2862
  for (i = d; i--; ) s = E(s.times(s), u, 1);
2849
2863
  if (e == null)
2850
- if (c < 3 && Me(s.d, u - r, h, c))
2864
+ if (c < 3 && Ae(s.d, u - r, h, c))
2851
2865
  f.precision = u += 10, n = o = a = new f(1), l = 0, c++;
2852
2866
  else
2853
2867
  return E(s, f.precision = v, h, x = !0);
@@ -2866,11 +2880,11 @@ function ue(t, e) {
2866
2880
  g = g.times(t), n = $(g.d), r = n.charAt(0), h++;
2867
2881
  o = g.e, r > 1 ? (g = new C("0." + n), o++) : g = new C(r + "." + n.slice(1));
2868
2882
  } else
2869
- return c = qe(C, l + 2, A).times(o + ""), g = ue(new C(r + "." + n.slice(1)), l - v).plus(c), C.precision = A, e == null ? E(g, A, D, x = !0) : g;
2883
+ return c = Ze(C, l + 2, A).times(o + ""), g = ue(new C(r + "." + n.slice(1)), l - v).plus(c), C.precision = A, e == null ? E(g, A, D, x = !0) : g;
2870
2884
  for (d = g, u = s = g = N(g.minus(1), g.plus(1), l, 1), f = E(g.times(g), l, 1), i = 3; ; ) {
2871
2885
  if (s = E(s.times(f), l, 1), c = u.plus(N(s, new C(i), l, 1)), $(c.d).slice(0, l) === $(u.d).slice(0, l))
2872
- if (u = u.times(2), o !== 0 && (u = u.plus(qe(C, l + 2, A).times(o + ""))), u = N(u, new C(h), l, 1), e == null)
2873
- if (Me(u.d, l - v, D, a))
2886
+ if (u = u.times(2), o !== 0 && (u = u.plus(Ze(C, l + 2, A).times(o + ""))), u = N(u, new C(h), l, 1), e == null)
2887
+ if (Ae(u.d, l - v, D, a))
2874
2888
  C.precision = l += v, c = s = g = N(d.minus(1), d.plus(1), l, 1), f = E(g.times(g), l, 1), i = a = 1;
2875
2889
  else
2876
2890
  return E(u, C.precision = A, D, x = !0);
@@ -2882,7 +2896,7 @@ function ue(t, e) {
2882
2896
  function Mn(t) {
2883
2897
  return String(t.s * t.s / 0);
2884
2898
  }
2885
- function He(t, e) {
2899
+ function Ke(t, e) {
2886
2900
  var n, r, i;
2887
2901
  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
2902
  for (i = e.length; e.charCodeAt(i - 1) === 48; --i) ;
@@ -2898,33 +2912,33 @@ function He(t, e) {
2898
2912
  t.e = 0, t.d = [0];
2899
2913
  return t;
2900
2914
  }
2901
- function ti(t, e) {
2915
+ function ri(t, e) {
2902
2916
  var n, r, i, o, s, a, u, c, l;
2903
2917
  if (e.indexOf("_") > -1) {
2904
- if (e = e.replace(/(\d)_(?=\d)/g, "$1"), Cn.test(e)) return He(t, e);
2918
+ if (e = e.replace(/(\d)_(?=\d)/g, "$1"), Cn.test(e)) return Ke(t, e);
2905
2919
  } else if (e === "Infinity" || e === "NaN")
2906
2920
  return +e || (t.s = NaN), t.e = NaN, t.d = null, t;
2907
- if (zr.test(e))
2921
+ if (Qr.test(e))
2908
2922
  n = 16, e = e.toLowerCase();
2909
- else if (jr.test(e))
2910
- n = 2;
2911
2923
  else if (Yr.test(e))
2924
+ n = 2;
2925
+ else if (Jr.test(e))
2912
2926
  n = 8;
2913
2927
  else
2914
2928
  throw Error(le + e);
2915
- for (o = e.search(/p/i), o > 0 ? (u = +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 = xn(r, new r(n), o, o * 2)), c = Ke(e, n, ee), l = c.length - 1, o = l; c[o] === 0; --o) c.pop();
2916
- return o < 0 ? new r(t.s * 0) : (t.e = ze(c, l), t.d = c, x = !1, s && (t = N(t, i, a * 4)), u && (t = t.times(Math.abs(u) < 54 ? F(2, u) : _e.pow(2, u))), x = !0, t);
2929
+ for (o = e.search(/p/i), o > 0 ? (u = +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 = xn(r, new r(n), o, o * 2)), c = Be(e, n, ee), l = c.length - 1, o = l; c[o] === 0; --o) c.pop();
2930
+ return o < 0 ? new r(t.s * 0) : (t.e = je(c, l), t.d = c, x = !1, s && (t = N(t, i, a * 4)), u && (t = t.times(Math.abs(u) < 54 ? F(2, u) : Ie.pow(2, u))), x = !0, t);
2917
2931
  }
2918
- function ni(t, e) {
2932
+ function ii(t, e) {
2919
2933
  var n, r = e.d.length;
2920
2934
  if (r < 3)
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);
2935
+ return e.isZero() ? e : Ce(t, 2, e, e);
2936
+ 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);
2923
2937
  for (var i, o = new t(5), s = new t(16), a = new t(20); n--; )
2924
2938
  i = e.times(e), e = e.times(o.plus(i.times(s.times(i).minus(a))));
2925
2939
  return e;
2926
2940
  }
2927
- function Le(t, e, n, r, i) {
2941
+ function Ce(t, e, n, r, i) {
2928
2942
  var o, s, a, u, c = t.precision, l = Math.ceil(c / T);
2929
2943
  for (x = !1, u = n.times(n), a = new t(r); ; ) {
2930
2944
  if (s = N(a.times(u), new t(e++ * e++), c, 1), a = i ? r.plus(s) : r.minus(s), r = N(s.times(u), new t(e++ * e++), c, 1), s = a.plus(r), s.d[l] !== void 0) {
@@ -2935,7 +2949,7 @@ function Le(t, e, n, r, i) {
2935
2949
  }
2936
2950
  return x = !0, s.d.length = l + 1, s;
2937
2951
  }
2938
- function Ye(t, e) {
2952
+ function ze(t, e) {
2939
2953
  for (var n = t; --e; ) n *= t;
2940
2954
  return n;
2941
2955
  }
@@ -2957,7 +2971,7 @@ function pt(t, e, n, r) {
2957
2971
  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
2972
  l = Mn(t);
2959
2973
  else {
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 = u = d.length; d[--u] == 0; ) d.pop();
2974
+ 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 = Be(re(f), 10, i), f.e = f.d.length), d = Be(l, 10, i), o = u = d.length; d[--u] == 0; ) d.pop();
2961
2975
  if (!d[0])
2962
2976
  l = v ? "0p+0" : "0";
2963
2977
  else {
@@ -2970,7 +2984,7 @@ function pt(t, e, n, r) {
2970
2984
  if (u > 1)
2971
2985
  if (e == 16 || e == 8) {
2972
2986
  for (s = e == 16 ? 4 : 3, --u; u % s; u++) l += "0";
2973
- for (d = Ke(l, i, e), u = d.length; !d[u - 1]; --u) ;
2987
+ for (d = Be(l, i, e), u = d.length; !d[u - 1]; --u) ;
2974
2988
  for (s = 1, l = "1."; s < u; s++) l += at.charAt(d[s]);
2975
2989
  } else
2976
2990
  l = l.charAt(0) + "." + l.slice(1);
@@ -2989,46 +3003,46 @@ function kt(t, e) {
2989
3003
  if (t.length > e)
2990
3004
  return t.length = e, !0;
2991
3005
  }
2992
- function ri(t) {
3006
+ function oi(t) {
2993
3007
  return new this(t).abs();
2994
3008
  }
2995
- function ii(t) {
3009
+ function si(t) {
2996
3010
  return new this(t).acos();
2997
3011
  }
2998
- function oi(t) {
3012
+ function ai(t) {
2999
3013
  return new this(t).acosh();
3000
3014
  }
3001
- function si(t, e) {
3015
+ function ui(t, e) {
3002
3016
  return new this(t).plus(e);
3003
3017
  }
3004
- function ai(t) {
3018
+ function ci(t) {
3005
3019
  return new this(t).asin();
3006
3020
  }
3007
- function ui(t) {
3021
+ function li(t) {
3008
3022
  return new this(t).asinh();
3009
3023
  }
3010
- function ci(t) {
3024
+ function di(t) {
3011
3025
  return new this(t).atan();
3012
3026
  }
3013
- function li(t) {
3027
+ function fi(t) {
3014
3028
  return new this(t).atanh();
3015
3029
  }
3016
- function di(t, e) {
3030
+ function hi(t, e) {
3017
3031
  t = new this(t), e = new this(e);
3018
3032
  var n, r = this.precision, i = this.rounding, o = r + 4;
3019
3033
  return !t.s || !e.s ? n = new this(NaN) : !t.d && !e.d ? (n = ne(this, o, 1).times(e.s > 0 ? 0.25 : 0.75), n.s = t.s) : !e.d || t.isZero() ? (n = e.s < 0 ? ne(this, r, i) : new this(0), n.s = t.s) : !t.d || e.isZero() ? (n = ne(this, o, 1).times(0.5), n.s = t.s) : e.s < 0 ? (this.precision = o, this.rounding = 1, n = this.atan(N(t, e, o, 1)), e = ne(this, o, 1), this.precision = r, this.rounding = i, n = t.s < 0 ? n.minus(e) : n.plus(e)) : n = this.atan(N(t, e, o, 1)), n;
3020
3034
  }
3021
- function fi(t) {
3035
+ function mi(t) {
3022
3036
  return new this(t).cbrt();
3023
3037
  }
3024
- function hi(t) {
3038
+ function pi(t) {
3025
3039
  return E(t = new this(t), t.e + 1, 2);
3026
3040
  }
3027
- function mi(t, e, n) {
3041
+ function gi(t, e, n) {
3028
3042
  return new this(t).clamp(e, n);
3029
3043
  }
3030
- function pi(t) {
3031
- if (!t || typeof t != "object") throw Error(je + "Object expected");
3044
+ function vi(t) {
3045
+ if (!t || typeof t != "object") throw Error(Ge + "Object expected");
3032
3046
  var e, n, r, i = t.defaults === !0, o = [
3033
3047
  "precision",
3034
3048
  1,
@@ -3037,16 +3051,16 @@ function pi(t) {
3037
3051
  0,
3038
3052
  8,
3039
3053
  "toExpNeg",
3040
- -Te,
3054
+ -9e15,
3041
3055
  0,
3042
3056
  "toExpPos",
3043
3057
  0,
3044
- Te,
3058
+ st,
3045
3059
  "maxE",
3046
3060
  0,
3047
- Te,
3061
+ st,
3048
3062
  "minE",
3049
- -Te,
3063
+ -9e15,
3050
3064
  0,
3051
3065
  "modulo",
3052
3066
  0,
@@ -3069,10 +3083,10 @@ function pi(t) {
3069
3083
  throw Error(le + n + ": " + r);
3070
3084
  return this;
3071
3085
  }
3072
- function gi(t) {
3086
+ function bi(t) {
3073
3087
  return new this(t).cos();
3074
3088
  }
3075
- function vi(t) {
3089
+ function wi(t) {
3076
3090
  return new this(t).cosh();
3077
3091
  }
3078
3092
  function _n(t) {
@@ -3098,28 +3112,28 @@ function _n(t) {
3098
3112
  o || (c.s = NaN), c.e = NaN, c.d = null;
3099
3113
  return;
3100
3114
  }
3101
- return He(c, o.toString());
3115
+ return Ke(c, o.toString());
3102
3116
  }
3103
3117
  if (u === "string")
3104
- return (a = o.charCodeAt(0)) === 45 ? (o = o.slice(1), c.s = -1) : (a === 43 && (o = o.slice(1)), c.s = 1), Cn.test(o) ? He(c, o) : ti(c, o);
3118
+ return (a = o.charCodeAt(0)) === 45 ? (o = o.slice(1), c.s = -1) : (a === 43 && (o = o.slice(1)), c.s = 1), Cn.test(o) ? Ke(c, o) : ri(c, o);
3105
3119
  if (u === "bigint")
3106
- return o < 0 ? (o = -o, c.s = -1) : c.s = 1, He(c, o.toString());
3120
+ return o < 0 ? (o = -o, c.s = -1) : c.s = 1, Ke(c, o.toString());
3107
3121
  throw Error(le + o);
3108
3122
  }
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 = xi, i.min = Ai, 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)
3123
+ 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 = vi, i.clone = _n, i.isDecimal = Rt, i.abs = oi, i.acos = si, i.acosh = ai, i.add = ui, i.asin = ci, i.asinh = li, i.atan = di, i.atanh = fi, i.atan2 = hi, i.cbrt = mi, i.ceil = pi, i.clamp = gi, i.cos = bi, i.cosh = wi, i.div = Si, i.exp = Ei, i.floor = Ti, i.hypot = yi, i.ln = Ci, i.log = Li, i.log10 = Ai, i.log2 = xi, i.max = Mi, i.min = Ii, i.mod = _i, i.mul = Oi, i.pow = Ni, i.random = ki, i.round = Ri, i.sign = Di, i.sin = Vi, i.sinh = Fi, i.sqrt = Bi, i.sub = Ki, i.sum = Hi, i.tan = Pi, i.tanh = Ui, i.trunc = $i, t === void 0 && (t = {}), t && t.defaults !== !0)
3110
3124
  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
3125
  return i.config(t), i;
3112
3126
  }
3113
- function bi(t, e) {
3127
+ function Si(t, e) {
3114
3128
  return new this(t).div(e);
3115
3129
  }
3116
- function wi(t) {
3130
+ function Ei(t) {
3117
3131
  return new this(t).exp();
3118
3132
  }
3119
- function Si(t) {
3133
+ function Ti(t) {
3120
3134
  return E(t = new this(t), t.e + 1, 3);
3121
3135
  }
3122
- function Ei() {
3136
+ function yi() {
3123
3137
  var t, e, n = new this(0);
3124
3138
  for (x = !1, t = 0; t < arguments.length; )
3125
3139
  if (e = new this(arguments[t++]), e.d)
@@ -3132,36 +3146,36 @@ function Ei() {
3132
3146
  return x = !0, n.sqrt();
3133
3147
  }
3134
3148
  function Rt(t) {
3135
- return t instanceof _e || t && t.toStringTag === yn || !1;
3149
+ return t instanceof Ie || t && t.toStringTag === yn || !1;
3136
3150
  }
3137
- function Ti(t) {
3151
+ function Ci(t) {
3138
3152
  return new this(t).ln();
3139
3153
  }
3140
- function yi(t, e) {
3154
+ function Li(t, e) {
3141
3155
  return new this(t).log(e);
3142
3156
  }
3143
- function Ci(t) {
3157
+ function xi(t) {
3144
3158
  return new this(t).log(2);
3145
3159
  }
3146
- function Li(t) {
3160
+ function Ai(t) {
3147
3161
  return new this(t).log(10);
3148
3162
  }
3149
- function xi() {
3163
+ function Mi() {
3150
3164
  return An(this, arguments, -1);
3151
3165
  }
3152
- function Ai() {
3166
+ function Ii() {
3153
3167
  return An(this, arguments, 1);
3154
3168
  }
3155
- function Mi(t, e) {
3169
+ function _i(t, e) {
3156
3170
  return new this(t).mod(e);
3157
3171
  }
3158
- function Ii(t, e) {
3172
+ function Oi(t, e) {
3159
3173
  return new this(t).mul(e);
3160
3174
  }
3161
- function _i(t, e) {
3175
+ function Ni(t, e) {
3162
3176
  return new this(t).pow(e);
3163
3177
  }
3164
- function Oi(t) {
3178
+ function ki(t) {
3165
3179
  var e, n, r, i, o = 0, s = new this(1), a = [];
3166
3180
  if (t === void 0 ? t = this.precision : X(t, 1, he), r = Math.ceil(t / T), this.crypto)
3167
3181
  if (crypto.getRandomValues)
@@ -3184,46 +3198,46 @@ function Oi(t) {
3184
3198
  }
3185
3199
  return s.e = n, s.d = a, s;
3186
3200
  }
3187
- function Ni(t) {
3201
+ function Ri(t) {
3188
3202
  return E(t = new this(t), t.e + 1, this.rounding);
3189
3203
  }
3190
- function ki(t) {
3204
+ function Di(t) {
3191
3205
  return t = new this(t), t.d ? t.d[0] ? t.s : 0 * t.s : t.s || NaN;
3192
3206
  }
3193
- function Ri(t) {
3207
+ function Vi(t) {
3194
3208
  return new this(t).sin();
3195
3209
  }
3196
- function Di(t) {
3210
+ function Fi(t) {
3197
3211
  return new this(t).sinh();
3198
3212
  }
3199
- function Vi(t) {
3213
+ function Bi(t) {
3200
3214
  return new this(t).sqrt();
3201
3215
  }
3202
- function Fi(t, e) {
3216
+ function Ki(t, e) {
3203
3217
  return new this(t).sub(e);
3204
3218
  }
3205
- function Bi() {
3219
+ function Hi() {
3206
3220
  var t = 0, e = arguments, n = new this(e[t]);
3207
3221
  for (x = !1; n.s && ++t < e.length; ) n = n.plus(e[t]);
3208
3222
  return x = !0, E(n, this.precision, this.rounding);
3209
3223
  }
3210
- function Ki(t) {
3224
+ function Pi(t) {
3211
3225
  return new this(t).tan();
3212
3226
  }
3213
- function Hi(t) {
3227
+ function Ui(t) {
3214
3228
  return new this(t).tanh();
3215
3229
  }
3216
- function Pi(t) {
3230
+ function $i(t) {
3217
3231
  return E(t = new this(t), t.e + 1, 1);
3218
3232
  }
3219
3233
  m[Symbol.for("nodejs.util.inspect.custom")] = m.toString;
3220
3234
  m[Symbol.toStringTag] = "Decimal";
3221
- var _e = m.constructor = _n(ut);
3222
- $e = new _e($e);
3223
- Ze = new _e(Ze);
3235
+ var Ie = m.constructor = _n(ut);
3236
+ Ue = new Ie(Ue);
3237
+ $e = new Ie($e);
3224
3238
  class be {
3225
3239
  static formatToTimecode(e, n, r = !1) {
3226
- let i = new _e(n), o, s = i.round();
3240
+ let i = new Ie(n), o, s = i.round();
3227
3241
  o = i.mul(e).floor();
3228
3242
  let a, u, c, l, d = s.mul(86400), f = o.mod(d), h = s.mul(3600), v = s.mul(60);
3229
3243
  return l = f.divToInt(h), f = f.minus(l.mul(h)), c = f.divToInt(v), f = f.minus(c.mul(v)), u = f.divToInt(s), a = f.minus(u.mul(s)), be.formatTimecodeText(l.toNumber(), c.toNumber(), u.toNumber(), a.toNumber(), r);
@@ -3241,7 +3255,7 @@ class be {
3241
3255
  return e < 10 ? `0${e}` : `${e}`;
3242
3256
  }
3243
3257
  }
3244
- class Ui {
3258
+ class Zi {
3245
3259
  static resolveFrameRateValueFromFraction(e) {
3246
3260
  return 30;
3247
3261
  }
@@ -3274,7 +3288,7 @@ const J = class J {
3274
3288
  return new Date(r);
3275
3289
  }
3276
3290
  static formatTimeMomentToTimecodeText(e, n, r = !1) {
3277
- let i = Ui.resolveFrameRateValueFromFraction(n);
3291
+ let i = Zi.resolveFrameRateValueFromFraction(n);
3278
3292
  return be.formatToTimecode(
3279
3293
  J.timeMomentToSeconds(e),
3280
3294
  i,
@@ -3348,7 +3362,7 @@ const J = class J {
3348
3362
  };
3349
3363
  S(J, "timeRangePattern", /^(\[|\()?(-?\d+:\d+)?(_(-?\d+:\d+)?)?(\]|\))?$/);
3350
3364
  let U = J;
3351
- class $i {
3365
+ class qi {
3352
3366
  // New property for EXT-X-START offset
3353
3367
  constructor(e = 3, n = !1) {
3354
3368
  this.targetDuration = null, this.mediaSequence = null, this.programDateTime = null, this.playlistType = null, this.streams = [], this.media = [], this.segments = [], this.endList = !1, this.version = e, this.independentSegments = n;
@@ -3359,19 +3373,19 @@ class dt {
3359
3373
  this.bandwidth = e, this.averageBandwidth = n, this.resolution = r, this.frameRate = i, this.uri = o;
3360
3374
  }
3361
3375
  }
3362
- class Zi {
3376
+ class Wi {
3363
3377
  constructor(e, n, r, i, o, s, a) {
3364
3378
  this.type = e, this.groupId = n, this.name = r, this.isDefault = i, this.autoSelect = o, this.channels = s, this.uri = a;
3365
3379
  }
3366
3380
  }
3367
- class qi {
3381
+ class Xi {
3368
3382
  constructor(e, n) {
3369
3383
  this.duration = e, this.uri = n;
3370
3384
  }
3371
3385
  }
3372
3386
  class Dt {
3373
3387
  constructor() {
3374
- this.playlist = new $i();
3388
+ this.playlist = new qi();
3375
3389
  }
3376
3390
  /**
3377
3391
  * Sets the HLS version for the playlist.
@@ -3494,7 +3508,7 @@ ${r.uri}
3494
3508
  `), n;
3495
3509
  }
3496
3510
  }
3497
- function Wi(t, e) {
3511
+ function Gi(t, e) {
3498
3512
  if (!t.some(
3499
3513
  (l) => {
3500
3514
  var d;
@@ -3530,7 +3544,7 @@ function Wi(t, e) {
3530
3544
  );
3531
3545
  r.addStreamInfo(P);
3532
3546
  } else if (v) {
3533
- const P = new Zi(
3547
+ const P = new Wi(
3534
3548
  v.type,
3535
3549
  v.groupId ?? v.type.toLowerCase(),
3536
3550
  v.name ?? "",
@@ -3556,7 +3570,7 @@ function Wi(t, e) {
3556
3570
  });
3557
3571
  return URL.createObjectURL(u);
3558
3572
  }
3559
- function Xi(t) {
3573
+ function ji(t) {
3560
3574
  return t === void 0 ? t : t.flatMap((e, n) => {
3561
3575
  var a;
3562
3576
  if (t.length - 1 === n)
@@ -3587,17 +3601,17 @@ function Xi(t) {
3587
3601
  ];
3588
3602
  });
3589
3603
  }
3590
- function Gi(t, e, n) {
3604
+ function zi(t, e, n) {
3591
3605
  const r = [], i = Math.max(
3592
3606
  ...[t, ...e ?? []].filter((u) => u.format === "urn:x-nmos:format:audio").map((u) => u.essence_parameters.channels)
3593
3607
  ), o = [t, ...e ?? []].filter((u) => u.format === "urn:x-nmos:format:audio").find((u) => u.essence_parameters.channels === i), s = (u, c) => {
3594
3608
  var h;
3595
3609
  if (u.format !== "urn:x-nmos:format:video" && u.format !== "urn:x-nmos:format:audio")
3596
3610
  return;
3597
- const l = ((h = Xi(c)) == null ? void 0 : h.map((v) => {
3611
+ const l = ((h = ji(c)) == null ? void 0 : h.map((v) => {
3598
3612
  var y, C;
3599
3613
  const g = U.timerangeExprDuration(v.timerange);
3600
- return new qi(
3614
+ return new Xi(
3601
3615
  g,
3602
3616
  ((C = (y = v.get_urls) == null ? void 0 : y.at(-1)) == null ? void 0 : C.url) ?? "http://byomakase.org/non-playable-gap"
3603
3617
  );
@@ -3645,11 +3659,11 @@ function Gi(t, e, n) {
3645
3659
  return t.format === "urn:x-nmos:format:multi" ? e == null || e.forEach((u) => {
3646
3660
  const c = n == null ? void 0 : n.get(u.id);
3647
3661
  c != null && c.length && s(u, c);
3648
- }) : s(t, n == null ? void 0 : n.get(t.id)), Wi(r, {
3662
+ }) : s(t, n == null ? void 0 : n.get(t.id)), Gi(r, {
3649
3663
  independentSegments: !0
3650
3664
  });
3651
3665
  }
3652
- const io = w.memo(
3666
+ const so = w.memo(
3653
3667
  function({
3654
3668
  flow: e,
3655
3669
  childFlows: n,
@@ -3660,9 +3674,9 @@ const io = w.memo(
3660
3674
  timerange: a,
3661
3675
  enableHotkey: u
3662
3676
  }) {
3663
- const c = Bn(() => Gi(e, n, r), [e, r, n, a]);
3677
+ const c = Hn(() => zi(e, n, r), [e, r, n, a]);
3664
3678
  return /* @__PURE__ */ w.createElement(
3665
- Dr,
3679
+ Fr,
3666
3680
  {
3667
3681
  videoUrl: c,
3668
3682
  videoLoadOptions: i,
@@ -3673,12 +3687,12 @@ const io = w.memo(
3673
3687
  );
3674
3688
  }
3675
3689
  );
3676
- function Ve(t) {
3690
+ function De(t) {
3677
3691
  const e = new Date(t * 1e3), n = e.getUTCHours();
3678
3692
  let r = e.getUTCMinutes();
3679
3693
  return e.getUTCSeconds() >= 30 && r++, `${n}h ${r}min`;
3680
3694
  }
3681
- const ji = `
3695
+ const Yi = `
3682
3696
  .omakase-time-range-selector-segments {
3683
3697
  display: flex;
3684
3698
  width: 700px;
@@ -3823,7 +3837,7 @@ const ji = `
3823
3837
  cursor: pointer;
3824
3838
  outline: inherit;
3825
3839
  }
3826
- `, zi = `
3840
+ `, Qi = `
3827
3841
  <svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
3828
3842
  <g filter="url(#filter0_d_5782_463)">
3829
3843
  <circle cx="16" cy="12" r="12" fill="#424850"/>
@@ -3847,7 +3861,7 @@ const ji = `
3847
3861
  </clipPath>
3848
3862
  </defs>
3849
3863
  </svg>
3850
- `, Yi = `
3864
+ `, Ji = `
3851
3865
  <svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
3852
3866
  <g filter="url(#filter0_d_5782_462)">
3853
3867
  <circle cx="16" cy="12" r="12" fill="#424850"/>
@@ -3886,7 +3900,7 @@ const ji = `
3886
3900
  rangeSelectorDuration: "omakase-time-range-selector-range-selector-duration",
3887
3901
  buttonContainer: "omakase-time-range-selector-button-container",
3888
3902
  invisible: "omakase-time-range-selector-invisible"
3889
- }, Fe = {
3903
+ }, Ve = {
3890
3904
  leftHandle: "omakase-time-range-selector-range-selector-left-handle",
3891
3905
  rightHandle: "omakase-time-range-selector-range-selector-right-handle",
3892
3906
  rangeDuration: "omakase-time-range-selector-range-selector-range-duration",
@@ -3958,7 +3972,7 @@ class Ft extends HTMLElement {
3958
3972
  });
3959
3973
  S(this, "updateDuration", () => {
3960
3974
  const { start: n, end: r } = this.getSliderValues(), i = r - n;
3961
- this._rangeSelectorRangeDisplay.textContent = Ve(i);
3975
+ this._rangeSelectorRangeDisplay.textContent = De(i);
3962
3976
  });
3963
3977
  S(this, "onXclick", () => {
3964
3978
  this.firstLabelIndex = this._initialFirstLabelIndex, this.resetSegments();
@@ -4108,20 +4122,20 @@ class Ft extends HTMLElement {
4108
4122
  r = this.minValue, i = this.segmentSize;
4109
4123
  this.resolveInitialSegment(r, i), this._container = document.createElement("div"), this._container.classList.add(R.container);
4110
4124
  const o = document.createElement("style");
4111
- o.textContent = ji, this._container.append(o), this._buttonContainer = document.createElement("div"), this._buttonContainer.classList.add(
4125
+ o.textContent = Yi, this._container.append(o), this._buttonContainer = document.createElement("div"), this._buttonContainer.classList.add(
4112
4126
  R.buttonContainer,
4113
4127
  R.invisible
4114
4128
  );
4115
- const s = this.createButtonSvg(zi), a = this.createButtonSvg(Yi);
4116
- 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(
4129
+ const s = this.createButtonSvg(Qi), a = this.createButtonSvg(Ji);
4130
+ 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(
4117
4131
  R.rangeSelectorDuration
4118
- ), this._rangeSelectorRangeDisplay.id = Fe.rangeDuration, this._rangeSelector.append(
4132
+ ), this._rangeSelectorRangeDisplay.id = Ve.rangeDuration, this._rangeSelector.append(
4119
4133
  this._rangeSelectorLeftHandle,
4120
4134
  this._rangeSelectorRangeDisplay,
4121
4135
  this._rangeSelectorRightHandle
4122
4136
  ), this._container.append(this._rangeSelector), this._segments = this.buildSegments(
4123
4137
  this._labels.slice(this.firstLabelIndex, this.lastLabelIndex + 1)
4124
- ), this._segments.id = Fe.segments, this._segments.classList.add(R.segments), this._container.append(this._segments), this._rangeSelectorLeftHandle.addEventListener(
4138
+ ), this._segments.id = Ve.segments, this._segments.classList.add(R.segments), this._container.append(this._segments), this._rangeSelectorLeftHandle.addEventListener(
4125
4139
  "mousedown",
4126
4140
  this.onMouseDownLeft
4127
4141
  ), this._rangeSelectorRightHandle.addEventListener(
@@ -4163,7 +4177,7 @@ class Ft extends HTMLElement {
4163
4177
  const f = document.createElement("div");
4164
4178
  f.classList.add(R.segmentTick);
4165
4179
  const h = document.createElement("div");
4166
- h.classList.add(R.segmentLabel), h.innerHTML = Ve(c), l.append(d, f, h), r.append(l);
4180
+ h.classList.add(R.segmentLabel), h.innerHTML = De(c), l.append(d, f, h), r.append(l);
4167
4181
  });
4168
4182
  const i = document.createElement("div");
4169
4183
  i.classList.add(R.segment);
@@ -4175,12 +4189,12 @@ class Ft extends HTMLElement {
4175
4189
  a.classList.add(
4176
4190
  R.segmentLabel,
4177
4191
  R.firstSegmentLabel
4178
- ), a.innerHTML = Ve(n.at(-2));
4192
+ ), a.innerHTML = De(n.at(-2));
4179
4193
  const u = document.createElement("div");
4180
4194
  return u.classList.add(
4181
4195
  R.segmentLabel,
4182
4196
  R.secondSegmentLabel
4183
- ), u.innerHTML = Ve(n.at(-1)), i.append(
4197
+ ), u.innerHTML = De(n.at(-1)), i.append(
4184
4198
  o,
4185
4199
  s,
4186
4200
  a,
@@ -4188,7 +4202,7 @@ class Ft extends HTMLElement {
4188
4202
  ), r.append(i), r;
4189
4203
  }
4190
4204
  }
4191
- const Bt = "omakase-time-range-selector-react-div", oo = ({
4205
+ const Bt = "omakase-time-range-selector-react-div", ao = ({
4192
4206
  timeRange: t,
4193
4207
  maxTimeRange: e,
4194
4208
  numberOfSegments: n,
@@ -4209,7 +4223,7 @@ const Bt = "omakase-time-range-selector-react-div", oo = ({
4209
4223
  "numberOfSegments",
4210
4224
  n.toString()
4211
4225
  ), f.setAttribute("sliderStart", l.toString()), f.setAttribute("sliderEnd", d.toString()), f.onCheckmarkClickCallback = o, (h = document.getElementById(Bt)) == null || h.append(f);
4212
- }, []), /* @__PURE__ */ w.createElement("div", { id: Bt })), so = w.memo(
4226
+ }, []), /* @__PURE__ */ w.createElement("div", { id: Bt })), uo = w.memo(
4213
4227
  ({
4214
4228
  omakasePlayer: t,
4215
4229
  config: e,
@@ -4231,7 +4245,7 @@ var Kt;
4231
4245
  UrnxNmosformataudio: "urn:x-nmos:format:audio"
4232
4246
  };
4233
4247
  })(Kt || (Kt = {}));
4234
- const ao = {
4248
+ const co = {
4235
4249
  Video: "urn:x-nmos:format:video",
4236
4250
  Audio: "urn:x-nmos:format:audio",
4237
4251
  Data: "urn:x-nmos:format:data",
@@ -4343,19 +4357,19 @@ var zt;
4343
4357
  })(zt || (zt = {}));
4344
4358
  export {
4345
4359
  Kt as AudioFlow,
4346
- ao as Contentformat,
4360
+ co as Contentformat,
4347
4361
  Ht as DataFlow,
4348
4362
  Pt as DeletionRequest,
4349
4363
  zt as ImageFlow,
4350
4364
  Ut as MediaBucketObjectStorePreInner,
4351
4365
  $t as MultiEssenceFlow,
4352
- so as OmakaseMarkerListComponent,
4353
- Dr as OmakasePlayerComponent,
4354
- to as OmakasePlayerTimelineBuilder,
4355
- no as OmakasePlayerTimelineComponent,
4356
- ro as OmakasePlayerTimelineControlsToolbar,
4357
- io as OmakaseTamsPlayerComponent,
4358
- oo as OmakaseTimeRangePicker,
4366
+ uo as OmakaseMarkerListComponent,
4367
+ Fr as OmakasePlayerComponent,
4368
+ ro as OmakasePlayerTimelineBuilder,
4369
+ io as OmakasePlayerTimelineComponent,
4370
+ oo as OmakasePlayerTimelineControlsToolbar,
4371
+ so as OmakaseTamsPlayerComponent,
4372
+ ao as OmakaseTimeRangePicker,
4359
4373
  Zt as ServiceMediaStore,
4360
4374
  qt as Source,
4361
4375
  U as TimeRangeUtil,