@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,2163 +2,26 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var _extends = require('@babel/runtime/helpers/extends');
6
+ var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
7
+ var _getClassName = require('babel-plugin-react-css-modules/dist/browser/getClassName');
5
8
  var React = require('react');
6
9
  var PropTypes = require('prop-types');
10
+ var lodash = require('lodash');
11
+ require('@babel/runtime/helpers/asyncToGenerator');
12
+ require('@babel/runtime/helpers/typeof');
13
+ require('@babel/runtime/regenerator');
7
14
  require('react-timeago');
8
15
  require('date-fns-tz');
9
16
 
10
17
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
11
18
 
19
+ var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
20
+ var _objectWithoutProperties__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutProperties);
21
+ var _getClassName__default = /*#__PURE__*/_interopDefaultLegacy(_getClassName);
12
22
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
13
23
  var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
14
24
 
15
- function _extends() {
16
- _extends = Object.assign || function (target) {
17
- for (var i = 1; i < arguments.length; i++) {
18
- var source = arguments[i];
19
-
20
- for (var key in source) {
21
- if (Object.prototype.hasOwnProperty.call(source, key)) {
22
- target[key] = source[key];
23
- }
24
- }
25
- }
26
-
27
- return target;
28
- };
29
-
30
- return _extends.apply(this, arguments);
31
- }
32
-
33
- function _objectWithoutPropertiesLoose(source, excluded) {
34
- if (source == null) return {};
35
- var target = {};
36
- var sourceKeys = Object.keys(source);
37
- var key, i;
38
-
39
- for (i = 0; i < sourceKeys.length; i++) {
40
- key = sourceKeys[i];
41
- if (excluded.indexOf(key) >= 0) continue;
42
- target[key] = source[key];
43
- }
44
-
45
- return target;
46
- }
47
-
48
- function _objectWithoutProperties(source, excluded) {
49
- if (source == null) return {};
50
- var target = _objectWithoutPropertiesLoose(source, excluded);
51
- var key, i;
52
-
53
- if (Object.getOwnPropertySymbols) {
54
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
55
-
56
- for (i = 0; i < sourceSymbolKeys.length; i++) {
57
- key = sourceSymbolKeys[i];
58
- if (excluded.indexOf(key) >= 0) continue;
59
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
60
- target[key] = source[key];
61
- }
62
- }
63
-
64
- return target;
65
- }
66
-
67
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
68
-
69
- function getDefaultExportFromCjs (x) {
70
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
71
- }
72
-
73
- function createCommonjsModule(fn) {
74
- var module = { exports: {} };
75
- return fn(module, module.exports), module.exports;
76
- }
77
-
78
- var optionsDefaults_1 = createCommonjsModule(function (module, exports) {
79
-
80
- Object.defineProperty(exports, "__esModule", {
81
- value: true
82
- });
83
- exports["default"] = void 0;
84
- var optionsDefaults = {
85
- attributeNames: {
86
- styleName: 'className'
87
- },
88
- generateScopedName: '[path]___[name]__[local]___[hash:base64:5]',
89
- handleMissingStyleName: 'throw'
90
- };
91
- var _default = optionsDefaults;
92
- exports["default"] = _default;
93
-
94
-
95
- });
96
-
97
- var getClassName = createCommonjsModule(function (module, exports) {
98
-
99
- Object.defineProperty(exports, "__esModule", {
100
- value: true
101
- });
102
- exports["default"] = void 0;
103
-
104
- var _optionsDefaults = _interopRequireDefault(optionsDefaults_1);
105
-
106
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
107
-
108
- var isNamespacedStyleName = function isNamespacedStyleName(styleName) {
109
- return styleName.indexOf('.') !== -1;
110
- };
111
-
112
- var handleError = function handleError(message, handleMissingStyleName) {
113
- if (handleMissingStyleName === 'throw') {
114
- throw new Error(message);
115
- } else if (handleMissingStyleName === 'warn') {
116
- // eslint-disable-next-line no-console
117
- console.warn(message);
118
- }
119
-
120
- return null;
121
- };
122
-
123
- var getClassNameForNamespacedStyleName = function getClassNameForNamespacedStyleName(styleName, styleModuleImportMap, handleMissingStyleNameOption) {
124
- // Note:
125
- // Do not use the desctructing syntax with Babel.
126
- // Desctructing adds _slicedToArray helper.
127
- var styleNameParts = styleName.split('.');
128
- var importName = styleNameParts[0];
129
- var moduleName = styleNameParts[1];
130
- var handleMissingStyleName = handleMissingStyleNameOption || _optionsDefaults["default"].handleMissingStyleName;
131
-
132
- if (!moduleName) {
133
- return handleError('Invalid style name: ' + styleName, handleMissingStyleName);
134
- }
135
-
136
- if (!styleModuleImportMap[importName]) {
137
- return handleError('CSS module import does not exist: ' + importName, handleMissingStyleName);
138
- }
139
-
140
- if (!styleModuleImportMap[importName][moduleName]) {
141
- return handleError('CSS module does not exist: ' + moduleName, handleMissingStyleName);
142
- }
143
-
144
- return styleModuleImportMap[importName][moduleName];
145
- };
146
-
147
- var getClassNameFromMultipleImports = function getClassNameFromMultipleImports(styleName, styleModuleImportMap, handleMissingStyleNameOption) {
148
- var handleMissingStyleName = handleMissingStyleNameOption || _optionsDefaults["default"].handleMissingStyleName;
149
- var importKeysWithMatches = Object.keys(styleModuleImportMap).map(function (importKey) {
150
- return styleModuleImportMap[importKey][styleName] && importKey;
151
- }).filter(function (importKey) {
152
- return importKey;
153
- });
154
-
155
- if (importKeysWithMatches.length > 1) {
156
- 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');
157
- }
158
-
159
- if (importKeysWithMatches.length === 0) {
160
- return handleError('Could not resolve the styleName \'' + styleName + '\'.', handleMissingStyleName);
161
- }
162
-
163
- return styleModuleImportMap[importKeysWithMatches[0]][styleName];
164
- };
165
-
166
- var _default = function _default(styleNameValue, styleModuleImportMap, options) {
167
- var styleModuleImportMapKeys = Object.keys(styleModuleImportMap);
168
-
169
- var _ref = options || {},
170
- _ref$handleMissingSty = _ref.handleMissingStyleName,
171
- handleMissingStyleName = _ref$handleMissingSty === void 0 ? _optionsDefaults["default"].handleMissingStyleName : _ref$handleMissingSty,
172
- _ref$autoResolveMulti = _ref.autoResolveMultipleImports,
173
- autoResolveMultipleImports = _ref$autoResolveMulti === void 0 ? _optionsDefaults["default"].autoResolveMultipleImports : _ref$autoResolveMulti;
174
-
175
- if (!styleNameValue) {
176
- return '';
177
- }
178
-
179
- return styleNameValue.split(' ').filter(function (styleName) {
180
- return styleName;
181
- }).map(function (styleName) {
182
- if (isNamespacedStyleName(styleName)) {
183
- return getClassNameForNamespacedStyleName(styleName, styleModuleImportMap, handleMissingStyleName);
184
- }
185
-
186
- if (styleModuleImportMapKeys.length === 0) {
187
- throw new Error('Cannot use styleName attribute for style name \'' + styleName + '\' without importing at least one stylesheet.');
188
- }
189
-
190
- if (styleModuleImportMapKeys.length > 1) {
191
- if (!autoResolveMultipleImports) {
192
- throw new Error('Cannot use anonymous style name \'' + styleName + '\' with more than one stylesheet import without setting \'autoResolveMultipleImports\' to true.');
193
- }
194
-
195
- return getClassNameFromMultipleImports(styleName, styleModuleImportMap, handleMissingStyleName);
196
- }
197
-
198
- var styleModuleMap = styleModuleImportMap[styleModuleImportMapKeys[0]];
199
-
200
- if (!styleModuleMap[styleName]) {
201
- return handleError('Could not resolve the styleName \'' + styleName + '\'.', handleMissingStyleName);
202
- }
203
-
204
- return styleModuleMap[styleName];
205
- }).filter(function (className) {
206
- // Remove any styles which could not be found (if handleMissingStyleName === 'ignore')
207
- return className;
208
- }).join(' ');
209
- };
210
-
211
- exports["default"] = _default;
212
-
213
-
214
- });
215
-
216
- var _getClassName = /*@__PURE__*/getDefaultExportFromCjs(getClassName);
217
-
218
- /**
219
- * Checks if `value` is classified as an `Array` object.
220
- *
221
- * @static
222
- * @memberOf _
223
- * @since 0.1.0
224
- * @category Lang
225
- * @param {*} value The value to check.
226
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
227
- * @example
228
- *
229
- * _.isArray([1, 2, 3]);
230
- * // => true
231
- *
232
- * _.isArray(document.body.children);
233
- * // => false
234
- *
235
- * _.isArray('abc');
236
- * // => false
237
- *
238
- * _.isArray(_.noop);
239
- * // => false
240
- */
241
- var isArray = Array.isArray;
242
-
243
- var isArray_1 = isArray;
244
-
245
- /** Detect free variable `global` from Node.js. */
246
-
247
- var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
248
-
249
- var _freeGlobal = freeGlobal;
250
-
251
- /** Detect free variable `self`. */
252
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
253
-
254
- /** Used as a reference to the global object. */
255
- var root = _freeGlobal || freeSelf || Function('return this')();
256
-
257
- var _root = root;
258
-
259
- /** Built-in value references. */
260
- var Symbol$1 = _root.Symbol;
261
-
262
- var _Symbol = Symbol$1;
263
-
264
- /** Used for built-in method references. */
265
- var objectProto$4 = Object.prototype;
266
-
267
- /** Used to check objects for own properties. */
268
- var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
269
-
270
- /**
271
- * Used to resolve the
272
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
273
- * of values.
274
- */
275
- var nativeObjectToString$1 = objectProto$4.toString;
276
-
277
- /** Built-in value references. */
278
- var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
279
-
280
- /**
281
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
282
- *
283
- * @private
284
- * @param {*} value The value to query.
285
- * @returns {string} Returns the raw `toStringTag`.
286
- */
287
- function getRawTag(value) {
288
- var isOwn = hasOwnProperty$3.call(value, symToStringTag$1),
289
- tag = value[symToStringTag$1];
290
-
291
- try {
292
- value[symToStringTag$1] = undefined;
293
- var unmasked = true;
294
- } catch (e) {}
295
-
296
- var result = nativeObjectToString$1.call(value);
297
- if (unmasked) {
298
- if (isOwn) {
299
- value[symToStringTag$1] = tag;
300
- } else {
301
- delete value[symToStringTag$1];
302
- }
303
- }
304
- return result;
305
- }
306
-
307
- var _getRawTag = getRawTag;
308
-
309
- /** Used for built-in method references. */
310
- var objectProto$3 = Object.prototype;
311
-
312
- /**
313
- * Used to resolve the
314
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
315
- * of values.
316
- */
317
- var nativeObjectToString = objectProto$3.toString;
318
-
319
- /**
320
- * Converts `value` to a string using `Object.prototype.toString`.
321
- *
322
- * @private
323
- * @param {*} value The value to convert.
324
- * @returns {string} Returns the converted string.
325
- */
326
- function objectToString(value) {
327
- return nativeObjectToString.call(value);
328
- }
329
-
330
- var _objectToString = objectToString;
331
-
332
- /** `Object#toString` result references. */
333
- var nullTag = '[object Null]',
334
- undefinedTag = '[object Undefined]';
335
-
336
- /** Built-in value references. */
337
- var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
338
-
339
- /**
340
- * The base implementation of `getTag` without fallbacks for buggy environments.
341
- *
342
- * @private
343
- * @param {*} value The value to query.
344
- * @returns {string} Returns the `toStringTag`.
345
- */
346
- function baseGetTag(value) {
347
- if (value == null) {
348
- return value === undefined ? undefinedTag : nullTag;
349
- }
350
- return (symToStringTag && symToStringTag in Object(value))
351
- ? _getRawTag(value)
352
- : _objectToString(value);
353
- }
354
-
355
- var _baseGetTag = baseGetTag;
356
-
357
- /**
358
- * Checks if `value` is object-like. A value is object-like if it's not `null`
359
- * and has a `typeof` result of "object".
360
- *
361
- * @static
362
- * @memberOf _
363
- * @since 4.0.0
364
- * @category Lang
365
- * @param {*} value The value to check.
366
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
367
- * @example
368
- *
369
- * _.isObjectLike({});
370
- * // => true
371
- *
372
- * _.isObjectLike([1, 2, 3]);
373
- * // => true
374
- *
375
- * _.isObjectLike(_.noop);
376
- * // => false
377
- *
378
- * _.isObjectLike(null);
379
- * // => false
380
- */
381
- function isObjectLike(value) {
382
- return value != null && typeof value == 'object';
383
- }
384
-
385
- var isObjectLike_1 = isObjectLike;
386
-
387
- /** `Object#toString` result references. */
388
- var symbolTag = '[object Symbol]';
389
-
390
- /**
391
- * Checks if `value` is classified as a `Symbol` primitive or object.
392
- *
393
- * @static
394
- * @memberOf _
395
- * @since 4.0.0
396
- * @category Lang
397
- * @param {*} value The value to check.
398
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
399
- * @example
400
- *
401
- * _.isSymbol(Symbol.iterator);
402
- * // => true
403
- *
404
- * _.isSymbol('abc');
405
- * // => false
406
- */
407
- function isSymbol(value) {
408
- return typeof value == 'symbol' ||
409
- (isObjectLike_1(value) && _baseGetTag(value) == symbolTag);
410
- }
411
-
412
- var isSymbol_1 = isSymbol;
413
-
414
- /** Used to match property names within property paths. */
415
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
416
- reIsPlainProp = /^\w*$/;
417
-
418
- /**
419
- * Checks if `value` is a property name and not a property path.
420
- *
421
- * @private
422
- * @param {*} value The value to check.
423
- * @param {Object} [object] The object to query keys on.
424
- * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
425
- */
426
- function isKey(value, object) {
427
- if (isArray_1(value)) {
428
- return false;
429
- }
430
- var type = typeof value;
431
- if (type == 'number' || type == 'symbol' || type == 'boolean' ||
432
- value == null || isSymbol_1(value)) {
433
- return true;
434
- }
435
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
436
- (object != null && value in Object(object));
437
- }
438
-
439
- var _isKey = isKey;
440
-
441
- /**
442
- * Checks if `value` is the
443
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
444
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
445
- *
446
- * @static
447
- * @memberOf _
448
- * @since 0.1.0
449
- * @category Lang
450
- * @param {*} value The value to check.
451
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
452
- * @example
453
- *
454
- * _.isObject({});
455
- * // => true
456
- *
457
- * _.isObject([1, 2, 3]);
458
- * // => true
459
- *
460
- * _.isObject(_.noop);
461
- * // => true
462
- *
463
- * _.isObject(null);
464
- * // => false
465
- */
466
- function isObject(value) {
467
- var type = typeof value;
468
- return value != null && (type == 'object' || type == 'function');
469
- }
470
-
471
- var isObject_1 = isObject;
472
-
473
- /** `Object#toString` result references. */
474
- var asyncTag = '[object AsyncFunction]',
475
- funcTag = '[object Function]',
476
- genTag = '[object GeneratorFunction]',
477
- proxyTag = '[object Proxy]';
478
-
479
- /**
480
- * Checks if `value` is classified as a `Function` object.
481
- *
482
- * @static
483
- * @memberOf _
484
- * @since 0.1.0
485
- * @category Lang
486
- * @param {*} value The value to check.
487
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
488
- * @example
489
- *
490
- * _.isFunction(_);
491
- * // => true
492
- *
493
- * _.isFunction(/abc/);
494
- * // => false
495
- */
496
- function isFunction(value) {
497
- if (!isObject_1(value)) {
498
- return false;
499
- }
500
- // The use of `Object#toString` avoids issues with the `typeof` operator
501
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
502
- var tag = _baseGetTag(value);
503
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
504
- }
505
-
506
- var isFunction_1 = isFunction;
507
-
508
- /** Used to detect overreaching core-js shims. */
509
- var coreJsData = _root['__core-js_shared__'];
510
-
511
- var _coreJsData = coreJsData;
512
-
513
- /** Used to detect methods masquerading as native. */
514
- var maskSrcKey = (function() {
515
- var uid = /[^.]+$/.exec(_coreJsData && _coreJsData.keys && _coreJsData.keys.IE_PROTO || '');
516
- return uid ? ('Symbol(src)_1.' + uid) : '';
517
- }());
518
-
519
- /**
520
- * Checks if `func` has its source masked.
521
- *
522
- * @private
523
- * @param {Function} func The function to check.
524
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
525
- */
526
- function isMasked(func) {
527
- return !!maskSrcKey && (maskSrcKey in func);
528
- }
529
-
530
- var _isMasked = isMasked;
531
-
532
- /** Used for built-in method references. */
533
- var funcProto$1 = Function.prototype;
534
-
535
- /** Used to resolve the decompiled source of functions. */
536
- var funcToString$1 = funcProto$1.toString;
537
-
538
- /**
539
- * Converts `func` to its source code.
540
- *
541
- * @private
542
- * @param {Function} func The function to convert.
543
- * @returns {string} Returns the source code.
544
- */
545
- function toSource(func) {
546
- if (func != null) {
547
- try {
548
- return funcToString$1.call(func);
549
- } catch (e) {}
550
- try {
551
- return (func + '');
552
- } catch (e) {}
553
- }
554
- return '';
555
- }
556
-
557
- var _toSource = toSource;
558
-
559
- /**
560
- * Used to match `RegExp`
561
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
562
- */
563
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
564
-
565
- /** Used to detect host constructors (Safari). */
566
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
567
-
568
- /** Used for built-in method references. */
569
- var funcProto = Function.prototype,
570
- objectProto$2 = Object.prototype;
571
-
572
- /** Used to resolve the decompiled source of functions. */
573
- var funcToString = funcProto.toString;
574
-
575
- /** Used to check objects for own properties. */
576
- var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
577
-
578
- /** Used to detect if a method is native. */
579
- var reIsNative = RegExp('^' +
580
- funcToString.call(hasOwnProperty$2).replace(reRegExpChar, '\\$&')
581
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
582
- );
583
-
584
- /**
585
- * The base implementation of `_.isNative` without bad shim checks.
586
- *
587
- * @private
588
- * @param {*} value The value to check.
589
- * @returns {boolean} Returns `true` if `value` is a native function,
590
- * else `false`.
591
- */
592
- function baseIsNative(value) {
593
- if (!isObject_1(value) || _isMasked(value)) {
594
- return false;
595
- }
596
- var pattern = isFunction_1(value) ? reIsNative : reIsHostCtor;
597
- return pattern.test(_toSource(value));
598
- }
599
-
600
- var _baseIsNative = baseIsNative;
601
-
602
- /**
603
- * Gets the value at `key` of `object`.
604
- *
605
- * @private
606
- * @param {Object} [object] The object to query.
607
- * @param {string} key The key of the property to get.
608
- * @returns {*} Returns the property value.
609
- */
610
- function getValue(object, key) {
611
- return object == null ? undefined : object[key];
612
- }
613
-
614
- var _getValue = getValue;
615
-
616
- /**
617
- * Gets the native function at `key` of `object`.
618
- *
619
- * @private
620
- * @param {Object} object The object to query.
621
- * @param {string} key The key of the method to get.
622
- * @returns {*} Returns the function if it's native, else `undefined`.
623
- */
624
- function getNative(object, key) {
625
- var value = _getValue(object, key);
626
- return _baseIsNative(value) ? value : undefined;
627
- }
628
-
629
- var _getNative = getNative;
630
-
631
- /* Built-in method references that are verified to be native. */
632
- var nativeCreate = _getNative(Object, 'create');
633
-
634
- var _nativeCreate = nativeCreate;
635
-
636
- /**
637
- * Removes all key-value entries from the hash.
638
- *
639
- * @private
640
- * @name clear
641
- * @memberOf Hash
642
- */
643
- function hashClear() {
644
- this.__data__ = _nativeCreate ? _nativeCreate(null) : {};
645
- this.size = 0;
646
- }
647
-
648
- var _hashClear = hashClear;
649
-
650
- /**
651
- * Removes `key` and its value from the hash.
652
- *
653
- * @private
654
- * @name delete
655
- * @memberOf Hash
656
- * @param {Object} hash The hash to modify.
657
- * @param {string} key The key of the value to remove.
658
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
659
- */
660
- function hashDelete(key) {
661
- var result = this.has(key) && delete this.__data__[key];
662
- this.size -= result ? 1 : 0;
663
- return result;
664
- }
665
-
666
- var _hashDelete = hashDelete;
667
-
668
- /** Used to stand-in for `undefined` hash values. */
669
- var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
670
-
671
- /** Used for built-in method references. */
672
- var objectProto$1 = Object.prototype;
673
-
674
- /** Used to check objects for own properties. */
675
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
676
-
677
- /**
678
- * Gets the hash value for `key`.
679
- *
680
- * @private
681
- * @name get
682
- * @memberOf Hash
683
- * @param {string} key The key of the value to get.
684
- * @returns {*} Returns the entry value.
685
- */
686
- function hashGet(key) {
687
- var data = this.__data__;
688
- if (_nativeCreate) {
689
- var result = data[key];
690
- return result === HASH_UNDEFINED$1 ? undefined : result;
691
- }
692
- return hasOwnProperty$1.call(data, key) ? data[key] : undefined;
693
- }
694
-
695
- var _hashGet = hashGet;
696
-
697
- /** Used for built-in method references. */
698
- var objectProto = Object.prototype;
699
-
700
- /** Used to check objects for own properties. */
701
- var hasOwnProperty = objectProto.hasOwnProperty;
702
-
703
- /**
704
- * Checks if a hash value for `key` exists.
705
- *
706
- * @private
707
- * @name has
708
- * @memberOf Hash
709
- * @param {string} key The key of the entry to check.
710
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
711
- */
712
- function hashHas(key) {
713
- var data = this.__data__;
714
- return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
715
- }
716
-
717
- var _hashHas = hashHas;
718
-
719
- /** Used to stand-in for `undefined` hash values. */
720
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
721
-
722
- /**
723
- * Sets the hash `key` to `value`.
724
- *
725
- * @private
726
- * @name set
727
- * @memberOf Hash
728
- * @param {string} key The key of the value to set.
729
- * @param {*} value The value to set.
730
- * @returns {Object} Returns the hash instance.
731
- */
732
- function hashSet(key, value) {
733
- var data = this.__data__;
734
- this.size += this.has(key) ? 0 : 1;
735
- data[key] = (_nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
736
- return this;
737
- }
738
-
739
- var _hashSet = hashSet;
740
-
741
- /**
742
- * Creates a hash object.
743
- *
744
- * @private
745
- * @constructor
746
- * @param {Array} [entries] The key-value pairs to cache.
747
- */
748
- function Hash(entries) {
749
- var index = -1,
750
- length = entries == null ? 0 : entries.length;
751
-
752
- this.clear();
753
- while (++index < length) {
754
- var entry = entries[index];
755
- this.set(entry[0], entry[1]);
756
- }
757
- }
758
-
759
- // Add methods to `Hash`.
760
- Hash.prototype.clear = _hashClear;
761
- Hash.prototype['delete'] = _hashDelete;
762
- Hash.prototype.get = _hashGet;
763
- Hash.prototype.has = _hashHas;
764
- Hash.prototype.set = _hashSet;
765
-
766
- var _Hash = Hash;
767
-
768
- /**
769
- * Removes all key-value entries from the list cache.
770
- *
771
- * @private
772
- * @name clear
773
- * @memberOf ListCache
774
- */
775
- function listCacheClear() {
776
- this.__data__ = [];
777
- this.size = 0;
778
- }
779
-
780
- var _listCacheClear = listCacheClear;
781
-
782
- /**
783
- * Performs a
784
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
785
- * comparison between two values to determine if they are equivalent.
786
- *
787
- * @static
788
- * @memberOf _
789
- * @since 4.0.0
790
- * @category Lang
791
- * @param {*} value The value to compare.
792
- * @param {*} other The other value to compare.
793
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
794
- * @example
795
- *
796
- * var object = { 'a': 1 };
797
- * var other = { 'a': 1 };
798
- *
799
- * _.eq(object, object);
800
- * // => true
801
- *
802
- * _.eq(object, other);
803
- * // => false
804
- *
805
- * _.eq('a', 'a');
806
- * // => true
807
- *
808
- * _.eq('a', Object('a'));
809
- * // => false
810
- *
811
- * _.eq(NaN, NaN);
812
- * // => true
813
- */
814
- function eq(value, other) {
815
- return value === other || (value !== value && other !== other);
816
- }
817
-
818
- var eq_1 = eq;
819
-
820
- /**
821
- * Gets the index at which the `key` is found in `array` of key-value pairs.
822
- *
823
- * @private
824
- * @param {Array} array The array to inspect.
825
- * @param {*} key The key to search for.
826
- * @returns {number} Returns the index of the matched value, else `-1`.
827
- */
828
- function assocIndexOf(array, key) {
829
- var length = array.length;
830
- while (length--) {
831
- if (eq_1(array[length][0], key)) {
832
- return length;
833
- }
834
- }
835
- return -1;
836
- }
837
-
838
- var _assocIndexOf = assocIndexOf;
839
-
840
- /** Used for built-in method references. */
841
- var arrayProto = Array.prototype;
842
-
843
- /** Built-in value references. */
844
- var splice = arrayProto.splice;
845
-
846
- /**
847
- * Removes `key` and its value from the list cache.
848
- *
849
- * @private
850
- * @name delete
851
- * @memberOf ListCache
852
- * @param {string} key The key of the value to remove.
853
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
854
- */
855
- function listCacheDelete(key) {
856
- var data = this.__data__,
857
- index = _assocIndexOf(data, key);
858
-
859
- if (index < 0) {
860
- return false;
861
- }
862
- var lastIndex = data.length - 1;
863
- if (index == lastIndex) {
864
- data.pop();
865
- } else {
866
- splice.call(data, index, 1);
867
- }
868
- --this.size;
869
- return true;
870
- }
871
-
872
- var _listCacheDelete = listCacheDelete;
873
-
874
- /**
875
- * Gets the list cache value for `key`.
876
- *
877
- * @private
878
- * @name get
879
- * @memberOf ListCache
880
- * @param {string} key The key of the value to get.
881
- * @returns {*} Returns the entry value.
882
- */
883
- function listCacheGet(key) {
884
- var data = this.__data__,
885
- index = _assocIndexOf(data, key);
886
-
887
- return index < 0 ? undefined : data[index][1];
888
- }
889
-
890
- var _listCacheGet = listCacheGet;
891
-
892
- /**
893
- * Checks if a list cache value for `key` exists.
894
- *
895
- * @private
896
- * @name has
897
- * @memberOf ListCache
898
- * @param {string} key The key of the entry to check.
899
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
900
- */
901
- function listCacheHas(key) {
902
- return _assocIndexOf(this.__data__, key) > -1;
903
- }
904
-
905
- var _listCacheHas = listCacheHas;
906
-
907
- /**
908
- * Sets the list cache `key` to `value`.
909
- *
910
- * @private
911
- * @name set
912
- * @memberOf ListCache
913
- * @param {string} key The key of the value to set.
914
- * @param {*} value The value to set.
915
- * @returns {Object} Returns the list cache instance.
916
- */
917
- function listCacheSet(key, value) {
918
- var data = this.__data__,
919
- index = _assocIndexOf(data, key);
920
-
921
- if (index < 0) {
922
- ++this.size;
923
- data.push([key, value]);
924
- } else {
925
- data[index][1] = value;
926
- }
927
- return this;
928
- }
929
-
930
- var _listCacheSet = listCacheSet;
931
-
932
- /**
933
- * Creates an list cache object.
934
- *
935
- * @private
936
- * @constructor
937
- * @param {Array} [entries] The key-value pairs to cache.
938
- */
939
- function ListCache(entries) {
940
- var index = -1,
941
- length = entries == null ? 0 : entries.length;
942
-
943
- this.clear();
944
- while (++index < length) {
945
- var entry = entries[index];
946
- this.set(entry[0], entry[1]);
947
- }
948
- }
949
-
950
- // Add methods to `ListCache`.
951
- ListCache.prototype.clear = _listCacheClear;
952
- ListCache.prototype['delete'] = _listCacheDelete;
953
- ListCache.prototype.get = _listCacheGet;
954
- ListCache.prototype.has = _listCacheHas;
955
- ListCache.prototype.set = _listCacheSet;
956
-
957
- var _ListCache = ListCache;
958
-
959
- /* Built-in method references that are verified to be native. */
960
- var Map = _getNative(_root, 'Map');
961
-
962
- var _Map = Map;
963
-
964
- /**
965
- * Removes all key-value entries from the map.
966
- *
967
- * @private
968
- * @name clear
969
- * @memberOf MapCache
970
- */
971
- function mapCacheClear() {
972
- this.size = 0;
973
- this.__data__ = {
974
- 'hash': new _Hash,
975
- 'map': new (_Map || _ListCache),
976
- 'string': new _Hash
977
- };
978
- }
979
-
980
- var _mapCacheClear = mapCacheClear;
981
-
982
- /**
983
- * Checks if `value` is suitable for use as unique object key.
984
- *
985
- * @private
986
- * @param {*} value The value to check.
987
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
988
- */
989
- function isKeyable(value) {
990
- var type = typeof value;
991
- return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
992
- ? (value !== '__proto__')
993
- : (value === null);
994
- }
995
-
996
- var _isKeyable = isKeyable;
997
-
998
- /**
999
- * Gets the data for `map`.
1000
- *
1001
- * @private
1002
- * @param {Object} map The map to query.
1003
- * @param {string} key The reference key.
1004
- * @returns {*} Returns the map data.
1005
- */
1006
- function getMapData(map, key) {
1007
- var data = map.__data__;
1008
- return _isKeyable(key)
1009
- ? data[typeof key == 'string' ? 'string' : 'hash']
1010
- : data.map;
1011
- }
1012
-
1013
- var _getMapData = getMapData;
1014
-
1015
- /**
1016
- * Removes `key` and its value from the map.
1017
- *
1018
- * @private
1019
- * @name delete
1020
- * @memberOf MapCache
1021
- * @param {string} key The key of the value to remove.
1022
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1023
- */
1024
- function mapCacheDelete(key) {
1025
- var result = _getMapData(this, key)['delete'](key);
1026
- this.size -= result ? 1 : 0;
1027
- return result;
1028
- }
1029
-
1030
- var _mapCacheDelete = mapCacheDelete;
1031
-
1032
- /**
1033
- * Gets the map value for `key`.
1034
- *
1035
- * @private
1036
- * @name get
1037
- * @memberOf MapCache
1038
- * @param {string} key The key of the value to get.
1039
- * @returns {*} Returns the entry value.
1040
- */
1041
- function mapCacheGet(key) {
1042
- return _getMapData(this, key).get(key);
1043
- }
1044
-
1045
- var _mapCacheGet = mapCacheGet;
1046
-
1047
- /**
1048
- * Checks if a map value for `key` exists.
1049
- *
1050
- * @private
1051
- * @name has
1052
- * @memberOf MapCache
1053
- * @param {string} key The key of the entry to check.
1054
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1055
- */
1056
- function mapCacheHas(key) {
1057
- return _getMapData(this, key).has(key);
1058
- }
1059
-
1060
- var _mapCacheHas = mapCacheHas;
1061
-
1062
- /**
1063
- * Sets the map `key` to `value`.
1064
- *
1065
- * @private
1066
- * @name set
1067
- * @memberOf MapCache
1068
- * @param {string} key The key of the value to set.
1069
- * @param {*} value The value to set.
1070
- * @returns {Object} Returns the map cache instance.
1071
- */
1072
- function mapCacheSet(key, value) {
1073
- var data = _getMapData(this, key),
1074
- size = data.size;
1075
-
1076
- data.set(key, value);
1077
- this.size += data.size == size ? 0 : 1;
1078
- return this;
1079
- }
1080
-
1081
- var _mapCacheSet = mapCacheSet;
1082
-
1083
- /**
1084
- * Creates a map cache object to store key-value pairs.
1085
- *
1086
- * @private
1087
- * @constructor
1088
- * @param {Array} [entries] The key-value pairs to cache.
1089
- */
1090
- function MapCache(entries) {
1091
- var index = -1,
1092
- length = entries == null ? 0 : entries.length;
1093
-
1094
- this.clear();
1095
- while (++index < length) {
1096
- var entry = entries[index];
1097
- this.set(entry[0], entry[1]);
1098
- }
1099
- }
1100
-
1101
- // Add methods to `MapCache`.
1102
- MapCache.prototype.clear = _mapCacheClear;
1103
- MapCache.prototype['delete'] = _mapCacheDelete;
1104
- MapCache.prototype.get = _mapCacheGet;
1105
- MapCache.prototype.has = _mapCacheHas;
1106
- MapCache.prototype.set = _mapCacheSet;
1107
-
1108
- var _MapCache = MapCache;
1109
-
1110
- /** Error message constants. */
1111
- var FUNC_ERROR_TEXT = 'Expected a function';
1112
-
1113
- /**
1114
- * Creates a function that memoizes the result of `func`. If `resolver` is
1115
- * provided, it determines the cache key for storing the result based on the
1116
- * arguments provided to the memoized function. By default, the first argument
1117
- * provided to the memoized function is used as the map cache key. The `func`
1118
- * is invoked with the `this` binding of the memoized function.
1119
- *
1120
- * **Note:** The cache is exposed as the `cache` property on the memoized
1121
- * function. Its creation may be customized by replacing the `_.memoize.Cache`
1122
- * constructor with one whose instances implement the
1123
- * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
1124
- * method interface of `clear`, `delete`, `get`, `has`, and `set`.
1125
- *
1126
- * @static
1127
- * @memberOf _
1128
- * @since 0.1.0
1129
- * @category Function
1130
- * @param {Function} func The function to have its output memoized.
1131
- * @param {Function} [resolver] The function to resolve the cache key.
1132
- * @returns {Function} Returns the new memoized function.
1133
- * @example
1134
- *
1135
- * var object = { 'a': 1, 'b': 2 };
1136
- * var other = { 'c': 3, 'd': 4 };
1137
- *
1138
- * var values = _.memoize(_.values);
1139
- * values(object);
1140
- * // => [1, 2]
1141
- *
1142
- * values(other);
1143
- * // => [3, 4]
1144
- *
1145
- * object.a = 2;
1146
- * values(object);
1147
- * // => [1, 2]
1148
- *
1149
- * // Modify the result cache.
1150
- * values.cache.set(object, ['a', 'b']);
1151
- * values(object);
1152
- * // => ['a', 'b']
1153
- *
1154
- * // Replace `_.memoize.Cache`.
1155
- * _.memoize.Cache = WeakMap;
1156
- */
1157
- function memoize(func, resolver) {
1158
- if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
1159
- throw new TypeError(FUNC_ERROR_TEXT);
1160
- }
1161
- var memoized = function() {
1162
- var args = arguments,
1163
- key = resolver ? resolver.apply(this, args) : args[0],
1164
- cache = memoized.cache;
1165
-
1166
- if (cache.has(key)) {
1167
- return cache.get(key);
1168
- }
1169
- var result = func.apply(this, args);
1170
- memoized.cache = cache.set(key, result) || cache;
1171
- return result;
1172
- };
1173
- memoized.cache = new (memoize.Cache || _MapCache);
1174
- return memoized;
1175
- }
1176
-
1177
- // Expose `MapCache`.
1178
- memoize.Cache = _MapCache;
1179
-
1180
- var memoize_1 = memoize;
1181
-
1182
- /** Used as the maximum memoize cache size. */
1183
- var MAX_MEMOIZE_SIZE = 500;
1184
-
1185
- /**
1186
- * A specialized version of `_.memoize` which clears the memoized function's
1187
- * cache when it exceeds `MAX_MEMOIZE_SIZE`.
1188
- *
1189
- * @private
1190
- * @param {Function} func The function to have its output memoized.
1191
- * @returns {Function} Returns the new memoized function.
1192
- */
1193
- function memoizeCapped(func) {
1194
- var result = memoize_1(func, function(key) {
1195
- if (cache.size === MAX_MEMOIZE_SIZE) {
1196
- cache.clear();
1197
- }
1198
- return key;
1199
- });
1200
-
1201
- var cache = result.cache;
1202
- return result;
1203
- }
1204
-
1205
- var _memoizeCapped = memoizeCapped;
1206
-
1207
- /** Used to match property names within property paths. */
1208
- var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
1209
-
1210
- /** Used to match backslashes in property paths. */
1211
- var reEscapeChar = /\\(\\)?/g;
1212
-
1213
- /**
1214
- * Converts `string` to a property path array.
1215
- *
1216
- * @private
1217
- * @param {string} string The string to convert.
1218
- * @returns {Array} Returns the property path array.
1219
- */
1220
- var stringToPath = _memoizeCapped(function(string) {
1221
- var result = [];
1222
- if (string.charCodeAt(0) === 46 /* . */) {
1223
- result.push('');
1224
- }
1225
- string.replace(rePropName, function(match, number, quote, subString) {
1226
- result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
1227
- });
1228
- return result;
1229
- });
1230
-
1231
- var _stringToPath = stringToPath;
1232
-
1233
- /**
1234
- * A specialized version of `_.map` for arrays without support for iteratee
1235
- * shorthands.
1236
- *
1237
- * @private
1238
- * @param {Array} [array] The array to iterate over.
1239
- * @param {Function} iteratee The function invoked per iteration.
1240
- * @returns {Array} Returns the new mapped array.
1241
- */
1242
- function arrayMap(array, iteratee) {
1243
- var index = -1,
1244
- length = array == null ? 0 : array.length,
1245
- result = Array(length);
1246
-
1247
- while (++index < length) {
1248
- result[index] = iteratee(array[index], index, array);
1249
- }
1250
- return result;
1251
- }
1252
-
1253
- var _arrayMap = arrayMap;
1254
-
1255
- /** Used as references for various `Number` constants. */
1256
- var INFINITY$1 = 1 / 0;
1257
-
1258
- /** Used to convert symbols to primitives and strings. */
1259
- var symbolProto = _Symbol ? _Symbol.prototype : undefined,
1260
- symbolToString = symbolProto ? symbolProto.toString : undefined;
1261
-
1262
- /**
1263
- * The base implementation of `_.toString` which doesn't convert nullish
1264
- * values to empty strings.
1265
- *
1266
- * @private
1267
- * @param {*} value The value to process.
1268
- * @returns {string} Returns the string.
1269
- */
1270
- function baseToString(value) {
1271
- // Exit early for strings to avoid a performance hit in some environments.
1272
- if (typeof value == 'string') {
1273
- return value;
1274
- }
1275
- if (isArray_1(value)) {
1276
- // Recursively convert values (susceptible to call stack limits).
1277
- return _arrayMap(value, baseToString) + '';
1278
- }
1279
- if (isSymbol_1(value)) {
1280
- return symbolToString ? symbolToString.call(value) : '';
1281
- }
1282
- var result = (value + '');
1283
- return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
1284
- }
1285
-
1286
- var _baseToString = baseToString;
1287
-
1288
- /**
1289
- * Converts `value` to a string. An empty string is returned for `null`
1290
- * and `undefined` values. The sign of `-0` is preserved.
1291
- *
1292
- * @static
1293
- * @memberOf _
1294
- * @since 4.0.0
1295
- * @category Lang
1296
- * @param {*} value The value to convert.
1297
- * @returns {string} Returns the converted string.
1298
- * @example
1299
- *
1300
- * _.toString(null);
1301
- * // => ''
1302
- *
1303
- * _.toString(-0);
1304
- * // => '-0'
1305
- *
1306
- * _.toString([1, 2, 3]);
1307
- * // => '1,2,3'
1308
- */
1309
- function toString(value) {
1310
- return value == null ? '' : _baseToString(value);
1311
- }
1312
-
1313
- var toString_1 = toString;
1314
-
1315
- /**
1316
- * Casts `value` to a path array if it's not one.
1317
- *
1318
- * @private
1319
- * @param {*} value The value to inspect.
1320
- * @param {Object} [object] The object to query keys on.
1321
- * @returns {Array} Returns the cast property path array.
1322
- */
1323
- function castPath(value, object) {
1324
- if (isArray_1(value)) {
1325
- return value;
1326
- }
1327
- return _isKey(value, object) ? [value] : _stringToPath(toString_1(value));
1328
- }
1329
-
1330
- var _castPath = castPath;
1331
-
1332
- /** Used as references for various `Number` constants. */
1333
- var INFINITY = 1 / 0;
1334
-
1335
- /**
1336
- * Converts `value` to a string key if it's not a string or symbol.
1337
- *
1338
- * @private
1339
- * @param {*} value The value to inspect.
1340
- * @returns {string|symbol} Returns the key.
1341
- */
1342
- function toKey(value) {
1343
- if (typeof value == 'string' || isSymbol_1(value)) {
1344
- return value;
1345
- }
1346
- var result = (value + '');
1347
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
1348
- }
1349
-
1350
- var _toKey = toKey;
1351
-
1352
- /**
1353
- * The base implementation of `_.get` without support for default values.
1354
- *
1355
- * @private
1356
- * @param {Object} object The object to query.
1357
- * @param {Array|string} path The path of the property to get.
1358
- * @returns {*} Returns the resolved value.
1359
- */
1360
- function baseGet(object, path) {
1361
- path = _castPath(path, object);
1362
-
1363
- var index = 0,
1364
- length = path.length;
1365
-
1366
- while (object != null && index < length) {
1367
- object = object[_toKey(path[index++])];
1368
- }
1369
- return (index && index == length) ? object : undefined;
1370
- }
1371
-
1372
- var _baseGet = baseGet;
1373
-
1374
- /**
1375
- * Gets the value at `path` of `object`. If the resolved value is
1376
- * `undefined`, the `defaultValue` is returned in its place.
1377
- *
1378
- * @static
1379
- * @memberOf _
1380
- * @since 3.7.0
1381
- * @category Object
1382
- * @param {Object} object The object to query.
1383
- * @param {Array|string} path The path of the property to get.
1384
- * @param {*} [defaultValue] The value returned for `undefined` resolved values.
1385
- * @returns {*} Returns the resolved value.
1386
- * @example
1387
- *
1388
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
1389
- *
1390
- * _.get(object, 'a[0].b.c');
1391
- * // => 3
1392
- *
1393
- * _.get(object, ['a', '0', 'b', 'c']);
1394
- * // => 3
1395
- *
1396
- * _.get(object, 'a.b.c', 'default');
1397
- * // => 'default'
1398
- */
1399
- function get(object, path, defaultValue) {
1400
- var result = object == null ? undefined : _baseGet(object, path);
1401
- return result === undefined ? defaultValue : result;
1402
- }
1403
-
1404
- var get_1 = get;
1405
-
1406
- /**
1407
- * Copyright (c) 2014-present, Facebook, Inc.
1408
- *
1409
- * This source code is licensed under the MIT license found in the
1410
- * LICENSE file in the root directory of this source tree.
1411
- */
1412
-
1413
- createCommonjsModule(function (module) {
1414
- var runtime = (function (exports) {
1415
-
1416
- var Op = Object.prototype;
1417
- var hasOwn = Op.hasOwnProperty;
1418
- var undefined$1; // More compressible than void 0.
1419
- var $Symbol = typeof Symbol === "function" ? Symbol : {};
1420
- var iteratorSymbol = $Symbol.iterator || "@@iterator";
1421
- var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
1422
- var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
1423
-
1424
- function define(obj, key, value) {
1425
- Object.defineProperty(obj, key, {
1426
- value: value,
1427
- enumerable: true,
1428
- configurable: true,
1429
- writable: true
1430
- });
1431
- return obj[key];
1432
- }
1433
- try {
1434
- // IE 8 has a broken Object.defineProperty that only works on DOM objects.
1435
- define({}, "");
1436
- } catch (err) {
1437
- define = function(obj, key, value) {
1438
- return obj[key] = value;
1439
- };
1440
- }
1441
-
1442
- function wrap(innerFn, outerFn, self, tryLocsList) {
1443
- // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
1444
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
1445
- var generator = Object.create(protoGenerator.prototype);
1446
- var context = new Context(tryLocsList || []);
1447
-
1448
- // The ._invoke method unifies the implementations of the .next,
1449
- // .throw, and .return methods.
1450
- generator._invoke = makeInvokeMethod(innerFn, self, context);
1451
-
1452
- return generator;
1453
- }
1454
- exports.wrap = wrap;
1455
-
1456
- // Try/catch helper to minimize deoptimizations. Returns a completion
1457
- // record like context.tryEntries[i].completion. This interface could
1458
- // have been (and was previously) designed to take a closure to be
1459
- // invoked without arguments, but in all the cases we care about we
1460
- // already have an existing method we want to call, so there's no need
1461
- // to create a new function object. We can even get away with assuming
1462
- // the method takes exactly one argument, since that happens to be true
1463
- // in every case, so we don't have to touch the arguments object. The
1464
- // only additional allocation required is the completion record, which
1465
- // has a stable shape and so hopefully should be cheap to allocate.
1466
- function tryCatch(fn, obj, arg) {
1467
- try {
1468
- return { type: "normal", arg: fn.call(obj, arg) };
1469
- } catch (err) {
1470
- return { type: "throw", arg: err };
1471
- }
1472
- }
1473
-
1474
- var GenStateSuspendedStart = "suspendedStart";
1475
- var GenStateSuspendedYield = "suspendedYield";
1476
- var GenStateExecuting = "executing";
1477
- var GenStateCompleted = "completed";
1478
-
1479
- // Returning this object from the innerFn has the same effect as
1480
- // breaking out of the dispatch switch statement.
1481
- var ContinueSentinel = {};
1482
-
1483
- // Dummy constructor functions that we use as the .constructor and
1484
- // .constructor.prototype properties for functions that return Generator
1485
- // objects. For full spec compliance, you may wish to configure your
1486
- // minifier not to mangle the names of these two functions.
1487
- function Generator() {}
1488
- function GeneratorFunction() {}
1489
- function GeneratorFunctionPrototype() {}
1490
-
1491
- // This is a polyfill for %IteratorPrototype% for environments that
1492
- // don't natively support it.
1493
- var IteratorPrototype = {};
1494
- define(IteratorPrototype, iteratorSymbol, function () {
1495
- return this;
1496
- });
1497
-
1498
- var getProto = Object.getPrototypeOf;
1499
- var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
1500
- if (NativeIteratorPrototype &&
1501
- NativeIteratorPrototype !== Op &&
1502
- hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
1503
- // This environment has a native %IteratorPrototype%; use it instead
1504
- // of the polyfill.
1505
- IteratorPrototype = NativeIteratorPrototype;
1506
- }
1507
-
1508
- var Gp = GeneratorFunctionPrototype.prototype =
1509
- Generator.prototype = Object.create(IteratorPrototype);
1510
- GeneratorFunction.prototype = GeneratorFunctionPrototype;
1511
- define(Gp, "constructor", GeneratorFunctionPrototype);
1512
- define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
1513
- GeneratorFunction.displayName = define(
1514
- GeneratorFunctionPrototype,
1515
- toStringTagSymbol,
1516
- "GeneratorFunction"
1517
- );
1518
-
1519
- // Helper for defining the .next, .throw, and .return methods of the
1520
- // Iterator interface in terms of a single ._invoke method.
1521
- function defineIteratorMethods(prototype) {
1522
- ["next", "throw", "return"].forEach(function(method) {
1523
- define(prototype, method, function(arg) {
1524
- return this._invoke(method, arg);
1525
- });
1526
- });
1527
- }
1528
-
1529
- exports.isGeneratorFunction = function(genFun) {
1530
- var ctor = typeof genFun === "function" && genFun.constructor;
1531
- return ctor
1532
- ? ctor === GeneratorFunction ||
1533
- // For the native GeneratorFunction constructor, the best we can
1534
- // do is to check its .name property.
1535
- (ctor.displayName || ctor.name) === "GeneratorFunction"
1536
- : false;
1537
- };
1538
-
1539
- exports.mark = function(genFun) {
1540
- if (Object.setPrototypeOf) {
1541
- Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
1542
- } else {
1543
- genFun.__proto__ = GeneratorFunctionPrototype;
1544
- define(genFun, toStringTagSymbol, "GeneratorFunction");
1545
- }
1546
- genFun.prototype = Object.create(Gp);
1547
- return genFun;
1548
- };
1549
-
1550
- // Within the body of any async function, `await x` is transformed to
1551
- // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
1552
- // `hasOwn.call(value, "__await")` to determine if the yielded value is
1553
- // meant to be awaited.
1554
- exports.awrap = function(arg) {
1555
- return { __await: arg };
1556
- };
1557
-
1558
- function AsyncIterator(generator, PromiseImpl) {
1559
- function invoke(method, arg, resolve, reject) {
1560
- var record = tryCatch(generator[method], generator, arg);
1561
- if (record.type === "throw") {
1562
- reject(record.arg);
1563
- } else {
1564
- var result = record.arg;
1565
- var value = result.value;
1566
- if (value &&
1567
- typeof value === "object" &&
1568
- hasOwn.call(value, "__await")) {
1569
- return PromiseImpl.resolve(value.__await).then(function(value) {
1570
- invoke("next", value, resolve, reject);
1571
- }, function(err) {
1572
- invoke("throw", err, resolve, reject);
1573
- });
1574
- }
1575
-
1576
- return PromiseImpl.resolve(value).then(function(unwrapped) {
1577
- // When a yielded Promise is resolved, its final value becomes
1578
- // the .value of the Promise<{value,done}> result for the
1579
- // current iteration.
1580
- result.value = unwrapped;
1581
- resolve(result);
1582
- }, function(error) {
1583
- // If a rejected Promise was yielded, throw the rejection back
1584
- // into the async generator function so it can be handled there.
1585
- return invoke("throw", error, resolve, reject);
1586
- });
1587
- }
1588
- }
1589
-
1590
- var previousPromise;
1591
-
1592
- function enqueue(method, arg) {
1593
- function callInvokeWithMethodAndArg() {
1594
- return new PromiseImpl(function(resolve, reject) {
1595
- invoke(method, arg, resolve, reject);
1596
- });
1597
- }
1598
-
1599
- return previousPromise =
1600
- // If enqueue has been called before, then we want to wait until
1601
- // all previous Promises have been resolved before calling invoke,
1602
- // so that results are always delivered in the correct order. If
1603
- // enqueue has not been called before, then it is important to
1604
- // call invoke immediately, without waiting on a callback to fire,
1605
- // so that the async generator function has the opportunity to do
1606
- // any necessary setup in a predictable way. This predictability
1607
- // is why the Promise constructor synchronously invokes its
1608
- // executor callback, and why async functions synchronously
1609
- // execute code before the first await. Since we implement simple
1610
- // async functions in terms of async generators, it is especially
1611
- // important to get this right, even though it requires care.
1612
- previousPromise ? previousPromise.then(
1613
- callInvokeWithMethodAndArg,
1614
- // Avoid propagating failures to Promises returned by later
1615
- // invocations of the iterator.
1616
- callInvokeWithMethodAndArg
1617
- ) : callInvokeWithMethodAndArg();
1618
- }
1619
-
1620
- // Define the unified helper method that is used to implement .next,
1621
- // .throw, and .return (see defineIteratorMethods).
1622
- this._invoke = enqueue;
1623
- }
1624
-
1625
- defineIteratorMethods(AsyncIterator.prototype);
1626
- define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
1627
- return this;
1628
- });
1629
- exports.AsyncIterator = AsyncIterator;
1630
-
1631
- // Note that simple async functions are implemented on top of
1632
- // AsyncIterator objects; they just return a Promise for the value of
1633
- // the final result produced by the iterator.
1634
- exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
1635
- if (PromiseImpl === void 0) PromiseImpl = Promise;
1636
-
1637
- var iter = new AsyncIterator(
1638
- wrap(innerFn, outerFn, self, tryLocsList),
1639
- PromiseImpl
1640
- );
1641
-
1642
- return exports.isGeneratorFunction(outerFn)
1643
- ? iter // If outerFn is a generator, return the full iterator.
1644
- : iter.next().then(function(result) {
1645
- return result.done ? result.value : iter.next();
1646
- });
1647
- };
1648
-
1649
- function makeInvokeMethod(innerFn, self, context) {
1650
- var state = GenStateSuspendedStart;
1651
-
1652
- return function invoke(method, arg) {
1653
- if (state === GenStateExecuting) {
1654
- throw new Error("Generator is already running");
1655
- }
1656
-
1657
- if (state === GenStateCompleted) {
1658
- if (method === "throw") {
1659
- throw arg;
1660
- }
1661
-
1662
- // Be forgiving, per 25.3.3.3.3 of the spec:
1663
- // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
1664
- return doneResult();
1665
- }
1666
-
1667
- context.method = method;
1668
- context.arg = arg;
1669
-
1670
- while (true) {
1671
- var delegate = context.delegate;
1672
- if (delegate) {
1673
- var delegateResult = maybeInvokeDelegate(delegate, context);
1674
- if (delegateResult) {
1675
- if (delegateResult === ContinueSentinel) continue;
1676
- return delegateResult;
1677
- }
1678
- }
1679
-
1680
- if (context.method === "next") {
1681
- // Setting context._sent for legacy support of Babel's
1682
- // function.sent implementation.
1683
- context.sent = context._sent = context.arg;
1684
-
1685
- } else if (context.method === "throw") {
1686
- if (state === GenStateSuspendedStart) {
1687
- state = GenStateCompleted;
1688
- throw context.arg;
1689
- }
1690
-
1691
- context.dispatchException(context.arg);
1692
-
1693
- } else if (context.method === "return") {
1694
- context.abrupt("return", context.arg);
1695
- }
1696
-
1697
- state = GenStateExecuting;
1698
-
1699
- var record = tryCatch(innerFn, self, context);
1700
- if (record.type === "normal") {
1701
- // If an exception is thrown from innerFn, we leave state ===
1702
- // GenStateExecuting and loop back for another invocation.
1703
- state = context.done
1704
- ? GenStateCompleted
1705
- : GenStateSuspendedYield;
1706
-
1707
- if (record.arg === ContinueSentinel) {
1708
- continue;
1709
- }
1710
-
1711
- return {
1712
- value: record.arg,
1713
- done: context.done
1714
- };
1715
-
1716
- } else if (record.type === "throw") {
1717
- state = GenStateCompleted;
1718
- // Dispatch the exception by looping back around to the
1719
- // context.dispatchException(context.arg) call above.
1720
- context.method = "throw";
1721
- context.arg = record.arg;
1722
- }
1723
- }
1724
- };
1725
- }
1726
-
1727
- // Call delegate.iterator[context.method](context.arg) and handle the
1728
- // result, either by returning a { value, done } result from the
1729
- // delegate iterator, or by modifying context.method and context.arg,
1730
- // setting context.delegate to null, and returning the ContinueSentinel.
1731
- function maybeInvokeDelegate(delegate, context) {
1732
- var method = delegate.iterator[context.method];
1733
- if (method === undefined$1) {
1734
- // A .throw or .return when the delegate iterator has no .throw
1735
- // method always terminates the yield* loop.
1736
- context.delegate = null;
1737
-
1738
- if (context.method === "throw") {
1739
- // Note: ["return"] must be used for ES3 parsing compatibility.
1740
- if (delegate.iterator["return"]) {
1741
- // If the delegate iterator has a return method, give it a
1742
- // chance to clean up.
1743
- context.method = "return";
1744
- context.arg = undefined$1;
1745
- maybeInvokeDelegate(delegate, context);
1746
-
1747
- if (context.method === "throw") {
1748
- // If maybeInvokeDelegate(context) changed context.method from
1749
- // "return" to "throw", let that override the TypeError below.
1750
- return ContinueSentinel;
1751
- }
1752
- }
1753
-
1754
- context.method = "throw";
1755
- context.arg = new TypeError(
1756
- "The iterator does not provide a 'throw' method");
1757
- }
1758
-
1759
- return ContinueSentinel;
1760
- }
1761
-
1762
- var record = tryCatch(method, delegate.iterator, context.arg);
1763
-
1764
- if (record.type === "throw") {
1765
- context.method = "throw";
1766
- context.arg = record.arg;
1767
- context.delegate = null;
1768
- return ContinueSentinel;
1769
- }
1770
-
1771
- var info = record.arg;
1772
-
1773
- if (! info) {
1774
- context.method = "throw";
1775
- context.arg = new TypeError("iterator result is not an object");
1776
- context.delegate = null;
1777
- return ContinueSentinel;
1778
- }
1779
-
1780
- if (info.done) {
1781
- // Assign the result of the finished delegate to the temporary
1782
- // variable specified by delegate.resultName (see delegateYield).
1783
- context[delegate.resultName] = info.value;
1784
-
1785
- // Resume execution at the desired location (see delegateYield).
1786
- context.next = delegate.nextLoc;
1787
-
1788
- // If context.method was "throw" but the delegate handled the
1789
- // exception, let the outer generator proceed normally. If
1790
- // context.method was "next", forget context.arg since it has been
1791
- // "consumed" by the delegate iterator. If context.method was
1792
- // "return", allow the original .return call to continue in the
1793
- // outer generator.
1794
- if (context.method !== "return") {
1795
- context.method = "next";
1796
- context.arg = undefined$1;
1797
- }
1798
-
1799
- } else {
1800
- // Re-yield the result returned by the delegate method.
1801
- return info;
1802
- }
1803
-
1804
- // The delegate iterator is finished, so forget it and continue with
1805
- // the outer generator.
1806
- context.delegate = null;
1807
- return ContinueSentinel;
1808
- }
1809
-
1810
- // Define Generator.prototype.{next,throw,return} in terms of the
1811
- // unified ._invoke helper method.
1812
- defineIteratorMethods(Gp);
1813
-
1814
- define(Gp, toStringTagSymbol, "Generator");
1815
-
1816
- // A Generator should always return itself as the iterator object when the
1817
- // @@iterator function is called on it. Some browsers' implementations of the
1818
- // iterator prototype chain incorrectly implement this, causing the Generator
1819
- // object to not be returned from this call. This ensures that doesn't happen.
1820
- // See https://github.com/facebook/regenerator/issues/274 for more details.
1821
- define(Gp, iteratorSymbol, function() {
1822
- return this;
1823
- });
1824
-
1825
- define(Gp, "toString", function() {
1826
- return "[object Generator]";
1827
- });
1828
-
1829
- function pushTryEntry(locs) {
1830
- var entry = { tryLoc: locs[0] };
1831
-
1832
- if (1 in locs) {
1833
- entry.catchLoc = locs[1];
1834
- }
1835
-
1836
- if (2 in locs) {
1837
- entry.finallyLoc = locs[2];
1838
- entry.afterLoc = locs[3];
1839
- }
1840
-
1841
- this.tryEntries.push(entry);
1842
- }
1843
-
1844
- function resetTryEntry(entry) {
1845
- var record = entry.completion || {};
1846
- record.type = "normal";
1847
- delete record.arg;
1848
- entry.completion = record;
1849
- }
1850
-
1851
- function Context(tryLocsList) {
1852
- // The root entry object (effectively a try statement without a catch
1853
- // or a finally block) gives us a place to store values thrown from
1854
- // locations where there is no enclosing try statement.
1855
- this.tryEntries = [{ tryLoc: "root" }];
1856
- tryLocsList.forEach(pushTryEntry, this);
1857
- this.reset(true);
1858
- }
1859
-
1860
- exports.keys = function(object) {
1861
- var keys = [];
1862
- for (var key in object) {
1863
- keys.push(key);
1864
- }
1865
- keys.reverse();
1866
-
1867
- // Rather than returning an object with a next method, we keep
1868
- // things simple and return the next function itself.
1869
- return function next() {
1870
- while (keys.length) {
1871
- var key = keys.pop();
1872
- if (key in object) {
1873
- next.value = key;
1874
- next.done = false;
1875
- return next;
1876
- }
1877
- }
1878
-
1879
- // To avoid creating an additional object, we just hang the .value
1880
- // and .done properties off the next function object itself. This
1881
- // also ensures that the minifier will not anonymize the function.
1882
- next.done = true;
1883
- return next;
1884
- };
1885
- };
1886
-
1887
- function values(iterable) {
1888
- if (iterable) {
1889
- var iteratorMethod = iterable[iteratorSymbol];
1890
- if (iteratorMethod) {
1891
- return iteratorMethod.call(iterable);
1892
- }
1893
-
1894
- if (typeof iterable.next === "function") {
1895
- return iterable;
1896
- }
1897
-
1898
- if (!isNaN(iterable.length)) {
1899
- var i = -1, next = function next() {
1900
- while (++i < iterable.length) {
1901
- if (hasOwn.call(iterable, i)) {
1902
- next.value = iterable[i];
1903
- next.done = false;
1904
- return next;
1905
- }
1906
- }
1907
-
1908
- next.value = undefined$1;
1909
- next.done = true;
1910
-
1911
- return next;
1912
- };
1913
-
1914
- return next.next = next;
1915
- }
1916
- }
1917
-
1918
- // Return an iterator with no values.
1919
- return { next: doneResult };
1920
- }
1921
- exports.values = values;
1922
-
1923
- function doneResult() {
1924
- return { value: undefined$1, done: true };
1925
- }
1926
-
1927
- Context.prototype = {
1928
- constructor: Context,
1929
-
1930
- reset: function(skipTempReset) {
1931
- this.prev = 0;
1932
- this.next = 0;
1933
- // Resetting context._sent for legacy support of Babel's
1934
- // function.sent implementation.
1935
- this.sent = this._sent = undefined$1;
1936
- this.done = false;
1937
- this.delegate = null;
1938
-
1939
- this.method = "next";
1940
- this.arg = undefined$1;
1941
-
1942
- this.tryEntries.forEach(resetTryEntry);
1943
-
1944
- if (!skipTempReset) {
1945
- for (var name in this) {
1946
- // Not sure about the optimal order of these conditions:
1947
- if (name.charAt(0) === "t" &&
1948
- hasOwn.call(this, name) &&
1949
- !isNaN(+name.slice(1))) {
1950
- this[name] = undefined$1;
1951
- }
1952
- }
1953
- }
1954
- },
1955
-
1956
- stop: function() {
1957
- this.done = true;
1958
-
1959
- var rootEntry = this.tryEntries[0];
1960
- var rootRecord = rootEntry.completion;
1961
- if (rootRecord.type === "throw") {
1962
- throw rootRecord.arg;
1963
- }
1964
-
1965
- return this.rval;
1966
- },
1967
-
1968
- dispatchException: function(exception) {
1969
- if (this.done) {
1970
- throw exception;
1971
- }
1972
-
1973
- var context = this;
1974
- function handle(loc, caught) {
1975
- record.type = "throw";
1976
- record.arg = exception;
1977
- context.next = loc;
1978
-
1979
- if (caught) {
1980
- // If the dispatched exception was caught by a catch block,
1981
- // then let that catch block handle the exception normally.
1982
- context.method = "next";
1983
- context.arg = undefined$1;
1984
- }
1985
-
1986
- return !! caught;
1987
- }
1988
-
1989
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
1990
- var entry = this.tryEntries[i];
1991
- var record = entry.completion;
1992
-
1993
- if (entry.tryLoc === "root") {
1994
- // Exception thrown outside of any try block that could handle
1995
- // it, so set the completion value of the entire function to
1996
- // throw the exception.
1997
- return handle("end");
1998
- }
1999
-
2000
- if (entry.tryLoc <= this.prev) {
2001
- var hasCatch = hasOwn.call(entry, "catchLoc");
2002
- var hasFinally = hasOwn.call(entry, "finallyLoc");
2003
-
2004
- if (hasCatch && hasFinally) {
2005
- if (this.prev < entry.catchLoc) {
2006
- return handle(entry.catchLoc, true);
2007
- } else if (this.prev < entry.finallyLoc) {
2008
- return handle(entry.finallyLoc);
2009
- }
2010
-
2011
- } else if (hasCatch) {
2012
- if (this.prev < entry.catchLoc) {
2013
- return handle(entry.catchLoc, true);
2014
- }
2015
-
2016
- } else if (hasFinally) {
2017
- if (this.prev < entry.finallyLoc) {
2018
- return handle(entry.finallyLoc);
2019
- }
2020
-
2021
- } else {
2022
- throw new Error("try statement without catch or finally");
2023
- }
2024
- }
2025
- }
2026
- },
2027
-
2028
- abrupt: function(type, arg) {
2029
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2030
- var entry = this.tryEntries[i];
2031
- if (entry.tryLoc <= this.prev &&
2032
- hasOwn.call(entry, "finallyLoc") &&
2033
- this.prev < entry.finallyLoc) {
2034
- var finallyEntry = entry;
2035
- break;
2036
- }
2037
- }
2038
-
2039
- if (finallyEntry &&
2040
- (type === "break" ||
2041
- type === "continue") &&
2042
- finallyEntry.tryLoc <= arg &&
2043
- arg <= finallyEntry.finallyLoc) {
2044
- // Ignore the finally entry if control is not jumping to a
2045
- // location outside the try/catch block.
2046
- finallyEntry = null;
2047
- }
2048
-
2049
- var record = finallyEntry ? finallyEntry.completion : {};
2050
- record.type = type;
2051
- record.arg = arg;
2052
-
2053
- if (finallyEntry) {
2054
- this.method = "next";
2055
- this.next = finallyEntry.finallyLoc;
2056
- return ContinueSentinel;
2057
- }
2058
-
2059
- return this.complete(record);
2060
- },
2061
-
2062
- complete: function(record, afterLoc) {
2063
- if (record.type === "throw") {
2064
- throw record.arg;
2065
- }
2066
-
2067
- if (record.type === "break" ||
2068
- record.type === "continue") {
2069
- this.next = record.arg;
2070
- } else if (record.type === "return") {
2071
- this.rval = this.arg = record.arg;
2072
- this.method = "return";
2073
- this.next = "end";
2074
- } else if (record.type === "normal" && afterLoc) {
2075
- this.next = afterLoc;
2076
- }
2077
-
2078
- return ContinueSentinel;
2079
- },
2080
-
2081
- finish: function(finallyLoc) {
2082
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2083
- var entry = this.tryEntries[i];
2084
- if (entry.finallyLoc === finallyLoc) {
2085
- this.complete(entry.completion, entry.afterLoc);
2086
- resetTryEntry(entry);
2087
- return ContinueSentinel;
2088
- }
2089
- }
2090
- },
2091
-
2092
- "catch": function(tryLoc) {
2093
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2094
- var entry = this.tryEntries[i];
2095
- if (entry.tryLoc === tryLoc) {
2096
- var record = entry.completion;
2097
- if (record.type === "throw") {
2098
- var thrown = record.arg;
2099
- resetTryEntry(entry);
2100
- }
2101
- return thrown;
2102
- }
2103
- }
2104
-
2105
- // The context.catch method must only be called with a location
2106
- // argument that corresponds to a known catch block.
2107
- throw new Error("illegal catch attempt");
2108
- },
2109
-
2110
- delegateYield: function(iterable, resultName, nextLoc) {
2111
- this.delegate = {
2112
- iterator: values(iterable),
2113
- resultName: resultName,
2114
- nextLoc: nextLoc
2115
- };
2116
-
2117
- if (this.method === "next") {
2118
- // Deliberately forget the last sent value so that we don't
2119
- // accidentally pass it on to the delegate.
2120
- this.arg = undefined$1;
2121
- }
2122
-
2123
- return ContinueSentinel;
2124
- }
2125
- };
2126
-
2127
- // Regardless of whether this script is executing as a CommonJS module
2128
- // or not, return the runtime object so that we can declare the variable
2129
- // regeneratorRuntime in the outer scope, which allows this module to be
2130
- // injected easily by `bin/regenerator --include-runtime script.js`.
2131
- return exports;
2132
-
2133
- }(
2134
- // If this script is executing as a CommonJS module, use module.exports
2135
- // as the regeneratorRuntime namespace. Otherwise create a new empty
2136
- // object. Either way, the resulting object will be used to initialize
2137
- // the regeneratorRuntime variable at the top of this file.
2138
- module.exports
2139
- ));
2140
-
2141
- try {
2142
- regeneratorRuntime = runtime;
2143
- } catch (accidentalStrictMode) {
2144
- // This module should not be running in strict mode, so the above
2145
- // assignment should always work unless something is misconfigured. Just
2146
- // in case runtime.js accidentally runs in strict mode, in modern engines
2147
- // we can explicitly access globalThis. In older engines we can escape
2148
- // strict mode using a global Function call. This could conceivably fail
2149
- // if a Content Security Policy forbids using Function, but in that case
2150
- // the proper solution is to fix the accidental strict mode problem. If
2151
- // you've misconfigured your bundler to force strict mode and applied a
2152
- // CSP to forbid Function, and you're not willing to fix either of those
2153
- // problems, please detail your unique predicament in a GitHub issue.
2154
- if (typeof globalThis === "object") {
2155
- globalThis.regeneratorRuntime = runtime;
2156
- } else {
2157
- Function("r", "regeneratorRuntime = r")(runtime);
2158
- }
2159
- }
2160
- });
2161
-
2162
25
  var hexToRGB = function hexToRGB(hex) {
2163
26
  var r = parseInt(hex.slice(1, 3), 16);
2164
27
  var g = parseInt(hex.slice(3, 5), 16);
@@ -2218,11 +81,11 @@ var withElementWrapper = function withElementWrapper(StoryElement) {
2218
81
  return function (props) {
2219
82
  var element = props.element,
2220
83
  render = props.render,
2221
- restProps = _objectWithoutProperties(props, _excluded$1);
84
+ restProps = _objectWithoutProperties__default["default"](props, _excluded$1);
2222
85
 
2223
86
  if (!element) return null;
2224
87
  if (render && typeof render === "function") return render(props);
2225
- return /*#__PURE__*/React__default["default"].createElement(StoryElement, _extends({}, restProps, {
88
+ return /*#__PURE__*/React__default["default"].createElement(StoryElement, _extends__default["default"]({}, restProps, {
2226
89
  element: element
2227
90
  }));
2228
91
  };
@@ -2258,12 +121,12 @@ var _styleModuleImportMap = {
2258
121
  var supportedTemplates = function supportedTemplates(type, element) {
2259
122
  switch (type) {
2260
123
  case "q-and-a":
2261
- var _get = get_1(element, ["metadata"]),
124
+ var _get = lodash.get(element, ["metadata"]),
2262
125
  qaQuestion = _get.question,
2263
126
  qaAnswer = _get.answer;
2264
127
 
2265
- var qaQuestionAttribution = get_1(element, ["metadata", "interviewer", "avatar-url"]);
2266
- var qaAnswerAttribution = get_1(element, ["metadata", "interviewee", "avatar-url"]);
128
+ var qaQuestionAttribution = lodash.get(element, ["metadata", "interviewer", "avatar-url"]);
129
+ var qaAnswerAttribution = lodash.get(element, ["metadata", "interviewee", "avatar-url"]);
2267
130
  return {
2268
131
  question: qaQuestion,
2269
132
  answer: qaAnswer,
@@ -2272,16 +135,16 @@ var supportedTemplates = function supportedTemplates(type, element) {
2272
135
  };
2273
136
 
2274
137
  case "question":
2275
- var qQuestion = get_1(element, ["text"]);
2276
- var qAttribution = get_1(element, ["metadata", "interviewer", "avatar-url"]);
138
+ var qQuestion = lodash.get(element, ["text"]);
139
+ var qAttribution = lodash.get(element, ["metadata", "interviewer", "avatar-url"]);
2277
140
  return {
2278
141
  question: qQuestion,
2279
142
  questionAttribution: qAttribution
2280
143
  };
2281
144
 
2282
145
  case "answer":
2283
- var aAnswer = get_1(element, ["text"]);
2284
- var aAttribution = get_1(element, ["metadata", "interviewee", "avatar-url"]);
146
+ var aAnswer = lodash.get(element, ["text"]);
147
+ var aAttribution = lodash.get(element, ["metadata", "interviewee", "avatar-url"]);
2285
148
  return {
2286
149
  answer: aAnswer,
2287
150
  answerAttribution: aAttribution
@@ -2299,7 +162,7 @@ var QuestionAnswerBase = function QuestionAnswerBase(_ref) {
2299
162
  var _ref$opts = _ref.opts,
2300
163
  opts = _ref$opts === void 0 ? {} : _ref$opts;
2301
164
  _ref.render;
2302
- var restProps = _objectWithoutProperties(_ref, _excluded);
165
+ var restProps = _objectWithoutProperties__default["default"](_ref, _excluded);
2303
166
 
2304
167
  var configData = useStateValue() || {};
2305
168
  var textInvertColor = getTextColor(configData.theme);
@@ -2334,7 +197,7 @@ var QuestionAnswerBase = function QuestionAnswerBase(_ref) {
2334
197
  style: {
2335
198
  backgroundColor: iconColor
2336
199
  },
2337
- className: _getClassName("".concat(iconType, " ").concat(theme), _styleModuleImportMap)
200
+ className: _getClassName__default["default"]("".concat(iconType, " ").concat(theme), _styleModuleImportMap)
2338
201
  }, "Q"); // EMPTY SPAN FOR EXTRA SPACE
2339
202
 
2340
203
  var supportAnswerElement = isAuthorImageTemplate ? answerAttribution && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -2349,12 +212,12 @@ var QuestionAnswerBase = function QuestionAnswerBase(_ref) {
2349
212
  style: {
2350
213
  backgroundColor: iconColor
2351
214
  },
2352
- className: _getClassName("".concat(iconType, " ").concat(theme), _styleModuleImportMap)
215
+ className: _getClassName__default["default"]("".concat(iconType, " ").concat(theme), _styleModuleImportMap)
2353
216
  }, "A");
2354
- return /*#__PURE__*/React__default["default"].createElement("div", _extends({
217
+ return /*#__PURE__*/React__default["default"].createElement("div", _extends__default["default"]({
2355
218
  "data-test-id": "question-answer"
2356
219
  }, restProps, {
2357
- className: "arrow-component arr-custom-style arr--qa-element " + _getClassName(templateStyle, _styleModuleImportMap) + (" " + (restProps ? restProps.className || "" : ""))
220
+ className: "arrow-component arr-custom-style arr--qa-element " + _getClassName__default["default"](templateStyle, _styleModuleImportMap) + (" " + (restProps ? restProps.className || "" : ""))
2358
221
  }), type !== "answer" && /*#__PURE__*/React__default["default"].createElement("div", {
2359
222
  className: "question-answer-m_q-element__1ZA5d",
2360
223
  "data-test-id": "question"
@@ -2362,7 +225,7 @@ var QuestionAnswerBase = function QuestionAnswerBase(_ref) {
2362
225
  dangerouslySetInnerHTML: {
2363
226
  __html: questionData
2364
227
  },
2365
- className: _getClassName("content ".concat(textInvertColor), _styleModuleImportMap)
228
+ className: _getClassName__default["default"]("content ".concat(textInvertColor), _styleModuleImportMap)
2366
229
  })), type !== "question" && /*#__PURE__*/React__default["default"].createElement("div", {
2367
230
  className: "question-answer-m_a-element__BTxfl",
2368
231
  "data-test-id": "answer"
@@ -2370,7 +233,7 @@ var QuestionAnswerBase = function QuestionAnswerBase(_ref) {
2370
233
  dangerouslySetInnerHTML: {
2371
234
  __html: answerData
2372
235
  },
2373
- className: _getClassName("content ".concat(textInvertColor), _styleModuleImportMap)
236
+ className: _getClassName__default["default"]("content ".concat(textInvertColor), _styleModuleImportMap)
2374
237
  })));
2375
238
  };
2376
239