@dylanpiercey/work 0.0.184 → 0.0.185

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (302) hide show
  1. package/README.md +8 -8
  2. package/bin/work.mjs +4 -3
  3. package/dist/index.mjs +917 -929
  4. package/dist/public/assets/{_Dk6CAjdI.js → _-5tCNl93.js} +1 -1
  5. package/dist/public/assets/_-5tCNl93.js.br +0 -0
  6. package/dist/public/assets/{_D3P02MlY.js → _0Mm9GFCP.js} +1 -1
  7. package/dist/public/assets/_0Mm9GFCP.js.br +0 -0
  8. package/dist/public/assets/{_Clp7X-2W.js → _4d-Sm1gY.js} +1 -1
  9. package/dist/public/assets/_4d-Sm1gY.js.br +0 -0
  10. package/dist/public/assets/{_BDHmzVwb.js → _ADlCbkif.js} +1 -1
  11. package/dist/public/assets/_ADlCbkif.js.br +0 -0
  12. package/dist/public/assets/{_CPoFjDtz.js → _B0CC6sqa.js} +1 -1
  13. package/dist/public/assets/_B0CC6sqa.js.br +0 -0
  14. package/dist/public/assets/_B1y8rj-7.js +1 -0
  15. package/dist/public/assets/{_Dlo6LkwP.js → _B3K259mL.js} +1 -1
  16. package/dist/public/assets/_B3K259mL.js.br +0 -0
  17. package/dist/public/assets/{_Coeyfi50.js → _BBNHyGIF.js} +1 -1
  18. package/dist/public/assets/_BBNHyGIF.js.br +0 -0
  19. package/dist/public/assets/{_516BLrGX.js → _BCKpHeZw.js} +1 -1
  20. package/dist/public/assets/_BCKpHeZw.js.br +0 -0
  21. package/dist/public/assets/{_DWudthM-.js → _BDMle36d.js} +1 -1
  22. package/dist/public/assets/_BDMle36d.js.br +0 -0
  23. package/dist/public/assets/{_C_G8IpBR.js → _BJID-R4V.js} +1 -1
  24. package/dist/public/assets/_BJID-R4V.js.br +0 -0
  25. package/dist/public/assets/{_DXpTM9Vi.js → _BJSOcDi6.js} +1 -1
  26. package/dist/public/assets/_BJSOcDi6.js.br +0 -0
  27. package/dist/public/assets/{_DQoHlXvh.js → _BKnDcu3k.js} +1 -1
  28. package/dist/public/assets/_BKnDcu3k.js.br +0 -0
  29. package/dist/public/assets/{_CRSCK3l6.js → _BQXxcFDS.js} +1 -1
  30. package/dist/public/assets/_BQXxcFDS.js.br +0 -0
  31. package/dist/public/assets/{_CtfgHAJr.js → _BSi28d0u.js} +1 -1
  32. package/dist/public/assets/_BSi28d0u.js.br +0 -0
  33. package/dist/public/assets/{_DLbTveFp.js → _BWgX0Rl9.js} +1 -1
  34. package/dist/public/assets/_BWgX0Rl9.js.br +0 -0
  35. package/dist/public/assets/_BWsiIs86.js +1 -0
  36. package/dist/public/assets/{_OE_pAv7U.js → _BXxIc5J6.js} +1 -1
  37. package/dist/public/assets/_BXxIc5J6.js.br +0 -0
  38. package/dist/public/assets/{_CCGnzpyE.js → _BYZkri4Z.js} +1 -1
  39. package/dist/public/assets/_BYZkri4Z.js.br +0 -0
  40. package/dist/public/assets/{_DwaiIOlQ.js → _BbO_wV5S.js} +71 -69
  41. package/dist/public/assets/_BbO_wV5S.js.br +0 -0
  42. package/dist/public/assets/{_zEkM9ipN.js → _BcR_461f.js} +1 -1
  43. package/dist/public/assets/_BcR_461f.js.br +0 -0
  44. package/dist/public/assets/{_B9L--yXd.js → _BdcXOt2r.js} +1 -1
  45. package/dist/public/assets/_BdcXOt2r.js.br +0 -0
  46. package/dist/public/assets/{_BLRHnHr3.js → _BfKqoOx5.js} +1 -1
  47. package/dist/public/assets/_BfKqoOx5.js.br +0 -0
  48. package/dist/public/assets/_BjjDH4rP.js +1 -0
  49. package/dist/public/assets/_Bk1yEoPC.js +1 -0
  50. package/dist/public/assets/{_CGSpCxiD.js → _BoZzMac7.js} +1 -1
  51. package/dist/public/assets/_BoZzMac7.js.br +0 -0
  52. package/dist/public/assets/{_BVwXURXV.js → _BpEQS-Tt.js} +1 -1
  53. package/dist/public/assets/_BpEQS-Tt.js.br +0 -0
  54. package/dist/public/assets/_BseiPxat.js +1 -0
  55. package/dist/public/assets/_BseiPxat.js.br +0 -0
  56. package/dist/public/assets/{_DpdQcf3B.js → _Bwq5K8_J.js} +1 -1
  57. package/dist/public/assets/_Bwq5K8_J.js.br +0 -0
  58. package/dist/public/assets/{_atpdpPnT.js → _ByW_xtlh.js} +1 -1
  59. package/dist/public/assets/_ByW_xtlh.js.br +0 -0
  60. package/dist/public/assets/{_Xe_buWru.js → _ByzPjmsw.js} +21 -21
  61. package/dist/public/assets/_ByzPjmsw.js.br +0 -0
  62. package/dist/public/assets/{_8B0iE3yV.js → _C2nBb5CP.js} +1 -1
  63. package/dist/public/assets/_C2nBb5CP.js.br +0 -0
  64. package/dist/public/assets/{_ChhEzrHb.js → _C55UYvz4.js} +1 -1
  65. package/dist/public/assets/_C55UYvz4.js.br +0 -0
  66. package/dist/public/assets/_C6JZqb6J.js +1 -0
  67. package/dist/public/assets/{_BqLjoHDb.js → _CBk2E_zL.js} +1 -1
  68. package/dist/public/assets/_CBk2E_zL.js.br +0 -0
  69. package/dist/public/assets/{_C09s8ys-.js → _CC-NfYyw.js} +1 -1
  70. package/dist/public/assets/_CC-NfYyw.js.br +0 -0
  71. package/dist/public/assets/{_z5Tp63M6.js → _CFxVeBVO.js} +1 -1
  72. package/dist/public/assets/_CFxVeBVO.js.br +0 -0
  73. package/dist/public/assets/{_CYeZAktI.js → _CI8B3Xrh.js} +1 -1
  74. package/dist/public/assets/_CI8B3Xrh.js.br +0 -0
  75. package/dist/public/assets/_CIJ1bfqU.js +1 -0
  76. package/dist/public/assets/{_CrTMxI09.js → _CMmevR20.js} +1 -1
  77. package/dist/public/assets/_CMmevR20.js.br +0 -0
  78. package/dist/public/assets/{_CM5P028Z.js → _CNEF6FBJ.js} +1 -1
  79. package/dist/public/assets/_CNEF6FBJ.js.br +0 -0
  80. package/dist/public/assets/{_j5K9UQQ0.js → _CNEYCeek.js} +1 -1
  81. package/dist/public/assets/_CNEYCeek.js.br +0 -0
  82. package/dist/public/assets/{_DlJlr59K.js → _CPONtntO.js} +1 -1
  83. package/dist/public/assets/_CPONtntO.js.br +0 -0
  84. package/dist/public/assets/_CV0drzjr.js +1 -0
  85. package/dist/public/assets/{_D2Ka7B62.js → _CftDIFI5.js} +1 -1
  86. package/dist/public/assets/_CftDIFI5.js.br +0 -0
  87. package/dist/public/assets/{_Vcxhd9Me.js → _Cgw-EPzw.js} +1 -1
  88. package/dist/public/assets/_Cgw-EPzw.js.br +0 -0
  89. package/dist/public/assets/{_Dww6fe2G.js → _CltzDzco.js} +1 -1
  90. package/dist/public/assets/_CltzDzco.js.br +0 -0
  91. package/dist/public/assets/{_HHjGgi0e.js → _CnRyy5Jj.js} +1 -1
  92. package/dist/public/assets/{_CKzQAUqk.js → _CrP32d1R.js} +1 -1
  93. package/dist/public/assets/_CrP32d1R.js.br +0 -0
  94. package/dist/public/assets/{_ECtgMUpC.js → _Cu_oAf7t.js} +1 -1
  95. package/dist/public/assets/_Cu_oAf7t.js.br +0 -0
  96. package/dist/public/assets/{_CA86wzsA.js → _D47NgaEw.js} +1 -1
  97. package/dist/public/assets/_D47NgaEw.js.br +0 -0
  98. package/dist/public/assets/{_D2DUVmrK.js → _D5FDhIZT.js} +1 -1
  99. package/dist/public/assets/_D5FDhIZT.js.br +0 -0
  100. package/dist/public/assets/{_E64Ecc_G.js → _D7FzWYVi.js} +1 -1
  101. package/dist/public/assets/_D7FzWYVi.js.br +0 -0
  102. package/dist/public/assets/{_BpCRM3ny.js → _D8qjAqUk.js} +1 -1
  103. package/dist/public/assets/_D8qjAqUk.js.br +0 -0
  104. package/dist/public/assets/{_BkgfbJc9.js → _DAwZGLOS.js} +1 -1
  105. package/dist/public/assets/_DAwZGLOS.js.br +0 -0
  106. package/dist/public/assets/{_7ZQ1bcvQ.js → _DDg9KM0n.js} +1 -1
  107. package/dist/public/assets/_DDg9KM0n.js.br +0 -0
  108. package/dist/public/assets/{_Brf3ihv9.js → _DFs6QpsQ.js} +1 -1
  109. package/dist/public/assets/_DFs6QpsQ.js.br +0 -0
  110. package/dist/public/assets/_DG7KWs6U.js +1 -0
  111. package/dist/public/assets/{_CQJ4Ag1g.js → _DLefskTE.js} +1 -1
  112. package/dist/public/assets/_DLefskTE.js.br +0 -0
  113. package/dist/public/assets/{_dpBVLA_i.js → _DLhNUsN6.js} +1 -1
  114. package/dist/public/assets/_DLhNUsN6.js.br +0 -0
  115. package/dist/public/assets/{_D0p9tDcD.js → _DMmTrjfZ.js} +1 -1
  116. package/dist/public/assets/_DMmTrjfZ.js.br +0 -0
  117. package/dist/public/assets/{_C0jLRRGd.js → _DR_ldQmJ.js} +1 -1
  118. package/dist/public/assets/_DR_ldQmJ.js.br +0 -0
  119. package/dist/public/assets/_DSiIs0Ig.js +1 -0
  120. package/dist/public/assets/_DW1byTlq.js +1 -0
  121. package/dist/public/assets/_D_piPYBa.js +1 -0
  122. package/dist/public/assets/{_CpTbuk29.js → _DhywxfSZ.js} +1 -1
  123. package/dist/public/assets/_DhywxfSZ.js.br +0 -0
  124. package/dist/public/assets/{_Dipq1vU2.js → _DmbW0I7Q.js} +1 -1
  125. package/dist/public/assets/_DmbW0I7Q.js.br +0 -0
  126. package/dist/public/assets/_DvTFDN0Q.js +1 -0
  127. package/dist/public/assets/{_Ca1l-_ve.js → _Dxo-pWWr.js} +1 -1
  128. package/dist/public/assets/_Dxo-pWWr.js.br +0 -0
  129. package/dist/public/assets/{_BrhBcHNc.js → _DyzV2J4k.js} +1 -1
  130. package/dist/public/assets/_DyzV2J4k.js.br +0 -0
  131. package/dist/public/assets/{_DxtIw-r7.js → _DzmFzxqz.js} +1 -1
  132. package/dist/public/assets/_DzmFzxqz.js.br +0 -0
  133. package/dist/public/assets/{_CiGlRWH1.js → _F4Srrmbi.js} +1 -1
  134. package/dist/public/assets/{_C3bY4kl5.js → _GQOKKWci.js} +1 -1
  135. package/dist/public/assets/_GQOKKWci.js.br +0 -0
  136. package/dist/public/assets/{_DuXWKTn9.js → _Gm9AVBq0.js} +1 -1
  137. package/dist/public/assets/_Gm9AVBq0.js.br +0 -0
  138. package/dist/public/assets/_L0rJDnkZ.js +1 -0
  139. package/dist/public/assets/_MtOhrbzt.js +1 -0
  140. package/dist/public/assets/{_MkFj2NMq.js → _N6_nhNGL.js} +1 -1
  141. package/dist/public/assets/_N6_nhNGL.js.br +0 -0
  142. package/dist/public/assets/{_kNFFJLl0.js → _Qj0f-R2b.js} +1 -1
  143. package/dist/public/assets/_Qj0f-R2b.js.br +0 -0
  144. package/dist/public/assets/{_e0cRpaOA.js → _SFrS7o68.js} +1 -1
  145. package/dist/public/assets/_SFrS7o68.js.br +0 -0
  146. package/dist/public/assets/{_Bevux30L.js → _TSdplHsA.js} +1 -1
  147. package/dist/public/assets/_TSdplHsA.js.br +0 -0
  148. package/dist/public/assets/_TjuHlaDc.js +1 -0
  149. package/dist/public/assets/{_lIZw2vRt.js → _WGW8sg-k.js} +1 -1
  150. package/dist/public/assets/_WGW8sg-k.js.br +0 -0
  151. package/dist/public/assets/{_CbL4gBfT.js → __N880Hxt.js} +1 -1
  152. package/dist/public/assets/__N880Hxt.js.br +0 -0
  153. package/dist/public/assets/{_C7bp-lWn.js → _agyjP7Uj.js} +1 -1
  154. package/dist/public/assets/_agyjP7Uj.js.br +0 -0
  155. package/dist/public/assets/_eB128FLJ.js +1 -0
  156. package/dist/public/assets/_g4hUaUxI.js +1 -0
  157. package/dist/public/assets/_irNBIaMf.js +1 -0
  158. package/dist/public/assets/_m6146ncV.js +1 -0
  159. package/dist/public/assets/_m6146ncV.js.br +0 -0
  160. package/dist/public/assets/_mXSYxiYM.js +1 -0
  161. package/dist/public/assets/{_nGKje9l8.js → _nibOLXNi.js} +1 -1
  162. package/dist/public/assets/{_C9ZUrBp_.js → _oVjFbaTF.js} +1 -1
  163. package/dist/public/assets/_oVjFbaTF.js.br +0 -0
  164. package/dist/public/assets/{_ygR8LCaC.js → _p4Yzujwk.js} +1 -1
  165. package/dist/public/assets/_p4Yzujwk.js.br +0 -0
  166. package/dist/public/assets/{_C5F2LB0J.js → _pvT52zkB.js} +1 -1
  167. package/dist/public/assets/_pvT52zkB.js.br +0 -0
  168. package/dist/public/assets/_s7DOJdN7.js +1 -0
  169. package/dist/public/assets/{_F72-JU90.js → _t4-6A-E0.js} +1 -1
  170. package/dist/public/assets/_t4-6A-E0.js.br +0 -0
  171. package/dist/public/assets/_tWG0hs7a.js +1 -0
  172. package/dist/public/assets/{_CyuDJO5U.js → _u5cESBsx.js} +1 -1
  173. package/dist/public/assets/_u5cESBsx.js.br +0 -0
  174. package/dist/public/assets/{_Cooz7Zy5.js → _uScZOV5g.js} +1 -1
  175. package/dist/public/assets/_uScZOV5g.js.br +0 -0
  176. package/dist/public/assets/{_Dww-t9cr.js → _xBe_Ox2n.js} +1 -1
  177. package/dist/public/assets/_xBe_Ox2n.js.br +0 -0
  178. package/dist/public/assets/{_C5AzS7w_.js → _xknyEIJ-.js} +1 -1
  179. package/dist/public/assets/_xknyEIJ-.js.br +0 -0
  180. package/dist/public/assets/{app-page-BEEZP5zo.css → app-page-Cha1c_67.css} +1 -1
  181. package/dist/public/assets/app-page-Cha1c_67.css.br +0 -0
  182. package/dist/public/assets/{icon-arrow-down-o2Q8gX32.css → icon-arrow-down-DI50VkiK.css} +1 -1
  183. package/dist/public/assets/icon-arrow-down-DI50VkiK.css.br +0 -0
  184. package/dist/public/assets/new-C4cICu_O.js +1 -0
  185. package/dist/public/assets/review-view-CylGxAST.css +1 -0
  186. package/dist/public/assets/review-view-CylGxAST.css.br +0 -0
  187. package/dist/public/assets/review-view-ll27rTov.js +2 -0
  188. package/dist/public/assets/settings-C4cICu_O.js +1 -0
  189. package/dist/public/assets/w-C4cICu_O.js +1 -0
  190. package/dist/public/assets/w._-B9vMdqnq.js +1 -0
  191. package/dist/public/assets/w._-C4cICu_O.js +1 -0
  192. package/package.json +5 -5
  193. package/scripts/migrate.mjs +10 -4
  194. package/dist/public/assets/_516BLrGX.js.br +0 -0
  195. package/dist/public/assets/_7ZQ1bcvQ.js.br +0 -0
  196. package/dist/public/assets/_8B0iE3yV.js.br +0 -0
  197. package/dist/public/assets/_B9L--yXd.js.br +0 -0
  198. package/dist/public/assets/_B9sH-HZt.js +0 -1
  199. package/dist/public/assets/_BDHmzVwb.js.br +0 -0
  200. package/dist/public/assets/_BDmY4omz.js +0 -1
  201. package/dist/public/assets/_BLRHnHr3.js.br +0 -0
  202. package/dist/public/assets/_BMleZ3T1.js +0 -1
  203. package/dist/public/assets/_BUhDDilJ.js +0 -1
  204. package/dist/public/assets/_BVwXURXV.js.br +0 -0
  205. package/dist/public/assets/_BcCogonw.js +0 -1
  206. package/dist/public/assets/_Bevux30L.js.br +0 -0
  207. package/dist/public/assets/_BkgfbJc9.js.br +0 -0
  208. package/dist/public/assets/_BpCRM3ny.js.br +0 -0
  209. package/dist/public/assets/_BqLjoHDb.js.br +0 -0
  210. package/dist/public/assets/_Brf3ihv9.js.br +0 -0
  211. package/dist/public/assets/_BrhBcHNc.js.br +0 -0
  212. package/dist/public/assets/_Bss-BVMr.js +0 -1
  213. package/dist/public/assets/_Bu3NOTIR.js +0 -1
  214. package/dist/public/assets/_C09s8ys-.js.br +0 -0
  215. package/dist/public/assets/_C0jLRRGd.js.br +0 -0
  216. package/dist/public/assets/_C3bY4kl5.js.br +0 -0
  217. package/dist/public/assets/_C5AzS7w_.js.br +0 -0
  218. package/dist/public/assets/_C5F2LB0J.js.br +0 -0
  219. package/dist/public/assets/_C7bp-lWn.js.br +0 -0
  220. package/dist/public/assets/_C9ZUrBp_.js.br +0 -0
  221. package/dist/public/assets/_CA86wzsA.js.br +0 -0
  222. package/dist/public/assets/_CCGnzpyE.js.br +0 -0
  223. package/dist/public/assets/_CGSpCxiD.js.br +0 -0
  224. package/dist/public/assets/_CKzQAUqk.js.br +0 -0
  225. package/dist/public/assets/_CM5P028Z.js.br +0 -0
  226. package/dist/public/assets/_COVDrgRh.js +0 -1
  227. package/dist/public/assets/_CPoFjDtz.js.br +0 -0
  228. package/dist/public/assets/_CQJ4Ag1g.js.br +0 -0
  229. package/dist/public/assets/_CRSCK3l6.js.br +0 -0
  230. package/dist/public/assets/_CV_GGPNN.js +0 -1
  231. package/dist/public/assets/_CVgDVVCO.js +0 -1
  232. package/dist/public/assets/_CVgDVVCO.js.br +0 -0
  233. package/dist/public/assets/_CYeZAktI.js.br +0 -0
  234. package/dist/public/assets/_C_G8IpBR.js.br +0 -0
  235. package/dist/public/assets/_Ca1l-_ve.js.br +0 -0
  236. package/dist/public/assets/_CbL4gBfT.js.br +0 -0
  237. package/dist/public/assets/_CeAfNPeV.js +0 -1
  238. package/dist/public/assets/_ChhEzrHb.js.br +0 -0
  239. package/dist/public/assets/_CiPzkiaq.js +0 -1
  240. package/dist/public/assets/_Clp7X-2W.js.br +0 -0
  241. package/dist/public/assets/_Coeyfi50.js.br +0 -0
  242. package/dist/public/assets/_Cooz7Zy5.js.br +0 -0
  243. package/dist/public/assets/_CpTbuk29.js.br +0 -0
  244. package/dist/public/assets/_CrTMxI09.js.br +0 -0
  245. package/dist/public/assets/_CtfgHAJr.js.br +0 -0
  246. package/dist/public/assets/_CyuDJO5U.js.br +0 -0
  247. package/dist/public/assets/_D0p9tDcD.js.br +0 -0
  248. package/dist/public/assets/_D2DUVmrK.js.br +0 -0
  249. package/dist/public/assets/_D2Ka7B62.js.br +0 -0
  250. package/dist/public/assets/_D3P02MlY.js.br +0 -0
  251. package/dist/public/assets/_D6HCkd6p.js +0 -1
  252. package/dist/public/assets/_DLbTveFp.js.br +0 -0
  253. package/dist/public/assets/_DLolIAvl.js +0 -1
  254. package/dist/public/assets/_DM-ium3T.js +0 -1
  255. package/dist/public/assets/_DM-ium3T.js.br +0 -0
  256. package/dist/public/assets/_DQd-ev5r.js +0 -1
  257. package/dist/public/assets/_DQoHlXvh.js.br +0 -0
  258. package/dist/public/assets/_DSrC_h4J.js +0 -1
  259. package/dist/public/assets/_DWudthM-.js.br +0 -0
  260. package/dist/public/assets/_DXpTM9Vi.js.br +0 -0
  261. package/dist/public/assets/_DYSr-hH7.js +0 -1
  262. package/dist/public/assets/_DYXqkZWp.js +0 -1
  263. package/dist/public/assets/_Db3SwGry.js +0 -1
  264. package/dist/public/assets/_Dipq1vU2.js.br +0 -0
  265. package/dist/public/assets/_Dk6CAjdI.js.br +0 -0
  266. package/dist/public/assets/_DlJlr59K.js.br +0 -0
  267. package/dist/public/assets/_Dlo6LkwP.js.br +0 -0
  268. package/dist/public/assets/_DpdQcf3B.js.br +0 -0
  269. package/dist/public/assets/_DuXWKTn9.js.br +0 -0
  270. package/dist/public/assets/_DwaiIOlQ.js.br +0 -0
  271. package/dist/public/assets/_Dww-t9cr.js.br +0 -0
  272. package/dist/public/assets/_Dww6fe2G.js.br +0 -0
  273. package/dist/public/assets/_DxtIw-r7.js.br +0 -0
  274. package/dist/public/assets/_E64Ecc_G.js.br +0 -0
  275. package/dist/public/assets/_ECtgMUpC.js.br +0 -0
  276. package/dist/public/assets/_F72-JU90.js.br +0 -0
  277. package/dist/public/assets/_MkFj2NMq.js.br +0 -0
  278. package/dist/public/assets/_OE_pAv7U.js.br +0 -0
  279. package/dist/public/assets/_Vcxhd9Me.js.br +0 -0
  280. package/dist/public/assets/_Xe_buWru.js.br +0 -0
  281. package/dist/public/assets/_XqSyea2F.js +0 -1
  282. package/dist/public/assets/_YcAjEuMR.js +0 -1
  283. package/dist/public/assets/_atpdpPnT.js.br +0 -0
  284. package/dist/public/assets/_dpBVLA_i.js.br +0 -0
  285. package/dist/public/assets/_e0cRpaOA.js.br +0 -0
  286. package/dist/public/assets/_j5K9UQQ0.js.br +0 -0
  287. package/dist/public/assets/_kNFFJLl0.js.br +0 -0
  288. package/dist/public/assets/_lIZw2vRt.js.br +0 -0
  289. package/dist/public/assets/_rcvBMPjo.js +0 -1
  290. package/dist/public/assets/_ygR8LCaC.js.br +0 -0
  291. package/dist/public/assets/_z5Tp63M6.js.br +0 -0
  292. package/dist/public/assets/_zEkM9ipN.js.br +0 -0
  293. package/dist/public/assets/app-page-BEEZP5zo.css.br +0 -0
  294. package/dist/public/assets/icon-arrow-down-o2Q8gX32.css.br +0 -0
  295. package/dist/public/assets/new-C7VSRXTL.js +0 -1
  296. package/dist/public/assets/review-view-CBpY-Hxd.css +0 -1
  297. package/dist/public/assets/review-view-CBpY-Hxd.css.br +0 -0
  298. package/dist/public/assets/review-view-DZAfy74d.js +0 -2
  299. package/dist/public/assets/settings-C7VSRXTL.js +0 -1
  300. package/dist/public/assets/w-C7VSRXTL.js +0 -1
  301. package/dist/public/assets/w._-C7VSRXTL.js +0 -1
  302. package/dist/public/assets/w._-gvNRHjn_.js +0 -1
package/dist/index.mjs CHANGED
@@ -13,7 +13,7 @@ import fs$1 from "node:fs/promises";
13
13
  import crypto, { createHash } from "node:crypto";
14
14
  import net from "node:net";
15
15
  import pty from "node-pty";
16
- //#region node_modules/.pnpm/@marko+run@0.11.12_@types+node@26.6.1_esbuild@0.27.7_marko@6.3.51/node_modules/@marko/run/dist/adapter/middleware.js
16
+ //#region node_modules/.pnpm/@marko+run@0.11.12_@types+node@26.6.2_esbuild@0.27.7_marko@6.3.52/node_modules/@marko/run/dist/adapter/middleware.js
17
17
  function getOrigin(req, trustProxy) {
18
18
  const protocol = trustProxy && getForwardedHeader(req, "proto") || req.socket.encrypted && "https" || req.protocol || "http";
19
19
  let host = trustProxy && getForwardedHeader(req, "host") || req.headers.host;
@@ -131,7 +131,7 @@ var bodyConsumedErrorStream = new ReadableStream({ pull(controller) {
131
131
  controller.error(/* @__PURE__ */ new Error("The request body stream has been destroyed or consumed by something before Marko Run."));
132
132
  } });
133
133
  //#endregion
134
- //#region node_modules/.pnpm/@remix-run+headers@0.21.1/node_modules/@remix-run/headers/dist/lib/param-values.js
134
+ //#region node_modules/.pnpm/@remix-run+headers@0.21.2/node_modules/@remix-run/headers/dist/lib/param-values.js
135
135
  function parseParams(input, delimiter = ";") {
136
136
  let parser = delimiter === ";" ? /(?:^|;)\s*([^=;\s]+)(\s*=\s*(?:"((?:[^"\\]|\\.)*)"|((?:[^;]|\\;)+))?)?/g : /(?:^|,)\s*([^=,\s]+)(\s*=\s*(?:"((?:[^"\\]|\\.)*)"|((?:[^,]|\\,)+))?)?/g;
137
137
  let params = [];
@@ -149,7 +149,69 @@ function quote$1(value) {
149
149
  return value;
150
150
  }
151
151
  //#endregion
152
- //#region node_modules/.pnpm/@remix-run+headers@0.21.1/node_modules/@remix-run/headers/dist/lib/content-disposition.js
152
+ //#region node_modules/.pnpm/@remix-run+headers@0.21.2/node_modules/@remix-run/headers/dist/lib/content-type.js
153
+ /**
154
+ * The value of a `Content-Type` HTTP header.
155
+ *
156
+ * [MDN `Content-Type` Reference](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type)
157
+ *
158
+ * [HTTP/1.1 Specification](https://datatracker.ietf.org/doc/html/rfc7231#section-3.1.1.5)
159
+ */
160
+ var ContentType = class ContentType {
161
+ /**
162
+ * Multipart boundary parameter value.
163
+ */
164
+ boundary;
165
+ /**
166
+ * Character set parameter value.
167
+ */
168
+ charset;
169
+ /**
170
+ * Media type such as `text/html` or `application/json`.
171
+ */
172
+ mediaType;
173
+ constructor(init) {
174
+ if (init) return ContentType.from(init);
175
+ }
176
+ /**
177
+ * Returns the string representation of the header value.
178
+ *
179
+ * @returns The header value as a string
180
+ */
181
+ toString() {
182
+ if (!this.mediaType) return "";
183
+ let parts = [this.mediaType];
184
+ if (this.charset) parts.push(`charset=${quote$1(this.charset)}`);
185
+ if (this.boundary) parts.push(`boundary=${quote$1(this.boundary)}`);
186
+ return parts.join("; ");
187
+ }
188
+ /**
189
+ * Parse a Content-Type header value.
190
+ *
191
+ * @param value The header value (string, init object, or null)
192
+ * @returns A ContentType instance (empty if null)
193
+ */
194
+ static from(value) {
195
+ let header = new ContentType();
196
+ if (value !== null) {
197
+ if (typeof value === "string") {
198
+ let params = parseParams(value);
199
+ if (params.length > 0) {
200
+ header.mediaType = params[0][0];
201
+ for (let [name, val] of params.slice(1)) if (name === "boundary") header.boundary = val;
202
+ else if (name === "charset") header.charset = val;
203
+ }
204
+ } else {
205
+ header.boundary = value.boundary;
206
+ header.charset = value.charset;
207
+ header.mediaType = value.mediaType;
208
+ }
209
+ }
210
+ return header;
211
+ }
212
+ };
213
+ //#endregion
214
+ //#region node_modules/.pnpm/@remix-run+headers@0.21.2/node_modules/@remix-run/headers/dist/lib/content-disposition.js
153
215
  /**
154
216
  * The value of a `Content-Disposition` HTTP header.
155
217
  *
@@ -253,69 +315,7 @@ function percentDecode(value) {
253
315
  return value.replace(/%([0-9A-Fa-f]{2})/g, (_, hex) => String.fromCharCode(parseInt(hex, 16)));
254
316
  }
255
317
  //#endregion
256
- //#region node_modules/.pnpm/@remix-run+headers@0.21.1/node_modules/@remix-run/headers/dist/lib/content-type.js
257
- /**
258
- * The value of a `Content-Type` HTTP header.
259
- *
260
- * [MDN `Content-Type` Reference](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type)
261
- *
262
- * [HTTP/1.1 Specification](https://datatracker.ietf.org/doc/html/rfc7231#section-3.1.1.5)
263
- */
264
- var ContentType = class ContentType {
265
- /**
266
- * Multipart boundary parameter value.
267
- */
268
- boundary;
269
- /**
270
- * Character set parameter value.
271
- */
272
- charset;
273
- /**
274
- * Media type such as `text/html` or `application/json`.
275
- */
276
- mediaType;
277
- constructor(init) {
278
- if (init) return ContentType.from(init);
279
- }
280
- /**
281
- * Returns the string representation of the header value.
282
- *
283
- * @returns The header value as a string
284
- */
285
- toString() {
286
- if (!this.mediaType) return "";
287
- let parts = [this.mediaType];
288
- if (this.charset) parts.push(`charset=${quote$1(this.charset)}`);
289
- if (this.boundary) parts.push(`boundary=${quote$1(this.boundary)}`);
290
- return parts.join("; ");
291
- }
292
- /**
293
- * Parse a Content-Type header value.
294
- *
295
- * @param value The header value (string, init object, or null)
296
- * @returns A ContentType instance (empty if null)
297
- */
298
- static from(value) {
299
- let header = new ContentType();
300
- if (value !== null) {
301
- if (typeof value === "string") {
302
- let params = parseParams(value);
303
- if (params.length > 0) {
304
- header.mediaType = params[0][0];
305
- for (let [name, val] of params.slice(1)) if (name === "boundary") header.boundary = val;
306
- else if (name === "charset") header.charset = val;
307
- }
308
- } else {
309
- header.boundary = value.boundary;
310
- header.charset = value.charset;
311
- header.mediaType = value.mediaType;
312
- }
313
- }
314
- return header;
315
- }
316
- };
317
- //#endregion
318
- //#region node_modules/.pnpm/@remix-run+multipart-parser@0.16.4/node_modules/@remix-run/multipart-parser/dist/lib/buffer-search.js
318
+ //#region node_modules/.pnpm/@remix-run+multipart-parser@0.16.5/node_modules/@remix-run/multipart-parser/dist/lib/buffer-search.js
319
319
  function encodeAsciiPattern(pattern) {
320
320
  let bytes = new Uint8Array(pattern.length);
321
321
  for (let index = 0; index < pattern.length; ++index) bytes[index] = pattern.charCodeAt(index) & 255;
@@ -360,7 +360,7 @@ function createPartialTailSearch(pattern) {
360
360
  };
361
361
  }
362
362
  //#endregion
363
- //#region node_modules/.pnpm/@remix-run+multipart-parser@0.16.4/node_modules/@remix-run/multipart-parser/dist/lib/read-stream.js
363
+ //#region node_modules/.pnpm/@remix-run+multipart-parser@0.16.5/node_modules/@remix-run/multipart-parser/dist/lib/read-stream.js
364
364
  async function* readStream(stream) {
365
365
  let reader = stream.getReader();
366
366
  try {
@@ -374,7 +374,7 @@ async function* readStream(stream) {
374
374
  }
375
375
  }
376
376
  //#endregion
377
- //#region node_modules/.pnpm/@remix-run+multipart-parser@0.16.4/node_modules/@remix-run/multipart-parser/dist/lib/multipart.js
377
+ //#region node_modules/.pnpm/@remix-run+multipart-parser@0.16.5/node_modules/@remix-run/multipart-parser/dist/lib/multipart.js
378
378
  /**
379
379
  * The base class for errors thrown by the multipart parser.
380
380
  */
@@ -502,6 +502,7 @@ var MultipartParser = class {
502
502
  #boundaryLength;
503
503
  #boundaryBytes;
504
504
  #state = MultipartParserStateStart;
505
+ #atStartOfStream = true;
505
506
  #buffer = null;
506
507
  #currentHeader = null;
507
508
  #currentContent = null;
@@ -625,8 +626,22 @@ var MultipartParser = class {
625
626
  this.#buffer = chunk;
626
627
  break;
627
628
  }
628
- if (this.#findOpeningBoundary(chunk) !== 0) throw new MultipartParseError("Invalid multipart stream: missing initial boundary");
629
- index = this.#openingBoundaryLength;
629
+ if (this.#atStartOfStream && this.#findOpeningBoundary(chunk) === 0) {
630
+ index = this.#openingBoundaryLength;
631
+ this.#state = MultipartParserStateAfterBoundary;
632
+ continue;
633
+ }
634
+ let boundaryIndex = this.#findBoundary(chunk);
635
+ if (boundaryIndex === -1) {
636
+ let keep = this.#boundaryLength - 1;
637
+ if (chunkLength <= keep) this.#buffer = chunk;
638
+ else {
639
+ this.#atStartOfStream = false;
640
+ this.#buffer = chunk.subarray(chunkLength - keep);
641
+ }
642
+ break;
643
+ }
644
+ index = boundaryIndex + this.#boundaryLength;
630
645
  this.#state = MultipartParserStateAfterBoundary;
631
646
  }
632
647
  }
@@ -789,7 +804,7 @@ var MultipartPart = class {
789
804
  }
790
805
  };
791
806
  //#endregion
792
- //#region node_modules/.pnpm/@remix-run+multipart-parser@0.16.4/node_modules/@remix-run/multipart-parser/dist/lib/multipart-request.js
807
+ //#region node_modules/.pnpm/@remix-run+multipart-parser@0.16.5/node_modules/@remix-run/multipart-parser/dist/lib/multipart-request.js
793
808
  /**
794
809
  * Extracts the boundary string from a `multipart/*` content type.
795
810
  *
@@ -807,8 +822,7 @@ function getMultipartBoundary(contentType) {
807
822
  * @returns `true` if the request is a multipart request, `false` otherwise
808
823
  */
809
824
  function isMultipartRequest(request) {
810
- let contentType = request.headers.get("Content-Type");
811
- return contentType != null && contentType.startsWith("multipart/");
825
+ return (ContentType.from(request.headers.get("Content-Type")).mediaType?.toLowerCase())?.startsWith("multipart/") ?? false;
812
826
  }
813
827
  /**
814
828
  * Parse a multipart [`Request`](https://developer.mozilla.org/en-US/docs/Web/API/Request)
@@ -835,7 +849,7 @@ async function* parseMultipartRequest(request, options) {
835
849
  });
836
850
  }
837
851
  //#endregion
838
- //#region node_modules/.pnpm/@remix-run+form-data-parser@0.17.5/node_modules/@remix-run/form-data-parser/dist/lib/form-data.js
852
+ //#region node_modules/.pnpm/@remix-run+form-data-parser@0.17.6/node_modules/@remix-run/form-data-parser/dist/lib/form-data.js
839
853
  /**
840
854
  * The base class for errors thrown by the form data parser.
841
855
  */
@@ -856,6 +870,10 @@ var MaxFilesExceededError = class extends FormDataParseError {
856
870
  };
857
871
  /**
858
872
  * A file that was uploaded as part of a `multipart/form-data` request.
873
+ *
874
+ * The `name` and `type` properties come from the submitted multipart metadata; they do not
875
+ * validate the file contents. Choose storage names and validate content types in your upload
876
+ * handler before using files in application-specific contexts.
859
877
  */
860
878
  var FileUpload = class extends File {
861
879
  /**
@@ -887,8 +905,7 @@ async function* parseFormDataParts(request, parserOptions) {
887
905
  }
888
906
  }
889
907
  function isUrlEncodedRequest(request) {
890
- let contentType = request.headers.get("Content-Type");
891
- return contentType != null && contentType.startsWith("application/x-www-form-urlencoded");
908
+ return ContentType.from(request.headers.get("Content-Type")).mediaType?.toLowerCase() === "application/x-www-form-urlencoded";
892
909
  }
893
910
  function validateUrlEncodedPartCount(partCount, maxParts) {
894
911
  if (partCount > maxParts) throw new MaxPartsExceededError(maxParts);
@@ -948,11 +965,7 @@ async function parseFormData(request, optionsOrUploadHandler, uploadHandler) {
948
965
  if (error instanceof FormDataParseError || isParserLimitError(error)) throw error;
949
966
  throw new FormDataParseError("Cannot parse form data", { cause: error });
950
967
  }
951
- if (!isMultipartRequest(request)) try {
952
- return await request.formData();
953
- } catch (error) {
954
- throw new FormDataParseError("Cannot parse form data", { cause: error });
955
- }
968
+ if (!isMultipartRequest(request)) throw new FormDataParseError("Cannot parse form data");
956
969
  let parserOptions = {
957
970
  maxHeaderSize,
958
971
  maxFileSize,
@@ -973,7 +986,7 @@ async function parseFormData(request, optionsOrUploadHandler, uploadHandler) {
973
986
  return formData;
974
987
  }
975
988
  //#endregion
976
- //#region node_modules/.pnpm/@marko+run@0.11.12_@types+node@26.6.1_esbuild@0.27.7_marko@6.3.51/node_modules/@marko/run/dist/runtime/internal.js
989
+ //#region node_modules/.pnpm/@marko+run@0.11.12_@types+node@26.6.2_esbuild@0.27.7_marko@6.3.52/node_modules/@marko/run/dist/runtime/internal.js
977
990
  var httpVerbs = [
978
991
  "get",
979
992
  "head",
@@ -4744,7 +4757,7 @@ function renderParts(g, parts) {
4744
4757
  return html;
4745
4758
  }
4746
4759
  //#endregion
4747
- //#region node_modules/.pnpm/marko@6.3.51/node_modules/marko/dist/html.mjs
4760
+ //#region node_modules/.pnpm/marko@6.3.52/node_modules/marko/dist/html.mjs
4748
4761
  var empty = [], rest = Symbol(), unsafeStyleAttrReg = /[\\;]/g, replaceUnsafeStyleAttr = (c) => c === ";" ? "\\3B " : "\\\\", toDelimitedString = function toDelimitedString(val, delimiter, stringify) {
4749
4762
  let str = "", sep = "", part;
4750
4763
  if (val) if (typeof val != "object") str += val;
@@ -4994,7 +5007,7 @@ var empty = [], rest = Symbol(), unsafeStyleAttrReg = /[\\;]/g, replaceUnsafeSty
4994
5007
  }, unsafeQuoteReg = /["\\<\n\r\u2028\u2029\0\ud800-\udfff]/u, $chunk, kPendingContexts = Symbol("Pending Contexts"), kBranchId = Symbol("Branch Id"), kIsAsync = Symbol("Is Async"), writeScope = (scopeId, partialScope) => {
4995
5008
  let { state } = $chunk.boundary, target = $chunk.serializeState, scope = scopeWithId(state, scopeId), pending = target.writeScopes[scopeId];
4996
5009
  return state.needsMainRuntime = !0, countResumeWrite($chunk.boundary), Object.assign(scope, partialScope), pending && pending !== partialScope ? Object.assign(pending, partialScope) : target.writeScopes[scopeId] = partialScope, target.flushScopes = !0, scope;
4997
- }, NOOP$2 = () => {}, tick = globalThis.setImmediate || globalThis.setTimeout || globalThis.queueMicrotask || ((cb) => Promise.resolve().then(cb)), tickQueue, kSelectedValue = Symbol("selectedValue"), checkedValuesRefs = /* @__PURE__ */ new WeakMap(), singleQuoteAttrReplacements = /['\r]|&(?=[#a-zA-Z])/g, doubleQuoteAttrReplacements = /["\r]|&(?=[#a-zA-Z])/g, needsQuotedAttr = /["'>\s]|&[#a-zA-Z]|\/$/g, voidElementsReg = /^(?:area|b(?:ase|r)|col|embed|hr|i(?:mg|nput)|link|meta|param|source|track|wbr)$/, _dynamic_tag = (scopeId, accessor, tag, inputOrArgs, content, inputIsArgs, serializeReason) => {
5010
+ }, CLIENT_ALL = 715827882, NOOP$2 = () => {}, tick = globalThis.setImmediate || globalThis.setTimeout || globalThis.queueMicrotask || ((cb) => Promise.resolve().then(cb)), tickQueue, kSelectedValue = Symbol("selectedValue"), checkedValuesRefs = /* @__PURE__ */ new WeakMap(), singleQuoteAttrReplacements = /['\r]|&(?=[#a-zA-Z])/g, doubleQuoteAttrReplacements = /["\r]|&(?=[#a-zA-Z])/g, needsQuotedAttr = /["'>\s]|&[#a-zA-Z]|\/$/g, voidElementsReg = /^(?:area|b(?:ase|r)|col|embed|hr|i(?:mg|nput)|link|meta|param|source|track|wbr)$/, _dynamic_tag = (scopeId, accessor, tag, inputOrArgs, content, inputIsArgs, serializeReason) => {
4998
5011
  let shouldResume = serializeReason !== 0, renderer = normalizeDynamicRenderer(tag), state = getState(), branchId = _peek_scope_id(), rendered, result;
4999
5012
  if (typeof renderer == "string") {
5000
5013
  let input = (inputIsArgs ? inputOrArgs[0] : inputOrArgs) || {};
@@ -5014,7 +5027,7 @@ var empty = [], rest = Symbol(), unsafeStyleAttrReg = /[\\;]/g, replaceUnsafeSty
5014
5027
  } else {
5015
5028
  let chunk = getChunk(), beforeBranch = shouldResume ? deferBranchStart(chunk) : void 0, render = () => {
5016
5029
  if (renderer) try {
5017
- return _set_serialize_reason(shouldResume && inputOrArgs !== void 0 ? 1 : 0), inputIsArgs ? renderer(...inputOrArgs) : renderer(content ? {
5030
+ return _set_serialize_reason(shouldResume && inputOrArgs !== void 0 ? CLIENT_ALL : 0), inputIsArgs ? renderer(...inputOrArgs) : renderer(content ? {
5018
5031
  ...inputOrArgs,
5019
5032
  content
5020
5033
  } : inputOrArgs);
@@ -5096,6 +5109,7 @@ var Reference = class {
5096
5109
  flushId;
5097
5110
  pos;
5098
5111
  id;
5112
+ path = null;
5099
5113
  constructor(parent, accessor, flushId, pos = null, id = null) {
5100
5114
  this.parent = parent, this.accessor = accessor, this.flushId = flushId, this.pos = pos, this.id = id;
5101
5115
  }
@@ -5223,7 +5237,7 @@ function writeProp(state, val, parent, accessor) {
5223
5237
  }
5224
5238
  function writeReferenceOr(state, write, val, parent, accessor) {
5225
5239
  let ref = state.refs.get(val);
5226
- if (ref) return trackChannel(state, ref) ? parent && isCircular(parent, ref) ? (ensureId(state, ref), state.pendingAssignments.add(ref), addAssignment(ref, accessId(state, parent) + toAccess(accessor)), !1) : (state.buf.push(ensureId(state, ref)), !0) : !1;
5240
+ if (ref) return trackChannel(state, ref) ? parent && isCircular(parent, ref) ? (ensureId(state, ref), state.pendingAssignments.add(ref), addAssignment(ref, accessId(state, parent) + toAccess(accessor)), !1) : (writeRef(state, ref), !0) : !1;
5227
5241
  let registered = REGISTRY$1.get(val);
5228
5242
  return registered ? writeRegistered(state, val, parent, accessor, registered) : (state.refs.set(val, ref = new Reference(parent, accessor, state.flushId, state.buf.length)), ref.channel = state.channel, write(state, val, ref) ? !0 : (state.refs.delete(val), !1));
5229
5243
  }
@@ -5249,7 +5263,7 @@ function writeString(state, val, parent, accessor) {
5249
5263
  if (val.length > 12) {
5250
5264
  let ref = state.strs.get(val);
5251
5265
  if (ref) {
5252
- if (trackChannel(state, ref)) return state.buf.push(ensureId(state, ref)), !0;
5266
+ if (trackChannel(state, ref)) return writeRef(state, ref), !0;
5253
5267
  } else {
5254
5268
  let ref = new Reference(parent, accessor, state.flushId, state.buf.length);
5255
5269
  ref.channel = state.channel, state.strs.set(val, ref);
@@ -5728,6 +5742,9 @@ function quote(str, startPos) {
5728
5742
  }
5729
5743
  return "\"" + (lastPos === startPos ? str : result + str.slice(lastPos)) + "\"";
5730
5744
  }
5745
+ function writeRef(state, ref) {
5746
+ ref.id === null && ref.scopeId === void 0 && ref.path === null && (ref.pos === null || ref.flushId !== state.flushId) ? (ref.path = accessPath(state, ref), ref.pos = state.buf.length, ref.flushId = state.flushId, ref.channel = state.channel, state.buf.push(ref.path)) : state.buf.push(ensureId(state, ref));
5747
+ }
5731
5748
  function ensureId(state, ref) {
5732
5749
  return ref.scopeId === void 0 ? ref.id ? (trackChannel(state, ref), ref.id) : assignId(state, ref) : (trackChannel(state, ref), "_(" + ref.scopeId + ")");
5733
5750
  }
@@ -5737,23 +5754,18 @@ function accessId(state, ref) {
5737
5754
  }
5738
5755
  function assignId(state, ref) {
5739
5756
  let { pos } = ref;
5740
- if (ref.id = nextRefAccess(state), pos !== null && ref.flushId === state.flushId) return pos === 0 ? state.buf[0] = ref.id + "=" + state.buf[0] : state.buf[pos - 1] += ref.id + "=", ref.id;
5741
- ref.channel = state.channel;
5757
+ return ref.id = nextRefAccess(state), pos !== null && ref.flushId === state.flushId ? (pos === 0 ? state.buf[0] = ref.id + "=" + state.buf[0] : state.buf[pos - 1] += ref.id + "=", ref.id) : (ref.channel = state.channel, ref.id + "=" + (ref.path || accessPath(state, ref)));
5758
+ }
5759
+ function accessPath(state, ref) {
5742
5760
  let cur = ref, accessPrevValue = "";
5743
5761
  do {
5744
5762
  accessPrevValue = toAccess(cur.accessor) + accessPrevValue;
5745
5763
  let parent = cur.parent;
5746
- if (parent.id && (trackChannel(state, parent) || !parent.parent)) {
5747
- accessPrevValue = parent.id + accessPrevValue;
5748
- break;
5749
- }
5750
- if (parent.flushId === state.flushId || parent.scopeId !== void 0) {
5751
- accessPrevValue = accessId(state, parent) + accessPrevValue;
5752
- break;
5753
- }
5764
+ if (parent.id && (trackChannel(state, parent) || !parent.parent)) return parent.id + accessPrevValue;
5765
+ if (parent.flushId === state.flushId || parent.scopeId !== void 0) return accessId(state, parent) + accessPrevValue;
5754
5766
  cur = parent;
5755
5767
  } while (cur);
5756
- return ref.id + "=" + accessPrevValue;
5768
+ return accessPrevValue;
5757
5769
  }
5758
5770
  function assignmentsToString(assignments, value) {
5759
5771
  return assignments.length > 100 ? "($=>(" + assignments.join("=$,") + "=$))(" + value + ")" : assignments.join("=") + "=" + value;
@@ -5982,6 +5994,9 @@ function _subscribe(subscribers, scope) {
5982
5994
  }
5983
5995
  return scope;
5984
5996
  }
5997
+ function maskGroup(mask, group) {
5998
+ return mask === 715827882 ? 1 : typeof mask == "number" ? mask >>> 1 + 2 * group & 3 : mask[group] ?? 0;
5999
+ }
5985
6000
  function _set_serialize_reason(reason) {
5986
6001
  $chunk.boundary.state.serializeReason = reason;
5987
6002
  }
@@ -5990,7 +6005,7 @@ function _scope_reason() {
5990
6005
  return $chunk.boundary.state.serializeReason = void 0, reason;
5991
6006
  }
5992
6007
  function _serialize_if(condition, key) {
5993
- return condition && (condition === 1 || (typeof condition == "number" ? condition >>> key + 1 & 1 : condition[key])) ? 1 : void 0;
6008
+ return condition && maskGroup(condition, key) ? 1 : void 0;
5994
6009
  }
5995
6010
  function _serialize_guard(condition, key) {
5996
6011
  return _serialize_if(condition, key) || 0;
@@ -6034,6 +6049,16 @@ var State = class {
6034
6049
  constructor($global) {
6035
6050
  this.$global = $global, $global.cspNonce && (this.nonceAttr = " nonce" + attrAssignment($global.cspNonce));
6036
6051
  }
6052
+ flushChunk(html, scripts, pending) {
6053
+ let { $global, nonceAttr } = this, { __flush__ } = $global;
6054
+ return scripts && (html += "<script" + nonceAttr + ">" + scripts + "<\/script>"), __flush__ && ($global.__flush__ = void 0, html = __flush__($global, html)), pending ? html : html + this.trailerHTML;
6055
+ }
6056
+ walkScript() {
6057
+ return this.runtimePrefix + ".w()";
6058
+ }
6059
+ resumeScript(resumes) {
6060
+ return this.hasWrittenResume ? this.runtimePrefix + ".r.push(" + resumes + ")" : (this.hasWrittenResume = !0, this.runtimePrefix + ".r=[" + resumes + "]");
6061
+ }
6037
6062
  get runtimePrefix() {
6038
6063
  let { $global } = this;
6039
6064
  return $global.runtimeId + "." + $global.renderId;
@@ -6115,7 +6140,7 @@ var Chunk = class Chunk {
6115
6140
  this.scripts = concatScripts(this.scripts, script);
6116
6141
  }
6117
6142
  append(chunk) {
6118
- this.html += chunk.html, this.effects = concatEffects(this.effects, chunk.effects), this.scripts = concatScripts(this.scripts, chunk.scripts), this.lastEffect = chunk.lastEffect || this.lastEffect, this.deferredReady = concat(this.deferredReady, chunk.takeDeferredReady());
6143
+ this.html += chunk.html, this.needsWalk ||= chunk.needsWalk, this.effects = concatEffects(this.effects, chunk.effects), this.scripts = concatScripts(this.scripts, chunk.scripts), this.lastEffect = chunk.lastEffect || this.lastEffect, this.deferredReady = concat(this.deferredReady, chunk.takeDeferredReady());
6119
6144
  }
6120
6145
  takeDeferredReady() {
6121
6146
  let { deferredReady } = this;
@@ -6214,13 +6239,13 @@ var Chunk = class Chunk {
6214
6239
  }
6215
6240
  state.writeReorders = carried;
6216
6241
  }
6217
- return flushSerializer(boundary, state), state.resumes ? state.hasWrittenResume ? scripts = concatScripts(scripts, runtimePrefix + ".r.push(" + state.resumes + ")") : (state.hasWrittenResume = !0, scripts = concatScripts(scripts, runtimePrefix + ".r=[" + state.resumes + "]")) : needsResumeArray && !state.hasWrittenResume && (state.hasWrittenResume = !0, scripts = concatScripts(scripts, runtimePrefix + ".r=[]")), scripts = concatScripts(scripts, reordered), needsWalk && (scripts = concatScripts(scripts, runtimePrefix + ".w()")), this.html = html, this.scripts = scripts, this.async || (this.effects = this.lastEffect = ""), state.resumes = "", this;
6242
+ return flushSerializer(boundary, state), (state.resumes || needsResumeArray && !state.hasWrittenResume) && (scripts = concatScripts(scripts, state.resumeScript(state.resumes))), scripts = concatScripts(scripts, reordered), needsWalk && (scripts = concatScripts(scripts, state.walkScript())), this.html = html, this.scripts = scripts, this.async || (this.effects = this.lastEffect = ""), state.resumes = "", this;
6218
6243
  }
6219
6244
  flushHTML() {
6220
6245
  let { boundary } = this, { state } = boundary;
6221
6246
  this.needsWalk && (this.needsWalk = !1, state.walkOnNextFlush = !0), this.flushScript();
6222
- let { scripts } = this, { $global, nonceAttr } = state, { __flush__ } = $global, { html } = this;
6223
- return this.html = this.scripts = "", scripts && (html += "<script" + nonceAttr + ">" + scripts + "<\/script>"), __flush__ && ($global.__flush__ = void 0, html = __flush__($global, html)), boundary.count || (html += state.trailerHTML), html;
6247
+ let { html, scripts } = this;
6248
+ return this.html = this.scripts = "", state.flushChunk(html, scripts, boundary.count);
6224
6249
  }
6225
6250
  };
6226
6251
  function flushSerializer(boundary, serializeState) {
@@ -6448,17 +6473,20 @@ function _content_resume(id, fn, scopeId) {
6448
6473
  return _resume(_content(id, fn, scopeId), id, scopeId);
6449
6474
  }
6450
6475
  function render(input = {}) {
6476
+ return startRender(this, input, State);
6477
+ }
6478
+ function startRender(template, input, StateClass) {
6451
6479
  let { $global } = input;
6452
6480
  $global ? ({$global, ...input} = input, $global = {
6453
6481
  runtimeId: "M",
6454
- renderId: getDefaultRenderId(this),
6482
+ renderId: getDefaultRenderId(template),
6455
6483
  ...$global
6456
6484
  }) : $global = {
6457
6485
  runtimeId: "M",
6458
- renderId: getDefaultRenderId(this)
6486
+ renderId: getDefaultRenderId(template)
6459
6487
  };
6460
- let state = new State($global), head = new Chunk(new Boundary(state, $global.signal), null, null, state);
6461
- return this.i ? head.render(() => writeWaitReady(this.a, this, input)) : head.render(this, input), new ServerRendered(head);
6488
+ let state = new StateClass($global), head = new Chunk(new Boundary(state, $global.signal), null, null, state);
6489
+ return template.i ? head.render(() => writeWaitReady(template.a, template, input)) : head.render(template, input), new ServerRendered(head);
6462
6490
  }
6463
6491
  function getDefaultRenderId(template) {
6464
6492
  if (template.i) {
@@ -7010,10 +7038,7 @@ var icon_base_default = _template("W", (input) => {
7010
7038
  var icon_xmark_default = _template("zb", (input) => {
7011
7039
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
7012
7040
  const $scope0_id = _scope_id();
7013
- _set_serialize_reason({
7014
- 0: $sg__input_size__OR__input_class,
7015
- 1: $sg__input_size__OR__input_class
7016
- });
7041
+ _set_serialize_reason($sg__input_size__OR__input_class << 1 | $sg__input_size__OR__input_class << 3);
7017
7042
  const $childScope = _peek_scope_id();
7018
7043
  icon_base_default({
7019
7044
  d: "M6.75827 17.2426L12.0009 12M17.2435 6.75736L12.0009 12M12.0009 12L6.75827 6.75736M12.0009 12L17.2435 17.2426",
@@ -7313,24 +7338,21 @@ var agentRow = "_cS _ct";
7313
7338
  var toolGrid = "_c0 _cD";
7314
7339
  var toolRow = "_c1 _cE";
7315
7340
  var themeSeg = "_dn _bd";
7316
- var checkList = "_dT _bX";
7317
- var list$2 = "_cF _bZ _cs _cD";
7341
+ var checkList = "_dT _bZ";
7342
+ var list$2 = "_cF _b1 _cs _cD";
7318
7343
  var flatCardRow = "_cG _cE";
7319
7344
  var chip$1 = "_cP _X _W";
7320
- var pop$1 = "_ej _9";
7321
- var spinner = "_em _1 _G";
7322
- var busy = "_d9 _d8";
7323
- var pop = "_ea _9";
7324
- var sectionCount$1 = "_bW _N _O";
7345
+ var pop$1 = "_ea _9";
7346
+ var spinner = "_ed _1 _G";
7347
+ var busy = "_d0 _dZ";
7348
+ var pop = "_d2 _9";
7349
+ var sectionCount$1 = "_bY _N _O";
7325
7350
  //#endregion
7326
7351
  //#region src/tags/icons/icon-refresh.marko
7327
7352
  var icon_refresh_default = _template("pb", (input) => {
7328
7353
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
7329
7354
  const $scope0_id = _scope_id();
7330
- _set_serialize_reason({
7331
- 0: $sg__input_size__OR__input_class,
7332
- 1: $sg__input_size__OR__input_class
7333
- });
7355
+ _set_serialize_reason($sg__input_size__OR__input_class << 1 | $sg__input_size__OR__input_class << 3);
7334
7356
  const $childScope = _peek_scope_id();
7335
7357
  icon_base_default({
7336
7358
  d: "M21.8883 13.5C21.1645 18.3113 17.013 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C16.1006 2 19.6248 4.46819 21.1679 8 M17 8H21.4C21.7314 8 22 7.73137 22 7.4V3",
@@ -7344,10 +7366,7 @@ var icon_refresh_default = _template("pb", (input) => {
7344
7366
  var icon_back_default = _template("V", (input) => {
7345
7367
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
7346
7368
  const $scope0_id = _scope_id();
7347
- _set_serialize_reason({
7348
- 0: $sg__input_size__OR__input_class,
7349
- 1: $sg__input_size__OR__input_class
7350
- });
7369
+ _set_serialize_reason($sg__input_size__OR__input_class << 1 | $sg__input_size__OR__input_class << 3);
7351
7370
  const $childScope = _peek_scope_id();
7352
7371
  icon_base_default({
7353
7372
  d: "M15 6L9 12L15 18",
@@ -7361,7 +7380,7 @@ var icon_back_default = _template("V", (input) => {
7361
7380
  var page_head_default = _template("t", (input) => {
7362
7381
  const $scope0_reason = _scope_reason(), $sg__input_backHref__OR__input_backTitle = _serialize_guard($scope0_reason, 0), $sg__input_meta = _serialize_guard($scope0_reason, 6), $sg__input_backHref__OR__input_onBack__OR__input_meta__OR__input_actions = _serialize_guard($scope0_reason, 3), $sg__input_actions = _serialize_guard($scope0_reason, 7), $sg__input_backHref__OR__input_onBack = _serialize_guard($scope0_reason, 1), $sg__input_titleId = _serialize_guard($scope0_reason, 4), $sg__input_title = _serialize_guard($scope0_reason, 5), $si__input_backHref__OR__input_onBack = _serialize_if($scope0_reason, 1), $si__input_meta = _serialize_if($scope0_reason, 6), $si__input_actions = _serialize_if($scope0_reason, 7);
7363
7382
  const $scope0_id = _scope_id();
7364
- _html(`<header${_attr_class("_d1")}>`);
7383
+ _html(`<header${_attr_class("_ei")}>`);
7365
7384
  _if(() => {
7366
7385
  if (input.backHref) {
7367
7386
  const $scope1_id = _scope_id();
@@ -7380,11 +7399,11 @@ var page_head_default = _template("t", (input) => {
7380
7399
  return 1;
7381
7400
  }
7382
7401
  }, $scope0_id, "b", _serialize_guard($scope0_reason, 2), $sg__input_backHref__OR__input_onBack, $sg__input_backHref__OR__input_onBack__OR__input_meta__OR__input_actions, 0, 1);
7383
- _html(`<div${_attr_class("_d3")}><h1${_attr("id", input.titleId)}${_attr_class("_d2")}>${_text_resume($scope0_id, "e", input.title, $sg__input_title)}</h1>${_el_resume($scope0_id, "d", $sg__input_titleId)}`);
7402
+ _html(`<div${_attr_class("_ek")}><h1${_attr("id", input.titleId)}${_attr_class("_ej")}>${_text_resume($scope0_id, "e", input.title, $sg__input_title)}</h1>${_el_resume($scope0_id, "d", $sg__input_titleId)}`);
7384
7403
  _if(() => {
7385
7404
  if (input.meta) {
7386
7405
  const $scope3_id = _scope_id();
7387
- _html(`<p${_attr_class("_d4")}>`);
7406
+ _html(`<p${_attr_class("_el")}>`);
7388
7407
  _dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
7389
7408
  _html("</p>");
7390
7409
  $si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
@@ -7395,7 +7414,7 @@ var page_head_default = _template("t", (input) => {
7395
7414
  _if(() => {
7396
7415
  if (input.actions) {
7397
7416
  const $scope4_id = _scope_id();
7398
- _html(`<div${_attr_class("_d5")}>`);
7417
+ _html(`<div${_attr_class("_em")}>`);
7399
7418
  _dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
7400
7419
  _html("</div>");
7401
7420
  $si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
@@ -7437,10 +7456,7 @@ var icon_agent_default = _template("P", (input) => {
7437
7456
  return 0;
7438
7457
  } else {
7439
7458
  const $scope2_id = _scope_id();
7440
- _set_serialize_reason({
7441
- 0: $sg__input_size__OR__input_class,
7442
- 1: $sg__input_size__OR__input_class
7443
- });
7459
+ _set_serialize_reason($sg__input_size__OR__input_class << 1 | $sg__input_size__OR__input_class << 3);
7444
7460
  const $childScope = _peek_scope_id();
7445
7461
  icon_base_default({
7446
7462
  d: "M5 7L10 12L5 17 M13 17H20",
@@ -7463,16 +7479,13 @@ var icon_agent_default = _template("P", (input) => {
7463
7479
  n: $badge__closures
7464
7480
  });
7465
7481
  });
7466
- var usageNote = "_hf _W";
7482
+ var usageNote = "_gJ _W";
7467
7483
  //#endregion
7468
7484
  //#region src/tags/icons/icon-warning.marko
7469
7485
  var icon_warning_default = _template("xb", (input) => {
7470
7486
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
7471
7487
  const $scope0_id = _scope_id();
7472
- _set_serialize_reason({
7473
- 0: $sg__input_size__OR__input_class,
7474
- 1: $sg__input_size__OR__input_class
7475
- });
7488
+ _set_serialize_reason($sg__input_size__OR__input_class << 1 | $sg__input_size__OR__input_class << 3);
7476
7489
  const $childScope = _peek_scope_id();
7477
7490
  icon_base_default({
7478
7491
  d: "M20.0429 21H3.95705C2.41902 21 1.45658 19.3364 2.22324 18.0031L10.2662 4.01533C11.0352 2.67792 12.9648 2.67791 13.7338 4.01532L21.7768 18.0031C22.5434 19.3364 21.581 21 20.0429 21Z M12 9V13 M12 17.01L12.01 16.9989",
@@ -7493,11 +7506,11 @@ var usage_meters_default = _template("L", (input) => {
7493
7506
  const $scope0_reason = _scope_reason(), $sg__input_agent = _serialize_guard($scope0_reason, 1), $sg__input_agent__OR__input_hideName = _serialize_guard($scope0_reason, 0), $si__input_agent = _serialize_if($scope0_reason, 1), $sg__input_hideName = _serialize_guard($scope0_reason, 2), $si__input_agent__OR__input_hideName = _serialize_if($scope0_reason, 0);
7494
7507
  const $scope0_id = _scope_id();
7495
7508
  const agent = input.agent;
7496
- _html(`<div${_attr_class(["_g_", { ["_ha"]: input.hideName }])}><div${_attr_class("_hb")}>`);
7509
+ _html(`<div${_attr_class(["_gD", { ["_gE"]: input.hideName }])}><div${_attr_class("_gF")}>`);
7497
7510
  _if(() => {
7498
7511
  if (!input.hideName) {
7499
7512
  const $scope1_id = _scope_id();
7500
- _html(`<strong${_attr_class("_hu")}>${_text_resume($scope1_id, "b", agent.agent, $sg__input_agent)}</strong>`);
7513
+ _html(`<strong${_attr_class("_gY")}>${_text_resume($scope1_id, "b", agent.agent, $sg__input_agent)}</strong>`);
7501
7514
  $si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
7502
7515
  return 0;
7503
7516
  }
@@ -7505,7 +7518,7 @@ var usage_meters_default = _template("L", (input) => {
7505
7518
  _if(() => {
7506
7519
  if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
7507
7520
  const $scope2_id = _scope_id();
7508
- _html(`<span${_attr_class("_hc")}>${_text_resume($scope2_id, "b", agent.plan.replace(/^default_/, "").replaceAll("_", " "), $sg__input_agent)}</span>`);
7521
+ _html(`<span${_attr_class("_gG")}>${_text_resume($scope2_id, "b", agent.plan.replace(/^default_/, "").replaceAll("_", " "), $sg__input_agent)}</span>`);
7509
7522
  $si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
7510
7523
  return 0;
7511
7524
  }
@@ -7513,21 +7526,21 @@ var usage_meters_default = _template("L", (input) => {
7513
7526
  _if(() => {
7514
7527
  if (agent.stale_seconds != null) {
7515
7528
  const $scope3_id = _scope_id();
7516
- _html(`<span${_attr_class("_hd")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>`);
7529
+ _html(`<span${_attr_class("_gH")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>`);
7517
7530
  icon_warning_default({ size: 12 });
7518
7531
  _html(` ${_text_resume($scope3_id, "c", duration(agent.stale_seconds * 1e3), $sg__input_agent * 2)} old</span>${_el_resume($scope3_id, "a", $sg__input_agent)}`);
7519
7532
  $si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
7520
7533
  return 0;
7521
7534
  }
7522
7535
  }, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
7523
- _html(`</div><div${_attr_class(["_he", { ["_hv"]: agent.stale_seconds != null }])}>`);
7536
+ _html(`</div><div${_attr_class(["_gI", { ["_gZ"]: agent.stale_seconds != null }])}>`);
7524
7537
  _for_of(agent.windows || [], (win) => {
7525
7538
  const $scope4_id = _scope_id();
7526
7539
  const pct = pctText(win.used_percent);
7527
7540
  const label = resetLabel(win.resets_at, agent.stale_seconds != null);
7528
- const fillClass = win.used_percent >= 90 ? "_hn" : win.used_percent >= 70 ? "_hm" : win.used_percent >= 40 ? "_hl" : "_hk";
7529
- const pctClass = win.used_percent >= 90 ? "_hs" : win.used_percent >= 70 ? "_hr" : win.used_percent >= 40 ? "_hq" : "_hp";
7530
- _html(`<div${_attr_class("_hg")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_hh")}>${_text_resume($scope4_id, "c", win.window, $sg__input_agent)}</span><span${_attr_class("_hi")}><span${_attr_class(["_hj", fillClass])}${_attr_style(`width:${Math.min(100, Math.max(2, win.used_percent))}%`)}></span>${_el_resume($scope4_id, "e", $sg__input_agent)}</span><span${_attr_class(["_ho", pctClass])}>${_text_resume($scope4_id, "g", pct, $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_ht")}>`);
7541
+ const fillClass = win.used_percent >= 90 ? "_gR" : win.used_percent >= 70 ? "_gQ" : win.used_percent >= 40 ? "_gP" : "_gO";
7542
+ const pctClass = win.used_percent >= 90 ? "_gW" : win.used_percent >= 70 ? "_gV" : win.used_percent >= 40 ? "_gU" : "_gT";
7543
+ _html(`<div${_attr_class("_gK")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_gL")}>${_text_resume($scope4_id, "c", win.window, $sg__input_agent)}</span><span${_attr_class("_gM")}><span${_attr_class(["_gN", fillClass])}${_attr_style(`width:${Math.min(100, Math.max(2, win.used_percent))}%`)}></span>${_el_resume($scope4_id, "e", $sg__input_agent)}</span><span${_attr_class(["_gS", pctClass])}>${_text_resume($scope4_id, "g", pct, $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_gX")}>`);
7531
7544
  _if(() => {
7532
7545
  if (label) {
7533
7546
  const $scope6_id = _scope_id();
@@ -7573,10 +7586,7 @@ var icon_github_default = _template("ib", (input) => {
7573
7586
  var icon_plus_default = _template("ob", (input) => {
7574
7587
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
7575
7588
  const $scope0_id = _scope_id();
7576
- _set_serialize_reason({
7577
- 0: $sg__input_size__OR__input_class,
7578
- 1: $sg__input_size__OR__input_class
7579
- });
7589
+ _set_serialize_reason($sg__input_size__OR__input_class << 1 | $sg__input_size__OR__input_class << 3);
7580
7590
  const $childScope = _peek_scope_id();
7581
7591
  icon_base_default({
7582
7592
  d: "M6 12H12M18 12H12M12 12V6M12 12V18",
@@ -7590,10 +7600,7 @@ var icon_plus_default = _template("ob", (input) => {
7590
7600
  var icon_search_default = _template("qb", (input) => {
7591
7601
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
7592
7602
  const $scope0_id = _scope_id();
7593
- _set_serialize_reason({
7594
- 0: $sg__input_size__OR__input_class,
7595
- 1: $sg__input_size__OR__input_class
7596
- });
7603
+ _set_serialize_reason($sg__input_size__OR__input_class << 1 | $sg__input_size__OR__input_class << 3);
7597
7604
  const $childScope = _peek_scope_id();
7598
7605
  icon_base_default({
7599
7606
  d: "M17 17L21 21 M3 11C3 15.4183 6.58172 19 11 19C13.213 19 15.2161 18.1015 16.6644 16.6493C18.1077 15.2022 19 13.2053 19 11C19 6.58172 15.4183 3 11 3C6.58172 3 3 6.58172 3 11Z",
@@ -7605,7 +7612,7 @@ var icon_search_default = _template("qb", (input) => {
7605
7612
  //#endregion
7606
7613
  //#region src/tags/add-field.marko
7607
7614
  var add_field_default = _template("b", (input$3) => {
7608
- const $scope0_reason = _scope_reason(), $sg__input_icon = _serialize_guard($scope0_reason, 6), $si__input_searching__OR__input_icon = _serialize_if($scope0_reason, 0), $sg__input_searching__OR__input_icon = _serialize_guard($scope0_reason, 0), $sg__input_submitLabel__OR__input_busy = _serialize_guard($scope0_reason, 1), $sg__input_content = _serialize_guard($scope0_reason, 8), $si__input_icon = _serialize_if($scope0_reason, 6);
7615
+ const $scope0_reason = _scope_reason(), $sg__input_icon = _serialize_guard($scope0_reason, 6), $si__input_searching__OR__input_icon = _serialize_if($scope0_reason, 0), $sg__input_searching__OR__input_icon = _serialize_guard($scope0_reason, 0), $sg__input_content = _serialize_guard($scope0_reason, 8), $si__input_icon = _serialize_if($scope0_reason, 6);
7609
7616
  const $scope0_id = _scope_id();
7610
7617
  let open = input$3.open;
7611
7618
  let value = input$3.value;
@@ -7626,10 +7633,10 @@ var add_field_default = _template("b", (input$3) => {
7626
7633
  }
7627
7634
  }, $scope0_id, "a", 1, 1, 1, 0, 1);
7628
7635
  _html(`<form${_attr_class([
7629
- "_ec",
7636
+ "_d4",
7630
7637
  input$3.class,
7631
- { ["_ed"]: !open }
7632
- ])}><label${_attr_class(["_0", "_ef"])}>`);
7638
+ { ["_d5"]: !open }
7639
+ ])}><label${_attr_class(["_0", "_d7"])}>`);
7633
7640
  _if(() => {
7634
7641
  if (input$3.searching) {
7635
7642
  const $scope5_id = _scope_id();
@@ -7656,7 +7663,7 @@ var add_field_default = _template("b", (input$3) => {
7656
7663
  }, "b0", $scope0_id))}${_attr_class([
7657
7664
  "_Y",
7658
7665
  "_2",
7659
- "_eg"
7666
+ "_d8"
7660
7667
  ])} type=text${_attr("placeholder", input$3.placeholder)}${_attr("aria-label", input$3.ariaLabel)} autocomplete=off spellcheck=false>${_el_resume($scope0_id, "e")}</label>`);
7661
7668
  _if(() => {
7662
7669
  if (input$3.submitLabel) {
@@ -7664,19 +7671,19 @@ var add_field_default = _template("b", (input$3) => {
7664
7671
  _html(`<button${_attr_class([
7665
7672
  btnSm,
7666
7673
  "_r",
7667
- "_eh"
7668
- ])} type=submit${_attr("hidden", !open)}${_attr("disabled", !value.trim() || input$3.busy)}>${_text_resume($scope3_id, "b", input$3.busy ? "Adding…" : input$3.submitLabel, $sg__input_submitLabel__OR__input_busy)}</button>${_el_resume($scope3_id, "a")}`);
7674
+ "_d9"
7675
+ ])} type=submit${_attr("hidden", !open)}${_attr("disabled", !value.trim() || input$3.busy)}>${_text_resume($scope3_id, "b", input$3.busy ? "Adding…" : input$3.submitLabel, _serialize_guard($scope0_reason, 1))}</button>${_el_resume($scope3_id, "a")}`);
7669
7676
  writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
7670
7677
  return 0;
7671
7678
  }
7672
7679
  }, $scope0_id, "f", 1, _serialize_guard($scope0_reason, 7), 1, 0, 1);
7673
- _html(`<button${_attr_class([iconBtnRow, "_ei"])} type=button${_attr("hidden", !open)} title=Close aria-label=Close${_attr("disabled", input$3.busy)}>`);
7680
+ _html(`<button${_attr_class([iconBtnRow, "_d_"])} type=button${_attr("hidden", !open)} title=Close aria-label=Close${_attr("disabled", input$3.busy)}>`);
7674
7681
  icon_xmark_default({ size: 14 });
7675
7682
  _html(`</button>${_el_resume($scope0_id, "g")}`);
7676
7683
  _if(() => {
7677
7684
  if (input$3.content) {
7678
7685
  const $scope4_id = _scope_id();
7679
- _html(`<ul${_attr_class([pop$1, "_ek"])} data-add-pop${_attr("hidden", !open || !value.trim())}>`);
7686
+ _html(`<ul${_attr_class([pop$1, "_eb"])} data-add-pop${_attr("hidden", !open || !value.trim())}>`);
7680
7687
  _dynamic_tag($scope4_id, "b", input$3.content, {}, 0, 0, $sg__input_content);
7681
7688
  _html(`</ul>${_el_resume($scope4_id, "a")}`);
7682
7689
  writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
@@ -7710,10 +7717,7 @@ var add_field_default = _template("b", (input$3) => {
7710
7717
  var icon_check_default = _template("Z", (input) => {
7711
7718
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
7712
7719
  const $scope0_id = _scope_id();
7713
- _set_serialize_reason({
7714
- 0: $sg__input_size__OR__input_class,
7715
- 1: $sg__input_size__OR__input_class
7716
- });
7720
+ _set_serialize_reason($sg__input_size__OR__input_class << 1 | $sg__input_size__OR__input_class << 3);
7717
7721
  const $childScope = _peek_scope_id();
7718
7722
  icon_base_default({
7719
7723
  d: "M5 13L9 17L19 7",
@@ -7801,14 +7805,14 @@ var sso_auth_default = _template("G", (input) => {
7801
7805
  localCode = null;
7802
7806
  }
7803
7807
  }, "G0", $scope0_id);
7804
- _html(`<div${_attr_class(["_hD", input.class])}>`);
7808
+ _html(`<div${_attr_class(["_gd", input.class])}>`);
7805
7809
  _for_of(input.items, (s) => {
7806
7810
  const $scope1_id = _scope_id();
7807
- _html(`<div${_attr_class("_hE")}><span${_attr_class("_hG")}><span${_attr_class("_hH")}>${_text_resume($scope1_id, "d", s.org, $sg__input_items)}</span><span${_attr_class(["_hI", "_hJ"])} title="Repos and PRs in this org stay hidden until the GitHub CLI is authorized for it.">SSO not authorized</span></span>`);
7811
+ _html(`<div${_attr_class("_ge")}><span${_attr_class("_gg")}><span${_attr_class("_gh")}>${_text_resume($scope1_id, "d", s.org, $sg__input_items)}</span><span${_attr_class(["_gi", "_gj"])} title="Repos and PRs in this org stay hidden until the GitHub CLI is authorized for it.">SSO not authorized</span></span>`);
7808
7812
  _if(() => {
7809
7813
  if (!busy) {
7810
7814
  const $scope2_id = _scope_id();
7811
- _html(`<button type=button${_attr_class([btnSm, "_r"])} title="Re-authorize GitHub CLI (same device flow as Sign in)">Authorize</button>${_el_resume($scope2_id, "a")}<button type=button${_attr_class([btnSm, "_hK"])}${_attr("title", `Ignore ${s.org} — stop asking about it`)}>Ignore</button>${_el_resume($scope2_id, "b")}`);
7815
+ _html(`<button type=button${_attr_class([btnSm, "_r"])} title="Re-authorize GitHub CLI (same device flow as Sign in)">Authorize</button>${_el_resume($scope2_id, "a")}<button type=button${_attr_class([btnSm, "_gk"])}${_attr("title", `Ignore ${s.org} — stop asking about it`)}>Ignore</button>${_el_resume($scope2_id, "b")}`);
7812
7816
  _script($scope2_id, "G1");
7813
7817
  writeScope($scope2_id, {});
7814
7818
  return 0;
@@ -7823,13 +7827,13 @@ var sso_auth_default = _template("G", (input) => {
7823
7827
  _if(() => {
7824
7828
  if (localBusy && localCode) {
7825
7829
  const $scope4_id = _scope_id();
7826
- _html(`<div${_attr_class(["_hE", "_hL"])}><span${_attr_class("_G")}></span> Enter code <strong${_attr_class("_hM")}>${_text_resume($scope4_id, "d", localCode)}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_hN")}>${_text_resume($scope4_id, "f", host, _serialize_guard($scope0_reason, 3))}/login/device</a>${_el_resume($scope4_id, "e")}</div>`);
7830
+ _html(`<div${_attr_class(["_ge", "_gl"])}><span${_attr_class("_G")}></span> Enter code <strong${_attr_class("_gm")}>${_text_resume($scope4_id, "d", localCode)}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_gn")}>${_text_resume($scope4_id, "f", host, _serialize_guard($scope0_reason, 3))}/login/device</a>${_el_resume($scope4_id, "e")}</div>`);
7827
7831
  _script($scope4_id, "G2");
7828
7832
  writeScope($scope4_id, {});
7829
7833
  return 0;
7830
7834
  } else if (localBusy) {
7831
7835
  const $scope6_id = _scope_id();
7832
- _html(`<div${_attr_class(["_hE", "_hL"])}><span${_attr_class("_G")}></span>Starting GitHub re-authorization…</div>`);
7836
+ _html(`<div${_attr_class(["_ge", "_gl"])}><span${_attr_class("_G")}></span>Starting GitHub re-authorization…</div>`);
7833
7837
  writeScope($scope6_id, {});
7834
7838
  return 1;
7835
7839
  }
@@ -7837,14 +7841,14 @@ var sso_auth_default = _template("G", (input) => {
7837
7841
  _if(() => {
7838
7842
  if (localError) {
7839
7843
  const $scope5_id = _scope_id();
7840
- _html(`<p${_attr_class(["_hE", "_hO"])}>${_text_resume($scope5_id, "b", localError)}</p>`);
7844
+ _html(`<p${_attr_class(["_ge", "_go"])}>${_text_resume($scope5_id, "b", localError)}</p>`);
7841
7845
  writeScope($scope5_id, {});
7842
7846
  return 0;
7843
7847
  }
7844
7848
  }, $scope0_id, "d", 1, 1, 1, 0, 1);
7845
7849
  _for_of(skipped, (s) => {
7846
7850
  const $scope3_id = _scope_id();
7847
- _html(`<div${_attr_class(["_hE", "_hF"])}><span${_attr_class("_hG")}><span${_attr_class("_hH")}>${_text_resume($scope3_id, "d", s.org, $sg__input_skipped)}</span><span${_attr_class("_hI")}>Ignored</span></span><button type=button${_attr_class([btnSm, "_hK"])}${_attr("title", `Ask about ${s.org} again`)}>Undo</button>${_el_resume($scope3_id, "f")}</div>`);
7851
+ _html(`<div${_attr_class(["_ge", "_gf"])}><span${_attr_class("_gg")}><span${_attr_class("_gh")}>${_text_resume($scope3_id, "d", s.org, $sg__input_skipped)}</span><span${_attr_class("_gi")}>Ignored</span></span><button type=button${_attr_class([btnSm, "_gk"])}${_attr("title", `Ask about ${s.org} again`)}>Undo</button>${_el_resume($scope3_id, "f")}</div>`);
7848
7852
  _script($scope3_id, "G3");
7849
7853
  writeScope($scope3_id, {
7850
7854
  i: s?.org,
@@ -7870,10 +7874,7 @@ var sso_auth_default = _template("G", (input) => {
7870
7874
  var icon_chevron_right_default = _template("$", (input) => {
7871
7875
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
7872
7876
  const $scope0_id = _scope_id();
7873
- _set_serialize_reason({
7874
- 0: $sg__input_size__OR__input_class,
7875
- 1: $sg__input_size__OR__input_class
7876
- });
7877
+ _set_serialize_reason($sg__input_size__OR__input_class << 1 | $sg__input_size__OR__input_class << 3);
7877
7878
  const $childScope = _peek_scope_id();
7878
7879
  icon_base_default({
7879
7880
  d: "M9 6L15 12L9 18",
@@ -7894,7 +7895,7 @@ var skill_chip_default = _template("F", (input) => {
7894
7895
  const $input_tags__closures = /* @__PURE__ */ new Set();
7895
7896
  const $input_actions__closures = /* @__PURE__ */ new Set();
7896
7897
  const $input_trailing__closures = /* @__PURE__ */ new Set();
7897
- _html(`<li${_attr_class("_d7")}>`);
7898
+ _html(`<li${_attr_class("_dY")}>`);
7898
7899
  _if(() => {
7899
7900
  if (input.busy != null) {
7900
7901
  const $scope1_id = _scope_id();
@@ -7904,20 +7905,20 @@ var skill_chip_default = _template("F", (input) => {
7904
7905
  } else {
7905
7906
  const $scope2_id = _scope_id();
7906
7907
  const popId = _id();
7907
- _html(`<button${_attr_class("_d8")}${_attr("popovertarget", popId)}${_attr("title", `About ${input.name}`)}>${_text_resume($scope2_id, "b", input.name, $sg__input_name)}`);
7908
+ _html(`<button${_attr_class("_dZ")}${_attr("popovertarget", popId)}${_attr("title", `About ${input.name}`)}>${_text_resume($scope2_id, "b", input.name, $sg__input_name)}`);
7908
7909
  _if(() => {
7909
7910
  if (input.hint) {
7910
7911
  const $scope3_id = _scope_id();
7911
- _html(`<span${_attr_class("_d_")}>${_text_resume($scope3_id, "b", input.hint, $sg__input_hint)}</span>`);
7912
+ _html(`<span${_attr_class("_d1")}>${_text_resume($scope3_id, "b", input.hint, $sg__input_hint)}</span>`);
7912
7913
  $si__input_busy__OR__input_hint && _subscribe($si__input_hint && $input_hint__closures, writeScope($scope3_id, { _: _scope_with_id($scope2_id) }));
7913
7914
  return 0;
7914
7915
  }
7915
7916
  }, $scope2_id, "c", $sg__input_hint, $sg__input_hint, $sg__input_hint__OR__input_description__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal__OR__input_tags__OR__input_actions__OR__input_trailing, 0, 1);
7916
- _html(`</button>${_el_resume($scope2_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(pop)}><span${_attr_class(["_b1", "_y"])}>${_text_resume($scope2_id, "f", input.name, $sg__input_name)}</span>`);
7917
+ _html(`</button>${_el_resume($scope2_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(pop)}><span${_attr_class(["_b3", "_y"])}>${_text_resume($scope2_id, "f", input.name, $sg__input_name)}</span>`);
7917
7918
  _if(() => {
7918
7919
  if (input.description) {
7919
7920
  const $scope4_id = _scope_id();
7920
- _html(`<span${_attr_class("_b3")}${_attr("title", input.description)}>${_text_resume($scope4_id, "b", input.description, $sg__input_description)}</span>${_el_resume($scope4_id, "a", $sg__input_description)}`);
7921
+ _html(`<span${_attr_class("_b5")}${_attr("title", input.description)}>${_text_resume($scope4_id, "b", input.description, $sg__input_description)}</span>${_el_resume($scope4_id, "a", $sg__input_description)}`);
7921
7922
  $si__input_busy__OR__input_description && _subscribe($si__input_description && $input_description__closures, writeScope($scope4_id, { _: _scope_with_id($scope2_id) }));
7922
7923
  return 0;
7923
7924
  }
@@ -7925,12 +7926,12 @@ var skill_chip_default = _template("F", (input) => {
7925
7926
  _if(() => {
7926
7927
  if (input.sourceUrl) {
7927
7928
  const $scope5_id = _scope_id();
7928
- _html(`<a${_attr_class(["_b3", "_K"])}${_attr("href", input.sourceUrl)} target=_blank rel=noopener${_attr("title", `Open ${input.source} on GitHub`)}>${_text_resume($scope5_id, "b", input.source, $sg__input_source)}</a>${_el_resume($scope5_id, "a", $sg__input_sourceUrl__OR__input_source)}`);
7929
+ _html(`<a${_attr_class(["_b5", "_K"])}${_attr("href", input.sourceUrl)} target=_blank rel=noopener${_attr("title", `Open ${input.source} on GitHub`)}>${_text_resume($scope5_id, "b", input.source, $sg__input_source)}</a>${_el_resume($scope5_id, "a", $sg__input_sourceUrl__OR__input_source)}`);
7929
7930
  $si__input_busy__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal && _subscribe($si__input_source && $input_source__closures, _subscribe($si__input_sourceUrl && $input_sourceUrl__closures, writeScope($scope5_id, { _: _scope_with_id($scope2_id) })));
7930
7931
  return 0;
7931
7932
  } else if (input.source) {
7932
7933
  const $scope6_id = _scope_id();
7933
- _html(`<span${_attr_class("_b3")}>${_text_resume($scope6_id, "b", input.source, $sg__input_source)}</span>`);
7934
+ _html(`<span${_attr_class("_b5")}>${_text_resume($scope6_id, "b", input.source, $sg__input_source)}</span>`);
7934
7935
  $si__input_busy__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal && _subscribe($si__input_source && $input_source__closures, writeScope($scope6_id, {
7935
7936
  _: _scope_with_id($scope2_id),
7936
7937
  Cs: $si__input_source && 1
@@ -7938,7 +7939,7 @@ var skill_chip_default = _template("F", (input) => {
7938
7939
  return 1;
7939
7940
  } else if (input.noteLocal) {
7940
7941
  const $scope10_id = _scope_id();
7941
- _html(`<span${_attr_class(["_b3", "_x"])} title="Not installed from a source, so it cannot be updated">local only</span>`);
7942
+ _html(`<span${_attr_class(["_b5", "_x"])} title="Not installed from a source, so it cannot be updated">local only</span>`);
7942
7943
  _serialize_if($scope0_reason, 8) && writeScope($scope10_id, {});
7943
7944
  return 2;
7944
7945
  }
@@ -7946,7 +7947,7 @@ var skill_chip_default = _template("F", (input) => {
7946
7947
  _if(() => {
7947
7948
  if (input.tags) {
7948
7949
  const $scope7_id = _scope_id();
7949
- _html(`<span${_attr_class("_b2")}>`);
7950
+ _html(`<span${_attr_class("_b4")}>`);
7950
7951
  _dynamic_tag($scope7_id, "b", input.tags, {}, 0, 0, $sg__input_tags);
7951
7952
  _html("</span>");
7952
7953
  $si__input_busy__OR__input_tags && _subscribe($si__input_tags && $input_tags__closures, writeScope($scope7_id, { _: _scope_with_id($scope2_id) }));
@@ -7956,7 +7957,7 @@ var skill_chip_default = _template("F", (input) => {
7956
7957
  _if(() => {
7957
7958
  if (input.actions) {
7958
7959
  const $scope8_id = _scope_id();
7959
- _html(`<div${_attr_class("_eb")}>`);
7960
+ _html(`<div${_attr_class("_d3")}>`);
7960
7961
  _dynamic_tag($scope8_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
7961
7962
  _html("</div>");
7962
7963
  $si__input_busy__OR__input_actions && _subscribe($si__input_actions && $input_actions__closures, writeScope($scope8_id, { _: _scope_with_id($scope2_id) }));
@@ -8002,10 +8003,7 @@ var skill_chip_default = _template("F", (input) => {
8002
8003
  var icon_arrow_up_default = _template("U", (input) => {
8003
8004
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
8004
8005
  const $scope0_id = _scope_id();
8005
- _set_serialize_reason({
8006
- 0: $sg__input_size__OR__input_class,
8007
- 1: $sg__input_size__OR__input_class
8008
- });
8006
+ _set_serialize_reason($sg__input_size__OR__input_class << 1 | $sg__input_size__OR__input_class << 3);
8009
8007
  const $childScope = _peek_scope_id();
8010
8008
  icon_base_default({
8011
8009
  d: "M12 21L12 3M12 3L20.5 11.5M12 3L3.5 11.5",
@@ -8019,10 +8017,7 @@ var icon_arrow_up_default = _template("U", (input) => {
8019
8017
  var icon_monitor_default = _template("mb", (input) => {
8020
8018
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
8021
8019
  const $scope0_id = _scope_id();
8022
- _set_serialize_reason({
8023
- 0: $sg__input_size__OR__input_class,
8024
- 1: $sg__input_size__OR__input_class
8025
- });
8020
+ _set_serialize_reason($sg__input_size__OR__input_class << 1 | $sg__input_size__OR__input_class << 3);
8026
8021
  const $childScope = _peek_scope_id();
8027
8022
  icon_base_default({
8028
8023
  d: "M2 21L17 21 M21 21L22 21 M2 16.4V3.6C2 3.26863 2.26863 3 2.6 3H21.4C21.7314 3 22 3.26863 22 3.6V16.4C22 16.7314 21.7314 17 21.4 17H2.6C2.26863 17 2 16.7314 2 16.4Z",
@@ -8036,10 +8031,7 @@ var icon_monitor_default = _template("mb", (input) => {
8036
8031
  var icon_sun_default = _template("ub", (input) => {
8037
8032
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
8038
8033
  const $scope0_id = _scope_id();
8039
- _set_serialize_reason({
8040
- 0: $sg__input_size__OR__input_class,
8041
- 1: $sg__input_size__OR__input_class
8042
- });
8034
+ _set_serialize_reason($sg__input_size__OR__input_class << 1 | $sg__input_size__OR__input_class << 3);
8043
8035
  const $childScope = _peek_scope_id();
8044
8036
  icon_base_default({
8045
8037
  d: "M12 18C15.3137 18 18 15.3137 18 12C18 8.68629 15.3137 6 12 6C8.68629 6 6 8.68629 6 12C6 15.3137 8.68629 18 12 18Z M22 12L23 12 M12 2V1 M12 23V22 M20 20L19 19 M20 4L19 5 M4 20L5 19 M4 4L5 5 M1 12L2 12",
@@ -8053,10 +8045,7 @@ var icon_sun_default = _template("ub", (input) => {
8053
8045
  var icon_moon_default = _template("nb", (input) => {
8054
8046
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
8055
8047
  const $scope0_id = _scope_id();
8056
- _set_serialize_reason({
8057
- 0: $sg__input_size__OR__input_class,
8058
- 1: $sg__input_size__OR__input_class
8059
- });
8048
+ _set_serialize_reason($sg__input_size__OR__input_class << 1 | $sg__input_size__OR__input_class << 3);
8060
8049
  const $childScope = _peek_scope_id();
8061
8050
  icon_base_default({
8062
8051
  d: "M3 11.5066C3 16.7497 7.25034 21 12.4934 21C16.2209 21 19.4466 18.8518 21 15.7259C12.4934 15.7259 8.27411 11.5066 8.27411 3C5.14821 4.55344 3 7.77915 3 11.5066Z",
@@ -8067,7 +8056,7 @@ var icon_moon_default = _template("nb", (input) => {
8067
8056
  });
8068
8057
  //#endregion
8069
8058
  //#region src/tags/prompt-dialog.css.ts
8070
- var promptDlg = "_g9 _g5";
8059
+ var promptDlg = "_fx _ft";
8071
8060
  //#endregion
8072
8061
  //#region src/tags/dialog-close.marko
8073
8062
  var dialog_close_default = _template("h", (input) => {
@@ -8091,7 +8080,7 @@ var modal_view_default = _template("q", (input) => {
8091
8080
  const { label, class: inputClass, open: _open, openChange: _openChange, dismissable: _dismissable, content, footer, closedby: _closedby, onCancel: _onCancel, onClose: _onClose, "aria-label": inputAriaLabel, "aria-labelledby": inputLabelledBy, ...htmlInput } = input;
8092
8081
  const dismissable = input.dismissable !== false;
8093
8082
  let open = input.open;
8094
- _html(`<dialog${_attr_class(["_g4", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
8083
+ _html(`<dialog${_attr_class(["_fs", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
8095
8084
  ...htmlInput,
8096
8085
  open: null
8097
8086
  }, {
@@ -8101,20 +8090,20 @@ var modal_view_default = _template("q", (input) => {
8101
8090
  closedby: 1,
8102
8091
  "on-cancel": 1,
8103
8092
  "on-close": 1
8104
- }, "a", $scope0_id, "dialog")}><div${_attr_class("_g7")}>`);
8093
+ }, "a", $scope0_id, "dialog")}><div${_attr_class("_fv")}>`);
8105
8094
  _dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
8106
8095
  _html("</div>");
8107
8096
  _if(() => {
8108
8097
  if (footer) {
8109
8098
  const $scope1_id = _scope_id();
8110
- _html(`<form method=dialog${_attr_class("_g8")}>`);
8099
+ _html(`<form method=dialog${_attr_class("_fw")}>`);
8111
8100
  _dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, $sg__input_footer_content);
8112
8101
  _html("</form>");
8113
8102
  $si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
8114
8103
  return 0;
8115
8104
  } else if (input.openChange) {
8116
8105
  const $scope2_id = _scope_id();
8117
- _html(`<form method=dialog${_attr_class("_g8")}>`);
8106
+ _html(`<form method=dialog${_attr_class("_fw")}>`);
8118
8107
  dialog_close_default({
8119
8108
  class: ["_q", "_r"],
8120
8109
  content: _content("q0", () => {
@@ -8163,11 +8152,7 @@ var prompt_dialog_default = _template("u", (input) => {
8163
8152
  }, "u1", $scope0_id);
8164
8153
  let open = input.open;
8165
8154
  const titleId = _id();
8166
- _set_serialize_reason({
8167
- 0: 1,
8168
- 2: $sg__input_label,
8169
- 3: $sg__input_label
8170
- });
8155
+ _set_serialize_reason(2 | ($sg__input_label << 5 | $sg__input_label << 7));
8171
8156
  const $childScope = _peek_scope_id();
8172
8157
  modal_view_default({
8173
8158
  label: input.label,
@@ -8196,7 +8181,7 @@ var prompt_dialog_default = _template("u", (input) => {
8196
8181
  content: _content("u7", () => {
8197
8182
  _scope_reason();
8198
8183
  const $scope2_id = _scope_id();
8199
- _html(`<h2${_attr_class("_g6")}${_attr("id", titleId)}>${_text_resume($scope2_id, "b", input.label, $sg__input_label)}</h2><input${_attr_input_value($scope2_id, "c", value, _resume((_new_value) => {
8184
+ _html(`<h2${_attr_class("_fu")}${_attr("id", titleId)}>${_text_resume($scope2_id, "b", input.label, $sg__input_label)}</h2><input${_attr_input_value($scope2_id, "c", value, _resume((_new_value) => {
8200
8185
  value = _new_value;
8201
8186
  }, "u0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
8202
8187
  _script($scope2_id, "u5");
@@ -8738,13 +8723,8 @@ var settings_page_default = _template("B", (input) => {
8738
8723
  const githubId = _id();
8739
8724
  const backupId = _id();
8740
8725
  const machineId = _id();
8741
- _html(`<div${_attr_class("_dX")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_dY")}><div${_attr_class("_dZ")}>`);
8742
- _set_serialize_reason({
8743
- 0: _serialize_guard($scope0_reason, 4),
8744
- 1: $sg__input_backHref__OR__input_onExit,
8745
- 2: $sg__input_backHref__OR__input_onExit,
8746
- 3: $sg__input_backHref__OR__input_onExit
8747
- });
8726
+ _html(`<div${_attr_class("_ee")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_ef")}><div${_attr_class("_eg")}>`);
8727
+ _set_serialize_reason(_serialize_guard($scope0_reason, 4) << 1 | $sg__input_backHref__OR__input_onExit << 3 | $sg__input_backHref__OR__input_onExit << 5 | $sg__input_backHref__OR__input_onExit << 7);
8748
8728
  const $childScope2 = _peek_scope_id();
8749
8729
  page_head_default({
8750
8730
  title: "Settings",
@@ -8755,7 +8735,7 @@ var settings_page_default = _template("B", (input) => {
8755
8735
  _scope_reason();
8756
8736
  const $scope12_id = _scope_id();
8757
8737
  _html(`<button${_attr_class(iconBtnRow)} title="Refresh: re-check this machine and agent usage" aria-label="Re-check this machine"${_attr("disabled", refreshing)}>`);
8758
- _set_serialize_reason(1);
8738
+ _set_serialize_reason(2);
8759
8739
  const $childScope = _peek_scope_id();
8760
8740
  icon_refresh_default({
8761
8741
  size: 14,
@@ -8769,7 +8749,7 @@ var settings_page_default = _template("B", (input) => {
8769
8749
  }));
8770
8750
  }, $scope0_id) })
8771
8751
  });
8772
- _html(`<div${_attr_class("_d0")}>`);
8752
+ _html(`<div${_attr_class("_eh")}>`);
8773
8753
  _if(() => {
8774
8754
  if (setup && !setup.ready) {
8775
8755
  const $scope4_id = _scope_id();
@@ -8849,7 +8829,7 @@ var settings_page_default = _template("B", (input) => {
8849
8829
  _: _scope_with_id($scope0_id)
8850
8830
  });
8851
8831
  }, $scope0_id) };
8852
- _html(`<section${_attr_class("_bU")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_bV")}><h2${_attr("id", agentsId)}${_attr_class("_b8")}>Agents</h2><div${_attr_class("_z")}></div><label${_attr_class("_cT")}><span${_attr_class("_W")}>Default</span><span${_attr_class("_o")}>`);
8832
+ _html(`<section${_attr_class("_bW")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_bX")}><h2${_attr("id", agentsId)}${_attr_class("_b_")}>Agents</h2><div${_attr_class("_z")}></div><label${_attr_class("_cT")}><span${_attr_class("_W")}>Default</span><span${_attr_class("_o")}>`);
8853
8833
  _attr_select_value($scope0_id, "p", input.preferred, _resume(function(v) {
8854
8834
  setPreferred(v);
8855
8835
  }, "B0", $scope0_id), () => {
@@ -8869,13 +8849,13 @@ var settings_page_default = _template("B", (input) => {
8869
8849
  const loneAccounts = lone ? accountsFor(lone.id) : [];
8870
8850
  const extraAccounts = a.installed ? strayAccountsFor(a) : [];
8871
8851
  _html(`<li${_attr_class(agentRow)}><div${_attr_class(["_cV", { ["_cX"]: lone && !lone.enabled }])}>`);
8872
- _set_serialize_reason(12);
8852
+ _set_serialize_reason(40);
8873
8853
  const $childScope3 = _peek_scope_id();
8874
8854
  icon_agent_default({
8875
8855
  agent: a.id,
8876
8856
  size: 18
8877
8857
  });
8878
- _html(`<div${_attr_class("_b0")}><span${_attr_class("_b2")}><span${_attr_class("_b1")}>${_text_resume($scope1_id, "g", a.label)}</span>`);
8858
+ _html(`<div${_attr_class("_b2")}><span${_attr_class("_b4")}><span${_attr_class("_b3")}>${_text_resume($scope1_id, "g", a.label)}</span>`);
8879
8859
  _if(() => {
8880
8860
  if (lone && input.preferred === lone.id) {
8881
8861
  const $scope85_id = _scope_id();
@@ -8893,7 +8873,7 @@ var settings_page_default = _template("B", (input) => {
8893
8873
  return 0;
8894
8874
  } else if (!a.installed) {
8895
8875
  const $scope86_id = _scope_id();
8896
- _html(`<span${_attr_class("_b3")}>Not installed</span>`);
8876
+ _html(`<span${_attr_class("_b5")}>Not installed</span>`);
8897
8877
  writeScope($scope86_id, {});
8898
8878
  return 1;
8899
8879
  }
@@ -8929,7 +8909,7 @@ var settings_page_default = _template("B", (input) => {
8929
8909
  const $scope3_id = _scope_id();
8930
8910
  const accounts = accountsFor(inst.id);
8931
8911
  _html(`<li${_attr_class(["_cW", { ["_cX"]: !inst.enabled }])}><div${_attr_class("_cV")}>`);
8932
- _set_serialize_reason(12);
8912
+ _set_serialize_reason(40);
8933
8913
  const $childScope5 = _peek_scope_id();
8934
8914
  icon_agent_default({ agent: inst.id });
8935
8915
  _html(`<span${_attr_class(["_cY", "_y"])}>${_text_resume($scope3_id, "e", inst.command)}</span>`);
@@ -8950,7 +8930,7 @@ var settings_page_default = _template("B", (input) => {
8950
8930
  _html("</div>");
8951
8931
  _for_of(accounts, (u) => {
8952
8932
  const $scope88_id = _scope_id();
8953
- _set_serialize_reason(6);
8933
+ _set_serialize_reason(10);
8954
8934
  const $childScope7 = _peek_scope_id();
8955
8935
  usage_meters_default({
8956
8936
  agent: u,
@@ -8968,7 +8948,7 @@ var settings_page_default = _template("B", (input) => {
8968
8948
  _for_of([...loneAccounts, ...extraAccounts], (u) => {
8969
8949
  const $scope84_id = _scope_id();
8970
8950
  _html("<li>");
8971
- _set_serialize_reason(1);
8951
+ _set_serialize_reason(42);
8972
8952
  const $childScope8 = _peek_scope_id();
8973
8953
  usage_meters_default({
8974
8954
  agent: u,
@@ -9001,7 +8981,7 @@ var settings_page_default = _template("B", (input) => {
9001
8981
  _for_of(otherUsage, (u) => {
9002
8982
  const $scope89_id = _scope_id();
9003
8983
  _html(`<li${_attr_class(agentRow)}>`);
9004
- _set_serialize_reason(6);
8984
+ _set_serialize_reason(10);
9005
8985
  const $childScope9 = _peek_scope_id();
9006
8986
  usage_meters_default({ agent: u });
9007
8987
  _html("</li>");
@@ -9011,21 +8991,21 @@ var settings_page_default = _template("B", (input) => {
9011
8991
  _if(() => {
9012
8992
  if (!usage && families.length) {
9013
8993
  const $scope90_id = _scope_id();
9014
- _html(`<p${_attr_class("_b5")}><span${_attr_class("_G")}></span> Loading usage…</p>`);
8994
+ _html(`<p${_attr_class("_b7")}><span${_attr_class("_G")}></span> Loading usage…</p>`);
9015
8995
  writeScope($scope90_id, {});
9016
8996
  return 0;
9017
8997
  } else if (usage?.error) {
9018
8998
  const $scope9_id = _scope_id();
9019
- _html(`<p${_attr_class("_b5")}>${_text_resume($scope9_id, "b", usage.error)}</p>`);
8999
+ _html(`<p${_attr_class("_b7")}>${_text_resume($scope9_id, "b", usage.error)}</p>`);
9020
9000
  writeScope($scope9_id, {});
9021
9001
  return 1;
9022
9002
  }
9023
9003
  }, $scope0_id, "t", 1, 1, 1, 0, 1);
9024
- _html(`</section></div><div${_attr_class("_d0")}><section${_attr_class("_bU")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_bV")}><h2${_attr("id", githubId)}${_attr_class("_b8")}>GitHub</h2>`);
9004
+ _html(`</section></div><div${_attr_class("_eh")}><section${_attr_class("_bW")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_bX")}><h2${_attr("id", githubId)}${_attr_class("_b_")}>GitHub</h2>`);
9025
9005
  _if(() => {
9026
9006
  if (setup) {
9027
9007
  const $scope41_id = _scope_id();
9028
- _set_serialize_reason(44);
9008
+ _set_serialize_reason(552);
9029
9009
  const $childScope10 = _peek_scope_id();
9030
9010
  add_field_default({
9031
9011
  class: "_c7",
@@ -9058,7 +9038,7 @@ var settings_page_default = _template("B", (input) => {
9058
9038
  return 0;
9059
9039
  }
9060
9040
  }, $scope0_id, "y");
9061
- _html(`</div><div${_attr_class(["_bZ", "_cs"])}>`);
9041
+ _html(`</div><div${_attr_class(["_b1", "_cs"])}>`);
9062
9042
  _for_of(setup?.github || [], (h) => {
9063
9043
  const $scope7_id = _scope_id();
9064
9044
  const $for_content3__h_host__closures = /* @__PURE__ */ new Set();
@@ -9070,7 +9050,7 @@ var settings_page_default = _template("B", (input) => {
9070
9050
  size: 18,
9071
9051
  class: "_c_"
9072
9052
  });
9073
- _html(`<div${_attr_class("_b0")}><span${_attr_class("_b2")}><span${_attr_class("_b1")}>${_text_resume($scope7_id, "g", h.host)}</span>`);
9053
+ _html(`<div${_attr_class("_b2")}><span${_attr_class("_b4")}><span${_attr_class("_b3")}>${_text_resume($scope7_id, "g", h.host)}</span>`);
9074
9054
  _if(() => {
9075
9055
  if (h.isEnterprise) {
9076
9056
  const $scope94_id = _scope_id();
@@ -9083,12 +9063,12 @@ var settings_page_default = _template("B", (input) => {
9083
9063
  _if(() => {
9084
9064
  if (busy) {
9085
9065
  const $scope14_id = _scope_id();
9086
- _html(`<span${_attr_class(["_b3", "_da"])}><span${_attr_class("_G")}></span>${_text_resume($scope14_id, "c", authCodes.has(h.host) ? "Waiting for the browser…" : active.get(h.host) || "Starting…")}</span>`);
9066
+ _html(`<span${_attr_class(["_b5", "_da"])}><span${_attr_class("_G")}></span>${_text_resume($scope14_id, "c", authCodes.has(h.host) ? "Waiting for the browser…" : active.get(h.host) || "Starting…")}</span>`);
9087
9067
  _subscribe($authCodes__closures, _subscribe($active__closures, writeScope($scope14_id, { Ch1: 1 })));
9088
9068
  return 0;
9089
9069
  } else if (h.authed) {
9090
9070
  const $scope92_id = _scope_id();
9091
- _html(`<span${_attr_class(["_b3", "_da"])}>`);
9071
+ _html(`<span${_attr_class(["_b5", "_da"])}>`);
9092
9072
  icon_check_default({
9093
9073
  size: 12,
9094
9074
  class: "_db"
@@ -9099,7 +9079,7 @@ var settings_page_default = _template("B", (input) => {
9099
9079
  } else if (h.error) {
9100
9080
  const $scope93_id = _scope_id();
9101
9081
  _html(`<span${_attr_class([
9102
- "_b3",
9082
+ "_b5",
9103
9083
  "_da",
9104
9084
  "_dc"
9105
9085
  ])}>`);
@@ -9109,7 +9089,7 @@ var settings_page_default = _template("B", (input) => {
9109
9089
  return 2;
9110
9090
  } else {
9111
9091
  const $scope95_id = _scope_id();
9112
- _html(`<span${_attr_class(["_b3", "_da"])}>Not signed in</span>`);
9092
+ _html(`<span${_attr_class(["_b5", "_da"])}>Not signed in</span>`);
9113
9093
  writeScope($scope95_id, {});
9114
9094
  return 3;
9115
9095
  }
@@ -9152,7 +9132,7 @@ var settings_page_default = _template("B", (input) => {
9152
9132
  const $childScope12 = _peek_scope_id();
9153
9133
  arm_button_default({
9154
9134
  class: [
9155
- "_b4",
9135
+ "_b6",
9156
9136
  "_7",
9157
9137
  "_8"
9158
9138
  ],
@@ -9192,7 +9172,7 @@ var settings_page_default = _template("B", (input) => {
9192
9172
  _if(() => {
9193
9173
  if (hostSso$1.length || skippedSso.length) {
9194
9174
  const $scope8_id = _scope_id();
9195
- _set_serialize_reason(30);
9175
+ _set_serialize_reason(170);
9196
9176
  const $childScope13 = _peek_scope_id();
9197
9177
  sso_auth_default({
9198
9178
  class: ["_ct", "_di"],
@@ -9229,13 +9209,13 @@ var settings_page_default = _template("B", (input) => {
9229
9209
  _if(() => {
9230
9210
  if (setup && !setup.github.length) {
9231
9211
  const $scope98_id = _scope_id();
9232
- _html(`<p${_attr_class("_b5")}>Install the GitHub CLI below to sign in.</p>`);
9212
+ _html(`<p${_attr_class("_b7")}>Install the GitHub CLI below to sign in.</p>`);
9233
9213
  writeScope($scope98_id, {});
9234
9214
  return 0;
9235
9215
  }
9236
9216
  }, $scope0_id, "a0", 1, 1, 1, 0, 1);
9237
- _html(`</section><section${_attr_class("_bU")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_bV")}><h2${_attr("id", machineId)}${_attr_class("_b8")}>Machine</h2></div><div${_attr_class(["_bZ", "_cs"])}><div${_attr_class(["_ct", "_cu"])}><div${_attr_class(["_cv", { ["_cw"]: skillsOpen }])}><button${_attr_class("_cx")} aria-expanded=true>`);
9238
- _set_serialize_reason(1);
9217
+ _html(`</section><section${_attr_class("_bW")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_bX")}><h2${_attr("id", machineId)}${_attr_class("_b_")}>Machine</h2></div><div${_attr_class(["_b1", "_cs"])}><div${_attr_class(["_ct", "_cu"])}><div${_attr_class(["_cv", { ["_cw"]: skillsOpen }])}><button${_attr_class("_cx")} aria-expanded=true>`);
9218
+ _set_serialize_reason(2);
9239
9219
  const $childScope14 = _peek_scope_id();
9240
9220
  icon_chevron_right_default({
9241
9221
  size: 12,
@@ -9254,7 +9234,7 @@ var settings_page_default = _template("B", (input) => {
9254
9234
  _if(() => {
9255
9235
  if (skills?.available && skills.agents.length) {
9256
9236
  const $scope15_id = _scope_id();
9257
- _set_serialize_reason(106);
9237
+ _set_serialize_reason(2594);
9258
9238
  const $childScope15 = _peek_scope_id();
9259
9239
  add_field_default({
9260
9240
  open: addingSkill,
@@ -9273,7 +9253,7 @@ var settings_page_default = _template("B", (input) => {
9273
9253
  _if(() => {
9274
9254
  if (skillSearching && !skillHits?.length && !looksLikeSource(skillQuery)) {
9275
9255
  const $scope99_id = _scope_id();
9276
- _html(`<li${_attr_class("_el")}>Searching skills.sh…</li>`);
9256
+ _html(`<li${_attr_class("_ec")}>Searching skills.sh…</li>`);
9277
9257
  writeScope($scope99_id, {});
9278
9258
  return 0;
9279
9259
  }
@@ -9281,7 +9261,7 @@ var settings_page_default = _template("B", (input) => {
9281
9261
  _if(() => {
9282
9262
  if (looksLikeSource(skillQuery)) {
9283
9263
  const $scope17_id = _scope_id();
9284
- _html(`<li${_attr_class(toolRow)}><div${_attr_class("_b0")}><span${_attr_class(["_c3", "_y"])}>${_text_resume($scope17_id, "d", skillQuery.trim())}</span>`);
9264
+ _html(`<li${_attr_class(toolRow)}><div${_attr_class("_b2")}><span${_attr_class(["_c3", "_y"])}>${_text_resume($scope17_id, "d", skillQuery.trim())}</span>`);
9285
9265
  _if(() => {
9286
9266
  if (active.has(skillQuery.trim())) {
9287
9267
  const $scope18_id = _scope_id();
@@ -9293,7 +9273,7 @@ var settings_page_default = _template("B", (input) => {
9293
9273
  return 0;
9294
9274
  } else {
9295
9275
  const $scope100_id = _scope_id();
9296
- _html(`<span${_attr_class("_b3")}>Add straight from this source</span>`);
9276
+ _html(`<span${_attr_class("_b5")}>Add straight from this source</span>`);
9297
9277
  writeScope($scope100_id, {});
9298
9278
  return 1;
9299
9279
  }
@@ -9319,7 +9299,7 @@ var settings_page_default = _template("B", (input) => {
9319
9299
  _for_of(skillHits || [], (h) => {
9320
9300
  const $scope19_id = _scope_id();
9321
9301
  const $for_content4__h_installs__closures = /* @__PURE__ */ new Set();
9322
- _html(`<li${_attr_class(toolRow)}><div${_attr_class("_b0")}><span${_attr_class(["_c3", "_y"])}>${_text_resume($scope19_id, "d", h.name)}</span>`);
9302
+ _html(`<li${_attr_class(toolRow)}><div${_attr_class("_b2")}><span${_attr_class(["_c3", "_y"])}>${_text_resume($scope19_id, "d", h.name)}</span>`);
9323
9303
  _if(() => {
9324
9304
  if (active.has(h.skillId)) {
9325
9305
  const $scope20_id = _scope_id();
@@ -9328,7 +9308,7 @@ var settings_page_default = _template("B", (input) => {
9328
9308
  return 0;
9329
9309
  } else {
9330
9310
  const $scope101_id = _scope_id();
9331
- _html(`<span${_attr_class("_b3")}${_attr("title", h.source)}>${_text_resume($scope101_id, "b", h.source)}</span>${_el_resume($scope101_id, "a")}`);
9311
+ _html(`<span${_attr_class("_b5")}${_attr("title", h.source)}>${_text_resume($scope101_id, "b", h.source)}</span>${_el_resume($scope101_id, "a")}`);
9332
9312
  writeScope($scope101_id, {});
9333
9313
  return 1;
9334
9314
  }
@@ -9376,7 +9356,7 @@ var settings_page_default = _template("B", (input) => {
9376
9356
  _if(() => {
9377
9357
  if (skillHits && !skillHits.length && !skillSearching && !looksLikeSource(skillQuery)) {
9378
9358
  const $scope52_id = _scope_id();
9379
- _html(`<li${_attr_class("_el")}>No skills match "${_text_resume($scope52_id, "b", skillQuery, 2)}".</li>`);
9359
+ _html(`<li${_attr_class("_ec")}>No skills match "${_text_resume($scope52_id, "b", skillQuery, 2)}".</li>`);
9380
9360
  _subscribe($skillQuery__closures, writeScope($scope52_id, { Chs: 3 }));
9381
9361
  return 0;
9382
9362
  }
@@ -9396,23 +9376,45 @@ var settings_page_default = _template("B", (input) => {
9396
9376
  _if(() => {
9397
9377
  if (skills && !skills.agents.length) {
9398
9378
  const $scope104_id = _scope_id();
9399
- _html(`<p${_attr_class("_b5")}>No agent CLIs are installed, so a skill would have nowhere to go. Install one from Agents above.</p>`);
9379
+ _html(`<p${_attr_class("_b7")}>No agent CLIs are installed, so a skill would have nowhere to go. Install one from Agents above.</p>`);
9400
9380
  writeScope($scope104_id, {});
9401
9381
  return 0;
9402
9382
  } else if (skills && !skills.available) {
9403
9383
  const $scope22_id = _scope_id();
9404
- _html(`<p${_attr_class("_b5")}>The skills CLI is not installed, so skills can be listed but not added or removed. <button${_attr_class(btnSm)}${_attr("disabled", active.has("skills"))}>${_text_resume($scope22_id, "c", active.has("skills") ? "Installing…" : "Install it")}</button>${_el_resume($scope22_id, "b")}</p>`);
9384
+ _html(`<p${_attr_class("_b7")}>The skills CLI is not installed, so skills can be listed but not added or removed. <button${_attr_class(btnSm)}${_attr("disabled", active.has("skills"))}>${_text_resume($scope22_id, "c", active.has("skills") ? "Installing…" : "Install it")}</button>${_el_resume($scope22_id, "b")}</p>`);
9405
9385
  _script($scope22_id, "B66");
9406
9386
  _subscribe($active__closures, writeScope($scope22_id, { Ch1: 6 }));
9407
9387
  return 1;
9408
9388
  }
9409
9389
  }, $scope21_id, "b", 1, 1, 1, 0, 1);
9410
- _html(`<ul${_attr_class("_d6")}>`);
9390
+ _html(`<ul${_attr_class("_dX")}>`);
9411
9391
  _for_of(skills?.global || [], (s) => {
9412
9392
  const $scope23_id = _scope_id();
9413
9393
  const $for_content5__s_agents__closures = /* @__PURE__ */ new Set();
9414
9394
  const $for_content5__s_name__closures = /* @__PURE__ */ new Set();
9415
- _set_serialize_reason(8323070);
9395
+ _set_serialize_reason({
9396
+ 0: 1,
9397
+ 1: 1,
9398
+ 2: 1,
9399
+ 3: 1,
9400
+ 4: 1,
9401
+ 5: 1,
9402
+ 6: 1,
9403
+ 7: 1,
9404
+ 8: 1,
9405
+ 9: 1,
9406
+ 10: 1,
9407
+ 11: 1,
9408
+ 12: 1,
9409
+ 13: 1,
9410
+ 14: 1,
9411
+ 16: 1,
9412
+ 17: 1,
9413
+ 18: 1,
9414
+ 19: 1,
9415
+ 20: 1,
9416
+ 21: 1
9417
+ });
9416
9418
  let $tags;
9417
9419
  let $actions;
9418
9420
  let $trailing;
@@ -9483,7 +9485,7 @@ var settings_page_default = _template("B", (input) => {
9483
9485
  _if(() => {
9484
9486
  if (skills && !skills.global.length && skills.available && skills.agents.length) {
9485
9487
  const $scope108_id = _scope_id();
9486
- _html(`<p${_attr_class("_b5")}>No skills installed. Search below, or paste an owner/repo.</p>`);
9488
+ _html(`<p${_attr_class("_b7")}>No skills installed. Search below, or paste an owner/repo.</p>`);
9487
9489
  writeScope($scope108_id, {});
9488
9490
  return 0;
9489
9491
  }
@@ -9494,7 +9496,7 @@ var settings_page_default = _template("B", (input) => {
9494
9496
  }
9495
9497
  }, $scope0_id, "ac", 1, 1, 1, 0, 1);
9496
9498
  _html(`</div><div${_attr_class(["_ct", "_cu"])}><div${_attr_class(["_cv", { ["_cw"]: machineOpen }])}><button${_attr_class("_cx")} aria-expanded=${machineOpen ? "true" : "false"}>`);
9497
- _set_serialize_reason(1);
9499
+ _set_serialize_reason(2);
9498
9500
  const $childScope18 = _peek_scope_id();
9499
9501
  icon_chevron_right_default({
9500
9502
  size: 12,
@@ -9534,7 +9536,7 @@ var settings_page_default = _template("B", (input) => {
9534
9536
  _if(() => {
9535
9537
  if (setup && setup.mise.installed) {
9536
9538
  const $scope27_id = _scope_id();
9537
- _set_serialize_reason(106);
9539
+ _set_serialize_reason(2594);
9538
9540
  const $childScope19 = _peek_scope_id();
9539
9541
  add_field_default({
9540
9542
  open: addingTool,
@@ -9553,7 +9555,7 @@ var settings_page_default = _template("B", (input) => {
9553
9555
  _if(() => {
9554
9556
  if (searching && !hits?.length) {
9555
9557
  const $scope109_id = _scope_id();
9556
- _html(`<li${_attr_class("_el")}>Searching the mise registry…</li>`);
9558
+ _html(`<li${_attr_class("_ec")}>Searching the mise registry…</li>`);
9557
9559
  writeScope($scope109_id, {});
9558
9560
  return 0;
9559
9561
  }
@@ -9561,14 +9563,14 @@ var settings_page_default = _template("B", (input) => {
9561
9563
  _if(() => {
9562
9564
  if (hits && !hits.length && !searching) {
9563
9565
  const $scope42_id = _scope_id();
9564
- _html(`<li${_attr_class("_el")}>No tools match "${_text_resume($scope42_id, "b", query, 2)}".</li>`);
9566
+ _html(`<li${_attr_class("_ec")}>No tools match "${_text_resume($scope42_id, "b", query, 2)}".</li>`);
9565
9567
  _subscribe($query__closures, writeScope($scope42_id, {}));
9566
9568
  return 0;
9567
9569
  }
9568
9570
  }, $scope28_id, "b", 1, 1, 1, 0, 1);
9569
9571
  _for_of(hits || [], (h) => {
9570
9572
  const $scope29_id = _scope_id();
9571
- _html(`<li${_attr_class(toolRow)}><div${_attr_class("_b0")}><span${_attr_class(["_c3", "_y"])}>${_text_resume($scope29_id, "d", h.name)}</span>`);
9573
+ _html(`<li${_attr_class(toolRow)}><div${_attr_class("_b2")}><span${_attr_class(["_c3", "_y"])}>${_text_resume($scope29_id, "d", h.name)}</span>`);
9572
9574
  _if(() => {
9573
9575
  if (active.has(h.name)) {
9574
9576
  const $scope30_id = _scope_id();
@@ -9577,7 +9579,7 @@ var settings_page_default = _template("B", (input) => {
9577
9579
  return 0;
9578
9580
  } else if (h.description) {
9579
9581
  const $scope110_id = _scope_id();
9580
- _html(`<span${_attr_class("_b3")}${_attr("title", h.description)}>${_text_resume($scope110_id, "b", h.description)}</span>${_el_resume($scope110_id, "a")}`);
9582
+ _html(`<span${_attr_class("_b5")}${_attr("title", h.description)}>${_text_resume($scope110_id, "b", h.description)}</span>${_el_resume($scope110_id, "a")}`);
9581
9583
  writeScope($scope110_id, {});
9582
9584
  return 1;
9583
9585
  }
@@ -9627,7 +9629,7 @@ var settings_page_default = _template("B", (input) => {
9627
9629
  _if(() => {
9628
9630
  if (setup && !setup.mise.installed) {
9629
9631
  const $scope31_id = _scope_id();
9630
- _html(`<p${_attr_class("_b5")}>mise is not installed. It provides every tool below. <button${_attr_class(btnSm)}${_attr("disabled", active.has("mise"))}>${_text_resume($scope31_id, "c", active.has("mise") ? "Installing…" : "Install mise")}</button>${_el_resume($scope31_id, "b")}</p>`);
9632
+ _html(`<p${_attr_class("_b7")}>mise is not installed. It provides every tool below. <button${_attr_class(btnSm)}${_attr("disabled", active.has("mise"))}>${_text_resume($scope31_id, "c", active.has("mise") ? "Installing…" : "Install mise")}</button>${_el_resume($scope31_id, "b")}</p>`);
9631
9633
  _script($scope31_id, "B76");
9632
9634
  _subscribe($active__closures, writeScope($scope31_id, { Ch1: 10 }));
9633
9635
  return 0;
@@ -9854,7 +9856,7 @@ var settings_page_default = _template("B", (input) => {
9854
9856
  label: "Dark"
9855
9857
  }
9856
9858
  ];
9857
- _html(`</div></div></section><section${_attr_class("_bU")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_bV")}><h2${_attr("id", appearanceId)}${_attr_class("_b8")}>Appearance</h2></div><div${_attr_class(["_bZ", "_dj"])}><div${_attr_class("_dv")}><img${_attr_class("_dw")}${_attr("src", `/api/instance/icon${accent ? `?v=${accent.slice(1)}` : ""}`)} alt aria-hidden=true>${_el_resume($scope0_id, "au", $sg__input_instance_accent)}<span${_attr_class("_dx")}><span${_attr_class("_dy")}>${_text_resume($scope0_id, "ax", input.instance.name || "work", _serialize_guard($scope0_reason, 7))}</span><span${_attr_class("_dz")}>Sidebar, tab title, home-screen icon and notifications</span></span></div><label${_attr_class("_dk")}><span${_attr_class("_dl")}>Name</span><input${_attr_input_value($scope0_id, "b1", input.instance.name, _resume(function(v) {
9859
+ _html(`</div></div></section><section${_attr_class("_bW")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_bX")}><h2${_attr("id", appearanceId)}${_attr_class("_b_")}>Appearance</h2></div><div${_attr_class(["_b1", "_dj"])}><div${_attr_class("_dv")}><img${_attr_class("_dw")}${_attr("src", `/api/instance/icon${accent ? `?v=${accent.slice(1)}` : ""}`)} alt aria-hidden=true>${_el_resume($scope0_id, "au", $sg__input_instance_accent)}<span${_attr_class("_dx")}><span${_attr_class("_dy")}>${_text_resume($scope0_id, "ax", input.instance.name || "work", _serialize_guard($scope0_reason, 7))}</span><span${_attr_class("_dz")}>Sidebar, tab title, home-screen icon and notifications</span></span></div><label${_attr_class("_dk")}><span${_attr_class("_dl")}>Name</span><input${_attr_input_value($scope0_id, "b1", input.instance.name, _resume(function(v) {
9858
9860
  setInstance({ name: v });
9859
9861
  }, "B1", $scope0_id))}${_attr_class(["_Y", "_dm"])} type=text placeholder=work maxlength=32 autocomplete=off spellcheck=false>${_el_resume($scope0_id, "b1")}</label><div${_attr_class("_dk")}><span${_attr_class("_dl")}>Theme</span><span${_attr_class("_do")}><span${_attr_class(themeSeg)} role=radiogroup aria-label="Color theme">`);
9860
9862
  _for_of(themeOpts, (opt) => {
@@ -9952,7 +9954,7 @@ var settings_page_default = _template("B", (input) => {
9952
9954
  return 1;
9953
9955
  }
9954
9956
  }, $scope0_id, "bf", $sg__input_instance_accent, $sg__input_instance_accent, 1, 0, 1);
9955
- _html(`</label>${_el_resume($scope0_id, "bd", $sg__input_instance_accent)}</span></div></div></section><section${_attr_class("_bU")}${_attr("aria-labelledby", backupId)}><div${_attr_class("_bV")}><h2${_attr("id", backupId)}${_attr_class("_b8")}>Backup</h2></div><div${_attr_class(["_bZ", "_cs"])}><div${_attr_class("_ct")}><div${_attr_class("_dI")}><div${_attr_class("_b0")}>`);
9957
+ _html(`</label>${_el_resume($scope0_id, "bd", $sg__input_instance_accent)}</span></div></div></section><section${_attr_class("_bW")}${_attr("aria-labelledby", backupId)}><div${_attr_class("_bX")}><h2${_attr("id", backupId)}${_attr_class("_b_")}>Backup</h2></div><div${_attr_class(["_b1", "_cs"])}><div${_attr_class("_ct")}><div${_attr_class("_dI")}><div${_attr_class("_b2")}>`);
9956
9958
  _if(() => {
9957
9959
  if (backupBusy === "preflight") {
9958
9960
  const $scope66_id = _scope_id();
@@ -9961,7 +9963,7 @@ var settings_page_default = _template("B", (input) => {
9961
9963
  return 0;
9962
9964
  } else {
9963
9965
  const $scope130_id = _scope_id();
9964
- _html(`<span${_attr_class("_b3")}>Save workspaces, settings, skills and tool pins to a file. Code stays on GitHub.</span>`);
9966
+ _html(`<span${_attr_class("_b5")}>Save workspaces, settings, skills and tool pins to a file. Code stays on GitHub.</span>`);
9965
9967
  writeScope($scope130_id, {});
9966
9968
  return 1;
9967
9969
  }
@@ -10000,7 +10002,7 @@ var settings_page_default = _template("B", (input) => {
10000
10002
  _for_of(preflight.workspaces, (w) => {
10001
10003
  const $scope132_id = _scope_id();
10002
10004
  const $for_content17__w_name__closures = /* @__PURE__ */ new Set();
10003
- _html(`<li${_attr_class("_dN")}><span${_attr_class("_b1")}>${_text_resume($scope132_id, "c", w.name)}</span><ul${_attr_class("_dM")}>`);
10005
+ _html(`<li${_attr_class("_dN")}><span${_attr_class("_b3")}>${_text_resume($scope132_id, "c", w.name)}</span><ul${_attr_class("_dM")}>`);
10004
10006
  _for_of(w.repos, (r) => {
10005
10007
  const $scope133_id = _scope_id();
10006
10008
  const $for_content18__r_more__closures = /* @__PURE__ */ new Set();
@@ -10077,7 +10079,7 @@ var settings_page_default = _template("B", (input) => {
10077
10079
  return 0;
10078
10080
  }
10079
10081
  }, $scope0_id, "bo", 1, 1, 1, 0, 1);
10080
- _html(`</div><div${_attr_class("_ct")}><div${_attr_class("_dI")}><div${_attr_class("_b0")}>`);
10082
+ _html(`</div><div${_attr_class("_ct")}><div${_attr_class("_dI")}><div${_attr_class("_b2")}>`);
10081
10083
  _if(() => {
10082
10084
  if (backupBusy === "restore") {
10083
10085
  const $scope67_id = _scope_id();
@@ -10086,12 +10088,12 @@ var settings_page_default = _template("B", (input) => {
10086
10088
  return 0;
10087
10089
  } else if (restoreDone) {
10088
10090
  const $scope75_id = _scope_id();
10089
- _html(`<span${_attr_class("_b3")}>${_text_resume($scope75_id, "b", restoreDone)}</span>`);
10091
+ _html(`<span${_attr_class("_b5")}>${_text_resume($scope75_id, "b", restoreDone)}</span>`);
10090
10092
  writeScope($scope75_id, {});
10091
10093
  return 1;
10092
10094
  } else {
10093
10095
  const $scope141_id = _scope_id();
10094
- _html(`<span${_attr_class("_b3")}>Load a backup file. Repos clone in the background.</span>`);
10096
+ _html(`<span${_attr_class("_b5")}>Load a backup file. Repos clone in the background.</span>`);
10095
10097
  writeScope($scope141_id, {});
10096
10098
  return 2;
10097
10099
  }
@@ -10117,7 +10119,7 @@ var settings_page_default = _template("B", (input) => {
10117
10119
  _html(`<ul${_attr_class(checkList)}>`);
10118
10120
  _for_of(preview.workspaces, (w) => {
10119
10121
  const $scope72_id = _scope_id();
10120
- _html(`<li><label${_attr_class(["_dU", { ["_dW"]: w.exists || !!w.unknownHost }])}><input${_attr_input_checked($scope72_id, "b", restoreWs.has(w.id))}${_attr_class("_dV")} type=checkbox${_attr("disabled", w.exists || !!w.unknownHost)}>${_el_resume($scope72_id, "b")}<span${_attr_class("_b0")}><span${_attr_class("_b2")}><span${_attr_class("_b1")}>${_text_resume($scope72_id, "f", w.name)}</span>`);
10122
+ _html(`<li><label${_attr_class(["_dU", { ["_dW"]: w.exists || !!w.unknownHost }])}><input${_attr_input_checked($scope72_id, "b", restoreWs.has(w.id))}${_attr_class("_dV")} type=checkbox${_attr("disabled", w.exists || !!w.unknownHost)}>${_el_resume($scope72_id, "b")}<span${_attr_class("_b2")}><span${_attr_class("_b4")}><span${_attr_class("_b3")}>${_text_resume($scope72_id, "f", w.name)}</span>`);
10121
10123
  _if(() => {
10122
10124
  if (w.status === "archived") {
10123
10125
  const $scope145_id = _scope_id();
@@ -10139,7 +10141,7 @@ var settings_page_default = _template("B", (input) => {
10139
10141
  return 1;
10140
10142
  }
10141
10143
  }, $scope72_id, "h", 1, 1, 1, 0, 1);
10142
- _html(`</span><span${_attr_class("_b3")}>${_text_resume($scope72_id, "j", w.repos.join(", ") || "no repos")}</span></span></label>${_el_resume($scope72_id, "a")}</li>`);
10144
+ _html(`</span><span${_attr_class("_b5")}>${_text_resume($scope72_id, "j", w.repos.join(", ") || "no repos")}</span></span></label>${_el_resume($scope72_id, "a")}</li>`);
10143
10145
  _script($scope72_id, "B88");
10144
10146
  _subscribe($restoreWs__closures, writeScope($scope72_id, {
10145
10147
  n: w?.unknownHost,
@@ -10150,7 +10152,7 @@ var settings_page_default = _template("B", (input) => {
10150
10152
  return 0;
10151
10153
  } else {
10152
10154
  const $scope143_id = _scope_id();
10153
- _html(`<p${_attr_class("_b5")}>No workspaces in this file.</p>`);
10155
+ _html(`<p${_attr_class("_b7")}>No workspaces in this file.</p>`);
10154
10156
  writeScope($scope143_id, {});
10155
10157
  return 1;
10156
10158
  }
@@ -10190,7 +10192,7 @@ var settings_page_default = _template("B", (input) => {
10190
10192
  _if(() => {
10191
10193
  if (p.total) {
10192
10194
  const $scope74_id = _scope_id();
10193
- _html(`<li><label${_attr_class(["_dU", { ["_dW"]: !p.missing.length && p.key !== "settings" }])}><input${_attr_input_checked($scope74_id, "b", restoreParts[p.key])}${_attr_class("_dV")} type=checkbox${_attr("disabled", !p.missing.length && p.key !== "settings")}>${_el_resume($scope74_id, "b")}<span${_attr_class("_b0")}><span${_attr_class("_b1")}>${_text_resume($scope74_id, "e", p.label)}</span><span${_attr_class("_b3")}>`);
10195
+ _html(`<li><label${_attr_class(["_dU", { ["_dW"]: !p.missing.length && p.key !== "settings" }])}><input${_attr_input_checked($scope74_id, "b", restoreParts[p.key])}${_attr_class("_dV")} type=checkbox${_attr("disabled", !p.missing.length && p.key !== "settings")}>${_el_resume($scope74_id, "b")}<span${_attr_class("_b2")}><span${_attr_class("_b3")}>${_text_resume($scope74_id, "e", p.label)}</span><span${_attr_class("_b5")}>`);
10194
10196
  _if(() => {
10195
10197
  if (p.key === "settings") {
10196
10198
  const $scope142_id = _scope_id();
@@ -10247,7 +10249,7 @@ var settings_page_default = _template("B", (input) => {
10247
10249
  _if(() => {
10248
10250
  if (versionPick) {
10249
10251
  const $scope36_id = _scope_id();
10250
- _set_serialize_reason(10);
10252
+ _set_serialize_reason(34);
10251
10253
  const $childScope21 = _peek_scope_id();
10252
10254
  prompt_dialog_default({
10253
10255
  label: `Pin ${versionPick.label}: latest, lts, a prefix (22), or exact (22.11.0)${versionPick.newest ? `. Newest release: ${versionPick.newest}` : ""}`,
@@ -10478,15 +10480,12 @@ var settingsDot = "_cc _bb";
10478
10480
  var navToggle = "_cg _l";
10479
10481
  //#endregion
10480
10482
  //#region src/styles/session-pop.css.ts
10481
- var sessionPop = "_b9 _9";
10482
- var sessionPopBtn = "_b_ _I";
10483
+ var sessionPop = "_bT _9";
10484
+ var sessionPopBtn = "_bU _I";
10483
10485
  _template("X", (input) => {
10484
10486
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
10485
10487
  const $scope0_id = _scope_id();
10486
- _set_serialize_reason({
10487
- 0: $sg__input_size__OR__input_class,
10488
- 1: $sg__input_size__OR__input_class
10489
- });
10488
+ _set_serialize_reason($sg__input_size__OR__input_class << 1 | $sg__input_size__OR__input_class << 3);
10490
10489
  const $childScope = _peek_scope_id();
10491
10490
  icon_base_default({
10492
10491
  d: "M18 8.4C18 6.70261 17.3679 5.07475 16.2426 3.87452C15.1174 2.67428 13.5913 2 12 2C10.4087 2 8.88258 2.67428 7.75736 3.87452C6.63214 5.07475 6 6.70261 6 8.4C6 15.8667 3 18 3 18H21C21 18 18 15.8667 18 8.4Z M13.73 21C13.5542 21.3031 13.3019 21.5547 12.9982 21.7295C12.6946 21.9044 12.3504 21.9965 12 21.9965C11.6496 21.9965 11.3054 21.9044 11.0018 21.7295C10.6982 21.5547 10.4458 21.3031 10.27 21",
@@ -10500,10 +10499,7 @@ _template("X", (input) => {
10500
10499
  var icon_settings_default = _template("rb", (input) => {
10501
10500
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
10502
10501
  const $scope0_id = _scope_id();
10503
- _set_serialize_reason({
10504
- 0: $sg__input_size__OR__input_class,
10505
- 1: $sg__input_size__OR__input_class
10506
- });
10502
+ _set_serialize_reason($sg__input_size__OR__input_class << 1 | $sg__input_size__OR__input_class << 3);
10507
10503
  const $childScope = _peek_scope_id();
10508
10504
  icon_base_default({
10509
10505
  d: "M12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z M19.6224 10.3954L18.5247 7.7448L20 6L18 4L16.2647 5.48295L13.5578 4.36974L12.9353 2H10.981L10.3491 4.40113L7.70441 5.51596L6 4L4 6L5.45337 7.78885L4.3725 10.4463L2 11V13L4.40111 13.6555L5.51575 16.2997L4 18L6 20L7.79116 18.5403L10.397 19.6123L11 22H13L13.6045 19.6132L16.2551 18.5155C16.6969 18.8313 18 20 18 20L20 18L18.5159 16.2494L19.6139 13.598L21.9999 12.9772L22 11L19.6224 10.3954Z",
@@ -10533,24 +10529,21 @@ function activeAgent(session) {
10533
10529
  const command = session.state?.command?.trim();
10534
10530
  return command && agentFromCommand(command) || session.agent;
10535
10531
  }
10536
- var heroTag = "_e4 _N _Q";
10537
- var rowState = "_ff _N";
10538
- var prChip$1 = "_iN _u _iM";
10539
- var portChip = "_iO _u _iM";
10532
+ var heroTag = "_fe _N _Q";
10533
+ var rowState = "_fq _N";
10534
+ var prChip$1 = "_hL _u _hK";
10535
+ var portChip = "_hM _u _hK";
10540
10536
  var prState = {
10541
- open: "_iS",
10542
- merged: "_iT",
10543
- closed: "_iU"
10537
+ open: "_hQ",
10538
+ merged: "_hR",
10539
+ closed: "_hS"
10544
10540
  };
10545
10541
  //#endregion
10546
10542
  //#region src/tags/icons/icon-diff.marko
10547
10543
  var icon_diff_default = _template("cb", (input) => {
10548
10544
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
10549
10545
  const $scope0_id = _scope_id();
10550
- _set_serialize_reason({
10551
- 0: $sg__input_size__OR__input_class,
10552
- 1: $sg__input_size__OR__input_class
10553
- });
10546
+ _set_serialize_reason($sg__input_size__OR__input_class << 1 | $sg__input_size__OR__input_class << 3);
10554
10547
  const $childScope = _peek_scope_id();
10555
10548
  icon_base_default({
10556
10549
  d: "M18 21C19.1046 21 20 20.1046 20 19C20 17.8954 19.1046 17 18 17C16.8954 17 16 17.8954 16 19C16 20.1046 16.8954 21 18 21Z M6 7C7.10457 7 8 6.10457 8 5C8 3.89543 7.10457 3 6 3C4.89543 3 4 3.89543 4 5C4 6.10457 4.89543 7 6 7Z M18 17V7C18 7 18 5 16 5H13 M6 7V17C6 17 6 19 8 19H11 M15.0005 7.50012L12.5005 5.00012L15.0005 2.50012 M8.5 16.5L11 19L8.5 21.5",
@@ -10621,7 +10614,7 @@ var side_nav_chips_default = _template("C", (input) => {
10621
10614
  const name = repo.full_name.split("/").at(-1);
10622
10615
  return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel(repo.full_name) : name;
10623
10616
  }, "C3", $scope1_id);
10624
- _html(`<div${_attr_class(["_iK", { ["_iL"]: input.placement === "pop" }])}>`);
10617
+ _html(`<div${_attr_class(["_hI", { ["_hJ"]: input.placement === "pop" }])}>`);
10625
10618
  _for_of(repos, (repo) => {
10626
10619
  const $scope2_id = _scope_id();
10627
10620
  const $for_content__repo_worktree__closures = /* @__PURE__ */ new Set();
@@ -10637,11 +10630,11 @@ var side_nav_chips_default = _template("C", (input) => {
10637
10630
  [prState.merged]: pr$1.state === "MERGED",
10638
10631
  [prState.closed]: pr$1.state === "CLOSED"
10639
10632
  }
10640
- ])}${_attr("title", prTitle(repo, pr$1))}><a${_attr_class(["_iP", { ["_iX"]: !open }])}${_attr("href", pr$1.url)} target=_blank rel=noopener>${_text_resume($scope3_id, "c", repoLabel$1(repo))}#${_text_resume($scope3_id, "d", pr$1.number, 2)}</a>${_el_resume($scope3_id, "b")}`);
10633
+ ])}${_attr("title", prTitle(repo, pr$1))}><a${_attr_class(["_hN", { ["_hV"]: !open }])}${_attr("href", pr$1.url)} target=_blank rel=noopener>${_text_resume($scope3_id, "c", repoLabel$1(repo))}#${_text_resume($scope3_id, "d", pr$1.number, 2)}</a>${_el_resume($scope3_id, "b")}`);
10641
10634
  _if(() => {
10642
10635
  if (open) {
10643
10636
  const $scope4_id = _scope_id();
10644
- _html(`<a${_attr_class(["_iP", "_iQ"])}${_attr("href", `/w/${input.workspaceId}/review?pr=${encodeURIComponent(`${repo.worktree}/${pr$1.number}`)}`)}${_attr("title", `Review #${pr$1.number} changes`)}>`);
10637
+ _html(`<a${_attr_class(["_hN", "_hO"])}${_attr("href", `/w/${input.workspaceId}/review?pr=${encodeURIComponent(`${repo.worktree}/${pr$1.number}`)}`)}${_attr("title", `Review #${pr$1.number} changes`)}>`);
10645
10638
  icon_diff_default({ size: 12 });
10646
10639
  _html(`</a>${_el_resume($scope4_id, "a")}`);
10647
10640
  _subscribe($for_content__repo_worktree__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, writeScope($scope4_id, {})));
@@ -10649,9 +10642,9 @@ var side_nav_chips_default = _template("C", (input) => {
10649
10642
  } else {
10650
10643
  const $scope5_id = _scope_id();
10651
10644
  _html(`<button type=button${_attr_class([
10652
- "_iP",
10653
- "_iQ",
10654
- "_iR"
10645
+ "_hN",
10646
+ "_hO",
10647
+ "_hP"
10655
10648
  ])}${_attr("title", `Dismiss #${pr$1.number}`)}>`);
10656
10649
  icon_xmark_default({ size: 12 });
10657
10650
  _html(`</button>${_el_resume($scope5_id, "a")}`);
@@ -10679,12 +10672,12 @@ var side_nav_chips_default = _template("C", (input) => {
10679
10672
  _if(() => {
10680
10673
  if (dead.has(p.port)) {
10681
10674
  const $scope7_id = _scope_id();
10682
- _html(`<span${_attr_class(["_iP", "_iV"])}${_attr("title", dead.get(p.port))} aria-disabled=true>:${_text_resume($scope7_id, "b", p.port, 2)}</span>${_el_resume($scope7_id, "a")}`);
10675
+ _html(`<span${_attr_class(["_hN", "_hT"])}${_attr("title", dead.get(p.port))} aria-disabled=true>:${_text_resume($scope7_id, "b", p.port, 2)}</span>${_el_resume($scope7_id, "a")}`);
10683
10676
  _subscribe($dead__closures, writeScope($scope7_id, { Ca0: 1 }));
10684
10677
  return 0;
10685
10678
  } else {
10686
10679
  const $scope8_id = _scope_id();
10687
- _html(`<button type=button${_attr_class(["_iP", "_iW"])} data-leaves${_attr("title", `Open port ${p.port}`)}>:${_text_resume($scope8_id, "b", p.port, 2)}</button>${_el_resume($scope8_id, "a")}`);
10680
+ _html(`<button type=button${_attr_class(["_hN", "_hU"])} data-leaves${_attr("title", `Open port ${p.port}`)}>:${_text_resume($scope8_id, "b", p.port, 2)}</button>${_el_resume($scope8_id, "a")}`);
10688
10681
  _script($scope8_id, "C6");
10689
10682
  writeScope($scope8_id, {});
10690
10683
  return 1;
@@ -10693,9 +10686,9 @@ var side_nav_chips_default = _template("C", (input) => {
10693
10686
  const $childScope = _peek_scope_id();
10694
10687
  arm_button_default({
10695
10688
  class: [
10696
- "_iP",
10697
- "_iQ",
10698
- "_iR"
10689
+ "_hN",
10690
+ "_hO",
10691
+ "_hP"
10699
10692
  ],
10700
10693
  title: `Kill ${p.cmd} (pid ${p.pid})`,
10701
10694
  armedTitle: "Kill?",
@@ -10742,21 +10735,18 @@ var side_nav_chips_default = _template("C", (input) => {
10742
10735
  a0: $dead__closures
10743
10736
  });
10744
10737
  });
10745
- var railBtn = "_fL _l";
10746
- var wsBtn = "_fP _I";
10747
- var rowIcon = "_fS _3 _l";
10748
- var close = "_fT _6 _l _7";
10749
- var sessRename$1 = "_fZ _J";
10750
- var sessBtn$1 = "_f1 _I";
10738
+ var railBtn = "_fR _l";
10739
+ var wsBtn = "_fV _I";
10740
+ var rowIcon = "_fY _3 _l";
10741
+ var close = "_fZ _6 _l _7";
10742
+ var sessRename$1 = "_f5 _J";
10743
+ var sessBtn$1 = "_f7 _I";
10751
10744
  //#endregion
10752
10745
  //#region src/tags/icons/icon-manage.marko
10753
10746
  var icon_manage_default = _template("lb", (input) => {
10754
10747
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
10755
10748
  const $scope0_id = _scope_id();
10756
- _set_serialize_reason({
10757
- 0: $sg__input_size__OR__input_class,
10758
- 1: $sg__input_size__OR__input_class
10759
- });
10749
+ _set_serialize_reason($sg__input_size__OR__input_class << 1 | $sg__input_size__OR__input_class << 3);
10760
10750
  const $childScope = _peek_scope_id();
10761
10751
  icon_base_default({
10762
10752
  d: "M2.6 4H8.77805C8.92127 4 9.05977 4.05124 9.16852 4.14445L12.3315 6.85555C12.4402 6.94876 12.5787 7 12.722 7H21.4C21.7314 7 22 7.26863 22 7.6V10.4C22 10.7314 21.7314 11 21.4 11H2.6C2.26863 11 2 10.7314 2 10.4V4.6C2 4.26863 2.26863 4 2.6 4Z M22 10L22 14 M2 10V19.4C2 19.7314 2.26863 20 2.6 20H13 M19 21C20.1046 21 21 20.1046 21 19C21 17.8954 20.1046 17 19 17C18.6357 17 18.2942 17.0974 18 17.2676C17.4022 17.6134 17 18.2597 17 19C17 19.7403 17.4022 20.3866 18 20.7324C18.2942 20.9026 18.6357 21 19 21Z M19 22C20.6569 22 22 20.6569 22 19C22 17.3431 20.6569 16 19 16C17.3431 16 16 17.3431 16 19C16 20.6569 17.3431 22 19 22Z",
@@ -10799,10 +10789,7 @@ var rename_input_default = _template("v", (input) => {
10799
10789
  var icon_edit_default = _template("eb", (input) => {
10800
10790
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
10801
10791
  const $scope0_id = _scope_id();
10802
- _set_serialize_reason({
10803
- 0: $sg__input_size__OR__input_class,
10804
- 1: $sg__input_size__OR__input_class
10805
- });
10792
+ _set_serialize_reason($sg__input_size__OR__input_class << 1 | $sg__input_size__OR__input_class << 3);
10806
10793
  const $childScope = _peek_scope_id();
10807
10794
  icon_base_default({
10808
10795
  d: "M14.3632 5.65156L15.8431 4.17157C16.6242 3.39052 17.8905 3.39052 18.6716 4.17157L20.0858 5.58579C20.8668 6.36683 20.8668 7.63316 20.0858 8.41421L18.6058 9.8942M14.3632 5.65156L4.74749 15.2672C4.41542 15.5993 4.21079 16.0376 4.16947 16.5054L3.92738 19.2459C3.87261 19.8659 4.39148 20.3848 5.0115 20.33L7.75191 20.0879C8.21972 20.0466 8.65806 19.8419 8.99013 19.5099L18.6058 9.8942M14.3632 5.65156L18.6058 9.8942",
@@ -10815,7 +10802,7 @@ var icon_edit_default = _template("eb", (input) => {
10815
10802
  //#region src/tags/side-nav-item.marko
10816
10803
  var api$7;
10817
10804
  var side_nav_item_default = _template("D", (input) => {
10818
- const $scope0_reason = _scope_reason(), $sg__input_workspace__OR__input_current = _serialize_guard($scope0_reason, 1), $sg__input_status = _serialize_guard($scope0_reason, 16), $sg__input_index = _serialize_guard($scope0_reason, 18), $si__input_workspace = _serialize_if($scope0_reason, 14), $sg__input_workspace = _serialize_guard($scope0_reason, 14), $sg__input_workspace__OR__input_page = _serialize_guard($scope0_reason, 2), $sg__input_sessions = _serialize_guard($scope0_reason, 20), $sg__input_sessions__OR__input_onNewSession__OR__input_onReview = _serialize_guard($scope0_reason, 12), $sg__input_onNewSession = _serialize_guard($scope0_reason, 22), $sg__input_onReview = _serialize_guard($scope0_reason, 23), $si__input_sessions = _serialize_if($scope0_reason, 20), $si__input_current = _serialize_if($scope0_reason, 17), $sg__input_workspace__OR__input_rail = _serialize_guard($scope0_reason, 0), $si__input_workspace__OR__input_rail = _serialize_if($scope0_reason, 0), $sg__input_workspace__OR__input_status__OR__input_rail = _serialize_guard($scope0_reason, 7), $si__input_workspace__OR__input_rail__OR__input_sessions = _serialize_if($scope0_reason, 9), $si__input_index = _serialize_if($scope0_reason, 18), $si__input_page = _serialize_if($scope0_reason, 19), $si__input_onRenameSession = _serialize_if($scope0_reason, 26), $si__input_currentTab = _serialize_if($scope0_reason, 25), $si__input_workspaceId = _serialize_if($scope0_reason, 15), $si__input_menuOpen = _serialize_if($scope0_reason, 21), $si__input_onNewSession = _serialize_if($scope0_reason, 22), $si__input_onReview = _serialize_if($scope0_reason, 23), $si__input_managing = _serialize_if($scope0_reason, 24);
10805
+ const $scope0_reason = _scope_reason(), $sg__input_workspace__OR__input_current = _serialize_guard($scope0_reason, 1), $sg__input_status = _serialize_guard($scope0_reason, 16), $sg__input_index = _serialize_guard($scope0_reason, 18), $si__input_workspace = _serialize_if($scope0_reason, 14), $sg__input_workspace = _serialize_guard($scope0_reason, 14), $sg__input_sessions = _serialize_guard($scope0_reason, 20), $sg__input_sessions__OR__input_onNewSession__OR__input_onReview = _serialize_guard($scope0_reason, 12), $sg__input_onNewSession = _serialize_guard($scope0_reason, 22), $sg__input_onReview = _serialize_guard($scope0_reason, 23), $si__input_sessions = _serialize_if($scope0_reason, 20), $si__input_current = _serialize_if($scope0_reason, 17), $sg__input_workspace__OR__input_rail = _serialize_guard($scope0_reason, 0), $si__input_workspace__OR__input_rail = _serialize_if($scope0_reason, 0), $sg__input_workspace__OR__input_status__OR__input_rail = _serialize_guard($scope0_reason, 7), $si__input_workspace__OR__input_rail__OR__input_sessions = _serialize_if($scope0_reason, 9), $si__input_index = _serialize_if($scope0_reason, 18), $si__input_page = _serialize_if($scope0_reason, 19), $si__input_onRenameSession = _serialize_if($scope0_reason, 26), $si__input_currentTab = _serialize_if($scope0_reason, 25), $si__input_workspaceId = _serialize_if($scope0_reason, 15), $si__input_menuOpen = _serialize_if($scope0_reason, 21), $si__input_onNewSession = _serialize_if($scope0_reason, 22), $si__input_onReview = _serialize_if($scope0_reason, 23), $si__input_managing = _serialize_if($scope0_reason, 24);
10819
10806
  const $scope0_id = _scope_id();
10820
10807
  const $input_current__closures = /* @__PURE__ */ new Set();
10821
10808
  const $input_index__closures = /* @__PURE__ */ new Set();
@@ -10861,7 +10848,7 @@ var side_nav_item_default = _template("D", (input) => {
10861
10848
  _if(() => {
10862
10849
  if (input.rail) {
10863
10850
  const $scope2_id = _scope_id();
10864
- _html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_fI"]: input.current }])}${ws$1.pending ? _attr("title", `${ws$1.name} — restoring`) : _attr("title", ws$1.name)}>${_text_resume($scope2_id, "b", input.index === void 0 ? "·" : input.index + 1, $sg__input_index)}<span${_attr_class([
10851
+ _html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_fO"]: input.current }])}${ws$1.pending ? _attr("title", `${ws$1.name} — restoring`) : _attr("title", ws$1.name)}>${_text_resume($scope2_id, "b", input.index === void 0 ? "·" : input.index + 1, $sg__input_index)}<span${_attr_class([
10865
10852
  "_A",
10866
10853
  phase[dot$1],
10867
10854
  "_bb"
@@ -10871,31 +10858,31 @@ var side_nav_item_default = _template("D", (input) => {
10871
10858
  } else if (ws$1.pending) {
10872
10859
  const $scope3_id = _scope_id();
10873
10860
  _html(`<section${_attr_class([
10874
- "_fN",
10875
- "_f3",
10876
- { ["_fM"]: input.page }
10877
- ])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("_fO")}><div${_attr_class(wsBtn)}>`);
10861
+ "_fT",
10862
+ "_f9",
10863
+ { ["_fS"]: input.page }
10864
+ ])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("_fU")}><div${_attr_class(wsBtn)}>`);
10878
10865
  _if(() => {
10879
10866
  if (ws$1.pending_error) {
10880
10867
  const $scope11_id = _scope_id();
10881
10868
  icon_warning_default({
10882
10869
  size: 12,
10883
- class: "_f5"
10870
+ class: "_ga"
10884
10871
  });
10885
10872
  $si__input_workspace && writeScope($scope11_id, {});
10886
10873
  return 0;
10887
10874
  } else {
10888
10875
  const $scope12_id = _scope_id();
10889
- _html(`<span${_attr_class(["_G", "_f4"])}></span>`);
10876
+ _html(`<span${_attr_class(["_G", "_f_"])}></span>`);
10890
10877
  $si__input_workspace && writeScope($scope12_id, {});
10891
10878
  return 1;
10892
10879
  }
10893
10880
  }, $scope3_id, "d", $sg__input_workspace, $sg__input_workspace, 1, 0, 1);
10894
- _html(`<span${_attr_class("_fV")}><span${_attr_class("_fW")}>${_text_resume($scope3_id, "g", ws$1.name, $sg__input_workspace)}</span><span${_attr_class("_f7")}${_attr("title", ws$1.pending_error || restoreLine)}>${_text_resume($scope3_id, "i", ws$1.pending_error ? `Restore failed: ${ws$1.pending_error}` : restoreLine || "Restoring…")}</span>${_el_resume($scope3_id, "h")}</span></div></div>`);
10881
+ _html(`<span${_attr_class("_f1")}><span${_attr_class("_f2")}>${_text_resume($scope3_id, "g", ws$1.name, $sg__input_workspace)}</span><span${_attr_class("_gc")}${_attr("title", ws$1.pending_error || restoreLine)}>${_text_resume($scope3_id, "i", ws$1.pending_error ? `Restore failed: ${ws$1.pending_error}` : restoreLine || "Restoring…")}</span>${_el_resume($scope3_id, "h")}</span></div></div>`);
10895
10882
  _if(() => {
10896
10883
  if (ws$1.pending_error && !retrying) {
10897
10884
  const $scope10_id = _scope_id();
10898
- _html(`<div${_attr_class("_f6")}><button type=button${_attr_class(["_q", btnSm])} title="Run the restore again">Retry</button>${_el_resume($scope10_id, "b")}`);
10885
+ _html(`<div${_attr_class("_gb")}><button type=button${_attr_class(["_q", btnSm])} title="Run the restore again">Retry</button>${_el_resume($scope10_id, "b")}`);
10899
10886
  arm_button_default({
10900
10887
  class: ["_q", btnSm],
10901
10888
  title: "Delete workspace",
@@ -10916,7 +10903,7 @@ var side_nav_item_default = _template("D", (input) => {
10916
10903
  return 0;
10917
10904
  }
10918
10905
  }, $scope3_id, "j", 1, 1, 1, 0, 1);
10919
- _html(`</section>${_el_resume($scope3_id, "a", $sg__input_workspace__OR__input_page)}`);
10906
+ _html(`</section>${_el_resume($scope3_id, "a", _serialize_guard($scope0_reason, 2))}`);
10920
10907
  _subscribe($retrying__closures, _subscribe($restoreLine__closures, _subscribe($si__input_workspace && $ws_pending_error__closures, _subscribe($si__input_workspace && $ws_name__closures, _subscribe($si__input_page && $input_page__closures, writeScope($scope3_id, {
10921
10908
  _: _scope_with_id($scope1_id),
10922
10909
  Caj: $si__input_workspace && 1
@@ -10926,23 +10913,20 @@ var side_nav_item_default = _template("D", (input) => {
10926
10913
  const $scope4_id = _scope_id();
10927
10914
  const sessions$1 = input.sessions || [];
10928
10915
  const phaseLabel = dot$1 === "working" ? "Working" : dot$1 === "waiting" ? "Needs input" : dot$1 === "idle" ? "Idle" : "Not running";
10929
- _html(`<section${_attr_class(["_fN", {
10930
- ["_fI"]: input.current,
10916
+ _html(`<section${_attr_class(["_fT", {
10917
+ ["_fO"]: input.current,
10931
10918
  ["_bc"]: input.current,
10932
- ["_fK"]: input.menuOpen
10933
- }])}><div${_attr_class("_fO")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class(wsBtn)}><span${_attr_class(["_A", phase[dot$1]])}${_attr("title", phaseLabel)}></span>${_el_resume($scope4_id, "d", $sg__input_status)}`);
10919
+ ["_fQ"]: input.menuOpen
10920
+ }])}><div${_attr_class("_fU")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class(wsBtn)}><span${_attr_class(["_A", phase[dot$1]])}${_attr("title", phaseLabel)}></span>${_el_resume($scope4_id, "d", $sg__input_status)}`);
10934
10921
  _if(() => {
10935
10922
  if (sessions$1.length === 1) {
10936
10923
  const $scope14_id = _scope_id();
10937
- _set_serialize_reason({
10938
- 1: $sg__input_sessions,
10939
- 2: $sg__input_sessions
10940
- });
10924
+ _set_serialize_reason($sg__input_sessions << 3 | $sg__input_sessions << 5);
10941
10925
  const $childScope = _peek_scope_id();
10942
10926
  icon_agent_default({
10943
10927
  agent: activeAgent(sessions$1[0]),
10944
10928
  size: 12,
10945
- class: "_fU"
10929
+ class: "_f0"
10946
10930
  });
10947
10931
  $si__input_sessions && writeScope($scope14_id, {
10948
10932
  _: _scope_with_id($scope4_id),
@@ -10951,7 +10935,7 @@ var side_nav_item_default = _template("D", (input) => {
10951
10935
  return 0;
10952
10936
  }
10953
10937
  }, $scope4_id, "e", $sg__input_sessions, $sg__input_sessions, $sg__input_sessions__OR__input_onNewSession__OR__input_onReview);
10954
- _html(`<span${_attr_class("_fV")}><span${_attr_class("_fW")}>${_text_resume($scope4_id, "h", ws$1.name, $sg__input_workspace)}</span></span> </a>${_el_resume($scope4_id, "c", $sg__input_workspace)}<div${_attr_class("_fQ")}>`);
10938
+ _html(`<span${_attr_class("_f1")}><span${_attr_class("_f2")}>${_text_resume($scope4_id, "h", ws$1.name, $sg__input_workspace)}</span></span> </a>${_el_resume($scope4_id, "c", $sg__input_workspace)}<div${_attr_class("_fW")}>`);
10955
10939
  _if(() => {
10956
10940
  if (input.onNewSession) {
10957
10941
  const $scope5_id = _scope_id();
@@ -10979,29 +10963,26 @@ var side_nav_item_default = _template("D", (input) => {
10979
10963
  return 0;
10980
10964
  }
10981
10965
  }, $scope4_id, "k", $sg__input_onReview, $sg__input_onReview, $sg__input_sessions__OR__input_onNewSession__OR__input_onReview, 0, 1);
10982
- _html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_fJ"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
10966
+ _html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_fP"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
10983
10967
  icon_manage_default({ size: 12 });
10984
- _html(`</a>${_el_resume($scope4_id, "l", _serialize_guard($scope0_reason, 4))}</div></div><div${_attr_class("_f0")}>`);
10968
+ _html(`</a>${_el_resume($scope4_id, "l", _serialize_guard($scope0_reason, 4))}</div></div><div${_attr_class("_f6")}>`);
10985
10969
  _for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
10986
10970
  const $scope6_id = _scope_id();
10987
- _html(`<div${_attr_class(["_fR", { ["_fI"]: s.id === input.currentTab }])}>`);
10971
+ _html(`<div${_attr_class(["_fX", { ["_fO"]: s.id === input.currentTab }])}>`);
10988
10972
  _if(() => {
10989
10973
  if (renamingId === s.id) {
10990
10974
  const $scope7_id = _scope_id();
10991
10975
  _html(`<span${_attr_class([
10992
10976
  "_A",
10993
10977
  phase[sessionPhase(s.state)],
10994
- "_fY"
10978
+ "_f4"
10995
10979
  ])}></span>${_el_resume($scope7_id, "a", $sg__input_sessions)}`);
10996
- _set_serialize_reason({
10997
- 1: $sg__input_sessions,
10998
- 2: $sg__input_sessions
10999
- });
10980
+ _set_serialize_reason($sg__input_sessions << 3 | $sg__input_sessions << 5);
11000
10981
  const $childScope2 = _peek_scope_id();
11001
10982
  icon_agent_default({
11002
10983
  agent: activeAgent(s),
11003
10984
  size: 12,
11004
- class: "_f2"
10985
+ class: "_f8"
11005
10986
  });
11006
10987
  const $childScope3 = _peek_scope_id();
11007
10988
  rename_input_default({
@@ -11024,17 +11005,14 @@ var side_nav_item_default = _template("D", (input) => {
11024
11005
  } else {
11025
11006
  const $scope8_id = _scope_id();
11026
11007
  _html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class(sessBtn$1)}><span${_attr_class(["_A", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope8_id, "b", $sg__input_sessions)}`);
11027
- _set_serialize_reason({
11028
- 1: $sg__input_sessions,
11029
- 2: $sg__input_sessions
11030
- });
11008
+ _set_serialize_reason($sg__input_sessions << 3 | $sg__input_sessions << 5);
11031
11009
  const $childScope4 = _peek_scope_id();
11032
11010
  icon_agent_default({
11033
11011
  agent: activeAgent(s),
11034
11012
  size: 12,
11035
- class: "_f2"
11013
+ class: "_f8"
11036
11014
  });
11037
- _html(`<span${_attr_class("_fX")}>${_text_resume($scope8_id, "e", s.title || activeAgent(s), $sg__input_sessions)}</span></a>${_el_resume($scope8_id, "a", _serialize_guard($scope0_reason, 3))}<button${_attr_class(rowIcon)} title="Rename session">`);
11015
+ _html(`<span${_attr_class("_f3")}>${_text_resume($scope8_id, "e", s.title || activeAgent(s), $sg__input_sessions)}</span></a>${_el_resume($scope8_id, "a", _serialize_guard($scope0_reason, 3))}<button${_attr_class(rowIcon)} title="Rename session">`);
11038
11016
  icon_edit_default({ size: 12 });
11039
11017
  _html(`</button>${_el_resume($scope8_id, "f")}`);
11040
11018
  arm_button_default({
@@ -11067,7 +11045,7 @@ var side_nav_item_default = _template("D", (input) => {
11067
11045
  _: _scope_with_id($scope4_id)
11068
11046
  })));
11069
11047
  }, "id", $scope4_id, "o", $sg__input_sessions, $sg__input_sessions, $sg__input_sessions, 0, 1);
11070
- _set_serialize_reason({ 0: _serialize_guard($scope0_reason, 15) });
11048
+ _set_serialize_reason(_serialize_guard($scope0_reason, 15) << 1);
11071
11049
  const $childScope5 = _peek_scope_id();
11072
11050
  side_nav_chips_default({
11073
11051
  workspaceId: input.workspaceId,
@@ -11157,23 +11135,20 @@ var workspace_switcher_default = _template("O", (input) => {
11157
11135
  const sessions = input.sessions || st?.sessions || [];
11158
11136
  const manySessions = sessions.length > 1;
11159
11137
  const heroMeta$1 = sessions.length === 0 ? "No sessions" : manySessions ? `${sessions.length} sessions` : "";
11160
- _html(`<div${_attr_class("_e0")}>`);
11138
+ _html(`<div${_attr_class("_fa")}>`);
11161
11139
  _if(() => {
11162
11140
  if (ws) {
11163
11141
  const $scope1_id = _scope_id();
11164
- _html(`<section${_attr_class("_e1")} aria-current=page><a${_attr("href", `/w/${ws.id}`)}${_attr_class("_e2")} data-open><span${_attr_class(["_A", phase[phase$1]])}></span>${_el_resume($scope1_id, "c", _serialize_guard($scope0_reason, 0))}`);
11142
+ _html(`<section${_attr_class("_fb")} aria-current=page><a${_attr("href", `/w/${ws.id}`)}${_attr_class("_fc")} data-open><span${_attr_class(["_A", phase[phase$1]])}></span>${_el_resume($scope1_id, "c", _serialize_guard($scope0_reason, 0))}`);
11165
11143
  _if(() => {
11166
11144
  if (sessions.length === 1) {
11167
11145
  const $scope8_id = _scope_id();
11168
- _set_serialize_reason({
11169
- 1: $sg__input_workspace__OR__input_allStatus__OR__input_sessions,
11170
- 2: $sg__input_workspace__OR__input_allStatus__OR__input_sessions
11171
- });
11146
+ _set_serialize_reason($sg__input_workspace__OR__input_allStatus__OR__input_sessions << 3 | $sg__input_workspace__OR__input_allStatus__OR__input_sessions << 5);
11172
11147
  const $childScope = _peek_scope_id();
11173
11148
  icon_agent_default({
11174
11149
  agent: activeAgent(sessions[0]),
11175
11150
  size: 16,
11176
- class: "_e6"
11151
+ class: "_fg"
11177
11152
  });
11178
11153
  $si__input_workspace__OR__input_allStatus__OR__input_sessions && _subscribe($sessions___closures, writeScope($scope8_id, {
11179
11154
  _: _scope_with_id($scope1_id),
@@ -11182,24 +11157,21 @@ var workspace_switcher_default = _template("O", (input) => {
11182
11157
  return 0;
11183
11158
  }
11184
11159
  }, $scope1_id, "d", $sg__input_workspace__OR__input_allStatus__OR__input_sessions, $sg__input_workspace__OR__input_allStatus__OR__input_sessions, $sg__input_workspace__OR__input_allStatus__OR__input_sessions);
11185
- _html(`<span${_attr_class("_e3")}>${_text_resume($scope1_id, "f", ws.name, $sg__input_workspace)}</span><span${_attr_class(heroTag)}>open</span><span${_attr_class("_e5")}>${_text_resume($scope1_id, "i", heroMeta$1, $sg__input_workspace__OR__input_allStatus__OR__input_sessions)}</span></a>${_el_resume($scope1_id, "b", $sg__input_workspace)}`);
11160
+ _html(`<span${_attr_class("_fd")}>${_text_resume($scope1_id, "f", ws.name, $sg__input_workspace)}</span><span${_attr_class(heroTag)}>open</span><span${_attr_class("_ff")}>${_text_resume($scope1_id, "i", heroMeta$1, $sg__input_workspace__OR__input_allStatus__OR__input_sessions)}</span></a>${_el_resume($scope1_id, "b", $sg__input_workspace)}`);
11186
11161
  _if(() => {
11187
11162
  if (manySessions) {
11188
11163
  const $scope2_id = _scope_id();
11189
- _html(`<div${_attr_class("_e7")}>`);
11164
+ _html(`<div${_attr_class("_fh")}>`);
11190
11165
  _for_of(sessions, (s) => {
11191
11166
  const $scope3_id = _scope_id();
11192
- _html(`<a${_attr("href", `/w/${ws.id}?s=${s.id}`)}${_attr_class(["_e9", { ["_e8"]: s.id === input.tab }])}><span${_attr_class(["_A", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope3_id, "b", $sg__input_workspace__OR__input_allStatus__OR__input_sessions)}`);
11193
- _set_serialize_reason({
11194
- 1: $sg__input_workspace__OR__input_allStatus__OR__input_sessions,
11195
- 2: $sg__input_workspace__OR__input_allStatus__OR__input_sessions
11196
- });
11167
+ _html(`<a${_attr("href", `/w/${ws.id}?s=${s.id}`)}${_attr_class(["_fj", { ["_fi"]: s.id === input.tab }])}><span${_attr_class(["_A", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope3_id, "b", $sg__input_workspace__OR__input_allStatus__OR__input_sessions)}`);
11168
+ _set_serialize_reason($sg__input_workspace__OR__input_allStatus__OR__input_sessions << 3 | $sg__input_workspace__OR__input_allStatus__OR__input_sessions << 5);
11197
11169
  const $childScope2 = _peek_scope_id();
11198
11170
  icon_agent_default({
11199
11171
  agent: activeAgent(s),
11200
11172
  size: 14
11201
11173
  });
11202
- _html(`<span${_attr_class("_e_")}>${_text_resume($scope3_id, "e", s.title || activeAgent(s), $sg__input_workspace__OR__input_allStatus__OR__input_sessions)}</span></a>${_el_resume($scope3_id, "a", $sg__input_workspace__OR__input_allStatus__OR__input_sessions__OR__input_tab)}`);
11174
+ _html(`<span${_attr_class("_fk")}>${_text_resume($scope3_id, "e", s.title || activeAgent(s), $sg__input_workspace__OR__input_allStatus__OR__input_sessions)}</span></a>${_el_resume($scope3_id, "a", $sg__input_workspace__OR__input_allStatus__OR__input_sessions__OR__input_tab)}`);
11203
11175
  $si__input_workspace__OR__input_allStatus__OR__input_sessions__OR__input_tab && _subscribe($si__input_workspace && $ws_id__closures, _subscribe($si__input_tab && $input_tab__closures, writeScope($scope3_id, {
11204
11176
  h: $si__input_tab && s?.id,
11205
11177
  _: _scope_with_id($scope2_id),
@@ -11210,7 +11182,7 @@ var workspace_switcher_default = _template("O", (input) => {
11210
11182
  return 0;
11211
11183
  }
11212
11184
  }, $scope1_id, "j", $sg__input_workspace__OR__input_allStatus__OR__input_sessions, $sg__input_workspace__OR__input_allStatus__OR__input_sessions, $sg__input_workspace__OR__input_allStatus__OR__input_sessions, 0, 1);
11213
- _set_serialize_reason({ 0: $sg__input_workspace });
11185
+ _set_serialize_reason($sg__input_workspace << 1);
11214
11186
  const $childScope3 = _peek_scope_id();
11215
11187
  side_nav_chips_default({
11216
11188
  workspaceId: ws.id,
@@ -11228,7 +11200,7 @@ var workspace_switcher_default = _template("O", (input) => {
11228
11200
  _if(() => {
11229
11201
  if (input.ids.length) {
11230
11202
  const $scope4_id = _scope_id();
11231
- _html(`<div${_attr_class("_fa")}>`);
11203
+ _html(`<div${_attr_class("_fl")}>`);
11232
11204
  _for_of(input.ids, (id) => {
11233
11205
  const $scope5_id = _scope_id();
11234
11206
  const w = input.byId.get(id);
@@ -11272,19 +11244,16 @@ var workspace_switcher_default = _template("O", (input) => {
11272
11244
  const rp = phaseOf(rs);
11273
11245
  const rowSessions = rs?.sessions || [];
11274
11246
  const many = rowSessions.length > 1;
11275
- _html(`<div${_attr_class("_fb")}><a${_attr("href", `/w/${id}`)}${_attr_class("_fc")}><span${_attr_class(["_A", phase[rp]])}></span>${_el_resume($scope7_id, "c", $sg__input_allStatus__OR__input_ids)}`);
11247
+ _html(`<div${_attr_class("_fm")}><a${_attr("href", `/w/${id}`)}${_attr_class("_fn")}><span${_attr_class(["_A", phase[rp]])}></span>${_el_resume($scope7_id, "c", $sg__input_allStatus__OR__input_ids)}`);
11276
11248
  _if(() => {
11277
11249
  if (rowSessions.length === 1) {
11278
11250
  const $scope9_id = _scope_id();
11279
- _set_serialize_reason({
11280
- 1: $sg__input_allStatus__OR__input_ids,
11281
- 2: $sg__input_allStatus__OR__input_ids
11282
- });
11251
+ _set_serialize_reason($sg__input_allStatus__OR__input_ids << 3 | $sg__input_allStatus__OR__input_ids << 5);
11283
11252
  const $childScope5 = _peek_scope_id();
11284
11253
  icon_agent_default({
11285
11254
  agent: activeAgent(rowSessions[0]),
11286
11255
  size: 16,
11287
- class: "_fe"
11256
+ class: "_fp"
11288
11257
  });
11289
11258
  $si__input_allStatus__OR__input_ids && writeScope($scope9_id, {
11290
11259
  _: _scope_with_id($scope7_id),
@@ -11293,7 +11262,7 @@ var workspace_switcher_default = _template("O", (input) => {
11293
11262
  return 0;
11294
11263
  }
11295
11264
  }, $scope7_id, "d", $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids);
11296
- _html(`<span${_attr_class("_fd")}>${_text_resume($scope7_id, "f", w.name, $sg__input_ids__OR__input_byId)}</span>`);
11265
+ _html(`<span${_attr_class("_fo")}>${_text_resume($scope7_id, "f", w.name, $sg__input_ids__OR__input_byId)}</span>`);
11297
11266
  _if(() => {
11298
11267
  if (many) {
11299
11268
  const $scope10_id = _scope_id();
@@ -11304,10 +11273,10 @@ var workspace_switcher_default = _template("O", (input) => {
11304
11273
  }, $scope7_id, "g", $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids, 0, 1);
11305
11274
  icon_chevron_right_default({
11306
11275
  size: 14,
11307
- class: "_fg"
11276
+ class: "_fr"
11308
11277
  });
11309
11278
  _html(`</a>${_el_resume($scope7_id, "b", $sg__input_ids)}`);
11310
- _set_serialize_reason({ 0: $sg__input_ids });
11279
+ _set_serialize_reason($sg__input_ids << 1);
11311
11280
  const $childScope6 = _peek_scope_id();
11312
11281
  side_nav_chips_default({
11313
11282
  workspaceId: id,
@@ -11366,10 +11335,7 @@ var workspace_switcher_default = _template("O", (input) => {
11366
11335
  var icon_folder_plus_default = _template("gb", (input) => {
11367
11336
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
11368
11337
  const $scope0_id = _scope_id();
11369
- _set_serialize_reason({
11370
- 0: $sg__input_size__OR__input_class,
11371
- 1: $sg__input_size__OR__input_class
11372
- });
11338
+ _set_serialize_reason($sg__input_size__OR__input_class << 1 | $sg__input_size__OR__input_class << 3);
11373
11339
  const $childScope = _peek_scope_id();
11374
11340
  icon_base_default({
11375
11341
  d: "M18 6H20M22 6H20M20 6V4M20 6V8 M21.4 20H2.6C2.26863 20 2 19.7314 2 19.4V11H21.4C21.7314 11 22 11.2686 22 11.6V19.4C22 19.7314 21.7314 20 21.4 20Z M2 11V4.6C2 4.26863 2.26863 4 2.6 4H8.77805C8.92127 4 9.05977 4.05124 9.16852 4.14445L12.3315 6.85555C12.4402 6.94876 12.5787 7 12.722 7H14",
@@ -11383,10 +11349,7 @@ var icon_folder_plus_default = _template("gb", (input) => {
11383
11349
  var icon_sidebar_collapse_default = _template("sb", (input) => {
11384
11350
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
11385
11351
  const $scope0_id = _scope_id();
11386
- _set_serialize_reason({
11387
- 0: $sg__input_size__OR__input_class,
11388
- 1: $sg__input_size__OR__input_class
11389
- });
11352
+ _set_serialize_reason($sg__input_size__OR__input_class << 1 | $sg__input_size__OR__input_class << 3);
11390
11353
  const $childScope = _peek_scope_id();
11391
11354
  icon_base_default({
11392
11355
  d: "M19 21L5 21C3.89543 21 3 20.1046 3 19L3 5C3 3.89543 3.89543 3 5 3L19 3C20.1046 3 21 3.89543 21 5L21 19C21 20.1046 20.1046 21 19 21Z M7.25 10L5.5 12L7.25 14 M9.5 21V3",
@@ -11400,10 +11363,7 @@ var icon_sidebar_collapse_default = _template("sb", (input) => {
11400
11363
  var icon_sidebar_default = _template("tb", (input) => {
11401
11364
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
11402
11365
  const $scope0_id = _scope_id();
11403
- _set_serialize_reason({
11404
- 0: $sg__input_size__OR__input_class,
11405
- 1: $sg__input_size__OR__input_class
11406
- });
11366
+ _set_serialize_reason($sg__input_size__OR__input_class << 1 | $sg__input_size__OR__input_class << 3);
11407
11367
  const $childScope = _peek_scope_id();
11408
11368
  icon_base_default({
11409
11369
  d: "M19 21L5 21C3.89543 21 3 20.1046 3 19L3 5C3 3.89543 3.89543 3 5 3L19 3C20.1046 3 21 3.89543 21 5L21 19C21 20.1046 20.1046 21 19 21Z M9.5 21V3 M5.5 10L7.25 12L5.5 14",
@@ -11424,13 +11384,13 @@ var usage_bars_default = _template("K", (input) => {
11424
11384
  if (windows.length) {
11425
11385
  const $scope1_id = _scope_id();
11426
11386
  _html(`<span${_attr_class([
11427
- "_hw",
11387
+ "_hW",
11428
11388
  input.class,
11429
- { ["_hx"]: agent.stale_seconds != null }
11389
+ { ["_hX"]: agent.stale_seconds != null }
11430
11390
  ])} role=img${_attr("aria-label", `Plan usage: ${summary}`)}${agent.stale_seconds != null ? _attr("title", `${summary} — ${agent.note || "provider unreachable"}; last cached numbers`) : _attr("title", summary)}>`);
11431
11391
  _for_of(windows, (win) => {
11432
11392
  const $scope2_id = _scope_id();
11433
- _html(`<span${_attr_class(["_hy", win.used_percent >= 90 ? "_hC" : win.used_percent >= 70 ? "_hB" : win.used_percent >= 40 ? "_hA" : "_hz"])}${_attr_style(`--pct:${Math.max(2, Math.min(100, win.used_percent))}%`)}></span>${_el_resume($scope2_id, "a", $sg__input_agent)}`);
11393
+ _html(`<span${_attr_class(["_hY", win.used_percent >= 90 ? "_h2" : win.used_percent >= 70 ? "_h1" : win.used_percent >= 40 ? "_h0" : "_hZ"])}${_attr_style(`--pct:${Math.max(2, Math.min(100, win.used_percent))}%`)}></span>${_el_resume($scope2_id, "a", $sg__input_agent)}`);
11434
11394
  $si__input_agent && writeScope($scope2_id, {});
11435
11395
  }, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
11436
11396
  $si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
@@ -11462,7 +11422,7 @@ var nav_usage_default = _template("r", (input) => {
11462
11422
  const plan = openSess ? usageFor$1(openSess.agent, usage) : null;
11463
11423
  const all = usage?.agents || [];
11464
11424
  const peak = Math.max(0, ...(plan?.windows || []).map((w) => w.used_percent));
11465
- const ringTone = _resume((pct) => pct >= 90 ? "_eZ" : pct >= 70 ? "_eY" : pct >= 40 ? "_eX" : "_eW", "r0");
11425
+ const ringTone = _resume((pct) => pct >= 90 ? "_e_" : pct >= 70 ? "_e9" : pct >= 40 ? "_e8" : "_e7", "r0");
11466
11426
  let card$2 = null;
11467
11427
  const showCard = _resume((el) => {
11468
11428
  const r = el.getBoundingClientRect();
@@ -11474,21 +11434,21 @@ var nav_usage_default = _template("r", (input) => {
11474
11434
  _if(() => {
11475
11435
  if (plan) {
11476
11436
  const $scope1_id = _scope_id();
11477
- _html(`<span${_attr_class("_eQ")} tabindex=0>`);
11478
- _set_serialize_reason(1);
11437
+ _html(`<span${_attr_class("_e1")} tabindex=0>`);
11438
+ _set_serialize_reason(10);
11479
11439
  const $childScope = _peek_scope_id();
11480
11440
  usage_bars_default({
11481
- class: "_eS",
11441
+ class: "_e3",
11482
11442
  agent: plan
11483
11443
  });
11484
- _html(`<svg${_attr_class(["_eT", ringTone(peak)])} viewBox="0 0 16 16" width=16 height=16 aria-hidden=true><circle${_attr_class("_eU")} cx=8 cy=8 r=6.5></circle><circle${_attr_class("_eV")} cx=8 cy=8 r=6.5${_attr_style(`stroke-dasharray:${Math.max(2, Math.min(100, peak)) / 100 * 40.84} 40.84`)}></circle>${_el_resume($scope1_id, "e")}</svg>${_el_resume($scope1_id, "c")}</span>${_el_resume($scope1_id, "a")}`);
11444
+ _html(`<svg${_attr_class(["_e4", ringTone(peak)])} viewBox="0 0 16 16" width=16 height=16 aria-hidden=true><circle${_attr_class("_e5")} cx=8 cy=8 r=6.5></circle><circle${_attr_class("_e6")} cx=8 cy=8 r=6.5${_attr_style(`stroke-dasharray:${Math.max(2, Math.min(100, peak)) / 100 * 40.84} 40.84`)}></circle>${_el_resume($scope1_id, "e")}</svg>${_el_resume($scope1_id, "c")}</span>${_el_resume($scope1_id, "a")}`);
11485
11445
  _if(() => {
11486
11446
  if (card$2) {
11487
11447
  const $scope2_id = _scope_id();
11488
- _html(`<div${_attr_class(["_9", "_eR"])}${_attr_style(`left:${card$2.left}px;bottom:${card$2.bottom}px`)} role=tooltip>`);
11448
+ _html(`<div${_attr_class(["_9", "_e2"])}${_attr_style(`left:${card$2.left}px;bottom:${card$2.bottom}px`)} role=tooltip>`);
11489
11449
  _for_of(all, (a) => {
11490
11450
  const $scope3_id = _scope_id();
11491
- _set_serialize_reason(6);
11451
+ _set_serialize_reason(10);
11492
11452
  const $childScope2 = _peek_scope_id();
11493
11453
  usage_meters_default({ agent: a });
11494
11454
  writeScope($scope3_id, { a: _existing_scope($childScope2) });
@@ -11589,10 +11549,7 @@ var side_nav_default = _template("E", (input) => {
11589
11549
  if (isPage) {
11590
11550
  const $scope1_id = _scope_id();
11591
11551
  _html(`<div${_attr_class("_ci")}>`);
11592
- _set_serialize_reason({
11593
- 3: $sg__input_instanceName,
11594
- 6: $sg__input_instanceName
11595
- });
11552
+ _set_serialize_reason($sg__input_instanceName << 7 | $sg__input_instanceName << 13);
11596
11553
  let $meta;
11597
11554
  if (input.instanceName) $meta = attrTag({ content: _content_resume("E8", () => {
11598
11555
  _scope_reason();
@@ -11686,10 +11643,7 @@ var side_nav_default = _template("E", (input) => {
11686
11643
  _for_of(["shell", ...input.agents], (agent) => {
11687
11644
  const $scope7_id = _scope_id();
11688
11645
  _html(`<button${_attr_class(sessionPopBtn)}>`);
11689
- _set_serialize_reason({
11690
- 1: $sg__input_agents,
11691
- 2: $sg__input_agents
11692
- });
11646
+ _set_serialize_reason($sg__input_agents << 3 | $sg__input_agents << 5);
11693
11647
  const $childScope3 = _peek_scope_id();
11694
11648
  icon_agent_default({
11695
11649
  agent,
@@ -11857,11 +11811,7 @@ var side_nav_default = _template("E", (input) => {
11857
11811
  return 1;
11858
11812
  }
11859
11813
  }, $scope11_id, "a", 1, 1, 1, "</button>", 1);
11860
- _set_serialize_reason({
11861
- 0: 1,
11862
- 1: $sg__input_sessions,
11863
- 2: 1
11864
- });
11814
+ _set_serialize_reason(34 | $sg__input_sessions << 3);
11865
11815
  const $childScope6 = _peek_scope_id();
11866
11816
  nav_usage_default({
11867
11817
  sessions: input.sessions,
@@ -12720,7 +12670,9 @@ function fingerprint(text) {
12720
12670
  return `${(h >>> 0).toString(36)}${text.length.toString(36)}`;
12721
12671
  }
12722
12672
  /** Line number → text for one side, from the hunks alone: what a partial
12723
- * diff can say about the file. A full (hydrated) diff has every line. */
12673
+ * diff can say about the file. A full (hydrated) diff has every line.
12674
+ * pierre keeps each line's ending; the text here has none, so a quoted
12675
+ * snippet or a search preview is one row per line. */
12724
12676
  var sides = /* @__PURE__ */ new WeakMap();
12725
12677
  function sideLines(meta, side) {
12726
12678
  let hit = sides.get(meta);
@@ -12729,18 +12681,19 @@ function sideLines(meta, side) {
12729
12681
  additions: /* @__PURE__ */ new Map(),
12730
12682
  deletions: /* @__PURE__ */ new Map()
12731
12683
  };
12684
+ const text = (line) => (line ?? "").replace(/\r?\n$/, "");
12732
12685
  for (const hunk of meta.hunks) {
12733
12686
  let add = hunk.additionStart;
12734
12687
  let del = hunk.deletionStart;
12735
12688
  let addAt = hunk.additionLineIndex;
12736
12689
  let delAt = hunk.deletionLineIndex;
12737
12690
  for (const block of hunk.hunkContent) if (block.type === "context") for (let i = 0; i < block.lines; i++) {
12738
- hit.additions.set(add++, meta.additionLines[addAt++] ?? "");
12739
- hit.deletions.set(del++, meta.deletionLines[delAt++] ?? "");
12691
+ hit.additions.set(add++, text(meta.additionLines[addAt++]));
12692
+ hit.deletions.set(del++, text(meta.deletionLines[delAt++]));
12740
12693
  }
12741
12694
  else {
12742
- for (let i = 0; i < block.deletions; i++) hit.deletions.set(del++, meta.deletionLines[delAt++] ?? "");
12743
- for (let i = 0; i < block.additions; i++) hit.additions.set(add++, meta.additionLines[addAt++] ?? "");
12695
+ for (let i = 0; i < block.deletions; i++) hit.deletions.set(del++, text(meta.deletionLines[delAt++]));
12696
+ for (let i = 0; i < block.additions; i++) hit.additions.set(add++, text(meta.additionLines[addAt++]));
12744
12697
  }
12745
12698
  }
12746
12699
  sides.set(meta, hit);
@@ -13025,17 +12978,14 @@ function shortBranch(name, wsBranch = "", wsName = "") {
13025
12978
  }
13026
12979
  return shortHeadFallback(head);
13027
12980
  }
13028
- var treeToggle = "_go _4 _l";
13029
- var pageTitle = "_gu _d2";
12981
+ var treeToggle = "_g3 _4 _l";
12982
+ var pageTitle = "_g9 _ej";
13030
12983
  //#endregion
13031
12984
  //#region src/tags/icons/icon-comment.marko
13032
12985
  var icon_comment_default = _template("bb", (input) => {
13033
12986
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
13034
12987
  const $scope0_id = _scope_id();
13035
- _set_serialize_reason({
13036
- 0: $sg__input_size__OR__input_class,
13037
- 1: $sg__input_size__OR__input_class
13038
- });
12988
+ _set_serialize_reason($sg__input_size__OR__input_class << 1 | $sg__input_size__OR__input_class << 3);
13039
12989
  const $childScope = _peek_scope_id();
13040
12990
  icon_base_default({
13041
12991
  d: "M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 13.8214 2.48697 15.5291 3.33782 17L2.5 21.5L7 20.6622C8.47087 21.513 10.1786 22 12 22Z",
@@ -13049,10 +12999,7 @@ var icon_comment_default = _template("bb", (input) => {
13049
12999
  var icon_clipboard_default = _template("ab", (input) => {
13050
13000
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
13051
13001
  const $scope0_id = _scope_id();
13052
- _set_serialize_reason({
13053
- 0: $sg__input_size__OR__input_class,
13054
- 1: $sg__input_size__OR__input_class
13055
- });
13002
+ _set_serialize_reason($sg__input_size__OR__input_class << 1 | $sg__input_size__OR__input_class << 3);
13056
13003
  const $childScope = _peek_scope_id();
13057
13004
  icon_base_default({
13058
13005
  d: "M8.5 4H6C4.89543 4 4 4.89543 4 6V20C4 21.1046 4.89543 22 6 22H18C19.1046 22 20 21.1046 20 20V6C20 4.89543 19.1046 4 18 4H15.5 M8 6.4V4.5C8 4.22386 8.22386 4 8.5 4C8.77614 4 9.00422 3.77604 9.05152 3.50398C9.19968 2.65171 9.77399 1 12 1C14.226 1 14.8003 2.65171 14.9485 3.50398C14.9958 3.77604 15.2239 4 15.5 4C15.7761 4 16 4.22386 16 4.5V6.4C16 6.73137 15.7314 7 15.4 7H8.6C8.26863 7 8 6.73137 8 6.4Z",
@@ -13179,10 +13126,7 @@ var diff_send_default = _template("k", (input) => {
13179
13126
  var icon_folder_default = _template("hb", (input) => {
13180
13127
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
13181
13128
  const $scope0_id = _scope_id();
13182
- _set_serialize_reason({
13183
- 0: $sg__input_size__OR__input_class,
13184
- 1: $sg__input_size__OR__input_class
13185
- });
13129
+ _set_serialize_reason($sg__input_size__OR__input_class << 1 | $sg__input_size__OR__input_class << 3);
13186
13130
  const $childScope = _peek_scope_id();
13187
13131
  icon_base_default({
13188
13132
  d: "M2 11V4.6C2 4.26863 2.26863 4 2.6 4H8.77805C8.92127 4 9.05977 4.05124 9.16852 4.14445L12.3315 6.85555C12.4402 6.94876 12.5787 7 12.722 7H21.4C21.7314 7 22 7.26863 22 7.6V11M2 11V19.4C2 19.7314 2.26863 20 2.6 20H21.4C21.7314 20 22 19.7314 22 19.4V11M2 11H22",
@@ -13196,10 +13140,7 @@ var icon_folder_default = _template("hb", (input) => {
13196
13140
  var icon_branch_default = _template("Y", (input) => {
13197
13141
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
13198
13142
  const $scope0_id = _scope_id();
13199
- _set_serialize_reason({
13200
- 0: $sg__input_size__OR__input_class,
13201
- 1: $sg__input_size__OR__input_class
13202
- });
13143
+ _set_serialize_reason($sg__input_size__OR__input_class << 1 | $sg__input_size__OR__input_class << 3);
13203
13144
  const $childScope = _peek_scope_id();
13204
13145
  icon_base_default({
13205
13146
  d: "M18 8C19.1046 8 20 7.10457 20 6C20 4.89543 19.1046 4 18 4C16.8954 4 16 4.89543 16 6C16 7.10457 16.8954 8 18 8Z M6 20C7.10457 20 8 19.1046 8 18C8 16.8954 7.10457 16 6 16C4.89543 16 4 16.8954 4 18C4 19.1046 4.89543 20 6 20Z M6 16V3 M8 18H9C12.5 18 18 15.9 18 9.5V8",
@@ -13215,10 +13156,7 @@ var findIconBtn = "_et _l";
13215
13156
  var icon_arrow_down_default = _template("R", (input) => {
13216
13157
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
13217
13158
  const $scope0_id = _scope_id();
13218
- _set_serialize_reason({
13219
- 0: $sg__input_size__OR__input_class,
13220
- 1: $sg__input_size__OR__input_class
13221
- });
13159
+ _set_serialize_reason($sg__input_size__OR__input_class << 1 | $sg__input_size__OR__input_class << 3);
13222
13160
  const $childScope = _peek_scope_id();
13223
13161
  icon_base_default({
13224
13162
  d: "M12 3L12 21M12 21L20.5 12.5M12 21L3.5 12.5",
@@ -13259,7 +13197,7 @@ var diff_find_default = _template("j", (input) => {
13259
13197
  hi = (i % list.length + list.length) % list.length;
13260
13198
  const hit = list[hi];
13261
13199
  setSearchPaint(q, hit, hitKeys(list) ?? void 0);
13262
- }, "j2", $scope0_id);
13200
+ }, "j1", $scope0_id);
13263
13201
  const type = _resume((v) => {
13264
13202
  if (!live.open) return;
13265
13203
  query = v;
@@ -13271,7 +13209,7 @@ var diff_find_default = _template("j", (input) => {
13271
13209
  box.timer = 0;
13272
13210
  emit(v, 0);
13273
13211
  }, 80);
13274
- }, "j3", $scope0_id);
13212
+ }, "j2", $scope0_id);
13275
13213
  const next = _resume((dir) => {
13276
13214
  if (!live.open) return;
13277
13215
  if (box.timer) {
@@ -13279,7 +13217,7 @@ var diff_find_default = _template("j", (input) => {
13279
13217
  box.timer = 0;
13280
13218
  }
13281
13219
  emit(query || "", (at < 0 ? 0 : at) + dir);
13282
- }, "j4", $scope0_id);
13220
+ }, "j3", $scope0_id);
13283
13221
  const close = _resume(() => {
13284
13222
  ((findEl) => findEl())(_el_read_error)?.blur();
13285
13223
  open = false;
@@ -13289,7 +13227,7 @@ var diff_find_default = _template("j", (input) => {
13289
13227
  box.timer = 0;
13290
13228
  }
13291
13229
  setSearchPaint("", null);
13292
- }, "j5", $scope0_id);
13230
+ }, "j4", $scope0_id);
13293
13231
  const focusInput = _resume(() => {
13294
13232
  const el = ((findEl) => findEl())(_el_read_error);
13295
13233
  if (!el) return;
@@ -13299,7 +13237,7 @@ var diff_find_default = _template("j", (input) => {
13299
13237
  el.focus();
13300
13238
  el.select();
13301
13239
  }, 0);
13302
- }, "j0", $scope0_id);
13240
+ }, "j5", $scope0_id);
13303
13241
  _html(`<div${_attr_class([
13304
13242
  "_eo",
13305
13243
  input.keybar && "_ex",
@@ -13308,7 +13246,7 @@ var diff_find_default = _template("j", (input) => {
13308
13246
  icon_search_default({ size: 13 });
13309
13247
  _html(`</span><input${_attr_input_value($scope0_id, "d", query || "", _resume(function(v) {
13310
13248
  type(v);
13311
- }, "j1", $scope0_id))}${_attr_class([findInput, input.keybar && "_ez"])} type=search enterkeyhint=search autocomplete=off tabindex=${open ? "0" : "-1"} placeholder="Find in review" aria-label="Find in review">${_el_resume($scope0_id, "d")}<span${_attr_class("_es")}>${_text_resume($scope0_id, "f", open && (query || "").trim() ? hits.length ? `${at + 1}/${hits.length}` : "0/0" : "")}</span><button type=button${_attr_class([findIconBtn, input.keybar && "_eA"])} title="Previous match"${_attr("disabled", !hits.length || !open)} tabindex=${open ? "0" : "-1"}>`);
13249
+ }, "j0", $scope0_id))}${_attr_class([findInput, input.keybar && "_ez"])} type=search enterkeyhint=search autocomplete=off tabindex=${open ? "0" : "-1"} placeholder="Find in review" aria-label="Find in review">${_el_resume($scope0_id, "d")}<span${_attr_class("_es")}>${_text_resume($scope0_id, "f", open && (query || "").trim() ? hits.length ? `${at + 1}/${hits.length}` : "0/0" : "")}</span><button type=button${_attr_class([findIconBtn, input.keybar && "_eA"])} title="Previous match"${_attr("disabled", !hits.length || !open)} tabindex=${open ? "0" : "-1"}>`);
13312
13250
  icon_arrow_up_default({ size: 14 });
13313
13251
  _html(`</button>${_el_resume($scope0_id, "g")}<button type=button${_attr_class([findIconBtn, input.keybar && "_eA"])} title="Next match"${_attr("disabled", !hits.length || !open)} tabindex=${open ? "0" : "-1"}>`);
13314
13252
  icon_arrow_down_default({ size: 14 });
@@ -13355,20 +13293,20 @@ var diff_find_default = _template("j", (input) => {
13355
13293
  var review_summary_default = _template("y", (input) => {
13356
13294
  const $scope0_reason = _scope_reason(), $sg__input_fileCount = _serialize_guard($scope0_reason, 3), $sg__input_additions = _serialize_guard($scope0_reason, 4), $sg__input_deletions = _serialize_guard($scope0_reason, 5), $sg__input_additions__OR__input_deletions = _serialize_guard($scope0_reason, 0), $sg__input_additions__OR__input_deletions__OR__input_hiddenCount__OR__input_newCount__OR__input_onlyNew = _serialize_guard($scope0_reason, 2), $sg__input_hiddenCount = _serialize_guard($scope0_reason, 6), $sg__input_newCount__OR__input_onlyNew = _serialize_guard($scope0_reason, 1), $si__input_additions__OR__input_deletions = _serialize_if($scope0_reason, 0), $si__input_newCount__OR__input_onlyNew = _serialize_if($scope0_reason, 1);
13357
13295
  const $scope0_id = _scope_id();
13358
- _html(`<div${_attr_class("_hV")}><span>${_text_resume($scope0_id, "b", input.fileCount, $sg__input_fileCount)} file${_text_resume($scope0_id, "c", input.fileCount === 1 ? "" : "s", $sg__input_fileCount * 2)}</span>`);
13296
+ _html(`<div${_attr_class("_ik")}><span>${_text_resume($scope0_id, "b", input.fileCount, $sg__input_fileCount)} file${_text_resume($scope0_id, "c", input.fileCount === 1 ? "" : "s", $sg__input_fileCount * 2)}</span>`);
13359
13297
  _if(() => {
13360
13298
  if (input.additions || input.deletions) {
13361
13299
  const $scope1_id = _scope_id();
13362
- _html(`<span${_attr_class("_hW")}>+${_text_resume($scope1_id, "b", input.additions, $sg__input_additions * 2)}</span><span${_attr_class("_hX")}>−${_text_resume($scope1_id, "d", input.deletions, $sg__input_deletions * 2)}</span>`);
13300
+ _html(`<span${_attr_class("_il")}>+${_text_resume($scope1_id, "b", input.additions, $sg__input_additions * 2)}</span><span${_attr_class("_im")}>−${_text_resume($scope1_id, "d", input.deletions, $sg__input_deletions * 2)}</span>`);
13363
13301
  $si__input_additions__OR__input_deletions && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
13364
13302
  return 0;
13365
13303
  }
13366
13304
  }, $scope0_id, "d", $sg__input_additions__OR__input_deletions, $sg__input_additions__OR__input_deletions, $sg__input_additions__OR__input_deletions__OR__input_hiddenCount__OR__input_newCount__OR__input_onlyNew);
13367
- _html(`<span${_attr_class("_hY")}>`);
13305
+ _html(`<span${_attr_class("_in")}>`);
13368
13306
  _if(() => {
13369
13307
  if (input.hiddenCount) {
13370
13308
  const $scope2_id = _scope_id();
13371
- _html(`<button type=button${_attr_class("_h0")} title="Filtered out of the list — show every file">${_text_resume($scope2_id, "b", input.hiddenCount, $sg__input_hiddenCount)} hidden</button>${_el_resume($scope2_id, "a")}`);
13309
+ _html(`<button type=button${_attr_class("_ip")} title="Filtered out of the list — show every file">${_text_resume($scope2_id, "b", input.hiddenCount, $sg__input_hiddenCount)} hidden</button>${_el_resume($scope2_id, "a")}`);
13372
13310
  _script($scope2_id, "y0");
13373
13311
  writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
13374
13312
  return 0;
@@ -13377,7 +13315,7 @@ var review_summary_default = _template("y", (input) => {
13377
13315
  _if(() => {
13378
13316
  if (input.newCount || input.onlyNew) {
13379
13317
  const $scope3_id = _scope_id();
13380
- _html(`<button type=button${_attr_class(["_h0", { ["_hZ"]: input.onlyNew }])} aria-pressed=${input.onlyNew ? "true" : "false"} title=${input.onlyNew ? "\"Show every file\"" : "\"Show only files changed since your last visit\""}>${_text_resume($scope3_id, "b", input.newCount, _serialize_guard($scope0_reason, 7))} new</button>${_el_resume($scope3_id, "a")}`);
13318
+ _html(`<button type=button${_attr_class(["_ip", { ["_io"]: input.onlyNew }])} aria-pressed=${input.onlyNew ? "true" : "false"} title=${input.onlyNew ? "\"Show every file\"" : "\"Show only files changed since your last visit\""}>${_text_resume($scope3_id, "b", input.newCount, _serialize_guard($scope0_reason, 7))} new</button>${_el_resume($scope3_id, "a")}`);
13381
13319
  _script($scope3_id, "y1");
13382
13320
  writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
13383
13321
  return 0;
@@ -13394,7 +13332,7 @@ var review_summary_default = _template("y", (input) => {
13394
13332
  s: input.onToggleNew
13395
13333
  });
13396
13334
  });
13397
- var repoTitle = "_iD _x";
13335
+ var repoTitle = "_iR _x";
13398
13336
  //#endregion
13399
13337
  //#region src/tags/review-head.marko
13400
13338
  var review_head_default = _template("x", (input) => {
@@ -13418,14 +13356,14 @@ var review_head_default = _template("x", (input) => {
13418
13356
  _if(() => {
13419
13357
  if (repo.pr || repo.rev || repo.githubDrift || input.localDiffers) {
13420
13358
  const $scope1_id = _scope_id();
13421
- _html(`<div${_attr_class("_iA")}${repo.pr ? _attr("data-pr", `${repo.worktree}/${repo.pr.number}`) : ""}>`);
13359
+ _html(`<div${_attr_class("_iO")}${repo.pr ? _attr("data-pr", `${repo.worktree}/${repo.pr.number}`) : ""}>`);
13422
13360
  _if(() => {
13423
13361
  if (repo.pr) {
13424
13362
  const $scope4_id = _scope_id();
13425
- _html(`<span${_attr_class("_iB")}><a${_attr_class([
13363
+ _html(`<span${_attr_class("_iP")}><a${_attr_class([
13426
13364
  "_u",
13427
13365
  "_v",
13428
- "_iC"
13366
+ "_iQ"
13429
13367
  ])}${_attr("href", `${repo.pr.url}/files`)} target=_blank rel=noopener${_attr("title", `${repo.pr.title}: ${repo.pr.headRefName} ${repo.head} vs ${repo.base} ${repo.baseSha}`)}>#${_text_resume($scope4_id, "c", repo.pr.number, $sg__input_repo * 2)}</a>${_el_resume($scope4_id, "b", $sg__input_repo)}<span${_attr_class(repoTitle)}${_attr("title", repo.pr.title)}>${_text_resume($scope4_id, "e", repo.pr.title, $sg__input_repo)}</span>${_el_resume($scope4_id, "d", $sg__input_repo)}</span>`);
13430
13368
  $si__input_repo__OR__input_localDiffers && _subscribe($si__input_repo && $repo_baseSha__closures, _subscribe($si__input_repo && $repo_base__closures, _subscribe($si__input_repo && $repo_head__closures, _subscribe($si__input_repo && $repo_pr_headRefName__closures, _subscribe($si__input_repo && $repo_pr_title__closures, _subscribe($si__input_repo && $repo_pr_url__closures, _subscribe($si__input_repo && $repo_pr_number__closures, writeScope($scope4_id, {
13431
13369
  _: _scope_with_id($scope1_id),
@@ -13438,7 +13376,7 @@ var review_head_default = _template("x", (input) => {
13438
13376
  _if(() => {
13439
13377
  if (repo.rev) {
13440
13378
  const $scope5_id = _scope_id();
13441
- _html(`<span${_attr_class(["_N", "_iJ"])} title="One commit against its parent">commit ${_text_resume($scope5_id, "b", shortSha(repo.rev, 7), $sg__input_repo * 2)}</span>`);
13379
+ _html(`<span${_attr_class(["_N", "_iX"])} title="One commit against its parent">commit ${_text_resume($scope5_id, "b", shortSha(repo.rev, 7), $sg__input_repo * 2)}</span>`);
13442
13380
  $si__input_repo__OR__input_localDiffers && _subscribe($si__input_repo && $repo_rev__closures, writeScope($scope5_id, { _: _scope_with_id($scope1_id) }));
13443
13381
  return 0;
13444
13382
  }
@@ -13449,7 +13387,7 @@ var review_head_default = _template("x", (input) => {
13449
13387
  _html(`<button type=button${_attr_class([
13450
13388
  "_N",
13451
13389
  tone.warn,
13452
- "_iJ"
13390
+ "_iX"
13453
13391
  ])}${_attr("title", `origin/${repo.pr.headRefName} ${repo.head} · GitHub ${repo.pr.headRefOid}. Reload to re-ask GitHub`)}${_attr("disabled", input.loading)}>behind GitHub ${_text_resume($scope2_id, "b", shortSha(repo.head, 7), $sg__input_repo * 2)} → ${_text_resume($scope2_id, "c", shortSha(repo.pr.headRefOid, 7), $sg__input_repo * 2)}</button>${_el_resume($scope2_id, "a")}`);
13454
13392
  _script($scope2_id, "x0");
13455
13393
  _subscribe($si__input_repo && $repo_pr_headRefOid__closures, _subscribe($si__input_repo && $repo_head__closures, _subscribe($si__input_repo && $repo_pr_headRefName__closures, _subscribe($si__input_loading && $input_loading__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })))));
@@ -13459,7 +13397,7 @@ var review_head_default = _template("x", (input) => {
13459
13397
  _if(() => {
13460
13398
  if (input.localDiffers) {
13461
13399
  const $scope3_id = _scope_id();
13462
- _html(`<span${_attr_class(["_N", "_iJ"])}${_attr("title", `This view is ${shortSha(repo.head)} (${repo.pr.headRefName}); checked out is ${shortSha(repo.localHead)} (${repo.branch})`)}>local ${_text_resume($scope3_id, "b", `${shortBranch(repo.branch, input.workspaceBranch, input.workspaceName)} ${shortSha(repo.localHead, 7)}`, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName * 2)}</span>${_el_resume($scope3_id, "a", $sg__input_repo)}`);
13400
+ _html(`<span${_attr_class(["_N", "_iX"])}${_attr("title", `This view is ${shortSha(repo.head)} (${repo.pr.headRefName}); checked out is ${shortSha(repo.localHead)} (${repo.branch})`)}>local ${_text_resume($scope3_id, "b", `${shortBranch(repo.branch, input.workspaceBranch, input.workspaceName)} ${shortSha(repo.localHead, 7)}`, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName * 2)}</span>${_el_resume($scope3_id, "a", $sg__input_repo)}`);
13463
13401
  $si__input_repo__OR__input_localDiffers__OR__input_workspaceBranch__OR__input_workspaceName && _subscribe($si__input_repo && $repo_branch__closures, _subscribe($si__input_repo && $repo_localHead__closures, _subscribe($si__input_repo && $repo_head__closures, _subscribe($si__input_repo && $repo_pr_headRefName__closures, _subscribe($si__input_workspaceName && $input_workspaceName__closures, _subscribe($si__input_workspaceBranch && $input_workspaceBranch__closures, writeScope($scope3_id, {
13464
13402
  _: _scope_with_id($scope1_id),
13465
13403
  Caa: $si__input_repo && 1,
@@ -13585,7 +13523,7 @@ var review_tree_default = _template("z", (input) => {
13585
13523
  dragging$1 = false;
13586
13524
  if (width != null) setDiffTreeWidth(width);
13587
13525
  }, "z2", $scope0_id);
13588
- _html(`<div${_attr_class(["_jd", { ["_jc"]: input.open === false }])}${width != null ? _attr_style(`--tree-w:${width}px`) : ""}><div${_attr_class(["_jH", { ["_jG"]: dragging$1 }])} title="Drag to resize"></div>${_el_resume($scope0_id, "b")}`);
13526
+ _html(`<div${_attr_class(["_jG", { ["_jF"]: input.open === false }])}${width != null ? _attr_style(`--tree-w:${width}px`) : ""}><div${_attr_class(["_j_", { ["_j9"]: dragging$1 }])} title="Drag to resize"></div>${_el_resume($scope0_id, "b")}`);
13589
13527
  const Compare = { content: _content("z4", ({ section }) => {
13590
13528
  const $scope7_id = _scope_id();
13591
13529
  const $Compare_content__section_compare_topic__closures = /* @__PURE__ */ new Set();
@@ -13594,16 +13532,16 @@ var review_tree_default = _template("z", (input) => {
13594
13532
  _if(() => {
13595
13533
  if (section.compare) {
13596
13534
  const $scope9_id = _scope_id();
13597
- _html(`<span${_attr_class("_jw")}${_attr("title", section.compare.title)}>`);
13535
+ _html(`<span${_attr_class("_jZ")}${_attr("title", section.compare.title)}>`);
13598
13536
  _if(() => {
13599
13537
  if (section.compare.topic) {
13600
13538
  const $scope10_id = _scope_id();
13601
- _html(`<span${_attr_class("_jy")}>${_text_resume($scope10_id, "b", section.compare.topic, $sg__section_compare_topic)}</span>`);
13539
+ _html(`<span${_attr_class("_j1")}>${_text_resume($scope10_id, "b", section.compare.topic, $sg__section_compare_topic)}</span>`);
13602
13540
  $si__section_compare && _subscribe($si__section_compare_topic && $Compare_content__section_compare_topic__closures, writeScope($scope10_id, { _: _scope_with_id($scope9_id) }));
13603
13541
  return 0;
13604
13542
  } else if (section.compare.head) {
13605
13543
  const $scope11_id = _scope_id();
13606
- _html(`<span${_attr_class("_jx")}>${_text_resume($scope11_id, "b", section.compare.head, $sg__section_compare_head)}</span>`);
13544
+ _html(`<span${_attr_class("_j0")}>${_text_resume($scope11_id, "b", section.compare.head, $sg__section_compare_head)}</span>`);
13607
13545
  $si__section_compare && _subscribe($si__section_compare_head && $Compare_content__section_compare_head__closures, writeScope($scope11_id, { _: _scope_with_id($scope9_id) }));
13608
13546
  return 1;
13609
13547
  }
@@ -13622,7 +13560,7 @@ var review_tree_default = _template("z", (input) => {
13622
13560
  l: $si__section_compare_head && $Compare_content__section_compare_head__closures
13623
13561
  });
13624
13562
  }, $scope0_id) };
13625
- _html(`<div${_attr_class("_je")}>`);
13563
+ _html(`<div${_attr_class("_jH")}>`);
13626
13564
  _set_serialize_reason(2);
13627
13565
  const $childScope = _peek_scope_id();
13628
13566
  file_filter_default({
@@ -13635,48 +13573,41 @@ var review_tree_default = _template("z", (input) => {
13635
13573
  _if(() => {
13636
13574
  if (input.summary) {
13637
13575
  const $scope1_id = _scope_id();
13638
- _html(`<div${_attr_class("_jf")}>`);
13576
+ _html(`<div${_attr_class("_jI")}>`);
13639
13577
  _dynamic_tag($scope1_id, "b", input.summary, {}, 0, 0, $sg__input_summary);
13640
13578
  _html("</div>");
13641
13579
  $si__input_summary && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
13642
13580
  return 0;
13643
13581
  }
13644
13582
  }, $scope0_id, "e", $sg__input_summary, $sg__input_summary, $sg__input_sections__OR__input_folded__OR__input_summary, 0, 1);
13645
- _html(`<div${_attr_class("_jg")}><div${_attr_class(["_ji", { ["_jh"]: lone }])}>`);
13583
+ _html(`<div${_attr_class("_jJ")}><div${_attr_class(["_jL", { ["_jK"]: lone }])}>`);
13646
13584
  _for_of(input.sections, (section$2) => {
13647
13585
  const $scope2_id = _scope_id();
13648
13586
  const $for_content__section_additions__closures = /* @__PURE__ */ new Set();
13649
13587
  const $for_content__section_deletions__closures = /* @__PURE__ */ new Set();
13650
13588
  const isFolded = !lone && input.folded.has(section$2.id);
13651
13589
  const count = section$2.files.length !== section$2.total ? `${section$2.files.length}/${section$2.total}` : `${section$2.total}`;
13652
- _html(`<div${_attr_class(["_jm", {
13653
- ["_jj"]: lone,
13654
- ["_jk"]: isFolded,
13655
- ["_jl"]: !lone && section$2.id === input.active
13656
- }])}${_attr("data-section", section$2.id)}><div${_attr_class("_jr")} data-head>`);
13590
+ _html(`<div${_attr_class(["_jP", {
13591
+ ["_jM"]: lone,
13592
+ ["_jN"]: isFolded,
13593
+ ["_jO"]: !lone && section$2.id === input.active
13594
+ }])}${_attr("data-section", section$2.id)}><div${_attr_class("_jU")} data-head>`);
13657
13595
  _if(() => {
13658
13596
  if (lone) {
13659
13597
  const $scope8_id = _scope_id();
13660
- _html(`<div${_attr_class("_js")}><span${_attr_class("_jv")}>${_text_resume($scope8_id, "c", section$2.label, $sg__input_sections)}</span>`);
13661
- _set_serialize_reason({
13662
- 0: $sg__input_sections,
13663
- 1: $sg__input_sections,
13664
- 2: $sg__input_sections,
13665
- 3: $sg__input_sections,
13666
- 4: $sg__input_sections,
13667
- 5: $sg__input_sections
13668
- });
13598
+ _html(`<div${_attr_class("_jV")}><span${_attr_class("_jY")}>${_text_resume($scope8_id, "c", section$2.label, $sg__input_sections)}</span>`);
13599
+ _set_serialize_reason($sg__input_sections << 1 | $sg__input_sections << 3 | $sg__input_sections << 5 | $sg__input_sections << 7 | $sg__input_sections << 9 | $sg__input_sections << 11);
13669
13600
  const $childScope2 = _peek_scope_id();
13670
13601
  Compare.content({ section: section$2 });
13671
13602
  _if(() => {
13672
13603
  if (section$2.additions || section$2.deletions) {
13673
13604
  const $scope12_id = _scope_id();
13674
- _html(`<span${_attr_class("_jz")}><span${_attr_class("_jA")}>+${_text_resume($scope12_id, "c", section$2.additions, $sg__input_sections * 2)}</span><span${_attr_class("_jB")}>−${_text_resume($scope12_id, "e", section$2.deletions, $sg__input_sections * 2)}</span></span>`);
13605
+ _html(`<span${_attr_class("_j2")}><span${_attr_class("_j3")}>+${_text_resume($scope12_id, "c", section$2.additions, $sg__input_sections * 2)}</span><span${_attr_class("_j4")}>−${_text_resume($scope12_id, "e", section$2.deletions, $sg__input_sections * 2)}</span></span>`);
13675
13606
  $si__input_sections && _subscribe($for_content__section_deletions__closures, _subscribe($for_content__section_additions__closures, writeScope($scope12_id, { _: _scope_with_id($scope8_id) })));
13676
13607
  return 0;
13677
13608
  }
13678
13609
  }, $scope8_id, "e", $sg__input_sections, $sg__input_sections, $sg__input_sections, 0, 1);
13679
- _html(`<span${_attr_class("_jC")}>${_text_resume($scope8_id, "g", count, $sg__input_sections)}</span></div>`);
13610
+ _html(`<span${_attr_class("_j5")}>${_text_resume($scope8_id, "g", count, $sg__input_sections)}</span></div>`);
13680
13611
  $si__input_sections && writeScope($scope8_id, {
13681
13612
  _: _scope_with_id($scope2_id),
13682
13613
  d: _existing_scope($childScope2)
@@ -13684,23 +13615,16 @@ var review_tree_default = _template("z", (input) => {
13684
13615
  return 0;
13685
13616
  } else {
13686
13617
  const $scope3_id = _scope_id();
13687
- _html(`<button type=button${_attr_class(["_js", "_jt"])}${isFolded ? _attr("title", `${section$2.label}: show its files in the review`) : _attr("title", `${section$2.label}: hide its files from the review`)} aria-expanded=${isFolded ? "false" : "true"}><span${_attr_class("_ju")} aria-hidden=true>`);
13618
+ _html(`<button type=button${_attr_class(["_jV", "_jW"])}${isFolded ? _attr("title", `${section$2.label}: show its files in the review`) : _attr("title", `${section$2.label}: hide its files from the review`)} aria-expanded=${isFolded ? "false" : "true"}><span${_attr_class("_jX")} aria-hidden=true>`);
13688
13619
  icon_chevron_right_default({ size: 12 });
13689
- _html(`</span><span${_attr_class("_jv")}>${_text_resume($scope3_id, "e", section$2.label, $sg__input_sections)}</span>`);
13690
- _set_serialize_reason({
13691
- 0: $sg__input_sections,
13692
- 1: $sg__input_sections,
13693
- 2: $sg__input_sections,
13694
- 3: $sg__input_sections,
13695
- 4: $sg__input_sections,
13696
- 5: $sg__input_sections
13697
- });
13620
+ _html(`</span><span${_attr_class("_jY")}>${_text_resume($scope3_id, "e", section$2.label, $sg__input_sections)}</span>`);
13621
+ _set_serialize_reason($sg__input_sections << 1 | $sg__input_sections << 3 | $sg__input_sections << 5 | $sg__input_sections << 7 | $sg__input_sections << 9 | $sg__input_sections << 11);
13698
13622
  const $childScope3 = _peek_scope_id();
13699
13623
  Compare.content({ section: section$2 });
13700
13624
  _if(() => {
13701
13625
  if (section$2.additions || section$2.deletions) {
13702
13626
  const $scope13_id = _scope_id();
13703
- _html(`<span${_attr_class("_jz")}><span${_attr_class("_jA")}>+${_text_resume($scope13_id, "c", section$2.additions, $sg__input_sections * 2)}</span><span${_attr_class("_jB")}>−${_text_resume($scope13_id, "e", section$2.deletions, $sg__input_sections * 2)}</span></span>`);
13627
+ _html(`<span${_attr_class("_j2")}><span${_attr_class("_j3")}>+${_text_resume($scope13_id, "c", section$2.additions, $sg__input_sections * 2)}</span><span${_attr_class("_j4")}>−${_text_resume($scope13_id, "e", section$2.deletions, $sg__input_sections * 2)}</span></span>`);
13704
13628
  $si__input_sections && _subscribe($for_content__section_deletions__closures, _subscribe($for_content__section_additions__closures, writeScope($scope13_id, {
13705
13629
  _: _scope_with_id($scope3_id),
13706
13630
  Cz: 1,
@@ -13709,7 +13633,7 @@ var review_tree_default = _template("z", (input) => {
13709
13633
  return 0;
13710
13634
  }
13711
13635
  }, $scope3_id, "g", $sg__input_sections, $sg__input_sections, $sg__input_sections, 0, 1);
13712
- _html(`<span${_attr_class("_jC")}>${_text_resume($scope3_id, "i", count, $sg__input_sections)}</span></button>${_el_resume($scope3_id, "a")}`);
13636
+ _html(`<span${_attr_class("_j5")}>${_text_resume($scope3_id, "i", count, $sg__input_sections)}</span></button>${_el_resume($scope3_id, "a")}`);
13713
13637
  _script($scope3_id, "z5");
13714
13638
  writeScope($scope3_id, {
13715
13639
  _: _scope_with_id($scope2_id),
@@ -13721,14 +13645,14 @@ var review_tree_default = _template("z", (input) => {
13721
13645
  _if(() => {
13722
13646
  if (input.detail) {
13723
13647
  const $scope4_id = _scope_id();
13724
- _html(`<div${_attr_class("_jD")}>`);
13648
+ _html(`<div${_attr_class("_j6")}>`);
13725
13649
  _dynamic_tag($scope4_id, "b", input.detail, { id: section$2.id }, 0, 0, $sg__input_sections__OR__input_detail);
13726
13650
  _html("</div>");
13727
13651
  $si__input_sections__OR__input_detail && _subscribe($si__input_detail && $input_detail__closures, writeScope($scope4_id, { _: _scope_with_id($scope2_id) }));
13728
13652
  return 0;
13729
13653
  }
13730
13654
  }, $scope2_id, "d", $sg__input_sections__OR__input_detail, $sg__input_detail, $sg__input_sections_length__OR__input_detail, 0, 1);
13731
- _html(`</div><div${_attr_class(["_jF", { ["_jE"]: lone }])}${_attr("data-tree", section$2.id)}${_attr("hidden", isFolded || !section$2.files.length)}></div>${_el_resume($scope2_id, "e", $sg__input_sections__OR__input_folded)}</div>${_el_resume($scope2_id, "a", $sg__input_sections__OR__input_folded__OR__input_active)}`);
13655
+ _html(`</div><div${_attr_class(["_j8", { ["_j7"]: lone }])}${_attr("data-tree", section$2.id)}${_attr("hidden", isFolded || !section$2.files.length)}></div>${_el_resume($scope2_id, "e", $sg__input_sections__OR__input_folded)}</div>${_el_resume($scope2_id, "a", $sg__input_sections__OR__input_folded__OR__input_active)}`);
13732
13656
  writeScope($scope2_id, {
13733
13657
  g: $si__input_sections_length && section$2,
13734
13658
  h: section$2?.id,
@@ -13747,12 +13671,12 @@ var review_tree_default = _template("z", (input) => {
13747
13671
  _if(() => {
13748
13672
  if (foldedSections.length) {
13749
13673
  const $scope5_id = _scope_id();
13750
- _html(`<div${_attr_class("_jn")} role=group aria-label="Folded sections">`);
13674
+ _html(`<div${_attr_class("_jQ")} role=group aria-label="Folded sections">`);
13751
13675
  _for_of(foldedSections, (section) => {
13752
13676
  const $scope6_id = _scope_id();
13753
- _html(`<button type=button${_attr_class(["_u", "_jo"])}${_attr("title", `${section.label}: show its ${section.files.length} file${section.files.length === 1 ? "" : "s"} in the review`)} aria-expanded=false><span${_attr_class("_jp")} aria-hidden=true>`);
13677
+ _html(`<button type=button${_attr_class(["_u", "_jR"])}${_attr("title", `${section.label}: show its ${section.files.length} file${section.files.length === 1 ? "" : "s"} in the review`)} aria-expanded=false><span${_attr_class("_jS")} aria-hidden=true>`);
13754
13678
  icon_chevron_right_default({ size: 10 });
13755
- _html(`</span><span${_attr_class("_jq")}>${_text_resume($scope6_id, "e", section.label, $sg__input_sections__OR__input_folded)}</span></button>${_el_resume($scope6_id, "a")}`);
13679
+ _html(`</span><span${_attr_class("_jT")}>${_text_resume($scope6_id, "e", section.label, $sg__input_sections__OR__input_folded)}</span></button>${_el_resume($scope6_id, "a")}`);
13756
13680
  _script($scope6_id, "z6");
13757
13681
  writeScope($scope6_id, {
13758
13682
  l: section?.id,
@@ -13790,7 +13714,7 @@ var review_tree_default = _template("z", (input) => {
13790
13714
  ag: $si__input_detail && $input_detail__closures
13791
13715
  });
13792
13716
  });
13793
- var sheetDir = "_j4 _ba";
13717
+ var sheetDir = "_jy _ba";
13794
13718
  //#endregion
13795
13719
  //#region src/tags/diff-file-sheet.marko
13796
13720
  var diff_file_sheet_default = _template("i", (input) => {
@@ -13843,7 +13767,7 @@ var diff_file_sheet_default = _template("i", (input) => {
13843
13767
  _if(() => {
13844
13768
  if (open) {
13845
13769
  const $scope1_id = _scope_id();
13846
- _html(`<div${_attr_class("_jK")}></div>${_el_resume($scope1_id, "a")}<div${_attr_class("_jL")} role=dialog aria-label="Jump to file"><div${_attr_class("_jM")}><strong${_attr_class("_jJ")}>Files</strong><span${_attr_class("_z")}></span><button type=button${_attr_class([iconBtnLg, "_jI"])} title=Close aria-label=Close>`);
13770
+ _html(`<div${_attr_class("_je")}></div>${_el_resume($scope1_id, "a")}<div${_attr_class("_jf")} role=dialog aria-label="Jump to file"><div${_attr_class("_jg")}><strong${_attr_class("_jd")}>Files</strong><span${_attr_class("_z")}></span><button type=button${_attr_class([iconBtnLg, "_jc"])} title=Close aria-label=Close>`);
13847
13771
  icon_xmark_default({ size: 16 });
13848
13772
  _html(`</button>${_el_resume($scope1_id, "f")}</div>`);
13849
13773
  const Compare = { content: _content("i3", ({ section }) => {
@@ -13854,16 +13778,16 @@ var diff_file_sheet_default = _template("i", (input) => {
13854
13778
  _if(() => {
13855
13779
  if (section.compare) {
13856
13780
  const $scope12_id = _scope_id();
13857
- _html(`<span${_attr_class("_jX")}${_attr("title", section.compare.title)}>`);
13781
+ _html(`<span${_attr_class("_jr")}${_attr("title", section.compare.title)}>`);
13858
13782
  _if(() => {
13859
13783
  if (section.compare.topic) {
13860
13784
  const $scope13_id = _scope_id();
13861
- _html(`<span${_attr_class("_jZ")}>${_text_resume($scope13_id, "b", section.compare.topic, $sg__section_compare_topic)}</span>`);
13785
+ _html(`<span${_attr_class("_jt")}>${_text_resume($scope13_id, "b", section.compare.topic, $sg__section_compare_topic)}</span>`);
13862
13786
  $si__section_compare && _subscribe($si__section_compare_topic && $Compare_content__section_compare_topic__closures, writeScope($scope13_id, { _: _scope_with_id($scope12_id) }));
13863
13787
  return 0;
13864
13788
  } else if (section.compare.head) {
13865
13789
  const $scope14_id = _scope_id();
13866
- _html(`<span${_attr_class("_jY")}>${_text_resume($scope14_id, "b", section.compare.head, $sg__section_compare_head)}</span>`);
13790
+ _html(`<span${_attr_class("_js")}>${_text_resume($scope14_id, "b", section.compare.head, $sg__section_compare_head)}</span>`);
13867
13791
  $si__section_compare && _subscribe($si__section_compare_head && $Compare_content__section_compare_head__closures, writeScope($scope14_id, { _: _scope_with_id($scope12_id) }));
13868
13792
  return 1;
13869
13793
  }
@@ -13882,7 +13806,7 @@ var diff_file_sheet_default = _template("i", (input) => {
13882
13806
  l: $si__section_compare_head && $Compare_content__section_compare_head__closures
13883
13807
  });
13884
13808
  }, $scope1_id) };
13885
- _html(`<div${_attr_class("_j7")}>`);
13809
+ _html(`<div${_attr_class("_jB")}>`);
13886
13810
  _set_serialize_reason(2);
13887
13811
  const $childScope = _peek_scope_id();
13888
13812
  file_filter_default({
@@ -13894,35 +13818,28 @@ var diff_file_sheet_default = _template("i", (input) => {
13894
13818
  _if(() => {
13895
13819
  if (input.summary) {
13896
13820
  const $scope2_id = _scope_id();
13897
- _html(`<div${_attr_class("_j6")}>`);
13821
+ _html(`<div${_attr_class("_jA")}>`);
13898
13822
  _dynamic_tag($scope2_id, "b", input.summary, {}, 0, 0, $sg__input_summary);
13899
13823
  _html("</div>");
13900
13824
  _subscribe($si__input_summary && $input_summary__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) }));
13901
13825
  return 0;
13902
13826
  }
13903
13827
  }, $scope1_id, "j", $sg__input_summary, $sg__input_summary, $sg__input_sections__OR__input_folded__OR__input_summary, 0, 1);
13904
- _html(`</div><div${_attr_class("_jN")}>`);
13828
+ _html(`</div><div${_attr_class("_jh")}>`);
13905
13829
  _for_of(openSections, (section) => {
13906
13830
  const $scope3_id = _scope_id();
13907
13831
  const count = section.files.length !== section.total ? `${section.files.length}/${section.total}` : `${section.total}`;
13908
- _html(`<div${_attr_class("_jO")}>`);
13832
+ _html(`<div${_attr_class("_ji")}>`);
13909
13833
  _if(() => {
13910
13834
  if (many) {
13911
13835
  const $scope4_id = _scope_id();
13912
- _html(`<button type=button${_attr_class(["_jT", "_jU"])} aria-expanded=true title="Hide this section's files from the review"><span${_attr_class("_jV")} aria-hidden=true>`);
13836
+ _html(`<button type=button${_attr_class(["_jn", "_jo"])} aria-expanded=true title="Hide this section's files from the review"><span${_attr_class("_jp")} aria-hidden=true>`);
13913
13837
  icon_chevron_right_default({ size: 12 });
13914
- _html(`</span><span${_attr_class("_jW")}>${_text_resume($scope4_id, "e", section.label, $sg__input_sections__OR__input_folded)}</span>`);
13915
- _set_serialize_reason({
13916
- 0: $sg__input_sections__OR__input_folded,
13917
- 1: $sg__input_sections__OR__input_folded,
13918
- 2: $sg__input_sections__OR__input_folded,
13919
- 3: $sg__input_sections__OR__input_folded,
13920
- 4: $sg__input_sections__OR__input_folded,
13921
- 5: $sg__input_sections__OR__input_folded
13922
- });
13838
+ _html(`</span><span${_attr_class("_jq")}>${_text_resume($scope4_id, "e", section.label, $sg__input_sections__OR__input_folded)}</span>`);
13839
+ _set_serialize_reason($sg__input_sections__OR__input_folded << 1 | $sg__input_sections__OR__input_folded << 3 | $sg__input_sections__OR__input_folded << 5 | $sg__input_sections__OR__input_folded << 7 | $sg__input_sections__OR__input_folded << 9 | $sg__input_sections__OR__input_folded << 11);
13923
13840
  const $childScope2 = _peek_scope_id();
13924
13841
  Compare.content({ section });
13925
- _html(`<span${_attr_class("_j0")}>${_text_resume($scope4_id, "h", count, $sg__input_sections__OR__input_folded)}</span></button>${_el_resume($scope4_id, "a")}`);
13842
+ _html(`<span${_attr_class("_ju")}>${_text_resume($scope4_id, "h", count, $sg__input_sections__OR__input_folded)}</span></button>${_el_resume($scope4_id, "a")}`);
13926
13843
  _script($scope4_id, "i4");
13927
13844
  writeScope($scope4_id, {
13928
13845
  _: _scope_with_id($scope3_id),
@@ -13931,18 +13848,11 @@ var diff_file_sheet_default = _template("i", (input) => {
13931
13848
  return 0;
13932
13849
  } else {
13933
13850
  const $scope11_id = _scope_id();
13934
- _html(`<div${_attr_class("_jT")}><span${_attr_class("_jW")}>${_text_resume($scope11_id, "c", section.label, $sg__input_sections__OR__input_folded)}</span>`);
13935
- _set_serialize_reason({
13936
- 0: $sg__input_sections__OR__input_folded,
13937
- 1: $sg__input_sections__OR__input_folded,
13938
- 2: $sg__input_sections__OR__input_folded,
13939
- 3: $sg__input_sections__OR__input_folded,
13940
- 4: $sg__input_sections__OR__input_folded,
13941
- 5: $sg__input_sections__OR__input_folded
13942
- });
13851
+ _html(`<div${_attr_class("_jn")}><span${_attr_class("_jq")}>${_text_resume($scope11_id, "c", section.label, $sg__input_sections__OR__input_folded)}</span>`);
13852
+ _set_serialize_reason($sg__input_sections__OR__input_folded << 1 | $sg__input_sections__OR__input_folded << 3 | $sg__input_sections__OR__input_folded << 5 | $sg__input_sections__OR__input_folded << 7 | $sg__input_sections__OR__input_folded << 9 | $sg__input_sections__OR__input_folded << 11);
13943
13853
  const $childScope3 = _peek_scope_id();
13944
13854
  Compare.content({ section });
13945
- _html(`<span${_attr_class("_j0")}>${_text_resume($scope11_id, "f", count, $sg__input_sections__OR__input_folded)}</span></div>`);
13855
+ _html(`<span${_attr_class("_ju")}>${_text_resume($scope11_id, "f", count, $sg__input_sections__OR__input_folded)}</span></div>`);
13946
13856
  $si__input_sections__OR__input_folded && writeScope($scope11_id, {
13947
13857
  _: _scope_with_id($scope3_id),
13948
13858
  d: _existing_scope($childScope3)
@@ -13953,7 +13863,7 @@ var diff_file_sheet_default = _template("i", (input) => {
13953
13863
  _if(() => {
13954
13864
  if (input.detail) {
13955
13865
  const $scope5_id = _scope_id();
13956
- _html(`<div${_attr_class("_j1")}>`);
13866
+ _html(`<div${_attr_class("_jv")}>`);
13957
13867
  _dynamic_tag($scope5_id, "b", input.detail, { id: section.id }, 0, 0, $sg__input_sections__OR__input_folded__OR__input_detail);
13958
13868
  _html("</div>");
13959
13869
  _subscribe($si__input_detail && $input_detail__closures, writeScope($scope5_id, {
@@ -13965,7 +13875,7 @@ var diff_file_sheet_default = _template("i", (input) => {
13965
13875
  }, $scope3_id, "c", $sg__input_sections__OR__input_folded__OR__input_detail, $sg__input_detail, $sg__input_sections_length__OR__input_detail, 0, 1);
13966
13876
  _for_of(dirsOf(section), ({ dir, files }) => {
13967
13877
  const $scope8_id = _scope_id();
13968
- _html(`<div${_attr_class("_j2")}>`);
13878
+ _html(`<div${_attr_class("_jw")}>`);
13969
13879
  _if(() => {
13970
13880
  if (dir) {
13971
13881
  const $scope15_id = _scope_id();
@@ -13976,11 +13886,11 @@ var diff_file_sheet_default = _template("i", (input) => {
13976
13886
  }, $scope8_id, "b", $sg__input_sections__OR__input_folded, $sg__input_sections__OR__input_folded, $sg__input_sections__OR__input_folded, 0, 1);
13977
13887
  _for_of(files, ({ file, name }) => {
13978
13888
  const $scope9_id = _scope_id();
13979
- _html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["_j3", "_y"])}><span${_attr_class("__")}${_attr("data-status", file.status)}>${_text_resume($scope9_id, "c", file.status, $sg__input_sections__OR__input_folded)}</span>${_el_resume($scope9_id, "b", $sg__input_sections__OR__input_folded)}<span${_attr_class("_j5")}><bdi>${_text_resume($scope9_id, "e", name, $sg__input_sections__OR__input_folded)}</bdi></span>`);
13889
+ _html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["_jx", "_y"])}><span${_attr_class("__")}${_attr("data-status", file.status)}>${_text_resume($scope9_id, "c", file.status, $sg__input_sections__OR__input_folded)}</span>${_el_resume($scope9_id, "b", $sg__input_sections__OR__input_folded)}<span${_attr_class("_jz")}><bdi>${_text_resume($scope9_id, "e", name, $sg__input_sections__OR__input_folded)}</bdi></span>`);
13980
13890
  _if(() => {
13981
13891
  if (newKeys.has(file.key)) {
13982
13892
  const $scope16_id = _scope_id();
13983
- _html(`<span${_attr_class(["_A", "_j9"])} title="Changed since your last visit"></span>`);
13893
+ _html(`<span${_attr_class(["_A", "_jD"])} title="Changed since your last visit"></span>`);
13984
13894
  _serialize_if($scope0_reason, 5) && writeScope($scope16_id, {});
13985
13895
  return 0;
13986
13896
  }
@@ -13990,7 +13900,7 @@ var diff_file_sheet_default = _template("i", (input) => {
13990
13900
  const $scope17_id = _scope_id();
13991
13901
  icon_comment_default({
13992
13902
  size: 12,
13993
- class: "_j_"
13903
+ class: "_jE"
13994
13904
  });
13995
13905
  _serialize_if($scope0_reason, 4) && writeScope($scope17_id, {});
13996
13906
  return 0;
@@ -14021,7 +13931,7 @@ var diff_file_sheet_default = _template("i", (input) => {
14021
13931
  _if(() => {
14022
13932
  if (!shown) {
14023
13933
  const $scope18_id = _scope_id();
14024
- _html(`<p${_attr_class("_j8")}>No files match.</p>`);
13934
+ _html(`<p${_attr_class("_jC")}>No files match.</p>`);
14025
13935
  $si__input_sections && writeScope($scope18_id, {});
14026
13936
  return 0;
14027
13937
  }
@@ -14030,12 +13940,12 @@ var diff_file_sheet_default = _template("i", (input) => {
14030
13940
  _if(() => {
14031
13941
  if (foldedSections.length) {
14032
13942
  const $scope6_id = _scope_id();
14033
- _html(`<div${_attr_class("_jP")} role=group aria-label="Folded sections">`);
13943
+ _html(`<div${_attr_class("_jj")} role=group aria-label="Folded sections">`);
14034
13944
  _for_of(foldedSections, (section) => {
14035
13945
  const $scope7_id = _scope_id();
14036
- _html(`<button type=button${_attr_class(["_u", "_jQ"])} aria-expanded=false${_attr("title", `${section.label}: show its ${section.files.length} file${section.files.length === 1 ? "" : "s"} in the review`)}><span${_attr_class("_jR")} aria-hidden=true>`);
13946
+ _html(`<button type=button${_attr_class(["_u", "_jk"])} aria-expanded=false${_attr("title", `${section.label}: show its ${section.files.length} file${section.files.length === 1 ? "" : "s"} in the review`)}><span${_attr_class("_jl")} aria-hidden=true>`);
14037
13947
  icon_chevron_right_default({ size: 10 });
14038
- _html(`</span><span${_attr_class("_jS")}>${_text_resume($scope7_id, "e", section.label, $sg__input_sections__OR__input_folded)}</span></button>${_el_resume($scope7_id, "a")}`);
13948
+ _html(`</span><span${_attr_class("_jm")}>${_text_resume($scope7_id, "e", section.label, $sg__input_sections__OR__input_folded)}</span></button>${_el_resume($scope7_id, "a")}`);
14039
13949
  _script($scope7_id, "i6");
14040
13950
  writeScope($scope7_id, {
14041
13951
  l: section?.id,
@@ -14537,11 +14447,11 @@ var review_view_default = _template("A", (input) => {
14537
14447
  else viewBox.scrollToLine(hit.key, hit.line, hit.side);
14538
14448
  }, 0);
14539
14449
  };
14540
- _html(`<div${_attr_class("_gl")}><div${_attr_class("_gq")}><div${_attr_class("_gX")}><div${_attr_class("_gr")}><div${_attr_class("_gy")}>`);
14450
+ _html(`<div${_attr_class("_g0")}><div${_attr_class("_g5")}><div${_attr_class("_hB")}><div${_attr_class("_g6")}><div${_attr_class("_hc")}>`);
14541
14451
  _if(() => {
14542
14452
  if (input.onExit) {
14543
14453
  const $scope1_id = _scope_id();
14544
- _html(`<a${_attr("href", `/w/${input.workspaceId}`)}${_attr_class([iconBtnRow, "_gs"])} title="Back to terminal (⌘/Ctrl+Shift+D)">`);
14454
+ _html(`<a${_attr("href", `/w/${input.workspaceId}`)}${_attr_class([iconBtnRow, "_g7"])} title="Back to terminal (⌘/Ctrl+Shift+D)">`);
14545
14455
  icon_back_default({ size: 14 });
14546
14456
  _html(`</a>${_el_resume($scope1_id, "a", $sg__input_workspaceId)}`);
14547
14457
  _serialize_if($scope0_reason, 0) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 1) && _scope_with_id($scope0_id) });
@@ -14552,11 +14462,8 @@ var review_view_default = _template("A", (input) => {
14552
14462
  _if(() => {
14553
14463
  if (comments.length) {
14554
14464
  const $scope2_id = _scope_id();
14555
- _html(`<span${_attr_class("_gt")}>`);
14556
- _set_serialize_reason({
14557
- 0: _serialize_guard($scope0_reason, 9),
14558
- 1: 1
14559
- });
14465
+ _html(`<span${_attr_class("_g8")}>`);
14466
+ _set_serialize_reason(8 | _serialize_guard($scope0_reason, 9) << 1);
14560
14467
  const $childScope = _peek_scope_id();
14561
14468
  diff_send_default({
14562
14469
  count: comments.length,
@@ -14569,14 +14476,14 @@ var review_view_default = _template("A", (input) => {
14569
14476
  return 0;
14570
14477
  }
14571
14478
  }, $scope0_id, "h", 1, 1, 1, 0, 1);
14572
- _html(`</div><div${_attr_class(["_gp", "_gW"])}>`);
14479
+ _html(`</div><div${_attr_class(["_g4", "_hA"])}>`);
14573
14480
  _if(() => {
14574
14481
  if (hasFiles) {
14575
14482
  const $scope12_id = _scope_id();
14576
14483
  _html(`<button${_attr_class([
14577
14484
  treeToggle,
14578
- "_gn",
14579
- { ["_gm"]: treeOpen }
14485
+ "_g2",
14486
+ { ["_g1"]: treeOpen }
14580
14487
  ])} title=${treeOpen ? "\"Hide file tree\"" : "\"Show file tree\""}>`);
14581
14488
  icon_sidebar_default({ size: 14 });
14582
14489
  _html(`</button>${_el_resume($scope12_id, "a")}`);
@@ -14585,8 +14492,8 @@ var review_view_default = _template("A", (input) => {
14585
14492
  return 0;
14586
14493
  }
14587
14494
  }, $scope0_id, "j", 1, 1, 1, 0, 1);
14588
- _html(`<button${_attr_class([iconBtnRow, "_gn"])} title="Refresh diff"${_attr("disabled", loading)}>`);
14589
- _set_serialize_reason(1);
14495
+ _html(`<button${_attr_class([iconBtnRow, "_g2"])} title="Refresh diff"${_attr("disabled", loading)}>`);
14496
+ _set_serialize_reason(2);
14590
14497
  const $childScope2 = _peek_scope_id();
14591
14498
  icon_refresh_default({
14592
14499
  size: 14,
@@ -14598,30 +14505,30 @@ var review_view_default = _template("A", (input) => {
14598
14505
  const $scope13_id = _scope_id();
14599
14506
  _html(`<button${_attr_class([
14600
14507
  iconBtnRow,
14601
- "_gn",
14602
- "_gH"
14603
- ])}${_attr("title", `Jump to file (${shownFiles.length})`)}${_attr("aria-label", `Jump to file (${shownFiles.length} files)`)}><span${_attr_class("_gI")} aria-hidden=true>`);
14508
+ "_g2",
14509
+ "_hl"
14510
+ ])}${_attr("title", `Jump to file (${shownFiles.length})`)}${_attr("aria-label", `Jump to file (${shownFiles.length} files)`)}><span${_attr_class("_hm")} aria-hidden=true>`);
14604
14511
  icon_folder_default({
14605
14512
  size: 20,
14606
- class: "_gJ"
14513
+ class: "_hn"
14607
14514
  });
14608
- _html(`<span${_attr_class("_gK")}>${_text_resume($scope13_id, "e", shownFiles.length > 99 ? "99+" : shownFiles.length)}</span></span></button>${_el_resume($scope13_id, "a")}`);
14515
+ _html(`<span${_attr_class("_ho")}>${_text_resume($scope13_id, "e", shownFiles.length > 99 ? "99+" : shownFiles.length)}</span></span></button>${_el_resume($scope13_id, "a")}`);
14609
14516
  _script($scope13_id, "A39");
14610
14517
  writeScope($scope13_id, {});
14611
14518
  return 0;
14612
14519
  }
14613
14520
  }, $scope0_id, "m", 1, 1, 1, 0, 1);
14614
- _html(`<span${_attr_class("_gz")}><button${_attr_class([
14521
+ _html(`<span${_attr_class("_hd")}><button${_attr_class([
14615
14522
  iconBtnRow,
14616
- "_gn",
14617
- { ["_gm"]: !!rev }
14523
+ "_g2",
14524
+ { ["_g1"]: !!rev }
14618
14525
  ])}${_attr("title", `${compareLabel}\n${compareTitle}`)} aria-label=Compare${_attr("disabled", loading)}>`);
14619
14526
  icon_branch_default({ size: 14 });
14620
14527
  _html(`</button>${_el_resume($scope0_id, "o")}`);
14621
14528
  _attr_select_value($scope0_id, "q", rev ? `rev:${rev}` : scope, _resume(function(v) {
14622
14529
  pickCompare(v);
14623
14530
  }, "A0", $scope0_id), () => {
14624
- _html(`<select${_attr_class("_gA")} aria-label=Compare tabindex=-1${_attr("disabled", loading)}><option${_attr_option_value("committed")}>Committed</option><option${_attr_option_value("working")}>Working tree</option><option${_attr_option_value("dirty")}>Uncommitted</option>`);
14531
+ _html(`<select${_attr_class("_he")} aria-label=Compare tabindex=-1${_attr("disabled", loading)}><option${_attr_option_value("committed")}>Committed</option><option${_attr_option_value("working")}>Working tree</option><option${_attr_option_value("dirty")}>Uncommitted</option>`);
14625
14532
  _if(() => {
14626
14533
  if (commitOptions.length) {
14627
14534
  const $scope16_id = _scope_id();
@@ -14637,7 +14544,7 @@ var review_view_default = _template("A", (input) => {
14637
14544
  }, $scope0_id, "r", 1, 1, 1, 0, 1);
14638
14545
  _html("</select>");
14639
14546
  });
14640
- _html(`${_el_resume($scope0_id, "q")}</span> <div${_attr_class(["_gx", { ["_gw"]: !findOpen }])}>`);
14547
+ _html(`${_el_resume($scope0_id, "q")}</span> <div${_attr_class(["_hb", { ["_ha"]: !findOpen }])}>`);
14641
14548
  _set_serialize_reason(2);
14642
14549
  const $childScope3 = _peek_scope_id();
14643
14550
  let findFocus = diff_find_default({
@@ -14660,8 +14567,8 @@ var review_view_default = _template("A", (input) => {
14660
14567
  const $scope14_id = _scope_id();
14661
14568
  _html(`<button${_attr_class([
14662
14569
  iconBtnRow,
14663
- "_gv",
14664
- "_gn"
14570
+ "_g_",
14571
+ "_g2"
14665
14572
  ])} title="Find in review (⌘/Ctrl+F)" aria-label="Find in review"${_attr("hidden", findOpen)}>`);
14666
14573
  icon_search_default({ size: 14 });
14667
14574
  _html(`</button>${_el_resume($scope14_id, "a")}`);
@@ -14670,7 +14577,7 @@ var review_view_default = _template("A", (input) => {
14670
14577
  return 0;
14671
14578
  }
14672
14579
  }, $scope0_id, "v", 1, 1, 1, 0, 1);
14673
- _html(`</div></div><div${_attr_class("_gL")}>`);
14580
+ _html(`</div></div><div${_attr_class("_hp")}>`);
14674
14581
  _if(() => {
14675
14582
  if (error) {
14676
14583
  const $scope5_id = _scope_id();
@@ -14692,7 +14599,7 @@ var review_view_default = _template("A", (input) => {
14692
14599
  _for_of(repoList.filter((r) => r.baseMissing), (repo) => {
14693
14600
  const $scope9_id = _scope_id();
14694
14601
  const $for_content__repo_base__closures = /* @__PURE__ */ new Set();
14695
- _set_serialize_reason(356);
14602
+ _set_serialize_reason(35336);
14696
14603
  const $childScope4 = _peek_scope_id();
14697
14604
  toast_default({
14698
14605
  kind: "warn",
@@ -14713,10 +14620,10 @@ var review_view_default = _template("A", (input) => {
14713
14620
  _if(() => {
14714
14621
  if (!repos && loading) {
14715
14622
  const $scope18_id = _scope_id();
14716
- _html(`<div${_attr_class("_gC")} aria-hidden=true>`);
14623
+ _html(`<div${_attr_class("_hg")} aria-hidden=true>`);
14717
14624
  forTo(2, 0, 1, () => {
14718
14625
  _scope_id();
14719
- _html(`<div${_attr_class("_gE")}><div${_attr_class(["_gD", "_gF"])}></div><div${_attr_class(["_gD", "_gG"])}></div></div>`);
14626
+ _html(`<div${_attr_class("_hi")}><div${_attr_class(["_hh", "_hj"])}></div><div${_attr_class(["_hh", "_hk"])}></div></div>`);
14720
14627
  });
14721
14628
  _html("</div>");
14722
14629
  writeScope($scope18_id, {});
@@ -14726,27 +14633,27 @@ var review_view_default = _template("A", (input) => {
14726
14633
  _if(() => {
14727
14634
  if (repos && !allFiles.length) {
14728
14635
  const $scope11_id = _scope_id();
14729
- _html(`<p${_attr_class("_b6")}>${_text_resume($scope11_id, "b", rev ? "This commit is not in any of these repos." : repoList.some((r) => r.unborn) ? "No commits yet." : scope === "dirty" ? "Nothing uncommitted." : repoList.some((r) => r.pr) ? "No file changes on these PRs." : "No changes vs base.")}</p>`);
14636
+ _html(`<p${_attr_class("_b8")}>${_text_resume($scope11_id, "b", rev ? "This commit is not in any of these repos." : repoList.some((r) => r.unborn) ? "No commits yet." : scope === "dirty" ? "Nothing uncommitted." : repoList.some((r) => r.pr) ? "No file changes on these PRs." : "No changes vs base.")}</p>`);
14730
14637
  writeScope($scope11_id, {});
14731
14638
  return 0;
14732
14639
  } else if (repos && !listFiles.length && !findState.hit) {
14733
14640
  const $scope7_id = _scope_id();
14734
- _html(`<p${_attr_class("_b6")}>${_text_resume($scope7_id, "b", findState.query.trim() ? "No matches in review." : onlyNew && !fileFilter ? "Nothing changed since your last visit." : `No files match "${fileFilter}".`)}</p>`);
14641
+ _html(`<p${_attr_class("_b8")}>${_text_resume($scope7_id, "b", findState.query.trim() ? "No matches in review." : onlyNew && !fileFilter ? "Nothing changed since your last visit." : `No files match "${fileFilter}".`)}</p>`);
14735
14642
  writeScope($scope7_id, {});
14736
14643
  return 1;
14737
14644
  } else if (repos && !shownFiles.length) {
14738
14645
  const $scope15_id = _scope_id();
14739
- _html(`<div${_attr_class("_b6")}><span>Every section is folded (${_text_resume($scope15_id, "b", folds.size, 2)} of ${_text_resume($scope15_id, "c", sections.length, 2)}).</span><button${_attr_class("_q")}>Show all</button>${_el_resume($scope15_id, "d")}</div>`);
14646
+ _html(`<div${_attr_class("_b8")}><span>Every section is folded (${_text_resume($scope15_id, "b", folds.size, 2)} of ${_text_resume($scope15_id, "c", sections.length, 2)}).</span><button${_attr_class("_q")}>Show all</button>${_el_resume($scope15_id, "d")}</div>`);
14740
14647
  _script($scope15_id, "A44");
14741
14648
  writeScope($scope15_id, {});
14742
14649
  return 2;
14743
14650
  }
14744
14651
  }, $scope0_id, "a0", 1, 1, 1, 0, 1);
14745
- _html(`</div></div><div${_attr_class("_gM")} data-diff-main></div>${_el_resume($scope0_id, "a1")}</div>`);
14652
+ _html(`</div></div><div${_attr_class("_hq")} data-diff-main></div>${_el_resume($scope0_id, "a1")}</div>`);
14746
14653
  const Summary = { content: _content("A45", () => {
14747
14654
  const $scope8_id = _scope_id();
14748
14655
  _scope_reason();
14749
- _set_serialize_reason(1);
14656
+ _set_serialize_reason(43690);
14750
14657
  const $childScope5 = _peek_scope_id();
14751
14658
  review_summary_default({
14752
14659
  fileCount: listFiles.length,
@@ -14772,18 +14679,7 @@ var review_view_default = _template("A", (input) => {
14772
14679
  _if(() => {
14773
14680
  if (section) {
14774
14681
  const $scope4_id = _scope_id();
14775
- _set_serialize_reason({
14776
- 0: 1,
14777
- 1: 1,
14778
- 2: 1,
14779
- 3: 1,
14780
- 4: 1,
14781
- 5: 1,
14782
- 6: 1,
14783
- 7: 1,
14784
- 8: _serialize_guard($scope0_reason, 6),
14785
- 9: _serialize_guard($scope0_reason, 7)
14786
- });
14682
+ _set_serialize_reason(43690 | (_serialize_guard($scope0_reason, 6) << 17 | _serialize_guard($scope0_reason, 7) << 19));
14787
14683
  const $childScope6 = _peek_scope_id();
14788
14684
  review_head_default({
14789
14685
  repo: section.repo,
@@ -14803,7 +14699,7 @@ var review_view_default = _template("A", (input) => {
14803
14699
  _: _scope_with_id($scope0_id)
14804
14700
  }));
14805
14701
  }, $scope0_id) };
14806
- _set_serialize_reason(7678);
14702
+ _set_serialize_reason(11053738);
14807
14703
  let $summary;
14808
14704
  if (allFiles.length) $summary = attrTag({ content: _content_resume("A47", () => {
14809
14705
  _scope_reason();
@@ -14828,13 +14724,31 @@ var review_view_default = _template("A", (input) => {
14828
14724
  detail: attrTag({ content: _content_resume("A48", ({ id }) => {
14829
14725
  const $scope22_reason = _scope_reason(), $sg__id = _serialize_guard($scope22_reason, 0);
14830
14726
  const $scope22_id = _scope_id();
14831
- _set_serialize_reason($sg__id);
14727
+ _set_serialize_reason($sg__id << 1);
14832
14728
  const $childScope7 = _peek_scope_id();
14833
14729
  Detail.content({ id });
14834
14730
  _serialize_if($scope22_reason, 0) && writeScope($scope22_id, { a: _existing_scope($childScope7) });
14835
14731
  }, $scope0_id) })
14836
14732
  });
14837
- _set_serialize_reason(1028094);
14733
+ _set_serialize_reason({
14734
+ 0: 1,
14735
+ 1: 1,
14736
+ 2: 1,
14737
+ 3: 1,
14738
+ 4: 1,
14739
+ 5: 1,
14740
+ 6: 1,
14741
+ 7: 1,
14742
+ 8: 1,
14743
+ 9: 1,
14744
+ 10: 1,
14745
+ 12: 1,
14746
+ 14: 1,
14747
+ 15: 1,
14748
+ 16: 1,
14749
+ 17: 1,
14750
+ 18: 1
14751
+ });
14838
14752
  let $summary2;
14839
14753
  if (allFiles.length) $summary2 = attrTag({ content: _content_resume("A49", () => {
14840
14754
  _scope_reason();
@@ -14860,7 +14774,7 @@ var review_view_default = _template("A", (input) => {
14860
14774
  detail: attrTag({ content: _content_resume("A50", ({ id }) => {
14861
14775
  const $scope23_reason = _scope_reason(), $sg__id2 = _serialize_guard($scope23_reason, 0);
14862
14776
  const $scope23_id = _scope_id();
14863
- _set_serialize_reason($sg__id2);
14777
+ _set_serialize_reason($sg__id2 << 1);
14864
14778
  const $childScope9 = _peek_scope_id();
14865
14779
  Detail.content({ id });
14866
14780
  _serialize_if($scope23_reason, 0) && writeScope($scope23_id, { a: _existing_scope($childScope9) });
@@ -15132,19 +15046,16 @@ function parseInvite(text) {
15132
15046
  }
15133
15047
  //#endregion
15134
15048
  //#region src/tags/manage-workspace.css.ts
15135
- var procCmd = "_f8 _cK";
15136
- var skillRow = "_f_ _cI";
15137
- var skillName = "_gb _f8 _cK";
15138
- var skillDesc = "_ge _cL";
15049
+ var procCmd = "_gp _cK";
15050
+ var skillRow = "_gr _cI";
15051
+ var skillName = "_gt _gp _cK";
15052
+ var skillDesc = "_gw _cL";
15139
15053
  //#endregion
15140
15054
  //#region src/tags/icons/icon-archive.marko
15141
15055
  var icon_archive_default = _template("Q", (input) => {
15142
15056
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
15143
15057
  const $scope0_id = _scope_id();
15144
- _set_serialize_reason({
15145
- 0: $sg__input_size__OR__input_class,
15146
- 1: $sg__input_size__OR__input_class
15147
- });
15058
+ _set_serialize_reason($sg__input_size__OR__input_class << 1 | $sg__input_size__OR__input_class << 3);
15148
15059
  const $childScope = _peek_scope_id();
15149
15060
  icon_base_default({
15150
15061
  d: "M7 6L17 6 M7 9L17 9 M9 17H15 M3 12H2.6C2.26863 12 2 12.2686 2 12.6V21.4C2 21.7314 2.26863 22 2.6 22H21.4C21.7314 22 22 21.7314 22 21.4V12.6C22 12.2686 21.7314 12 21.4 12H21M3 12V2.6C3 2.26863 3.26863 2 3.6 2H20.4C20.7314 2 21 2.26863 21 2.6V12M3 12H21",
@@ -15158,10 +15069,7 @@ var icon_archive_default = _template("Q", (input) => {
15158
15069
  var icon_trash_default = _template("wb", (input) => {
15159
15070
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
15160
15071
  const $scope0_id = _scope_id();
15161
- _set_serialize_reason({
15162
- 0: $sg__input_size__OR__input_class,
15163
- 1: $sg__input_size__OR__input_class
15164
- });
15072
+ _set_serialize_reason($sg__input_size__OR__input_class << 1 | $sg__input_size__OR__input_class << 3);
15165
15073
  const $childScope = _peek_scope_id();
15166
15074
  icon_base_default({
15167
15075
  d: "M20 9L18.005 20.3463C17.8369 21.3026 17.0062 22 16.0353 22H7.96474C6.99379 22 6.1631 21.3026 5.99496 20.3463L4 9 M21 6L15.375 6M3 6L8.625 6M8.625 6V4C8.625 2.89543 9.52043 2 10.625 2H13.375C14.4796 2 15.375 2.89543 15.375 4V6M8.625 6L15.375 6",
@@ -15170,10 +15078,10 @@ var icon_trash_default = _template("wb", (input) => {
15170
15078
  });
15171
15079
  _serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
15172
15080
  });
15173
- var resultRow = "_h5 _I";
15174
- var resultBranch = "_h6 _cP _X _W _3 _l";
15175
- var urlAction = "_h7 _cP _X _W _cQ";
15176
- var addedRow = "_ih _cI";
15081
+ var resultRow = "_iu _I";
15082
+ var resultBranch = "_iv _cP _X _W _3 _l";
15083
+ var urlAction = "_iw _cP _X _W _cQ";
15084
+ var addedRow = "_iH _cI";
15177
15085
  //#endregion
15178
15086
  //#region src/tags/branch-pick.marko
15179
15087
  var branch_pick_default = _template("f", (input) => {
@@ -15186,11 +15094,11 @@ var branch_pick_default = _template("f", (input) => {
15186
15094
  let branchFilter = "";
15187
15095
  let reloadTick = 0;
15188
15096
  let refreshing = false;
15189
- _html(`<div${_attr_class("_h8")}>`);
15097
+ _html(`<div${_attr_class("_ix")}>`);
15190
15098
  _if(() => {
15191
15099
  {
15192
15100
  const $scope4_id = _scope_id();
15193
- _html(`<p${_attr_class("_b5")}><span${_attr_class("_G")}></span> Loading branches…</p>`);
15101
+ _html(`<p${_attr_class("_b7")}><span${_attr_class("_G")}></span> Loading branches…</p>`);
15194
15102
  writeScope($scope4_id, {});
15195
15103
  return 0;
15196
15104
  }
@@ -15237,14 +15145,14 @@ var repo_picker_default = _template("w", (input$2) => {
15237
15145
  input$2.onError?.(String(err.message || err));
15238
15146
  }
15239
15147
  if (refresh);
15240
- }, "w2", $scope0_id);
15148
+ }, "w1", $scope0_id);
15241
15149
  const excluded = _resume((name) => {
15242
15150
  if (input$2.exclude.has(name)) return true;
15243
15151
  const repos = catalog?.repos || [];
15244
15152
  if (repos.some((r) => input$2.exclude.has(r.nameWithOwner) && r.parent === name)) return true;
15245
15153
  const entry = repos.find((r) => r.nameWithOwner === name);
15246
15154
  return !!(entry?.parent && input$2.exclude.has(entry.parent));
15247
- }, "w3", $scope0_id);
15155
+ }, "w2", $scope0_id);
15248
15156
  const results = catalog && filter ? rankRepos(filter, catalog.repos, (name) => excluded(name)) : [];
15249
15157
  const pasted = (() => {
15250
15158
  const name = parseRepoUrl(filter);
@@ -15258,12 +15166,12 @@ var repo_picker_default = _template("w", (input$2) => {
15258
15166
  branchesFor = null;
15259
15167
  pasteWillFork = false;
15260
15168
  input$2.onPick(fullName, baseBranch, fork);
15261
- }, "w4", $scope0_id);
15262
- const pastedFork = _resume((fork) => pastedForkable ? fork : void 0, "w5", $scope0_id);
15169
+ }, "w3", $scope0_id);
15170
+ const pastedFork = _resume((fork) => pastedForkable ? fork : void 0, "w4", $scope0_id);
15263
15171
  const toggleBranches = _resume((fullName) => {
15264
15172
  branchesFor = branchesFor === fullName ? null : fullName;
15265
15173
  if (fullName !== pasted) pasteWillFork = false;
15266
- }, "w6", $scope0_id);
15174
+ }, "w5", $scope0_id);
15267
15175
  const sheet = isMobile();
15268
15176
  let ssoIgnoreTick = 0;
15269
15177
  const ssoPending = (() => {
@@ -15273,16 +15181,16 @@ var repo_picker_default = _template("w", (input$2) => {
15273
15181
  const ssoBlock = { content: _content("w13", () => {
15274
15182
  const $scope9_id = _scope_id();
15275
15183
  _scope_reason();
15276
- _set_serialize_reason(26);
15184
+ _set_serialize_reason(162);
15277
15185
  const $childScope = _peek_scope_id();
15278
15186
  sso_auth_default({
15279
15187
  items: ssoPending,
15280
15188
  onChange: _resume(function() {
15281
15189
  ssoIgnoreTick++;
15282
- }, "w7", $scope9_id),
15190
+ }, "w6", $scope9_id),
15283
15191
  onDone: _resume(function() {
15284
15192
  loadCatalog(true);
15285
- }, "w8", $scope9_id)
15193
+ }, "w7", $scope9_id)
15286
15194
  });
15287
15195
  _subscribe($ssoPending__closures, _subscribe($si__input_onError && $loadCatalog2__closures, writeScope($scope9_id, {
15288
15196
  _: _scope_with_id($scope0_id),
@@ -15291,10 +15199,10 @@ var repo_picker_default = _template("w", (input$2) => {
15291
15199
  }, $scope0_id) };
15292
15200
  const addedList = sheet ? input$2.added || [] : [];
15293
15201
  const hasBody = !!(pasted || results.length || filter && (!catalog || !pasted) || ssoPending.length || sheet && !!input$2.added);
15294
- _html(`<div${_attr_class(["_ec", {
15295
- ["_ed"]: !input$2.open,
15296
- ["_ee"]: input$2.pinned
15297
- }])}><label${_attr_class(["_0", "_ef"])}>`);
15202
+ _html(`<div${_attr_class(["_d4", {
15203
+ ["_d5"]: !input$2.open,
15204
+ ["_d6"]: input$2.pinned
15205
+ }])}><label${_attr_class(["_0", "_d7"])}>`);
15298
15206
  icon_search_default({
15299
15207
  size: 14,
15300
15208
  class: "_1"
@@ -15306,14 +15214,14 @@ var repo_picker_default = _template("w", (input$2) => {
15306
15214
  }, "w0", $scope0_id))}${_attr_class([
15307
15215
  "_Y",
15308
15216
  "_2",
15309
- "_eg"
15310
- ])} placeholder="Add a repo…" aria-label="Add a repo"${_attr("disabled", input$2.disabled)}>${_el_resume($scope0_id, "d")}</label><button${_attr_class([iconBtnRow, "_ei"])} type=button title="Close search" aria-label="Close search"${_attr("hidden", !input$2.open)}>`);
15217
+ "_d8"
15218
+ ])} placeholder="Add a repo…" aria-label="Add a repo"${_attr("disabled", input$2.disabled)}>${_el_resume($scope0_id, "d")}</label><button${_attr_class([iconBtnRow, "_d_"])} type=button title="Close search" aria-label="Close search"${_attr("hidden", !input$2.open)}>`);
15311
15219
  icon_xmark_default({ size: 14 });
15312
15220
  _html(`</button>${_el_resume($scope0_id, "e")}<div${_attr_class(pop$1)} data-add-pop${_attr("hidden", !hasBody || !input$2.open && !input$2.pinned)}>`);
15313
15221
  _if(() => {
15314
15222
  if (ssoPending.length) {
15315
15223
  const $scope11_id = _scope_id();
15316
- _html(`<div${_attr_class("_h1")}>`);
15224
+ _html(`<div${_attr_class("_iq")}>`);
15317
15225
  ssoBlock.content({});
15318
15226
  _html("</div>");
15319
15227
  writeScope($scope11_id, {});
@@ -15323,12 +15231,12 @@ var repo_picker_default = _template("w", (input$2) => {
15323
15231
  _if(() => {
15324
15232
  if (pasted) {
15325
15233
  const $scope1_id = _scope_id();
15326
- _html(`<ul${_attr_class("_h2")}><li><div${_attr_class(["_h4", "_h3"])}><button${_attr_class(resultRow)}${pasteWillFork ? _attr("title", `Fork ${pasted} to your account and add the fork`) : _attr("title", `Add ${pasted} as-is (pushes go to that repo)`)}>`);
15234
+ _html(`<ul${_attr_class("_ir")}><li><div${_attr_class(["_it", "_is"])}><button${_attr_class(resultRow)}${pasteWillFork ? _attr("title", `Fork ${pasted} to your account and add the fork`) : _attr("title", `Add ${pasted} as-is (pushes go to that repo)`)}>`);
15327
15235
  icon_plus_default({
15328
15236
  size: 12,
15329
- class: "_h_"
15237
+ class: "_iz"
15330
15238
  });
15331
- _html(`<span${_attr_class("_ia")}>${_text_resume($scope1_id, "f", repoLabel(pasted))}</span></button>${_el_resume($scope1_id, "c")}`);
15239
+ _html(`<span${_attr_class("_iA")}>${_text_resume($scope1_id, "f", repoLabel(pasted))}</span></button>${_el_resume($scope1_id, "c")}`);
15332
15240
  _if(() => {
15333
15241
  if (pastedForkable) {
15334
15242
  const $scope10_id = _scope_id();
@@ -15363,11 +15271,11 @@ var repo_picker_default = _template("w", (input$2) => {
15363
15271
  repo: pasted,
15364
15272
  onPick: _resume(function(branch, isDefault) {
15365
15273
  pick(pasted, isDefault ? void 0 : branch, pastedFork(pasteWillFork));
15366
- }, "w9", $scope2_id),
15274
+ }, "w8", $scope2_id),
15367
15275
  onError: _resume(function(message) {
15368
15276
  branchesFor = null;
15369
15277
  input$2.onError?.(message);
15370
- }, "w10", $scope2_id)
15278
+ }, "w9", $scope2_id)
15371
15279
  });
15372
15280
  _subscribe($pasted__closures, _subscribe($si__input_onError && $input_onError__closures, writeScope($scope2_id, { a: _existing_scope($childScope2) })));
15373
15281
  return 0;
@@ -15379,7 +15287,7 @@ var repo_picker_default = _template("w", (input$2) => {
15379
15287
  return 0;
15380
15288
  } else if (filter && !catalog) {
15381
15289
  const $scope12_id = _scope_id();
15382
- _html(`<p${_attr_class("_b5")}>Loading repos…</p>`);
15290
+ _html(`<p${_attr_class("_b7")}>Loading repos…</p>`);
15383
15291
  writeScope($scope12_id, {});
15384
15292
  return 1;
15385
15293
  }
@@ -15387,15 +15295,15 @@ var repo_picker_default = _template("w", (input$2) => {
15387
15295
  _if(() => {
15388
15296
  if (results.length) {
15389
15297
  const $scope3_id = _scope_id();
15390
- _html(`<ul${_attr_class("_h2")}>`);
15298
+ _html(`<ul${_attr_class("_ir")}>`);
15391
15299
  _for_of(results, (repo, i) => {
15392
15300
  const $scope4_id = _scope_id();
15393
- _html(`<li><div${_attr_class(["_h4", { ["_h3"]: i === highlight }])}><button${_attr_class(resultRow)}>`);
15301
+ _html(`<li><div${_attr_class(["_it", { ["_is"]: i === highlight }])}><button${_attr_class(resultRow)}>`);
15394
15302
  icon_plus_default({
15395
15303
  size: 12,
15396
- class: "_h_"
15304
+ class: "_iz"
15397
15305
  });
15398
- _html(`<span${_attr_class("_ia")}>${_text_resume($scope4_id, "e", repoLabel(repo.nameWithOwner))}</span></button>${_el_resume($scope4_id, "b")}<button${_attr_class([resultBranch, { ["_cO"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>`);
15306
+ _html(`<span${_attr_class("_iA")}>${_text_resume($scope4_id, "e", repoLabel(repo.nameWithOwner))}</span></button>${_el_resume($scope4_id, "b")}<button${_attr_class([resultBranch, { ["_cO"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>`);
15399
15307
  icon_branch_default({ size: 12 });
15400
15308
  _html(`</button>${_el_resume($scope4_id, "f")}</div>${_el_resume($scope4_id, "a")}`);
15401
15309
  _if(() => {
@@ -15406,11 +15314,11 @@ var repo_picker_default = _template("w", (input$2) => {
15406
15314
  repo: repo.nameWithOwner,
15407
15315
  onPick: _resume(function(branch, isDefault) {
15408
15316
  pick(repo.nameWithOwner, isDefault ? void 0 : branch);
15409
- }, "w11", $scope5_id),
15317
+ }, "w10", $scope5_id),
15410
15318
  onError: _resume(function(message) {
15411
15319
  branchesFor = null;
15412
15320
  input$2.onError?.(message);
15413
- }, "w12", $scope5_id)
15321
+ }, "w11", $scope5_id)
15414
15322
  });
15415
15323
  _subscribe($si__input_onError && $input_onError__closures, writeScope($scope5_id, {
15416
15324
  a: _existing_scope($childScope3),
@@ -15430,7 +15338,7 @@ var repo_picker_default = _template("w", (input$2) => {
15430
15338
  return 0;
15431
15339
  } else if (filter && catalog && !pasted) {
15432
15340
  const $scope8_id = _scope_id();
15433
- _html(`<p${_attr_class("_b5")}>No repos match "${_text_resume($scope8_id, "b", filter, 2)}". Paste a clone URL to add any repo.</p>`);
15341
+ _html(`<p${_attr_class("_b7")}>No repos match "${_text_resume($scope8_id, "b", filter, 2)}". Paste a clone URL to add any repo.</p>`);
15434
15342
  writeScope($scope8_id, {});
15435
15343
  return 1;
15436
15344
  }
@@ -15438,7 +15346,7 @@ var repo_picker_default = _template("w", (input$2) => {
15438
15346
  _if(() => {
15439
15347
  if (sheet && input$2.added) {
15440
15348
  const $scope6_id = _scope_id();
15441
- _html(`<div${_attr_class("_if")}><p${_attr_class("_ig")}>Repos <span${_attr_class(sectionCount$1)}>${_text_resume($scope6_id, "d", addedList.length, $sg__input_added)}</span></p><ul${_attr_class(list$2)}>`);
15349
+ _html(`<div${_attr_class("_iF")}><p${_attr_class("_iG")}>Repos <span${_attr_class(sectionCount$1)}>${_text_resume($scope6_id, "d", addedList.length, $sg__input_added)}</span></p><ul${_attr_class(list$2)}>`);
15442
15350
  _for_of(addedList, (repo) => {
15443
15351
  const $scope15_id = _scope_id();
15444
15352
  _html(`<li${_attr_class([addedRow, { ["_cN"]: repo.pending }])}>`);
@@ -15452,13 +15360,13 @@ var repo_picker_default = _template("w", (input$2) => {
15452
15360
  const $scope18_id = _scope_id();
15453
15361
  icon_check_default({
15454
15362
  size: 12,
15455
- class: "_h_"
15363
+ class: "_iz"
15456
15364
  });
15457
15365
  $si__input_added && writeScope($scope18_id, {});
15458
15366
  return 1;
15459
15367
  }
15460
15368
  }, $scope15_id, "b", $sg__input_added, $sg__input_added, $sg__input_added, 0, 1);
15461
- _html(`<span${_attr_class("_ia")}>${_text_resume($scope15_id, "d", repoLabel(repo.name), $sg__input_added)}</span>`);
15369
+ _html(`<span${_attr_class("_iA")}>${_text_resume($scope15_id, "d", repoLabel(repo.name), $sg__input_added)}</span>`);
15462
15370
  _if(() => {
15463
15371
  if (repo.baseBranch) {
15464
15372
  const $scope16_id = _scope_id();
@@ -15501,7 +15409,7 @@ var repo_picker_default = _template("w", (input$2) => {
15501
15409
  const handle = _resume((action) => {
15502
15410
  if (action === "focus") ((inputEl) => inputEl())(_el_read_error)?.focus({ preventScroll: true });
15503
15411
  else loadCatalog(true);
15504
- }, "w1", $scope0_id);
15412
+ }, "w12", $scope0_id);
15505
15413
  _html(`</div>${_el_resume($scope0_id, "g")}</div>${_el_resume($scope0_id, "a", _serialize_guard($scope0_reason, 0))}`);
15506
15414
  const $return = handle;
15507
15415
  _script($scope0_id, "w17");
@@ -15559,11 +15467,11 @@ var manage_workspace_default = _template("p", (input) => {
15559
15467
  const $scope0_reason = _scope_reason();
15560
15468
  const $scope0_id = _scope_id();
15561
15469
  const $copied__closures = /* @__PURE__ */ new Set();
15562
- const $ws_branch__closures = /* @__PURE__ */ new Set();
15563
- const $ws_origin_branch__closures = /* @__PURE__ */ new Set();
15470
+ const $workspace_branch__closures = /* @__PURE__ */ new Set();
15471
+ const $workspace_origin_branch__closures = /* @__PURE__ */ new Set();
15564
15472
  const $pendingAction__closures = /* @__PURE__ */ new Set();
15565
- const $ws_repos_length__closures = /* @__PURE__ */ new Set();
15566
- const $ws_status__closures = /* @__PURE__ */ new Set();
15473
+ const $workspace_repos_length__closures = /* @__PURE__ */ new Set();
15474
+ const $workspace_status__closures = /* @__PURE__ */ new Set();
15567
15475
  const $error__closures = /* @__PURE__ */ new Set();
15568
15476
  const $skillBusy__closures = /* @__PURE__ */ new Set();
15569
15477
  const $skills__closures = /* @__PURE__ */ new Set();
@@ -15712,8 +15620,8 @@ var manage_workspace_default = _template("p", (input) => {
15712
15620
  setTimeout(() => loadProcs(void 0), 500);
15713
15621
  }, "p11", $scope0_id);
15714
15622
  const titleId = _id();
15715
- _html(`<div${_attr_class("_dX")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_dY")}><div${_attr_class("_dZ")}>`);
15716
- _set_serialize_reason(30);
15623
+ _html(`<div${_attr_class("_ee")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_ef")}><div${_attr_class("_eg")}>`);
15624
+ _set_serialize_reason(170);
15717
15625
  const $childScope2 = _peek_scope_id();
15718
15626
  page_head_default({
15719
15627
  title: "Manage",
@@ -15743,7 +15651,7 @@ var manage_workspace_default = _template("p", (input) => {
15743
15651
  }
15744
15652
  }, $scope11_id, "a", 1, 1, 1, "</button>", 1);
15745
15653
  _script($scope11_id, "p20");
15746
- _subscribe($ws_origin_branch__closures, _subscribe($ws_branch__closures, _subscribe($copied__closures, writeScope($scope11_id, {}))));
15654
+ _subscribe($workspace_origin_branch__closures, _subscribe($workspace_branch__closures, _subscribe($copied__closures, writeScope($scope11_id, {}))));
15747
15655
  return 0;
15748
15656
  }
15749
15657
  }, $scope6_id, "a", 1, 1, 1, 0, 1);
@@ -15812,13 +15720,13 @@ var manage_workspace_default = _template("p", (input) => {
15812
15720
  }));
15813
15721
  }, $scope6_id)
15814
15722
  });
15815
- _subscribe($ws_status__closures, _subscribe($ws_repos_length__closures, _subscribe($pendingAction__closures, writeScope($scope6_id, {
15723
+ _subscribe($workspace_status__closures, _subscribe($workspace_repos_length__closures, _subscribe($pendingAction__closures, writeScope($scope6_id, {
15816
15724
  _: _scope_with_id($scope0_id),
15817
15725
  c: _existing_scope($childScope)
15818
15726
  }))));
15819
15727
  }, $scope0_id) })
15820
15728
  });
15821
- _html(`<div${_attr_class("_d0")}><section${_attr_class("_bU")}><div${_attr_class("_bV")}><h2${_attr_class("_b8")}>Details</h2></div><div${_attr_class(list$2)}><div${_attr_class(flatCardRow)}><span${_attr_class("_gi")}>Name</span><span${_attr_class(["_gj", "_gk"])}>${_text_resume($scope0_id, "m", ws.name)}</span>`);
15729
+ _html(`<div${_attr_class("_eh")}><section${_attr_class("_bW")}><div${_attr_class("_bX")}><h2${_attr_class("_b_")}>Details</h2></div><div${_attr_class(list$2)}><div${_attr_class(flatCardRow)}><span${_attr_class("_gA")}>Name</span><span${_attr_class(["_gB", "_gC"])}>${_text_resume($scope0_id, "m", ws.name)}</span>`);
15822
15730
  _if(() => {
15823
15731
  if (ws.status !== "active") {
15824
15732
  const $scope23_id = _scope_id();
@@ -15827,8 +15735,8 @@ var manage_workspace_default = _template("p", (input) => {
15827
15735
  return 0;
15828
15736
  }
15829
15737
  }, $scope0_id, "n", 1, 1, 1, 0, 1);
15830
- _html(`</div><div${_attr_class(flatCardRow)}><span${_attr_class("_gi")}>Path</span><span${_attr_class([
15831
- "_gj",
15738
+ _html(`</div><div${_attr_class(flatCardRow)}><span${_attr_class("_gA")}>Path</span><span${_attr_class([
15739
+ "_gB",
15832
15740
  "_y",
15833
15741
  "_ba"
15834
15742
  ])}${_attr("title", ws.display_path || ws.path)}><bdi>${_text_resume($scope0_id, "r", ws.display_path || ws.path)}</bdi></span>${_el_resume($scope0_id, "q")}<button type=button${_attr_class(iconBtnXs)} title=${copiedFact === "path" ? "Copied" : "\"Copy path\""} aria-label="Copy path">`);
@@ -15845,7 +15753,7 @@ var manage_workspace_default = _template("p", (input) => {
15845
15753
  return 1;
15846
15754
  }
15847
15755
  }, $scope0_id, "s", 1, 1, 1, "</button>", 1);
15848
- _html(`</div><div${_attr_class(flatCardRow)}><span${_attr_class("_gi")}>Branch</span><span${_attr_class(["_gj", "_y"])}${_attr("title", ws.branch)}>${_text_resume($scope0_id, "w", ws.branch)}</span>${_el_resume($scope0_id, "v")}<button type=button${_attr_class(iconBtnXs)} title=${copiedFact === "branch" ? "Copied" : "\"Copy branch\""} aria-label="Copy branch">`);
15756
+ _html(`</div><div${_attr_class(flatCardRow)}><span${_attr_class("_gA")}>Branch</span><span${_attr_class(["_gB", "_y"])}${_attr("title", ws.branch)}>${_text_resume($scope0_id, "w", ws.branch)}</span>${_el_resume($scope0_id, "v")}<button type=button${_attr_class(iconBtnXs)} title=${copiedFact === "branch" ? "Copied" : "\"Copy branch\""} aria-label="Copy branch">`);
15849
15757
  _if(() => {
15850
15758
  if (copiedFact === "branch") {
15851
15759
  const $scope26_id = _scope_id();
@@ -15882,15 +15790,15 @@ var manage_workspace_default = _template("p", (input) => {
15882
15790
  _if(() => {
15883
15791
  if (pendingAction && actionStep) {
15884
15792
  const $scope10_id = _scope_id();
15885
- _html(`<p${_attr_class("_bT")}><span${_attr_class("_G")}></span>${_text_resume($scope10_id, "c", actionStep)}</p>`);
15793
+ _html(`<p${_attr_class("_bV")}><span${_attr_class("_G")}></span>${_text_resume($scope10_id, "c", actionStep)}</p>`);
15886
15794
  writeScope($scope10_id, {});
15887
15795
  return 0;
15888
15796
  }
15889
15797
  }, $scope0_id, "z", 1, 1, 1, 0, 1);
15890
- _html(`<section${_attr_class("_bU")}><div${_attr_class("_bV")}><h2${_attr_class("_b8")}>Repos</h2><span${_attr_class(sectionCount$1)}>${_text_resume($scope0_id, "a4", ws.repos.length)}</span><div${_attr_class("_z")}></div><button${_attr_class([iconBtnRow, "_gh"])} title="Add repo" aria-label="Add repo"${_attr("hidden", addingRepo)}>`);
15798
+ _html(`<section${_attr_class("_bW")}><div${_attr_class("_bX")}><h2${_attr_class("_b_")}>Repos</h2><span${_attr_class(sectionCount$1)}>${_text_resume($scope0_id, "a4", ws.repos.length)}</span><div${_attr_class("_z")}></div><button${_attr_class([iconBtnRow, "_gz"])} title="Add repo" aria-label="Add repo"${_attr("hidden", addingRepo)}>`);
15891
15799
  icon_plus_default({ size: 16 });
15892
15800
  _html(`</button>${_el_resume($scope0_id, "a6")}`);
15893
- _set_serialize_reason(34);
15801
+ _set_serialize_reason(514);
15894
15802
  const $childScope3 = _peek_scope_id();
15895
15803
  let refreshCatalog = repo_picker_default({
15896
15804
  pinned: true,
@@ -15918,7 +15826,7 @@ var manage_workspace_default = _template("p", (input) => {
15918
15826
  });
15919
15827
  _var($scope0_id, "a9", $childScope3, "p26");
15920
15828
  _html(`<button${_attr_class(iconBtnRow)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
15921
- _set_serialize_reason(1);
15829
+ _set_serialize_reason(2);
15922
15830
  const $childScope4 = _peek_scope_id();
15923
15831
  icon_refresh_default({
15924
15832
  size: 14,
@@ -15950,7 +15858,7 @@ var manage_workspace_default = _template("p", (input) => {
15950
15858
  const $childScope5 = _peek_scope_id();
15951
15859
  arm_button_default({
15952
15860
  class: [
15953
- "_b4",
15861
+ "_b6",
15954
15862
  "_7",
15955
15863
  "_8"
15956
15864
  ],
@@ -15983,14 +15891,14 @@ var manage_workspace_default = _template("p", (input) => {
15983
15891
  _html(`<li${_attr_class([
15984
15892
  "_cI",
15985
15893
  "_cJ",
15986
- "_bY"
15987
- ])}><span${_attr_class("_G")}></span><span${_attr_class("_b3")}>Adding ${_text_resume($scope31_id, "d", name, 2)}…</span></li>`);
15894
+ "_b0"
15895
+ ])}><span${_attr_class("_G")}></span><span${_attr_class("_b5")}>Adding ${_text_resume($scope31_id, "d", name, 2)}…</span></li>`);
15988
15896
  writeScope($scope31_id, {});
15989
15897
  }, (n) => n, $scope0_id, "ae", 1, 1, 1, 0, 1);
15990
15898
  _if(() => {
15991
15899
  if (!ws.repos.length && !busy.size) {
15992
15900
  const $scope32_id = _scope_id();
15993
- _html(`<li${_attr_class(["_cI", "_cJ"])}><span${_attr_class("_b3")}>No repos yet. Add one to start.</span></li>`);
15901
+ _html(`<li${_attr_class(["_cI", "_cJ"])}><span${_attr_class("_b5")}>No repos yet. Add one to start.</span></li>`);
15994
15902
  writeScope($scope32_id, {});
15995
15903
  return 0;
15996
15904
  }
@@ -16000,7 +15908,7 @@ var manage_workspace_default = _template("p", (input) => {
16000
15908
  _if(() => {
16001
15909
  if (running.length) {
16002
15910
  const $scope15_id = _scope_id();
16003
- _html(`<section${_attr_class("_bU")}><div${_attr_class("_bV")}><h2${_attr_class("_b8")}>Running</h2><span${_attr_class(sectionCount$1)}>${_text_resume($scope15_id, "e", running.length)}</span></div><ul${_attr_class(list$2)}>`);
15911
+ _html(`<section${_attr_class("_bW")}><div${_attr_class("_bX")}><h2${_attr_class("_b_")}>Running</h2><span${_attr_class(sectionCount$1)}>${_text_resume($scope15_id, "e", running.length)}</span></div><ul${_attr_class(list$2)}>`);
16004
15912
  _for_of(running, (p) => {
16005
15913
  const $scope16_id = _scope_id();
16006
15914
  _html(`<li${_attr_class("_cI")}${_attr("title", `${p.cmd} ${p.args}`.trim())}><span${_attr_class(["_y", procCmd])}>${_text_resume($scope16_id, "c", p.cmd)}</span><span${_attr_class(["_y", "_cL"])}>${_text_resume($scope16_id, "e", p.args)}</span><span${_attr_class("_cM")}>`);
@@ -16010,10 +15918,10 @@ var manage_workspace_default = _template("p", (input) => {
16010
15918
  _script($scope33_id, "p28");
16011
15919
  writeScope($scope33_id, { d: port });
16012
15920
  }, (x) => String(x), $scope16_id, "g", 1, 1, 1, 0, 1);
16013
- _html(`<span${_attr_class(["_y", "_f9"])}>${_text_resume($scope16_id, "i", p.pid)}</span><button${_attr_class([
16014
- "_b4",
15921
+ _html(`<span${_attr_class(["_y", "_gq"])}>${_text_resume($scope16_id, "i", p.pid)}</span><button${_attr_class([
15922
+ "_b6",
16015
15923
  "_7",
16016
- "_gg"
15924
+ "_gy"
16017
15925
  ])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
16018
15926
  icon_xmark_default({ size: 14 });
16019
15927
  _html(`</button>${_el_resume($scope16_id, "j")}</span></li>${_el_resume($scope16_id, "a")}`);
@@ -16034,22 +15942,22 @@ var manage_workspace_default = _template("p", (input) => {
16034
15942
  s,
16035
15943
  linked: false
16036
15944
  }))].sort((a, b) => a.s.name.localeCompare(b.s.name));
16037
- _html(`</div><div${_attr_class("_d0")}>`);
15945
+ _html(`</div><div${_attr_class("_eh")}>`);
16038
15946
  _if(() => {
16039
15947
  if (allSkills.length) {
16040
15948
  const $scope2_id = _scope_id();
16041
- _html(`<section${_attr_class("_bU")}><div${_attr_class("_bV")}><h2${_attr_class("_b8")}>Skills</h2><span${_attr_class(sectionCount$1)}>${_text_resume($scope2_id, "e", wsSkills.length)}/${_text_resume($scope2_id, "f", allSkills.length, 2)}</span></div><ul${_attr_class([list$2, "_cH"])}>`);
15949
+ _html(`<section${_attr_class("_bW")}><div${_attr_class("_bX")}><h2${_attr_class("_b_")}>Skills</h2><span${_attr_class(sectionCount$1)}>${_text_resume($scope2_id, "e", wsSkills.length)}/${_text_resume($scope2_id, "f", allSkills.length, 2)}</span></div><ul${_attr_class([list$2, "_cH"])}>`);
16042
15950
  _for_of(allSkills, ({ s, linked }) => {
16043
15951
  const $scope3_id = _scope_id();
16044
15952
  const isBusy = skillBusy.has(s.id);
16045
- _html(`<li${_attr_class([skillRow, { ["_ga"]: !linked }])}><span${_attr_class("_gc")}><span${_attr_class(["_y", skillName])}>${_text_resume($scope3_id, "d", s.name)}</span>`);
15953
+ _html(`<li${_attr_class([skillRow, { ["_gs"]: !linked }])}><span${_attr_class("_gu")}><span${_attr_class(["_y", skillName])}>${_text_resume($scope3_id, "d", s.name)}</span>`);
16046
15954
  _if(() => {
16047
15955
  if (s.worktree && !s.broken) {
16048
15956
  const $scope34_id = _scope_id();
16049
15957
  _html(`<span${_attr_class([
16050
15958
  "_N",
16051
15959
  "_y",
16052
- "_gd"
15960
+ "_gv"
16053
15961
  ])}${linked ? _attr("title", `Linked from ${s.worktree}/ in this workspace`) : _attr("title", `Ships in ${s.worktree}/ — not linked into this workspace yet`)}>${_text_resume($scope34_id, "b", s.worktree)}/</span>${_el_resume($scope34_id, "a")}`);
16054
15962
  writeScope($scope34_id, {});
16055
15963
  return 0;
@@ -16103,10 +16011,10 @@ var manage_workspace_default = _template("p", (input) => {
16103
16011
  const $childScope6 = _peek_scope_id();
16104
16012
  arm_button_default({
16105
16013
  class: [
16106
- "_b4",
16014
+ "_b6",
16107
16015
  "_7",
16108
16016
  "_8",
16109
- "_gf"
16017
+ "_gx"
16110
16018
  ],
16111
16019
  disabled: isBusy,
16112
16020
  busy: isBusy,
@@ -16177,36 +16085,36 @@ var manage_workspace_default = _template("p", (input) => {
16177
16085
  bd: workspace?.origin_branch,
16178
16086
  be: workspace?.repos,
16179
16087
  bf: workspace?.id,
16180
- bg: workspace?.repos?.length,
16181
- bk: copyFact,
16182
- bl: invite,
16183
- bm: copyInvite,
16184
- bo: skillSeq.applied,
16185
- bp: skillSeq.issued,
16186
- bq: applySkills,
16187
- br: loadSkills,
16188
- bs: loadProcs,
16189
- bt: inWorkspace,
16190
- bu: setBusy,
16191
- bv: setSkillBusy,
16192
- bw: runSkill,
16193
- bx: addRepo,
16194
- by: removeRepo,
16195
- bz: runAction,
16196
- c0: killProc,
16197
- c2: refreshCatalog,
16198
- c3: running,
16199
- c4: running.length,
16200
- c6: wsSkills.length,
16201
- c8: allSkills,
16202
- c9: allSkills?.length,
16088
+ bh: workspace?.repos?.length,
16089
+ bm: copyFact,
16090
+ bn: invite,
16091
+ bp: copyInvite,
16092
+ br: skillSeq.applied,
16093
+ bt: skillSeq.issued,
16094
+ bu: applySkills,
16095
+ bw: loadSkills,
16096
+ bx: loadProcs,
16097
+ bz: inWorkspace,
16098
+ c2: setBusy,
16099
+ c5: setSkillBusy,
16100
+ c7: runSkill,
16101
+ c8: addRepo,
16102
+ c9: removeRepo,
16103
+ ca: runAction,
16104
+ cb: killProc,
16105
+ cd: refreshCatalog,
16106
+ ce: running,
16107
+ cf: running.length,
16108
+ ch: wsSkills.length,
16109
+ cj: allSkills,
16110
+ ck: allSkills?.length,
16203
16111
  b9: input.workspaceChange || void 0,
16204
16112
  cr: $copied__closures,
16205
- cs: $ws_branch__closures,
16206
- ct: $ws_origin_branch__closures,
16113
+ cs: $workspace_branch__closures,
16114
+ ct: $workspace_origin_branch__closures,
16207
16115
  co: $pendingAction__closures,
16208
- cu: $ws_repos_length__closures,
16209
- cv: $ws_status__closures,
16116
+ cu: $workspace_repos_length__closures,
16117
+ cv: $workspace_status__closures,
16210
16118
  d: _existing_scope($childScope2),
16211
16119
  cn: $error__closures,
16212
16120
  a8: _existing_scope($childScope3),
@@ -16215,19 +16123,16 @@ var manage_workspace_default = _template("p", (input) => {
16215
16123
  cq: $skills__closures
16216
16124
  });
16217
16125
  });
16218
- var curRow = "_fz _cI";
16219
- var archived = "_fE _bU";
16220
- var archivedHint = "_fF _W";
16221
- var archivedRow = "_fG _cG _cE";
16126
+ var curRow = "_fF _cI";
16127
+ var archived = "_fK _bW";
16128
+ var archivedHint = "_fL _W";
16129
+ var archivedRow = "_fM _cG _cE";
16222
16130
  //#endregion
16223
16131
  //#region src/tags/icons/icon-group.marko
16224
16132
  var icon_group_default = _template("jb", (input) => {
16225
16133
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
16226
16134
  const $scope0_id = _scope_id();
16227
- _set_serialize_reason({
16228
- 0: $sg__input_size__OR__input_class,
16229
- 1: $sg__input_size__OR__input_class
16230
- });
16135
+ _set_serialize_reason($sg__input_size__OR__input_class << 1 | $sg__input_size__OR__input_class << 3);
16231
16136
  const $childScope = _peek_scope_id();
16232
16137
  icon_base_default({
16233
16138
  d: "M1 20V19C1 15.134 4.13401 12 8 12C11.866 12 15 15.134 15 19V20 M13 14C13 11.2386 15.2386 9 18 9C20.7614 9 23 11.2386 23 14V14.5 M8 12C10.2091 12 12 10.2091 12 8C12 5.79086 10.2091 4 8 4C5.79086 4 4 5.79086 4 8C4 10.2091 5.79086 12 8 12Z M18 9C19.6569 9 21 7.65685 21 6C21 4.34315 19.6569 3 18 3C16.3431 3 15 4.34315 15 6C15 7.65685 16.3431 9 18 9Z",
@@ -16238,8 +16143,8 @@ var icon_group_default = _template("jb", (input) => {
16238
16143
  });
16239
16144
  //#endregion
16240
16145
  //#region src/tags/join-dialog.css.ts
16241
- var dlg = "_io _g5";
16242
- var hint = "_ip _W";
16146
+ var dlg = "_h3 _ft";
16147
+ var hint = "_h4 _W";
16243
16148
  //#endregion
16244
16149
  //#region src/tags/join-dialog.marko
16245
16150
  var api$3;
@@ -16292,7 +16197,7 @@ var join_dialog_default = _template("m", (input) => {
16292
16197
  lastInviteName.v = next.name;
16293
16198
  }
16294
16199
  } catch {}
16295
- }, "m0", $scope0_id);
16200
+ }, "m1", $scope0_id);
16296
16201
  const reset = _resume(() => {
16297
16202
  gen.n++;
16298
16203
  invite = "";
@@ -16367,28 +16272,28 @@ var join_dialog_default = _template("m", (input) => {
16367
16272
  content: _content("m12", () => {
16368
16273
  _scope_reason();
16369
16274
  const $scope1_id = _scope_id();
16370
- _html(`<h2${_attr_class("_g6")}${_attr("id", titleId)}>Join a workspace</h2><p${_attr_class(hint)}>Paste an invite: the same repos, on your own lane of their branch.</p><textarea${_attr_class([
16275
+ _html(`<h2${_attr_class("_fu")}${_attr("id", titleId)}>Join a workspace</h2><p${_attr_class(hint)}>Paste an invite: the same repos, on your own lane of their branch.</p><textarea${_attr_class([
16371
16276
  "_Y",
16372
16277
  "_y",
16373
- "_ir"
16278
+ "_h6"
16374
16279
  ])} placeholder="{ &#34;name&#34;: …, &#34;branch&#34;: …, &#34;repos&#34;: [&#34;owner/name&#34;, …] }" aria-label="Workspace invite" rows=6 autocomplete=off spellcheck=false${_attr("disabled", busy)} autofocus>${_attr_textarea_value($scope1_id, "c", invite, setInvite)}</textarea>${_el_resume($scope1_id, "c")}`);
16375
16280
  _if(() => {
16376
16281
  if (parsed.error) {
16377
16282
  const $scope8_id = _scope_id();
16378
- _html(`<p${_attr_class([hint, "_iq"])}>${_text_resume($scope8_id, "b", parsed.error)}</p>`);
16283
+ _html(`<p${_attr_class([hint, "_h5"])}>${_text_resume($scope8_id, "b", parsed.error)}</p>`);
16379
16284
  _subscribe($parsed_error__closures, writeScope($scope8_id, { Cag: 1 }));
16380
16285
  return 0;
16381
16286
  } else if (parsed.ok) {
16382
16287
  const $scope3_id = _scope_id();
16383
- _html(`<ul${_attr_class("_is")}>`);
16288
+ _html(`<ul${_attr_class("_h7")}>`);
16384
16289
  _for_of(parsed.ok.repos, (fullName) => {
16385
16290
  const $scope9_id = _scope_id();
16386
- _html(`<li${_attr_class("_it")}><span${_attr_class("_iu")}>${_text_resume($scope9_id, "c", repoLabel(fullName))}</span></li>`);
16291
+ _html(`<li${_attr_class("_h8")}><span${_attr_class("_h9")}>${_text_resume($scope9_id, "c", repoLabel(fullName))}</span></li>`);
16387
16292
  writeScope($scope9_id, {});
16388
16293
  }, (r) => r, $scope3_id, "a", 1, 1, 1, "</ul>", 1);
16389
- _html(`<p${_attr_class(hint)}>Your own lane of <span${_attr_class("_y")}>${_text_resume($scope3_id, "d", parsed.ok.branch)}</span> in each; PRs target theirs.</p><label${_attr_class("_iv")}><span${_attr_class("_b8")}>Name</span><input${_attr_input_value($scope3_id, "g", name, _resume((_new_name) => {
16294
+ _html(`<p${_attr_class(hint)}>Your own lane of <span${_attr_class("_y")}>${_text_resume($scope3_id, "d", parsed.ok.branch)}</span> in each; PRs target theirs.</p><label${_attr_class("_h_")}><span${_attr_class("_b_")}>Name</span><input${_attr_input_value($scope3_id, "g", name, _resume((_new_name) => {
16390
16295
  name = _new_name;
16391
- }, "m1", $scope3_id))}${_attr_class("_Y")}${_attr("placeholder", parsed.ok.name)}${_attr("disabled", busy)}>${_el_resume($scope3_id, "g")}</label>`);
16296
+ }, "m0", $scope3_id))}${_attr_class("_Y")}${_attr("placeholder", parsed.ok.name)}${_attr("disabled", busy)}>${_el_resume($scope3_id, "g")}</label>`);
16392
16297
  _script($scope3_id, "m8");
16393
16298
  _subscribe($parsed_ok_name__closures, _subscribe($parsed_ok_branch__closures, _subscribe($parsed_ok_repos__closures, _subscribe($busy__closures, _subscribe($name__closures, writeScope($scope3_id, {
16394
16299
  Ca8: 1,
@@ -16422,10 +16327,10 @@ var join_dialog_default = _template("m", (input) => {
16422
16327
  _if(() => {
16423
16328
  if (busy && steps$2.length) {
16424
16329
  const $scope6_id = _scope_id();
16425
- _html(`<ul${_attr_class("_iw")}>`);
16330
+ _html(`<ul${_attr_class("_ia")}>`);
16426
16331
  _for_of(steps$2, (step$2, i) => {
16427
16332
  const $scope7_id = _scope_id();
16428
- _html(`<li${_attr_class(["_iy", { ["_ix"]: i === steps$2.length - 1 }])}>`);
16333
+ _html(`<li${_attr_class(["_ic", { ["_ib"]: i === steps$2.length - 1 }])}>`);
16429
16334
  _if(() => {
16430
16335
  if (i === steps$2.length - 1) {
16431
16336
  const $scope10_id = _scope_id();
@@ -16434,7 +16339,7 @@ var join_dialog_default = _template("m", (input) => {
16434
16339
  return 0;
16435
16340
  } else {
16436
16341
  const $scope11_id = _scope_id();
16437
- _html(`<span${_attr_class("_iz")}>`);
16342
+ _html(`<span${_attr_class("_id")}>`);
16438
16343
  icon_check_default({ size: 14 });
16439
16344
  _html("</span>");
16440
16345
  writeScope($scope11_id, {});
@@ -16494,7 +16399,7 @@ var join_dialog_default = _template("m", (input) => {
16494
16399
  var api$2;
16495
16400
  var watchProgress;
16496
16401
  var new_workspace_default = _template("s", (input) => {
16497
- const $scope0_reason = _scope_reason(), $sg__input_backHref__OR__input_onExit = _serialize_guard($scope0_reason, 0), $sg__input_workspaces = _serialize_guard($scope0_reason, 1), $si__input_workspaces = _serialize_if($scope0_reason, 1);
16402
+ const $scope0_reason = _scope_reason(), $sg__input_backHref__OR__input_onExit = _serialize_guard($scope0_reason, 0);
16498
16403
  const $scope0_id = _scope_id();
16499
16404
  const $busy__closures = /* @__PURE__ */ new Set();
16500
16405
  const $error__closures = /* @__PURE__ */ new Set();
@@ -16507,9 +16412,10 @@ var new_workspace_default = _template("s", (input) => {
16507
16412
  let selected = [];
16508
16413
  let busy = false;
16509
16414
  let restoring = null;
16415
+ let deleting = [];
16510
16416
  let error = null;
16511
16417
  let steps = [];
16512
- const archived$1 = (input.workspaces || []).filter((ws) => ws.status === "archived").slice().sort((a, b) => b.created_at.localeCompare(a.created_at));
16418
+ const archived$1 = (input.workspaces || []).filter((ws) => ws.status === "archived" && !deleting.includes(ws.id)).slice().sort((a, b) => b.created_at.localeCompare(a.created_at));
16513
16419
  const addRepo = _resume((fullName, baseBranch, fork) => {
16514
16420
  if (!fullName || selected.some((r) => r.fullName === fullName)) return;
16515
16421
  selected = selected.concat({
@@ -16556,6 +16462,21 @@ var new_workspace_default = _template("s", (input) => {
16556
16462
  restoring = null;
16557
16463
  }
16558
16464
  }, "s5", $scope0_id);
16465
+ const remove = _resume(async (ws) => {
16466
+ if (busy || restoring === ws.id) return;
16467
+ error = null;
16468
+ deleting = deleting.concat(ws.id);
16469
+ try {
16470
+ await api$2(`/api/workspaces/${ws.id}`, {
16471
+ method: "POST",
16472
+ headers: { "content-type": "application/json" },
16473
+ body: JSON.stringify({ action: "delete" })
16474
+ });
16475
+ } catch (err) {
16476
+ deleting = deleting.filter((id) => id !== ws.id);
16477
+ error = String(err.message || err);
16478
+ }
16479
+ }, "s6", $scope0_id);
16559
16480
  const createGen = { n: 0 };
16560
16481
  const create = _resume(async () => {
16561
16482
  if (restoring) return;
@@ -16588,32 +16509,27 @@ var new_workspace_default = _template("s", (input) => {
16588
16509
  } finally {
16589
16510
  watcher.stop();
16590
16511
  }
16591
- }, "s6", $scope0_id);
16512
+ }, "s7", $scope0_id);
16592
16513
  const titleId = _id();
16593
- _html(`<div${_attr_class("_dX")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_dY")}><div${_attr_class("_dZ")}>`);
16594
- _set_serialize_reason({
16595
- 0: _serialize_guard($scope0_reason, 2),
16596
- 1: $sg__input_backHref__OR__input_onExit,
16597
- 2: $sg__input_backHref__OR__input_onExit,
16598
- 3: $sg__input_backHref__OR__input_onExit
16599
- });
16514
+ _html(`<div${_attr_class("_ee")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_ef")}><div${_attr_class("_eg")}>`);
16515
+ _set_serialize_reason(_serialize_guard($scope0_reason, 1) << 1 | $sg__input_backHref__OR__input_onExit << 3 | $sg__input_backHref__OR__input_onExit << 5 | $sg__input_backHref__OR__input_onExit << 7);
16600
16516
  const $childScope = _peek_scope_id();
16601
16517
  page_head_default({
16602
16518
  title: "New workspace",
16603
16519
  titleId,
16604
16520
  backHref: input.backHref,
16605
- onBack: input.onExit && _resume(() => input.onExit?.(), "s7", $scope0_id),
16606
- actions: attrTag({ content: _content("s16", () => {
16521
+ onBack: input.onExit && _resume(() => input.onExit?.(), "s8", $scope0_id),
16522
+ actions: attrTag({ content: _content("s18", () => {
16607
16523
  _scope_reason();
16608
16524
  const $scope2_id = _scope_id();
16609
16525
  _html(`<button type=button${_attr_class(iconBtnRow)} aria-label="Join a workspace" title="Join a workspace from an invite"${_attr("disabled", busy)}>`);
16610
16526
  icon_group_default({ size: 14 });
16611
16527
  _html(`</button>${_el_resume($scope2_id, "a")}`);
16612
- _script($scope2_id, "s15");
16528
+ _script($scope2_id, "s17");
16613
16529
  _subscribe($busy__closures, writeScope($scope2_id, { _: _scope_with_id($scope0_id) }));
16614
16530
  }, $scope0_id) })
16615
16531
  });
16616
- _html(`<div${_attr_class("_d0")}>`);
16532
+ _html(`<div${_attr_class("_eh")}>`);
16617
16533
  _if(() => {
16618
16534
  if (error) {
16619
16535
  const $scope7_id = _scope_id();
@@ -16621,8 +16537,8 @@ var new_workspace_default = _template("s", (input) => {
16621
16537
  placement: "inline",
16622
16538
  onDismiss: _resume(function() {
16623
16539
  error = null;
16624
- }, "s8", $scope7_id),
16625
- content: _content("s17", () => {
16540
+ }, "s9", $scope7_id),
16541
+ content: _content("s19", () => {
16626
16542
  _scope_reason();
16627
16543
  const $scope8_id = _scope_id();
16628
16544
  _html(_text_resume($scope8_id, "a", error));
@@ -16633,12 +16549,12 @@ var new_workspace_default = _template("s", (input) => {
16633
16549
  return 0;
16634
16550
  }
16635
16551
  }, $scope0_id, "f", 1, 1, 1, 0, 1);
16636
- _html(`<label${_attr_class("_fu")}><span${_attr_class("_b8")}>Name</span><input${_attr_input_value($scope0_id, "i", name, _resume((_new_name) => {
16552
+ _html(`<label${_attr_class("_fA")}><span${_attr_class("_b_")}>Name</span><input${_attr_input_value($scope0_id, "i", name, _resume((_new_name) => {
16637
16553
  name = _new_name;
16638
- }, "s0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "i")}</label><section${_attr_class("_bU")}><div${_attr_class("_fx")}><h2${_attr_class("_b8")}>Repos</h2><span${_attr_class(sectionCount$1)}>${_text_resume($scope0_id, "n", selected.length)}</span><div${_attr_class("_z")}></div><button type=button${_attr_class([iconBtnRow, "_fw"])} title="Add repo" aria-label="Add repo"${_attr("hidden", addingRepo)}${_attr("disabled", busy)}>`);
16554
+ }, "s0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "i")}</label><section${_attr_class("_bW")}><div${_attr_class("_fD")}><h2${_attr_class("_b_")}>Repos</h2><span${_attr_class(sectionCount$1)}>${_text_resume($scope0_id, "n", selected.length)}</span><div${_attr_class("_z")}></div><button type=button${_attr_class([iconBtnRow, "_fC"])} title="Add repo" aria-label="Add repo"${_attr("hidden", addingRepo)}${_attr("disabled", busy)}>`);
16639
16555
  icon_plus_default({ size: 16 });
16640
16556
  _html(`</button>${_el_resume($scope0_id, "p")}`);
16641
- _set_serialize_reason(34);
16557
+ _set_serialize_reason(514);
16642
16558
  const $childScope2 = _peek_scope_id();
16643
16559
  let refreshCatalog = repo_picker_default({
16644
16560
  pinned: true,
@@ -16651,20 +16567,20 @@ var new_workspace_default = _template("s", (input) => {
16651
16567
  disabled: busy,
16652
16568
  onClose: _resume(function() {
16653
16569
  addingRepo = false;
16654
- }, "s9", $scope0_id),
16570
+ }, "s10", $scope0_id),
16655
16571
  onPick: _resume(function(fullName, baseBranch, fork) {
16656
16572
  addRepo(fullName, baseBranch, fork);
16657
- }, "s10", $scope0_id),
16573
+ }, "s11", $scope0_id),
16658
16574
  onError: _resume(function(message) {
16659
16575
  error = message;
16660
- }, "s11", $scope0_id),
16576
+ }, "s12", $scope0_id),
16661
16577
  refreshingChange: function(v) {
16662
16578
  catalogRefreshing = v;
16663
16579
  }
16664
16580
  });
16665
- _var($scope0_id, "s", $childScope2, "s18");
16581
+ _var($scope0_id, "s", $childScope2, "s20");
16666
16582
  _html(`<button type=button${_attr_class(iconBtnRow)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
16667
- _set_serialize_reason(1);
16583
+ _set_serialize_reason(2);
16668
16584
  const $childScope3 = _peek_scope_id();
16669
16585
  icon_refresh_default({
16670
16586
  size: 14,
@@ -16673,7 +16589,7 @@ var new_workspace_default = _template("s", (input) => {
16673
16589
  _html(`</button>${_el_resume($scope0_id, "t")}</div><ul${_attr_class(list$2)}>`);
16674
16590
  _for_of(selected, (repo) => {
16675
16591
  const $scope3_id = _scope_id();
16676
- _html(`<li${_attr_class("_fy")}><div${_attr_class(curRow)}><span${_attr_class("_cK")}>${_text_resume($scope3_id, "d", repoLabel(repo.fullName))}</span><span${_attr_class("_cM")}>`);
16592
+ _html(`<li${_attr_class("_fE")}><div${_attr_class(curRow)}><span${_attr_class("_cK")}>${_text_resume($scope3_id, "d", repoLabel(repo.fullName))}</span><span${_attr_class("_cM")}>`);
16677
16593
  _if(() => {
16678
16594
  if (repo.fork !== void 0) {
16679
16595
  const $scope4_id = _scope_id();
@@ -16696,8 +16612,8 @@ var new_workspace_default = _template("s", (input) => {
16696
16612
  return 1;
16697
16613
  }
16698
16614
  }, $scope4_id, "a", 1, 1, 1, "</button>");
16699
- _script($scope4_id, "s19");
16700
- _subscribe($busy__closures, writeScope($scope4_id, { Cb6: 1 }));
16615
+ _script($scope4_id, "s21");
16616
+ _subscribe($busy__closures, writeScope($scope4_id, { Cba: 1 }));
16701
16617
  return 0;
16702
16618
  }
16703
16619
  }, $scope3_id, "f", 1, 1, 1, 0, 1);
@@ -16713,18 +16629,18 @@ var new_workspace_default = _template("s", (input) => {
16713
16629
  _if(() => {
16714
16630
  if (branchesFor === repo.fullName) {
16715
16631
  const $scope9_id = _scope_id();
16716
- _html(`<div${_attr_class("_fA")}>`);
16632
+ _html(`<div${_attr_class("_fG")}>`);
16717
16633
  const $childScope4 = _peek_scope_id();
16718
16634
  branch_pick_default({
16719
16635
  repo: repo.fullName,
16720
16636
  current: repo.baseBranch,
16721
16637
  onPick: _resume(function(branch, isDefault) {
16722
16638
  setBranch(repo.fullName, isDefault ? void 0 : branch);
16723
- }, "s12", $scope9_id),
16639
+ }, "s13", $scope9_id),
16724
16640
  onError: _resume(function(message) {
16725
16641
  branchesFor = null;
16726
16642
  error = message;
16727
- }, "s13", $scope9_id)
16643
+ }, "s14", $scope9_id)
16728
16644
  });
16729
16645
  _html("</div>");
16730
16646
  writeScope($scope9_id, { b: _existing_scope($childScope4) });
@@ -16732,7 +16648,7 @@ var new_workspace_default = _template("s", (input) => {
16732
16648
  }
16733
16649
  }, $scope3_id, "l", 1, 1, 1, 0, 1);
16734
16650
  _html("</li>");
16735
- _script($scope3_id, "s20");
16651
+ _script($scope3_id, "s22");
16736
16652
  writeScope($scope3_id, {
16737
16653
  o: repo?.fullName,
16738
16654
  q: repo?.fork,
@@ -16751,10 +16667,10 @@ var new_workspace_default = _template("s", (input) => {
16751
16667
  _if(() => {
16752
16668
  if (busy && steps.length) {
16753
16669
  const $scope10_id = _scope_id();
16754
- _html(`<ul${_attr_class("_fB")}>`);
16670
+ _html(`<ul${_attr_class("_fH")}>`);
16755
16671
  _for_of(steps, (step, i) => {
16756
16672
  const $scope11_id = _scope_id();
16757
- _html(`<li${_attr_class(["_fH", { ["_fC"]: i === steps.length - 1 }])}>`);
16673
+ _html(`<li${_attr_class(["_fN", { ["_fI"]: i === steps.length - 1 }])}>`);
16758
16674
  _if(() => {
16759
16675
  if (i === steps.length - 1) {
16760
16676
  const $scope15_id = _scope_id();
@@ -16763,7 +16679,7 @@ var new_workspace_default = _template("s", (input) => {
16763
16679
  return 0;
16764
16680
  } else {
16765
16681
  const $scope16_id = _scope_id();
16766
- _html(`<span${_attr_class("_fD")}>`);
16682
+ _html(`<span${_attr_class("_fJ")}>`);
16767
16683
  icon_check_default({ size: 14 });
16768
16684
  _html("</span>");
16769
16685
  writeScope($scope16_id, {});
@@ -16777,18 +16693,18 @@ var new_workspace_default = _template("s", (input) => {
16777
16693
  return 0;
16778
16694
  }
16779
16695
  }, $scope0_id, "y", 1, 1, 1, 0, 1);
16780
- _html(`<div${_attr_class("_fs")}><button type=button${_attr_class([
16696
+ _html(`<div${_attr_class("_fy")}><button type=button${_attr_class([
16781
16697
  btnLg,
16782
16698
  "_r",
16783
- "_ft"
16784
- ])}${_attr("disabled", busy || !!restoring || !name.trim())}>${_text_resume($scope0_id, "a1", busy ? "Creating…" : "Create workspace")}</button>${_el_resume($scope0_id, "a0")}</div></div><div${_attr_class("_d0")}>`);
16699
+ "_fz"
16700
+ ])}${_attr("disabled", busy || !!restoring || !name.trim())}>${_text_resume($scope0_id, "a1", busy ? "Creating…" : "Create workspace")}</button>${_el_resume($scope0_id, "a0")}</div></div><div${_attr_class("_eh")}>`);
16785
16701
  _if(() => {
16786
16702
  if (archived$1.length) {
16787
16703
  const $scope5_id = _scope_id();
16788
- _html(`<section${_attr_class(archived)}><div${_attr_class("_fx")}><h2${_attr_class("_b8")}>Archived</h2><span${_attr_class(sectionCount$1)}>${_text_resume($scope5_id, "e", archived$1.length, $sg__input_workspaces)}</span></div><p${_attr_class(archivedHint)}>Restore an archived workspace instead of creating a new one.</p><ul${_attr_class(list$2)}>`);
16704
+ _html(`<section${_attr_class(archived)}><div${_attr_class("_fD")}><h2${_attr_class("_b_")}>Archived</h2><span${_attr_class(sectionCount$1)}>${_text_resume($scope5_id, "e", archived$1.length)}</span></div><p${_attr_class(archivedHint)}>Restore an archived workspace instead of creating a new one, or delete the ones you are done with.</p><ul${_attr_class(list$2)}>`);
16789
16705
  _for_of(archived$1, (ws) => {
16790
16706
  const $scope6_id = _scope_id();
16791
- _html(`<li${_attr_class(archivedRow)}><div${_attr_class("_b0")}><span${_attr_class("_b1")}>${_text_resume($scope6_id, "d", ws.name, $sg__input_workspaces)}</span><span${_attr_class([metaTrunc, "_y"])}${_attr("title", ws.display_path || ws.path)}>${_text_resume($scope6_id, "f", ws.display_path || ws.path, $sg__input_workspaces)}</span>${_el_resume($scope6_id, "e", $sg__input_workspaces)}</div><button type=button${_attr_class(btnSm)}${_attr("disabled", busy || !!restoring)}>`);
16707
+ _html(`<li${_attr_class(archivedRow)}><div${_attr_class("_b2")}><span${_attr_class("_b3")}>${_text_resume($scope6_id, "d", ws.name)}</span><span${_attr_class([metaTrunc, "_y"])}${_attr("title", ws.display_path || ws.path)}>${_text_resume($scope6_id, "f", ws.display_path || ws.path)}</span>${_el_resume($scope6_id, "e")}</div><span${_attr_class("_cM")}><button type=button${_attr_class(btnSm)}${_attr("disabled", busy || !!restoring)}>`);
16792
16708
  _if(() => {
16793
16709
  if (restoring === ws.id) {
16794
16710
  const $scope17_id = _scope_id();
@@ -16801,41 +16717,63 @@ var new_workspace_default = _template("s", (input) => {
16801
16717
  writeScope($scope18_id, {});
16802
16718
  return 1;
16803
16719
  }
16804
- }, $scope6_id, "g", 1, 1, 1, "</button>");
16805
- _html("</li>");
16806
- _script($scope6_id, "s21");
16720
+ }, $scope6_id, "h", 1, 1, 1, "</button>");
16721
+ const $childScope5 = _peek_scope_id();
16722
+ arm_button_default({
16723
+ class: [
16724
+ iconBtnRow,
16725
+ "_7",
16726
+ "_8"
16727
+ ],
16728
+ title: "Delete: remove the workspace and its worktrees. Branches on origin stay.",
16729
+ armedTitle: `Delete ${ws.name}?`,
16730
+ armedLabel: "Delete?",
16731
+ ariaLabel: `Delete ${ws.name}`,
16732
+ disabled: busy || restoring === ws.id,
16733
+ onFire: _resume(function() {
16734
+ remove(ws);
16735
+ }, "s15", $scope6_id),
16736
+ content: _content_resume("s23", () => {
16737
+ _scope_reason();
16738
+ _scope_id();
16739
+ icon_trash_default({ size: 14 });
16740
+ }, $scope6_id)
16741
+ });
16742
+ _html("</span></li>");
16743
+ _script($scope6_id, "s24");
16807
16744
  _subscribe($restoring__closures, _subscribe($busy__closures, writeScope($scope6_id, {
16808
- j: ws,
16809
- o: ws?.id,
16810
- _: _scope_with_id($scope5_id),
16811
- Cb6: 2
16745
+ l: ws,
16746
+ q: ws?.id,
16747
+ i: _existing_scope($childScope5),
16748
+ Cba: 2
16812
16749
  })));
16813
- }, "id", $scope5_id, "g", $sg__input_workspaces, $sg__input_workspaces, $sg__input_workspaces, "</ul>", 1);
16750
+ }, "id", $scope5_id, "g", 1, 1, 1, "</ul>", 1);
16814
16751
  _html("</section>");
16815
- writeScope($scope5_id, { _: _scope_with_id($scope0_id) });
16752
+ writeScope($scope5_id, {});
16816
16753
  return 0;
16817
16754
  }
16818
- }, $scope0_id, "a2", $sg__input_workspaces, $sg__input_workspaces, 1, "</div>", 1);
16755
+ }, $scope0_id, "a2", 1, 1, 1, "</div>", 1);
16819
16756
  _html("</div></div>");
16820
16757
  _if(() => {
16821
16758
  if (joinOpen) {
16822
16759
  const $scope1_id = _scope_id();
16823
16760
  _set_serialize_reason(2);
16824
- const $childScope5 = _peek_scope_id();
16761
+ const $childScope6 = _peek_scope_id();
16825
16762
  join_dialog_default({
16826
16763
  open: joinOpen,
16827
16764
  openChange: _resume((_new_joinOpen) => {
16828
16765
  joinOpen = _new_joinOpen;
16829
- }, "s14", $scope1_id),
16766
+ }, "s16", $scope1_id),
16830
16767
  onJoin: input.onCreate
16831
16768
  });
16832
- writeScope($scope1_id, { a: _existing_scope($childScope5) });
16769
+ writeScope($scope1_id, { a: _existing_scope($childScope6) });
16833
16770
  return 0;
16834
16771
  }
16835
16772
  }, $scope0_id, "a3", 1, 1, 1, 0, 1);
16836
16773
  _html("</div>");
16837
- _script($scope0_id, "s22");
16774
+ _script($scope0_id, "s25");
16838
16775
  writeScope($scope0_id, {
16776
+ a6: input.workspaces,
16839
16777
  a7: input.onRestore,
16840
16778
  a8: input.onCreate,
16841
16779
  aa: input.onExit,
@@ -16844,27 +16782,29 @@ var new_workspace_default = _template("s", (input) => {
16844
16782
  af: selected,
16845
16783
  ah: busy,
16846
16784
  ai: restoring,
16847
- al: error,
16848
- am: steps,
16849
- an: steps?.length,
16850
- ap: $si__input_workspaces && archived$1,
16851
- aq: $si__input_workspaces && archived$1?.length,
16852
- ar: addRepo,
16853
- as: branchesFor,
16854
- au: removeRepo,
16855
- av: toggleFork,
16856
- aw: setBranch,
16857
- ax: restore,
16858
- az: createGen.n,
16859
- b1: create,
16860
- b3: refreshCatalog,
16861
- b6: $busy__closures,
16785
+ al: deleting,
16786
+ ao: error,
16787
+ ap: steps,
16788
+ aq: steps?.length,
16789
+ as: archived$1,
16790
+ at: archived$1?.length,
16791
+ au: addRepo,
16792
+ av: branchesFor,
16793
+ ax: removeRepo,
16794
+ ay: toggleFork,
16795
+ az: setBranch,
16796
+ b0: restore,
16797
+ b1: remove,
16798
+ b3: createGen.n,
16799
+ b5: create,
16800
+ b7: refreshCatalog,
16801
+ ba: $busy__closures,
16862
16802
  d: _serialize_if($scope0_reason, 0) && _existing_scope($childScope),
16863
- b8: $error__closures,
16803
+ bc: $error__closures,
16864
16804
  r: _existing_scope($childScope2),
16865
16805
  u: _existing_scope($childScope3),
16866
- ba: $steps_length__closures,
16867
- b7: $restoring__closures
16806
+ be: $steps_length__closures,
16807
+ bb: $restoring__closures
16868
16808
  });
16869
16809
  });
16870
16810
  //#endregion
@@ -16886,20 +16826,20 @@ var term_find_default = _template("H", (input) => {
16886
16826
  if (!live.open) return;
16887
16827
  const search = input.onSearch;
16888
16828
  if (search) search(live.query, dir);
16889
- }, "H2", $scope0_id);
16829
+ }, "H1", $scope0_id);
16890
16830
  const close = _resume(() => {
16891
16831
  ((findEl) => findEl())(_el_read_error)?.blur();
16892
16832
  open = false;
16893
16833
  live.open = false;
16894
16834
  const clear = input.onClear;
16895
16835
  if (clear) clear();
16896
- }, "H3", $scope0_id);
16836
+ }, "H2", $scope0_id);
16897
16837
  const focusInput = _resume(() => {
16898
16838
  const el = ((findEl) => findEl())(_el_read_error);
16899
16839
  if (!el) return;
16900
16840
  el.focus();
16901
16841
  if (document.activeElement !== el) setTimeout(() => el.focus(), 0);
16902
- }, "H0", $scope0_id);
16842
+ }, "H3", $scope0_id);
16903
16843
  const hasQuery = !!query.trim();
16904
16844
  const canStep = hasQuery && open;
16905
16845
  const keybar = input.placement === "keybar";
@@ -16912,7 +16852,7 @@ var term_find_default = _template("H", (input) => {
16912
16852
  query = v;
16913
16853
  live.query = v;
16914
16854
  run(0);
16915
- }, "H1", $scope0_id))}${_attr_class([findInput, keybar && "_ez"])} type=search enterkeyhint=search autocomplete=off tabindex=${open ? "0" : "-1"} placeholder="Find in terminal" aria-label="Find in terminal">${_el_resume($scope0_id, "c")}<button type=button${_attr_class([findIconBtn, keybar && "_eA"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
16855
+ }, "H0", $scope0_id))}${_attr_class([findInput, keybar && "_ez"])} type=search enterkeyhint=search autocomplete=off tabindex=${open ? "0" : "-1"} placeholder="Find in terminal" aria-label="Find in terminal">${_el_resume($scope0_id, "c")}<button type=button${_attr_class([findIconBtn, keybar && "_eA"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
16916
16856
  icon_arrow_up_default({ size: 14 });
16917
16857
  _html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_eA"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
16918
16858
  icon_arrow_down_default({ size: 14 });
@@ -17066,7 +17006,7 @@ var term_default = _template("I", (input) => {
17066
17006
  }
17067
17007
  }, "I9", $scope0_id);
17068
17008
  input.keys;
17069
- _html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_fh")}><div${_attr_class("_fi")}></div>${_el_resume($scope0_id, "b")}`);
17009
+ _html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_eQ")}><div${_attr_class("_eR")}></div>${_el_resume($scope0_id, "b")}`);
17070
17010
  _if(() => {
17071
17011
  if (findOpen) {
17072
17012
  const $scope4_id = _scope_id();
@@ -17093,7 +17033,7 @@ var term_default = _template("I", (input) => {
17093
17033
  _if(() => {
17094
17034
  if (uploading) {
17095
17035
  const $scope5_id = _scope_id();
17096
- _html(`<div${_attr_class("_fo")}>uploading…</div>`);
17036
+ _html(`<div${_attr_class("_eX")}>uploading…</div>`);
17097
17037
  writeScope($scope5_id, {});
17098
17038
  return 0;
17099
17039
  }
@@ -17101,7 +17041,7 @@ var term_default = _template("I", (input) => {
17101
17041
  _if(() => {
17102
17042
  if (copiedFlash) {
17103
17043
  const $scope6_id = _scope_id();
17104
- _html(`<div${_attr_class("_fn")}>Copied</div>`);
17044
+ _html(`<div${_attr_class("_eW")}>Copied</div>`);
17105
17045
  writeScope($scope6_id, {});
17106
17046
  return 0;
17107
17047
  }
@@ -17110,7 +17050,7 @@ var term_default = _template("I", (input) => {
17110
17050
  _if(() => {
17111
17051
  if (trapOpen) {
17112
17052
  const $scope3_id = _scope_id();
17113
- _html(`<div${_attr_class("_fp")}><div${_attr_class("_fq")}><p${_attr_class("_fr")}>Long-press the field below and choose Paste</p><input placeholder="Paste here…">${_el_resume($scope3_id, "d")}<button${_attr_class("_q")}>Cancel</button>${_el_resume($scope3_id, "e")}</div>${_el_resume($scope3_id, "b")}</div>${_el_resume($scope3_id, "a")}`);
17053
+ _html(`<div${_attr_class("_eY")}><div${_attr_class("_eZ")}><p${_attr_class("_e0")}>Long-press the field below and choose Paste</p><input placeholder="Paste here…">${_el_resume($scope3_id, "d")}<button${_attr_class("_q")}>Cancel</button>${_el_resume($scope3_id, "e")}</div>${_el_resume($scope3_id, "b")}</div>${_el_resume($scope3_id, "a")}`);
17114
17054
  _script($scope3_id, "I16");
17115
17055
  _script($scope3_id, "I17");
17116
17056
  writeScope($scope3_id, {});
@@ -17394,16 +17334,7 @@ var work_view_default = _template("N", (input) => {
17394
17334
  if (diffMounted && ws) {
17395
17335
  const $scope1_id = _scope_id();
17396
17336
  _html(`<div${_attr_class("_bQ")}${_attr_or("data-live", view === "diff", "")}${_attr("inert", view !== "diff")}>`);
17397
- _set_serialize_reason({
17398
- 0: $sg__input_workspace,
17399
- 1: $sg__input_workspace,
17400
- 2: 1,
17401
- 4: 1,
17402
- 6: $sg__input_workspace,
17403
- 7: $sg__input_workspace,
17404
- 8: $sg__input_workspace,
17405
- 9: 1
17406
- });
17337
+ _set_serialize_reason(524832 | ($sg__input_workspace << 1 | $sg__input_workspace << 3 | $sg__input_workspace << 13 | $sg__input_workspace << 15 | $sg__input_workspace << 17));
17407
17338
  const $childScope = _peek_scope_id();
17408
17339
  let reviewFindFocus = $ReviewView_withLoadAssets({
17409
17340
  workspaceId: ws.id,
@@ -17455,10 +17386,7 @@ var work_view_default = _template("N", (input) => {
17455
17386
  if (manageMounted && ws) {
17456
17387
  const $scope2_id = _scope_id();
17457
17388
  _html(`<div${_attr_class("_bQ")}${_attr_or("data-live", view === "manage", "")}${_attr("inert", view !== "manage")}>`);
17458
- _set_serialize_reason({
17459
- 0: $sg__input_workspace,
17460
- 1: _serialize_guard($scope0_reason, 9)
17461
- });
17389
+ _set_serialize_reason($sg__input_workspace << 1 | _serialize_guard($scope0_reason, 9) << 3);
17462
17390
  const $childScope2 = _peek_scope_id();
17463
17391
  manage_workspace_default({
17464
17392
  workspace: ws,
@@ -17481,16 +17409,7 @@ var work_view_default = _template("N", (input) => {
17481
17409
  if (settingsMounted) {
17482
17410
  const $scope3_id = _scope_id();
17483
17411
  _html(`<div${_attr_class("_bQ")}${_attr_or("data-live", view === "settings", "")}${_attr("inert", view !== "settings")}>`);
17484
- _set_serialize_reason({
17485
- 0: _serialize_guard($scope0_reason, 0),
17486
- 1: $sg__input_workspace,
17487
- 2: _serialize_guard($scope0_reason, 12),
17488
- 3: _serialize_guard($scope0_reason, 8),
17489
- 4: $sg__input_workspace,
17490
- 5: _serialize_guard($scope0_reason, 10),
17491
- 6: $sg__input_instance,
17492
- 7: $sg__input_instance
17493
- });
17412
+ _set_serialize_reason(_serialize_guard($scope0_reason, 0) << 1 | $sg__input_workspace << 3 | _serialize_guard($scope0_reason, 12) << 5 | _serialize_guard($scope0_reason, 8) << 7 | $sg__input_workspace << 9 | _serialize_guard($scope0_reason, 10) << 11 | $sg__input_instance << 13 | $sg__input_instance << 15);
17494
17413
  const $childScope3 = _peek_scope_id();
17495
17414
  settings_page_default({
17496
17415
  preferred: input.preferred,
@@ -17523,11 +17442,7 @@ var work_view_default = _template("N", (input) => {
17523
17442
  if (newMounted) {
17524
17443
  const $scope4_id = _scope_id();
17525
17444
  _html(`<div${_attr_class("_bQ")}${_attr_or("data-live", view === "new", "")}${_attr("inert", view !== "new")}>`);
17526
- _set_serialize_reason({
17527
- 0: 1,
17528
- 1: _serialize_guard($scope0_reason, 13),
17529
- 2: $sg__input_workspace
17530
- });
17445
+ _set_serialize_reason(2 | $sg__input_workspace << 3);
17531
17446
  const $childScope4 = _peek_scope_id();
17532
17447
  new_workspace_default({
17533
17448
  workspaces: input.allWorkspaces || [],
@@ -17579,7 +17494,7 @@ var work_view_default = _template("N", (input) => {
17579
17494
  _if(() => {
17580
17495
  if (!shownSessions.length && view === "term") {
17581
17496
  const $scope7_id = _scope_id();
17582
- _html(`<div${_attr_class("_b6")}><span>No sessions in this workspace.</span><button${_attr_class(["_q", "_r"])}${_attr("disabled", spawning)}>${_text_resume($scope7_id, "c", spawning ? "Starting…" : `Start ${input.preferred || "shell"}`)}</button>${_el_resume($scope7_id, "b")}</div>`);
17497
+ _html(`<div${_attr_class("_b8")}><span>No sessions in this workspace.</span><button${_attr_class(["_q", "_r"])}${_attr("disabled", spawning)}>${_text_resume($scope7_id, "c", spawning ? "Starting…" : `Start ${input.preferred || "shell"}`)}</button>${_el_resume($scope7_id, "b")}</div>`);
17583
17498
  _script($scope7_id, "N39");
17584
17499
  _subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
17585
17500
  return 0;
@@ -17589,7 +17504,7 @@ var work_view_default = _template("N", (input) => {
17589
17504
  return 0;
17590
17505
  } else if (ws) {
17591
17506
  const $scope10_id = _scope_id();
17592
- _html(`<p${_attr_class("_b6")}>Loading sessions…</p>`);
17507
+ _html(`<p${_attr_class("_b8")}>Loading sessions…</p>`);
17593
17508
  writeScope($scope10_id, {});
17594
17509
  return 1;
17595
17510
  }
@@ -17656,37 +17571,37 @@ var work_view_default = _template("N", (input) => {
17656
17571
  bb: home,
17657
17572
  be: openDiff,
17658
17573
  bg: openManage,
17659
- bi: openSettings,
17660
- bl: toggleNav,
17661
- bm: toggleDiff,
17662
- bn: shownSessions,
17663
- bq: shownSessions?.length,
17664
- br: curTab,
17665
- bu: createGate.open,
17666
- bw: toggleReviewFind,
17667
- bx: exitCreate,
17668
- bz: applyView,
17669
- c2: keys,
17670
- c5: navGate.seen,
17671
- c7: createSession,
17672
- ca: loadMem.wanted,
17673
- cc: loadMem.run,
17674
- cd: loadBody,
17675
- cf: loadSessions,
17676
- ci: closeSession,
17677
- cj: renameSession,
17678
- ck: newSession,
17679
- cl: onKey,
17680
- c1: input.navStateChange || void 0,
17681
- da: $error__closures,
17682
- cn: $si__input_active && $input_active__closures,
17683
- d1: $view__closures,
17684
- dd: $si__input_workspace && $ws_id__closures,
17685
- dj: $curTab__closures,
17686
- dl: $keys__closures,
17687
- dm: $closeSession2__closures,
17688
- co: $si__input_preferred && $input_preferred__closures,
17689
- db: $spawning__closures
17574
+ bh: openSettings,
17575
+ bj: toggleNav,
17576
+ bk: toggleDiff,
17577
+ bl: shownSessions,
17578
+ bo: shownSessions?.length,
17579
+ bp: curTab,
17580
+ bs: createGate.open,
17581
+ bu: toggleReviewFind,
17582
+ bv: exitCreate,
17583
+ bx: applyView,
17584
+ c0: keys,
17585
+ c3: navGate.seen,
17586
+ c5: createSession,
17587
+ c8: loadMem.wanted,
17588
+ ca: loadMem.run,
17589
+ cb: loadBody,
17590
+ cd: loadSessions,
17591
+ cg: closeSession,
17592
+ ch: renameSession,
17593
+ ci: newSession,
17594
+ cj: onKey,
17595
+ bz: input.navStateChange || void 0,
17596
+ d8: $error__closures,
17597
+ cl: $si__input_active && $input_active__closures,
17598
+ cz: $view__closures,
17599
+ db: $si__input_workspace && $ws_id__closures,
17600
+ dh: $curTab__closures,
17601
+ dj: $keys__closures,
17602
+ dk: $closeSession2__closures,
17603
+ cm: $si__input_preferred && $input_preferred__closures,
17604
+ d9: $spawning__closures
17690
17605
  });
17691
17606
  });
17692
17607
  //#endregion
@@ -17695,10 +17610,7 @@ var kbtn = "_bG _5 _l";
17695
17610
  _template("yb", (input) => {
17696
17611
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
17697
17612
  const $scope0_id = _scope_id();
17698
- _set_serialize_reason({
17699
- 0: $sg__input_size__OR__input_class,
17700
- 1: $sg__input_size__OR__input_class
17701
- });
17613
+ _set_serialize_reason($sg__input_size__OR__input_class << 1 | $sg__input_size__OR__input_class << 3);
17702
17614
  const $childScope = _peek_scope_id();
17703
17615
  icon_base_default({
17704
17616
  d: "M8 6L20 6 M4 6.01L4.01 5.99889 M4 12.01L4.01 11.9989 M4 18.01L4.01 17.9989 M8 12L20 12 M8 18L20 18",
@@ -17720,22 +17632,22 @@ var usage_pcts_default = _template("M", (input) => {
17720
17632
  if (windows.length) {
17721
17633
  const $scope1_id = _scope_id();
17722
17634
  _html(`<span${_attr_class([
17723
- "_gY",
17635
+ "_hC",
17724
17636
  input.class,
17725
- { ["_gZ"]: agent.stale_seconds != null }
17637
+ { ["_hD"]: agent.stale_seconds != null }
17726
17638
  ])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
17727
17639
  _for_of(windows, (win$1, i) => {
17728
17640
  const $scope2_id = _scope_id();
17729
- _html(`<span${_attr_class("_g0")}>`);
17641
+ _html(`<span${_attr_class("_hE")}>`);
17730
17642
  _if(() => {
17731
17643
  if (i) {
17732
17644
  const $scope3_id = _scope_id();
17733
- _html(`<span${_attr_class("_g3")} aria-hidden=true>·</span>`);
17645
+ _html(`<span${_attr_class("_hH")} aria-hidden=true>·</span>`);
17734
17646
  $si__input_agent && writeScope($scope3_id, {});
17735
17647
  return 0;
17736
17648
  }
17737
17649
  }, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
17738
- _html(`<span${_attr_class("_g1")}>${_text_resume($scope2_id, "d", win$1.window, $sg__input_agent)}</span><span${_attr_class(["_g2", win$1.used_percent >= 90 ? "_hs" : win$1.used_percent >= 70 ? "_hr" : win$1.used_percent >= 40 ? "_hq" : "_hp"])}>${_text_resume($scope2_id, "f", pctText(win$1.used_percent), $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
17650
+ _html(`<span${_attr_class("_hF")}>${_text_resume($scope2_id, "d", win$1.window, $sg__input_agent)}</span><span${_attr_class(["_hG", win$1.used_percent >= 90 ? "_gW" : win$1.used_percent >= 70 ? "_gV" : win$1.used_percent >= 40 ? "_gU" : "_gT"])}>${_text_resume($scope2_id, "f", pctText(win$1.used_percent), $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
17739
17651
  $si__input_agent && writeScope($scope2_id, {});
17740
17652
  }, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
17741
17653
  $si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
@@ -17778,10 +17690,7 @@ _template("n", (input) => {
17778
17690
  gap: 8
17779
17691
  }), "n2", $scope0_id);
17780
17692
  _html(`<button${_attr_class([kbtn, "_eB"])} title=${input.onTermPage ? "Sessions" : "\"Back to session\""}${input.onTermPage ? _attr("popovertarget", popId) : ""}>`);
17781
- _set_serialize_reason({
17782
- 1: $sg__input_sessions__OR__input_sessionId,
17783
- 2: $sg__input_sessions__OR__input_sessionId
17784
- });
17693
+ _set_serialize_reason($sg__input_sessions__OR__input_sessionId << 3 | $sg__input_sessions__OR__input_sessionId << 5);
17785
17694
  const $childScope = _peek_scope_id();
17786
17695
  icon_agent_default({
17787
17696
  agent: thisAgent,
@@ -17792,7 +17701,7 @@ _template("n", (input) => {
17792
17701
  "_bb",
17793
17702
  phase[sessionPhase(current$2?.state)]
17794
17703
  ])}></span>${_el_resume($scope0_id, "c", $sg__input_sessions__OR__input_sessionId)}</button>${_el_resume($scope0_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(["_9", "_eC"])}><div${_attr_class("_eD")}>`);
17795
- _set_serialize_reason({ 0: _serialize_guard($scope0_reason, 8) });
17704
+ _set_serialize_reason(_serialize_guard($scope0_reason, 8) << 1);
17796
17705
  const $childScope2 = _peek_scope_id();
17797
17706
  side_nav_chips_default({
17798
17707
  workspaceId: input.workspaceId,
@@ -17808,10 +17717,7 @@ _template("n", (input) => {
17808
17717
  if (renamingId === s.id) {
17809
17718
  const $scope5_id = _scope_id();
17810
17719
  _html(`<span${_attr_class(["_A", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope5_id, "a", $sg__input_sessions)}`);
17811
- _set_serialize_reason({
17812
- 1: $sg__input_sessions,
17813
- 2: $sg__input_sessions
17814
- });
17720
+ _set_serialize_reason($sg__input_sessions << 3 | $sg__input_sessions << 5);
17815
17721
  const $childScope3 = _peek_scope_id();
17816
17722
  icon_agent_default({
17817
17723
  agent: activeAgent(s),
@@ -17826,10 +17732,7 @@ _template("n", (input) => {
17826
17732
  } else {
17827
17733
  const $scope2_id = _scope_id();
17828
17734
  _html(`<button${_attr_class(sessOpen)}><span${_attr_class(["_A", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope2_id, "b", $sg__input_sessions)}`);
17829
- _set_serialize_reason({
17830
- 1: $sg__input_sessions,
17831
- 2: $sg__input_sessions
17832
- });
17735
+ _set_serialize_reason($sg__input_sessions << 3 | $sg__input_sessions << 5);
17833
17736
  const $childScope4 = _peek_scope_id();
17834
17737
  icon_agent_default({
17835
17738
  agent: activeAgent(s),
@@ -17843,7 +17746,7 @@ _template("n", (input) => {
17843
17746
  _if(() => {
17844
17747
  if (plan) {
17845
17748
  const $scope8_id = _scope_id();
17846
- _set_serialize_reason(1);
17749
+ _set_serialize_reason(10);
17847
17750
  const $childScope5 = _peek_scope_id();
17848
17751
  usage_pcts_default({
17849
17752
  agent: plan,
@@ -17912,10 +17815,7 @@ _template("n", (input) => {
17912
17815
  _for_of(["shell", ...input.agents], (agent) => {
17913
17816
  const $scope4_id = _scope_id();
17914
17817
  _html(`<button${_attr_class(iconBtnRow)}${_attr("title", `New ${agent} session`)}>`);
17915
- _set_serialize_reason({
17916
- 1: $sg__input_agents,
17917
- 2: $sg__input_agents
17918
- });
17818
+ _set_serialize_reason($sg__input_agents << 3 | $sg__input_agents << 5);
17919
17819
  const $childScope6 = _peek_scope_id();
17920
17820
  icon_agent_default({ agent });
17921
17821
  _html(`</button>${_el_resume($scope4_id, "a")}`);
@@ -17955,10 +17855,7 @@ _template("n", (input) => {
17955
17855
  _template("db", (input) => {
17956
17856
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
17957
17857
  const $scope0_id = _scope_id();
17958
- _set_serialize_reason({
17959
- 0: $sg__input_size__OR__input_class,
17960
- 1: $sg__input_size__OR__input_class
17961
- });
17858
+ _set_serialize_reason($sg__input_size__OR__input_class << 1 | $sg__input_size__OR__input_class << 3);
17962
17859
  const $childScope = _peek_scope_id();
17963
17860
  icon_base_default({
17964
17861
  d: "M15 4L8 20",
@@ -17970,10 +17867,7 @@ _template("db", (input) => {
17970
17867
  _template("kb", (input) => {
17971
17868
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
17972
17869
  const $scope0_id = _scope_id();
17973
- _set_serialize_reason({
17974
- 0: $sg__input_size__OR__input_class,
17975
- 1: $sg__input_size__OR__input_class
17976
- });
17870
+ _set_serialize_reason($sg__input_size__OR__input_class << 1 | $sg__input_size__OR__input_class << 3);
17977
17871
  const $childScope = _peek_scope_id();
17978
17872
  icon_base_default({
17979
17873
  d: "M7 12L17 12 M7 8L13 8 M3 20.2895V5C3 3.89543 3.89543 3 5 3H19C20.1046 3 21 3.89543 21 5V15C21 16.1046 20.1046 17 19 17H7.96125C7.35368 17 6.77906 17.2762 6.39951 17.7506L4.06852 20.6643C3.71421 21.1072 3 20.8567 3 20.2895Z",
@@ -17985,10 +17879,7 @@ _template("kb", (input) => {
17985
17879
  _template("S", (input) => {
17986
17880
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
17987
17881
  const $scope0_id = _scope_id();
17988
- _set_serialize_reason({
17989
- 0: $sg__input_size__OR__input_class,
17990
- 1: $sg__input_size__OR__input_class
17991
- });
17882
+ _set_serialize_reason($sg__input_size__OR__input_class << 1 | $sg__input_size__OR__input_class << 3);
17992
17883
  const $childScope = _peek_scope_id();
17993
17884
  icon_base_default({
17994
17885
  d: "M21 12L3 12M3 12L11.5 3.5M3 12L11.5 20.5",
@@ -18000,10 +17891,7 @@ _template("S", (input) => {
18000
17891
  _template("T", (input) => {
18001
17892
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
18002
17893
  const $scope0_id = _scope_id();
18003
- _set_serialize_reason({
18004
- 0: $sg__input_size__OR__input_class,
18005
- 1: $sg__input_size__OR__input_class
18006
- });
17894
+ _set_serialize_reason($sg__input_size__OR__input_class << 1 | $sg__input_size__OR__input_class << 3);
18007
17895
  const $childScope = _peek_scope_id();
18008
17896
  icon_base_default({
18009
17897
  d: "M3 12L21 12M21 12L12.5 3.5M21 12L12.5 20.5",
@@ -18015,10 +17903,7 @@ _template("T", (input) => {
18015
17903
  _template("fb", (input) => {
18016
17904
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
18017
17905
  const $scope0_id = _scope_id();
18018
- _set_serialize_reason({
18019
- 0: $sg__input_size__OR__input_class,
18020
- 1: $sg__input_size__OR__input_class
18021
- });
17906
+ _set_serialize_reason($sg__input_size__OR__input_class << 1 | $sg__input_size__OR__input_class << 3);
18022
17907
  const $childScope = _peek_scope_id();
18023
17908
  icon_base_default({
18024
17909
  d: "M19 6V11C19 12.1046 18.1046 13 17 13H5 M9 9L5 13L9 17",
@@ -18030,10 +17915,7 @@ _template("fb", (input) => {
18030
17915
  _template("vb", (input) => {
18031
17916
  const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
18032
17917
  const $scope0_id = _scope_id();
18033
- _set_serialize_reason({
18034
- 0: $sg__input_size__OR__input_class,
18035
- 1: $sg__input_size__OR__input_class
18036
- });
17918
+ _set_serialize_reason($sg__input_size__OR__input_class << 1 | $sg__input_size__OR__input_class << 3);
18037
17919
  const $childScope = _peek_scope_id();
18038
17920
  icon_base_default({
18039
17921
  d: "M4 12H16 M12 8L16 12L12 16 M20 7V17",
@@ -18328,7 +18210,7 @@ var app_shell_default = _template("d", (input) => {
18328
18210
  if (!selectedId && showSetup) {
18329
18211
  const $scope3_id = _scope_id();
18330
18212
  _html(`<div${_attr_class("_j")}>`);
18331
- _set_serialize_reason(466);
18213
+ _set_serialize_reason(43138);
18332
18214
  const $childScope = _peek_scope_id();
18333
18215
  settings_page_default({
18334
18216
  preferred: settings ? settings.preferredAgent : "shell",
@@ -18385,7 +18267,33 @@ var app_shell_default = _template("d", (input) => {
18385
18267
  ["_g"]: !selectedId && showSetup,
18386
18268
  ["_e"]: navView === "nav"
18387
18269
  }])}>`);
18388
- _set_serialize_reason(67108862);
18270
+ _set_serialize_reason({
18271
+ 0: 1,
18272
+ 1: 1,
18273
+ 2: 1,
18274
+ 3: 1,
18275
+ 4: 1,
18276
+ 5: 1,
18277
+ 6: 1,
18278
+ 7: 1,
18279
+ 8: 1,
18280
+ 9: 1,
18281
+ 10: 1,
18282
+ 11: 1,
18283
+ 12: 1,
18284
+ 13: 1,
18285
+ 14: 1,
18286
+ 15: 1,
18287
+ 16: 1,
18288
+ 17: 1,
18289
+ 18: 1,
18290
+ 19: 1,
18291
+ 20: 1,
18292
+ 21: 1,
18293
+ 22: 1,
18294
+ 23: 1,
18295
+ 24: 1
18296
+ });
18389
18297
  const $childScope2 = _peek_scope_id();
18390
18298
  side_nav_default({
18391
18299
  workspace: navWs,
@@ -18447,7 +18355,7 @@ var app_shell_default = _template("d", (input) => {
18447
18355
  if (ws || !id) {
18448
18356
  const $scope2_id = _scope_id();
18449
18357
  _html(`<div${_attr_class("_i")}${_attr("inert", !current)}>`);
18450
- _set_serialize_reason(24318);
18358
+ _set_serialize_reason(11152042);
18451
18359
  const $childScope3 = _peek_scope_id();
18452
18360
  work_view_default({
18453
18361
  workspace: ws,
@@ -18541,7 +18449,27 @@ var app_shell_default = _template("d", (input) => {
18541
18449
  });
18542
18450
  }, (id) => id ?? "", $scope0_id, "g", 1, 1, 1, "</div>");
18543
18451
  _html(`</div>${_el_resume($scope0_id, "e")}`);
18544
- _set_serialize_reason(3801086);
18452
+ _set_serialize_reason({
18453
+ 0: 1,
18454
+ 1: 1,
18455
+ 2: 1,
18456
+ 3: 1,
18457
+ 4: 1,
18458
+ 5: 1,
18459
+ 6: 1,
18460
+ 7: 1,
18461
+ 8: 1,
18462
+ 9: 1,
18463
+ 10: 1,
18464
+ 11: 1,
18465
+ 12: 1,
18466
+ 13: 1,
18467
+ 14: 1,
18468
+ 15: 1,
18469
+ 18: 1,
18470
+ 19: 1,
18471
+ 20: 1
18472
+ });
18545
18473
  const $childScope4 = _peek_scope_id();
18546
18474
  key_bar_default({
18547
18475
  workspaceId: navWs?.id ?? null,
@@ -18658,7 +18586,7 @@ var app_page_default = _template("c", (input) => {
18658
18586
  usage: usage ?? null
18659
18587
  };
18660
18588
  _html(`<main${_attr_class("_c")}>`);
18661
- _set_serialize_reason($sg__input_initial);
18589
+ _set_serialize_reason($sg__input_initial << 1);
18662
18590
  const $childScope = _peek_scope_id();
18663
18591
  app_shell_default({
18664
18592
  boot: {
@@ -21324,6 +21252,18 @@ async function collectFiles(dir, oldRev, newRev, scope) {
21324
21252
  });
21325
21253
  return collectPatches(dir, revs, entries, stats, untrackedPaths, dirtyPaths);
21326
21254
  }
21255
+ /** The user's gitconfig reaches these diffs too, and some settings change
21256
+ * the patch text itself: `diff.noprefix` / `diff.mnemonicPrefix` swap the
21257
+ * `a/`·`b/` the header is read by, a quoted non-ASCII path no longer
21258
+ * matches its listing, and `diff.suppressBlankEmpty` writes blank context
21259
+ * lines pierre misreads. So every patch-producing diff pins them. */
21260
+ var PATCH_CONFIG = [
21261
+ "-c",
21262
+ "core.quotePath=false",
21263
+ "-c",
21264
+ "diff.suppressBlankEmpty=false"
21265
+ ];
21266
+ var PATCH_PREFIXES = ["--src-prefix=a/", "--dst-prefix=b/"];
21327
21267
  /** One `git diff` for the tracked entries, split per file, plus a
21328
21268
  * `--no-index` diff against /dev/null for each untracked file (git's range
21329
21269
  * diff cannot see those). Binary files (numstat `-`) and patches over
@@ -21332,18 +21272,22 @@ async function collectPatches(dir, revs, entries, stats, untrackedPaths, dirtyPa
21332
21272
  const untracked = new Set(untrackedPaths);
21333
21273
  const tracked = entries.filter((e) => !untracked.has(e.path)).map((e) => e.path);
21334
21274
  const [full, extra] = await Promise.all([tracked.length ? gitStdin([
21275
+ ...PATCH_CONFIG,
21335
21276
  "diff",
21336
21277
  "--no-color",
21337
21278
  "--no-ext-diff",
21338
21279
  "--no-renames",
21339
21280
  "--unified=3",
21281
+ ...PATCH_PREFIXES,
21340
21282
  ...revs,
21341
21283
  "--",
21342
21284
  ...tracked
21343
21285
  ], dir, "").catch(() => "") : Promise.resolve(""), mapLimit(untrackedPaths, FILE_READ_CONCURRENCY, (p) => gitStdin([
21286
+ ...PATCH_CONFIG,
21344
21287
  "diff",
21345
21288
  "--no-color",
21346
21289
  "--no-ext-diff",
21290
+ ...PATCH_PREFIXES,
21347
21291
  "--no-index",
21348
21292
  "--",
21349
21293
  "/dev/null",
@@ -21394,19 +21338,63 @@ async function worktreeStamp(dir, filePath) {
21394
21338
  return "";
21395
21339
  }
21396
21340
  }
21397
- /** Per-file chunks of a multi-file `git diff`, keyed by the new path
21398
- * (`b/<path>` in the header; the old path for a deletion). */
21341
+ /** Per-file chunks of a multi-file `git diff`, keyed by path. */
21399
21342
  function splitPatch(full) {
21400
21343
  const map = /* @__PURE__ */ new Map();
21401
21344
  if (!full) return map;
21402
- const parts = full.split(/^(?=diff --git )/m);
21403
- for (const part of parts) {
21404
- const m = /^diff --git a\/(.*?) b\/(.*)$/m.exec(part);
21405
- if (!m) continue;
21406
- map.set(m[2], part);
21345
+ for (const part of full.split(/^(?=diff --git )/m)) {
21346
+ const eol = part.indexOf("\n");
21347
+ const path = headerPath(part.slice(11, eol === -1 ? void 0 : eol));
21348
+ if (path != null) map.set(path, part);
21407
21349
  }
21408
21350
  return map;
21409
21351
  }
21352
+ /** The path a `diff --git` header names. With `--no-renames` both sides
21353
+ * are the same path, so `a/P b/P` fixes its length, where a pattern is
21354
+ * fooled by a path holding " b/". A path git quotes even with
21355
+ * `core.quotePath=false` (a control character, `"`, `\`) comes C-quoted. */
21356
+ function headerPath(head) {
21357
+ if (head.startsWith("\"")) {
21358
+ const a = unquoteC(head);
21359
+ return a?.startsWith("a/") ? a.slice(2) : null;
21360
+ }
21361
+ const len = (head.length - 5) / 2;
21362
+ if (!Number.isInteger(len) || len < 1) return null;
21363
+ if (!head.startsWith("a/") || head.slice(len + 2, len + 5) !== " b/") return null;
21364
+ return head.slice(2, len + 2);
21365
+ }
21366
+ var C_ESCAPES = {
21367
+ a: 7,
21368
+ b: 8,
21369
+ f: 12,
21370
+ n: 10,
21371
+ r: 13,
21372
+ t: 9,
21373
+ v: 11,
21374
+ "\"": 34,
21375
+ "\\": 92
21376
+ };
21377
+ /** The C-quoted string git opens `s` with: escapes and octal bytes, read
21378
+ * back as UTF-8. */
21379
+ function unquoteC(s) {
21380
+ const bytes = [];
21381
+ const chars = [...s];
21382
+ for (let i = 1; i < chars.length; i++) {
21383
+ const c = chars[i];
21384
+ if (c === "\"") return Buffer.from(bytes).toString("utf8");
21385
+ if (c !== "\\") {
21386
+ bytes.push(...Buffer.from(c, "utf8"));
21387
+ continue;
21388
+ }
21389
+ const e = chars[++i] ?? "";
21390
+ if (e in C_ESCAPES) bytes.push(C_ESCAPES[e]);
21391
+ else if (/^[0-7]$/.test(e)) {
21392
+ bytes.push(parseInt(chars.slice(i, i + 3).join(""), 8));
21393
+ i += 2;
21394
+ } else return null;
21395
+ }
21396
+ return null;
21397
+ }
21410
21398
  /** Full contents of one side of a file for the client's context
21411
21399
  * expansion: a blob at `rev`, or the checkout when `rev` is `worktree`.
21412
21400
  * Null for a side that does not exist (an add's old, a delete's new). */
@@ -27297,4 +27285,4 @@ server.listen(port, () => {
27297
27285
  //#endregion
27298
27286
  export {};
27299
27287
 
27300
- ;var __MARKO_MANIFEST__={"AA0T2xt":{"block":[2,"stylesheet#/assets/icon-arrow-down-o2Q8gX32.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-o2Q8gX32.css\"",">",2,"stylesheet#/assets/app-page-BEEZP5zo.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BEEZP5zo.css\"",">"],"defer":[2,"/assets/settings-C7VSRXTL.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-C7VSRXTL.js\"","></script>",2,"modulepreload#/assets/_DM-ium3T.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DM-ium3T.js\"",">",2,"modulepreload#/assets/_CVgDVVCO.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CVgDVVCO.js\"",">",2,"modulepreload#/assets/_Xe_buWru.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Xe_buWru.js\"",">"]},"ZLT8joi":{"block":[2,"stylesheet#/assets/icon-arrow-down-o2Q8gX32.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-o2Q8gX32.css\"",">",2,"stylesheet#/assets/app-page-BEEZP5zo.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BEEZP5zo.css\"",">"],"defer":[2,"/assets/new-C7VSRXTL.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-C7VSRXTL.js\"","></script>",2,"modulepreload#/assets/_DM-ium3T.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DM-ium3T.js\"",">",2,"modulepreload#/assets/_CVgDVVCO.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CVgDVVCO.js\"",">",2,"modulepreload#/assets/_Xe_buWru.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Xe_buWru.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/icon-arrow-down-o2Q8gX32.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-o2Q8gX32.css\"",">",2,"stylesheet#/assets/app-page-BEEZP5zo.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BEEZP5zo.css\"",">"],"defer":[2,"/assets/w._-C7VSRXTL.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-C7VSRXTL.js\"","></script>",2,"modulepreload#/assets/_DM-ium3T.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DM-ium3T.js\"",">",2,"modulepreload#/assets/_CVgDVVCO.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CVgDVVCO.js\"",">",2,"modulepreload#/assets/_Xe_buWru.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Xe_buWru.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/icon-arrow-down-o2Q8gX32.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-o2Q8gX32.css\"",">",2,"stylesheet#/assets/app-page-BEEZP5zo.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BEEZP5zo.css\"",">"],"defer":[2,"/assets/w._-gvNRHjn_.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-gvNRHjn_.js\"","></script>",2,"modulepreload#/assets/_DM-ium3T.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DM-ium3T.js\"",">",2,"modulepreload#/assets/_CVgDVVCO.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CVgDVVCO.js\"",">",2,"modulepreload#/assets/_Xe_buWru.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Xe_buWru.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/icon-arrow-down-o2Q8gX32.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-o2Q8gX32.css\"",">",2,"stylesheet#/assets/app-page-BEEZP5zo.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BEEZP5zo.css\"",">"],"defer":[2,"/assets/w-C7VSRXTL.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-C7VSRXTL.js\"","></script>",2,"modulepreload#/assets/_DM-ium3T.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DM-ium3T.js\"",">",2,"modulepreload#/assets/_CVgDVVCO.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CVgDVVCO.js\"",">",2,"modulepreload#/assets/_Xe_buWru.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Xe_buWru.js\"",">"]},"_A":{"block":[2,"stylesheet#/assets/review-view-CBpY-Hxd.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/review-view-CBpY-Hxd.css\"",">",2,"stylesheet#/assets/icon-arrow-down-o2Q8gX32.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/icon-arrow-down-o2Q8gX32.css\"",">"],"defer":[2,"/assets/review-view-DZAfy74d.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/review-view-DZAfy74d.js\"","></script>",2,"modulepreload#/assets/_DM-ium3T.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DM-ium3T.js\"",">"]}};
27288
+ ;var __MARKO_MANIFEST__={"AA0T2xt":{"block":[2,"stylesheet#/assets/icon-arrow-down-DI50VkiK.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-DI50VkiK.css\"",">",2,"stylesheet#/assets/app-page-Cha1c_67.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-Cha1c_67.css\"",">"],"defer":[2,"/assets/settings-C4cICu_O.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-C4cICu_O.js\"","></script>",2,"modulepreload#/assets/_BseiPxat.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BseiPxat.js\"",">",2,"modulepreload#/assets/_m6146ncV.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_m6146ncV.js\"",">",2,"modulepreload#/assets/_ByzPjmsw.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_ByzPjmsw.js\"",">"]},"ZLT8joi":{"block":[2,"stylesheet#/assets/icon-arrow-down-DI50VkiK.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-DI50VkiK.css\"",">",2,"stylesheet#/assets/app-page-Cha1c_67.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-Cha1c_67.css\"",">"],"defer":[2,"/assets/new-C4cICu_O.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-C4cICu_O.js\"","></script>",2,"modulepreload#/assets/_BseiPxat.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BseiPxat.js\"",">",2,"modulepreload#/assets/_m6146ncV.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_m6146ncV.js\"",">",2,"modulepreload#/assets/_ByzPjmsw.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_ByzPjmsw.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/icon-arrow-down-DI50VkiK.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-DI50VkiK.css\"",">",2,"stylesheet#/assets/app-page-Cha1c_67.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-Cha1c_67.css\"",">"],"defer":[2,"/assets/w-C4cICu_O.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-C4cICu_O.js\"","></script>",2,"modulepreload#/assets/_BseiPxat.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BseiPxat.js\"",">",2,"modulepreload#/assets/_m6146ncV.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_m6146ncV.js\"",">",2,"modulepreload#/assets/_ByzPjmsw.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_ByzPjmsw.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/icon-arrow-down-DI50VkiK.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-DI50VkiK.css\"",">",2,"stylesheet#/assets/app-page-Cha1c_67.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-Cha1c_67.css\"",">"],"defer":[2,"/assets/w._-C4cICu_O.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-C4cICu_O.js\"","></script>",2,"modulepreload#/assets/_BseiPxat.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BseiPxat.js\"",">",2,"modulepreload#/assets/_m6146ncV.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_m6146ncV.js\"",">",2,"modulepreload#/assets/_ByzPjmsw.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_ByzPjmsw.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/icon-arrow-down-DI50VkiK.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-DI50VkiK.css\"",">",2,"stylesheet#/assets/app-page-Cha1c_67.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-Cha1c_67.css\"",">"],"defer":[2,"/assets/w._-B9vMdqnq.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-B9vMdqnq.js\"","></script>",2,"modulepreload#/assets/_BseiPxat.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BseiPxat.js\"",">",2,"modulepreload#/assets/_m6146ncV.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_m6146ncV.js\"",">",2,"modulepreload#/assets/_ByzPjmsw.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_ByzPjmsw.js\"",">"]},"_A":{"block":[2,"stylesheet#/assets/review-view-CylGxAST.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/review-view-CylGxAST.css\"",">",2,"stylesheet#/assets/icon-arrow-down-DI50VkiK.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/icon-arrow-down-DI50VkiK.css\"",">"],"defer":[2,"/assets/review-view-ll27rTov.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/review-view-ll27rTov.js\"","></script>",2,"modulepreload#/assets/_BseiPxat.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BseiPxat.js\"",">"]}};