decord/source/369__isNativeReflectConstruct.js

183 lines
5 KiB
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 369
2026-07-29 08:29:29 +00:00
// Function ID: 370
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
2026-07-29 08:29:29 +00:00
// Dependencies: [41, 42, 93, 95, 96, 98, 367, 356, 363, 366]
2026-07-20 16:05:17 +00:00
// Module 369 (_isNativeReflectConstruct)
2026-07-29 08:29:29 +00:00
import _classCallCheck from "_classCallCheck";
2026-07-23 10:11:24 +00:00
import _possibleConstructorReturn from "_possibleConstructorReturn";
import _getPrototypeOf from "_getPrototypeOf";
import _get from "_get";
2026-07-29 08:29:29 +00:00
import importDefaultResult from "_createClass";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
const AnimatedDivision = importDefault;
2026-07-20 16:05:17 +00:00
function _isNativeReflectConstruct() {
2026-07-29 08:29:29 +00:00
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;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return _isNativeReflectConstruct();
} catch (err) {
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
class AnimatedDivision {
constructor(arg0, arg1, arg2) {
self = this;
tmp = _isNativeReflectConstruct(this, AnimatedDivision);
items = [];
items[0] = importDefault;
tmp2 = __esModule;
obj = __esModule(AnimatedDivision);
tmp3 = __esModule;
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._warnedAboutDivideByZero = false;
tmp7 = 0 === arg1;
if (!tmp7) {
tmp8 = AnimatedDivision;
tmp9 = closure_1;
tmp10 = arg1 instanceof require("_assertNativeAnimatedModule") && 0 === arg1.__getValue();
tmp7 = tmp10;
}
if (tmp7) {
tmp11 = globalThis;
_console = console;
str = "Detected potential division by zero in AnimatedDivision";
errorResult = console.error("Detected potential division by zero in AnimatedDivision");
}
tmp13 = global;
2026-08-04 21:03:28 +00:00
if (typeof global === "number") {
2026-07-29 08:29:29 +00:00
tmp15 = AnimatedDivision;
tmp16 = closure_1;
tmp17 = new.target;
tmp18 = new.target;
tmp19 = global;
tmp13 = new require("_isNativeReflectConstruct")(global);
}
tmp3Result._a = tmp13;
tmp14 = arg1;
2026-08-04 21:03:28 +00:00
if (typeof arg1 === "number") {
2026-07-29 08:29:29 +00:00
tmp20 = AnimatedDivision;
tmp21 = closure_1;
tmp22 = new.target;
tmp23 = new.target;
tmp24 = arg1;
tmp14 = new require("_isNativeReflectConstruct")(arg1);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
tmp3Result._b = tmp14;
return tmp3Result;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
}
require("_inherits")(AnimatedDivision, require("_isNativeReflectConstruct"));
let items = [
{
2026-07-20 16:05:17 +00:00
key: "__makeNative",
value: function __makeNative(arg0) {
2026-07-29 08:29:29 +00:00
const _a = this._a;
_a.__makeNative(arg0);
const _b = this._b;
_b.__makeNative(arg0);
const self = this;
let fn;
fn = callback3(callback2(self.prototype), "__makeNative", this);
2026-08-04 21:03:28 +00:00
if (typeof fn === "function") {
2026-07-29 08:29:29 +00:00
fn = (items) => fn.apply(self, items);
}
2026-07-20 16:05:17 +00:00
const items = [arg0];
2026-07-29 08:29:29 +00:00
fn(items);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
},
{
2026-07-20 16:05:17 +00:00
key: "__getValue",
value: function __getValue() {
2026-07-29 08:29:29 +00:00
let _a;
let _b;
const self = this;
({ _a, _b } = this);
const __getValueResult1 = _b.__getValue();
if (0 === __getValueResult1) {
let num = 0;
if (!self._warnedAboutDivideByZero) {
const _console = console;
console.error("Detected division by zero in AnimatedDivision");
self._warnedAboutDivideByZero = true;
num = 0;
}
} else {
self._warnedAboutDivideByZero = false;
num = __getValueResult / __getValueResult1;
}
return num;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
},
{
key: "interpolate",
value: function interpolate(arg0) {
return new AnimatedDivision(363)(this, arg0);
}
},
{
2026-07-20 16:05:17 +00:00
key: "__attach",
value: function __attach() {
2026-07-29 08:29:29 +00:00
const _a = this._a;
_a.__addChild(this);
const _b = this._b;
_b.__addChild(this);
2026-07-20 16:05:17 +00:00
const self = this;
2026-07-29 08:29:29 +00:00
let fn;
fn = callback3(callback2(self.prototype), "__attach", this);
2026-08-04 21:03:28 +00:00
if (typeof fn === "function") {
2026-07-29 08:29:29 +00:00
fn = (items) => fn.apply(self, items);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
fn([]);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
},
{
2026-07-20 16:05:17 +00:00
key: "__detach",
value: function __detach() {
2026-07-29 08:29:29 +00:00
const _a = this._a;
_a.__removeChild(this);
const _b = this._b;
_b.__removeChild(this);
const self = this;
let fn;
fn = callback3(callback2(self.prototype), "__detach", this);
2026-08-04 21:03:28 +00:00
if (typeof fn === "function") {
2026-07-29 08:29:29 +00:00
fn = (items) => fn.apply(self, items);
}
fn([]);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
},
{
2026-07-20 16:05:17 +00:00
key: "__getNativeConfig",
value: function __getNativeConfig() {
2026-07-29 08:29:29 +00:00
const obj = { type: "division", input: null, debugID: null };
const _a = this._a;
const items = [_a.__getNativeTag(), ];
const _b = this._b;
items[1] = _b.__getNativeTag();
obj[1] = items;
obj[2] = this.__getDebugID();
2026-07-20 16:05:17 +00:00
return obj;
}
2026-07-29 08:29:29 +00:00
}
];
export default importDefaultResult(AnimatedDivision, items);