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