108 lines
2.8 KiB
JavaScript
108 lines
2.8 KiB
JavaScript
// Module ID: 1288
|
|
// Function ID: 1289
|
|
// Name: _isNativeReflectConstruct
|
|
// Dependencies: [41, 42, 93, 95, 98, 1278]
|
|
// Exports: formatToPlainString
|
|
|
|
// Module 1288 (_isNativeReflectConstruct)
|
|
import _classCallCheck from "_classCallCheck";
|
|
import _createClass from "_createClass";
|
|
import "_possibleConstructorReturn";
|
|
import _getPrototypeOf from "_getPrototypeOf";
|
|
import _inherits from "_inherits";
|
|
|
|
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 formatToPlainString(k2UNz_, maxSettingsForPreset) {
|
|
let first = k2UNz_;
|
|
if (typeof k2UNz_ !== "string") {
|
|
const self = this;
|
|
first = this.bindFormatValues(closure_4, k2UNz_, maxSettingsForPreset)[0];
|
|
}
|
|
return first;
|
|
}
|
|
class StringBuilder {
|
|
constructor() {
|
|
self = this;
|
|
tmp = StringBuilder(this, StringBuilder);
|
|
tmp2 = outer1_2;
|
|
obj = outer1_2(StringBuilder);
|
|
tmp3 = outer1_1;
|
|
if (_isNativeReflectConstruct()) {
|
|
tmp7 = globalThis;
|
|
_Reflect = Reflect;
|
|
tmp8 = arguments;
|
|
constructResult = Reflect.construct(obj, arguments, tmp2(self).constructor);
|
|
} else {
|
|
tmp4 = arguments;
|
|
tmp5 = arguments;
|
|
constructResult = obj(...arguments);
|
|
}
|
|
tmp3Result = tmp3(self, constructResult);
|
|
tmp3Result.result = "";
|
|
return tmp3Result;
|
|
}
|
|
}
|
|
_classCallCheck = StringBuilder;
|
|
_inherits(StringBuilder, require("_isNativeReflectConstruct").FormatBuilder);
|
|
let items = [
|
|
{
|
|
key: "pushRichTextTag",
|
|
value: function pushRichTextTag(arg0, arg1, arg2) {
|
|
const self = this;
|
|
while (tmp !== undefined) {
|
|
self.result = self.result + tmp2;
|
|
continue;
|
|
}
|
|
}
|
|
},
|
|
{
|
|
key: "pushLiteralText",
|
|
value: function pushLiteralText(arg0) {
|
|
this.result = this.result + arg0;
|
|
}
|
|
},
|
|
{
|
|
key: "pushObject",
|
|
value: function pushObject(arg0) {
|
|
let tmp = null != arg0;
|
|
if (tmp) {
|
|
tmp = "toString" in arg0;
|
|
}
|
|
if (tmp) {
|
|
const self = this;
|
|
this.result = this.result + arg0.toString();
|
|
}
|
|
}
|
|
},
|
|
{
|
|
key: "finish",
|
|
value: function finish() {
|
|
const items = [this.result];
|
|
return items;
|
|
}
|
|
}
|
|
];
|
|
const _moduleResult = _createClass(StringBuilder, items);
|
|
let c4 = _moduleResult;
|
|
|
|
export { formatToPlainString };
|
|
export const StringBuilder = _moduleResult;
|
|
export const stringFormatter = { format: formatToPlainString, builder: _moduleResult };
|