react-spring-carousel 3.0.0-beta070 → 3.0.0-beta072

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.
@@ -1,11 +1,11 @@
1
- import Pe, { useRef as Se, useEffect as sr } from "react";
2
- import { useSpring as lr } from "@react-spring/web";
3
- var q = {}, fr = {
1
+ import Oe, { useRef as ir } from "react";
2
+ import { useSpring as ur } from "@react-spring/web";
3
+ var q = {}, lr = {
4
4
  get exports() {
5
5
  return q;
6
6
  },
7
- set exports(s) {
8
- q = s;
7
+ set exports(c) {
8
+ q = c;
9
9
  }
10
10
  }, W = {};
11
11
  /**
@@ -17,23 +17,23 @@ var q = {}, fr = {
17
17
  * This source code is licensed under the MIT license found in the
18
18
  * LICENSE file in the root directory of this source tree.
19
19
  */
20
- var Ce;
21
- function cr() {
22
- if (Ce)
20
+ var we;
21
+ function sr() {
22
+ if (we)
23
23
  return W;
24
- Ce = 1;
25
- var s = Pe, E = Symbol.for("react.element"), P = Symbol.for("react.fragment"), h = Object.prototype.hasOwnProperty, _ = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
26
- function j(w, d, S) {
27
- var m, T = {}, v = null, b = null;
28
- S !== void 0 && (v = "" + S), d.key !== void 0 && (v = "" + d.key), d.ref !== void 0 && (b = d.ref);
29
- for (m in d)
30
- h.call(d, m) && !c.hasOwnProperty(m) && (T[m] = d[m]);
31
- if (w && w.defaultProps)
32
- for (m in d = w.defaultProps, d)
33
- T[m] === void 0 && (T[m] = d[m]);
34
- return { $$typeof: E, type: w, key: v, ref: b, props: T, _owner: _.current };
24
+ we = 1;
25
+ var c = Oe, m = Symbol.for("react.element"), j = Symbol.for("react.fragment"), R = Object.prototype.hasOwnProperty, k = c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, g = { key: !0, ref: !0, __self: !0, __source: !0 };
26
+ function x(T, f, O) {
27
+ var p, _ = {}, d = null, b = null;
28
+ O !== void 0 && (d = "" + O), f.key !== void 0 && (d = "" + f.key), f.ref !== void 0 && (b = f.ref);
29
+ for (p in f)
30
+ R.call(f, p) && !g.hasOwnProperty(p) && (_[p] = f[p]);
31
+ if (T && T.defaultProps)
32
+ for (p in f = T.defaultProps, f)
33
+ _[p] === void 0 && (_[p] = f[p]);
34
+ return { $$typeof: m, type: T, key: d, ref: b, props: _, _owner: k.current };
35
35
  }
36
- return W.Fragment = P, W.jsx = j, W.jsxs = j, W;
36
+ return W.Fragment = j, W.jsx = x, W.jsxs = x, W;
37
37
  }
38
38
  var $ = {};
39
39
  /**
@@ -45,27 +45,27 @@ var $ = {};
45
45
  * This source code is licensed under the MIT license found in the
46
46
  * LICENSE file in the root directory of this source tree.
47
47
  */
48
- var Oe;
49
- function dr() {
50
- return Oe || (Oe = 1, process.env.NODE_ENV !== "production" && function() {
51
- var s = Pe, E = Symbol.for("react.element"), P = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), j = Symbol.for("react.provider"), w = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), R = Symbol.iterator, L = "@@iterator";
52
- function Y(e) {
48
+ var Ce;
49
+ function fr() {
50
+ return Ce || (Ce = 1, process.env.NODE_ENV !== "production" && function() {
51
+ var c = Oe, m = Symbol.for("react.element"), j = Symbol.for("react.portal"), R = Symbol.for("react.fragment"), k = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), x = Symbol.for("react.provider"), T = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), O = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), E = Symbol.iterator, Y = "@@iterator";
52
+ function N(e) {
53
53
  if (e === null || typeof e != "object")
54
54
  return null;
55
- var r = R && e[R] || e[L];
55
+ var r = E && e[E] || e[Y];
56
56
  return typeof r == "function" ? r : null;
57
57
  }
58
- var x = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
59
- function p(e) {
58
+ var P = c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
59
+ function v(e) {
60
60
  {
61
61
  for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
62
62
  t[n - 1] = arguments[n];
63
- xe("error", e, t);
63
+ Pe("error", e, t);
64
64
  }
65
65
  }
66
- function xe(e, r, t) {
66
+ function Pe(e, r, t) {
67
67
  {
68
- var n = x.ReactDebugCurrentFrame, i = n.getStackAddendum();
68
+ var n = P.ReactDebugCurrentFrame, i = n.getStackAddendum();
69
69
  i !== "" && (r += "%s", t = t.concat([i]));
70
70
  var u = t.map(function(o) {
71
71
  return String(o);
@@ -73,63 +73,63 @@ function dr() {
73
73
  u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
74
74
  }
75
75
  }
76
- var je = !1, ke = !1, De = !1, Fe = !1, Ie = !1, re;
77
- re = Symbol.for("react.module.reference");
78
- function Ae(e) {
79
- return !!(typeof e == "string" || typeof e == "function" || e === h || e === c || Ie || e === _ || e === S || e === m || Fe || e === b || je || ke || De || typeof e == "object" && e !== null && (e.$$typeof === v || e.$$typeof === T || e.$$typeof === j || e.$$typeof === w || e.$$typeof === d || // This needs to include all possible module reference object
76
+ var xe = !1, Se = !1, je = !1, ke = !1, De = !1, ee;
77
+ ee = Symbol.for("react.module.reference");
78
+ function Fe(e) {
79
+ return !!(typeof e == "string" || typeof e == "function" || e === R || e === g || De || e === k || e === O || e === p || ke || e === b || xe || Se || je || typeof e == "object" && e !== null && (e.$$typeof === d || e.$$typeof === _ || e.$$typeof === x || e.$$typeof === T || e.$$typeof === f || // This needs to include all possible module reference object
80
80
  // types supported by any Flight configuration anywhere since
81
81
  // we don't know which Flight build this will end up being used
82
82
  // with.
83
- e.$$typeof === re || e.getModuleId !== void 0));
83
+ e.$$typeof === ee || e.getModuleId !== void 0));
84
84
  }
85
- function We(e, r, t) {
85
+ function Ie(e, r, t) {
86
86
  var n = e.displayName;
87
87
  if (n)
88
88
  return n;
89
89
  var i = r.displayName || r.name || "";
90
90
  return i !== "" ? t + "(" + i + ")" : t;
91
91
  }
92
- function te(e) {
92
+ function re(e) {
93
93
  return e.displayName || "Context";
94
94
  }
95
- function C(e) {
95
+ function w(e) {
96
96
  if (e == null)
97
97
  return null;
98
- if (typeof e.tag == "number" && p("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
98
+ if (typeof e.tag == "number" && v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
99
99
  return e.displayName || e.name || null;
100
100
  if (typeof e == "string")
101
101
  return e;
102
102
  switch (e) {
103
- case h:
103
+ case R:
104
104
  return "Fragment";
105
- case P:
105
+ case j:
106
106
  return "Portal";
107
- case c:
107
+ case g:
108
108
  return "Profiler";
109
- case _:
109
+ case k:
110
110
  return "StrictMode";
111
- case S:
111
+ case O:
112
112
  return "Suspense";
113
- case m:
113
+ case p:
114
114
  return "SuspenseList";
115
115
  }
116
116
  if (typeof e == "object")
117
117
  switch (e.$$typeof) {
118
- case w:
118
+ case T:
119
119
  var r = e;
120
- return te(r) + ".Consumer";
121
- case j:
120
+ return re(r) + ".Consumer";
121
+ case x:
122
122
  var t = e;
123
- return te(t._context) + ".Provider";
124
- case d:
125
- return We(e, e.render, "ForwardRef");
126
- case T:
123
+ return re(t._context) + ".Provider";
124
+ case f:
125
+ return Ie(e, e.render, "ForwardRef");
126
+ case _:
127
127
  var n = e.displayName || null;
128
- return n !== null ? n : C(e.type) || "Memo";
129
- case v: {
128
+ return n !== null ? n : w(e.type) || "Memo";
129
+ case d: {
130
130
  var i = e, u = i._payload, o = i._init;
131
131
  try {
132
- return C(o(u));
132
+ return w(o(u));
133
133
  } catch {
134
134
  return null;
135
135
  }
@@ -137,18 +137,18 @@ function dr() {
137
137
  }
138
138
  return null;
139
139
  }
140
- var k = Object.assign, I = 0, ne, ae, oe, ie, ue, se, le;
141
- function fe() {
140
+ var S = Object.assign, I = 0, te, ne, ae, oe, ie, ue, le;
141
+ function se() {
142
142
  }
143
- fe.__reactDisabledLog = !0;
144
- function $e() {
143
+ se.__reactDisabledLog = !0;
144
+ function Ae() {
145
145
  {
146
146
  if (I === 0) {
147
- ne = console.log, ae = console.info, oe = console.warn, ie = console.error, ue = console.group, se = console.groupCollapsed, le = console.groupEnd;
147
+ te = console.log, ne = console.info, ae = console.warn, oe = console.error, ie = console.group, ue = console.groupCollapsed, le = console.groupEnd;
148
148
  var e = {
149
149
  configurable: !0,
150
150
  enumerable: !0,
151
- value: fe,
151
+ value: se,
152
152
  writable: !0
153
153
  };
154
154
  Object.defineProperties(console, {
@@ -164,7 +164,7 @@ function dr() {
164
164
  I++;
165
165
  }
166
166
  }
167
- function Le() {
167
+ function We() {
168
168
  {
169
169
  if (I--, I === 0) {
170
170
  var e = {
@@ -173,53 +173,53 @@ function dr() {
173
173
  writable: !0
174
174
  };
175
175
  Object.defineProperties(console, {
176
- log: k({}, e, {
176
+ log: S({}, e, {
177
+ value: te
178
+ }),
179
+ info: S({}, e, {
177
180
  value: ne
178
181
  }),
179
- info: k({}, e, {
182
+ warn: S({}, e, {
180
183
  value: ae
181
184
  }),
182
- warn: k({}, e, {
185
+ error: S({}, e, {
183
186
  value: oe
184
187
  }),
185
- error: k({}, e, {
188
+ group: S({}, e, {
186
189
  value: ie
187
190
  }),
188
- group: k({}, e, {
191
+ groupCollapsed: S({}, e, {
189
192
  value: ue
190
193
  }),
191
- groupCollapsed: k({}, e, {
192
- value: se
193
- }),
194
- groupEnd: k({}, e, {
194
+ groupEnd: S({}, e, {
195
195
  value: le
196
196
  })
197
197
  });
198
198
  }
199
- I < 0 && p("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
199
+ I < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
200
200
  }
201
201
  }
202
- var J = x.ReactCurrentDispatcher, G;
203
- function N(e, r, t) {
202
+ var H = P.ReactCurrentDispatcher, J;
203
+ function L(e, r, t) {
204
204
  {
205
- if (G === void 0)
205
+ if (J === void 0)
206
206
  try {
207
207
  throw Error();
208
208
  } catch (i) {
209
209
  var n = i.stack.trim().match(/\n( *(at )?)/);
210
- G = n && n[1] || "";
210
+ J = n && n[1] || "";
211
211
  }
212
212
  return `
213
- ` + G + e;
213
+ ` + J + e;
214
214
  }
215
215
  }
216
- var H = !1, M;
216
+ var G = !1, M;
217
217
  {
218
- var Ye = typeof WeakMap == "function" ? WeakMap : Map;
219
- M = new Ye();
218
+ var $e = typeof WeakMap == "function" ? WeakMap : Map;
219
+ M = new $e();
220
220
  }
221
- function ce(e, r) {
222
- if (!e || H)
221
+ function fe(e, r) {
222
+ if (!e || G)
223
223
  return "";
224
224
  {
225
225
  var t = M.get(e);
@@ -227,11 +227,11 @@ function dr() {
227
227
  return t;
228
228
  }
229
229
  var n;
230
- H = !0;
230
+ G = !0;
231
231
  var i = Error.prepareStackTrace;
232
232
  Error.prepareStackTrace = void 0;
233
233
  var u;
234
- u = J.current, J.current = null, $e();
234
+ u = H.current, H.current = null, Ae();
235
235
  try {
236
236
  if (r) {
237
237
  var o = function() {
@@ -244,55 +244,55 @@ function dr() {
244
244
  }), typeof Reflect == "object" && Reflect.construct) {
245
245
  try {
246
246
  Reflect.construct(o, []);
247
- } catch (O) {
248
- n = O;
247
+ } catch (C) {
248
+ n = C;
249
249
  }
250
250
  Reflect.construct(e, [], o);
251
251
  } else {
252
252
  try {
253
253
  o.call();
254
- } catch (O) {
255
- n = O;
254
+ } catch (C) {
255
+ n = C;
256
256
  }
257
257
  e.call(o.prototype);
258
258
  }
259
259
  } else {
260
260
  try {
261
261
  throw Error();
262
- } catch (O) {
263
- n = O;
262
+ } catch (C) {
263
+ n = C;
264
264
  }
265
265
  e();
266
266
  }
267
- } catch (O) {
268
- if (O && n && typeof O.stack == "string") {
269
- for (var a = O.stack.split(`
270
- `), g = n.stack.split(`
271
- `), l = a.length - 1, f = g.length - 1; l >= 1 && f >= 0 && a[l] !== g[f]; )
272
- f--;
273
- for (; l >= 1 && f >= 0; l--, f--)
274
- if (a[l] !== g[f]) {
275
- if (l !== 1 || f !== 1)
267
+ } catch (C) {
268
+ if (C && n && typeof C.stack == "string") {
269
+ for (var a = C.stack.split(`
270
+ `), h = n.stack.split(`
271
+ `), l = a.length - 1, s = h.length - 1; l >= 1 && s >= 0 && a[l] !== h[s]; )
272
+ s--;
273
+ for (; l >= 1 && s >= 0; l--, s--)
274
+ if (a[l] !== h[s]) {
275
+ if (l !== 1 || s !== 1)
276
276
  do
277
- if (l--, f--, f < 0 || a[l] !== g[f]) {
277
+ if (l--, s--, s < 0 || a[l] !== h[s]) {
278
278
  var y = `
279
279
  ` + a[l].replace(" at new ", " at ");
280
280
  return e.displayName && y.includes("<anonymous>") && (y = y.replace("<anonymous>", e.displayName)), typeof e == "function" && M.set(e, y), y;
281
281
  }
282
- while (l >= 1 && f >= 0);
282
+ while (l >= 1 && s >= 0);
283
283
  break;
284
284
  }
285
285
  }
286
286
  } finally {
287
- H = !1, J.current = u, Le(), Error.prepareStackTrace = i;
287
+ G = !1, H.current = u, We(), Error.prepareStackTrace = i;
288
288
  }
289
- var F = e ? e.displayName || e.name : "", we = F ? N(F) : "";
290
- return typeof e == "function" && M.set(e, we), we;
289
+ var F = e ? e.displayName || e.name : "", Te = F ? L(F) : "";
290
+ return typeof e == "function" && M.set(e, Te), Te;
291
291
  }
292
- function Ne(e, r, t) {
293
- return ce(e, !1);
292
+ function Ye(e, r, t) {
293
+ return fe(e, !1);
294
294
  }
295
- function Me(e) {
295
+ function Ne(e) {
296
296
  var r = e.prototype;
297
297
  return !!(r && r.isReactComponent);
298
298
  }
@@ -300,22 +300,22 @@ function dr() {
300
300
  if (e == null)
301
301
  return "";
302
302
  if (typeof e == "function")
303
- return ce(e, Me(e));
303
+ return fe(e, Ne(e));
304
304
  if (typeof e == "string")
305
- return N(e);
305
+ return L(e);
306
306
  switch (e) {
307
- case S:
308
- return N("Suspense");
309
- case m:
310
- return N("SuspenseList");
307
+ case O:
308
+ return L("Suspense");
309
+ case p:
310
+ return L("SuspenseList");
311
311
  }
312
312
  if (typeof e == "object")
313
313
  switch (e.$$typeof) {
314
- case d:
315
- return Ne(e.render);
316
- case T:
314
+ case f:
315
+ return Ye(e.render);
316
+ case _:
317
317
  return V(e.type, r, t);
318
- case v: {
318
+ case d: {
319
319
  var n = e, i = n._payload, u = n._init;
320
320
  try {
321
321
  return V(u(i), r, t);
@@ -325,15 +325,15 @@ function dr() {
325
325
  }
326
326
  return "";
327
327
  }
328
- var U = Object.prototype.hasOwnProperty, de = {}, ve = x.ReactDebugCurrentFrame;
328
+ var U = Object.prototype.hasOwnProperty, ce = {}, de = P.ReactDebugCurrentFrame;
329
329
  function B(e) {
330
330
  if (e) {
331
331
  var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
332
- ve.setExtraStackFrame(t);
332
+ de.setExtraStackFrame(t);
333
333
  } else
334
- ve.setExtraStackFrame(null);
334
+ de.setExtraStackFrame(null);
335
335
  }
336
- function Ve(e, r, t, n, i) {
336
+ function Le(e, r, t, n, i) {
337
337
  {
338
338
  var u = Function.call.bind(U);
339
339
  for (var o in e)
@@ -341,49 +341,49 @@ function dr() {
341
341
  var a = void 0;
342
342
  try {
343
343
  if (typeof e[o] != "function") {
344
- var g = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
345
- throw g.name = "Invariant Violation", g;
344
+ var h = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
345
+ throw h.name = "Invariant Violation", h;
346
346
  }
347
347
  a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
348
348
  } catch (l) {
349
349
  a = l;
350
350
  }
351
- a && !(a instanceof Error) && (B(i), p("%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 de) && (de[a.message] = !0, B(i), p("Failed %s type: %s", t, a.message), B(null));
351
+ a && !(a instanceof Error) && (B(i), v("%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 ce) && (ce[a.message] = !0, B(i), v("Failed %s type: %s", t, a.message), B(null));
352
352
  }
353
353
  }
354
354
  }
355
- var Ue = Array.isArray;
355
+ var Me = Array.isArray;
356
356
  function z(e) {
357
- return Ue(e);
357
+ return Me(e);
358
358
  }
359
- function Be(e) {
359
+ function Ve(e) {
360
360
  {
361
361
  var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
362
362
  return t;
363
363
  }
364
364
  }
365
- function qe(e) {
365
+ function Ue(e) {
366
366
  try {
367
- return pe(e), !1;
367
+ return ve(e), !1;
368
368
  } catch {
369
369
  return !0;
370
370
  }
371
371
  }
372
- function pe(e) {
372
+ function ve(e) {
373
373
  return "" + e;
374
374
  }
375
- function he(e) {
376
- if (qe(e))
377
- return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Be(e)), pe(e);
375
+ function pe(e) {
376
+ if (Ue(e))
377
+ return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ve(e)), ve(e);
378
378
  }
379
- var A = x.ReactCurrentOwner, Je = {
379
+ var A = P.ReactCurrentOwner, Be = {
380
380
  key: !0,
381
381
  ref: !0,
382
382
  __self: !0,
383
383
  __source: !0
384
- }, me, ge, K;
384
+ }, he, ge, K;
385
385
  K = {};
386
- function Ge(e) {
386
+ function qe(e) {
387
387
  if (U.call(e, "ref")) {
388
388
  var r = Object.getOwnPropertyDescriptor(e, "ref").get;
389
389
  if (r && r.isReactWarning)
@@ -399,16 +399,16 @@ function dr() {
399
399
  }
400
400
  return e.key !== void 0;
401
401
  }
402
- function ze(e, r) {
402
+ function Je(e, r) {
403
403
  if (typeof e.ref == "string" && A.current && r && A.current.stateNode !== r) {
404
- var t = C(A.current.type);
405
- K[t] || (p('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', C(A.current.type), e.ref), K[t] = !0);
404
+ var t = w(A.current.type);
405
+ K[t] || (v('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', w(A.current.type), e.ref), K[t] = !0);
406
406
  }
407
407
  }
408
- function Ke(e, r) {
408
+ function Ge(e, r) {
409
409
  {
410
410
  var t = function() {
411
- me || (me = !0, p("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
411
+ he || (he = !0, v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
412
412
  };
413
413
  t.isReactWarning = !0, Object.defineProperty(e, "key", {
414
414
  get: t,
@@ -416,10 +416,10 @@ function dr() {
416
416
  });
417
417
  }
418
418
  }
419
- function Xe(e, r) {
419
+ function ze(e, r) {
420
420
  {
421
421
  var t = function() {
422
- ge || (ge = !0, p("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
422
+ ge || (ge = !0, v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
423
423
  };
424
424
  t.isReactWarning = !0, Object.defineProperty(e, "ref", {
425
425
  get: t,
@@ -427,10 +427,10 @@ function dr() {
427
427
  });
428
428
  }
429
429
  }
430
- var Ze = function(e, r, t, n, i, u, o) {
430
+ var Ke = function(e, r, t, n, i, u, o) {
431
431
  var a = {
432
432
  // This tag allows us to uniquely identify this as a React Element
433
- $$typeof: E,
433
+ $$typeof: m,
434
434
  // Built-in properties that belong on the element
435
435
  type: e,
436
436
  key: r,
@@ -456,41 +456,41 @@ function dr() {
456
456
  value: i
457
457
  }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
458
458
  };
459
- function Qe(e, r, t, n, i) {
459
+ function Xe(e, r, t, n, i) {
460
460
  {
461
- var u, o = {}, a = null, g = null;
462
- t !== void 0 && (he(t), a = "" + t), He(r) && (he(r.key), a = "" + r.key), Ge(r) && (g = r.ref, ze(r, i));
461
+ var u, o = {}, a = null, h = null;
462
+ t !== void 0 && (pe(t), a = "" + t), He(r) && (pe(r.key), a = "" + r.key), qe(r) && (h = r.ref, Je(r, i));
463
463
  for (u in r)
464
- U.call(r, u) && !Je.hasOwnProperty(u) && (o[u] = r[u]);
464
+ U.call(r, u) && !Be.hasOwnProperty(u) && (o[u] = r[u]);
465
465
  if (e && e.defaultProps) {
466
466
  var l = e.defaultProps;
467
467
  for (u in l)
468
468
  o[u] === void 0 && (o[u] = l[u]);
469
469
  }
470
- if (a || g) {
471
- var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
472
- a && Ke(o, f), g && Xe(o, f);
470
+ if (a || h) {
471
+ var s = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
472
+ a && Ge(o, s), h && ze(o, s);
473
473
  }
474
- return Ze(e, a, g, i, n, A.current, o);
474
+ return Ke(e, a, h, i, n, A.current, o);
475
475
  }
476
476
  }
477
- var X = x.ReactCurrentOwner, Ee = x.ReactDebugCurrentFrame;
477
+ var X = P.ReactCurrentOwner, me = P.ReactDebugCurrentFrame;
478
478
  function D(e) {
479
479
  if (e) {
480
480
  var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
481
- Ee.setExtraStackFrame(t);
481
+ me.setExtraStackFrame(t);
482
482
  } else
483
- Ee.setExtraStackFrame(null);
483
+ me.setExtraStackFrame(null);
484
484
  }
485
485
  var Z;
486
486
  Z = !1;
487
487
  function Q(e) {
488
- return typeof e == "object" && e !== null && e.$$typeof === E;
488
+ return typeof e == "object" && e !== null && e.$$typeof === m;
489
489
  }
490
490
  function be() {
491
491
  {
492
492
  if (X.current) {
493
- var e = C(X.current.type);
493
+ var e = w(X.current.type);
494
494
  if (e)
495
495
  return `
496
496
 
@@ -499,7 +499,7 @@ Check the render method of \`` + e + "`.";
499
499
  return "";
500
500
  }
501
501
  }
502
- function er(e) {
502
+ function Ze(e) {
503
503
  {
504
504
  if (e !== void 0) {
505
505
  var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
@@ -510,8 +510,8 @@ Check your code at ` + r + ":" + t + ".";
510
510
  return "";
511
511
  }
512
512
  }
513
- var Re = {};
514
- function rr(e) {
513
+ var Ee = {};
514
+ function Qe(e) {
515
515
  {
516
516
  var r = be();
517
517
  if (!r) {
@@ -528,15 +528,15 @@ Check the top-level render call using <` + t + ">.");
528
528
  if (!e._store || e._store.validated || e.key != null)
529
529
  return;
530
530
  e._store.validated = !0;
531
- var t = rr(r);
532
- if (Re[t])
531
+ var t = Qe(r);
532
+ if (Ee[t])
533
533
  return;
534
- Re[t] = !0;
534
+ Ee[t] = !0;
535
535
  var n = "";
536
- e && e._owner && e._owner !== X.current && (n = " It was passed a child from " + C(e._owner.type) + "."), D(e), p('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);
536
+ e && e._owner && e._owner !== X.current && (n = " It was passed a child from " + w(e._owner.type) + "."), D(e), v('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);
537
537
  }
538
538
  }
539
- function _e(e, r) {
539
+ function Re(e, r) {
540
540
  {
541
541
  if (typeof e != "object")
542
542
  return;
@@ -548,14 +548,14 @@ Check the top-level render call using <` + t + ">.");
548
548
  else if (Q(e))
549
549
  e._store && (e._store.validated = !0);
550
550
  else if (e) {
551
- var i = Y(e);
551
+ var i = N(e);
552
552
  if (typeof i == "function" && i !== e.entries)
553
553
  for (var u = i.call(e), o; !(o = u.next()).done; )
554
554
  Q(o.value) && ye(o.value, r);
555
555
  }
556
556
  }
557
557
  }
558
- function tr(e) {
558
+ function er(e) {
559
559
  {
560
560
  var r = e.type;
561
561
  if (r == null || typeof r == "string")
@@ -563,191 +563,161 @@ Check the top-level render call using <` + t + ">.");
563
563
  var t;
564
564
  if (typeof r == "function")
565
565
  t = r.propTypes;
566
- else if (typeof r == "object" && (r.$$typeof === d || // Note: Memo only checks outer props here.
566
+ else if (typeof r == "object" && (r.$$typeof === f || // Note: Memo only checks outer props here.
567
567
  // Inner props are checked in the reconciler.
568
- r.$$typeof === T))
568
+ r.$$typeof === _))
569
569
  t = r.propTypes;
570
570
  else
571
571
  return;
572
572
  if (t) {
573
- var n = C(r);
574
- Ve(t, e.props, "prop", n, e);
573
+ var n = w(r);
574
+ Le(t, e.props, "prop", n, e);
575
575
  } else if (r.PropTypes !== void 0 && !Z) {
576
576
  Z = !0;
577
- var i = C(r);
578
- p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
577
+ var i = w(r);
578
+ v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
579
579
  }
580
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
580
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
581
581
  }
582
582
  }
583
- function nr(e) {
583
+ function rr(e) {
584
584
  {
585
585
  for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
586
586
  var n = r[t];
587
587
  if (n !== "children" && n !== "key") {
588
- D(e), p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), D(null);
588
+ D(e), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), D(null);
589
589
  break;
590
590
  }
591
591
  }
592
- e.ref !== null && (D(e), p("Invalid attribute `ref` supplied to `React.Fragment`."), D(null));
592
+ e.ref !== null && (D(e), v("Invalid attribute `ref` supplied to `React.Fragment`."), D(null));
593
593
  }
594
594
  }
595
- function Te(e, r, t, n, i, u) {
595
+ function _e(e, r, t, n, i, u) {
596
596
  {
597
- var o = Ae(e);
597
+ var o = Fe(e);
598
598
  if (!o) {
599
599
  var a = "";
600
600
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
601
- var g = er(i);
602
- g ? a += g : a += be();
601
+ var h = Ze(i);
602
+ h ? a += h : a += be();
603
603
  var l;
604
- e === null ? l = "null" : z(e) ? l = "array" : e !== void 0 && e.$$typeof === E ? (l = "<" + (C(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : l = typeof e, p("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);
604
+ e === null ? l = "null" : z(e) ? l = "array" : e !== void 0 && e.$$typeof === m ? (l = "<" + (w(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : l = typeof e, v("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);
605
605
  }
606
- var f = Qe(e, r, t, i, u);
607
- if (f == null)
608
- return f;
606
+ var s = Xe(e, r, t, i, u);
607
+ if (s == null)
608
+ return s;
609
609
  if (o) {
610
610
  var y = r.children;
611
611
  if (y !== void 0)
612
612
  if (n)
613
613
  if (z(y)) {
614
614
  for (var F = 0; F < y.length; F++)
615
- _e(y[F], e);
615
+ Re(y[F], e);
616
616
  Object.freeze && Object.freeze(y);
617
617
  } else
618
- p("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
618
+ v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
619
619
  else
620
- _e(y, e);
620
+ Re(y, e);
621
621
  }
622
- return e === h ? nr(f) : tr(f), f;
622
+ return e === R ? rr(s) : er(s), s;
623
623
  }
624
624
  }
625
- function ar(e, r, t) {
626
- return Te(e, r, t, !0);
625
+ function tr(e, r, t) {
626
+ return _e(e, r, t, !0);
627
627
  }
628
- function or(e, r, t) {
629
- return Te(e, r, t, !1);
628
+ function nr(e, r, t) {
629
+ return _e(e, r, t, !1);
630
630
  }
631
- var ir = or, ur = ar;
632
- $.Fragment = h, $.jsx = ir, $.jsxs = ur;
631
+ var ar = nr, or = tr;
632
+ $.Fragment = R, $.jsx = ar, $.jsxs = or;
633
633
  }()), $;
634
634
  }
635
- (function(s) {
636
- process.env.NODE_ENV === "production" ? s.exports = cr() : s.exports = dr();
637
- })(fr);
638
- const ee = "RSC::Event";
639
- function mr() {
640
- const s = Se(null);
641
- function E(h) {
642
- sr(() => {
643
- s.current || (s.current = document.createElement("div"));
644
- function _(c) {
645
- h(c.detail);
646
- }
647
- if (s.current)
648
- return s.current.addEventListener(ee, _, !1), () => {
649
- var c;
650
- (c = s.current) == null || c.removeEventListener(ee, _, !1);
651
- };
652
- }, [h]);
653
- }
654
- function P(h) {
655
- if (s.current) {
656
- const _ = new CustomEvent(ee, {
657
- detail: h
658
- });
659
- s.current.dispatchEvent(_);
660
- }
661
- }
662
- return {
663
- useListenToCustomEvent: E,
664
- emitEvent: P
665
- };
666
- }
667
- function vr(s) {
668
- const E = s.getBoundingClientRect();
669
- return E.top >= 0 && E.left >= 0 && E.bottom <= (window.innerHeight || document.documentElement.clientHeight) && E.right <= (window.innerWidth || document.documentElement.clientWidth);
635
+ (function(c) {
636
+ process.env.NODE_ENV === "production" ? c.exports = sr() : c.exports = fr();
637
+ })(lr);
638
+ function cr(c) {
639
+ const m = c.getBoundingClientRect();
640
+ return m.top >= 0 && m.left >= 0 && m.bottom <= (window.innerHeight || document.documentElement.clientHeight) && m.right <= (window.innerWidth || document.documentElement.clientWidth);
670
641
  }
671
- function gr({
672
- thumbsSlideAxis: s = "x",
673
- withThumbs: E = !1,
674
- prepareThumbsData: P,
675
- items: h,
676
- renderThumbFnProps: _
642
+ function pr({
643
+ thumbsSlideAxis: c = "x",
644
+ withThumbs: m = !1,
645
+ prepareThumbsData: j,
646
+ items: R,
647
+ renderThumbFnProps: k
677
648
  }) {
678
- const c = Se(null), [j, w] = lr(() => ({
649
+ const g = ir(null), [x, T] = ur(() => ({
679
650
  val: 0
680
651
  }));
681
- function d() {
682
- var v;
652
+ function f() {
653
+ var d;
683
654
  return Math.round(
684
- Number(
685
- (v = c.current) == null ? void 0 : v[s === "x" ? "scrollWidth" : "scrollHeight"]
686
- ) - c.current.getBoundingClientRect()[s === "x" ? "width" : "height"]
655
+ Number((d = g.current) == null ? void 0 : d[c === "x" ? "scrollWidth" : "scrollHeight"]) - g.current.getBoundingClientRect()[c === "x" ? "width" : "height"]
687
656
  );
688
657
  }
689
- function S(v) {
690
- var L;
658
+ function O(d) {
659
+ var Y;
691
660
  function b() {
692
- return c.current ? c.current.querySelector(
693
- `#thumb-item-${h[v].id}`
661
+ return g.current ? g.current.querySelector(
662
+ `#thumb-item-${R[d].id}`
694
663
  ) : null;
695
664
  }
696
- const R = b();
697
- if (R && c.current && !vr(R)) {
698
- const Y = R.offsetLeft, x = Y > d() ? d() : Y;
699
- w.start({
665
+ const E = b();
666
+ if (E && g.current && !cr(E)) {
667
+ const N = E.offsetLeft, P = N > f() ? f() : N;
668
+ T.start({
700
669
  from: {
701
- val: ((L = c.current) == null ? void 0 : L[s === "x" ? "scrollLeft" : "scrollTop"]) ?? 0
670
+ val: ((Y = g.current) == null ? void 0 : Y[c === "x" ? "scrollLeft" : "scrollTop"]) ?? 0
702
671
  },
703
672
  to: {
704
- val: x
673
+ val: P
705
674
  },
706
- onChange: ({ value: p }) => {
707
- c.current && (c.current[s === "x" ? "scrollLeft" : "scrollTop"] = Math.abs(p.val));
675
+ onChange: ({ value: v }) => {
676
+ g.current && (g.current[c === "x" ? "scrollLeft" : "scrollTop"] = Math.abs(
677
+ v.val
678
+ ));
708
679
  }
709
680
  });
710
681
  }
711
682
  }
712
- function m() {
713
- function v(b) {
714
- return b.map((R) => ({
715
- id: R.id,
716
- renderThumb: R.renderThumb
683
+ function p() {
684
+ function d(b) {
685
+ return b.map((E) => ({
686
+ id: E.id,
687
+ renderThumb: E.renderThumb
717
688
  }));
718
689
  }
719
- return P ? P(v(h)) : v(h);
690
+ return j ? j(d(R)) : d(R);
720
691
  }
721
692
  return {
722
- thumbsFragment: E ? /* @__PURE__ */ q.jsx(
693
+ thumbsFragment: m ? /* @__PURE__ */ q.jsx(
723
694
  "div",
724
695
  {
725
696
  className: "use-spring-carousel-thumbs-wrapper",
726
- ref: c,
727
- onWheel: () => j.val.stop(),
697
+ ref: g,
698
+ onWheel: () => x.val.stop(),
728
699
  style: {
729
700
  display: "flex",
730
701
  flex: "1",
731
702
  position: "relative",
732
703
  width: "100%",
733
704
  height: "100%",
734
- flexDirection: s === "x" ? "row" : "column",
735
- ...s === "x" ? { overflowX: "auto" } : {
705
+ flexDirection: c === "x" ? "row" : "column",
706
+ ...c === "x" ? { overflowX: "auto" } : {
736
707
  overflowY: "auto",
737
708
  maxHeight: "100%"
738
709
  }
739
710
  },
740
- children: m().map(({ id: v, renderThumb: b }) => {
741
- const R = `thumb-item-${v}`;
742
- return /* @__PURE__ */ q.jsx("div", { id: R, className: "thumb-item", children: typeof b == "function" ? b(_) : b }, R);
711
+ children: p().map(({ id: d, renderThumb: b }) => {
712
+ const E = `thumb-item-${d}`;
713
+ return /* @__PURE__ */ q.jsx("div", { id: E, className: "thumb-item", children: typeof b == "function" ? b(k) : b }, E);
743
714
  })
744
715
  }
745
716
  ) : null,
746
- handleScroll: S
717
+ handleScroll: O
747
718
  };
748
719
  }
749
720
  export {
750
- gr as a,
751
721
  q as j,
752
- mr as u
722
+ pr as u
753
723
  };