From f6c158aa1370786cc66f432a6873b582277c94b4 Mon Sep 17 00:00:00 2001 From: i2cjak Date: Mon, 23 Nov 2026 02:46:31 -0500 Subject: [PATCH 1/6] data/1 sidebar.act: a row's snooze and wake, a project page's visit; the phones' home words sidebar.act takes row-snooze (the row's own value, |1h, tomorrow, 1w or off) and project-page (a visit, so the bench follows a phone). The web's Snooze already sent row-snooze there and was refused. Co-Authored-By: Claude Fable 5.2 --- i18n/en.msg | 13 + i18n/es.msg | 13 + i18n/ja.msg | 13 + .../src/main/java/dev/backplane/mobile/Msg.kt | 1299 +++++++++-------- mobile/ios/Shared/TrCatalog.swift | 16 + native/host/src/data/mod.rs | 14 +- native/host/src/data/tests.rs | 12 +- 7 files changed, 766 insertions(+), 614 deletions(-) diff --git a/i18n/en.msg b/i18n/en.msg index 8256bbfffa..a92ea3ab28 100644 --- a/i18n/en.msg +++ b/i18n/en.msg @@ -4442,6 +4442,19 @@ ios.clone.signin.starting = Starting the sign-in… ios.clone.signin.done = Signed in to GitHub. ios.clone.signin.open = Open the page ios.clone.loading = Reading your repositories… +mobile.tab.inbox = Inbox +mobile.tab.crew = Crew +mobile.tab.bench = Bench +mobile.inbox.clear = All clear +mobile.inbox.clear.note = Nothing needs you and nothing is running. +mobile.inbox.talk.bub = Talk to Bub +mobile.inbox.jump.in = Jump back in +mobile.inbox.open.bench = Open Bench +mobile.badge.pcb = PCB +mobile.pill.waiting = Waiting +mobile.snooze.wakes = Wakes in {time} +mobile.bench.all = All projects +mobile.snooze.for = Snooze for # ---- end ---- # the sidebar's sections (docs/ALWAYS-ON.md section 8): the hub's words, and the window's sidebar.sections.needs = Needs you diff --git a/i18n/es.msg b/i18n/es.msg index 17f392eb0e..b955b8f985 100644 --- a/i18n/es.msg +++ b/i18n/es.msg @@ -4444,6 +4444,19 @@ ios.clone.signin.starting = Iniciando la sesión… ios.clone.signin.done = Sesión iniciada en GitHub. ios.clone.signin.open = Abrir la página ios.clone.loading = Leyendo tus repositorios… +mobile.tab.inbox = Bandeja +mobile.tab.crew = Equipo +mobile.tab.bench = Banco +mobile.inbox.clear = Todo en orden +mobile.inbox.clear.note = Nada te necesita y nada está en marcha. +mobile.inbox.talk.bub = Hablar con Bub +mobile.inbox.jump.in = Volver a entrar +mobile.inbox.open.bench = Abrir el banco +mobile.badge.pcb = PCB +mobile.pill.waiting = En espera +mobile.snooze.wakes = Vuelve en {time} +mobile.bench.all = Todos los proyectos +mobile.snooze.for = Posponer # ---- end ---- # the sidebar's sections (docs/ALWAYS-ON.md section 8): the hub's words, and the window's sidebar.sections.needs = Te necesita diff --git a/i18n/ja.msg b/i18n/ja.msg index cc3c8d3b79..6cf37d7afc 100644 --- a/i18n/ja.msg +++ b/i18n/ja.msg @@ -4465,6 +4465,19 @@ ios.clone.signin.starting = サインインを開始中… ios.clone.signin.done = GitHub にサインインしました。 ios.clone.signin.open = ページを開く ios.clone.loading = リポジトリを読み込み中… +mobile.tab.inbox = 受信トレイ +mobile.tab.crew = クルー +mobile.tab.bench = ベンチ +mobile.inbox.clear = 対応待ちなし +mobile.inbox.clear.note = 対応待ちも実行中のものもありません。 +mobile.inbox.talk.bub = Bubと話す +mobile.inbox.jump.in = 最近開いたプロジェクト +mobile.inbox.open.bench = ベンチを開く +mobile.badge.pcb = PCB +mobile.pill.waiting = 待機中 +mobile.snooze.wakes = {time}後に再開 +mobile.bench.all = すべてのプロジェクト +mobile.snooze.for = スヌーズする期間 # ---- end ---- # the sidebar's sections (docs/ALWAYS-ON.md section 8): the hub's words, and the window's sidebar.sections.needs = 対応が必要 diff --git a/mobile/android/app/src/main/java/dev/backplane/mobile/Msg.kt b/mobile/android/app/src/main/java/dev/backplane/mobile/Msg.kt index 988687be93..497a2276b5 100644 --- a/mobile/android/app/src/main/java/dev/backplane/mobile/Msg.kt +++ b/mobile/android/app/src/main/java/dev/backplane/mobile/Msg.kt @@ -4356,6 +4356,19 @@ object Msg { "ios.clone.signin.done", "ios.clone.signin.open", "ios.clone.loading", + "mobile.tab.inbox", + "mobile.tab.crew", + "mobile.tab.bench", + "mobile.inbox.clear", + "mobile.inbox.clear.note", + "mobile.inbox.talk.bub", + "mobile.inbox.jump.in", + "mobile.inbox.open.bench", + "mobile.badge.pcb", + "mobile.pill.waiting", + "mobile.snooze.wakes", + "mobile.bench.all", + "mobile.snooze.for", "sidebar.sections.needs", "sidebar.sections.pinned", "sidebar.sections.active", @@ -4525,6 +4538,8 @@ object Msg { "gpui.mgmt.bom.shared", "gpui.mgmt.fab.review", "gpui.mgmt.fab.stackup", + ) + private fun keys18(): Array = arrayOf( "gpui.mgmt.fab.proposed", "gpui.mgmt.fab.use", "gpui.keys.mgmt.bom", @@ -4538,8 +4553,6 @@ object Msg { "gpui.mgmt.checks.stale", "gpui.mgmt.checks.liveunsaved", "gpui.mgmt.checks.waiting", - ) - private fun keys18(): Array = arrayOf( "gpui.mgmt.checks.failed", "gpui.mgmt.checks.all", "gpui.mgmt.checks.errors", @@ -4777,6 +4790,8 @@ object Msg { "web.clone.signin.done", "web.clone.copied", "web.clone.change.folder", + ) + private fun keys19(): Array = arrayOf( "web.clone.folder.name", "web.clone.start.thread", "web.clone.first", @@ -4790,8 +4805,6 @@ object Msg { "web.clone.open.thread", "web.clone.open.project", "web.clone.add.dir", - ) - private fun keys19(): Array = arrayOf( "web.clone.use.dir", "web.clone.up", "web.clone.loading", @@ -9303,6 +9316,19 @@ object Msg { "Signed in to GitHub.", "Open the page", "Reading your repositories…", + "Inbox", + "Crew", + "Bench", + "All clear", + "Nothing needs you and nothing is running.", + "Talk to Bub", + "Jump back in", + "Open Bench", + "PCB", + "Waiting", + "Wakes in {time}", + "All projects", + "Snooze for", "Needs you", "Pinned", "Active", @@ -9472,6 +9498,8 @@ object Msg { "Its sheet is used more than once and KiCad keeps one value for all of them: {others} has it too.", "Review: {must} must · {should} should · {notes} notes", "stackup {id}, 50 Ω outer line {w} mm", + ) + private fun en18(): Array = arrayOf( "Proposed:", "Use", "BOM panel beside the design: open or close", @@ -9485,8 +9513,6 @@ object Msg { "changed since", "live, unsaved", "waiting: {why}", - ) - private fun en18(): Array = arrayOf( "failed: {why}", "All", "Errors", @@ -9724,6 +9750,8 @@ object Msg { "Signed in to GitHub", "Copied", "Change folder", + ) + private fun en19(): Array = arrayOf( "Folder name", "Start a thread", "First message: {text}", @@ -9737,8 +9765,6 @@ object Msg { "Open the thread", "Open the project", "Add {dir}", - ) - private fun en19(): Array = arrayOf( "Use {dir}", "Up", "Loading…", @@ -14250,6 +14276,19 @@ object Msg { "GitHub にサインインしました。", "ページを開く", "リポジトリを読み込み中…", + "受信トレイ", + "クルー", + "ベンチ", + "対応待ちなし", + "対応待ちも実行中のものもありません。", + "Bubと話す", + "最近開いたプロジェクト", + "ベンチを開く", + "PCB", + "待機中", + "{time}後に再開", + "すべてのプロジェクト", + "スヌーズする期間", "対応が必要", "ピン留め", "進行中", @@ -14419,6 +14458,8 @@ object Msg { "このシートは複数回使われており、KiCadはすべてに同じ値を持たせます:{others}にも同じ値が入りました。", "レビュー:必須{must}・推奨{should}・メモ{notes}", "層構成 {id}、外層50 Ωの線幅 {w} mm", + ) + private fun ja18(): Array = arrayOf( "提案:", "使う", "設計の横のBOMパネルを開く・閉じる", @@ -14432,8 +14473,6 @@ object Msg { "その後に変更あり", "未保存の編集を含む", "待機中: {why}", - ) - private fun ja18(): Array = arrayOf( "失敗: {why}", "すべて", "エラー", @@ -14671,6 +14710,8 @@ object Msg { "GitHub にサインインしました", "コピーしました", "フォルダを変更", + ) + private fun ja19(): Array = arrayOf( "フォルダ名", "スレッドを開始", "最初のメッセージ: {text}", @@ -14684,8 +14725,6 @@ object Msg { "スレッドを開く", "プロジェクトを開く", "{dir} を追加", - ) - private fun ja19(): Array = arrayOf( "{dir} を使う", "上へ", "読み込み中…", @@ -19197,6 +19236,19 @@ object Msg { "Sesión iniciada en GitHub.", "Abrir la página", "Leyendo tus repositorios…", + "Bandeja", + "Equipo", + "Banco", + "Todo en orden", + "Nada te necesita y nada está en marcha.", + "Hablar con Bub", + "Volver a entrar", + "Abrir el banco", + "PCB", + "En espera", + "Vuelve en {time}", + "Todos los proyectos", + "Posponer", "Te necesita", "Fijados", "Activos", @@ -19366,6 +19418,8 @@ object Msg { "Su hoja se usa más de una vez y KiCad guarda un solo valor para todas: {others} también lo tiene.", "Revisión: {must} obligatorias · {should} recomendadas · {notes} notas", "apilado {id}, línea externa 50 Ω {w} mm", + ) + private fun es18(): Array = arrayOf( "Propuesto:", "Usar", "Panel BOM junto al diseño: abrir o cerrar", @@ -19379,8 +19433,6 @@ object Msg { "cambiado desde entonces", "en vivo, sin guardar", "esperando: {why}", - ) - private fun es18(): Array = arrayOf( "falló: {why}", "Todas", "Errores", @@ -19618,6 +19670,8 @@ object Msg { "Sesión iniciada en GitHub", "Copiado", "Cambiar carpeta", + ) + private fun es19(): Array = arrayOf( "Nombre de la carpeta", "Empezar un hilo", "Primer mensaje: {text}", @@ -19631,8 +19685,6 @@ object Msg { "Abrir el hilo", "Abrir el proyecto", "Añadir {dir}", - ) - private fun es19(): Array = arrayOf( "Usar {dir}", "Subir", "Cargando…", @@ -22741,6 +22793,18 @@ object Msg { "Codex CLI login", "Fable weekly", "That folder is a clone of it already: it is added as it is.", + "Inbox", + "Crew", + "Bench", + "All clear", + "Nothing needs you and nothing is running.", + "Talk to Bub", + "Jump back in", + "Open Bench", + "PCB", + "Waiting", + "All projects", + "Snooze for", "Quiet", "Nothing for two weeks", "Recent", @@ -22802,6 +22866,8 @@ object Msg { "Close the panel", "from the saved schematic", "Reading the schematic…", + ) + private fun exactText12(): Array = arrayOf( "No line matches the filter.", "no MPN", "Filter", @@ -22814,8 +22880,6 @@ object Msg { "The fab's limits are not in the DRC rules", "Write", "No KiCad project for DRC rules", - ) - private fun exactText12(): Array = arrayOf( "costs-more limits", "base-price limits", "Reading the fab's profile…", @@ -23054,6 +23118,8 @@ object Msg { "Footprint Editor", "Symbol Editor", "Starting GitHub sign-in…", + ) + private fun exactText13(): Array = arrayOf( "Enter this code on GitHub:", "Signed in to GitHub", "Already cloned there: it is added as it is.", @@ -23066,8 +23132,6 @@ object Msg { "Return to the viewer to add a tile beside this one.", "Close the other tiles to open Simulation in KiCad.", "Add beside…", - ) - private fun exactText13(): Array = arrayOf( "Add on the left", "Add on the right", "Add above", @@ -23186,9 +23250,9 @@ object Msg { "Connect a provider in the Backplane desktop or mobile app under Settings → Accounts.", ) internal val exactText: Array by lazy { arrayOf(*exactText0(), *exactText1(), *exactText2(), *exactText3(), *exactText4(), *exactText5(), *exactText6(), *exactText7(), *exactText8(), *exactText9(), *exactText10(), *exactText11(), *exactText12(), *exactText13()) } - internal val exactKey: IntArray by lazy { intArrayOf(0, 1, 2, 3, 4, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 3152, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 43, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 3720, 61, 62, 63, 64, 66, 68, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 84, 85, 3759, 87, 88, 98, 99, 3081, 3758, 102, 103, 105, 106, 107, 109, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 155, 156, 157, 159, 161, 162, 163, 3201, 165, 166, 3203, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 3162, 183, 187, 189, 193, 194, 195, 197, 198, 199, 200, 201, 202, 206, 209, 213, 215, 216, 217, 219, 220, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 234, 235, 2968, 237, 238, 239, 240, 3719, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 260, 262, 263, 264, 265, 266, 267, 270, 271, 272, 273, 275, 279, 280, 281, 282, 286, 287, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 300, 301, 3173, 305, 306, 307, 308, 309, 310, 311, 313, 314, 315, 317, 319, 333, 3767, 336, 3766, 3769, 340, 3779, 342, 343, 344, 345, 354, 3150, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 2971, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 2963, 2964, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 453, 454, 455, 3180, 457, 458, 459, 460, 461, 2953, 463, 464, 465, 3083, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 556, 557, 558, 559, 560, 561, 562, 563, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 592, 628, 629, 630, 3188, 3189, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 651, 652, 3832, 654, 656, 657, 659, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 680, 681, 682, 683, 684, 686, 687, 689, 690, 692, 693, 694, 695, 698, 704, 724, 728, 729, 730, 731, 732, 3764, 734, 735, 736, 737, 3187, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 3747, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 843, 844, 845, 847, 848, 3183, 850, 852, 853, 854, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 3757, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 3834, 903, 904, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 3153, 964, 965, 966, 967, 968, 969, 3782, 971, 3008, 3065, 974, 975, 976, 978, 979, 987, 988, 989, 991, 992, 993, 995, 996, 997, 998, 999, 1000, 1001, 1002, 1003, 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1013, 1014, 1015, 1016, 1017, 1018, 3785, 1020, 1021, 1022, 1025, 1029, 1030, 1031, 2960, 3034, 1034, 1035, 1036, 1037, 1038, 1039, 1040, 1041, 1042, 1043, 1045, 1046, 1049, 1050, 1051, 1052, 1053, 1054, 1055, 1056, 1057, 1058, 1059, 1060, 1061, 1062, 1063, 1064, 1065, 1066, 1067, 1068, 1069, 1070, 1071, 1072, 1074, 1082, 1083, 1086, 1087, 1088, 1090, 1091, 1092, 3799, 1094, 1095, 1098, 1099, 1100, 3182, 1102, 1103, 1104, 1105, 1106, 1107, 1108, 1110, 1111, 1112, 1113, 1114, 1115, 1116, 3784, 1120, 1123, 1124, 1125, 1127, 1128, 1129, 1130, 1131, 1132, 1133, 1134, 1135, 1136, 1137, 1138, 1139, 1140, 1141, 1142, 1143, 1144, 1145, 1146, 1150, 1151, 1152, 1153, 1154, 1155, 1158, 1162, 1163, 1165, 1170, 1171, 1172, 1173, 1176, 1178, 1180, 1181, 1182, 1184, 1185, 1186, 1187, 1188, 1189, 1190, 1191, 1192, 1193, 1194, 1195, 1197, 1198, 1199, 1200, 1201, 1202, 1203, 1206, 1207, 1208, 1209, 1210, 1211, 1212, 1213, 1214, 1215, 1216, 1217, 1218, 1220, 1222, 1223, 2962, 1225, 1226, 1227, 1228, 1229, 1230, 1231, 1232, 1233, 1234, 1235, 1236, 1237, 1240, 1241, 1244, 1245, 1246, 1247, 1248, 1250, 1253, 1254, 1255, 1256, 1257, 1258, 1260, 1261, 1262, 1263, 1264, 1265, 1266, 1267, 1269, 1270, 1271, 1272, 1273, 1274, 1275, 1277, 1278, 1279, 1280, 1281, 1288, 1289, 1290, 1291, 1294, 1296, 1297, 1298, 1299, 1301, 1305, 1306, 1308, 1309, 1310, 1311, 1315, 1316, 1318, 1319, 1320, 1322, 1323, 1324, 1325, 1326, 1327, 1328, 1329, 1330, 1335, 1338, 1339, 1340, 1341, 1344, 1347, 1348, 1356, 1357, 3497, 1361, 1362, 1363, 1364, 1365, 1366, 3564, 1373, 1375, 1380, 1384, 1385, 3038, 1387, 1388, 1389, 1390, 1391, 1392, 1393, 1394, 1395, 1396, 1397, 1398, 1399, 1400, 1401, 1402, 1403, 1404, 1405, 1406, 1407, 1408, 1409, 1410, 1411, 1412, 2965, 1417, 1418, 1419, 1420, 1421, 1422, 1423, 1424, 1425, 1426, 1427, 1428, 1429, 1430, 1431, 1432, 1433, 3082, 3575, 1436, 1438, 1439, 1440, 1441, 1442, 1443, 1444, 1445, 1446, 1447, 1448, 1449, 1450, 1451, 1452, 1453, 1454, 1455, 1456, 1457, 1458, 1459, 1460, 1461, 1462, 1463, 1464, 1465, 1466, 1467, 1468, 1469, 3577, 1473, 1474, 1475, 1477, 1478, 1479, 1480, 1481, 1482, 1483, 1484, 1485, 1486, 1487, 1488, 1489, 1490, 1493, 1494, 3722, 1496, 1497, 1498, 3734, 3740, 1501, 1502, 1503, 1504, 1505, 1507, 1508, 1509, 1510, 1511, 1512, 1513, 1514, 1515, 1516, 1523, 1525, 1526, 1527, 1528, 1529, 1530, 1531, 1532, 1533, 1534, 1535, 1536, 1537, 1538, 1539, 1540, 1541, 1542, 1543, 1544, 1545, 1546, 1547, 1548, 1549, 1550, 1551, 1552, 1553, 1554, 1555, 1556, 1557, 1558, 1559, 1560, 1561, 1562, 1563, 1564, 1565, 1566, 1568, 1569, 1570, 1571, 1573, 1574, 1575, 1576, 1577, 1580, 1581, 1582, 1583, 1584, 1585, 1586, 1587, 1589, 1590, 1591, 1592, 1593, 1594, 1595, 1596, 1597, 1598, 1599, 1600, 1601, 1602, 1603, 1604, 1605, 1606, 1607, 1608, 1609, 1610, 1611, 1612, 1613, 1614, 1615, 1616, 1617, 1618, 1619, 1620, 1622, 1623, 1624, 1625, 1626, 1627, 1628, 1629, 3041, 1631, 1632, 1633, 1634, 1635, 1636, 1637, 1638, 1639, 1640, 1641, 1642, 1643, 1645, 1646, 1647, 1648, 1649, 1650, 1651, 1656, 1657, 1658, 1659, 1660, 1661, 1662, 1663, 3451, 1665, 1666, 1667, 1668, 3452, 1670, 1671, 1672, 1673, 1674, 1675, 1676, 1677, 1678, 1679, 1680, 1681, 2974, 1687, 1689, 1691, 1693, 1697, 1701, 1707, 1709, 1710, 1711, 1713, 1714, 1715, 1716, 1717, 1718, 1720, 1722, 1723, 1724, 1725, 1726, 1728, 1729, 3746, 1731, 1732, 1733, 1734, 1735, 1736, 1737, 1739, 1740, 1742, 1743, 1744, 1745, 1746, 1747, 1748, 1749, 1750, 1751, 1752, 1753, 1754, 1755, 1756, 1757, 1760, 1761, 1762, 1763, 1764, 1765, 1766, 1767, 1768, 1769, 1770, 1771, 1772, 1773, 1774, 1775, 1776, 1777, 1778, 1779, 1780, 1781, 1782, 1783, 1784, 1785, 1786, 1787, 1788, 1789, 1790, 1791, 1792, 1793, 1794, 1795, 1796, 1797, 1798, 1799, 1800, 1801, 1802, 1803, 1804, 1805, 1806, 1807, 1808, 1809, 1810, 1811, 1812, 1813, 1814, 1815, 1816, 1817, 1818, 1819, 1821, 1822, 3017, 1831, 1833, 1837, 2999, 1839, 1840, 3000, 1842, 1843, 1847, 3064, 1849, 1850, 1851, 1852, 1853, 1854, 1855, 1856, 1857, 1859, 1864, 1866, 1867, 1868, 1869, 1870, 1871, 3079, 1873, 1874, 1877, 1878, 1888, 1889, 1893, 1894, 1895, 1896, 1897, 1898, 1899, 1900, 1902, 1903, 1904, 1905, 1906, 1907, 1908, 1909, 1910, 1911, 1912, 1913, 1914, 1915, 1916, 1917, 1922, 1923, 1924, 1925, 1926, 1927, 1928, 1929, 1930, 1931, 1932, 1933, 1934, 1935, 1937, 1938, 1940, 1941, 1951, 1953, 1954, 1957, 1958, 1961, 1962, 1963, 1965, 1966, 1967, 1968, 1969, 1970, 1971, 1972, 1973, 1974, 1975, 1976, 1977, 1978, 1979, 1980, 1981, 1983, 1989, 1990, 1991, 1992, 1996, 3140, 2002, 2003, 2005, 2006, 2007, 2008, 3792, 3793, 2017, 2019, 2020, 2021, 2023, 2024, 2025, 2026, 2027, 2028, 2029, 2030, 2031, 2034, 2035, 2037, 2038, 2041, 2042, 3125, 3126, 3127, 2050, 3353, 2052, 2054, 2055, 2056, 2057, 2058, 2059, 2060, 2061, 2062, 2063, 2064, 2065, 2066, 2069, 2070, 2071, 2072, 2073, 2074, 2078, 2079, 2080, 2081, 2082, 2083, 2084, 2085, 2086, 2087, 2088, 2089, 2090, 2091, 2092, 2093, 2094, 2095, 2097, 2098, 2099, 2100, 2101, 2102, 2103, 2104, 2105, 2107, 2113, 2114, 2115, 2116, 2117, 2118, 2119, 2120, 3067, 2125, 2126, 2127, 2129, 2131, 2132, 2133, 2134, 2990, 3115, 3116, 3117, 3118, 3119, 2141, 2142, 2143, 2145, 2992, 2993, 2983, 2982, 2151, 2984, 2153, 2988, 2155, 3351, 2160, 2164, 2166, 2167, 2168, 2169, 2170, 2171, 2172, 2173, 2174, 2175, 2176, 3018, 2180, 2181, 2182, 2183, 3051, 2185, 2186, 2187, 2188, 2189, 2190, 2191, 2192, 2193, 2196, 3364, 2198, 2199, 2200, 2201, 3033, 2203, 2204, 2205, 2206, 2981, 2208, 3096, 2211, 2215, 2216, 3641, 2218, 2219, 3728, 3729, 2223, 3178, 2226, 3717, 2229, 2230, 2231, 2232, 2233, 3777, 2235, 3148, 2237, 3147, 2239, 2241, 2243, 2244, 2245, 2249, 2252, 2254, 2256, 2257, 2258, 2259, 2260, 2261, 2262, 2263, 2264, 2265, 2266, 2268, 2269, 2270, 3735, 2272, 2273, 2275, 3025, 3023, 3027, 2281, 2283, 2284, 2290, 2291, 2292, 2293, 3063, 2298, 2299, 2301, 2306, 2307, 3007, 3576, 2970, 2969, 2972, 3092, 3095, 2320, 2321, 2323, 2324, 2326, 2327, 2328, 2329, 2330, 2331, 2332, 2333, 2334, 3796, 2338, 2339, 2340, 2341, 2342, 2343, 2344, 2345, 2346, 2347, 2348, 2349, 2350, 2351, 2352, 2357, 2359, 2360, 2361, 2365, 2366, 2369, 2370, 2377, 2378, 2379, 2380, 2381, 2382, 2383, 2384, 2385, 2386, 2387, 2388, 2389, 2391, 2392, 2393, 2394, 2395, 2396, 2418, 2419, 2422, 2423, 2424, 2425, 2426, 2427, 2428, 2438, 2442, 2443, 2444, 2445, 2446, 2447, 2448, 2449, 2450, 2452, 2453, 2454, 2455, 2457, 2458, 2459, 2461, 2464, 2465, 2466, 2469, 2470, 2471, 2472, 2473, 2474, 2475, 2476, 2482, 2483, 2484, 2485, 2486, 2487, 2488, 2489, 2490, 2491, 2492, 2493, 2494, 2495, 2496, 2497, 2498, 2499, 2500, 2501, 2502, 2503, 2504, 2506, 2507, 2508, 2509, 2510, 2511, 2512, 2513, 2514, 2515, 2516, 2517, 2518, 2519, 2520, 2521, 2522, 2523, 2524, 2525, 2526, 2527, 2529, 2530, 2531, 2532, 3129, 2534, 2536, 2537, 2539, 2540, 2541, 2542, 2543, 2544, 2545, 2548, 2549, 2550, 2551, 2554, 2555, 2556, 2557, 2558, 2559, 2560, 2561, 2562, 2570, 2571, 2572, 2573, 2576, 2577, 2578, 2579, 2580, 2581, 2582, 2583, 2584, 2586, 2587, 2588, 2589, 2590, 2591, 2592, 2593, 2594, 2597, 2599, 2600, 2603, 2604, 2605, 2606, 2607, 2608, 2609, 2610, 2611, 2613, 2614, 2616, 2617, 2618, 2619, 2620, 2621, 2622, 2623, 2624, 2625, 2626, 2628, 2630, 2633, 2635, 3725, 2640, 2641, 2642, 2643, 2644, 2645, 2646, 2650, 2651, 2653, 2654, 2655, 2656, 2657, 2658, 2659, 2661, 2662, 2663, 2668, 2669, 2670, 2672, 2673, 2674, 2675, 2677, 2678, 2679, 2680, 2681, 2682, 2683, 2684, 2685, 2686, 2687, 2688, 2689, 3698, 2691, 2692, 2694, 3695, 2696, 2697, 3699, 3696, 2709, 2713, 3706, 3202, 3707, 2717, 3708, 2719, 2721, 3710, 2723, 3711, 2725, 2727, 3715, 3693, 3686, 3694, 2746, 2747, 2749, 2750, 2760, 2761, 2763, 2764, 2765, 2766, 2767, 2768, 2769, 2770, 2771, 2775, 2778, 2781, 2783, 2785, 2791, 2792, 2793, 2794, 2795, 2796, 2797, 2798, 2799, 2800, 2801, 2802, 2803, 3373, 2805, 2806, 2807, 2808, 2809, 2811, 2813, 2814, 3405, 2820, 2821, 2822, 2823, 2824, 2825, 2826, 2827, 2828, 2829, 2830, 2831, 2833, 2834, 2835, 2836, 2839, 2840, 2842, 2843, 2844, 2845, 2997, 2847, 2849, 2850, 2852, 2853, 2854, 2855, 2856, 2858, 2859, 2863, 2866, 2867, 2868, 2870, 2871, 2872, 2874, 2875, 2876, 2877, 2879, 2880, 2883, 2886, 2887, 2888, 2889, 2890, 2892, 2894, 2895, 2897, 2898, 2899, 2900, 2901, 2902, 2903, 2904, 2906, 2907, 2908, 2909, 2910, 2911, 2912, 2913, 2914, 2915, 2916, 2917, 2918, 2919, 2920, 2921, 2922, 2923, 2924, 2925, 2931, 2932, 2933, 2935, 2936, 2937, 2941, 2942, 2943, 2944, 2945, 2949, 2950, 2954, 2955, 2956, 2957, 2958, 2959, 2961, 2966, 2967, 2973, 2978, 2980, 2985, 2986, 2987, 2989, 2991, 2994, 2995, 2996, 2998, 3002, 3009, 3010, 3011, 3012, 3013, 3014, 3015, 3016, 3019, 3020, 3021, 3022, 3026, 3028, 3029, 3030, 3031, 3035, 3036, 3040, 3042, 3043, 3044, 3046, 3047, 3048, 3049, 3050, 3053, 3054, 3055, 3056, 3057, 3058, 3059, 3060, 3061, 3068, 3069, 3070, 3071, 3076, 3077, 3078, 3080, 3084, 3085, 3086, 3087, 3088, 3091, 3093, 3094, 3097, 3098, 3099, 3100, 3101, 3102, 3103, 3104, 3105, 3107, 3109, 3110, 3111, 3112, 3113, 3114, 3120, 3121, 3122, 3123, 3124, 3128, 3130, 3131, 3132, 3133, 3134, 3135, 3136, 3138, 3139, 3142, 3144, 3145, 3146, 3149, 3154, 3155, 3156, 3158, 3161, 3163, 3164, 3166, 3167, 3168, 3170, 3171, 3172, 3174, 3175, 3176, 3177, 3181, 3186, 3191, 3192, 3193, 3194, 3195, 3196, 3197, 3199, 3204, 3205, 3206, 3207, 3208, 3209, 3210, 3211, 3212, 3213, 3214, 3215, 3216, 3219, 3220, 3223, 3224, 3225, 3226, 3227, 3228, 3229, 3230, 3233, 3234, 3235, 3236, 3237, 3238, 3239, 3240, 3241, 3242, 3243, 3246, 3247, 3249, 3250, 3251, 3252, 3253, 3254, 3255, 3256, 3257, 3258, 3259, 3260, 3261, 3262, 3263, 3264, 3265, 3266, 3267, 3268, 3269, 3270, 3271, 3272, 3273, 3274, 3275, 3278, 3279, 3280, 3281, 3282, 3283, 3284, 3285, 3286, 3287, 3289, 3290, 3291, 3292, 3293, 3294, 3295, 3296, 3297, 3298, 3299, 3300, 3301, 3302, 3303, 3304, 3305, 3306, 3307, 3308, 3309, 3310, 3311, 3312, 3313, 3314, 3315, 3316, 3317, 3318, 3319, 3320, 3321, 3324, 3325, 3326, 3327, 3328, 3329, 3330, 3331, 3332, 3333, 3334, 3335, 3336, 3337, 3338, 3339, 3340, 3341, 3342, 3343, 3344, 3345, 3347, 3348, 3352, 3354, 3355, 3356, 3358, 3359, 3360, 3363, 3365, 3366, 3367, 3368, 3369, 3372, 3374, 3377, 3379, 3380, 3385, 3386, 3387, 3388, 3391, 3398, 3399, 3400, 3401, 3402, 3403, 3406, 3407, 3408, 3409, 3412, 3413, 3414, 3415, 3416, 3417, 3418, 3419, 3420, 3421, 3423, 3424, 3425, 3426, 3427, 3428, 3430, 3431, 3433, 3434, 3435, 3436, 3437, 3443, 3444, 3445, 3446, 3447, 3448, 3449, 3450, 3453, 3456, 3459, 3460, 3461, 3462, 3463, 3464, 3465, 3466, 3467, 3468, 3469, 3470, 3471, 3472, 3473, 3474, 3475, 3476, 3477, 3479, 3480, 3481, 3482, 3483, 3484, 3485, 3487, 3488, 3489, 3490, 3491, 3492, 3493, 3494, 3496, 3501, 3507, 3509, 3510, 3511, 3512, 3513, 3514, 3515, 3516, 3517, 3518, 3519, 3520, 3521, 3522, 3523, 3525, 3526, 3527, 3528, 3529, 3530, 3534, 3535, 3539, 3540, 3546, 3547, 3548, 3549, 3550, 3551, 3552, 3553, 3554, 3556, 3557, 3558, 3559, 3562, 3563, 3565, 3566, 3578, 3579, 3580, 3581, 3582, 3583, 3584, 3585, 3586, 3587, 3588, 3589, 3590, 3591, 3592, 3593, 3594, 3595, 3597, 3598, 3599, 3603, 3604, 3605, 3606, 3612, 3613, 3614, 3615, 3619, 3621, 3622, 3623, 3625, 3628, 3629, 3633, 3640, 3642, 3645, 3647, 3648, 3649, 3650, 3651, 3652, 3654, 3655, 3656, 3657, 3658, 3659, 3660, 3661, 3662, 3663, 3664, 3665, 3666, 3667, 3668, 3669, 3670, 3671, 3672, 3673, 3674, 3675, 3676, 3677, 3678, 3679, 3680, 3681, 3682, 3683, 3684, 3685, 3703, 3718, 3721, 3723, 3724, 3726, 3730, 3732, 3736, 3745, 3748, 3749, 3750, 3751, 3752, 3753, 3755, 3761, 3762, 3765, 3768, 3770, 3771, 3772, 3773, 3774, 3775, 3778, 3781, 3783, 3787, 3788, 3789, 3790, 3791, 3794, 3795, 3797, 3798, 3800, 3801, 3802, 3803, 3804, 3805, 3806, 3807, 3809, 3810, 3811, 3812, 3813, 3814, 3815, 3816, 3817, 3818, 3819, 3820, 3821, 3822, 3823, 3824, 3825, 3826, 3829, 3831, 3833, 3842, 3843, 3845, 3846, 3855, 3861, 3867, 3876, 3878, 3879, 3880, 3881, 3884, 3885, 3887, 3893, 3897, 3901, 3906, 3907, 3909, 3910, 3911, 3913, 3914, 3915, 3920, 3921, 3922, 3923, 3924, 3925, 3926, 3927, 3928, 3931, 3932, 3933, 3978, 3979, 3984, 3986, 3987, 3989, 3995, 3998, 4013, 4014, 4015, 4016, 4017, 4018, 4020, 4021, 4023, 4024, 4026, 4028, 4029, 4042, 4045, 4046, 4048, 4049, 4053, 4058, 4061, 4062, 4064, 4065, 4071, 4073, 4074, 4077, 4079, 4084, 4085, 4086, 4091, 4102, 4125, 4141, 4149, 4158, 4159, 4163, 4168, 4184, 4185, 4186, 4187, 4189, 4191, 4192, 4194, 4197, 4201, 4204, 4207, 4208, 4209, 4210, 4214, 4215, 4216, 4217, 4220, 4221, 4222, 4223, 4224, 4225, 4226, 4227, 4228, 4229, 4230, 4231, 4232, 4233, 4234, 4235, 4236, 4237, 4238, 4239, 4240, 4241, 4242, 4243, 4251, 4254, 4255, 4261, 4266, 4267, 4268, 4269, 4273, 4277, 4279, 4280, 4281, 4282, 4283, 4284, 4285, 4286, 4288, 4289, 4290, 4291, 4293, 4294, 4295, 4296, 4297, 4298, 4299, 4309, 4321, 4322, 4324, 4325, 4326, 4327, 4331, 4332, 4333, 4334, 4335, 4336, 4338, 4339, 4340, 4346, 4347, 4348, 4349, 4350, 4351, 4355, 4359, 4360, 4362, 4363, 4364, 4365, 4366, 4368, 4378, 4380, 4385, 4386, 4387, 4388, 4389, 4390, 4391, 4392, 4393, 4394, 4395, 4396, 4397, 4398, 4399, 4400, 4402, 4403, 4404, 4405, 4406, 4407, 4408, 4413, 4416, 4417, 4418, 4419, 4420, 4421, 4422, 4423, 4424, 4425, 4426, 4427, 4428, 4429, 4430, 4431, 4432, 4433, 4434, 4435, 4436, 4438, 4439, 4440, 4442, 4443, 4444, 4445, 4448, 4449, 4450, 4452, 4453, 4454, 4456, 4457, 4458, 4459, 4460, 4461, 4463, 4465, 4468, 4469, 4470, 4471, 4473, 4474, 4475, 4476, 4477, 4478, 4479, 4480, 4481, 4482, 4483, 4487, 4489, 4490, 4491, 4492, 4493, 4497, 4498, 4502, 4503, 4504, 4506, 4508, 4509, 4510, 4511, 4512, 4513, 4514, 4516, 4517, 4518, 4519, 4520, 4521, 4522, 4529, 4530, 4531, 4532, 4533, 4534, 4535, 4536, 4537, 4538, 4539, 4540, 4546, 4547, 4549, 4550, 4551, 4552, 4553, 4554, 4555, 4556, 4557, 4558, 4559, 4560, 4561, 4562, 4563, 4564, 4568, 4569, 4570, 4571, 4572, 4573, 4574, 4575, 4576, 4581, 4582, 4585, 4586, 4587, 4588, 4589, 4590, 4591, 4592, 4593, 4594, 4595, 4596, 4597, 4598, 4600, 4601, 4602, 4603, 4612, 4613, 4614, 4615, 4616, 4617, 4619, 4622, 4623, 4624, 4626, 4627, 4628, 4629, 4630, 4631, 4632, 4633, 4634, 4635, 4636, 4637, 4638, 4639, 4640, 4641, 4642, 4643, 4644, 4645, 4646, 4647, 4648, 4649, 4650, 4651, 4652, 4653, 4654, 4655, 4656, 4657, 4658, 4659, 4660, 4661, 4662, 4663, 4664, 4665, 4666, 4667, 4668, 4669, 4670, 4671, 4672, 4673, 4674, 4675, 4676, 4677, 4678, 4679, 4680, 4681, 4682, 4683, 4684, 4685, 4686, 4687, 4688, 4689, 4690, 4691, 4692, 4693, 4694, 4695, 4696, 4697, 4698, 4699, 4700, 4701, 4702, 4703, 4704, 4705, 4706, 4707, 4708, 4709, 4710, 4711, 4712, 4713, 4714, 4715, 4716, 4717, 4718, 4719, 4720, 4721, 4722, 4723, 4724, 4725, 4726, 4727, 4732, 4733, 4734, 4740, 4753, 4757, 4758, 4759, 4760, 4761, 4762, 4763, 4764, 4765, 4766, 4767, 4768, 4769, 4770, 4771, 4772, 4774, 4775, 4776, 4777, 4778, 4780, 4781, 4782, 4783, 4784, 4785, 4786, 4789, 4790, 4792, 4793, 4794, 4797, 4798, 4799, 4800, 4801, 4802, 4803, 4804, 4805, 4806, 4807, 4808, 4809, 4810, 4811, 4812, 4813, 4814, 4815, 4816, 4817, 4818, 4819, 4820, 4821, 4822, 4823, 4825, 4826, 4827, 4828, 4829, 4830, 4831, 4832, 4833, 4834, 4835, 4836, 4837, 4838, 4839, 4840, 4841, 4842, 4843, 4844, 4845, 4846, 4847, 4848, 4849, 4850, 4851, 4852, 4853, 4854, 4855, 4856, 4858, 4859, 4860, 4862, 4864, 4866, 4867, 4868, 4869, 4872, 4874, 4875, 4876, 4877, 4879, 4880, 4881, 4882, 4883, 4884, 4885, 4886, 4889, 4893, 4894, 4898, 4899, 4900, 4901, 4902, 4904, 4905) } - internal val templates: IntArray by lazy { intArrayOf(2358, 2837, 2649, 2648, 2647, 2869, 2891, 3371, 2612, 418, 2782, 2780, 2676, 2367, 2373, 2784, 2881, 2596, 2595, 285, 2325, 2786, 2893, 3221, 4173, 2535, 4903, 2585, 2045, 2363, 3705, 2110, 2712, 2368, 3222, 1336, 4193, 4213, 3704, 2553, 2710, 1862, 4188, 2121, 2159, 2165, 4542, 283, 2111, 4484, 3383, 3404, 2068, 2336, 3701, 452, 2744, 2776, 2777, 3384, 3700, 2745, 3632, 609, 1706, 3709, 1863, 2720, 3712, 2726, 3375, 616, 617, 2762, 3073, 3687, 1654, 2779, 3631, 303, 614, 69, 711, 621, 2335, 4211, 1121, 2477, 3454, 3827, 1242, 2194, 2564, 3376, 2157, 3716, 714, 1758, 1959, 2732, 2741, 2952, 4218, 3378, 3390, 136, 594, 596, 2552, 2707, 1860, 4206, 3024, 610, 2278, 2575, 3864, 1302, 4205, 3500, 3637, 3638, 158, 2075, 2077, 2112, 2832, 4341, 2163, 2362, 2505, 3626, 214, 284, 1276, 2009, 4773, 3495, 3504, 3505, 67, 83, 218, 619, 4578, 3524, 1360, 4300, 3349, 3714, 726, 1023, 1372, 2376, 2468, 2730, 4343, 89, 2375, 2390, 2905, 624, 1652, 1949, 2819, 4472, 3397, 1572, 2096, 2282, 2566, 4524, 3392, 3458, 3508, 650, 1883, 3919, 3157, 3499, 3545, 3609, 3828, 1317, 1861, 2040, 2414, 2701, 3847, 4543, 3411, 3457, 1836, 1858, 3346, 593, 1292, 1346, 1371, 1948, 3486, 3688, 221, 1696, 2733, 2930, 3075, 3143, 3432, 258, 591, 1026, 1379, 1960, 1984, 4126, 3429, 3555, 655, 1342, 1712, 2046, 3151, 3350, 3611, 3630, 710, 1283, 1370, 1382, 1653, 1727, 1890, 2364, 2467, 2565, 3934, 4212, 4409, 3410, 3478, 3624, 649, 699, 1044, 2601, 3169, 3288, 3691, 108, 184, 606, 721, 1081, 1964, 2044, 2106, 2161, 2400, 2481, 2737, 2773, 2817, 3939, 4455, 4796, 3370, 3441, 3602, 160, 623, 701, 1332, 1333, 1345, 1520, 1655, 2158, 2162, 2255, 2399, 2627, 4181, 4485, 3106, 3198, 3245, 3323, 3537, 3692, 3702, 703, 1183, 1567, 1892, 2250, 2253, 2480, 2738, 2758, 2759, 2927, 2928, 3949, 3969, 4202, 4446, 4779, 4795, 3610, 3627, 3733, 1378, 1492, 1579, 1698, 1950, 2420, 2432, 2757, 4145, 4203, 4486, 4577, 3072, 3074, 3089, 3607, 3620, 3786, 723, 1024, 1827, 2130, 2195, 2410, 2753, 2754, 3954, 4200, 4276, 4287, 3276, 3396, 91, 93, 595, 715, 1027, 1350, 1355, 2015, 2322, 2415, 2700, 2752, 2756, 3916, 4525, 4857, 3003, 3004, 3506, 3570, 3713, 94, 1251, 1259, 1353, 1377, 1519, 1578, 1875, 2178, 2210, 2460, 2478, 2728, 3856, 3857, 4199, 4352, 4415, 4861, 3322, 3361, 3362, 3440, 3596, 299, 599, 618, 700, 1109, 1117, 1175, 1367, 1518, 1621, 1943, 2122, 2128, 2146, 2213, 2430, 2435, 2437, 2660, 2693, 2751, 2929, 2946, 2947, 4170, 4196, 4313, 3005, 3159, 3536, 3569, 3738, 211, 585, 590, 605, 717, 720, 906, 990, 1084, 1159, 1334, 1470, 1524, 1700, 1881, 1901, 1921, 1956, 1986, 2067, 2305, 2413, 2479, 2934, 3883, 3935, 4153, 4526, 4544, 4545, 4744, 3066, 3422, 3617, 3618, 92, 96, 269, 603, 648, 712, 980, 1331, 1702, 1882, 1939, 2109, 2408, 2434, 2436, 2439, 2528, 2666, 2702, 2884, 2896, 4244, 4528, 4756, 2979, 3244, 3277, 3357, 3455, 3574, 3608, 208, 277, 316, 329, 330, 1287, 1352, 1376, 1521, 1522, 1944, 2014, 2039, 2108, 2212, 2240, 2288, 2402, 2417, 2429, 2703, 2706, 2787, 2788, 3854, 4541, 4739, 3001, 3389, 3393, 3442, 3498, 3653, 3690, 3743, 6, 244, 304, 600, 604, 1047, 1221, 1286, 1354, 1359, 1703, 1704, 1879, 1952, 1955, 2013, 2016, 2144, 2179, 2227, 2401, 2409, 2629, 2735, 2774, 2851, 3851, 3852, 3912, 4169, 4742, 4754, 4755, 3439, 3561, 3568, 3573, 3635, 3643, 268, 318, 322, 331, 583, 707, 722, 1076, 1160, 1164, 1284, 1285, 1312, 1517, 1705, 1823, 1884, 2004, 2214, 2220, 2372, 2398, 2404, 2431, 2563, 2664, 3917, 4142, 4195, 4258, 4344, 4414, 4625, 4743, 3052, 3137, 3502, 3503, 3601, 3634, 65, 210, 274, 587, 608, 613, 708, 713, 984, 1075, 1167, 1369, 1708, 1738, 1824, 1829, 1844, 1880, 2043, 2076, 2267, 2285, 2294, 2397, 2451, 2463, 2755, 4180, 3032, 3382, 3567, 3636, 3644, 3689, 90, 207, 288, 320, 323, 324, 349, 597, 607, 709, 855, 905, 1166, 1169, 1252, 1437, 1885, 2000, 2010, 2403, 2412, 2456, 2734, 2772, 2926, 2940, 3889, 4787, 4788, 4791, 4887, 3006, 3037, 3090, 3160, 3218, 3231, 3232, 3395, 3543, 3544, 3616, 3639, 3646, 3697, 110, 186, 190, 191, 212, 321, 327, 328, 352, 375, 580, 582, 589, 625, 727, 851, 977, 1077, 1118, 1147, 1243, 1304, 1314, 1741, 1825, 1826, 1834, 1945, 1946, 1947, 2036, 2246, 2248, 2274, 2286, 2287, 2309, 2371, 2405, 2406, 2462, 2568, 2569, 2652, 2667, 2699, 2704, 2705, 2742, 2789, 2790, 3835, 3853, 3899, 3953, 4198, 4292, 4310, 4342, 4412, 4447, 4499, 4523, 4584, 4824, 3039, 3141, 3165, 3179, 3200, 3381, 3394, 3538, 3542, 3572, 3600, 3731, 3741, 3742, 3754, 3756, 3763, 5, 8, 82, 185, 188, 192, 257, 276, 325, 326, 348, 351, 356, 598, 620, 658, 696, 705, 856, 985, 1048, 1122, 1148, 1149, 1168, 1179, 1239, 1383, 1491, 1644, 1688, 1699, 1845, 1876, 1942, 1988, 2001, 2022, 2242, 2247, 2297, 2303, 2304, 2311, 2416, 2602, 2638, 2812, 3900, 3908, 3938, 3955, 4122, 4157, 4171, 4219, 4259, 4311, 4337, 4500, 4527, 3062, 3108, 3184, 3185, 3190, 3248, 3532, 154, 259, 261, 347, 350, 353, 579, 602, 612, 702, 706, 982, 1078, 1381, 1588, 1828, 1920, 1982, 1985, 2295, 2308, 2374, 2421, 2567, 2615, 2857, 3858, 3905, 3971, 4138, 4496, 4583, 3438, 3531, 3533, 3541, 3560, 3571, 3739, 3760, 3780, 95, 196, 203, 204, 205, 242, 243, 346, 581, 586, 601, 615, 622, 626, 627, 691, 716, 725, 983, 986, 1085, 1089, 1161, 1174, 1204, 1349, 1471, 1506, 1683, 1684, 1686, 1721, 1846, 1886, 2225, 2300, 2310, 2411, 2433, 2441, 2948, 4124, 4154, 4155, 4245, 4270, 4308, 4410, 4466, 4507, 4863, 4888) } - internal val argNames: Map> by lazy { mapOf(5 to arrayOf("n"), 6 to arrayOf("n"), 7 to arrayOf("who"), 8 to arrayOf("title"), 65 to arrayOf("state"), 67 to arrayOf("listen"), 69 to arrayOf("listen"), 82 to arrayOf("version"), 83 to arrayOf("count", "plural"), 89 to arrayOf("size", "limit"), 90 to arrayOf("name"), 91 to arrayOf("dir"), 92 to arrayOf("dir"), 93 to arrayOf("name"), 94 to arrayOf("name"), 95 to arrayOf("path"), 96 to arrayOf("path"), 97 to arrayOf("name"), 108 to arrayOf("first"), 110 to arrayOf("n"), 136 to arrayOf("count", "plural"), 154 to arrayOf("tool"), 158 to arrayOf("n"), 160 to arrayOf("name"), 184 to arrayOf("pid", "cmd"), 185 to arrayOf("title", "ago"), 186 to arrayOf("name", "who", "n"), 188 to arrayOf("line"), 190 to arrayOf("n"), 191 to arrayOf("n"), 192 to arrayOf("n"), 196 to arrayOf("name"), 203 to arrayOf("when"), 204 to arrayOf("text", "when"), 205 to arrayOf("when"), 207 to arrayOf("count", "plural"), 208 to arrayOf("count", "plural"), 210 to arrayOf("took", "ago"), 211 to arrayOf("ago"), 212 to arrayOf("kind"), 214 to arrayOf("kind", "code", "why"), 218 to arrayOf("clock"), 221 to arrayOf("build"), 242 to arrayOf("step"), 243 to arrayOf("turn"), 244 to arrayOf("branch"), 257 to arrayOf("step", "total"), 258 to arrayOf("step", "total"), 259 to arrayOf("when"), 261 to arrayOf("tool"), 268 to arrayOf("count", "plural"), 269 to arrayOf("count", "total"), 274 to arrayOf("old", "new"), 276 to arrayOf("version"), 277 to arrayOf("count"), 278 to arrayOf("tag"), 283 to arrayOf("version"), 284 to arrayOf("old", "version"), 285 to arrayOf("version"), 288 to arrayOf("version"), 299 to arrayOf("project", "location"), 303 to arrayOf("account"), 304 to arrayOf("account"), 316 to arrayOf("n"), 318 to arrayOf("n"), 320 to arrayOf("minute"), 321 to arrayOf("time"), 322 to arrayOf("time"), 323 to arrayOf("clock"), 324 to arrayOf("clock", "took"), 325 to arrayOf("clock"), 326 to arrayOf("clock", "took"), 327 to arrayOf("clock"), 328 to arrayOf("clock", "took"), 329 to arrayOf("clock"), 330 to arrayOf("clock", "took"), 331 to arrayOf("clock"), 346 to arrayOf("target"), 347 to arrayOf("target"), 348 to arrayOf("target"), 349 to arrayOf("target"), 350 to arrayOf("target"), 351 to arrayOf("target"), 352 to arrayOf("target"), 353 to arrayOf("target"), 356 to arrayOf("name"), 375 to arrayOf("t"), 418 to arrayOf("minutes", "plural"), 452 to arrayOf("path"), 579 to arrayOf("count"), 580 to arrayOf("count"), 581 to arrayOf("title"), 582 to arrayOf("path"), 583 to arrayOf("path", "error"), 584 to arrayOf("first", "last", "count"), 585 to arrayOf("task", "step"), 586 to arrayOf("count"), 587 to arrayOf("path"), 588 to arrayOf("count", "plural"), 589 to arrayOf("label"), 590 to arrayOf("provider"), 591 to arrayOf("version"), 593 to arrayOf("key"), 594 to arrayOf("device"), 595 to arrayOf("kind", "device"), 596 to arrayOf("status"), 597 to arrayOf("kind", "title"), 598 to arrayOf("layer"), 599 to arrayOf("error"), 600 to arrayOf("page"), 601 to arrayOf("page", "kind", "total"), 602 to arrayOf("reason"), 603 to arrayOf("tag"), 604 to arrayOf("tag"), 605 to arrayOf("title"), 606 to arrayOf("title"), 607 to arrayOf("text", "time"), 608 to arrayOf("kind", "device"), 609 to arrayOf("device"), 610 to arrayOf("device"), 611 to arrayOf("word"), 612 to arrayOf("word", "kind", "count"), 613 to arrayOf("error"), 614 to arrayOf("count"), 615 to arrayOf("time", "relative", "rel", "zoned", "zone"), 616 to arrayOf("zone"), 617 to arrayOf("zone"), 618 to arrayOf("id", "state", "count", "age"), 619 to arrayOf("id"), 620 to arrayOf("name"), 621 to arrayOf("name"), 622 to arrayOf("clock", "count", "plural"), 623 to arrayOf("name"), 624 to arrayOf("name"), 625 to arrayOf("name"), 626 to arrayOf("count"), 627 to arrayOf("count"), 631 to arrayOf("name", "state"), 632 to arrayOf("author", "place", "state"), 633 to arrayOf("title", "state"), 648 to arrayOf("error"), 649 to arrayOf("error"), 650 to arrayOf("host"), 655 to arrayOf("email"), 658 to arrayOf("version"), 660 to arrayOf("first", "last", "count"), 661 to arrayOf("n"), 662 to arrayOf("n"), 691 to arrayOf("ref"), 696 to arrayOf("name"), 697 to arrayOf("name"), 699 to arrayOf("name"), 700 to arrayOf("name"), 701 to arrayOf("action"), 702 to arrayOf("label"), 703 to arrayOf("count", "plural"), 705 to arrayOf("path"), 706 to arrayOf("word", "kind", "count"), 707 to arrayOf("name"), 708 to arrayOf("name"), 709 to arrayOf("name"), 710 to arrayOf("name"), 711 to arrayOf("url"), 712 to arrayOf("count"), 713 to arrayOf("count"), 714 to arrayOf("device"), 715 to arrayOf("device"), 716 to arrayOf("count"), 717 to arrayOf("label"), 718 to arrayOf("label"), 719 to arrayOf("label"), 720 to arrayOf("title"), 721 to arrayOf("title"), 722 to arrayOf("state"), 723 to arrayOf("open", "kind"), 725 to arrayOf("count"), 726 to arrayOf("email"), 727 to arrayOf("email"), 851 to arrayOf("at", "count"), 855 to arrayOf("name"), 856 to arrayOf("name"), 905 to arrayOf("name"), 906 to arrayOf("name"), 977 to arrayOf("count"), 980 to arrayOf("name"), 981 to arrayOf("name", "count"), 982 to arrayOf("label", "n"), 983 to arrayOf("action"), 984 to arrayOf("count", "plural"), 985 to arrayOf("count"), 986 to arrayOf("waiting", "busy", "done"), 990 to arrayOf("count", "plural"), 1023 to arrayOf("name"), 1024 to arrayOf("name"), 1026 to arrayOf("seconds", "long"), 1027 to arrayOf("size", "triangles", "delayed", "waited", "built"), 1028 to arrayOf("size", "delayed", "waited"), 1044 to arrayOf("name"), 1047 to arrayOf("name"), 1048 to arrayOf("count"), 1075 to arrayOf("state"), 1076 to arrayOf("bytes"), 1077 to arrayOf("count"), 1078 to arrayOf("when"), 1079 to arrayOf("state", "name"), 1080 to arrayOf("name", "state"), 1081 to arrayOf("reason", "code"), 1084 to arrayOf("kind", "code"), 1085 to arrayOf("number"), 1089 to arrayOf("x", "y"), 1096 to arrayOf("state"), 1097 to arrayOf("label", "example"), 1109 to arrayOf("text"), 1117 to arrayOf("error"), 1118 to arrayOf("kind", "count"), 1121 to arrayOf("name"), 1122 to arrayOf("n"), 1147 to arrayOf("ago"), 1148 to arrayOf("name"), 1149 to arrayOf("kind", "place", "hub"), 1159 to arrayOf("label"), 1160 to arrayOf("word"), 1161 to arrayOf("count"), 1164 to arrayOf("hub"), 1166 to arrayOf("count"), 1167 to arrayOf("state"), 1168 to arrayOf("label"), 1169 to arrayOf("label"), 1174 to arrayOf("state", "text"), 1175 to arrayOf("text"), 1177 to arrayOf("question"), 1179 to arrayOf("label"), 1183 to arrayOf("title"), 1204 to arrayOf("count"), 1205 to arrayOf("name", "counts"), 1219 to arrayOf("n"), 1221 to arrayOf("mode"), 1238 to arrayOf("first", "last", "total"), 1239 to arrayOf("count"), 1242 to arrayOf("n"), 1243 to arrayOf("who", "name"), 1251 to arrayOf("name"), 1252 to arrayOf("when"), 1259 to arrayOf("why"), 1276 to arrayOf("name"), 1283 to arrayOf("kind"), 1284 to arrayOf("title"), 1285 to arrayOf("title"), 1286 to arrayOf("title"), 1287 to arrayOf("title"), 1292 to arrayOf("name"), 1302 to arrayOf("heard"), 1303 to arrayOf("out", "heard"), 1304 to arrayOf("heard"), 1312 to arrayOf("name", "mb"), 1314 to arrayOf("name"), 1317 to arrayOf("platform"), 1321 to arrayOf("heard", "out", "yes"), 1331 to arrayOf("name", "done", "total", "percent"), 1332 to arrayOf("name", "done"), 1333 to arrayOf("name"), 1334 to arrayOf("error"), 1336 to arrayOf("mb"), 1342 to arrayOf("mb"), 1345 to arrayOf("n"), 1346 to arrayOf("n"), 1349 to arrayOf("n"), 1350 to arrayOf("pct"), 1351 to arrayOf("px"), 1352 to arrayOf("version"), 1353 to arrayOf("tag"), 1354 to arrayOf("tag"), 1355 to arrayOf("hub"), 1359 to arrayOf("tag"), 1360 to arrayOf("tag"), 1367 to arrayOf("when"), 1369 to arrayOf("tag"), 1370 to arrayOf("tag", "when"), 1371 to arrayOf("tag"), 1372 to arrayOf("tag", "when"), 1376 to arrayOf("channel"), 1377 to arrayOf("tag"), 1378 to arrayOf("app", "hub"), 1379 to arrayOf("hub", "app"), 1381 to arrayOf("key"), 1382 to arrayOf("key"), 1383 to arrayOf("why"), 1437 to arrayOf("n"), 1470 to arrayOf("title"), 1471 to arrayOf("note"), 1491 to arrayOf("title"), 1492 to arrayOf("more"), 1506 to arrayOf("bots"), 1517 to arrayOf("name"), 1518 to arrayOf("name", "time"), 1519 to arrayOf("name", "n"), 1520 to arrayOf("name", "time", "n"), 1521 to arrayOf("to"), 1522 to arrayOf("to", "step"), 1524 to arrayOf("note"), 1567 to arrayOf("why"), 1572 to arrayOf("e"), 1578 to arrayOf("max"), 1579 to arrayOf("secs", "max", "mib"), 1588 to arrayOf("path"), 1621 to arrayOf("secs"), 1644 to arrayOf("pct", "scope"), 1652 to arrayOf("n"), 1653 to arrayOf("n"), 1654 to arrayOf("n"), 1655 to arrayOf("n"), 1683 to arrayOf("d", "h"), 1684 to arrayOf("h", "m"), 1685 to arrayOf("m"), 1686 to arrayOf("window", "pct"), 1688 to arrayOf("when"), 1690 to arrayOf("label", "e"), 1692 to arrayOf("from", "to", "total"), 1696 to arrayOf("messages", "lines", "left"), 1698 to arrayOf("pct", "view", "max"), 1699 to arrayOf("pct"), 1700 to arrayOf("done", "total"), 1702 to arrayOf("n"), 1703 to arrayOf("n"), 1704 to arrayOf("time"), 1705 to arrayOf("view", "max"), 1706 to arrayOf("view", "max"), 1708 to arrayOf("more"), 1712 to arrayOf("n"), 1721 to arrayOf("n"), 1727 to arrayOf("page"), 1738 to arrayOf("title"), 1741 to arrayOf("n"), 1758 to arrayOf("name"), 1823 to arrayOf("line"), 1824 to arrayOf("quote"), 1825 to arrayOf("n"), 1826 to arrayOf("n"), 1827 to arrayOf("n"), 1828 to arrayOf("n"), 1829 to arrayOf("n"), 1834 to arrayOf("held"), 1835 to arrayOf("machine"), 1836 to arrayOf("machine"), 1844 to arrayOf("count", "total"), 1845 to arrayOf("count"), 1846 to arrayOf("n"), 1858 to arrayOf("name"), 1860 to arrayOf("n", "c", "total"), 1861 to arrayOf("n", "c"), 1862 to arrayOf("n", "c", "total", "before"), 1863 to arrayOf("n", "c", "before"), 1875 to arrayOf("name"), 1876 to arrayOf("path"), 1879 to arrayOf("file"), 1880 to arrayOf("path", "n"), 1881 to arrayOf("why"), 1882 to arrayOf("n"), 1883 to arrayOf("name"), 1884 to arrayOf("name"), 1885 to arrayOf("name"), 1886 to arrayOf("n"), 1887 to arrayOf("shown", "n"), 1890 to arrayOf("path"), 1892 to arrayOf("n"), 1901 to arrayOf("status"), 1918 to arrayOf("name", "pct"), 1919 to arrayOf("name", "mb"), 1920 to arrayOf("name"), 1921 to arrayOf("name", "why"), 1939 to arrayOf("machine"), 1942 to arrayOf("n"), 1943 to arrayOf("ref"), 1944 to arrayOf("ref", "sheet"), 1945 to arrayOf("name"), 1946 to arrayOf("name"), 1947 to arrayOf("file", "folder"), 1948 to arrayOf("name", "error"), 1949 to arrayOf("name", "status"), 1950 to arrayOf("name", "error"), 1952 to arrayOf("name"), 1955 to arrayOf("code"), 1956 to arrayOf("error"), 1959 to arrayOf("error"), 1960 to arrayOf("error"), 1964 to arrayOf("error"), 1982 to arrayOf("done", "of"), 1984 to arrayOf("why"), 1985 to arrayOf("path"), 1986 to arrayOf("error"), 1987 to arrayOf("secs"), 1988 to arrayOf("secs"), 2000 to arrayOf("code"), 2001 to arrayOf("code"), 2004 to arrayOf("state"), 2009 to arrayOf("hide", "copy", "paste"), 2010 to arrayOf("n"), 2013 to arrayOf("name"), 2014 to arrayOf("name", "folder"), 2015 to arrayOf("name"), 2016 to arrayOf("name", "percent"), 2022 to arrayOf("folder"), 2032 to arrayOf("w", "h"), 2036 to arrayOf("path"), 2039 to arrayOf("why"), 2040 to arrayOf("mb"), 2043 to arrayOf("n"), 2044 to arrayOf("delete", "undo"), 2045 to arrayOf("delete", "undo"), 2046 to arrayOf("undo"), 2067 to arrayOf("what", "secs"), 2068 to arrayOf("file", "holder"), 2075 to arrayOf("what"), 2076 to arrayOf("what"), 2077 to arrayOf("editor", "why"), 2096 to arrayOf("files"), 2106 to arrayOf("why"), 2108 to arrayOf("title"), 2109 to arrayOf("title"), 2110 to arrayOf("version"), 2111 to arrayOf("version", "size", "folder"), 2112 to arrayOf("version", "size", "folder"), 2121 to arrayOf("title"), 2122 to arrayOf("dir", "files"), 2128 to arrayOf("why"), 2130 to arrayOf("code"), 2144 to arrayOf("origin"), 2146 to arrayOf("why"), 2157 to arrayOf("dir"), 2158 to arrayOf("path"), 2159 to arrayOf("home", "other"), 2161 to arrayOf("path"), 2162 to arrayOf("code", "log"), 2163 to arrayOf("log"), 2165 to arrayOf("addr"), 2178 to arrayOf("home"), 2179 to arrayOf("addr"), 2194 to arrayOf("dir", "why"), 2195 to arrayOf("dir"), 2210 to arrayOf("phase"), 2212 to arrayOf("why"), 2213 to arrayOf("what"), 2214 to arrayOf("code"), 2220 to arrayOf("label"), 2225 to arrayOf("kind"), 2227 to arrayOf("project"), 2240 to arrayOf("what"), 2242 to arrayOf("when"), 2246 to arrayOf("n"), 2247 to arrayOf("n"), 2248 to arrayOf("n"), 2250 to arrayOf("agent"), 2251 to arrayOf("effort"), 2253 to arrayOf("n"), 2255 to arrayOf("model"), 2267 to arrayOf("word"), 2274 to arrayOf("more", "step"), 2278 to arrayOf("name"), 2282 to arrayOf("max", "skipped"), 2285 to arrayOf("name"), 2286 to arrayOf("n"), 2287 to arrayOf("name"), 2288 to arrayOf("name"), 2294 to arrayOf("n"), 2295 to arrayOf("name"), 2297 to arrayOf("price"), 2300 to arrayOf("name"), 2302 to arrayOf("name"), 2303 to arrayOf("name"), 2304 to arrayOf("name"), 2305 to arrayOf("text"), 2308 to arrayOf("key"), 2309 to arrayOf("key"), 2310 to arrayOf("pct"), 2311 to arrayOf("when"), 2322 to arrayOf("n", "upstream"), 2325 to arrayOf("mb"), 2335 to arrayOf("path"), 2336 to arrayOf("path"), 2358 to arrayOf("id"), 2362 to arrayOf("model"), 2363 to arrayOf("platform"), 2364 to arrayOf("version"), 2367 to arrayOf("version", "from", "into"), 2368 to arrayOf("version", "from"), 2371 to arrayOf("version", "path"), 2372 to arrayOf("version", "path"), 2373 to arrayOf("version", "pin", "from"), 2374 to arrayOf("path"), 2375 to arrayOf("version", "path"), 2376 to arrayOf("version", "path", "set"), 2390 to arrayOf("turns", "input", "cread", "cwrite", "output", "cost"), 2397 to arrayOf("tool"), 2398 to arrayOf("tool"), 2399 to arrayOf("tool", "word"), 2400 to arrayOf("tool", "word"), 2401 to arrayOf("tool"), 2402 to arrayOf("tool"), 2403 to arrayOf("due"), 2404 to arrayOf("due"), 2405 to arrayOf("due"), 2406 to arrayOf("due"), 2407 to arrayOf("zone"), 2408 to arrayOf("zone"), 2409 to arrayOf("zone"), 2410 to arrayOf("zone"), 2411 to arrayOf("n"), 2412 to arrayOf("who"), 2413 to arrayOf("n", "who"), 2414 to arrayOf("harness"), 2415 to arrayOf("path"), 2416 to arrayOf("path"), 2417 to arrayOf("path"), 2420 to arrayOf("error", "line"), 2421 to arrayOf("label"), 2429 to arrayOf("who"), 2430 to arrayOf("who"), 2431 to arrayOf("label", "left", "when"), 2432 to arrayOf("left"), 2433 to arrayOf("name", "left"), 2434 to arrayOf("used"), 2435 to arrayOf("used", "limit"), 2436 to arrayOf("used", "reason"), 2437 to arrayOf("used", "limit", "reason"), 2439 to arrayOf("provider"), 2440 to arrayOf("used", "window", "pct"), 2441 to arrayOf("rate"), 2451 to arrayOf("n", "r"), 2456 to arrayOf("time", "n"), 2460 to arrayOf("n", "m"), 2462 to arrayOf("pct"), 2463 to arrayOf("cost", "n"), 2467 to arrayOf("in", "out", "cread", "cwrite"), 2468 to arrayOf("in", "out", "cread", "cwrite", "n"), 2477 to arrayOf("turns", "input", "cread", "cwrite", "output"), 2478 to arrayOf("left", "when"), 2479 to arrayOf("left", "when"), 2480 to arrayOf("left", "when"), 2481 to arrayOf("left", "when"), 2505 to arrayOf("n"), 2528 to arrayOf("when"), 2535 to arrayOf("phrase", "now"), 2546 to arrayOf("s"), 2552 to arrayOf("now"), 2553 to arrayOf("now", "nudge", "sent", "undone"), 2563 to arrayOf("e"), 2564 to arrayOf("a", "ams", "b", "bms"), 2565 to arrayOf("ms"), 2566 to arrayOf("e"), 2567 to arrayOf("t"), 2568 to arrayOf("t"), 2569 to arrayOf("t"), 2575 to arrayOf("why"), 2585 to arrayOf("apps"), 2595 to arrayOf("n"), 2596 to arrayOf("n", "k"), 2601 to arrayOf("stt", "conf"), 2602 to arrayOf("words"), 2612 to arrayOf("into"), 2615 to arrayOf("origin"), 2627 to arrayOf("url"), 2629 to arrayOf("url"), 2637 to arrayOf("i", "n"), 2638 to arrayOf("d", "n"), 2647 to arrayOf("version"), 2648 to arrayOf("version"), 2649 to arrayOf("version"), 2652 to arrayOf("path"), 2660 to arrayOf("addr"), 2664 to arrayOf("label"), 2666 to arrayOf("label"), 2667 to arrayOf("label"), 2671 to arrayOf("label"), 2676 to arrayOf("from"), 2693 to arrayOf("done", "of"), 2699 to arrayOf("n"), 2700 to arrayOf("t", "m"), 2701 to arrayOf("m"), 2702 to arrayOf("b", "m"), 2703 to arrayOf("r", "p"), 2704 to arrayOf("n"), 2705 to arrayOf("n"), 2706 to arrayOf("n"), 2707 to arrayOf("n"), 2710 to arrayOf("n"), 2712 to arrayOf("n"), 2720 to arrayOf("n"), 2726 to arrayOf("name", "gb", "path"), 2728 to arrayOf("path", "why"), 2730 to arrayOf("names"), 2732 to arrayOf("why"), 2733 to arrayOf("p", "pn", "t", "tn", "e", "en"), 2734 to arrayOf("done", "total"), 2735 to arrayOf("n"), 2736 to arrayOf("what"), 2737 to arrayOf("n"), 2738 to arrayOf("n"), 2741 to arrayOf("what"), 2742 to arrayOf("n"), 2744 to arrayOf("why", "from"), 2745 to arrayOf("why"), 2751 to arrayOf("path"), 2752 to arrayOf("path", "who"), 2753 to arrayOf("path"), 2754 to arrayOf("path", "cmd"), 2755 to arrayOf("version", "path"), 2756 to arrayOf("version", "path"), 2757 to arrayOf("version", "path", "who"), 2758 to arrayOf("version", "path"), 2759 to arrayOf("version", "path", "cmd"), 2762 to arrayOf("cmd"), 2772 to arrayOf("name", "version", "path"), 2773 to arrayOf("path", "why"), 2774 to arrayOf("name"), 2776 to arrayOf("version", "cli"), 2777 to arrayOf("cli"), 2779 to arrayOf("version"), 2780 to arrayOf("version"), 2782 to arrayOf("version"), 2784 to arrayOf("version"), 2786 to arrayOf("computer"), 2787 to arrayOf("version", "cli"), 2788 to arrayOf("cli"), 2789 to arrayOf("version", "cli"), 2790 to arrayOf("cli"), 2812 to arrayOf("n"), 2817 to arrayOf("code"), 2819 to arrayOf("e"), 2832 to arrayOf("n"), 2837 to arrayOf("channel"), 2851 to arrayOf("project"), 2857 to arrayOf("n"), 2869 to arrayOf("m"), 2881 to arrayOf("m"), 2884 to arrayOf("m"), 2891 to arrayOf("pages"), 2893 to arrayOf("name"), 2896 to arrayOf("name"), 2905 to arrayOf("d", "n"), 2926 to arrayOf("n", "tools"), 2927 to arrayOf("n", "tools", "d"), 2928 to arrayOf("n", "d"), 2929 to arrayOf("n", "what"), 2930 to arrayOf("n", "d", "what"), 2934 to arrayOf("head"), 2940 to arrayOf("name", "path"), 2946 to arrayOf("page", "net", "near"), 2947 to arrayOf("page", "what"), 2948 to arrayOf("ref"), 2952 to arrayOf("page"), 2975 to arrayOf("n"), 2976 to arrayOf("n"), 2977 to arrayOf("n"), 2979 to arrayOf("hub"), 3001 to arrayOf("project"), 3003 to arrayOf("n"), 3004 to arrayOf("n"), 3005 to arrayOf("word"), 3006 to arrayOf("n"), 3024 to arrayOf("name"), 3032 to arrayOf("answer"), 3037 to arrayOf("why"), 3039 to arrayOf("hub"), 3045 to arrayOf("from", "to"), 3052 to arrayOf("project"), 3062 to arrayOf("name"), 3066 to arrayOf("n"), 3072 to arrayOf("code"), 3073 to arrayOf("hub"), 3074 to arrayOf("hub"), 3075 to arrayOf("hub"), 3089 to arrayOf("n"), 3090 to arrayOf("n"), 3106 to arrayOf("status"), 3108 to arrayOf("status"), 3137 to arrayOf("project"), 3141 to arrayOf("code"), 3143 to arrayOf("why"), 3151 to arrayOf("title"), 3157 to arrayOf("title"), 3159 to arrayOf("q"), 3160 to arrayOf("title"), 3165 to arrayOf("room"), 3169 to arrayOf("q"), 3179 to arrayOf("title"), 3184 to arrayOf("n"), 3185 to arrayOf("n"), 3190 to arrayOf("at"), 3198 to arrayOf("size"), 3200 to arrayOf("n", "total"), 3217 to arrayOf("n"), 3218 to arrayOf("what"), 3221 to arrayOf("device"), 3222 to arrayOf("device"), 3231 to arrayOf("word", "count"), 3232 to arrayOf("heard"), 3244 to arrayOf("files"), 3245 to arrayOf("files"), 3248 to arrayOf("name"), 3276 to arrayOf("n"), 3277 to arrayOf("n"), 3288 to arrayOf("n"), 3322 to arrayOf("root"), 3323 to arrayOf("path"), 3346 to arrayOf("name"), 3349 to arrayOf("until"), 3350 to arrayOf("error"), 3357 to arrayOf("url"), 3361 to arrayOf("name"), 3362 to arrayOf("name"), 3370 to arrayOf("code", "hub", "until"), 3371 to arrayOf("url"), 3375 to arrayOf("kinds"), 3376 to arrayOf("address"), 3378 to arrayOf("address"), 3381 to arrayOf("url"), 3382 to arrayOf("url"), 3383 to arrayOf("url"), 3384 to arrayOf("url", "via"), 3389 to arrayOf("name"), 3390 to arrayOf("url", "check", "left"), 3392 to arrayOf("check"), 3393 to arrayOf("address"), 3394 to arrayOf("name"), 3395 to arrayOf("error"), 3396 to arrayOf("url"), 3397 to arrayOf("url"), 3404 to arrayOf("code", "address", "left"), 3410 to arrayOf("name"), 3411 to arrayOf("name"), 3422 to arrayOf("address"), 3429 to arrayOf("code", "body"), 3432 to arrayOf("code", "body"), 3438 to arrayOf("window", "used"), 3439 to arrayOf("window", "used", "when"), 3440 to arrayOf("window", "used"), 3441 to arrayOf("window", "used", "when"), 3442 to arrayOf("provider"), 3454 to arrayOf("label"), 3455 to arrayOf("when"), 3457 to arrayOf("provider"), 3458 to arrayOf("provider", "title", "why"), 3478 to arrayOf("reason"), 3486 to arrayOf("code"), 3495 to arrayOf("name"), 3498 to arrayOf("version"), 3499 to arrayOf("version"), 3500 to arrayOf("version"), 3502 to arrayOf("version"), 3503 to arrayOf("version"), 3504 to arrayOf("version"), 3505 to arrayOf("version", "why"), 3506 to arrayOf("version"), 3508 to arrayOf("code"), 3524 to arrayOf("name"), 3531 to arrayOf("count"), 3532 to arrayOf("title"), 3533 to arrayOf("name"), 3536 to arrayOf("n", "holder"), 3537 to arrayOf("n", "title"), 3538 to arrayOf("title"), 3541 to arrayOf("n"), 3542 to arrayOf("n"), 3543 to arrayOf("n"), 3544 to arrayOf("n"), 3545 to arrayOf("harness", "typed", "type", "remote", "host", "wt", "branch"), 3555 to arrayOf("pid"), 3560 to arrayOf("left"), 3561 to arrayOf("left"), 3567 to arrayOf("left"), 3568 to arrayOf("left"), 3569 to arrayOf("left"), 3570 to arrayOf("left"), 3571 to arrayOf("label", "left"), 3572 to arrayOf("when"), 3573 to arrayOf("used"), 3574 to arrayOf("used", "limit"), 3596 to arrayOf("tracking"), 3600 to arrayOf("total"), 3601 to arrayOf("price"), 3602 to arrayOf("price"), 3607 to arrayOf("n"), 3608 to arrayOf("parts"), 3609 to arrayOf("note"), 3610 to arrayOf("error"), 3611 to arrayOf("error", "parts"), 3616 to arrayOf("state"), 3617 to arrayOf("name", "path"), 3618 to arrayOf("name", "path", "why"), 3620 to arrayOf("code"), 3624 to arrayOf("detail"), 3626 to arrayOf("why"), 3627 to arrayOf("parts"), 3630 to arrayOf("build", "to"), 3631 to arrayOf("build"), 3632 to arrayOf("build", "skip"), 3634 to arrayOf("why"), 3635 to arrayOf("why"), 3636 to arrayOf("build"), 3637 to arrayOf("build", "why"), 3638 to arrayOf("build"), 3639 to arrayOf("build"), 3643 to arrayOf("build"), 3644 to arrayOf("build"), 3646 to arrayOf("build"), 3653 to arrayOf("build"), 3687 to arrayOf("step"), 3688 to arrayOf("p", "pt", "t", "tt", "e", "et"), 3689 to arrayOf("done", "total"), 3690 to arrayOf("n"), 3691 to arrayOf("n"), 3692 to arrayOf("n"), 3697 to arrayOf("n"), 3700 to arrayOf("why"), 3701 to arrayOf("why", "from"), 3702 to arrayOf("error"), 3704 to arrayOf("n"), 3705 to arrayOf("n"), 3709 to arrayOf("n"), 3712 to arrayOf("name", "gb", "path"), 3713 to arrayOf("path", "why"), 3714 to arrayOf("names"), 3716 to arrayOf("why"), 3727 to arrayOf("n", "total"), 3731 to arrayOf("title"), 3733 to arrayOf("n"), 3737 to arrayOf("name"), 3738 to arrayOf("title"), 3739 to arrayOf("note"), 3741 to arrayOf("machine"), 3742 to arrayOf("machines"), 3743 to arrayOf("machine"), 3754 to arrayOf("n"), 3756 to arrayOf("n"), 3760 to arrayOf("name"), 3763 to arrayOf("name"), 3780 to arrayOf("why"), 3786 to arrayOf("project"), 3827 to arrayOf("path"), 3828 to arrayOf("path"), 3830 to arrayOf("have", "total"), 3835 to arrayOf("n"), 3844 to arrayOf("hub"), 3847 to arrayOf("title"), 3851 to arrayOf("project"), 3852 to arrayOf("project"), 3853 to arrayOf("n"), 3854 to arrayOf("hub"), 3856 to arrayOf("n"), 3857 to arrayOf("n"), 3858 to arrayOf("model"), 3864 to arrayOf("name"), 3883 to arrayOf("word"), 3889 to arrayOf("answer"), 3899 to arrayOf("version", "build"), 3900 to arrayOf("hub"), 3905 to arrayOf("name"), 3908 to arrayOf("when", "who", "mark"), 3912 to arrayOf("who"), 3916 to arrayOf("time"), 3917 to arrayOf("address"), 3919 to arrayOf("kind", "name"), 3934 to arrayOf("title"), 3935 to arrayOf("query"), 3938 to arrayOf("room"), 3939 to arrayOf("query"), 3941 to arrayOf("n"), 3942 to arrayOf("n"), 3943 to arrayOf("n"), 3949 to arrayOf("size"), 3953 to arrayOf("n"), 3954 to arrayOf("n"), 3955 to arrayOf("n"), 3969 to arrayOf("status"), 3971 to arrayOf("status"), 4122 to arrayOf("code"), 4124 to arrayOf("n"), 4126 to arrayOf("why"), 4138 to arrayOf("done", "of"), 4142 to arrayOf("thread"), 4145 to arrayOf("n"), 4153 to arrayOf("title"), 4154 to arrayOf("note"), 4155 to arrayOf("label"), 4156 to arrayOf("machine"), 4157 to arrayOf("machine"), 4164 to arrayOf("at", "total"), 4165 to arrayOf("at", "total"), 4169 to arrayOf("machine"), 4170 to arrayOf("machine"), 4171 to arrayOf("machines"), 4173 to arrayOf("device"), 4180 to arrayOf("price"), 4181 to arrayOf("price"), 4188 to arrayOf("home"), 4193 to arrayOf("from"), 4195 to arrayOf("note"), 4196 to arrayOf("note"), 4198 to arrayOf("v"), 4199 to arrayOf("v"), 4200 to arrayOf("v", "who"), 4202 to arrayOf("who"), 4203 to arrayOf("v"), 4205 to arrayOf("v", "cmd"), 4206 to arrayOf("cmd"), 4211 to arrayOf("v", "path"), 4212 to arrayOf("v", "note"), 4213 to arrayOf("v"), 4218 to arrayOf("tool"), 4219 to arrayOf("tool"), 4244 to arrayOf("n", "w"), 4245 to arrayOf("why"), 4246 to arrayOf("state", "why"), 4258 to arrayOf("project"), 4259 to arrayOf("n"), 4270 to arrayOf("why"), 4276 to arrayOf("name"), 4287 to arrayOf("project"), 4292 to arrayOf("n"), 4300 to arrayOf("names"), 4308 to arrayOf("dest"), 4310 to arrayOf("repo"), 4311 to arrayOf("repo"), 4313 to arrayOf("url"), 4337 to arrayOf("group"), 4341 to arrayOf("project"), 4342 to arrayOf("n"), 4343 to arrayOf("n"), 4344 to arrayOf("n"), 4352 to arrayOf("n"), 4409 to arrayOf("n"), 4410 to arrayOf("n"), 4411 to arrayOf("a", "b"), 4412 to arrayOf("n"), 4414 to arrayOf("parts", "lines"), 4415 to arrayOf("n"), 4446 to arrayOf("what", "project", "fab"), 4447 to arrayOf("rev", "day"), 4455 to arrayOf("n"), 4466 to arrayOf("layer"), 4467 to arrayOf("n"), 4472 to arrayOf("board"), 4484 to arrayOf("others"), 4485 to arrayOf("must", "should", "notes"), 4486 to arrayOf("id", "w"), 4496 to arrayOf("what"), 4499 to arrayOf("why"), 4500 to arrayOf("why"), 4507 to arrayOf("n"), 4523 to arrayOf("price", "n"), 4524 to arrayOf("n", "need"), 4525 to arrayOf("n"), 4526 to arrayOf("n"), 4527 to arrayOf("cost"), 4528 to arrayOf("cost"), 4541 to arrayOf("day", "n"), 4542 to arrayOf("day"), 4543 to arrayOf("cost", "n", "lines"), 4544 to arrayOf("stock", "price"), 4545 to arrayOf("lines"), 4566 to arrayOf("host"), 4577 to arrayOf("n"), 4578 to arrayOf("a", "b"), 4579 to arrayOf("n"), 4580 to arrayOf("n"), 4583 to arrayOf("day"), 4584 to arrayOf("n"), 4625 to arrayOf("turn"), 4739 to arrayOf("text"), 4742 to arrayOf("repo", "dest"), 4743 to arrayOf("repo", "dest"), 4744 to arrayOf("repo"), 4749 to arrayOf("dir"), 4750 to arrayOf("dir"), 4754 to arrayOf("editor", "job", "secs"), 4755 to arrayOf("editor", "secs"), 4756 to arrayOf("editor"), 4773 to arrayOf("time"), 4779 to arrayOf("status"), 4787 to arrayOf("time"), 4788 to arrayOf("time", "dur"), 4791 to arrayOf("answer"), 4795 to arrayOf("type"), 4796 to arrayOf("max"), 4824 to arrayOf("bytes", "tokens"), 4857 to arrayOf("what"), 4861 to arrayOf("n"), 4863 to arrayOf("n"), 4887 to arrayOf("n"), 4888 to arrayOf("done", "total"), 4896 to arrayOf("v"), 4897 to arrayOf("x", "y"), 4903 to arrayOf("machine")) } + internal val exactKey: IntArray by lazy { intArrayOf(0, 1, 2, 3, 4, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 3152, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 43, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 3720, 61, 62, 63, 64, 66, 68, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 84, 85, 3759, 87, 88, 98, 99, 3081, 3758, 102, 103, 105, 106, 107, 109, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 155, 156, 157, 159, 161, 162, 163, 3201, 165, 166, 3203, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 3162, 183, 187, 189, 193, 194, 195, 197, 198, 199, 200, 201, 202, 206, 209, 213, 215, 216, 217, 219, 220, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 234, 235, 2968, 237, 238, 239, 240, 3719, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 260, 262, 263, 264, 265, 266, 267, 270, 271, 272, 273, 275, 279, 280, 281, 282, 286, 287, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 300, 301, 3173, 305, 306, 307, 308, 309, 310, 311, 313, 314, 315, 317, 319, 333, 3767, 336, 3766, 3769, 340, 3779, 342, 343, 344, 345, 354, 3150, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 2971, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 2963, 2964, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 453, 454, 455, 3180, 457, 458, 459, 460, 461, 2953, 463, 464, 465, 3083, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 556, 557, 558, 559, 560, 561, 562, 563, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 592, 628, 629, 630, 3188, 3189, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 651, 652, 3832, 654, 656, 657, 659, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 680, 681, 682, 683, 684, 686, 687, 689, 690, 692, 693, 694, 695, 698, 704, 724, 728, 729, 730, 731, 732, 3764, 734, 735, 736, 737, 3187, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 3747, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 843, 844, 845, 847, 848, 3183, 850, 852, 853, 854, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 3757, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 3834, 903, 904, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 3153, 964, 965, 966, 967, 968, 969, 3782, 971, 3008, 3065, 974, 975, 976, 978, 979, 987, 988, 989, 991, 992, 993, 995, 996, 997, 998, 999, 1000, 1001, 1002, 1003, 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1013, 1014, 1015, 1016, 1017, 1018, 3785, 1020, 1021, 1022, 1025, 1029, 1030, 1031, 2960, 3034, 1034, 1035, 1036, 1037, 1038, 1039, 1040, 1041, 1042, 1043, 1045, 1046, 1049, 1050, 1051, 1052, 1053, 1054, 1055, 1056, 1057, 1058, 1059, 1060, 1061, 1062, 1063, 1064, 1065, 1066, 1067, 1068, 1069, 1070, 1071, 1072, 1074, 1082, 1083, 1086, 1087, 1088, 1090, 1091, 1092, 3799, 1094, 1095, 1098, 1099, 1100, 3182, 1102, 1103, 1104, 1105, 1106, 1107, 1108, 1110, 1111, 1112, 1113, 1114, 1115, 1116, 3784, 1120, 1123, 1124, 1125, 1127, 1128, 1129, 1130, 1131, 1132, 1133, 1134, 1135, 1136, 1137, 1138, 1139, 1140, 1141, 1142, 1143, 1144, 1145, 1146, 1150, 1151, 1152, 1153, 1154, 1155, 1158, 1162, 1163, 1165, 1170, 1171, 1172, 1173, 1176, 1178, 1180, 1181, 1182, 1184, 1185, 1186, 1187, 1188, 1189, 1190, 1191, 1192, 1193, 1194, 1195, 1197, 1198, 1199, 1200, 1201, 1202, 1203, 1206, 1207, 1208, 1209, 1210, 1211, 1212, 1213, 1214, 1215, 1216, 1217, 1218, 1220, 1222, 1223, 2962, 1225, 1226, 1227, 1228, 1229, 1230, 1231, 1232, 1233, 1234, 1235, 1236, 1237, 1240, 1241, 1244, 1245, 1246, 1247, 1248, 1250, 1253, 1254, 1255, 1256, 1257, 1258, 1260, 1261, 1262, 1263, 1264, 1265, 1266, 1267, 1269, 1270, 1271, 1272, 1273, 1274, 1275, 1277, 1278, 1279, 1280, 1281, 1288, 1289, 1290, 1291, 1294, 1296, 1297, 1298, 1299, 1301, 1305, 1306, 1308, 1309, 1310, 1311, 1315, 1316, 1318, 1319, 1320, 1322, 1323, 1324, 1325, 1326, 1327, 1328, 1329, 1330, 1335, 1338, 1339, 1340, 1341, 1344, 1347, 1348, 1356, 1357, 3497, 1361, 1362, 1363, 1364, 1365, 1366, 3564, 1373, 1375, 1380, 1384, 1385, 3038, 1387, 1388, 1389, 1390, 1391, 1392, 1393, 1394, 1395, 1396, 1397, 1398, 1399, 1400, 1401, 1402, 1403, 1404, 1405, 1406, 1407, 1408, 1409, 1410, 1411, 1412, 2965, 1417, 1418, 1419, 1420, 1421, 1422, 1423, 1424, 1425, 1426, 1427, 1428, 1429, 1430, 1431, 1432, 1433, 3082, 3575, 1436, 1438, 1439, 1440, 1441, 1442, 1443, 1444, 1445, 1446, 1447, 1448, 1449, 1450, 1451, 1452, 1453, 1454, 1455, 1456, 1457, 1458, 1459, 1460, 1461, 1462, 1463, 1464, 1465, 1466, 1467, 1468, 1469, 3577, 1473, 1474, 1475, 1477, 1478, 1479, 1480, 1481, 1482, 1483, 1484, 1485, 1486, 1487, 1488, 1489, 1490, 1493, 1494, 3722, 1496, 1497, 1498, 3734, 3740, 1501, 1502, 1503, 1504, 1505, 1507, 1508, 1509, 1510, 1511, 1512, 1513, 1514, 1515, 1516, 1523, 1525, 1526, 1527, 1528, 1529, 1530, 1531, 1532, 1533, 1534, 1535, 1536, 1537, 1538, 1539, 1540, 1541, 1542, 1543, 1544, 1545, 1546, 1547, 1548, 1549, 1550, 1551, 1552, 1553, 1554, 1555, 1556, 1557, 1558, 1559, 1560, 1561, 1562, 1563, 1564, 1565, 1566, 1568, 1569, 1570, 1571, 1573, 1574, 1575, 1576, 1577, 1580, 1581, 1582, 1583, 1584, 1585, 1586, 1587, 1589, 1590, 1591, 1592, 1593, 1594, 1595, 1596, 1597, 1598, 1599, 1600, 1601, 1602, 1603, 1604, 1605, 1606, 1607, 1608, 1609, 1610, 1611, 1612, 1613, 1614, 1615, 1616, 1617, 1618, 1619, 1620, 1622, 1623, 1624, 1625, 1626, 1627, 1628, 1629, 3041, 1631, 1632, 1633, 1634, 1635, 1636, 1637, 1638, 1639, 1640, 1641, 1642, 1643, 1645, 1646, 1647, 1648, 1649, 1650, 1651, 1656, 1657, 1658, 1659, 1660, 1661, 1662, 1663, 3451, 1665, 1666, 1667, 1668, 3452, 1670, 1671, 1672, 1673, 1674, 1675, 1676, 1677, 1678, 1679, 1680, 1681, 2974, 1687, 1689, 1691, 1693, 1697, 1701, 1707, 1709, 1710, 1711, 1713, 1714, 1715, 1716, 1717, 1718, 1720, 1722, 1723, 1724, 1725, 1726, 1728, 1729, 3746, 1731, 1732, 1733, 1734, 1735, 1736, 1737, 1739, 1740, 1742, 1743, 1744, 1745, 1746, 1747, 1748, 1749, 1750, 1751, 1752, 1753, 1754, 1755, 1756, 1757, 1760, 1761, 1762, 1763, 1764, 1765, 1766, 1767, 1768, 1769, 1770, 1771, 1772, 1773, 1774, 1775, 1776, 1777, 1778, 1779, 1780, 1781, 1782, 1783, 1784, 1785, 1786, 1787, 1788, 1789, 1790, 1791, 1792, 1793, 1794, 1795, 1796, 1797, 1798, 1799, 1800, 1801, 1802, 1803, 1804, 1805, 1806, 1807, 1808, 1809, 1810, 1811, 1812, 1813, 1814, 1815, 1816, 1817, 1818, 1819, 1821, 1822, 3017, 1831, 1833, 1837, 2999, 1839, 1840, 3000, 1842, 1843, 1847, 3064, 1849, 1850, 1851, 1852, 1853, 1854, 1855, 1856, 1857, 1859, 1864, 1866, 1867, 1868, 1869, 1870, 1871, 3079, 1873, 1874, 1877, 1878, 1888, 1889, 1893, 1894, 1895, 1896, 1897, 1898, 1899, 1900, 1902, 1903, 1904, 1905, 1906, 1907, 1908, 1909, 1910, 1911, 1912, 1913, 1914, 1915, 1916, 1917, 1922, 1923, 1924, 1925, 1926, 1927, 1928, 1929, 1930, 1931, 1932, 1933, 1934, 1935, 1937, 1938, 1940, 1941, 1951, 1953, 1954, 1957, 1958, 1961, 1962, 1963, 1965, 1966, 1967, 1968, 1969, 1970, 1971, 1972, 1973, 1974, 1975, 1976, 1977, 1978, 1979, 1980, 1981, 1983, 1989, 1990, 1991, 1992, 1996, 3140, 2002, 2003, 2005, 2006, 2007, 2008, 3792, 3793, 2017, 2019, 2020, 2021, 2023, 2024, 2025, 2026, 2027, 2028, 2029, 2030, 2031, 2034, 2035, 2037, 2038, 2041, 2042, 3125, 3126, 3127, 2050, 3353, 2052, 2054, 2055, 2056, 2057, 2058, 2059, 2060, 2061, 2062, 2063, 2064, 2065, 2066, 2069, 2070, 2071, 2072, 2073, 2074, 2078, 2079, 2080, 2081, 2082, 2083, 2084, 2085, 2086, 2087, 2088, 2089, 2090, 2091, 2092, 2093, 2094, 2095, 2097, 2098, 2099, 2100, 2101, 2102, 2103, 2104, 2105, 2107, 2113, 2114, 2115, 2116, 2117, 2118, 2119, 2120, 3067, 2125, 2126, 2127, 2129, 2131, 2132, 2133, 2134, 2990, 3115, 3116, 3117, 3118, 3119, 2141, 2142, 2143, 2145, 2992, 2993, 2983, 2982, 2151, 2984, 2153, 2988, 2155, 3351, 2160, 2164, 2166, 2167, 2168, 2169, 2170, 2171, 2172, 2173, 2174, 2175, 2176, 3018, 2180, 2181, 2182, 2183, 3051, 2185, 2186, 2187, 2188, 2189, 2190, 2191, 2192, 2193, 2196, 3364, 2198, 2199, 2200, 2201, 3033, 2203, 2204, 2205, 2206, 2981, 2208, 3096, 2211, 2215, 2216, 3641, 2218, 2219, 3728, 3729, 2223, 3178, 2226, 3717, 2229, 2230, 2231, 2232, 2233, 3777, 2235, 3148, 2237, 3147, 2239, 2241, 2243, 2244, 2245, 2249, 2252, 2254, 2256, 2257, 2258, 2259, 2260, 2261, 2262, 2263, 2264, 2265, 2266, 2268, 2269, 2270, 3735, 2272, 2273, 2275, 3025, 3023, 3027, 2281, 2283, 2284, 2290, 2291, 2292, 2293, 3063, 2298, 2299, 2301, 2306, 2307, 3007, 3576, 2970, 2969, 2972, 3092, 3095, 2320, 2321, 2323, 2324, 2326, 2327, 2328, 2329, 2330, 2331, 2332, 2333, 2334, 3796, 2338, 2339, 2340, 2341, 2342, 2343, 2344, 2345, 2346, 2347, 2348, 2349, 2350, 2351, 2352, 2357, 2359, 2360, 2361, 2365, 2366, 2369, 2370, 2377, 2378, 2379, 2380, 2381, 2382, 2383, 2384, 2385, 2386, 2387, 2388, 2389, 2391, 2392, 2393, 2394, 2395, 2396, 2418, 2419, 2422, 2423, 2424, 2425, 2426, 2427, 2428, 2438, 2442, 2443, 2444, 2445, 2446, 2447, 2448, 2449, 2450, 2452, 2453, 2454, 2455, 2457, 2458, 2459, 2461, 2464, 2465, 2466, 2469, 2470, 2471, 2472, 2473, 2474, 2475, 2476, 2482, 2483, 2484, 2485, 2486, 2487, 2488, 2489, 2490, 2491, 2492, 2493, 2494, 2495, 2496, 2497, 2498, 2499, 2500, 2501, 2502, 2503, 2504, 2506, 2507, 2508, 2509, 2510, 2511, 2512, 2513, 2514, 2515, 2516, 2517, 2518, 2519, 2520, 2521, 2522, 2523, 2524, 2525, 2526, 2527, 2529, 2530, 2531, 2532, 3129, 2534, 2536, 2537, 2539, 2540, 2541, 2542, 2543, 2544, 2545, 2548, 2549, 2550, 2551, 2554, 2555, 2556, 2557, 2558, 2559, 2560, 2561, 2562, 2570, 2571, 2572, 2573, 2576, 2577, 2578, 2579, 2580, 2581, 2582, 2583, 2584, 2586, 2587, 2588, 2589, 2590, 2591, 2592, 2593, 2594, 2597, 2599, 2600, 2603, 2604, 2605, 2606, 2607, 2608, 2609, 2610, 2611, 2613, 2614, 2616, 2617, 2618, 2619, 2620, 2621, 2622, 2623, 2624, 2625, 2626, 2628, 2630, 2633, 2635, 3725, 2640, 2641, 2642, 2643, 2644, 2645, 2646, 2650, 2651, 2653, 2654, 2655, 2656, 2657, 2658, 2659, 2661, 2662, 2663, 2668, 2669, 2670, 2672, 2673, 2674, 2675, 2677, 2678, 2679, 2680, 2681, 2682, 2683, 2684, 2685, 2686, 2687, 2688, 2689, 3698, 2691, 2692, 2694, 3695, 2696, 2697, 3699, 3696, 2709, 2713, 3706, 3202, 3707, 2717, 3708, 2719, 2721, 3710, 2723, 3711, 2725, 2727, 3715, 3693, 3686, 3694, 2746, 2747, 2749, 2750, 2760, 2761, 2763, 2764, 2765, 2766, 2767, 2768, 2769, 2770, 2771, 2775, 2778, 2781, 2783, 2785, 2791, 2792, 2793, 2794, 2795, 2796, 2797, 2798, 2799, 2800, 2801, 2802, 2803, 3373, 2805, 2806, 2807, 2808, 2809, 2811, 2813, 2814, 3405, 2820, 2821, 2822, 2823, 2824, 2825, 2826, 2827, 2828, 2829, 2830, 2831, 2833, 2834, 2835, 2836, 2839, 2840, 2842, 2843, 2844, 2845, 2997, 2847, 2849, 2850, 2852, 2853, 2854, 2855, 2856, 2858, 2859, 2863, 2866, 2867, 2868, 2870, 2871, 2872, 2874, 2875, 2876, 2877, 2879, 2880, 2883, 2886, 2887, 2888, 2889, 2890, 2892, 2894, 2895, 2897, 2898, 2899, 2900, 2901, 2902, 2903, 2904, 2906, 2907, 2908, 2909, 2910, 2911, 2912, 2913, 2914, 2915, 2916, 2917, 2918, 2919, 2920, 2921, 2922, 2923, 2924, 2925, 2931, 2932, 2933, 2935, 2936, 2937, 2941, 2942, 2943, 2944, 2945, 2949, 2950, 2954, 2955, 2956, 2957, 2958, 2959, 2961, 2966, 2967, 2973, 2978, 2980, 2985, 2986, 2987, 2989, 2991, 2994, 2995, 2996, 2998, 3002, 3009, 3010, 3011, 3012, 3013, 3014, 3015, 3016, 3019, 3020, 3021, 3022, 3026, 3028, 3029, 3030, 3031, 3035, 3036, 3040, 3042, 3043, 3044, 3046, 3047, 3048, 3049, 3050, 3053, 3054, 3055, 3056, 3057, 3058, 3059, 3060, 3061, 3068, 3069, 3070, 3071, 3076, 3077, 3078, 3080, 3084, 3085, 3086, 3087, 3088, 3091, 3093, 3094, 3097, 3098, 3099, 3100, 3101, 3102, 3103, 3104, 3105, 3107, 3109, 3110, 3111, 3112, 3113, 3114, 3120, 3121, 3122, 3123, 3124, 3128, 3130, 3131, 3132, 3133, 3134, 3135, 3136, 3138, 3139, 3142, 3144, 3145, 3146, 3149, 3154, 3155, 3156, 3158, 3161, 3163, 3164, 3166, 3167, 3168, 3170, 3171, 3172, 3174, 3175, 3176, 3177, 3181, 3186, 3191, 3192, 3193, 3194, 3195, 3196, 3197, 3199, 3204, 3205, 3206, 3207, 3208, 3209, 3210, 3211, 3212, 3213, 3214, 3215, 3216, 3219, 3220, 3223, 3224, 3225, 3226, 3227, 3228, 3229, 3230, 3233, 3234, 3235, 3236, 3237, 3238, 3239, 3240, 3241, 3242, 3243, 3246, 3247, 3249, 3250, 3251, 3252, 3253, 3254, 3255, 3256, 3257, 3258, 3259, 3260, 3261, 3262, 3263, 3264, 3265, 3266, 3267, 3268, 3269, 3270, 3271, 3272, 3273, 3274, 3275, 3278, 3279, 3280, 3281, 3282, 3283, 3284, 3285, 3286, 3287, 3289, 3290, 3291, 3292, 3293, 3294, 3295, 3296, 3297, 3298, 3299, 3300, 3301, 3302, 3303, 3304, 3305, 3306, 3307, 3308, 3309, 3310, 3311, 3312, 3313, 3314, 3315, 3316, 3317, 3318, 3319, 3320, 3321, 3324, 3325, 3326, 3327, 3328, 3329, 3330, 3331, 3332, 3333, 3334, 3335, 3336, 3337, 3338, 3339, 3340, 3341, 3342, 3343, 3344, 3345, 3347, 3348, 3352, 3354, 3355, 3356, 3358, 3359, 3360, 3363, 3365, 3366, 3367, 3368, 3369, 3372, 3374, 3377, 3379, 3380, 3385, 3386, 3387, 3388, 3391, 3398, 3399, 3400, 3401, 3402, 3403, 3406, 3407, 3408, 3409, 3412, 3413, 3414, 3415, 3416, 3417, 3418, 3419, 3420, 3421, 3423, 3424, 3425, 3426, 3427, 3428, 3430, 3431, 3433, 3434, 3435, 3436, 3437, 3443, 3444, 3445, 3446, 3447, 3448, 3449, 3450, 3453, 3456, 3459, 3460, 3461, 3462, 3463, 3464, 3465, 3466, 3467, 3468, 3469, 3470, 3471, 3472, 3473, 3474, 3475, 3476, 3477, 3479, 3480, 3481, 3482, 3483, 3484, 3485, 3487, 3488, 3489, 3490, 3491, 3492, 3493, 3494, 3496, 3501, 3507, 3509, 3510, 3511, 3512, 3513, 3514, 3515, 3516, 3517, 3518, 3519, 3520, 3521, 3522, 3523, 3525, 3526, 3527, 3528, 3529, 3530, 3534, 3535, 3539, 3540, 3546, 3547, 3548, 3549, 3550, 3551, 3552, 3553, 3554, 3556, 3557, 3558, 3559, 3562, 3563, 3565, 3566, 3578, 3579, 3580, 3581, 3582, 3583, 3584, 3585, 3586, 3587, 3588, 3589, 3590, 3591, 3592, 3593, 3594, 3595, 3597, 3598, 3599, 3603, 3604, 3605, 3606, 3612, 3613, 3614, 3615, 3619, 3621, 3622, 3623, 3625, 3628, 3629, 3633, 3640, 3642, 3645, 3647, 3648, 3649, 3650, 3651, 3652, 3654, 3655, 3656, 3657, 3658, 3659, 3660, 3661, 3662, 3663, 3664, 3665, 3666, 3667, 3668, 3669, 3670, 3671, 3672, 3673, 3674, 3675, 3676, 3677, 3678, 3679, 3680, 3681, 3682, 3683, 3684, 3685, 3703, 3718, 3721, 3723, 3724, 3726, 3730, 3732, 3736, 3745, 3748, 3749, 3750, 3751, 3752, 3753, 3755, 3761, 3762, 3765, 3768, 3770, 3771, 3772, 3773, 3774, 3775, 3778, 3781, 3783, 3787, 3788, 3789, 3790, 3791, 3794, 3795, 3797, 3798, 3800, 3801, 3802, 3803, 3804, 3805, 3806, 3807, 3809, 3810, 3811, 3812, 3813, 3814, 3815, 3816, 3817, 3818, 3819, 3820, 3821, 3822, 3823, 3824, 3825, 3826, 3829, 3831, 3833, 3842, 3843, 3845, 3846, 3855, 3861, 3867, 3876, 3878, 3879, 3880, 3881, 3884, 3885, 3887, 3893, 3897, 3901, 3906, 3907, 3909, 3910, 3911, 3913, 3914, 3915, 3920, 3921, 3922, 3923, 3924, 3925, 3926, 3927, 3928, 3931, 3932, 3933, 3978, 3979, 3984, 3986, 3987, 3989, 3995, 3998, 4013, 4014, 4015, 4016, 4017, 4018, 4020, 4021, 4023, 4024, 4026, 4028, 4029, 4042, 4045, 4046, 4048, 4049, 4053, 4058, 4061, 4062, 4064, 4065, 4071, 4073, 4074, 4077, 4079, 4084, 4085, 4086, 4091, 4102, 4125, 4141, 4149, 4158, 4159, 4163, 4168, 4184, 4185, 4186, 4187, 4189, 4191, 4192, 4194, 4197, 4201, 4204, 4207, 4208, 4209, 4210, 4214, 4215, 4216, 4217, 4220, 4221, 4222, 4223, 4224, 4225, 4226, 4227, 4228, 4229, 4230, 4231, 4232, 4233, 4234, 4235, 4236, 4237, 4238, 4239, 4240, 4241, 4242, 4243, 4251, 4254, 4255, 4261, 4266, 4267, 4268, 4269, 4273, 4277, 4279, 4280, 4281, 4282, 4283, 4284, 4285, 4286, 4288, 4289, 4290, 4291, 4293, 4294, 4295, 4296, 4297, 4298, 4299, 4309, 4318, 4319, 4320, 4321, 4322, 4323, 4324, 4325, 4326, 4327, 4329, 4330, 4334, 4335, 4337, 4338, 4339, 4340, 4344, 4345, 4346, 4347, 4348, 4349, 4351, 4352, 4353, 4359, 4360, 4361, 4362, 4363, 4364, 4368, 4372, 4373, 4375, 4376, 4377, 4378, 4379, 4381, 4391, 4393, 4398, 4399, 4400, 4401, 4402, 4403, 4404, 4405, 4406, 4407, 4408, 4409, 4410, 4411, 4412, 4413, 4415, 4416, 4417, 4418, 4419, 4420, 4421, 4426, 4429, 4430, 4431, 4432, 4433, 4434, 4435, 4436, 4437, 4438, 4439, 4440, 4441, 4442, 4443, 4444, 4445, 4446, 4447, 4448, 4449, 4451, 4452, 4453, 4455, 4456, 4457, 4458, 4461, 4462, 4463, 4465, 4466, 4467, 4469, 4470, 4471, 4472, 4473, 4474, 4476, 4478, 4481, 4482, 4483, 4484, 4486, 4487, 4488, 4489, 4490, 4491, 4492, 4493, 4494, 4495, 4496, 4500, 4502, 4503, 4504, 4505, 4506, 4510, 4511, 4515, 4516, 4517, 4519, 4521, 4522, 4523, 4524, 4525, 4526, 4527, 4529, 4530, 4531, 4532, 4533, 4534, 4535, 4542, 4543, 4544, 4545, 4546, 4547, 4548, 4549, 4550, 4551, 4552, 4553, 4559, 4560, 4562, 4563, 4564, 4565, 4566, 4567, 4568, 4569, 4570, 4571, 4572, 4573, 4574, 4575, 4576, 4577, 4581, 4582, 4583, 4584, 4585, 4586, 4587, 4588, 4589, 4594, 4595, 4598, 4599, 4600, 4601, 4602, 4603, 4604, 4605, 4606, 4607, 4608, 4609, 4610, 4611, 4613, 4614, 4615, 4616, 4625, 4626, 4627, 4628, 4629, 4630, 4632, 4635, 4636, 4637, 4639, 4640, 4641, 4642, 4643, 4644, 4645, 4646, 4647, 4648, 4649, 4650, 4651, 4652, 4653, 4654, 4655, 4656, 4657, 4658, 4659, 4660, 4661, 4662, 4663, 4664, 4665, 4666, 4667, 4668, 4669, 4670, 4671, 4672, 4673, 4674, 4675, 4676, 4677, 4678, 4679, 4680, 4681, 4682, 4683, 4684, 4685, 4686, 4687, 4688, 4689, 4690, 4691, 4692, 4693, 4694, 4695, 4696, 4697, 4698, 4699, 4700, 4701, 4702, 4703, 4704, 4705, 4706, 4707, 4708, 4709, 4710, 4711, 4712, 4713, 4714, 4715, 4716, 4717, 4718, 4719, 4720, 4721, 4722, 4723, 4724, 4725, 4726, 4727, 4728, 4729, 4730, 4731, 4732, 4733, 4734, 4735, 4736, 4737, 4738, 4739, 4740, 4745, 4746, 4747, 4753, 4766, 4770, 4771, 4772, 4773, 4774, 4775, 4776, 4777, 4778, 4779, 4780, 4781, 4782, 4783, 4784, 4785, 4787, 4788, 4789, 4790, 4791, 4793, 4794, 4795, 4796, 4797, 4798, 4799, 4802, 4803, 4805, 4806, 4807, 4810, 4811, 4812, 4813, 4814, 4815, 4816, 4817, 4818, 4819, 4820, 4821, 4822, 4823, 4824, 4825, 4826, 4827, 4828, 4829, 4830, 4831, 4832, 4833, 4834, 4835, 4836, 4838, 4839, 4840, 4841, 4842, 4843, 4844, 4845, 4846, 4847, 4848, 4849, 4850, 4851, 4852, 4853, 4854, 4855, 4856, 4857, 4858, 4859, 4860, 4861, 4862, 4863, 4864, 4865, 4866, 4867, 4868, 4869, 4871, 4872, 4873, 4875, 4877, 4879, 4880, 4881, 4882, 4885, 4887, 4888, 4889, 4890, 4892, 4893, 4894, 4895, 4896, 4897, 4898, 4899, 4902, 4906, 4907, 4911, 4912, 4913, 4914, 4915, 4917, 4918) } + internal val templates: IntArray by lazy { intArrayOf(2358, 2837, 2649, 2648, 2647, 2869, 2891, 3371, 2612, 418, 2782, 2780, 2676, 2367, 2373, 2784, 2881, 2596, 2595, 285, 2325, 2786, 2893, 3221, 4173, 2535, 4916, 2585, 2045, 2363, 3705, 2110, 2712, 2368, 3222, 1336, 4193, 4213, 3704, 2553, 2710, 1862, 4188, 2121, 2159, 2165, 4555, 283, 2111, 4497, 3383, 3404, 2068, 2336, 3701, 452, 2744, 2776, 2777, 3384, 3700, 2745, 3632, 609, 1706, 3709, 1863, 2720, 3712, 2726, 3375, 616, 617, 2762, 3073, 3687, 1654, 2779, 3631, 303, 614, 69, 711, 621, 2335, 4211, 1121, 2477, 3454, 3827, 1242, 2194, 2564, 3376, 2157, 3716, 714, 1758, 1959, 2732, 2741, 2952, 4218, 3378, 3390, 136, 594, 596, 2552, 2707, 1860, 4206, 3024, 610, 2278, 2575, 3864, 1302, 4205, 3500, 3637, 3638, 158, 2075, 2077, 2112, 2832, 4354, 2163, 2362, 2505, 3626, 214, 284, 1276, 2009, 4786, 3495, 3504, 3505, 67, 83, 218, 619, 4591, 3524, 1360, 4300, 3349, 3714, 726, 1023, 1372, 2376, 2468, 2730, 4356, 89, 2375, 2390, 2905, 624, 1652, 1949, 2819, 4485, 3397, 1572, 2096, 2282, 2566, 4537, 3392, 3458, 3508, 650, 1883, 3919, 3157, 3499, 3545, 3609, 3828, 1317, 1861, 2040, 2414, 2701, 3847, 4556, 3411, 3457, 1836, 1858, 3346, 593, 1292, 1346, 1371, 1948, 3486, 3688, 221, 1696, 2733, 2930, 3075, 3143, 3432, 258, 591, 1026, 1379, 1960, 1984, 4126, 3429, 3555, 655, 1342, 1712, 2046, 3151, 3350, 3611, 3630, 710, 1283, 1370, 1382, 1653, 1727, 1890, 2364, 2467, 2565, 3934, 4212, 4422, 3410, 3478, 3624, 649, 699, 1044, 2601, 3169, 3288, 3691, 108, 184, 606, 721, 1081, 1964, 2044, 2106, 2161, 2400, 2481, 2737, 2773, 2817, 3939, 4468, 4809, 3370, 3441, 3602, 160, 623, 701, 1332, 1333, 1345, 1520, 1655, 2158, 2162, 2255, 2399, 2627, 4181, 4498, 3106, 3198, 3245, 3323, 3537, 3692, 3702, 703, 1183, 1567, 1892, 2250, 2253, 2480, 2738, 2758, 2759, 2927, 2928, 3949, 3969, 4202, 4459, 4792, 4808, 3610, 3627, 3733, 1378, 1492, 1579, 1698, 1950, 2420, 2432, 2757, 4145, 4203, 4499, 4590, 3072, 3074, 3089, 3607, 3620, 3786, 723, 1024, 1827, 2130, 2195, 2410, 2753, 2754, 3954, 4200, 4276, 4287, 3276, 3396, 91, 93, 595, 715, 1027, 1350, 1355, 2015, 2322, 2415, 2700, 2752, 2756, 3916, 4538, 4870, 3003, 3004, 3506, 3570, 3713, 94, 1251, 1259, 1353, 1377, 1519, 1578, 1875, 2178, 2210, 2460, 2478, 2728, 3856, 3857, 4199, 4365, 4428, 4874, 3322, 3361, 3362, 3440, 3596, 299, 599, 618, 700, 1109, 1117, 1175, 1367, 1518, 1621, 1943, 2122, 2128, 2146, 2213, 2430, 2435, 2437, 2660, 2693, 2751, 2929, 2946, 2947, 4170, 4196, 4313, 3005, 3159, 3536, 3569, 3738, 211, 585, 590, 605, 717, 720, 906, 990, 1084, 1159, 1334, 1470, 1524, 1700, 1881, 1901, 1921, 1956, 1986, 2067, 2305, 2413, 2479, 2934, 3883, 3935, 4153, 4539, 4557, 4558, 4757, 3066, 3422, 3617, 3618, 92, 96, 269, 603, 648, 712, 980, 1331, 1702, 1882, 1939, 2109, 2408, 2434, 2436, 2439, 2528, 2666, 2702, 2884, 2896, 4244, 4541, 4769, 2979, 3244, 3277, 3357, 3455, 3574, 3608, 208, 277, 316, 329, 330, 1287, 1352, 1376, 1521, 1522, 1944, 2014, 2039, 2108, 2212, 2240, 2288, 2402, 2417, 2429, 2703, 2706, 2787, 2788, 3854, 4554, 4752, 3001, 3389, 3393, 3442, 3498, 3653, 3690, 3743, 6, 244, 304, 600, 604, 1047, 1221, 1286, 1354, 1359, 1703, 1704, 1879, 1952, 1955, 2013, 2016, 2144, 2179, 2227, 2401, 2409, 2629, 2735, 2774, 2851, 3851, 3852, 3912, 4169, 4755, 4767, 4768, 3439, 3561, 3568, 3573, 3635, 3643, 268, 318, 322, 331, 583, 707, 722, 1076, 1160, 1164, 1284, 1285, 1312, 1517, 1705, 1823, 1884, 2004, 2214, 2220, 2372, 2398, 2404, 2431, 2563, 2664, 3917, 4142, 4195, 4258, 4357, 4427, 4638, 4756, 3052, 3137, 3502, 3503, 3601, 3634, 65, 210, 274, 587, 608, 613, 708, 713, 984, 1075, 1167, 1369, 1708, 1738, 1824, 1829, 1844, 1880, 2043, 2076, 2267, 2285, 2294, 2397, 2451, 2463, 2755, 4180, 3032, 3382, 3567, 3636, 3644, 3689, 90, 207, 288, 320, 323, 324, 349, 597, 607, 709, 855, 905, 1166, 1169, 1252, 1437, 1885, 2000, 2010, 2403, 2412, 2456, 2734, 2772, 2926, 2940, 3889, 4800, 4801, 4804, 4900, 3006, 3037, 3090, 3160, 3218, 3231, 3232, 3395, 3543, 3544, 3616, 3639, 3646, 3697, 110, 186, 190, 191, 212, 321, 327, 328, 352, 375, 580, 582, 589, 625, 727, 851, 977, 1077, 1118, 1147, 1243, 1304, 1314, 1741, 1825, 1826, 1834, 1945, 1946, 1947, 2036, 2246, 2248, 2274, 2286, 2287, 2309, 2371, 2405, 2406, 2462, 2568, 2569, 2652, 2667, 2699, 2704, 2705, 2742, 2789, 2790, 3835, 3853, 3899, 3953, 4198, 4292, 4310, 4328, 4355, 4425, 4460, 4512, 4536, 4597, 4837, 3039, 3141, 3165, 3179, 3200, 3381, 3394, 3538, 3542, 3572, 3600, 3731, 3741, 3742, 3754, 3756, 3763, 5, 8, 82, 185, 188, 192, 257, 276, 325, 326, 348, 351, 356, 598, 620, 658, 696, 705, 856, 985, 1048, 1122, 1148, 1149, 1168, 1179, 1239, 1383, 1491, 1644, 1688, 1699, 1845, 1876, 1942, 1988, 2001, 2022, 2242, 2247, 2297, 2303, 2304, 2311, 2416, 2602, 2638, 2812, 3900, 3908, 3938, 3955, 4122, 4157, 4171, 4219, 4259, 4311, 4350, 4513, 4540, 3062, 3108, 3184, 3185, 3190, 3248, 3532, 154, 259, 261, 347, 350, 353, 579, 602, 612, 702, 706, 982, 1078, 1381, 1588, 1828, 1920, 1982, 1985, 2295, 2308, 2374, 2421, 2567, 2615, 2857, 3858, 3905, 3971, 4138, 4509, 4596, 3438, 3531, 3533, 3541, 3560, 3571, 3739, 3760, 3780, 95, 196, 203, 204, 205, 242, 243, 346, 581, 586, 601, 615, 622, 626, 627, 691, 716, 725, 983, 986, 1085, 1089, 1161, 1174, 1204, 1349, 1471, 1506, 1683, 1684, 1686, 1721, 1846, 1886, 2225, 2300, 2310, 2411, 2433, 2441, 2948, 4124, 4154, 4155, 4245, 4270, 4308, 4423, 4479, 4520, 4876, 4901) } + internal val argNames: Map> by lazy { mapOf(5 to arrayOf("n"), 6 to arrayOf("n"), 7 to arrayOf("who"), 8 to arrayOf("title"), 65 to arrayOf("state"), 67 to arrayOf("listen"), 69 to arrayOf("listen"), 82 to arrayOf("version"), 83 to arrayOf("count", "plural"), 89 to arrayOf("size", "limit"), 90 to arrayOf("name"), 91 to arrayOf("dir"), 92 to arrayOf("dir"), 93 to arrayOf("name"), 94 to arrayOf("name"), 95 to arrayOf("path"), 96 to arrayOf("path"), 97 to arrayOf("name"), 108 to arrayOf("first"), 110 to arrayOf("n"), 136 to arrayOf("count", "plural"), 154 to arrayOf("tool"), 158 to arrayOf("n"), 160 to arrayOf("name"), 184 to arrayOf("pid", "cmd"), 185 to arrayOf("title", "ago"), 186 to arrayOf("name", "who", "n"), 188 to arrayOf("line"), 190 to arrayOf("n"), 191 to arrayOf("n"), 192 to arrayOf("n"), 196 to arrayOf("name"), 203 to arrayOf("when"), 204 to arrayOf("text", "when"), 205 to arrayOf("when"), 207 to arrayOf("count", "plural"), 208 to arrayOf("count", "plural"), 210 to arrayOf("took", "ago"), 211 to arrayOf("ago"), 212 to arrayOf("kind"), 214 to arrayOf("kind", "code", "why"), 218 to arrayOf("clock"), 221 to arrayOf("build"), 242 to arrayOf("step"), 243 to arrayOf("turn"), 244 to arrayOf("branch"), 257 to arrayOf("step", "total"), 258 to arrayOf("step", "total"), 259 to arrayOf("when"), 261 to arrayOf("tool"), 268 to arrayOf("count", "plural"), 269 to arrayOf("count", "total"), 274 to arrayOf("old", "new"), 276 to arrayOf("version"), 277 to arrayOf("count"), 278 to arrayOf("tag"), 283 to arrayOf("version"), 284 to arrayOf("old", "version"), 285 to arrayOf("version"), 288 to arrayOf("version"), 299 to arrayOf("project", "location"), 303 to arrayOf("account"), 304 to arrayOf("account"), 316 to arrayOf("n"), 318 to arrayOf("n"), 320 to arrayOf("minute"), 321 to arrayOf("time"), 322 to arrayOf("time"), 323 to arrayOf("clock"), 324 to arrayOf("clock", "took"), 325 to arrayOf("clock"), 326 to arrayOf("clock", "took"), 327 to arrayOf("clock"), 328 to arrayOf("clock", "took"), 329 to arrayOf("clock"), 330 to arrayOf("clock", "took"), 331 to arrayOf("clock"), 346 to arrayOf("target"), 347 to arrayOf("target"), 348 to arrayOf("target"), 349 to arrayOf("target"), 350 to arrayOf("target"), 351 to arrayOf("target"), 352 to arrayOf("target"), 353 to arrayOf("target"), 356 to arrayOf("name"), 375 to arrayOf("t"), 418 to arrayOf("minutes", "plural"), 452 to arrayOf("path"), 579 to arrayOf("count"), 580 to arrayOf("count"), 581 to arrayOf("title"), 582 to arrayOf("path"), 583 to arrayOf("path", "error"), 584 to arrayOf("first", "last", "count"), 585 to arrayOf("task", "step"), 586 to arrayOf("count"), 587 to arrayOf("path"), 588 to arrayOf("count", "plural"), 589 to arrayOf("label"), 590 to arrayOf("provider"), 591 to arrayOf("version"), 593 to arrayOf("key"), 594 to arrayOf("device"), 595 to arrayOf("kind", "device"), 596 to arrayOf("status"), 597 to arrayOf("kind", "title"), 598 to arrayOf("layer"), 599 to arrayOf("error"), 600 to arrayOf("page"), 601 to arrayOf("page", "kind", "total"), 602 to arrayOf("reason"), 603 to arrayOf("tag"), 604 to arrayOf("tag"), 605 to arrayOf("title"), 606 to arrayOf("title"), 607 to arrayOf("text", "time"), 608 to arrayOf("kind", "device"), 609 to arrayOf("device"), 610 to arrayOf("device"), 611 to arrayOf("word"), 612 to arrayOf("word", "kind", "count"), 613 to arrayOf("error"), 614 to arrayOf("count"), 615 to arrayOf("time", "relative", "rel", "zoned", "zone"), 616 to arrayOf("zone"), 617 to arrayOf("zone"), 618 to arrayOf("id", "state", "count", "age"), 619 to arrayOf("id"), 620 to arrayOf("name"), 621 to arrayOf("name"), 622 to arrayOf("clock", "count", "plural"), 623 to arrayOf("name"), 624 to arrayOf("name"), 625 to arrayOf("name"), 626 to arrayOf("count"), 627 to arrayOf("count"), 631 to arrayOf("name", "state"), 632 to arrayOf("author", "place", "state"), 633 to arrayOf("title", "state"), 648 to arrayOf("error"), 649 to arrayOf("error"), 650 to arrayOf("host"), 655 to arrayOf("email"), 658 to arrayOf("version"), 660 to arrayOf("first", "last", "count"), 661 to arrayOf("n"), 662 to arrayOf("n"), 691 to arrayOf("ref"), 696 to arrayOf("name"), 697 to arrayOf("name"), 699 to arrayOf("name"), 700 to arrayOf("name"), 701 to arrayOf("action"), 702 to arrayOf("label"), 703 to arrayOf("count", "plural"), 705 to arrayOf("path"), 706 to arrayOf("word", "kind", "count"), 707 to arrayOf("name"), 708 to arrayOf("name"), 709 to arrayOf("name"), 710 to arrayOf("name"), 711 to arrayOf("url"), 712 to arrayOf("count"), 713 to arrayOf("count"), 714 to arrayOf("device"), 715 to arrayOf("device"), 716 to arrayOf("count"), 717 to arrayOf("label"), 718 to arrayOf("label"), 719 to arrayOf("label"), 720 to arrayOf("title"), 721 to arrayOf("title"), 722 to arrayOf("state"), 723 to arrayOf("open", "kind"), 725 to arrayOf("count"), 726 to arrayOf("email"), 727 to arrayOf("email"), 851 to arrayOf("at", "count"), 855 to arrayOf("name"), 856 to arrayOf("name"), 905 to arrayOf("name"), 906 to arrayOf("name"), 977 to arrayOf("count"), 980 to arrayOf("name"), 981 to arrayOf("name", "count"), 982 to arrayOf("label", "n"), 983 to arrayOf("action"), 984 to arrayOf("count", "plural"), 985 to arrayOf("count"), 986 to arrayOf("waiting", "busy", "done"), 990 to arrayOf("count", "plural"), 1023 to arrayOf("name"), 1024 to arrayOf("name"), 1026 to arrayOf("seconds", "long"), 1027 to arrayOf("size", "triangles", "delayed", "waited", "built"), 1028 to arrayOf("size", "delayed", "waited"), 1044 to arrayOf("name"), 1047 to arrayOf("name"), 1048 to arrayOf("count"), 1075 to arrayOf("state"), 1076 to arrayOf("bytes"), 1077 to arrayOf("count"), 1078 to arrayOf("when"), 1079 to arrayOf("state", "name"), 1080 to arrayOf("name", "state"), 1081 to arrayOf("reason", "code"), 1084 to arrayOf("kind", "code"), 1085 to arrayOf("number"), 1089 to arrayOf("x", "y"), 1096 to arrayOf("state"), 1097 to arrayOf("label", "example"), 1109 to arrayOf("text"), 1117 to arrayOf("error"), 1118 to arrayOf("kind", "count"), 1121 to arrayOf("name"), 1122 to arrayOf("n"), 1147 to arrayOf("ago"), 1148 to arrayOf("name"), 1149 to arrayOf("kind", "place", "hub"), 1159 to arrayOf("label"), 1160 to arrayOf("word"), 1161 to arrayOf("count"), 1164 to arrayOf("hub"), 1166 to arrayOf("count"), 1167 to arrayOf("state"), 1168 to arrayOf("label"), 1169 to arrayOf("label"), 1174 to arrayOf("state", "text"), 1175 to arrayOf("text"), 1177 to arrayOf("question"), 1179 to arrayOf("label"), 1183 to arrayOf("title"), 1204 to arrayOf("count"), 1205 to arrayOf("name", "counts"), 1219 to arrayOf("n"), 1221 to arrayOf("mode"), 1238 to arrayOf("first", "last", "total"), 1239 to arrayOf("count"), 1242 to arrayOf("n"), 1243 to arrayOf("who", "name"), 1251 to arrayOf("name"), 1252 to arrayOf("when"), 1259 to arrayOf("why"), 1276 to arrayOf("name"), 1283 to arrayOf("kind"), 1284 to arrayOf("title"), 1285 to arrayOf("title"), 1286 to arrayOf("title"), 1287 to arrayOf("title"), 1292 to arrayOf("name"), 1302 to arrayOf("heard"), 1303 to arrayOf("out", "heard"), 1304 to arrayOf("heard"), 1312 to arrayOf("name", "mb"), 1314 to arrayOf("name"), 1317 to arrayOf("platform"), 1321 to arrayOf("heard", "out", "yes"), 1331 to arrayOf("name", "done", "total", "percent"), 1332 to arrayOf("name", "done"), 1333 to arrayOf("name"), 1334 to arrayOf("error"), 1336 to arrayOf("mb"), 1342 to arrayOf("mb"), 1345 to arrayOf("n"), 1346 to arrayOf("n"), 1349 to arrayOf("n"), 1350 to arrayOf("pct"), 1351 to arrayOf("px"), 1352 to arrayOf("version"), 1353 to arrayOf("tag"), 1354 to arrayOf("tag"), 1355 to arrayOf("hub"), 1359 to arrayOf("tag"), 1360 to arrayOf("tag"), 1367 to arrayOf("when"), 1369 to arrayOf("tag"), 1370 to arrayOf("tag", "when"), 1371 to arrayOf("tag"), 1372 to arrayOf("tag", "when"), 1376 to arrayOf("channel"), 1377 to arrayOf("tag"), 1378 to arrayOf("app", "hub"), 1379 to arrayOf("hub", "app"), 1381 to arrayOf("key"), 1382 to arrayOf("key"), 1383 to arrayOf("why"), 1437 to arrayOf("n"), 1470 to arrayOf("title"), 1471 to arrayOf("note"), 1491 to arrayOf("title"), 1492 to arrayOf("more"), 1506 to arrayOf("bots"), 1517 to arrayOf("name"), 1518 to arrayOf("name", "time"), 1519 to arrayOf("name", "n"), 1520 to arrayOf("name", "time", "n"), 1521 to arrayOf("to"), 1522 to arrayOf("to", "step"), 1524 to arrayOf("note"), 1567 to arrayOf("why"), 1572 to arrayOf("e"), 1578 to arrayOf("max"), 1579 to arrayOf("secs", "max", "mib"), 1588 to arrayOf("path"), 1621 to arrayOf("secs"), 1644 to arrayOf("pct", "scope"), 1652 to arrayOf("n"), 1653 to arrayOf("n"), 1654 to arrayOf("n"), 1655 to arrayOf("n"), 1683 to arrayOf("d", "h"), 1684 to arrayOf("h", "m"), 1685 to arrayOf("m"), 1686 to arrayOf("window", "pct"), 1688 to arrayOf("when"), 1690 to arrayOf("label", "e"), 1692 to arrayOf("from", "to", "total"), 1696 to arrayOf("messages", "lines", "left"), 1698 to arrayOf("pct", "view", "max"), 1699 to arrayOf("pct"), 1700 to arrayOf("done", "total"), 1702 to arrayOf("n"), 1703 to arrayOf("n"), 1704 to arrayOf("time"), 1705 to arrayOf("view", "max"), 1706 to arrayOf("view", "max"), 1708 to arrayOf("more"), 1712 to arrayOf("n"), 1721 to arrayOf("n"), 1727 to arrayOf("page"), 1738 to arrayOf("title"), 1741 to arrayOf("n"), 1758 to arrayOf("name"), 1823 to arrayOf("line"), 1824 to arrayOf("quote"), 1825 to arrayOf("n"), 1826 to arrayOf("n"), 1827 to arrayOf("n"), 1828 to arrayOf("n"), 1829 to arrayOf("n"), 1834 to arrayOf("held"), 1835 to arrayOf("machine"), 1836 to arrayOf("machine"), 1844 to arrayOf("count", "total"), 1845 to arrayOf("count"), 1846 to arrayOf("n"), 1858 to arrayOf("name"), 1860 to arrayOf("n", "c", "total"), 1861 to arrayOf("n", "c"), 1862 to arrayOf("n", "c", "total", "before"), 1863 to arrayOf("n", "c", "before"), 1875 to arrayOf("name"), 1876 to arrayOf("path"), 1879 to arrayOf("file"), 1880 to arrayOf("path", "n"), 1881 to arrayOf("why"), 1882 to arrayOf("n"), 1883 to arrayOf("name"), 1884 to arrayOf("name"), 1885 to arrayOf("name"), 1886 to arrayOf("n"), 1887 to arrayOf("shown", "n"), 1890 to arrayOf("path"), 1892 to arrayOf("n"), 1901 to arrayOf("status"), 1918 to arrayOf("name", "pct"), 1919 to arrayOf("name", "mb"), 1920 to arrayOf("name"), 1921 to arrayOf("name", "why"), 1939 to arrayOf("machine"), 1942 to arrayOf("n"), 1943 to arrayOf("ref"), 1944 to arrayOf("ref", "sheet"), 1945 to arrayOf("name"), 1946 to arrayOf("name"), 1947 to arrayOf("file", "folder"), 1948 to arrayOf("name", "error"), 1949 to arrayOf("name", "status"), 1950 to arrayOf("name", "error"), 1952 to arrayOf("name"), 1955 to arrayOf("code"), 1956 to arrayOf("error"), 1959 to arrayOf("error"), 1960 to arrayOf("error"), 1964 to arrayOf("error"), 1982 to arrayOf("done", "of"), 1984 to arrayOf("why"), 1985 to arrayOf("path"), 1986 to arrayOf("error"), 1987 to arrayOf("secs"), 1988 to arrayOf("secs"), 2000 to arrayOf("code"), 2001 to arrayOf("code"), 2004 to arrayOf("state"), 2009 to arrayOf("hide", "copy", "paste"), 2010 to arrayOf("n"), 2013 to arrayOf("name"), 2014 to arrayOf("name", "folder"), 2015 to arrayOf("name"), 2016 to arrayOf("name", "percent"), 2022 to arrayOf("folder"), 2032 to arrayOf("w", "h"), 2036 to arrayOf("path"), 2039 to arrayOf("why"), 2040 to arrayOf("mb"), 2043 to arrayOf("n"), 2044 to arrayOf("delete", "undo"), 2045 to arrayOf("delete", "undo"), 2046 to arrayOf("undo"), 2067 to arrayOf("what", "secs"), 2068 to arrayOf("file", "holder"), 2075 to arrayOf("what"), 2076 to arrayOf("what"), 2077 to arrayOf("editor", "why"), 2096 to arrayOf("files"), 2106 to arrayOf("why"), 2108 to arrayOf("title"), 2109 to arrayOf("title"), 2110 to arrayOf("version"), 2111 to arrayOf("version", "size", "folder"), 2112 to arrayOf("version", "size", "folder"), 2121 to arrayOf("title"), 2122 to arrayOf("dir", "files"), 2128 to arrayOf("why"), 2130 to arrayOf("code"), 2144 to arrayOf("origin"), 2146 to arrayOf("why"), 2157 to arrayOf("dir"), 2158 to arrayOf("path"), 2159 to arrayOf("home", "other"), 2161 to arrayOf("path"), 2162 to arrayOf("code", "log"), 2163 to arrayOf("log"), 2165 to arrayOf("addr"), 2178 to arrayOf("home"), 2179 to arrayOf("addr"), 2194 to arrayOf("dir", "why"), 2195 to arrayOf("dir"), 2210 to arrayOf("phase"), 2212 to arrayOf("why"), 2213 to arrayOf("what"), 2214 to arrayOf("code"), 2220 to arrayOf("label"), 2225 to arrayOf("kind"), 2227 to arrayOf("project"), 2240 to arrayOf("what"), 2242 to arrayOf("when"), 2246 to arrayOf("n"), 2247 to arrayOf("n"), 2248 to arrayOf("n"), 2250 to arrayOf("agent"), 2251 to arrayOf("effort"), 2253 to arrayOf("n"), 2255 to arrayOf("model"), 2267 to arrayOf("word"), 2274 to arrayOf("more", "step"), 2278 to arrayOf("name"), 2282 to arrayOf("max", "skipped"), 2285 to arrayOf("name"), 2286 to arrayOf("n"), 2287 to arrayOf("name"), 2288 to arrayOf("name"), 2294 to arrayOf("n"), 2295 to arrayOf("name"), 2297 to arrayOf("price"), 2300 to arrayOf("name"), 2302 to arrayOf("name"), 2303 to arrayOf("name"), 2304 to arrayOf("name"), 2305 to arrayOf("text"), 2308 to arrayOf("key"), 2309 to arrayOf("key"), 2310 to arrayOf("pct"), 2311 to arrayOf("when"), 2322 to arrayOf("n", "upstream"), 2325 to arrayOf("mb"), 2335 to arrayOf("path"), 2336 to arrayOf("path"), 2358 to arrayOf("id"), 2362 to arrayOf("model"), 2363 to arrayOf("platform"), 2364 to arrayOf("version"), 2367 to arrayOf("version", "from", "into"), 2368 to arrayOf("version", "from"), 2371 to arrayOf("version", "path"), 2372 to arrayOf("version", "path"), 2373 to arrayOf("version", "pin", "from"), 2374 to arrayOf("path"), 2375 to arrayOf("version", "path"), 2376 to arrayOf("version", "path", "set"), 2390 to arrayOf("turns", "input", "cread", "cwrite", "output", "cost"), 2397 to arrayOf("tool"), 2398 to arrayOf("tool"), 2399 to arrayOf("tool", "word"), 2400 to arrayOf("tool", "word"), 2401 to arrayOf("tool"), 2402 to arrayOf("tool"), 2403 to arrayOf("due"), 2404 to arrayOf("due"), 2405 to arrayOf("due"), 2406 to arrayOf("due"), 2407 to arrayOf("zone"), 2408 to arrayOf("zone"), 2409 to arrayOf("zone"), 2410 to arrayOf("zone"), 2411 to arrayOf("n"), 2412 to arrayOf("who"), 2413 to arrayOf("n", "who"), 2414 to arrayOf("harness"), 2415 to arrayOf("path"), 2416 to arrayOf("path"), 2417 to arrayOf("path"), 2420 to arrayOf("error", "line"), 2421 to arrayOf("label"), 2429 to arrayOf("who"), 2430 to arrayOf("who"), 2431 to arrayOf("label", "left", "when"), 2432 to arrayOf("left"), 2433 to arrayOf("name", "left"), 2434 to arrayOf("used"), 2435 to arrayOf("used", "limit"), 2436 to arrayOf("used", "reason"), 2437 to arrayOf("used", "limit", "reason"), 2439 to arrayOf("provider"), 2440 to arrayOf("used", "window", "pct"), 2441 to arrayOf("rate"), 2451 to arrayOf("n", "r"), 2456 to arrayOf("time", "n"), 2460 to arrayOf("n", "m"), 2462 to arrayOf("pct"), 2463 to arrayOf("cost", "n"), 2467 to arrayOf("in", "out", "cread", "cwrite"), 2468 to arrayOf("in", "out", "cread", "cwrite", "n"), 2477 to arrayOf("turns", "input", "cread", "cwrite", "output"), 2478 to arrayOf("left", "when"), 2479 to arrayOf("left", "when"), 2480 to arrayOf("left", "when"), 2481 to arrayOf("left", "when"), 2505 to arrayOf("n"), 2528 to arrayOf("when"), 2535 to arrayOf("phrase", "now"), 2546 to arrayOf("s"), 2552 to arrayOf("now"), 2553 to arrayOf("now", "nudge", "sent", "undone"), 2563 to arrayOf("e"), 2564 to arrayOf("a", "ams", "b", "bms"), 2565 to arrayOf("ms"), 2566 to arrayOf("e"), 2567 to arrayOf("t"), 2568 to arrayOf("t"), 2569 to arrayOf("t"), 2575 to arrayOf("why"), 2585 to arrayOf("apps"), 2595 to arrayOf("n"), 2596 to arrayOf("n", "k"), 2601 to arrayOf("stt", "conf"), 2602 to arrayOf("words"), 2612 to arrayOf("into"), 2615 to arrayOf("origin"), 2627 to arrayOf("url"), 2629 to arrayOf("url"), 2637 to arrayOf("i", "n"), 2638 to arrayOf("d", "n"), 2647 to arrayOf("version"), 2648 to arrayOf("version"), 2649 to arrayOf("version"), 2652 to arrayOf("path"), 2660 to arrayOf("addr"), 2664 to arrayOf("label"), 2666 to arrayOf("label"), 2667 to arrayOf("label"), 2671 to arrayOf("label"), 2676 to arrayOf("from"), 2693 to arrayOf("done", "of"), 2699 to arrayOf("n"), 2700 to arrayOf("t", "m"), 2701 to arrayOf("m"), 2702 to arrayOf("b", "m"), 2703 to arrayOf("r", "p"), 2704 to arrayOf("n"), 2705 to arrayOf("n"), 2706 to arrayOf("n"), 2707 to arrayOf("n"), 2710 to arrayOf("n"), 2712 to arrayOf("n"), 2720 to arrayOf("n"), 2726 to arrayOf("name", "gb", "path"), 2728 to arrayOf("path", "why"), 2730 to arrayOf("names"), 2732 to arrayOf("why"), 2733 to arrayOf("p", "pn", "t", "tn", "e", "en"), 2734 to arrayOf("done", "total"), 2735 to arrayOf("n"), 2736 to arrayOf("what"), 2737 to arrayOf("n"), 2738 to arrayOf("n"), 2741 to arrayOf("what"), 2742 to arrayOf("n"), 2744 to arrayOf("why", "from"), 2745 to arrayOf("why"), 2751 to arrayOf("path"), 2752 to arrayOf("path", "who"), 2753 to arrayOf("path"), 2754 to arrayOf("path", "cmd"), 2755 to arrayOf("version", "path"), 2756 to arrayOf("version", "path"), 2757 to arrayOf("version", "path", "who"), 2758 to arrayOf("version", "path"), 2759 to arrayOf("version", "path", "cmd"), 2762 to arrayOf("cmd"), 2772 to arrayOf("name", "version", "path"), 2773 to arrayOf("path", "why"), 2774 to arrayOf("name"), 2776 to arrayOf("version", "cli"), 2777 to arrayOf("cli"), 2779 to arrayOf("version"), 2780 to arrayOf("version"), 2782 to arrayOf("version"), 2784 to arrayOf("version"), 2786 to arrayOf("computer"), 2787 to arrayOf("version", "cli"), 2788 to arrayOf("cli"), 2789 to arrayOf("version", "cli"), 2790 to arrayOf("cli"), 2812 to arrayOf("n"), 2817 to arrayOf("code"), 2819 to arrayOf("e"), 2832 to arrayOf("n"), 2837 to arrayOf("channel"), 2851 to arrayOf("project"), 2857 to arrayOf("n"), 2869 to arrayOf("m"), 2881 to arrayOf("m"), 2884 to arrayOf("m"), 2891 to arrayOf("pages"), 2893 to arrayOf("name"), 2896 to arrayOf("name"), 2905 to arrayOf("d", "n"), 2926 to arrayOf("n", "tools"), 2927 to arrayOf("n", "tools", "d"), 2928 to arrayOf("n", "d"), 2929 to arrayOf("n", "what"), 2930 to arrayOf("n", "d", "what"), 2934 to arrayOf("head"), 2940 to arrayOf("name", "path"), 2946 to arrayOf("page", "net", "near"), 2947 to arrayOf("page", "what"), 2948 to arrayOf("ref"), 2952 to arrayOf("page"), 2975 to arrayOf("n"), 2976 to arrayOf("n"), 2977 to arrayOf("n"), 2979 to arrayOf("hub"), 3001 to arrayOf("project"), 3003 to arrayOf("n"), 3004 to arrayOf("n"), 3005 to arrayOf("word"), 3006 to arrayOf("n"), 3024 to arrayOf("name"), 3032 to arrayOf("answer"), 3037 to arrayOf("why"), 3039 to arrayOf("hub"), 3045 to arrayOf("from", "to"), 3052 to arrayOf("project"), 3062 to arrayOf("name"), 3066 to arrayOf("n"), 3072 to arrayOf("code"), 3073 to arrayOf("hub"), 3074 to arrayOf("hub"), 3075 to arrayOf("hub"), 3089 to arrayOf("n"), 3090 to arrayOf("n"), 3106 to arrayOf("status"), 3108 to arrayOf("status"), 3137 to arrayOf("project"), 3141 to arrayOf("code"), 3143 to arrayOf("why"), 3151 to arrayOf("title"), 3157 to arrayOf("title"), 3159 to arrayOf("q"), 3160 to arrayOf("title"), 3165 to arrayOf("room"), 3169 to arrayOf("q"), 3179 to arrayOf("title"), 3184 to arrayOf("n"), 3185 to arrayOf("n"), 3190 to arrayOf("at"), 3198 to arrayOf("size"), 3200 to arrayOf("n", "total"), 3217 to arrayOf("n"), 3218 to arrayOf("what"), 3221 to arrayOf("device"), 3222 to arrayOf("device"), 3231 to arrayOf("word", "count"), 3232 to arrayOf("heard"), 3244 to arrayOf("files"), 3245 to arrayOf("files"), 3248 to arrayOf("name"), 3276 to arrayOf("n"), 3277 to arrayOf("n"), 3288 to arrayOf("n"), 3322 to arrayOf("root"), 3323 to arrayOf("path"), 3346 to arrayOf("name"), 3349 to arrayOf("until"), 3350 to arrayOf("error"), 3357 to arrayOf("url"), 3361 to arrayOf("name"), 3362 to arrayOf("name"), 3370 to arrayOf("code", "hub", "until"), 3371 to arrayOf("url"), 3375 to arrayOf("kinds"), 3376 to arrayOf("address"), 3378 to arrayOf("address"), 3381 to arrayOf("url"), 3382 to arrayOf("url"), 3383 to arrayOf("url"), 3384 to arrayOf("url", "via"), 3389 to arrayOf("name"), 3390 to arrayOf("url", "check", "left"), 3392 to arrayOf("check"), 3393 to arrayOf("address"), 3394 to arrayOf("name"), 3395 to arrayOf("error"), 3396 to arrayOf("url"), 3397 to arrayOf("url"), 3404 to arrayOf("code", "address", "left"), 3410 to arrayOf("name"), 3411 to arrayOf("name"), 3422 to arrayOf("address"), 3429 to arrayOf("code", "body"), 3432 to arrayOf("code", "body"), 3438 to arrayOf("window", "used"), 3439 to arrayOf("window", "used", "when"), 3440 to arrayOf("window", "used"), 3441 to arrayOf("window", "used", "when"), 3442 to arrayOf("provider"), 3454 to arrayOf("label"), 3455 to arrayOf("when"), 3457 to arrayOf("provider"), 3458 to arrayOf("provider", "title", "why"), 3478 to arrayOf("reason"), 3486 to arrayOf("code"), 3495 to arrayOf("name"), 3498 to arrayOf("version"), 3499 to arrayOf("version"), 3500 to arrayOf("version"), 3502 to arrayOf("version"), 3503 to arrayOf("version"), 3504 to arrayOf("version"), 3505 to arrayOf("version", "why"), 3506 to arrayOf("version"), 3508 to arrayOf("code"), 3524 to arrayOf("name"), 3531 to arrayOf("count"), 3532 to arrayOf("title"), 3533 to arrayOf("name"), 3536 to arrayOf("n", "holder"), 3537 to arrayOf("n", "title"), 3538 to arrayOf("title"), 3541 to arrayOf("n"), 3542 to arrayOf("n"), 3543 to arrayOf("n"), 3544 to arrayOf("n"), 3545 to arrayOf("harness", "typed", "type", "remote", "host", "wt", "branch"), 3555 to arrayOf("pid"), 3560 to arrayOf("left"), 3561 to arrayOf("left"), 3567 to arrayOf("left"), 3568 to arrayOf("left"), 3569 to arrayOf("left"), 3570 to arrayOf("left"), 3571 to arrayOf("label", "left"), 3572 to arrayOf("when"), 3573 to arrayOf("used"), 3574 to arrayOf("used", "limit"), 3596 to arrayOf("tracking"), 3600 to arrayOf("total"), 3601 to arrayOf("price"), 3602 to arrayOf("price"), 3607 to arrayOf("n"), 3608 to arrayOf("parts"), 3609 to arrayOf("note"), 3610 to arrayOf("error"), 3611 to arrayOf("error", "parts"), 3616 to arrayOf("state"), 3617 to arrayOf("name", "path"), 3618 to arrayOf("name", "path", "why"), 3620 to arrayOf("code"), 3624 to arrayOf("detail"), 3626 to arrayOf("why"), 3627 to arrayOf("parts"), 3630 to arrayOf("build", "to"), 3631 to arrayOf("build"), 3632 to arrayOf("build", "skip"), 3634 to arrayOf("why"), 3635 to arrayOf("why"), 3636 to arrayOf("build"), 3637 to arrayOf("build", "why"), 3638 to arrayOf("build"), 3639 to arrayOf("build"), 3643 to arrayOf("build"), 3644 to arrayOf("build"), 3646 to arrayOf("build"), 3653 to arrayOf("build"), 3687 to arrayOf("step"), 3688 to arrayOf("p", "pt", "t", "tt", "e", "et"), 3689 to arrayOf("done", "total"), 3690 to arrayOf("n"), 3691 to arrayOf("n"), 3692 to arrayOf("n"), 3697 to arrayOf("n"), 3700 to arrayOf("why"), 3701 to arrayOf("why", "from"), 3702 to arrayOf("error"), 3704 to arrayOf("n"), 3705 to arrayOf("n"), 3709 to arrayOf("n"), 3712 to arrayOf("name", "gb", "path"), 3713 to arrayOf("path", "why"), 3714 to arrayOf("names"), 3716 to arrayOf("why"), 3727 to arrayOf("n", "total"), 3731 to arrayOf("title"), 3733 to arrayOf("n"), 3737 to arrayOf("name"), 3738 to arrayOf("title"), 3739 to arrayOf("note"), 3741 to arrayOf("machine"), 3742 to arrayOf("machines"), 3743 to arrayOf("machine"), 3754 to arrayOf("n"), 3756 to arrayOf("n"), 3760 to arrayOf("name"), 3763 to arrayOf("name"), 3780 to arrayOf("why"), 3786 to arrayOf("project"), 3827 to arrayOf("path"), 3828 to arrayOf("path"), 3830 to arrayOf("have", "total"), 3835 to arrayOf("n"), 3844 to arrayOf("hub"), 3847 to arrayOf("title"), 3851 to arrayOf("project"), 3852 to arrayOf("project"), 3853 to arrayOf("n"), 3854 to arrayOf("hub"), 3856 to arrayOf("n"), 3857 to arrayOf("n"), 3858 to arrayOf("model"), 3864 to arrayOf("name"), 3883 to arrayOf("word"), 3889 to arrayOf("answer"), 3899 to arrayOf("version", "build"), 3900 to arrayOf("hub"), 3905 to arrayOf("name"), 3908 to arrayOf("when", "who", "mark"), 3912 to arrayOf("who"), 3916 to arrayOf("time"), 3917 to arrayOf("address"), 3919 to arrayOf("kind", "name"), 3934 to arrayOf("title"), 3935 to arrayOf("query"), 3938 to arrayOf("room"), 3939 to arrayOf("query"), 3941 to arrayOf("n"), 3942 to arrayOf("n"), 3943 to arrayOf("n"), 3949 to arrayOf("size"), 3953 to arrayOf("n"), 3954 to arrayOf("n"), 3955 to arrayOf("n"), 3969 to arrayOf("status"), 3971 to arrayOf("status"), 4122 to arrayOf("code"), 4124 to arrayOf("n"), 4126 to arrayOf("why"), 4138 to arrayOf("done", "of"), 4142 to arrayOf("thread"), 4145 to arrayOf("n"), 4153 to arrayOf("title"), 4154 to arrayOf("note"), 4155 to arrayOf("label"), 4156 to arrayOf("machine"), 4157 to arrayOf("machine"), 4164 to arrayOf("at", "total"), 4165 to arrayOf("at", "total"), 4169 to arrayOf("machine"), 4170 to arrayOf("machine"), 4171 to arrayOf("machines"), 4173 to arrayOf("device"), 4180 to arrayOf("price"), 4181 to arrayOf("price"), 4188 to arrayOf("home"), 4193 to arrayOf("from"), 4195 to arrayOf("note"), 4196 to arrayOf("note"), 4198 to arrayOf("v"), 4199 to arrayOf("v"), 4200 to arrayOf("v", "who"), 4202 to arrayOf("who"), 4203 to arrayOf("v"), 4205 to arrayOf("v", "cmd"), 4206 to arrayOf("cmd"), 4211 to arrayOf("v", "path"), 4212 to arrayOf("v", "note"), 4213 to arrayOf("v"), 4218 to arrayOf("tool"), 4219 to arrayOf("tool"), 4244 to arrayOf("n", "w"), 4245 to arrayOf("why"), 4246 to arrayOf("state", "why"), 4258 to arrayOf("project"), 4259 to arrayOf("n"), 4270 to arrayOf("why"), 4276 to arrayOf("name"), 4287 to arrayOf("project"), 4292 to arrayOf("n"), 4300 to arrayOf("names"), 4308 to arrayOf("dest"), 4310 to arrayOf("repo"), 4311 to arrayOf("repo"), 4313 to arrayOf("url"), 4328 to arrayOf("time"), 4350 to arrayOf("group"), 4354 to arrayOf("project"), 4355 to arrayOf("n"), 4356 to arrayOf("n"), 4357 to arrayOf("n"), 4365 to arrayOf("n"), 4422 to arrayOf("n"), 4423 to arrayOf("n"), 4424 to arrayOf("a", "b"), 4425 to arrayOf("n"), 4427 to arrayOf("parts", "lines"), 4428 to arrayOf("n"), 4459 to arrayOf("what", "project", "fab"), 4460 to arrayOf("rev", "day"), 4468 to arrayOf("n"), 4479 to arrayOf("layer"), 4480 to arrayOf("n"), 4485 to arrayOf("board"), 4497 to arrayOf("others"), 4498 to arrayOf("must", "should", "notes"), 4499 to arrayOf("id", "w"), 4509 to arrayOf("what"), 4512 to arrayOf("why"), 4513 to arrayOf("why"), 4520 to arrayOf("n"), 4536 to arrayOf("price", "n"), 4537 to arrayOf("n", "need"), 4538 to arrayOf("n"), 4539 to arrayOf("n"), 4540 to arrayOf("cost"), 4541 to arrayOf("cost"), 4554 to arrayOf("day", "n"), 4555 to arrayOf("day"), 4556 to arrayOf("cost", "n", "lines"), 4557 to arrayOf("stock", "price"), 4558 to arrayOf("lines"), 4579 to arrayOf("host"), 4590 to arrayOf("n"), 4591 to arrayOf("a", "b"), 4592 to arrayOf("n"), 4593 to arrayOf("n"), 4596 to arrayOf("day"), 4597 to arrayOf("n"), 4638 to arrayOf("turn"), 4752 to arrayOf("text"), 4755 to arrayOf("repo", "dest"), 4756 to arrayOf("repo", "dest"), 4757 to arrayOf("repo"), 4762 to arrayOf("dir"), 4763 to arrayOf("dir"), 4767 to arrayOf("editor", "job", "secs"), 4768 to arrayOf("editor", "secs"), 4769 to arrayOf("editor"), 4786 to arrayOf("time"), 4792 to arrayOf("status"), 4800 to arrayOf("time"), 4801 to arrayOf("time", "dur"), 4804 to arrayOf("answer"), 4808 to arrayOf("type"), 4809 to arrayOf("max"), 4837 to arrayOf("bytes", "tokens"), 4870 to arrayOf("what"), 4874 to arrayOf("n"), 4876 to arrayOf("n"), 4900 to arrayOf("n"), 4901 to arrayOf("done", "total"), 4909 to arrayOf("v"), 4910 to arrayOf("x", "y"), 4916 to arrayOf("machine")) } val common_cancel: String get() = Tr.s(0) val common_delete: String get() = Tr.s(1) @@ -27508,592 +27572,605 @@ object Msg { val ios_clone_signin_done: String get() = Tr.s(4315) val ios_clone_signin_open: String get() = Tr.s(4316) val ios_clone_loading: String get() = Tr.s(4317) - val sidebar_sections_needs: String get() = Tr.s(4318) - val sidebar_sections_pinned: String get() = Tr.s(4319) - val sidebar_sections_active: String get() = Tr.s(4320) - val sidebar_sections_quiet: String get() = Tr.s(4321) - val sidebar_sections_quiet_hint: String get() = Tr.s(4322) - val sidebar_sections_running_word: String get() = Tr.s(4323) - val sidebar_sections_recent: String get() = Tr.s(4324) - val sidebar_sections_limit: String get() = Tr.s(4325) - val sidebar_sections_cut: String get() = Tr.s(4326) - val sidebar_sections_monitoring: String get() = Tr.s(4327) - val sidebar_sections_stopped: String get() = Tr.s(4328) - val sidebar_sections_done: String get() = Tr.s(4329) - val sidebar_sections_failed: String get() = Tr.s(4330) - val sidebar_sections_rename: String get() = Tr.s(4331) - val sidebar_sections_pin: String get() = Tr.s(4332) - val sidebar_sections_unpin: String get() = Tr.s(4333) - val sidebar_sections_quiet_make: String get() = Tr.s(4334) - val sidebar_sections_quiet_back: String get() = Tr.s(4335) - val sidebar_sections_quiet_hint2: String get() = Tr.s(4336) - fun gpui_sections_move_to(group: Any): String = Tr.f(4337, arrayOf(group)) - val sidebar_sections_move: String get() = Tr.s(4338) - val sidebar_sections_new_group: String get() = Tr.s(4339) - val sidebar_sections_new_group_title: String get() = Tr.s(4340) - fun sidebar_sections_remove_ask(project: Any): String = Tr.f(4341, arrayOf(project)) - fun gpui_sections_running(n: Number): String = Tr.f(4342, arrayOf(n)) - fun gpui_sections_rest(n: Number): String = Tr.f(4343, arrayOf(n)) - fun gpui_projects_mech(n: Any): String = Tr.f(4344, arrayOf(n)) - val gpui_open_folder: String get() = Tr.s(4345) - val gpui_picker_none: String get() = Tr.s(4346) - val gpui_picker_key_select: String get() = Tr.s(4347) - val gpui_picker_key_into: String get() = Tr.s(4348) - val gpui_picker_key_complete: String get() = Tr.s(4349) - val gpui_picker_key_open: String get() = Tr.s(4350) - val gpui_picker_added: String get() = Tr.s(4351) - fun gpui_picker_more_typed(n: Any): String = Tr.f(4352, arrayOf(n)) - val gpui_clone_tab: String get() = Tr.s(4353) - val gpui_clone_change: String get() = Tr.s(4354) - val gpui_clone_thread: String get() = Tr.s(4355) - val gpui_clone_retry: String get() = Tr.s(4356) - val gpui_clone_signin: String get() = Tr.s(4357) - val gpui_clone_back: String get() = Tr.s(4358) - val gpui_clone_open_thread: String get() = Tr.s(4359) - val gpui_clone_open_project: String get() = Tr.s(4360) - val gpui_clone_private: String get() = Tr.s(4361) - val gpui_clone_loading: String get() = Tr.s(4362) - val gpui_clone_signin_list: String get() = Tr.s(4363) - val gpui_clone_signin_code: String get() = Tr.s(4364) - val gpui_clone_signin_asking: String get() = Tr.s(4365) - val gpui_clone_signin_done: String get() = Tr.s(4366) - val gpui_clone_cancel: String get() = Tr.s(4367) - val gpui_picker_key_pick: String get() = Tr.s(4368) - val gpui_clone_phase_connecting: String get() = Tr.s(4369) - val gpui_clone_phase_receiving: String get() = Tr.s(4370) - val gpui_clone_phase_resolving: String get() = Tr.s(4371) - val gpui_clone_phase_updating: String get() = Tr.s(4372) - val gpui_clone_phase_counting: String get() = Tr.s(4373) - val gpui_clone_phase_compressing: String get() = Tr.s(4374) - val gpui_clone_phase_lfs: String get() = Tr.s(4375) - val gpui_clone_phase_adding: String get() = Tr.s(4376) - val gpui_clone_phase_starting: String get() = Tr.s(4377) - val gpui_assembly: String get() = Tr.s(4378) - val gpui_mech: String get() = Tr.s(4379) - val gpui_readme: String get() = Tr.s(4380) - val gpui_board: String get() = Tr.s(4381) - val gpui_schematic: String get() = Tr.s(4382) - val gpui_view_three_d: String get() = Tr.s(4383) - val gpui_files: String get() = Tr.s(4384) - val gpui_usage_bot: String get() = Tr.s(4385) - val gpui_usage_tokens: String get() = Tr.s(4386) - val gpui_usage_accounts_tip: String get() = Tr.s(4387) - val gpui_usage_feeds: String get() = Tr.s(4388) - val gpui_usage_lanes: String get() = Tr.s(4389) - val gpui_usage_turn_live: String get() = Tr.s(4390) - val gpui_usage_chat: String get() = Tr.s(4391) - val gpui_usage_today: String get() = Tr.s(4392) - val gpui_usage_prefs: String get() = Tr.s(4393) - val gpui_usage_handover: String get() = Tr.s(4394) - val gpui_usage_none_waiting: String get() = Tr.s(4395) - val gpui_usage_session: String get() = Tr.s(4396) - val gpui_usage_last_handover: String get() = Tr.s(4397) - val gpui_usage_triage: String get() = Tr.s(4398) - val gpui_usage_office: String get() = Tr.s(4399) - val gpui_usage_office_lower: String get() = Tr.s(4400) - val gpui_usage_compact: String get() = Tr.s(4401) - val gpui_usage_switch: String get() = Tr.s(4402) - val gpui_usage_note: String get() = Tr.s(4403) - val gpui_usage_lanes_note: String get() = Tr.s(4404) - val gpui_usage_lanes_routines: String get() = Tr.s(4405) - val gpui_usage_turns_many: String get() = Tr.s(4406) - val gpui_usage_turns_full: String get() = Tr.s(4407) - val gpui_usage_turns_one: String get() = Tr.s(4408) - fun gpui_usage_turns_n(n: Any): String = Tr.f(4409, arrayOf(n)) - fun gpui_usage_left(n: Any): String = Tr.f(4410, arrayOf(n)) - fun gpui_usage_of(a: Any, b: Any): String = Tr.f(4411, arrayOf(a, b)) - fun gpui_usage_context(n: Any): String = Tr.f(4412, arrayOf(n)) - val gpui_usage_noread: String get() = Tr.s(4413) - fun gpui_mgmt_bom_summary(parts: Number, lines: Number): String = Tr.f(4414, arrayOf(parts, lines)) - fun gpui_mgmt_bom_more(n: Number): String = Tr.f(4415, arrayOf(n)) - val gpui_mgmt_dock_right: String get() = Tr.s(4416) - val gpui_mgmt_dock_bottom: String get() = Tr.s(4417) - val gpui_mgmt_close: String get() = Tr.s(4418) - val gpui_mgmt_bom_saved: String get() = Tr.s(4419) - val gpui_mgmt_bom_reading: String get() = Tr.s(4420) - val gpui_mgmt_bom_nomatch: String get() = Tr.s(4421) - val gpui_mgmt_bom_nompn: String get() = Tr.s(4422) - val gpui_mgmt_filter: String get() = Tr.s(4423) - val gpui_mgmt_bom_noparts: String get() = Tr.s(4424) - val gpui_mgmt_bom_dnp: String get() = Tr.s(4425) - val gpui_mgmt_fab_tab: String get() = Tr.s(4426) - val gpui_mgmt_fab_drc_current: String get() = Tr.s(4427) - val gpui_mgmt_fab_drc_stale: String get() = Tr.s(4428) - val gpui_mgmt_fab_drc_update: String get() = Tr.s(4429) - val gpui_mgmt_fab_drc_none: String get() = Tr.s(4430) - val gpui_mgmt_fab_drc_write: String get() = Tr.s(4431) - val gpui_mgmt_fab_drc_noproject: String get() = Tr.s(4432) - val gpui_mgmt_fab_tier_extra: String get() = Tr.s(4433) - val gpui_mgmt_fab_tier_free: String get() = Tr.s(4434) - val gpui_mgmt_fab_reading: String get() = Tr.s(4435) - val gpui_mgmt_fab_thefab: String get() = Tr.s(4436) - val gpui_mgmt_fab_refresh: String get() = Tr.s(4437) - val gpui_mgmt_fab_apply: String get() = Tr.s(4438) - val gpui_mgmt_fab_changed: String get() = Tr.s(4439) - val gpui_mgmt_fab_seen: String get() = Tr.s(4440) - val gpui_mgmt_fab_limit: String get() = Tr.s(4441) - val gpui_mgmt_fab_free: String get() = Tr.s(4442) - val gpui_mgmt_fab_extra: String get() = Tr.s(4443) - val gpui_mgmt_fab_readcol: String get() = Tr.s(4444) - val gpui_mgmt_fab_derived: String get() = Tr.s(4445) - fun gpui_mgmt_fab_suggestion(what: Any, project: Any, fab: Any): String = Tr.f(4446, arrayOf(what, project, fab)) - fun gpui_mgmt_fab_read(rev: Any, day: Any): String = Tr.f(4447, arrayOf(rev, day)) - val gpui_mgmt_fab_reviewing: String get() = Tr.s(4448) - val gpui_mgmt_fab_noreview: String get() = Tr.s(4449) - val gpui_mgmt_fab_findings: String get() = Tr.s(4450) - val gpui_mgmt_fab_reviewbtn: String get() = Tr.s(4451) - val gpui_mgmt_fab_judge: String get() = Tr.s(4452) - val gpui_mgmt_plan_reading: String get() = Tr.s(4453) - val gpui_mgmt_plan_none: String get() = Tr.s(4454) - fun gpui_mgmt_plan_awaiting(n: Number): String = Tr.f(4455, arrayOf(n)) - val gpui_mgmt_plan_nothing: String get() = Tr.s(4456) - val gpui_mgmt_plan_saved: String get() = Tr.s(4457) - val gpui_mgmt_plan_all: String get() = Tr.s(4458) - val gpui_mgmt_plan_stop: String get() = Tr.s(4459) - val gpui_mgmt_plan_hide: String get() = Tr.s(4460) - val gpui_mgmt_plan_show: String get() = Tr.s(4461) - val gpui_mgmt_plan_done: String get() = Tr.s(4462) - val gpui_mgmt_plan_layer: String get() = Tr.s(4463) - val gpui_mgmt_plan_reject: String get() = Tr.s(4464) - val gpui_mgmt_plan_keysnote: String get() = Tr.s(4465) - fun gpui_mgmt_plan_reference(layer: Any): String = Tr.f(4466, arrayOf(layer)) - fun gpui_mgmt_plan_nets(n: Number): String = Tr.f(4467, arrayOf(n)) - val gpui_mgmt_plan_tab: String get() = Tr.s(4468) - val gpui_mgmt_plan_before: String get() = Tr.s(4469) - val gpui_mgmt_plan_onwords: String get() = Tr.s(4470) - val gpui_mgmt_plan_offwords: String get() = Tr.s(4471) - fun gpui_mgmt_plan_elsewhere(board: Any): String = Tr.f(4472, arrayOf(board)) - val gpui_mgmt_plan_openboard: String get() = Tr.s(4473) - val gpui_mgmt_plan_noboard: String get() = Tr.s(4474) - val gpui_mgmt_plan_drawn: String get() = Tr.s(4475) - val gpui_pick_planonce: String get() = Tr.s(4476) - val gpui_pick_planonce_note: String get() = Tr.s(4477) - val hub_view_board_unlisted: String get() = Tr.s(4478) - val gpui_mgmt_bom_stocknote: String get() = Tr.s(4479) - val hub_order_pick_more: String get() = Tr.s(4480) - val hub_order_pick_phone: String get() = Tr.s(4481) - val hub_order_pick_go: String get() = Tr.s(4482) - val gpui_plan_before_routing_desc: String get() = Tr.s(4483) - fun gpui_mgmt_bom_shared(others: Any): String = Tr.f(4484, arrayOf(others)) - fun gpui_mgmt_fab_review(must: Any, should: Any, notes: Any): String = Tr.f(4485, arrayOf(must, should, notes)) - fun gpui_mgmt_fab_stackup(id: Any, w: Any): String = Tr.f(4486, arrayOf(id, w)) - val gpui_mgmt_fab_proposed: String get() = Tr.s(4487) - val gpui_mgmt_fab_use: String get() = Tr.s(4488) - val gpui_keys_mgmt_bom: String get() = Tr.s(4489) - val gpui_keys_mgmt_checks: String get() = Tr.s(4490) - val gpui_keys_mgmt_life: String get() = Tr.s(4491) - val gpui_mgmt_checks_reading: String get() = Tr.s(4492) - val gpui_mgmt_checks_searching: String get() = Tr.s(4493) - val gpui_mgmt_checks_run: String get() = Tr.s(4494) - val gpui_mgmt_checks_running: String get() = Tr.s(4495) - fun gpui_mgmt_checks_behind(what: Any): String = Tr.f(4496, arrayOf(what)) - val gpui_mgmt_checks_stale: String get() = Tr.s(4497) - val gpui_mgmt_checks_liveunsaved: String get() = Tr.s(4498) - fun gpui_mgmt_checks_waiting(why: Any): String = Tr.f(4499, arrayOf(why)) - fun gpui_mgmt_checks_failed(why: Any): String = Tr.f(4500, arrayOf(why)) - val gpui_mgmt_checks_all: String get() = Tr.s(4501) - val gpui_mgmt_checks_errors: String get() = Tr.s(4502) - val gpui_mgmt_checks_warnings: String get() = Tr.s(4503) - val gpui_mgmt_checks_excluded: String get() = Tr.s(4504) - val gpui_mgmt_checks_fix: String get() = Tr.s(4505) - val gpui_mgmt_checks_reexport: String get() = Tr.s(4506) - fun gpui_mgmt_checks_more(n: Number): String = Tr.f(4507, arrayOf(n)) - val gpui_mgmt_checks_fewer: String get() = Tr.s(4508) - val gpui_mgmt_checks_none: String get() = Tr.s(4509) - val gpui_mgmt_checks_nomatch: String get() = Tr.s(4510) - val gpui_mgmt_checks_library: String get() = Tr.s(4511) - val gpui_mgmt_checks_withlib: String get() = Tr.s(4512) - val gpui_mgmt_checks_fullrun: String get() = Tr.s(4513) - val gpui_mgmt_checks_allsources: String get() = Tr.s(4514) - val gpui_mgmt_checks_judged: String get() = Tr.s(4515) - val gpui_mgmt_bom_dnp_tip: String get() = Tr.s(4516) - val gpui_mgmt_bom_writing: String get() = Tr.s(4517) - val gpui_mgmt_bom_inkicad: String get() = Tr.s(4518) - val gpui_mgmt_bom_saved_file: String get() = Tr.s(4519) - val gpui_mgmt_bom_fab: String get() = Tr.s(4520) - val gpui_mgmt_bom_mpn_ph: String get() = Tr.s(4521) - val gpui_mgmt_bom_fab_ph: String get() = Tr.s(4522) - fun gpui_mgmt_bom_each(price: Any, n: Any): String = Tr.f(4523, arrayOf(price, n)) - fun gpui_mgmt_bom_out(n: Any, need: Any): String = Tr.f(4524, arrayOf(n, need)) - fun gpui_mgmt_bom_low(n: Any): String = Tr.f(4525, arrayOf(n)) - fun gpui_mgmt_bom_in(n: Any): String = Tr.f(4526, arrayOf(n)) - fun gpui_mgmt_bom_cost(cost: Any): String = Tr.f(4527, arrayOf(cost)) - fun gpui_mgmt_bom_cost_least(cost: Any): String = Tr.f(4528, arrayOf(cost)) - val gpui_mgmt_bom_checking: String get() = Tr.s(4529) - val gpui_mgmt_bom_notknown: String get() = Tr.s(4530) - val gpui_mgmt_bom_stock: String get() = Tr.s(4531) - val gpui_mgmt_bom_alts: String get() = Tr.s(4532) - val gpui_mgmt_bom_alts_looking: String get() = Tr.s(4533) - val gpui_mgmt_bom_alts_none: String get() = Tr.s(4534) - val gpui_mgmt_bom_alts_use: String get() = Tr.s(4535) - val gpui_mgmt_bom_class_basic: String get() = Tr.s(4536) - val gpui_mgmt_bom_class_extended: String get() = Tr.s(4537) - val gpui_mgmt_bom_class_preferred: String get() = Tr.s(4538) - val gpui_mgmt_bom_notinstock: String get() = Tr.s(4539) - val gpui_mgmt_bom_off: String get() = Tr.s(4540) - fun gpui_mgmt_life_since(day: Any, n: Number): String = Tr.f(4541, arrayOf(day, n)) - fun gpui_mgmt_life_one(day: Any): String = Tr.f(4542, arrayOf(day)) - fun gpui_mgmt_life_now(cost: Any, n: Any, lines: Any): String = Tr.f(4543, arrayOf(cost, n, lines)) - fun gpui_mgmt_life_part_now(stock: Any, price: Any): String = Tr.f(4544, arrayOf(stock, price)) - fun gpui_mgmt_life_instock(lines: Any): String = Tr.f(4545, arrayOf(lines)) - val gpui_mgmt_life_board: String get() = Tr.s(4546) - val gpui_mgmt_life_price: String get() = Tr.s(4547) - val gpui_mgmt_life_active: String get() = Tr.s(4548) - val gpui_mgmt_life_nrnd: String get() = Tr.s(4549) - val gpui_mgmt_life_eol: String get() = Tr.s(4550) - val gpui_mgmt_life_unknown: String get() = Tr.s(4551) - val gpui_mgmt_life_nolines: String get() = Tr.s(4552) - val gpui_mgmt_life_noread: String get() = Tr.s(4553) - val gpui_mgmt_life_reading: String get() = Tr.s(4554) - val gpui_mgmt_life_nopart: String get() = Tr.s(4555) - val gpui_mgmt_life_tab: String get() = Tr.s(4556) - val gpui_mgmt_bom_paused: String get() = Tr.s(4557) - val gpui_mgmt_bom_paused_tip: String get() = Tr.s(4558) - val gpui_keys_mgmt_fab: String get() = Tr.s(4559) - val gpui_mgmt_bom_putback: String get() = Tr.s(4560) - val gpui_mgmt_bom_nochange: String get() = Tr.s(4561) - val gpui_mgmt_bom_deferred: String get() = Tr.s(4562) - val gpui_mgmt_bom_inkicad_save: String get() = Tr.s(4563) - val gpui_mgmt_bom_undo_tip: String get() = Tr.s(4564) - val gpui_mgmt_bom_undo: String get() = Tr.s(4565) - fun gpui_mgmt_checks_on(host: Any): String = Tr.f(4566, arrayOf(host)) - val gpui_gerbers: String get() = Tr.s(4567) - val gpui_gerbers_vs: String get() = Tr.s(4568) - val gpui_gerbers_vs_tip: String get() = Tr.s(4569) - val gpui_gerbers_gerbview: String get() = Tr.s(4570) - val gpui_gerbers_gerbview_tip: String get() = Tr.s(4571) - val gpui_mgmt_bom_saved_state: String get() = Tr.s(4572) - val gpui_mgmt_bom_live_tip: String get() = Tr.s(4573) - val gpui_mgmt_bom_saved_tip: String get() = Tr.s(4574) - val gpui_mgmt_bom_price: String get() = Tr.s(4575) - val gpui_mgmt_bom_class: String get() = Tr.s(4576) - fun gpui_mgmt_life_unknown_n(n: Any): String = Tr.f(4577, arrayOf(n)) - fun gpui_mgmt_life_unknown_tip(a: Any, b: Any): String = Tr.f(4578, arrayOf(a, b)) - fun gpui_mgmt_bom_stock_out(n: Any): String = Tr.f(4579, arrayOf(n)) - fun gpui_mgmt_bom_stock_low(n: Any): String = Tr.f(4580, arrayOf(n)) - val gpui_gerbers_boardonly: String get() = Tr.s(4581) - val gpui_gerbers_gerbersonly: String get() = Tr.s(4582) - fun gpui_mgmt_life_price_since(day: Any): String = Tr.f(4583, arrayOf(day)) - fun gpui_streamer_account(n: Any): String = Tr.f(4584, arrayOf(n)) - val gpui_streamer_mode: String get() = Tr.s(4585) - val gpui_streamer_section: String get() = Tr.s(4586) - val gpui_streamer_off: String get() = Tr.s(4587) - val gpui_streamer_on: String get() = Tr.s(4588) - val gpui_streamer_tip: String get() = Tr.s(4589) - val gpui_streamer_shared: String get() = Tr.s(4590) - val gpui_streamer_qr: String get() = Tr.s(4591) - val gpui_streamer_note: String get() = Tr.s(4592) - val gpui_streamer_share: String get() = Tr.s(4593) - val gpui_streamer_apps: String get() = Tr.s(4594) - val gpui_streamer_apps_note: String get() = Tr.s(4595) - val gpui_streamer_linux: String get() = Tr.s(4596) - val gpui_streamer_mac: String get() = Tr.s(4597) - val gpui_streamer_win: String get() = Tr.s(4598) - val gpui_f2_uber_title: String get() = Tr.s(4599) - val gpui_f2_uber_body: String get() = Tr.s(4600) - val gpui_f2_uber_say: String get() = Tr.s(4601) - val gpui_f2_uber_here: String get() = Tr.s(4602) - val gpui_f2_uber_err_name: String get() = Tr.s(4603) - val gpui_f2_uber_err_color: String get() = Tr.s(4604) - val gpui_f2_uber_color: String get() = Tr.s(4605) - val gpui_f2_uber_own: String get() = Tr.s(4606) - val gpui_f2_uber_custom: String get() = Tr.s(4607) - val gpui_f2_uber_hex: String get() = Tr.s(4608) - val gpui_f2_uber_use: String get() = Tr.s(4609) - val gpui_f2_uber_shuffle: String get() = Tr.s(4610) - val gpui_f2_uber_auto: String get() = Tr.s(4611) - val gpui_f2_uber_savename: String get() = Tr.s(4612) - val gpui_f2_uber_p_ginger: String get() = Tr.s(4613) - val gpui_f2_uber_p_cream: String get() = Tr.s(4614) - val gpui_f2_uber_p_smoke: String get() = Tr.s(4615) - val gpui_f2_uber_p_midnight: String get() = Tr.s(4616) - val gpui_f2_uber_p_cocoa: String get() = Tr.s(4617) - val gpui_f2_uber_p_sky: String get() = Tr.s(4618) - val gpui_f2_uber_p_lilac: String get() = Tr.s(4619) - val gpui_f2_uber_p_rose: String get() = Tr.s(4620) - val gpui_f2_uber_p_mint: String get() = Tr.s(4621) - val gpui_f2_uber_p_cherry: String get() = Tr.s(4622) - val gpui_simulation: String get() = Tr.s(4623) - val gpui_c_sheets_find: String get() = Tr.s(4624) - fun history_snap(turn: Any): String = Tr.f(4625, arrayOf(turn)) - val history_ref_snap: String get() = Tr.s(4626) - val thread_restore_action: String get() = Tr.s(4627) - val thread_restore_ask: String get() = Tr.s(4628) - val thread_restore_note: String get() = Tr.s(4629) - val thread_restore_go: String get() = Tr.s(4630) - val mouse_mouseandtrackpad0: String get() = Tr.s(4631) - val mouse_zoomdirection1: String get() = Tr.s(4632) - val mouse_appliestothewheelandatrackpads2: String get() = Tr.s(4633) - val mouse_normal3: String get() = Tr.s(4634) - val mouse_inverted4: String get() = Tr.s(4635) - val mouse_boardandschematic5: String get() = Tr.s(4636) - val mouse_k3dandstep6: String get() = Tr.s(4637) - val mouse_changedfromitspreseteachinputd7: String get() = Tr.s(4638) - val mouse_apresetsetseveryinputbeloweach8: String get() = Tr.s(4639) - val mouse_legacy10: String get() = Tr.s(4640) - val mouse_leftdrag11: String get() = Tr.s(4641) - val mouse_middledrag12: String get() = Tr.s(4642) - val mouse_rightdrag13: String get() = Tr.s(4643) - val mouse_shiftleftdrag14: String get() = Tr.s(4644) - val mouse_ctrlleftdrag15: String get() = Tr.s(4645) - val mouse_altleftdrag16: String get() = Tr.s(4646) - val mouse_wheel17: String get() = Tr.s(4647) - val mouse_shiftwheel18: String get() = Tr.s(4648) - val mouse_ctrlwheel19: String get() = Tr.s(4649) - val mouse_altwheel20: String get() = Tr.s(4650) - val mouse_nothing21: String get() = Tr.s(4651) - val mouse_pan22: String get() = Tr.s(4652) - val mouse_pansideways23: String get() = Tr.s(4653) - val mouse_panupanddown24: String get() = Tr.s(4654) - val mouse_zoom25: String get() = Tr.s(4655) - val mouse_rotate26: String get() = Tr.s(4656) - val mouse_roll27: String get() = Tr.s(4657) - val mouse_select28: String get() = Tr.s(4658) - val mouse_aclickwithoutmovingwithnokeyhe29: String get() = Tr.s(4659) - val mouse_leftbutton30: String get() = Tr.s(4660) - val mouse_middlebutton31: String get() = Tr.s(4661) - val mouse_rightbutton32: String get() = Tr.s(4662) - val mouse_twofingerscroll33: String get() = Tr.s(4663) - val mouse_atrackpadstwofingerswithctrlhe34: String get() = Tr.s(4664) - val mouse_pans35: String get() = Tr.s(4665) - val mouse_isthewheel36: String get() = Tr.s(4666) - val mouse_pinch37: String get() = Tr.s(4667) - val mouse_atrackpadpinch38: String get() = Tr.s(4668) - val mouse_zooms39: String get() = Tr.s(4669) - val mouse_chooseaninputforitabove41: String get() = Tr.s(4670) - val mouse_nothingissettopan42: String get() = Tr.s(4671) - val mouse_nothingissettozoom43: String get() = Tr.s(4672) - val mouse_nothingissettorotate44: String get() = Tr.s(4673) - val gpui_review_mark: String get() = Tr.s(4674) - val gpui_review_mark_tip: String get() = Tr.s(4675) - val gpui_review_why: String get() = Tr.s(4676) - val gpui_review_allow: String get() = Tr.s(4677) - val gpui_review_allow_tip: String get() = Tr.s(4678) - val gpui_review_off: String get() = Tr.s(4679) - val gpui_review_again: String get() = Tr.s(4680) - val gpui_review_again_tip: String get() = Tr.s(4681) - val gpui_rail_no_board: String get() = Tr.s(4682) - val gpui_rail_no_schematic: String get() = Tr.s(4683) - val gpui_rail_split_needs_both: String get() = Tr.s(4684) - val gpui_rail_no_mech: String get() = Tr.s(4685) - val gpui_panestate_next_board: String get() = Tr.s(4686) - val gpui_panestate_next_schematic: String get() = Tr.s(4687) - val gpui_panestate_next_solid: String get() = Tr.s(4688) - val gpui_panestate_empty_gerbers: String get() = Tr.s(4689) - val gpui_panestate_next_gerbers: String get() = Tr.s(4690) - val gpui_panestate_gerbers_noboard: String get() = Tr.s(4691) - val gpui_panestate_gerbers_noboard_next: String get() = Tr.s(4692) - val gpui_panestate_empty_mech: String get() = Tr.s(4693) - val gpui_panestate_next_mech: String get() = Tr.s(4694) - val gpui_panestate_loading_split: String get() = Tr.s(4695) - val gpui_panestate_retrying: String get() = Tr.s(4696) - val gpui_hub_view_notready: String get() = Tr.s(4697) - val gpui_hub_view_staleconn: String get() = Tr.s(4698) - val gpui_hub_view_unavailable: String get() = Tr.s(4699) - val settings_designmode_label: String get() = Tr.s(4700) - val settings_designmode_viewer: String get() = Tr.s(4701) - val settings_designmode_kicad: String get() = Tr.s(4702) - val settings_designmode_note: String get() = Tr.s(4703) - val review_empty_title: String get() = Tr.s(4704) - val review_empty_next: String get() = Tr.s(4705) - val viewer_diff_threadchanges: String get() = Tr.s(4706) - val viewer_layout_refusal_locked: String get() = Tr.s(4707) - val viewer_layout_refusal_toosmall: String get() = Tr.s(4708) - val viewer_layout_refusal_onekicad: String get() = Tr.s(4709) - val viewer_layout_refusal_incompatibleoverlay: String get() = Tr.s(4710) - val viewer_layout_refusal_notfound: String get() = Tr.s(4711) - val viewer_layout_refusal_nooverlay: String get() = Tr.s(4712) - val viewer_layout_refusal_invalidsource: String get() = Tr.s(4713) - val viewer_layout_refusal_sametile: String get() = Tr.s(4714) - val viewer_layout_refusal_invalidratio: String get() = Tr.s(4715) - val viewer_layout_refusal_duplicateid: String get() = Tr.s(4716) - val viewer_layout_refusal_unknownframe: String get() = Tr.s(4717) - val viewer_layout_refusal_invalidinput: String get() = Tr.s(4718) - val viewer_layout_refusal_toomany: String get() = Tr.s(4719) - val viewer_layout_refusal_toomanysources: String get() = Tr.s(4720) - val viewer_layout_refusal_unresolvedversion: String get() = Tr.s(4721) - val viewer_layout_refusal_nohistory: String get() = Tr.s(4722) - val viewer_layout_refusal_linked: String get() = Tr.s(4723) - val viewer_layout_refusal_notondevice: String get() = Tr.s(4724) - val viewer_layout_refusal_starting: String get() = Tr.s(4725) - val viewer_footprinteditor: String get() = Tr.s(4726) - val viewer_symboleditor: String get() = Tr.s(4727) - val web_clone_tab: String get() = Tr.s(4728) - val web_clone_repo_placeholder: String get() = Tr.s(4729) - val web_clone_private: String get() = Tr.s(4730) - val web_clone_signin: String get() = Tr.s(4731) - val web_clone_signin_wait: String get() = Tr.s(4732) - val web_clone_signin_enter: String get() = Tr.s(4733) - val web_clone_signin_done: String get() = Tr.s(4734) - val web_clone_copied: String get() = Tr.s(4735) - val web_clone_change_folder: String get() = Tr.s(4736) - val web_clone_folder_name: String get() = Tr.s(4737) - val web_clone_start_thread: String get() = Tr.s(4738) - fun web_clone_first(text: Any): String = Tr.f(4739, arrayOf(text)) - val web_clone_same: String get() = Tr.s(4740) - val web_clone_go: String get() = Tr.s(4741) - fun web_clone_cloning(repo: Any, dest: Any): String = Tr.f(4742, arrayOf(repo, dest)) - fun web_clone_cloned(repo: Any, dest: Any): String = Tr.f(4743, arrayOf(repo, dest)) - fun web_clone_stopped(repo: Any): String = Tr.f(4744, arrayOf(repo)) - val web_clone_retry: String get() = Tr.s(4745) - val web_clone_back: String get() = Tr.s(4746) - val web_clone_open_thread: String get() = Tr.s(4747) - val web_clone_open_project: String get() = Tr.s(4748) - fun web_clone_add_dir(dir: Any): String = Tr.f(4749, arrayOf(dir)) - fun web_clone_use_dir(dir: Any): String = Tr.f(4750, arrayOf(dir)) - val web_clone_up: String get() = Tr.s(4751) - val web_clone_loading: String get() = Tr.s(4752) - val web_clone_no_folders: String get() = Tr.s(4753) - fun gpui_c_kicad_opening(editor: Any, job: Any, secs: Any): String = Tr.f(4754, arrayOf(editor, job, secs)) - fun gpui_c_kicad_openingbare(editor: Any, secs: Any): String = Tr.f(4755, arrayOf(editor, secs)) - fun gpui_c_kicad_openfailed(editor: Any): String = Tr.f(4756, arrayOf(editor)) - val viewer_tile_rail_add: String get() = Tr.s(4757) - val viewer_tile_add: String get() = Tr.s(4758) - val viewer_tile_maximize: String get() = Tr.s(4759) - val viewer_tile_restore: String get() = Tr.s(4760) - val viewer_tile_focus: String get() = Tr.s(4761) - val viewer_tile_embedded: String get() = Tr.s(4762) - val viewer_tile_simulation_single: String get() = Tr.s(4763) - val viewer_tile_add_tip: String get() = Tr.s(4764) - val viewer_tile_left: String get() = Tr.s(4765) - val viewer_tile_right: String get() = Tr.s(4766) - val viewer_tile_top: String get() = Tr.s(4767) - val viewer_tile_bottom: String get() = Tr.s(4768) - val web_pair_subtitle: String get() = Tr.s(4769) - val web_pair_name: String get() = Tr.s(4770) - val web_pair_request: String get() = Tr.s(4771) - val web_pair_code: String get() = Tr.s(4772) - fun web_pair_approve_in(time: Any): String = Tr.f(4773, arrayOf(time)) - val web_pair_expired: String get() = Tr.s(4774) - val web_pair_approved: String get() = Tr.s(4775) - val web_pair_denied: String get() = Tr.s(4776) - val web_pair_cancelled: String get() = Tr.s(4777) - val web_pair_requesting: String get() = Tr.s(4778) - fun web_pair_failed(status: Any): String = Tr.f(4779, arrayOf(status)) - val web_pair_ratelimited: String get() = Tr.s(4780) - val web_pair_nocode: String get() = Tr.s(4781) - val web_pair_unreachable: String get() = Tr.s(4782) - val web_chat_loading: String get() = Tr.s(4783) - val web_chat_choose: String get() = Tr.s(4784) - val web_chat_empty: String get() = Tr.s(4785) - val web_chat_streaming: String get() = Tr.s(4786) - fun web_chat_finished(time: Any): String = Tr.f(4787, arrayOf(time)) - fun web_chat_finished_dur(time: Any, dur: Any): String = Tr.f(4788, arrayOf(time, dur)) - val web_chat_answer_placeholder: String get() = Tr.s(4789) - val web_chat_answer_btn: String get() = Tr.s(4790) - fun web_chat_answered(answer: Any): String = Tr.f(4791, arrayOf(answer)) - val web_chat_review_mode: String get() = Tr.s(4792) - val web_composer_attach: String get() = Tr.s(4793) - val web_composer_voice: String get() = Tr.s(4794) - fun web_composer_unsupported(type: Any): String = Tr.f(4795, arrayOf(type)) - fun web_composer_maximages(max: Any): String = Tr.f(4796, arrayOf(max)) - val web_logout_failed: String get() = Tr.s(4797) - val thread_context_title: String get() = Tr.s(4798) - val thread_context_instructions: String get() = Tr.s(4799) - val thread_context_system: String get() = Tr.s(4800) - val thread_context_skills: String get() = Tr.s(4801) - val thread_context_mcp: String get() = Tr.s(4802) - val thread_context_mcp_short: String get() = Tr.s(4803) - val thread_context_reading: String get() = Tr.s(4804) - val thread_context_none_instructions: String get() = Tr.s(4805) - val thread_context_none_mcp: String get() = Tr.s(4806) - val thread_context_native_note: String get() = Tr.s(4807) - val thread_context_copy: String get() = Tr.s(4808) - val thread_context_copied: String get() = Tr.s(4809) - val thread_context_base: String get() = Tr.s(4810) - val thread_context_injected_label: String get() = Tr.s(4811) - val thread_context_index: String get() = Tr.s(4812) - val thread_context_scope_user: String get() = Tr.s(4813) - val thread_context_scope_bundled: String get() = Tr.s(4814) - val thread_context_native: String get() = Tr.s(4815) - val thread_context_injected: String get() = Tr.s(4816) - val thread_context_cross: String get() = Tr.s(4817) - val thread_context_explicit: String get() = Tr.s(4818) - val thread_context_untrusted: String get() = Tr.s(4819) - val thread_context_invalid: String get() = Tr.s(4820) - val thread_context_trust: String get() = Tr.s(4821) - val thread_context_enable: String get() = Tr.s(4822) - val thread_context_disable: String get() = Tr.s(4823) - fun thread_context_size(bytes: Any, tokens: Any): String = Tr.f(4824, arrayOf(bytes, tokens)) - val thread_context_unreachable: String get() = Tr.s(4825) - val gpui_planmode_top_once: String get() = Tr.s(4826) - val gpui_planmode_top_planning: String get() = Tr.s(4827) - val gpui_planmode_top_pending: String get() = Tr.s(4828) - val gpui_planmode_top_executing: String get() = Tr.s(4829) - val gpui_planmode_tip: String get() = Tr.s(4830) - val gpui_planmode_chip_building: String get() = Tr.s(4831) - val gpui_planmode_chip_once: String get() = Tr.s(4832) - val gpui_planmode_bar_once: String get() = Tr.s(4833) - val gpui_planmode_bar_always: String get() = Tr.s(4834) - val gpui_planmode_bar_planning: String get() = Tr.s(4835) - val gpui_planmode_bar_pending: String get() = Tr.s(4836) - val gpui_planmode_bar_executing: String get() = Tr.s(4837) - val gpui_planmode_scope_once: String get() = Tr.s(4838) - val gpui_planmode_scope_always: String get() = Tr.s(4839) - val gpui_ask_plan_ready: String get() = Tr.s(4840) - val gpui_ask_plan_revise: String get() = Tr.s(4841) - val gpui_ask_plan_sendrev: String get() = Tr.s(4842) - val gpui_ask_plan_reviseph: String get() = Tr.s(4843) - val gpui_mgmt_plan_st_blocked: String get() = Tr.s(4844) - val gpui_mgmt_plan_st_routing: String get() = Tr.s(4845) - val gpui_mgmt_plan_st_awaiting: String get() = Tr.s(4846) - val gpui_mgmt_plan_st_verified: String get() = Tr.s(4847) - val gpui_mgmt_plan_st_routed: String get() = Tr.s(4848) - val gpui_mgmt_plan_st_approved: String get() = Tr.s(4849) - val gpui_mgmt_plan_st_partial: String get() = Tr.s(4850) - val gpui_mgmt_plan_st_rejected: String get() = Tr.s(4851) - val gpui_mgmt_plan_st_empty: String get() = Tr.s(4852) - val gpui_mgmt_plan_refused: String get() = Tr.s(4853) - val gpui_mgmt_plan_emptysub: String get() = Tr.s(4854) - val gpui_mgmt_plan_verify: String get() = Tr.s(4855) - val gpui_mgmt_plan_reqplain: String get() = Tr.s(4856) - fun gpui_mgmt_plan_requested(what: Any): String = Tr.f(4857, arrayOf(what)) - val gpui_mgmt_plan_stackup: String get() = Tr.s(4858) - val gpui_keys_planmode: String get() = Tr.s(4859) - val gpui_keys_mgmt_plan: String get() = Tr.s(4860) - fun web_plan_awaiting(n: Any): String = Tr.f(4861, arrayOf(n)) - val web_plan_net_one: String get() = Tr.s(4862) - fun web_plan_nets(n: Any): String = Tr.f(4863, arrayOf(n)) - val gpui_mgmt_plan_view_canvas: String get() = Tr.s(4864) - val gpui_mgmt_plan_view_split: String get() = Tr.s(4865) - val gpui_mgmt_plan_view_list: String get() = Tr.s(4866) - val gpui_mgmt_plan_grid_all: String get() = Tr.s(4867) - val gpui_mgmt_plan_grid_pair: String get() = Tr.s(4868) - val gpui_mgmt_plan_grid_single: String get() = Tr.s(4869) - val gpui_mgmt_plan_expand: String get() = Tr.s(4870) - val gpui_mgmt_plan_compact: String get() = Tr.s(4871) - val gpui_mgmt_plan_sync: String get() = Tr.s(4872) - val gpui_mgmt_plan_fit: String get() = Tr.s(4873) - val gpui_mgmt_plan_lock: String get() = Tr.s(4874) - val gpui_mgmt_plan_unlock: String get() = Tr.s(4875) - val gpui_mgmt_plan_layer_move: String get() = Tr.s(4876) - val gpui_mgmt_plan_width: String get() = Tr.s(4877) - val gpui_mgmt_plan_addnote: String get() = Tr.s(4878) - val gpui_mgmt_plan_note_placeholder: String get() = Tr.s(4879) - val gpui_mgmt_plan_hint: String get() = Tr.s(4880) - val gpui_mgmt_plan_rejectlayer: String get() = Tr.s(4881) - val gpui_mgmt_plan_edited: String get() = Tr.s(4882) - val gpui_mgmt_plan_locked: String get() = Tr.s(4883) - val gpui_mgmt_plan_noitems: String get() = Tr.s(4884) - val gpui_mgmt_plan_stackup_short: String get() = Tr.s(4885) - val gpui_mgmt_plan_layer_short: String get() = Tr.s(4886) - fun gpui_mgmt_plan_awaiting_short(n: Any): String = Tr.f(4887, arrayOf(n)) - fun gpui_mgmt_plan_done_of(done: Any, total: Any): String = Tr.f(4888, arrayOf(done, total)) - val gpui_planmode_chip_review: String get() = Tr.s(4889) - val mobile_plan_steer: String get() = Tr.s(4890) - val mobile_plan_details: String get() = Tr.s(4891) - val mobile_plan_reset: String get() = Tr.s(4892) - val mobile_plan_removepoint: String get() = Tr.s(4893) - val mobile_plan_touchhint: String get() = Tr.s(4894) - val mobile_plan_copied: String get() = Tr.s(4895) - fun mobile_plan_widthmm(v: Any): String = Tr.f(4896, arrayOf(v)) - fun mobile_plan_coord(x: Any, y: Any): String = Tr.f(4897, arrayOf(x, y)) - val provider_notice_head: String get() = Tr.s(4898) - val provider_notice_text_none: String get() = Tr.s(4899) - val provider_notice_text_signedout: String get() = Tr.s(4900) - val provider_notice_button: String get() = Tr.s(4901) - val provider_notice_senderr: String get() = Tr.s(4902) - fun provider_notice_senderr_remote(machine: Any): String = Tr.f(4903, arrayOf(machine)) - val web_settings_providers: String get() = Tr.s(4904) - val web_settings_providers_browser: String get() = Tr.s(4905) + val mobile_tab_inbox: String get() = Tr.s(4318) + val mobile_tab_crew: String get() = Tr.s(4319) + val mobile_tab_bench: String get() = Tr.s(4320) + val mobile_inbox_clear: String get() = Tr.s(4321) + val mobile_inbox_clear_note: String get() = Tr.s(4322) + val mobile_inbox_talk_bub: String get() = Tr.s(4323) + val mobile_inbox_jump_in: String get() = Tr.s(4324) + val mobile_inbox_open_bench: String get() = Tr.s(4325) + val mobile_badge_pcb: String get() = Tr.s(4326) + val mobile_pill_waiting: String get() = Tr.s(4327) + fun mobile_snooze_wakes(time: Any): String = Tr.f(4328, arrayOf(time)) + val mobile_bench_all: String get() = Tr.s(4329) + val mobile_snooze_for: String get() = Tr.s(4330) + val sidebar_sections_needs: String get() = Tr.s(4331) + val sidebar_sections_pinned: String get() = Tr.s(4332) + val sidebar_sections_active: String get() = Tr.s(4333) + val sidebar_sections_quiet: String get() = Tr.s(4334) + val sidebar_sections_quiet_hint: String get() = Tr.s(4335) + val sidebar_sections_running_word: String get() = Tr.s(4336) + val sidebar_sections_recent: String get() = Tr.s(4337) + val sidebar_sections_limit: String get() = Tr.s(4338) + val sidebar_sections_cut: String get() = Tr.s(4339) + val sidebar_sections_monitoring: String get() = Tr.s(4340) + val sidebar_sections_stopped: String get() = Tr.s(4341) + val sidebar_sections_done: String get() = Tr.s(4342) + val sidebar_sections_failed: String get() = Tr.s(4343) + val sidebar_sections_rename: String get() = Tr.s(4344) + val sidebar_sections_pin: String get() = Tr.s(4345) + val sidebar_sections_unpin: String get() = Tr.s(4346) + val sidebar_sections_quiet_make: String get() = Tr.s(4347) + val sidebar_sections_quiet_back: String get() = Tr.s(4348) + val sidebar_sections_quiet_hint2: String get() = Tr.s(4349) + fun gpui_sections_move_to(group: Any): String = Tr.f(4350, arrayOf(group)) + val sidebar_sections_move: String get() = Tr.s(4351) + val sidebar_sections_new_group: String get() = Tr.s(4352) + val sidebar_sections_new_group_title: String get() = Tr.s(4353) + fun sidebar_sections_remove_ask(project: Any): String = Tr.f(4354, arrayOf(project)) + fun gpui_sections_running(n: Number): String = Tr.f(4355, arrayOf(n)) + fun gpui_sections_rest(n: Number): String = Tr.f(4356, arrayOf(n)) + fun gpui_projects_mech(n: Any): String = Tr.f(4357, arrayOf(n)) + val gpui_open_folder: String get() = Tr.s(4358) + val gpui_picker_none: String get() = Tr.s(4359) + val gpui_picker_key_select: String get() = Tr.s(4360) + val gpui_picker_key_into: String get() = Tr.s(4361) + val gpui_picker_key_complete: String get() = Tr.s(4362) + val gpui_picker_key_open: String get() = Tr.s(4363) + val gpui_picker_added: String get() = Tr.s(4364) + fun gpui_picker_more_typed(n: Any): String = Tr.f(4365, arrayOf(n)) + val gpui_clone_tab: String get() = Tr.s(4366) + val gpui_clone_change: String get() = Tr.s(4367) + val gpui_clone_thread: String get() = Tr.s(4368) + val gpui_clone_retry: String get() = Tr.s(4369) + val gpui_clone_signin: String get() = Tr.s(4370) + val gpui_clone_back: String get() = Tr.s(4371) + val gpui_clone_open_thread: String get() = Tr.s(4372) + val gpui_clone_open_project: String get() = Tr.s(4373) + val gpui_clone_private: String get() = Tr.s(4374) + val gpui_clone_loading: String get() = Tr.s(4375) + val gpui_clone_signin_list: String get() = Tr.s(4376) + val gpui_clone_signin_code: String get() = Tr.s(4377) + val gpui_clone_signin_asking: String get() = Tr.s(4378) + val gpui_clone_signin_done: String get() = Tr.s(4379) + val gpui_clone_cancel: String get() = Tr.s(4380) + val gpui_picker_key_pick: String get() = Tr.s(4381) + val gpui_clone_phase_connecting: String get() = Tr.s(4382) + val gpui_clone_phase_receiving: String get() = Tr.s(4383) + val gpui_clone_phase_resolving: String get() = Tr.s(4384) + val gpui_clone_phase_updating: String get() = Tr.s(4385) + val gpui_clone_phase_counting: String get() = Tr.s(4386) + val gpui_clone_phase_compressing: String get() = Tr.s(4387) + val gpui_clone_phase_lfs: String get() = Tr.s(4388) + val gpui_clone_phase_adding: String get() = Tr.s(4389) + val gpui_clone_phase_starting: String get() = Tr.s(4390) + val gpui_assembly: String get() = Tr.s(4391) + val gpui_mech: String get() = Tr.s(4392) + val gpui_readme: String get() = Tr.s(4393) + val gpui_board: String get() = Tr.s(4394) + val gpui_schematic: String get() = Tr.s(4395) + val gpui_view_three_d: String get() = Tr.s(4396) + val gpui_files: String get() = Tr.s(4397) + val gpui_usage_bot: String get() = Tr.s(4398) + val gpui_usage_tokens: String get() = Tr.s(4399) + val gpui_usage_accounts_tip: String get() = Tr.s(4400) + val gpui_usage_feeds: String get() = Tr.s(4401) + val gpui_usage_lanes: String get() = Tr.s(4402) + val gpui_usage_turn_live: String get() = Tr.s(4403) + val gpui_usage_chat: String get() = Tr.s(4404) + val gpui_usage_today: String get() = Tr.s(4405) + val gpui_usage_prefs: String get() = Tr.s(4406) + val gpui_usage_handover: String get() = Tr.s(4407) + val gpui_usage_none_waiting: String get() = Tr.s(4408) + val gpui_usage_session: String get() = Tr.s(4409) + val gpui_usage_last_handover: String get() = Tr.s(4410) + val gpui_usage_triage: String get() = Tr.s(4411) + val gpui_usage_office: String get() = Tr.s(4412) + val gpui_usage_office_lower: String get() = Tr.s(4413) + val gpui_usage_compact: String get() = Tr.s(4414) + val gpui_usage_switch: String get() = Tr.s(4415) + val gpui_usage_note: String get() = Tr.s(4416) + val gpui_usage_lanes_note: String get() = Tr.s(4417) + val gpui_usage_lanes_routines: String get() = Tr.s(4418) + val gpui_usage_turns_many: String get() = Tr.s(4419) + val gpui_usage_turns_full: String get() = Tr.s(4420) + val gpui_usage_turns_one: String get() = Tr.s(4421) + fun gpui_usage_turns_n(n: Any): String = Tr.f(4422, arrayOf(n)) + fun gpui_usage_left(n: Any): String = Tr.f(4423, arrayOf(n)) + fun gpui_usage_of(a: Any, b: Any): String = Tr.f(4424, arrayOf(a, b)) + fun gpui_usage_context(n: Any): String = Tr.f(4425, arrayOf(n)) + val gpui_usage_noread: String get() = Tr.s(4426) + fun gpui_mgmt_bom_summary(parts: Number, lines: Number): String = Tr.f(4427, arrayOf(parts, lines)) + fun gpui_mgmt_bom_more(n: Number): String = Tr.f(4428, arrayOf(n)) + val gpui_mgmt_dock_right: String get() = Tr.s(4429) + val gpui_mgmt_dock_bottom: String get() = Tr.s(4430) + val gpui_mgmt_close: String get() = Tr.s(4431) + val gpui_mgmt_bom_saved: String get() = Tr.s(4432) + val gpui_mgmt_bom_reading: String get() = Tr.s(4433) + val gpui_mgmt_bom_nomatch: String get() = Tr.s(4434) + val gpui_mgmt_bom_nompn: String get() = Tr.s(4435) + val gpui_mgmt_filter: String get() = Tr.s(4436) + val gpui_mgmt_bom_noparts: String get() = Tr.s(4437) + val gpui_mgmt_bom_dnp: String get() = Tr.s(4438) + val gpui_mgmt_fab_tab: String get() = Tr.s(4439) + val gpui_mgmt_fab_drc_current: String get() = Tr.s(4440) + val gpui_mgmt_fab_drc_stale: String get() = Tr.s(4441) + val gpui_mgmt_fab_drc_update: String get() = Tr.s(4442) + val gpui_mgmt_fab_drc_none: String get() = Tr.s(4443) + val gpui_mgmt_fab_drc_write: String get() = Tr.s(4444) + val gpui_mgmt_fab_drc_noproject: String get() = Tr.s(4445) + val gpui_mgmt_fab_tier_extra: String get() = Tr.s(4446) + val gpui_mgmt_fab_tier_free: String get() = Tr.s(4447) + val gpui_mgmt_fab_reading: String get() = Tr.s(4448) + val gpui_mgmt_fab_thefab: String get() = Tr.s(4449) + val gpui_mgmt_fab_refresh: String get() = Tr.s(4450) + val gpui_mgmt_fab_apply: String get() = Tr.s(4451) + val gpui_mgmt_fab_changed: String get() = Tr.s(4452) + val gpui_mgmt_fab_seen: String get() = Tr.s(4453) + val gpui_mgmt_fab_limit: String get() = Tr.s(4454) + val gpui_mgmt_fab_free: String get() = Tr.s(4455) + val gpui_mgmt_fab_extra: String get() = Tr.s(4456) + val gpui_mgmt_fab_readcol: String get() = Tr.s(4457) + val gpui_mgmt_fab_derived: String get() = Tr.s(4458) + fun gpui_mgmt_fab_suggestion(what: Any, project: Any, fab: Any): String = Tr.f(4459, arrayOf(what, project, fab)) + fun gpui_mgmt_fab_read(rev: Any, day: Any): String = Tr.f(4460, arrayOf(rev, day)) + val gpui_mgmt_fab_reviewing: String get() = Tr.s(4461) + val gpui_mgmt_fab_noreview: String get() = Tr.s(4462) + val gpui_mgmt_fab_findings: String get() = Tr.s(4463) + val gpui_mgmt_fab_reviewbtn: String get() = Tr.s(4464) + val gpui_mgmt_fab_judge: String get() = Tr.s(4465) + val gpui_mgmt_plan_reading: String get() = Tr.s(4466) + val gpui_mgmt_plan_none: String get() = Tr.s(4467) + fun gpui_mgmt_plan_awaiting(n: Number): String = Tr.f(4468, arrayOf(n)) + val gpui_mgmt_plan_nothing: String get() = Tr.s(4469) + val gpui_mgmt_plan_saved: String get() = Tr.s(4470) + val gpui_mgmt_plan_all: String get() = Tr.s(4471) + val gpui_mgmt_plan_stop: String get() = Tr.s(4472) + val gpui_mgmt_plan_hide: String get() = Tr.s(4473) + val gpui_mgmt_plan_show: String get() = Tr.s(4474) + val gpui_mgmt_plan_done: String get() = Tr.s(4475) + val gpui_mgmt_plan_layer: String get() = Tr.s(4476) + val gpui_mgmt_plan_reject: String get() = Tr.s(4477) + val gpui_mgmt_plan_keysnote: String get() = Tr.s(4478) + fun gpui_mgmt_plan_reference(layer: Any): String = Tr.f(4479, arrayOf(layer)) + fun gpui_mgmt_plan_nets(n: Number): String = Tr.f(4480, arrayOf(n)) + val gpui_mgmt_plan_tab: String get() = Tr.s(4481) + val gpui_mgmt_plan_before: String get() = Tr.s(4482) + val gpui_mgmt_plan_onwords: String get() = Tr.s(4483) + val gpui_mgmt_plan_offwords: String get() = Tr.s(4484) + fun gpui_mgmt_plan_elsewhere(board: Any): String = Tr.f(4485, arrayOf(board)) + val gpui_mgmt_plan_openboard: String get() = Tr.s(4486) + val gpui_mgmt_plan_noboard: String get() = Tr.s(4487) + val gpui_mgmt_plan_drawn: String get() = Tr.s(4488) + val gpui_pick_planonce: String get() = Tr.s(4489) + val gpui_pick_planonce_note: String get() = Tr.s(4490) + val hub_view_board_unlisted: String get() = Tr.s(4491) + val gpui_mgmt_bom_stocknote: String get() = Tr.s(4492) + val hub_order_pick_more: String get() = Tr.s(4493) + val hub_order_pick_phone: String get() = Tr.s(4494) + val hub_order_pick_go: String get() = Tr.s(4495) + val gpui_plan_before_routing_desc: String get() = Tr.s(4496) + fun gpui_mgmt_bom_shared(others: Any): String = Tr.f(4497, arrayOf(others)) + fun gpui_mgmt_fab_review(must: Any, should: Any, notes: Any): String = Tr.f(4498, arrayOf(must, should, notes)) + fun gpui_mgmt_fab_stackup(id: Any, w: Any): String = Tr.f(4499, arrayOf(id, w)) + val gpui_mgmt_fab_proposed: String get() = Tr.s(4500) + val gpui_mgmt_fab_use: String get() = Tr.s(4501) + val gpui_keys_mgmt_bom: String get() = Tr.s(4502) + val gpui_keys_mgmt_checks: String get() = Tr.s(4503) + val gpui_keys_mgmt_life: String get() = Tr.s(4504) + val gpui_mgmt_checks_reading: String get() = Tr.s(4505) + val gpui_mgmt_checks_searching: String get() = Tr.s(4506) + val gpui_mgmt_checks_run: String get() = Tr.s(4507) + val gpui_mgmt_checks_running: String get() = Tr.s(4508) + fun gpui_mgmt_checks_behind(what: Any): String = Tr.f(4509, arrayOf(what)) + val gpui_mgmt_checks_stale: String get() = Tr.s(4510) + val gpui_mgmt_checks_liveunsaved: String get() = Tr.s(4511) + fun gpui_mgmt_checks_waiting(why: Any): String = Tr.f(4512, arrayOf(why)) + fun gpui_mgmt_checks_failed(why: Any): String = Tr.f(4513, arrayOf(why)) + val gpui_mgmt_checks_all: String get() = Tr.s(4514) + val gpui_mgmt_checks_errors: String get() = Tr.s(4515) + val gpui_mgmt_checks_warnings: String get() = Tr.s(4516) + val gpui_mgmt_checks_excluded: String get() = Tr.s(4517) + val gpui_mgmt_checks_fix: String get() = Tr.s(4518) + val gpui_mgmt_checks_reexport: String get() = Tr.s(4519) + fun gpui_mgmt_checks_more(n: Number): String = Tr.f(4520, arrayOf(n)) + val gpui_mgmt_checks_fewer: String get() = Tr.s(4521) + val gpui_mgmt_checks_none: String get() = Tr.s(4522) + val gpui_mgmt_checks_nomatch: String get() = Tr.s(4523) + val gpui_mgmt_checks_library: String get() = Tr.s(4524) + val gpui_mgmt_checks_withlib: String get() = Tr.s(4525) + val gpui_mgmt_checks_fullrun: String get() = Tr.s(4526) + val gpui_mgmt_checks_allsources: String get() = Tr.s(4527) + val gpui_mgmt_checks_judged: String get() = Tr.s(4528) + val gpui_mgmt_bom_dnp_tip: String get() = Tr.s(4529) + val gpui_mgmt_bom_writing: String get() = Tr.s(4530) + val gpui_mgmt_bom_inkicad: String get() = Tr.s(4531) + val gpui_mgmt_bom_saved_file: String get() = Tr.s(4532) + val gpui_mgmt_bom_fab: String get() = Tr.s(4533) + val gpui_mgmt_bom_mpn_ph: String get() = Tr.s(4534) + val gpui_mgmt_bom_fab_ph: String get() = Tr.s(4535) + fun gpui_mgmt_bom_each(price: Any, n: Any): String = Tr.f(4536, arrayOf(price, n)) + fun gpui_mgmt_bom_out(n: Any, need: Any): String = Tr.f(4537, arrayOf(n, need)) + fun gpui_mgmt_bom_low(n: Any): String = Tr.f(4538, arrayOf(n)) + fun gpui_mgmt_bom_in(n: Any): String = Tr.f(4539, arrayOf(n)) + fun gpui_mgmt_bom_cost(cost: Any): String = Tr.f(4540, arrayOf(cost)) + fun gpui_mgmt_bom_cost_least(cost: Any): String = Tr.f(4541, arrayOf(cost)) + val gpui_mgmt_bom_checking: String get() = Tr.s(4542) + val gpui_mgmt_bom_notknown: String get() = Tr.s(4543) + val gpui_mgmt_bom_stock: String get() = Tr.s(4544) + val gpui_mgmt_bom_alts: String get() = Tr.s(4545) + val gpui_mgmt_bom_alts_looking: String get() = Tr.s(4546) + val gpui_mgmt_bom_alts_none: String get() = Tr.s(4547) + val gpui_mgmt_bom_alts_use: String get() = Tr.s(4548) + val gpui_mgmt_bom_class_basic: String get() = Tr.s(4549) + val gpui_mgmt_bom_class_extended: String get() = Tr.s(4550) + val gpui_mgmt_bom_class_preferred: String get() = Tr.s(4551) + val gpui_mgmt_bom_notinstock: String get() = Tr.s(4552) + val gpui_mgmt_bom_off: String get() = Tr.s(4553) + fun gpui_mgmt_life_since(day: Any, n: Number): String = Tr.f(4554, arrayOf(day, n)) + fun gpui_mgmt_life_one(day: Any): String = Tr.f(4555, arrayOf(day)) + fun gpui_mgmt_life_now(cost: Any, n: Any, lines: Any): String = Tr.f(4556, arrayOf(cost, n, lines)) + fun gpui_mgmt_life_part_now(stock: Any, price: Any): String = Tr.f(4557, arrayOf(stock, price)) + fun gpui_mgmt_life_instock(lines: Any): String = Tr.f(4558, arrayOf(lines)) + val gpui_mgmt_life_board: String get() = Tr.s(4559) + val gpui_mgmt_life_price: String get() = Tr.s(4560) + val gpui_mgmt_life_active: String get() = Tr.s(4561) + val gpui_mgmt_life_nrnd: String get() = Tr.s(4562) + val gpui_mgmt_life_eol: String get() = Tr.s(4563) + val gpui_mgmt_life_unknown: String get() = Tr.s(4564) + val gpui_mgmt_life_nolines: String get() = Tr.s(4565) + val gpui_mgmt_life_noread: String get() = Tr.s(4566) + val gpui_mgmt_life_reading: String get() = Tr.s(4567) + val gpui_mgmt_life_nopart: String get() = Tr.s(4568) + val gpui_mgmt_life_tab: String get() = Tr.s(4569) + val gpui_mgmt_bom_paused: String get() = Tr.s(4570) + val gpui_mgmt_bom_paused_tip: String get() = Tr.s(4571) + val gpui_keys_mgmt_fab: String get() = Tr.s(4572) + val gpui_mgmt_bom_putback: String get() = Tr.s(4573) + val gpui_mgmt_bom_nochange: String get() = Tr.s(4574) + val gpui_mgmt_bom_deferred: String get() = Tr.s(4575) + val gpui_mgmt_bom_inkicad_save: String get() = Tr.s(4576) + val gpui_mgmt_bom_undo_tip: String get() = Tr.s(4577) + val gpui_mgmt_bom_undo: String get() = Tr.s(4578) + fun gpui_mgmt_checks_on(host: Any): String = Tr.f(4579, arrayOf(host)) + val gpui_gerbers: String get() = Tr.s(4580) + val gpui_gerbers_vs: String get() = Tr.s(4581) + val gpui_gerbers_vs_tip: String get() = Tr.s(4582) + val gpui_gerbers_gerbview: String get() = Tr.s(4583) + val gpui_gerbers_gerbview_tip: String get() = Tr.s(4584) + val gpui_mgmt_bom_saved_state: String get() = Tr.s(4585) + val gpui_mgmt_bom_live_tip: String get() = Tr.s(4586) + val gpui_mgmt_bom_saved_tip: String get() = Tr.s(4587) + val gpui_mgmt_bom_price: String get() = Tr.s(4588) + val gpui_mgmt_bom_class: String get() = Tr.s(4589) + fun gpui_mgmt_life_unknown_n(n: Any): String = Tr.f(4590, arrayOf(n)) + fun gpui_mgmt_life_unknown_tip(a: Any, b: Any): String = Tr.f(4591, arrayOf(a, b)) + fun gpui_mgmt_bom_stock_out(n: Any): String = Tr.f(4592, arrayOf(n)) + fun gpui_mgmt_bom_stock_low(n: Any): String = Tr.f(4593, arrayOf(n)) + val gpui_gerbers_boardonly: String get() = Tr.s(4594) + val gpui_gerbers_gerbersonly: String get() = Tr.s(4595) + fun gpui_mgmt_life_price_since(day: Any): String = Tr.f(4596, arrayOf(day)) + fun gpui_streamer_account(n: Any): String = Tr.f(4597, arrayOf(n)) + val gpui_streamer_mode: String get() = Tr.s(4598) + val gpui_streamer_section: String get() = Tr.s(4599) + val gpui_streamer_off: String get() = Tr.s(4600) + val gpui_streamer_on: String get() = Tr.s(4601) + val gpui_streamer_tip: String get() = Tr.s(4602) + val gpui_streamer_shared: String get() = Tr.s(4603) + val gpui_streamer_qr: String get() = Tr.s(4604) + val gpui_streamer_note: String get() = Tr.s(4605) + val gpui_streamer_share: String get() = Tr.s(4606) + val gpui_streamer_apps: String get() = Tr.s(4607) + val gpui_streamer_apps_note: String get() = Tr.s(4608) + val gpui_streamer_linux: String get() = Tr.s(4609) + val gpui_streamer_mac: String get() = Tr.s(4610) + val gpui_streamer_win: String get() = Tr.s(4611) + val gpui_f2_uber_title: String get() = Tr.s(4612) + val gpui_f2_uber_body: String get() = Tr.s(4613) + val gpui_f2_uber_say: String get() = Tr.s(4614) + val gpui_f2_uber_here: String get() = Tr.s(4615) + val gpui_f2_uber_err_name: String get() = Tr.s(4616) + val gpui_f2_uber_err_color: String get() = Tr.s(4617) + val gpui_f2_uber_color: String get() = Tr.s(4618) + val gpui_f2_uber_own: String get() = Tr.s(4619) + val gpui_f2_uber_custom: String get() = Tr.s(4620) + val gpui_f2_uber_hex: String get() = Tr.s(4621) + val gpui_f2_uber_use: String get() = Tr.s(4622) + val gpui_f2_uber_shuffle: String get() = Tr.s(4623) + val gpui_f2_uber_auto: String get() = Tr.s(4624) + val gpui_f2_uber_savename: String get() = Tr.s(4625) + val gpui_f2_uber_p_ginger: String get() = Tr.s(4626) + val gpui_f2_uber_p_cream: String get() = Tr.s(4627) + val gpui_f2_uber_p_smoke: String get() = Tr.s(4628) + val gpui_f2_uber_p_midnight: String get() = Tr.s(4629) + val gpui_f2_uber_p_cocoa: String get() = Tr.s(4630) + val gpui_f2_uber_p_sky: String get() = Tr.s(4631) + val gpui_f2_uber_p_lilac: String get() = Tr.s(4632) + val gpui_f2_uber_p_rose: String get() = Tr.s(4633) + val gpui_f2_uber_p_mint: String get() = Tr.s(4634) + val gpui_f2_uber_p_cherry: String get() = Tr.s(4635) + val gpui_simulation: String get() = Tr.s(4636) + val gpui_c_sheets_find: String get() = Tr.s(4637) + fun history_snap(turn: Any): String = Tr.f(4638, arrayOf(turn)) + val history_ref_snap: String get() = Tr.s(4639) + val thread_restore_action: String get() = Tr.s(4640) + val thread_restore_ask: String get() = Tr.s(4641) + val thread_restore_note: String get() = Tr.s(4642) + val thread_restore_go: String get() = Tr.s(4643) + val mouse_mouseandtrackpad0: String get() = Tr.s(4644) + val mouse_zoomdirection1: String get() = Tr.s(4645) + val mouse_appliestothewheelandatrackpads2: String get() = Tr.s(4646) + val mouse_normal3: String get() = Tr.s(4647) + val mouse_inverted4: String get() = Tr.s(4648) + val mouse_boardandschematic5: String get() = Tr.s(4649) + val mouse_k3dandstep6: String get() = Tr.s(4650) + val mouse_changedfromitspreseteachinputd7: String get() = Tr.s(4651) + val mouse_apresetsetseveryinputbeloweach8: String get() = Tr.s(4652) + val mouse_legacy10: String get() = Tr.s(4653) + val mouse_leftdrag11: String get() = Tr.s(4654) + val mouse_middledrag12: String get() = Tr.s(4655) + val mouse_rightdrag13: String get() = Tr.s(4656) + val mouse_shiftleftdrag14: String get() = Tr.s(4657) + val mouse_ctrlleftdrag15: String get() = Tr.s(4658) + val mouse_altleftdrag16: String get() = Tr.s(4659) + val mouse_wheel17: String get() = Tr.s(4660) + val mouse_shiftwheel18: String get() = Tr.s(4661) + val mouse_ctrlwheel19: String get() = Tr.s(4662) + val mouse_altwheel20: String get() = Tr.s(4663) + val mouse_nothing21: String get() = Tr.s(4664) + val mouse_pan22: String get() = Tr.s(4665) + val mouse_pansideways23: String get() = Tr.s(4666) + val mouse_panupanddown24: String get() = Tr.s(4667) + val mouse_zoom25: String get() = Tr.s(4668) + val mouse_rotate26: String get() = Tr.s(4669) + val mouse_roll27: String get() = Tr.s(4670) + val mouse_select28: String get() = Tr.s(4671) + val mouse_aclickwithoutmovingwithnokeyhe29: String get() = Tr.s(4672) + val mouse_leftbutton30: String get() = Tr.s(4673) + val mouse_middlebutton31: String get() = Tr.s(4674) + val mouse_rightbutton32: String get() = Tr.s(4675) + val mouse_twofingerscroll33: String get() = Tr.s(4676) + val mouse_atrackpadstwofingerswithctrlhe34: String get() = Tr.s(4677) + val mouse_pans35: String get() = Tr.s(4678) + val mouse_isthewheel36: String get() = Tr.s(4679) + val mouse_pinch37: String get() = Tr.s(4680) + val mouse_atrackpadpinch38: String get() = Tr.s(4681) + val mouse_zooms39: String get() = Tr.s(4682) + val mouse_chooseaninputforitabove41: String get() = Tr.s(4683) + val mouse_nothingissettopan42: String get() = Tr.s(4684) + val mouse_nothingissettozoom43: String get() = Tr.s(4685) + val mouse_nothingissettorotate44: String get() = Tr.s(4686) + val gpui_review_mark: String get() = Tr.s(4687) + val gpui_review_mark_tip: String get() = Tr.s(4688) + val gpui_review_why: String get() = Tr.s(4689) + val gpui_review_allow: String get() = Tr.s(4690) + val gpui_review_allow_tip: String get() = Tr.s(4691) + val gpui_review_off: String get() = Tr.s(4692) + val gpui_review_again: String get() = Tr.s(4693) + val gpui_review_again_tip: String get() = Tr.s(4694) + val gpui_rail_no_board: String get() = Tr.s(4695) + val gpui_rail_no_schematic: String get() = Tr.s(4696) + val gpui_rail_split_needs_both: String get() = Tr.s(4697) + val gpui_rail_no_mech: String get() = Tr.s(4698) + val gpui_panestate_next_board: String get() = Tr.s(4699) + val gpui_panestate_next_schematic: String get() = Tr.s(4700) + val gpui_panestate_next_solid: String get() = Tr.s(4701) + val gpui_panestate_empty_gerbers: String get() = Tr.s(4702) + val gpui_panestate_next_gerbers: String get() = Tr.s(4703) + val gpui_panestate_gerbers_noboard: String get() = Tr.s(4704) + val gpui_panestate_gerbers_noboard_next: String get() = Tr.s(4705) + val gpui_panestate_empty_mech: String get() = Tr.s(4706) + val gpui_panestate_next_mech: String get() = Tr.s(4707) + val gpui_panestate_loading_split: String get() = Tr.s(4708) + val gpui_panestate_retrying: String get() = Tr.s(4709) + val gpui_hub_view_notready: String get() = Tr.s(4710) + val gpui_hub_view_staleconn: String get() = Tr.s(4711) + val gpui_hub_view_unavailable: String get() = Tr.s(4712) + val settings_designmode_label: String get() = Tr.s(4713) + val settings_designmode_viewer: String get() = Tr.s(4714) + val settings_designmode_kicad: String get() = Tr.s(4715) + val settings_designmode_note: String get() = Tr.s(4716) + val review_empty_title: String get() = Tr.s(4717) + val review_empty_next: String get() = Tr.s(4718) + val viewer_diff_threadchanges: String get() = Tr.s(4719) + val viewer_layout_refusal_locked: String get() = Tr.s(4720) + val viewer_layout_refusal_toosmall: String get() = Tr.s(4721) + val viewer_layout_refusal_onekicad: String get() = Tr.s(4722) + val viewer_layout_refusal_incompatibleoverlay: String get() = Tr.s(4723) + val viewer_layout_refusal_notfound: String get() = Tr.s(4724) + val viewer_layout_refusal_nooverlay: String get() = Tr.s(4725) + val viewer_layout_refusal_invalidsource: String get() = Tr.s(4726) + val viewer_layout_refusal_sametile: String get() = Tr.s(4727) + val viewer_layout_refusal_invalidratio: String get() = Tr.s(4728) + val viewer_layout_refusal_duplicateid: String get() = Tr.s(4729) + val viewer_layout_refusal_unknownframe: String get() = Tr.s(4730) + val viewer_layout_refusal_invalidinput: String get() = Tr.s(4731) + val viewer_layout_refusal_toomany: String get() = Tr.s(4732) + val viewer_layout_refusal_toomanysources: String get() = Tr.s(4733) + val viewer_layout_refusal_unresolvedversion: String get() = Tr.s(4734) + val viewer_layout_refusal_nohistory: String get() = Tr.s(4735) + val viewer_layout_refusal_linked: String get() = Tr.s(4736) + val viewer_layout_refusal_notondevice: String get() = Tr.s(4737) + val viewer_layout_refusal_starting: String get() = Tr.s(4738) + val viewer_footprinteditor: String get() = Tr.s(4739) + val viewer_symboleditor: String get() = Tr.s(4740) + val web_clone_tab: String get() = Tr.s(4741) + val web_clone_repo_placeholder: String get() = Tr.s(4742) + val web_clone_private: String get() = Tr.s(4743) + val web_clone_signin: String get() = Tr.s(4744) + val web_clone_signin_wait: String get() = Tr.s(4745) + val web_clone_signin_enter: String get() = Tr.s(4746) + val web_clone_signin_done: String get() = Tr.s(4747) + val web_clone_copied: String get() = Tr.s(4748) + val web_clone_change_folder: String get() = Tr.s(4749) + val web_clone_folder_name: String get() = Tr.s(4750) + val web_clone_start_thread: String get() = Tr.s(4751) + fun web_clone_first(text: Any): String = Tr.f(4752, arrayOf(text)) + val web_clone_same: String get() = Tr.s(4753) + val web_clone_go: String get() = Tr.s(4754) + fun web_clone_cloning(repo: Any, dest: Any): String = Tr.f(4755, arrayOf(repo, dest)) + fun web_clone_cloned(repo: Any, dest: Any): String = Tr.f(4756, arrayOf(repo, dest)) + fun web_clone_stopped(repo: Any): String = Tr.f(4757, arrayOf(repo)) + val web_clone_retry: String get() = Tr.s(4758) + val web_clone_back: String get() = Tr.s(4759) + val web_clone_open_thread: String get() = Tr.s(4760) + val web_clone_open_project: String get() = Tr.s(4761) + fun web_clone_add_dir(dir: Any): String = Tr.f(4762, arrayOf(dir)) + fun web_clone_use_dir(dir: Any): String = Tr.f(4763, arrayOf(dir)) + val web_clone_up: String get() = Tr.s(4764) + val web_clone_loading: String get() = Tr.s(4765) + val web_clone_no_folders: String get() = Tr.s(4766) + fun gpui_c_kicad_opening(editor: Any, job: Any, secs: Any): String = Tr.f(4767, arrayOf(editor, job, secs)) + fun gpui_c_kicad_openingbare(editor: Any, secs: Any): String = Tr.f(4768, arrayOf(editor, secs)) + fun gpui_c_kicad_openfailed(editor: Any): String = Tr.f(4769, arrayOf(editor)) + val viewer_tile_rail_add: String get() = Tr.s(4770) + val viewer_tile_add: String get() = Tr.s(4771) + val viewer_tile_maximize: String get() = Tr.s(4772) + val viewer_tile_restore: String get() = Tr.s(4773) + val viewer_tile_focus: String get() = Tr.s(4774) + val viewer_tile_embedded: String get() = Tr.s(4775) + val viewer_tile_simulation_single: String get() = Tr.s(4776) + val viewer_tile_add_tip: String get() = Tr.s(4777) + val viewer_tile_left: String get() = Tr.s(4778) + val viewer_tile_right: String get() = Tr.s(4779) + val viewer_tile_top: String get() = Tr.s(4780) + val viewer_tile_bottom: String get() = Tr.s(4781) + val web_pair_subtitle: String get() = Tr.s(4782) + val web_pair_name: String get() = Tr.s(4783) + val web_pair_request: String get() = Tr.s(4784) + val web_pair_code: String get() = Tr.s(4785) + fun web_pair_approve_in(time: Any): String = Tr.f(4786, arrayOf(time)) + val web_pair_expired: String get() = Tr.s(4787) + val web_pair_approved: String get() = Tr.s(4788) + val web_pair_denied: String get() = Tr.s(4789) + val web_pair_cancelled: String get() = Tr.s(4790) + val web_pair_requesting: String get() = Tr.s(4791) + fun web_pair_failed(status: Any): String = Tr.f(4792, arrayOf(status)) + val web_pair_ratelimited: String get() = Tr.s(4793) + val web_pair_nocode: String get() = Tr.s(4794) + val web_pair_unreachable: String get() = Tr.s(4795) + val web_chat_loading: String get() = Tr.s(4796) + val web_chat_choose: String get() = Tr.s(4797) + val web_chat_empty: String get() = Tr.s(4798) + val web_chat_streaming: String get() = Tr.s(4799) + fun web_chat_finished(time: Any): String = Tr.f(4800, arrayOf(time)) + fun web_chat_finished_dur(time: Any, dur: Any): String = Tr.f(4801, arrayOf(time, dur)) + val web_chat_answer_placeholder: String get() = Tr.s(4802) + val web_chat_answer_btn: String get() = Tr.s(4803) + fun web_chat_answered(answer: Any): String = Tr.f(4804, arrayOf(answer)) + val web_chat_review_mode: String get() = Tr.s(4805) + val web_composer_attach: String get() = Tr.s(4806) + val web_composer_voice: String get() = Tr.s(4807) + fun web_composer_unsupported(type: Any): String = Tr.f(4808, arrayOf(type)) + fun web_composer_maximages(max: Any): String = Tr.f(4809, arrayOf(max)) + val web_logout_failed: String get() = Tr.s(4810) + val thread_context_title: String get() = Tr.s(4811) + val thread_context_instructions: String get() = Tr.s(4812) + val thread_context_system: String get() = Tr.s(4813) + val thread_context_skills: String get() = Tr.s(4814) + val thread_context_mcp: String get() = Tr.s(4815) + val thread_context_mcp_short: String get() = Tr.s(4816) + val thread_context_reading: String get() = Tr.s(4817) + val thread_context_none_instructions: String get() = Tr.s(4818) + val thread_context_none_mcp: String get() = Tr.s(4819) + val thread_context_native_note: String get() = Tr.s(4820) + val thread_context_copy: String get() = Tr.s(4821) + val thread_context_copied: String get() = Tr.s(4822) + val thread_context_base: String get() = Tr.s(4823) + val thread_context_injected_label: String get() = Tr.s(4824) + val thread_context_index: String get() = Tr.s(4825) + val thread_context_scope_user: String get() = Tr.s(4826) + val thread_context_scope_bundled: String get() = Tr.s(4827) + val thread_context_native: String get() = Tr.s(4828) + val thread_context_injected: String get() = Tr.s(4829) + val thread_context_cross: String get() = Tr.s(4830) + val thread_context_explicit: String get() = Tr.s(4831) + val thread_context_untrusted: String get() = Tr.s(4832) + val thread_context_invalid: String get() = Tr.s(4833) + val thread_context_trust: String get() = Tr.s(4834) + val thread_context_enable: String get() = Tr.s(4835) + val thread_context_disable: String get() = Tr.s(4836) + fun thread_context_size(bytes: Any, tokens: Any): String = Tr.f(4837, arrayOf(bytes, tokens)) + val thread_context_unreachable: String get() = Tr.s(4838) + val gpui_planmode_top_once: String get() = Tr.s(4839) + val gpui_planmode_top_planning: String get() = Tr.s(4840) + val gpui_planmode_top_pending: String get() = Tr.s(4841) + val gpui_planmode_top_executing: String get() = Tr.s(4842) + val gpui_planmode_tip: String get() = Tr.s(4843) + val gpui_planmode_chip_building: String get() = Tr.s(4844) + val gpui_planmode_chip_once: String get() = Tr.s(4845) + val gpui_planmode_bar_once: String get() = Tr.s(4846) + val gpui_planmode_bar_always: String get() = Tr.s(4847) + val gpui_planmode_bar_planning: String get() = Tr.s(4848) + val gpui_planmode_bar_pending: String get() = Tr.s(4849) + val gpui_planmode_bar_executing: String get() = Tr.s(4850) + val gpui_planmode_scope_once: String get() = Tr.s(4851) + val gpui_planmode_scope_always: String get() = Tr.s(4852) + val gpui_ask_plan_ready: String get() = Tr.s(4853) + val gpui_ask_plan_revise: String get() = Tr.s(4854) + val gpui_ask_plan_sendrev: String get() = Tr.s(4855) + val gpui_ask_plan_reviseph: String get() = Tr.s(4856) + val gpui_mgmt_plan_st_blocked: String get() = Tr.s(4857) + val gpui_mgmt_plan_st_routing: String get() = Tr.s(4858) + val gpui_mgmt_plan_st_awaiting: String get() = Tr.s(4859) + val gpui_mgmt_plan_st_verified: String get() = Tr.s(4860) + val gpui_mgmt_plan_st_routed: String get() = Tr.s(4861) + val gpui_mgmt_plan_st_approved: String get() = Tr.s(4862) + val gpui_mgmt_plan_st_partial: String get() = Tr.s(4863) + val gpui_mgmt_plan_st_rejected: String get() = Tr.s(4864) + val gpui_mgmt_plan_st_empty: String get() = Tr.s(4865) + val gpui_mgmt_plan_refused: String get() = Tr.s(4866) + val gpui_mgmt_plan_emptysub: String get() = Tr.s(4867) + val gpui_mgmt_plan_verify: String get() = Tr.s(4868) + val gpui_mgmt_plan_reqplain: String get() = Tr.s(4869) + fun gpui_mgmt_plan_requested(what: Any): String = Tr.f(4870, arrayOf(what)) + val gpui_mgmt_plan_stackup: String get() = Tr.s(4871) + val gpui_keys_planmode: String get() = Tr.s(4872) + val gpui_keys_mgmt_plan: String get() = Tr.s(4873) + fun web_plan_awaiting(n: Any): String = Tr.f(4874, arrayOf(n)) + val web_plan_net_one: String get() = Tr.s(4875) + fun web_plan_nets(n: Any): String = Tr.f(4876, arrayOf(n)) + val gpui_mgmt_plan_view_canvas: String get() = Tr.s(4877) + val gpui_mgmt_plan_view_split: String get() = Tr.s(4878) + val gpui_mgmt_plan_view_list: String get() = Tr.s(4879) + val gpui_mgmt_plan_grid_all: String get() = Tr.s(4880) + val gpui_mgmt_plan_grid_pair: String get() = Tr.s(4881) + val gpui_mgmt_plan_grid_single: String get() = Tr.s(4882) + val gpui_mgmt_plan_expand: String get() = Tr.s(4883) + val gpui_mgmt_plan_compact: String get() = Tr.s(4884) + val gpui_mgmt_plan_sync: String get() = Tr.s(4885) + val gpui_mgmt_plan_fit: String get() = Tr.s(4886) + val gpui_mgmt_plan_lock: String get() = Tr.s(4887) + val gpui_mgmt_plan_unlock: String get() = Tr.s(4888) + val gpui_mgmt_plan_layer_move: String get() = Tr.s(4889) + val gpui_mgmt_plan_width: String get() = Tr.s(4890) + val gpui_mgmt_plan_addnote: String get() = Tr.s(4891) + val gpui_mgmt_plan_note_placeholder: String get() = Tr.s(4892) + val gpui_mgmt_plan_hint: String get() = Tr.s(4893) + val gpui_mgmt_plan_rejectlayer: String get() = Tr.s(4894) + val gpui_mgmt_plan_edited: String get() = Tr.s(4895) + val gpui_mgmt_plan_locked: String get() = Tr.s(4896) + val gpui_mgmt_plan_noitems: String get() = Tr.s(4897) + val gpui_mgmt_plan_stackup_short: String get() = Tr.s(4898) + val gpui_mgmt_plan_layer_short: String get() = Tr.s(4899) + fun gpui_mgmt_plan_awaiting_short(n: Any): String = Tr.f(4900, arrayOf(n)) + fun gpui_mgmt_plan_done_of(done: Any, total: Any): String = Tr.f(4901, arrayOf(done, total)) + val gpui_planmode_chip_review: String get() = Tr.s(4902) + val mobile_plan_steer: String get() = Tr.s(4903) + val mobile_plan_details: String get() = Tr.s(4904) + val mobile_plan_reset: String get() = Tr.s(4905) + val mobile_plan_removepoint: String get() = Tr.s(4906) + val mobile_plan_touchhint: String get() = Tr.s(4907) + val mobile_plan_copied: String get() = Tr.s(4908) + fun mobile_plan_widthmm(v: Any): String = Tr.f(4909, arrayOf(v)) + fun mobile_plan_coord(x: Any, y: Any): String = Tr.f(4910, arrayOf(x, y)) + val provider_notice_head: String get() = Tr.s(4911) + val provider_notice_text_none: String get() = Tr.s(4912) + val provider_notice_text_signedout: String get() = Tr.s(4913) + val provider_notice_button: String get() = Tr.s(4914) + val provider_notice_senderr: String get() = Tr.s(4915) + fun provider_notice_senderr_remote(machine: Any): String = Tr.f(4916, arrayOf(machine)) + val web_settings_providers: String get() = Tr.s(4917) + val web_settings_providers_browser: String get() = Tr.s(4918) } diff --git a/mobile/ios/Shared/TrCatalog.swift b/mobile/ios/Shared/TrCatalog.swift index ace6ffb390..5ec1a5ec16 100644 --- a/mobile/ios/Shared/TrCatalog.swift +++ b/mobile/ios/Shared/TrCatalog.swift @@ -486,6 +486,19 @@ ios.clone.signin.starting Starting the sign-in… サインインを開始中… ios.clone.signin.done Signed in to GitHub. GitHub にサインインしました。 Sesión iniciada en GitHub. ios.clone.signin.open Open the page ページを開く Abrir la página ios.clone.loading Reading your repositories… リポジトリを読み込み中… Leyendo tus repositorios… +mobile.tab.inbox Inbox 受信トレイ Bandeja +mobile.tab.crew Crew クルー Equipo +mobile.tab.bench Bench ベンチ Banco +mobile.inbox.clear All clear 対応待ちなし Todo en orden +mobile.inbox.clear.note Nothing needs you and nothing is running. 対応待ちも実行中のものもありません。 Nada te necesita y nada está en marcha. +mobile.inbox.talk.bub Talk to Bub Bubと話す Hablar con Bub +mobile.inbox.jump.in Jump back in 最近開いたプロジェクト Volver a entrar +mobile.inbox.open.bench Open Bench ベンチを開く Abrir el banco +mobile.badge.pcb PCB PCB PCB +mobile.pill.waiting Waiting 待機中 En espera +mobile.snooze.wakes Wakes in {time} {time}後に再開 Vuelve en {time} +mobile.bench.all All projects すべてのプロジェクト Todos los proyectos +mobile.snooze.for Snooze for スヌーズする期間 Posponer common.cancel Cancel キャンセル Cancelar common.delete Delete 削除 Eliminar common.save Save 保存 Guardar @@ -7683,6 +7696,9 @@ web.settings.providers.browser Connect a provider in the Backplane desktop or mo /// ios.clone.code = Enter this code at {url} static func ios_clone_code(url: String) -> String { f("ios.clone.code", ["url": url]) } + /// mobile.snooze.wakes = Wakes in {time} + static func mobile_snooze_wakes(time: String) -> String { f("mobile.snooze.wakes", ["time": time]) } + /// gpui.sections.move.to = Move to {group} static func gpui_sections_move_to(group: String) -> String { f("gpui.sections.move.to", ["group": group]) } diff --git a/native/host/src/data/mod.rs b/native/host/src/data/mod.rs index 18c63da773..d09e5e10a9 100644 --- a/native/host/src/data/mod.rs +++ b/native/host/src/data/mod.rs @@ -581,9 +581,19 @@ async fn call(hub: &Arc, c: &mut Conn, m: &str, p: &Value, is_browser: bool } // a sidebar section's press: pin a project (`project-pin` ), fold or unfold its threads (`project-fold` ), archive it (`project-archive` , again to unarchive), hide another machine's thread here (`thread-hide` ), name a group (`group-rename` "\u{1f}"), move a project (`group-move` "\u{1f}") "sidebar.act" => { - let Some(pol) = crate::statehost::policies() else { return Err(err("state is starting")) }; let (a, v) = (s(p, "action"), s(p, "value")); - if !matches!(a, "project-pin" | "project-fold" | "thread-hide" | "group-rename" | "group-move" | "project-archive") { return Err(err("no such action")) } + // a thread row's snooze or wake, by the row's own value (sections.rs `snooze` and `wake`: "|1h", "|tomorrow", "|1w", "|off"; the window's + // carries its hub first, "||"): the thread's snooze, as the desktop's `row-snooze` sends it + if a == "row-snooze" { + let mut parts = v.rsplit('|'); let (span, th) = (parts.next().unwrap_or(""), parts.next().unwrap_or("")); + if th.is_empty() || !matches!(span, "1h" | "tomorrow" | "1w" | "off") { return Err(err("value: |1h, tomorrow, 1w or off")) } + if !hub.model().await.threads.get(th).map_or(false, |t| !t.deleted) { return Err(err("unknown thread")) } + rpc(hub, c, "thread.snooze", json!({"thread":th,"for":span})).await?; + return Ok(json!({})) + } + // `project-page` : the person opened a project's page on this client, a visit (the bench orders by it; at most one write in ten minutes) + if !matches!(a, "project-pin" | "project-fold" | "thread-hide" | "group-rename" | "group-move" | "project-archive" | "project-page") { return Err(err("no such action")) } + let Some(pol) = crate::statehost::policies() else { return Err(err("state is starting")) }; let now = crate::hub::now_ms() / 1000; let sets = pol.with_state(|st| crate::present::merged::merged_of(st, hub.mirrors(), |rows| crate::present::sections::act(st, &rows, a, v, &json!({}), now).map(|x| x.sets))).flatten().ok_or_else(|| err("unknown project or group"))?; for (k, val) in sets { rpc(hub, c, "setting.set", json!({"key":k,"value":val})).await?; } diff --git a/native/host/src/data/tests.rs b/native/host/src/data/tests.rs index e4d3049676..e82c44de29 100644 --- a/native/host/src/data/tests.rs +++ b/native/host/src/data/tests.rs @@ -8,7 +8,7 @@ use tokio_tungstenite::connect_async; struct Fake(Arc); impl RpcHandler for Fake { - fn methods(&self) -> &'static [&'static str] { &["project.add", "project.new", "thread.create", "thread.modes", "thread.effort", "thread.provider", "ask.answer", "turn.interrupt", "thread.pin", "thread.rename", "thread.detach", "setting.set", "thread.review"] } + fn methods(&self) -> &'static [&'static str] { &["project.add", "project.new", "thread.create", "thread.modes", "thread.effort", "thread.provider", "ask.answer", "turn.interrupt", "thread.pin", "thread.rename", "thread.detach", "setting.set", "thread.review", "thread.snooze"] } fn call<'a>(&'a self, h: &'a Arc, _w: &'a Caller, id: &'a Value, m: &'a str, p: &'a Value) -> Fut<'a, Vec> { Box::pin(async move { let _ = &self.0; let at = now_ms() / 1000; @@ -19,6 +19,9 @@ impl RpcHandler for Fake { // /project's request: a folder named "full" holds something, any other is made with its first thread "project.new" => if s(p, "path") == "full" { vec![json!({"t":"reply","id":id,"ok":false,"error":"/h/full is there and is not empty.","result":{"error":"/h/full is there and is not empty.","exists":"/h/full"}})] } else { assert_eq!(p["empty"], true); vec![json!({"t":"reply","id":id,"ok":true,"thread":format!("made-{}", s(p, "text").len())})] }, + // (the commands lane's: `for` 1h, tomorrow, 1w or off) + "thread.snooze" => { assert!(matches!(s(p, "for"), "1h" | "tomorrow" | "1w" | "off"), "the span as the row gave it: {p}"); + h.commit(&json!({"$":"ThreadSnoozed","id":s(p,"thread"),"until":if s(p, "for") == "off" { 0 } else { at + 3600 },"at":at})).await.unwrap(); vec![json!({"t":"reply","id":id,"ok":true})] } "thread.review" => { h.commit(&json!({"$":"SettingSet","key":format!("review.ro.{}", s(p, "thread")),"value":if p["on"] == true { "1" } else { "0" },"at":at})).await.unwrap(); vec![json!({"t":"reply","id":id,"ok":true})] } "ask.answer" => { h.commit(&json!({"$":"AskClosed","id":s(p,"id"),"answer":s(p,"answer"),"at":at})).await.unwrap(); vec![json!({"t":"reply","id":id,"ok":true})] } "thread.modes" | "thread.effort" | "thread.provider" | "turn.interrupt" | "thread.pin" | "thread.rename" | "thread.detach" | "setting.set" => vec![json!({"t":"reply","id":id,"ok":true})], @@ -336,6 +339,13 @@ impl crate::api::RpcHandler for PushState { let r = ask(&mut ws, 8, "thread.act", json!({"thread":"t1","action":"pin"})).await; assert_eq!(r["ok"], true); assert_eq!(r["result"]["thread"]["id"], "t1"); let r = ask(&mut ws, 9, "thread.act", json!({"thread":"t1","action":"explode"})).await; assert_eq!(r["ok"], false); let r = ask(&mut ws, 10, "thread.act", json!({"thread":"nope","action":"pin"})).await; assert_eq!(r["ok"], false); + // a section row's snooze and wake by the row's own value (sections.rs `snooze`, `wake`), and a project page's visit: the phones' and the web's `sidebar.act` + let r = ask(&mut ws, 101, "sidebar.act", json!({"action":"row-snooze","value":"t1|1h"})).await; assert_eq!(r["ok"], true, "{r}"); + assert_eq!(ask(&mut ws, 102, "sidebar.act", json!({"action":"row-snooze","value":"hub|t1|off"})).await["ok"], true, "the window's value carries its hub first"); + assert_eq!(ask(&mut ws, 103, "sidebar.act", json!({"action":"row-snooze","value":"t1|forever"})).await["ok"], false, "a span the hub does not know"); + assert_eq!(ask(&mut ws, 104, "sidebar.act", json!({"action":"row-snooze","value":"nope|1h"})).await["ok"], false, "an unknown thread"); + assert_eq!(ask(&mut ws, 105, "sidebar.act", json!({"action":"row-snooze","value":"t1"})).await["ok"], false, "no span"); + assert_eq!(ask(&mut ws, 107, "sidebar.act", json!({"action":"explode","value":"t1"})).await["error"], "no such action"); let r = ask(&mut ws, 11, "thread.act", json!({"thread":"t1","action":"rename","title":" "})).await; assert_eq!(r["ok"], false, "a blank title is refused before any request"); // the badge and Move to top level let r = ask(&mut ws, 12, "badge.list", json!({})).await; assert_eq!((r["result"]["colors"][0]["name"].as_str(), r["result"]["icons"][0].as_str()), (Some("blue"), Some("folder"))); From fd380615cbb36603073023e5c823614619db2c69 Mon Sep 17 00:00:00 2001 From: i2cjak Date: Mon, 23 Nov 2026 02:50:34 -0500 Subject: [PATCH 2/6] Android: mobile-native Inbox/Crew/Bench tabs, status pills, swipe-to-snooze, and PCB badges --- .../java/dev/backplane/mobile/DataClient.kt | 4 + .../java/dev/backplane/mobile/DataSections.kt | 543 +++++++++++++++--- .../java/dev/backplane/mobile/DataViews.kt | 244 +++++++- .../backplane/mobile/MobileSectionsTest.kt | 114 ++++ 4 files changed, 823 insertions(+), 82 deletions(-) create mode 100644 mobile/android/app/src/test/java/dev/backplane/mobile/MobileSectionsTest.kt diff --git a/mobile/android/app/src/main/java/dev/backplane/mobile/DataClient.kt b/mobile/android/app/src/main/java/dev/backplane/mobile/DataClient.kt index a4b32d9f9f..1b91d006dc 100644 --- a/mobile/android/app/src/main/java/dev/backplane/mobile/DataClient.kt +++ b/mobile/android/app/src/main/java/dev/backplane/mobile/DataClient.kt @@ -450,6 +450,10 @@ object DataClient { } fun toggleSection(t: String) { sectionsOpen = if (t in sectionsOpen) sectionsOpen - t else sectionsOpen + t; prefs().edit().putStringSet("sections.open", sectionsOpen).apply(); scope.launch { loadSections() } } fun sidebarAct(action: String, value: String) { scope.launch { runCatching { call("sidebar.act", JSONObject().put("action", action).put("value", value)) }; loadSections() } } + /** Snooze or wake a thread row using the hub's own `snooze[].value` (`|1h|tomorrow|1w`) or `wake` (`|off`). */ + fun snoozeRow(value: String) { if (value.isNotEmpty()) sidebarAct("row-snooze", value) } + /** Record a project visit on the hub so the Recent bench order follows this phone too. */ + fun visitProject(key: String) { if (key.isNotEmpty()) sidebarAct("project-page", key) } /** A section row's menu item for a thread of this hub (the hub's `menu`: pin, unpin, settle, unsettle, archive): `thread.act`, then the sections as the hub has them now. */ fun sectionThreadAct(tid: String, action: String) { scope.launch { runCatching { call("thread.act", JSONObject().put("thread", tid).put("action", action)).optJSONObject("thread")?.let { upsert(parseThread(it)) } }; loadSections() } } suspend fun projectPage(key: String, done: Boolean, older: Boolean = false): List? { diff --git a/mobile/android/app/src/main/java/dev/backplane/mobile/DataSections.kt b/mobile/android/app/src/main/java/dev/backplane/mobile/DataSections.kt index a926ffe1e1..e9cd159008 100644 --- a/mobile/android/app/src/main/java/dev/backplane/mobile/DataSections.kt +++ b/mobile/android/app/src/main/java/dev/backplane/mobile/DataSections.kt @@ -1,7 +1,9 @@ package dev.backplane.mobile +import androidx.compose.foundation.BorderStroke import androidx.compose.foundation.ExperimentalFoundationApi import androidx.compose.foundation.background +import androidx.compose.foundation.border import androidx.compose.foundation.clickable import androidx.compose.foundation.combinedClickable import androidx.compose.foundation.layout.* @@ -9,30 +11,59 @@ import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.LazyListScope import androidx.compose.foundation.lazy.items import androidx.compose.material.icons.Icons +import androidx.compose.material.icons.filled.Check import androidx.compose.material.icons.filled.ChevronRight +import androidx.compose.material.icons.filled.Close import androidx.compose.material.icons.filled.ExpandMore +import androidx.compose.material.icons.filled.Key +import androidx.compose.material.icons.filled.Memory +import androidx.compose.material.icons.filled.NotificationsActive +import androidx.compose.material.icons.filled.PriorityHigh import androidx.compose.material.icons.filled.PushPin +import androidx.compose.material.icons.filled.QuestionMark +import androidx.compose.material.icons.filled.Schedule +import androidx.compose.material.icons.filled.Stop +import androidx.compose.material.icons.filled.Sync +import androidx.compose.material3.AlertDialog import androidx.compose.material3.DropdownMenu import androidx.compose.material3.DropdownMenuItem +import androidx.compose.material3.ExperimentalMaterial3Api import androidx.compose.material3.Icon +import androidx.compose.material3.SwipeToDismissBox +import androidx.compose.material3.SwipeToDismissBoxValue import androidx.compose.material3.Text -import androidx.compose.material3.AlertDialog -import androidx.compose.ui.graphics.RectangleShape -import androidx.compose.ui.unit.sp +import androidx.compose.material3.rememberSwipeToDismissBoxState import androidx.compose.runtime.* -import androidx.compose.ui.graphics.luminance import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.draw.alpha import androidx.compose.ui.graphics.Color +import androidx.compose.ui.graphics.RectangleShape +import androidx.compose.ui.graphics.luminance +import androidx.compose.ui.graphics.vector.ImageVector import androidx.compose.ui.platform.testTag +import androidx.compose.ui.text.font.FontWeight import androidx.compose.ui.unit.dp +import androidx.compose.ui.unit.sp import kotlinx.coroutines.launch import org.json.JSONArray import org.json.JSONObject -// The sidebar's sections (docs/ALWAYS-ON.md section 8, the hub's present/sections.rs through data/1 `sidebar.sections`): Needs you, Pinned, -// Active, the groups (by git owner, then folder) and Quiet. The hub decides what is in each; the app draws them as they come. +// The sidebar's sections (docs/ALWAYS-ON.md section 8, the hub's present/sections.rs through data/1 `sidebar.sections`): +// Inbox (`needs`, `running`, `snoozed`) and Bench (`pinned`, `active`, `group:*`, `all`, `quiet`). +// The hub decides what is in each; the phone renders them with mobile-native touch ergonomics, explicit icon+word status pills, and swipe actions. + +/** One snooze span offered by the hub (`row-snooze` action with `value`, e.g. `|1h`). */ +data class DSnoozeOpt(val label: String, val value: String) { + companion object { + fun list(a: JSONArray?): List = (0 until (a?.length() ?: 0)).mapNotNull { i -> + a!!.optJSONObject(i)?.let { o -> + val l = o.optString("label"); val v = o.optString("value") + if (l.isNotEmpty() && v.isNotEmpty()) DSnoozeOpt(l, v) else null + } + } + } +} /** A row of a section: a thread, or a project (its `key` set) with its visible threads under it. */ data class DSecRow(val id: String, val title: String, val word: String, val say: String, val want: String, val ago: String, val mark: DMark?, val project: String, @@ -42,12 +73,20 @@ data class DSecRow(val id: String, val title: String, val word: String, val say: /** a project's threads with no row under it (finished ones, on its page): counted on its row so none seems lost */ val rest: Int = 0, /** a swarm row's need (present/swarm_need.rs): the line saying what happened and the actions that resolve it; null when nothing waits on the person */ - val need: DNeed? = null) { + val need: DNeed? = null, + /** explicit status pill word & tone from the hub (`badge` in present/sections.rs: bad | run | wait | ok | "") */ + val label: String = "", val tone: String = "", + /** snooze duration choices (`row-snooze`), wake value (`|off` on snoozed rows), and one-swipe settle id */ + val snooze: List = emptyList(), val wake: String = "", val settle: String = "", + /** hardware indicators for Bench project rows (present/sections.rs `hasBoard`/`hasSchematic`) */ + val hasBoard: Boolean = false, val hasSchematic: Boolean = false) { companion object { fun of(o: JSONObject): DSecRow = DSecRow(o.optString("id"), o.optString("title"), o.optString("word"), o.optString("say"), o.optString("want"), o.optString("ago"), parseMark(o.optJSONObject("mark")), o.optString("project"), o.optBoolean("off"), o.optString("nav"), o.optBoolean("pinned"), o.optString("key"), o.optInt("running"), list(o.optJSONArray("threads")), o.optString("css"), (0 until (o.optJSONArray("dots")?.length() ?: 0)).map { i -> o.getJSONArray("dots").getJSONObject(i).let { it.optBoolean("here") to it.optBoolean("dim") } }, o.optString("kind"), o.optString("hide"), o.optString("icon"), DMenuItem.list(o.optJSONArray("menu")), - o.optString("fold"), o.optBoolean("folded"), o.optInt("under"), o.optInt("needsCount"), o.optInt("rest"), DNeed.of(o.optJSONObject("need"))) + o.optString("fold"), o.optBoolean("folded"), o.optInt("under"), o.optInt("needsCount"), o.optInt("rest"), DNeed.of(o.optJSONObject("need")), + o.optString("label"), o.optString("tone"), DSnoozeOpt.list(o.optJSONArray("snooze")), o.optString("wake"), o.optString("settle"), + o.optBoolean("hasBoard"), o.optBoolean("hasSchematic")) fun list(a: JSONArray?): List = (0 until (a?.length() ?: 0)).map { of(a!!.getJSONObject(it)) } } /** a chevron on the row: something is under it, or it is folded (an older hub sends no fold) */ @@ -55,6 +94,97 @@ data class DSecRow(val id: String, val title: String, val word: String, val say: /** a live swarm's row (`kind` swarm): it opens the swarm's page, its room */ val swarmRoom: String? get() = if (kind == "swarm") nav.removePrefix("@room:").takeIf { it.isNotEmpty() && nav.startsWith("@room:") } else null } + +/** Explicit, glanceable icon+word status pill resolved from hub `label`+`tone` (or legacy `word`+`want`). Pure, unit-tested. */ +enum class PillKind { APPROVE, INPUT, SIGN_IN, FAILED, STOPPED, WORKING, WAITING, DONE, SNOOZED } +enum class PillTone { BAD, BAD_OUTLINE, RUN, WAIT, OK, DIM } +data class StatusPillModel(val kind: PillKind, val label: String, val tone: PillTone) + +/** Resolve the status pill for a thread/swarm row; returns null when idle with nothing to say. */ +fun statusPillOf(r: DSecRow): StatusPillModel? { + if (r.wake.isNotEmpty()) return StatusPillModel(PillKind.SNOOZED, "Snoozed", PillTone.DIM) + val rawLabel = r.label.trim() + val rawTone = r.tone.trim() + if (rawLabel.isNotEmpty()) { + val kind = when (rawLabel.lowercase()) { + "approve" -> PillKind.APPROVE + "sign in" -> PillKind.SIGN_IN + "input" -> PillKind.INPUT + "failed" -> PillKind.FAILED + "stopped" -> PillKind.STOPPED + "working" -> PillKind.WORKING + "waiting" -> PillKind.WAITING + "done" -> PillKind.DONE + else -> when (rawTone) { + "bad" -> PillKind.INPUT + "run" -> PillKind.WORKING + "wait" -> PillKind.WAITING + "ok" -> PillKind.DONE + else -> PillKind.SNOOZED + } + } + val tone = when { + kind == PillKind.FAILED || kind == PillKind.STOPPED -> PillTone.BAD_OUTLINE + rawTone == "bad" -> PillTone.BAD + rawTone == "run" -> PillTone.RUN + rawTone == "wait" -> PillTone.WAIT + rawTone == "ok" -> PillTone.OK + else -> PillTone.DIM + } + return StatusPillModel(kind, rawLabel, tone) + } + return when (r.word) { + "needs" -> when (r.want) { + "approval" -> StatusPillModel(PillKind.APPROVE, "Approve", PillTone.BAD) + "sign-in" -> StatusPillModel(PillKind.SIGN_IN, "Sign in", PillTone.BAD) + else -> StatusPillModel(PillKind.INPUT, "Input", PillTone.BAD) + } + "failed" -> StatusPillModel(PillKind.FAILED, "Failed", PillTone.BAD_OUTLINE) + "cut", "interrupted" -> StatusPillModel(PillKind.STOPPED, "Stopped", PillTone.BAD_OUTLINE) + "running" -> StatusPillModel(PillKind.WORKING, "Working", PillTone.RUN) + "monitoring", "limit" -> StatusPillModel(PillKind.WAITING, "Waiting", PillTone.WAIT) + "done" -> StatusPillModel(PillKind.DONE, "Done", PillTone.OK) + else -> null + } +} + +/** Partition the hub's sections into the mobile-native Inbox and Bench tabs. Pure, unit-tested. */ +data class MobilePartition( + val inbox: List, + val bench: List, + val needsCount: Int, + val runningCount: Int, + val snoozedCount: Int, +) { + val inboxEmpty: Boolean get() = needsCount == 0 && runningCount == 0 + /** Top projects (Pinned first, then Recent/active) for the calm "All clear" quick-jump strip. */ + fun quickJumpProjects(limit: Int = 3): List { + val seen = HashSet() + val out = ArrayList(limit) + for (id in listOf("pinned", "active")) { + val sec = bench.firstOrNull { it.id == id } ?: continue + for (r in sec.rows) { + if (r.key.isNotEmpty() && seen.add(r.key)) { + out.add(r) + if (out.size >= limit) return out + } + } + } + return out + } +} + +private val INBOX_IDS = setOf("needs", "running", "snoozed") + +fun partitionSections(sections: List): MobilePartition { + val inbox = sections.filter { it.id in INBOX_IDS } + val bench = sections.filter { it.kind == "projects" && !(it.id == "active" && it.rows.isEmpty()) } + val needs = sections.firstOrNull { it.id == "needs" }?.let { maxOf(it.count, it.rows.size) } ?: 0 + val running = sections.firstOrNull { it.id == "running" }?.let { maxOf(it.count, it.rows.size) } ?: 0 + val snoozed = sections.firstOrNull { it.id == "snoozed" }?.let { maxOf(it.count, it.rows.size) } ?: 0 + return MobilePartition(inbox, bench, needs, running, snoozed) +} + /** One button of a swarm's need: `act` says what a press does (NeedUi.press), `room` and `thread` are the hub's ids (a far hub's with its prefix). */ data class DNeedAct(val label: String, val act: String, val room: String, val thread: String) data class DNeed(val line: String, val why: String, val actions: List) { @@ -93,56 +223,230 @@ data class DMenuItem(val id: String, val label: String, val action: String, val fun phone(menu: List, swarms: Boolean): List = menu.filter { it.id != "open" && (swarms || it.id != "swarm") && it.label.isNotEmpty() } } } -data class DSection(val id: String, val kind: String, val title: String, val count: Int, val fold: Boolean, val open: Boolean, val toggle: String, val group: String, val rename: Boolean, val rows: List) { +data class DSection(val id: String, val kind: String, val title: String, val count: Int, val fold: Boolean, val open: Boolean, val toggle: String, val group: String, val rename: Boolean, val rows: List, val hint: String = "") { companion object { fun list(a: JSONArray?): List = (0 until (a?.length() ?: 0)).map { i -> a!!.getJSONObject(i).let { o -> - DSection(o.optString("id"), o.optString("kind"), o.optString("title"), o.optInt("count"), o.optBoolean("fold"), o.optBoolean("open"), o.optString("toggle"), o.optString("group"), o.optBoolean("rename"), DSecRow.list(o.optJSONArray("rows"))) } } + DSection(o.optString("id"), o.optString("kind"), o.optString("title"), o.optInt("count"), o.optBoolean("fold"), o.optBoolean("open"), o.optString("toggle"), o.optString("group"), o.optBoolean("rename"), DSecRow.list(o.optJSONArray("rows")), o.optString("hint")) } } fun groups(a: JSONArray?): List> = (0 until (a?.length() ?: 0)).map { i -> a!!.getJSONObject(i).let { it.optString("value") to it.optString("label") } } } } -@Composable private fun toneOf(word: String): Color = when (word) { "needs" -> dcs.error; "running", "monitoring", "limit" -> dok; "failed", "cut", "interrupted" -> dcs.error.copy(alpha = .6f); else -> dfaint } +private fun pillIcon(kind: PillKind): ImageVector = when (kind) { + PillKind.APPROVE -> Icons.Default.PriorityHigh + PillKind.INPUT -> Icons.Default.QuestionMark + PillKind.SIGN_IN -> Icons.Default.Key + PillKind.FAILED -> Icons.Default.Close + PillKind.STOPPED -> Icons.Default.Stop + PillKind.WORKING -> Icons.Default.Sync + PillKind.WAITING -> Icons.Default.Schedule + PillKind.DONE -> Icons.Default.Check + PillKind.SNOOZED -> Icons.Default.Schedule +} + +/** Square-cornered, glanceable icon+word status pill (min 24dp tall) replacing tiny colored dots. */ +@Composable +fun StatusPill(pill: StatusPillModel, modifier: Modifier = Modifier) { + val bg: Color + val fg: Color + val border: Color + when (pill.tone) { + PillTone.BAD -> { bg = dcs.error; fg = dcs.onError; border = dcs.error } + PillTone.BAD_OUTLINE -> { bg = dcs.errorContainer; fg = dcs.error; border = dcs.error } + PillTone.RUN -> { bg = dcs.surfaceContainerHigh; fg = dcs.primary; border = dcs.primary } + PillTone.WAIT -> { bg = dcs.surfaceContainerHigh; fg = dwarn; border = dwarn } + PillTone.OK -> { bg = dcs.surfaceContainerHigh; fg = dok; border = dok } + PillTone.DIM -> { bg = dcs.surfaceContainerHigh; fg = dcs.onSurfaceVariant; border = dcs.outlineVariant } + } + Row( + modifier + .heightIn(min = 24.dp) + .background(bg, RectangleShape) + .border(BorderStroke(1.dp, border), RectangleShape) + .padding(horizontal = 7.dp, vertical = 3.dp) + .testTag("pill.${pill.kind.name.lowercase()}"), + verticalAlignment = Alignment.CenterVertically, + horizontalArrangement = Arrangement.spacedBy(4.dp), + ) { + Icon(pillIcon(pill.kind), null, tint = fg, modifier = Modifier.size(12.dp)) + Text(Tr.t(pill.label), color = fg, fontFamily = BpMono, fontSize = 11.sp, fontWeight = FontWeight.Bold, maxLines = 1) + } +} + +/** Subtle hardware/PCB indicator for Bench project rows with a canonical KiCad board (`hasBoard`). */ +@Composable +fun BoardBadge(modifier: Modifier = Modifier) { + Row( + modifier + .heightIn(min = 20.dp) + .background(dcs.surfaceContainerHigh, RectangleShape) + .border(BorderStroke(1.dp, dok.copy(alpha = 0.55f)), RectangleShape) + .padding(horizontal = 5.dp, vertical = 2.dp) + .testTag("badge.pcb"), + verticalAlignment = Alignment.CenterVertically, + horizontalArrangement = Arrangement.spacedBy(3.dp), + ) { + Icon(Icons.Default.Memory, null, tint = dok, modifier = Modifier.size(11.dp)) + DMono(Msg.mobile_badge_pcb, dok, 10, bold = true) + } +} @Composable fun SectionHead(s: DSection, onLong: (() -> Unit)?) { @OptIn(ExperimentalFoundationApi::class) - Row(Modifier.fillMaxWidth().height(32.dp).combinedClickable(onClick = { if (s.fold) DataClient.toggleSection(s.toggle) }, onLongClick = onLong).padding(start = 10.dp, top = 6.dp).testTag("home.section.${s.id}"), verticalAlignment = Alignment.CenterVertically) { - if (s.fold) { Icon(if (s.open) Icons.Default.ExpandMore else Icons.Default.ChevronRight, null, tint = dcs.onSurfaceVariant, modifier = Modifier.size(14.dp)); Spacer(Modifier.width(6.dp)) } - DMono(Tr.t(s.title).uppercase(), if (s.id == "needs") dcs.error else dcs.onSurfaceVariant, 11, bold = s.id == "needs") - if (s.fold || s.kind == "threads") { Spacer(Modifier.width(6.dp)); DMono("${s.count}", dfaint, 11) } + Column(Modifier.fillMaxWidth().combinedClickable(onClick = { if (s.fold) DataClient.toggleSection(s.toggle) }, onLongClick = onLong).padding(start = 12.dp, end = 12.dp, top = 12.dp, bottom = 4.dp).testTag("home.section.${s.id}")) { + Row(Modifier.fillMaxWidth().heightIn(min = 28.dp), verticalAlignment = Alignment.CenterVertically) { + if (s.fold) { Icon(if (s.open) Icons.Default.ExpandMore else Icons.Default.ChevronRight, null, tint = dcs.onSurfaceVariant, modifier = Modifier.size(16.dp)); Spacer(Modifier.width(6.dp)) } + DMono(Tr.t(s.title).uppercase(), if (s.id == "needs") dcs.error else dcs.onSurfaceVariant, 11, bold = s.id == "needs") + if (s.fold || s.kind == "threads") { Spacer(Modifier.width(6.dp)); DMono("${s.count}", dfaint, 11) } + } + if (s.hint.isNotEmpty() && s.open) DMono(Tr.t(s.hint), dfaint, 10, Modifier.padding(top = 2.dp)) } } -/** A long press on a thread row: another machine's thread (the hub's `hide`) offers Hide, here only, until something new happens there (`thread-hide`); - * a thread of this hub offers the hub's `menu`: Pin or Unpin (a pinned thread stays under its project and never settles by itself), Settle or Unsettle, Archive. */ -@OptIn(ExperimentalFoundationApi::class) + +/** A mobile-native thread row (min 56dp): two-line title + project/meta subtitle, explicit right-aligned StatusPill, + * and native Material 3 swipe actions (trailing swipe = Snooze sheet, leading swipe = Settle or Wake). */ +@OptIn(ExperimentalFoundationApi::class, ExperimentalMaterial3Api::class) @Composable fun SectionThread(r: DSecRow, indent: Int = 12, showProject: Boolean = false, openThread: (String) -> Unit = {}, open: (String) -> Unit) { var menu by remember { mutableStateOf(false) } + var snoozeSheet by remember { mutableStateOf(false) } val acts = if (r.key.isEmpty() && r.swarmRoom == null) r.menu.filter { it.label.isNotEmpty() } else emptyList() val need = r.need?.takeIf { r.kind == "swarm" } - Column { - Box { - Row(Modifier.fillMaxWidth().height(36.dp).alpha(if (r.off) .55f else 1f).combinedClickable(onClick = { if (!r.off) open(r.nav) }, onLongClick = if (r.hide.isNotEmpty() || acts.isNotEmpty()) ({ menu = true }) else null).padding(start = indent.dp, end = 12.dp).testTag("home.section.thread.${r.id}"), verticalAlignment = Alignment.CenterVertically) { - DDot(toneOf(r.word), 7); Spacer(Modifier.width(8.dp)) - // the title takes the room the right-hand words leave (a weighted spacer beside a weighted title halves the row: a long title was cut at the middle and the words stopped short of the edge) - Row(Modifier.weight(1f), verticalAlignment = Alignment.CenterVertically) { - DMono(r.title, dcs.onSurface, 13, Modifier.weight(1f, fill = false)) - if (r.pinned) { Spacer(Modifier.width(6.dp)); Icon(Icons.Default.PushPin, Msg.tools_pinned, tint = dfaint, modifier = Modifier.size(11.dp).testTag("home.section.pinned.${r.id}")) } - if (showProject) { Spacer(Modifier.width(8.dp)); DMono(r.project, dfaint, 11) } + val pill = remember(r.label, r.tone, r.word, r.want, r.wake) { statusPillOf(r) } + val canSwipeStart = r.wake.isNotEmpty() || r.settle.isNotEmpty() + val canSwipeEnd = r.snooze.isNotEmpty() + val hasMenu = r.hide.isNotEmpty() || acts.isNotEmpty() || canSwipeEnd || r.wake.isNotEmpty() + + val meta = buildList { + if (showProject && r.project.isNotEmpty()) add(r.project) + r.mark?.let { add(it.short + if (it.away) " · " + Msg.android_away else "") } + if (r.ago.isNotEmpty()) add(if (r.wake.isNotEmpty()) Msg.mobile_snooze_wakes(r.ago) else r.ago) + }.joinToString(" · ") + + val rowContent: @Composable () -> Unit = { + Column(Modifier.fillMaxWidth().background(dcs.surfaceVariant)) { + Box { + Row( + Modifier + .fillMaxWidth() + .heightIn(min = 56.dp) + .alpha(if (r.off) .55f else 1f) + .combinedClickable( + onClick = { if (!r.off) open(r.nav) }, + onLongClick = if (hasMenu) ({ menu = true }) else null, + ) + .padding(start = indent.dp, end = 12.dp, top = 8.dp, bottom = 8.dp) + .testTag("home.section.thread.${r.id}"), + verticalAlignment = Alignment.CenterVertically, + ) { + Column(Modifier.weight(1f), verticalArrangement = Arrangement.spacedBy(3.dp)) { + Row(verticalAlignment = Alignment.CenterVertically) { + Text( + r.title, + color = dcs.onSurface, + fontFamily = BpMono, + fontSize = 14.sp, + fontWeight = if (r.word == "needs") FontWeight.Bold else FontWeight.Normal, + maxLines = 1, + overflow = androidx.compose.ui.text.style.TextOverflow.Ellipsis, + modifier = Modifier.weight(1f, fill = false), + ) + if (r.pinned) { + Spacer(Modifier.width(6.dp)) + Icon(Icons.Default.PushPin, Msg.tools_pinned, tint = dcs.primary, modifier = Modifier.size(12.dp).testTag("home.section.pinned.${r.id}")) + } + } + if (meta.isNotEmpty()) DMono(meta, dcs.onSurfaceVariant, 11) + } + if (pill != null && need == null) { + Spacer(Modifier.width(10.dp)) + StatusPill(pill) + } + } + DropdownMenu(menu, { menu = false }) { + if (r.wake.isNotEmpty()) { + DropdownMenuItem(text = { Text(Msg.menu_wake, fontFamily = BpMono) }, onClick = { menu = false; DataClient.snoozeRow(r.wake) }, modifier = Modifier.testTag("home.section.wake.${r.id}")) + } + if (r.snooze.isNotEmpty()) { + DropdownMenuItem(text = { Text(Msg.tools_snooze, fontFamily = BpMono) }, onClick = { menu = false; snoozeSheet = true }, modifier = Modifier.testTag("home.section.snooze.${r.id}")) + } + if (r.hide.isNotEmpty()) DropdownMenuItem(text = { Text(Msg.common_hide, fontFamily = BpMono) }, onClick = { menu = false; DataClient.sidebarAct("thread-hide", r.hide) }, modifier = Modifier.testTag("home.section.hide.${r.id}")) + acts.forEach { m -> DropdownMenuItem(text = { Text(Tr.t(m.label), fontFamily = BpMono) }, onClick = { menu = false; DataClient.sectionThreadAct(r.id, m.id) }, modifier = Modifier.testTag("home.section.${m.id}.${r.id}")) } + } } - Spacer(Modifier.width(8.dp)) - r.mark?.let { DMono(it.short + if (it.away) " · " + Msg.android_away else "", dfaint, 11); Spacer(Modifier.width(6.dp)) } - // a need's line is drawn under the row; the right keeps only how long ago - if (need != null) DMono(r.ago, dfaint, 11) else if (r.want.isNotEmpty()) DMono(Tr.t(r.want), dcs.error, 11) else DMono(Tr.t(r.say.ifEmpty { r.ago }), dfaint, 11) - } - DropdownMenu(menu, { menu = false }) { - if (r.hide.isNotEmpty()) DropdownMenuItem(text = { Text(Msg.common_hide) }, onClick = { menu = false; DataClient.sidebarAct("thread-hide", r.hide) }, modifier = Modifier.testTag("home.section.hide.${r.id}")) - acts.forEach { m -> DropdownMenuItem(text = { Text(Tr.t(m.label)) }, onClick = { menu = false; DataClient.sectionThreadAct(r.id, m.id) }, modifier = Modifier.testTag("home.section.${m.id}.${r.id}")) } + if (need != null) SwarmNeedLine(r, need, indent, { open(r.nav) }, openThread) + DLine() } } - if (need != null) SwarmNeedLine(r, need, indent, { open(r.nav) }, openThread) + + if (canSwipeStart || canSwipeEnd) { + val swipeState = rememberSwipeToDismissBoxState( + confirmValueChange = { v -> + when (v) { + SwipeToDismissBoxValue.StartToEnd -> { + if (r.wake.isNotEmpty()) DataClient.snoozeRow(r.wake) + else if (r.settle.isNotEmpty()) DataClient.sectionThreadAct(r.id, "settle") + false + } + SwipeToDismissBoxValue.EndToStart -> { + if (r.snooze.isNotEmpty()) snoozeSheet = true + false + } + SwipeToDismissBoxValue.Settled -> false + } + } + ) + SwipeToDismissBox( + state = swipeState, + enableDismissFromStartToEnd = canSwipeStart, + enableDismissFromEndToStart = canSwipeEnd, + backgroundContent = { + val dir = swipeState.dismissDirection + val isStart = dir == SwipeToDismissBoxValue.StartToEnd + val bg = when { + isStart && r.wake.isNotEmpty() -> dcs.primary + isStart -> dok + dir == SwipeToDismissBoxValue.EndToStart -> dwarn + else -> dcs.surfaceContainerHigh + } + val light = dcs.background.luminance() > 0.5f + val fg = when { + isStart && r.wake.isNotEmpty() -> dcs.onPrimary + light -> Color.White + else -> Color(0xFF06121F) + } + val align = if (isStart) Alignment.CenterStart else Alignment.CenterEnd + val icon = when { + isStart && r.wake.isNotEmpty() -> Icons.Default.NotificationsActive + isStart -> Icons.Default.Check + else -> Icons.Default.Schedule + } + val text = when { + isStart && r.wake.isNotEmpty() -> Msg.menu_wake + isStart -> Msg.menu_settle + else -> Msg.tools_snooze + } + Box(Modifier.fillMaxSize().background(bg).padding(horizontal = 18.dp), contentAlignment = align) { + Row(verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.spacedBy(6.dp)) { + Icon(icon, text, tint = fg, modifier = Modifier.size(18.dp)) + DMono(text.uppercase(), fg, 12, bold = true) + } + } + }, + content = { rowContent() }, + ) + } else { + rowContent() + } + + if (snoozeSheet && r.snooze.isNotEmpty()) { + ActionSheet( + Msg.mobile_snooze_for, + r.snooze.map { opt -> Tr.t(opt.label) to { snoozeSheet = false; DataClient.snoozeRow(opt.value) } }, + ) { snoozeSheet = false } } } + /** A swarm's need under its row: the hub's line and a small button per action; a refusal's words under them. */ @Composable private fun SwarmNeedLine(r: DSecRow, n: DNeed, indent: Int, board: () -> Unit, openThread: (String) -> Unit) { @@ -157,57 +461,150 @@ private fun SwarmNeedLine(r: DSecRow, n: DNeed, indent: Int, board: () -> Unit, scope.launch { try { go(NeedUi.after(DataClient.call(g.method, g.params))); Swarms.load() } catch (e: Exception) { err = e.message ?: "" } finally { busy = false } } } null -> {} } } - Column(Modifier.fillMaxWidth().alpha(if (r.off) .55f else 1f).padding(start = (indent + 15).dp, end = 12.dp, bottom = 6.dp).testTag("home.section.need.${r.id}")) { - Row(verticalAlignment = Alignment.CenterVertically) { - DMono(Tr.t(n.line), dcs.error, 11, Modifier.weight(1f).testTag("home.section.need.line.${r.id}")) - n.actions.forEach { a -> Spacer(Modifier.width(6.dp)); DBtn(Tr.t(a.label), false, !busy && NeedUi.press(a) != null, Modifier.testTag("home.section.need.${a.act}.${r.id}"), small = true) { go(NeedUi.press(a)) } } + Column(Modifier.fillMaxWidth().alpha(if (r.off) .55f else 1f).padding(start = indent.dp, end = 12.dp, bottom = 10.dp).testTag("home.section.need.${r.id}")) { + DMono(Tr.t(n.line), dcs.error, 11, Modifier.testTag("home.section.need.line.${r.id}"), lines = 2) + if (n.actions.isNotEmpty()) { + Spacer(Modifier.height(6.dp)) + Row(horizontalArrangement = Arrangement.spacedBy(6.dp)) { + n.actions.forEach { a -> DBtn(Tr.t(a.label), false, !busy && NeedUi.press(a) != null, Modifier.testTag("home.section.need.${a.act}.${r.id}"), small = true) { go(NeedUi.press(a)) } } + } } - if (err.isNotEmpty()) DMono(Tr.t(err), dcs.error, 11, Modifier.padding(top = 2.dp), lines = 3) + if (err.isNotEmpty()) DMono(Tr.t(err), dcs.error, 11, Modifier.padding(top = 4.dp), lines = 3) } } + +/** A Bench project row (min 56dp): icon, title, optional PCB hardware badge, machine dots, and running/needs indicators. */ @OptIn(ExperimentalFoundationApi::class) @Composable fun SectionProject(r: DSecRow, faded: Boolean, onClick: () -> Unit, onLong: () -> Unit) { - Row(Modifier.fillMaxWidth().height(38.dp).alpha(if (faded) .55f else 1f).combinedClickable(onClick = onClick, onLongClick = onLong).padding(end = 12.dp).testTag("home.section.project.${r.key}"), verticalAlignment = Alignment.CenterVertically) { - // the fold: a tap on the chevron folds its threads away or back (the hub keeps it), a tap elsewhere opens the page - Box(Modifier.size(width = 30.dp, height = 38.dp).then(if (r.canFold) Modifier.clickable { DataClient.sidebarAct(r.fold, r.key) } else Modifier).testTag("home.section.fold.${r.key}"), contentAlignment = Alignment.Center) { - if (r.canFold) Icon(if (r.folded) Icons.Default.ChevronRight else Icons.Default.ExpandMore, if (r.folded) Msg.common_show else Msg.common_hide, tint = dfaint, modifier = Modifier.size(14.dp)) + Column(Modifier.fillMaxWidth()) { + Row( + Modifier + .fillMaxWidth() + .heightIn(min = 56.dp) + .alpha(if (faded) .55f else 1f) + .combinedClickable(onClick = onClick, onLongClick = onLong) + .padding(start = if (r.canFold) 4.dp else 12.dp, end = 12.dp, top = 8.dp, bottom = 8.dp) + .testTag("home.section.project.${r.key}"), + verticalAlignment = Alignment.CenterVertically, + ) { + if (r.canFold) { + Box(Modifier.size(width = 36.dp, height = 40.dp).clickable { DataClient.sidebarAct(r.fold, r.key) }.testTag("home.section.fold.${r.key}"), contentAlignment = Alignment.Center) { + Icon(if (r.folded) Icons.Default.ChevronRight else Icons.Default.ExpandMore, if (r.folded) Msg.common_show else Msg.common_hide, tint = dfaint, modifier = Modifier.size(16.dp)) + } + } + if (r.icon == "backplane") androidx.compose.foundation.Image(androidx.compose.ui.res.painterResource(if (dcs.background.luminance() > 0.5f) R.drawable.brand_light else R.drawable.brand_dark), null, Modifier.size(18.dp).testTag("home.section.logo.${r.key}")) + else Icon(badgeGlyph(r.icon), null, tint = runCatching { Color(android.graphics.Color.parseColor(r.css)) }.getOrDefault(dcs.onSurfaceVariant), modifier = Modifier.size(18.dp).testTag("home.section.icon.${r.key}")) + Spacer(Modifier.width(10.dp)) + Column(Modifier.weight(1f), verticalArrangement = Arrangement.spacedBy(3.dp)) { + Row(verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.spacedBy(6.dp)) { + DMono(r.title, dcs.onSurface, 14, Modifier.weight(1f, fill = false), bold = r.pinned || r.needsCount > 0) + if (r.hasBoard) BoardBadge() + if (r.pinned) Icon(Icons.Default.PushPin, Msg.tools_pinned, tint = dcs.primary, modifier = Modifier.size(12.dp)) + } + if (r.dots.size > 1 || r.running > 0) { + Row(verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.spacedBy(6.dp)) { + if (r.running > 0) DMono(Msg.ios_sections_running(r.running), dcs.primary, 11) + if (r.dots.size > 1) { + Row(horizontalArrangement = Arrangement.spacedBy(3.dp), verticalAlignment = Alignment.CenterVertically) { + r.dots.forEach { (here, dim) -> DDot(if (dim) dfaint else if (here) dok else dcs.onSurfaceVariant, 5) } + } + } + } + } + } + if (r.needsCount > 0) { + Spacer(Modifier.width(8.dp)) + Box(Modifier.background(dcs.error, RectangleShape).padding(horizontal = 7.dp, vertical = 3.dp).testTag("home.section.needs.${r.key}")) { + DMono("${r.needsCount}", dcs.onError, 11, bold = true) + } + } + Spacer(Modifier.width(4.dp)) + Icon(Icons.Default.ChevronRight, null, tint = dfaint, modifier = Modifier.size(16.dp)) } - // the project's icon in its colour (the hub's; an unknown name is the folder), or the logo for a project named Backplane - if (r.icon == "backplane") androidx.compose.foundation.Image(androidx.compose.ui.res.painterResource(if (dcs.background.luminance() > 0.5f) R.drawable.brand_light else R.drawable.brand_dark), null, Modifier.size(15.dp).testTag("home.section.logo.${r.key}")) - else androidx.compose.material3.Icon(badgeGlyph(r.icon), null, tint = runCatching { Color(android.graphics.Color.parseColor(r.css)) }.getOrDefault(dcs.onSurfaceVariant), modifier = Modifier.size(15.dp).testTag("home.section.icon.${r.key}")) - Spacer(Modifier.width(8.dp)) - Row(Modifier.weight(1f), verticalAlignment = Alignment.CenterVertically) { - DMono(r.title, dcs.onSurface, 13, Modifier.weight(1f, fill = false)) - if (r.dots.size > 1) { Spacer(Modifier.width(6.dp)); r.dots.forEach { (here, dim) -> DDot(if (dim) dfaint else if (here) dok else dcs.onSurfaceVariant, 5); Spacer(Modifier.width(3.dp)) } } + DLine() + } +} + +/** Inbox tab items: Needs you → Running → Snoozed (collapsible), each row naming its project. */ +fun LazyListScope.inboxItems(inbox: List, open: (String) -> Unit, openSwarm: (String) -> Unit = {}) { + for (s in inbox) { + if (s.rows.isEmpty() && !(s.fold && s.count > 0)) continue + item("sec:${s.id}") { SectionHead(s, null) } + items(s.rows, key = { "sn:${s.id}:${it.id}" }) { r -> + val room = r.swarmRoom + if (room != null) SectionThread(r, showProject = true, openThread = open) { openSwarm(room) } + else SectionThread(r, showProject = true, open = open) } - if (r.rest > 0) { DMono("${r.rest}", dfaint, 11, Modifier.testTag("home.section.rest.${r.key}")); Spacer(Modifier.width(6.dp)) } - Spacer(Modifier.width(8.dp)) - if (r.running > 0) DMono(Msg.ios_sections_running(r.running), dok, 11) - // what of it waits on the person (its rows are in Needs you, folded or not) - if (r.needsCount > 0) { Spacer(Modifier.width(6.dp)); Box(Modifier.background(dcs.error).padding(horizontal = 5.dp).testTag("home.section.needs.${r.key}")) { DMono("${r.needsCount}", dcs.onError, 10) } } } } -/** The sections as the list's items (Bub is drawn above them by the home screen). `page` opens a project's page; `menu` a project's long press; `rename` a group's. */ -fun LazyListScope.sectionItems(open: (String) -> Unit, page: (DSecRow) -> Unit, menu: (DSecRow) -> Unit, rename: (DSection) -> Unit, openSwarm: (String) -> Unit = {}) { - // a swarm in Needs you is not repeated under its project +/** Calm "All clear" empty Inbox card: 1-tap Talk to Bub + top 3 Pinned/Recent projects + Open Bench. */ +@Composable +fun InboxAllClearCard( + bub: DataClient.Bot?, + quickProjects: List, + openBub: (String) -> Unit, + openProject: (DSecRow) -> Unit, + openBench: () -> Unit, +) { + Column(Modifier.fillMaxWidth().padding(16.dp).testTag("inbox.all_clear"), verticalArrangement = Arrangement.spacedBy(14.dp)) { + Column( + Modifier + .fillMaxWidth() + .background(dcs.surface, RectangleShape) + .border(BorderStroke(1.dp, dcs.outlineVariant), RectangleShape) + .padding(16.dp), + verticalArrangement = Arrangement.spacedBy(10.dp), + ) { + Row(verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.spacedBy(8.dp)) { + Box(Modifier.size(28.dp).background(dok.copy(alpha = 0.16f), RectangleShape).border(BorderStroke(1.dp, dok), RectangleShape), contentAlignment = Alignment.Center) { + Icon(Icons.Default.Check, null, tint = dok, modifier = Modifier.size(16.dp)) + } + Column(verticalArrangement = Arrangement.spacedBy(2.dp)) { + DMono(Msg.mobile_inbox_clear, dcs.onSurface, 15, bold = true) + DMono(Msg.mobile_inbox_clear_note, dcs.onSurfaceVariant, 11, lines = 2) + } + } + Row(horizontalArrangement = Arrangement.spacedBy(8.dp)) { + if (bub != null && bub.thread.isNotEmpty()) { + DBtn(Msg.mobile_inbox_talk_bub, true, modifier = Modifier.testTag("inbox.clear.bub")) { openBub(bub.thread) } + } + DBtn(Msg.mobile_inbox_open_bench, false, modifier = Modifier.testTag("inbox.clear.bench"), onClick = openBench) + } + } + if (quickProjects.isNotEmpty()) { + DMono(Msg.mobile_inbox_jump_in.uppercase(), dcs.onSurfaceVariant, 11, bold = true) + Column(Modifier.fillMaxWidth().background(dcs.surface, RectangleShape).border(BorderStroke(1.dp, dcs.outlineVariant), RectangleShape)) { + quickProjects.forEach { p -> + SectionProject(p, faded = false, onClick = { openProject(p) }, onLong = {}) + } + } + } + } +} + +/** Bench tab items: Pinned, Recent (`active`, ≤8), Groups, All projects, Quiet. */ +fun LazyListScope.benchItems(bench: List, open: (String) -> Unit, page: (DSecRow) -> Unit, menu: (DSecRow) -> Unit, rename: (DSection) -> Unit, openSwarm: (String) -> Unit = {}) { val asking = DataClient.sections.firstOrNull { it.id == "needs" }?.rows?.mapNotNull { it.swarmRoom }?.toSet() ?: emptySet() - for (s in DataClient.sections) { - if (s.kind == "bub" || (s.id == "active" && s.rows.isEmpty())) continue + for (s in bench) { + if (s.rows.isEmpty() && !(s.fold && s.count > 0)) continue item("sec:${s.id}") { SectionHead(s, if (s.rename) ({ rename(s) }) else null) } - // Needs you: the title has the row (no project name), and a stop says so by its dot; an ask keeps its red word - if (s.kind == "threads") items(s.rows, key = { "sn:${it.id}" }) { r -> val room = r.swarmRoom - if (room != null) SectionThread(r, openThread = open) { openSwarm(room) } else SectionThread(if (r.want == "failed" || r.want == "stopped") r.copy(want = "", say = "") else r, open = open) } - else for (p in s.rows) { + for (p in s.rows) { item("sp:${s.id}:${p.key}") { SectionProject(p, s.id == "quiet" || s.id == "archived" || (p.off && p.key.isNotEmpty()), { page(p) }, { menu(p) }) } - // its live swarms (the client's own rows, feature swarm), above its threads; their members have no rows if (Swarms.on() && !p.folded) items(SwarmUi.live(Swarms.all, p.id).filter { it.id !in asking }, key = { "ss:${s.id}:${it.id}" }) { x -> SwarmRow(x) { openSwarm(x.id) } } - items(p.threads, key = { "st:${s.id}:${it.id}" }) { t -> SectionThread(t, 34, open = open) } + items(p.threads, key = { "st:${s.id}:${it.id}" }) { t -> SectionThread(t, indent = 28, open = open) } } } } +/** Legacy single-list sections helper kept for empty-projects fallback. */ +fun LazyListScope.sectionItems(open: (String) -> Unit, page: (DSecRow) -> Unit, menu: (DSecRow) -> Unit, rename: (DSection) -> Unit, openSwarm: (String) -> Unit = {}) { + val part = partitionSections(DataClient.sections) + inboxItems(part.inbox, open, openSwarm) + benchItems(part.bench, open, page, menu, rename, openSwarm) +} + private const val PIN = "project-pin" private const val MOVE = "group-move" private const val ARCHIVE = "project-archive" @@ -261,6 +658,8 @@ fun ProjectPageScreen(p: DSecRow, open: (String) -> Unit, newThread: (String) -> // a long Done list: its newest rows, the rest behind the hub's "Older (m)" (`page-older`) var older by remember { mutableStateOf(false) } var lists by remember { mutableStateOf?>(null) } + // record this visit on the hub so the Recent bench order follows this phone too + LaunchedEffect(p.key) { DataClient.visitProject(p.key) } LaunchedEffect(p.key, done, older, DataClient.sections) { lists = DataClient.projectPage(p.key, done, older) } Column(Modifier.fillMaxSize().background(dcs.surfaceVariant)) { DBar(p.title, back) @@ -273,9 +672,9 @@ fun ProjectPageScreen(p: DSecRow, open: (String) -> Unit, newThread: (String) -> val scope = rememberCoroutineScope() LaunchedEffect(pr.id, DataClient.conn) { if (DataClient.conn == DataClient.Conn.ONLINE) runCatching { DataClient.buyOfProject(pr.id) }.onSuccess { buy = it } } Row(Modifier.fillMaxWidth(), verticalAlignment = Alignment.CenterVertically) { - DMono("+ " + Msg.android_thread_new_in(pr.title), dcs.primary, 12, Modifier.weight(1f).clickable { newThread(pr.id) }.padding(horizontal = 12.dp, vertical = 10.dp).testTag("project.page.new")) + DMono("+ " + Msg.android_thread_new_in(pr.title), dcs.primary, 12, Modifier.weight(1f).clickable { newThread(pr.id) }.padding(horizontal = 12.dp, vertical = 12.dp).testTag("project.page.new")) buy?.let { b -> - DMono(Tr.t(b.label), dcs.primary, 12, Modifier.clickable(enabled = !buying) { asking = true }.padding(horizontal = 12.dp, vertical = 10.dp).testTag("project.page.buy"), bold = true) + DMono(Tr.t(b.label), dcs.primary, 12, Modifier.clickable(enabled = !buying) { asking = true }.padding(horizontal = 12.dp, vertical = 12.dp).testTag("project.page.buy"), bold = true) if (asking) AlertDialog(onDismissRequest = { asking = false }, shape = RectangleShape, title = { Text(Msg.android_buy_ask(pr.title), fontFamily = BpMono, fontSize = 15.sp) }, text = if (b.tip.isEmpty()) null else { { Text(Tr.t(b.tip), fontFamily = BpMono, fontSize = 13.sp) } }, @@ -303,8 +702,8 @@ fun ProjectPageScreen(p: DSecRow, open: (String) -> Unit, newThread: (String) -> for (s in ls) { if (s.rows.isEmpty() && !(s.fold && s.count > 0)) continue item("pg:${s.id}") { - Row(Modifier.fillMaxWidth().height(32.dp).clickable(enabled = s.fold) { if (s.toggle == "page-older") older = !older else done = !done }.padding(start = 10.dp, top = 6.dp).testTag("project.page.${s.id}"), verticalAlignment = Alignment.CenterVertically) { - if (s.fold) { Icon(if (s.open) Icons.Default.ExpandMore else Icons.Default.ChevronRight, null, tint = dcs.onSurfaceVariant, modifier = Modifier.size(14.dp)); Spacer(Modifier.width(6.dp)) } + Row(Modifier.fillMaxWidth().height(36.dp).clickable(enabled = s.fold) { if (s.toggle == "page-older") older = !older else done = !done }.padding(start = 12.dp, top = 6.dp).testTag("project.page.${s.id}"), verticalAlignment = Alignment.CenterVertically) { + if (s.fold) { Icon(if (s.open) Icons.Default.ExpandMore else Icons.Default.ChevronRight, null, tint = dcs.onSurfaceVariant, modifier = Modifier.size(16.dp)); Spacer(Modifier.width(6.dp)) } DMono(Tr.t(s.title).uppercase(), dcs.onSurfaceVariant, 11) } } diff --git a/mobile/android/app/src/main/java/dev/backplane/mobile/DataViews.kt b/mobile/android/app/src/main/java/dev/backplane/mobile/DataViews.kt index 59570bedd3..f95833e4cc 100644 --- a/mobile/android/app/src/main/java/dev/backplane/mobile/DataViews.kt +++ b/mobile/android/app/src/main/java/dev/backplane/mobile/DataViews.kt @@ -311,11 +311,15 @@ internal fun ModelChip(text: String, tag: String, modifier: Modifier = Modifier, } } -// ---- home: the sidebar, projects with their threads +private enum class HomeTab { INBOX, CREW, BENCH } + +// ---- home: mobile-native Inbox | Crew | Bench tabs (with persistent top-bar Bub + global Search) @OptIn(ExperimentalFoundationApi::class) @Composable private fun HomeScreen(open: (String) -> Unit, settings: () -> Unit, hub: () -> Unit, addProject: () -> Unit, newThread: (String) -> Unit, openSwarm: (String) -> Unit, openRoom: (DataClient.Room) -> Unit) { var q by remember { mutableStateOf("") } + var searchOpen by remember { mutableStateOf(false) } + var tab by remember { mutableStateOf(HomeTab.INBOX) } var projMenu by remember { mutableStateOf(null) } var botDelete by remember { mutableStateOf(null) } var roomDelete by remember { mutableStateOf(null) } @@ -337,9 +341,13 @@ private fun HomeScreen(open: (String) -> Unit, settings: () -> Unit, hub: () -> val listState = androidx.compose.foundation.lazy.rememberLazyListState() var flash by remember { mutableStateOf("") } val rowOf = remember { mutableMapOf() } // a project's header row in the list - // a project link: its group opens, the list scrolls to it and its row is marked for a moment + val sectioned = DataClient.has("sections") && DataClient.sections.isNotEmpty() + val partition = remember(DataClient.sections) { partitionSections(DataClient.sections) } + val uberBot = DataClient.bots.firstOrNull { it.uber && it.thread.isNotEmpty() } + // a project link: switch to Bench (or open its group on older hubs) LaunchedEffect(DataClient.focusProject, DataClient.projects.size) { val id = DataClient.focusProject; if (id.isEmpty() || DataClient.projects.none { it.id == id }) return@LaunchedEffect + if (sectioned) { tab = HomeTab.BENCH } shut = shut - id; prefs.edit().putStringSet("projects.shut", shut).apply(); flash = id; DataClient.focusProject = "" kotlinx.coroutines.delay(150) rowOf[id]?.let { listState.animateScrollToItem(it) } @@ -351,17 +359,236 @@ private fun HomeScreen(open: (String) -> Unit, settings: () -> Unit, hub: () -> DropdownMenuItem({ Text(Msg.android_hub_add, fontFamily = BpMono) }, { dismiss(); DataClient.pairingError = ""; DataClient.adding = true }, Modifier.testTag("home.hub.add")) if (termsOn()) DropdownMenuItem({ Text(Msg.android_terminals, fontFamily = BpMono) }, { dismiss(); termsOpen(null) }, Modifier.testTag("home.hub.terms")) }) { + // Persistent 1-tap Bub quick-jump in the top bar across every tab + if (sectioned && uberBot != null) { + IconButton(onClick = { open(uberBot.thread) }, modifier = Modifier.testTag("home.bub.quick")) { + if (DataClient.has("cats")) BotCat(uberBot.look, uberBot.color, 26.dp) + else DMono("@", dcs.primary, 15, bold = true) + } + } + if (sectioned && DataClient.has("search")) { + IconButton(onClick = { searchOpen = !searchOpen; if (!searchOpen) q = "" }, modifier = Modifier.testTag("home.search.toggle")) { + Icon(if (searchOpen) Icons.Default.Close else Icons.Default.Search, if (searchOpen) Msg.common_close else Msg.common_search, tint = if (searchOpen) dcs.primary else dcs.onSurfaceVariant) + } + } IconButton(onClick = settings, modifier = Modifier.testTag("home.settings")) { Icon(Icons.Default.Settings, Msg.palette_settings, tint = dcs.onSurfaceVariant) } } ConnBanner(hub, settings) NoProviderBanner { DataClient.openAccounts = true } + if (sectioned) { + val searchFocus = remember { androidx.compose.ui.focus.FocusRequester() } + LaunchedEffect(searchOpen) { if (searchOpen) runCatching { searchFocus.requestFocus() } } + if (searchOpen && DataClient.has("search")) { + Row(Modifier.fillMaxWidth().padding(start = 10.dp, end = 4.dp, top = 8.dp, bottom = 8.dp), verticalAlignment = Alignment.CenterVertically) { + Box(Modifier.weight(1f)) { DField(q, { q = it }, Msg.android_search_hint, Modifier.focusRequester(searchFocus).testTag("home.searchfield")) } + IconButton(onClick = { q = ""; searchOpen = false }, modifier = Modifier.testTag("home.search.close")) { Icon(Icons.Default.Close, Msg.common_close, tint = dcs.onSurfaceVariant) } + } + DLine() + if (q.isNotBlank()) { + Box(Modifier.weight(1f)) { SearchResults(q, open) } + } + } + if (!searchOpen || q.isBlank()) { + Box(Modifier.weight(1f).fillMaxWidth()) { + when (tab) { + HomeTab.INBOX -> { + LazyColumn(Modifier.fillMaxSize().testTag("home.list")) { + item("inbox.machines") { MachineChips() } + if (partition.inboxEmpty) { + item("inbox.clear") { + InboxAllClearCard( + bub = uberBot, + quickProjects = partition.quickJumpProjects(3), + openBub = open, + openProject = { secPage = it }, + openBench = { tab = HomeTab.BENCH }, + ) + } + // keep Snoozed reachable underneath All clear when items are snoozed + inboxItems(partition.inbox.filter { it.id == "snoozed" }, open, openSwarm) + } else { + inboxItems(partition.inbox, open, openSwarm) + } + } + } + HomeTab.CREW -> { + val bots = DataClient.bots.filter { !it.uber && it.thread.isNotEmpty() } + val rooms = DataClient.rooms + LazyColumn(Modifier.fillMaxSize().testTag("home.crew")) { + uberBot?.let { b -> + item("crew.bub") { + Column(Modifier.fillMaxWidth().padding(12.dp)) { + Row( + Modifier + .fillMaxWidth() + .background(dcs.surface, RectangleShape) + .border(BorderStroke(1.dp, dcs.primary.copy(alpha = 0.45f)), RectangleShape) + .clickable { open(b.thread) } + .padding(horizontal = 14.dp, vertical = 12.dp) + .testTag("crew.bub"), + verticalAlignment = Alignment.CenterVertically, + ) { + if (DataClient.has("cats")) BotCat(b.look, b.color, 52.dp) + else Box(Modifier.size(44.dp).background(dcs.primary.copy(alpha = 0.14f), RectangleShape), contentAlignment = Alignment.Center) { DMono("@", dcs.primary, 18, bold = true) } + Spacer(Modifier.width(12.dp)) + Column(Modifier.weight(1f), verticalArrangement = Arrangement.spacedBy(2.dp)) { + DMono(b.name, dcs.onSurface, 16, bold = true) + DMono(onMachine(b.note.ifEmpty { Msg.android_kind_uberbot }, b.mark), dcs.onSurfaceVariant, 11) + } + Icon(Icons.Default.ChevronRight, null, tint = dcs.primary, modifier = Modifier.size(18.dp)) + } + } + } + } + if (bots.isNotEmpty()) { + item("crew.bots.head") { DMono(Msg.plane_heading_bots.uppercase(), dcs.onSurfaceVariant, 11, Modifier.fillMaxWidth().padding(start = 12.dp, top = 8.dp, bottom = 4.dp), bold = true) } + items(bots, key = { "cb:${it.id}" }) { b -> + Column(Modifier.fillMaxWidth()) { + Row( + Modifier + .fillMaxWidth() + .heightIn(min = 56.dp) + .combinedClickable(onClick = { open(b.thread) }, onLongClick = if (b.delete) ({ botDelete = b }) else null) + .padding(horizontal = 12.dp, vertical = 8.dp) + .testTag("side.@${b.name}"), + verticalAlignment = Alignment.CenterVertically, + ) { + if (DataClient.has("cats")) BotCat(b.look, b.color, 34.dp) + else DMono("@", dcs.primary, 14, bold = true) + Spacer(Modifier.width(12.dp)) + Column(Modifier.weight(1f), verticalArrangement = Arrangement.spacedBy(2.dp)) { + DMono(b.name, dcs.onSurface, 14) + DMono(onMachine(b.note.ifEmpty { Msg.android_kind_bot }, b.mark), dcs.onSurfaceVariant, 11) + } + Icon(Icons.Default.ChevronRight, null, tint = dfaint, modifier = Modifier.size(16.dp)) + } + DLine() + } + } + } + if (rooms.isNotEmpty()) { + item("crew.rooms.head") { DMono(Msg.plane_heading_rooms.uppercase(), dcs.onSurfaceVariant, 11, Modifier.fillMaxWidth().padding(start = 12.dp, top = 14.dp, bottom = 4.dp), bold = true) } + items(rooms, key = { "cr:${it.id}" }) { r -> + Column(Modifier.fillMaxWidth()) { + Row( + Modifier + .fillMaxWidth() + .heightIn(min = 56.dp) + .combinedClickable(onClick = { openRoom(r) }, onLongClick = if (r.delete) ({ roomDelete = r }) else null) + .padding(horizontal = 12.dp, vertical = 8.dp) + .testTag("side.#${r.name}"), + verticalAlignment = Alignment.CenterVertically, + ) { + Box(Modifier.size(32.dp).background(dcs.surfaceContainerHigh, RectangleShape).border(BorderStroke(1.dp, dcs.outlineVariant), RectangleShape), contentAlignment = Alignment.Center) { + DMono("#", dcs.primary, 14, bold = true) + } + Spacer(Modifier.width(12.dp)) + Column(Modifier.weight(1f), verticalArrangement = Arrangement.spacedBy(2.dp)) { + DMono(r.name, dcs.onSurface, 14) + DMono(onMachine(Msg.android_kind_room, r.mark), dcs.onSurfaceVariant, 11) + } + Icon(Icons.Default.ChevronRight, null, tint = dfaint, modifier = Modifier.size(16.dp)) + } + DLine() + } + } + } + } + } + HomeTab.BENCH -> { + val hist = DataClient.history + Column(Modifier.fillMaxSize()) { + Row(Modifier.fillMaxWidth().padding(start = 10.dp, end = 4.dp, top = 8.dp, bottom = 8.dp), verticalAlignment = Alignment.CenterVertically) { + if (DataClient.has("search") && !searchOpen) { + Row( + Modifier + .weight(1f) + .heightIn(min = 40.dp) + .background(dview, RectangleShape) + .border(BorderStroke(1.dp, dcs.outlineVariant), RectangleShape) + .clickable { searchOpen = true } + .padding(horizontal = 10.dp) + .testTag("home.bench.search"), + verticalAlignment = Alignment.CenterVertically, + horizontalArrangement = Arrangement.spacedBy(8.dp), + ) { + Icon(Icons.Default.Search, null, tint = dfaint, modifier = Modifier.size(16.dp)) + DMono(Msg.android_search_hint, dfaint, 13) + } + } else Spacer(Modifier.weight(1f)) + IconButton(onClick = addProject, modifier = Modifier.testTag("home.add")) { Icon(Icons.Default.Add, Msg.sidebar_add_project, tint = dcs.onSurfaceVariant) } + } + MachineChips() + DLine() + LazyColumn(Modifier.fillMaxSize().testTag("home.bench"), state = listState) { + if (partition.bench.isEmpty() && DataClient.projects.isEmpty()) { + item("bench.empty") { + Column(Modifier.fillMaxWidth().padding(32.dp), horizontalAlignment = Alignment.CenterHorizontally) { + Text(if (DataClient.listsLoaded) Msg.android_projects_none else Msg.viewer_loading, color = dcs.onSurface, fontFamily = BpMono, fontSize = 14.sp) + if (DataClient.listsLoaded) { Spacer(Modifier.height(12.dp)); DBtn(Msg.android_project_add, true, true, onClick = addProject) } + } + } + } else { + benchItems(partition.bench, open, { secPage = it }, { secMenu = it }, { secRename = it }, openSwarm) + } + if (hist.count > 0) { + item("history") { + Row(Modifier.fillMaxWidth().height(44.dp).clickable { DataClient.showHistory(!DataClient.historyOpen) }.padding(start = 12.dp).testTag("home.history"), verticalAlignment = Alignment.CenterVertically) { + Icon(if (DataClient.historyOpen) Icons.Default.ExpandMore else Icons.Default.ChevronRight, null, tint = dcs.onSurfaceVariant, modifier = Modifier.size(16.dp)); Spacer(Modifier.width(6.dp)) + DMono(hist.title.uppercase(), dcs.onSurfaceVariant, 11, Modifier.weight(1f)) + } + } + items(hist.shown(DataClient.historyOpen), key = { "h:${it.id}" }) { t -> ThreadRow(t, { open(t.id) }) } + if (DataClient.historyOpen && hist.next != null) item("history.more") { + val more = rememberCoroutineScope() + Row(Modifier.fillMaxWidth().height(36.dp).clickable { more.launch { DataClient.loadHistory(more = true) } }.padding(start = 34.dp).testTag("home.history.more"), verticalAlignment = Alignment.CenterVertically) { DMono(Msg.common_more, dfaint, 11) } + } + } + } + } + } + } + } + } + DLine() + NavigationBar(containerColor = dcs.surfaceVariant, tonalElevation = 0.dp, modifier = Modifier.testTag("home.tabs")) { + NavigationBarItem( + selected = tab == HomeTab.INBOX, + onClick = { tab = HomeTab.INBOX; searchOpen = false; q = "" }, + icon = { + BadgedBox(badge = { if (partition.needsCount > 0) Badge(containerColor = dcs.error, contentColor = dcs.onError) { DMono("${partition.needsCount}", dcs.onError, 10, bold = true) } }) { + Icon(Icons.Default.Inbox, Msg.mobile_tab_inbox) + } + }, + label = { DMono(Msg.mobile_tab_inbox, if (tab == HomeTab.INBOX) dcs.primary else dcs.onSurfaceVariant, 11, bold = tab == HomeTab.INBOX) }, + colors = NavigationBarItemDefaults.colors(selectedIconColor = dcs.primary, unselectedIconColor = dcs.onSurfaceVariant, indicatorColor = dcs.primary.copy(alpha = 0.14f)), + modifier = Modifier.testTag("home.tab.inbox"), + ) + NavigationBarItem( + selected = tab == HomeTab.CREW, + onClick = { tab = HomeTab.CREW; searchOpen = false; q = "" }, + icon = { Icon(Icons.Default.Groups, Msg.mobile_tab_crew) }, + label = { DMono(Msg.mobile_tab_crew, if (tab == HomeTab.CREW) dcs.primary else dcs.onSurfaceVariant, 11, bold = tab == HomeTab.CREW) }, + colors = NavigationBarItemDefaults.colors(selectedIconColor = dcs.primary, unselectedIconColor = dcs.onSurfaceVariant, indicatorColor = dcs.primary.copy(alpha = 0.14f)), + modifier = Modifier.testTag("home.tab.crew"), + ) + NavigationBarItem( + selected = tab == HomeTab.BENCH, + onClick = { tab = HomeTab.BENCH; searchOpen = false; q = "" }, + icon = { Icon(Icons.Default.DeveloperBoard, Msg.mobile_tab_bench) }, + label = { DMono(Msg.mobile_tab_bench, if (tab == HomeTab.BENCH) dcs.primary else dcs.onSurfaceVariant, 11, bold = tab == HomeTab.BENCH) }, + colors = NavigationBarItemDefaults.colors(selectedIconColor = dcs.primary, unselectedIconColor = dcs.onSurfaceVariant, indicatorColor = dcs.primary.copy(alpha = 0.14f)), + modifier = Modifier.testTag("home.tab.bench"), + ) + } + } else { Row(Modifier.fillMaxWidth().padding(start = 10.dp, end = 4.dp, top = 8.dp, bottom = 8.dp), verticalAlignment = Alignment.CenterVertically) { if (DataClient.has("search")) Box(Modifier.weight(1f)) { DField(q, { q = it }, Msg.android_search_hint, Modifier.testTag("home.searchfield")) } else Spacer(Modifier.weight(1f)) IconButton(onClick = addProject, modifier = Modifier.testTag("home.add")) { Icon(Icons.Default.Add, Msg.sidebar_add_project, tint = dcs.onSurfaceVariant) } } MachineChips() DLine() - if (DataClient.locks.isNotEmpty() && !(DataClient.has("sections") && DataClient.sections.isNotEmpty())) LocksStrip(open) // (the sections leave the hub's locks out: backend work) + if (DataClient.locks.isNotEmpty()) LocksStrip(open) if (q.isNotBlank() && DataClient.has("search")) { SearchResults(q, open); return@Column } val botThreads = DataClient.bots.map { it.thread }.toSet() val projects = DataClient.projects; val swarmsOn = Swarms.on() @@ -369,10 +596,9 @@ private fun HomeScreen(open: (String) -> Unit, settings: () -> Unit, hub: () -> val threads = DataClient.threads.filter { !it.archived && it.id !in botThreads && !it.history && !(swarmsOn && it.swarm.isNotEmpty()) } val hist = DataClient.history if (projects.isEmpty() && threads.isEmpty() && hist.count == 0) { - // no project yet: Bub (and what the hub's sections hold, Needs you) still lead the list; the empty state and Add a project come under them + // no project yet: Bub still leads the list; the empty state and Add a project come under it LazyColumn(Modifier.fillMaxSize().testTag("home.list")) { items(DataClient.bots.filter { it.uber && it.thread.isNotEmpty() }, key = { "u:${it.id}" }) { b -> SidebarRow("@", b.name, onMachine(Msg.android_kind_uberbot, b.mark), lead = botCat(b)) { open(b.thread) } } - if (DataClient.has("sections") && DataClient.sections.isNotEmpty()) sectionItems(open, { secPage = it }, { secMenu = it }, { secRename = it }, openSwarm) item("empty") { Column(Modifier.fillMaxWidth().padding(32.dp), horizontalAlignment = Alignment.CenterHorizontally) { Text(if (DataClient.listsLoaded) Msg.android_projects_none else Msg.viewer_loading, color = dcs.onSurface, fontFamily = BpMono, fontSize = 14.sp) @@ -384,10 +610,7 @@ private fun HomeScreen(open: (String) -> Unit, settings: () -> Unit, hub: () -> val uber = DataClient.bots.filter { it.uber && it.thread.isNotEmpty() } items(uber, key = { "u:${it.id}" }) { b -> SidebarRow("@", b.name, onMachine(b.note.ifEmpty { Msg.android_kind_uberbot }, b.mark), lead = botCat(b)) { open(b.thread) } } var at = uber.size; rowOf.clear() - // a hub with sections (docs/ALWAYS-ON.md section 8): Needs you, Pinned, Active, the groups, Quiet, as it presents them; else every project - val sectioned = DataClient.has("sections") && DataClient.sections.isNotEmpty() - if (sectioned) sectionItems(open, { secPage = it }, { secMenu = it }, { secRename = it }, openSwarm) - if (!sectioned) for (p in projects) { + for (p in projects) { val closed = p.id in shut rowOf[p.id] = at; at += 1 val sw = if (swarmsOn) SwarmUi.live(Swarms.all, p.id) else emptyList() @@ -437,7 +660,7 @@ private fun HomeScreen(open: (String) -> Unit, settings: () -> Unit, hub: () -> } } val known = projects.map { it.id }.toSet() - if (!sectioned) items(threads.filter { it.project !in known }, key = { "t:${it.id}" }) { t -> ThreadRow(t, { open(t.id) }) } + items(threads.filter { it.project !in known }, key = { "t:${it.id}" }) { t -> ThreadRow(t, { open(t.id) }) } // Conversation history: the old Scratch chats. Its row opens or shuts the list; a chat that wants attention always has its row; nothing starts here if (hist.count > 0) { item("history") { @@ -458,6 +681,7 @@ private fun HomeScreen(open: (String) -> Unit, settings: () -> Unit, hub: () -> if (DataClient.rooms.isNotEmpty()) { item("rooms") { DMono(Msg.plane_heading_rooms, dfaint, 11, Modifier.fillMaxWidth().padding(start = 12.dp, top = 12.dp, bottom = 4.dp)) } items(DataClient.rooms, key = { "r:${it.id}" }) { r -> SidebarRow("#", r.name, onMachine(Msg.android_kind_room, r.mark), onLong = if (r.delete) ({ roomDelete = r }) else null) { openRoom(r) } } } } + } // end !sectioned // Delete bot (a long press on a bot the hub offers it for): asked first, then `bot.delete` botDelete?.let { b -> BotDeleteDialog(b) { botDelete = null } } // Delete room (a long press on a room the hub offers it for): asked first, then `room.delete` diff --git a/mobile/android/app/src/test/java/dev/backplane/mobile/MobileSectionsTest.kt b/mobile/android/app/src/test/java/dev/backplane/mobile/MobileSectionsTest.kt new file mode 100644 index 0000000000..08522ca8de --- /dev/null +++ b/mobile/android/app/src/test/java/dev/backplane/mobile/MobileSectionsTest.kt @@ -0,0 +1,114 @@ +package dev.backplane.mobile + +import org.json.JSONArray +import org.json.JSONObject +import org.junit.Assert.assertEquals +import org.junit.Assert.assertFalse +import org.junit.Assert.assertNull +import org.junit.Assert.assertTrue +import org.junit.Test + +/** Unit tests for the mobile-native Crew/Inbox/Bench sections contract: status pills, snooze/wake/settle fields, hardware PCB badges, and tab partitioning. */ +class MobileSectionsTest { + private fun row(j: String) = DSecRow.of(JSONObject(j)) + + @Test fun parsesNewHubFields() { + val r = row( + """{ + "id":"t1","title":"Route USB-C diff pair","word":"running","label":"Working","tone":"run", + "ago":"2m","project":"Mainboard","nav":"t1","settle":"", + "snooze":[{"label":"1 hour","value":"t1|1h"},{"label":"Tomorrow","value":"t1|tomorrow"},{"label":"1 week","value":"t1|1w"}] + }""" + ) + assertEquals("Working", r.label) + assertEquals("run", r.tone) + assertEquals(3, r.snooze.size) + assertEquals("t1|1h", r.snooze[0].value) + assertEquals("Tomorrow", r.snooze[1].label) + assertEquals("", r.wake) + assertEquals("", r.settle) + } + + @Test fun parsesHardwareBoardBadgeAndWake() { + val proj = row("""{"id":"p1","key":"k1","title":"SensorBoard","hasBoard":true,"hasSchematic":true,"pinned":true}""") + assertTrue(proj.hasBoard) + assertTrue(proj.hasSchematic) + assertTrue(proj.pinned) + + val snz = row("""{"id":"t2","title":"Old build","word":"done","label":"Done","tone":"ok","wake":"t2|off","ago":"3h"}""") + assertEquals("t2|off", snz.wake) + val pill = statusPillOf(snz)!! + assertEquals(PillKind.SNOOZED, pill.kind) + assertEquals(PillTone.DIM, pill.tone) + } + + @Test fun resolvesHubLabelAndTonePills() { + assertEquals(StatusPillModel(PillKind.APPROVE, "Approve", PillTone.BAD), statusPillOf(row("""{"id":"1","label":"Approve","tone":"bad"}"""))) + assertEquals(StatusPillModel(PillKind.SIGN_IN, "Sign in", PillTone.BAD), statusPillOf(row("""{"id":"2","label":"Sign in","tone":"bad"}"""))) + assertEquals(StatusPillModel(PillKind.INPUT, "Input", PillTone.BAD), statusPillOf(row("""{"id":"3","label":"Input","tone":"bad"}"""))) + assertEquals(StatusPillModel(PillKind.FAILED, "Failed", PillTone.BAD_OUTLINE), statusPillOf(row("""{"id":"4","label":"Failed","tone":"bad"}"""))) + assertEquals(StatusPillModel(PillKind.STOPPED, "Stopped", PillTone.BAD_OUTLINE), statusPillOf(row("""{"id":"5","label":"Stopped","tone":"bad"}"""))) + assertEquals(StatusPillModel(PillKind.WORKING, "Working", PillTone.RUN), statusPillOf(row("""{"id":"6","label":"Working","tone":"run"}"""))) + assertEquals(StatusPillModel(PillKind.WAITING, "Waiting", PillTone.WAIT), statusPillOf(row("""{"id":"7","label":"Waiting","tone":"wait"}"""))) + assertEquals(StatusPillModel(PillKind.DONE, "Done", PillTone.OK), statusPillOf(row("""{"id":"8","label":"Done","tone":"ok"}"""))) + } + + @Test fun fallsBackToLegacyWordAndWantWhenLabelAbsent() { + assertEquals(StatusPillModel(PillKind.APPROVE, "Approve", PillTone.BAD), statusPillOf(row("""{"id":"1","word":"needs","want":"approval"}"""))) + assertEquals(StatusPillModel(PillKind.SIGN_IN, "Sign in", PillTone.BAD), statusPillOf(row("""{"id":"2","word":"needs","want":"sign-in"}"""))) + assertEquals(StatusPillModel(PillKind.INPUT, "Input", PillTone.BAD), statusPillOf(row("""{"id":"3","word":"needs","want":"question"}"""))) + assertEquals(StatusPillModel(PillKind.FAILED, "Failed", PillTone.BAD_OUTLINE), statusPillOf(row("""{"id":"4","word":"failed"}"""))) + assertEquals(StatusPillModel(PillKind.STOPPED, "Stopped", PillTone.BAD_OUTLINE), statusPillOf(row("""{"id":"5","word":"cut"}"""))) + assertEquals(StatusPillModel(PillKind.WORKING, "Working", PillTone.RUN), statusPillOf(row("""{"id":"6","word":"running"}"""))) + assertEquals(StatusPillModel(PillKind.WAITING, "Waiting", PillTone.WAIT), statusPillOf(row("""{"id":"7","word":"limit"}"""))) + assertEquals(StatusPillModel(PillKind.DONE, "Done", PillTone.OK), statusPillOf(row("""{"id":"8","word":"done"}"""))) + assertNull(statusPillOf(row("""{"id":"9","word":"idle"}"""))) + } + + @Test fun partitionsInboxAndBenchAndComputesQuickJump() { + val raw = JSONArray( + """[ + {"id":"bub","kind":"bub","title":"","rows":[]}, + {"id":"needs","kind":"threads","title":"Needs you","count":2,"rows":[{"id":"t1","title":"A"},{"id":"t2","title":"B"}]}, + {"id":"running","kind":"threads","title":"Running","count":1,"rows":[{"id":"t3","title":"C"}]}, + {"id":"snoozed","kind":"threads","title":"Snoozed","count":3,"fold":true,"open":false,"toggle":"sec:snoozed","rows":[]}, + {"id":"pinned","kind":"projects","title":"Pinned","count":1,"rows":[{"id":"p1","key":"k1","title":"SensorBoard","hasBoard":true}]}, + {"id":"active","kind":"projects","title":"Recent","count":3,"rows":[ + {"id":"p1","key":"k1","title":"SensorBoard","hasBoard":true}, + {"id":"p2","key":"k2","title":"Firmware"}, + {"id":"p3","key":"k3","title":"PowerSupply","hasBoard":true}, + {"id":"p4","key":"k4","title":"Enclosure"} + ]}, + {"id":"all","kind":"projects","title":"All projects","count":30,"fold":true,"open":false,"toggle":"sec:all","rows":[]}, + {"id":"quiet","kind":"projects","title":"Quiet","count":9,"fold":true,"open":false,"toggle":"sec:quiet","hint":"Nothing for two weeks, or made quiet","rows":[]} + ]""" + ) + val sections = DSection.list(raw) + val p = partitionSections(sections) + + assertEquals(listOf("needs", "running", "snoozed"), p.inbox.map { it.id }) + assertEquals(listOf("pinned", "active", "all", "quiet"), p.bench.map { it.id }) + assertEquals(2, p.needsCount) + assertEquals(1, p.runningCount) + assertEquals(3, p.snoozedCount) + assertFalse(p.inboxEmpty) + assertEquals("Nothing for two weeks, or made quiet", p.bench.last().hint) + + val quick = p.quickJumpProjects(3) + assertEquals(listOf("k1", "k2", "k3"), quick.map { it.key }) + } + + @Test fun detectsAllClearInboxEvenWhenSnoozedPresent() { + val raw = JSONArray( + """[ + {"id":"snoozed","kind":"threads","title":"Snoozed","count":2,"fold":true,"open":false,"toggle":"sec:snoozed","rows":[]}, + {"id":"active","kind":"projects","title":"Recent","count":1,"rows":[{"id":"p1","key":"k1","title":"BoardA","hasBoard":true}]} + ]""" + ) + val p = partitionSections(DSection.list(raw)) + assertTrue(p.inboxEmpty) + assertEquals(0, p.needsCount) + assertEquals(2, p.snoozedCount) + assertEquals(1, p.quickJumpProjects(3).size) + } +} From de330fc2f48530a10c2d228e480e04863b7dc8c8 Mon Sep 17 00:00:00 2001 From: i2cjak Date: Mon, 23 Nov 2026 02:50:39 -0500 Subject: [PATCH 3/6] iOS: the home as three tabs (Inbox, Crew, Bench), status words for dots, swipe to snooze Co-Authored-By: Claude Fable 5.2 --- mobile/ios/Backplane/DataClient.swift | 5 + mobile/ios/Backplane/DataSections.swift | 134 +++++++++--- mobile/ios/Backplane/DataViews.swift | 269 +++++++++++++++++------- mobile/ios/Backplane/HomeModel.swift | 70 ++++++ mobile/ios/Tests/HomeModelTests.swift | 38 ++++ scripts/mobile/ios-unit-tests.sh | 1 + 6 files changed, 404 insertions(+), 113 deletions(-) create mode 100644 mobile/ios/Backplane/HomeModel.swift create mode 100644 mobile/ios/Tests/HomeModelTests.swift diff --git a/mobile/ios/Backplane/DataClient.swift b/mobile/ios/Backplane/DataClient.swift index ae89328843..04d1c8a34d 100644 --- a/mobile/ios/Backplane/DataClient.swift +++ b/mobile/ios/Backplane/DataClient.swift @@ -660,6 +660,11 @@ final class DataClient { UserDefaults.standard.set(Array(sectionsOpen), forKey: "data.sections.open"); Task { await loadSections() } } func sidebarAct(_ action: String, _ value: String) async { _ = try? await call("sidebar.act", ["action": action, "value": value]) as DEmpty; await loadSections() } + /// A section row's snooze or wake by the hub's own value (the row's `snooze` option or `wake`: "|1h", "|tomorrow", "|1w", "|off"). + func snoozeRow(_ value: String) async { await sidebarAct("row-snooze", value) } + /// A project's page opened here: a visit, so the bench (Recent) follows this phone too. The hub writes it at most once in ten minutes; an + /// older hub refuses the action, which changes nothing. + func visitProject(_ key: String) async { guard has("sections"), !key.isEmpty else { return }; _ = try? await call("sidebar.act", ["action": "project-page", "value": key]) as DEmpty } /// A section row's menu item for a thread of this hub (the hub's `menu`: pin, unpin, settle, unsettle, archive): `thread.act`, then the sections as the hub has them now. func sectionThreadAct(_ id: String, _ action: String) async { await threadAct(id, action); await loadSections() } func projectPage(_ key: String, done: Bool, older: Bool = false) async -> DProjectPage? { diff --git a/mobile/ios/Backplane/DataSections.swift b/mobile/ios/Backplane/DataSections.swift index 176eee2255..6a0b64d65c 100644 --- a/mobile/ios/Backplane/DataSections.swift +++ b/mobile/ios/Backplane/DataSections.swift @@ -19,7 +19,13 @@ struct DSecRow: Decodable, Identifiable, Equatable { var fold: String; var folded: Bool; var under: Int /// a swarm row's: what it wants of the person, one line and its buttons (the hub's present/swarm_need.rs); nil when it wants nothing var need: DSwarmNeed? - enum CodingKeys: String, CodingKey { case id, title, word, say, want, ago, machine, mark, project, projectKey, off, nav, pinned, hide, kind, key, running, needsCount, threads, icon, css, dots, more, rest, menu, fold, folded, under, need } + /// its status as a word (the hub's `label` and `tone`: bad, run, wait, ok; an older hub sends none and `pill` reads `word` and `want`) + var label: String; var badgeTone: String + /// the spans it can be snoozed for (`row-snooze` with an option's value), the thread one press settles, and a snoozed row's wake value + var snooze: [DSnoozeOpt]; var settle: String; var wake: String + /// a project with a board in its folder + var hasBoard: Bool + enum CodingKeys: String, CodingKey { case id, title, word, say, want, ago, machine, mark, project, projectKey, off, nav, pinned, hide, kind, key, running, needsCount, threads, icon, css, dots, more, rest, menu, fold, folded, under, need, label, tone, snooze, settle, wake, hasBoard } init(from d: Decoder) throws { let c = try d.container(keyedBy: CodingKeys.self) id = c.str(.id); title = c.str(.title); word = c.str(.word); say = c.str(.say); want = c.str(.want); ago = c.str(.ago); machine = c.str(.machine) @@ -29,14 +35,16 @@ struct DSecRow: Decodable, Identifiable, Equatable { menu = (try? c.decode([DMenuItem].self, forKey: .menu)) ?? [] fold = c.str(.fold); folded = c.bool(.folded); under = c.int(.under) need = kind == "swarm" ? DSwarmNeed.of(c, .need) : nil + label = c.str(.label); badgeTone = c.str(.tone); snooze = (try? c.decode([DSnoozeOpt].self, forKey: .snooze)) ?? []; settle = c.str(.settle); wake = c.str(.wake) + hasBoard = c.bool(.hasBoard) } var isProject: Bool { !key.isEmpty } /// a chevron on the row: something is under it, or it is folded (an older hub sends no fold) var canFold: Bool { !fold.isEmpty && (folded || under > 0) } /// a live swarm's row (`kind` swarm): it opens the swarm's page, its room var swarmRoom: String? { kind == "swarm" ? (nav.hasPrefix("@room:") ? String(nav.dropFirst(6)) : nil) : nil } - /// what a thread row's dot is: red when it asks, the accent while it works, dim when stopped - var tone: Color { switch word { case "needs": return BackplaneDesign.bad; case "running", "monitoring", "limit": return BackplaneDesign.accent; case "failed", "cut", "interrupted": return BackplaneDesign.bad.opacity(0.6); default: return BackplaneDesign.faint } } + /// the row's status, a word with its icon; nil for a thread with nothing to say + var pill: HomePill? { isProject ? nil : Home.pill(label: label, tone: badgeTone, word: word, want: want) } } struct DSecDot: Decodable, Equatable { var short: String; var here: Bool; var dim: Bool enum CodingKeys: String, CodingKey { case short, here, dim } @@ -72,26 +80,63 @@ struct DataSectionHead: View { Text(Tr.t(s.title).uppercased()).dmono(11, bold: s.id == "needs").foregroundStyle(s.id == "needs" ? BackplaneDesign.bad : BackplaneDesign.dim).lineLimit(1) if s.fold || s.kind == "threads" { Text("\(s.count)").dmono(11).foregroundStyle(BackplaneDesign.faint) } Spacer(minLength: 0) - }.padding(.leading, 10).padding(.top, 10).frame(minHeight: 30).contentShape(Rectangle()) + }.padding(.leading, 14).padding(.trailing, 12).padding(.top, 10).frame(minHeight: s.fold ? 44 : 34).contentShape(Rectangle()) }.buttonStyle(.plain).accessibilityIdentifier("data.section." + s.id) } } -/// A thread row of a section; one whose machine is off is listed, dimmed, and opens nothing. +/// A row's status as a word with its icon, square as the rest of the app: red and solid when the person is wanted or it stopped, the accent +/// while it works, quiet when it waits or is done. It replaced the row's coloured dot, which said almost nothing at a glance. +struct DStatusPill: View { + let pill: HomePill + private var color: Color { switch pill.tone { case "bad": BackplaneDesign.bad; case "run": BackplaneDesign.accent; case "ok": BackplaneDesign.ok; default: BackplaneDesign.dim } } + var body: some View { + let solid = pill.tone == "bad" + HStack(spacing: 4) { + Image(systemName: pill.symbol).font(.system(size: 10, weight: .bold)) + Text(Tr.t(pill.label)).dmono(11, bold: true).lineLimit(1) + } + .foregroundStyle(solid ? BackplaneDesign.background : color) + .padding(.horizontal, 7).frame(minHeight: 24) + .background(solid ? color : color.opacity(0.12)) + .overlay(Rectangle().strokeBorder(color, lineWidth: 1)) + .fixedSize().accessibilityElement(children: .combine) + } +} +/// A project with a board in it: a small chip beside its name. +struct DBoardBadge: View { + var body: some View { + HStack(spacing: 3) { + Image(systemName: "cpu").font(.system(size: 9, weight: .semibold)) + Text(Tr.t("PCB")).dmono(10, bold: true) + } + .foregroundStyle(BackplaneDesign.ok).padding(.horizontal, 5).frame(minHeight: 18) + .overlay(Rectangle().strokeBorder(BackplaneDesign.ok.opacity(0.6), lineWidth: 1)).fixedSize().accessibilityElement(children: .combine) + } +} +/// A thread row of a section: its title, under it where it is and when, and its status as a word at the right. One whose machine is off is +/// listed, dimmed, and opens nothing. A snoozed row (the hub's `wake`) says when it comes back. struct DataSectionThread: View { - let r: DSecRow; var indent: CGFloat = 12; var showProject = false; var quiet = false; let open: (String) -> Void + let r: DSecRow; var indent: CGFloat = 14; var showProject = false; let open: (String) -> Void + private var sub: String { + var parts: [String] = [] + if showProject && !r.project.isEmpty { parts.append(r.project) } + if let m = r.mark { parts.append(dAway(m.short, m.away)) } + if !r.wake.isEmpty { parts.append(Tr.mobile_snooze_wakes(time: r.ago)) } else if !r.ago.isEmpty { parts.append(r.ago) } + return parts.joined(separator: " · ") + } var body: some View { Button { if !r.off { open(r.nav) } } label: { - HStack(spacing: 8) { - Circle().fill(r.tone).frame(width: 7, height: 7) - Text(r.title).dmono(13).foregroundStyle(BackplaneDesign.text).lineLimit(1) - if r.pinned { Image(systemName: "pin.fill").font(.system(size: 9)).foregroundStyle(BackplaneDesign.faint).accessibilityIdentifier("data.section.pinned." + r.id) } - if showProject { Text(r.project).dmono(11).foregroundStyle(BackplaneDesign.faint).lineLimit(1) } + HStack(spacing: 10) { + VStack(alignment: .leading, spacing: 3) { + HStack(spacing: 6) { + Text(r.title).dmono(14).foregroundStyle(BackplaneDesign.text).lineLimit(1) + if r.pinned { Image(systemName: "pin.fill").font(.system(size: 9)).foregroundStyle(BackplaneDesign.faint).accessibilityIdentifier("data.section.pinned." + r.id) } + } + if !sub.isEmpty { Text(sub).dmono(11).foregroundStyle(BackplaneDesign.dim).lineLimit(1).truncationMode(.middle) } + } Spacer(minLength: 0) - if let m = r.mark { Text(dAway(m.short, m.away)).dmono(11).foregroundStyle(BackplaneDesign.faint) } - if quiet { Text(r.ago).dmono(11).foregroundStyle(BackplaneDesign.faint) } - else if r.need != nil {} // its line is drawn under it (DataSwarmNeedRow) - else { Text(r.want.isEmpty ? Tr.t(r.say.isEmpty ? r.ago : r.say) : Tr.t(r.want)).dmono(11).foregroundStyle(r.want.isEmpty ? BackplaneDesign.faint : BackplaneDesign.bad) } - }.padding(.leading, indent).padding(.trailing, 12).frame(minHeight: 36).contentShape(Rectangle()).opacity(r.off ? 0.55 : 1) + if let p = r.pill { DStatusPill(pill: p).accessibilityIdentifier("data.section.pill." + r.id) } + }.padding(.leading, indent).padding(.trailing, 12).padding(.vertical, 6).frame(minHeight: 52).contentShape(Rectangle()).opacity(r.off ? 0.55 : 1) }.buttonStyle(.plain).accessibilityIdentifier("data.section.thread." + r.id) } } @@ -107,15 +152,15 @@ struct DataSwarmNeedRow: View { VStack(alignment: .leading, spacing: 0) { DataSectionThread(r: r) { _ in openRoom() } Text(Tr.t(need.line)).dmono(11).foregroundStyle(BackplaneDesign.bad).lineLimit(1).truncationMode(.tail) - .padding(.leading, 27).padding(.trailing, 12).padding(.top, -6).accessibilityIdentifier("data.section.need." + r.id) + .padding(.leading, 14).padding(.trailing, 12).padding(.top, -2).accessibilityIdentifier("data.section.need." + r.id) HStack(spacing: 6) { ForEach(Swarm.buttons(need, rowRoom: room)) { a in Button(Tr.t(a.label)) { press(a) }.buttonStyle(DButton(primary: false, compact: true)).disabled(busy) .accessibilityIdentifier("data.section.need." + a.act + "." + r.id) } Spacer(minLength: 0) - }.padding(.leading, 27).padding(.trailing, 12).padding(.top, 6).padding(.bottom, error.isEmpty ? 8 : 4) - if !error.isEmpty { Text(error).dmono(11).foregroundStyle(BackplaneDesign.bad).lineLimit(2).padding(.leading, 27).padding(.trailing, 12).padding(.bottom, 8).accessibilityIdentifier("data.section.need.error." + r.id) } + }.padding(.leading, 14).padding(.trailing, 12).padding(.top, 6).padding(.bottom, error.isEmpty ? 8 : 4) + if !error.isEmpty { Text(error).dmono(11).foregroundStyle(BackplaneDesign.bad).lineLimit(2).padding(.leading, 14).padding(.trailing, 12).padding(.bottom, 8).accessibilityIdentifier("data.section.need.error." + r.id) } } } private func press(_ a: DSwarmNeedAct) { @@ -146,31 +191,49 @@ extension View { contextMenu { if !r.hide.isEmpty { Button(Tr.t("Hide"), systemImage: "eye.slash") { Task { await client.sidebarAct("thread-hide", r.hide) } } } if !r.isProject && r.swarmRoom == nil { ForEach(r.menu) { m in Button(Tr.t(m.label)) { Task { await client.sectionThreadAct(r.id, m.id); await after() } }.accessibilityIdentifier("data.section." + m.id + "." + r.id) } } + // what a swipe does, for a finger that would rather press: the spans it can be snoozed for, or Wake + if !r.snooze.isEmpty { Menu { ForEach(r.snooze) { o in Button(Tr.t(o.label)) { Task { await client.snoozeRow(o.value); await after() } } } } label: { Label(Tr.t("Snooze"), systemImage: "clock") } } + if !r.wake.isEmpty { Button(Tr.t("Wake"), systemImage: "bell") { Task { await client.snoozeRow(r.wake); await after() } } } + } + } + /// A thread row's swipes (native, in a List): to the left Snooze, one button per span the hub offers (a full swipe takes the first, 1 hour), or + /// Wake on a snoozed row; to the right Settle, on a row the hub lets one press settle. A row with neither has no swipe. + func rowSwipes(_ r: DSecRow, _ client: DataClient, after: @escaping () async -> Void = {}) -> some View { + swipeActions(edge: .trailing, allowsFullSwipe: true) { + ForEach(r.snooze) { o in + Button { Task { await client.snoozeRow(o.value); await after() } } label: { Label(Tr.t(o.label), systemImage: "clock") } + .tint(o.id == r.snooze.first?.id ? BackplaneDesign.accent : BackplaneDesign.dim).accessibilityIdentifier("data.section.snooze." + r.id) + } + if !r.wake.isEmpty { Button { Task { await client.snoozeRow(r.wake); await after() } } label: { Label(Tr.t("Wake"), systemImage: "bell") }.tint(BackplaneDesign.accent).accessibilityIdentifier("data.section.wake." + r.id) } + } + .swipeActions(edge: .leading, allowsFullSwipe: true) { + if !r.settle.isEmpty { Button { Task { await client.sectionThreadAct(r.id, "settle"); await after() } } label: { Label(Tr.t("Settle"), systemImage: "checkmark") }.tint(BackplaneDesign.ok).accessibilityIdentifier("data.section.settle." + r.id) } } } } -/// A project row of a section: its badge and name, the machines' dots, its running count; a press opens its page. +/// A project row of a section: its badge and name, a PCB chip when it has a board, the machines' dots, what runs and what waits in it; a press +/// opens its page. `tall` is a row of the bench (Pinned, Recent): the ones a thumb goes for. struct DataSectionProject: View { - let r: DSecRow; var faded = false; var toggleFold: () -> Void = {} + let r: DSecRow; var faded = false; var tall = false; var toggleFold: () -> Void = {} var body: some View { HStack(spacing: 8) { // the fold: a tap on the chevron folds its threads away or back (the hub keeps it); a tap elsewhere opens the page - Group { - if r.canFold { - Button(action: toggleFold) { Image(systemName: r.folded ? "chevron.right" : "chevron.down").font(.system(size: 10)).foregroundStyle(BackplaneDesign.faint).frame(width: 22, height: 38).contentShape(Rectangle()) } - .buttonStyle(.plain).accessibilityLabel(Tr.t(r.folded ? "Show" : "Hide")).accessibilityIdentifier("data.section.fold." + r.key) - } else { Color.clear.frame(width: 22, height: 38) } - }.padding(.trailing, -4) - if r.icon == "backplane" { BrandMark(size: 13) } else { Image(systemName: dataBadgeSymbol(r.icon)).font(.system(size: 13)).foregroundStyle(Color(css: r.css) ?? BackplaneDesign.ok) } - Text(r.title).dmono(13).foregroundStyle(BackplaneDesign.text).lineLimit(1) - if r.dots.count > 1 { HStack(spacing: 3) { ForEach(Array(r.dots.enumerated()), id: \.offset) { _, d in Circle().fill(d.dim ? BackplaneDesign.faint : (d.here ? BackplaneDesign.accent : BackplaneDesign.dim)).frame(width: 5, height: 5) } } } + if r.canFold { + Button(action: toggleFold) { Image(systemName: r.folded ? "chevron.right" : "chevron.down").font(.system(size: 10)).foregroundStyle(BackplaneDesign.faint).frame(width: 30, height: 44).contentShape(Rectangle()) } + .buttonStyle(.plain).accessibilityLabel(Tr.t(r.folded ? "Show" : "Hide")).accessibilityIdentifier("data.section.fold." + r.key).padding(.trailing, -8) + } else { Color.clear.frame(width: 6, height: 44) } + if r.icon == "backplane" { BrandMark(size: tall ? 16 : 14) } else { Image(systemName: dataBadgeSymbol(r.icon)).font(.system(size: tall ? 16 : 14)).foregroundStyle(Color(css: r.css) ?? BackplaneDesign.ok).frame(width: 20) } + Text(r.title).dmono(14, bold: tall).foregroundStyle(BackplaneDesign.text).lineLimit(1) + if r.hasBoard { DBoardBadge().accessibilityIdentifier("data.section.board." + r.key) } + if r.dots.count > 1 { HStack(spacing: 3) { ForEach(Array(r.dots.enumerated()), id: \.offset) { _, d in Circle().fill(d.dim ? BackplaneDesign.faint : (d.here ? BackplaneDesign.accent : BackplaneDesign.dim)).frame(width: 5, height: 5) } }.accessibilityHidden(true) } Spacer(minLength: 0) if r.rest > 0 { Text("\(r.rest)").dmono(11).foregroundStyle(BackplaneDesign.faint).accessibilityIdentifier("data.section.rest." + r.key) } - if r.running > 0 { Text(Tr.ios_sections_running(n: r.running)).dmono(11).foregroundStyle(BackplaneDesign.accent) } + if r.running > 0 { Text(Tr.ios_sections_running(n: r.running)).dmono(11, bold: true).foregroundStyle(BackplaneDesign.accent).lineLimit(1).fixedSize() } // what of it waits on the person (its rows are in Needs you, folded or not) - if r.needsCount > 0 { Text("\(r.needsCount)").dmono(10).foregroundStyle(BackplaneDesign.background).padding(.horizontal, 5).background(BackplaneDesign.bad).accessibilityIdentifier("data.section.needs." + r.key) } + if r.needsCount > 0 { Text("\(r.needsCount)").dmono(11, bold: true).foregroundStyle(BackplaneDesign.background).padding(.horizontal, 6).frame(minHeight: 20).background(BackplaneDesign.bad).accessibilityIdentifier("data.section.needs." + r.key) } if r.pinned { Image(systemName: "pin.fill").font(.system(size: 10)).foregroundStyle(BackplaneDesign.dim) } - }.padding(.trailing, 12).frame(minHeight: 38).contentShape(Rectangle()).opacity(faded || r.projOff ? 0.55 : 1) + Image(systemName: "chevron.right").font(.system(size: 10)).foregroundStyle(BackplaneDesign.faint).accessibilityHidden(true) + }.padding(.leading, 8).padding(.trailing, 12).frame(minHeight: tall ? 52 : 46).contentShape(Rectangle()).opacity(faded || r.projOff ? 0.55 : 1) } } @@ -209,14 +272,15 @@ struct DataProjectPageView: View { DataSectionHead(s: s) { if s.toggle == "page-older" { older.toggle() } else { done.toggle() }; Task { await load() } }.dataRow() ForEach(s.rows) { r in if let room = r.swarmRoom, let n = r.need { DataSwarmNeedRow(client: client, r: r, need: n, room: room, openRoom: { path.append(DSwarmRoute(id: room, name: r.title)) }, openThread: { path.append($0) }) { await load() }.dataRow() } - else { DataSectionThread(r: r) { nav in if let room = r.swarmRoom { path.append(DSwarmRoute(id: room, name: r.title)) } else { path.append(nav) } }.farHide(r, client) { await load() }.dataRow() } + else { DataSectionThread(r: r) { nav in if let room = r.swarmRoom { path.append(DSwarmRoute(id: room, name: r.title)) } else { path.append(nav) } }.farHide(r, client) { await load() }.rowSwipes(r, client) { await load() }.dataRow() } } } if page.sections.allSatisfy({ $0.rows.isEmpty && $0.count == 0 }) { Text(Tr.t("No threads")).dmono(12).foregroundStyle(BackplaneDesign.faint).padding(14).dataRow() } } else { DLoading(text: Tr.t("Loading…")).dataRow() } } .listStyle(.plain).scrollContentBackground(.hidden).environment(\.defaultMinListRowHeight, 1) - .navigationTitle(route.title).task { await load() }.refreshable { await load() } + // opening the page is a visit: the hub's bench (Recent) follows where the person was last, on this phone too + .navigationTitle(route.title).task { await client.visitProject(route.key); await load() }.refreshable { await load() } .toolbar { if let p = project { ToolbarItem(placement: .primaryAction) { Button { onNew(p.id) } label: { Image(systemName: "plus") }.accessibilityIdentifier("data.project.page.new") } } } .toolbar { if let b = buy { ToolbarItem(placement: .primaryAction) { Button { buyAsk = b } label: { Image(systemName: "cart") }.disabled(buying).accessibilityLabel(Tr.t(b.label)).accessibilityIdentifier("data.project.page.buy") } } } .confirmationDialog(Tr.ios_buy_ask(project: route.title), isPresented: Binding(get: { buyAsk != nil }, set: { if !$0 { buyAsk = nil } }), titleVisibility: .visible) { diff --git a/mobile/ios/Backplane/DataViews.swift b/mobile/ios/Backplane/DataViews.swift index 8918282640..1fce688888 100644 --- a/mobile/ios/Backplane/DataViews.swift +++ b/mobile/ios/Backplane/DataViews.swift @@ -144,6 +144,15 @@ struct DataThreadsView: View { @State private var flash = "" // the project a link just opened @State private var newSwarm: String? // a project id: the New swarm sheet + // the home's tabs (HomeModel.swift), over a hub with sections: Inbox first, every time the app opens + @State private var tab: HomeTab = .inbox + @State private var searching = false + @FocusState private var searchFocus: Bool + private var sectioned: Bool { client.has("sections") && !client.sections.isEmpty } + private var bub: DBot? { client.bots.first { $0.uber && !$0.thread.isEmpty } } + private var inboxSections: [DSection] { client.sections.filter { Home.tab(section: $0.id, kind: $0.kind) == .inbox } } + private var benchSections: [DSection] { client.sections.filter { Home.tab(section: $0.id, kind: $0.kind) == .bench && !($0.id == "active" && $0.rows.isEmpty) } } + private var needsCount: Int { client.sections.first { $0.id == "needs" }?.count ?? 0 } /// the threads a project's list leaves out: bots' and, on a hub with swarms, the swarms' members (the swarm's row stands for them) private var botThreads: Set { let b = Set(client.bots.map(\.thread)) @@ -163,20 +172,28 @@ struct DataThreadsView: View { DataAlertsBanner(client: client) DataNoProviderBanner(client: client) if client.restartLine != .none { DataConnectionBanner(client: client) } - HStack(spacing: 8) { - if client.has("search") { - TextField(Tr.t("Search projects and threads"), text: $query).dmono(13).textInputAutocapitalization(.never).autocorrectionDisabled() - .padding(.horizontal, 10).frame(height: 36).dbox().accessibilityIdentifier("data.search") - } else { Spacer() } - Button { addingProject = true } label: { Image(systemName: "plus").frame(width: 36, height: 36).foregroundStyle(BackplaneDesign.dim) } - .accessibilityLabel(Tr.t("Add project")).accessibilityIdentifier("data.project.add") - }.padding(.horizontal, 10).padding(.vertical, 8) + // the tabs keep the list's whole height: Search is a button of the bar, its field here only while it is used; Add project is on the Bench + if !sectioned || searching { + HStack(spacing: 8) { + if client.has("search") { + TextField(Tr.t("Search projects and threads"), text: $query).dmono(13).textInputAutocapitalization(.never).autocorrectionDisabled() + .focused($searchFocus).padding(.horizontal, 10).frame(height: 40).dbox().accessibilityIdentifier("data.search") + } else { Spacer() } + if sectioned { + Button { query = ""; searching = false; searchFocus = false } label: { Image(systemName: "xmark").frame(width: 44, height: 40).foregroundStyle(BackplaneDesign.dim) } + .accessibilityLabel(Tr.t("Cancel")).accessibilityIdentifier("data.search.cancel") + } else { + Button { addingProject = true } label: { Image(systemName: "plus").frame(width: 36, height: 36).foregroundStyle(BackplaneDesign.dim) } + .accessibilityLabel(Tr.t("Add project")).accessibilityIdentifier("data.project.add") + } + }.padding(.horizontal, 10).padding(.vertical, 8) + } DataMachineChips(client: client) DLine() - if !client.locks.isEmpty && !(client.has("sections") && !client.sections.isEmpty) { DataLocksStrip(client: client, path: $path) } // (the sections leave the hub's locks out: backend work) + if !client.locks.isEmpty && !sectioned { DataLocksStrip(client: client, path: $path) } // (the sections leave the hub's locks out: backend work) if client.has("search"), !query.trimmingCharacters(in: .whitespaces).isEmpty { DataSearchResults(client: client, query: query, open: { path.append($0) }, openAt: { path.append($0) }) - } else { list } + } else if sectioned { tabs } else { list } } .background(BackplaneDesign.panel) .navigationBarTitleDisplayMode(.inline) @@ -194,10 +211,20 @@ struct DataThreadsView: View { BrandMark(size: 20, conn: client.conn == .online) Text(client.hubName.isEmpty ? "Backplane" : client.hubName).dmono(14, bold: true).foregroundStyle(BackplaneDesign.text).lineLimit(1).truncationMode(.middle) Image(systemName: "chevron.down").font(.system(size: 9)).foregroundStyle(BackplaneDesign.dim) - }.frame(maxWidth: 230, alignment: .leading) // a long hub name is cut, never pushing the Settings gear into the bar's More menu (iOS 26 folds both there) + }.frame(maxWidth: sectioned ? 150 : 230, alignment: .leading) // a long hub name is cut, never pushing the bar's buttons into its More menu (iOS 26 folds them there) }.accessibilityIdentifier("data.hub") }.dflat() - ToolbarItem(placement: .topBarTrailing) { + ToolbarItemGroup(placement: .topBarTrailing) { + // Bub is one press from every tab: its cat in the bar + if sectioned, let b = bub { + Button { path.append(b.thread) } label: { + if client.has("cats") { DBotCat(client: client, look: b.look, color: b.color, size: 28) } else { Text(verbatim: "@").dmono(16, bold: true).foregroundStyle(BackplaneDesign.accent) } + }.accessibilityLabel(b.name).accessibilityIdentifier("data.home.bub") + } + if sectioned && client.has("search") { + Button { searching = true; searchFocus = true } label: { Image(systemName: "magnifyingglass").foregroundStyle(BackplaneDesign.dim) } + .accessibilityLabel(Tr.t("Search")).accessibilityIdentifier("data.home.search") + } Button { path.append(DPage(name: "settings")) } label: { Image(systemName: "gearshape").foregroundStyle(BackplaneDesign.dim) } .accessibilityLabel(Tr.t("Settings")).accessibilityIdentifier("data.settings") }.dflat() @@ -266,21 +293,10 @@ struct DataThreadsView: View { } private var listBody: some View { List { - if client.projects.isEmpty && client.listsLoaded { - VStack(alignment: .leading, spacing: 10) { - Text(Tr.t("No projects yet")).dmono(14, bold: true) - Text(Tr.t("A project is a folder on your hub's computer. Add one to start a thread.")).dmono(12).foregroundStyle(BackplaneDesign.dim) - Button(Tr.t("Add a project")) { addingProject = true }.buttonStyle(DButton(primary: true)).accessibilityIdentifier("data.project.add.empty") - }.padding(14).dataRow() - } - ForEach(client.bots.filter { $0.uber && !$0.thread.isEmpty }) { b in botRow(b) } - if let away = client.home?.awayLine() { - Text(away.text).dmono(11).foregroundStyle(away.isError ? BackplaneDesign.bad : BackplaneDesign.dim) - .padding(.horizontal, 12).padding(.vertical, 6).frame(maxWidth: .infinity, alignment: .leading) - .background(BackplaneDesign.panel).dataRow().accessibilityIdentifier("data.home.away") - } - // a hub with sections (docs/ALWAYS-ON.md section 8): Needs you, Pinned, Active, the groups, Quiet, as it presents them; else every project - if client.has("sections") && !client.sections.isEmpty { sectionRows } else { + noProjects + bubRows + awayRow + // an older hub, with no sections: every project with its threads ForEach(client.projects) { p in projectHeader(p) if !shut.contains(p.id) { @@ -305,67 +321,164 @@ struct DataThreadsView: View { } } } - } // (no sections) - // Conversation history: the old Scratch chats. Its row opens or shuts the list; a chat that wants attention always has its row; nothing starts here - if client.history.count > 0 { - let open = client.historyOpen - Button { client.setHistory(open: !open) } label: { - HStack(spacing: 8) { - Image(systemName: open ? "chevron.down" : "chevron.right").font(.system(size: 11)).foregroundStyle(BackplaneDesign.dim).frame(width: 14) - Text(Tr.t(ThreadGroups.historyTitle(client.history.count)).uppercased()).dmono(12).foregroundStyle(BackplaneDesign.dim).lineLimit(1); Spacer(minLength: 0) - }.padding(.leading, 10).frame(height: 40).contentShape(Rectangle()) - }.buttonStyle(.plain).dataRow().accessibilityIdentifier("data.history") - ForEach(ThreadGroups.history(live: client.history.live, rows: client.history.threads, open: open)) { threadRow($0) } - if open && client.history.next != nil { - Button { Task { await client.loadHistory(more: true) } } label: { Text(Tr.t("More")).dmono(11).foregroundStyle(BackplaneDesign.faint).padding(.leading, 34).frame(height: 32) } - .buttonStyle(.plain).dataRow().accessibilityIdentifier("data.history.more") - } - } - let bots = client.bots.filter { !$0.uber && !$0.thread.isEmpty } - if !bots.isEmpty { DHeading(text: Tr.t("Bots")).padding(.leading, 12).padding(.top, 12).padding(.bottom, 4).dataRow(); ForEach(bots) { botRow($0) } } - if !client.rooms.isEmpty { - DHeading(text: Tr.t("Rooms")).padding(.leading, 12).padding(.top, 12).padding(.bottom, 4).dataRow() - ForEach(client.rooms) { r in - Button { path.append(r) } label: { sideRow("#", r.name, "room", r.mark) }.buttonStyle(.plain).dataRow().accessibilityIdentifier("data.room." + r.id) - // Delete room (a long press on a room the hub offers it for): asked first, then `room.delete` - .contextMenu { if r.delete { Button(Tr.t("Delete room"), systemImage: "trash", role: .destructive) { roomDelete = r } } } - } - } + historyRows + crewRows } .listStyle(.plain).scrollContentBackground(.hidden).environment(\.defaultMinListRowHeight, 1) .refreshable { await client.refresh() } } - /// The hub's sections, in its order: a section's head, then its threads (Needs you) or its projects, each with its visible threads under it. - @ViewBuilder private var sectionRows: some View { - ForEach(client.sections.filter { $0.kind != "bub" && !($0.id == "active" && $0.rows.isEmpty) }) { s in - DataSectionHead(s: s) { client.toggleSection(s.toggle) }.dataRow() - .contextMenu { if s.rename { Button(Tr.t("Rename group"), systemImage: "pencil") { groupTitle = s.title; renamingGroup = s.group } } } - if s.kind == "threads" { - // Needs you: the title has the row (no project name), and a stop says so by its dot; an ask keeps its red word - ForEach(s.rows) { r in - // a swarm that waits on the person opens the swarm's page - if let room = r.swarmRoom, let n = r.need { DataSwarmNeedRow(client: client, r: r, need: n, room: room, openRoom: { path.append(DSwarmRoute(id: room, name: r.title)) }, openThread: { path.append($0) }).dataRow() } - else if let room = r.swarmRoom { DataSectionThread(r: r) { _ in path.append(DSwarmRoute(id: room, name: r.title)) }.dataRow() } - else { DataSectionThread(r: r, quiet: r.want == "failed" || r.want == "stopped") { path.append($0) }.farHide(r, client).dataRow() } - } - } else { + // MARK: the home's tabs (a hub with sections): Inbox, Crew, Bench + + /// The three tabs, the system's own bar under them. Inbox carries how many wait on the person. + private var tabs: some View { + TabView(selection: $tab) { + inboxList.tabItem { Label(Tr.t("Inbox"), systemImage: "tray") }.tag(HomeTab.inbox).badge(needsCount) + crewList.tabItem { Label(Tr.t("Crew"), systemImage: "person.2") }.tag(HomeTab.crew) + benchList.tabItem { Label(Tr.t("Bench"), systemImage: "square.grid.2x2") }.tag(HomeTab.bench) + } + .toolbarBackground(BackplaneDesign.panel, for: .tabBar).toolbarBackground(.visible, for: .tabBar) + // a project link: the Bench, and its page + .onChange(of: client.focusProject, initial: true) { _, id in + guard !id.isEmpty else { return } + client.focusProject = ""; tab = .bench + if let r = client.sections.flatMap(\.rows).first(where: { $0.isProject && $0.id == id }) { path.append(DProjectRoute(key: r.key, title: r.title)) } + } + } + /// Inbox: Needs you, Running and Snoozed as the hub lists them. A row swipes left to snooze and right to settle. With nothing to need the + /// person and nothing running it says so, and offers Bub and the projects the person was in last. + private var inboxList: some View { + List { + awayRow + if !inboxSections.contains(where: { $0.id != "snoozed" }) { allClear } + ForEach(inboxSections) { s in + DataSectionHead(s: s) { client.toggleSection(s.toggle) }.dataRow() + ForEach(s.rows) { r in inboxRow(r) } + } + } + .listStyle(.plain).scrollContentBackground(.hidden).environment(\.defaultMinListRowHeight, 1) + .refreshable { await client.refresh() }.accessibilityIdentifier("data.home.inbox") + } + @ViewBuilder private func inboxRow(_ r: DSecRow) -> some View { + // a swarm that waits on the person opens the swarm's page + if let room = r.swarmRoom, let n = r.need { DataSwarmNeedRow(client: client, r: r, need: n, room: room, openRoom: { path.append(DSwarmRoute(id: room, name: r.title)) }, openThread: { path.append($0) }).dataRow() } + else if let room = r.swarmRoom { DataSectionThread(r: r, showProject: true) { _ in path.append(DSwarmRoute(id: room, name: r.title)) }.dataRow() } + else { DataSectionThread(r: r, showProject: true) { path.append($0) }.farHide(r, client).rowSwipes(r, client).dataRow() } + } + @ViewBuilder private var allClear: some View { + VStack(alignment: .leading, spacing: 10) { + HStack(spacing: 8) { + Image(systemName: "checkmark").font(.system(size: 14, weight: .bold)).foregroundStyle(BackplaneDesign.ok) + Text(Tr.t("All clear")).dmono(16, bold: true).foregroundStyle(BackplaneDesign.text) + } + Text(Tr.t("Nothing needs you and nothing is running.")).dmono(12).foregroundStyle(BackplaneDesign.dim) + HStack(spacing: 8) { + if let b = bub { Button(Tr.t("Talk to Bub")) { path.append(b.thread) }.buttonStyle(DButton(primary: true)).accessibilityIdentifier("data.inbox.bub") } + Button(Tr.t("Open Bench")) { tab = .bench }.buttonStyle(DButton()).accessibilityIdentifier("data.inbox.bench") + }.padding(.top, 4) + }.padding(.horizontal, 14).padding(.vertical, 18).frame(maxWidth: .infinity, alignment: .leading).dataRow().accessibilityIdentifier("data.inbox.clear") + // the projects the person was in last (the hub's Pinned, then Recent): three, a thumb away + let jump = Array(benchSections.filter { $0.id == "pinned" || $0.id == "active" }.flatMap(\.rows).prefix(3)) + if !jump.isEmpty { + DHeading(text: Tr.t("Jump back in")).padding(.leading, 14).padding(.top, 10).padding(.bottom, 4).dataRow() + ForEach(jump) { r in projectRow(r, tall: true) } + } + } + /// Crew: Bub, the bots and the rooms, then the old chats with no project. + private var crewList: some View { + List { + bubRows + awayRow + crewRows + historyRows + } + .listStyle(.plain).scrollContentBackground(.hidden).environment(\.defaultMinListRowHeight, 1) + .refreshable { await client.refresh() }.accessibilityIdentifier("data.home.crew") + } + /// Bench: the projects as the hub sections them. Pinned and Recent (the ones the person was in last) are tall rows on top; the groups, All + /// projects and Quiet are folds under them, so no one scrolls through every project to reach a board. + private var benchList: some View { + List { + noProjects + Button { addingProject = true } label: { + HStack(spacing: 8) { Image(systemName: "plus").font(.system(size: 13)).frame(width: 20); Text(Tr.t("Add project")).dmono(13); Spacer(minLength: 0) } + .foregroundStyle(BackplaneDesign.accent).padding(.leading, 14).padding(.trailing, 12).frame(minHeight: 44).contentShape(Rectangle()) + }.buttonStyle(.plain).dataRow().accessibilityIdentifier("data.project.add") + ForEach(benchSections) { s in + DataSectionHead(s: s) { client.toggleSection(s.toggle) }.dataRow() + .contextMenu { if s.rename { Button(Tr.t("Rename group"), systemImage: "pencil") { groupTitle = s.title; renamingGroup = s.group } } } ForEach(s.rows) { r in - Button { path.append(DProjectRoute(key: r.key, title: r.title)) } label: { DataSectionProject(r: r, faded: s.id == "quiet" || s.id == "archived") { Task { await client.sidebarAct(r.fold, r.key) } } } - .buttonStyle(.plain).dataRow().accessibilityIdentifier("data.section.project." + r.key) - .contextMenu { if !r.menu.isEmpty { sectionMenu(r) } else { - Button(Tr.t(r.pinned ? "Unpin project" : "Pin project"), systemImage: "pin") { Task { await client.sidebarAct("project-pin", r.key) } } - if let p = client.projects.first(where: { $0.id == r.id }) { Button(Tr.t("Badge"), systemImage: "paintpalette") { badgeProject = p } } - if client.has("swarm") { Button(Tr.ios_swarm_new_in(project: r.title), systemImage: "circle.hexagongrid") { newSwarm = r.id } } - ForEach(client.groupsTo, id: \.value) { g in Button(Tr.gpui_sections_move_to(group: g.label)) { Task { await client.sidebarAct("group-move", r.key + "\u{1f}" + g.value) } } } - } } + projectRow(r, faded: s.id == "quiet" || s.id == "archived", tall: s.id == "pinned" || s.id == "active") // its live swarms (the client's own rows, feature swarm), above its threads; their members have no rows if client.has("swarm") && !r.folded { ForEach(Swarm.listed(client.swarms, project: r.id).filter { x in !(client.sections.first { $0.id == "needs" }?.rows.contains { $0.swarmRoom == x.id } ?? false) }) { x in DataSwarmRow(row: x) { path.append(DSwarmRoute(id: x.id, name: x.name)) }.dataRow() } } - ForEach(r.threads) { t in DataSectionThread(r: t, indent: 34) { path.append($0) }.farHide(t, client).dataRow() } + ForEach(r.threads) { t in DataSectionThread(r: t, indent: 36) { path.append($0) }.farHide(t, client).rowSwipes(t, client).dataRow() } } } } + .listStyle(.plain).scrollContentBackground(.hidden).environment(\.defaultMinListRowHeight, 1) + .refreshable { await client.refresh() }.accessibilityIdentifier("data.home.bench") + } + /// A project row of the Bench (and of the Inbox's Jump back in): a press opens its page, a long press its menu. + private func projectRow(_ r: DSecRow, faded: Bool = false, tall: Bool = false) -> some View { + Button { path.append(DProjectRoute(key: r.key, title: r.title)) } label: { DataSectionProject(r: r, faded: faded, tall: tall) { Task { await client.sidebarAct(r.fold, r.key) } } } + .buttonStyle(.plain).dataRow().accessibilityIdentifier("data.section.project." + r.key) + .contextMenu { if !r.menu.isEmpty { sectionMenu(r) } else { + Button(Tr.t(r.pinned ? "Unpin project" : "Pin project"), systemImage: "pin") { Task { await client.sidebarAct("project-pin", r.key) } } + if let p = client.projects.first(where: { $0.id == r.id }) { Button(Tr.t("Badge"), systemImage: "paintpalette") { badgeProject = p } } + if client.has("swarm") { Button(Tr.ios_swarm_new_in(project: r.title), systemImage: "circle.hexagongrid") { newSwarm = r.id } } + ForEach(client.groupsTo, id: \.value) { g in Button(Tr.gpui_sections_move_to(group: g.label)) { Task { await client.sidebarAct("group-move", r.key + "\u{1f}" + g.value) } } } + } } + } + + // MARK: rows both the tabs and an older hub's one list draw + + @ViewBuilder private var noProjects: some View { + if client.projects.isEmpty && client.listsLoaded { + VStack(alignment: .leading, spacing: 10) { + Text(Tr.t("No projects yet")).dmono(14, bold: true) + Text(Tr.t("A project is a folder on your hub's computer. Add one to start a thread.")).dmono(12).foregroundStyle(BackplaneDesign.dim) + Button(Tr.t("Add a project")) { addingProject = true }.buttonStyle(DButton(primary: true)).accessibilityIdentifier("data.project.add.empty") + }.padding(14).dataRow() + } + } + @ViewBuilder private var bubRows: some View { ForEach(client.bots.filter { $0.uber && !$0.thread.isEmpty }) { b in botRow(b) } } + @ViewBuilder private var awayRow: some View { + if let away = client.home?.awayLine() { + Text(away.text).dmono(11).foregroundStyle(away.isError ? BackplaneDesign.bad : BackplaneDesign.dim) + .padding(.horizontal, 12).padding(.vertical, 6).frame(maxWidth: .infinity, alignment: .leading) + .background(BackplaneDesign.panel).dataRow().accessibilityIdentifier("data.home.away") + } + } + /// Conversation history: the old Scratch chats. Its row opens or shuts the list; a chat that wants attention always has its row; nothing starts here + @ViewBuilder private var historyRows: some View { + if client.history.count > 0 { + let open = client.historyOpen + Button { client.setHistory(open: !open) } label: { + HStack(spacing: 8) { + Image(systemName: open ? "chevron.down" : "chevron.right").font(.system(size: 11)).foregroundStyle(BackplaneDesign.dim).frame(width: 14) + Text(Tr.t(ThreadGroups.historyTitle(client.history.count)).uppercased()).dmono(12).foregroundStyle(BackplaneDesign.dim).lineLimit(1); Spacer(minLength: 0) + }.padding(.leading, 10).frame(height: 44).contentShape(Rectangle()) + }.buttonStyle(.plain).dataRow().accessibilityIdentifier("data.history") + ForEach(ThreadGroups.history(live: client.history.live, rows: client.history.threads, open: open)) { threadRow($0) } + if open && client.history.next != nil { + Button { Task { await client.loadHistory(more: true) } } label: { Text(Tr.t("More")).dmono(11).foregroundStyle(BackplaneDesign.faint).padding(.leading, 34).frame(height: 32) } + .buttonStyle(.plain).dataRow().accessibilityIdentifier("data.history.more") + } + } } + @ViewBuilder private var crewRows: some View { + let bots = client.bots.filter { !$0.uber && !$0.thread.isEmpty } + if !bots.isEmpty { DHeading(text: Tr.t("Bots")).padding(.leading, 12).padding(.top, 12).padding(.bottom, 4).dataRow(); ForEach(bots) { botRow($0) } } + if !client.rooms.isEmpty { + DHeading(text: Tr.t("Rooms")).padding(.leading, 12).padding(.top, 12).padding(.bottom, 4).dataRow() + ForEach(client.rooms) { r in + Button { path.append(r) } label: { sideRow("#", r.name, "room", r.mark) }.buttonStyle(.plain).dataRow().accessibilityIdentifier("data.room." + r.id) + // Delete room (a long press on a room the hub offers it for): asked first, then `room.delete` + .contextMenu { if r.delete { Button(Tr.t("Delete room"), systemImage: "trash", role: .destructive) { roomDelete = r } } } + } + } + } + /// A project row's long press: the hub's menu (SectionMenu.swift), Move to group a submenu of the other groups and New group…; Remove asks /// first (the project leaves Backplane's list, its folder and files stay). @ViewBuilder private func sectionMenu(_ r: DSecRow) -> some View { @@ -396,7 +509,7 @@ struct DataThreadsView: View { Text(b.name).dmono(13).foregroundStyle(BackplaneDesign.text).lineLimit(1); Spacer() if let m = b.mark { Text(dAway(m.short, m.away)).dmono(11).foregroundStyle(BackplaneDesign.faint) } Text(Tr.t(!b.note.isEmpty ? b.note : b.uber ? "uberbot" : "bot")).dmono(11).foregroundStyle(BackplaneDesign.faint) - }.padding(.horizontal, 12).padding(.vertical, b.uber ? 4 : 2).frame(minHeight: 40).contentShape(Rectangle()) + }.padding(.horizontal, 12).padding(.vertical, b.uber ? 4 : 2).frame(minHeight: 48).contentShape(Rectangle()) } private func sideRow(_ sigil: String, _ name: String, _ detail: String, _ mark: DMark? = nil) -> some View { HStack(spacing: 8) { @@ -404,7 +517,7 @@ struct DataThreadsView: View { Text(name).dmono(13).foregroundStyle(BackplaneDesign.text).lineLimit(1); Spacer() if let m = mark { Text(dAway(m.short, m.away)).dmono(11).foregroundStyle(BackplaneDesign.faint) } Text(Tr.t(detail)).dmono(11).foregroundStyle(BackplaneDesign.faint) - }.padding(.horizontal, 12).frame(minHeight: 40).contentShape(Rectangle()) + }.padding(.horizontal, 12).frame(minHeight: 48).contentShape(Rectangle()) } private func botRow(_ b: DBot) -> some View { Button { path.append(b.thread) } label: { diff --git a/mobile/ios/Backplane/HomeModel.swift b/mobile/ios/Backplane/HomeModel.swift new file mode 100644 index 0000000000..017545ca13 --- /dev/null +++ b/mobile/ios/Backplane/HomeModel.swift @@ -0,0 +1,70 @@ +import Foundation + +// The phone's home (docs/ALWAYS-ON.md section 8 on a phone): three tabs over the hub's sections (present/sections.rs through data/1 +// `sidebar.sections`). Inbox is what needs the person, what runs and what they put off; Crew is Bub, the bots and the rooms; Bench is the +// projects. The hub decides what is in each section; this file only says which tab draws it and how a row's status reads. No SwiftUI here: +// HomeModelTests compiles it alone. The same rules as the Android app's HomeModel.kt. + +enum HomeTab: String, CaseIterable { case inbox, crew, bench } + +/// One span a row can be snoozed for, the hub's (`snooze`): `value` goes back as it came (`sidebar.act` `row-snooze`). +struct DSnoozeOpt: Decodable, Equatable, Identifiable { + var label: String; var value: String + var id: String { value } + enum CodingKeys: String, CodingKey { case label, value } + init(label: String, value: String) { self.label = label; self.value = value } + init(from d: Decoder) throws { + let c = try d.container(keyedBy: CodingKeys.self) + label = (try? c.decode(String.self, forKey: .label)) ?? ""; value = (try? c.decode(String.self, forKey: .value)) ?? "" + } +} + +/// A row's status as a word with an icon: `label` is the hub's English word (the catalog translates it), `tone` one of bad, run, wait, ok. +struct HomePill: Equatable { var label: String; var tone: String; var symbol: String } + +enum Home { + /// The sections of the Inbox tab, in the hub's order. + static let inbox: Set = ["needs", "running", "snoozed"] + static func tab(section id: String, kind: String) -> HomeTab? { + if kind == "bub" { return .crew } + if inbox.contains(id) { return .inbox } + return kind == "projects" ? .bench : (kind == "threads" ? .inbox : nil) + } + /// The hub's `badge` (sections.rs) for a hub that sends no `label`: the same table, so an older hub's rows read alike. + static func badge(word: String, want: String) -> (label: String, tone: String) { + switch (word, want) { + case ("needs", "approval"): return ("Approve", "bad") + case ("needs", "sign-in"): return ("Sign in", "bad") + case ("needs", "failed"): return ("Failed", "bad") + case ("needs", "stopped"): return ("Stopped", "bad") + case ("needs", _): return ("Input", "bad") + case ("failed", _): return ("Failed", "bad") + case ("cut", _), ("interrupted", _): return ("Stopped", "bad") + case ("running", _): return ("Working", "run") + case ("monitoring", _), ("limit", _): return ("Waiting", "wait") + case ("done", _): return ("Done", "ok") + default: return ("", "") + } + } + /// The SF Symbol beside a status word. + static func symbol(_ label: String) -> String { + switch label { + case "Approve": return "exclamationmark" + case "Input": return "questionmark" + case "Sign in": return "key.fill" + case "Failed": return "xmark" + case "Stopped": return "stop.fill" + case "Working": return "arrow.triangle.2.circlepath" + case "Waiting": return "clock" + case "Done": return "checkmark" + default: return "circle" + } + } + /// A row's pill: the hub's `label` and `tone`, else what its `word` and `want` say; nil for a row with nothing to say (idle). + static func pill(label: String, tone: String, word: String, want: String) -> HomePill? { + let b = label.isEmpty ? badge(word: word, want: want) : (label: label, tone: tone.isEmpty ? "wait" : tone) + return b.label.isEmpty ? nil : HomePill(label: b.label, tone: b.tone, symbol: symbol(b.label)) + } + /// The hub's span value of a row's first snooze option with this suffix ("1h", "tomorrow", "1w"); nil when the row cannot be snoozed. + static func span(_ opts: [DSnoozeOpt], _ suffix: String) -> String? { opts.first { $0.value.hasSuffix("|" + suffix) }?.value } +} diff --git a/mobile/ios/Tests/HomeModelTests.swift b/mobile/ios/Tests/HomeModelTests.swift new file mode 100644 index 0000000000..032dc9c4c6 --- /dev/null +++ b/mobile/ios/Tests/HomeModelTests.swift @@ -0,0 +1,38 @@ +// The home's rules (Backplane/HomeModel.swift) against the hub's sections (native/host/src/present/sections.rs `build`, `badge`, `snooze_of`). +// Compiled with HomeModel.swift alone, outside the app: scripts/mobile/ios-unit-tests.sh. +import Foundation + +var failed = 0, passed = 0 +func check(_ ok: Bool, _ name: String, _ got: Any = "") { if ok { passed += 1 } else { failed += 1; print("FAIL \(name): got \(got)") } } + +// which tab draws a section: the hub's ids and kinds +check(Home.tab(section: "needs", kind: "threads") == .inbox && Home.tab(section: "running", kind: "threads") == .inbox && Home.tab(section: "snoozed", kind: "threads") == .inbox, "Needs you, Running and Snoozed are the Inbox") +for id in ["pinned", "active", "group:owner:github.com/acme", "all", "quiet"] { check(Home.tab(section: id, kind: "projects") == .bench, "a section of projects is the Bench", id) } +check(Home.tab(section: "bub", kind: "bub") == .crew, "Bub's row is the Crew's") +check(Home.tab(section: "later", kind: "threads") == .inbox, "a list of threads a newer hub adds is in the Inbox, never lost") +check(Home.tab(section: "x", kind: "chart") == nil, "an unknown kind is not drawn") + +// the status pill: the hub's label and tone as they come +check(Home.pill(label: "Approve", tone: "bad", word: "needs", want: "approval") == HomePill(label: "Approve", tone: "bad", symbol: "exclamationmark"), "the hub's label and tone") +check(Home.pill(label: "", tone: "", word: "idle", want: "") == nil, "an idle thread says nothing") +// an older hub sends no label: sections.rs `badge`'s table +let table: [(String, String, String, String)] = [("needs", "approval", "Approve", "bad"), ("needs", "sign-in", "Sign in", "bad"), ("needs", "question", "Input", "bad"), ("failed", "failed", "Failed", "bad"), + ("cut", "stopped", "Stopped", "bad"), ("interrupted", "stopped", "Stopped", "bad"), ("running", "", "Working", "run"), ("monitoring", "", "Waiting", "wait"), ("limit", "", "Waiting", "wait"), ("done", "", "Done", "ok")] +for (word, want, label, tone) in table { + let p = Home.pill(label: "", tone: "", word: word, want: want) + check(p?.label == label && p?.tone == tone, "\(word)/\(want) reads \(label)", p as Any) +} +// a swarm's row in Needs you has no label; its `want` says why +check(Home.pill(label: "", tone: "", word: "needs", want: "failed")?.label == "Failed", "a swarm whose member failed") +// every word the hub can say has its own icon +let labels = ["Approve", "Input", "Sign in", "Failed", "Stopped", "Working", "Waiting", "Done"] +check(Set(labels.map(Home.symbol)).count == labels.count && !labels.map(Home.symbol).contains("circle"), "one icon per word", labels.map(Home.symbol)) + +// snooze options decode as the hub sends them, and their values go back untouched +let opts = (try? JSONDecoder().decode([DSnoozeOpt].self, from: Data(#"[{"label":"1 hour","value":"t9|1h"},{"label":"Tomorrow","value":"t9|tomorrow"},{"label":"1 week","value":"t9|1w"}]"#.utf8))) ?? [] +check(opts.map(\.label) == ["1 hour", "Tomorrow", "1 week"] && opts.first?.value == "t9|1h", "the hub's spans", opts) +check(Home.span(opts, "tomorrow") == "t9|tomorrow" && Home.span(opts, "1y") == nil && Home.span([], "1h") == nil, "a span by its suffix") +check(((try? JSONDecoder().decode([DSnoozeOpt].self, from: Data("[{}]".utf8))) ?? []).first?.value == "", "missing fields are empty") + +print("home-model: \(passed) passed, \(failed) failed") +exit(failed == 0 ? 0 : 1) diff --git a/scripts/mobile/ios-unit-tests.sh b/scripts/mobile/ios-unit-tests.sh index 2c78009cd1..9193b9f93b 100755 --- a/scripts/mobile/ios-unit-tests.sh +++ b/scripts/mobile/ios-unit-tests.sh @@ -48,3 +48,4 @@ run hub-restart HubRestartTests.swift "" HubRestart.swift run file-fetch FileFetchTests.swift "" FileFetch.swift DataLinkGrammar.swift run plan-floorplanner PlanFloorplannerTests.swift "" PlanFloorplannerModel.swift sh "$ROOT/scripts/mobile/ios-outbox-test.sh" && echo "ok outbox" +run home-model HomeModelTests.swift "" HomeModel.swift From df65fb97820a49c5ef4d709df3c1b041514e5f36 Mon Sep 17 00:00:00 2001 From: i2cjak Date: Mon, 23 Nov 2026 02:52:38 -0500 Subject: [PATCH 4/6] Android: keep real status pill on Snoozed rows alongside Wakes-in subtitle --- .../src/main/java/dev/backplane/mobile/DataSections.kt | 7 ++++--- .../test/java/dev/backplane/mobile/MobileSectionsTest.kt | 9 ++++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/mobile/android/app/src/main/java/dev/backplane/mobile/DataSections.kt b/mobile/android/app/src/main/java/dev/backplane/mobile/DataSections.kt index e9cd159008..f6104a6b1e 100644 --- a/mobile/android/app/src/main/java/dev/backplane/mobile/DataSections.kt +++ b/mobile/android/app/src/main/java/dev/backplane/mobile/DataSections.kt @@ -100,9 +100,9 @@ enum class PillKind { APPROVE, INPUT, SIGN_IN, FAILED, STOPPED, WORKING, WAITING enum class PillTone { BAD, BAD_OUTLINE, RUN, WAIT, OK, DIM } data class StatusPillModel(val kind: PillKind, val label: String, val tone: PillTone) -/** Resolve the status pill for a thread/swarm row; returns null when idle with nothing to say. */ +/** Resolve the status pill for a thread/swarm row; returns null when idle with nothing to say. + * Snoozed rows keep their real status (Failed/Working/Done…) since the section header already says Snoozed and line 2 shows "Wakes in …". */ fun statusPillOf(r: DSecRow): StatusPillModel? { - if (r.wake.isNotEmpty()) return StatusPillModel(PillKind.SNOOZED, "Snoozed", PillTone.DIM) val rawLabel = r.label.trim() val rawTone = r.tone.trim() if (rawLabel.isNotEmpty()) { @@ -133,7 +133,7 @@ fun statusPillOf(r: DSecRow): StatusPillModel? { } return StatusPillModel(kind, rawLabel, tone) } - return when (r.word) { + val derived = when (r.word) { "needs" -> when (r.want) { "approval" -> StatusPillModel(PillKind.APPROVE, "Approve", PillTone.BAD) "sign-in" -> StatusPillModel(PillKind.SIGN_IN, "Sign in", PillTone.BAD) @@ -146,6 +146,7 @@ fun statusPillOf(r: DSecRow): StatusPillModel? { "done" -> StatusPillModel(PillKind.DONE, "Done", PillTone.OK) else -> null } + return derived ?: if (r.wake.isNotEmpty()) StatusPillModel(PillKind.SNOOZED, "Snoozed", PillTone.DIM) else null } /** Partition the hub's sections into the mobile-native Inbox and Bench tabs. Pure, unit-tested. */ diff --git a/mobile/android/app/src/test/java/dev/backplane/mobile/MobileSectionsTest.kt b/mobile/android/app/src/test/java/dev/backplane/mobile/MobileSectionsTest.kt index 08522ca8de..de699b62b2 100644 --- a/mobile/android/app/src/test/java/dev/backplane/mobile/MobileSectionsTest.kt +++ b/mobile/android/app/src/test/java/dev/backplane/mobile/MobileSectionsTest.kt @@ -35,11 +35,14 @@ class MobileSectionsTest { assertTrue(proj.hasSchematic) assertTrue(proj.pinned) - val snz = row("""{"id":"t2","title":"Old build","word":"done","label":"Done","tone":"ok","wake":"t2|off","ago":"3h"}""") + val snz = row("""{"id":"t2","title":"Old build","word":"failed","label":"Failed","tone":"bad","wake":"t2|off","ago":"3h"}""") assertEquals("t2|off", snz.wake) val pill = statusPillOf(snz)!! - assertEquals(PillKind.SNOOZED, pill.kind) - assertEquals(PillTone.DIM, pill.tone) + assertEquals(PillKind.FAILED, pill.kind) + assertEquals(PillTone.BAD_OUTLINE, pill.tone) + + val idleSnz = row("""{"id":"t3","title":"Idle snooze","word":"idle","wake":"t3|off","ago":"1h"}""") + assertEquals(StatusPillModel(PillKind.SNOOZED, "Snoozed", PillTone.DIM), statusPillOf(idleSnz)) } @Test fun resolvesHubLabelAndTonePills() { From bafc1b79329726bb71aa2bd7abdf74ed662dfa37 Mon Sep 17 00:00:00 2001 From: i2cjak Date: Mon, 23 Nov 2026 02:55:08 -0500 Subject: [PATCH 5/6] iOS home: a stop's pill is a red line, the lists keep the panel colour, BACKPLANE_TAB for checks Co-Authored-By: Claude Fable 5.2 --- mobile/ios/Backplane/DataSections.swift | 3 ++- mobile/ios/Backplane/DataViews.swift | 10 +++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/mobile/ios/Backplane/DataSections.swift b/mobile/ios/Backplane/DataSections.swift index 6a0b64d65c..7cb504e74d 100644 --- a/mobile/ios/Backplane/DataSections.swift +++ b/mobile/ios/Backplane/DataSections.swift @@ -90,7 +90,8 @@ struct DStatusPill: View { let pill: HomePill private var color: Color { switch pill.tone { case "bad": BackplaneDesign.bad; case "run": BackplaneDesign.accent; case "ok": BackplaneDesign.ok; default: BackplaneDesign.dim } } var body: some View { - let solid = pill.tone == "bad" + // solid when the person must act (approve, answer, sign in); a stop is red too, as a line: it waits for nobody + let solid = pill.tone == "bad" && pill.label != "Failed" && pill.label != "Stopped" HStack(spacing: 4) { Image(systemName: pill.symbol).font(.system(size: 10, weight: .bold)) Text(Tr.t(pill.label)).dmono(11, bold: true).lineLimit(1) diff --git a/mobile/ios/Backplane/DataViews.swift b/mobile/ios/Backplane/DataViews.swift index 1fce688888..4144b7ec0d 100644 --- a/mobile/ios/Backplane/DataViews.swift +++ b/mobile/ios/Backplane/DataViews.swift @@ -338,6 +338,10 @@ struct DataThreadsView: View { benchList.tabItem { Label(Tr.t("Bench"), systemImage: "square.grid.2x2") }.tag(HomeTab.bench) } .toolbarBackground(BackplaneDesign.panel, for: .tabBar).toolbarBackground(.visible, for: .tabBar) + #if DEBUG + // a check without hands: BACKPLANE_TAB opens on a tab (inbox, crew, bench) + .task { if let t = ProcessInfo.processInfo.environment["BACKPLANE_TAB"], let h = HomeTab(rawValue: t) { tab = h } } + #endif // a project link: the Bench, and its page .onChange(of: client.focusProject, initial: true) { _, id in guard !id.isEmpty else { return } @@ -357,7 +361,7 @@ struct DataThreadsView: View { } } .listStyle(.plain).scrollContentBackground(.hidden).environment(\.defaultMinListRowHeight, 1) - .refreshable { await client.refresh() }.accessibilityIdentifier("data.home.inbox") + .background(BackplaneDesign.panel).refreshable { await client.refresh() }.accessibilityIdentifier("data.home.inbox") } @ViewBuilder private func inboxRow(_ r: DSecRow) -> some View { // a swarm that waits on the person opens the swarm's page @@ -393,7 +397,7 @@ struct DataThreadsView: View { historyRows } .listStyle(.plain).scrollContentBackground(.hidden).environment(\.defaultMinListRowHeight, 1) - .refreshable { await client.refresh() }.accessibilityIdentifier("data.home.crew") + .background(BackplaneDesign.panel).refreshable { await client.refresh() }.accessibilityIdentifier("data.home.crew") } /// Bench: the projects as the hub sections them. Pinned and Recent (the ones the person was in last) are tall rows on top; the groups, All /// projects and Quiet are folds under them, so no one scrolls through every project to reach a board. @@ -416,7 +420,7 @@ struct DataThreadsView: View { } } .listStyle(.plain).scrollContentBackground(.hidden).environment(\.defaultMinListRowHeight, 1) - .refreshable { await client.refresh() }.accessibilityIdentifier("data.home.bench") + .background(BackplaneDesign.panel).refreshable { await client.refresh() }.accessibilityIdentifier("data.home.bench") } /// A project row of the Bench (and of the Inbox's Jump back in): a press opens its page, a long press its menu. private func projectRow(_ r: DSecRow, faded: Bool = false, tall: Bool = false) -> some View { From 640332e355d31274e8a1371c51a64795efcca120 Mon Sep 17 00:00:00 2001 From: i2cjak Date: Mon, 23 Nov 2026 03:51:18 -0500 Subject: [PATCH 6/6] iOS: DShellSyncReply beside DSections, so the wire test compiles DataModels.swift alone again The iOS job's unit tests stopped at wire-json (cannot find type 'DSections'), so nothing after it ran. Co-Authored-By: Claude Fable 5.2 --- mobile/ios/Backplane/DataModels.swift | 18 ------------------ mobile/ios/Backplane/DataSections.swift | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/mobile/ios/Backplane/DataModels.swift b/mobile/ios/Backplane/DataModels.swift index 1e1af202b2..6ead57bd0d 100644 --- a/mobile/ios/Backplane/DataModels.swift +++ b/mobile/ios/Backplane/DataModels.swift @@ -568,24 +568,6 @@ struct DHome: Decodable, Equatable { } } } -struct DShellSyncReply: Decodable { - let sub: Int - let projects: [DProject]? - let threads: [DThread]? - let removed: [String]? - let sections: DSections? - let h: [String: String]? - enum CodingKeys: String, CodingKey { case sub, projects, threads, removed, sections, h } - init(from d: Decoder) throws { - let c = try d.container(keyedBy: CodingKeys.self) - sub = (try? c.decode(Int.self, forKey: .sub)) ?? 0 - projects = try? c.decode([DProject].self, forKey: .projects) - threads = try? c.decode([DThread].self, forKey: .threads) - removed = try? c.decode([String].self, forKey: .removed) - sections = try? c.decode(DSections.self, forKey: .sections) - h = try? c.decode([String: String].self, forKey: .h) - } -} struct DThreadOpenReply: Decodable { let sub: Int let thread: DThread? diff --git a/mobile/ios/Backplane/DataSections.swift b/mobile/ios/Backplane/DataSections.swift index 7cb504e74d..a66e505c5e 100644 --- a/mobile/ios/Backplane/DataSections.swift +++ b/mobile/ios/Backplane/DataSections.swift @@ -67,6 +67,25 @@ struct DProjectPage: Decodable, Equatable { var key: String; var sections: [DSec struct DSections: Decodable { var sections: [DSection]; var groupsTo: [DGroupTo]; var page: DProjectPage? enum CodingKeys: String, CodingKey { case sections, groupsTo, page } init(from d: Decoder) throws { let c = try d.container(keyedBy: CodingKeys.self); sections = (try? c.decode([DSection].self, forKey: .sections)) ?? []; groupsTo = (try? c.decode([DGroupTo].self, forKey: .groupsTo)) ?? []; page = try? c.decode(DProjectPage.self, forKey: .page) } } +// (here, beside DSections: DataModels.swift is compiled without this file by the wire test, scripts/mobile/ios-unit-tests.sh) +struct DShellSyncReply: Decodable { + let sub: Int + let projects: [DProject]? + let threads: [DThread]? + let removed: [String]? + let sections: DSections? + let h: [String: String]? + enum CodingKeys: String, CodingKey { case sub, projects, threads, removed, sections, h } + init(from d: Decoder) throws { + let c = try d.container(keyedBy: CodingKeys.self) + sub = (try? c.decode(Int.self, forKey: .sub)) ?? 0 + projects = try? c.decode([DProject].self, forKey: .projects) + threads = try? c.decode([DThread].self, forKey: .threads) + removed = try? c.decode([String].self, forKey: .removed) + sections = try? c.decode(DSections.self, forKey: .sections) + h = try? c.decode([String: String].self, forKey: .h) + } +} /// A project's page on the navigation stack: its key and name. struct DProjectRoute: Hashable { var key: String; var title: String }