@jobber/components 6.94.0 → 6.94.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/dist/Autocomplete/index.cjs +1 -0
  2. package/dist/Autocomplete/index.mjs +1 -0
  3. package/dist/Card/index.cjs +1 -0
  4. package/dist/Card/index.mjs +1 -0
  5. package/dist/Chip/index.cjs +1 -0
  6. package/dist/Chip/index.mjs +1 -0
  7. package/dist/Chips/InternalChipDismissible/hooks/index.cjs +1 -0
  8. package/dist/Chips/InternalChipDismissible/hooks/index.mjs +1 -0
  9. package/dist/Chips/InternalChipDismissible/index.cjs +1 -0
  10. package/dist/Chips/InternalChipDismissible/index.mjs +1 -0
  11. package/dist/Chips/index.cjs +1 -0
  12. package/dist/Chips/index.mjs +1 -0
  13. package/dist/Combobox/components/ComboboxActivator/index.cjs +1 -0
  14. package/dist/Combobox/components/ComboboxActivator/index.mjs +1 -0
  15. package/dist/Combobox/components/ComboboxContent/index.cjs +1 -0
  16. package/dist/Combobox/components/ComboboxContent/index.mjs +1 -0
  17. package/dist/Combobox/components/ComboboxTrigger/index.cjs +1 -0
  18. package/dist/Combobox/components/ComboboxTrigger/index.mjs +1 -0
  19. package/dist/Combobox/index.cjs +1 -0
  20. package/dist/Combobox/index.mjs +1 -0
  21. package/dist/ConfirmationModal/index.cjs +1 -0
  22. package/dist/ConfirmationModal/index.mjs +1 -0
  23. package/dist/DataDump/index.cjs +1 -0
  24. package/dist/DataDump/index.mjs +1 -0
  25. package/dist/DataList/components/DataListActions/index.cjs +1 -0
  26. package/dist/DataList/components/DataListActions/index.mjs +1 -0
  27. package/dist/DataList/components/DataListBulkActions/index.cjs +1 -0
  28. package/dist/DataList/components/DataListBulkActions/index.mjs +1 -0
  29. package/dist/DataList/components/DataListFilters/components/DataListSort/index.cjs +1 -0
  30. package/dist/DataList/components/DataListFilters/components/DataListSort/index.mjs +1 -0
  31. package/dist/DataList/components/DataListFilters/index.cjs +1 -0
  32. package/dist/DataList/components/DataListFilters/index.mjs +1 -0
  33. package/dist/DataList/components/DataListHeader/index.cjs +1 -0
  34. package/dist/DataList/components/DataListHeader/index.mjs +1 -0
  35. package/dist/DataList/components/DataListItem/index.cjs +1 -0
  36. package/dist/DataList/components/DataListItem/index.mjs +1 -0
  37. package/dist/DataList/components/DataListItemActions/index.cjs +1 -0
  38. package/dist/DataList/components/DataListItemActions/index.mjs +1 -0
  39. package/dist/DataList/components/DataListItemActionsOverflow/index.cjs +1 -0
  40. package/dist/DataList/components/DataListItemActionsOverflow/index.mjs +1 -0
  41. package/dist/DataList/components/DataListItems/index.cjs +1 -0
  42. package/dist/DataList/components/DataListItems/index.mjs +1 -0
  43. package/dist/DataList/components/DataListLayout/index.cjs +1 -0
  44. package/dist/DataList/components/DataListLayout/index.mjs +1 -0
  45. package/dist/DataList/components/DataListLayoutActions/index.cjs +1 -0
  46. package/dist/DataList/components/DataListLayoutActions/index.mjs +1 -0
  47. package/dist/DataList/index.cjs +1 -0
  48. package/dist/DataList/index.mjs +1 -0
  49. package/dist/DatePicker/index.cjs +1 -0
  50. package/dist/DatePicker/index.mjs +1 -0
  51. package/dist/FormatFile/index.cjs +1 -0
  52. package/dist/FormatFile/index.mjs +1 -0
  53. package/dist/Gallery/index.cjs +1 -0
  54. package/dist/Gallery/index.mjs +1 -0
  55. package/dist/InputDate/index.cjs +1 -0
  56. package/dist/InputDate/index.mjs +1 -0
  57. package/dist/Menu/index.cjs +1 -0
  58. package/dist/Menu/index.mjs +1 -0
  59. package/dist/Modal/index.cjs +1 -0
  60. package/dist/Modal/index.mjs +1 -0
  61. package/dist/Page/index.cjs +1 -0
  62. package/dist/Page/index.mjs +1 -0
  63. package/dist/Popover/index.cjs +1 -0
  64. package/dist/Popover/index.mjs +1 -0
  65. package/dist/Tooltip/index.cjs +1 -0
  66. package/dist/Tooltip/index.mjs +1 -0
  67. package/dist/floating-ui.react-cjs.js +19 -1372
  68. package/dist/floating-ui.react-es.js +20 -1373
  69. package/dist/index.cjs +1 -0
  70. package/dist/index.mjs +1 -0
  71. package/package.json +2 -2
  72. package/rollup.config.mjs +1 -0
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var React = require('react');
4
+ var jsxRuntime = require('react/jsx-runtime');
4
5
  var ReactDOM = require('react-dom');
5
6
 
6
7
  function _interopNamespaceDefault(e) {
@@ -1387,1360 +1388,6 @@ function enableFocusInside(container) {
1387
1388
  });
1388
1389
  }
1389
1390
 
1390
- var jsxRuntime = {exports: {}};
1391
-
1392
- var reactJsxRuntime_production_min = {};
1393
-
1394
- /**
1395
- * @license React
1396
- * react-jsx-runtime.production.min.js
1397
- *
1398
- * Copyright (c) Facebook, Inc. and its affiliates.
1399
- *
1400
- * This source code is licensed under the MIT license found in the
1401
- * LICENSE file in the root directory of this source tree.
1402
- */
1403
-
1404
- var hasRequiredReactJsxRuntime_production_min;
1405
-
1406
- function requireReactJsxRuntime_production_min () {
1407
- if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
1408
- hasRequiredReactJsxRuntime_production_min = 1;
1409
- var f=React,k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};
1410
- function q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return {$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}reactJsxRuntime_production_min.Fragment=l;reactJsxRuntime_production_min.jsx=q;reactJsxRuntime_production_min.jsxs=q;
1411
- return reactJsxRuntime_production_min;
1412
- }
1413
-
1414
- var reactJsxRuntime_development = {};
1415
-
1416
- /**
1417
- * @license React
1418
- * react-jsx-runtime.development.js
1419
- *
1420
- * Copyright (c) Facebook, Inc. and its affiliates.
1421
- *
1422
- * This source code is licensed under the MIT license found in the
1423
- * LICENSE file in the root directory of this source tree.
1424
- */
1425
-
1426
- var hasRequiredReactJsxRuntime_development;
1427
-
1428
- function requireReactJsxRuntime_development () {
1429
- if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
1430
- hasRequiredReactJsxRuntime_development = 1;
1431
-
1432
- if (process.env.NODE_ENV !== "production") {
1433
- (function() {
1434
-
1435
- var React$1 = React;
1436
-
1437
- // ATTENTION
1438
- // When adding new symbols to this file,
1439
- // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
1440
- // The Symbol used to tag the ReactElement-like types.
1441
- var REACT_ELEMENT_TYPE = Symbol.for('react.element');
1442
- var REACT_PORTAL_TYPE = Symbol.for('react.portal');
1443
- var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
1444
- var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
1445
- var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
1446
- var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
1447
- var REACT_CONTEXT_TYPE = Symbol.for('react.context');
1448
- var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
1449
- var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
1450
- var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
1451
- var REACT_MEMO_TYPE = Symbol.for('react.memo');
1452
- var REACT_LAZY_TYPE = Symbol.for('react.lazy');
1453
- var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
1454
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
1455
- var FAUX_ITERATOR_SYMBOL = '@@iterator';
1456
- function getIteratorFn(maybeIterable) {
1457
- if (maybeIterable === null || typeof maybeIterable !== 'object') {
1458
- return null;
1459
- }
1460
-
1461
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
1462
-
1463
- if (typeof maybeIterator === 'function') {
1464
- return maybeIterator;
1465
- }
1466
-
1467
- return null;
1468
- }
1469
-
1470
- var ReactSharedInternals = React$1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
1471
-
1472
- function error(format) {
1473
- {
1474
- {
1475
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
1476
- args[_key2 - 1] = arguments[_key2];
1477
- }
1478
-
1479
- printWarning('error', format, args);
1480
- }
1481
- }
1482
- }
1483
-
1484
- function printWarning(level, format, args) {
1485
- // When changing this logic, you might want to also
1486
- // update consoleWithStackDev.www.js as well.
1487
- {
1488
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
1489
- var stack = ReactDebugCurrentFrame.getStackAddendum();
1490
-
1491
- if (stack !== '') {
1492
- format += '%s';
1493
- args = args.concat([stack]);
1494
- } // eslint-disable-next-line react-internal/safe-string-coercion
1495
-
1496
-
1497
- var argsWithFormat = args.map(function (item) {
1498
- return String(item);
1499
- }); // Careful: RN currently depends on this prefix
1500
-
1501
- argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
1502
- // breaks IE9: https://github.com/facebook/react/issues/13610
1503
- // eslint-disable-next-line react-internal/no-production-logging
1504
-
1505
- Function.prototype.apply.call(console[level], console, argsWithFormat);
1506
- }
1507
- }
1508
-
1509
- // -----------------------------------------------------------------------------
1510
-
1511
- var enableScopeAPI = false; // Experimental Create Event Handle API.
1512
- var enableCacheElement = false;
1513
- var enableTransitionTracing = false; // No known bugs, but needs performance testing
1514
-
1515
- var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
1516
- // stuff. Intended to enable React core members to more easily debug scheduling
1517
- // issues in DEV builds.
1518
-
1519
- var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
1520
-
1521
- var REACT_MODULE_REFERENCE;
1522
-
1523
- {
1524
- REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
1525
- }
1526
-
1527
- function isValidElementType(type) {
1528
- if (typeof type === 'string' || typeof type === 'function') {
1529
- return true;
1530
- } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
1531
-
1532
-
1533
- if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {
1534
- return true;
1535
- }
1536
-
1537
- if (typeof type === 'object' && type !== null) {
1538
- if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
1539
- // types supported by any Flight configuration anywhere since
1540
- // we don't know which Flight build this will end up being used
1541
- // with.
1542
- type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
1543
- return true;
1544
- }
1545
- }
1546
-
1547
- return false;
1548
- }
1549
-
1550
- function getWrappedName(outerType, innerType, wrapperName) {
1551
- var displayName = outerType.displayName;
1552
-
1553
- if (displayName) {
1554
- return displayName;
1555
- }
1556
-
1557
- var functionName = innerType.displayName || innerType.name || '';
1558
- return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
1559
- } // Keep in sync with react-reconciler/getComponentNameFromFiber
1560
-
1561
-
1562
- function getContextName(type) {
1563
- return type.displayName || 'Context';
1564
- } // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
1565
-
1566
-
1567
- function getComponentNameFromType(type) {
1568
- if (type == null) {
1569
- // Host root, text node or just invalid type.
1570
- return null;
1571
- }
1572
-
1573
- {
1574
- if (typeof type.tag === 'number') {
1575
- error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
1576
- }
1577
- }
1578
-
1579
- if (typeof type === 'function') {
1580
- return type.displayName || type.name || null;
1581
- }
1582
-
1583
- if (typeof type === 'string') {
1584
- return type;
1585
- }
1586
-
1587
- switch (type) {
1588
- case REACT_FRAGMENT_TYPE:
1589
- return 'Fragment';
1590
-
1591
- case REACT_PORTAL_TYPE:
1592
- return 'Portal';
1593
-
1594
- case REACT_PROFILER_TYPE:
1595
- return 'Profiler';
1596
-
1597
- case REACT_STRICT_MODE_TYPE:
1598
- return 'StrictMode';
1599
-
1600
- case REACT_SUSPENSE_TYPE:
1601
- return 'Suspense';
1602
-
1603
- case REACT_SUSPENSE_LIST_TYPE:
1604
- return 'SuspenseList';
1605
-
1606
- }
1607
-
1608
- if (typeof type === 'object') {
1609
- switch (type.$$typeof) {
1610
- case REACT_CONTEXT_TYPE:
1611
- var context = type;
1612
- return getContextName(context) + '.Consumer';
1613
-
1614
- case REACT_PROVIDER_TYPE:
1615
- var provider = type;
1616
- return getContextName(provider._context) + '.Provider';
1617
-
1618
- case REACT_FORWARD_REF_TYPE:
1619
- return getWrappedName(type, type.render, 'ForwardRef');
1620
-
1621
- case REACT_MEMO_TYPE:
1622
- var outerName = type.displayName || null;
1623
-
1624
- if (outerName !== null) {
1625
- return outerName;
1626
- }
1627
-
1628
- return getComponentNameFromType(type.type) || 'Memo';
1629
-
1630
- case REACT_LAZY_TYPE:
1631
- {
1632
- var lazyComponent = type;
1633
- var payload = lazyComponent._payload;
1634
- var init = lazyComponent._init;
1635
-
1636
- try {
1637
- return getComponentNameFromType(init(payload));
1638
- } catch (x) {
1639
- return null;
1640
- }
1641
- }
1642
-
1643
- // eslint-disable-next-line no-fallthrough
1644
- }
1645
- }
1646
-
1647
- return null;
1648
- }
1649
-
1650
- var assign = Object.assign;
1651
-
1652
- // Helpers to patch console.logs to avoid logging during side-effect free
1653
- // replaying on render function. This currently only patches the object
1654
- // lazily which won't cover if the log function was extracted eagerly.
1655
- // We could also eagerly patch the method.
1656
- var disabledDepth = 0;
1657
- var prevLog;
1658
- var prevInfo;
1659
- var prevWarn;
1660
- var prevError;
1661
- var prevGroup;
1662
- var prevGroupCollapsed;
1663
- var prevGroupEnd;
1664
-
1665
- function disabledLog() {}
1666
-
1667
- disabledLog.__reactDisabledLog = true;
1668
- function disableLogs() {
1669
- {
1670
- if (disabledDepth === 0) {
1671
- /* eslint-disable react-internal/no-production-logging */
1672
- prevLog = console.log;
1673
- prevInfo = console.info;
1674
- prevWarn = console.warn;
1675
- prevError = console.error;
1676
- prevGroup = console.group;
1677
- prevGroupCollapsed = console.groupCollapsed;
1678
- prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099
1679
-
1680
- var props = {
1681
- configurable: true,
1682
- enumerable: true,
1683
- value: disabledLog,
1684
- writable: true
1685
- }; // $FlowFixMe Flow thinks console is immutable.
1686
-
1687
- Object.defineProperties(console, {
1688
- info: props,
1689
- log: props,
1690
- warn: props,
1691
- error: props,
1692
- group: props,
1693
- groupCollapsed: props,
1694
- groupEnd: props
1695
- });
1696
- /* eslint-enable react-internal/no-production-logging */
1697
- }
1698
-
1699
- disabledDepth++;
1700
- }
1701
- }
1702
- function reenableLogs() {
1703
- {
1704
- disabledDepth--;
1705
-
1706
- if (disabledDepth === 0) {
1707
- /* eslint-disable react-internal/no-production-logging */
1708
- var props = {
1709
- configurable: true,
1710
- enumerable: true,
1711
- writable: true
1712
- }; // $FlowFixMe Flow thinks console is immutable.
1713
-
1714
- Object.defineProperties(console, {
1715
- log: assign({}, props, {
1716
- value: prevLog
1717
- }),
1718
- info: assign({}, props, {
1719
- value: prevInfo
1720
- }),
1721
- warn: assign({}, props, {
1722
- value: prevWarn
1723
- }),
1724
- error: assign({}, props, {
1725
- value: prevError
1726
- }),
1727
- group: assign({}, props, {
1728
- value: prevGroup
1729
- }),
1730
- groupCollapsed: assign({}, props, {
1731
- value: prevGroupCollapsed
1732
- }),
1733
- groupEnd: assign({}, props, {
1734
- value: prevGroupEnd
1735
- })
1736
- });
1737
- /* eslint-enable react-internal/no-production-logging */
1738
- }
1739
-
1740
- if (disabledDepth < 0) {
1741
- error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
1742
- }
1743
- }
1744
- }
1745
-
1746
- var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
1747
- var prefix;
1748
- function describeBuiltInComponentFrame(name, source, ownerFn) {
1749
- {
1750
- if (prefix === undefined) {
1751
- // Extract the VM specific prefix used by each line.
1752
- try {
1753
- throw Error();
1754
- } catch (x) {
1755
- var match = x.stack.trim().match(/\n( *(at )?)/);
1756
- prefix = match && match[1] || '';
1757
- }
1758
- } // We use the prefix to ensure our stacks line up with native stack frames.
1759
-
1760
-
1761
- return '\n' + prefix + name;
1762
- }
1763
- }
1764
- var reentry = false;
1765
- var componentFrameCache;
1766
-
1767
- {
1768
- var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
1769
- componentFrameCache = new PossiblyWeakMap();
1770
- }
1771
-
1772
- function describeNativeComponentFrame(fn, construct) {
1773
- // If something asked for a stack inside a fake render, it should get ignored.
1774
- if ( !fn || reentry) {
1775
- return '';
1776
- }
1777
-
1778
- {
1779
- var frame = componentFrameCache.get(fn);
1780
-
1781
- if (frame !== undefined) {
1782
- return frame;
1783
- }
1784
- }
1785
-
1786
- var control;
1787
- reentry = true;
1788
- var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.
1789
-
1790
- Error.prepareStackTrace = undefined;
1791
- var previousDispatcher;
1792
-
1793
- {
1794
- previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function
1795
- // for warnings.
1796
-
1797
- ReactCurrentDispatcher.current = null;
1798
- disableLogs();
1799
- }
1800
-
1801
- try {
1802
- // This should throw.
1803
- if (construct) {
1804
- // Something should be setting the props in the constructor.
1805
- var Fake = function () {
1806
- throw Error();
1807
- }; // $FlowFixMe
1808
-
1809
-
1810
- Object.defineProperty(Fake.prototype, 'props', {
1811
- set: function () {
1812
- // We use a throwing setter instead of frozen or non-writable props
1813
- // because that won't throw in a non-strict mode function.
1814
- throw Error();
1815
- }
1816
- });
1817
-
1818
- if (typeof Reflect === 'object' && Reflect.construct) {
1819
- // We construct a different control for this case to include any extra
1820
- // frames added by the construct call.
1821
- try {
1822
- Reflect.construct(Fake, []);
1823
- } catch (x) {
1824
- control = x;
1825
- }
1826
-
1827
- Reflect.construct(fn, [], Fake);
1828
- } else {
1829
- try {
1830
- Fake.call();
1831
- } catch (x) {
1832
- control = x;
1833
- }
1834
-
1835
- fn.call(Fake.prototype);
1836
- }
1837
- } else {
1838
- try {
1839
- throw Error();
1840
- } catch (x) {
1841
- control = x;
1842
- }
1843
-
1844
- fn();
1845
- }
1846
- } catch (sample) {
1847
- // This is inlined manually because closure doesn't do it for us.
1848
- if (sample && control && typeof sample.stack === 'string') {
1849
- // This extracts the first frame from the sample that isn't also in the control.
1850
- // Skipping one frame that we assume is the frame that calls the two.
1851
- var sampleLines = sample.stack.split('\n');
1852
- var controlLines = control.stack.split('\n');
1853
- var s = sampleLines.length - 1;
1854
- var c = controlLines.length - 1;
1855
-
1856
- while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
1857
- // We expect at least one stack frame to be shared.
1858
- // Typically this will be the root most one. However, stack frames may be
1859
- // cut off due to maximum stack limits. In this case, one maybe cut off
1860
- // earlier than the other. We assume that the sample is longer or the same
1861
- // and there for cut off earlier. So we should find the root most frame in
1862
- // the sample somewhere in the control.
1863
- c--;
1864
- }
1865
-
1866
- for (; s >= 1 && c >= 0; s--, c--) {
1867
- // Next we find the first one that isn't the same which should be the
1868
- // frame that called our sample function and the control.
1869
- if (sampleLines[s] !== controlLines[c]) {
1870
- // In V8, the first line is describing the message but other VMs don't.
1871
- // If we're about to return the first line, and the control is also on the same
1872
- // line, that's a pretty good indicator that our sample threw at same line as
1873
- // the control. I.e. before we entered the sample frame. So we ignore this result.
1874
- // This can happen if you passed a class to function component, or non-function.
1875
- if (s !== 1 || c !== 1) {
1876
- do {
1877
- s--;
1878
- c--; // We may still have similar intermediate frames from the construct call.
1879
- // The next one that isn't the same should be our match though.
1880
-
1881
- if (c < 0 || sampleLines[s] !== controlLines[c]) {
1882
- // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
1883
- var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled "<anonymous>"
1884
- // but we have a user-provided "displayName"
1885
- // splice it in to make the stack more readable.
1886
-
1887
-
1888
- if (fn.displayName && _frame.includes('<anonymous>')) {
1889
- _frame = _frame.replace('<anonymous>', fn.displayName);
1890
- }
1891
-
1892
- {
1893
- if (typeof fn === 'function') {
1894
- componentFrameCache.set(fn, _frame);
1895
- }
1896
- } // Return the line we found.
1897
-
1898
-
1899
- return _frame;
1900
- }
1901
- } while (s >= 1 && c >= 0);
1902
- }
1903
-
1904
- break;
1905
- }
1906
- }
1907
- }
1908
- } finally {
1909
- reentry = false;
1910
-
1911
- {
1912
- ReactCurrentDispatcher.current = previousDispatcher;
1913
- reenableLogs();
1914
- }
1915
-
1916
- Error.prepareStackTrace = previousPrepareStackTrace;
1917
- } // Fallback to just using the name if we couldn't make it throw.
1918
-
1919
-
1920
- var name = fn ? fn.displayName || fn.name : '';
1921
- var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
1922
-
1923
- {
1924
- if (typeof fn === 'function') {
1925
- componentFrameCache.set(fn, syntheticFrame);
1926
- }
1927
- }
1928
-
1929
- return syntheticFrame;
1930
- }
1931
- function describeFunctionComponentFrame(fn, source, ownerFn) {
1932
- {
1933
- return describeNativeComponentFrame(fn, false);
1934
- }
1935
- }
1936
-
1937
- function shouldConstruct(Component) {
1938
- var prototype = Component.prototype;
1939
- return !!(prototype && prototype.isReactComponent);
1940
- }
1941
-
1942
- function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
1943
-
1944
- if (type == null) {
1945
- return '';
1946
- }
1947
-
1948
- if (typeof type === 'function') {
1949
- {
1950
- return describeNativeComponentFrame(type, shouldConstruct(type));
1951
- }
1952
- }
1953
-
1954
- if (typeof type === 'string') {
1955
- return describeBuiltInComponentFrame(type);
1956
- }
1957
-
1958
- switch (type) {
1959
- case REACT_SUSPENSE_TYPE:
1960
- return describeBuiltInComponentFrame('Suspense');
1961
-
1962
- case REACT_SUSPENSE_LIST_TYPE:
1963
- return describeBuiltInComponentFrame('SuspenseList');
1964
- }
1965
-
1966
- if (typeof type === 'object') {
1967
- switch (type.$$typeof) {
1968
- case REACT_FORWARD_REF_TYPE:
1969
- return describeFunctionComponentFrame(type.render);
1970
-
1971
- case REACT_MEMO_TYPE:
1972
- // Memo may contain any component type so we recursively resolve it.
1973
- return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
1974
-
1975
- case REACT_LAZY_TYPE:
1976
- {
1977
- var lazyComponent = type;
1978
- var payload = lazyComponent._payload;
1979
- var init = lazyComponent._init;
1980
-
1981
- try {
1982
- // Lazy may contain any component type so we recursively resolve it.
1983
- return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
1984
- } catch (x) {}
1985
- }
1986
- }
1987
- }
1988
-
1989
- return '';
1990
- }
1991
-
1992
- var hasOwnProperty = Object.prototype.hasOwnProperty;
1993
-
1994
- var loggedTypeFailures = {};
1995
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
1996
-
1997
- function setCurrentlyValidatingElement(element) {
1998
- {
1999
- if (element) {
2000
- var owner = element._owner;
2001
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
2002
- ReactDebugCurrentFrame.setExtraStackFrame(stack);
2003
- } else {
2004
- ReactDebugCurrentFrame.setExtraStackFrame(null);
2005
- }
2006
- }
2007
- }
2008
-
2009
- function checkPropTypes(typeSpecs, values, location, componentName, element) {
2010
- {
2011
- // $FlowFixMe This is okay but Flow doesn't know it.
2012
- var has = Function.call.bind(hasOwnProperty);
2013
-
2014
- for (var typeSpecName in typeSpecs) {
2015
- if (has(typeSpecs, typeSpecName)) {
2016
- var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
2017
- // fail the render phase where it didn't fail before. So we log it.
2018
- // After these have been cleaned up, we'll let them throw.
2019
-
2020
- try {
2021
- // This is intentionally an invariant that gets caught. It's the same
2022
- // behavior as without this statement except with a better message.
2023
- if (typeof typeSpecs[typeSpecName] !== 'function') {
2024
- // eslint-disable-next-line react-internal/prod-error-codes
2025
- var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
2026
- err.name = 'Invariant Violation';
2027
- throw err;
2028
- }
2029
-
2030
- error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
2031
- } catch (ex) {
2032
- error$1 = ex;
2033
- }
2034
-
2035
- if (error$1 && !(error$1 instanceof Error)) {
2036
- setCurrentlyValidatingElement(element);
2037
-
2038
- error('%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).', componentName || 'React class', location, typeSpecName, typeof error$1);
2039
-
2040
- setCurrentlyValidatingElement(null);
2041
- }
2042
-
2043
- if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
2044
- // Only monitor this failure once because there tends to be a lot of the
2045
- // same error.
2046
- loggedTypeFailures[error$1.message] = true;
2047
- setCurrentlyValidatingElement(element);
2048
-
2049
- error('Failed %s type: %s', location, error$1.message);
2050
-
2051
- setCurrentlyValidatingElement(null);
2052
- }
2053
- }
2054
- }
2055
- }
2056
- }
2057
-
2058
- var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare
2059
-
2060
- function isArray(a) {
2061
- return isArrayImpl(a);
2062
- }
2063
-
2064
- /*
2065
- * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol
2066
- * and Temporal.* types. See https://github.com/facebook/react/pull/22064.
2067
- *
2068
- * The functions in this module will throw an easier-to-understand,
2069
- * easier-to-debug exception with a clear errors message message explaining the
2070
- * problem. (Instead of a confusing exception thrown inside the implementation
2071
- * of the `value` object).
2072
- */
2073
- // $FlowFixMe only called in DEV, so void return is not possible.
2074
- function typeName(value) {
2075
- {
2076
- // toStringTag is needed for namespaced types like Temporal.Instant
2077
- var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
2078
- var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
2079
- return type;
2080
- }
2081
- } // $FlowFixMe only called in DEV, so void return is not possible.
2082
-
2083
-
2084
- function willCoercionThrow(value) {
2085
- {
2086
- try {
2087
- testStringCoercion(value);
2088
- return false;
2089
- } catch (e) {
2090
- return true;
2091
- }
2092
- }
2093
- }
2094
-
2095
- function testStringCoercion(value) {
2096
- // If you ended up here by following an exception call stack, here's what's
2097
- // happened: you supplied an object or symbol value to React (as a prop, key,
2098
- // DOM attribute, CSS property, string ref, etc.) and when React tried to
2099
- // coerce it to a string using `'' + value`, an exception was thrown.
2100
- //
2101
- // The most common types that will cause this exception are `Symbol` instances
2102
- // and Temporal objects like `Temporal.Instant`. But any object that has a
2103
- // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
2104
- // exception. (Library authors do this to prevent users from using built-in
2105
- // numeric operators like `+` or comparison operators like `>=` because custom
2106
- // methods are needed to perform accurate arithmetic or comparison.)
2107
- //
2108
- // To fix the problem, coerce this object or symbol value to a string before
2109
- // passing it to React. The most reliable way is usually `String(value)`.
2110
- //
2111
- // To find which value is throwing, check the browser or debugger console.
2112
- // Before this exception was thrown, there should be `console.error` output
2113
- // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
2114
- // problem and how that type was used: key, atrribute, input value prop, etc.
2115
- // In most cases, this console output also shows the component and its
2116
- // ancestor components where the exception happened.
2117
- //
2118
- // eslint-disable-next-line react-internal/safe-string-coercion
2119
- return '' + value;
2120
- }
2121
- function checkKeyStringCoercion(value) {
2122
- {
2123
- if (willCoercionThrow(value)) {
2124
- error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));
2125
-
2126
- return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
2127
- }
2128
- }
2129
- }
2130
-
2131
- var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
2132
- var RESERVED_PROPS = {
2133
- key: true,
2134
- ref: true,
2135
- __self: true,
2136
- __source: true
2137
- };
2138
- var specialPropKeyWarningShown;
2139
- var specialPropRefWarningShown;
2140
- var didWarnAboutStringRefs;
2141
-
2142
- {
2143
- didWarnAboutStringRefs = {};
2144
- }
2145
-
2146
- function hasValidRef(config) {
2147
- {
2148
- if (hasOwnProperty.call(config, 'ref')) {
2149
- var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
2150
-
2151
- if (getter && getter.isReactWarning) {
2152
- return false;
2153
- }
2154
- }
2155
- }
2156
-
2157
- return config.ref !== undefined;
2158
- }
2159
-
2160
- function hasValidKey(config) {
2161
- {
2162
- if (hasOwnProperty.call(config, 'key')) {
2163
- var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
2164
-
2165
- if (getter && getter.isReactWarning) {
2166
- return false;
2167
- }
2168
- }
2169
- }
2170
-
2171
- return config.key !== undefined;
2172
- }
2173
-
2174
- function warnIfStringRefCannotBeAutoConverted(config, self) {
2175
- {
2176
- if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
2177
- var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
2178
-
2179
- if (!didWarnAboutStringRefs[componentName]) {
2180
- error('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', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
2181
-
2182
- didWarnAboutStringRefs[componentName] = true;
2183
- }
2184
- }
2185
- }
2186
- }
2187
-
2188
- function defineKeyPropWarningGetter(props, displayName) {
2189
- {
2190
- var warnAboutAccessingKey = function () {
2191
- if (!specialPropKeyWarningShown) {
2192
- specialPropKeyWarningShown = true;
2193
-
2194
- error('%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)', displayName);
2195
- }
2196
- };
2197
-
2198
- warnAboutAccessingKey.isReactWarning = true;
2199
- Object.defineProperty(props, 'key', {
2200
- get: warnAboutAccessingKey,
2201
- configurable: true
2202
- });
2203
- }
2204
- }
2205
-
2206
- function defineRefPropWarningGetter(props, displayName) {
2207
- {
2208
- var warnAboutAccessingRef = function () {
2209
- if (!specialPropRefWarningShown) {
2210
- specialPropRefWarningShown = true;
2211
-
2212
- error('%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)', displayName);
2213
- }
2214
- };
2215
-
2216
- warnAboutAccessingRef.isReactWarning = true;
2217
- Object.defineProperty(props, 'ref', {
2218
- get: warnAboutAccessingRef,
2219
- configurable: true
2220
- });
2221
- }
2222
- }
2223
- /**
2224
- * Factory method to create a new React element. This no longer adheres to
2225
- * the class pattern, so do not use new to call it. Also, instanceof check
2226
- * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
2227
- * if something is a React Element.
2228
- *
2229
- * @param {*} type
2230
- * @param {*} props
2231
- * @param {*} key
2232
- * @param {string|object} ref
2233
- * @param {*} owner
2234
- * @param {*} self A *temporary* helper to detect places where `this` is
2235
- * different from the `owner` when React.createElement is called, so that we
2236
- * can warn. We want to get rid of owner and replace string `ref`s with arrow
2237
- * functions, and as long as `this` and owner are the same, there will be no
2238
- * change in behavior.
2239
- * @param {*} source An annotation object (added by a transpiler or otherwise)
2240
- * indicating filename, line number, and/or other information.
2241
- * @internal
2242
- */
2243
-
2244
-
2245
- var ReactElement = function (type, key, ref, self, source, owner, props) {
2246
- var element = {
2247
- // This tag allows us to uniquely identify this as a React Element
2248
- $$typeof: REACT_ELEMENT_TYPE,
2249
- // Built-in properties that belong on the element
2250
- type: type,
2251
- key: key,
2252
- ref: ref,
2253
- props: props,
2254
- // Record the component responsible for creating this element.
2255
- _owner: owner
2256
- };
2257
-
2258
- {
2259
- // The validation flag is currently mutative. We put it on
2260
- // an external backing store so that we can freeze the whole object.
2261
- // This can be replaced with a WeakMap once they are implemented in
2262
- // commonly used development environments.
2263
- element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
2264
- // the validation flag non-enumerable (where possible, which should
2265
- // include every environment we run tests in), so the test framework
2266
- // ignores it.
2267
-
2268
- Object.defineProperty(element._store, 'validated', {
2269
- configurable: false,
2270
- enumerable: false,
2271
- writable: true,
2272
- value: false
2273
- }); // self and source are DEV only properties.
2274
-
2275
- Object.defineProperty(element, '_self', {
2276
- configurable: false,
2277
- enumerable: false,
2278
- writable: false,
2279
- value: self
2280
- }); // Two elements created in two different places should be considered
2281
- // equal for testing purposes and therefore we hide it from enumeration.
2282
-
2283
- Object.defineProperty(element, '_source', {
2284
- configurable: false,
2285
- enumerable: false,
2286
- writable: false,
2287
- value: source
2288
- });
2289
-
2290
- if (Object.freeze) {
2291
- Object.freeze(element.props);
2292
- Object.freeze(element);
2293
- }
2294
- }
2295
-
2296
- return element;
2297
- };
2298
- /**
2299
- * https://github.com/reactjs/rfcs/pull/107
2300
- * @param {*} type
2301
- * @param {object} props
2302
- * @param {string} key
2303
- */
2304
-
2305
- function jsxDEV(type, config, maybeKey, source, self) {
2306
- {
2307
- var propName; // Reserved names are extracted
2308
-
2309
- var props = {};
2310
- var key = null;
2311
- var ref = null; // Currently, key can be spread in as a prop. This causes a potential
2312
- // issue if key is also explicitly declared (ie. <div {...props} key="Hi" />
2313
- // or <div key="Hi" {...props} /> ). We want to deprecate key spread,
2314
- // but as an intermediary step, we will use jsxDEV for everything except
2315
- // <div {...props} key="Hi" />, because we aren't currently able to tell if
2316
- // key is explicitly declared to be undefined or not.
2317
-
2318
- if (maybeKey !== undefined) {
2319
- {
2320
- checkKeyStringCoercion(maybeKey);
2321
- }
2322
-
2323
- key = '' + maybeKey;
2324
- }
2325
-
2326
- if (hasValidKey(config)) {
2327
- {
2328
- checkKeyStringCoercion(config.key);
2329
- }
2330
-
2331
- key = '' + config.key;
2332
- }
2333
-
2334
- if (hasValidRef(config)) {
2335
- ref = config.ref;
2336
- warnIfStringRefCannotBeAutoConverted(config, self);
2337
- } // Remaining properties are added to a new props object
2338
-
2339
-
2340
- for (propName in config) {
2341
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
2342
- props[propName] = config[propName];
2343
- }
2344
- } // Resolve default props
2345
-
2346
-
2347
- if (type && type.defaultProps) {
2348
- var defaultProps = type.defaultProps;
2349
-
2350
- for (propName in defaultProps) {
2351
- if (props[propName] === undefined) {
2352
- props[propName] = defaultProps[propName];
2353
- }
2354
- }
2355
- }
2356
-
2357
- if (key || ref) {
2358
- var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
2359
-
2360
- if (key) {
2361
- defineKeyPropWarningGetter(props, displayName);
2362
- }
2363
-
2364
- if (ref) {
2365
- defineRefPropWarningGetter(props, displayName);
2366
- }
2367
- }
2368
-
2369
- return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
2370
- }
2371
- }
2372
-
2373
- var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
2374
- var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
2375
-
2376
- function setCurrentlyValidatingElement$1(element) {
2377
- {
2378
- if (element) {
2379
- var owner = element._owner;
2380
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
2381
- ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
2382
- } else {
2383
- ReactDebugCurrentFrame$1.setExtraStackFrame(null);
2384
- }
2385
- }
2386
- }
2387
-
2388
- var propTypesMisspellWarningShown;
2389
-
2390
- {
2391
- propTypesMisspellWarningShown = false;
2392
- }
2393
- /**
2394
- * Verifies the object is a ReactElement.
2395
- * See https://reactjs.org/docs/react-api.html#isvalidelement
2396
- * @param {?object} object
2397
- * @return {boolean} True if `object` is a ReactElement.
2398
- * @final
2399
- */
2400
-
2401
-
2402
- function isValidElement(object) {
2403
- {
2404
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
2405
- }
2406
- }
2407
-
2408
- function getDeclarationErrorAddendum() {
2409
- {
2410
- if (ReactCurrentOwner$1.current) {
2411
- var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
2412
-
2413
- if (name) {
2414
- return '\n\nCheck the render method of `' + name + '`.';
2415
- }
2416
- }
2417
-
2418
- return '';
2419
- }
2420
- }
2421
-
2422
- function getSourceInfoErrorAddendum(source) {
2423
- {
2424
- if (source !== undefined) {
2425
- var fileName = source.fileName.replace(/^.*[\\\/]/, '');
2426
- var lineNumber = source.lineNumber;
2427
- return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
2428
- }
2429
-
2430
- return '';
2431
- }
2432
- }
2433
- /**
2434
- * Warn if there's no key explicitly set on dynamic arrays of children or
2435
- * object keys are not valid. This allows us to keep track of children between
2436
- * updates.
2437
- */
2438
-
2439
-
2440
- var ownerHasKeyUseWarning = {};
2441
-
2442
- function getCurrentComponentErrorInfo(parentType) {
2443
- {
2444
- var info = getDeclarationErrorAddendum();
2445
-
2446
- if (!info) {
2447
- var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
2448
-
2449
- if (parentName) {
2450
- info = "\n\nCheck the top-level render call using <" + parentName + ">.";
2451
- }
2452
- }
2453
-
2454
- return info;
2455
- }
2456
- }
2457
- /**
2458
- * Warn if the element doesn't have an explicit key assigned to it.
2459
- * This element is in an array. The array could grow and shrink or be
2460
- * reordered. All children that haven't already been validated are required to
2461
- * have a "key" property assigned to it. Error statuses are cached so a warning
2462
- * will only be shown once.
2463
- *
2464
- * @internal
2465
- * @param {ReactElement} element Element that requires a key.
2466
- * @param {*} parentType element's parent's type.
2467
- */
2468
-
2469
-
2470
- function validateExplicitKey(element, parentType) {
2471
- {
2472
- if (!element._store || element._store.validated || element.key != null) {
2473
- return;
2474
- }
2475
-
2476
- element._store.validated = true;
2477
- var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
2478
-
2479
- if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
2480
- return;
2481
- }
2482
-
2483
- ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
2484
- // property, it may be the creator of the child that's responsible for
2485
- // assigning it a key.
2486
-
2487
- var childOwner = '';
2488
-
2489
- if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
2490
- // Give the component that originally created this child.
2491
- childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
2492
- }
2493
-
2494
- setCurrentlyValidatingElement$1(element);
2495
-
2496
- error('Each child in a list should have a unique "key" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
2497
-
2498
- setCurrentlyValidatingElement$1(null);
2499
- }
2500
- }
2501
- /**
2502
- * Ensure that every element either is passed in a static location, in an
2503
- * array with an explicit keys property defined, or in an object literal
2504
- * with valid key property.
2505
- *
2506
- * @internal
2507
- * @param {ReactNode} node Statically passed child of any type.
2508
- * @param {*} parentType node's parent's type.
2509
- */
2510
-
2511
-
2512
- function validateChildKeys(node, parentType) {
2513
- {
2514
- if (typeof node !== 'object') {
2515
- return;
2516
- }
2517
-
2518
- if (isArray(node)) {
2519
- for (var i = 0; i < node.length; i++) {
2520
- var child = node[i];
2521
-
2522
- if (isValidElement(child)) {
2523
- validateExplicitKey(child, parentType);
2524
- }
2525
- }
2526
- } else if (isValidElement(node)) {
2527
- // This element was passed in a valid location.
2528
- if (node._store) {
2529
- node._store.validated = true;
2530
- }
2531
- } else if (node) {
2532
- var iteratorFn = getIteratorFn(node);
2533
-
2534
- if (typeof iteratorFn === 'function') {
2535
- // Entry iterators used to provide implicit keys,
2536
- // but now we print a separate warning for them later.
2537
- if (iteratorFn !== node.entries) {
2538
- var iterator = iteratorFn.call(node);
2539
- var step;
2540
-
2541
- while (!(step = iterator.next()).done) {
2542
- if (isValidElement(step.value)) {
2543
- validateExplicitKey(step.value, parentType);
2544
- }
2545
- }
2546
- }
2547
- }
2548
- }
2549
- }
2550
- }
2551
- /**
2552
- * Given an element, validate that its props follow the propTypes definition,
2553
- * provided by the type.
2554
- *
2555
- * @param {ReactElement} element
2556
- */
2557
-
2558
-
2559
- function validatePropTypes(element) {
2560
- {
2561
- var type = element.type;
2562
-
2563
- if (type === null || type === undefined || typeof type === 'string') {
2564
- return;
2565
- }
2566
-
2567
- var propTypes;
2568
-
2569
- if (typeof type === 'function') {
2570
- propTypes = type.propTypes;
2571
- } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
2572
- // Inner props are checked in the reconciler.
2573
- type.$$typeof === REACT_MEMO_TYPE)) {
2574
- propTypes = type.propTypes;
2575
- } else {
2576
- return;
2577
- }
2578
-
2579
- if (propTypes) {
2580
- // Intentionally inside to avoid triggering lazy initializers:
2581
- var name = getComponentNameFromType(type);
2582
- checkPropTypes(propTypes, element.props, 'prop', name, element);
2583
- } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
2584
- propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
2585
-
2586
- var _name = getComponentNameFromType(type);
2587
-
2588
- error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
2589
- }
2590
-
2591
- if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
2592
- error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
2593
- }
2594
- }
2595
- }
2596
- /**
2597
- * Given a fragment, validate that it can only be provided with fragment props
2598
- * @param {ReactElement} fragment
2599
- */
2600
-
2601
-
2602
- function validateFragmentProps(fragment) {
2603
- {
2604
- var keys = Object.keys(fragment.props);
2605
-
2606
- for (var i = 0; i < keys.length; i++) {
2607
- var key = keys[i];
2608
-
2609
- if (key !== 'children' && key !== 'key') {
2610
- setCurrentlyValidatingElement$1(fragment);
2611
-
2612
- error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
2613
-
2614
- setCurrentlyValidatingElement$1(null);
2615
- break;
2616
- }
2617
- }
2618
-
2619
- if (fragment.ref !== null) {
2620
- setCurrentlyValidatingElement$1(fragment);
2621
-
2622
- error('Invalid attribute `ref` supplied to `React.Fragment`.');
2623
-
2624
- setCurrentlyValidatingElement$1(null);
2625
- }
2626
- }
2627
- }
2628
-
2629
- function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
2630
- {
2631
- var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
2632
- // succeed and there will likely be errors in render.
2633
-
2634
- if (!validType) {
2635
- var info = '';
2636
-
2637
- if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
2638
- info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
2639
- }
2640
-
2641
- var sourceInfo = getSourceInfoErrorAddendum(source);
2642
-
2643
- if (sourceInfo) {
2644
- info += sourceInfo;
2645
- } else {
2646
- info += getDeclarationErrorAddendum();
2647
- }
2648
-
2649
- var typeString;
2650
-
2651
- if (type === null) {
2652
- typeString = 'null';
2653
- } else if (isArray(type)) {
2654
- typeString = 'array';
2655
- } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
2656
- typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />";
2657
- info = ' Did you accidentally export a JSX literal instead of a component?';
2658
- } else {
2659
- typeString = typeof type;
2660
- }
2661
-
2662
- error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
2663
- }
2664
-
2665
- var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.
2666
- // TODO: Drop this when these are no longer allowed as the type argument.
2667
-
2668
- if (element == null) {
2669
- return element;
2670
- } // Skip key warning if the type isn't valid since our key validation logic
2671
- // doesn't expect a non-string/function type and can throw confusing errors.
2672
- // We don't want exception behavior to differ between dev and prod.
2673
- // (Rendering will throw with a helpful message and as soon as the type is
2674
- // fixed, the key warnings will appear.)
2675
-
2676
-
2677
- if (validType) {
2678
- var children = props.children;
2679
-
2680
- if (children !== undefined) {
2681
- if (isStaticChildren) {
2682
- if (isArray(children)) {
2683
- for (var i = 0; i < children.length; i++) {
2684
- validateChildKeys(children[i], type);
2685
- }
2686
-
2687
- if (Object.freeze) {
2688
- Object.freeze(children);
2689
- }
2690
- } else {
2691
- error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');
2692
- }
2693
- } else {
2694
- validateChildKeys(children, type);
2695
- }
2696
- }
2697
- }
2698
-
2699
- if (type === REACT_FRAGMENT_TYPE) {
2700
- validateFragmentProps(element);
2701
- } else {
2702
- validatePropTypes(element);
2703
- }
2704
-
2705
- return element;
2706
- }
2707
- } // These two functions exist to still get child warnings in dev
2708
- // even with the prod transform. This means that jsxDEV is purely
2709
- // opt-in behavior for better messages but that we won't stop
2710
- // giving you warnings if you use production apis.
2711
-
2712
- function jsxWithValidationStatic(type, props, key) {
2713
- {
2714
- return jsxWithValidation(type, props, key, true);
2715
- }
2716
- }
2717
- function jsxWithValidationDynamic(type, props, key) {
2718
- {
2719
- return jsxWithValidation(type, props, key, false);
2720
- }
2721
- }
2722
-
2723
- var jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.
2724
- // for now we can ship identical prod functions
2725
-
2726
- var jsxs = jsxWithValidationStatic ;
2727
-
2728
- reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
2729
- reactJsxRuntime_development.jsx = jsx;
2730
- reactJsxRuntime_development.jsxs = jsxs;
2731
- })();
2732
- }
2733
- return reactJsxRuntime_development;
2734
- }
2735
-
2736
- if (process.env.NODE_ENV === 'production') {
2737
- jsxRuntime.exports = requireReactJsxRuntime_production_min();
2738
- } else {
2739
- jsxRuntime.exports = requireReactJsxRuntime_development();
2740
- }
2741
-
2742
- var jsxRuntimeExports = jsxRuntime.exports;
2743
-
2744
1391
  function computeCoordsFromPlacement(_ref, placement, rtl) {
2745
1392
  let {
2746
1393
  reference,
@@ -4823,7 +3470,7 @@ const FloatingArrow = /*#__PURE__*/React__namespace.forwardRef(function Floating
4823
3470
  bottom: isCustomShape ? '' : 'rotate(180deg)',
4824
3471
  right: isCustomShape ? 'rotate(-90deg)' : 'rotate(90deg)'
4825
3472
  }[side];
4826
- return /*#__PURE__*/jsxRuntimeExports.jsxs("svg", {
3473
+ return /*#__PURE__*/jsxRuntime.jsxs("svg", {
4827
3474
  ...rest,
4828
3475
  "aria-hidden": true,
4829
3476
  ref: ref,
@@ -4839,7 +3486,7 @@ const FloatingArrow = /*#__PURE__*/React__namespace.forwardRef(function Floating
4839
3486
  transform: [rotation, transform].filter(t => !!t).join(' '),
4840
3487
  ...restStyle
4841
3488
  },
4842
- children: [computedStrokeWidth > 0 && /*#__PURE__*/jsxRuntimeExports.jsx("path", {
3489
+ children: [computedStrokeWidth > 0 && /*#__PURE__*/jsxRuntime.jsx("path", {
4843
3490
  clipPath: "url(#" + clipPathId + ")",
4844
3491
  fill: "none",
4845
3492
  stroke: stroke
@@ -4847,12 +3494,12 @@ const FloatingArrow = /*#__PURE__*/React__namespace.forwardRef(function Floating
4847
3494
  ,
4848
3495
  strokeWidth: computedStrokeWidth + (d ? 0 : 1),
4849
3496
  d: dValue
4850
- }), /*#__PURE__*/jsxRuntimeExports.jsx("path", {
3497
+ }), /*#__PURE__*/jsxRuntime.jsx("path", {
4851
3498
  stroke: computedStrokeWidth && !d ? rest.fill : 'none',
4852
3499
  d: dValue
4853
- }), /*#__PURE__*/jsxRuntimeExports.jsx("clipPath", {
3500
+ }), /*#__PURE__*/jsxRuntime.jsx("clipPath", {
4854
3501
  id: clipPathId,
4855
- children: /*#__PURE__*/jsxRuntimeExports.jsx("rect", {
3502
+ children: /*#__PURE__*/jsxRuntime.jsx("rect", {
4856
3503
  x: -halfStrokeWidth,
4857
3504
  y: halfStrokeWidth * (isCustomShape ? -1 : 1),
4858
3505
  width: width + computedStrokeWidth,
@@ -4931,7 +3578,7 @@ function FloatingNode(props) {
4931
3578
  id
4932
3579
  } = props;
4933
3580
  const parentId = useFloatingParentNodeId();
4934
- return /*#__PURE__*/jsxRuntimeExports.jsx(FloatingNodeContext.Provider, {
3581
+ return /*#__PURE__*/jsxRuntime.jsx(FloatingNodeContext.Provider, {
4935
3582
  value: React__namespace.useMemo(() => ({
4936
3583
  id,
4937
3584
  parentId
@@ -4961,7 +3608,7 @@ function FloatingTree(props) {
4961
3608
  nodesRef.current = nodesRef.current.filter(n => n !== node);
4962
3609
  }, []);
4963
3610
  const [events] = React__namespace.useState(() => createEventEmitter());
4964
- return /*#__PURE__*/jsxRuntimeExports.jsx(FloatingTreeContext.Provider, {
3611
+ return /*#__PURE__*/jsxRuntime.jsx(FloatingTreeContext.Provider, {
4965
3612
  value: React__namespace.useMemo(() => ({
4966
3613
  nodesRef,
4967
3614
  addNode,
@@ -5158,7 +3805,7 @@ const FocusGuard = /*#__PURE__*/React__namespace.forwardRef(function FocusGuard(
5158
3805
  [createAttribute('focus-guard')]: '',
5159
3806
  style: HIDDEN_STYLES
5160
3807
  };
5161
- return /*#__PURE__*/jsxRuntimeExports.jsx("span", {
3808
+ return /*#__PURE__*/jsxRuntime.jsx("span", {
5162
3809
  ...props,
5163
3810
  ...restProps
5164
3811
  });
@@ -5297,7 +3944,7 @@ function FloatingPortal(props) {
5297
3944
  if (open) return;
5298
3945
  enableFocusInside(portalNode);
5299
3946
  }, [open, portalNode]);
5300
- return /*#__PURE__*/jsxRuntimeExports.jsxs(PortalContext.Provider, {
3947
+ return /*#__PURE__*/jsxRuntime.jsxs(PortalContext.Provider, {
5301
3948
  value: React__namespace.useMemo(() => ({
5302
3949
  preserveTabOrder,
5303
3950
  beforeOutsideRef,
@@ -5307,7 +3954,7 @@ function FloatingPortal(props) {
5307
3954
  portalNode,
5308
3955
  setFocusManagerState
5309
3956
  }), [preserveTabOrder, portalNode]),
5310
- children: [shouldRenderGuards && portalNode && /*#__PURE__*/jsxRuntimeExports.jsx(FocusGuard, {
3957
+ children: [shouldRenderGuards && portalNode && /*#__PURE__*/jsxRuntime.jsx(FocusGuard, {
5311
3958
  "data-type": "outside",
5312
3959
  ref: beforeOutsideRef,
5313
3960
  onFocus: event => {
@@ -5320,10 +3967,10 @@ function FloatingPortal(props) {
5320
3967
  prevTabbable == null || prevTabbable.focus();
5321
3968
  }
5322
3969
  }
5323
- }), shouldRenderGuards && portalNode && /*#__PURE__*/jsxRuntimeExports.jsx("span", {
3970
+ }), shouldRenderGuards && portalNode && /*#__PURE__*/jsxRuntime.jsx("span", {
5324
3971
  "aria-owns": portalNode.id,
5325
3972
  style: HIDDEN_STYLES
5326
- }), portalNode && /*#__PURE__*/ReactDOM__namespace.createPortal(children, portalNode), shouldRenderGuards && portalNode && /*#__PURE__*/jsxRuntimeExports.jsx(FocusGuard, {
3973
+ }), portalNode && /*#__PURE__*/ReactDOM__namespace.createPortal(children, portalNode), shouldRenderGuards && portalNode && /*#__PURE__*/jsxRuntime.jsx(FocusGuard, {
5327
3974
  "data-type": "outside",
5328
3975
  ref: afterOutsideRef,
5329
3976
  onFocus: event => {
@@ -5402,7 +4049,7 @@ function handleTabIndex(floatingFocusElement, orderRef) {
5402
4049
  }
5403
4050
  }
5404
4051
  const VisuallyHiddenDismiss = /*#__PURE__*/React__namespace.forwardRef(function VisuallyHiddenDismiss(props, ref) {
5405
- return /*#__PURE__*/jsxRuntimeExports.jsx("button", {
4052
+ return /*#__PURE__*/jsxRuntime.jsx("button", {
5406
4053
  ...props,
5407
4054
  type: "button",
5408
4055
  ref: ref,
@@ -5774,15 +4421,15 @@ function FloatingFocusManager(props) {
5774
4421
  if (disabled || !visuallyHiddenDismiss || !modal) {
5775
4422
  return null;
5776
4423
  }
5777
- return /*#__PURE__*/jsxRuntimeExports.jsx(VisuallyHiddenDismiss, {
4424
+ return /*#__PURE__*/jsxRuntime.jsx(VisuallyHiddenDismiss, {
5778
4425
  ref: location === 'start' ? startDismissButtonRef : endDismissButtonRef,
5779
4426
  onClick: event => onOpenChange(false, event.nativeEvent),
5780
4427
  children: typeof visuallyHiddenDismiss === 'string' ? visuallyHiddenDismiss : 'Dismiss'
5781
4428
  });
5782
4429
  }
5783
4430
  const shouldRenderGuards = !disabled && guards && (modal ? !isUntrappedTypeableCombobox : true) && (isInsidePortal || modal);
5784
- return /*#__PURE__*/jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
5785
- children: [shouldRenderGuards && /*#__PURE__*/jsxRuntimeExports.jsx(FocusGuard, {
4431
+ return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
4432
+ children: [shouldRenderGuards && /*#__PURE__*/jsxRuntime.jsx(FocusGuard, {
5786
4433
  "data-type": "inside",
5787
4434
  ref: mergedBeforeGuardRef,
5788
4435
  onFocus: event => {
@@ -5800,7 +4447,7 @@ function FloatingFocusManager(props) {
5800
4447
  }
5801
4448
  }
5802
4449
  }
5803
- }), !isUntrappedTypeableCombobox && renderDismissButton('start'), children, renderDismissButton('end'), shouldRenderGuards && /*#__PURE__*/jsxRuntimeExports.jsx(FocusGuard, {
4450
+ }), !isUntrappedTypeableCombobox && renderDismissButton('start'), children, renderDismissButton('end'), shouldRenderGuards && /*#__PURE__*/jsxRuntime.jsx(FocusGuard, {
5804
4451
  "data-type": "inside",
5805
4452
  ref: mergedAfterGuardRef,
5806
4453
  onFocus: event => {
@@ -5900,7 +4547,7 @@ const FloatingOverlay = /*#__PURE__*/React__namespace.forwardRef(function Floati
5900
4547
  }
5901
4548
  };
5902
4549
  }, [lockScroll]);
5903
- return /*#__PURE__*/jsxRuntimeExports.jsx("div", {
4550
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
5904
4551
  ref: ref,
5905
4552
  ...rest,
5906
4553
  style: {