reflected 0.2.4 → 0.2.6
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.
- package/dist/async-CM1iXZPW.js +44 -0
- package/dist/async-OLiknCrf.js +41 -0
- package/dist/async.js +856 -1
- package/dist/broadcast-B4sl9DBp.js +24 -0
- package/dist/broadcast-eR5_7TCY.js +15 -0
- package/dist/broadcast.js +850 -1
- package/dist/ffi/async-0Q0H4a_N.js +41 -0
- package/dist/ffi/async-CbwemiL2.js +41 -0
- package/dist/ffi/async-D6Zj6i_Q.js +44 -0
- package/dist/ffi/async-DLrN8K6M.js +44 -0
- package/dist/ffi/broadcast-CKNplfox.js +15 -0
- package/dist/ffi/broadcast-CbbtYobq.js +25 -0
- package/dist/ffi/broadcast-DIucqhL0.js +25 -0
- package/dist/ffi/broadcast-uydYnG6E.js +15 -0
- package/dist/ffi/global-DzpOeFX2.js +14 -0
- package/dist/ffi/global-LTfnrHcF.js +11 -0
- package/dist/ffi/i32-Cw-Rqr5y.js +13 -0
- package/dist/ffi/main.js +650 -1
- package/dist/ffi/message-2Dqj3uZ3.js +15 -0
- package/dist/ffi/message-Co0Oew7f.js +25 -0
- package/dist/ffi/message-Cxjrx_su.js +25 -0
- package/dist/ffi/message-mK0eTb54.js +15 -0
- package/dist/ffi/sender-B7Xmjz4q.js +194 -0
- package/dist/ffi/sender-C0gu9RzR.js +194 -0
- package/dist/ffi/shared-5Nhc4gvB.js +175 -0
- package/dist/ffi/shared-B3KmQkGh.js +425 -0
- package/dist/ffi/shared-CjWXp6-D.js +171 -0
- package/dist/ffi/shared-Czh3AlGt.js +53 -0
- package/dist/ffi/shared-DZdgWBc6.js +53 -0
- package/dist/ffi/shared-array-buffer-BQgQXQvC.js +28 -0
- package/dist/ffi/shared-ddawRQD0.js +425 -0
- package/dist/ffi/views-C3SJnvMr.js +48 -0
- package/dist/ffi/views-DBBYng9N.js +52 -0
- package/dist/ffi/worker.js +616 -1
- package/dist/ffi/xhr-Be-3qHQb.js +101 -0
- package/dist/ffi/xhr-CKhf21P8.js +41 -0
- package/dist/ffi/xhr-CRJGE1xP.js +41 -0
- package/dist/ffi/xhr-DSsSGsb-.js +101 -0
- package/dist/i32-UV5fM9Tw.js +12 -0
- package/dist/index.js +57 -1
- package/dist/message-D_SM4ST4.js +24 -0
- package/dist/message-vCWcUEmt.js +15 -0
- package/dist/message.js +843 -1
- package/dist/proxy/main/async-8J3q5T6q.js +41 -0
- package/dist/proxy/main/async-Di4MuQWe.js +44 -0
- package/dist/proxy/main/broadcast-CR8vlkKk.js +24 -0
- package/dist/proxy/main/broadcast-LNW6nFVD.js +15 -0
- package/dist/proxy/main/channel-NcnPEVL4.js +110 -0
- package/dist/proxy/main/i32-UV5fM9Tw.js +12 -0
- package/dist/proxy/main/message-j-4BYSZ4.js +24 -0
- package/dist/proxy/main/message-uirwoNUQ.js +15 -0
- package/dist/proxy/main/proxy.js +106 -1
- package/dist/proxy/main/sender-Dkjjbv2Y.js +194 -0
- package/dist/proxy/main/shared-C3U1MNPd.js +53 -0
- package/dist/proxy/main/shared-CV7CPYuP.js +43 -0
- package/dist/proxy/main/shared-DdPca9Ke.js +431 -0
- package/dist/proxy/main/shared-array-buffer-BQgQXQvC.js +28 -0
- package/dist/proxy/main/xhr-BUjEbkCh.js +100 -0
- package/dist/proxy/main/xhr-WnkM0dVo.js +41 -0
- package/dist/proxy/worker/async-CZJaURwO.js +41 -0
- package/dist/proxy/worker/async-DaSAye0a.js +44 -0
- package/dist/proxy/worker/broadcast-DRVfswix.js +24 -0
- package/dist/proxy/worker/broadcast-fWsZlH8v.js +15 -0
- package/dist/proxy/worker/channel-NcnPEVL4.js +110 -0
- package/dist/proxy/worker/i32-UV5fM9Tw.js +12 -0
- package/dist/proxy/worker/message-Bots8UXM.js +15 -0
- package/dist/proxy/worker/message-sej0J6k5.js +24 -0
- package/dist/proxy/worker/proxy.js +79 -1
- package/dist/proxy/worker/sender-D5Lm-DmC.js +194 -0
- package/dist/proxy/worker/shared-CgOGpfKJ.js +431 -0
- package/dist/proxy/worker/shared-Cn1K0k8G.js +53 -0
- package/dist/proxy/worker/shared-DR7YYduq.js +41 -0
- package/dist/proxy/worker/shared-array-buffer-BQgQXQvC.js +28 -0
- package/dist/proxy/worker/xhr-CQDzS28h.js +100 -0
- package/dist/proxy/worker/xhr-DAgmljtu.js +41 -0
- package/dist/sender-BSx3lj4w.js +193 -0
- package/dist/shared-Ccm1cPah.js +125 -0
- package/dist/shared-DVDPRDN_.js +53 -0
- package/dist/shared-L0wiAfqu.js +431 -0
- package/dist/shared-array-buffer-BQgQXQvC.js +28 -0
- package/dist/sw.js +155 -1
- package/dist/with-resolvers-DsO_nhbc.js +24 -0
- package/dist/xhr-BZOjL92j.js +100 -0
- package/dist/xhr-Crh-419R.js +41 -0
- package/dist/xhr.js +909 -1
- package/package.json +1 -1
- package/reflected.tar.gz +0 -0
- package/dist/async-C2eqvaGm.js +0 -1
- package/dist/async-s2VCmNNG.js +0 -1
- package/dist/broadcast-CArZGSOF.js +0 -1
- package/dist/broadcast-f7NecPmf.js +0 -1
- package/dist/ffi/async-B_TI4xaG.js +0 -1
- package/dist/ffi/async-BeKYhv9s.js +0 -1
- package/dist/ffi/async-Dl9wCRDA.js +0 -1
- package/dist/ffi/async-F0rxZjV9.js +0 -1
- package/dist/ffi/broadcast-CBUwPa0e.js +0 -1
- package/dist/ffi/broadcast-Ce_cOurt.js +0 -1
- package/dist/ffi/broadcast-D0jZEoUb.js +0 -1
- package/dist/ffi/broadcast-D7p6b88J.js +0 -1
- package/dist/ffi/global-B3nXXiRL.js +0 -1
- package/dist/ffi/global-Bs8RLRoX.js +0 -1
- package/dist/ffi/i32-BkNtpHwD.js +0 -1
- package/dist/ffi/message-BdbPt0y5.js +0 -1
- package/dist/ffi/message-DNbm1E-6.js +0 -1
- package/dist/ffi/message-DW2TgKPr.js +0 -1
- package/dist/ffi/message-TyU9xCIl.js +0 -1
- package/dist/ffi/sender-C5EHIpuL.js +0 -1
- package/dist/ffi/sender-DBFDKow4.js +0 -1
- package/dist/ffi/shared-BfrghvHB.js +0 -1
- package/dist/ffi/shared-C2XCOXcu.js +0 -1
- package/dist/ffi/shared-Cs1s8cy4.js +0 -1
- package/dist/ffi/shared-DsgUjYDJ.js +0 -1
- package/dist/ffi/shared-DwSbyGXy.js +0 -1
- package/dist/ffi/shared-DyOzpRO0.js +0 -1
- package/dist/ffi/shared-array-buffer-cwdMr2mc.js +0 -1
- package/dist/ffi/views-CdOIrBQR.js +0 -1
- package/dist/ffi/views-Cr2pQ4B-.js +0 -1
- package/dist/ffi/xhr-BkOoxiJZ.js +0 -1
- package/dist/ffi/xhr-C598zZcp.js +0 -1
- package/dist/ffi/xhr-CasCWs_z.js +0 -1
- package/dist/ffi/xhr-DHyu_Jz0.js +0 -1
- package/dist/i32-C78nBJH2.js +0 -1
- package/dist/message-RcKwy8Ib.js +0 -1
- package/dist/message-l7W12V0c.js +0 -1
- package/dist/proxy/main/async-Bc0QcTaC.js +0 -1
- package/dist/proxy/main/async-CyZdYOvJ.js +0 -1
- package/dist/proxy/main/broadcast-BX9FmxMK.js +0 -1
- package/dist/proxy/main/broadcast-DXhTouQy.js +0 -1
- package/dist/proxy/main/channel-DQBWE7_E.js +0 -1
- package/dist/proxy/main/i32-C78nBJH2.js +0 -1
- package/dist/proxy/main/message-CbPHeJAY.js +0 -1
- package/dist/proxy/main/message-DxRlOVN7.js +0 -1
- package/dist/proxy/main/sender-CNwZwCuI.js +0 -1
- package/dist/proxy/main/shared-BoatDt-V.js +0 -1
- package/dist/proxy/main/shared-FMegJ6yb.js +0 -1
- package/dist/proxy/main/shared-array-buffer-cwdMr2mc.js +0 -1
- package/dist/proxy/main/shared-z_jGYqUa.js +0 -1
- package/dist/proxy/main/xhr-BaBkekSn.js +0 -1
- package/dist/proxy/main/xhr-Fg-l74MV.js +0 -1
- package/dist/proxy/worker/async-Do59YjcF.js +0 -1
- package/dist/proxy/worker/async-fqI-s7gn.js +0 -1
- package/dist/proxy/worker/broadcast-Bdt9gmj_.js +0 -1
- package/dist/proxy/worker/broadcast-D7rjohJL.js +0 -1
- package/dist/proxy/worker/channel-DQBWE7_E.js +0 -1
- package/dist/proxy/worker/i32-C78nBJH2.js +0 -1
- package/dist/proxy/worker/message-BvU2dKHz.js +0 -1
- package/dist/proxy/worker/message-DhtuceT9.js +0 -1
- package/dist/proxy/worker/sender-CWhM7QKB.js +0 -1
- package/dist/proxy/worker/shared-DDIlHBz4.js +0 -1
- package/dist/proxy/worker/shared-NtUlwI0Z.js +0 -1
- package/dist/proxy/worker/shared-QrUiXPgc.js +0 -1
- package/dist/proxy/worker/shared-array-buffer-cwdMr2mc.js +0 -1
- package/dist/proxy/worker/xhr-CK-Z6L0B.js +0 -1
- package/dist/proxy/worker/xhr-JKtROQ3y.js +0 -1
- package/dist/sender-D7tfUn3T.js +0 -1
- package/dist/shared-BCEcO4-0.js +0 -1
- package/dist/shared-BWvJKuCK.js +0 -1
- package/dist/shared-BhhIigP4.js +0 -1
- package/dist/shared-array-buffer-cwdMr2mc.js +0 -1
- package/dist/with-resolvers-CHEvl4oe.js +0 -1
- package/dist/xhr-Bd0lMv0-.js +0 -1
- package/dist/xhr-DaixJn9d.js +0 -1
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { w as withResolvers, r as byteOffset, s as identity } from './shared-CjWXp6-D.js';
|
|
2
|
+
import { s as sender, d as decoder } from './sender-C0gu9RzR.js';
|
|
3
|
+
import { i as i32 } from './i32-Cw-Rqr5y.js';
|
|
4
|
+
import './views-DBBYng9N.js';
|
|
5
|
+
|
|
6
|
+
const { promise, resolve } = withResolvers();
|
|
7
|
+
|
|
8
|
+
addEventListener(
|
|
9
|
+
'message',
|
|
10
|
+
({ data: [_, main, channel] }) => resolve([main, channel]),
|
|
11
|
+
{ once: true }
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
const channel = 'async';
|
|
15
|
+
|
|
16
|
+
const handle = (channel, options) => {
|
|
17
|
+
const bc = new BroadcastChannel(channel);
|
|
18
|
+
const next = i32();
|
|
19
|
+
const decode = (options.decoder ?? decoder)({ byteOffset });
|
|
20
|
+
const onsync = options.onsync ?? identity;
|
|
21
|
+
const map = new Map;
|
|
22
|
+
bc.addEventListener('message', ({ data: [id, { length, buffer }] }) => {
|
|
23
|
+
map.get(id)(onsync(length ? decode(length, buffer) : void 0));
|
|
24
|
+
map.delete(id);
|
|
25
|
+
});
|
|
26
|
+
return (payload, ...rest) => {
|
|
27
|
+
const { promise, resolve } = withResolvers();
|
|
28
|
+
const id = next();
|
|
29
|
+
map.set(id, resolve);
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
bc.postMessage([id, payload], ...rest);
|
|
32
|
+
return promise;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
var async = options => promise.then(([main, channel]) => {
|
|
37
|
+
postMessage(1);
|
|
38
|
+
return handle(channel, sender({ ...main, ...options }));
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
export { channel, async as default };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { w as withResolvers, s as byteOffset, u as identity } from './shared-5Nhc4gvB.js';
|
|
2
|
+
import { s as sender, d as decoder } from './sender-B7Xmjz4q.js';
|
|
3
|
+
import { i as i32 } from './i32-Cw-Rqr5y.js';
|
|
4
|
+
import './views-C3SJnvMr.js';
|
|
5
|
+
|
|
6
|
+
const { promise, resolve } = withResolvers();
|
|
7
|
+
|
|
8
|
+
addEventListener(
|
|
9
|
+
'message',
|
|
10
|
+
({ data: [_, main, channel] }) => resolve([main, channel]),
|
|
11
|
+
{ once: true }
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
const channel = 'async';
|
|
15
|
+
|
|
16
|
+
const handle = (channel, options) => {
|
|
17
|
+
const bc = new BroadcastChannel(channel);
|
|
18
|
+
const next = i32();
|
|
19
|
+
const decode = (options.decoder ?? decoder)({ byteOffset });
|
|
20
|
+
const onsync = options.onsync ?? identity;
|
|
21
|
+
const map = new Map;
|
|
22
|
+
bc.addEventListener('message', ({ data: [id, { length, buffer }] }) => {
|
|
23
|
+
map.get(id)(onsync(length ? decode(length, buffer) : void 0));
|
|
24
|
+
map.delete(id);
|
|
25
|
+
});
|
|
26
|
+
return (payload, ...rest) => {
|
|
27
|
+
const { promise, resolve } = withResolvers();
|
|
28
|
+
const id = next();
|
|
29
|
+
map.set(id, resolve);
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
bc.postMessage([id, payload], ...rest);
|
|
32
|
+
return promise;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
var async = options => promise.then(([main, channel]) => {
|
|
37
|
+
postMessage(1);
|
|
38
|
+
return handle(channel, sender({ ...main, ...options }));
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
export { channel, async as default };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { b as bootstrap, S as Sender, h as handler, u as url, p as post } from './shared-ddawRQD0.js';
|
|
2
|
+
import { S as SAB$1 } from './shared-array-buffer-BQgQXQvC.js';
|
|
3
|
+
import { s as byteOffset, x as randomUUID } from './shared-5Nhc4gvB.js';
|
|
4
|
+
|
|
5
|
+
var SAB = ({
|
|
6
|
+
initByteLength = 1024,
|
|
7
|
+
maxByteLength = (1024 * 8)
|
|
8
|
+
}) =>
|
|
9
|
+
new SAB$1(
|
|
10
|
+
byteOffset + initByteLength,
|
|
11
|
+
{ maxByteLength: byteOffset + maxByteLength }
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
const CHANNEL = 'async';
|
|
15
|
+
|
|
16
|
+
let Worker$1 = class Worker extends Sender {
|
|
17
|
+
constructor(scriptURL, options, resolve) {
|
|
18
|
+
const channel = randomUUID();
|
|
19
|
+
const bc = new BroadcastChannel(channel);
|
|
20
|
+
const sab = SAB(options);
|
|
21
|
+
const i32a = new Int32Array(sab);
|
|
22
|
+
const handle = handler(sab, options, false);
|
|
23
|
+
bc.addEventListener('message', async ({ data: [id, payload] }) => {
|
|
24
|
+
await handle({ data: payload });
|
|
25
|
+
bc.postMessage([id, new Uint8Array(sab, byteOffset, i32a[1])]);
|
|
26
|
+
});
|
|
27
|
+
super(...url(scriptURL, CHANNEL, options));
|
|
28
|
+
super.addEventListener('message', () => resolve(this), { once: true });
|
|
29
|
+
super.postMessage(post(sab, options).concat(channel));
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
get channel() {
|
|
33
|
+
return CHANNEL;
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
var async = bootstrap(Worker$1);
|
|
37
|
+
|
|
38
|
+
var async$1 = /*#__PURE__*/Object.freeze({
|
|
39
|
+
__proto__: null,
|
|
40
|
+
Worker: Worker$1,
|
|
41
|
+
default: async
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
export { SAB as S, Worker$1 as W, async$1 as a };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { b as bootstrap, S as Sender, h as handler, u as url, p as post } from './shared-B3KmQkGh.js';
|
|
2
|
+
import { S as SAB$1 } from './shared-array-buffer-BQgQXQvC.js';
|
|
3
|
+
import { r as byteOffset, v as randomUUID } from './shared-CjWXp6-D.js';
|
|
4
|
+
|
|
5
|
+
var SAB = ({
|
|
6
|
+
initByteLength = 1024,
|
|
7
|
+
maxByteLength = (1024 * 8)
|
|
8
|
+
}) =>
|
|
9
|
+
new SAB$1(
|
|
10
|
+
byteOffset + initByteLength,
|
|
11
|
+
{ maxByteLength: byteOffset + maxByteLength }
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
const CHANNEL = 'async';
|
|
15
|
+
|
|
16
|
+
let Worker$1 = class Worker extends Sender {
|
|
17
|
+
constructor(scriptURL, options, resolve) {
|
|
18
|
+
const channel = randomUUID();
|
|
19
|
+
const bc = new BroadcastChannel(channel);
|
|
20
|
+
const sab = SAB(options);
|
|
21
|
+
const i32a = new Int32Array(sab);
|
|
22
|
+
const handle = handler(sab, options, false);
|
|
23
|
+
bc.addEventListener('message', async ({ data: [id, payload] }) => {
|
|
24
|
+
await handle({ data: payload });
|
|
25
|
+
bc.postMessage([id, new Uint8Array(sab, byteOffset, i32a[1])]);
|
|
26
|
+
});
|
|
27
|
+
super(...url(scriptURL, CHANNEL, options));
|
|
28
|
+
super.addEventListener('message', () => resolve(this), { once: true });
|
|
29
|
+
super.postMessage(post(sab, options).concat(channel));
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
get channel() {
|
|
33
|
+
return CHANNEL;
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
var async = bootstrap(Worker$1);
|
|
37
|
+
|
|
38
|
+
var async$1 = /*#__PURE__*/Object.freeze({
|
|
39
|
+
__proto__: null,
|
|
40
|
+
Worker: Worker$1,
|
|
41
|
+
default: async
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
export { SAB as S, Worker$1 as W, async$1 as a };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { w as withResolvers } from './shared-CjWXp6-D.js';
|
|
2
|
+
import { h as handler } from './shared-Czh3AlGt.js';
|
|
3
|
+
import './sender-C0gu9RzR.js';
|
|
4
|
+
import './views-DBBYng9N.js';
|
|
5
|
+
|
|
6
|
+
const { promise, resolve } = withResolvers();
|
|
7
|
+
|
|
8
|
+
const channel = 'broadcast';
|
|
9
|
+
|
|
10
|
+
var broadcast = handler(
|
|
11
|
+
promise,
|
|
12
|
+
({ data: [sab, main, channel] }) => resolve([sab, main, new BroadcastChannel(channel)]),
|
|
13
|
+
);
|
|
14
|
+
|
|
15
|
+
export { channel, broadcast as default };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { b as bootstrap, S as Sender, a as SAB, h as handler, u as url, p as post } from './shared-B3KmQkGh.js';
|
|
2
|
+
import { v as randomUUID } from './shared-CjWXp6-D.js';
|
|
3
|
+
import './i32-Cw-Rqr5y.js';
|
|
4
|
+
import './views-DBBYng9N.js';
|
|
5
|
+
import './global-DzpOeFX2.js';
|
|
6
|
+
|
|
7
|
+
const CHANNEL = 'broadcast';
|
|
8
|
+
|
|
9
|
+
var broadcast = bootstrap(class Worker extends Sender {
|
|
10
|
+
constructor(scriptURL, options, resolve) {
|
|
11
|
+
const channel = randomUUID();
|
|
12
|
+
const bc = new BroadcastChannel(channel);
|
|
13
|
+
const sab = SAB(options);
|
|
14
|
+
bc.addEventListener('message', handler(sab, options, true));
|
|
15
|
+
super(...url(scriptURL, CHANNEL, options));
|
|
16
|
+
super.addEventListener('message', () => resolve(this), { once: true });
|
|
17
|
+
super.postMessage(post(sab, options).concat(channel));
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
get channel() {
|
|
21
|
+
return CHANNEL;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export { broadcast as default };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { b as bootstrap, S as Sender, a as SAB, h as handler, u as url, p as post } from './shared-ddawRQD0.js';
|
|
2
|
+
import { x as randomUUID } from './shared-5Nhc4gvB.js';
|
|
3
|
+
import './i32-Cw-Rqr5y.js';
|
|
4
|
+
import './views-C3SJnvMr.js';
|
|
5
|
+
import './global-LTfnrHcF.js';
|
|
6
|
+
|
|
7
|
+
const CHANNEL = 'broadcast';
|
|
8
|
+
|
|
9
|
+
var broadcast = bootstrap(class Worker extends Sender {
|
|
10
|
+
constructor(scriptURL, options, resolve) {
|
|
11
|
+
const channel = randomUUID();
|
|
12
|
+
const bc = new BroadcastChannel(channel);
|
|
13
|
+
const sab = SAB(options);
|
|
14
|
+
bc.addEventListener('message', handler(sab, options, true));
|
|
15
|
+
super(...url(scriptURL, CHANNEL, options));
|
|
16
|
+
super.addEventListener('message', () => resolve(this), { once: true });
|
|
17
|
+
super.postMessage(post(sab, options).concat(channel));
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
get channel() {
|
|
21
|
+
return CHANNEL;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export { broadcast as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { w as withResolvers } from './shared-5Nhc4gvB.js';
|
|
2
|
+
import { h as handler } from './shared-DZdgWBc6.js';
|
|
3
|
+
import './sender-B7Xmjz4q.js';
|
|
4
|
+
import './views-C3SJnvMr.js';
|
|
5
|
+
|
|
6
|
+
const { promise, resolve } = withResolvers();
|
|
7
|
+
|
|
8
|
+
const channel = 'broadcast';
|
|
9
|
+
|
|
10
|
+
var broadcast = handler(
|
|
11
|
+
promise,
|
|
12
|
+
({ data: [sab, main, channel] }) => resolve([sab, main, new BroadcastChannel(channel)]),
|
|
13
|
+
);
|
|
14
|
+
|
|
15
|
+
export { channel, broadcast as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { o as object } from './shared-CjWXp6-D.js';
|
|
2
|
+
|
|
3
|
+
const { getPrototypeOf } = Object;
|
|
4
|
+
const { construct } = Reflect;
|
|
5
|
+
const { toStringTag } = Symbol;
|
|
6
|
+
const { toString } = object;
|
|
7
|
+
|
|
8
|
+
const toName = (ref, name = toString.call(ref).slice(8, -1)) =>
|
|
9
|
+
name in globalThis ? name : toName(getPrototypeOf(ref) || object);
|
|
10
|
+
|
|
11
|
+
const toTag = (ref, name = ref[toStringTag]) =>
|
|
12
|
+
name in globalThis ? name : toTag(construct(getPrototypeOf(ref.constructor),[0]));
|
|
13
|
+
|
|
14
|
+
export { toTag as a, toName as t };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { o as object } from './shared-5Nhc4gvB.js';
|
|
2
|
+
|
|
3
|
+
const { getPrototypeOf } = Object;
|
|
4
|
+
const { construct } = Reflect;
|
|
5
|
+
const { toStringTag } = Symbol;
|
|
6
|
+
const { toString } = object;
|
|
7
|
+
|
|
8
|
+
const toTag = (ref, name = ref[toStringTag]) =>
|
|
9
|
+
name in globalThis ? name : toTag(construct(getPrototypeOf(ref.constructor),[0]));
|
|
10
|
+
|
|
11
|
+
export { toTag as t };
|