"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const index = require("../platform/index.js");
const isURLSameOrigin = index.default.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin, isMSIE) => (url) => {
  url = new URL(url, index.default.origin);
  return origin.protocol === url.protocol && origin.host === url.host && (isMSIE || origin.port === url.port);
})(
  new URL(index.default.origin),
  index.default.navigator && /(msie|trident)/i.test(index.default.navigator.userAgent)
) : () => true;
exports.default = isURLSameOrigin;
