valoq-math-work 1.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,136 @@
1
+ !(function () {
2
+ "use strict";
3
+ const e = MessagePort.prototype.postMessage;
4
+ let t = null;
5
+ function a(e, t, a) {
6
+ console.error(`error while processing '${a}': `, t),
7
+ e.postMessage({ type: "error", error: t });
8
+ }
9
+ async function n(a, n, s) {
10
+ const o = await s.request(
11
+ new URL(a.fetch.remote),
12
+ a.fetch.method,
13
+ a.fetch.body,
14
+ a.fetch.headers,
15
+ null
16
+ );
17
+ if (
18
+ !(function () {
19
+ if (null === t) {
20
+ const a = new MessageChannel(),
21
+ n = new ReadableStream();
22
+ let s;
23
+ try {
24
+ e.call(a.port1, n, [n]), (s = !0);
25
+ } catch (e) {
26
+ s = !1;
27
+ }
28
+ return (t = s), s;
29
+ }
30
+ return t;
31
+ })() &&
32
+ o.body instanceof ReadableStream
33
+ ) {
34
+ const e = new Response(o.body);
35
+ o.body = await e.arrayBuffer();
36
+ }
37
+ o.body instanceof ReadableStream || o.body instanceof ArrayBuffer
38
+ ? e.call(n, { type: "fetch", fetch: o }, [o.body])
39
+ : e.call(n, { type: "fetch", fetch: o });
40
+ }
41
+ let s = null,
42
+ o = "";
43
+ function c() {
44
+ return new Error("there are no bare clients", {
45
+ cause:
46
+ "No BareTransport was set. Try creating a BareMuxConnection and calling setTransport() or setManualTransport() on it before using BareClient.",
47
+ });
48
+ }
49
+ function r(t, a) {
50
+ const n = s;
51
+ let o = [a];
52
+ t.fetch?.body && o.push(t.fetch.body),
53
+ t.websocket?.channel && o.push(t.websocket.channel),
54
+ e.call(n, { message: t, port: a }, o);
55
+ }
56
+ function l(t) {
57
+ t.onmessage = async (t) => {
58
+ const l = t.data.port,
59
+ i = t.data.message;
60
+ if ("ping" === i.type) e.call(l, { type: "pong" });
61
+ else if ("set" === i.type)
62
+ try {
63
+ const t = async function () {}.constructor;
64
+ if ("bare-mux-remote" === i.client.function)
65
+ (s = i.client.args[0]),
66
+ (o = `bare-mux-remote (${i.client.args[1]})`);
67
+ else {
68
+ const e = new t(i.client.function),
69
+ [a, n] = await e();
70
+ (s = new a(...i.client.args)), (o = n);
71
+ }
72
+ console.log("set transport to ", s, o), e.call(l, { type: "set" });
73
+ } catch (e) {
74
+ a(l, e, "set");
75
+ }
76
+ else if ("get" === i.type) l.postMessage({ type: "get", name: o });
77
+ else if ("fetch" === i.type)
78
+ try {
79
+ if (!s) throw c();
80
+ if (s instanceof MessagePort) return void r(i, l);
81
+ s.ready || (await s.init()), await n(i, l, s);
82
+ } catch (e) {
83
+ a(l, e, "fetch");
84
+ }
85
+ else if ("websocket" === i.type)
86
+ try {
87
+ if (!s) throw c();
88
+ if (s instanceof MessagePort) return void r(i, l);
89
+ s.ready || (await s.init()),
90
+ await (async function (t, a, n) {
91
+ const [s, o] = n.connect(
92
+ new URL(t.websocket.url),
93
+ t.websocket.protocols,
94
+ t.websocket.requestHeaders,
95
+ (a) => {
96
+ e.call(t.websocket.channel, { type: "open", args: [a] });
97
+ },
98
+ (a) => {
99
+ a instanceof ArrayBuffer
100
+ ? e.call(
101
+ t.websocket.channel,
102
+ { type: "message", args: [a] },
103
+ [a]
104
+ )
105
+ : e.call(t.websocket.channel, {
106
+ type: "message",
107
+ args: [a],
108
+ });
109
+ },
110
+ (a, n) => {
111
+ e.call(t.websocket.channel, { type: "close", args: [a, n] });
112
+ },
113
+ (a) => {
114
+ e.call(t.websocket.channel, { type: "error", args: [a] });
115
+ }
116
+ );
117
+ (t.websocket.channel.onmessage = (e) => {
118
+ "data" === e.data.type
119
+ ? s(e.data.data)
120
+ : "close" === e.data.type &&
121
+ o(e.data.closeCode, e.data.closeReason);
122
+ }),
123
+ e.call(a, { type: "websocket" });
124
+ })(i, l, s);
125
+ } catch (e) {
126
+ a(l, e, "websocket");
127
+ }
128
+ };
129
+ }
130
+ new BroadcastChannel("bare-mux").postMessage({ type: "refreshPort" }),
131
+ (self.onconnect = (e) => {
132
+ l(e.ports[0]);
133
+ }),
134
+ console.debug("bare-mux: running v2.1.7 (build c56d286)");
135
+ })();
136
+ //# sourceMappingURL=worker.js.map
package/fonts/font.ttf ADDED
Binary file
Binary file
Binary file
Binary file