@salina-app/media-editor 0.0.79 → 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;
@@ -1722,7 +1722,7 @@ const bQ = (n) => {
1722
1722
  });
1723
1723
  }
1724
1724
  })), n_e = ({ onCut: n }) => {
1725
- const [e, t] = Hn(0), {
1725
+ const [e, t] = zn(0), {
1726
1726
  videoIsPlaying: r,
1727
1727
  setVideoIsPlaying: i,
1728
1728
  videoIsReady: a,
@@ -1766,7 +1766,7 @@ const bQ = (n) => {
1766
1766
  });
1767
1767
  else if (_.end === "") {
1768
1768
  if (_.initialCut && _.initialCut >= N || N === 0)
1769
- return console.log("cut is less than initial cut"), ad({
1769
+ return ad({
1770
1770
  variant: "destructive",
1771
1771
  title: "Uh oh! Something went wrong.",
1772
1772
  description: "Sorry not a valid cut. The current cut time is less than the previous cut.",
@@ -1849,7 +1849,7 @@ const bQ = (n) => {
1849
1849
  T
1850
1850
  ]
1851
1851
  );
1852
- Ln(() => (document.addEventListener("keydown", I), () => {
1852
+ Hn(() => (document.addEventListener("keydown", I), () => {
1853
1853
  document.removeEventListener("keydown", I);
1854
1854
  }), [I]);
1855
1855
  }, c6 = "https://putulero-salina-api-staging.media-meter.in", Nu = "secret";
@@ -3969,16 +3969,16 @@ const Fu = /* @__PURE__ */ Zu(eJ), { GET: lN } = MA(!1), LA = () => ({ getDirect
3969
3969
  setThumbnails: f,
3970
3970
  setVideoSrc: p
3971
3971
  } = Sv();
3972
- Ln(() => {
3972
+ Hn(() => {
3973
3973
  i && i.length && c(i);
3974
- }, [i, c]), Ln(() => {
3974
+ }, [i, c]), Hn(() => {
3975
3975
  t && t.length && a(t);
3976
- }, [t, a]), Ln(() => {
3976
+ }, [t, a]), Hn(() => {
3977
3977
  e && o(e);
3978
- }, [e, o]), Ln(() => {
3978
+ }, [e, o]), Hn(() => {
3979
3979
  r && r.length && f(r);
3980
- }, [r, f]), Ln(() => {
3981
- n && p(n);
3980
+ }, [r, f]), Hn(() => {
3981
+ p(n || "");
3982
3982
  }, [n, p]);
3983
3983
  }, tJ = {
3984
3984
  isOpen: !1,
@@ -4048,10 +4048,10 @@ function _a(n, e) {
4048
4048
  if (e !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
4049
4049
  return rJ(n);
4050
4050
  }
4051
- function Nn(n) {
4052
- return Nn = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
4051
+ function Ln(n) {
4052
+ return Ln = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
4053
4053
  return e.__proto__ || Object.getPrototypeOf(e);
4054
- }, Nn(n);
4054
+ }, Ln(n);
4055
4055
  }
4056
4056
  function pD(n, e) {
4057
4057
  return pD = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, r) {
@@ -4160,7 +4160,7 @@ function fN(n) {
4160
4160
  return n;
4161
4161
  }
4162
4162
  function iJ(n, e, t) {
4163
- 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));
4164
4164
  }
4165
4165
  function j6() {
4166
4166
  try {
@@ -4377,7 +4377,7 @@ function pN(n) {
4377
4377
  return n;
4378
4378
  }
4379
4379
  function sJ(n, e, t) {
4380
- 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));
4381
4381
  }
4382
4382
  function W6() {
4383
4383
  try {
@@ -4447,7 +4447,7 @@ Oe(aJ, "defaultProps", {
4447
4447
  style: {}
4448
4448
  });
4449
4449
  function oJ(n, e, t) {
4450
- 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));
4451
4451
  }
4452
4452
  function q6() {
4453
4453
  try {
@@ -5357,7 +5357,7 @@ function EN(n) {
5357
5357
  return n;
5358
5358
  }
5359
5359
  function SJ(n, e, t) {
5360
- 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));
5361
5361
  }
5362
5362
  function Z6() {
5363
5363
  try {
@@ -5799,7 +5799,7 @@ function RN(n) {
5799
5799
  }
5800
5800
  }
5801
5801
  function RJ(n, e, t) {
5802
- 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));
5803
5803
  }
5804
5804
  function J6() {
5805
5805
  try {
@@ -5986,7 +5986,7 @@ function DJ(n) {
5986
5986
  });
5987
5987
  }
5988
5988
  function AJ(n, e, t) {
5989
- 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));
5990
5990
  }
5991
5991
  function tF() {
5992
5992
  try {
@@ -6479,7 +6479,7 @@ function Va(n) {
6479
6479
  return n;
6480
6480
  }
6481
6481
  function WJ(n, e, t) {
6482
- 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));
6483
6483
  }
6484
6484
  function nF() {
6485
6485
  try {
@@ -7194,7 +7194,7 @@ function ZJ(n) {
7194
7194
  return XJ(n) || KJ(n) || iF(n) || QJ();
7195
7195
  }
7196
7196
  function JJ(n, e, t) {
7197
- 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));
7198
7198
  }
7199
7199
  function sF() {
7200
7200
  try {
@@ -7361,7 +7361,7 @@ function nee(n) {
7361
7361
  t ? t.call(n, e) : n.forceUpdate();
7362
7362
  }
7363
7363
  function ree(n, e, t) {
7364
- 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));
7365
7365
  }
7366
7366
  function oF() {
7367
7367
  try {
@@ -7910,7 +7910,7 @@ function Eee(n) {
7910
7910
  return n;
7911
7911
  }
7912
7912
  function Ree(n, e, t) {
7913
- 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));
7914
7914
  }
7915
7915
  function hF() {
7916
7916
  try {
@@ -8206,7 +8206,7 @@ function lr(n) {
8206
8206
  return n;
8207
8207
  }
8208
8208
  function Lee(n, e, t) {
8209
- 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));
8210
8210
  }
8211
8211
  function mF() {
8212
8212
  try {
@@ -8661,7 +8661,7 @@ WA.propTypes = process.env.NODE_ENV !== "production" ? {
8661
8661
  } : {};
8662
8662
  ib(WA);
8663
8663
  function Nee(n, e, t) {
8664
- 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));
8665
8665
  }
8666
8666
  function gF() {
8667
8667
  try {
@@ -8825,7 +8825,7 @@ function jee(n) {
8825
8825
  }), t);
8826
8826
  }
8827
8827
  function Vee(n, e, t) {
8828
- 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));
8829
8829
  }
8830
8830
  function yF() {
8831
8831
  try {
@@ -8923,7 +8923,7 @@ function Iu(n) {
8923
8923
  return n;
8924
8924
  }
8925
8925
  function $ee(n, e, t) {
8926
- 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));
8927
8927
  }
8928
8928
  function _F() {
8929
8929
  try {
@@ -9564,7 +9564,7 @@ function $N(n) {
9564
9564
  return n;
9565
9565
  }
9566
9566
  function Yee(n, e, t) {
9567
- 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));
9568
9568
  }
9569
9569
  function CF() {
9570
9570
  try {
@@ -9987,19 +9987,19 @@ function rte() {
9987
9987
  }
9988
9988
  function c(ct, lt, Xt) {
9989
9989
  for (var hn = Xt; hn > 0; ) {
9990
- var Un = hn - 1 >>> 1, nr = ct[Un];
9990
+ var Bn = hn - 1 >>> 1, nr = ct[Bn];
9991
9991
  if (p(nr, lt) > 0)
9992
- ct[Un] = lt, ct[hn] = nr, hn = Un;
9992
+ ct[Bn] = lt, ct[hn] = nr, hn = Bn;
9993
9993
  else
9994
9994
  return;
9995
9995
  }
9996
9996
  }
9997
9997
  function f(ct, lt, Xt) {
9998
- 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; ) {
9999
9999
  var Pn = (hn + 1) * 2 - 1, Lr = ct[Pn], pn = Pn + 1, Ri = ct[pn];
10000
10000
  if (p(Lr, lt) < 0)
10001
- pn < Un && p(Ri, Lr) < 0 ? (ct[hn] = Ri, ct[pn] = lt, hn = pn) : (ct[hn] = Lr, ct[Pn] = lt, hn = Pn);
10002
- 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)
10003
10003
  ct[hn] = Ri, ct[pn] = lt, hn = pn;
10004
10004
  else
10005
10005
  return;
@@ -10043,7 +10043,7 @@ function rte() {
10043
10043
  ye = !0, gi(Fe);
10044
10044
  else {
10045
10045
  var lt = a(ee);
10046
- lt !== null && Bn(Ae, lt.startTime - ct);
10046
+ lt !== null && Fn(Ae, lt.startTime - ct);
10047
10047
  }
10048
10048
  }
10049
10049
  function Fe(ct, lt) {
@@ -10058,11 +10058,11 @@ function rte() {
10058
10058
  }
10059
10059
  function Me(ct, lt) {
10060
10060
  var Xt = lt;
10061
- 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())); ) {
10062
10062
  var hn = oe.callback;
10063
10063
  if (typeof hn == "function") {
10064
10064
  oe.callback = null, ce = oe.priorityLevel;
10065
- var Un = oe.expirationTime <= Xt, nr = hn(Un);
10065
+ var Bn = oe.expirationTime <= Xt, nr = hn(Bn);
10066
10066
  Xt = n.unstable_now(), typeof nr == "function" ? oe.callback = nr : oe === a(j) && o(j), me(Xt);
10067
10067
  } else
10068
10068
  o(j);
@@ -10071,7 +10071,7 @@ function rte() {
10071
10071
  if (oe !== null)
10072
10072
  return !0;
10073
10073
  var Pn = a(ee);
10074
- return Pn !== null && Bn(Ae, Pn.startTime - Xt), !1;
10074
+ return Pn !== null && Fn(Ae, Pn.startTime - Xt), !1;
10075
10075
  }
10076
10076
  function Ge(ct, lt) {
10077
10077
  switch (ct) {
@@ -10125,12 +10125,12 @@ function rte() {
10125
10125
  };
10126
10126
  }
10127
10127
  function Xe(ct, lt, Xt) {
10128
- var hn = n.unstable_now(), Un;
10128
+ var hn = n.unstable_now(), Bn;
10129
10129
  if (typeof Xt == "object" && Xt !== null) {
10130
10130
  var nr = Xt.delay;
10131
- typeof nr == "number" && nr > 0 ? Un = hn + nr : Un = hn;
10131
+ typeof nr == "number" && nr > 0 ? Bn = hn + nr : Bn = hn;
10132
10132
  } else
10133
- Un = hn;
10133
+ Bn = hn;
10134
10134
  var Pn;
10135
10135
  switch (ct) {
10136
10136
  case m:
@@ -10150,15 +10150,15 @@ function rte() {
10150
10150
  Pn = G;
10151
10151
  break;
10152
10152
  }
10153
- var Lr = Un + Pn, pn = {
10153
+ var Lr = Bn + Pn, pn = {
10154
10154
  id: ie++,
10155
10155
  callback: lt,
10156
10156
  priorityLevel: ct,
10157
- startTime: Un,
10157
+ startTime: Bn,
10158
10158
  expirationTime: Lr,
10159
10159
  sortIndex: -1
10160
10160
  };
10161
- 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;
10162
10162
  }
10163
10163
  function ut() {
10164
10164
  }
@@ -10175,7 +10175,7 @@ function rte() {
10175
10175
  return ce;
10176
10176
  }
10177
10177
  var Pt = !1, an = null, Zt = -1, Rn = r, dn = -1;
10178
- function Fn() {
10178
+ function Nn() {
10179
10179
  var ct = n.unstable_now() - dn;
10180
10180
  return !(ct < Rn);
10181
10181
  }
@@ -10217,7 +10217,7 @@ function rte() {
10217
10217
  function gi(ct) {
10218
10218
  an = ct, Pt || (Pt = !0, Sn());
10219
10219
  }
10220
- function Bn(ct, lt) {
10220
+ function Fn(ct, lt) {
10221
10221
  Zt = ae(function() {
10222
10222
  ct(n.unstable_now());
10223
10223
  }, lt);
@@ -10226,7 +10226,7 @@ function rte() {
10226
10226
  ue(Zt), Zt = -1;
10227
10227
  }
10228
10228
  var ts = zt, Tr = null;
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 = 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());
10230
10230
  }();
10231
10231
  }(YE)), YE;
10232
10232
  }
@@ -10590,7 +10590,7 @@ function ite() {
10590
10590
  u.removeAttribute("value");
10591
10591
  return;
10592
10592
  }
10593
- 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);
10594
10594
  }
10595
10595
  function dn(u, d, v) {
10596
10596
  if (d.hasOwnProperty("value") || d.hasOwnProperty("defaultValue")) {
@@ -10600,7 +10600,7 @@ function ite() {
10600
10600
  }
10601
10601
  v = u.name, v !== "" && (u.name = ""), u.defaultChecked = !!u._wrapperState.initialChecked, v !== "" && (u.name = v);
10602
10602
  }
10603
- function Fn(u, d, v) {
10603
+ function Nn(u, d, v) {
10604
10604
  (d !== "number" || gt(u.ownerDocument) !== u) && (v == null ? u.defaultValue = "" + u._wrapperState.initialValue : u.defaultValue !== "" + v && (u.defaultValue = "" + v));
10605
10605
  }
10606
10606
  var zt = Array.isArray;
@@ -10657,7 +10657,7 @@ function ite() {
10657
10657
  return "http://www.w3.org/1999/xhtml";
10658
10658
  }
10659
10659
  }
10660
- function Bn(u, d) {
10660
+ function Fn(u, d) {
10661
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;
10662
10662
  }
10663
10663
  var Kr, ts = function(u) {
@@ -10743,10 +10743,10 @@ function ite() {
10743
10743
  v === "float" && (v = "cssFloat"), C ? u.setProperty(v, P) : u[v] = P;
10744
10744
  }
10745
10745
  }
10746
- 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 });
10747
10747
  function nr(u, d) {
10748
10748
  if (d) {
10749
- 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));
10750
10750
  if (d.dangerouslySetInnerHTML != null) {
10751
10751
  if (d.children != null) throw Error(t(60));
10752
10752
  if (typeof d.dangerouslySetInnerHTML != "object" || !("__html" in d.dangerouslySetInnerHTML)) throw Error(t(61));
@@ -11707,7 +11707,7 @@ function ite() {
11707
11707
  }
11708
11708
  if (Vi) throw u = qs, Vi = !1, qs = null, u;
11709
11709
  }
11710
- function zn(u, d) {
11710
+ function Un(u, d) {
11711
11711
  var v = d[xs];
11712
11712
  v === void 0 && (v = d[xs] = /* @__PURE__ */ new Set());
11713
11713
  var C = u + "__bubble";
@@ -11886,7 +11886,7 @@ function ite() {
11886
11886
  oi(et, Dt, v, Ze);
11887
11887
  break e;
11888
11888
  }
11889
- 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);
11890
11890
  }
11891
11891
  switch (Bt = Le ? fu(Le) : window, u) {
11892
11892
  case "focusin":
@@ -12597,10 +12597,10 @@ function ite() {
12597
12597
  switch (y(Oh, d), y(Ud, u), y(uo, kh), u = d.nodeType, u) {
12598
12598
  case 9:
12599
12599
  case 11:
12600
- d = (d = d.documentElement) ? d.namespaceURI : Bn(null, "");
12600
+ d = (d = d.documentElement) ? d.namespaceURI : Fn(null, "");
12601
12601
  break;
12602
12602
  default:
12603
- 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);
12604
12604
  }
12605
12605
  xn(uo), y(uo, d);
12606
12606
  }
@@ -12609,7 +12609,7 @@ function ite() {
12609
12609
  }
12610
12610
  function Pb(u) {
12611
12611
  Ac(Oh.current);
12612
- var d = Ac(uo.current), v = Bn(d, u.type);
12612
+ var d = Ac(uo.current), v = Fn(d, u.type);
12613
12613
  d !== v && (y(Ud, u), y(uo, v));
12614
12614
  }
12615
12615
  function A0(u) {
@@ -13409,7 +13409,7 @@ Error generating stack: ` + B.message + `
13409
13409
  Le,
13410
13410
  v
13411
13411
  )), v = 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" && 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));
13413
13413
  }
13414
13414
  v && (B = B || []).push("style", v);
13415
13415
  var Le = B;
@@ -13469,39 +13469,39 @@ Error generating stack: ` + B.message + `
13469
13469
  var B = d.memoizedProps;
13470
13470
  switch (C[on] = d, C[ls] = B, u = (d.mode & 1) !== 0, v) {
13471
13471
  case "dialog":
13472
- zn("cancel", C), zn("close", C);
13472
+ Un("cancel", C), Un("close", C);
13473
13473
  break;
13474
13474
  case "iframe":
13475
13475
  case "object":
13476
13476
  case "embed":
13477
- zn("load", C);
13477
+ Un("load", C);
13478
13478
  break;
13479
13479
  case "video":
13480
13480
  case "audio":
13481
- for (P = 0; P < Tc.length; P++) zn(Tc[P], C);
13481
+ for (P = 0; P < Tc.length; P++) Un(Tc[P], C);
13482
13482
  break;
13483
13483
  case "source":
13484
- zn("error", C);
13484
+ Un("error", C);
13485
13485
  break;
13486
13486
  case "img":
13487
13487
  case "image":
13488
13488
  case "link":
13489
- zn(
13489
+ Un(
13490
13490
  "error",
13491
13491
  C
13492
- ), zn("load", C);
13492
+ ), Un("load", C);
13493
13493
  break;
13494
13494
  case "details":
13495
- zn("toggle", C);
13495
+ Un("toggle", C);
13496
13496
  break;
13497
13497
  case "input":
13498
- an(C, B), zn("invalid", C);
13498
+ an(C, B), Un("invalid", C);
13499
13499
  break;
13500
13500
  case "select":
13501
- C._wrapperState = { wasMultiple: !!B.multiple }, zn("invalid", C);
13501
+ C._wrapperState = { wasMultiple: !!B.multiple }, Un("invalid", C);
13502
13502
  break;
13503
13503
  case "textarea":
13504
- Sn(C, B), zn("invalid", C);
13504
+ Sn(C, B), Un("invalid", C);
13505
13505
  }
13506
13506
  nr(v, B), P = null;
13507
13507
  for (var K in B) if (B.hasOwnProperty(K)) {
@@ -13510,7 +13510,7 @@ Error generating stack: ` + B.message + `
13510
13510
  C.textContent,
13511
13511
  pe,
13512
13512
  u
13513
- ), 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);
13514
13514
  }
13515
13515
  switch (v) {
13516
13516
  case "input":
@@ -13531,43 +13531,43 @@ Error generating stack: ` + B.message + `
13531
13531
  e: {
13532
13532
  switch (K = Pn(v, C), v) {
13533
13533
  case "dialog":
13534
- zn("cancel", u), zn("close", u), P = C;
13534
+ Un("cancel", u), Un("close", u), P = C;
13535
13535
  break;
13536
13536
  case "iframe":
13537
13537
  case "object":
13538
13538
  case "embed":
13539
- zn("load", u), P = C;
13539
+ Un("load", u), P = C;
13540
13540
  break;
13541
13541
  case "video":
13542
13542
  case "audio":
13543
- for (P = 0; P < Tc.length; P++) zn(Tc[P], u);
13543
+ for (P = 0; P < Tc.length; P++) Un(Tc[P], u);
13544
13544
  P = C;
13545
13545
  break;
13546
13546
  case "source":
13547
- zn("error", u), P = C;
13547
+ Un("error", u), P = C;
13548
13548
  break;
13549
13549
  case "img":
13550
13550
  case "image":
13551
13551
  case "link":
13552
- zn(
13552
+ Un(
13553
13553
  "error",
13554
13554
  u
13555
- ), zn("load", u), P = C;
13555
+ ), Un("load", u), P = C;
13556
13556
  break;
13557
13557
  case "details":
13558
- zn("toggle", u), P = C;
13558
+ Un("toggle", u), P = C;
13559
13559
  break;
13560
13560
  case "input":
13561
- an(u, C), P = Pt(u, C), zn("invalid", u);
13561
+ an(u, C), P = Pt(u, C), Un("invalid", u);
13562
13562
  break;
13563
13563
  case "option":
13564
13564
  P = C;
13565
13565
  break;
13566
13566
  case "select":
13567
- 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);
13568
13568
  break;
13569
13569
  case "textarea":
13570
- Sn(u, C), P = On(u, C), zn("invalid", u);
13570
+ Sn(u, C), P = On(u, C), Un("invalid", u);
13571
13571
  break;
13572
13572
  default:
13573
13573
  P = C;
@@ -13575,7 +13575,7 @@ Error generating stack: ` + B.message + `
13575
13575
  nr(v, P), pe = P;
13576
13576
  for (B in pe) if (pe.hasOwnProperty(B)) {
13577
13577
  var ve = pe[B];
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" && 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));
13579
13579
  }
13580
13580
  switch (v) {
13581
13581
  case "input":
@@ -15475,7 +15475,7 @@ function ste() {
15475
15475
  if (Zt(s))
15476
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);
15477
15477
  }
15478
- function Fn(s) {
15478
+ function Nn(s) {
15479
15479
  if (Zt(s))
15480
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);
15481
15481
  }
@@ -15495,9 +15495,9 @@ function ste() {
15495
15495
  if (Zt(s))
15496
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);
15497
15497
  }
15498
- 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 = {};
15499
15499
  function nr(s) {
15500
- 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);
15501
15501
  }
15502
15502
  function Pn(s, l, h) {
15503
15503
  return l !== null ? l.type === mr : h ? !1 : s.length > 2 && (s[0] === "o" || s[0] === "O") && (s[1] === "n" || s[1] === "N");
@@ -15529,7 +15529,7 @@ function ste() {
15529
15529
  return !1;
15530
15530
  if (h !== null)
15531
15531
  switch (h.type) {
15532
- case Bn:
15532
+ case Fn:
15533
15533
  return !l;
15534
15534
  case Kr:
15535
15535
  return l === !1;
@@ -15544,7 +15544,7 @@ function ste() {
15544
15544
  return Q.hasOwnProperty(s) ? Q[s] : null;
15545
15545
  }
15546
15546
  function Y(s, l, h, g, b, A, M) {
15547
- 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;
15548
15548
  }
15549
15549
  var Q = {}, he = [
15550
15550
  "children",
@@ -15646,7 +15646,7 @@ function ste() {
15646
15646
  ].forEach(function(s) {
15647
15647
  Q[s] = new Y(
15648
15648
  s,
15649
- Bn,
15649
+ Fn,
15650
15650
  !1,
15651
15651
  // mustUseProperty
15652
15652
  s.toLowerCase(),
@@ -15670,7 +15670,7 @@ function ste() {
15670
15670
  ].forEach(function(s) {
15671
15671
  Q[s] = new Y(
15672
15672
  s,
15673
- Bn,
15673
+ Fn,
15674
15674
  !0,
15675
15675
  // mustUseProperty
15676
15676
  s,
@@ -15935,7 +15935,7 @@ function ste() {
15935
15935
  } else if (s.hasAttribute(A)) {
15936
15936
  if (pn(l, h, g, !1))
15937
15937
  return s.getAttribute(A);
15938
- if (g.type === Bn)
15938
+ if (g.type === Fn)
15939
15939
  return h;
15940
15940
  M = s.getAttribute(A);
15941
15941
  }
@@ -15967,7 +15967,7 @@ function ste() {
15967
15967
  var z = b.propertyName;
15968
15968
  if (h === null) {
15969
15969
  var q = b.type;
15970
- s[z] = q === Bn ? !1 : "";
15970
+ s[z] = q === Fn ? !1 : "";
15971
15971
  } else
15972
15972
  s[z] = h;
15973
15973
  return;
@@ -15977,7 +15977,7 @@ function ste() {
15977
15977
  s.removeAttribute(te);
15978
15978
  else {
15979
15979
  var Te = b.type, be;
15980
- 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);
15981
15981
  }
15982
15982
  }
15983
15983
  }
@@ -17582,7 +17582,7 @@ Check the render method of \`` + s + "`." : "";
17582
17582
  return o("Invalid DOM property `%s`. Did you mean `%s`?", l, se), Er[l] = !0, !0;
17583
17583
  } else if (!te && l !== b)
17584
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;
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 === 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);
17586
17586
  };
17587
17587
  }
17588
17588
  var Ch = function(s, l, h) {
@@ -17615,21 +17615,21 @@ Check the render method of \`` + s + "`." : "";
17615
17615
  var l = s.target || s.srcElement || window;
17616
17616
  return l.correspondingUseElement && (l = l.correspondingUseElement), l.nodeType === so ? l.parentNode : l;
17617
17617
  }
17618
- var zn = null, Po = null, lo = null;
17618
+ var Un = null, Po = null, lo = null;
17619
17619
  function lu(s) {
17620
17620
  var l = hf(s);
17621
17621
  if (l) {
17622
- if (typeof zn != "function")
17622
+ if (typeof Un != "function")
17623
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.");
17624
17624
  var h = l.stateNode;
17625
17625
  if (h) {
17626
17626
  var g = wS(h);
17627
- zn(l.stateNode, l.type, g);
17627
+ Un(l.stateNode, l.type, g);
17628
17628
  }
17629
17629
  }
17630
17630
  }
17631
17631
  function fm(s) {
17632
- zn = s;
17632
+ Un = s;
17633
17633
  }
17634
17634
  function Id(s) {
17635
17635
  Po ? lo ? lo.push(s) : lo = [s] : Po = s;
@@ -28293,7 +28293,7 @@ Check the render method of \`` + te + "`.");
28293
28293
  var bE = "18.3.1";
28294
28294
  function lX(s, l, h) {
28295
28295
  var g = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null;
28296
- return Fn(g), {
28296
+ return Nn(g), {
28297
28297
  // This tag allow us to uniquely identify this as a React Portal
28298
28298
  $$typeof: ur,
28299
28299
  key: g == null ? null : "" + g,
@@ -32233,13 +32233,13 @@ function Xne(...n) {
32233
32233
  }
32234
32234
  var Kne = (n) => {
32235
32235
  var e, t, r, i, a, o, c, f, p, m, _;
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), 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(() => {
32237
32237
  var Y;
32238
32238
  return (Y = T.closeButton) != null ? Y : X;
32239
32239
  }, [T.closeButton, X]);
32240
32240
  rt.useMemo(() => T.duration || ce || o4, [T.duration, ce]);
32241
- 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";
32242
- 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(() => {
32243
32243
  Ge(!0);
32244
32244
  }, []), rt.useEffect(() => {
32245
32245
  let Y = zt.current;
@@ -32280,12 +32280,12 @@ var Kne = (n) => {
32280
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" });
32281
32281
  }
32282
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) => {
32283
- 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 }));
32284
32284
  }, onPointerUp: () => {
32285
32285
  var Y, Q, he, we;
32286
32286
  if (nt || !mr) return;
32287
32287
  lt.current = null;
32288
- 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;
32289
32289
  if (Math.abs(Je) >= Gne || Dn > 0.11) {
32290
32290
  an(Tr.current), (he = T.onDismiss) == null || he.call(T, T), pn(), Ye(!0), gt(!1);
32291
32291
  return;
@@ -32558,7 +32558,7 @@ function eR(n, e) {
32558
32558
  return typeof n == "function" ? n(e) : n && (n.current = e), n;
32559
32559
  }
32560
32560
  function lre(n, e) {
32561
- var t = Hn(function() {
32561
+ var t = zn(function() {
32562
32562
  return {
32563
32563
  // value
32564
32564
  value: n,
@@ -34505,7 +34505,7 @@ if (typeof document < "u" && typeof window < "u") {
34505
34505
  }
34506
34506
  }
34507
34507
  function xU(n) {
34508
- const [e, t] = Hn(!!n.ssr), [r, i] = Hn({});
34508
+ const [e, t] = zn(!!n.ssr), [r, i] = zn({});
34509
34509
  function a(T) {
34510
34510
  if (T) {
34511
34511
  const R = n.icon;
@@ -34525,7 +34525,7 @@ function xU(n) {
34525
34525
  name: ""
34526
34526
  };
34527
34527
  }
34528
- const [o, c] = Hn(a(!!n.ssr));
34528
+ const [o, c] = zn(a(!!n.ssr));
34529
34529
  function f() {
34530
34530
  const T = r.callback;
34531
34531
  T && (T(), i({}));
@@ -34556,7 +34556,7 @@ function xU(n) {
34556
34556
  });
34557
34557
  } else S && ((T = n.onLoad) === null || T === void 0 || T.call(n, R));
34558
34558
  }
34559
- Ln(() => (t(!0), f), []), Ln(() => {
34559
+ Hn(() => (t(!0), f), []), Hn(() => {
34560
34560
  e && m();
34561
34561
  }, [n.icon, e]);
34562
34562
  const { name: _, data: x } = o;
@@ -37989,7 +37989,7 @@ function $U() {
37989
37989
  * @see https://www.w3.org/TR/xml-names/#ns-qualnames XML Namespaces: Qualified names
37990
37990
  */
37991
37991
  createDocumentType: function(Y, Q, he) {
37992
- var we = new Bn();
37992
+ var we = new Fn();
37993
37993
  return we.name = Y, we.nodeName = Y, we.publicId = Q || "", we.systemId = he || "", we;
37994
37994
  }
37995
37995
  };
@@ -38010,10 +38010,10 @@ function $U() {
38010
38010
  localName: null,
38011
38011
  // Modified in DOM Level 2:
38012
38012
  insertBefore: function(Y, Q) {
38013
- return Fn(this, Y, Q);
38013
+ return Nn(this, Y, Q);
38014
38014
  },
38015
38015
  replaceChild: function(Y, Q) {
38016
- Fn(this, Y, Q, dn), Q && this.removeChild(Q);
38016
+ Nn(this, Y, Q, dn), Q && this.removeChild(Q);
38017
38017
  },
38018
38018
  removeChild: function(Y) {
38019
38019
  return Xe(this, Y);
@@ -38219,7 +38219,7 @@ function $U() {
38219
38219
  throw new ie(H, "Doctype can only be inserted before an element");
38220
38220
  }
38221
38221
  }
38222
- function Fn(Y, Q, he, we) {
38222
+ function Nn(Y, Q, he, we) {
38223
38223
  Zt(Y, Q, he), Y.nodeType === me.DOCUMENT_NODE && (we || Rn)(Y, Q, he);
38224
38224
  var Je = Q.parentNode;
38225
38225
  if (Je && Je.removeChild(Q), Q.nodeType === F) {
@@ -38260,13 +38260,13 @@ function $U() {
38260
38260
  }
38261
38261
  return Y;
38262
38262
  }
38263
- 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;
38264
38264
  },
38265
38265
  removeChild: function(Y) {
38266
38266
  return this.documentElement == Y && (this.documentElement = null), Xe(this, Y);
38267
38267
  },
38268
38268
  replaceChild: function(Y, Q) {
38269
- 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);
38270
38270
  },
38271
38271
  // Introduced in DOM Level 2:
38272
38272
  importNode: function(Y, Q) {
@@ -38485,9 +38485,9 @@ function $U() {
38485
38485
  nodeName: "#cdata-section",
38486
38486
  nodeType: R
38487
38487
  }, p(gi, Sn);
38488
- function Bn() {
38488
+ function Fn() {
38489
38489
  }
38490
- Bn.prototype.nodeType = V, p(Bn, me);
38490
+ Fn.prototype.nodeType = V, p(Fn, me);
38491
38491
  function Kr() {
38492
38492
  }
38493
38493
  Kr.prototype.nodeType = $, p(Kr, me);
@@ -38520,7 +38520,7 @@ function $U() {
38520
38520
  }
38521
38521
  return Pn(this, he, Y, Q, Dn), he.join("");
38522
38522
  }
38523
- function Un(Y, Q, he) {
38523
+ function Bn(Y, Q, he) {
38524
38524
  var we = Y.prefix || "", Je = Y.namespaceURI;
38525
38525
  if (!Je || we === "xml" && Je === t.XML || Je === t.XMLNS)
38526
38526
  return !1;
@@ -38578,13 +38578,13 @@ function $U() {
38578
38578
  }
38579
38579
  for (var ur = 0; ur < Dn; ur++) {
38580
38580
  var yn = It.item(ur);
38581
- if (Un(yn, he, Je)) {
38581
+ if (Bn(yn, he, Je)) {
38582
38582
  var Vi = yn.prefix || "", qs = yn.namespaceURI;
38583
38583
  nr(Q, Vi ? "xmlns:" + Vi : "xmlns", qs), Je.push({ prefix: Vi, namespace: qs });
38584
38584
  }
38585
38585
  Pn(yn, Q, he, we, Je);
38586
38586
  }
38587
- if (Nr === ns && Un(Y, he, Je)) {
38587
+ if (Nr === ns && Bn(Y, he, Je)) {
38588
38588
  var Vi = Y.prefix || "", qs = Y.namespaceURI;
38589
38589
  nr(Q, Vi ? "xmlns:" + Vi : "xmlns", qs), Je.push({ prefix: Vi, namespace: qs });
38590
38590
  }
@@ -38721,7 +38721,7 @@ function $U() {
38721
38721
  }
38722
38722
  } catch {
38723
38723
  }
38724
- 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;
38725
38725
  }
38726
38726
  var l_ = {}, SR = {}, t3;
38727
38727
  function yae() {
@@ -40945,8 +40945,8 @@ function _ae() {
40945
40945
  me && ge(Ge);
40946
40946
  var Pt = new G(), an = Ae[Ae.length - 1].currentNSMap, Zt = w(H, Ge, Pt, an, xe, oe), Rn = Pt.length;
40947
40947
  if (!Pt.closed && N(H, Zt, Pt.tagName, Fe) && (Pt.closed = !0, ee.nbsp || oe.warning("unclosed xml attribute")), me && Rn) {
40948
- for (var dn = S(me, {}), Fn = 0; Fn < Rn; Fn++) {
40949
- var zt = Pt[Fn];
40948
+ for (var dn = S(me, {}), Nn = 0; Nn < Rn; Nn++) {
40949
+ var zt = Pt[Nn];
40950
40950
  ge(zt.offset), zt.locator = S(me, {});
40951
40951
  }
40952
40952
  ie.locator = dn, O(Pt, ie, an) && Ae.push(Pt), ie.locator = me;
@@ -60548,7 +60548,7 @@ browserWorkerPolyFill(self);
60548
60548
  concatenateNalData: Pt,
60549
60549
  generateSampleTableForFrame: an,
60550
60550
  concatenateNalDataForFrame: Zt
60551
- }, 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) {
60552
60552
  for (var E = []; y--; )
60553
60553
  E.push(0);
60554
60554
  return E;
@@ -60569,39 +60569,39 @@ browserWorkerPolyFill(self);
60569
60569
  32e3: [dn, [255, 192], zt(268), [55, 234], zt(226), [112]],
60570
60570
  24e3: [dn, [255, 192], zt(268), [55, 255, 128], zt(268), [111, 112], zt(126), [224]],
60571
60571
  16e3: [dn, [255, 192], zt(268), [55, 255, 128], zt(268), [111, 255], zt(269), [223, 108], zt(195), [1, 192]],
60572
- 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]],
60573
- 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]],
60574
- 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]]
60575
60575
  };
60576
60576
  On = Jt(y);
60577
60577
  }
60578
60578
  return On;
60579
- }, mr = 9e4, Xr, gi, Bn, Kr, ts, Tr, ct;
60579
+ }, mr = 9e4, Xr, gi, Fn, Kr, ts, Tr, ct;
60580
60580
  Xr = function(y) {
60581
60581
  return y * mr;
60582
60582
  }, gi = function(y, E) {
60583
60583
  return y * E;
60584
- }, Bn = function(y) {
60584
+ }, Fn = function(y) {
60585
60585
  return y / mr;
60586
60586
  }, Kr = function(y, E) {
60587
60587
  return y / E;
60588
60588
  }, ts = function(y, E) {
60589
60589
  return Xr(Kr(y, E));
60590
60590
  }, Tr = function(y, E) {
60591
- return gi(Bn(y), E);
60591
+ return gi(Fn(y), E);
60592
60592
  }, ct = function(y, E, D) {
60593
- return Bn(D ? y : y - E);
60593
+ return Fn(D ? y : y - E);
60594
60594
  };
60595
60595
  var lt = {
60596
60596
  ONE_SECOND_IN_TS: mr,
60597
60597
  secondsToVideoTs: Xr,
60598
60598
  secondsToAudioTs: gi,
60599
- videoTsToSeconds: Bn,
60599
+ videoTsToSeconds: Fn,
60600
60600
  audioTsToSeconds: Kr,
60601
60601
  audioTsToVideoTs: ts,
60602
60602
  videoTsToAudioTs: Tr,
60603
60603
  metadataTsToSeconds: ct
60604
- }, Xt = Sn, hn = lt, Un = function(y) {
60604
+ }, Xt = Sn, hn = lt, Bn = function(y) {
60605
60605
  var E, D, k = 0;
60606
60606
  for (E = 0; E < y.length; E++)
60607
60607
  D = y[E], k += D.data.byteLength;
@@ -60631,7 +60631,7 @@ browserWorkerPolyFill(self);
60631
60631
  });
60632
60632
  return k;
60633
60633
  }, pn = function(y) {
60634
- var E, D, k = 0, L = new Uint8Array(Un(y));
60634
+ var E, D, k = 0, L = new Uint8Array(Bn(y));
60635
60635
  for (E = 0; E < y.length; E++)
60636
60636
  D = y[E], L.set(D.data, k), k += D.data.byteLength;
60637
60637
  return L;
@@ -63007,7 +63007,7 @@ browserWorkerPolyFill(self);
63007
63007
  }, ul = vi.discardEmulationPreventionBytes, _0 = nh.CaptionStream, cl = vc, Tc = as, b0 = eu, {
63008
63008
  getMdatTrafPairs: dm,
63009
63009
  parseSamples: Pd
63010
- } = ou, zn = function(y, E) {
63010
+ } = ou, Un = function(y, E) {
63011
63011
  for (var D = y, k = 0; k < E.length; k++) {
63012
63012
  var L = E[k];
63013
63013
  if (D < L.size)
@@ -63024,7 +63024,7 @@ browserWorkerPolyFill(self);
63024
63024
  if (ne = k.getUint32(J), J += 4, !(ne <= 0))
63025
63025
  switch (y[J] & 31) {
63026
63026
  case 6:
63027
- 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);
63028
63028
  if (U = {
63029
63029
  nalUnitType: "sei_rbsp",
63030
63030
  size: ne,
@@ -71245,7 +71245,7 @@ const tfe = Co("Settings", [
71245
71245
  return !0;
71246
71246
  return !1;
71247
71247
  };
71248
- return Ln(() => {
71248
+ return Hn(() => {
71249
71249
  if (_ && !i.current) {
71250
71250
  const R = xse(_) === "audio", S = document.createElement("video-js");
71251
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);
@@ -71349,7 +71349,7 @@ const tfe = Co("Settings", [
71349
71349
  c,
71350
71350
  o,
71351
71351
  m
71352
- ]), Ln(() => {
71352
+ ]), Hn(() => {
71353
71353
  var S;
71354
71354
  const R = i.current;
71355
71355
  if ((S = R == null ? void 0 : R.textTracks()) != null && S.length && x(R), R && (n == null ? void 0 : n.length) !== 0) {
@@ -71359,7 +71359,7 @@ const tfe = Co("Settings", [
71359
71359
  const O = R.controlBar.getChild("SubsCapsButton").items[0].el().lastElementChild;
71360
71360
  O && (O.innerHTML = tfe);
71361
71361
  }
71362
- }, [n]), Ln(() => {
71362
+ }, [n]), Hn(() => {
71363
71363
  const R = i.current;
71364
71364
  return () => {
71365
71365
  R && !R.isDisposed() && (R.dispose(), i.current = null);
@@ -74438,7 +74438,7 @@ function $pe() {
74438
74438
  if (n === null)
74439
74439
  return [!0, null];
74440
74440
  const { isPresent: e, onExitComplete: t, register: r } = n, i = UX();
74441
- Ln(() => r(i), []);
74441
+ Hn(() => r(i), []);
74442
74442
  const a = T_(() => t && t(i), [i, t]);
74443
74443
  return !e && t ? [!1, a] : [!0];
74444
74444
  }
@@ -75455,7 +75455,7 @@ const zme = {
75455
75455
  transformPagePoint: (n) => n,
75456
75456
  isStatic: !1,
75457
75457
  reducedMotion: "never"
75458
- }), 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 });
75459
75459
  function Vme(n, e, t, r, i) {
75460
75460
  var a, o;
75461
75461
  const { visualElement: c } = Ya(lC), f = Ya(NH), p = Ya(CO), m = Ya(LH).reducedMotion, _ = Ei(null);
@@ -75476,7 +75476,7 @@ function Vme(n, e, t, r, i) {
75476
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)));
75477
75477
  return jme(() => {
75478
75478
  x && (R.current = !0, window.MotionIsMounted = !0, x.updateFeatures(), wO.render(x.render), w.current && x.animationState && x.animationState.animateChanges());
75479
- }), Ln(() => {
75479
+ }), Hn(() => {
75480
75480
  x && (!w.current && x.animationState && x.animationState.animateChanges(), w.current && (queueMicrotask(() => {
75481
75481
  var O;
75482
75482
  (O = window.MotionHandoffMarkAsComplete) === null || O === void 0 || O.call(window, S);
@@ -76322,7 +76322,7 @@ const Ige = ({
76322
76322
  videoDuration: r,
76323
76323
  setVideoCurrentTime: i
76324
76324
  }) => {
76325
- 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) => {
76326
76326
  if (c.current) {
76327
76327
  const _ = c.current.getBoundingClientRect(), x = m.clientX - _.left - t / 2, T = _.width - t, R = x / T * 100;
76328
76328
  if (R >= 0 && R <= 100) {
@@ -76807,7 +76807,7 @@ const Wge = "data:image/svg+xml,%3csvg%20width='11'%20height='16'%20viewBox='0%2
76807
76807
  setTranscript: x,
76808
76808
  setTranscriptId: T
76809
76809
  }) => {
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] = 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);
76811
76811
  let Ae = () => {
76812
76812
  };
76813
76813
  const Fe = Ir(
@@ -76819,12 +76819,12 @@ const Wge = "data:image/svg+xml,%3csvg%20width='11'%20height='16'%20viewBox='0%2
76819
76819
  (p == null ? void 0 : p.map((Ue) => ({ ...Ue, headstart: t }))) || []
76820
76820
  ), T && T(n);
76821
76821
  };
76822
- Ln(() => {
76822
+ Hn(() => {
76823
76823
  Me <= 250 ? ie(!0) : ie(!1);
76824
- }, [Me, t, r]), Ln(() => {
76824
+ }, [Me, t, r]), Hn(() => {
76825
76825
  var Ue;
76826
76826
  O && O === n ? (j(!0), (Ue = G.current) == null || Ue.focus()) : j(!1);
76827
- }, [O]), Ln(() => (Ae = async () => {
76827
+ }, [O]), Hn(() => (Ae = async () => {
76828
76828
  var Ue;
76829
76829
  try {
76830
76830
  const Xe = await ($ == null ? void 0 : $({
@@ -77092,7 +77092,7 @@ const Wge = "data:image/svg+xml,%3csvg%20width='11'%20height='16'%20viewBox='0%2
77092
77092
  };
77093
77093
  let w = () => {
77094
77094
  };
77095
- return Ln(() => (w = async () => {
77095
+ return Hn(() => (w = async () => {
77096
77096
  var I, N, V, F, $, G;
77097
77097
  if (m)
77098
77098
  try {
@@ -77117,7 +77117,7 @@ const Wge = "data:image/svg+xml,%3csvg%20width='11'%20height='16'%20viewBox='0%2
77117
77117
  }, m && !m.redirect_url && w(), () => {
77118
77118
  w = () => {
77119
77119
  };
77120
- }), [m == null ? void 0 : m.process_status]), Ln(() => {
77120
+ }), [m == null ? void 0 : m.process_status]), Hn(() => {
77121
77121
  var I;
77122
77122
  (m == null ? void 0 : m.process_status) === "error" || (I = m == null ? void 0 : m.process_status) != null && I.includes("error") ? ad({
77123
77123
  title: m.process_status.split("_").join(" "),
@@ -78187,11 +78187,11 @@ const tve = ({
78187
78187
  timelineWidth: t,
78188
78188
  excessTimestampWidth: r
78189
78189
  }) => {
78190
- 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(() => {
78191
78191
  const m = e < 15 ? 3 : e < 30 ? 2 : e < 50 ? 1 : 0;
78192
78192
  return n[m];
78193
78193
  }, [e, n]);
78194
- return Ln(() => {
78194
+ return Hn(() => {
78195
78195
  if (!p) return;
78196
78196
  const m = new Image();
78197
78197
  return m.src = p, a(!0), c(!1), m.onload = () => {
@@ -79390,7 +79390,7 @@ const zve = yve, Hve = _ve, jve = mve, Vve = Sve, $ve = gve, U8 = pve, Wve = bve
79390
79390
  platform: a
79391
79391
  });
79392
79392
  };
79393
- var kT = typeof document < "u" ? Z8 : Ln;
79393
+ var kT = typeof document < "u" ? Z8 : Hn;
79394
79394
  function _x(n, e) {
79395
79395
  if (n === e)
79396
79396
  return !0;
@@ -79654,8 +79654,8 @@ var $O = "PopperContent", [s0e, a0e] = wj($O), kj = W.forwardRef(
79654
79654
  Jve({
79655
79655
  ...oe,
79656
79656
  apply: ({ elements: gt, rects: Pt, availableWidth: an, availableHeight: Zt }) => {
79657
- const { width: Rn, height: dn } = Pt.reference, Fn = gt.floating.style;
79658
- 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`);
79659
79659
  }
79660
79660
  }),
79661
79661
  V && t0e({ element: V, padding: c }),
@@ -80127,13 +80127,13 @@ const A0e = (n, e, t = 30) => {
80127
80127
  );
80128
80128
  }, k0e = ({ transcript: n, index: e }) => {
80129
80129
  var x;
80130
- 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(
80131
80131
  Ir(
80132
80132
  "00:00:000",
80133
80133
  n.timestamp_start,
80134
80134
  t
80135
80135
  )
80136
- ), [c, f] = Hn(
80136
+ ), [c, f] = zn(
80137
80137
  Ir("00:00:000", n.timestamp_end, t)
80138
80138
  ), p = Jn(
80139
80139
  () => Ir(
@@ -80142,8 +80142,8 @@ const A0e = (n, e, t = 30) => {
80142
80142
  t
80143
80143
  ),
80144
80144
  [n.timestamp_start, n.timestamp_end, t]
80145
- ), [m, _] = Hn(p - 35);
80146
- return Ln(() => {
80145
+ ), [m, _] = zn(p - 35);
80146
+ return Hn(() => {
80147
80147
  o(
80148
80148
  Ir(
80149
80149
  "00:00:000",
@@ -80431,7 +80431,7 @@ const A0e = (n, e, t = 30) => {
80431
80431
  break;
80432
80432
  }
80433
80433
  };
80434
- Ln(() => {
80434
+ Hn(() => {
80435
80435
  i && $(i);
80436
80436
  }, [i]);
80437
80437
  const xe = Jn(() => {
@@ -80453,13 +80453,13 @@ const A0e = (n, e, t = 30) => {
80453
80453
  an = 1;
80454
80454
  const Zt = [];
80455
80455
  for (let dn = 0; dn <= +Pt; dn += an) {
80456
- const { hours: Fn, minutes: zt, seconds: Jt } = fQ({
80456
+ const { hours: Nn, minutes: zt, seconds: Jt } = fQ({
80457
80457
  start: 0,
80458
80458
  end: dn * 1e3
80459
80459
  });
80460
80460
  Zt.push(
80461
80461
  [
80462
- jg(Fn || 0, 2),
80462
+ jg(Nn || 0, 2),
80463
80463
  jg(zt || 0, 2),
80464
80464
  jg(Jt || 0, 2)
80465
80465
  ].join(":")
@@ -80489,9 +80489,9 @@ const A0e = (n, e, t = 30) => {
80489
80489
  }, [oe, xe, F]), ae = (Ye) => {
80490
80490
  o.current && (o.current.scrollLeft = VL(Ye, F));
80491
80491
  };
80492
- Ln(() => {
80492
+ Hn(() => {
80493
80493
  ae(w);
80494
- }, [w, F, o.current]), Ln(() => {
80494
+ }, [w, F, o.current]), Hn(() => {
80495
80495
  if (f.current && w !== void 0) {
80496
80496
  const Ye = VL(w, F);
80497
80497
  Ye < 0 ? f.current.style.left = "0px" : f.current.style.left = `${Ye}px`;
@@ -80532,13 +80532,13 @@ const A0e = (n, e, t = 30) => {
80532
80532
  "00:00:00",
80533
80533
  kp(S),
80534
80534
  F
80535
- ), [Ae, Fe] = Hn(!0);
80536
- Ln(() => {
80535
+ ), [Ae, Fe] = zn(!0);
80536
+ Hn(() => {
80537
80537
  Fe(!0);
80538
80538
  let Ye = null;
80539
80539
  return setTimeout(async () => {
80540
80540
  if (!m || !c.current) {
80541
- console.log("no waveform or audio source"), Fe(!1);
80541
+ Fe(!1);
80542
80542
  return;
80543
80543
  }
80544
80544
  c.current instanceof Hv && c.current.destroy(), Ye = Hv.create({
@@ -80573,11 +80573,7 @@ const A0e = (n, e, t = 30) => {
80573
80573
  Ye < 0 && (Ie = 0), Ye > ye && (Ie = ye);
80574
80574
  const gt = Ie < 1 ? 0 : Ie;
80575
80575
  O(gt), R.currentTime(gt);
80576
- };
80577
- Ln(() => {
80578
- console.log("waveform current changed");
80579
- }, [c.current]);
80580
- const st = Jn(
80576
+ }, st = Jn(
80581
80577
  () => /* @__PURE__ */ Z(
80582
80578
  Mge,
80583
80579
  {
@@ -80818,7 +80814,7 @@ const H0e = ({ className: n }) => /* @__PURE__ */ yt(
80818
80814
  reloadTriggerMain: o,
80819
80815
  userToken: c = ""
80820
80816
  }) => {
80821
- 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) => {
80822
80818
  try {
80823
80819
  if (I(""), !ae.includes("merged")) {
80824
80820
  const re = await m({
@@ -80874,7 +80870,7 @@ const H0e = ({ className: n }) => /* @__PURE__ */ yt(
80874
80870
  }
80875
80871
  }
80876
80872
  };
80877
- return Ln(() => {
80873
+ return Hn(() => {
80878
80874
  n && ee && ge();
80879
80875
  }, [o]), /* @__PURE__ */ yt("div", { className: "w-full", children: [
80880
80876
  N0e(e) ? /* @__PURE__ */ Z("div", { className: ht("w-full flex-row items-center gap-[5px] pb-2"), children: /* @__PURE__ */ yt(
@@ -81003,8 +80999,8 @@ const H0e = ({ className: n }) => /* @__PURE__ */ yt(
81003
80999
  userToken: t,
81004
81000
  className: r
81005
81001
  }) => {
81006
- 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();
81007
- 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(() => {
81008
81004
  const O = async () => {
81009
81005
  try {
81010
81006
  c(!0);
@@ -81244,7 +81240,7 @@ const Zj = /* @__PURE__ */ Zu(W0e), q0e = ({ cpl: n, cps: e, cpm: t }) => /* @__
81244
81240
  currentTime: t,
81245
81241
  handleOnTimeChange: r
81246
81242
  }) => {
81247
- const i = Ei(null), [a, o] = Hn(!1), [c, f] = Hn({
81243
+ const i = Ei(null), [a, o] = zn(!1), [c, f] = zn({
81248
81244
  ...e,
81249
81245
  cpl: 0
81250
81246
  }), p = Jn(() => `${new Date(
@@ -81384,7 +81380,7 @@ const Zj = /* @__PURE__ */ Zu(W0e), q0e = ({ cpl: n, cps: e, cpm: t }) => /* @__
81384
81380
  isSaving: r,
81385
81381
  selectedHighlightOption: i
81386
81382
  }) => {
81387
- const a = Nt(t), o = Nt(e), [c, f] = Hn({
81383
+ const a = Nt(t), o = Nt(e), [c, f] = zn({
81388
81384
  width: 10,
81389
81385
  left: 0,
81390
81386
  top: 0,
@@ -81463,7 +81459,7 @@ const Zj = /* @__PURE__ */ Zu(W0e), q0e = ({ cpl: n, cps: e, cpm: t }) => /* @__
81463
81459
  r,
81464
81460
  i
81465
81461
  ]);
81466
- return Ln(() => {
81462
+ return Hn(() => {
81467
81463
  var O, I;
81468
81464
  const S = n == null ? void 0 : n.findIndex(
81469
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)
@@ -81487,15 +81483,13 @@ const Zj = /* @__PURE__ */ Zu(W0e), q0e = ({ cpl: n, cps: e, cpm: t }) => /* @__
81487
81483
  )
81488
81484
  ] });
81489
81485
  }, Y0e = ({ data: n, active: e }) => {
81490
- const t = Ei(null);
81491
- console.log(n);
81492
- const {
81486
+ const t = Ei(null), {
81493
81487
  timestamp_end: r,
81494
81488
  timestamp_text: i,
81495
81489
  timestamp_start: a,
81496
81490
  // segment_idx,
81497
81491
  segments: o
81498
- } = 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 = ({
81499
81493
  time: X,
81500
81494
  wordSegments: H,
81501
81495
  isPrev: j
@@ -81589,7 +81583,7 @@ const Zj = /* @__PURE__ */ Zu(W0e), q0e = ({ cpl: n, cps: e, cpm: t }) => /* @__
81589
81583
  selectedHighlightOption: _
81590
81584
  }
81591
81585
  ) : /* @__PURE__ */ Z("div", { className: "w-full flex flex-row flex-wrap", children: V });
81592
- return Ln(() => {
81586
+ return Hn(() => {
81593
81587
  if (x) {
81594
81588
  const X = document.querySelector(
81595
81589
  "#editable-transcript"
@@ -81602,7 +81596,7 @@ const Zj = /* @__PURE__ */ Zu(W0e), q0e = ({ cpl: n, cps: e, cpm: t }) => /* @__
81602
81596
  j == null || j.removeAllRanges(), j == null || j.addRange(H);
81603
81597
  }
81604
81598
  }
81605
- }, [x]), Ln(() => {
81599
+ }, [x]), Hn(() => {
81606
81600
  w && p.current && p.current.blur();
81607
81601
  }, [w]), /* @__PURE__ */ Z(
81608
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.79",
3
+ "version": "0.0.80",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/main.d.ts",