@screenreader-speech-capture/bridge 0.1.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.
Files changed (236) hide show
  1. package/dist/cli.mjs +1292 -791
  2. package/dist/ui/adapter-node.js +1 -1
  3. package/dist/ui/client/ui/_app/immutable/assets/{4.DyY1vjRV.css → 4.DEk4yqpA.css} +1 -1
  4. package/dist/ui/client/ui/_app/immutable/assets/4.DEk4yqpA.css.br +0 -0
  5. package/dist/ui/client/ui/_app/immutable/assets/4.DEk4yqpA.css.gz +0 -0
  6. package/dist/ui/client/ui/_app/immutable/chunks/BEImj5AP.js +1 -0
  7. package/dist/ui/client/ui/_app/immutable/chunks/BEImj5AP.js.br +0 -0
  8. package/dist/ui/client/ui/_app/immutable/chunks/BEImj5AP.js.gz +0 -0
  9. package/dist/ui/client/ui/_app/immutable/chunks/BLbj0ykL.js +1 -0
  10. package/dist/ui/client/ui/_app/immutable/chunks/BLbj0ykL.js.br +0 -0
  11. package/dist/ui/client/ui/_app/immutable/chunks/BLbj0ykL.js.gz +0 -0
  12. package/dist/ui/client/ui/_app/immutable/chunks/B__KpOuX.js +3 -0
  13. package/dist/ui/client/ui/_app/immutable/chunks/B__KpOuX.js.br +0 -0
  14. package/dist/ui/client/ui/_app/immutable/chunks/B__KpOuX.js.gz +0 -0
  15. package/dist/ui/client/ui/_app/immutable/chunks/BkoDSEOx.js +1 -0
  16. package/dist/ui/client/ui/_app/immutable/chunks/BkoDSEOx.js.br +0 -0
  17. package/dist/ui/client/ui/_app/immutable/chunks/BkoDSEOx.js.gz +0 -0
  18. package/dist/ui/client/ui/_app/immutable/chunks/BlC5mir6.js +1 -0
  19. package/dist/ui/client/ui/_app/immutable/chunks/BlC5mir6.js.br +2 -0
  20. package/dist/ui/client/ui/_app/immutable/chunks/BlC5mir6.js.gz +0 -0
  21. package/dist/ui/client/ui/_app/immutable/chunks/BquQTeuV.js +1 -0
  22. package/dist/ui/client/ui/_app/immutable/chunks/BquQTeuV.js.br +0 -0
  23. package/dist/ui/client/ui/_app/immutable/chunks/BquQTeuV.js.gz +0 -0
  24. package/dist/ui/client/ui/_app/immutable/chunks/BtnuBvK5.js +1 -0
  25. package/dist/ui/client/ui/_app/immutable/chunks/BtnuBvK5.js.br +1 -0
  26. package/dist/ui/client/ui/_app/immutable/chunks/BtnuBvK5.js.gz +0 -0
  27. package/dist/ui/client/ui/_app/immutable/chunks/{BrPqgVT6.js → BuwZGWCm.js} +21 -21
  28. package/dist/ui/client/ui/_app/immutable/chunks/BuwZGWCm.js.br +0 -0
  29. package/dist/ui/client/ui/_app/immutable/chunks/BuwZGWCm.js.gz +0 -0
  30. package/dist/ui/client/ui/_app/immutable/chunks/Bxh3K0TK.js +1 -0
  31. package/dist/ui/client/ui/_app/immutable/chunks/Bxh3K0TK.js.br +0 -0
  32. package/dist/ui/client/ui/_app/immutable/chunks/Bxh3K0TK.js.gz +0 -0
  33. package/dist/ui/client/ui/_app/immutable/chunks/C06IiL6m.js +1 -0
  34. package/dist/ui/client/ui/_app/immutable/chunks/C06IiL6m.js.br +2 -0
  35. package/dist/ui/client/ui/_app/immutable/chunks/C06IiL6m.js.gz +0 -0
  36. package/dist/ui/client/ui/_app/immutable/chunks/CAZ56n62.js +3 -0
  37. package/dist/ui/client/ui/_app/immutable/chunks/CAZ56n62.js.br +0 -0
  38. package/dist/ui/client/ui/_app/immutable/chunks/CAZ56n62.js.gz +0 -0
  39. package/dist/ui/client/ui/_app/immutable/chunks/CTnnxqUD.js +1 -0
  40. package/dist/ui/client/ui/_app/immutable/chunks/CTnnxqUD.js.br +0 -0
  41. package/dist/ui/client/ui/_app/immutable/chunks/CTnnxqUD.js.gz +0 -0
  42. package/dist/ui/client/ui/_app/immutable/chunks/DRNNJMYk.js +5 -0
  43. package/dist/ui/client/ui/_app/immutable/chunks/DRNNJMYk.js.br +0 -0
  44. package/dist/ui/client/ui/_app/immutable/chunks/DRNNJMYk.js.gz +0 -0
  45. package/dist/ui/client/ui/_app/immutable/chunks/JsC3ASJq.js +3 -0
  46. package/dist/ui/client/ui/_app/immutable/chunks/JsC3ASJq.js.br +0 -0
  47. package/dist/ui/client/ui/_app/immutable/chunks/JsC3ASJq.js.gz +0 -0
  48. package/dist/ui/client/ui/_app/immutable/chunks/{C7D7xLuA.js → OAsMjdHF.js} +13 -13
  49. package/dist/ui/client/ui/_app/immutable/chunks/OAsMjdHF.js.br +0 -0
  50. package/dist/ui/client/ui/_app/immutable/chunks/OAsMjdHF.js.gz +0 -0
  51. package/dist/ui/client/ui/_app/immutable/chunks/R_4U_-zb.js +33 -0
  52. package/dist/ui/client/ui/_app/immutable/chunks/R_4U_-zb.js.br +0 -0
  53. package/dist/ui/client/ui/_app/immutable/chunks/R_4U_-zb.js.gz +0 -0
  54. package/dist/ui/client/ui/_app/immutable/chunks/UKukklIc.js +1 -0
  55. package/dist/ui/client/ui/_app/immutable/chunks/UKukklIc.js.br +2 -0
  56. package/dist/ui/client/ui/_app/immutable/chunks/UKukklIc.js.gz +0 -0
  57. package/dist/ui/client/ui/_app/immutable/chunks/{KD5R77Wj.js → VxDST09k.js} +1 -1
  58. package/dist/ui/client/ui/_app/immutable/chunks/VxDST09k.js.br +0 -0
  59. package/dist/ui/client/ui/_app/immutable/chunks/VxDST09k.js.gz +0 -0
  60. package/dist/ui/client/ui/_app/immutable/chunks/{D9JU-e3z.js → vPs9G1oN.js} +36 -36
  61. package/dist/ui/client/ui/_app/immutable/chunks/vPs9G1oN.js.br +0 -0
  62. package/dist/ui/client/ui/_app/immutable/chunks/vPs9G1oN.js.gz +0 -0
  63. package/dist/ui/client/ui/_app/immutable/chunks/{Cc902J0D.js → w5i9ZoX_.js} +2 -2
  64. package/dist/ui/client/ui/_app/immutable/chunks/w5i9ZoX_.js.br +0 -0
  65. package/dist/ui/client/ui/_app/immutable/chunks/w5i9ZoX_.js.gz +0 -0
  66. package/dist/ui/client/ui/_app/immutable/entry/app.CHExvln1.js +2 -0
  67. package/dist/ui/client/ui/_app/immutable/entry/app.CHExvln1.js.br +0 -0
  68. package/dist/ui/client/ui/_app/immutable/entry/app.CHExvln1.js.gz +0 -0
  69. package/dist/ui/client/ui/_app/immutable/entry/start.4hiWLKwq.js +2 -0
  70. package/dist/ui/client/ui/_app/immutable/entry/start.4hiWLKwq.js.br +0 -0
  71. package/dist/ui/client/ui/_app/immutable/entry/start.4hiWLKwq.js.gz +0 -0
  72. package/dist/ui/client/ui/_app/immutable/nodes/0.DENUQERM.js +1 -0
  73. package/dist/ui/client/ui/_app/immutable/nodes/0.DENUQERM.js.br +0 -0
  74. package/dist/ui/client/ui/_app/immutable/nodes/0.DENUQERM.js.gz +0 -0
  75. package/dist/ui/client/ui/_app/immutable/nodes/1.BBl7b45u.js +1 -0
  76. package/dist/ui/client/ui/_app/immutable/nodes/1.BBl7b45u.js.br +0 -0
  77. package/dist/ui/client/ui/_app/immutable/nodes/1.BBl7b45u.js.gz +0 -0
  78. package/dist/ui/client/ui/_app/immutable/nodes/2.4VpydhMh.js +1 -0
  79. package/dist/ui/client/ui/_app/immutable/nodes/2.4VpydhMh.js.br +0 -0
  80. package/dist/ui/client/ui/_app/immutable/nodes/2.4VpydhMh.js.gz +0 -0
  81. package/dist/ui/client/ui/_app/immutable/nodes/3.D9AmPYb5.js +5 -0
  82. package/dist/ui/client/ui/_app/immutable/nodes/3.D9AmPYb5.js.br +0 -0
  83. package/dist/ui/client/ui/_app/immutable/nodes/3.D9AmPYb5.js.gz +0 -0
  84. package/dist/ui/client/ui/_app/immutable/nodes/4.DxNIrNp_.js +180 -0
  85. package/dist/ui/client/ui/_app/immutable/nodes/4.DxNIrNp_.js.br +0 -0
  86. package/dist/ui/client/ui/_app/immutable/nodes/4.DxNIrNp_.js.gz +0 -0
  87. package/dist/ui/client/ui/_app/immutable/nodes/5.Cm6I95kb.js +6 -0
  88. package/dist/ui/client/ui/_app/immutable/nodes/5.Cm6I95kb.js.br +0 -0
  89. package/dist/ui/client/ui/_app/immutable/nodes/5.Cm6I95kb.js.gz +0 -0
  90. package/dist/ui/client/ui/_app/immutable/nodes/6.D9jpgBJB.js +6 -0
  91. package/dist/ui/client/ui/_app/immutable/nodes/6.D9jpgBJB.js.br +0 -0
  92. package/dist/ui/client/ui/_app/immutable/nodes/6.D9jpgBJB.js.gz +0 -0
  93. package/dist/ui/client/ui/_app/version.json +1 -1
  94. package/dist/ui/client/ui/_app/version.json.br +0 -0
  95. package/dist/ui/client/ui/_app/version.json.gz +0 -0
  96. package/dist/ui/server/.vite/manifest.json +80 -59
  97. package/dist/ui/server/_app/immutable/assets/{_page.DyY1vjRV.css → _page.DEk4yqpA.css} +1 -1
  98. package/dist/ui/server/chunks/{composition.js → app-context.js} +50 -958
  99. package/dist/ui/server/chunks/app-context.js.map +1 -0
  100. package/dist/ui/server/chunks/config2.js +106 -0
  101. package/dist/ui/server/chunks/config2.js.map +1 -0
  102. package/dist/ui/server/chunks/dialog.js +1 -1
  103. package/dist/ui/server/chunks/instance.js +3 -3
  104. package/dist/ui/server/chunks/internal.js +1 -1
  105. package/dist/ui/server/chunks/outlined-button.js +116 -0
  106. package/dist/ui/server/chunks/outlined-button.js.map +1 -0
  107. package/dist/ui/server/chunks/outlined-text-field.js +1 -1
  108. package/dist/ui/server/chunks/redispatch-event.js +1 -1
  109. package/dist/ui/server/chunks/rolldown-runtime.js +12 -0
  110. package/dist/ui/server/chunks/rules.js +178 -0
  111. package/dist/ui/server/chunks/rules.js.map +1 -0
  112. package/dist/ui/server/chunks/sessions.remote.js +1 -11
  113. package/dist/ui/server/chunks/sessions.remote.js.map +1 -1
  114. package/dist/ui/server/chunks/setup.js +86 -0
  115. package/dist/ui/server/chunks/setup.js.map +1 -0
  116. package/dist/ui/server/chunks/{icon-button.js → speech.js} +42 -3
  117. package/dist/ui/server/chunks/speech.js.map +1 -0
  118. package/dist/ui/server/chunks/src.js +20 -155
  119. package/dist/ui/server/chunks/src.js.map +1 -1
  120. package/dist/ui/server/chunks/static-html.js +1 -1
  121. package/dist/ui/server/chunks/text-button.js +1 -1
  122. package/dist/ui/server/chunks/vocabulary.js +19 -0
  123. package/dist/ui/server/chunks/vocabulary.js.map +1 -0
  124. package/dist/ui/server/entries/endpoints/api/config/_server.ts.js +3 -2
  125. package/dist/ui/server/entries/endpoints/api/config/_server.ts.js.map +1 -1
  126. package/dist/ui/server/entries/endpoints/api/input/keys/_server.ts.js +14 -5
  127. package/dist/ui/server/entries/endpoints/api/input/keys/_server.ts.js.map +1 -1
  128. package/dist/ui/server/entries/endpoints/api/markers/_server.ts.js +3 -2
  129. package/dist/ui/server/entries/endpoints/api/markers/_server.ts.js.map +1 -1
  130. package/dist/ui/server/entries/endpoints/api/sessions/_server.ts.js +2 -1
  131. package/dist/ui/server/entries/endpoints/api/sessions/_server.ts.js.map +1 -1
  132. package/dist/ui/server/entries/endpoints/api/speech/_server.ts.js +10 -13
  133. package/dist/ui/server/entries/endpoints/api/speech/_server.ts.js.map +1 -1
  134. package/dist/ui/server/entries/endpoints/api/status/_server.ts.js +2 -1
  135. package/dist/ui/server/entries/endpoints/api/status/_server.ts.js.map +1 -1
  136. package/dist/ui/server/entries/hooks.server.js +29 -25
  137. package/dist/ui/server/entries/hooks.server.js.map +1 -1
  138. package/dist/ui/server/entries/pages/_layout.svelte.js +749 -4
  139. package/dist/ui/server/entries/pages/_layout.svelte.js.map +1 -1
  140. package/dist/ui/server/entries/pages/_page.svelte.js +34 -26
  141. package/dist/ui/server/entries/pages/_page.svelte.js.map +1 -1
  142. package/dist/ui/server/entries/pages/settings/_page.svelte.js +143 -15
  143. package/dist/ui/server/entries/pages/settings/_page.svelte.js.map +1 -1
  144. package/dist/ui/server/entries/pages/setup/_page.svelte.js +3 -3
  145. package/dist/ui/server/entries/pages/setup/_page.svelte.js.map +1 -1
  146. package/dist/ui/server/entries/pages/setup/instructions/_page.svelte.js +16 -10
  147. package/dist/ui/server/entries/pages/setup/instructions/_page.svelte.js.map +1 -1
  148. package/dist/ui/server/manifest-full.js +1 -1
  149. package/dist/ui/server/manifest.js +1 -1
  150. package/dist/ui/server/nodes/0.js +1 -1
  151. package/dist/ui/server/nodes/1.js +1 -1
  152. package/dist/ui/server/nodes/2.js +1 -1
  153. package/dist/ui/server/nodes/3.js +1 -1
  154. package/dist/ui/server/nodes/4.js +2 -2
  155. package/dist/ui/server/nodes/5.js +1 -1
  156. package/dist/ui/server/nodes/6.js +1 -1
  157. package/dist/ui/server/server.js +1 -1
  158. package/package.json +1 -1
  159. package/dist/ui/client/ui/_app/immutable/assets/4.DyY1vjRV.css.br +0 -0
  160. package/dist/ui/client/ui/_app/immutable/assets/4.DyY1vjRV.css.gz +0 -0
  161. package/dist/ui/client/ui/_app/immutable/chunks/0FroJ-XN.js +0 -3
  162. package/dist/ui/client/ui/_app/immutable/chunks/0FroJ-XN.js.br +0 -0
  163. package/dist/ui/client/ui/_app/immutable/chunks/0FroJ-XN.js.gz +0 -0
  164. package/dist/ui/client/ui/_app/immutable/chunks/B_ZElYu_.js +0 -1
  165. package/dist/ui/client/ui/_app/immutable/chunks/B_ZElYu_.js.br +0 -2
  166. package/dist/ui/client/ui/_app/immutable/chunks/B_ZElYu_.js.gz +0 -0
  167. package/dist/ui/client/ui/_app/immutable/chunks/BfHif6xP.js +0 -2
  168. package/dist/ui/client/ui/_app/immutable/chunks/BfHif6xP.js.br +0 -0
  169. package/dist/ui/client/ui/_app/immutable/chunks/BfHif6xP.js.gz +0 -0
  170. package/dist/ui/client/ui/_app/immutable/chunks/BrPqgVT6.js.br +0 -0
  171. package/dist/ui/client/ui/_app/immutable/chunks/BrPqgVT6.js.gz +0 -0
  172. package/dist/ui/client/ui/_app/immutable/chunks/C7D7xLuA.js.br +0 -0
  173. package/dist/ui/client/ui/_app/immutable/chunks/C7D7xLuA.js.gz +0 -0
  174. package/dist/ui/client/ui/_app/immutable/chunks/CVpgcnu3.js +0 -1
  175. package/dist/ui/client/ui/_app/immutable/chunks/CVpgcnu3.js.br +0 -0
  176. package/dist/ui/client/ui/_app/immutable/chunks/CVpgcnu3.js.gz +0 -0
  177. package/dist/ui/client/ui/_app/immutable/chunks/Cc902J0D.js.br +0 -0
  178. package/dist/ui/client/ui/_app/immutable/chunks/Cc902J0D.js.gz +0 -0
  179. package/dist/ui/client/ui/_app/immutable/chunks/D-2Nx62w.js +0 -1
  180. package/dist/ui/client/ui/_app/immutable/chunks/D-2Nx62w.js.br +0 -4
  181. package/dist/ui/client/ui/_app/immutable/chunks/D-2Nx62w.js.gz +0 -0
  182. package/dist/ui/client/ui/_app/immutable/chunks/D9JU-e3z.js.br +0 -0
  183. package/dist/ui/client/ui/_app/immutable/chunks/D9JU-e3z.js.gz +0 -0
  184. package/dist/ui/client/ui/_app/immutable/chunks/DHsTyp2W.js +0 -1
  185. package/dist/ui/client/ui/_app/immutable/chunks/DHsTyp2W.js.br +0 -2
  186. package/dist/ui/client/ui/_app/immutable/chunks/DHsTyp2W.js.gz +0 -0
  187. package/dist/ui/client/ui/_app/immutable/chunks/Dvxhfd7j.js +0 -3
  188. package/dist/ui/client/ui/_app/immutable/chunks/Dvxhfd7j.js.br +0 -0
  189. package/dist/ui/client/ui/_app/immutable/chunks/Dvxhfd7j.js.gz +0 -0
  190. package/dist/ui/client/ui/_app/immutable/chunks/DzInmTUe.js +0 -1
  191. package/dist/ui/client/ui/_app/immutable/chunks/DzInmTUe.js.br +0 -1
  192. package/dist/ui/client/ui/_app/immutable/chunks/DzInmTUe.js.gz +0 -0
  193. package/dist/ui/client/ui/_app/immutable/chunks/KD5R77Wj.js.br +0 -0
  194. package/dist/ui/client/ui/_app/immutable/chunks/KD5R77Wj.js.gz +0 -0
  195. package/dist/ui/client/ui/_app/immutable/chunks/PzCUpBms.js +0 -3
  196. package/dist/ui/client/ui/_app/immutable/chunks/PzCUpBms.js.br +0 -0
  197. package/dist/ui/client/ui/_app/immutable/chunks/PzCUpBms.js.gz +0 -0
  198. package/dist/ui/client/ui/_app/immutable/chunks/Roub4aju.js +0 -33
  199. package/dist/ui/client/ui/_app/immutable/chunks/Roub4aju.js.br +0 -0
  200. package/dist/ui/client/ui/_app/immutable/chunks/Roub4aju.js.gz +0 -0
  201. package/dist/ui/client/ui/_app/immutable/chunks/ux9AxWa3.js +0 -4
  202. package/dist/ui/client/ui/_app/immutable/chunks/ux9AxWa3.js.br +0 -0
  203. package/dist/ui/client/ui/_app/immutable/chunks/ux9AxWa3.js.gz +0 -0
  204. package/dist/ui/client/ui/_app/immutable/entry/app.DM2PRoLw.js +0 -2
  205. package/dist/ui/client/ui/_app/immutable/entry/app.DM2PRoLw.js.br +0 -0
  206. package/dist/ui/client/ui/_app/immutable/entry/app.DM2PRoLw.js.gz +0 -0
  207. package/dist/ui/client/ui/_app/immutable/entry/start.DqIv9xYX.js +0 -2
  208. package/dist/ui/client/ui/_app/immutable/entry/start.DqIv9xYX.js.br +0 -0
  209. package/dist/ui/client/ui/_app/immutable/entry/start.DqIv9xYX.js.gz +0 -0
  210. package/dist/ui/client/ui/_app/immutable/nodes/0.fKLM0nQo.js +0 -1
  211. package/dist/ui/client/ui/_app/immutable/nodes/0.fKLM0nQo.js.br +0 -0
  212. package/dist/ui/client/ui/_app/immutable/nodes/0.fKLM0nQo.js.gz +0 -0
  213. package/dist/ui/client/ui/_app/immutable/nodes/1.C81neQJL.js +0 -1
  214. package/dist/ui/client/ui/_app/immutable/nodes/1.C81neQJL.js.br +0 -0
  215. package/dist/ui/client/ui/_app/immutable/nodes/1.C81neQJL.js.gz +0 -0
  216. package/dist/ui/client/ui/_app/immutable/nodes/2.CmlyeAx_.js +0 -1
  217. package/dist/ui/client/ui/_app/immutable/nodes/2.CmlyeAx_.js.br +0 -0
  218. package/dist/ui/client/ui/_app/immutable/nodes/2.CmlyeAx_.js.gz +0 -0
  219. package/dist/ui/client/ui/_app/immutable/nodes/3.CywuMQ0y.js +0 -5
  220. package/dist/ui/client/ui/_app/immutable/nodes/3.CywuMQ0y.js.br +0 -0
  221. package/dist/ui/client/ui/_app/immutable/nodes/3.CywuMQ0y.js.gz +0 -0
  222. package/dist/ui/client/ui/_app/immutable/nodes/4.BYvsTY13.js +0 -160
  223. package/dist/ui/client/ui/_app/immutable/nodes/4.BYvsTY13.js.br +0 -0
  224. package/dist/ui/client/ui/_app/immutable/nodes/4.BYvsTY13.js.gz +0 -0
  225. package/dist/ui/client/ui/_app/immutable/nodes/5.xWNFTFjr.js +0 -6
  226. package/dist/ui/client/ui/_app/immutable/nodes/5.xWNFTFjr.js.br +0 -0
  227. package/dist/ui/client/ui/_app/immutable/nodes/5.xWNFTFjr.js.gz +0 -0
  228. package/dist/ui/client/ui/_app/immutable/nodes/6.Dnf8S10l.js +0 -6
  229. package/dist/ui/client/ui/_app/immutable/nodes/6.Dnf8S10l.js.br +0 -0
  230. package/dist/ui/client/ui/_app/immutable/nodes/6.Dnf8S10l.js.gz +0 -0
  231. package/dist/ui/server/chunks/composition.js.map +0 -1
  232. package/dist/ui/server/chunks/filled-button.js +0 -116
  233. package/dist/ui/server/chunks/filled-button.js.map +0 -1
  234. package/dist/ui/server/chunks/icon-button.js.map +0 -1
  235. package/dist/ui/server/chunks/icon.js +0 -49
  236. package/dist/ui/server/chunks/icon.js.map +0 -1
@@ -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":"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"}
@@ -1,3 +1,5 @@
1
+ import { a as isTrimmedLabel, i as HOST_NAME_PATTERN, n as CONFIG_LIMITS, r as EXACT_VERSION_PATTERN, t as API_LIMITS } from "./rules.js";
2
+ import { n as LOG_LEVELS, t as FOCUS_TARGETS } from "./vocabulary.js";
1
3
  var DEFAULT_CONFIG = {
2
4
  lang: void 0,
3
5
  message: void 0,
@@ -810,110 +812,6 @@ function safeParse(schema, input, config$1) {
810
812
  issues: dataset.issues
811
813
  };
812
814
  }
813
- // ../shared/src/rules/limits.ts
814
- /** Ranges of the speech endpoints. */
815
- var API_LIMITS = {
816
- /** `GET /speech?limit=`: the default and the most a caller may ask for. */
817
- list: {
818
- default: 1e3,
819
- max: 1e4
820
- },
821
- wait: {
822
- /** `GET /speech/wait?timeoutMs=`. */
823
- timeoutMs: {
824
- default: 5e3,
825
- max: 3e5
826
- },
827
- /** Entries the timeout answer holds at most: the last ones seen. */
828
- seen: 1e3,
829
- /** Longest `regex`. */
830
- regexLength: 500
831
- },
832
- /** Longest marker label (trimmed). */
833
- markerLength: 1e3,
834
- /** Longest session `name`, `run` or client name (trimmed). */
835
- sessionLabelLength: 1e3,
836
- /** `POST /input/click` and `POST /input/keys`. */
837
- input: {
838
- /** Largest absolute screen coordinate (physical pixels). */
839
- coordinate: 1e5,
840
- /** Pause between the chords of a sequence. */
841
- delayMs: {
842
- default: 50,
843
- max: 1e4
844
- },
845
- /** Most chords in one request. */
846
- maxKeys: 100,
847
- /** Longest `title` of `POST /input/focus`. */
848
- focusTitleLength: 200
849
- },
850
- /**
851
- * `capture` of `POST /input/click` and `POST /input/keys` (and the client's `record()`, which
852
- * uses the same defaults): the defaults and ranges in milliseconds.
853
- */
854
- capture: {
855
- /** Silence that ends the capture. */
856
- quietForMs: {
857
- default: 500,
858
- min: 1,
859
- max: 6e4
860
- },
861
- /** How long the first speech may take after the input. */
862
- firstWithinMs: {
863
- default: 2e3,
864
- max: 3e5
865
- },
866
- /** Longest capture, counted from the input. */
867
- timeoutMs: {
868
- default: 1e4,
869
- max: 3e5
870
- },
871
- /** Silence to wait for before the input (0: none). */
872
- settleMs: {
873
- default: 0,
874
- max: 6e4
875
- },
876
- /** Entries the answer holds at most: the first ones. */
877
- entries: 1e4
878
- }
879
- };
880
- /** Ranges of the settings (`GET` / `PUT /config`). */
881
- var CONFIG_LIMITS = {
882
- port: {
883
- min: 0,
884
- max: 65535
885
- },
886
- maxLineBytes: {
887
- min: 1024,
888
- max: 16777216
889
- },
890
- maxEntries: {
891
- min: 1,
892
- max: 1e6
893
- }
894
- };
895
- /**
896
- * An exact npm version (`1.56.1`, `1.57.0-beta-1`): `playwright.version` ends up on an
897
- * `npm install` command line, so nothing else may get through.
898
- */
899
- var EXACT_VERSION_PATTERN = /^\d+\.\d+\.\d+(-[0-9A-Za-z.-]+)?$/;
900
- /** A host name without port or scheme, or `*` (`http.allowedHosts`). */
901
- var HOST_NAME_PATTERN = /^(\*|[A-Za-z0-9]([A-Za-z0-9.-]*[A-Za-z0-9])?)$/;
902
- /** Whether `text` is a usable label: not empty after trimming, at most `max` characters trimmed. */
903
- var isTrimmedLabel = (text, max) => {
904
- const trimmed = text.trim();
905
- return trimmed !== "" && trimmed.length <= max;
906
- };
907
- // ../shared/src/rules/vocabulary.ts
908
- /** `log.level`, from the least to the most detail. */
909
- var LOG_LEVELS = [
910
- "error",
911
- "warn",
912
- "info",
913
- "debug"
914
- ];
915
- /** Whose browser a focus or a key press means. */
916
- var FOCUS_TARGETS = ["mcp", "playwright"];
917
815
  // ../shared/src/config.ts
918
816
  /** A `TextDecoder` label other than UTF-16 (the framing splits the bytes on 0x0A first). */
919
817
  function isSupportedEncoding(label) {
@@ -1023,7 +921,23 @@ var capture = /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ stri
1023
921
  timeoutMs: ms(0, CAPTURE.timeoutMs.max, `Longest capture, counted from the input; speech that goes on until then is \`timeout\`. ${CAPTURE.timeoutMs.default} if omitted.`),
1024
922
  settleMs: ms(0, CAPTURE.settleMs.max, "Before the input, wait until nothing was spoken for this long (at most `timeoutMs`), so speech still trailing from an earlier step is not captured. The input is sent after `timeoutMs` even if the speech did not pause. 0 (no wait) if omitted.")
1025
923
  }), /* @__PURE__ */ description("Records the speech the input causes and answers with it (`InputCapture` instead of `InputResult`). Times are in milliseconds and measured on the bridge, from when it received the speech. Added in API 1.19.")));
1026
- CAPTURE.entries, `${CAPTURE.entries}`;
924
+ /** `window` of the answers of `POST /input/click` and `POST /input/keys`. */
925
+ var inputWindow = /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ nullable(/* @__PURE__ */ pipe(/* @__PURE__ */ object({
926
+ title: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ description("The window title, empty for a window without one.")),
927
+ pid: /* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ integer$3(), /* @__PURE__ */ minValue(1), /* @__PURE__ */ description("The process that owns the window."))
928
+ }), /* @__PURE__ */ description("The foreground window on the machine the bridge runs on. Added in API 1.31.")))), /* @__PURE__ */ description("The window that was in front right before the input was sent (after `settleMs`, before the first chord), so the one that got the keys unless it changed since. `null`: no window was in front. Missing: the bridge cannot tell (not Windows, `koffi` not loaded, or reading it failed). Added in API 1.31."));
929
+ var InputCaptureSchema = /* @__PURE__ */ pipe(/* @__PURE__ */ object({
930
+ status: /* @__PURE__ */ pipe(/* @__PURE__ */ picklist([
931
+ "silent",
932
+ "no-speech",
933
+ "timeout"
934
+ ]), /* @__PURE__ */ description("`silent`: speech came and paused for `quietForMs`. `no-speech`: nothing was spoken within `firstWithinMs`. `timeout`: the speech went on until `timeoutMs`; `entries` holds what was said until then. The input was sent in every case.")),
935
+ startSeq: /* @__PURE__ */ pipe(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ integer$3(), /* @__PURE__ */ minValue(0)), /* @__PURE__ */ description("The `seq` of the newest entry right before the input was sent: the capture holds the speech after it.")),
936
+ entries: /* @__PURE__ */ pipe(/* @__PURE__ */ array(SpeechEntrySchema), /* @__PURE__ */ maxLength(CAPTURE.entries), /* @__PURE__ */ description(`The speech entries (no markers) after \`startSeq\`, oldest first, at most the first ${CAPTURE.entries}.`)),
937
+ omitted: /* @__PURE__ */ pipe(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ integer$3(), /* @__PURE__ */ minValue(0)), /* @__PURE__ */ description("How many later speech entries were left out.")),
938
+ truncated: /* @__PURE__ */ pipe(/* @__PURE__ */ boolean(), /* @__PURE__ */ description("`true` when entries after `startSeq` were dropped because the buffer was full.")),
939
+ window: inputWindow
940
+ }), /* @__PURE__ */ description("The answer of `POST /input/click` and `POST /input/keys` with `capture`. Added in API 1.19."));
1027
941
  -coordinate, -coordinate;
1028
942
  var KeysRequestSchema = /* @__PURE__ */ pipe(/* @__PURE__ */ strictObject({
1029
943
  keys: /* @__PURE__ */ pipe(/* @__PURE__ */ union([/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ nonEmpty()), /* @__PURE__ */ pipe(/* @__PURE__ */ array(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ nonEmpty())), /* @__PURE__ */ minLength(1), /* @__PURE__ */ maxLength(maxKeys))]), /* @__PURE__ */ description(`One chord (\`Insert+T\`) or a sequence of chords (\`["h", "h", "Insert+Down"]\`). Chords join modifiers (\`Control\`, \`Shift\`, \`Alt\`, \`Win\`, \`Insert\`, \`CapsLock\`) and one key with \`+\`. Names are case-insensitive (docs/usage/native-input.md#key-names); the numpad keys (\`numpad7\`, \`numpadEnter\`, …) since API 1.30. At most ${maxKeys} chords.`), /* @__PURE__ */ examples(["Insert+T"])),
@@ -1032,55 +946,6 @@ var KeysRequestSchema = /* @__PURE__ */ pipe(/* @__PURE__ */ strictObject({
1032
946
  capture
1033
947
  }), /* @__PURE__ */ description("`POST /input/keys`: send key presses to the focused window. Added in API 1.14."));
1034
948
  API_LIMITS.input.focusTitleLength;
1035
- // ../shared/src/rules/key-chord.ts
1036
- /**
1037
- * The key names of `POST /input/keys` (docs/usage/native-input.md#key-names). The bridge parses
1038
- * chords with this rule, and the CLI checks them before sending and lists the names in `--help`,
1039
- * so both use this one copy. Like `text-match.ts`, it belongs to the contract, not to either side.
1040
- */
1041
- /** Keys that can be held down while another key is pressed. `Insert` and `CapsLock` are the screen reader keys. */
1042
- var MODIFIER_KEYS = [
1043
- "control",
1044
- "shift",
1045
- "alt",
1046
- "win",
1047
- "insert",
1048
- "capslock"
1049
- ];
1050
- /**
1051
- * The keys of the numeric keypad (API 1.30), which NVDA's desktop layout and JAWS use for
1052
- * reading commands. With NumLock off they are those commands, with NumLock on they type.
1053
- */
1054
- var NUMPAD_KEYS = [
1055
- ...Array.from({ length: 10 }, (_, digit) => `numpad${digit}`),
1056
- "numpadplus",
1057
- "numpadminus",
1058
- "numpadmultiply",
1059
- "numpaddivide",
1060
- "numpaddecimal",
1061
- "numpadenter"
1062
- ];
1063
- /** Keys with a name, besides `a`–`z` and `0`–`9`. */
1064
- var NAMED_KEYS = [
1065
- "enter",
1066
- "tab",
1067
- "escape",
1068
- "space",
1069
- "backspace",
1070
- "delete",
1071
- "up",
1072
- "down",
1073
- "left",
1074
- "right",
1075
- "home",
1076
- "end",
1077
- "pageup",
1078
- "pagedown",
1079
- ...Array.from({ length: 12 }, (_, index) => `f${index + 1}`),
1080
- ...NUMPAD_KEYS
1081
- ];
1082
- [...MODIFIER_KEYS, ...NAMED_KEYS];
1083
- new Set(MODIFIER_KEYS);
1084
949
  // ../shared/src/session.ts
1085
950
  var integer$1 = (min) => /* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ integer$3(), /* @__PURE__ */ minValue(min));
1086
951
  var timestamp$1 = /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ isoTimestamp());
@@ -1219,6 +1084,6 @@ var AnyErrorBodySchema = /* @__PURE__ */ object({ error: /* @__PURE__ */ object(
1219
1084
  message: /* @__PURE__ */ string(),
1220
1085
  details: /* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ unknown()))
1221
1086
  }) });
1222
- export { CONFIG_LIMITS as _, SessionListSchema as a, KeysRequestSchema as c, SpeechListSchema as d, ConfigOverridesSchema as f, API_LIMITS as g, LOG_LEVELS as h, CLIENT_HEADER as i, MarkerRequestSchema as l, ConfigSchema as m, checkDto as n, StartSessionRequestSchema as o, ConfigPatchSchema as p, StatusSchema as r, StartSessionResponseSchema as s, AnyErrorBodySchema as t, SpeechEntrySchema as u, EXACT_VERSION_PATTERN as v, HOST_NAME_PATTERN as y };
1087
+ export { SessionListSchema as a, InputCaptureSchema as c, SpeechEntrySchema as d, SpeechListSchema as f, ConfigSchema as h, CLIENT_HEADER as i, KeysRequestSchema as l, ConfigPatchSchema as m, checkDto as n, StartSessionRequestSchema as o, ConfigOverridesSchema as p, StatusSchema as r, StartSessionResponseSchema as s, AnyErrorBodySchema as t, MarkerRequestSchema as u };
1223
1088
 
1224
1089
  //# sourceMappingURL=src.js.map