feat: Proof of concept of simple squiggle
This commit is contained in:
commit
887e47a844
157
index.js
Normal file
157
index.js
Normal file
|
@ -0,0 +1,157 @@
|
||||||
|
import { create, all } from "mathjs";
|
||||||
|
const math = create(all);
|
||||||
|
|
||||||
|
// Helper functions
|
||||||
|
let printNode = (x) => console.log(JSON.stringify(x, null, 4));
|
||||||
|
|
||||||
|
let isNumber = (x) => typeof x === "number" && isFinite(x);
|
||||||
|
|
||||||
|
let isConstantNode = (arg) => {
|
||||||
|
return !!arg.value && isNumber(arg.value);
|
||||||
|
};
|
||||||
|
let isArgLognormal = (arg) => {
|
||||||
|
let isFn = typeof arg.fn != "undefined";
|
||||||
|
let andNameIsLognormal = isFn && arg.fn.name == "lognormal";
|
||||||
|
let andHasArgs = andNameIsLognormal && !!arg.args;
|
||||||
|
let andHasTwoArgs = andHasArgs && arg.args.length == 2;
|
||||||
|
let andTwoArgsAreConstant = arg.args
|
||||||
|
.map(
|
||||||
|
(innerArg) => isConstantNode(innerArg)
|
||||||
|
// innerArg
|
||||||
|
)
|
||||||
|
.reduce((a, b) => a && b, true);
|
||||||
|
return andTwoArgsAreConstant;
|
||||||
|
};
|
||||||
|
|
||||||
|
let getFactors = (node) => {
|
||||||
|
return node.args.map((arg) => arg.value);
|
||||||
|
};
|
||||||
|
|
||||||
|
let createLogarithmNode = (mu, sigma) => {
|
||||||
|
let node1 = new math.ConstantNode(mu);
|
||||||
|
let node2 = new math.ConstantNode(sigma);
|
||||||
|
let node3 = new math.FunctionNode("lognormal", [node1, node2]);
|
||||||
|
return node3;
|
||||||
|
};
|
||||||
|
|
||||||
|
// Main function
|
||||||
|
let transformerInner = (string) => {
|
||||||
|
let nodes = math.parse(string);
|
||||||
|
let transformed = nodes.transform(function (node, path, parent) {
|
||||||
|
if (node.type == "OperatorNode" && node.op == "*") {
|
||||||
|
let hasArgs = node.args && node.args.length == 2;
|
||||||
|
if (hasArgs) {
|
||||||
|
let areArgsLognormal = node.args
|
||||||
|
.map((arg) => isArgLognormal(arg))
|
||||||
|
.reduce((a, b) => a && b, true);
|
||||||
|
if (areArgsLognormal) {
|
||||||
|
let factors = node.args.map((arg) => getFactors(arg));
|
||||||
|
let mean1 = factors[0][0];
|
||||||
|
let std1 = factors[0][1];
|
||||||
|
let mean2 = factors[1][0];
|
||||||
|
let std2 = factors[1][1];
|
||||||
|
|
||||||
|
let newMean = mean1 + mean2;
|
||||||
|
let newStd = Math.sqrt(std1 ** 2 + std2 ** 2);
|
||||||
|
return createLogarithmNode(newMean, newStd);
|
||||||
|
return new math.SymbolNode("xx");
|
||||||
|
} else {
|
||||||
|
return node;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return node;
|
||||||
|
}
|
||||||
|
} else if (node.type == "OperatorNode" && node.op == "/") {
|
||||||
|
let hasArgs = node.args && node.args.length == 2;
|
||||||
|
if (hasArgs) {
|
||||||
|
let areArgsLognormal = node.args
|
||||||
|
.map((arg) => isArgLognormal(arg))
|
||||||
|
.reduce((a, b) => a && b, true);
|
||||||
|
if (areArgsLognormal) {
|
||||||
|
let factors = node.args.map((arg) => getFactors(arg));
|
||||||
|
let mean1 = factors[0][0];
|
||||||
|
let std1 = factors[0][1];
|
||||||
|
let mean2 = factors[1][0];
|
||||||
|
let std2 = factors[1][1];
|
||||||
|
|
||||||
|
let newMean = mean1 + mean2;
|
||||||
|
let newStd = Math.sqrt(std1 ** 2 + std2 ** 2);
|
||||||
|
return createLogarithmNode(newMean, newStd);
|
||||||
|
return new math.SymbolNode("xx");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return node;
|
||||||
|
});
|
||||||
|
|
||||||
|
return transformed.toString();
|
||||||
|
};
|
||||||
|
|
||||||
|
let from90PercentCI = (low, high) => {
|
||||||
|
let normal95confidencePoint = 1.6448536269514722;
|
||||||
|
let logLow = Math.log(low);
|
||||||
|
let logHigh = Math.log(high);
|
||||||
|
let mu = (logLow + logHigh) / 2;
|
||||||
|
let sigma = (logHigh - logLow) / (2.0 * normal95confidencePoint);
|
||||||
|
return [mu, sigma];
|
||||||
|
};
|
||||||
|
|
||||||
|
let simplePreprocessor = (string) => {
|
||||||
|
// left for documentation purposes only
|
||||||
|
function replacer(match, p1, p2) {
|
||||||
|
console.log(match);
|
||||||
|
// p1 is nondigits, p2 digits, and p3 non-alphanumericsa
|
||||||
|
console.log([p1, p2]);
|
||||||
|
let result = from90PercentCI(p1, p2);
|
||||||
|
return `lognormal(${result[0]}, ${result[1]})`;
|
||||||
|
}
|
||||||
|
let newString = string.replace(/(\d+) to (\d+)/g, replacer);
|
||||||
|
console.log(newString);
|
||||||
|
return newString; // abc - 12345 - #$*%
|
||||||
|
};
|
||||||
|
|
||||||
|
// simplePreprocessor("1 to 10 + 1 to 20");
|
||||||
|
|
||||||
|
let preprocessor = (string) => {
|
||||||
|
// work in progress, currently not working
|
||||||
|
let regex = /([\d]+\.?[\d]*|\.[\d]+) to ([\d]+\.?[\d]*|\.[\d]+)/g;
|
||||||
|
function replacer(match, p1, p2) {
|
||||||
|
let result = from90PercentCI(p1, p2);
|
||||||
|
return `lognormal(${result[0]}, ${result[1]})`;
|
||||||
|
}
|
||||||
|
let newString = string.replace(regex, replacer);
|
||||||
|
if (newString != string) console.log(`\tPreprocessing: ${newString}`);
|
||||||
|
return newString; // abc - 12345 - #$*%
|
||||||
|
};
|
||||||
|
// preprocessor("1.2 to 10.5 * 1.1 to 20 * 1 to 2.5 * 1 to 5");
|
||||||
|
|
||||||
|
let transformer = (string) => {
|
||||||
|
string = preprocessor(string);
|
||||||
|
let stringNew = transformerInner(string);
|
||||||
|
while (stringNew != string) {
|
||||||
|
console.log(`\tNew transformation: ${stringNew}`);
|
||||||
|
string = stringNew;
|
||||||
|
stringNew = transformerInner(string);
|
||||||
|
}
|
||||||
|
return stringNew;
|
||||||
|
};
|
||||||
|
|
||||||
|
let testTransformer = (string) => {
|
||||||
|
console.log(`New test: ${string}`);
|
||||||
|
console.group();
|
||||||
|
let result = transformer(string);
|
||||||
|
console.groupEnd();
|
||||||
|
console.log(`Result: ${result}`);
|
||||||
|
console.log("");
|
||||||
|
};
|
||||||
|
|
||||||
|
// Defs
|
||||||
|
let tests = [
|
||||||
|
`lognormal(1,10) * lognormal(1,10) + lognormal(1,10)`,
|
||||||
|
`lognormal(1,10) * lognormal(1,10) * lognormal(1,10)`,
|
||||||
|
`1 to 10 * lognormal(1, 10)`,
|
||||||
|
`lognormal(1, 10) * 1 to 20`,
|
||||||
|
`1 to 20 * 100 to 1000`,
|
||||||
|
];
|
||||||
|
console.clear();
|
||||||
|
tests.forEach((test) => testTransformer(test));
|
1
node_modules/.bin/mathjs
generated
vendored
Symbolic link
1
node_modules/.bin/mathjs
generated
vendored
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../mathjs/bin/cli.js
|
103
node_modules/.package-lock.json
generated
vendored
Normal file
103
node_modules/.package-lock.json
generated
vendored
Normal file
|
@ -0,0 +1,103 @@
|
||||||
|
{
|
||||||
|
"name": "squiggle-simplex",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"lockfileVersion": 2,
|
||||||
|
"requires": true,
|
||||||
|
"packages": {
|
||||||
|
"node_modules/@babel/runtime": {
|
||||||
|
"version": "7.17.9",
|
||||||
|
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.17.9.tgz",
|
||||||
|
"integrity": "sha512-lSiBBvodq29uShpWGNbgFdKYNiFDo5/HIYsaCEY9ff4sb10x9jizo2+pRrSyF4jKZCXqgzuqBOQKbUm90gQwJg==",
|
||||||
|
"dependencies": {
|
||||||
|
"regenerator-runtime": "^0.13.4"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=6.9.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/complex.js": {
|
||||||
|
"version": "2.1.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/complex.js/-/complex.js-2.1.1.tgz",
|
||||||
|
"integrity": "sha512-8njCHOTtFFLtegk6zQo0kkVX1rngygb/KQI6z1qZxlFI3scluC+LVTCFbrkWjBv4vvLlbQ9t88IPMC6k95VTTg==",
|
||||||
|
"engines": {
|
||||||
|
"node": "*"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"type": "patreon",
|
||||||
|
"url": "https://www.patreon.com/infusion"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/decimal.js": {
|
||||||
|
"version": "10.3.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.3.1.tgz",
|
||||||
|
"integrity": "sha512-V0pfhfr8suzyPGOx3nmq4aHqabehUZn6Ch9kyFpV79TGDTWFmHqUqXdabR7QHqxzrYolF4+tVmJhUG4OURg5dQ=="
|
||||||
|
},
|
||||||
|
"node_modules/escape-latex": {
|
||||||
|
"version": "1.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/escape-latex/-/escape-latex-1.2.0.tgz",
|
||||||
|
"integrity": "sha512-nV5aVWW1K0wEiUIEdZ4erkGGH8mDxGyxSeqPzRNtWP7ataw+/olFObw7hujFWlVjNsaDFw5VZ5NzVSIqRgfTiw=="
|
||||||
|
},
|
||||||
|
"node_modules/fraction.js": {
|
||||||
|
"version": "4.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.2.0.tgz",
|
||||||
|
"integrity": "sha512-MhLuK+2gUcnZe8ZHlaaINnQLl0xRIGRfcGk2yl8xoQAfHrSsL3rYu6FCmBdkdbhc9EPlwyGHewaRsvwRMJtAlA==",
|
||||||
|
"engines": {
|
||||||
|
"node": "*"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"type": "patreon",
|
||||||
|
"url": "https://www.patreon.com/infusion"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/javascript-natural-sort": {
|
||||||
|
"version": "0.7.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/javascript-natural-sort/-/javascript-natural-sort-0.7.1.tgz",
|
||||||
|
"integrity": "sha1-+eIwPUUH9tdDVac2ZNFED7Wg71k="
|
||||||
|
},
|
||||||
|
"node_modules/mathjs": {
|
||||||
|
"version": "10.4.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/mathjs/-/mathjs-10.4.3.tgz",
|
||||||
|
"integrity": "sha512-C50lWorCOplBec9Ik5fzhHuOx4G4+mtdz3r1G2I1/r8yj+CpYFXLXNqTdg59oKmIF1tKcIzpxlC4s2dGL7f3pg==",
|
||||||
|
"dependencies": {
|
||||||
|
"@babel/runtime": "^7.17.8",
|
||||||
|
"complex.js": "^2.1.0",
|
||||||
|
"decimal.js": "^10.3.1",
|
||||||
|
"escape-latex": "^1.2.0",
|
||||||
|
"fraction.js": "^4.2.0",
|
||||||
|
"javascript-natural-sort": "^0.7.1",
|
||||||
|
"seedrandom": "^3.0.5",
|
||||||
|
"tiny-emitter": "^2.1.0",
|
||||||
|
"typed-function": "^2.1.0"
|
||||||
|
},
|
||||||
|
"bin": {
|
||||||
|
"mathjs": "bin/cli.js"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 12"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/regenerator-runtime": {
|
||||||
|
"version": "0.13.9",
|
||||||
|
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz",
|
||||||
|
"integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA=="
|
||||||
|
},
|
||||||
|
"node_modules/seedrandom": {
|
||||||
|
"version": "3.0.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/seedrandom/-/seedrandom-3.0.5.tgz",
|
||||||
|
"integrity": "sha512-8OwmbklUNzwezjGInmZ+2clQmExQPvomqjL7LFqOYqtmuxRgQYqOD3mHaU+MvZn5FLUeVxVfQjwLZW/n/JFuqg=="
|
||||||
|
},
|
||||||
|
"node_modules/tiny-emitter": {
|
||||||
|
"version": "2.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/tiny-emitter/-/tiny-emitter-2.1.0.tgz",
|
||||||
|
"integrity": "sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q=="
|
||||||
|
},
|
||||||
|
"node_modules/typed-function": {
|
||||||
|
"version": "2.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/typed-function/-/typed-function-2.1.0.tgz",
|
||||||
|
"integrity": "sha512-bctQIOqx2iVbWGDGPWwIm18QScpu2XRmkC19D8rQGFsjKSgteq/o1hTZvIG/wuDq8fanpBDrLkLq+aEN/6y5XQ==",
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 10"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
22
node_modules/@babel/runtime/LICENSE
generated
vendored
Normal file
22
node_modules/@babel/runtime/LICENSE
generated
vendored
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
a copy of this software and associated documentation files (the
|
||||||
|
"Software"), to deal in the Software without restriction, including
|
||||||
|
without limitation the rights to use, copy, modify, merge, publish,
|
||||||
|
distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
|
permit persons to whom the Software is furnished to do so, subject to
|
||||||
|
the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be
|
||||||
|
included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||||
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||||
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||||
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
19
node_modules/@babel/runtime/README.md
generated
vendored
Normal file
19
node_modules/@babel/runtime/README.md
generated
vendored
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
# @babel/runtime
|
||||||
|
|
||||||
|
> babel's modular runtime helpers
|
||||||
|
|
||||||
|
See our website [@babel/runtime](https://babeljs.io/docs/en/babel-runtime) for more information.
|
||||||
|
|
||||||
|
## Install
|
||||||
|
|
||||||
|
Using npm:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
npm install --save @babel/runtime
|
||||||
|
```
|
||||||
|
|
||||||
|
or using yarn:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
yarn add @babel/runtime
|
||||||
|
```
|
98
node_modules/@babel/runtime/helpers/AsyncGenerator.js
generated
vendored
Normal file
98
node_modules/@babel/runtime/helpers/AsyncGenerator.js
generated
vendored
Normal file
|
@ -0,0 +1,98 @@
|
||||||
|
var AwaitValue = require("./AwaitValue.js");
|
||||||
|
|
||||||
|
function AsyncGenerator(gen) {
|
||||||
|
var front, back;
|
||||||
|
|
||||||
|
function send(key, arg) {
|
||||||
|
return new Promise(function (resolve, reject) {
|
||||||
|
var request = {
|
||||||
|
key: key,
|
||||||
|
arg: arg,
|
||||||
|
resolve: resolve,
|
||||||
|
reject: reject,
|
||||||
|
next: null
|
||||||
|
};
|
||||||
|
|
||||||
|
if (back) {
|
||||||
|
back = back.next = request;
|
||||||
|
} else {
|
||||||
|
front = back = request;
|
||||||
|
resume(key, arg);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function resume(key, arg) {
|
||||||
|
try {
|
||||||
|
var result = gen[key](arg);
|
||||||
|
var value = result.value;
|
||||||
|
var wrappedAwait = value instanceof AwaitValue;
|
||||||
|
Promise.resolve(wrappedAwait ? value.wrapped : value).then(function (arg) {
|
||||||
|
if (wrappedAwait) {
|
||||||
|
resume(key === "return" ? "return" : "next", arg);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
settle(result.done ? "return" : "normal", arg);
|
||||||
|
}, function (err) {
|
||||||
|
resume("throw", err);
|
||||||
|
});
|
||||||
|
} catch (err) {
|
||||||
|
settle("throw", err);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function settle(type, value) {
|
||||||
|
switch (type) {
|
||||||
|
case "return":
|
||||||
|
front.resolve({
|
||||||
|
value: value,
|
||||||
|
done: true
|
||||||
|
});
|
||||||
|
break;
|
||||||
|
|
||||||
|
case "throw":
|
||||||
|
front.reject(value);
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
front.resolve({
|
||||||
|
value: value,
|
||||||
|
done: false
|
||||||
|
});
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
front = front.next;
|
||||||
|
|
||||||
|
if (front) {
|
||||||
|
resume(front.key, front.arg);
|
||||||
|
} else {
|
||||||
|
back = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
this._invoke = send;
|
||||||
|
|
||||||
|
if (typeof gen["return"] !== "function") {
|
||||||
|
this["return"] = undefined;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
AsyncGenerator.prototype[typeof Symbol === "function" && Symbol.asyncIterator || "@@asyncIterator"] = function () {
|
||||||
|
return this;
|
||||||
|
};
|
||||||
|
|
||||||
|
AsyncGenerator.prototype.next = function (arg) {
|
||||||
|
return this._invoke("next", arg);
|
||||||
|
};
|
||||||
|
|
||||||
|
AsyncGenerator.prototype["throw"] = function (arg) {
|
||||||
|
return this._invoke("throw", arg);
|
||||||
|
};
|
||||||
|
|
||||||
|
AsyncGenerator.prototype["return"] = function (arg) {
|
||||||
|
return this._invoke("return", arg);
|
||||||
|
};
|
||||||
|
|
||||||
|
module.exports = AsyncGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
5
node_modules/@babel/runtime/helpers/AwaitValue.js
generated
vendored
Normal file
5
node_modules/@babel/runtime/helpers/AwaitValue.js
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
function _AwaitValue(value) {
|
||||||
|
this.wrapped = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = _AwaitValue, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
30
node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js
generated
vendored
Normal file
30
node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js
generated
vendored
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = _applyDecoratedDescriptor, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
284
node_modules/@babel/runtime/helpers/applyDecs.js
generated
vendored
Normal file
284
node_modules/@babel/runtime/helpers/applyDecs.js
generated
vendored
Normal file
|
@ -0,0 +1,284 @@
|
||||||
|
var _typeof = require("./typeof.js")["default"];
|
||||||
|
|
||||||
|
function createMetadataMethodsForProperty(metadataMap, kind, property, decoratorFinishedRef) {
|
||||||
|
return {
|
||||||
|
getMetadata: function getMetadata(key) {
|
||||||
|
assertNotFinished(decoratorFinishedRef, "getMetadata"), assertMetadataKey(key);
|
||||||
|
var metadataForKey = metadataMap[key];
|
||||||
|
if (void 0 !== metadataForKey) if (1 === kind) {
|
||||||
|
var pub = metadataForKey["public"];
|
||||||
|
if (void 0 !== pub) return pub[property];
|
||||||
|
} else if (2 === kind) {
|
||||||
|
var priv = metadataForKey["private"];
|
||||||
|
if (void 0 !== priv) return priv.get(property);
|
||||||
|
} else if (Object.hasOwnProperty.call(metadataForKey, "constructor")) return metadataForKey.constructor;
|
||||||
|
},
|
||||||
|
setMetadata: function setMetadata(key, value) {
|
||||||
|
assertNotFinished(decoratorFinishedRef, "setMetadata"), assertMetadataKey(key);
|
||||||
|
var metadataForKey = metadataMap[key];
|
||||||
|
|
||||||
|
if (void 0 === metadataForKey && (metadataForKey = metadataMap[key] = {}), 1 === kind) {
|
||||||
|
var pub = metadataForKey["public"];
|
||||||
|
void 0 === pub && (pub = metadataForKey["public"] = {}), pub[property] = value;
|
||||||
|
} else if (2 === kind) {
|
||||||
|
var priv = metadataForKey.priv;
|
||||||
|
void 0 === priv && (priv = metadataForKey["private"] = new Map()), priv.set(property, value);
|
||||||
|
} else metadataForKey.constructor = value;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
function convertMetadataMapToFinal(obj, metadataMap) {
|
||||||
|
var parentMetadataMap = obj[Symbol.metadata || Symbol["for"]("Symbol.metadata")],
|
||||||
|
metadataKeys = Object.getOwnPropertySymbols(metadataMap);
|
||||||
|
|
||||||
|
if (0 !== metadataKeys.length) {
|
||||||
|
for (var i = 0; i < metadataKeys.length; i++) {
|
||||||
|
var key = metadataKeys[i],
|
||||||
|
metaForKey = metadataMap[key],
|
||||||
|
parentMetaForKey = parentMetadataMap ? parentMetadataMap[key] : null,
|
||||||
|
pub = metaForKey["public"],
|
||||||
|
parentPub = parentMetaForKey ? parentMetaForKey["public"] : null;
|
||||||
|
pub && parentPub && Object.setPrototypeOf(pub, parentPub);
|
||||||
|
var priv = metaForKey["private"];
|
||||||
|
|
||||||
|
if (priv) {
|
||||||
|
var privArr = Array.from(priv.values()),
|
||||||
|
parentPriv = parentMetaForKey ? parentMetaForKey["private"] : null;
|
||||||
|
parentPriv && (privArr = privArr.concat(parentPriv)), metaForKey["private"] = privArr;
|
||||||
|
}
|
||||||
|
|
||||||
|
parentMetaForKey && Object.setPrototypeOf(metaForKey, parentMetaForKey);
|
||||||
|
}
|
||||||
|
|
||||||
|
parentMetadataMap && Object.setPrototypeOf(metadataMap, parentMetadataMap), obj[Symbol.metadata || Symbol["for"]("Symbol.metadata")] = metadataMap;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function createAddInitializerMethod(initializers, decoratorFinishedRef) {
|
||||||
|
return function (initializer) {
|
||||||
|
assertNotFinished(decoratorFinishedRef, "addInitializer"), assertCallable(initializer, "An initializer"), initializers.push(initializer);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
function memberDec(dec, name, desc, metadataMap, initializers, kind, isStatic, isPrivate, value) {
|
||||||
|
var kindStr;
|
||||||
|
|
||||||
|
switch (kind) {
|
||||||
|
case 1:
|
||||||
|
kindStr = "accessor";
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 2:
|
||||||
|
kindStr = "method";
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 3:
|
||||||
|
kindStr = "getter";
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 4:
|
||||||
|
kindStr = "setter";
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
kindStr = "field";
|
||||||
|
}
|
||||||
|
|
||||||
|
var metadataKind,
|
||||||
|
metadataName,
|
||||||
|
ctx = {
|
||||||
|
kind: kindStr,
|
||||||
|
name: isPrivate ? "#" + name : name,
|
||||||
|
isStatic: isStatic,
|
||||||
|
isPrivate: isPrivate
|
||||||
|
},
|
||||||
|
decoratorFinishedRef = {
|
||||||
|
v: !1
|
||||||
|
};
|
||||||
|
|
||||||
|
if (0 !== kind && (ctx.addInitializer = createAddInitializerMethod(initializers, decoratorFinishedRef)), isPrivate) {
|
||||||
|
metadataKind = 2, metadataName = Symbol(name);
|
||||||
|
var access = {};
|
||||||
|
0 === kind ? (access.get = desc.get, access.set = desc.set) : 2 === kind ? access.get = function () {
|
||||||
|
return desc.value;
|
||||||
|
} : (1 !== kind && 3 !== kind || (access.get = function () {
|
||||||
|
return desc.get.call(this);
|
||||||
|
}), 1 !== kind && 4 !== kind || (access.set = function (v) {
|
||||||
|
desc.set.call(this, v);
|
||||||
|
})), ctx.access = access;
|
||||||
|
} else metadataKind = 1, metadataName = name;
|
||||||
|
|
||||||
|
try {
|
||||||
|
return dec(value, Object.assign(ctx, createMetadataMethodsForProperty(metadataMap, metadataKind, metadataName, decoratorFinishedRef)));
|
||||||
|
} finally {
|
||||||
|
decoratorFinishedRef.v = !0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function assertNotFinished(decoratorFinishedRef, fnName) {
|
||||||
|
if (decoratorFinishedRef.v) throw new Error("attempted to call " + fnName + " after decoration was finished");
|
||||||
|
}
|
||||||
|
|
||||||
|
function assertMetadataKey(key) {
|
||||||
|
if ("symbol" != _typeof(key)) throw new TypeError("Metadata keys must be symbols, received: " + key);
|
||||||
|
}
|
||||||
|
|
||||||
|
function assertCallable(fn, hint) {
|
||||||
|
if ("function" != typeof fn) throw new TypeError(hint + " must be a function");
|
||||||
|
}
|
||||||
|
|
||||||
|
function assertValidReturnValue(kind, value) {
|
||||||
|
var type = _typeof(value);
|
||||||
|
|
||||||
|
if (1 === kind) {
|
||||||
|
if ("object" !== type || null === value) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
|
||||||
|
void 0 !== value.get && assertCallable(value.get, "accessor.get"), void 0 !== value.set && assertCallable(value.set, "accessor.set"), void 0 !== value.init && assertCallable(value.init, "accessor.init"), void 0 !== value.initializer && assertCallable(value.initializer, "accessor.initializer");
|
||||||
|
} else if ("function" !== type) {
|
||||||
|
var hint;
|
||||||
|
throw hint = 0 === kind ? "field" : 10 === kind ? "class" : "method", new TypeError(hint + " decorators must return a function or void 0");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function getInit(desc) {
|
||||||
|
var initializer;
|
||||||
|
return null == (initializer = desc.init) && (initializer = desc.initializer) && "undefined" != typeof console && console.warn(".initializer has been renamed to .init as of March 2022"), initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
function applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, metadataMap, initializers) {
|
||||||
|
var desc,
|
||||||
|
initializer,
|
||||||
|
value,
|
||||||
|
newValue,
|
||||||
|
get,
|
||||||
|
set,
|
||||||
|
decs = decInfo[0];
|
||||||
|
if (isPrivate ? desc = 0 === kind || 1 === kind ? {
|
||||||
|
get: decInfo[3],
|
||||||
|
set: decInfo[4]
|
||||||
|
} : 3 === kind ? {
|
||||||
|
get: decInfo[3]
|
||||||
|
} : 4 === kind ? {
|
||||||
|
set: decInfo[3]
|
||||||
|
} : {
|
||||||
|
value: decInfo[3]
|
||||||
|
} : 0 !== kind && (desc = Object.getOwnPropertyDescriptor(base, name)), 1 === kind ? value = {
|
||||||
|
get: desc.get,
|
||||||
|
set: desc.set
|
||||||
|
} : 2 === kind ? value = desc.value : 3 === kind ? value = desc.get : 4 === kind && (value = desc.set), "function" == typeof decs) void 0 !== (newValue = memberDec(decs, name, desc, metadataMap, initializers, kind, isStatic, isPrivate, value)) && (assertValidReturnValue(kind, newValue), 0 === kind ? initializer = newValue : 1 === kind ? (initializer = getInit(newValue), get = newValue.get || value.get, set = newValue.set || value.set, value = {
|
||||||
|
get: get,
|
||||||
|
set: set
|
||||||
|
}) : value = newValue);else for (var i = decs.length - 1; i >= 0; i--) {
|
||||||
|
var newInit;
|
||||||
|
if (void 0 !== (newValue = memberDec(decs[i], name, desc, metadataMap, initializers, kind, isStatic, isPrivate, value))) assertValidReturnValue(kind, newValue), 0 === kind ? newInit = newValue : 1 === kind ? (newInit = getInit(newValue), get = newValue.get || value.get, set = newValue.set || value.set, value = {
|
||||||
|
get: get,
|
||||||
|
set: set
|
||||||
|
}) : value = newValue, void 0 !== newInit && (void 0 === initializer ? initializer = newInit : "function" == typeof initializer ? initializer = [initializer, newInit] : initializer.push(newInit));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (0 === kind || 1 === kind) {
|
||||||
|
if (void 0 === initializer) initializer = function initializer(instance, init) {
|
||||||
|
return init;
|
||||||
|
};else if ("function" != typeof initializer) {
|
||||||
|
var ownInitializers = initializer;
|
||||||
|
|
||||||
|
initializer = function initializer(instance, init) {
|
||||||
|
for (var value = init, i = 0; i < ownInitializers.length; i++) {
|
||||||
|
value = ownInitializers[i].call(instance, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
return value;
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
var originalInitializer = initializer;
|
||||||
|
|
||||||
|
initializer = function initializer(instance, init) {
|
||||||
|
return originalInitializer.call(instance, init);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
ret.push(initializer);
|
||||||
|
}
|
||||||
|
|
||||||
|
0 !== kind && (1 === kind ? (desc.get = value.get, desc.set = value.set) : 2 === kind ? desc.value = value : 3 === kind ? desc.get = value : 4 === kind && (desc.set = value), isPrivate ? 1 === kind ? (ret.push(function (instance, args) {
|
||||||
|
return value.get.call(instance, args);
|
||||||
|
}), ret.push(function (instance, args) {
|
||||||
|
return value.set.call(instance, args);
|
||||||
|
})) : 2 === kind ? ret.push(value) : ret.push(function (instance, args) {
|
||||||
|
return value.call(instance, args);
|
||||||
|
}) : Object.defineProperty(base, name, desc));
|
||||||
|
}
|
||||||
|
|
||||||
|
function applyMemberDecs(ret, Class, protoMetadataMap, staticMetadataMap, decInfos) {
|
||||||
|
for (var protoInitializers, staticInitializers, existingProtoNonFields = new Map(), existingStaticNonFields = new Map(), i = 0; i < decInfos.length; i++) {
|
||||||
|
var decInfo = decInfos[i];
|
||||||
|
|
||||||
|
if (Array.isArray(decInfo)) {
|
||||||
|
var base,
|
||||||
|
metadataMap,
|
||||||
|
initializers,
|
||||||
|
kind = decInfo[1],
|
||||||
|
name = decInfo[2],
|
||||||
|
isPrivate = decInfo.length > 3,
|
||||||
|
isStatic = kind >= 5;
|
||||||
|
|
||||||
|
if (isStatic ? (base = Class, metadataMap = staticMetadataMap, 0 !== (kind -= 5) && (initializers = staticInitializers = staticInitializers || [])) : (base = Class.prototype, metadataMap = protoMetadataMap, 0 !== kind && (initializers = protoInitializers = protoInitializers || [])), 0 !== kind && !isPrivate) {
|
||||||
|
var existingNonFields = isStatic ? existingStaticNonFields : existingProtoNonFields,
|
||||||
|
existingKind = existingNonFields.get(name) || 0;
|
||||||
|
if (!0 === existingKind || 3 === existingKind && 4 !== kind || 4 === existingKind && 3 !== kind) throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + name);
|
||||||
|
!existingKind && kind > 2 ? existingNonFields.set(name, kind) : existingNonFields.set(name, !0);
|
||||||
|
}
|
||||||
|
|
||||||
|
applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, metadataMap, initializers);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pushInitializers(ret, protoInitializers), pushInitializers(ret, staticInitializers);
|
||||||
|
}
|
||||||
|
|
||||||
|
function pushInitializers(ret, initializers) {
|
||||||
|
initializers && ret.push(function (instance) {
|
||||||
|
for (var i = 0; i < initializers.length; i++) {
|
||||||
|
initializers[i].call(instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
return instance;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function applyClassDecs(ret, targetClass, metadataMap, classDecs) {
|
||||||
|
if (classDecs.length > 0) {
|
||||||
|
for (var initializers = [], newClass = targetClass, name = targetClass.name, i = classDecs.length - 1; i >= 0; i--) {
|
||||||
|
var decoratorFinishedRef = {
|
||||||
|
v: !1
|
||||||
|
};
|
||||||
|
|
||||||
|
try {
|
||||||
|
var ctx = Object.assign({
|
||||||
|
kind: "class",
|
||||||
|
name: name,
|
||||||
|
addInitializer: createAddInitializerMethod(initializers, decoratorFinishedRef)
|
||||||
|
}, createMetadataMethodsForProperty(metadataMap, 0, name, decoratorFinishedRef)),
|
||||||
|
nextNewClass = classDecs[i](newClass, ctx);
|
||||||
|
} finally {
|
||||||
|
decoratorFinishedRef.v = !0;
|
||||||
|
}
|
||||||
|
|
||||||
|
void 0 !== nextNewClass && (assertValidReturnValue(10, nextNewClass), newClass = nextNewClass);
|
||||||
|
}
|
||||||
|
|
||||||
|
ret.push(newClass, function () {
|
||||||
|
for (var i = 0; i < initializers.length; i++) {
|
||||||
|
initializers[i].call(newClass);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function applyDecs(targetClass, memberDecs, classDecs) {
|
||||||
|
var ret = [],
|
||||||
|
staticMetadataMap = {},
|
||||||
|
protoMetadataMap = {};
|
||||||
|
return applyMemberDecs(ret, targetClass, protoMetadataMap, staticMetadataMap, memberDecs), convertMetadataMapToFinal(targetClass.prototype, protoMetadataMap), applyClassDecs(ret, targetClass, staticMetadataMap, classDecs), convertMetadataMapToFinal(targetClass, staticMetadataMap), ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = applyDecs, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
11
node_modules/@babel/runtime/helpers/arrayLikeToArray.js
generated
vendored
Normal file
11
node_modules/@babel/runtime/helpers/arrayLikeToArray.js
generated
vendored
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
5
node_modules/@babel/runtime/helpers/arrayWithHoles.js
generated
vendored
Normal file
5
node_modules/@babel/runtime/helpers/arrayWithHoles.js
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
function _arrayWithHoles(arr) {
|
||||||
|
if (Array.isArray(arr)) return arr;
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
7
node_modules/@babel/runtime/helpers/arrayWithoutHoles.js
generated
vendored
Normal file
7
node_modules/@babel/runtime/helpers/arrayWithoutHoles.js
generated
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
var arrayLikeToArray = require("./arrayLikeToArray.js");
|
||||||
|
|
||||||
|
function _arrayWithoutHoles(arr) {
|
||||||
|
if (Array.isArray(arr)) return arrayLikeToArray(arr);
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
9
node_modules/@babel/runtime/helpers/assertThisInitialized.js
generated
vendored
Normal file
9
node_modules/@babel/runtime/helpers/assertThisInitialized.js
generated
vendored
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
function _assertThisInitialized(self) {
|
||||||
|
if (self === void 0) {
|
||||||
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
||||||
|
}
|
||||||
|
|
||||||
|
return self;
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
56
node_modules/@babel/runtime/helpers/asyncGeneratorDelegate.js
generated
vendored
Normal file
56
node_modules/@babel/runtime/helpers/asyncGeneratorDelegate.js
generated
vendored
Normal file
|
@ -0,0 +1,56 @@
|
||||||
|
function _asyncGeneratorDelegate(inner, awaitWrap) {
|
||||||
|
var iter = {},
|
||||||
|
waiting = false;
|
||||||
|
|
||||||
|
function pump(key, value) {
|
||||||
|
waiting = true;
|
||||||
|
value = new Promise(function (resolve) {
|
||||||
|
resolve(inner[key](value));
|
||||||
|
});
|
||||||
|
return {
|
||||||
|
done: false,
|
||||||
|
value: awaitWrap(value)
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
;
|
||||||
|
|
||||||
|
iter[typeof Symbol !== "undefined" && Symbol.iterator || "@@iterator"] = function () {
|
||||||
|
return this;
|
||||||
|
};
|
||||||
|
|
||||||
|
iter.next = function (value) {
|
||||||
|
if (waiting) {
|
||||||
|
waiting = false;
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
return pump("next", value);
|
||||||
|
};
|
||||||
|
|
||||||
|
if (typeof inner["throw"] === "function") {
|
||||||
|
iter["throw"] = function (value) {
|
||||||
|
if (waiting) {
|
||||||
|
waiting = false;
|
||||||
|
throw value;
|
||||||
|
}
|
||||||
|
|
||||||
|
return pump("throw", value);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
if (typeof inner["return"] === "function") {
|
||||||
|
iter["return"] = function (value) {
|
||||||
|
if (waiting) {
|
||||||
|
waiting = false;
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
return pump("return", value);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return iter;
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = _asyncGeneratorDelegate, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
50
node_modules/@babel/runtime/helpers/asyncIterator.js
generated
vendored
Normal file
50
node_modules/@babel/runtime/helpers/asyncIterator.js
generated
vendored
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
function _asyncIterator(iterable) {
|
||||||
|
var method,
|
||||||
|
async,
|
||||||
|
sync,
|
||||||
|
retry = 2;
|
||||||
|
|
||||||
|
for ("undefined" != typeof Symbol && (async = Symbol.asyncIterator, sync = Symbol.iterator); retry--;) {
|
||||||
|
if (async && null != (method = iterable[async])) return method.call(iterable);
|
||||||
|
if (sync && null != (method = iterable[sync])) return new AsyncFromSyncIterator(method.call(iterable));
|
||||||
|
async = "@@asyncIterator", sync = "@@iterator";
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new TypeError("Object is not async iterable");
|
||||||
|
}
|
||||||
|
|
||||||
|
function AsyncFromSyncIterator(s) {
|
||||||
|
function AsyncFromSyncIteratorContinuation(r) {
|
||||||
|
if (Object(r) !== r) return Promise.reject(new TypeError(r + " is not an object."));
|
||||||
|
var done = r.done;
|
||||||
|
return Promise.resolve(r.value).then(function (value) {
|
||||||
|
return {
|
||||||
|
value: value,
|
||||||
|
done: done
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
return AsyncFromSyncIterator = function AsyncFromSyncIterator(s) {
|
||||||
|
this.s = s, this.n = s.next;
|
||||||
|
}, AsyncFromSyncIterator.prototype = {
|
||||||
|
s: null,
|
||||||
|
n: null,
|
||||||
|
next: function next() {
|
||||||
|
return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments));
|
||||||
|
},
|
||||||
|
"return": function _return(value) {
|
||||||
|
var ret = this.s["return"];
|
||||||
|
return void 0 === ret ? Promise.resolve({
|
||||||
|
value: value,
|
||||||
|
done: !0
|
||||||
|
}) : AsyncFromSyncIteratorContinuation(ret.apply(this.s, arguments));
|
||||||
|
},
|
||||||
|
"throw": function _throw(value) {
|
||||||
|
var thr = this.s["return"];
|
||||||
|
return void 0 === thr ? Promise.reject(value) : AsyncFromSyncIteratorContinuation(thr.apply(this.s, arguments));
|
||||||
|
}
|
||||||
|
}, new AsyncFromSyncIterator(s);
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = _asyncIterator, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
37
node_modules/@babel/runtime/helpers/asyncToGenerator.js
generated
vendored
Normal file
37
node_modules/@babel/runtime/helpers/asyncToGenerator.js
generated
vendored
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
||||||
|
try {
|
||||||
|
var info = gen[key](arg);
|
||||||
|
var value = info.value;
|
||||||
|
} catch (error) {
|
||||||
|
reject(error);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (info.done) {
|
||||||
|
resolve(value);
|
||||||
|
} else {
|
||||||
|
Promise.resolve(value).then(_next, _throw);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function _asyncToGenerator(fn) {
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
|
function _throw(err) {
|
||||||
|
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
||||||
|
}
|
||||||
|
|
||||||
|
_next(undefined);
|
||||||
|
});
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
7
node_modules/@babel/runtime/helpers/awaitAsyncGenerator.js
generated
vendored
Normal file
7
node_modules/@babel/runtime/helpers/awaitAsyncGenerator.js
generated
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
var AwaitValue = require("./AwaitValue.js");
|
||||||
|
|
||||||
|
function _awaitAsyncGenerator(value) {
|
||||||
|
return new AwaitValue(value);
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = _awaitAsyncGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
7
node_modules/@babel/runtime/helpers/checkPrivateRedeclaration.js
generated
vendored
Normal file
7
node_modules/@babel/runtime/helpers/checkPrivateRedeclaration.js
generated
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
function _checkPrivateRedeclaration(obj, privateCollection) {
|
||||||
|
if (privateCollection.has(obj)) {
|
||||||
|
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;
|
22
node_modules/@babel/runtime/helpers/classApplyDescriptorDestructureSet.js
generated
vendored
Normal file
22
node_modules/@babel/runtime/helpers/classApplyDescriptorDestructureSet.js
generated
vendored
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
function _classApplyDescriptorDestructureSet(receiver, descriptor) {
|
||||||
|
if (descriptor.set) {
|
||||||
|
if (!("__destrObj" in descriptor)) {
|
||||||
|
descriptor.__destrObj = {
|
||||||
|
set value(v) {
|
||||||
|
descriptor.set.call(receiver, v);
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return descriptor.__destrObj;
|
||||||
|
} else {
|
||||||
|
if (!descriptor.writable) {
|
||||||
|
throw new TypeError("attempted to set read only private field");
|
||||||
|
}
|
||||||
|
|
||||||
|
return descriptor;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = _classApplyDescriptorDestructureSet, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
9
node_modules/@babel/runtime/helpers/classApplyDescriptorGet.js
generated
vendored
Normal file
9
node_modules/@babel/runtime/helpers/classApplyDescriptorGet.js
generated
vendored
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
function _classApplyDescriptorGet(receiver, descriptor) {
|
||||||
|
if (descriptor.get) {
|
||||||
|
return descriptor.get.call(receiver);
|
||||||
|
}
|
||||||
|
|
||||||
|
return descriptor.value;
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = _classApplyDescriptorGet, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
13
node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js
generated
vendored
Normal file
13
node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
function _classApplyDescriptorSet(receiver, descriptor, value) {
|
||||||
|
if (descriptor.set) {
|
||||||
|
descriptor.set.call(receiver, value);
|
||||||
|
} else {
|
||||||
|
if (!descriptor.writable) {
|
||||||
|
throw new TypeError("attempted to set read only private field");
|
||||||
|
}
|
||||||
|
|
||||||
|
descriptor.value = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = _classApplyDescriptorSet, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
7
node_modules/@babel/runtime/helpers/classCallCheck.js
generated
vendored
Normal file
7
node_modules/@babel/runtime/helpers/classCallCheck.js
generated
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
function _classCallCheck(instance, Constructor) {
|
||||||
|
if (!(instance instanceof Constructor)) {
|
||||||
|
throw new TypeError("Cannot call a class as a function");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
7
node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js
generated
vendored
Normal file
7
node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js
generated
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
function _classCheckPrivateStaticAccess(receiver, classConstructor) {
|
||||||
|
if (receiver !== classConstructor) {
|
||||||
|
throw new TypeError("Private static access of wrong provenance");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = _classCheckPrivateStaticAccess, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
7
node_modules/@babel/runtime/helpers/classCheckPrivateStaticFieldDescriptor.js
generated
vendored
Normal file
7
node_modules/@babel/runtime/helpers/classCheckPrivateStaticFieldDescriptor.js
generated
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
function _classCheckPrivateStaticFieldDescriptor(descriptor, action) {
|
||||||
|
if (descriptor === undefined) {
|
||||||
|
throw new TypeError("attempted to " + action + " private static field before its declaration");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = _classCheckPrivateStaticFieldDescriptor, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
9
node_modules/@babel/runtime/helpers/classExtractFieldDescriptor.js
generated
vendored
Normal file
9
node_modules/@babel/runtime/helpers/classExtractFieldDescriptor.js
generated
vendored
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
function _classExtractFieldDescriptor(receiver, privateMap, action) {
|
||||||
|
if (!privateMap.has(receiver)) {
|
||||||
|
throw new TypeError("attempted to " + action + " private field on non-instance");
|
||||||
|
}
|
||||||
|
|
||||||
|
return privateMap.get(receiver);
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = _classExtractFieldDescriptor, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
5
node_modules/@babel/runtime/helpers/classNameTDZError.js
generated
vendored
Normal file
5
node_modules/@babel/runtime/helpers/classNameTDZError.js
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
function _classNameTDZError(name) {
|
||||||
|
throw new Error("Class \"" + name + "\" cannot be referenced in computed property keys.");
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = _classNameTDZError, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
10
node_modules/@babel/runtime/helpers/classPrivateFieldDestructureSet.js
generated
vendored
Normal file
10
node_modules/@babel/runtime/helpers/classPrivateFieldDestructureSet.js
generated
vendored
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
var classApplyDescriptorDestructureSet = require("./classApplyDescriptorDestructureSet.js");
|
||||||
|
|
||||||
|
var classExtractFieldDescriptor = require("./classExtractFieldDescriptor.js");
|
||||||
|
|
||||||
|
function _classPrivateFieldDestructureSet(receiver, privateMap) {
|
||||||
|
var descriptor = classExtractFieldDescriptor(receiver, privateMap, "set");
|
||||||
|
return classApplyDescriptorDestructureSet(receiver, descriptor);
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = _classPrivateFieldDestructureSet, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
10
node_modules/@babel/runtime/helpers/classPrivateFieldGet.js
generated
vendored
Normal file
10
node_modules/@babel/runtime/helpers/classPrivateFieldGet.js
generated
vendored
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
var classApplyDescriptorGet = require("./classApplyDescriptorGet.js");
|
||||||
|
|
||||||
|
var classExtractFieldDescriptor = require("./classExtractFieldDescriptor.js");
|
||||||
|
|
||||||
|
function _classPrivateFieldGet(receiver, privateMap) {
|
||||||
|
var descriptor = classExtractFieldDescriptor(receiver, privateMap, "get");
|
||||||
|
return classApplyDescriptorGet(receiver, descriptor);
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = _classPrivateFieldGet, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
8
node_modules/@babel/runtime/helpers/classPrivateFieldInitSpec.js
generated
vendored
Normal file
8
node_modules/@babel/runtime/helpers/classPrivateFieldInitSpec.js
generated
vendored
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
var checkPrivateRedeclaration = require("./checkPrivateRedeclaration.js");
|
||||||
|
|
||||||
|
function _classPrivateFieldInitSpec(obj, privateMap, value) {
|
||||||
|
checkPrivateRedeclaration(obj, privateMap);
|
||||||
|
privateMap.set(obj, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = _classPrivateFieldInitSpec, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
9
node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js
generated
vendored
Normal file
9
node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js
generated
vendored
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
function _classPrivateFieldBase(receiver, privateKey) {
|
||||||
|
if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) {
|
||||||
|
throw new TypeError("attempted to use private field on non-instance");
|
||||||
|
}
|
||||||
|
|
||||||
|
return receiver;
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = _classPrivateFieldBase, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
7
node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js
generated
vendored
Normal file
7
node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js
generated
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
var id = 0;
|
||||||
|
|
||||||
|
function _classPrivateFieldKey(name) {
|
||||||
|
return "__private_" + id++ + "_" + name;
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = _classPrivateFieldKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
11
node_modules/@babel/runtime/helpers/classPrivateFieldSet.js
generated
vendored
Normal file
11
node_modules/@babel/runtime/helpers/classPrivateFieldSet.js
generated
vendored
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
var classApplyDescriptorSet = require("./classApplyDescriptorSet.js");
|
||||||
|
|
||||||
|
var classExtractFieldDescriptor = require("./classExtractFieldDescriptor.js");
|
||||||
|
|
||||||
|
function _classPrivateFieldSet(receiver, privateMap, value) {
|
||||||
|
var descriptor = classExtractFieldDescriptor(receiver, privateMap, "set");
|
||||||
|
classApplyDescriptorSet(receiver, descriptor, value);
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = _classPrivateFieldSet, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
9
node_modules/@babel/runtime/helpers/classPrivateMethodGet.js
generated
vendored
Normal file
9
node_modules/@babel/runtime/helpers/classPrivateMethodGet.js
generated
vendored
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
function _classPrivateMethodGet(receiver, privateSet, fn) {
|
||||||
|
if (!privateSet.has(receiver)) {
|
||||||
|
throw new TypeError("attempted to get private field on non-instance");
|
||||||
|
}
|
||||||
|
|
||||||
|
return fn;
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = _classPrivateMethodGet, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
8
node_modules/@babel/runtime/helpers/classPrivateMethodInitSpec.js
generated
vendored
Normal file
8
node_modules/@babel/runtime/helpers/classPrivateMethodInitSpec.js
generated
vendored
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
var checkPrivateRedeclaration = require("./checkPrivateRedeclaration.js");
|
||||||
|
|
||||||
|
function _classPrivateMethodInitSpec(obj, privateSet) {
|
||||||
|
checkPrivateRedeclaration(obj, privateSet);
|
||||||
|
privateSet.add(obj);
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = _classPrivateMethodInitSpec, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
5
node_modules/@babel/runtime/helpers/classPrivateMethodSet.js
generated
vendored
Normal file
5
node_modules/@babel/runtime/helpers/classPrivateMethodSet.js
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
function _classPrivateMethodSet() {
|
||||||
|
throw new TypeError("attempted to reassign private method");
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = _classPrivateMethodSet, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
13
node_modules/@babel/runtime/helpers/classStaticPrivateFieldDestructureSet.js
generated
vendored
Normal file
13
node_modules/@babel/runtime/helpers/classStaticPrivateFieldDestructureSet.js
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
var classApplyDescriptorDestructureSet = require("./classApplyDescriptorDestructureSet.js");
|
||||||
|
|
||||||
|
var classCheckPrivateStaticAccess = require("./classCheckPrivateStaticAccess.js");
|
||||||
|
|
||||||
|
var classCheckPrivateStaticFieldDescriptor = require("./classCheckPrivateStaticFieldDescriptor.js");
|
||||||
|
|
||||||
|
function _classStaticPrivateFieldDestructureSet(receiver, classConstructor, descriptor) {
|
||||||
|
classCheckPrivateStaticAccess(receiver, classConstructor);
|
||||||
|
classCheckPrivateStaticFieldDescriptor(descriptor, "set");
|
||||||
|
return classApplyDescriptorDestructureSet(receiver, descriptor);
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = _classStaticPrivateFieldDestructureSet, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
13
node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecGet.js
generated
vendored
Normal file
13
node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecGet.js
generated
vendored
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
var classApplyDescriptorGet = require("./classApplyDescriptorGet.js");
|
||||||
|
|
||||||
|
var classCheckPrivateStaticAccess = require("./classCheckPrivateStaticAccess.js");
|
||||||
|
|
||||||
|
var classCheckPrivateStaticFieldDescriptor = require("./classCheckPrivateStaticFieldDescriptor.js");
|
||||||
|
|
||||||
|
function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) {
|
||||||
|
classCheckPrivateStaticAccess(receiver, classConstructor);
|
||||||
|
classCheckPrivateStaticFieldDescriptor(descriptor, "get");
|
||||||
|
return classApplyDescriptorGet(receiver, descriptor);
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = _classStaticPrivateFieldSpecGet, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
14
node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecSet.js
generated
vendored
Normal file
14
node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecSet.js
generated
vendored
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
var classApplyDescriptorSet = require("./classApplyDescriptorSet.js");
|
||||||
|
|
||||||
|
var classCheckPrivateStaticAccess = require("./classCheckPrivateStaticAccess.js");
|
||||||
|
|
||||||
|
var classCheckPrivateStaticFieldDescriptor = require("./classCheckPrivateStaticFieldDescriptor.js");
|
||||||
|
|
||||||
|
function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) {
|
||||||
|
classCheckPrivateStaticAccess(receiver, classConstructor);
|
||||||
|
classCheckPrivateStaticFieldDescriptor(descriptor, "set");
|
||||||
|
classApplyDescriptorSet(receiver, descriptor, value);
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = _classStaticPrivateFieldSpecSet, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
8
node_modules/@babel/runtime/helpers/classStaticPrivateMethodGet.js
generated
vendored
Normal file
8
node_modules/@babel/runtime/helpers/classStaticPrivateMethodGet.js
generated
vendored
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
var classCheckPrivateStaticAccess = require("./classCheckPrivateStaticAccess.js");
|
||||||
|
|
||||||
|
function _classStaticPrivateMethodGet(receiver, classConstructor, method) {
|
||||||
|
classCheckPrivateStaticAccess(receiver, classConstructor);
|
||||||
|
return method;
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = _classStaticPrivateMethodGet, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
5
node_modules/@babel/runtime/helpers/classStaticPrivateMethodSet.js
generated
vendored
Normal file
5
node_modules/@babel/runtime/helpers/classStaticPrivateMethodSet.js
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
function _classStaticPrivateMethodSet() {
|
||||||
|
throw new TypeError("attempted to set read only static private field");
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = _classStaticPrivateMethodSet, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
22
node_modules/@babel/runtime/helpers/construct.js
generated
vendored
Normal file
22
node_modules/@babel/runtime/helpers/construct.js
generated
vendored
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
var setPrototypeOf = require("./setPrototypeOf.js");
|
||||||
|
|
||||||
|
var isNativeReflectConstruct = require("./isNativeReflectConstruct.js");
|
||||||
|
|
||||||
|
function _construct(Parent, args, Class) {
|
||||||
|
if (isNativeReflectConstruct()) {
|
||||||
|
module.exports = _construct = Reflect.construct, 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);
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
20
node_modules/@babel/runtime/helpers/createClass.js
generated
vendored
Normal file
20
node_modules/@babel/runtime/helpers/createClass.js
generated
vendored
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
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, descriptor.key, descriptor);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function _createClass(Constructor, protoProps, staticProps) {
|
||||||
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
||||||
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
||||||
|
Object.defineProperty(Constructor, "prototype", {
|
||||||
|
writable: false
|
||||||
|
});
|
||||||
|
return Constructor;
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
60
node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js
generated
vendored
Normal file
60
node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js
generated
vendored
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
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 F() {};
|
||||||
|
|
||||||
|
return {
|
||||||
|
s: F,
|
||||||
|
n: function n() {
|
||||||
|
if (i >= o.length) return {
|
||||||
|
done: true
|
||||||
|
};
|
||||||
|
return {
|
||||||
|
done: false,
|
||||||
|
value: o[i++]
|
||||||
|
};
|
||||||
|
},
|
||||||
|
e: function e(_e) {
|
||||||
|
throw _e;
|
||||||
|
},
|
||||||
|
f: F
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||||
|
}
|
||||||
|
|
||||||
|
var normalCompletion = true,
|
||||||
|
didErr = false,
|
||||||
|
err;
|
||||||
|
return {
|
||||||
|
s: function s() {
|
||||||
|
it = it.call(o);
|
||||||
|
},
|
||||||
|
n: function n() {
|
||||||
|
var step = it.next();
|
||||||
|
normalCompletion = step.done;
|
||||||
|
return step;
|
||||||
|
},
|
||||||
|
e: function e(_e2) {
|
||||||
|
didErr = true;
|
||||||
|
err = _e2;
|
||||||
|
},
|
||||||
|
f: function f() {
|
||||||
|
try {
|
||||||
|
if (!normalCompletion && it["return"] != null) it["return"]();
|
||||||
|
} finally {
|
||||||
|
if (didErr) throw err;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = _createForOfIteratorHelper, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
24
node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js
generated
vendored
Normal file
24
node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js
generated
vendored
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
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;
|
||||||
|
return function () {
|
||||||
|
if (i >= o.length) return {
|
||||||
|
done: true
|
||||||
|
};
|
||||||
|
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.");
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = _createForOfIteratorHelperLoose, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
24
node_modules/@babel/runtime/helpers/createSuper.js
generated
vendored
Normal file
24
node_modules/@babel/runtime/helpers/createSuper.js
generated
vendored
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
var getPrototypeOf = require("./getPrototypeOf.js");
|
||||||
|
|
||||||
|
var isNativeReflectConstruct = require("./isNativeReflectConstruct.js");
|
||||||
|
|
||||||
|
var possibleConstructorReturn = require("./possibleConstructorReturn.js");
|
||||||
|
|
||||||
|
function _createSuper(Derived) {
|
||||||
|
var hasNativeReflectConstruct = isNativeReflectConstruct();
|
||||||
|
return function _createSuperInternal() {
|
||||||
|
var Super = getPrototypeOf(Derived),
|
||||||
|
result;
|
||||||
|
|
||||||
|
if (hasNativeReflectConstruct) {
|
||||||
|
var NewTarget = getPrototypeOf(this).constructor;
|
||||||
|
result = Reflect.construct(Super, arguments, NewTarget);
|
||||||
|
} else {
|
||||||
|
result = Super.apply(this, arguments);
|
||||||
|
}
|
||||||
|
|
||||||
|
return possibleConstructorReturn(this, result);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = _createSuper, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
400
node_modules/@babel/runtime/helpers/decorate.js
generated
vendored
Normal file
400
node_modules/@babel/runtime/helpers/decorate.js
generated
vendored
Normal file
|
@ -0,0 +1,400 @@
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
|
function _getDecoratorsApi() {
|
||||||
|
_getDecoratorsApi = function _getDecoratorsApi() {
|
||||||
|
return api;
|
||||||
|
};
|
||||||
|
|
||||||
|
var api = {
|
||||||
|
elementsDefinitionOrder: [["method"], ["field"]],
|
||||||
|
initializeInstanceElements: function initializeInstanceElements(O, elements) {
|
||||||
|
["method", "field"].forEach(function (kind) {
|
||||||
|
elements.forEach(function (element) {
|
||||||
|
if (element.kind === kind && element.placement === "own") {
|
||||||
|
this.defineClassElement(O, element);
|
||||||
|
}
|
||||||
|
}, this);
|
||||||
|
}, this);
|
||||||
|
},
|
||||||
|
initializeClassElements: function initializeClassElements(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);
|
||||||
|
}
|
||||||
|
}, this);
|
||||||
|
}, this);
|
||||||
|
},
|
||||||
|
defineClassElement: function defineClassElement(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)
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
Object.defineProperty(receiver, element.key, descriptor);
|
||||||
|
},
|
||||||
|
decorateClass: function decorateClass(elements, decorators) {
|
||||||
|
var newElements = [];
|
||||||
|
var finishers = [];
|
||||||
|
var placements = {
|
||||||
|
"static": [],
|
||||||
|
prototype: [],
|
||||||
|
own: []
|
||||||
|
};
|
||||||
|
elements.forEach(function (element) {
|
||||||
|
this.addElementPlacement(element, placements);
|
||||||
|
}, this);
|
||||||
|
elements.forEach(function (element) {
|
||||||
|
if (!_hasDecorators(element)) return newElements.push(element);
|
||||||
|
var elementFinishersExtras = this.decorateElement(element, placements);
|
||||||
|
newElements.push(elementFinishersExtras.element);
|
||||||
|
newElements.push.apply(newElements, elementFinishersExtras.extras);
|
||||||
|
finishers.push.apply(finishers, elementFinishersExtras.finishers);
|
||||||
|
}, this);
|
||||||
|
|
||||||
|
if (!decorators) {
|
||||||
|
return {
|
||||||
|
elements: newElements,
|
||||||
|
finishers: finishers
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
var result = this.decorateConstructor(newElements, decorators);
|
||||||
|
finishers.push.apply(finishers, result.finishers);
|
||||||
|
result.finishers = finishers;
|
||||||
|
return result;
|
||||||
|
},
|
||||||
|
addElementPlacement: function addElementPlacement(element, placements, silent) {
|
||||||
|
var keys = placements[element.placement];
|
||||||
|
|
||||||
|
if (!silent && keys.indexOf(element.key) !== -1) {
|
||||||
|
throw new TypeError("Duplicated element (" + element.key + ")");
|
||||||
|
}
|
||||||
|
|
||||||
|
keys.push(element.key);
|
||||||
|
},
|
||||||
|
decorateElement: function decorateElement(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) {
|
||||||
|
finishers.push(elementFinisherExtras.finisher);
|
||||||
|
}
|
||||||
|
|
||||||
|
var newExtras = elementFinisherExtras.extras;
|
||||||
|
|
||||||
|
if (newExtras) {
|
||||||
|
for (var j = 0; j < newExtras.length; j++) {
|
||||||
|
this.addElementPlacement(newExtras[j], placements);
|
||||||
|
}
|
||||||
|
|
||||||
|
extras.push.apply(extras, newExtras);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
element: element,
|
||||||
|
finishers: finishers,
|
||||||
|
extras: extras
|
||||||
|
};
|
||||||
|
},
|
||||||
|
decorateConstructor: function decorateConstructor(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) {
|
||||||
|
finishers.push(elementsAndFinisher.finisher);
|
||||||
|
}
|
||||||
|
|
||||||
|
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
|
||||||
|
};
|
||||||
|
},
|
||||||
|
fromElementDescriptor: function fromElementDescriptor(element) {
|
||||||
|
var obj = {
|
||||||
|
kind: element.kind,
|
||||||
|
key: element.key,
|
||||||
|
placement: element.placement,
|
||||||
|
descriptor: element.descriptor
|
||||||
|
};
|
||||||
|
var desc = {
|
||||||
|
value: "Descriptor",
|
||||||
|
configurable: true
|
||||||
|
};
|
||||||
|
Object.defineProperty(obj, Symbol.toStringTag, desc);
|
||||||
|
if (element.kind === "field") obj.initializer = element.initializer;
|
||||||
|
return obj;
|
||||||
|
},
|
||||||
|
toElementDescriptors: function toElementDescriptors(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;
|
||||||
|
}, this);
|
||||||
|
},
|
||||||
|
toElementDescriptor: function toElementDescriptor(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)
|
||||||
|
};
|
||||||
|
|
||||||
|
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;
|
||||||
|
},
|
||||||
|
toElementFinisherExtras: function toElementFinisherExtras(elementObject) {
|
||||||
|
var element = this.toElementDescriptor(elementObject);
|
||||||
|
|
||||||
|
var finisher = _optionalCallableProperty(elementObject, "finisher");
|
||||||
|
|
||||||
|
var extras = this.toElementDescriptors(elementObject.extras);
|
||||||
|
return {
|
||||||
|
element: element,
|
||||||
|
finisher: finisher,
|
||||||
|
extras: extras
|
||||||
|
};
|
||||||
|
},
|
||||||
|
fromClassDescriptor: function fromClassDescriptor(elements) {
|
||||||
|
var obj = {
|
||||||
|
kind: "class",
|
||||||
|
elements: elements.map(this.fromElementDescriptor, this)
|
||||||
|
};
|
||||||
|
var desc = {
|
||||||
|
value: "Descriptor",
|
||||||
|
configurable: true
|
||||||
|
};
|
||||||
|
Object.defineProperty(obj, Symbol.toStringTag, desc);
|
||||||
|
return obj;
|
||||||
|
},
|
||||||
|
toClassDescriptor: function toClassDescriptor(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);
|
||||||
|
return {
|
||||||
|
elements: elements,
|
||||||
|
finisher: finisher
|
||||||
|
};
|
||||||
|
},
|
||||||
|
runClassFinishers: function runClassFinishers(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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return constructor;
|
||||||
|
},
|
||||||
|
disallowProperty: function disallowProperty(obj, name, objectType) {
|
||||||
|
if (obj[name] !== undefined) {
|
||||||
|
throw new TypeError(objectType + " can't have a ." + name + " property.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return api;
|
||||||
|
}
|
||||||
|
|
||||||
|
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
|
||||||
|
};
|
||||||
|
if (def.decorators) element.decorators = def.decorators;
|
||||||
|
if (def.kind === "field") element.initializer = def.value;
|
||||||
|
return element;
|
||||||
|
}
|
||||||
|
|
||||||
|
function _coalesceGetterSetter(element, other) {
|
||||||
|
if (element.descriptor.get !== undefined) {
|
||||||
|
other.descriptor.get = element.descriptor.get;
|
||||||
|
} else {
|
||||||
|
other.descriptor.set = element.descriptor.set;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function _coalesceClassElements(elements) {
|
||||||
|
var newElements = [];
|
||||||
|
|
||||||
|
var isSameElement = function isSameElement(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;
|
||||||
|
} 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;
|
||||||
|
}
|
||||||
|
|
||||||
|
_coalesceGetterSetter(element, other);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
newElements.push(element);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return newElements;
|
||||||
|
}
|
||||||
|
|
||||||
|
function _hasDecorators(element) {
|
||||||
|
return element.decorators && element.decorators.length;
|
||||||
|
}
|
||||||
|
|
||||||
|
function _isDataDescriptor(desc) {
|
||||||
|
return desc !== undefined && !(desc.value === undefined && desc.writable === undefined);
|
||||||
|
}
|
||||||
|
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = _decorate, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
16
node_modules/@babel/runtime/helpers/defaults.js
generated
vendored
Normal file
16
node_modules/@babel/runtime/helpers/defaults.js
generated
vendored
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return obj;
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = _defaults, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
24
node_modules/@babel/runtime/helpers/defineEnumerableProperties.js
generated
vendored
Normal file
24
node_modules/@babel/runtime/helpers/defineEnumerableProperties.js
generated
vendored
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
function _defineEnumerableProperties(obj, descs) {
|
||||||
|
for (var key in descs) {
|
||||||
|
var desc = descs[key];
|
||||||
|
desc.configurable = desc.enumerable = true;
|
||||||
|
if ("value" in desc) desc.writable = true;
|
||||||
|
Object.defineProperty(obj, key, desc);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Object.getOwnPropertySymbols) {
|
||||||
|
var objectSymbols = Object.getOwnPropertySymbols(descs);
|
||||||
|
|
||||||
|
for (var i = 0; i < objectSymbols.length; i++) {
|
||||||
|
var sym = objectSymbols[i];
|
||||||
|
var desc = descs[sym];
|
||||||
|
desc.configurable = desc.enumerable = true;
|
||||||
|
if ("value" in desc) desc.writable = true;
|
||||||
|
Object.defineProperty(obj, sym, desc);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return obj;
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = _defineEnumerableProperties, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
16
node_modules/@babel/runtime/helpers/defineProperty.js
generated
vendored
Normal file
16
node_modules/@babel/runtime/helpers/defineProperty.js
generated
vendored
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
function _defineProperty(obj, key, value) {
|
||||||
|
if (key in obj) {
|
||||||
|
Object.defineProperty(obj, key, {
|
||||||
|
value: value,
|
||||||
|
enumerable: true,
|
||||||
|
configurable: true,
|
||||||
|
writable: true
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
obj[key] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
return obj;
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
95
node_modules/@babel/runtime/helpers/esm/AsyncGenerator.js
generated
vendored
Normal file
95
node_modules/@babel/runtime/helpers/esm/AsyncGenerator.js
generated
vendored
Normal file
|
@ -0,0 +1,95 @@
|
||||||
|
import AwaitValue from "./AwaitValue.js";
|
||||||
|
export default function AsyncGenerator(gen) {
|
||||||
|
var front, back;
|
||||||
|
|
||||||
|
function send(key, arg) {
|
||||||
|
return new Promise(function (resolve, reject) {
|
||||||
|
var request = {
|
||||||
|
key: key,
|
||||||
|
arg: arg,
|
||||||
|
resolve: resolve,
|
||||||
|
reject: reject,
|
||||||
|
next: null
|
||||||
|
};
|
||||||
|
|
||||||
|
if (back) {
|
||||||
|
back = back.next = request;
|
||||||
|
} else {
|
||||||
|
front = back = request;
|
||||||
|
resume(key, arg);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function resume(key, arg) {
|
||||||
|
try {
|
||||||
|
var result = gen[key](arg);
|
||||||
|
var value = result.value;
|
||||||
|
var wrappedAwait = value instanceof AwaitValue;
|
||||||
|
Promise.resolve(wrappedAwait ? value.wrapped : value).then(function (arg) {
|
||||||
|
if (wrappedAwait) {
|
||||||
|
resume(key === "return" ? "return" : "next", arg);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
settle(result.done ? "return" : "normal", arg);
|
||||||
|
}, function (err) {
|
||||||
|
resume("throw", err);
|
||||||
|
});
|
||||||
|
} catch (err) {
|
||||||
|
settle("throw", err);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function settle(type, value) {
|
||||||
|
switch (type) {
|
||||||
|
case "return":
|
||||||
|
front.resolve({
|
||||||
|
value: value,
|
||||||
|
done: true
|
||||||
|
});
|
||||||
|
break;
|
||||||
|
|
||||||
|
case "throw":
|
||||||
|
front.reject(value);
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
front.resolve({
|
||||||
|
value: value,
|
||||||
|
done: false
|
||||||
|
});
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
front = front.next;
|
||||||
|
|
||||||
|
if (front) {
|
||||||
|
resume(front.key, front.arg);
|
||||||
|
} else {
|
||||||
|
back = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
this._invoke = send;
|
||||||
|
|
||||||
|
if (typeof gen["return"] !== "function") {
|
||||||
|
this["return"] = undefined;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
AsyncGenerator.prototype[typeof Symbol === "function" && Symbol.asyncIterator || "@@asyncIterator"] = function () {
|
||||||
|
return this;
|
||||||
|
};
|
||||||
|
|
||||||
|
AsyncGenerator.prototype.next = function (arg) {
|
||||||
|
return this._invoke("next", arg);
|
||||||
|
};
|
||||||
|
|
||||||
|
AsyncGenerator.prototype["throw"] = function (arg) {
|
||||||
|
return this._invoke("throw", arg);
|
||||||
|
};
|
||||||
|
|
||||||
|
AsyncGenerator.prototype["return"] = function (arg) {
|
||||||
|
return this._invoke("return", arg);
|
||||||
|
};
|
3
node_modules/@babel/runtime/helpers/esm/AwaitValue.js
generated
vendored
Normal file
3
node_modules/@babel/runtime/helpers/esm/AwaitValue.js
generated
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
export default function _AwaitValue(value) {
|
||||||
|
this.wrapped = value;
|
||||||
|
}
|
28
node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js
generated
vendored
Normal file
28
node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js
generated
vendored
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
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;
|
||||||
|
}
|
282
node_modules/@babel/runtime/helpers/esm/applyDecs.js
generated
vendored
Normal file
282
node_modules/@babel/runtime/helpers/esm/applyDecs.js
generated
vendored
Normal file
|
@ -0,0 +1,282 @@
|
||||||
|
import _typeof from "./typeof.js";
|
||||||
|
|
||||||
|
function createMetadataMethodsForProperty(metadataMap, kind, property, decoratorFinishedRef) {
|
||||||
|
return {
|
||||||
|
getMetadata: function getMetadata(key) {
|
||||||
|
assertNotFinished(decoratorFinishedRef, "getMetadata"), assertMetadataKey(key);
|
||||||
|
var metadataForKey = metadataMap[key];
|
||||||
|
if (void 0 !== metadataForKey) if (1 === kind) {
|
||||||
|
var pub = metadataForKey["public"];
|
||||||
|
if (void 0 !== pub) return pub[property];
|
||||||
|
} else if (2 === kind) {
|
||||||
|
var priv = metadataForKey["private"];
|
||||||
|
if (void 0 !== priv) return priv.get(property);
|
||||||
|
} else if (Object.hasOwnProperty.call(metadataForKey, "constructor")) return metadataForKey.constructor;
|
||||||
|
},
|
||||||
|
setMetadata: function setMetadata(key, value) {
|
||||||
|
assertNotFinished(decoratorFinishedRef, "setMetadata"), assertMetadataKey(key);
|
||||||
|
var metadataForKey = metadataMap[key];
|
||||||
|
|
||||||
|
if (void 0 === metadataForKey && (metadataForKey = metadataMap[key] = {}), 1 === kind) {
|
||||||
|
var pub = metadataForKey["public"];
|
||||||
|
void 0 === pub && (pub = metadataForKey["public"] = {}), pub[property] = value;
|
||||||
|
} else if (2 === kind) {
|
||||||
|
var priv = metadataForKey.priv;
|
||||||
|
void 0 === priv && (priv = metadataForKey["private"] = new Map()), priv.set(property, value);
|
||||||
|
} else metadataForKey.constructor = value;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
function convertMetadataMapToFinal(obj, metadataMap) {
|
||||||
|
var parentMetadataMap = obj[Symbol.metadata || Symbol["for"]("Symbol.metadata")],
|
||||||
|
metadataKeys = Object.getOwnPropertySymbols(metadataMap);
|
||||||
|
|
||||||
|
if (0 !== metadataKeys.length) {
|
||||||
|
for (var i = 0; i < metadataKeys.length; i++) {
|
||||||
|
var key = metadataKeys[i],
|
||||||
|
metaForKey = metadataMap[key],
|
||||||
|
parentMetaForKey = parentMetadataMap ? parentMetadataMap[key] : null,
|
||||||
|
pub = metaForKey["public"],
|
||||||
|
parentPub = parentMetaForKey ? parentMetaForKey["public"] : null;
|
||||||
|
pub && parentPub && Object.setPrototypeOf(pub, parentPub);
|
||||||
|
var priv = metaForKey["private"];
|
||||||
|
|
||||||
|
if (priv) {
|
||||||
|
var privArr = Array.from(priv.values()),
|
||||||
|
parentPriv = parentMetaForKey ? parentMetaForKey["private"] : null;
|
||||||
|
parentPriv && (privArr = privArr.concat(parentPriv)), metaForKey["private"] = privArr;
|
||||||
|
}
|
||||||
|
|
||||||
|
parentMetaForKey && Object.setPrototypeOf(metaForKey, parentMetaForKey);
|
||||||
|
}
|
||||||
|
|
||||||
|
parentMetadataMap && Object.setPrototypeOf(metadataMap, parentMetadataMap), obj[Symbol.metadata || Symbol["for"]("Symbol.metadata")] = metadataMap;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function createAddInitializerMethod(initializers, decoratorFinishedRef) {
|
||||||
|
return function (initializer) {
|
||||||
|
assertNotFinished(decoratorFinishedRef, "addInitializer"), assertCallable(initializer, "An initializer"), initializers.push(initializer);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
function memberDec(dec, name, desc, metadataMap, initializers, kind, isStatic, isPrivate, value) {
|
||||||
|
var kindStr;
|
||||||
|
|
||||||
|
switch (kind) {
|
||||||
|
case 1:
|
||||||
|
kindStr = "accessor";
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 2:
|
||||||
|
kindStr = "method";
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 3:
|
||||||
|
kindStr = "getter";
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 4:
|
||||||
|
kindStr = "setter";
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
kindStr = "field";
|
||||||
|
}
|
||||||
|
|
||||||
|
var metadataKind,
|
||||||
|
metadataName,
|
||||||
|
ctx = {
|
||||||
|
kind: kindStr,
|
||||||
|
name: isPrivate ? "#" + name : name,
|
||||||
|
isStatic: isStatic,
|
||||||
|
isPrivate: isPrivate
|
||||||
|
},
|
||||||
|
decoratorFinishedRef = {
|
||||||
|
v: !1
|
||||||
|
};
|
||||||
|
|
||||||
|
if (0 !== kind && (ctx.addInitializer = createAddInitializerMethod(initializers, decoratorFinishedRef)), isPrivate) {
|
||||||
|
metadataKind = 2, metadataName = Symbol(name);
|
||||||
|
var access = {};
|
||||||
|
0 === kind ? (access.get = desc.get, access.set = desc.set) : 2 === kind ? access.get = function () {
|
||||||
|
return desc.value;
|
||||||
|
} : (1 !== kind && 3 !== kind || (access.get = function () {
|
||||||
|
return desc.get.call(this);
|
||||||
|
}), 1 !== kind && 4 !== kind || (access.set = function (v) {
|
||||||
|
desc.set.call(this, v);
|
||||||
|
})), ctx.access = access;
|
||||||
|
} else metadataKind = 1, metadataName = name;
|
||||||
|
|
||||||
|
try {
|
||||||
|
return dec(value, Object.assign(ctx, createMetadataMethodsForProperty(metadataMap, metadataKind, metadataName, decoratorFinishedRef)));
|
||||||
|
} finally {
|
||||||
|
decoratorFinishedRef.v = !0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function assertNotFinished(decoratorFinishedRef, fnName) {
|
||||||
|
if (decoratorFinishedRef.v) throw new Error("attempted to call " + fnName + " after decoration was finished");
|
||||||
|
}
|
||||||
|
|
||||||
|
function assertMetadataKey(key) {
|
||||||
|
if ("symbol" != _typeof(key)) throw new TypeError("Metadata keys must be symbols, received: " + key);
|
||||||
|
}
|
||||||
|
|
||||||
|
function assertCallable(fn, hint) {
|
||||||
|
if ("function" != typeof fn) throw new TypeError(hint + " must be a function");
|
||||||
|
}
|
||||||
|
|
||||||
|
function assertValidReturnValue(kind, value) {
|
||||||
|
var type = _typeof(value);
|
||||||
|
|
||||||
|
if (1 === kind) {
|
||||||
|
if ("object" !== type || null === value) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
|
||||||
|
void 0 !== value.get && assertCallable(value.get, "accessor.get"), void 0 !== value.set && assertCallable(value.set, "accessor.set"), void 0 !== value.init && assertCallable(value.init, "accessor.init"), void 0 !== value.initializer && assertCallable(value.initializer, "accessor.initializer");
|
||||||
|
} else if ("function" !== type) {
|
||||||
|
var hint;
|
||||||
|
throw hint = 0 === kind ? "field" : 10 === kind ? "class" : "method", new TypeError(hint + " decorators must return a function or void 0");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function getInit(desc) {
|
||||||
|
var initializer;
|
||||||
|
return null == (initializer = desc.init) && (initializer = desc.initializer) && "undefined" != typeof console && console.warn(".initializer has been renamed to .init as of March 2022"), initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
function applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, metadataMap, initializers) {
|
||||||
|
var desc,
|
||||||
|
initializer,
|
||||||
|
value,
|
||||||
|
newValue,
|
||||||
|
get,
|
||||||
|
set,
|
||||||
|
decs = decInfo[0];
|
||||||
|
if (isPrivate ? desc = 0 === kind || 1 === kind ? {
|
||||||
|
get: decInfo[3],
|
||||||
|
set: decInfo[4]
|
||||||
|
} : 3 === kind ? {
|
||||||
|
get: decInfo[3]
|
||||||
|
} : 4 === kind ? {
|
||||||
|
set: decInfo[3]
|
||||||
|
} : {
|
||||||
|
value: decInfo[3]
|
||||||
|
} : 0 !== kind && (desc = Object.getOwnPropertyDescriptor(base, name)), 1 === kind ? value = {
|
||||||
|
get: desc.get,
|
||||||
|
set: desc.set
|
||||||
|
} : 2 === kind ? value = desc.value : 3 === kind ? value = desc.get : 4 === kind && (value = desc.set), "function" == typeof decs) void 0 !== (newValue = memberDec(decs, name, desc, metadataMap, initializers, kind, isStatic, isPrivate, value)) && (assertValidReturnValue(kind, newValue), 0 === kind ? initializer = newValue : 1 === kind ? (initializer = getInit(newValue), get = newValue.get || value.get, set = newValue.set || value.set, value = {
|
||||||
|
get: get,
|
||||||
|
set: set
|
||||||
|
}) : value = newValue);else for (var i = decs.length - 1; i >= 0; i--) {
|
||||||
|
var newInit;
|
||||||
|
if (void 0 !== (newValue = memberDec(decs[i], name, desc, metadataMap, initializers, kind, isStatic, isPrivate, value))) assertValidReturnValue(kind, newValue), 0 === kind ? newInit = newValue : 1 === kind ? (newInit = getInit(newValue), get = newValue.get || value.get, set = newValue.set || value.set, value = {
|
||||||
|
get: get,
|
||||||
|
set: set
|
||||||
|
}) : value = newValue, void 0 !== newInit && (void 0 === initializer ? initializer = newInit : "function" == typeof initializer ? initializer = [initializer, newInit] : initializer.push(newInit));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (0 === kind || 1 === kind) {
|
||||||
|
if (void 0 === initializer) initializer = function initializer(instance, init) {
|
||||||
|
return init;
|
||||||
|
};else if ("function" != typeof initializer) {
|
||||||
|
var ownInitializers = initializer;
|
||||||
|
|
||||||
|
initializer = function initializer(instance, init) {
|
||||||
|
for (var value = init, i = 0; i < ownInitializers.length; i++) {
|
||||||
|
value = ownInitializers[i].call(instance, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
return value;
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
var originalInitializer = initializer;
|
||||||
|
|
||||||
|
initializer = function initializer(instance, init) {
|
||||||
|
return originalInitializer.call(instance, init);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
ret.push(initializer);
|
||||||
|
}
|
||||||
|
|
||||||
|
0 !== kind && (1 === kind ? (desc.get = value.get, desc.set = value.set) : 2 === kind ? desc.value = value : 3 === kind ? desc.get = value : 4 === kind && (desc.set = value), isPrivate ? 1 === kind ? (ret.push(function (instance, args) {
|
||||||
|
return value.get.call(instance, args);
|
||||||
|
}), ret.push(function (instance, args) {
|
||||||
|
return value.set.call(instance, args);
|
||||||
|
})) : 2 === kind ? ret.push(value) : ret.push(function (instance, args) {
|
||||||
|
return value.call(instance, args);
|
||||||
|
}) : Object.defineProperty(base, name, desc));
|
||||||
|
}
|
||||||
|
|
||||||
|
function applyMemberDecs(ret, Class, protoMetadataMap, staticMetadataMap, decInfos) {
|
||||||
|
for (var protoInitializers, staticInitializers, existingProtoNonFields = new Map(), existingStaticNonFields = new Map(), i = 0; i < decInfos.length; i++) {
|
||||||
|
var decInfo = decInfos[i];
|
||||||
|
|
||||||
|
if (Array.isArray(decInfo)) {
|
||||||
|
var base,
|
||||||
|
metadataMap,
|
||||||
|
initializers,
|
||||||
|
kind = decInfo[1],
|
||||||
|
name = decInfo[2],
|
||||||
|
isPrivate = decInfo.length > 3,
|
||||||
|
isStatic = kind >= 5;
|
||||||
|
|
||||||
|
if (isStatic ? (base = Class, metadataMap = staticMetadataMap, 0 !== (kind -= 5) && (initializers = staticInitializers = staticInitializers || [])) : (base = Class.prototype, metadataMap = protoMetadataMap, 0 !== kind && (initializers = protoInitializers = protoInitializers || [])), 0 !== kind && !isPrivate) {
|
||||||
|
var existingNonFields = isStatic ? existingStaticNonFields : existingProtoNonFields,
|
||||||
|
existingKind = existingNonFields.get(name) || 0;
|
||||||
|
if (!0 === existingKind || 3 === existingKind && 4 !== kind || 4 === existingKind && 3 !== kind) throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + name);
|
||||||
|
!existingKind && kind > 2 ? existingNonFields.set(name, kind) : existingNonFields.set(name, !0);
|
||||||
|
}
|
||||||
|
|
||||||
|
applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, metadataMap, initializers);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pushInitializers(ret, protoInitializers), pushInitializers(ret, staticInitializers);
|
||||||
|
}
|
||||||
|
|
||||||
|
function pushInitializers(ret, initializers) {
|
||||||
|
initializers && ret.push(function (instance) {
|
||||||
|
for (var i = 0; i < initializers.length; i++) {
|
||||||
|
initializers[i].call(instance);
|
||||||
|
}
|
||||||
|
|
||||||
|
return instance;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function applyClassDecs(ret, targetClass, metadataMap, classDecs) {
|
||||||
|
if (classDecs.length > 0) {
|
||||||
|
for (var initializers = [], newClass = targetClass, name = targetClass.name, i = classDecs.length - 1; i >= 0; i--) {
|
||||||
|
var decoratorFinishedRef = {
|
||||||
|
v: !1
|
||||||
|
};
|
||||||
|
|
||||||
|
try {
|
||||||
|
var ctx = Object.assign({
|
||||||
|
kind: "class",
|
||||||
|
name: name,
|
||||||
|
addInitializer: createAddInitializerMethod(initializers, decoratorFinishedRef)
|
||||||
|
}, createMetadataMethodsForProperty(metadataMap, 0, name, decoratorFinishedRef)),
|
||||||
|
nextNewClass = classDecs[i](newClass, ctx);
|
||||||
|
} finally {
|
||||||
|
decoratorFinishedRef.v = !0;
|
||||||
|
}
|
||||||
|
|
||||||
|
void 0 !== nextNewClass && (assertValidReturnValue(10, nextNewClass), newClass = nextNewClass);
|
||||||
|
}
|
||||||
|
|
||||||
|
ret.push(newClass, function () {
|
||||||
|
for (var i = 0; i < initializers.length; i++) {
|
||||||
|
initializers[i].call(newClass);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default function applyDecs(targetClass, memberDecs, classDecs) {
|
||||||
|
var ret = [],
|
||||||
|
staticMetadataMap = {},
|
||||||
|
protoMetadataMap = {};
|
||||||
|
return applyMemberDecs(ret, targetClass, protoMetadataMap, staticMetadataMap, memberDecs), convertMetadataMapToFinal(targetClass.prototype, protoMetadataMap), applyClassDecs(ret, targetClass, staticMetadataMap, classDecs), convertMetadataMapToFinal(targetClass, staticMetadataMap), ret;
|
||||||
|
}
|
9
node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
generated
vendored
Normal file
9
node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
generated
vendored
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
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;
|
||||||
|
}
|
3
node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
generated
vendored
Normal file
3
node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
generated
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
export default function _arrayWithHoles(arr) {
|
||||||
|
if (Array.isArray(arr)) return arr;
|
||||||
|
}
|
4
node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
generated
vendored
Normal file
4
node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
generated
vendored
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
import arrayLikeToArray from "./arrayLikeToArray.js";
|
||||||
|
export default function _arrayWithoutHoles(arr) {
|
||||||
|
if (Array.isArray(arr)) return arrayLikeToArray(arr);
|
||||||
|
}
|
7
node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
generated
vendored
Normal file
7
node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
generated
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
export default function _assertThisInitialized(self) {
|
||||||
|
if (self === void 0) {
|
||||||
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
||||||
|
}
|
||||||
|
|
||||||
|
return self;
|
||||||
|
}
|
54
node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js
generated
vendored
Normal file
54
node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js
generated
vendored
Normal file
|
@ -0,0 +1,54 @@
|
||||||
|
export default function _asyncGeneratorDelegate(inner, awaitWrap) {
|
||||||
|
var iter = {},
|
||||||
|
waiting = false;
|
||||||
|
|
||||||
|
function pump(key, value) {
|
||||||
|
waiting = true;
|
||||||
|
value = new Promise(function (resolve) {
|
||||||
|
resolve(inner[key](value));
|
||||||
|
});
|
||||||
|
return {
|
||||||
|
done: false,
|
||||||
|
value: awaitWrap(value)
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
;
|
||||||
|
|
||||||
|
iter[typeof Symbol !== "undefined" && Symbol.iterator || "@@iterator"] = function () {
|
||||||
|
return this;
|
||||||
|
};
|
||||||
|
|
||||||
|
iter.next = function (value) {
|
||||||
|
if (waiting) {
|
||||||
|
waiting = false;
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
return pump("next", value);
|
||||||
|
};
|
||||||
|
|
||||||
|
if (typeof inner["throw"] === "function") {
|
||||||
|
iter["throw"] = function (value) {
|
||||||
|
if (waiting) {
|
||||||
|
waiting = false;
|
||||||
|
throw value;
|
||||||
|
}
|
||||||
|
|
||||||
|
return pump("throw", value);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
if (typeof inner["return"] === "function") {
|
||||||
|
iter["return"] = function (value) {
|
||||||
|
if (waiting) {
|
||||||
|
waiting = false;
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
return pump("return", value);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return iter;
|
||||||
|
}
|
48
node_modules/@babel/runtime/helpers/esm/asyncIterator.js
generated
vendored
Normal file
48
node_modules/@babel/runtime/helpers/esm/asyncIterator.js
generated
vendored
Normal file
|
@ -0,0 +1,48 @@
|
||||||
|
export default function _asyncIterator(iterable) {
|
||||||
|
var method,
|
||||||
|
async,
|
||||||
|
sync,
|
||||||
|
retry = 2;
|
||||||
|
|
||||||
|
for ("undefined" != typeof Symbol && (async = Symbol.asyncIterator, sync = Symbol.iterator); retry--;) {
|
||||||
|
if (async && null != (method = iterable[async])) return method.call(iterable);
|
||||||
|
if (sync && null != (method = iterable[sync])) return new AsyncFromSyncIterator(method.call(iterable));
|
||||||
|
async = "@@asyncIterator", sync = "@@iterator";
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new TypeError("Object is not async iterable");
|
||||||
|
}
|
||||||
|
|
||||||
|
function AsyncFromSyncIterator(s) {
|
||||||
|
function AsyncFromSyncIteratorContinuation(r) {
|
||||||
|
if (Object(r) !== r) return Promise.reject(new TypeError(r + " is not an object."));
|
||||||
|
var done = r.done;
|
||||||
|
return Promise.resolve(r.value).then(function (value) {
|
||||||
|
return {
|
||||||
|
value: value,
|
||||||
|
done: done
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
return AsyncFromSyncIterator = function AsyncFromSyncIterator(s) {
|
||||||
|
this.s = s, this.n = s.next;
|
||||||
|
}, AsyncFromSyncIterator.prototype = {
|
||||||
|
s: null,
|
||||||
|
n: null,
|
||||||
|
next: function next() {
|
||||||
|
return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments));
|
||||||
|
},
|
||||||
|
"return": function _return(value) {
|
||||||
|
var ret = this.s["return"];
|
||||||
|
return void 0 === ret ? Promise.resolve({
|
||||||
|
value: value,
|
||||||
|
done: !0
|
||||||
|
}) : AsyncFromSyncIteratorContinuation(ret.apply(this.s, arguments));
|
||||||
|
},
|
||||||
|
"throw": function _throw(value) {
|
||||||
|
var thr = this.s["return"];
|
||||||
|
return void 0 === thr ? Promise.reject(value) : AsyncFromSyncIteratorContinuation(thr.apply(this.s, arguments));
|
||||||
|
}
|
||||||
|
}, new AsyncFromSyncIterator(s);
|
||||||
|
}
|
35
node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
generated
vendored
Normal file
35
node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
generated
vendored
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
||||||
|
try {
|
||||||
|
var info = gen[key](arg);
|
||||||
|
var value = info.value;
|
||||||
|
} catch (error) {
|
||||||
|
reject(error);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (info.done) {
|
||||||
|
resolve(value);
|
||||||
|
} else {
|
||||||
|
Promise.resolve(value).then(_next, _throw);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default function _asyncToGenerator(fn) {
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
|
function _throw(err) {
|
||||||
|
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
||||||
|
}
|
||||||
|
|
||||||
|
_next(undefined);
|
||||||
|
});
|
||||||
|
};
|
||||||
|
}
|
4
node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js
generated
vendored
Normal file
4
node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js
generated
vendored
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
import AwaitValue from "./AwaitValue.js";
|
||||||
|
export default function _awaitAsyncGenerator(value) {
|
||||||
|
return new AwaitValue(value);
|
||||||
|
}
|
5
node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js
generated
vendored
Normal file
5
node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
export default function _checkPrivateRedeclaration(obj, privateCollection) {
|
||||||
|
if (privateCollection.has(obj)) {
|
||||||
|
throw new TypeError("Cannot initialize the same private elements twice on an object");
|
||||||
|
}
|
||||||
|
}
|
20
node_modules/@babel/runtime/helpers/esm/classApplyDescriptorDestructureSet.js
generated
vendored
Normal file
20
node_modules/@babel/runtime/helpers/esm/classApplyDescriptorDestructureSet.js
generated
vendored
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
export default function _classApplyDescriptorDestructureSet(receiver, descriptor) {
|
||||||
|
if (descriptor.set) {
|
||||||
|
if (!("__destrObj" in descriptor)) {
|
||||||
|
descriptor.__destrObj = {
|
||||||
|
set value(v) {
|
||||||
|
descriptor.set.call(receiver, v);
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return descriptor.__destrObj;
|
||||||
|
} else {
|
||||||
|
if (!descriptor.writable) {
|
||||||
|
throw new TypeError("attempted to set read only private field");
|
||||||
|
}
|
||||||
|
|
||||||
|
return descriptor;
|
||||||
|
}
|
||||||
|
}
|
7
node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js
generated
vendored
Normal file
7
node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js
generated
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
export default function _classApplyDescriptorGet(receiver, descriptor) {
|
||||||
|
if (descriptor.get) {
|
||||||
|
return descriptor.get.call(receiver);
|
||||||
|
}
|
||||||
|
|
||||||
|
return descriptor.value;
|
||||||
|
}
|
11
node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js
generated
vendored
Normal file
11
node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js
generated
vendored
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
export default function _classApplyDescriptorSet(receiver, descriptor, value) {
|
||||||
|
if (descriptor.set) {
|
||||||
|
descriptor.set.call(receiver, value);
|
||||||
|
} else {
|
||||||
|
if (!descriptor.writable) {
|
||||||
|
throw new TypeError("attempted to set read only private field");
|
||||||
|
}
|
||||||
|
|
||||||
|
descriptor.value = value;
|
||||||
|
}
|
||||||
|
}
|
5
node_modules/@babel/runtime/helpers/esm/classCallCheck.js
generated
vendored
Normal file
5
node_modules/@babel/runtime/helpers/esm/classCallCheck.js
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
export default function _classCallCheck(instance, Constructor) {
|
||||||
|
if (!(instance instanceof Constructor)) {
|
||||||
|
throw new TypeError("Cannot call a class as a function");
|
||||||
|
}
|
||||||
|
}
|
5
node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js
generated
vendored
Normal file
5
node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
export default function _classCheckPrivateStaticAccess(receiver, classConstructor) {
|
||||||
|
if (receiver !== classConstructor) {
|
||||||
|
throw new TypeError("Private static access of wrong provenance");
|
||||||
|
}
|
||||||
|
}
|
5
node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js
generated
vendored
Normal file
5
node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
export default function _classCheckPrivateStaticFieldDescriptor(descriptor, action) {
|
||||||
|
if (descriptor === undefined) {
|
||||||
|
throw new TypeError("attempted to " + action + " private static field before its declaration");
|
||||||
|
}
|
||||||
|
}
|
7
node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js
generated
vendored
Normal file
7
node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js
generated
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
export default function _classExtractFieldDescriptor(receiver, privateMap, action) {
|
||||||
|
if (!privateMap.has(receiver)) {
|
||||||
|
throw new TypeError("attempted to " + action + " private field on non-instance");
|
||||||
|
}
|
||||||
|
|
||||||
|
return privateMap.get(receiver);
|
||||||
|
}
|
3
node_modules/@babel/runtime/helpers/esm/classNameTDZError.js
generated
vendored
Normal file
3
node_modules/@babel/runtime/helpers/esm/classNameTDZError.js
generated
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
export default function _classNameTDZError(name) {
|
||||||
|
throw new Error("Class \"" + name + "\" cannot be referenced in computed property keys.");
|
||||||
|
}
|
6
node_modules/@babel/runtime/helpers/esm/classPrivateFieldDestructureSet.js
generated
vendored
Normal file
6
node_modules/@babel/runtime/helpers/esm/classPrivateFieldDestructureSet.js
generated
vendored
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
import classApplyDescriptorDestructureSet from "./classApplyDescriptorDestructureSet.js";
|
||||||
|
import classExtractFieldDescriptor from "./classExtractFieldDescriptor.js";
|
||||||
|
export default function _classPrivateFieldDestructureSet(receiver, privateMap) {
|
||||||
|
var descriptor = classExtractFieldDescriptor(receiver, privateMap, "set");
|
||||||
|
return classApplyDescriptorDestructureSet(receiver, descriptor);
|
||||||
|
}
|
6
node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js
generated
vendored
Normal file
6
node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js
generated
vendored
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
import classApplyDescriptorGet from "./classApplyDescriptorGet.js";
|
||||||
|
import classExtractFieldDescriptor from "./classExtractFieldDescriptor.js";
|
||||||
|
export default function _classPrivateFieldGet(receiver, privateMap) {
|
||||||
|
var descriptor = classExtractFieldDescriptor(receiver, privateMap, "get");
|
||||||
|
return classApplyDescriptorGet(receiver, descriptor);
|
||||||
|
}
|
5
node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js
generated
vendored
Normal file
5
node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
import checkPrivateRedeclaration from "./checkPrivateRedeclaration.js";
|
||||||
|
export default function _classPrivateFieldInitSpec(obj, privateMap, value) {
|
||||||
|
checkPrivateRedeclaration(obj, privateMap);
|
||||||
|
privateMap.set(obj, value);
|
||||||
|
}
|
7
node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js
generated
vendored
Normal file
7
node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js
generated
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
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;
|
||||||
|
}
|
4
node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js
generated
vendored
Normal file
4
node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js
generated
vendored
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
var id = 0;
|
||||||
|
export default function _classPrivateFieldKey(name) {
|
||||||
|
return "__private_" + id++ + "_" + name;
|
||||||
|
}
|
7
node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js
generated
vendored
Normal file
7
node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js
generated
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
import classApplyDescriptorSet from "./classApplyDescriptorSet.js";
|
||||||
|
import classExtractFieldDescriptor from "./classExtractFieldDescriptor.js";
|
||||||
|
export default function _classPrivateFieldSet(receiver, privateMap, value) {
|
||||||
|
var descriptor = classExtractFieldDescriptor(receiver, privateMap, "set");
|
||||||
|
classApplyDescriptorSet(receiver, descriptor, value);
|
||||||
|
return value;
|
||||||
|
}
|
7
node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js
generated
vendored
Normal file
7
node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js
generated
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
export default function _classPrivateMethodGet(receiver, privateSet, fn) {
|
||||||
|
if (!privateSet.has(receiver)) {
|
||||||
|
throw new TypeError("attempted to get private field on non-instance");
|
||||||
|
}
|
||||||
|
|
||||||
|
return fn;
|
||||||
|
}
|
5
node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js
generated
vendored
Normal file
5
node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
import checkPrivateRedeclaration from "./checkPrivateRedeclaration.js";
|
||||||
|
export default function _classPrivateMethodInitSpec(obj, privateSet) {
|
||||||
|
checkPrivateRedeclaration(obj, privateSet);
|
||||||
|
privateSet.add(obj);
|
||||||
|
}
|
3
node_modules/@babel/runtime/helpers/esm/classPrivateMethodSet.js
generated
vendored
Normal file
3
node_modules/@babel/runtime/helpers/esm/classPrivateMethodSet.js
generated
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
export default function _classPrivateMethodSet() {
|
||||||
|
throw new TypeError("attempted to reassign private method");
|
||||||
|
}
|
8
node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldDestructureSet.js
generated
vendored
Normal file
8
node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldDestructureSet.js
generated
vendored
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
import classApplyDescriptorDestructureSet from "./classApplyDescriptorDestructureSet.js";
|
||||||
|
import classCheckPrivateStaticAccess from "./classCheckPrivateStaticAccess.js";
|
||||||
|
import classCheckPrivateStaticFieldDescriptor from "./classCheckPrivateStaticFieldDescriptor.js";
|
||||||
|
export default function _classStaticPrivateFieldDestructureSet(receiver, classConstructor, descriptor) {
|
||||||
|
classCheckPrivateStaticAccess(receiver, classConstructor);
|
||||||
|
classCheckPrivateStaticFieldDescriptor(descriptor, "set");
|
||||||
|
return classApplyDescriptorDestructureSet(receiver, descriptor);
|
||||||
|
}
|
8
node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js
generated
vendored
Normal file
8
node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js
generated
vendored
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
import classApplyDescriptorGet from "./classApplyDescriptorGet.js";
|
||||||
|
import classCheckPrivateStaticAccess from "./classCheckPrivateStaticAccess.js";
|
||||||
|
import classCheckPrivateStaticFieldDescriptor from "./classCheckPrivateStaticFieldDescriptor.js";
|
||||||
|
export default function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) {
|
||||||
|
classCheckPrivateStaticAccess(receiver, classConstructor);
|
||||||
|
classCheckPrivateStaticFieldDescriptor(descriptor, "get");
|
||||||
|
return classApplyDescriptorGet(receiver, descriptor);
|
||||||
|
}
|
9
node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js
generated
vendored
Normal file
9
node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js
generated
vendored
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
import classApplyDescriptorSet from "./classApplyDescriptorSet.js";
|
||||||
|
import classCheckPrivateStaticAccess from "./classCheckPrivateStaticAccess.js";
|
||||||
|
import classCheckPrivateStaticFieldDescriptor from "./classCheckPrivateStaticFieldDescriptor.js";
|
||||||
|
export default function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) {
|
||||||
|
classCheckPrivateStaticAccess(receiver, classConstructor);
|
||||||
|
classCheckPrivateStaticFieldDescriptor(descriptor, "set");
|
||||||
|
classApplyDescriptorSet(receiver, descriptor, value);
|
||||||
|
return value;
|
||||||
|
}
|
5
node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodGet.js
generated
vendored
Normal file
5
node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodGet.js
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
import classCheckPrivateStaticAccess from "./classCheckPrivateStaticAccess.js";
|
||||||
|
export default function _classStaticPrivateMethodGet(receiver, classConstructor, method) {
|
||||||
|
classCheckPrivateStaticAccess(receiver, classConstructor);
|
||||||
|
return method;
|
||||||
|
}
|
3
node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodSet.js
generated
vendored
Normal file
3
node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodSet.js
generated
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
export default function _classStaticPrivateMethodSet() {
|
||||||
|
throw new TypeError("attempted to set read only static private field");
|
||||||
|
}
|
18
node_modules/@babel/runtime/helpers/esm/construct.js
generated
vendored
Normal file
18
node_modules/@babel/runtime/helpers/esm/construct.js
generated
vendored
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
import setPrototypeOf from "./setPrototypeOf.js";
|
||||||
|
import isNativeReflectConstruct from "./isNativeReflectConstruct.js";
|
||||||
|
export default function _construct(Parent, args, Class) {
|
||||||
|
if (isNativeReflectConstruct()) {
|
||||||
|
_construct = Reflect.construct;
|
||||||
|
} 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);
|
||||||
|
}
|
18
node_modules/@babel/runtime/helpers/esm/createClass.js
generated
vendored
Normal file
18
node_modules/@babel/runtime/helpers/esm/createClass.js
generated
vendored
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
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, descriptor.key, descriptor);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
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;
|
||||||
|
}
|
57
node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js
generated
vendored
Normal file
57
node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js
generated
vendored
Normal file
|
@ -0,0 +1,57 @@
|
||||||
|
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 F() {};
|
||||||
|
|
||||||
|
return {
|
||||||
|
s: F,
|
||||||
|
n: function n() {
|
||||||
|
if (i >= o.length) return {
|
||||||
|
done: true
|
||||||
|
};
|
||||||
|
return {
|
||||||
|
done: false,
|
||||||
|
value: o[i++]
|
||||||
|
};
|
||||||
|
},
|
||||||
|
e: function e(_e) {
|
||||||
|
throw _e;
|
||||||
|
},
|
||||||
|
f: F
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||||
|
}
|
||||||
|
|
||||||
|
var normalCompletion = true,
|
||||||
|
didErr = false,
|
||||||
|
err;
|
||||||
|
return {
|
||||||
|
s: function s() {
|
||||||
|
it = it.call(o);
|
||||||
|
},
|
||||||
|
n: function n() {
|
||||||
|
var step = it.next();
|
||||||
|
normalCompletion = step.done;
|
||||||
|
return step;
|
||||||
|
},
|
||||||
|
e: function e(_e2) {
|
||||||
|
didErr = true;
|
||||||
|
err = _e2;
|
||||||
|
},
|
||||||
|
f: function f() {
|
||||||
|
try {
|
||||||
|
if (!normalCompletion && it["return"] != null) it["return"]();
|
||||||
|
} finally {
|
||||||
|
if (didErr) throw err;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
21
node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js
generated
vendored
Normal file
21
node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js
generated
vendored
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
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;
|
||||||
|
return function () {
|
||||||
|
if (i >= o.length) return {
|
||||||
|
done: true
|
||||||
|
};
|
||||||
|
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.");
|
||||||
|
}
|
19
node_modules/@babel/runtime/helpers/esm/createSuper.js
generated
vendored
Normal file
19
node_modules/@babel/runtime/helpers/esm/createSuper.js
generated
vendored
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
import getPrototypeOf from "./getPrototypeOf.js";
|
||||||
|
import isNativeReflectConstruct from "./isNativeReflectConstruct.js";
|
||||||
|
import possibleConstructorReturn from "./possibleConstructorReturn.js";
|
||||||
|
export default function _createSuper(Derived) {
|
||||||
|
var hasNativeReflectConstruct = isNativeReflectConstruct();
|
||||||
|
return function _createSuperInternal() {
|
||||||
|
var Super = getPrototypeOf(Derived),
|
||||||
|
result;
|
||||||
|
|
||||||
|
if (hasNativeReflectConstruct) {
|
||||||
|
var NewTarget = getPrototypeOf(this).constructor;
|
||||||
|
result = Reflect.construct(Super, arguments, NewTarget);
|
||||||
|
} else {
|
||||||
|
result = Super.apply(this, arguments);
|
||||||
|
}
|
||||||
|
|
||||||
|
return possibleConstructorReturn(this, result);
|
||||||
|
};
|
||||||
|
}
|
396
node_modules/@babel/runtime/helpers/esm/decorate.js
generated
vendored
Normal file
396
node_modules/@babel/runtime/helpers/esm/decorate.js
generated
vendored
Normal file
|
@ -0,0 +1,396 @@
|
||||||
|
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 _getDecoratorsApi() {
|
||||||
|
_getDecoratorsApi = function _getDecoratorsApi() {
|
||||||
|
return api;
|
||||||
|
};
|
||||||
|
|
||||||
|
var api = {
|
||||||
|
elementsDefinitionOrder: [["method"], ["field"]],
|
||||||
|
initializeInstanceElements: function initializeInstanceElements(O, elements) {
|
||||||
|
["method", "field"].forEach(function (kind) {
|
||||||
|
elements.forEach(function (element) {
|
||||||
|
if (element.kind === kind && element.placement === "own") {
|
||||||
|
this.defineClassElement(O, element);
|
||||||
|
}
|
||||||
|
}, this);
|
||||||
|
}, this);
|
||||||
|
},
|
||||||
|
initializeClassElements: function initializeClassElements(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);
|
||||||
|
}
|
||||||
|
}, this);
|
||||||
|
}, this);
|
||||||
|
},
|
||||||
|
defineClassElement: function defineClassElement(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)
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
Object.defineProperty(receiver, element.key, descriptor);
|
||||||
|
},
|
||||||
|
decorateClass: function decorateClass(elements, decorators) {
|
||||||
|
var newElements = [];
|
||||||
|
var finishers = [];
|
||||||
|
var placements = {
|
||||||
|
"static": [],
|
||||||
|
prototype: [],
|
||||||
|
own: []
|
||||||
|
};
|
||||||
|
elements.forEach(function (element) {
|
||||||
|
this.addElementPlacement(element, placements);
|
||||||
|
}, this);
|
||||||
|
elements.forEach(function (element) {
|
||||||
|
if (!_hasDecorators(element)) return newElements.push(element);
|
||||||
|
var elementFinishersExtras = this.decorateElement(element, placements);
|
||||||
|
newElements.push(elementFinishersExtras.element);
|
||||||
|
newElements.push.apply(newElements, elementFinishersExtras.extras);
|
||||||
|
finishers.push.apply(finishers, elementFinishersExtras.finishers);
|
||||||
|
}, this);
|
||||||
|
|
||||||
|
if (!decorators) {
|
||||||
|
return {
|
||||||
|
elements: newElements,
|
||||||
|
finishers: finishers
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
var result = this.decorateConstructor(newElements, decorators);
|
||||||
|
finishers.push.apply(finishers, result.finishers);
|
||||||
|
result.finishers = finishers;
|
||||||
|
return result;
|
||||||
|
},
|
||||||
|
addElementPlacement: function addElementPlacement(element, placements, silent) {
|
||||||
|
var keys = placements[element.placement];
|
||||||
|
|
||||||
|
if (!silent && keys.indexOf(element.key) !== -1) {
|
||||||
|
throw new TypeError("Duplicated element (" + element.key + ")");
|
||||||
|
}
|
||||||
|
|
||||||
|
keys.push(element.key);
|
||||||
|
},
|
||||||
|
decorateElement: function decorateElement(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) {
|
||||||
|
finishers.push(elementFinisherExtras.finisher);
|
||||||
|
}
|
||||||
|
|
||||||
|
var newExtras = elementFinisherExtras.extras;
|
||||||
|
|
||||||
|
if (newExtras) {
|
||||||
|
for (var j = 0; j < newExtras.length; j++) {
|
||||||
|
this.addElementPlacement(newExtras[j], placements);
|
||||||
|
}
|
||||||
|
|
||||||
|
extras.push.apply(extras, newExtras);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
element: element,
|
||||||
|
finishers: finishers,
|
||||||
|
extras: extras
|
||||||
|
};
|
||||||
|
},
|
||||||
|
decorateConstructor: function decorateConstructor(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) {
|
||||||
|
finishers.push(elementsAndFinisher.finisher);
|
||||||
|
}
|
||||||
|
|
||||||
|
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
|
||||||
|
};
|
||||||
|
},
|
||||||
|
fromElementDescriptor: function fromElementDescriptor(element) {
|
||||||
|
var obj = {
|
||||||
|
kind: element.kind,
|
||||||
|
key: element.key,
|
||||||
|
placement: element.placement,
|
||||||
|
descriptor: element.descriptor
|
||||||
|
};
|
||||||
|
var desc = {
|
||||||
|
value: "Descriptor",
|
||||||
|
configurable: true
|
||||||
|
};
|
||||||
|
Object.defineProperty(obj, Symbol.toStringTag, desc);
|
||||||
|
if (element.kind === "field") obj.initializer = element.initializer;
|
||||||
|
return obj;
|
||||||
|
},
|
||||||
|
toElementDescriptors: function toElementDescriptors(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;
|
||||||
|
}, this);
|
||||||
|
},
|
||||||
|
toElementDescriptor: function toElementDescriptor(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)
|
||||||
|
};
|
||||||
|
|
||||||
|
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;
|
||||||
|
},
|
||||||
|
toElementFinisherExtras: function toElementFinisherExtras(elementObject) {
|
||||||
|
var element = this.toElementDescriptor(elementObject);
|
||||||
|
|
||||||
|
var finisher = _optionalCallableProperty(elementObject, "finisher");
|
||||||
|
|
||||||
|
var extras = this.toElementDescriptors(elementObject.extras);
|
||||||
|
return {
|
||||||
|
element: element,
|
||||||
|
finisher: finisher,
|
||||||
|
extras: extras
|
||||||
|
};
|
||||||
|
},
|
||||||
|
fromClassDescriptor: function fromClassDescriptor(elements) {
|
||||||
|
var obj = {
|
||||||
|
kind: "class",
|
||||||
|
elements: elements.map(this.fromElementDescriptor, this)
|
||||||
|
};
|
||||||
|
var desc = {
|
||||||
|
value: "Descriptor",
|
||||||
|
configurable: true
|
||||||
|
};
|
||||||
|
Object.defineProperty(obj, Symbol.toStringTag, desc);
|
||||||
|
return obj;
|
||||||
|
},
|
||||||
|
toClassDescriptor: function toClassDescriptor(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);
|
||||||
|
return {
|
||||||
|
elements: elements,
|
||||||
|
finisher: finisher
|
||||||
|
};
|
||||||
|
},
|
||||||
|
runClassFinishers: function runClassFinishers(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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return constructor;
|
||||||
|
},
|
||||||
|
disallowProperty: function disallowProperty(obj, name, objectType) {
|
||||||
|
if (obj[name] !== undefined) {
|
||||||
|
throw new TypeError(objectType + " can't have a ." + name + " property.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return api;
|
||||||
|
}
|
||||||
|
|
||||||
|
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
|
||||||
|
};
|
||||||
|
if (def.decorators) element.decorators = def.decorators;
|
||||||
|
if (def.kind === "field") element.initializer = def.value;
|
||||||
|
return element;
|
||||||
|
}
|
||||||
|
|
||||||
|
function _coalesceGetterSetter(element, other) {
|
||||||
|
if (element.descriptor.get !== undefined) {
|
||||||
|
other.descriptor.get = element.descriptor.get;
|
||||||
|
} else {
|
||||||
|
other.descriptor.set = element.descriptor.set;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function _coalesceClassElements(elements) {
|
||||||
|
var newElements = [];
|
||||||
|
|
||||||
|
var isSameElement = function isSameElement(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;
|
||||||
|
} 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;
|
||||||
|
}
|
||||||
|
|
||||||
|
_coalesceGetterSetter(element, other);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
newElements.push(element);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return newElements;
|
||||||
|
}
|
||||||
|
|
||||||
|
function _hasDecorators(element) {
|
||||||
|
return element.decorators && element.decorators.length;
|
||||||
|
}
|
||||||
|
|
||||||
|
function _isDataDescriptor(desc) {
|
||||||
|
return desc !== undefined && !(desc.value === undefined && desc.writable === undefined);
|
||||||
|
}
|
||||||
|
|
||||||
|
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;
|
||||||
|
}
|
14
node_modules/@babel/runtime/helpers/esm/defaults.js
generated
vendored
Normal file
14
node_modules/@babel/runtime/helpers/esm/defaults.js
generated
vendored
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return obj;
|
||||||
|
}
|
22
node_modules/@babel/runtime/helpers/esm/defineEnumerableProperties.js
generated
vendored
Normal file
22
node_modules/@babel/runtime/helpers/esm/defineEnumerableProperties.js
generated
vendored
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
export default function _defineEnumerableProperties(obj, descs) {
|
||||||
|
for (var key in descs) {
|
||||||
|
var desc = descs[key];
|
||||||
|
desc.configurable = desc.enumerable = true;
|
||||||
|
if ("value" in desc) desc.writable = true;
|
||||||
|
Object.defineProperty(obj, key, desc);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Object.getOwnPropertySymbols) {
|
||||||
|
var objectSymbols = Object.getOwnPropertySymbols(descs);
|
||||||
|
|
||||||
|
for (var i = 0; i < objectSymbols.length; i++) {
|
||||||
|
var sym = objectSymbols[i];
|
||||||
|
var desc = descs[sym];
|
||||||
|
desc.configurable = desc.enumerable = true;
|
||||||
|
if ("value" in desc) desc.writable = true;
|
||||||
|
Object.defineProperty(obj, sym, desc);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return obj;
|
||||||
|
}
|
14
node_modules/@babel/runtime/helpers/esm/defineProperty.js
generated
vendored
Normal file
14
node_modules/@babel/runtime/helpers/esm/defineProperty.js
generated
vendored
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
export default function _defineProperty(obj, key, value) {
|
||||||
|
if (key in obj) {
|
||||||
|
Object.defineProperty(obj, key, {
|
||||||
|
value: value,
|
||||||
|
enumerable: true,
|
||||||
|
configurable: true,
|
||||||
|
writable: true
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
obj[key] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
return obj;
|
||||||
|
}
|
17
node_modules/@babel/runtime/helpers/esm/extends.js
generated
vendored
Normal file
17
node_modules/@babel/runtime/helpers/esm/extends.js
generated
vendored
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
export default function _extends() {
|
||||||
|
_extends = Object.assign || 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 target;
|
||||||
|
};
|
||||||
|
|
||||||
|
return _extends.apply(this, arguments);
|
||||||
|
}
|
20
node_modules/@babel/runtime/helpers/esm/get.js
generated
vendored
Normal file
20
node_modules/@babel/runtime/helpers/esm/get.js
generated
vendored
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
import superPropBase from "./superPropBase.js";
|
||||||
|
export default function _get() {
|
||||||
|
if (typeof Reflect !== "undefined" && Reflect.get) {
|
||||||
|
_get = Reflect.get;
|
||||||
|
} 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);
|
||||||
|
}
|
6
node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
generated
vendored
Normal file
6
node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
generated
vendored
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
export default function _getPrototypeOf(o) {
|
||||||
|
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
||||||
|
return o.__proto__ || Object.getPrototypeOf(o);
|
||||||
|
};
|
||||||
|
return _getPrototypeOf(o);
|
||||||
|
}
|
3
node_modules/@babel/runtime/helpers/esm/identity.js
generated
vendored
Normal file
3
node_modules/@babel/runtime/helpers/esm/identity.js
generated
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
export default function _identity(x) {
|
||||||
|
return x;
|
||||||
|
}
|
18
node_modules/@babel/runtime/helpers/esm/inherits.js
generated
vendored
Normal file
18
node_modules/@babel/runtime/helpers/esm/inherits.js
generated
vendored
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
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, {
|
||||||
|
constructor: {
|
||||||
|
value: subClass,
|
||||||
|
writable: true,
|
||||||
|
configurable: true
|
||||||
|
}
|
||||||
|
});
|
||||||
|
Object.defineProperty(subClass, "prototype", {
|
||||||
|
writable: false
|
||||||
|
});
|
||||||
|
if (superClass) setPrototypeOf(subClass, superClass);
|
||||||
|
}
|
6
node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
generated
vendored
Normal file
6
node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
generated
vendored
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
import setPrototypeOf from "./setPrototypeOf.js";
|
||||||
|
export default function _inheritsLoose(subClass, superClass) {
|
||||||
|
subClass.prototype = Object.create(superClass.prototype);
|
||||||
|
subClass.prototype.constructor = subClass;
|
||||||
|
setPrototypeOf(subClass, superClass);
|
||||||
|
}
|
9
node_modules/@babel/runtime/helpers/esm/initializerDefineProperty.js
generated
vendored
Normal file
9
node_modules/@babel/runtime/helpers/esm/initializerDefineProperty.js
generated
vendored
Normal file
|
@ -0,0 +1,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
|
||||||
|
});
|
||||||
|
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user