decord/source/__polyfill/00xxx/module_286.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

121 lines
3.1 KiB
JavaScript

// Module ID: 286
// Function ID: 287
// Dependencies: [41, 42, 93, 95, 96, 98, 133]
// Module 286
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 _get from "_get" /* 96 */;
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 LegacySyntheticEvent {
constructor(arg0, arg1, arg2, arg3) {
self = this;
tmp = closure_0(this, LegacySyntheticEvent);
items = [, ];
items[0] = global;
items[1] = arg1;
tmp2 = c2;
obj = c2(LegacySyntheticEvent);
tmp3 = closure_1;
if (closure_4()) {
tmp5 = globalThis;
_Reflect = Reflect;
constructResult = Reflect.construct(obj, items, tmp2(self).constructor);
} else {
constructResult = obj.apply(self, items);
}
tmp6 = importAll;
tmp3Result = tmp3(self, constructResult);
tmp3Result._nativeEvent = importDefault;
tmp3Result._propagationStopped = false;
if (importAll == null) {
tmp6 = null;
}
tmp3Result._dispatchConfig = tmp6;
return tmp3Result;
}
}
_classCallCheck = LegacySyntheticEvent;
_inherits(LegacySyntheticEvent, EventDefault);
let items = [
{
key: "nativeEvent",
get() {
return this._nativeEvent;
}
},
{
key: "dispatchConfig",
get() {
return this._dispatchConfig;
}
},
{
key: "stopPropagation",
value: function stopPropagation() {
const self = this;
let fn = _get(_getPrototypeOf(_classCallCheck.prototype), "stopPropagation", this);
if (typeof fn === "function") {
fn = (arg0) => fn.apply(self, arg0);
}
fn([]);
this._propagationStopped = true;
}
},
{
key: "stopImmediatePropagation",
value: function stopImmediatePropagation() {
const self = this;
let fn = _get(_getPrototypeOf(_classCallCheck.prototype), "stopImmediatePropagation", this);
if (typeof fn === "function") {
fn = (arg0) => fn.apply(self, arg0);
}
fn([]);
this._propagationStopped = true;
}
},
{
key: "persist",
value: function persist() {
}
},
{
key: "isDefaultPrevented",
value: function isDefaultPrevented() {
return this.defaultPrevented;
}
},
{
key: "isPropagationStopped",
value: function isPropagationStopped() {
return this._propagationStopped;
}
}
];
export default _createClass(LegacySyntheticEvent, items);