@ably/ui 11.7.0 → 11.7.1-dev.1344841
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 +7 -7
- package/core/Code/component.css +2 -0
- package/core/CompanyAutocomplete/component.js +2 -1
- package/core/CompanyAutocomplete/component.js.LICENSE.txt +1 -0
- package/core/ContactFooter.jsx +8 -8
- package/core/DropdownMenu.jsx +1 -1
- package/core/FeaturedLink/component.css +0 -15
- package/core/FeaturedLink/component.js +1 -1
- package/core/FeaturedLink.jsx +17 -6
- package/core/Flash/component.css +0 -4
- package/core/Flash.jsx +1 -1
- package/core/Footer/component.css +3 -3
- package/core/Footer.jsx +15 -15
- package/core/Meganav/component.css +6 -6
- package/core/Meganav.jsx +355 -759
- package/core/MeganavBlogPostsList/component.js +2 -1
- package/core/MeganavBlogPostsList/component.js.LICENSE.txt +1 -0
- package/core/MeganavBlogPostsList.jsx +17 -6
- package/core/MeganavContentCompany.jsx +312 -716
- package/core/MeganavContentDevelopers.jsx +1 -1
- package/core/MeganavContentProducts.jsx +18 -7
- package/core/MeganavItemsMobile.jsx +17 -6
- package/core/MeganavItemsSignedIn.jsx +17 -6
- package/core/MeganavSearch.jsx +17 -6
- package/core/MeganavSearchPanel.jsx +17 -6
- package/core/MeganavSearchSuggestions.jsx +17 -6
- package/core/Notice/component.js +1 -1
- package/core/Notice.jsx +4 -4
- package/core/Uptime/component.css +1 -1
- package/core/Uptime.jsx +307 -711
- package/core/fonts/jetBrains-mono.css +3 -0
- package/core/fonts/manrope.css +3 -0
- package/core/scripts.js +2 -1
- package/core/scripts.js.LICENSE.txt +1 -0
- package/core/styles.css +225 -115
- package/package.json +3 -3
- package/src/core/ContactFooter/component.html.erb +8 -8
- package/src/core/ContactFooter/component.jsx +8 -8
- package/src/core/DropdownMenu/component.jsx +1 -1
- package/src/core/FeatureFooter/component.html.erb +6 -6
- package/src/core/FeaturedLink/component.html.erb +14 -5
- package/src/core/FeaturedLink/component.js +0 -1
- package/src/core/FeaturedLink/component.jsx +27 -4
- package/src/core/FeaturedLink/component.rb +3 -1
- package/src/core/Flash/component.css +0 -4
- package/src/core/Flash/component.jsx +1 -1
- package/src/core/Footer/component.css +3 -3
- package/src/core/Footer/component.html.erb +14 -14
- package/src/core/Footer/component.jsx +15 -15
- package/src/core/Meganav/component.css +6 -6
- package/src/core/MeganavContentDevelopers/component.html.erb +1 -1
- package/src/core/MeganavContentDevelopers/component.jsx +1 -1
- package/src/core/MeganavContentProducts/component.html.erb +1 -1
- package/src/core/MeganavContentProducts/component.jsx +1 -1
- package/src/core/Notice/component.html.erb +3 -3
- package/src/core/Notice/component.jsx +3 -3
- package/src/core/Showcase/component.html.erb +7 -7
- package/src/core/Uptime/component.css +1 -1
- package/src/core/Uptime/component.jsx +1 -1
- package/src/core/fonts/jetBrains-mono.css +3 -0
- package/src/core/fonts/manrope.css +3 -0
- package/src/core/styles/buttons.css +5 -5
- package/src/core/styles/forms.css +5 -5
- package/src/core/styles/properties.css +153 -45
- package/src/core/styles/text.css +62 -60
- package/src/core/utils/syntax-highlighter.css +2 -0
- package/tailwind.config.js +179 -49
- package/src/core/FeaturedLink/component.css +0 -15
|
@@ -11,14 +11,6 @@
|
|
|
11
11
|
return /******/ (() => { // webpackBootstrap
|
|
12
12
|
/******/ var __webpack_modules__ = ({
|
|
13
13
|
|
|
14
|
-
/***/ 7757:
|
|
15
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
16
|
-
|
|
17
|
-
/* unused reexport */ __webpack_require__(5666);
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
/***/ }),
|
|
21
|
-
|
|
22
14
|
/***/ 9787:
|
|
23
15
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
24
16
|
|
|
@@ -119,24 +111,33 @@ var ConnectStateWrapper = function ConnectStateWrapper(Component, selectors) {
|
|
|
119
111
|
var FeaturedLink = function FeaturedLink(_ref) {
|
|
120
112
|
var url = _ref.url,
|
|
121
113
|
_ref$textSize = _ref.textSize,
|
|
122
|
-
textSize = _ref$textSize === void 0 ? "text-
|
|
114
|
+
textSize = _ref$textSize === void 0 ? "text-p2" : _ref$textSize,
|
|
123
115
|
_ref$iconColor = _ref.iconColor,
|
|
124
116
|
iconColor = _ref$iconColor === void 0 ? "text-cool-black" : _ref$iconColor,
|
|
125
117
|
_ref$flush = _ref.flush,
|
|
126
118
|
flush = _ref$flush === void 0 ? false : _ref$flush,
|
|
119
|
+
_ref$reverse = _ref.reverse,
|
|
120
|
+
reverse = _ref$reverse === void 0 ? false : _ref$reverse,
|
|
121
|
+
_ref$additionalCSS = _ref.additionalCSS,
|
|
122
|
+
additionalCSS = _ref$additionalCSS === void 0 ? "" : _ref$additionalCSS,
|
|
127
123
|
children = _ref.children;
|
|
128
124
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", {
|
|
129
125
|
href: url,
|
|
130
|
-
className: "
|
|
126
|
+
className: "font-sans font-bold block text-gui-default hover:text-gui-hover focus:text-gui-focus focus:outline-gui-focus group ui-".concat(textSize, " ").concat(flush ? "" : "py-8", " ").concat(additionalCSS),
|
|
131
127
|
style: {
|
|
132
128
|
"--featured-link-icon-size": "var(".concat(textSize.replace("text", "--fs"), ")")
|
|
133
129
|
}
|
|
134
|
-
},
|
|
130
|
+
}, reverse ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Icon_component_jsx__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
|
135
131
|
name: "icon-gui-link-arrow",
|
|
136
132
|
size: "calc(var(--featured-link-icon-size) * 1.25)",
|
|
137
133
|
color: iconColor,
|
|
138
|
-
additionalCSS: "
|
|
139
|
-
}))
|
|
134
|
+
additionalCSS: "align-middle mr-8 relative -top-1 -right-4 transition-all group-hover:right-0 transform rotate-180"
|
|
135
|
+
}), children) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, children, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Icon_component_jsx__WEBPACK_IMPORTED_MODULE_2__["default"], {
|
|
136
|
+
name: "icon-gui-link-arrow",
|
|
137
|
+
size: "calc(var(--featured-link-icon-size) * 1.25)",
|
|
138
|
+
color: iconColor,
|
|
139
|
+
additionalCSS: "align-middle ml-8 relative -top-1 -left-4 transition-all group-hover:left-0"
|
|
140
|
+
})));
|
|
140
141
|
};
|
|
141
142
|
|
|
142
143
|
FeaturedLink.propTypes = {
|
|
@@ -144,7 +145,9 @@ FeaturedLink.propTypes = {
|
|
|
144
145
|
children: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
|
|
145
146
|
textSize: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
|
146
147
|
iconColor: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
|
147
|
-
flush: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool)
|
|
148
|
+
flush: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
|
149
|
+
reverse: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
|
150
|
+
additionalCSS: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
|
|
148
151
|
};
|
|
149
152
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (FeaturedLink);
|
|
150
153
|
|
|
@@ -302,782 +305,375 @@ var createRemoteDataStore = function createRemoteDataStore(reducers) {
|
|
|
302
305
|
|
|
303
306
|
/***/ }),
|
|
304
307
|
|
|
305
|
-
/***/
|
|
308
|
+
/***/ 6073:
|
|
306
309
|
/***/ ((module) => {
|
|
307
310
|
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
311
|
+
"use strict";
|
|
312
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__6073__;
|
|
313
|
+
|
|
314
|
+
/***/ }),
|
|
315
|
+
|
|
316
|
+
/***/ 5225:
|
|
317
|
+
/***/ ((module) => {
|
|
318
|
+
|
|
319
|
+
"use strict";
|
|
320
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__5225__;
|
|
321
|
+
|
|
322
|
+
/***/ }),
|
|
323
|
+
|
|
324
|
+
/***/ 5293:
|
|
325
|
+
/***/ ((module) => {
|
|
326
|
+
|
|
327
|
+
"use strict";
|
|
328
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__5293__;
|
|
329
|
+
|
|
330
|
+
/***/ }),
|
|
331
|
+
|
|
332
|
+
/***/ 7061:
|
|
333
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
334
|
+
|
|
335
|
+
var _typeof = (__webpack_require__(8698)["default"]);
|
|
336
|
+
function _regeneratorRuntime() {
|
|
337
|
+
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
338
|
+
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
|
339
|
+
return e;
|
|
340
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
341
|
+
var t,
|
|
342
|
+
e = {},
|
|
343
|
+
r = Object.prototype,
|
|
344
|
+
n = r.hasOwnProperty,
|
|
345
|
+
o = Object.defineProperty || function (t, e, r) {
|
|
346
|
+
t[e] = r.value;
|
|
347
|
+
},
|
|
348
|
+
i = "function" == typeof Symbol ? Symbol : {},
|
|
349
|
+
a = i.iterator || "@@iterator",
|
|
350
|
+
c = i.asyncIterator || "@@asyncIterator",
|
|
351
|
+
u = i.toStringTag || "@@toStringTag";
|
|
352
|
+
function define(t, e, r) {
|
|
353
|
+
return Object.defineProperty(t, e, {
|
|
354
|
+
value: r,
|
|
355
|
+
enumerable: !0,
|
|
356
|
+
configurable: !0,
|
|
357
|
+
writable: !0
|
|
358
|
+
}), t[e];
|
|
334
359
|
}
|
|
335
360
|
try {
|
|
336
|
-
// IE 8 has a broken Object.defineProperty that only works on DOM objects.
|
|
337
361
|
define({}, "");
|
|
338
|
-
} catch (
|
|
339
|
-
define = function(
|
|
340
|
-
return
|
|
362
|
+
} catch (t) {
|
|
363
|
+
define = function define(t, e, r) {
|
|
364
|
+
return t[e] = r;
|
|
341
365
|
};
|
|
342
366
|
}
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
// The ._invoke method unifies the implementations of the .next,
|
|
351
|
-
// .throw, and .return methods.
|
|
352
|
-
generator._invoke = makeInvokeMethod(innerFn, self, context);
|
|
353
|
-
|
|
354
|
-
return generator;
|
|
367
|
+
function wrap(t, e, r, n) {
|
|
368
|
+
var i = e && e.prototype instanceof Generator ? e : Generator,
|
|
369
|
+
a = Object.create(i.prototype),
|
|
370
|
+
c = new Context(n || []);
|
|
371
|
+
return o(a, "_invoke", {
|
|
372
|
+
value: makeInvokeMethod(t, r, c)
|
|
373
|
+
}), a;
|
|
355
374
|
}
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
// Try/catch helper to minimize deoptimizations. Returns a completion
|
|
359
|
-
// record like context.tryEntries[i].completion. This interface could
|
|
360
|
-
// have been (and was previously) designed to take a closure to be
|
|
361
|
-
// invoked without arguments, but in all the cases we care about we
|
|
362
|
-
// already have an existing method we want to call, so there's no need
|
|
363
|
-
// to create a new function object. We can even get away with assuming
|
|
364
|
-
// the method takes exactly one argument, since that happens to be true
|
|
365
|
-
// in every case, so we don't have to touch the arguments object. The
|
|
366
|
-
// only additional allocation required is the completion record, which
|
|
367
|
-
// has a stable shape and so hopefully should be cheap to allocate.
|
|
368
|
-
function tryCatch(fn, obj, arg) {
|
|
375
|
+
function tryCatch(t, e, r) {
|
|
369
376
|
try {
|
|
370
|
-
return {
|
|
371
|
-
|
|
372
|
-
|
|
377
|
+
return {
|
|
378
|
+
type: "normal",
|
|
379
|
+
arg: t.call(e, r)
|
|
380
|
+
};
|
|
381
|
+
} catch (t) {
|
|
382
|
+
return {
|
|
383
|
+
type: "throw",
|
|
384
|
+
arg: t
|
|
385
|
+
};
|
|
373
386
|
}
|
|
374
387
|
}
|
|
375
|
-
|
|
376
|
-
var
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
// Returning this object from the innerFn has the same effect as
|
|
382
|
-
// breaking out of the dispatch switch statement.
|
|
383
|
-
var ContinueSentinel = {};
|
|
384
|
-
|
|
385
|
-
// Dummy constructor functions that we use as the .constructor and
|
|
386
|
-
// .constructor.prototype properties for functions that return Generator
|
|
387
|
-
// objects. For full spec compliance, you may wish to configure your
|
|
388
|
-
// minifier not to mangle the names of these two functions.
|
|
388
|
+
e.wrap = wrap;
|
|
389
|
+
var h = "suspendedStart",
|
|
390
|
+
l = "suspendedYield",
|
|
391
|
+
f = "executing",
|
|
392
|
+
s = "completed",
|
|
393
|
+
y = {};
|
|
389
394
|
function Generator() {}
|
|
390
395
|
function GeneratorFunction() {}
|
|
391
396
|
function GeneratorFunctionPrototype() {}
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
// don't natively support it.
|
|
395
|
-
var IteratorPrototype = {};
|
|
396
|
-
IteratorPrototype[iteratorSymbol] = function () {
|
|
397
|
+
var p = {};
|
|
398
|
+
define(p, a, function () {
|
|
397
399
|
return this;
|
|
398
|
-
};
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
IteratorPrototype = NativeIteratorPrototype;
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
var Gp = GeneratorFunctionPrototype.prototype =
|
|
411
|
-
Generator.prototype = Object.create(IteratorPrototype);
|
|
412
|
-
GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
|
|
413
|
-
GeneratorFunctionPrototype.constructor = GeneratorFunction;
|
|
414
|
-
GeneratorFunction.displayName = define(
|
|
415
|
-
GeneratorFunctionPrototype,
|
|
416
|
-
toStringTagSymbol,
|
|
417
|
-
"GeneratorFunction"
|
|
418
|
-
);
|
|
419
|
-
|
|
420
|
-
// Helper for defining the .next, .throw, and .return methods of the
|
|
421
|
-
// Iterator interface in terms of a single ._invoke method.
|
|
422
|
-
function defineIteratorMethods(prototype) {
|
|
423
|
-
["next", "throw", "return"].forEach(function(method) {
|
|
424
|
-
define(prototype, method, function(arg) {
|
|
425
|
-
return this._invoke(method, arg);
|
|
400
|
+
});
|
|
401
|
+
var d = Object.getPrototypeOf,
|
|
402
|
+
v = d && d(d(values([])));
|
|
403
|
+
v && v !== r && n.call(v, a) && (p = v);
|
|
404
|
+
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
405
|
+
function defineIteratorMethods(t) {
|
|
406
|
+
["next", "throw", "return"].forEach(function (e) {
|
|
407
|
+
define(t, e, function (t) {
|
|
408
|
+
return this._invoke(e, t);
|
|
426
409
|
});
|
|
427
410
|
});
|
|
428
411
|
}
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
} else {
|
|
444
|
-
genFun.__proto__ = GeneratorFunctionPrototype;
|
|
445
|
-
define(genFun, toStringTagSymbol, "GeneratorFunction");
|
|
446
|
-
}
|
|
447
|
-
genFun.prototype = Object.create(Gp);
|
|
448
|
-
return genFun;
|
|
449
|
-
};
|
|
450
|
-
|
|
451
|
-
// Within the body of any async function, `await x` is transformed to
|
|
452
|
-
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
|
|
453
|
-
// `hasOwn.call(value, "__await")` to determine if the yielded value is
|
|
454
|
-
// meant to be awaited.
|
|
455
|
-
exports.awrap = function(arg) {
|
|
456
|
-
return { __await: arg };
|
|
457
|
-
};
|
|
458
|
-
|
|
459
|
-
function AsyncIterator(generator, PromiseImpl) {
|
|
460
|
-
function invoke(method, arg, resolve, reject) {
|
|
461
|
-
var record = tryCatch(generator[method], generator, arg);
|
|
462
|
-
if (record.type === "throw") {
|
|
463
|
-
reject(record.arg);
|
|
464
|
-
} else {
|
|
465
|
-
var result = record.arg;
|
|
466
|
-
var value = result.value;
|
|
467
|
-
if (value &&
|
|
468
|
-
typeof value === "object" &&
|
|
469
|
-
hasOwn.call(value, "__await")) {
|
|
470
|
-
return PromiseImpl.resolve(value.__await).then(function(value) {
|
|
471
|
-
invoke("next", value, resolve, reject);
|
|
472
|
-
}, function(err) {
|
|
473
|
-
invoke("throw", err, resolve, reject);
|
|
474
|
-
});
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
return PromiseImpl.resolve(value).then(function(unwrapped) {
|
|
478
|
-
// When a yielded Promise is resolved, its final value becomes
|
|
479
|
-
// the .value of the Promise<{value,done}> result for the
|
|
480
|
-
// current iteration.
|
|
481
|
-
result.value = unwrapped;
|
|
482
|
-
resolve(result);
|
|
483
|
-
}, function(error) {
|
|
484
|
-
// If a rejected Promise was yielded, throw the rejection back
|
|
485
|
-
// into the async generator function so it can be handled there.
|
|
486
|
-
return invoke("throw", error, resolve, reject);
|
|
412
|
+
function AsyncIterator(t, e) {
|
|
413
|
+
function invoke(r, o, i, a) {
|
|
414
|
+
var c = tryCatch(t[r], t, o);
|
|
415
|
+
if ("throw" !== c.type) {
|
|
416
|
+
var u = c.arg,
|
|
417
|
+
h = u.value;
|
|
418
|
+
return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
419
|
+
invoke("next", t, i, a);
|
|
420
|
+
}, function (t) {
|
|
421
|
+
invoke("throw", t, i, a);
|
|
422
|
+
}) : e.resolve(h).then(function (t) {
|
|
423
|
+
u.value = t, i(u);
|
|
424
|
+
}, function (t) {
|
|
425
|
+
return invoke("throw", t, i, a);
|
|
487
426
|
});
|
|
488
427
|
}
|
|
428
|
+
a(c.arg);
|
|
489
429
|
}
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
}
|
|
430
|
+
var r;
|
|
431
|
+
o(this, "_invoke", {
|
|
432
|
+
value: function value(t, n) {
|
|
433
|
+
function callInvokeWithMethodAndArg() {
|
|
434
|
+
return new e(function (e, r) {
|
|
435
|
+
invoke(t, n, e, r);
|
|
436
|
+
});
|
|
437
|
+
}
|
|
438
|
+
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
498
439
|
}
|
|
499
|
-
|
|
500
|
-
return previousPromise =
|
|
501
|
-
// If enqueue has been called before, then we want to wait until
|
|
502
|
-
// all previous Promises have been resolved before calling invoke,
|
|
503
|
-
// so that results are always delivered in the correct order. If
|
|
504
|
-
// enqueue has not been called before, then it is important to
|
|
505
|
-
// call invoke immediately, without waiting on a callback to fire,
|
|
506
|
-
// so that the async generator function has the opportunity to do
|
|
507
|
-
// any necessary setup in a predictable way. This predictability
|
|
508
|
-
// is why the Promise constructor synchronously invokes its
|
|
509
|
-
// executor callback, and why async functions synchronously
|
|
510
|
-
// execute code before the first await. Since we implement simple
|
|
511
|
-
// async functions in terms of async generators, it is especially
|
|
512
|
-
// important to get this right, even though it requires care.
|
|
513
|
-
previousPromise ? previousPromise.then(
|
|
514
|
-
callInvokeWithMethodAndArg,
|
|
515
|
-
// Avoid propagating failures to Promises returned by later
|
|
516
|
-
// invocations of the iterator.
|
|
517
|
-
callInvokeWithMethodAndArg
|
|
518
|
-
) : callInvokeWithMethodAndArg();
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
// Define the unified helper method that is used to implement .next,
|
|
522
|
-
// .throw, and .return (see defineIteratorMethods).
|
|
523
|
-
this._invoke = enqueue;
|
|
440
|
+
});
|
|
524
441
|
}
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
536
|
-
if (PromiseImpl === void 0) PromiseImpl = Promise;
|
|
537
|
-
|
|
538
|
-
var iter = new AsyncIterator(
|
|
539
|
-
wrap(innerFn, outerFn, self, tryLocsList),
|
|
540
|
-
PromiseImpl
|
|
541
|
-
);
|
|
542
|
-
|
|
543
|
-
return exports.isGeneratorFunction(outerFn)
|
|
544
|
-
? iter // If outerFn is a generator, return the full iterator.
|
|
545
|
-
: iter.next().then(function(result) {
|
|
546
|
-
return result.done ? result.value : iter.next();
|
|
547
|
-
});
|
|
548
|
-
};
|
|
549
|
-
|
|
550
|
-
function makeInvokeMethod(innerFn, self, context) {
|
|
551
|
-
var state = GenStateSuspendedStart;
|
|
552
|
-
|
|
553
|
-
return function invoke(method, arg) {
|
|
554
|
-
if (state === GenStateExecuting) {
|
|
555
|
-
throw new Error("Generator is already running");
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
if (state === GenStateCompleted) {
|
|
559
|
-
if (method === "throw") {
|
|
560
|
-
throw arg;
|
|
561
|
-
}
|
|
562
|
-
|
|
563
|
-
// Be forgiving, per 25.3.3.3.3 of the spec:
|
|
564
|
-
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
|
|
565
|
-
return doneResult();
|
|
442
|
+
function makeInvokeMethod(e, r, n) {
|
|
443
|
+
var o = h;
|
|
444
|
+
return function (i, a) {
|
|
445
|
+
if (o === f) throw new Error("Generator is already running");
|
|
446
|
+
if (o === s) {
|
|
447
|
+
if ("throw" === i) throw a;
|
|
448
|
+
return {
|
|
449
|
+
value: t,
|
|
450
|
+
done: !0
|
|
451
|
+
};
|
|
566
452
|
}
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
575
|
-
if (delegateResult) {
|
|
576
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
577
|
-
return delegateResult;
|
|
453
|
+
for (n.method = i, n.arg = a;;) {
|
|
454
|
+
var c = n.delegate;
|
|
455
|
+
if (c) {
|
|
456
|
+
var u = maybeInvokeDelegate(c, n);
|
|
457
|
+
if (u) {
|
|
458
|
+
if (u === y) continue;
|
|
459
|
+
return u;
|
|
578
460
|
}
|
|
579
461
|
}
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
if (
|
|
588
|
-
state = GenStateCompleted;
|
|
589
|
-
throw context.arg;
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
context.dispatchException(context.arg);
|
|
593
|
-
|
|
594
|
-
} else if (context.method === "return") {
|
|
595
|
-
context.abrupt("return", context.arg);
|
|
596
|
-
}
|
|
597
|
-
|
|
598
|
-
state = GenStateExecuting;
|
|
599
|
-
|
|
600
|
-
var record = tryCatch(innerFn, self, context);
|
|
601
|
-
if (record.type === "normal") {
|
|
602
|
-
// If an exception is thrown from innerFn, we leave state ===
|
|
603
|
-
// GenStateExecuting and loop back for another invocation.
|
|
604
|
-
state = context.done
|
|
605
|
-
? GenStateCompleted
|
|
606
|
-
: GenStateSuspendedYield;
|
|
607
|
-
|
|
608
|
-
if (record.arg === ContinueSentinel) {
|
|
609
|
-
continue;
|
|
610
|
-
}
|
|
611
|
-
|
|
462
|
+
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
463
|
+
if (o === h) throw o = s, n.arg;
|
|
464
|
+
n.dispatchException(n.arg);
|
|
465
|
+
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
466
|
+
o = f;
|
|
467
|
+
var p = tryCatch(e, r, n);
|
|
468
|
+
if ("normal" === p.type) {
|
|
469
|
+
if (o = n.done ? s : l, p.arg === y) continue;
|
|
612
470
|
return {
|
|
613
|
-
value:
|
|
614
|
-
done:
|
|
471
|
+
value: p.arg,
|
|
472
|
+
done: n.done
|
|
615
473
|
};
|
|
616
|
-
|
|
617
|
-
} else if (record.type === "throw") {
|
|
618
|
-
state = GenStateCompleted;
|
|
619
|
-
// Dispatch the exception by looping back around to the
|
|
620
|
-
// context.dispatchException(context.arg) call above.
|
|
621
|
-
context.method = "throw";
|
|
622
|
-
context.arg = record.arg;
|
|
623
474
|
}
|
|
475
|
+
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
624
476
|
}
|
|
625
477
|
};
|
|
626
478
|
}
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
var
|
|
634
|
-
|
|
635
|
-
// A .throw or .return when the delegate iterator has no .throw
|
|
636
|
-
// method always terminates the yield* loop.
|
|
637
|
-
context.delegate = null;
|
|
638
|
-
|
|
639
|
-
if (context.method === "throw") {
|
|
640
|
-
// Note: ["return"] must be used for ES3 parsing compatibility.
|
|
641
|
-
if (delegate.iterator["return"]) {
|
|
642
|
-
// If the delegate iterator has a return method, give it a
|
|
643
|
-
// chance to clean up.
|
|
644
|
-
context.method = "return";
|
|
645
|
-
context.arg = undefined;
|
|
646
|
-
maybeInvokeDelegate(delegate, context);
|
|
647
|
-
|
|
648
|
-
if (context.method === "throw") {
|
|
649
|
-
// If maybeInvokeDelegate(context) changed context.method from
|
|
650
|
-
// "return" to "throw", let that override the TypeError below.
|
|
651
|
-
return ContinueSentinel;
|
|
652
|
-
}
|
|
653
|
-
}
|
|
654
|
-
|
|
655
|
-
context.method = "throw";
|
|
656
|
-
context.arg = new TypeError(
|
|
657
|
-
"The iterator does not provide a 'throw' method");
|
|
658
|
-
}
|
|
659
|
-
|
|
660
|
-
return ContinueSentinel;
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
664
|
-
|
|
665
|
-
if (record.type === "throw") {
|
|
666
|
-
context.method = "throw";
|
|
667
|
-
context.arg = record.arg;
|
|
668
|
-
context.delegate = null;
|
|
669
|
-
return ContinueSentinel;
|
|
670
|
-
}
|
|
671
|
-
|
|
672
|
-
var info = record.arg;
|
|
673
|
-
|
|
674
|
-
if (! info) {
|
|
675
|
-
context.method = "throw";
|
|
676
|
-
context.arg = new TypeError("iterator result is not an object");
|
|
677
|
-
context.delegate = null;
|
|
678
|
-
return ContinueSentinel;
|
|
679
|
-
}
|
|
680
|
-
|
|
681
|
-
if (info.done) {
|
|
682
|
-
// Assign the result of the finished delegate to the temporary
|
|
683
|
-
// variable specified by delegate.resultName (see delegateYield).
|
|
684
|
-
context[delegate.resultName] = info.value;
|
|
685
|
-
|
|
686
|
-
// Resume execution at the desired location (see delegateYield).
|
|
687
|
-
context.next = delegate.nextLoc;
|
|
688
|
-
|
|
689
|
-
// If context.method was "throw" but the delegate handled the
|
|
690
|
-
// exception, let the outer generator proceed normally. If
|
|
691
|
-
// context.method was "next", forget context.arg since it has been
|
|
692
|
-
// "consumed" by the delegate iterator. If context.method was
|
|
693
|
-
// "return", allow the original .return call to continue in the
|
|
694
|
-
// outer generator.
|
|
695
|
-
if (context.method !== "return") {
|
|
696
|
-
context.method = "next";
|
|
697
|
-
context.arg = undefined;
|
|
698
|
-
}
|
|
699
|
-
|
|
700
|
-
} else {
|
|
701
|
-
// Re-yield the result returned by the delegate method.
|
|
702
|
-
return info;
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
// The delegate iterator is finished, so forget it and continue with
|
|
706
|
-
// the outer generator.
|
|
707
|
-
context.delegate = null;
|
|
708
|
-
return ContinueSentinel;
|
|
479
|
+
function maybeInvokeDelegate(e, r) {
|
|
480
|
+
var n = r.method,
|
|
481
|
+
o = e.iterator[n];
|
|
482
|
+
if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
|
483
|
+
var i = tryCatch(o, e.iterator, r.arg);
|
|
484
|
+
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
485
|
+
var a = i.arg;
|
|
486
|
+
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
|
709
487
|
}
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
define(Gp, toStringTagSymbol, "Generator");
|
|
716
|
-
|
|
717
|
-
// A Generator should always return itself as the iterator object when the
|
|
718
|
-
// @@iterator function is called on it. Some browsers' implementations of the
|
|
719
|
-
// iterator prototype chain incorrectly implement this, causing the Generator
|
|
720
|
-
// object to not be returned from this call. This ensures that doesn't happen.
|
|
721
|
-
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
|
722
|
-
Gp[iteratorSymbol] = function() {
|
|
723
|
-
return this;
|
|
724
|
-
};
|
|
725
|
-
|
|
726
|
-
Gp.toString = function() {
|
|
727
|
-
return "[object Generator]";
|
|
728
|
-
};
|
|
729
|
-
|
|
730
|
-
function pushTryEntry(locs) {
|
|
731
|
-
var entry = { tryLoc: locs[0] };
|
|
732
|
-
|
|
733
|
-
if (1 in locs) {
|
|
734
|
-
entry.catchLoc = locs[1];
|
|
735
|
-
}
|
|
736
|
-
|
|
737
|
-
if (2 in locs) {
|
|
738
|
-
entry.finallyLoc = locs[2];
|
|
739
|
-
entry.afterLoc = locs[3];
|
|
740
|
-
}
|
|
741
|
-
|
|
742
|
-
this.tryEntries.push(entry);
|
|
488
|
+
function pushTryEntry(t) {
|
|
489
|
+
var e = {
|
|
490
|
+
tryLoc: t[0]
|
|
491
|
+
};
|
|
492
|
+
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
743
493
|
}
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
record.type = "normal";
|
|
748
|
-
delete record.arg;
|
|
749
|
-
entry.completion = record;
|
|
494
|
+
function resetTryEntry(t) {
|
|
495
|
+
var e = t.completion || {};
|
|
496
|
+
e.type = "normal", delete e.arg, t.completion = e;
|
|
750
497
|
}
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
// locations where there is no enclosing try statement.
|
|
756
|
-
this.tryEntries = [{ tryLoc: "root" }];
|
|
757
|
-
tryLocsList.forEach(pushTryEntry, this);
|
|
758
|
-
this.reset(true);
|
|
498
|
+
function Context(t) {
|
|
499
|
+
this.tryEntries = [{
|
|
500
|
+
tryLoc: "root"
|
|
501
|
+
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
759
502
|
}
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
var key = keys.pop();
|
|
773
|
-
if (key in object) {
|
|
774
|
-
next.value = key;
|
|
775
|
-
next.done = false;
|
|
776
|
-
return next;
|
|
777
|
-
}
|
|
778
|
-
}
|
|
779
|
-
|
|
780
|
-
// To avoid creating an additional object, we just hang the .value
|
|
781
|
-
// and .done properties off the next function object itself. This
|
|
782
|
-
// also ensures that the minifier will not anonymize the function.
|
|
783
|
-
next.done = true;
|
|
784
|
-
return next;
|
|
785
|
-
};
|
|
786
|
-
};
|
|
787
|
-
|
|
788
|
-
function values(iterable) {
|
|
789
|
-
if (iterable) {
|
|
790
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
|
791
|
-
if (iteratorMethod) {
|
|
792
|
-
return iteratorMethod.call(iterable);
|
|
793
|
-
}
|
|
794
|
-
|
|
795
|
-
if (typeof iterable.next === "function") {
|
|
796
|
-
return iterable;
|
|
797
|
-
}
|
|
798
|
-
|
|
799
|
-
if (!isNaN(iterable.length)) {
|
|
800
|
-
var i = -1, next = function next() {
|
|
801
|
-
while (++i < iterable.length) {
|
|
802
|
-
if (hasOwn.call(iterable, i)) {
|
|
803
|
-
next.value = iterable[i];
|
|
804
|
-
next.done = false;
|
|
805
|
-
return next;
|
|
806
|
-
}
|
|
807
|
-
}
|
|
808
|
-
|
|
809
|
-
next.value = undefined;
|
|
810
|
-
next.done = true;
|
|
811
|
-
|
|
812
|
-
return next;
|
|
813
|
-
};
|
|
814
|
-
|
|
815
|
-
return next.next = next;
|
|
503
|
+
function values(e) {
|
|
504
|
+
if (e || "" === e) {
|
|
505
|
+
var r = e[a];
|
|
506
|
+
if (r) return r.call(e);
|
|
507
|
+
if ("function" == typeof e.next) return e;
|
|
508
|
+
if (!isNaN(e.length)) {
|
|
509
|
+
var o = -1,
|
|
510
|
+
i = function next() {
|
|
511
|
+
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
512
|
+
return next.value = t, next.done = !0, next;
|
|
513
|
+
};
|
|
514
|
+
return i.next = i;
|
|
816
515
|
}
|
|
817
516
|
}
|
|
818
|
-
|
|
819
|
-
// Return an iterator with no values.
|
|
820
|
-
return { next: doneResult };
|
|
821
|
-
}
|
|
822
|
-
exports.values = values;
|
|
823
|
-
|
|
824
|
-
function doneResult() {
|
|
825
|
-
return { value: undefined, done: true };
|
|
517
|
+
throw new TypeError(_typeof(e) + " is not iterable");
|
|
826
518
|
}
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
519
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
520
|
+
value: GeneratorFunctionPrototype,
|
|
521
|
+
configurable: !0
|
|
522
|
+
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
523
|
+
value: GeneratorFunction,
|
|
524
|
+
configurable: !0
|
|
525
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
526
|
+
var e = "function" == typeof t && t.constructor;
|
|
527
|
+
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
528
|
+
}, e.mark = function (t) {
|
|
529
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
530
|
+
}, e.awrap = function (t) {
|
|
531
|
+
return {
|
|
532
|
+
__await: t
|
|
533
|
+
};
|
|
534
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
535
|
+
return this;
|
|
536
|
+
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
|
537
|
+
void 0 === i && (i = Promise);
|
|
538
|
+
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
539
|
+
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
540
|
+
return t.done ? t.value : a.next();
|
|
541
|
+
});
|
|
542
|
+
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
543
|
+
return this;
|
|
544
|
+
}), define(g, "toString", function () {
|
|
545
|
+
return "[object Generator]";
|
|
546
|
+
}), e.keys = function (t) {
|
|
547
|
+
var e = Object(t),
|
|
548
|
+
r = [];
|
|
549
|
+
for (var n in e) r.push(n);
|
|
550
|
+
return r.reverse(), function next() {
|
|
551
|
+
for (; r.length;) {
|
|
552
|
+
var t = r.pop();
|
|
553
|
+
if (t in e) return next.value = t, next.done = !1, next;
|
|
854
554
|
}
|
|
555
|
+
return next.done = !0, next;
|
|
556
|
+
};
|
|
557
|
+
}, e.values = values, Context.prototype = {
|
|
558
|
+
constructor: Context,
|
|
559
|
+
reset: function reset(e) {
|
|
560
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
|
855
561
|
},
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
var rootEntry = this.tryEntries[0];
|
|
861
|
-
var rootRecord = rootEntry.completion;
|
|
862
|
-
if (rootRecord.type === "throw") {
|
|
863
|
-
throw rootRecord.arg;
|
|
864
|
-
}
|
|
865
|
-
|
|
562
|
+
stop: function stop() {
|
|
563
|
+
this.done = !0;
|
|
564
|
+
var t = this.tryEntries[0].completion;
|
|
565
|
+
if ("throw" === t.type) throw t.arg;
|
|
866
566
|
return this.rval;
|
|
867
567
|
},
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
568
|
+
dispatchException: function dispatchException(e) {
|
|
569
|
+
if (this.done) throw e;
|
|
570
|
+
var r = this;
|
|
571
|
+
function handle(n, o) {
|
|
572
|
+
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
872
573
|
}
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
}
|
|
886
|
-
|
|
887
|
-
return !! caught;
|
|
888
|
-
}
|
|
889
|
-
|
|
890
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
891
|
-
var entry = this.tryEntries[i];
|
|
892
|
-
var record = entry.completion;
|
|
893
|
-
|
|
894
|
-
if (entry.tryLoc === "root") {
|
|
895
|
-
// Exception thrown outside of any try block that could handle
|
|
896
|
-
// it, so set the completion value of the entire function to
|
|
897
|
-
// throw the exception.
|
|
898
|
-
return handle("end");
|
|
899
|
-
}
|
|
900
|
-
|
|
901
|
-
if (entry.tryLoc <= this.prev) {
|
|
902
|
-
var hasCatch = hasOwn.call(entry, "catchLoc");
|
|
903
|
-
var hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
904
|
-
|
|
905
|
-
if (hasCatch && hasFinally) {
|
|
906
|
-
if (this.prev < entry.catchLoc) {
|
|
907
|
-
return handle(entry.catchLoc, true);
|
|
908
|
-
} else if (this.prev < entry.finallyLoc) {
|
|
909
|
-
return handle(entry.finallyLoc);
|
|
910
|
-
}
|
|
911
|
-
|
|
912
|
-
} else if (hasCatch) {
|
|
913
|
-
if (this.prev < entry.catchLoc) {
|
|
914
|
-
return handle(entry.catchLoc, true);
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
} else if (hasFinally) {
|
|
918
|
-
if (this.prev < entry.finallyLoc) {
|
|
919
|
-
return handle(entry.finallyLoc);
|
|
920
|
-
}
|
|
921
|
-
|
|
574
|
+
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
575
|
+
var i = this.tryEntries[o],
|
|
576
|
+
a = i.completion;
|
|
577
|
+
if ("root" === i.tryLoc) return handle("end");
|
|
578
|
+
if (i.tryLoc <= this.prev) {
|
|
579
|
+
var c = n.call(i, "catchLoc"),
|
|
580
|
+
u = n.call(i, "finallyLoc");
|
|
581
|
+
if (c && u) {
|
|
582
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
583
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
584
|
+
} else if (c) {
|
|
585
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
922
586
|
} else {
|
|
923
|
-
throw new Error("try statement without catch or finally");
|
|
587
|
+
if (!u) throw new Error("try statement without catch or finally");
|
|
588
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
924
589
|
}
|
|
925
590
|
}
|
|
926
591
|
}
|
|
927
592
|
},
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
hasOwn.call(entry, "finallyLoc") &&
|
|
934
|
-
this.prev < entry.finallyLoc) {
|
|
935
|
-
var finallyEntry = entry;
|
|
593
|
+
abrupt: function abrupt(t, e) {
|
|
594
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
595
|
+
var o = this.tryEntries[r];
|
|
596
|
+
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
597
|
+
var i = o;
|
|
936
598
|
break;
|
|
937
599
|
}
|
|
938
600
|
}
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
type === "continue") &&
|
|
943
|
-
finallyEntry.tryLoc <= arg &&
|
|
944
|
-
arg <= finallyEntry.finallyLoc) {
|
|
945
|
-
// Ignore the finally entry if control is not jumping to a
|
|
946
|
-
// location outside the try/catch block.
|
|
947
|
-
finallyEntry = null;
|
|
948
|
-
}
|
|
949
|
-
|
|
950
|
-
var record = finallyEntry ? finallyEntry.completion : {};
|
|
951
|
-
record.type = type;
|
|
952
|
-
record.arg = arg;
|
|
953
|
-
|
|
954
|
-
if (finallyEntry) {
|
|
955
|
-
this.method = "next";
|
|
956
|
-
this.next = finallyEntry.finallyLoc;
|
|
957
|
-
return ContinueSentinel;
|
|
958
|
-
}
|
|
959
|
-
|
|
960
|
-
return this.complete(record);
|
|
601
|
+
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
602
|
+
var a = i ? i.completion : {};
|
|
603
|
+
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
961
604
|
},
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
throw record.arg;
|
|
966
|
-
}
|
|
967
|
-
|
|
968
|
-
if (record.type === "break" ||
|
|
969
|
-
record.type === "continue") {
|
|
970
|
-
this.next = record.arg;
|
|
971
|
-
} else if (record.type === "return") {
|
|
972
|
-
this.rval = this.arg = record.arg;
|
|
973
|
-
this.method = "return";
|
|
974
|
-
this.next = "end";
|
|
975
|
-
} else if (record.type === "normal" && afterLoc) {
|
|
976
|
-
this.next = afterLoc;
|
|
977
|
-
}
|
|
978
|
-
|
|
979
|
-
return ContinueSentinel;
|
|
605
|
+
complete: function complete(t, e) {
|
|
606
|
+
if ("throw" === t.type) throw t.arg;
|
|
607
|
+
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
|
980
608
|
},
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
if (entry.finallyLoc === finallyLoc) {
|
|
986
|
-
this.complete(entry.completion, entry.afterLoc);
|
|
987
|
-
resetTryEntry(entry);
|
|
988
|
-
return ContinueSentinel;
|
|
989
|
-
}
|
|
609
|
+
finish: function finish(t) {
|
|
610
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
611
|
+
var r = this.tryEntries[e];
|
|
612
|
+
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
990
613
|
}
|
|
991
614
|
},
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
resetTryEntry(entry);
|
|
615
|
+
"catch": function _catch(t) {
|
|
616
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
617
|
+
var r = this.tryEntries[e];
|
|
618
|
+
if (r.tryLoc === t) {
|
|
619
|
+
var n = r.completion;
|
|
620
|
+
if ("throw" === n.type) {
|
|
621
|
+
var o = n.arg;
|
|
622
|
+
resetTryEntry(r);
|
|
1001
623
|
}
|
|
1002
|
-
return
|
|
624
|
+
return o;
|
|
1003
625
|
}
|
|
1004
626
|
}
|
|
1005
|
-
|
|
1006
|
-
// The context.catch method must only be called with a location
|
|
1007
|
-
// argument that corresponds to a known catch block.
|
|
1008
627
|
throw new Error("illegal catch attempt");
|
|
1009
628
|
},
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
};
|
|
1017
|
-
|
|
1018
|
-
if (this.method === "next") {
|
|
1019
|
-
// Deliberately forget the last sent value so that we don't
|
|
1020
|
-
// accidentally pass it on to the delegate.
|
|
1021
|
-
this.arg = undefined;
|
|
1022
|
-
}
|
|
1023
|
-
|
|
1024
|
-
return ContinueSentinel;
|
|
629
|
+
delegateYield: function delegateYield(e, r, n) {
|
|
630
|
+
return this.delegate = {
|
|
631
|
+
iterator: values(e),
|
|
632
|
+
resultName: r,
|
|
633
|
+
nextLoc: n
|
|
634
|
+
}, "next" === this.method && (this.arg = t), y;
|
|
1025
635
|
}
|
|
1026
|
-
};
|
|
1027
|
-
|
|
1028
|
-
// Regardless of whether this script is executing as a CommonJS module
|
|
1029
|
-
// or not, return the runtime object so that we can declare the variable
|
|
1030
|
-
// regeneratorRuntime in the outer scope, which allows this module to be
|
|
1031
|
-
// injected easily by `bin/regenerator --include-runtime script.js`.
|
|
1032
|
-
return exports;
|
|
1033
|
-
|
|
1034
|
-
}(
|
|
1035
|
-
// If this script is executing as a CommonJS module, use module.exports
|
|
1036
|
-
// as the regeneratorRuntime namespace. Otherwise create a new empty
|
|
1037
|
-
// object. Either way, the resulting object will be used to initialize
|
|
1038
|
-
// the regeneratorRuntime variable at the top of this file.
|
|
1039
|
-
true ? module.exports : 0
|
|
1040
|
-
));
|
|
1041
|
-
|
|
1042
|
-
try {
|
|
1043
|
-
regeneratorRuntime = runtime;
|
|
1044
|
-
} catch (accidentalStrictMode) {
|
|
1045
|
-
// This module should not be running in strict mode, so the above
|
|
1046
|
-
// assignment should always work unless something is misconfigured. Just
|
|
1047
|
-
// in case runtime.js accidentally runs in strict mode, we can escape
|
|
1048
|
-
// strict mode using a global Function call. This could conceivably fail
|
|
1049
|
-
// if a Content Security Policy forbids using Function, but in that case
|
|
1050
|
-
// the proper solution is to fix the accidental strict mode problem. If
|
|
1051
|
-
// you've misconfigured your bundler to force strict mode and applied a
|
|
1052
|
-
// CSP to forbid Function, and you're not willing to fix either of those
|
|
1053
|
-
// problems, please detail your unique predicament in a GitHub issue.
|
|
1054
|
-
Function("r", "regeneratorRuntime = r")(runtime);
|
|
636
|
+
}, e;
|
|
1055
637
|
}
|
|
1056
|
-
|
|
638
|
+
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1057
639
|
|
|
1058
640
|
/***/ }),
|
|
1059
641
|
|
|
1060
|
-
/***/
|
|
642
|
+
/***/ 8698:
|
|
1061
643
|
/***/ ((module) => {
|
|
1062
644
|
|
|
1063
|
-
|
|
1064
|
-
|
|
645
|
+
function _typeof(o) {
|
|
646
|
+
"@babel/helpers - typeof";
|
|
647
|
+
|
|
648
|
+
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
649
|
+
return typeof o;
|
|
650
|
+
} : function (o) {
|
|
651
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
652
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
|
|
653
|
+
}
|
|
654
|
+
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1065
655
|
|
|
1066
656
|
/***/ }),
|
|
1067
657
|
|
|
1068
|
-
/***/
|
|
1069
|
-
/***/ ((module) => {
|
|
658
|
+
/***/ 4687:
|
|
659
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1070
660
|
|
|
1071
|
-
|
|
1072
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__5225__;
|
|
661
|
+
// TODO(Babel 8): Remove this file.
|
|
1073
662
|
|
|
1074
|
-
|
|
663
|
+
var runtime = __webpack_require__(7061)();
|
|
664
|
+
module.exports = runtime;
|
|
1075
665
|
|
|
1076
|
-
|
|
1077
|
-
|
|
666
|
+
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
|
667
|
+
try {
|
|
668
|
+
regeneratorRuntime = runtime;
|
|
669
|
+
} catch (accidentalStrictMode) {
|
|
670
|
+
if (typeof globalThis === "object") {
|
|
671
|
+
globalThis.regeneratorRuntime = runtime;
|
|
672
|
+
} else {
|
|
673
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
|
674
|
+
}
|
|
675
|
+
}
|
|
1078
676
|
|
|
1079
|
-
"use strict";
|
|
1080
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__5293__;
|
|
1081
677
|
|
|
1082
678
|
/***/ })
|
|
1083
679
|
|
|
@@ -1172,7 +768,7 @@ var component = __webpack_require__(2725);
|
|
|
1172
768
|
// EXTERNAL MODULE: ./src/core/ConnectStateWrapper/component.jsx
|
|
1173
769
|
var ConnectStateWrapper_component = __webpack_require__(9787);
|
|
1174
770
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
1175
|
-
var regenerator = __webpack_require__(
|
|
771
|
+
var regenerator = __webpack_require__(4687);
|
|
1176
772
|
;// CONCATENATED MODULE: ./src/core/remote-blogs-posts.js
|
|
1177
773
|
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; }
|
|
1178
774
|
|