@gravity-ui/navigation 4.0.16 → 4.0.18

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 (129) hide show
  1. package/build/cjs/components/AsideHeader/AsideHeader.js +2 -2
  2. package/build/cjs/components/AsideHeader/AsideHeader.js.map +1 -1
  3. package/build/cjs/components/AsideHeader/components/CompositeBar/HighlightedItem/HighlightedItem.js +2 -2
  4. package/build/cjs/components/AsideHeader/components/CompositeBar/HighlightedItem/HighlightedItem.js.map +1 -1
  5. package/build/cjs/components/AsideHeader/components/Panels.js +2 -2
  6. package/build/cjs/components/AsideHeader/components/Panels.js.map +1 -1
  7. package/build/cjs/components/AsideHeader/useAsideHeaderInnerContextValue.js +1 -0
  8. package/build/cjs/components/AsideHeader/useAsideHeaderInnerContextValue.js.map +1 -1
  9. package/build/cjs/components/Footer/MenuItem/MenuItem.js +2 -2
  10. package/build/cjs/components/Footer/MenuItem/MenuItem.js.map +1 -1
  11. package/build/cjs/components/HotkeysPanel/HotkeysPanel.js +5 -4
  12. package/build/cjs/components/HotkeysPanel/HotkeysPanel.js.map +1 -1
  13. package/build/cjs/components/Logo/Logo.js +2 -2
  14. package/build/cjs/components/Logo/Logo.js.map +1 -1
  15. package/build/cjs/components/MobileHeader/MobileHeader.js +2 -2
  16. package/build/cjs/components/MobileHeader/MobileHeader.js.map +1 -1
  17. package/build/cjs/components/Settings/Settings.js +4 -4
  18. package/build/cjs/components/Settings/Settings.js.map +1 -1
  19. package/build/cjs/components/Settings/SettingsSearch/AllResultsPage.js +2 -2
  20. package/build/cjs/components/Settings/SettingsSearch/AllResultsPage.js.map +1 -1
  21. package/build/cjs/components/Settings/SettingsSearch/SettingsSearch.js +3 -3
  22. package/build/cjs/components/Settings/SettingsSearch/SettingsSearch.js.map +1 -1
  23. package/build/cjs/components/Settings/SettingsSection.js +2 -2
  24. package/build/cjs/components/Settings/SettingsSection.js.map +1 -1
  25. package/build/cjs/components/TopAlert/useTopAlertHeight.js +2 -2
  26. package/build/cjs/components/TopAlert/useTopAlertHeight.js.map +1 -1
  27. package/build/cjs/hooks/useOverflowingHorizontalListItems/useOverflowingHorizontalListItems.js +2 -2
  28. package/build/cjs/hooks/useOverflowingHorizontalListItems/useOverflowingHorizontalListItems.js.map +1 -1
  29. package/build/esm/components/AsideHeader/AsideHeader.js +1 -1
  30. package/build/esm/components/AsideHeader/components/CompositeBar/HighlightedItem/HighlightedItem.js +1 -1
  31. package/build/esm/components/AsideHeader/components/Panels.js +1 -1
  32. package/build/esm/components/AsideHeader/useAsideHeaderInnerContextValue.js +1 -0
  33. package/build/esm/components/AsideHeader/useAsideHeaderInnerContextValue.js.map +1 -1
  34. package/build/esm/components/Footer/MenuItem/MenuItem.js +1 -1
  35. package/build/esm/components/HotkeysPanel/HotkeysPanel.js +5 -4
  36. package/build/esm/components/HotkeysPanel/HotkeysPanel.js.map +1 -1
  37. package/build/esm/components/Logo/Logo.js +1 -1
  38. package/build/esm/components/MobileHeader/MobileHeader.js +1 -1
  39. package/build/esm/components/Settings/Settings.js +2 -2
  40. package/build/esm/components/Settings/SettingsSearch/AllResultsPage.js +1 -1
  41. package/build/esm/components/Settings/SettingsSearch/SettingsSearch.js +1 -1
  42. package/build/esm/components/Settings/SettingsSection.js +1 -1
  43. package/build/esm/components/TopAlert/useTopAlertHeight.js +1 -1
  44. package/build/esm/hooks/useOverflowingHorizontalListItems/useOverflowingHorizontalListItems.js +1 -1
  45. package/package.json +4 -2
  46. package/build/cjs/_virtual/_commonjsHelpers.js +0 -11
  47. package/build/cjs/_virtual/_commonjsHelpers.js.map +0 -1
  48. package/build/cjs/_virtual/debounce.js +0 -12
  49. package/build/cjs/_virtual/debounce.js.map +0 -1
  50. package/build/cjs/_virtual/identity.js +0 -12
  51. package/build/cjs/_virtual/identity.js.map +0 -1
  52. package/build/cjs/_virtual/last.js +0 -12
  53. package/build/cjs/_virtual/last.js.map +0 -1
  54. package/build/cjs/node_modules/lodash/_Symbol.js +0 -21
  55. package/build/cjs/node_modules/lodash/_Symbol.js.map +0 -1
  56. package/build/cjs/node_modules/lodash/_baseGetTag.js +0 -45
  57. package/build/cjs/node_modules/lodash/_baseGetTag.js.map +0 -1
  58. package/build/cjs/node_modules/lodash/_baseTrim.js +0 -34
  59. package/build/cjs/node_modules/lodash/_baseTrim.js.map +0 -1
  60. package/build/cjs/node_modules/lodash/_freeGlobal.js +0 -20
  61. package/build/cjs/node_modules/lodash/_freeGlobal.js.map +0 -1
  62. package/build/cjs/node_modules/lodash/_getRawTag.js +0 -61
  63. package/build/cjs/node_modules/lodash/_getRawTag.js.map +0 -1
  64. package/build/cjs/node_modules/lodash/_objectToString.js +0 -36
  65. package/build/cjs/node_modules/lodash/_objectToString.js.map +0 -1
  66. package/build/cjs/node_modules/lodash/_root.js +0 -24
  67. package/build/cjs/node_modules/lodash/_root.js.map +0 -1
  68. package/build/cjs/node_modules/lodash/_trimmedEndIndex.js +0 -33
  69. package/build/cjs/node_modules/lodash/_trimmedEndIndex.js.map +0 -1
  70. package/build/cjs/node_modules/lodash/debounce.js +0 -208
  71. package/build/cjs/node_modules/lodash/debounce.js.map +0 -1
  72. package/build/cjs/node_modules/lodash/identity.js +0 -35
  73. package/build/cjs/node_modules/lodash/identity.js.map +0 -1
  74. package/build/cjs/node_modules/lodash/isObject.js +0 -45
  75. package/build/cjs/node_modules/lodash/isObject.js.map +0 -1
  76. package/build/cjs/node_modules/lodash/isObjectLike.js +0 -43
  77. package/build/cjs/node_modules/lodash/isObjectLike.js.map +0 -1
  78. package/build/cjs/node_modules/lodash/isSymbol.js +0 -45
  79. package/build/cjs/node_modules/lodash/isSymbol.js.map +0 -1
  80. package/build/cjs/node_modules/lodash/last.js +0 -34
  81. package/build/cjs/node_modules/lodash/last.js.map +0 -1
  82. package/build/cjs/node_modules/lodash/now.js +0 -38
  83. package/build/cjs/node_modules/lodash/now.js.map +0 -1
  84. package/build/cjs/node_modules/lodash/toNumber.js +0 -81
  85. package/build/cjs/node_modules/lodash/toNumber.js.map +0 -1
  86. package/build/cjs/node_modules/tslib/tslib.es6.js +0 -38
  87. package/build/cjs/node_modules/tslib/tslib.es6.js.map +0 -1
  88. package/build/esm/_virtual/_commonjsHelpers.js +0 -8
  89. package/build/esm/_virtual/_commonjsHelpers.js.map +0 -1
  90. package/build/esm/_virtual/debounce.js +0 -8
  91. package/build/esm/_virtual/debounce.js.map +0 -1
  92. package/build/esm/_virtual/identity.js +0 -8
  93. package/build/esm/_virtual/identity.js.map +0 -1
  94. package/build/esm/_virtual/last.js +0 -8
  95. package/build/esm/_virtual/last.js.map +0 -1
  96. package/build/esm/node_modules/lodash/_Symbol.js +0 -19
  97. package/build/esm/node_modules/lodash/_Symbol.js.map +0 -1
  98. package/build/esm/node_modules/lodash/_baseGetTag.js +0 -43
  99. package/build/esm/node_modules/lodash/_baseGetTag.js.map +0 -1
  100. package/build/esm/node_modules/lodash/_baseTrim.js +0 -32
  101. package/build/esm/node_modules/lodash/_baseTrim.js.map +0 -1
  102. package/build/esm/node_modules/lodash/_freeGlobal.js +0 -18
  103. package/build/esm/node_modules/lodash/_freeGlobal.js.map +0 -1
  104. package/build/esm/node_modules/lodash/_getRawTag.js +0 -59
  105. package/build/esm/node_modules/lodash/_getRawTag.js.map +0 -1
  106. package/build/esm/node_modules/lodash/_objectToString.js +0 -34
  107. package/build/esm/node_modules/lodash/_objectToString.js.map +0 -1
  108. package/build/esm/node_modules/lodash/_root.js +0 -22
  109. package/build/esm/node_modules/lodash/_root.js.map +0 -1
  110. package/build/esm/node_modules/lodash/_trimmedEndIndex.js +0 -31
  111. package/build/esm/node_modules/lodash/_trimmedEndIndex.js.map +0 -1
  112. package/build/esm/node_modules/lodash/debounce.js +0 -206
  113. package/build/esm/node_modules/lodash/debounce.js.map +0 -1
  114. package/build/esm/node_modules/lodash/identity.js +0 -33
  115. package/build/esm/node_modules/lodash/identity.js.map +0 -1
  116. package/build/esm/node_modules/lodash/isObject.js +0 -43
  117. package/build/esm/node_modules/lodash/isObject.js.map +0 -1
  118. package/build/esm/node_modules/lodash/isObjectLike.js +0 -41
  119. package/build/esm/node_modules/lodash/isObjectLike.js.map +0 -1
  120. package/build/esm/node_modules/lodash/isSymbol.js +0 -43
  121. package/build/esm/node_modules/lodash/isSymbol.js.map +0 -1
  122. package/build/esm/node_modules/lodash/last.js +0 -32
  123. package/build/esm/node_modules/lodash/last.js.map +0 -1
  124. package/build/esm/node_modules/lodash/now.js +0 -36
  125. package/build/esm/node_modules/lodash/now.js.map +0 -1
  126. package/build/esm/node_modules/lodash/toNumber.js +0 -79
  127. package/build/esm/node_modules/lodash/toNumber.js.map +0 -1
  128. package/build/esm/node_modules/tslib/tslib.es6.js +0 -36
  129. package/build/esm/node_modules/tslib/tslib.es6.js.map +0 -1
@@ -1,206 +0,0 @@
1
- import { __require as requireIsObject } from './isObject.js';
2
- import { __require as requireNow } from './now.js';
3
- import { __require as requireToNumber } from './toNumber.js';
4
-
5
- var debounce_1;
6
- var hasRequiredDebounce;
7
-
8
- function requireDebounce () {
9
- if (hasRequiredDebounce) return debounce_1;
10
- hasRequiredDebounce = 1;
11
- var isObject = requireIsObject(),
12
- now = requireNow(),
13
- toNumber = requireToNumber();
14
-
15
- /** Error message constants. */
16
- var FUNC_ERROR_TEXT = 'Expected a function';
17
-
18
- /* Built-in method references for those with the same name as other `lodash` methods. */
19
- var nativeMax = Math.max,
20
- nativeMin = Math.min;
21
-
22
- /**
23
- * Creates a debounced function that delays invoking `func` until after `wait`
24
- * milliseconds have elapsed since the last time the debounced function was
25
- * invoked. The debounced function comes with a `cancel` method to cancel
26
- * delayed `func` invocations and a `flush` method to immediately invoke them.
27
- * Provide `options` to indicate whether `func` should be invoked on the
28
- * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
29
- * with the last arguments provided to the debounced function. Subsequent
30
- * calls to the debounced function return the result of the last `func`
31
- * invocation.
32
- *
33
- * **Note:** If `leading` and `trailing` options are `true`, `func` is
34
- * invoked on the trailing edge of the timeout only if the debounced function
35
- * is invoked more than once during the `wait` timeout.
36
- *
37
- * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
38
- * until to the next tick, similar to `setTimeout` with a timeout of `0`.
39
- *
40
- * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
41
- * for details over the differences between `_.debounce` and `_.throttle`.
42
- *
43
- * @static
44
- * @memberOf _
45
- * @since 0.1.0
46
- * @category Function
47
- * @param {Function} func The function to debounce.
48
- * @param {number} [wait=0] The number of milliseconds to delay.
49
- * @param {Object} [options={}] The options object.
50
- * @param {boolean} [options.leading=false]
51
- * Specify invoking on the leading edge of the timeout.
52
- * @param {number} [options.maxWait]
53
- * The maximum time `func` is allowed to be delayed before it's invoked.
54
- * @param {boolean} [options.trailing=true]
55
- * Specify invoking on the trailing edge of the timeout.
56
- * @returns {Function} Returns the new debounced function.
57
- * @example
58
- *
59
- * // Avoid costly calculations while the window size is in flux.
60
- * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
61
- *
62
- * // Invoke `sendMail` when clicked, debouncing subsequent calls.
63
- * jQuery(element).on('click', _.debounce(sendMail, 300, {
64
- * 'leading': true,
65
- * 'trailing': false
66
- * }));
67
- *
68
- * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
69
- * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
70
- * var source = new EventSource('/stream');
71
- * jQuery(source).on('message', debounced);
72
- *
73
- * // Cancel the trailing debounced invocation.
74
- * jQuery(window).on('popstate', debounced.cancel);
75
- */
76
- function debounce(func, wait, options) {
77
- var lastArgs,
78
- lastThis,
79
- maxWait,
80
- result,
81
- timerId,
82
- lastCallTime,
83
- lastInvokeTime = 0,
84
- leading = false,
85
- maxing = false,
86
- trailing = true;
87
-
88
- if (typeof func != 'function') {
89
- throw new TypeError(FUNC_ERROR_TEXT);
90
- }
91
- wait = toNumber(wait) || 0;
92
- if (isObject(options)) {
93
- leading = !!options.leading;
94
- maxing = 'maxWait' in options;
95
- maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
96
- trailing = 'trailing' in options ? !!options.trailing : trailing;
97
- }
98
-
99
- function invokeFunc(time) {
100
- var args = lastArgs,
101
- thisArg = lastThis;
102
-
103
- lastArgs = lastThis = undefined;
104
- lastInvokeTime = time;
105
- result = func.apply(thisArg, args);
106
- return result;
107
- }
108
-
109
- function leadingEdge(time) {
110
- // Reset any `maxWait` timer.
111
- lastInvokeTime = time;
112
- // Start the timer for the trailing edge.
113
- timerId = setTimeout(timerExpired, wait);
114
- // Invoke the leading edge.
115
- return leading ? invokeFunc(time) : result;
116
- }
117
-
118
- function remainingWait(time) {
119
- var timeSinceLastCall = time - lastCallTime,
120
- timeSinceLastInvoke = time - lastInvokeTime,
121
- timeWaiting = wait - timeSinceLastCall;
122
-
123
- return maxing
124
- ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
125
- : timeWaiting;
126
- }
127
-
128
- function shouldInvoke(time) {
129
- var timeSinceLastCall = time - lastCallTime,
130
- timeSinceLastInvoke = time - lastInvokeTime;
131
-
132
- // Either this is the first call, activity has stopped and we're at the
133
- // trailing edge, the system time has gone backwards and we're treating
134
- // it as the trailing edge, or we've hit the `maxWait` limit.
135
- return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
136
- (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
137
- }
138
-
139
- function timerExpired() {
140
- var time = now();
141
- if (shouldInvoke(time)) {
142
- return trailingEdge(time);
143
- }
144
- // Restart the timer.
145
- timerId = setTimeout(timerExpired, remainingWait(time));
146
- }
147
-
148
- function trailingEdge(time) {
149
- timerId = undefined;
150
-
151
- // Only invoke if we have `lastArgs` which means `func` has been
152
- // debounced at least once.
153
- if (trailing && lastArgs) {
154
- return invokeFunc(time);
155
- }
156
- lastArgs = lastThis = undefined;
157
- return result;
158
- }
159
-
160
- function cancel() {
161
- if (timerId !== undefined) {
162
- clearTimeout(timerId);
163
- }
164
- lastInvokeTime = 0;
165
- lastArgs = lastCallTime = lastThis = timerId = undefined;
166
- }
167
-
168
- function flush() {
169
- return timerId === undefined ? result : trailingEdge(now());
170
- }
171
-
172
- function debounced() {
173
- var time = now(),
174
- isInvoking = shouldInvoke(time);
175
-
176
- lastArgs = arguments;
177
- lastThis = this;
178
- lastCallTime = time;
179
-
180
- if (isInvoking) {
181
- if (timerId === undefined) {
182
- return leadingEdge(lastCallTime);
183
- }
184
- if (maxing) {
185
- // Handle invocations in a tight loop.
186
- clearTimeout(timerId);
187
- timerId = setTimeout(timerExpired, wait);
188
- return invokeFunc(lastCallTime);
189
- }
190
- }
191
- if (timerId === undefined) {
192
- timerId = setTimeout(timerExpired, wait);
193
- }
194
- return result;
195
- }
196
- debounced.cancel = cancel;
197
- debounced.flush = flush;
198
- return debounced;
199
- }
200
-
201
- debounce_1 = debounce;
202
- return debounce_1;
203
- }
204
-
205
- export { requireDebounce as __require };
206
- //# sourceMappingURL=debounce.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"debounce.js","sources":["../../../../node_modules/lodash/debounce.js"],"sourcesContent":["var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\n"],"names":["require$$0","require$$1","require$$2"],"mappings":";;;;;;;;;;CAAA,IAAI,QAAQ,GAAGA,eAAqB,EAAA;KAChC,GAAG,GAAGC,UAAgB,EAAA;KACtB,QAAQ,GAAGC,eAAqB,EAAA;;AAEpC;CACA,IAAI,eAAe,GAAG,qBAAqB;;AAE3C;AACA,CAAA,IAAI,SAAS,GAAG,IAAI,CAAC,GAAG;AACxB,KAAI,SAAS,GAAG,IAAI,CAAC,GAAG;;AAExB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAA,SAAS,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE;AACvC,GAAE,IAAI,QAAQ;AACd,OAAM,QAAQ;AACd,OAAM,OAAO;AACb,OAAM,MAAM;AACZ,OAAM,OAAO;AACb,OAAM,YAAY;OACZ,cAAc,GAAG,CAAC;OAClB,OAAO,GAAG,KAAK;OACf,MAAM,GAAG,KAAK;OACd,QAAQ,GAAG,IAAI;;AAErB,GAAE,IAAI,OAAO,IAAI,IAAI,UAAU,EAAE;AACjC,KAAI,MAAM,IAAI,SAAS,CAAC,eAAe,CAAC;AACxC;AACA,GAAE,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC;AAC5B,GAAE,IAAI,QAAQ,CAAC,OAAO,CAAC,EAAE;AACzB,KAAI,OAAO,GAAG,CAAC,CAAC,OAAO,CAAC,OAAO;AAC/B,KAAI,MAAM,GAAG,SAAS,IAAI,OAAO;AACjC,KAAI,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,GAAG,OAAO;AAChF,KAAI,QAAQ,GAAG,UAAU,IAAI,OAAO,GAAG,CAAC,CAAC,OAAO,CAAC,QAAQ,GAAG,QAAQ;AACpE;;AAEA,GAAE,SAAS,UAAU,CAAC,IAAI,EAAE;KACxB,IAAI,IAAI,GAAG,QAAQ;SACf,OAAO,GAAG,QAAQ;;AAE1B,KAAI,QAAQ,GAAG,QAAQ,GAAG,SAAS;KAC/B,cAAc,GAAG,IAAI;KACrB,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC;AACtC,KAAI,OAAO,MAAM;AACjB;;AAEA,GAAE,SAAS,WAAW,CAAC,IAAI,EAAE;AAC7B;KACI,cAAc,GAAG,IAAI;AACzB;AACA,KAAI,OAAO,GAAG,UAAU,CAAC,YAAY,EAAE,IAAI,CAAC;AAC5C;KACI,OAAO,OAAO,GAAG,UAAU,CAAC,IAAI,CAAC,GAAG,MAAM;AAC9C;;AAEA,GAAE,SAAS,aAAa,CAAC,IAAI,EAAE;AAC/B,KAAI,IAAI,iBAAiB,GAAG,IAAI,GAAG,YAAY;AAC/C,SAAQ,mBAAmB,GAAG,IAAI,GAAG,cAAc;AACnD,SAAQ,WAAW,GAAG,IAAI,GAAG,iBAAiB;;AAE9C,KAAI,OAAO;AACX,SAAQ,SAAS,CAAC,WAAW,EAAE,OAAO,GAAG,mBAAmB;AAC5D,SAAQ,WAAW;AACnB;;AAEA,GAAE,SAAS,YAAY,CAAC,IAAI,EAAE;AAC9B,KAAI,IAAI,iBAAiB,GAAG,IAAI,GAAG,YAAY;AAC/C,SAAQ,mBAAmB,GAAG,IAAI,GAAG,cAAc;;AAEnD;AACA;AACA;KACI,QAAQ,YAAY,KAAK,SAAS,KAAK,iBAAiB,IAAI,IAAI,CAAC;QAC9D,iBAAiB,GAAG,CAAC,CAAC,KAAK,MAAM,IAAI,mBAAmB,IAAI,OAAO,CAAC;AAC3E;;GAEE,SAAS,YAAY,GAAG;AAC1B,KAAI,IAAI,IAAI,GAAG,GAAG,EAAE;AACpB,KAAI,IAAI,YAAY,CAAC,IAAI,CAAC,EAAE;AAC5B,OAAM,OAAO,YAAY,CAAC,IAAI,CAAC;AAC/B;AACA;KACI,OAAO,GAAG,UAAU,CAAC,YAAY,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC;AAC3D;;AAEA,GAAE,SAAS,YAAY,CAAC,IAAI,EAAE;KAC1B,OAAO,GAAG,SAAS;;AAEvB;AACA;AACA,KAAI,IAAI,QAAQ,IAAI,QAAQ,EAAE;AAC9B,OAAM,OAAO,UAAU,CAAC,IAAI,CAAC;AAC7B;AACA,KAAI,QAAQ,GAAG,QAAQ,GAAG,SAAS;AACnC,KAAI,OAAO,MAAM;AACjB;;GAEE,SAAS,MAAM,GAAG;AACpB,KAAI,IAAI,OAAO,KAAK,SAAS,EAAE;OACzB,YAAY,CAAC,OAAO,CAAC;AAC3B;KACI,cAAc,GAAG,CAAC;KAClB,QAAQ,GAAG,YAAY,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS;AAC5D;;GAEE,SAAS,KAAK,GAAG;KACf,OAAO,OAAO,KAAK,SAAS,GAAG,MAAM,GAAG,YAAY,CAAC,GAAG,EAAE,CAAC;AAC/D;;GAEE,SAAS,SAAS,GAAG;AACvB,KAAI,IAAI,IAAI,GAAG,GAAG,EAAE;AACpB,SAAQ,UAAU,GAAG,YAAY,CAAC,IAAI,CAAC;;KAEnC,QAAQ,GAAG,SAAS;KACpB,QAAQ,GAAG,IAAI;KACf,YAAY,GAAG,IAAI;;KAEnB,IAAI,UAAU,EAAE;AACpB,OAAM,IAAI,OAAO,KAAK,SAAS,EAAE;AACjC,SAAQ,OAAO,WAAW,CAAC,YAAY,CAAC;AACxC;OACM,IAAI,MAAM,EAAE;AAClB;SACQ,YAAY,CAAC,OAAO,CAAC;AAC7B,SAAQ,OAAO,GAAG,UAAU,CAAC,YAAY,EAAE,IAAI,CAAC;AAChD,SAAQ,OAAO,UAAU,CAAC,YAAY,CAAC;AACvC;AACA;AACA,KAAI,IAAI,OAAO,KAAK,SAAS,EAAE;AAC/B,OAAM,OAAO,GAAG,UAAU,CAAC,YAAY,EAAE,IAAI,CAAC;AAC9C;AACA,KAAI,OAAO,MAAM;AACjB;AACA,GAAE,SAAS,CAAC,MAAM,GAAG,MAAM;AAC3B,GAAE,SAAS,CAAC,KAAK,GAAG,KAAK;AACzB,GAAE,OAAO,SAAS;AAClB;;AAEA,CAAA,UAAc,GAAG,QAAQ;;;;;;","x_google_ignoreList":[0]}
@@ -1,33 +0,0 @@
1
- /**
2
- * This method returns the first argument it receives.
3
- *
4
- * @static
5
- * @since 0.1.0
6
- * @memberOf _
7
- * @category Util
8
- * @param {*} value Any value.
9
- * @returns {*} Returns `value`.
10
- * @example
11
- *
12
- * var object = { 'a': 1 };
13
- *
14
- * console.log(_.identity(object) === object);
15
- * // => true
16
- */
17
-
18
- var identity_1;
19
- var hasRequiredIdentity;
20
-
21
- function requireIdentity () {
22
- if (hasRequiredIdentity) return identity_1;
23
- hasRequiredIdentity = 1;
24
- function identity(value) {
25
- return value;
26
- }
27
-
28
- identity_1 = identity;
29
- return identity_1;
30
- }
31
-
32
- export { requireIdentity as __require };
33
- //# sourceMappingURL=identity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"identity.js","sources":["../../../../node_modules/lodash/identity.js"],"sourcesContent":["/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\nmodule.exports = identity;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;CAgBA,SAAS,QAAQ,CAAC,KAAK,EAAE;AACzB,GAAE,OAAO,KAAK;AACd;;AAEA,CAAA,UAAc,GAAG,QAAQ;;;;;;","x_google_ignoreList":[0]}
@@ -1,43 +0,0 @@
1
- /**
2
- * Checks if `value` is the
3
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
4
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
5
- *
6
- * @static
7
- * @memberOf _
8
- * @since 0.1.0
9
- * @category Lang
10
- * @param {*} value The value to check.
11
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
12
- * @example
13
- *
14
- * _.isObject({});
15
- * // => true
16
- *
17
- * _.isObject([1, 2, 3]);
18
- * // => true
19
- *
20
- * _.isObject(_.noop);
21
- * // => true
22
- *
23
- * _.isObject(null);
24
- * // => false
25
- */
26
-
27
- var isObject_1;
28
- var hasRequiredIsObject;
29
-
30
- function requireIsObject () {
31
- if (hasRequiredIsObject) return isObject_1;
32
- hasRequiredIsObject = 1;
33
- function isObject(value) {
34
- var type = typeof value;
35
- return value != null && (type == 'object' || type == 'function');
36
- }
37
-
38
- isObject_1 = isObject;
39
- return isObject_1;
40
- }
41
-
42
- export { requireIsObject as __require };
43
- //# sourceMappingURL=isObject.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isObject.js","sources":["../../../../node_modules/lodash/isObject.js"],"sourcesContent":["/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyBA,SAAS,QAAQ,CAAC,KAAK,EAAE;AACzB,GAAE,IAAI,IAAI,GAAG,OAAO,KAAK;AACzB,GAAE,OAAO,KAAK,IAAI,IAAI,KAAK,IAAI,IAAI,QAAQ,IAAI,IAAI,IAAI,UAAU,CAAC;AAClE;;AAEA,CAAA,UAAc,GAAG,QAAQ;;;;;;","x_google_ignoreList":[0]}
@@ -1,41 +0,0 @@
1
- /**
2
- * Checks if `value` is object-like. A value is object-like if it's not `null`
3
- * and has a `typeof` result of "object".
4
- *
5
- * @static
6
- * @memberOf _
7
- * @since 4.0.0
8
- * @category Lang
9
- * @param {*} value The value to check.
10
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
11
- * @example
12
- *
13
- * _.isObjectLike({});
14
- * // => true
15
- *
16
- * _.isObjectLike([1, 2, 3]);
17
- * // => true
18
- *
19
- * _.isObjectLike(_.noop);
20
- * // => false
21
- *
22
- * _.isObjectLike(null);
23
- * // => false
24
- */
25
-
26
- var isObjectLike_1;
27
- var hasRequiredIsObjectLike;
28
-
29
- function requireIsObjectLike () {
30
- if (hasRequiredIsObjectLike) return isObjectLike_1;
31
- hasRequiredIsObjectLike = 1;
32
- function isObjectLike(value) {
33
- return value != null && typeof value == 'object';
34
- }
35
-
36
- isObjectLike_1 = isObjectLike;
37
- return isObjectLike_1;
38
- }
39
-
40
- export { requireIsObjectLike as __require };
41
- //# sourceMappingURL=isObjectLike.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isObjectLike.js","sources":["../../../../node_modules/lodash/isObjectLike.js"],"sourcesContent":["/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwBA,SAAS,YAAY,CAAC,KAAK,EAAE;GAC3B,OAAO,KAAK,IAAI,IAAI,IAAI,OAAO,KAAK,IAAI,QAAQ;AAClD;;AAEA,CAAA,cAAc,GAAG,YAAY;;;;;;","x_google_ignoreList":[0]}
@@ -1,43 +0,0 @@
1
- import { __require as require_baseGetTag } from './_baseGetTag.js';
2
- import { __require as requireIsObjectLike } from './isObjectLike.js';
3
-
4
- var isSymbol_1;
5
- var hasRequiredIsSymbol;
6
-
7
- function requireIsSymbol () {
8
- if (hasRequiredIsSymbol) return isSymbol_1;
9
- hasRequiredIsSymbol = 1;
10
- var baseGetTag = require_baseGetTag(),
11
- isObjectLike = requireIsObjectLike();
12
-
13
- /** `Object#toString` result references. */
14
- var symbolTag = '[object Symbol]';
15
-
16
- /**
17
- * Checks if `value` is classified as a `Symbol` primitive or object.
18
- *
19
- * @static
20
- * @memberOf _
21
- * @since 4.0.0
22
- * @category Lang
23
- * @param {*} value The value to check.
24
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
25
- * @example
26
- *
27
- * _.isSymbol(Symbol.iterator);
28
- * // => true
29
- *
30
- * _.isSymbol('abc');
31
- * // => false
32
- */
33
- function isSymbol(value) {
34
- return typeof value == 'symbol' ||
35
- (isObjectLike(value) && baseGetTag(value) == symbolTag);
36
- }
37
-
38
- isSymbol_1 = isSymbol;
39
- return isSymbol_1;
40
- }
41
-
42
- export { requireIsSymbol as __require };
43
- //# sourceMappingURL=isSymbol.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isSymbol.js","sources":["../../../../node_modules/lodash/isSymbol.js"],"sourcesContent":["var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n"],"names":["require$$0","require$$1"],"mappings":";;;;;;;;;CAAA,IAAI,UAAU,GAAGA,kBAAwB,EAAA;KACrC,YAAY,GAAGC,mBAAyB,EAAA;;AAE5C;CACA,IAAI,SAAS,GAAG,iBAAiB;;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;CACA,SAAS,QAAQ,CAAC,KAAK,EAAE;AACzB,GAAE,OAAO,OAAO,KAAK,IAAI,QAAQ;MAC5B,YAAY,CAAC,KAAK,CAAC,IAAI,UAAU,CAAC,KAAK,CAAC,IAAI,SAAS,CAAC;AAC3D;;AAEA,CAAA,UAAc,GAAG,QAAQ;;;;;;","x_google_ignoreList":[0]}
@@ -1,32 +0,0 @@
1
- /**
2
- * Gets the last element of `array`.
3
- *
4
- * @static
5
- * @memberOf _
6
- * @since 0.1.0
7
- * @category Array
8
- * @param {Array} array The array to query.
9
- * @returns {*} Returns the last element of `array`.
10
- * @example
11
- *
12
- * _.last([1, 2, 3]);
13
- * // => 3
14
- */
15
-
16
- var last_1;
17
- var hasRequiredLast;
18
-
19
- function requireLast () {
20
- if (hasRequiredLast) return last_1;
21
- hasRequiredLast = 1;
22
- function last(array) {
23
- var length = array == null ? 0 : array.length;
24
- return length ? array[length - 1] : undefined;
25
- }
26
-
27
- last_1 = last;
28
- return last_1;
29
- }
30
-
31
- export { requireLast as __require };
32
- //# sourceMappingURL=last.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"last.js","sources":["../../../../node_modules/lodash/last.js"],"sourcesContent":["/**\n * Gets the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the last element of `array`.\n * @example\n *\n * _.last([1, 2, 3]);\n * // => 3\n */\nfunction last(array) {\n var length = array == null ? 0 : array.length;\n return length ? array[length - 1] : undefined;\n}\n\nmodule.exports = last;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;CAcA,SAAS,IAAI,CAAC,KAAK,EAAE;GACnB,IAAI,MAAM,GAAG,KAAK,IAAI,IAAI,GAAG,CAAC,GAAG,KAAK,CAAC,MAAM;GAC7C,OAAO,MAAM,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,SAAS;AAC/C;;AAEA,CAAA,MAAc,GAAG,IAAI;;;;;;","x_google_ignoreList":[0]}
@@ -1,36 +0,0 @@
1
- import { __require as require_root } from './_root.js';
2
-
3
- var now_1;
4
- var hasRequiredNow;
5
-
6
- function requireNow () {
7
- if (hasRequiredNow) return now_1;
8
- hasRequiredNow = 1;
9
- var root = require_root();
10
-
11
- /**
12
- * Gets the timestamp of the number of milliseconds that have elapsed since
13
- * the Unix epoch (1 January 1970 00:00:00 UTC).
14
- *
15
- * @static
16
- * @memberOf _
17
- * @since 2.4.0
18
- * @category Date
19
- * @returns {number} Returns the timestamp.
20
- * @example
21
- *
22
- * _.defer(function(stamp) {
23
- * console.log(_.now() - stamp);
24
- * }, _.now());
25
- * // => Logs the number of milliseconds it took for the deferred invocation.
26
- */
27
- var now = function() {
28
- return root.Date.now();
29
- };
30
-
31
- now_1 = now;
32
- return now_1;
33
- }
34
-
35
- export { requireNow as __require };
36
- //# sourceMappingURL=now.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"now.js","sources":["../../../../node_modules/lodash/now.js"],"sourcesContent":["var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n"],"names":["require$$0"],"mappings":";;;;;;;;CAAA,IAAI,IAAI,GAAGA,YAAkB,EAAA;;AAE7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;CACA,IAAI,GAAG,GAAG,WAAW;AACrB,GAAE,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;EACvB;;AAED,CAAA,KAAc,GAAG,GAAG;;;;;;","x_google_ignoreList":[0]}
@@ -1,79 +0,0 @@
1
- import { __require as require_baseTrim } from './_baseTrim.js';
2
- import { __require as requireIsObject } from './isObject.js';
3
- import { __require as requireIsSymbol } from './isSymbol.js';
4
-
5
- var toNumber_1;
6
- var hasRequiredToNumber;
7
-
8
- function requireToNumber () {
9
- if (hasRequiredToNumber) return toNumber_1;
10
- hasRequiredToNumber = 1;
11
- var baseTrim = require_baseTrim(),
12
- isObject = requireIsObject(),
13
- isSymbol = requireIsSymbol();
14
-
15
- /** Used as references for various `Number` constants. */
16
- var NAN = 0 / 0;
17
-
18
- /** Used to detect bad signed hexadecimal string values. */
19
- var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
20
-
21
- /** Used to detect binary string values. */
22
- var reIsBinary = /^0b[01]+$/i;
23
-
24
- /** Used to detect octal string values. */
25
- var reIsOctal = /^0o[0-7]+$/i;
26
-
27
- /** Built-in method references without a dependency on `root`. */
28
- var freeParseInt = parseInt;
29
-
30
- /**
31
- * Converts `value` to a number.
32
- *
33
- * @static
34
- * @memberOf _
35
- * @since 4.0.0
36
- * @category Lang
37
- * @param {*} value The value to process.
38
- * @returns {number} Returns the number.
39
- * @example
40
- *
41
- * _.toNumber(3.2);
42
- * // => 3.2
43
- *
44
- * _.toNumber(Number.MIN_VALUE);
45
- * // => 5e-324
46
- *
47
- * _.toNumber(Infinity);
48
- * // => Infinity
49
- *
50
- * _.toNumber('3.2');
51
- * // => 3.2
52
- */
53
- function toNumber(value) {
54
- if (typeof value == 'number') {
55
- return value;
56
- }
57
- if (isSymbol(value)) {
58
- return NAN;
59
- }
60
- if (isObject(value)) {
61
- var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
62
- value = isObject(other) ? (other + '') : other;
63
- }
64
- if (typeof value != 'string') {
65
- return value === 0 ? value : +value;
66
- }
67
- value = baseTrim(value);
68
- var isBinary = reIsBinary.test(value);
69
- return (isBinary || reIsOctal.test(value))
70
- ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
71
- : (reIsBadHex.test(value) ? NAN : +value);
72
- }
73
-
74
- toNumber_1 = toNumber;
75
- return toNumber_1;
76
- }
77
-
78
- export { requireToNumber as __require };
79
- //# sourceMappingURL=toNumber.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"toNumber.js","sources":["../../../../node_modules/lodash/toNumber.js"],"sourcesContent":["var baseTrim = require('./_baseTrim'),\n isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n"],"names":["require$$0","require$$1","require$$2"],"mappings":";;;;;;;;;;CAAA,IAAI,QAAQ,GAAGA,gBAAsB,EAAA;KACjC,QAAQ,GAAGC,eAAqB,EAAA;KAChC,QAAQ,GAAGC,eAAqB,EAAA;;AAEpC;AACA,CAAA,IAAI,GAAG,GAAG,CAAC,GAAG,CAAC;;AAEf;CACA,IAAI,UAAU,GAAG,oBAAoB;;AAErC;CACA,IAAI,UAAU,GAAG,YAAY;;AAE7B;CACA,IAAI,SAAS,GAAG,aAAa;;AAE7B;CACA,IAAI,YAAY,GAAG,QAAQ;;AAE3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;CACA,SAAS,QAAQ,CAAC,KAAK,EAAE;AACzB,GAAE,IAAI,OAAO,KAAK,IAAI,QAAQ,EAAE;AAChC,KAAI,OAAO,KAAK;AAChB;AACA,GAAE,IAAI,QAAQ,CAAC,KAAK,CAAC,EAAE;AACvB,KAAI,OAAO,GAAG;AACd;AACA,GAAE,IAAI,QAAQ,CAAC,KAAK,CAAC,EAAE;AACvB,KAAI,IAAI,KAAK,GAAG,OAAO,KAAK,CAAC,OAAO,IAAI,UAAU,GAAG,KAAK,CAAC,OAAO,EAAE,GAAG,KAAK;KACxE,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,GAAG,EAAE,IAAI,KAAK;AAClD;AACA,GAAE,IAAI,OAAO,KAAK,IAAI,QAAQ,EAAE;KAC5B,OAAO,KAAK,KAAK,CAAC,GAAG,KAAK,GAAG,CAAC,KAAK;AACvC;AACA,GAAE,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;GACvB,IAAI,QAAQ,GAAG,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC;GACrC,OAAO,CAAC,QAAQ,IAAI,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC;AAC3C,OAAM,YAAY,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,QAAQ,GAAG,CAAC,GAAG,CAAC;QAC5C,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,GAAG,CAAC,KAAK,CAAC;AAC7C;;AAEA,CAAA,UAAc,GAAG,QAAQ;;;;;;","x_google_ignoreList":[0]}
@@ -1,36 +0,0 @@
1
- /******************************************************************************
2
- Copyright (c) Microsoft Corporation.
3
-
4
- Permission to use, copy, modify, and/or distribute this software for any
5
- purpose with or without fee is hereby granted.
6
-
7
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
- PERFORMANCE OF THIS SOFTWARE.
14
- ***************************************************************************** */
15
- /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
16
-
17
-
18
- function __rest(s, e) {
19
- var t = {};
20
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
21
- t[p] = s[p];
22
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
23
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
24
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
25
- t[p[i]] = s[p[i]];
26
- }
27
- return t;
28
- }
29
-
30
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
31
- var e = new Error(message);
32
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
33
- };
34
-
35
- export { __rest };
36
- //# sourceMappingURL=tslib.es6.js.map