@babel/runtime-corejs3
Advanced tools
Comparing version 8.0.0-alpha.8 to 8.0.0-alpha.9
@@ -1,24 +0,9 @@ | ||
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { | ||
var desc = {}; | ||
Object.keys(descriptor).forEach(function (key) { | ||
desc[key] = descriptor[key]; | ||
}); | ||
desc.enumerable = !!desc.enumerable; | ||
desc.configurable = !!desc.configurable; | ||
if ('value' in desc || desc.initializer) { | ||
desc.writable = true; | ||
} | ||
desc = decorators.slice().reverse().reduce(function (desc, decorator) { | ||
return decorator(target, property, desc) || desc; | ||
}, desc); | ||
if (context && desc.initializer !== void 0) { | ||
desc.value = desc.initializer ? desc.initializer.call(context) : void 0; | ||
desc.initializer = undefined; | ||
} | ||
if (desc.initializer === void 0) { | ||
Object.defineProperty(target, property, desc); | ||
desc = null; | ||
} | ||
return desc; | ||
function _applyDecoratedDescriptor(i, e, r, n, l) { | ||
var a = {}; | ||
return Object.keys(n).forEach(function (i) { | ||
a[i] = n[i]; | ||
}), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, ("value" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { | ||
return n(i, e, r) || r; | ||
}, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer && (Object.defineProperty(i, e, a), a = null), a; | ||
} | ||
module.exports = _applyDecoratedDescriptor, module.exports.__esModule = true, module.exports.default = module.exports; |
var _Symbol$metadata = require("core-js-pure/features/symbol/metadata.js"); | ||
var _pushInstanceProperty = require("core-js-pure/features/instance/push.js"); | ||
var _unshiftInstanceProperty = require("core-js-pure/features/instance/unshift.js"); | ||
var checkInRHS = require("./checkInRHS.js"); | ||
var setFunctionName = require("./setFunctionName.js"); | ||
var toPropertyKey = require("./toPropertyKey.js"); | ||
const checkInRHS = require("./checkInRHS.js"); | ||
const setFunctionName = require("./setFunctionName.js"); | ||
const toPropertyKey = require("./toPropertyKey.js"); | ||
function applyDecs2311(e, t, n, r, o, i) { | ||
@@ -64,6 +64,6 @@ var a, | ||
for (var N = e, O = h.length - 1; O >= 0; O -= n ? 2 : 1) { | ||
var z = b(h[O], "A decorator", "be", !0), | ||
A = n ? h[O - 1] : void 0, | ||
H = {}, | ||
K = { | ||
var T = b(h[O], "A decorator", "be", !0), | ||
z = n ? h[O - 1] : void 0, | ||
A = {}, | ||
H = { | ||
kind: ["field", "accessor", "method", "getter", "setter", "class"][o], | ||
@@ -73,7 +73,7 @@ name: r, | ||
addInitializer: function (e, t) { | ||
if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); | ||
if (e.v) throw new TypeError("attempted to call addInitializer after decoration was finished"); | ||
b(t, "An initializer", "be", !0), _pushInstanceProperty(i).call(i, t); | ||
}.bind(null, H) | ||
}.bind(null, A) | ||
}; | ||
if (w) c = z.call(A, N, K), H.v = 1, b(c, "class decorators", "return") && (N = c);else if (K.static = s, K.private = f, c = K.access = { | ||
if (w) c = T.call(z, N, H), A.v = 1, b(c, "class decorators", "return") && (N = c);else if (H.static = s, H.private = f, c = H.access = { | ||
has: f ? p.bind() : function (e) { | ||
@@ -88,6 +88,6 @@ return r in e; | ||
e[r] = t; | ||
}), N = z.call(A, D ? { | ||
}), N = T.call(z, D ? { | ||
get: P.get, | ||
set: P.set | ||
} : P[F], K), H.v = 1, D) { | ||
} : P[F], H), A.v = 1, D) { | ||
if ("object" == typeof N && N) (c = b(N.get, "accessor.get")) && (P.get = c), (c = b(N.set, "accessor.set")) && (P.set = c), (c = b(N.init, "accessor.init")) && _unshiftInstanceProperty(k).call(k, c);else if (void 0 !== N) throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined"); | ||
@@ -94,0 +94,0 @@ } else b(N, (l ? "field" : "method") + " decorators", "return") && (l ? _unshiftInstanceProperty(k).call(k, N) : P[F] = N); |
@@ -1,6 +0,6 @@ | ||
function _arrayLikeToArray(arr, len) { | ||
if (len == null || len > arr.length) len = arr.length; | ||
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; | ||
return arr2; | ||
function _arrayLikeToArray(r, a) { | ||
(null == a || a > r.length) && (a = r.length); | ||
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; | ||
return n; | ||
} | ||
module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -1,4 +0,4 @@ | ||
function _arrayWithHoles(arr) { | ||
if (Array.isArray(arr)) return arr; | ||
function _arrayWithHoles(r) { | ||
if (Array.isArray(r)) return r; | ||
} | ||
module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -1,5 +0,5 @@ | ||
var arrayLikeToArray = require("./arrayLikeToArray.js"); | ||
function _arrayWithoutHoles(arr) { | ||
if (Array.isArray(arr)) return arrayLikeToArray(arr); | ||
const arrayLikeToArray = require("./arrayLikeToArray.js"); | ||
function _arrayWithoutHoles(r) { | ||
if (Array.isArray(r)) return arrayLikeToArray(r); | ||
} | ||
module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -1,7 +0,5 @@ | ||
function _assertThisInitialized(self) { | ||
if (self === void 0) { | ||
throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | ||
} | ||
return self; | ||
function _assertThisInitialized(e) { | ||
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | ||
return e; | ||
} | ||
module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -1,2 +0,2 @@ | ||
var OverloadYield = require("./OverloadYield.js"); | ||
const OverloadYield = require("./OverloadYield.js"); | ||
function AsyncGenerator(e) { | ||
@@ -3,0 +3,0 @@ var r, t; |
@@ -1,2 +0,2 @@ | ||
var OverloadYield = require("./OverloadYield.js"); | ||
const OverloadYield = require("./OverloadYield.js"); | ||
function _asyncGeneratorDelegate(t) { | ||
@@ -3,0 +3,0 @@ var e = {}, |
@@ -1,28 +0,23 @@ | ||
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { | ||
function asyncGeneratorStep(n, t, e, r, o, a, c) { | ||
try { | ||
var info = gen[key](arg); | ||
var value = info.value; | ||
} catch (error) { | ||
reject(error); | ||
return; | ||
var i = n[a](c), | ||
u = i.value; | ||
} catch (n) { | ||
return void e(n); | ||
} | ||
if (info.done) { | ||
resolve(value); | ||
} else { | ||
Promise.resolve(value).then(_next, _throw); | ||
} | ||
i.done ? t(u) : Promise.resolve(u).then(r, o); | ||
} | ||
function _asyncToGenerator(fn) { | ||
function _asyncToGenerator(n) { | ||
return function () { | ||
var self = this, | ||
args = arguments; | ||
return new Promise(function (resolve, reject) { | ||
var gen = fn.apply(self, args); | ||
function _next(value) { | ||
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); | ||
var t = this, | ||
e = arguments; | ||
return new Promise(function (r, o) { | ||
var a = n.apply(t, e); | ||
function _next(n) { | ||
asyncGeneratorStep(a, r, o, _next, _throw, "next", n); | ||
} | ||
function _throw(err) { | ||
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); | ||
function _throw(n) { | ||
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); | ||
} | ||
_next(undefined); | ||
_next(void 0); | ||
}); | ||
@@ -29,0 +24,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
var OverloadYield = require("./OverloadYield.js"); | ||
const OverloadYield = require("./OverloadYield.js"); | ||
function _awaitAsyncGenerator(e) { | ||
@@ -3,0 +3,0 @@ return new OverloadYield(e, 0); |
@@ -1,4 +0,4 @@ | ||
var getPrototypeOf = require("./getPrototypeOf.js"); | ||
var isNativeReflectConstruct = require("./isNativeReflectConstruct.js"); | ||
var possibleConstructorReturn = require("./possibleConstructorReturn.js"); | ||
const getPrototypeOf = require("./getPrototypeOf.js"); | ||
const isNativeReflectConstruct = require("./isNativeReflectConstruct.js"); | ||
const possibleConstructorReturn = require("./possibleConstructorReturn.js"); | ||
function _callSuper(t, o, e) { | ||
@@ -5,0 +5,0 @@ return o = getPrototypeOf(o), possibleConstructorReturn(t, isNativeReflectConstruct() ? Reflect.construct(o, e || [], getPrototypeOf(t).constructor) : o.apply(t, e)); |
@@ -1,6 +0,4 @@ | ||
function _checkPrivateRedeclaration(obj, privateCollection) { | ||
if (privateCollection.has(obj)) { | ||
throw new TypeError("Cannot initialize the same private elements twice on an object"); | ||
} | ||
function _checkPrivateRedeclaration(e, t) { | ||
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); | ||
} | ||
module.exports = _checkPrivateRedeclaration, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -1,6 +0,4 @@ | ||
function _classCallCheck(instance, Constructor) { | ||
if (!(instance instanceof Constructor)) { | ||
throw new TypeError("Cannot call a class as a function"); | ||
} | ||
function _classCallCheck(a, n) { | ||
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); | ||
} | ||
module.exports = _classCallCheck, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -1,4 +0,4 @@ | ||
function _classNameTDZError(name) { | ||
throw new ReferenceError("Class \"" + name + "\" cannot be referenced in computed property keys."); | ||
function _classNameTDZError(e) { | ||
throw new ReferenceError('Class "' + e + '" cannot be referenced in computed property keys.'); | ||
} | ||
module.exports = _classNameTDZError, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -1,2 +0,2 @@ | ||
var assertClassBrand = require("./assertClassBrand.js"); | ||
const assertClassBrand = require("./assertClassBrand.js"); | ||
function _classPrivateFieldGet2(s, a) { | ||
@@ -3,0 +3,0 @@ return s.get(assertClassBrand(s, a)); |
@@ -1,6 +0,5 @@ | ||
var checkPrivateRedeclaration = require("./checkPrivateRedeclaration.js"); | ||
function _classPrivateFieldInitSpec(obj, privateMap, value) { | ||
checkPrivateRedeclaration(obj, privateMap); | ||
privateMap.set(obj, value); | ||
const checkPrivateRedeclaration = require("./checkPrivateRedeclaration.js"); | ||
function _classPrivateFieldInitSpec(e, t, a) { | ||
checkPrivateRedeclaration(e, t), t.set(e, a); | ||
} | ||
module.exports = _classPrivateFieldInitSpec, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -1,7 +0,5 @@ | ||
function _classPrivateFieldBase(receiver, privateKey) { | ||
if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { | ||
throw new TypeError("attempted to use private field on non-instance"); | ||
} | ||
return receiver; | ||
function _classPrivateFieldBase(e, t) { | ||
if (!{}.hasOwnProperty.call(e, t)) throw new TypeError("attempted to use private field on non-instance"); | ||
return e; | ||
} | ||
module.exports = _classPrivateFieldBase, module.exports.__esModule = true, module.exports.default = module.exports; |
var id = 0; | ||
function _classPrivateFieldKey(name) { | ||
return "__private_" + id++ + "_" + name; | ||
function _classPrivateFieldKey(e) { | ||
return "__private_" + id++ + "_" + e; | ||
} | ||
module.exports = _classPrivateFieldKey, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -1,2 +0,2 @@ | ||
var assertClassBrand = require("./assertClassBrand.js"); | ||
const assertClassBrand = require("./assertClassBrand.js"); | ||
function _classPrivateFieldSet2(s, a, r) { | ||
@@ -3,0 +3,0 @@ return s.set(assertClassBrand(s, a), r), r; |
@@ -1,2 +0,2 @@ | ||
var assertClassBrand = require("./assertClassBrand.js"); | ||
const assertClassBrand = require("./assertClassBrand.js"); | ||
function _classPrivateGetter(s, r, a) { | ||
@@ -3,0 +3,0 @@ return a(assertClassBrand(s, r)); |
@@ -1,6 +0,5 @@ | ||
var checkPrivateRedeclaration = require("./checkPrivateRedeclaration.js"); | ||
function _classPrivateMethodInitSpec(obj, privateSet) { | ||
checkPrivateRedeclaration(obj, privateSet); | ||
privateSet.add(obj); | ||
const checkPrivateRedeclaration = require("./checkPrivateRedeclaration.js"); | ||
function _classPrivateMethodInitSpec(e, a) { | ||
checkPrivateRedeclaration(e, a), a.add(e); | ||
} | ||
module.exports = _classPrivateMethodInitSpec, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -1,2 +0,2 @@ | ||
var assertClassBrand = require("./assertClassBrand.js"); | ||
const assertClassBrand = require("./assertClassBrand.js"); | ||
function _classPrivateSetter(s, r, a, t) { | ||
@@ -3,0 +3,0 @@ return r(assertClassBrand(s, a), t), t; |
@@ -1,6 +0,5 @@ | ||
var assertClassBrand = require("./assertClassBrand.js"); | ||
function _classStaticPrivateMethodGet(receiver, classConstructor, method) { | ||
assertClassBrand(classConstructor, receiver); | ||
return method; | ||
const assertClassBrand = require("./assertClassBrand.js"); | ||
function _classStaticPrivateMethodGet(s, a, t) { | ||
return assertClassBrand(a, s), t; | ||
} | ||
module.exports = _classStaticPrivateMethodGet, module.exports.__esModule = true, module.exports.default = module.exports; |
var _pushInstanceProperty = require("core-js-pure/features/instance/push.js"); | ||
var setPrototypeOf = require("./setPrototypeOf.js"); | ||
var isNativeReflectConstruct = require("./isNativeReflectConstruct.js"); | ||
const isNativeReflectConstruct = require("./isNativeReflectConstruct.js"); | ||
const setPrototypeOf = require("./setPrototypeOf.js"); | ||
function _construct(t, e, r) { | ||
@@ -5,0 +5,0 @@ if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments); |
@@ -1,19 +0,13 @@ | ||
var toPropertyKey = require("./toPropertyKey.js"); | ||
function _defineProperties(target, props) { | ||
for (var i = 0; i < props.length; i++) { | ||
var descriptor = props[i]; | ||
descriptor.enumerable = descriptor.enumerable || false; | ||
descriptor.configurable = true; | ||
if ("value" in descriptor) descriptor.writable = true; | ||
Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor); | ||
const toPropertyKey = require("./toPropertyKey.js"); | ||
function _defineProperties(e, r) { | ||
for (var t = 0; t < r.length; t++) { | ||
var o = r[t]; | ||
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o); | ||
} | ||
} | ||
function _createClass(Constructor, protoProps, staticProps) { | ||
if (protoProps) _defineProperties(Constructor.prototype, protoProps); | ||
if (staticProps) _defineProperties(Constructor, staticProps); | ||
Object.defineProperty(Constructor, "prototype", { | ||
writable: false | ||
}); | ||
return Constructor; | ||
function _createClass(e, r, t) { | ||
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { | ||
writable: !1 | ||
}), e; | ||
} | ||
module.exports = _createClass, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -1,22 +0,21 @@ | ||
var unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); | ||
function _createForOfIteratorHelper(o, allowArrayLike) { | ||
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; | ||
if (!it) { | ||
if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { | ||
if (it) o = it; | ||
var i = 0; | ||
var F = function () {}; | ||
const unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); | ||
function _createForOfIteratorHelper(r, e) { | ||
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; | ||
if (!t) { | ||
if (Array.isArray(r) || (t = unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { | ||
t && (r = t); | ||
var n = 0, | ||
F = function () {}; | ||
return { | ||
s: F, | ||
n: function () { | ||
if (i >= o.length) return { | ||
done: true | ||
return n >= r.length ? { | ||
done: !0 | ||
} : { | ||
done: !1, | ||
value: r[n++] | ||
}; | ||
return { | ||
done: false, | ||
value: o[i++] | ||
}; | ||
}, | ||
e: function (e) { | ||
throw e; | ||
e: function (r) { | ||
throw r; | ||
}, | ||
@@ -28,23 +27,21 @@ f: F | ||
} | ||
var normalCompletion = true, | ||
didErr = false, | ||
err; | ||
var o, | ||
a = !0, | ||
u = !1; | ||
return { | ||
s: function () { | ||
it = it.call(o); | ||
t = t.call(r); | ||
}, | ||
n: function () { | ||
var step = it.next(); | ||
normalCompletion = step.done; | ||
return step; | ||
var r = t.next(); | ||
return a = r.done, r; | ||
}, | ||
e: function (e) { | ||
didErr = true; | ||
err = e; | ||
e: function (r) { | ||
u = !0, o = r; | ||
}, | ||
f: function () { | ||
try { | ||
if (!normalCompletion && it.return != null) it.return(); | ||
a || null == t.return || t.return(); | ||
} finally { | ||
if (didErr) throw err; | ||
if (u) throw o; | ||
} | ||
@@ -51,0 +48,0 @@ } |
@@ -1,16 +0,15 @@ | ||
var unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); | ||
function _createForOfIteratorHelperLoose(o, allowArrayLike) { | ||
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; | ||
if (it) return (it = it.call(o)).next.bind(it); | ||
if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { | ||
if (it) o = it; | ||
var i = 0; | ||
const unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); | ||
function _createForOfIteratorHelperLoose(r, e) { | ||
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; | ||
if (t) return (t = t.call(r)).next.bind(t); | ||
if (Array.isArray(r) || (t = unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { | ||
t && (r = t); | ||
var o = 0; | ||
return function () { | ||
if (i >= o.length) return { | ||
done: true | ||
return o >= r.length ? { | ||
done: !0 | ||
} : { | ||
done: !1, | ||
value: r[o++] | ||
}; | ||
return { | ||
done: false, | ||
value: o[i++] | ||
}; | ||
}; | ||
@@ -17,0 +16,0 @@ } |
var _pushInstanceProperty = require("core-js-pure/features/instance/push.js"); | ||
var toArray = require("./toArray.js"); | ||
var toPropertyKey = require("./toPropertyKey.js"); | ||
function _decorate(decorators, factory, superClass, mixins) { | ||
var api = _getDecoratorsApi(); | ||
if (mixins) { | ||
for (var i = 0; i < mixins.length; i++) { | ||
api = mixins[i](api); | ||
} | ||
} | ||
var r = factory(function initialize(O) { | ||
api.initializeInstanceElements(O, decorated.elements); | ||
}, superClass); | ||
var decorated = api.decorateClass(_coalesceClassElements(r.d.map(_createElementDescriptor)), decorators); | ||
api.initializeClassElements(r.F, decorated.elements); | ||
return api.runClassFinishers(r.F, decorated.finishers); | ||
const toArray = require("./toArray.js"); | ||
const toPropertyKey = require("./toPropertyKey.js"); | ||
function _decorate(e, r, t, i) { | ||
var o = _getDecoratorsApi(); | ||
if (i) for (var n = 0; n < i.length; n++) o = i[n](o); | ||
var s = r(function (e) { | ||
o.initializeInstanceElements(e, a.elements); | ||
}, t), | ||
a = o.decorateClass(_coalesceClassElements(s.d.map(_createElementDescriptor)), e); | ||
return o.initializeClassElements(s.F, a.elements), o.runClassFinishers(s.F, a.finishers); | ||
} | ||
function _getDecoratorsApi() { | ||
_getDecoratorsApi = function () { | ||
return api; | ||
return e; | ||
}; | ||
var api = { | ||
var e = { | ||
elementsDefinitionOrder: [["method"], ["field"]], | ||
initializeInstanceElements: function (O, elements) { | ||
["method", "field"].forEach(function (kind) { | ||
elements.forEach(function (element) { | ||
if (element.kind === kind && element.placement === "own") { | ||
this.defineClassElement(O, element); | ||
} | ||
initializeInstanceElements: function (e, r) { | ||
["method", "field"].forEach(function (t) { | ||
r.forEach(function (r) { | ||
r.kind === t && "own" === r.placement && this.defineClassElement(e, r); | ||
}, this); | ||
}, this); | ||
}, | ||
initializeClassElements: function (F, elements) { | ||
var proto = F.prototype; | ||
["method", "field"].forEach(function (kind) { | ||
elements.forEach(function (element) { | ||
var placement = element.placement; | ||
if (element.kind === kind && (placement === "static" || placement === "prototype")) { | ||
var receiver = placement === "static" ? F : proto; | ||
this.defineClassElement(receiver, element); | ||
initializeClassElements: function (e, r) { | ||
var t = e.prototype; | ||
["method", "field"].forEach(function (i) { | ||
r.forEach(function (r) { | ||
var o = r.placement; | ||
if (r.kind === i && ("static" === o || "prototype" === o)) { | ||
var n = "static" === o ? e : t; | ||
this.defineClassElement(n, r); | ||
} | ||
@@ -45,301 +38,215 @@ }, this); | ||
}, | ||
defineClassElement: function (receiver, element) { | ||
var descriptor = element.descriptor; | ||
if (element.kind === "field") { | ||
var initializer = element.initializer; | ||
descriptor = { | ||
enumerable: descriptor.enumerable, | ||
writable: descriptor.writable, | ||
configurable: descriptor.configurable, | ||
value: initializer === void 0 ? void 0 : initializer.call(receiver) | ||
defineClassElement: function (e, r) { | ||
var t = r.descriptor; | ||
if ("field" === r.kind) { | ||
var i = r.initializer; | ||
t = { | ||
enumerable: t.enumerable, | ||
writable: t.writable, | ||
configurable: t.configurable, | ||
value: void 0 === i ? void 0 : i.call(e) | ||
}; | ||
} | ||
Object.defineProperty(receiver, element.key, descriptor); | ||
Object.defineProperty(e, r.key, t); | ||
}, | ||
decorateClass: function (elements, decorators) { | ||
var newElements = []; | ||
var finishers = []; | ||
var placements = { | ||
static: [], | ||
prototype: [], | ||
own: [] | ||
decorateClass: function (e, r) { | ||
var t = [], | ||
i = [], | ||
o = { | ||
static: [], | ||
prototype: [], | ||
own: [] | ||
}; | ||
if (e.forEach(function (e) { | ||
this.addElementPlacement(e, o); | ||
}, this), e.forEach(function (e) { | ||
if (!_hasDecorators(e)) return _pushInstanceProperty(t).call(t, e); | ||
var r = this.decorateElement(e, o); | ||
_pushInstanceProperty(t).call(t, r.element), _pushInstanceProperty(t).apply(t, r.extras), _pushInstanceProperty(i).apply(i, r.finishers); | ||
}, this), !r) return { | ||
elements: t, | ||
finishers: i | ||
}; | ||
elements.forEach(function (element) { | ||
this.addElementPlacement(element, placements); | ||
}, this); | ||
elements.forEach(function (element) { | ||
if (!_hasDecorators(element)) return _pushInstanceProperty(newElements).call(newElements, element); | ||
var elementFinishersExtras = this.decorateElement(element, placements); | ||
_pushInstanceProperty(newElements).call(newElements, elementFinishersExtras.element); | ||
_pushInstanceProperty(newElements).apply(newElements, elementFinishersExtras.extras); | ||
_pushInstanceProperty(finishers).apply(finishers, elementFinishersExtras.finishers); | ||
}, this); | ||
if (!decorators) { | ||
return { | ||
elements: newElements, | ||
finishers: finishers | ||
}; | ||
} | ||
var result = this.decorateConstructor(newElements, decorators); | ||
_pushInstanceProperty(finishers).apply(finishers, result.finishers); | ||
result.finishers = finishers; | ||
return result; | ||
var n = this.decorateConstructor(t, r); | ||
return _pushInstanceProperty(i).apply(i, n.finishers), n.finishers = i, n; | ||
}, | ||
addElementPlacement: function (element, placements, silent) { | ||
var keys = placements[element.placement]; | ||
if (!silent && keys.indexOf(element.key) !== -1) { | ||
throw new TypeError("Duplicated element (" + element.key + ")"); | ||
} | ||
_pushInstanceProperty(keys).call(keys, element.key); | ||
addElementPlacement: function (e, r, t) { | ||
var i = r[e.placement]; | ||
if (!t && -1 !== i.indexOf(e.key)) throw new TypeError("Duplicated element (" + e.key + ")"); | ||
_pushInstanceProperty(i).call(i, e.key); | ||
}, | ||
decorateElement: function (element, placements) { | ||
var extras = []; | ||
var finishers = []; | ||
for (var decorators = element.decorators, i = decorators.length - 1; i >= 0; i--) { | ||
var keys = placements[element.placement]; | ||
keys.splice(keys.indexOf(element.key), 1); | ||
var elementObject = this.fromElementDescriptor(element); | ||
var elementFinisherExtras = this.toElementFinisherExtras((0, decorators[i])(elementObject) || elementObject); | ||
element = elementFinisherExtras.element; | ||
this.addElementPlacement(element, placements); | ||
if (elementFinisherExtras.finisher) { | ||
_pushInstanceProperty(finishers).call(finishers, elementFinisherExtras.finisher); | ||
decorateElement: function (e, r) { | ||
for (var t = [], i = [], o = e.decorators, n = o.length - 1; n >= 0; n--) { | ||
var s = r[e.placement]; | ||
s.splice(s.indexOf(e.key), 1); | ||
var a = this.fromElementDescriptor(e), | ||
l = this.toElementFinisherExtras((0, o[n])(a) || a); | ||
e = l.element, this.addElementPlacement(e, r), l.finisher && _pushInstanceProperty(i).call(i, l.finisher); | ||
var c = l.extras; | ||
if (c) { | ||
for (var p = 0; p < c.length; p++) this.addElementPlacement(c[p], r); | ||
_pushInstanceProperty(t).apply(t, c); | ||
} | ||
var newExtras = elementFinisherExtras.extras; | ||
if (newExtras) { | ||
for (var j = 0; j < newExtras.length; j++) { | ||
this.addElementPlacement(newExtras[j], placements); | ||
} | ||
_pushInstanceProperty(extras).apply(extras, newExtras); | ||
} | ||
} | ||
return { | ||
element: element, | ||
finishers: finishers, | ||
extras: extras | ||
element: e, | ||
finishers: i, | ||
extras: t | ||
}; | ||
}, | ||
decorateConstructor: function (elements, decorators) { | ||
var finishers = []; | ||
for (var i = decorators.length - 1; i >= 0; i--) { | ||
var obj = this.fromClassDescriptor(elements); | ||
var elementsAndFinisher = this.toClassDescriptor((0, decorators[i])(obj) || obj); | ||
if (elementsAndFinisher.finisher !== undefined) { | ||
_pushInstanceProperty(finishers).call(finishers, elementsAndFinisher.finisher); | ||
decorateConstructor: function (e, r) { | ||
for (var t = [], i = r.length - 1; i >= 0; i--) { | ||
var o = this.fromClassDescriptor(e), | ||
n = this.toClassDescriptor((0, r[i])(o) || o); | ||
if (void 0 !== n.finisher && _pushInstanceProperty(t).call(t, n.finisher), void 0 !== n.elements) { | ||
e = n.elements; | ||
for (var s = 0; s < e.length - 1; s++) for (var a = s + 1; a < e.length; a++) if (e[s].key === e[a].key && e[s].placement === e[a].placement) throw new TypeError("Duplicated element (" + e[s].key + ")"); | ||
} | ||
if (elementsAndFinisher.elements !== undefined) { | ||
elements = elementsAndFinisher.elements; | ||
for (var j = 0; j < elements.length - 1; j++) { | ||
for (var k = j + 1; k < elements.length; k++) { | ||
if (elements[j].key === elements[k].key && elements[j].placement === elements[k].placement) { | ||
throw new TypeError("Duplicated element (" + elements[j].key + ")"); | ||
} | ||
} | ||
} | ||
} | ||
} | ||
return { | ||
elements: elements, | ||
finishers: finishers | ||
elements: e, | ||
finishers: t | ||
}; | ||
}, | ||
fromElementDescriptor: function (element) { | ||
var obj = { | ||
kind: element.kind, | ||
key: element.key, | ||
placement: element.placement, | ||
descriptor: element.descriptor | ||
fromElementDescriptor: function (e) { | ||
var r = { | ||
kind: e.kind, | ||
key: e.key, | ||
placement: e.placement, | ||
descriptor: e.descriptor | ||
}; | ||
var desc = { | ||
return Object.defineProperty(r, Symbol.toStringTag, { | ||
value: "Descriptor", | ||
configurable: true | ||
}; | ||
Object.defineProperty(obj, Symbol.toStringTag, desc); | ||
if (element.kind === "field") obj.initializer = element.initializer; | ||
return obj; | ||
configurable: !0 | ||
}), "field" === e.kind && (r.initializer = e.initializer), r; | ||
}, | ||
toElementDescriptors: function (elementObjects) { | ||
if (elementObjects === undefined) return; | ||
return toArray(elementObjects).map(function (elementObject) { | ||
var element = this.toElementDescriptor(elementObject); | ||
this.disallowProperty(elementObject, "finisher", "An element descriptor"); | ||
this.disallowProperty(elementObject, "extras", "An element descriptor"); | ||
return element; | ||
toElementDescriptors: function (e) { | ||
if (void 0 !== e) return toArray(e).map(function (e) { | ||
var r = this.toElementDescriptor(e); | ||
return this.disallowProperty(e, "finisher", "An element descriptor"), this.disallowProperty(e, "extras", "An element descriptor"), r; | ||
}, this); | ||
}, | ||
toElementDescriptor: function (elementObject) { | ||
var kind = String(elementObject.kind); | ||
if (kind !== "method" && kind !== "field") { | ||
throw new TypeError('An element descriptor\'s .kind property must be either "method" or' + ' "field", but a decorator created an element descriptor with' + ' .kind "' + kind + '"'); | ||
} | ||
var key = toPropertyKey(elementObject.key); | ||
var placement = String(elementObject.placement); | ||
if (placement !== "static" && placement !== "prototype" && placement !== "own") { | ||
throw new TypeError('An element descriptor\'s .placement property must be one of "static",' + ' "prototype" or "own", but a decorator created an element descriptor' + ' with .placement "' + placement + '"'); | ||
} | ||
var descriptor = elementObject.descriptor; | ||
this.disallowProperty(elementObject, "elements", "An element descriptor"); | ||
var element = { | ||
kind: kind, | ||
key: key, | ||
placement: placement, | ||
descriptor: Object.assign({}, descriptor) | ||
toElementDescriptor: function (e) { | ||
var r = e.kind + ""; | ||
if ("method" !== r && "field" !== r) throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "' + r + '"'); | ||
var t = toPropertyKey(e.key), | ||
i = e.placement + ""; | ||
if ("static" !== i && "prototype" !== i && "own" !== i) throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "' + i + '"'); | ||
var o = e.descriptor; | ||
this.disallowProperty(e, "elements", "An element descriptor"); | ||
var n = { | ||
kind: r, | ||
key: t, | ||
placement: i, | ||
descriptor: Object.assign({}, o) | ||
}; | ||
if (kind !== "field") { | ||
this.disallowProperty(elementObject, "initializer", "A method descriptor"); | ||
} else { | ||
this.disallowProperty(descriptor, "get", "The property descriptor of a field descriptor"); | ||
this.disallowProperty(descriptor, "set", "The property descriptor of a field descriptor"); | ||
this.disallowProperty(descriptor, "value", "The property descriptor of a field descriptor"); | ||
element.initializer = elementObject.initializer; | ||
} | ||
return element; | ||
return "field" !== r ? this.disallowProperty(e, "initializer", "A method descriptor") : (this.disallowProperty(o, "get", "The property descriptor of a field descriptor"), this.disallowProperty(o, "set", "The property descriptor of a field descriptor"), this.disallowProperty(o, "value", "The property descriptor of a field descriptor"), n.initializer = e.initializer), n; | ||
}, | ||
toElementFinisherExtras: function (elementObject) { | ||
var element = this.toElementDescriptor(elementObject); | ||
var finisher = _optionalCallableProperty(elementObject, "finisher"); | ||
var extras = this.toElementDescriptors(elementObject.extras); | ||
toElementFinisherExtras: function (e) { | ||
return { | ||
element: element, | ||
finisher: finisher, | ||
extras: extras | ||
element: this.toElementDescriptor(e), | ||
finisher: _optionalCallableProperty(e, "finisher"), | ||
extras: this.toElementDescriptors(e.extras) | ||
}; | ||
}, | ||
fromClassDescriptor: function (elements) { | ||
var obj = { | ||
fromClassDescriptor: function (e) { | ||
var r = { | ||
kind: "class", | ||
elements: elements.map(this.fromElementDescriptor, this) | ||
elements: e.map(this.fromElementDescriptor, this) | ||
}; | ||
var desc = { | ||
return Object.defineProperty(r, Symbol.toStringTag, { | ||
value: "Descriptor", | ||
configurable: true | ||
}; | ||
Object.defineProperty(obj, Symbol.toStringTag, desc); | ||
return obj; | ||
configurable: !0 | ||
}), r; | ||
}, | ||
toClassDescriptor: function (obj) { | ||
var kind = String(obj.kind); | ||
if (kind !== "class") { | ||
throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator' + ' created a class descriptor with .kind "' + kind + '"'); | ||
} | ||
this.disallowProperty(obj, "key", "A class descriptor"); | ||
this.disallowProperty(obj, "placement", "A class descriptor"); | ||
this.disallowProperty(obj, "descriptor", "A class descriptor"); | ||
this.disallowProperty(obj, "initializer", "A class descriptor"); | ||
this.disallowProperty(obj, "extras", "A class descriptor"); | ||
var finisher = _optionalCallableProperty(obj, "finisher"); | ||
var elements = this.toElementDescriptors(obj.elements); | ||
toClassDescriptor: function (e) { | ||
var r = e.kind + ""; | ||
if ("class" !== r) throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "' + r + '"'); | ||
this.disallowProperty(e, "key", "A class descriptor"), this.disallowProperty(e, "placement", "A class descriptor"), this.disallowProperty(e, "descriptor", "A class descriptor"), this.disallowProperty(e, "initializer", "A class descriptor"), this.disallowProperty(e, "extras", "A class descriptor"); | ||
var t = _optionalCallableProperty(e, "finisher"); | ||
return { | ||
elements: elements, | ||
finisher: finisher | ||
elements: this.toElementDescriptors(e.elements), | ||
finisher: t | ||
}; | ||
}, | ||
runClassFinishers: function (constructor, finishers) { | ||
for (var i = 0; i < finishers.length; i++) { | ||
var newConstructor = (0, finishers[i])(constructor); | ||
if (newConstructor !== undefined) { | ||
if (typeof newConstructor !== "function") { | ||
throw new TypeError("Finishers must return a constructor."); | ||
} | ||
constructor = newConstructor; | ||
runClassFinishers: function (e, r) { | ||
for (var t = 0; t < r.length; t++) { | ||
var i = (0, r[t])(e); | ||
if (void 0 !== i) { | ||
if ("function" != typeof i) throw new TypeError("Finishers must return a constructor."); | ||
e = i; | ||
} | ||
} | ||
return constructor; | ||
return e; | ||
}, | ||
disallowProperty: function (obj, name, objectType) { | ||
if (obj[name] !== undefined) { | ||
throw new TypeError(objectType + " can't have a ." + name + " property."); | ||
} | ||
disallowProperty: function (e, r, t) { | ||
if (void 0 !== e[r]) throw new TypeError(t + " can't have a ." + r + " property."); | ||
} | ||
}; | ||
return api; | ||
return e; | ||
} | ||
function _createElementDescriptor(def) { | ||
var key = toPropertyKey(def.key); | ||
var descriptor; | ||
if (def.kind === "method") { | ||
descriptor = { | ||
value: def.value, | ||
writable: true, | ||
configurable: true, | ||
enumerable: false | ||
}; | ||
} else if (def.kind === "get") { | ||
descriptor = { | ||
get: def.value, | ||
configurable: true, | ||
enumerable: false | ||
}; | ||
} else if (def.kind === "set") { | ||
descriptor = { | ||
set: def.value, | ||
configurable: true, | ||
enumerable: false | ||
}; | ||
} else if (def.kind === "field") { | ||
descriptor = { | ||
configurable: true, | ||
writable: true, | ||
enumerable: true | ||
}; | ||
} | ||
var element = { | ||
kind: def.kind === "field" ? "field" : "method", | ||
key: key, | ||
placement: def.static ? "static" : def.kind === "field" ? "own" : "prototype", | ||
descriptor: descriptor | ||
function _createElementDescriptor(e) { | ||
var r, | ||
t = toPropertyKey(e.key); | ||
"method" === e.kind ? r = { | ||
value: e.value, | ||
writable: !0, | ||
configurable: !0, | ||
enumerable: !1 | ||
} : "get" === e.kind ? r = { | ||
get: e.value, | ||
configurable: !0, | ||
enumerable: !1 | ||
} : "set" === e.kind ? r = { | ||
set: e.value, | ||
configurable: !0, | ||
enumerable: !1 | ||
} : "field" === e.kind && (r = { | ||
configurable: !0, | ||
writable: !0, | ||
enumerable: !0 | ||
}); | ||
var i = { | ||
kind: "field" === e.kind ? "field" : "method", | ||
key: t, | ||
placement: e.static ? "static" : "field" === e.kind ? "own" : "prototype", | ||
descriptor: r | ||
}; | ||
if (def.decorators) element.decorators = def.decorators; | ||
if (def.kind === "field") element.initializer = def.value; | ||
return element; | ||
return e.decorators && (i.decorators = e.decorators), "field" === e.kind && (i.initializer = e.value), i; | ||
} | ||
function _coalesceGetterSetter(element, other) { | ||
if (element.descriptor.get !== undefined) { | ||
other.descriptor.get = element.descriptor.get; | ||
} else { | ||
other.descriptor.set = element.descriptor.set; | ||
} | ||
function _coalesceGetterSetter(e, r) { | ||
void 0 !== e.descriptor.get ? r.descriptor.get = e.descriptor.get : r.descriptor.set = e.descriptor.set; | ||
} | ||
function _coalesceClassElements(elements) { | ||
var newElements = []; | ||
var isSameElement = function (other) { | ||
return other.kind === "method" && other.key === element.key && other.placement === element.placement; | ||
}; | ||
for (var i = 0; i < elements.length; i++) { | ||
var element = elements[i]; | ||
var other; | ||
if (element.kind === "method" && (other = newElements.find(isSameElement))) { | ||
if (_isDataDescriptor(element.descriptor) || _isDataDescriptor(other.descriptor)) { | ||
if (_hasDecorators(element) || _hasDecorators(other)) { | ||
throw new ReferenceError("Duplicated methods (" + element.key + ") can't be decorated."); | ||
} | ||
other.descriptor = element.descriptor; | ||
function _coalesceClassElements(e) { | ||
for (var r = [], isSameElement = function (e) { | ||
return "method" === e.kind && e.key === o.key && e.placement === o.placement; | ||
}, t = 0; t < e.length; t++) { | ||
var i, | ||
o = e[t]; | ||
if ("method" === o.kind && (i = r.find(isSameElement))) { | ||
if (_isDataDescriptor(o.descriptor) || _isDataDescriptor(i.descriptor)) { | ||
if (_hasDecorators(o) || _hasDecorators(i)) throw new ReferenceError("Duplicated methods (" + o.key + ") can't be decorated."); | ||
i.descriptor = o.descriptor; | ||
} else { | ||
if (_hasDecorators(element)) { | ||
if (_hasDecorators(other)) { | ||
throw new ReferenceError("Decorators can't be placed on different accessors with for " + "the same property (" + element.key + ")."); | ||
} | ||
other.decorators = element.decorators; | ||
if (_hasDecorators(o)) { | ||
if (_hasDecorators(i)) throw new ReferenceError("Decorators can't be placed on different accessors with for the same property (" + o.key + ")."); | ||
i.decorators = o.decorators; | ||
} | ||
_coalesceGetterSetter(element, other); | ||
_coalesceGetterSetter(o, i); | ||
} | ||
} else { | ||
_pushInstanceProperty(newElements).call(newElements, element); | ||
} | ||
} else _pushInstanceProperty(r).call(r, o); | ||
} | ||
return newElements; | ||
return r; | ||
} | ||
function _hasDecorators(element) { | ||
return element.decorators && element.decorators.length; | ||
function _hasDecorators(e) { | ||
return e.decorators && e.decorators.length; | ||
} | ||
function _isDataDescriptor(desc) { | ||
return desc !== undefined && !(desc.value === undefined && desc.writable === undefined); | ||
function _isDataDescriptor(e) { | ||
return void 0 !== e && !(void 0 === e.value && void 0 === e.writable); | ||
} | ||
function _optionalCallableProperty(obj, name) { | ||
var value = obj[name]; | ||
if (value !== undefined && typeof value !== "function") { | ||
throw new TypeError("Expected '" + name + "' to be a function"); | ||
} | ||
return value; | ||
function _optionalCallableProperty(e, r) { | ||
var t = e[r]; | ||
if (void 0 !== t && "function" != typeof t) throw new TypeError("Expected '" + r + "' to be a function"); | ||
return t; | ||
} | ||
module.exports = _decorate, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -1,12 +0,9 @@ | ||
function _defaults(obj, defaults) { | ||
var keys = Object.getOwnPropertyNames(defaults); | ||
for (var i = 0; i < keys.length; i++) { | ||
var key = keys[i]; | ||
var value = Object.getOwnPropertyDescriptor(defaults, key); | ||
if (value && value.configurable && obj[key] === undefined) { | ||
Object.defineProperty(obj, key, value); | ||
} | ||
function _defaults(e, r) { | ||
for (var t = Object.getOwnPropertyNames(r), o = 0; o < t.length; o++) { | ||
var n = t[o], | ||
a = Object.getOwnPropertyDescriptor(r, n); | ||
a && a.configurable && void 0 === e[n] && Object.defineProperty(e, n, a); | ||
} | ||
return obj; | ||
return e; | ||
} | ||
module.exports = _defaults, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -1,16 +0,10 @@ | ||
var toPropertyKey = require("./toPropertyKey.js"); | ||
function _defineProperty(obj, key, value) { | ||
key = toPropertyKey(key); | ||
if (key in obj) { | ||
Object.defineProperty(obj, key, { | ||
value: value, | ||
enumerable: true, | ||
configurable: true, | ||
writable: true | ||
}); | ||
} else { | ||
obj[key] = value; | ||
} | ||
return obj; | ||
const toPropertyKey = require("./toPropertyKey.js"); | ||
function _defineProperty(e, r, t) { | ||
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, { | ||
value: t, | ||
enumerable: !0, | ||
configurable: !0, | ||
writable: !0 | ||
}) : e[r] = t, e; | ||
} | ||
module.exports = _defineProperty, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -1,23 +0,9 @@ | ||
export default function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { | ||
var desc = {}; | ||
Object.keys(descriptor).forEach(function (key) { | ||
desc[key] = descriptor[key]; | ||
}); | ||
desc.enumerable = !!desc.enumerable; | ||
desc.configurable = !!desc.configurable; | ||
if ('value' in desc || desc.initializer) { | ||
desc.writable = true; | ||
} | ||
desc = decorators.slice().reverse().reduce(function (desc, decorator) { | ||
return decorator(target, property, desc) || desc; | ||
}, desc); | ||
if (context && desc.initializer !== void 0) { | ||
desc.value = desc.initializer ? desc.initializer.call(context) : void 0; | ||
desc.initializer = undefined; | ||
} | ||
if (desc.initializer === void 0) { | ||
Object.defineProperty(target, property, desc); | ||
desc = null; | ||
} | ||
return desc; | ||
} | ||
function _applyDecoratedDescriptor(i, e, r, n, l) { | ||
var a = {}; | ||
return Object.keys(n).forEach(function (i) { | ||
a[i] = n[i]; | ||
}), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, ("value" in a || a.initializer) && (a.writable = !0), a = r.slice().reverse().reduce(function (r, n) { | ||
return n(i, e, r) || r; | ||
}, a), l && void 0 !== a.initializer && (a.value = a.initializer ? a.initializer.call(l) : void 0, a.initializer = void 0), void 0 === a.initializer && (Object.defineProperty(i, e, a), a = null), a; | ||
} | ||
export { _applyDecoratedDescriptor as default }; |
@@ -7,3 +7,3 @@ import _Symbol$metadata from "core-js-pure/features/symbol/metadata.js"; | ||
import toPropertyKey from "./toPropertyKey.js"; | ||
export default function applyDecs2311(e, t, n, r, o, i) { | ||
function applyDecs2311(e, t, n, r, o, i) { | ||
var a, | ||
@@ -65,6 +65,6 @@ c, | ||
for (var N = e, O = h.length - 1; O >= 0; O -= n ? 2 : 1) { | ||
var z = b(h[O], "A decorator", "be", !0), | ||
A = n ? h[O - 1] : void 0, | ||
H = {}, | ||
K = { | ||
var T = b(h[O], "A decorator", "be", !0), | ||
z = n ? h[O - 1] : void 0, | ||
A = {}, | ||
H = { | ||
kind: ["field", "accessor", "method", "getter", "setter", "class"][o], | ||
@@ -74,7 +74,7 @@ name: r, | ||
addInitializer: function (e, t) { | ||
if (e.v) throw Error("attempted to call addInitializer after decoration was finished"); | ||
if (e.v) throw new TypeError("attempted to call addInitializer after decoration was finished"); | ||
b(t, "An initializer", "be", !0), _pushInstanceProperty(i).call(i, t); | ||
}.bind(null, H) | ||
}.bind(null, A) | ||
}; | ||
if (w) c = z.call(A, N, K), H.v = 1, b(c, "class decorators", "return") && (N = c);else if (K.static = s, K.private = f, c = K.access = { | ||
if (w) c = T.call(z, N, H), A.v = 1, b(c, "class decorators", "return") && (N = c);else if (H.static = s, H.private = f, c = H.access = { | ||
has: f ? p.bind() : function (e) { | ||
@@ -89,6 +89,6 @@ return r in e; | ||
e[r] = t; | ||
}), N = z.call(A, D ? { | ||
}), N = T.call(z, D ? { | ||
get: P.get, | ||
set: P.set | ||
} : P[F], K), H.v = 1, D) { | ||
} : P[F], H), A.v = 1, D) { | ||
if ("object" == typeof N && N) (c = b(N.get, "accessor.get")) && (P.get = c), (c = b(N.set, "accessor.set")) && (P.set = c), (c = b(N.init, "accessor.init")) && _unshiftInstanceProperty(k).call(k, c);else if (void 0 !== N) throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined"); | ||
@@ -129,2 +129,3 @@ } else b(N, (l ? "field" : "method") + " decorators", "return") && (l ? _unshiftInstanceProperty(k).call(k, N) : P[F] = N); | ||
}; | ||
} | ||
} | ||
export { applyDecs2311 as default }; |
@@ -1,5 +0,6 @@ | ||
export default function _arrayLikeToArray(arr, len) { | ||
if (len == null || len > arr.length) len = arr.length; | ||
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; | ||
return arr2; | ||
} | ||
function _arrayLikeToArray(r, a) { | ||
(null == a || a > r.length) && (a = r.length); | ||
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; | ||
return n; | ||
} | ||
export { _arrayLikeToArray as default }; |
@@ -1,3 +0,4 @@ | ||
export default function _arrayWithHoles(arr) { | ||
if (Array.isArray(arr)) return arr; | ||
} | ||
function _arrayWithHoles(r) { | ||
if (Array.isArray(r)) return r; | ||
} | ||
export { _arrayWithHoles as default }; |
import arrayLikeToArray from "./arrayLikeToArray.js"; | ||
export default function _arrayWithoutHoles(arr) { | ||
if (Array.isArray(arr)) return arrayLikeToArray(arr); | ||
} | ||
function _arrayWithoutHoles(r) { | ||
if (Array.isArray(r)) return arrayLikeToArray(r); | ||
} | ||
export { _arrayWithoutHoles as default }; |
@@ -1,4 +0,5 @@ | ||
export default function _assertClassBrand(e, t, n) { | ||
function _assertClassBrand(e, t, n) { | ||
if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; | ||
throw new TypeError("Private element is not present on this object"); | ||
} | ||
} | ||
export { _assertClassBrand as default }; |
@@ -1,6 +0,5 @@ | ||
export default function _assertThisInitialized(self) { | ||
if (self === void 0) { | ||
throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | ||
} | ||
return self; | ||
} | ||
function _assertThisInitialized(e) { | ||
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | ||
return e; | ||
} | ||
export { _assertThisInitialized as default }; |
import OverloadYield from "./OverloadYield.js"; | ||
export default function AsyncGenerator(e) { | ||
function AsyncGenerator(e) { | ||
var r, t; | ||
@@ -63,2 +63,3 @@ function resume(r, t) { | ||
return this._invoke("return", e); | ||
}; | ||
}; | ||
export { AsyncGenerator as default }; |
import OverloadYield from "./OverloadYield.js"; | ||
export default function _asyncGeneratorDelegate(t) { | ||
function _asyncGeneratorDelegate(t) { | ||
var e = {}, | ||
@@ -23,2 +23,3 @@ n = !1; | ||
}), e; | ||
} | ||
} | ||
export { _asyncGeneratorDelegate as default }; |
@@ -1,2 +0,2 @@ | ||
export default function _asyncIterator(r) { | ||
function _asyncIterator(r) { | ||
var n, | ||
@@ -44,2 +44,3 @@ t, | ||
}, new AsyncFromSyncIterator(r); | ||
} | ||
} | ||
export { _asyncIterator as default }; |
@@ -1,30 +0,26 @@ | ||
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { | ||
function asyncGeneratorStep(n, t, e, r, o, a, c) { | ||
try { | ||
var info = gen[key](arg); | ||
var value = info.value; | ||
} catch (error) { | ||
reject(error); | ||
return; | ||
var i = n[a](c), | ||
u = i.value; | ||
} catch (n) { | ||
return void e(n); | ||
} | ||
if (info.done) { | ||
resolve(value); | ||
} else { | ||
Promise.resolve(value).then(_next, _throw); | ||
} | ||
i.done ? t(u) : Promise.resolve(u).then(r, o); | ||
} | ||
export default function _asyncToGenerator(fn) { | ||
function _asyncToGenerator(n) { | ||
return function () { | ||
var self = this, | ||
args = arguments; | ||
return new Promise(function (resolve, reject) { | ||
var gen = fn.apply(self, args); | ||
function _next(value) { | ||
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); | ||
var t = this, | ||
e = arguments; | ||
return new Promise(function (r, o) { | ||
var a = n.apply(t, e); | ||
function _next(n) { | ||
asyncGeneratorStep(a, r, o, _next, _throw, "next", n); | ||
} | ||
function _throw(err) { | ||
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); | ||
function _throw(n) { | ||
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); | ||
} | ||
_next(undefined); | ||
_next(void 0); | ||
}); | ||
}; | ||
} | ||
} | ||
export { _asyncToGenerator as default }; |
import OverloadYield from "./OverloadYield.js"; | ||
export default function _awaitAsyncGenerator(e) { | ||
function _awaitAsyncGenerator(e) { | ||
return new OverloadYield(e, 0); | ||
} | ||
} | ||
export { _awaitAsyncGenerator as default }; |
import getPrototypeOf from "./getPrototypeOf.js"; | ||
import isNativeReflectConstruct from "./isNativeReflectConstruct.js"; | ||
import possibleConstructorReturn from "./possibleConstructorReturn.js"; | ||
export default function _callSuper(t, o, e) { | ||
function _callSuper(t, o, e) { | ||
return o = getPrototypeOf(o), possibleConstructorReturn(t, isNativeReflectConstruct() ? Reflect.construct(o, e || [], getPrototypeOf(t).constructor) : o.apply(t, e)); | ||
} | ||
} | ||
export { _callSuper as default }; |
@@ -1,4 +0,5 @@ | ||
export default function _checkInRHS(e) { | ||
function _checkInRHS(e) { | ||
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (null !== e ? typeof e : "null")); | ||
return e; | ||
} | ||
} | ||
export { _checkInRHS as default }; |
@@ -1,5 +0,4 @@ | ||
export default function _checkPrivateRedeclaration(obj, privateCollection) { | ||
if (privateCollection.has(obj)) { | ||
throw new TypeError("Cannot initialize the same private elements twice on an object"); | ||
} | ||
} | ||
function _checkPrivateRedeclaration(e, t) { | ||
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); | ||
} | ||
export { _checkPrivateRedeclaration as default }; |
@@ -1,5 +0,4 @@ | ||
export default function _classCallCheck(instance, Constructor) { | ||
if (!(instance instanceof Constructor)) { | ||
throw new TypeError("Cannot call a class as a function"); | ||
} | ||
} | ||
function _classCallCheck(a, n) { | ||
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); | ||
} | ||
export { _classCallCheck as default }; |
@@ -1,3 +0,4 @@ | ||
export default function _classNameTDZError(name) { | ||
throw new ReferenceError("Class \"" + name + "\" cannot be referenced in computed property keys."); | ||
} | ||
function _classNameTDZError(e) { | ||
throw new ReferenceError('Class "' + e + '" cannot be referenced in computed property keys.'); | ||
} | ||
export { _classNameTDZError as default }; |
import assertClassBrand from "./assertClassBrand.js"; | ||
export default function _classPrivateFieldGet2(s, a) { | ||
function _classPrivateFieldGet2(s, a) { | ||
return s.get(assertClassBrand(s, a)); | ||
} | ||
} | ||
export { _classPrivateFieldGet2 as default }; |
import checkPrivateRedeclaration from "./checkPrivateRedeclaration.js"; | ||
export default function _classPrivateFieldInitSpec(obj, privateMap, value) { | ||
checkPrivateRedeclaration(obj, privateMap); | ||
privateMap.set(obj, value); | ||
} | ||
function _classPrivateFieldInitSpec(e, t, a) { | ||
checkPrivateRedeclaration(e, t), t.set(e, a); | ||
} | ||
export { _classPrivateFieldInitSpec as default }; |
@@ -1,6 +0,5 @@ | ||
export default function _classPrivateFieldBase(receiver, privateKey) { | ||
if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { | ||
throw new TypeError("attempted to use private field on non-instance"); | ||
} | ||
return receiver; | ||
} | ||
function _classPrivateFieldBase(e, t) { | ||
if (!{}.hasOwnProperty.call(e, t)) throw new TypeError("attempted to use private field on non-instance"); | ||
return e; | ||
} | ||
export { _classPrivateFieldBase as default }; |
var id = 0; | ||
export default function _classPrivateFieldKey(name) { | ||
return "__private_" + id++ + "_" + name; | ||
} | ||
function _classPrivateFieldKey(e) { | ||
return "__private_" + id++ + "_" + e; | ||
} | ||
export { _classPrivateFieldKey as default }; |
import assertClassBrand from "./assertClassBrand.js"; | ||
export default function _classPrivateFieldSet2(s, a, r) { | ||
function _classPrivateFieldSet2(s, a, r) { | ||
return s.set(assertClassBrand(s, a), r), r; | ||
} | ||
} | ||
export { _classPrivateFieldSet2 as default }; |
import assertClassBrand from "./assertClassBrand.js"; | ||
export default function _classPrivateGetter(s, r, a) { | ||
function _classPrivateGetter(s, r, a) { | ||
return a(assertClassBrand(s, r)); | ||
} | ||
} | ||
export { _classPrivateGetter as default }; |
import checkPrivateRedeclaration from "./checkPrivateRedeclaration.js"; | ||
export default function _classPrivateMethodInitSpec(obj, privateSet) { | ||
checkPrivateRedeclaration(obj, privateSet); | ||
privateSet.add(obj); | ||
} | ||
function _classPrivateMethodInitSpec(e, a) { | ||
checkPrivateRedeclaration(e, a), a.add(e); | ||
} | ||
export { _classPrivateMethodInitSpec as default }; |
import assertClassBrand from "./assertClassBrand.js"; | ||
export default function _classPrivateSetter(s, r, a, t) { | ||
function _classPrivateSetter(s, r, a, t) { | ||
return r(assertClassBrand(s, a), t), t; | ||
} | ||
} | ||
export { _classPrivateSetter as default }; |
import assertClassBrand from "./assertClassBrand.js"; | ||
export default function _classStaticPrivateMethodGet(receiver, classConstructor, method) { | ||
assertClassBrand(classConstructor, receiver); | ||
return method; | ||
} | ||
function _classStaticPrivateMethodGet(s, a, t) { | ||
return assertClassBrand(a, s), t; | ||
} | ||
export { _classStaticPrivateMethodGet as default }; |
import _pushInstanceProperty from "core-js-pure/features/instance/push.js"; | ||
import isNativeReflectConstruct from "./isNativeReflectConstruct.js"; | ||
import setPrototypeOf from "./setPrototypeOf.js"; | ||
import isNativeReflectConstruct from "./isNativeReflectConstruct.js"; | ||
export default function _construct(t, e, r) { | ||
function _construct(t, e, r) { | ||
if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments); | ||
@@ -10,2 +10,3 @@ var o = [null]; | ||
return r && setPrototypeOf(p, r.prototype), p; | ||
} | ||
} | ||
export { _construct as default }; |
import toPropertyKey from "./toPropertyKey.js"; | ||
function _defineProperties(target, props) { | ||
for (var i = 0; i < props.length; i++) { | ||
var descriptor = props[i]; | ||
descriptor.enumerable = descriptor.enumerable || false; | ||
descriptor.configurable = true; | ||
if ("value" in descriptor) descriptor.writable = true; | ||
Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor); | ||
function _defineProperties(e, r) { | ||
for (var t = 0; t < r.length; t++) { | ||
var o = r[t]; | ||
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o); | ||
} | ||
} | ||
export default function _createClass(Constructor, protoProps, staticProps) { | ||
if (protoProps) _defineProperties(Constructor.prototype, protoProps); | ||
if (staticProps) _defineProperties(Constructor, staticProps); | ||
Object.defineProperty(Constructor, "prototype", { | ||
writable: false | ||
}); | ||
return Constructor; | ||
} | ||
function _createClass(e, r, t) { | ||
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { | ||
writable: !1 | ||
}), e; | ||
} | ||
export { _createClass as default }; |
import unsupportedIterableToArray from "./unsupportedIterableToArray.js"; | ||
export default function _createForOfIteratorHelper(o, allowArrayLike) { | ||
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; | ||
if (!it) { | ||
if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { | ||
if (it) o = it; | ||
var i = 0; | ||
var F = function () {}; | ||
function _createForOfIteratorHelper(r, e) { | ||
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; | ||
if (!t) { | ||
if (Array.isArray(r) || (t = unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { | ||
t && (r = t); | ||
var n = 0, | ||
F = function () {}; | ||
return { | ||
s: F, | ||
n: function () { | ||
if (i >= o.length) return { | ||
done: true | ||
return n >= r.length ? { | ||
done: !0 | ||
} : { | ||
done: !1, | ||
value: r[n++] | ||
}; | ||
return { | ||
done: false, | ||
value: o[i++] | ||
}; | ||
}, | ||
e: function (e) { | ||
throw e; | ||
e: function (r) { | ||
throw r; | ||
}, | ||
@@ -28,26 +27,25 @@ f: F | ||
} | ||
var normalCompletion = true, | ||
didErr = false, | ||
err; | ||
var o, | ||
a = !0, | ||
u = !1; | ||
return { | ||
s: function () { | ||
it = it.call(o); | ||
t = t.call(r); | ||
}, | ||
n: function () { | ||
var step = it.next(); | ||
normalCompletion = step.done; | ||
return step; | ||
var r = t.next(); | ||
return a = r.done, r; | ||
}, | ||
e: function (e) { | ||
didErr = true; | ||
err = e; | ||
e: function (r) { | ||
u = !0, o = r; | ||
}, | ||
f: function () { | ||
try { | ||
if (!normalCompletion && it.return != null) it.return(); | ||
a || null == t.return || t.return(); | ||
} finally { | ||
if (didErr) throw err; | ||
if (u) throw o; | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
export { _createForOfIteratorHelper as default }; |
import unsupportedIterableToArray from "./unsupportedIterableToArray.js"; | ||
export default function _createForOfIteratorHelperLoose(o, allowArrayLike) { | ||
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; | ||
if (it) return (it = it.call(o)).next.bind(it); | ||
if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { | ||
if (it) o = it; | ||
var i = 0; | ||
function _createForOfIteratorHelperLoose(r, e) { | ||
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; | ||
if (t) return (t = t.call(r)).next.bind(t); | ||
if (Array.isArray(r) || (t = unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { | ||
t && (r = t); | ||
var o = 0; | ||
return function () { | ||
if (i >= o.length) return { | ||
done: true | ||
return o >= r.length ? { | ||
done: !0 | ||
} : { | ||
done: !1, | ||
value: r[o++] | ||
}; | ||
return { | ||
done: false, | ||
value: o[i++] | ||
}; | ||
}; | ||
} | ||
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | ||
} | ||
} | ||
export { _createForOfIteratorHelperLoose as default }; |
import _pushInstanceProperty from "core-js-pure/features/instance/push.js"; | ||
import toArray from "./toArray.js"; | ||
import toPropertyKey from "./toPropertyKey.js"; | ||
export default function _decorate(decorators, factory, superClass, mixins) { | ||
var api = _getDecoratorsApi(); | ||
if (mixins) { | ||
for (var i = 0; i < mixins.length; i++) { | ||
api = mixins[i](api); | ||
} | ||
} | ||
var r = factory(function initialize(O) { | ||
api.initializeInstanceElements(O, decorated.elements); | ||
}, superClass); | ||
var decorated = api.decorateClass(_coalesceClassElements(r.d.map(_createElementDescriptor)), decorators); | ||
api.initializeClassElements(r.F, decorated.elements); | ||
return api.runClassFinishers(r.F, decorated.finishers); | ||
function _decorate(e, r, t, i) { | ||
var o = _getDecoratorsApi(); | ||
if (i) for (var n = 0; n < i.length; n++) o = i[n](o); | ||
var s = r(function (e) { | ||
o.initializeInstanceElements(e, a.elements); | ||
}, t), | ||
a = o.decorateClass(_coalesceClassElements(s.d.map(_createElementDescriptor)), e); | ||
return o.initializeClassElements(s.F, a.elements), o.runClassFinishers(s.F, a.finishers); | ||
} | ||
function _getDecoratorsApi() { | ||
_getDecoratorsApi = function () { | ||
return api; | ||
return e; | ||
}; | ||
var api = { | ||
var e = { | ||
elementsDefinitionOrder: [["method"], ["field"]], | ||
initializeInstanceElements: function (O, elements) { | ||
["method", "field"].forEach(function (kind) { | ||
elements.forEach(function (element) { | ||
if (element.kind === kind && element.placement === "own") { | ||
this.defineClassElement(O, element); | ||
} | ||
initializeInstanceElements: function (e, r) { | ||
["method", "field"].forEach(function (t) { | ||
r.forEach(function (r) { | ||
r.kind === t && "own" === r.placement && this.defineClassElement(e, r); | ||
}, this); | ||
}, this); | ||
}, | ||
initializeClassElements: function (F, elements) { | ||
var proto = F.prototype; | ||
["method", "field"].forEach(function (kind) { | ||
elements.forEach(function (element) { | ||
var placement = element.placement; | ||
if (element.kind === kind && (placement === "static" || placement === "prototype")) { | ||
var receiver = placement === "static" ? F : proto; | ||
this.defineClassElement(receiver, element); | ||
initializeClassElements: function (e, r) { | ||
var t = e.prototype; | ||
["method", "field"].forEach(function (i) { | ||
r.forEach(function (r) { | ||
var o = r.placement; | ||
if (r.kind === i && ("static" === o || "prototype" === o)) { | ||
var n = "static" === o ? e : t; | ||
this.defineClassElement(n, r); | ||
} | ||
@@ -45,300 +38,215 @@ }, this); | ||
}, | ||
defineClassElement: function (receiver, element) { | ||
var descriptor = element.descriptor; | ||
if (element.kind === "field") { | ||
var initializer = element.initializer; | ||
descriptor = { | ||
enumerable: descriptor.enumerable, | ||
writable: descriptor.writable, | ||
configurable: descriptor.configurable, | ||
value: initializer === void 0 ? void 0 : initializer.call(receiver) | ||
defineClassElement: function (e, r) { | ||
var t = r.descriptor; | ||
if ("field" === r.kind) { | ||
var i = r.initializer; | ||
t = { | ||
enumerable: t.enumerable, | ||
writable: t.writable, | ||
configurable: t.configurable, | ||
value: void 0 === i ? void 0 : i.call(e) | ||
}; | ||
} | ||
Object.defineProperty(receiver, element.key, descriptor); | ||
Object.defineProperty(e, r.key, t); | ||
}, | ||
decorateClass: function (elements, decorators) { | ||
var newElements = []; | ||
var finishers = []; | ||
var placements = { | ||
static: [], | ||
prototype: [], | ||
own: [] | ||
decorateClass: function (e, r) { | ||
var t = [], | ||
i = [], | ||
o = { | ||
static: [], | ||
prototype: [], | ||
own: [] | ||
}; | ||
if (e.forEach(function (e) { | ||
this.addElementPlacement(e, o); | ||
}, this), e.forEach(function (e) { | ||
if (!_hasDecorators(e)) return _pushInstanceProperty(t).call(t, e); | ||
var r = this.decorateElement(e, o); | ||
_pushInstanceProperty(t).call(t, r.element), _pushInstanceProperty(t).apply(t, r.extras), _pushInstanceProperty(i).apply(i, r.finishers); | ||
}, this), !r) return { | ||
elements: t, | ||
finishers: i | ||
}; | ||
elements.forEach(function (element) { | ||
this.addElementPlacement(element, placements); | ||
}, this); | ||
elements.forEach(function (element) { | ||
if (!_hasDecorators(element)) return _pushInstanceProperty(newElements).call(newElements, element); | ||
var elementFinishersExtras = this.decorateElement(element, placements); | ||
_pushInstanceProperty(newElements).call(newElements, elementFinishersExtras.element); | ||
_pushInstanceProperty(newElements).apply(newElements, elementFinishersExtras.extras); | ||
_pushInstanceProperty(finishers).apply(finishers, elementFinishersExtras.finishers); | ||
}, this); | ||
if (!decorators) { | ||
return { | ||
elements: newElements, | ||
finishers: finishers | ||
}; | ||
} | ||
var result = this.decorateConstructor(newElements, decorators); | ||
_pushInstanceProperty(finishers).apply(finishers, result.finishers); | ||
result.finishers = finishers; | ||
return result; | ||
var n = this.decorateConstructor(t, r); | ||
return _pushInstanceProperty(i).apply(i, n.finishers), n.finishers = i, n; | ||
}, | ||
addElementPlacement: function (element, placements, silent) { | ||
var keys = placements[element.placement]; | ||
if (!silent && keys.indexOf(element.key) !== -1) { | ||
throw new TypeError("Duplicated element (" + element.key + ")"); | ||
} | ||
_pushInstanceProperty(keys).call(keys, element.key); | ||
addElementPlacement: function (e, r, t) { | ||
var i = r[e.placement]; | ||
if (!t && -1 !== i.indexOf(e.key)) throw new TypeError("Duplicated element (" + e.key + ")"); | ||
_pushInstanceProperty(i).call(i, e.key); | ||
}, | ||
decorateElement: function (element, placements) { | ||
var extras = []; | ||
var finishers = []; | ||
for (var decorators = element.decorators, i = decorators.length - 1; i >= 0; i--) { | ||
var keys = placements[element.placement]; | ||
keys.splice(keys.indexOf(element.key), 1); | ||
var elementObject = this.fromElementDescriptor(element); | ||
var elementFinisherExtras = this.toElementFinisherExtras((0, decorators[i])(elementObject) || elementObject); | ||
element = elementFinisherExtras.element; | ||
this.addElementPlacement(element, placements); | ||
if (elementFinisherExtras.finisher) { | ||
_pushInstanceProperty(finishers).call(finishers, elementFinisherExtras.finisher); | ||
decorateElement: function (e, r) { | ||
for (var t = [], i = [], o = e.decorators, n = o.length - 1; n >= 0; n--) { | ||
var s = r[e.placement]; | ||
s.splice(s.indexOf(e.key), 1); | ||
var a = this.fromElementDescriptor(e), | ||
l = this.toElementFinisherExtras((0, o[n])(a) || a); | ||
e = l.element, this.addElementPlacement(e, r), l.finisher && _pushInstanceProperty(i).call(i, l.finisher); | ||
var c = l.extras; | ||
if (c) { | ||
for (var p = 0; p < c.length; p++) this.addElementPlacement(c[p], r); | ||
_pushInstanceProperty(t).apply(t, c); | ||
} | ||
var newExtras = elementFinisherExtras.extras; | ||
if (newExtras) { | ||
for (var j = 0; j < newExtras.length; j++) { | ||
this.addElementPlacement(newExtras[j], placements); | ||
} | ||
_pushInstanceProperty(extras).apply(extras, newExtras); | ||
} | ||
} | ||
return { | ||
element: element, | ||
finishers: finishers, | ||
extras: extras | ||
element: e, | ||
finishers: i, | ||
extras: t | ||
}; | ||
}, | ||
decorateConstructor: function (elements, decorators) { | ||
var finishers = []; | ||
for (var i = decorators.length - 1; i >= 0; i--) { | ||
var obj = this.fromClassDescriptor(elements); | ||
var elementsAndFinisher = this.toClassDescriptor((0, decorators[i])(obj) || obj); | ||
if (elementsAndFinisher.finisher !== undefined) { | ||
_pushInstanceProperty(finishers).call(finishers, elementsAndFinisher.finisher); | ||
decorateConstructor: function (e, r) { | ||
for (var t = [], i = r.length - 1; i >= 0; i--) { | ||
var o = this.fromClassDescriptor(e), | ||
n = this.toClassDescriptor((0, r[i])(o) || o); | ||
if (void 0 !== n.finisher && _pushInstanceProperty(t).call(t, n.finisher), void 0 !== n.elements) { | ||
e = n.elements; | ||
for (var s = 0; s < e.length - 1; s++) for (var a = s + 1; a < e.length; a++) if (e[s].key === e[a].key && e[s].placement === e[a].placement) throw new TypeError("Duplicated element (" + e[s].key + ")"); | ||
} | ||
if (elementsAndFinisher.elements !== undefined) { | ||
elements = elementsAndFinisher.elements; | ||
for (var j = 0; j < elements.length - 1; j++) { | ||
for (var k = j + 1; k < elements.length; k++) { | ||
if (elements[j].key === elements[k].key && elements[j].placement === elements[k].placement) { | ||
throw new TypeError("Duplicated element (" + elements[j].key + ")"); | ||
} | ||
} | ||
} | ||
} | ||
} | ||
return { | ||
elements: elements, | ||
finishers: finishers | ||
elements: e, | ||
finishers: t | ||
}; | ||
}, | ||
fromElementDescriptor: function (element) { | ||
var obj = { | ||
kind: element.kind, | ||
key: element.key, | ||
placement: element.placement, | ||
descriptor: element.descriptor | ||
fromElementDescriptor: function (e) { | ||
var r = { | ||
kind: e.kind, | ||
key: e.key, | ||
placement: e.placement, | ||
descriptor: e.descriptor | ||
}; | ||
var desc = { | ||
return Object.defineProperty(r, Symbol.toStringTag, { | ||
value: "Descriptor", | ||
configurable: true | ||
}; | ||
Object.defineProperty(obj, Symbol.toStringTag, desc); | ||
if (element.kind === "field") obj.initializer = element.initializer; | ||
return obj; | ||
configurable: !0 | ||
}), "field" === e.kind && (r.initializer = e.initializer), r; | ||
}, | ||
toElementDescriptors: function (elementObjects) { | ||
if (elementObjects === undefined) return; | ||
return toArray(elementObjects).map(function (elementObject) { | ||
var element = this.toElementDescriptor(elementObject); | ||
this.disallowProperty(elementObject, "finisher", "An element descriptor"); | ||
this.disallowProperty(elementObject, "extras", "An element descriptor"); | ||
return element; | ||
toElementDescriptors: function (e) { | ||
if (void 0 !== e) return toArray(e).map(function (e) { | ||
var r = this.toElementDescriptor(e); | ||
return this.disallowProperty(e, "finisher", "An element descriptor"), this.disallowProperty(e, "extras", "An element descriptor"), r; | ||
}, this); | ||
}, | ||
toElementDescriptor: function (elementObject) { | ||
var kind = String(elementObject.kind); | ||
if (kind !== "method" && kind !== "field") { | ||
throw new TypeError('An element descriptor\'s .kind property must be either "method" or' + ' "field", but a decorator created an element descriptor with' + ' .kind "' + kind + '"'); | ||
} | ||
var key = toPropertyKey(elementObject.key); | ||
var placement = String(elementObject.placement); | ||
if (placement !== "static" && placement !== "prototype" && placement !== "own") { | ||
throw new TypeError('An element descriptor\'s .placement property must be one of "static",' + ' "prototype" or "own", but a decorator created an element descriptor' + ' with .placement "' + placement + '"'); | ||
} | ||
var descriptor = elementObject.descriptor; | ||
this.disallowProperty(elementObject, "elements", "An element descriptor"); | ||
var element = { | ||
kind: kind, | ||
key: key, | ||
placement: placement, | ||
descriptor: Object.assign({}, descriptor) | ||
toElementDescriptor: function (e) { | ||
var r = e.kind + ""; | ||
if ("method" !== r && "field" !== r) throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "' + r + '"'); | ||
var t = toPropertyKey(e.key), | ||
i = e.placement + ""; | ||
if ("static" !== i && "prototype" !== i && "own" !== i) throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "' + i + '"'); | ||
var o = e.descriptor; | ||
this.disallowProperty(e, "elements", "An element descriptor"); | ||
var n = { | ||
kind: r, | ||
key: t, | ||
placement: i, | ||
descriptor: Object.assign({}, o) | ||
}; | ||
if (kind !== "field") { | ||
this.disallowProperty(elementObject, "initializer", "A method descriptor"); | ||
} else { | ||
this.disallowProperty(descriptor, "get", "The property descriptor of a field descriptor"); | ||
this.disallowProperty(descriptor, "set", "The property descriptor of a field descriptor"); | ||
this.disallowProperty(descriptor, "value", "The property descriptor of a field descriptor"); | ||
element.initializer = elementObject.initializer; | ||
} | ||
return element; | ||
return "field" !== r ? this.disallowProperty(e, "initializer", "A method descriptor") : (this.disallowProperty(o, "get", "The property descriptor of a field descriptor"), this.disallowProperty(o, "set", "The property descriptor of a field descriptor"), this.disallowProperty(o, "value", "The property descriptor of a field descriptor"), n.initializer = e.initializer), n; | ||
}, | ||
toElementFinisherExtras: function (elementObject) { | ||
var element = this.toElementDescriptor(elementObject); | ||
var finisher = _optionalCallableProperty(elementObject, "finisher"); | ||
var extras = this.toElementDescriptors(elementObject.extras); | ||
toElementFinisherExtras: function (e) { | ||
return { | ||
element: element, | ||
finisher: finisher, | ||
extras: extras | ||
element: this.toElementDescriptor(e), | ||
finisher: _optionalCallableProperty(e, "finisher"), | ||
extras: this.toElementDescriptors(e.extras) | ||
}; | ||
}, | ||
fromClassDescriptor: function (elements) { | ||
var obj = { | ||
fromClassDescriptor: function (e) { | ||
var r = { | ||
kind: "class", | ||
elements: elements.map(this.fromElementDescriptor, this) | ||
elements: e.map(this.fromElementDescriptor, this) | ||
}; | ||
var desc = { | ||
return Object.defineProperty(r, Symbol.toStringTag, { | ||
value: "Descriptor", | ||
configurable: true | ||
}; | ||
Object.defineProperty(obj, Symbol.toStringTag, desc); | ||
return obj; | ||
configurable: !0 | ||
}), r; | ||
}, | ||
toClassDescriptor: function (obj) { | ||
var kind = String(obj.kind); | ||
if (kind !== "class") { | ||
throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator' + ' created a class descriptor with .kind "' + kind + '"'); | ||
} | ||
this.disallowProperty(obj, "key", "A class descriptor"); | ||
this.disallowProperty(obj, "placement", "A class descriptor"); | ||
this.disallowProperty(obj, "descriptor", "A class descriptor"); | ||
this.disallowProperty(obj, "initializer", "A class descriptor"); | ||
this.disallowProperty(obj, "extras", "A class descriptor"); | ||
var finisher = _optionalCallableProperty(obj, "finisher"); | ||
var elements = this.toElementDescriptors(obj.elements); | ||
toClassDescriptor: function (e) { | ||
var r = e.kind + ""; | ||
if ("class" !== r) throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "' + r + '"'); | ||
this.disallowProperty(e, "key", "A class descriptor"), this.disallowProperty(e, "placement", "A class descriptor"), this.disallowProperty(e, "descriptor", "A class descriptor"), this.disallowProperty(e, "initializer", "A class descriptor"), this.disallowProperty(e, "extras", "A class descriptor"); | ||
var t = _optionalCallableProperty(e, "finisher"); | ||
return { | ||
elements: elements, | ||
finisher: finisher | ||
elements: this.toElementDescriptors(e.elements), | ||
finisher: t | ||
}; | ||
}, | ||
runClassFinishers: function (constructor, finishers) { | ||
for (var i = 0; i < finishers.length; i++) { | ||
var newConstructor = (0, finishers[i])(constructor); | ||
if (newConstructor !== undefined) { | ||
if (typeof newConstructor !== "function") { | ||
throw new TypeError("Finishers must return a constructor."); | ||
} | ||
constructor = newConstructor; | ||
runClassFinishers: function (e, r) { | ||
for (var t = 0; t < r.length; t++) { | ||
var i = (0, r[t])(e); | ||
if (void 0 !== i) { | ||
if ("function" != typeof i) throw new TypeError("Finishers must return a constructor."); | ||
e = i; | ||
} | ||
} | ||
return constructor; | ||
return e; | ||
}, | ||
disallowProperty: function (obj, name, objectType) { | ||
if (obj[name] !== undefined) { | ||
throw new TypeError(objectType + " can't have a ." + name + " property."); | ||
} | ||
disallowProperty: function (e, r, t) { | ||
if (void 0 !== e[r]) throw new TypeError(t + " can't have a ." + r + " property."); | ||
} | ||
}; | ||
return api; | ||
return e; | ||
} | ||
function _createElementDescriptor(def) { | ||
var key = toPropertyKey(def.key); | ||
var descriptor; | ||
if (def.kind === "method") { | ||
descriptor = { | ||
value: def.value, | ||
writable: true, | ||
configurable: true, | ||
enumerable: false | ||
}; | ||
} else if (def.kind === "get") { | ||
descriptor = { | ||
get: def.value, | ||
configurable: true, | ||
enumerable: false | ||
}; | ||
} else if (def.kind === "set") { | ||
descriptor = { | ||
set: def.value, | ||
configurable: true, | ||
enumerable: false | ||
}; | ||
} else if (def.kind === "field") { | ||
descriptor = { | ||
configurable: true, | ||
writable: true, | ||
enumerable: true | ||
}; | ||
} | ||
var element = { | ||
kind: def.kind === "field" ? "field" : "method", | ||
key: key, | ||
placement: def.static ? "static" : def.kind === "field" ? "own" : "prototype", | ||
descriptor: descriptor | ||
function _createElementDescriptor(e) { | ||
var r, | ||
t = toPropertyKey(e.key); | ||
"method" === e.kind ? r = { | ||
value: e.value, | ||
writable: !0, | ||
configurable: !0, | ||
enumerable: !1 | ||
} : "get" === e.kind ? r = { | ||
get: e.value, | ||
configurable: !0, | ||
enumerable: !1 | ||
} : "set" === e.kind ? r = { | ||
set: e.value, | ||
configurable: !0, | ||
enumerable: !1 | ||
} : "field" === e.kind && (r = { | ||
configurable: !0, | ||
writable: !0, | ||
enumerable: !0 | ||
}); | ||
var i = { | ||
kind: "field" === e.kind ? "field" : "method", | ||
key: t, | ||
placement: e.static ? "static" : "field" === e.kind ? "own" : "prototype", | ||
descriptor: r | ||
}; | ||
if (def.decorators) element.decorators = def.decorators; | ||
if (def.kind === "field") element.initializer = def.value; | ||
return element; | ||
return e.decorators && (i.decorators = e.decorators), "field" === e.kind && (i.initializer = e.value), i; | ||
} | ||
function _coalesceGetterSetter(element, other) { | ||
if (element.descriptor.get !== undefined) { | ||
other.descriptor.get = element.descriptor.get; | ||
} else { | ||
other.descriptor.set = element.descriptor.set; | ||
} | ||
function _coalesceGetterSetter(e, r) { | ||
void 0 !== e.descriptor.get ? r.descriptor.get = e.descriptor.get : r.descriptor.set = e.descriptor.set; | ||
} | ||
function _coalesceClassElements(elements) { | ||
var newElements = []; | ||
var isSameElement = function (other) { | ||
return other.kind === "method" && other.key === element.key && other.placement === element.placement; | ||
}; | ||
for (var i = 0; i < elements.length; i++) { | ||
var element = elements[i]; | ||
var other; | ||
if (element.kind === "method" && (other = newElements.find(isSameElement))) { | ||
if (_isDataDescriptor(element.descriptor) || _isDataDescriptor(other.descriptor)) { | ||
if (_hasDecorators(element) || _hasDecorators(other)) { | ||
throw new ReferenceError("Duplicated methods (" + element.key + ") can't be decorated."); | ||
} | ||
other.descriptor = element.descriptor; | ||
function _coalesceClassElements(e) { | ||
for (var r = [], isSameElement = function (e) { | ||
return "method" === e.kind && e.key === o.key && e.placement === o.placement; | ||
}, t = 0; t < e.length; t++) { | ||
var i, | ||
o = e[t]; | ||
if ("method" === o.kind && (i = r.find(isSameElement))) { | ||
if (_isDataDescriptor(o.descriptor) || _isDataDescriptor(i.descriptor)) { | ||
if (_hasDecorators(o) || _hasDecorators(i)) throw new ReferenceError("Duplicated methods (" + o.key + ") can't be decorated."); | ||
i.descriptor = o.descriptor; | ||
} else { | ||
if (_hasDecorators(element)) { | ||
if (_hasDecorators(other)) { | ||
throw new ReferenceError("Decorators can't be placed on different accessors with for " + "the same property (" + element.key + ")."); | ||
} | ||
other.decorators = element.decorators; | ||
if (_hasDecorators(o)) { | ||
if (_hasDecorators(i)) throw new ReferenceError("Decorators can't be placed on different accessors with for the same property (" + o.key + ")."); | ||
i.decorators = o.decorators; | ||
} | ||
_coalesceGetterSetter(element, other); | ||
_coalesceGetterSetter(o, i); | ||
} | ||
} else { | ||
_pushInstanceProperty(newElements).call(newElements, element); | ||
} | ||
} else _pushInstanceProperty(r).call(r, o); | ||
} | ||
return newElements; | ||
return r; | ||
} | ||
function _hasDecorators(element) { | ||
return element.decorators && element.decorators.length; | ||
function _hasDecorators(e) { | ||
return e.decorators && e.decorators.length; | ||
} | ||
function _isDataDescriptor(desc) { | ||
return desc !== undefined && !(desc.value === undefined && desc.writable === undefined); | ||
function _isDataDescriptor(e) { | ||
return void 0 !== e && !(void 0 === e.value && void 0 === e.writable); | ||
} | ||
function _optionalCallableProperty(obj, name) { | ||
var value = obj[name]; | ||
if (value !== undefined && typeof value !== "function") { | ||
throw new TypeError("Expected '" + name + "' to be a function"); | ||
} | ||
return value; | ||
} | ||
function _optionalCallableProperty(e, r) { | ||
var t = e[r]; | ||
if (void 0 !== t && "function" != typeof t) throw new TypeError("Expected '" + r + "' to be a function"); | ||
return t; | ||
} | ||
export { _decorate as default }; |
@@ -1,11 +0,9 @@ | ||
export default function _defaults(obj, defaults) { | ||
var keys = Object.getOwnPropertyNames(defaults); | ||
for (var i = 0; i < keys.length; i++) { | ||
var key = keys[i]; | ||
var value = Object.getOwnPropertyDescriptor(defaults, key); | ||
if (value && value.configurable && obj[key] === undefined) { | ||
Object.defineProperty(obj, key, value); | ||
} | ||
function _defaults(e, r) { | ||
for (var t = Object.getOwnPropertyNames(r), o = 0; o < t.length; o++) { | ||
var n = t[o], | ||
a = Object.getOwnPropertyDescriptor(r, n); | ||
a && a.configurable && void 0 === e[n] && Object.defineProperty(e, n, a); | ||
} | ||
return obj; | ||
} | ||
return e; | ||
} | ||
export { _defaults as default }; |
@@ -1,2 +0,2 @@ | ||
export default function _defineAccessor(e, r, n, t) { | ||
function _defineAccessor(e, r, n, t) { | ||
var c = { | ||
@@ -7,2 +7,3 @@ configurable: !0, | ||
return c[e] = t, Object.defineProperty(r, n, c); | ||
} | ||
} | ||
export { _defineAccessor as default }; |
import toPropertyKey from "./toPropertyKey.js"; | ||
export default function _defineProperty(obj, key, value) { | ||
key = toPropertyKey(key); | ||
if (key in obj) { | ||
Object.defineProperty(obj, key, { | ||
value: value, | ||
enumerable: true, | ||
configurable: true, | ||
writable: true | ||
}); | ||
} else { | ||
obj[key] = value; | ||
} | ||
return obj; | ||
} | ||
function _defineProperty(e, r, t) { | ||
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, { | ||
value: t, | ||
enumerable: !0, | ||
configurable: !0, | ||
writable: !0 | ||
}) : e[r] = t, e; | ||
} | ||
export { _defineProperty as default }; |
@@ -1,14 +0,10 @@ | ||
export default function _extends() { | ||
_extends = Object.assign ? Object.assign.bind() : function (target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i]; | ||
for (var key in source) { | ||
if (Object.prototype.hasOwnProperty.call(source, key)) { | ||
target[key] = source[key]; | ||
} | ||
} | ||
function _extends() { | ||
return _extends = Object.assign ? Object.assign.bind() : function (n) { | ||
for (var e = 1; e < arguments.length; e++) { | ||
var t = arguments[e]; | ||
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); | ||
} | ||
return target; | ||
}; | ||
return _extends.apply(this, arguments); | ||
} | ||
return n; | ||
}, _extends.apply(null, arguments); | ||
} | ||
export { _extends as default }; |
import superPropBase from "./superPropBase.js"; | ||
export default function _get() { | ||
if (typeof Reflect !== "undefined" && Reflect.get) { | ||
_get = Reflect.get.bind(); | ||
} else { | ||
_get = function _get(target, property, receiver) { | ||
var base = superPropBase(target, property); | ||
if (!base) return; | ||
var desc = Object.getOwnPropertyDescriptor(base, property); | ||
if (desc.get) { | ||
return desc.get.call(arguments.length < 3 ? target : receiver); | ||
} | ||
return desc.value; | ||
}; | ||
} | ||
return _get.apply(this, arguments); | ||
} | ||
function _get() { | ||
return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { | ||
var p = superPropBase(e, t); | ||
if (p) { | ||
var n = Object.getOwnPropertyDescriptor(p, t); | ||
return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; | ||
} | ||
}, _get.apply(null, arguments); | ||
} | ||
export { _get as default }; |
@@ -1,6 +0,6 @@ | ||
export default function _getPrototypeOf(o) { | ||
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { | ||
return o.__proto__ || Object.getPrototypeOf(o); | ||
}; | ||
return _getPrototypeOf(o); | ||
} | ||
function _getPrototypeOf(t) { | ||
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { | ||
return t.__proto__ || Object.getPrototypeOf(t); | ||
}, _getPrototypeOf(t); | ||
} | ||
export { _getPrototypeOf as default }; |
@@ -1,3 +0,4 @@ | ||
export default function _identity(x) { | ||
return x; | ||
} | ||
function _identity(t) { | ||
return t; | ||
} | ||
export { _identity as default }; |
@@ -1,2 +0,2 @@ | ||
export default function _importDeferProxy(e) { | ||
function _importDeferProxy(e) { | ||
var t = null, | ||
@@ -26,2 +26,3 @@ constValue = function (e) { | ||
}); | ||
} | ||
} | ||
export { _importDeferProxy as default }; |
import setPrototypeOf from "./setPrototypeOf.js"; | ||
export default function _inherits(subClass, superClass) { | ||
if (typeof superClass !== "function" && superClass !== null) { | ||
throw new TypeError("Super expression must either be null or a function"); | ||
} | ||
subClass.prototype = Object.create(superClass && superClass.prototype, { | ||
function _inherits(t, e) { | ||
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); | ||
t.prototype = Object.create(e && e.prototype, { | ||
constructor: { | ||
value: subClass, | ||
writable: true, | ||
configurable: true | ||
value: t, | ||
writable: !0, | ||
configurable: !0 | ||
} | ||
}); | ||
Object.defineProperty(subClass, "prototype", { | ||
writable: false | ||
}); | ||
if (superClass) setPrototypeOf(subClass, superClass); | ||
} | ||
}), Object.defineProperty(t, "prototype", { | ||
writable: !1 | ||
}), e && setPrototypeOf(t, e); | ||
} | ||
export { _inherits as default }; |
import setPrototypeOf from "./setPrototypeOf.js"; | ||
export default function _inheritsLoose(subClass, superClass) { | ||
subClass.prototype = Object.create(superClass.prototype); | ||
subClass.prototype.constructor = subClass; | ||
setPrototypeOf(subClass, superClass); | ||
} | ||
function _inheritsLoose(t, o) { | ||
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, setPrototypeOf(t, o); | ||
} | ||
export { _inheritsLoose as default }; |
@@ -1,9 +0,9 @@ | ||
export default function _initializerDefineProperty(target, property, descriptor, context) { | ||
if (!descriptor) return; | ||
Object.defineProperty(target, property, { | ||
enumerable: descriptor.enumerable, | ||
configurable: descriptor.configurable, | ||
writable: descriptor.writable, | ||
value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 | ||
function _initializerDefineProperty(e, i, r, l) { | ||
r && Object.defineProperty(e, i, { | ||
enumerable: r.enumerable, | ||
configurable: r.configurable, | ||
writable: r.writable, | ||
value: r.initializer ? r.initializer.call(l) : void 0 | ||
}); | ||
} | ||
} | ||
export { _initializerDefineProperty as default }; |
@@ -1,3 +0,4 @@ | ||
export default function _initializerWarningHelper(descriptor, context) { | ||
throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); | ||
} | ||
function _initializerWarningHelper(r, e) { | ||
throw Error("Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform."); | ||
} | ||
export { _initializerWarningHelper as default }; |
@@ -1,7 +0,4 @@ | ||
export default function _instanceof(left, right) { | ||
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { | ||
return !!right[Symbol.hasInstance](left); | ||
} else { | ||
return left instanceof right; | ||
} | ||
} | ||
function _instanceof(n, e) { | ||
return null != e && "undefined" != typeof Symbol && e[Symbol.hasInstance] ? !!e[Symbol.hasInstance](n) : n instanceof e; | ||
} | ||
export { _instanceof as default }; |
@@ -1,5 +0,6 @@ | ||
export default function _interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : { | ||
default: obj | ||
function _interopRequireDefault(e) { | ||
return e && e.__esModule ? e : { | ||
default: e | ||
}; | ||
} | ||
} | ||
export { _interopRequireDefault as default }; |
@@ -9,3 +9,3 @@ function _getRequireWildcardCache(e) { | ||
} | ||
export default function _interopRequireWildcard(e, r) { | ||
function _interopRequireWildcard(e, r) { | ||
if (!r && e && e.__esModule) return e; | ||
@@ -26,2 +26,3 @@ if (null === e || "object" != typeof e && "function" != typeof e) return { | ||
return n.default = e, t && t.set(e, n), n; | ||
} | ||
} | ||
export { _interopRequireWildcard as default }; |
@@ -1,7 +0,8 @@ | ||
export default function _isNativeFunction(fn) { | ||
function _isNativeFunction(t) { | ||
try { | ||
return Function.toString.call(fn).indexOf("[native code]") !== -1; | ||
} catch (e) { | ||
return typeof fn === "function"; | ||
return -1 !== Function.toString.call(t).indexOf("[native code]"); | ||
} catch (n) { | ||
return "function" == typeof t; | ||
} | ||
} | ||
} | ||
export { _isNativeFunction as default }; |
@@ -1,2 +0,2 @@ | ||
export default function _isNativeReflectConstruct() { | ||
function _isNativeReflectConstruct() { | ||
try { | ||
@@ -8,2 +8,3 @@ var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); | ||
})(); | ||
} | ||
} | ||
export { _isNativeReflectConstruct as default }; |
@@ -1,3 +0,4 @@ | ||
export default function _iterableToArray(iter) { | ||
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); | ||
} | ||
function _iterableToArray(r) { | ||
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); | ||
} | ||
export { _iterableToArray as default }; |
import _pushInstanceProperty from "core-js-pure/features/instance/push.js"; | ||
export default function _iterableToArrayLimit(r, l) { | ||
function _iterableToArrayLimit(r, l) { | ||
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; | ||
@@ -28,2 +28,3 @@ if (null != t) { | ||
} | ||
} | ||
} | ||
export { _iterableToArrayLimit as default }; |
var REACT_ELEMENT_TYPE; | ||
export default function _createRawReactElement(e, r, E, l) { | ||
function _createRawReactElement(e, r, E, l) { | ||
REACT_ELEMENT_TYPE || (REACT_ELEMENT_TYPE = "function" == typeof Symbol && Symbol.for && Symbol.for("react.element") || 60103); | ||
@@ -21,2 +21,3 @@ var o = e && e.defaultProps, | ||
}; | ||
} | ||
} | ||
export { _createRawReactElement as default }; |
import arrayLikeToArray from "./arrayLikeToArray.js"; | ||
export default function _maybeArrayLike(next, arr, i) { | ||
if (arr && !Array.isArray(arr) && typeof arr.length === "number") { | ||
var len = arr.length; | ||
return arrayLikeToArray(arr, i !== void 0 && i < len ? i : len); | ||
function _maybeArrayLike(r, a, e) { | ||
if (a && !Array.isArray(a) && "number" == typeof a.length) { | ||
var y = a.length; | ||
return arrayLikeToArray(a, void 0 !== e && e < y ? e : y); | ||
} | ||
return next(arr, i); | ||
} | ||
return r(a, e); | ||
} | ||
export { _maybeArrayLike as default }; |
@@ -1,5 +0,4 @@ | ||
export default function _newArrowCheck(innerThis, boundThis) { | ||
if (innerThis !== boundThis) { | ||
throw new TypeError("Cannot instantiate an arrow function"); | ||
} | ||
} | ||
function _newArrowCheck(n, r) { | ||
if (n !== r) throw new TypeError("Cannot instantiate an arrow function"); | ||
} | ||
export { _newArrowCheck as default }; |
@@ -1,3 +0,4 @@ | ||
export default function _nonIterableRest() { | ||
function _nonIterableRest() { | ||
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | ||
} | ||
} | ||
export { _nonIterableRest as default }; |
@@ -1,3 +0,4 @@ | ||
export default function _nonIterableSpread() { | ||
function _nonIterableSpread() { | ||
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | ||
} | ||
} | ||
export { _nonIterableSpread as default }; |
@@ -1,3 +0,4 @@ | ||
export default function _nullishReceiverError(r) { | ||
function _nullishReceiverError(r) { | ||
throw new TypeError("Cannot set property of null or undefined."); | ||
} | ||
} | ||
export { _nullishReceiverError as default }; |
@@ -1,3 +0,4 @@ | ||
export default function _objectDestructuringEmpty(obj) { | ||
if (obj == null) throw new TypeError("Cannot destructure " + obj); | ||
} | ||
function _objectDestructuringEmpty(t) { | ||
if (null == t) throw new TypeError("Cannot destructure " + t); | ||
} | ||
export { _objectDestructuringEmpty as default }; |
@@ -13,3 +13,3 @@ import _pushInstanceProperty from "core-js-pure/features/instance/push.js"; | ||
} | ||
export default function _objectSpread2(e) { | ||
function _objectSpread2(e) { | ||
for (var r = 1; r < arguments.length; r++) { | ||
@@ -24,2 +24,3 @@ var t = null != arguments[r] ? arguments[r] : {}; | ||
return e; | ||
} | ||
} | ||
export { _objectSpread2 as default }; |
import objectWithoutPropertiesLoose from "./objectWithoutPropertiesLoose.js"; | ||
export default function _objectWithoutProperties(source, excluded) { | ||
if (source == null) return {}; | ||
var target = objectWithoutPropertiesLoose(source, excluded); | ||
var key, i; | ||
function _objectWithoutProperties(e, t) { | ||
if (null == e) return {}; | ||
var o, | ||
r, | ||
i = objectWithoutPropertiesLoose(e, t); | ||
if (Object.getOwnPropertySymbols) { | ||
var sourceSymbolKeys = Object.getOwnPropertySymbols(source); | ||
for (i = 0; i < sourceSymbolKeys.length; i++) { | ||
key = sourceSymbolKeys[i]; | ||
if (excluded.indexOf(key) >= 0) continue; | ||
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; | ||
target[key] = source[key]; | ||
} | ||
var n = Object.getOwnPropertySymbols(e); | ||
for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); | ||
} | ||
return target; | ||
} | ||
return i; | ||
} | ||
export { _objectWithoutProperties as default }; |
@@ -1,12 +0,10 @@ | ||
export default function _objectWithoutPropertiesLoose(source, excluded) { | ||
if (source == null) return {}; | ||
var target = {}; | ||
var sourceKeys = Object.keys(source); | ||
var key, i; | ||
for (i = 0; i < sourceKeys.length; i++) { | ||
key = sourceKeys[i]; | ||
if (excluded.indexOf(key) >= 0) continue; | ||
target[key] = source[key]; | ||
function _objectWithoutPropertiesLoose(r, e) { | ||
if (null == r) return {}; | ||
var t = {}; | ||
for (var n in r) if ({}.hasOwnProperty.call(r, n)) { | ||
if (e.indexOf(n) >= 0) continue; | ||
t[n] = r[n]; | ||
} | ||
return target; | ||
} | ||
return t; | ||
} | ||
export { _objectWithoutPropertiesLoose as default }; |
@@ -1,3 +0,4 @@ | ||
export default function _OverloadYield(t, e) { | ||
this.v = t, this.k = e; | ||
} | ||
function _OverloadYield(e, d) { | ||
this.v = e, this.k = d; | ||
} | ||
export { _OverloadYield as default }; |
import assertThisInitialized from "./assertThisInitialized.js"; | ||
export default function _possibleConstructorReturn(self, call) { | ||
if (call && (typeof call === "object" || typeof call === "function")) { | ||
return call; | ||
} else if (call !== void 0) { | ||
throw new TypeError("Derived constructors may only return object or undefined"); | ||
} | ||
return assertThisInitialized(self); | ||
} | ||
function _possibleConstructorReturn(t, e) { | ||
if (e && ("object" == typeof e || "function" == typeof e)) return e; | ||
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); | ||
return assertThisInitialized(t); | ||
} | ||
export { _possibleConstructorReturn as default }; |
@@ -1,3 +0,4 @@ | ||
export default function _readOnlyError(name) { | ||
throw new TypeError("\"" + name + "\" is read-only"); | ||
} | ||
function _readOnlyError(r) { | ||
throw new TypeError('"' + r + '" is read-only'); | ||
} | ||
export { _readOnlyError as default }; |
import _pushInstanceProperty from "core-js-pure/features/instance/push.js"; | ||
export default function _regeneratorRuntime() { | ||
function _regeneratorRuntime() { | ||
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ | ||
@@ -304,2 +304,3 @@ _regeneratorRuntime = function () { | ||
}, e; | ||
} | ||
} | ||
export { _regeneratorRuntime as default }; |
import superPropBase from "./superPropBase.js"; | ||
import defineProperty from "./defineProperty.js"; | ||
function set(target, property, value, receiver) { | ||
if (typeof Reflect !== "undefined" && Reflect.set) { | ||
set = Reflect.set; | ||
} else { | ||
set = function set(target, property, value, receiver) { | ||
var base = superPropBase(target, property); | ||
var desc; | ||
if (base) { | ||
desc = Object.getOwnPropertyDescriptor(base, property); | ||
if (desc.set) { | ||
desc.set.call(receiver, value); | ||
return true; | ||
} else if (!desc.writable) { | ||
return false; | ||
} | ||
} | ||
desc = Object.getOwnPropertyDescriptor(receiver, property); | ||
if (desc) { | ||
if (!desc.writable) { | ||
return false; | ||
} | ||
desc.value = value; | ||
Object.defineProperty(receiver, property, desc); | ||
} else { | ||
defineProperty(receiver, property, value); | ||
} | ||
return true; | ||
}; | ||
} | ||
return set(target, property, value, receiver); | ||
function set(e, r, t, o) { | ||
return set = "undefined" != typeof Reflect && Reflect.set ? Reflect.set : function (e, r, t, o) { | ||
var f, | ||
i = superPropBase(e, r); | ||
if (i) { | ||
if ((f = Object.getOwnPropertyDescriptor(i, r)).set) return f.set.call(o, t), !0; | ||
if (!f.writable) return !1; | ||
} | ||
if (f = Object.getOwnPropertyDescriptor(o, r)) { | ||
if (!f.writable) return !1; | ||
f.value = t, Object.defineProperty(o, r, f); | ||
} else defineProperty(o, r, t); | ||
return !0; | ||
}, set(e, r, t, o); | ||
} | ||
export default function _set(target, property, value, receiver, isStrict) { | ||
var s = set(target, property, value, receiver || target); | ||
if (!s && isStrict) { | ||
throw new TypeError('failed to set property'); | ||
} | ||
return value; | ||
} | ||
function _set(e, r, t, o, f) { | ||
if (!set(e, r, t, o || e) && f) throw new TypeError("failed to set property"); | ||
return t; | ||
} | ||
export { _set as default }; |
@@ -1,2 +0,2 @@ | ||
export default function setFunctionName(e, t, n) { | ||
function setFunctionName(e, t, n) { | ||
"symbol" == typeof t && (t = (t = t.description) ? "[" + t + "]" : ""); | ||
@@ -10,2 +10,3 @@ try { | ||
return e; | ||
} | ||
} | ||
export { setFunctionName as default }; |
@@ -1,7 +0,6 @@ | ||
export default function _setPrototypeOf(o, p) { | ||
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { | ||
o.__proto__ = p; | ||
return o; | ||
}; | ||
return _setPrototypeOf(o, p); | ||
} | ||
function _setPrototypeOf(t, e) { | ||
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { | ||
return t.__proto__ = e, t; | ||
}, _setPrototypeOf(t, e); | ||
} | ||
export { _setPrototypeOf as default }; |
@@ -1,7 +0,7 @@ | ||
export default function _skipFirstGeneratorNext(fn) { | ||
function _skipFirstGeneratorNext(t) { | ||
return function () { | ||
var it = fn.apply(this, arguments); | ||
it.next(); | ||
return it; | ||
var r = t.apply(this, arguments); | ||
return r.next(), r; | ||
}; | ||
} | ||
} | ||
export { _skipFirstGeneratorNext as default }; |
@@ -5,4 +5,5 @@ import arrayWithHoles from "./arrayWithHoles.js"; | ||
import nonIterableRest from "./nonIterableRest.js"; | ||
export default function _slicedToArray(arr, i) { | ||
return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest(); | ||
} | ||
function _slicedToArray(r, e) { | ||
return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest(); | ||
} | ||
export { _slicedToArray as default }; |
import getPrototypeOf from "./getPrototypeOf.js"; | ||
export default function _superPropBase(object, property) { | ||
while (!Object.prototype.hasOwnProperty.call(object, property)) { | ||
object = getPrototypeOf(object); | ||
if (object === null) break; | ||
} | ||
return object; | ||
} | ||
function _superPropBase(t, o) { | ||
for (; !{}.hasOwnProperty.call(t, o) && null !== (t = getPrototypeOf(t));); | ||
return t; | ||
} | ||
export { _superPropBase as default }; |
@@ -1,10 +0,8 @@ | ||
export default function _taggedTemplateLiteral(strings, raw) { | ||
if (!raw) { | ||
raw = strings.slice(0); | ||
} | ||
return Object.freeze(Object.defineProperties(strings, { | ||
function _taggedTemplateLiteral(e, t) { | ||
return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { | ||
raw: { | ||
value: Object.freeze(raw) | ||
value: Object.freeze(t) | ||
} | ||
})); | ||
} | ||
} | ||
export { _taggedTemplateLiteral as default }; |
@@ -1,7 +0,4 @@ | ||
export default function _taggedTemplateLiteralLoose(strings, raw) { | ||
if (!raw) { | ||
raw = strings.slice(0); | ||
} | ||
strings.raw = raw; | ||
return strings; | ||
} | ||
function _taggedTemplateLiteralLoose(e, t) { | ||
return t || (t = e.slice(0)), e.raw = t, e; | ||
} | ||
export { _taggedTemplateLiteralLoose as default }; |
@@ -1,3 +0,4 @@ | ||
export default function _tdzError(name) { | ||
throw new ReferenceError(name + " is not defined - temporal dead zone"); | ||
} | ||
function _tdzError(e) { | ||
throw new ReferenceError(e + " is not defined - temporal dead zone"); | ||
} | ||
export { _tdzError as default }; |
@@ -1,5 +0,6 @@ | ||
import undef from "./temporalUndefined.js"; | ||
import err from "./tdz.js"; | ||
export default function _temporalRef(val, name) { | ||
return val === undef ? err(name) : val; | ||
} | ||
import temporalUndefined from "./temporalUndefined.js"; | ||
import tdz from "./tdz.js"; | ||
function _temporalRef(r, e) { | ||
return r === temporalUndefined ? tdz(e) : r; | ||
} | ||
export { _temporalRef as default }; |
@@ -1,1 +0,2 @@ | ||
export default function _temporalUndefined() {} | ||
function _temporalUndefined() {} | ||
export { _temporalUndefined as default }; |
@@ -5,4 +5,5 @@ import arrayWithHoles from "./arrayWithHoles.js"; | ||
import nonIterableRest from "./nonIterableRest.js"; | ||
export default function _toArray(arr) { | ||
return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest(); | ||
} | ||
function _toArray(r) { | ||
return arrayWithHoles(r) || iterableToArray(r) || unsupportedIterableToArray(r) || nonIterableRest(); | ||
} | ||
export { _toArray as default }; |
@@ -5,4 +5,5 @@ import arrayWithoutHoles from "./arrayWithoutHoles.js"; | ||
import nonIterableSpread from "./nonIterableSpread.js"; | ||
export default function _toConsumableArray(arr) { | ||
return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread(); | ||
} | ||
function _toConsumableArray(r) { | ||
return arrayWithoutHoles(r) || iterableToArray(r) || unsupportedIterableToArray(r) || nonIterableSpread(); | ||
} | ||
export { _toConsumableArray as default }; |
@@ -1,2 +0,2 @@ | ||
export default function toPrimitive(t, r) { | ||
function toPrimitive(t, r) { | ||
if ("object" != typeof t || !t) return t; | ||
@@ -10,2 +10,3 @@ var e = t[Symbol.toPrimitive]; | ||
return ("string" === r ? String : Number)(t); | ||
} | ||
} | ||
export { toPrimitive as default }; |
import toPrimitive from "./toPrimitive.js"; | ||
export default function toPropertyKey(t) { | ||
function toPropertyKey(t) { | ||
var i = toPrimitive(t, "string"); | ||
return "symbol" == typeof i ? i : i + ""; | ||
} | ||
} | ||
export { toPropertyKey as default }; |
@@ -1,2 +0,2 @@ | ||
export default function _toSetter(t, e, n) { | ||
function _toSetter(t, e, n) { | ||
e || (e = []); | ||
@@ -9,2 +9,3 @@ var r = e.length++; | ||
}); | ||
} | ||
} | ||
export { _toSetter as default }; |
@@ -1,2 +0,2 @@ | ||
export default function _typeof(o) { | ||
function _typeof(o) { | ||
"@babel/helpers - typeof"; | ||
@@ -9,2 +9,3 @@ | ||
}, _typeof(o); | ||
} | ||
} | ||
export { _typeof as default }; |
import arrayLikeToArray from "./arrayLikeToArray.js"; | ||
export default function _unsupportedIterableToArray(o, minLen) { | ||
if (!o) return; | ||
if (typeof o === "string") return arrayLikeToArray(o, minLen); | ||
var n = Object.prototype.toString.call(o).slice(8, -1); | ||
if (n === "Object" && o.constructor) n = o.constructor.name; | ||
if (n === "Map" || n === "Set") return Array.from(o); | ||
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen); | ||
} | ||
function _unsupportedIterableToArray(r, a) { | ||
if (r) { | ||
if ("string" == typeof r) return arrayLikeToArray(r, a); | ||
var t = {}.toString.call(r).slice(8, -1); | ||
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? arrayLikeToArray(r, a) : void 0; | ||
} | ||
} | ||
export { _unsupportedIterableToArray as default }; |
@@ -5,6 +5,6 @@ import _SuppressedError from "core-js-pure/features/suppressed-error.js"; | ||
import _pushInstanceProperty from "core-js-pure/features/instance/push.js"; | ||
export default function _usingCtx() { | ||
function _usingCtx() { | ||
var r = "function" == typeof _SuppressedError ? _SuppressedError : function (r, n) { | ||
var e = Error(); | ||
return e.name = "SuppressedError", e.suppressed = n, e.error = r, e; | ||
return e.name = "SuppressedError", e.error = r, e.suppressed = n, e; | ||
}, | ||
@@ -23,3 +23,6 @@ n = {}, | ||
}); | ||
} | ||
} else r && _pushInstanceProperty(e).call(e, { | ||
d: n, | ||
a: r | ||
}); | ||
return n; | ||
@@ -36,3 +39,3 @@ } | ||
var r, | ||
t = r.d.call(r.v); | ||
t = r.d && r.d.call(r.v); | ||
if (r.a) return Promise.resolve(t).then(next, err); | ||
@@ -45,3 +48,3 @@ } catch (r) { | ||
function err(e) { | ||
return o = o !== n ? new r(o, e) : e, next(); | ||
return o = o !== n ? new r(e, o) : e, next(); | ||
} | ||
@@ -51,2 +54,3 @@ return next(); | ||
}; | ||
} | ||
} | ||
export { _usingCtx as default }; |
import AsyncGenerator from "./AsyncGenerator.js"; | ||
export default function _wrapAsyncGenerator(fn) { | ||
function _wrapAsyncGenerator(r) { | ||
return function () { | ||
return new AsyncGenerator(fn.apply(this, arguments)); | ||
return new AsyncGenerator(r.apply(this, arguments)); | ||
}; | ||
} | ||
} | ||
export { _wrapAsyncGenerator as default }; |
@@ -5,27 +5,24 @@ import getPrototypeOf from "./getPrototypeOf.js"; | ||
import construct from "./construct.js"; | ||
export default function _wrapNativeSuper(Class) { | ||
var _cache = typeof Map === "function" ? new Map() : undefined; | ||
_wrapNativeSuper = function _wrapNativeSuper(Class) { | ||
if (Class === null || !isNativeFunction(Class)) return Class; | ||
if (typeof Class !== "function") { | ||
throw new TypeError("Super expression must either be null or a function"); | ||
function _wrapNativeSuper(t) { | ||
var r = "function" == typeof Map ? new Map() : void 0; | ||
return _wrapNativeSuper = function (t) { | ||
if (null === t || !isNativeFunction(t)) return t; | ||
if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function"); | ||
if (void 0 !== r) { | ||
if (r.has(t)) return r.get(t); | ||
r.set(t, Wrapper); | ||
} | ||
if (typeof _cache !== "undefined") { | ||
if (_cache.has(Class)) return _cache.get(Class); | ||
_cache.set(Class, Wrapper); | ||
} | ||
function Wrapper() { | ||
return construct(Class, arguments, getPrototypeOf(this).constructor); | ||
return construct(t, arguments, getPrototypeOf(this).constructor); | ||
} | ||
Wrapper.prototype = Object.create(Class.prototype, { | ||
return Wrapper.prototype = Object.create(t.prototype, { | ||
constructor: { | ||
value: Wrapper, | ||
enumerable: false, | ||
writable: true, | ||
configurable: true | ||
enumerable: !1, | ||
writable: !0, | ||
configurable: !0 | ||
} | ||
}); | ||
return setPrototypeOf(Wrapper, Class); | ||
}; | ||
return _wrapNativeSuper(Class); | ||
} | ||
}), setPrototypeOf(Wrapper, t); | ||
}, _wrapNativeSuper(t); | ||
} | ||
export { _wrapNativeSuper as default }; |
import _pushInstanceProperty from "core-js-pure/features/instance/push.js"; | ||
import setPrototypeOf from "./setPrototypeOf.js"; | ||
import inherits from "./inherits.js"; | ||
export default function _wrapRegExp() { | ||
function _wrapRegExp() { | ||
_wrapRegExp = function (e, r) { | ||
@@ -51,2 +51,3 @@ return new BabelRegExp(e, void 0, r); | ||
}, _wrapRegExp.apply(this, arguments); | ||
} | ||
} | ||
export { _wrapRegExp as default }; |
@@ -1,3 +0,4 @@ | ||
export default function _writeOnlyError(name) { | ||
throw new TypeError("\"" + name + "\" is write-only"); | ||
} | ||
function _writeOnlyError(r) { | ||
throw new TypeError('"' + r + '" is write-only'); | ||
} | ||
export { _writeOnlyError as default }; |
function _extends() { | ||
module.exports = _extends = Object.assign ? Object.assign.bind() : function (target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i]; | ||
for (var key in source) { | ||
if (Object.prototype.hasOwnProperty.call(source, key)) { | ||
target[key] = source[key]; | ||
} | ||
} | ||
return (module.exports = _extends = Object.assign ? Object.assign.bind() : function (n) { | ||
for (var e = 1; e < arguments.length; e++) { | ||
var t = arguments[e]; | ||
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); | ||
} | ||
return target; | ||
}, module.exports.__esModule = true, module.exports.default = module.exports; | ||
return _extends.apply(this, arguments); | ||
return n; | ||
}, module.exports.__esModule = true, module.exports.default = module.exports), _extends.apply(null, arguments); | ||
} | ||
module.exports = _extends, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -1,18 +0,11 @@ | ||
var superPropBase = require("./superPropBase.js"); | ||
const superPropBase = require("./superPropBase.js"); | ||
function _get() { | ||
if (typeof Reflect !== "undefined" && Reflect.get) { | ||
module.exports = _get = Reflect.get.bind(), module.exports.__esModule = true, module.exports.default = module.exports; | ||
} else { | ||
module.exports = _get = function _get(target, property, receiver) { | ||
var base = superPropBase(target, property); | ||
if (!base) return; | ||
var desc = Object.getOwnPropertyDescriptor(base, property); | ||
if (desc.get) { | ||
return desc.get.call(arguments.length < 3 ? target : receiver); | ||
} | ||
return desc.value; | ||
}, module.exports.__esModule = true, module.exports.default = module.exports; | ||
} | ||
return _get.apply(this, arguments); | ||
return (module.exports = _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { | ||
var p = superPropBase(e, t); | ||
if (p) { | ||
var n = Object.getOwnPropertyDescriptor(p, t); | ||
return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; | ||
} | ||
}, module.exports.__esModule = true, module.exports.default = module.exports), _get.apply(null, arguments); | ||
} | ||
module.exports = _get, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -1,7 +0,6 @@ | ||
function _getPrototypeOf(o) { | ||
module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { | ||
return o.__proto__ || Object.getPrototypeOf(o); | ||
}, module.exports.__esModule = true, module.exports.default = module.exports; | ||
return _getPrototypeOf(o); | ||
function _getPrototypeOf(t) { | ||
return (module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { | ||
return t.__proto__ || Object.getPrototypeOf(t); | ||
}, module.exports.__esModule = true, module.exports.default = module.exports), _getPrototypeOf(t); | ||
} | ||
module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -1,4 +0,4 @@ | ||
function _identity(x) { | ||
return x; | ||
function _identity(t) { | ||
return t; | ||
} | ||
module.exports = _identity, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -1,18 +0,14 @@ | ||
var setPrototypeOf = require("./setPrototypeOf.js"); | ||
function _inherits(subClass, superClass) { | ||
if (typeof superClass !== "function" && superClass !== null) { | ||
throw new TypeError("Super expression must either be null or a function"); | ||
} | ||
subClass.prototype = Object.create(superClass && superClass.prototype, { | ||
const setPrototypeOf = require("./setPrototypeOf.js"); | ||
function _inherits(t, e) { | ||
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); | ||
t.prototype = Object.create(e && e.prototype, { | ||
constructor: { | ||
value: subClass, | ||
writable: true, | ||
configurable: true | ||
value: t, | ||
writable: !0, | ||
configurable: !0 | ||
} | ||
}); | ||
Object.defineProperty(subClass, "prototype", { | ||
writable: false | ||
}); | ||
if (superClass) setPrototypeOf(subClass, superClass); | ||
}), Object.defineProperty(t, "prototype", { | ||
writable: !1 | ||
}), e && setPrototypeOf(t, e); | ||
} | ||
module.exports = _inherits, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -1,7 +0,5 @@ | ||
var setPrototypeOf = require("./setPrototypeOf.js"); | ||
function _inheritsLoose(subClass, superClass) { | ||
subClass.prototype = Object.create(superClass.prototype); | ||
subClass.prototype.constructor = subClass; | ||
setPrototypeOf(subClass, superClass); | ||
const setPrototypeOf = require("./setPrototypeOf.js"); | ||
function _inheritsLoose(t, o) { | ||
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, setPrototypeOf(t, o); | ||
} | ||
module.exports = _inheritsLoose, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -1,10 +0,9 @@ | ||
function _initializerDefineProperty(target, property, descriptor, context) { | ||
if (!descriptor) return; | ||
Object.defineProperty(target, property, { | ||
enumerable: descriptor.enumerable, | ||
configurable: descriptor.configurable, | ||
writable: descriptor.writable, | ||
value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 | ||
function _initializerDefineProperty(e, i, r, l) { | ||
r && Object.defineProperty(e, i, { | ||
enumerable: r.enumerable, | ||
configurable: r.configurable, | ||
writable: r.writable, | ||
value: r.initializer ? r.initializer.call(l) : void 0 | ||
}); | ||
} | ||
module.exports = _initializerDefineProperty, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -1,4 +0,4 @@ | ||
function _initializerWarningHelper(descriptor, context) { | ||
throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); | ||
function _initializerWarningHelper(r, e) { | ||
throw Error("Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform."); | ||
} | ||
module.exports = _initializerWarningHelper, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -1,8 +0,4 @@ | ||
function _instanceof(left, right) { | ||
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { | ||
return !!right[Symbol.hasInstance](left); | ||
} else { | ||
return left instanceof right; | ||
} | ||
function _instanceof(n, e) { | ||
return null != e && "undefined" != typeof Symbol && e[Symbol.hasInstance] ? !!e[Symbol.hasInstance](n) : n instanceof e; | ||
} | ||
module.exports = _instanceof, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -1,6 +0,6 @@ | ||
function _interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : { | ||
default: obj | ||
function _interopRequireDefault(e) { | ||
return e && e.__esModule ? e : { | ||
default: e | ||
}; | ||
} | ||
module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -1,8 +0,8 @@ | ||
function _isNativeFunction(fn) { | ||
function _isNativeFunction(t) { | ||
try { | ||
return Function.toString.call(fn).indexOf("[native code]") !== -1; | ||
} catch (e) { | ||
return typeof fn === "function"; | ||
return -1 !== Function.toString.call(t).indexOf("[native code]"); | ||
} catch (n) { | ||
return "function" == typeof t; | ||
} | ||
} | ||
module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -1,4 +0,4 @@ | ||
function _iterableToArray(iter) { | ||
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); | ||
function _iterableToArray(r) { | ||
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); | ||
} | ||
module.exports = _iterableToArray, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -1,9 +0,9 @@ | ||
var arrayLikeToArray = require("./arrayLikeToArray.js"); | ||
function _maybeArrayLike(next, arr, i) { | ||
if (arr && !Array.isArray(arr) && typeof arr.length === "number") { | ||
var len = arr.length; | ||
return arrayLikeToArray(arr, i !== void 0 && i < len ? i : len); | ||
const arrayLikeToArray = require("./arrayLikeToArray.js"); | ||
function _maybeArrayLike(r, a, e) { | ||
if (a && !Array.isArray(a) && "number" == typeof a.length) { | ||
var y = a.length; | ||
return arrayLikeToArray(a, void 0 !== e && e < y ? e : y); | ||
} | ||
return next(arr, i); | ||
return r(a, e); | ||
} | ||
module.exports = _maybeArrayLike, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -1,6 +0,4 @@ | ||
function _newArrowCheck(innerThis, boundThis) { | ||
if (innerThis !== boundThis) { | ||
throw new TypeError("Cannot instantiate an arrow function"); | ||
} | ||
function _newArrowCheck(n, r) { | ||
if (n !== r) throw new TypeError("Cannot instantiate an arrow function"); | ||
} | ||
module.exports = _newArrowCheck, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -1,4 +0,4 @@ | ||
function _objectDestructuringEmpty(obj) { | ||
if (obj == null) throw new TypeError("Cannot destructure " + obj); | ||
function _objectDestructuringEmpty(t) { | ||
if (null == t) throw new TypeError("Cannot destructure " + t); | ||
} | ||
module.exports = _objectDestructuringEmpty, module.exports.__esModule = true, module.exports.default = module.exports; |
var _pushInstanceProperty = require("core-js-pure/features/instance/push.js"); | ||
var defineProperty = require("./defineProperty.js"); | ||
const defineProperty = require("./defineProperty.js"); | ||
function ownKeys(e, r) { | ||
@@ -4,0 +4,0 @@ var t = Object.keys(e); |
@@ -1,17 +0,13 @@ | ||
var objectWithoutPropertiesLoose = require("./objectWithoutPropertiesLoose.js"); | ||
function _objectWithoutProperties(source, excluded) { | ||
if (source == null) return {}; | ||
var target = objectWithoutPropertiesLoose(source, excluded); | ||
var key, i; | ||
const objectWithoutPropertiesLoose = require("./objectWithoutPropertiesLoose.js"); | ||
function _objectWithoutProperties(e, t) { | ||
if (null == e) return {}; | ||
var o, | ||
r, | ||
i = objectWithoutPropertiesLoose(e, t); | ||
if (Object.getOwnPropertySymbols) { | ||
var sourceSymbolKeys = Object.getOwnPropertySymbols(source); | ||
for (i = 0; i < sourceSymbolKeys.length; i++) { | ||
key = sourceSymbolKeys[i]; | ||
if (excluded.indexOf(key) >= 0) continue; | ||
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; | ||
target[key] = source[key]; | ||
} | ||
var n = Object.getOwnPropertySymbols(e); | ||
for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); | ||
} | ||
return target; | ||
return i; | ||
} | ||
module.exports = _objectWithoutProperties, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -1,13 +0,10 @@ | ||
function _objectWithoutPropertiesLoose(source, excluded) { | ||
if (source == null) return {}; | ||
var target = {}; | ||
var sourceKeys = Object.keys(source); | ||
var key, i; | ||
for (i = 0; i < sourceKeys.length; i++) { | ||
key = sourceKeys[i]; | ||
if (excluded.indexOf(key) >= 0) continue; | ||
target[key] = source[key]; | ||
function _objectWithoutPropertiesLoose(r, e) { | ||
if (null == r) return {}; | ||
var t = {}; | ||
for (var n in r) if ({}.hasOwnProperty.call(r, n)) { | ||
if (e.indexOf(n) >= 0) continue; | ||
t[n] = r[n]; | ||
} | ||
return target; | ||
return t; | ||
} | ||
module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -1,4 +0,4 @@ | ||
function _OverloadYield(t, e) { | ||
this.v = t, this.k = e; | ||
function _OverloadYield(e, d) { | ||
this.v = e, this.k = d; | ||
} | ||
module.exports = _OverloadYield, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -1,10 +0,7 @@ | ||
var assertThisInitialized = require("./assertThisInitialized.js"); | ||
function _possibleConstructorReturn(self, call) { | ||
if (call && (typeof call === "object" || typeof call === "function")) { | ||
return call; | ||
} else if (call !== void 0) { | ||
throw new TypeError("Derived constructors may only return object or undefined"); | ||
} | ||
return assertThisInitialized(self); | ||
const assertThisInitialized = require("./assertThisInitialized.js"); | ||
function _possibleConstructorReturn(t, e) { | ||
if (e && ("object" == typeof e || "function" == typeof e)) return e; | ||
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); | ||
return assertThisInitialized(t); | ||
} | ||
module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -1,4 +0,4 @@ | ||
function _readOnlyError(name) { | ||
throw new TypeError("\"" + name + "\" is read-only"); | ||
function _readOnlyError(r) { | ||
throw new TypeError('"' + r + '" is read-only'); | ||
} | ||
module.exports = _readOnlyError, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -1,41 +0,22 @@ | ||
var superPropBase = require("./superPropBase.js"); | ||
var defineProperty = require("./defineProperty.js"); | ||
function set(target, property, value, receiver) { | ||
if (typeof Reflect !== "undefined" && Reflect.set) { | ||
set = Reflect.set; | ||
} else { | ||
set = function set(target, property, value, receiver) { | ||
var base = superPropBase(target, property); | ||
var desc; | ||
if (base) { | ||
desc = Object.getOwnPropertyDescriptor(base, property); | ||
if (desc.set) { | ||
desc.set.call(receiver, value); | ||
return true; | ||
} else if (!desc.writable) { | ||
return false; | ||
} | ||
} | ||
desc = Object.getOwnPropertyDescriptor(receiver, property); | ||
if (desc) { | ||
if (!desc.writable) { | ||
return false; | ||
} | ||
desc.value = value; | ||
Object.defineProperty(receiver, property, desc); | ||
} else { | ||
defineProperty(receiver, property, value); | ||
} | ||
return true; | ||
}; | ||
} | ||
return set(target, property, value, receiver); | ||
const superPropBase = require("./superPropBase.js"); | ||
const defineProperty = require("./defineProperty.js"); | ||
function set(e, r, t, o) { | ||
return set = "undefined" != typeof Reflect && Reflect.set ? Reflect.set : function (e, r, t, o) { | ||
var f, | ||
i = superPropBase(e, r); | ||
if (i) { | ||
if ((f = Object.getOwnPropertyDescriptor(i, r)).set) return f.set.call(o, t), !0; | ||
if (!f.writable) return !1; | ||
} | ||
if (f = Object.getOwnPropertyDescriptor(o, r)) { | ||
if (!f.writable) return !1; | ||
f.value = t, Object.defineProperty(o, r, f); | ||
} else defineProperty(o, r, t); | ||
return !0; | ||
}, set(e, r, t, o); | ||
} | ||
function _set(target, property, value, receiver, isStrict) { | ||
var s = set(target, property, value, receiver || target); | ||
if (!s && isStrict) { | ||
throw new TypeError('failed to set property'); | ||
} | ||
return value; | ||
function _set(e, r, t, o, f) { | ||
if (!set(e, r, t, o || e) && f) throw new TypeError("failed to set property"); | ||
return t; | ||
} | ||
module.exports = _set, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -1,8 +0,6 @@ | ||
function _setPrototypeOf(o, p) { | ||
module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { | ||
o.__proto__ = p; | ||
return o; | ||
}, module.exports.__esModule = true, module.exports.default = module.exports; | ||
return _setPrototypeOf(o, p); | ||
function _setPrototypeOf(t, e) { | ||
return (module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { | ||
return t.__proto__ = e, t; | ||
}, module.exports.__esModule = true, module.exports.default = module.exports), _setPrototypeOf(t, e); | ||
} | ||
module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -1,8 +0,7 @@ | ||
function _skipFirstGeneratorNext(fn) { | ||
function _skipFirstGeneratorNext(t) { | ||
return function () { | ||
var it = fn.apply(this, arguments); | ||
it.next(); | ||
return it; | ||
var r = t.apply(this, arguments); | ||
return r.next(), r; | ||
}; | ||
} | ||
module.exports = _skipFirstGeneratorNext, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -1,8 +0,8 @@ | ||
var arrayWithHoles = require("./arrayWithHoles.js"); | ||
var iterableToArrayLimit = require("./iterableToArrayLimit.js"); | ||
var unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); | ||
var nonIterableRest = require("./nonIterableRest.js"); | ||
function _slicedToArray(arr, i) { | ||
return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest(); | ||
const arrayWithHoles = require("./arrayWithHoles.js"); | ||
const iterableToArrayLimit = require("./iterableToArrayLimit.js"); | ||
const unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); | ||
const nonIterableRest = require("./nonIterableRest.js"); | ||
function _slicedToArray(r, e) { | ||
return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest(); | ||
} | ||
module.exports = _slicedToArray, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -1,9 +0,6 @@ | ||
var getPrototypeOf = require("./getPrototypeOf.js"); | ||
function _superPropBase(object, property) { | ||
while (!Object.prototype.hasOwnProperty.call(object, property)) { | ||
object = getPrototypeOf(object); | ||
if (object === null) break; | ||
} | ||
return object; | ||
const getPrototypeOf = require("./getPrototypeOf.js"); | ||
function _superPropBase(t, o) { | ||
for (; !{}.hasOwnProperty.call(t, o) && null !== (t = getPrototypeOf(t));); | ||
return t; | ||
} | ||
module.exports = _superPropBase, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -1,8 +0,5 @@ | ||
function _taggedTemplateLiteral(strings, raw) { | ||
if (!raw) { | ||
raw = strings.slice(0); | ||
} | ||
return Object.freeze(Object.defineProperties(strings, { | ||
function _taggedTemplateLiteral(e, t) { | ||
return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { | ||
raw: { | ||
value: Object.freeze(raw) | ||
value: Object.freeze(t) | ||
} | ||
@@ -9,0 +6,0 @@ })); |
@@ -1,8 +0,4 @@ | ||
function _taggedTemplateLiteralLoose(strings, raw) { | ||
if (!raw) { | ||
raw = strings.slice(0); | ||
} | ||
strings.raw = raw; | ||
return strings; | ||
function _taggedTemplateLiteralLoose(e, t) { | ||
return t || (t = e.slice(0)), e.raw = t, e; | ||
} | ||
module.exports = _taggedTemplateLiteralLoose, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -1,4 +0,4 @@ | ||
function _tdzError(name) { | ||
throw new ReferenceError(name + " is not defined - temporal dead zone"); | ||
function _tdzError(e) { | ||
throw new ReferenceError(e + " is not defined - temporal dead zone"); | ||
} | ||
module.exports = _tdzError, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -1,6 +0,6 @@ | ||
var temporalUndefined = require("./temporalUndefined.js"); | ||
var tdz = require("./tdz.js"); | ||
function _temporalRef(val, name) { | ||
return val === temporalUndefined ? tdz(name) : val; | ||
const temporalUndefined = require("./temporalUndefined.js"); | ||
const tdz = require("./tdz.js"); | ||
function _temporalRef(r, e) { | ||
return r === temporalUndefined ? tdz(e) : r; | ||
} | ||
module.exports = _temporalRef, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -1,8 +0,8 @@ | ||
var arrayWithHoles = require("./arrayWithHoles.js"); | ||
var iterableToArray = require("./iterableToArray.js"); | ||
var unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); | ||
var nonIterableRest = require("./nonIterableRest.js"); | ||
function _toArray(arr) { | ||
return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest(); | ||
const arrayWithHoles = require("./arrayWithHoles.js"); | ||
const iterableToArray = require("./iterableToArray.js"); | ||
const unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); | ||
const nonIterableRest = require("./nonIterableRest.js"); | ||
function _toArray(r) { | ||
return arrayWithHoles(r) || iterableToArray(r) || unsupportedIterableToArray(r) || nonIterableRest(); | ||
} | ||
module.exports = _toArray, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -1,8 +0,8 @@ | ||
var arrayWithoutHoles = require("./arrayWithoutHoles.js"); | ||
var iterableToArray = require("./iterableToArray.js"); | ||
var unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); | ||
var nonIterableSpread = require("./nonIterableSpread.js"); | ||
function _toConsumableArray(arr) { | ||
return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread(); | ||
const arrayWithoutHoles = require("./arrayWithoutHoles.js"); | ||
const iterableToArray = require("./iterableToArray.js"); | ||
const unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); | ||
const nonIterableSpread = require("./nonIterableSpread.js"); | ||
function _toConsumableArray(r) { | ||
return arrayWithoutHoles(r) || iterableToArray(r) || unsupportedIterableToArray(r) || nonIterableSpread(); | ||
} | ||
module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -1,2 +0,2 @@ | ||
var toPrimitive = require("./toPrimitive.js"); | ||
const toPrimitive = require("./toPrimitive.js"); | ||
function toPropertyKey(t) { | ||
@@ -3,0 +3,0 @@ var i = toPrimitive(t, "string"); |
@@ -1,10 +0,9 @@ | ||
var arrayLikeToArray = require("./arrayLikeToArray.js"); | ||
function _unsupportedIterableToArray(o, minLen) { | ||
if (!o) return; | ||
if (typeof o === "string") return arrayLikeToArray(o, minLen); | ||
var n = Object.prototype.toString.call(o).slice(8, -1); | ||
if (n === "Object" && o.constructor) n = o.constructor.name; | ||
if (n === "Map" || n === "Set") return Array.from(o); | ||
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen); | ||
const arrayLikeToArray = require("./arrayLikeToArray.js"); | ||
function _unsupportedIterableToArray(r, a) { | ||
if (r) { | ||
if ("string" == typeof r) return arrayLikeToArray(r, a); | ||
var t = {}.toString.call(r).slice(8, -1); | ||
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? arrayLikeToArray(r, a) : void 0; | ||
} | ||
} | ||
module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -8,3 +8,3 @@ var _SuppressedError = require("core-js-pure/features/suppressed-error.js"); | ||
var e = Error(); | ||
return e.name = "SuppressedError", e.suppressed = n, e.error = r, e; | ||
return e.name = "SuppressedError", e.error = r, e.suppressed = n, e; | ||
}, | ||
@@ -23,3 +23,6 @@ n = {}, | ||
}); | ||
} | ||
} else r && _pushInstanceProperty(e).call(e, { | ||
d: n, | ||
a: r | ||
}); | ||
return n; | ||
@@ -36,3 +39,3 @@ } | ||
var r, | ||
t = r.d.call(r.v); | ||
t = r.d && r.d.call(r.v); | ||
if (r.a) return Promise.resolve(t).then(next, err); | ||
@@ -45,3 +48,3 @@ } catch (r) { | ||
function err(e) { | ||
return o = o !== n ? new r(o, e) : e, next(); | ||
return o = o !== n ? new r(e, o) : e, next(); | ||
} | ||
@@ -48,0 +51,0 @@ return next(); |
@@ -1,7 +0,7 @@ | ||
var AsyncGenerator = require("./AsyncGenerator.js"); | ||
function _wrapAsyncGenerator(fn) { | ||
const AsyncGenerator = require("./AsyncGenerator.js"); | ||
function _wrapAsyncGenerator(r) { | ||
return function () { | ||
return new AsyncGenerator(fn.apply(this, arguments)); | ||
return new AsyncGenerator(r.apply(this, arguments)); | ||
}; | ||
} | ||
module.exports = _wrapAsyncGenerator, module.exports.__esModule = true, module.exports.default = module.exports; |
@@ -1,31 +0,27 @@ | ||
var getPrototypeOf = require("./getPrototypeOf.js"); | ||
var setPrototypeOf = require("./setPrototypeOf.js"); | ||
var isNativeFunction = require("./isNativeFunction.js"); | ||
var construct = require("./construct.js"); | ||
function _wrapNativeSuper(Class) { | ||
var _cache = typeof Map === "function" ? new Map() : undefined; | ||
module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) { | ||
if (Class === null || !isNativeFunction(Class)) return Class; | ||
if (typeof Class !== "function") { | ||
throw new TypeError("Super expression must either be null or a function"); | ||
const getPrototypeOf = require("./getPrototypeOf.js"); | ||
const setPrototypeOf = require("./setPrototypeOf.js"); | ||
const isNativeFunction = require("./isNativeFunction.js"); | ||
const construct = require("./construct.js"); | ||
function _wrapNativeSuper(t) { | ||
var r = "function" == typeof Map ? new Map() : void 0; | ||
return (module.exports = _wrapNativeSuper = function (t) { | ||
if (null === t || !isNativeFunction(t)) return t; | ||
if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function"); | ||
if (void 0 !== r) { | ||
if (r.has(t)) return r.get(t); | ||
r.set(t, Wrapper); | ||
} | ||
if (typeof _cache !== "undefined") { | ||
if (_cache.has(Class)) return _cache.get(Class); | ||
_cache.set(Class, Wrapper); | ||
} | ||
function Wrapper() { | ||
return construct(Class, arguments, getPrototypeOf(this).constructor); | ||
return construct(t, arguments, getPrototypeOf(this).constructor); | ||
} | ||
Wrapper.prototype = Object.create(Class.prototype, { | ||
return Wrapper.prototype = Object.create(t.prototype, { | ||
constructor: { | ||
value: Wrapper, | ||
enumerable: false, | ||
writable: true, | ||
configurable: true | ||
enumerable: !1, | ||
writable: !0, | ||
configurable: !0 | ||
} | ||
}); | ||
return setPrototypeOf(Wrapper, Class); | ||
}, module.exports.__esModule = true, module.exports.default = module.exports; | ||
return _wrapNativeSuper(Class); | ||
}), setPrototypeOf(Wrapper, t); | ||
}, module.exports.__esModule = true, module.exports.default = module.exports), _wrapNativeSuper(t); | ||
} | ||
module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports.default = module.exports; |
var _pushInstanceProperty = require("core-js-pure/features/instance/push.js"); | ||
var setPrototypeOf = require("./setPrototypeOf.js"); | ||
var inherits = require("./inherits.js"); | ||
const setPrototypeOf = require("./setPrototypeOf.js"); | ||
const inherits = require("./inherits.js"); | ||
function _wrapRegExp() { | ||
@@ -5,0 +5,0 @@ module.exports = _wrapRegExp = function (e, r) { |
@@ -1,4 +0,4 @@ | ||
function _writeOnlyError(name) { | ||
throw new TypeError("\"" + name + "\" is write-only"); | ||
function _writeOnlyError(r) { | ||
throw new TypeError('"' + r + '" is write-only'); | ||
} | ||
module.exports = _writeOnlyError, module.exports.__esModule = true, module.exports.default = module.exports; |
622
package.json
{ | ||
"name": "@babel/runtime-corejs3", | ||
"version": "8.0.0-alpha.8", | ||
"version": "8.0.0-alpha.9", | ||
"description": "babel's modular runtime helpers with core-js@3 polyfilling", | ||
@@ -30,27 +30,7 @@ "license": "MIT", | ||
}, | ||
"./helpers/applyDecs": { | ||
"node": "./helpers/applyDecs.js", | ||
"import": "./helpers/esm/applyDecs.js", | ||
"default": "./helpers/applyDecs.js" | ||
"./helpers/applyDecoratedDescriptor": { | ||
"node": "./helpers/applyDecoratedDescriptor.js", | ||
"import": "./helpers/esm/applyDecoratedDescriptor.js", | ||
"default": "./helpers/applyDecoratedDescriptor.js" | ||
}, | ||
"./helpers/applyDecs2203": { | ||
"node": "./helpers/applyDecs2203.js", | ||
"import": "./helpers/esm/applyDecs2203.js", | ||
"default": "./helpers/applyDecs2203.js" | ||
}, | ||
"./helpers/applyDecs2203R": { | ||
"node": "./helpers/applyDecs2203R.js", | ||
"import": "./helpers/esm/applyDecs2203R.js", | ||
"default": "./helpers/applyDecs2203R.js" | ||
}, | ||
"./helpers/applyDecs2301": { | ||
"node": "./helpers/applyDecs2301.js", | ||
"import": "./helpers/esm/applyDecs2301.js", | ||
"default": "./helpers/applyDecs2301.js" | ||
}, | ||
"./helpers/applyDecs2305": { | ||
"node": "./helpers/applyDecs2305.js", | ||
"import": "./helpers/esm/applyDecs2305.js", | ||
"default": "./helpers/applyDecs2305.js" | ||
}, | ||
"./helpers/applyDecs2311": { | ||
@@ -61,2 +41,17 @@ "node": "./helpers/applyDecs2311.js", | ||
}, | ||
"./helpers/arrayLikeToArray": { | ||
"node": "./helpers/arrayLikeToArray.js", | ||
"import": "./helpers/esm/arrayLikeToArray.js", | ||
"default": "./helpers/arrayLikeToArray.js" | ||
}, | ||
"./helpers/arrayWithHoles": { | ||
"node": "./helpers/arrayWithHoles.js", | ||
"import": "./helpers/esm/arrayWithHoles.js", | ||
"default": "./helpers/arrayWithHoles.js" | ||
}, | ||
"./helpers/arrayWithoutHoles": { | ||
"node": "./helpers/arrayWithoutHoles.js", | ||
"import": "./helpers/esm/arrayWithoutHoles.js", | ||
"default": "./helpers/arrayWithoutHoles.js" | ||
}, | ||
"./helpers/assertClassBrand": { | ||
@@ -67,2 +62,7 @@ "node": "./helpers/assertClassBrand.js", | ||
}, | ||
"./helpers/assertThisInitialized": { | ||
"node": "./helpers/assertThisInitialized.js", | ||
"import": "./helpers/esm/assertThisInitialized.js", | ||
"default": "./helpers/assertThisInitialized.js" | ||
}, | ||
"./helpers/asyncGeneratorDelegate": { | ||
@@ -78,2 +78,7 @@ "node": "./helpers/asyncGeneratorDelegate.js", | ||
}, | ||
"./helpers/asyncToGenerator": { | ||
"node": "./helpers/asyncToGenerator.js", | ||
"import": "./helpers/esm/asyncToGenerator.js", | ||
"default": "./helpers/asyncToGenerator.js" | ||
}, | ||
"./helpers/awaitAsyncGenerator": { | ||
@@ -94,2 +99,17 @@ "node": "./helpers/awaitAsyncGenerator.js", | ||
}, | ||
"./helpers/checkPrivateRedeclaration": { | ||
"node": "./helpers/checkPrivateRedeclaration.js", | ||
"import": "./helpers/esm/checkPrivateRedeclaration.js", | ||
"default": "./helpers/checkPrivateRedeclaration.js" | ||
}, | ||
"./helpers/classCallCheck": { | ||
"node": "./helpers/classCallCheck.js", | ||
"import": "./helpers/esm/classCallCheck.js", | ||
"default": "./helpers/classCallCheck.js" | ||
}, | ||
"./helpers/classNameTDZError": { | ||
"node": "./helpers/classNameTDZError.js", | ||
"import": "./helpers/esm/classNameTDZError.js", | ||
"default": "./helpers/classNameTDZError.js" | ||
}, | ||
"./helpers/classPrivateFieldGet2": { | ||
@@ -100,2 +120,17 @@ "node": "./helpers/classPrivateFieldGet2.js", | ||
}, | ||
"./helpers/classPrivateFieldInitSpec": { | ||
"node": "./helpers/classPrivateFieldInitSpec.js", | ||
"import": "./helpers/esm/classPrivateFieldInitSpec.js", | ||
"default": "./helpers/classPrivateFieldInitSpec.js" | ||
}, | ||
"./helpers/classPrivateFieldLooseBase": { | ||
"node": "./helpers/classPrivateFieldLooseBase.js", | ||
"import": "./helpers/esm/classPrivateFieldLooseBase.js", | ||
"default": "./helpers/classPrivateFieldLooseBase.js" | ||
}, | ||
"./helpers/classPrivateFieldLooseKey": { | ||
"node": "./helpers/classPrivateFieldLooseKey.js", | ||
"import": "./helpers/esm/classPrivateFieldLooseKey.js", | ||
"default": "./helpers/classPrivateFieldLooseKey.js" | ||
}, | ||
"./helpers/classPrivateFieldSet2": { | ||
@@ -111,2 +146,7 @@ "node": "./helpers/classPrivateFieldSet2.js", | ||
}, | ||
"./helpers/classPrivateMethodInitSpec": { | ||
"node": "./helpers/classPrivateMethodInitSpec.js", | ||
"import": "./helpers/esm/classPrivateMethodInitSpec.js", | ||
"default": "./helpers/classPrivateMethodInitSpec.js" | ||
}, | ||
"./helpers/classPrivateSetter": { | ||
@@ -117,2 +157,7 @@ "node": "./helpers/classPrivateSetter.js", | ||
}, | ||
"./helpers/classStaticPrivateMethodGet": { | ||
"node": "./helpers/classStaticPrivateMethodGet.js", | ||
"import": "./helpers/esm/classStaticPrivateMethodGet.js", | ||
"default": "./helpers/classStaticPrivateMethodGet.js" | ||
}, | ||
"./helpers/construct": { | ||
@@ -123,112 +168,27 @@ "node": "./helpers/construct.js", | ||
}, | ||
"./helpers/defineAccessor": { | ||
"node": "./helpers/defineAccessor.js", | ||
"import": "./helpers/esm/defineAccessor.js", | ||
"default": "./helpers/defineAccessor.js" | ||
"./helpers/createClass": { | ||
"node": "./helpers/createClass.js", | ||
"import": "./helpers/esm/createClass.js", | ||
"default": "./helpers/createClass.js" | ||
}, | ||
"./helpers/dispose": { | ||
"node": "./helpers/dispose.js", | ||
"import": "./helpers/esm/dispose.js", | ||
"default": "./helpers/dispose.js" | ||
"./helpers/createForOfIteratorHelper": { | ||
"node": "./helpers/createForOfIteratorHelper.js", | ||
"import": "./helpers/esm/createForOfIteratorHelper.js", | ||
"default": "./helpers/createForOfIteratorHelper.js" | ||
}, | ||
"./helpers/importDeferProxy": { | ||
"node": "./helpers/importDeferProxy.js", | ||
"import": "./helpers/esm/importDeferProxy.js", | ||
"default": "./helpers/importDeferProxy.js" | ||
"./helpers/createForOfIteratorHelperLoose": { | ||
"node": "./helpers/createForOfIteratorHelperLoose.js", | ||
"import": "./helpers/esm/createForOfIteratorHelperLoose.js", | ||
"default": "./helpers/createForOfIteratorHelperLoose.js" | ||
}, | ||
"./helpers/interopRequireWildcard": { | ||
"node": "./helpers/interopRequireWildcard.js", | ||
"import": "./helpers/esm/interopRequireWildcard.js", | ||
"default": "./helpers/interopRequireWildcard.js" | ||
"./helpers/createSuper": { | ||
"node": "./helpers/createSuper.js", | ||
"import": "./helpers/esm/createSuper.js", | ||
"default": "./helpers/createSuper.js" | ||
}, | ||
"./helpers/isNativeReflectConstruct": { | ||
"node": "./helpers/isNativeReflectConstruct.js", | ||
"import": "./helpers/esm/isNativeReflectConstruct.js", | ||
"default": "./helpers/isNativeReflectConstruct.js" | ||
"./helpers/decorate": { | ||
"node": "./helpers/decorate.js", | ||
"import": "./helpers/esm/decorate.js", | ||
"default": "./helpers/decorate.js" | ||
}, | ||
"./helpers/iterableToArrayLimit": { | ||
"node": "./helpers/iterableToArrayLimit.js", | ||
"import": "./helpers/esm/iterableToArrayLimit.js", | ||
"default": "./helpers/iterableToArrayLimit.js" | ||
}, | ||
"./helpers/iterableToArrayLimitLoose": { | ||
"node": "./helpers/iterableToArrayLimitLoose.js", | ||
"import": "./helpers/esm/iterableToArrayLimitLoose.js", | ||
"default": "./helpers/iterableToArrayLimitLoose.js" | ||
}, | ||
"./helpers/jsx": { | ||
"node": "./helpers/jsx.js", | ||
"import": "./helpers/esm/jsx.js", | ||
"default": "./helpers/jsx.js" | ||
}, | ||
"./helpers/objectSpread2": { | ||
"node": "./helpers/objectSpread2.js", | ||
"import": "./helpers/esm/objectSpread2.js", | ||
"default": "./helpers/objectSpread2.js" | ||
}, | ||
"./helpers/regeneratorRuntime": { | ||
"node": "./helpers/regeneratorRuntime.js", | ||
"import": "./helpers/esm/regeneratorRuntime.js", | ||
"default": "./helpers/regeneratorRuntime.js" | ||
}, | ||
"./helpers/setFunctionName": { | ||
"node": "./helpers/setFunctionName.js", | ||
"import": "./helpers/esm/setFunctionName.js", | ||
"default": "./helpers/setFunctionName.js" | ||
}, | ||
"./helpers/toPrimitive": { | ||
"node": "./helpers/toPrimitive.js", | ||
"import": "./helpers/esm/toPrimitive.js", | ||
"default": "./helpers/toPrimitive.js" | ||
}, | ||
"./helpers/toPropertyKey": { | ||
"node": "./helpers/toPropertyKey.js", | ||
"import": "./helpers/esm/toPropertyKey.js", | ||
"default": "./helpers/toPropertyKey.js" | ||
}, | ||
"./helpers/toSetter": { | ||
"node": "./helpers/toSetter.js", | ||
"import": "./helpers/esm/toSetter.js", | ||
"default": "./helpers/toSetter.js" | ||
}, | ||
"./helpers/typeof": { | ||
"node": "./helpers/typeof.js", | ||
"import": "./helpers/esm/typeof.js", | ||
"default": "./helpers/typeof.js" | ||
}, | ||
"./helpers/using": { | ||
"node": "./helpers/using.js", | ||
"import": "./helpers/esm/using.js", | ||
"default": "./helpers/using.js" | ||
}, | ||
"./helpers/usingCtx": { | ||
"node": "./helpers/usingCtx.js", | ||
"import": "./helpers/esm/usingCtx.js", | ||
"default": "./helpers/usingCtx.js" | ||
}, | ||
"./helpers/wrapRegExp": { | ||
"node": "./helpers/wrapRegExp.js", | ||
"import": "./helpers/esm/wrapRegExp.js", | ||
"default": "./helpers/wrapRegExp.js" | ||
}, | ||
"./helpers/wrapAsyncGenerator": { | ||
"node": "./helpers/wrapAsyncGenerator.js", | ||
"import": "./helpers/esm/wrapAsyncGenerator.js", | ||
"default": "./helpers/wrapAsyncGenerator.js" | ||
}, | ||
"./helpers/asyncToGenerator": { | ||
"node": "./helpers/asyncToGenerator.js", | ||
"import": "./helpers/esm/asyncToGenerator.js", | ||
"default": "./helpers/asyncToGenerator.js" | ||
}, | ||
"./helpers/classCallCheck": { | ||
"node": "./helpers/classCallCheck.js", | ||
"import": "./helpers/esm/classCallCheck.js", | ||
"default": "./helpers/classCallCheck.js" | ||
}, | ||
"./helpers/createClass": { | ||
"node": "./helpers/createClass.js", | ||
"import": "./helpers/esm/createClass.js", | ||
"default": "./helpers/createClass.js" | ||
}, | ||
"./helpers/defaults": { | ||
@@ -239,2 +199,7 @@ "node": "./helpers/defaults.js", | ||
}, | ||
"./helpers/defineAccessor": { | ||
"node": "./helpers/defineAccessor.js", | ||
"import": "./helpers/esm/defineAccessor.js", | ||
"default": "./helpers/defineAccessor.js" | ||
}, | ||
"./helpers/defineProperty": { | ||
@@ -250,2 +215,22 @@ "node": "./helpers/defineProperty.js", | ||
}, | ||
"./helpers/get": { | ||
"node": "./helpers/get.js", | ||
"import": "./helpers/esm/get.js", | ||
"default": "./helpers/get.js" | ||
}, | ||
"./helpers/getPrototypeOf": { | ||
"node": "./helpers/getPrototypeOf.js", | ||
"import": "./helpers/esm/getPrototypeOf.js", | ||
"default": "./helpers/getPrototypeOf.js" | ||
}, | ||
"./helpers/identity": { | ||
"node": "./helpers/identity.js", | ||
"import": "./helpers/esm/identity.js", | ||
"default": "./helpers/identity.js" | ||
}, | ||
"./helpers/importDeferProxy": { | ||
"node": "./helpers/importDeferProxy.js", | ||
"import": "./helpers/esm/importDeferProxy.js", | ||
"default": "./helpers/importDeferProxy.js" | ||
}, | ||
"./helpers/inherits": { | ||
@@ -261,22 +246,12 @@ "node": "./helpers/inherits.js", | ||
}, | ||
"./helpers/getPrototypeOf": { | ||
"node": "./helpers/getPrototypeOf.js", | ||
"import": "./helpers/esm/getPrototypeOf.js", | ||
"default": "./helpers/getPrototypeOf.js" | ||
"./helpers/initializerDefineProperty": { | ||
"node": "./helpers/initializerDefineProperty.js", | ||
"import": "./helpers/esm/initializerDefineProperty.js", | ||
"default": "./helpers/initializerDefineProperty.js" | ||
}, | ||
"./helpers/setPrototypeOf": { | ||
"node": "./helpers/setPrototypeOf.js", | ||
"import": "./helpers/esm/setPrototypeOf.js", | ||
"default": "./helpers/setPrototypeOf.js" | ||
"./helpers/initializerWarningHelper": { | ||
"node": "./helpers/initializerWarningHelper.js", | ||
"import": "./helpers/esm/initializerWarningHelper.js", | ||
"default": "./helpers/initializerWarningHelper.js" | ||
}, | ||
"./helpers/isNativeFunction": { | ||
"node": "./helpers/isNativeFunction.js", | ||
"import": "./helpers/esm/isNativeFunction.js", | ||
"default": "./helpers/isNativeFunction.js" | ||
}, | ||
"./helpers/wrapNativeSuper": { | ||
"node": "./helpers/wrapNativeSuper.js", | ||
"import": "./helpers/esm/wrapNativeSuper.js", | ||
"default": "./helpers/wrapNativeSuper.js" | ||
}, | ||
"./helpers/instanceof": { | ||
@@ -292,2 +267,37 @@ "node": "./helpers/instanceof.js", | ||
}, | ||
"./helpers/interopRequireWildcard": { | ||
"node": "./helpers/interopRequireWildcard.js", | ||
"import": "./helpers/esm/interopRequireWildcard.js", | ||
"default": "./helpers/interopRequireWildcard.js" | ||
}, | ||
"./helpers/isNativeFunction": { | ||
"node": "./helpers/isNativeFunction.js", | ||
"import": "./helpers/esm/isNativeFunction.js", | ||
"default": "./helpers/isNativeFunction.js" | ||
}, | ||
"./helpers/isNativeReflectConstruct": { | ||
"node": "./helpers/isNativeReflectConstruct.js", | ||
"import": "./helpers/esm/isNativeReflectConstruct.js", | ||
"default": "./helpers/isNativeReflectConstruct.js" | ||
}, | ||
"./helpers/iterableToArray": { | ||
"node": "./helpers/iterableToArray.js", | ||
"import": "./helpers/esm/iterableToArray.js", | ||
"default": "./helpers/iterableToArray.js" | ||
}, | ||
"./helpers/iterableToArrayLimit": { | ||
"node": "./helpers/iterableToArrayLimit.js", | ||
"import": "./helpers/esm/iterableToArrayLimit.js", | ||
"default": "./helpers/iterableToArrayLimit.js" | ||
}, | ||
"./helpers/jsx": { | ||
"node": "./helpers/jsx.js", | ||
"import": "./helpers/esm/jsx.js", | ||
"default": "./helpers/jsx.js" | ||
}, | ||
"./helpers/maybeArrayLike": { | ||
"node": "./helpers/maybeArrayLike.js", | ||
"import": "./helpers/esm/maybeArrayLike.js", | ||
"default": "./helpers/maybeArrayLike.js" | ||
}, | ||
"./helpers/newArrowCheck": { | ||
@@ -298,2 +308,17 @@ "node": "./helpers/newArrowCheck.js", | ||
}, | ||
"./helpers/nonIterableRest": { | ||
"node": "./helpers/nonIterableRest.js", | ||
"import": "./helpers/esm/nonIterableRest.js", | ||
"default": "./helpers/nonIterableRest.js" | ||
}, | ||
"./helpers/nonIterableSpread": { | ||
"node": "./helpers/nonIterableSpread.js", | ||
"import": "./helpers/esm/nonIterableSpread.js", | ||
"default": "./helpers/nonIterableSpread.js" | ||
}, | ||
"./helpers/nullishReceiverError": { | ||
"node": "./helpers/nullishReceiverError.js", | ||
"import": "./helpers/esm/nullishReceiverError.js", | ||
"default": "./helpers/nullishReceiverError.js" | ||
}, | ||
"./helpers/objectDestructuringEmpty": { | ||
@@ -304,6 +329,6 @@ "node": "./helpers/objectDestructuringEmpty.js", | ||
}, | ||
"./helpers/objectWithoutPropertiesLoose": { | ||
"node": "./helpers/objectWithoutPropertiesLoose.js", | ||
"import": "./helpers/esm/objectWithoutPropertiesLoose.js", | ||
"default": "./helpers/objectWithoutPropertiesLoose.js" | ||
"./helpers/objectSpread2": { | ||
"node": "./helpers/objectSpread2.js", | ||
"import": "./helpers/esm/objectSpread2.js", | ||
"default": "./helpers/objectSpread2.js" | ||
}, | ||
@@ -315,6 +340,6 @@ "./helpers/objectWithoutProperties": { | ||
}, | ||
"./helpers/assertThisInitialized": { | ||
"node": "./helpers/assertThisInitialized.js", | ||
"import": "./helpers/esm/assertThisInitialized.js", | ||
"default": "./helpers/assertThisInitialized.js" | ||
"./helpers/objectWithoutPropertiesLoose": { | ||
"node": "./helpers/objectWithoutPropertiesLoose.js", | ||
"import": "./helpers/esm/objectWithoutPropertiesLoose.js", | ||
"default": "./helpers/objectWithoutPropertiesLoose.js" | ||
}, | ||
@@ -326,11 +351,11 @@ "./helpers/possibleConstructorReturn": { | ||
}, | ||
"./helpers/superPropBase": { | ||
"node": "./helpers/superPropBase.js", | ||
"import": "./helpers/esm/superPropBase.js", | ||
"default": "./helpers/superPropBase.js" | ||
"./helpers/readOnlyError": { | ||
"node": "./helpers/readOnlyError.js", | ||
"import": "./helpers/esm/readOnlyError.js", | ||
"default": "./helpers/readOnlyError.js" | ||
}, | ||
"./helpers/get": { | ||
"node": "./helpers/get.js", | ||
"import": "./helpers/esm/get.js", | ||
"default": "./helpers/get.js" | ||
"./helpers/regeneratorRuntime": { | ||
"node": "./helpers/regeneratorRuntime.js", | ||
"import": "./helpers/esm/regeneratorRuntime.js", | ||
"default": "./helpers/regeneratorRuntime.js" | ||
}, | ||
@@ -342,2 +367,27 @@ "./helpers/set": { | ||
}, | ||
"./helpers/setFunctionName": { | ||
"node": "./helpers/setFunctionName.js", | ||
"import": "./helpers/esm/setFunctionName.js", | ||
"default": "./helpers/setFunctionName.js" | ||
}, | ||
"./helpers/setPrototypeOf": { | ||
"node": "./helpers/setPrototypeOf.js", | ||
"import": "./helpers/esm/setPrototypeOf.js", | ||
"default": "./helpers/setPrototypeOf.js" | ||
}, | ||
"./helpers/skipFirstGeneratorNext": { | ||
"node": "./helpers/skipFirstGeneratorNext.js", | ||
"import": "./helpers/esm/skipFirstGeneratorNext.js", | ||
"default": "./helpers/skipFirstGeneratorNext.js" | ||
}, | ||
"./helpers/slicedToArray": { | ||
"node": "./helpers/slicedToArray.js", | ||
"import": "./helpers/esm/slicedToArray.js", | ||
"default": "./helpers/slicedToArray.js" | ||
}, | ||
"./helpers/superPropBase": { | ||
"node": "./helpers/superPropBase.js", | ||
"import": "./helpers/esm/superPropBase.js", | ||
"default": "./helpers/superPropBase.js" | ||
}, | ||
"./helpers/taggedTemplateLiteral": { | ||
@@ -353,22 +403,2 @@ "node": "./helpers/taggedTemplateLiteral.js", | ||
}, | ||
"./helpers/readOnlyError": { | ||
"node": "./helpers/readOnlyError.js", | ||
"import": "./helpers/esm/readOnlyError.js", | ||
"default": "./helpers/readOnlyError.js" | ||
}, | ||
"./helpers/writeOnlyError": { | ||
"node": "./helpers/writeOnlyError.js", | ||
"import": "./helpers/esm/writeOnlyError.js", | ||
"default": "./helpers/writeOnlyError.js" | ||
}, | ||
"./helpers/classNameTDZError": { | ||
"node": "./helpers/classNameTDZError.js", | ||
"import": "./helpers/esm/classNameTDZError.js", | ||
"default": "./helpers/classNameTDZError.js" | ||
}, | ||
"./helpers/temporalUndefined": { | ||
"node": "./helpers/temporalUndefined.js", | ||
"import": "./helpers/esm/temporalUndefined.js", | ||
"default": "./helpers/temporalUndefined.js" | ||
}, | ||
"./helpers/tdz": { | ||
@@ -384,12 +414,7 @@ "node": "./helpers/tdz.js", | ||
}, | ||
"./helpers/slicedToArray": { | ||
"node": "./helpers/slicedToArray.js", | ||
"import": "./helpers/esm/slicedToArray.js", | ||
"default": "./helpers/slicedToArray.js" | ||
"./helpers/temporalUndefined": { | ||
"node": "./helpers/temporalUndefined.js", | ||
"import": "./helpers/esm/temporalUndefined.js", | ||
"default": "./helpers/temporalUndefined.js" | ||
}, | ||
"./helpers/slicedToArrayLoose": { | ||
"node": "./helpers/slicedToArrayLoose.js", | ||
"import": "./helpers/esm/slicedToArrayLoose.js", | ||
"default": "./helpers/slicedToArrayLoose.js" | ||
}, | ||
"./helpers/toArray": { | ||
@@ -405,21 +430,21 @@ "node": "./helpers/toArray.js", | ||
}, | ||
"./helpers/arrayWithoutHoles": { | ||
"node": "./helpers/arrayWithoutHoles.js", | ||
"import": "./helpers/esm/arrayWithoutHoles.js", | ||
"default": "./helpers/arrayWithoutHoles.js" | ||
"./helpers/toPrimitive": { | ||
"node": "./helpers/toPrimitive.js", | ||
"import": "./helpers/esm/toPrimitive.js", | ||
"default": "./helpers/toPrimitive.js" | ||
}, | ||
"./helpers/arrayWithHoles": { | ||
"node": "./helpers/arrayWithHoles.js", | ||
"import": "./helpers/esm/arrayWithHoles.js", | ||
"default": "./helpers/arrayWithHoles.js" | ||
"./helpers/toPropertyKey": { | ||
"node": "./helpers/toPropertyKey.js", | ||
"import": "./helpers/esm/toPropertyKey.js", | ||
"default": "./helpers/toPropertyKey.js" | ||
}, | ||
"./helpers/maybeArrayLike": { | ||
"node": "./helpers/maybeArrayLike.js", | ||
"import": "./helpers/esm/maybeArrayLike.js", | ||
"default": "./helpers/maybeArrayLike.js" | ||
"./helpers/toSetter": { | ||
"node": "./helpers/toSetter.js", | ||
"import": "./helpers/esm/toSetter.js", | ||
"default": "./helpers/toSetter.js" | ||
}, | ||
"./helpers/iterableToArray": { | ||
"node": "./helpers/iterableToArray.js", | ||
"import": "./helpers/esm/iterableToArray.js", | ||
"default": "./helpers/iterableToArray.js" | ||
"./helpers/typeof": { | ||
"node": "./helpers/typeof.js", | ||
"import": "./helpers/esm/typeof.js", | ||
"default": "./helpers/typeof.js" | ||
}, | ||
@@ -431,162 +456,27 @@ "./helpers/unsupportedIterableToArray": { | ||
}, | ||
"./helpers/arrayLikeToArray": { | ||
"node": "./helpers/arrayLikeToArray.js", | ||
"import": "./helpers/esm/arrayLikeToArray.js", | ||
"default": "./helpers/arrayLikeToArray.js" | ||
"./helpers/usingCtx": { | ||
"node": "./helpers/usingCtx.js", | ||
"import": "./helpers/esm/usingCtx.js", | ||
"default": "./helpers/usingCtx.js" | ||
}, | ||
"./helpers/nonIterableSpread": { | ||
"node": "./helpers/nonIterableSpread.js", | ||
"import": "./helpers/esm/nonIterableSpread.js", | ||
"default": "./helpers/nonIterableSpread.js" | ||
"./helpers/wrapAsyncGenerator": { | ||
"node": "./helpers/wrapAsyncGenerator.js", | ||
"import": "./helpers/esm/wrapAsyncGenerator.js", | ||
"default": "./helpers/wrapAsyncGenerator.js" | ||
}, | ||
"./helpers/nonIterableRest": { | ||
"node": "./helpers/nonIterableRest.js", | ||
"import": "./helpers/esm/nonIterableRest.js", | ||
"default": "./helpers/nonIterableRest.js" | ||
"./helpers/wrapNativeSuper": { | ||
"node": "./helpers/wrapNativeSuper.js", | ||
"import": "./helpers/esm/wrapNativeSuper.js", | ||
"default": "./helpers/wrapNativeSuper.js" | ||
}, | ||
"./helpers/createForOfIteratorHelper": { | ||
"node": "./helpers/createForOfIteratorHelper.js", | ||
"import": "./helpers/esm/createForOfIteratorHelper.js", | ||
"default": "./helpers/createForOfIteratorHelper.js" | ||
"./helpers/wrapRegExp": { | ||
"node": "./helpers/wrapRegExp.js", | ||
"import": "./helpers/esm/wrapRegExp.js", | ||
"default": "./helpers/wrapRegExp.js" | ||
}, | ||
"./helpers/createForOfIteratorHelperLoose": { | ||
"node": "./helpers/createForOfIteratorHelperLoose.js", | ||
"import": "./helpers/esm/createForOfIteratorHelperLoose.js", | ||
"default": "./helpers/createForOfIteratorHelperLoose.js" | ||
"./helpers/writeOnlyError": { | ||
"node": "./helpers/writeOnlyError.js", | ||
"import": "./helpers/esm/writeOnlyError.js", | ||
"default": "./helpers/writeOnlyError.js" | ||
}, | ||
"./helpers/skipFirstGeneratorNext": { | ||
"node": "./helpers/skipFirstGeneratorNext.js", | ||
"import": "./helpers/esm/skipFirstGeneratorNext.js", | ||
"default": "./helpers/skipFirstGeneratorNext.js" | ||
}, | ||
"./helpers/initializerWarningHelper": { | ||
"node": "./helpers/initializerWarningHelper.js", | ||
"import": "./helpers/esm/initializerWarningHelper.js", | ||
"default": "./helpers/initializerWarningHelper.js" | ||
}, | ||
"./helpers/initializerDefineProperty": { | ||
"node": "./helpers/initializerDefineProperty.js", | ||
"import": "./helpers/esm/initializerDefineProperty.js", | ||
"default": "./helpers/initializerDefineProperty.js" | ||
}, | ||
"./helpers/applyDecoratedDescriptor": { | ||
"node": "./helpers/applyDecoratedDescriptor.js", | ||
"import": "./helpers/esm/applyDecoratedDescriptor.js", | ||
"default": "./helpers/applyDecoratedDescriptor.js" | ||
}, | ||
"./helpers/classPrivateFieldLooseKey": { | ||
"node": "./helpers/classPrivateFieldLooseKey.js", | ||
"import": "./helpers/esm/classPrivateFieldLooseKey.js", | ||
"default": "./helpers/classPrivateFieldLooseKey.js" | ||
}, | ||
"./helpers/classPrivateFieldLooseBase": { | ||
"node": "./helpers/classPrivateFieldLooseBase.js", | ||
"import": "./helpers/esm/classPrivateFieldLooseBase.js", | ||
"default": "./helpers/classPrivateFieldLooseBase.js" | ||
}, | ||
"./helpers/classPrivateFieldGet": { | ||
"node": "./helpers/classPrivateFieldGet.js", | ||
"import": "./helpers/esm/classPrivateFieldGet.js", | ||
"default": "./helpers/classPrivateFieldGet.js" | ||
}, | ||
"./helpers/classPrivateFieldSet": { | ||
"node": "./helpers/classPrivateFieldSet.js", | ||
"import": "./helpers/esm/classPrivateFieldSet.js", | ||
"default": "./helpers/classPrivateFieldSet.js" | ||
}, | ||
"./helpers/classPrivateFieldDestructureSet": { | ||
"node": "./helpers/classPrivateFieldDestructureSet.js", | ||
"import": "./helpers/esm/classPrivateFieldDestructureSet.js", | ||
"default": "./helpers/classPrivateFieldDestructureSet.js" | ||
}, | ||
"./helpers/classExtractFieldDescriptor": { | ||
"node": "./helpers/classExtractFieldDescriptor.js", | ||
"import": "./helpers/esm/classExtractFieldDescriptor.js", | ||
"default": "./helpers/classExtractFieldDescriptor.js" | ||
}, | ||
"./helpers/classStaticPrivateFieldSpecGet": { | ||
"node": "./helpers/classStaticPrivateFieldSpecGet.js", | ||
"import": "./helpers/esm/classStaticPrivateFieldSpecGet.js", | ||
"default": "./helpers/classStaticPrivateFieldSpecGet.js" | ||
}, | ||
"./helpers/classStaticPrivateFieldSpecSet": { | ||
"node": "./helpers/classStaticPrivateFieldSpecSet.js", | ||
"import": "./helpers/esm/classStaticPrivateFieldSpecSet.js", | ||
"default": "./helpers/classStaticPrivateFieldSpecSet.js" | ||
}, | ||
"./helpers/classStaticPrivateMethodGet": { | ||
"node": "./helpers/classStaticPrivateMethodGet.js", | ||
"import": "./helpers/esm/classStaticPrivateMethodGet.js", | ||
"default": "./helpers/classStaticPrivateMethodGet.js" | ||
}, | ||
"./helpers/classStaticPrivateMethodSet": { | ||
"node": "./helpers/classStaticPrivateMethodSet.js", | ||
"import": "./helpers/esm/classStaticPrivateMethodSet.js", | ||
"default": "./helpers/classStaticPrivateMethodSet.js" | ||
}, | ||
"./helpers/classApplyDescriptorGet": { | ||
"node": "./helpers/classApplyDescriptorGet.js", | ||
"import": "./helpers/esm/classApplyDescriptorGet.js", | ||
"default": "./helpers/classApplyDescriptorGet.js" | ||
}, | ||
"./helpers/classApplyDescriptorSet": { | ||
"node": "./helpers/classApplyDescriptorSet.js", | ||
"import": "./helpers/esm/classApplyDescriptorSet.js", | ||
"default": "./helpers/classApplyDescriptorSet.js" | ||
}, | ||
"./helpers/classApplyDescriptorDestructureSet": { | ||
"node": "./helpers/classApplyDescriptorDestructureSet.js", | ||
"import": "./helpers/esm/classApplyDescriptorDestructureSet.js", | ||
"default": "./helpers/classApplyDescriptorDestructureSet.js" | ||
}, | ||
"./helpers/classStaticPrivateFieldDestructureSet": { | ||
"node": "./helpers/classStaticPrivateFieldDestructureSet.js", | ||
"import": "./helpers/esm/classStaticPrivateFieldDestructureSet.js", | ||
"default": "./helpers/classStaticPrivateFieldDestructureSet.js" | ||
}, | ||
"./helpers/classCheckPrivateStaticAccess": { | ||
"node": "./helpers/classCheckPrivateStaticAccess.js", | ||
"import": "./helpers/esm/classCheckPrivateStaticAccess.js", | ||
"default": "./helpers/classCheckPrivateStaticAccess.js" | ||
}, | ||
"./helpers/classCheckPrivateStaticFieldDescriptor": { | ||
"node": "./helpers/classCheckPrivateStaticFieldDescriptor.js", | ||
"import": "./helpers/esm/classCheckPrivateStaticFieldDescriptor.js", | ||
"default": "./helpers/classCheckPrivateStaticFieldDescriptor.js" | ||
}, | ||
"./helpers/decorate": { | ||
"node": "./helpers/decorate.js", | ||
"import": "./helpers/esm/decorate.js", | ||
"default": "./helpers/decorate.js" | ||
}, | ||
"./helpers/classPrivateMethodGet": { | ||
"node": "./helpers/classPrivateMethodGet.js", | ||
"import": "./helpers/esm/classPrivateMethodGet.js", | ||
"default": "./helpers/classPrivateMethodGet.js" | ||
}, | ||
"./helpers/checkPrivateRedeclaration": { | ||
"node": "./helpers/checkPrivateRedeclaration.js", | ||
"import": "./helpers/esm/checkPrivateRedeclaration.js", | ||
"default": "./helpers/checkPrivateRedeclaration.js" | ||
}, | ||
"./helpers/classPrivateFieldInitSpec": { | ||
"node": "./helpers/classPrivateFieldInitSpec.js", | ||
"import": "./helpers/esm/classPrivateFieldInitSpec.js", | ||
"default": "./helpers/classPrivateFieldInitSpec.js" | ||
}, | ||
"./helpers/classPrivateMethodInitSpec": { | ||
"node": "./helpers/classPrivateMethodInitSpec.js", | ||
"import": "./helpers/esm/classPrivateMethodInitSpec.js", | ||
"default": "./helpers/classPrivateMethodInitSpec.js" | ||
}, | ||
"./helpers/identity": { | ||
"node": "./helpers/identity.js", | ||
"import": "./helpers/esm/identity.js", | ||
"default": "./helpers/identity.js" | ||
}, | ||
"./helpers/nullishReceiverError": { | ||
"node": "./helpers/nullishReceiverError.js", | ||
"import": "./helpers/esm/nullishReceiverError.js", | ||
"default": "./helpers/nullishReceiverError.js" | ||
}, | ||
"./package": "./package.json", | ||
@@ -596,5 +486,5 @@ "./package.json": "./package.json" | ||
"engines": { | ||
"node": "^16.20.0 || ^18.16.0 || >=20.0.0" | ||
"node": "^18.20.0 || ^20.10.0 || >=21.0.0" | ||
}, | ||
"type": "module" | ||
"type": "commonjs" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
144792
181
3163
2
No