@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,2420 +2,26 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var _getClassName = require('babel-plugin-react-css-modules/dist/browser/getClassName');
5
6
  var React = require('react');
6
7
  var PropTypes = require('prop-types');
8
+ require('@babel/runtime/helpers/asyncToGenerator');
9
+ require('@babel/runtime/helpers/typeof');
10
+ require('@babel/runtime/regenerator');
11
+ var lodash = require('lodash');
7
12
  require('react-timeago');
8
13
  require('date-fns-tz');
9
14
  var components = require('@quintype/components');
15
+ var _extends = require('@babel/runtime/helpers/extends');
16
+ var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
10
17
 
11
18
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
12
19
 
20
+ var _getClassName__default = /*#__PURE__*/_interopDefaultLegacy(_getClassName);
13
21
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
14
22
  var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
15
-
16
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
17
-
18
- function getDefaultExportFromCjs (x) {
19
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
20
- }
21
-
22
- function createCommonjsModule(fn) {
23
- var module = { exports: {} };
24
- return fn(module, module.exports), module.exports;
25
- }
26
-
27
- var optionsDefaults_1 = createCommonjsModule(function (module, exports) {
28
-
29
- Object.defineProperty(exports, "__esModule", {
30
- value: true
31
- });
32
- exports["default"] = void 0;
33
- var optionsDefaults = {
34
- attributeNames: {
35
- styleName: 'className'
36
- },
37
- generateScopedName: '[path]___[name]__[local]___[hash:base64:5]',
38
- handleMissingStyleName: 'throw'
39
- };
40
- var _default = optionsDefaults;
41
- exports["default"] = _default;
42
-
43
-
44
- });
45
-
46
- var getClassName = createCommonjsModule(function (module, exports) {
47
-
48
- Object.defineProperty(exports, "__esModule", {
49
- value: true
50
- });
51
- exports["default"] = void 0;
52
-
53
- var _optionsDefaults = _interopRequireDefault(optionsDefaults_1);
54
-
55
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
56
-
57
- var isNamespacedStyleName = function isNamespacedStyleName(styleName) {
58
- return styleName.indexOf('.') !== -1;
59
- };
60
-
61
- var handleError = function handleError(message, handleMissingStyleName) {
62
- if (handleMissingStyleName === 'throw') {
63
- throw new Error(message);
64
- } else if (handleMissingStyleName === 'warn') {
65
- // eslint-disable-next-line no-console
66
- console.warn(message);
67
- }
68
-
69
- return null;
70
- };
71
-
72
- var getClassNameForNamespacedStyleName = function getClassNameForNamespacedStyleName(styleName, styleModuleImportMap, handleMissingStyleNameOption) {
73
- // Note:
74
- // Do not use the desctructing syntax with Babel.
75
- // Desctructing adds _slicedToArray helper.
76
- var styleNameParts = styleName.split('.');
77
- var importName = styleNameParts[0];
78
- var moduleName = styleNameParts[1];
79
- var handleMissingStyleName = handleMissingStyleNameOption || _optionsDefaults["default"].handleMissingStyleName;
80
-
81
- if (!moduleName) {
82
- return handleError('Invalid style name: ' + styleName, handleMissingStyleName);
83
- }
84
-
85
- if (!styleModuleImportMap[importName]) {
86
- return handleError('CSS module import does not exist: ' + importName, handleMissingStyleName);
87
- }
88
-
89
- if (!styleModuleImportMap[importName][moduleName]) {
90
- return handleError('CSS module does not exist: ' + moduleName, handleMissingStyleName);
91
- }
92
-
93
- return styleModuleImportMap[importName][moduleName];
94
- };
95
-
96
- var getClassNameFromMultipleImports = function getClassNameFromMultipleImports(styleName, styleModuleImportMap, handleMissingStyleNameOption) {
97
- var handleMissingStyleName = handleMissingStyleNameOption || _optionsDefaults["default"].handleMissingStyleName;
98
- var importKeysWithMatches = Object.keys(styleModuleImportMap).map(function (importKey) {
99
- return styleModuleImportMap[importKey][styleName] && importKey;
100
- }).filter(function (importKey) {
101
- return importKey;
102
- });
103
-
104
- if (importKeysWithMatches.length > 1) {
105
- 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');
106
- }
107
-
108
- if (importKeysWithMatches.length === 0) {
109
- return handleError('Could not resolve the styleName \'' + styleName + '\'.', handleMissingStyleName);
110
- }
111
-
112
- return styleModuleImportMap[importKeysWithMatches[0]][styleName];
113
- };
114
-
115
- var _default = function _default(styleNameValue, styleModuleImportMap, options) {
116
- var styleModuleImportMapKeys = Object.keys(styleModuleImportMap);
117
-
118
- var _ref = options || {},
119
- _ref$handleMissingSty = _ref.handleMissingStyleName,
120
- handleMissingStyleName = _ref$handleMissingSty === void 0 ? _optionsDefaults["default"].handleMissingStyleName : _ref$handleMissingSty,
121
- _ref$autoResolveMulti = _ref.autoResolveMultipleImports,
122
- autoResolveMultipleImports = _ref$autoResolveMulti === void 0 ? _optionsDefaults["default"].autoResolveMultipleImports : _ref$autoResolveMulti;
123
-
124
- if (!styleNameValue) {
125
- return '';
126
- }
127
-
128
- return styleNameValue.split(' ').filter(function (styleName) {
129
- return styleName;
130
- }).map(function (styleName) {
131
- if (isNamespacedStyleName(styleName)) {
132
- return getClassNameForNamespacedStyleName(styleName, styleModuleImportMap, handleMissingStyleName);
133
- }
134
-
135
- if (styleModuleImportMapKeys.length === 0) {
136
- throw new Error('Cannot use styleName attribute for style name \'' + styleName + '\' without importing at least one stylesheet.');
137
- }
138
-
139
- if (styleModuleImportMapKeys.length > 1) {
140
- if (!autoResolveMultipleImports) {
141
- throw new Error('Cannot use anonymous style name \'' + styleName + '\' with more than one stylesheet import without setting \'autoResolveMultipleImports\' to true.');
142
- }
143
-
144
- return getClassNameFromMultipleImports(styleName, styleModuleImportMap, handleMissingStyleName);
145
- }
146
-
147
- var styleModuleMap = styleModuleImportMap[styleModuleImportMapKeys[0]];
148
-
149
- if (!styleModuleMap[styleName]) {
150
- return handleError('Could not resolve the styleName \'' + styleName + '\'.', handleMissingStyleName);
151
- }
152
-
153
- return styleModuleMap[styleName];
154
- }).filter(function (className) {
155
- // Remove any styles which could not be found (if handleMissingStyleName === 'ignore')
156
- return className;
157
- }).join(' ');
158
- };
159
-
160
- exports["default"] = _default;
161
-
162
-
163
- });
164
-
165
- var _getClassName = /*@__PURE__*/getDefaultExportFromCjs(getClassName);
166
-
167
- /**
168
- * Copyright (c) 2014-present, Facebook, Inc.
169
- *
170
- * This source code is licensed under the MIT license found in the
171
- * LICENSE file in the root directory of this source tree.
172
- */
173
-
174
- createCommonjsModule(function (module) {
175
- var runtime = (function (exports) {
176
-
177
- var Op = Object.prototype;
178
- var hasOwn = Op.hasOwnProperty;
179
- var undefined$1; // More compressible than void 0.
180
- var $Symbol = typeof Symbol === "function" ? Symbol : {};
181
- var iteratorSymbol = $Symbol.iterator || "@@iterator";
182
- var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
183
- var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
184
-
185
- function define(obj, key, value) {
186
- Object.defineProperty(obj, key, {
187
- value: value,
188
- enumerable: true,
189
- configurable: true,
190
- writable: true
191
- });
192
- return obj[key];
193
- }
194
- try {
195
- // IE 8 has a broken Object.defineProperty that only works on DOM objects.
196
- define({}, "");
197
- } catch (err) {
198
- define = function(obj, key, value) {
199
- return obj[key] = value;
200
- };
201
- }
202
-
203
- function wrap(innerFn, outerFn, self, tryLocsList) {
204
- // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
205
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
206
- var generator = Object.create(protoGenerator.prototype);
207
- var context = new Context(tryLocsList || []);
208
-
209
- // The ._invoke method unifies the implementations of the .next,
210
- // .throw, and .return methods.
211
- generator._invoke = makeInvokeMethod(innerFn, self, context);
212
-
213
- return generator;
214
- }
215
- exports.wrap = wrap;
216
-
217
- // Try/catch helper to minimize deoptimizations. Returns a completion
218
- // record like context.tryEntries[i].completion. This interface could
219
- // have been (and was previously) designed to take a closure to be
220
- // invoked without arguments, but in all the cases we care about we
221
- // already have an existing method we want to call, so there's no need
222
- // to create a new function object. We can even get away with assuming
223
- // the method takes exactly one argument, since that happens to be true
224
- // in every case, so we don't have to touch the arguments object. The
225
- // only additional allocation required is the completion record, which
226
- // has a stable shape and so hopefully should be cheap to allocate.
227
- function tryCatch(fn, obj, arg) {
228
- try {
229
- return { type: "normal", arg: fn.call(obj, arg) };
230
- } catch (err) {
231
- return { type: "throw", arg: err };
232
- }
233
- }
234
-
235
- var GenStateSuspendedStart = "suspendedStart";
236
- var GenStateSuspendedYield = "suspendedYield";
237
- var GenStateExecuting = "executing";
238
- var GenStateCompleted = "completed";
239
-
240
- // Returning this object from the innerFn has the same effect as
241
- // breaking out of the dispatch switch statement.
242
- var ContinueSentinel = {};
243
-
244
- // Dummy constructor functions that we use as the .constructor and
245
- // .constructor.prototype properties for functions that return Generator
246
- // objects. For full spec compliance, you may wish to configure your
247
- // minifier not to mangle the names of these two functions.
248
- function Generator() {}
249
- function GeneratorFunction() {}
250
- function GeneratorFunctionPrototype() {}
251
-
252
- // This is a polyfill for %IteratorPrototype% for environments that
253
- // don't natively support it.
254
- var IteratorPrototype = {};
255
- define(IteratorPrototype, iteratorSymbol, function () {
256
- return this;
257
- });
258
-
259
- var getProto = Object.getPrototypeOf;
260
- var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
261
- if (NativeIteratorPrototype &&
262
- NativeIteratorPrototype !== Op &&
263
- hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
264
- // This environment has a native %IteratorPrototype%; use it instead
265
- // of the polyfill.
266
- IteratorPrototype = NativeIteratorPrototype;
267
- }
268
-
269
- var Gp = GeneratorFunctionPrototype.prototype =
270
- Generator.prototype = Object.create(IteratorPrototype);
271
- GeneratorFunction.prototype = GeneratorFunctionPrototype;
272
- define(Gp, "constructor", GeneratorFunctionPrototype);
273
- define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
274
- GeneratorFunction.displayName = define(
275
- GeneratorFunctionPrototype,
276
- toStringTagSymbol,
277
- "GeneratorFunction"
278
- );
279
-
280
- // Helper for defining the .next, .throw, and .return methods of the
281
- // Iterator interface in terms of a single ._invoke method.
282
- function defineIteratorMethods(prototype) {
283
- ["next", "throw", "return"].forEach(function(method) {
284
- define(prototype, method, function(arg) {
285
- return this._invoke(method, arg);
286
- });
287
- });
288
- }
289
-
290
- exports.isGeneratorFunction = function(genFun) {
291
- var ctor = typeof genFun === "function" && genFun.constructor;
292
- return ctor
293
- ? ctor === GeneratorFunction ||
294
- // For the native GeneratorFunction constructor, the best we can
295
- // do is to check its .name property.
296
- (ctor.displayName || ctor.name) === "GeneratorFunction"
297
- : false;
298
- };
299
-
300
- exports.mark = function(genFun) {
301
- if (Object.setPrototypeOf) {
302
- Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
303
- } else {
304
- genFun.__proto__ = GeneratorFunctionPrototype;
305
- define(genFun, toStringTagSymbol, "GeneratorFunction");
306
- }
307
- genFun.prototype = Object.create(Gp);
308
- return genFun;
309
- };
310
-
311
- // Within the body of any async function, `await x` is transformed to
312
- // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
313
- // `hasOwn.call(value, "__await")` to determine if the yielded value is
314
- // meant to be awaited.
315
- exports.awrap = function(arg) {
316
- return { __await: arg };
317
- };
318
-
319
- function AsyncIterator(generator, PromiseImpl) {
320
- function invoke(method, arg, resolve, reject) {
321
- var record = tryCatch(generator[method], generator, arg);
322
- if (record.type === "throw") {
323
- reject(record.arg);
324
- } else {
325
- var result = record.arg;
326
- var value = result.value;
327
- if (value &&
328
- typeof value === "object" &&
329
- hasOwn.call(value, "__await")) {
330
- return PromiseImpl.resolve(value.__await).then(function(value) {
331
- invoke("next", value, resolve, reject);
332
- }, function(err) {
333
- invoke("throw", err, resolve, reject);
334
- });
335
- }
336
-
337
- return PromiseImpl.resolve(value).then(function(unwrapped) {
338
- // When a yielded Promise is resolved, its final value becomes
339
- // the .value of the Promise<{value,done}> result for the
340
- // current iteration.
341
- result.value = unwrapped;
342
- resolve(result);
343
- }, function(error) {
344
- // If a rejected Promise was yielded, throw the rejection back
345
- // into the async generator function so it can be handled there.
346
- return invoke("throw", error, resolve, reject);
347
- });
348
- }
349
- }
350
-
351
- var previousPromise;
352
-
353
- function enqueue(method, arg) {
354
- function callInvokeWithMethodAndArg() {
355
- return new PromiseImpl(function(resolve, reject) {
356
- invoke(method, arg, resolve, reject);
357
- });
358
- }
359
-
360
- return previousPromise =
361
- // If enqueue has been called before, then we want to wait until
362
- // all previous Promises have been resolved before calling invoke,
363
- // so that results are always delivered in the correct order. If
364
- // enqueue has not been called before, then it is important to
365
- // call invoke immediately, without waiting on a callback to fire,
366
- // so that the async generator function has the opportunity to do
367
- // any necessary setup in a predictable way. This predictability
368
- // is why the Promise constructor synchronously invokes its
369
- // executor callback, and why async functions synchronously
370
- // execute code before the first await. Since we implement simple
371
- // async functions in terms of async generators, it is especially
372
- // important to get this right, even though it requires care.
373
- previousPromise ? previousPromise.then(
374
- callInvokeWithMethodAndArg,
375
- // Avoid propagating failures to Promises returned by later
376
- // invocations of the iterator.
377
- callInvokeWithMethodAndArg
378
- ) : callInvokeWithMethodAndArg();
379
- }
380
-
381
- // Define the unified helper method that is used to implement .next,
382
- // .throw, and .return (see defineIteratorMethods).
383
- this._invoke = enqueue;
384
- }
385
-
386
- defineIteratorMethods(AsyncIterator.prototype);
387
- define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
388
- return this;
389
- });
390
- exports.AsyncIterator = AsyncIterator;
391
-
392
- // Note that simple async functions are implemented on top of
393
- // AsyncIterator objects; they just return a Promise for the value of
394
- // the final result produced by the iterator.
395
- exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
396
- if (PromiseImpl === void 0) PromiseImpl = Promise;
397
-
398
- var iter = new AsyncIterator(
399
- wrap(innerFn, outerFn, self, tryLocsList),
400
- PromiseImpl
401
- );
402
-
403
- return exports.isGeneratorFunction(outerFn)
404
- ? iter // If outerFn is a generator, return the full iterator.
405
- : iter.next().then(function(result) {
406
- return result.done ? result.value : iter.next();
407
- });
408
- };
409
-
410
- function makeInvokeMethod(innerFn, self, context) {
411
- var state = GenStateSuspendedStart;
412
-
413
- return function invoke(method, arg) {
414
- if (state === GenStateExecuting) {
415
- throw new Error("Generator is already running");
416
- }
417
-
418
- if (state === GenStateCompleted) {
419
- if (method === "throw") {
420
- throw arg;
421
- }
422
-
423
- // Be forgiving, per 25.3.3.3.3 of the spec:
424
- // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
425
- return doneResult();
426
- }
427
-
428
- context.method = method;
429
- context.arg = arg;
430
-
431
- while (true) {
432
- var delegate = context.delegate;
433
- if (delegate) {
434
- var delegateResult = maybeInvokeDelegate(delegate, context);
435
- if (delegateResult) {
436
- if (delegateResult === ContinueSentinel) continue;
437
- return delegateResult;
438
- }
439
- }
440
-
441
- if (context.method === "next") {
442
- // Setting context._sent for legacy support of Babel's
443
- // function.sent implementation.
444
- context.sent = context._sent = context.arg;
445
-
446
- } else if (context.method === "throw") {
447
- if (state === GenStateSuspendedStart) {
448
- state = GenStateCompleted;
449
- throw context.arg;
450
- }
451
-
452
- context.dispatchException(context.arg);
453
-
454
- } else if (context.method === "return") {
455
- context.abrupt("return", context.arg);
456
- }
457
-
458
- state = GenStateExecuting;
459
-
460
- var record = tryCatch(innerFn, self, context);
461
- if (record.type === "normal") {
462
- // If an exception is thrown from innerFn, we leave state ===
463
- // GenStateExecuting and loop back for another invocation.
464
- state = context.done
465
- ? GenStateCompleted
466
- : GenStateSuspendedYield;
467
-
468
- if (record.arg === ContinueSentinel) {
469
- continue;
470
- }
471
-
472
- return {
473
- value: record.arg,
474
- done: context.done
475
- };
476
-
477
- } else if (record.type === "throw") {
478
- state = GenStateCompleted;
479
- // Dispatch the exception by looping back around to the
480
- // context.dispatchException(context.arg) call above.
481
- context.method = "throw";
482
- context.arg = record.arg;
483
- }
484
- }
485
- };
486
- }
487
-
488
- // Call delegate.iterator[context.method](context.arg) and handle the
489
- // result, either by returning a { value, done } result from the
490
- // delegate iterator, or by modifying context.method and context.arg,
491
- // setting context.delegate to null, and returning the ContinueSentinel.
492
- function maybeInvokeDelegate(delegate, context) {
493
- var method = delegate.iterator[context.method];
494
- if (method === undefined$1) {
495
- // A .throw or .return when the delegate iterator has no .throw
496
- // method always terminates the yield* loop.
497
- context.delegate = null;
498
-
499
- if (context.method === "throw") {
500
- // Note: ["return"] must be used for ES3 parsing compatibility.
501
- if (delegate.iterator["return"]) {
502
- // If the delegate iterator has a return method, give it a
503
- // chance to clean up.
504
- context.method = "return";
505
- context.arg = undefined$1;
506
- maybeInvokeDelegate(delegate, context);
507
-
508
- if (context.method === "throw") {
509
- // If maybeInvokeDelegate(context) changed context.method from
510
- // "return" to "throw", let that override the TypeError below.
511
- return ContinueSentinel;
512
- }
513
- }
514
-
515
- context.method = "throw";
516
- context.arg = new TypeError(
517
- "The iterator does not provide a 'throw' method");
518
- }
519
-
520
- return ContinueSentinel;
521
- }
522
-
523
- var record = tryCatch(method, delegate.iterator, context.arg);
524
-
525
- if (record.type === "throw") {
526
- context.method = "throw";
527
- context.arg = record.arg;
528
- context.delegate = null;
529
- return ContinueSentinel;
530
- }
531
-
532
- var info = record.arg;
533
-
534
- if (! info) {
535
- context.method = "throw";
536
- context.arg = new TypeError("iterator result is not an object");
537
- context.delegate = null;
538
- return ContinueSentinel;
539
- }
540
-
541
- if (info.done) {
542
- // Assign the result of the finished delegate to the temporary
543
- // variable specified by delegate.resultName (see delegateYield).
544
- context[delegate.resultName] = info.value;
545
-
546
- // Resume execution at the desired location (see delegateYield).
547
- context.next = delegate.nextLoc;
548
-
549
- // If context.method was "throw" but the delegate handled the
550
- // exception, let the outer generator proceed normally. If
551
- // context.method was "next", forget context.arg since it has been
552
- // "consumed" by the delegate iterator. If context.method was
553
- // "return", allow the original .return call to continue in the
554
- // outer generator.
555
- if (context.method !== "return") {
556
- context.method = "next";
557
- context.arg = undefined$1;
558
- }
559
-
560
- } else {
561
- // Re-yield the result returned by the delegate method.
562
- return info;
563
- }
564
-
565
- // The delegate iterator is finished, so forget it and continue with
566
- // the outer generator.
567
- context.delegate = null;
568
- return ContinueSentinel;
569
- }
570
-
571
- // Define Generator.prototype.{next,throw,return} in terms of the
572
- // unified ._invoke helper method.
573
- defineIteratorMethods(Gp);
574
-
575
- define(Gp, toStringTagSymbol, "Generator");
576
-
577
- // A Generator should always return itself as the iterator object when the
578
- // @@iterator function is called on it. Some browsers' implementations of the
579
- // iterator prototype chain incorrectly implement this, causing the Generator
580
- // object to not be returned from this call. This ensures that doesn't happen.
581
- // See https://github.com/facebook/regenerator/issues/274 for more details.
582
- define(Gp, iteratorSymbol, function() {
583
- return this;
584
- });
585
-
586
- define(Gp, "toString", function() {
587
- return "[object Generator]";
588
- });
589
-
590
- function pushTryEntry(locs) {
591
- var entry = { tryLoc: locs[0] };
592
-
593
- if (1 in locs) {
594
- entry.catchLoc = locs[1];
595
- }
596
-
597
- if (2 in locs) {
598
- entry.finallyLoc = locs[2];
599
- entry.afterLoc = locs[3];
600
- }
601
-
602
- this.tryEntries.push(entry);
603
- }
604
-
605
- function resetTryEntry(entry) {
606
- var record = entry.completion || {};
607
- record.type = "normal";
608
- delete record.arg;
609
- entry.completion = record;
610
- }
611
-
612
- function Context(tryLocsList) {
613
- // The root entry object (effectively a try statement without a catch
614
- // or a finally block) gives us a place to store values thrown from
615
- // locations where there is no enclosing try statement.
616
- this.tryEntries = [{ tryLoc: "root" }];
617
- tryLocsList.forEach(pushTryEntry, this);
618
- this.reset(true);
619
- }
620
-
621
- exports.keys = function(object) {
622
- var keys = [];
623
- for (var key in object) {
624
- keys.push(key);
625
- }
626
- keys.reverse();
627
-
628
- // Rather than returning an object with a next method, we keep
629
- // things simple and return the next function itself.
630
- return function next() {
631
- while (keys.length) {
632
- var key = keys.pop();
633
- if (key in object) {
634
- next.value = key;
635
- next.done = false;
636
- return next;
637
- }
638
- }
639
-
640
- // To avoid creating an additional object, we just hang the .value
641
- // and .done properties off the next function object itself. This
642
- // also ensures that the minifier will not anonymize the function.
643
- next.done = true;
644
- return next;
645
- };
646
- };
647
-
648
- function values(iterable) {
649
- if (iterable) {
650
- var iteratorMethod = iterable[iteratorSymbol];
651
- if (iteratorMethod) {
652
- return iteratorMethod.call(iterable);
653
- }
654
-
655
- if (typeof iterable.next === "function") {
656
- return iterable;
657
- }
658
-
659
- if (!isNaN(iterable.length)) {
660
- var i = -1, next = function next() {
661
- while (++i < iterable.length) {
662
- if (hasOwn.call(iterable, i)) {
663
- next.value = iterable[i];
664
- next.done = false;
665
- return next;
666
- }
667
- }
668
-
669
- next.value = undefined$1;
670
- next.done = true;
671
-
672
- return next;
673
- };
674
-
675
- return next.next = next;
676
- }
677
- }
678
-
679
- // Return an iterator with no values.
680
- return { next: doneResult };
681
- }
682
- exports.values = values;
683
-
684
- function doneResult() {
685
- return { value: undefined$1, done: true };
686
- }
687
-
688
- Context.prototype = {
689
- constructor: Context,
690
-
691
- reset: function(skipTempReset) {
692
- this.prev = 0;
693
- this.next = 0;
694
- // Resetting context._sent for legacy support of Babel's
695
- // function.sent implementation.
696
- this.sent = this._sent = undefined$1;
697
- this.done = false;
698
- this.delegate = null;
699
-
700
- this.method = "next";
701
- this.arg = undefined$1;
702
-
703
- this.tryEntries.forEach(resetTryEntry);
704
-
705
- if (!skipTempReset) {
706
- for (var name in this) {
707
- // Not sure about the optimal order of these conditions:
708
- if (name.charAt(0) === "t" &&
709
- hasOwn.call(this, name) &&
710
- !isNaN(+name.slice(1))) {
711
- this[name] = undefined$1;
712
- }
713
- }
714
- }
715
- },
716
-
717
- stop: function() {
718
- this.done = true;
719
-
720
- var rootEntry = this.tryEntries[0];
721
- var rootRecord = rootEntry.completion;
722
- if (rootRecord.type === "throw") {
723
- throw rootRecord.arg;
724
- }
725
-
726
- return this.rval;
727
- },
728
-
729
- dispatchException: function(exception) {
730
- if (this.done) {
731
- throw exception;
732
- }
733
-
734
- var context = this;
735
- function handle(loc, caught) {
736
- record.type = "throw";
737
- record.arg = exception;
738
- context.next = loc;
739
-
740
- if (caught) {
741
- // If the dispatched exception was caught by a catch block,
742
- // then let that catch block handle the exception normally.
743
- context.method = "next";
744
- context.arg = undefined$1;
745
- }
746
-
747
- return !! caught;
748
- }
749
-
750
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
751
- var entry = this.tryEntries[i];
752
- var record = entry.completion;
753
-
754
- if (entry.tryLoc === "root") {
755
- // Exception thrown outside of any try block that could handle
756
- // it, so set the completion value of the entire function to
757
- // throw the exception.
758
- return handle("end");
759
- }
760
-
761
- if (entry.tryLoc <= this.prev) {
762
- var hasCatch = hasOwn.call(entry, "catchLoc");
763
- var hasFinally = hasOwn.call(entry, "finallyLoc");
764
-
765
- if (hasCatch && hasFinally) {
766
- if (this.prev < entry.catchLoc) {
767
- return handle(entry.catchLoc, true);
768
- } else if (this.prev < entry.finallyLoc) {
769
- return handle(entry.finallyLoc);
770
- }
771
-
772
- } else if (hasCatch) {
773
- if (this.prev < entry.catchLoc) {
774
- return handle(entry.catchLoc, true);
775
- }
776
-
777
- } else if (hasFinally) {
778
- if (this.prev < entry.finallyLoc) {
779
- return handle(entry.finallyLoc);
780
- }
781
-
782
- } else {
783
- throw new Error("try statement without catch or finally");
784
- }
785
- }
786
- }
787
- },
788
-
789
- abrupt: function(type, arg) {
790
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
791
- var entry = this.tryEntries[i];
792
- if (entry.tryLoc <= this.prev &&
793
- hasOwn.call(entry, "finallyLoc") &&
794
- this.prev < entry.finallyLoc) {
795
- var finallyEntry = entry;
796
- break;
797
- }
798
- }
799
-
800
- if (finallyEntry &&
801
- (type === "break" ||
802
- type === "continue") &&
803
- finallyEntry.tryLoc <= arg &&
804
- arg <= finallyEntry.finallyLoc) {
805
- // Ignore the finally entry if control is not jumping to a
806
- // location outside the try/catch block.
807
- finallyEntry = null;
808
- }
809
-
810
- var record = finallyEntry ? finallyEntry.completion : {};
811
- record.type = type;
812
- record.arg = arg;
813
-
814
- if (finallyEntry) {
815
- this.method = "next";
816
- this.next = finallyEntry.finallyLoc;
817
- return ContinueSentinel;
818
- }
819
-
820
- return this.complete(record);
821
- },
822
-
823
- complete: function(record, afterLoc) {
824
- if (record.type === "throw") {
825
- throw record.arg;
826
- }
827
-
828
- if (record.type === "break" ||
829
- record.type === "continue") {
830
- this.next = record.arg;
831
- } else if (record.type === "return") {
832
- this.rval = this.arg = record.arg;
833
- this.method = "return";
834
- this.next = "end";
835
- } else if (record.type === "normal" && afterLoc) {
836
- this.next = afterLoc;
837
- }
838
-
839
- return ContinueSentinel;
840
- },
841
-
842
- finish: function(finallyLoc) {
843
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
844
- var entry = this.tryEntries[i];
845
- if (entry.finallyLoc === finallyLoc) {
846
- this.complete(entry.completion, entry.afterLoc);
847
- resetTryEntry(entry);
848
- return ContinueSentinel;
849
- }
850
- }
851
- },
852
-
853
- "catch": function(tryLoc) {
854
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
855
- var entry = this.tryEntries[i];
856
- if (entry.tryLoc === tryLoc) {
857
- var record = entry.completion;
858
- if (record.type === "throw") {
859
- var thrown = record.arg;
860
- resetTryEntry(entry);
861
- }
862
- return thrown;
863
- }
864
- }
865
-
866
- // The context.catch method must only be called with a location
867
- // argument that corresponds to a known catch block.
868
- throw new Error("illegal catch attempt");
869
- },
870
-
871
- delegateYield: function(iterable, resultName, nextLoc) {
872
- this.delegate = {
873
- iterator: values(iterable),
874
- resultName: resultName,
875
- nextLoc: nextLoc
876
- };
877
-
878
- if (this.method === "next") {
879
- // Deliberately forget the last sent value so that we don't
880
- // accidentally pass it on to the delegate.
881
- this.arg = undefined$1;
882
- }
883
-
884
- return ContinueSentinel;
885
- }
886
- };
887
-
888
- // Regardless of whether this script is executing as a CommonJS module
889
- // or not, return the runtime object so that we can declare the variable
890
- // regeneratorRuntime in the outer scope, which allows this module to be
891
- // injected easily by `bin/regenerator --include-runtime script.js`.
892
- return exports;
893
-
894
- }(
895
- // If this script is executing as a CommonJS module, use module.exports
896
- // as the regeneratorRuntime namespace. Otherwise create a new empty
897
- // object. Either way, the resulting object will be used to initialize
898
- // the regeneratorRuntime variable at the top of this file.
899
- module.exports
900
- ));
901
-
902
- try {
903
- regeneratorRuntime = runtime;
904
- } catch (accidentalStrictMode) {
905
- // This module should not be running in strict mode, so the above
906
- // assignment should always work unless something is misconfigured. Just
907
- // in case runtime.js accidentally runs in strict mode, in modern engines
908
- // we can explicitly access globalThis. In older engines we can escape
909
- // strict mode using a global Function call. This could conceivably fail
910
- // if a Content Security Policy forbids using Function, but in that case
911
- // the proper solution is to fix the accidental strict mode problem. If
912
- // you've misconfigured your bundler to force strict mode and applied a
913
- // CSP to forbid Function, and you're not willing to fix either of those
914
- // problems, please detail your unique predicament in a GitHub issue.
915
- if (typeof globalThis === "object") {
916
- globalThis.regeneratorRuntime = runtime;
917
- } else {
918
- Function("r", "regeneratorRuntime = r")(runtime);
919
- }
920
- }
921
- });
922
-
923
- /**
924
- * Checks if `value` is classified as an `Array` object.
925
- *
926
- * @static
927
- * @memberOf _
928
- * @since 0.1.0
929
- * @category Lang
930
- * @param {*} value The value to check.
931
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
932
- * @example
933
- *
934
- * _.isArray([1, 2, 3]);
935
- * // => true
936
- *
937
- * _.isArray(document.body.children);
938
- * // => false
939
- *
940
- * _.isArray('abc');
941
- * // => false
942
- *
943
- * _.isArray(_.noop);
944
- * // => false
945
- */
946
- var isArray = Array.isArray;
947
-
948
- var isArray_1 = isArray;
949
-
950
- /** Detect free variable `global` from Node.js. */
951
-
952
- var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
953
-
954
- var _freeGlobal = freeGlobal;
955
-
956
- /** Detect free variable `self`. */
957
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
958
-
959
- /** Used as a reference to the global object. */
960
- var root = _freeGlobal || freeSelf || Function('return this')();
961
-
962
- var _root = root;
963
-
964
- /** Built-in value references. */
965
- var Symbol$1 = _root.Symbol;
966
-
967
- var _Symbol = Symbol$1;
968
-
969
- /** Used for built-in method references. */
970
- var objectProto$4 = Object.prototype;
971
-
972
- /** Used to check objects for own properties. */
973
- var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
974
-
975
- /**
976
- * Used to resolve the
977
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
978
- * of values.
979
- */
980
- var nativeObjectToString$1 = objectProto$4.toString;
981
-
982
- /** Built-in value references. */
983
- var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
984
-
985
- /**
986
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
987
- *
988
- * @private
989
- * @param {*} value The value to query.
990
- * @returns {string} Returns the raw `toStringTag`.
991
- */
992
- function getRawTag(value) {
993
- var isOwn = hasOwnProperty$3.call(value, symToStringTag$1),
994
- tag = value[symToStringTag$1];
995
-
996
- try {
997
- value[symToStringTag$1] = undefined;
998
- var unmasked = true;
999
- } catch (e) {}
1000
-
1001
- var result = nativeObjectToString$1.call(value);
1002
- if (unmasked) {
1003
- if (isOwn) {
1004
- value[symToStringTag$1] = tag;
1005
- } else {
1006
- delete value[symToStringTag$1];
1007
- }
1008
- }
1009
- return result;
1010
- }
1011
-
1012
- var _getRawTag = getRawTag;
1013
-
1014
- /** Used for built-in method references. */
1015
- var objectProto$3 = Object.prototype;
1016
-
1017
- /**
1018
- * Used to resolve the
1019
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
1020
- * of values.
1021
- */
1022
- var nativeObjectToString = objectProto$3.toString;
1023
-
1024
- /**
1025
- * Converts `value` to a string using `Object.prototype.toString`.
1026
- *
1027
- * @private
1028
- * @param {*} value The value to convert.
1029
- * @returns {string} Returns the converted string.
1030
- */
1031
- function objectToString(value) {
1032
- return nativeObjectToString.call(value);
1033
- }
1034
-
1035
- var _objectToString = objectToString;
1036
-
1037
- /** `Object#toString` result references. */
1038
- var nullTag = '[object Null]',
1039
- undefinedTag = '[object Undefined]';
1040
-
1041
- /** Built-in value references. */
1042
- var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
1043
-
1044
- /**
1045
- * The base implementation of `getTag` without fallbacks for buggy environments.
1046
- *
1047
- * @private
1048
- * @param {*} value The value to query.
1049
- * @returns {string} Returns the `toStringTag`.
1050
- */
1051
- function baseGetTag(value) {
1052
- if (value == null) {
1053
- return value === undefined ? undefinedTag : nullTag;
1054
- }
1055
- return (symToStringTag && symToStringTag in Object(value))
1056
- ? _getRawTag(value)
1057
- : _objectToString(value);
1058
- }
1059
-
1060
- var _baseGetTag = baseGetTag;
1061
-
1062
- /**
1063
- * Checks if `value` is object-like. A value is object-like if it's not `null`
1064
- * and has a `typeof` result of "object".
1065
- *
1066
- * @static
1067
- * @memberOf _
1068
- * @since 4.0.0
1069
- * @category Lang
1070
- * @param {*} value The value to check.
1071
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
1072
- * @example
1073
- *
1074
- * _.isObjectLike({});
1075
- * // => true
1076
- *
1077
- * _.isObjectLike([1, 2, 3]);
1078
- * // => true
1079
- *
1080
- * _.isObjectLike(_.noop);
1081
- * // => false
1082
- *
1083
- * _.isObjectLike(null);
1084
- * // => false
1085
- */
1086
- function isObjectLike(value) {
1087
- return value != null && typeof value == 'object';
1088
- }
1089
-
1090
- var isObjectLike_1 = isObjectLike;
1091
-
1092
- /** `Object#toString` result references. */
1093
- var symbolTag = '[object Symbol]';
1094
-
1095
- /**
1096
- * Checks if `value` is classified as a `Symbol` primitive or object.
1097
- *
1098
- * @static
1099
- * @memberOf _
1100
- * @since 4.0.0
1101
- * @category Lang
1102
- * @param {*} value The value to check.
1103
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
1104
- * @example
1105
- *
1106
- * _.isSymbol(Symbol.iterator);
1107
- * // => true
1108
- *
1109
- * _.isSymbol('abc');
1110
- * // => false
1111
- */
1112
- function isSymbol(value) {
1113
- return typeof value == 'symbol' ||
1114
- (isObjectLike_1(value) && _baseGetTag(value) == symbolTag);
1115
- }
1116
-
1117
- var isSymbol_1 = isSymbol;
1118
-
1119
- /** Used to match property names within property paths. */
1120
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
1121
- reIsPlainProp = /^\w*$/;
1122
-
1123
- /**
1124
- * Checks if `value` is a property name and not a property path.
1125
- *
1126
- * @private
1127
- * @param {*} value The value to check.
1128
- * @param {Object} [object] The object to query keys on.
1129
- * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
1130
- */
1131
- function isKey(value, object) {
1132
- if (isArray_1(value)) {
1133
- return false;
1134
- }
1135
- var type = typeof value;
1136
- if (type == 'number' || type == 'symbol' || type == 'boolean' ||
1137
- value == null || isSymbol_1(value)) {
1138
- return true;
1139
- }
1140
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
1141
- (object != null && value in Object(object));
1142
- }
1143
-
1144
- var _isKey = isKey;
1145
-
1146
- /**
1147
- * Checks if `value` is the
1148
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
1149
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
1150
- *
1151
- * @static
1152
- * @memberOf _
1153
- * @since 0.1.0
1154
- * @category Lang
1155
- * @param {*} value The value to check.
1156
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
1157
- * @example
1158
- *
1159
- * _.isObject({});
1160
- * // => true
1161
- *
1162
- * _.isObject([1, 2, 3]);
1163
- * // => true
1164
- *
1165
- * _.isObject(_.noop);
1166
- * // => true
1167
- *
1168
- * _.isObject(null);
1169
- * // => false
1170
- */
1171
- function isObject(value) {
1172
- var type = typeof value;
1173
- return value != null && (type == 'object' || type == 'function');
1174
- }
1175
-
1176
- var isObject_1 = isObject;
1177
-
1178
- /** `Object#toString` result references. */
1179
- var asyncTag = '[object AsyncFunction]',
1180
- funcTag = '[object Function]',
1181
- genTag = '[object GeneratorFunction]',
1182
- proxyTag = '[object Proxy]';
1183
-
1184
- /**
1185
- * Checks if `value` is classified as a `Function` object.
1186
- *
1187
- * @static
1188
- * @memberOf _
1189
- * @since 0.1.0
1190
- * @category Lang
1191
- * @param {*} value The value to check.
1192
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
1193
- * @example
1194
- *
1195
- * _.isFunction(_);
1196
- * // => true
1197
- *
1198
- * _.isFunction(/abc/);
1199
- * // => false
1200
- */
1201
- function isFunction(value) {
1202
- if (!isObject_1(value)) {
1203
- return false;
1204
- }
1205
- // The use of `Object#toString` avoids issues with the `typeof` operator
1206
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
1207
- var tag = _baseGetTag(value);
1208
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
1209
- }
1210
-
1211
- var isFunction_1 = isFunction;
1212
-
1213
- /** Used to detect overreaching core-js shims. */
1214
- var coreJsData = _root['__core-js_shared__'];
1215
-
1216
- var _coreJsData = coreJsData;
1217
-
1218
- /** Used to detect methods masquerading as native. */
1219
- var maskSrcKey = (function() {
1220
- var uid = /[^.]+$/.exec(_coreJsData && _coreJsData.keys && _coreJsData.keys.IE_PROTO || '');
1221
- return uid ? ('Symbol(src)_1.' + uid) : '';
1222
- }());
1223
-
1224
- /**
1225
- * Checks if `func` has its source masked.
1226
- *
1227
- * @private
1228
- * @param {Function} func The function to check.
1229
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
1230
- */
1231
- function isMasked(func) {
1232
- return !!maskSrcKey && (maskSrcKey in func);
1233
- }
1234
-
1235
- var _isMasked = isMasked;
1236
-
1237
- /** Used for built-in method references. */
1238
- var funcProto$1 = Function.prototype;
1239
-
1240
- /** Used to resolve the decompiled source of functions. */
1241
- var funcToString$1 = funcProto$1.toString;
1242
-
1243
- /**
1244
- * Converts `func` to its source code.
1245
- *
1246
- * @private
1247
- * @param {Function} func The function to convert.
1248
- * @returns {string} Returns the source code.
1249
- */
1250
- function toSource(func) {
1251
- if (func != null) {
1252
- try {
1253
- return funcToString$1.call(func);
1254
- } catch (e) {}
1255
- try {
1256
- return (func + '');
1257
- } catch (e) {}
1258
- }
1259
- return '';
1260
- }
1261
-
1262
- var _toSource = toSource;
1263
-
1264
- /**
1265
- * Used to match `RegExp`
1266
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
1267
- */
1268
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
1269
-
1270
- /** Used to detect host constructors (Safari). */
1271
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
1272
-
1273
- /** Used for built-in method references. */
1274
- var funcProto = Function.prototype,
1275
- objectProto$2 = Object.prototype;
1276
-
1277
- /** Used to resolve the decompiled source of functions. */
1278
- var funcToString = funcProto.toString;
1279
-
1280
- /** Used to check objects for own properties. */
1281
- var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
1282
-
1283
- /** Used to detect if a method is native. */
1284
- var reIsNative = RegExp('^' +
1285
- funcToString.call(hasOwnProperty$2).replace(reRegExpChar, '\\$&')
1286
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
1287
- );
1288
-
1289
- /**
1290
- * The base implementation of `_.isNative` without bad shim checks.
1291
- *
1292
- * @private
1293
- * @param {*} value The value to check.
1294
- * @returns {boolean} Returns `true` if `value` is a native function,
1295
- * else `false`.
1296
- */
1297
- function baseIsNative(value) {
1298
- if (!isObject_1(value) || _isMasked(value)) {
1299
- return false;
1300
- }
1301
- var pattern = isFunction_1(value) ? reIsNative : reIsHostCtor;
1302
- return pattern.test(_toSource(value));
1303
- }
1304
-
1305
- var _baseIsNative = baseIsNative;
1306
-
1307
- /**
1308
- * Gets the value at `key` of `object`.
1309
- *
1310
- * @private
1311
- * @param {Object} [object] The object to query.
1312
- * @param {string} key The key of the property to get.
1313
- * @returns {*} Returns the property value.
1314
- */
1315
- function getValue(object, key) {
1316
- return object == null ? undefined : object[key];
1317
- }
1318
-
1319
- var _getValue = getValue;
1320
-
1321
- /**
1322
- * Gets the native function at `key` of `object`.
1323
- *
1324
- * @private
1325
- * @param {Object} object The object to query.
1326
- * @param {string} key The key of the method to get.
1327
- * @returns {*} Returns the function if it's native, else `undefined`.
1328
- */
1329
- function getNative(object, key) {
1330
- var value = _getValue(object, key);
1331
- return _baseIsNative(value) ? value : undefined;
1332
- }
1333
-
1334
- var _getNative = getNative;
1335
-
1336
- /* Built-in method references that are verified to be native. */
1337
- var nativeCreate = _getNative(Object, 'create');
1338
-
1339
- var _nativeCreate = nativeCreate;
1340
-
1341
- /**
1342
- * Removes all key-value entries from the hash.
1343
- *
1344
- * @private
1345
- * @name clear
1346
- * @memberOf Hash
1347
- */
1348
- function hashClear() {
1349
- this.__data__ = _nativeCreate ? _nativeCreate(null) : {};
1350
- this.size = 0;
1351
- }
1352
-
1353
- var _hashClear = hashClear;
1354
-
1355
- /**
1356
- * Removes `key` and its value from the hash.
1357
- *
1358
- * @private
1359
- * @name delete
1360
- * @memberOf Hash
1361
- * @param {Object} hash The hash to modify.
1362
- * @param {string} key The key of the value to remove.
1363
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1364
- */
1365
- function hashDelete(key) {
1366
- var result = this.has(key) && delete this.__data__[key];
1367
- this.size -= result ? 1 : 0;
1368
- return result;
1369
- }
1370
-
1371
- var _hashDelete = hashDelete;
1372
-
1373
- /** Used to stand-in for `undefined` hash values. */
1374
- var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
1375
-
1376
- /** Used for built-in method references. */
1377
- var objectProto$1 = Object.prototype;
1378
-
1379
- /** Used to check objects for own properties. */
1380
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
1381
-
1382
- /**
1383
- * Gets the hash value for `key`.
1384
- *
1385
- * @private
1386
- * @name get
1387
- * @memberOf Hash
1388
- * @param {string} key The key of the value to get.
1389
- * @returns {*} Returns the entry value.
1390
- */
1391
- function hashGet(key) {
1392
- var data = this.__data__;
1393
- if (_nativeCreate) {
1394
- var result = data[key];
1395
- return result === HASH_UNDEFINED$1 ? undefined : result;
1396
- }
1397
- return hasOwnProperty$1.call(data, key) ? data[key] : undefined;
1398
- }
1399
-
1400
- var _hashGet = hashGet;
1401
-
1402
- /** Used for built-in method references. */
1403
- var objectProto = Object.prototype;
1404
-
1405
- /** Used to check objects for own properties. */
1406
- var hasOwnProperty = objectProto.hasOwnProperty;
1407
-
1408
- /**
1409
- * Checks if a hash value for `key` exists.
1410
- *
1411
- * @private
1412
- * @name has
1413
- * @memberOf Hash
1414
- * @param {string} key The key of the entry to check.
1415
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1416
- */
1417
- function hashHas(key) {
1418
- var data = this.__data__;
1419
- return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
1420
- }
1421
-
1422
- var _hashHas = hashHas;
1423
-
1424
- /** Used to stand-in for `undefined` hash values. */
1425
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
1426
-
1427
- /**
1428
- * Sets the hash `key` to `value`.
1429
- *
1430
- * @private
1431
- * @name set
1432
- * @memberOf Hash
1433
- * @param {string} key The key of the value to set.
1434
- * @param {*} value The value to set.
1435
- * @returns {Object} Returns the hash instance.
1436
- */
1437
- function hashSet(key, value) {
1438
- var data = this.__data__;
1439
- this.size += this.has(key) ? 0 : 1;
1440
- data[key] = (_nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
1441
- return this;
1442
- }
1443
-
1444
- var _hashSet = hashSet;
1445
-
1446
- /**
1447
- * Creates a hash object.
1448
- *
1449
- * @private
1450
- * @constructor
1451
- * @param {Array} [entries] The key-value pairs to cache.
1452
- */
1453
- function Hash(entries) {
1454
- var index = -1,
1455
- length = entries == null ? 0 : entries.length;
1456
-
1457
- this.clear();
1458
- while (++index < length) {
1459
- var entry = entries[index];
1460
- this.set(entry[0], entry[1]);
1461
- }
1462
- }
1463
-
1464
- // Add methods to `Hash`.
1465
- Hash.prototype.clear = _hashClear;
1466
- Hash.prototype['delete'] = _hashDelete;
1467
- Hash.prototype.get = _hashGet;
1468
- Hash.prototype.has = _hashHas;
1469
- Hash.prototype.set = _hashSet;
1470
-
1471
- var _Hash = Hash;
1472
-
1473
- /**
1474
- * Removes all key-value entries from the list cache.
1475
- *
1476
- * @private
1477
- * @name clear
1478
- * @memberOf ListCache
1479
- */
1480
- function listCacheClear() {
1481
- this.__data__ = [];
1482
- this.size = 0;
1483
- }
1484
-
1485
- var _listCacheClear = listCacheClear;
1486
-
1487
- /**
1488
- * Performs a
1489
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
1490
- * comparison between two values to determine if they are equivalent.
1491
- *
1492
- * @static
1493
- * @memberOf _
1494
- * @since 4.0.0
1495
- * @category Lang
1496
- * @param {*} value The value to compare.
1497
- * @param {*} other The other value to compare.
1498
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
1499
- * @example
1500
- *
1501
- * var object = { 'a': 1 };
1502
- * var other = { 'a': 1 };
1503
- *
1504
- * _.eq(object, object);
1505
- * // => true
1506
- *
1507
- * _.eq(object, other);
1508
- * // => false
1509
- *
1510
- * _.eq('a', 'a');
1511
- * // => true
1512
- *
1513
- * _.eq('a', Object('a'));
1514
- * // => false
1515
- *
1516
- * _.eq(NaN, NaN);
1517
- * // => true
1518
- */
1519
- function eq(value, other) {
1520
- return value === other || (value !== value && other !== other);
1521
- }
1522
-
1523
- var eq_1 = eq;
1524
-
1525
- /**
1526
- * Gets the index at which the `key` is found in `array` of key-value pairs.
1527
- *
1528
- * @private
1529
- * @param {Array} array The array to inspect.
1530
- * @param {*} key The key to search for.
1531
- * @returns {number} Returns the index of the matched value, else `-1`.
1532
- */
1533
- function assocIndexOf(array, key) {
1534
- var length = array.length;
1535
- while (length--) {
1536
- if (eq_1(array[length][0], key)) {
1537
- return length;
1538
- }
1539
- }
1540
- return -1;
1541
- }
1542
-
1543
- var _assocIndexOf = assocIndexOf;
1544
-
1545
- /** Used for built-in method references. */
1546
- var arrayProto = Array.prototype;
1547
-
1548
- /** Built-in value references. */
1549
- var splice = arrayProto.splice;
1550
-
1551
- /**
1552
- * Removes `key` and its value from the list cache.
1553
- *
1554
- * @private
1555
- * @name delete
1556
- * @memberOf ListCache
1557
- * @param {string} key The key of the value to remove.
1558
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1559
- */
1560
- function listCacheDelete(key) {
1561
- var data = this.__data__,
1562
- index = _assocIndexOf(data, key);
1563
-
1564
- if (index < 0) {
1565
- return false;
1566
- }
1567
- var lastIndex = data.length - 1;
1568
- if (index == lastIndex) {
1569
- data.pop();
1570
- } else {
1571
- splice.call(data, index, 1);
1572
- }
1573
- --this.size;
1574
- return true;
1575
- }
1576
-
1577
- var _listCacheDelete = listCacheDelete;
1578
-
1579
- /**
1580
- * Gets the list cache value for `key`.
1581
- *
1582
- * @private
1583
- * @name get
1584
- * @memberOf ListCache
1585
- * @param {string} key The key of the value to get.
1586
- * @returns {*} Returns the entry value.
1587
- */
1588
- function listCacheGet(key) {
1589
- var data = this.__data__,
1590
- index = _assocIndexOf(data, key);
1591
-
1592
- return index < 0 ? undefined : data[index][1];
1593
- }
1594
-
1595
- var _listCacheGet = listCacheGet;
1596
-
1597
- /**
1598
- * Checks if a list cache value for `key` exists.
1599
- *
1600
- * @private
1601
- * @name has
1602
- * @memberOf ListCache
1603
- * @param {string} key The key of the entry to check.
1604
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1605
- */
1606
- function listCacheHas(key) {
1607
- return _assocIndexOf(this.__data__, key) > -1;
1608
- }
1609
-
1610
- var _listCacheHas = listCacheHas;
1611
-
1612
- /**
1613
- * Sets the list cache `key` to `value`.
1614
- *
1615
- * @private
1616
- * @name set
1617
- * @memberOf ListCache
1618
- * @param {string} key The key of the value to set.
1619
- * @param {*} value The value to set.
1620
- * @returns {Object} Returns the list cache instance.
1621
- */
1622
- function listCacheSet(key, value) {
1623
- var data = this.__data__,
1624
- index = _assocIndexOf(data, key);
1625
-
1626
- if (index < 0) {
1627
- ++this.size;
1628
- data.push([key, value]);
1629
- } else {
1630
- data[index][1] = value;
1631
- }
1632
- return this;
1633
- }
1634
-
1635
- var _listCacheSet = listCacheSet;
1636
-
1637
- /**
1638
- * Creates an list cache object.
1639
- *
1640
- * @private
1641
- * @constructor
1642
- * @param {Array} [entries] The key-value pairs to cache.
1643
- */
1644
- function ListCache(entries) {
1645
- var index = -1,
1646
- length = entries == null ? 0 : entries.length;
1647
-
1648
- this.clear();
1649
- while (++index < length) {
1650
- var entry = entries[index];
1651
- this.set(entry[0], entry[1]);
1652
- }
1653
- }
1654
-
1655
- // Add methods to `ListCache`.
1656
- ListCache.prototype.clear = _listCacheClear;
1657
- ListCache.prototype['delete'] = _listCacheDelete;
1658
- ListCache.prototype.get = _listCacheGet;
1659
- ListCache.prototype.has = _listCacheHas;
1660
- ListCache.prototype.set = _listCacheSet;
1661
-
1662
- var _ListCache = ListCache;
1663
-
1664
- /* Built-in method references that are verified to be native. */
1665
- var Map = _getNative(_root, 'Map');
1666
-
1667
- var _Map = Map;
1668
-
1669
- /**
1670
- * Removes all key-value entries from the map.
1671
- *
1672
- * @private
1673
- * @name clear
1674
- * @memberOf MapCache
1675
- */
1676
- function mapCacheClear() {
1677
- this.size = 0;
1678
- this.__data__ = {
1679
- 'hash': new _Hash,
1680
- 'map': new (_Map || _ListCache),
1681
- 'string': new _Hash
1682
- };
1683
- }
1684
-
1685
- var _mapCacheClear = mapCacheClear;
1686
-
1687
- /**
1688
- * Checks if `value` is suitable for use as unique object key.
1689
- *
1690
- * @private
1691
- * @param {*} value The value to check.
1692
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
1693
- */
1694
- function isKeyable(value) {
1695
- var type = typeof value;
1696
- return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
1697
- ? (value !== '__proto__')
1698
- : (value === null);
1699
- }
1700
-
1701
- var _isKeyable = isKeyable;
1702
-
1703
- /**
1704
- * Gets the data for `map`.
1705
- *
1706
- * @private
1707
- * @param {Object} map The map to query.
1708
- * @param {string} key The reference key.
1709
- * @returns {*} Returns the map data.
1710
- */
1711
- function getMapData(map, key) {
1712
- var data = map.__data__;
1713
- return _isKeyable(key)
1714
- ? data[typeof key == 'string' ? 'string' : 'hash']
1715
- : data.map;
1716
- }
1717
-
1718
- var _getMapData = getMapData;
1719
-
1720
- /**
1721
- * Removes `key` and its value from the map.
1722
- *
1723
- * @private
1724
- * @name delete
1725
- * @memberOf MapCache
1726
- * @param {string} key The key of the value to remove.
1727
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1728
- */
1729
- function mapCacheDelete(key) {
1730
- var result = _getMapData(this, key)['delete'](key);
1731
- this.size -= result ? 1 : 0;
1732
- return result;
1733
- }
1734
-
1735
- var _mapCacheDelete = mapCacheDelete;
1736
-
1737
- /**
1738
- * Gets the map value for `key`.
1739
- *
1740
- * @private
1741
- * @name get
1742
- * @memberOf MapCache
1743
- * @param {string} key The key of the value to get.
1744
- * @returns {*} Returns the entry value.
1745
- */
1746
- function mapCacheGet(key) {
1747
- return _getMapData(this, key).get(key);
1748
- }
1749
-
1750
- var _mapCacheGet = mapCacheGet;
1751
-
1752
- /**
1753
- * Checks if a map value for `key` exists.
1754
- *
1755
- * @private
1756
- * @name has
1757
- * @memberOf MapCache
1758
- * @param {string} key The key of the entry to check.
1759
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1760
- */
1761
- function mapCacheHas(key) {
1762
- return _getMapData(this, key).has(key);
1763
- }
1764
-
1765
- var _mapCacheHas = mapCacheHas;
1766
-
1767
- /**
1768
- * Sets the map `key` to `value`.
1769
- *
1770
- * @private
1771
- * @name set
1772
- * @memberOf MapCache
1773
- * @param {string} key The key of the value to set.
1774
- * @param {*} value The value to set.
1775
- * @returns {Object} Returns the map cache instance.
1776
- */
1777
- function mapCacheSet(key, value) {
1778
- var data = _getMapData(this, key),
1779
- size = data.size;
1780
-
1781
- data.set(key, value);
1782
- this.size += data.size == size ? 0 : 1;
1783
- return this;
1784
- }
1785
-
1786
- var _mapCacheSet = mapCacheSet;
1787
-
1788
- /**
1789
- * Creates a map cache object to store key-value pairs.
1790
- *
1791
- * @private
1792
- * @constructor
1793
- * @param {Array} [entries] The key-value pairs to cache.
1794
- */
1795
- function MapCache(entries) {
1796
- var index = -1,
1797
- length = entries == null ? 0 : entries.length;
1798
-
1799
- this.clear();
1800
- while (++index < length) {
1801
- var entry = entries[index];
1802
- this.set(entry[0], entry[1]);
1803
- }
1804
- }
1805
-
1806
- // Add methods to `MapCache`.
1807
- MapCache.prototype.clear = _mapCacheClear;
1808
- MapCache.prototype['delete'] = _mapCacheDelete;
1809
- MapCache.prototype.get = _mapCacheGet;
1810
- MapCache.prototype.has = _mapCacheHas;
1811
- MapCache.prototype.set = _mapCacheSet;
1812
-
1813
- var _MapCache = MapCache;
1814
-
1815
- /** Error message constants. */
1816
- var FUNC_ERROR_TEXT = 'Expected a function';
1817
-
1818
- /**
1819
- * Creates a function that memoizes the result of `func`. If `resolver` is
1820
- * provided, it determines the cache key for storing the result based on the
1821
- * arguments provided to the memoized function. By default, the first argument
1822
- * provided to the memoized function is used as the map cache key. The `func`
1823
- * is invoked with the `this` binding of the memoized function.
1824
- *
1825
- * **Note:** The cache is exposed as the `cache` property on the memoized
1826
- * function. Its creation may be customized by replacing the `_.memoize.Cache`
1827
- * constructor with one whose instances implement the
1828
- * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
1829
- * method interface of `clear`, `delete`, `get`, `has`, and `set`.
1830
- *
1831
- * @static
1832
- * @memberOf _
1833
- * @since 0.1.0
1834
- * @category Function
1835
- * @param {Function} func The function to have its output memoized.
1836
- * @param {Function} [resolver] The function to resolve the cache key.
1837
- * @returns {Function} Returns the new memoized function.
1838
- * @example
1839
- *
1840
- * var object = { 'a': 1, 'b': 2 };
1841
- * var other = { 'c': 3, 'd': 4 };
1842
- *
1843
- * var values = _.memoize(_.values);
1844
- * values(object);
1845
- * // => [1, 2]
1846
- *
1847
- * values(other);
1848
- * // => [3, 4]
1849
- *
1850
- * object.a = 2;
1851
- * values(object);
1852
- * // => [1, 2]
1853
- *
1854
- * // Modify the result cache.
1855
- * values.cache.set(object, ['a', 'b']);
1856
- * values(object);
1857
- * // => ['a', 'b']
1858
- *
1859
- * // Replace `_.memoize.Cache`.
1860
- * _.memoize.Cache = WeakMap;
1861
- */
1862
- function memoize(func, resolver) {
1863
- if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
1864
- throw new TypeError(FUNC_ERROR_TEXT);
1865
- }
1866
- var memoized = function() {
1867
- var args = arguments,
1868
- key = resolver ? resolver.apply(this, args) : args[0],
1869
- cache = memoized.cache;
1870
-
1871
- if (cache.has(key)) {
1872
- return cache.get(key);
1873
- }
1874
- var result = func.apply(this, args);
1875
- memoized.cache = cache.set(key, result) || cache;
1876
- return result;
1877
- };
1878
- memoized.cache = new (memoize.Cache || _MapCache);
1879
- return memoized;
1880
- }
1881
-
1882
- // Expose `MapCache`.
1883
- memoize.Cache = _MapCache;
1884
-
1885
- var memoize_1 = memoize;
1886
-
1887
- /** Used as the maximum memoize cache size. */
1888
- var MAX_MEMOIZE_SIZE = 500;
1889
-
1890
- /**
1891
- * A specialized version of `_.memoize` which clears the memoized function's
1892
- * cache when it exceeds `MAX_MEMOIZE_SIZE`.
1893
- *
1894
- * @private
1895
- * @param {Function} func The function to have its output memoized.
1896
- * @returns {Function} Returns the new memoized function.
1897
- */
1898
- function memoizeCapped(func) {
1899
- var result = memoize_1(func, function(key) {
1900
- if (cache.size === MAX_MEMOIZE_SIZE) {
1901
- cache.clear();
1902
- }
1903
- return key;
1904
- });
1905
-
1906
- var cache = result.cache;
1907
- return result;
1908
- }
1909
-
1910
- var _memoizeCapped = memoizeCapped;
1911
-
1912
- /** Used to match property names within property paths. */
1913
- var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
1914
-
1915
- /** Used to match backslashes in property paths. */
1916
- var reEscapeChar = /\\(\\)?/g;
1917
-
1918
- /**
1919
- * Converts `string` to a property path array.
1920
- *
1921
- * @private
1922
- * @param {string} string The string to convert.
1923
- * @returns {Array} Returns the property path array.
1924
- */
1925
- var stringToPath = _memoizeCapped(function(string) {
1926
- var result = [];
1927
- if (string.charCodeAt(0) === 46 /* . */) {
1928
- result.push('');
1929
- }
1930
- string.replace(rePropName, function(match, number, quote, subString) {
1931
- result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
1932
- });
1933
- return result;
1934
- });
1935
-
1936
- var _stringToPath = stringToPath;
1937
-
1938
- /**
1939
- * A specialized version of `_.map` for arrays without support for iteratee
1940
- * shorthands.
1941
- *
1942
- * @private
1943
- * @param {Array} [array] The array to iterate over.
1944
- * @param {Function} iteratee The function invoked per iteration.
1945
- * @returns {Array} Returns the new mapped array.
1946
- */
1947
- function arrayMap(array, iteratee) {
1948
- var index = -1,
1949
- length = array == null ? 0 : array.length,
1950
- result = Array(length);
1951
-
1952
- while (++index < length) {
1953
- result[index] = iteratee(array[index], index, array);
1954
- }
1955
- return result;
1956
- }
1957
-
1958
- var _arrayMap = arrayMap;
1959
-
1960
- /** Used as references for various `Number` constants. */
1961
- var INFINITY$1 = 1 / 0;
1962
-
1963
- /** Used to convert symbols to primitives and strings. */
1964
- var symbolProto = _Symbol ? _Symbol.prototype : undefined,
1965
- symbolToString = symbolProto ? symbolProto.toString : undefined;
1966
-
1967
- /**
1968
- * The base implementation of `_.toString` which doesn't convert nullish
1969
- * values to empty strings.
1970
- *
1971
- * @private
1972
- * @param {*} value The value to process.
1973
- * @returns {string} Returns the string.
1974
- */
1975
- function baseToString(value) {
1976
- // Exit early for strings to avoid a performance hit in some environments.
1977
- if (typeof value == 'string') {
1978
- return value;
1979
- }
1980
- if (isArray_1(value)) {
1981
- // Recursively convert values (susceptible to call stack limits).
1982
- return _arrayMap(value, baseToString) + '';
1983
- }
1984
- if (isSymbol_1(value)) {
1985
- return symbolToString ? symbolToString.call(value) : '';
1986
- }
1987
- var result = (value + '');
1988
- return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
1989
- }
1990
-
1991
- var _baseToString = baseToString;
1992
-
1993
- /**
1994
- * Converts `value` to a string. An empty string is returned for `null`
1995
- * and `undefined` values. The sign of `-0` is preserved.
1996
- *
1997
- * @static
1998
- * @memberOf _
1999
- * @since 4.0.0
2000
- * @category Lang
2001
- * @param {*} value The value to convert.
2002
- * @returns {string} Returns the converted string.
2003
- * @example
2004
- *
2005
- * _.toString(null);
2006
- * // => ''
2007
- *
2008
- * _.toString(-0);
2009
- * // => '-0'
2010
- *
2011
- * _.toString([1, 2, 3]);
2012
- * // => '1,2,3'
2013
- */
2014
- function toString(value) {
2015
- return value == null ? '' : _baseToString(value);
2016
- }
2017
-
2018
- var toString_1 = toString;
2019
-
2020
- /**
2021
- * Casts `value` to a path array if it's not one.
2022
- *
2023
- * @private
2024
- * @param {*} value The value to inspect.
2025
- * @param {Object} [object] The object to query keys on.
2026
- * @returns {Array} Returns the cast property path array.
2027
- */
2028
- function castPath(value, object) {
2029
- if (isArray_1(value)) {
2030
- return value;
2031
- }
2032
- return _isKey(value, object) ? [value] : _stringToPath(toString_1(value));
2033
- }
2034
-
2035
- var _castPath = castPath;
2036
-
2037
- /** Used as references for various `Number` constants. */
2038
- var INFINITY = 1 / 0;
2039
-
2040
- /**
2041
- * Converts `value` to a string key if it's not a string or symbol.
2042
- *
2043
- * @private
2044
- * @param {*} value The value to inspect.
2045
- * @returns {string|symbol} Returns the key.
2046
- */
2047
- function toKey(value) {
2048
- if (typeof value == 'string' || isSymbol_1(value)) {
2049
- return value;
2050
- }
2051
- var result = (value + '');
2052
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
2053
- }
2054
-
2055
- var _toKey = toKey;
2056
-
2057
- /**
2058
- * The base implementation of `_.get` without support for default values.
2059
- *
2060
- * @private
2061
- * @param {Object} object The object to query.
2062
- * @param {Array|string} path The path of the property to get.
2063
- * @returns {*} Returns the resolved value.
2064
- */
2065
- function baseGet(object, path) {
2066
- path = _castPath(path, object);
2067
-
2068
- var index = 0,
2069
- length = path.length;
2070
-
2071
- while (object != null && index < length) {
2072
- object = object[_toKey(path[index++])];
2073
- }
2074
- return (index && index == length) ? object : undefined;
2075
- }
2076
-
2077
- var _baseGet = baseGet;
2078
-
2079
- /**
2080
- * Gets the value at `path` of `object`. If the resolved value is
2081
- * `undefined`, the `defaultValue` is returned in its place.
2082
- *
2083
- * @static
2084
- * @memberOf _
2085
- * @since 3.7.0
2086
- * @category Object
2087
- * @param {Object} object The object to query.
2088
- * @param {Array|string} path The path of the property to get.
2089
- * @param {*} [defaultValue] The value returned for `undefined` resolved values.
2090
- * @returns {*} Returns the resolved value.
2091
- * @example
2092
- *
2093
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
2094
- *
2095
- * _.get(object, 'a[0].b.c');
2096
- * // => 3
2097
- *
2098
- * _.get(object, ['a', '0', 'b', 'c']);
2099
- * // => 3
2100
- *
2101
- * _.get(object, 'a.b.c', 'default');
2102
- * // => 'default'
2103
- */
2104
- function get(object, path, defaultValue) {
2105
- var result = object == null ? undefined : _baseGet(object, path);
2106
- return result === undefined ? defaultValue : result;
2107
- }
2108
-
2109
- var get_1 = get;
2110
-
2111
- /**
2112
- * A specialized version of `_.reduce` for arrays without support for
2113
- * iteratee shorthands.
2114
- *
2115
- * @private
2116
- * @param {Array} [array] The array to iterate over.
2117
- * @param {Function} iteratee The function invoked per iteration.
2118
- * @param {*} [accumulator] The initial value.
2119
- * @param {boolean} [initAccum] Specify using the first element of `array` as
2120
- * the initial value.
2121
- * @returns {*} Returns the accumulated value.
2122
- */
2123
- function arrayReduce(array, iteratee, accumulator, initAccum) {
2124
- var index = -1,
2125
- length = array == null ? 0 : array.length;
2126
-
2127
- if (initAccum && length) {
2128
- accumulator = array[++index];
2129
- }
2130
- while (++index < length) {
2131
- accumulator = iteratee(accumulator, array[index], index, array);
2132
- }
2133
- return accumulator;
2134
- }
2135
-
2136
- var _arrayReduce = arrayReduce;
2137
-
2138
- /**
2139
- * The base implementation of `_.propertyOf` without support for deep paths.
2140
- *
2141
- * @private
2142
- * @param {Object} object The object to query.
2143
- * @returns {Function} Returns the new accessor function.
2144
- */
2145
- function basePropertyOf(object) {
2146
- return function(key) {
2147
- return object == null ? undefined : object[key];
2148
- };
2149
- }
2150
-
2151
- var _basePropertyOf = basePropertyOf;
2152
-
2153
- /** Used to map Latin Unicode letters to basic Latin letters. */
2154
- var deburredLetters = {
2155
- // Latin-1 Supplement block.
2156
- '\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
2157
- '\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
2158
- '\xc7': 'C', '\xe7': 'c',
2159
- '\xd0': 'D', '\xf0': 'd',
2160
- '\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
2161
- '\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
2162
- '\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
2163
- '\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i',
2164
- '\xd1': 'N', '\xf1': 'n',
2165
- '\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
2166
- '\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
2167
- '\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
2168
- '\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
2169
- '\xdd': 'Y', '\xfd': 'y', '\xff': 'y',
2170
- '\xc6': 'Ae', '\xe6': 'ae',
2171
- '\xde': 'Th', '\xfe': 'th',
2172
- '\xdf': 'ss',
2173
- // Latin Extended-A block.
2174
- '\u0100': 'A', '\u0102': 'A', '\u0104': 'A',
2175
- '\u0101': 'a', '\u0103': 'a', '\u0105': 'a',
2176
- '\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C',
2177
- '\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c',
2178
- '\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd',
2179
- '\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E',
2180
- '\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e',
2181
- '\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G',
2182
- '\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g',
2183
- '\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h',
2184
- '\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I',
2185
- '\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i',
2186
- '\u0134': 'J', '\u0135': 'j',
2187
- '\u0136': 'K', '\u0137': 'k', '\u0138': 'k',
2188
- '\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L',
2189
- '\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l',
2190
- '\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N',
2191
- '\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n',
2192
- '\u014c': 'O', '\u014e': 'O', '\u0150': 'O',
2193
- '\u014d': 'o', '\u014f': 'o', '\u0151': 'o',
2194
- '\u0154': 'R', '\u0156': 'R', '\u0158': 'R',
2195
- '\u0155': 'r', '\u0157': 'r', '\u0159': 'r',
2196
- '\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S',
2197
- '\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's',
2198
- '\u0162': 'T', '\u0164': 'T', '\u0166': 'T',
2199
- '\u0163': 't', '\u0165': 't', '\u0167': 't',
2200
- '\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U',
2201
- '\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u',
2202
- '\u0174': 'W', '\u0175': 'w',
2203
- '\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y',
2204
- '\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z',
2205
- '\u017a': 'z', '\u017c': 'z', '\u017e': 'z',
2206
- '\u0132': 'IJ', '\u0133': 'ij',
2207
- '\u0152': 'Oe', '\u0153': 'oe',
2208
- '\u0149': "'n", '\u017f': 's'
2209
- };
2210
-
2211
- /**
2212
- * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
2213
- * letters to basic Latin letters.
2214
- *
2215
- * @private
2216
- * @param {string} letter The matched letter to deburr.
2217
- * @returns {string} Returns the deburred letter.
2218
- */
2219
- var deburrLetter = _basePropertyOf(deburredLetters);
2220
-
2221
- var _deburrLetter = deburrLetter;
2222
-
2223
- /** Used to match Latin Unicode letters (excluding mathematical operators). */
2224
- var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
2225
-
2226
- /** Used to compose unicode character classes. */
2227
- var rsComboMarksRange$3 = '\\u0300-\\u036f',
2228
- reComboHalfMarksRange$3 = '\\ufe20-\\ufe2f',
2229
- rsComboSymbolsRange$3 = '\\u20d0-\\u20ff',
2230
- rsComboRange$3 = rsComboMarksRange$3 + reComboHalfMarksRange$3 + rsComboSymbolsRange$3;
2231
-
2232
- /** Used to compose unicode capture groups. */
2233
- var rsCombo$2 = '[' + rsComboRange$3 + ']';
2234
-
2235
- /**
2236
- * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
2237
- * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
2238
- */
2239
- var reComboMark = RegExp(rsCombo$2, 'g');
2240
-
2241
- /**
2242
- * Deburrs `string` by converting
2243
- * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
2244
- * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
2245
- * letters to basic Latin letters and removing
2246
- * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
2247
- *
2248
- * @static
2249
- * @memberOf _
2250
- * @since 3.0.0
2251
- * @category String
2252
- * @param {string} [string=''] The string to deburr.
2253
- * @returns {string} Returns the deburred string.
2254
- * @example
2255
- *
2256
- * _.deburr('déjà vu');
2257
- * // => 'deja vu'
2258
- */
2259
- function deburr(string) {
2260
- string = toString_1(string);
2261
- return string && string.replace(reLatin, _deburrLetter).replace(reComboMark, '');
2262
- }
2263
-
2264
- var deburr_1 = deburr;
2265
-
2266
- /** Used to match words composed of alphanumeric characters. */
2267
- var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
2268
-
2269
- /**
2270
- * Splits an ASCII `string` into an array of its words.
2271
- *
2272
- * @private
2273
- * @param {string} The string to inspect.
2274
- * @returns {Array} Returns the words of `string`.
2275
- */
2276
- function asciiWords(string) {
2277
- return string.match(reAsciiWord) || [];
2278
- }
2279
-
2280
- var _asciiWords = asciiWords;
2281
-
2282
- /** Used to detect strings that need a more robust regexp to match words. */
2283
- 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 ]/;
2284
-
2285
- /**
2286
- * Checks if `string` contains a word composed of Unicode symbols.
2287
- *
2288
- * @private
2289
- * @param {string} string The string to inspect.
2290
- * @returns {boolean} Returns `true` if a word is found, else `false`.
2291
- */
2292
- function hasUnicodeWord(string) {
2293
- return reHasUnicodeWord.test(string);
2294
- }
2295
-
2296
- var _hasUnicodeWord = hasUnicodeWord;
2297
-
2298
- /** Used to compose unicode character classes. */
2299
- var rsAstralRange$2 = '\\ud800-\\udfff',
2300
- rsComboMarksRange$2 = '\\u0300-\\u036f',
2301
- reComboHalfMarksRange$2 = '\\ufe20-\\ufe2f',
2302
- rsComboSymbolsRange$2 = '\\u20d0-\\u20ff',
2303
- rsComboRange$2 = rsComboMarksRange$2 + reComboHalfMarksRange$2 + rsComboSymbolsRange$2,
2304
- rsDingbatRange = '\\u2700-\\u27bf',
2305
- rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff',
2306
- rsMathOpRange = '\\xac\\xb1\\xd7\\xf7',
2307
- rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
2308
- rsPunctuationRange = '\\u2000-\\u206f',
2309
- 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',
2310
- rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
2311
- rsVarRange$2 = '\\ufe0e\\ufe0f',
2312
- rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
2313
-
2314
- /** Used to compose unicode capture groups. */
2315
- var rsApos$1 = "['\u2019]",
2316
- rsBreak = '[' + rsBreakRange + ']',
2317
- rsCombo$1 = '[' + rsComboRange$2 + ']',
2318
- rsDigits = '\\d+',
2319
- rsDingbat = '[' + rsDingbatRange + ']',
2320
- rsLower = '[' + rsLowerRange + ']',
2321
- rsMisc = '[^' + rsAstralRange$2 + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',
2322
- rsFitz$1 = '\\ud83c[\\udffb-\\udfff]',
2323
- rsModifier$1 = '(?:' + rsCombo$1 + '|' + rsFitz$1 + ')',
2324
- rsNonAstral$1 = '[^' + rsAstralRange$2 + ']',
2325
- rsRegional$1 = '(?:\\ud83c[\\udde6-\\uddff]){2}',
2326
- rsSurrPair$1 = '[\\ud800-\\udbff][\\udc00-\\udfff]',
2327
- rsUpper = '[' + rsUpperRange + ']',
2328
- rsZWJ$2 = '\\u200d';
2329
-
2330
- /** Used to compose unicode regexes. */
2331
- var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',
2332
- rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',
2333
- rsOptContrLower = '(?:' + rsApos$1 + '(?:d|ll|m|re|s|t|ve))?',
2334
- rsOptContrUpper = '(?:' + rsApos$1 + '(?:D|LL|M|RE|S|T|VE))?',
2335
- reOptMod$1 = rsModifier$1 + '?',
2336
- rsOptVar$1 = '[' + rsVarRange$2 + ']?',
2337
- rsOptJoin$1 = '(?:' + rsZWJ$2 + '(?:' + [rsNonAstral$1, rsRegional$1, rsSurrPair$1].join('|') + ')' + rsOptVar$1 + reOptMod$1 + ')*',
2338
- rsOrdLower = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',
2339
- rsOrdUpper = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',
2340
- rsSeq$1 = rsOptVar$1 + reOptMod$1 + rsOptJoin$1,
2341
- rsEmoji = '(?:' + [rsDingbat, rsRegional$1, rsSurrPair$1].join('|') + ')' + rsSeq$1;
2342
-
2343
- /** Used to match complex or compound words. */
2344
- var reUnicodeWord = RegExp([
2345
- rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',
2346
- rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',
2347
- rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,
2348
- rsUpper + '+' + rsOptContrUpper,
2349
- rsOrdUpper,
2350
- rsOrdLower,
2351
- rsDigits,
2352
- rsEmoji
2353
- ].join('|'), 'g');
2354
-
2355
- /**
2356
- * Splits a Unicode `string` into an array of its words.
2357
- *
2358
- * @private
2359
- * @param {string} The string to inspect.
2360
- * @returns {Array} Returns the words of `string`.
2361
- */
2362
- function unicodeWords(string) {
2363
- return string.match(reUnicodeWord) || [];
2364
- }
2365
-
2366
- var _unicodeWords = unicodeWords;
2367
-
2368
- /**
2369
- * Splits `string` into an array of its words.
2370
- *
2371
- * @static
2372
- * @memberOf _
2373
- * @since 3.0.0
2374
- * @category String
2375
- * @param {string} [string=''] The string to inspect.
2376
- * @param {RegExp|string} [pattern] The pattern to match words.
2377
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
2378
- * @returns {Array} Returns the words of `string`.
2379
- * @example
2380
- *
2381
- * _.words('fred, barney, & pebbles');
2382
- * // => ['fred', 'barney', 'pebbles']
2383
- *
2384
- * _.words('fred, barney, & pebbles', /[^, ]+/g);
2385
- * // => ['fred', 'barney', '&', 'pebbles']
2386
- */
2387
- function words(string, pattern, guard) {
2388
- string = toString_1(string);
2389
- pattern = guard ? undefined : pattern;
2390
-
2391
- if (pattern === undefined) {
2392
- return _hasUnicodeWord(string) ? _unicodeWords(string) : _asciiWords(string);
2393
- }
2394
- return string.match(pattern) || [];
2395
- }
2396
-
2397
- var words_1 = words;
2398
-
2399
- /** Used to compose unicode capture groups. */
2400
- var rsApos = "['\u2019]";
2401
-
2402
- /** Used to match apostrophes. */
2403
- var reApos = RegExp(rsApos, 'g');
2404
-
2405
- /**
2406
- * Creates a function like `_.camelCase`.
2407
- *
2408
- * @private
2409
- * @param {Function} callback The function to combine each word.
2410
- * @returns {Function} Returns the new compounder function.
2411
- */
2412
- function createCompounder(callback) {
2413
- return function(string) {
2414
- return _arrayReduce(words_1(deburr_1(string).replace(reApos, '')), callback, '');
2415
- };
2416
- }
2417
-
2418
- var _createCompounder = createCompounder;
23
+ var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
24
+ var _slicedToArray__default = /*#__PURE__*/_interopDefaultLegacy(_slicedToArray);
2419
25
 
2420
26
  var canUseDOM = !!(typeof window !== "undefined" && window.document && window.document.createElement);
2421
27
  var sharePageUrl = canUseDOM && window.location.href;
@@ -2448,10 +54,10 @@ var clientWidths = {
2448
54
  tablet: 1024
2449
55
  };
2450
56
  var clientWidth = function clientWidth(device) {
2451
- var foundDeviceWidth = get_1(clientWidths, device);
57
+ var foundDeviceWidth = lodash.get(clientWidths, device);
2452
58
 
2453
59
  if (foundDeviceWidth) {
2454
- return get_1(global, "document.documentElement.clientWidth") <= foundDeviceWidth;
60
+ return lodash.get(global, "document.documentElement.clientWidth") <= foundDeviceWidth;
2455
61
  }
2456
62
 
2457
63
  return false;
@@ -2514,7 +120,7 @@ var authorWithImage = function authorWithImage(author, templateStyle) {
2514
120
  name = author.name;
2515
121
  return /*#__PURE__*/React__default["default"].createElement("div", {
2516
122
  "data-test-id": "author-image",
2517
- className: "arr--author-image " + _getClassName("author-image ".concat(templateStyle), _styleModuleImportMap$3)
123
+ className: "arr--author-image " + _getClassName__default["default"]("author-image ".concat(templateStyle), _styleModuleImportMap$3)
2518
124
  }, /*#__PURE__*/React__default["default"].createElement("figure", {
2519
125
  className: "author-image-m_image-container__19WNd"
2520
126
  }, avatarS3Key ? /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
@@ -2558,85 +164,6 @@ AuthorImage.propTypes = {
2558
164
  template: PropTypes__default["default"].string
2559
165
  };
2560
166
 
2561
- function _extends() {
2562
- _extends = Object.assign || function (target) {
2563
- for (var i = 1; i < arguments.length; i++) {
2564
- var source = arguments[i];
2565
-
2566
- for (var key in source) {
2567
- if (Object.prototype.hasOwnProperty.call(source, key)) {
2568
- target[key] = source[key];
2569
- }
2570
- }
2571
- }
2572
-
2573
- return target;
2574
- };
2575
-
2576
- return _extends.apply(this, arguments);
2577
- }
2578
-
2579
- function _arrayWithHoles(arr) {
2580
- if (Array.isArray(arr)) return arr;
2581
- }
2582
-
2583
- function _iterableToArrayLimit(arr, i) {
2584
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
2585
-
2586
- if (_i == null) return;
2587
- var _arr = [];
2588
- var _n = true;
2589
- var _d = false;
2590
-
2591
- var _s, _e;
2592
-
2593
- try {
2594
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
2595
- _arr.push(_s.value);
2596
-
2597
- if (i && _arr.length === i) break;
2598
- }
2599
- } catch (err) {
2600
- _d = true;
2601
- _e = err;
2602
- } finally {
2603
- try {
2604
- if (!_n && _i["return"] != null) _i["return"]();
2605
- } finally {
2606
- if (_d) throw _e;
2607
- }
2608
- }
2609
-
2610
- return _arr;
2611
- }
2612
-
2613
- function _arrayLikeToArray(arr, len) {
2614
- if (len == null || len > arr.length) len = arr.length;
2615
-
2616
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
2617
- arr2[i] = arr[i];
2618
- }
2619
-
2620
- return arr2;
2621
- }
2622
-
2623
- function _unsupportedIterableToArray(o, minLen) {
2624
- if (!o) return;
2625
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
2626
- var n = Object.prototype.toString.call(o).slice(8, -1);
2627
- if (n === "Object" && o.constructor) n = o.constructor.name;
2628
- if (n === "Map" || n === "Set") return Array.from(o);
2629
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
2630
- }
2631
-
2632
- function _nonIterableRest() {
2633
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2634
- }
2635
-
2636
- function _slicedToArray(arr, i) {
2637
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
2638
- }
2639
-
2640
167
  var Twitter = function Twitter(_ref) {
2641
168
  var _ref$color = _ref.color,
2642
169
  color = _ref$color === void 0 ? "#1CB7EB" : _ref$color;
@@ -2871,7 +398,7 @@ var SocialSharePopup = function SocialSharePopup(_ref) {
2871
398
  };
2872
399
  var popupItemsList = socialShareData(options);
2873
400
  return /*#__PURE__*/React__default["default"].createElement("div", {
2874
- className: _getClassName("share-popup-wrapper ".concat(textColor), _styleModuleImportMap$2)
401
+ className: _getClassName__default["default"]("share-popup-wrapper ".concat(textColor), _styleModuleImportMap$2)
2875
402
  }, /*#__PURE__*/React__default["default"].createElement("div", {
2876
403
  className: "social-share-popup-m_share-popup__QRt3l social-share-popup-m_share-popup-wrapper__GEJqD"
2877
404
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -2924,249 +451,6 @@ ShareIcon.propTypes = {
2924
451
  color: PropTypes__default["default"].string
2925
452
  };
2926
453
 
2927
- /**
2928
- * The base implementation of `_.slice` without an iteratee call guard.
2929
- *
2930
- * @private
2931
- * @param {Array} array The array to slice.
2932
- * @param {number} [start=0] The start position.
2933
- * @param {number} [end=array.length] The end position.
2934
- * @returns {Array} Returns the slice of `array`.
2935
- */
2936
- function baseSlice(array, start, end) {
2937
- var index = -1,
2938
- length = array.length;
2939
-
2940
- if (start < 0) {
2941
- start = -start > length ? 0 : (length + start);
2942
- }
2943
- end = end > length ? length : end;
2944
- if (end < 0) {
2945
- end += length;
2946
- }
2947
- length = start > end ? 0 : ((end - start) >>> 0);
2948
- start >>>= 0;
2949
-
2950
- var result = Array(length);
2951
- while (++index < length) {
2952
- result[index] = array[index + start];
2953
- }
2954
- return result;
2955
- }
2956
-
2957
- var _baseSlice = baseSlice;
2958
-
2959
- /**
2960
- * Casts `array` to a slice if it's needed.
2961
- *
2962
- * @private
2963
- * @param {Array} array The array to inspect.
2964
- * @param {number} start The start position.
2965
- * @param {number} [end=array.length] The end position.
2966
- * @returns {Array} Returns the cast slice.
2967
- */
2968
- function castSlice(array, start, end) {
2969
- var length = array.length;
2970
- end = end === undefined ? length : end;
2971
- return (!start && end >= length) ? array : _baseSlice(array, start, end);
2972
- }
2973
-
2974
- var _castSlice = castSlice;
2975
-
2976
- /** Used to compose unicode character classes. */
2977
- var rsAstralRange$1 = '\\ud800-\\udfff',
2978
- rsComboMarksRange$1 = '\\u0300-\\u036f',
2979
- reComboHalfMarksRange$1 = '\\ufe20-\\ufe2f',
2980
- rsComboSymbolsRange$1 = '\\u20d0-\\u20ff',
2981
- rsComboRange$1 = rsComboMarksRange$1 + reComboHalfMarksRange$1 + rsComboSymbolsRange$1,
2982
- rsVarRange$1 = '\\ufe0e\\ufe0f';
2983
-
2984
- /** Used to compose unicode capture groups. */
2985
- var rsZWJ$1 = '\\u200d';
2986
-
2987
- /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
2988
- var reHasUnicode = RegExp('[' + rsZWJ$1 + rsAstralRange$1 + rsComboRange$1 + rsVarRange$1 + ']');
2989
-
2990
- /**
2991
- * Checks if `string` contains Unicode symbols.
2992
- *
2993
- * @private
2994
- * @param {string} string The string to inspect.
2995
- * @returns {boolean} Returns `true` if a symbol is found, else `false`.
2996
- */
2997
- function hasUnicode(string) {
2998
- return reHasUnicode.test(string);
2999
- }
3000
-
3001
- var _hasUnicode = hasUnicode;
3002
-
3003
- /**
3004
- * Converts an ASCII `string` to an array.
3005
- *
3006
- * @private
3007
- * @param {string} string The string to convert.
3008
- * @returns {Array} Returns the converted array.
3009
- */
3010
- function asciiToArray(string) {
3011
- return string.split('');
3012
- }
3013
-
3014
- var _asciiToArray = asciiToArray;
3015
-
3016
- /** Used to compose unicode character classes. */
3017
- var rsAstralRange = '\\ud800-\\udfff',
3018
- rsComboMarksRange = '\\u0300-\\u036f',
3019
- reComboHalfMarksRange = '\\ufe20-\\ufe2f',
3020
- rsComboSymbolsRange = '\\u20d0-\\u20ff',
3021
- rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
3022
- rsVarRange = '\\ufe0e\\ufe0f';
3023
-
3024
- /** Used to compose unicode capture groups. */
3025
- var rsAstral = '[' + rsAstralRange + ']',
3026
- rsCombo = '[' + rsComboRange + ']',
3027
- rsFitz = '\\ud83c[\\udffb-\\udfff]',
3028
- rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
3029
- rsNonAstral = '[^' + rsAstralRange + ']',
3030
- rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
3031
- rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
3032
- rsZWJ = '\\u200d';
3033
-
3034
- /** Used to compose unicode regexes. */
3035
- var reOptMod = rsModifier + '?',
3036
- rsOptVar = '[' + rsVarRange + ']?',
3037
- rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
3038
- rsSeq = rsOptVar + reOptMod + rsOptJoin,
3039
- rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
3040
-
3041
- /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
3042
- var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
3043
-
3044
- /**
3045
- * Converts a Unicode `string` to an array.
3046
- *
3047
- * @private
3048
- * @param {string} string The string to convert.
3049
- * @returns {Array} Returns the converted array.
3050
- */
3051
- function unicodeToArray(string) {
3052
- return string.match(reUnicode) || [];
3053
- }
3054
-
3055
- var _unicodeToArray = unicodeToArray;
3056
-
3057
- /**
3058
- * Converts `string` to an array.
3059
- *
3060
- * @private
3061
- * @param {string} string The string to convert.
3062
- * @returns {Array} Returns the converted array.
3063
- */
3064
- function stringToArray(string) {
3065
- return _hasUnicode(string)
3066
- ? _unicodeToArray(string)
3067
- : _asciiToArray(string);
3068
- }
3069
-
3070
- var _stringToArray = stringToArray;
3071
-
3072
- /**
3073
- * Creates a function like `_.lowerFirst`.
3074
- *
3075
- * @private
3076
- * @param {string} methodName The name of the `String` case method to use.
3077
- * @returns {Function} Returns the new case function.
3078
- */
3079
- function createCaseFirst(methodName) {
3080
- return function(string) {
3081
- string = toString_1(string);
3082
-
3083
- var strSymbols = _hasUnicode(string)
3084
- ? _stringToArray(string)
3085
- : undefined;
3086
-
3087
- var chr = strSymbols
3088
- ? strSymbols[0]
3089
- : string.charAt(0);
3090
-
3091
- var trailing = strSymbols
3092
- ? _castSlice(strSymbols, 1).join('')
3093
- : string.slice(1);
3094
-
3095
- return chr[methodName]() + trailing;
3096
- };
3097
- }
3098
-
3099
- var _createCaseFirst = createCaseFirst;
3100
-
3101
- /**
3102
- * Converts the first character of `string` to upper case.
3103
- *
3104
- * @static
3105
- * @memberOf _
3106
- * @since 4.0.0
3107
- * @category String
3108
- * @param {string} [string=''] The string to convert.
3109
- * @returns {string} Returns the converted string.
3110
- * @example
3111
- *
3112
- * _.upperFirst('fred');
3113
- * // => 'Fred'
3114
- *
3115
- * _.upperFirst('FRED');
3116
- * // => 'FRED'
3117
- */
3118
- var upperFirst = _createCaseFirst('toUpperCase');
3119
-
3120
- var upperFirst_1 = upperFirst;
3121
-
3122
- /**
3123
- * Converts the first character of `string` to upper case and the remaining
3124
- * to lower case.
3125
- *
3126
- * @static
3127
- * @memberOf _
3128
- * @since 3.0.0
3129
- * @category String
3130
- * @param {string} [string=''] The string to capitalize.
3131
- * @returns {string} Returns the capitalized string.
3132
- * @example
3133
- *
3134
- * _.capitalize('FRED');
3135
- * // => 'Fred'
3136
- */
3137
- function capitalize(string) {
3138
- return upperFirst_1(toString_1(string).toLowerCase());
3139
- }
3140
-
3141
- var capitalize_1 = capitalize;
3142
-
3143
- /**
3144
- * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
3145
- *
3146
- * @static
3147
- * @memberOf _
3148
- * @since 3.0.0
3149
- * @category String
3150
- * @param {string} [string=''] The string to convert.
3151
- * @returns {string} Returns the camel cased string.
3152
- * @example
3153
- *
3154
- * _.camelCase('Foo Bar');
3155
- * // => 'fooBar'
3156
- *
3157
- * _.camelCase('--foo-bar--');
3158
- * // => 'fooBar'
3159
- *
3160
- * _.camelCase('__FOO_BAR__');
3161
- * // => 'fooBar'
3162
- */
3163
- var camelCase = _createCompounder(function(result, word, index) {
3164
- word = word.toLowerCase();
3165
- return result + (index ? capitalize_1(word) : word);
3166
- });
3167
-
3168
- var camelCase_1 = camelCase;
3169
-
3170
454
  var _styleModuleImportMap$1 = {
3171
455
  "./social-share-template.m.css": {
3172
456
  "desktop-view": "social-share-template-m_desktop-view__3TmkO",
@@ -3248,7 +532,7 @@ var SocialShareTemplate = function SocialShareTemplate(props) {
3248
532
  var iconsList = socialShareData(options);
3249
533
 
3250
534
  var _useState = React.useState(open),
3251
- _useState2 = _slicedToArray(_useState, 2),
535
+ _useState2 = _slicedToArray__default["default"](_useState, 2),
3252
536
  isOpen = _useState2[0],
3253
537
  setIsOpen = _useState2[1];
3254
538
 
@@ -3274,12 +558,12 @@ var SocialShareTemplate = function SocialShareTemplate(props) {
3274
558
  return /*#__PURE__*/React__default["default"].createElement("div", {
3275
559
  className: "social-share-template-m_tablet-view__kATzi"
3276
560
  }, !isOpen && /*#__PURE__*/React__default["default"].createElement("ul", {
3277
- className: _getClassName("wrapper ".concat(isOpen ? "open" : ""), _styleModuleImportMap$1)
561
+ className: _getClassName__default["default"]("wrapper ".concat(isOpen ? "open" : ""), _styleModuleImportMap$1)
3278
562
  }, shareIcon()), isOpen && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
3279
563
  className: "social-share-template-m_overlay__1nBp-",
3280
564
  onClick: clickHandler
3281
565
  }, /*#__PURE__*/React__default["default"].createElement("div", {
3282
- className: "arr--popup " + _getClassName("popup-wrapper ".concat(isOpen ? "popup-open" : ""), _styleModuleImportMap$1)
566
+ className: "arr--popup " + _getClassName__default["default"]("popup-wrapper ".concat(isOpen ? "popup-open" : ""), _styleModuleImportMap$1)
3283
567
  }, /*#__PURE__*/React__default["default"].createElement(SocialSharePopup, {
3284
568
  fbUrl: fbUrl,
3285
569
  twitterUrl: twitterUrl,
@@ -3296,14 +580,14 @@ var SocialShareTemplate = function SocialShareTemplate(props) {
3296
580
  var popupStyle = !isOpen && vertical ? "tablet-view-popup" : "";
3297
581
  return /*#__PURE__*/React__default["default"].createElement("div", {
3298
582
  "data-test-id": verticalShare,
3299
- className: "arr--share " + _getClassName("".concat(iconShade, " ").concat(verticalShare, " ").concat(popupStyle), _styleModuleImportMap$1)
583
+ className: "arr--share " + _getClassName__default["default"]("".concat(iconShade, " ").concat(verticalShare, " ").concat(popupStyle), _styleModuleImportMap$1)
3300
584
  }, /*#__PURE__*/React__default["default"].createElement("div", {
3301
585
  className: "social-share-template-m_desktop-view__3TmkO"
3302
586
  }, /*#__PURE__*/React__default["default"].createElement("ul", {
3303
- "data-test-id": camelCase_1(iconType),
3304
- className: "desktop-share-wrapper " + _getClassName("wrapper ".concat(isOpen ? "open" : ""), _styleModuleImportMap$1)
587
+ "data-test-id": lodash.camelCase(iconType),
588
+ className: "desktop-share-wrapper " + _getClassName__default["default"]("wrapper ".concat(isOpen ? "open" : ""), _styleModuleImportMap$1)
3305
589
  }, shareIcon(), iconsList.map(function (iconData, index) {
3306
- return /*#__PURE__*/React__default["default"].createElement(ShareItem, _extends({}, iconData, {
590
+ return /*#__PURE__*/React__default["default"].createElement(ShareItem, _extends__default["default"]({}, iconData, {
3307
591
  key: iconData.name,
3308
592
  dataTestId: "card-share-".concat(index)
3309
593
  }));
@@ -3465,16 +749,16 @@ var AuthorIntroductionCard = function AuthorIntroductionCard(_ref) {
3465
749
  backgroundColor: theme,
3466
750
  color: textColor
3467
751
  },
3468
- className: ("".concat(isFullWidth, " arrow-component arr--author-intro-card") ? "".concat(isFullWidth, " arrow-component arr--author-intro-card") + " " : "") + _getClassName("".concat(authorCardStyle, " ").concat(supportBorder, " ").concat(textColor), _styleModuleImportMap)
752
+ className: ("".concat(isFullWidth, " arrow-component arr--author-intro-card") ? "".concat(isFullWidth, " arrow-component arr--author-intro-card") + " " : "") + _getClassName__default["default"]("".concat(authorCardStyle, " ").concat(supportBorder, " ").concat(textColor), _styleModuleImportMap)
3469
753
  }, /*#__PURE__*/React__default["default"].createElement("div", {
3470
- className: "arrow-author-intro-wrapper " + _getClassName("wrapper ".concat(textColor), _styleModuleImportMap)
754
+ className: "arrow-author-intro-wrapper " + _getClassName__default["default"]("wrapper ".concat(textColor), _styleModuleImportMap)
3471
755
  }, /*#__PURE__*/React__default["default"].createElement("div", {
3472
756
  className: "arrow-author-introduction-card author-intro-m_introduction-card__1kdGt"
3473
757
  }, isSmallCircle && isMobile ? null : /*#__PURE__*/React__default["default"].createElement("h2", {
3474
- className: _getClassName("author-name ".concat(textColor), _styleModuleImportMap)
758
+ className: _getClassName__default["default"]("author-name ".concat(textColor), _styleModuleImportMap)
3475
759
  }, name), enableBio && bio && /*#__PURE__*/React__default["default"].createElement("div", {
3476
760
  "data-test-id": "author-bio",
3477
- className: _getClassName("author-description ".concat(textColor), _styleModuleImportMap)
761
+ className: _getClassName__default["default"]("author-description ".concat(textColor), _styleModuleImportMap)
3478
762
  }, bio, isSmallCircle && /*#__PURE__*/React__default["default"].createElement("div", {
3479
763
  className: "author-intro-m_fade-out__1EBqd",
3480
764
  style: {
@@ -3485,7 +769,7 @@ var AuthorIntroductionCard = function AuthorIntroductionCard(_ref) {
3485
769
  }, /*#__PURE__*/React__default["default"].createElement("div", {
3486
770
  className: "author-intro-m_social-connect-wrapper__2B0QA"
3487
771
  }, enableSocialLinks && social && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, template !== "smallCircle" && /*#__PURE__*/React__default["default"].createElement("div", {
3488
- className: _getClassName("connect ".concat(textColor), _styleModuleImportMap)
772
+ className: _getClassName__default["default"]("connect ".concat(textColor), _styleModuleImportMap)
3489
773
  }, "Connect :"), Object.entries(social).map(function (item, index) {
3490
774
  return item.length > 0 && item[1] ? // can add Social Networks without the url so adding an additional check below
3491
775
  item[1].url ? /*#__PURE__*/React__default["default"].createElement("a", {
@@ -3508,7 +792,7 @@ var AuthorIntroductionCard = function AuthorIntroductionCard(_ref) {
3508
792
  author: data,
3509
793
  template: template
3510
794
  }), isSmallCircle && isMobile && /*#__PURE__*/React__default["default"].createElement("h2", {
3511
- className: _getClassName("author-name ".concat(textColor), _styleModuleImportMap)
795
+ className: _getClassName__default["default"]("author-name ".concat(textColor), _styleModuleImportMap)
3512
796
  }, name))));
3513
797
  };
3514
798
  AuthorIntroductionCard.propTypes = {