decord/source/__polyfill/00xxx/module_220.js
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

98 lines
2.2 KiB
JavaScript

// Module ID: 220
// Function ID: 221
// Dependencies: [41, 42, 93, 95, 98, 133]
// Module 220
import EventDefault from "Event" /* 133 */;
import _classCallCheck_mod from "_classCallCheck" /* 41 */;
import _createClass from "_createClass" /* 42 */;
import _possibleConstructorReturn from "_possibleConstructorReturn" /* 93 */;
import _getPrototypeOf from "_getPrototypeOf" /* 95 */;
import _inherits from "_inherits" /* 98 */;
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);
}
closure_0 = !callResult;
_isNativeReflectConstruct = function _isNativeReflectConstruct() {
return closure_0;
};
return _isNativeReflectConstruct();
} catch (err) {
}
}
let _classCallCheck = _classCallCheck_mod;
class MessageEvent {
constructor(arg0, arg1) {
self = this;
tmp = closure_0(this, MessageEvent);
items = [, ];
items[0] = global;
items[1] = arg1;
tmp2 = c2;
obj = c2(MessageEvent);
tmp3 = closure_1;
if (closure_3()) {
tmp5 = globalThis;
_Reflect = Reflect;
constructResult = Reflect.construct(obj, items, tmp2(self).constructor);
} else {
constructResult = obj.apply(self, items);
}
tmp3Result = tmp3(self, constructResult);
data = undefined;
if (arg1 != null) {
data = arg1.data;
}
tmp3Result._data = data;
str = undefined;
if (arg1 != null) {
str = arg1.origin;
}
if (str == null) {
str = "";
}
tmp3Result._origin = String(str);
str2 = undefined;
if (arg1 != null) {
str2 = arg1.lastEventId;
}
if (str2 == null) {
str2 = "";
}
tmp3Result._lastEventId = String(str2);
return tmp3Result;
}
}
_classCallCheck = MessageEvent;
_inherits(MessageEvent, EventDefault);
let items = [
{
key: "data",
get() {
return this._data;
}
},
{
key: "origin",
get() {
return this._origin;
}
},
{
key: "lastEventId",
get() {
return this._lastEventId;
}
}
];
export default _createClass(MessageEvent, items);