@salina-app/media-editor 0.0.78 → 0.0.80

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.
@@ -0,0 +1,6 @@
1
+ import { ISpritesResponse } from '../lib/typings/ISprites';
2
+ import { IWaveformResponse } from '../lib/typings/IWaveform';
3
+ export declare const useTimelineService: () => {
4
+ getWaveform: (mainFilePath: string) => Promise<IWaveformResponse>;
5
+ getSprites: (mainFilePath: string) => Promise<ISpritesResponse>;
6
+ };
@@ -0,0 +1,3 @@
1
+ export declare const useJwt: () => {
2
+ transformPayload: <T>(payload?: T, customAccessToken?: string) => string;
3
+ };
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as W from "react";
2
- import rt, { useState as Hn, useCallback as T_, useEffect as Ln, cloneElement as BX, forwardRef as Qu, createElement as ud, memo as pd, useRef as Ei, createContext as $v, useContext as Ya, useId as UX, Component as zX, useLayoutEffect as Z8, useInsertionEffect as HX, useMemo as Jn, Fragment as J8, useImperativeHandle as jX } from "react";
2
+ import rt, { useState as zn, useCallback as T_, useEffect as Hn, cloneElement as BX, forwardRef as Qu, createElement as ud, memo as pd, useRef as Ei, createContext as $v, useContext as Ya, useId as UX, Component as zX, useLayoutEffect as Z8, useInsertionEffect as HX, useMemo as Jn, Fragment as J8, useImperativeHandle as jX } from "react";
3
3
  import { jsx as Z, Fragment as bo, jsxs as yt } from "react/jsx-runtime";
4
4
  const VX = 1, $X = 1e6;
5
5
  let DE = 0;
@@ -1711,15 +1711,18 @@ const bQ = (n) => {
1711
1711
  // isFullscreen: false,
1712
1712
  // setIsFullscreen: (value: boolean) => set({ isFullscreen: value }),
1713
1713
  resetPlayerState: () => {
1714
- n((e) => (e.playerRef && (e.playerRef.pause(), e.playerRef.currentTime(0)), {
1715
- videoCurrentTime: 0,
1716
- videoDuration: 0,
1717
- videoIsPlaying: !1,
1718
- videoIsReady: !1
1719
- }));
1714
+ n((e) => {
1715
+ var t, r;
1716
+ return e.playerRef && ((t = e.playerRef) == null || t.pause(), (r = e.playerRef) == null || r.currentTime(0)), {
1717
+ videoCurrentTime: 0,
1718
+ videoDuration: 0,
1719
+ videoIsPlaying: !1,
1720
+ videoIsReady: !1
1721
+ };
1722
+ });
1720
1723
  }
1721
1724
  })), n_e = ({ onCut: n }) => {
1722
- const [e, t] = Hn(0), {
1725
+ const [e, t] = zn(0), {
1723
1726
  videoIsPlaying: r,
1724
1727
  setVideoIsPlaying: i,
1725
1728
  videoIsReady: a,
@@ -1763,7 +1766,7 @@ const bQ = (n) => {
1763
1766
  });
1764
1767
  else if (_.end === "") {
1765
1768
  if (_.initialCut && _.initialCut >= N || N === 0)
1766
- return console.log("cut is less than initial cut"), ad({
1769
+ return ad({
1767
1770
  variant: "destructive",
1768
1771
  title: "Uh oh! Something went wrong.",
1769
1772
  description: "Sorry not a valid cut. The current cut time is less than the previous cut.",
@@ -1846,7 +1849,7 @@ const bQ = (n) => {
1846
1849
  T
1847
1850
  ]
1848
1851
  );
1849
- Ln(() => (document.addEventListener("keydown", I), () => {
1852
+ Hn(() => (document.addEventListener("keydown", I), () => {
1850
1853
  document.removeEventListener("keydown", I);
1851
1854
  }), [I]);
1852
1855
  }, c6 = "https://putulero-salina-api-staging.media-meter.in", Nu = "secret";
@@ -3966,16 +3969,16 @@ const Fu = /* @__PURE__ */ Zu(eJ), { GET: lN } = MA(!1), LA = () => ({ getDirect
3966
3969
  setThumbnails: f,
3967
3970
  setVideoSrc: p
3968
3971
  } = Sv();
3969
- Ln(() => {
3972
+ Hn(() => {
3970
3973
  i && i.length && c(i);
3971
- }, [i, c]), Ln(() => {
3974
+ }, [i, c]), Hn(() => {
3972
3975
  t && t.length && a(t);
3973
- }, [t, a]), Ln(() => {
3976
+ }, [t, a]), Hn(() => {
3974
3977
  e && o(e);
3975
- }, [e, o]), Ln(() => {
3978
+ }, [e, o]), Hn(() => {
3976
3979
  r && r.length && f(r);
3977
- }, [r, f]), Ln(() => {
3978
- n && p(n);
3980
+ }, [r, f]), Hn(() => {
3981
+ p(n || "");
3979
3982
  }, [n, p]);
3980
3983
  }, tJ = {
3981
3984
  isOpen: !1,
@@ -4045,10 +4048,10 @@ function _a(n, e) {
4045
4048
  if (e !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
4046
4049
  return rJ(n);
4047
4050
  }
4048
- function Nn(n) {
4049
- return Nn = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
4051
+ function Ln(n) {
4052
+ return Ln = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
4050
4053
  return e.__proto__ || Object.getPrototypeOf(e);
4051
- }, Nn(n);
4054
+ }, Ln(n);
4052
4055
  }
4053
4056
  function pD(n, e) {
4054
4057
  return pD = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, r) {
@@ -4157,7 +4160,7 @@ function fN(n) {
4157
4160
  return n;
4158
4161
  }
4159
4162
  function iJ(n, e, t) {
4160
- return e = Nn(e), _a(n, j6() ? Reflect.construct(e, t, Nn(n).constructor) : e.apply(n, t));
4163
+ return e = Ln(e), _a(n, j6() ? Reflect.construct(e, t, Ln(n).constructor) : e.apply(n, t));
4161
4164
  }
4162
4165
  function j6() {
4163
4166
  try {
@@ -4374,7 +4377,7 @@ function pN(n) {
4374
4377
  return n;
4375
4378
  }
4376
4379
  function sJ(n, e, t) {
4377
- return e = Nn(e), _a(n, W6() ? Reflect.construct(e, t, Nn(n).constructor) : e.apply(n, t));
4380
+ return e = Ln(e), _a(n, W6() ? Reflect.construct(e, t, Ln(n).constructor) : e.apply(n, t));
4378
4381
  }
4379
4382
  function W6() {
4380
4383
  try {
@@ -4444,7 +4447,7 @@ Oe(aJ, "defaultProps", {
4444
4447
  style: {}
4445
4448
  });
4446
4449
  function oJ(n, e, t) {
4447
- return e = Nn(e), _a(n, q6() ? Reflect.construct(e, t, Nn(n).constructor) : e.apply(n, t));
4450
+ return e = Ln(e), _a(n, q6() ? Reflect.construct(e, t, Ln(n).constructor) : e.apply(n, t));
4448
4451
  }
4449
4452
  function q6() {
4450
4453
  try {
@@ -5354,7 +5357,7 @@ function EN(n) {
5354
5357
  return n;
5355
5358
  }
5356
5359
  function SJ(n, e, t) {
5357
- return e = Nn(e), _a(n, Z6() ? Reflect.construct(e, t, Nn(n).constructor) : e.apply(n, t));
5360
+ return e = Ln(e), _a(n, Z6() ? Reflect.construct(e, t, Ln(n).constructor) : e.apply(n, t));
5358
5361
  }
5359
5362
  function Z6() {
5360
5363
  try {
@@ -5796,7 +5799,7 @@ function RN(n) {
5796
5799
  }
5797
5800
  }
5798
5801
  function RJ(n, e, t) {
5799
- return e = Nn(e), _a(n, J6() ? Reflect.construct(e, t, Nn(n).constructor) : e.apply(n, t));
5802
+ return e = Ln(e), _a(n, J6() ? Reflect.construct(e, t, Ln(n).constructor) : e.apply(n, t));
5800
5803
  }
5801
5804
  function J6() {
5802
5805
  try {
@@ -5983,7 +5986,7 @@ function DJ(n) {
5983
5986
  });
5984
5987
  }
5985
5988
  function AJ(n, e, t) {
5986
- return e = Nn(e), _a(n, tF() ? Reflect.construct(e, t, Nn(n).constructor) : e.apply(n, t));
5989
+ return e = Ln(e), _a(n, tF() ? Reflect.construct(e, t, Ln(n).constructor) : e.apply(n, t));
5987
5990
  }
5988
5991
  function tF() {
5989
5992
  try {
@@ -6476,7 +6479,7 @@ function Va(n) {
6476
6479
  return n;
6477
6480
  }
6478
6481
  function WJ(n, e, t) {
6479
- return e = Nn(e), _a(n, nF() ? Reflect.construct(e, t, Nn(n).constructor) : e.apply(n, t));
6482
+ return e = Ln(e), _a(n, nF() ? Reflect.construct(e, t, Ln(n).constructor) : e.apply(n, t));
6480
6483
  }
6481
6484
  function nF() {
6482
6485
  try {
@@ -7191,7 +7194,7 @@ function ZJ(n) {
7191
7194
  return XJ(n) || KJ(n) || iF(n) || QJ();
7192
7195
  }
7193
7196
  function JJ(n, e, t) {
7194
- return e = Nn(e), _a(n, sF() ? Reflect.construct(e, t, Nn(n).constructor) : e.apply(n, t));
7197
+ return e = Ln(e), _a(n, sF() ? Reflect.construct(e, t, Ln(n).constructor) : e.apply(n, t));
7195
7198
  }
7196
7199
  function sF() {
7197
7200
  try {
@@ -7358,7 +7361,7 @@ function nee(n) {
7358
7361
  t ? t.call(n, e) : n.forceUpdate();
7359
7362
  }
7360
7363
  function ree(n, e, t) {
7361
- return e = Nn(e), _a(n, oF() ? Reflect.construct(e, t, Nn(n).constructor) : e.apply(n, t));
7364
+ return e = Ln(e), _a(n, oF() ? Reflect.construct(e, t, Ln(n).constructor) : e.apply(n, t));
7362
7365
  }
7363
7366
  function oF() {
7364
7367
  try {
@@ -7907,7 +7910,7 @@ function Eee(n) {
7907
7910
  return n;
7908
7911
  }
7909
7912
  function Ree(n, e, t) {
7910
- return e = Nn(e), _a(n, hF() ? Reflect.construct(e, t, Nn(n).constructor) : e.apply(n, t));
7913
+ return e = Ln(e), _a(n, hF() ? Reflect.construct(e, t, Ln(n).constructor) : e.apply(n, t));
7911
7914
  }
7912
7915
  function hF() {
7913
7916
  try {
@@ -8203,7 +8206,7 @@ function lr(n) {
8203
8206
  return n;
8204
8207
  }
8205
8208
  function Lee(n, e, t) {
8206
- return e = Nn(e), _a(n, mF() ? Reflect.construct(e, t, Nn(n).constructor) : e.apply(n, t));
8209
+ return e = Ln(e), _a(n, mF() ? Reflect.construct(e, t, Ln(n).constructor) : e.apply(n, t));
8207
8210
  }
8208
8211
  function mF() {
8209
8212
  try {
@@ -8658,7 +8661,7 @@ WA.propTypes = process.env.NODE_ENV !== "production" ? {
8658
8661
  } : {};
8659
8662
  ib(WA);
8660
8663
  function Nee(n, e, t) {
8661
- return e = Nn(e), _a(n, gF() ? Reflect.construct(e, t, Nn(n).constructor) : e.apply(n, t));
8664
+ return e = Ln(e), _a(n, gF() ? Reflect.construct(e, t, Ln(n).constructor) : e.apply(n, t));
8662
8665
  }
8663
8666
  function gF() {
8664
8667
  try {
@@ -8822,7 +8825,7 @@ function jee(n) {
8822
8825
  }), t);
8823
8826
  }
8824
8827
  function Vee(n, e, t) {
8825
- return e = Nn(e), _a(n, yF() ? Reflect.construct(e, t || [], Nn(n).constructor) : e.apply(n, t));
8828
+ return e = Ln(e), _a(n, yF() ? Reflect.construct(e, t || [], Ln(n).constructor) : e.apply(n, t));
8826
8829
  }
8827
8830
  function yF() {
8828
8831
  try {
@@ -8920,7 +8923,7 @@ function Iu(n) {
8920
8923
  return n;
8921
8924
  }
8922
8925
  function $ee(n, e, t) {
8923
- return e = Nn(e), _a(n, _F() ? Reflect.construct(e, t, Nn(n).constructor) : e.apply(n, t));
8926
+ return e = Ln(e), _a(n, _F() ? Reflect.construct(e, t, Ln(n).constructor) : e.apply(n, t));
8924
8927
  }
8925
8928
  function _F() {
8926
8929
  try {
@@ -9561,7 +9564,7 @@ function $N(n) {
9561
9564
  return n;
9562
9565
  }
9563
9566
  function Yee(n, e, t) {
9564
- return e = Nn(e), _a(n, CF() ? Reflect.construct(e, t, Nn(n).constructor) : e.apply(n, t));
9567
+ return e = Ln(e), _a(n, CF() ? Reflect.construct(e, t, Ln(n).constructor) : e.apply(n, t));
9565
9568
  }
9566
9569
  function CF() {
9567
9570
  try {
@@ -9984,19 +9987,19 @@ function rte() {
9984
9987
  }
9985
9988
  function c(ct, lt, Xt) {
9986
9989
  for (var hn = Xt; hn > 0; ) {
9987
- var Un = hn - 1 >>> 1, nr = ct[Un];
9990
+ var Bn = hn - 1 >>> 1, nr = ct[Bn];
9988
9991
  if (p(nr, lt) > 0)
9989
- ct[Un] = lt, ct[hn] = nr, hn = Un;
9992
+ ct[Bn] = lt, ct[hn] = nr, hn = Bn;
9990
9993
  else
9991
9994
  return;
9992
9995
  }
9993
9996
  }
9994
9997
  function f(ct, lt, Xt) {
9995
- for (var hn = Xt, Un = ct.length, nr = Un >>> 1; hn < nr; ) {
9998
+ for (var hn = Xt, Bn = ct.length, nr = Bn >>> 1; hn < nr; ) {
9996
9999
  var Pn = (hn + 1) * 2 - 1, Lr = ct[Pn], pn = Pn + 1, Ri = ct[pn];
9997
10000
  if (p(Lr, lt) < 0)
9998
- pn < Un && p(Ri, Lr) < 0 ? (ct[hn] = Ri, ct[pn] = lt, hn = pn) : (ct[hn] = Lr, ct[Pn] = lt, hn = Pn);
9999
- else if (pn < Un && p(Ri, lt) < 0)
10001
+ pn < Bn && p(Ri, Lr) < 0 ? (ct[hn] = Ri, ct[pn] = lt, hn = pn) : (ct[hn] = Lr, ct[Pn] = lt, hn = Pn);
10002
+ else if (pn < Bn && p(Ri, lt) < 0)
10000
10003
  ct[hn] = Ri, ct[pn] = lt, hn = pn;
10001
10004
  else
10002
10005
  return;
@@ -10040,7 +10043,7 @@ function rte() {
10040
10043
  ye = !0, gi(Fe);
10041
10044
  else {
10042
10045
  var lt = a(ee);
10043
- lt !== null && Bn(Ae, lt.startTime - ct);
10046
+ lt !== null && Fn(Ae, lt.startTime - ct);
10044
10047
  }
10045
10048
  }
10046
10049
  function Fe(ct, lt) {
@@ -10055,11 +10058,11 @@ function rte() {
10055
10058
  }
10056
10059
  function Me(ct, lt) {
10057
10060
  var Xt = lt;
10058
- for (me(Xt), oe = a(j); oe !== null && !e && !(oe.expirationTime > Xt && (!ct || Fn())); ) {
10061
+ for (me(Xt), oe = a(j); oe !== null && !e && !(oe.expirationTime > Xt && (!ct || Nn())); ) {
10059
10062
  var hn = oe.callback;
10060
10063
  if (typeof hn == "function") {
10061
10064
  oe.callback = null, ce = oe.priorityLevel;
10062
- var Un = oe.expirationTime <= Xt, nr = hn(Un);
10065
+ var Bn = oe.expirationTime <= Xt, nr = hn(Bn);
10063
10066
  Xt = n.unstable_now(), typeof nr == "function" ? oe.callback = nr : oe === a(j) && o(j), me(Xt);
10064
10067
  } else
10065
10068
  o(j);
@@ -10068,7 +10071,7 @@ function rte() {
10068
10071
  if (oe !== null)
10069
10072
  return !0;
10070
10073
  var Pn = a(ee);
10071
- return Pn !== null && Bn(Ae, Pn.startTime - Xt), !1;
10074
+ return Pn !== null && Fn(Ae, Pn.startTime - Xt), !1;
10072
10075
  }
10073
10076
  function Ge(ct, lt) {
10074
10077
  switch (ct) {
@@ -10122,12 +10125,12 @@ function rte() {
10122
10125
  };
10123
10126
  }
10124
10127
  function Xe(ct, lt, Xt) {
10125
- var hn = n.unstable_now(), Un;
10128
+ var hn = n.unstable_now(), Bn;
10126
10129
  if (typeof Xt == "object" && Xt !== null) {
10127
10130
  var nr = Xt.delay;
10128
- typeof nr == "number" && nr > 0 ? Un = hn + nr : Un = hn;
10131
+ typeof nr == "number" && nr > 0 ? Bn = hn + nr : Bn = hn;
10129
10132
  } else
10130
- Un = hn;
10133
+ Bn = hn;
10131
10134
  var Pn;
10132
10135
  switch (ct) {
10133
10136
  case m:
@@ -10147,15 +10150,15 @@ function rte() {
10147
10150
  Pn = G;
10148
10151
  break;
10149
10152
  }
10150
- var Lr = Un + Pn, pn = {
10153
+ var Lr = Bn + Pn, pn = {
10151
10154
  id: ie++,
10152
10155
  callback: lt,
10153
10156
  priorityLevel: ct,
10154
- startTime: Un,
10157
+ startTime: Bn,
10155
10158
  expirationTime: Lr,
10156
10159
  sortIndex: -1
10157
10160
  };
10158
- return Un > hn ? (pn.sortIndex = Un, i(ee, pn), a(j) === null && pn === a(ee) && (ge ? Kr() : ge = !0, Bn(Ae, Un - hn))) : (pn.sortIndex = Lr, i(j, pn), !ye && !xe && (ye = !0, gi(Fe))), pn;
10161
+ return Bn > hn ? (pn.sortIndex = Bn, i(ee, pn), a(j) === null && pn === a(ee) && (ge ? Kr() : ge = !0, Fn(Ae, Bn - hn))) : (pn.sortIndex = Lr, i(j, pn), !ye && !xe && (ye = !0, gi(Fe))), pn;
10159
10162
  }
10160
10163
  function ut() {
10161
10164
  }
@@ -10172,7 +10175,7 @@ function rte() {
10172
10175
  return ce;
10173
10176
  }
10174
10177
  var Pt = !1, an = null, Zt = -1, Rn = r, dn = -1;
10175
- function Fn() {
10178
+ function Nn() {
10176
10179
  var ct = n.unstable_now() - dn;
10177
10180
  return !(ct < Rn);
10178
10181
  }
@@ -10214,7 +10217,7 @@ function rte() {
10214
10217
  function gi(ct) {
10215
10218
  an = ct, Pt || (Pt = !0, Sn());
10216
10219
  }
10217
- function Bn(ct, lt) {
10220
+ function Fn(ct, lt) {
10218
10221
  Zt = ae(function() {
10219
10222
  ct(n.unstable_now());
10220
10223
  }, lt);
@@ -10223,7 +10226,7 @@ function rte() {
10223
10226
  ue(Zt), Zt = -1;
10224
10227
  }
10225
10228
  var ts = zt, Tr = null;
10226
- n.unstable_IdlePriority = R, n.unstable_ImmediatePriority = m, n.unstable_LowPriority = T, n.unstable_NormalPriority = x, n.unstable_Profiling = Tr, n.unstable_UserBlockingPriority = _, n.unstable_cancelCallback = Ie, n.unstable_continueExecution = nt, n.unstable_forceFrameRate = Jt, n.unstable_getCurrentPriorityLevel = gt, n.unstable_getFirstCallbackNode = Ye, n.unstable_next = st, n.unstable_pauseExecution = ut, n.unstable_requestPaint = ts, n.unstable_runWithPriority = Ge, n.unstable_scheduleCallback = Xe, n.unstable_shouldYield = Fn, n.unstable_wrapCallback = Ue, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
10229
+ n.unstable_IdlePriority = R, n.unstable_ImmediatePriority = m, n.unstable_LowPriority = T, n.unstable_NormalPriority = x, n.unstable_Profiling = Tr, n.unstable_UserBlockingPriority = _, n.unstable_cancelCallback = Ie, n.unstable_continueExecution = nt, n.unstable_forceFrameRate = Jt, n.unstable_getCurrentPriorityLevel = gt, n.unstable_getFirstCallbackNode = Ye, n.unstable_next = st, n.unstable_pauseExecution = ut, n.unstable_requestPaint = ts, n.unstable_runWithPriority = Ge, n.unstable_scheduleCallback = Xe, n.unstable_shouldYield = Nn, n.unstable_wrapCallback = Ue, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
10227
10230
  }();
10228
10231
  }(YE)), YE;
10229
10232
  }
@@ -10587,7 +10590,7 @@ function ite() {
10587
10590
  u.removeAttribute("value");
10588
10591
  return;
10589
10592
  }
10590
- d.hasOwnProperty("value") ? Fn(u, d.type, v) : d.hasOwnProperty("defaultValue") && Fn(u, d.type, Xe(d.defaultValue)), d.checked == null && d.defaultChecked != null && (u.defaultChecked = !!d.defaultChecked);
10593
+ d.hasOwnProperty("value") ? Nn(u, d.type, v) : d.hasOwnProperty("defaultValue") && Nn(u, d.type, Xe(d.defaultValue)), d.checked == null && d.defaultChecked != null && (u.defaultChecked = !!d.defaultChecked);
10591
10594
  }
10592
10595
  function dn(u, d, v) {
10593
10596
  if (d.hasOwnProperty("value") || d.hasOwnProperty("defaultValue")) {
@@ -10597,7 +10600,7 @@ function ite() {
10597
10600
  }
10598
10601
  v = u.name, v !== "" && (u.name = ""), u.defaultChecked = !!u._wrapperState.initialChecked, v !== "" && (u.name = v);
10599
10602
  }
10600
- function Fn(u, d, v) {
10603
+ function Nn(u, d, v) {
10601
10604
  (d !== "number" || gt(u.ownerDocument) !== u) && (v == null ? u.defaultValue = "" + u._wrapperState.initialValue : u.defaultValue !== "" + v && (u.defaultValue = "" + v));
10602
10605
  }
10603
10606
  var zt = Array.isArray;
@@ -10654,7 +10657,7 @@ function ite() {
10654
10657
  return "http://www.w3.org/1999/xhtml";
10655
10658
  }
10656
10659
  }
10657
- function Bn(u, d) {
10660
+ function Fn(u, d) {
10658
10661
  return u == null || u === "http://www.w3.org/1999/xhtml" ? gi(d) : u === "http://www.w3.org/2000/svg" && d === "foreignObject" ? "http://www.w3.org/1999/xhtml" : u;
10659
10662
  }
10660
10663
  var Kr, ts = function(u) {
@@ -10740,10 +10743,10 @@ function ite() {
10740
10743
  v === "float" && (v = "cssFloat"), C ? u.setProperty(v, P) : u[v] = P;
10741
10744
  }
10742
10745
  }
10743
- var Un = re({ menuitem: !0 }, { area: !0, base: !0, br: !0, col: !0, embed: !0, hr: !0, img: !0, input: !0, keygen: !0, link: !0, meta: !0, param: !0, source: !0, track: !0, wbr: !0 });
10746
+ var Bn = re({ menuitem: !0 }, { area: !0, base: !0, br: !0, col: !0, embed: !0, hr: !0, img: !0, input: !0, keygen: !0, link: !0, meta: !0, param: !0, source: !0, track: !0, wbr: !0 });
10744
10747
  function nr(u, d) {
10745
10748
  if (d) {
10746
- if (Un[u] && (d.children != null || d.dangerouslySetInnerHTML != null)) throw Error(t(137, u));
10749
+ if (Bn[u] && (d.children != null || d.dangerouslySetInnerHTML != null)) throw Error(t(137, u));
10747
10750
  if (d.dangerouslySetInnerHTML != null) {
10748
10751
  if (d.children != null) throw Error(t(60));
10749
10752
  if (typeof d.dangerouslySetInnerHTML != "object" || !("__html" in d.dangerouslySetInnerHTML)) throw Error(t(61));
@@ -11704,7 +11707,7 @@ function ite() {
11704
11707
  }
11705
11708
  if (Vi) throw u = qs, Vi = !1, qs = null, u;
11706
11709
  }
11707
- function zn(u, d) {
11710
+ function Un(u, d) {
11708
11711
  var v = d[xs];
11709
11712
  v === void 0 && (v = d[xs] = /* @__PURE__ */ new Set());
11710
11713
  var C = u + "__bubble";
@@ -11883,7 +11886,7 @@ function ite() {
11883
11886
  oi(et, Dt, v, Ze);
11884
11887
  break e;
11885
11888
  }
11886
- Bt && Bt(u, Qe, Le), u === "focusout" && (Bt = Qe._wrapperState) && Bt.controlled && Qe.type === "number" && Fn(Qe, "number", Qe.value);
11889
+ Bt && Bt(u, Qe, Le), u === "focusout" && (Bt = Qe._wrapperState) && Bt.controlled && Qe.type === "number" && Nn(Qe, "number", Qe.value);
11887
11890
  }
11888
11891
  switch (Bt = Le ? fu(Le) : window, u) {
11889
11892
  case "focusin":
@@ -12594,10 +12597,10 @@ function ite() {
12594
12597
  switch (y(Oh, d), y(Ud, u), y(uo, kh), u = d.nodeType, u) {
12595
12598
  case 9:
12596
12599
  case 11:
12597
- d = (d = d.documentElement) ? d.namespaceURI : Bn(null, "");
12600
+ d = (d = d.documentElement) ? d.namespaceURI : Fn(null, "");
12598
12601
  break;
12599
12602
  default:
12600
- u = u === 8 ? d.parentNode : d, d = u.namespaceURI || null, u = u.tagName, d = Bn(d, u);
12603
+ u = u === 8 ? d.parentNode : d, d = u.namespaceURI || null, u = u.tagName, d = Fn(d, u);
12601
12604
  }
12602
12605
  xn(uo), y(uo, d);
12603
12606
  }
@@ -12606,7 +12609,7 @@ function ite() {
12606
12609
  }
12607
12610
  function Pb(u) {
12608
12611
  Ac(Oh.current);
12609
- var d = Ac(uo.current), v = Bn(d, u.type);
12612
+ var d = Ac(uo.current), v = Fn(d, u.type);
12610
12613
  d !== v && (y(Ud, u), y(uo, v));
12611
12614
  }
12612
12615
  function A0(u) {
@@ -13406,7 +13409,7 @@ Error generating stack: ` + B.message + `
13406
13409
  Le,
13407
13410
  v
13408
13411
  )), v = ve;
13409
- else Le === "dangerouslySetInnerHTML" ? (ve = ve ? ve.__html : void 0, pe = pe ? pe.__html : void 0, ve != null && pe !== ve && (B = B || []).push(Le, ve)) : Le === "children" ? typeof ve != "string" && typeof ve != "number" || (B = B || []).push(Le, "" + ve) : Le !== "suppressContentEditableWarning" && Le !== "suppressHydrationWarning" && (i.hasOwnProperty(Le) ? (ve != null && Le === "onScroll" && zn("scroll", u), B || pe === ve || (B = [])) : (B = B || []).push(Le, ve));
13412
+ else Le === "dangerouslySetInnerHTML" ? (ve = ve ? ve.__html : void 0, pe = pe ? pe.__html : void 0, ve != null && pe !== ve && (B = B || []).push(Le, ve)) : Le === "children" ? typeof ve != "string" && typeof ve != "number" || (B = B || []).push(Le, "" + ve) : Le !== "suppressContentEditableWarning" && Le !== "suppressHydrationWarning" && (i.hasOwnProperty(Le) ? (ve != null && Le === "onScroll" && Un("scroll", u), B || pe === ve || (B = [])) : (B = B || []).push(Le, ve));
13410
13413
  }
13411
13414
  v && (B = B || []).push("style", v);
13412
13415
  var Le = B;
@@ -13466,39 +13469,39 @@ Error generating stack: ` + B.message + `
13466
13469
  var B = d.memoizedProps;
13467
13470
  switch (C[on] = d, C[ls] = B, u = (d.mode & 1) !== 0, v) {
13468
13471
  case "dialog":
13469
- zn("cancel", C), zn("close", C);
13472
+ Un("cancel", C), Un("close", C);
13470
13473
  break;
13471
13474
  case "iframe":
13472
13475
  case "object":
13473
13476
  case "embed":
13474
- zn("load", C);
13477
+ Un("load", C);
13475
13478
  break;
13476
13479
  case "video":
13477
13480
  case "audio":
13478
- for (P = 0; P < Tc.length; P++) zn(Tc[P], C);
13481
+ for (P = 0; P < Tc.length; P++) Un(Tc[P], C);
13479
13482
  break;
13480
13483
  case "source":
13481
- zn("error", C);
13484
+ Un("error", C);
13482
13485
  break;
13483
13486
  case "img":
13484
13487
  case "image":
13485
13488
  case "link":
13486
- zn(
13489
+ Un(
13487
13490
  "error",
13488
13491
  C
13489
- ), zn("load", C);
13492
+ ), Un("load", C);
13490
13493
  break;
13491
13494
  case "details":
13492
- zn("toggle", C);
13495
+ Un("toggle", C);
13493
13496
  break;
13494
13497
  case "input":
13495
- an(C, B), zn("invalid", C);
13498
+ an(C, B), Un("invalid", C);
13496
13499
  break;
13497
13500
  case "select":
13498
- C._wrapperState = { wasMultiple: !!B.multiple }, zn("invalid", C);
13501
+ C._wrapperState = { wasMultiple: !!B.multiple }, Un("invalid", C);
13499
13502
  break;
13500
13503
  case "textarea":
13501
- Sn(C, B), zn("invalid", C);
13504
+ Sn(C, B), Un("invalid", C);
13502
13505
  }
13503
13506
  nr(v, B), P = null;
13504
13507
  for (var K in B) if (B.hasOwnProperty(K)) {
@@ -13507,7 +13510,7 @@ Error generating stack: ` + B.message + `
13507
13510
  C.textContent,
13508
13511
  pe,
13509
13512
  u
13510
- ), P = ["children", "" + pe]) : i.hasOwnProperty(K) && pe != null && K === "onScroll" && zn("scroll", C);
13513
+ ), P = ["children", "" + pe]) : i.hasOwnProperty(K) && pe != null && K === "onScroll" && Un("scroll", C);
13511
13514
  }
13512
13515
  switch (v) {
13513
13516
  case "input":
@@ -13528,43 +13531,43 @@ Error generating stack: ` + B.message + `
13528
13531
  e: {
13529
13532
  switch (K = Pn(v, C), v) {
13530
13533
  case "dialog":
13531
- zn("cancel", u), zn("close", u), P = C;
13534
+ Un("cancel", u), Un("close", u), P = C;
13532
13535
  break;
13533
13536
  case "iframe":
13534
13537
  case "object":
13535
13538
  case "embed":
13536
- zn("load", u), P = C;
13539
+ Un("load", u), P = C;
13537
13540
  break;
13538
13541
  case "video":
13539
13542
  case "audio":
13540
- for (P = 0; P < Tc.length; P++) zn(Tc[P], u);
13543
+ for (P = 0; P < Tc.length; P++) Un(Tc[P], u);
13541
13544
  P = C;
13542
13545
  break;
13543
13546
  case "source":
13544
- zn("error", u), P = C;
13547
+ Un("error", u), P = C;
13545
13548
  break;
13546
13549
  case "img":
13547
13550
  case "image":
13548
13551
  case "link":
13549
- zn(
13552
+ Un(
13550
13553
  "error",
13551
13554
  u
13552
- ), zn("load", u), P = C;
13555
+ ), Un("load", u), P = C;
13553
13556
  break;
13554
13557
  case "details":
13555
- zn("toggle", u), P = C;
13558
+ Un("toggle", u), P = C;
13556
13559
  break;
13557
13560
  case "input":
13558
- an(u, C), P = Pt(u, C), zn("invalid", u);
13561
+ an(u, C), P = Pt(u, C), Un("invalid", u);
13559
13562
  break;
13560
13563
  case "option":
13561
13564
  P = C;
13562
13565
  break;
13563
13566
  case "select":
13564
- u._wrapperState = { wasMultiple: !!C.multiple }, P = re({}, C, { value: void 0 }), zn("invalid", u);
13567
+ u._wrapperState = { wasMultiple: !!C.multiple }, P = re({}, C, { value: void 0 }), Un("invalid", u);
13565
13568
  break;
13566
13569
  case "textarea":
13567
- Sn(u, C), P = On(u, C), zn("invalid", u);
13570
+ Sn(u, C), P = On(u, C), Un("invalid", u);
13568
13571
  break;
13569
13572
  default:
13570
13573
  P = C;
@@ -13572,7 +13575,7 @@ Error generating stack: ` + B.message + `
13572
13575
  nr(v, P), pe = P;
13573
13576
  for (B in pe) if (pe.hasOwnProperty(B)) {
13574
13577
  var ve = pe[B];
13575
- B === "style" ? hn(u, ve) : B === "dangerouslySetInnerHTML" ? (ve = ve ? ve.__html : void 0, ve != null && ts(u, ve)) : B === "children" ? typeof ve == "string" ? (v !== "textarea" || ve !== "") && Tr(u, ve) : typeof ve == "number" && Tr(u, "" + ve) : B !== "suppressContentEditableWarning" && B !== "suppressHydrationWarning" && B !== "autoFocus" && (i.hasOwnProperty(B) ? ve != null && B === "onScroll" && zn("scroll", u) : ve != null && N(u, B, ve, K));
13578
+ B === "style" ? hn(u, ve) : B === "dangerouslySetInnerHTML" ? (ve = ve ? ve.__html : void 0, ve != null && ts(u, ve)) : B === "children" ? typeof ve == "string" ? (v !== "textarea" || ve !== "") && Tr(u, ve) : typeof ve == "number" && Tr(u, "" + ve) : B !== "suppressContentEditableWarning" && B !== "suppressHydrationWarning" && B !== "autoFocus" && (i.hasOwnProperty(B) ? ve != null && B === "onScroll" && Un("scroll", u) : ve != null && N(u, B, ve, K));
13576
13579
  }
13577
13580
  switch (v) {
13578
13581
  case "input":
@@ -15472,7 +15475,7 @@ function ste() {
15472
15475
  if (Zt(s))
15473
15476
  return o("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.", l, an(s)), Rn(s);
15474
15477
  }
15475
- function Fn(s) {
15478
+ function Nn(s) {
15476
15479
  if (Zt(s))
15477
15480
  return o("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", an(s)), Rn(s);
15478
15481
  }
@@ -15492,9 +15495,9 @@ function ste() {
15492
15495
  if (Zt(s))
15493
15496
  return o("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.", an(s)), Rn(s);
15494
15497
  }
15495
- var mr = 0, Xr = 1, gi = 2, Bn = 3, Kr = 4, ts = 5, Tr = 6, ct = ":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", lt = ct + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040", Xt = new RegExp("^[" + ct + "][" + lt + "]*$"), hn = {}, Un = {};
15498
+ var mr = 0, Xr = 1, gi = 2, Fn = 3, Kr = 4, ts = 5, Tr = 6, ct = ":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", lt = ct + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040", Xt = new RegExp("^[" + ct + "][" + lt + "]*$"), hn = {}, Bn = {};
15496
15499
  function nr(s) {
15497
- return Pt.call(Un, s) ? !0 : Pt.call(hn, s) ? !1 : Xt.test(s) ? (Un[s] = !0, !0) : (hn[s] = !0, o("Invalid attribute name: `%s`", s), !1);
15500
+ return Pt.call(Bn, s) ? !0 : Pt.call(hn, s) ? !1 : Xt.test(s) ? (Bn[s] = !0, !0) : (hn[s] = !0, o("Invalid attribute name: `%s`", s), !1);
15498
15501
  }
15499
15502
  function Pn(s, l, h) {
15500
15503
  return l !== null ? l.type === mr : h ? !1 : s.length > 2 && (s[0] === "o" || s[0] === "O") && (s[1] === "n" || s[1] === "N");
@@ -15526,7 +15529,7 @@ function ste() {
15526
15529
  return !1;
15527
15530
  if (h !== null)
15528
15531
  switch (h.type) {
15529
- case Bn:
15532
+ case Fn:
15530
15533
  return !l;
15531
15534
  case Kr:
15532
15535
  return l === !1;
@@ -15541,7 +15544,7 @@ function ste() {
15541
15544
  return Q.hasOwnProperty(s) ? Q[s] : null;
15542
15545
  }
15543
15546
  function Y(s, l, h, g, b, A, M) {
15544
- this.acceptsBooleans = l === gi || l === Bn || l === Kr, this.attributeName = g, this.attributeNamespace = b, this.mustUseProperty = h, this.propertyName = s, this.type = l, this.sanitizeURL = A, this.removeEmptyString = M;
15547
+ this.acceptsBooleans = l === gi || l === Fn || l === Kr, this.attributeName = g, this.attributeNamespace = b, this.mustUseProperty = h, this.propertyName = s, this.type = l, this.sanitizeURL = A, this.removeEmptyString = M;
15545
15548
  }
15546
15549
  var Q = {}, he = [
15547
15550
  "children",
@@ -15643,7 +15646,7 @@ function ste() {
15643
15646
  ].forEach(function(s) {
15644
15647
  Q[s] = new Y(
15645
15648
  s,
15646
- Bn,
15649
+ Fn,
15647
15650
  !1,
15648
15651
  // mustUseProperty
15649
15652
  s.toLowerCase(),
@@ -15667,7 +15670,7 @@ function ste() {
15667
15670
  ].forEach(function(s) {
15668
15671
  Q[s] = new Y(
15669
15672
  s,
15670
- Bn,
15673
+ Fn,
15671
15674
  !0,
15672
15675
  // mustUseProperty
15673
15676
  s,
@@ -15932,7 +15935,7 @@ function ste() {
15932
15935
  } else if (s.hasAttribute(A)) {
15933
15936
  if (pn(l, h, g, !1))
15934
15937
  return s.getAttribute(A);
15935
- if (g.type === Bn)
15938
+ if (g.type === Fn)
15936
15939
  return h;
15937
15940
  M = s.getAttribute(A);
15938
15941
  }
@@ -15964,7 +15967,7 @@ function ste() {
15964
15967
  var z = b.propertyName;
15965
15968
  if (h === null) {
15966
15969
  var q = b.type;
15967
- s[z] = q === Bn ? !1 : "";
15970
+ s[z] = q === Fn ? !1 : "";
15968
15971
  } else
15969
15972
  s[z] = h;
15970
15973
  return;
@@ -15974,7 +15977,7 @@ function ste() {
15974
15977
  s.removeAttribute(te);
15975
15978
  else {
15976
15979
  var Te = b.type, be;
15977
- Te === Bn || Te === Kr && h === !0 ? be = "" : (dn(h, te), be = "" + h, b.sanitizeURL && ns(be.toString())), se ? s.setAttributeNS(se, te, be) : s.setAttribute(te, be);
15980
+ Te === Fn || Te === Kr && h === !0 ? be = "" : (dn(h, te), be = "" + h, b.sanitizeURL && ns(be.toString())), se ? s.setAttributeNS(se, te, be) : s.setAttribute(te, be);
15978
15981
  }
15979
15982
  }
15980
15983
  }
@@ -17579,7 +17582,7 @@ Check the render method of \`` + s + "`." : "";
17579
17582
  return o("Invalid DOM property `%s`. Did you mean `%s`?", l, se), Er[l] = !0, !0;
17580
17583
  } else if (!te && l !== b)
17581
17584
  return o("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.", l, b), Er[l] = !0, !0;
17582
- return typeof h == "boolean" && Lr(l, h, q, !1) ? (h ? o('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.', h, l, l, h, l) : o('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.', h, l, l, h, l, l, l), Er[l] = !0, !0) : te ? !0 : Lr(l, h, q, !1) ? (Er[l] = !0, !1) : ((h === "false" || h === "true") && q !== null && q.type === Bn && (o("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?", h, l, h === "false" ? "The browser will interpret it as a truthy value." : 'Although this works, it will not work as expected if you pass the string "false".', l, h), Er[l] = !0), !0);
17585
+ return typeof h == "boolean" && Lr(l, h, q, !1) ? (h ? o('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.', h, l, l, h, l) : o('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.', h, l, l, h, l, l, l), Er[l] = !0, !0) : te ? !0 : Lr(l, h, q, !1) ? (Er[l] = !0, !1) : ((h === "false" || h === "true") && q !== null && q.type === Fn && (o("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?", h, l, h === "false" ? "The browser will interpret it as a truthy value." : 'Although this works, it will not work as expected if you pass the string "false".', l, h), Er[l] = !0), !0);
17583
17586
  };
17584
17587
  }
17585
17588
  var Ch = function(s, l, h) {
@@ -17612,21 +17615,21 @@ Check the render method of \`` + s + "`." : "";
17612
17615
  var l = s.target || s.srcElement || window;
17613
17616
  return l.correspondingUseElement && (l = l.correspondingUseElement), l.nodeType === so ? l.parentNode : l;
17614
17617
  }
17615
- var zn = null, Po = null, lo = null;
17618
+ var Un = null, Po = null, lo = null;
17616
17619
  function lu(s) {
17617
17620
  var l = hf(s);
17618
17621
  if (l) {
17619
- if (typeof zn != "function")
17622
+ if (typeof Un != "function")
17620
17623
  throw new Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");
17621
17624
  var h = l.stateNode;
17622
17625
  if (h) {
17623
17626
  var g = wS(h);
17624
- zn(l.stateNode, l.type, g);
17627
+ Un(l.stateNode, l.type, g);
17625
17628
  }
17626
17629
  }
17627
17630
  }
17628
17631
  function fm(s) {
17629
- zn = s;
17632
+ Un = s;
17630
17633
  }
17631
17634
  function Id(s) {
17632
17635
  Po ? lo ? lo.push(s) : lo = [s] : Po = s;
@@ -28290,7 +28293,7 @@ Check the render method of \`` + te + "`.");
28290
28293
  var bE = "18.3.1";
28291
28294
  function lX(s, l, h) {
28292
28295
  var g = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null;
28293
- return Fn(g), {
28296
+ return Nn(g), {
28294
28297
  // This tag allow us to uniquely identify this as a React Portal
28295
28298
  $$typeof: ur,
28296
28299
  key: g == null ? null : "" + g,
@@ -32230,13 +32233,13 @@ function Xne(...n) {
32230
32233
  }
32231
32234
  var Kne = (n) => {
32232
32235
  var e, t, r, i, a, o, c, f, p, m, _;
32233
- let { invert: x, toast: T, unstyled: R, interacting: S, setHeights: w, visibleToasts: O, heights: I, index: N, toasts: V, expanded: F, removeToast: $, defaultRichColors: G, closeButton: X, style: H, cancelButtonStyle: j, actionButtonStyle: ee, className: ie = "", descriptionClassName: oe = "", duration: ce, position: xe, gap: ye, loadingIcon: ge, expandByDefault: ae, classNames: ue, icons: re, closeButtonAriaLabel: me = "Close toast", pauseWhenPageIsHidden: Ae, cn: Fe } = n, [Me, Ge] = rt.useState(!1), [st, Ue] = rt.useState(!1), [Xe, ut] = rt.useState(!1), [nt, Ye] = rt.useState(!1), [Ie, gt] = rt.useState(!1), [Pt, an] = rt.useState(0), [Zt, Rn] = rt.useState(0), dn = rt.useRef(T.duration || ce || o4), Fn = rt.useRef(null), zt = rt.useRef(null), Jt = N === 0, On = N + 1 <= O, Sn = T.type, mr = T.dismissible !== !1, Xr = T.className || "", gi = T.descriptionClassName || "", Bn = rt.useMemo(() => I.findIndex((Y) => Y.toastId === T.id) || 0, [I, T.id]), Kr = rt.useMemo(() => {
32236
+ let { invert: x, toast: T, unstyled: R, interacting: S, setHeights: w, visibleToasts: O, heights: I, index: N, toasts: V, expanded: F, removeToast: $, defaultRichColors: G, closeButton: X, style: H, cancelButtonStyle: j, actionButtonStyle: ee, className: ie = "", descriptionClassName: oe = "", duration: ce, position: xe, gap: ye, loadingIcon: ge, expandByDefault: ae, classNames: ue, icons: re, closeButtonAriaLabel: me = "Close toast", pauseWhenPageIsHidden: Ae, cn: Fe } = n, [Me, Ge] = rt.useState(!1), [st, Ue] = rt.useState(!1), [Xe, ut] = rt.useState(!1), [nt, Ye] = rt.useState(!1), [Ie, gt] = rt.useState(!1), [Pt, an] = rt.useState(0), [Zt, Rn] = rt.useState(0), dn = rt.useRef(T.duration || ce || o4), Nn = rt.useRef(null), zt = rt.useRef(null), Jt = N === 0, On = N + 1 <= O, Sn = T.type, mr = T.dismissible !== !1, Xr = T.className || "", gi = T.descriptionClassName || "", Fn = rt.useMemo(() => I.findIndex((Y) => Y.toastId === T.id) || 0, [I, T.id]), Kr = rt.useMemo(() => {
32234
32237
  var Y;
32235
32238
  return (Y = T.closeButton) != null ? Y : X;
32236
32239
  }, [T.closeButton, X]);
32237
32240
  rt.useMemo(() => T.duration || ce || o4, [T.duration, ce]);
32238
- let ts = rt.useRef(0), Tr = rt.useRef(0), ct = rt.useRef(0), lt = rt.useRef(null), [Xt, hn] = xe.split("-"), Un = rt.useMemo(() => I.reduce((Y, Q, he) => he >= Bn ? Y : Y + Q.height, 0), [I, Bn]), nr = Lne(), Pn = T.invert || x, Lr = Sn === "loading";
32239
- Tr.current = rt.useMemo(() => Bn * ye + Un, [Bn, Un]), rt.useEffect(() => {
32241
+ let ts = rt.useRef(0), Tr = rt.useRef(0), ct = rt.useRef(0), lt = rt.useRef(null), [Xt, hn] = xe.split("-"), Bn = rt.useMemo(() => I.reduce((Y, Q, he) => he >= Fn ? Y : Y + Q.height, 0), [I, Fn]), nr = Lne(), Pn = T.invert || x, Lr = Sn === "loading";
32242
+ Tr.current = rt.useMemo(() => Fn * ye + Bn, [Fn, Bn]), rt.useEffect(() => {
32240
32243
  Ge(!0);
32241
32244
  }, []), rt.useEffect(() => {
32242
32245
  let Y = zt.current;
@@ -32277,12 +32280,12 @@ var Kne = (n) => {
32277
32280
  return re != null && re.loading ? rt.createElement("div", { className: Fe(ue == null ? void 0 : ue.loader, (Y = T == null ? void 0 : T.classNames) == null ? void 0 : Y.loader, "sonner-loader"), "data-visible": Sn === "loading" }, re.loading) : ge ? rt.createElement("div", { className: Fe(ue == null ? void 0 : ue.loader, (Q = T == null ? void 0 : T.classNames) == null ? void 0 : Q.loader, "sonner-loader"), "data-visible": Sn === "loading" }, ge) : rt.createElement(Ane, { className: Fe(ue == null ? void 0 : ue.loader, (he = T == null ? void 0 : T.classNames) == null ? void 0 : he.loader), visible: Sn === "loading" });
32278
32281
  }
32279
32282
  return rt.createElement("li", { tabIndex: 0, ref: zt, className: Fe(ie, Xr, ue == null ? void 0 : ue.toast, (e = T == null ? void 0 : T.classNames) == null ? void 0 : e.toast, ue == null ? void 0 : ue.default, ue == null ? void 0 : ue[Sn], (t = T == null ? void 0 : T.classNames) == null ? void 0 : t[Sn]), "data-sonner-toast": "", "data-rich-colors": (r = T.richColors) != null ? r : G, "data-styled": !(T.jsx || T.unstyled || R), "data-mounted": Me, "data-promise": !!T.promise, "data-swiped": Ie, "data-removed": st, "data-visible": On, "data-y-position": Xt, "data-x-position": hn, "data-index": N, "data-front": Jt, "data-swiping": Xe, "data-dismissible": mr, "data-type": Sn, "data-invert": Pn, "data-swipe-out": nt, "data-expanded": !!(F || ae && Me), style: { "--index": N, "--toasts-before": N, "--z-index": V.length - N, "--offset": `${st ? Pt : Tr.current}px`, "--initial-height": ae ? "auto" : `${Zt}px`, ...H, ...T.style }, onPointerDown: (Y) => {
32280
- Lr || !mr || (Fn.current = /* @__PURE__ */ new Date(), an(Tr.current), Y.target.setPointerCapture(Y.pointerId), Y.target.tagName !== "BUTTON" && (ut(!0), lt.current = { x: Y.clientX, y: Y.clientY }));
32283
+ Lr || !mr || (Nn.current = /* @__PURE__ */ new Date(), an(Tr.current), Y.target.setPointerCapture(Y.pointerId), Y.target.tagName !== "BUTTON" && (ut(!0), lt.current = { x: Y.clientX, y: Y.clientY }));
32281
32284
  }, onPointerUp: () => {
32282
32285
  var Y, Q, he, we;
32283
32286
  if (nt || !mr) return;
32284
32287
  lt.current = null;
32285
- let Je = Number(((Y = zt.current) == null ? void 0 : Y.style.getPropertyValue("--swipe-amount").replace("px", "")) || 0), It = (/* @__PURE__ */ new Date()).getTime() - ((Q = Fn.current) == null ? void 0 : Q.getTime()), Dn = Math.abs(Je) / It;
32288
+ let Je = Number(((Y = zt.current) == null ? void 0 : Y.style.getPropertyValue("--swipe-amount").replace("px", "")) || 0), It = (/* @__PURE__ */ new Date()).getTime() - ((Q = Nn.current) == null ? void 0 : Q.getTime()), Dn = Math.abs(Je) / It;
32286
32289
  if (Math.abs(Je) >= Gne || Dn > 0.11) {
32287
32290
  an(Tr.current), (he = T.onDismiss) == null || he.call(T, T), pn(), Ye(!0), gt(!1);
32288
32291
  return;
@@ -32555,7 +32558,7 @@ function eR(n, e) {
32555
32558
  return typeof n == "function" ? n(e) : n && (n.current = e), n;
32556
32559
  }
32557
32560
  function lre(n, e) {
32558
- var t = Hn(function() {
32561
+ var t = zn(function() {
32559
32562
  return {
32560
32563
  // value
32561
32564
  value: n,
@@ -34502,7 +34505,7 @@ if (typeof document < "u" && typeof window < "u") {
34502
34505
  }
34503
34506
  }
34504
34507
  function xU(n) {
34505
- const [e, t] = Hn(!!n.ssr), [r, i] = Hn({});
34508
+ const [e, t] = zn(!!n.ssr), [r, i] = zn({});
34506
34509
  function a(T) {
34507
34510
  if (T) {
34508
34511
  const R = n.icon;
@@ -34522,7 +34525,7 @@ function xU(n) {
34522
34525
  name: ""
34523
34526
  };
34524
34527
  }
34525
- const [o, c] = Hn(a(!!n.ssr));
34528
+ const [o, c] = zn(a(!!n.ssr));
34526
34529
  function f() {
34527
34530
  const T = r.callback;
34528
34531
  T && (T(), i({}));
@@ -34553,7 +34556,7 @@ function xU(n) {
34553
34556
  });
34554
34557
  } else S && ((T = n.onLoad) === null || T === void 0 || T.call(n, R));
34555
34558
  }
34556
- Ln(() => (t(!0), f), []), Ln(() => {
34559
+ Hn(() => (t(!0), f), []), Hn(() => {
34557
34560
  e && m();
34558
34561
  }, [n.icon, e]);
34559
34562
  const { name: _, data: x } = o;
@@ -37986,7 +37989,7 @@ function $U() {
37986
37989
  * @see https://www.w3.org/TR/xml-names/#ns-qualnames XML Namespaces: Qualified names
37987
37990
  */
37988
37991
  createDocumentType: function(Y, Q, he) {
37989
- var we = new Bn();
37992
+ var we = new Fn();
37990
37993
  return we.name = Y, we.nodeName = Y, we.publicId = Q || "", we.systemId = he || "", we;
37991
37994
  }
37992
37995
  };
@@ -38007,10 +38010,10 @@ function $U() {
38007
38010
  localName: null,
38008
38011
  // Modified in DOM Level 2:
38009
38012
  insertBefore: function(Y, Q) {
38010
- return Fn(this, Y, Q);
38013
+ return Nn(this, Y, Q);
38011
38014
  },
38012
38015
  replaceChild: function(Y, Q) {
38013
- Fn(this, Y, Q, dn), Q && this.removeChild(Q);
38016
+ Nn(this, Y, Q, dn), Q && this.removeChild(Q);
38014
38017
  },
38015
38018
  removeChild: function(Y) {
38016
38019
  return Xe(this, Y);
@@ -38216,7 +38219,7 @@ function $U() {
38216
38219
  throw new ie(H, "Doctype can only be inserted before an element");
38217
38220
  }
38218
38221
  }
38219
- function Fn(Y, Q, he, we) {
38222
+ function Nn(Y, Q, he, we) {
38220
38223
  Zt(Y, Q, he), Y.nodeType === me.DOCUMENT_NODE && (we || Rn)(Y, Q, he);
38221
38224
  var Je = Q.parentNode;
38222
38225
  if (Je && Je.removeChild(Q), Q.nodeType === F) {
@@ -38257,13 +38260,13 @@ function $U() {
38257
38260
  }
38258
38261
  return Y;
38259
38262
  }
38260
- return Fn(this, Y, Q), Y.ownerDocument = this, this.documentElement === null && Y.nodeType === _ && (this.documentElement = Y), Y;
38263
+ return Nn(this, Y, Q), Y.ownerDocument = this, this.documentElement === null && Y.nodeType === _ && (this.documentElement = Y), Y;
38261
38264
  },
38262
38265
  removeChild: function(Y) {
38263
38266
  return this.documentElement == Y && (this.documentElement = null), Xe(this, Y);
38264
38267
  },
38265
38268
  replaceChild: function(Y, Q) {
38266
- Fn(this, Y, Q, dn), Y.ownerDocument = this, Q && this.removeChild(Q), Ie(Y) && (this.documentElement = Y);
38269
+ Nn(this, Y, Q, dn), Y.ownerDocument = this, Q && this.removeChild(Q), Ie(Y) && (this.documentElement = Y);
38267
38270
  },
38268
38271
  // Introduced in DOM Level 2:
38269
38272
  importNode: function(Y, Q) {
@@ -38482,9 +38485,9 @@ function $U() {
38482
38485
  nodeName: "#cdata-section",
38483
38486
  nodeType: R
38484
38487
  }, p(gi, Sn);
38485
- function Bn() {
38488
+ function Fn() {
38486
38489
  }
38487
- Bn.prototype.nodeType = V, p(Bn, me);
38490
+ Fn.prototype.nodeType = V, p(Fn, me);
38488
38491
  function Kr() {
38489
38492
  }
38490
38493
  Kr.prototype.nodeType = $, p(Kr, me);
@@ -38517,7 +38520,7 @@ function $U() {
38517
38520
  }
38518
38521
  return Pn(this, he, Y, Q, Dn), he.join("");
38519
38522
  }
38520
- function Un(Y, Q, he) {
38523
+ function Bn(Y, Q, he) {
38521
38524
  var we = Y.prefix || "", Je = Y.namespaceURI;
38522
38525
  if (!Je || we === "xml" && Je === t.XML || Je === t.XMLNS)
38523
38526
  return !1;
@@ -38575,13 +38578,13 @@ function $U() {
38575
38578
  }
38576
38579
  for (var ur = 0; ur < Dn; ur++) {
38577
38580
  var yn = It.item(ur);
38578
- if (Un(yn, he, Je)) {
38581
+ if (Bn(yn, he, Je)) {
38579
38582
  var Vi = yn.prefix || "", qs = yn.namespaceURI;
38580
38583
  nr(Q, Vi ? "xmlns:" + Vi : "xmlns", qs), Je.push({ prefix: Vi, namespace: qs });
38581
38584
  }
38582
38585
  Pn(yn, Q, he, we, Je);
38583
38586
  }
38584
- if (Nr === ns && Un(Y, he, Je)) {
38587
+ if (Nr === ns && Bn(Y, he, Je)) {
38585
38588
  var Vi = Y.prefix || "", qs = Y.namespaceURI;
38586
38589
  nr(Q, Vi ? "xmlns:" + Vi : "xmlns", qs), Je.push({ prefix: Vi, namespace: qs });
38587
38590
  }
@@ -38718,7 +38721,7 @@ function $U() {
38718
38721
  }
38719
38722
  } catch {
38720
38723
  }
38721
- return nd.DocumentType = Bn, nd.DOMException = ie, nd.DOMImplementation = re, nd.Element = Jt, nd.Node = me, nd.NodeList = oe, nd.XMLSerializer = Xt, nd;
38724
+ return nd.DocumentType = Fn, nd.DOMException = ie, nd.DOMImplementation = re, nd.Element = Jt, nd.Node = me, nd.NodeList = oe, nd.XMLSerializer = Xt, nd;
38722
38725
  }
38723
38726
  var l_ = {}, SR = {}, t3;
38724
38727
  function yae() {
@@ -40942,8 +40945,8 @@ function _ae() {
40942
40945
  me && ge(Ge);
40943
40946
  var Pt = new G(), an = Ae[Ae.length - 1].currentNSMap, Zt = w(H, Ge, Pt, an, xe, oe), Rn = Pt.length;
40944
40947
  if (!Pt.closed && N(H, Zt, Pt.tagName, Fe) && (Pt.closed = !0, ee.nbsp || oe.warning("unclosed xml attribute")), me && Rn) {
40945
- for (var dn = S(me, {}), Fn = 0; Fn < Rn; Fn++) {
40946
- var zt = Pt[Fn];
40948
+ for (var dn = S(me, {}), Nn = 0; Nn < Rn; Nn++) {
40949
+ var zt = Pt[Nn];
40947
40950
  ge(zt.offset), zt.locator = S(me, {});
40948
40951
  }
40949
40952
  ie.locator = dn, O(Pt, ie, an) && Ae.push(Pt), ie.locator = me;
@@ -60545,7 +60548,7 @@ browserWorkerPolyFill(self);
60545
60548
  concatenateNalData: Pt,
60546
60549
  generateSampleTableForFrame: an,
60547
60550
  concatenateNalDataForFrame: Zt
60548
- }, dn = [33, 16, 5, 32, 164, 27], Fn = [33, 65, 108, 84, 1, 2, 4, 8, 168, 2, 4, 8, 17, 191, 252], zt = function(y) {
60551
+ }, dn = [33, 16, 5, 32, 164, 27], Nn = [33, 65, 108, 84, 1, 2, 4, 8, 168, 2, 4, 8, 17, 191, 252], zt = function(y) {
60549
60552
  for (var E = []; y--; )
60550
60553
  E.push(0);
60551
60554
  return E;
@@ -60566,39 +60569,39 @@ browserWorkerPolyFill(self);
60566
60569
  32e3: [dn, [255, 192], zt(268), [55, 234], zt(226), [112]],
60567
60570
  24e3: [dn, [255, 192], zt(268), [55, 255, 128], zt(268), [111, 112], zt(126), [224]],
60568
60571
  16e3: [dn, [255, 192], zt(268), [55, 255, 128], zt(268), [111, 255], zt(269), [223, 108], zt(195), [1, 192]],
60569
- 12e3: [Fn, zt(268), [3, 127, 248], zt(268), [6, 255, 240], zt(268), [13, 255, 224], zt(268), [27, 253, 128], zt(259), [56]],
60570
- 11025: [Fn, zt(268), [3, 127, 248], zt(268), [6, 255, 240], zt(268), [13, 255, 224], zt(268), [27, 255, 192], zt(268), [55, 175, 128], zt(108), [112]],
60571
- 8e3: [Fn, zt(268), [3, 121, 16], zt(47), [7]]
60572
+ 12e3: [Nn, zt(268), [3, 127, 248], zt(268), [6, 255, 240], zt(268), [13, 255, 224], zt(268), [27, 253, 128], zt(259), [56]],
60573
+ 11025: [Nn, zt(268), [3, 127, 248], zt(268), [6, 255, 240], zt(268), [13, 255, 224], zt(268), [27, 255, 192], zt(268), [55, 175, 128], zt(108), [112]],
60574
+ 8e3: [Nn, zt(268), [3, 121, 16], zt(47), [7]]
60572
60575
  };
60573
60576
  On = Jt(y);
60574
60577
  }
60575
60578
  return On;
60576
- }, mr = 9e4, Xr, gi, Bn, Kr, ts, Tr, ct;
60579
+ }, mr = 9e4, Xr, gi, Fn, Kr, ts, Tr, ct;
60577
60580
  Xr = function(y) {
60578
60581
  return y * mr;
60579
60582
  }, gi = function(y, E) {
60580
60583
  return y * E;
60581
- }, Bn = function(y) {
60584
+ }, Fn = function(y) {
60582
60585
  return y / mr;
60583
60586
  }, Kr = function(y, E) {
60584
60587
  return y / E;
60585
60588
  }, ts = function(y, E) {
60586
60589
  return Xr(Kr(y, E));
60587
60590
  }, Tr = function(y, E) {
60588
- return gi(Bn(y), E);
60591
+ return gi(Fn(y), E);
60589
60592
  }, ct = function(y, E, D) {
60590
- return Bn(D ? y : y - E);
60593
+ return Fn(D ? y : y - E);
60591
60594
  };
60592
60595
  var lt = {
60593
60596
  ONE_SECOND_IN_TS: mr,
60594
60597
  secondsToVideoTs: Xr,
60595
60598
  secondsToAudioTs: gi,
60596
- videoTsToSeconds: Bn,
60599
+ videoTsToSeconds: Fn,
60597
60600
  audioTsToSeconds: Kr,
60598
60601
  audioTsToVideoTs: ts,
60599
60602
  videoTsToAudioTs: Tr,
60600
60603
  metadataTsToSeconds: ct
60601
- }, Xt = Sn, hn = lt, Un = function(y) {
60604
+ }, Xt = Sn, hn = lt, Bn = function(y) {
60602
60605
  var E, D, k = 0;
60603
60606
  for (E = 0; E < y.length; E++)
60604
60607
  D = y[E], k += D.data.byteLength;
@@ -60628,7 +60631,7 @@ browserWorkerPolyFill(self);
60628
60631
  });
60629
60632
  return k;
60630
60633
  }, pn = function(y) {
60631
- var E, D, k = 0, L = new Uint8Array(Un(y));
60634
+ var E, D, k = 0, L = new Uint8Array(Bn(y));
60632
60635
  for (E = 0; E < y.length; E++)
60633
60636
  D = y[E], L.set(D.data, k), k += D.data.byteLength;
60634
60637
  return L;
@@ -63004,7 +63007,7 @@ browserWorkerPolyFill(self);
63004
63007
  }, ul = vi.discardEmulationPreventionBytes, _0 = nh.CaptionStream, cl = vc, Tc = as, b0 = eu, {
63005
63008
  getMdatTrafPairs: dm,
63006
63009
  parseSamples: Pd
63007
- } = ou, zn = function(y, E) {
63010
+ } = ou, Un = function(y, E) {
63008
63011
  for (var D = y, k = 0; k < E.length; k++) {
63009
63012
  var L = E[k];
63010
63013
  if (D < L.size)
@@ -63021,7 +63024,7 @@ browserWorkerPolyFill(self);
63021
63024
  if (ne = k.getUint32(J), J += 4, !(ne <= 0))
63022
63025
  switch (y[J] & 31) {
63023
63026
  case 6:
63024
- var fe = y.subarray(J + 1, J + 1 + ne), _e = zn(J, E);
63027
+ var fe = y.subarray(J + 1, J + 1 + ne), _e = Un(J, E);
63025
63028
  if (U = {
63026
63029
  nalUnitType: "sei_rbsp",
63027
63030
  size: ne,
@@ -71242,7 +71245,7 @@ const tfe = Co("Settings", [
71242
71245
  return !0;
71243
71246
  return !1;
71244
71247
  };
71245
- return Ln(() => {
71248
+ return Hn(() => {
71246
71249
  if (_ && !i.current) {
71247
71250
  const R = xse(_) === "audio", S = document.createElement("video-js");
71248
71251
  S.classList.add("vjs-big-play-centered", "vjs-theme-city"), R && S.classList.add("vjs-default-skin", "videojs-audio"), r.current && r.current.appendChild(S);
@@ -71346,7 +71349,7 @@ const tfe = Co("Settings", [
71346
71349
  c,
71347
71350
  o,
71348
71351
  m
71349
- ]), Ln(() => {
71352
+ ]), Hn(() => {
71350
71353
  var S;
71351
71354
  const R = i.current;
71352
71355
  if ((S = R == null ? void 0 : R.textTracks()) != null && S.length && x(R), R && (n == null ? void 0 : n.length) !== 0) {
@@ -71356,7 +71359,7 @@ const tfe = Co("Settings", [
71356
71359
  const O = R.controlBar.getChild("SubsCapsButton").items[0].el().lastElementChild;
71357
71360
  O && (O.innerHTML = tfe);
71358
71361
  }
71359
- }, [n]), Ln(() => {
71362
+ }, [n]), Hn(() => {
71360
71363
  const R = i.current;
71361
71364
  return () => {
71362
71365
  R && !R.isDisposed() && (R.dispose(), i.current = null);
@@ -74435,7 +74438,7 @@ function $pe() {
74435
74438
  if (n === null)
74436
74439
  return [!0, null];
74437
74440
  const { isPresent: e, onExitComplete: t, register: r } = n, i = UX();
74438
- Ln(() => r(i), []);
74441
+ Hn(() => r(i), []);
74439
74442
  const a = T_(() => t && t(i), [i, t]);
74440
74443
  return !e && t ? [!1, a] : [!0];
74441
74444
  }
@@ -75452,7 +75455,7 @@ const zme = {
75452
75455
  transformPagePoint: (n) => n,
75453
75456
  isStatic: !1,
75454
75457
  reducedMotion: "never"
75455
- }), lC = $v({}), EO = typeof window < "u", jme = EO ? Z8 : Ln, NH = $v({ strict: !1 });
75458
+ }), lC = $v({}), EO = typeof window < "u", jme = EO ? Z8 : Hn, NH = $v({ strict: !1 });
75456
75459
  function Vme(n, e, t, r, i) {
75457
75460
  var a, o;
75458
75461
  const { visualElement: c } = Ya(lC), f = Ya(NH), p = Ya(CO), m = Ya(LH).reducedMotion, _ = Ei(null);
@@ -75473,7 +75476,7 @@ function Vme(n, e, t, r, i) {
75473
75476
  const S = t[lH], w = Ei(!!S && !(!((a = window.MotionHandoffIsComplete) === null || a === void 0) && a.call(window, S)) && ((o = window.MotionHasOptimisedAnimation) === null || o === void 0 ? void 0 : o.call(window, S)));
75474
75477
  return jme(() => {
75475
75478
  x && (R.current = !0, window.MotionIsMounted = !0, x.updateFeatures(), wO.render(x.render), w.current && x.animationState && x.animationState.animateChanges());
75476
- }), Ln(() => {
75479
+ }), Hn(() => {
75477
75480
  x && (!w.current && x.animationState && x.animationState.animateChanges(), w.current && (queueMicrotask(() => {
75478
75481
  var O;
75479
75482
  (O = window.MotionHandoffMarkAsComplete) === null || O === void 0 || O.call(window, S);
@@ -76319,7 +76322,7 @@ const Ige = ({
76319
76322
  videoDuration: r,
76320
76323
  setVideoCurrentTime: i
76321
76324
  }) => {
76322
- const [a, o] = Hn(!1), c = Ei(null), f = Jn(() => e, [e]), p = (m) => {
76325
+ const [a, o] = zn(!1), c = Ei(null), f = Jn(() => e, [e]), p = (m) => {
76323
76326
  if (c.current) {
76324
76327
  const _ = c.current.getBoundingClientRect(), x = m.clientX - _.left - t / 2, T = _.width - t, R = x / T * 100;
76325
76328
  if (R >= 0 && R <= 100) {
@@ -76804,7 +76807,7 @@ const Wge = "data:image/svg+xml,%3csvg%20width='11'%20height='16'%20viewBox='0%2
76804
76807
  setTranscript: x,
76805
76808
  setTranscriptId: T
76806
76809
  }) => {
76807
- const { refreshTrimmedClips: R, refreshTrimmedDirectory: S } = BA(), { videoIsReady: w } = el(), { focusTrimmedClip: O, setFocusTrimmedClip: I } = kA(), { setAlertDialog: N } = Dx(), { trimmedClips: V } = Wv(), { mainFilePath: F } = UA(), { getTrimmedClip: $ } = NA(), G = Ei(null), X = Ei(null), [H, j] = Hn(!1), [ee, ie] = Hn(!1), [oe, ce] = Hn(i), [xe] = Hn(p), [ye, ge] = Hn(!1), [ae, ue] = Hn(!1), [re, me] = Hn(!1);
76810
+ const { refreshTrimmedClips: R, refreshTrimmedDirectory: S } = BA(), { videoIsReady: w } = el(), { focusTrimmedClip: O, setFocusTrimmedClip: I } = kA(), { setAlertDialog: N } = Dx(), { trimmedClips: V } = Wv(), { mainFilePath: F } = UA(), { getTrimmedClip: $ } = NA(), G = Ei(null), X = Ei(null), [H, j] = zn(!1), [ee, ie] = zn(!1), [oe, ce] = zn(i), [xe] = zn(p), [ye, ge] = zn(!1), [ae, ue] = zn(!1), [re, me] = zn(!1);
76808
76811
  let Ae = () => {
76809
76812
  };
76810
76813
  const Fe = Ir(
@@ -76816,12 +76819,12 @@ const Wge = "data:image/svg+xml,%3csvg%20width='11'%20height='16'%20viewBox='0%2
76816
76819
  (p == null ? void 0 : p.map((Ue) => ({ ...Ue, headstart: t }))) || []
76817
76820
  ), T && T(n);
76818
76821
  };
76819
- Ln(() => {
76822
+ Hn(() => {
76820
76823
  Me <= 250 ? ie(!0) : ie(!1);
76821
- }, [Me, t, r]), Ln(() => {
76824
+ }, [Me, t, r]), Hn(() => {
76822
76825
  var Ue;
76823
76826
  O && O === n ? (j(!0), (Ue = G.current) == null || Ue.focus()) : j(!1);
76824
- }, [O]), Ln(() => (Ae = async () => {
76827
+ }, [O]), Hn(() => (Ae = async () => {
76825
76828
  var Ue;
76826
76829
  try {
76827
76830
  const Xe = await ($ == null ? void 0 : $({
@@ -77089,7 +77092,7 @@ const Wge = "data:image/svg+xml,%3csvg%20width='11'%20height='16'%20viewBox='0%2
77089
77092
  };
77090
77093
  let w = () => {
77091
77094
  };
77092
- return Ln(() => (w = async () => {
77095
+ return Hn(() => (w = async () => {
77093
77096
  var I, N, V, F, $, G;
77094
77097
  if (m)
77095
77098
  try {
@@ -77114,7 +77117,7 @@ const Wge = "data:image/svg+xml,%3csvg%20width='11'%20height='16'%20viewBox='0%2
77114
77117
  }, m && !m.redirect_url && w(), () => {
77115
77118
  w = () => {
77116
77119
  };
77117
- }), [m == null ? void 0 : m.process_status]), Ln(() => {
77120
+ }), [m == null ? void 0 : m.process_status]), Hn(() => {
77118
77121
  var I;
77119
77122
  (m == null ? void 0 : m.process_status) === "error" || (I = m == null ? void 0 : m.process_status) != null && I.includes("error") ? ad({
77120
77123
  title: m.process_status.split("_").join(" "),
@@ -78184,11 +78187,11 @@ const tve = ({
78184
78187
  timelineWidth: t,
78185
78188
  excessTimestampWidth: r
78186
78189
  }) => {
78187
- const [i, a] = Hn(!0), [o, c] = Hn(!1), f = Jn(() => t + r, [t, r]), p = Jn(() => {
78190
+ const [i, a] = zn(!0), [o, c] = zn(!1), f = Jn(() => t + r, [t, r]), p = Jn(() => {
78188
78191
  const m = e < 15 ? 3 : e < 30 ? 2 : e < 50 ? 1 : 0;
78189
78192
  return n[m];
78190
78193
  }, [e, n]);
78191
- return Ln(() => {
78194
+ return Hn(() => {
78192
78195
  if (!p) return;
78193
78196
  const m = new Image();
78194
78197
  return m.src = p, a(!0), c(!1), m.onload = () => {
@@ -79387,7 +79390,7 @@ const zve = yve, Hve = _ve, jve = mve, Vve = Sve, $ve = gve, U8 = pve, Wve = bve
79387
79390
  platform: a
79388
79391
  });
79389
79392
  };
79390
- var kT = typeof document < "u" ? Z8 : Ln;
79393
+ var kT = typeof document < "u" ? Z8 : Hn;
79391
79394
  function _x(n, e) {
79392
79395
  if (n === e)
79393
79396
  return !0;
@@ -79651,8 +79654,8 @@ var $O = "PopperContent", [s0e, a0e] = wj($O), kj = W.forwardRef(
79651
79654
  Jve({
79652
79655
  ...oe,
79653
79656
  apply: ({ elements: gt, rects: Pt, availableWidth: an, availableHeight: Zt }) => {
79654
- const { width: Rn, height: dn } = Pt.reference, Fn = gt.floating.style;
79655
- Fn.setProperty("--radix-popper-available-width", `${an}px`), Fn.setProperty("--radix-popper-available-height", `${Zt}px`), Fn.setProperty("--radix-popper-anchor-width", `${Rn}px`), Fn.setProperty("--radix-popper-anchor-height", `${dn}px`);
79657
+ const { width: Rn, height: dn } = Pt.reference, Nn = gt.floating.style;
79658
+ Nn.setProperty("--radix-popper-available-width", `${an}px`), Nn.setProperty("--radix-popper-available-height", `${Zt}px`), Nn.setProperty("--radix-popper-anchor-width", `${Rn}px`), Nn.setProperty("--radix-popper-anchor-height", `${dn}px`);
79656
79659
  }
79657
79660
  }),
79658
79661
  V && t0e({ element: V, padding: c }),
@@ -80124,13 +80127,13 @@ const A0e = (n, e, t = 30) => {
80124
80127
  );
80125
80128
  }, k0e = ({ transcript: n, index: e }) => {
80126
80129
  var x;
80127
- const { zoomSize: t } = kx(), { setVideoCurrentTime: r, playerRef: i } = el(), [a, o] = Hn(
80130
+ const { zoomSize: t } = kx(), { setVideoCurrentTime: r, playerRef: i } = el(), [a, o] = zn(
80128
80131
  Ir(
80129
80132
  "00:00:000",
80130
80133
  n.timestamp_start,
80131
80134
  t
80132
80135
  )
80133
- ), [c, f] = Hn(
80136
+ ), [c, f] = zn(
80134
80137
  Ir("00:00:000", n.timestamp_end, t)
80135
80138
  ), p = Jn(
80136
80139
  () => Ir(
@@ -80139,8 +80142,8 @@ const A0e = (n, e, t = 30) => {
80139
80142
  t
80140
80143
  ),
80141
80144
  [n.timestamp_start, n.timestamp_end, t]
80142
- ), [m, _] = Hn(p - 35);
80143
- return Ln(() => {
80145
+ ), [m, _] = zn(p - 35);
80146
+ return Hn(() => {
80144
80147
  o(
80145
80148
  Ir(
80146
80149
  "00:00:000",
@@ -80428,7 +80431,7 @@ const A0e = (n, e, t = 30) => {
80428
80431
  break;
80429
80432
  }
80430
80433
  };
80431
- Ln(() => {
80434
+ Hn(() => {
80432
80435
  i && $(i);
80433
80436
  }, [i]);
80434
80437
  const xe = Jn(() => {
@@ -80450,13 +80453,13 @@ const A0e = (n, e, t = 30) => {
80450
80453
  an = 1;
80451
80454
  const Zt = [];
80452
80455
  for (let dn = 0; dn <= +Pt; dn += an) {
80453
- const { hours: Fn, minutes: zt, seconds: Jt } = fQ({
80456
+ const { hours: Nn, minutes: zt, seconds: Jt } = fQ({
80454
80457
  start: 0,
80455
80458
  end: dn * 1e3
80456
80459
  });
80457
80460
  Zt.push(
80458
80461
  [
80459
- jg(Fn || 0, 2),
80462
+ jg(Nn || 0, 2),
80460
80463
  jg(zt || 0, 2),
80461
80464
  jg(Jt || 0, 2)
80462
80465
  ].join(":")
@@ -80486,9 +80489,9 @@ const A0e = (n, e, t = 30) => {
80486
80489
  }, [oe, xe, F]), ae = (Ye) => {
80487
80490
  o.current && (o.current.scrollLeft = VL(Ye, F));
80488
80491
  };
80489
- Ln(() => {
80492
+ Hn(() => {
80490
80493
  ae(w);
80491
- }, [w, F, o.current]), Ln(() => {
80494
+ }, [w, F, o.current]), Hn(() => {
80492
80495
  if (f.current && w !== void 0) {
80493
80496
  const Ye = VL(w, F);
80494
80497
  Ye < 0 ? f.current.style.left = "0px" : f.current.style.left = `${Ye}px`;
@@ -80529,13 +80532,13 @@ const A0e = (n, e, t = 30) => {
80529
80532
  "00:00:00",
80530
80533
  kp(S),
80531
80534
  F
80532
- ), [Ae, Fe] = Hn(!0);
80533
- Ln(() => {
80535
+ ), [Ae, Fe] = zn(!0);
80536
+ Hn(() => {
80534
80537
  Fe(!0);
80535
80538
  let Ye = null;
80536
80539
  return setTimeout(async () => {
80537
80540
  if (!m || !c.current) {
80538
- console.log("no waveform or audio source"), Fe(!1);
80541
+ Fe(!1);
80539
80542
  return;
80540
80543
  }
80541
80544
  c.current instanceof Hv && c.current.destroy(), Ye = Hv.create({
@@ -80570,11 +80573,7 @@ const A0e = (n, e, t = 30) => {
80570
80573
  Ye < 0 && (Ie = 0), Ye > ye && (Ie = ye);
80571
80574
  const gt = Ie < 1 ? 0 : Ie;
80572
80575
  O(gt), R.currentTime(gt);
80573
- };
80574
- Ln(() => {
80575
- console.log("waveform current changed");
80576
- }, [c.current]);
80577
- const st = Jn(
80576
+ }, st = Jn(
80578
80577
  () => /* @__PURE__ */ Z(
80579
80578
  Mge,
80580
80579
  {
@@ -80815,7 +80814,7 @@ const H0e = ({ className: n }) => /* @__PURE__ */ yt(
80815
80814
  reloadTriggerMain: o,
80816
80815
  userToken: c = ""
80817
80816
  }) => {
80818
- const { refreshTrimmedClips: f } = BA(), { getDirectory: p, getTrimmedDirectory: m } = LA(), { getMergedInfo: _ } = dj(), { setVideoIsPlaying: x, resetPlayerState: T } = el(), { setTrimmedClips: R } = Wv(), { setTranscript: S, setTranscriptId: w } = l6(), { setOutputFiles: O } = FA(), { setFocusTrimmedClip: I } = kA(), { setMergedSelectedInfo: N } = F6(), { videoMetadata: V, setVideoMetadata: F } = Ox(), { mainFilePath: $, setMainFilePath: G, setTrimmedFilePath: X } = UA(), [H, j] = Hn(!1), [ee, ie] = Hn(!1), [oe, ce] = Hn([]), xe = async (ae, ue) => {
80817
+ const { refreshTrimmedClips: f } = BA(), { getDirectory: p, getTrimmedDirectory: m } = LA(), { getMergedInfo: _ } = dj(), { setVideoIsPlaying: x, resetPlayerState: T } = el(), { setTrimmedClips: R } = Wv(), { setTranscript: S, setTranscriptId: w } = l6(), { setOutputFiles: O } = FA(), { setFocusTrimmedClip: I } = kA(), { setMergedSelectedInfo: N } = F6(), { videoMetadata: V, setVideoMetadata: F } = Ox(), { mainFilePath: $, setMainFilePath: G, setTrimmedFilePath: X } = UA(), [H, j] = zn(!1), [ee, ie] = zn(!1), [oe, ce] = zn([]), xe = async (ae, ue) => {
80819
80818
  try {
80820
80819
  if (I(""), !ae.includes("merged")) {
80821
80820
  const re = await m({
@@ -80871,7 +80870,7 @@ const H0e = ({ className: n }) => /* @__PURE__ */ yt(
80871
80870
  }
80872
80871
  }
80873
80872
  };
80874
- return Ln(() => {
80873
+ return Hn(() => {
80875
80874
  n && ee && ge();
80876
80875
  }, [o]), /* @__PURE__ */ yt("div", { className: "w-full", children: [
80877
80876
  N0e(e) ? /* @__PURE__ */ Z("div", { className: ht("w-full flex-row items-center gap-[5px] pb-2"), children: /* @__PURE__ */ yt(
@@ -81000,8 +80999,8 @@ const H0e = ({ className: n }) => /* @__PURE__ */ yt(
81000
80999
  userToken: t,
81001
81000
  className: r
81002
81001
  }) => {
81003
- const [i, a] = Hn(null), [o, c] = Hn(!1), [f, p] = Hn(0), { resetPlayerState: m } = el(), { resetVideoMetaData: _ } = Ox(), { setOutputFiles: x } = FA(), { mainFilePath: T, setMainFilePath: R, setTrimmedFilePath: S } = UA(), { getDirectory: w } = LA();
81004
- return Ln(() => {
81002
+ const [i, a] = zn(null), [o, c] = zn(!1), [f, p] = zn(0), { resetPlayerState: m } = el(), { resetVideoMetaData: _ } = Ox(), { setOutputFiles: x } = FA(), { mainFilePath: T, setMainFilePath: R, setTrimmedFilePath: S } = UA(), { getDirectory: w } = LA();
81003
+ return Hn(() => {
81005
81004
  const O = async () => {
81006
81005
  try {
81007
81006
  c(!0);
@@ -81017,7 +81016,7 @@ const H0e = ({ className: n }) => /* @__PURE__ */ yt(
81017
81016
  }
81018
81017
  };
81019
81018
  m(), _(), R(""), S(""), x([]), O();
81020
- }, []), /* @__PURE__ */ yt("div", { className: ht("h-full rounded-lg border border-gray-500", r), children: [
81019
+ }, [e]), /* @__PURE__ */ yt("div", { className: ht("h-full rounded-lg border border-gray-500", r), children: [
81021
81020
  /* @__PURE__ */ yt("div", { className: "flex justify-between border-b border-b-gray-500 px-3 py-2", children: [
81022
81021
  /* @__PURE__ */ Z(
81023
81022
  T9,
@@ -81241,7 +81240,7 @@ const Zj = /* @__PURE__ */ Zu(W0e), q0e = ({ cpl: n, cps: e, cpm: t }) => /* @__
81241
81240
  currentTime: t,
81242
81241
  handleOnTimeChange: r
81243
81242
  }) => {
81244
- const i = Ei(null), [a, o] = Hn(!1), [c, f] = Hn({
81243
+ const i = Ei(null), [a, o] = zn(!1), [c, f] = zn({
81245
81244
  ...e,
81246
81245
  cpl: 0
81247
81246
  }), p = Jn(() => `${new Date(
@@ -81381,7 +81380,7 @@ const Zj = /* @__PURE__ */ Zu(W0e), q0e = ({ cpl: n, cps: e, cpm: t }) => /* @__
81381
81380
  isSaving: r,
81382
81381
  selectedHighlightOption: i
81383
81382
  }) => {
81384
- const a = Nt(t), o = Nt(e), [c, f] = Hn({
81383
+ const a = Nt(t), o = Nt(e), [c, f] = zn({
81385
81384
  width: 10,
81386
81385
  left: 0,
81387
81386
  top: 0,
@@ -81460,7 +81459,7 @@ const Zj = /* @__PURE__ */ Zu(W0e), q0e = ({ cpl: n, cps: e, cpm: t }) => /* @__
81460
81459
  r,
81461
81460
  i
81462
81461
  ]);
81463
- return Ln(() => {
81462
+ return Hn(() => {
81464
81463
  var O, I;
81465
81464
  const S = n == null ? void 0 : n.findIndex(
81466
81465
  (N) => Nt(x == null ? void 0 : x.timestamp_start) >= Nt(N.timestamp_start) && Nt(x == null ? void 0 : x.timestamp_end) <= Nt(N.timestamp_end)
@@ -81484,15 +81483,13 @@ const Zj = /* @__PURE__ */ Zu(W0e), q0e = ({ cpl: n, cps: e, cpm: t }) => /* @__
81484
81483
  )
81485
81484
  ] });
81486
81485
  }, Y0e = ({ data: n, active: e }) => {
81487
- const t = Ei(null);
81488
- console.log(n);
81489
- const {
81486
+ const t = Ei(null), {
81490
81487
  timestamp_end: r,
81491
81488
  timestamp_text: i,
81492
81489
  timestamp_start: a,
81493
81490
  // segment_idx,
81494
81491
  segments: o
81495
- } = n, { videoCurrentTime: c, playerRef: f } = el(), p = Ei(null), { jumpTime: m } = Jj(), { selectedHighlightOption: _ } = EF(), [x, T] = Hn(!1), [R, S] = Hn(i), [w] = Hn(!1), O = ({
81492
+ } = n, { videoCurrentTime: c, playerRef: f } = el(), p = Ei(null), { jumpTime: m } = Jj(), { selectedHighlightOption: _ } = EF(), [x, T] = zn(!1), [R, S] = zn(i), [w] = zn(!1), O = ({
81496
81493
  time: X,
81497
81494
  wordSegments: H,
81498
81495
  isPrev: j
@@ -81586,7 +81583,7 @@ const Zj = /* @__PURE__ */ Zu(W0e), q0e = ({ cpl: n, cps: e, cpm: t }) => /* @__
81586
81583
  selectedHighlightOption: _
81587
81584
  }
81588
81585
  ) : /* @__PURE__ */ Z("div", { className: "w-full flex flex-row flex-wrap", children: V });
81589
- return Ln(() => {
81586
+ return Hn(() => {
81590
81587
  if (x) {
81591
81588
  const X = document.querySelector(
81592
81589
  "#editable-transcript"
@@ -81599,7 +81596,7 @@ const Zj = /* @__PURE__ */ Zu(W0e), q0e = ({ cpl: n, cps: e, cpm: t }) => /* @__
81599
81596
  j == null || j.removeAllRanges(), j == null || j.addRange(H);
81600
81597
  }
81601
81598
  }
81602
- }, [x]), Ln(() => {
81599
+ }, [x]), Hn(() => {
81603
81600
  w && p.current && p.current.blur();
81604
81601
  }, [w]), /* @__PURE__ */ Z(
81605
81602
  "div",
@@ -0,0 +1,4 @@
1
+ import { IResponse } from './IResponse';
2
+ export interface ISpritesResponse extends IResponse {
3
+ data: string[];
4
+ }
@@ -0,0 +1,5 @@
1
+ import { IResponse } from './IResponse';
2
+ export interface IWaveformResponse extends IResponse {
3
+ audio: string;
4
+ waveform: number[];
5
+ }
@@ -0,0 +1,3 @@
1
+ import { StoryProps } from '../../stories/Timeline.stories';
2
+ declare const WithDirectory: ({ pathname, userToken, endpoint }: StoryProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default WithDirectory;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salina-app/media-editor",
3
- "version": "0.0.78",
3
+ "version": "0.0.80",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/main.d.ts",