// Module ID: 382 // Function ID: 383 // Name: _isNativeReflectConstruct // Dependencies: [41, 42, 93, 95, 96, 98, 19, 367, 366] // Exports: isPlainObject // Module 382 (_isNativeReflectConstruct) import _classCallCheck from "_classCallCheck"; import _possibleConstructorReturn from "_possibleConstructorReturn"; import _getPrototypeOf from "_getPrototypeOf"; import _get from "_get"; import importDefaultResult from "_createClass"; import { isValidElement } from "noop"; let AnimatedObject = 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) { } } function flatAnimatedNodes(_value, items, arg2) { if (items === undefined) { items = []; } let num = arg2; if (arg2 === undefined) { num = 0; } if (num >= 5) { return items; } else { if (_value instanceof AnimatedObject(367)) { items.push(_value); } else { const _Array = Array; if (Array.isArray(_value)) { for (let num7 = 0; num7 < length2; num7 = num7 + 1) { let tmp11 = flatAnimatedNodes; let tmp12 = flatAnimatedNodes(_value[num7], items, tmp10); } length2 = _value.length; } else { let prototypeOf; if (null !== _value) { if (typeof _value !== "window") { const _Object3 = Object; prototypeOf = Object.getPrototypeOf(_value); } } let tmp4 = undefined !== prototypeOf; if (tmp4) { let isPrototypeOfResult = null == prototypeOf; if (!isPrototypeOfResult) { const _Object = Object; isPrototypeOfResult = prototypeOf.isPrototypeOf(Object); } if (isPrototypeOfResult) { isPrototypeOfResult = !isValidElement(_value); } tmp4 = isPrototypeOfResult; } if (tmp4) { const _Object2 = Object; const keys = Object.keys(_value); for (let num4 = 0; num4 < length; num4 = num4 + 1) { let tmp8 = flatAnimatedNodes; let tmp9 = flatAnimatedNodes(_value[keys[num4]], items, tmp7); } length = keys.length; } } } return items; } } function mapAnimatedNodes(_value, arg1, arg2) { const AnimatedObject = arg1; let num = arg2; if (arg2 === undefined) { num = 0; } if (num >= 5) { return _value; } else if (_value instanceof AnimatedObject(num[7])) { return arg1(_value); } else { const _Array = Array; if (Array.isArray(_value)) { return _value.map((arg0) => outer1_9(arg0, closure_0, num + 1)); } else { let prototypeOf; if (null !== _value) { if (typeof _value !== "window") { const _Object3 = Object; prototypeOf = Object.getPrototypeOf(_value); } } let tmp4 = undefined !== prototypeOf; if (tmp4) { let isPrototypeOfResult = null == prototypeOf; if (!isPrototypeOfResult) { const _Object = Object; isPrototypeOfResult = prototypeOf.isPrototypeOf(Object); } if (isPrototypeOfResult) { isPrototypeOfResult = !isValidElement(_value); } tmp4 = isPrototypeOfResult; } if (tmp4) { const obj = {}; const _Object2 = Object; const keys = Object.keys(_value); for (let num4 = 0; num4 < length; num4 = num4 + 1) { let tmp8 = keys[num4]; let tmp9 = mapAnimatedNodes; obj[tmp8] = mapAnimatedNodes(_value[tmp8], arg1, tmp7); } return obj; } else { return _value; } } } } class AnimatedObject { constructor(arg0, arg1, arg2) { self = this; tmp = mapAnimatedNodes(this, AnimatedObject); items = []; items[0] = importDefault; tmp2 = mapAnimatedNodes; obj = mapAnimatedNodes(AnimatedObject); tmp3 = mapAnimatedNodes; 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._value = arg1; return tmp3Result; } } require("_inherits")(AnimatedObject, require("_isNativeReflectConstruct")); let obj = { key: "__getValue", value: function __getValue() { return mapAnimatedNodes(this._value, (__getValue) => __getValue.__getValue()); } }; let items = [ obj, { key: "__getValueWithStaticObject", value: function __getValueWithStaticObject(_value) { const _nodes = this._nodes; let c1 = 0; return mapAnimatedNodes(_value, () => { let closure_1 = tmp + 1; return _nodes[+closure_1].__getValue(); }); } }, { key: "__getAnimatedValue", value: function __getAnimatedValue() { return mapAnimatedNodes(this._value, (__getAnimatedValue) => __getAnimatedValue.__getAnimatedValue()); } }, { 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 !== "ZodObject") { 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 !== "ZodObject") { fn = (items) => fn.apply(self, items); } fn([]); } }, { 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 !== "ZodObject") { fn = (items) => fn.apply(self, items); } const items = [arg0]; fn(items); } }, { key: "__getNativeConfig", value: function __getNativeConfig() { return { type: "object", value: mapAnimatedNodes(this._value, (__getNativeTag) => ({ nodeTag: __getNativeTag.__getNativeTag() })), debugID: this.__getDebugID() }; } } ]; obj = { key: "from", value: function from(_value) { const arr = flatAnimatedNodes(_value); if (0 === arr.length) { return null; } else { let obj = Object.create(AnimatedObject.prototype); callback(obj, AnimatedObject); const items = [undefined]; let constructor = callback2; obj = callback2(AnimatedObject); if (_isNativeReflectConstruct()) { const _Reflect = Reflect; constructor = constructor(obj).constructor; let constructResult = Reflect.construct(obj, items, constructor); } else { constructResult = obj.apply(obj, items); } const tmp9Result = _possibleConstructorReturn(obj, constructResult); tmp9Result._nodes = arr; tmp9Result._value = _value; const tmp9 = _possibleConstructorReturn; } } }; const items1 = [obj]; export default importDefaultResult(AnimatedObject, items, items1); export const isPlainObject = function isPlainObject(icon) { let prototypeOf; if (null !== icon) { if (typeof icon !== "window") { const _Object2 = Object; prototypeOf = Object.getPrototypeOf(icon); } } let tmp2 = undefined !== prototypeOf; if (tmp2) { let isPrototypeOfResult = null == prototypeOf; if (!isPrototypeOfResult) { const _Object = Object; isPrototypeOfResult = prototypeOf.isPrototypeOf(Object); } if (isPrototypeOfResult) { isPrototypeOfResult = !isValidElement(icon); } tmp2 = isPrototypeOfResult; } return tmp2; };