@thecb/components 11.0.1 → 11.0.2-beta.0

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.esm.js CHANGED
@@ -228,58 +228,6 @@ function __rest(s, e) {
228
228
  t[p[i]] = s[p[i]];
229
229
  }
230
230
  return t;
231
- }
232
-
233
- /*! *****************************************************************************
234
- Copyright (c) Microsoft Corporation.
235
-
236
- Permission to use, copy, modify, and/or distribute this software for any
237
- purpose with or without fee is hereby granted.
238
-
239
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
240
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
241
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
242
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
243
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
244
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
245
- PERFORMANCE OF THIS SOFTWARE.
246
- ***************************************************************************** */
247
- /* global Reflect, Promise */
248
-
249
- var extendStatics$1 = function(d, b) {
250
- extendStatics$1 = Object.setPrototypeOf ||
251
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
252
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
253
- return extendStatics$1(d, b);
254
- };
255
-
256
- function __extends$1(d, b) {
257
- extendStatics$1(d, b);
258
- function __() { this.constructor = d; }
259
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
260
- }
261
-
262
- var __assign$1 = function() {
263
- __assign$1 = Object.assign || function __assign(t) {
264
- for (var s, i = 1, n = arguments.length; i < n; i++) {
265
- s = arguments[i];
266
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
267
- }
268
- return t;
269
- };
270
- return __assign$1.apply(this, arguments);
271
- };
272
-
273
- function __rest$1(s, e) {
274
- var t = {};
275
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
276
- t[p] = s[p];
277
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
278
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
279
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
280
- t[p[i]] = s[p[i]];
281
- }
282
- return t;
283
231
  }
284
232
 
285
233
  function __spreadArrays() {
@@ -290,32 +238,6 @@ function __spreadArrays() {
290
238
  return r;
291
239
  }
292
240
 
293
- /*! *****************************************************************************
294
- Copyright (c) Microsoft Corporation.
295
-
296
- Permission to use, copy, modify, and/or distribute this software for any
297
- purpose with or without fee is hereby granted.
298
-
299
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
300
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
301
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
302
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
303
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
304
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
305
- PERFORMANCE OF THIS SOFTWARE.
306
- ***************************************************************************** */
307
-
308
- var __assign$2 = function() {
309
- __assign$2 = Object.assign || function __assign(t) {
310
- for (var s, i = 1, n = arguments.length; i < n; i++) {
311
- s = arguments[i];
312
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
313
- }
314
- return t;
315
- };
316
- return __assign$2.apply(this, arguments);
317
- };
318
-
319
241
  var clamp = function (min, max) { return function (v) {
320
242
  return Math.max(Math.min(v, max), min);
321
243
  }; };
@@ -329,8 +251,8 @@ var number = {
329
251
  parse: parseFloat,
330
252
  transform: function (v) { return v; }
331
253
  };
332
- var alpha = __assign$2(__assign$2({}, number), { transform: clamp(0, 1) });
333
- var scale = __assign$2(__assign$2({}, number), { default: 1 });
254
+ var alpha = __assign(__assign({}, number), { transform: clamp(0, 1) });
255
+ var scale = __assign(__assign({}, number), { default: 1 });
334
256
 
335
257
  var createUnitType = function (unit) { return ({
336
258
  test: function (v) {
@@ -344,7 +266,7 @@ var percent = createUnitType('%');
344
266
  var px = createUnitType('px');
345
267
  var vh = createUnitType('vh');
346
268
  var vw = createUnitType('vw');
347
- var progressPercentage = __assign$2(__assign$2({}, percent), { parse: function (v) { return percent.parse(v) / 100; }, transform: function (v) { return percent.transform(v * 100); } });
269
+ var progressPercentage = __assign(__assign({}, percent), { parse: function (v) { return percent.parse(v) / 100; }, transform: function (v) { return percent.transform(v * 100); } });
348
270
 
349
271
  var getValueFromFunctionString = function (value) {
350
272
  return value.substring(value.indexOf('(') + 1, value.lastIndexOf(')'));
@@ -378,7 +300,7 @@ var hslaTemplate = function (_a) {
378
300
  var hue = _a.hue, saturation = _a.saturation, lightness = _a.lightness, _b = _a.alpha, alpha = _b === void 0 ? 1 : _b;
379
301
  return "hsla(" + hue + ", " + saturation + ", " + lightness + ", " + alpha + ")";
380
302
  };
381
- var rgbUnit = __assign$2(__assign$2({}, number), { transform: function (v) { return Math.round(clampRgbUnit(v)); } });
303
+ var rgbUnit = __assign(__assign({}, number), { transform: function (v) { return Math.round(clampRgbUnit(v)); } });
382
304
  function isColorString(color, colorType) {
383
305
  return color.startsWith(colorType) && singleColorRegex.test(color);
384
306
  }
@@ -408,7 +330,7 @@ var hsla = {
408
330
  });
409
331
  }
410
332
  };
411
- var hex = __assign$2(__assign$2({}, rgba), { test: function (v) { return typeof v === 'string' && isColorString(v, '#'); }, parse: function (v) {
333
+ var hex = __assign(__assign({}, rgba), { test: function (v) { return typeof v === 'string' && isColorString(v, '#'); }, parse: function (v) {
412
334
  var r = '';
413
335
  var g = '';
414
336
  var b = '';
@@ -944,15 +866,15 @@ See the Apache Version 2.0 License for specific language governing permissions
944
866
  and limitations under the License.
945
867
  ***************************************************************************** */
946
868
 
947
- var __assign$3 = function() {
948
- __assign$3 = Object.assign || function __assign(t) {
869
+ var __assign$1 = function() {
870
+ __assign$1 = Object.assign || function __assign(t) {
949
871
  for (var s, i = 1, n = arguments.length; i < n; i++) {
950
872
  s = arguments[i];
951
873
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
952
874
  }
953
875
  return t;
954
876
  };
955
- return __assign$3.apply(this, arguments);
877
+ return __assign$1.apply(this, arguments);
956
878
  };
957
879
 
958
880
  var mixLinearColor = function (from, to, v) {
@@ -975,7 +897,7 @@ var mixColor = (function (from, to) {
975
897
  invariant(fromColorType.transform === toColorType.transform, 'Both colors must be hex/RGBA, OR both must be HSLA.');
976
898
  var fromColor = fromColorType.parse(from);
977
899
  var toColor = toColorType.parse(to);
978
- var blended = __assign$3({}, fromColor);
900
+ var blended = __assign$1({}, fromColor);
979
901
  var mixFunc = fromColorType === hsla ? mix : mixLinearColor;
980
902
  return function (v) {
981
903
  for (var key in blended) {
@@ -1020,7 +942,7 @@ var mixArray = function (from, to) {
1020
942
  };
1021
943
  };
1022
944
  var mixObject = function (origin, target) {
1023
- var output = __assign$3({}, origin, target);
945
+ var output = __assign$1({}, origin, target);
1024
946
  var blendValue = {};
1025
947
  for (var key in output) {
1026
948
  if (origin[key] !== undefined && target[key] !== undefined) {
@@ -1232,44 +1154,6 @@ var wrap$1 = curryRange(wrap);
1232
1154
 
1233
1155
  var clampProgress = clamp$1$1(0, 1);
1234
1156
 
1235
- /*! *****************************************************************************
1236
- Copyright (c) Microsoft Corporation.
1237
-
1238
- Permission to use, copy, modify, and/or distribute this software for any
1239
- purpose with or without fee is hereby granted.
1240
-
1241
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
1242
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1243
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
1244
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1245
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1246
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1247
- PERFORMANCE OF THIS SOFTWARE.
1248
- ***************************************************************************** */
1249
-
1250
- var __assign$4 = function() {
1251
- __assign$4 = Object.assign || function __assign(t) {
1252
- for (var s, i = 1, n = arguments.length; i < n; i++) {
1253
- s = arguments[i];
1254
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
1255
- }
1256
- return t;
1257
- };
1258
- return __assign$4.apply(this, arguments);
1259
- };
1260
-
1261
- function __rest$2(s, e) {
1262
- var t = {};
1263
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
1264
- t[p] = s[p];
1265
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
1266
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
1267
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
1268
- t[p[i]] = s[p[i]];
1269
- }
1270
- return t;
1271
- }
1272
-
1273
1157
  var createStyler = function (_a) {
1274
1158
  var onRead = _a.onRead,
1275
1159
  onRender = _a.onRender,
@@ -1281,7 +1165,7 @@ var createStyler = function (_a) {
1281
1165
  if (_a === void 0) {
1282
1166
  _a = {};
1283
1167
  }
1284
- var props = __rest$2(_a, []);
1168
+ var props = __rest(_a, []);
1285
1169
  var state = {};
1286
1170
  var changedValues = [];
1287
1171
  var hasChanged = false;
@@ -1401,7 +1285,7 @@ function isTransformOriginProp(key) {
1401
1285
  return transformOriginProps.has(key);
1402
1286
  }
1403
1287
 
1404
- var int = /*#__PURE__*/__assign$4( /*#__PURE__*/__assign$4({}, number), { transform: Math.round });
1288
+ var int = /*#__PURE__*/__assign( /*#__PURE__*/__assign({}, number), { transform: Math.round });
1405
1289
  var valueTypes = {
1406
1290
  color: color,
1407
1291
  backgroundColor: color,
@@ -1633,8 +1517,8 @@ function createCssStyler(element, _a) {
1633
1517
  }
1634
1518
  var enableHardwareAcceleration = _a.enableHardwareAcceleration,
1635
1519
  allowTransformNone = _a.allowTransformNone,
1636
- props = __rest$2(_a, ["enableHardwareAcceleration", "allowTransformNone"]);
1637
- return cssStyler(__assign$4({ element: element, buildStyles: createStyleBuilder({
1520
+ props = __rest(_a, ["enableHardwareAcceleration", "allowTransformNone"]);
1521
+ return cssStyler(__assign({ element: element, buildStyles: createStyleBuilder({
1638
1522
  enableHardwareAcceleration: enableHardwareAcceleration,
1639
1523
  allowTransformNone: allowTransformNone
1640
1524
  }), preparseOutput: true }, props));
@@ -1684,7 +1568,7 @@ function buildSVGAttrs(_a, dimensions, totalPathLength, cssBuilder, attrs, isDas
1684
1568
  pathSpacing = _b === void 0 ? 1 : _b,
1685
1569
  _c = _a.pathOffset,
1686
1570
  pathOffset = _c === void 0 ? 0 : _c,
1687
- state = __rest$2(_a, ["attrX", "attrY", "originX", "originY", "pathLength", "pathSpacing", "pathOffset"]);
1571
+ state = __rest(_a, ["attrX", "attrY", "originX", "originY", "pathLength", "pathSpacing", "pathOffset"]);
1688
1572
  var style = cssBuilder(state);
1689
1573
  for (var key in style) {
1690
1574
  if (key === 'transform') {
@@ -1813,7 +1697,7 @@ var Chainable = /*#__PURE__*/function () {
1813
1697
  this.props = props;
1814
1698
  }
1815
1699
  Chainable.prototype.applyMiddleware = function (middleware) {
1816
- return this.create(__assign$1(__assign$1({}, this.props), { middleware: this.props.middleware ? __spreadArrays([middleware], this.props.middleware) : [middleware] }));
1700
+ return this.create(__assign(__assign({}, this.props), { middleware: this.props.middleware ? __spreadArrays([middleware], this.props.middleware) : [middleware] }));
1817
1701
  };
1818
1702
  Chainable.prototype.pipe = function () {
1819
1703
  var funcs = [];
@@ -1885,7 +1769,7 @@ var createObserver = function (observerCandidate, _a, onComplete) {
1885
1769
  };
1886
1770
 
1887
1771
  var Action = /*#__PURE__*/function (_super) {
1888
- __extends$1(Action, _super);
1772
+ __extends(Action, _super);
1889
1773
  function Action() {
1890
1774
  return _super !== null && _super.apply(this, arguments) || this;
1891
1775
  }
@@ -1904,13 +1788,13 @@ var Action = /*#__PURE__*/function (_super) {
1904
1788
  };
1905
1789
  var _a = this.props,
1906
1790
  init = _a.init,
1907
- observerProps = __rest$1(_a, ["init"]);
1791
+ observerProps = __rest(_a, ["init"]);
1908
1792
  var observer = createObserver(observerCandidate, observerProps, function () {
1909
1793
  isComplete = true;
1910
1794
  subscription.stop();
1911
1795
  });
1912
1796
  var api = init(observer);
1913
- subscription = api ? __assign$1(__assign$1({}, subscription), api) : subscription;
1797
+ subscription = api ? __assign(__assign({}, subscription), api) : subscription;
1914
1798
  if (observerCandidate.registerParent) {
1915
1799
  observerCandidate.registerParent(subscription);
1916
1800
  }
@@ -1924,7 +1808,7 @@ var action = function (init) {
1924
1808
  };
1925
1809
 
1926
1810
  var BaseMulticast = /*#__PURE__*/function (_super) {
1927
- __extends$1(BaseMulticast, _super);
1811
+ __extends(BaseMulticast, _super);
1928
1812
  function BaseMulticast() {
1929
1813
  var _this = _super !== null && _super.apply(this, arguments) || this;
1930
1814
  _this.subscribers = [];
@@ -1984,7 +1868,7 @@ var isSingleValue = function (v) {
1984
1868
  return typeOfV === 'string' || typeOfV === 'number';
1985
1869
  };
1986
1870
  var ValueReaction = /*#__PURE__*/function (_super) {
1987
- __extends$1(ValueReaction, _super);
1871
+ __extends(ValueReaction, _super);
1988
1872
  function ValueReaction(props) {
1989
1873
  var _this = _super.call(this, props) || this;
1990
1874
  _this.scheduleVelocityCheck = function () {
@@ -2234,7 +2118,7 @@ var reduceArrayValue = function (i) {
2234
2118
  var createArrayAction = function (action, props, vectorKeys) {
2235
2119
  var firstVectorKey = vectorKeys[0];
2236
2120
  var actionList = props[firstVectorKey].map(function (v, i) {
2237
- var childActionProps = vectorKeys.reduce(reduceArrayValue(i), __assign$1({}, props));
2121
+ var childActionProps = vectorKeys.reduce(reduceArrayValue(i), __assign({}, props));
2238
2122
  return getActionCreator(v)(action, childActionProps);
2239
2123
  });
2240
2124
  return parallel$1.apply(void 0, actionList);
@@ -2248,7 +2132,7 @@ var reduceObjectValue = function (key) {
2248
2132
  var createObjectAction = function (action, props, vectorKeys) {
2249
2133
  var firstVectorKey = vectorKeys[0];
2250
2134
  var actionMap = Object.keys(props[firstVectorKey]).reduce(function (map, key) {
2251
- var childActionProps = vectorKeys.reduce(reduceObjectValue(key), __assign$1({}, props));
2135
+ var childActionProps = vectorKeys.reduce(reduceObjectValue(key), __assign({}, props));
2252
2136
  map[key] = getActionCreator(props[firstVectorKey][key])(action, childActionProps);
2253
2137
  return map;
2254
2138
  }, {});
@@ -2257,18 +2141,18 @@ var createObjectAction = function (action, props, vectorKeys) {
2257
2141
  var createUnitAction = function (action, _a) {
2258
2142
  var from = _a.from,
2259
2143
  to = _a.to,
2260
- props = __rest$1(_a, ["from", "to"]);
2144
+ props = __rest(_a, ["from", "to"]);
2261
2145
  var unitType = findUnitType(from) || findUnitType(to);
2262
2146
  var transform = unitType.transform,
2263
2147
  parse = unitType.parse;
2264
- return action(__assign$1(__assign$1({}, props), { from: typeof from === 'string' ? parse(from) : from, to: typeof to === 'string' ? parse(to) : to })).pipe(transform);
2148
+ return action(__assign(__assign({}, props), { from: typeof from === 'string' ? parse(from) : from, to: typeof to === 'string' ? parse(to) : to })).pipe(transform);
2265
2149
  };
2266
2150
  var createMixerAction = function (mixer) {
2267
2151
  return function (action, _a) {
2268
2152
  var from = _a.from,
2269
2153
  to = _a.to,
2270
- props = __rest$1(_a, ["from", "to"]);
2271
- return action(__assign$1(__assign$1({}, props), { from: 0, to: 1 })).pipe(mixer(from, to));
2154
+ props = __rest(_a, ["from", "to"]);
2155
+ return action(__assign(__assign({}, props), { from: 0, to: 1 })).pipe(mixer(from, to));
2272
2156
  };
2273
2157
  };
2274
2158
  var createColorAction = /*#__PURE__*/createMixerAction(mixColor);
@@ -2614,7 +2498,7 @@ var keyframes = function (_a) {
2614
2498
  ease = _b === void 0 ? linear : _b,
2615
2499
  times = _a.times,
2616
2500
  values = _a.values,
2617
- tweenProps = __rest$1(_a, ["easings", "ease", "times", "values"]);
2501
+ tweenProps = __rest(_a, ["easings", "ease", "times", "values"]);
2618
2502
  easings = Array.isArray(easings) ? easings : defaultEasings(values, easings);
2619
2503
  times = times || defaultTimings(values);
2620
2504
  var scrubbers = easings.map(function (easing, i) {
@@ -2624,7 +2508,7 @@ var keyframes = function (_a) {
2624
2508
  ease: easing
2625
2509
  });
2626
2510
  });
2627
- return tween(__assign$1(__assign$1({}, tweenProps), { ease: ease })).applyMiddleware(function (update) {
2511
+ return tween(__assign(__assign({}, tweenProps), { ease: ease })).applyMiddleware(function (update) {
2628
2512
  return interpolateScrubbers(times, scrubbers, update);
2629
2513
  });
2630
2514
  };
@@ -2868,7 +2752,7 @@ var index$1 = function (_a) {
2868
2752
  }
2869
2753
  var x = _a.x,
2870
2754
  y = _a.y,
2871
- props = __rest$1(_a, ["x", "y"]);
2755
+ props = __rest(_a, ["x", "y"]);
2872
2756
  if (x !== undefined || y !== undefined) {
2873
2757
  var applyXOffset_1 = applyOffset(x || 0);
2874
2758
  var applyYOffset_1 = applyOffset(y || 0);
@@ -2942,7 +2826,7 @@ var steps$1 = function (st, min, max) {
2942
2826
  };
2943
2827
  var transformMap = function (childTransformers) {
2944
2828
  return function (v) {
2945
- var output = __assign$1({}, v);
2829
+ var output = __assign({}, v);
2946
2830
  for (var key in childTransformers) {
2947
2831
  if (childTransformers.hasOwnProperty(key)) {
2948
2832
  var childTransformer = childTransformers[key];
@@ -2973,52 +2857,6 @@ var transformers = /*#__PURE__*/Object.freeze({
2973
2857
  transformMap: transformMap
2974
2858
  });
2975
2859
 
2976
- /*! *****************************************************************************
2977
- Copyright (c) Microsoft Corporation.
2978
-
2979
- Permission to use, copy, modify, and/or distribute this software for any
2980
- purpose with or without fee is hereby granted.
2981
-
2982
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
2983
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
2984
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
2985
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
2986
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
2987
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2988
- PERFORMANCE OF THIS SOFTWARE.
2989
- ***************************************************************************** */
2990
-
2991
- var __assign$5 = function() {
2992
- __assign$5 = Object.assign || function __assign(t) {
2993
- for (var s, i = 1, n = arguments.length; i < n; i++) {
2994
- s = arguments[i];
2995
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
2996
- }
2997
- return t;
2998
- };
2999
- return __assign$5.apply(this, arguments);
3000
- };
3001
-
3002
- function __rest$3(s, e) {
3003
- var t = {};
3004
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
3005
- t[p] = s[p];
3006
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
3007
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
3008
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
3009
- t[p[i]] = s[p[i]];
3010
- }
3011
- return t;
3012
- }
3013
-
3014
- function __spreadArrays$1() {
3015
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
3016
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
3017
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
3018
- r[k] = a[j];
3019
- return r;
3020
- }
3021
-
3022
2860
  var getPoseValues = function (_a) {
3023
2861
  var transition = _a.transition,
3024
2862
  flip = _a.flip,
@@ -3031,7 +2869,7 @@ var getPoseValues = function (_a) {
3031
2869
  preTransition = _a.preTransition,
3032
2870
  applyAtStart = _a.applyAtStart,
3033
2871
  applyAtEnd = _a.applyAtEnd,
3034
- props = __rest$3(_a, ["transition", "flip", "delay", "delayChildren", "staggerChildren", "staggerDirection", "afterChildren", "beforeChildren", "preTransition", "applyAtStart", "applyAtEnd"]);
2872
+ props = __rest(_a, ["transition", "flip", "delay", "delayChildren", "staggerChildren", "staggerDirection", "afterChildren", "beforeChildren", "preTransition", "applyAtStart", "applyAtEnd"]);
3035
2873
  return props;
3036
2874
  };
3037
2875
  var selectPoses = function (_a) {
@@ -3043,7 +2881,7 @@ var selectPoses = function (_a) {
3043
2881
  onChange = _a.onChange,
3044
2882
  passive = _a.passive,
3045
2883
  initialPose = _a.initialPose,
3046
- poses = __rest$3(_a, ["label", "props", "values", "parentValues", "ancestorValues", "onChange", "passive", "initialPose"]);
2884
+ poses = __rest(_a, ["label", "props", "values", "parentValues", "ancestorValues", "onChange", "passive", "initialPose"]);
3047
2885
  return poses;
3048
2886
  };
3049
2887
  var selectAllValues = function (values, selectValue) {
@@ -3143,7 +2981,7 @@ var createPoseSetter = function (setterProps) {
3143
2981
  var _a = nextProps.delay,
3144
2982
  delay = _a === void 0 ? 0 : _a;
3145
2983
  var hasChildren = children.size;
3146
- var baseTransitionProps = __assign$5(__assign$5({}, props), nextProps);
2984
+ var baseTransitionProps = __assign(__assign({}, props), nextProps);
3147
2985
  var nextPose = poses[next];
3148
2986
  var getChildAnimations = function () {
3149
2987
  return hasChildren && propagate ? startChildAnimations(children, next, nextPose, baseTransitionProps) : [];
@@ -3169,11 +3007,11 @@ var createPoseSetter = function (setterProps) {
3169
3007
  valuePoses.splice(insertionIndex, 0, next);
3170
3008
  return insertionIndex === 0 ? new Promise(function (complete) {
3171
3009
  var value = values.get(key);
3172
- var transitionProps = __assign$5(__assign$5({}, baseTransitionProps), { key: key,
3010
+ var transitionProps = __assign(__assign({}, baseTransitionProps), { key: key,
3173
3011
  value: value });
3174
3012
  var target = resolveTarget(value, resolveProp(nextPose[key], transitionProps));
3175
3013
  if (activeActions.has(key)) stopAction(activeActions.get(key));
3176
- var resolveTransitionProps = __assign$5(__assign$5({ to: target }, transitionProps), getTransitionProps(value, target, transitionProps));
3014
+ var resolveTransitionProps = __assign(__assign({ to: target }, transitionProps), getTransitionProps(value, target, transitionProps));
3177
3015
  var transition = resolveTransition(getTransition, key, value, resolveTransitionProps, convertTransitionDefinition, getInstantTransition);
3178
3016
  var poseDelay = delay || resolveProp(nextPose.delay, transitionProps);
3179
3017
  if (poseDelay) {
@@ -3197,7 +3035,7 @@ var createPoseSetter = function (setterProps) {
3197
3035
  });
3198
3036
  }
3199
3037
  }
3200
- return Promise.all(__spreadArrays$1(getParentAnimations(), getChildAnimations()));
3038
+ return Promise.all(__spreadArrays(getParentAnimations(), getChildAnimations()));
3201
3039
  };
3202
3040
  };
3203
3041
 
@@ -3323,7 +3161,7 @@ var createValueMap = function (props) {
3323
3161
  };
3324
3162
 
3325
3163
  var applyDefaultTransition = function (pose, key, defaultTransitions) {
3326
- return __assign$5(__assign$5({}, pose), { transition: defaultTransitions.has(key) ? defaultTransitions.get(key) : defaultTransitions.get('default') });
3164
+ return __assign(__assign({}, pose), { transition: defaultTransitions.has(key) ? defaultTransitions.get(key) : defaultTransitions.get('default') });
3327
3165
  };
3328
3166
  var generateTransitions = function (poses, defaultTransitions) {
3329
3167
  Object.keys(poses).forEach(function (key) {
@@ -3377,7 +3215,7 @@ var poseFactory = function (_a) {
3377
3215
  var poses = generateTransitions(selectPoses(config), defaultTransitions);
3378
3216
  var _b = config.props,
3379
3217
  props = _b === void 0 ? {} : _b;
3380
- if (getDefaultProps) props = __assign$5(__assign$5({}, getDefaultProps(config)), props);
3218
+ if (getDefaultProps) props = __assign(__assign({}, getDefaultProps(config)), props);
3381
3219
  var passive = config.passive,
3382
3220
  userSetValues = config.values,
3383
3221
  _c = config.initialPose,
@@ -3452,10 +3290,10 @@ var poseFactory = function (_a) {
3452
3290
  },
3453
3291
  has: has,
3454
3292
  setProps: function (newProps) {
3455
- return state.props = __assign$5(__assign$5({}, state.props), newProps);
3293
+ return state.props = __assign(__assign({}, state.props), newProps);
3456
3294
  },
3457
3295
  _addChild: function (childConfig, factory) {
3458
- var child = factory(__assign$5(__assign$5({ initialPose: initialPose }, childConfig), { ancestorValues: __spreadArrays$1([{ label: config.label, values: values }], ancestorValues) }));
3296
+ var child = factory(__assign(__assign({ initialPose: initialPose }, childConfig), { ancestorValues: __spreadArrays([{ label: config.label, values: values }], ancestorValues) }));
3459
3297
  children.add(child);
3460
3298
  return child;
3461
3299
  },
@@ -3494,18 +3332,18 @@ See the Apache Version 2.0 License for specific language governing permissions
3494
3332
  and limitations under the License.
3495
3333
  ***************************************************************************** */
3496
3334
 
3497
- var __assign$6 = function () {
3498
- __assign$6 = Object.assign || function __assign(t) {
3335
+ var __assign$2 = function () {
3336
+ __assign$2 = Object.assign || function __assign(t) {
3499
3337
  for (var s, i = 1, n = arguments.length; i < n; i++) {
3500
3338
  s = arguments[i];
3501
3339
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
3502
3340
  }
3503
3341
  return t;
3504
3342
  };
3505
- return __assign$6.apply(this, arguments);
3343
+ return __assign$2.apply(this, arguments);
3506
3344
  };
3507
3345
 
3508
- function __rest$4(s, e) {
3346
+ function __rest$1(s, e) {
3509
3347
  var t = {};
3510
3348
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
3511
3349
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
@@ -3622,12 +3460,12 @@ var intelligentTransition = {
3622
3460
  opacity: linearTween,
3623
3461
  default: tween
3624
3462
  };
3625
- var dragAction = /*#__PURE__*/__assign$6( /*#__PURE__*/__assign$6({}, intelligentTransition), { x: /*#__PURE__*/createPointer(pointerX, 'left', 'right', BoundingBoxDimension.width), y: /*#__PURE__*/createPointer(pointerY, 'top', 'bottom', BoundingBoxDimension.height) });
3463
+ var dragAction = /*#__PURE__*/__assign$2( /*#__PURE__*/__assign$2({}, intelligentTransition), { x: /*#__PURE__*/createPointer(pointerX, 'left', 'right', BoundingBoxDimension.width), y: /*#__PURE__*/createPointer(pointerY, 'top', 'bottom', BoundingBoxDimension.height) });
3626
3464
  var justAxis = function (_a) {
3627
3465
  var from = _a.from;
3628
3466
  return just(from);
3629
3467
  };
3630
- var intelligentDragEnd = /*#__PURE__*/__assign$6( /*#__PURE__*/__assign$6({}, intelligentTransition), { x: justAxis, y: justAxis });
3468
+ var intelligentDragEnd = /*#__PURE__*/__assign$2( /*#__PURE__*/__assign$2({}, intelligentTransition), { x: justAxis, y: justAxis });
3631
3469
  var defaultTransitions = /*#__PURE__*/new Map([['default', intelligentTransition], ['drag', dragAction], ['dragEnd', intelligentDragEnd]]);
3632
3470
 
3633
3471
  var animationLookup = {
@@ -3697,7 +3535,7 @@ var getAction = function (v, _a, _b) {
3697
3535
  var _c = _a.type,
3698
3536
  type = _c === void 0 ? 'tween' : _c,
3699
3537
  definedEase = _a.ease,
3700
- def = __rest$4(_a, ["type", "ease"]);
3538
+ def = __rest$1(_a, ["type", "ease"]);
3701
3539
  invariant(animationLookup[type] !== undefined, "Invalid transition type '" + type + "'. Valid transition types are: tween, spring, decay, physics and keyframes.");
3702
3540
  var ease;
3703
3541
  if (type === 'tween') {
@@ -3722,7 +3560,7 @@ var getAction = function (v, _a, _b) {
3722
3560
  velocity: velocity,
3723
3561
  ease: ease
3724
3562
  } : { ease: ease };
3725
- return animationLookup[type](__assign$6(__assign$6({}, baseProps), def));
3563
+ return animationLookup[type](__assign$2(__assign$2({}, baseProps), def));
3726
3564
  };
3727
3565
  var isAction = function (action$$1) {
3728
3566
  return typeof action$$1.start !== 'undefined';
@@ -3807,7 +3645,7 @@ var pose = function (_a) {
3807
3645
  min = def.min,
3808
3646
  max = def.max,
3809
3647
  round = def.round,
3810
- remainingDef = __rest$4(def, ["delay", "min", "max", "round"]);
3648
+ remainingDef = __rest$1(def, ["delay", "min", "max", "round"]);
3811
3649
  var action$$1 = getAction(val, remainingDef, props);
3812
3650
  var outputPipe = [];
3813
3651
  if (delay$$1) action$$1 = addActionDelay(delay$$1, action$$1);
@@ -3989,7 +3827,7 @@ var explicitlyFlipPose = function (state, nextPose) {
3989
3827
  bottom = nextPose.bottom,
3990
3828
  right = nextPose.right,
3991
3829
  position = nextPose.position,
3992
- remainingPose = __rest$4(nextPose, ["width", "height", "top", "left", "bottom", "right", "position"]);
3830
+ remainingPose = __rest$1(nextPose, ["width", "height", "top", "left", "bottom", "right", "position"]);
3993
3831
  var propsToSet = positionalProps.concat('position').reduce(function (acc, key) {
3994
3832
  if (nextPose[key] !== undefined) {
3995
3833
  acc[key] = resolveProp$1(nextPose[key], state.props);
@@ -4101,7 +3939,7 @@ var convertPositionalUnits = function (state, nextPose) {
4101
3939
  changedPositionalKeys.push(key);
4102
3940
  if (!applyAtEndHasBeenCopied) {
4103
3941
  applyAtEndHasBeenCopied = true;
4104
- nextPose.applyAtEnd = nextPose.applyAtEnd ? __assign$6({}, nextPose.applyAtEnd) : {};
3942
+ nextPose.applyAtEnd = nextPose.applyAtEnd ? __assign$2({}, nextPose.applyAtEnd) : {};
4105
3943
  }
4106
3944
  nextPose.applyAtEnd[key] = nextPose.applyAtEnd[key] || nextPose[key];
4107
3945
  setValue(state, key, to);
@@ -4157,8 +3995,8 @@ var createPoseConfig = function (element, _a) {
4157
3995
  focusable = _a.focusable,
4158
3996
  pressable = _a.pressable,
4159
3997
  dragBounds = _a.dragBounds,
4160
- config = __rest$4(_a, ["onDragStart", "onDragEnd", "onPressStart", "onPressEnd", "draggable", "hoverable", "focusable", "pressable", "dragBounds"]);
4161
- var poseConfig = __assign$6(__assign$6({ flip: {} }, config), { props: __assign$6(__assign$6({}, config.props), { onDragStart: onDragStart,
3998
+ config = __rest$1(_a, ["onDragStart", "onDragEnd", "onPressStart", "onPressEnd", "draggable", "hoverable", "focusable", "pressable", "dragBounds"]);
3999
+ var poseConfig = __assign$2(__assign$2({ flip: {} }, config), { props: __assign$2(__assign$2({}, config.props), { onDragStart: onDragStart,
4162
4000
  onDragEnd: onDragEnd,
4163
4001
  onPressStart: onPressStart,
4164
4002
  onPressEnd: onPressEnd,
@@ -4172,8 +4010,8 @@ var createPoseConfig = function (element, _a) {
4172
4010
  var _b = dragPoses(draggable),
4173
4011
  drag = _b.drag,
4174
4012
  dragEnd = _b.dragEnd;
4175
- poseConfig.drag = __assign$6(__assign$6({}, drag), poseConfig.drag);
4176
- poseConfig.dragEnd = __assign$6(__assign$6({}, dragEnd), poseConfig.dragEnd);
4013
+ poseConfig.drag = __assign$2(__assign$2({}, drag), poseConfig.drag);
4014
+ poseConfig.dragEnd = __assign$2(__assign$2({}, dragEnd), poseConfig.dragEnd);
4177
4015
  }
4178
4016
  return poseConfig;
4179
4017
  };
@@ -4181,7 +4019,7 @@ var domPose = /*#__PURE__*/pose({
4181
4019
  posePriority: ['drag', 'press', 'focus', 'hover'],
4182
4020
  transformPose: function (_a, name, state) {
4183
4021
  var flip = _a.flip,
4184
- pose$$1 = __rest$4(_a, ["flip"]);
4022
+ pose$$1 = __rest$1(_a, ["flip"]);
4185
4023
  if (isFlipPose(flip, name, state)) {
4186
4024
  return flipPose(state, pose$$1);
4187
4025
  } else if (isPositional(pose$$1)) {
@@ -4219,7 +4057,7 @@ var domPose = /*#__PURE__*/pose({
4219
4057
  var props = _a.props,
4220
4058
  activeActions = _a.activeActions;
4221
4059
  var measure = props.dimensions.measure;
4222
- var poserApi = __assign$6(__assign$6({}, api), { addChild: function (element, childConfig) {
4060
+ var poserApi = __assign$2(__assign$2({}, api), { addChild: function (element, childConfig) {
4223
4061
  return api._addChild(createPoseConfig(element, childConfig), domPose);
4224
4062
  }, measure: measure, flip: function (op) {
4225
4063
  if (op) {
@@ -7247,104 +7085,6 @@ var Imposter = function Imposter(_ref) {
7247
7085
  }, rest), safeChildren(children, /*#__PURE__*/React.createElement(Fragment$1, null)));
7248
7086
  };
7249
7087
 
7250
- /*! *****************************************************************************
7251
- Copyright (c) Microsoft Corporation.
7252
-
7253
- Permission to use, copy, modify, and/or distribute this software for any
7254
- purpose with or without fee is hereby granted.
7255
-
7256
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
7257
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
7258
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
7259
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
7260
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
7261
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
7262
- PERFORMANCE OF THIS SOFTWARE.
7263
- ***************************************************************************** */
7264
- /* global Reflect, Promise */
7265
-
7266
- var extendStatics$2 = function(d, b) {
7267
- extendStatics$2 = Object.setPrototypeOf ||
7268
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7269
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
7270
- return extendStatics$2(d, b);
7271
- };
7272
-
7273
- function __extends$2(d, b) {
7274
- extendStatics$2(d, b);
7275
- function __() { this.constructor = d; }
7276
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
7277
- }
7278
-
7279
- var __assign$7 = function() {
7280
- __assign$7 = Object.assign || function __assign(t) {
7281
- for (var s, i = 1, n = arguments.length; i < n; i++) {
7282
- s = arguments[i];
7283
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7284
- }
7285
- return t;
7286
- };
7287
- return __assign$7.apply(this, arguments);
7288
- };
7289
-
7290
- function __rest$5(s, e) {
7291
- var t = {};
7292
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
7293
- t[p] = s[p];
7294
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
7295
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7296
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
7297
- t[p[i]] = s[p[i]];
7298
- }
7299
- return t;
7300
- }
7301
-
7302
- function __spreadArrays$2() {
7303
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
7304
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
7305
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
7306
- r[k] = a[j];
7307
- return r;
7308
- }
7309
-
7310
- /*! *****************************************************************************
7311
- Copyright (c) Microsoft Corporation.
7312
-
7313
- Permission to use, copy, modify, and/or distribute this software for any
7314
- purpose with or without fee is hereby granted.
7315
-
7316
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
7317
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
7318
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
7319
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
7320
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
7321
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
7322
- PERFORMANCE OF THIS SOFTWARE.
7323
- ***************************************************************************** */
7324
-
7325
- var __assign$8 = function() {
7326
- __assign$8 = Object.assign || function __assign(t) {
7327
- for (var s, i = 1, n = arguments.length; i < n; i++) {
7328
- s = arguments[i];
7329
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7330
- }
7331
- return t;
7332
- };
7333
- return __assign$8.apply(this, arguments);
7334
- };
7335
-
7336
- function __rest$6(s, e) {
7337
- var t = {};
7338
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
7339
- t[p] = s[p];
7340
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
7341
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7342
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
7343
- t[p[i]] = s[p[i]];
7344
- }
7345
- return t;
7346
- }
7347
-
7348
7088
  var Observer$1 = /*#__PURE__*/function () {
7349
7089
  function Observer(_a, observer) {
7350
7090
  var _this = this;
@@ -7407,18 +7147,18 @@ var Action$1 = /*#__PURE__*/function () {
7407
7147
  };
7408
7148
  var _a = this.props,
7409
7149
  init = _a.init,
7410
- observerProps = __rest$6(_a, ["init"]);
7150
+ observerProps = __rest(_a, ["init"]);
7411
7151
  var observer = createObserver$1(observerCandidate, observerProps, function () {
7412
7152
  isComplete = true;
7413
7153
  subscription.stop();
7414
7154
  });
7415
7155
  var api = init(observer);
7416
- subscription = api ? __assign$8({}, subscription, api) : subscription;
7156
+ subscription = api ? __assign({}, subscription, api) : subscription;
7417
7157
  if (isComplete) subscription.stop();
7418
7158
  return subscription;
7419
7159
  };
7420
7160
  Action.prototype.applyMiddleware = function (middleware) {
7421
- return this.create(__assign$8({}, this.props, { middleware: this.props.middleware ? [middleware].concat(this.props.middleware) : [middleware] }));
7161
+ return this.create(__assign({}, this.props, { middleware: this.props.middleware ? [middleware].concat(this.props.middleware) : [middleware] }));
7422
7162
  };
7423
7163
  Action.prototype.pipe = function () {
7424
7164
  var funcs = [];
@@ -7471,18 +7211,18 @@ var createAction$1 = function (action, props) {
7471
7211
  var createUnitAction$1 = function (action, _a) {
7472
7212
  var from = _a.from,
7473
7213
  to = _a.to,
7474
- props = __rest$6(_a, ["from", "to"]);
7214
+ props = __rest(_a, ["from", "to"]);
7475
7215
  var unitType = findUnitType$1(from) || findUnitType$1(to);
7476
7216
  var transform = unitType.transform,
7477
7217
  parse = unitType.parse;
7478
- return action(__assign$8({}, props, { from: typeof from === 'string' ? parse(from) : from, to: typeof to === 'string' ? parse(to) : to })).pipe(transform);
7218
+ return action(__assign({}, props, { from: typeof from === 'string' ? parse(from) : from, to: typeof to === 'string' ? parse(to) : to })).pipe(transform);
7479
7219
  };
7480
7220
  var createMixerAction$1 = function (mixer) {
7481
7221
  return function (action, _a) {
7482
7222
  var from = _a.from,
7483
7223
  to = _a.to,
7484
- props = __rest$6(_a, ["from", "to"]);
7485
- return action(__assign$8({}, props, { from: 0, to: 1 })).pipe(mixer(from, to));
7224
+ props = __rest(_a, ["from", "to"]);
7225
+ return action(__assign({}, props, { from: 0, to: 1 })).pipe(mixer(from, to));
7486
7226
  };
7487
7227
  };
7488
7228
  var createColorAction$1 = /*#__PURE__*/createMixerAction$1(mixColor);
@@ -7695,7 +7435,7 @@ var inertia = function (_a) {
7695
7435
  };
7696
7436
  var startSpring = function (props) {
7697
7437
  isSpring = true;
7698
- startAnimation(vectorSpring$1(__assign$8({}, props, { to: isLessThanMin(props.from) ? min : max, stiffness: bounceStiffness, damping: bounceDamping, restDelta: restDelta })));
7438
+ startAnimation(vectorSpring$1(__assign({}, props, { to: isLessThanMin(props.from) ? min : max, stiffness: bounceStiffness, damping: bounceDamping, restDelta: restDelta })));
7699
7439
  };
7700
7440
  if (isOutOfBounds(from)) {
7701
7441
  startSpring({ from: from, velocity: velocity });
@@ -7927,7 +7667,7 @@ var keyframes$1 = function (_a) {
7927
7667
  ease = _b === void 0 ? linear : _b,
7928
7668
  times = _a.times,
7929
7669
  values = _a.values,
7930
- tweenProps = __rest$6(_a, ["easings", "ease", "times", "values"]);
7670
+ tweenProps = __rest(_a, ["easings", "ease", "times", "values"]);
7931
7671
  easings = Array.isArray(easings) ? easings : defaultEasings$1(values, easings);
7932
7672
  times = times || defaultTimings$1(values);
7933
7673
  var scrubbers = easings.map(function (easing, i) {
@@ -7937,7 +7677,7 @@ var keyframes$1 = function (_a) {
7937
7677
  ease: easing
7938
7678
  });
7939
7679
  });
7940
- return tween$1(__assign$8({}, tweenProps, { ease: ease })).applyMiddleware(function (update) {
7680
+ return tween$1(__assign({}, tweenProps, { ease: ease })).applyMiddleware(function (update) {
7941
7681
  return interpolateScrubbers$1(times, scrubbers, update);
7942
7682
  });
7943
7683
  };
@@ -8139,7 +7879,7 @@ var MotionValue = /** @class */ (function () {
8139
7879
  */
8140
7880
  MotionValue.prototype.addChild = function (config) {
8141
7881
  if (config === void 0) { config = {}; }
8142
- var child = new MotionValue(this.current, __assign$7({ parent: this }, config));
7882
+ var child = new MotionValue(this.current, __assign({ parent: this }, config));
8143
7883
  if (!this.children)
8144
7884
  this.children = new Set();
8145
7885
  this.children.add(child);
@@ -8581,7 +8321,7 @@ var buildStyleAttr = function (values, styleProp, isStatic) {
8581
8321
  ? transformTemplate({}, styleProp.transform)
8582
8322
  : transformTemplate;
8583
8323
  }
8584
- return buildStyleProperty(__assign$7(__assign$7({}, styleProp), motionValueStyles), !isStatic);
8324
+ return buildStyleProperty(__assign(__assign({}, styleProp), motionValueStyles), !isStatic);
8585
8325
  };
8586
8326
  var useMotionStyles = function (values, styleProp, isStatic, transformValues) {
8587
8327
  if (styleProp === void 0) { styleProp = {}; }
@@ -8635,7 +8375,7 @@ var auto$1 = {
8635
8375
  parse: function (v) { return v; },
8636
8376
  };
8637
8377
  var dimensionTypes = [number, px, percent, degrees, vw, vh, auto$1];
8638
- var valueTypes$1 = __spreadArrays$2(dimensionTypes, [color, complex]);
8378
+ var valueTypes$1 = __spreadArrays(dimensionTypes, [color, complex]);
8639
8379
  var testValueType$1 = function (v) { return function (type) { return type.test(v); }; };
8640
8380
  var getDimensionValueType = function (v) {
8641
8381
  return dimensionTypes.find(testValueType$1(v));
@@ -8688,7 +8428,7 @@ var getDefaultTransition = function (valueKey, to) {
8688
8428
  transitionFactory =
8689
8429
  defaultTransitions$1[valueKey] || defaultTransitions$1.default;
8690
8430
  }
8691
- return __assign$7({ to: to }, transitionFactory(to));
8431
+ return __assign({ to: to }, transitionFactory(to));
8692
8432
  };
8693
8433
 
8694
8434
  /**
@@ -8784,9 +8524,9 @@ var transitionOptionParser = {
8784
8524
  return opts;
8785
8525
  },
8786
8526
  keyframes: function (_a) {
8787
- var from = _a.from, to = _a.to, velocity = _a.velocity, opts = __rest$5(_a, ["from", "to", "velocity"]);
8527
+ var from = _a.from, to = _a.to, velocity = _a.velocity, opts = __rest(_a, ["from", "to", "velocity"]);
8788
8528
  if (opts.values && opts.values[0] === null) {
8789
- var values = __spreadArrays$2(opts.values);
8529
+ var values = __spreadArrays(opts.values);
8790
8530
  values[0] = from;
8791
8531
  opts.values = values;
8792
8532
  }
@@ -8800,7 +8540,7 @@ var transitionOptionParser = {
8800
8540
  },
8801
8541
  };
8802
8542
  var isTransitionDefined = function (_a) {
8803
- var when = _a.when, delay = _a.delay, delayChildren = _a.delayChildren, staggerChildren = _a.staggerChildren, staggerDirection = _a.staggerDirection, transition = __rest$5(_a, ["when", "delay", "delayChildren", "staggerChildren", "staggerDirection"]);
8543
+ var when = _a.when, delay = _a.delay, delayChildren = _a.delayChildren, staggerChildren = _a.staggerChildren, staggerDirection = _a.staggerDirection, transition = __rest(_a, ["when", "delay", "delayChildren", "staggerChildren", "staggerDirection"]);
8804
8544
  return Object.keys(transition).length;
8805
8545
  };
8806
8546
  var getTransitionDefinition = function (key, to, transitionDefinition) {
@@ -8810,7 +8550,7 @@ var getTransitionDefinition = function (key, to, transitionDefinition) {
8810
8550
  // and see if there's any props remaining
8811
8551
  if (transitionDefinition === undefined ||
8812
8552
  !isTransitionDefined(transitionDefinition)) {
8813
- return __assign$7({ delay: delay }, getDefaultTransition(key, to));
8553
+ return __assign({ delay: delay }, getDefaultTransition(key, to));
8814
8554
  }
8815
8555
  var valueTransitionDefinition = transitionDefinition[key] ||
8816
8556
  transitionDefinition.default ||
@@ -8827,12 +8567,12 @@ var getTransitionDefinition = function (key, to, transitionDefinition) {
8827
8567
  };
8828
8568
  }
8829
8569
  else if (isKeyframesTarget(to)) {
8830
- return __assign$7(__assign$7({ values: to, duration: 0.8, delay: delay, ease: "linear" }, valueTransitionDefinition), {
8570
+ return __assign(__assign({ values: to, duration: 0.8, delay: delay, ease: "linear" }, valueTransitionDefinition), {
8831
8571
  // This animation must be keyframes if we're animating through an array
8832
8572
  type: "keyframes" });
8833
8573
  }
8834
8574
  else {
8835
- return __assign$7({ type: "tween", to: to,
8575
+ return __assign({ type: "tween", to: to,
8836
8576
  delay: delay }, valueTransitionDefinition);
8837
8577
  }
8838
8578
  };
@@ -8849,12 +8589,12 @@ var getAnimation = function (key, value, target, transition) {
8849
8589
  // for instance 100 to #fff. This might live better in Popmotion.
8850
8590
  warning(isOriginAnimatable === isTargetAnimatable, "You are trying to animate " + key + " from \"" + origin + "\" to " + target + ". \"" + origin + "\" is not an animatable value - to enable this animation set " + origin + " to a value animatable to " + target + " via the `style` property.");
8851
8591
  // Parse the `transition` prop and return options for the Popmotion animation
8852
- var _a = getTransitionDefinition(key, target, transition), _b = _a.type, type = _b === void 0 ? "tween" : _b, transitionDefinition = __rest$5(_a, ["type"]);
8592
+ var _a = getTransitionDefinition(key, target, transition), _b = _a.type, type = _b === void 0 ? "tween" : _b, transitionDefinition = __rest(_a, ["type"]);
8853
8593
  // If this is an animatable pair of values, return an animation, otherwise use `just`
8854
8594
  var actionFactory = isOriginAnimatable && isTargetAnimatable
8855
8595
  ? transitions[type]
8856
8596
  : just$1;
8857
- var opts = preprocessOptions(type, __assign$7({ from: origin, velocity: value.getVelocity() }, transitionDefinition));
8597
+ var opts = preprocessOptions(type, __assign({ from: origin, velocity: value.getVelocity() }, transitionDefinition));
8858
8598
  // Convert duration from Framer Motion's seconds into Popmotion's milliseconds
8859
8599
  if (isDurationAnimation(opts)) {
8860
8600
  if (opts.duration) {
@@ -8872,10 +8612,10 @@ var getAnimation = function (key, value, target, transition) {
8872
8612
  * @internal
8873
8613
  */
8874
8614
  function startAnimation(key, value, target, _a) {
8875
- var _b = _a.delay, delay$1$1 = _b === void 0 ? 0 : _b, transition = __rest$5(_a, ["delay"]);
8615
+ var _b = _a.delay, delay$1$1 = _b === void 0 ? 0 : _b, transition = __rest(_a, ["delay"]);
8876
8616
  return value.start(function (complete) {
8877
8617
  var activeAnimation;
8878
- var _a = getAnimation(key, value, target, transition), animationFactory = _a[0], _b = _a[1], valueDelay = _b.delay, options = __rest$5(_b, ["delay"]);
8618
+ var _a = getAnimation(key, value, target, transition), animationFactory = _a[0], _b = _a[1], valueDelay = _b.delay, options = __rest(_b, ["delay"]);
8879
8619
  if (valueDelay !== undefined) {
8880
8620
  delay$1$1 = valueDelay;
8881
8621
  }
@@ -9021,7 +8761,7 @@ var ValueAnimationControls = /** @class */ (function () {
9021
8761
  var _this = this;
9022
8762
  var _b = _a === void 0 ? {} : _a, _c = _b.isActive, isActive = _c === void 0 ? new Set() : _c, priority = _b.priority;
9023
8763
  var _d = this.resolveVariant(definition), target = _d.target, transitionEnd = _d.transitionEnd;
9024
- target = this.transformValues(__assign$7(__assign$7({}, target), transitionEnd));
8764
+ target = this.transformValues(__assign(__assign({}, target), transitionEnd));
9025
8765
  return Object.keys(target).forEach(function (key) {
9026
8766
  if (isActive.has(key))
9027
8767
  return;
@@ -9111,7 +8851,7 @@ var ValueAnimationControls = /** @class */ (function () {
9111
8851
  // resolve current and velocity
9112
8852
  variant = variant(this.props.custom, getCurrent$1(this.values), getVelocity(this.values));
9113
8853
  }
9114
- var _a = variant.transition, transition = _a === void 0 ? this.defaultTransition : _a, transitionEnd = variant.transitionEnd, target = __rest$5(variant, ["transition", "transitionEnd"]);
8854
+ var _a = variant.transition, transition = _a === void 0 ? this.defaultTransition : _a, transitionEnd = variant.transitionEnd, target = __rest(variant, ["transition", "transitionEnd"]);
9115
8855
  return { transition: transition, transitionEnd: transitionEnd, target: target };
9116
8856
  };
9117
8857
  /**
@@ -9202,7 +8942,7 @@ var ValueAnimationControls = /** @class */ (function () {
9202
8942
  ValueAnimationControls.prototype.applyVariantLabels = function (variantLabelList) {
9203
8943
  var _this = this;
9204
8944
  var isActive = new Set();
9205
- var reversedList = __spreadArrays$2(variantLabelList).reverse();
8945
+ var reversedList = __spreadArrays(variantLabelList).reverse();
9206
8946
  reversedList.forEach(function (key) {
9207
8947
  var _a = _this.resolveVariant(_this.variants[key]), target = _a.target, transitionEnd = _a.transitionEnd;
9208
8948
  if (transitionEnd) {
@@ -9273,7 +9013,7 @@ var ValueAnimationControls = /** @class */ (function () {
9273
9013
  if (this.isAnimating.has(key))
9274
9014
  continue;
9275
9015
  this.isAnimating.add(key);
9276
- animations.push(startAnimation(key, value, valueTarget, __assign$7({ delay: delay }, transition)));
9016
+ animations.push(startAnimation(key, value, valueTarget, __assign({ delay: delay }, transition)));
9277
9017
  }
9278
9018
  var allAnimations = Promise.all(animations);
9279
9019
  return transitionEnd
@@ -9284,7 +9024,7 @@ var ValueAnimationControls = /** @class */ (function () {
9284
9024
  };
9285
9025
  ValueAnimationControls.prototype.animateVariantLabels = function (variantLabels, opts) {
9286
9026
  var _this = this;
9287
- var animations = __spreadArrays$2(variantLabels).reverse()
9027
+ var animations = __spreadArrays(variantLabels).reverse()
9288
9028
  .map(function (label) { return _this.animateVariant(label, opts); });
9289
9029
  return Promise.all(animations);
9290
9030
  };
@@ -9728,7 +9468,7 @@ function useValueAnimationControls(config, props, subscribeToParentControls) {
9728
9468
  // Remove reference to onAnimationComplete from controls. All the MotionValues
9729
9469
  // are unsubscribed from this component separately. We let animations run out
9730
9470
  // as they might be animating other components.
9731
- var onAnimationComplete = props.onAnimationComplete, unmountProps = __rest$5(props, ["onAnimationComplete"]);
9471
+ var onAnimationComplete = props.onAnimationComplete, unmountProps = __rest(props, ["onAnimationComplete"]);
9732
9472
  controls.setProps(unmountProps);
9733
9473
  parentControls && parentControls.removeChild(controls);
9734
9474
  };
@@ -10213,7 +9953,7 @@ var PanSession = /** @class */ (function () {
10213
9953
  return;
10214
9954
  var point = info.point;
10215
9955
  var timestamp = getFrameData().timestamp;
10216
- _this.history.push(__assign$7(__assign$7({}, point), { timestamp: timestamp }));
9956
+ _this.history.push(__assign(__assign({}, point), { timestamp: timestamp }));
10217
9957
  var _a = _this.handlers, onStart = _a.onStart, onMove = _a.onMove;
10218
9958
  if (!isPanStarted) {
10219
9959
  onStart && onStart(_this.lastMoveEvent, info);
@@ -10230,7 +9970,7 @@ var PanSession = /** @class */ (function () {
10230
9970
  var initialInfo = transformPoint(info, this.transformPagePoint);
10231
9971
  var point = initialInfo.point;
10232
9972
  var timestamp = getFrameData().timestamp;
10233
- this.history = [__assign$7(__assign$7({}, point), { timestamp: timestamp })];
9973
+ this.history = [__assign(__assign({}, point), { timestamp: timestamp })];
10234
9974
  var onSessionStart = handlers.onSessionStart;
10235
9975
  onSessionStart &&
10236
9976
  onSessionStart(event, getPanInfo(initialInfo, this.history));
@@ -10558,7 +10298,7 @@ var Gestures = {
10558
10298
  return gestureProps.some(function (key) { return props.hasOwnProperty(key); });
10559
10299
  },
10560
10300
  Component: makeRenderlessComponent(function (_a) {
10561
- var innerRef = _a.innerRef, props = __rest$5(_a, ["innerRef"]);
10301
+ var innerRef = _a.innerRef, props = __rest(_a, ["innerRef"]);
10562
10302
  useGestures(props, innerRef);
10563
10303
  }),
10564
10304
  };
@@ -10798,8 +10538,8 @@ var ComponentDragControls = /** @class */ (function () {
10798
10538
  };
10799
10539
  ComponentDragControls.prototype.updateProps = function (_a) {
10800
10540
  var _this = this;
10801
- var _b = _a.drag, drag = _b === void 0 ? false : _b, _c = _a.dragDirectionLock, dragDirectionLock = _c === void 0 ? false : _c, _d = _a.dragPropagation, dragPropagation = _d === void 0 ? false : _d, _e = _a.dragConstraints, dragConstraints = _e === void 0 ? false : _e, _f = _a.dragElastic, dragElastic = _f === void 0 ? true : _f, _g = _a.dragMomentum, dragMomentum = _g === void 0 ? true : _g, remainingProps = __rest$5(_a, ["drag", "dragDirectionLock", "dragPropagation", "dragConstraints", "dragElastic", "dragMomentum"]);
10802
- this.props = __assign$7({ drag: drag,
10541
+ var _b = _a.drag, drag = _b === void 0 ? false : _b, _c = _a.dragDirectionLock, dragDirectionLock = _c === void 0 ? false : _c, _d = _a.dragPropagation, dragPropagation = _d === void 0 ? false : _d, _e = _a.dragConstraints, dragConstraints = _e === void 0 ? false : _e, _f = _a.dragElastic, dragElastic = _f === void 0 ? true : _f, _g = _a.dragMomentum, dragMomentum = _g === void 0 ? true : _g, remainingProps = __rest(_a, ["drag", "dragDirectionLock", "dragPropagation", "dragConstraints", "dragElastic", "dragMomentum"]);
10542
+ this.props = __assign({ drag: drag,
10803
10543
  dragDirectionLock: dragDirectionLock,
10804
10544
  dragPropagation: dragPropagation,
10805
10545
  dragConstraints: dragConstraints,
@@ -10855,7 +10595,7 @@ var ComponentDragControls = /** @class */ (function () {
10855
10595
  var bounceStiffness = dragElastic ? 200 : 1000000;
10856
10596
  var bounceDamping = dragElastic ? 40 : 10000000;
10857
10597
  var animationControls = _dragTransitionControls || _this.controls;
10858
- var inertia = __assign$7(__assign$7({ type: "inertia", velocity: dragMomentum ? velocity[axis] : 0, bounceStiffness: bounceStiffness,
10598
+ var inertia = __assign(__assign({ type: "inertia", velocity: dragMomentum ? velocity[axis] : 0, bounceStiffness: bounceStiffness,
10859
10599
  bounceDamping: bounceDamping, timeConstant: 750, restDelta: 1 }, dragTransition), transition);
10860
10600
  var externalAxisMotionValue = axis === "x" ? _dragValueX : _dragValueY;
10861
10601
  // If we're not animating on an externally-provided `MotionValue` we can use the
@@ -10936,7 +10676,7 @@ function bothAxis(handler) {
10936
10676
  return [handler("x"), handler("y")];
10937
10677
  }
10938
10678
  function convertPanToDrag(info, point) {
10939
- return __assign$7(__assign$7({}, info), { point: {
10679
+ return __assign(__assign({}, info), { point: {
10940
10680
  x: point.x ? point.x.get() : 0,
10941
10681
  y: point.y ? point.y.get() : 0,
10942
10682
  } });
@@ -11047,7 +10787,7 @@ function useDrag(props, ref, values, controls) {
11047
10787
  var groupDragControls = props.dragControls;
11048
10788
  var transformPagePoint = useContext(MotionPluginContext).transformPagePoint;
11049
10789
  var dragControls = useConstant(function () { return new ComponentDragControls({ ref: ref, values: values, controls: controls }); });
11050
- dragControls.updateProps(__assign$7(__assign$7({}, props), { transformPagePoint: transformPagePoint }));
10790
+ dragControls.updateProps(__assign(__assign({}, props), { transformPagePoint: transformPagePoint }));
11051
10791
  useEffect$1(function () { return groupDragControls && groupDragControls.subscribe(dragControls); }, [dragControls]);
11052
10792
  useEffect$1(function () { return dragControls.mount(ref.current); }, []);
11053
10793
  }
@@ -11056,7 +10796,7 @@ var Drag = {
11056
10796
  key: "drag",
11057
10797
  shouldRender: function (props) { return !!props.drag; },
11058
10798
  Component: makeRenderlessComponent(function (_a) {
11059
- var innerRef = _a.innerRef, values = _a.values, controls = _a.controls, props = __rest$5(_a, ["innerRef", "values", "controls"]);
10799
+ var innerRef = _a.innerRef, values = _a.values, controls = _a.controls, props = __rest(_a, ["innerRef", "values", "controls"]);
11060
10800
  return useDrag(props, innerRef, values, controls);
11061
10801
  }),
11062
10802
  };
@@ -11108,14 +10848,14 @@ function getVariableValue(current, element, depth) {
11108
10848
  * @internal
11109
10849
  */
11110
10850
  function resolveCSSVariables(values, ref, _a, transitionEnd) {
11111
- var target = __rest$5(_a, []);
10851
+ var target = __rest(_a, []);
11112
10852
  var element = ref.current;
11113
10853
  if (!(element instanceof HTMLElement))
11114
10854
  return { target: target, transitionEnd: transitionEnd };
11115
10855
  // If `transitionEnd` isn't `undefined`, clone it. We could clone `target` and `transitionEnd`
11116
10856
  // only if they change but I think this reads clearer and this isn't a performance-critical path.
11117
10857
  if (transitionEnd) {
11118
- transitionEnd = __assign$7({}, transitionEnd);
10858
+ transitionEnd = __assign({}, transitionEnd);
11119
10859
  }
11120
10860
  // Go through existing `MotionValue`s and ensure any existing CSS variables are resolved
11121
10861
  values.forEach(function (value) {
@@ -11272,8 +11012,8 @@ var convertChangedValueTypes = function (target, values, element, elementStyler,
11272
11012
  };
11273
11013
  var checkAndConvertChangedValueTypes = function (values, ref, target, transitionEnd) {
11274
11014
  if (transitionEnd === void 0) { transitionEnd = {}; }
11275
- target = __assign$7({}, target);
11276
- transitionEnd = __assign$7({}, transitionEnd);
11015
+ target = __assign({}, target);
11016
+ transitionEnd = __assign({}, transitionEnd);
11277
11017
  var element = ref.current;
11278
11018
  var elementStyler = index(element);
11279
11019
  var targetPositionalKeys = Object.keys(target).filter(isPositionalKey$1);
@@ -11501,7 +11241,7 @@ function calcAxisDelta(prev, next, names) {
11501
11241
  return delta;
11502
11242
  }
11503
11243
  function calcDelta(prev, next) {
11504
- var delta = __assign$7(__assign$7({}, calcAxisDelta(prev, next, axisLabels.x)), calcAxisDelta(prev, next, axisLabels.y));
11244
+ var delta = __assign(__assign({}, calcAxisDelta(prev, next, axisLabels.x)), calcAxisDelta(prev, next, axisLabels.y));
11505
11245
  return delta;
11506
11246
  }
11507
11247
  var offset = {
@@ -11545,7 +11285,7 @@ function getTransition(_a) {
11545
11285
  return layoutTransition || positionTransition;
11546
11286
  }
11547
11287
  var LayoutAnimation = /** @class */ (function (_super) {
11548
- __extends$2(LayoutAnimation, _super);
11288
+ __extends(LayoutAnimation, _super);
11549
11289
  function LayoutAnimation() {
11550
11290
  return _super !== null && _super.apply(this, arguments) || this;
11551
11291
  }
@@ -11612,11 +11352,11 @@ var LayoutAnimation = /** @class */ (function (_super) {
11612
11352
  if (!delta[deltaKey])
11613
11353
  return;
11614
11354
  var baseTransition = typeof transitionDefinition === "boolean"
11615
- ? __assign$7({}, getDefaultLayoutTransition(isPositionOnly)) : transitionDefinition;
11355
+ ? __assign({}, getDefaultLayoutTransition(isPositionOnly)) : transitionDefinition;
11616
11356
  var value = values.get(transformKey, targetValue);
11617
11357
  var velocity = value.getVelocity();
11618
11358
  transition[transformKey] = baseTransition[transformKey]
11619
- ? __assign$7({}, baseTransition[transformKey]) : __assign$7({}, baseTransition);
11359
+ ? __assign({}, baseTransition[transformKey]) : __assign({}, baseTransition);
11620
11360
  if (transition[transformKey].velocity === undefined) {
11621
11361
  transition[transformKey].velocity = velocity || 0;
11622
11362
  }
@@ -11757,9 +11497,9 @@ var hasUpdated = function (prev, next) {
11757
11497
  };
11758
11498
  function targetWithoutTransition(_a, mergeTransitionEnd) {
11759
11499
  if (mergeTransitionEnd === void 0) { mergeTransitionEnd = false; }
11760
- var transition = _a.transition, transitionEnd = _a.transitionEnd, target = __rest$5(_a, ["transition", "transitionEnd"]);
11500
+ var transition = _a.transition, transitionEnd = _a.transitionEnd, target = __rest(_a, ["transition", "transitionEnd"]);
11761
11501
  return mergeTransitionEnd
11762
- ? __assign$7(__assign$7({}, target), transitionEnd)
11502
+ ? __assign(__assign({}, target), transitionEnd)
11763
11503
  : target;
11764
11504
  }
11765
11505
  /**
@@ -11811,9 +11551,9 @@ function useAnimateProp(targetAndTransition, controls, values, defaultTransition
11811
11551
  }
11812
11552
  }
11813
11553
  isInitialRender.current = false;
11814
- prevValues.current = __assign$7(__assign$7({}, prevValues.current), finalTarget);
11554
+ prevValues.current = __assign(__assign({}, prevValues.current), finalTarget);
11815
11555
  if (Object.keys(targetToAnimate).length) {
11816
- controls.start(__assign$7(__assign$7({}, targetToAnimate), { transition: targetAndTransition.transition || defaultTransition, transitionEnd: targetAndTransition.transitionEnd }));
11556
+ controls.start(__assign(__assign({}, targetToAnimate), { transition: targetAndTransition.transition || defaultTransition, transitionEnd: targetAndTransition.transitionEnd }));
11817
11557
  }
11818
11558
  }, [targetAndTransition]);
11819
11559
  }
@@ -11987,7 +11727,7 @@ var Exit = {
11987
11727
  useEffect$1(function () {
11988
11728
  if (!isPresent) {
11989
11729
  if (!isPlayingExitAnimation.current && exit) {
11990
- controls.setProps(__assign$7(__assign$7({}, props), { custom: custom }));
11730
+ controls.setProps(__assign(__assign({}, props), { custom: custom }));
11991
11731
  controls.start(exit).then(onExitComplete);
11992
11732
  }
11993
11733
  isPlayingExitAnimation.current = true;
@@ -12058,7 +11798,7 @@ var buildHTMLProps = function (values, style, isStatic, isDrag) {
12058
11798
  var buildSVGProps = function (values, style) {
12059
11799
  var motionValueStyles = resolveCurrent(values);
12060
11800
  var props = buildSVGAttrs(motionValueStyles, undefined, undefined, undefined, undefined, false);
12061
- props.style = __assign$7(__assign$7({}, style), props.style);
11801
+ props.style = __assign(__assign({}, style), props.style);
12062
11802
  return props;
12063
11803
  };
12064
11804
  var functionalityComponents = [Layout, Drag, Gestures, Exit];
@@ -12077,7 +11817,7 @@ function createDomMotionConfig(Component) {
12077
11817
  var staticVisualStyles = isSVG
12078
11818
  ? buildSVGProps(values, style)
12079
11819
  : buildHTMLProps(values, style, isStatic, !!props.drag);
12080
- return createElement(Component, __assign$7(__assign$7(__assign$7({}, forwardedProps), { ref: ref }), staticVisualStyles));
11820
+ return createElement(Component, __assign(__assign(__assign({}, forwardedProps), { ref: ref }), staticVisualStyles));
12081
11821
  },
12082
11822
  /**
12083
11823
  * loadFunctionalityComponents gets used by the `motion` component
@@ -12108,7 +11848,7 @@ function createDomMotionConfig(Component) {
12108
11848
  for (var i = 0; i < numFunctionalityComponents; i++) {
12109
11849
  var _a = functionalityComponents[i], shouldRender = _a.shouldRender, key = _a.key, Component_1 = _a.Component;
12110
11850
  if (shouldRender(props, context)) {
12111
- activeComponents.push(createElement(Component_1, __assign$7({ key: key }, props, { parentContext: context, values: values, controls: controls, innerRef: ref })));
11851
+ activeComponents.push(createElement(Component_1, __assign({ key: key }, props, { parentContext: context, values: values, controls: controls, innerRef: ref })));
12112
11852
  }
12113
11853
  }
12114
11854
  return activeComponents;
@@ -12160,7 +11900,7 @@ var svgMotionComponents = svgElements.reduce(function (acc, Component) {
12160
11900
  *
12161
11901
  * @public
12162
11902
  */
12163
- var motion = __assign$7(__assign$7({
11903
+ var motion = __assign(__assign({
12164
11904
  /**
12165
11905
  * Convert a custom React component into a `motion` component.
12166
11906
  *
@@ -12212,7 +11952,7 @@ var PresenceChild = function (_a) {
12212
11952
  return function () { return numPresenceChildren.current--; };
12213
11953
  };
12214
11954
  }, [isPresent]);
12215
- return (createElement(PresenceContext.Provider, { value: __assign$7(__assign$7({}, context), { register: register }) }, children));
11955
+ return (createElement(PresenceContext.Provider, { value: __assign(__assign({}, context), { register: register }) }, children));
12216
11956
  };
12217
11957
 
12218
11958
  function getChildKey(child) {
@@ -12328,7 +12068,7 @@ var AnimatePresence = function (_a) {
12328
12068
  return (createElement(Fragment$1, null, filteredChildren.map(function (child) { return (createElement(PresenceChild, { key: getChildKey(child), isPresent: true, initial: initial ? undefined : false }, child)); })));
12329
12069
  }
12330
12070
  // If this is a subsequent render, deal with entering and exiting children
12331
- var childrenToRender = __spreadArrays$2(filteredChildren);
12071
+ var childrenToRender = __spreadArrays(filteredChildren);
12332
12072
  // Diff the keys of the currently-present and target children to update our
12333
12073
  // exiting list.
12334
12074
  var presentKeys = presentChildren.current.map(getChildKey);
@@ -22717,7 +22457,21 @@ var ExternalLink = /*#__PURE__*/forwardRef(function (_ref, ref) {
22717
22457
  children = _ref.children;
22718
22458
  var themeContext = useContext(ThemeContext);
22719
22459
  var themeValues = createThemeValues(themeContext, fallbackValues$a, "Link", variant);
22720
- return /*#__PURE__*/React.createElement(StyledExternalLink, {
22460
+ var handleKeyDown = function handleKeyDown(event) {
22461
+ // This is to address an issue on Safari where the link's tab order and Enter key were not being recognized
22462
+ if (event.key === "Enter" || event.keyCode === 13) {
22463
+ if (newTab) {
22464
+ window.open(href, "_blank");
22465
+ } else {
22466
+ window.location.href = href;
22467
+ }
22468
+ }
22469
+ };
22470
+ return /*#__PURE__*/React.createElement(Box, {
22471
+ padding: "0",
22472
+ tabIndex: tabIndex,
22473
+ onKeyDown: handleKeyDown
22474
+ }, /*#__PURE__*/React.createElement(StyledExternalLink, {
22721
22475
  href: href,
22722
22476
  target: newTab ? "_blank" : "",
22723
22477
  color: themeValues.externalLinkColor,
@@ -22727,13 +22481,13 @@ var ExternalLink = /*#__PURE__*/forwardRef(function (_ref, ref) {
22727
22481
  hovercolor: themeValues.hoverColor,
22728
22482
  activeColor: themeValues.activeColor,
22729
22483
  fontFamily: themeValues.fontFamily,
22730
- tabIndex: tabIndex,
22484
+ tabIndex: "-1",
22731
22485
  extrastyles: extraStyles,
22732
22486
  rel: newTab ? "noopener" : "",
22733
22487
  "data-qa": dataQa,
22734
22488
  "aria-label": ariaLabel,
22735
22489
  ref: ref
22736
- }, safeChildren(children, /*#__PURE__*/React.createElement("span", null)));
22490
+ }, safeChildren(children, /*#__PURE__*/React.createElement("span", null))));
22737
22491
  });
22738
22492
 
22739
22493
  var _excluded$s = ["hoverColor", "activeColor", "active", "color", "extrastyles"];
@@ -45739,6 +45493,7 @@ var Modal$1 = function Modal(_ref) {
45739
45493
  }))) : /*#__PURE__*/React.createElement(Box, {
45740
45494
  padding: "0.5rem"
45741
45495
  }, /*#__PURE__*/React.createElement(ButtonWithAction, {
45496
+ tabIndex: "0",
45742
45497
  action: hideModal,
45743
45498
  variant: "primary",
45744
45499
  text: closeButtonText,