decord/source/383__isNativeReflectConstruct.js
2026-08-05 07:35:12 +00:00

434 lines
13 KiB
JavaScript

// Module ID: 383
// Function ID: 384
// Name: _isNativeReflectConstruct
// Dependencies: [41, 42, 93, 95, 96, 98, 367, 357, 366]
// Module 383 (_isNativeReflectConstruct)
import _classCallCheck from "_classCallCheck";
import _possibleConstructorReturn from "_possibleConstructorReturn";
import _getPrototypeOf from "_getPrototypeOf";
import _get from "_get";
import importDefaultResult from "_createClass";
const AnimatedTransform = importDefault;
function _isNativeReflectConstruct() {
try {
const _Boolean = Boolean;
const call = valueOf.call;
const _Reflect = Reflect;
const _Boolean2 = Boolean;
if (typeof call === "unknown") {
let callResult = valueOf();
} else {
callResult = call(constructResult);
}
let closure_0 = !callResult;
function _isNativeReflectConstruct() {
return closure_0;
}
return _isNativeReflectConstruct();
} catch (err) {
}
}
class AnimatedTransform {
constructor(arg0, arg1, arg2) {
self = this;
tmp = _isNativeReflectConstruct(this, AnimatedTransform);
items = [];
items[0] = importDefault;
tmp2 = _isNativeReflectConstruct;
obj = _isNativeReflectConstruct(AnimatedTransform);
tmp3 = _isNativeReflectConstruct;
if (_isNativeReflectConstruct()) {
tmp5 = globalThis;
_Reflect = Reflect;
constructResult = Reflect.construct(obj, items, tmp2(self).constructor);
} else {
constructResult = obj.apply(self, items);
}
tmp3Result = tmp3(self, constructResult);
tmp3Result._nodes = global;
tmp3Result._transforms = arg1;
return tmp3Result;
}
}
require("_inherits")(AnimatedTransform, require("_isNativeReflectConstruct"));
let obj = {
key: "__makeNative",
value: function __makeNative(arg0) {
const self = this;
const _nodes = this._nodes;
for (let num = 0; num < length; num = num + 1) {
let obj = _nodes[num];
let __makeNativeResult = obj.__makeNative(arg0);
}
let fn = callback3(callback2(self.prototype), "__makeNative", self);
if (typeof fn === "function") {
fn = (items) => fn.apply(self, items);
}
const items = [arg0];
fn(items);
}
};
let items = [
obj,
{
key: "__getValue",
value: function __getValue() {
const _transforms = this._transforms;
const f101651 = (__getValue) => __getValue.__getValue();
return _transforms.map((obj) => {
obj = {};
for (const key10006 in arg0) {
let tmp5 = key10006;
let arr = arg0[key10006];
let tmp6 = f101654;
let tmp7 = outer1_1;
if (arr instanceof f101654(outer1_1[6])) {
let tmp4 = f101654;
obj[key10006] = f101654(arr);
continue;
} else {
let _Array = Array;
if (Array.isArray(arr)) {
obj[key10006] = arr.map((arg0) => {
let tmp = arg0;
if (arg0 instanceof outer1_0(outer1_1[6])) {
tmp = callback(arg0);
}
return tmp;
});
continue;
} else {
if (typeof arr === "object") {
obj = {};
let tmp = arr;
for (const key10013 in arr) {
let tmp8 = key10013;
let tmp9 = arr[key10013];
let tmp10 = f101654;
let tmp11 = outer1_1;
let tmp3 = tmp9;
if (tmp9 instanceof f101654(outer1_1[6])) {
let tmp2 = f101654;
tmp3 = f101654(tmp9);
}
obj[key10013] = tmp3;
continue;
}
obj[key10006] = obj;
continue;
} else {
obj[key10006] = arr;
continue;
}
continue;
}
continue;
}
continue;
}
return obj;
});
}
},
{
key: "__getValueWithStaticTransforms",
value: function __getValueWithStaticTransforms(arr) {
let f101653 = [];
const _transforms = this._transforms;
f101653 = (__getValue) => {
f101653.push(__getValue.__getValue());
};
const mapped = _transforms.map((obj) => {
obj = {};
for (const key10006 in arg0) {
let tmp5 = key10006;
let arr = arg0[key10006];
let tmp6 = f101654;
let tmp7 = outer1_1;
if (arr instanceof f101654(outer1_1[6])) {
let tmp4 = f101654;
obj[key10006] = f101654(arr);
continue;
} else {
let _Array = Array;
if (Array.isArray(arr)) {
obj[key10006] = arr.map((arg0) => {
let tmp = arg0;
if (arg0 instanceof outer1_0(outer1_1[6])) {
tmp = callback(arg0);
}
return tmp;
});
continue;
} else {
if (typeof arr === "object") {
obj = {};
let tmp = arr;
for (const key10013 in arr) {
let tmp8 = key10013;
let tmp9 = arr[key10013];
let tmp10 = f101654;
let tmp11 = outer1_1;
let tmp3 = tmp9;
if (tmp9 instanceof f101654(outer1_1[6])) {
let tmp2 = f101654;
tmp3 = f101654(tmp9);
}
obj[key10013] = tmp3;
continue;
}
obj[key10006] = obj;
continue;
} else {
obj[key10006] = arr;
continue;
}
continue;
}
continue;
}
continue;
}
return obj;
});
f101653 = () => f101653.shift();
return arr.map((obj) => {
obj = {};
for (const key10006 in arg0) {
let tmp5 = key10006;
let arr = arg0[key10006];
let tmp6 = f101654;
let tmp7 = outer1_1;
if (arr instanceof f101654(outer1_1[6])) {
let tmp4 = f101654;
obj[key10006] = f101654(arr);
continue;
} else {
let _Array = Array;
if (Array.isArray(arr)) {
obj[key10006] = arr.map((arg0) => {
let tmp = arg0;
if (arg0 instanceof outer1_0(outer1_1[6])) {
tmp = callback(arg0);
}
return tmp;
});
continue;
} else {
if (typeof arr === "object") {
obj = {};
let tmp = arr;
for (const key10013 in arr) {
let tmp8 = key10013;
let tmp9 = arr[key10013];
let tmp10 = f101654;
let tmp11 = outer1_1;
let tmp3 = tmp9;
if (tmp9 instanceof f101654(outer1_1[6])) {
let tmp2 = f101654;
tmp3 = f101654(tmp9);
}
obj[key10013] = tmp3;
continue;
}
obj[key10006] = obj;
continue;
} else {
obj[key10006] = arr;
continue;
}
continue;
}
continue;
}
continue;
}
return obj;
});
}
},
{
key: "__getAnimatedValue",
value: function __getAnimatedValue() {
const _transforms = this._transforms;
const f101654 = (__getAnimatedValue) => __getAnimatedValue.__getAnimatedValue();
return _transforms.map((obj) => {
obj = {};
for (const key10006 in arg0) {
let tmp5 = key10006;
let arr = arg0[key10006];
let tmp6 = f101654;
let tmp7 = outer1_1;
if (arr instanceof f101654(outer1_1[6])) {
let tmp4 = f101654;
obj[key10006] = f101654(arr);
continue;
} else {
let _Array = Array;
if (Array.isArray(arr)) {
obj[key10006] = arr.map((arg0) => {
let tmp = arg0;
if (arg0 instanceof outer1_0(outer1_1[6])) {
tmp = callback(arg0);
}
return tmp;
});
continue;
} else {
if (typeof arr === "object") {
obj = {};
let tmp = arr;
for (const key10013 in arr) {
let tmp8 = key10013;
let tmp9 = arr[key10013];
let tmp10 = f101654;
let tmp11 = outer1_1;
let tmp3 = tmp9;
if (tmp9 instanceof f101654(outer1_1[6])) {
let tmp2 = f101654;
tmp3 = f101654(tmp9);
}
obj[key10013] = tmp3;
continue;
}
obj[key10006] = obj;
continue;
} else {
obj[key10006] = arr;
continue;
}
continue;
}
continue;
}
continue;
}
return obj;
});
}
},
{
key: "__attach",
value: function __attach() {
const self = this;
const _nodes = this._nodes;
for (let num = 0; num < length; num = num + 1) {
let obj = _nodes[num];
let __addChildResult = obj.__addChild(self);
}
let fn = callback3(callback2(self.prototype), "__attach", self);
if (typeof fn === "function") {
fn = (items) => fn.apply(self, items);
}
fn([]);
}
},
{
key: "__detach",
value: function __detach() {
const self = this;
const _nodes = this._nodes;
for (let num = 0; num < length; num = num + 1) {
let obj = _nodes[num];
let __removeChildResult = obj.__removeChild(self);
}
let fn = callback3(callback2(self.prototype), "__detach", self);
if (typeof fn === "function") {
fn = (items) => fn.apply(self, items);
}
fn([]);
}
},
{
key: "__getNativeConfig",
value: function __getNativeConfig() {
const self = this;
const items = [];
const _transforms = this._transforms;
for (let num = 0; num < length; num = num + 1) {
let tmp = _transforms[num];
let tmp2 = tmp;
let tmp3 = num;
for (const key10012 in tmp) {
let tmp6 = key10012;
let obj5 = tmp[key10012];
let tmp7 = AnimatedTransform;
let tmp8 = dependencyMap;
let push = items.push;
if (obj5 instanceof AnimatedTransform(367)) {
let obj = { type: "animated", property: null, nodeTag: null };
obj[1] = key10012;
obj[2] = obj5.__getNativeTag();
let arr = push(obj);
continue;
} else {
obj = { type: "static", property: null, value: null };
obj[1] = key10012;
let tmp7Result = tmp7(357);
obj[2] = tmp7Result.transformDataType(obj5);
arr = push(obj);
continue;
}
continue;
}
}
obj = { type: "transform", transforms: items, debugID: self.__getDebugID() };
return obj;
}
}
];
obj = {
key: "from",
value: function from(_transforms) {
let construct = globalThis;
let items = _transforms;
if (!Array.isArray(_transforms)) {
items = [];
}
const items1 = [];
for (let num = 0; num < length; num = num + 1) {
let tmp = items[num];
let tmp2 = tmp;
let tmp3 = num;
for (const key10017 in tmp) {
let tmp8 = key10017;
let tmp9 = tmp[key10017];
let tmp10 = AnimatedTransform;
let tmp11 = dependencyMap;
if (!(tmp9 instanceof AnimatedTransform(367))) {
continue;
} else {
let arr = items1.push(tmp9);
continue;
}
continue;
}
}
if (0 === items1.length) {
return null;
} else {
let obj = Object.create(AnimatedTransform.prototype);
callback(obj, AnimatedTransform);
const items2 = [undefined];
let constructor = callback2;
obj = callback2(AnimatedTransform);
if (_isNativeReflectConstruct()) {
const _Reflect = construct.Reflect;
construct = _Reflect.construct;
constructor = constructor(obj).constructor;
let constructResult = construct(obj, items2, constructor);
} else {
constructResult = obj.apply(obj, items2);
}
const tmp16Result = _possibleConstructorReturn(obj, constructResult);
tmp16Result._nodes = items1;
tmp16Result._transforms = _transforms;
const tmp16 = _possibleConstructorReturn;
}
}
};
let items1 = [obj];
export default importDefaultResult(AnimatedTransform, items, items1);