@react-scrollytelling/video 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,6 +1,6 @@
1
- import K, { useRef as ke, useEffect as vr, useState as pr, useCallback as ne, useImperativeHandle as gr } from "react";
2
- import { useRafThrottle as yr } from "@react-scrollytelling/core";
3
- var ae = { exports: {} }, L = {};
1
+ import J, { useRef as ke, useEffect as vr, useState as pr, useCallback as ne, useImperativeHandle as yr } from "react";
2
+ import { useRafThrottle as gr } from "@react-scrollytelling/core";
3
+ var ae = { exports: {} }, V = {};
4
4
  /**
5
5
  * @license React
6
6
  * react-jsx-runtime.production.min.js
@@ -13,22 +13,22 @@ var ae = { exports: {} }, L = {};
13
13
  var je;
14
14
  function hr() {
15
15
  if (je)
16
- return L;
16
+ return V;
17
17
  je = 1;
18
- var w = K, y = Symbol.for("react.element"), C = Symbol.for("react.fragment"), b = Object.prototype.hasOwnProperty, m = w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, O = { key: !0, ref: !0, __self: !0, __source: !0 };
19
- function P(h, s, S) {
18
+ var S = J, g = Symbol.for("react.element"), C = Symbol.for("react.fragment"), b = Object.prototype.hasOwnProperty, m = S.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, T = { key: !0, ref: !0, __self: !0, __source: !0 };
19
+ function O(h, s, w) {
20
20
  var c, R = {}, E = null, k = null;
21
- S !== void 0 && (E = "" + S), s.key !== void 0 && (E = "" + s.key), s.ref !== void 0 && (k = s.ref);
21
+ w !== void 0 && (E = "" + w), s.key !== void 0 && (E = "" + s.key), s.ref !== void 0 && (k = s.ref);
22
22
  for (c in s)
23
- b.call(s, c) && !O.hasOwnProperty(c) && (R[c] = s[c]);
23
+ b.call(s, c) && !T.hasOwnProperty(c) && (R[c] = s[c]);
24
24
  if (h && h.defaultProps)
25
25
  for (c in s = h.defaultProps, s)
26
26
  R[c] === void 0 && (R[c] = s[c]);
27
- return { $$typeof: y, type: h, key: E, ref: k, props: R, _owner: m.current };
27
+ return { $$typeof: g, type: h, key: E, ref: k, props: R, _owner: m.current };
28
28
  }
29
- return L.Fragment = C, L.jsx = P, L.jsxs = P, L;
29
+ return V.Fragment = C, V.jsx = O, V.jsxs = O, V;
30
30
  }
31
- var M = {};
31
+ var L = {};
32
32
  /**
33
33
  * @license React
34
34
  * react-jsx-runtime.development.js
@@ -41,14 +41,14 @@ var M = {};
41
41
  var xe;
42
42
  function Rr() {
43
43
  return xe || (xe = 1, process.env.NODE_ENV !== "production" && function() {
44
- var w = K, y = Symbol.for("react.element"), C = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), O = Symbol.for("react.profiler"), P = Symbol.for("react.provider"), h = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), k = Symbol.for("react.offscreen"), U = Symbol.iterator, I = "@@iterator";
45
- function $(e) {
44
+ var S = J, g = Symbol.for("react.element"), C = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), T = Symbol.for("react.profiler"), O = Symbol.for("react.provider"), h = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), k = Symbol.for("react.offscreen"), M = Symbol.iterator, K = "@@iterator";
45
+ function I(e) {
46
46
  if (e === null || typeof e != "object")
47
47
  return null;
48
- var r = U && e[U] || e[I];
48
+ var r = M && e[M] || e[K];
49
49
  return typeof r == "function" ? r : null;
50
50
  }
51
- var _ = w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
+ var P = S.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
52
52
  function d(e) {
53
53
  {
54
54
  for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
@@ -58,7 +58,7 @@ function Rr() {
58
58
  }
59
59
  function De(e, r, t) {
60
60
  {
61
- var n = _.ReactDebugCurrentFrame, i = n.getStackAddendum();
61
+ var n = P.ReactDebugCurrentFrame, i = n.getStackAddendum();
62
62
  i !== "" && (r += "%s", t = t.concat([i]));
63
63
  var u = t.map(function(o) {
64
64
  return String(o);
@@ -69,7 +69,7 @@ function Rr() {
69
69
  var Fe = !1, Ae = !1, Ie = !1, $e = !1, We = !1, oe;
70
70
  oe = Symbol.for("react.module.reference");
71
71
  function Ye(e) {
72
- return !!(typeof e == "string" || typeof e == "function" || e === b || e === O || We || e === m || e === S || e === c || $e || e === k || Fe || Ae || Ie || typeof e == "object" && e !== null && (e.$$typeof === E || e.$$typeof === R || e.$$typeof === P || e.$$typeof === h || e.$$typeof === s || // This needs to include all possible module reference object
72
+ return !!(typeof e == "string" || typeof e == "function" || e === b || e === T || We || e === m || e === w || e === c || $e || e === k || Fe || Ae || Ie || typeof e == "object" && e !== null && (e.$$typeof === E || e.$$typeof === R || e.$$typeof === O || e.$$typeof === h || e.$$typeof === s || // This needs to include all possible module reference object
73
73
  // types supported by any Flight configuration anywhere since
74
74
  // we don't know which Flight build this will end up being used
75
75
  // with.
@@ -85,7 +85,7 @@ function Rr() {
85
85
  function ie(e) {
86
86
  return e.displayName || "Context";
87
87
  }
88
- function T(e) {
88
+ function _(e) {
89
89
  if (e == null)
90
90
  return null;
91
91
  if (typeof e.tag == "number" && d("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
@@ -97,11 +97,11 @@ function Rr() {
97
97
  return "Fragment";
98
98
  case C:
99
99
  return "Portal";
100
- case O:
100
+ case T:
101
101
  return "Profiler";
102
102
  case m:
103
103
  return "StrictMode";
104
- case S:
104
+ case w:
105
105
  return "Suspense";
106
106
  case c:
107
107
  return "SuspenseList";
@@ -111,18 +111,18 @@ function Rr() {
111
111
  case h:
112
112
  var r = e;
113
113
  return ie(r) + ".Consumer";
114
- case P:
114
+ case O:
115
115
  var t = e;
116
116
  return ie(t._context) + ".Provider";
117
117
  case s:
118
118
  return Ve(e, e.render, "ForwardRef");
119
119
  case R:
120
120
  var n = e.displayName || null;
121
- return n !== null ? n : T(e.type) || "Memo";
121
+ return n !== null ? n : _(e.type) || "Memo";
122
122
  case E: {
123
123
  var i = e, u = i._payload, o = i._init;
124
124
  try {
125
- return T(o(u));
125
+ return _(o(u));
126
126
  } catch (a) {
127
127
  return null;
128
128
  }
@@ -130,13 +130,13 @@ function Rr() {
130
130
  }
131
131
  return null;
132
132
  }
133
- var j = Object.assign, W = 0, ue, se, le, fe, ce, de, ve;
133
+ var j = Object.assign, $ = 0, ue, se, le, fe, ce, de, ve;
134
134
  function pe() {
135
135
  }
136
136
  pe.__reactDisabledLog = !0;
137
137
  function Le() {
138
138
  {
139
- if (W === 0) {
139
+ if ($ === 0) {
140
140
  ue = console.log, se = console.info, le = console.warn, fe = console.error, ce = console.group, de = console.groupCollapsed, ve = console.groupEnd;
141
141
  var e = {
142
142
  configurable: !0,
@@ -154,12 +154,12 @@ function Rr() {
154
154
  groupEnd: e
155
155
  });
156
156
  }
157
- W++;
157
+ $++;
158
158
  }
159
159
  }
160
160
  function Me() {
161
161
  {
162
- if (W--, W === 0) {
162
+ if ($--, $ === 0) {
163
163
  var e = {
164
164
  configurable: !0,
165
165
  enumerable: !0,
@@ -189,11 +189,11 @@ function Rr() {
189
189
  })
190
190
  });
191
191
  }
192
- W < 0 && d("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
192
+ $ < 0 && d("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
193
193
  }
194
194
  }
195
- var G = _.ReactCurrentDispatcher, z;
196
- function N(e, r, t) {
195
+ var G = P.ReactCurrentDispatcher, z;
196
+ function U(e, r, t) {
197
197
  {
198
198
  if (z === void 0)
199
199
  try {
@@ -206,16 +206,16 @@ function Rr() {
206
206
  ` + z + e;
207
207
  }
208
208
  }
209
- var H = !1, q;
209
+ var H = !1, N;
210
210
  {
211
211
  var Ue = typeof WeakMap == "function" ? WeakMap : Map;
212
- q = new Ue();
212
+ N = new Ue();
213
213
  }
214
- function ge(e, r) {
214
+ function ye(e, r) {
215
215
  if (!e || H)
216
216
  return "";
217
217
  {
218
- var t = q.get(e);
218
+ var t = N.get(e);
219
219
  if (t !== void 0)
220
220
  return t;
221
221
  }
@@ -268,9 +268,9 @@ function Rr() {
268
268
  if (l !== 1 || f !== 1)
269
269
  do
270
270
  if (l--, f--, f < 0 || a[l] !== v[f]) {
271
- var g = `
271
+ var y = `
272
272
  ` + a[l].replace(" at new ", " at ");
273
- return e.displayName && g.includes("<anonymous>") && (g = g.replace("<anonymous>", e.displayName)), typeof e == "function" && q.set(e, g), g;
273
+ return e.displayName && y.includes("<anonymous>") && (y = y.replace("<anonymous>", e.displayName)), typeof e == "function" && N.set(e, y), y;
274
274
  }
275
275
  while (l >= 1 && f >= 0);
276
276
  break;
@@ -279,56 +279,56 @@ function Rr() {
279
279
  } finally {
280
280
  H = !1, G.current = u, Me(), Error.prepareStackTrace = i;
281
281
  }
282
- var F = e ? e.displayName || e.name : "", x = F ? N(F) : "";
283
- return typeof e == "function" && q.set(e, x), x;
282
+ var F = e ? e.displayName || e.name : "", x = F ? U(F) : "";
283
+ return typeof e == "function" && N.set(e, x), x;
284
284
  }
285
285
  function Ne(e, r, t) {
286
- return ge(e, !1);
286
+ return ye(e, !1);
287
287
  }
288
288
  function qe(e) {
289
289
  var r = e.prototype;
290
290
  return !!(r && r.isReactComponent);
291
291
  }
292
- function B(e, r, t) {
292
+ function q(e, r, t) {
293
293
  if (e == null)
294
294
  return "";
295
295
  if (typeof e == "function")
296
- return ge(e, qe(e));
296
+ return ye(e, qe(e));
297
297
  if (typeof e == "string")
298
- return N(e);
298
+ return U(e);
299
299
  switch (e) {
300
- case S:
301
- return N("Suspense");
300
+ case w:
301
+ return U("Suspense");
302
302
  case c:
303
- return N("SuspenseList");
303
+ return U("SuspenseList");
304
304
  }
305
305
  if (typeof e == "object")
306
306
  switch (e.$$typeof) {
307
307
  case s:
308
308
  return Ne(e.render);
309
309
  case R:
310
- return B(e.type, r, t);
310
+ return q(e.type, r, t);
311
311
  case E: {
312
312
  var n = e, i = n._payload, u = n._init;
313
313
  try {
314
- return B(u(i), r, t);
314
+ return q(u(i), r, t);
315
315
  } catch (o) {
316
316
  }
317
317
  }
318
318
  }
319
319
  return "";
320
320
  }
321
- var Y = Object.prototype.hasOwnProperty, ye = {}, he = _.ReactDebugCurrentFrame;
322
- function J(e) {
321
+ var W = Object.prototype.hasOwnProperty, ge = {}, he = P.ReactDebugCurrentFrame;
322
+ function B(e) {
323
323
  if (e) {
324
- var r = e._owner, t = B(e.type, e._source, r ? r.type : null);
324
+ var r = e._owner, t = q(e.type, e._source, r ? r.type : null);
325
325
  he.setExtraStackFrame(t);
326
326
  } else
327
327
  he.setExtraStackFrame(null);
328
328
  }
329
329
  function Be(e, r, t, n, i) {
330
330
  {
331
- var u = Function.call.bind(Y);
331
+ var u = Function.call.bind(W);
332
332
  for (var o in e)
333
333
  if (u(e, o)) {
334
334
  var a = void 0;
@@ -341,7 +341,7 @@ function Rr() {
341
341
  } catch (l) {
342
342
  a = l;
343
343
  }
344
- a && !(a instanceof Error) && (J(i), d("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, o, typeof a), J(null)), a instanceof Error && !(a.message in ye) && (ye[a.message] = !0, J(i), d("Failed %s type: %s", t, a.message), J(null));
344
+ a && !(a instanceof Error) && (B(i), d("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, o, typeof a), B(null)), a instanceof Error && !(a.message in ge) && (ge[a.message] = !0, B(i), d("Failed %s type: %s", t, a.message), B(null));
345
345
  }
346
346
  }
347
347
  }
@@ -369,7 +369,7 @@ function Rr() {
369
369
  if (Ge(e))
370
370
  return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ke(e)), Re(e);
371
371
  }
372
- var V = _.ReactCurrentOwner, ze = {
372
+ var Y = P.ReactCurrentOwner, ze = {
373
373
  key: !0,
374
374
  ref: !0,
375
375
  __self: !0,
@@ -377,7 +377,7 @@ function Rr() {
377
377
  }, me, Ee, Z;
378
378
  Z = {};
379
379
  function He(e) {
380
- if (Y.call(e, "ref")) {
380
+ if (W.call(e, "ref")) {
381
381
  var r = Object.getOwnPropertyDescriptor(e, "ref").get;
382
382
  if (r && r.isReactWarning)
383
383
  return !1;
@@ -385,7 +385,7 @@ function Rr() {
385
385
  return e.ref !== void 0;
386
386
  }
387
387
  function Xe(e) {
388
- if (Y.call(e, "key")) {
388
+ if (W.call(e, "key")) {
389
389
  var r = Object.getOwnPropertyDescriptor(e, "key").get;
390
390
  if (r && r.isReactWarning)
391
391
  return !1;
@@ -393,9 +393,9 @@ function Rr() {
393
393
  return e.key !== void 0;
394
394
  }
395
395
  function Ze(e, r) {
396
- if (typeof e.ref == "string" && V.current && r && V.current.stateNode !== r) {
397
- var t = T(V.current.type);
398
- Z[t] || (d('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', T(V.current.type), e.ref), Z[t] = !0);
396
+ if (typeof e.ref == "string" && Y.current && r && Y.current.stateNode !== r) {
397
+ var t = _(Y.current.type);
398
+ Z[t] || (d('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', _(Y.current.type), e.ref), Z[t] = !0);
399
399
  }
400
400
  }
401
401
  function Qe(e, r) {
@@ -423,7 +423,7 @@ function Rr() {
423
423
  var rr = function(e, r, t, n, i, u, o) {
424
424
  var a = {
425
425
  // This tag allows us to uniquely identify this as a React Element
426
- $$typeof: y,
426
+ $$typeof: g,
427
427
  // Built-in properties that belong on the element
428
428
  type: e,
429
429
  key: r,
@@ -454,7 +454,7 @@ function Rr() {
454
454
  var u, o = {}, a = null, v = null;
455
455
  t !== void 0 && (be(t), a = "" + t), Xe(r) && (be(r.key), a = "" + r.key), He(r) && (v = r.ref, Ze(r, i));
456
456
  for (u in r)
457
- Y.call(r, u) && !ze.hasOwnProperty(u) && (o[u] = r[u]);
457
+ W.call(r, u) && !ze.hasOwnProperty(u) && (o[u] = r[u]);
458
458
  if (e && e.defaultProps) {
459
459
  var l = e.defaultProps;
460
460
  for (u in l)
@@ -464,13 +464,13 @@ function Rr() {
464
464
  var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
465
465
  a && Qe(o, f), v && er(o, f);
466
466
  }
467
- return rr(e, a, v, i, n, V.current, o);
467
+ return rr(e, a, v, i, n, Y.current, o);
468
468
  }
469
469
  }
470
- var Q = _.ReactCurrentOwner, _e = _.ReactDebugCurrentFrame;
470
+ var Q = P.ReactCurrentOwner, _e = P.ReactDebugCurrentFrame;
471
471
  function D(e) {
472
472
  if (e) {
473
- var r = e._owner, t = B(e.type, e._source, r ? r.type : null);
473
+ var r = e._owner, t = q(e.type, e._source, r ? r.type : null);
474
474
  _e.setExtraStackFrame(t);
475
475
  } else
476
476
  _e.setExtraStackFrame(null);
@@ -478,12 +478,12 @@ function Rr() {
478
478
  var ee;
479
479
  ee = !1;
480
480
  function re(e) {
481
- return typeof e == "object" && e !== null && e.$$typeof === y;
481
+ return typeof e == "object" && e !== null && e.$$typeof === g;
482
482
  }
483
483
  function Te() {
484
484
  {
485
485
  if (Q.current) {
486
- var e = T(Q.current.type);
486
+ var e = _(Q.current.type);
487
487
  if (e)
488
488
  return `
489
489
 
@@ -518,10 +518,10 @@ Check the top-level render call using <` + t + ">.");
518
518
  return;
519
519
  Oe[t] = !0;
520
520
  var n = "";
521
- e && e._owner && e._owner !== Q.current && (n = " It was passed a child from " + T(e._owner.type) + "."), D(e), d('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), D(null);
521
+ e && e._owner && e._owner !== Q.current && (n = " It was passed a child from " + _(e._owner.type) + "."), D(e), d('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), D(null);
522
522
  }
523
523
  }
524
- function we(e, r) {
524
+ function Se(e, r) {
525
525
  {
526
526
  if (typeof e != "object")
527
527
  return;
@@ -533,7 +533,7 @@ Check the top-level render call using <` + t + ">.");
533
533
  else if (re(e))
534
534
  e._store && (e._store.validated = !0);
535
535
  else if (e) {
536
- var i = $(e);
536
+ var i = I(e);
537
537
  if (typeof i == "function" && i !== e.entries)
538
538
  for (var u = i.call(e), o; !(o = u.next()).done; )
539
539
  re(o.value) && Pe(o.value, r);
@@ -555,11 +555,11 @@ Check the top-level render call using <` + t + ">.");
555
555
  else
556
556
  return;
557
557
  if (t) {
558
- var n = T(r);
558
+ var n = _(r);
559
559
  Be(t, e.props, "prop", n, e);
560
560
  } else if (r.PropTypes !== void 0 && !ee) {
561
561
  ee = !0;
562
- var i = T(r);
562
+ var i = _(r);
563
563
  d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
564
564
  }
565
565
  typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
@@ -577,7 +577,7 @@ Check the top-level render call using <` + t + ">.");
577
577
  e.ref !== null && (D(e), d("Invalid attribute `ref` supplied to `React.Fragment`."), D(null));
578
578
  }
579
579
  }
580
- var Se = {};
580
+ var we = {};
581
581
  function Ce(e, r, t, n, i, u) {
582
582
  {
583
583
  var o = Ye(e);
@@ -587,36 +587,36 @@ Check the top-level render call using <` + t + ">.");
587
587
  var v = nr();
588
588
  v ? a += v : a += Te();
589
589
  var l;
590
- e === null ? l = "null" : X(e) ? l = "array" : e !== void 0 && e.$$typeof === y ? (l = "<" + (T(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : l = typeof e, d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", l, a);
590
+ e === null ? l = "null" : X(e) ? l = "array" : e !== void 0 && e.$$typeof === g ? (l = "<" + (_(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : l = typeof e, d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", l, a);
591
591
  }
592
592
  var f = tr(e, r, t, i, u);
593
593
  if (f == null)
594
594
  return f;
595
595
  if (o) {
596
- var g = r.children;
597
- if (g !== void 0)
596
+ var y = r.children;
597
+ if (y !== void 0)
598
598
  if (n)
599
- if (X(g)) {
600
- for (var F = 0; F < g.length; F++)
601
- we(g[F], e);
602
- Object.freeze && Object.freeze(g);
599
+ if (X(y)) {
600
+ for (var F = 0; F < y.length; F++)
601
+ Se(y[F], e);
602
+ Object.freeze && Object.freeze(y);
603
603
  } else
604
604
  d("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
605
605
  else
606
- we(g, e);
606
+ Se(y, e);
607
607
  }
608
- if (Y.call(r, "key")) {
609
- var x = T(e), p = Object.keys(r).filter(function(dr) {
608
+ if (W.call(r, "key")) {
609
+ var x = _(e), p = Object.keys(r).filter(function(dr) {
610
610
  return dr !== "key";
611
611
  }), te = p.length > 0 ? "{key: someKey, " + p.join(": ..., ") + ": ...}" : "{key: someKey}";
612
- if (!Se[x + te]) {
612
+ if (!we[x + te]) {
613
613
  var cr = p.length > 0 ? "{" + p.join(": ..., ") + ": ...}" : "{}";
614
614
  d(`A props object containing a "key" prop is being spread into JSX:
615
615
  let props = %s;
616
616
  <%s {...props} />
617
617
  React keys must be passed directly to JSX without using spread:
618
618
  let props = %s;
619
- <%s key={someKey} {...props} />`, te, x, cr, x), Se[x + te] = !0;
619
+ <%s key={someKey} {...props} />`, te, x, cr, x), we[x + te] = !0;
620
620
  }
621
621
  }
622
622
  return e === b ? ir(f) : or(f), f;
@@ -629,50 +629,50 @@ React keys must be passed directly to JSX without using spread:
629
629
  return Ce(e, r, t, !1);
630
630
  }
631
631
  var lr = sr, fr = ur;
632
- M.Fragment = b, M.jsx = lr, M.jsxs = fr;
633
- }()), M;
632
+ L.Fragment = b, L.jsx = lr, L.jsxs = fr;
633
+ }()), L;
634
634
  }
635
635
  process.env.NODE_ENV === "production" ? ae.exports = hr() : ae.exports = Rr();
636
636
  var A = ae.exports;
637
637
  const _r = ({
638
- src: w,
639
- srcWebm: y,
638
+ src: S,
639
+ srcWebm: g,
640
640
  width: C,
641
641
  height: b,
642
642
  thumbnail: m,
643
- ratio: O = 0,
644
- className: P,
643
+ ratio: T = 0,
644
+ className: O,
645
645
  loadingOverlay: h
646
646
  }) => {
647
647
  const s = ke(null);
648
648
  return vr(() => {
649
- s.current && s.current.setRatio(O);
650
- }, [O]), /* @__PURE__ */ A.jsx(
649
+ s.current && s.current.setRatio(T);
650
+ }, [T]), /* @__PURE__ */ A.jsx(
651
651
  br,
652
652
  {
653
653
  ref: s,
654
654
  width: C,
655
655
  height: b,
656
- src: w,
657
- srcWebm: y,
658
- className: P,
656
+ src: S,
657
+ srcWebm: g,
658
+ className: O,
659
659
  thumbnail: m,
660
660
  loadingOverlay: h
661
661
  }
662
662
  );
663
- }, br = K.memo(
664
- K.forwardRef(
665
- ({ src: w, srcWebm: y, width: C, height: b, thumbnail: m, className: O, loadingOverlay: P }, h) => {
666
- const s = ke(null), [S, c] = pr(!0), R = ne((I) => {
667
- const $ = s.current;
668
- if (!$)
663
+ }, br = J.memo(
664
+ J.forwardRef(
665
+ ({ src: S, srcWebm: g, width: C, height: b, thumbnail: m, className: T, loadingOverlay: O }, h) => {
666
+ const s = ke(null), [w, c] = pr(!0), R = ne((K) => {
667
+ const I = s.current;
668
+ if (!I)
669
669
  return;
670
- const _ = $.duration;
671
- isNaN(_) || requestAnimationFrame(() => {
672
- $.currentTime = Math.round(I * _ * 100) / 100, console.log("setRatio", I, Math.round(I * _ * 100) / 100);
670
+ const P = I.duration;
671
+ isNaN(P) || requestAnimationFrame(() => {
672
+ I.currentTime = Math.round(K * P * 100) / 100;
673
673
  });
674
- }, []), E = yr(R);
675
- gr(
674
+ }, []), E = gr(R);
675
+ yr(
676
676
  h,
677
677
  () => ({
678
678
  setRatio: E
@@ -680,9 +680,9 @@ const _r = ({
680
680
  [E]
681
681
  );
682
682
  const k = ne(() => {
683
- console.log("waiting"), c(!0);
684
- }, []), U = ne(() => {
685
- console.log("can play"), c(!1);
683
+ c(!0);
684
+ }, []), M = ne(() => {
685
+ c(!1);
686
686
  }, []);
687
687
  return /* @__PURE__ */ A.jsxs("div", { style: { position: "relative", width: "100%", height: "100%" }, children: [
688
688
  /* @__PURE__ */ A.jsxs(
@@ -691,7 +691,7 @@ const _r = ({
691
691
  ref: s,
692
692
  width: C,
693
693
  height: b,
694
- className: O,
694
+ className: T,
695
695
  muted: !0,
696
696
  disablePictureInPicture: !0,
697
697
  disableRemotePlayback: !0,
@@ -699,15 +699,15 @@ const _r = ({
699
699
  controls: !1,
700
700
  preload: "auto",
701
701
  onWaiting: k,
702
- onCanPlay: U,
702
+ onCanPlay: M,
703
703
  poster: m,
704
704
  children: [
705
- y && /* @__PURE__ */ A.jsx("source", { src: m ? y : `${y}#t=0.1`, type: "video/webm" }),
706
- /* @__PURE__ */ A.jsx("source", { src: m ? w : `${w}#t=0.1`, type: "video/mp4" })
705
+ g && /* @__PURE__ */ A.jsx("source", { src: m ? g : `${g}#t=0.1`, type: "video/webm" }),
706
+ /* @__PURE__ */ A.jsx("source", { src: m ? S : `${S}#t=0.1`, type: "video/mp4" })
707
707
  ]
708
708
  }
709
709
  ),
710
- /* @__PURE__ */ A.jsx("div", { style: { position: "absolute", inset: 0 }, children: S && P })
710
+ /* @__PURE__ */ A.jsx("div", { style: { position: "absolute", inset: 0 }, children: w && O })
711
711
  ] });
712
712
  }
713
713
  )