CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
AroriaNetwork

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: AroriaNetwork/TacoProxy
Path: blob/main/public/arc-sw.js
Views: 311
1
! function(e) {
2
var t = {};
3
4
function r(n) {
5
if (t[n]) return t[n].exports;
6
var o = t[n] = {
7
i: n,
8
l: !1,
9
exports: {}
10
};
11
return e[n].call(o.exports, o, o.exports, r), o.l = !0, o.exports
12
}
13
r.m = e, r.c = t, r.d = function(e, t, n) {
14
r.o(e, t) || Object.defineProperty(e, t, {
15
enumerable: !0,
16
get: n
17
})
18
}, r.r = function(e) {
19
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {
20
value: "Module"
21
}), Object.defineProperty(e, "__esModule", {
22
value: !0
23
})
24
}, r.t = function(e, t) {
25
if (1 & t && (e = r(e)), 8 & t) return e;
26
if (4 & t && "object" == typeof e && e && e.__esModule) return e;
27
var n = Object.create(null);
28
if (r.r(n), Object.defineProperty(n, "default", {
29
enumerable: !0,
30
value: e
31
}), 2 & t && "string" != typeof e)
32
for (var o in e) r.d(n, o, function(t) {
33
return e[t]
34
}.bind(null, o));
35
return n
36
}, r.n = function(e) {
37
var t = e && e.__esModule ? function() {
38
return e.default
39
} : function() {
40
return e
41
};
42
return r.d(t, "a", t), t
43
}, r.o = function(e, t) {
44
return Object.prototype.hasOwnProperty.call(e, t)
45
}, r.p = "", r(r.s = 100)
46
}({
47
100: function(e, t, r) {
48
"use strict";
49
r.r(t);
50
var n = r(3);
51
if ("undefined" != typeof ServiceWorkerGlobalScope) {
52
var o = "https://arc.io" + n.k;
53
importScripts(o)
54
} else if ("undefined" != typeof SharedWorkerGlobalScope) {
55
var c = "https://arc.io" + n.i;
56
importScripts(c)
57
} else if ("undefined" != typeof DedicatedWorkerGlobalScope) {
58
var i = "https://arc.io" + n.b;
59
importScripts(i)
60
}
61
},
62
3: function(e, t, r) {
63
"use strict";
64
r.d(t, "a", function() {
65
return n
66
}), r.d(t, "f", function() {
67
return c
68
}), r.d(t, "j", function() {
69
return i
70
}), r.d(t, "i", function() {
71
return a
72
}), r.d(t, "b", function() {
73
return d
74
}), r.d(t, "k", function() {
75
return f
76
}), r.d(t, "c", function() {
77
return p
78
}), r.d(t, "d", function() {
79
return s
80
}), r.d(t, "e", function() {
81
return l
82
}), r.d(t, "g", function() {
83
return m
84
}), r.d(t, "h", function() {
85
return v
86
});
87
var n = {
88
images: ["bmp", "jpeg", "jpg", "ttf", "pict", "svg", "webp", "eps", "svgz", "gif", "png", "ico", "tif", "tiff", "bpg"],
89
video: ["mp4", "3gp", "webm", "mkv", "flv", "f4v", "f4p", "f4bogv", "drc", "avi", "mov", "qt", "wmv", "amv", "mpg", "mp2", "mpeg", "mpe", "m2v", "m4v", "3g2", "gifv", "mpv"],
90
audio: ["mid", "midi", "aac", "aiff", "flac", "m4a", "m4p", "mp3", "ogg", "oga", "mogg", "opus", "ra", "rm", "wav", "webm", "f4a", "pat"],
91
documents: ["pdf", "ps", "doc", "docx", "ppt", "pptx", "xls", "otf", "xlsx"],
92
other: ["swf"]
93
},
94
o = "arc:",
95
c = {
96
COMLINK_INIT: "".concat(o, "comlink:init"),
97
NODE_ID: "".concat(o, ":nodeId"),
98
CDN_CONFIG: "".concat(o, "cdn:config"),
99
P2P_CLIENT_READY: "".concat(o, "cdn:ready"),
100
STORED_FIDS: "".concat(o, "cdn:storedFids"),
101
SW_HEALTH_CHECK: "".concat(o, "cdn:healthCheck"),
102
WIDGET_CONFIG: "".concat(o, "widget:config"),
103
WIDGET_INIT: "".concat(o, "widget:init"),
104
WIDGET_UI_LOAD: "".concat(o, "widget:load"),
105
BROKER_LOAD: "".concat(o, "broker:load"),
106
RENDER_FILE: "".concat(o, "inlay:renderFile"),
107
FILE_RENDERED: "".concat(o, "inlay:fileRendered")
108
},
109
i = "serviceWorker",
110
a = "/".concat("shared-worker", ".js"),
111
d = "/".concat("dedicated-worker", ".js"),
112
f = "/".concat("arc-sw-core", ".js"),
113
u = "".concat("arc-sw", ".js"),
114
p = ("/".concat(u), "/".concat("arc-sw"), "arc-db"),
115
s = "key-val-store",
116
l = 2 ** 17,
117
m = "".concat("https://overmind.arc.io", "/api/propertySession"),
118
v = "".concat("https://warden.arc.io", "/mailbox/propertySession")
119
}
120
});
121
122