@mjhls/mjh-framework 1.0.1087 → 1.0.1089-webcastAddition-v1

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 (175) hide show
  1. package/dist/cjs/AD300x250.js +1 -1
  2. package/dist/cjs/AD300x250x600.js +1 -1
  3. package/dist/cjs/AD728x90.js +1 -1
  4. package/dist/cjs/ADFloatingFooter.js +1 -1
  5. package/dist/cjs/ADGutter.js +1 -1
  6. package/dist/cjs/{ADInfeed-08f71158.js → ADInfeed-25f53b70.js} +1 -1
  7. package/dist/cjs/ADSkyscraper.js +1 -1
  8. package/dist/cjs/ADSponsoredResources.js +1 -1
  9. package/dist/cjs/ADWebcast.js +1 -1
  10. package/dist/cjs/ADWelcome.js +1 -1
  11. package/dist/cjs/{ADlgInfeed-de2e7f2a.js → ADlgInfeed-5d21496c.js} +1 -1
  12. package/dist/cjs/AdSlot.js +7 -4
  13. package/dist/cjs/AdSlotsProvider.js +1 -1
  14. package/dist/cjs/AlgoliaSearch.js +198 -454
  15. package/dist/cjs/ArticleCarousel.js +1 -1
  16. package/dist/cjs/ArticleProgramLandingPage.js +4 -4
  17. package/dist/cjs/ArticleSeriesLandingPage.js +4 -4
  18. package/dist/cjs/ArticleSeriesListing.js +2 -2
  19. package/dist/cjs/AuthWrapper.js +629 -245
  20. package/dist/cjs/CEDeckSupabase.js +6 -2
  21. package/dist/cjs/CMEDeck.js +6 -2
  22. package/dist/cjs/Column3.js +1 -1
  23. package/dist/cjs/ConferenceArticleCard.js +1 -1
  24. package/dist/cjs/ContentCardPaginated.js +3 -3
  25. package/dist/cjs/DeckContent.js +3 -3
  26. package/dist/cjs/DeckQueue.js +2 -2
  27. package/dist/cjs/DeckQueuePaginated.js +2 -2
  28. package/dist/cjs/EventsDeck.js +3 -3
  29. package/dist/cjs/ExternalResources.js +5 -5
  30. package/dist/cjs/Feature.js +1 -1
  31. package/dist/cjs/ForbesHero.js +1 -1
  32. package/dist/cjs/GridContent.js +4 -4
  33. package/dist/cjs/GridContentPaginated.js +4 -4
  34. package/dist/cjs/GridHero.js +1 -1
  35. package/dist/cjs/HamMagazine.js +2 -2
  36. package/dist/cjs/HighlightenVideo.js +1 -1
  37. package/dist/cjs/HorizontalArticleListing.js +4 -4
  38. package/dist/cjs/HorizontalHero.js +1 -1
  39. package/dist/cjs/{ImageSlider-d65bc9c8.js → ImageSlider-eb866353.js} +114 -159
  40. package/dist/cjs/IssueContentDeck.js +1 -1
  41. package/dist/cjs/IssueLanding.js +6 -6
  42. package/dist/cjs/LeftNav.js +1 -1
  43. package/dist/cjs/MasterDeck.js +4 -4
  44. package/dist/cjs/MasterDeckPaginated.js +3 -3
  45. package/dist/cjs/MediaSeriesCard.js +4 -4
  46. package/dist/cjs/MediaSeriesLanding.js +9 -9
  47. package/dist/cjs/MediaSeriesLandingPaginated.js +9 -9
  48. package/dist/cjs/NavMagazine.js +2 -2
  49. package/dist/cjs/NavNative.js +1 -1
  50. package/dist/cjs/OncliveHero.js +1 -1
  51. package/dist/cjs/OncliveLargeHero.js +1 -1
  52. package/dist/cjs/PartnerDetailListing.js +8 -7
  53. package/dist/cjs/PartnerDetailListingPaginated.js +8 -7
  54. package/dist/cjs/PodcastsLanding.js +7 -7
  55. package/dist/cjs/PtceDeck.js +1 -1
  56. package/dist/cjs/PubSection.js +4 -4
  57. package/dist/cjs/QueueDeckExpanded.js +4 -4
  58. package/dist/cjs/QueueDeckExpandedPaginated.js +4 -4
  59. package/dist/cjs/RelatedContent.js +1 -1
  60. package/dist/cjs/SeriesListingDeck.js +2 -2
  61. package/dist/cjs/{SeriesSlider-a8b51591.js → SeriesSlider-086a8319.js} +1 -1
  62. package/dist/cjs/{SocialSearchComponent-9d272141.js → SocialSearchComponent-d7e5d3a6.js} +1 -1
  63. package/dist/cjs/TaxonomyDescription.js +4 -4
  64. package/dist/cjs/TemplateNormal.js +2 -2
  65. package/dist/cjs/{Tooltip-66c1a867.js → Tooltip-8011d690.js} +76 -131
  66. package/dist/cjs/Ustream.js +1 -1
  67. package/dist/cjs/VerticalHero.js +1 -1
  68. package/dist/cjs/VideoProgramLandingPage.js +4 -4
  69. package/dist/cjs/VideoSeriesCard.js +1 -1
  70. package/dist/cjs/VideoSeriesLandingPage.js +4 -4
  71. package/dist/cjs/VideoSeriesListing.js +2 -2
  72. package/dist/cjs/View.js +7 -5
  73. package/dist/cjs/YahooHero.js +1 -1
  74. package/dist/cjs/YoutubeGroup.js +1 -1
  75. package/dist/cjs/{brightcove-react-player-loader.es-35faab67.js → brightcove-react-player-loader.es-4c7825a1.js} +3 -3
  76. package/dist/cjs/defineProperty-19580e93.js +71 -0
  77. package/dist/cjs/getRelatedArticle.js +4 -22
  78. package/dist/cjs/getSerializers.js +4 -4
  79. package/dist/cjs/{index-9ec837cc.js → index-50be6759.js} +25 -9
  80. package/dist/cjs/index-96c331fd.js +1572 -0
  81. package/dist/cjs/{index-47330a83.js → index-b0e9a7b6.js} +15 -234
  82. package/dist/cjs/index.js +12 -11
  83. package/dist/cjs/{main-812888f1.js → main-ae8472f3.js} +1 -1
  84. package/dist/cjs/{moment-f730814d.js → moment-aca40de1.js} +80 -95
  85. package/dist/cjs/timeDifferenceCalc.js +1 -1
  86. package/dist/esm/AD300x250.js +1 -1
  87. package/dist/esm/AD300x250x600.js +1 -1
  88. package/dist/esm/AD728x90.js +1 -1
  89. package/dist/esm/ADFloatingFooter.js +1 -1
  90. package/dist/esm/ADGutter.js +1 -1
  91. package/dist/esm/{ADInfeed-157f7e32.js → ADInfeed-ca4bb13c.js} +1 -1
  92. package/dist/esm/ADSkyscraper.js +1 -1
  93. package/dist/esm/ADSponsoredResources.js +1 -1
  94. package/dist/esm/ADWebcast.js +1 -1
  95. package/dist/esm/ADWelcome.js +1 -1
  96. package/dist/esm/{ADlgInfeed-31c46dfe.js → ADlgInfeed-142ddf4d.js} +1 -1
  97. package/dist/esm/AdSlot.js +8 -5
  98. package/dist/esm/AdSlotsProvider.js +1 -1
  99. package/dist/esm/AlgoliaSearch.js +197 -453
  100. package/dist/esm/ArticleCarousel.js +1 -1
  101. package/dist/esm/ArticleProgramLandingPage.js +4 -4
  102. package/dist/esm/ArticleSeriesLandingPage.js +4 -4
  103. package/dist/esm/ArticleSeriesListing.js +2 -2
  104. package/dist/esm/AuthWrapper.js +627 -243
  105. package/dist/esm/CEDeckSupabase.js +6 -2
  106. package/dist/esm/CMEDeck.js +6 -2
  107. package/dist/esm/Column3.js +1 -1
  108. package/dist/esm/ConferenceArticleCard.js +1 -1
  109. package/dist/esm/ContentCardPaginated.js +3 -3
  110. package/dist/esm/DeckContent.js +3 -3
  111. package/dist/esm/DeckQueue.js +2 -2
  112. package/dist/esm/DeckQueuePaginated.js +2 -2
  113. package/dist/esm/EventsDeck.js +3 -3
  114. package/dist/esm/ExternalResources.js +5 -5
  115. package/dist/esm/Feature.js +1 -1
  116. package/dist/esm/ForbesHero.js +1 -1
  117. package/dist/esm/GridContent.js +4 -4
  118. package/dist/esm/GridContentPaginated.js +4 -4
  119. package/dist/esm/GridHero.js +1 -1
  120. package/dist/esm/HamMagazine.js +2 -2
  121. package/dist/esm/HighlightenVideo.js +1 -1
  122. package/dist/esm/HorizontalArticleListing.js +4 -4
  123. package/dist/esm/HorizontalHero.js +1 -1
  124. package/dist/esm/{ImageSlider-801685f8.js → ImageSlider-ea441f66.js} +115 -160
  125. package/dist/esm/IssueContentDeck.js +1 -1
  126. package/dist/esm/IssueLanding.js +6 -6
  127. package/dist/esm/LeftNav.js +1 -1
  128. package/dist/esm/MasterDeck.js +4 -4
  129. package/dist/esm/MasterDeckPaginated.js +3 -3
  130. package/dist/esm/MediaSeriesCard.js +4 -4
  131. package/dist/esm/MediaSeriesLanding.js +9 -9
  132. package/dist/esm/MediaSeriesLandingPaginated.js +9 -9
  133. package/dist/esm/NavMagazine.js +2 -2
  134. package/dist/esm/NavNative.js +1 -1
  135. package/dist/esm/OncliveHero.js +1 -1
  136. package/dist/esm/OncliveLargeHero.js +1 -1
  137. package/dist/esm/Pagination-9fe9f61d.js +1 -1
  138. package/dist/esm/PartnerDetailListing.js +8 -7
  139. package/dist/esm/PartnerDetailListingPaginated.js +8 -7
  140. package/dist/esm/PodcastsLanding.js +7 -7
  141. package/dist/esm/PtceDeck.js +1 -1
  142. package/dist/esm/PubSection.js +4 -4
  143. package/dist/esm/QueueDeckExpanded.js +4 -4
  144. package/dist/esm/QueueDeckExpandedPaginated.js +4 -4
  145. package/dist/esm/RelatedContent.js +1 -1
  146. package/dist/esm/SeriesListingDeck.js +2 -2
  147. package/dist/esm/{SeriesSlider-5757414b.js → SeriesSlider-acbdf4c9.js} +1 -1
  148. package/dist/esm/{SocialSearchComponent-98bfc990.js → SocialSearchComponent-9e65c8d6.js} +1 -1
  149. package/dist/esm/TaxonomyDescription.js +4 -4
  150. package/dist/esm/TemplateNormal.js +2 -2
  151. package/dist/esm/{Tooltip-0b3b4558.js → Tooltip-2cdd0895.js} +235 -290
  152. package/dist/esm/Ustream.js +1 -1
  153. package/dist/esm/VerticalHero.js +1 -1
  154. package/dist/esm/VideoProgramLandingPage.js +4 -4
  155. package/dist/esm/VideoSeriesCard.js +1 -1
  156. package/dist/esm/VideoSeriesLandingPage.js +4 -4
  157. package/dist/esm/VideoSeriesListing.js +2 -2
  158. package/dist/esm/View.js +7 -5
  159. package/dist/esm/YahooHero.js +1 -1
  160. package/dist/esm/YoutubeGroup.js +1 -1
  161. package/dist/esm/{brightcove-react-player-loader.es-a2422c4b.js → brightcove-react-player-loader.es-57a70a56.js} +3 -3
  162. package/dist/esm/defineProperty-e8022d1e.js +66 -0
  163. package/dist/esm/getRelatedArticle.js +5 -23
  164. package/dist/esm/getSerializers.js +4 -4
  165. package/dist/esm/index-30a6257d.js +1570 -0
  166. package/dist/esm/{index-0ce54f8a.js → index-98ca9cec.js} +25 -10
  167. package/dist/esm/{index-b005ba98.js → index-cf4b8124.js} +15 -234
  168. package/dist/esm/index.js +12 -11
  169. package/dist/esm/{main-dde1592e.js → main-754d4992.js} +1 -1
  170. package/dist/esm/{moment-48faeb9c.js → moment-bc12cb97.js} +80 -95
  171. package/dist/esm/timeDifferenceCalc.js +1 -1
  172. package/dist/esm/visibility-sensor-72fd8f8b.js +1 -1
  173. package/package.json +1 -1
  174. package/dist/cjs/index-4d21663c.js +0 -1573
  175. package/dist/esm/index-887c1f5e.js +0 -1571
@@ -2,6 +2,7 @@
2
2
 
3
3
  var slicedToArray$1 = require('./slicedToArray-067dd3bc.js');
4
4
  var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
5
+ var defineProperty = require('./defineProperty-19580e93.js');
5
6
  var React = require('react');
6
7
  var reactBootstrap = require('react-bootstrap');
7
8
  var styleInject_es = require('./style-inject.es-dcee06b6.js');
@@ -18,6 +19,7 @@ function _interopRequireDefault(obj) {
18
19
  "default": obj
19
20
  };
20
21
  }
22
+
21
23
  module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
22
24
  });
23
25
 
@@ -33,122 +35,277 @@ function _typeof(obj) {
33
35
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
34
36
  }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
35
37
  }
38
+
36
39
  module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
37
40
  });
38
41
 
39
42
  _commonjsHelpers.unwrapExports(_typeof_1);
40
43
 
41
- var regeneratorRuntime$1 = _commonjsHelpers.createCommonjsModule(function (module) {
42
- var _typeof = _typeof_1["default"];
43
- function _regeneratorRuntime() {
44
- module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
45
- return exports;
46
- }, module.exports.__esModule = true, module.exports["default"] = module.exports;
47
- var exports = {},
48
- Op = Object.prototype,
49
- hasOwn = Op.hasOwnProperty,
50
- defineProperty = Object.defineProperty || function (obj, key, desc) {
51
- obj[key] = desc.value;
52
- },
53
- $Symbol = "function" == typeof Symbol ? Symbol : {},
54
- iteratorSymbol = $Symbol.iterator || "@@iterator",
55
- asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
56
- toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
44
+ var runtime_1 = _commonjsHelpers.createCommonjsModule(function (module) {
45
+ /**
46
+ * Copyright (c) 2014-present, Facebook, Inc.
47
+ *
48
+ * This source code is licensed under the MIT license found in the
49
+ * LICENSE file in the root directory of this source tree.
50
+ */
51
+
52
+ var runtime = (function (exports) {
53
+
54
+ var Op = Object.prototype;
55
+ var hasOwn = Op.hasOwnProperty;
56
+ var undefined$1; // More compressible than void 0.
57
+ var $Symbol = typeof Symbol === "function" ? Symbol : {};
58
+ var iteratorSymbol = $Symbol.iterator || "@@iterator";
59
+ var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
60
+ var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
61
+
57
62
  function define(obj, key, value) {
58
- return Object.defineProperty(obj, key, {
63
+ Object.defineProperty(obj, key, {
59
64
  value: value,
60
- enumerable: !0,
61
- configurable: !0,
62
- writable: !0
63
- }), obj[key];
65
+ enumerable: true,
66
+ configurable: true,
67
+ writable: true
68
+ });
69
+ return obj[key];
64
70
  }
65
71
  try {
72
+ // IE 8 has a broken Object.defineProperty that only works on DOM objects.
66
73
  define({}, "");
67
74
  } catch (err) {
68
- define = function define(obj, key, value) {
75
+ define = function(obj, key, value) {
69
76
  return obj[key] = value;
70
77
  };
71
78
  }
79
+
72
80
  function wrap(innerFn, outerFn, self, tryLocsList) {
73
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
74
- generator = Object.create(protoGenerator.prototype),
75
- context = new Context(tryLocsList || []);
76
- return defineProperty(generator, "_invoke", {
77
- value: makeInvokeMethod(innerFn, self, context)
78
- }), generator;
81
+ // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
82
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
83
+ var generator = Object.create(protoGenerator.prototype);
84
+ var context = new Context(tryLocsList || []);
85
+
86
+ // The ._invoke method unifies the implementations of the .next,
87
+ // .throw, and .return methods.
88
+ generator._invoke = makeInvokeMethod(innerFn, self, context);
89
+
90
+ return generator;
79
91
  }
92
+ exports.wrap = wrap;
93
+
94
+ // Try/catch helper to minimize deoptimizations. Returns a completion
95
+ // record like context.tryEntries[i].completion. This interface could
96
+ // have been (and was previously) designed to take a closure to be
97
+ // invoked without arguments, but in all the cases we care about we
98
+ // already have an existing method we want to call, so there's no need
99
+ // to create a new function object. We can even get away with assuming
100
+ // the method takes exactly one argument, since that happens to be true
101
+ // in every case, so we don't have to touch the arguments object. The
102
+ // only additional allocation required is the completion record, which
103
+ // has a stable shape and so hopefully should be cheap to allocate.
80
104
  function tryCatch(fn, obj, arg) {
81
105
  try {
82
- return {
83
- type: "normal",
84
- arg: fn.call(obj, arg)
85
- };
106
+ return { type: "normal", arg: fn.call(obj, arg) };
86
107
  } catch (err) {
87
- return {
88
- type: "throw",
89
- arg: err
90
- };
108
+ return { type: "throw", arg: err };
91
109
  }
92
110
  }
93
- exports.wrap = wrap;
111
+
112
+ var GenStateSuspendedStart = "suspendedStart";
113
+ var GenStateSuspendedYield = "suspendedYield";
114
+ var GenStateExecuting = "executing";
115
+ var GenStateCompleted = "completed";
116
+
117
+ // Returning this object from the innerFn has the same effect as
118
+ // breaking out of the dispatch switch statement.
94
119
  var ContinueSentinel = {};
120
+
121
+ // Dummy constructor functions that we use as the .constructor and
122
+ // .constructor.prototype properties for functions that return Generator
123
+ // objects. For full spec compliance, you may wish to configure your
124
+ // minifier not to mangle the names of these two functions.
95
125
  function Generator() {}
96
126
  function GeneratorFunction() {}
97
127
  function GeneratorFunctionPrototype() {}
128
+
129
+ // This is a polyfill for %IteratorPrototype% for environments that
130
+ // don't natively support it.
98
131
  var IteratorPrototype = {};
99
132
  define(IteratorPrototype, iteratorSymbol, function () {
100
133
  return this;
101
134
  });
102
- var getProto = Object.getPrototypeOf,
103
- NativeIteratorPrototype = getProto && getProto(getProto(values([])));
104
- NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
105
- var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
135
+
136
+ var getProto = Object.getPrototypeOf;
137
+ var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
138
+ if (NativeIteratorPrototype &&
139
+ NativeIteratorPrototype !== Op &&
140
+ hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
141
+ // This environment has a native %IteratorPrototype%; use it instead
142
+ // of the polyfill.
143
+ IteratorPrototype = NativeIteratorPrototype;
144
+ }
145
+
146
+ var Gp = GeneratorFunctionPrototype.prototype =
147
+ Generator.prototype = Object.create(IteratorPrototype);
148
+ GeneratorFunction.prototype = GeneratorFunctionPrototype;
149
+ define(Gp, "constructor", GeneratorFunctionPrototype);
150
+ define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
151
+ GeneratorFunction.displayName = define(
152
+ GeneratorFunctionPrototype,
153
+ toStringTagSymbol,
154
+ "GeneratorFunction"
155
+ );
156
+
157
+ // Helper for defining the .next, .throw, and .return methods of the
158
+ // Iterator interface in terms of a single ._invoke method.
106
159
  function defineIteratorMethods(prototype) {
107
- ["next", "throw", "return"].forEach(function (method) {
108
- define(prototype, method, function (arg) {
160
+ ["next", "throw", "return"].forEach(function(method) {
161
+ define(prototype, method, function(arg) {
109
162
  return this._invoke(method, arg);
110
163
  });
111
164
  });
112
165
  }
166
+
167
+ exports.isGeneratorFunction = function(genFun) {
168
+ var ctor = typeof genFun === "function" && genFun.constructor;
169
+ return ctor
170
+ ? ctor === GeneratorFunction ||
171
+ // For the native GeneratorFunction constructor, the best we can
172
+ // do is to check its .name property.
173
+ (ctor.displayName || ctor.name) === "GeneratorFunction"
174
+ : false;
175
+ };
176
+
177
+ exports.mark = function(genFun) {
178
+ if (Object.setPrototypeOf) {
179
+ Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
180
+ } else {
181
+ genFun.__proto__ = GeneratorFunctionPrototype;
182
+ define(genFun, toStringTagSymbol, "GeneratorFunction");
183
+ }
184
+ genFun.prototype = Object.create(Gp);
185
+ return genFun;
186
+ };
187
+
188
+ // Within the body of any async function, `await x` is transformed to
189
+ // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
190
+ // `hasOwn.call(value, "__await")` to determine if the yielded value is
191
+ // meant to be awaited.
192
+ exports.awrap = function(arg) {
193
+ return { __await: arg };
194
+ };
195
+
113
196
  function AsyncIterator(generator, PromiseImpl) {
114
197
  function invoke(method, arg, resolve, reject) {
115
198
  var record = tryCatch(generator[method], generator, arg);
116
- if ("throw" !== record.type) {
117
- var result = record.arg,
118
- value = result.value;
119
- return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
120
- invoke("next", value, resolve, reject);
121
- }, function (err) {
122
- invoke("throw", err, resolve, reject);
123
- }) : PromiseImpl.resolve(value).then(function (unwrapped) {
124
- result.value = unwrapped, resolve(result);
125
- }, function (error) {
199
+ if (record.type === "throw") {
200
+ reject(record.arg);
201
+ } else {
202
+ var result = record.arg;
203
+ var value = result.value;
204
+ if (value &&
205
+ typeof value === "object" &&
206
+ hasOwn.call(value, "__await")) {
207
+ return PromiseImpl.resolve(value.__await).then(function(value) {
208
+ invoke("next", value, resolve, reject);
209
+ }, function(err) {
210
+ invoke("throw", err, resolve, reject);
211
+ });
212
+ }
213
+
214
+ return PromiseImpl.resolve(value).then(function(unwrapped) {
215
+ // When a yielded Promise is resolved, its final value becomes
216
+ // the .value of the Promise<{value,done}> result for the
217
+ // current iteration.
218
+ result.value = unwrapped;
219
+ resolve(result);
220
+ }, function(error) {
221
+ // If a rejected Promise was yielded, throw the rejection back
222
+ // into the async generator function so it can be handled there.
126
223
  return invoke("throw", error, resolve, reject);
127
224
  });
128
225
  }
129
- reject(record.arg);
130
226
  }
227
+
131
228
  var previousPromise;
132
- defineProperty(this, "_invoke", {
133
- value: function value(method, arg) {
134
- function callInvokeWithMethodAndArg() {
135
- return new PromiseImpl(function (resolve, reject) {
136
- invoke(method, arg, resolve, reject);
137
- });
138
- }
139
- return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
229
+
230
+ function enqueue(method, arg) {
231
+ function callInvokeWithMethodAndArg() {
232
+ return new PromiseImpl(function(resolve, reject) {
233
+ invoke(method, arg, resolve, reject);
234
+ });
140
235
  }
141
- });
236
+
237
+ return previousPromise =
238
+ // If enqueue has been called before, then we want to wait until
239
+ // all previous Promises have been resolved before calling invoke,
240
+ // so that results are always delivered in the correct order. If
241
+ // enqueue has not been called before, then it is important to
242
+ // call invoke immediately, without waiting on a callback to fire,
243
+ // so that the async generator function has the opportunity to do
244
+ // any necessary setup in a predictable way. This predictability
245
+ // is why the Promise constructor synchronously invokes its
246
+ // executor callback, and why async functions synchronously
247
+ // execute code before the first await. Since we implement simple
248
+ // async functions in terms of async generators, it is especially
249
+ // important to get this right, even though it requires care.
250
+ previousPromise ? previousPromise.then(
251
+ callInvokeWithMethodAndArg,
252
+ // Avoid propagating failures to Promises returned by later
253
+ // invocations of the iterator.
254
+ callInvokeWithMethodAndArg
255
+ ) : callInvokeWithMethodAndArg();
256
+ }
257
+
258
+ // Define the unified helper method that is used to implement .next,
259
+ // .throw, and .return (see defineIteratorMethods).
260
+ this._invoke = enqueue;
142
261
  }
262
+
263
+ defineIteratorMethods(AsyncIterator.prototype);
264
+ define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
265
+ return this;
266
+ });
267
+ exports.AsyncIterator = AsyncIterator;
268
+
269
+ // Note that simple async functions are implemented on top of
270
+ // AsyncIterator objects; they just return a Promise for the value of
271
+ // the final result produced by the iterator.
272
+ exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
273
+ if (PromiseImpl === void 0) PromiseImpl = Promise;
274
+
275
+ var iter = new AsyncIterator(
276
+ wrap(innerFn, outerFn, self, tryLocsList),
277
+ PromiseImpl
278
+ );
279
+
280
+ return exports.isGeneratorFunction(outerFn)
281
+ ? iter // If outerFn is a generator, return the full iterator.
282
+ : iter.next().then(function(result) {
283
+ return result.done ? result.value : iter.next();
284
+ });
285
+ };
286
+
143
287
  function makeInvokeMethod(innerFn, self, context) {
144
- var state = "suspendedStart";
145
- return function (method, arg) {
146
- if ("executing" === state) throw new Error("Generator is already running");
147
- if ("completed" === state) {
148
- if ("throw" === method) throw arg;
288
+ var state = GenStateSuspendedStart;
289
+
290
+ return function invoke(method, arg) {
291
+ if (state === GenStateExecuting) {
292
+ throw new Error("Generator is already running");
293
+ }
294
+
295
+ if (state === GenStateCompleted) {
296
+ if (method === "throw") {
297
+ throw arg;
298
+ }
299
+
300
+ // Be forgiving, per 25.3.3.3.3 of the spec:
301
+ // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
149
302
  return doneResult();
150
303
  }
151
- for (context.method = method, context.arg = arg;;) {
304
+
305
+ context.method = method;
306
+ context.arg = arg;
307
+
308
+ while (true) {
152
309
  var delegate = context.delegate;
153
310
  if (delegate) {
154
311
  var delegateResult = maybeInvokeDelegate(delegate, context);
@@ -157,281 +314,496 @@ function _regeneratorRuntime() {
157
314
  return delegateResult;
158
315
  }
159
316
  }
160
- if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
161
- if ("suspendedStart" === state) throw state = "completed", context.arg;
317
+
318
+ if (context.method === "next") {
319
+ // Setting context._sent for legacy support of Babel's
320
+ // function.sent implementation.
321
+ context.sent = context._sent = context.arg;
322
+
323
+ } else if (context.method === "throw") {
324
+ if (state === GenStateSuspendedStart) {
325
+ state = GenStateCompleted;
326
+ throw context.arg;
327
+ }
328
+
162
329
  context.dispatchException(context.arg);
163
- } else "return" === context.method && context.abrupt("return", context.arg);
164
- state = "executing";
330
+
331
+ } else if (context.method === "return") {
332
+ context.abrupt("return", context.arg);
333
+ }
334
+
335
+ state = GenStateExecuting;
336
+
165
337
  var record = tryCatch(innerFn, self, context);
166
- if ("normal" === record.type) {
167
- if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
338
+ if (record.type === "normal") {
339
+ // If an exception is thrown from innerFn, we leave state ===
340
+ // GenStateExecuting and loop back for another invocation.
341
+ state = context.done
342
+ ? GenStateCompleted
343
+ : GenStateSuspendedYield;
344
+
345
+ if (record.arg === ContinueSentinel) {
346
+ continue;
347
+ }
348
+
168
349
  return {
169
350
  value: record.arg,
170
351
  done: context.done
171
352
  };
353
+
354
+ } else if (record.type === "throw") {
355
+ state = GenStateCompleted;
356
+ // Dispatch the exception by looping back around to the
357
+ // context.dispatchException(context.arg) call above.
358
+ context.method = "throw";
359
+ context.arg = record.arg;
172
360
  }
173
- "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
174
361
  }
175
362
  };
176
363
  }
364
+
365
+ // Call delegate.iterator[context.method](context.arg) and handle the
366
+ // result, either by returning a { value, done } result from the
367
+ // delegate iterator, or by modifying context.method and context.arg,
368
+ // setting context.delegate to null, and returning the ContinueSentinel.
177
369
  function maybeInvokeDelegate(delegate, context) {
178
370
  var method = delegate.iterator[context.method];
179
- if (undefined === method) {
180
- if (context.delegate = null, "throw" === context.method) {
181
- if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
182
- context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
371
+ if (method === undefined$1) {
372
+ // A .throw or .return when the delegate iterator has no .throw
373
+ // method always terminates the yield* loop.
374
+ context.delegate = null;
375
+
376
+ if (context.method === "throw") {
377
+ // Note: ["return"] must be used for ES3 parsing compatibility.
378
+ if (delegate.iterator["return"]) {
379
+ // If the delegate iterator has a return method, give it a
380
+ // chance to clean up.
381
+ context.method = "return";
382
+ context.arg = undefined$1;
383
+ maybeInvokeDelegate(delegate, context);
384
+
385
+ if (context.method === "throw") {
386
+ // If maybeInvokeDelegate(context) changed context.method from
387
+ // "return" to "throw", let that override the TypeError below.
388
+ return ContinueSentinel;
389
+ }
390
+ }
391
+
392
+ context.method = "throw";
393
+ context.arg = new TypeError(
394
+ "The iterator does not provide a 'throw' method");
183
395
  }
396
+
184
397
  return ContinueSentinel;
185
398
  }
399
+
186
400
  var record = tryCatch(method, delegate.iterator, context.arg);
187
- if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
401
+
402
+ if (record.type === "throw") {
403
+ context.method = "throw";
404
+ context.arg = record.arg;
405
+ context.delegate = null;
406
+ return ContinueSentinel;
407
+ }
408
+
188
409
  var info = record.arg;
189
- return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
410
+
411
+ if (! info) {
412
+ context.method = "throw";
413
+ context.arg = new TypeError("iterator result is not an object");
414
+ context.delegate = null;
415
+ return ContinueSentinel;
416
+ }
417
+
418
+ if (info.done) {
419
+ // Assign the result of the finished delegate to the temporary
420
+ // variable specified by delegate.resultName (see delegateYield).
421
+ context[delegate.resultName] = info.value;
422
+
423
+ // Resume execution at the desired location (see delegateYield).
424
+ context.next = delegate.nextLoc;
425
+
426
+ // If context.method was "throw" but the delegate handled the
427
+ // exception, let the outer generator proceed normally. If
428
+ // context.method was "next", forget context.arg since it has been
429
+ // "consumed" by the delegate iterator. If context.method was
430
+ // "return", allow the original .return call to continue in the
431
+ // outer generator.
432
+ if (context.method !== "return") {
433
+ context.method = "next";
434
+ context.arg = undefined$1;
435
+ }
436
+
437
+ } else {
438
+ // Re-yield the result returned by the delegate method.
439
+ return info;
440
+ }
441
+
442
+ // The delegate iterator is finished, so forget it and continue with
443
+ // the outer generator.
444
+ context.delegate = null;
445
+ return ContinueSentinel;
190
446
  }
447
+
448
+ // Define Generator.prototype.{next,throw,return} in terms of the
449
+ // unified ._invoke helper method.
450
+ defineIteratorMethods(Gp);
451
+
452
+ define(Gp, toStringTagSymbol, "Generator");
453
+
454
+ // A Generator should always return itself as the iterator object when the
455
+ // @@iterator function is called on it. Some browsers' implementations of the
456
+ // iterator prototype chain incorrectly implement this, causing the Generator
457
+ // object to not be returned from this call. This ensures that doesn't happen.
458
+ // See https://github.com/facebook/regenerator/issues/274 for more details.
459
+ define(Gp, iteratorSymbol, function() {
460
+ return this;
461
+ });
462
+
463
+ define(Gp, "toString", function() {
464
+ return "[object Generator]";
465
+ });
466
+
191
467
  function pushTryEntry(locs) {
192
- var entry = {
193
- tryLoc: locs[0]
194
- };
195
- 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
468
+ var entry = { tryLoc: locs[0] };
469
+
470
+ if (1 in locs) {
471
+ entry.catchLoc = locs[1];
472
+ }
473
+
474
+ if (2 in locs) {
475
+ entry.finallyLoc = locs[2];
476
+ entry.afterLoc = locs[3];
477
+ }
478
+
479
+ this.tryEntries.push(entry);
196
480
  }
481
+
197
482
  function resetTryEntry(entry) {
198
483
  var record = entry.completion || {};
199
- record.type = "normal", delete record.arg, entry.completion = record;
484
+ record.type = "normal";
485
+ delete record.arg;
486
+ entry.completion = record;
200
487
  }
488
+
201
489
  function Context(tryLocsList) {
202
- this.tryEntries = [{
203
- tryLoc: "root"
204
- }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
490
+ // The root entry object (effectively a try statement without a catch
491
+ // or a finally block) gives us a place to store values thrown from
492
+ // locations where there is no enclosing try statement.
493
+ this.tryEntries = [{ tryLoc: "root" }];
494
+ tryLocsList.forEach(pushTryEntry, this);
495
+ this.reset(true);
205
496
  }
497
+
498
+ exports.keys = function(object) {
499
+ var keys = [];
500
+ for (var key in object) {
501
+ keys.push(key);
502
+ }
503
+ keys.reverse();
504
+
505
+ // Rather than returning an object with a next method, we keep
506
+ // things simple and return the next function itself.
507
+ return function next() {
508
+ while (keys.length) {
509
+ var key = keys.pop();
510
+ if (key in object) {
511
+ next.value = key;
512
+ next.done = false;
513
+ return next;
514
+ }
515
+ }
516
+
517
+ // To avoid creating an additional object, we just hang the .value
518
+ // and .done properties off the next function object itself. This
519
+ // also ensures that the minifier will not anonymize the function.
520
+ next.done = true;
521
+ return next;
522
+ };
523
+ };
524
+
206
525
  function values(iterable) {
207
526
  if (iterable) {
208
527
  var iteratorMethod = iterable[iteratorSymbol];
209
- if (iteratorMethod) return iteratorMethod.call(iterable);
210
- if ("function" == typeof iterable.next) return iterable;
528
+ if (iteratorMethod) {
529
+ return iteratorMethod.call(iterable);
530
+ }
531
+
532
+ if (typeof iterable.next === "function") {
533
+ return iterable;
534
+ }
535
+
211
536
  if (!isNaN(iterable.length)) {
212
- var i = -1,
213
- next = function next() {
214
- for (; ++i < iterable.length;) {
215
- if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
537
+ var i = -1, next = function next() {
538
+ while (++i < iterable.length) {
539
+ if (hasOwn.call(iterable, i)) {
540
+ next.value = iterable[i];
541
+ next.done = false;
542
+ return next;
216
543
  }
217
- return next.value = undefined, next.done = !0, next;
218
- };
544
+ }
545
+
546
+ next.value = undefined$1;
547
+ next.done = true;
548
+
549
+ return next;
550
+ };
551
+
219
552
  return next.next = next;
220
553
  }
221
554
  }
222
- return {
223
- next: doneResult
224
- };
555
+
556
+ // Return an iterator with no values.
557
+ return { next: doneResult };
225
558
  }
559
+ exports.values = values;
560
+
226
561
  function doneResult() {
227
- return {
228
- value: undefined,
229
- done: !0
230
- };
562
+ return { value: undefined$1, done: true };
231
563
  }
232
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
233
- value: GeneratorFunctionPrototype,
234
- configurable: !0
235
- }), defineProperty(GeneratorFunctionPrototype, "constructor", {
236
- value: GeneratorFunction,
237
- configurable: !0
238
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
239
- var ctor = "function" == typeof genFun && genFun.constructor;
240
- return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
241
- }, exports.mark = function (genFun) {
242
- return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
243
- }, exports.awrap = function (arg) {
244
- return {
245
- __await: arg
246
- };
247
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
248
- return this;
249
- }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
250
- void 0 === PromiseImpl && (PromiseImpl = Promise);
251
- var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
252
- return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
253
- return result.done ? result.value : iter.next();
254
- });
255
- }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
256
- return this;
257
- }), define(Gp, "toString", function () {
258
- return "[object Generator]";
259
- }), exports.keys = function (val) {
260
- var object = Object(val),
261
- keys = [];
262
- for (var key in object) {
263
- keys.push(key);
264
- }
265
- return keys.reverse(), function next() {
266
- for (; keys.length;) {
267
- var key = keys.pop();
268
- if (key in object) return next.value = key, next.done = !1, next;
269
- }
270
- return next.done = !0, next;
271
- };
272
- }, exports.values = values, Context.prototype = {
564
+
565
+ Context.prototype = {
273
566
  constructor: Context,
274
- reset: function reset(skipTempReset) {
275
- if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {
276
- "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
567
+
568
+ reset: function(skipTempReset) {
569
+ this.prev = 0;
570
+ this.next = 0;
571
+ // Resetting context._sent for legacy support of Babel's
572
+ // function.sent implementation.
573
+ this.sent = this._sent = undefined$1;
574
+ this.done = false;
575
+ this.delegate = null;
576
+
577
+ this.method = "next";
578
+ this.arg = undefined$1;
579
+
580
+ this.tryEntries.forEach(resetTryEntry);
581
+
582
+ if (!skipTempReset) {
583
+ for (var name in this) {
584
+ // Not sure about the optimal order of these conditions:
585
+ if (name.charAt(0) === "t" &&
586
+ hasOwn.call(this, name) &&
587
+ !isNaN(+name.slice(1))) {
588
+ this[name] = undefined$1;
589
+ }
590
+ }
277
591
  }
278
592
  },
279
- stop: function stop() {
280
- this.done = !0;
281
- var rootRecord = this.tryEntries[0].completion;
282
- if ("throw" === rootRecord.type) throw rootRecord.arg;
593
+
594
+ stop: function() {
595
+ this.done = true;
596
+
597
+ var rootEntry = this.tryEntries[0];
598
+ var rootRecord = rootEntry.completion;
599
+ if (rootRecord.type === "throw") {
600
+ throw rootRecord.arg;
601
+ }
602
+
283
603
  return this.rval;
284
604
  },
285
- dispatchException: function dispatchException(exception) {
286
- if (this.done) throw exception;
605
+
606
+ dispatchException: function(exception) {
607
+ if (this.done) {
608
+ throw exception;
609
+ }
610
+
287
611
  var context = this;
288
612
  function handle(loc, caught) {
289
- return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
613
+ record.type = "throw";
614
+ record.arg = exception;
615
+ context.next = loc;
616
+
617
+ if (caught) {
618
+ // If the dispatched exception was caught by a catch block,
619
+ // then let that catch block handle the exception normally.
620
+ context.method = "next";
621
+ context.arg = undefined$1;
622
+ }
623
+
624
+ return !! caught;
290
625
  }
626
+
291
627
  for (var i = this.tryEntries.length - 1; i >= 0; --i) {
292
- var entry = this.tryEntries[i],
293
- record = entry.completion;
294
- if ("root" === entry.tryLoc) return handle("end");
628
+ var entry = this.tryEntries[i];
629
+ var record = entry.completion;
630
+
631
+ if (entry.tryLoc === "root") {
632
+ // Exception thrown outside of any try block that could handle
633
+ // it, so set the completion value of the entire function to
634
+ // throw the exception.
635
+ return handle("end");
636
+ }
637
+
295
638
  if (entry.tryLoc <= this.prev) {
296
- var hasCatch = hasOwn.call(entry, "catchLoc"),
297
- hasFinally = hasOwn.call(entry, "finallyLoc");
639
+ var hasCatch = hasOwn.call(entry, "catchLoc");
640
+ var hasFinally = hasOwn.call(entry, "finallyLoc");
641
+
298
642
  if (hasCatch && hasFinally) {
299
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
300
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
643
+ if (this.prev < entry.catchLoc) {
644
+ return handle(entry.catchLoc, true);
645
+ } else if (this.prev < entry.finallyLoc) {
646
+ return handle(entry.finallyLoc);
647
+ }
648
+
301
649
  } else if (hasCatch) {
302
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
650
+ if (this.prev < entry.catchLoc) {
651
+ return handle(entry.catchLoc, true);
652
+ }
653
+
654
+ } else if (hasFinally) {
655
+ if (this.prev < entry.finallyLoc) {
656
+ return handle(entry.finallyLoc);
657
+ }
658
+
303
659
  } else {
304
- if (!hasFinally) throw new Error("try statement without catch or finally");
305
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
660
+ throw new Error("try statement without catch or finally");
306
661
  }
307
662
  }
308
663
  }
309
664
  },
310
- abrupt: function abrupt(type, arg) {
665
+
666
+ abrupt: function(type, arg) {
311
667
  for (var i = this.tryEntries.length - 1; i >= 0; --i) {
312
668
  var entry = this.tryEntries[i];
313
- if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
669
+ if (entry.tryLoc <= this.prev &&
670
+ hasOwn.call(entry, "finallyLoc") &&
671
+ this.prev < entry.finallyLoc) {
314
672
  var finallyEntry = entry;
315
673
  break;
316
674
  }
317
675
  }
318
- finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
676
+
677
+ if (finallyEntry &&
678
+ (type === "break" ||
679
+ type === "continue") &&
680
+ finallyEntry.tryLoc <= arg &&
681
+ arg <= finallyEntry.finallyLoc) {
682
+ // Ignore the finally entry if control is not jumping to a
683
+ // location outside the try/catch block.
684
+ finallyEntry = null;
685
+ }
686
+
319
687
  var record = finallyEntry ? finallyEntry.completion : {};
320
- return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
688
+ record.type = type;
689
+ record.arg = arg;
690
+
691
+ if (finallyEntry) {
692
+ this.method = "next";
693
+ this.next = finallyEntry.finallyLoc;
694
+ return ContinueSentinel;
695
+ }
696
+
697
+ return this.complete(record);
321
698
  },
322
- complete: function complete(record, afterLoc) {
323
- if ("throw" === record.type) throw record.arg;
324
- return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
699
+
700
+ complete: function(record, afterLoc) {
701
+ if (record.type === "throw") {
702
+ throw record.arg;
703
+ }
704
+
705
+ if (record.type === "break" ||
706
+ record.type === "continue") {
707
+ this.next = record.arg;
708
+ } else if (record.type === "return") {
709
+ this.rval = this.arg = record.arg;
710
+ this.method = "return";
711
+ this.next = "end";
712
+ } else if (record.type === "normal" && afterLoc) {
713
+ this.next = afterLoc;
714
+ }
715
+
716
+ return ContinueSentinel;
325
717
  },
326
- finish: function finish(finallyLoc) {
718
+
719
+ finish: function(finallyLoc) {
327
720
  for (var i = this.tryEntries.length - 1; i >= 0; --i) {
328
721
  var entry = this.tryEntries[i];
329
- if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
722
+ if (entry.finallyLoc === finallyLoc) {
723
+ this.complete(entry.completion, entry.afterLoc);
724
+ resetTryEntry(entry);
725
+ return ContinueSentinel;
726
+ }
330
727
  }
331
728
  },
332
- "catch": function _catch(tryLoc) {
729
+
730
+ "catch": function(tryLoc) {
333
731
  for (var i = this.tryEntries.length - 1; i >= 0; --i) {
334
732
  var entry = this.tryEntries[i];
335
733
  if (entry.tryLoc === tryLoc) {
336
734
  var record = entry.completion;
337
- if ("throw" === record.type) {
735
+ if (record.type === "throw") {
338
736
  var thrown = record.arg;
339
737
  resetTryEntry(entry);
340
738
  }
341
739
  return thrown;
342
740
  }
343
741
  }
742
+
743
+ // The context.catch method must only be called with a location
744
+ // argument that corresponds to a known catch block.
344
745
  throw new Error("illegal catch attempt");
345
746
  },
346
- delegateYield: function delegateYield(iterable, resultName, nextLoc) {
347
- return this.delegate = {
747
+
748
+ delegateYield: function(iterable, resultName, nextLoc) {
749
+ this.delegate = {
348
750
  iterator: values(iterable),
349
751
  resultName: resultName,
350
752
  nextLoc: nextLoc
351
- }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
352
- }
353
- }, exports;
354
- }
355
- module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
356
- });
753
+ };
754
+
755
+ if (this.method === "next") {
756
+ // Deliberately forget the last sent value so that we don't
757
+ // accidentally pass it on to the delegate.
758
+ this.arg = undefined$1;
759
+ }
357
760
 
358
- _commonjsHelpers.unwrapExports(regeneratorRuntime$1);
761
+ return ContinueSentinel;
762
+ }
763
+ };
359
764
 
360
- // TODO(Babel 8): Remove this file.
765
+ // Regardless of whether this script is executing as a CommonJS module
766
+ // or not, return the runtime object so that we can declare the variable
767
+ // regeneratorRuntime in the outer scope, which allows this module to be
768
+ // injected easily by `bin/regenerator --include-runtime script.js`.
769
+ return exports;
361
770
 
362
- var runtime = regeneratorRuntime$1();
363
- var regenerator = runtime;
771
+ }(
772
+ // If this script is executing as a CommonJS module, use module.exports
773
+ // as the regeneratorRuntime namespace. Otherwise create a new empty
774
+ // object. Either way, the resulting object will be used to initialize
775
+ // the regeneratorRuntime variable at the top of this file.
776
+ module.exports
777
+ ));
364
778
 
365
- // Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
366
779
  try {
367
780
  regeneratorRuntime = runtime;
368
781
  } catch (accidentalStrictMode) {
782
+ // This module should not be running in strict mode, so the above
783
+ // assignment should always work unless something is misconfigured. Just
784
+ // in case runtime.js accidentally runs in strict mode, in modern engines
785
+ // we can explicitly access globalThis. In older engines we can escape
786
+ // strict mode using a global Function call. This could conceivably fail
787
+ // if a Content Security Policy forbids using Function, but in that case
788
+ // the proper solution is to fix the accidental strict mode problem. If
789
+ // you've misconfigured your bundler to force strict mode and applied a
790
+ // CSP to forbid Function, and you're not willing to fix either of those
791
+ // problems, please detail your unique predicament in a GitHub issue.
369
792
  if (typeof globalThis === "object") {
370
793
  globalThis.regeneratorRuntime = runtime;
371
794
  } else {
372
795
  Function("r", "regeneratorRuntime = r")(runtime);
373
796
  }
374
797
  }
375
-
376
- var defineProperty = _commonjsHelpers.createCommonjsModule(function (module) {
377
- function _defineProperty(obj, key, value) {
378
- if (key in obj) {
379
- Object.defineProperty(obj, key, {
380
- value: value,
381
- enumerable: true,
382
- configurable: true,
383
- writable: true
384
- });
385
- } else {
386
- obj[key] = value;
387
- }
388
- return obj;
389
- }
390
- module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
391
798
  });
392
799
 
393
- _commonjsHelpers.unwrapExports(defineProperty);
394
-
395
- var asyncToGenerator = _commonjsHelpers.createCommonjsModule(function (module) {
396
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
397
- try {
398
- var info = gen[key](arg);
399
- var value = info.value;
400
- } catch (error) {
401
- reject(error);
402
- return;
403
- }
404
- if (info.done) {
405
- resolve(value);
406
- } else {
407
- Promise.resolve(value).then(_next, _throw);
408
- }
409
- }
410
- function _asyncToGenerator(fn) {
411
- return function () {
412
- var self = this,
413
- args = arguments;
414
- return new Promise(function (resolve, reject) {
415
- var gen = fn.apply(self, args);
416
- function _next(value) {
417
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
418
- }
419
- function _throw(err) {
420
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
421
- }
422
- _next(undefined);
423
- });
424
- };
425
- }
426
- module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
427
- });
428
-
429
- _commonjsHelpers.unwrapExports(asyncToGenerator);
800
+ var regenerator = runtime_1;
430
801
 
431
802
  var arrayWithHoles = _commonjsHelpers.createCommonjsModule(function (module) {
432
803
  function _arrayWithHoles(arr) {
433
804
  if (Array.isArray(arr)) return arr;
434
805
  }
806
+
435
807
  module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
436
808
  });
437
809
 
@@ -440,14 +812,18 @@ _commonjsHelpers.unwrapExports(arrayWithHoles);
440
812
  var iterableToArrayLimit = _commonjsHelpers.createCommonjsModule(function (module) {
441
813
  function _iterableToArrayLimit(arr, i) {
442
814
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
815
+
443
816
  if (_i == null) return;
444
817
  var _arr = [];
445
818
  var _n = true;
446
819
  var _d = false;
820
+
447
821
  var _s, _e;
822
+
448
823
  try {
449
824
  for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
450
825
  _arr.push(_s.value);
826
+
451
827
  if (i && _arr.length === i) break;
452
828
  }
453
829
  } catch (err) {
@@ -460,8 +836,10 @@ function _iterableToArrayLimit(arr, i) {
460
836
  if (_d) throw _e;
461
837
  }
462
838
  }
839
+
463
840
  return _arr;
464
841
  }
842
+
465
843
  module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
466
844
  });
467
845
 
@@ -470,11 +848,14 @@ _commonjsHelpers.unwrapExports(iterableToArrayLimit);
470
848
  var arrayLikeToArray = _commonjsHelpers.createCommonjsModule(function (module) {
471
849
  function _arrayLikeToArray(arr, len) {
472
850
  if (len == null || len > arr.length) len = arr.length;
851
+
473
852
  for (var i = 0, arr2 = new Array(len); i < len; i++) {
474
853
  arr2[i] = arr[i];
475
854
  }
855
+
476
856
  return arr2;
477
857
  }
858
+
478
859
  module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
479
860
  });
480
861
 
@@ -489,6 +870,7 @@ function _unsupportedIterableToArray(o, minLen) {
489
870
  if (n === "Map" || n === "Set") return Array.from(o);
490
871
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
491
872
  }
873
+
492
874
  module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
493
875
  });
494
876
 
@@ -498,6 +880,7 @@ var nonIterableRest = _commonjsHelpers.createCommonjsModule(function (module) {
498
880
  function _nonIterableRest() {
499
881
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
500
882
  }
883
+
501
884
  module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
502
885
  });
503
886
 
@@ -507,6 +890,7 @@ var slicedToArray = _commonjsHelpers.createCommonjsModule(function (module) {
507
890
  function _slicedToArray(arr, i) {
508
891
  return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
509
892
  }
893
+
510
894
  module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
511
895
  });
512
896
 
@@ -651,9 +1035,9 @@ exports.default = void 0;
651
1035
 
652
1036
  var _regenerator = interopRequireDefault(regenerator);
653
1037
 
654
- var _defineProperty2 = interopRequireDefault(defineProperty);
1038
+ var _defineProperty2 = interopRequireDefault(defineProperty.defineProperty);
655
1039
 
656
- var _asyncToGenerator2 = interopRequireDefault(asyncToGenerator);
1040
+ var _asyncToGenerator2 = interopRequireDefault(defineProperty.asyncToGenerator);
657
1041
 
658
1042
  var _slicedToArray2 = interopRequireDefault(slicedToArray);
659
1043