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