diff options
Diffstat (limited to 'node_modules/@babel/runtime/helpers')
8 files changed, 91 insertions, 102 deletions
diff --git a/node_modules/@babel/runtime/helpers/applyDecs2305.js b/node_modules/@babel/runtime/helpers/applyDecs2305.js index 6fbda9f5..7068db42 100644 --- a/node_modules/@babel/runtime/helpers/applyDecs2305.js +++ b/node_modules/@babel/runtime/helpers/applyDecs2305.js @@ -21,27 +21,26 @@ function applyDecs2305(e, t, r, n, o, a) { if (!h(e)) throw new TypeError("Attempted to access private element on non-instance"); } var y, - v, - g = t[0], - b = t[3], - w = !u; - if (!w) { - r || Array.isArray(g) || (g = [g]); - var S = {}, - A = [], - P = 3 === o ? "get" : 4 === o || d ? "set" : "value"; - f ? (p || d ? S = { + v = t[0], + g = t[3], + b = !u; + if (!b) { + r || Array.isArray(v) || (v = [v]); + var w = {}, + S = [], + A = 3 === o ? "get" : 4 === o || d ? "set" : "value"; + f ? (p || d ? w = { get: setFunctionName(function () { - return b(this); + return g(this); }, n, "get"), set: function set(e) { t[4](this, e); } - } : S[P] = b, p || setFunctionName(S[P], n, 2 === o ? "" : P)) : p || (S = Object.getOwnPropertyDescriptor(e, n)); + } : w[A] = g, p || setFunctionName(w[A], n, 2 === o ? "" : A)) : p || (w = Object.getOwnPropertyDescriptor(e, n)); } - for (var j = g.length - 1; j >= 0; j -= r ? 2 : 1) { - var D = g[j], - E = r ? g[j - 1] : void 0, + for (var P = e, j = v.length - 1; j >= 0; j -= r ? 2 : 1) { + var D = v[j], + E = r ? v[j - 1] : void 0, I = {}, O = { kind: ["field", "accessor", "method", "getter", "setter", "class"][o], @@ -53,13 +52,13 @@ function applyDecs2305(e, t, r, n, o, a) { }.bind(null, I) }; try { - if (w) v = D.call(E, e, O);else { + if (b) (y = s(D.call(E, P, O), "class decorators", "return")) && (P = y);else { var k, F; - O["static"] = l, O["private"] = f, f || !p && 2 !== o ? 2 === o ? k = function k(e) { - return m(e), S.value; - } : ((o < 2 || 3 === o) && (k = i(S, "get", f && m)), (o < 2 || 4 === o) && (F = i(S, "set", f && m))) : (k = function k(e) { + O["static"] = l, O["private"] = f, f ? 2 === o ? k = function k(e) { + return m(e), w.value; + } : (o < 4 && (k = i(w, "get", m)), 3 !== o && (F = i(w, "set", m))) : (k = function k(e) { return e[n]; - }, p && (F = function F(e, t) { + }, (o < 2 || 4 === o) && (F = function F(e, t) { e[n] = t; })); var N = O.access = { @@ -67,21 +66,21 @@ function applyDecs2305(e, t, r, n, o, a) { return n in e; } }; - if (k && (N.get = k), F && (N.set = F), v = D.call(E, d ? { - get: S.get, - set: S.set - } : S[P], O), d) { - if ("object" == _typeof(v) && v) (y = s(v.get, "accessor.get")) && (S.get = y), (y = s(v.set, "accessor.set")) && (S.set = y), (y = s(v.init, "accessor.init")) && A.push(y);else if (void 0 !== v) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); - } else s(v, (p ? "field" : "method") + " decorators", "return") && (p ? A.push(v) : S[P] = v); + if (k && (N.get = k), F && (N.set = F), P = D.call(E, d ? { + get: w.get, + set: w.set + } : w[A], O), d) { + if ("object" == _typeof(P) && P) (y = s(P.get, "accessor.get")) && (w.get = y), (y = s(P.set, "accessor.set")) && (w.set = y), (y = s(P.init, "accessor.init")) && S.push(y);else if (void 0 !== P) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); + } else s(P, (p ? "field" : "method") + " decorators", "return") && (p ? S.push(P) : w[A] = P); } } finally { I.v = !0; } } return (p || d) && u.push(function (e, t) { - for (var r = A.length - 1; r >= 0; r--) t = A[r].call(e, t); + for (var r = S.length - 1; r >= 0; r--) t = S[r].call(e, t); return t; - }), p || w || (f ? d ? u.push(i(S, "get"), i(S, "set")) : u.push(2 === o ? S[P] : i.call.bind(S[P])) : Object.defineProperty(e, n, S)), v; + }), p || b || (f ? d ? u.push(i(w, "get"), i(w, "set")) : u.push(2 === o ? w[A] : i.call.bind(w[A])) : Object.defineProperty(e, n, w)), P; } function u(e, t) { return Object.defineProperty(e, Symbol.metadata || Symbol["for"]("Symbol.metadata"), { @@ -127,7 +126,7 @@ function applyDecs2305(e, t, r, n, o, a) { e: p, get c() { var t = []; - return r.length && [u(s(applyDec(e, [r], n, e.name, 5, f, t), "class decorators", "return") || e, f), c.bind(null, t, e)]; + return r.length && [u(applyDec(e, [r], n, e.name, 5, f, t), f), c.bind(null, t, e)]; } }; } diff --git a/node_modules/@babel/runtime/helpers/callSuper.js b/node_modules/@babel/runtime/helpers/callSuper.js new file mode 100644 index 00000000..38eaf7f8 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/callSuper.js @@ -0,0 +1,7 @@ +var getPrototypeOf = require("./getPrototypeOf.js"); +var isNativeReflectConstruct = require("./isNativeReflectConstruct.js"); +var possibleConstructorReturn = require("./possibleConstructorReturn.js"); +function _callSuper(t, o, e) { + return o = getPrototypeOf(o), possibleConstructorReturn(t, isNativeReflectConstruct() ? Reflect.construct(o, e || [], getPrototypeOf(t).constructor) : o.apply(t, e)); +} +module.exports = _callSuper, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/construct.js b/node_modules/@babel/runtime/helpers/construct.js index 3d3c232d..771e1d79 100644 --- a/node_modules/@babel/runtime/helpers/construct.js +++ b/node_modules/@babel/runtime/helpers/construct.js @@ -1,18 +1,10 @@ var setPrototypeOf = require("./setPrototypeOf.js"); var isNativeReflectConstruct = require("./isNativeReflectConstruct.js"); -function _construct(Parent, args, Class) { - if (isNativeReflectConstruct()) { - module.exports = _construct = Reflect.construct.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports; - } else { - module.exports = _construct = function _construct(Parent, args, Class) { - var a = [null]; - a.push.apply(a, args); - var Constructor = Function.bind.apply(Parent, a); - var instance = new Constructor(); - if (Class) setPrototypeOf(instance, Class.prototype); - return instance; - }, module.exports.__esModule = true, module.exports["default"] = module.exports; - } - return _construct.apply(null, arguments); +function _construct(t, e, r) { + if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments); + var o = [null]; + o.push.apply(o, e); + var p = new (t.bind.apply(t, o))(); + return r && setPrototypeOf(p, r.prototype), p; } module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/applyDecs2305.js b/node_modules/@babel/runtime/helpers/esm/applyDecs2305.js index 0b42b6c9..602841af 100644 --- a/node_modules/@babel/runtime/helpers/esm/applyDecs2305.js +++ b/node_modules/@babel/runtime/helpers/esm/applyDecs2305.js @@ -21,27 +21,26 @@ export default function applyDecs2305(e, t, r, n, o, a) { if (!h(e)) throw new TypeError("Attempted to access private element on non-instance"); } var y, - v, - g = t[0], - b = t[3], - w = !u; - if (!w) { - r || Array.isArray(g) || (g = [g]); - var S = {}, - A = [], - P = 3 === o ? "get" : 4 === o || d ? "set" : "value"; - f ? (p || d ? S = { + v = t[0], + g = t[3], + b = !u; + if (!b) { + r || Array.isArray(v) || (v = [v]); + var w = {}, + S = [], + A = 3 === o ? "get" : 4 === o || d ? "set" : "value"; + f ? (p || d ? w = { get: setFunctionName(function () { - return b(this); + return g(this); }, n, "get"), set: function set(e) { t[4](this, e); } - } : S[P] = b, p || setFunctionName(S[P], n, 2 === o ? "" : P)) : p || (S = Object.getOwnPropertyDescriptor(e, n)); + } : w[A] = g, p || setFunctionName(w[A], n, 2 === o ? "" : A)) : p || (w = Object.getOwnPropertyDescriptor(e, n)); } - for (var j = g.length - 1; j >= 0; j -= r ? 2 : 1) { - var D = g[j], - E = r ? g[j - 1] : void 0, + for (var P = e, j = v.length - 1; j >= 0; j -= r ? 2 : 1) { + var D = v[j], + E = r ? v[j - 1] : void 0, I = {}, O = { kind: ["field", "accessor", "method", "getter", "setter", "class"][o], @@ -53,13 +52,13 @@ export default function applyDecs2305(e, t, r, n, o, a) { }.bind(null, I) }; try { - if (w) v = D.call(E, e, O);else { + if (b) (y = s(D.call(E, P, O), "class decorators", "return")) && (P = y);else { var k, F; - O["static"] = l, O["private"] = f, f || !p && 2 !== o ? 2 === o ? k = function k(e) { - return m(e), S.value; - } : ((o < 2 || 3 === o) && (k = i(S, "get", f && m)), (o < 2 || 4 === o) && (F = i(S, "set", f && m))) : (k = function k(e) { + O["static"] = l, O["private"] = f, f ? 2 === o ? k = function k(e) { + return m(e), w.value; + } : (o < 4 && (k = i(w, "get", m)), 3 !== o && (F = i(w, "set", m))) : (k = function k(e) { return e[n]; - }, p && (F = function F(e, t) { + }, (o < 2 || 4 === o) && (F = function F(e, t) { e[n] = t; })); var N = O.access = { @@ -67,21 +66,21 @@ export default function applyDecs2305(e, t, r, n, o, a) { return n in e; } }; - if (k && (N.get = k), F && (N.set = F), v = D.call(E, d ? { - get: S.get, - set: S.set - } : S[P], O), d) { - if ("object" == _typeof(v) && v) (y = s(v.get, "accessor.get")) && (S.get = y), (y = s(v.set, "accessor.set")) && (S.set = y), (y = s(v.init, "accessor.init")) && A.push(y);else if (void 0 !== v) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); - } else s(v, (p ? "field" : "method") + " decorators", "return") && (p ? A.push(v) : S[P] = v); + if (k && (N.get = k), F && (N.set = F), P = D.call(E, d ? { + get: w.get, + set: w.set + } : w[A], O), d) { + if ("object" == _typeof(P) && P) (y = s(P.get, "accessor.get")) && (w.get = y), (y = s(P.set, "accessor.set")) && (w.set = y), (y = s(P.init, "accessor.init")) && S.push(y);else if (void 0 !== P) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); + } else s(P, (p ? "field" : "method") + " decorators", "return") && (p ? S.push(P) : w[A] = P); } } finally { I.v = !0; } } return (p || d) && u.push(function (e, t) { - for (var r = A.length - 1; r >= 0; r--) t = A[r].call(e, t); + for (var r = S.length - 1; r >= 0; r--) t = S[r].call(e, t); return t; - }), p || w || (f ? d ? u.push(i(S, "get"), i(S, "set")) : u.push(2 === o ? S[P] : i.call.bind(S[P])) : Object.defineProperty(e, n, S)), v; + }), p || b || (f ? d ? u.push(i(w, "get"), i(w, "set")) : u.push(2 === o ? w[A] : i.call.bind(w[A])) : Object.defineProperty(e, n, w)), P; } function u(e, t) { return Object.defineProperty(e, Symbol.metadata || Symbol["for"]("Symbol.metadata"), { @@ -127,7 +126,7 @@ export default function applyDecs2305(e, t, r, n, o, a) { e: p, get c() { var t = []; - return r.length && [u(s(applyDec(e, [r], n, e.name, 5, f, t), "class decorators", "return") || e, f), c.bind(null, t, e)]; + return r.length && [u(applyDec(e, [r], n, e.name, 5, f, t), f), c.bind(null, t, e)]; } }; }
\ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/callSuper.js b/node_modules/@babel/runtime/helpers/esm/callSuper.js new file mode 100644 index 00000000..33a3b607 --- /dev/null +++ b/node_modules/@babel/runtime/helpers/esm/callSuper.js @@ -0,0 +1,6 @@ +import getPrototypeOf from "./getPrototypeOf.js"; +import isNativeReflectConstruct from "./isNativeReflectConstruct.js"; +import possibleConstructorReturn from "./possibleConstructorReturn.js"; +export default function _callSuper(t, o, e) { + return o = getPrototypeOf(o), possibleConstructorReturn(t, isNativeReflectConstruct() ? Reflect.construct(o, e || [], getPrototypeOf(t).constructor) : o.apply(t, e)); +}
\ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/construct.js b/node_modules/@babel/runtime/helpers/esm/construct.js index 3860bdd0..ce6b2783 100644 --- a/node_modules/@babel/runtime/helpers/esm/construct.js +++ b/node_modules/@babel/runtime/helpers/esm/construct.js @@ -1,17 +1,9 @@ import setPrototypeOf from "./setPrototypeOf.js"; import isNativeReflectConstruct from "./isNativeReflectConstruct.js"; -export default function _construct(Parent, args, Class) { - if (isNativeReflectConstruct()) { - _construct = Reflect.construct.bind(); - } else { - _construct = function _construct(Parent, args, Class) { - var a = [null]; - a.push.apply(a, args); - var Constructor = Function.bind.apply(Parent, a); - var instance = new Constructor(); - if (Class) setPrototypeOf(instance, Class.prototype); - return instance; - }; - } - return _construct.apply(null, arguments); +export default function _construct(t, e, r) { + if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments); + var o = [null]; + o.push.apply(o, e); + var p = new (t.bind.apply(t, o))(); + return r && setPrototypeOf(p, r.prototype), p; }
\ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js b/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js index 61840807..c9b3114b 100644 --- a/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +++ b/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js @@ -1,11 +1,8 @@ export default function _isNativeReflectConstruct() { - if (typeof Reflect === "undefined" || !Reflect.construct) return false; - if (Reflect.construct.sham) return false; - if (typeof Proxy === "function") return true; try { - Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); - return true; - } catch (e) { - return false; - } + var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); + } catch (t) {} + return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { + return !!t; + })(); }
\ No newline at end of file diff --git a/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js b/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js index 6b4e73f0..b677e107 100644 --- a/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js +++ b/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js @@ -1,12 +1,9 @@ function _isNativeReflectConstruct() { - if (typeof Reflect === "undefined" || !Reflect.construct) return false; - if (Reflect.construct.sham) return false; - if (typeof Proxy === "function") return true; try { - Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); - return true; - } catch (e) { - return false; - } + var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); + } catch (t) {} + return (module.exports = _isNativeReflectConstruct = function _isNativeReflectConstruct() { + return !!t; + }, module.exports.__esModule = true, module.exports["default"] = module.exports)(); } module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file |
