decord/source/3515__defineProperties.js

68 lines
1.8 KiB
JavaScript
Raw Normal View History

2026-07-23 10:11:24 +00:00
// Module ID: 3515
2026-07-24 07:16:23 +00:00
// Function ID: 27032
2026-07-20 16:05:17 +00:00
// Name: _defineProperties
2026-07-23 10:11:24 +00:00
// Dependencies: [3512]
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
// Module 3515 (_defineProperties)
const require = arg1;
const dependencyMap = arg6;
2026-07-20 16:05:17 +00:00
function _defineProperties(arg0, arg1) {
for (let num = 0; num < arg1.length; num = num + 1) {
let tmp = arg1[num];
tmp.enumerable = tmp.enumerable || false;
tmp.configurable = true;
if ("value" in tmp) {
tmp.writable = true;
}
let _Object = Object;
let definePropertyResult = Object.defineProperty(arg0, tmp.key, tmp);
}
}
2026-07-23 10:11:24 +00:00
arg5.Parser = (() => {
2026-07-20 16:05:17 +00:00
class Parser {
constructor() {
if (this instanceof Parser) {
return;
} else {
tmp = globalThis;
_TypeError = TypeError;
prototype = TypeError.prototype;
tmp2 = new.target;
str = "Cannot call a class as a function";
tmp3 = new.target;
typeError = new TypeError("Cannot call a class as a function");
tmp5 = typeError;
throw typeError;
}
}
}
let obj = {
key: "run",
value: function run(arg0, arg1, arg2, arg3) {
const self = this;
const iter = this.parse(arg0, arg1, arg2, arg3);
let tmp = null;
if (iter) {
const obj = {};
2026-07-23 10:11:24 +00:00
const ValueSetter = Parser(outer1_1[0]).ValueSetter;
2026-07-20 16:05:17 +00:00
const prototype = ValueSetter.prototype;
const valueSetter = new ValueSetter(iter.value, self.validate, self.set, self.priority, self.subPriority);
obj.setter = valueSetter;
obj.rest = iter.rest;
tmp = obj;
}
return tmp;
}
};
const items = [obj, ];
obj = {
key: "validate",
value: function validate(arg0, arg1, arg2) {
return true;
}
};
items[1] = obj;
_defineProperties(Parser.prototype, items);
return Parser;
2026-07-23 10:11:24 +00:00
})();