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

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