dsh-xiaomi-tts 4.2.2 → 4.2.4

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 (58) hide show
  1. package/README.md +11 -3
  2. package/assets/ui/provider-doubao-logo.png +0 -0
  3. package/assets/ui/provider-mimo-logo.png +0 -0
  4. package/assets/ui/qq-group.webp +0 -0
  5. package/lib/client/announcements/dsh-pet.d.ts.map +1 -1
  6. package/lib/client/announcements/host-source.d.ts.map +1 -1
  7. package/lib/client/history/audio-history-page.d.ts.map +1 -1
  8. package/lib/client/index.d.ts.map +1 -1
  9. package/lib/client/localization.d.ts +91 -80
  10. package/lib/client/localization.d.ts.map +1 -1
  11. package/lib/client/settings/announcement-settings.d.ts +14 -14
  12. package/lib/client/settings/announcement-settings.d.ts.map +1 -1
  13. package/lib/client/settings/api-key-module.d.ts +1 -3
  14. package/lib/client/settings/api-key-module.d.ts.map +1 -1
  15. package/lib/client/settings/api-key-state.d.ts +2 -2
  16. package/lib/client/settings/api-key-state.d.ts.map +1 -1
  17. package/lib/client/settings/card.d.ts.map +1 -1
  18. package/lib/client/settings/collapsible-module.d.ts +2 -1
  19. package/lib/client/settings/collapsible-module.d.ts.map +1 -1
  20. package/lib/client/settings/details-module.d.ts.map +1 -1
  21. package/lib/client/settings/minimal-mode.d.ts +1 -0
  22. package/lib/client/settings/minimal-mode.d.ts.map +1 -1
  23. package/lib/client/settings/module-shell.d.ts +2 -1
  24. package/lib/client/settings/module-shell.d.ts.map +1 -1
  25. package/lib/client/settings/plugin-links.d.ts +9 -0
  26. package/lib/client/settings/plugin-links.d.ts.map +1 -0
  27. package/lib/client/settings/preview-module.d.ts.map +1 -1
  28. package/lib/client/settings/save-settings.d.ts.map +1 -1
  29. package/lib/client/settings/sound-effects-module.d.ts.map +1 -1
  30. package/lib/client/settings/types.d.ts +3 -1
  31. package/lib/client/settings/types.d.ts.map +1 -1
  32. package/lib/client/settings/update-status.d.ts +6 -0
  33. package/lib/client/settings/update-status.d.ts.map +1 -0
  34. package/lib/client/settings/voice-reading-links.d.ts +16 -0
  35. package/lib/client/settings/voice-reading-links.d.ts.map +1 -0
  36. package/lib/client/settings/voice-reading-options.d.ts +3 -0
  37. package/lib/client/settings/voice-reading-options.d.ts.map +1 -1
  38. package/lib/client/settings/voice-reading-provider.d.ts +12 -0
  39. package/lib/client/settings/voice-reading-provider.d.ts.map +1 -0
  40. package/lib/client/settings/voice-reading-section.d.ts +1 -0
  41. package/lib/client/settings/voice-reading-section.d.ts.map +1 -1
  42. package/lib/client/settings/voice-reading-select.d.ts +26 -0
  43. package/lib/client/settings/voice-reading-select.d.ts.map +1 -0
  44. package/lib/client/settings/voice-reading-warning.d.ts +12 -0
  45. package/lib/client/settings/voice-reading-warning.d.ts.map +1 -0
  46. package/lib/client/sound-effects/index.d.ts.map +1 -1
  47. package/lib/client.js +1196 -511
  48. package/lib/constants.d.ts +11 -1
  49. package/lib/constants.d.ts.map +1 -1
  50. package/lib/host/doubao.d.ts +2 -2
  51. package/lib/host/doubao.d.ts.map +1 -1
  52. package/lib/index.d.ts.map +1 -1
  53. package/lib/index.js +42 -17
  54. package/lib/pcm-stream.js +1 -1
  55. package/lib/{shared-CYv3_bwU.js → shared-D5yyzz9m.js} +1 -1
  56. package/lib/shared.js +3 -3
  57. package/lib/{utils-nJe4yaJV.js → utils-CVl7B1KW.js} +13 -3
  58. package/package.json +20 -20
package/lib/client.js CHANGED
@@ -59,10 +59,19 @@ const TTS_PROVIDER_CHARACTER_ASSET_ROUTES = {
59
59
  xiaomi: "/plugins/xiaomi-mimo-tts/provider-mimo.webp",
60
60
  doubao: "/plugins/xiaomi-mimo-tts/provider-doubao.webp"
61
61
  };
62
+ /** Provider brand marks used by the Voice reading selector. */
63
+ const TTS_PROVIDER_LOGO_ASSET_ROUTES = {
64
+ xiaomi: "/plugins/xiaomi-mimo-tts/provider-mimo-logo.png",
65
+ doubao: "/plugins/xiaomi-mimo-tts/provider-doubao-logo.png"
66
+ };
62
67
  /** Same-origin route used by the Web client to load the API-key whale mascot sheet. */
63
68
  const TTS_API_KEY_WHALE_ASSET_ROUTE = "/plugins/xiaomi-mimo-tts/api-key-whale.webp";
64
69
  /** Same-origin illustration for an empty audio history. */
65
70
  const TTS_HISTORY_EMPTY_ASSET_ROUTE = "/plugins/xiaomi-mimo-tts/history-empty-whale.webp";
71
+ /** Same-origin QR code for the plugin's QQ discussion group. */
72
+ const TTS_QQ_GROUP_ASSET_ROUTE = "/plugins/xiaomi-mimo-tts/qq-group.webp";
73
+ /** Public QQ discussion group the plugin links to. */
74
+ const TTS_QQ_GROUP_NUMBER = "1104616387";
66
75
  /** Same-origin prefix used by the Web client to load switch feedback sounds. */
67
76
  const TTS_TOGGLE_AUDIO_ASSET_ROUTE = "/plugins/xiaomi-mimo-tts/audio";
68
77
  /** Bundled switch feedback sounds grouped by the state they announce. */
@@ -274,7 +283,7 @@ function getSoundEffectsModeFlags(mode) {
274
283
  }
275
284
  const DEFAULT_SOUND_SETTINGS = {
276
285
  soundEnabled: false,
277
- soundVolume: .35,
286
+ soundVolume: .7,
278
287
  soundPack: "zen",
279
288
  taskSounds: false,
280
289
  clickSounds: false
@@ -407,6 +416,7 @@ function normalizeVoiceRate(value) {
407
416
 
408
417
  //#endregion
409
418
  //#region src/types/providers.ts
419
+ const TTS_PROVIDERS = ["xiaomi", "doubao"];
410
420
  const DOUBAO_TTS_MODELS = ["seed-tts-2.0", "seed-icl-2.0"];
411
421
  function ttsSelection(settings) {
412
422
  return settings.provider === "doubao" ? {
@@ -1045,6 +1055,62 @@ function IconBase(props) {
1045
1055
 
1046
1056
  //#endregion
1047
1057
  //#region node_modules/.pnpm/react-icons@5.7.0_react@19.3.0/node_modules/react-icons/ri/index.mjs
1058
+ function RiKey2Line(props) {
1059
+ return GenIcon({
1060
+ "tag": "svg",
1061
+ "attr": {
1062
+ "viewBox": "0 0 24 24",
1063
+ "fill": "currentColor"
1064
+ },
1065
+ "child": [{
1066
+ "tag": "path",
1067
+ "attr": { "d": "M10.7577 11.8281L18.6066 3.97919L20.0208 5.3934L18.6066 6.80761L21.0815 9.28249L19.6673 10.6967L17.1924 8.22183L15.7782 9.63604L17.8995 11.7574L16.4853 13.1716L14.364 11.0503L12.1719 13.2423C13.4581 15.1837 13.246 17.8251 11.5355 19.5355C9.58291 21.4882 6.41709 21.4882 4.46447 19.5355C2.51184 17.5829 2.51184 14.4171 4.46447 12.4645C6.17493 10.754 8.81633 10.5419 10.7577 11.8281ZM10.1213 18.1213C11.2929 16.9497 11.2929 15.0503 10.1213 13.8787C8.94975 12.7071 7.05025 12.7071 5.87868 13.8787C4.70711 15.0503 4.70711 16.9497 5.87868 18.1213C7.05025 19.2929 8.94975 19.2929 10.1213 18.1213Z" },
1068
+ "child": []
1069
+ }]
1070
+ })(props);
1071
+ }
1072
+ function RiDownloadLine(props) {
1073
+ return GenIcon({
1074
+ "tag": "svg",
1075
+ "attr": {
1076
+ "viewBox": "0 0 24 24",
1077
+ "fill": "currentColor"
1078
+ },
1079
+ "child": [{
1080
+ "tag": "path",
1081
+ "attr": { "d": "M3 19H21V21H3V19ZM13 13.1716L19.0711 7.1005L20.4853 8.51472L12 17L3.51472 8.51472L4.92893 7.1005L11 13.1716V2H13V13.1716Z" },
1082
+ "child": []
1083
+ }]
1084
+ })(props);
1085
+ }
1086
+ function RiDeleteBinLine(props) {
1087
+ return GenIcon({
1088
+ "tag": "svg",
1089
+ "attr": {
1090
+ "viewBox": "0 0 24 24",
1091
+ "fill": "currentColor"
1092
+ },
1093
+ "child": [{
1094
+ "tag": "path",
1095
+ "attr": { "d": "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM9 11H11V17H9V11ZM13 11H15V17H13V11ZM9 4V6H15V4H9Z" },
1096
+ "child": []
1097
+ }]
1098
+ })(props);
1099
+ }
1100
+ function RiCheckLine(props) {
1101
+ return GenIcon({
1102
+ "tag": "svg",
1103
+ "attr": {
1104
+ "viewBox": "0 0 24 24",
1105
+ "fill": "currentColor"
1106
+ },
1107
+ "child": [{
1108
+ "tag": "path",
1109
+ "attr": { "d": "M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z" },
1110
+ "child": []
1111
+ }]
1112
+ })(props);
1113
+ }
1048
1114
  function RiVoiceAiFill(props) {
1049
1115
  return GenIcon({
1050
1116
  "tag": "svg",
@@ -1059,6 +1125,76 @@ function RiVoiceAiFill(props) {
1059
1125
  }]
1060
1126
  })(props);
1061
1127
  }
1128
+ function RiRadio2Line(props) {
1129
+ return GenIcon({
1130
+ "tag": "svg",
1131
+ "attr": {
1132
+ "viewBox": "0 0 24 24",
1133
+ "fill": "currentColor"
1134
+ },
1135
+ "child": [{
1136
+ "tag": "path",
1137
+ "attr": { "d": "M6 3V1H8V3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H6ZM4 5V19H20V5H4ZM9 15C7.34315 15 6 13.6569 6 12C6 10.3431 7.34315 9 9 9C10.6569 9 12 10.3431 12 12C12 13.6569 10.6569 15 9 15ZM14 9H18V11H14V9ZM14 13H18V15H14V13Z" },
1138
+ "child": []
1139
+ }]
1140
+ })(props);
1141
+ }
1142
+ function RiEqualizerLine(props) {
1143
+ return GenIcon({
1144
+ "tag": "svg",
1145
+ "attr": {
1146
+ "viewBox": "0 0 24 24",
1147
+ "fill": "currentColor"
1148
+ },
1149
+ "child": [{
1150
+ "tag": "path",
1151
+ "attr": { "d": "M6.17071 18C6.58254 16.8348 7.69378 16 9 16C10.3062 16 11.4175 16.8348 11.8293 18H22V20H11.8293C11.4175 21.1652 10.3062 22 9 22C7.69378 22 6.58254 21.1652 6.17071 20H2V18H6.17071ZM12.1707 11C12.5825 9.83481 13.6938 9 15 9C16.3062 9 17.4175 9.83481 17.8293 11H22V13H17.8293C17.4175 14.1652 16.3062 15 15 15C13.6938 15 12.5825 14.1652 12.1707 13H2V11H12.1707ZM6.17071 4C6.58254 2.83481 7.69378 2 9 2C10.3062 2 11.4175 2.83481 11.8293 4H22V6H11.8293C11.4175 7.16519 10.3062 8 9 8C7.69378 8 6.58254 7.16519 6.17071 6H2V4H6.17071ZM9 6C9.55228 6 10 5.55228 10 5C10 4.44772 9.55228 4 9 4C8.44772 4 8 4.44772 8 5C8 5.55228 8.44772 6 9 6ZM15 13C15.5523 13 16 12.5523 16 12C16 11.4477 15.5523 11 15 11C14.4477 11 14 11.4477 14 12C14 12.5523 14.4477 13 15 13ZM9 20C9.55228 20 10 19.5523 10 19C10 18.4477 9.55228 18 9 18C8.44772 18 8 18.4477 8 19C8 19.5523 8.44772 20 9 20Z" },
1152
+ "child": []
1153
+ }]
1154
+ })(props);
1155
+ }
1156
+ function RiDiscLine(props) {
1157
+ return GenIcon({
1158
+ "tag": "svg",
1159
+ "attr": {
1160
+ "viewBox": "0 0 24 24",
1161
+ "fill": "currentColor"
1162
+ },
1163
+ "child": [{
1164
+ "tag": "path",
1165
+ "attr": { "d": "M15 4.58152V12C15 13.6569 13.6569 15 12 15C10.3431 15 9 13.6569 9 12C9 10.3431 10.3431 9 12 9C12.3506 9 12.6872 9.06016 13 9.17071V2.04938C18.0533 2.5511 22 6.81465 22 12C22 17.5229 17.5228 22 12 22C6.47715 22 2 17.5229 2 12C2 6.81465 5.94668 2.5511 11 2.04938V4.0619C7.05369 4.55399 4 7.92038 4 12C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 8.64262 17.9318 5.76829 15 4.58152Z" },
1166
+ "child": []
1167
+ }]
1168
+ })(props);
1169
+ }
1170
+ function RiSwitchFill(props) {
1171
+ return GenIcon({
1172
+ "tag": "svg",
1173
+ "attr": {
1174
+ "viewBox": "0 0 24 24",
1175
+ "fill": "currentColor"
1176
+ },
1177
+ "child": [{
1178
+ "tag": "path",
1179
+ "attr": { "d": "M13.62 21C13.5351 21 13.4786 20.9434 13.4927 20.8727V3.12726C13.4927 3.0707 13.5351 3.01414 13.6058 3.01414H16.3914C18.9366 3.01414 21.001 5.07855 21.001 7.62372V16.3904C21.001 18.9356 18.9366 21 16.3914 21H13.62ZM17.0418 11.0738C16.0379 11.0738 15.2178 11.894 15.2178 12.8979C15.2178 13.9018 16.0379 14.7219 17.0418 14.7219C18.0458 14.7219 18.8659 13.9018 18.8659 12.8979C18.8659 11.894 18.0458 11.0738 17.0418 11.0738ZM5.80066 8.40141C5.80066 7.46819 6.56421 6.70463 7.49744 6.70463C8.43067 6.70463 9.19422 7.46819 9.19422 8.40141C9.19422 9.33464 8.43067 10.0982 7.49744 10.0982C6.56421 10.0982 5.80066 9.33464 5.80066 8.40141ZM11.5414 3C11.6263 3 11.6828 3.05656 11.6687 3.12726V20.8586C11.6687 20.9293 11.6121 20.9859 11.5414 20.9859H7.61056C5.06539 20.9859 3.00098 18.9214 3.00098 16.3763V7.60958C3.00098 5.06441 5.06539 3 7.61056 3H11.5414ZM10.2264 19.5436V4.44226H7.61056C6.76217 4.44226 5.97034 4.78162 5.37647 5.37549C4.76846 5.96936 4.44324 6.76119 4.44324 7.60958V16.3763C4.44324 17.2247 4.78259 18.0165 5.37647 18.6104C5.97034 19.2184 6.76217 19.5436 7.61056 19.5436H10.2264Z" },
1180
+ "child": []
1181
+ }]
1182
+ })(props);
1183
+ }
1184
+ function RiArrowLeftSLine(props) {
1185
+ return GenIcon({
1186
+ "tag": "svg",
1187
+ "attr": {
1188
+ "viewBox": "0 0 24 24",
1189
+ "fill": "currentColor"
1190
+ },
1191
+ "child": [{
1192
+ "tag": "path",
1193
+ "attr": { "d": "M10.8284 12.0007L15.7782 16.9504L14.364 18.3646L8 12.0007L14.364 5.63672L15.7782 7.05093L10.8284 12.0007Z" },
1194
+ "child": []
1195
+ }]
1196
+ })(props);
1197
+ }
1062
1198
 
1063
1199
  //#endregion
1064
1200
  //#region src/client/settings/scope.ts
@@ -10961,16 +11097,16 @@ function hostWebSocketUrl(path) {
10961
11097
  //#endregion
10962
11098
  //#region src/client/conversation/api-key-status.ts
10963
11099
  const cache = /* @__PURE__ */ new Map();
10964
- const listeners = /* @__PURE__ */ new Set();
11100
+ const listeners$1 = /* @__PURE__ */ new Set();
10965
11101
  function onTtsCredentialsSaved(listener) {
10966
- listeners.add(listener);
11102
+ listeners$1.add(listener);
10967
11103
  return () => {
10968
- listeners.delete(listener);
11104
+ listeners$1.delete(listener);
10969
11105
  };
10970
11106
  }
10971
11107
  function invalidateApiKeyStatus() {
10972
11108
  cache.clear();
10973
- for (const listener of listeners) listener();
11109
+ for (const listener of listeners$1) listener();
10974
11110
  }
10975
11111
  function useApiKeySupported(active, provider = "xiaomi", revision) {
10976
11112
  const [supported, setSupported] = (0, react.useState)(null);
@@ -11590,9 +11726,9 @@ function SessionPlaybackObserver({ sessionId, useSession, useChat, playback, liv
11590
11726
  const NS = "xiaomi-mimo-tts";
11591
11727
  const zh = {
11592
11728
  "settings.announcementsApprovals": "审批提醒",
11593
- "settings.announcementsApprovalsHint": "提醒当前会话中新增的待审批操作,默认关闭;处理或撤回后停止。",
11729
+ "settings.announcementsApprovalsHint": "提醒当前会话的待审批操作;处理或撤回后停止",
11594
11730
  "settings.announcementsJobs": "后台任务结果",
11595
- "settings.announcementsJobsHint": "播报当前会话中观察到的后台任务结束、失败或取消,默认关闭;需 DSH 提供任务服务。",
11731
+ "settings.announcementsJobsHint": "播报当前会话中已观察到的任务结果;需启用任务服务",
11596
11732
  "announcements.approval": "有一项操作等待你确认。",
11597
11733
  "announcements.job": "后台任务",
11598
11734
  "announcements.jobCompleted": "已结束。",
@@ -11601,13 +11737,15 @@ const zh = {
11601
11737
  "settings.soundEffectsScope": "音效范围",
11602
11738
  "settings.announcementsWhale": "dsh-whale-musume",
11603
11739
  "settings.announcementsQuestions": "提问卡片标题",
11604
- "settings.announcementsPetHint": "播报桌宠的碎碎念、聊天回复和投喂文字。",
11605
- "settings.announcementsWhaleHint": "接收鲸鱼娘通过语音接口发起的播报,默认开启。",
11606
- "settings.announcementsQuestionsHint": "跟随自动播报,只读当前题目的标题;翻题或关闭卡片时停止。",
11740
+ "settings.announcementsPetHint": "播报桌宠闲聊、回复和投喂文字",
11741
+ "settings.announcementsWhaleHint": "接收鲸鱼娘的语音播报",
11742
+ "settings.announcementsQuestionsHint": "随自动播报朗读当前题目;翻题或关闭时停止",
11607
11743
  "settings.announcementsNone": "未启用来源",
11608
11744
  "settings.announcementsTitle": "播报来源",
11745
+ "settings.announcementsPlugins": "插件联动",
11746
+ "settings.announcementsPluginsHint": "需安装并启用对应插件",
11609
11747
  "settings.announcementsPet": "dsh-pet",
11610
- "settings.announcementsHint": "需开启语音并保持 DSH 网页打开;收集到的文字在语音忙碌时跳过,不补播。",
11748
+ "settings.announcementsHint": "需开启语音并保持网页打开;忙碌时跳过,不补播",
11611
11749
  "settings.provider": "语音服务商",
11612
11750
  "settings.providerXiaomi": "小米 MiMo",
11613
11751
  "settings.providerDoubao": "豆包语音",
@@ -11616,10 +11754,10 @@ const zh = {
11616
11754
  "settings.doubaoCloneModel": "声音复刻(seed-icl-2.0)",
11617
11755
  "settings.speechInstruction": "语音指令",
11618
11756
  "settings.speechInstructionPresets": "语音指令预设",
11619
- "settings.speechInstructionPlaceholder": "例如:语气带一点害羞,又藏着温柔的期待。",
11620
- "settings.speechInstructionHint": "可描述情绪、语气或表达风格;留空使用默认表达。实际效果随音色而异。",
11757
+ "settings.speechInstructionPlaceholder": "例如:温柔、轻快、像讲故事一样",
11758
+ "settings.speechInstructionHint": "描述情绪、语气或风格;留空使用默认表达",
11621
11759
  "settings.speechInstructionInfo": "语音指令效果说明",
11622
- "settings.speechInstructionLimitations": "小米与豆包标准合成共用这套预设,各自保存指令。\n效果取决于模型、音色和文本;方言、哭腔、悄悄话等不保证准确呈现,两家效果可能不同。\n浏览器本地语音不支持这些指令;豆包复刻模式暂不支持。建议先试听。",
11760
+ "settings.speechInstructionLimitations": "小米与豆包标准合成分别保存指令;效果随模型、音色和文本而异,建议先试听。\n本地语音和豆包复刻暂不支持",
11623
11761
  "settings.speechInstructionNatural": "自然表达",
11624
11762
  "settings.speechInstructionGentle": "温柔",
11625
11763
  "settings.speechInstructionGentlePrompt": "用温柔、亲切自然的语气说话。",
@@ -11659,7 +11797,7 @@ const zh = {
11659
11797
  "settings.speechInstructionSichuanPrompt": "用自然的四川话口音说这段话,保持日常聊天的感觉。",
11660
11798
  "settings.speechInstructionBeijing": "北京话",
11661
11799
  "settings.speechInstructionBeijingPrompt": "用自然的北京话口音说这段话,带一点儿化音,像日常闲聊。",
11662
- "settings.doubaoKeyConfigured": "豆包 API Key 已配置;试听可确认权限与音色是否可用。",
11800
+ "settings.doubaoKeyConfigured": "密钥已保存,请试听确认权限与音色",
11663
11801
  "settings.doubaoCustomVoice": "自定义音色 ID",
11664
11802
  "settings.doubaoCustomVoiceHint": "填写其他标准音色的 ID",
11665
11803
  "settings.doubaoVoiceSceneGeneral": "日常陪伴",
@@ -11672,26 +11810,27 @@ const zh = {
11672
11810
  "settings.doubaoClonedVoiceLabel": "复刻音色",
11673
11811
  "settings.doubaoStandardVoiceHistory": "标准音色 ID 历史",
11674
11812
  "settings.doubaoClonedVoiceHistory": "复刻音色 ID 历史",
11675
- "settings.doubaoCloneHint": "填写豆包控制台中已创建的复刻音色 ID。",
11813
+ "settings.doubaoCloneHint": "填写豆包控制台创建的音色 ID",
11676
11814
  "settings.doubaoVoiceLibrary": "打开音色库",
11677
11815
  "settings.doubaoCreateVoice": "创建一个音色",
11678
- "settings.doubaoVoiceRequired": "请填写所选豆包模型的音色 ID。",
11679
- "settings.doubaoStreamingHint": "同一条回复持续追加文本,边生成边播放。",
11816
+ "settings.doubaoVoiceRequired": "请填写所选豆包模型的音色 ID",
11817
+ "settings.doubaoStreamingHint": "边生成边播放",
11680
11818
  "settings.previewLoadingDoubao": "正在连接豆包语音…",
11681
- "settings.previewPlayingDoubao": "豆包语音播放中,再点停止",
11682
- "settings.previewCompletedDoubao": "豆包试听完成。",
11683
- "settings.previewSaveKeyFirst": "请先保存 API Key,再试听。",
11684
- "settings.previewErrorVoiceUnavailable": "音色不可用,请检查音色 ID、模型及音色授权。",
11685
- "settings.previewErrorResourceUnavailable": "当前 Key 未开通所选豆包模型资源。",
11686
- "settings.previewErrorBufferLimit": "音频缓存已达上限,播放已停止。",
11819
+ "settings.previewPlayingDoubao": "豆包播放中,点击停止",
11820
+ "settings.previewCompletedDoubao": "豆包试听完成",
11821
+ "settings.previewSaveKeyFirst": "请先保存 API Key,再试听",
11822
+ "settings.previewErrorVoiceUnavailable": "音色不可用,请检查音色 ID、模型及音色授权",
11823
+ "settings.previewErrorResourceUnavailable": "当前 Key 未开通所选豆包模型资源",
11824
+ "settings.previewErrorBufferLimit": "音频缓存已达上限,播放已停止",
11687
11825
  "error.voiceUnavailable": "音色不可用,请检查模型、音色 ID 及权限。",
11688
11826
  "error.resourceUnavailable": "当前 Key 未开通所选模型资源。",
11689
11827
  "error.apiKeyRejected": "语音 API Key 鉴权失败,请检查设置。",
11690
11828
  "error.rateLimited": "语音服务限流,请稍后重试。",
11691
11829
  "error.timeout": "语音合成超时,请重试。",
11692
11830
  "error.bufferLimit": "音频缓存已达上限,播放已停止。",
11693
- "history.title": "音频历史",
11831
+ "history.title": "音频",
11694
11832
  "history.back": "返回",
11833
+ "history.backToSettings": "返回设置页",
11695
11834
  "history.search": "搜索音频摘要",
11696
11835
  "history.source": "来源",
11697
11836
  "history.all": "全部",
@@ -11700,11 +11839,11 @@ const zh = {
11700
11839
  "history.expand": "展开或收起摘要",
11701
11840
  "history.noResults": "没有匹配的音频。",
11702
11841
  "history.resetFilters": "重置查找条件",
11703
- "history.savedHere": "本浏览器保存",
11842
+ "history.savedHere": "已保存",
11704
11843
  "history.temporary": "仅本次打开有效",
11705
11844
  "history.clearConfirm": "清空全部音频历史?不受查找条件影响,且无法撤销。",
11706
11845
  "history.confirmDelete": "确认删除",
11707
- "history.confirmClear": "确认清空全部",
11846
+ "history.confirmClear": "确认",
11708
11847
  "history.cancel": "取消",
11709
11848
  "history.actionFailed": "操作未完成,请重试。",
11710
11849
  "history.player": "历史音频播放器",
@@ -11721,15 +11860,15 @@ const zh = {
11721
11860
  "history.error.blocked": "浏览器阻止了播放,请点击重试播放。",
11722
11861
  "history.error.decode": "浏览器无法解码这条音频,可重试或下载文件。",
11723
11862
  "history.error.failed": "音频播放失败,请重试或下载文件。",
11724
- "history.hint": "保留最近 100 条 / 100 MB,超出后自动清理。按生成批次列出;",
11725
- "history.empty": "还没有生成的音频。朗读或试听后会自动保存在这里。",
11863
+ "history.hint": "最多 100 条 / 100 MB",
11864
+ "history.empty": "还没有生成的音频",
11726
11865
  "history.loading": "正在读取音频历史…",
11727
11866
  "history.memory": "浏览器存储不可用或已满;当前列表仅在本次打开期间保留,建议及时下载。",
11728
11867
  "history.skipped": "有音频超过 100 MB,未保留到历史列表。",
11729
11868
  "history.listen": "重听音频",
11730
11869
  "history.download": "下载",
11731
11870
  "history.delete": "删除",
11732
- "history.clear": "清空历史",
11871
+ "history.clear": "清空",
11733
11872
  "history.conversation": "对话朗读",
11734
11873
  "history.preview": "设置试听",
11735
11874
  "history.service": "服务播放",
@@ -11750,7 +11889,7 @@ const zh = {
11750
11889
  "error.localAudioDevice": "音频设备异常,请检查系统声音设置。",
11751
11890
  "error.localSynthesis": "语音合成失败。",
11752
11891
  "settings.title": "语音朗读 (Xiaomi MiMo)",
11753
- "settings.description": "在对话中使用 Xiaomi MiMo TTS 生成并播放语音。",
11892
+ "settings.description": "使用小米 MiMo 或豆包朗读对话",
11754
11893
  "settings.minimalMode": "极简模式",
11755
11894
  "settings.minimalModeOn": "已开启",
11756
11895
  "settings.minimalModeOff": "已关闭",
@@ -11759,18 +11898,16 @@ const zh = {
11759
11898
  "settings.enabled": "语音播报",
11760
11899
  "settings.enabledOnLabel": "开麦啦",
11761
11900
  "settings.enabledOffLabel": "休息一会儿",
11762
- "settings.enabledHint": "关闭后会隐藏语音设置并停止自动播报。",
11901
+ "settings.enabledHint": "关闭后隐藏语音设置并停止自动播报",
11763
11902
  "settings.apiKey": "API Key",
11764
- "settings.apiKeyStatus": "只有输入新值并保存时才会替换现有密钥。",
11765
- "settings.apiKeyLoading": "正在读取 Host 中的密钥…",
11766
- "settings.apiKeyMissing": "尚未保存当前服务商的 API Key。请先填写并保存,再进行试听。",
11767
- "settings.apiKeyRecognized": "已保存 MiMo API Key,格式已识别;可通过播报台确认实际连接。",
11768
- "settings.apiKeyUnsupported": "密钥格式未识别,请检查是否以 sk- 或 tp- 开头。",
11769
- "settings.apiKeyUnsupportedSaved": "已保存密钥的格式未识别;请填写新密钥或清除已保存的密钥。",
11770
- "settings.apiKeyUnavailable": "暂时无法读取 Host 密钥状态,请检查连接后重试。",
11771
- "settings.apiKeyPendingSave": "新密钥待保存;保存后才会用于试听。",
11772
- "settings.apiKeyPendingClear": "保存后将清除已保存的密钥;如有基础配置,将恢复继承。",
11773
- "settings.apiKeyClear": "清除",
11903
+ "settings.apiKeyStatus": "输入并保存新密钥后才会替换",
11904
+ "settings.apiKeyLoading": "正在读取密钥…",
11905
+ "settings.apiKeyMissing": "请填写并保存当前服务商的 API Key",
11906
+ "settings.apiKeyRecognized": "密钥格式有效,请试听确认连接",
11907
+ "settings.apiKeyUnsupported": "密钥须以 sk- 或 tp- 开头",
11908
+ "settings.apiKeyUnsupportedSaved": "已存密钥格式不受支持,请更换",
11909
+ "settings.apiKeyUnavailable": "无法读取密钥状态,请检查连接",
11910
+ "settings.apiKeyPendingSave": "保存后可用新密钥试听",
11774
11911
  "settings.getApiKey": "获取 API Key",
11775
11912
  "settings.apiKeyIdleCopy1": "我可以睁眼了吗?",
11776
11913
  "settings.apiKeyIdleCopy2": "密钥藏好了吗?",
@@ -11783,39 +11920,47 @@ const zh = {
11783
11920
  "settings.autoPlay": "自动播报",
11784
11921
  "settings.autoPlayOnLabel": "主动念给你听",
11785
11922
  "settings.autoPlayOffLabel": "等你叫我再念",
11786
- "settings.autoPlayHint": "浏览器可能会拒绝自动播放。",
11923
+ "settings.autoPlayHint": "浏览器可能阻止自动播放",
11787
11924
  "settings.voiceReadingNav": "语音朗读",
11788
11925
  "settings.voiceReadingTitle": "语音朗读",
11789
- "settings.voiceReadingIntro": "选择朗读音色,并控制自动播报与界面音效。修改会立即写入当前插件的语音设置",
11926
+ "settings.voiceReadingSource": "GitHub 源码",
11927
+ "settings.voiceReadingQq": "QQ 交流群",
11928
+ "settings.voiceReadingQqCodeAlt": "QQ 交流群二维码",
11929
+ "settings.voiceReadingQqClose": "关闭二维码",
11930
+ "settings.voiceReadingPluginSettings": "插件设置",
11931
+ "settings.voiceReadingWarningDisabled": "语音未开启,请在{settings}开启",
11932
+ "settings.voiceReadingWarningApiKeyMissing": "缺少 API Key,请在{settings}填写",
11933
+ "settings.voiceReadingWarningApiKeyInvalid": "API Key 格式不受支持,请检查{settings}",
11934
+ "settings.voiceReadingWarningApiKeyUnavailable": "无法检查 API Key,请检查连接",
11935
+ "settings.voiceReadingWarningVoiceRequired": "未选音色,请选择或在{settings}填写",
11936
+ "settings.voiceReadingDismissWarning": "关闭提醒",
11937
+ "settings.voiceReadingIntro": "修改即时生效,更多选项见",
11790
11938
  "settings.voiceReadingVoice": "朗读音色",
11791
11939
  "settings.voiceReadingHintXiaomi": "小米 MiMo 内置音色",
11792
- "settings.voiceReadingHintVoiceDesign": "声音设计模型按描述生成音色,选择预设会同时更新音色描述",
11940
+ "settings.voiceReadingHintVoiceDesign": "按描述生成音色,选择预设可更新描述",
11793
11941
  "settings.voiceReadingHintDoubaoStandard": "豆包标准合成音色",
11794
- "settings.voiceReadingHintDoubaoCloned": "豆包声音复刻使用音色 ID,可选用过的 ID",
11942
+ "settings.voiceReadingHintDoubaoCloned": "选择用过的复刻音色 ID",
11795
11943
  "settings.voiceReadingCustomVoice": "自定义(当前)",
11796
11944
  "settings.voiceReadingVolume": "朗读音量",
11797
- "settings.voiceReadingVolumeHint": "朗读声音的大小,与调音台中的语音音量是同一项设置",
11798
11945
  "settings.voiceReadingRate": "朗读语速",
11799
- "settings.voiceReadingRateHint": "1.0× 为原速;豆包在合成时应用,小米与本地语音在播放时应用",
11800
11946
  "settings.voiceReadingAutoPlay": "自动播报",
11801
- "settings.voiceReadingAutoPlayHint": "收到新的回复会自动朗读",
11802
11947
  "settings.voiceReadingSound": "音效",
11803
- "settings.voiceReadingSoundHint": "播放点击与任务完成音效",
11804
- "settings.voiceReadingReadOnly": "当前部署的设置为只读,无法保存",
11805
- "settings.voiceReadingUnavailable": "当前部署未提供语音设置",
11948
+ "settings.voiceReadingSoundHint": "播放点击与任务音效",
11949
+ "settings.voiceReadingReadOnly": "设置只读,无法修改",
11950
+ "settings.voiceReadingUnavailable": "语音设置不可用",
11806
11951
  "settings.voiceReadingSaveFailed": "保存失败,请重试",
11807
11952
  "settings.detailedVoiceConfig": "调音台",
11808
11953
  "settings.voiceVolume": "语音音量",
11809
11954
  "settings.voiceRate": "播放语速",
11810
- "settings.voiceRateHint": "支持 0.5×–2.0×,1.0× 为原速。\n豆包:合成时应用语速,下次合成生效。\n小米与本地语音:播放时调速;小米流式播放会同时改变音调。",
11955
+ "settings.voiceRateHint": "0.5×–2.0×,1.0× 为原速。\n豆包下次合成生效;小米和本地语音播放时生效,小米流式播放会改变音调",
11811
11956
  "settings.voiceRateInfo": "播放语速说明",
11812
11957
  "settings.readScope": "朗读范围",
11813
11958
  "settings.readScopeSmart": "智能模式",
11814
11959
  "settings.readScopeFull": "全文模式",
11815
11960
  "settings.readScopeFirstSegment": "首段模式",
11816
- "settings.readScopeSmartHint": "自动播报短回复全文;长回复朗读开头两段,未读内容较多时随机补一句收尾语。手动朗读全文。",
11817
- "settings.readScopeFullHint": "自动播报和手动朗读都播放全文。",
11818
- "settings.readScopeFirstSegmentHint": "保守朗读,自动播报和手动朗读都只播放首段。",
11961
+ "settings.readScopeSmartHint": "自动:短文全文、长文前两段,可附收尾语;手动全文",
11962
+ "settings.readScopeFullHint": "自动与手动均朗读全文",
11963
+ "settings.readScopeFirstSegmentHint": "自动与手动均只读首段",
11819
11964
  "settings.summaryPresetModel": "预置音色",
11820
11965
  "settings.summaryVoiceDesignModel": "自定义音色",
11821
11966
  "settings.localSpeechAutoSummary": "云端优先",
@@ -11830,36 +11975,36 @@ const zh = {
11830
11975
  "settings.localSpeechAuto": "云端优先",
11831
11976
  "settings.localSpeechFirst": "本地优先",
11832
11977
  "settings.localSpeechDisabled": "关闭本地语音",
11833
- "settings.localSpeechAutoHint": "优先使用所选云端音色,失败时使用本地语音。",
11834
- "settings.localSpeechFirstHint": "优先使用浏览器本地语音朗读,失败时尝试所选云端音色。",
11835
- "settings.localSpeechDisabledHint": "仅使用所选云端音色,失败时不会切换到本地语音。",
11836
- "settings.localSpeechUnavailableHint": "当前浏览器没有可用的本地音色,仅可使用云端优先。",
11978
+ "settings.localSpeechAutoHint": "云端优先,播放前失败则转本地语音",
11979
+ "settings.localSpeechFirstHint": "本地优先,失败则转云端语音",
11980
+ "settings.localSpeechDisabledHint": "仅用云端语音,不回退本地",
11981
+ "settings.localSpeechUnavailableHint": "无可用本地音色,仅支持云端优先",
11837
11982
  "settings.localVoice": "本地音色",
11838
11983
  "settings.localVoiceLoading": "正在读取浏览器音色…",
11839
11984
  "settings.localVoiceUnavailable": "没有可用的浏览器音色",
11840
11985
  "settings.localVoiceOffline": "离线",
11841
11986
  "settings.localVoiceOnline": "在线",
11842
- "settings.modelAutoPlayHintPreset": "预置音色自动使用低延迟流式播放。",
11843
- "settings.modelAutoPlayHintVoiceDesign": "自定义音色仅支持在回复完成后自动播放。",
11987
+ "settings.modelAutoPlayHintPreset": "预置音色支持流式播放",
11988
+ "settings.modelAutoPlayHintVoiceDesign": "回复完成后自动播放",
11844
11989
  "settings.voice": "内置音色",
11845
11990
  "settings.format": "音频格式",
11846
11991
  "settings.formatPcm": "PCM(流式播放)",
11847
11992
  "settings.formatMp3": "MP3(完整音频)",
11848
11993
  "settings.formatWav": "WAV(完整音频)",
11849
- "settings.formatPcmHint": "边生成边播放,首个音频分片前失败时自动回退 MP3。",
11850
- "settings.formatMp3Hint": "完整生成后播放,文件更小。",
11851
- "settings.formatWavHint": "完整生成后播放,保留无损音频但文件更大。",
11994
+ "settings.formatPcmHint": "边生成边播放;首片音频前失败则转 MP3",
11995
+ "settings.formatMp3Hint": "生成完成后播放,文件较小",
11996
+ "settings.formatWavHint": "生成完成后播放,无损但文件较大",
11852
11997
  "settings.voiceDesignPrompt": "音色设计",
11853
11998
  "settings.customVoiceOption": "自定义",
11854
11999
  "settings.customVoiceSummary": "手动编写音色描述",
11855
- "settings.voiceDesignPromptHint": "按“年龄段 + 性别、声音质感、语速节奏、情绪底色”描述声音本身;不写场景或动作。",
12000
+ "settings.voiceDesignPromptHint": "描述年龄、性别、音质、节奏和情绪,不写场景或动作",
11856
12001
  "settings.voiceDesignPlaybackMode": "朗读方式",
11857
12002
  "settings.voiceDesignPlaybackComplete": "完整朗读",
11858
12003
  "settings.voiceDesignPlaybackSegmented": "分片朗读",
11859
12004
  "settings.voiceDesignPlaybackFirstSegment": "朗读首段",
11860
- "settings.voiceDesignPlaybackCompleteHint": "整篇生成后播放,语调连续性更好。长文本会出现模型幻觉。",
11861
- "settings.voiceDesignPlaybackSegmentedHint": "适合长文本,分段生成、更快播放。但会重新推导音色细节,语调连续性略差。",
11862
- "settings.voiceDesignPlaybackFirstSegmentHint": "只生成并朗读首个分片,启动更快、消耗更低,适合快速试听或只听开头。",
12005
+ "settings.voiceDesignPlaybackCompleteHint": "整篇生成后播放,语调连贯;长文可能失真",
12006
+ "settings.voiceDesignPlaybackSegmentedHint": "分段生成,适合长文;起播快,语调可能变化",
12007
+ "settings.voiceDesignPlaybackFirstSegmentHint": "只读首个分片,起播快、消耗低",
11863
12008
  "settings.previewTitle": "播报台",
11864
12009
  "settings.previewText": "试听文本",
11865
12010
  "settings.previewDefaultText": "你好呀,很高兴陪你一起探索声音的世界!这个声音听起来怎么样?",
@@ -11867,25 +12012,27 @@ const zh = {
11867
12012
  "settings.previewDefaultTextInspiration": "走得慢一点也没关系。种子不会因为春天迟到,就放弃开花;你也不必因为一次跌倒,就怀疑远方。",
11868
12013
  "settings.previewDefaultTextReflection": "我们无法留住每一阵风,却可以决定扬起哪一面帆。答案未必在远方,也可能藏在此刻认真生活的你心里。",
11869
12014
  "settings.previewDefaultTextHumor": "闹钟响了,我和被窝开了个紧急会议。被窝提议再睡五分钟,我全票通过。结果一睁眼,会议已经开了一个小时。",
11870
- "settings.previewPlaceholder": "输入一段想试听的文字",
12015
+ "settings.previewPlaceholder": "输入试听文字",
11871
12016
  "settings.previewPlay": "播放试听",
12017
+ "settings.previewListen": "试听",
12018
+ "settings.previewStopShort": "停止",
11872
12019
  "settings.previewStop": "停止试听",
11873
- "settings.previewHint": "保存所选服务商的密钥后即可试听",
12020
+ "settings.previewHint": "云端试听需先保存密钥",
11874
12021
  "settings.previewLoading": "准备中…",
11875
- "settings.previewPlaying": "播放中,再点停止",
12022
+ "settings.previewPlaying": "播放中,点击停止",
11876
12023
  "settings.previewLoadingMimo": "正在连接 MiMo…",
11877
- "settings.previewLoadingLocal": "正在准备浏览器本地语音…",
11878
- "settings.previewPlayingMimo": "MiMo 语音播放中,再点停止",
11879
- "settings.previewPlayingLocal": "浏览器本地语音播放中,再点停止",
12024
+ "settings.previewLoadingLocal": "正在准备本地语音…",
12025
+ "settings.previewPlayingMimo": "MiMo 播放中,点击停止",
12026
+ "settings.previewPlayingLocal": "本地语音播放中,点击停止",
11880
12027
  "settings.previewCompletedMimo": "MiMo 试听完成",
11881
12028
  "settings.previewCompletedLocal": "本地语音试听完成",
11882
- "settings.previewErrorApiKeyMissing": "尚未保存当前服务商的 API Key;请先保存,或启用本地语音。",
11883
- "settings.previewErrorApiKeyRejected": "语音服务拒绝了当前密钥,请检查或更换 API Key。",
11884
- "settings.previewErrorRateLimited": "语音请求过于频繁,请稍后再试。",
11885
- "settings.previewErrorTimeout": "语音服务响应超时,请检查网络后重试。",
11886
- "settings.previewErrorLocalUnavailable": "当前浏览器没有可用的本地音色。",
11887
- "settings.previewErrorAutoplay": "浏览器阻止了播放,请再次点击试听。",
11888
- "settings.previewFailed": "试听失败,请检查设置和网络。",
12029
+ "settings.previewErrorApiKeyMissing": "请先保存 API Key,或启用本地语音",
12030
+ "settings.previewErrorApiKeyRejected": "密钥被拒绝,请检查或更换 API Key",
12031
+ "settings.previewErrorRateLimited": "请求过于频繁,请稍后重试",
12032
+ "settings.previewErrorTimeout": "请求超时,请检查网络后重试",
12033
+ "settings.previewErrorLocalUnavailable": "无可用本地音色",
12034
+ "settings.previewErrorAutoplay": "播放被阻止,请再次点击试听",
12035
+ "settings.previewFailed": "试听失败,请检查设置和网络",
11889
12036
  "settings.save": "保存",
11890
12037
  "settings.saving": "保存中…",
11891
12038
  "settings.saved": "已保存",
@@ -11893,10 +12040,10 @@ const zh = {
11893
12040
  "settings.overridden": "已覆盖",
11894
12041
  "settings.reset": "恢复默认",
11895
12042
  "settings.discard": "放弃修改",
11896
- "settings.failed": "保存失败,请重试。",
12043
+ "settings.failed": "保存失败,请重试",
11897
12044
  "settings.source": "赏个Star",
11898
12045
  "settings.updateAvailable": "新版已发布",
11899
- "settings.readOnly": "当前 DSH 设置为只读。",
12046
+ "settings.readOnly": "当前 DSH 设置为只读",
11900
12047
  "settings.secretPlaceholder": "输入当前服务商的新 API Key",
11901
12048
  "settings.expand": "展开设置",
11902
12049
  "settings.collapse": "收起设置",
@@ -11932,14 +12079,14 @@ const zh = {
11932
12079
  "settings.soundEffectsPreview.delete": "删除",
11933
12080
  "settings.soundEffectsPreview.stop": "停止",
11934
12081
  "settings.soundEffectsPreview.queued": "排队",
11935
- "settings.soundEffectsDescription": "为DSH接入uisfx语义化UI音效。在DSH中探索更多音效...",
12082
+ "settings.soundEffectsDescription": "点击操作与任务状态音效",
11936
12083
  "settings.soundEffectsSupported": "🔔 开始 完成 成功 失败 提醒 点击 选择 开启 关闭 发送 打开 关闭面板 删除 停止 排队"
11937
12084
  };
11938
12085
  const en = {
11939
12086
  "settings.announcementsApprovals": "Approval reminders",
11940
- "settings.announcementsApprovalsHint": "Announce new approval requests in the current conversation. Off by default; stops when answered or withdrawn.",
12087
+ "settings.announcementsApprovalsHint": "Announce pending approvals in this conversation; stop when resolved or withdrawn",
11941
12088
  "settings.announcementsJobs": "Background job results",
11942
- "settings.announcementsJobsHint": "Announce observed background jobs finishing, failing or being cancelled in the current conversation. Off by default; requires the DSH jobs service.",
12089
+ "settings.announcementsJobsHint": "Announce results of observed jobs in this conversation; requires the jobs service",
11943
12090
  "announcements.approval": "An operation is waiting for your approval.",
11944
12091
  "announcements.job": "Background job",
11945
12092
  "announcements.jobCompleted": "Finished.",
@@ -11948,13 +12095,15 @@ const en = {
11948
12095
  "settings.soundEffectsScope": "Sound scope",
11949
12096
  "settings.announcementsWhale": "dsh-whale-musume",
11950
12097
  "settings.announcementsQuestions": "Question card titles",
11951
- "settings.announcementsPetHint": "Read pet musings, chat replies and broadcast text.",
11952
- "settings.announcementsWhaleHint": "Accept speech requested by Whale Musume through the speech API. Enabled by default.",
11953
- "settings.announcementsQuestionsHint": "Follows autoplay and reads only the current question title. Stops when the question changes or the card closes.",
12098
+ "settings.announcementsPetHint": "Read pet chatter, replies and feeding messages",
12099
+ "settings.announcementsWhaleHint": "Allow speech requests from Whale Girl",
12100
+ "settings.announcementsQuestionsHint": "Read the current question title with autoplay; stop on navigation or close",
11954
12101
  "settings.announcementsNone": "No sources enabled",
11955
12102
  "settings.announcementsTitle": "Announcement sources",
12103
+ "settings.announcementsPlugins": "Plugin integrations",
12104
+ "settings.announcementsPluginsHint": "Requires the corresponding plugin to be installed and enabled",
11956
12105
  "settings.announcementsPet": "dsh-pet",
11957
- "settings.announcementsHint": "Enable speech and keep DSH Web open. Collected messages received while speech is busy are skipped without replay.",
12106
+ "settings.announcementsHint": "Keep speech enabled and DSH Web open. Messages received while busy are skipped",
11958
12107
  "settings.provider": "Speech provider",
11959
12108
  "settings.providerXiaomi": "Xiaomi MiMo",
11960
12109
  "settings.providerDoubao": "Doubao Voice",
@@ -11963,10 +12112,10 @@ const en = {
11963
12112
  "settings.doubaoCloneModel": "Voice cloning (seed-icl-2.0)",
11964
12113
  "settings.speechInstruction": "Speech instruction",
11965
12114
  "settings.speechInstructionPresets": "Speech instruction presets",
11966
- "settings.speechInstructionPlaceholder": "For example: sound a little shy, with gentle anticipation.",
11967
- "settings.speechInstructionHint": "Describe emotion, tone or delivery; leave blank for the default. Results vary by voice.",
12115
+ "settings.speechInstructionPlaceholder": "Example: gentle, cheerful, or storytelling",
12116
+ "settings.speechInstructionHint": "Describe emotion, tone or style; leave blank for default delivery",
11968
12117
  "settings.speechInstructionInfo": "Speech instruction limitations",
11969
- "settings.speechInstructionLimitations": "Xiaomi and Doubao standard TTS share these presets and save instructions separately.\nResults depend on the model, voice and text. Dialects, tears and whispers may not be reproduced accurately, and results can differ between providers.\nBrowser speech does not support these instructions; Doubao cloning is not supported here. Preview first.",
12118
+ "settings.speechInstructionLimitations": "Xiaomi and Doubao Standard save instructions separately. Results vary by model, voice and text; preview first.\nBrowser speech and Doubao cloning do not support instructions",
11970
12119
  "settings.speechInstructionNatural": "Natural",
11971
12120
  "settings.speechInstructionGentle": "Gentle",
11972
12121
  "settings.speechInstructionGentlePrompt": "Speak in a gentle, warm and natural tone.",
@@ -12006,7 +12155,7 @@ const en = {
12006
12155
  "settings.speechInstructionSichuanPrompt": "Read this text in a natural Sichuan Chinese accent, like an everyday conversation.",
12007
12156
  "settings.speechInstructionBeijing": "Beijing dialect",
12008
12157
  "settings.speechInstructionBeijingPrompt": "Read this text in a natural Beijing Chinese accent with a little erhua, like casual conversation.",
12009
- "settings.doubaoKeyConfigured": "Doubao API key configured. Preview to check model and voice access.",
12158
+ "settings.doubaoKeyConfigured": "Key saved. Preview to check permissions and voice availability",
12010
12159
  "settings.doubaoCustomVoice": "Custom voice ID",
12011
12160
  "settings.doubaoCustomVoiceHint": "Enter another standard voice ID",
12012
12161
  "settings.doubaoVoiceSceneGeneral": "Everyday conversation",
@@ -12019,26 +12168,27 @@ const en = {
12019
12168
  "settings.doubaoClonedVoiceLabel": "Cloned voice",
12020
12169
  "settings.doubaoStandardVoiceHistory": "Standard voice ID history",
12021
12170
  "settings.doubaoClonedVoiceHistory": "Cloned voice ID history",
12022
- "settings.doubaoCloneHint": "Enter an existing cloned voice ID from the Doubao console.",
12171
+ "settings.doubaoCloneHint": "Enter a cloned voice ID from the Doubao console",
12023
12172
  "settings.doubaoVoiceLibrary": "Open voice library",
12024
12173
  "settings.doubaoCreateVoice": "Create a voice",
12025
- "settings.doubaoVoiceRequired": "Enter a voice ID for the selected Doubao model.",
12026
- "settings.doubaoStreamingHint": "Text is appended to one session while audio plays during generation.",
12174
+ "settings.doubaoVoiceRequired": "Enter a voice ID for the selected Doubao model",
12175
+ "settings.doubaoStreamingHint": "Play as the reply is generated",
12027
12176
  "settings.previewLoadingDoubao": "Connecting to Doubao…",
12028
- "settings.previewPlayingDoubao": "Doubao is playing. Tap again to stop.",
12029
- "settings.previewCompletedDoubao": "Doubao preview completed.",
12030
- "settings.previewSaveKeyFirst": "Save the API key before previewing.",
12031
- "settings.previewErrorVoiceUnavailable": "Voice unavailable. Check its ID, model and access permissions.",
12032
- "settings.previewErrorResourceUnavailable": "This key does not have access to the selected Doubao resource.",
12033
- "settings.previewErrorBufferLimit": "Audio buffer limit reached. Playback stopped.",
12177
+ "settings.previewPlayingDoubao": "Doubao playing; click to stop",
12178
+ "settings.previewCompletedDoubao": "Doubao preview completed",
12179
+ "settings.previewSaveKeyFirst": "Save the API key before previewing",
12180
+ "settings.previewErrorVoiceUnavailable": "Voice unavailable. Check its ID, model and access permissions",
12181
+ "settings.previewErrorResourceUnavailable": "This key does not have access to the selected Doubao resource",
12182
+ "settings.previewErrorBufferLimit": "Audio buffer limit reached. Playback stopped",
12034
12183
  "error.voiceUnavailable": "Voice unavailable. Check the model, voice ID and access.",
12035
12184
  "error.resourceUnavailable": "This key cannot access the selected model resource.",
12036
12185
  "error.apiKeyRejected": "Speech API key rejected. Check settings.",
12037
12186
  "error.rateLimited": "Speech service rate limit reached. Try again later.",
12038
12187
  "error.timeout": "Speech synthesis timed out. Try again.",
12039
12188
  "error.bufferLimit": "Audio buffer limit reached. Playback stopped.",
12040
- "history.title": "Audio history",
12189
+ "history.title": "Audio",
12041
12190
  "history.back": "Back",
12191
+ "history.backToSettings": "Back to settings",
12042
12192
  "history.search": "Search audio summaries",
12043
12193
  "history.source": "Source",
12044
12194
  "history.all": "All",
@@ -12047,11 +12197,11 @@ const en = {
12047
12197
  "history.expand": "Expand or collapse summary",
12048
12198
  "history.noResults": "No matching audio.",
12049
12199
  "history.resetFilters": "Reset filters",
12050
- "history.savedHere": "Saved in this browser",
12200
+ "history.savedHere": "Saved",
12051
12201
  "history.temporary": "Available for this visit only",
12052
12202
  "history.clearConfirm": "Clear all audio history? Includes filtered-out entries and cannot be undone.",
12053
12203
  "history.confirmDelete": "Confirm delete",
12054
- "history.confirmClear": "Confirm clear all",
12204
+ "history.confirmClear": "Confirm",
12055
12205
  "history.cancel": "Cancel",
12056
12206
  "history.actionFailed": "The action could not be completed. Please try again.",
12057
12207
  "history.player": "History audio player",
@@ -12068,15 +12218,15 @@ const en = {
12068
12218
  "history.error.blocked": "The browser blocked playback. Select Retry playback.",
12069
12219
  "history.error.decode": "The browser cannot decode this audio. Retry or download the file.",
12070
12220
  "history.error.failed": "Audio playback failed. Retry or download the file.",
12071
- "history.hint": "Keeps the latest 100 entries / 100 MB and removes oldest entries when full. Streaming and segmented audio are listed per generated batch; browser speech has no downloadable file.",
12072
- "history.empty": "No generated audio yet. Read-aloud and previews are saved here automatically.",
12221
+ "history.hint": "Up to 100 entries / 100 MB",
12222
+ "history.empty": "No generated audio yet.",
12073
12223
  "history.loading": "Loading audio history…",
12074
12224
  "history.memory": "Browser storage is unavailable or full. This list lasts only for this visit; download audio to keep it.",
12075
12225
  "history.skipped": "An audio file exceeded 100 MB and was not kept in history.",
12076
12226
  "history.listen": "Listen again",
12077
12227
  "history.download": "Download",
12078
12228
  "history.delete": "Delete",
12079
- "history.clear": "Clear history",
12229
+ "history.clear": "Clear",
12080
12230
  "history.conversation": "Conversation",
12081
12231
  "history.preview": "Settings preview",
12082
12232
  "history.service": "Service playback",
@@ -12097,7 +12247,7 @@ const en = {
12097
12247
  "error.localAudioDevice": "The local audio device reported an error. Check your system sound settings.",
12098
12248
  "error.localSynthesis": "Local speech synthesis failed. Please try again.",
12099
12249
  "settings.title": "Text To Speech (Xiaomi MiMo)",
12100
- "settings.description": "Generate and play Xiaomi MiMo TTS audio from assistant message actions.",
12250
+ "settings.description": "Read conversations with Xiaomi MiMo or Doubao",
12101
12251
  "settings.minimalMode": "Minimal mode",
12102
12252
  "settings.minimalModeOn": "On",
12103
12253
  "settings.minimalModeOff": "Off",
@@ -12106,18 +12256,16 @@ const en = {
12106
12256
  "settings.enabled": "Voice playback",
12107
12257
  "settings.enabledOnLabel": "Whale maid is on air",
12108
12258
  "settings.enabledOffLabel": "Whale maid is resting",
12109
- "settings.enabledHint": "Disabling it hides voice settings and turns off automatic playback.",
12259
+ "settings.enabledHint": "Turning this off hides speech settings and stops autoplay",
12110
12260
  "settings.apiKey": "API Key",
12111
- "settings.apiKeyStatus": "An existing key changes only when you save a new value.",
12112
- "settings.apiKeyLoading": "Reading the saved key status from the Host…",
12113
- "settings.apiKeyMissing": "No key is saved for this provider. Enter and save one before previewing speech.",
12114
- "settings.apiKeyRecognized": "A MiMo API key is saved and its format is recognized. Use Broadcast Desk to confirm the connection.",
12115
- "settings.apiKeyUnsupported": "The key format is not recognized. Check that it starts with sk- or tp-.",
12116
- "settings.apiKeyUnsupportedSaved": "The saved key format is not recognized. Enter a replacement or clear the saved key.",
12117
- "settings.apiKeyUnavailable": "The Host key status is temporarily unavailable. Check the connection and try again.",
12118
- "settings.apiKeyPendingSave": "This key is waiting to be saved. Previews will use it only after saving.",
12119
- "settings.apiKeyPendingClear": "Saving will clear the saved key. A base key will be inherited if one is configured.",
12120
- "settings.apiKeyClear": "Clear",
12261
+ "settings.apiKeyStatus": "The saved key is replaced only after saving a new one",
12262
+ "settings.apiKeyLoading": "Loading key…",
12263
+ "settings.apiKeyMissing": "Enter and save an API key for this provider",
12264
+ "settings.apiKeyRecognized": "Key format recognized. Preview to check the connection",
12265
+ "settings.apiKeyUnsupported": "The key must start with sk- or tp-",
12266
+ "settings.apiKeyUnsupportedSaved": "Saved key format unsupported. Replace it",
12267
+ "settings.apiKeyUnavailable": "Cannot check the key. Check your connection",
12268
+ "settings.apiKeyPendingSave": "Save to preview with the new key",
12121
12269
  "settings.getApiKey": "Get API Key",
12122
12270
  "settings.apiKeyIdleCopy1": "Can I look now?",
12123
12271
  "settings.apiKeyIdleCopy2": "Is the key safely tucked away?",
@@ -12130,39 +12278,47 @@ const en = {
12130
12278
  "settings.autoPlay": "Automatic playback",
12131
12279
  "settings.autoPlayOnLabel": "I'll read it to you",
12132
12280
  "settings.autoPlayOffLabel": "Call me when you need me",
12133
- "settings.autoPlayHint": "The browser may reject automatic playback.",
12281
+ "settings.autoPlayHint": "Your browser may block autoplay",
12134
12282
  "settings.voiceReadingNav": "Voice reading",
12135
12283
  "settings.voiceReadingTitle": "Voice reading",
12136
- "settings.voiceReadingIntro": "Pick the reading voice and control automatic playback and interface sounds. Changes are written to this plugin's speech settings immediately.",
12284
+ "settings.voiceReadingSource": "Source on GitHub",
12285
+ "settings.voiceReadingQq": "QQ group",
12286
+ "settings.voiceReadingQqCodeAlt": "QQ group QR code",
12287
+ "settings.voiceReadingQqClose": "Close QR code",
12288
+ "settings.voiceReadingPluginSettings": "Plugin settings",
12289
+ "settings.voiceReadingWarningDisabled": "Speech is off. Enable it in {settings}",
12290
+ "settings.voiceReadingWarningApiKeyMissing": "API key missing. Add one in {settings}",
12291
+ "settings.voiceReadingWarningApiKeyInvalid": "Unsupported API key format. Check {settings}",
12292
+ "settings.voiceReadingWarningApiKeyUnavailable": "Cannot check the API key. Check your connection",
12293
+ "settings.voiceReadingWarningVoiceRequired": "No voice selected. Choose one or enter it in {settings}",
12294
+ "settings.voiceReadingDismissWarning": "Dismiss warning",
12295
+ "settings.voiceReadingIntro": "Changes apply immediately. More options in",
12137
12296
  "settings.voiceReadingVoice": "Reading voice",
12138
- "settings.voiceReadingHintXiaomi": "Built-in Xiaomi MiMo voices.",
12139
- "settings.voiceReadingHintVoiceDesign": "Voice design generates a voice from a description; picking a preset also updates the description.",
12140
- "settings.voiceReadingHintDoubaoStandard": "Doubao standard synthesis voices.",
12141
- "settings.voiceReadingHintDoubaoCloned": "Doubao voice cloning uses a voice ID; pick an ID you have used before.",
12297
+ "settings.voiceReadingHintXiaomi": "Built-in Xiaomi MiMo voices",
12298
+ "settings.voiceReadingHintVoiceDesign": "Generate a voice from a description, or choose a preset",
12299
+ "settings.voiceReadingHintDoubaoStandard": "Doubao standard synthesis voices",
12300
+ "settings.voiceReadingHintDoubaoCloned": "Choose a previously used cloned voice ID",
12142
12301
  "settings.voiceReadingCustomVoice": "Custom (current)",
12143
12302
  "settings.voiceReadingVolume": "Reading volume",
12144
- "settings.voiceReadingVolumeHint": "How loud the reading plays; same setting as Voice volume in the mixing console.",
12145
12303
  "settings.voiceReadingRate": "Reading speed",
12146
- "settings.voiceReadingRateHint": "1.0× is the original speed. Doubao applies it during synthesis; Xiaomi and browser speech apply it during playback.",
12147
12304
  "settings.voiceReadingAutoPlay": "Automatic playback",
12148
- "settings.voiceReadingAutoPlayHint": "New replies are read aloud automatically; turning this on also enables voice reading.",
12149
12305
  "settings.voiceReadingSound": "Sound effects",
12150
- "settings.voiceReadingSoundHint": "Play click and task-completion sounds.",
12151
- "settings.voiceReadingReadOnly": "Settings are read-only in this deployment and cannot be saved.",
12152
- "settings.voiceReadingUnavailable": "This deployment does not provide voice settings.",
12153
- "settings.voiceReadingSaveFailed": "Could not save. Please try again.",
12306
+ "settings.voiceReadingSoundHint": "Play click and task sounds",
12307
+ "settings.voiceReadingReadOnly": "Settings are read-only",
12308
+ "settings.voiceReadingUnavailable": "Speech settings are unavailable",
12309
+ "settings.voiceReadingSaveFailed": "Could not save. Please try again",
12154
12310
  "settings.detailedVoiceConfig": "Mixing Console",
12155
12311
  "settings.voiceVolume": "Voice volume",
12156
12312
  "settings.voiceRate": "Playback speed",
12157
- "settings.voiceRateHint": "Range: 0.5×–2.0×; 1.0× is the original speed.\nDoubao: applied during synthesis, starting with the next synthesis.\nXiaomi and browser speech: adjusted during playback. Xiaomi streaming also changes pitch.",
12313
+ "settings.voiceRateHint": "0.5×–2.0×; 1.0× is the original speed.\nDoubao applies changes at the next synthesis; Xiaomi and browser speech during playback. Xiaomi streaming also changes pitch",
12158
12314
  "settings.voiceRateInfo": "Playback speed information",
12159
12315
  "settings.readScope": "Read-aloud range",
12160
12316
  "settings.readScopeSmart": "Smart mode",
12161
12317
  "settings.readScopeFull": "Full mode",
12162
12318
  "settings.readScopeFirstSegment": "First-segment mode",
12163
- "settings.readScopeSmartHint": "Automatic playback reads short replies in full. For long replies, it reads the opening two segments and may add a brief closing cue when substantial content remains. Manual playback reads the full reply.",
12164
- "settings.readScopeFullHint": "Both automatic and manual playback read the full reply.",
12165
- "settings.readScopeFirstSegmentHint": "Both automatic and manual playback read only the opening segment.",
12319
+ "settings.readScopeSmartHint": "Auto: full short replies, first two segments of long replies, with an optional closing cue. Manual: full reply",
12320
+ "settings.readScopeFullHint": "Read the full reply, automatically or manually",
12321
+ "settings.readScopeFirstSegmentHint": "Read only the first segment, automatically or manually",
12166
12322
  "settings.summaryPresetModel": "Preset model",
12167
12323
  "settings.summaryVoiceDesignModel": "Custom voicedesign",
12168
12324
  "settings.localSpeechAutoSummary": "Cloud first",
@@ -12177,36 +12333,36 @@ const en = {
12177
12333
  "settings.localSpeechAuto": "Cloud first",
12178
12334
  "settings.localSpeechFirst": "Local first",
12179
12335
  "settings.localSpeechDisabled": "Disable local speech",
12180
- "settings.localSpeechAutoHint": "Uses the selected cloud voice first and falls back to local speech before playback starts.",
12181
- "settings.localSpeechFirstHint": "Uses browser-local speech first and tries the selected cloud voice if it fails.",
12182
- "settings.localSpeechDisabledHint": "Uses only the selected cloud voice and never falls back to local speech.",
12183
- "settings.localSpeechUnavailableHint": "No browser voices are available, so only cloud-first speech can be used.",
12336
+ "settings.localSpeechAutoHint": "Cloud first; fall back to browser speech if it fails before playback",
12337
+ "settings.localSpeechFirstHint": "Browser speech first; fall back to the cloud if it fails",
12338
+ "settings.localSpeechDisabledHint": "Cloud speech only, with no browser fallback",
12339
+ "settings.localSpeechUnavailableHint": "No browser voices available; use cloud first",
12184
12340
  "settings.localVoice": "Browser voice",
12185
12341
  "settings.localVoiceLoading": "Loading browser voices…",
12186
12342
  "settings.localVoiceUnavailable": "No browser voices available",
12187
12343
  "settings.localVoiceOffline": "Offline",
12188
12344
  "settings.localVoiceOnline": "Online",
12189
- "settings.modelAutoPlayHintPreset": "Preset voices use low-latency streaming automatically.",
12190
- "settings.modelAutoPlayHintVoiceDesign": "Custom voice design supports automatic playback only after the reply is complete.",
12345
+ "settings.modelAutoPlayHintPreset": "Preset voices support streaming",
12346
+ "settings.modelAutoPlayHintVoiceDesign": "Play automatically after the reply is complete",
12191
12347
  "settings.voice": "Built-in voice",
12192
12348
  "settings.format": "Audio format",
12193
12349
  "settings.formatPcm": "PCM (streaming)",
12194
12350
  "settings.formatMp3": "MP3 (complete audio)",
12195
12351
  "settings.formatWav": "WAV (complete audio)",
12196
- "settings.formatPcmHint": "Plays chunks as they arrive for a shorter wait; supports pause and resume. Falls back to MP3 if streaming fails before the first audio chunk.",
12197
- "settings.formatMp3Hint": "Plays after the complete file is generated. Smaller file size; supports pause and resume.",
12198
- "settings.formatWavHint": "Plays after the complete lossless file is generated. Larger file size; supports pause and resume.",
12352
+ "settings.formatPcmHint": "Stream audio as it arrives; fall back to MP3 if it fails before the first chunk",
12353
+ "settings.formatMp3Hint": "Play after generation; smaller files",
12354
+ "settings.formatWavHint": "Play after generation; lossless, larger files",
12199
12355
  "settings.voiceDesignPrompt": "Voice design",
12200
12356
  "settings.customVoiceOption": "Custom",
12201
12357
  "settings.customVoiceSummary": "Write a custom voice description",
12202
- "settings.voiceDesignPromptHint": "Describe the voice itself with age/gender, texture, pace, and emotional baseline; avoid scenes or actions.",
12358
+ "settings.voiceDesignPromptHint": "Describe age, gender, tone, pace and emotion; omit scenes and actions",
12203
12359
  "settings.voiceDesignPlaybackMode": "Read-aloud mode",
12204
12360
  "settings.voiceDesignPlaybackComplete": "Complete",
12205
12361
  "settings.voiceDesignPlaybackSegmented": "Segmented",
12206
12362
  "settings.voiceDesignPlaybackFirstSegment": "First segment",
12207
- "settings.voiceDesignPlaybackCompleteHint": "Generates the entire reply before playback for better continuity.",
12208
- "settings.voiceDesignPlaybackSegmentedHint": "Generates and plays semantic segments in order; better for long text and faster start.",
12209
- "settings.voiceDesignPlaybackFirstSegmentHint": "Generates and plays only the first segment for a faster start and lower usage.",
12363
+ "settings.voiceDesignPlaybackCompleteHint": "Generate the full reply for consistent delivery; long text may cause artifacts",
12364
+ "settings.voiceDesignPlaybackSegmentedHint": "Generate in segments for faster starts on long text; delivery may vary",
12365
+ "settings.voiceDesignPlaybackFirstSegmentHint": "Read only the first segment for a faster start and lower usage",
12210
12366
  "settings.previewTitle": "Broadcast Desk",
12211
12367
  "settings.previewText": "Preview text",
12212
12368
  "settings.previewDefaultText": "Hi! I'm Whale Maid. It's lovely to explore the world of voices with you!",
@@ -12214,25 +12370,27 @@ const en = {
12214
12370
  "settings.previewDefaultTextInspiration": "Go at your own pace. A seed still blooms after a late spring. One stumble need not end your journey.",
12215
12371
  "settings.previewDefaultTextReflection": "We cannot keep every breeze, but we can choose our sail. Perhaps the answer is in how we live today.",
12216
12372
  "settings.previewDefaultTextHumor": "My alarm rang. I voted for five more minutes in bed. An hour later, the motion was still in effect.",
12217
- "settings.previewPlaceholder": "Enter some text to preview",
12373
+ "settings.previewPlaceholder": "Enter preview text",
12218
12374
  "settings.previewPlay": "Play preview",
12375
+ "settings.previewListen": "Preview",
12376
+ "settings.previewStopShort": "Stop",
12219
12377
  "settings.previewStop": "Stop preview",
12220
- "settings.previewHint": "Save a provider key to preview speech; browser speech may be used when no key is configured",
12378
+ "settings.previewHint": "Save a key for cloud previews",
12221
12379
  "settings.previewLoading": "Getting ready…",
12222
- "settings.previewPlaying": "Playing—tap again to stop",
12380
+ "settings.previewPlaying": "Playing; click to stop",
12223
12381
  "settings.previewLoadingMimo": "Connecting to MiMo…",
12224
- "settings.previewLoadingLocal": "Preparing browser-local speech…",
12225
- "settings.previewPlayingMimo": "MiMo speech is playing—tap again to stop",
12226
- "settings.previewPlayingLocal": "Browser-local speech is playing—tap again to stop",
12382
+ "settings.previewLoadingLocal": "Preparing browser speech…",
12383
+ "settings.previewPlayingMimo": "MiMo playing; click to stop",
12384
+ "settings.previewPlayingLocal": "Browser speech playing; click to stop",
12227
12385
  "settings.previewCompletedMimo": "MiMo preview complete",
12228
12386
  "settings.previewCompletedLocal": "Local-speech preview complete",
12229
- "settings.previewErrorApiKeyMissing": "No API key is saved for this provider. Save one first, or enable local speech.",
12230
- "settings.previewErrorApiKeyRejected": "The speech provider rejected this key. Check or replace the API key.",
12231
- "settings.previewErrorRateLimited": "The speech service rate limit was reached. Try again shortly.",
12232
- "settings.previewErrorTimeout": "Speech synthesis timed out. Check the network and try again.",
12233
- "settings.previewErrorLocalUnavailable": "This browser has no available local voice.",
12234
- "settings.previewErrorAutoplay": "The browser blocked playback. Tap preview again.",
12235
- "settings.previewFailed": "Preview failed. Check the settings and network.",
12387
+ "settings.previewErrorApiKeyMissing": "Save an API key or enable browser speech",
12388
+ "settings.previewErrorApiKeyRejected": "Key rejected. Check or replace it",
12389
+ "settings.previewErrorRateLimited": "Too many requests. Try again shortly",
12390
+ "settings.previewErrorTimeout": "Request timed out. Check your connection and retry",
12391
+ "settings.previewErrorLocalUnavailable": "No browser voices available",
12392
+ "settings.previewErrorAutoplay": "Playback blocked. Click preview again",
12393
+ "settings.previewFailed": "Preview failed. Check settings and connection",
12236
12394
  "settings.save": "Save",
12237
12395
  "settings.saving": "Saving…",
12238
12396
  "settings.saved": "Saved",
@@ -12240,10 +12398,10 @@ const en = {
12240
12398
  "settings.overridden": "Overridden",
12241
12399
  "settings.reset": "Restore default",
12242
12400
  "settings.discard": "Discard changes",
12243
- "settings.failed": "Save failed. Try again.",
12401
+ "settings.failed": "Save failed. Try again",
12244
12402
  "settings.source": "View source",
12245
12403
  "settings.updateAvailable": "New release",
12246
- "settings.readOnly": "DSH settings are read-only.",
12404
+ "settings.readOnly": "DSH settings are read-only",
12247
12405
  "settings.secretPlaceholder": "Enter a new key for this provider",
12248
12406
  "settings.expand": "Expand settings",
12249
12407
  "settings.collapse": "Collapse settings",
@@ -12279,7 +12437,7 @@ const en = {
12279
12437
  "settings.soundEffectsPreview.delete": "Preview delete",
12280
12438
  "settings.soundEffectsPreview.stop": "Preview stop",
12281
12439
  "settings.soundEffectsPreview.queued": "Preview queued",
12282
- "settings.soundEffectsDescription": "Bringing semantic UISFX interface sounds to DSH. Explore more sounds in DSH...",
12440
+ "settings.soundEffectsDescription": "Sounds for clicks and task events",
12283
12441
  "settings.soundEffectsSupported": "Supported sounds: Start, Complete, Success, Error, Notification, Press, Select, Toggle On, Toggle Off, Send, Open, Close, Delete, Stop, Queued"
12284
12442
  };
12285
12443
 
@@ -14207,6 +14365,17 @@ var XiaomiMimoTtsPcmService = class extends __deepseek_ai_cordis.Service {
14207
14365
 
14208
14366
  //#endregion
14209
14367
  //#region node_modules/.pnpm/react-icons@5.7.0_react@19.3.0/node_modules/react-icons/ai/index.mjs
14368
+ function AiFillSetting(props) {
14369
+ return GenIcon({
14370
+ "tag": "svg",
14371
+ "attr": { "viewBox": "0 0 1024 1024" },
14372
+ "child": [{
14373
+ "tag": "path",
14374
+ "attr": { "d": "M512.5 390.6c-29.9 0-57.9 11.6-79.1 32.8-21.1 21.2-32.8 49.2-32.8 79.1 0 29.9 11.7 57.9 32.8 79.1 21.2 21.1 49.2 32.8 79.1 32.8 29.9 0 57.9-11.7 79.1-32.8 21.1-21.2 32.8-49.2 32.8-79.1 0-29.9-11.7-57.9-32.8-79.1a110.96 110.96 0 0 0-79.1-32.8zm412.3 235.5l-65.4-55.9c3.1-19 4.7-38.4 4.7-57.7s-1.6-38.8-4.7-57.7l65.4-55.9a32.03 32.03 0 0 0 9.3-35.2l-.9-2.6a442.5 442.5 0 0 0-79.6-137.7l-1.8-2.1a32.12 32.12 0 0 0-35.1-9.5l-81.2 28.9c-30-24.6-63.4-44-99.6-57.5l-15.7-84.9a32.05 32.05 0 0 0-25.8-25.7l-2.7-.5c-52-9.4-106.8-9.4-158.8 0l-2.7.5a32.05 32.05 0 0 0-25.8 25.7l-15.8 85.3a353.44 353.44 0 0 0-98.9 57.3l-81.8-29.1a32 32 0 0 0-35.1 9.5l-1.8 2.1a445.93 445.93 0 0 0-79.6 137.7l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.2 56.5c-3.1 18.8-4.6 38-4.6 57 0 19.2 1.5 38.4 4.6 57l-66 56.5a32.03 32.03 0 0 0-9.3 35.2l.9 2.6c18.1 50.3 44.8 96.8 79.6 137.7l1.8 2.1a32.12 32.12 0 0 0 35.1 9.5l81.8-29.1c29.8 24.5 63 43.9 98.9 57.3l15.8 85.3a32.05 32.05 0 0 0 25.8 25.7l2.7.5a448.27 448.27 0 0 0 158.8 0l2.7-.5a32.05 32.05 0 0 0 25.8-25.7l15.7-84.9c36.2-13.6 69.6-32.9 99.6-57.5l81.2 28.9a32 32 0 0 0 35.1-9.5l1.8-2.1c34.8-41.1 61.5-87.4 79.6-137.7l.9-2.6c4.3-12.4.6-26.3-9.5-35zm-412.3 52.2c-97.1 0-175.8-78.7-175.8-175.8s78.7-175.8 175.8-175.8 175.8 78.7 175.8 175.8-78.7 175.8-175.8 175.8z" },
14375
+ "child": []
14376
+ }]
14377
+ })(props);
14378
+ }
14210
14379
  function AiFillGithub(props) {
14211
14380
  return GenIcon({
14212
14381
  "tag": "svg",
@@ -14218,6 +14387,17 @@ function AiFillGithub(props) {
14218
14387
  }]
14219
14388
  })(props);
14220
14389
  }
14390
+ function AiOutlineQq(props) {
14391
+ return GenIcon({
14392
+ "tag": "svg",
14393
+ "attr": { "viewBox": "0 0 1024 1024" },
14394
+ "child": [{
14395
+ "tag": "path",
14396
+ "attr": { "d": "M824.8 613.2c-16-51.4-34.4-94.6-62.7-165.3C766.5 262.2 689.3 112 511.5 112 331.7 112 256.2 265.2 261 447.9c-28.4 70.8-46.7 113.7-62.7 165.3-34 109.5-23 154.8-14.6 155.8 18 2.2 70.1-82.4 70.1-82.4 0 49 25.2 112.9 79.8 159-26.4 8.1-85.7 29.9-71.6 53.8 11.4 19.3 196.2 12.3 249.5 6.3 53.3 6 238.1 13 249.5-6.3 14.1-23.8-45.3-45.7-71.6-53.8 54.6-46.2 79.8-110.1 79.8-159 0 0 52.1 84.6 70.1 82.4 8.5-1.1 19.5-46.4-14.5-155.8z" },
14397
+ "child": []
14398
+ }]
14399
+ })(props);
14400
+ }
14221
14401
  function AiOutlineGift(props) {
14222
14402
  return GenIcon({
14223
14403
  "tag": "svg",
@@ -14230,6 +14410,24 @@ function AiOutlineGift(props) {
14230
14410
  })(props);
14231
14411
  }
14232
14412
 
14413
+ //#endregion
14414
+ //#region node_modules/.pnpm/react-icons@5.7.0_react@19.3.0/node_modules/react-icons/go/index.mjs
14415
+ function GoHistory(props) {
14416
+ return GenIcon({
14417
+ "tag": "svg",
14418
+ "attr": { "viewBox": "0 0 24 24" },
14419
+ "child": [{
14420
+ "tag": "path",
14421
+ "attr": { "d": "M11.998 2.5A9.503 9.503 0 0 0 3.378 8H5.75a.75.75 0 0 1 0 1.5H2a1 1 0 0 1-1-1V4.75a.75.75 0 0 1 1.5 0v1.697A10.997 10.997 0 0 1 11.998 1C18.074 1 23 5.925 23 12s-4.926 11-11.002 11C6.014 23 1.146 18.223 1 12.275a.75.75 0 0 1 1.5-.037 9.5 9.5 0 0 0 9.498 9.262c5.248 0 9.502-4.253 9.502-9.5s-4.254-9.5-9.502-9.5Z" },
14422
+ "child": []
14423
+ }, {
14424
+ "tag": "path",
14425
+ "attr": { "d": "M12.5 7.25a.75.75 0 0 0-1.5 0v5.5c0 .27.144.518.378.651l3.5 2a.75.75 0 0 0 .744-1.302L12.5 12.315V7.25Z" },
14426
+ "child": []
14427
+ }]
14428
+ })(props);
14429
+ }
14430
+
14233
14431
  //#endregion
14234
14432
  //#region src/client/settings/save-settings.ts
14235
14433
  const EDITABLE_SETTING_FIELDS = [
@@ -14272,8 +14470,7 @@ async function saveSettingsDraft(scope, draft, changes, keys) {
14272
14470
  const write = (field, value) => {
14273
14471
  const change = changes[field];
14274
14472
  if (!change) return;
14275
- if (change.kind === "set" && (field === "apiKey" || field === "doubaoApiKey") && !String(value).trim()) return;
14276
- if (change.kind === "set" && field !== "apiKey" && field !== "doubaoApiKey" && (field === "announcementSources" ? JSON.stringify(acceptedValues.announcementSources) === JSON.stringify(value) : Object.is(acceptedValues[field], value))) return;
14473
+ if (change.kind === "set" && (field === "announcementSources" ? JSON.stringify(acceptedValues.announcementSources) === JSON.stringify(value) : Object.is(acceptedValues[field], value))) return;
14277
14474
  if (change.kind === "clear" && !overridden(field)) return;
14278
14475
  ops.push(change.kind === "clear" ? {
14279
14476
  op: "unset",
@@ -14285,8 +14482,11 @@ async function saveSettingsDraft(scope, draft, changes, keys) {
14285
14482
  });
14286
14483
  };
14287
14484
  for (const field of EDITABLE_SETTING_FIELDS) if (field !== "provider") write(field, draft[field]);
14288
- write("apiKey", keys.xiaomi.trim());
14289
- write("doubaoApiKey", keys.doubao.trim());
14485
+ for (const [provider, field] of [["xiaomi", "apiKey"], ["doubao", "doubaoApiKey"]]) if (changes[field]?.kind === "set" && keys[provider].trim()) ops.push({
14486
+ op: "set",
14487
+ path: [field],
14488
+ value: keys[provider].trim()
14489
+ });
14290
14490
  write("provider", draft.provider);
14291
14491
  if (ops.length && !await scope.mutate(ops)) throw new Error("Host rejected a settings update");
14292
14492
  }
@@ -14676,6 +14876,46 @@ var PreviewPlayer = class {
14676
14876
  }
14677
14877
  };
14678
14878
 
14879
+ //#endregion
14880
+ //#region src/client/settings/plugin-links.ts
14881
+ /**
14882
+ * Public destinations the plugin's settings surfaces link to.
14883
+ *
14884
+ * The plugin settings footer and the Voice reading page header both point at
14885
+ * the project, so the URLs live here instead of being repeated per surface.
14886
+ */
14887
+ const SOURCE_URL = "https://github.com/ppy-web/dsh-plugin-xiaomi-mimo-tts";
14888
+ const RELEASES_URL = `${SOURCE_URL}/releases`;
14889
+
14890
+ //#endregion
14891
+ //#region src/client/settings/update-status.ts
14892
+ /**
14893
+ * Latest published version when the Host reports a newer release, else null.
14894
+ * Kept as a hook so the version check stays out of the settings component body.
14895
+ */
14896
+ function useAvailableUpdate() {
14897
+ const [latestVersion, setLatestVersion] = (0, react.useState)(null);
14898
+ (0, react.useEffect)(() => {
14899
+ let active = true;
14900
+ fetch(hostRoute(TTS_UPDATE_ROUTE), {
14901
+ cache: "no-store",
14902
+ headers: { accept: "application/json" }
14903
+ }).then(async (response) => {
14904
+ if (!response.ok) throw new Error("version-check-failed");
14905
+ return await response.json();
14906
+ }).then((result) => {
14907
+ if (!active) return;
14908
+ setLatestVersion(result.updateAvailable === true && typeof result.latestVersion === "string" ? result.latestVersion : null);
14909
+ }).catch(() => {
14910
+ if (active) setLatestVersion(null);
14911
+ });
14912
+ return () => {
14913
+ active = false;
14914
+ };
14915
+ }, []);
14916
+ return latestVersion;
14917
+ }
14918
+
14679
14919
  //#endregion
14680
14920
  //#region src/client/sound-effects/toggle-sound-player.ts
14681
14921
  const TOGGLE_SOUND_DEBOUNCE_MS = 200;
@@ -14818,7 +15058,15 @@ function SettingFieldHeading({ label, suffix, overriddenLabel, resetLabel, overr
14818
15058
  //#endregion
14819
15059
  //#region src/client/settings/module-shell.tsx
14820
15060
  /** Shared DOM frame for settings cards. Content modules only own their body. */
14821
- function ModuleShell({ className, title, summary, action, children, collapsible = false, open = false, onToggle, toggleClassName = "", headingClassName = "", ariaLabel, toggleId, controlsId }) {
15061
+ function ModuleShell({ className, title, summary, interactiveSummary = false, action, children, collapsible = false, open = false, onToggle, toggleClassName = "", headingClassName = "", ariaLabel, toggleId, controlsId }) {
15062
+ const toggleProps = {
15063
+ type: "button",
15064
+ id: toggleId,
15065
+ "aria-controls": controlsId,
15066
+ "aria-expanded": open,
15067
+ "aria-label": ariaLabel ?? (typeof title === "string" ? title : void 0),
15068
+ onClick: onToggle
15069
+ };
14822
15070
  const heading = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
14823
15071
  className: `xmimo-ui-module-head xmimo-ui-module-heading ${headingClassName}`.trim(),
14824
15072
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", { children: title }), summary]
@@ -14827,16 +15075,24 @@ function ModuleShell({ className, title, summary, action, children, collapsible
14827
15075
  className: `xmimo-ui-module ${className}`.trim(),
14828
15076
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("header", {
14829
15077
  className: "xmimo-ui-module-header",
14830
- children: [collapsible ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", {
15078
+ children: [collapsible && interactiveSummary ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
15079
+ className: `xmimo-ui-module-toggle ${toggleClassName}`.trim(),
15080
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
15081
+ className: `xmimo-ui-module-head xmimo-ui-module-heading ${headingClassName}`.trim(),
15082
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", {
15083
+ className: "xmimo-ui-accordion-heading xmimo-ui-interactive-heading",
15084
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
15085
+ ...toggleProps,
15086
+ className: "xmimo-ui-module-title-toggle",
15087
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", { children: title })
15088
+ })
15089
+ }), summary]
15090
+ })
15091
+ }) : collapsible ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", {
14831
15092
  className: "xmimo-ui-accordion-heading",
14832
15093
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
14833
- type: "button",
14834
- id: toggleId,
14835
- "aria-controls": controlsId,
15094
+ ...toggleProps,
14836
15095
  className: `xmimo-ui-module-toggle ${toggleClassName}`.trim(),
14837
- "aria-expanded": open,
14838
- "aria-label": ariaLabel ?? (typeof title === "string" ? title : void 0),
14839
- onClick: onToggle,
14840
15096
  children: heading
14841
15097
  })
14842
15098
  }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
@@ -14873,7 +15129,7 @@ function randomCopyKey(keys, current) {
14873
15129
  while (next === current) next = keys[Math.floor(Math.random() * keys.length)];
14874
15130
  return next;
14875
15131
  }
14876
- function ApiKeyModule({ t, provider, value, message, invalid, clearable, writable, minimal, onChange, onClear }) {
15132
+ function ApiKeyModule({ t, provider, value, message, invalid, writable, minimal, onChange }) {
14877
15133
  const [bubbleKey, setBubbleKey] = (0, react.useState)(() => randomCopyKey(API_KEY_IDLE_COPY_KEYS));
14878
15134
  const inputId = (0, react.useId)();
14879
15135
  const messageId = (0, react.useId)();
@@ -14881,31 +15137,26 @@ function ApiKeyModule({ t, provider, value, message, invalid, clearable, writabl
14881
15137
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ModuleShell, {
14882
15138
  className: "xmimo-tts-settings-module xmimo-tts-api-key xmimo-ui-module-padded",
14883
15139
  title: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingFieldHeading, {
14884
- label: provider === "doubao" ? t("settings.providerDoubao") : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
14885
- className: "xmimo-tts-api-key-logo",
14886
- role: "img",
14887
- "aria-label": t("settings.apiKey"),
14888
- style: { "--xmimo-tts-api-key-logo-image": `url(${hostRoute(TTS_MIMO_LOGO_ASSET_ROUTE)})` }
15140
+ label: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
15141
+ className: "xmimo-ui-module-title",
15142
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(RiKey2Line, {
15143
+ size: 14,
15144
+ "aria-hidden": "true",
15145
+ focusable: "false"
15146
+ }), provider === "doubao" ? t("settings.providerDoubao") : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
15147
+ className: "xmimo-tts-api-key-logo",
15148
+ role: "img",
15149
+ "aria-label": t("settings.apiKey"),
15150
+ style: { "--xmimo-tts-api-key-logo-image": `url(${hostRoute(TTS_MIMO_LOGO_ASSET_ROUTE)})` }
15151
+ })]
14889
15152
  }),
14890
- suffix: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
15153
+ suffix: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
14891
15154
  className: "xmimo-tts-api-key-link",
14892
15155
  href: keyUrl,
14893
15156
  target: "_blank",
14894
15157
  rel: "noopener noreferrer",
14895
15158
  children: t("settings.getApiKey")
14896
- }), clearable ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__deepseek_ai_dsh_client_ui_primitives.Button, {
14897
- type: "button",
14898
- variant: "ghost",
14899
- size: "sm",
14900
- className: "xmimo-tts-reset",
14901
- disabled: !writable,
14902
- onClick: (event) => {
14903
- event.preventDefault();
14904
- event.stopPropagation();
14905
- onClear();
14906
- },
14907
- children: t("settings.apiKeyClear")
14908
- }) : null] }),
15159
+ }),
14909
15160
  disabled: !writable,
14910
15161
  resettable: false
14911
15162
  }),
@@ -14913,8 +15164,12 @@ function ApiKeyModule({ t, provider, value, message, invalid, clearable, writabl
14913
15164
  className: "xmimo-tts-api-key-decoration",
14914
15165
  "aria-hidden": "true"
14915
15166
  }),
14916
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
15167
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("form", {
14917
15168
  className: "xmimo-tts-api-key-content",
15169
+ onSubmit: (event) => {
15170
+ event.preventDefault();
15171
+ event.stopPropagation();
15172
+ },
14918
15173
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
14919
15174
  className: "xmimo-tts-api-key-input",
14920
15175
  children: [
@@ -14971,7 +15226,6 @@ function ApiKeyModule({ t, provider, value, message, invalid, clearable, writabl
14971
15226
  //#region src/client/settings/api-key-state.ts
14972
15227
  /** Resolve the user-facing API-key state without exposing the saved secret to the browser. */
14973
15228
  function resolveApiKeyViewState(draft, draftRecognized, savedStatus, change) {
14974
- if (change === "clear") return "pending-clear";
14975
15229
  if (change === "set" && draft.trim().length > 0) return draftRecognized ? "pending-save" : "pending-invalid";
14976
15230
  return savedStatus;
14977
15231
  }
@@ -16039,13 +16293,14 @@ function useAccordionViewport(open, onToggle) {
16039
16293
 
16040
16294
  //#endregion
16041
16295
  //#region src/client/settings/collapsible-module.tsx
16042
- function CollapsibleModule({ className, title, summary, open, onToggle, ariaLabel, children }) {
16296
+ function CollapsibleModule({ className, title, summary, interactiveSummary = false, open, onToggle, ariaLabel, children }) {
16043
16297
  const id$2 = (0, react.useId)();
16044
16298
  const { panel, toggle } = useAccordionViewport(open, onToggle);
16045
16299
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ModuleShell, {
16046
16300
  className: `xmimo-ui-accordion ${className}`,
16047
16301
  title,
16048
16302
  summary,
16303
+ interactiveSummary,
16049
16304
  collapsible: true,
16050
16305
  open,
16051
16306
  onToggle: toggle,
@@ -16126,7 +16381,15 @@ function DetailsModule({ t, provider, doubaoModel, doubaoVoice, doubaoClonedVoic
16126
16381
  const instructionField = provider === "doubao" ? "doubaoInstruction" : "instruction";
16127
16382
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CollapsibleModule, {
16128
16383
  className: "xmimo-tts-settings-module xmimo-tts-details xmimo-ui-module",
16129
- title: t("settings.detailedVoiceConfig"),
16384
+ title: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
16385
+ className: "xmimo-ui-module-title",
16386
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(RiEqualizerLine, {
16387
+ size: 14,
16388
+ "aria-hidden": "true",
16389
+ focusable: "false"
16390
+ }), t("settings.detailedVoiceConfig")]
16391
+ }),
16392
+ ariaLabel: t("settings.detailedVoiceConfig"),
16130
16393
  summary: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
16131
16394
  className: "xmimo-tts-details-summary xmimo-ui-summary",
16132
16395
  children: [
@@ -16449,19 +16712,7 @@ function DetailsModule({ t, provider, doubaoModel, doubaoVoice, doubaoClonedVoic
16449
16712
 
16450
16713
  //#endregion
16451
16714
  //#region src/client/settings/announcement-settings.tsx
16452
- const ANNOUNCEMENT_SOURCE_OPTIONS = [
16453
- {
16454
- id: "dsh-pet",
16455
- label: "settings.announcementsPet",
16456
- hint: "settings.announcementsPetHint",
16457
- href: "https://github.com/PC2005-cloud/dsh-pet"
16458
- },
16459
- {
16460
- id: "dsh-whale-musume",
16461
- label: "settings.announcementsWhale",
16462
- hint: "settings.announcementsWhaleHint",
16463
- href: "https://github.com/Sutera-Diffusus/dsh-whale-musume"
16464
- },
16715
+ const HOST_SOURCE_OPTIONS = [
16465
16716
  {
16466
16717
  id: "question-titles",
16467
16718
  label: "settings.announcementsQuestions",
@@ -16481,22 +16732,44 @@ const ANNOUNCEMENT_SOURCE_OPTIONS = [
16481
16732
  href: null
16482
16733
  }
16483
16734
  ];
16735
+ const PLUGIN_SOURCE_OPTIONS = [{
16736
+ id: "dsh-pet",
16737
+ label: "settings.announcementsPet",
16738
+ hint: "settings.announcementsPetHint",
16739
+ href: "https://github.com/PC2005-cloud/dsh-pet"
16740
+ }, {
16741
+ id: "dsh-whale-musume",
16742
+ label: "settings.announcementsWhale",
16743
+ hint: "settings.announcementsWhaleHint",
16744
+ href: "https://github.com/Sutera-Diffusus/dsh-whale-musume"
16745
+ }];
16746
+ const ANNOUNCEMENT_SOURCE_OPTIONS = [...HOST_SOURCE_OPTIONS, ...PLUGIN_SOURCE_OPTIONS];
16747
+ const SOURCE_GROUPS = [{
16748
+ label: "settings.announcementsTitle",
16749
+ hint: "settings.announcementsHint",
16750
+ options: HOST_SOURCE_OPTIONS
16751
+ }, {
16752
+ label: "settings.announcementsPlugins",
16753
+ hint: "settings.announcementsPluginsHint",
16754
+ options: PLUGIN_SOURCE_OPTIONS
16755
+ }];
16484
16756
  function AnnouncementSettings({ t, sources, writable, overridden, onChange, onReset }) {
16485
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
16757
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: SOURCE_GROUPS.map((group, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
16486
16758
  className: "xmimo-tts-format",
16759
+ "aria-label": t(group.label),
16487
16760
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingFieldHeading, {
16488
- label: t("settings.announcementsTitle"),
16761
+ label: t(group.label),
16489
16762
  suffix: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FieldInfo, {
16490
- label: t("settings.announcementsTitle"),
16491
- text: t("settings.announcementsHint")
16763
+ label: t(group.label),
16764
+ text: t(group.hint)
16492
16765
  }),
16493
16766
  overriddenLabel: t("settings.overridden"),
16494
16767
  resetLabel: t("settings.reset"),
16495
- overridden,
16768
+ overridden: index === 0 && overridden,
16496
16769
  resettable: true,
16497
16770
  disabled: !writable,
16498
16771
  onReset
16499
- }), ANNOUNCEMENT_SOURCE_OPTIONS.map((option) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
16772
+ }), group.options.map((option) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
16500
16773
  className: "xmimo-tts-announcement-source",
16501
16774
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [option.href ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("a", {
16502
16775
  href: option.href,
@@ -16510,7 +16783,7 @@ function AnnouncementSettings({ t, sources, writable, overridden, onChange, onRe
16510
16783
  onChange: (checked) => onChange(ANNOUNCEMENT_SOURCES.filter((id$2) => id$2 === option.id ? checked : sources.includes(id$2)))
16511
16784
  })]
16512
16785
  }, option.id))]
16513
- });
16786
+ }, group.label)) });
16514
16787
  }
16515
16788
 
16516
16789
  //#endregion
@@ -16552,13 +16825,39 @@ function PreviewModule({ t, enabled, status, source, error, text, onToggle, onTe
16552
16825
  const messageKey = status === "error" ? error === "save-key-first" ? "settings.previewSaveKeyFirst" : error === "voice-required" ? "settings.doubaoVoiceRequired" : error === "voice-unavailable" ? "settings.previewErrorVoiceUnavailable" : error === "resource-unavailable" ? "settings.previewErrorResourceUnavailable" : error === "stream-buffer-limit" ? "settings.previewErrorBufferLimit" : error === "api-key-not-configured" ? "settings.previewErrorApiKeyMissing" : error === "api-key-rejected" ? "settings.previewErrorApiKeyRejected" : error === "rate-limited" ? "settings.previewErrorRateLimited" : error === "timeout" ? "settings.previewErrorTimeout" : error === "local-voice-unavailable" ? "settings.previewErrorLocalUnavailable" : error === "autoplay-blocked" ? "settings.previewErrorAutoplay" : "settings.previewFailed" : status === "loading" ? source === "doubao" ? "settings.previewLoadingDoubao" : source === "local" ? "settings.previewLoadingLocal" : "settings.previewLoadingMimo" : status === "playing" ? source === "doubao" ? "settings.previewPlayingDoubao" : source === "local" ? "settings.previewPlayingLocal" : "settings.previewPlayingMimo" : source === "doubao" ? "settings.previewCompletedDoubao" : source === "local" ? "settings.previewCompletedLocal" : source === "mimo" ? "settings.previewCompletedMimo" : "settings.previewHint";
16553
16826
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CollapsibleModule, {
16554
16827
  className: "xmimo-tts-settings-module xmimo-tts-broadcast",
16555
- title: t("settings.previewTitle"),
16828
+ title: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
16829
+ className: "xmimo-ui-module-title",
16830
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(RiRadio2Line, {
16831
+ size: 14,
16832
+ "aria-hidden": "true",
16833
+ focusable: "false"
16834
+ }), t("settings.previewTitle")]
16835
+ }),
16836
+ ariaLabel: t("settings.previewTitle"),
16556
16837
  open,
16557
16838
  onToggle: onToggleOpen,
16558
- summary: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
16839
+ interactiveSummary: true,
16840
+ summary: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
16559
16841
  className: "xmimo-ui-summary",
16560
- children: [ANNOUNCEMENT_SOURCE_OPTIONS.filter((option) => settings.sources.includes(option.id)).map((option) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t(option.label) }, option.id)), settings.sources.length === 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("settings.announcementsNone") }) : null]
16561
- }),
16842
+ children: [
16843
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
16844
+ type: "button",
16845
+ className: "xmimo-tts-preview-tag",
16846
+ title: t(busy ? "settings.previewStop" : "settings.previewPlay"),
16847
+ "aria-label": t(busy ? "settings.previewStop" : "settings.previewPlay"),
16848
+ "aria-pressed": busy,
16849
+ disabled: !enabled || !busy && text.trim().length === 0,
16850
+ onClick: onToggle,
16851
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(PlaybackIcon, { state: busy ? "stop" : "play" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t(busy ? "settings.previewStopShort" : "settings.previewListen") })]
16852
+ }),
16853
+ ANNOUNCEMENT_SOURCE_OPTIONS.filter((option) => settings.sources.includes(option.id)).map((option) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t(option.label) }, option.id)),
16854
+ settings.sources.length === 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("settings.announcementsNone") }) : null
16855
+ ]
16856
+ }), !open && status === "error" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("small", {
16857
+ className: "xmimo-tts-preview-summary-status xmimo-tts-failed",
16858
+ role: "status",
16859
+ children: t(messageKey)
16860
+ }) : null] }),
16562
16861
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
16563
16862
  className: "xmimo-tts-broadcast-body",
16564
16863
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
@@ -17310,7 +17609,15 @@ function SoundEffectsPanel({ t, controller, enabled, volume, pack, taskSounds, c
17310
17609
  const previewLabel = (cue) => t(`settings.soundEffectsPreview.${cue}`);
17311
17610
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CollapsibleModule, {
17312
17611
  className: "xmimo-tts-settings-module xmimo-tts-sound-effects xmimo-ui-module",
17313
- title: t("settings.soundEffectsTitle"),
17612
+ title: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
17613
+ className: "xmimo-ui-module-title",
17614
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(RiDiscLine, {
17615
+ size: 14,
17616
+ "aria-hidden": "true",
17617
+ focusable: "false"
17618
+ }), t("settings.soundEffectsTitle")]
17619
+ }),
17620
+ ariaLabel: t("settings.soundEffectsTitle"),
17314
17621
  summary: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
17315
17622
  className: "xmimo-tts-sound-summary xmimo-ui-summary",
17316
17623
  children: [
@@ -17390,22 +17697,10 @@ function SoundEffectsPanel({ t, controller, enabled, volume, pack, taskSounds, c
17390
17697
  onKeyDown: (event) => {
17391
17698
  handlePackKeyDown(event, index);
17392
17699
  },
17393
- children: [
17394
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SoundPackIcon, { pack: option }),
17395
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
17396
- className: "xmimo-tts-sound-pack-name",
17397
- children: option
17398
- }),
17399
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
17400
- className: "xmimo-tts-sound-pack-wave",
17401
- "aria-hidden": "true",
17402
- children: [
17403
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("i", {}),
17404
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("i", {}),
17405
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("i", {})
17406
- ]
17407
- })
17408
- ]
17700
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SoundPackIcon, { pack: option }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
17701
+ className: "xmimo-tts-sound-pack-name",
17702
+ children: option
17703
+ })]
17409
17704
  }, option))
17410
17705
  })]
17411
17706
  }),
@@ -17603,6 +17898,20 @@ function SwitchModule({ t, provider, enabled, autoPlay, soundEnabled, minimal, w
17603
17898
  //#endregion
17604
17899
  //#region src/client/settings/minimal-mode.ts
17605
17900
  const MINIMAL_MODE_STORAGE_KEY = "dsh-xiaomi-mimo-tts:minimal-mode";
17901
+ const listeners = /* @__PURE__ */ new Set();
17902
+ let fallbackMode = false;
17903
+ let useFallback = false;
17904
+ function subscribeMinimalMode(listener) {
17905
+ listeners.add(listener);
17906
+ const onStorage = (event) => {
17907
+ if (event.key === MINIMAL_MODE_STORAGE_KEY || event.key === null) listener();
17908
+ };
17909
+ if (typeof window !== "undefined") window.addEventListener("storage", onStorage);
17910
+ return () => {
17911
+ listeners.delete(listener);
17912
+ if (typeof window !== "undefined") window.removeEventListener("storage", onStorage);
17913
+ };
17914
+ }
17606
17915
  function getStorage() {
17607
17916
  try {
17608
17917
  return typeof window === "undefined" ? void 0 : window.localStorage;
@@ -17612,15 +17921,23 @@ function getStorage() {
17612
17921
  }
17613
17922
  function readMinimalMode() {
17614
17923
  try {
17615
- return getStorage()?.getItem(MINIMAL_MODE_STORAGE_KEY) === "true";
17924
+ if (useFallback) return fallbackMode;
17925
+ const storage = getStorage();
17926
+ return storage ? storage.getItem(MINIMAL_MODE_STORAGE_KEY) === "true" : fallbackMode;
17616
17927
  } catch {
17617
- return false;
17928
+ return fallbackMode;
17618
17929
  }
17619
17930
  }
17620
17931
  function writeMinimalMode(enabled) {
17932
+ fallbackMode = enabled;
17621
17933
  try {
17622
- getStorage()?.setItem(MINIMAL_MODE_STORAGE_KEY, String(enabled));
17623
- } catch {}
17934
+ const storage = getStorage();
17935
+ storage?.setItem(MINIMAL_MODE_STORAGE_KEY, String(enabled));
17936
+ useFallback = !storage;
17937
+ } catch {
17938
+ useFallback = true;
17939
+ }
17940
+ for (const listener of listeners) listener();
17624
17941
  }
17625
17942
 
17626
17943
  //#endregion
@@ -17885,29 +18202,80 @@ var SpeechActivity = class {
17885
18202
  };
17886
18203
 
17887
18204
  //#endregion
17888
- //#region src/client/history/audio-history-page.tsx
17889
- function AudioHistoryPage({ history, t, volume, voiceRate, minimalMode, speechActivity, beforePlayback, onBack }) {
17890
- const view = (0, react.useSyncExternalStore)(history.subscribe, history.getSnapshot);
17891
- const [replay] = (0, react.useState)(() => new HistoryReplay(history, beforePlayback));
17892
- (0, react.useEffect)(() => speechActivity?.register(() => isSpeechBusy(replay.getSnapshot().status)), [speechActivity, replay]);
17893
- const playback = (0, react.useSyncExternalStore)(replay.subscribe, replay.getSnapshot);
17894
- const [downloads] = (0, react.useState)(() => new HistoryDownloads());
17895
- const [query, setQuery] = (0, react.useState)("");
17896
- const [source, setSource] = (0, react.useState)("all");
17897
- const [expanded, setExpanded] = (0, react.useState)(null);
17898
- const [deleting, setDeleting] = (0, react.useState)(null);
17899
- const [clearing, setClearing] = (0, react.useState)(false);
17900
- const [pending, setPending] = (0, react.useState)(false);
17901
- const [actionError, setActionError] = (0, react.useState)(false);
17902
- const backRef = (0, react.useRef)(null);
17903
- const searchRef = (0, react.useRef)(null);
17904
- (0, react.useEffect)(() => {
17905
- replay.activate();
17906
- backRef.current?.focus({ preventScroll: true });
17907
- return () => {
17908
- replay.dispose();
17909
- downloads.dispose();
17910
- };
18205
+ //#region src/client/settings/voice-reading-select.tsx
18206
+ /**
18207
+ * Capsule selector pill plus anchored menu, mirroring the Host settings rows
18208
+ * (`packages/client/ui-chat/src/client/settings/PreferenceRow.tsx` and
18209
+ * `packages/client/locale/src/client/LanguageRow.tsx` in the harness source): a
18210
+ * borderless 36px pill on the module surface that opens the shared `Menu` with
18211
+ * a check on the selected row. Choosing returns focus to the pill before the
18212
+ * value is published, exactly like the Host rows.
18213
+ */
18214
+ function VoiceReadingSelect({ label, value, fallbackLabel, options, disabled, onSelect }) {
18215
+ const [open, setOpen] = (0, react.useState)(false);
18216
+ const selectorRef = (0, react.useRef)(null);
18217
+ const closeMenu = () => {
18218
+ setOpen(false);
18219
+ };
18220
+ const choose = (id$2) => {
18221
+ selectorRef.current?.focus({ preventScroll: true });
18222
+ closeMenu();
18223
+ onSelect(id$2);
18224
+ };
18225
+ const selectedLabel = options.find((option) => option.id === value)?.label ?? fallbackLabel ?? value;
18226
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__deepseek_ai_dsh_client_ui_primitives.Menu, {
18227
+ open: open && !disabled,
18228
+ anchor: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
18229
+ ref: selectorRef,
18230
+ type: "button",
18231
+ className: "xmimo-voice-reading-selector",
18232
+ "aria-label": label,
18233
+ "aria-haspopup": "menu",
18234
+ "aria-expanded": open,
18235
+ disabled,
18236
+ onClick: () => {
18237
+ setOpen((current) => !current);
18238
+ },
18239
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
18240
+ className: "xmimo-voice-reading-selector-label",
18241
+ children: selectedLabel
18242
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__deepseek_ai_dsh_client_ui_primitives.IconChevronDownOutlineRegular, { className: "xmimo-voice-reading-chevron" })]
18243
+ }),
18244
+ items: options,
18245
+ selectedId: value,
18246
+ onSelect: choose,
18247
+ onClose: closeMenu,
18248
+ align: "end",
18249
+ portal: true,
18250
+ listClassName: "xmimo-voice-reading-menu"
18251
+ });
18252
+ }
18253
+
18254
+ //#endregion
18255
+ //#region src/client/history/audio-history-page.tsx
18256
+ function AudioHistoryPage({ history, t, volume, voiceRate, minimalMode, speechActivity, beforePlayback, onBack }) {
18257
+ const view = (0, react.useSyncExternalStore)(history.subscribe, history.getSnapshot);
18258
+ const [replay] = (0, react.useState)(() => new HistoryReplay(history, beforePlayback));
18259
+ (0, react.useEffect)(() => speechActivity?.register(() => isSpeechBusy(replay.getSnapshot().status)), [speechActivity, replay]);
18260
+ const playback = (0, react.useSyncExternalStore)(replay.subscribe, replay.getSnapshot);
18261
+ const [downloads] = (0, react.useState)(() => new HistoryDownloads());
18262
+ const [query, setQuery] = (0, react.useState)("");
18263
+ const [source, setSource] = (0, react.useState)("all");
18264
+ const [expanded, setExpanded] = (0, react.useState)(null);
18265
+ const [deleting, setDeleting] = (0, react.useState)(null);
18266
+ const [clearing, setClearing] = (0, react.useState)(false);
18267
+ const [pending, setPending] = (0, react.useState)(false);
18268
+ const [actionError, setActionError] = (0, react.useState)(false);
18269
+ const backRef = (0, react.useRef)(null);
18270
+ const searchRef = (0, react.useRef)(null);
18271
+ const pageRef = (0, react.useRef)(null);
18272
+ (0, react.useEffect)(() => {
18273
+ replay.activate();
18274
+ backRef.current?.focus({ preventScroll: true });
18275
+ return () => {
18276
+ replay.dispose();
18277
+ downloads.dispose();
18278
+ };
17911
18279
  }, [replay, downloads]);
17912
18280
  (0, react.useEffect)(() => {
17913
18281
  replay.configure(volume, voiceRate, beforePlayback);
@@ -17917,6 +18285,17 @@ function AudioHistoryPage({ history, t, volume, voiceRate, minimalMode, speechAc
17917
18285
  voiceRate,
17918
18286
  beforePlayback
17919
18287
  ]);
18288
+ (0, react.useEffect)(() => {
18289
+ const page = pageRef.current;
18290
+ if (!page || typeof ResizeObserver === "undefined") return;
18291
+ const observer$1 = new ResizeObserver(([entry]) => {
18292
+ if (entry && entry.contentRect.width <= 520) setQuery("");
18293
+ });
18294
+ observer$1.observe(page);
18295
+ return () => {
18296
+ observer$1.disconnect();
18297
+ };
18298
+ }, []);
17920
18299
  const hasEntries = view.entries.length > 0;
17921
18300
  const entries = filterAudioHistory(view.entries, query, source);
17922
18301
  const busy = playback.status === "loading" || playback.status === "playing";
@@ -17932,7 +18311,7 @@ function AudioHistoryPage({ history, t, volume, voiceRate, minimalMode, speechAc
17932
18311
  else await history.remove(id$2);
17933
18312
  setDeleting(null);
17934
18313
  setClearing(false);
17935
- (searchRef.current ?? backRef.current)?.focus({ preventScroll: true });
18314
+ (searchRef.current?.getClientRects().length ? searchRef.current : backRef.current)?.focus({ preventScroll: true });
17936
18315
  } catch {
17937
18316
  setActionError(true);
17938
18317
  } finally {
@@ -17948,19 +18327,31 @@ function AudioHistoryPage({ history, t, volume, voiceRate, minimalMode, speechAc
17948
18327
  }
17949
18328
  };
17950
18329
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
18330
+ ref: pageRef,
17951
18331
  className: "xmimo-ui-scope xmimo-tts-history-page",
17952
18332
  "aria-label": t("history.title"),
17953
18333
  children: [
17954
18334
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("header", {
17955
18335
  className: "xmimo-tts-history-header",
17956
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("h2", { children: [
17957
- t("history.title"),
17958
- " ",
17959
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
18336
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("h2", {
18337
+ "aria-label": t("history.title"),
18338
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
18339
+ ref: backRef,
18340
+ type: "button",
18341
+ className: "xmimo-tts-history-title-back",
18342
+ "aria-label": t("history.backToSettings"),
18343
+ title: t("history.backToSettings"),
18344
+ onClick: onBack,
18345
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(RiArrowLeftSLine, {
18346
+ size: 18,
18347
+ "aria-hidden": "true",
18348
+ focusable: "false"
18349
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("history.title") })]
18350
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
17960
18351
  className: "xmimo-tts-history-count",
17961
18352
  children: view.entries.length
17962
- })
17963
- ] }), hasEntries ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
18353
+ })]
18354
+ }), hasEntries ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
17964
18355
  className: "xmimo-tts-history-toolbar",
17965
18356
  children: [
17966
18357
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__deepseek_ai_dsh_client_ui_primitives.Input, {
@@ -17975,31 +18366,34 @@ function AudioHistoryPage({ history, t, volume, voiceRate, minimalMode, speechAc
17975
18366
  setDeleting(null);
17976
18367
  }
17977
18368
  }),
17978
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
18369
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
17979
18370
  className: "xmimo-tts-history-source",
17980
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("select", {
17981
- "aria-label": t("history.source"),
18371
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(VoiceReadingSelect, {
18372
+ label: t("history.source"),
17982
18373
  value: source,
17983
- onChange: (event) => {
17984
- setSource(event.target.value);
17985
- setDeleting(null);
17986
- },
17987
- children: [
18374
+ disabled: pending,
18375
+ options: [
17988
18376
  "all",
17989
18377
  "conversation",
17990
18378
  "preview",
17991
18379
  "service"
17992
- ].map((value) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
17993
- value,
17994
- children: t(`history.${value}`)
17995
- }, value))
18380
+ ].map((id$2) => ({
18381
+ id: id$2,
18382
+ label: t(`history.${id$2}`)
18383
+ })),
18384
+ onSelect: (id$2) => {
18385
+ setSource(id$2);
18386
+ setDeleting(null);
18387
+ }
17996
18388
  })
17997
18389
  }),
17998
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__deepseek_ai_dsh_client_ui_primitives.Button, {
18390
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__deepseek_ai_dsh_client_ui_primitives.Button, {
17999
18391
  type: "button",
18392
+ variant: "outline",
18000
18393
  disabled: pending || view.status === "loading",
18001
- className: clearing ? "xmimo-tts-history-confirm-delete" : void 0,
18002
- title: clearing ? t("history.clearConfirm") : void 0,
18394
+ className: `xmimo-tts-history-action${clearing ? " xmimo-tts-history-confirm-delete" : ""}`,
18395
+ "aria-label": t(clearing ? "history.confirmClear" : "history.clear"),
18396
+ title: t(clearing ? "history.clearConfirm" : "history.clear"),
18003
18397
  onBlur: () => {
18004
18398
  if (!pending) setClearing(false);
18005
18399
  },
@@ -18013,7 +18407,7 @@ function AudioHistoryPage({ history, t, volume, voiceRate, minimalMode, speechAc
18013
18407
  setDeleting(null);
18014
18408
  }
18015
18409
  },
18016
- children: t(clearing ? "history.confirmClear" : "history.clear")
18410
+ children: [clearing ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RiCheckLine, { "aria-hidden": "true" }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RiDeleteBinLine, { "aria-hidden": "true" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t(clearing ? "history.confirmClear" : "history.clear") })]
18017
18411
  })
18018
18412
  ]
18019
18413
  }) : null]
@@ -18150,17 +18544,22 @@ function AudioHistoryPage({ history, t, volume, voiceRate, minimalMode, speechAc
18150
18544
  }),
18151
18545
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
18152
18546
  className: "xmimo-tts-history-actions",
18153
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(__deepseek_ai_dsh_client_ui_primitives.Button, {
18547
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__deepseek_ai_dsh_client_ui_primitives.Button, {
18154
18548
  type: "button",
18549
+ variant: "outline",
18550
+ className: "xmimo-tts-history-action",
18551
+ title: t("history.download"),
18155
18552
  "aria-label": `${t("history.download")}: ${title(entry).slice(0, 60)}`,
18156
18553
  onClick: () => {
18157
18554
  download(entry);
18158
18555
  },
18159
- children: t("history.download")
18160
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__deepseek_ai_dsh_client_ui_primitives.Button, {
18556
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(RiDownloadLine, { "aria-hidden": "true" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("history.download") })]
18557
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__deepseek_ai_dsh_client_ui_primitives.Button, {
18161
18558
  type: "button",
18559
+ variant: "outline",
18162
18560
  disabled: pending,
18163
- className: deleting === entry.id ? "xmimo-tts-history-confirm-delete" : void 0,
18561
+ className: `xmimo-tts-history-action${deleting === entry.id ? " xmimo-tts-history-confirm-delete" : ""}`,
18562
+ title: t(deleting === entry.id ? "history.confirmDelete" : "history.delete"),
18164
18563
  "aria-label": `${t(deleting === entry.id ? "history.confirmDelete" : "history.delete")}: ${title(entry).slice(0, 60)}`,
18165
18564
  onBlur: () => {
18166
18565
  if (!pending) setDeleting((current) => current === entry.id ? null : current);
@@ -18175,7 +18574,7 @@ function AudioHistoryPage({ history, t, volume, voiceRate, minimalMode, speechAc
18175
18574
  setClearing(false);
18176
18575
  }
18177
18576
  },
18178
- children: t(deleting === entry.id ? "history.confirmDelete" : "history.delete")
18577
+ children: [deleting === entry.id ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RiCheckLine, { "aria-hidden": "true" }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RiDeleteBinLine, { "aria-hidden": "true" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t(deleting === entry.id ? "history.confirmDelete" : "history.delete") })]
18179
18578
  })]
18180
18579
  })
18181
18580
  ]
@@ -18192,9 +18591,11 @@ function AudioHistoryPage({ history, t, volume, voiceRate, minimalMode, speechAc
18192
18591
  view.entries.length,
18193
18592
  " · ",
18194
18593
  historyFileSize(view.entries.reduce((sum, entry) => sum + entry.blob.size, 0))
18195
- ] }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("history.hint") })]
18594
+ ] }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
18595
+ className: "xmimo-tts-history-limit",
18596
+ children: t("history.hint")
18597
+ })]
18196
18598
  }) : null, /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__deepseek_ai_dsh_client_ui_primitives.Button, {
18197
- ref: backRef,
18198
18599
  type: "button",
18199
18600
  variant: "outline",
18200
18601
  size: "sm",
@@ -18209,7 +18610,6 @@ function AudioHistoryPage({ history, t, volume, voiceRate, minimalMode, speechAc
18209
18610
 
18210
18611
  //#endregion
18211
18612
  //#region src/client/settings/card.tsx
18212
- const RELEASES_URL = "https://github.com/ppy-web/dsh-plugin-xiaomi-mimo-tts/releases";
18213
18613
  const PREVIEW_TEXT_KEYS = [
18214
18614
  "settings.previewDefaultText",
18215
18615
  "settings.previewDefaultTextPoetry",
@@ -18232,11 +18632,18 @@ function HistoryLink({ history, t, onOpen, buttonRef }) {
18232
18632
  variant: "toolbar",
18233
18633
  size: "sm",
18234
18634
  onClick: onOpen,
18235
- children: [
18236
- t("history.title"),
18237
- " · ",
18238
- view.entries.length
18239
- ]
18635
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(GoHistory, {
18636
+ size: 14,
18637
+ "aria-hidden": "true",
18638
+ focusable: "false"
18639
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
18640
+ className: "xmimo-tts-action-label",
18641
+ children: [
18642
+ t("history.title"),
18643
+ " · ",
18644
+ view.entries.length
18645
+ ]
18646
+ })]
18240
18647
  });
18241
18648
  }
18242
18649
  function SettingsCard(props) {
@@ -18314,7 +18721,7 @@ function SettingsPage({ scope, t, controller, history, beforeHistoryPlayback, sp
18314
18721
  toggleSoundPlayer
18315
18722
  ]);
18316
18723
  const [apiKeyStatus, setApiKeyStatus] = (0, react.useState)("loading");
18317
- const [latestVersion, setLatestVersion] = (0, react.useState)(null);
18724
+ const latestVersion = useAvailableUpdate();
18318
18725
  const [minimalMode, setMinimalMode] = (0, react.useState)(readMinimalMode);
18319
18726
  const [historyOpen, setHistoryOpen] = (0, react.useState)(false);
18320
18727
  const historyLinkRef = (0, react.useRef)(null);
@@ -18363,13 +18770,12 @@ function SettingsPage({ scope, t, controller, history, beforeHistoryPlayback, sp
18363
18770
  if (change.kind === "clear") return hasOverride(field);
18364
18771
  return field === "announcementSources" ? JSON.stringify(draft[field]) !== JSON.stringify(acceptedValue(field)) : !Object.is(draft[field], acceptedValue(field));
18365
18772
  };
18366
- const apiKeyDirty = ["apiKey", "doubaoApiKey"].some((field) => changes[field]?.kind === "clear" ? hasOverride(field) : changes[field]?.kind === "set" && apiKeys[field === "apiKey" ? "xiaomi" : "doubao"].trim().length > 0);
18773
+ const apiKeyDirty = ["apiKey", "doubaoApiKey"].some((field) => changes[field]?.kind === "set" && apiKeys[field === "apiKey" ? "xiaomi" : "doubao"].trim().length > 0);
18367
18774
  const dirty = EDITABLE_SETTING_FIELDS.some(fieldDirty) || apiKeyDirty;
18368
18775
  const validationError = validateSettingsDraft(draft);
18369
18776
  const apiKeyViewState = resolveApiKeyViewState(apiKey, isSupportedTtsApiKey(apiKey, provider), apiKeyStatus, changes[apiKeyField]?.kind);
18370
- const apiKeyMessage = t(apiKeyViewState === "loading" ? "settings.apiKeyLoading" : apiKeyViewState === "missing" ? "settings.apiKeyMissing" : apiKeyViewState === "recognized" ? provider === "doubao" ? "settings.doubaoKeyConfigured" : "settings.apiKeyRecognized" : apiKeyViewState === "unrecognized" ? "settings.apiKeyUnsupportedSaved" : apiKeyViewState === "unavailable" ? "settings.apiKeyUnavailable" : apiKeyViewState === "pending-save" ? "settings.apiKeyPendingSave" : apiKeyViewState === "pending-clear" ? "settings.apiKeyPendingClear" : "settings.apiKeyUnsupported");
18777
+ const apiKeyMessage = t(apiKeyViewState === "loading" ? "settings.apiKeyLoading" : apiKeyViewState === "missing" ? "settings.apiKeyMissing" : apiKeyViewState === "recognized" ? provider === "doubao" ? "settings.doubaoKeyConfigured" : "settings.apiKeyRecognized" : apiKeyViewState === "unrecognized" ? "settings.apiKeyUnsupportedSaved" : apiKeyViewState === "unavailable" ? "settings.apiKeyUnavailable" : apiKeyViewState === "pending-save" ? "settings.apiKeyPendingSave" : "settings.apiKeyUnsupported");
18371
18778
  const apiKeyInvalid = apiKeyViewState === "pending-invalid" || apiKeyViewState === "unrecognized";
18372
- const apiKeyClearable = hasOverride(apiKeyField) && changes[apiKeyField]?.kind !== "clear";
18373
18779
  (0, react.useEffect)(() => {
18374
18780
  if (snapshot.status === "unavailable") return;
18375
18781
  let active = true;
@@ -18391,24 +18797,6 @@ function SettingsPage({ scope, t, controller, history, beforeHistoryPlayback, sp
18391
18797
  snapshot.status,
18392
18798
  value
18393
18799
  ]);
18394
- (0, react.useEffect)(() => {
18395
- let active = true;
18396
- fetch(hostRoute(TTS_UPDATE_ROUTE), {
18397
- cache: "no-store",
18398
- headers: { accept: "application/json" }
18399
- }).then(async (response) => {
18400
- if (!response.ok) throw new Error("version-check-failed");
18401
- return await response.json();
18402
- }).then((result) => {
18403
- if (!active) return;
18404
- setLatestVersion(result.updateAvailable === true && typeof result.latestVersion === "string" ? result.latestVersion : null);
18405
- }).catch(() => {
18406
- if (active) setLatestVersion(null);
18407
- });
18408
- return () => {
18409
- active = false;
18410
- };
18411
- }, []);
18412
18800
  (0, react.useEffect)(() => {
18413
18801
  if (dirty) return;
18414
18802
  const next = resolveTtsSettings(value);
@@ -18473,16 +18861,20 @@ function SettingsPage({ scope, t, controller, history, beforeHistoryPlayback, sp
18473
18861
  historyWasOpen.current = historyOpen;
18474
18862
  }, [historyOpen]);
18475
18863
  if (snapshot.status === "unavailable") return null;
18476
- const markChange = (field, kind = "set") => {
18864
+ const markChange = (field) => {
18477
18865
  setChanges((current) => ({
18478
18866
  ...current,
18479
- [field]: { kind }
18867
+ [field]: { kind: "set" }
18480
18868
  }));
18481
18869
  setState("idle");
18482
18870
  };
18483
18871
  const resetField = (field) => {
18484
18872
  previewPlayer.stop();
18485
- markChange(field, "clear");
18873
+ setChanges((current) => ({
18874
+ ...current,
18875
+ [field]: { kind: "clear" }
18876
+ }));
18877
+ setState("idle");
18486
18878
  if (field === "provider") setProvider(base.provider);
18487
18879
  if (field === "doubaoModel") setDoubaoModel(base.doubaoModel);
18488
18880
  if (field === "doubaoVoice") setDoubaoVoice(base.doubaoVoice);
@@ -18507,10 +18899,6 @@ function SettingsPage({ scope, t, controller, history, beforeHistoryPlayback, sp
18507
18899
  if (field === "taskSounds") setTaskSounds(base.taskSounds);
18508
18900
  if (field === "clickSounds") setClickSounds(base.clickSounds);
18509
18901
  };
18510
- const clearApiKey = () => {
18511
- setApiKey("");
18512
- markChange(apiKeyField, "clear");
18513
- };
18514
18902
  const discard = () => {
18515
18903
  const next = resolveTtsSettings(scope.getSnapshot().value);
18516
18904
  setProvider(next.provider);
@@ -18719,14 +19107,12 @@ function SettingsPage({ scope, t, controller, history, beforeHistoryPlayback, sp
18719
19107
  value: apiKey,
18720
19108
  message: apiKeyMessage,
18721
19109
  invalid: apiKeyInvalid,
18722
- clearable: apiKeyClearable,
18723
19110
  writable: snapshot.writable,
18724
19111
  minimal: minimalMode,
18725
19112
  onChange: (next) => {
18726
19113
  setApiKey(next);
18727
19114
  markChange(apiKeyField);
18728
- },
18729
- onClear: clearApiKey
19115
+ }
18730
19116
  }),
18731
19117
  enabled ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(DetailsModule, {
18732
19118
  t,
@@ -18868,89 +19254,113 @@ function SettingsPage({ scope, t, controller, history, beforeHistoryPlayback, sp
18868
19254
  markChange("announcementSources");
18869
19255
  }
18870
19256
  }) : null,
18871
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
18872
- className: "xmimo-tts-card-actions",
18873
- children: [
18874
- latestVersion !== null ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("a", {
18875
- className: "xmimo-tts-update",
18876
- href: RELEASES_URL,
18877
- target: "_blank",
18878
- rel: "noopener noreferrer",
18879
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(AiOutlineGift, {
18880
- size: 14,
18881
- "aria-hidden": "true",
18882
- focusable: "false"
18883
- }), t("settings.updateAvailable")]
18884
- }) : null,
18885
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
18886
- className: "xmimo-tts-card-action-links",
18887
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("a", {
18888
- className: "xmimo-tts-star",
18889
- href: "https://github.com/ppy-web/dsh-plugin-xiaomi-mimo-tts",
18890
- target: "_blank",
18891
- rel: "noopener noreferrer",
18892
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(AiFillGithub, {
18893
- size: 14,
18894
- "aria-hidden": "true",
18895
- focusable: "false"
18896
- }), t("settings.source")]
18897
- }), history ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(HistoryLink, {
18898
- history,
18899
- t,
18900
- buttonRef: historyLinkRef,
18901
- onOpen: () => {
18902
- previewPlayer.stop();
18903
- toggleSoundPlayer.dispose();
18904
- setHistoryOpen(true);
18905
- }
18906
- }) : null]
18907
- }),
18908
- !snapshot.writable ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("settings.readOnly") }) : null,
18909
- state === "saved" && !dirty ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
18910
- role: "status",
18911
- children: t("settings.saved")
18912
- }) : null,
18913
- validationError !== null ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
18914
- role: "alert",
18915
- className: "xmimo-tts-failed",
18916
- children: t("settings.doubaoVoiceRequired")
18917
- }) : null,
18918
- state === "failed" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
18919
- className: "xmimo-tts-failed",
18920
- role: "status",
18921
- children: t("settings.failed")
18922
- }) : null,
18923
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__deepseek_ai_dsh_client_ui_primitives.Button, {
18924
- type: "button",
18925
- variant: "toolbar",
18926
- size: "sm",
18927
- className: "xmimo-tts-mode-toggle",
18928
- "aria-pressed": minimalMode,
18929
- "aria-label": `${t("settings.minimalMode")}: ${t(minimalMode ? "settings.minimalModeOn" : "settings.minimalModeOff")}`,
18930
- onClick: toggleMinimalMode,
18931
- children: t(minimalMode ? "settings.defaultModeShort" : "settings.minimalModeShort")
18932
- }),
18933
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__deepseek_ai_dsh_client_ui_primitives.Button, {
18934
- type: "button",
18935
- variant: "outline",
18936
- size: "sm",
18937
- className: "xmimo-tts-discard",
18938
- disabled: !snapshot.writable || !dirty || state === "saving",
18939
- onClick: discard,
18940
- children: t("settings.discard")
18941
- }),
18942
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__deepseek_ai_dsh_client_ui_primitives.Button, {
18943
- type: "button",
18944
- variant: "primary",
18945
- size: "sm",
18946
- className: "xmimo-tts-save",
18947
- disabled: !snapshot.writable || !dirty || state === "saving" || validationError !== null,
18948
- onClick: () => {
18949
- save();
18950
- },
18951
- children: state === "saving" ? t("settings.saving") : t("settings.save")
18952
- })
18953
- ]
19257
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
19258
+ className: "xmimo-tts-card-footer",
19259
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
19260
+ className: "xmimo-tts-card-actions",
19261
+ children: [
19262
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
19263
+ className: "xmimo-tts-card-action-links",
19264
+ children: [
19265
+ latestVersion !== null ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("a", {
19266
+ className: "xmimo-tts-update",
19267
+ href: RELEASES_URL,
19268
+ target: "_blank",
19269
+ rel: "noopener noreferrer",
19270
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(AiOutlineGift, {
19271
+ size: 14,
19272
+ "aria-hidden": "true",
19273
+ focusable: "false"
19274
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
19275
+ className: "xmimo-tts-action-label",
19276
+ children: t("settings.updateAvailable")
19277
+ })]
19278
+ }) : null,
19279
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("a", {
19280
+ className: "xmimo-tts-star",
19281
+ href: SOURCE_URL,
19282
+ target: "_blank",
19283
+ rel: "noopener noreferrer",
19284
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(AiFillGithub, {
19285
+ size: 14,
19286
+ "aria-hidden": "true",
19287
+ focusable: "false"
19288
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
19289
+ className: "xmimo-tts-action-label",
19290
+ children: t("settings.source")
19291
+ })]
19292
+ }),
19293
+ history ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(HistoryLink, {
19294
+ history,
19295
+ t,
19296
+ buttonRef: historyLinkRef,
19297
+ onOpen: () => {
19298
+ previewPlayer.stop();
19299
+ toggleSoundPlayer.dispose();
19300
+ setHistoryOpen(true);
19301
+ }
19302
+ }) : null,
19303
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__deepseek_ai_dsh_client_ui_primitives.Button, {
19304
+ type: "button",
19305
+ variant: "toolbar",
19306
+ size: "sm",
19307
+ className: "xmimo-tts-mode-toggle",
19308
+ "aria-pressed": minimalMode,
19309
+ "aria-label": `${t("settings.minimalMode")}: ${t(minimalMode ? "settings.minimalModeOn" : "settings.minimalModeOff")}`,
19310
+ onClick: toggleMinimalMode,
19311
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(RiSwitchFill, {
19312
+ size: 14,
19313
+ "aria-hidden": "true",
19314
+ focusable: "false"
19315
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
19316
+ className: "xmimo-tts-action-label",
19317
+ children: t(minimalMode ? "settings.defaultModeShort" : "settings.minimalModeShort")
19318
+ })]
19319
+ })
19320
+ ]
19321
+ }),
19322
+ !snapshot.writable ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("settings.readOnly") }) : null,
19323
+ validationError !== null ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
19324
+ role: "alert",
19325
+ className: "xmimo-tts-failed",
19326
+ children: t("settings.doubaoVoiceRequired")
19327
+ }) : null,
19328
+ state === "failed" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
19329
+ className: "xmimo-tts-failed",
19330
+ role: "status",
19331
+ children: t("settings.failed")
19332
+ }) : null,
19333
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
19334
+ className: "xmimo-tts-card-action-buttons",
19335
+ children: [
19336
+ state === "saved" && !dirty ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
19337
+ role: "status",
19338
+ children: t("settings.saved")
19339
+ }) : null,
19340
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__deepseek_ai_dsh_client_ui_primitives.Button, {
19341
+ type: "button",
19342
+ variant: "outline",
19343
+ size: "sm",
19344
+ className: "xmimo-tts-discard",
19345
+ disabled: !snapshot.writable || !dirty || state === "saving",
19346
+ onClick: discard,
19347
+ children: t("settings.discard")
19348
+ }),
19349
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__deepseek_ai_dsh_client_ui_primitives.Button, {
19350
+ type: "button",
19351
+ variant: "primary",
19352
+ size: "sm",
19353
+ className: "xmimo-tts-save",
19354
+ disabled: !snapshot.writable || !dirty || state === "saving" || validationError !== null,
19355
+ onClick: () => {
19356
+ save();
19357
+ },
19358
+ children: state === "saving" ? t("settings.saving") : t("settings.save")
19359
+ })
19360
+ ]
19361
+ })
19362
+ ]
19363
+ })
18954
19364
  })
18955
19365
  ]
18956
19366
  })
@@ -19029,8 +19439,168 @@ function installVoiceReadingNavIcon() {
19029
19439
  };
19030
19440
  }
19031
19441
 
19442
+ //#endregion
19443
+ //#region src/client/settings/voice-reading-links.tsx
19444
+ /**
19445
+ * Title-row shortcuts: source, the QQ discussion group, and plugin settings.
19446
+ *
19447
+ * All three are 32px icon-only targets that name themselves through a tooltip
19448
+ * and an aria-label, and each glyph stays in the neutral secondary label color
19449
+ * so the brand accent remains reserved for primary actions.
19450
+ */
19451
+ function VoiceReadingHeaderActions({ t, openPluginSettings }) {
19452
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
19453
+ className: "xmimo-voice-reading-actions",
19454
+ children: [
19455
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__deepseek_ai_dsh_client_ui_primitives.Tooltip, {
19456
+ label: t("settings.voiceReadingSource"),
19457
+ side: "bottom",
19458
+ align: "end",
19459
+ portal: true,
19460
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
19461
+ className: "xmimo-voice-reading-action",
19462
+ href: SOURCE_URL,
19463
+ target: "_blank",
19464
+ rel: "noopener noreferrer",
19465
+ "aria-label": t("settings.voiceReadingSource"),
19466
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AiFillGithub, {
19467
+ size: 16,
19468
+ "aria-hidden": "true",
19469
+ focusable: "false"
19470
+ })
19471
+ })
19472
+ }),
19473
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(QqGroupAction, { t }),
19474
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__deepseek_ai_dsh_client_ui_primitives.Tooltip, {
19475
+ label: t("settings.voiceReadingPluginSettings"),
19476
+ side: "bottom",
19477
+ align: "end",
19478
+ portal: true,
19479
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
19480
+ type: "button",
19481
+ className: "xmimo-voice-reading-action",
19482
+ "aria-label": t("settings.voiceReadingPluginSettings"),
19483
+ onClick: openPluginSettings,
19484
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AiFillSetting, {
19485
+ size: 16,
19486
+ "aria-hidden": "true",
19487
+ focusable: "false"
19488
+ })
19489
+ })
19490
+ })
19491
+ ]
19492
+ });
19493
+ }
19494
+ /**
19495
+ * QQ group entry. Activating it opens the QR capsule directly: no protocol
19496
+ * handler attempt, no waiting on QQ, just the invite that works everywhere —
19497
+ * phone scan, or the group number typed into QQ by hand.
19498
+ */
19499
+ function QqGroupAction({ t }) {
19500
+ const [open, setOpen] = (0, react.useState)(false);
19501
+ const wrapperRef = (0, react.useRef)(null);
19502
+ const triggerRef = (0, react.useRef)(null);
19503
+ const closeRef = (0, react.useRef)(null);
19504
+ const panelId = (0, react.useId)();
19505
+ const close = () => {
19506
+ setOpen(false);
19507
+ };
19508
+ (0, react.useEffect)(() => {
19509
+ if (!open) return;
19510
+ closeRef.current?.focus({ preventScroll: true });
19511
+ const onPointerDown = (event) => {
19512
+ if (wrapperRef.current?.contains(event.target)) return;
19513
+ close();
19514
+ };
19515
+ const onKeyDown = (event) => {
19516
+ if (event.key !== "Escape") return;
19517
+ event.stopPropagation();
19518
+ close();
19519
+ triggerRef.current?.focus({ preventScroll: true });
19520
+ };
19521
+ document.addEventListener("pointerdown", onPointerDown, true);
19522
+ document.addEventListener("keydown", onKeyDown, true);
19523
+ return () => {
19524
+ document.removeEventListener("pointerdown", onPointerDown, true);
19525
+ document.removeEventListener("keydown", onKeyDown, true);
19526
+ };
19527
+ }, [open]);
19528
+ const label = t("settings.voiceReadingQq");
19529
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
19530
+ className: "xmimo-voice-reading-qq",
19531
+ ref: wrapperRef,
19532
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(__deepseek_ai_dsh_client_ui_primitives.Tooltip, {
19533
+ label,
19534
+ side: "bottom",
19535
+ align: "end",
19536
+ portal: true,
19537
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
19538
+ ref: triggerRef,
19539
+ type: "button",
19540
+ className: "xmimo-voice-reading-action",
19541
+ "aria-label": label,
19542
+ "aria-haspopup": "dialog",
19543
+ "aria-expanded": open,
19544
+ "aria-controls": open ? panelId : void 0,
19545
+ onClick: () => {
19546
+ setOpen((current) => !current);
19547
+ },
19548
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AiOutlineQq, {
19549
+ size: 16,
19550
+ "aria-hidden": "true",
19551
+ focusable: "false"
19552
+ })
19553
+ })
19554
+ }), open ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
19555
+ className: "xmimo-voice-reading-qq-panel",
19556
+ id: panelId,
19557
+ role: "dialog",
19558
+ "aria-label": label,
19559
+ children: [
19560
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
19561
+ ref: closeRef,
19562
+ type: "button",
19563
+ className: "xmimo-voice-reading-qq-close",
19564
+ "aria-label": t("settings.voiceReadingQqClose"),
19565
+ onClick: () => {
19566
+ close();
19567
+ triggerRef.current?.focus({ preventScroll: true });
19568
+ },
19569
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__deepseek_ai_dsh_client_ui_primitives.IconCloseOutlineRegular, { "aria-hidden": "true" })
19570
+ }),
19571
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
19572
+ className: "xmimo-voice-reading-qq-code",
19573
+ src: hostRoute(TTS_QQ_GROUP_ASSET_ROUTE),
19574
+ width: 190,
19575
+ height: 190,
19576
+ alt: t("settings.voiceReadingQqCodeAlt")
19577
+ }),
19578
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
19579
+ className: "xmimo-voice-reading-qq-meta",
19580
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
19581
+ className: "xmimo-voice-reading-qq-group",
19582
+ children: label
19583
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("code", {
19584
+ className: "xmimo-voice-reading-qq-number",
19585
+ children: TTS_QQ_GROUP_NUMBER
19586
+ })]
19587
+ })
19588
+ ]
19589
+ }) : null]
19590
+ });
19591
+ }
19592
+
19032
19593
  //#endregion
19033
19594
  //#region src/client/settings/voice-reading-options.ts
19595
+ /** Report the first incomplete setting, including cloud credentials when local speech works. */
19596
+ function voiceReadingWarningKey(settings, apiKeyStatus) {
19597
+ if (!settings.enabled) return "settings.voiceReadingWarningDisabled";
19598
+ if (apiKeyStatus === "missing") return "settings.voiceReadingWarningApiKeyMissing";
19599
+ if (apiKeyStatus === "unrecognized") return "settings.voiceReadingWarningApiKeyInvalid";
19600
+ if (apiKeyStatus === "unavailable") return "settings.voiceReadingWarningApiKeyUnavailable";
19601
+ if (!ttsSelection(settings).voice.trim()) return "settings.voiceReadingWarningVoiceRequired";
19602
+ return null;
19603
+ }
19034
19604
  const DOUBAO_CLONED_MODEL = "seed-icl-2.0";
19035
19605
  const XIAOMI_VOICE_DESIGN_MODEL = "mimo-v2.5-tts-voicedesign";
19036
19606
  function uniqueVoiceIds(ids) {
@@ -19204,64 +19774,139 @@ function soundWriteOps(next, current) {
19204
19774
  return ops;
19205
19775
  }
19206
19776
 
19777
+ //#endregion
19778
+ //#region src/client/settings/voice-reading-warning.tsx
19779
+ function VoiceReadingWarning({ settings, revision, t, openPluginSettings }) {
19780
+ const { provider } = settings;
19781
+ const [result, setResult] = (0, react.useState)(null);
19782
+ const [generation, setGeneration] = (0, react.useState)(0);
19783
+ (0, react.useEffect)(() => onTtsCredentialsSaved(() => {
19784
+ setGeneration((value) => value + 1);
19785
+ }), []);
19786
+ (0, react.useEffect)(() => {
19787
+ let active = true;
19788
+ const controller = new AbortController();
19789
+ fetch(`${hostRoute(TTS_API_KEY_STATUS_ROUTE)}?provider=${provider}`, {
19790
+ headers: { accept: "application/json" },
19791
+ signal: controller.signal
19792
+ }).then(async (response) => {
19793
+ if (!response.ok) throw new Error("api-key-status-failed");
19794
+ const status = await response.json();
19795
+ if (active) setResult({
19796
+ provider,
19797
+ status: status.configured !== true ? "missing" : status.supported === true ? "recognized" : "unrecognized"
19798
+ });
19799
+ }).catch(() => {
19800
+ if (active) setResult({
19801
+ provider,
19802
+ status: "unavailable"
19803
+ });
19804
+ });
19805
+ return () => {
19806
+ active = false;
19807
+ controller.abort();
19808
+ };
19809
+ }, [
19810
+ provider,
19811
+ revision,
19812
+ generation
19813
+ ]);
19814
+ const warning$1 = voiceReadingWarningKey(settings, result?.provider === provider ? result.status : "loading");
19815
+ return warning$1 === null ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(WarningBar, {
19816
+ message: t(warning$1),
19817
+ dismissLabel: t("settings.voiceReadingDismissWarning"),
19818
+ settingsLabel: t("settings.voiceReadingPluginSettings"),
19819
+ openPluginSettings
19820
+ }, `${provider}:${warning$1}`);
19821
+ }
19822
+ function WarningBar({ message, dismissLabel, settingsLabel, openPluginSettings }) {
19823
+ const [dismissed, setDismissed] = (0, react.useState)(false);
19824
+ if (dismissed) return null;
19825
+ const [before, after] = message.split("{settings}");
19826
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
19827
+ className: "xmimo-voice-reading-warning",
19828
+ role: "status",
19829
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
19830
+ className: "xmimo-voice-reading-warning-message",
19831
+ title: message.replace("{settings}", settingsLabel),
19832
+ children: [before, after === void 0 ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
19833
+ type: "button",
19834
+ className: "xmimo-voice-reading-link",
19835
+ onClick: openPluginSettings,
19836
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
19837
+ className: "xmimo-voice-reading-link-label",
19838
+ children: settingsLabel
19839
+ })
19840
+ }), after] })]
19841
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
19842
+ type: "button",
19843
+ className: "xmimo-voice-reading-warning-close",
19844
+ "aria-label": dismissLabel,
19845
+ title: dismissLabel,
19846
+ onClick: () => {
19847
+ setDismissed(true);
19848
+ },
19849
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__deepseek_ai_dsh_client_ui_primitives.IconCloseOutlineRegular, { "aria-hidden": "true" })
19850
+ })]
19851
+ });
19852
+ }
19853
+
19854
+ //#endregion
19855
+ //#region src/client/settings/voice-reading-provider.tsx
19856
+ const PROVIDER_NAMES = {
19857
+ xiaomi: "Xiaomi-MiMo",
19858
+ doubao: "Doubao-Seed"
19859
+ };
19860
+ function VoiceReadingProvider({ value, disabled, t, onChange }) {
19861
+ const name = (0, react.useId)();
19862
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("fieldset", {
19863
+ className: "xmimo-voice-reading-provider",
19864
+ disabled,
19865
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("legend", {
19866
+ className: "xmimo-voice-reading-row-title",
19867
+ children: t("settings.provider")
19868
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
19869
+ className: "xmimo-voice-reading-provider-options",
19870
+ children: TTS_PROVIDERS.map((provider) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
19871
+ className: "xmimo-voice-reading-provider-option",
19872
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
19873
+ type: "radio",
19874
+ name,
19875
+ value: provider,
19876
+ checked: value === provider,
19877
+ onChange: () => {
19878
+ onChange(provider);
19879
+ }
19880
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
19881
+ className: "xmimo-voice-reading-provider-face",
19882
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
19883
+ src: hostRoute(TTS_PROVIDER_LOGO_ASSET_ROUTES[provider]),
19884
+ width: 32,
19885
+ height: 32,
19886
+ alt: ""
19887
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: PROVIDER_NAMES[provider] })]
19888
+ })]
19889
+ }, provider))
19890
+ })]
19891
+ });
19892
+ }
19893
+
19207
19894
  //#endregion
19208
19895
  //#region src/client/settings/voice-reading-section.tsx
19209
19896
  function VoiceReadingSection(props) {
19210
- const { scope, t } = props;
19211
- if (scope === void 0 || t === void 0) return null;
19897
+ const { scope, t, openPluginSettings } = props;
19898
+ if (scope === void 0 || t === void 0 || openPluginSettings === void 0) return null;
19212
19899
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(VoiceReadingPage, {
19213
19900
  scope,
19214
- t
19215
- });
19216
- }
19217
- /**
19218
- * Capsule selector pill plus anchored menu, mirroring the Host settings rows
19219
- * (`packages/client/ui-chat/src/client/settings/PreferenceRow.tsx` and
19220
- * `packages/client/locale/src/client/LanguageRow.tsx` in the harness source): a
19221
- * borderless 36px pill on the module surface that opens the shared `Menu` with
19222
- * a check on the selected row. Choosing returns focus to the pill before the
19223
- * value is published, exactly like the Host rows.
19224
- */
19225
- function VoiceReadingSelect({ label, value, fallbackLabel, options, disabled, onSelect }) {
19226
- const [open, setOpen] = (0, react.useState)(false);
19227
- const selectorRef = (0, react.useRef)(null);
19228
- const closeMenu = () => {
19229
- setOpen(false);
19230
- };
19231
- const choose = (id$2) => {
19232
- selectorRef.current?.focus({ preventScroll: true });
19233
- closeMenu();
19234
- onSelect(id$2);
19235
- };
19236
- const selectedLabel = options.find((option) => option.id === value)?.label ?? fallbackLabel ?? value;
19237
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__deepseek_ai_dsh_client_ui_primitives.Menu, {
19238
- open: open && !disabled,
19239
- anchor: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
19240
- ref: selectorRef,
19241
- type: "button",
19242
- className: "xmimo-voice-reading-selector",
19243
- "aria-label": label,
19244
- "aria-haspopup": "menu",
19245
- "aria-expanded": open,
19246
- disabled,
19247
- onClick: () => {
19248
- setOpen((current) => !current);
19249
- },
19250
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
19251
- className: "xmimo-voice-reading-selector-label",
19252
- children: selectedLabel
19253
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__deepseek_ai_dsh_client_ui_primitives.IconChevronDownOutlineRegular, { className: "xmimo-voice-reading-chevron" })]
19254
- }),
19255
- items: options,
19256
- selectedId: value,
19257
- onSelect: choose,
19258
- onClose: closeMenu,
19259
- align: "end",
19260
- portal: true,
19261
- listClassName: "xmimo-voice-reading-menu"
19901
+ t,
19902
+ openPluginSettings: () => {
19903
+ props.close();
19904
+ openPluginSettings();
19905
+ }
19262
19906
  });
19263
19907
  }
19264
- function VoiceReadingPage({ scope, t }) {
19908
+ function VoiceReadingPage({ scope, t, openPluginSettings }) {
19909
+ const minimalMode = (0, react.useSyncExternalStore)(subscribeMinimalMode, readMinimalMode, () => false);
19265
19910
  const snapshot = useSettingsSnapshot(scope);
19266
19911
  const [clonedHistory] = (0, react.useState)(() => readVoiceIdHistory("cloned"));
19267
19912
  const [busy, setBusy] = (0, react.useState)(false);
@@ -19300,15 +19945,51 @@ function VoiceReadingPage({ scope, t }) {
19300
19945
  }));
19301
19946
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
19302
19947
  className: "xmimo-voice-reading",
19948
+ style: minimalMode ? void 0 : { "--xmimo-voice-reading-background": `url(${hostRoute(TTS_HISTORY_EMPTY_ASSET_ROUTE)})` },
19303
19949
  children: [
19304
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h2", {
19305
- className: "xmimo-voice-reading-title",
19306
- children: t("settings.voiceReadingTitle")
19950
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
19951
+ className: "xmimo-voice-reading-header",
19952
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h2", {
19953
+ className: "xmimo-voice-reading-title",
19954
+ children: t("settings.voiceReadingTitle")
19955
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(VoiceReadingHeaderActions, {
19956
+ t,
19957
+ openPluginSettings
19958
+ })]
19307
19959
  }),
19308
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
19960
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("p", {
19309
19961
  className: "xmimo-voice-reading-intro",
19310
- children: t("settings.voiceReadingIntro")
19962
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("settings.voiceReadingIntro") }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
19963
+ type: "button",
19964
+ className: "xmimo-voice-reading-link",
19965
+ onClick: openPluginSettings,
19966
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
19967
+ className: "xmimo-voice-reading-link-label",
19968
+ children: t("settings.voiceReadingPluginSettings")
19969
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
19970
+ "aria-hidden": "true",
19971
+ children: "↗"
19972
+ })]
19973
+ })]
19974
+ }),
19975
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(VoiceReadingProvider, {
19976
+ value: settings.provider,
19977
+ disabled,
19978
+ t,
19979
+ onChange: (provider) => {
19980
+ write([{
19981
+ op: "set",
19982
+ path: ["provider"],
19983
+ value: provider
19984
+ }]);
19985
+ }
19311
19986
  }),
19987
+ ready ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(VoiceReadingWarning, {
19988
+ settings,
19989
+ revision: snapshot.revision,
19990
+ t,
19991
+ openPluginSettings
19992
+ }) : null,
19312
19993
  ready && !snapshot.writable && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
19313
19994
  className: "xmimo-voice-reading-notice",
19314
19995
  role: "status",
@@ -19340,15 +20021,12 @@ function VoiceReadingPage({ scope, t }) {
19340
20021
  }),
19341
20022
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
19342
20023
  className: "xmimo-voice-reading-row",
19343
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
20024
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
19344
20025
  className: "xmimo-voice-reading-copy",
19345
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
20026
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
19346
20027
  className: "xmimo-voice-reading-row-title",
19347
20028
  children: t("settings.voiceReadingVolume")
19348
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
19349
- className: "xmimo-voice-reading-row-hint",
19350
- children: t("settings.voiceReadingVolumeHint")
19351
- })]
20029
+ })
19352
20030
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(VoiceReadingSelect, {
19353
20031
  label: t("settings.voiceReadingVolume"),
19354
20032
  value: String(settings.voiceVolume),
@@ -19365,15 +20043,12 @@ function VoiceReadingPage({ scope, t }) {
19365
20043
  }),
19366
20044
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
19367
20045
  className: "xmimo-voice-reading-row",
19368
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
20046
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
19369
20047
  className: "xmimo-voice-reading-copy",
19370
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
20048
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
19371
20049
  className: "xmimo-voice-reading-row-title",
19372
20050
  children: t("settings.voiceReadingRate")
19373
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
19374
- className: "xmimo-voice-reading-row-hint",
19375
- children: t("settings.voiceReadingRateHint")
19376
- })]
20051
+ })
19377
20052
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(VoiceReadingSelect, {
19378
20053
  label: t("settings.voiceReadingRate"),
19379
20054
  value: String(settings.voiceRate),
@@ -19411,15 +20086,12 @@ function VoiceReadingPage({ scope, t }) {
19411
20086
  }),
19412
20087
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
19413
20088
  className: "xmimo-voice-reading-row",
19414
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
20089
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
19415
20090
  className: "xmimo-voice-reading-copy",
19416
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
20091
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
19417
20092
  className: "xmimo-voice-reading-row-title",
19418
20093
  children: t("settings.voiceReadingAutoPlay")
19419
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
19420
- className: "xmimo-voice-reading-row-hint",
19421
- children: t("settings.voiceReadingAutoPlayHint")
19422
- })]
20094
+ })
19423
20095
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__deepseek_ai_dsh_client_ui_primitives.Switch, {
19424
20096
  checked: settings.autoPlay,
19425
20097
  disabled,
@@ -20770,8 +21442,8 @@ const VALID_CUES = new Set([
20770
21442
  function createSoundEffectsController(canPlay = () => true) {
20771
21443
  let settings = {
20772
21444
  enabled: true,
20773
- volume: .35,
20774
- pack: "zen",
21445
+ volume: DEFAULT_SOUND_SETTINGS.soundVolume,
21446
+ pack: DEFAULT_SOUND_SETTINGS.soundPack,
20775
21447
  taskSounds: true,
20776
21448
  clickSounds: true
20777
21449
  };
@@ -20936,7 +21608,7 @@ var voice_default = "/*\n * Voice pickers: custom voice trigger, builtin voice g
20936
21608
 
20937
21609
  //#endregion
20938
21610
  //#region src/client/style/card-actions.css?raw
20939
- var card_actions_default = "/*\n * Settings card action bar: update, star, discard, and save.\n */\n\n.xmimo-tts-card-actions {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: flex-end;\n gap: 10px;\n font-size: 12px;\n color: var(--xmimo-ui-text-subtle)\n}\n\n.xmimo-tts-card-action-links {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 10px;\n margin-inline-end: auto\n}\n\n.xmimo-tts-card-actions :is(button, a),\n.xmimo-ui-scope .xmimo-tts-action-button {\n box-sizing: border-box;\n display: inline-flex;\n flex: 0 0 auto;\n align-items: center;\n justify-content: center;\n gap: 4px;\n min-height: 30px;\n height: auto;\n border: 1px solid var(--xmimo-ui-border);\n border-radius: 8px;\n padding: 5px 10px;\n color: var(--xmimo-ui-text);\n background: var(--xmimo-ui-surface);\n cursor: pointer;\n font: inherit;\n font-weight: 500;\n line-height: 18px;\n text-decoration: none;\n white-space: nowrap;\n transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease\n}\n\n.xmimo-tts-card-actions :is(button, a):where(:hover, :focus-visible):not(:disabled),\n.xmimo-ui-scope .xmimo-tts-action-button:where(:hover, :focus-visible):not(:disabled) {\n border-color: var(--xmimo-ui-brand);\n background: var(--xmimo-ui-hover);\n text-decoration: none\n}\n\n.xmimo-tts-card-actions :is(button, a):focus-visible,\n.xmimo-ui-scope .xmimo-tts-action-button:focus-visible {\n outline: var(--xmimo-ui-focus);\n outline-offset: 3px\n}\n\n.xmimo-tts-card-actions > button:disabled,\n.xmimo-ui-scope .xmimo-tts-action-button:disabled {\n border-color: var(--xmimo-ui-border);\n color: var(--xmimo-ui-text-muted);\n background: var(--xmimo-ui-control-surface);\n cursor: not-allowed;\n opacity: 1\n}\n\n.xmimo-tts-card-actions .xmimo-tts-save {\n border-color: var(--xmimo-ui-brand);\n color: var(--dsw-alias-label-primary-foreground, #fff);\n background: var(--dsw-alias-button-primary-fill, var(--xmimo-ui-brand));\n font-weight: 600\n}\n\n.xmimo-tts-card-actions .xmimo-tts-save:is(:hover, :focus-visible):not(:disabled) {\n background: var(--dsw-alias-button-primary-hover, color-mix(in srgb, var(--xmimo-ui-brand) 85%, var(--xmimo-ui-text)))\n}\n\n.xmimo-tts-card-actions .xmimo-tts-save:disabled {\n border-color: color-mix(in srgb, var(--xmimo-ui-brand) 25%, var(--xmimo-ui-border));\n color: var(--xmimo-ui-text-muted);\n background: color-mix(in srgb, var(--xmimo-ui-brand) 12%, var(--xmimo-ui-surface))\n}\n\n.xmimo-tts-card-actions .xmimo-tts-update {\n color: var(--xmimo-ui-brand)\n}\n\n.xmimo-tts-card-actions :is(.xmimo-tts-update, .xmimo-tts-star) {\n position: relative;\n isolation: isolate;\n overflow: hidden;\n transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease\n}\n\n.xmimo-tts-card-actions .xmimo-tts-star {\n border: 1px solid color-mix(in srgb, var(--xmimo-ui-brand) 30%, var(--xmimo-ui-border));\n color: var(--xmimo-ui-brand);\n background: transparent;\n font-weight: 600\n}\n\n.xmimo-tts-card-actions :is(.xmimo-tts-update, .xmimo-tts-star)::before {\n position: absolute;\n z-index: -1;\n inset: 0;\n background: linear-gradient(110deg, transparent 15%, color-mix(in srgb, var(--xmimo-ui-brand) 12%, transparent) 35%, color-mix(in srgb, var(--xmimo-ui-brand) 28%, transparent) 50%, color-mix(in srgb, var(--xmimo-ui-brand) 12%, transparent) 65%, transparent 85%);\n content: '';\n pointer-events: none;\n opacity: 0;\n transform: translateX(-110%)\n}\n\n.xmimo-tts-card-actions :is(.xmimo-tts-update, .xmimo-tts-star):is(:hover, :focus-visible) {\n border-color: var(--xmimo-ui-brand);\n background: color-mix(in srgb, var(--xmimo-ui-brand) 6%, transparent);\n box-shadow: 0 3px 10px color-mix(in srgb, var(--xmimo-ui-brand) 16%, transparent);\n text-decoration: none;\n transform: translateY(-1px)\n}\n\n.xmimo-tts-card-actions :is(.xmimo-tts-update, .xmimo-tts-star):is(:hover, :focus-visible)::before {\n opacity: 1;\n animation: xmimo-tts-star-shine 1s ease-in-out infinite\n}\n\n.xmimo-tts-card-actions :is(.xmimo-tts-update, .xmimo-tts-star):focus-visible {\n outline: var(--xmimo-ui-focus);\n outline-offset: 3px\n}\n\n.xmimo-tts-card-actions :is(.xmimo-tts-update, .xmimo-tts-star):active {\n box-shadow: none;\n transform: translateY(0)\n}\n\n@keyframes xmimo-tts-star-shine {\n 0% { transform: translateX(-110%) }\n 65%, 100% { transform: translateX(110%) }\n}\n\n@media (pointer: coarse) {\n .xmimo-tts-card-actions > :is(button, a),\n .xmimo-ui-scope .xmimo-tts-action-button {\n min-height: 44px\n }\n}\n";
21611
+ var card_actions_default = "/*\n * Settings card action bar: update, star, discard, and save.\n */\n\n.xmimo-tts-card-footer {\n min-width: 0;\n container: xmimo-actions / inline-size\n}\n\n.xmimo-tts-card-actions {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: center;\n gap: 10px;\n font-size: 12px;\n color: var(--xmimo-ui-text-subtle)\n}\n\n.xmimo-tts-card-action-links {\n display: flex;\n min-width: 0;\n flex-wrap: wrap;\n align-items: center;\n justify-content: flex-start;\n gap: inherit\n}\n\n/* Reserve one column for both actions, even inside a narrow host panel. */\n.xmimo-tts-card-action-buttons {\n display: flex;\n flex: 0 0 auto;\n align-items: center;\n gap: inherit\n}\n\n.xmimo-tts-card-actions > span {\n grid-column: 1 / -1;\n order: -1;\n text-align: end\n}\n\n.xmimo-tts-card-actions :is(button, a),\n.xmimo-ui-scope .xmimo-tts-action-button {\n box-sizing: border-box;\n display: inline-flex;\n flex: 0 0 auto;\n align-items: center;\n justify-content: center;\n gap: 4px;\n min-height: 30px;\n height: auto;\n border: 1px solid var(--xmimo-ui-border);\n border-radius: 8px;\n padding: 5px 10px;\n color: var(--xmimo-ui-text);\n background: var(--xmimo-ui-surface);\n cursor: pointer;\n font: inherit;\n font-weight: 500;\n line-height: 18px;\n text-decoration: none;\n white-space: nowrap;\n transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease\n}\n\n.xmimo-tts-card-actions :is(button, a):where(:hover, :focus-visible):not(:disabled),\n.xmimo-ui-scope .xmimo-tts-action-button:where(:hover, :focus-visible):not(:disabled) {\n border-color: var(--xmimo-ui-brand);\n background: var(--xmimo-ui-hover);\n text-decoration: none\n}\n\n.xmimo-tts-card-actions :is(button, a):focus-visible,\n.xmimo-ui-scope .xmimo-tts-action-button:focus-visible {\n outline: var(--xmimo-ui-focus);\n outline-offset: 3px\n}\n\n.xmimo-tts-card-actions button:disabled,\n.xmimo-ui-scope .xmimo-tts-action-button:disabled {\n border-color: var(--xmimo-ui-border);\n color: var(--xmimo-ui-text-muted);\n background: var(--xmimo-ui-control-surface);\n cursor: not-allowed;\n opacity: 1\n}\n\n.xmimo-tts-card-actions .xmimo-tts-save {\n border-color: var(--xmimo-ui-brand);\n color: var(--dsw-alias-label-primary-foreground, #fff);\n background: var(--dsw-alias-button-primary-fill, var(--xmimo-ui-brand));\n font-weight: 600\n}\n\n.xmimo-tts-card-actions .xmimo-tts-save:is(:hover, :focus-visible):not(:disabled) {\n background: var(--dsw-alias-button-primary-hover, color-mix(in srgb, var(--xmimo-ui-brand) 85%, var(--xmimo-ui-text)))\n}\n\n.xmimo-tts-card-actions .xmimo-tts-save:disabled {\n border-color: color-mix(in srgb, var(--xmimo-ui-brand) 25%, var(--xmimo-ui-border));\n color: var(--xmimo-ui-text-muted);\n background: color-mix(in srgb, var(--xmimo-ui-brand) 12%, var(--xmimo-ui-surface))\n}\n\n.xmimo-tts-card-actions .xmimo-tts-update {\n color: var(--xmimo-ui-brand)\n}\n\n.xmimo-tts-card-actions :is(.xmimo-tts-update, .xmimo-tts-star) {\n position: relative;\n isolation: isolate;\n overflow: hidden;\n transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease\n}\n\n.xmimo-tts-card-actions .xmimo-tts-star {\n border: 1px solid color-mix(in srgb, var(--xmimo-ui-brand) 30%, var(--xmimo-ui-border));\n color: var(--xmimo-ui-brand);\n background: transparent;\n font-weight: 600\n}\n\n.xmimo-tts-card-actions :is(.xmimo-tts-update, .xmimo-tts-star)::before {\n position: absolute;\n z-index: -1;\n inset: 0;\n background: linear-gradient(110deg, transparent 15%, color-mix(in srgb, var(--xmimo-ui-brand) 12%, transparent) 35%, color-mix(in srgb, var(--xmimo-ui-brand) 28%, transparent) 50%, color-mix(in srgb, var(--xmimo-ui-brand) 12%, transparent) 65%, transparent 85%);\n content: '';\n pointer-events: none;\n opacity: 0;\n transform: translateX(-110%)\n}\n\n.xmimo-tts-card-actions :is(.xmimo-tts-update, .xmimo-tts-star):is(:hover, :focus-visible) {\n border-color: var(--xmimo-ui-brand);\n background: color-mix(in srgb, var(--xmimo-ui-brand) 6%, transparent);\n box-shadow: 0 3px 10px color-mix(in srgb, var(--xmimo-ui-brand) 16%, transparent);\n text-decoration: none;\n transform: translateY(-1px)\n}\n\n.xmimo-tts-card-actions :is(.xmimo-tts-update, .xmimo-tts-star):is(:hover, :focus-visible)::before {\n opacity: 1;\n animation: xmimo-tts-star-shine 1s ease-in-out infinite\n}\n\n.xmimo-tts-card-actions :is(.xmimo-tts-update, .xmimo-tts-star):focus-visible {\n outline: var(--xmimo-ui-focus);\n outline-offset: 3px\n}\n\n.xmimo-tts-card-actions :is(.xmimo-tts-update, .xmimo-tts-star):active {\n box-shadow: none;\n transform: translateY(0)\n}\n\n@keyframes xmimo-tts-star-shine {\n 0% { transform: translateX(-110%) }\n 65%, 100% { transform: translateX(110%) }\n}\n\n@container xmimo-actions (max-width: 520px) {\n .xmimo-tts-card-actions :is(.xmimo-tts-update, .xmimo-tts-star, .xmimo-tts-history-link, .xmimo-tts-mode-toggle) {\n position: relative;\n padding-inline: 8px\n }\n\n .xmimo-tts-card-actions .xmimo-tts-action-label {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0\n }\n}\n\n@container xmimo-actions (max-width: 360px) {\n .xmimo-tts-card-actions {\n gap: 6px\n }\n\n .xmimo-tts-card-actions :is(.xmimo-tts-update, .xmimo-tts-star, .xmimo-tts-history-link, .xmimo-tts-mode-toggle) {\n padding-inline: 6px\n }\n}\n\n@media (pointer: coarse) {\n .xmimo-ui-scope .xmimo-tts-action-button {\n min-height: 44px\n }\n}\n";
20940
21612
 
20941
21613
  //#endregion
20942
21614
  //#region src/client/style/character.css?raw
@@ -20948,7 +21620,7 @@ var details_default = "/*\n * Voice-design details module: collapsible header, s
20948
21620
 
20949
21621
  //#endregion
20950
21622
  //#region src/client/style/preview.css?raw
20951
- var preview_default = "/* Broadcast Desk shares the collapsible frame with the mixer and sounds. */\n.xmimo-tts-broadcast[data-dsh-dream-skin-composer=\"1\"] {\n background: var(--xmimo-ui-surface) !important;\n outline: none !important;\n}\n.my-plugin-card[data-dsh-dream-skin-composer=\"1\"]::before,\n.my-plugin-card[data-dsh-dream-skin-composer=\"1\"]::after {\n content: none !important;\n background: none !important;\n backdrop-filter: none !important;\n -webkit-backdrop-filter: none !important;\n box-shadow: none !important;\n}\n.xmimo-tts-broadcast + .xmimo-tts-card-actions { border-top: 0; }\n.xmimo-tts-broadcast { padding: 0 !important; }\n\n\n.xmimo-tts-broadcast-body {\n display: flex;\n min-height: 0;\n overflow: hidden;\n flex-direction: column;\n gap: 18px;\n padding: 0 var(--xmimo-ui-module-padding) var(--xmimo-ui-module-padding);\n}\n\n.xmimo-tts-preview-input { display: flex; align-items: center; gap: 8px; margin-top: 8px; }\n.xmimo-tts-preview-input > textarea {\n box-sizing: border-box;\n width: 100%;\n min-width: 0;\n flex: 1;\n resize: vertical;\n border: 1px solid var(--xmimo-ui-border);\n border-radius: var(--xmimo-ui-control-radius);\n padding: 8px;\n color: var(--xmimo-ui-text);\n background: var(--xmimo-ui-control-surface);\n font: inherit;\n}\n.xmimo-tts-broadcast .xmimo-tts-preview-toggle {\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n width: 32px;\n height: 32px;\n min-width: 32px;\n padding: 0;\n border: 0;\n border-radius: 50%;\n color: var(--dsw-alias-label-primary-foreground, var(--xmimo-ui-surface));\n background: var(--xmimo-ui-brand);\n}\n.xmimo-tts-broadcast .xmimo-tts-preview-toggle:hover:not(:disabled) { background: color-mix(in srgb, var(--xmimo-ui-brand) 88%, var(--xmimo-ui-text)); }\n.xmimo-tts-broadcast .xmimo-tts-preview-toggle:focus-visible { outline: var(--xmimo-ui-focus); outline-offset: 2px; }\n.xmimo-tts-preview-status, .xmimo-tts-announcement-source small { color: var(--xmimo-ui-text-muted); }\n.xmimo-tts-announcement-source { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--xmimo-ui-border-soft); }\n.xmimo-tts-announcement-source > div { display: flex; min-width: 0; flex-direction: column; gap: 3px; }\n.xmimo-tts-announcement-source a { align-self: flex-start; color: var(--xmimo-ui-brand); }\n.xmimo-tts-announcement-source > button { flex-shrink: 0; }\n.xmimo-tts-preview-input > textarea:focus-visible { outline: var(--xmimo-ui-focus); }\n";
21623
+ var preview_default = "/* Broadcast Desk shares the collapsible frame with the mixer and sounds. */\n.xmimo-tts-broadcast[data-dsh-dream-skin-composer=\"1\"] {\n background: var(--xmimo-ui-surface) !important;\n outline: none !important;\n}\n.my-plugin-card[data-dsh-dream-skin-composer=\"1\"]::before,\n.my-plugin-card[data-dsh-dream-skin-composer=\"1\"]::after {\n content: none !important;\n background: none !important;\n backdrop-filter: none !important;\n -webkit-backdrop-filter: none !important;\n box-shadow: none !important;\n}\n.xmimo-tts-broadcast + .xmimo-tts-card-actions { border-top: 0; }\n.xmimo-tts-broadcast { padding: 0 !important; }\n\n.xmimo-tts-broadcast .xmimo-tts-preview-tag {\n position: relative;\n z-index: 2;\n display: inline-flex;\n flex: none;\n align-items: center;\n gap: 3px;\n border: 0;\n border-radius: 999px;\n padding: 1px 7px;\n color: var(--xmimo-ui-brand);\n background: var(--xmimo-ui-chip-surface);\n font: inherit;\n font-size: 11px;\n font-weight: 600;\n line-height: 16px;\n white-space: nowrap;\n cursor: pointer;\n}\n.xmimo-tts-preview-tag svg { width: 12px; height: 12px; }\n.xmimo-tts-preview-tag:hover:not(:disabled) { background: var(--xmimo-ui-hover); }\n.xmimo-tts-preview-tag:focus-visible { outline: var(--xmimo-ui-focus); outline-offset: 2px; }\n.xmimo-tts-preview-tag:disabled { color: var(--xmimo-ui-text-muted); cursor: not-allowed; opacity: .5; }\n.xmimo-tts-preview-summary-status { font-size: 12px; font-weight: 400; line-height: 18px; }\n\n\n.xmimo-tts-broadcast-body {\n display: flex;\n min-height: 0;\n overflow: hidden;\n flex-direction: column;\n gap: 18px;\n padding: 0 var(--xmimo-ui-module-padding) var(--xmimo-ui-module-padding);\n}\n\n.xmimo-tts-preview-input { display: flex; align-items: center; gap: 8px; margin-top: 8px; }\n.xmimo-tts-preview-input > textarea {\n box-sizing: border-box;\n width: 100%;\n min-width: 0;\n flex: 1;\n resize: vertical;\n border: 1px solid var(--xmimo-ui-border);\n border-radius: var(--xmimo-ui-control-radius);\n padding: 8px;\n color: var(--xmimo-ui-text);\n background: var(--xmimo-ui-control-surface);\n font: inherit;\n}\n.xmimo-tts-broadcast .xmimo-tts-preview-toggle {\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n width: 32px;\n height: 32px;\n min-width: 32px;\n padding: 0;\n border: 0;\n border-radius: 50%;\n color: var(--dsw-alias-label-primary-foreground, var(--xmimo-ui-surface));\n background: var(--xmimo-ui-brand);\n}\n.xmimo-tts-broadcast .xmimo-tts-preview-toggle:hover:not(:disabled) { background: color-mix(in srgb, var(--xmimo-ui-brand) 88%, var(--xmimo-ui-text)); }\n.xmimo-tts-broadcast .xmimo-tts-preview-toggle:focus-visible { outline: var(--xmimo-ui-focus); outline-offset: 2px; }\n.xmimo-tts-preview-status, .xmimo-tts-announcement-source small { color: var(--xmimo-ui-text-muted); }\n.xmimo-tts-announcement-source { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--xmimo-ui-border-soft); }\n.xmimo-tts-announcement-source > div { display: flex; min-width: 0; flex-direction: column; gap: 3px; }\n.xmimo-tts-announcement-source a { align-self: flex-start; color: var(--xmimo-ui-brand); }\n.xmimo-tts-announcement-source > button { flex-shrink: 0; }\n.xmimo-tts-preview-input > textarea:focus-visible { outline: var(--xmimo-ui-focus); }\n";
20952
21624
 
20953
21625
  //#endregion
20954
21626
  //#region src/client/style/sections.css?raw
@@ -20956,7 +21628,7 @@ var sections_default = "/*\n * Settings modules: shared module surface plus the
20956
21628
 
20957
21629
  //#endregion
20958
21630
  //#region src/client/style/sound.css?raw
20959
- var sound_default = "/*\n * Sound effects module: toggle header, pack grid, cue previews, collapse.\n */\n.xmimo-tts-sound-effects {\n overflow: visible;\n padding: 0 !important\n}\n\n.xmimo-tts-sound-summary {\n height: 30px;\n}\n\n.xmimo-tts-sound-body {\n box-sizing: border-box;\n display: flex;\n min-height: 0;\n overflow: hidden;\n flex-direction: column;\n gap: 12px;\n padding: 0 16px 16px\n}\n\n.xmimo-tts-sound-pack {\n display: flex;\n min-width: 0;\n flex-direction: column;\n gap: 5px;\n color: var(--dsw-alias-label-primary, #1f2328);\n font-size: 13px;\n}\n\n.xmimo-tts-sound-pack-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));\n gap: 5px\n}\n\n.xmimo-tts-sound-pack-option {\n --xmimo-sound-pack-accent: var(--dsw-alias-brand-primary, #4f6ef7);\n position: relative;\n display: flex;\n box-sizing: border-box;\n align-items: center;\n justify-content: space-between;\n min-width: 0;\n min-height: 52px;\n overflow: hidden;\n border: 1px solid color-mix(in srgb, var(--xmimo-sound-pack-accent) 26%, var(--dsw-alias-border-l2, #d7dbe2));\n border-radius: 14px;\n padding: 8px 30px 8px 10px;\n color: var(--dsw-alias-label-secondary, #5f6875);\n background:\n radial-gradient(circle at 86% 12%, color-mix(in srgb, var(--xmimo-sound-pack-accent) 20%, transparent) 0 2px, transparent 3px),\n linear-gradient(135deg, color-mix(in srgb, var(--xmimo-sound-pack-accent) 13%, var(--dsw-alias-bg-layer-1, #fff)), var(--dsw-alias-bg-layer-1, #fff));\n font: inherit;\n font-size: 11px;\n text-align: left;\n cursor: pointer;\n transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease\n}\n\n.xmimo-tts-sound-pack-option::after {\n position: absolute;\n top: 50%;\n right: 8px;\n display: grid;\n width: 16px;\n height: 16px;\n place-items: center;\n border-radius: 999px;\n color: var(--xmimo-sound-pack-accent);\n background: color-mix(in srgb, var(--xmimo-sound-pack-accent) 14%, transparent);\n content: \"\";\n font-size: 10px;\n font-weight: 700;\n opacity: 0;\n transform: translateY(-50%) scale(.72);\n transition: opacity 140ms ease, transform 140ms ease\n}\n\n.xmimo-tts-sound-pack-icon {\n display: block;\n width: 20px;\n height: 20px;\n flex: none;\n margin-right: 7px;\n color: var(--xmimo-sound-pack-accent);\n}\n\n.xmimo-tts-sound-pack-name {\n min-width: 0;\n flex: 1 1 auto;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap\n}\n\n.xmimo-tts-sound-pack-wave {\n display: inline-flex;\n flex: none;\n align-items: center;\n gap: 2px;\n margin-left: 7px;\n opacity: .6;\n transition: opacity 140ms ease, transform 140ms ease\n}\n\n.xmimo-tts-sound-pack-wave i {\n display: block;\n width: 2px;\n height: 8px;\n border-radius: 999px;\n background: var(--xmimo-sound-pack-accent);\n transition: height 140ms ease, background 140ms ease\n}\n\n.xmimo-tts-sound-pack-wave i:nth-child(2) {\n height: 13px\n}\n\n.xmimo-tts-sound-pack-wave i:nth-child(3) {\n height: 10px\n}\n\n.xmimo-tts-sound-pack-option:hover:not(:disabled) {\n border-color: var(--xmimo-sound-pack-accent);\n color: var(--dsw-alias-label-primary, #1f2328);\n transform: translateY(-1px);\n box-shadow: 0 4px 12px rgba(15, 23, 42, .10)\n}\n\n.xmimo-tts-sound-pack-option:active:not(:disabled) {\n transform: scale(.97)\n}\n\n.xmimo-tts-sound-pack-option-selected {\n border-color: var(--xmimo-sound-pack-accent);\n color: var(--xmimo-sound-pack-accent);\n background:\n radial-gradient(circle at 88% 11%, color-mix(in srgb, var(--xmimo-sound-pack-accent) 35%, transparent) 0 2px, transparent 3px),\n linear-gradient(135deg, color-mix(in srgb, var(--xmimo-sound-pack-accent) 22%, var(--dsw-alias-bg-layer-1, #fff)), var(--dsw-alias-bg-layer-1, #fff));\n font-weight: 650;\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--xmimo-sound-pack-accent) 16%, transparent)\n}\n\n.xmimo-tts-sound-pack-option-selected::after {\n content: \"✓\";\n opacity: 1;\n transform: translateY(-50%) scale(1)\n}\n\n.xmimo-tts-sound-pack-option-selected .xmimo-tts-sound-pack-wave {\n opacity: .3;\n transform: scale(.82)\n}\n\n.xmimo-tts-sound-pack-option-pending {\n cursor: progress\n}\n\n.xmimo-tts-sound-pack-option-pending::after {\n border: 2px solid color-mix(in srgb, var(--xmimo-sound-pack-accent) 35%, transparent);\n border-top-color: var(--xmimo-sound-pack-accent);\n background: transparent;\n content: \"\";\n opacity: 1;\n transform: translateY(-50%);\n animation: xmimo-tts-sound-pack-spin 700ms linear infinite\n}\n\n@keyframes xmimo-tts-sound-pack-spin {\n to { transform: translateY(-50%) rotate(360deg) }\n}\n\n.xmimo-tts-sound-pack-option:focus-visible,\n.xmimo-tts-sound-previews button:focus-visible {\n outline: 2px solid var(--dsw-alias-brand-primary, #4f6ef7);\n outline-offset: 1px\n}\n\n.xmimo-tts-sound-pack-option:disabled {\n cursor: not-allowed;\n opacity: .5\n}\n\n.xmimo-tts-sound-preview-section {\n display: flex;\n min-width: 0;\n flex-direction: column;\n gap: 5px;\n color: var(--dsw-alias-label-primary, #1f2328);\n font-size: 13px;\n}\n\n.xmimo-tts-sound-previews {\n display: grid;\n min-width: 0;\n grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));\n gap: 5px;\n overflow-x: auto;\n overscroll-behavior-x: contain;\n padding: 2px 1px 4px\n}\n\n.xmimo-tts-sound-previews button {\n box-sizing: border-box;\n display: flex;\n min-width: 0;\n align-items: center;\n flex-direction: column;\n gap: 5px;\n border: 1px solid transparent;\n border-radius: 10px;\n padding: 10px 5px 8px;\n color: var(--dsw-alias-label-secondary, #5f6875);\n background: transparent;\n font: inherit;\n font-size: 10px;\n cursor: pointer;\n transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, color 160ms ease\n}\n\n.xmimo-tts-sound-previews button>svg {\n flex-shrink: 0;\n transition: transform 160ms ease\n}\n\n.xmimo-tts-sound-previews button:hover:not(:disabled) {\n border-color: var(--dsw-alias-border-l2, #d7dbe2);\n background: var(--dsw-alias-interactive-bg-hover, #f3f4f6);\n color: var(--dsw-alias-brand-primary, #4f6ef7);\n transform: translateY(-2px)\n}\n\n.xmimo-tts-sound-previews button:hover:not(:disabled)>svg {\n transform: scale(1.1)\n}\n\n.xmimo-tts-sound-previews button:active:not(:disabled) {\n transform: translateY(0) scale(0.98)\n}\n\n.xmimo-tts-sound-previews button:disabled {\n cursor: not-allowed;\n filter: grayscale(.55);\n opacity: .42\n}\n\n.xmimo-tts-sound-previews button>span:last-child {\n overflow: hidden;\n width: 100%;\n text-align: center;\n text-overflow: ellipsis;\n white-space: nowrap\n}\n\n.xmimo-tts-sound-description {\n color: var(--dsw-alias-label-tertiary, #8b93a1);\n font-size: 12px;\n line-height: 18px\n}\n\n.xmimo-tts-sound-supported {\n text-align: center;\n display: inline-block;\n max-width: 100%;\n box-sizing: border-box;\n margin-top: 3px;\n padding: 5px;\n border: 1px solid color-mix(in srgb, var(--dsw-alias-border-l2, #d7dbe2) 70%, transparent);\n border-radius: 999px;\n color: var(--dsw-alias-label-tertiary, #8b93a1);\n background: color-mix(in srgb, var(--dsw-alias-bg-layer-2, #f7f8fa) 72%, transparent);\n font-size: 12px;\n line-height: 14px;\n overflow-wrap: anywhere\n}\n";
21631
+ var sound_default = "/*\n * Sound effects module: toggle header, pack grid, cue previews, collapse.\n */\n.xmimo-tts-sound-effects {\n overflow: visible;\n padding: 0 !important\n}\n\n.xmimo-tts-sound-summary {\n height: 30px;\n}\n\n.xmimo-tts-sound-body {\n box-sizing: border-box;\n display: flex;\n min-height: 0;\n overflow: hidden;\n flex-direction: column;\n gap: 12px;\n padding: 0 16px 16px\n}\n\n.xmimo-tts-sound-pack {\n display: flex;\n min-width: 0;\n flex-direction: column;\n gap: 5px;\n color: var(--dsw-alias-label-primary, #1f2328);\n font-size: 13px;\n}\n\n.xmimo-tts-sound-pack-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));\n gap: 5px\n}\n\n.xmimo-tts-sound-pack-option {\n --xmimo-sound-pack-accent: var(--dsw-alias-brand-primary, #4f6ef7);\n position: relative;\n display: flex;\n box-sizing: border-box;\n align-items: center;\n justify-content: space-between;\n min-width: 0;\n min-height: 52px;\n overflow: hidden;\n border: 1px solid color-mix(in srgb, var(--xmimo-sound-pack-accent) 26%, var(--dsw-alias-border-l2, #d7dbe2));\n border-radius: 14px;\n padding: 8px 30px 8px 10px;\n color: var(--dsw-alias-label-secondary, #5f6875);\n background:\n radial-gradient(circle at 86% 12%, color-mix(in srgb, var(--xmimo-sound-pack-accent) 20%, transparent) 0 2px, transparent 3px),\n linear-gradient(135deg, color-mix(in srgb, var(--xmimo-sound-pack-accent) 13%, var(--dsw-alias-bg-layer-1, #fff)), var(--dsw-alias-bg-layer-1, #fff));\n font: inherit;\n font-size: 11px;\n text-align: left;\n cursor: pointer;\n transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease\n}\n\n.xmimo-tts-sound-pack-option::after {\n position: absolute;\n top: 50%;\n right: 8px;\n display: grid;\n width: 16px;\n height: 16px;\n place-items: center;\n border-radius: 999px;\n color: var(--xmimo-sound-pack-accent);\n background: color-mix(in srgb, var(--xmimo-sound-pack-accent) 14%, transparent);\n content: \"\";\n font-size: 10px;\n font-weight: 700;\n opacity: 0;\n transform: translateY(-50%) scale(.72);\n transition: opacity 140ms ease, transform 140ms ease\n}\n\n.xmimo-tts-sound-pack-icon {\n display: block;\n width: 20px;\n height: 20px;\n flex: none;\n margin-right: 7px;\n color: var(--xmimo-sound-pack-accent);\n}\n\n.xmimo-tts-sound-pack-name {\n min-width: 0;\n flex: 1 1 auto;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap\n}\n\n.xmimo-tts-sound-pack-option:hover:not(:disabled) {\n border-color: var(--xmimo-sound-pack-accent);\n color: var(--dsw-alias-label-primary, #1f2328);\n transform: translateY(-1px);\n box-shadow: 0 4px 12px rgba(15, 23, 42, .10)\n}\n\n.xmimo-tts-sound-pack-option:active:not(:disabled) {\n transform: scale(.97)\n}\n\n.xmimo-tts-sound-pack-option-selected {\n border-color: var(--xmimo-sound-pack-accent);\n color: var(--xmimo-sound-pack-accent);\n background:\n radial-gradient(circle at 88% 11%, color-mix(in srgb, var(--xmimo-sound-pack-accent) 35%, transparent) 0 2px, transparent 3px),\n linear-gradient(135deg, color-mix(in srgb, var(--xmimo-sound-pack-accent) 22%, var(--dsw-alias-bg-layer-1, #fff)), var(--dsw-alias-bg-layer-1, #fff));\n font-weight: 650;\n box-shadow: 0 0 0 3px color-mix(in srgb, var(--xmimo-sound-pack-accent) 16%, transparent)\n}\n\n.xmimo-tts-sound-pack-option-selected::after {\n content: \"✓\";\n opacity: 1;\n transform: translateY(-50%) scale(1)\n}\n\n.xmimo-tts-sound-pack-option-pending {\n cursor: progress\n}\n\n.xmimo-tts-sound-pack-option-pending::after {\n border: 2px solid color-mix(in srgb, var(--xmimo-sound-pack-accent) 35%, transparent);\n border-top-color: var(--xmimo-sound-pack-accent);\n background: transparent;\n content: \"\";\n opacity: 1;\n transform: translateY(-50%);\n animation: xmimo-tts-sound-pack-spin 700ms linear infinite\n}\n\n@keyframes xmimo-tts-sound-pack-spin {\n to { transform: translateY(-50%) rotate(360deg) }\n}\n\n.xmimo-tts-sound-pack-option:focus-visible,\n.xmimo-tts-sound-previews button:focus-visible {\n outline: 2px solid var(--dsw-alias-brand-primary, #4f6ef7);\n outline-offset: 1px\n}\n\n.xmimo-tts-sound-pack-option:disabled {\n cursor: not-allowed;\n opacity: .5\n}\n\n.xmimo-tts-sound-preview-section {\n display: flex;\n min-width: 0;\n flex-direction: column;\n gap: 5px;\n color: var(--dsw-alias-label-primary, #1f2328);\n font-size: 13px;\n}\n\n.xmimo-tts-sound-previews {\n display: grid;\n min-width: 0;\n grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));\n gap: 5px;\n overflow-x: auto;\n overscroll-behavior-x: contain;\n padding: 2px 1px 4px\n}\n\n.xmimo-tts-sound-previews button {\n box-sizing: border-box;\n display: flex;\n min-width: 0;\n align-items: center;\n flex-direction: column;\n gap: 5px;\n border: 1px solid transparent;\n border-radius: 10px;\n padding: 10px 5px 8px;\n color: var(--dsw-alias-label-secondary, #5f6875);\n background: transparent;\n font: inherit;\n font-size: 10px;\n cursor: pointer;\n transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, color 160ms ease\n}\n\n.xmimo-tts-sound-previews button>svg {\n flex-shrink: 0;\n transition: transform 160ms ease\n}\n\n.xmimo-tts-sound-previews button:hover:not(:disabled) {\n border-color: var(--dsw-alias-border-l2, #d7dbe2);\n background: var(--dsw-alias-interactive-bg-hover, #f3f4f6);\n color: var(--dsw-alias-brand-primary, #4f6ef7);\n transform: translateY(-2px)\n}\n\n.xmimo-tts-sound-previews button:hover:not(:disabled)>svg {\n transform: scale(1.1)\n}\n\n.xmimo-tts-sound-previews button:active:not(:disabled) {\n transform: translateY(0) scale(0.98)\n}\n\n.xmimo-tts-sound-previews button:disabled {\n cursor: not-allowed;\n filter: grayscale(.55);\n opacity: .42\n}\n\n.xmimo-tts-sound-previews button>span:last-child {\n overflow: hidden;\n width: 100%;\n text-align: center;\n text-overflow: ellipsis;\n white-space: nowrap\n}\n\n.xmimo-tts-sound-description {\n color: var(--dsw-alias-label-tertiary, #8b93a1);\n font-size: 12px;\n line-height: 18px\n}\n\n.xmimo-tts-sound-supported {\n text-align: center;\n display: inline-block;\n max-width: 100%;\n box-sizing: border-box;\n margin-top: 3px;\n padding: 5px;\n border: 1px solid color-mix(in srgb, var(--dsw-alias-border-l2, #d7dbe2) 70%, transparent);\n border-radius: 999px;\n color: var(--dsw-alias-label-tertiary, #8b93a1);\n background: color-mix(in srgb, var(--dsw-alias-bg-layer-2, #f7f8fa) 72%, transparent);\n font-size: 12px;\n line-height: 14px;\n overflow-wrap: anywhere\n}\n";
20960
21632
 
20961
21633
  //#endregion
20962
21634
  //#region src/client/style/volume.css?raw
@@ -20964,7 +21636,7 @@ var volume_default = "/*\n * Volume controls: sound volume rows and the energy s
20964
21636
 
20965
21637
  //#endregion
20966
21638
  //#region src/client/style/voice-reading.css?raw
20967
- var voice_reading_default = "/**\n * Voice reading settings section — standalone page registered through the host\n * `settings.section` slot. All selectors are prefixed `xmimo-voice-reading`;\n * tokens mirror the host settings chrome with literal fallbacks.\n */\n\n.xmimo-voice-reading {\n display: flex;\n flex-direction: column;\n gap: 12px;\n color: var(--dsw-alias-label-primary, #1f2328);\n}\n\n.xmimo-voice-reading-title {\n margin: 0;\n font-size: 18px;\n line-height: 26px;\n font-weight: 600;\n}\n\n.xmimo-voice-reading-intro {\n margin: 0;\n font-size: 14px;\n line-height: 22px;\n color: var(--dsw-alias-label-tertiary, #66707d);\n}\n\n.xmimo-voice-reading-notice {\n margin: 0;\n font-size: 12px;\n line-height: 18px;\n color: var(--dsw-alias-label-tertiary, #66707d);\n}\n\n.xmimo-voice-reading-failure {\n margin: 0;\n font-size: 12px;\n line-height: 18px;\n color: var(--dsw-alias-state-error-primary, #c23f4a);\n}\n\n/**\n * Row stack. The page already sits inside the Host's settings panel, so the\n * card carries no border, radius, or padding of its own: the rows alone draw\n * the Host's hairline separators (same as the Host settings sections).\n */\n.xmimo-voice-reading-card {\n border: 0;\n border-radius: 0;\n padding: 0;\n}\n\n.xmimo-voice-reading-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 24px;\n padding: 16px 0;\n border-bottom: 0.5px solid var(--dsw-alias-border-l2, #d7dbe2);\n}\n\n.xmimo-voice-reading-row:last-child {\n border-bottom: 0;\n}\n\n.xmimo-voice-reading-copy {\n min-width: 0;\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n\n.xmimo-voice-reading-row-title {\n font-size: 14px;\n line-height: 20px;\n color: var(--dsw-alias-label-primary, #1f2328);\n}\n\n.xmimo-voice-reading-row-hint {\n font-size: 12px;\n line-height: 18px;\n color: var(--dsw-alias-label-secondary, #5f6875);\n}\n\n/**\n * Keep the Host's viewport margins below the 300px cap; Menu handles inner\n * scrolling. Repeat the class to override the Host rule in either CSS order.\n */\n.xmimo-voice-reading-menu.xmimo-voice-reading-menu {\n max-height: min(300px, calc(100vh - 12px - max(12px, var(--dsh-frame-overlay-top, 12px))));\n}\n\n/**\n * Capsule selector pill — mirrors the Host settings rows (harness source:\n * packages/client/ui-chat/src/client/settings/PreferenceRow.module.css .selector\n * and packages/client/locale/src/client/LanguageRow.module.css .selector): a\n * borderless 36px pill on the module surface whose chevron sits 12px from the\n * label. The dropdown itself is the Host primitive `Menu`, so the list already\n * matches every other Host menu; only the trigger is ours to style.\n */\n.xmimo-voice-reading-selector {\n display: inline-flex;\n align-items: center;\n gap: 12px;\n flex: none;\n max-width: 260px;\n height: 36px;\n padding: 0 14px;\n border: none;\n border-radius: var(--dsw-radius-md, 12px);\n background: var(--dsw-alias-bg-module-platform, #eef0f3);\n font: inherit;\n font-size: 14px;\n line-height: 22px;\n color: var(--dsw-alias-label-primary, #1f2328);\n cursor: pointer;\n}\n\n.xmimo-voice-reading-selector:hover:not(:disabled) {\n background: var(--dsw-alias-interactive-bg-hover, #e4e7eb);\n}\n\n.xmimo-voice-reading-selector:focus-visible {\n outline: var(--dsw-focus-ring-width, 2px) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary, #4f6ef7));\n outline-offset: 1px;\n}\n\n.xmimo-voice-reading-selector:disabled {\n color: var(--dsw-alias-label-tertiary, #66707d);\n cursor: default;\n}\n\n.xmimo-voice-reading-selector-label {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.xmimo-voice-reading-chevron {\n flex: none;\n}\n\n@media (max-width: 460px) {\n .xmimo-voice-reading-row {\n flex-direction: column;\n align-items: stretch;\n gap: 12px;\n }\n\n .xmimo-voice-reading-selector {\n align-self: flex-start;\n max-width: 100%;\n }\n}\n\n/**\n * Settings nav glyph: the plugin's own voice icon, RiVoiceAiFill from\n * `react-icons/ri`. The host shell hardcodes the nav glyph per section id and\n * the `settings.section` registration has no icon field (0.2.1-rc.2), so a\n * third-party section always paints the settings gear. settings/nav-icon.ts\n * marks only our own nav cell; these rules paint the plugin icon over that cell\n * (masked so it follows the host's currentColor) while every other entry keeps\n * its host glyph. test/voice-reading-nav-icon.test.mjs pins the path data below\n * to the RiVoiceAiFill source shipped by react-icons.\n */\n[data-xmimo-voice-reading-nav] > svg {\n display: none;\n}\n\n[data-xmimo-voice-reading-nav]::before {\n content: '';\n flex: none;\n width: 16px;\n height: 16px;\n background-color: currentColor;\n -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M20.7134 7.12811L20.4668 7.69379C20.2864 8.10792 19.7136 8.10792 19.5331 7.69379L19.2866 7.12811C18.8471 6.11947 18.0555 5.31641 17.0677 4.87708L16.308 4.53922C15.8973 4.35653 15.8973 3.75881 16.308 3.57612L17.0252 3.25714C18.0384 2.80651 18.8442 1.97373 19.2761 0.930828L19.5293 0.319534C19.7058 -0.106511 20.2942 -0.106511 20.4706 0.319534L20.7238 0.930828C21.1558 1.97373 21.9616 2.80651 22.9748 3.25714L23.6919 3.57612C24.1027 3.75881 24.1027 4.35653 23.6919 4.53922L22.9323 4.87708C21.9445 5.31641 21.1529 6.11947 20.7134 7.12811ZM8.5 6H6.5V18H8.5V6ZM4 10H2V14H4V10ZM13 2H11V22H13V2ZM17.5 8H15.5V18H17.5V8ZM22 10H20V14H22V10Z'/%3E%3C/svg%3E\");\n -webkit-mask-repeat: no-repeat;\n -webkit-mask-position: center;\n -webkit-mask-size: 16px 16px;\n mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M20.7134 7.12811L20.4668 7.69379C20.2864 8.10792 19.7136 8.10792 19.5331 7.69379L19.2866 7.12811C18.8471 6.11947 18.0555 5.31641 17.0677 4.87708L16.308 4.53922C15.8973 4.35653 15.8973 3.75881 16.308 3.57612L17.0252 3.25714C18.0384 2.80651 18.8442 1.97373 19.2761 0.930828L19.5293 0.319534C19.7058 -0.106511 20.2942 -0.106511 20.4706 0.319534L20.7238 0.930828C21.1558 1.97373 21.9616 2.80651 22.9748 3.25714L23.6919 3.57612C24.1027 3.75881 24.1027 4.35653 23.6919 4.53922L22.9323 4.87708C21.9445 5.31641 21.1529 6.11947 20.7134 7.12811ZM8.5 6H6.5V18H8.5V6ZM4 10H2V14H4V10ZM13 2H11V22H13V2ZM17.5 8H15.5V18H17.5V8ZM22 10H20V14H22V10Z'/%3E%3C/svg%3E\");\n mask-repeat: no-repeat;\n mask-position: center;\n mask-size: 16px 16px;\n}\n";
21639
+ var voice_reading_default = "/**\n * Voice reading settings section — standalone page registered through the host\n * `settings.section` slot. All selectors are prefixed `xmimo-voice-reading`;\n * tokens mirror the host settings chrome with literal fallbacks.\n */\n\n.xmimo-voice-reading {\n position: relative;\n isolation: isolate;\n display: flex;\n flex-direction: column;\n gap: 12px;\n color: var(--dsw-alias-label-primary, #1f2328);\n}\n\n.xmimo-voice-reading::after {\n content: '';\n position: absolute;\n z-index: -1;\n top: 50%;\n left: 50%;\n width: min(220px, 60%);\n height: 220px;\n transform: translate(-50%, -50%);\n background: var(--xmimo-voice-reading-background) center / contain no-repeat;\n filter: blur(2px);\n opacity: 0.2;\n pointer-events: none;\n}\n\n/**\n * Title row. The heading takes the free space; the 32px shortcut sits on its\n * right, vertically centered on the 26px title line so the 18px label and the\n * 16px glyph share one optical row.\n */\n.xmimo-voice-reading-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n}\n\n.xmimo-voice-reading-title {\n margin: 0;\n min-width: 0;\n font-size: 18px;\n line-height: 26px;\n font-weight: 600;\n}\n\n.xmimo-voice-reading-actions {\n display: inline-flex;\n flex: none;\n align-items: center;\n gap: 2px;\n}\n\n/** Anchor the QQ capsule to its trigger without adding layout to the row. */\n.xmimo-voice-reading-qq {\n position: relative;\n display: inline-flex;\n flex: none;\n}\n\n/**\n * Icon-only shortcut. A real anchor or button so keyboard and open-in-new-tab\n * semantics stay native; the 32px box is the click target, the 16px glyph the\n * visual. The glyph stays in the neutral secondary label color — the accent is\n * reserved for primary actions, and hover only deepens the neutral plus the\n * module hover surface.\n */\n.xmimo-voice-reading-action {\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex: none;\n width: 32px;\n height: 32px;\n padding: 0;\n border: 0;\n border-radius: var(--dsw-radius-sm, 8px);\n background: transparent;\n cursor: pointer;\n}\n\n/**\n * Keep these shortcuts neutral even when a skin forces an accent on links\n * with !important. Scope the override to the shortcuts and their SVGs so\n * ordinary text links can still use the skin's accent.\n */\n.xmimo-voice-reading-actions .xmimo-voice-reading-action {\n color: var(--dsw-alias-label-secondary, #5f6875) !important;\n}\n\n.xmimo-voice-reading-actions .xmimo-voice-reading-action:hover {\n background: var(--dsw-alias-interactive-bg-hover, #e4e7eb);\n color: var(--dsw-alias-label-primary, #1f2328) !important;\n}\n\n.xmimo-voice-reading-actions .xmimo-voice-reading-action > svg {\n color: inherit !important;\n}\n\n.xmimo-voice-reading-action:focus-visible {\n outline: var(--dsw-focus-ring-width, 2px) solid var(--dsw-focus-ring-color, var(--dsw-alias-brand-primary, #4f6ef7));\n outline-offset: 1px;\n}\n\n/**\n * QQ invite capsule. Clicking the icon opens this floating surface with the\n * QR code and group number, keeping it out of the settings rows. It\n * anchors to the right edge of the trigger so it never runs past the panel.\n */\n.xmimo-voice-reading-qq-panel {\n position: absolute;\n z-index: 30;\n top: calc(100% + 8px);\n right: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n box-sizing: border-box;\n width: 222px;\n padding: 12px;\n border: 1px solid var(--dsw-alias-border-l2, #d7dbe2);\n border-radius: var(--dsw-radius-md, 12px);\n background: var(--dsw-alias-bg-layer-1, #fff);\n box-shadow: 0 6px 20px rgb(0 0 0 / 14%);\n color: var(--dsw-alias-label-primary, #1f2328);\n}\n\n.xmimo-voice-reading-qq-close {\n position: absolute;\n top: 4px;\n right: 4px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n padding: 0;\n border: 0;\n border-radius: 6px;\n background: transparent;\n color: var(--dsw-alias-label-tertiary, #66707d);\n cursor: pointer;\n}\n\n.xmimo-voice-reading-qq-close:hover {\n background: var(--dsw-alias-interactive-bg-hover, #e4e7eb);\n color: var(--dsw-alias-label-primary, #1f2328);\n}\n\n.xmimo-voice-reading-qq-close:focus-visible,\n.xmimo-voice-reading-qq-panel:focus-visible {\n outline: var(--dsw-focus-ring-width, 2px) solid var(--dsw-focus-ring-color, var(--dsw-alias-brand-primary, #4f6ef7));\n outline-offset: 1px;\n}\n\n/** The shipped asset already carries its quiet zone and 22px rounded corners. */\n.xmimo-voice-reading-qq-code {\n display: block;\n width: 190px;\n height: 190px;\n margin-top: 8px;\n border-radius: var(--dsw-radius-md, 12px);\n}\n\n.xmimo-voice-reading-qq-meta {\n display: flex;\n align-items: baseline;\n gap: 6px;\n margin-top: 8px;\n font-size: 12px;\n line-height: 18px;\n}\n\n.xmimo-voice-reading-qq-group {\n color: var(--dsw-alias-label-primary, #1f2328);\n font-weight: 600;\n}\n\n.xmimo-voice-reading-qq-number {\n color: var(--dsw-alias-label-secondary, #5f6875);\n font-family: inherit;\n font-variant-numeric: tabular-nums;\n}\n\n.xmimo-voice-reading-intro {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: 4px 8px;\n margin: 0;\n font-size: 14px;\n line-height: 22px;\n color: var(--dsw-alias-label-tertiary, #66707d);\n}\n\n.xmimo-voice-reading-notice {\n margin: 0;\n font-size: 12px;\n line-height: 18px;\n color: var(--dsw-alias-label-tertiary, #66707d);\n}\n\n.xmimo-voice-reading-link {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n flex: none;\n padding: 0;\n border: 0;\n border-radius: 2px;\n background: transparent;\n color: var(--dsw-alias-brand-primary, #4f6ef7);\n font: inherit;\n white-space: nowrap;\n cursor: pointer;\n}\n\n.xmimo-voice-reading-link-label {\n text-decoration: underline;\n text-decoration-thickness: 1px;\n text-underline-offset: 3px;\n}\n\n.xmimo-voice-reading-link:hover .xmimo-voice-reading-link-label {\n text-decoration-thickness: 2px;\n}\n\n.xmimo-voice-reading-link:focus-visible {\n outline: 2px solid var(--dsw-focus-ring-color, var(--dsw-alias-brand-primary, #4f6ef7));\n outline-offset: 2px;\n}\n\n.xmimo-voice-reading-warning {\n display: flex;\n align-items: center;\n gap: 8px;\n min-width: 0;\n min-height: 36px;\n padding: 4px 8px 4px 12px;\n border: 1px solid color-mix(in srgb, var(--dsw-alias-state-warning-primary, #c58a00) 40%, transparent);\n border-radius: var(--dsw-radius-sm, 8px);\n background: color-mix(in srgb, var(--dsw-alias-state-warning-primary, #c58a00) 12%, var(--dsw-alias-bg-layer-1, #fff));\n color: var(--dsw-alias-label-primary, #1f2328);\n font-size: 12px;\n line-height: 20px;\n}\n\n.xmimo-voice-reading-warning-message {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.xmimo-voice-reading-warning-close {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex: none;\n width: 28px;\n height: 28px;\n padding: 0;\n border: 0;\n border-radius: var(--dsw-radius-sm, 8px);\n background: transparent;\n color: inherit;\n cursor: pointer;\n}\n\n.xmimo-voice-reading-warning-close:hover {\n background: var(--dsw-alias-interactive-bg-hover, #e4e7eb);\n}\n\n.xmimo-voice-reading-warning-close:focus-visible {\n outline: var(--dsw-focus-ring-width, 2px) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary, #4f6ef7));\n outline-offset: 1px;\n}\n\n.xmimo-voice-reading-failure {\n margin: 0;\n font-size: 12px;\n line-height: 18px;\n color: var(--dsw-alias-state-error-primary, #c23f4a);\n}\n\n/**\n * Row stack. The page already sits inside the Host's settings panel, so the\n * card carries no border, radius, or padding of its own: the rows alone draw\n * the Host's hairline separators (same as the Host settings sections).\n */\n.xmimo-voice-reading-card {\n border: 0;\n border-radius: 0;\n padding: 0;\n}\n\n.xmimo-voice-reading-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 24px;\n padding: 16px 0;\n border-bottom: 0.5px solid var(--dsw-alias-border-l2, #d7dbe2);\n}\n\n.xmimo-voice-reading-row:last-child {\n border-bottom: 0;\n}\n\n.xmimo-voice-reading-provider {\n min-width: 0;\n margin: 4px 0 0;\n border: 0;\n border-bottom: 0.5px solid var(--dsw-alias-border-l2, #d7dbe2);\n padding: 0 0 16px;\n}\n\n.xmimo-voice-reading-provider legend {\n padding: 0;\n}\n\n.xmimo-voice-reading-provider-options {\n display: grid;\n margin-top: 12px;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: 8px;\n}\n\n.xmimo-voice-reading-provider-option {\n position: relative;\n min-width: 0;\n cursor: pointer;\n}\n\n.xmimo-voice-reading-provider-option input {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: 0;\n opacity: 0;\n}\n\n.xmimo-voice-reading-provider-face {\n display: flex;\n box-sizing: border-box;\n min-height: 64px;\n align-items: center;\n justify-content: center;\n gap: 10px;\n border: 1px solid var(--dsw-alias-border-l2, #d7dbe2);\n border-radius: var(--dsw-radius-md, 12px);\n padding: 12px;\n color: var(--dsw-alias-label-primary, #1f2328);\n background: var(--dsw-alias-bg-module-platform, #eef0f3);\n font-size: 16px;\n font-weight: 500;\n line-height: 24px;\n}\n\n.xmimo-voice-reading-provider-face img {\n flex: none;\n width: 32px;\n height: 32px;\n object-fit: contain;\n}\n\n.xmimo-voice-reading-provider-option input:checked + .xmimo-voice-reading-provider-face {\n border-color: var(--dsw-alias-brand-primary, #4f6ef7);\n}\n\n.xmimo-voice-reading-provider-option:hover input:not(:disabled) + .xmimo-voice-reading-provider-face {\n background: var(--dsw-alias-interactive-bg-hover, #e4e7eb);\n}\n\n.xmimo-voice-reading-provider-option input:focus-visible + .xmimo-voice-reading-provider-face {\n outline: 2px solid var(--dsw-focus-ring-color, var(--dsw-alias-brand-primary, #4f6ef7));\n outline-offset: 2px;\n}\n\n.xmimo-voice-reading-provider-option:has(input:disabled) {\n cursor: default;\n}\n\n.xmimo-voice-reading-provider-option input:disabled + .xmimo-voice-reading-provider-face {\n opacity: 0.5;\n}\n\n@media (max-width: 460px) {\n .xmimo-voice-reading-provider-face {\n gap: 6px;\n padding: 10px 6px;\n font-size: 13px;\n }\n\n .xmimo-voice-reading-provider-face img {\n width: 26px;\n height: 26px;\n }\n}\n\n.xmimo-voice-reading-copy {\n min-width: 0;\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n\n.xmimo-voice-reading-row-title {\n font-size: 14px;\n line-height: 20px;\n color: var(--dsw-alias-label-primary, #1f2328);\n}\n\n.xmimo-voice-reading-row-hint {\n font-size: 12px;\n line-height: 18px;\n color: var(--dsw-alias-label-secondary, #5f6875);\n}\n\n/**\n * Keep the Host's viewport margins below the 300px cap; Menu handles inner\n * scrolling. Repeat the class to override the Host rule in either CSS order.\n */\n.xmimo-voice-reading-menu.xmimo-voice-reading-menu {\n max-height: min(300px, calc(100vh - 12px - max(12px, var(--dsh-frame-overlay-top, 12px))));\n}\n\n/**\n * Capsule selector pill — mirrors the Host settings rows (harness source:\n * packages/client/ui-chat/src/client/settings/PreferenceRow.module.css .selector\n * and packages/client/locale/src/client/LanguageRow.module.css .selector): a\n * borderless 36px pill on the module surface whose chevron sits 12px from the\n * label. The dropdown itself is the Host primitive `Menu`, so the list already\n * matches every other Host menu; only the trigger is ours to style.\n */\n.xmimo-voice-reading-selector {\n display: inline-flex;\n align-items: center;\n gap: 12px;\n flex: none;\n max-width: 260px;\n height: 36px;\n padding: 0 14px;\n border: none;\n border-radius: var(--dsw-radius-md, 12px);\n background: var(--dsw-alias-bg-module-platform, #eef0f3);\n font: inherit;\n font-size: 14px;\n line-height: 22px;\n color: var(--dsw-alias-label-primary, #1f2328);\n cursor: pointer;\n}\n\n.xmimo-voice-reading-selector:hover:not(:disabled) {\n background: var(--dsw-alias-interactive-bg-hover, #e4e7eb);\n}\n\n.xmimo-voice-reading-selector:focus-visible {\n outline: var(--dsw-focus-ring-width, 2px) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary, #4f6ef7));\n outline-offset: 1px;\n}\n\n.xmimo-voice-reading-selector:disabled {\n color: var(--dsw-alias-label-tertiary, #66707d);\n cursor: default;\n}\n\n.xmimo-voice-reading-selector-label {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.xmimo-voice-reading-chevron {\n flex: none;\n}\n\n@media (max-width: 300px) {\n .xmimo-voice-reading-row {\n flex-direction: column;\n align-items: stretch;\n gap: 12px;\n }\n\n .xmimo-voice-reading-selector {\n align-self: flex-start;\n max-width: 100%;\n }\n\n /**\n * On narrow screens the capsule would start past the left edge when anchored\n * to the trigger's right edge; pin it to the page instead.\n */\n .xmimo-voice-reading-qq-panel {\n position: fixed;\n top: auto;\n right: 12px;\n left: 12px;\n bottom: 12px;\n width: auto;\n max-width: 320px;\n margin-inline: auto;\n }\n}\n\n/**\n * Settings nav glyph: the plugin's own voice icon, RiVoiceAiFill from\n * `react-icons/ri`. The host shell hardcodes the nav glyph per section id and\n * the `settings.section` registration has no icon field (0.2.1-rc.2), so a\n * third-party section always paints the settings gear. settings/nav-icon.ts\n * marks only our own nav cell; these rules paint the plugin icon over that cell\n * (masked so it follows the host's currentColor) while every other entry keeps\n * its host glyph. test/voice-reading-nav-icon.test.mjs pins the path data below\n * to the RiVoiceAiFill source shipped by react-icons.\n */\n[data-xmimo-voice-reading-nav] > svg {\n display: none;\n}\n\n[data-xmimo-voice-reading-nav]::before {\n content: '';\n flex: none;\n width: 16px;\n height: 16px;\n background-color: currentColor;\n -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M20.7134 7.12811L20.4668 7.69379C20.2864 8.10792 19.7136 8.10792 19.5331 7.69379L19.2866 7.12811C18.8471 6.11947 18.0555 5.31641 17.0677 4.87708L16.308 4.53922C15.8973 4.35653 15.8973 3.75881 16.308 3.57612L17.0252 3.25714C18.0384 2.80651 18.8442 1.97373 19.2761 0.930828L19.5293 0.319534C19.7058 -0.106511 20.2942 -0.106511 20.4706 0.319534L20.7238 0.930828C21.1558 1.97373 21.9616 2.80651 22.9748 3.25714L23.6919 3.57612C24.1027 3.75881 24.1027 4.35653 23.6919 4.53922L22.9323 4.87708C21.9445 5.31641 21.1529 6.11947 20.7134 7.12811ZM8.5 6H6.5V18H8.5V6ZM4 10H2V14H4V10ZM13 2H11V22H13V2ZM17.5 8H15.5V18H17.5V8ZM22 10H20V14H22V10Z'/%3E%3C/svg%3E\");\n -webkit-mask-repeat: no-repeat;\n -webkit-mask-position: center;\n -webkit-mask-size: 16px 16px;\n mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M20.7134 7.12811L20.4668 7.69379C20.2864 8.10792 19.7136 8.10792 19.5331 7.69379L19.2866 7.12811C18.8471 6.11947 18.0555 5.31641 17.0677 4.87708L16.308 4.53922C15.8973 4.35653 15.8973 3.75881 16.308 3.57612L17.0252 3.25714C18.0384 2.80651 18.8442 1.97373 19.2761 0.930828L19.5293 0.319534C19.7058 -0.106511 20.2942 -0.106511 20.4706 0.319534L20.7238 0.930828C21.1558 1.97373 21.9616 2.80651 22.9748 3.25714L23.6919 3.57612C24.1027 3.75881 24.1027 4.35653 23.6919 4.53922L22.9323 4.87708C21.9445 5.31641 21.1529 6.11947 20.7134 7.12811ZM8.5 6H6.5V18H8.5V6ZM4 10H2V14H4V10ZM13 2H11V22H13V2ZM17.5 8H15.5V18H17.5V8ZM22 10H20V14H22V10Z'/%3E%3C/svg%3E\");\n mask-repeat: no-repeat;\n mask-position: center;\n mask-size: 16px 16px;\n}\n";
20968
21640
 
20969
21641
  //#endregion
20970
21642
  //#region src/client/style/responsive.css?raw
@@ -20976,15 +21648,15 @@ var motion_default = "/*\n * Reduced-motion overrides (@media prefers-reduced-mo
20976
21648
 
20977
21649
  //#endregion
20978
21650
  //#region src/client/style/global.css?raw
20979
- var global_default = "/*\n * Project-wide UI system for the Xiaomi MiMo settings card.\n * Start here when adjusting layout or visual rhythm. Component-specific artwork,\n * animations, and picker styles live in the sibling *.css modules; shared dimensions\n * and module structure belong here so every settings module stays visually consistent.\n */\n\n/* ---------- Design tokens ---------- */\n.xmimo-ui-scope {\n --xmimo-ui-space-1: 4px;\n --xmimo-ui-space-2: 6px;\n --xmimo-ui-space-3: 8px;\n --xmimo-ui-space-4: 10px;\n --xmimo-ui-space-5: 12px;\n\n --xmimo-ui-module-gap: var(--xmimo-ui-space-3);\n --xmimo-ui-module-padding: var(--xmimo-ui-space-4);\n --xmimo-ui-module-radius: 12px;\n --xmimo-ui-control-radius: 9px;\n --xmimo-ui-control-height: 34px;\n --xmimo-ui-summary-height: 34px;\n --xmimo-ui-mascot-size: 56px;\n\n --xmimo-ui-text: var(--dsw-alias-label-primary, #1f2328);\n --xmimo-ui-text-muted: var(--dsw-alias-label-secondary, #5f6875);\n --xmimo-ui-text-subtle: var(--dsw-alias-label-tertiary, #8b93a1);\n --xmimo-ui-brand: var(--dsw-alias-brand-primary, #4f6ef7);\n --xmimo-ui-border: var(--dsw-alias-border-l2, #d7dbe2);\n --xmimo-ui-border-soft: var(--dsw-alias-border-l2, #e5e7eb);\n --xmimo-ui-surface: var(--dsw-alias-bg-layer-1, #fff);\n --xmimo-ui-control-surface: var(--dsw-alias-bg-layer-2, #f3f4f6);\n --xmimo-ui-chip-surface: var(--dsw-alias-bg-module-platform, #eef0f3);\n --xmimo-ui-hover: var(--dsw-alias-interactive-bg-hover, #f3f4f6);\n --xmimo-ui-focus: 2px solid var(--xmimo-ui-brand);\n}\n\n/* ---------- Layout primitives ---------- */\n.xmimo-ui-stack {\n display: flex;\n min-width: 0;\n flex-direction: column;\n gap: var(--xmimo-ui-module-gap);\n}\n\n.xmimo-ui-grid {\n display: grid;\n min-width: 0;\n}\n\n.xmimo-ui-row {\n display: flex;\n min-width: 0;\n gap: var(--xmimo-ui-module-gap);\n}\n\n/* The stack owns vertical rhythm; modules no longer negotiate margins. */\n.xmimo-ui-stack > * {\n margin-top: 0;\n margin-bottom: 0;\n}\n\n/* ---------- Shared settings module ---------- */\n.xmimo-ui-module {\n box-sizing: border-box;\n position: relative;\n min-width: 0;\n overflow: visible;\n border: 1px solid var(--xmimo-ui-border);\n border-radius: var(--xmimo-ui-module-radius);\n color: var(--xmimo-ui-text);\n background: var(--xmimo-ui-surface);\n}\n\n.xmimo-ui-module-padded {\n padding: var(--xmimo-ui-module-padding) !important;\n}\n\n.xmimo-ui-module-header {\n position: relative;\n min-width: 0;\n}\n\n.xmimo-ui-module-decoration {\n position: static;\n}\n\n.xmimo-ui-module-toggle-static {\n padding: 0 !important;\n cursor: default;\n}\n\n.xmimo-ui-module-toggle-static:hover {\n background: transparent !important;\n}\n\n\n.xmimo-ui-module-heading,\n.xmimo-ui-module-heading > strong,\n.xmimo-ui-module > .xmimo-tts-field-heading .xmimo-tts-field-label > span:first-child {\n color: var(--xmimo-ui-text);\n font-size: 14px;\n font-weight: 650;\n line-height: 20px;\n}\n\n/* ---------- Collapsible module header ---------- */\n.xmimo-ui-module-toggle {\n box-sizing: border-box;\n display: flex;\n width: 100%;\n min-height: 0;\n align-items: flex-start;\n border: 0;\n border-radius: calc(var(--xmimo-ui-module-radius) - 1px);\n padding: var(--xmimo-ui-module-padding);\n color: var(--xmimo-ui-text);\n background: transparent;\n font: inherit;\n text-align: left;\n cursor: pointer;\n}\n\n.xmimo-ui-module-toggle:hover {\n background: var(--xmimo-ui-hover);\n}\n\n.xmimo-ui-module-toggle:focus-visible {\n outline: var(--xmimo-ui-focus);\n outline-offset: -2px;\n}\n\n.xmimo-ui-module-head {\n box-sizing: border-box;\n display: flex;\n min-width: 0;\n width: 100%;\n flex-direction: column;\n align-items: flex-start;\n gap: var(--xmimo-ui-space-1);\n}\n\n.xmimo-ui-summary {\n box-sizing: border-box;\n display: flex;\n width: 100%;\n min-width: 0;\n min-height: var(--xmimo-ui-summary-height);\n align-items: center;\n gap: 6px;\n overflow: hidden;\n border: 1px solid var(--xmimo-ui-border);\n border-radius: var(--xmimo-ui-control-radius);\n padding: 6px 6px 6px var(--xmimo-ui-space-2);\n background: var(--xmimo-ui-control-surface);\n}\n\n.xmimo-ui-summary > span {\n overflow: hidden;\n min-width: 0;\n max-width: 150px;\n flex: 0 1 auto;\n border-radius: 999px;\n padding: 1px 7px;\n color: var(--xmimo-ui-text-muted);\n background: var(--xmimo-ui-chip-surface);\n font-size: 11px;\n font-weight: 500;\n line-height: 16px;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.xmimo-ui-module-body {\n box-sizing: border-box;\n min-width: 0;\n}\n\n/* ---------- Shared fields and controls ---------- */\n.xmimo-ui-module input:not([type='checkbox']):not([type='radio']):not([type='range']),\n.xmimo-ui-module select,\n.xmimo-ui-module textarea {\n border-color: var(--xmimo-ui-border);\n border-radius: var(--xmimo-ui-control-radius);\n color: var(--xmimo-ui-text);\n background: var(--xmimo-ui-control-surface);\n}\n\n.xmimo-ui-module input:not([type='checkbox']):not([type='radio']):not([type='range']),\n.xmimo-ui-module select {\n min-height: var(--xmimo-ui-control-height);\n}\n\n.xmimo-ui-module input:focus-visible,\n.xmimo-ui-module select:focus-visible,\n.xmimo-ui-module textarea:focus-visible {\n outline: var(--xmimo-ui-focus);\n outline-offset: 1px;\n}\n/* ---------- Module-specific placement using shared dimensions ---------- */\n.xmimo-ui-module .xmimo-tts-api-key-whale {\n width: var(--xmimo-ui-mascot-size);\n height: var(--xmimo-ui-mascot-size);\n}\n\n.xmimo-ui-module .xmimo-tts-details-body > * {\n padding-right: var(--xmimo-ui-module-padding);\n padding-left: var(--xmimo-ui-module-padding);\n}\n\n.xmimo-ui-module .xmimo-tts-sound-body {\n gap: var(--xmimo-ui-space-3);\n padding: 6px var(--xmimo-ui-module-padding) var(--xmimo-ui-module-padding);\n}\n\n@media (max-width: 480px) {\n .xmimo-ui-scope {\n --xmimo-ui-module-padding: 12px;\n --xmimo-ui-mascot-size: 52px;\n }\n\n .xmimo-ui-summary > span {\n max-width: 100px;\n padding-right: 6px;\n padding-left: 6px;\n }\n}\n";
21651
+ var global_default = "/*\n * Project-wide UI system for the Xiaomi MiMo settings card.\n * Start here when adjusting layout or visual rhythm. Component-specific artwork,\n * animations, and picker styles live in the sibling *.css modules; shared dimensions\n * and module structure belong here so every settings module stays visually consistent.\n */\n\n/* ---------- Design tokens ---------- */\n.xmimo-ui-scope {\n --xmimo-ui-space-1: 4px;\n --xmimo-ui-space-2: 6px;\n --xmimo-ui-space-3: 8px;\n --xmimo-ui-space-4: 10px;\n --xmimo-ui-space-5: 12px;\n\n --xmimo-ui-module-gap: var(--xmimo-ui-space-3);\n --xmimo-ui-module-padding: var(--xmimo-ui-space-4);\n --xmimo-ui-module-radius: 12px;\n --xmimo-ui-control-radius: 9px;\n --xmimo-ui-control-height: 34px;\n --xmimo-ui-summary-height: 34px;\n --xmimo-ui-mascot-size: 56px;\n\n --xmimo-ui-text: var(--dsw-alias-label-primary, #1f2328);\n --xmimo-ui-text-muted: var(--dsw-alias-label-secondary, #5f6875);\n --xmimo-ui-text-subtle: var(--dsw-alias-label-tertiary, #8b93a1);\n --xmimo-ui-brand: var(--dsw-alias-brand-primary, #4f6ef7);\n --xmimo-ui-border: var(--dsw-alias-border-l2, #d7dbe2);\n --xmimo-ui-border-soft: var(--dsw-alias-border-l2, #e5e7eb);\n --xmimo-ui-surface: var(--dsw-alias-bg-layer-1, #fff);\n --xmimo-ui-control-surface: var(--dsw-alias-bg-layer-2, #f3f4f6);\n --xmimo-ui-chip-surface: var(--dsw-alias-bg-module-platform, #eef0f3);\n --xmimo-ui-hover: var(--dsw-alias-interactive-bg-hover, #f3f4f6);\n --xmimo-ui-focus: 2px solid var(--xmimo-ui-brand);\n}\n\n/* ---------- Layout primitives ---------- */\n.xmimo-ui-stack {\n display: flex;\n min-width: 0;\n flex-direction: column;\n gap: var(--xmimo-ui-module-gap);\n}\n\n.xmimo-ui-grid {\n display: grid;\n min-width: 0;\n}\n\n.xmimo-ui-row {\n display: flex;\n min-width: 0;\n gap: var(--xmimo-ui-module-gap);\n}\n\n/* The stack owns vertical rhythm; modules no longer negotiate margins. */\n.xmimo-ui-stack > * {\n margin-top: 0;\n margin-bottom: 0;\n}\n\n/* ---------- Shared settings module ---------- */\n.xmimo-ui-module {\n box-sizing: border-box;\n position: relative;\n min-width: 0;\n overflow: visible;\n border: 1px solid var(--xmimo-ui-border);\n border-radius: var(--xmimo-ui-module-radius);\n color: var(--xmimo-ui-text);\n background: var(--xmimo-ui-surface);\n}\n\n.xmimo-ui-module-padded {\n padding: var(--xmimo-ui-module-padding) !important;\n}\n\n.xmimo-ui-module-header {\n position: relative;\n min-width: 0;\n}\n\n.xmimo-ui-module-decoration {\n position: static;\n}\n\n.xmimo-ui-module-toggle-static {\n padding: 0 !important;\n cursor: default;\n}\n\n.xmimo-ui-module-toggle-static:hover {\n background: transparent !important;\n}\n\n\n.xmimo-ui-module-heading,\n.xmimo-ui-module-heading > strong,\n.xmimo-ui-module-heading .xmimo-ui-module-title-toggle,\n.xmimo-ui-module-heading .xmimo-ui-module-title-toggle > strong,\n.xmimo-ui-module > .xmimo-tts-field-heading .xmimo-tts-field-label > span:first-child {\n color: var(--xmimo-ui-text);\n font-size: 14px;\n font-weight: 650;\n line-height: 20px;\n}\n\n/* ---------- Collapsible module header ---------- */\n.xmimo-ui-module-title {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n vertical-align: middle;\n}\n\n.xmimo-ui-module-title > svg {\n flex: none;\n width: 14px;\n height: 14px;\n color: var(--xmimo-ui-brand);\n}\n\n.xmimo-ui-module-toggle {\n box-sizing: border-box;\n display: flex;\n width: 100%;\n min-height: 0;\n align-items: flex-start;\n border: 0;\n border-radius: calc(var(--xmimo-ui-module-radius) - 1px);\n padding: var(--xmimo-ui-module-padding);\n color: var(--xmimo-ui-text);\n background: transparent;\n font: inherit;\n text-align: left;\n cursor: pointer;\n}\n\n.xmimo-ui-module-toggle:hover {\n background: var(--xmimo-ui-hover);\n}\n\n.xmimo-ui-module-toggle:focus-visible {\n outline: var(--xmimo-ui-focus);\n outline-offset: -2px;\n}\n\n/* Interactive summaries sit beside a trigger whose hit area fills the header. */\n.xmimo-ui-interactive-heading {\n min-height: 20px;\n}\n\n.xmimo-ui-module-title-toggle {\n box-sizing: border-box;\n position: absolute;\n z-index: 1;\n inset: 0;\n width: 100%;\n border: 0;\n border-radius: calc(var(--xmimo-ui-module-radius) - 1px);\n padding: var(--xmimo-ui-module-padding);\n color: inherit;\n background: transparent;\n font: inherit;\n text-align: inherit;\n display: flex;\n align-items: flex-start;\n cursor: pointer;\n}\n\n.xmimo-ui-module-title-toggle:focus-visible {\n outline: var(--xmimo-ui-focus);\n outline-offset: -2px;\n}\n\n.xmimo-ui-module-head {\n box-sizing: border-box;\n display: flex;\n min-width: 0;\n width: 100%;\n flex-direction: column;\n align-items: flex-start;\n gap: var(--xmimo-ui-space-1);\n}\n\n.xmimo-ui-summary {\n box-sizing: border-box;\n display: flex;\n width: 100%;\n min-width: 0;\n min-height: var(--xmimo-ui-summary-height);\n align-items: center;\n gap: 6px;\n overflow: hidden;\n border: 1px solid var(--xmimo-ui-border);\n border-radius: var(--xmimo-ui-control-radius);\n padding: 6px 6px 6px var(--xmimo-ui-space-2);\n background: var(--xmimo-ui-control-surface);\n}\n\n.xmimo-ui-summary > span {\n overflow: hidden;\n min-width: 0;\n max-width: 150px;\n flex: 0 1 auto;\n border-radius: 999px;\n padding: 1px 7px;\n color: var(--xmimo-ui-text-muted);\n background: var(--xmimo-ui-chip-surface);\n font-size: 11px;\n font-weight: 500;\n line-height: 16px;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.xmimo-ui-module-body {\n box-sizing: border-box;\n min-width: 0;\n}\n\n/* ---------- Shared fields and controls ---------- */\n.xmimo-ui-module input:not([type='checkbox']):not([type='radio']):not([type='range']),\n.xmimo-ui-module select,\n.xmimo-ui-module textarea {\n border-color: var(--xmimo-ui-border);\n border-radius: var(--xmimo-ui-control-radius);\n color: var(--xmimo-ui-text);\n background: var(--xmimo-ui-control-surface);\n}\n\n.xmimo-ui-module input:not([type='checkbox']):not([type='radio']):not([type='range']),\n.xmimo-ui-module select {\n min-height: var(--xmimo-ui-control-height);\n}\n\n.xmimo-ui-module input:focus-visible,\n.xmimo-ui-module select:focus-visible,\n.xmimo-ui-module textarea:focus-visible {\n outline: var(--xmimo-ui-focus);\n outline-offset: 1px;\n}\n/* ---------- Module-specific placement using shared dimensions ---------- */\n.xmimo-ui-module .xmimo-tts-api-key-whale {\n width: var(--xmimo-ui-mascot-size);\n height: var(--xmimo-ui-mascot-size);\n}\n\n.xmimo-ui-module .xmimo-tts-details-body > * {\n padding-right: var(--xmimo-ui-module-padding);\n padding-left: var(--xmimo-ui-module-padding);\n}\n\n.xmimo-ui-module .xmimo-tts-sound-body {\n gap: var(--xmimo-ui-space-3);\n padding: 6px var(--xmimo-ui-module-padding) var(--xmimo-ui-module-padding);\n}\n\n@media (max-width: 480px) {\n .xmimo-ui-scope {\n --xmimo-ui-module-padding: 12px;\n --xmimo-ui-mascot-size: 52px;\n }\n\n .xmimo-ui-summary > span {\n max-width: 100px;\n padding-right: 6px;\n padding-left: 6px;\n }\n}\n";
20980
21652
 
20981
21653
  //#endregion
20982
21654
  //#region src/client/style/minimal.css?raw
20983
- var minimal_default = ".xmimo-tts-switch-module-minimal {\n padding: var(--xmimo-ui-space-3);\n}\n\n.xmimo-tts-card-minimal {\n --xmimo-ui-module-gap: 5px;\n --xmimo-ui-module-padding: 8px;\n --xmimo-ui-control-height: 30px;\n --xmimo-ui-mascot-size: 0px;\n border: 1px solid var(--xmimo-ui-border);\n background: var(--xmimo-ui-surface, #fff);\n padding: 5px;\n}\n\n.xmimo-tts-card-minimal .xmimo-ui-module {\n background: transparent;\n}\n\n.xmimo-tts-card-minimal\n .xmimo-ui-module\n input:not([type=\"checkbox\"]):not([type=\"radio\"]):not([type=\"range\"]) {\n border-radius: 0;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-api-key .xmimo-tts-field-heading {\n padding-right: 0;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-switch-row {\n gap: 6px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal {\n height: 24px;\n flex: 1 1 auto;\n overflow: visible;\n border-radius: 0;\n background: transparent;\n --energy-color: var(--xmimo-ui-text);\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal::before,\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal::after {\n position: absolute;\n top: 50%;\n left: 0;\n display: block;\n height: 4px;\n border-radius: 999px;\n content: \"\";\n pointer-events: none;\n transform: translateY(-50%);\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal::before {\n right: 0;\n background: var(--xmimo-ui-border);\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal::after {\n width: var(--volume);\n background: var(--xmimo-ui-text);\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal .xmimo-tts-energy-fill,\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal .xmimo-tts-energy-dots {\n display: none;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal input[type=\"range\"] {\n z-index: 1;\n height: 32px;\n top: -4px;\n padding: 0;\n}\n\n.xmimo-tts-card-minimal\n .xmimo-tts-energy-minimal\n input::-webkit-slider-runnable-track,\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal input::-moz-range-track {\n height: 24px;\n background: transparent;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal input::-webkit-slider-thumb {\n width: 12px;\n height: 12px;\n border: 0;\n background: transparent;\n animation: none;\n box-shadow: none;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal input::-moz-range-thumb {\n width: 12px;\n height: 12px;\n border: 0;\n background: transparent;\n animation: none;\n box-shadow: none;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal input:focus-visible {\n outline: 2px solid color-mix(in srgb, var(--xmimo-ui-brand) 55%, transparent);\n outline-offset: 2px;\n}\n\n.xmimo-tts-switch-module-minimal .xmimo-tts-minimal-control {\n box-sizing: border-box;\n display: flex;\n min-width: 0;\n min-height: var(--xmimo-ui-control-height);\n align-items: center;\n justify-content: center;\n gap: 6px;\n padding: 0 8px;\n border: 1px solid var(--xmimo-ui-border);\n border-radius: var(--xmimo-ui-control-radius);\n color: var(--xmimo-ui-text);\n background: var(--xmimo-ui-surface);\n font-size: 12px;\n font-weight: 600;\n line-height: 16px;\n cursor: pointer;\n}\n\n.xmimo-tts-switch-module-minimal .xmimo-tts-minimal-control:hover:not(:disabled):not(:has([disabled])) {\n background: var(--xmimo-ui-hover);\n}\n\n.xmimo-tts-switch-module-minimal .xmimo-tts-minimal-control:is(:focus-visible, :has(>button:focus-visible)) {\n outline: var(--xmimo-ui-focus);\n outline-offset: 2px;\n}\n\n.xmimo-tts-minimal-toggle>button:focus-visible {\n outline: none;\n}\n\n.xmimo-tts-minimal-toggle-label {\n min-width: 0;\n overflow: hidden;\n font-size: 12px;\n font-weight: 600;\n line-height: 16px;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.xmimo-tts-minimal-toggle>button {\n flex: none;\n}\n\n.xmimo-tts-provider-button>span {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.xmimo-tts-provider-button>svg {\n flex: none;\n}\n\n.xmimo-tts-switch-module-minimal .xmimo-tts-minimal-control:is(:disabled, :has([disabled])) {\n cursor: not-allowed;\n opacity: 0.5;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-field-badges {\n display: none !important;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-volume {\n align-items: center;\n flex-direction: row;\n gap: 6px;\n}\n.xmimo-tts-card-minimal .xmimo-tts-sound-volume {\n width: 50%;\n align-items: center;\n flex-direction: row;\n gap: 6px;\n}\n\n\n.xmimo-tts-card-minimal .xmimo-tts-api-key-input > input {\n border: 0;\n border-bottom: 1px solid var(--xmimo-ui-border);\n border-radius: 0;\n padding-right: 0;\n padding-left: 0;\n background: transparent;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-api-key-input > input:hover:not(:disabled) {\n border-bottom-color: var(--xmimo-ui-text-subtle);\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-api-key-input > input:focus-visible {\n border-bottom-color: var(--xmimo-ui-brand);\n outline: none;\n box-shadow: 0 1px 0 var(--xmimo-ui-brand);\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-voice-picker-text-caret {\n flex: none;\n color: var(--xmimo-ui-text-muted);\n font-size: 18px;\n line-height: 1;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-details-body {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n column-gap: 12px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-details-body > :nth-child(n + 3) {\n grid-column: 1 / -1;\n}\n\n.xmimo-tts-card-minimal\n .xmimo-tts-details-body\n > :not(.xmimo-tts-volume):not(.xmimo-tts-doubao-voice):not(.xmimo-tts-speech-instruction)\n > .xmimo-tts-field-heading {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n clip-path: inset(50%);\n white-space: nowrap;\n}\n\n\n\n\n\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-menu,\n.xmimo-tts-card-minimal .xmimo-tts-voice-picker-menu {\n grid-template-columns: repeat(4, minmax(0, 1fr));\n background: none;\n box-shadow: none;\n gap: 6px;\n padding: 6px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-option {\n min-width: 0;\n min-height: 42px;\n padding: 6px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-copy,\n.xmimo-tts-card-minimal .xmimo-tts-voice-option-copy {\n align-items: baseline;\n flex-direction: row;\n gap: 6px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-copy > strong,\n.xmimo-tts-card-minimal .xmimo-tts-voice-option-copy > strong {\n min-width: 0;\n flex: 0 1 auto;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-copy > small,\n.xmimo-tts-card-minimal .xmimo-tts-voice-option-copy > small {\n min-width: 0;\n flex: 1 1 0;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-option-custom {\n grid-column: auto;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n clip-path: inset(50%);\n}\n\n.xmimo-tts-card-minimal\n .xmimo-tts-api-key-input:focus-within\n + .xmimo-tts-api-key-message {\n position: static;\n width: auto;\n height: auto;\n overflow: visible;\n clip: auto;\n clip-path: none;\n white-space: normal;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-api-key-message.xmimo-tts-api-key-warning {\n position: static;\n width: auto;\n height: auto;\n overflow: visible;\n clip: auto;\n clip-path: none;\n white-space: normal;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-preview-input {\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n.xmimo-tts-card-minimal .xmimo-ui-stack {\n gap: 6px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-preview-input > textarea {\n min-width: 0;\n flex: 1 1 auto;\n}\n\n\n\n\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-body {\n gap: 8px;\n padding: 6px 10px 10px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-grid {\n grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));\n gap: 4px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option {\n min-height: 34px;\n border-radius: 9px;\n padding: 5px 20px 5px 7px;\n font-size: 11px;\n line-height: 16px;\n transition:\n border-color 140ms ease,\n background 140ms ease;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option::before {\n content: none;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option::after {\n right: 5px;\n width: 13px;\n height: 13px;\n font-size: 9px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option:hover:not(:disabled),\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option:active:not(:disabled) {\n transform: none;\n box-shadow: none;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option-selected {\n box-shadow: none;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-wave {\n display: none;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-icon {\n width: 16px;\n height: 16px;\n margin-right: 5px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-previews button {\n min-height: 28px;\n padding: 5px;\n}\n\n.xmimo-tts-card-minimal .xmimo-ui-module-padded {\n padding: 8px !important;\n}\n\n.xmimo-tts-card-minimal .xmimo-ui-summary {\n min-height: 28px;\n gap: 4px;\n padding-block: 3px;\n border-radius: 0;\n border: 0;\n border-bottom: 1px solid var(--xmimo-ui-border);\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-grid > * {\n padding-block: 4px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-card-actions {\n flex-wrap: wrap;\n gap: 6px;\n padding: 0 var(--xmimo-ui-space-3) var(--xmimo-ui-space-3);\n}\n\n@media (max-width: 520px) {\n .xmimo-tts-card-minimal .xmimo-tts-switch-row {\n gap: 5px;\n }\n\n .xmimo-tts-card-minimal .xmimo-tts-character-copy strong {\n font-size: 12px;\n }\n}\n\n@media (pointer: coarse) {\n .xmimo-tts-switch-module-minimal .xmimo-tts-minimal-control {\n min-height: 44px;\n }\n}\n";
21655
+ var minimal_default = ".xmimo-tts-switch-module-minimal {\n padding: var(--xmimo-ui-space-3) 0 0;\n}\n\n.xmimo-tts-card-minimal {\n --xmimo-ui-module-gap: 5px;\n --xmimo-ui-module-padding: 8px;\n --xmimo-ui-control-height: 30px;\n --xmimo-ui-mascot-size: 0px;\n border: 1px solid var(--xmimo-ui-border);\n background: var(--xmimo-ui-surface, #fff);\n padding: 0 var(--xmimo-ui-space-3);\n}\n\n.xmimo-tts-card-minimal .xmimo-ui-module {\n background: transparent;\n}\n\n.xmimo-tts-card-minimal\n .xmimo-ui-module\n input:not([type=\"checkbox\"]):not([type=\"radio\"]):not([type=\"range\"]) {\n border-radius: 0;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-api-key .xmimo-tts-field-heading {\n padding-right: 0;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-switch-row {\n gap: 6px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal {\n height: 24px;\n flex: 1 1 auto;\n overflow: visible;\n border-radius: 0;\n background: transparent;\n --energy-color: var(--xmimo-ui-text);\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal::before,\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal::after {\n position: absolute;\n top: 50%;\n left: 0;\n display: block;\n height: 4px;\n border-radius: 999px;\n content: \"\";\n pointer-events: none;\n transform: translateY(-50%);\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal::before {\n right: 0;\n background: var(--xmimo-ui-border);\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal::after {\n width: var(--volume);\n background: var(--xmimo-ui-text);\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal .xmimo-tts-energy-fill,\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal .xmimo-tts-energy-dots {\n display: none;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal input[type=\"range\"] {\n z-index: 1;\n height: 32px;\n top: -4px;\n padding: 0;\n}\n\n.xmimo-tts-card-minimal\n .xmimo-tts-energy-minimal\n input::-webkit-slider-runnable-track,\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal input::-moz-range-track {\n height: 24px;\n background: transparent;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal input::-webkit-slider-thumb {\n width: 12px;\n height: 12px;\n border: 0;\n background: transparent;\n animation: none;\n box-shadow: none;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal input::-moz-range-thumb {\n width: 12px;\n height: 12px;\n border: 0;\n background: transparent;\n animation: none;\n box-shadow: none;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-energy-minimal input:focus-visible {\n outline: 2px solid color-mix(in srgb, var(--xmimo-ui-brand) 55%, transparent);\n outline-offset: 2px;\n}\n\n.xmimo-tts-switch-module-minimal .xmimo-tts-minimal-control {\n box-sizing: border-box;\n display: flex;\n min-width: 0;\n min-height: var(--xmimo-ui-control-height);\n align-items: center;\n justify-content: space-between;\n gap: 6px;\n padding: 0 8px;\n border: 1px solid var(--xmimo-ui-border);\n border-radius: var(--xmimo-ui-control-radius);\n color: var(--xmimo-ui-text);\n background: var(--xmimo-ui-surface);\n font-size: 12px;\n font-weight: 600;\n line-height: 16px;\n cursor: pointer;\n}\n\n.xmimo-tts-switch-module-minimal .xmimo-tts-minimal-control:hover:not(:disabled):not(:has([disabled])) {\n background: var(--xmimo-ui-hover);\n}\n\n.xmimo-tts-switch-module-minimal .xmimo-tts-minimal-control:is(:focus-visible, :has(>button:focus-visible)) {\n outline: var(--xmimo-ui-focus);\n outline-offset: 2px;\n}\n\n.xmimo-tts-minimal-toggle>button:focus-visible {\n outline: none;\n}\n\n.xmimo-tts-minimal-toggle-label {\n min-width: 0;\n overflow: hidden;\n font-size: 12px;\n font-weight: 600;\n line-height: 16px;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.xmimo-tts-minimal-toggle>button {\n flex: none;\n}\n\n.xmimo-tts-provider-button>span {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.xmimo-tts-provider-button>svg {\n flex: none;\n}\n\n.xmimo-tts-switch-module-minimal .xmimo-tts-minimal-control:is(:disabled, :has([disabled])) {\n cursor: not-allowed;\n opacity: 0.5;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-field-badges {\n display: none !important;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-volume {\n align-items: center;\n flex-direction: row;\n gap: 6px;\n}\n.xmimo-tts-card-minimal .xmimo-tts-sound-volume {\n width: 50%;\n align-items: center;\n flex-direction: row;\n gap: 6px;\n}\n\n\n.xmimo-tts-card-minimal .xmimo-tts-api-key-input > input {\n border: 0;\n border-bottom: 1px solid var(--xmimo-ui-border);\n border-radius: 0;\n padding-right: 0;\n padding-left: 0;\n background: transparent;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-api-key-input > input:hover:not(:disabled) {\n border-bottom-color: var(--xmimo-ui-text-subtle);\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-api-key-input > input:focus-visible {\n border-bottom-color: var(--xmimo-ui-brand);\n outline: none;\n box-shadow: 0 1px 0 var(--xmimo-ui-brand);\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-voice-picker-text-caret {\n flex: none;\n color: var(--xmimo-ui-text-muted);\n font-size: 18px;\n line-height: 1;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-details-body {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n column-gap: 12px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-details-body > :nth-child(n + 3) {\n grid-column: 1 / -1;\n}\n\n.xmimo-tts-card-minimal\n .xmimo-tts-details-body\n > :not(.xmimo-tts-volume):not(.xmimo-tts-doubao-voice):not(.xmimo-tts-speech-instruction)\n > .xmimo-tts-field-heading {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n clip-path: inset(50%);\n white-space: nowrap;\n}\n\n\n\n\n\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-menu,\n.xmimo-tts-card-minimal .xmimo-tts-voice-picker-menu {\n grid-template-columns: repeat(4, minmax(0, 1fr));\n background: none;\n box-shadow: none;\n gap: 6px;\n padding: 6px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-option {\n min-width: 0;\n min-height: 42px;\n padding: 6px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-copy,\n.xmimo-tts-card-minimal .xmimo-tts-voice-option-copy {\n align-items: baseline;\n flex-direction: row;\n gap: 6px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-copy > strong,\n.xmimo-tts-card-minimal .xmimo-tts-voice-option-copy > strong {\n min-width: 0;\n flex: 0 1 auto;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-copy > small,\n.xmimo-tts-card-minimal .xmimo-tts-voice-option-copy > small {\n min-width: 0;\n flex: 1 1 0;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-builtin-voice-option-custom {\n grid-column: auto;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n clip-path: inset(50%);\n}\n\n.xmimo-tts-card-minimal\n .xmimo-tts-api-key-input:focus-within\n + .xmimo-tts-api-key-message {\n position: static;\n width: auto;\n height: auto;\n overflow: visible;\n clip: auto;\n clip-path: none;\n white-space: normal;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-api-key-message.xmimo-tts-api-key-warning {\n position: static;\n width: auto;\n height: auto;\n overflow: visible;\n clip: auto;\n clip-path: none;\n white-space: normal;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-preview-input {\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n.xmimo-tts-card-minimal .xmimo-ui-stack {\n gap: 6px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-preview-input > textarea {\n min-width: 0;\n flex: 1 1 auto;\n}\n\n\n\n\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-body {\n gap: 8px;\n padding: 6px 10px 10px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-grid {\n grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));\n gap: 4px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option {\n min-height: 34px;\n border-radius: 9px;\n padding: 5px 20px 5px 7px;\n font-size: 11px;\n line-height: 16px;\n transition:\n border-color 140ms ease,\n background 140ms ease;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option::before {\n content: none;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option::after {\n right: 5px;\n width: 13px;\n height: 13px;\n font-size: 9px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option:hover:not(:disabled),\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option:active:not(:disabled) {\n transform: none;\n box-shadow: none;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-option-selected {\n box-shadow: none;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-pack-icon {\n width: 16px;\n height: 16px;\n margin-right: 5px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-sound-previews button {\n min-height: 28px;\n padding: 5px;\n}\n\n.xmimo-tts-card-minimal .xmimo-ui-module-padded {\n padding: 8px !important;\n}\n\n.xmimo-tts-card-minimal .xmimo-ui-summary {\n min-height: 28px;\n gap: 4px;\n padding-block: 3px;\n border-radius: 0;\n border: 0;\n border-bottom: 1px solid var(--xmimo-ui-border);\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-grid > * {\n padding-block: 4px;\n}\n\n.xmimo-tts-card-minimal .xmimo-tts-card-actions {\n gap: 6px;\n padding: 0 0 var(--xmimo-ui-space-3);\n}\n\n@media (max-width: 520px) {\n .xmimo-tts-card-minimal .xmimo-tts-switch-row {\n gap: 5px;\n }\n\n .xmimo-tts-card-minimal .xmimo-tts-character-copy strong {\n font-size: 12px;\n }\n}\n\n@media (pointer: coarse) {\n .xmimo-tts-switch-module-minimal .xmimo-tts-minimal-control {\n min-height: 44px;\n }\n}\n";
20984
21656
 
20985
21657
  //#endregion
20986
21658
  //#region src/client/style/history.css?raw
20987
- var history_default = "/* History is a standalone compact page, independent of the settings appearance. */\n.xmimo-tts-history-page {\n display: flex;\n box-sizing: border-box;\n width: 100%;\n min-width: 0;\n max-height: min(80dvh, 760px);\n flex-direction: column;\n overflow: hidden;\n border: 1px solid var(--xmimo-ui-border);\n border-radius: var(--xmimo-ui-module-radius);\n padding: 12px;\n color: var(--xmimo-ui-text);\n background: var(--xmimo-ui-surface);\n font-size: 14px;\n line-height: 1.5;\n}\n\n.xmimo-tts-history-header,\n.xmimo-tts-history-toolbar,\n.xmimo-tts-history-storage,\n.xmimo-tts-history-actions,\n.xmimo-tts-history-player-controls { display: flex; min-width: 0; align-items: center; gap: 8px; }\n.xmimo-tts-history-header { flex: none; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--xmimo-ui-border); }\n.xmimo-tts-history-header h2 { flex: none; margin: 0; font-size: 14px; font-weight: 650; display: flex; align-items: center; gap: 6px; }\n.xmimo-tts-history-count { font-size: 12px; font-weight: 400; color: var(--xmimo-ui-text-muted); flex: none; }\n.xmimo-tts-history-toolbar { flex: 0 1 460px; flex-wrap: wrap; justify-content: flex-end; margin-inline-start: auto; }\n.xmimo-tts-history-search { flex: 1 1 180px; min-width: 0; }\n.xmimo-tts-history-search input { width: 100%; min-width: 0; }\n.xmimo-tts-history-source { display: flex; align-items: center; gap: 6px; font-size: 12px; }\n.xmimo-tts-history-source select { min-width: 0; max-width: 170px; min-height: 32px; border: 1px solid var(--xmimo-ui-border); border-radius: var(--xmimo-ui-control-radius); padding: 4px 8px; color: var(--xmimo-ui-text); background: var(--xmimo-ui-control-surface); font: inherit; }\n.xmimo-tts-history-footer { display: flex; flex: none; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 10px; border-top: 1px solid var(--xmimo-ui-border); padding-top: 10px; }\n.xmimo-tts-history-storage { flex: 1; min-width: 0; color: var(--xmimo-ui-text-muted); font-size: 12px; }\n.xmimo-tts-history-storage > span:first-child { margin-inline-end: 10px; font-weight: 500; }\n.xmimo-tts-history-warning { flex: none; margin: 0 0 8px; color: var(--xmimo-ui-text); background: var(--xmimo-ui-control-surface); border-inline-start: 3px solid var(--xmimo-ui-brand); padding: 6px 8px; font-size: 12px; }\n.xmimo-tts-history-results { flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }\n.xmimo-tts-history-list { list-style: none; margin: 0; padding: 0; }\n.xmimo-tts-history-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 8px; border-top: 1px solid var(--xmimo-ui-border-soft); padding: 5px; }\n.xmimo-tts-history-row-selected { background: var(--xmimo-ui-control-surface); border-inline-start: 2px solid var(--xmimo-ui-brand); padding-inline-start: 2px; }\n.xmimo-tts-history-copy { min-width: 0; }\n.xmimo-tts-history-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; width: 100%; border: 0; padding: 0; overflow: hidden; overflow-wrap: anywhere; text-align: start; color: var(--xmimo-ui-text); background: transparent; font: inherit; font-size: 14px; line-height: 1.5; cursor: pointer; }\n.xmimo-tts-history-text-expanded { display: block; }\n.xmimo-tts-history-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; color: var(--xmimo-ui-text-muted); font-size: 12px; line-height: 1.6; margin: 4px 0 0; }\n.xmimo-tts-history-page .xmimo-tts-history-confirm-delete { color: var(--dsw-alias-state-error-primary, #dc2626); background: color-mix(in srgb, var(--dsw-alias-state-error-primary, #dc2626) 10%, transparent); }\n.xmimo-tts-history-page .xmimo-tts-history-confirm-delete:hover:not(:disabled) { background: color-mix(in srgb, var(--dsw-alias-state-error-primary, #dc2626) 18%, transparent); }\n.xmimo-tts-history-empty { padding: 28px 12px; color: var(--xmimo-ui-text-muted); text-align: center; }\n.xmimo-tts-history-empty-whale { display: block; width: 144px; height: 144px; max-width: 100%; object-fit: contain; margin: 0 auto 12px; }\n.xmimo-tts-history-empty p { margin: 0; }\n.xmimo-tts-history-player { display: flex; flex-direction: column; min-width: 0; margin-top: 4px; gap: 4px; }\n.xmimo-tts-history-page .xmimo-tts-history-player-toggle { display: inline-flex; align-items: center; justify-content: center; flex: none; box-sizing: border-box; width: 32px; height: 32px; min-width: 32px; padding: 0; border: 0; border-radius: 50%; background: var(--xmimo-ui-brand); color: var(--dsw-alias-label-primary-foreground, var(--xmimo-ui-surface)); }\n.xmimo-tts-history-page .xmimo-tts-history-player-toggle:hover:not(:disabled) { background: color-mix(in srgb, var(--xmimo-ui-brand) 88%, var(--xmimo-ui-text)); }\n.xmimo-tts-history-player-controls { gap: 6px; flex: none; width: 100%; }\n.xmimo-tts-history-player-controls input[type='range'] { appearance: none; -webkit-appearance: none; flex: 1 1 auto; min-width: 30px; width: 100%; height: 20px; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }\n.xmimo-tts-history-player-controls input[type='range']::-webkit-slider-runnable-track { height: 3px; border-radius: 8px; background: linear-gradient(to right, var(--xmimo-ui-brand) 0% var(--xmimo-history-progress), var(--xmimo-ui-border) var(--xmimo-history-progress) 100%); }\n.xmimo-tts-history-player-controls input[type='range']::-moz-range-track { height: 3px; border-radius: 8px; background: var(--xmimo-ui-border); }\n.xmimo-tts-history-player-controls input[type='range']::-moz-range-progress { height: 3px; border-radius: 8px; background: var(--xmimo-ui-brand); }\n.xmimo-tts-history-player-controls input[type='range']::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 10px; height: 10px; margin-top: -3.5px; border: 0; border-radius: 50%; background: var(--xmimo-ui-brand); }\n.xmimo-tts-history-player-controls input[type='range']::-moz-range-thumb { width: 10px; height: 10px; border: 0; border-radius: 50%; background: var(--xmimo-ui-brand); }\n.xmimo-tts-history-player-controls input[type='range']:disabled { opacity: 0.5; cursor: default; }\n.xmimo-tts-history-time { flex: none; white-space: nowrap; color: var(--xmimo-ui-text-muted); font-size: 10px; font-variant-numeric: tabular-nums; }\n.xmimo-tts-history-player-error { display: block; margin: 0; font-size: 11px; }\n.xmimo-tts-history-player-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }\n.xmimo-tts-history-page button { min-height: 32px; }\n.xmimo-tts-history-page button:focus-visible,\n.xmimo-tts-history-page select:focus-visible,\n.xmimo-tts-history-page input:focus-visible { outline: var(--xmimo-ui-focus); outline-offset: 2px; }\n.xmimo-tts-history-text:hover { color: var(--xmimo-ui-brand); }\n.xmimo-tts-history-link { color: var(--xmimo-ui-text); }\n\n.xmimo-tts-history-page .xmimo-tts-history-search:focus-within,\n.xmimo-tts-history-page .xmimo-tts-history-search input:focus {\n border-color: var(--dsw-alias-border-l4, var(--xmimo-ui-border));\n outline: none;\n box-shadow: none;\n}\n";
21659
+ var history_default = "/* History is a standalone compact page, independent of the settings appearance. */\n.xmimo-tts-history-page {\n container: xmimo-audio-history / inline-size;\n display: flex;\n box-sizing: border-box;\n width: 100%;\n min-width: 0;\n max-height: min(80dvh, 760px);\n flex-direction: column;\n overflow: hidden;\n border: 1px solid var(--xmimo-ui-border);\n border-radius: var(--xmimo-ui-module-radius);\n padding: 12px;\n color: var(--xmimo-ui-text);\n background: var(--xmimo-ui-surface);\n font-size: 14px;\n line-height: 1.5;\n}\n\n.xmimo-tts-history-header,\n.xmimo-tts-history-toolbar,\n.xmimo-tts-history-storage,\n.xmimo-tts-history-actions,\n.xmimo-tts-history-player-controls { display: flex; min-width: 0; align-items: center; gap: 8px; }\n.xmimo-tts-history-header { flex: none; justify-content: space-between; gap: 8px 12px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--xmimo-ui-border); }\n.xmimo-tts-history-header h2 { flex: none; margin: 0; font-size: 14px; font-weight: 650; display: flex; align-items: center; gap: 6px; }\n.xmimo-tts-history-header .xmimo-tts-history-title-back { display: inline-flex; flex: none; align-items: center; gap: 4px; border: 0; border-radius: 6px; padding: 0 4px 0 0; color: var(--xmimo-ui-brand); background: transparent; font: inherit; cursor: pointer; }\n.xmimo-tts-history-title-back > svg { flex: none; }\n.xmimo-tts-history-title-back:hover { background: var(--xmimo-ui-hover); }\n.xmimo-tts-history-count { font-size: 12px; font-weight: 400; color: var(--xmimo-ui-text-muted); flex: none; }\n.xmimo-tts-history-toolbar { flex: 0 1 460px; justify-content: flex-end; margin-inline-start: auto; }\n.xmimo-tts-history-search { flex: 1 1 150px; min-width: 0; }\n.xmimo-tts-history-search input { width: 100%; min-width: 0; }\n.xmimo-tts-history-source { display: flex; min-width: 0; flex: 0 1 auto; }\n.xmimo-tts-history-source .xmimo-voice-reading-selector { min-width: 0; max-width: 170px; }\n.xmimo-tts-history-page .xmimo-tts-history-action { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; }\n.xmimo-tts-history-action > svg { flex: none; width: 16px; height: 16px; }\n.xmimo-tts-history-footer { display: flex; flex: none; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 10px; border-top: 1px solid var(--xmimo-ui-border); padding-top: 10px; }\n.xmimo-tts-history-storage { flex: 1; min-width: 0; color: var(--xmimo-ui-text-muted); font-size: 12px; }\n.xmimo-tts-history-storage > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-inline-end: 10px; font-weight: 500; }\n.xmimo-tts-history-limit { white-space: nowrap; }\n.xmimo-tts-history-warning { flex: none; margin: 0 0 8px; color: var(--xmimo-ui-text); background: var(--xmimo-ui-control-surface); border-inline-start: 3px solid var(--xmimo-ui-brand); padding: 6px 8px; font-size: 12px; }\n.xmimo-tts-history-results { flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }\n.xmimo-tts-history-list { list-style: none; margin: 0; padding: 0; }\n.xmimo-tts-history-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 8px; border-top: 1px solid var(--xmimo-ui-border-soft); padding: 5px; }\n.xmimo-tts-history-row-selected { background: var(--xmimo-ui-control-surface); border-inline-start: 2px solid var(--xmimo-ui-brand); padding-inline-start: 2px; }\n.xmimo-tts-history-copy { min-width: 0; }\n.xmimo-tts-history-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; width: 100%; border: 0; padding: 0; overflow: hidden; overflow-wrap: anywhere; text-align: start; color: var(--xmimo-ui-text); background: transparent; font: inherit; font-size: 14px; line-height: 1.5; cursor: pointer; }\n.xmimo-tts-history-text-expanded { display: block; }\n.xmimo-tts-history-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; color: var(--xmimo-ui-text-muted); font-size: 12px; line-height: 1.6; margin: 4px 0 0; }\n.xmimo-tts-history-page .xmimo-tts-history-confirm-delete { color: var(--dsw-alias-state-error-primary, #dc2626); background: color-mix(in srgb, var(--dsw-alias-state-error-primary, #dc2626) 10%, transparent); }\n.xmimo-tts-history-page .xmimo-tts-history-confirm-delete:hover:not(:disabled) { background: color-mix(in srgb, var(--dsw-alias-state-error-primary, #dc2626) 18%, transparent); }\n.xmimo-tts-history-empty { padding: 28px 12px; color: var(--xmimo-ui-text-muted); text-align: center; }\n.xmimo-tts-history-empty-whale { display: block; width: 144px; height: 144px; max-width: 100%; object-fit: contain; margin: 0 auto 12px; }\n.xmimo-tts-history-empty p { margin: 0; }\n.xmimo-tts-history-player { display: flex; flex-direction: column; min-width: 0; margin-top: 4px; gap: 4px; }\n.xmimo-tts-history-page .xmimo-tts-history-player-toggle { display: inline-flex; align-items: center; justify-content: center; flex: none; box-sizing: border-box; width: 32px; height: 32px; min-width: 32px; padding: 0; border: 0; border-radius: 50%; background: var(--xmimo-ui-brand); color: var(--dsw-alias-label-primary-foreground, var(--xmimo-ui-surface)); }\n.xmimo-tts-history-page .xmimo-tts-history-player-toggle:hover:not(:disabled) { background: color-mix(in srgb, var(--xmimo-ui-brand) 88%, var(--xmimo-ui-text)); }\n.xmimo-tts-history-player-controls { gap: 6px; flex: none; width: 100%; }\n.xmimo-tts-history-player-controls input[type='range'] { appearance: none; -webkit-appearance: none; flex: 1 1 auto; min-width: 30px; width: 100%; height: 20px; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }\n.xmimo-tts-history-player-controls input[type='range']::-webkit-slider-runnable-track { height: 3px; border-radius: 8px; background: linear-gradient(to right, var(--xmimo-ui-brand) 0% var(--xmimo-history-progress), var(--xmimo-ui-border) var(--xmimo-history-progress) 100%); }\n.xmimo-tts-history-player-controls input[type='range']::-moz-range-track { height: 3px; border-radius: 8px; background: var(--xmimo-ui-border); }\n.xmimo-tts-history-player-controls input[type='range']::-moz-range-progress { height: 3px; border-radius: 8px; background: var(--xmimo-ui-brand); }\n.xmimo-tts-history-player-controls input[type='range']::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 10px; height: 10px; margin-top: -3.5px; border: 0; border-radius: 50%; background: var(--xmimo-ui-brand); }\n.xmimo-tts-history-player-controls input[type='range']::-moz-range-thumb { width: 10px; height: 10px; border: 0; border-radius: 50%; background: var(--xmimo-ui-brand); }\n.xmimo-tts-history-player-controls input[type='range']:disabled { opacity: 0.5; cursor: default; }\n.xmimo-tts-history-time { flex: none; white-space: nowrap; color: var(--xmimo-ui-text-muted); font-size: 10px; font-variant-numeric: tabular-nums; }\n.xmimo-tts-history-player-error { display: block; margin: 0; font-size: 11px; }\n.xmimo-tts-history-player-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }\n.xmimo-tts-history-page button { min-height: 32px; }\n.xmimo-tts-history-page button:focus-visible,\n.xmimo-tts-history-page select:focus-visible,\n.xmimo-tts-history-page input:focus-visible { outline: var(--xmimo-ui-focus); outline-offset: 2px; }\n.xmimo-tts-history-text:hover { color: var(--xmimo-ui-brand); }\n.xmimo-tts-history-link { color: var(--xmimo-ui-text); }\n\n.xmimo-tts-history-page .xmimo-tts-history-search:focus-within,\n.xmimo-tts-history-page .xmimo-tts-history-search input:focus {\n border-color: var(--dsw-alias-border-l4, var(--xmimo-ui-border));\n outline: none;\n box-shadow: none;\n}\n\n@container xmimo-audio-history (max-width: 520px) {\n .xmimo-tts-history-search, .xmimo-tts-history-limit { display: none; }\n .xmimo-tts-history-toolbar { flex: 1 1 auto; }\n .xmimo-tts-history-source .xmimo-voice-reading-selector { max-width: 100%; }\n .xmimo-tts-history-page .xmimo-tts-history-action { width: 44px; min-width: 44px; padding: 0; }\n .xmimo-tts-history-action > span { display: none; }\n .xmimo-tts-history-page button,\n .xmimo-tts-history-page .xmimo-tts-history-back,\n .xmimo-tts-history-search input { min-height: 44px; }\n .xmimo-tts-history-page .xmimo-tts-history-row { grid-template-columns: 44px minmax(0, 1fr) auto; align-items: start; padding-block: 10px; }\n .xmimo-tts-history-page .xmimo-tts-history-player-toggle { width: 44px; height: 44px; min-width: 44px; }\n .xmimo-tts-history-actions { gap: 4px; }\n .xmimo-tts-history-player-controls { flex-wrap: wrap; }\n .xmimo-tts-history-player-controls input[type='range'] { min-height: 44px; }\n .xmimo-tts-history-storage > span:first-child { margin-inline-end: 0; }\n}\n";
20988
21660
 
20989
21661
  //#endregion
20990
21662
  //#region src/client/style/index.ts
@@ -21329,12 +22001,18 @@ function delay(ms, signal) {
21329
22001
  signal.addEventListener("abort", done, { once: true });
21330
22002
  });
21331
22003
  }
22004
+ var PetHttpError = class extends Error {
22005
+ constructor(status) {
22006
+ super(`dsh-pet: HTTP ${status}`);
22007
+ this.status = status;
22008
+ }
22009
+ };
21332
22010
  async function readJson(path, signal) {
21333
22011
  const response = await fetch(hostRoute(path), {
21334
22012
  cache: "no-store",
21335
22013
  signal: AbortSignal.any([signal, AbortSignal.timeout(15e3)])
21336
22014
  });
21337
- if (!response.ok) throw new Error(`dsh-pet: HTTP ${response.status}`);
22015
+ if (!response.ok) throw new PetHttpError(response.status);
21338
22016
  return response.json();
21339
22017
  }
21340
22018
  var DshPetCollector = class {
@@ -21370,8 +22048,9 @@ var DshPetCollector = class {
21370
22048
  });
21371
22049
  }
21372
22050
  if (state.counter === void 0) await delay(1e3, signal);
21373
- } catch {
22051
+ } catch (error) {
21374
22052
  if (signal.aborted) return;
22053
+ if (error instanceof PetHttpError && error.status === 404) return;
21375
22054
  previous = null;
21376
22055
  seen.clear();
21377
22056
  visible = null;
@@ -21573,10 +22252,14 @@ function hostCollector(ctx, id$2, service, observe) {
21573
22252
  };
21574
22253
  }, `xiaomi-mimo-tts: ${id$2}`);
21575
22254
  });
21576
- await new Promise((resolve) => {
22255
+ await new Promise((resolve, reject) => {
21577
22256
  const stop = () => {
21578
22257
  options.signal.removeEventListener("abort", stop);
21579
- fiber.dispose().then(resolve);
22258
+ try {
22259
+ Promise.resolve(fiber.dispose()).then(resolve, reject);
22260
+ } catch (error) {
22261
+ reject(error);
22262
+ }
21580
22263
  };
21581
22264
  options.signal.addEventListener("abort", stop, { once: true });
21582
22265
  if (options.signal.aborted) stop();
@@ -21691,6 +22374,7 @@ const inject = [
21691
22374
  "locale",
21692
22375
  "remote",
21693
22376
  "configForms",
22377
+ "pluginNavigation",
21694
22378
  "sessions"
21695
22379
  ];
21696
22380
  function formatStartupError(error) {
@@ -21936,7 +22620,8 @@ function apply(ctx) {
21936
22620
  label: () => t("settings.voiceReadingNav"),
21937
22621
  inject: () => ({
21938
22622
  scope,
21939
- t
22623
+ t,
22624
+ openPluginSettings: () => ctx.pluginNavigation.openBundle("dsh-xiaomi-tts")
21940
22625
  })
21941
22626
  }, VoiceReadingSection));
21942
22627
  }