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