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

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