decord/source/module_13397.js

120 lines
3.1 KiB
JavaScript
Raw Normal View History

2026-07-28 08:39:19 +00:00
// Module ID: 13397
// Function ID: 102404
// Dependencies: [13398, 13346, 13342, 13343, 13362, 13399, 13400, 13365]
2026-07-27 11:26:19 +00:00
2026-07-28 08:39:19 +00:00
// Module 13397
2026-07-27 11:26:19 +00:00
import __core_js_shared__ from "__core-js_shared__";
import getOwnPropertyDescriptor from "getOwnPropertyDescriptor";
let closure_5 = require("call")("".slice);
let closure_6 = require("call")("".replace);
let closure_7 = require("call")([].join);
if (getOwnPropertyDescriptor) {
2026-07-28 08:39:19 +00:00
getOwnPropertyDescriptor = !require("module_13343")(() => 8 !== defineProperty(() => {
2026-07-27 11:26:19 +00:00
}, "length", { value: 8 }).length);
}
let closure_9 = String(String).split("String");
const fn = (name, toString) => {
let text = toString;
if ("Symbol(" === callback(String(toString), 0, 7)) {
text = `${"[" + closure_6(String(tmp), /^Symbol\(([^)]*)\).*$/, "$1")}]`;
}
let getter = arg2;
if (arg2) {
getter = arg2.getter;
}
if (getter) {
text = `get ${tmp}`;
}
let setter = arg2;
if (arg2) {
setter = arg2.setter;
}
if (setter) {
text = `set ${tmp}`;
}
2026-07-28 08:39:19 +00:00
let tmp9 = !require(13362) /* call */(name, "name");
2026-07-27 11:26:19 +00:00
if (!tmp9) {
2026-07-28 08:39:19 +00:00
let CONFIGURABLE = require(13399).CONFIGURABLE;
2026-07-27 11:26:19 +00:00
if (CONFIGURABLE) {
CONFIGURABLE = name.name !== text;
}
tmp9 = CONFIGURABLE;
}
if (tmp9) {
2026-07-28 08:39:19 +00:00
if (require(13342) /* getOwnPropertyDescriptor */) {
2026-07-27 11:26:19 +00:00
let obj = { value: text, configurable: true };
defineProperty(name, "name", obj);
} else {
name.name = text;
}
}
let tmp22 = getOwnPropertyDescriptor;
if (getOwnPropertyDescriptor) {
tmp22 = arg2;
}
if (tmp22) {
2026-07-28 08:39:19 +00:00
tmp22 = require(13362) /* call */(arg2, "arity");
2026-07-27 11:26:19 +00:00
}
if (tmp22) {
tmp22 = name.length !== arg2.arity;
}
if (tmp22) {
obj = { value: arg2.arity };
defineProperty(name, "length", obj);
}
if (arg2) {
2026-07-28 08:39:19 +00:00
if (require(13362) /* call */(arg2, "constructor")) {
2026-07-27 11:26:19 +00:00
if (arg2.constructor) {
2026-07-28 08:39:19 +00:00
if (require(13342) /* getOwnPropertyDescriptor */) {
2026-07-27 11:26:19 +00:00
obj = { writable: false };
defineProperty(name, "prototype", obj);
}
}
while (true) {
let tmp41 = require;
let tmp42 = dependencyMap;
let num4 = 6;
2026-07-28 08:39:19 +00:00
let obj4 = require(13400) /* state */;
2026-07-27 11:26:19 +00:00
let tmp43 = name;
let enforceResult = obj4.enforce(name);
let tmp45 = enforceResult;
let str10 = "source";
2026-07-28 08:39:19 +00:00
if (require(13362) /* call */(enforceResult, "source")) {
2026-07-27 11:26:19 +00:00
break;
} else {
let tmp48 = text;
let str11 = "";
let str12 = "string";
let tmp46 = closure_7;
let tmp47 = closure_9;
if ("string" === typeof text) {
str11 = text;
}
enforceResult.source = tmp46(tmp47, str11);
break;
}
return name;
}
}
}
if (name.prototype) {
name.prototype = undefined;
}
};
Function.prototype.toString = fn(function toString() {
const self = this;
2026-07-28 08:39:19 +00:00
let source = require(13365) /* all */(this);
2026-07-27 11:26:19 +00:00
if (source) {
2026-07-28 08:39:19 +00:00
source = require(13400) /* state */.get(self).source;
const obj = require(13400) /* state */;
2026-07-27 11:26:19 +00:00
}
if (!source) {
source = __core_js_shared__(self);
}
return source;
}, "toString");
export default fn;