@quintype/arrow 3.15.1-perf.3 → 3.15.1-perf.4

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 (166) hide show
  1. package/atoms/Author/index.js +14 -2103
  2. package/atoms/Author/styles.arrow.css +1 -1
  3. package/atoms/AuthorWithTime/index.js +32 -2482
  4. package/atoms/AuthorWithTime/styles.arrow.css +1 -1
  5. package/atoms/CollectionName/index.js +12 -2101
  6. package/atoms/CollectionName/styles.arrow.css +1 -1
  7. package/atoms/ExtendedLoadMore/{index-b22f1843.js → index-0f809dd9.js} +10 -7
  8. package/atoms/ExtendedLoadMore/index-142f015c.js +476 -0
  9. package/atoms/ExtendedLoadMore/{index-bc129cb8.js → index-37a9ccff.js} +18 -10
  10. package/atoms/ExtendedLoadMore/{index-6e083738.js → index-446679c8.js} +20 -12
  11. package/atoms/ExtendedLoadMore/{index-9e0d32b7.js → index-44f97338.js} +19 -9
  12. package/atoms/ExtendedLoadMore/{index-b5936059.js → index-57dd4870.js} +15 -7
  13. package/atoms/ExtendedLoadMore/{index-fee73a14.js → index-66dd4dbd.js} +15 -7
  14. package/atoms/ExtendedLoadMore/{index-5c8eda4a.js → index-8462c597.js} +21 -16
  15. package/atoms/ExtendedLoadMore/{index-3c4ac692.js → index-93cb06d1.js} +42 -51
  16. package/atoms/ExtendedLoadMore/{index-4ddfe28d.js → index-afd44863.js} +6 -4
  17. package/atoms/ExtendedLoadMore/{index-3976fac4.js → index-b5754c5d.js} +20 -14
  18. package/atoms/ExtendedLoadMore/{index-a5c95f84.js → index-bbaf526e.js} +16 -8
  19. package/atoms/ExtendedLoadMore/{index-6ecceae4.js → index-cfb262ef.js} +18 -9
  20. package/atoms/ExtendedLoadMore/index.js +8 -1
  21. package/atoms/ExtendedLoadMore/styles.arrow.css +1 -1
  22. package/atoms/Headline/index.js +14 -2103
  23. package/atoms/Headline/styles.arrow.css +1 -1
  24. package/atoms/HeroImage/index.js +22 -2170
  25. package/atoms/HeroImage/styles.arrow.css +1 -1
  26. package/atoms/LoadmoreButton/index.js +12 -2114
  27. package/atoms/LoadmoreButton/styles.arrow.css +1 -1
  28. package/atoms/ScrollSnap/index.js +17 -2178
  29. package/atoms/ScrollSnap/styles.arrow.css +1 -1
  30. package/atoms/SectionTag/index.js +10 -2099
  31. package/atoms/SectionTag/styles.arrow.css +1 -1
  32. package/atoms/Subheadline/index.js +8 -2097
  33. package/atoms/Subheadline/styles.arrow.css +1 -1
  34. package/atoms/TimeStamp/index.js +13 -2463
  35. package/atoms/TimeStamp/styles.arrow.css +1 -1
  36. package/molecules/KeyEvents/index.js +23 -2545
  37. package/molecules/KeyEvents/styles.arrow.css +1 -1
  38. package/molecules/PageIntroductionCard/index.js +17 -2454
  39. package/molecules/PageIntroductionCard/styles.arrow.css +1 -1
  40. package/molecules/SocialShareTemplate/index.js +144 -2740
  41. package/molecules/SocialShareTemplate/styles.arrow.css +1 -1
  42. package/molecules/StoryCard/index.js +64 -2582
  43. package/molecules/StoryCard/styles.arrow.css +1 -1
  44. package/molecules/StoryElementCard/index.js +123 -2893
  45. package/molecules/StoryElementCard/styles.arrow.css +1 -1
  46. package/molecules/StorycardContent/index.js +45 -2495
  47. package/molecules/StorycardContent/styles.arrow.css +1 -1
  48. package/package.json +1 -1
  49. package/rows/AlternateCollectionFilter/index.js +92 -2659
  50. package/rows/AlternateCollectionFilter/styles.arrow.css +1 -1
  51. package/rows/AsideCollection/index.js +92 -2659
  52. package/rows/AsideCollection/styles.arrow.css +1 -1
  53. package/rows/AstrologyCollection/index.js +89 -2656
  54. package/rows/AstrologyCollection/styles.arrow.css +1 -1
  55. package/rows/AuthorIntroductionCard/index.js +27 -2743
  56. package/rows/AuthorIntroductionCard/styles.arrow.css +1 -1
  57. package/rows/AuthorsList/index.js +34 -2763
  58. package/rows/AuthorsList/styles.arrow.css +1 -1
  59. package/rows/CollectionFilter/index.js +91 -2658
  60. package/rows/CollectionFilter/styles.arrow.css +1 -1
  61. package/rows/ElevenStories/index.js +81 -2612
  62. package/rows/ElevenStories/styles.arrow.css +1 -1
  63. package/rows/FourColFiveStories/index.js +75 -2603
  64. package/rows/FourColFiveStories/styles.arrow.css +1 -1
  65. package/rows/FourColGrid/index.js +92 -2623
  66. package/rows/FourColGrid/styles.arrow.css +1 -1
  67. package/rows/FourColPortraitStories/index.js +91 -2622
  68. package/rows/FourColPortraitStories/styles.arrow.css +1 -1
  69. package/rows/FourColSixteenStories/index.js +80 -2617
  70. package/rows/FourColSixteenStories/styles.arrow.css +1 -1
  71. package/rows/FourColTwelveStories/index.js +72 -2596
  72. package/rows/FourColTwelveStories/styles.arrow.css +1 -1
  73. package/rows/FourStorySlider/index.js +84 -2615
  74. package/rows/FourStorySlider/styles.arrow.css +1 -1
  75. package/rows/FourStorySliderPortrait/index.js +84 -2615
  76. package/rows/FourStorySliderPortrait/styles.arrow.css +1 -1
  77. package/rows/FourTabbedBigStorySlider/index.js +80 -2611
  78. package/rows/FourTabbedBigStorySlider/styles.arrow.css +1 -1
  79. package/rows/FullScreenSlider/index.js +85 -2616
  80. package/rows/FullScreenSlider/styles.arrow.css +1 -1
  81. package/rows/HalfScreenSlider/index.js +81 -2612
  82. package/rows/HalfScreenSlider/styles.arrow.css +1 -1
  83. package/rows/ListComponent/index.js +75 -2606
  84. package/rows/ListComponent/styles.arrow.css +1 -1
  85. package/rows/Listicles/index.js +38 -2235
  86. package/rows/Listicles/styles.arrow.css +1 -1
  87. package/rows/MagazineEditions/index.js +24 -2487
  88. package/rows/MagazineEditions/styles.arrow.css +1 -1
  89. package/rows/MagazineHeaderCard/index.js +26 -2489
  90. package/rows/MagazineHeaderCard/styles.arrow.css +1 -1
  91. package/rows/MagazineWidget/index.js +81 -2612
  92. package/rows/MagazineWidget/styles.arrow.css +1 -1
  93. package/rows/OneColStoryList/index.js +92 -2623
  94. package/rows/OneColStoryList/styles.arrow.css +1 -1
  95. package/rows/OpinionCollection/index.js +61 -2583
  96. package/rows/OpinionCollection/styles.arrow.css +1 -1
  97. package/rows/SixColSixStories/index.js +91 -2622
  98. package/rows/SixColSixStories/styles.arrow.css +1 -1
  99. package/rows/StoryCollection/index.js +92 -2659
  100. package/rows/StoryCollection/styles.arrow.css +1 -1
  101. package/rows/TagIntroductionCard/index.js +9 -1816
  102. package/rows/TagIntroductionCard/styles.arrow.css +1 -1
  103. package/rows/ThreeColFlexStories/index.js +91 -2622
  104. package/rows/ThreeColFlexStories/styles.arrow.css +1 -1
  105. package/rows/ThreeColFourteenStories/index.js +72 -2596
  106. package/rows/ThreeColFourteenStories/styles.arrow.css +1 -1
  107. package/rows/ThreeColGrid/index.js +94 -2625
  108. package/rows/ThreeColGrid/styles.arrow.css +1 -1
  109. package/rows/ThreeColSevenStory/index.js +84 -2615
  110. package/rows/ThreeColSevenStory/styles.arrow.css +1 -1
  111. package/rows/ThreeColSixStories/index.js +76 -2607
  112. package/rows/ThreeColSixStories/styles.arrow.css +1 -1
  113. package/rows/ThreeColTwelveStories/index.js +80 -2617
  114. package/rows/ThreeColTwelveStories/styles.arrow.css +1 -1
  115. package/rows/TwoColFourStories/index.js +78 -2609
  116. package/rows/TwoColFourStories/styles.arrow.css +1 -1
  117. package/rows/TwoColFourStoryHighlight/index.js +80 -2617
  118. package/rows/TwoColFourStoryHighlight/styles.arrow.css +1 -1
  119. package/rows/TwoColSevenStories/index.js +77 -2608
  120. package/rows/TwoColSevenStories/styles.arrow.css +1 -1
  121. package/rows/TwoColSixStories/index.js +82 -2619
  122. package/rows/TwoColSixStories/styles.arrow.css +1 -1
  123. package/rows/TwoColTenStoriesSidebar/index.js +79 -2610
  124. package/rows/TwoColTenStoriesSidebar/styles.arrow.css +1 -1
  125. package/rows/TwoColThreeStories/index.js +75 -2606
  126. package/rows/TwoColThreeStories/styles.arrow.css +1 -1
  127. package/story-elements/AlsoRead/index.js +24 -2170
  128. package/story-elements/AlsoRead/styles.arrow.css +1 -1
  129. package/story-elements/Attachment/index.js +15 -1870
  130. package/story-elements/Attachment/styles.arrow.css +1 -1
  131. package/story-elements/BigFact/index.js +16 -1871
  132. package/story-elements/BigFact/styles.arrow.css +1 -1
  133. package/story-elements/BlockQuote/index.js +20 -2157
  134. package/story-elements/BlockQuote/styles.arrow.css +1 -1
  135. package/story-elements/Blurb/index.js +18 -1932
  136. package/story-elements/Blurb/styles.arrow.css +1 -1
  137. package/story-elements/Image/index.js +42 -2251
  138. package/story-elements/Image/styles.arrow.css +1 -1
  139. package/story-elements/ImageGallery/index.js +45 -2254
  140. package/story-elements/ImageGallery/styles.arrow.css +1 -1
  141. package/story-elements/ImageSlideshow/index.js +48 -2257
  142. package/story-elements/ImageSlideshow/styles.arrow.css +1 -1
  143. package/story-elements/QuestionAnswer/index.js +26 -2163
  144. package/story-elements/QuestionAnswer/styles.arrow.css +1 -1
  145. package/story-elements/Quote/index.js +17 -1872
  146. package/story-elements/Quote/styles.arrow.css +1 -1
  147. package/story-elements/Reference/index.js +15 -1870
  148. package/story-elements/Reference/styles.arrow.css +1 -1
  149. package/story-elements/StoryElement/index.js +12 -1725
  150. package/story-elements/Summary/index.js +18 -1873
  151. package/story-elements/Summary/styles.arrow.css +1 -1
  152. package/story-elements/Text/index.js +16 -2153
  153. package/story-elements/Text/styles.arrow.css +1 -1
  154. package/story-elements/Video/index.js +12 -1725
  155. package/story-elements/Video/styles.arrow.css +1 -1
  156. package/story-templates/ListicleStoryTemplate/index.js +282 -3167
  157. package/story-templates/ListicleStoryTemplate/styles.arrow.css +1 -1
  158. package/story-templates/LiveBlogStoryTemplate/index.js +504 -3389
  159. package/story-templates/LiveBlogStoryTemplate/styles.arrow.css +1 -1
  160. package/story-templates/PhotoStoryTemplate/index.js +287 -3172
  161. package/story-templates/PhotoStoryTemplate/styles.arrow.css +1 -1
  162. package/story-templates/TextStoryTemplate/index.js +416 -3301
  163. package/story-templates/TextStoryTemplate/styles.arrow.css +1 -1
  164. package/story-templates/VideoStoryTemplate/index.js +382 -3267
  165. package/story-templates/VideoStoryTemplate/styles.arrow.css +1 -1
  166. package/atoms/ExtendedLoadMore/index-e7cde739.js +0 -3051
@@ -2,169 +2,29 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var _getClassName = require('babel-plugin-react-css-modules/dist/browser/getClassName');
5
6
  var React = require('react');
6
7
  var PropTypes = require('prop-types');
7
8
  var components = require('@quintype/components');
9
+ require('@babel/runtime/helpers/asyncToGenerator');
10
+ var _typeof = require('@babel/runtime/helpers/typeof');
11
+ require('@babel/runtime/regenerator');
12
+ var lodash = require('lodash');
8
13
  var Timeago = require('react-timeago');
9
14
  var dateFnsTz = require('date-fns-tz');
15
+ var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
10
16
  var reactRedux = require('react-redux');
17
+ var _defineProperty = require('@babel/runtime/helpers/defineProperty');
11
18
 
12
19
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
13
20
 
21
+ var _getClassName__default = /*#__PURE__*/_interopDefaultLegacy(_getClassName);
14
22
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
15
23
  var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
24
+ var _typeof__default = /*#__PURE__*/_interopDefaultLegacy(_typeof);
16
25
  var Timeago__default = /*#__PURE__*/_interopDefaultLegacy(Timeago);
17
-
18
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
19
-
20
- function getDefaultExportFromCjs (x) {
21
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
22
- }
23
-
24
- function createCommonjsModule(fn) {
25
- var module = { exports: {} };
26
- return fn(module, module.exports), module.exports;
27
- }
28
-
29
- var optionsDefaults_1 = createCommonjsModule(function (module, exports) {
30
-
31
- Object.defineProperty(exports, "__esModule", {
32
- value: true
33
- });
34
- exports["default"] = void 0;
35
- var optionsDefaults = {
36
- attributeNames: {
37
- styleName: 'className'
38
- },
39
- generateScopedName: '[path]___[name]__[local]___[hash:base64:5]',
40
- handleMissingStyleName: 'throw'
41
- };
42
- var _default = optionsDefaults;
43
- exports["default"] = _default;
44
-
45
-
46
- });
47
-
48
- var getClassName = createCommonjsModule(function (module, exports) {
49
-
50
- Object.defineProperty(exports, "__esModule", {
51
- value: true
52
- });
53
- exports["default"] = void 0;
54
-
55
- var _optionsDefaults = _interopRequireDefault(optionsDefaults_1);
56
-
57
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
58
-
59
- var isNamespacedStyleName = function isNamespacedStyleName(styleName) {
60
- return styleName.indexOf('.') !== -1;
61
- };
62
-
63
- var handleError = function handleError(message, handleMissingStyleName) {
64
- if (handleMissingStyleName === 'throw') {
65
- throw new Error(message);
66
- } else if (handleMissingStyleName === 'warn') {
67
- // eslint-disable-next-line no-console
68
- console.warn(message);
69
- }
70
-
71
- return null;
72
- };
73
-
74
- var getClassNameForNamespacedStyleName = function getClassNameForNamespacedStyleName(styleName, styleModuleImportMap, handleMissingStyleNameOption) {
75
- // Note:
76
- // Do not use the desctructing syntax with Babel.
77
- // Desctructing adds _slicedToArray helper.
78
- var styleNameParts = styleName.split('.');
79
- var importName = styleNameParts[0];
80
- var moduleName = styleNameParts[1];
81
- var handleMissingStyleName = handleMissingStyleNameOption || _optionsDefaults["default"].handleMissingStyleName;
82
-
83
- if (!moduleName) {
84
- return handleError('Invalid style name: ' + styleName, handleMissingStyleName);
85
- }
86
-
87
- if (!styleModuleImportMap[importName]) {
88
- return handleError('CSS module import does not exist: ' + importName, handleMissingStyleName);
89
- }
90
-
91
- if (!styleModuleImportMap[importName][moduleName]) {
92
- return handleError('CSS module does not exist: ' + moduleName, handleMissingStyleName);
93
- }
94
-
95
- return styleModuleImportMap[importName][moduleName];
96
- };
97
-
98
- var getClassNameFromMultipleImports = function getClassNameFromMultipleImports(styleName, styleModuleImportMap, handleMissingStyleNameOption) {
99
- var handleMissingStyleName = handleMissingStyleNameOption || _optionsDefaults["default"].handleMissingStyleName;
100
- var importKeysWithMatches = Object.keys(styleModuleImportMap).map(function (importKey) {
101
- return styleModuleImportMap[importKey][styleName] && importKey;
102
- }).filter(function (importKey) {
103
- return importKey;
104
- });
105
-
106
- if (importKeysWithMatches.length > 1) {
107
- throw new Error('Cannot resolve styleName "' + styleName + '" because it is present in multiple imports:' + '\n\n\t' + importKeysWithMatches.join('\n\t') + '\n\nYou can resolve this by using a named import, e.g:' + '\n\n\timport foo from "' + importKeysWithMatches[0] + '";' + '\n\t<div styleName="foo.' + styleName + '" />' + '\n\n');
108
- }
109
-
110
- if (importKeysWithMatches.length === 0) {
111
- return handleError('Could not resolve the styleName \'' + styleName + '\'.', handleMissingStyleName);
112
- }
113
-
114
- return styleModuleImportMap[importKeysWithMatches[0]][styleName];
115
- };
116
-
117
- var _default = function _default(styleNameValue, styleModuleImportMap, options) {
118
- var styleModuleImportMapKeys = Object.keys(styleModuleImportMap);
119
-
120
- var _ref = options || {},
121
- _ref$handleMissingSty = _ref.handleMissingStyleName,
122
- handleMissingStyleName = _ref$handleMissingSty === void 0 ? _optionsDefaults["default"].handleMissingStyleName : _ref$handleMissingSty,
123
- _ref$autoResolveMulti = _ref.autoResolveMultipleImports,
124
- autoResolveMultipleImports = _ref$autoResolveMulti === void 0 ? _optionsDefaults["default"].autoResolveMultipleImports : _ref$autoResolveMulti;
125
-
126
- if (!styleNameValue) {
127
- return '';
128
- }
129
-
130
- return styleNameValue.split(' ').filter(function (styleName) {
131
- return styleName;
132
- }).map(function (styleName) {
133
- if (isNamespacedStyleName(styleName)) {
134
- return getClassNameForNamespacedStyleName(styleName, styleModuleImportMap, handleMissingStyleName);
135
- }
136
-
137
- if (styleModuleImportMapKeys.length === 0) {
138
- throw new Error('Cannot use styleName attribute for style name \'' + styleName + '\' without importing at least one stylesheet.');
139
- }
140
-
141
- if (styleModuleImportMapKeys.length > 1) {
142
- if (!autoResolveMultipleImports) {
143
- throw new Error('Cannot use anonymous style name \'' + styleName + '\' with more than one stylesheet import without setting \'autoResolveMultipleImports\' to true.');
144
- }
145
-
146
- return getClassNameFromMultipleImports(styleName, styleModuleImportMap, handleMissingStyleName);
147
- }
148
-
149
- var styleModuleMap = styleModuleImportMap[styleModuleImportMapKeys[0]];
150
-
151
- if (!styleModuleMap[styleName]) {
152
- return handleError('Could not resolve the styleName \'' + styleName + '\'.', handleMissingStyleName);
153
- }
154
-
155
- return styleModuleMap[styleName];
156
- }).filter(function (className) {
157
- // Remove any styles which could not be found (if handleMissingStyleName === 'ignore')
158
- return className;
159
- }).join(' ');
160
- };
161
-
162
- exports["default"] = _default;
163
-
164
-
165
- });
166
-
167
- var _getClassName = /*@__PURE__*/getDefaultExportFromCjs(getClassName);
26
+ var _slicedToArray__default = /*#__PURE__*/_interopDefaultLegacy(_slicedToArray);
27
+ var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
168
28
 
169
29
  var StateContext = /*#__PURE__*/React.createContext(); // eslint-disable-next-line react/display-name
170
30
 
@@ -183,2321 +43,6 @@ var useStateValue = function useStateValue() {
183
43
  return React.useContext(StateContext);
184
44
  };
185
45
 
186
- function _typeof(obj) {
187
- "@babel/helpers - typeof";
188
-
189
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
190
- return typeof obj;
191
- } : function (obj) {
192
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
193
- }, _typeof(obj);
194
- }
195
-
196
- /**
197
- * Copyright (c) 2014-present, Facebook, Inc.
198
- *
199
- * This source code is licensed under the MIT license found in the
200
- * LICENSE file in the root directory of this source tree.
201
- */
202
-
203
- createCommonjsModule(function (module) {
204
- var runtime = (function (exports) {
205
-
206
- var Op = Object.prototype;
207
- var hasOwn = Op.hasOwnProperty;
208
- var undefined$1; // More compressible than void 0.
209
- var $Symbol = typeof Symbol === "function" ? Symbol : {};
210
- var iteratorSymbol = $Symbol.iterator || "@@iterator";
211
- var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
212
- var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
213
-
214
- function define(obj, key, value) {
215
- Object.defineProperty(obj, key, {
216
- value: value,
217
- enumerable: true,
218
- configurable: true,
219
- writable: true
220
- });
221
- return obj[key];
222
- }
223
- try {
224
- // IE 8 has a broken Object.defineProperty that only works on DOM objects.
225
- define({}, "");
226
- } catch (err) {
227
- define = function(obj, key, value) {
228
- return obj[key] = value;
229
- };
230
- }
231
-
232
- function wrap(innerFn, outerFn, self, tryLocsList) {
233
- // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
234
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
235
- var generator = Object.create(protoGenerator.prototype);
236
- var context = new Context(tryLocsList || []);
237
-
238
- // The ._invoke method unifies the implementations of the .next,
239
- // .throw, and .return methods.
240
- generator._invoke = makeInvokeMethod(innerFn, self, context);
241
-
242
- return generator;
243
- }
244
- exports.wrap = wrap;
245
-
246
- // Try/catch helper to minimize deoptimizations. Returns a completion
247
- // record like context.tryEntries[i].completion. This interface could
248
- // have been (and was previously) designed to take a closure to be
249
- // invoked without arguments, but in all the cases we care about we
250
- // already have an existing method we want to call, so there's no need
251
- // to create a new function object. We can even get away with assuming
252
- // the method takes exactly one argument, since that happens to be true
253
- // in every case, so we don't have to touch the arguments object. The
254
- // only additional allocation required is the completion record, which
255
- // has a stable shape and so hopefully should be cheap to allocate.
256
- function tryCatch(fn, obj, arg) {
257
- try {
258
- return { type: "normal", arg: fn.call(obj, arg) };
259
- } catch (err) {
260
- return { type: "throw", arg: err };
261
- }
262
- }
263
-
264
- var GenStateSuspendedStart = "suspendedStart";
265
- var GenStateSuspendedYield = "suspendedYield";
266
- var GenStateExecuting = "executing";
267
- var GenStateCompleted = "completed";
268
-
269
- // Returning this object from the innerFn has the same effect as
270
- // breaking out of the dispatch switch statement.
271
- var ContinueSentinel = {};
272
-
273
- // Dummy constructor functions that we use as the .constructor and
274
- // .constructor.prototype properties for functions that return Generator
275
- // objects. For full spec compliance, you may wish to configure your
276
- // minifier not to mangle the names of these two functions.
277
- function Generator() {}
278
- function GeneratorFunction() {}
279
- function GeneratorFunctionPrototype() {}
280
-
281
- // This is a polyfill for %IteratorPrototype% for environments that
282
- // don't natively support it.
283
- var IteratorPrototype = {};
284
- define(IteratorPrototype, iteratorSymbol, function () {
285
- return this;
286
- });
287
-
288
- var getProto = Object.getPrototypeOf;
289
- var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
290
- if (NativeIteratorPrototype &&
291
- NativeIteratorPrototype !== Op &&
292
- hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
293
- // This environment has a native %IteratorPrototype%; use it instead
294
- // of the polyfill.
295
- IteratorPrototype = NativeIteratorPrototype;
296
- }
297
-
298
- var Gp = GeneratorFunctionPrototype.prototype =
299
- Generator.prototype = Object.create(IteratorPrototype);
300
- GeneratorFunction.prototype = GeneratorFunctionPrototype;
301
- define(Gp, "constructor", GeneratorFunctionPrototype);
302
- define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
303
- GeneratorFunction.displayName = define(
304
- GeneratorFunctionPrototype,
305
- toStringTagSymbol,
306
- "GeneratorFunction"
307
- );
308
-
309
- // Helper for defining the .next, .throw, and .return methods of the
310
- // Iterator interface in terms of a single ._invoke method.
311
- function defineIteratorMethods(prototype) {
312
- ["next", "throw", "return"].forEach(function(method) {
313
- define(prototype, method, function(arg) {
314
- return this._invoke(method, arg);
315
- });
316
- });
317
- }
318
-
319
- exports.isGeneratorFunction = function(genFun) {
320
- var ctor = typeof genFun === "function" && genFun.constructor;
321
- return ctor
322
- ? ctor === GeneratorFunction ||
323
- // For the native GeneratorFunction constructor, the best we can
324
- // do is to check its .name property.
325
- (ctor.displayName || ctor.name) === "GeneratorFunction"
326
- : false;
327
- };
328
-
329
- exports.mark = function(genFun) {
330
- if (Object.setPrototypeOf) {
331
- Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
332
- } else {
333
- genFun.__proto__ = GeneratorFunctionPrototype;
334
- define(genFun, toStringTagSymbol, "GeneratorFunction");
335
- }
336
- genFun.prototype = Object.create(Gp);
337
- return genFun;
338
- };
339
-
340
- // Within the body of any async function, `await x` is transformed to
341
- // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
342
- // `hasOwn.call(value, "__await")` to determine if the yielded value is
343
- // meant to be awaited.
344
- exports.awrap = function(arg) {
345
- return { __await: arg };
346
- };
347
-
348
- function AsyncIterator(generator, PromiseImpl) {
349
- function invoke(method, arg, resolve, reject) {
350
- var record = tryCatch(generator[method], generator, arg);
351
- if (record.type === "throw") {
352
- reject(record.arg);
353
- } else {
354
- var result = record.arg;
355
- var value = result.value;
356
- if (value &&
357
- typeof value === "object" &&
358
- hasOwn.call(value, "__await")) {
359
- return PromiseImpl.resolve(value.__await).then(function(value) {
360
- invoke("next", value, resolve, reject);
361
- }, function(err) {
362
- invoke("throw", err, resolve, reject);
363
- });
364
- }
365
-
366
- return PromiseImpl.resolve(value).then(function(unwrapped) {
367
- // When a yielded Promise is resolved, its final value becomes
368
- // the .value of the Promise<{value,done}> result for the
369
- // current iteration.
370
- result.value = unwrapped;
371
- resolve(result);
372
- }, function(error) {
373
- // If a rejected Promise was yielded, throw the rejection back
374
- // into the async generator function so it can be handled there.
375
- return invoke("throw", error, resolve, reject);
376
- });
377
- }
378
- }
379
-
380
- var previousPromise;
381
-
382
- function enqueue(method, arg) {
383
- function callInvokeWithMethodAndArg() {
384
- return new PromiseImpl(function(resolve, reject) {
385
- invoke(method, arg, resolve, reject);
386
- });
387
- }
388
-
389
- return previousPromise =
390
- // If enqueue has been called before, then we want to wait until
391
- // all previous Promises have been resolved before calling invoke,
392
- // so that results are always delivered in the correct order. If
393
- // enqueue has not been called before, then it is important to
394
- // call invoke immediately, without waiting on a callback to fire,
395
- // so that the async generator function has the opportunity to do
396
- // any necessary setup in a predictable way. This predictability
397
- // is why the Promise constructor synchronously invokes its
398
- // executor callback, and why async functions synchronously
399
- // execute code before the first await. Since we implement simple
400
- // async functions in terms of async generators, it is especially
401
- // important to get this right, even though it requires care.
402
- previousPromise ? previousPromise.then(
403
- callInvokeWithMethodAndArg,
404
- // Avoid propagating failures to Promises returned by later
405
- // invocations of the iterator.
406
- callInvokeWithMethodAndArg
407
- ) : callInvokeWithMethodAndArg();
408
- }
409
-
410
- // Define the unified helper method that is used to implement .next,
411
- // .throw, and .return (see defineIteratorMethods).
412
- this._invoke = enqueue;
413
- }
414
-
415
- defineIteratorMethods(AsyncIterator.prototype);
416
- define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
417
- return this;
418
- });
419
- exports.AsyncIterator = AsyncIterator;
420
-
421
- // Note that simple async functions are implemented on top of
422
- // AsyncIterator objects; they just return a Promise for the value of
423
- // the final result produced by the iterator.
424
- exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
425
- if (PromiseImpl === void 0) PromiseImpl = Promise;
426
-
427
- var iter = new AsyncIterator(
428
- wrap(innerFn, outerFn, self, tryLocsList),
429
- PromiseImpl
430
- );
431
-
432
- return exports.isGeneratorFunction(outerFn)
433
- ? iter // If outerFn is a generator, return the full iterator.
434
- : iter.next().then(function(result) {
435
- return result.done ? result.value : iter.next();
436
- });
437
- };
438
-
439
- function makeInvokeMethod(innerFn, self, context) {
440
- var state = GenStateSuspendedStart;
441
-
442
- return function invoke(method, arg) {
443
- if (state === GenStateExecuting) {
444
- throw new Error("Generator is already running");
445
- }
446
-
447
- if (state === GenStateCompleted) {
448
- if (method === "throw") {
449
- throw arg;
450
- }
451
-
452
- // Be forgiving, per 25.3.3.3.3 of the spec:
453
- // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
454
- return doneResult();
455
- }
456
-
457
- context.method = method;
458
- context.arg = arg;
459
-
460
- while (true) {
461
- var delegate = context.delegate;
462
- if (delegate) {
463
- var delegateResult = maybeInvokeDelegate(delegate, context);
464
- if (delegateResult) {
465
- if (delegateResult === ContinueSentinel) continue;
466
- return delegateResult;
467
- }
468
- }
469
-
470
- if (context.method === "next") {
471
- // Setting context._sent for legacy support of Babel's
472
- // function.sent implementation.
473
- context.sent = context._sent = context.arg;
474
-
475
- } else if (context.method === "throw") {
476
- if (state === GenStateSuspendedStart) {
477
- state = GenStateCompleted;
478
- throw context.arg;
479
- }
480
-
481
- context.dispatchException(context.arg);
482
-
483
- } else if (context.method === "return") {
484
- context.abrupt("return", context.arg);
485
- }
486
-
487
- state = GenStateExecuting;
488
-
489
- var record = tryCatch(innerFn, self, context);
490
- if (record.type === "normal") {
491
- // If an exception is thrown from innerFn, we leave state ===
492
- // GenStateExecuting and loop back for another invocation.
493
- state = context.done
494
- ? GenStateCompleted
495
- : GenStateSuspendedYield;
496
-
497
- if (record.arg === ContinueSentinel) {
498
- continue;
499
- }
500
-
501
- return {
502
- value: record.arg,
503
- done: context.done
504
- };
505
-
506
- } else if (record.type === "throw") {
507
- state = GenStateCompleted;
508
- // Dispatch the exception by looping back around to the
509
- // context.dispatchException(context.arg) call above.
510
- context.method = "throw";
511
- context.arg = record.arg;
512
- }
513
- }
514
- };
515
- }
516
-
517
- // Call delegate.iterator[context.method](context.arg) and handle the
518
- // result, either by returning a { value, done } result from the
519
- // delegate iterator, or by modifying context.method and context.arg,
520
- // setting context.delegate to null, and returning the ContinueSentinel.
521
- function maybeInvokeDelegate(delegate, context) {
522
- var method = delegate.iterator[context.method];
523
- if (method === undefined$1) {
524
- // A .throw or .return when the delegate iterator has no .throw
525
- // method always terminates the yield* loop.
526
- context.delegate = null;
527
-
528
- if (context.method === "throw") {
529
- // Note: ["return"] must be used for ES3 parsing compatibility.
530
- if (delegate.iterator["return"]) {
531
- // If the delegate iterator has a return method, give it a
532
- // chance to clean up.
533
- context.method = "return";
534
- context.arg = undefined$1;
535
- maybeInvokeDelegate(delegate, context);
536
-
537
- if (context.method === "throw") {
538
- // If maybeInvokeDelegate(context) changed context.method from
539
- // "return" to "throw", let that override the TypeError below.
540
- return ContinueSentinel;
541
- }
542
- }
543
-
544
- context.method = "throw";
545
- context.arg = new TypeError(
546
- "The iterator does not provide a 'throw' method");
547
- }
548
-
549
- return ContinueSentinel;
550
- }
551
-
552
- var record = tryCatch(method, delegate.iterator, context.arg);
553
-
554
- if (record.type === "throw") {
555
- context.method = "throw";
556
- context.arg = record.arg;
557
- context.delegate = null;
558
- return ContinueSentinel;
559
- }
560
-
561
- var info = record.arg;
562
-
563
- if (! info) {
564
- context.method = "throw";
565
- context.arg = new TypeError("iterator result is not an object");
566
- context.delegate = null;
567
- return ContinueSentinel;
568
- }
569
-
570
- if (info.done) {
571
- // Assign the result of the finished delegate to the temporary
572
- // variable specified by delegate.resultName (see delegateYield).
573
- context[delegate.resultName] = info.value;
574
-
575
- // Resume execution at the desired location (see delegateYield).
576
- context.next = delegate.nextLoc;
577
-
578
- // If context.method was "throw" but the delegate handled the
579
- // exception, let the outer generator proceed normally. If
580
- // context.method was "next", forget context.arg since it has been
581
- // "consumed" by the delegate iterator. If context.method was
582
- // "return", allow the original .return call to continue in the
583
- // outer generator.
584
- if (context.method !== "return") {
585
- context.method = "next";
586
- context.arg = undefined$1;
587
- }
588
-
589
- } else {
590
- // Re-yield the result returned by the delegate method.
591
- return info;
592
- }
593
-
594
- // The delegate iterator is finished, so forget it and continue with
595
- // the outer generator.
596
- context.delegate = null;
597
- return ContinueSentinel;
598
- }
599
-
600
- // Define Generator.prototype.{next,throw,return} in terms of the
601
- // unified ._invoke helper method.
602
- defineIteratorMethods(Gp);
603
-
604
- define(Gp, toStringTagSymbol, "Generator");
605
-
606
- // A Generator should always return itself as the iterator object when the
607
- // @@iterator function is called on it. Some browsers' implementations of the
608
- // iterator prototype chain incorrectly implement this, causing the Generator
609
- // object to not be returned from this call. This ensures that doesn't happen.
610
- // See https://github.com/facebook/regenerator/issues/274 for more details.
611
- define(Gp, iteratorSymbol, function() {
612
- return this;
613
- });
614
-
615
- define(Gp, "toString", function() {
616
- return "[object Generator]";
617
- });
618
-
619
- function pushTryEntry(locs) {
620
- var entry = { tryLoc: locs[0] };
621
-
622
- if (1 in locs) {
623
- entry.catchLoc = locs[1];
624
- }
625
-
626
- if (2 in locs) {
627
- entry.finallyLoc = locs[2];
628
- entry.afterLoc = locs[3];
629
- }
630
-
631
- this.tryEntries.push(entry);
632
- }
633
-
634
- function resetTryEntry(entry) {
635
- var record = entry.completion || {};
636
- record.type = "normal";
637
- delete record.arg;
638
- entry.completion = record;
639
- }
640
-
641
- function Context(tryLocsList) {
642
- // The root entry object (effectively a try statement without a catch
643
- // or a finally block) gives us a place to store values thrown from
644
- // locations where there is no enclosing try statement.
645
- this.tryEntries = [{ tryLoc: "root" }];
646
- tryLocsList.forEach(pushTryEntry, this);
647
- this.reset(true);
648
- }
649
-
650
- exports.keys = function(object) {
651
- var keys = [];
652
- for (var key in object) {
653
- keys.push(key);
654
- }
655
- keys.reverse();
656
-
657
- // Rather than returning an object with a next method, we keep
658
- // things simple and return the next function itself.
659
- return function next() {
660
- while (keys.length) {
661
- var key = keys.pop();
662
- if (key in object) {
663
- next.value = key;
664
- next.done = false;
665
- return next;
666
- }
667
- }
668
-
669
- // To avoid creating an additional object, we just hang the .value
670
- // and .done properties off the next function object itself. This
671
- // also ensures that the minifier will not anonymize the function.
672
- next.done = true;
673
- return next;
674
- };
675
- };
676
-
677
- function values(iterable) {
678
- if (iterable) {
679
- var iteratorMethod = iterable[iteratorSymbol];
680
- if (iteratorMethod) {
681
- return iteratorMethod.call(iterable);
682
- }
683
-
684
- if (typeof iterable.next === "function") {
685
- return iterable;
686
- }
687
-
688
- if (!isNaN(iterable.length)) {
689
- var i = -1, next = function next() {
690
- while (++i < iterable.length) {
691
- if (hasOwn.call(iterable, i)) {
692
- next.value = iterable[i];
693
- next.done = false;
694
- return next;
695
- }
696
- }
697
-
698
- next.value = undefined$1;
699
- next.done = true;
700
-
701
- return next;
702
- };
703
-
704
- return next.next = next;
705
- }
706
- }
707
-
708
- // Return an iterator with no values.
709
- return { next: doneResult };
710
- }
711
- exports.values = values;
712
-
713
- function doneResult() {
714
- return { value: undefined$1, done: true };
715
- }
716
-
717
- Context.prototype = {
718
- constructor: Context,
719
-
720
- reset: function(skipTempReset) {
721
- this.prev = 0;
722
- this.next = 0;
723
- // Resetting context._sent for legacy support of Babel's
724
- // function.sent implementation.
725
- this.sent = this._sent = undefined$1;
726
- this.done = false;
727
- this.delegate = null;
728
-
729
- this.method = "next";
730
- this.arg = undefined$1;
731
-
732
- this.tryEntries.forEach(resetTryEntry);
733
-
734
- if (!skipTempReset) {
735
- for (var name in this) {
736
- // Not sure about the optimal order of these conditions:
737
- if (name.charAt(0) === "t" &&
738
- hasOwn.call(this, name) &&
739
- !isNaN(+name.slice(1))) {
740
- this[name] = undefined$1;
741
- }
742
- }
743
- }
744
- },
745
-
746
- stop: function() {
747
- this.done = true;
748
-
749
- var rootEntry = this.tryEntries[0];
750
- var rootRecord = rootEntry.completion;
751
- if (rootRecord.type === "throw") {
752
- throw rootRecord.arg;
753
- }
754
-
755
- return this.rval;
756
- },
757
-
758
- dispatchException: function(exception) {
759
- if (this.done) {
760
- throw exception;
761
- }
762
-
763
- var context = this;
764
- function handle(loc, caught) {
765
- record.type = "throw";
766
- record.arg = exception;
767
- context.next = loc;
768
-
769
- if (caught) {
770
- // If the dispatched exception was caught by a catch block,
771
- // then let that catch block handle the exception normally.
772
- context.method = "next";
773
- context.arg = undefined$1;
774
- }
775
-
776
- return !! caught;
777
- }
778
-
779
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
780
- var entry = this.tryEntries[i];
781
- var record = entry.completion;
782
-
783
- if (entry.tryLoc === "root") {
784
- // Exception thrown outside of any try block that could handle
785
- // it, so set the completion value of the entire function to
786
- // throw the exception.
787
- return handle("end");
788
- }
789
-
790
- if (entry.tryLoc <= this.prev) {
791
- var hasCatch = hasOwn.call(entry, "catchLoc");
792
- var hasFinally = hasOwn.call(entry, "finallyLoc");
793
-
794
- if (hasCatch && hasFinally) {
795
- if (this.prev < entry.catchLoc) {
796
- return handle(entry.catchLoc, true);
797
- } else if (this.prev < entry.finallyLoc) {
798
- return handle(entry.finallyLoc);
799
- }
800
-
801
- } else if (hasCatch) {
802
- if (this.prev < entry.catchLoc) {
803
- return handle(entry.catchLoc, true);
804
- }
805
-
806
- } else if (hasFinally) {
807
- if (this.prev < entry.finallyLoc) {
808
- return handle(entry.finallyLoc);
809
- }
810
-
811
- } else {
812
- throw new Error("try statement without catch or finally");
813
- }
814
- }
815
- }
816
- },
817
-
818
- abrupt: function(type, arg) {
819
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
820
- var entry = this.tryEntries[i];
821
- if (entry.tryLoc <= this.prev &&
822
- hasOwn.call(entry, "finallyLoc") &&
823
- this.prev < entry.finallyLoc) {
824
- var finallyEntry = entry;
825
- break;
826
- }
827
- }
828
-
829
- if (finallyEntry &&
830
- (type === "break" ||
831
- type === "continue") &&
832
- finallyEntry.tryLoc <= arg &&
833
- arg <= finallyEntry.finallyLoc) {
834
- // Ignore the finally entry if control is not jumping to a
835
- // location outside the try/catch block.
836
- finallyEntry = null;
837
- }
838
-
839
- var record = finallyEntry ? finallyEntry.completion : {};
840
- record.type = type;
841
- record.arg = arg;
842
-
843
- if (finallyEntry) {
844
- this.method = "next";
845
- this.next = finallyEntry.finallyLoc;
846
- return ContinueSentinel;
847
- }
848
-
849
- return this.complete(record);
850
- },
851
-
852
- complete: function(record, afterLoc) {
853
- if (record.type === "throw") {
854
- throw record.arg;
855
- }
856
-
857
- if (record.type === "break" ||
858
- record.type === "continue") {
859
- this.next = record.arg;
860
- } else if (record.type === "return") {
861
- this.rval = this.arg = record.arg;
862
- this.method = "return";
863
- this.next = "end";
864
- } else if (record.type === "normal" && afterLoc) {
865
- this.next = afterLoc;
866
- }
867
-
868
- return ContinueSentinel;
869
- },
870
-
871
- finish: function(finallyLoc) {
872
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
873
- var entry = this.tryEntries[i];
874
- if (entry.finallyLoc === finallyLoc) {
875
- this.complete(entry.completion, entry.afterLoc);
876
- resetTryEntry(entry);
877
- return ContinueSentinel;
878
- }
879
- }
880
- },
881
-
882
- "catch": function(tryLoc) {
883
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
884
- var entry = this.tryEntries[i];
885
- if (entry.tryLoc === tryLoc) {
886
- var record = entry.completion;
887
- if (record.type === "throw") {
888
- var thrown = record.arg;
889
- resetTryEntry(entry);
890
- }
891
- return thrown;
892
- }
893
- }
894
-
895
- // The context.catch method must only be called with a location
896
- // argument that corresponds to a known catch block.
897
- throw new Error("illegal catch attempt");
898
- },
899
-
900
- delegateYield: function(iterable, resultName, nextLoc) {
901
- this.delegate = {
902
- iterator: values(iterable),
903
- resultName: resultName,
904
- nextLoc: nextLoc
905
- };
906
-
907
- if (this.method === "next") {
908
- // Deliberately forget the last sent value so that we don't
909
- // accidentally pass it on to the delegate.
910
- this.arg = undefined$1;
911
- }
912
-
913
- return ContinueSentinel;
914
- }
915
- };
916
-
917
- // Regardless of whether this script is executing as a CommonJS module
918
- // or not, return the runtime object so that we can declare the variable
919
- // regeneratorRuntime in the outer scope, which allows this module to be
920
- // injected easily by `bin/regenerator --include-runtime script.js`.
921
- return exports;
922
-
923
- }(
924
- // If this script is executing as a CommonJS module, use module.exports
925
- // as the regeneratorRuntime namespace. Otherwise create a new empty
926
- // object. Either way, the resulting object will be used to initialize
927
- // the regeneratorRuntime variable at the top of this file.
928
- module.exports
929
- ));
930
-
931
- try {
932
- regeneratorRuntime = runtime;
933
- } catch (accidentalStrictMode) {
934
- // This module should not be running in strict mode, so the above
935
- // assignment should always work unless something is misconfigured. Just
936
- // in case runtime.js accidentally runs in strict mode, in modern engines
937
- // we can explicitly access globalThis. In older engines we can escape
938
- // strict mode using a global Function call. This could conceivably fail
939
- // if a Content Security Policy forbids using Function, but in that case
940
- // the proper solution is to fix the accidental strict mode problem. If
941
- // you've misconfigured your bundler to force strict mode and applied a
942
- // CSP to forbid Function, and you're not willing to fix either of those
943
- // problems, please detail your unique predicament in a GitHub issue.
944
- if (typeof globalThis === "object") {
945
- globalThis.regeneratorRuntime = runtime;
946
- } else {
947
- Function("r", "regeneratorRuntime = r")(runtime);
948
- }
949
- }
950
- });
951
-
952
- /**
953
- * Checks if `value` is classified as an `Array` object.
954
- *
955
- * @static
956
- * @memberOf _
957
- * @since 0.1.0
958
- * @category Lang
959
- * @param {*} value The value to check.
960
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
961
- * @example
962
- *
963
- * _.isArray([1, 2, 3]);
964
- * // => true
965
- *
966
- * _.isArray(document.body.children);
967
- * // => false
968
- *
969
- * _.isArray('abc');
970
- * // => false
971
- *
972
- * _.isArray(_.noop);
973
- * // => false
974
- */
975
- var isArray = Array.isArray;
976
-
977
- var isArray_1 = isArray;
978
-
979
- /** Detect free variable `global` from Node.js. */
980
-
981
- var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
982
-
983
- var _freeGlobal = freeGlobal;
984
-
985
- /** Detect free variable `self`. */
986
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
987
-
988
- /** Used as a reference to the global object. */
989
- var root = _freeGlobal || freeSelf || Function('return this')();
990
-
991
- var _root = root;
992
-
993
- /** Built-in value references. */
994
- var Symbol$1 = _root.Symbol;
995
-
996
- var _Symbol = Symbol$1;
997
-
998
- /** Used for built-in method references. */
999
- var objectProto$4 = Object.prototype;
1000
-
1001
- /** Used to check objects for own properties. */
1002
- var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
1003
-
1004
- /**
1005
- * Used to resolve the
1006
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
1007
- * of values.
1008
- */
1009
- var nativeObjectToString$1 = objectProto$4.toString;
1010
-
1011
- /** Built-in value references. */
1012
- var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
1013
-
1014
- /**
1015
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
1016
- *
1017
- * @private
1018
- * @param {*} value The value to query.
1019
- * @returns {string} Returns the raw `toStringTag`.
1020
- */
1021
- function getRawTag(value) {
1022
- var isOwn = hasOwnProperty$3.call(value, symToStringTag$1),
1023
- tag = value[symToStringTag$1];
1024
-
1025
- try {
1026
- value[symToStringTag$1] = undefined;
1027
- var unmasked = true;
1028
- } catch (e) {}
1029
-
1030
- var result = nativeObjectToString$1.call(value);
1031
- if (unmasked) {
1032
- if (isOwn) {
1033
- value[symToStringTag$1] = tag;
1034
- } else {
1035
- delete value[symToStringTag$1];
1036
- }
1037
- }
1038
- return result;
1039
- }
1040
-
1041
- var _getRawTag = getRawTag;
1042
-
1043
- /** Used for built-in method references. */
1044
- var objectProto$3 = Object.prototype;
1045
-
1046
- /**
1047
- * Used to resolve the
1048
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
1049
- * of values.
1050
- */
1051
- var nativeObjectToString = objectProto$3.toString;
1052
-
1053
- /**
1054
- * Converts `value` to a string using `Object.prototype.toString`.
1055
- *
1056
- * @private
1057
- * @param {*} value The value to convert.
1058
- * @returns {string} Returns the converted string.
1059
- */
1060
- function objectToString(value) {
1061
- return nativeObjectToString.call(value);
1062
- }
1063
-
1064
- var _objectToString = objectToString;
1065
-
1066
- /** `Object#toString` result references. */
1067
- var nullTag = '[object Null]',
1068
- undefinedTag = '[object Undefined]';
1069
-
1070
- /** Built-in value references. */
1071
- var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
1072
-
1073
- /**
1074
- * The base implementation of `getTag` without fallbacks for buggy environments.
1075
- *
1076
- * @private
1077
- * @param {*} value The value to query.
1078
- * @returns {string} Returns the `toStringTag`.
1079
- */
1080
- function baseGetTag(value) {
1081
- if (value == null) {
1082
- return value === undefined ? undefinedTag : nullTag;
1083
- }
1084
- return (symToStringTag && symToStringTag in Object(value))
1085
- ? _getRawTag(value)
1086
- : _objectToString(value);
1087
- }
1088
-
1089
- var _baseGetTag = baseGetTag;
1090
-
1091
- /**
1092
- * Checks if `value` is object-like. A value is object-like if it's not `null`
1093
- * and has a `typeof` result of "object".
1094
- *
1095
- * @static
1096
- * @memberOf _
1097
- * @since 4.0.0
1098
- * @category Lang
1099
- * @param {*} value The value to check.
1100
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
1101
- * @example
1102
- *
1103
- * _.isObjectLike({});
1104
- * // => true
1105
- *
1106
- * _.isObjectLike([1, 2, 3]);
1107
- * // => true
1108
- *
1109
- * _.isObjectLike(_.noop);
1110
- * // => false
1111
- *
1112
- * _.isObjectLike(null);
1113
- * // => false
1114
- */
1115
- function isObjectLike(value) {
1116
- return value != null && typeof value == 'object';
1117
- }
1118
-
1119
- var isObjectLike_1 = isObjectLike;
1120
-
1121
- /** `Object#toString` result references. */
1122
- var symbolTag = '[object Symbol]';
1123
-
1124
- /**
1125
- * Checks if `value` is classified as a `Symbol` primitive or object.
1126
- *
1127
- * @static
1128
- * @memberOf _
1129
- * @since 4.0.0
1130
- * @category Lang
1131
- * @param {*} value The value to check.
1132
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
1133
- * @example
1134
- *
1135
- * _.isSymbol(Symbol.iterator);
1136
- * // => true
1137
- *
1138
- * _.isSymbol('abc');
1139
- * // => false
1140
- */
1141
- function isSymbol(value) {
1142
- return typeof value == 'symbol' ||
1143
- (isObjectLike_1(value) && _baseGetTag(value) == symbolTag);
1144
- }
1145
-
1146
- var isSymbol_1 = isSymbol;
1147
-
1148
- /** Used to match property names within property paths. */
1149
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
1150
- reIsPlainProp = /^\w*$/;
1151
-
1152
- /**
1153
- * Checks if `value` is a property name and not a property path.
1154
- *
1155
- * @private
1156
- * @param {*} value The value to check.
1157
- * @param {Object} [object] The object to query keys on.
1158
- * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
1159
- */
1160
- function isKey(value, object) {
1161
- if (isArray_1(value)) {
1162
- return false;
1163
- }
1164
- var type = typeof value;
1165
- if (type == 'number' || type == 'symbol' || type == 'boolean' ||
1166
- value == null || isSymbol_1(value)) {
1167
- return true;
1168
- }
1169
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
1170
- (object != null && value in Object(object));
1171
- }
1172
-
1173
- var _isKey = isKey;
1174
-
1175
- /**
1176
- * Checks if `value` is the
1177
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
1178
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
1179
- *
1180
- * @static
1181
- * @memberOf _
1182
- * @since 0.1.0
1183
- * @category Lang
1184
- * @param {*} value The value to check.
1185
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
1186
- * @example
1187
- *
1188
- * _.isObject({});
1189
- * // => true
1190
- *
1191
- * _.isObject([1, 2, 3]);
1192
- * // => true
1193
- *
1194
- * _.isObject(_.noop);
1195
- * // => true
1196
- *
1197
- * _.isObject(null);
1198
- * // => false
1199
- */
1200
- function isObject(value) {
1201
- var type = typeof value;
1202
- return value != null && (type == 'object' || type == 'function');
1203
- }
1204
-
1205
- var isObject_1 = isObject;
1206
-
1207
- /** `Object#toString` result references. */
1208
- var asyncTag = '[object AsyncFunction]',
1209
- funcTag = '[object Function]',
1210
- genTag = '[object GeneratorFunction]',
1211
- proxyTag = '[object Proxy]';
1212
-
1213
- /**
1214
- * Checks if `value` is classified as a `Function` object.
1215
- *
1216
- * @static
1217
- * @memberOf _
1218
- * @since 0.1.0
1219
- * @category Lang
1220
- * @param {*} value The value to check.
1221
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
1222
- * @example
1223
- *
1224
- * _.isFunction(_);
1225
- * // => true
1226
- *
1227
- * _.isFunction(/abc/);
1228
- * // => false
1229
- */
1230
- function isFunction(value) {
1231
- if (!isObject_1(value)) {
1232
- return false;
1233
- }
1234
- // The use of `Object#toString` avoids issues with the `typeof` operator
1235
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
1236
- var tag = _baseGetTag(value);
1237
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
1238
- }
1239
-
1240
- var isFunction_1 = isFunction;
1241
-
1242
- /** Used to detect overreaching core-js shims. */
1243
- var coreJsData = _root['__core-js_shared__'];
1244
-
1245
- var _coreJsData = coreJsData;
1246
-
1247
- /** Used to detect methods masquerading as native. */
1248
- var maskSrcKey = (function() {
1249
- var uid = /[^.]+$/.exec(_coreJsData && _coreJsData.keys && _coreJsData.keys.IE_PROTO || '');
1250
- return uid ? ('Symbol(src)_1.' + uid) : '';
1251
- }());
1252
-
1253
- /**
1254
- * Checks if `func` has its source masked.
1255
- *
1256
- * @private
1257
- * @param {Function} func The function to check.
1258
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
1259
- */
1260
- function isMasked(func) {
1261
- return !!maskSrcKey && (maskSrcKey in func);
1262
- }
1263
-
1264
- var _isMasked = isMasked;
1265
-
1266
- /** Used for built-in method references. */
1267
- var funcProto$1 = Function.prototype;
1268
-
1269
- /** Used to resolve the decompiled source of functions. */
1270
- var funcToString$1 = funcProto$1.toString;
1271
-
1272
- /**
1273
- * Converts `func` to its source code.
1274
- *
1275
- * @private
1276
- * @param {Function} func The function to convert.
1277
- * @returns {string} Returns the source code.
1278
- */
1279
- function toSource(func) {
1280
- if (func != null) {
1281
- try {
1282
- return funcToString$1.call(func);
1283
- } catch (e) {}
1284
- try {
1285
- return (func + '');
1286
- } catch (e) {}
1287
- }
1288
- return '';
1289
- }
1290
-
1291
- var _toSource = toSource;
1292
-
1293
- /**
1294
- * Used to match `RegExp`
1295
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
1296
- */
1297
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
1298
-
1299
- /** Used to detect host constructors (Safari). */
1300
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
1301
-
1302
- /** Used for built-in method references. */
1303
- var funcProto = Function.prototype,
1304
- objectProto$2 = Object.prototype;
1305
-
1306
- /** Used to resolve the decompiled source of functions. */
1307
- var funcToString = funcProto.toString;
1308
-
1309
- /** Used to check objects for own properties. */
1310
- var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
1311
-
1312
- /** Used to detect if a method is native. */
1313
- var reIsNative = RegExp('^' +
1314
- funcToString.call(hasOwnProperty$2).replace(reRegExpChar, '\\$&')
1315
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
1316
- );
1317
-
1318
- /**
1319
- * The base implementation of `_.isNative` without bad shim checks.
1320
- *
1321
- * @private
1322
- * @param {*} value The value to check.
1323
- * @returns {boolean} Returns `true` if `value` is a native function,
1324
- * else `false`.
1325
- */
1326
- function baseIsNative(value) {
1327
- if (!isObject_1(value) || _isMasked(value)) {
1328
- return false;
1329
- }
1330
- var pattern = isFunction_1(value) ? reIsNative : reIsHostCtor;
1331
- return pattern.test(_toSource(value));
1332
- }
1333
-
1334
- var _baseIsNative = baseIsNative;
1335
-
1336
- /**
1337
- * Gets the value at `key` of `object`.
1338
- *
1339
- * @private
1340
- * @param {Object} [object] The object to query.
1341
- * @param {string} key The key of the property to get.
1342
- * @returns {*} Returns the property value.
1343
- */
1344
- function getValue(object, key) {
1345
- return object == null ? undefined : object[key];
1346
- }
1347
-
1348
- var _getValue = getValue;
1349
-
1350
- /**
1351
- * Gets the native function at `key` of `object`.
1352
- *
1353
- * @private
1354
- * @param {Object} object The object to query.
1355
- * @param {string} key The key of the method to get.
1356
- * @returns {*} Returns the function if it's native, else `undefined`.
1357
- */
1358
- function getNative(object, key) {
1359
- var value = _getValue(object, key);
1360
- return _baseIsNative(value) ? value : undefined;
1361
- }
1362
-
1363
- var _getNative = getNative;
1364
-
1365
- /* Built-in method references that are verified to be native. */
1366
- var nativeCreate = _getNative(Object, 'create');
1367
-
1368
- var _nativeCreate = nativeCreate;
1369
-
1370
- /**
1371
- * Removes all key-value entries from the hash.
1372
- *
1373
- * @private
1374
- * @name clear
1375
- * @memberOf Hash
1376
- */
1377
- function hashClear() {
1378
- this.__data__ = _nativeCreate ? _nativeCreate(null) : {};
1379
- this.size = 0;
1380
- }
1381
-
1382
- var _hashClear = hashClear;
1383
-
1384
- /**
1385
- * Removes `key` and its value from the hash.
1386
- *
1387
- * @private
1388
- * @name delete
1389
- * @memberOf Hash
1390
- * @param {Object} hash The hash to modify.
1391
- * @param {string} key The key of the value to remove.
1392
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1393
- */
1394
- function hashDelete(key) {
1395
- var result = this.has(key) && delete this.__data__[key];
1396
- this.size -= result ? 1 : 0;
1397
- return result;
1398
- }
1399
-
1400
- var _hashDelete = hashDelete;
1401
-
1402
- /** Used to stand-in for `undefined` hash values. */
1403
- var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
1404
-
1405
- /** Used for built-in method references. */
1406
- var objectProto$1 = Object.prototype;
1407
-
1408
- /** Used to check objects for own properties. */
1409
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
1410
-
1411
- /**
1412
- * Gets the hash value for `key`.
1413
- *
1414
- * @private
1415
- * @name get
1416
- * @memberOf Hash
1417
- * @param {string} key The key of the value to get.
1418
- * @returns {*} Returns the entry value.
1419
- */
1420
- function hashGet(key) {
1421
- var data = this.__data__;
1422
- if (_nativeCreate) {
1423
- var result = data[key];
1424
- return result === HASH_UNDEFINED$1 ? undefined : result;
1425
- }
1426
- return hasOwnProperty$1.call(data, key) ? data[key] : undefined;
1427
- }
1428
-
1429
- var _hashGet = hashGet;
1430
-
1431
- /** Used for built-in method references. */
1432
- var objectProto = Object.prototype;
1433
-
1434
- /** Used to check objects for own properties. */
1435
- var hasOwnProperty = objectProto.hasOwnProperty;
1436
-
1437
- /**
1438
- * Checks if a hash value for `key` exists.
1439
- *
1440
- * @private
1441
- * @name has
1442
- * @memberOf Hash
1443
- * @param {string} key The key of the entry to check.
1444
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1445
- */
1446
- function hashHas(key) {
1447
- var data = this.__data__;
1448
- return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
1449
- }
1450
-
1451
- var _hashHas = hashHas;
1452
-
1453
- /** Used to stand-in for `undefined` hash values. */
1454
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
1455
-
1456
- /**
1457
- * Sets the hash `key` to `value`.
1458
- *
1459
- * @private
1460
- * @name set
1461
- * @memberOf Hash
1462
- * @param {string} key The key of the value to set.
1463
- * @param {*} value The value to set.
1464
- * @returns {Object} Returns the hash instance.
1465
- */
1466
- function hashSet(key, value) {
1467
- var data = this.__data__;
1468
- this.size += this.has(key) ? 0 : 1;
1469
- data[key] = (_nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
1470
- return this;
1471
- }
1472
-
1473
- var _hashSet = hashSet;
1474
-
1475
- /**
1476
- * Creates a hash object.
1477
- *
1478
- * @private
1479
- * @constructor
1480
- * @param {Array} [entries] The key-value pairs to cache.
1481
- */
1482
- function Hash(entries) {
1483
- var index = -1,
1484
- length = entries == null ? 0 : entries.length;
1485
-
1486
- this.clear();
1487
- while (++index < length) {
1488
- var entry = entries[index];
1489
- this.set(entry[0], entry[1]);
1490
- }
1491
- }
1492
-
1493
- // Add methods to `Hash`.
1494
- Hash.prototype.clear = _hashClear;
1495
- Hash.prototype['delete'] = _hashDelete;
1496
- Hash.prototype.get = _hashGet;
1497
- Hash.prototype.has = _hashHas;
1498
- Hash.prototype.set = _hashSet;
1499
-
1500
- var _Hash = Hash;
1501
-
1502
- /**
1503
- * Removes all key-value entries from the list cache.
1504
- *
1505
- * @private
1506
- * @name clear
1507
- * @memberOf ListCache
1508
- */
1509
- function listCacheClear() {
1510
- this.__data__ = [];
1511
- this.size = 0;
1512
- }
1513
-
1514
- var _listCacheClear = listCacheClear;
1515
-
1516
- /**
1517
- * Performs a
1518
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
1519
- * comparison between two values to determine if they are equivalent.
1520
- *
1521
- * @static
1522
- * @memberOf _
1523
- * @since 4.0.0
1524
- * @category Lang
1525
- * @param {*} value The value to compare.
1526
- * @param {*} other The other value to compare.
1527
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
1528
- * @example
1529
- *
1530
- * var object = { 'a': 1 };
1531
- * var other = { 'a': 1 };
1532
- *
1533
- * _.eq(object, object);
1534
- * // => true
1535
- *
1536
- * _.eq(object, other);
1537
- * // => false
1538
- *
1539
- * _.eq('a', 'a');
1540
- * // => true
1541
- *
1542
- * _.eq('a', Object('a'));
1543
- * // => false
1544
- *
1545
- * _.eq(NaN, NaN);
1546
- * // => true
1547
- */
1548
- function eq(value, other) {
1549
- return value === other || (value !== value && other !== other);
1550
- }
1551
-
1552
- var eq_1 = eq;
1553
-
1554
- /**
1555
- * Gets the index at which the `key` is found in `array` of key-value pairs.
1556
- *
1557
- * @private
1558
- * @param {Array} array The array to inspect.
1559
- * @param {*} key The key to search for.
1560
- * @returns {number} Returns the index of the matched value, else `-1`.
1561
- */
1562
- function assocIndexOf(array, key) {
1563
- var length = array.length;
1564
- while (length--) {
1565
- if (eq_1(array[length][0], key)) {
1566
- return length;
1567
- }
1568
- }
1569
- return -1;
1570
- }
1571
-
1572
- var _assocIndexOf = assocIndexOf;
1573
-
1574
- /** Used for built-in method references. */
1575
- var arrayProto = Array.prototype;
1576
-
1577
- /** Built-in value references. */
1578
- var splice = arrayProto.splice;
1579
-
1580
- /**
1581
- * Removes `key` and its value from the list cache.
1582
- *
1583
- * @private
1584
- * @name delete
1585
- * @memberOf ListCache
1586
- * @param {string} key The key of the value to remove.
1587
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1588
- */
1589
- function listCacheDelete(key) {
1590
- var data = this.__data__,
1591
- index = _assocIndexOf(data, key);
1592
-
1593
- if (index < 0) {
1594
- return false;
1595
- }
1596
- var lastIndex = data.length - 1;
1597
- if (index == lastIndex) {
1598
- data.pop();
1599
- } else {
1600
- splice.call(data, index, 1);
1601
- }
1602
- --this.size;
1603
- return true;
1604
- }
1605
-
1606
- var _listCacheDelete = listCacheDelete;
1607
-
1608
- /**
1609
- * Gets the list cache value for `key`.
1610
- *
1611
- * @private
1612
- * @name get
1613
- * @memberOf ListCache
1614
- * @param {string} key The key of the value to get.
1615
- * @returns {*} Returns the entry value.
1616
- */
1617
- function listCacheGet(key) {
1618
- var data = this.__data__,
1619
- index = _assocIndexOf(data, key);
1620
-
1621
- return index < 0 ? undefined : data[index][1];
1622
- }
1623
-
1624
- var _listCacheGet = listCacheGet;
1625
-
1626
- /**
1627
- * Checks if a list cache value for `key` exists.
1628
- *
1629
- * @private
1630
- * @name has
1631
- * @memberOf ListCache
1632
- * @param {string} key The key of the entry to check.
1633
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1634
- */
1635
- function listCacheHas(key) {
1636
- return _assocIndexOf(this.__data__, key) > -1;
1637
- }
1638
-
1639
- var _listCacheHas = listCacheHas;
1640
-
1641
- /**
1642
- * Sets the list cache `key` to `value`.
1643
- *
1644
- * @private
1645
- * @name set
1646
- * @memberOf ListCache
1647
- * @param {string} key The key of the value to set.
1648
- * @param {*} value The value to set.
1649
- * @returns {Object} Returns the list cache instance.
1650
- */
1651
- function listCacheSet(key, value) {
1652
- var data = this.__data__,
1653
- index = _assocIndexOf(data, key);
1654
-
1655
- if (index < 0) {
1656
- ++this.size;
1657
- data.push([key, value]);
1658
- } else {
1659
- data[index][1] = value;
1660
- }
1661
- return this;
1662
- }
1663
-
1664
- var _listCacheSet = listCacheSet;
1665
-
1666
- /**
1667
- * Creates an list cache object.
1668
- *
1669
- * @private
1670
- * @constructor
1671
- * @param {Array} [entries] The key-value pairs to cache.
1672
- */
1673
- function ListCache(entries) {
1674
- var index = -1,
1675
- length = entries == null ? 0 : entries.length;
1676
-
1677
- this.clear();
1678
- while (++index < length) {
1679
- var entry = entries[index];
1680
- this.set(entry[0], entry[1]);
1681
- }
1682
- }
1683
-
1684
- // Add methods to `ListCache`.
1685
- ListCache.prototype.clear = _listCacheClear;
1686
- ListCache.prototype['delete'] = _listCacheDelete;
1687
- ListCache.prototype.get = _listCacheGet;
1688
- ListCache.prototype.has = _listCacheHas;
1689
- ListCache.prototype.set = _listCacheSet;
1690
-
1691
- var _ListCache = ListCache;
1692
-
1693
- /* Built-in method references that are verified to be native. */
1694
- var Map = _getNative(_root, 'Map');
1695
-
1696
- var _Map = Map;
1697
-
1698
- /**
1699
- * Removes all key-value entries from the map.
1700
- *
1701
- * @private
1702
- * @name clear
1703
- * @memberOf MapCache
1704
- */
1705
- function mapCacheClear() {
1706
- this.size = 0;
1707
- this.__data__ = {
1708
- 'hash': new _Hash,
1709
- 'map': new (_Map || _ListCache),
1710
- 'string': new _Hash
1711
- };
1712
- }
1713
-
1714
- var _mapCacheClear = mapCacheClear;
1715
-
1716
- /**
1717
- * Checks if `value` is suitable for use as unique object key.
1718
- *
1719
- * @private
1720
- * @param {*} value The value to check.
1721
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
1722
- */
1723
- function isKeyable(value) {
1724
- var type = typeof value;
1725
- return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
1726
- ? (value !== '__proto__')
1727
- : (value === null);
1728
- }
1729
-
1730
- var _isKeyable = isKeyable;
1731
-
1732
- /**
1733
- * Gets the data for `map`.
1734
- *
1735
- * @private
1736
- * @param {Object} map The map to query.
1737
- * @param {string} key The reference key.
1738
- * @returns {*} Returns the map data.
1739
- */
1740
- function getMapData(map, key) {
1741
- var data = map.__data__;
1742
- return _isKeyable(key)
1743
- ? data[typeof key == 'string' ? 'string' : 'hash']
1744
- : data.map;
1745
- }
1746
-
1747
- var _getMapData = getMapData;
1748
-
1749
- /**
1750
- * Removes `key` and its value from the map.
1751
- *
1752
- * @private
1753
- * @name delete
1754
- * @memberOf MapCache
1755
- * @param {string} key The key of the value to remove.
1756
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1757
- */
1758
- function mapCacheDelete(key) {
1759
- var result = _getMapData(this, key)['delete'](key);
1760
- this.size -= result ? 1 : 0;
1761
- return result;
1762
- }
1763
-
1764
- var _mapCacheDelete = mapCacheDelete;
1765
-
1766
- /**
1767
- * Gets the map value for `key`.
1768
- *
1769
- * @private
1770
- * @name get
1771
- * @memberOf MapCache
1772
- * @param {string} key The key of the value to get.
1773
- * @returns {*} Returns the entry value.
1774
- */
1775
- function mapCacheGet(key) {
1776
- return _getMapData(this, key).get(key);
1777
- }
1778
-
1779
- var _mapCacheGet = mapCacheGet;
1780
-
1781
- /**
1782
- * Checks if a map value for `key` exists.
1783
- *
1784
- * @private
1785
- * @name has
1786
- * @memberOf MapCache
1787
- * @param {string} key The key of the entry to check.
1788
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1789
- */
1790
- function mapCacheHas(key) {
1791
- return _getMapData(this, key).has(key);
1792
- }
1793
-
1794
- var _mapCacheHas = mapCacheHas;
1795
-
1796
- /**
1797
- * Sets the map `key` to `value`.
1798
- *
1799
- * @private
1800
- * @name set
1801
- * @memberOf MapCache
1802
- * @param {string} key The key of the value to set.
1803
- * @param {*} value The value to set.
1804
- * @returns {Object} Returns the map cache instance.
1805
- */
1806
- function mapCacheSet(key, value) {
1807
- var data = _getMapData(this, key),
1808
- size = data.size;
1809
-
1810
- data.set(key, value);
1811
- this.size += data.size == size ? 0 : 1;
1812
- return this;
1813
- }
1814
-
1815
- var _mapCacheSet = mapCacheSet;
1816
-
1817
- /**
1818
- * Creates a map cache object to store key-value pairs.
1819
- *
1820
- * @private
1821
- * @constructor
1822
- * @param {Array} [entries] The key-value pairs to cache.
1823
- */
1824
- function MapCache(entries) {
1825
- var index = -1,
1826
- length = entries == null ? 0 : entries.length;
1827
-
1828
- this.clear();
1829
- while (++index < length) {
1830
- var entry = entries[index];
1831
- this.set(entry[0], entry[1]);
1832
- }
1833
- }
1834
-
1835
- // Add methods to `MapCache`.
1836
- MapCache.prototype.clear = _mapCacheClear;
1837
- MapCache.prototype['delete'] = _mapCacheDelete;
1838
- MapCache.prototype.get = _mapCacheGet;
1839
- MapCache.prototype.has = _mapCacheHas;
1840
- MapCache.prototype.set = _mapCacheSet;
1841
-
1842
- var _MapCache = MapCache;
1843
-
1844
- /** Error message constants. */
1845
- var FUNC_ERROR_TEXT = 'Expected a function';
1846
-
1847
- /**
1848
- * Creates a function that memoizes the result of `func`. If `resolver` is
1849
- * provided, it determines the cache key for storing the result based on the
1850
- * arguments provided to the memoized function. By default, the first argument
1851
- * provided to the memoized function is used as the map cache key. The `func`
1852
- * is invoked with the `this` binding of the memoized function.
1853
- *
1854
- * **Note:** The cache is exposed as the `cache` property on the memoized
1855
- * function. Its creation may be customized by replacing the `_.memoize.Cache`
1856
- * constructor with one whose instances implement the
1857
- * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
1858
- * method interface of `clear`, `delete`, `get`, `has`, and `set`.
1859
- *
1860
- * @static
1861
- * @memberOf _
1862
- * @since 0.1.0
1863
- * @category Function
1864
- * @param {Function} func The function to have its output memoized.
1865
- * @param {Function} [resolver] The function to resolve the cache key.
1866
- * @returns {Function} Returns the new memoized function.
1867
- * @example
1868
- *
1869
- * var object = { 'a': 1, 'b': 2 };
1870
- * var other = { 'c': 3, 'd': 4 };
1871
- *
1872
- * var values = _.memoize(_.values);
1873
- * values(object);
1874
- * // => [1, 2]
1875
- *
1876
- * values(other);
1877
- * // => [3, 4]
1878
- *
1879
- * object.a = 2;
1880
- * values(object);
1881
- * // => [1, 2]
1882
- *
1883
- * // Modify the result cache.
1884
- * values.cache.set(object, ['a', 'b']);
1885
- * values(object);
1886
- * // => ['a', 'b']
1887
- *
1888
- * // Replace `_.memoize.Cache`.
1889
- * _.memoize.Cache = WeakMap;
1890
- */
1891
- function memoize(func, resolver) {
1892
- if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
1893
- throw new TypeError(FUNC_ERROR_TEXT);
1894
- }
1895
- var memoized = function() {
1896
- var args = arguments,
1897
- key = resolver ? resolver.apply(this, args) : args[0],
1898
- cache = memoized.cache;
1899
-
1900
- if (cache.has(key)) {
1901
- return cache.get(key);
1902
- }
1903
- var result = func.apply(this, args);
1904
- memoized.cache = cache.set(key, result) || cache;
1905
- return result;
1906
- };
1907
- memoized.cache = new (memoize.Cache || _MapCache);
1908
- return memoized;
1909
- }
1910
-
1911
- // Expose `MapCache`.
1912
- memoize.Cache = _MapCache;
1913
-
1914
- var memoize_1 = memoize;
1915
-
1916
- /** Used as the maximum memoize cache size. */
1917
- var MAX_MEMOIZE_SIZE = 500;
1918
-
1919
- /**
1920
- * A specialized version of `_.memoize` which clears the memoized function's
1921
- * cache when it exceeds `MAX_MEMOIZE_SIZE`.
1922
- *
1923
- * @private
1924
- * @param {Function} func The function to have its output memoized.
1925
- * @returns {Function} Returns the new memoized function.
1926
- */
1927
- function memoizeCapped(func) {
1928
- var result = memoize_1(func, function(key) {
1929
- if (cache.size === MAX_MEMOIZE_SIZE) {
1930
- cache.clear();
1931
- }
1932
- return key;
1933
- });
1934
-
1935
- var cache = result.cache;
1936
- return result;
1937
- }
1938
-
1939
- var _memoizeCapped = memoizeCapped;
1940
-
1941
- /** Used to match property names within property paths. */
1942
- var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
1943
-
1944
- /** Used to match backslashes in property paths. */
1945
- var reEscapeChar = /\\(\\)?/g;
1946
-
1947
- /**
1948
- * Converts `string` to a property path array.
1949
- *
1950
- * @private
1951
- * @param {string} string The string to convert.
1952
- * @returns {Array} Returns the property path array.
1953
- */
1954
- var stringToPath = _memoizeCapped(function(string) {
1955
- var result = [];
1956
- if (string.charCodeAt(0) === 46 /* . */) {
1957
- result.push('');
1958
- }
1959
- string.replace(rePropName, function(match, number, quote, subString) {
1960
- result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
1961
- });
1962
- return result;
1963
- });
1964
-
1965
- var _stringToPath = stringToPath;
1966
-
1967
- /**
1968
- * A specialized version of `_.map` for arrays without support for iteratee
1969
- * shorthands.
1970
- *
1971
- * @private
1972
- * @param {Array} [array] The array to iterate over.
1973
- * @param {Function} iteratee The function invoked per iteration.
1974
- * @returns {Array} Returns the new mapped array.
1975
- */
1976
- function arrayMap(array, iteratee) {
1977
- var index = -1,
1978
- length = array == null ? 0 : array.length,
1979
- result = Array(length);
1980
-
1981
- while (++index < length) {
1982
- result[index] = iteratee(array[index], index, array);
1983
- }
1984
- return result;
1985
- }
1986
-
1987
- var _arrayMap = arrayMap;
1988
-
1989
- /** Used as references for various `Number` constants. */
1990
- var INFINITY$1 = 1 / 0;
1991
-
1992
- /** Used to convert symbols to primitives and strings. */
1993
- var symbolProto = _Symbol ? _Symbol.prototype : undefined,
1994
- symbolToString = symbolProto ? symbolProto.toString : undefined;
1995
-
1996
- /**
1997
- * The base implementation of `_.toString` which doesn't convert nullish
1998
- * values to empty strings.
1999
- *
2000
- * @private
2001
- * @param {*} value The value to process.
2002
- * @returns {string} Returns the string.
2003
- */
2004
- function baseToString(value) {
2005
- // Exit early for strings to avoid a performance hit in some environments.
2006
- if (typeof value == 'string') {
2007
- return value;
2008
- }
2009
- if (isArray_1(value)) {
2010
- // Recursively convert values (susceptible to call stack limits).
2011
- return _arrayMap(value, baseToString) + '';
2012
- }
2013
- if (isSymbol_1(value)) {
2014
- return symbolToString ? symbolToString.call(value) : '';
2015
- }
2016
- var result = (value + '');
2017
- return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
2018
- }
2019
-
2020
- var _baseToString = baseToString;
2021
-
2022
- /**
2023
- * Converts `value` to a string. An empty string is returned for `null`
2024
- * and `undefined` values. The sign of `-0` is preserved.
2025
- *
2026
- * @static
2027
- * @memberOf _
2028
- * @since 4.0.0
2029
- * @category Lang
2030
- * @param {*} value The value to convert.
2031
- * @returns {string} Returns the converted string.
2032
- * @example
2033
- *
2034
- * _.toString(null);
2035
- * // => ''
2036
- *
2037
- * _.toString(-0);
2038
- * // => '-0'
2039
- *
2040
- * _.toString([1, 2, 3]);
2041
- * // => '1,2,3'
2042
- */
2043
- function toString(value) {
2044
- return value == null ? '' : _baseToString(value);
2045
- }
2046
-
2047
- var toString_1 = toString;
2048
-
2049
- /**
2050
- * Casts `value` to a path array if it's not one.
2051
- *
2052
- * @private
2053
- * @param {*} value The value to inspect.
2054
- * @param {Object} [object] The object to query keys on.
2055
- * @returns {Array} Returns the cast property path array.
2056
- */
2057
- function castPath(value, object) {
2058
- if (isArray_1(value)) {
2059
- return value;
2060
- }
2061
- return _isKey(value, object) ? [value] : _stringToPath(toString_1(value));
2062
- }
2063
-
2064
- var _castPath = castPath;
2065
-
2066
- /** Used as references for various `Number` constants. */
2067
- var INFINITY = 1 / 0;
2068
-
2069
- /**
2070
- * Converts `value` to a string key if it's not a string or symbol.
2071
- *
2072
- * @private
2073
- * @param {*} value The value to inspect.
2074
- * @returns {string|symbol} Returns the key.
2075
- */
2076
- function toKey(value) {
2077
- if (typeof value == 'string' || isSymbol_1(value)) {
2078
- return value;
2079
- }
2080
- var result = (value + '');
2081
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
2082
- }
2083
-
2084
- var _toKey = toKey;
2085
-
2086
- /**
2087
- * The base implementation of `_.get` without support for default values.
2088
- *
2089
- * @private
2090
- * @param {Object} object The object to query.
2091
- * @param {Array|string} path The path of the property to get.
2092
- * @returns {*} Returns the resolved value.
2093
- */
2094
- function baseGet(object, path) {
2095
- path = _castPath(path, object);
2096
-
2097
- var index = 0,
2098
- length = path.length;
2099
-
2100
- while (object != null && index < length) {
2101
- object = object[_toKey(path[index++])];
2102
- }
2103
- return (index && index == length) ? object : undefined;
2104
- }
2105
-
2106
- var _baseGet = baseGet;
2107
-
2108
- /**
2109
- * Gets the value at `path` of `object`. If the resolved value is
2110
- * `undefined`, the `defaultValue` is returned in its place.
2111
- *
2112
- * @static
2113
- * @memberOf _
2114
- * @since 3.7.0
2115
- * @category Object
2116
- * @param {Object} object The object to query.
2117
- * @param {Array|string} path The path of the property to get.
2118
- * @param {*} [defaultValue] The value returned for `undefined` resolved values.
2119
- * @returns {*} Returns the resolved value.
2120
- * @example
2121
- *
2122
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
2123
- *
2124
- * _.get(object, 'a[0].b.c');
2125
- * // => 3
2126
- *
2127
- * _.get(object, ['a', '0', 'b', 'c']);
2128
- * // => 3
2129
- *
2130
- * _.get(object, 'a.b.c', 'default');
2131
- * // => 'default'
2132
- */
2133
- function get(object, path, defaultValue) {
2134
- var result = object == null ? undefined : _baseGet(object, path);
2135
- return result === undefined ? defaultValue : result;
2136
- }
2137
-
2138
- var get_1 = get;
2139
-
2140
- /**
2141
- * A specialized version of `_.reduce` for arrays without support for
2142
- * iteratee shorthands.
2143
- *
2144
- * @private
2145
- * @param {Array} [array] The array to iterate over.
2146
- * @param {Function} iteratee The function invoked per iteration.
2147
- * @param {*} [accumulator] The initial value.
2148
- * @param {boolean} [initAccum] Specify using the first element of `array` as
2149
- * the initial value.
2150
- * @returns {*} Returns the accumulated value.
2151
- */
2152
- function arrayReduce(array, iteratee, accumulator, initAccum) {
2153
- var index = -1,
2154
- length = array == null ? 0 : array.length;
2155
-
2156
- if (initAccum && length) {
2157
- accumulator = array[++index];
2158
- }
2159
- while (++index < length) {
2160
- accumulator = iteratee(accumulator, array[index], index, array);
2161
- }
2162
- return accumulator;
2163
- }
2164
-
2165
- var _arrayReduce = arrayReduce;
2166
-
2167
- /**
2168
- * The base implementation of `_.propertyOf` without support for deep paths.
2169
- *
2170
- * @private
2171
- * @param {Object} object The object to query.
2172
- * @returns {Function} Returns the new accessor function.
2173
- */
2174
- function basePropertyOf(object) {
2175
- return function(key) {
2176
- return object == null ? undefined : object[key];
2177
- };
2178
- }
2179
-
2180
- var _basePropertyOf = basePropertyOf;
2181
-
2182
- /** Used to map Latin Unicode letters to basic Latin letters. */
2183
- var deburredLetters = {
2184
- // Latin-1 Supplement block.
2185
- '\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
2186
- '\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
2187
- '\xc7': 'C', '\xe7': 'c',
2188
- '\xd0': 'D', '\xf0': 'd',
2189
- '\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
2190
- '\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
2191
- '\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
2192
- '\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i',
2193
- '\xd1': 'N', '\xf1': 'n',
2194
- '\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
2195
- '\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
2196
- '\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
2197
- '\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
2198
- '\xdd': 'Y', '\xfd': 'y', '\xff': 'y',
2199
- '\xc6': 'Ae', '\xe6': 'ae',
2200
- '\xde': 'Th', '\xfe': 'th',
2201
- '\xdf': 'ss',
2202
- // Latin Extended-A block.
2203
- '\u0100': 'A', '\u0102': 'A', '\u0104': 'A',
2204
- '\u0101': 'a', '\u0103': 'a', '\u0105': 'a',
2205
- '\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C',
2206
- '\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c',
2207
- '\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd',
2208
- '\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E',
2209
- '\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e',
2210
- '\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G',
2211
- '\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g',
2212
- '\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h',
2213
- '\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I',
2214
- '\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i',
2215
- '\u0134': 'J', '\u0135': 'j',
2216
- '\u0136': 'K', '\u0137': 'k', '\u0138': 'k',
2217
- '\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L',
2218
- '\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l',
2219
- '\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N',
2220
- '\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n',
2221
- '\u014c': 'O', '\u014e': 'O', '\u0150': 'O',
2222
- '\u014d': 'o', '\u014f': 'o', '\u0151': 'o',
2223
- '\u0154': 'R', '\u0156': 'R', '\u0158': 'R',
2224
- '\u0155': 'r', '\u0157': 'r', '\u0159': 'r',
2225
- '\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S',
2226
- '\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's',
2227
- '\u0162': 'T', '\u0164': 'T', '\u0166': 'T',
2228
- '\u0163': 't', '\u0165': 't', '\u0167': 't',
2229
- '\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U',
2230
- '\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u',
2231
- '\u0174': 'W', '\u0175': 'w',
2232
- '\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y',
2233
- '\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z',
2234
- '\u017a': 'z', '\u017c': 'z', '\u017e': 'z',
2235
- '\u0132': 'IJ', '\u0133': 'ij',
2236
- '\u0152': 'Oe', '\u0153': 'oe',
2237
- '\u0149': "'n", '\u017f': 's'
2238
- };
2239
-
2240
- /**
2241
- * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
2242
- * letters to basic Latin letters.
2243
- *
2244
- * @private
2245
- * @param {string} letter The matched letter to deburr.
2246
- * @returns {string} Returns the deburred letter.
2247
- */
2248
- var deburrLetter = _basePropertyOf(deburredLetters);
2249
-
2250
- var _deburrLetter = deburrLetter;
2251
-
2252
- /** Used to match Latin Unicode letters (excluding mathematical operators). */
2253
- var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
2254
-
2255
- /** Used to compose unicode character classes. */
2256
- var rsComboMarksRange$1 = '\\u0300-\\u036f',
2257
- reComboHalfMarksRange$1 = '\\ufe20-\\ufe2f',
2258
- rsComboSymbolsRange$1 = '\\u20d0-\\u20ff',
2259
- rsComboRange$1 = rsComboMarksRange$1 + reComboHalfMarksRange$1 + rsComboSymbolsRange$1;
2260
-
2261
- /** Used to compose unicode capture groups. */
2262
- var rsCombo$1 = '[' + rsComboRange$1 + ']';
2263
-
2264
- /**
2265
- * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
2266
- * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
2267
- */
2268
- var reComboMark = RegExp(rsCombo$1, 'g');
2269
-
2270
- /**
2271
- * Deburrs `string` by converting
2272
- * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
2273
- * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
2274
- * letters to basic Latin letters and removing
2275
- * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
2276
- *
2277
- * @static
2278
- * @memberOf _
2279
- * @since 3.0.0
2280
- * @category String
2281
- * @param {string} [string=''] The string to deburr.
2282
- * @returns {string} Returns the deburred string.
2283
- * @example
2284
- *
2285
- * _.deburr('déjà vu');
2286
- * // => 'deja vu'
2287
- */
2288
- function deburr(string) {
2289
- string = toString_1(string);
2290
- return string && string.replace(reLatin, _deburrLetter).replace(reComboMark, '');
2291
- }
2292
-
2293
- var deburr_1 = deburr;
2294
-
2295
- /** Used to match words composed of alphanumeric characters. */
2296
- var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
2297
-
2298
- /**
2299
- * Splits an ASCII `string` into an array of its words.
2300
- *
2301
- * @private
2302
- * @param {string} The string to inspect.
2303
- * @returns {Array} Returns the words of `string`.
2304
- */
2305
- function asciiWords(string) {
2306
- return string.match(reAsciiWord) || [];
2307
- }
2308
-
2309
- var _asciiWords = asciiWords;
2310
-
2311
- /** Used to detect strings that need a more robust regexp to match words. */
2312
- var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
2313
-
2314
- /**
2315
- * Checks if `string` contains a word composed of Unicode symbols.
2316
- *
2317
- * @private
2318
- * @param {string} string The string to inspect.
2319
- * @returns {boolean} Returns `true` if a word is found, else `false`.
2320
- */
2321
- function hasUnicodeWord(string) {
2322
- return reHasUnicodeWord.test(string);
2323
- }
2324
-
2325
- var _hasUnicodeWord = hasUnicodeWord;
2326
-
2327
- /** Used to compose unicode character classes. */
2328
- var rsAstralRange = '\\ud800-\\udfff',
2329
- rsComboMarksRange = '\\u0300-\\u036f',
2330
- reComboHalfMarksRange = '\\ufe20-\\ufe2f',
2331
- rsComboSymbolsRange = '\\u20d0-\\u20ff',
2332
- rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
2333
- rsDingbatRange = '\\u2700-\\u27bf',
2334
- rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff',
2335
- rsMathOpRange = '\\xac\\xb1\\xd7\\xf7',
2336
- rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
2337
- rsPunctuationRange = '\\u2000-\\u206f',
2338
- rsSpaceRange = ' \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000',
2339
- rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
2340
- rsVarRange = '\\ufe0e\\ufe0f',
2341
- rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
2342
-
2343
- /** Used to compose unicode capture groups. */
2344
- var rsApos$1 = "['\u2019]",
2345
- rsBreak = '[' + rsBreakRange + ']',
2346
- rsCombo = '[' + rsComboRange + ']',
2347
- rsDigits = '\\d+',
2348
- rsDingbat = '[' + rsDingbatRange + ']',
2349
- rsLower = '[' + rsLowerRange + ']',
2350
- rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',
2351
- rsFitz = '\\ud83c[\\udffb-\\udfff]',
2352
- rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
2353
- rsNonAstral = '[^' + rsAstralRange + ']',
2354
- rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
2355
- rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
2356
- rsUpper = '[' + rsUpperRange + ']',
2357
- rsZWJ = '\\u200d';
2358
-
2359
- /** Used to compose unicode regexes. */
2360
- var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',
2361
- rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',
2362
- rsOptContrLower = '(?:' + rsApos$1 + '(?:d|ll|m|re|s|t|ve))?',
2363
- rsOptContrUpper = '(?:' + rsApos$1 + '(?:D|LL|M|RE|S|T|VE))?',
2364
- reOptMod = rsModifier + '?',
2365
- rsOptVar = '[' + rsVarRange + ']?',
2366
- rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
2367
- rsOrdLower = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',
2368
- rsOrdUpper = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',
2369
- rsSeq = rsOptVar + reOptMod + rsOptJoin,
2370
- rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq;
2371
-
2372
- /** Used to match complex or compound words. */
2373
- var reUnicodeWord = RegExp([
2374
- rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',
2375
- rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',
2376
- rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,
2377
- rsUpper + '+' + rsOptContrUpper,
2378
- rsOrdUpper,
2379
- rsOrdLower,
2380
- rsDigits,
2381
- rsEmoji
2382
- ].join('|'), 'g');
2383
-
2384
- /**
2385
- * Splits a Unicode `string` into an array of its words.
2386
- *
2387
- * @private
2388
- * @param {string} The string to inspect.
2389
- * @returns {Array} Returns the words of `string`.
2390
- */
2391
- function unicodeWords(string) {
2392
- return string.match(reUnicodeWord) || [];
2393
- }
2394
-
2395
- var _unicodeWords = unicodeWords;
2396
-
2397
- /**
2398
- * Splits `string` into an array of its words.
2399
- *
2400
- * @static
2401
- * @memberOf _
2402
- * @since 3.0.0
2403
- * @category String
2404
- * @param {string} [string=''] The string to inspect.
2405
- * @param {RegExp|string} [pattern] The pattern to match words.
2406
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
2407
- * @returns {Array} Returns the words of `string`.
2408
- * @example
2409
- *
2410
- * _.words('fred, barney, & pebbles');
2411
- * // => ['fred', 'barney', 'pebbles']
2412
- *
2413
- * _.words('fred, barney, & pebbles', /[^, ]+/g);
2414
- * // => ['fred', 'barney', '&', 'pebbles']
2415
- */
2416
- function words(string, pattern, guard) {
2417
- string = toString_1(string);
2418
- pattern = guard ? undefined : pattern;
2419
-
2420
- if (pattern === undefined) {
2421
- return _hasUnicodeWord(string) ? _unicodeWords(string) : _asciiWords(string);
2422
- }
2423
- return string.match(pattern) || [];
2424
- }
2425
-
2426
- var words_1 = words;
2427
-
2428
- /** Used to compose unicode capture groups. */
2429
- var rsApos = "['\u2019]";
2430
-
2431
- /** Used to match apostrophes. */
2432
- var reApos = RegExp(rsApos, 'g');
2433
-
2434
- /**
2435
- * Creates a function like `_.camelCase`.
2436
- *
2437
- * @private
2438
- * @param {Function} callback The function to combine each word.
2439
- * @returns {Function} Returns the new compounder function.
2440
- */
2441
- function createCompounder(callback) {
2442
- return function(string) {
2443
- return _arrayReduce(words_1(deburr_1(string).replace(reApos, '')), callback, '');
2444
- };
2445
- }
2446
-
2447
- var _createCompounder = createCompounder;
2448
-
2449
- /**
2450
- * Converts `string`, as space separated words, to upper case.
2451
- *
2452
- * @static
2453
- * @memberOf _
2454
- * @since 4.0.0
2455
- * @category String
2456
- * @param {string} [string=''] The string to convert.
2457
- * @returns {string} Returns the upper cased string.
2458
- * @example
2459
- *
2460
- * _.upperCase('--foo-bar');
2461
- * // => 'FOO BAR'
2462
- *
2463
- * _.upperCase('fooBar');
2464
- * // => 'FOO BAR'
2465
- *
2466
- * _.upperCase('__foo_bar__');
2467
- * // => 'FOO BAR'
2468
- */
2469
- var upperCase = _createCompounder(function(result, word, index) {
2470
- return result + (index ? ' ' : '') + word.toUpperCase();
2471
- });
2472
-
2473
- var upperCase_1 = upperCase;
2474
-
2475
- /**
2476
- * Converts `string`, as space separated words, to lower case.
2477
- *
2478
- * @static
2479
- * @memberOf _
2480
- * @since 4.0.0
2481
- * @category String
2482
- * @param {string} [string=''] The string to convert.
2483
- * @returns {string} Returns the lower cased string.
2484
- * @example
2485
- *
2486
- * _.lowerCase('--Foo-Bar--');
2487
- * // => 'foo bar'
2488
- *
2489
- * _.lowerCase('fooBar');
2490
- * // => 'foo bar'
2491
- *
2492
- * _.lowerCase('__FOO_BAR__');
2493
- * // => 'foo bar'
2494
- */
2495
- var lowerCase = _createCompounder(function(result, word, index) {
2496
- return result + (index ? ' ' : '') + word.toLowerCase();
2497
- });
2498
-
2499
- var lowerCase_1 = lowerCase;
2500
-
2501
46
  function truncate() {
2502
47
  var string = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
2503
48
  var limit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 60;
@@ -2524,7 +69,7 @@ var timestampToFormat = function timestampToFormat(value, unit, suffix, timestam
2524
69
  var localizedMonth = month;
2525
70
 
2526
71
  if (isUpperCase) {
2527
- localizedMonth = upperCase_1(month);
72
+ localizedMonth = lodash.upperCase(month);
2528
73
  }
2529
74
 
2530
75
  var year = dateTime.getFullYear();
@@ -2537,7 +82,7 @@ var timestampToFormat = function timestampToFormat(value, unit, suffix, timestam
2537
82
  var timetoShow;
2538
83
 
2539
84
  if (localizedMonths) {
2540
- localizedMonth = get_1(localizedMonths, [lowerCase_1(month)]) || month;
85
+ localizedMonth = lodash.get(localizedMonths, [lodash.lowerCase(month)]) || month;
2541
86
  }
2542
87
 
2543
88
  if (localizedMeridiem) {
@@ -2567,17 +112,17 @@ function formatter(value, unit, suffix, date, config) {
2567
112
  var showDateForUnits = ["day", "week", "month", "year"]; // suffix here refers to ago
2568
113
  // unit here refers to seconds, minute, minutes,...
2569
114
 
2570
- var localizedSuffix = get_1(config, ["localizedPublishTime", suffix]) || suffix;
115
+ var localizedSuffix = lodash.get(config, ["localizedPublishTime", suffix]) || suffix;
2571
116
  var localizedUnitOfTime;
2572
117
 
2573
118
  if (unit === "hour" && value > 23 || showDateForUnits.indexOf(unit) !== -1) {
2574
119
  return timestampToFormat(value, unit, suffix, date, config);
2575
120
  } else if (value > 1) {
2576
- localizedUnitOfTime = get_1(config, ["localizedPublishTime", "".concat(unit, "s")]) || "".concat(unit, "s");
121
+ localizedUnitOfTime = lodash.get(config, ["localizedPublishTime", "".concat(unit, "s")]) || "".concat(unit, "s");
2577
122
  return "".concat(value, " ").concat(localizedUnitOfTime, " ").concat(localizedSuffix);
2578
123
  }
2579
124
 
2580
- localizedUnitOfTime = get_1(config, ["localizedPublishTime", unit]) || unit;
125
+ localizedUnitOfTime = lodash.get(config, ["localizedPublishTime", unit]) || unit;
2581
126
  return "".concat(value, " ").concat(localizedUnitOfTime, " ").concat(localizedSuffix, " ");
2582
127
  }
2583
128
 
@@ -2630,10 +175,10 @@ var clientWidths = {
2630
175
  tablet: 1024
2631
176
  };
2632
177
  var clientWidth = function clientWidth(device) {
2633
- var foundDeviceWidth = get_1(clientWidths, device);
178
+ var foundDeviceWidth = lodash.get(clientWidths, device);
2634
179
 
2635
180
  if (foundDeviceWidth) {
2636
- return get_1(global, "document.documentElement.clientWidth") <= foundDeviceWidth;
181
+ return lodash.get(global, "document.documentElement.clientWidth") <= foundDeviceWidth;
2637
182
  }
2638
183
 
2639
184
  return false;
@@ -2675,7 +220,7 @@ var getSlug = function getSlug(collection) {
2675
220
  var isSection = collection.template === "section";
2676
221
 
2677
222
  if (isSection) {
2678
- var sectionId = get_1(collection, ["metadata", "section", "0", "id"], "");
223
+ var sectionId = lodash.get(collection, ["metadata", "section", "0", "id"], "");
2679
224
  var sections = config.sections;
2680
225
  var section = sections && sections.find(function (section) {
2681
226
  return section.id === sectionId;
@@ -2691,11 +236,11 @@ function isExternalStory() {
2691
236
  storyTemplate = _story$storyTemplate === void 0 ? "" : _story$storyTemplate,
2692
237
  _story$metadata = story.metadata,
2693
238
  metadata = _story$metadata === void 0 ? {} : _story$metadata;
2694
- return storyTemplate === "news-elsewhere" ? get_1(metadata, ["reference-url"], "") : "";
239
+ return storyTemplate === "news-elsewhere" ? lodash.get(metadata, ["reference-url"], "") : "";
2695
240
  } // Adds target='_blank' attribute to anchor tags if not present
2696
241
  var isEmpty = function isEmpty(value) {
2697
242
  return value == null || // From standard.js: Always use === - but value == null is allowed to check null || undefined
2698
- _typeof(value) === "object" && Object.entries(value).length === 0 && value.constructor === Object || typeof value === "string" && value.trim().length === 0;
243
+ _typeof__default["default"](value) === "object" && Object.entries(value).length === 0 && value.constructor === Object || typeof value === "string" && value.trim().length === 0;
2699
244
  };
2700
245
  PropTypes__default["default"].shape({
2701
246
  "sketches-host": PropTypes__default["default"].string,
@@ -2709,7 +254,7 @@ PropTypes__default["default"].shape({
2709
254
  });
2710
255
  var getStoryUrl = function getStoryUrl(story) {
2711
256
  var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
2712
- return get_1(story, ["story-template"]) === "news-elsewhere" ? get_1(story, ["metadata", "reference-url"], "") : story.url || defaultValue;
257
+ return lodash.get(story, ["story-template"]) === "news-elsewhere" ? lodash.get(story, ["metadata", "reference-url"], "") : story.url || defaultValue;
2713
258
  };
2714
259
  var navigateTo = function navigateTo(dispatch) {
2715
260
  var url = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
@@ -2767,67 +312,6 @@ var getTimeStamp = function getTimeStamp(date, _formatter) {
2767
312
  });
2768
313
  };
2769
314
 
2770
- function _arrayWithHoles(arr) {
2771
- if (Array.isArray(arr)) return arr;
2772
- }
2773
-
2774
- function _iterableToArrayLimit(arr, i) {
2775
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
2776
-
2777
- if (_i == null) return;
2778
- var _arr = [];
2779
- var _n = true;
2780
- var _d = false;
2781
-
2782
- var _s, _e;
2783
-
2784
- try {
2785
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
2786
- _arr.push(_s.value);
2787
-
2788
- if (i && _arr.length === i) break;
2789
- }
2790
- } catch (err) {
2791
- _d = true;
2792
- _e = err;
2793
- } finally {
2794
- try {
2795
- if (!_n && _i["return"] != null) _i["return"]();
2796
- } finally {
2797
- if (_d) throw _e;
2798
- }
2799
- }
2800
-
2801
- return _arr;
2802
- }
2803
-
2804
- function _arrayLikeToArray(arr, len) {
2805
- if (len == null || len > arr.length) len = arr.length;
2806
-
2807
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
2808
- arr2[i] = arr[i];
2809
- }
2810
-
2811
- return arr2;
2812
- }
2813
-
2814
- function _unsupportedIterableToArray(o, minLen) {
2815
- if (!o) return;
2816
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
2817
- var n = Object.prototype.toString.call(o).slice(8, -1);
2818
- if (n === "Object" && o.constructor) n = o.constructor.name;
2819
- if (n === "Map" || n === "Set") return Array.from(o);
2820
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
2821
- }
2822
-
2823
- function _nonIterableRest() {
2824
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2825
- }
2826
-
2827
- function _slicedToArray(arr, i) {
2828
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
2829
- }
2830
-
2831
315
  var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
2832
316
  var _ref$width = _ref.width,
2833
317
  width = _ref$width === void 0 ? 40 : _ref$width,
@@ -2968,7 +452,7 @@ var HeroImage = function HeroImage(_ref) {
2968
452
  return null;
2969
453
  } : _config$StoryTemplate;
2970
454
  var showImagePlaceholder = reactRedux.useSelector(function (state) {
2971
- return get_1(state, ["qt", "config", "showPlaceholder"]);
455
+ return lodash.get(state, ["qt", "config", "showPlaceholder"]);
2972
456
  });
2973
457
  var getPlaceholderStyleName = showImagePlaceholder ? "placeholder" : "";
2974
458
  var fullBleed = FullBleed ? "" : "with-padding";
@@ -2977,7 +461,7 @@ var HeroImage = function HeroImage(_ref) {
2977
461
  var heroImageMobClasses = isHorizontalMobile ? "right-padding-mob" : "";
2978
462
 
2979
463
  var getPadding = function getPadding(aspectRatio) {
2980
- var _aspectRatio = _slicedToArray(aspectRatio, 2),
464
+ var _aspectRatio = _slicedToArray__default["default"](aspectRatio, 2),
2981
465
  height = _aspectRatio[0],
2982
466
  width = _aspectRatio[1];
2983
467
 
@@ -2989,7 +473,7 @@ var HeroImage = function HeroImage(_ref) {
2989
473
  return 0;
2990
474
  };
2991
475
 
2992
- var _aspectRatio2 = _slicedToArray(aspectRatio, 2),
476
+ var _aspectRatio2 = _slicedToArray__default["default"](aspectRatio, 2),
2993
477
  mobileAspectRatio = _aspectRatio2[0],
2994
478
  _aspectRatio2$ = _aspectRatio2[1],
2995
479
  desktopAspectRatio = _aspectRatio2$ === void 0 ? mobileAspectRatio : _aspectRatio2$;
@@ -2997,8 +481,8 @@ var HeroImage = function HeroImage(_ref) {
2997
481
  var isMobile = clientWidth("mobile");
2998
482
  var imageAspectRatio = isMobile ? mobileAspectRatio : desktopAspectRatio;
2999
483
  var imagePadding = isMobile ? getPadding(mobileAspectRatio) : getPadding(desktopAspectRatio);
3000
- var slug = get_1(story, ["hero-image-s3-key"]) || get_1(story, ["alternative", "home", "default", "hero-image", "hero-image-s3-key"]);
3001
- var hyperLink = get_1(story, ["hero-image-hyperlink"], "");
484
+ var slug = lodash.get(story, ["hero-image-s3-key"]) || lodash.get(story, ["alternative", "home", "default", "hero-image", "hero-image-s3-key"]);
485
+ var hyperLink = lodash.get(story, ["hero-image-hyperlink"], "");
3002
486
 
3003
487
  var fallbackImage = function fallbackImage() {
3004
488
  if (!slug) {
@@ -3007,7 +491,7 @@ var HeroImage = function HeroImage(_ref) {
3007
491
  style: {
3008
492
  paddingTop: imagePadding + "%"
3009
493
  },
3010
- className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$f)
494
+ className: "arr--responsive-hero-image " + _getClassName__default["default"]("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$f)
3011
495
  }, /*#__PURE__*/React__default["default"].createElement("img", {
3012
496
  className: "qt-image",
3013
497
  "data-src": "".concat(fallbackImageUrl),
@@ -3020,7 +504,7 @@ var HeroImage = function HeroImage(_ref) {
3020
504
  style: {
3021
505
  paddingTop: imagePadding + "%"
3022
506
  },
3023
- className: "arr--fallback-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$f)
507
+ className: "arr--fallback-hero-image " + _getClassName__default["default"]("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$f)
3024
508
  }, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
3025
509
  storyTemplate: story["story-template"]
3026
510
  }), /*#__PURE__*/React__default["default"].createElement(FallbackImage, null)) : null);
@@ -3030,7 +514,7 @@ var HeroImage = function HeroImage(_ref) {
3030
514
  style: {
3031
515
  paddingTop: imagePadding + "%"
3032
516
  },
3033
- className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$f)
517
+ className: "arr--responsive-hero-image " + _getClassName__default["default"]("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$f)
3034
518
  }, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
3035
519
  storyTemplate: story["story-template"]
3036
520
  }), /*#__PURE__*/React__default["default"].createElement(components.ResponsiveHeroImage, {
@@ -3049,13 +533,13 @@ var HeroImage = function HeroImage(_ref) {
3049
533
 
3050
534
  return story && (isStoryPageImage ? /*#__PURE__*/React__default["default"].createElement("div", {
3051
535
  "data-test-id": "arr--hero-image",
3052
- className: "arr--hero-image " + _getClassName("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap$f)
536
+ className: "arr--hero-image " + _getClassName__default["default"]("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap$f)
3053
537
  }, fallbackImage()) : /*#__PURE__*/React__default["default"].createElement(components.Link, {
3054
538
  "data-test-id": "arr--hero-image",
3055
539
  href: getStoryUrl(story, "/".concat(story.slug)),
3056
540
  externalLink: isExternalStory(story),
3057
541
  "aria-label": "fallback-hero-image",
3058
- className: "arr--hero-image " + _getClassName("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap$f)
542
+ className: "arr--hero-image " + _getClassName__default["default"]("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap$f)
3059
543
  }, fallbackImage()));
3060
544
  };
3061
545
  HeroImage.propTypes = {
@@ -3123,7 +607,7 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
3123
607
  _ref$navigate = _ref.navigate,
3124
608
  navigate = _ref$navigate === void 0 ? true : _ref$navigate;
3125
609
  var collectionTitle = useStateValue() || {};
3126
- var showRowTitle = get_1(collectionTitle, ["showRowTitle"], true);
610
+ var showRowTitle = lodash.get(collectionTitle, ["showRowTitle"], true);
3127
611
  var supportedTemplates = ["borderLeft", "borderBottom", "crossLine", "borderBottomFull"];
3128
612
  var templateStyle = supportedTemplates.includes(collectionNameTemplate) ? " collection-".concat(collectionNameTemplate) : "";
3129
613
  var slug = navigate && collection && getSlug(collection, config) || "";
@@ -3199,7 +683,7 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
3199
683
  borderBottom: borderBottomFullStyle
3200
684
  },
3201
685
  "data-test-id": "collection-name",
3202
- className: ("arr--collection-name arrow-component ".concat(templateStyle) ? "arr--collection-name arrow-component ".concat(templateStyle) + " " : "") + _getClassName("collection ".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$e)
686
+ className: ("arr--collection-name arrow-component ".concat(templateStyle) ? "arr--collection-name arrow-component ".concat(templateStyle) + " " : "") + _getClassName__default["default"]("collection ".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$e)
3203
687
  }, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
3204
688
  className: "arr-collection-name-border-left collection-name-m_border-left__3_pYw",
3205
689
  style: {
@@ -3236,7 +720,7 @@ CollectionNameBase.defaultProps = {
3236
720
 
3237
721
  function mapStateToProps$1(state) {
3238
722
  return {
3239
- config: get_1(state, ["qt", "config"], {})
723
+ config: lodash.get(state, ["qt", "config"], {})
3240
724
  };
3241
725
  }
3242
726
 
@@ -3476,8 +960,8 @@ var Headline = function Headline(_ref) {
3476
960
  enablePremiumStoryIcon = _premiumStoryIconConf3 === void 0 ? false : _premiumStoryIconConf3,
3477
961
  _premiumStoryIconConf4 = premiumStoryIconConfig.showLiveIcon,
3478
962
  showLiveIcon = _premiumStoryIconConf4 === void 0 ? false : _premiumStoryIconConf4;
3479
- var alternateHeadline = get_1(story, ["alternative", "home", "default", "headline"]);
3480
- var premiumStory = enablePremiumStoryIcon && get_1(story, ["access"]) === "subscription";
963
+ var alternateHeadline = lodash.get(story, ["alternative", "home", "default", "headline"]);
964
+ var premiumStory = enablePremiumStoryIcon && lodash.get(story, ["access"]) === "subscription";
3481
965
  var headline = alternateHeadline || story.headline;
3482
966
  var HeaderTag = "h" + headerLevel;
3483
967
 
@@ -3503,10 +987,10 @@ var Headline = function Headline(_ref) {
3503
987
  var textColor = getTextColor(configData.theme);
3504
988
  var wrapperClass = premiumStory ? "wrapper" : "";
3505
989
  var iconSize = "24px";
3506
- var enableLiveIcon = showLiveIcon && story["story-template"] === "live-blog" && !get_1(story, ["metadata", "is-closed"], false);
990
+ var enableLiveIcon = showLiveIcon && story["story-template"] === "live-blog" && !lodash.get(story, ["metadata", "is-closed"], false);
3507
991
  return /*#__PURE__*/React__default["default"].createElement("div", {
3508
992
  "data-test-id": "headline",
3509
- className: "arrow-component arr--headline " + _getClassName(wrapperClass, _styleModuleImportMap$d)
993
+ className: "arrow-component arr--headline " + _getClassName__default["default"](wrapperClass, _styleModuleImportMap$d)
3510
994
  }, premiumStory && /*#__PURE__*/React__default["default"].createElement(PremiumStoryIcon, {
3511
995
  width: iconSize,
3512
996
  height: iconSize,
@@ -3518,9 +1002,9 @@ var Headline = function Headline(_ref) {
3518
1002
  externalLink: isExternalStory(story),
3519
1003
  "aria-label": "headline"
3520
1004
  }, /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
3521
- className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$d)
1005
+ className: _getClassName__default["default"]("headline ".concat(textColor), _styleModuleImportMap$d)
3522
1006
  }, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
3523
- className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$d)
1007
+ className: _getClassName__default["default"]("headline ".concat(textColor), _styleModuleImportMap$d)
3524
1008
  }, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline));
3525
1009
  };
3526
1010
  Headline.propTypes = {
@@ -3561,9 +1045,9 @@ var SectionTag = function SectionTag(_ref) {
3561
1045
  borderColor = _ref$borderColor === void 0 ? "" : _ref$borderColor,
3562
1046
  isLightTheme = _ref.isLightTheme;
3563
1047
  var config = useStateValue() || {};
3564
- var isSection = get_1(config, ["showSection"], true);
3565
- var templateFromRowContext = get_1(config, ["sectionTagTemplate"]);
3566
- var section = get_1(story, ["sections", 0], "");
1048
+ var isSection = lodash.get(config, ["showSection"], true);
1049
+ var templateFromRowContext = lodash.get(config, ["sectionTagTemplate"]);
1050
+ var section = lodash.get(story, ["sections", 0], "");
3567
1051
  var supportedTemplates = ["borderBottomSml", "borderLeft", "solid"];
3568
1052
  var getUrl = section ? section["section-url"] : "/";
3569
1053
  var colorToApplyContrast = template === "solid" || templateFromRowContext === "solid" ? borderColor : config.theme;
@@ -3585,7 +1069,7 @@ var SectionTag = function SectionTag(_ref) {
3585
1069
  style: {
3586
1070
  backgroundColor: templateStyle.includes("section-solid") ? sectionTagBorderColor : ""
3587
1071
  },
3588
- className: "section-tag arrow-component " + _getClassName("".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$c)
1072
+ className: "section-tag arrow-component " + _getClassName__default["default"]("".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$c)
3589
1073
  }, templateStyle.includes("section-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
3590
1074
  className: "section-m_border-left__2oUyp",
3591
1075
  style: {
@@ -3628,13 +1112,13 @@ var TimeStamp = function TimeStamp(_ref) {
3628
1112
  _ref$config = _ref.config,
3629
1113
  config = _ref$config === void 0 ? {} : _ref$config;
3630
1114
  var configState = useStateValue() || {};
3631
- var isTime = get_1(config, ["showTime"], get_1(configState, ["showTime"], true));
1115
+ var isTime = lodash.get(config, ["showTime"], lodash.get(configState, ["showTime"], true));
3632
1116
  var time = story["last-published-at"] || story["first-published-at"];
3633
1117
  var isBottomClasses = isBottom ? "bottom-fix" : "";
3634
1118
  var textColor = getTextColor(configState.theme);
3635
1119
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isTime && /*#__PURE__*/React__default["default"].createElement("div", {
3636
1120
  "data-test-id": "publish-time",
3637
- className: "time arr--publish-time " + _getClassName("time ".concat(textColor, " ").concat(isBottomClasses), _styleModuleImportMap$b)
1121
+ className: "time arr--publish-time " + _getClassName__default["default"]("time ".concat(textColor, " ").concat(isBottomClasses), _styleModuleImportMap$b)
3638
1122
  }, /*#__PURE__*/React__default["default"].createElement("div", {
3639
1123
  className: "timestamp-m_time-wrapper__3O2lM"
3640
1124
  }, getTimeStamp(time, formatter, config))));
@@ -3669,9 +1153,9 @@ var AuthorBase = function AuthorBase(_ref) {
3669
1153
  _ref$config = _ref.config,
3670
1154
  config = _ref$config === void 0 ? {} : _ref$config;
3671
1155
  var configData = useStateValue() || {};
3672
- var isAuthor = get_1(configData, ["showAuthor"], true);
1156
+ var isAuthor = lodash.get(configData, ["showAuthor"], true);
3673
1157
 
3674
- var _get = get_1(story, ["authors", "0"], ""),
1158
+ var _get = lodash.get(story, ["authors", "0"], ""),
3675
1159
  avatarUrl = _get["avatar-url"],
3676
1160
  avatarS3Key = _get["avatar-s3-key"],
3677
1161
  authorName = _get.name,
@@ -3679,7 +1163,7 @@ var AuthorBase = function AuthorBase(_ref) {
3679
1163
 
3680
1164
  var isBottomClasses = isBottom ? "bottom-fix" : "";
3681
1165
  var textColor = getTextColor(configData.theme);
3682
- var mountAt = get_1(config, ["mountAt"], "");
1166
+ var mountAt = lodash.get(config, ["mountAt"], "");
3683
1167
 
3684
1168
  var authorImage = function authorImage(dir) {
3685
1169
  if (!avatarUrl && !avatarS3Key) {
@@ -3688,7 +1172,7 @@ var AuthorBase = function AuthorBase(_ref) {
3688
1172
 
3689
1173
  return /*#__PURE__*/React__default["default"].createElement("div", {
3690
1174
  "data-test-id": "author-image",
3691
- className: _getClassName("author-image ".concat(dir, "-image"), _styleModuleImportMap$a)
1175
+ className: _getClassName__default["default"]("author-image ".concat(dir, "-image"), _styleModuleImportMap$a)
3692
1176
  }, /*#__PURE__*/React__default["default"].createElement("figure", null, avatarS3Key ? /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
3693
1177
  slug: avatarS3Key,
3694
1178
  "aspect-ratio": [1, 1],
@@ -3705,7 +1189,7 @@ var AuthorBase = function AuthorBase(_ref) {
3705
1189
  var isPrefix = function isPrefix(dir) {
3706
1190
  if (prefix) {
3707
1191
  return /*#__PURE__*/React__default["default"].createElement("div", {
3708
- className: "arr-author-prefix " + _getClassName("prefix ".concat(textColor), _styleModuleImportMap$a)
1192
+ className: "arr-author-prefix " + _getClassName__default["default"]("prefix ".concat(textColor), _styleModuleImportMap$a)
3709
1193
  }, prefix);
3710
1194
  }
3711
1195
 
@@ -3715,16 +1199,16 @@ var AuthorBase = function AuthorBase(_ref) {
3715
1199
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement(components.Link, {
3716
1200
  href: "".concat(mountAt, "/author/") + slug,
3717
1201
  "aria-label": "author-name",
3718
- className: "author-name arr-author-name arrow-component " + _getClassName("author ".concat(isBottomClasses), _styleModuleImportMap$a)
1202
+ className: "author-name arr-author-name arrow-component " + _getClassName__default["default"]("author ".concat(isBottomClasses), _styleModuleImportMap$a)
3719
1203
  }, isPrefix("ltr"), /*#__PURE__*/React__default["default"].createElement("div", {
3720
1204
  "data-test-id": "author-name",
3721
- className: "author-name " + _getClassName("author-name ".concat(textColor), _styleModuleImportMap$a)
1205
+ className: "author-name " + _getClassName__default["default"]("author-name ".concat(textColor), _styleModuleImportMap$a)
3722
1206
  }, authorName || story["author-name"]), !prefix && isPrefix("rtl")));
3723
1207
  };
3724
1208
 
3725
1209
  function mapStateToProps(state) {
3726
1210
  return {
3727
- config: get_1(state, ["qt", "config"], {})
1211
+ config: lodash.get(state, ["qt", "config"], {})
3728
1212
  };
3729
1213
  }
3730
1214
 
@@ -3761,7 +1245,7 @@ var Dot = function Dot(_ref) {
3761
1245
  _ref$color = _ref.color,
3762
1246
  color = _ref$color === void 0 ? "light" : _ref$color;
3763
1247
  return /*#__PURE__*/React__default["default"].createElement("div", {
3764
- className: _getClassName(color, _styleModuleImportMap$9)
1248
+ className: _getClassName__default["default"](color, _styleModuleImportMap$9)
3765
1249
  }, /*#__PURE__*/React__default["default"].createElement("svg", {
3766
1250
  xmlns: "http://www.w3.org/2000/svg",
3767
1251
  width: width,
@@ -3797,7 +1281,7 @@ var Divider = function Divider(_ref) {
3797
1281
  _ref$color = _ref.color,
3798
1282
  color = _ref$color === void 0 ? "light" : _ref$color;
3799
1283
  return /*#__PURE__*/React__default["default"].createElement("div", {
3800
- className: _getClassName(color, _styleModuleImportMap$8)
1284
+ className: _getClassName__default["default"](color, _styleModuleImportMap$8)
3801
1285
  }, /*#__PURE__*/React__default["default"].createElement("svg", {
3802
1286
  xmlns: "http://www.w3.org/2000/svg",
3803
1287
  width: width,
@@ -3829,14 +1313,14 @@ var ReadTime = function ReadTime(_ref) {
3829
1313
  _ref$isLightTheme = _ref.isLightTheme,
3830
1314
  isLightTheme = _ref$isLightTheme === void 0 ? false : _ref$isLightTheme;
3831
1315
  var config = useStateValue() || {};
3832
- var showReadTime = get_1(config, ["showReadTime"]) || get_1(opts, ["showReadTime"], true);
3833
- var readTime = get_1(story, ["read-time"], 0);
1316
+ var showReadTime = lodash.get(config, ["showReadTime"]) || lodash.get(opts, ["showReadTime"], true);
1317
+ var readTime = lodash.get(story, ["read-time"], 0);
3834
1318
  var textColor = isLightTheme ? "light" : getTextColor(config.theme);
3835
1319
  if (!showReadTime || !readTime) return null;
3836
- var timeToRead = get_1(opts, ["localizedTimeToRead"]) || "min read";
1320
+ var timeToRead = lodash.get(opts, ["localizedTimeToRead"]) || "min read";
3837
1321
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
3838
1322
  "data-test-id": "read-time",
3839
- className: "arrow-component arr--read-time " + _getClassName("read-time-wrapper ".concat(textColor), _styleModuleImportMap$7)
1323
+ className: "arrow-component arr--read-time " + _getClassName__default["default"]("read-time-wrapper ".concat(textColor), _styleModuleImportMap$7)
3840
1324
  }, /*#__PURE__*/React__default["default"].createElement("span", {
3841
1325
  className: "read-time-indicator read-time-m_dot-indicator__3Sqh2"
3842
1326
  }, /*#__PURE__*/React__default["default"].createElement(Dot, {
@@ -3872,9 +1356,9 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
3872
1356
  config = _ref$config === void 0 ? {} : _ref$config,
3873
1357
  isLightTheme = _ref.isLightTheme;
3874
1358
  var configState = useStateValue() || {};
3875
- var isAuthor = get_1(config, ["showAuthor"], get_1(configState, ["showAuthor"], true));
3876
- var isTime = get_1(config, ["showTime"], get_1(configState, ["showTime"], true));
3877
- var isReadTime = get_1(configState, ["showReadTime"], true);
1359
+ var isAuthor = lodash.get(config, ["showAuthor"], lodash.get(configState, ["showAuthor"], true));
1360
+ var isTime = lodash.get(config, ["showTime"], lodash.get(configState, ["showTime"], true));
1361
+ var isReadTime = lodash.get(configState, ["showReadTime"], true);
3878
1362
  var isBottomClasses = isBottom ? "bottom-fix" : "";
3879
1363
  var seperatorStyle = separator === "dot" ? "dot" : "dash";
3880
1364
  var textColor = isLightTheme ? "light" : getTextColor(configState.theme);
@@ -3894,7 +1378,7 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
3894
1378
  var getTimeStamp = function getTimeStamp() {
3895
1379
  if (!isTime) return null;
3896
1380
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement("span", {
3897
- className: "arr-separator " + _getClassName("".concat(seperatorStyle), _styleModuleImportMap$6)
1381
+ className: "arr-separator " + _getClassName__default["default"]("".concat(seperatorStyle), _styleModuleImportMap$6)
3898
1382
  }, getSeparator()), /*#__PURE__*/React__default["default"].createElement(TimeStamp, {
3899
1383
  story: story,
3900
1384
  config: config
@@ -3906,7 +1390,7 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
3906
1390
  };
3907
1391
 
3908
1392
  return /*#__PURE__*/React__default["default"].createElement("div", {
3909
- className: "arr--author-time " + _getClassName("author-time-wrapper ".concat(isBottomClasses), _styleModuleImportMap$6)
1393
+ className: "arr--author-time " + _getClassName__default["default"]("author-time-wrapper ".concat(isBottomClasses), _styleModuleImportMap$6)
3910
1394
  }, isAuthor ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(Author, {
3911
1395
  story: story,
3912
1396
  isBottom: true,
@@ -3964,7 +1448,7 @@ var StorycardContent = function StorycardContent(_ref) {
3964
1448
  backgroundColor: theme,
3965
1449
  color: textColor
3966
1450
  },
3967
- className: "arr--content-wrapper " + _getClassName("wrapper ".concat(borderTemplate, " ").concat(horizontalCard), _styleModuleImportMap$5)
1451
+ className: "arr--content-wrapper " + _getClassName__default["default"]("wrapper ".concat(borderTemplate, " ").concat(horizontalCard), _styleModuleImportMap$5)
3968
1452
  }, children || /*#__PURE__*/React__default["default"].createElement(DefaultStoryCardContent, {
3969
1453
  story: story,
3970
1454
  headerLevel: headerLevel,
@@ -4033,7 +1517,7 @@ var Subheadline = function Subheadline(_ref) {
4033
1517
  forceShowAtom = _ref.forceShowAtom,
4034
1518
  showFullContent = _ref.showFullContent;
4035
1519
  var config = useStateValue() || {};
4036
- var subheadline = forceShowAtom || get_1(config, ["showSubheadline"], true);
1520
+ var subheadline = forceShowAtom || lodash.get(config, ["showSubheadline"], true);
4037
1521
  if (!subheadline) return null;
4038
1522
  var textColor = getTextColor(config.theme);
4039
1523
  return /*#__PURE__*/React__default["default"].createElement("div", {
@@ -4041,7 +1525,7 @@ var Subheadline = function Subheadline(_ref) {
4041
1525
  WebkitLineClamp: lineClamp
4042
1526
  },
4043
1527
  "data-test-id": "subheadline",
4044
- className: ("p-alt arr--sub-headline arrow-component ".concat(clazzName) ? "p-alt arr--sub-headline arrow-component ".concat(clazzName) + " " : "") + _getClassName("subheadline ".concat(textColor), _styleModuleImportMap$4)
1528
+ className: ("p-alt arr--sub-headline arrow-component ".concat(clazzName) ? "p-alt arr--sub-headline arrow-component ".concat(clazzName) + " " : "") + _getClassName__default["default"]("subheadline ".concat(textColor), _styleModuleImportMap$4)
4045
1529
  }, showFullContent || typeof lineClamp === "number" ? story.subheadline : truncate(story.subheadline, truncateChars, true));
4046
1530
  };
4047
1531
  Subheadline.propTypes = {
@@ -4133,7 +1617,7 @@ var StoryCard = function StoryCard(_ref) {
4133
1617
  backgroundColor: theme,
4134
1618
  color: textColor
4135
1619
  },
4136
- className: "arr--story-card " + _getClassName("card ".concat(horizontalCardStyle, " ").concat(borderTemplate, " ").concat(textColor, " ").concat(bgImageClasses, " ").concat(bgImgContentOverlapClass, " ").concat(horizontalMobileClasses), _styleModuleImportMap$3)
1620
+ className: "arr--story-card " + _getClassName__default["default"]("card ".concat(horizontalCardStyle, " ").concat(borderTemplate, " ").concat(textColor, " ").concat(bgImageClasses, " ").concat(bgImgContentOverlapClass, " ").concat(horizontalMobileClasses), _styleModuleImportMap$3)
4137
1621
  }, children || defaultStorycard);
4138
1622
  };
4139
1623
 
@@ -4174,7 +1658,7 @@ var DefaultStoryCard = function DefaultStoryCard(_ref2) {
4174
1658
  isHorizontalMobile: isHorizontalMobile,
4175
1659
  aspectRatio: aspectRatio
4176
1660
  }), /*#__PURE__*/React__default["default"].createElement("div", {
4177
- className: "arr--story-content " + _getClassName("content ".concat(alignment), _styleModuleImportMap$3)
1661
+ className: "arr--story-content " + _getClassName__default["default"]("content ".concat(alignment), _styleModuleImportMap$3)
4178
1662
  }, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
4179
1663
  story: story,
4180
1664
  borderColor: SectionTagborderColor
@@ -4267,7 +1751,7 @@ var BulletPoint = function BulletPoint(_ref) {
4267
1751
  return /*#__PURE__*/React__default["default"].createElement("div", {
4268
1752
  className: "arrow-component arr--bullet-point"
4269
1753
  }, /*#__PURE__*/React__default["default"].createElement("span", {
4270
- className: _getClassName("bullet ".concat(textColor), _styleModuleImportMap$2)
1754
+ className: _getClassName__default["default"]("bullet ".concat(textColor), _styleModuleImportMap$2)
4271
1755
  }, bulletValue));
4272
1756
  };
4273
1757
  BulletPoint.propTypes = {
@@ -4310,21 +1794,6 @@ StoryCardWithBulletPoint.propTypes = {
4310
1794
  bulletValue: PropTypes__default["default"].string
4311
1795
  };
4312
1796
 
4313
- function _defineProperty(obj, key, value) {
4314
- if (key in obj) {
4315
- Object.defineProperty(obj, key, {
4316
- value: value,
4317
- enumerable: true,
4318
- configurable: true,
4319
- writable: true
4320
- });
4321
- } else {
4322
- obj[key] = value;
4323
- }
4324
-
4325
- return obj;
4326
- }
4327
-
4328
1797
  var _styleModuleImportMap$1 = {
4329
1798
  "./load-more.m.css": {
4330
1799
  "button": "load-more-m_button__1mmf1",
@@ -4336,7 +1805,7 @@ var _styleModuleImportMap$1 = {
4336
1805
 
4337
1806
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4338
1807
 
4339
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1808
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4340
1809
  var LoadmoreButton = function LoadmoreButton(_ref) {
4341
1810
  var _ref$config = _ref.config,
4342
1811
  config = _ref$config === void 0 ? {} : _ref$config,
@@ -4360,14 +1829,14 @@ var LoadmoreButton = function LoadmoreButton(_ref) {
4360
1829
  return template === "SubsequentLoadCount" ? /*#__PURE__*/React__default["default"].createElement("div", {
4361
1830
  onClick: onClick,
4362
1831
  "data-test-id": "load-more",
4363
- className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap$1)
1832
+ className: "arr--button " + _getClassName__default["default"]("button ".concat(textColor, " default"), _styleModuleImportMap$1)
4364
1833
  }, buttonText) : /*#__PURE__*/React__default["default"].createElement(components.LinkBase, {
4365
1834
  href: slug,
4366
1835
  navigateTo: navigate,
4367
1836
  "data-test-id": "load-more",
4368
1837
  "aria-label": "load-more"
4369
1838
  }, /*#__PURE__*/React__default["default"].createElement("div", {
4370
- className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap$1)
1839
+ className: "arr--button " + _getClassName__default["default"]("button ".concat(textColor, " default"), _styleModuleImportMap$1)
4371
1840
  }, buttonText));
4372
1841
  };
4373
1842
  LoadmoreButton.propTypes = {
@@ -4397,7 +1866,7 @@ var TwoColTenStoriesSidebarBase = function TwoColTenStoriesSidebarBase(_ref) {
4397
1866
  var collection = _ref.collection,
4398
1867
  _ref$config = _ref.config,
4399
1868
  config = _ref$config === void 0 ? {} : _ref$config;
4400
- var childCollections = get_1(collection, ["items"], []).filter(function (collections) {
1869
+ var childCollections = lodash.get(collection, ["items"], []).filter(function (collections) {
4401
1870
  return collections.type === "collection";
4402
1871
  });
4403
1872
  if (childCollections.length < 2) return null; // if number of collection is less than 2 return null
@@ -4420,11 +1889,11 @@ var TwoColTenStoriesSidebarBase = function TwoColTenStoriesSidebarBase(_ref) {
4420
1889
  var textColor = getTextColor(theme);
4421
1890
  var dispatch = reactRedux.useDispatch();
4422
1891
  var qtConfig = reactRedux.useSelector(function (state) {
4423
- return get_1(state, ["qt", "config"], {});
1892
+ return lodash.get(state, ["qt", "config"], {});
4424
1893
  });
4425
1894
  var firstCardBorderStyle = border === "bottom" ? "first-card-border-box" : "";
4426
1895
 
4427
- var _get = get_1(slotConfig, [0], {}),
1896
+ var _get = lodash.get(slotConfig, [0], {}),
4428
1897
  _get$type = _get.type,
4429
1898
  type = _get$type === void 0 ? "story" : _get$type,
4430
1899
  component = _get.component;
@@ -4467,7 +1936,7 @@ var TwoColTenStoriesSidebarBase = function TwoColTenStoriesSidebarBase(_ref) {
4467
1936
  isHorizontal: true,
4468
1937
  borderColor: borderColor,
4469
1938
  config: config,
4470
- className: _getClassName(firstCardBorderStyle, _styleModuleImportMap)
1939
+ className: _getClassName__default["default"](firstCardBorderStyle, _styleModuleImportMap)
4471
1940
  }))), firstCollectionStories.slice(1, 5).map(function (story, index) {
4472
1941
  return /*#__PURE__*/React__default["default"].createElement("div", {
4473
1942
  className: "two-col-ten-stories-sidebar-m_card__kR47U",