import { c as e } from "./alasql-f60045ee.js";
var t, n = { exports: {} };
t = n, function() {
  function n2(e2, t2) {
    return void 0 === t2 ? t2 = { autoBom: false } : "object" != typeof t2 && (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 o2(e2, t2, n3) {
    var o3 = new XMLHttpRequest();
    o3.open("GET", e2), o3.responseType = "blob", o3.onload = function() {
      c(o3.response, t2, n3);
    }, o3.onerror = function() {
    }, o3.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 i(e2) {
    try {
      e2.dispatchEvent(new MouseEvent("click"));
    } catch (n3) {
      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 r = "object" == typeof window && window.window === window ? window : "object" == typeof self && self.self === self ? self : "object" == typeof e && e.global === e ? e : void 0, s = r.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), c = r.saveAs || ("object" != typeof window || window !== r ? function() {
  } : "download" in HTMLAnchorElement.prototype && !s ? function(e2, t2, n3) {
    var s2 = r.URL || r.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 ? i(c2) : a(c2.href) ? o2(e2, t2, n3) : i(c2, c2.target = "_blank")) : (c2.href = s2.createObjectURL(e2), setTimeout(function() {
      s2.revokeObjectURL(c2.href);
    }, 4e4), setTimeout(function() {
      i(c2);
    }, 0));
  } : "msSaveOrOpenBlob" in navigator ? function(e2, t2, r2) {
    if (t2 = t2 || e2.name || "download", "string" != typeof e2)
      navigator.msSaveOrOpenBlob(n2(e2, r2), t2);
    else if (a(e2))
      o2(e2, t2, r2);
    else {
      var s2 = document.createElement("a");
      s2.href = e2, s2.target = "_blank", setTimeout(function() {
        i(s2);
      });
    }
  } : function(e2, t2, n3, a2) {
    if ((a2 = a2 || open("", "_blank")) && (a2.document.title = a2.document.body.innerText = "downloading..."), "string" == typeof e2)
      return o2(e2, t2, n3);
    var i2 = "application/octet-stream" === e2.type, c2 = /constructor/i.test(r.HTMLElement) || r.safari, l = /CriOS\/[\d]+/.test(navigator.userAgent);
    if ((l || i2 && c2 || s) && "undefined" != typeof FileReader) {
      var f = new FileReader();
      f.onloadend = function() {
        var e3 = f.result;
        e3 = l ? e3 : e3.replace(/^data:[^;]*;/, "data:attachment/file;"), a2 ? a2.location.href = e3 : location = e3, a2 = null;
      }, f.readAsDataURL(e2);
    } else {
      var u = r.URL || r.webkitURL, d = u.createObjectURL(e2);
      a2 ? a2.location = d : location.href = d, a2 = null, setTimeout(function() {
        u.revokeObjectURL(d);
      }, 4e4);
    }
  });
  r.saveAs = c.saveAs = c, t.exports = c;
}();
var o = n.exports;
export {
  o as F
};
