@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
@@ -1,5 +1,6 @@
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';
3
4
  import React__default, { useState, useEffect } from 'react';
4
5
  import { Form } from 'react-bootstrap';
5
6
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
@@ -12,6 +13,7 @@ function _interopRequireDefault(obj) {
12
13
  "default": obj
13
14
  };
14
15
  }
16
+
15
17
  module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
16
18
  });
17
19
 
@@ -27,122 +29,277 @@ function _typeof(obj) {
27
29
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
28
30
  }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
29
31
  }
32
+
30
33
  module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
31
34
  });
32
35
 
33
36
  unwrapExports(_typeof_1);
34
37
 
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";
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
+
51
56
  function define(obj, key, value) {
52
- return Object.defineProperty(obj, key, {
57
+ Object.defineProperty(obj, key, {
53
58
  value: value,
54
- enumerable: !0,
55
- configurable: !0,
56
- writable: !0
57
- }), obj[key];
59
+ enumerable: true,
60
+ configurable: true,
61
+ writable: true
62
+ });
63
+ return obj[key];
58
64
  }
59
65
  try {
66
+ // IE 8 has a broken Object.defineProperty that only works on DOM objects.
60
67
  define({}, "");
61
68
  } catch (err) {
62
- define = function define(obj, key, value) {
69
+ define = function(obj, key, value) {
63
70
  return obj[key] = value;
64
71
  };
65
72
  }
73
+
66
74
  function wrap(innerFn, outerFn, self, tryLocsList) {
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;
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;
73
85
  }
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.
74
98
  function tryCatch(fn, obj, arg) {
75
99
  try {
76
- return {
77
- type: "normal",
78
- arg: fn.call(obj, arg)
79
- };
100
+ return { type: "normal", arg: fn.call(obj, arg) };
80
101
  } catch (err) {
81
- return {
82
- type: "throw",
83
- arg: err
84
- };
102
+ return { type: "throw", arg: err };
85
103
  }
86
104
  }
87
- exports.wrap = wrap;
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.
88
113
  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.
89
119
  function Generator() {}
90
120
  function GeneratorFunction() {}
91
121
  function GeneratorFunctionPrototype() {}
122
+
123
+ // This is a polyfill for %IteratorPrototype% for environments that
124
+ // don't natively support it.
92
125
  var IteratorPrototype = {};
93
126
  define(IteratorPrototype, iteratorSymbol, function () {
94
127
  return this;
95
128
  });
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);
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.
100
153
  function defineIteratorMethods(prototype) {
101
- ["next", "throw", "return"].forEach(function (method) {
102
- define(prototype, method, function (arg) {
154
+ ["next", "throw", "return"].forEach(function(method) {
155
+ define(prototype, method, function(arg) {
103
156
  return this._invoke(method, arg);
104
157
  });
105
158
  });
106
159
  }
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
+
107
190
  function AsyncIterator(generator, PromiseImpl) {
108
191
  function invoke(method, arg, resolve, reject) {
109
192
  var record = tryCatch(generator[method], generator, arg);
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) {
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.
120
217
  return invoke("throw", error, resolve, reject);
121
218
  });
122
219
  }
123
- reject(record.arg);
124
220
  }
221
+
125
222
  var previousPromise;
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();
223
+
224
+ function enqueue(method, arg) {
225
+ function callInvokeWithMethodAndArg() {
226
+ return new PromiseImpl(function(resolve, reject) {
227
+ invoke(method, arg, resolve, reject);
228
+ });
134
229
  }
135
- });
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;
136
255
  }
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
+
137
281
  function makeInvokeMethod(innerFn, self, context) {
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;
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
143
296
  return doneResult();
144
297
  }
145
- for (context.method = method, context.arg = arg;;) {
298
+
299
+ context.method = method;
300
+ context.arg = arg;
301
+
302
+ while (true) {
146
303
  var delegate = context.delegate;
147
304
  if (delegate) {
148
305
  var delegateResult = maybeInvokeDelegate(delegate, context);
@@ -151,281 +308,496 @@ function _regeneratorRuntime() {
151
308
  return delegateResult;
152
309
  }
153
310
  }
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;
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
+
156
323
  context.dispatchException(context.arg);
157
- } else "return" === context.method && context.abrupt("return", context.arg);
158
- state = "executing";
324
+
325
+ } else if (context.method === "return") {
326
+ context.abrupt("return", context.arg);
327
+ }
328
+
329
+ state = GenStateExecuting;
330
+
159
331
  var record = tryCatch(innerFn, self, context);
160
- if ("normal" === record.type) {
161
- if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
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
+
162
343
  return {
163
344
  value: record.arg,
164
345
  done: context.done
165
346
  };
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;
166
354
  }
167
- "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
168
355
  }
169
356
  };
170
357
  }
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.
171
363
  function maybeInvokeDelegate(delegate, context) {
172
364
  var method = delegate.iterator[context.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");
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");
177
389
  }
390
+
178
391
  return ContinueSentinel;
179
392
  }
393
+
180
394
  var record = tryCatch(method, delegate.iterator, context.arg);
181
- if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
395
+
396
+ if (record.type === "throw") {
397
+ context.method = "throw";
398
+ context.arg = record.arg;
399
+ context.delegate = null;
400
+ return ContinueSentinel;
401
+ }
402
+
182
403
  var info = record.arg;
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);
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;
184
440
  }
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
+
185
461
  function pushTryEntry(locs) {
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);
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);
190
474
  }
475
+
191
476
  function resetTryEntry(entry) {
192
477
  var record = entry.completion || {};
193
- record.type = "normal", delete record.arg, entry.completion = record;
478
+ record.type = "normal";
479
+ delete record.arg;
480
+ entry.completion = record;
194
481
  }
482
+
195
483
  function Context(tryLocsList) {
196
- this.tryEntries = [{
197
- tryLoc: "root"
198
- }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
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);
199
490
  }
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
+
200
519
  function values(iterable) {
201
520
  if (iterable) {
202
521
  var iteratorMethod = iterable[iteratorSymbol];
203
- if (iteratorMethod) return iteratorMethod.call(iterable);
204
- if ("function" == typeof iterable.next) return iterable;
522
+ if (iteratorMethod) {
523
+ return iteratorMethod.call(iterable);
524
+ }
525
+
526
+ if (typeof iterable.next === "function") {
527
+ return iterable;
528
+ }
529
+
205
530
  if (!isNaN(iterable.length)) {
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;
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;
210
537
  }
211
- return next.value = undefined, next.done = !0, next;
212
- };
538
+ }
539
+
540
+ next.value = undefined$1;
541
+ next.done = true;
542
+
543
+ return next;
544
+ };
545
+
213
546
  return next.next = next;
214
547
  }
215
548
  }
216
- return {
217
- next: doneResult
218
- };
549
+
550
+ // Return an iterator with no values.
551
+ return { next: doneResult };
219
552
  }
553
+ exports.values = values;
554
+
220
555
  function doneResult() {
221
- return {
222
- value: undefined,
223
- done: !0
224
- };
556
+ return { value: undefined$1, done: true };
225
557
  }
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 = {
558
+
559
+ Context.prototype = {
267
560
  constructor: Context,
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);
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
+ }
271
585
  }
272
586
  },
273
- stop: function stop() {
274
- this.done = !0;
275
- var rootRecord = this.tryEntries[0].completion;
276
- if ("throw" === rootRecord.type) throw rootRecord.arg;
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
+
277
597
  return this.rval;
278
598
  },
279
- dispatchException: function dispatchException(exception) {
280
- if (this.done) throw exception;
599
+
600
+ dispatchException: function(exception) {
601
+ if (this.done) {
602
+ throw exception;
603
+ }
604
+
281
605
  var context = this;
282
606
  function handle(loc, caught) {
283
- return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!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;
284
619
  }
620
+
285
621
  for (var i = this.tryEntries.length - 1; i >= 0; --i) {
286
- var entry = this.tryEntries[i],
287
- record = entry.completion;
288
- if ("root" === entry.tryLoc) return handle("end");
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
+
289
632
  if (entry.tryLoc <= this.prev) {
290
- var hasCatch = hasOwn.call(entry, "catchLoc"),
291
- hasFinally = hasOwn.call(entry, "finallyLoc");
633
+ var hasCatch = hasOwn.call(entry, "catchLoc");
634
+ var hasFinally = hasOwn.call(entry, "finallyLoc");
635
+
292
636
  if (hasCatch && hasFinally) {
293
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
294
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
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
+
295
643
  } else if (hasCatch) {
296
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
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
+
297
653
  } else {
298
- if (!hasFinally) throw new Error("try statement without catch or finally");
299
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
654
+ throw new Error("try statement without catch or finally");
300
655
  }
301
656
  }
302
657
  }
303
658
  },
304
- abrupt: function abrupt(type, arg) {
659
+
660
+ abrupt: function(type, arg) {
305
661
  for (var i = this.tryEntries.length - 1; i >= 0; --i) {
306
662
  var entry = this.tryEntries[i];
307
- if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
663
+ if (entry.tryLoc <= this.prev &&
664
+ hasOwn.call(entry, "finallyLoc") &&
665
+ this.prev < entry.finallyLoc) {
308
666
  var finallyEntry = entry;
309
667
  break;
310
668
  }
311
669
  }
312
- finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
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
+
313
681
  var record = finallyEntry ? finallyEntry.completion : {};
314
- return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
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);
315
692
  },
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;
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;
319
711
  },
320
- finish: function finish(finallyLoc) {
712
+
713
+ finish: function(finallyLoc) {
321
714
  for (var i = this.tryEntries.length - 1; i >= 0; --i) {
322
715
  var entry = this.tryEntries[i];
323
- if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
716
+ if (entry.finallyLoc === finallyLoc) {
717
+ this.complete(entry.completion, entry.afterLoc);
718
+ resetTryEntry(entry);
719
+ return ContinueSentinel;
720
+ }
324
721
  }
325
722
  },
326
- "catch": function _catch(tryLoc) {
723
+
724
+ "catch": function(tryLoc) {
327
725
  for (var i = this.tryEntries.length - 1; i >= 0; --i) {
328
726
  var entry = this.tryEntries[i];
329
727
  if (entry.tryLoc === tryLoc) {
330
728
  var record = entry.completion;
331
- if ("throw" === record.type) {
729
+ if (record.type === "throw") {
332
730
  var thrown = record.arg;
333
731
  resetTryEntry(entry);
334
732
  }
335
733
  return thrown;
336
734
  }
337
735
  }
736
+
737
+ // The context.catch method must only be called with a location
738
+ // argument that corresponds to a known catch block.
338
739
  throw new Error("illegal catch attempt");
339
740
  },
340
- delegateYield: function delegateYield(iterable, resultName, nextLoc) {
341
- return this.delegate = {
741
+
742
+ delegateYield: function(iterable, resultName, nextLoc) {
743
+ this.delegate = {
342
744
  iterator: values(iterable),
343
745
  resultName: resultName,
344
746
  nextLoc: nextLoc
345
- }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
346
- }
347
- }, exports;
348
- }
349
- module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
350
- });
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
+ }
351
754
 
352
- unwrapExports(regeneratorRuntime$1);
755
+ return ContinueSentinel;
756
+ }
757
+ };
353
758
 
354
- // TODO(Babel 8): Remove this file.
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;
355
764
 
356
- var runtime = regeneratorRuntime$1();
357
- var regenerator = runtime;
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
+ ));
358
772
 
359
- // Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
360
773
  try {
361
774
  regeneratorRuntime = runtime;
362
775
  } 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.
363
786
  if (typeof globalThis === "object") {
364
787
  globalThis.regeneratorRuntime = runtime;
365
788
  } else {
366
789
  Function("r", "regeneratorRuntime = r")(runtime);
367
790
  }
368
791
  }
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;
385
792
  });
386
793
 
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);
794
+ var regenerator = runtime_1;
424
795
 
425
796
  var arrayWithHoles = createCommonjsModule(function (module) {
426
797
  function _arrayWithHoles(arr) {
427
798
  if (Array.isArray(arr)) return arr;
428
799
  }
800
+
429
801
  module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
430
802
  });
431
803
 
@@ -434,14 +806,18 @@ unwrapExports(arrayWithHoles);
434
806
  var iterableToArrayLimit = createCommonjsModule(function (module) {
435
807
  function _iterableToArrayLimit(arr, i) {
436
808
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
809
+
437
810
  if (_i == null) return;
438
811
  var _arr = [];
439
812
  var _n = true;
440
813
  var _d = false;
814
+
441
815
  var _s, _e;
816
+
442
817
  try {
443
818
  for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
444
819
  _arr.push(_s.value);
820
+
445
821
  if (i && _arr.length === i) break;
446
822
  }
447
823
  } catch (err) {
@@ -454,8 +830,10 @@ function _iterableToArrayLimit(arr, i) {
454
830
  if (_d) throw _e;
455
831
  }
456
832
  }
833
+
457
834
  return _arr;
458
835
  }
836
+
459
837
  module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
460
838
  });
461
839
 
@@ -464,11 +842,14 @@ unwrapExports(iterableToArrayLimit);
464
842
  var arrayLikeToArray = createCommonjsModule(function (module) {
465
843
  function _arrayLikeToArray(arr, len) {
466
844
  if (len == null || len > arr.length) len = arr.length;
845
+
467
846
  for (var i = 0, arr2 = new Array(len); i < len; i++) {
468
847
  arr2[i] = arr[i];
469
848
  }
849
+
470
850
  return arr2;
471
851
  }
852
+
472
853
  module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
473
854
  });
474
855
 
@@ -483,6 +864,7 @@ function _unsupportedIterableToArray(o, minLen) {
483
864
  if (n === "Map" || n === "Set") return Array.from(o);
484
865
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
485
866
  }
867
+
486
868
  module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
487
869
  });
488
870
 
@@ -492,6 +874,7 @@ var nonIterableRest = createCommonjsModule(function (module) {
492
874
  function _nonIterableRest() {
493
875
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
494
876
  }
877
+
495
878
  module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
496
879
  });
497
880
 
@@ -501,6 +884,7 @@ var slicedToArray = createCommonjsModule(function (module) {
501
884
  function _slicedToArray(arr, i) {
502
885
  return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
503
886
  }
887
+
504
888
  module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
505
889
  });
506
890