import { c as e } from "./common-64096f9e.js";
var t, o = { exports: {} };
t = o, function() {
  function o2(e2, t2) {
    return void 0 === t2 ? t2 = { autoBom: false } : "object" != typeof t2 && (console.warn("Deprecated: Expected third argument to be a object"), t2 = { autoBom: !t2 }), t2.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e2.type) ? new Blob(["\uFEFF", e2], { type: e2.type }) : e2;
  }
  function n2(e2, t2, o3) {
    var n3 = new XMLHttpRequest();
    n3.open("GET", e2), n3.responseType = "blob", n3.onload = function() {
      c(n3.response, t2, o3);
    }, n3.onerror = function() {
      console.error("could not download file");
    }, n3.send();
  }
  function a(e2) {
    var t2 = new XMLHttpRequest();
    t2.open("HEAD", e2, false);
    try {
      t2.send();
    } catch (e3) {
    }
    return 200 <= t2.status && 299 >= t2.status;
  }
  function r(e2) {
    try {
      e2.dispatchEvent(new MouseEvent("click"));
    } catch (o3) {
      var t2 = document.createEvent("MouseEvents");
      t2.initMouseEvent("click", true, true, window, 0, 0, 0, 80, 20, false, false, false, false, 0, null), e2.dispatchEvent(t2);
    }
  }
  var i = "object" == typeof window && window.window === window ? window : "object" == typeof self && self.self === self ? self : "object" == typeof e && e.global === e ? e : void 0, s = i.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), c = i.saveAs || ("object" != typeof window || window !== i ? function() {
  } : "download" in HTMLAnchorElement.prototype && !s ? function(e2, t2, o3) {
    var s2 = i.URL || i.webkitURL, c2 = document.createElement("a");
    t2 = t2 || e2.name || "download", c2.download = t2, c2.rel = "noopener", "string" == typeof e2 ? (c2.href = e2, c2.origin === location.origin ? r(c2) : a(c2.href) ? n2(e2, t2, o3) : r(c2, c2.target = "_blank")) : (c2.href = s2.createObjectURL(e2), setTimeout(function() {
      s2.revokeObjectURL(c2.href);
    }, 4e4), setTimeout(function() {
      r(c2);
    }, 0));
  } : "msSaveOrOpenBlob" in navigator ? function(e2, t2, i2) {
    if (t2 = t2 || e2.name || "download", "string" != typeof e2)
      navigator.msSaveOrOpenBlob(o2(e2, i2), t2);
    else if (a(e2))
      n2(e2, t2, i2);
    else {
      var s2 = document.createElement("a");
      s2.href = e2, s2.target = "_blank", setTimeout(function() {
        r(s2);
      });
    }
  } : function(e2, t2, o3, a2) {
    if ((a2 = a2 || open("", "_blank")) && (a2.document.title = a2.document.body.innerText = "downloading..."), "string" == typeof e2)
      return n2(e2, t2, o3);
    var r2 = "application/octet-stream" === e2.type, c2 = /constructor/i.test(i.HTMLElement) || i.safari, l = /CriOS\/[\d]+/.test(navigator.userAgent);
    if ((l || r2 && c2 || s) && "undefined" != typeof FileReader) {
      var u = new FileReader();
      u.onloadend = function() {
        var e3 = u.result;
        e3 = l ? e3 : e3.replace(/^data:[^;]*;/, "data:attachment/file;"), a2 ? a2.location.href = e3 : location = e3, a2 = null;
      }, u.readAsDataURL(e2);
    } else {
      var f = i.URL || i.webkitURL, d = f.createObjectURL(e2);
      a2 ? a2.location = d : location.href = d, a2 = null, setTimeout(function() {
        f.revokeObjectURL(d);
      }, 4e4);
    }
  });
  i.saveAs = c.saveAs = c, t.exports = c;
}();
var n = o.exports;
export {
  n as F
};
