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