halo-mobile 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,74 @@
1
+ import { c as s } from "./clone-DtpAsLoe.js";
2
+ var E = { exports: {} };
3
+ (function(h, j) {
4
+ (function(p, i) {
5
+ i();
6
+ })(s, function() {
7
+ function p(e, t) {
8
+ return typeof t > "u" ? t = { autoBom: !1 } : typeof t != "object" && (console.warn("Deprecated: Expected third argument to be a object"), t = { autoBom: !t }), t.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
9
+ }
10
+ function i(e, t, r) {
11
+ var n = new XMLHttpRequest();
12
+ n.open("GET", e), n.responseType = "blob", n.onload = function() {
13
+ u(n.response, t, r);
14
+ }, n.onerror = function() {
15
+ console.error("could not download file");
16
+ }, n.send();
17
+ }
18
+ function v(e) {
19
+ var t = new XMLHttpRequest();
20
+ t.open("HEAD", e, !1);
21
+ try {
22
+ t.send();
23
+ } catch {
24
+ }
25
+ return 200 <= t.status && 299 >= t.status;
26
+ }
27
+ function l(e) {
28
+ try {
29
+ e.dispatchEvent(new MouseEvent("click"));
30
+ } catch {
31
+ var t = document.createEvent("MouseEvents");
32
+ t.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(t);
33
+ }
34
+ }
35
+ var a = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof s == "object" && s.global === s ? s : void 0, w = a.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), u = a.saveAs || (typeof window != "object" || window !== a ? function() {
36
+ } : "download" in HTMLAnchorElement.prototype && !w ? function(e, t, r) {
37
+ var n = a.URL || a.webkitURL, o = document.createElement("a");
38
+ t = t || e.name || "download", o.download = t, o.rel = "noopener", typeof e == "string" ? (o.href = e, o.origin === location.origin ? l(o) : v(o.href) ? i(e, t, r) : l(o, o.target = "_blank")) : (o.href = n.createObjectURL(e), setTimeout(function() {
39
+ n.revokeObjectURL(o.href);
40
+ }, 4e4), setTimeout(function() {
41
+ l(o);
42
+ }, 0));
43
+ } : "msSaveOrOpenBlob" in navigator ? function(e, t, r) {
44
+ if (t = t || e.name || "download", typeof e != "string") navigator.msSaveOrOpenBlob(p(e, r), t);
45
+ else if (v(e)) i(e, t, r);
46
+ else {
47
+ var n = document.createElement("a");
48
+ n.href = e, n.target = "_blank", setTimeout(function() {
49
+ l(n);
50
+ });
51
+ }
52
+ } : function(e, t, r, n) {
53
+ if (n = n || open("", "_blank"), n && (n.document.title = n.document.body.innerText = "downloading..."), typeof e == "string") return i(e, t, r);
54
+ var o = e.type === "application/octet-stream", b = /constructor/i.test(a.HTMLElement) || a.safari, m = /CriOS\/[\d]+/.test(navigator.userAgent);
55
+ if ((m || o && b || w) && typeof FileReader < "u") {
56
+ var d = new FileReader();
57
+ d.onloadend = function() {
58
+ var c = d.result;
59
+ c = m ? c : c.replace(/^data:[^;]*;/, "data:attachment/file;"), n ? n.location.href = c : location = c, n = null;
60
+ }, d.readAsDataURL(e);
61
+ } else {
62
+ var y = a.URL || a.webkitURL, f = y.createObjectURL(e);
63
+ n ? n.location = f : location.href = f, n = null, setTimeout(function() {
64
+ y.revokeObjectURL(f);
65
+ }, 4e4);
66
+ }
67
+ });
68
+ a.saveAs = u.saveAs = u, h.exports = u;
69
+ });
70
+ })(E);
71
+ var R = E.exports;
72
+ export {
73
+ R as F
74
+ };