@fkn/lib 0.9.42 → 0.9.44
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/{api-SwxtiYVU.d.ts → api-CFkZVr53.d.ts} +61 -30
- package/api.d.ts +2 -2
- package/attach-policy.d.ts +11 -15
- package/cloud/dns.d.ts +1 -1
- package/cloud/fetch.d.ts +1 -1
- package/cloud/fs/promises.d.ts +1 -1
- package/cloud/fs.d.ts +3 -3
- package/cloud/net.d.ts +1 -1
- package/cloud-Bx64HSkQ.cjs +1 -0
- package/cloud-D-vDUzzx.js +552 -0
- package/{cloud-DUH-v10C.d.ts → cloud-DyOQPyUB.d.ts} +4 -4
- package/cloud.cjs +1 -1
- package/cloud.d.ts +4 -4
- package/cloud.js +1 -1
- package/{contract-CCxPKIC7.d.ts → contract-6Xfd_qel.d.ts} +173 -22
- package/contract.d.ts +4 -4
- package/dgram.d.ts +7 -14
- package/dns.d.ts +1 -1
- package/{extension-yhwDSIiD.d.ts → extension-BlEtNAYc.d.ts} +36 -37
- package/extension-CzZn0bY2.js +94 -0
- package/extension-DvFf7uoG.cjs +1 -0
- package/extension.cjs +1 -1
- package/extension.d.ts +3 -3
- package/extension.js +3 -3
- package/fs/promises.d.ts +1 -1
- package/{fs-D0MMRnHC.d.ts → fs-KA1Mgisv.d.ts} +2 -2
- package/fs.d.ts +3 -3
- package/http.d.ts +1 -1
- package/{index-BtFiGoVQ.d.ts → index-BOInGaEl.d.ts} +103 -62
- package/{index-D2lvaQDs.d.ts → index-DKr9L2RI.d.ts} +6 -11
- package/index.cjs +1 -1
- package/index.d.ts +36 -39
- package/index.js +55 -55
- package/{lib-DppqX10G.js → lib-C3UwxjVs.js} +560 -474
- package/lib-fqQfEPk6.cjs +53 -0
- package/messages-d7pvCXPn.d.ts +34 -0
- package/messages.d.ts +1 -1
- package/{net-DcLF-6E-.d.ts → net-CmMZgV2a.d.ts} +3 -19
- package/net.d.ts +1 -1
- package/package.json +1 -1
- package/packages.d.ts +1 -1
- package/{proxy-CE46SkyA.d.ts → proxy-dOOmiMl4.d.ts} +2 -2
- package/rooms.cjs +1 -1
- package/rooms.d.ts +94 -15
- package/rooms.js +118 -90
- package/{storage-BVr2Rb-d.d.ts → storage-BLBsmkmp.d.ts} +14 -28
- package/{wire-Gbo-D74t.d.ts → wire-BwA4JjZH.d.ts} +6 -12
- package/wire.d.ts +1 -1
- package/cloud-868OlBKn.cjs +0 -1
- package/cloud-f3j4s8yZ.js +0 -545
- package/extension-BOBuYwZc.js +0 -92
- package/extension-hoUs5yJ7.cjs +0 -1
- package/lib-CfdmsLoI.cjs +0 -53
- package/messages-CRcziTuC.d.ts +0 -46
package/cloud-f3j4s8yZ.js
DELETED
|
@@ -1,545 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { D as t, E as n, T as r, b as i, c as a, ct as o, d as s, f as c, g as l, h as u, j as d, k as f, l as p, m, o as h, p as g, s as _, u as v, v as y, w as b } from "./lib-DppqX10G.js";
|
|
3
|
-
import { c as x, m as S, t as C } from "./hosts-t7CKGTRz.js";
|
|
4
|
-
import { l as w, m as T, n as E, o as D, s as O } from "./api-DIgTslNb.js";
|
|
5
|
-
import { t as k } from "./busy-B189uX--.js";
|
|
6
|
-
import { t as A } from "./proxy-Dixbk1WL.js";
|
|
7
|
-
import { frameFetchVerdict as j } from "./attach-policy.js";
|
|
8
|
-
import { ATTACH_FRAME_KEY as M, ATTACH_WINDOW_KEY as ee, ATTACH_WINDOW_MESSAGE as N, WINDOW_HANDSHAKE_TIMEOUT_MS as te } from "./contract.js";
|
|
9
|
-
import { t as ne } from "./dns.js";
|
|
10
|
-
import { t as re } from "./cloud/fs.js";
|
|
11
|
-
import { t as ie } from "./net.js";
|
|
12
|
-
import { t as ae } from "./dgram.js";
|
|
13
|
-
import { t as oe } from "./http.js";
|
|
14
|
-
import { expose as P } from "osra";
|
|
15
|
-
//#region src/cloud/frame-broker.ts
|
|
16
|
-
var se = async () => {
|
|
17
|
-
let e = () => O("frame consent");
|
|
18
|
-
try {
|
|
19
|
-
let t = await e();
|
|
20
|
-
return {
|
|
21
|
-
request: typeof t.frameConsent.request == "function" ? t.frameConsent.request : void 0,
|
|
22
|
-
ensure: t.frameConsent.ensure
|
|
23
|
-
};
|
|
24
|
-
} catch (t) {
|
|
25
|
-
if (!(t instanceof E)) throw t;
|
|
26
|
-
return {
|
|
27
|
-
request: void 0,
|
|
28
|
-
ensure: (t) => e().then((e) => e.frameConsent.ensure(t))
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
}, F = "frame: this frame no longer holds the document the app attached it to", I = !1, ce = () => {
|
|
32
|
-
I || (I = !0, console.warn("[fkn-frame] this FKN broker is too old to ask for permission categories, so nothing was asked for upfront and each capability is asked for as it is first used. Reloading the page picks up the current broker."));
|
|
33
|
-
}, le = (e) => [...e].flatMap((e) => {
|
|
34
|
-
try {
|
|
35
|
-
return [new URL(e).hostname];
|
|
36
|
-
} catch {
|
|
37
|
-
return [];
|
|
38
|
-
}
|
|
39
|
-
}), L = (e, t, n) => n === null ? `frame.${e}: the user did not grant ${t} here` : `frame.${e}: the user did not grant ${t} on ${n}`, ue = (e) => {
|
|
40
|
-
let { assertLive: n, attach: r, consent: i, current: a, declaredHosts: o, documentHost: l, freshBlank: u, session: d, approvedOrigins: f } = e, p = /* @__PURE__ */ new Set(), h = () => {
|
|
41
|
-
try {
|
|
42
|
-
return new URL(a()).hostname;
|
|
43
|
-
} catch {
|
|
44
|
-
return "";
|
|
45
|
-
}
|
|
46
|
-
}, _ = async () => l ? await l() : h(), v = () => C([...o, ...le(f)]), y = async (e, t) => (await e([t]))[0] ?? !1;
|
|
47
|
-
return {
|
|
48
|
-
gate: async ({ operation: e, args: a, phase: s }) => {
|
|
49
|
-
n();
|
|
50
|
-
let c = S(e, a);
|
|
51
|
-
if (c === null) return;
|
|
52
|
-
let l = m(c);
|
|
53
|
-
if (l === void 0 || l === "auto") return;
|
|
54
|
-
if (e === "fetch") {
|
|
55
|
-
let e = j({
|
|
56
|
-
session: d,
|
|
57
|
-
declaredHosts: o,
|
|
58
|
-
approvedOrigins: f
|
|
59
|
-
}, s === "ensure" ? void 0 : a[0], { classifier: "fetchTarget" });
|
|
60
|
-
if (s === "ensure" && !d) throw t(e.kind === "refuse" ? e.reason : "", "fetch");
|
|
61
|
-
if (s !== "ensure" && e.kind === "refuse") throw t(e.reason, "fetch");
|
|
62
|
-
let { request: n, ensure: r } = await i();
|
|
63
|
-
if (!n) {
|
|
64
|
-
if (e.kind === "refuse") throw t(e.reason, "fetch");
|
|
65
|
-
if (!await r({
|
|
66
|
-
scope: x(a[0], a[1]).scope,
|
|
67
|
-
hosts: e.promptHosts
|
|
68
|
-
})) throw t("frame.fetch: the user did not grant this", "fetch");
|
|
69
|
-
return;
|
|
70
|
-
}
|
|
71
|
-
let c = e.kind === "consent" ? e.targetHost : await _(), l = C([c, ...o]);
|
|
72
|
-
if (!l.length) throw t("frame: navigate the frame before fetch", "fetch");
|
|
73
|
-
if (await y(n, {
|
|
74
|
-
category: "network",
|
|
75
|
-
hosts: l
|
|
76
|
-
}) === !1) throw t(L("fetch", "network", c || null), "fetch");
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
let b = await _();
|
|
80
|
-
if (!b) throw t(`frame: navigate the frame before ${e}`, e);
|
|
81
|
-
if (!v().includes(b)) throw t(F, e);
|
|
82
|
-
let w = g(c);
|
|
83
|
-
if (w === void 0 || w === "evaluation" && b === h() && await u?.() || l === "critical" && p.has(`${c} ${b}`)) return;
|
|
84
|
-
let { request: T } = await i();
|
|
85
|
-
if (!T) return;
|
|
86
|
-
let E = C([b, ...o]), D = await y(T, l === "critical" ? {
|
|
87
|
-
key: c,
|
|
88
|
-
hosts: E,
|
|
89
|
-
attach: r
|
|
90
|
-
} : {
|
|
91
|
-
category: w,
|
|
92
|
-
hosts: E
|
|
93
|
-
});
|
|
94
|
-
if (D === !1) throw t(L(e, w, null), e);
|
|
95
|
-
if (D === "once" && s !== "ensure") for (let e of E) p.add(`${c} ${e}`);
|
|
96
|
-
},
|
|
97
|
-
requestCategories: async (e) => {
|
|
98
|
-
n(), s("frame.requestPermissions", e);
|
|
99
|
-
let t = await _(), a = C(t ? [t, ...o] : o);
|
|
100
|
-
if (!a.length) throw TypeError("frame.requestPermissions: navigate the frame or declare domains first");
|
|
101
|
-
let l = e.map((e) => {
|
|
102
|
-
let t = e.key;
|
|
103
|
-
return t === void 0 ? {
|
|
104
|
-
named: void 0,
|
|
105
|
-
critical: !1,
|
|
106
|
-
category: e.category
|
|
107
|
-
} : {
|
|
108
|
-
named: t,
|
|
109
|
-
critical: m(t) === "critical",
|
|
110
|
-
category: c(t)
|
|
111
|
-
};
|
|
112
|
-
}), u = ({ named: e, critical: t, category: n }, r) => ({
|
|
113
|
-
category: n,
|
|
114
|
-
...t ? { key: e } : {},
|
|
115
|
-
hosts: a,
|
|
116
|
-
allow: r
|
|
117
|
-
}), { request: d } = await i();
|
|
118
|
-
if (!d) return ce(), l.map((e) => u(e, !1));
|
|
119
|
-
let f = await d(l.map(({ named: e, critical: t, category: n }) => t ? {
|
|
120
|
-
key: e,
|
|
121
|
-
hosts: a,
|
|
122
|
-
attach: r
|
|
123
|
-
} : {
|
|
124
|
-
category: n,
|
|
125
|
-
hosts: a
|
|
126
|
-
}));
|
|
127
|
-
return l.map((e, t) => u(e, f[t] !== void 0 && f[t] !== !1));
|
|
128
|
-
},
|
|
129
|
-
boundary: v
|
|
130
|
-
};
|
|
131
|
-
}, R = (e) => e, de = 5e3, fe = /* @__PURE__ */ new Set([]), z = () => "https://fkn.app", B = (e) => e === "persistent" ? "" : `incognito-${crypto.randomUUID()}`, V = (e, t, n) => {
|
|
132
|
-
let r, i = new Promise((e, i) => {
|
|
133
|
-
r = setTimeout(() => i(typeof n == "string" ? new b(n) : n()), t);
|
|
134
|
-
});
|
|
135
|
-
return Promise.race([e, i]).finally(() => clearTimeout(r));
|
|
136
|
-
}, H = (e) => Object.assign(Error(e), { name: r }), pe = "frame.postMessage: this FKN page predates frame messaging; reload the app to load the current one", me = "frame.addScriptTag: this render proxy predates addScriptTag; reload the app", he = `frame.addScriptTag: no answer within ${p}ms; the script may or may not have run`, ge = "frame.clearCookies: this FKN page predates clearCookies; reload the app to load the current one", _e = "frame.clearCookies: this attachment reaches no site yet; attach a url, goto one, or declare it in domains", U = 3e4, ve = `frame.clearCookies: the render proxy did not answer within ${U}ms; the cookies may or may not be gone, and calling it again is safe`, ye = (e) => n(e) && e.message === f("addScriptTag").message, W = !1, be = () => {
|
|
137
|
-
W || (W = !0, console.warn("[fkn-frame] this FKN page predates frame messaging, so the page's messages and documents are never reported. Reloading the app loads the current one."));
|
|
138
|
-
}, G = ({ from: e, origin: t, attach: n, signal: r }) => (i) => {
|
|
139
|
-
let a = (r) => {
|
|
140
|
-
if (r.source === null || r.source !== e() || r.origin !== t) return;
|
|
141
|
-
let a = r.data;
|
|
142
|
-
typeof a == "object" && a && a.type === "fkn-frame-message" && a.attach === n && typeof a.origin == "string" && (a.kind === "message" ? i({
|
|
143
|
-
type: "message",
|
|
144
|
-
data: a.data,
|
|
145
|
-
origin: a.origin,
|
|
146
|
-
ports: r.ports
|
|
147
|
-
}) : a.kind === "document" && i({
|
|
148
|
-
type: "document",
|
|
149
|
-
origin: a.origin
|
|
150
|
-
}));
|
|
151
|
-
};
|
|
152
|
-
return window.addEventListener("message", a, { signal: r }), () => window.removeEventListener("message", a);
|
|
153
|
-
}, xe = (e) => {
|
|
154
|
-
if (typeof e != "function") return () => Promise.resolve(e);
|
|
155
|
-
let t = null;
|
|
156
|
-
return () => t ??= e().catch((e) => {
|
|
157
|
-
throw t = null, e;
|
|
158
|
-
});
|
|
159
|
-
}, K = ({ control: e, target: n, blank: r = !1, session: i, declaredHosts: o, approvedOrigins: s, attach: c, assertLive: l, guard: u, consent: m, onNavigated: h, relay: g }) => {
|
|
160
|
-
let _ = n, b = r && i !== "", x = async () => {
|
|
161
|
-
if (!b) return !1;
|
|
162
|
-
let t = typeof e.blank == "function" ? await u(() => e.blank()) : "";
|
|
163
|
-
return (typeof t != "string" || t.split("#")[0] !== n.split("#")[0]) && (b = !1), b;
|
|
164
|
-
}, S = Promise.resolve(), { gate: C, requestCategories: w, boundary: T } = ue({
|
|
165
|
-
session: i,
|
|
166
|
-
declaredHosts: o,
|
|
167
|
-
approvedOrigins: s,
|
|
168
|
-
attach: c,
|
|
169
|
-
assertLive: l,
|
|
170
|
-
documentHost: typeof e.documentHost == "function" ? () => u(() => e.documentHost()) : void 0,
|
|
171
|
-
current: () => _,
|
|
172
|
-
consent: xe(m),
|
|
173
|
-
freshBlank: x
|
|
174
|
-
});
|
|
175
|
-
return y({
|
|
176
|
-
backend: "cloud",
|
|
177
|
-
executor: {
|
|
178
|
-
execute: (t, n, r) => fe.has(n) ? Promise.reject(f(n, "cloud")) : (l(), u(() => e.executeLocator(t, n, r))),
|
|
179
|
-
highlight: async () => {}
|
|
180
|
-
},
|
|
181
|
-
gate: C,
|
|
182
|
-
requestPermissions: w,
|
|
183
|
-
evaluate: async (t, n) => (l(), await C({
|
|
184
|
-
parts: [],
|
|
185
|
-
operation: "evaluate",
|
|
186
|
-
args: [t, n],
|
|
187
|
-
phase: "execute"
|
|
188
|
-
}), V(u(() => e.executeLocator([], "evaluate", [t, n])), p, v)),
|
|
189
|
-
addScriptTag: async (t, n) => {
|
|
190
|
-
l();
|
|
191
|
-
let r = [t, n];
|
|
192
|
-
await C({
|
|
193
|
-
parts: [],
|
|
194
|
-
operation: "addScriptTag",
|
|
195
|
-
args: r,
|
|
196
|
-
phase: "execute"
|
|
197
|
-
});
|
|
198
|
-
try {
|
|
199
|
-
await V(u(() => e.executeLocator([], "addScriptTag", r)), p, he);
|
|
200
|
-
} catch (e) {
|
|
201
|
-
throw ye(e) ? d(me, "addScriptTag", "cloud") : e;
|
|
202
|
-
}
|
|
203
|
-
},
|
|
204
|
-
clearCookies: async (n) => {
|
|
205
|
-
if (l(), typeof e.clearCookies != "function") throw d(ge, "clearCookies", "cloud");
|
|
206
|
-
if (T().length === 0) throw t(_e, "clearCookies");
|
|
207
|
-
await V(u(() => e.clearCookies(n)), U, ve);
|
|
208
|
-
},
|
|
209
|
-
postMessage: (n, r, i) => {
|
|
210
|
-
if (l(), typeof e.messaging != "function") throw d(pe, "postMessage", "cloud");
|
|
211
|
-
if (r !== "*" && !T().includes(new URL(r).hostname)) throw t(F, "postMessage");
|
|
212
|
-
let { port1: a, port2: o } = new MessageChannel();
|
|
213
|
-
a.postMessage({
|
|
214
|
-
data: n,
|
|
215
|
-
transfer: i
|
|
216
|
-
}, i);
|
|
217
|
-
let s = [o, r], c = S.then(async () => (await C({
|
|
218
|
-
parts: [],
|
|
219
|
-
operation: "postMessage",
|
|
220
|
-
args: s,
|
|
221
|
-
phase: "execute"
|
|
222
|
-
}), { answer: u(() => e.executeLocator([], "postMessage", s)) }));
|
|
223
|
-
return S = c.catch(() => {}), c.then(async ({ answer: e }) => {
|
|
224
|
-
await e;
|
|
225
|
-
});
|
|
226
|
-
},
|
|
227
|
-
listen: (t) => (typeof e.messaging != "function" && be(), g(t)),
|
|
228
|
-
goto: async (t, { timeout: n, ...r } = {}) => {
|
|
229
|
-
let i = new URL(t, location.href).href;
|
|
230
|
-
l(), b = !1;
|
|
231
|
-
let o = (() => {
|
|
232
|
-
try {
|
|
233
|
-
return new URL(i).origin;
|
|
234
|
-
} catch {
|
|
235
|
-
return "";
|
|
236
|
-
}
|
|
237
|
-
})(), c = o !== "" && !s.has(o);
|
|
238
|
-
c && s.add(o);
|
|
239
|
-
try {
|
|
240
|
-
await V(u(() => e.goto(i, n === void 0 ? r : {
|
|
241
|
-
...r,
|
|
242
|
-
timeoutMs: n
|
|
243
|
-
})), (n ?? 3e4) + de, "cloud.attachFrame: the render proxy did not answer goto; the frame may have been detached or its page reloaded");
|
|
244
|
-
} catch (e) {
|
|
245
|
-
throw c && s.delete(o), a(e);
|
|
246
|
-
}
|
|
247
|
-
_ = i, h();
|
|
248
|
-
},
|
|
249
|
-
url: () => _
|
|
250
|
-
});
|
|
251
|
-
}, Se = 250, Ce = 500, we = 65e3, Te = 2e3, Ee = 2e3, De = 2, Oe = 2e3, ke = 2e3, Ae = ({ origin: e, target: t, session: n, domains: r, attach: i }) => {
|
|
252
|
-
let a = new URL("/attach-window", e);
|
|
253
|
-
return a.searchParams.set("attach", i), t && a.searchParams.set("url", t), n && a.searchParams.set("session", n), r.length && a.searchParams.set("domains", r.join(",")), a.href;
|
|
254
|
-
}, je = (e, t) => {
|
|
255
|
-
let n = document.createElement("iframe"), r = new URL("/attach-jar", e);
|
|
256
|
-
return r.searchParams.set("attach", t), n.src = r.href, n.tabIndex = -1, n.setAttribute("aria-hidden", "true"), n.setAttribute("style", "display:none"), (document.body ?? document.documentElement).appendChild(n), n;
|
|
257
|
-
}, Me = (e, t) => {
|
|
258
|
-
let n = new MutationObserver(() => {
|
|
259
|
-
e.isConnected || t.aborted || (n.disconnect(), console.warn("cloud.attachFrame: the window's jar anchor was removed from this page, so a sign-in in the window no longer reaches this app's cookie jar"));
|
|
260
|
-
});
|
|
261
|
-
e.parentNode && n.observe(e.parentNode, { childList: !0 }), n.observe(document.documentElement, { childList: !0 }), t.addEventListener("abort", () => n.disconnect(), { once: !0 });
|
|
262
|
-
}, q = () => H("cloud.attachFrame: the attached window closed, reloaded or left the page FKN attached; attach a fresh window"), J = () => H("cloud.attachFrame: the attached window stopped answering; attach a fresh window"), Ne = () => H("cloud.attachFrame: the window went away before it connected; attach a fresh window"), Pe = () => H("cloud.attachFrame: the window closed before it connected. Either the user closed it, or this page's Cross-Origin-Opener-Policy cut its link to the window"), Fe = async (e, t) => {
|
|
263
|
-
if (typeof window > "u") throw Error("cloud.attachFrame needs a window realm");
|
|
264
|
-
let { domains: n = [], permissions: r } = e, { url: i, width: a, height: s } = _(e.window);
|
|
265
|
-
if (window.origin === "null") throw new l("opaque-opener");
|
|
266
|
-
let c = z(), d = crypto.randomUUID(), f = B(t), p = C(n), m = /* @__PURE__ */ new Set();
|
|
267
|
-
i && m.add(new URL(i).origin);
|
|
268
|
-
let h = t === "persistent" ? je(c, d) : null, g = window.open(Ae({
|
|
269
|
-
origin: c,
|
|
270
|
-
target: i,
|
|
271
|
-
session: f,
|
|
272
|
-
domains: p,
|
|
273
|
-
attach: d
|
|
274
|
-
}), "_blank", `popup,width=${a},height=${s}`);
|
|
275
|
-
if (!g) throw h?.remove(), new u();
|
|
276
|
-
let v = new AbortController(), y = !1, b = null, x = (e, t = !1) => {
|
|
277
|
-
if (b === null) {
|
|
278
|
-
b = e, v.abort(t ? J() : q());
|
|
279
|
-
try {
|
|
280
|
-
g.closed || g.postMessage({
|
|
281
|
-
type: N.detach,
|
|
282
|
-
attach: d,
|
|
283
|
-
...t ? { unanswered: t } : {}
|
|
284
|
-
}, c);
|
|
285
|
-
} catch {}
|
|
286
|
-
h && setTimeout(() => h.remove(), ke);
|
|
287
|
-
}
|
|
288
|
-
};
|
|
289
|
-
h && Me(h, v.signal);
|
|
290
|
-
let S = new Promise((e, t) => {
|
|
291
|
-
v.signal.addEventListener("abort", () => t(v.signal.reason), { once: !0 });
|
|
292
|
-
});
|
|
293
|
-
S.catch(() => {});
|
|
294
|
-
let w = S.then(() => {}, () => {}), T = () => {
|
|
295
|
-
if (v.signal.aborted) throw v.signal.reason;
|
|
296
|
-
}, E = (e) => v.signal.aborted ? Promise.reject(v.signal.reason) : Promise.race([e(), S]), D = (e) => e.source === g && e.origin === c;
|
|
297
|
-
window.addEventListener("message", (e) => {
|
|
298
|
-
if (!D(e)) return;
|
|
299
|
-
let t = e.data;
|
|
300
|
-
typeof t == "object" && t && t.attach === d && (t.type === N.refused ? x(new l(t.reason)) : t.type === N.gone && x(y ? q() : Ne()));
|
|
301
|
-
}, { signal: v.signal }), window.addEventListener("pagehide", () => x(q()), { signal: v.signal });
|
|
302
|
-
let O = () => {
|
|
303
|
-
try {
|
|
304
|
-
g.postMessage({
|
|
305
|
-
type: N.hello,
|
|
306
|
-
attach: d
|
|
307
|
-
}, c);
|
|
308
|
-
} catch {}
|
|
309
|
-
};
|
|
310
|
-
O();
|
|
311
|
-
let A = setInterval(O, Se), j = setInterval(() => {
|
|
312
|
-
g.closed && x(y ? q() : Pe());
|
|
313
|
-
}, Ce);
|
|
314
|
-
v.signal.addEventListener("abort", () => {
|
|
315
|
-
clearInterval(A), clearInterval(j);
|
|
316
|
-
}, { once: !0 });
|
|
317
|
-
let M = async (e) => {
|
|
318
|
-
try {
|
|
319
|
-
return await Promise.race([e, S]);
|
|
320
|
-
} catch (e) {
|
|
321
|
-
throw b ?? e;
|
|
322
|
-
}
|
|
323
|
-
};
|
|
324
|
-
try {
|
|
325
|
-
let e = await M(V(P({}, {
|
|
326
|
-
key: ee,
|
|
327
|
-
transport: {
|
|
328
|
-
emit: (e, t) => g.postMessage(e, c, t ?? []),
|
|
329
|
-
receive: (e) => {
|
|
330
|
-
let t = (t) => {
|
|
331
|
-
D(t) && e(t.data, {
|
|
332
|
-
source: t.source,
|
|
333
|
-
origin: t.origin
|
|
334
|
-
});
|
|
335
|
-
};
|
|
336
|
-
return window.addEventListener("message", t), () => window.removeEventListener("message", t);
|
|
337
|
-
}
|
|
338
|
-
},
|
|
339
|
-
unregisterSignal: v.signal,
|
|
340
|
-
revivableModules: R(o)
|
|
341
|
-
}), te, "cloud.attachFrame: timed out connecting to the window"));
|
|
342
|
-
y = !0, clearInterval(A);
|
|
343
|
-
let t = 0, n = setInterval(() => {
|
|
344
|
-
V(E(() => e.ping()), Ee, "ping").then(() => {
|
|
345
|
-
t = 0;
|
|
346
|
-
}, () => {
|
|
347
|
-
v.signal.aborted || (document.visibilityState === "hidden" ? t = 0 : ++t >= De && x(J(), !0));
|
|
348
|
-
});
|
|
349
|
-
}, Te);
|
|
350
|
-
v.signal.addEventListener("abort", () => clearInterval(n), { once: !0 }), await M(V(e.ready(), we, "cloud.attachFrame: the window never became ready"));
|
|
351
|
-
let a = k("attached frame");
|
|
352
|
-
v.signal.aborted ? a() : v.signal.addEventListener("abort", a, { once: !0 });
|
|
353
|
-
let s = K({
|
|
354
|
-
control: e,
|
|
355
|
-
target: i,
|
|
356
|
-
session: f,
|
|
357
|
-
declaredHosts: p,
|
|
358
|
-
approvedOrigins: m,
|
|
359
|
-
attach: d,
|
|
360
|
-
assertLive: T,
|
|
361
|
-
guard: E,
|
|
362
|
-
consent: {
|
|
363
|
-
request: (t) => E(() => e.requestConsent(t)),
|
|
364
|
-
ensure: (t) => E(() => e.requestConsent([t])).then(([e]) => e !== void 0 && e !== !1)
|
|
365
|
-
},
|
|
366
|
-
onNavigated: () => {},
|
|
367
|
-
relay: G({
|
|
368
|
-
from: () => g,
|
|
369
|
-
origin: c,
|
|
370
|
-
attach: d,
|
|
371
|
-
signal: v.signal
|
|
372
|
-
})
|
|
373
|
-
}), l = null, u = Object.assign(s, {
|
|
374
|
-
close: () => l ??= (async () => {
|
|
375
|
-
v.signal.aborted || await V(Promise.allSettled([E(() => e.flushCookies()), E(() => e.sweepStorage())]), Oe, "close").catch(() => {});
|
|
376
|
-
try {
|
|
377
|
-
g.close();
|
|
378
|
-
} catch {}
|
|
379
|
-
x(q());
|
|
380
|
-
})(),
|
|
381
|
-
closed: w
|
|
382
|
-
});
|
|
383
|
-
return r?.length && await M(u.requestPermissions(r)), u;
|
|
384
|
-
} catch (e) {
|
|
385
|
-
let t = b ?? e;
|
|
386
|
-
if (!(t instanceof l)) try {
|
|
387
|
-
g.close();
|
|
388
|
-
} catch {}
|
|
389
|
-
throw x(t), t;
|
|
390
|
-
}
|
|
391
|
-
}, Ie = 2e4, Y = 65e3, X = (e) => !e || e === "about:blank", Le = "cloud.attachFrame: this FKN page predates blank pages; reload the app to load the current one", Re = "cloud.attachFrame: cookies: 'native' needs the FKN browser extension; the cloud render proxy has no browser cookies", Z = (e) => e.split("#")[0] ?? "", Q = ({ iframe: e, lockdown: t, cookies: n, blank: r }) => {
|
|
392
|
-
if (r === void 0) return "";
|
|
393
|
-
if (typeof r != "object" || !r) throw TypeError("attachFrame: blank must be an object { url }");
|
|
394
|
-
let a = Object.keys(r).find((e) => e !== "url");
|
|
395
|
-
if (a !== void 0) throw TypeError(`attachFrame: blank takes { url }, not "${a}"`);
|
|
396
|
-
let { url: o } = r, s = (() => {
|
|
397
|
-
try {
|
|
398
|
-
return typeof o == "string" ? new URL(o) : null;
|
|
399
|
-
} catch {
|
|
400
|
-
return null;
|
|
401
|
-
}
|
|
402
|
-
})();
|
|
403
|
-
if (!s || s.protocol !== "http:" && s.protocol !== "https:") throw TypeError(`attachFrame: blank.url must be an absolute http or https url, not "${String(o)}"`);
|
|
404
|
-
let c = e.getAttribute("src") ?? "";
|
|
405
|
-
if (!X(c)) throw TypeError(`attachFrame: blank needs an iframe with no src; this one has "${c}"`);
|
|
406
|
-
if (t) throw TypeError("attachFrame: blank does not combine with lockdown");
|
|
407
|
-
if (n === "native") throw TypeError("attachFrame: blank runs on the cloud render proxy, which has no browser cookies; pass cookies: 'persistent' or 'ephemeral'");
|
|
408
|
-
if (i(s.href), !Je()) throw Error("attachFrame: a blank page is served by the cloud render proxy, which this build does not configure");
|
|
409
|
-
return s.href;
|
|
410
|
-
}, ze = ({ target: e, blank: t, session: n, domains: r, attach: i }) => {
|
|
411
|
-
let a = new URL("/attach-frame", z());
|
|
412
|
-
return t ? a.searchParams.set("blank", t) : e && a.searchParams.set("url", e), n && a.searchParams.set("session", n), r.length && a.searchParams.set("domains", r.join(",")), a.searchParams.set("attach", i), a.href;
|
|
413
|
-
}, Be = (e, t) => {
|
|
414
|
-
let n = () => {
|
|
415
|
-
a(), t();
|
|
416
|
-
}, r = e.parentNode, i = new MutationObserver(() => {
|
|
417
|
-
(!e.isConnected || e.parentNode !== r) && (a(), t());
|
|
418
|
-
}), a = () => {
|
|
419
|
-
window.removeEventListener("pagehide", n), i.disconnect();
|
|
420
|
-
};
|
|
421
|
-
window.addEventListener("pagehide", n, { once: !0 }), r && i.observe(r, { childList: !0 }), e.isConnected || (a(), t());
|
|
422
|
-
}, Ve = () => H("cloud.attachFrame: the attached iframe left the document or was reloaded; attach a fresh iframe"), He = (e, t) => {
|
|
423
|
-
let n = [...e.split(";"), ...t.split(";")].map((e) => e.trim()).filter(Boolean);
|
|
424
|
-
return [...new Set(n)].join("; ");
|
|
425
|
-
}, Ue = [
|
|
426
|
-
300,
|
|
427
|
-
1200,
|
|
428
|
-
4e3
|
|
429
|
-
], $ = (e) => {
|
|
430
|
-
let t = () => {
|
|
431
|
-
if (!e.isConnected) return;
|
|
432
|
-
let t = e.style.height, n = e.getBoundingClientRect();
|
|
433
|
-
n.height && (e.style.height = `${n.height - 1}px`, setTimeout(() => {
|
|
434
|
-
e.style.height = t;
|
|
435
|
-
}, 50));
|
|
436
|
-
};
|
|
437
|
-
t();
|
|
438
|
-
for (let e of Ue) setTimeout(t, e);
|
|
439
|
-
}, We = (e) => {
|
|
440
|
-
let t = e.getAttribute("sandbox");
|
|
441
|
-
if (t === null) return;
|
|
442
|
-
let n = new Set(t.toLowerCase().split(/\s+/).filter(Boolean)), r = ["allow-scripts", "allow-same-origin"].filter((e) => !n.has(e));
|
|
443
|
-
if (r.length) throw Error(`cloud.attachFrame: the iframe's sandbox attribute must include ${r.join(" and ")} for the render proxy to load`);
|
|
444
|
-
}, Ge = async (e, t) => {
|
|
445
|
-
let n = typeof e.blank == "function" ? await V(e.blank(), Y, "cloud.attachFrame: the render proxy never became ready") : "";
|
|
446
|
-
if (typeof n != "string" || Z(n) !== Z(t)) throw d(Le, "blank", "cloud");
|
|
447
|
-
}, Ke = async (e, t) => {
|
|
448
|
-
let n = Q(e), { iframe: r, domains: a = [], permissions: s } = e;
|
|
449
|
-
if (typeof window > "u") throw Error("cloud.attachFrame needs a window realm");
|
|
450
|
-
if (!r.isConnected) throw Error("cloud.attachFrame: the iframe must be connected to the document before attaching");
|
|
451
|
-
We(r);
|
|
452
|
-
let c = r.getAttribute("src") ?? "", l = (() => {
|
|
453
|
-
if (X(c)) return null;
|
|
454
|
-
try {
|
|
455
|
-
return new URL(r.src || c, location.href);
|
|
456
|
-
} catch {
|
|
457
|
-
throw Error(`cloud.attachFrame: the iframe src is not a valid URL: ${c}`);
|
|
458
|
-
}
|
|
459
|
-
})();
|
|
460
|
-
if (l) {
|
|
461
|
-
let e = new URL("/attach-frame", z());
|
|
462
|
-
if (l.origin === e.origin && l.pathname === e.pathname) throw Error("cloud.attachFrame: this iframe is already attached; navigate with the Frame returned by that attach or use a fresh iframe");
|
|
463
|
-
}
|
|
464
|
-
let u = l?.href ?? "";
|
|
465
|
-
u && i(u);
|
|
466
|
-
let d = B(t), f = C(a), p = /* @__PURE__ */ new Set();
|
|
467
|
-
try {
|
|
468
|
-
p.add(new URL(n || u).origin);
|
|
469
|
-
} catch {}
|
|
470
|
-
let m = new AbortController(), h = r.referrerPolicy, g = r.allow, _ = crypto.randomUUID();
|
|
471
|
-
if (r.referrerPolicy = "origin", r.allow = He(T(), r.allow), r.src = ze({
|
|
472
|
-
target: u,
|
|
473
|
-
blank: n,
|
|
474
|
-
session: d,
|
|
475
|
-
domains: f,
|
|
476
|
-
attach: _
|
|
477
|
-
}), !r.contentWindow) throw Error("cloud.attachFrame: the iframe window is not available");
|
|
478
|
-
try {
|
|
479
|
-
let e = await V(P({}, {
|
|
480
|
-
key: M,
|
|
481
|
-
origin: z(),
|
|
482
|
-
transport: {
|
|
483
|
-
receive: window,
|
|
484
|
-
emit: r.contentWindow
|
|
485
|
-
},
|
|
486
|
-
unregisterSignal: m.signal,
|
|
487
|
-
revivableModules: R(o)
|
|
488
|
-
}), Ie, "cloud.attachFrame: timed out connecting to the render proxy page");
|
|
489
|
-
await V(e.ready(), Y, "cloud.attachFrame: the render proxy never became ready"), n && await Ge(e, n), (u || n) && $(r), Be(r, () => m.abort());
|
|
490
|
-
let t = k("attached frame");
|
|
491
|
-
m.signal.aborted ? t() : m.signal.addEventListener("abort", t, { once: !0 });
|
|
492
|
-
let i = r.contentWindow, a = K({
|
|
493
|
-
control: e,
|
|
494
|
-
target: n || u,
|
|
495
|
-
blank: n !== "",
|
|
496
|
-
session: d,
|
|
497
|
-
declaredHosts: f,
|
|
498
|
-
approvedOrigins: p,
|
|
499
|
-
attach: _,
|
|
500
|
-
assertLive: () => {
|
|
501
|
-
if (m.signal.aborted || !r.isConnected || r.contentWindow !== i) throw m.abort(), Ve();
|
|
502
|
-
},
|
|
503
|
-
guard: (e) => e(),
|
|
504
|
-
consent: se,
|
|
505
|
-
onNavigated: () => $(r),
|
|
506
|
-
relay: G({
|
|
507
|
-
from: () => i,
|
|
508
|
-
origin: z(),
|
|
509
|
-
attach: _,
|
|
510
|
-
signal: m.signal
|
|
511
|
-
})
|
|
512
|
-
});
|
|
513
|
-
return s?.length && await a.requestPermissions(s), a;
|
|
514
|
-
} catch (e) {
|
|
515
|
-
throw m.abort(), r.referrerPolicy = h, r.allow = g, r.src = u || "about:blank", e;
|
|
516
|
-
}
|
|
517
|
-
}, qe = (async (e) => {
|
|
518
|
-
let { kind: t, cookies: n } = h(e);
|
|
519
|
-
if (n === "native") throw TypeError(Re);
|
|
520
|
-
return t === "window" ? Fe(e, n) : Ke(e, n);
|
|
521
|
-
}), Je = () => typeof window < "u" && !0, Ye = async () => {
|
|
522
|
-
let e = await D.then((e) => e.cloud.quota());
|
|
523
|
-
return {
|
|
524
|
-
premium: e.premium,
|
|
525
|
-
overQuota: e.overQuota,
|
|
526
|
-
throttled: e.overQuota && !e.premium,
|
|
527
|
-
usedBytes: e.usedBytes,
|
|
528
|
-
limitBytes: e.limitBytes,
|
|
529
|
-
remainingBytes: e.remaining,
|
|
530
|
-
bytesPerSecond: e.bytesPerSecond,
|
|
531
|
-
bitsPerSecond: e.bytesPerSecond * 8
|
|
532
|
-
};
|
|
533
|
-
}, Xe = /* @__PURE__ */ e({
|
|
534
|
-
attachFrame: () => qe,
|
|
535
|
-
available: () => Ze,
|
|
536
|
-
dgram: () => ae,
|
|
537
|
-
dns: () => ne,
|
|
538
|
-
fetch: () => A,
|
|
539
|
-
fs: () => re,
|
|
540
|
-
http: () => oe,
|
|
541
|
-
net: () => ie,
|
|
542
|
-
quota: () => Ye
|
|
543
|
-
}), Ze = () => w;
|
|
544
|
-
//#endregion
|
|
545
|
-
export { Q as a, qe as i, Xe as n, Ye as r, Ze as t };
|
package/extension-BOBuYwZc.js
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, A as n, B as r, C as i, E as a, F as o, G as s, H as c, I as l, J as ee, K as te, L as ne, M as re, N as u, O as d, P as f, Q as p, R as m, S as h, T as g, U as _, V as v, W as y, X as b, Y as x, Z as S, _ as C, a as w, at as T, b as E, ct as D, dt as O, et as k, ft as A, g as j, h as M, i as N, it as ie, lt as P, n as F, nt as I, pt as L, q as R, r as z, st as B, t as V, tt as H, ut as U, v as W, w as G, x as K, y as q, z as J } from "./lib-DppqX10G.js";
|
|
3
|
-
import { o as Y, p as ae } from "./api-DIgTslNb.js";
|
|
4
|
-
import { t as oe } from "./proxy-Dixbk1WL.js";
|
|
5
|
-
import { available as se, fetch as ce } from "./desktop.js";
|
|
6
|
-
//#region src/extension-prompt.ts
|
|
7
|
-
var X = async (e) => {
|
|
8
|
-
if (typeof window > "u") return !1;
|
|
9
|
-
if (t()) return !0;
|
|
10
|
-
let n = await Y, r = null, i = new Promise((e) => {
|
|
11
|
-
r = () => {
|
|
12
|
-
t() && e(!0);
|
|
13
|
-
}, p.addEventListener("statuschange", r);
|
|
14
|
-
}), a = n.installPrompt.show(e).then(() => !1), o = await Promise.race([i, a]);
|
|
15
|
-
return r && p.removeEventListener("statuschange", r), await n.installPrompt.hide().catch(() => {}), o;
|
|
16
|
-
}, Z = null;
|
|
17
|
-
H(() => (Z ||= X().then(() => void 0).finally(() => {
|
|
18
|
-
Z = null;
|
|
19
|
-
}), Z));
|
|
20
|
-
//#endregion
|
|
21
|
-
//#region src/auto.ts
|
|
22
|
-
var Q = () => typeof document < "u" && t(), le = async (e, t) => {
|
|
23
|
-
if (ae(e), t?.credentials === "include") {
|
|
24
|
-
if (typeof document > "u") throw Error("fetch with credentials needs the FKN extension, which only exists in window realms");
|
|
25
|
-
return c(e, t);
|
|
26
|
-
}
|
|
27
|
-
return Q() ? c(e, {
|
|
28
|
-
...t,
|
|
29
|
-
credentials: "omit"
|
|
30
|
-
}) : se() ? ce(e, t) : oe(e, t);
|
|
31
|
-
}, $ = /* @__PURE__ */ e({
|
|
32
|
-
ATTACH_FRAME_EVENT_KEY: () => N,
|
|
33
|
-
CATEGORIES: () => i,
|
|
34
|
-
EXTENSION_ABI: () => 3,
|
|
35
|
-
ExtensionOperationUnsupportedError: () => ie,
|
|
36
|
-
ExtensionOutdatedError: () => T,
|
|
37
|
-
FORGEABLE_HEADERS: () => ee,
|
|
38
|
-
FrameWindowBlockedError: () => M,
|
|
39
|
-
FrameWindowRefusedError: () => j,
|
|
40
|
-
LOCATOR_DENIED: () => d,
|
|
41
|
-
LOCATOR_ERROR: () => u,
|
|
42
|
-
LOCATOR_INVALID: () => o,
|
|
43
|
-
LOCATOR_UNSUPPORTED: () => g,
|
|
44
|
-
PERMISSION_DENIED: () => V,
|
|
45
|
-
REQUIRED_EXTENSION_ABI: () => 0,
|
|
46
|
-
TimeoutError: () => G,
|
|
47
|
-
assertAttachableFrameUrl: () => E,
|
|
48
|
-
assertFetchableUrl: () => v,
|
|
49
|
-
assertForgeableHeaders: () => x,
|
|
50
|
-
assertLockdownApplicable: () => K,
|
|
51
|
-
assertOneCookieIdentity: () => b,
|
|
52
|
-
attachFrame: () => w,
|
|
53
|
-
attachFramePermission: () => C,
|
|
54
|
-
available: () => Q,
|
|
55
|
-
box: () => P,
|
|
56
|
-
cookies: () => J,
|
|
57
|
-
createFrame: () => W,
|
|
58
|
-
createVideoElementHandle: () => U,
|
|
59
|
-
events: () => p,
|
|
60
|
-
extension: () => p,
|
|
61
|
-
fetch: () => c,
|
|
62
|
-
fetchCredentialedPermission: () => _,
|
|
63
|
-
fetchLocalPermission: () => y,
|
|
64
|
-
fetchPermission: () => s,
|
|
65
|
-
gotoPermission: () => q,
|
|
66
|
-
handleRevivableModules: () => D,
|
|
67
|
-
hasForgedCookie: () => S,
|
|
68
|
-
isBlockedFetchUrl: () => te,
|
|
69
|
-
isBlockedFrameUrl: () => h,
|
|
70
|
-
isExtensionExposed: () => t,
|
|
71
|
-
isLocalNetworkUrl: () => R,
|
|
72
|
-
isLocatorDenied: () => f,
|
|
73
|
-
isLocatorInvalid: () => n,
|
|
74
|
-
isLocatorUnsupported: () => a,
|
|
75
|
-
isPermissionDenied: () => F,
|
|
76
|
-
isTerminalError: () => re,
|
|
77
|
-
isType: () => O,
|
|
78
|
-
modifyRequestHeadersPermission: () => l,
|
|
79
|
-
permissions: () => z,
|
|
80
|
-
promptInstall: () => X,
|
|
81
|
-
readCookiePermission: () => r,
|
|
82
|
-
readExtensionHandshake: () => k,
|
|
83
|
-
removeRequestHeaderRule: () => ne,
|
|
84
|
-
revive: () => A,
|
|
85
|
-
setMissingExtensionHandler: () => H,
|
|
86
|
-
setRequestHeaderRule: () => m,
|
|
87
|
-
supportsOperation: () => B,
|
|
88
|
-
type: () => L,
|
|
89
|
-
waitForExtensionExposure: () => I
|
|
90
|
-
});
|
|
91
|
-
//#endregion
|
|
92
|
-
export { X as i, le as n, Q as r, $ as t };
|
package/extension-hoUs5yJ7.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require("./rolldown-runtime-BIInC43l.cjs"),t=require("./lib-CfdmsLoI.cjs"),n=require("./api--LOXTOpv.cjs"),r=require("./proxy-CFK-KiwE.cjs"),i=require("./desktop.cjs");var a=async e=>{if(typeof window>`u`)return!1;if(t.$())return!0;let r=await n.o,i=null,a=new Promise(e=>{i=()=>{t.$()&&e(!0)},t.Q.addEventListener(`statuschange`,i)}),o=r.installPrompt.show(e).then(()=>!1),s=await Promise.race([a,o]);return i&&t.Q.removeEventListener(`statuschange`,i),await r.installPrompt.hide().catch(()=>{}),s},o=null;t.tt(()=>(o||=a().then(()=>void 0).finally(()=>{o=null}),o));var s=()=>typeof document<`u`&&t.$(),c=async(e,a)=>{if(n.p(e),a?.credentials===`include`){if(typeof document>`u`)throw Error(`fetch with credentials needs the FKN extension, which only exists in window realms`);return t.H(e,a)}return s()?t.H(e,{...a,credentials:`omit`}):i.available()?i.fetch(e,a):r.t(e,a)},l=e.t({ATTACH_FRAME_EVENT_KEY:()=>t.i,CATEGORIES:()=>t.C,EXTENSION_ABI:()=>3,ExtensionOperationUnsupportedError:()=>t.it,ExtensionOutdatedError:()=>t.at,FORGEABLE_HEADERS:()=>t.J,FrameWindowBlockedError:()=>t.h,FrameWindowRefusedError:()=>t.g,LOCATOR_DENIED:()=>t.O,LOCATOR_ERROR:()=>t.N,LOCATOR_INVALID:()=>t.F,LOCATOR_UNSUPPORTED:()=>t.T,PERMISSION_DENIED:()=>t.t,REQUIRED_EXTENSION_ABI:()=>0,TimeoutError:()=>t.w,assertAttachableFrameUrl:()=>t.b,assertFetchableUrl:()=>t.V,assertForgeableHeaders:()=>t.Y,assertLockdownApplicable:()=>t.x,assertOneCookieIdentity:()=>t.X,attachFrame:()=>t.a,attachFramePermission:()=>t._,available:()=>s,box:()=>t.lt,cookies:()=>t.z,createFrame:()=>t.v,createVideoElementHandle:()=>t.ut,events:()=>t.Q,extension:()=>t.Q,fetch:()=>t.H,fetchCredentialedPermission:()=>t.U,fetchLocalPermission:()=>t.W,fetchPermission:()=>t.G,gotoPermission:()=>t.y,handleRevivableModules:()=>t.ct,hasForgedCookie:()=>t.Z,isBlockedFetchUrl:()=>t.K,isBlockedFrameUrl:()=>t.S,isExtensionExposed:()=>t.$,isLocalNetworkUrl:()=>t.q,isLocatorDenied:()=>t.P,isLocatorInvalid:()=>t.A,isLocatorUnsupported:()=>t.E,isPermissionDenied:()=>t.n,isTerminalError:()=>t.M,isType:()=>t.dt,modifyRequestHeadersPermission:()=>t.I,permissions:()=>t.r,promptInstall:()=>a,readCookiePermission:()=>t.B,readExtensionHandshake:()=>t.et,removeRequestHeaderRule:()=>t.L,revive:()=>t.ft,setMissingExtensionHandler:()=>t.tt,setRequestHeaderRule:()=>t.R,supportsOperation:()=>t.st,type:()=>t.pt,waitForExtensionExposure:()=>t.nt});Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return l}});
|