@screenreader-speech-capture/bridge 0.2.0 → 0.2.1
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/cli.mjs +1056 -783
- package/dist/ui/adapter-node.js +1 -1
- package/dist/ui/client/ui/_app/immutable/chunks/BEImj5AP.js +1 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BEImj5AP.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BEImj5AP.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BLbj0ykL.js +1 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BLbj0ykL.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BLbj0ykL.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/B__KpOuX.js +3 -0
- package/dist/ui/client/ui/_app/immutable/chunks/B__KpOuX.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/B__KpOuX.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BkoDSEOx.js +1 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BkoDSEOx.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BkoDSEOx.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BlC5mir6.js +1 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BlC5mir6.js.br +2 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BlC5mir6.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BquQTeuV.js +1 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BquQTeuV.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BquQTeuV.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BtnuBvK5.js +1 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BtnuBvK5.js.br +1 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BtnuBvK5.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/{Dk73DTz3.js → BuwZGWCm.js} +21 -21
- package/dist/ui/client/ui/_app/immutable/chunks/BuwZGWCm.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BuwZGWCm.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Bxh3K0TK.js +1 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Bxh3K0TK.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Bxh3K0TK.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/C06IiL6m.js +1 -0
- package/dist/ui/client/ui/_app/immutable/chunks/C06IiL6m.js.br +2 -0
- package/dist/ui/client/ui/_app/immutable/chunks/C06IiL6m.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/{hhZsYtkz.js → CAZ56n62.js} +3 -3
- package/dist/ui/client/ui/_app/immutable/chunks/CAZ56n62.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CAZ56n62.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CTnnxqUD.js +1 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CTnnxqUD.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CTnnxqUD.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DRNNJMYk.js +5 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DRNNJMYk.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DRNNJMYk.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/JsC3ASJq.js +3 -0
- package/dist/ui/client/ui/_app/immutable/chunks/JsC3ASJq.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/JsC3ASJq.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/{DU8ibkb0.js → OAsMjdHF.js} +13 -13
- package/dist/ui/client/ui/_app/immutable/chunks/OAsMjdHF.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/OAsMjdHF.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/R_4U_-zb.js +33 -0
- package/dist/ui/client/ui/_app/immutable/chunks/R_4U_-zb.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/R_4U_-zb.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/UKukklIc.js +1 -0
- package/dist/ui/client/ui/_app/immutable/chunks/UKukklIc.js.br +2 -0
- package/dist/ui/client/ui/_app/immutable/chunks/UKukklIc.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/{DoG5cwE3.js → VxDST09k.js} +1 -1
- package/dist/ui/client/ui/_app/immutable/chunks/VxDST09k.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/VxDST09k.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/{CEGGem4o.js → vPs9G1oN.js} +36 -36
- package/dist/ui/client/ui/_app/immutable/chunks/vPs9G1oN.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/vPs9G1oN.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/{Bq3k_s8n.js → w5i9ZoX_.js} +2 -2
- package/dist/ui/client/ui/_app/immutable/chunks/w5i9ZoX_.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/w5i9ZoX_.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.CHExvln1.js +2 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.CHExvln1.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.CHExvln1.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/start.4hiWLKwq.js +2 -0
- package/dist/ui/client/ui/_app/immutable/entry/start.4hiWLKwq.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/start.4hiWLKwq.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.DENUQERM.js +1 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.DENUQERM.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.DENUQERM.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/1.BBl7b45u.js +1 -0
- package/dist/ui/client/ui/_app/immutable/nodes/1.BBl7b45u.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/1.BBl7b45u.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.4VpydhMh.js +1 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.4VpydhMh.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.4VpydhMh.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.D9AmPYb5.js +5 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.D9AmPYb5.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.D9AmPYb5.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/4.DxNIrNp_.js +180 -0
- package/dist/ui/client/ui/_app/immutable/nodes/4.DxNIrNp_.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/4.DxNIrNp_.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/5.Cm6I95kb.js +6 -0
- package/dist/ui/client/ui/_app/immutable/nodes/5.Cm6I95kb.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/5.Cm6I95kb.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/6.D9jpgBJB.js +6 -0
- package/dist/ui/client/ui/_app/immutable/nodes/6.D9jpgBJB.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/6.D9jpgBJB.js.gz +0 -0
- package/dist/ui/client/ui/_app/version.json +1 -1
- package/dist/ui/client/ui/_app/version.json.br +0 -0
- package/dist/ui/client/ui/_app/version.json.gz +0 -0
- package/dist/ui/server/.vite/manifest.json +68 -36
- package/dist/ui/server/chunks/{composition.js → app-context.js} +5 -965
- package/dist/ui/server/chunks/app-context.js.map +1 -0
- package/dist/ui/server/chunks/config2.js +106 -0
- package/dist/ui/server/chunks/config2.js.map +1 -0
- package/dist/ui/server/chunks/dialog.js +1 -1
- package/dist/ui/server/chunks/instance.js +3 -3
- package/dist/ui/server/chunks/internal.js +1 -1
- package/dist/ui/server/chunks/outlined-button.js +1 -1
- package/dist/ui/server/chunks/outlined-text-field.js +1 -1
- package/dist/ui/server/chunks/redispatch-event.js +1 -1
- package/dist/ui/server/chunks/rolldown-runtime.js +12 -0
- package/dist/ui/server/chunks/rules.js +178 -0
- package/dist/ui/server/chunks/rules.js.map +1 -0
- package/dist/ui/server/chunks/sessions.remote.js +1 -11
- package/dist/ui/server/chunks/sessions.remote.js.map +1 -1
- package/dist/ui/server/chunks/setup.js +86 -0
- package/dist/ui/server/chunks/setup.js.map +1 -0
- package/dist/ui/server/chunks/{icon-button.js → speech.js} +42 -3
- package/dist/ui/server/chunks/speech.js.map +1 -0
- package/dist/ui/server/chunks/src.js +20 -155
- package/dist/ui/server/chunks/src.js.map +1 -1
- package/dist/ui/server/chunks/static-html.js +1 -1
- package/dist/ui/server/chunks/text-button.js +1 -1
- package/dist/ui/server/chunks/vocabulary.js +19 -0
- package/dist/ui/server/chunks/vocabulary.js.map +1 -0
- package/dist/ui/server/entries/endpoints/api/config/_server.ts.js +3 -2
- package/dist/ui/server/entries/endpoints/api/config/_server.ts.js.map +1 -1
- package/dist/ui/server/entries/endpoints/api/input/keys/_server.ts.js +14 -5
- package/dist/ui/server/entries/endpoints/api/input/keys/_server.ts.js.map +1 -1
- package/dist/ui/server/entries/endpoints/api/markers/_server.ts.js +3 -2
- package/dist/ui/server/entries/endpoints/api/markers/_server.ts.js.map +1 -1
- package/dist/ui/server/entries/endpoints/api/sessions/_server.ts.js +2 -1
- package/dist/ui/server/entries/endpoints/api/sessions/_server.ts.js.map +1 -1
- package/dist/ui/server/entries/endpoints/api/speech/_server.ts.js +10 -13
- package/dist/ui/server/entries/endpoints/api/speech/_server.ts.js.map +1 -1
- package/dist/ui/server/entries/endpoints/api/status/_server.ts.js +2 -1
- package/dist/ui/server/entries/endpoints/api/status/_server.ts.js.map +1 -1
- package/dist/ui/server/entries/hooks.server.js +29 -25
- package/dist/ui/server/entries/hooks.server.js.map +1 -1
- package/dist/ui/server/entries/pages/_layout.svelte.js +749 -3
- package/dist/ui/server/entries/pages/_layout.svelte.js.map +1 -1
- package/dist/ui/server/entries/pages/_page.svelte.js +34 -25
- package/dist/ui/server/entries/pages/_page.svelte.js.map +1 -1
- package/dist/ui/server/entries/pages/settings/_page.svelte.js +5 -3
- package/dist/ui/server/entries/pages/settings/_page.svelte.js.map +1 -1
- package/dist/ui/server/entries/pages/setup/_page.svelte.js +2 -1
- package/dist/ui/server/entries/pages/setup/_page.svelte.js.map +1 -1
- package/dist/ui/server/entries/pages/setup/instructions/_page.svelte.js +3 -2
- package/dist/ui/server/entries/pages/setup/instructions/_page.svelte.js.map +1 -1
- package/dist/ui/server/manifest-full.js +1 -1
- package/dist/ui/server/manifest.js +1 -1
- package/dist/ui/server/nodes/0.js +1 -1
- package/dist/ui/server/nodes/1.js +1 -1
- package/dist/ui/server/nodes/2.js +1 -1
- package/dist/ui/server/nodes/3.js +1 -1
- package/dist/ui/server/nodes/4.js +1 -1
- package/dist/ui/server/nodes/5.js +1 -1
- package/dist/ui/server/nodes/6.js +1 -1
- package/dist/ui/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/ui/client/ui/_app/immutable/chunks/0FroJ-XN.js +0 -3
- package/dist/ui/client/ui/_app/immutable/chunks/0FroJ-XN.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/0FroJ-XN.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/B_ZElYu_.js +0 -1
- package/dist/ui/client/ui/_app/immutable/chunks/B_ZElYu_.js.br +0 -2
- package/dist/ui/client/ui/_app/immutable/chunks/B_ZElYu_.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Bq3k_s8n.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Bq3k_s8n.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CEGGem4o.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CEGGem4o.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CVpgcnu3.js +0 -1
- package/dist/ui/client/ui/_app/immutable/chunks/CVpgcnu3.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CVpgcnu3.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Cwz551Q0.js +0 -5
- package/dist/ui/client/ui/_app/immutable/chunks/Cwz551Q0.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Cwz551Q0.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/D-2Nx62w.js +0 -1
- package/dist/ui/client/ui/_app/immutable/chunks/D-2Nx62w.js.br +0 -4
- package/dist/ui/client/ui/_app/immutable/chunks/D-2Nx62w.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DHsTyp2W.js +0 -1
- package/dist/ui/client/ui/_app/immutable/chunks/DHsTyp2W.js.br +0 -2
- package/dist/ui/client/ui/_app/immutable/chunks/DHsTyp2W.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DJvJc_zO.js +0 -33
- package/dist/ui/client/ui/_app/immutable/chunks/DJvJc_zO.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DJvJc_zO.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DU8ibkb0.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DU8ibkb0.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Dk73DTz3.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Dk73DTz3.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DoG5cwE3.js.br +0 -3
- package/dist/ui/client/ui/_app/immutable/chunks/DoG5cwE3.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Dvxhfd7j.js +0 -3
- package/dist/ui/client/ui/_app/immutable/chunks/Dvxhfd7j.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Dvxhfd7j.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DzInmTUe.js +0 -1
- package/dist/ui/client/ui/_app/immutable/chunks/DzInmTUe.js.br +0 -1
- package/dist/ui/client/ui/_app/immutable/chunks/DzInmTUe.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/hhZsYtkz.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/hhZsYtkz.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.Bic9wlww.js +0 -2
- package/dist/ui/client/ui/_app/immutable/entry/app.Bic9wlww.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.Bic9wlww.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/start.DqIv9xYX.js +0 -2
- package/dist/ui/client/ui/_app/immutable/entry/start.DqIv9xYX.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/start.DqIv9xYX.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.IqK6bsxB.js +0 -1
- package/dist/ui/client/ui/_app/immutable/nodes/0.IqK6bsxB.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.IqK6bsxB.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/1.C81neQJL.js +0 -1
- package/dist/ui/client/ui/_app/immutable/nodes/1.C81neQJL.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/1.C81neQJL.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.CmlyeAx_.js +0 -1
- package/dist/ui/client/ui/_app/immutable/nodes/2.CmlyeAx_.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.CmlyeAx_.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.DYZ3H5TS.js +0 -5
- package/dist/ui/client/ui/_app/immutable/nodes/3.DYZ3H5TS.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.DYZ3H5TS.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/4.Lwlmq1AY.js +0 -180
- package/dist/ui/client/ui/_app/immutable/nodes/4.Lwlmq1AY.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/4.Lwlmq1AY.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/5.rBMVkFpN.js +0 -6
- package/dist/ui/client/ui/_app/immutable/nodes/5.rBMVkFpN.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/5.rBMVkFpN.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/6.nui9awM2.js +0 -6
- package/dist/ui/client/ui/_app/immutable/nodes/6.nui9awM2.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/6.nui9awM2.js.gz +0 -0
- package/dist/ui/server/chunks/composition.js.map +0 -1
- package/dist/ui/server/chunks/icon-button.js.map +0 -1
|
@@ -212,7 +212,7 @@ function server_data_serializer(event, state) {
|
|
|
212
212
|
let promise_id = 1;
|
|
213
213
|
let max_nodes = -1;
|
|
214
214
|
const iterator = create_async_iterator();
|
|
215
|
-
const global = "
|
|
215
|
+
const global = "__sveltekit_4t9656";
|
|
216
216
|
/** @param {number} index */
|
|
217
217
|
function get_replacer(index) {
|
|
218
218
|
/** @param {any} thing */
|
|
@@ -1485,7 +1485,7 @@ async function render_response({ branch, fetched, page_config, status, error = n
|
|
|
1485
1485
|
"crossorigin"
|
|
1486
1486
|
]);
|
|
1487
1487
|
}
|
|
1488
|
-
const global = "
|
|
1488
|
+
const global = "__sveltekit_4t9656";
|
|
1489
1489
|
const { data, chunks } = data_serializer.get_data(csp);
|
|
1490
1490
|
if (page_config.ssr && page_config.csr) body += `\n\t\t\t${fetched.map((item) => serialize_data(item, resolve_opts.filterSerializedResponseHeaders, is_prerendering(state))).join("\n ")}`;
|
|
1491
1491
|
if (page_config.csr && client) {
|
|
@@ -1509,7 +1509,7 @@ async function render_response({ branch, fetched, page_config, status, error = n
|
|
|
1509
1509
|
}
|
|
1510
1510
|
}
|
|
1511
1511
|
const blocks = [];
|
|
1512
|
-
const properties = [`base: ${base_expression}`, `version: ${s("
|
|
1512
|
+
const properties = [`base: ${base_expression}`, `version: ${s("1796368274138")}`];
|
|
1513
1513
|
if (assets) properties.push(`assets: ${s(assets)}`);
|
|
1514
1514
|
if (client.uses_env_dynamic_public) properties.push(`env: ${load_env_eagerly ? "null" : uneval(rendered_env)}`);
|
|
1515
1515
|
if (chunks) {
|
|
@@ -2679,7 +2679,7 @@ function is_prerendering(state) {
|
|
|
2679
2679
|
* @param {Response} response
|
|
2680
2680
|
*/
|
|
2681
2681
|
function with_version_header(response) {
|
|
2682
|
-
response.headers.set("x-sveltekit-version", "
|
|
2682
|
+
response.headers.set("x-sveltekit-version", "1796368274138");
|
|
2683
2683
|
return response;
|
|
2684
2684
|
}
|
|
2685
2685
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as t, j as __decorate, k as i, x as T } from "./app-context.js";
|
|
2
2
|
import { n as Button, t as styles$2 } from "./text-button.js";
|
|
3
3
|
import { n as styles$3 } from "./redispatch-event.js";
|
|
4
4
|
// ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/internal/filled-button.js
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as t$1, D as r$1, O as n$2, S as Z, T as e$2, _ as i$2, a as mixinFormAssociated, b as E, d as EASING, g as t$2, h as i$4, i as getFormValue, j as __decorate, k as i$3, m as e$3, o as internals, p as e$1, s as mixinElementInternals, u as mixinDelegatesAria, v as A, x as T, y as B } from "./app-context.js";
|
|
2
2
|
import { r as o$1 } from "./text-button.js";
|
|
3
3
|
import { n as u$1, t as i$5 } from "./static-html.js";
|
|
4
4
|
import { t as redispatchEvent } from "./redispatch-event.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as t, _ as i, j as __decorate, k as i$1, x as T } from "./app-context.js";
|
|
2
2
|
// ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/elevation/internal/elevation.js
|
|
3
3
|
/**
|
|
4
4
|
* @license
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// \0rolldown/runtime.js
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __exportAll = (all, flags) => {
|
|
4
|
+
let target = Object.setPrototypeOf({}, null);
|
|
5
|
+
for (var name in all) __defProp(target, name, {
|
|
6
|
+
get: all[name],
|
|
7
|
+
enumerable: true
|
|
8
|
+
});
|
|
9
|
+
if (!(flags & 1)) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
10
|
+
return flags & 2 ? target : Object.preventExtensions(target);
|
|
11
|
+
};
|
|
12
|
+
export { __exportAll as t };
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
// ../shared/src/rules/limits.ts
|
|
2
|
+
/** Ranges of the speech endpoints. */
|
|
3
|
+
var API_LIMITS = {
|
|
4
|
+
/** `GET /speech?limit=`: the default and the most a caller may ask for. */
|
|
5
|
+
list: {
|
|
6
|
+
default: 1e3,
|
|
7
|
+
max: 1e4
|
|
8
|
+
},
|
|
9
|
+
wait: {
|
|
10
|
+
/** `GET /speech/wait?timeoutMs=`. */
|
|
11
|
+
timeoutMs: {
|
|
12
|
+
default: 5e3,
|
|
13
|
+
max: 3e5
|
|
14
|
+
},
|
|
15
|
+
/** Entries the timeout answer holds at most: the last ones seen. */
|
|
16
|
+
seen: 1e3,
|
|
17
|
+
/** Longest `regex`. */
|
|
18
|
+
regexLength: 500
|
|
19
|
+
},
|
|
20
|
+
/** Longest marker label (trimmed). */
|
|
21
|
+
markerLength: 1e3,
|
|
22
|
+
/** Longest session `name`, `run` or client name (trimmed). */
|
|
23
|
+
sessionLabelLength: 1e3,
|
|
24
|
+
/** `POST /input/click` and `POST /input/keys`. */
|
|
25
|
+
input: {
|
|
26
|
+
/** Largest absolute screen coordinate (physical pixels). */
|
|
27
|
+
coordinate: 1e5,
|
|
28
|
+
/** Pause between the chords of a sequence. */
|
|
29
|
+
delayMs: {
|
|
30
|
+
default: 50,
|
|
31
|
+
max: 1e4
|
|
32
|
+
},
|
|
33
|
+
/** Most chords in one request. */
|
|
34
|
+
maxKeys: 100,
|
|
35
|
+
/** Longest `title` of `POST /input/focus`. */
|
|
36
|
+
focusTitleLength: 200
|
|
37
|
+
},
|
|
38
|
+
/**
|
|
39
|
+
* `capture` of `POST /input/click` and `POST /input/keys` (and the client's `record()`, which
|
|
40
|
+
* uses the same defaults): the defaults and ranges in milliseconds.
|
|
41
|
+
*/
|
|
42
|
+
capture: {
|
|
43
|
+
/** Silence that ends the capture. */
|
|
44
|
+
quietForMs: {
|
|
45
|
+
default: 500,
|
|
46
|
+
min: 1,
|
|
47
|
+
max: 6e4
|
|
48
|
+
},
|
|
49
|
+
/** How long the first speech may take after the input. */
|
|
50
|
+
firstWithinMs: {
|
|
51
|
+
default: 2e3,
|
|
52
|
+
max: 3e5
|
|
53
|
+
},
|
|
54
|
+
/** Longest capture, counted from the input. */
|
|
55
|
+
timeoutMs: {
|
|
56
|
+
default: 1e4,
|
|
57
|
+
max: 3e5
|
|
58
|
+
},
|
|
59
|
+
/** Silence to wait for before the input (0: none). */
|
|
60
|
+
settleMs: {
|
|
61
|
+
default: 0,
|
|
62
|
+
max: 6e4
|
|
63
|
+
},
|
|
64
|
+
/** Entries the answer holds at most: the first ones. */
|
|
65
|
+
entries: 1e4
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
/** Ranges of the settings (`GET` / `PUT /config`). */
|
|
69
|
+
var CONFIG_LIMITS = {
|
|
70
|
+
port: {
|
|
71
|
+
min: 0,
|
|
72
|
+
max: 65535
|
|
73
|
+
},
|
|
74
|
+
maxLineBytes: {
|
|
75
|
+
min: 1024,
|
|
76
|
+
max: 16777216
|
|
77
|
+
},
|
|
78
|
+
maxEntries: {
|
|
79
|
+
min: 1,
|
|
80
|
+
max: 1e6
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* An exact npm version (`1.56.1`, `1.57.0-beta-1`): `playwright.version` ends up on an
|
|
85
|
+
* `npm install` command line, so nothing else may get through.
|
|
86
|
+
*/
|
|
87
|
+
var EXACT_VERSION_PATTERN = /^\d+\.\d+\.\d+(-[0-9A-Za-z.-]+)?$/;
|
|
88
|
+
/** A host name without port or scheme, or `*` (`http.allowedHosts`). */
|
|
89
|
+
var HOST_NAME_PATTERN = /^(\*|[A-Za-z0-9]([A-Za-z0-9.-]*[A-Za-z0-9])?)$/;
|
|
90
|
+
/** Whether `text` is a usable label: not empty after trimming, at most `max` characters trimmed. */
|
|
91
|
+
var isTrimmedLabel = (text, max) => {
|
|
92
|
+
const trimmed = text.trim();
|
|
93
|
+
return trimmed !== "" && trimmed.length <= max;
|
|
94
|
+
};
|
|
95
|
+
// ../shared/src/rules/key-chord.ts
|
|
96
|
+
/**
|
|
97
|
+
* The key names of `POST /input/keys` (docs/usage/native-input.md#key-names). The bridge parses
|
|
98
|
+
* chords with this rule, and the CLI checks them before sending and lists the names in `--help`,
|
|
99
|
+
* so both use this one copy. Like `text-match.ts`, it belongs to the contract, not to either side.
|
|
100
|
+
*/
|
|
101
|
+
var DIGITS = [
|
|
102
|
+
"0",
|
|
103
|
+
"1",
|
|
104
|
+
"2",
|
|
105
|
+
"3",
|
|
106
|
+
"4",
|
|
107
|
+
"5",
|
|
108
|
+
"6",
|
|
109
|
+
"7",
|
|
110
|
+
"8",
|
|
111
|
+
"9"
|
|
112
|
+
];
|
|
113
|
+
var FUNCTION_KEYS = [
|
|
114
|
+
"f1",
|
|
115
|
+
"f2",
|
|
116
|
+
"f3",
|
|
117
|
+
"f4",
|
|
118
|
+
"f5",
|
|
119
|
+
"f6",
|
|
120
|
+
"f7",
|
|
121
|
+
"f8",
|
|
122
|
+
"f9",
|
|
123
|
+
"f10",
|
|
124
|
+
"f11",
|
|
125
|
+
"f12"
|
|
126
|
+
];
|
|
127
|
+
var LETTERS = "abcdefghijklmnopqrstuvwxyz".split("");
|
|
128
|
+
/** Keys that can be held down while another key is pressed. `Insert` and `CapsLock` are the screen reader keys. */
|
|
129
|
+
var MODIFIER_KEYS = [
|
|
130
|
+
"control",
|
|
131
|
+
"shift",
|
|
132
|
+
"alt",
|
|
133
|
+
"win",
|
|
134
|
+
"insert",
|
|
135
|
+
"capslock"
|
|
136
|
+
];
|
|
137
|
+
/**
|
|
138
|
+
* The keys of the numeric keypad (API 1.30), which NVDA's desktop layout and JAWS use for
|
|
139
|
+
* reading commands. With NumLock off they are those commands, with NumLock on they type.
|
|
140
|
+
*/
|
|
141
|
+
var NUMPAD_KEYS = [
|
|
142
|
+
...DIGITS.map((digit) => `numpad${digit}`),
|
|
143
|
+
"numpadplus",
|
|
144
|
+
"numpadminus",
|
|
145
|
+
"numpadmultiply",
|
|
146
|
+
"numpaddivide",
|
|
147
|
+
"numpaddecimal",
|
|
148
|
+
"numpadenter"
|
|
149
|
+
];
|
|
150
|
+
/** Keys with a name, besides `a`–`z` and `0`–`9`. */
|
|
151
|
+
var NAMED_KEYS = [
|
|
152
|
+
"enter",
|
|
153
|
+
"tab",
|
|
154
|
+
"escape",
|
|
155
|
+
"space",
|
|
156
|
+
"backspace",
|
|
157
|
+
"delete",
|
|
158
|
+
"up",
|
|
159
|
+
"down",
|
|
160
|
+
"left",
|
|
161
|
+
"right",
|
|
162
|
+
"home",
|
|
163
|
+
"end",
|
|
164
|
+
"pageup",
|
|
165
|
+
"pagedown",
|
|
166
|
+
...FUNCTION_KEYS,
|
|
167
|
+
...NUMPAD_KEYS
|
|
168
|
+
];
|
|
169
|
+
[
|
|
170
|
+
...MODIFIER_KEYS,
|
|
171
|
+
...NAMED_KEYS,
|
|
172
|
+
...LETTERS,
|
|
173
|
+
...DIGITS
|
|
174
|
+
];
|
|
175
|
+
new Set(MODIFIER_KEYS);
|
|
176
|
+
export { isTrimmedLabel as a, HOST_NAME_PATTERN as i, CONFIG_LIMITS as n, EXACT_VERSION_PATTERN as r, API_LIMITS as t };
|
|
177
|
+
|
|
178
|
+
//# sourceMappingURL=rules.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rules.js","names":[],"sources":["../../../../shared/src/rules/limits.ts","../../../../shared/src/rules/key-chord.ts"],"sourcesContent":["// Limits and patterns of the HTTP API, used by the bridge (to check), the client and the schemas\n// (so docs/usage/openapi.yaml shows them).\n\n/** Ranges of the speech endpoints. */\nexport const API_LIMITS = {\n /** `GET /speech?limit=`: the default and the most a caller may ask for. */\n list: { default: 1000, max: 10_000 },\n wait: {\n /** `GET /speech/wait?timeoutMs=`. */\n timeoutMs: { default: 5000, max: 300_000 },\n /** Entries the timeout answer holds at most: the last ones seen. */\n seen: 1000,\n /** Longest `regex`. */\n regexLength: 500,\n },\n /** Longest marker label (trimmed). */\n markerLength: 1000,\n /** Longest session `name`, `run` or client name (trimmed). */\n sessionLabelLength: 1000,\n /** `POST /input/click` and `POST /input/keys`. */\n input: {\n /** Largest absolute screen coordinate (physical pixels). */\n coordinate: 100_000,\n /** Pause between the chords of a sequence. */\n delayMs: { default: 50, max: 10_000 },\n /** Most chords in one request. */\n maxKeys: 100,\n /** Longest `title` of `POST /input/focus`. */\n focusTitleLength: 200,\n },\n /**\n * `capture` of `POST /input/click` and `POST /input/keys` (and the client's `record()`, which\n * uses the same defaults): the defaults and ranges in milliseconds.\n */\n capture: {\n /** Silence that ends the capture. */\n quietForMs: { default: 500, min: 1, max: 60_000 },\n /** How long the first speech may take after the input. */\n firstWithinMs: { default: 2000, max: 300_000 },\n /** Longest capture, counted from the input. */\n timeoutMs: { default: 10_000, max: 300_000 },\n /** Silence to wait for before the input (0: none). */\n settleMs: { default: 0, max: 60_000 },\n /** Entries the answer holds at most: the first ones. */\n entries: 10_000,\n },\n} as const;\n\n/** Ranges of the settings (`GET` / `PUT /config`). */\nexport const CONFIG_LIMITS = {\n port: { min: 0, max: 65_535 },\n maxLineBytes: { min: 1024, max: 16 * 1024 * 1024 },\n maxEntries: { min: 1, max: 1_000_000 },\n} as const;\n\n/**\n * An exact npm version (`1.56.1`, `1.57.0-beta-1`): `playwright.version` ends up on an\n * `npm install` command line, so nothing else may get through.\n */\nexport const EXACT_VERSION_PATTERN = /^\\d+\\.\\d+\\.\\d+(-[0-9A-Za-z.-]+)?$/;\n\n/** A host name without port or scheme, or `*` (`http.allowedHosts`). */\nexport const HOST_NAME_PATTERN = /^(\\*|[A-Za-z0-9]([A-Za-z0-9.-]*[A-Za-z0-9])?)$/;\n\n/** Whether `text` is a usable label: not empty after trimming, at most `max` characters trimmed. */\nexport const isTrimmedLabel = (text: string, max: number): boolean => {\n const trimmed = text.trim();\n return trimmed !== '' && trimmed.length <= max;\n};\n","/**\n * The key names of `POST /input/keys` (docs/usage/native-input.md#key-names). The bridge parses\n * chords with this rule, and the CLI checks them before sending and lists the names in `--help`,\n * so both use this one copy. Like `text-match.ts`, it belongs to the contract, not to either side.\n */\n\nconst DIGITS = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'] as const;\nconst FUNCTION_KEYS = [\n 'f1',\n 'f2',\n 'f3',\n 'f4',\n 'f5',\n 'f6',\n 'f7',\n 'f8',\n 'f9',\n 'f10',\n 'f11',\n 'f12',\n] as const;\n\ntype Letter =\n | 'a'\n | 'b'\n | 'c'\n | 'd'\n | 'e'\n | 'f'\n | 'g'\n | 'h'\n | 'i'\n | 'j'\n | 'k'\n | 'l'\n | 'm'\n | 'n'\n | 'o'\n | 'p'\n | 'q'\n | 'r'\n | 's'\n | 't'\n | 'u'\n | 'v'\n | 'w'\n | 'x'\n | 'y'\n | 'z';\nconst LETTERS = 'abcdefghijklmnopqrstuvwxyz'.split('') as Letter[];\n\n/** Keys that can be held down while another key is pressed. `Insert` and `CapsLock` are the screen reader keys. */\nexport const MODIFIER_KEYS = ['control', 'shift', 'alt', 'win', 'insert', 'capslock'] as const;\n\n/**\n * The keys of the numeric keypad (API 1.30), which NVDA's desktop layout and JAWS use for\n * reading commands. With NumLock off they are those commands, with NumLock on they type.\n */\nexport const NUMPAD_KEYS = [\n ...DIGITS.map((digit) => `numpad${digit}` as const),\n 'numpadplus',\n 'numpadminus',\n 'numpadmultiply',\n 'numpaddivide',\n 'numpaddecimal',\n 'numpadenter',\n] as const;\n\n/** Keys with a name, besides `a`–`z` and `0`–`9`. */\nexport const NAMED_KEYS = [\n 'enter',\n 'tab',\n 'escape',\n 'space',\n 'backspace',\n 'delete',\n 'up',\n 'down',\n 'left',\n 'right',\n 'home',\n 'end',\n 'pageup',\n 'pagedown',\n ...FUNCTION_KEYS,\n ...NUMPAD_KEYS,\n] as const;\n\n/** Aliases accepted in a chord, by their lower-case spelling. */\nexport const KEY_ALIASES: Readonly<Record<string, KeyName>> = {\n ctrl: 'control',\n windows: 'win',\n meta: 'win',\n esc: 'escape',\n return: 'enter',\n del: 'delete',\n ins: 'insert',\n pgup: 'pageup',\n pgdn: 'pagedown',\n numpaddelete: 'numpaddecimal',\n};\n\nconst KEYS: ReadonlySet<string> = new Set([...MODIFIER_KEYS, ...NAMED_KEYS, ...LETTERS, ...DIGITS]);\n\nconst isKeyName = (name: string): name is KeyName => KEYS.has(name);\n\nconst MODIFIER_SET: ReadonlySet<string> = new Set(MODIFIER_KEYS);\n\n/** A key by its canonical lower-case name: `a`–`z`, `0`–`9` or one of the lists above. */\nexport type KeyName =\n (typeof MODIFIER_KEYS)[number] | (typeof NAMED_KEYS)[number] | Letter | (typeof DIGITS)[number];\n\n/** One chord: the modifiers held down while `key` is pressed, for example `Insert+T`. */\nexport interface KeyChord {\n readonly modifiers: readonly KeyName[];\n readonly key: KeyName;\n}\n\n/** A parsed chord, or why it is invalid (callers report that in their own way). */\nexport type KeyChordResult = { ok: true; chord: KeyChord } | { ok: false; message: string };\n\n/**\n * Parses `Insert+T` or `Control+Shift+Home`: modifiers and one last key, joined with `+`, names\n * case-insensitive. Only modifiers may come before the last key, and none twice. A lone modifier\n * (`Insert`) is a chord of that key.\n */\nexport function parseKeyChord(chord: string): KeyChordResult {\n const names: KeyName[] = [];\n for (const part of chord.split('+')) {\n const lower = part.trim().toLowerCase();\n const name = KEY_ALIASES[lower] ?? lower;\n if (!isKeyName(name))\n return { ok: false, message: `unknown key \"${part.trim()}\" in \"${chord}\"` };\n names.push(name);\n }\n const key = names.pop()!;\n if (new Set(names).size !== names.length || names.includes(key)) {\n return { ok: false, message: `\"${chord}\" repeats a key` };\n }\n const notModifier = names.find((name) => !MODIFIER_SET.has(name));\n if (notModifier !== undefined) {\n return { ok: false, message: `\"${notModifier}\" in \"${chord}\" is not a modifier` };\n }\n return { ok: true, chord: { modifiers: names, key } };\n}\n"],"mappings":";;AAIA,IAAa,aAAa;;CAExB,MAAM;EAAE,SAAS;EAAM,KAAK;CAAO;CACnC,MAAM;;EAEJ,WAAW;GAAE,SAAS;GAAM,KAAK;EAAQ;;EAEzC,MAAM;;EAEN,aAAa;CACf;;CAEA,cAAc;;CAEd,oBAAoB;;CAEpB,OAAO;;EAEL,YAAY;;EAEZ,SAAS;GAAE,SAAS;GAAI,KAAK;EAAO;;EAEpC,SAAS;;EAET,kBAAkB;CACpB;;;;;CAKA,SAAS;;EAEP,YAAY;GAAE,SAAS;GAAK,KAAK;GAAG,KAAK;EAAO;;EAEhD,eAAe;GAAE,SAAS;GAAM,KAAK;EAAQ;;EAE7C,WAAW;GAAE,SAAS;GAAQ,KAAK;EAAQ;;EAE3C,UAAU;GAAE,SAAS;GAAG,KAAK;EAAO;;EAEpC,SAAS;CACX;AACF;;AAGA,IAAa,gBAAgB;CAC3B,MAAM;EAAE,KAAK;EAAG,KAAK;CAAO;CAC5B,cAAc;EAAE,KAAK;EAAM,KAAK;CAAiB;CACjD,YAAY;EAAE,KAAK;EAAG,KAAK;CAAU;AACvC;;;;;AAMA,IAAa,wBAAwB;;AAGrC,IAAa,oBAAoB;;AAGjC,IAAa,kBAAkB,MAAc,QAAyB;CACpE,MAAM,UAAU,KAAK,KAAK;CAC1B,OAAO,YAAY,MAAM,QAAQ,UAAU;AAC7C;;;;;;;AC9DA,IAAM,SAAS;CAAC;CAAK;CAAK;CAAK;CAAK;CAAK;CAAK;CAAK;CAAK;CAAK;AAAG;AAChE,IAAM,gBAAgB;CACpB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AA6BA,IAAM,UAAU,6BAA6B,MAAM,EAAE;;AAGrD,IAAa,gBAAgB;CAAC;CAAW;CAAS;CAAO;CAAO;CAAU;AAAU;;;;;AAMpF,IAAa,cAAc;CACzB,GAAG,OAAO,KAAK,UAAU,SAAS,OAAgB;CAClD;CACA;CACA;CACA;CACA;CACA;AACF;;AAGA,IAAa,aAAa;CACxB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA,GAAG;CACH,GAAG;AACL;AAgB0C;CAAC,GAAG;CAAe,GAAG;CAAY,GAAG;CAAS,GAAG;AAAM;AAIvD,IAAI,IAAI,aAAa"}
|
|
@@ -1,18 +1,8 @@
|
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime.js";
|
|
1
2
|
import "./internal.js";
|
|
2
3
|
import { p as getRequestEvent } from "./exports.js";
|
|
3
4
|
import { M as remote_module_invalid_export, j as remote_module_default_export } from "./server-errors.js";
|
|
4
5
|
import { n as query } from "./remote.js";
|
|
5
|
-
// \0rolldown/runtime.js
|
|
6
|
-
var __defProp = Object.defineProperty;
|
|
7
|
-
var __exportAll = (all, flags) => {
|
|
8
|
-
let target = Object.setPrototypeOf({}, null);
|
|
9
|
-
for (var name in all) __defProp(target, name, {
|
|
10
|
-
get: all[name],
|
|
11
|
-
enumerable: true
|
|
12
|
-
});
|
|
13
|
-
if (!(flags & 1)) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
14
|
-
return flags & 2 ? target : Object.preventExtensions(target);
|
|
15
|
-
};
|
|
16
6
|
// ../../node_modules/.pnpm/@sveltejs+kit@3.4.1_@sveltejs+vite-plugin-svelte@7.3.2_svelte@5.59.2_@typescript-eslint_728102f730ebab1d17bec5b56ce561d1/node_modules/@sveltejs/kit/src/exports/internal/server/remote-functions.js
|
|
17
7
|
/** @import { RemoteInternals } from 'types' */
|
|
18
8
|
/** @type {RemoteInternals['type'][]} */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sessions.remote.js","names":["e.remote_module_default_export","e.remote_module_invalid_export"],"sources":["../../../../../node_modules/.pnpm/@sveltejs+kit@3.4.1_@sveltejs+vite-plugin-svelte@7.3.2_svelte@5.59.2_@typescript-eslint_728102f730ebab1d17bec5b56ce561d1/node_modules/@sveltejs/kit/src/exports/internal/server/remote-functions.js","../../../src/lib/remote/sessions.remote.ts"],"sourcesContent":["/** @import { RemoteInternals } from 'types' */\nimport * as e from '../../../messages/server-errors.js';\nimport { DEV } from 'esm-env';\n\n/** @type {RemoteInternals['type'][]} */\nconst types = ['command', 'form', 'prerender', 'query', 'query_batch', 'query_live'];\n\n/**\n * @param {Record<string, any>} module\n * @param {string} file\n * @param {string} hash\n * @param {{ file: string}=} dev_decoration\n */\nexport function init_remote_functions(module, file, hash, dev_decoration) {\n\tif (module.default) {\n\t\te.remote_module_default_export({ file });\n\t}\n\n\tfor (const [name, fn] of Object.entries(module)) {\n\t\tif (!types.includes(fn?.__?.type)) {\n\t\t\te.remote_module_invalid_export({ name, file });\n\t\t}\n\n\t\tfn.__.id = `${hash}/${name}`;\n\t\tfn.__.name = name;\n\t\tfn.__.file = file;\n\t\tif (DEV && dev_decoration) {\n\t\t\tfn.__.dev_loc = {\n\t\t\t\t...dev_decoration,\n\t\t\t\t...fn.__.dev_loc\n\t\t\t};\n\t\t}\n\t}\n}\n","import { getRequestEvent, query } from '$app/server';\n\n/**\n * The sessions list (`GET /api/v1/sessions`). The monitor page's load awaits it, so its answer is\n * in the server's HTML and the browser's first `getSessions()` needs no request; the browser then\n * re-reads it with `refresh()` (`HttpSessionsApi.list`).\n */\nexport const getSessions = query(() => getRequestEvent().locals.bridge.sessions());\n"],"ignoreList":[0],"mappings":"
|
|
1
|
+
{"version":3,"file":"sessions.remote.js","names":["e.remote_module_default_export","e.remote_module_invalid_export"],"sources":["../../../../../node_modules/.pnpm/@sveltejs+kit@3.4.1_@sveltejs+vite-plugin-svelte@7.3.2_svelte@5.59.2_@typescript-eslint_728102f730ebab1d17bec5b56ce561d1/node_modules/@sveltejs/kit/src/exports/internal/server/remote-functions.js","../../../src/lib/remote/sessions.remote.ts"],"sourcesContent":["/** @import { RemoteInternals } from 'types' */\nimport * as e from '../../../messages/server-errors.js';\nimport { DEV } from 'esm-env';\n\n/** @type {RemoteInternals['type'][]} */\nconst types = ['command', 'form', 'prerender', 'query', 'query_batch', 'query_live'];\n\n/**\n * @param {Record<string, any>} module\n * @param {string} file\n * @param {string} hash\n * @param {{ file: string}=} dev_decoration\n */\nexport function init_remote_functions(module, file, hash, dev_decoration) {\n\tif (module.default) {\n\t\te.remote_module_default_export({ file });\n\t}\n\n\tfor (const [name, fn] of Object.entries(module)) {\n\t\tif (!types.includes(fn?.__?.type)) {\n\t\t\te.remote_module_invalid_export({ name, file });\n\t\t}\n\n\t\tfn.__.id = `${hash}/${name}`;\n\t\tfn.__.name = name;\n\t\tfn.__.file = file;\n\t\tif (DEV && dev_decoration) {\n\t\t\tfn.__.dev_loc = {\n\t\t\t\t...dev_decoration,\n\t\t\t\t...fn.__.dev_loc\n\t\t\t};\n\t\t}\n\t}\n}\n","import { getRequestEvent, query } from '$app/server';\n\n/**\n * The sessions list (`GET /api/v1/sessions`). The monitor page's load awaits it, so its answer is\n * in the server's HTML and the browser's first `getSessions()` needs no request; the browser then\n * re-reads it with `refresh()` (`HttpSessionsApi.list`).\n */\nexport const getSessions = query(() => getRequestEvent().locals.bridge.sessions());\n"],"ignoreList":[0],"mappings":";;;;;;;;AAKA,IAAM,QAAQ;CAAC;CAAW;CAAQ;CAAa;CAAS;CAAe;AAAY;;;;;;;AAQnF,SAAgB,sBAAsB,QAAQ,MAAM,MAAM,gBAAgB;CACzE,IAAI,OAAO,SACVA,6BAA+B,EAAE,KAAK,CAAC;CAGxC,KAAK,MAAM,CAAC,MAAM,OAAO,OAAO,QAAQ,MAAM,GAAG;EAChD,IAAI,CAAC,MAAM,SAAS,IAAI,IAAI,IAAI,GAC/BC,6BAA+B;GAAE;GAAM;EAAK,CAAC;EAG9C,GAAG,GAAG,KAAK,GAAG,KAAK,GAAG;EACtB,GAAG,GAAG,OAAO;EACb,GAAG,GAAG,OAAO;CAOd;AACD;;;;;;;;AC1BA,IAAa,cAAc,4BAAY,gBAAgB,CAAC,CAAC,OAAO,OAAO,SAAS,CAAC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
// src/lib/core/setup.ts
|
|
2
|
+
/** The keys of the check: "read the window title" in NVDA and JAWS. */
|
|
3
|
+
var CHECK_CHORD = "Insert+T";
|
|
4
|
+
/** How long the check waits for speech someone makes by hand. */
|
|
5
|
+
var LISTEN_TIMEOUT_MS = 3e4;
|
|
6
|
+
/** After the first speech, the check collects what follows until nothing came for this long. */
|
|
7
|
+
var QUIET_MS = 1e3;
|
|
8
|
+
/**
|
|
9
|
+
* How the bridge records the speech {@link CHECK_CHORD} causes: nothing within 5 s is silence, and
|
|
10
|
+
* speech that doesn't pause ends the capture after 10 s.
|
|
11
|
+
*/
|
|
12
|
+
var CHECK_CAPTURE = {
|
|
13
|
+
firstWithinMs: 5e3,
|
|
14
|
+
quietForMs: QUIET_MS,
|
|
15
|
+
timeoutMs: 1e4
|
|
16
|
+
};
|
|
17
|
+
/** The id of the screen reader heading in the Setup instructions, where the check links to. */
|
|
18
|
+
var SCREEN_READER_ID = "screen-reader-heading";
|
|
19
|
+
var DOCS_URL = "https://github.com/TimoSto/screenreader-speech-capture/blob";
|
|
20
|
+
/**
|
|
21
|
+
* A page of `docs/` on GitHub, as of the bridge's release. Only stable releases are tagged, so a
|
|
22
|
+
* preview, a development build and an unknown version read `main`.
|
|
23
|
+
*/
|
|
24
|
+
function docsUrl(version, path) {
|
|
25
|
+
return `${DOCS_URL}/${version !== null && /^\d+\.\d+\.\d+$/.test(version) ? `@screenreader-speech-capture/bridge@${version}` : "main"}/docs/${path}`;
|
|
26
|
+
}
|
|
27
|
+
/** Where the libraries behind a feature live, by the `backend` name the bridge reports. */
|
|
28
|
+
var LIBRARY_REPOS = /* @__PURE__ */ new Map([["robotjs", "https://github.com/jitsi/robotjs"], ["koffi", "https://github.com/Koromix/koffi"]]);
|
|
29
|
+
/** What the bridge itself knows about the setup, one row each. */
|
|
30
|
+
function deriveCheckRows(status) {
|
|
31
|
+
const link = (label, path) => ({
|
|
32
|
+
label,
|
|
33
|
+
href: docsUrl(status.bridge.version, path)
|
|
34
|
+
});
|
|
35
|
+
const row = (id, label, tone, state, help, library = null) => ({
|
|
36
|
+
id,
|
|
37
|
+
label,
|
|
38
|
+
tone,
|
|
39
|
+
state,
|
|
40
|
+
library,
|
|
41
|
+
help: tone === "ok" ? null : "path" in help ? link(help.label, help.path) : help
|
|
42
|
+
});
|
|
43
|
+
const { listening, port, encoding, connections } = status.tcp;
|
|
44
|
+
const voices = [...new Set(connections.flatMap(({ voice }) => voice === null ? [] : [voice]))];
|
|
45
|
+
const count = connections.length === 1 ? "1 connection" : `${connections.length} connections`;
|
|
46
|
+
const input = (id, label, { available, backend, reason }, help) => row(id, label, available ? "ok" : "warning", available ? "Available" : `Not available: ${reason ?? "no reason given"}`, help, backend === null ? null : {
|
|
47
|
+
name: backend,
|
|
48
|
+
href: LIBRARY_REPOS.get(backend) ?? null
|
|
49
|
+
});
|
|
50
|
+
const service = (id, label, { state, version }) => {
|
|
51
|
+
const [tone, words] = {
|
|
52
|
+
running: ["ok", `Running, version ${version}`],
|
|
53
|
+
starting: ["neutral", `Starting, version ${version}`],
|
|
54
|
+
stopped: ["neutral", "Off"],
|
|
55
|
+
crashed: ["warning", `Crashed, version ${version}. It restarts by itself.`],
|
|
56
|
+
failed: ["warning", `Failed, version ${version}`]
|
|
57
|
+
}[state];
|
|
58
|
+
return row(id, label, tone, words, {
|
|
59
|
+
label: "Child services",
|
|
60
|
+
path: "usage/operations.md#child-service-crashes"
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
return [
|
|
64
|
+
row("listener", "Speech listener", listening ? "ok" : "warning", listening ? `Listening on port ${port} (${encoding})` : `Not listening on port ${port}`, {
|
|
65
|
+
label: "Troubleshooting",
|
|
66
|
+
path: "usage/troubleshooting.md#speech"
|
|
67
|
+
}),
|
|
68
|
+
row("voice", "Voice connected", connections.length > 0 ? "ok" : "neutral", connections.length > 0 ? `${count}${voices.length > 0 ? ` (voice ${voices.join(", ")})` : ""}` : "None yet: the voice connects with its first words", {
|
|
69
|
+
label: "Select the voice",
|
|
70
|
+
screenReader: true
|
|
71
|
+
}),
|
|
72
|
+
input("input", "Native input", status.input.native, {
|
|
73
|
+
label: "Troubleshooting",
|
|
74
|
+
path: "usage/troubleshooting.md#browser-and-input"
|
|
75
|
+
}),
|
|
76
|
+
input("focus", "Window focus", status.input.focus, {
|
|
77
|
+
label: "Bringing the browser to the front",
|
|
78
|
+
path: "usage/native-input.md#bringing-the-browser-to-the-front"
|
|
79
|
+
}),
|
|
80
|
+
service("playwright", "Playwright server", status.playwright),
|
|
81
|
+
service("mcp", "Playwright MCP", status.mcp)
|
|
82
|
+
];
|
|
83
|
+
}
|
|
84
|
+
export { SCREEN_READER_ID as a, QUIET_MS as i, CHECK_CHORD as n, deriveCheckRows as o, LISTEN_TIMEOUT_MS as r, docsUrl as s, CHECK_CAPTURE as t };
|
|
85
|
+
|
|
86
|
+
//# sourceMappingURL=setup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup.js","names":[],"sources":["../../../src/lib/core/setup.ts"],"sourcesContent":["import type {\n CaptureOptionsDto,\n InputAvailabilityDto,\n InputCaptureDto,\n ServiceStatusDto,\n SpeechEntryDto,\n StatusDto,\n} from '@screenreader-speech-capture/shared';\nimport type { FeedState } from './speech.js';\n\n/** The keys of the check: \"read the window title\" in NVDA and JAWS. */\nexport const CHECK_CHORD = 'Insert+T';\n/** How long the check waits for speech someone makes by hand. */\nexport const LISTEN_TIMEOUT_MS = 30_000;\n/** After the first speech, the check collects what follows until nothing came for this long. */\nexport const QUIET_MS = 1000;\n/** Most entries the check shows. */\nexport const MAX_HEARD = 5;\n/**\n * How the bridge records the speech {@link CHECK_CHORD} causes: nothing within 5 s is silence, and\n * speech that doesn't pause ends the capture after 10 s.\n */\nexport const CHECK_CAPTURE = {\n firstWithinMs: 5000,\n quietForMs: QUIET_MS,\n timeoutMs: 10_000,\n} as const satisfies CaptureOptionsDto;\n\n/** `manual`: someone makes the screen reader speak. `keys`: the check sends {@link CHECK_CHORD}. */\nexport type CheckVia = 'manual' | 'keys';\n\nexport type SpeechProbeHandlers = {\n /** Speech entries and markers, in `seq` order. */\n onEntry(entry: SpeechEntryDto): void;\n /** `failed`: the stream is gone for good. */\n onState(state: Extract<FeedState, 'live' | 'reconnecting' | 'failed'>): void;\n};\n\n/** All speech after a point, whichever session it belongs to. */\nexport interface SpeechProbe {\n /** Follows the entries with `seq > since`; the returned function stops it. */\n listen(since: number, handlers: SpeechProbeHandlers): () => void;\n}\n\n/** Native key presses on the bridge's machine, through the BFF. */\nexport interface KeysApi {\n /**\n * Presses one chord such as `Insert+T` and answers with the speech it caused, once that paused.\n * Rejects with the bridge's message, or when `signal` aborts.\n */\n pressAndCapture(\n keys: string,\n capture: CaptureOptionsDto,\n signal: AbortSignal,\n ): Promise<InputCaptureDto>;\n}\n\n/** The id of the screen reader heading in the Setup instructions, where the check links to. */\nexport const SCREEN_READER_ID = 'screen-reader-heading';\n\nconst DOCS_URL = 'https://github.com/TimoSto/screenreader-speech-capture/blob';\n\n/**\n * A page of `docs/` on GitHub, as of the bridge's release. Only stable releases are tagged, so a\n * preview, a development build and an unknown version read `main`.\n */\nexport function docsUrl(version: string | null, path: string): string {\n const released = version !== null && /^\\d+\\.\\d+\\.\\d+$/.test(version);\n const ref = released ? `@screenreader-speech-capture/bridge@${version}` : 'main';\n return `${DOCS_URL}/${ref}/docs/${path}`;\n}\n\n/** Where the libraries behind a feature live, by the `backend` name the bridge reports. */\nconst LIBRARY_REPOS = new Map([\n ['robotjs', 'https://github.com/jitsi/robotjs'],\n ['koffi', 'https://github.com/Koromix/koffi'],\n]);\n\nexport type CheckRowId = 'listener' | 'voice' | 'input' | 'focus' | 'playwright' | 'mcp';\n/** `neutral`: nothing wrong, but nothing to confirm either (yet). */\nexport type CheckTone = 'ok' | 'warning' | 'neutral';\n\n/** A page of the docs (its URL), or the screen reader steps of the Setup instructions. */\nexport type RowHelp = { label: string } & ({ href: string } | { screenReader: true });\n\nexport type CheckRow = {\n id: CheckRowId;\n label: string;\n tone: CheckTone;\n /** The state in words, so it is never colour or icon alone. */\n state: string;\n /** The library that provides the feature; `href` is `null` for one without a known repository. */\n library: { name: string; href: string | null } | null;\n /** Where to read on, for a row that isn't ok. */\n help: RowHelp | null;\n};\n\n/** A row's help as it is written here: a docs page still without the release it is read at. */\ntype Help = { label: string; path: string } | { label: string; screenReader: true };\n\n/** What the bridge itself knows about the setup, one row each. */\nexport function deriveCheckRows(status: StatusDto): CheckRow[] {\n const link = (label: string, path: string) => ({\n label,\n href: docsUrl(status.bridge.version, path),\n });\n const row = (\n id: CheckRowId,\n label: string,\n tone: CheckTone,\n state: string,\n help: Help,\n library: CheckRow['library'] = null,\n ): CheckRow => ({\n id,\n label,\n tone,\n state,\n library,\n help: tone === 'ok' ? null : 'path' in help ? link(help.label, help.path) : help,\n });\n\n const { listening, port, encoding, connections } = status.tcp;\n const voices = [...new Set(connections.flatMap(({ voice }) => (voice === null ? [] : [voice])))];\n const count = connections.length === 1 ? '1 connection' : `${connections.length} connections`;\n\n const input = (\n id: CheckRowId,\n label: string,\n { available, backend, reason }: InputAvailabilityDto,\n help: Help,\n ) =>\n row(\n id,\n label,\n available ? 'ok' : 'warning',\n available ? 'Available' : `Not available: ${reason ?? 'no reason given'}`,\n help,\n backend === null ? null : { name: backend, href: LIBRARY_REPOS.get(backend) ?? null },\n );\n\n const service = (id: CheckRowId, label: string, { state, version }: ServiceStatusDto) => {\n const [tone, words]: [CheckTone, string] = {\n running: ['ok', `Running, version ${version}`],\n starting: ['neutral', `Starting, version ${version}`],\n stopped: ['neutral', 'Off'],\n crashed: ['warning', `Crashed, version ${version}. It restarts by itself.`],\n failed: ['warning', `Failed, version ${version}`],\n }[state] as [CheckTone, string];\n return row(id, label, tone, words, {\n label: 'Child services',\n path: 'usage/operations.md#child-service-crashes',\n });\n };\n\n return [\n row(\n 'listener',\n 'Speech listener',\n listening ? 'ok' : 'warning',\n listening ? `Listening on port ${port} (${encoding})` : `Not listening on port ${port}`,\n { label: 'Troubleshooting', path: 'usage/troubleshooting.md#speech' },\n ),\n row(\n 'voice',\n 'Voice connected',\n connections.length > 0 ? 'ok' : 'neutral',\n connections.length > 0\n ? `${count}${voices.length > 0 ? ` (voice ${voices.join(', ')})` : ''}`\n : 'None yet: the voice connects with its first words',\n { label: 'Select the voice', screenReader: true },\n ),\n input('input', 'Native input', status.input.native, {\n label: 'Troubleshooting',\n path: 'usage/troubleshooting.md#browser-and-input',\n }),\n input('focus', 'Window focus', status.input.focus, {\n label: 'Bringing the browser to the front',\n path: 'usage/native-input.md#bringing-the-browser-to-the-front',\n }),\n service('playwright', 'Playwright server', status.playwright),\n service('mcp', 'Playwright MCP', status.mcp),\n ];\n}\n"],"mappings":";;AAWA,IAAa,cAAc;;AAE3B,IAAa,oBAAoB;;AAEjC,IAAa,WAAW;;;;;AAOxB,IAAa,gBAAgB;CAC3B,eAAe;CACf,YAAY;CACZ,WAAW;AACb;;AAgCA,IAAa,mBAAmB;AAEhC,IAAM,WAAW;;;;;AAMjB,SAAgB,QAAQ,SAAwB,MAAsB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ACF,OAAO,IAAI,IAAI,OAAO,MAAM,OAAO;GACjC,OAAO;GACP,MAAM;EACR,CAAC;CACH;CAEA,OAAO;EACL,IACE,YACA,mBACA,YAAY,OAAO,WACnB,YAAY,qBAAqB,KAAK,IAAI,SAAS,KAAK,yBAAyB,QACjF;GAAE,OAAO;GAAmB,MAAM;EAAkC,CACtE;EACA,IACE,SACA,mBACA,YAAY,SAAS,IAAI,OAAO,WAChC,YAAY,SAAS,IACjB,GAAG,QAAQ,OAAO,SAAS,IAAI,WAAW,OAAO,KAAK,IAAI,EAAE,KAAK,OACjE,qDACJ;GAAE,OAAO;GAAoB,cAAc;EAAK,CAClD;EACA,MAAM,SAAS,gBAAgB,OAAO,MAAM,QAAQ;GAClD,OAAO;GACP,MAAM;EACR,CAAC;EACD,MAAM,SAAS,gBAAgB,OAAO,MAAM,OAAO;GACjD,OAAO;GACP,MAAM;EACR,CAAC;EACD,QAAQ,cAAc,qBAAqB,OAAO,UAAU;EAC5D,QAAQ,OAAO,kBAAkB,OAAO,GAAG;CAC7C;AACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as t, D as r, O as n, _ as i, a as mixinFormAssociated, j as __decorate, k as i$1, p as e, r as mixinFormSubmitter, s as mixinElementInternals, u as mixinDelegatesAria, v as A, x as T } from "./app-context.js";
|
|
2
2
|
import { n as u, t as i$2 } from "./static-html.js";
|
|
3
3
|
// ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/internal/controller/is-rtl.js
|
|
4
4
|
/**
|
|
@@ -229,6 +229,45 @@ var MdIconButton = class MdIconButton extends IconButton {
|
|
|
229
229
|
};
|
|
230
230
|
MdIconButton.styles = [styles$1, styles];
|
|
231
231
|
MdIconButton = __decorate([t("md-icon-button")], MdIconButton);
|
|
232
|
-
|
|
232
|
+
// src/lib/core/speech.ts
|
|
233
|
+
/** The table keeps this many rows; the oldest go first (the bridge's own buffer is capped too). */
|
|
234
|
+
var MAX_ROWS = 5e3;
|
|
235
|
+
/**
|
|
236
|
+
* Whether a marker added now shows up in `scope`. The bridge files a marker under the current
|
|
237
|
+
* session, or outside any session when none is current: it has no way to name another scope.
|
|
238
|
+
*/
|
|
239
|
+
function canAddMarker(scope, currentId) {
|
|
240
|
+
return currentId === null ? scope === "none" : scope === currentId;
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* Whether the log can clear `scope`: the current session or the speech outside sessions, the scopes
|
|
244
|
+
* that can still receive speech. An ended session can only be deleted.
|
|
245
|
+
*/
|
|
246
|
+
function canClearSpeech(scope, currentId) {
|
|
247
|
+
return isLiveScope(scope, currentId);
|
|
248
|
+
}
|
|
249
|
+
/** Whether the log can delete `scope`: an ended session, never the current one or the outside log. */
|
|
250
|
+
function canDeleteSession(scope, currentId) {
|
|
251
|
+
return scope !== "none" && scope !== currentId;
|
|
252
|
+
}
|
|
253
|
+
/** Whether new speech can still arrive in `scope`. */
|
|
254
|
+
function isLiveScope(scope, currentId) {
|
|
255
|
+
return scope === "none" || scope === currentId;
|
|
256
|
+
}
|
|
257
|
+
/** `14:03:07.042` in the browser's time zone. */
|
|
258
|
+
function formatReceivedTime(iso) {
|
|
259
|
+
const date = new Date(iso);
|
|
260
|
+
if (Number.isNaN(date.getTime())) return iso;
|
|
261
|
+
const two = (value) => String(value).padStart(2, "0");
|
|
262
|
+
const millis = String(date.getMilliseconds()).padStart(3, "0");
|
|
263
|
+
return `${two(date.getHours())}:${two(date.getMinutes())}:${two(date.getSeconds())}.${millis}`;
|
|
264
|
+
}
|
|
265
|
+
/** `Checkout flow #3`, or what the log shows when no session is selected. */
|
|
266
|
+
function logHeading(scope, sessions) {
|
|
267
|
+
if (scope === "none") return "Records outside sessions";
|
|
268
|
+
const session = sessions.find((candidate) => candidate.id === scope);
|
|
269
|
+
return session === void 0 ? `#${scope}` : `${session.name} #${session.id}`;
|
|
270
|
+
}
|
|
271
|
+
export { formatReceivedTime as a, canDeleteSession as i, canAddMarker as n, logHeading as o, canClearSpeech as r, MAX_ROWS as t };
|
|
233
272
|
|
|
234
|
-
//# sourceMappingURL=
|
|
273
|
+
//# sourceMappingURL=speech.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"speech.js","names":["LitElement","literal","nothing","staticHtml","classMap","html","property","state","styles","css","css","sharedStyles","customElement"],"sources":["../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/internal/controller/is-rtl.js","../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/iconbutton/internal/icon-button.js","../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/iconbutton/internal/shared-styles.cssresult.js","../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/iconbutton/internal/standard-styles.cssresult.js","../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/iconbutton/icon-button.js","../../../src/lib/core/speech.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n/**\n * Returns `true` if the given element is in a right-to-left direction.\n *\n * @param el Element to determine direction from\n * @param shouldCheck Optional. If `false`, return `false` without checking\n * direction. Determining the direction of `el` is somewhat expensive, so\n * this parameter can be used as a conditional guard. Defaults to `true`.\n */\nexport function isRtl(el, shouldCheck = true) {\n return (shouldCheck &&\n getComputedStyle(el).getPropertyValue('direction').trim() === 'rtl');\n}\n//# sourceMappingURL=is-rtl.js.map","/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { __decorate } from \"tslib\";\nimport '../../focus/md-focus-ring.js';\nimport '../../ripple/ripple.js';\nimport { html, isServer, LitElement, nothing } from 'lit';\nimport { property, state } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { literal, html as staticHtml } from 'lit/static-html.js';\nimport { mixinDelegatesAria } from '../../internal/aria/delegate.js';\nimport { isRtl } from '../../internal/controller/is-rtl.js';\nimport { afterDispatch, setupDispatchHooks, } from '../../internal/events/dispatch-hooks.js';\nimport { mixinElementInternals } from '../../labs/behaviors/element-internals.js';\nimport { mixinFormAssociated } from '../../labs/behaviors/form-associated.js';\nimport { mixinFormSubmitter } from '../../labs/behaviors/form-submitter.js';\n// Separate variable needed for closure.\nconst iconButtonBaseClass = mixinDelegatesAria(mixinFormSubmitter(mixinFormAssociated(mixinElementInternals(LitElement))));\n/**\n * A button for rendering icons.\n *\n * @fires input {InputEvent} Dispatched when a toggle button toggles --bubbles\n * --composed\n * @fires change {Event} Dispatched when a toggle button toggles --bubbles\n */\nexport class IconButton extends iconButtonBaseClass {\n constructor() {\n super();\n /**\n * \"Soft-disables\" the icon button (disabled but still focusable).\n *\n * Use this when an icon button needs increased visibility when disabled. See\n * https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#kbd_disabled_controls\n * for more guidance on when this is needed.\n */\n this.softDisabled = false;\n /**\n * Flips the icon if it is in an RTL context at startup.\n */\n this.flipIconInRtl = false;\n /**\n * Sets the underlying `HTMLAnchorElement`'s `href` resource attribute.\n */\n this.href = '';\n /**\n * The filename to use when downloading the linked resource.\n * If not specified, the browser will determine a filename.\n * This is only applicable when the icon button is used as a link (`href` is set).\n */\n this.download = '';\n /**\n * Sets the underlying `HTMLAnchorElement`'s `target` attribute.\n */\n this.target = '';\n /**\n * The `aria-label` of the button when the button is toggleable and selected.\n */\n this.ariaLabelSelected = '';\n /**\n * When true, the button will toggle between selected and unselected\n * states\n */\n this.toggle = false;\n /**\n * Sets the selected state. When false, displays the default icon. When true,\n * displays the selected icon, or the default icon If no `slot=\"selected\"`\n * icon is provided.\n */\n this.selected = false;\n this.flipIcon = isRtl(this, this.flipIconInRtl);\n if (isServer)\n return;\n setupDispatchHooks(this, 'click');\n this.addEventListener('click', (event) => {\n // If the button is soft-disabled or a disabled link, we need to\n // explicitly prevent the click from propagating to other event listeners\n // as well as prevent the default action. This is because the underlying\n // `<button>` or `<a>` element is not actually `:disabled`.\n if (this.softDisabled || (this.disabled && this.href)) {\n event.stopImmediatePropagation();\n event.preventDefault();\n return;\n }\n // Save current selected state to toggle, since an external event listener\n // may also change the selected state on click.\n const wasSelected = this.selected;\n afterDispatch(event, () => {\n if (!this.toggle || this.disabled || event.defaultPrevented) {\n return;\n }\n this.selected = !wasSelected;\n this.dispatchEvent(new InputEvent('input', { bubbles: true, composed: true }));\n // Bubbles but does not compose to mimic native browser <input> & <select>\n // Additionally, native change event is not an InputEvent.\n this.dispatchEvent(new Event('change', { bubbles: true }));\n });\n });\n }\n willUpdate() {\n // Link buttons cannot be disabled or soft-disabled.\n if (this.href) {\n this.disabled = false;\n this.softDisabled = false;\n }\n }\n render() {\n const tag = this.href ? literal `div` : literal `button`;\n // Needed for closure conformance\n const { ariaLabel, ariaHasPopup, ariaExpanded } = this;\n const hasToggledAriaLabel = ariaLabel && this.ariaLabelSelected;\n const ariaPressedValue = !this.toggle ? nothing : this.selected;\n let ariaLabelValue = nothing;\n if (!this.href) {\n ariaLabelValue =\n hasToggledAriaLabel && this.selected\n ? this.ariaLabelSelected\n : ariaLabel;\n }\n return staticHtml `<${tag}\n class=\"icon-button ${classMap(this.getRenderClasses())}\"\n id=\"button\"\n aria-label=\"${ariaLabelValue || nothing}\"\n aria-haspopup=\"${(!this.href && ariaHasPopup) || nothing}\"\n aria-expanded=\"${(!this.href && ariaExpanded) || nothing}\"\n aria-pressed=\"${ariaPressedValue}\"\n aria-disabled=${(!this.href && this.softDisabled) || nothing}\n ?disabled=\"${!this.href && this.disabled}\">\n ${this.renderFocusRing()}\n ${this.renderRipple()}\n ${!this.selected ? this.renderIcon() : nothing}\n ${this.selected ? this.renderSelectedIcon() : nothing}\n ${this.href ? this.renderLink() : this.renderTouchTarget()}\n </${tag}>`;\n }\n renderLink() {\n // Needed for closure conformance\n const { ariaLabel } = this;\n return html `\n <a\n class=\"link\"\n id=\"link\"\n href=\"${this.href}\"\n download=\"${this.download || nothing}\"\n target=\"${this.target || nothing}\"\n aria-label=\"${ariaLabel || nothing}\">\n ${this.renderTouchTarget()}\n </a>\n `;\n }\n getRenderClasses() {\n return {\n 'flip-icon': this.flipIcon,\n 'selected': this.toggle && this.selected,\n };\n }\n renderIcon() {\n return html `<span class=\"icon\"><slot></slot></span>`;\n }\n renderSelectedIcon() {\n // Use default slot as fallback to not require specifying multiple icons\n return html `<span class=\"icon icon--selected\"\n ><slot name=\"selected\"><slot></slot></slot\n ></span>`;\n }\n renderTouchTarget() {\n return html `<span class=\"touch\"></span>`;\n }\n renderFocusRing() {\n // TODO(b/310046938): use the same id for both elements\n return html `<md-focus-ring\n part=\"focus-ring\"\n for=${this.href ? 'link' : 'button'}></md-focus-ring>`;\n }\n renderRipple() {\n const isRippleDisabled = !this.href && (this.disabled || this.softDisabled);\n // TODO(b/310046938): use the same id for both elements\n return html `<md-ripple\n for=${this.href ? 'link' : nothing}\n ?disabled=\"${isRippleDisabled}\"></md-ripple>`;\n }\n connectedCallback() {\n this.flipIcon = isRtl(this, this.flipIconInRtl);\n super.connectedCallback();\n }\n}\n/** @nocollapse */\nIconButton.shadowRootOptions = {\n mode: 'open',\n delegatesFocus: true,\n};\n__decorate([\n property({ type: Boolean, attribute: 'soft-disabled', reflect: true })\n], IconButton.prototype, \"softDisabled\", void 0);\n__decorate([\n property({ type: Boolean, attribute: 'flip-icon-in-rtl' })\n], IconButton.prototype, \"flipIconInRtl\", void 0);\n__decorate([\n property()\n], IconButton.prototype, \"href\", void 0);\n__decorate([\n property()\n], IconButton.prototype, \"download\", void 0);\n__decorate([\n property()\n], IconButton.prototype, \"target\", void 0);\n__decorate([\n property({ attribute: 'aria-label-selected' })\n], IconButton.prototype, \"ariaLabelSelected\", void 0);\n__decorate([\n property({ type: Boolean })\n], IconButton.prototype, \"toggle\", void 0);\n__decorate([\n property({ type: Boolean, reflect: true })\n], IconButton.prototype, \"selected\", void 0);\n__decorate([\n state()\n], IconButton.prototype, \"flipIcon\", void 0);\n//# sourceMappingURL=icon-button.js.map","/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n// Generated stylesheet for ./iconbutton/internal/shared-styles.css.\nimport { css } from 'lit';\nexport const styles = css `:host{display:inline-flex;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0);height:var(--_container-height);width:var(--_container-width);justify-content:center}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_container-height))/2) max(0px,(48px - var(--_container-width))/2)}md-focus-ring{--md-focus-ring-shape-start-start: var(--_container-shape-start-start);--md-focus-ring-shape-start-end: var(--_container-shape-start-end);--md-focus-ring-shape-end-end: var(--_container-shape-end-end);--md-focus-ring-shape-end-start: var(--_container-shape-end-start)}:host(:is([disabled],[soft-disabled])){pointer-events:none}.icon-button{place-items:center;background:none;border:none;box-sizing:border-box;cursor:pointer;display:flex;place-content:center;outline:none;padding:0;position:relative;text-decoration:none;user-select:none;z-index:0;flex:1;border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end)}.icon ::slotted(*){font-size:var(--_icon-size);height:var(--_icon-size);width:var(--_icon-size);font-weight:inherit}md-ripple{z-index:-1;border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end)}.flip-icon .icon{transform:scaleX(-1)}.icon{display:inline-flex}.link{display:grid;height:100%;outline:none;place-items:center;position:absolute;width:100%}.touch{position:absolute;height:max(48px,100%);width:max(48px,100%)}:host([touch-target=none]) .touch{display:none}@media(forced-colors: active){:host(:is([disabled],[soft-disabled])){--_disabled-icon-color: GrayText;--_disabled-icon-opacity: 1}}\n`;\nexport default styles.styleSheet;\n//# sourceMappingURL=shared-styles.cssresult.js.map","/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n// Generated stylesheet for ./iconbutton/internal/standard-styles.css.\nimport { css } from 'lit';\nexport const styles = css `:host{--_disabled-icon-color: var(--md-icon-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-icon-button-disabled-icon-opacity, 0.38);--_icon-size: var(--md-icon-button-icon-size, 24px);--_selected-focus-icon-color: var(--md-icon-button-selected-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-icon-color: var(--md-icon-button-selected-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-state-layer-color: var(--md-icon-button-selected-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-state-layer-opacity: var(--md-icon-button-selected-hover-state-layer-opacity, 0.08);--_selected-icon-color: var(--md-icon-button-selected-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-icon-color: var(--md-icon-button-selected-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-state-layer-color: var(--md-icon-button-selected-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-state-layer-opacity: var(--md-icon-button-selected-pressed-state-layer-opacity, 0.12);--_state-layer-height: var(--md-icon-button-state-layer-height, 40px);--_state-layer-shape: var(--md-icon-button-state-layer-shape, var(--md-sys-shape-corner-full, 9999px));--_state-layer-width: var(--md-icon-button-state-layer-width, 40px);--_focus-icon-color: var(--md-icon-button-focus-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-icon-color: var(--md-icon-button-hover-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-icon-button-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-opacity: var(--md-icon-button-hover-state-layer-opacity, 0.08);--_icon-color: var(--md-icon-button-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-icon-color: var(--md-icon-button-pressed-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-color: var(--md-icon-button-pressed-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-opacity: var(--md-icon-button-pressed-state-layer-opacity, 0.12);--_container-shape-start-start: 0;--_container-shape-start-end: 0;--_container-shape-end-end: 0;--_container-shape-end-start: 0;--_container-height: 0;--_container-width: 0;height:var(--_state-layer-height);width:var(--_state-layer-width)}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_state-layer-height))/2) max(0px,(48px - var(--_state-layer-width))/2)}md-focus-ring{--md-focus-ring-shape-start-start: var(--_state-layer-shape);--md-focus-ring-shape-start-end: var(--_state-layer-shape);--md-focus-ring-shape-end-end: var(--_state-layer-shape);--md-focus-ring-shape-end-start: var(--_state-layer-shape)}.standard{background-color:rgba(0,0,0,0);color:var(--_icon-color);--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.standard:hover{color:var(--_hover-icon-color)}.standard:focus{color:var(--_focus-icon-color)}.standard:active{color:var(--_pressed-icon-color)}.standard:is(:disabled,[aria-disabled=true]){color:var(--_disabled-icon-color)}md-ripple{border-radius:var(--_state-layer-shape)}.standard:is(:disabled,[aria-disabled=true]){opacity:var(--_disabled-icon-opacity)}.selected:not(:disabled,[aria-disabled=true]){color:var(--_selected-icon-color)}.selected:not(:disabled,[aria-disabled=true]):hover{color:var(--_selected-hover-icon-color)}.selected:not(:disabled,[aria-disabled=true]):focus{color:var(--_selected-focus-icon-color)}.selected:not(:disabled,[aria-disabled=true]):active{color:var(--_selected-pressed-icon-color)}.selected{--md-ripple-hover-color: var(--_selected-hover-state-layer-color);--md-ripple-hover-opacity: var(--_selected-hover-state-layer-opacity);--md-ripple-pressed-color: var(--_selected-pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_selected-pressed-state-layer-opacity)}\n`;\nexport default styles.styleSheet;\n//# sourceMappingURL=standard-styles.cssresult.js.map","/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { __decorate } from \"tslib\";\nimport { customElement } from 'lit/decorators.js';\nimport { IconButton } from './internal/icon-button.js';\nimport { styles as sharedStyles } from './internal/shared-styles.cssresult.js';\nimport { styles } from './internal/standard-styles.cssresult.js';\n/**\n * @summary Icon buttons help people take supplementary actions with a single\n * tap.\n *\n * @description\n * __Emphasis:__ Low emphasis – For optional or supplementary actions with the\n * least amount of prominence.\n *\n * __Rationale:__ The most compact and unobtrusive type of button, icon buttons\n * are used for optional supplementary actions such as \"Bookmark\" or \"Star.\"\n *\n * __Example usages:__\n * - Add to Favorites\n * - Print\n *\n * @final\n * @suppress {visibility}\n */\nlet MdIconButton = class MdIconButton extends IconButton {\n getRenderClasses() {\n return {\n ...super.getRenderClasses(),\n 'standard': true,\n };\n }\n};\nMdIconButton.styles = [sharedStyles, styles];\nMdIconButton = __decorate([\n customElement('md-icon-button')\n], MdIconButton);\nexport { MdIconButton };\n//# sourceMappingURL=icon-button.js.map","import type { SessionDto, SpeechEntryDto } from '@screenreader-speech-capture/shared';\nimport type { SessionScope } from './sessions.js';\n\n/** The table keeps this many rows; the oldest go first (the bridge's own buffer is capped too). */\nexport const MAX_ROWS = 5000;\n\n/**\n * `connecting`/`live`/`reconnecting`: a stream. `ended`: an ended session was read in full and\n * nothing more will arrive. `failed`: it could not be read.\n */\nexport type FeedState = 'connecting' | 'live' | 'reconnecting' | 'ended' | 'failed';\n\nexport type SpeechFeedHandlers = {\n onEntry(entry: SpeechEntryDto): void;\n /** Entries read in one go (the pages of an ended session), oldest first. */\n onEntries(entries: readonly SpeechEntryDto[]): void;\n /** The bridge wiped its buffer. */\n onClear(): void;\n onState(state: FeedState): void;\n};\n\n/** The speech of one scope (the adapter streams a live one and reads an ended one once). */\nexport interface SpeechFeed {\n /**\n * Starts the feed; the returned function stops it. A `live` scope (the current session, or the\n * speech outside any session) replays what is in the buffer and then follows; an ended session\n * only has what is in the buffer.\n */\n open(scope: SessionScope, live: boolean, handlers: SpeechFeedHandlers): () => void;\n}\n\n/** What the log changes through the BFF. */\nexport interface SpeechApi {\n /** Inserts a marker; the entry reaches the table through the feed. */\n addMarker(label: string): Promise<void>;\n /**\n * Clears the speech of `scope` (the current session or the speech outside sessions); the session\n * keeps running and the table empties through the feed. Rejects with the bridge's message.\n */\n clear(scope: SessionScope): Promise<void>;\n}\n\n/**\n * Whether a marker added now shows up in `scope`. The bridge files a marker under the current\n * session, or outside any session when none is current: it has no way to name another scope.\n */\nexport function canAddMarker(scope: SessionScope, currentId: number | null): boolean {\n return currentId === null ? scope === 'none' : scope === currentId;\n}\n\n/**\n * Whether the log can clear `scope`: the current session or the speech outside sessions, the scopes\n * that can still receive speech. An ended session can only be deleted.\n */\nexport function canClearSpeech(scope: SessionScope, currentId: number | null): boolean {\n return isLiveScope(scope, currentId);\n}\n\n/** Whether the log can delete `scope`: an ended session, never the current one or the outside log. */\nexport function canDeleteSession(scope: SessionScope, currentId: number | null): boolean {\n return scope !== 'none' && scope !== currentId;\n}\n\n/** Whether new speech can still arrive in `scope`. */\nexport function isLiveScope(scope: SessionScope, currentId: number | null): boolean {\n return scope === 'none' || scope === currentId;\n}\n\n/** `14:03:07.042` in the browser's time zone. */\nexport function formatReceivedTime(iso: string): string {\n const date = new Date(iso);\n if (Number.isNaN(date.getTime())) return iso;\n const two = (value: number) => String(value).padStart(2, '0');\n const millis = String(date.getMilliseconds()).padStart(3, '0');\n return `${two(date.getHours())}:${two(date.getMinutes())}:${two(date.getSeconds())}.${millis}`;\n}\n\n/** `Checkout flow #3`, or what the log shows when no session is selected. */\nexport function logHeading(scope: SessionScope, sessions: readonly SessionDto[]): string {\n if (scope === 'none') return 'Records outside sessions';\n const session = sessions.find((candidate) => candidate.id === scope);\n return session === undefined ? `#${scope}` : `${session.name} #${session.id}`;\n}\n"],"ignoreList":[0,1,2,3,4],"mappings":";;;;;;;;;;;;;;;;AAaA,SAAgB,MAAM,IAAI,cAAc,MAAM;CAC1C,OAAQ,eACJ,iBAAiB,EAAE,CAAC,CA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