decord/source/__polyfill/12xxx/module_12933.js
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

145 lines
4.1 KiB
JavaScript

// Module ID: 12933
// Function ID: 12934
// Dependencies: []
// Exports: isDOMError, isDOMException, isElement, isError, isErrorEvent, isEvent, isParameterizedString, isPlainObject, isPrimitive, isRegExp, isString, isSyntheticEvent, isThenable, isVueViewModel
// Module 12933
function isInstanceOf(arg0, arg1) {
try {
return arg0 instanceof arg1;
} catch (err) {
return false;
}
}
export const isDOMError = function isDOMError(arg0) {
const call = toString.call;
return (typeof call === "unknown" ? toString() : call(arg0)) === "[object " + "DOMError" + "]";
};
export const isDOMException = function isDOMException(arg0) {
const call = toString.call;
return (typeof call === "unknown" ? toString() : call(arg0)) === "[object " + "DOMException" + "]";
};
export const isElement = function isElement(arg0) {
let tmp = typeof globalThis.Element !== "undefined";
if (typeof globalThis.Element !== "undefined") {
tmp = isInstanceOf(arg0, globalThis.Element);
}
return tmp;
};
export const isError = function isError(arg0) {
const call = toString.call;
const tmp2 = typeof call === "unknown" ? toString() : call(arg0);
if ("[object Error]" !== tmp2) {
if ("[object Exception]" !== tmp2) {
if ("[object DOMException]" !== tmp2) {
if ("[object WebAssembly.Exception]" !== tmp2) {
const _Error = Error;
return isInstanceOf(arg0, Error);
}
}
}
}
return true;
};
export const isErrorEvent = function isErrorEvent(arg0) {
const call = toString.call;
return (typeof call === "unknown" ? toString() : call(arg0)) === "[object " + "ErrorEvent" + "]";
};
export const isEvent = function isEvent(arg0) {
let tmp = typeof Event !== "undefined";
if (typeof Event !== "undefined") {
const _Event = Event;
tmp = isInstanceOf(arg0, Event);
}
return tmp;
};
export { isInstanceOf };
export const isParameterizedString = function isParameterizedString(obj) {
let tmp = typeof obj === "object";
if (typeof obj === "object") {
tmp = null !== obj;
}
if (tmp) {
tmp = "__sentry_template_string__" in obj;
}
if (tmp) {
tmp = "__sentry_template_values__" in obj;
}
return tmp;
};
export const isPlainObject = function isPlainObject(arg0) {
const call = toString.call;
return (typeof call === "unknown" ? toString() : call(arg0)) === "[object " + "Object" + "]";
};
export const isPrimitive = function isPrimitive(obj) {
let tmp = null === obj;
if (!tmp) {
let tmp2 = typeof obj === "object";
if (typeof obj === "object") {
tmp2 = null !== obj;
}
if (tmp2) {
tmp2 = "__sentry_template_string__" in obj;
}
if (tmp2) {
tmp2 = "__sentry_template_values__" in obj;
}
tmp = tmp2;
}
if (!tmp) {
let tmp3 = typeof obj !== "object";
if (typeof obj !== "object") {
tmp3 = typeof obj !== "function";
}
tmp = tmp3;
}
return tmp;
};
export const isRegExp = function isRegExp(arg0) {
const call = toString.call;
return (typeof call === "unknown" ? toString() : call(arg0)) === "[object " + "RegExp" + "]";
};
export const isString = function isString(arg0) {
const call = toString.call;
return (typeof call === "unknown" ? toString() : call(arg0)) === "[object " + "String" + "]";
};
export const isSyntheticEvent = function isSyntheticEvent(arg0) {
const call = toString.call;
let tmp3 = (typeof call === "unknown" ? toString() : call(arg0)) === "[object " + "Object" + "]";
if (tmp3) {
tmp3 = "nativeEvent" in arg0;
}
if (tmp3) {
tmp3 = "preventDefault" in arg0;
}
if (tmp3) {
tmp3 = "stopPropagation" in arg0;
}
return tmp3;
};
export const isThenable = function isThenable(arg0) {
let then = arg0;
if (arg0) {
then = arg0.then;
}
if (then) {
then = typeof arg0.then === "function";
}
return Boolean(then);
};
export const isVueViewModel = function isVueViewModel(__isVue) {
let tmp = typeof __isVue !== "object";
if (typeof __isVue === "object") {
tmp = null === __isVue;
}
if (!tmp) {
__isVue = __isVue.__isVue;
let tmp2 = !__isVue;
if (!__isVue) {
tmp2 = !__isVue._isVue;
}
tmp = tmp2;
}
return !tmp;
};