// Module ID: 962 // Function ID: 10421 // Name: _isFetchSupported // Dependencies: [798, 800, 801] // Module 962 (_isFetchSupported) const require = arg1; const dependencyMap = arg6; function _isFetchSupported() { if ("fetch" in require(798).GLOBAL_OBJ) { const _Headers = Headers; const headers = new Headers(); const _Request = Request; const request = new Request("data:,"); const _Response = Response; const response = new Response(); return true; } else { return false; } } function isNativeFunction(arg0) { let isMatch = arg0; if (arg0) { isMatch = /^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(arg0.toString()); const obj = /^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/; } return isMatch; } Object.defineProperty(arg5, Symbol.toStringTag, { value: "Module" }); arg5.isNativeFunction = isNativeFunction; arg5.supportsDOMError = function supportsDOMError() { const dOMError = new globalThis.DOMError(""); return true; }; arg5.supportsDOMException = function supportsDOMException() { const dOMException = new globalThis.DOMException(""); return true; }; arg5.supportsErrorEvent = function supportsErrorEvent() { const errorEvent = new globalThis.ErrorEvent(""); return true; }; arg5.supportsFetch = _isFetchSupported; arg5.supportsHistory = function supportsHistory() { let history = "history" in require(798).GLOBAL_OBJ; if (history) { history = require(798).GLOBAL_OBJ.history; } return history; }; arg5.supportsNativeFetch = function supportsNativeFetch() { if ("string" === typeof globalThis.EdgeRuntime) { return true; } else if (_isFetchSupported()) { if (isNativeFunction(require(798).GLOBAL_OBJ.fetch)) { return true; } else { const _document = require(798).GLOBAL_OBJ.document; if (_document) { if ("function" === typeof obj.createElement) { const element =