@salina-app/media-editor 0.2.3 → 0.2.4

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.
Files changed (2) hide show
  1. package/dist/index.js +509 -503
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1684,11 +1684,14 @@ const Up = Ts()((t) => ({
1684
1684
  (X) => X.setFocusTrimmedClip
1685
1685
  ), I = ES((X) => X.setTranscriptId), $ = ES((X) => X.setTranscript), B = Bi(() => {
1686
1686
  const X = [];
1687
- return _ != null && _.length && (_ == null ? void 0 : _.map((q) => ({
1688
- id: q.id,
1689
- timestamp_start: q.sources[0].timestamp_start,
1690
- timestamp_end: q.sources[0].timestamp_end
1691
- }))).forEach((q) => {
1687
+ return _ != null && _.length && (_ == null ? void 0 : _.map((q) => {
1688
+ var ne, ie, re, ce;
1689
+ return {
1690
+ id: q.id,
1691
+ timestamp_start: ((ie = (ne = q.sources) == null ? void 0 : ne[0]) == null ? void 0 : ie.timestamp_start) || q.timestamp_one || "",
1692
+ timestamp_end: ((ce = (re = q.sources) == null ? void 0 : re[0]) == null ? void 0 : ce.timestamp_end) || q.timestamp_two || ""
1693
+ };
1694
+ })).forEach((q) => {
1692
1695
  if (pt(q.timestamp_start) <= b && pt(q.timestamp_end) >= b)
1693
1696
  X.push(q.id);
1694
1697
  else {
@@ -1741,15 +1744,15 @@ const Up = Ts()((t) => ({
1741
1744
  if (X.code === "ArrowLeft" && m && !n) {
1742
1745
  const ne = b;
1743
1746
  if (ne <= 0) return;
1744
- const se = ne - 2;
1747
+ const ie = ne - 2;
1745
1748
  if (!(A != null && A.currentTime)) return;
1746
- A.currentTime(se), x(se);
1749
+ A.currentTime(ie), x(ie);
1747
1750
  }
1748
1751
  if (X.code === "ArrowRight" && m && !n) {
1749
- const ne = b, se = S;
1750
- if (se - ne < 2) {
1752
+ const ne = b, ie = S;
1753
+ if (ie - ne < 2) {
1751
1754
  if (!(A != null && A.currentTime)) return;
1752
- A.currentTime(se), x(se);
1755
+ A.currentTime(ie), x(ie);
1753
1756
  return;
1754
1757
  }
1755
1758
  const re = ne + 2;
@@ -1762,9 +1765,9 @@ const Up = Ts()((t) => ({
1762
1765
  processed: !1,
1763
1766
  initialCut: 0
1764
1767
  }), X.code === "Tab" && m && _.length > 0 && !a) {
1765
- X.preventDefault(), l >= _.length - 1 ? c(0) : c((se) => se + 1), M(_[l]._id), $(
1766
- ((q = _[l].transcription) == null ? void 0 : q.map((se) => ({
1767
- ...se,
1768
+ X.preventDefault(), l >= _.length - 1 ? c(0) : c((ie) => ie + 1), M(_[l]._id), $(
1769
+ ((q = _[l].transcription) == null ? void 0 : q.map((ie) => ({
1770
+ ...ie,
1768
1771
  headstart: _[l].timestamp_one
1769
1772
  }))) || []
1770
1773
  ), I(_[l]._id);
@@ -3710,10 +3713,10 @@ function ree() {
3710
3713
  for (var P = this._hash.words, M = P[0], I = P[1], $ = P[2], B = P[3], W = P[4], G = P[5], X = P[6], j = P[7], q = 0; 64 > q; q++) {
3711
3714
  if (16 > q) S[q] = _[E + q] | 0;
3712
3715
  else {
3713
- var ne = S[q - 15], se = S[q - 2];
3714
- S[q] = ((ne << 25 | ne >>> 7) ^ (ne << 14 | ne >>> 18) ^ ne >>> 3) + S[q - 7] + ((se << 15 | se >>> 17) ^ (se << 13 | se >>> 19) ^ se >>> 10) + S[q - 16];
3716
+ var ne = S[q - 15], ie = S[q - 2];
3717
+ S[q] = ((ne << 25 | ne >>> 7) ^ (ne << 14 | ne >>> 18) ^ ne >>> 3) + S[q - 7] + ((ie << 15 | ie >>> 17) ^ (ie << 13 | ie >>> 19) ^ ie >>> 10) + S[q - 16];
3715
3718
  }
3716
- ne = j + ((W << 26 | W >>> 6) ^ (W << 21 | W >>> 11) ^ (W << 7 | W >>> 25)) + (W & G ^ ~W & X) + l[q] + S[q], se = ((M << 30 | M >>> 2) ^ (M << 19 | M >>> 13) ^ (M << 10 | M >>> 22)) + (M & I ^ M & $ ^ I & $), j = X, X = G, G = W, W = B + ne | 0, B = $, $ = I, I = M, M = ne + se | 0;
3719
+ ne = j + ((W << 26 | W >>> 6) ^ (W << 21 | W >>> 11) ^ (W << 7 | W >>> 25)) + (W & G ^ ~W & X) + l[q] + S[q], ie = ((M << 30 | M >>> 2) ^ (M << 19 | M >>> 13) ^ (M << 10 | M >>> 22)) + (M & I ^ M & $ ^ I & $), j = X, X = G, G = W, W = B + ne | 0, B = $, $ = I, I = M, M = ne + ie | 0;
3717
3720
  }
3718
3721
  P[0] = P[0] + M | 0, P[1] = P[1] + I | 0, P[2] = P[2] + $ | 0, P[3] = P[3] + B | 0, P[4] = P[4] + W | 0, P[5] = P[5] + G | 0, P[6] = P[6] + X | 0, P[7] = P[7] + j | 0;
3719
3722
  }, _doFinalize: function() {
@@ -3779,10 +3782,10 @@ function ree() {
3779
3782
  for (var P = this._hash.words, M = P[0], I = P[1], $ = P[2], B = P[3], W = P[4], G = P[5], X = P[6], j = P[7], q = 0; 64 > q; q++) {
3780
3783
  if (16 > q) S[q] = _[E + q] | 0;
3781
3784
  else {
3782
- var ne = S[q - 15], se = S[q - 2];
3783
- S[q] = ((ne << 25 | ne >>> 7) ^ (ne << 14 | ne >>> 18) ^ ne >>> 3) + S[q - 7] + ((se << 15 | se >>> 17) ^ (se << 13 | se >>> 19) ^ se >>> 10) + S[q - 16];
3785
+ var ne = S[q - 15], ie = S[q - 2];
3786
+ S[q] = ((ne << 25 | ne >>> 7) ^ (ne << 14 | ne >>> 18) ^ ne >>> 3) + S[q - 7] + ((ie << 15 | ie >>> 17) ^ (ie << 13 | ie >>> 19) ^ ie >>> 10) + S[q - 16];
3784
3787
  }
3785
- ne = j + ((W << 26 | W >>> 6) ^ (W << 21 | W >>> 11) ^ (W << 7 | W >>> 25)) + (W & G ^ ~W & X) + l[q] + S[q], se = ((M << 30 | M >>> 2) ^ (M << 19 | M >>> 13) ^ (M << 10 | M >>> 22)) + (M & I ^ M & $ ^ I & $), j = X, X = G, G = W, W = B + ne | 0, B = $, $ = I, I = M, M = ne + se | 0;
3788
+ ne = j + ((W << 26 | W >>> 6) ^ (W << 21 | W >>> 11) ^ (W << 7 | W >>> 25)) + (W & G ^ ~W & X) + l[q] + S[q], ie = ((M << 30 | M >>> 2) ^ (M << 19 | M >>> 13) ^ (M << 10 | M >>> 22)) + (M & I ^ M & $ ^ I & $), j = X, X = G, G = W, W = B + ne | 0, B = $, $ = I, I = M, M = ne + ie | 0;
3786
3789
  }
3787
3790
  P[0] = P[0] + M | 0, P[1] = P[1] + I | 0, P[2] = P[2] + $ | 0, P[3] = P[3] + B | 0, P[4] = P[4] + W | 0, P[5] = P[5] + G | 0, P[6] = P[6] + X | 0, P[7] = P[7] + j | 0;
3788
3791
  }, _doFinalize: function() {
@@ -3919,13 +3922,16 @@ const Ol = /* @__PURE__ */ ud(see), Ml = "secret", { GET: k3 } = zR(!1), qR = ()
3919
3922
  }, refreshTrimmedClips: async (l, c) => {
3920
3923
  e(l).then((h) => {
3921
3924
  n(
3922
- h.data.map((p) => ({
3923
- ...p,
3924
- id: p._id,
3925
- segment: p.segment_type != null ? p.segment_type : "News",
3926
- timestamp_one: p.sources[0].timestamp_start,
3927
- timestamp_two: p.sources[0].timestamp_end
3928
- }))
3925
+ h.data.map((p) => {
3926
+ var m, b, x, S;
3927
+ return {
3928
+ ...p,
3929
+ id: p._id,
3930
+ segment: p.segment_type != null ? p.segment_type : "News",
3931
+ timestamp_one: ((b = (m = p.sources) == null ? void 0 : m[0]) == null ? void 0 : b.timestamp_start) || p.timestamp_one || "",
3932
+ timestamp_two: ((S = (x = p.sources) == null ? void 0 : x[0]) == null ? void 0 : S.timestamp_end) || p.timestamp_two || ""
3933
+ };
3934
+ })
3929
3935
  ), c == null || c();
3930
3936
  });
3931
3937
  } };
@@ -4138,12 +4144,12 @@ var dee = ["color"], G6 = /* @__PURE__ */ Bl(function(t, e) {
4138
4144
  var F3;
4139
4145
  function fee() {
4140
4146
  return F3 || (F3 = 1, function(t) {
4141
- function e(Z, ie) {
4147
+ function e(Z, se) {
4142
4148
  var ee = Z.length;
4143
- Z.push(ie);
4149
+ Z.push(se);
4144
4150
  e: for (; 0 < ee; ) {
4145
4151
  var ue = ee - 1 >>> 1, Te = Z[ue];
4146
- if (0 < i(Te, ie)) Z[ue] = ie, Z[ee] = Te, ee = ue;
4152
+ if (0 < i(Te, se)) Z[ue] = se, Z[ee] = Te, ee = ue;
4147
4153
  else break e;
4148
4154
  }
4149
4155
  }
@@ -4152,8 +4158,8 @@ function fee() {
4152
4158
  }
4153
4159
  function r(Z) {
4154
4160
  if (Z.length === 0) return null;
4155
- var ie = Z[0], ee = Z.pop();
4156
- if (ee !== ie) {
4161
+ var se = Z[0], ee = Z.pop();
4162
+ if (ee !== se) {
4157
4163
  Z[0] = ee;
4158
4164
  e: for (var ue = 0, Te = Z.length, Ce = Te >>> 1; ue < Ce; ) {
4159
4165
  var Pe = 2 * (ue + 1) - 1, He = Z[Pe], Ze = Pe + 1, Ne = Z[Ze];
@@ -4162,11 +4168,11 @@ function fee() {
4162
4168
  else break e;
4163
4169
  }
4164
4170
  }
4165
- return ie;
4171
+ return se;
4166
4172
  }
4167
- function i(Z, ie) {
4168
- var ee = Z.sortIndex - ie.sortIndex;
4169
- return ee !== 0 ? ee : Z.id - ie.id;
4173
+ function i(Z, se) {
4174
+ var ee = Z.sortIndex - se.sortIndex;
4175
+ return ee !== 0 ? ee : Z.id - se.id;
4170
4176
  }
4171
4177
  if (typeof performance == "object" && typeof performance.now == "function") {
4172
4178
  var a = performance;
@@ -4182,37 +4188,37 @@ function fee() {
4182
4188
  var h = [], p = [], m = 1, b = null, x = 3, S = !1, A = !1, _ = !1, E = typeof setTimeout == "function" ? setTimeout : null, P = typeof clearTimeout == "function" ? clearTimeout : null, M = typeof setImmediate < "u" ? setImmediate : null;
4183
4189
  typeof navigator < "u" && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 && navigator.scheduling.isInputPending.bind(navigator.scheduling);
4184
4190
  function I(Z) {
4185
- for (var ie = n(p); ie !== null; ) {
4186
- if (ie.callback === null) r(p);
4187
- else if (ie.startTime <= Z) r(p), ie.sortIndex = ie.expirationTime, e(h, ie);
4191
+ for (var se = n(p); se !== null; ) {
4192
+ if (se.callback === null) r(p);
4193
+ else if (se.startTime <= Z) r(p), se.sortIndex = se.expirationTime, e(h, se);
4188
4194
  else break;
4189
- ie = n(p);
4195
+ se = n(p);
4190
4196
  }
4191
4197
  }
4192
4198
  function $(Z) {
4193
4199
  if (_ = !1, I(Z), !A) if (n(h) !== null) A = !0, ve(B);
4194
4200
  else {
4195
- var ie = n(p);
4196
- ie !== null && ge($, ie.startTime - Z);
4201
+ var se = n(p);
4202
+ se !== null && ge($, se.startTime - Z);
4197
4203
  }
4198
4204
  }
4199
- function B(Z, ie) {
4205
+ function B(Z, se) {
4200
4206
  A = !1, _ && (_ = !1, P(X), X = -1), S = !0;
4201
4207
  var ee = x;
4202
4208
  try {
4203
- for (I(ie), b = n(h); b !== null && (!(b.expirationTime > ie) || Z && !ne()); ) {
4209
+ for (I(se), b = n(h); b !== null && (!(b.expirationTime > se) || Z && !ne()); ) {
4204
4210
  var ue = b.callback;
4205
4211
  if (typeof ue == "function") {
4206
4212
  b.callback = null, x = b.priorityLevel;
4207
- var Te = ue(b.expirationTime <= ie);
4208
- ie = t.unstable_now(), typeof Te == "function" ? b.callback = Te : b === n(h) && r(h), I(ie);
4213
+ var Te = ue(b.expirationTime <= se);
4214
+ se = t.unstable_now(), typeof Te == "function" ? b.callback = Te : b === n(h) && r(h), I(se);
4209
4215
  } else r(h);
4210
4216
  b = n(h);
4211
4217
  }
4212
4218
  if (b !== null) var Ce = !0;
4213
4219
  else {
4214
4220
  var Pe = n(p);
4215
- Pe !== null && ge($, Pe.startTime - ie), Ce = !1;
4221
+ Pe !== null && ge($, Pe.startTime - se), Ce = !1;
4216
4222
  }
4217
4223
  return Ce;
4218
4224
  } finally {
@@ -4223,37 +4229,37 @@ function fee() {
4223
4229
  function ne() {
4224
4230
  return !(t.unstable_now() - q < j);
4225
4231
  }
4226
- function se() {
4232
+ function ie() {
4227
4233
  if (G !== null) {
4228
4234
  var Z = t.unstable_now();
4229
4235
  q = Z;
4230
- var ie = !0;
4236
+ var se = !0;
4231
4237
  try {
4232
- ie = G(!0, Z);
4238
+ se = G(!0, Z);
4233
4239
  } finally {
4234
- ie ? re() : (W = !1, G = null);
4240
+ se ? re() : (W = !1, G = null);
4235
4241
  }
4236
4242
  } else W = !1;
4237
4243
  }
4238
4244
  var re;
4239
4245
  if (typeof M == "function") re = function() {
4240
- M(se);
4246
+ M(ie);
4241
4247
  };
4242
4248
  else if (typeof MessageChannel < "u") {
4243
4249
  var ce = new MessageChannel(), ye = ce.port2;
4244
- ce.port1.onmessage = se, re = function() {
4250
+ ce.port1.onmessage = ie, re = function() {
4245
4251
  ye.postMessage(null);
4246
4252
  };
4247
4253
  } else re = function() {
4248
- E(se, 0);
4254
+ E(ie, 0);
4249
4255
  };
4250
4256
  function ve(Z) {
4251
4257
  G = Z, W || (W = !0, re());
4252
4258
  }
4253
- function ge(Z, ie) {
4259
+ function ge(Z, se) {
4254
4260
  X = E(function() {
4255
4261
  Z(t.unstable_now());
4256
- }, ie);
4262
+ }, se);
4257
4263
  }
4258
4264
  t.unstable_IdlePriority = 5, t.unstable_ImmediatePriority = 1, t.unstable_LowPriority = 4, t.unstable_NormalPriority = 3, t.unstable_Profiling = null, t.unstable_UserBlockingPriority = 2, t.unstable_cancelCallback = function(Z) {
4259
4265
  Z.callback = null;
@@ -4270,13 +4276,13 @@ function fee() {
4270
4276
  case 1:
4271
4277
  case 2:
4272
4278
  case 3:
4273
- var ie = 3;
4279
+ var se = 3;
4274
4280
  break;
4275
4281
  default:
4276
- ie = x;
4282
+ se = x;
4277
4283
  }
4278
4284
  var ee = x;
4279
- x = ie;
4285
+ x = se;
4280
4286
  try {
4281
4287
  return Z();
4282
4288
  } finally {
@@ -4284,7 +4290,7 @@ function fee() {
4284
4290
  }
4285
4291
  }, t.unstable_pauseExecution = function() {
4286
4292
  }, t.unstable_requestPaint = function() {
4287
- }, t.unstable_runWithPriority = function(Z, ie) {
4293
+ }, t.unstable_runWithPriority = function(Z, se) {
4288
4294
  switch (Z) {
4289
4295
  case 1:
4290
4296
  case 2:
@@ -4298,11 +4304,11 @@ function fee() {
4298
4304
  var ee = x;
4299
4305
  x = Z;
4300
4306
  try {
4301
- return ie();
4307
+ return se();
4302
4308
  } finally {
4303
4309
  x = ee;
4304
4310
  }
4305
- }, t.unstable_scheduleCallback = function(Z, ie, ee) {
4311
+ }, t.unstable_scheduleCallback = function(Z, se, ee) {
4306
4312
  var ue = t.unstable_now();
4307
4313
  switch (typeof ee == "object" && ee !== null ? (ee = ee.delay, ee = typeof ee == "number" && 0 < ee ? ue + ee : ue) : ee = ue, Z) {
4308
4314
  case 1:
@@ -4320,12 +4326,12 @@ function fee() {
4320
4326
  default:
4321
4327
  Te = 5e3;
4322
4328
  }
4323
- return Te = ee + Te, Z = { id: m++, callback: ie, priorityLevel: Z, startTime: ee, expirationTime: Te, sortIndex: -1 }, ee > ue ? (Z.sortIndex = ee, e(p, Z), n(h) === null && Z === n(p) && (_ ? (P(X), X = -1) : _ = !0, ge($, ee - ue))) : (Z.sortIndex = Te, e(h, Z), A || S || (A = !0, ve(B))), Z;
4329
+ return Te = ee + Te, Z = { id: m++, callback: se, priorityLevel: Z, startTime: ee, expirationTime: Te, sortIndex: -1 }, ee > ue ? (Z.sortIndex = ee, e(p, Z), n(h) === null && Z === n(p) && (_ ? (P(X), X = -1) : _ = !0, ge($, ee - ue))) : (Z.sortIndex = Te, e(h, Z), A || S || (A = !0, ve(B))), Z;
4324
4330
  }, t.unstable_shouldYield = ne, t.unstable_wrapCallback = function(Z) {
4325
- var ie = x;
4331
+ var se = x;
4326
4332
  return function() {
4327
4333
  var ee = x;
4328
- x = ie;
4334
+ x = se;
4329
4335
  try {
4330
4336
  return Z.apply(this, arguments);
4331
4337
  } finally {
@@ -4403,7 +4409,7 @@ function hee() {
4403
4409
  return M.now() - I;
4404
4410
  };
4405
4411
  }
4406
- var $ = 1073741823, B = -1, W = 250, G = 5e3, X = 1e4, j = $, q = [], ne = [], se = 1, re = null, ce = x, ye = !1, ve = !1, ge = !1, Z = typeof setTimeout == "function" ? setTimeout : null, ie = typeof clearTimeout == "function" ? clearTimeout : null, ee = typeof setImmediate < "u" ? setImmediate : null;
4412
+ var $ = 1073741823, B = -1, W = 250, G = 5e3, X = 1e4, j = $, q = [], ne = [], ie = 1, re = null, ce = x, ye = !1, ve = !1, ge = !1, Z = typeof setTimeout == "function" ? setTimeout : null, se = typeof clearTimeout == "function" ? clearTimeout : null, ee = typeof setImmediate < "u" ? setImmediate : null;
4407
4413
  typeof navigator < "u" && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 && navigator.scheduling.isInputPending.bind(navigator.scheduling);
4408
4414
  function ue(et) {
4409
4415
  for (var tt = a(ne); tt !== null; ) {
@@ -4530,7 +4536,7 @@ function hee() {
4530
4536
  break;
4531
4537
  }
4532
4538
  var rr = mn + kn, fn = {
4533
- id: se++,
4539
+ id: ie++,
4534
4540
  callback: tt,
4535
4541
  priorityLevel: et,
4536
4542
  startTime: mn,
@@ -4602,7 +4608,7 @@ function hee() {
4602
4608
  }, tt);
4603
4609
  }
4604
4610
  function an() {
4605
- ie(Ht), Ht = -1;
4611
+ se(Ht), Ht = -1;
4606
4612
  }
4607
4613
  var er = Ut, Nn = null;
4608
4614
  t.unstable_IdlePriority = A, t.unstable_ImmediatePriority = m, t.unstable_LowPriority = S, t.unstable_NormalPriority = x, t.unstable_Profiling = Nn, t.unstable_UserBlockingPriority = b, t.unstable_cancelCallback = Ve, t.unstable_continueExecution = Ye, t.unstable_forceFrameRate = Jt, t.unstable_getCurrentPriorityLevel = _t, t.unstable_getFirstCallbackNode = at, t.unstable_next = Ze, t.unstable_pauseExecution = We, t.unstable_requestPaint = er, t.unstable_runWithPriority = He, t.unstable_scheduleCallback = Fe, t.unstable_shouldYield = An, t.unstable_wrapCallback = Ne, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
@@ -4718,8 +4724,8 @@ function pee() {
4718
4724
  var O = E.hasOwnProperty(d) ? E[d] : null;
4719
4725
  (O !== null ? O.type !== 0 : w || !(2 < d.length) || d[0] !== "o" && d[0] !== "O" || d[1] !== "n" && d[1] !== "N") && (A(d, v, O, w) && (v = null), w || O === null ? x(d) && (v === null ? u.removeAttribute(d) : u.setAttribute(d, "" + v)) : O.mustUseProperty ? u[O.propertyName] = v === null ? O.type === 3 ? !1 : "" : v : (d = O.attributeName, w = O.attributeNamespace, v === null ? u.removeAttribute(d) : (O = O.type, v = O === 3 || O === 4 && v === !0 ? "" : "" + v, w ? u.setAttributeNS(w, d, v) : u.setAttribute(d, v))));
4720
4726
  }
4721
- var $ = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, B = Symbol.for("react.element"), W = Symbol.for("react.portal"), G = Symbol.for("react.fragment"), X = Symbol.for("react.strict_mode"), j = Symbol.for("react.profiler"), q = Symbol.for("react.provider"), ne = Symbol.for("react.context"), se = Symbol.for("react.forward_ref"), re = Symbol.for("react.suspense"), ce = Symbol.for("react.suspense_list"), ye = Symbol.for("react.memo"), ve = Symbol.for("react.lazy"), ge = Symbol.for("react.offscreen"), Z = Symbol.iterator;
4722
- function ie(u) {
4727
+ var $ = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, B = Symbol.for("react.element"), W = Symbol.for("react.portal"), G = Symbol.for("react.fragment"), X = Symbol.for("react.strict_mode"), j = Symbol.for("react.profiler"), q = Symbol.for("react.provider"), ne = Symbol.for("react.context"), ie = Symbol.for("react.forward_ref"), re = Symbol.for("react.suspense"), ce = Symbol.for("react.suspense_list"), ye = Symbol.for("react.memo"), ve = Symbol.for("react.lazy"), ge = Symbol.for("react.offscreen"), Z = Symbol.iterator;
4728
+ function se(u) {
4723
4729
  return u === null || typeof u != "object" ? null : (u = Z && u[Z] || u["@@iterator"], typeof u == "function" ? u : null);
4724
4730
  }
4725
4731
  var ee = Object.assign, ue;
@@ -4834,7 +4840,7 @@ function pee() {
4834
4840
  return (u.displayName || "Context") + ".Consumer";
4835
4841
  case q:
4836
4842
  return (u._context.displayName || "Context") + ".Provider";
4837
- case se:
4843
+ case ie:
4838
4844
  var d = u.render;
4839
4845
  return u = u.displayName, u || (u = d.displayName || d.name || "", u = u !== "" ? "ForwardRef(" + u + ")" : "ForwardRef"), u;
4840
4846
  case ye:
@@ -6675,7 +6681,7 @@ function pee() {
6675
6681
  var lt = xe._init;
6676
6682
  return rt(Ee, lt(xe._payload), Oe);
6677
6683
  }
6678
- if (Ut(xe) || ie(xe)) return xe = Bc(xe, Ee.mode, Oe, null), xe.return = Ee, xe;
6684
+ if (Ut(xe) || se(xe)) return xe = Bc(xe, Ee.mode, Oe, null), xe.return = Ee, xe;
6679
6685
  Po(Ee, xe);
6680
6686
  }
6681
6687
  return null;
@@ -6697,7 +6703,7 @@ function pee() {
6697
6703
  lt
6698
6704
  );
6699
6705
  }
6700
- if (Ut(Oe) || ie(Oe)) return At !== null ? null : Je(Ee, xe, Oe, lt, null);
6706
+ if (Ut(Oe) || se(Oe)) return At !== null ? null : Je(Ee, xe, Oe, lt, null);
6701
6707
  Po(Ee, Oe);
6702
6708
  }
6703
6709
  return null;
@@ -6714,7 +6720,7 @@ function pee() {
6714
6720
  var Ft = lt._init;
6715
6721
  return gt(Ee, xe, Oe, Ft(lt._payload), At);
6716
6722
  }
6717
- if (Ut(lt) || ie(lt)) return Ee = Ee.get(Oe) || null, Je(xe, Ee, lt, At, null);
6723
+ if (Ut(lt) || se(lt)) return Ee = Ee.get(Oe) || null, Je(xe, Ee, lt, At, null);
6718
6724
  Po(xe, lt);
6719
6725
  }
6720
6726
  return null;
@@ -6740,7 +6746,7 @@ function pee() {
6740
6746
  }), cr && na(Ee, kt), At;
6741
6747
  }
6742
6748
  function Ct(Ee, xe, Oe, lt) {
6743
- var At = ie(Oe);
6749
+ var At = se(Oe);
6744
6750
  if (typeof At != "function") throw Error(n(150));
6745
6751
  if (Oe = At.call(Oe), Oe == null) throw Error(n(151));
6746
6752
  for (var Ft = At = null, Bt = xe, kt = xe = 0, Ir = null, Fn = Oe.next(); Bt !== null && !Fn.done; kt++, Fn = Oe.next()) {
@@ -6809,7 +6815,7 @@ function pee() {
6809
6815
  return Ft = Oe._init, Wr(Ee, xe, Ft(Oe._payload), lt);
6810
6816
  }
6811
6817
  if (Ut(Oe)) return St(Ee, xe, Oe, lt);
6812
- if (ie(Oe)) return Ct(Ee, xe, Oe, lt);
6818
+ if (se(Oe)) return Ct(Ee, xe, Oe, lt);
6813
6819
  Po(Ee, Oe);
6814
6820
  }
6815
6821
  return typeof Oe == "string" && Oe !== "" || typeof Oe == "number" ? (Oe = "" + Oe, xe !== null && xe.tag === 6 ? (v(Ee, xe.sibling), xe = O(xe, Oe), xe.return = Ee, Ee = xe) : (v(Ee, xe), xe = ig(Oe, Ee.mode, lt), xe.return = Ee, Ee = xe), Q(Ee)) : v(Ee, xe);
@@ -9455,7 +9461,7 @@ Error generating stack: ` + U.message + `
9455
9461
  function L2(u) {
9456
9462
  if (typeof u == "function") return j0(u) ? 1 : 0;
9457
9463
  if (u != null) {
9458
- if (u = u.$$typeof, u === se) return 11;
9464
+ if (u = u.$$typeof, u === ie) return 11;
9459
9465
  if (u === ye) return 14;
9460
9466
  }
9461
9467
  return 2;
@@ -9490,7 +9496,7 @@ Error generating stack: ` + U.message + `
9490
9496
  case ne:
9491
9497
  Q = 9;
9492
9498
  break e;
9493
- case se:
9499
+ case ie:
9494
9500
  Q = 11;
9495
9501
  break e;
9496
9502
  case ye:
@@ -9820,7 +9826,7 @@ function mee() {
9820
9826
  R.unshift("Warning: " + o), Function.prototype.apply.call(console[s], console, R);
9821
9827
  }
9822
9828
  }
9823
- var h = 0, p = 1, m = 2, b = 3, x = 4, S = 5, A = 6, _ = 7, E = 8, P = 9, M = 10, I = 11, $ = 12, B = 13, W = 14, G = 15, X = 16, j = 17, q = 18, ne = 19, se = 21, re = 22, ce = 23, ye = 24, ve = 25, ge = !0, Z = !1, ie = !1, ee = !1, ue = !1, Te = !0, Ce = !1, Pe = !0, He = !0, Ze = !0, Ne = !0, Fe = /* @__PURE__ */ new Set(), We = {}, Ye = {};
9829
+ var h = 0, p = 1, m = 2, b = 3, x = 4, S = 5, A = 6, _ = 7, E = 8, P = 9, M = 10, I = 11, $ = 12, B = 13, W = 14, G = 15, X = 16, j = 17, q = 18, ne = 19, ie = 21, re = 22, ce = 23, ye = 24, ve = 25, ge = !0, Z = !1, se = !1, ee = !1, ue = !1, Te = !0, Ce = !1, Pe = !0, He = !0, Ze = !0, Ne = !0, Fe = /* @__PURE__ */ new Set(), We = {}, Ye = {};
9824
9830
  function at(s, o) {
9825
9831
  Ve(s, o), Ve(s + "Capture", o);
9826
9832
  }
@@ -10688,7 +10694,7 @@ Error generating stack: ` + g.message + `
10688
10694
  return "Offscreen";
10689
10695
  case $:
10690
10696
  return "Profiler";
10691
- case se:
10697
+ case ie:
10692
10698
  return "Scope";
10693
10699
  case B:
10694
10700
  return "Suspense";
@@ -18713,14 +18719,14 @@ https://reactjs.org/link/unsafe-component-lifecycles`, ht, It, Me !== null ? `
18713
18719
  var Me = f.getDerivedStateFromProps, Le = typeof Me == "function" || typeof R.getSnapshotBeforeUpdate == "function";
18714
18720
  !Le && (typeof R.UNSAFE_componentWillReceiveProps == "function" || typeof R.componentWillReceiveProps == "function") && (L !== Y || ae !== we) && nN(o, R, g, we), vM();
18715
18721
  var ze = o.memoizedState, ht = R.state = ze;
18716
- if (HT(o, g, R, T), ht = o.memoizedState, L === Y && ze === ht && !wT() && !zT() && !ie)
18722
+ if (HT(o, g, R, T), ht = o.memoizedState, L === Y && ze === ht && !wT() && !zT() && !se)
18717
18723
  return typeof R.componentDidUpdate == "function" && (L !== s.memoizedProps || ze !== s.memoizedState) && (o.flags |= Qt), typeof R.getSnapshotBeforeUpdate == "function" && (L !== s.memoizedProps || ze !== s.memoizedState) && (o.flags |= V), !1;
18718
18724
  typeof Me == "function" && (xC(o, f, Me, g), ht = o.memoizedState);
18719
18725
  var It = zT() || JM(o, f, H, g, ze, ht, we) || // TODO: In some cases, we'll end up checking if context has changed twice,
18720
18726
  // both before and after `shouldComponentUpdate` has been called. Not ideal,
18721
18727
  // but I'm loath to refactor this function. This only happens for memoized
18722
18728
  // components so it's not that common.
18723
- ie;
18729
+ se;
18724
18730
  return It ? (!Le && (typeof R.UNSAFE_componentWillUpdate == "function" || typeof R.componentWillUpdate == "function") && (typeof R.componentWillUpdate == "function" && R.componentWillUpdate(g, ht, we), typeof R.UNSAFE_componentWillUpdate == "function" && R.UNSAFE_componentWillUpdate(g, ht, we)), typeof R.componentDidUpdate == "function" && (o.flags |= Qt), typeof R.getSnapshotBeforeUpdate == "function" && (o.flags |= V)) : (typeof R.componentDidUpdate == "function" && (L !== s.memoizedProps || ze !== s.memoizedState) && (o.flags |= Qt), typeof R.getSnapshotBeforeUpdate == "function" && (L !== s.memoizedProps || ze !== s.memoizedState) && (o.flags |= V), o.memoizedProps = g, o.memoizedState = ht), R.props = g, R.state = ht, R.context = we, It;
18725
18731
  }
18726
18732
  function sp(s, o) {
@@ -19911,7 +19917,7 @@ Check the render method of \`` + g + "`.");
19911
19917
  }
19912
19918
  case ne:
19913
19919
  return bN(s, o, f);
19914
- case se:
19920
+ case ie:
19915
19921
  break;
19916
19922
  case re:
19917
19923
  return cN(s, o, f);
@@ -20176,7 +20182,7 @@ Check the render method of \`` + g + "`.");
20176
20182
  }
20177
20183
  return fs(o), null;
20178
20184
  }
20179
- case se:
20185
+ case ie:
20180
20186
  break;
20181
20187
  case re:
20182
20188
  case ce: {
@@ -20591,7 +20597,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
20591
20597
  }
20592
20598
  case ne:
20593
20599
  case j:
20594
- case se:
20600
+ case ie:
20595
20601
  case re:
20596
20602
  case ce:
20597
20603
  case ve:
@@ -20864,7 +20870,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
20864
20870
  yf(s, o, f);
20865
20871
  return;
20866
20872
  }
20867
- case se: {
20873
+ case ie: {
20868
20874
  yf(s, o, f);
20869
20875
  return;
20870
20876
  }
@@ -21072,7 +21078,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
21072
21078
  Dl(o, s), Au(s), T & Qt && BN(s);
21073
21079
  return;
21074
21080
  }
21075
- case se:
21081
+ case ie:
21076
21082
  return;
21077
21083
  default: {
21078
21084
  Dl(o, s), Au(s);
@@ -23840,8 +23846,8 @@ var rF = "ToastViewport", Wee = ["F8"], bA = "toast.viewportPause", TA = "toast.
23840
23846
  (B = p.current) == null || B.focus();
23841
23847
  return;
23842
23848
  }
23843
- const se = _({ tabbingDirection: j ? "backwards" : "forwards" }), re = se.findIndex((ce) => ce === X);
23844
- VE(se.slice(re + 1)) ? M.preventDefault() : j ? (W = p.current) == null || W.focus() : (G = m.current) == null || G.focus();
23849
+ const ie = _({ tabbingDirection: j ? "backwards" : "forwards" }), re = ie.findIndex((ce) => ce === X);
23850
+ VE(ie.slice(re + 1)) ? M.preventDefault() : j ? (W = p.current) == null || W.focus() : (G = m.current) == null || G.focus();
23845
23851
  }
23846
23852
  };
23847
23853
  return E.addEventListener("keydown", P), () => E.removeEventListener("keydown", P);
@@ -23964,7 +23970,7 @@ var [Qee, Zee] = tF(Mx, {
23964
23970
  } = t, _ = Ox(Mx, n), [E, P] = N.useState(null), M = Jn(e, (ce) => P(ce)), I = N.useRef(null), $ = N.useRef(null), B = i || _.duration, W = N.useRef(0), G = N.useRef(B), X = N.useRef(0), { onToastAdd: j, onToastRemove: q } = _, ne = ga(() => {
23965
23971
  var ye;
23966
23972
  (E == null ? void 0 : E.contains(document.activeElement)) && ((ye = _.viewport) == null || ye.focus()), l();
23967
- }), se = N.useCallback(
23973
+ }), ie = N.useCallback(
23968
23974
  (ce) => {
23969
23975
  !ce || ce === 1 / 0 || (window.clearTimeout(X.current), W.current = (/* @__PURE__ */ new Date()).getTime(), X.current = window.setTimeout(ne, ce));
23970
23976
  },
@@ -23974,7 +23980,7 @@ var [Qee, Zee] = tF(Mx, {
23974
23980
  const ce = _.viewport;
23975
23981
  if (ce) {
23976
23982
  const ye = () => {
23977
- se(G.current), p == null || p();
23983
+ ie(G.current), p == null || p();
23978
23984
  }, ve = () => {
23979
23985
  const ge = (/* @__PURE__ */ new Date()).getTime() - W.current;
23980
23986
  G.current = G.current - ge, window.clearTimeout(X.current), h == null || h();
@@ -23983,9 +23989,9 @@ var [Qee, Zee] = tF(Mx, {
23983
23989
  ce.removeEventListener(bA, ve), ce.removeEventListener(TA, ye);
23984
23990
  };
23985
23991
  }
23986
- }, [_.viewport, B, h, p, se]), N.useEffect(() => {
23987
- a && !_.isClosePausedRef.current && se(B);
23988
- }, [a, B, _.isClosePausedRef, se]), N.useEffect(() => (j(), () => q()), [j, q]);
23992
+ }, [_.viewport, B, h, p, ie]), N.useEffect(() => {
23993
+ a && !_.isClosePausedRef.current && ie(B);
23994
+ }, [a, B, _.isClosePausedRef, ie]), N.useEffect(() => (j(), () => q()), [j, q]);
23989
23995
  const re = N.useMemo(() => E ? hF(E) : null, [E]);
23990
23996
  return _.viewport ? /* @__PURE__ */ ut(Qr, { children: [
23991
23997
  re && /* @__PURE__ */ z(
@@ -24026,7 +24032,7 @@ var [Qee, Zee] = tF(Mx, {
24026
24032
  }),
24027
24033
  onPointerMove: rn(t.onPointerMove, (ce) => {
24028
24034
  if (!I.current) return;
24029
- const ye = ce.clientX - I.current.x, ve = ce.clientY - I.current.y, ge = !!$.current, Z = ["left", "right"].includes(_.swipeDirection), ie = ["left", "up"].includes(_.swipeDirection) ? Math.min : Math.max, ee = Z ? ie(0, ye) : 0, ue = Z ? 0 : ie(0, ve), Te = ce.pointerType === "touch" ? 10 : 2, Ce = { x: ee, y: ue }, Pe = { originalEvent: ce, delta: Ce };
24035
+ const ye = ce.clientX - I.current.x, ve = ce.clientY - I.current.y, ge = !!$.current, Z = ["left", "right"].includes(_.swipeDirection), se = ["left", "up"].includes(_.swipeDirection) ? Math.min : Math.max, ee = Z ? se(0, ye) : 0, ue = Z ? 0 : se(0, ve), Te = ce.pointerType === "touch" ? 10 : 2, Ce = { x: ee, y: ue }, Pe = { originalEvent: ce, delta: Ce };
24030
24036
  ge ? ($.current = Ce, V_(Yee, b, Pe, {
24031
24037
  discrete: !1
24032
24038
  })) : W3(Ce, _.swipeDirection, Te) ? ($.current = Ce, V_(Gee, m, Pe, {
@@ -24046,7 +24052,7 @@ var [Qee, Zee] = tF(Mx, {
24046
24052
  {
24047
24053
  discrete: !0
24048
24054
  }
24049
- ), ge.addEventListener("click", (ie) => ie.preventDefault(), {
24055
+ ), ge.addEventListener("click", (se) => se.preventDefault(), {
24050
24056
  once: !0
24051
24057
  });
24052
24058
  }
@@ -24440,7 +24446,7 @@ const xr = (t) => {
24440
24446
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
24441
24447
  xte.test(t) && !wte.test(t)
24442
24448
  ), EF = () => !1, Ite = (t) => Cte.test(t), Lte = (t) => Ete.test(t), Fte = () => {
24443
- const t = xr("colors"), e = xr("spacing"), n = xr("blur"), r = xr("brightness"), i = xr("borderColor"), a = xr("borderRadius"), l = xr("borderSpacing"), c = xr("borderWidth"), h = xr("contrast"), p = xr("grayscale"), m = xr("hueRotate"), b = xr("invert"), x = xr("gap"), S = xr("gradientColorStops"), A = xr("gradientColorStopPositions"), _ = xr("inset"), E = xr("margin"), P = xr("opacity"), M = xr("padding"), I = xr("saturate"), $ = xr("scale"), B = xr("sepia"), W = xr("skew"), G = xr("space"), X = xr("translate"), j = () => ["auto", "contain", "none"], q = () => ["auto", "hidden", "clip", "visible", "scroll"], ne = () => ["auto", vn, e], se = () => [vn, e], re = () => ["", Qc, wf], ce = () => ["auto", lv, vn], ye = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], ve = () => ["solid", "dashed", "dotted", "double", "none"], ge = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Z = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], ie = () => ["", "0", vn], ee = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], ue = () => [lv, vn];
24449
+ const t = xr("colors"), e = xr("spacing"), n = xr("blur"), r = xr("brightness"), i = xr("borderColor"), a = xr("borderRadius"), l = xr("borderSpacing"), c = xr("borderWidth"), h = xr("contrast"), p = xr("grayscale"), m = xr("hueRotate"), b = xr("invert"), x = xr("gap"), S = xr("gradientColorStops"), A = xr("gradientColorStopPositions"), _ = xr("inset"), E = xr("margin"), P = xr("opacity"), M = xr("padding"), I = xr("saturate"), $ = xr("scale"), B = xr("sepia"), W = xr("skew"), G = xr("space"), X = xr("translate"), j = () => ["auto", "contain", "none"], q = () => ["auto", "hidden", "clip", "visible", "scroll"], ne = () => ["auto", vn, e], ie = () => [vn, e], re = () => ["", Qc, wf], ce = () => ["auto", lv, vn], ye = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], ve = () => ["solid", "dashed", "dotted", "double", "none"], ge = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Z = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], se = () => ["", "0", vn], ee = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], ue = () => [lv, vn];
24444
24450
  return {
24445
24451
  cacheSize: 500,
24446
24452
  separator: ":",
@@ -24451,25 +24457,25 @@ const xr = (t) => {
24451
24457
  brightness: ue(),
24452
24458
  borderColor: [t],
24453
24459
  borderRadius: ["none", "", "full", Cf, vn],
24454
- borderSpacing: se(),
24460
+ borderSpacing: ie(),
24455
24461
  borderWidth: re(),
24456
24462
  contrast: ue(),
24457
- grayscale: ie(),
24463
+ grayscale: se(),
24458
24464
  hueRotate: ue(),
24459
- invert: ie(),
24460
- gap: se(),
24465
+ invert: se(),
24466
+ gap: ie(),
24461
24467
  gradientColorStops: [t],
24462
24468
  gradientColorStopPositions: [Dte, wf],
24463
24469
  inset: ne(),
24464
24470
  margin: ne(),
24465
24471
  opacity: ue(),
24466
- padding: se(),
24472
+ padding: ie(),
24467
24473
  saturate: ue(),
24468
24474
  scale: ue(),
24469
- sepia: ie(),
24475
+ sepia: se(),
24470
24476
  skew: ue(),
24471
- space: se(),
24472
- translate: se()
24477
+ space: ie(),
24478
+ translate: ie()
24473
24479
  },
24474
24480
  classGroups: {
24475
24481
  // Layout
@@ -24721,14 +24727,14 @@ const xr = (t) => {
24721
24727
  * @see https://tailwindcss.com/docs/flex-grow
24722
24728
  */
24723
24729
  grow: [{
24724
- grow: ie()
24730
+ grow: se()
24725
24731
  }],
24726
24732
  /**
24727
24733
  * Flex Shrink
24728
24734
  * @see https://tailwindcss.com/docs/flex-shrink
24729
24735
  */
24730
24736
  shrink: [{
24731
- shrink: ie()
24737
+ shrink: se()
24732
24738
  }],
24733
24739
  /**
24734
24740
  * Order
@@ -25300,7 +25306,7 @@ const xr = (t) => {
25300
25306
  * @see https://tailwindcss.com/docs/text-indent
25301
25307
  */
25302
25308
  indent: [{
25303
- indent: se()
25309
+ indent: ie()
25304
25310
  }],
25305
25311
  /**
25306
25312
  * Vertical Alignment
@@ -26191,126 +26197,126 @@ const xr = (t) => {
26191
26197
  * @see https://tailwindcss.com/docs/scroll-margin
26192
26198
  */
26193
26199
  "scroll-m": [{
26194
- "scroll-m": se()
26200
+ "scroll-m": ie()
26195
26201
  }],
26196
26202
  /**
26197
26203
  * Scroll Margin X
26198
26204
  * @see https://tailwindcss.com/docs/scroll-margin
26199
26205
  */
26200
26206
  "scroll-mx": [{
26201
- "scroll-mx": se()
26207
+ "scroll-mx": ie()
26202
26208
  }],
26203
26209
  /**
26204
26210
  * Scroll Margin Y
26205
26211
  * @see https://tailwindcss.com/docs/scroll-margin
26206
26212
  */
26207
26213
  "scroll-my": [{
26208
- "scroll-my": se()
26214
+ "scroll-my": ie()
26209
26215
  }],
26210
26216
  /**
26211
26217
  * Scroll Margin Start
26212
26218
  * @see https://tailwindcss.com/docs/scroll-margin
26213
26219
  */
26214
26220
  "scroll-ms": [{
26215
- "scroll-ms": se()
26221
+ "scroll-ms": ie()
26216
26222
  }],
26217
26223
  /**
26218
26224
  * Scroll Margin End
26219
26225
  * @see https://tailwindcss.com/docs/scroll-margin
26220
26226
  */
26221
26227
  "scroll-me": [{
26222
- "scroll-me": se()
26228
+ "scroll-me": ie()
26223
26229
  }],
26224
26230
  /**
26225
26231
  * Scroll Margin Top
26226
26232
  * @see https://tailwindcss.com/docs/scroll-margin
26227
26233
  */
26228
26234
  "scroll-mt": [{
26229
- "scroll-mt": se()
26235
+ "scroll-mt": ie()
26230
26236
  }],
26231
26237
  /**
26232
26238
  * Scroll Margin Right
26233
26239
  * @see https://tailwindcss.com/docs/scroll-margin
26234
26240
  */
26235
26241
  "scroll-mr": [{
26236
- "scroll-mr": se()
26242
+ "scroll-mr": ie()
26237
26243
  }],
26238
26244
  /**
26239
26245
  * Scroll Margin Bottom
26240
26246
  * @see https://tailwindcss.com/docs/scroll-margin
26241
26247
  */
26242
26248
  "scroll-mb": [{
26243
- "scroll-mb": se()
26249
+ "scroll-mb": ie()
26244
26250
  }],
26245
26251
  /**
26246
26252
  * Scroll Margin Left
26247
26253
  * @see https://tailwindcss.com/docs/scroll-margin
26248
26254
  */
26249
26255
  "scroll-ml": [{
26250
- "scroll-ml": se()
26256
+ "scroll-ml": ie()
26251
26257
  }],
26252
26258
  /**
26253
26259
  * Scroll Padding
26254
26260
  * @see https://tailwindcss.com/docs/scroll-padding
26255
26261
  */
26256
26262
  "scroll-p": [{
26257
- "scroll-p": se()
26263
+ "scroll-p": ie()
26258
26264
  }],
26259
26265
  /**
26260
26266
  * Scroll Padding X
26261
26267
  * @see https://tailwindcss.com/docs/scroll-padding
26262
26268
  */
26263
26269
  "scroll-px": [{
26264
- "scroll-px": se()
26270
+ "scroll-px": ie()
26265
26271
  }],
26266
26272
  /**
26267
26273
  * Scroll Padding Y
26268
26274
  * @see https://tailwindcss.com/docs/scroll-padding
26269
26275
  */
26270
26276
  "scroll-py": [{
26271
- "scroll-py": se()
26277
+ "scroll-py": ie()
26272
26278
  }],
26273
26279
  /**
26274
26280
  * Scroll Padding Start
26275
26281
  * @see https://tailwindcss.com/docs/scroll-padding
26276
26282
  */
26277
26283
  "scroll-ps": [{
26278
- "scroll-ps": se()
26284
+ "scroll-ps": ie()
26279
26285
  }],
26280
26286
  /**
26281
26287
  * Scroll Padding End
26282
26288
  * @see https://tailwindcss.com/docs/scroll-padding
26283
26289
  */
26284
26290
  "scroll-pe": [{
26285
- "scroll-pe": se()
26291
+ "scroll-pe": ie()
26286
26292
  }],
26287
26293
  /**
26288
26294
  * Scroll Padding Top
26289
26295
  * @see https://tailwindcss.com/docs/scroll-padding
26290
26296
  */
26291
26297
  "scroll-pt": [{
26292
- "scroll-pt": se()
26298
+ "scroll-pt": ie()
26293
26299
  }],
26294
26300
  /**
26295
26301
  * Scroll Padding Right
26296
26302
  * @see https://tailwindcss.com/docs/scroll-padding
26297
26303
  */
26298
26304
  "scroll-pr": [{
26299
- "scroll-pr": se()
26305
+ "scroll-pr": ie()
26300
26306
  }],
26301
26307
  /**
26302
26308
  * Scroll Padding Bottom
26303
26309
  * @see https://tailwindcss.com/docs/scroll-padding
26304
26310
  */
26305
26311
  "scroll-pb": [{
26306
- "scroll-pb": se()
26312
+ "scroll-pb": ie()
26307
26313
  }],
26308
26314
  /**
26309
26315
  * Scroll Padding Left
26310
26316
  * @see https://tailwindcss.com/docs/scroll-padding
26311
26317
  */
26312
26318
  "scroll-pl": [{
26313
- "scroll-pl": se()
26319
+ "scroll-pl": ie()
26314
26320
  }],
26315
26321
  /**
26316
26322
  * Scroll Snap Align
@@ -26653,7 +26659,7 @@ function dne(...t) {
26653
26659
  }
26654
26660
  var fne = (t) => {
26655
26661
  var e, n, r, i, a, l, c, h, p, m, b;
26656
- let { invert: x, toast: S, unstyled: A, interacting: _, setHeights: E, visibleToasts: P, heights: M, index: I, toasts: $, expanded: B, removeToast: W, defaultRichColors: G, closeButton: X, style: j, cancelButtonStyle: q, actionButtonStyle: ne, className: se = "", descriptionClassName: re = "", duration: ce, position: ye, gap: ve, loadingIcon: ge, expandByDefault: Z, classNames: ie, icons: ee, closeButtonAriaLabel: ue = "Close toast", pauseWhenPageIsHidden: Te, cn: Ce } = t, [Pe, He] = Ke.useState(!1), [Ze, Ne] = Ke.useState(!1), [Fe, We] = Ke.useState(!1), [Ye, at] = Ke.useState(!1), [Ve, _t] = Ke.useState(!1), [wt, Gt] = Ke.useState(0), [Ht, yn] = Ke.useState(0), cn = Ke.useRef(S.duration || ce || Q3), An = Ke.useRef(null), Ut = Ke.useRef(null), Jt = I === 0, Rn = I + 1 <= P, wn = S.type, or = S.dismissible !== !1, sn = S.className || "", dn = S.descriptionClassName || "", en = Ke.useMemo(() => M.findIndex((K) => K.toastId === S.id) || 0, [M, S.id]), an = Ke.useMemo(() => {
26662
+ let { invert: x, toast: S, unstyled: A, interacting: _, setHeights: E, visibleToasts: P, heights: M, index: I, toasts: $, expanded: B, removeToast: W, defaultRichColors: G, closeButton: X, style: j, cancelButtonStyle: q, actionButtonStyle: ne, className: ie = "", descriptionClassName: re = "", duration: ce, position: ye, gap: ve, loadingIcon: ge, expandByDefault: Z, classNames: se, icons: ee, closeButtonAriaLabel: ue = "Close toast", pauseWhenPageIsHidden: Te, cn: Ce } = t, [Pe, He] = Ke.useState(!1), [Ze, Ne] = Ke.useState(!1), [Fe, We] = Ke.useState(!1), [Ye, at] = Ke.useState(!1), [Ve, _t] = Ke.useState(!1), [wt, Gt] = Ke.useState(0), [Ht, yn] = Ke.useState(0), cn = Ke.useRef(S.duration || ce || Q3), An = Ke.useRef(null), Ut = Ke.useRef(null), Jt = I === 0, Rn = I + 1 <= P, wn = S.type, or = S.dismissible !== !1, sn = S.className || "", dn = S.descriptionClassName || "", en = Ke.useMemo(() => M.findIndex((K) => K.toastId === S.id) || 0, [M, S.id]), an = Ke.useMemo(() => {
26657
26663
  var K;
26658
26664
  return (K = S.closeButton) != null ? K : X;
26659
26665
  }, [S.closeButton, X]);
@@ -26697,9 +26703,9 @@ var fne = (t) => {
26697
26703
  }, [fn, S.delete]);
26698
26704
  function Ci() {
26699
26705
  var K, J, pe;
26700
- return ee != null && ee.loading ? Ke.createElement("div", { className: Ce(ie == null ? void 0 : ie.loader, (K = S == null ? void 0 : S.classNames) == null ? void 0 : K.loader, "sonner-loader"), "data-visible": wn === "loading" }, ee.loading) : ge ? Ke.createElement("div", { className: Ce(ie == null ? void 0 : ie.loader, (J = S == null ? void 0 : S.classNames) == null ? void 0 : J.loader, "sonner-loader"), "data-visible": wn === "loading" }, ge) : Ke.createElement(qte, { className: Ce(ie == null ? void 0 : ie.loader, (pe = S == null ? void 0 : S.classNames) == null ? void 0 : pe.loader), visible: wn === "loading" });
26706
+ return ee != null && ee.loading ? Ke.createElement("div", { className: Ce(se == null ? void 0 : se.loader, (K = S == null ? void 0 : S.classNames) == null ? void 0 : K.loader, "sonner-loader"), "data-visible": wn === "loading" }, ee.loading) : ge ? Ke.createElement("div", { className: Ce(se == null ? void 0 : se.loader, (J = S == null ? void 0 : S.classNames) == null ? void 0 : J.loader, "sonner-loader"), "data-visible": wn === "loading" }, ge) : Ke.createElement(qte, { className: Ce(se == null ? void 0 : se.loader, (pe = S == null ? void 0 : S.classNames) == null ? void 0 : pe.loader), visible: wn === "loading" });
26701
26707
  }
26702
- return Ke.createElement("li", { tabIndex: 0, ref: Ut, className: Ce(se, sn, ie == null ? void 0 : ie.toast, (e = S == null ? void 0 : S.classNames) == null ? void 0 : e.toast, ie == null ? void 0 : ie.default, ie == null ? void 0 : ie[wn], (n = S == null ? void 0 : S.classNames) == null ? void 0 : n[wn]), "data-sonner-toast": "", "data-rich-colors": (r = S.richColors) != null ? r : G, "data-styled": !(S.jsx || S.unstyled || A), "data-mounted": Pe, "data-promise": !!S.promise, "data-swiped": Ve, "data-removed": Ze, "data-visible": Rn, "data-y-position": Lt, "data-x-position": Yt, "data-index": I, "data-front": Jt, "data-swiping": Fe, "data-dismissible": or, "data-type": wn, "data-invert": kn, "data-swipe-out": Ye, "data-expanded": !!(B || Z && Pe), style: { "--index": I, "--toasts-before": I, "--z-index": $.length - I, "--offset": `${Ze ? wt : Nn.current}px`, "--initial-height": Z ? "auto" : `${Ht}px`, ...j, ...S.style }, onPointerDown: (K) => {
26708
+ return Ke.createElement("li", { tabIndex: 0, ref: Ut, className: Ce(ie, sn, se == null ? void 0 : se.toast, (e = S == null ? void 0 : S.classNames) == null ? void 0 : e.toast, se == null ? void 0 : se.default, se == null ? void 0 : se[wn], (n = S == null ? void 0 : S.classNames) == null ? void 0 : n[wn]), "data-sonner-toast": "", "data-rich-colors": (r = S.richColors) != null ? r : G, "data-styled": !(S.jsx || S.unstyled || A), "data-mounted": Pe, "data-promise": !!S.promise, "data-swiped": Ve, "data-removed": Ze, "data-visible": Rn, "data-y-position": Lt, "data-x-position": Yt, "data-index": I, "data-front": Jt, "data-swiping": Fe, "data-dismissible": or, "data-type": wn, "data-invert": kn, "data-swipe-out": Ye, "data-expanded": !!(B || Z && Pe), style: { "--index": I, "--toasts-before": I, "--z-index": $.length - I, "--offset": `${Ze ? wt : Nn.current}px`, "--initial-height": Z ? "auto" : `${Ht}px`, ...j, ...S.style }, onPointerDown: (K) => {
26703
26709
  rr || !or || (An.current = /* @__PURE__ */ new Date(), Gt(Nn.current), K.target.setPointerCapture(K.pointerId), K.target.tagName !== "BUTTON" && (We(!0), tt.current = { x: K.clientX, y: K.clientY }));
26704
26710
  }, onPointerUp: () => {
26705
26711
  var K, J, pe, De;
@@ -26720,13 +26726,13 @@ var fne = (t) => {
26720
26726
  } : () => {
26721
26727
  var K;
26722
26728
  fn(), (K = S.onDismiss) == null || K.call(S, S);
26723
- }, className: Ce(ie == null ? void 0 : ie.closeButton, (i = S == null ? void 0 : S.classNames) == null ? void 0 : i.closeButton) }, (a = ee == null ? void 0 : ee.close) != null ? a : Xte) : null, S.jsx || Ke.isValidElement(S.title) ? S.jsx ? S.jsx : typeof S.title == "function" ? S.title() : S.title : Ke.createElement(Ke.Fragment, null, wn || S.icon || S.promise ? Ke.createElement("div", { "data-icon": "", className: Ce(ie == null ? void 0 : ie.icon, (l = S == null ? void 0 : S.classNames) == null ? void 0 : l.icon) }, S.promise || S.type === "loading" && !S.icon ? S.icon || Ci() : null, S.type !== "loading" ? S.icon || (ee == null ? void 0 : ee[wn]) || Hte(wn) : null) : null, Ke.createElement("div", { "data-content": "", className: Ce(ie == null ? void 0 : ie.content, (c = S == null ? void 0 : S.classNames) == null ? void 0 : c.content) }, Ke.createElement("div", { "data-title": "", className: Ce(ie == null ? void 0 : ie.title, (h = S == null ? void 0 : S.classNames) == null ? void 0 : h.title) }, typeof S.title == "function" ? S.title() : S.title), S.description ? Ke.createElement("div", { "data-description": "", className: Ce(re, dn, ie == null ? void 0 : ie.description, (p = S == null ? void 0 : S.classNames) == null ? void 0 : p.description) }, typeof S.description == "function" ? S.description() : S.description) : null), Ke.isValidElement(S.cancel) ? S.cancel : S.cancel && $_(S.cancel) ? Ke.createElement("button", { "data-button": !0, "data-cancel": !0, style: S.cancelButtonStyle || q, onClick: (K) => {
26729
+ }, className: Ce(se == null ? void 0 : se.closeButton, (i = S == null ? void 0 : S.classNames) == null ? void 0 : i.closeButton) }, (a = ee == null ? void 0 : ee.close) != null ? a : Xte) : null, S.jsx || Ke.isValidElement(S.title) ? S.jsx ? S.jsx : typeof S.title == "function" ? S.title() : S.title : Ke.createElement(Ke.Fragment, null, wn || S.icon || S.promise ? Ke.createElement("div", { "data-icon": "", className: Ce(se == null ? void 0 : se.icon, (l = S == null ? void 0 : S.classNames) == null ? void 0 : l.icon) }, S.promise || S.type === "loading" && !S.icon ? S.icon || Ci() : null, S.type !== "loading" ? S.icon || (ee == null ? void 0 : ee[wn]) || Hte(wn) : null) : null, Ke.createElement("div", { "data-content": "", className: Ce(se == null ? void 0 : se.content, (c = S == null ? void 0 : S.classNames) == null ? void 0 : c.content) }, Ke.createElement("div", { "data-title": "", className: Ce(se == null ? void 0 : se.title, (h = S == null ? void 0 : S.classNames) == null ? void 0 : h.title) }, typeof S.title == "function" ? S.title() : S.title), S.description ? Ke.createElement("div", { "data-description": "", className: Ce(re, dn, se == null ? void 0 : se.description, (p = S == null ? void 0 : S.classNames) == null ? void 0 : p.description) }, typeof S.description == "function" ? S.description() : S.description) : null), Ke.isValidElement(S.cancel) ? S.cancel : S.cancel && $_(S.cancel) ? Ke.createElement("button", { "data-button": !0, "data-cancel": !0, style: S.cancelButtonStyle || q, onClick: (K) => {
26724
26730
  var J, pe;
26725
26731
  $_(S.cancel) && or && ((pe = (J = S.cancel).onClick) == null || pe.call(J, K), fn());
26726
- }, className: Ce(ie == null ? void 0 : ie.cancelButton, (m = S == null ? void 0 : S.classNames) == null ? void 0 : m.cancelButton) }, S.cancel.label) : null, Ke.isValidElement(S.action) ? S.action : S.action && $_(S.action) ? Ke.createElement("button", { "data-button": !0, "data-action": !0, style: S.actionButtonStyle || ne, onClick: (K) => {
26732
+ }, className: Ce(se == null ? void 0 : se.cancelButton, (m = S == null ? void 0 : S.classNames) == null ? void 0 : m.cancelButton) }, S.cancel.label) : null, Ke.isValidElement(S.action) ? S.action : S.action && $_(S.action) ? Ke.createElement("button", { "data-button": !0, "data-action": !0, style: S.actionButtonStyle || ne, onClick: (K) => {
26727
26733
  var J, pe;
26728
26734
  $_(S.action) && ((pe = (J = S.action).onClick) == null || pe.call(J, K), !K.defaultPrevented && fn());
26729
- }, className: Ce(ie == null ? void 0 : ie.actionButton, (b = S == null ? void 0 : S.classNames) == null ? void 0 : b.actionButton) }, S.action.label) : null));
26735
+ }, className: Ce(se == null ? void 0 : se.actionButton, (b = S == null ? void 0 : S.classNames) == null ? void 0 : b.actionButton) }, S.action.label) : null));
26730
26736
  };
26731
26737
  function Z3() {
26732
26738
  if (typeof window > "u" || typeof document > "u") return "ltr";
@@ -26734,7 +26740,7 @@ function Z3() {
26734
26740
  return t === "auto" || !t ? window.getComputedStyle(document.documentElement).direction : t;
26735
26741
  }
26736
26742
  var hne = Bl(function(t, e) {
26737
- let { invert: n, position: r = "bottom-right", hotkey: i = ["altKey", "KeyT"], expand: a, closeButton: l, className: c, offset: h, theme: p = "light", richColors: m, duration: b, style: x, visibleToasts: S = sne, toastOptions: A, dir: _ = Z3(), gap: E = lne, loadingIcon: P, icons: M, containerAriaLabel: I = "Notifications", pauseWhenPageIsHidden: $, cn: B = dne } = t, [W, G] = Ke.useState([]), X = Ke.useMemo(() => Array.from(new Set([r].concat(W.filter((Te) => Te.position).map((Te) => Te.position)))), [W, r]), [j, q] = Ke.useState([]), [ne, se] = Ke.useState(!1), [re, ce] = Ke.useState(!1), [ye, ve] = Ke.useState(p !== "system" ? p : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), ge = Ke.useRef(null), Z = i.join("+").replace(/Key/g, "").replace(/Digit/g, ""), ie = Ke.useRef(null), ee = Ke.useRef(!1), ue = Ke.useCallback((Te) => {
26743
+ let { invert: n, position: r = "bottom-right", hotkey: i = ["altKey", "KeyT"], expand: a, closeButton: l, className: c, offset: h, theme: p = "light", richColors: m, duration: b, style: x, visibleToasts: S = sne, toastOptions: A, dir: _ = Z3(), gap: E = lne, loadingIcon: P, icons: M, containerAriaLabel: I = "Notifications", pauseWhenPageIsHidden: $, cn: B = dne } = t, [W, G] = Ke.useState([]), X = Ke.useMemo(() => Array.from(new Set([r].concat(W.filter((Te) => Te.position).map((Te) => Te.position)))), [W, r]), [j, q] = Ke.useState([]), [ne, ie] = Ke.useState(!1), [re, ce] = Ke.useState(!1), [ye, ve] = Ke.useState(p !== "system" ? p : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), ge = Ke.useRef(null), Z = i.join("+").replace(/Key/g, "").replace(/Digit/g, ""), se = Ke.useRef(null), ee = Ke.useRef(!1), ue = Ke.useCallback((Te) => {
26738
26744
  G((Ce) => {
26739
26745
  var Pe;
26740
26746
  return (Pe = Ce.find((He) => He.id === Te.id)) != null && Pe.delete || fo.dismiss(Te.id), Ce.filter(({ id: He }) => He !== Te.id);
@@ -26774,26 +26780,26 @@ var hne = Bl(function(t, e) {
26774
26780
  });
26775
26781
  }
26776
26782
  }, [p]), Ke.useEffect(() => {
26777
- W.length <= 1 && se(!1);
26783
+ W.length <= 1 && ie(!1);
26778
26784
  }, [W]), Ke.useEffect(() => {
26779
26785
  let Te = (Ce) => {
26780
26786
  var Pe, He;
26781
- i.every((Ze) => Ce[Ze] || Ce.code === Ze) && (se(!0), (Pe = ge.current) == null || Pe.focus()), Ce.code === "Escape" && (document.activeElement === ge.current || (He = ge.current) != null && He.contains(document.activeElement)) && se(!1);
26787
+ i.every((Ze) => Ce[Ze] || Ce.code === Ze) && (ie(!0), (Pe = ge.current) == null || Pe.focus()), Ce.code === "Escape" && (document.activeElement === ge.current || (He = ge.current) != null && He.contains(document.activeElement)) && ie(!1);
26782
26788
  };
26783
26789
  return document.addEventListener("keydown", Te), () => document.removeEventListener("keydown", Te);
26784
26790
  }, [i]), Ke.useEffect(() => {
26785
26791
  if (ge.current) return () => {
26786
- ie.current && (ie.current.focus({ preventScroll: !0 }), ie.current = null, ee.current = !1);
26792
+ se.current && (se.current.focus({ preventScroll: !0 }), se.current = null, ee.current = !1);
26787
26793
  };
26788
26794
  }, [ge.current]), Ke.createElement("section", { "aria-label": `${I} ${Z}`, tabIndex: -1, "aria-live": "polite", "aria-relevant": "additions text", "aria-atomic": "false" }, X.map((Te, Ce) => {
26789
26795
  var Pe;
26790
26796
  let [He, Ze] = Te.split("-");
26791
26797
  return W.length ? Ke.createElement("ol", { key: Te, dir: _ === "auto" ? Z3() : _, tabIndex: -1, ref: ge, className: c, "data-sonner-toaster": !0, "data-theme": ye, "data-y-position": He, "data-lifted": ne && W.length > 1 && !a, "data-x-position": Ze, style: { "--front-toast-height": `${((Pe = j[0]) == null ? void 0 : Pe.height) || 0}px`, "--offset": typeof h == "number" ? `${h}px` : h || ane, "--width": `${one}px`, "--gap": `${E}px`, ...x }, onBlur: (Ne) => {
26792
- ee.current && !Ne.currentTarget.contains(Ne.relatedTarget) && (ee.current = !1, ie.current && (ie.current.focus({ preventScroll: !0 }), ie.current = null));
26798
+ ee.current && !Ne.currentTarget.contains(Ne.relatedTarget) && (ee.current = !1, se.current && (se.current.focus({ preventScroll: !0 }), se.current = null));
26793
26799
  }, onFocus: (Ne) => {
26794
- Ne.target instanceof HTMLElement && Ne.target.dataset.dismissible === "false" || ee.current || (ee.current = !0, ie.current = Ne.relatedTarget);
26795
- }, onMouseEnter: () => se(!0), onMouseMove: () => se(!0), onMouseLeave: () => {
26796
- re || se(!1);
26800
+ Ne.target instanceof HTMLElement && Ne.target.dataset.dismissible === "false" || ee.current || (ee.current = !0, se.current = Ne.relatedTarget);
26801
+ }, onMouseEnter: () => ie(!0), onMouseMove: () => ie(!0), onMouseLeave: () => {
26802
+ re || ie(!1);
26797
26803
  }, onPointerDown: (Ne) => {
26798
26804
  Ne.target instanceof HTMLElement && Ne.target.dataset.dismissible === "false" || ce(!0);
26799
26805
  }, onPointerUp: () => ce(!1) }, W.filter((Ne) => !Ne.position && Ce === 0 || Ne.position === Te).map((Ne, Fe) => {
@@ -29770,8 +29776,8 @@ function sse() {
29770
29776
  }, _ = p.requestInterceptorsStorage.execute(S.requestType, A);
29771
29777
  S.uri = _.uri, S.headers = _.headers, S.body = _.body, S.metadata = _.metadata, S.retry = _.retry, S.timeout = _.timeout;
29772
29778
  }
29773
- var E = !1, P = function(Z, ie, ee) {
29774
- E || (E = !0, S.callback(Z, ie, ee));
29779
+ var E = !1, P = function(Z, se, ee) {
29780
+ E || (E = !0, S.callback(Z, se, ee));
29775
29781
  };
29776
29782
  function M() {
29777
29783
  W.readyState === 4 && !p.responseInterceptorsStorage.getIsEnabled() && setTimeout(B, 0);
@@ -29798,8 +29804,8 @@ function sse() {
29798
29804
  body: ve.body,
29799
29805
  responseUrl: W.responseURL,
29800
29806
  responseType: W.responseType
29801
- }, ie = p.responseInterceptorsStorage.execute(S.requestType, Z);
29802
- ve.body = ie.body, ve.headers = ie.headers;
29807
+ }, se = p.responseInterceptorsStorage.execute(S.requestType, Z);
29808
+ ve.body = se.body, ve.headers = se.headers;
29803
29809
  }
29804
29810
  return P(ge, ve);
29805
29811
  }
@@ -29807,7 +29813,7 @@ function sse() {
29807
29813
  if (!X) {
29808
29814
  var ge;
29809
29815
  clearTimeout(ye), clearTimeout(S.retryTimeout), S.useXDR && W.status === void 0 ? ge = 200 : ge = W.status === 1223 ? 204 : W.status;
29810
- var Z = ve, ie = null;
29816
+ var Z = ve, se = null;
29811
29817
  if (ge !== 0 ? (Z = {
29812
29818
  body: I(),
29813
29819
  statusCode: ge,
@@ -29815,7 +29821,7 @@ function sse() {
29815
29821
  headers: {},
29816
29822
  url: j,
29817
29823
  rawRequest: W
29818
- }, W.getAllResponseHeaders && (Z.headers = a(W.getAllResponseHeaders()))) : ie = new Error("Internal XMLHttpRequest Error"), S.requestType && p.responseInterceptorsStorage.getIsEnabled()) {
29824
+ }, W.getAllResponseHeaders && (Z.headers = a(W.getAllResponseHeaders()))) : se = new Error("Internal XMLHttpRequest Error"), S.requestType && p.responseInterceptorsStorage.getIsEnabled()) {
29819
29825
  var ee = {
29820
29826
  headers: Z.headers || {},
29821
29827
  body: Z.body,
@@ -29824,12 +29830,12 @@ function sse() {
29824
29830
  }, ue = p.responseInterceptorsStorage.execute(S.requestType, ee);
29825
29831
  Z.body = ue.body, Z.headers = ue.headers;
29826
29832
  }
29827
- return P(ie, Z, Z.body);
29833
+ return P(se, Z, Z.body);
29828
29834
  }
29829
29835
  }
29830
29836
  var W = S.xhr || null;
29831
29837
  W || (S.cors || S.useXDR ? W = new p.XDomainRequest() : W = new p.XMLHttpRequest());
29832
- var G, X, j = W.url = S.uri || S.url, q = W.method = S.method || "GET", ne = S.body || S.data, se = W.headers = S.headers || {}, re = !!S.sync, ce = !1, ye, ve = {
29838
+ var G, X, j = W.url = S.uri || S.url, q = W.method = S.method || "GET", ne = S.body || S.data, ie = W.headers = S.headers || {}, re = !!S.sync, ce = !1, ye, ve = {
29833
29839
  body: void 0,
29834
29840
  headers: {},
29835
29841
  statusCode: 0,
@@ -29837,7 +29843,7 @@ function sse() {
29837
29843
  url: j,
29838
29844
  rawRequest: W
29839
29845
  };
29840
- if ("json" in S && S.json !== !1 && (ce = !0, se.accept || se.Accept || (se.Accept = "application/json"), q !== "GET" && q !== "HEAD" && (se["content-type"] || se["Content-Type"] || (se["Content-Type"] = "application/json"), ne = JSON.stringify(S.json === !0 ? ne : S.json))), W.onreadystatechange = M, W.onload = B, W.onerror = $, W.onprogress = function() {
29846
+ if ("json" in S && S.json !== !1 && (ce = !0, ie.accept || ie.Accept || (ie.Accept = "application/json"), q !== "GET" && q !== "HEAD" && (ie["content-type"] || ie["Content-Type"] || (ie["Content-Type"] = "application/json"), ne = JSON.stringify(S.json === !0 ? ne : S.json))), W.onreadystatechange = M, W.onload = B, W.onerror = $, W.onprogress = function() {
29841
29847
  }, W.onabort = function() {
29842
29848
  X = !0, clearTimeout(S.retryTimeout);
29843
29849
  }, W.ontimeout = $, W.open(q, j, !re, S.username, S.password), re || (W.withCredentials = !!S.withCredentials), !re && S.timeout > 0 && (ye = setTimeout(function() {
@@ -29847,8 +29853,8 @@ function sse() {
29847
29853
  ge.code = "ETIMEDOUT", $(ge);
29848
29854
  }
29849
29855
  }, S.timeout)), W.setRequestHeader)
29850
- for (G in se)
29851
- se.hasOwnProperty(G) && W.setRequestHeader(G, se[G]);
29856
+ for (G in ie)
29857
+ ie.hasOwnProperty(G) && W.setRequestHeader(G, ie[G]);
29852
29858
  else if (S.headers && !c(S.headers))
29853
29859
  throw new Error("Headers cannot be set on an XDomainRequest object");
29854
29860
  return "responseType" in S && (W.responseType = S.responseType), "beforeSend" in S && typeof S.beforeSend == "function" && S.beforeSend(W), W.send(ne || null), W;
@@ -29897,8 +29903,8 @@ function ose() {
29897
29903
  }
29898
29904
  };
29899
29905
  function r(j) {
29900
- function q(se, re, ce, ye) {
29901
- return (se | 0) * 3600 + (re | 0) * 60 + (ce | 0) + (ye | 0) / 1e3;
29906
+ function q(ie, re, ce, ye) {
29907
+ return (ie | 0) * 3600 + (re | 0) * 60 + (ce | 0) + (ye | 0) / 1e3;
29902
29908
  }
29903
29909
  var ne = j.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);
29904
29910
  return ne ? ne[3] ? q(ne[1], ne[2], ne[3].replace(":", ""), ne[4]) : ne[1] > 59 ? q(ne[1], ne[2], 0, ne[4]) : q(0, ne[1], ne[2], ne[4]) : null;
@@ -29925,8 +29931,8 @@ function ose() {
29925
29931
  },
29926
29932
  // Accept a setting if its one of the given alternatives.
29927
29933
  alt: function(j, q, ne) {
29928
- for (var se = 0; se < ne.length; ++se)
29929
- if (q === ne[se]) {
29934
+ for (var ie = 0; ie < ne.length; ++ie)
29935
+ if (q === ne[ie]) {
29930
29936
  this.set(j, q);
29931
29937
  break;
29932
29938
  }
@@ -29940,8 +29946,8 @@ function ose() {
29940
29946
  return q.match(/^([\d]{1,3})(\.[\d]*)?%$/) && (q = parseFloat(q), q >= 0 && q <= 100) ? (this.set(j, q), !0) : !1;
29941
29947
  }
29942
29948
  };
29943
- function a(j, q, ne, se) {
29944
- var re = se ? j.split(se) : [j];
29949
+ function a(j, q, ne, ie) {
29950
+ var re = ie ? j.split(ie) : [j];
29945
29951
  for (var ce in re)
29946
29952
  if (typeof re[ce] == "string") {
29947
29953
  var ye = re[ce].split(ne);
@@ -29952,42 +29958,42 @@ function ose() {
29952
29958
  }
29953
29959
  }
29954
29960
  function l(j, q, ne) {
29955
- var se = j;
29961
+ var ie = j;
29956
29962
  function re() {
29957
29963
  var ve = r(j);
29958
29964
  if (ve === null)
29959
29965
  throw new n(
29960
29966
  n.Errors.BadTimeStamp,
29961
- "Malformed timestamp: " + se
29967
+ "Malformed timestamp: " + ie
29962
29968
  );
29963
29969
  return j = j.replace(/^[^\sa-zA-Z-]+/, ""), ve;
29964
29970
  }
29965
29971
  function ce(ve, ge) {
29966
29972
  var Z = new i();
29967
- a(ve, function(ie, ee) {
29968
- switch (ie) {
29973
+ a(ve, function(se, ee) {
29974
+ switch (se) {
29969
29975
  case "region":
29970
29976
  for (var ue = ne.length - 1; ue >= 0; ue--)
29971
29977
  if (ne[ue].id === ee) {
29972
- Z.set(ie, ne[ue].region);
29978
+ Z.set(se, ne[ue].region);
29973
29979
  break;
29974
29980
  }
29975
29981
  break;
29976
29982
  case "vertical":
29977
- Z.alt(ie, ee, ["rl", "lr"]);
29983
+ Z.alt(se, ee, ["rl", "lr"]);
29978
29984
  break;
29979
29985
  case "line":
29980
29986
  var Te = ee.split(","), Ce = Te[0];
29981
- Z.integer(ie, Ce), Z.percent(ie, Ce) && Z.set("snapToLines", !1), Z.alt(ie, Ce, ["auto"]), Te.length === 2 && Z.alt("lineAlign", Te[1], ["start", "center", "end"]);
29987
+ Z.integer(se, Ce), Z.percent(se, Ce) && Z.set("snapToLines", !1), Z.alt(se, Ce, ["auto"]), Te.length === 2 && Z.alt("lineAlign", Te[1], ["start", "center", "end"]);
29982
29988
  break;
29983
29989
  case "position":
29984
- Te = ee.split(","), Z.percent(ie, Te[0]), Te.length === 2 && Z.alt("positionAlign", Te[1], ["start", "center", "end"]);
29990
+ Te = ee.split(","), Z.percent(se, Te[0]), Te.length === 2 && Z.alt("positionAlign", Te[1], ["start", "center", "end"]);
29985
29991
  break;
29986
29992
  case "size":
29987
- Z.percent(ie, ee);
29993
+ Z.percent(se, ee);
29988
29994
  break;
29989
29995
  case "align":
29990
- Z.alt(ie, ee, ["start", "center", "end", "left", "right"]);
29996
+ Z.alt(se, ee, ["start", "center", "end", "left", "right"]);
29991
29997
  break;
29992
29998
  }
29993
29999
  }, /:/, /\s/), ge.region = Z.get("region", null), ge.vertical = Z.get("vertical", "");
@@ -30028,7 +30034,7 @@ function ose() {
30028
30034
  if (ye(), q.startTime = re(), ye(), j.substr(0, 3) !== "-->")
30029
30035
  throw new n(
30030
30036
  n.Errors.BadTimeStamp,
30031
- "Malformed time stamp (time stamps must be separated by '-->'): " + se
30037
+ "Malformed time stamp (time stamps must be separated by '-->'): " + ie
30032
30038
  );
30033
30039
  j = j.substr(3), ye(), q.endTime = re(), ye(), ce(j, q);
30034
30040
  }
@@ -30066,7 +30072,7 @@ function ose() {
30066
30072
  var Pe = q.match(/^([^<]*)(<[^>]*>?)?/);
30067
30073
  return Ce(Pe[1] ? Pe[1] : Pe[2]);
30068
30074
  }
30069
- function se(Ce) {
30075
+ function ie(Ce) {
30070
30076
  return c.innerHTML = Ce, Ce = c.textContent, c.textContent = "", Ce;
30071
30077
  }
30072
30078
  function re(Ce, Pe) {
@@ -30085,9 +30091,9 @@ function ose() {
30085
30091
  Z.length && Z[Z.length - 1] === ge.substr(2).replace(">", "") && (Z.pop(), ve = ve.parentNode);
30086
30092
  continue;
30087
30093
  }
30088
- var ie = r(ge.substr(1, ge.length - 2)), ee;
30089
- if (ie) {
30090
- ee = j.document.createProcessingInstruction("timestamp", ie), ve.appendChild(ee);
30094
+ var se = r(ge.substr(1, ge.length - 2)), ee;
30095
+ if (se) {
30096
+ ee = j.document.createProcessingInstruction("timestamp", se), ve.appendChild(ee);
30091
30097
  continue;
30092
30098
  }
30093
30099
  var ue = ge.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);
@@ -30106,7 +30112,7 @@ function ose() {
30106
30112
  Z.push(ue[1]), ve.appendChild(ee), ve = ee;
30107
30113
  continue;
30108
30114
  }
30109
- ve.appendChild(j.document.createTextNode(se(ge)));
30115
+ ve.appendChild(j.document.createTextNode(ie(ge)));
30110
30116
  }
30111
30117
  return ye;
30112
30118
  }
@@ -30226,7 +30232,7 @@ function ose() {
30226
30232
  return !1;
30227
30233
  }
30228
30234
  function _(j) {
30229
- var q = [], ne = "", se;
30235
+ var q = [], ne = "", ie;
30230
30236
  if (!j || !j.childNodes)
30231
30237
  return "ltr";
30232
30238
  function re(ve, ge) {
@@ -30238,8 +30244,8 @@ function ose() {
30238
30244
  return null;
30239
30245
  var ge = ve.pop(), Z = ge.textContent || ge.innerText;
30240
30246
  if (Z) {
30241
- var ie = Z.match(/^.*(\n|\r)/);
30242
- return ie ? (ve.length = 0, ie[0]) : Z;
30247
+ var se = Z.match(/^.*(\n|\r)/);
30248
+ return se ? (ve.length = 0, se[0]) : Z;
30243
30249
  }
30244
30250
  if (ge.tagName === "ruby")
30245
30251
  return ce(ve);
@@ -30248,7 +30254,7 @@ function ose() {
30248
30254
  }
30249
30255
  for (re(q, j); ne = ce(q); )
30250
30256
  for (var ye = 0; ye < ne.length; ye++)
30251
- if (se = ne.charCodeAt(ye), A(se))
30257
+ if (ie = ne.charCodeAt(ye), A(ie))
30252
30258
  return "rtl";
30253
30259
  return "ltr";
30254
30260
  }
@@ -30257,9 +30263,9 @@ function ose() {
30257
30263
  return j.line;
30258
30264
  if (!j.track || !j.track.textTrackList || !j.track.textTrackList.mediaElement)
30259
30265
  return -1;
30260
- for (var q = j.track, ne = q.textTrackList, se = 0, re = 0; re < ne.length && ne[re] !== q; re++)
30261
- ne[re].mode === "showing" && se++;
30262
- return ++se * -1;
30266
+ for (var q = j.track, ne = q.textTrackList, ie = 0, re = 0; re < ne.length && ne[re] !== q; re++)
30267
+ ne[re].mode === "showing" && ie++;
30268
+ return ++ie * -1;
30263
30269
  }
30264
30270
  function P() {
30265
30271
  }
@@ -30272,7 +30278,7 @@ function ose() {
30272
30278
  };
30273
30279
  function M(j, q, ne) {
30274
30280
  P.call(this), this.cue = q, this.cueDiv = x(j, q.text);
30275
- var se = {
30281
+ var ie = {
30276
30282
  color: "rgba(255, 255, 255, 1)",
30277
30283
  backgroundColor: "rgba(0, 0, 0, 0.8)",
30278
30284
  position: "relative",
@@ -30284,7 +30290,7 @@ function ose() {
30284
30290
  writingMode: q.vertical === "" ? "horizontal-tb" : q.vertical === "lr" ? "vertical-lr" : "vertical-rl",
30285
30291
  unicodeBidi: "plaintext"
30286
30292
  };
30287
- this.applyStyles(se, this.cueDiv), this.div = j.document.createElement("div"), se = {
30293
+ this.applyStyles(ie, this.cueDiv), this.div = j.document.createElement("div"), ie = {
30288
30294
  direction: _(this.cueDiv),
30289
30295
  writingMode: q.vertical === "" ? "horizontal-tb" : q.vertical === "lr" ? "vertical-lr" : "vertical-rl",
30290
30296
  unicodeBidi: "plaintext",
@@ -30292,7 +30298,7 @@ function ose() {
30292
30298
  font: ne.font,
30293
30299
  whiteSpace: "pre-line",
30294
30300
  position: "absolute"
30295
- }, this.applyStyles(se), this.div.appendChild(this.cueDiv);
30301
+ }, this.applyStyles(ie), this.div.appendChild(this.cueDiv);
30296
30302
  var re = 0;
30297
30303
  switch (q.positionAlign) {
30298
30304
  case "start":
@@ -30326,13 +30332,13 @@ function ose() {
30326
30332
  }
30327
30333
  M.prototype = e(P.prototype), M.prototype.constructor = M;
30328
30334
  function I(j) {
30329
- var q, ne, se, re;
30335
+ var q, ne, ie, re;
30330
30336
  if (j.div) {
30331
- ne = j.div.offsetHeight, se = j.div.offsetWidth, re = j.div.offsetTop;
30337
+ ne = j.div.offsetHeight, ie = j.div.offsetWidth, re = j.div.offsetTop;
30332
30338
  var ce = (ce = j.div.childNodes) && (ce = ce[0]) && ce.getClientRects && ce.getClientRects();
30333
30339
  j = j.div.getBoundingClientRect(), q = ce ? Math.max(ce[0] && ce[0].height || 0, j.height / ce.length) : 0;
30334
30340
  }
30335
- this.left = j.left, this.right = j.right, this.top = j.top || re, this.height = j.height || ne, this.bottom = j.bottom || re + (j.height || ne), this.width = j.width || se, this.lineHeight = q !== void 0 ? q : j.lineHeight;
30341
+ this.left = j.left, this.right = j.right, this.top = j.top || re, this.height = j.height || ne, this.bottom = j.bottom || re + (j.height || ne), this.width = j.width || ie, this.lineHeight = q !== void 0 ? q : j.lineHeight;
30336
30342
  }
30337
30343
  I.prototype.move = function(j, q) {
30338
30344
  switch (q = q !== void 0 ? q : this.lineHeight, j) {
@@ -30370,8 +30376,8 @@ function ose() {
30370
30376
  return this.bottom > j.bottom;
30371
30377
  }
30372
30378
  }, I.prototype.intersectPercentage = function(j) {
30373
- var q = Math.max(0, Math.min(this.right, j.right) - Math.max(this.left, j.left)), ne = Math.max(0, Math.min(this.bottom, j.bottom) - Math.max(this.top, j.top)), se = q * ne;
30374
- return se / (this.height * this.width);
30379
+ var q = Math.max(0, Math.min(this.right, j.right) - Math.max(this.left, j.left)), ne = Math.max(0, Math.min(this.bottom, j.bottom) - Math.max(this.top, j.top)), ie = q * ne;
30380
+ return ie / (this.height * this.width);
30375
30381
  }, I.prototype.toCSSCompatValues = function(j) {
30376
30382
  return {
30377
30383
  top: this.top - j.top,
@@ -30382,22 +30388,22 @@ function ose() {
30382
30388
  width: this.width
30383
30389
  };
30384
30390
  }, I.getSimpleBoxPosition = function(j) {
30385
- var q = j.div ? j.div.offsetHeight : j.tagName ? j.offsetHeight : 0, ne = j.div ? j.div.offsetWidth : j.tagName ? j.offsetWidth : 0, se = j.div ? j.div.offsetTop : j.tagName ? j.offsetTop : 0;
30391
+ var q = j.div ? j.div.offsetHeight : j.tagName ? j.offsetHeight : 0, ne = j.div ? j.div.offsetWidth : j.tagName ? j.offsetWidth : 0, ie = j.div ? j.div.offsetTop : j.tagName ? j.offsetTop : 0;
30386
30392
  j = j.div ? j.div.getBoundingClientRect() : j.tagName ? j.getBoundingClientRect() : j;
30387
30393
  var re = {
30388
30394
  left: j.left,
30389
30395
  right: j.right,
30390
- top: j.top || se,
30396
+ top: j.top || ie,
30391
30397
  height: j.height || q,
30392
- bottom: j.bottom || se + (j.height || q),
30398
+ bottom: j.bottom || ie + (j.height || q),
30393
30399
  width: j.width || ne
30394
30400
  };
30395
30401
  return re;
30396
30402
  };
30397
- function $(j, q, ne, se) {
30403
+ function $(j, q, ne, ie) {
30398
30404
  function re(He, Ze) {
30399
30405
  for (var Ne, Fe = new I(He), We = 1, Ye = 0; Ye < Ze.length; Ye++) {
30400
- for (; He.overlapsOppositeAxis(ne, Ze[Ye]) || He.within(ne) && He.overlapsAny(se); )
30406
+ for (; He.overlapsOppositeAxis(ne, Ze[Ye]) || He.within(ne) && He.overlapsAny(ie); )
30401
30407
  He.move(Ze[Ye]);
30402
30408
  if (He.within(ne))
30403
30409
  return He;
@@ -30420,8 +30426,8 @@ function ose() {
30420
30426
  ge = ["-x", "+x"], Z = "width";
30421
30427
  break;
30422
30428
  }
30423
- var ie = ce.lineHeight, ee = ie * Math.round(ve), ue = ne[Z] + ie, Te = ge[0];
30424
- Math.abs(ee) > ue && (ee = ee < 0 ? -1 : 1, ee *= Math.ceil(ue / ie) * ie), ve < 0 && (ee += ye.vertical === "" ? ne.height : ne.width, ge = ge.reverse()), ce.move(Te, ee);
30429
+ var se = ce.lineHeight, ee = se * Math.round(ve), ue = ne[Z] + se, Te = ge[0];
30430
+ Math.abs(ee) > ue && (ee = ee < 0 ? -1 : 1, ee *= Math.ceil(ue / se) * se), ve < 0 && (ee += ye.vertical === "" ? ne.height : ne.width, ge = ge.reverse()), ce.move(Te, ee);
30425
30431
  } else {
30426
30432
  var Ce = ce.lineHeight / ne.height * 100;
30427
30433
  switch (ye.lineAlign) {
@@ -30475,25 +30481,25 @@ function ose() {
30475
30481
  return null;
30476
30482
  for (; ne.firstChild; )
30477
30483
  ne.removeChild(ne.firstChild);
30478
- var se = j.document.createElement("div");
30479
- se.style.position = "absolute", se.style.left = "0", se.style.right = "0", se.style.top = "0", se.style.bottom = "0", se.style.margin = X, ne.appendChild(se);
30480
- function re(ie) {
30481
- for (var ee = 0; ee < ie.length; ee++)
30482
- if (ie[ee].hasBeenReset || !ie[ee].displayState)
30484
+ var ie = j.document.createElement("div");
30485
+ ie.style.position = "absolute", ie.style.left = "0", ie.style.right = "0", ie.style.top = "0", ie.style.bottom = "0", ie.style.margin = X, ne.appendChild(ie);
30486
+ function re(se) {
30487
+ for (var ee = 0; ee < se.length; ee++)
30488
+ if (se[ee].hasBeenReset || !se[ee].displayState)
30483
30489
  return !0;
30484
30490
  return !1;
30485
30491
  }
30486
30492
  if (!re(q)) {
30487
30493
  for (var ce = 0; ce < q.length; ce++)
30488
- se.appendChild(q[ce].displayState);
30494
+ ie.appendChild(q[ce].displayState);
30489
30495
  return;
30490
30496
  }
30491
- var ye = [], ve = I.getSimpleBoxPosition(se), ge = Math.round(ve.height * W * 100) / 100, Z = {
30497
+ var ye = [], ve = I.getSimpleBoxPosition(ie), ge = Math.round(ve.height * W * 100) / 100, Z = {
30492
30498
  font: ge + "px " + G
30493
30499
  };
30494
30500
  (function() {
30495
- for (var ie, ee, ue = 0; ue < q.length; ue++)
30496
- ee = q[ue], ie = new M(j, ee, Z), se.appendChild(ie.div), $(j, ie, ve, ye), ee.displayState = ie.div, ye.push(I.getSimpleBoxPosition(ie));
30501
+ for (var se, ee, ue = 0; ue < q.length; ue++)
30502
+ ee = q[ue], se = new M(j, ee, Z), ie.appendChild(se.div), $(j, se, ve, ye), ee.displayState = se.div, ye.push(I.getSimpleBoxPosition(se));
30497
30503
  })();
30498
30504
  }, B.Parser = function(j, q, ne) {
30499
30505
  ne || (ne = q, q = {}), q || (q = {}), this.window = j, this.vttjs = q, this.state = "INITIAL", this.buffer = "", this.decoder = ne || new TextDecoder("utf8"), this.regionList = [];
@@ -30510,16 +30516,16 @@ function ose() {
30510
30516
  var q = this;
30511
30517
  j && (q.buffer += q.decoder.decode(j, { stream: !0 }));
30512
30518
  function ne() {
30513
- for (var ie = q.buffer, ee = 0; ee < ie.length && ie[ee] !== "\r" && ie[ee] !== `
30519
+ for (var se = q.buffer, ee = 0; ee < se.length && se[ee] !== "\r" && se[ee] !== `
30514
30520
  `; )
30515
30521
  ++ee;
30516
- var ue = ie.substr(0, ee);
30517
- return ie[ee] === "\r" && ++ee, ie[ee] === `
30518
- ` && ++ee, q.buffer = ie.substr(ee), ue;
30522
+ var ue = se.substr(0, ee);
30523
+ return se[ee] === "\r" && ++ee, se[ee] === `
30524
+ ` && ++ee, q.buffer = se.substr(ee), ue;
30519
30525
  }
30520
- function se(ie) {
30526
+ function ie(se) {
30521
30527
  var ee = new i();
30522
- if (a(ie, function(Te, Ce) {
30528
+ if (a(se, function(Te, Ce) {
30523
30529
  switch (Te) {
30524
30530
  case "id":
30525
30531
  ee.set(Te, Ce);
@@ -30552,9 +30558,9 @@ function ose() {
30552
30558
  });
30553
30559
  }
30554
30560
  }
30555
- function re(ie) {
30561
+ function re(se) {
30556
30562
  var ee = new i();
30557
- a(ie, function(ue, Te) {
30563
+ a(se, function(ue, Te) {
30558
30564
  switch (ue) {
30559
30565
  case "MPEGT":
30560
30566
  ee.integer(ue + "S", Te);
@@ -30568,17 +30574,17 @@ function ose() {
30568
30574
  LOCAL: ee.get("LOCAL")
30569
30575
  });
30570
30576
  }
30571
- function ce(ie) {
30572
- ie.match(/X-TIMESTAMP-MAP/) ? a(ie, function(ee, ue) {
30577
+ function ce(se) {
30578
+ se.match(/X-TIMESTAMP-MAP/) ? a(se, function(ee, ue) {
30573
30579
  switch (ee) {
30574
30580
  case "X-TIMESTAMP-MAP":
30575
30581
  re(ue);
30576
30582
  break;
30577
30583
  }
30578
- }, /=/) : a(ie, function(ee, ue) {
30584
+ }, /=/) : a(se, function(ee, ue) {
30579
30585
  switch (ee) {
30580
30586
  case "Region":
30581
- se(ue);
30587
+ ie(ue);
30582
30588
  break;
30583
30589
  }
30584
30590
  }, /:/);
@@ -30626,8 +30632,8 @@ function ose() {
30626
30632
  case "CUE":
30627
30633
  try {
30628
30634
  l(ye, q.cue, q.regionList);
30629
- } catch (ie) {
30630
- q.reportOrThrowError(ie), q.cue = null, q.state = "BADCUE";
30635
+ } catch (se) {
30636
+ q.reportOrThrowError(se), q.cue = null, q.state = "BADCUE";
30631
30637
  continue;
30632
30638
  }
30633
30639
  q.state = "CUETEXT";
@@ -30648,8 +30654,8 @@ function ose() {
30648
30654
  continue;
30649
30655
  }
30650
30656
  }
30651
- } catch (ie) {
30652
- q.reportOrThrowError(ie), q.state === "CUETEXT" && q.cue && q.oncue && q.oncue(q.cue), q.cue = null, q.state = q.state === "INITIAL" ? "BADWEBVTT" : "BADCUE";
30657
+ } catch (se) {
30658
+ q.reportOrThrowError(se), q.state === "CUETEXT" && q.cue && q.oncue && q.oncue(q.cue), q.cue = null, q.state = q.state === "INITIAL" ? "BADWEBVTT" : "BADCUE";
30653
30659
  }
30654
30660
  return this;
30655
30661
  },
@@ -32292,14 +32298,14 @@ function gU() {
32292
32298
  G.NOT_SUPPORTED_ERR = (X[9] = "Not supported", 9);
32293
32299
  var ne = G.INUSE_ATTRIBUTE_ERR = (X[10] = "Attribute in use", 10);
32294
32300
  G.INVALID_STATE_ERR = (X[11] = "Invalid state", 11), G.SYNTAX_ERR = (X[12] = "Syntax error", 12), G.INVALID_MODIFICATION_ERR = (X[13] = "Invalid modification", 13), G.NAMESPACE_ERR = (X[14] = "Invalid namespace", 14), G.INVALID_ACCESS_ERR = (X[15] = "Invalid access", 15);
32295
- function se(K, J) {
32301
+ function ie(K, J) {
32296
32302
  if (J instanceof Error)
32297
32303
  var pe = J;
32298
32304
  else
32299
- pe = this, Error.call(this, X[K]), this.message = X[K], Error.captureStackTrace && Error.captureStackTrace(this, se);
32305
+ pe = this, Error.call(this, X[K]), this.message = X[K], Error.captureStackTrace && Error.captureStackTrace(this, ie);
32300
32306
  return pe.code = K, J && (this.message = this.message + ": " + J), pe;
32301
32307
  }
32302
- se.prototype = Error.prototype, h(G, se);
32308
+ ie.prototype = Error.prototype, h(G, ie);
32303
32309
  function re() {
32304
32310
  }
32305
32311
  re.prototype = {
@@ -32371,7 +32377,7 @@ function gU() {
32371
32377
  nt && (De && Ze(nt, K, De), He(nt, K, pe));
32372
32378
  }
32373
32379
  }
32374
- function ie(K, J, pe) {
32380
+ function se(K, J, pe) {
32375
32381
  var De = ge(J, pe);
32376
32382
  if (De >= 0) {
32377
32383
  for (var nt = J.length - 1; De < nt; )
@@ -32381,7 +32387,7 @@ function gU() {
32381
32387
  Ot && (Ze(Ot, K, pe), pe.ownerElement = null);
32382
32388
  }
32383
32389
  } else
32384
- throw new se(q, new Error(K.tagName + "@" + pe));
32390
+ throw new ie(q, new Error(K.tagName + "@" + pe));
32385
32391
  }
32386
32392
  ve.prototype = {
32387
32393
  length: 0,
@@ -32396,7 +32402,7 @@ function gU() {
32396
32402
  setNamedItem: function(K) {
32397
32403
  var J = K.ownerElement;
32398
32404
  if (J && J != this._ownerElement)
32399
- throw new se(ne);
32405
+ throw new ie(ne);
32400
32406
  var pe = this.getNamedItem(K.nodeName);
32401
32407
  return Z(this._ownerElement, this, K, pe), pe;
32402
32408
  },
@@ -32404,19 +32410,19 @@ function gU() {
32404
32410
  setNamedItemNS: function(K) {
32405
32411
  var J = K.ownerElement, pe;
32406
32412
  if (J && J != this._ownerElement)
32407
- throw new se(ne);
32413
+ throw new ie(ne);
32408
32414
  return pe = this.getNamedItemNS(K.namespaceURI, K.localName), Z(this._ownerElement, this, K, pe), pe;
32409
32415
  },
32410
32416
  /* returns Node */
32411
32417
  removeNamedItem: function(K) {
32412
32418
  var J = this.getNamedItem(K);
32413
- return ie(this._ownerElement, this, J), J;
32419
+ return se(this._ownerElement, this, J), J;
32414
32420
  },
32415
32421
  // raises: NOT_FOUND_ERR,NO_MODIFICATION_ALLOWED_ERR
32416
32422
  //for level2
32417
32423
  removeNamedItemNS: function(K, J) {
32418
32424
  var pe = this.getNamedItemNS(K, J);
32419
- return ie(this._ownerElement, this, pe), pe;
32425
+ return se(this._ownerElement, this, pe), pe;
32420
32426
  },
32421
32427
  getNamedItemNS: function(K, J) {
32422
32428
  for (var pe = this.length; pe--; ) {
@@ -32672,9 +32678,9 @@ function gU() {
32672
32678
  }
32673
32679
  function Ht(K, J, pe) {
32674
32680
  if (!We(K))
32675
- throw new se(j, "Unexpected parent node type " + K.nodeType);
32681
+ throw new ie(j, "Unexpected parent node type " + K.nodeType);
32676
32682
  if (pe && pe.parentNode !== K)
32677
- throw new se(q, "child not in parent");
32683
+ throw new ie(q, "child not in parent");
32678
32684
  if (
32679
32685
  // 4. If `node` is not a DocumentFragment, DocumentType, Element, or CharacterData node, then throw a "HierarchyRequestError" DOMException.
32680
32686
  !Ye(J) || // 5. If either `node` is a Text node and `parent` is a document,
@@ -32683,7 +32689,7 @@ function gU() {
32683
32689
  // or `node` is a doctype and `parent` is not a document, then throw a "HierarchyRequestError" DOMException.
32684
32690
  at(J) && K.nodeType !== ue.DOCUMENT_NODE
32685
32691
  )
32686
- throw new se(
32692
+ throw new ie(
32687
32693
  j,
32688
32694
  "Unexpected node type " + J.nodeType + " for parent node type " + K.nodeType
32689
32695
  );
@@ -32693,20 +32699,20 @@ function gU() {
32693
32699
  if (J.nodeType === ue.DOCUMENT_FRAGMENT_NODE) {
32694
32700
  var Ot = nt.filter(Ve);
32695
32701
  if (Ot.length > 1 || e(nt, _t))
32696
- throw new se(j, "More than one element or text in fragment");
32702
+ throw new ie(j, "More than one element or text in fragment");
32697
32703
  if (Ot.length === 1 && !wt(K, pe))
32698
- throw new se(j, "Element in fragment can not be inserted before doctype");
32704
+ throw new ie(j, "Element in fragment can not be inserted before doctype");
32699
32705
  }
32700
32706
  if (Ve(J) && !wt(K, pe))
32701
- throw new se(j, "Only one element can be added and only after doctype");
32707
+ throw new ie(j, "Only one element can be added and only after doctype");
32702
32708
  if (at(J)) {
32703
32709
  if (e(De, at))
32704
- throw new se(j, "Only one doctype is allowed");
32710
+ throw new ie(j, "Only one doctype is allowed");
32705
32711
  var Bn = e(De, Ve);
32706
32712
  if (pe && De.indexOf(Bn) < De.indexOf(pe))
32707
- throw new se(j, "Doctype can only be inserted before an element");
32713
+ throw new ie(j, "Doctype can only be inserted before an element");
32708
32714
  if (!pe && Bn)
32709
- throw new se(j, "Doctype can not be appended since element is present");
32715
+ throw new ie(j, "Doctype can not be appended since element is present");
32710
32716
  }
32711
32717
  }
32712
32718
  function cn(K, J, pe) {
@@ -32714,20 +32720,20 @@ function gU() {
32714
32720
  if (J.nodeType === ue.DOCUMENT_FRAGMENT_NODE) {
32715
32721
  var Ot = nt.filter(Ve);
32716
32722
  if (Ot.length > 1 || e(nt, _t))
32717
- throw new se(j, "More than one element or text in fragment");
32723
+ throw new ie(j, "More than one element or text in fragment");
32718
32724
  if (Ot.length === 1 && !Gt(K, pe))
32719
- throw new se(j, "Element in fragment can not be inserted before doctype");
32725
+ throw new ie(j, "Element in fragment can not be inserted before doctype");
32720
32726
  }
32721
32727
  if (Ve(J) && !Gt(K, pe))
32722
- throw new se(j, "Only one element can be added and only after doctype");
32728
+ throw new ie(j, "Only one element can be added and only after doctype");
32723
32729
  if (at(J)) {
32724
32730
  if (e(De, function(ts) {
32725
32731
  return at(ts) && ts !== pe;
32726
32732
  }))
32727
- throw new se(j, "Only one doctype is allowed");
32733
+ throw new ie(j, "Only one doctype is allowed");
32728
32734
  var Bn = e(De, Ve);
32729
32735
  if (pe && De.indexOf(Bn) < De.indexOf(pe))
32730
- throw new se(j, "Doctype can only be inserted before an element");
32736
+ throw new ie(j, "Doctype can only be inserted before an element");
32731
32737
  }
32732
32738
  }
32733
32739
  function An(K, J, pe, De) {
@@ -33232,7 +33238,7 @@ function gU() {
33232
33238
  }
33233
33239
  } catch {
33234
33240
  }
33235
- return Zc.DocumentType = en, Zc.DOMException = se, Zc.DOMImplementation = ee, Zc.Element = Jt, Zc.Node = ue, Zc.NodeList = re, Zc.XMLSerializer = Lt, Zc;
33241
+ return Zc.DocumentType = en, Zc.DOMException = ie, Zc.DOMImplementation = ee, Zc.Element = Jt, Zc.Node = ue, Zc.NodeList = re, Zc.XMLSerializer = Lt, Zc;
33236
33242
  }
33237
33243
  var ib = {}, fD = {}, zL;
33238
33244
  function Bse() {
@@ -35387,17 +35393,17 @@ function Use() {
35387
35393
  }
35388
35394
  S.prototype = {
35389
35395
  parse: function(j, q, ne) {
35390
- var se = this.domBuilder;
35391
- se.startDocument(), $(q, q = {}), A(
35396
+ var ie = this.domBuilder;
35397
+ ie.startDocument(), $(q, q = {}), A(
35392
35398
  j,
35393
35399
  q,
35394
35400
  ne,
35395
- se,
35401
+ ie,
35396
35402
  this.errorHandler
35397
- ), se.endDocument();
35403
+ ), ie.endDocument();
35398
35404
  }
35399
35405
  };
35400
- function A(j, q, ne, se, re) {
35406
+ function A(j, q, ne, ie, re) {
35401
35407
  function ce(Jt) {
35402
35408
  if (Jt > 65535) {
35403
35409
  Jt -= 65536;
@@ -35413,21 +35419,21 @@ function Use() {
35413
35419
  function ve(Jt) {
35414
35420
  if (Jt > Pe) {
35415
35421
  var Rn = j.substring(Pe, Jt).replace(/&#?\w+;/g, ye);
35416
- ue && ge(Pe), se.characters(Rn, 0, Jt - Pe), Pe = Jt;
35422
+ ue && ge(Pe), ie.characters(Rn, 0, Jt - Pe), Pe = Jt;
35417
35423
  }
35418
35424
  }
35419
35425
  function ge(Jt, Rn) {
35420
- for (; Jt >= ie && (Rn = ee.exec(j)); )
35421
- Z = Rn.index, ie = Z + Rn[0].length, ue.lineNumber++;
35426
+ for (; Jt >= se && (Rn = ee.exec(j)); )
35427
+ Z = Rn.index, se = Z + Rn[0].length, ue.lineNumber++;
35422
35428
  ue.columnNumber = Jt - Z + 1;
35423
35429
  }
35424
- for (var Z = 0, ie = 0, ee = /.*(?:\r\n?|\n)|.*$/g, ue = se.locator, Te = [{ currentNSMap: q }], Ce = {}, Pe = 0; ; ) {
35430
+ for (var Z = 0, se = 0, ee = /.*(?:\r\n?|\n)|.*$/g, ue = ie.locator, Te = [{ currentNSMap: q }], Ce = {}, Pe = 0; ; ) {
35425
35431
  try {
35426
35432
  var He = j.indexOf("<", Pe);
35427
35433
  if (He < 0) {
35428
35434
  if (!j.substr(Pe).match(/^\s*$/)) {
35429
- var Ze = se.doc, Ne = Ze.createTextNode(j.substr(Pe));
35430
- Ze.appendChild(Ne), se.currentElement = Ne;
35435
+ var Ze = ie.doc, Ne = Ze.createTextNode(j.substr(Pe));
35436
+ Ze.appendChild(Ne), ie.currentElement = Ne;
35431
35437
  }
35432
35438
  return;
35433
35439
  }
@@ -35437,9 +35443,9 @@ function Use() {
35437
35443
  Ht < 0 ? (Fe = j.substring(He + 2).replace(/[\s<].*/, ""), re.error("end tag name: " + Fe + " is not complete:" + We.tagName), Ht = He + 1 + Fe.length) : Fe.match(/\s</) && (Fe = Fe.replace(/[\s<].*/, ""), re.error("end tag name: " + Fe + " maybe not complete"), Ht = He + 1 + Fe.length);
35438
35444
  var Ye = We.localNSMap, at = We.tagName == Fe, Ve = at || We.tagName && We.tagName.toLowerCase() == Fe.toLowerCase();
35439
35445
  if (Ve) {
35440
- if (se.endElement(We.uri, We.localName, Fe), Ye)
35446
+ if (ie.endElement(We.uri, We.localName, Fe), Ye)
35441
35447
  for (var _t in Ye)
35442
- Object.prototype.hasOwnProperty.call(Ye, _t) && se.endPrefixMapping(_t);
35448
+ Object.prototype.hasOwnProperty.call(Ye, _t) && ie.endPrefixMapping(_t);
35443
35449
  at || re.fatalError("end tag name: " + Fe + " is not match the current start tagName:" + We.tagName);
35444
35450
  } else
35445
35451
  Te.push(We);
@@ -35447,10 +35453,10 @@ function Use() {
35447
35453
  break;
35448
35454
  // end elment
35449
35455
  case "?":
35450
- ue && ge(He), Ht = W(j, He, se);
35456
+ ue && ge(He), Ht = W(j, He, ie);
35451
35457
  break;
35452
35458
  case "!":
35453
- ue && ge(He), Ht = B(j, He, se, re);
35459
+ ue && ge(He), Ht = B(j, He, ie, re);
35454
35460
  break;
35455
35461
  default:
35456
35462
  ue && ge(He);
@@ -35460,10 +35466,10 @@ function Use() {
35460
35466
  var Ut = wt[An];
35461
35467
  ge(Ut.offset), Ut.locator = _(ue, {});
35462
35468
  }
35463
- se.locator = cn, P(wt, se, Gt) && Te.push(wt), se.locator = ue;
35469
+ ie.locator = cn, P(wt, ie, Gt) && Te.push(wt), ie.locator = ue;
35464
35470
  } else
35465
- P(wt, se, Gt) && Te.push(wt);
35466
- t.isHTML(wt.uri) && !wt.closed ? Ht = M(j, Ht, wt.tagName, ye, se) : Ht++;
35471
+ P(wt, ie, Gt) && Te.push(wt);
35472
+ t.isHTML(wt.uri) && !wt.closed ? Ht = M(j, Ht, wt.tagName, ye, ie) : Ht++;
35467
35473
  }
35468
35474
  } catch (Jt) {
35469
35475
  if (Jt instanceof x)
@@ -35476,7 +35482,7 @@ function Use() {
35476
35482
  function _(j, q) {
35477
35483
  return q.lineNumber = j.lineNumber, q.columnNumber = j.columnNumber, q;
35478
35484
  }
35479
- function E(j, q, ne, se, re, ce) {
35485
+ function E(j, q, ne, ie, re, ce) {
35480
35486
  function ye(ue, Te, Ce) {
35481
35487
  ne.attributeNames.hasOwnProperty(ue) && ce.fatalError("Attribute " + ue + " redefined"), ne.addValue(
35482
35488
  ue,
@@ -35488,37 +35494,37 @@ function Use() {
35488
35494
  Ce
35489
35495
  );
35490
35496
  }
35491
- for (var ve, ge, Z = ++q, ie = i; ; ) {
35497
+ for (var ve, ge, Z = ++q, se = i; ; ) {
35492
35498
  var ee = j.charAt(Z);
35493
35499
  switch (ee) {
35494
35500
  case "=":
35495
- if (ie === a)
35496
- ve = j.slice(q, Z), ie = c;
35497
- else if (ie === l)
35498
- ie = c;
35501
+ if (se === a)
35502
+ ve = j.slice(q, Z), se = c;
35503
+ else if (se === l)
35504
+ se = c;
35499
35505
  else
35500
35506
  throw new Error("attribute equal must after attrName");
35501
35507
  break;
35502
35508
  case "'":
35503
35509
  case '"':
35504
- if (ie === c || ie === a)
35505
- if (ie === a && (ce.warning('attribute value must after "="'), ve = j.slice(q, Z)), q = Z + 1, Z = j.indexOf(ee, q), Z > 0)
35506
- ge = j.slice(q, Z), ye(ve, ge, q - 1), ie = p;
35510
+ if (se === c || se === a)
35511
+ if (se === a && (ce.warning('attribute value must after "="'), ve = j.slice(q, Z)), q = Z + 1, Z = j.indexOf(ee, q), Z > 0)
35512
+ ge = j.slice(q, Z), ye(ve, ge, q - 1), se = p;
35507
35513
  else
35508
35514
  throw new Error("attribute value no end '" + ee + "' match");
35509
- else if (ie == h)
35510
- ge = j.slice(q, Z), ye(ve, ge, q), ce.warning('attribute "' + ve + '" missed start quot(' + ee + ")!!"), q = Z + 1, ie = p;
35515
+ else if (se == h)
35516
+ ge = j.slice(q, Z), ye(ve, ge, q), ce.warning('attribute "' + ve + '" missed start quot(' + ee + ")!!"), q = Z + 1, se = p;
35511
35517
  else
35512
35518
  throw new Error('attribute value must after "="');
35513
35519
  break;
35514
35520
  case "/":
35515
- switch (ie) {
35521
+ switch (se) {
35516
35522
  case i:
35517
35523
  ne.setTagName(j.slice(q, Z));
35518
35524
  case p:
35519
35525
  case m:
35520
35526
  case b:
35521
- ie = b, ne.closed = !0;
35527
+ se = b, ne.closed = !0;
35522
35528
  case h:
35523
35529
  case a:
35524
35530
  break;
@@ -35531,9 +35537,9 @@ function Use() {
35531
35537
  }
35532
35538
  break;
35533
35539
  case "":
35534
- return ce.error("unexpected end of input"), ie == i && ne.setTagName(j.slice(q, Z)), Z;
35540
+ return ce.error("unexpected end of input"), se == i && ne.setTagName(j.slice(q, Z)), Z;
35535
35541
  case ">":
35536
- switch (ie) {
35542
+ switch (se) {
35537
35543
  case i:
35538
35544
  ne.setTagName(j.slice(q, Z));
35539
35545
  case p:
@@ -35546,7 +35552,7 @@ function Use() {
35546
35552
  case a:
35547
35553
  ge = j.slice(q, Z), ge.slice(-1) === "/" && (ne.closed = !0, ge = ge.slice(0, -1));
35548
35554
  case l:
35549
- ie === l && (ge = ve), ie == h ? (ce.warning('attribute "' + ge + '" missed quot(")!'), ye(ve, ge, q)) : ((!t.isHTML(se[""]) || !ge.match(/^(?:disabled|checked|selected)$/i)) && ce.warning('attribute "' + ge + '" missed value!! "' + ge + '" instead!!'), ye(ge, ge, q));
35555
+ se === l && (ge = ve), se == h ? (ce.warning('attribute "' + ge + '" missed quot(")!'), ye(ve, ge, q)) : ((!t.isHTML(ie[""]) || !ge.match(/^(?:disabled|checked|selected)$/i)) && ce.warning('attribute "' + ge + '" missed value!! "' + ge + '" instead!!'), ye(ge, ge, q));
35550
35556
  break;
35551
35557
  case c:
35552
35558
  throw new Error("attribute value missed!!");
@@ -35557,35 +35563,35 @@ function Use() {
35557
35563
  ee = " ";
35558
35564
  default:
35559
35565
  if (ee <= " ")
35560
- switch (ie) {
35566
+ switch (se) {
35561
35567
  case i:
35562
- ne.setTagName(j.slice(q, Z)), ie = m;
35568
+ ne.setTagName(j.slice(q, Z)), se = m;
35563
35569
  break;
35564
35570
  case a:
35565
- ve = j.slice(q, Z), ie = l;
35571
+ ve = j.slice(q, Z), se = l;
35566
35572
  break;
35567
35573
  case h:
35568
35574
  var ge = j.slice(q, Z);
35569
35575
  ce.warning('attribute "' + ge + '" missed quot(")!!'), ye(ve, ge, q);
35570
35576
  case p:
35571
- ie = m;
35577
+ se = m;
35572
35578
  break;
35573
35579
  }
35574
35580
  else
35575
- switch (ie) {
35581
+ switch (se) {
35576
35582
  //case S_TAG:void();break;
35577
35583
  //case S_ATTR:void();break;
35578
35584
  //case S_ATTR_NOQUOT_VALUE:void();break;
35579
35585
  case l:
35580
- ne.tagName, (!t.isHTML(se[""]) || !ve.match(/^(?:disabled|checked|selected)$/i)) && ce.warning('attribute "' + ve + '" missed value!! "' + ve + '" instead2!!'), ye(ve, ve, q), q = Z, ie = a;
35586
+ ne.tagName, (!t.isHTML(ie[""]) || !ve.match(/^(?:disabled|checked|selected)$/i)) && ce.warning('attribute "' + ve + '" missed value!! "' + ve + '" instead2!!'), ye(ve, ve, q), q = Z, se = a;
35581
35587
  break;
35582
35588
  case p:
35583
35589
  ce.warning('attribute space is required"' + ve + '"!!');
35584
35590
  case m:
35585
- ie = a, q = Z;
35591
+ se = a, q = Z;
35586
35592
  break;
35587
35593
  case c:
35588
- ie = h, q = Z;
35594
+ se = h, q = Z;
35589
35595
  break;
35590
35596
  case b:
35591
35597
  throw new Error("elements closed character '/' and '>' must be connected to");
@@ -35595,52 +35601,52 @@ function Use() {
35595
35601
  }
35596
35602
  }
35597
35603
  function P(j, q, ne) {
35598
- for (var se = j.tagName, re = null, ee = j.length; ee--; ) {
35604
+ for (var ie = j.tagName, re = null, ee = j.length; ee--; ) {
35599
35605
  var ce = j[ee], ye = ce.qName, ve = ce.value, ue = ye.indexOf(":");
35600
35606
  if (ue > 0)
35601
- var ge = ce.prefix = ye.slice(0, ue), Z = ye.slice(ue + 1), ie = ge === "xmlns" && Z;
35607
+ var ge = ce.prefix = ye.slice(0, ue), Z = ye.slice(ue + 1), se = ge === "xmlns" && Z;
35602
35608
  else
35603
- Z = ye, ge = null, ie = ye === "xmlns" && "";
35604
- ce.localName = Z, ie !== !1 && (re == null && (re = {}, $(ne, ne = {})), ne[ie] = re[ie] = ve, ce.uri = t.XMLNS, q.startPrefixMapping(ie, ve));
35609
+ Z = ye, ge = null, se = ye === "xmlns" && "";
35610
+ ce.localName = Z, se !== !1 && (re == null && (re = {}, $(ne, ne = {})), ne[se] = re[se] = ve, ce.uri = t.XMLNS, q.startPrefixMapping(se, ve));
35605
35611
  }
35606
35612
  for (var ee = j.length; ee--; ) {
35607
35613
  ce = j[ee];
35608
35614
  var ge = ce.prefix;
35609
35615
  ge && (ge === "xml" && (ce.uri = t.XML), ge !== "xmlns" && (ce.uri = ne[ge || ""]));
35610
35616
  }
35611
- var ue = se.indexOf(":");
35612
- ue > 0 ? (ge = j.prefix = se.slice(0, ue), Z = j.localName = se.slice(ue + 1)) : (ge = null, Z = j.localName = se);
35617
+ var ue = ie.indexOf(":");
35618
+ ue > 0 ? (ge = j.prefix = ie.slice(0, ue), Z = j.localName = ie.slice(ue + 1)) : (ge = null, Z = j.localName = ie);
35613
35619
  var Te = j.uri = ne[ge || ""];
35614
- if (q.startElement(Te, Z, se, j), j.closed) {
35615
- if (q.endElement(Te, Z, se), re)
35620
+ if (q.startElement(Te, Z, ie, j), j.closed) {
35621
+ if (q.endElement(Te, Z, ie), re)
35616
35622
  for (ge in re)
35617
35623
  Object.prototype.hasOwnProperty.call(re, ge) && q.endPrefixMapping(ge);
35618
35624
  } else
35619
35625
  return j.currentNSMap = ne, j.localNSMap = re, !0;
35620
35626
  }
35621
- function M(j, q, ne, se, re) {
35627
+ function M(j, q, ne, ie, re) {
35622
35628
  if (/^(?:script|textarea)$/i.test(ne)) {
35623
35629
  var ce = j.indexOf("</" + ne + ">", q), ye = j.substring(q + 1, ce);
35624
35630
  if (/[&<]/.test(ye))
35625
- return /^script$/i.test(ne) ? (re.characters(ye, 0, ye.length), ce) : (ye = ye.replace(/&#?\w+;/g, se), re.characters(ye, 0, ye.length), ce);
35631
+ return /^script$/i.test(ne) ? (re.characters(ye, 0, ye.length), ce) : (ye = ye.replace(/&#?\w+;/g, ie), re.characters(ye, 0, ye.length), ce);
35626
35632
  }
35627
35633
  return q + 1;
35628
35634
  }
35629
- function I(j, q, ne, se) {
35630
- var re = se[ne];
35631
- return re == null && (re = j.lastIndexOf("</" + ne + ">"), re < q && (re = j.lastIndexOf("</" + ne)), se[ne] = re), re < q;
35635
+ function I(j, q, ne, ie) {
35636
+ var re = ie[ne];
35637
+ return re == null && (re = j.lastIndexOf("</" + ne + ">"), re < q && (re = j.lastIndexOf("</" + ne)), ie[ne] = re), re < q;
35632
35638
  }
35633
35639
  function $(j, q) {
35634
35640
  for (var ne in j)
35635
35641
  Object.prototype.hasOwnProperty.call(j, ne) && (q[ne] = j[ne]);
35636
35642
  }
35637
- function B(j, q, ne, se) {
35643
+ function B(j, q, ne, ie) {
35638
35644
  var re = j.charAt(q + 2);
35639
35645
  switch (re) {
35640
35646
  case "-":
35641
35647
  if (j.charAt(q + 3) === "-") {
35642
35648
  var ce = j.indexOf("-->", q + 4);
35643
- return ce > q ? (ne.comment(j, q + 4, ce - q - 4), ce + 3) : (se.error("Unclosed comment"), -1);
35649
+ return ce > q ? (ne.comment(j, q + 4, ce - q - 4), ce + 3) : (ie.error("Unclosed comment"), -1);
35644
35650
  } else
35645
35651
  return -1;
35646
35652
  default:
@@ -35650,19 +35656,19 @@ function Use() {
35650
35656
  }
35651
35657
  var ye = X(j, q), ve = ye.length;
35652
35658
  if (ve > 1 && /!doctype/i.test(ye[0][0])) {
35653
- var ge = ye[1][0], Z = !1, ie = !1;
35654
- ve > 3 && (/^public$/i.test(ye[2][0]) ? (Z = ye[3][0], ie = ve > 4 && ye[4][0]) : /^system$/i.test(ye[2][0]) && (ie = ye[3][0]));
35659
+ var ge = ye[1][0], Z = !1, se = !1;
35660
+ ve > 3 && (/^public$/i.test(ye[2][0]) ? (Z = ye[3][0], se = ve > 4 && ye[4][0]) : /^system$/i.test(ye[2][0]) && (se = ye[3][0]));
35655
35661
  var ee = ye[ve - 1];
35656
- return ne.startDTD(ge, Z, ie), ne.endDTD(), ee.index + ee[0].length;
35662
+ return ne.startDTD(ge, Z, se), ne.endDTD(), ee.index + ee[0].length;
35657
35663
  }
35658
35664
  }
35659
35665
  return -1;
35660
35666
  }
35661
35667
  function W(j, q, ne) {
35662
- var se = j.indexOf("?>", q);
35663
- if (se) {
35664
- var re = j.substring(q, se).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);
35665
- return re ? (re[0].length, ne.processingInstruction(re[1], re[2]), se + 2) : -1;
35668
+ var ie = j.indexOf("?>", q);
35669
+ if (ie) {
35670
+ var re = j.substring(q, ie).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);
35671
+ return re ? (re[0].length, ne.processingInstruction(re[1], re[2]), ie + 2) : -1;
35666
35672
  }
35667
35673
  return -1;
35668
35674
  }
@@ -35708,9 +35714,9 @@ function Use() {
35708
35714
  // getType:function(i){},
35709
35715
  };
35710
35716
  function X(j, q) {
35711
- var ne, se = [], re = /'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;
35717
+ var ne, ie = [], re = /'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;
35712
35718
  for (re.lastIndex = q, re.exec(j); ne = re.exec(j); )
35713
- if (se.push(ne), ne[1]) return se;
35719
+ if (ie.push(ne), ne[1]) return ie;
35714
35720
  }
35715
35721
  return G_.XMLReader = S, G_.ParseError = x, G_;
35716
35722
  }
@@ -54077,7 +54083,7 @@ browserWorkerPolyFill(self);
54077
54083
  }, a = {
54078
54084
  getUint64: i,
54079
54085
  MAX_UINT32: r
54080
- }, l = a.MAX_UINT32, c, h, p, m, b, x, S, A, _, E, P, M, I, $, B, W, G, X, j, q, ne, se, re, ce, ye, ve, ge, Z, ie, ee, ue, Te, Ce, Pe, He, Ze;
54086
+ }, l = a.MAX_UINT32, c, h, p, m, b, x, S, A, _, E, P, M, I, $, B, W, G, X, j, q, ne, ie, re, ce, ye, ve, ge, Z, se, ee, ue, Te, Ce, Pe, He, Ze;
54081
54087
  (function() {
54082
54088
  var y;
54083
54089
  if (re = {
@@ -54214,7 +54220,7 @@ browserWorkerPolyFill(self);
54214
54220
  114,
54215
54221
  0
54216
54222
  // name: 'SoundHandler'
54217
- ]), ie = {
54223
+ ]), se = {
54218
54224
  video: ge,
54219
54225
  audio: Z
54220
54226
  }, Te = new Uint8Array([
@@ -54375,7 +54381,7 @@ browserWorkerPolyFill(self);
54375
54381
  }, m = function() {
54376
54382
  return c(re.ftyp, ce, ye, ce, ve);
54377
54383
  }, W = function(y) {
54378
- return c(re.hdlr, ie[y]);
54384
+ return c(re.hdlr, se[y]);
54379
54385
  }, b = function(y) {
54380
54386
  return c(re.mdat, y);
54381
54387
  }, B = function(y) {
@@ -54919,7 +54925,7 @@ browserWorkerPolyFill(self);
54919
54925
  oe >>> 16 & 255,
54920
54926
  oe >>> 8 & 255,
54921
54927
  oe & 255
54922
- ])), V = 92, y.type === "audio" ? (k = se(y, V), c(re.traf, C, D, k)) : (F = G(y), k = se(y, F.length + V), c(re.traf, C, D, k, F));
54928
+ ])), V = 92, y.type === "audio" ? (k = ie(y, V), c(re.traf, C, D, k)) : (F = G(y), k = ie(y, F.length + V), c(re.traf, C, D, k, F));
54923
54929
  }, M = function(y) {
54924
54930
  return y.duration = y.duration || 4294967295, c(re.trak, I(y), $(y));
54925
54931
  }, ne = function(y) {
@@ -54989,7 +54995,7 @@ browserWorkerPolyFill(self);
54989
54995
  for (de = k.samples || [], F += 20 + 8 * de.length, oe = D(de, F), V = new Uint8Array(oe.length + de.length * 8), V.set(oe), te = oe.length, _e = 0; _e < de.length; _e++)
54990
54996
  he = de[_e], V[te++] = (he.duration & 4278190080) >>> 24, V[te++] = (he.duration & 16711680) >>> 16, V[te++] = (he.duration & 65280) >>> 8, V[te++] = he.duration & 255, V[te++] = (he.size & 4278190080) >>> 24, V[te++] = (he.size & 16711680) >>> 16, V[te++] = (he.size & 65280) >>> 8, V[te++] = he.size & 255;
54991
54997
  return c(re.trun, V);
54992
- }, se = function(k, F) {
54998
+ }, ie = function(k, F) {
54993
54999
  return k.type === "audio" ? y(k, F) : C(k, F);
54994
55000
  };
54995
55001
  }();
@@ -59024,12 +59030,12 @@ const gv = function(t) {
59024
59030
  segment: r,
59025
59031
  keyInfo: ne
59026
59032
  });
59027
- const se = t(j, q);
59028
- M.push(se);
59033
+ const ie = t(j, q);
59034
+ M.push(ie);
59029
59035
  }
59030
59036
  if (r.map && !r.map.bytes) {
59031
59037
  if (r.map.key && (!r.key || r.key.resolvedUri !== r.map.key.resolvedUri)) {
59032
- const se = Zn(e, {
59038
+ const ie = Zn(e, {
59033
59039
  uri: r.map.key.resolvedUri,
59034
59040
  responseType: "arraybuffer",
59035
59041
  requestType: "segment-key"
@@ -59041,7 +59047,7 @@ const gv = function(t) {
59041
59047
  segment: r,
59042
59048
  keyInfo: ce
59043
59049
  });
59044
- const ye = t(se, re);
59050
+ const ye = t(ie, re);
59045
59051
  M.push(ye);
59046
59052
  }
59047
59053
  const j = Zn(e, {
@@ -62419,12 +62425,12 @@ const Cce = g9(v9(function() {
62419
62425
  const _ = [[[], [], [], [], []], [[], [], [], [], []]], E = _[0], P = _[1], M = E[4], I = P[4];
62420
62426
  let $, B, W;
62421
62427
  const G = [], X = [];
62422
- let j, q, ne, se, re, ce;
62428
+ let j, q, ne, ie, re, ce;
62423
62429
  for ($ = 0; $ < 256; $++)
62424
62430
  X[(G[$] = $ << 1 ^ ($ >> 7) * 283) ^ $] = $;
62425
62431
  for (B = W = 0; !M[B]; B ^= j || 1, W = X[W] || 1)
62426
- for (se = W ^ W << 1 ^ W << 2 ^ W << 3 ^ W << 4, se = se >> 8 ^ se & 255 ^ 99, M[B] = se, I[se] = B, ne = G[q = G[j = G[B]]], ce = ne * 16843009 ^ q * 65537 ^ j * 257 ^ B * 16843008, re = G[se] * 257 ^ se * 16843008, $ = 0; $ < 4; $++)
62427
- E[$][B] = re = re << 24 ^ re >>> 8, P[$][se] = ce = ce << 24 ^ ce >>> 8;
62432
+ for (ie = W ^ W << 1 ^ W << 2 ^ W << 3 ^ W << 4, ie = ie >> 8 ^ ie & 255 ^ 99, M[B] = ie, I[ie] = B, ne = G[q = G[j = G[B]]], ce = ne * 16843009 ^ q * 65537 ^ j * 257 ^ B * 16843008, re = G[ie] * 257 ^ ie * 16843008, $ = 0; $ < 4; $++)
62433
+ E[$][B] = re = re << 24 ^ re >>> 8, P[$][ie] = ce = ce << 24 ^ ce >>> 8;
62428
62434
  for ($ = 0; $ < 5; $++)
62429
62435
  E[$] = E[$].slice(0), P[$] = P[$].slice(0);
62430
62436
  return _;
@@ -62459,12 +62465,12 @@ const Cce = g9(v9(function() {
62459
62465
  */
62460
62466
  decrypt(E, P, M, I, $, B) {
62461
62467
  const W = this._key[1];
62462
- let G = E ^ W[0], X = I ^ W[1], j = M ^ W[2], q = P ^ W[3], ne, se, re;
62468
+ let G = E ^ W[0], X = I ^ W[1], j = M ^ W[2], q = P ^ W[3], ne, ie, re;
62463
62469
  const ce = W.length / 4 - 2;
62464
62470
  let ye, ve = 4;
62465
- const ge = this._tables[1], Z = ge[0], ie = ge[1], ee = ge[2], ue = ge[3], Te = ge[4];
62471
+ const ge = this._tables[1], Z = ge[0], se = ge[1], ee = ge[2], ue = ge[3], Te = ge[4];
62466
62472
  for (ye = 0; ye < ce; ye++)
62467
- ne = Z[G >>> 24] ^ ie[X >> 16 & 255] ^ ee[j >> 8 & 255] ^ ue[q & 255] ^ W[ve], se = Z[X >>> 24] ^ ie[j >> 16 & 255] ^ ee[q >> 8 & 255] ^ ue[G & 255] ^ W[ve + 1], re = Z[j >>> 24] ^ ie[q >> 16 & 255] ^ ee[G >> 8 & 255] ^ ue[X & 255] ^ W[ve + 2], q = Z[q >>> 24] ^ ie[G >> 16 & 255] ^ ee[X >> 8 & 255] ^ ue[j & 255] ^ W[ve + 3], ve += 4, G = ne, X = se, j = re;
62473
+ ne = Z[G >>> 24] ^ se[X >> 16 & 255] ^ ee[j >> 8 & 255] ^ ue[q & 255] ^ W[ve], ie = Z[X >>> 24] ^ se[j >> 16 & 255] ^ ee[q >> 8 & 255] ^ ue[G & 255] ^ W[ve + 1], re = Z[j >>> 24] ^ se[q >> 16 & 255] ^ ee[G >> 8 & 255] ^ ue[X & 255] ^ W[ve + 2], q = Z[q >>> 24] ^ se[G >> 16 & 255] ^ ee[X >> 8 & 255] ^ ue[j & 255] ^ W[ve + 3], ve += 4, G = ne, X = ie, j = re;
62468
62474
  for (ye = 0; ye < 4; ye++)
62469
62475
  $[(3 & -ye) + B] = Te[G >>> 24] << 24 ^ Te[X >> 16 & 255] << 16 ^ Te[j >> 8 & 255] << 8 ^ Te[q & 255] ^ W[ve++], ne = G, G = X, X = j, j = q, q = ne;
62470
62476
  }
@@ -62494,9 +62500,9 @@ const Cce = g9(v9(function() {
62494
62500
  return _ << 24 | (_ & 65280) << 8 | (_ & 16711680) >> 8 | _ >>> 24;
62495
62501
  }, c = function(_, E, P) {
62496
62502
  const M = new Int32Array(_.buffer, _.byteOffset, _.byteLength >> 2), I = new i(Array.prototype.slice.call(E)), $ = new Uint8Array(_.byteLength), B = new Int32Array($.buffer);
62497
- let W, G, X, j, q, ne, se, re, ce;
62503
+ let W, G, X, j, q, ne, ie, re, ce;
62498
62504
  for (W = P[0], G = P[1], X = P[2], j = P[3], ce = 0; ce < M.length; ce += 4)
62499
- q = l(M[ce]), ne = l(M[ce + 1]), se = l(M[ce + 2]), re = l(M[ce + 3]), I.decrypt(q, ne, se, re, B, ce), B[ce] = l(B[ce] ^ W), B[ce + 1] = l(B[ce + 1] ^ G), B[ce + 2] = l(B[ce + 2] ^ X), B[ce + 3] = l(B[ce + 3] ^ j), W = q, G = ne, X = se, j = re;
62505
+ q = l(M[ce]), ne = l(M[ce + 1]), ie = l(M[ce + 2]), re = l(M[ce + 3]), I.decrypt(q, ne, ie, re, B, ce), B[ce] = l(B[ce] ^ W), B[ce + 1] = l(B[ce + 1] ^ G), B[ce + 2] = l(B[ce + 2] ^ X), B[ce + 3] = l(B[ce + 3] ^ j), W = q, G = ne, X = ie, j = re;
62500
62506
  return $;
62501
62507
  };
62502
62508
  class h {
@@ -66189,8 +66195,8 @@ const kde = (t) => Lf(t) ? iP(t) ? t : "" : t, Pde = ({
66189
66195
  if (!q || q <= 0) return;
66190
66196
  const ne = j.el().querySelector(".vjs-progress-control");
66191
66197
  if (!ne) return;
66192
- const se = ne.querySelector(".vjs-progress-holder");
66193
- se && (m.current.forEach((re) => {
66198
+ const ie = ne.querySelector(".vjs-progress-holder");
66199
+ ie && (m.current.forEach((re) => {
66194
66200
  re && re.parentNode && re.parentNode.removeChild(re);
66195
66201
  }), m.current = [], b.forEach((re, ce) => {
66196
66202
  if (re.startSeconds !== null && re.endSeconds !== null)
@@ -66200,7 +66206,7 @@ const kde = (t) => Lf(t) ? iP(t) ? t : "" : t, Pde = ({
66200
66206
  const ye = document.createElement("div");
66201
66207
  ye.className = "vjs-time-range-highlight", ye.style.backgroundColor = "rgba(255, 204, 0, 0.5)", ye.style.borderLeft = "2px solid rgba(255, 204, 0, 0.8)", ye.style.borderRight = "2px solid rgba(255, 204, 0, 0.8)";
66202
66208
  const ve = re.startSeconds / q * 100, Z = re.endSeconds / q * 100 - ve;
66203
- ye.style.left = `${ve}%`, ye.style.width = `${Z}%`, se.appendChild(ye), m.current[ce] = ye;
66209
+ ye.style.left = `${ve}%`, ye.style.width = `${Z}%`, ie.appendChild(ye), m.current[ce] = ye;
66204
66210
  } catch (ye) {
66205
66211
  console.error(`Error creating highlight for range ${ce}:`, ye);
66206
66212
  }
@@ -66213,23 +66219,23 @@ const kde = (t) => Lf(t) ? iP(t) ? t : "" : t, Pde = ({
66213
66219
  console.log("Cut timestamps received:", { starting_s: j, ending_s: q });
66214
66220
  const ne = (Z) => {
66215
66221
  Z = Z.replace(/"/g, "");
66216
- const ie = Z.split(":");
66222
+ const se = Z.split(":");
66217
66223
  let ee = 0;
66218
- return ie.length === 3 ? ee = parseInt(ie[0]) * 3600 + parseInt(ie[1]) * 60 + parseFloat(ie[2]) : ie.length === 2 ? ee = parseInt(ie[0]) * 60 + parseFloat(ie[1]) : ee = parseFloat(ie[0]), ee;
66219
- }, se = ne(j), re = ne(q);
66220
- if (console.log("Parsed to seconds:", { startTime: se, endTime: re }), isNaN(se) || isNaN(re)) {
66224
+ return se.length === 3 ? ee = parseInt(se[0]) * 3600 + parseInt(se[1]) * 60 + parseFloat(se[2]) : se.length === 2 ? ee = parseInt(se[0]) * 60 + parseFloat(se[1]) : ee = parseFloat(se[0]), ee;
66225
+ }, ie = ne(j), re = ne(q);
66226
+ if (console.log("Parsed to seconds:", { startTime: ie, endTime: re }), isNaN(ie) || isNaN(re)) {
66221
66227
  console.error("Invalid timestamp values:", { starting_s: j, ending_s: q });
66222
66228
  return;
66223
66229
  }
66224
66230
  const ce = (Z) => {
66225
- const ie = Math.floor(Z / 3600), ee = Math.floor(Z % 3600 / 60), ue = Math.floor(Z % 60);
66226
- return `${ie.toString().padStart(2, "0")}:${ee.toString().padStart(2, "0")}:${ue.toString().padStart(2, "0")}`;
66231
+ const se = Math.floor(Z / 3600), ee = Math.floor(Z % 3600 / 60), ue = Math.floor(Z % 60);
66232
+ return `${se.toString().padStart(2, "0")}:${ee.toString().padStart(2, "0")}:${ue.toString().padStart(2, "0")}`;
66227
66233
  }, ye = [...b], ve = ye.findIndex(
66228
66234
  (Z) => (!Z.start || Z.start === "") && (!Z.end || Z.end === "")
66229
66235
  ), ge = {
66230
- start: ce(se),
66236
+ start: ce(ie),
66231
66237
  end: ce(re),
66232
- startSeconds: se,
66238
+ startSeconds: ie,
66233
66239
  endSeconds: re,
66234
66240
  label: `Segment ${ve >= 0 ? ve + 1 : ye.length + 1}`
66235
66241
  };
@@ -66300,8 +66306,8 @@ const kde = (t) => Lf(t) ? iP(t) ? t : "" : t, Pde = ({
66300
66306
  }, [b, l, n == null ? void 0 : n.videoLink]), nn(() => {
66301
66307
  if (!h.current) return;
66302
66308
  const j = () => {
66303
- var ve, ge, Z, ie, ee, ue;
66304
- const se = ((ve = h.current) == null ? void 0 : ve.currentTime()) || 0;
66309
+ var ve, ge, Z, se, ee, ue;
66310
+ const ie = ((ve = h.current) == null ? void 0 : ve.currentTime()) || 0;
66305
66311
  if ($(h.current), (ge = h.current) != null && ge.paused())
66306
66312
  return;
66307
66313
  const re = b.filter(
@@ -66312,29 +66318,29 @@ const kde = (t) => Lf(t) ? iP(t) ? t : "" : t, Pde = ({
66312
66318
  let ce = !1, ye = -1;
66313
66319
  for (let Te = 0; Te < re.length; Te++) {
66314
66320
  const Ce = re[Te];
66315
- if (Ce.startSeconds !== null && Ce.endSeconds !== null && se >= Ce.startSeconds && se < Ce.endSeconds) {
66321
+ if (Ce.startSeconds !== null && Ce.endSeconds !== null && ie >= Ce.startSeconds && ie < Ce.endSeconds) {
66316
66322
  ce = !0, ye = Te;
66317
66323
  break;
66318
66324
  }
66319
66325
  }
66320
66326
  if (ce) {
66321
66327
  const Te = re[ye];
66322
- if (Te.endSeconds && se >= Te.endSeconds - 0.1)
66328
+ if (Te.endSeconds && ie >= Te.endSeconds - 0.1)
66323
66329
  if (ye < re.length - 1) {
66324
66330
  const Ce = re[ye + 1];
66325
- Ce.startSeconds !== null && (console.log(`Jumping from segment ${ye + 1} to segment ${ye + 2}`), (ie = h.current) == null || ie.currentTime(Ce.startSeconds));
66331
+ Ce.startSeconds !== null && (console.log(`Jumping from segment ${ye + 1} to segment ${ye + 2}`), (se = h.current) == null || se.currentTime(Ce.startSeconds));
66326
66332
  } else
66327
66333
  console.log("Reached end of last segment, pausing"), (ee = h.current) == null || ee.pause(), (ue = h.current) == null || ue.currentTime(Te.endSeconds - 0.1);
66328
66334
  } else
66329
66335
  for (let Te = 0; Te < re.length; Te++) {
66330
66336
  const Ce = re[Te];
66331
- if (Ce.startSeconds !== null && se < Ce.startSeconds) {
66337
+ if (Ce.startSeconds !== null && ie < Ce.startSeconds) {
66332
66338
  console.log(`Jumping to segment ${Te + 1} at ${Ce.startSeconds}s`), (Z = h.current) == null || Z.currentTime(Ce.startSeconds);
66333
66339
  break;
66334
66340
  }
66335
66341
  }
66336
66342
  }, q = () => {
66337
- const se = h.current.currentTime() || 0, re = b.filter(
66343
+ const ie = h.current.currentTime() || 0, re = b.filter(
66338
66344
  (ye) => ye.startSeconds !== null && ye.endSeconds !== null && ye.startSeconds >= 0 && ye.endSeconds > ye.startSeconds
66339
66345
  );
66340
66346
  if (re.length === 0) {
@@ -66343,7 +66349,7 @@ const kde = (t) => Lf(t) ? iP(t) ? t : "" : t, Pde = ({
66343
66349
  }
66344
66350
  let ce = !1;
66345
66351
  for (const ye of re)
66346
- if (ye.startSeconds !== null && ye.endSeconds !== null && se >= ye.startSeconds && se < ye.endSeconds) {
66352
+ if (ye.startSeconds !== null && ye.endSeconds !== null && ie >= ye.startSeconds && ie < ye.endSeconds) {
66347
66353
  ce = !0;
66348
66354
  break;
66349
66355
  }
@@ -66351,11 +66357,11 @@ const kde = (t) => Lf(t) ? iP(t) ? t : "" : t, Pde = ({
66351
66357
  }, ne = () => {
66352
66358
  var re, ce;
66353
66359
  (re = h.current) == null || re.pause();
66354
- const se = b.filter(
66360
+ const ie = b.filter(
66355
66361
  (ye) => ye.startSeconds !== null && ye.endSeconds !== null
66356
66362
  );
66357
- if (se.length > 0) {
66358
- const ye = se[se.length - 1];
66363
+ if (ie.length > 0) {
66364
+ const ye = ie[ie.length - 1];
66359
66365
  ye.endSeconds !== null && ((ce = h.current) == null || ce.currentTime(ye.endSeconds - 0.1));
66360
66366
  }
66361
66367
  };
@@ -66366,13 +66372,13 @@ const kde = (t) => Lf(t) ? iP(t) ? t : "" : t, Pde = ({
66366
66372
  const G = (j) => {
66367
66373
  const q = j.textTracks();
66368
66374
  for (let ne = q.length - 1; ne >= 0; ne--) {
66369
- const se = q[ne];
66370
- j.removeRemoteTextTrack(se);
66375
+ const ie = q[ne];
66376
+ j.removeRemoteTextTrack(ie);
66371
66377
  }
66372
66378
  }, X = (j, q) => {
66373
66379
  const ne = j.textTracks();
66374
- for (let se = 0; se < ne.length; se++)
66375
- if (ne[se].language === q)
66380
+ for (let ie = 0; ie < ne.length; ie++)
66381
+ if (ne[ie].language === q)
66376
66382
  return !0;
66377
66383
  return !1;
66378
66384
  };
@@ -66382,9 +66388,9 @@ const kde = (t) => Lf(t) ? iP(t) ? t : "" : t, Pde = ({
66382
66388
  if (M && !h.current) {
66383
66389
  const j = Lf(M), q = !j && rU(M) === "audio", ne = document.createElement("video-js");
66384
66390
  ne.classList.add("vjs-big-play-centered", "vjs-theme-city"), j ? ne.classList.add("vjs-youtube") : q && ne.classList.add("vjs-default-skin", "videojs-audio"), c.current && c.current.appendChild(ne);
66385
- const se = kde(M), re = Ae(
66391
+ const ie = kde(M), re = Ae(
66386
66392
  ne,
66387
- Q9(se, t),
66393
+ Q9(ie, t),
66388
66394
  () => {
66389
66395
  Ae.log("player is ready"), S(re), re.currentTime(P), A(!0);
66390
66396
  }
@@ -66418,16 +66424,16 @@ const kde = (t) => Lf(t) ? iP(t) ? t : "" : t, Pde = ({
66418
66424
  }
66419
66425
  }
66420
66426
  Z && (Z.innerHTML = FS);
66421
- const ie = document.createElement("div");
66422
- ie.className = "vjs-control-group", ie.appendChild(
66427
+ const se = document.createElement("div");
66428
+ se.className = "vjs-control-group", se.appendChild(
66423
66429
  re.controlBar.getChild("customPlayforwardButton").el()
66424
- ), ie.appendChild(
66430
+ ), se.appendChild(
66425
66431
  re.controlBar.getChild("customPlaybackButton").el()
66426
- ), ie.appendChild(
66432
+ ), se.appendChild(
66427
66433
  re.controlBar.getChild("customPlayButton").el()
66428
- ), ie.appendChild(
66434
+ ), se.appendChild(
66429
66435
  re.controlBar.getChild("customPlaybackButton").el()
66430
- ), re.controlBar.el().appendChild(ie);
66436
+ ), re.controlBar.el().appendChild(se);
66431
66437
  }), re.on("loadedmetadata", () => {
66432
66438
  const ve = re.duration();
66433
66439
  _ && _(ve || 0), $(re);
@@ -66506,13 +66512,13 @@ const kde = (t) => Lf(t) ? iP(t) ? t : "" : t, Pde = ({
66506
66512
  var q;
66507
66513
  const j = h.current;
66508
66514
  if ((q = j == null ? void 0 : j.textTracks()) != null && q.length && G(j), j && (t == null ? void 0 : t.length) !== 0) {
66509
- t == null || t.forEach((se) => {
66510
- X(j, se.srclang) || j.addRemoteTextTrack(se);
66515
+ t == null || t.forEach((ie) => {
66516
+ X(j, ie.srclang) || j.addRemoteTextTrack(ie);
66511
66517
  });
66512
66518
  const ne = j.controlBar.getChild("SubsCapsButton");
66513
66519
  if (ne && ne.items && ne.items[0]) {
66514
- const se = ne.items[0].el().lastElementChild;
66515
- se && (se.innerHTML = X9);
66520
+ const ie = ne.items[0].el().lastElementChild;
66521
+ ie && (ie.innerHTML = X9);
66516
66522
  }
66517
66523
  }
66518
66524
  }, [t]), nn(() => {
@@ -66602,12 +66608,12 @@ const kde = (t) => Lf(t) ? iP(t) ? t : "" : t, Pde = ({
66602
66608
  if (!_) {
66603
66609
  const q = I.controlBar.getChild("SubsCapsButton"), ne = I.controlBar.getChild("PictureInPictureToggle");
66604
66610
  if (ne) {
66605
- const se = ne.el().childNodes[1];
66606
- se && (se.innerHTML = lU);
66611
+ const ie = ne.el().childNodes[1];
66612
+ ie && (ie.innerHTML = lU);
66607
66613
  }
66608
66614
  if (q) {
66609
- const se = q.el().childNodes[0].childNodes[1];
66610
- se && (se.innerHTML = oU);
66615
+ const ie = q.el().childNodes[0].childNodes[1];
66616
+ ie && (ie.innerHTML = oU);
66611
66617
  }
66612
66618
  }
66613
66619
  X && (X.innerHTML = FS);
@@ -68716,8 +68722,8 @@ function Ohe(t) {
68716
68722
  const q = Array.isArray(I) ? I : [I];
68717
68723
  let ne = q.reduce(i(P), {});
68718
68724
  B === !1 && (ne = {});
68719
- const { prevResolvedValues: se = {} } = M, re = {
68720
- ...se,
68725
+ const { prevResolvedValues: ie = {} } = M, re = {
68726
+ ...ie,
68721
68727
  ...ne
68722
68728
  }, ce = (ge) => {
68723
68729
  X = !0, x.has(ge) && (j = !0, x.delete(ge)), M.needsAnimating[ge] = !0;
@@ -68725,11 +68731,11 @@ function Ohe(t) {
68725
68731
  Z && (Z.liveStyle = !1);
68726
68732
  };
68727
68733
  for (const ge in re) {
68728
- const Z = ne[ge], ie = se[ge];
68734
+ const Z = ne[ge], se = ie[ge];
68729
68735
  if (S.hasOwnProperty(ge))
68730
68736
  continue;
68731
68737
  let ee = !1;
68732
- rR(Z) && rR(ie) ? ee = !Z9(Z, ie) : ee = Z !== ie, ee ? Z != null ? ce(ge) : x.add(ge) : Z !== void 0 && x.has(ge) ? ce(ge) : M.protectedKeys[ge] = !0;
68738
+ rR(Z) && rR(se) ? ee = !Z9(Z, se) : ee = Z !== se, ee ? Z != null ? ce(ge) : x.add(ge) : Z !== void 0 && x.has(ge) ? ce(ge) : M.protectedKeys[ge] = !0;
68733
68739
  }
68734
68740
  M.prevProp = I, M.prevResolvedValues = ne, M.isActive && (S = { ...S, ...ne }), r && t.blockInitialAnimation && (X = !1), X && (!(W && G) || j) && b.push(...q.map((ge) => ({
68735
68741
  animation: ge,
@@ -71951,8 +71957,8 @@ class Lv extends f1 {
71951
71957
  if (B.preventDefault(), B.stopPropagation(), h && Date.now() - _ < c) return;
71952
71958
  const W = B.clientX, G = B.clientY, X = W - x, j = G - S;
71953
71959
  if (A || Math.abs(X) > a || Math.abs(j) > a) {
71954
- const q = e.getBoundingClientRect(), { left: ne, top: se } = q;
71955
- A || (r == null || r(x - ne, S - se), A = !0), n(X, j, W - ne, G - se), x = W, S = G;
71960
+ const q = e.getBoundingClientRect(), { left: ne, top: ie } = q;
71961
+ A || (r == null || r(x - ne, S - ie), A = !0), n(X, j, W - ne, G - ie), x = W, S = G;
71956
71962
  }
71957
71963
  }, P = (B) => {
71958
71964
  if (A) {
@@ -72921,7 +72927,7 @@ const wge = (t) => ({
72921
72927
  }, S = UP(i), A = BP(S), _ = await l.getDimensions(p), E = S === "y", P = E ? "top" : "left", M = E ? "bottom" : "right", I = E ? "clientHeight" : "clientWidth", $ = a.reference[A] + a.reference[S] - x[S] - a.floating[A], B = x[S] - a.reference[S], W = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(p));
72922
72928
  let G = W ? W[I] : 0;
72923
72929
  (!G || !await (l.isElement == null ? void 0 : l.isElement(W))) && (G = c.floating[I] || a.floating[A]);
72924
- const X = $ / 2 - B / 2, j = G / 2 - _[A] / 2 - 1, q = jf(b[P], j), ne = jf(b[M], j), se = q, re = G - _[A] - ne, ce = G / 2 - _[A] / 2 + X, ye = TR(se, ce, re), ve = !h.arrow && t0(i) != null && ce !== ye && a.reference[A] / 2 - (ce < se ? q : ne) - _[A] / 2 < 0, ge = ve ? ce < se ? ce - se : ce - re : 0;
72930
+ const X = $ / 2 - B / 2, j = G / 2 - _[A] / 2 - 1, q = jf(b[P], j), ne = jf(b[M], j), ie = q, re = G - _[A] - ne, ce = G / 2 - _[A] / 2 + X, ye = TR(ie, ce, re), ve = !h.arrow && t0(i) != null && ce !== ye && a.reference[A] / 2 - (ce < ie ? q : ne) - _[A] / 2 < 0, ge = ve ? ce < ie ? ce - ie : ce - re : 0;
72925
72931
  return {
72926
72932
  [S]: x[S] + ge,
72927
72933
  data: {
@@ -72970,7 +72976,7 @@ const wge = (t) => ({
72970
72976
  placement: i,
72971
72977
  overflows: j
72972
72978
  }], !j.every((ce) => ce <= 0)) {
72973
- var ne, se;
72979
+ var ne, ie;
72974
72980
  const ce = (((ne = a.flip) == null ? void 0 : ne.index) || 0) + 1, ye = G[ce];
72975
72981
  if (ye)
72976
72982
  return {
@@ -72982,20 +72988,20 @@ const wge = (t) => ({
72982
72988
  placement: ye
72983
72989
  }
72984
72990
  };
72985
- let ve = (se = q.filter((ge) => ge.overflows[0] <= 0).sort((ge, Z) => ge.overflows[1] - Z.overflows[1])[0]) == null ? void 0 : se.placement;
72991
+ let ve = (ie = q.filter((ge) => ge.overflows[0] <= 0).sort((ge, Z) => ge.overflows[1] - Z.overflows[1])[0]) == null ? void 0 : ie.placement;
72986
72992
  if (!ve)
72987
72993
  switch (S) {
72988
72994
  case "bestFit": {
72989
72995
  var re;
72990
72996
  const ge = (re = q.filter((Z) => {
72991
72997
  if (W) {
72992
- const ie = Hf(Z.placement);
72993
- return ie === M || // Create a bias to the `y` side axis due to horizontal
72998
+ const se = Hf(Z.placement);
72999
+ return se === M || // Create a bias to the `y` side axis due to horizontal
72994
73000
  // reading directions favoring greater width.
72995
- ie === "y";
73001
+ se === "y";
72996
73002
  }
72997
73003
  return !0;
72998
- }).map((Z) => [Z.placement, Z.overflows.filter((ie) => ie > 0).reduce((ie, ee) => ie + ee, 0)]).sort((Z, ie) => Z[1] - ie[1])[0]) == null ? void 0 : re[0];
73004
+ }).map((Z) => [Z.placement, Z.overflows.filter((se) => se > 0).reduce((se, ee) => se + ee, 0)]).sort((Z, se) => Z[1] - se[1])[0]) == null ? void 0 : re[0];
72999
73005
  ge && (ve = ge);
73000
73006
  break;
73001
73007
  }
@@ -73238,8 +73244,8 @@ const Age = function(t) {
73238
73244
  const M = _ - m.top - m.bottom, I = A - m.left - m.right, $ = jf(_ - m[E], M), B = jf(A - m[P], I), W = !e.middlewareData.shift;
73239
73245
  let G = $, X = B;
73240
73246
  if ((n = e.middlewareData.shift) != null && n.enabled.x && (X = I), (r = e.middlewareData.shift) != null && r.enabled.y && (G = M), W && !x) {
73241
- const q = ho(m.left, 0), ne = ho(m.right, 0), se = ho(m.top, 0), re = ho(m.bottom, 0);
73242
- S ? X = A - 2 * (q !== 0 || ne !== 0 ? q + ne : ho(m.left, m.right)) : G = _ - 2 * (se !== 0 || re !== 0 ? se + re : ho(m.top, m.bottom));
73247
+ const q = ho(m.left, 0), ne = ho(m.right, 0), ie = ho(m.top, 0), re = ho(m.bottom, 0);
73248
+ S ? X = A - 2 * (q !== 0 || ne !== 0 ? q + ne : ho(m.left, m.right)) : G = _ - 2 * (ie !== 0 || re !== 0 ? ie + re : ho(m.top, m.bottom));
73243
73249
  }
73244
73250
  await h({
73245
73251
  ...e,
@@ -73814,7 +73820,7 @@ function U$(t) {
73814
73820
  Z !== W.current && (W.current = Z, _(Z));
73815
73821
  }, []), I = N.useCallback((Z) => {
73816
73822
  Z !== G.current && (G.current = Z, P(Z));
73817
- }, []), $ = a || A, B = l || E, W = N.useRef(null), G = N.useRef(null), X = N.useRef(m), j = h != null, q = WD(h), ne = WD(i), se = WD(p), re = N.useCallback(() => {
73823
+ }, []), $ = a || A, B = l || E, W = N.useRef(null), G = N.useRef(null), X = N.useRef(m), j = h != null, q = WD(h), ne = WD(i), ie = WD(p), re = N.useCallback(() => {
73818
73824
  if (!W.current || !G.current)
73819
73825
  return;
73820
73826
  const Z = {
@@ -73822,20 +73828,20 @@ function U$(t) {
73822
73828
  strategy: n,
73823
73829
  middleware: x
73824
73830
  };
73825
- ne.current && (Z.platform = ne.current), tve(W.current, G.current, Z).then((ie) => {
73831
+ ne.current && (Z.platform = ne.current), tve(W.current, G.current, Z).then((se) => {
73826
73832
  const ee = {
73827
- ...ie,
73833
+ ...se,
73828
73834
  // The floating element's position may be recomputed while it's closed
73829
73835
  // but still mounted (such as when transitioning out). To ensure
73830
73836
  // `isPositioned` will be `false` initially on the next open, avoid
73831
73837
  // setting it to `true` when `open === false` (must be specified).
73832
- isPositioned: se.current !== !1
73838
+ isPositioned: ie.current !== !1
73833
73839
  };
73834
73840
  ce.current && !gx(X.current, ee) && (X.current = ee, Vp.flushSync(() => {
73835
73841
  b(ee);
73836
73842
  }));
73837
73843
  });
73838
- }, [x, e, n, ne, se]);
73844
+ }, [x, e, n, ne, ie]);
73839
73845
  CS(() => {
73840
73846
  p === !1 && X.current.isPositioned && (X.current.isPositioned = !1, b((Z) => ({
73841
73847
  ...Z,
@@ -73868,16 +73874,16 @@ function U$(t) {
73868
73874
  };
73869
73875
  if (!ve.floating)
73870
73876
  return Z;
73871
- const ie = A8(ve.floating, m.x), ee = A8(ve.floating, m.y);
73877
+ const se = A8(ve.floating, m.x), ee = A8(ve.floating, m.y);
73872
73878
  return c ? {
73873
73879
  ...Z,
73874
- transform: "translate(" + ie + "px, " + ee + "px)",
73880
+ transform: "translate(" + se + "px, " + ee + "px)",
73875
73881
  ...B$(ve.floating) >= 1.5 && {
73876
73882
  willChange: "transform"
73877
73883
  }
73878
73884
  } : {
73879
73885
  position: n,
73880
- left: ie,
73886
+ left: se,
73881
73887
  top: ee
73882
73888
  };
73883
73889
  }, [n, c, ve.floating, m.x, m.y]);
@@ -74003,11 +74009,11 @@ var qP = "PopperContent", [ave, ove] = K$(qP), ej = N.forwardRef(
74003
74009
  updatePositionStrategy: S = "optimized",
74004
74010
  onPlaced: A,
74005
74011
  ..._
74006
- } = t, E = X$(qP, n), [P, M] = N.useState(null), I = Jn(e, (_t) => M(_t)), [$, B] = N.useState(null), W = Y$($), G = (W == null ? void 0 : W.width) ?? 0, X = (W == null ? void 0 : W.height) ?? 0, j = r + (a !== "center" ? "-" + a : ""), q = typeof m == "number" ? m : { top: 0, right: 0, bottom: 0, left: 0, ...m }, ne = Array.isArray(p) ? p : [p], se = ne.length > 0, re = {
74012
+ } = t, E = X$(qP, n), [P, M] = N.useState(null), I = Jn(e, (_t) => M(_t)), [$, B] = N.useState(null), W = Y$($), G = (W == null ? void 0 : W.width) ?? 0, X = (W == null ? void 0 : W.height) ?? 0, j = r + (a !== "center" ? "-" + a : ""), q = typeof m == "number" ? m : { top: 0, right: 0, bottom: 0, left: 0, ...m }, ne = Array.isArray(p) ? p : [p], ie = ne.length > 0, re = {
74007
74013
  padding: q,
74008
74014
  boundary: ne.filter(uve),
74009
74015
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
74010
- altBoundary: se
74016
+ altBoundary: ie
74011
74017
  }, { refs: ce, floatingStyles: ye, placement: ve, isPositioned: ge, middlewareData: Z } = U$({
74012
74018
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
74013
74019
  strategy: "fixed",
@@ -74038,7 +74044,7 @@ var qP = "PopperContent", [ave, ove] = K$(qP), ej = N.forwardRef(
74038
74044
  cve({ arrowWidth: G, arrowHeight: X }),
74039
74045
  x && q$({ strategy: "referenceHidden", ...re })
74040
74046
  ]
74041
- }), [ie, ee] = rj(ve), ue = ga(A);
74047
+ }), [se, ee] = rj(ve), ue = ga(A);
74042
74048
  zs(() => {
74043
74049
  ge && (ue == null || ue());
74044
74050
  }, [ge, ue]);
@@ -74073,7 +74079,7 @@ var qP = "PopperContent", [ave, ove] = K$(qP), ej = N.forwardRef(
74073
74079
  ave,
74074
74080
  {
74075
74081
  scope: n,
74076
- placedSide: ie,
74082
+ placedSide: se,
74077
74083
  onArrowChange: B,
74078
74084
  arrowX: Te,
74079
74085
  arrowY: Ce,
@@ -74081,7 +74087,7 @@ var qP = "PopperContent", [ave, ove] = K$(qP), ej = N.forwardRef(
74081
74087
  children: /* @__PURE__ */ z(
74082
74088
  Mn.div,
74083
74089
  {
74084
- "data-side": ie,
74090
+ "data-side": se,
74085
74091
  "data-align": ee,
74086
74092
  ..._,
74087
74093
  ref: I,
@@ -75265,7 +75271,7 @@ const P8 = Bl(
75265
75271
  setTranscript: S,
75266
75272
  setTranscriptId: A
75267
75273
  }) => {
75268
- const { refreshTrimmedClips: _, refreshTrimmedDirectory: E } = YR(), { videoIsReady: P, videoDuration: M } = $n(), { focusTrimmedClip: I, setFocusTrimmedClip: $ } = VR(), { setAlertDialog: B } = Rx(), { trimmedClips: W } = Up(), { mainFilePath: G } = ov(), { getTrimmedClip: X, updateTrimClip: j } = WR(), q = Cr(null), ne = Cr(null), se = Cr(!1), [re, ce] = Sn(!1), [ye, ve] = Sn(!1), [ge, Z] = Sn(a), [ie, ee] = Sn(!1), [ue, Te] = Sn(!1), [Ce, Pe] = Sn(!1), [He, Ze] = Sn(!1), [Ne, Fe] = Sn(
75274
+ const { refreshTrimmedClips: _, refreshTrimmedDirectory: E } = YR(), { videoIsReady: P, videoDuration: M } = $n(), { focusTrimmedClip: I, setFocusTrimmedClip: $ } = VR(), { setAlertDialog: B } = Rx(), { trimmedClips: W } = Up(), { mainFilePath: G } = ov(), { getTrimmedClip: X, updateTrimClip: j } = WR(), q = Cr(null), ne = Cr(null), ie = Cr(!1), [re, ce] = Sn(!1), [ye, ve] = Sn(!1), [ge, Z] = Sn(a), [se, ee] = Sn(!1), [ue, Te] = Sn(!1), [Ce, Pe] = Sn(!1), [He, Ze] = Sn(!1), [Ne, Fe] = Sn(
75269
75275
  qn("00:00:00", r, n)
75270
75276
  ), [We, Ye] = Sn(
75271
75277
  qn("00:00:00", i, n)
@@ -75348,7 +75354,7 @@ const P8 = Bl(
75348
75354
  (an = ne.current) == null || an.handleProcessClipTrigger(), Pe(!1);
75349
75355
  }, 20);
75350
75356
  }
75351
- else sn.code === "KeyX" && (!l || !ie && !h || ue) && B && B({
75357
+ else sn.code === "KeyX" && (!l || !se && !h || ue) && B && B({
75352
75358
  ...wj.delete,
75353
75359
  onConfirm: () => {
75354
75360
  var an;
@@ -75365,7 +75371,7 @@ const P8 = Bl(
75365
75371
  return dn > 0 ? `${dn}m ${en}s` : `${en}s`;
75366
75372
  }, [r, i]), Rn = async (sn, dn) => {
75367
75373
  var en, an, er;
75368
- if (se.current)
75374
+ if (ie.current)
75369
75375
  try {
75370
75376
  j && x && (await j({
75371
75377
  clip_id: t,
@@ -75374,7 +75380,7 @@ const P8 = Bl(
75374
75380
  channel_name: G.split("/")[2],
75375
75381
  sources: [
75376
75382
  {
75377
- source: ((en = m[0]) == null ? void 0 : en.source) || G || "",
75383
+ source: ((en = m == null ? void 0 : m[0]) == null ? void 0 : en.source) || G || "",
75378
75384
  timestamp_start: sn,
75379
75385
  timestamp_end: dn
75380
75386
  }
@@ -75388,7 +75394,7 @@ const P8 = Bl(
75388
75394
  }), _({
75389
75395
  source: G || "",
75390
75396
  access_token: x || ""
75391
- })), se.current = !1;
75397
+ })), ie.current = !1;
75392
75398
  } catch (Nn) {
75393
75399
  console.error("Error updating trimmed clip:", Nn), Wo({
75394
75400
  description: ((er = (an = Nn == null ? void 0 : Nn.response) == null ? void 0 : an.data) == null ? void 0 : er.server_response) || "Failed to update trim points",
@@ -75397,15 +75403,15 @@ const P8 = Bl(
75397
75403
  qn("00:00:00", r, n)
75398
75404
  ), Ye(
75399
75405
  qn("00:00:00", i, n)
75400
- ), se.current = !1;
75406
+ ), ie.current = !1;
75401
75407
  }
75402
75408
  }, wn = (sn) => {
75403
- if (l || ie) return;
75409
+ if (l || se) return;
75404
75410
  sn.stopPropagation(), Ht("right"), wt(!0);
75405
75411
  const dn = sn.clientX, en = We;
75406
75412
  let an = en;
75407
75413
  const er = (et) => {
75408
- se.current = !0;
75414
+ ie.current = !0;
75409
75415
  const tt = et.clientX - dn, Lt = 60, Yt = W && (t === O3(W, P) || W.length === 1);
75410
75416
  let mn;
75411
75417
  if (Yt)
@@ -75429,21 +75435,21 @@ const P8 = Bl(
75429
75435
  const In = an / n, kn = po(In);
75430
75436
  Ve(kn || "");
75431
75437
  }, Nn = () => {
75432
- if (document.removeEventListener("mousemove", er), document.removeEventListener("mouseup", Nn), wt(!1), Ht(null), se.current) {
75438
+ if (document.removeEventListener("mousemove", er), document.removeEventListener("mouseup", Nn), wt(!1), Ht(null), ie.current) {
75433
75439
  const et = an / n, tt = Math.floor(et / 3600), Lt = Math.floor(et % 3600 / 60), Yt = Math.floor(et % 60), mn = Math.round(et % 1 * 1e3), In = `${tt.toString().padStart(2, "0")}:${Lt.toString().padStart(2, "0")}:${Yt.toString().padStart(2, "0")}.${mn.toString().padStart(3, "0")}`;
75434
75440
  Rn(r, In);
75435
75441
  }
75436
- se.current = !1;
75442
+ ie.current = !1;
75437
75443
  };
75438
75444
  document.addEventListener("mousemove", er), document.addEventListener("mouseup", Nn);
75439
75445
  }, or = (sn) => {
75440
- if (l || ie) return;
75446
+ if (l || se) return;
75441
75447
  sn.stopPropagation(), Ht("left"), wt(!0);
75442
75448
  const dn = sn.clientX, en = Ne;
75443
75449
  let an = en;
75444
75450
  const er = (et) => {
75445
75451
  var rr;
75446
- se.current = !0;
75452
+ ie.current = !0;
75447
75453
  const tt = et.clientX - dn, Lt = 60, Yt = W && t === M3("00:00:00", W) ? 0 : ((rr = W == null ? void 0 : W.find(
75448
75454
  (fn) => L_(
75449
75455
  fn.id,
@@ -75461,11 +75467,11 @@ const P8 = Bl(
75461
75467
  const In = an / n, kn = po(In);
75462
75468
  Ve(kn || "");
75463
75469
  }, Nn = () => {
75464
- if (document.removeEventListener("mousemove", er), document.removeEventListener("mouseup", Nn), wt(!1), Ht(null), se.current) {
75470
+ if (document.removeEventListener("mousemove", er), document.removeEventListener("mouseup", Nn), wt(!1), Ht(null), ie.current) {
75465
75471
  const et = an / n, tt = Math.floor(et / 3600), Lt = Math.floor(et % 3600 / 60), Yt = Math.floor(et % 60), mn = Math.round(et % 1 * 1e3), In = `${tt.toString().padStart(2, "0")}:${Lt.toString().padStart(2, "0")}:${Yt.toString().padStart(2, "0")}.${mn.toString().padStart(3, "0")}`;
75466
75472
  Rn(In, i);
75467
75473
  }
75468
- se.current = !1;
75474
+ ie.current = !1;
75469
75475
  };
75470
75476
  document.addEventListener("mousemove", er), document.addEventListener("mouseup", Nn);
75471
75477
  };
@@ -75507,10 +75513,10 @@ const P8 = Bl(
75507
75513
  l && c === "done" && "bg-salina-green-400",
75508
75514
  l && c === "verified" && "bg-blue-100",
75509
75515
  l && (c == null ? void 0 : c.includes("error")) && "bg-red-100",
75510
- ie && "bg-[#ffebe9]",
75516
+ se && "bg-[#ffebe9]",
75511
75517
  re && "border-[3px] border-[#e47167]",
75512
75518
  cn <= 60 && He && "hover-expanded z-[60]",
75513
- se.current && "cursor-grabbing"
75519
+ ie.current && "cursor-grabbing"
75514
75520
  ),
75515
75521
  style: {
75516
75522
  left: `${Ne}px`,
@@ -75563,7 +75569,7 @@ const P8 = Bl(
75563
75569
  isDone: l,
75564
75570
  redirect: h,
75565
75571
  toggleRetry: ue,
75566
- isProcessing: ie,
75572
+ isProcessing: se,
75567
75573
  setIsProcessing: ee,
75568
75574
  mainFilePath: G,
75569
75575
  setIsModalOpen: Pe,
@@ -75627,7 +75633,7 @@ const P8 = Bl(
75627
75633
  isDone: l,
75628
75634
  redirect: h,
75629
75635
  toggleRetry: ue,
75630
- isProcessing: ie,
75636
+ isProcessing: se,
75631
75637
  setIsProcessing: ee,
75632
75638
  mainFilePath: G,
75633
75639
  setIsModalOpen: Pe,
@@ -76004,7 +76010,7 @@ const a0e = va(Nj), o0e = ({
76004
76010
  nn(() => {
76005
76011
  r && B(r);
76006
76012
  }, [r]);
76007
- const se = sr(() => {
76013
+ const ie = sr(() => {
76008
76014
  const [Fe, We, Ye] = ne.split(":").map((Gt) => +Gt), [at] = l3(
76009
76015
  new Date(2e3, 0, 1, 0, 0, 0),
76010
76016
  new Date(2e3, 0, 1, Fe, We, Ye),
@@ -76051,12 +76057,12 @@ const a0e = va(Nj), o0e = ({
76051
76057
  ).split(" ");
76052
76058
  return +at * $;
76053
76059
  }, [ne, $]), ce = sr(() => {
76054
- if (se) {
76055
- const Fe = se[se.length - 1] || "00:00:00.000";
76060
+ if (ie) {
76061
+ const Fe = ie[ie.length - 1] || "00:00:00.000";
76056
76062
  return qn(ne, Fe, $);
76057
76063
  }
76058
76064
  return 0;
76059
- }, [ne, se, $]), ye = (Fe) => {
76065
+ }, [ne, ie, $]), ye = (Fe) => {
76060
76066
  a.current && (a.current.scrollLeft = c3(Fe, $));
76061
76067
  };
76062
76068
  nn(() => {
@@ -76102,7 +76108,7 @@ const a0e = va(Nj), o0e = ({
76102
76108
  "00:00:00",
76103
76109
  po(A),
76104
76110
  $
76105
- ), [ie, ee] = Sn(!0);
76111
+ ), [se, ee] = Sn(!0);
76106
76112
  nn(() => {
76107
76113
  ee(!0);
76108
76114
  let Fe = null;
@@ -76148,13 +76154,13 @@ const a0e = va(Nj), o0e = ({
76148
76154
  s0e,
76149
76155
  {
76150
76156
  playerRef: S,
76151
- timestamps: se,
76157
+ timestamps: ie,
76152
76158
  zoomSize: $,
76153
76159
  videoDuration: A,
76154
76160
  setVideoCurrentTime: E
76155
76161
  }
76156
76162
  ),
76157
- [se, $]
76163
+ [ie, $]
76158
76164
  ), Pe = sr(
76159
76165
  () => /* @__PURE__ */ z(Bve, {}),
76160
76166
  [$, re]
@@ -76178,8 +76184,8 @@ const a0e = va(Nj), o0e = ({
76178
76184
  P
76179
76185
  ]
76180
76186
  ), Ze = sr(
76181
- () => /* @__PURE__ */ z(a0e, { ref: l, isLoading: ie }),
76182
- [ie]
76187
+ () => /* @__PURE__ */ z(a0e, { ref: l, isLoading: se }),
76188
+ [se]
76183
76189
  ), Ne = sr(
76184
76190
  () => /* @__PURE__ */ z(
76185
76191
  r0e,
@@ -76396,7 +76402,7 @@ const f0e = ({ className: t }) => /* @__PURE__ */ ut(
76396
76402
  (Z) => Z.setVideoMetadata
76397
76403
  ), W = ov((Z) => Z.mainFilePath), G = ov((Z) => Z.setMainFilePath), X = ov(
76398
76404
  (Z) => Z.setTrimmedFilePath
76399
- ), [j, q] = Sn(!1), [ne, se] = Sn(!1), [re, ce] = Sn([]), ye = async (Z, ie) => {
76405
+ ), [j, q] = Sn(!1), [ne, ie] = Sn(!1), [re, ce] = Sn([]), ye = async (Z, se) => {
76400
76406
  try {
76401
76407
  if (M(""), !Z.includes("merged")) {
76402
76408
  A([]), _([]), E("");
@@ -76421,9 +76427,9 @@ const f0e = ({ className: t }) => /* @__PURE__ */ ut(
76421
76427
  });
76422
76428
  E(Pe.data[0]._id), I(Pe.data[0]), Pe.data.length && Pe.data[0].transcription ? _(Pe.data[0].transcription) : _([]), A([]);
76423
76429
  }
76424
- await (h == null ? void 0 : h(ie)), G(n), X(""), S(), B({
76430
+ await (h == null ? void 0 : h(se)), G(n), X(""), S(), B({
76425
76431
  videoTitle: e,
76426
- videoLink: ie,
76432
+ videoLink: se,
76427
76433
  trimmed: !1,
76428
76434
  fileType: "raw"
76429
76435
  });
@@ -76436,14 +76442,14 @@ const f0e = ({ className: t }) => /* @__PURE__ */ ut(
76436
76442
  }
76437
76443
  }, ve = async (Z) => {
76438
76444
  if (ne)
76439
- se(!1);
76445
+ ie(!1);
76440
76446
  else {
76441
76447
  q(!0);
76442
76448
  try {
76443
- const ie = await m(r + Z);
76444
- ce(M8(ie.data.files)), se(!0);
76445
- } catch (ie) {
76446
- console.log(ie);
76449
+ const se = await m(r + Z);
76450
+ ce(M8(se.data.files)), ie(!0);
76451
+ } catch (se) {
76452
+ console.log(se);
76447
76453
  } finally {
76448
76454
  q(!1);
76449
76455
  }
@@ -76564,13 +76570,13 @@ const f0e = ({ className: t }) => /* @__PURE__ */ ut(
76564
76570
  "overflow-hidden bg-transparent pl-[14px]",
76565
76571
  ne ? "h-auto py-[5px]" : "h-[0px] pt-[0px]"
76566
76572
  ),
76567
- children: re.map(({ name: Z, path: ie, is_directory: ee }) => {
76573
+ children: re.map(({ name: Z, path: se, is_directory: ee }) => {
76568
76574
  if (!(a && Z === "merged") && Z !== "output")
76569
76575
  return /* @__PURE__ */ z(
76570
76576
  Lj,
76571
76577
  {
76572
76578
  name: Z,
76573
- path: ie,
76579
+ path: se,
76574
76580
  is_directory: ee,
76575
76581
  endpoint: r,
76576
76582
  fromMain: i,
@@ -76789,8 +76795,8 @@ function y0e() {
76789
76795
  }
76790
76796
  }
76791
76797
  }
76792
- var B = h, W = p, G = c, X = l, j = e, q = m, ne = r, se = A, re = S, ce = n, ye = a, ve = i, ge = b, Z = !1;
76793
- function ie(Ve) {
76798
+ var B = h, W = p, G = c, X = l, j = e, q = m, ne = r, ie = A, re = S, ce = n, ye = a, ve = i, ge = b, Z = !1;
76799
+ function se(Ve) {
76794
76800
  return Z || (Z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), ee(Ve) || $(Ve) === h;
76795
76801
  }
76796
76802
  function ee(Ve) {
@@ -76829,7 +76835,7 @@ function y0e() {
76829
76835
  function at(Ve) {
76830
76836
  return $(Ve) === b;
76831
76837
  }
76832
- Qn.AsyncMode = B, Qn.ConcurrentMode = W, Qn.ContextConsumer = G, Qn.ContextProvider = X, Qn.Element = j, Qn.ForwardRef = q, Qn.Fragment = ne, Qn.Lazy = se, Qn.Memo = re, Qn.Portal = ce, Qn.Profiler = ye, Qn.StrictMode = ve, Qn.Suspense = ge, Qn.isAsyncMode = ie, Qn.isConcurrentMode = ee, Qn.isContextConsumer = ue, Qn.isContextProvider = Te, Qn.isElement = Ce, Qn.isForwardRef = Pe, Qn.isFragment = He, Qn.isLazy = Ze, Qn.isMemo = Ne, Qn.isPortal = Fe, Qn.isProfiler = We, Qn.isStrictMode = Ye, Qn.isSuspense = at, Qn.isValidElementType = I, Qn.typeOf = $;
76838
+ Qn.AsyncMode = B, Qn.ConcurrentMode = W, Qn.ContextConsumer = G, Qn.ContextProvider = X, Qn.Element = j, Qn.ForwardRef = q, Qn.Fragment = ne, Qn.Lazy = ie, Qn.Memo = re, Qn.Portal = ce, Qn.Profiler = ye, Qn.StrictMode = ve, Qn.Suspense = ge, Qn.isAsyncMode = se, Qn.isConcurrentMode = ee, Qn.isContextConsumer = ue, Qn.isContextProvider = Te, Qn.isElement = Ce, Qn.isForwardRef = Pe, Qn.isFragment = He, Qn.isLazy = Ze, Qn.isMemo = Ne, Qn.isPortal = Fe, Qn.isProfiler = We, Qn.isStrictMode = Ye, Qn.isSuspense = at, Qn.isValidElementType = I, Qn.typeOf = $;
76833
76839
  }()), Qn;
76834
76840
  }
76835
76841
  var F8;
@@ -76989,7 +76995,7 @@ function _0e() {
76989
76995
  objectOf: X,
76990
76996
  oneOf: G,
76991
76997
  oneOfType: j,
76992
- shape: se,
76998
+ shape: ie,
76993
76999
  exact: re
76994
77000
  };
76995
77001
  function A(ee, ue) {
@@ -77082,7 +77088,7 @@ function _0e() {
77082
77088
  function W(ee) {
77083
77089
  function ue(Te, Ce, Pe, He, Ze) {
77084
77090
  if (!(Te[Ce] instanceof ee)) {
77085
- var Ne = ee.name || x, Fe = ie(Te[Ce]);
77091
+ var Ne = ee.name || x, Fe = se(Te[Ce]);
77086
77092
  return new _("Invalid " + He + " `" + Ze + "` of type " + ("`" + Fe + "` supplied to `" + Pe + "`, expected ") + ("instance of `" + Ne + "`."));
77087
77093
  }
77088
77094
  return null;
@@ -77156,7 +77162,7 @@ function _0e() {
77156
77162
  (ee || "React class") + ": " + ue + " type `" + Te + "." + Ce + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + Pe + "`."
77157
77163
  );
77158
77164
  }
77159
- function se(ee) {
77165
+ function ie(ee) {
77160
77166
  function ue(Te, Ce, Pe, He, Ze) {
77161
77167
  var Ne = Te[Ce], Fe = ve(Ne);
77162
77168
  if (Fe !== "object")
@@ -77262,7 +77268,7 @@ Valid keys: ` + JSON.stringify(Object.keys(ee), null, " ")
77262
77268
  return ue;
77263
77269
  }
77264
77270
  }
77265
- function ie(ee) {
77271
+ function se(ee) {
77266
77272
  return !ee.constructor || !ee.constructor.name ? x : ee.constructor.name;
77267
77273
  }
77268
77274
  return S.checkPropTypes = i, S.resetWarningCache = i.resetWarningCache, S.PropTypes = S, S;
@@ -78140,11 +78146,11 @@ var tO = "PopperContent", [fye, hye] = Yj(tO), eH = N.forwardRef(
78140
78146
  updatePositionStrategy: S = "optimized",
78141
78147
  onPlaced: A,
78142
78148
  ..._
78143
- } = t, E = Xj(tO, n), [P, M] = N.useState(null), I = To(e, (_t) => M(_t)), [$, B] = N.useState(null), W = cye($), G = (W == null ? void 0 : W.width) ?? 0, X = (W == null ? void 0 : W.height) ?? 0, j = r + (a !== "center" ? "-" + a : ""), q = typeof m == "number" ? m : { top: 0, right: 0, bottom: 0, left: 0, ...m }, ne = Array.isArray(p) ? p : [p], se = ne.length > 0, re = {
78149
+ } = t, E = Xj(tO, n), [P, M] = N.useState(null), I = To(e, (_t) => M(_t)), [$, B] = N.useState(null), W = cye($), G = (W == null ? void 0 : W.width) ?? 0, X = (W == null ? void 0 : W.height) ?? 0, j = r + (a !== "center" ? "-" + a : ""), q = typeof m == "number" ? m : { top: 0, right: 0, bottom: 0, left: 0, ...m }, ne = Array.isArray(p) ? p : [p], ie = ne.length > 0, re = {
78144
78150
  padding: q,
78145
78151
  boundary: ne.filter(mye),
78146
78152
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
78147
- altBoundary: se
78153
+ altBoundary: ie
78148
78154
  }, { refs: ce, floatingStyles: ye, placement: ve, isPositioned: ge, middlewareData: Z } = U$({
78149
78155
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
78150
78156
  strategy: "fixed",
@@ -78175,7 +78181,7 @@ var tO = "PopperContent", [fye, hye] = Yj(tO), eH = N.forwardRef(
78175
78181
  gye({ arrowWidth: G, arrowHeight: X }),
78176
78182
  x && q$({ strategy: "referenceHidden", ...re })
78177
78183
  ]
78178
- }), [ie, ee] = rH(ve), ue = qf(A);
78184
+ }), [se, ee] = rH(ve), ue = qf(A);
78179
78185
  Vv(() => {
78180
78186
  ge && (ue == null || ue());
78181
78187
  }, [ge, ue]);
@@ -78210,7 +78216,7 @@ var tO = "PopperContent", [fye, hye] = Yj(tO), eH = N.forwardRef(
78210
78216
  fye,
78211
78217
  {
78212
78218
  scope: n,
78213
- placedSide: ie,
78219
+ placedSide: se,
78214
78220
  onArrowChange: B,
78215
78221
  arrowX: Te,
78216
78222
  arrowY: Ce,
@@ -78218,7 +78224,7 @@ var tO = "PopperContent", [fye, hye] = Yj(tO), eH = N.forwardRef(
78218
78224
  children: /* @__PURE__ */ z(
78219
78225
  Jo.div,
78220
78226
  {
78221
- "data-side": ie,
78227
+ "data-side": se,
78222
78228
  "data-align": ee,
78223
78229
  ..._,
78224
78230
  ref: I,
@@ -78675,7 +78681,7 @@ var zye = N.forwardRef((t, e) => {
78675
78681
  if (X.target === X.currentTarget && j && !P) {
78676
78682
  const q = new CustomEvent(aA, Uye);
78677
78683
  if (X.currentTarget.dispatchEvent(q), !q.defaultPrevented) {
78678
- const ne = $().filter((ve) => ve.focusable), se = ne.find((ve) => ve.active), re = ne.find((ve) => ve.id === _), ye = [se, re, ...ne].filter(
78684
+ const ne = $().filter((ve) => ve.focusable), ie = ne.find((ve) => ve.active), re = ne.find((ve) => ve.id === _), ye = [ie, re, ...ne].filter(
78679
78685
  Boolean
78680
78686
  ).map((ve) => ve.ref.current);
78681
78687
  hH(ye, m);
@@ -79085,17 +79091,17 @@ var Yo = "MenuContent", [Tbe, aO] = zp(Yo), wH = N.forwardRef(
79085
79091
  onDismiss: S,
79086
79092
  disableOutsideScroll: A,
79087
79093
  ..._
79088
- } = t, E = qp(Yo, n), P = v1(Yo, n), M = y2(n), I = TH(n), $ = pbe(n), [B, W] = N.useState(null), G = N.useRef(null), X = To(e, G, E.onContentChange), j = N.useRef(0), q = N.useRef(""), ne = N.useRef(0), se = N.useRef(null), re = N.useRef("right"), ce = N.useRef(0), ye = A ? rO : N.Fragment, ve = A ? { as: xbe, allowPinchZoom: !0 } : void 0, ge = (ie) => {
79094
+ } = t, E = qp(Yo, n), P = v1(Yo, n), M = y2(n), I = TH(n), $ = pbe(n), [B, W] = N.useState(null), G = N.useRef(null), X = To(e, G, E.onContentChange), j = N.useRef(0), q = N.useRef(""), ne = N.useRef(0), ie = N.useRef(null), re = N.useRef("right"), ce = N.useRef(0), ye = A ? rO : N.Fragment, ve = A ? { as: xbe, allowPinchZoom: !0 } : void 0, ge = (se) => {
79089
79095
  var Ne, Fe;
79090
- const ee = q.current + ie, ue = $().filter((We) => !We.disabled), Te = document.activeElement, Ce = (Ne = ue.find((We) => We.ref.current === Te)) == null ? void 0 : Ne.textValue, Pe = ue.map((We) => We.textValue), He = Ibe(Pe, ee, Ce), Ze = (Fe = ue.find((We) => We.textValue === He)) == null ? void 0 : Fe.ref.current;
79096
+ const ee = q.current + se, ue = $().filter((We) => !We.disabled), Te = document.activeElement, Ce = (Ne = ue.find((We) => We.ref.current === Te)) == null ? void 0 : Ne.textValue, Pe = ue.map((We) => We.textValue), He = Ibe(Pe, ee, Ce), Ze = (Fe = ue.find((We) => We.textValue === He)) == null ? void 0 : Fe.ref.current;
79091
79097
  (function We(Ye) {
79092
79098
  q.current = Ye, window.clearTimeout(j.current), Ye !== "" && (j.current = window.setTimeout(() => We(""), 1e3));
79093
79099
  })(ee), Ze && setTimeout(() => Ze.focus());
79094
79100
  };
79095
79101
  N.useEffect(() => () => window.clearTimeout(j.current), []), eye();
79096
- const Z = N.useCallback((ie) => {
79102
+ const Z = N.useCallback((se) => {
79097
79103
  var ue, Te;
79098
- return re.current === ((ue = se.current) == null ? void 0 : ue.side) && Fbe(ie, (Te = se.current) == null ? void 0 : Te.area);
79104
+ return re.current === ((ue = ie.current) == null ? void 0 : ue.side) && Fbe(se, (Te = ie.current) == null ? void 0 : Te.area);
79099
79105
  }, []);
79100
79106
  return /* @__PURE__ */ z(
79101
79107
  Tbe,
@@ -79103,36 +79109,36 @@ var Yo = "MenuContent", [Tbe, aO] = zp(Yo), wH = N.forwardRef(
79103
79109
  scope: n,
79104
79110
  searchRef: q,
79105
79111
  onItemEnter: N.useCallback(
79106
- (ie) => {
79107
- Z(ie) && ie.preventDefault();
79112
+ (se) => {
79113
+ Z(se) && se.preventDefault();
79108
79114
  },
79109
79115
  [Z]
79110
79116
  ),
79111
79117
  onItemLeave: N.useCallback(
79112
- (ie) => {
79118
+ (se) => {
79113
79119
  var ee;
79114
- Z(ie) || ((ee = G.current) == null || ee.focus(), W(null));
79120
+ Z(se) || ((ee = G.current) == null || ee.focus(), W(null));
79115
79121
  },
79116
79122
  [Z]
79117
79123
  ),
79118
79124
  onTriggerLeave: N.useCallback(
79119
- (ie) => {
79120
- Z(ie) && ie.preventDefault();
79125
+ (se) => {
79126
+ Z(se) && se.preventDefault();
79121
79127
  },
79122
79128
  [Z]
79123
79129
  ),
79124
79130
  pointerGraceTimerRef: ne,
79125
- onPointerGraceIntentChange: N.useCallback((ie) => {
79126
- se.current = ie;
79131
+ onPointerGraceIntentChange: N.useCallback((se) => {
79132
+ ie.current = se;
79127
79133
  }, []),
79128
79134
  children: /* @__PURE__ */ z(ye, { ...ve, children: /* @__PURE__ */ z(
79129
79135
  qj,
79130
79136
  {
79131
79137
  asChild: !0,
79132
79138
  trapped: i,
79133
- onMountAutoFocus: Br(a, (ie) => {
79139
+ onMountAutoFocus: Br(a, (se) => {
79134
79140
  var ee;
79135
- ie.preventDefault(), (ee = G.current) == null || ee.focus({ preventScroll: !0 });
79141
+ se.preventDefault(), (ee = G.current) == null || ee.focus({ preventScroll: !0 });
79136
79142
  }),
79137
79143
  onUnmountAutoFocus: l,
79138
79144
  children: /* @__PURE__ */ z(
@@ -79155,8 +79161,8 @@ var Yo = "MenuContent", [Tbe, aO] = zp(Yo), wH = N.forwardRef(
79155
79161
  loop: r,
79156
79162
  currentTabStopId: B,
79157
79163
  onCurrentTabStopIdChange: W,
79158
- onEntryFocus: Br(h, (ie) => {
79159
- P.isUsingKeyboardRef.current || ie.preventDefault();
79164
+ onEntryFocus: Br(h, (se) => {
79165
+ P.isUsingKeyboardRef.current || se.preventDefault();
79160
79166
  }),
79161
79167
  preventScrollOnEntryFocus: !0,
79162
79168
  children: /* @__PURE__ */ z(
@@ -79171,25 +79177,25 @@ var Yo = "MenuContent", [Tbe, aO] = zp(Yo), wH = N.forwardRef(
79171
79177
  ..._,
79172
79178
  ref: X,
79173
79179
  style: { outline: "none", ..._.style },
79174
- onKeyDown: Br(_.onKeyDown, (ie) => {
79175
- const ue = ie.target.closest("[data-radix-menu-content]") === ie.currentTarget, Te = ie.ctrlKey || ie.altKey || ie.metaKey, Ce = ie.key.length === 1;
79176
- ue && (ie.key === "Tab" && ie.preventDefault(), !Te && Ce && ge(ie.key));
79180
+ onKeyDown: Br(_.onKeyDown, (se) => {
79181
+ const ue = se.target.closest("[data-radix-menu-content]") === se.currentTarget, Te = se.ctrlKey || se.altKey || se.metaKey, Ce = se.key.length === 1;
79182
+ ue && (se.key === "Tab" && se.preventDefault(), !Te && Ce && ge(se.key));
79177
79183
  const Pe = G.current;
79178
- if (ie.target !== Pe || !dbe.includes(ie.key)) return;
79179
- ie.preventDefault();
79184
+ if (se.target !== Pe || !dbe.includes(se.key)) return;
79185
+ se.preventDefault();
79180
79186
  const Ze = $().filter((Ne) => !Ne.disabled).map((Ne) => Ne.ref.current);
79181
- yH.includes(ie.key) && Ze.reverse(), Mbe(Ze);
79187
+ yH.includes(se.key) && Ze.reverse(), Mbe(Ze);
79182
79188
  }),
79183
- onBlur: Br(t.onBlur, (ie) => {
79184
- ie.currentTarget.contains(ie.target) || (window.clearTimeout(j.current), q.current = "");
79189
+ onBlur: Br(t.onBlur, (se) => {
79190
+ se.currentTarget.contains(se.target) || (window.clearTimeout(j.current), q.current = "");
79185
79191
  }),
79186
79192
  onPointerMove: Br(
79187
79193
  t.onPointerMove,
79188
- Kb((ie) => {
79189
- const ee = ie.target, ue = ce.current !== ie.clientX;
79190
- if (ie.currentTarget.contains(ee) && ue) {
79191
- const Te = ie.clientX > ce.current ? "right" : "left";
79192
- re.current = Te, ce.current = ie.clientX;
79194
+ Kb((se) => {
79195
+ const ee = se.target, ue = ce.current !== se.clientX;
79196
+ if (se.currentTarget.contains(ee) && ue) {
79197
+ const Te = se.clientX > ce.current ? "right" : "left";
79198
+ re.current = Te, ce.current = se.clientX;
79193
79199
  }
79194
79200
  })
79195
79201
  )
@@ -79879,21 +79885,21 @@ const D1e = ({
79879
79885
  ), ne = (ve) => {
79880
79886
  const ge = ve.currentTarget.innerText.replace(/\n/g, "").replace(/^\s+/, "");
79881
79887
  W(ge);
79882
- }, se = () => {
79888
+ }, ie = () => {
79883
79889
  let ve = B;
79884
79890
  G.current && (ve = G.current.innerText.replace(/\n/g, "").replace(/^\s+/, ""), W(ve)), $(!1), b == null || b(), m == null || m({
79885
79891
  wordSegmentIdx: t == null ? void 0 : t.word_segment_idx,
79886
79892
  editedWord: ve
79887
79893
  });
79888
79894
  }, re = (ve) => {
79889
- ve.key === "Enter" ? (ve.preventDefault(), se()) : ve.key === "Escape" && ($(!1), W(t.timestamp_text), b == null || b());
79895
+ ve.key === "Enter" ? (ve.preventDefault(), ie()) : ve.key === "Escape" && ($(!1), W(t.timestamp_text), b == null || b());
79890
79896
  }, ce = () => {
79891
79897
  $(!0), l(null), setTimeout(() => {
79892
79898
  var ve;
79893
79899
  if (G.current) {
79894
79900
  G.current.focus();
79895
- const ge = document.createRange(), Z = window.getSelection(), ie = G.current.childNodes[0] || G.current;
79896
- ge.setStart(ie, ((ve = ie.textContent) == null ? void 0 : ve.length) || 0), ge.collapse(!0), Z == null || Z.removeAllRanges(), Z == null || Z.addRange(ge);
79901
+ const ge = document.createRange(), Z = window.getSelection(), se = G.current.childNodes[0] || G.current;
79902
+ ge.setStart(se, ((ve = se.textContent) == null ? void 0 : ve.length) || 0), ge.collapse(!0), Z == null || Z.removeAllRanges(), Z == null || Z.addRange(ge);
79897
79903
  }
79898
79904
  }, 50);
79899
79905
  };
@@ -80291,13 +80297,13 @@ const R1e = ({
80291
80297
  (Z) => Z.videoCurrentTime
80292
80298
  ), G = $n((Z) => Z.playerRef), X = kx(
80293
80299
  (Z) => Z.selectedHighlightOption
80294
- ), [j, q] = Sn(!1), [ne, se] = Sn(E), [re] = Sn(!1), ce = Cr(null), ye = sr(() => P1e({
80300
+ ), [j, q] = Sn(!1), [ne, ie] = Sn(E), [re] = Sn(!1), ce = Cr(null), ye = sr(() => P1e({
80295
80301
  time: W,
80296
80302
  wordSegments: M,
80297
80303
  isPrev: !0
80298
80304
  }), [W]), ve = sr(() => {
80299
- const Z = pt(P), ie = pt(_), ee = M == null ? void 0 : M.filter(
80300
- (ue) => pt(ue == null ? void 0 : ue.timestamp_start) >= Z && pt(ue == null ? void 0 : ue.timestamp_end) <= ie
80305
+ const Z = pt(P), se = pt(_), ee = M == null ? void 0 : M.filter(
80306
+ (ue) => pt(ue == null ? void 0 : ue.timestamp_start) >= Z && pt(ue == null ? void 0 : ue.timestamp_end) <= se
80301
80307
  );
80302
80308
  if (ee)
80303
80309
  return ee.map((ue, Te) => {
@@ -80307,7 +80313,7 @@ const R1e = ({
80307
80313
  {
80308
80314
  className: ct(
80309
80315
  " min-w-0",
80310
- X === "option3" && (ye == null ? void 0 : ye.timestamp_start) >= ue.timestamp_start && pt(ue.timestamp_start) >= Z && pt(ue.timestamp_end) <= ie && "text-white bg-[#E05044]"
80316
+ X === "option3" && (ye == null ? void 0 : ye.timestamp_start) >= ue.timestamp_start && pt(ue.timestamp_start) >= Z && pt(ue.timestamp_end) <= se && "text-white bg-[#E05044]"
80311
80317
  ),
80312
80318
  children: /* @__PURE__ */ z(
80313
80319
  "span",
@@ -80349,8 +80355,8 @@ const R1e = ({
80349
80355
  ),
80350
80356
  html: ne || "",
80351
80357
  onChange: (Z) => {
80352
- const ie = Z.currentTarget.innerText.replace(/\n/g, "").replace(/^\s+/, "");
80353
- se(ie);
80358
+ const se = Z.currentTarget.innerText.replace(/\n/g, "").replace(/^\s+/, "");
80359
+ ie(se);
80354
80360
  }
80355
80361
  }
80356
80362
  ) }) : (a == null ? void 0 : a.timestamp_start) === P ? /* @__PURE__ */ z(
@@ -80376,10 +80382,10 @@ const R1e = ({
80376
80382
  );
80377
80383
  if (Z) {
80378
80384
  Z.focus();
80379
- const ie = document.createRange();
80380
- ie.selectNodeContents(Z), ie.collapse(!1);
80385
+ const se = document.createRange();
80386
+ se.selectNodeContents(Z), se.collapse(!1);
80381
80387
  const ee = window.getSelection();
80382
- ee == null || ee.removeAllRanges(), ee == null || ee.addRange(ie);
80388
+ ee == null || ee.removeAllRanges(), ee == null || ee.addRange(se);
80383
80389
  }
80384
80390
  }
80385
80391
  }, [j]), nn(() => {
@@ -80828,7 +80834,7 @@ var W1e = [" ", "Enter", "ArrowUp", "ArrowDown"], G1e = [" ", "Enter"], y1 = "Se
80828
80834
  prop: l,
80829
80835
  defaultProp: c,
80830
80836
  onChange: h
80831
- }), ne = N.useRef(null), se = E ? A || !!E.closest("form") : !0, [re, ce] = N.useState(/* @__PURE__ */ new Set()), ye = Array.from(re).map((ve) => ve.props.value).join(";");
80837
+ }), ne = N.useRef(null), ie = E ? A || !!E.closest("form") : !0, [re, ce] = N.useState(/* @__PURE__ */ new Set()), ye = Array.from(re).map((ve) => ve.props.value).join(";");
80832
80838
  return /* @__PURE__ */ z(ij, { ..._, children: /* @__PURE__ */ ut(
80833
80839
  K1e,
80834
80840
  {
@@ -80865,7 +80871,7 @@ var W1e = [" ", "Enter", "ArrowUp", "ArrowDown"], G1e = [" ", "Enter"], y1 = "Se
80865
80871
  children: n
80866
80872
  }
80867
80873
  ) }),
80868
- se ? /* @__PURE__ */ ut(
80874
+ ie ? /* @__PURE__ */ ut(
80869
80875
  zz,
80870
80876
  {
80871
80877
  "aria-hidden": !0,
@@ -80999,17 +81005,17 @@ var Pl = 10, [Ez, Xf] = r0(Bp), eTe = "SelectContentImpl", Dz = N.forwardRef(
80999
81005
  ...P
81000
81006
  } = t, M = Kf(Bp, n), [I, $] = N.useState(null), [B, W] = N.useState(null), G = Jn(e, (Ne) => $(Ne)), [X, j] = N.useState(null), [q, ne] = N.useState(
81001
81007
  null
81002
- ), se = _2(n), [re, ce] = N.useState(!1), ye = N.useRef(!1);
81008
+ ), ie = _2(n), [re, ce] = N.useState(!1), ye = N.useRef(!1);
81003
81009
  N.useEffect(() => {
81004
81010
  if (I) return sk(I);
81005
81011
  }, [I]), MF();
81006
81012
  const ve = N.useCallback(
81007
81013
  (Ne) => {
81008
- const [Fe, ...We] = se().map((Ve) => Ve.ref.current), [Ye] = We.slice(-1), at = document.activeElement;
81014
+ const [Fe, ...We] = ie().map((Ve) => Ve.ref.current), [Ye] = We.slice(-1), at = document.activeElement;
81009
81015
  for (const Ve of Ne)
81010
81016
  if (Ve === at || (Ve == null || Ve.scrollIntoView({ block: "nearest" }), Ve === Fe && B && (B.scrollTop = 0), Ve === Ye && B && (B.scrollTop = B.scrollHeight), Ve == null || Ve.focus(), document.activeElement !== at)) return;
81011
81017
  },
81012
- [se, B]
81018
+ [ie, B]
81013
81019
  ), ge = N.useCallback(
81014
81020
  () => ve([X, I]),
81015
81021
  [ve, X, I]
@@ -81017,31 +81023,31 @@ var Pl = 10, [Ez, Xf] = r0(Bp), eTe = "SelectContentImpl", Dz = N.forwardRef(
81017
81023
  N.useEffect(() => {
81018
81024
  re && ge();
81019
81025
  }, [re, ge]);
81020
- const { onOpenChange: Z, triggerPointerDownPosRef: ie } = M;
81026
+ const { onOpenChange: Z, triggerPointerDownPosRef: se } = M;
81021
81027
  N.useEffect(() => {
81022
81028
  if (I) {
81023
81029
  let Ne = { x: 0, y: 0 };
81024
81030
  const Fe = (Ye) => {
81025
81031
  var at, Ve;
81026
81032
  Ne = {
81027
- x: Math.abs(Math.round(Ye.pageX) - (((at = ie.current) == null ? void 0 : at.x) ?? 0)),
81028
- y: Math.abs(Math.round(Ye.pageY) - (((Ve = ie.current) == null ? void 0 : Ve.y) ?? 0))
81033
+ x: Math.abs(Math.round(Ye.pageX) - (((at = se.current) == null ? void 0 : at.x) ?? 0)),
81034
+ y: Math.abs(Math.round(Ye.pageY) - (((Ve = se.current) == null ? void 0 : Ve.y) ?? 0))
81029
81035
  };
81030
81036
  }, We = (Ye) => {
81031
- Ne.x <= 10 && Ne.y <= 10 ? Ye.preventDefault() : I.contains(Ye.target) || Z(!1), document.removeEventListener("pointermove", Fe), ie.current = null;
81037
+ Ne.x <= 10 && Ne.y <= 10 ? Ye.preventDefault() : I.contains(Ye.target) || Z(!1), document.removeEventListener("pointermove", Fe), se.current = null;
81032
81038
  };
81033
- return ie.current !== null && (document.addEventListener("pointermove", Fe), document.addEventListener("pointerup", We, { capture: !0, once: !0 })), () => {
81039
+ return se.current !== null && (document.addEventListener("pointermove", Fe), document.addEventListener("pointerup", We, { capture: !0, once: !0 })), () => {
81034
81040
  document.removeEventListener("pointermove", Fe), document.removeEventListener("pointerup", We, { capture: !0 });
81035
81041
  };
81036
81042
  }
81037
- }, [I, Z, ie]), N.useEffect(() => {
81043
+ }, [I, Z, se]), N.useEffect(() => {
81038
81044
  const Ne = () => Z(!1);
81039
81045
  return window.addEventListener("blur", Ne), window.addEventListener("resize", Ne), () => {
81040
81046
  window.removeEventListener("blur", Ne), window.removeEventListener("resize", Ne);
81041
81047
  };
81042
81048
  }, [Z]);
81043
81049
  const [ee, ue] = qz((Ne) => {
81044
- const Fe = se().filter((at) => !at.disabled), We = Fe.find((at) => at.ref.current === document.activeElement), Ye = Wz(Fe, Ne, We);
81050
+ const Fe = ie().filter((at) => !at.disabled), We = Fe.find((at) => at.ref.current === document.activeElement), Ye = Wz(Fe, Ne, We);
81045
81051
  Ye && setTimeout(() => Ye.ref.current.focus());
81046
81052
  }), Te = N.useCallback(
81047
81053
  (Ne, Fe, We) => {
@@ -81127,7 +81133,7 @@ var Pl = 10, [Ez, Xf] = r0(Bp), eTe = "SelectContentImpl", Dz = N.forwardRef(
81127
81133
  onKeyDown: rn(P.onKeyDown, (Ne) => {
81128
81134
  const Fe = Ne.ctrlKey || Ne.altKey || Ne.metaKey;
81129
81135
  if (Ne.key === "Tab" && Ne.preventDefault(), !Fe && Ne.key.length === 1 && ue(Ne.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(Ne.key)) {
81130
- let Ye = se().filter((at) => !at.disabled).map((at) => at.ref.current);
81136
+ let Ye = ie().filter((at) => !at.disabled).map((at) => at.ref.current);
81131
81137
  if (["ArrowUp", "End"].includes(Ne.key) && (Ye = Ye.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(Ne.key)) {
81132
81138
  const at = Ne.target, Ve = Ye.indexOf(at);
81133
81139
  Ye = Ye.slice(Ve + 1);
@@ -81168,7 +81174,7 @@ var tTe = "SelectItemAlignedPosition", Az = N.forwardRef((t, e) => {
81168
81174
  ]);
81169
81175
  c.style.minWidth = wt + "px", c.style.right = yn + "px";
81170
81176
  }
81171
- const ne = x(), se = window.innerHeight - Pl * 2, re = _.scrollHeight, ce = window.getComputedStyle(p), ye = parseInt(ce.borderTopWidth, 10), ve = parseInt(ce.paddingTop, 10), ge = parseInt(ce.borderBottomWidth, 10), Z = parseInt(ce.paddingBottom, 10), ie = ye + ve + re + Z + ge, ee = Math.min(E.offsetHeight * 5, ie), ue = window.getComputedStyle(_), Te = parseInt(ue.paddingTop, 10), Ce = parseInt(ue.paddingBottom, 10), Pe = G.top + G.height / 2 - Pl, He = se - Pe, Ze = E.offsetHeight / 2, Ne = E.offsetTop + Ze, Fe = ye + ve + Ne, We = ie - Fe;
81177
+ const ne = x(), ie = window.innerHeight - Pl * 2, re = _.scrollHeight, ce = window.getComputedStyle(p), ye = parseInt(ce.borderTopWidth, 10), ve = parseInt(ce.paddingTop, 10), ge = parseInt(ce.borderBottomWidth, 10), Z = parseInt(ce.paddingBottom, 10), se = ye + ve + re + Z + ge, ee = Math.min(E.offsetHeight * 5, se), ue = window.getComputedStyle(_), Te = parseInt(ue.paddingTop, 10), Ce = parseInt(ue.paddingBottom, 10), Pe = G.top + G.height / 2 - Pl, He = ie - Pe, Ze = E.offsetHeight / 2, Ne = E.offsetTop + Ze, Fe = ye + ve + Ne, We = se - Fe;
81172
81178
  if (Fe <= Pe) {
81173
81179
  const at = ne.length > 0 && E === ne[ne.length - 1].ref.current;
81174
81180
  c.style.bottom = "0px";
@@ -81188,7 +81194,7 @@ var tTe = "SelectItemAlignedPosition", Az = N.forwardRef((t, e) => {
81188
81194
  ) + We;
81189
81195
  c.style.height = _t + "px", _.scrollTop = Fe - Pe + _.offsetTop;
81190
81196
  }
81191
- c.style.margin = `${Pl}px 0`, c.style.minHeight = ee + "px", c.style.maxHeight = se + "px", r == null || r(), requestAnimationFrame(() => S.current = !0);
81197
+ c.style.margin = `${Pl}px 0`, c.style.minHeight = ee + "px", c.style.maxHeight = ie + "px", r == null || r(), requestAnimationFrame(() => S.current = !0);
81192
81198
  }
81193
81199
  }, [
81194
81200
  x,