// Module ID: 13785 // Function ID: 13786 // Name: defineProperty // Dependencies: [13734, 13786, 13783, 13743, 13766] // Module 13785 (defineProperty) import getOwnPropertyDescriptor2 from "getOwnPropertyDescriptor" /* 13734 */; import text from "text" /* 13743 */; import _mod13766 from "module_13766" /* 13766 */; import all from "all" /* 13783 */; import getOwnPropertyDescriptor3 from "getOwnPropertyDescriptor" /* 13786 */; const enumerable = "enumerable"; const configurable = "configurable"; const writable = "writable"; if (getOwnPropertyDescriptor2) { if (getOwnPropertyDescriptor3) { defineProperty = function defineProperty(fn, arg1, value) { all(fn); const tmp2 = text(arg1); all(value); let tmp4 = value; if (typeof fn === "function") { tmp4 = value; if ("prototype" === tmp2) { tmp4 = value; if ("value" in value) { tmp4 = value; if (writable in value) { tmp4 = value; if (!value[tmp5]) { const tmp7 = getOwnPropertyDescriptor(fn, tmp2); let tmp8 = tmp7; if (tmp7) { tmp8 = tmp7[tmp5]; } tmp4 = value; if (tmp8) { fn[tmp2] = value.value; const obj = { configurable: null, enumerable: null, writable: false }; obj[0] = configurable in value ? value[configurable] : tmp7[configurable]; obj[1] = enumerable in value ? value[enumerable] : tmp7[enumerable]; } } } } } } return defineProperty(fn, tmp2, tmp4); }; } let defineProperty2 = defineProperty; } else { defineProperty2 = function defineProperty(arg0, arg1, value) { all(arg0); const tmp2 = text(arg1); all(value); if (!_mod13766) { if (!("get" in value)) { if (!("set" in value)) { if ("value" in value) { arg0[tmp2] = value.value; } return arg0; } } const tmp8 = new TypeError("Accessors not supported"); throw tmp8; } else { try { return defineProperty(arg0, tmp2, value); } catch (err) { } } }; } export const f = defineProperty2;