@intent-hq/web 2.393.1 → 2.393.2

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 (147) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{BZcIlO-m.js → 0Lodvm7U.js} +1 -1
  3. package/web/app/immutable/chunks/{PBRs5SJ0.js → 1hUesUcr.js} +1 -1
  4. package/web/app/immutable/chunks/{BX6cGa3P.js → 1p87nGiH.js} +1 -1
  5. package/web/app/immutable/chunks/{CxYEPO2e.js → 2XTpu-pp.js} +1 -1
  6. package/web/app/immutable/chunks/{ye-GTjqo.js → 3EQPKXoI.js} +1 -1
  7. package/web/app/immutable/chunks/{Do3KjvK9.js → 5NKE7nx3.js} +1 -1
  8. package/web/app/immutable/chunks/{BYFF4vXy.js → 5Nvv2Lts.js} +1 -1
  9. package/web/app/immutable/chunks/{BU9PIki-.js → 5SDFNZiZ.js} +1 -1
  10. package/web/app/immutable/chunks/{DgmcmslQ.js → 9N5egcma.js} +1 -1
  11. package/web/app/immutable/chunks/{PIyjm_eA.js → AX1GDLPb.js} +1 -1
  12. package/web/app/immutable/chunks/{kc2Bsov-.js → B1P2_A-D.js} +1 -1
  13. package/web/app/immutable/chunks/{03rp11-0.js → B25DCKCp.js} +1 -1
  14. package/web/app/immutable/chunks/{BoAOWVTV.js → B3_pG997.js} +1 -1
  15. package/web/app/immutable/chunks/{CD6SknDy.js → B8sPKQVl.js} +1 -1
  16. package/web/app/immutable/chunks/{_fNgz67j.js → B92LVVZl.js} +1 -1
  17. package/web/app/immutable/chunks/{BF2WXZJV.js → B941PH3R.js} +1 -1
  18. package/web/app/immutable/chunks/{CGnjVQAU.js → BET9_6zk.js} +2 -2
  19. package/web/app/immutable/chunks/{C9DL5612.js → BI4cZZX-.js} +1 -1
  20. package/web/app/immutable/chunks/{D2Y-4Hk1.js → BIDLT3JB.js} +1 -1
  21. package/web/app/immutable/chunks/{DeZREu1L.js → BOE0lXBq.js} +1 -1
  22. package/web/app/immutable/chunks/{DOrnNMXq.js → BOOf6vKl.js} +1 -1
  23. package/web/app/immutable/chunks/{Bz-k4xjY.js → BPphEAV1.js} +1 -1
  24. package/web/app/immutable/chunks/{BQr_CU_m.js → BQ9Nf0IV.js} +1 -1
  25. package/web/app/immutable/chunks/{DpmfoOfT.js → BSMKf5nA.js} +1 -1
  26. package/web/app/immutable/chunks/{DMZaN70J.js → BSVwkJI3.js} +1 -1
  27. package/web/app/immutable/chunks/{8XCqMH_A.js → BTQZ2eSY.js} +1 -1
  28. package/web/app/immutable/chunks/{By2IWKC2.js → BV9rfWFj.js} +1 -1
  29. package/web/app/immutable/chunks/{BbwMNYGv.js → BWH6q8SG.js} +3 -3
  30. package/web/app/immutable/chunks/{CC5YTA05.js → BXnNAEju.js} +1 -1
  31. package/web/app/immutable/chunks/{CKuv24OA.js → BZpl1Y6O.js} +1 -1
  32. package/web/app/immutable/chunks/{B08hyH_t.js → BcKhVYNw.js} +1 -1
  33. package/web/app/immutable/chunks/{DZYGgiAb.js → Bf8oyM9s.js} +1 -1
  34. package/web/app/immutable/chunks/{C0yEXWZT.js → BhsjECB4.js} +1 -1
  35. package/web/app/immutable/chunks/{2E4Z_ZFq.js → BmkQwoP6.js} +1 -1
  36. package/web/app/immutable/chunks/{B4H39zb5.js → Bo0ZNhTd.js} +1 -1
  37. package/web/app/immutable/chunks/{DhA_Bjtj.js → BvpvfHPp.js} +1 -1
  38. package/web/app/immutable/chunks/{CNZpDeJb.js → ByXyOGzc.js} +1 -1
  39. package/web/app/immutable/chunks/{DJPdI2sS.js → C-vJzBpf.js} +7 -7
  40. package/web/app/immutable/chunks/{DJWOAwhC.js → C0ZUrdOo.js} +1 -1
  41. package/web/app/immutable/chunks/{ChnCUogL.js → C3A6Etjq.js} +1 -1
  42. package/web/app/immutable/chunks/{BvADYKOZ.js → C3ldfPpK.js} +2 -2
  43. package/web/app/immutable/chunks/{Baa59Un_.js → C45mDBrU.js} +1 -1
  44. package/web/app/immutable/chunks/{ClK_UzEg.js → C4qoqU0x.js} +1 -1
  45. package/web/app/immutable/chunks/{DdNl3Rbm.js → CBdW99Fh.js} +3 -3
  46. package/web/app/immutable/chunks/{BHwv4Hfl.js → CCi081IH.js} +1 -1
  47. package/web/app/immutable/chunks/{BfFqg0tr.js → CEH2NAZ8.js} +1 -1
  48. package/web/app/immutable/chunks/{BBA4NncC.js → CFa8sUgf.js} +1 -1
  49. package/web/app/immutable/chunks/{K6U2gbY4.js → CFyhHTwc.js} +1 -1
  50. package/web/app/immutable/chunks/{CMQzFQs4.js → CG6G-VtV.js} +1 -1
  51. package/web/app/immutable/chunks/{B8COfuyw.js → CGYM6R_d.js} +1 -1
  52. package/web/app/immutable/chunks/{BGntbMwK.js → CH1Bpd5B.js} +1 -1
  53. package/web/app/immutable/chunks/{CBDRhyjO.js → CJUKJKPV.js} +1 -1
  54. package/web/app/immutable/chunks/{QiDikPQa.js → CJtBv95U.js} +1 -1
  55. package/web/app/immutable/chunks/{CkT6bu2G.js → CL5OTeL_.js} +1 -1
  56. package/web/app/immutable/chunks/{C0tj6dfD.js → CM3rEc3H.js} +1 -1
  57. package/web/app/immutable/chunks/{Bl5dZSyT.js → CNm0He-Z.js} +2 -2
  58. package/web/app/immutable/chunks/{CNzTIPQp.js → CPCJiIPK.js} +1 -1
  59. package/web/app/immutable/chunks/{BGLaHsDV.js → CPTHRAYg.js} +1 -1
  60. package/web/app/immutable/chunks/{B5JMHmH2.js → CPy0rCmw.js} +4 -4
  61. package/web/app/immutable/chunks/{BX6KUKcp.js → CR6bxzBv.js} +1 -1
  62. package/web/app/immutable/chunks/{DU4u3RKB.js → CVgSN9ZH.js} +2 -2
  63. package/web/app/immutable/chunks/{BSCmeu0N.js → CVhLsbHu.js} +1 -1
  64. package/web/app/immutable/chunks/{DN6txiJA.js → C_rsaO5o.js} +1 -1
  65. package/web/app/immutable/chunks/{BTVapThA.js → CbGGQnE9.js} +1 -1
  66. package/web/app/immutable/chunks/{CiezGigq.js → CdXM6BQL.js} +1 -1
  67. package/web/app/immutable/chunks/{Dp6gutm7.js → Cdwy3-nO.js} +4 -4
  68. package/web/app/immutable/chunks/{edvxHiJh.js → Ce5Cs6SN.js} +3 -3
  69. package/web/app/immutable/chunks/{DRVUI7n3.js → Cj36CQXD.js} +1 -1
  70. package/web/app/immutable/chunks/{CRNqz-CU.js → Cj92J6fP.js} +3 -3
  71. package/web/app/immutable/chunks/{BSglkeCR.js → CnnBx7yl.js} +1 -1
  72. package/web/app/immutable/chunks/{P235vPf0.js → Cnvb2S0V.js} +1 -1
  73. package/web/app/immutable/chunks/{Bv6jwx4N.js → Cohy0Z-x.js} +1 -1
  74. package/web/app/immutable/chunks/{CS_KcnQC.js → CpwZYDHS.js} +1 -1
  75. package/web/app/immutable/chunks/{6c2NdJk5.js → CqnoveI8.js} +1 -1
  76. package/web/app/immutable/chunks/{0fp6eBJ2.js → CtemMU54.js} +2 -2
  77. package/web/app/immutable/chunks/{D-IVWxYX.js → CuvONknh.js} +1 -1
  78. package/web/app/immutable/chunks/{CMHMpoVu.js → Cym4zMqt.js} +3 -3
  79. package/web/app/immutable/chunks/{CKGl1DmB.js → D1CYQTLS.js} +1 -1
  80. package/web/app/immutable/chunks/{2z2xJ2W_.js → D7rcwg4U.js} +2 -2
  81. package/web/app/immutable/chunks/{E6pB77s3.js → D7tp4A5_.js} +1 -1
  82. package/web/app/immutable/chunks/{BhzVqZCt.js → D8dc4uEZ.js} +1 -1
  83. package/web/app/immutable/chunks/{Bw9UsBZT.js → D9_9Xrbm.js} +1 -1
  84. package/web/app/immutable/chunks/{DEVOS0tD.js → DLTvtu0r.js} +1 -1
  85. package/web/app/immutable/chunks/{Dl68BOSP.js → DOjRTGtD.js} +1 -1
  86. package/web/app/immutable/chunks/{B2p16ZcG.js → DQMGgT_X.js} +1 -1
  87. package/web/app/immutable/chunks/{X-RVyfO0.js → DR2A4Ob1.js} +1 -1
  88. package/web/app/immutable/chunks/{BGBZTOoV.js → DRNQWF5u.js} +2 -2
  89. package/web/app/immutable/chunks/{Jpb8pOEi.js → DRgsIn-1.js} +1 -1
  90. package/web/app/immutable/chunks/{BDDEENB9.js → DW3UcPIr.js} +1 -1
  91. package/web/app/immutable/chunks/{C4P8DeLE.js → DY9oFeIm.js} +1 -1
  92. package/web/app/immutable/chunks/{BGZDnsPV.js → DYA10vhI.js} +2 -2
  93. package/web/app/immutable/chunks/{BZDblkH_.js → DYo8C3ZI.js} +1 -1
  94. package/web/app/immutable/chunks/{Cwn1Htr4.js → Da3dWtR7.js} +1 -1
  95. package/web/app/immutable/chunks/{D5vlW2SV.js → Db6ExzGF.js} +1 -1
  96. package/web/app/immutable/chunks/{C2BkU_2B.js → DcU97JoW.js} +1 -1
  97. package/web/app/immutable/chunks/{IuSiCp89.js → Dd4ehheI.js} +1 -1
  98. package/web/app/immutable/chunks/{xXSv9C4P.js → DeeBlDPG.js} +1 -1
  99. package/web/app/immutable/chunks/{CFsh8rrs.js → DfrPaMm3.js} +2 -2
  100. package/web/app/immutable/chunks/{D1rlIs5V.js → DgClg_4p.js} +1 -1
  101. package/web/app/immutable/chunks/{DBMzxcUI.js → DiaqLwTf.js} +1 -1
  102. package/web/app/immutable/chunks/{DjepxDVb.js → Dm529rkq.js} +4 -4
  103. package/web/app/immutable/chunks/{CLXQSor9.js → DmmU2UYb.js} +1 -1
  104. package/web/app/immutable/chunks/{BMejr7u6.js → DqVocOV1.js} +1 -1
  105. package/web/app/immutable/chunks/{C12O35p-.js → DsMWDyON.js} +1 -1
  106. package/web/app/immutable/chunks/{CHRXhmu4.js → DtyYBAfX.js} +1 -1
  107. package/web/app/immutable/chunks/{CfAvt2Zs.js → DuEeb8Mn.js} +1 -1
  108. package/web/app/immutable/chunks/{D8BXRngi.js → Dv4Vym3G.js} +1 -1
  109. package/web/app/immutable/chunks/{DUINlo9r.js → Dv9iFv_x.js} +1 -1
  110. package/web/app/immutable/chunks/{BUHPTzFz.js → G0vgahzI.js} +1 -1
  111. package/web/app/immutable/chunks/{Bx5_x_xs.js → M7sb2vsG.js} +1 -1
  112. package/web/app/immutable/chunks/{DAvgrUpQ.js → MdOlpTpG.js} +3 -3
  113. package/web/app/immutable/chunks/{Dq1yTcBb.js → MnHzHyX4.js} +1 -1
  114. package/web/app/immutable/chunks/{BiH1hXHp.js → OSt17igW.js} +1 -1
  115. package/web/app/immutable/chunks/{BJTRhgs4.js → OYbzRQNh.js} +1 -1
  116. package/web/app/immutable/chunks/{CU4LG5o2.js → PbtuJhxQ.js} +2 -2
  117. package/web/app/immutable/chunks/{BVY7HYcm.js → Qkw5r8H6.js} +1 -1
  118. package/web/app/immutable/chunks/{7qqqYD-I.js → RRXFJL92.js} +1 -1
  119. package/web/app/immutable/chunks/{BdvX8QCl.js → TzUDDwaI.js} +1 -1
  120. package/web/app/immutable/chunks/{Bb15Q1ED.js → WrCMkepk.js} +2 -2
  121. package/web/app/immutable/chunks/{6gbXuD_9.js → XXp2dlP1.js} +1 -1
  122. package/web/app/immutable/chunks/{C3PqMGoR.js → _bESm04T.js} +1 -1
  123. package/web/app/immutable/chunks/{BGzLfgjy.js → bNKugVDK.js} +1 -1
  124. package/web/app/immutable/chunks/{DOYZ_D5o.js → ch6_GOZD.js} +1 -1
  125. package/web/app/immutable/chunks/{DyFjB_S6.js → czWUw-OT.js} +1 -1
  126. package/web/app/immutable/chunks/{D9lcY5kd.js → dYI-d1qe.js} +1 -1
  127. package/web/app/immutable/chunks/{Dpt3eqkJ.js → grZaDfdl.js} +1 -1
  128. package/web/app/immutable/chunks/{CMtZLqiA.js → vXXIq-lQ.js} +1 -1
  129. package/web/app/immutable/entry/{app.BdS7izm7.js → app.O58wkIN2.js} +2 -2
  130. package/web/app/immutable/entry/start.Qg9AYZsG.js +1 -0
  131. package/web/app/immutable/nodes/{0.BISzmlhW.js → 0.TrE3RPnJ.js} +1 -1
  132. package/web/app/immutable/nodes/{1.Bb1ZAxDG.js → 1.BIksphyt.js} +1 -1
  133. package/web/app/immutable/nodes/{10.BgrCgg4r.js → 10.D2OvSkOf.js} +1 -1
  134. package/web/app/immutable/nodes/{11.BY0d-QhF.js → 11.fZEErUb-.js} +1 -1
  135. package/web/app/immutable/nodes/{15.DYwYAZ5-.js → 15.m6bg6xQe.js} +1 -1
  136. package/web/app/immutable/nodes/{19.Dlni-a6M.js → 19.CjtjBk01.js} +2 -2
  137. package/web/app/immutable/nodes/{2.CG_3VZwe.js → 2.DxHlcx2L.js} +1 -1
  138. package/web/app/immutable/nodes/{3.Dc7zxR5A.js → 3.BDHxIm-0.js} +1 -1
  139. package/web/app/immutable/nodes/{4.BK4Q0Tjj.js → 4.BNQKhByt.js} +1 -1
  140. package/web/app/immutable/nodes/{5.uyWg8rJg.js → 5.gaULhB1l.js} +1 -1
  141. package/web/app/immutable/nodes/{6.CqIhg880.js → 6.ZtFGqTn7.js} +1 -1
  142. package/web/app/immutable/nodes/{7.DNnSBe4i.js → 7.CTMwqxha.js} +1 -1
  143. package/web/app/immutable/nodes/{8.BGV6mK09.js → 8.DgeODsFV.js} +1 -1
  144. package/web/app/immutable/nodes/{9.BKtZcPwn.js → 9.BPdyHPQC.js} +2 -2
  145. package/web/app/version.json +1 -1
  146. package/web/index.html +9 -9
  147. package/web/app/immutable/entry/start.CnycbH9m.js +0 -1
@@ -1,4 +1,4 @@
1
- import{g as fe}from"./DgmcmslQ.js";import{b as o,ay as te,X as U,aX as ye,ad as be,ah as me,aL as ke,b3 as Ee,O as K,aV as F,ax as _e,J as Se,an as Ne,au as ce,H as le}from"./Dp6gutm7.js";var $=(function(){var e=o(function(O,s,n,r){for(n=n||{},r=O.length;r--;n[O[r]]=s);return n},"o"),h=[1,4],p=[1,13],i=[1,12],d=[1,15],k=[1,16],m=[1,20],l=[1,19],D=[6,7,8],I=[1,26],g=[1,24],w=[1,25],E=[6,7,11],G=[1,31],N=[6,7,11,24],V=[1,6,13,16,17,20,23],f=[1,35],A=[1,36],L=[1,6,7,11,13,16,17,20,23],H=[1,38],T={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:o(function(s,n,r,a,u,t,M){var c=t.length-1;switch(u){case 6:case 7:return a;case 8:a.getLogger().trace("Stop NL ");break;case 9:a.getLogger().trace("Stop EOF ");break;case 11:a.getLogger().trace("Stop NL2 ");break;case 12:a.getLogger().trace("Stop EOF2 ");break;case 15:a.getLogger().info("Node: ",t[c-1].id),a.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:a.getLogger().info("Node: ",t[c].id),a.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:a.getLogger().trace("Icon: ",t[c]),a.decorateNode({icon:t[c]});break;case 18:case 23:a.decorateNode({class:t[c]});break;case 19:a.getLogger().trace("SPACELIST");break;case 20:a.getLogger().trace("Node: ",t[c-1].id),a.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:a.getLogger().trace("Node: ",t[c].id),a.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:a.decorateNode({icon:t[c]});break;case 27:a.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:a.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:p,7:[1,10],9:9,12:11,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:p,9:22,12:11,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:I,7:g,10:23,11:w},e(E,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:m,23:l}),e(E,[2,19]),e(E,[2,21],{15:30,24:G}),e(E,[2,22]),e(E,[2,23]),e(N,[2,25]),e(N,[2,26]),e(N,[2,28],{20:[1,32]}),{21:[1,33]},{6:I,7:g,10:34,11:w},{1:[2,7],6:p,12:21,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(V,[2,14],{7:f,11:A}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(E,[2,16],{15:37,24:G}),e(E,[2,17]),e(E,[2,18]),e(E,[2,20],{24:H}),e(N,[2,31]),{21:[1,39]},{22:[1,40]},e(V,[2,13],{7:f,11:A}),e(L,[2,11]),e(L,[2,12]),e(E,[2,15],{24:H}),e(N,[2,30]),{22:[1,41]},e(N,[2,27]),e(N,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(s,n){if(n.recoverable)this.trace(s);else{var r=new Error(s);throw r.hash=n,r}},"parseError"),parse:o(function(s){var n=this,r=[0],a=[],u=[null],t=[],M=this.table,c="",W=0,ie=0,ue=2,re=1,ge=t.slice.call(arguments,1),b=Object.create(this.lexer),R={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(R.yy[J]=this.yy[J]);b.setInput(s,R.yy),R.yy.lexer=b,R.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var q=b.yylloc;t.push(q);var de=b.options&&b.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){r.length=r.length-2*S,u.length=u.length-S,t.length=t.length-S}o(pe,"popStack");function ae(){var S;return S=a.pop()||b.lex()||re,typeof S!="number"&&(S instanceof Array&&(a=S,S=a.pop()),S=n.symbols_[S]||S),S}o(ae,"lex");for(var _,P,x,Q,j={},z,C,oe,X;;){if(P=r[r.length-1],this.defaultActions[P]?x=this.defaultActions[P]:((_===null||typeof _>"u")&&(_=ae()),x=M[P]&&M[P][_]),typeof x>"u"||!x.length||!x[0]){var Z="";X=[];for(z in M[P])this.terminals_[z]&&z>ue&&X.push("'"+this.terminals_[z]+"'");b.showPosition?Z="Parse error on line "+(W+1)+`:
1
+ import{g as fe}from"./9N5egcma.js";import{b as o,ay as te,X as U,aX as ye,ad as be,ah as me,aL as ke,b3 as Ee,O as K,aV as F,ax as _e,J as Se,an as Ne,au as ce,H as le}from"./Cdwy3-nO.js";var $=(function(){var e=o(function(O,s,n,r){for(n=n||{},r=O.length;r--;n[O[r]]=s);return n},"o"),h=[1,4],p=[1,13],i=[1,12],d=[1,15],k=[1,16],m=[1,20],l=[1,19],D=[6,7,8],I=[1,26],g=[1,24],w=[1,25],E=[6,7,11],G=[1,31],N=[6,7,11,24],V=[1,6,13,16,17,20,23],f=[1,35],A=[1,36],L=[1,6,7,11,13,16,17,20,23],H=[1,38],T={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:o(function(s,n,r,a,u,t,M){var c=t.length-1;switch(u){case 6:case 7:return a;case 8:a.getLogger().trace("Stop NL ");break;case 9:a.getLogger().trace("Stop EOF ");break;case 11:a.getLogger().trace("Stop NL2 ");break;case 12:a.getLogger().trace("Stop EOF2 ");break;case 15:a.getLogger().info("Node: ",t[c-1].id),a.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:a.getLogger().info("Node: ",t[c].id),a.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:a.getLogger().trace("Icon: ",t[c]),a.decorateNode({icon:t[c]});break;case 18:case 23:a.decorateNode({class:t[c]});break;case 19:a.getLogger().trace("SPACELIST");break;case 20:a.getLogger().trace("Node: ",t[c-1].id),a.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:a.getLogger().trace("Node: ",t[c].id),a.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:a.decorateNode({icon:t[c]});break;case 27:a.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:a.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:p,7:[1,10],9:9,12:11,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:p,9:22,12:11,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:I,7:g,10:23,11:w},e(E,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:m,23:l}),e(E,[2,19]),e(E,[2,21],{15:30,24:G}),e(E,[2,22]),e(E,[2,23]),e(N,[2,25]),e(N,[2,26]),e(N,[2,28],{20:[1,32]}),{21:[1,33]},{6:I,7:g,10:34,11:w},{1:[2,7],6:p,12:21,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(V,[2,14],{7:f,11:A}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(E,[2,16],{15:37,24:G}),e(E,[2,17]),e(E,[2,18]),e(E,[2,20],{24:H}),e(N,[2,31]),{21:[1,39]},{22:[1,40]},e(V,[2,13],{7:f,11:A}),e(L,[2,11]),e(L,[2,12]),e(E,[2,15],{24:H}),e(N,[2,30]),{22:[1,41]},e(N,[2,27]),e(N,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(s,n){if(n.recoverable)this.trace(s);else{var r=new Error(s);throw r.hash=n,r}},"parseError"),parse:o(function(s){var n=this,r=[0],a=[],u=[null],t=[],M=this.table,c="",W=0,ie=0,ue=2,re=1,ge=t.slice.call(arguments,1),b=Object.create(this.lexer),R={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(R.yy[J]=this.yy[J]);b.setInput(s,R.yy),R.yy.lexer=b,R.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var q=b.yylloc;t.push(q);var de=b.options&&b.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){r.length=r.length-2*S,u.length=u.length-S,t.length=t.length-S}o(pe,"popStack");function ae(){var S;return S=a.pop()||b.lex()||re,typeof S!="number"&&(S instanceof Array&&(a=S,S=a.pop()),S=n.symbols_[S]||S),S}o(ae,"lex");for(var _,P,x,Q,j={},z,C,oe,X;;){if(P=r[r.length-1],this.defaultActions[P]?x=this.defaultActions[P]:((_===null||typeof _>"u")&&(_=ae()),x=M[P]&&M[P][_]),typeof x>"u"||!x.length||!x[0]){var Z="";X=[];for(z in M[P])this.terminals_[z]&&z>ue&&X.push("'"+this.terminals_[z]+"'");b.showPosition?Z="Parse error on line "+(W+1)+`:
2
2
  `+b.showPosition()+`
3
3
  Expecting `+X.join(", ")+", got '"+(this.terminals_[_]||_)+"'":Z="Parse error on line "+(W+1)+": Unexpected "+(_==re?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(Z,{text:b.match,token:this.terminals_[_]||_,line:b.yylineno,loc:q,expected:X})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+_);switch(x[0]){case 1:r.push(_),u.push(b.yytext),t.push(b.yylloc),r.push(x[1]),_=null,ie=b.yyleng,c=b.yytext,W=b.yylineno,q=b.yylloc;break;case 2:if(C=this.productions_[x[1]][1],j.$=u[u.length-C],j._$={first_line:t[t.length-(C||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(C||1)].first_column,last_column:t[t.length-1].last_column},de&&(j._$.range=[t[t.length-(C||1)].range[0],t[t.length-1].range[1]]),Q=this.performAction.apply(j,[c,ie,W,R.yy,x[1],u,t].concat(ge)),typeof Q<"u")return Q;C&&(r=r.slice(0,-1*C*2),u=u.slice(0,-1*C),t=t.slice(0,-1*C)),r.push(this.productions_[x[1]][0]),u.push(j.$),t.push(j._$),oe=M[r[r.length-2]][r[r.length-1]],r.push(oe);break;case 3:return!0}}return!0},"parse")},Y=(function(){var O={EOF:1,parseError:o(function(n,r){if(this.yy.parser)this.yy.parser.parseError(n,r);else throw new Error(n)},"parseError"),setInput:o(function(s,n){return this.yy=n||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var n=s.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:o(function(s){var n=s.length,r=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var a=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===a.length?this.yylloc.first_column:0)+a[a.length-r.length].length-r[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(s){this.unput(this.match.slice(s))},"less"),pastInput:o(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var s=this.pastInput(),n=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- var cQ=Object.defineProperty;var NB=Q=>{throw TypeError(Q)};var LQ=(Q,A,B)=>A in Q?cQ(Q,A,{enumerable:!0,configurable:!0,writable:!0,value:B}):Q[A]=B;var x=(Q,A,B)=>LQ(Q,typeof A!="symbol"?A+"":A,B),CB=(Q,A,B)=>A.has(Q)||NB("Cannot "+B);var g=(Q,A,B)=>(CB(Q,A,"read from private field"),B?B.call(Q):A.get(Q)),c=(Q,A,B)=>A.has(Q)?NB("Cannot add the same private member more than once"):A instanceof WeakSet?A.add(Q):A.set(Q,B),M=(Q,A,B,E)=>(CB(Q,A,"write to private field"),E?E.call(Q,B):A.set(Q,B),B),D=(Q,A,B)=>(CB(Q,A,"access private method"),B);var HB=(Q,A,B,E)=>({set _(I){M(Q,A,I,B)},get _(){return g(Q,A,E)}});import{a3 as tQ,r as hQ,Q as jQ}from"./DjepxDVb.js";import{B as oQ,D as YQ}from"./BUHPTzFz.js";const T=["none","attribute","attribute.jsx","boolean","comment","comment.doc","constant","constant.builtin","constructor","diff.minus","diff.plus","embedded","emphasis","emphasis.strong","function","function.definition","function.method","keyword","keyword.control","keyword.declaration","keyword.import","keyword.operator","label","namespace","number","operator","predictive","preproc","primary","property","property.json_key","punctuation","punctuation.bracket","punctuation.bracket.html","punctuation.bracket.jsx","punctuation.delimiter","punctuation.delimiter.html","punctuation.delimiter.jsx","punctuation.list_marker","punctuation.markup","punctuation.special","selector","selector.class","selector.id","string","string.escape","string.regex","string.special","string.special.symbol","tag","tag.doctype","tag.jsx","text.jsx","text.literal","title","type","type.builtin","type.class","variable","variable.parameter","variable.special","enum","hint","keyword.jsdoc","link_text","link_uri","selector.pseudo","tag.component.jsx","type.jsdoc","variable.jsdoc","variant","background","foreground"],aQ="--hls-",NQ=new TextEncoder,HQ=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,nQ=/^color\(display-p3\s+[+-]?(?:\d+(?:\.\d*)?|\.\d+)\s+[+-]?(?:\d+(?:\.\d*)?|\.\d+)\s+[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:\s*\/\s*[+-]?(?:\d+(?:\.\d*)?|\.\d+))?\s*\)$/i;function ZQ(Q){return typeof Q=="string"&&(HQ.test(Q.trim())||nQ.test(Q.trim()))}function FB(Q){return Q["editor.foreground"]??Q.text??Q.foreground}function uB(Q){return Q["editor.background"]??Q.background}const YB=["black","red","green","yellow","blue","magenta","cyan","white","bright_black","bright_red","bright_green","bright_yellow","bright_blue","bright_magenta","bright_cyan","bright_white"],eQ=["#000000","#cd3131","#0dbc79","#e5e510","#2472c8","#bc3fbc","#11a8cd","#e5e5e5","#666666","#f14c4c","#23d18b","#f5f543","#3b8eea","#d670d6","#29b8db","#ffffff"];function dQ(Q){return YB.map((A,B)=>zB({foreground:Q[`terminal.ansi.${A}`]},"foreground").color??eQ[B])}function OB(Q){return Q===null?"null":Q===void 0?"undefined":typeof Q=="string"?`the string ${JSON.stringify(Q)} (theme ids are not supported; import the theme object from "@pierre/highlights/themes")`:Array.isArray(Q)?"an array":typeof Q=="object"?"themes"in Q&&Array.isArray(Q.themes)?`a ThemeFamily whose first member is ${OB(Q.themes[0])}`:"an object without a `name`":`a ${typeof Q}`}function lQ(Q){return Q!=null&&typeof Q=="object"&&"name"in Q&&typeof Q.name=="string"&&Q.name!==""}function xQ(Q){const A=Q!=null&&typeof Q=="object"&&"themes"in Q&&Q.themes!=null?Q.themes[0]:Q;if(!lQ(A))throw new TypeError(`invalid theme: expected a Theme or ThemeFamily object, received ${OB(Q)}`);return A}function vB(Q,A){let B;for(let E=A;E!=="";){const I=Q[E];if(typeof I=="string")return{...B,color:I};if(I!=null&&typeof I=="object"&&(B??=I,I.color!=null))return{...B,color:I.color};const C=E.lastIndexOf(".");E=C<0?"":E.slice(0,C)}return B}function zB(Q,A){let B,E,I;return A==="background"?B=uB(Q):A==="foreground"?B=FB(Q):({color:B,font_style:E,font_weight:I}=vB(Q.syntax??{},A)??{},(E!=null||I!=null)&&(B??=FB(Q))),ZQ(B)?(B=B.trim().toLowerCase(),B.startsWith("#")&&(B.length<=5&&(B=B.replace(/[^#]/g,"$&$&")),B.length===9&&B.endsWith("ff")&&(B=B.slice(0,7)),B==="#00000000"&&(B=void 0))):B=void 0,{color:B,italic:E==="italic",weight:I!=null&&I>=100&&I<=900?Math.round(I/100)*100:0}}function zA(Q,A){return`var(${A}${Q.replace(/[._]/g,"-")})`}function gA(Q){return Q.replaceAll("&","&amp;").replaceAll('"',"&quot;").replaceAll("<","&lt;").replaceAll(">","&gt;")}function $B(Q){const A=Q.map(w=>NQ.encode(w));let B=4+8*A.length;const E=new Uint8Array(B+A.reduce((w,G)=>w+G.length,0)),I=new DataView(E.buffer);let C=32;for(let w=0;w<A.length;w++)I.setUint32(4+8*w,B,!0),I.setUint32(8+8*w,A[w].length,!0),E.set(A[w],B),B+=A[w].length,w!==0&&(C=Math.max(C,A[w].length+32));return I.setUint32(0,C,!0),E}const nB=new WeakMap;function SB(Q,A=aQ){const B=xQ(Q),E=B.cssVariables===!0?A:"";let I=nB.get(B);const C=I?.get(E);if(C!==void 0)return C;const w=B.cssVariables===!0?rQ(B.name,A):typeof B.cssVariables=="object"?bQ(B):WQ(B);return I===void 0&&(I=new Map,nB.set(B,I)),I.set(E,w),w}function bQ(Q){const A=Q.cssVariables;if(typeof A!="object")throw new Error("Expected CSS palette");const B=A.prefix??"--hls-",E=R=>{const i=A.defaults?.[R];return`var(${B}${R}${i?`, ${i}`:""})`},I=new Array(T.length).fill(null),C=Q.style.syntax??{};for(let R=1;R<T.length;R++){const i=vB(C,T[R]);I[R]={color:E(i?.color??"foreground"),italic:i?.font_style==="italic",weight:i?.font_weight===void 0?0:Math.round(i.font_weight/100)*100}}const w=E(FB(Q.style)??"foreground"),G=E(uB(Q.style)??"background");let k,S;return{name:Q.name,styles:I,fg:w,bg:G,table:void 0,get htmlOpeners(){return k??=_B(I,w,G)},get ansi(){return S??=YB.map(R=>{const i=Q.style[`terminal.ansi.${R}`];return E(typeof i=="string"?i:`terminal-ansi-${R.replace("_","-")}`)})}}}function rQ(Q,A){let B;const E=()=>B??=TQ(A);let I;return{name:Q,get styles(){return E().styles},get fg(){return E().fg},get bg(){return E().bg},table:void 0,htmlOpeners:void 0,get ansi(){return I??=YB.map(C=>zA(`terminal.ansi.${C}`,A))}}}function TQ(Q){const A=new Array(T.length).fill(null);for(let B=1;B<T.length;B++)A[B]={color:zA(T[B],Q),italic:!1,weight:0};return{styles:A,fg:zA("foreground",Q),bg:zA("background",Q)}}function WQ(Q){const A=Q.style??{},B=new Array(T.length).fill(null),E=new Uint8Array(T.length*5);let I,C,w=!1;for(let S=1;S<T.length;S++){const R=T[S],i=zB(A,R),{color:F,italic:s,weight:J}=i,t=S*5;if(F!==void 0)if(F.startsWith("#")){const a=parseInt(F.slice(1,7),16);E[t]=a>>16,E[t+1]=a>>8&255,E[t+2]=a&255,E[t+3]=F.length===9?parseInt(F.slice(7),16):255}else w=!0;E[t+4]=(s?16:0)|J/100,!(F===void 0&&!s&&J===0)&&(R==="foreground"?I=F:R==="background"?C=F:B[S]=i)}let G,k;return{name:Q.name,styles:B,fg:I,bg:C,table:w?void 0:E,get htmlOpeners(){if(w)return G??=_B(B,I,C)},get ansi(){return k??=dQ(A)}}}function _B(Q,A,B){const E=[`<pre class="highlights" style="${gA((B===void 0?"":`background-color:${B};`)+(A===void 0?"":`color:${A}`))}"><code>`];for(let I=1;I<T.length;I++){const C=Q[I],w=`color:${C?.color??"inherit"}`+(C?.italic===!0?";font-style:italic":"")+(C!=null&&C.weight!==0?`;font-weight:${C.weight}`:"");E.push(`<span style="${gA(w)}">`)}return $B(E)}const XQ=new TextEncoder,yA=new Uint8Array(T.length);for(let Q=0;Q<T.length;Q++){const A=T[Q];A==="string.regex"?yA[Q]=3:A==="comment"||A.startsWith("comment.")?yA[Q]=1:(A==="string"||A.startsWith("string."))&&(yA[Q]=2)}const ZB=new WeakMap,eB=new WeakMap;let fQ=1;const dB=new WeakMap,lB=new WeakMap,xB=new WeakMap;let KQ=0;function PQ(Q){let A=xB.get(Q);return A===void 0&&(A=KQ++,xB.set(Q,A)),A}function bB(Q,A,B){const{name:E,styles:I,fg:C,bg:w,table:G}=Q;return{color:A,role:B,name:E,styles:I,fg:C,bg:w,table:G,get ansi(){return Q.ansi}}}function lA(Q){const{cssVariablePrefix:A}=Q;if(Q.themes==null)return[bB(SB(Q.theme,A),null,"single")];const B=Object.entries(Q.themes).filter(([,R])=>R!=null).sort(([R],[i])=>R<i?-1:1);if(B.length===0)throw new TypeError("themes must not be empty");const E=Q.defaultColor??"light";let I;if(E==="light-dark()"){const R=B.find(([F])=>F==="light"),i=B.find(([F])=>F==="dark");if(R===void 0||i===void 0)throw new TypeError("`themes` must contain `light` and `dark` when defaultColor is 'light-dark()'");B.splice(0,B.length,R,i),I=["light-dark","light-dark"]}else{if(E!==!1){const R=B.findIndex(([i])=>i===E);if(R<0)throw new TypeError(`\`themes\` must contain the defaultColor key \`${E}\``);B.unshift(...B.splice(R,1))}I=B.map((R,i)=>E!==!1&&i===0?"default":"variable")}const C=B.map(([,R])=>SB(R,A)),w=JSON.stringify(B.map(([R],i)=>[PQ(C[i]),I[i],R]));let G=lB.get(C[0]);const k=G?.get(w);if(k!==void 0)return k;const S=B.map(([R],i)=>bB(C[i],R,I[i]));if(G===void 0&&(G=new Map,lB.set(C[0],G)),G.set(w,S),G.size>128){const R=G.keys().next().value;R!==void 0&&G.delete(R)}return S}function xA(Q,A,B,E,I,C,w=0){const G={content:Q.slice(A,B),offset:A+w};if(I[0].role==="single"){const{styles:S,fg:R}=I[0],i=S[E];G.color=i?.color??R;let F=0;i?.italic===!0&&(F|=1),(i?.weight??0)>=600&&(F|=2),G.fontStyle=F}else G.htmlStyle=aB(I,E,C);const k=yA[E];return k!==0&&(G.type=k),G}function AQ(Q,A){let B=ZB.get(Q);B===void 0&&(B=new Map,ZB.set(Q,B));let E=B.get(A);return E===void 0&&(E=[],B.set(A,E)),E}function aB(Q,A,B){const E=AQ(Q,B);let I=E[A];if(I===void 0){if(Q[0].role==="light-dark")I=pQ(Q,A,B);else{I={};for(const{color:C,role:w,styles:G,fg:k}of Q){const S=G[A],R=w==="default";I[R?"color":B+C]=S?.color??k??"inherit",S?.italic===!0&&(I[R?"font-style":`${B}${C}-font-style`]="italic"),S!=null&&S.weight!==0&&(I[R?"font-weight":`${B}${C}-font-weight`]=String(S.weight))}}E[A]=I}return I}function VQ(Q,A){let B=eB.get(Q);B===void 0&&(B=new Map,eB.set(Q,B));const E=B.get(A);if(E!==void 0)return E??void 0;const I=Q.length;if(!(I<=255&&Q.every(J=>J.table!==void 0))){B.set(A,null);return}const C=Q.map(J=>J.role==="default"?new Uint8Array(0):XQ.encode(gA(`${A}${J.color}`))),w=32+16*I,G=w+384*I;let k=64,S=128,R=0;for(const{length:J}of C)k+=64+3*J,S+=48+2*J,R+=J;const i=new Uint8Array(G+R),F=new DataView(i.buffer);i[0]=I,i[1]=Q[0].role==="light-dark"?1:0,F.setUint32(4,w,!0),F.setUint32(8,k,!0),F.setUint32(12,S,!0),F.setUint32(16,fQ++,!0);let s=G;for(let J=0;J<I;J++){const t=32+16*J;F.setUint32(t,s,!0),F.setUint32(t+4,C[J].length,!0),F.setUint32(t+8,Q[J].role==="default"?1:0,!0),i.set(Q[J].table,w+384*J),i.set(C[J],s),s+=C[J].length}return B.set(A,i),i}function mQ(Q,A){let B=dB.get(Q);B===void 0&&(B=new Map,dB.set(Q,B));const E=B.get(A);if(E!==void 0)return E;const{fg:I,bg:C,rootStyle:w}=kB(Q,A),G=[`<pre class="highlights" style="${gA(w??`background-color:${C};color:${I}`)}"><code>`];for(let S=1;S<T.length;S++){const R=aB(Q,S,A);let i="";for(const F in R)i+=`${i===""?"":";"}${F}:${R[F]}`;G.push(`<span style="${gA(i)}">`)}const k=$B(G);return B.set(A,k),k}function pQ(Q,A,B){const[E,I]=Q,C=E.styles[A],w=I.styles[A],G=C?.color??E.fg??"currentcolor",k=w?.color??I.fg??"currentcolor",S={color:G===k?G:`light-dark(${G}, ${k})`},R=C?.italic===!0,i=w?.italic===!0;R&&i?S["font-style"]="italic":(R&&(S[`${B}light-font-style`]="italic"),i&&(S[`${B}dark-font-style`]="italic"));const F=C?.weight??0,s=w?.weight??0;return F!==0&&F===s?S["font-weight"]=String(F):(F!==0&&(S[`${B}light-font-weight`]=String(F)),s!==0&&(S[`${B}dark-font-weight`]=String(s))),S}function BQ(Q,A,B,E,I,C=0){const w=[],G=I??0,{styles:k,fg:S,role:R}=B[0],i=R==="single"?void 0:AQ(B,E);let F=0;for(let s=0;;s+=2){const J=s;for(;s<A.length&&A[s+1]!==4294967295;)s+=2;const t=s===J?F:A[s-2];let a;if(G>0&&t-F>=G)a=[xA(Q,F,t,0,B,E,C)];else{a=new Array((s-J)/2);let o=0;for(let n=J;n<s;n+=2){const Z=A[n];if(Z>F){const h=A[n+1];let L;if(i===void 0){const H=k[h];L={content:Q.slice(F,Z),offset:F+C,color:H?.color??S,fontStyle:(H?.italic===!0?1:0)|((H?.weight??0)>=600?2:0)}}else L={content:Q.slice(F,Z),offset:F+C,htmlStyle:i[h]??aB(B,h,E)};const y=yA[h];y!==0&&(L.type=y),a[o++]=L,F=Z}}a.length=o}if(w.push(a),s===A.length)break;F=A[s]}return w}function kB(Q,A){if(Q[0].role==="single")return{fg:Q[0].fg,bg:Q[0].bg,themeName:Q[0].name};const B=`highlights-themes ${Q.map(C=>C.name).join(" ")}`;if(Q[0].role==="light-dark"){const C=(w,G,k)=>{const S=w??k,R=G??k;return S===R?S:`light-dark(${S}, ${R})`};return{fg:C(Q[0].fg,Q[1].fg,"currentcolor"),bg:C(Q[0].bg,Q[1].bg,"transparent"),themeName:B}}const E=Q.map(C=>C.role==="default"?C.fg??"inherit":`${A}${C.color}:${C.fg??"inherit"}`).join(";"),I=Q.map(C=>C.role==="default"?C.bg??"inherit":`${A}${C.color}-bg:${C.bg??"inherit"}`).join(";");return{fg:E,bg:I,themeName:B,rootStyle:Q[0].role==="default"?void 0:`${E};${I}`}}const sB=1,QQ=2,EQ=4,IQ=8,CQ=16,gQ=32,rB=[0,sB,QQ,EQ,IQ,0,0,CQ,0,gQ],gB=[0,95,135,175,215,255],wB=/\x1b(?:\[([0-?]*)[ -/]*([@-~])|\][^\x07\x1b\n]*(?:\x07|\x1b\\)|[ -/]*[0-~])/y;var wQ=class{constructor(){x(this,"fg",-1);x(this,"bg",-1);x(this,"flags",0);x(this,"styles",new Map)}};function bA(Q){return String(Q).toLowerCase()==="ansi"}function RB(Q,A){if(A<16)return Q.ansi[A];let B=A&16777215;if(A<232){const E=A-16;B=gB[E/36|0]<<16|gB[(E/6|0)%6]<<8|gB[E%6]}else A<256&&(B=(8+(A-232)*10)*65793);return`#${B.toString(16).padStart(6,"0")}`}function UB(Q,A,B,E,I=new wQ,C=0){const w=[],G=E??0;let k=[],S,R,i,F=Q.indexOf("\x1B"),s=0;for(;;){const J=Q.indexOf(`
1
+ var cQ=Object.defineProperty;var NB=Q=>{throw TypeError(Q)};var LQ=(Q,A,B)=>A in Q?cQ(Q,A,{enumerable:!0,configurable:!0,writable:!0,value:B}):Q[A]=B;var x=(Q,A,B)=>LQ(Q,typeof A!="symbol"?A+"":A,B),CB=(Q,A,B)=>A.has(Q)||NB("Cannot "+B);var g=(Q,A,B)=>(CB(Q,A,"read from private field"),B?B.call(Q):A.get(Q)),c=(Q,A,B)=>A.has(Q)?NB("Cannot add the same private member more than once"):A instanceof WeakSet?A.add(Q):A.set(Q,B),M=(Q,A,B,E)=>(CB(Q,A,"write to private field"),E?E.call(Q,B):A.set(Q,B),B),D=(Q,A,B)=>(CB(Q,A,"access private method"),B);var HB=(Q,A,B,E)=>({set _(I){M(Q,A,I,B)},get _(){return g(Q,A,E)}});import{a3 as tQ,r as hQ,Q as jQ}from"./Dm529rkq.js";import{B as oQ,D as YQ}from"./G0vgahzI.js";const T=["none","attribute","attribute.jsx","boolean","comment","comment.doc","constant","constant.builtin","constructor","diff.minus","diff.plus","embedded","emphasis","emphasis.strong","function","function.definition","function.method","keyword","keyword.control","keyword.declaration","keyword.import","keyword.operator","label","namespace","number","operator","predictive","preproc","primary","property","property.json_key","punctuation","punctuation.bracket","punctuation.bracket.html","punctuation.bracket.jsx","punctuation.delimiter","punctuation.delimiter.html","punctuation.delimiter.jsx","punctuation.list_marker","punctuation.markup","punctuation.special","selector","selector.class","selector.id","string","string.escape","string.regex","string.special","string.special.symbol","tag","tag.doctype","tag.jsx","text.jsx","text.literal","title","type","type.builtin","type.class","variable","variable.parameter","variable.special","enum","hint","keyword.jsdoc","link_text","link_uri","selector.pseudo","tag.component.jsx","type.jsdoc","variable.jsdoc","variant","background","foreground"],aQ="--hls-",NQ=new TextEncoder,HQ=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,nQ=/^color\(display-p3\s+[+-]?(?:\d+(?:\.\d*)?|\.\d+)\s+[+-]?(?:\d+(?:\.\d*)?|\.\d+)\s+[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:\s*\/\s*[+-]?(?:\d+(?:\.\d*)?|\.\d+))?\s*\)$/i;function ZQ(Q){return typeof Q=="string"&&(HQ.test(Q.trim())||nQ.test(Q.trim()))}function FB(Q){return Q["editor.foreground"]??Q.text??Q.foreground}function uB(Q){return Q["editor.background"]??Q.background}const YB=["black","red","green","yellow","blue","magenta","cyan","white","bright_black","bright_red","bright_green","bright_yellow","bright_blue","bright_magenta","bright_cyan","bright_white"],eQ=["#000000","#cd3131","#0dbc79","#e5e510","#2472c8","#bc3fbc","#11a8cd","#e5e5e5","#666666","#f14c4c","#23d18b","#f5f543","#3b8eea","#d670d6","#29b8db","#ffffff"];function dQ(Q){return YB.map((A,B)=>zB({foreground:Q[`terminal.ansi.${A}`]},"foreground").color??eQ[B])}function OB(Q){return Q===null?"null":Q===void 0?"undefined":typeof Q=="string"?`the string ${JSON.stringify(Q)} (theme ids are not supported; import the theme object from "@pierre/highlights/themes")`:Array.isArray(Q)?"an array":typeof Q=="object"?"themes"in Q&&Array.isArray(Q.themes)?`a ThemeFamily whose first member is ${OB(Q.themes[0])}`:"an object without a `name`":`a ${typeof Q}`}function lQ(Q){return Q!=null&&typeof Q=="object"&&"name"in Q&&typeof Q.name=="string"&&Q.name!==""}function xQ(Q){const A=Q!=null&&typeof Q=="object"&&"themes"in Q&&Q.themes!=null?Q.themes[0]:Q;if(!lQ(A))throw new TypeError(`invalid theme: expected a Theme or ThemeFamily object, received ${OB(Q)}`);return A}function vB(Q,A){let B;for(let E=A;E!=="";){const I=Q[E];if(typeof I=="string")return{...B,color:I};if(I!=null&&typeof I=="object"&&(B??=I,I.color!=null))return{...B,color:I.color};const C=E.lastIndexOf(".");E=C<0?"":E.slice(0,C)}return B}function zB(Q,A){let B,E,I;return A==="background"?B=uB(Q):A==="foreground"?B=FB(Q):({color:B,font_style:E,font_weight:I}=vB(Q.syntax??{},A)??{},(E!=null||I!=null)&&(B??=FB(Q))),ZQ(B)?(B=B.trim().toLowerCase(),B.startsWith("#")&&(B.length<=5&&(B=B.replace(/[^#]/g,"$&$&")),B.length===9&&B.endsWith("ff")&&(B=B.slice(0,7)),B==="#00000000"&&(B=void 0))):B=void 0,{color:B,italic:E==="italic",weight:I!=null&&I>=100&&I<=900?Math.round(I/100)*100:0}}function zA(Q,A){return`var(${A}${Q.replace(/[._]/g,"-")})`}function gA(Q){return Q.replaceAll("&","&amp;").replaceAll('"',"&quot;").replaceAll("<","&lt;").replaceAll(">","&gt;")}function $B(Q){const A=Q.map(w=>NQ.encode(w));let B=4+8*A.length;const E=new Uint8Array(B+A.reduce((w,G)=>w+G.length,0)),I=new DataView(E.buffer);let C=32;for(let w=0;w<A.length;w++)I.setUint32(4+8*w,B,!0),I.setUint32(8+8*w,A[w].length,!0),E.set(A[w],B),B+=A[w].length,w!==0&&(C=Math.max(C,A[w].length+32));return I.setUint32(0,C,!0),E}const nB=new WeakMap;function SB(Q,A=aQ){const B=xQ(Q),E=B.cssVariables===!0?A:"";let I=nB.get(B);const C=I?.get(E);if(C!==void 0)return C;const w=B.cssVariables===!0?rQ(B.name,A):typeof B.cssVariables=="object"?bQ(B):WQ(B);return I===void 0&&(I=new Map,nB.set(B,I)),I.set(E,w),w}function bQ(Q){const A=Q.cssVariables;if(typeof A!="object")throw new Error("Expected CSS palette");const B=A.prefix??"--hls-",E=R=>{const i=A.defaults?.[R];return`var(${B}${R}${i?`, ${i}`:""})`},I=new Array(T.length).fill(null),C=Q.style.syntax??{};for(let R=1;R<T.length;R++){const i=vB(C,T[R]);I[R]={color:E(i?.color??"foreground"),italic:i?.font_style==="italic",weight:i?.font_weight===void 0?0:Math.round(i.font_weight/100)*100}}const w=E(FB(Q.style)??"foreground"),G=E(uB(Q.style)??"background");let k,S;return{name:Q.name,styles:I,fg:w,bg:G,table:void 0,get htmlOpeners(){return k??=_B(I,w,G)},get ansi(){return S??=YB.map(R=>{const i=Q.style[`terminal.ansi.${R}`];return E(typeof i=="string"?i:`terminal-ansi-${R.replace("_","-")}`)})}}}function rQ(Q,A){let B;const E=()=>B??=TQ(A);let I;return{name:Q,get styles(){return E().styles},get fg(){return E().fg},get bg(){return E().bg},table:void 0,htmlOpeners:void 0,get ansi(){return I??=YB.map(C=>zA(`terminal.ansi.${C}`,A))}}}function TQ(Q){const A=new Array(T.length).fill(null);for(let B=1;B<T.length;B++)A[B]={color:zA(T[B],Q),italic:!1,weight:0};return{styles:A,fg:zA("foreground",Q),bg:zA("background",Q)}}function WQ(Q){const A=Q.style??{},B=new Array(T.length).fill(null),E=new Uint8Array(T.length*5);let I,C,w=!1;for(let S=1;S<T.length;S++){const R=T[S],i=zB(A,R),{color:F,italic:s,weight:J}=i,t=S*5;if(F!==void 0)if(F.startsWith("#")){const a=parseInt(F.slice(1,7),16);E[t]=a>>16,E[t+1]=a>>8&255,E[t+2]=a&255,E[t+3]=F.length===9?parseInt(F.slice(7),16):255}else w=!0;E[t+4]=(s?16:0)|J/100,!(F===void 0&&!s&&J===0)&&(R==="foreground"?I=F:R==="background"?C=F:B[S]=i)}let G,k;return{name:Q.name,styles:B,fg:I,bg:C,table:w?void 0:E,get htmlOpeners(){if(w)return G??=_B(B,I,C)},get ansi(){return k??=dQ(A)}}}function _B(Q,A,B){const E=[`<pre class="highlights" style="${gA((B===void 0?"":`background-color:${B};`)+(A===void 0?"":`color:${A}`))}"><code>`];for(let I=1;I<T.length;I++){const C=Q[I],w=`color:${C?.color??"inherit"}`+(C?.italic===!0?";font-style:italic":"")+(C!=null&&C.weight!==0?`;font-weight:${C.weight}`:"");E.push(`<span style="${gA(w)}">`)}return $B(E)}const XQ=new TextEncoder,yA=new Uint8Array(T.length);for(let Q=0;Q<T.length;Q++){const A=T[Q];A==="string.regex"?yA[Q]=3:A==="comment"||A.startsWith("comment.")?yA[Q]=1:(A==="string"||A.startsWith("string."))&&(yA[Q]=2)}const ZB=new WeakMap,eB=new WeakMap;let fQ=1;const dB=new WeakMap,lB=new WeakMap,xB=new WeakMap;let KQ=0;function PQ(Q){let A=xB.get(Q);return A===void 0&&(A=KQ++,xB.set(Q,A)),A}function bB(Q,A,B){const{name:E,styles:I,fg:C,bg:w,table:G}=Q;return{color:A,role:B,name:E,styles:I,fg:C,bg:w,table:G,get ansi(){return Q.ansi}}}function lA(Q){const{cssVariablePrefix:A}=Q;if(Q.themes==null)return[bB(SB(Q.theme,A),null,"single")];const B=Object.entries(Q.themes).filter(([,R])=>R!=null).sort(([R],[i])=>R<i?-1:1);if(B.length===0)throw new TypeError("themes must not be empty");const E=Q.defaultColor??"light";let I;if(E==="light-dark()"){const R=B.find(([F])=>F==="light"),i=B.find(([F])=>F==="dark");if(R===void 0||i===void 0)throw new TypeError("`themes` must contain `light` and `dark` when defaultColor is 'light-dark()'");B.splice(0,B.length,R,i),I=["light-dark","light-dark"]}else{if(E!==!1){const R=B.findIndex(([i])=>i===E);if(R<0)throw new TypeError(`\`themes\` must contain the defaultColor key \`${E}\``);B.unshift(...B.splice(R,1))}I=B.map((R,i)=>E!==!1&&i===0?"default":"variable")}const C=B.map(([,R])=>SB(R,A)),w=JSON.stringify(B.map(([R],i)=>[PQ(C[i]),I[i],R]));let G=lB.get(C[0]);const k=G?.get(w);if(k!==void 0)return k;const S=B.map(([R],i)=>bB(C[i],R,I[i]));if(G===void 0&&(G=new Map,lB.set(C[0],G)),G.set(w,S),G.size>128){const R=G.keys().next().value;R!==void 0&&G.delete(R)}return S}function xA(Q,A,B,E,I,C,w=0){const G={content:Q.slice(A,B),offset:A+w};if(I[0].role==="single"){const{styles:S,fg:R}=I[0],i=S[E];G.color=i?.color??R;let F=0;i?.italic===!0&&(F|=1),(i?.weight??0)>=600&&(F|=2),G.fontStyle=F}else G.htmlStyle=aB(I,E,C);const k=yA[E];return k!==0&&(G.type=k),G}function AQ(Q,A){let B=ZB.get(Q);B===void 0&&(B=new Map,ZB.set(Q,B));let E=B.get(A);return E===void 0&&(E=[],B.set(A,E)),E}function aB(Q,A,B){const E=AQ(Q,B);let I=E[A];if(I===void 0){if(Q[0].role==="light-dark")I=pQ(Q,A,B);else{I={};for(const{color:C,role:w,styles:G,fg:k}of Q){const S=G[A],R=w==="default";I[R?"color":B+C]=S?.color??k??"inherit",S?.italic===!0&&(I[R?"font-style":`${B}${C}-font-style`]="italic"),S!=null&&S.weight!==0&&(I[R?"font-weight":`${B}${C}-font-weight`]=String(S.weight))}}E[A]=I}return I}function VQ(Q,A){let B=eB.get(Q);B===void 0&&(B=new Map,eB.set(Q,B));const E=B.get(A);if(E!==void 0)return E??void 0;const I=Q.length;if(!(I<=255&&Q.every(J=>J.table!==void 0))){B.set(A,null);return}const C=Q.map(J=>J.role==="default"?new Uint8Array(0):XQ.encode(gA(`${A}${J.color}`))),w=32+16*I,G=w+384*I;let k=64,S=128,R=0;for(const{length:J}of C)k+=64+3*J,S+=48+2*J,R+=J;const i=new Uint8Array(G+R),F=new DataView(i.buffer);i[0]=I,i[1]=Q[0].role==="light-dark"?1:0,F.setUint32(4,w,!0),F.setUint32(8,k,!0),F.setUint32(12,S,!0),F.setUint32(16,fQ++,!0);let s=G;for(let J=0;J<I;J++){const t=32+16*J;F.setUint32(t,s,!0),F.setUint32(t+4,C[J].length,!0),F.setUint32(t+8,Q[J].role==="default"?1:0,!0),i.set(Q[J].table,w+384*J),i.set(C[J],s),s+=C[J].length}return B.set(A,i),i}function mQ(Q,A){let B=dB.get(Q);B===void 0&&(B=new Map,dB.set(Q,B));const E=B.get(A);if(E!==void 0)return E;const{fg:I,bg:C,rootStyle:w}=kB(Q,A),G=[`<pre class="highlights" style="${gA(w??`background-color:${C};color:${I}`)}"><code>`];for(let S=1;S<T.length;S++){const R=aB(Q,S,A);let i="";for(const F in R)i+=`${i===""?"":";"}${F}:${R[F]}`;G.push(`<span style="${gA(i)}">`)}const k=$B(G);return B.set(A,k),k}function pQ(Q,A,B){const[E,I]=Q,C=E.styles[A],w=I.styles[A],G=C?.color??E.fg??"currentcolor",k=w?.color??I.fg??"currentcolor",S={color:G===k?G:`light-dark(${G}, ${k})`},R=C?.italic===!0,i=w?.italic===!0;R&&i?S["font-style"]="italic":(R&&(S[`${B}light-font-style`]="italic"),i&&(S[`${B}dark-font-style`]="italic"));const F=C?.weight??0,s=w?.weight??0;return F!==0&&F===s?S["font-weight"]=String(F):(F!==0&&(S[`${B}light-font-weight`]=String(F)),s!==0&&(S[`${B}dark-font-weight`]=String(s))),S}function BQ(Q,A,B,E,I,C=0){const w=[],G=I??0,{styles:k,fg:S,role:R}=B[0],i=R==="single"?void 0:AQ(B,E);let F=0;for(let s=0;;s+=2){const J=s;for(;s<A.length&&A[s+1]!==4294967295;)s+=2;const t=s===J?F:A[s-2];let a;if(G>0&&t-F>=G)a=[xA(Q,F,t,0,B,E,C)];else{a=new Array((s-J)/2);let o=0;for(let n=J;n<s;n+=2){const Z=A[n];if(Z>F){const h=A[n+1];let L;if(i===void 0){const H=k[h];L={content:Q.slice(F,Z),offset:F+C,color:H?.color??S,fontStyle:(H?.italic===!0?1:0)|((H?.weight??0)>=600?2:0)}}else L={content:Q.slice(F,Z),offset:F+C,htmlStyle:i[h]??aB(B,h,E)};const y=yA[h];y!==0&&(L.type=y),a[o++]=L,F=Z}}a.length=o}if(w.push(a),s===A.length)break;F=A[s]}return w}function kB(Q,A){if(Q[0].role==="single")return{fg:Q[0].fg,bg:Q[0].bg,themeName:Q[0].name};const B=`highlights-themes ${Q.map(C=>C.name).join(" ")}`;if(Q[0].role==="light-dark"){const C=(w,G,k)=>{const S=w??k,R=G??k;return S===R?S:`light-dark(${S}, ${R})`};return{fg:C(Q[0].fg,Q[1].fg,"currentcolor"),bg:C(Q[0].bg,Q[1].bg,"transparent"),themeName:B}}const E=Q.map(C=>C.role==="default"?C.fg??"inherit":`${A}${C.color}:${C.fg??"inherit"}`).join(";"),I=Q.map(C=>C.role==="default"?C.bg??"inherit":`${A}${C.color}-bg:${C.bg??"inherit"}`).join(";");return{fg:E,bg:I,themeName:B,rootStyle:Q[0].role==="default"?void 0:`${E};${I}`}}const sB=1,QQ=2,EQ=4,IQ=8,CQ=16,gQ=32,rB=[0,sB,QQ,EQ,IQ,0,0,CQ,0,gQ],gB=[0,95,135,175,215,255],wB=/\x1b(?:\[([0-?]*)[ -/]*([@-~])|\][^\x07\x1b\n]*(?:\x07|\x1b\\)|[ -/]*[0-~])/y;var wQ=class{constructor(){x(this,"fg",-1);x(this,"bg",-1);x(this,"flags",0);x(this,"styles",new Map)}};function bA(Q){return String(Q).toLowerCase()==="ansi"}function RB(Q,A){if(A<16)return Q.ansi[A];let B=A&16777215;if(A<232){const E=A-16;B=gB[E/36|0]<<16|gB[(E/6|0)%6]<<8|gB[E%6]}else A<256&&(B=(8+(A-232)*10)*65793);return`#${B.toString(16).padStart(6,"0")}`}function UB(Q,A,B,E,I=new wQ,C=0){const w=[],G=E??0;let k=[],S,R,i,F=Q.indexOf("\x1B"),s=0;for(;;){const J=Q.indexOf(`
2
2
  `,s);let t=J<0?Q.length:J;J>s&&Q.charCodeAt(J-1)===13&&t--;const a=G>0&&t-s>=G;for(;s<t;){F>=0&&F<s&&(F=Q.indexOf("\x1B",s));let o=F>=0&&F<t?F:t,n=o,Z;if(o<t){wB.lastIndex=o;const h=wB.exec(Q);h===null?n=++o:(n=wB.lastIndex,h[2]==="m"&&!(h[1].charCodeAt(0)>=60)&&(Z=h[1]))}if(o>s&&a)R===void 0?(R=xA(Q,s,o,0,A,B,C),k.push(R)):R.content+=Q.slice(s,o);else if(o>s){if(S===void 0){const{fg:h,bg:L,flags:y}=I,H=`${h},${L},${y}`;if(S=I.styles.get(H),S===void 0){const m=((y&EQ)!==0?1:0)|((y&sB)!==0?2:0)|((y&IQ)!==0?4:0)|((y&gQ)!==0?8:0),z=A.map(e=>{let j=h<0?e.fg:RB(e,h),$=L<0?void 0:RB(e,L);return(y&CQ)!==0&&($=j,j=L<0?e.bg:RB(e,L)),(y&QQ)!==0&&j!==void 0&&(j=j.startsWith("#")?j.length===9?j.slice(0,7)+Math.round(parseInt(j.slice(7),16)/2).toString(16).padStart(2,"0"):`${j}80`:`color-mix(in srgb, ${j} 50%, transparent)`),[j,$]});if(A[0].role==="single"){const[e,j]=z[0];S=j===void 0?{color:e,fontStyle:m}:{color:e,bgColor:j,fontStyle:m}}else{const e=[];(m&1)!==0&&e.push(["font-style","italic"]),(m&2)!==0&&e.push(["font-weight","bold"]),(m&12)!==0&&e.push(["text-decoration",(m&12)===12?"underline line-through":(m&4)!==0?"underline":"line-through"]);const j={};if(A[0].role==="light-dark"){const[[$,pA],[qA,sA]]=z,wA=$??"currentcolor",HA=qA??"currentcolor";if(j.color=wA===HA?wA:`light-dark(${wA}, ${HA})`,pA!==void 0||sA!==void 0){const RA=pA??"transparent",uA=sA??"transparent";j["background-color"]=RA===uA?RA:`light-dark(${RA}, ${uA})`}for(const[RA,uA]of e)j[RA]=uA}else for(let $=0;$<A.length;$++){const[pA,qA]=z[$],sA=A[$].role==="default",wA=`${B}${A[$].color}`;j[sA?"color":wA]=pA??"inherit",qA!==void 0&&(j[sA?"background-color":`${wA}-bg`]=qA);for(const[HA,RA]of e)j[sA?HA:`${wA}-${HA}`]=RA}S={htmlStyle:j}}I.styles.set(H,S)}}R!==void 0&&i===S?R.content+=Q.slice(s,o):(R={content:Q.slice(s,o),offset:s+C,...S},i=S,k.push(R))}if(Z!==void 0){const h=Z.split(";");for(let L=0;L<h.length;L++){const y=Number(h[L]);if(y===0)I.fg=-1,I.bg=-1,I.flags=0;else if(y<10)I.flags|=rB[y]??0;else if(y>20&&y<30)I.flags&=~((rB[y-20]??0)|(y===22?sB:0));else if(y>=30&&y<38)I.fg=y-30;else if(y===39)I.fg=-1;else if(y>=40&&y<48)I.bg=y-40;else if(y===49)I.bg=-1;else if(y>=90&&y<98)I.fg=y-82;else if(y>=100&&y<108)I.bg=y-92;else if(y===38||y===48){const H=h[++L];let m=-1;if(H==="5"){const z=Number(h[++L]);Number.isInteger(z)&&z<256&&(m=z)}else if(H==="2"){const z=Number(h[L+1]),e=Number(h[L+2]),j=Number(h[L+3]);L+=3,z>=0&&e>=0&&j>=0&&(m=16777216|Math.min(z,255)<<16|Math.min(e,255)<<8|Math.min(j,255))}m>=0&&(y===38?I.fg=m:I.bg=m)}}S=void 0}s=n}if(w.push(k),J<0)return w;s=J+1,k=[],R=void 0}}const qQ={plain:0,plaintext:0,text:0,txt:0,abap:1,ada:2,adb:2,ads:2,"angular-html":3,apache:4,apacheconf:4,htaccess:4,apex:5,applescript:6,adoc:7,asciidoc:7,asm:8,assembly:8,mips:8,mipsasm:8,riscv:8,s:8,astro:9,awk:10,bash:11,sh:11,shell:11,shellscript:11,shellsession:11,zsh:11,bat:12,batch:12,batchfile:12,cmd:12,dos:12,bib:13,bibtex:13,bicep:14,blade:15,c:16,h:16,c3:17,clj:18,cljc:18,cljs:18,clojure:18,edn:18,cmake:19,cbl:20,cob:20,cobol:20,codeowners:21,codeql:22,ql:22,coffee:23,coffeescript:23,coq:24,rocq:24,"c++":25,cc:25,cpp:25,cxx:25,hh:25,hpp:25,hxx:25,"c#":26,cs:26,csharp:26,css:27,postcss:27,qss:27,csv:28,cu:29,cuda:29,cuh:29,cql:30,cypher:30,d:31,dart:32,dax:33,diff:34,"git-commit":34,"git-rebase":34,patch:34,containerfile:35,docker:35,dockerfile:35,dotenv:36,env:36,elixir:37,ex:37,exs:37,elm:38,erb:39,erl:40,erlang:40,hrl:40,fish:41,f03:42,f08:42,f90:42,f95:42,fortran:42,"fortran-free-form":42,f:43,f77:43,for:43,"fortran-fixed-form":43,"f#":44,fs:44,fsharp:44,fsi:44,fsx:44,gdresource:45,"godot-resource":45,tres:45,tscn:45,gd:46,gdscript:46,gdshader:47,gdshaderinc:47,"godot-shader":47,cucumber:48,feature:48,gherkin:48,gleam:49,comp:50,frag:50,geom:50,glsl:50,vert:50,gnuplot:51,gp:51,go:52,golang:52,gql:53,graphql:53,groq:54,gradle:55,groovy:55,gsh:55,gvy:55,gy:55,nextflow:55,"nextflow-groovy":55,nf:55,hack:56,haml:57,handlebars:58,hbs:58,mustache:58,haskell:59,hs:59,haxe:60,hx:60,hlsl:61,htm:62,html:62,"html-derivative":62,http:63,desktop:64,ini:64,properties:64,systemd:64,java:65,j2:66,jinja:66,jinja2:66,cjs:67,javascript:67,js:67,mjs:67,json:68,jsonc:68,json5:69,jsonl:70,jsonnet:71,libsonnet:71,jsx:72,jl:73,julia:73,just:74,justfile:74,kdl:75,kotlin:76,kt:76,kts:76,latex:77,tex:77,lean:78,lean4:78,less:79,liquid:80,cl:81,el:81,elisp:81,"emacs-lisp":81,lisp:81,lsp:81,racket:81,rkt:81,scheme:81,scm:81,llvm:82,log:83,lua:84,luau:85,make:86,makefile:86,mk:86,markdown:87,md:87,mdc:87,matlab:88,octave:88,mdx:89,mermaid:90,mmd:90,mbt:91,moonbit:91,nginx:92,nim:93,nix:94,m:95,mm:95,objc:95,objcpp:95,"objective-c":95,"objective-cpp":95,objectivec:95,ml:96,mli:96,ocaml:96,odin:97,openscad:98,scad:98,delphi:99,dpk:99,dpr:99,lpr:99,"object-pascal":99,objectpascal:99,pas:99,pascal:99,pp:99,perl:100,pl:100,pm:100,php:101,plsql:102,po:103,pot:103,potx:103,powerquery:104,pq:104,powershell:105,ps:105,ps1:105,psd1:105,psm1:105,pwsh:105,prisma:106,prolog:107,promql:108,proto:109,protobuf:109,jade:110,pug:110,puppet:111,py:112,python:112,qml:113,r:114,rscript:114,cshtml:115,razor:115,reg:116,rosmsg:117,restructuredtext:118,rst:118,rb:119,ruby:119,rs:120,rust:120,sas:121,sass:122,sbt:123,sc:123,scala:123,scss:124,shader:125,shaderlab:125,sol:126,solidity:126,sparql:127,sql:128,stata:129,styl:130,stylus:130,svelte:131,swift:132,tcl:133,hcl:134,terraform:134,tf:134,tfvars:134,toml:135,"angular-ts":136,cts:136,lit:136,mts:136,ts:136,"ts-tags":136,typescript:136,tsrx:137,tsv:138,tsx:139,ttl:140,turtle:140,twig:141,typ:142,typst:142,sv:143,svh:143,"system-verilog":143,systemverilog:143,verilog:143,vhd:144,vhdl:144,vim:145,viml:145,vimscript:145,vue:146,"vue-html":146,wasm:147,wat:147,wgsl:148,mathematica:149,wl:149,wolfram:149,svg:150,xml:150,xsd:150,xsl:150,xslt:150,yaml:151,yml:151,zig:152,zon:152},OA=new TextEncoder,RQ=new TextDecoder("utf-8",{ignoreBOM:!0}),$A=65536,TB=64,iA=81920,WB=[/^\p{ID_Start}$/u,/^[\u200C\u200D\p{ID_Continue}]$/u];let iB;const iQ=qQ;function QB(Q){const A=iQ[String(Q).toLowerCase()];if(typeof A!="number")throw new RangeError(`unknown lang: ${Q}`);return A}function uQ(Q){return typeof iQ[String(Q).toLowerCase()]=="number"||bA(Q)}var rA,TA,WA,XA,fA,P,DB,UA,JB,mB,IB=(mB=class{constructor(A){c(this,P);c(this,rA);c(this,TA);c(this,WA);c(this,XA);c(this,fA,new Uint8Array(0));x(this,"wasmModule");x(this,"instance");x(this,"memory");x(this,"buffer");x(this,"dv");x(this,"pageN");this.wasmModule=A;const B=new WebAssembly.Instance(A,{env:{is_id_start:(E,I)=>D(this,P,JB).call(this,E,I,0),is_id_continue:(E,I)=>D(this,P,JB).call(this,E,I,2)}});this.instance=B,this.memory=B.exports.memory,M(this,rA,B.exports.highlight),M(this,TA,B.exports.highlightStream),this.pageN=this.memory.buffer.byteLength/$A,this.buffer=new Uint8Array(this.memory.buffer),this.dv=new DataView(this.memory.buffer)}writeInput(A,B=0){if(typeof A=="string"){D(this,P,UA).call(this,B+A.length+96);let{read:E,written:I}=OA.encodeInto(A,this.buffer.subarray(iA+B,this.buffer.length-96));if(E<A.length){const C=A.slice(E);D(this,P,UA).call(this,B+I+C.length*3+96),I+=OA.encodeInto(C,this.buffer.subarray(iA+B+I,this.buffer.length-96)).written}return I}if(A instanceof ArrayBuffer&&(A=new Uint8Array(A)),!(A instanceof Uint8Array))throw new TypeError("input must be a string, Uint8Array, or ArrayBuffer");return D(this,P,UA).call(this,B+A.length+96),this.buffer.set(A,iA+B),A.length}codeToHtml(A,B){const E=B.cssVariablePrefix??"--hls-";if(bA(B.lang)){const i=lA(B),{fg:F,bg:s,rootStyle:J}=kB(i,E),t=yB(A),a=UB(t,i[0].role==="single"?[{...i[0],role:"default"}]:i,E);let o=`<pre class="highlights" style="${gA(J??(s===void 0?"":`background-color:${s};`)+(F===void 0?"":`color:${F}`))}"><code>`;for(let n=0,Z=-1;n<a.length;n++){n>0&&(Z=t.indexOf(`
3
3
  `,Z+1),o+=t.charCodeAt(Z-1)===13?`\r
4
4
  `:`
@@ -1 +1 @@
1
- import{d as l,v as h,t as k}from"./Dms_DO28.js";import{JH as s,vN as w}from"./D0qhIm1r.js";import{i as W,d as E,e as c,n as i,b as m}from"./BvADYKOZ.js";const A=new Set(["new","creating"]);function g(n){let t;try{t=decodeURIComponent(n)}catch{return null}return t.length===0||A.has(t)?null:t}function f(n){const t=/^\/workspace\/([^/?#]+)\/?(?:[?#].*)?$/.exec(n);return t?g(t[1]):null}function I(n){const t=/^\/workspace\/([^/?#]+)(?:[/?#].*)?$/.exec(n);return t?g(t[1]):null}function J(n,t){return t.length>0&&I(n)===t}function p(){return typeof window>"u"?null:window.location?.pathname??null}function d(n,t){const e=`/workspace/${encodeURIComponent(n)}`,a=t?new URLSearchParams(t).toString():"";return a?`${e}?${a}`:e}function R(n,t){const e=t?.presenceFollowRequestId;return e?w(n,e):w(n)}function P(n,t){return t?i(n,{state:t}):i(n)}function o(n){return n?.tabState?.currentTabId??null}async function S(n,t,e,a){m();const u=P(t,e),r={workspaceId:n,epoch:c(),startTabId:a};return await u,r}function b(n){return!n||W()||E()}function y(n,t){if(c()!==n.epoch||t!==n.startTabId&&t!==n.workspaceId)return!1;const e=p();return e===null||f(e)===n.workspaceId}async function v(n,t,e){if(b(n))return!1;const a=await S(n,t,e,o(s.state));return y(a,o(s.state))?(s.dispatch(R(n,e)),!0):!1}function*T(n,t,e){if(b(n))return!1;const a=o(yield*h(r=>r)),u=yield*l(S,n,t,e,a);return y(u,o(yield*h(r=>r)))?(yield*k(R(n,e)),!0):!1}function _(){m();const n=c(),t=o(s.state),e=p();return()=>c()===n&&o(s.state)===t&&p()===e}function O(n,t={}){return v(n,d(n,t.query),t.state)}function $(n,t={}){return T(n,d(n,t.query),t.state)}async function N(n){const t=f(n);t?await v(t,n,void 0):await i(n)}function*j(n){const t=f(n);t?yield*l(T,t,n,void 0):yield*l(i,n)}const U=Object.freeze(Object.defineProperty({__proto__:null,claimNavigation:_,navigateToAppRoute:N,navigateToAppRouteSaga:j,openAndShowWorkspace:O,showWorkspaceSaga:$,workspaceRoute:d},Symbol.toStringTag,{value:"Module"}));export{p as a,j as b,_ as c,$ as d,d as e,J as i,N as n,O as o,f as p,U as s,I as w};
1
+ import{d as l,v as h,t as k}from"./Dms_DO28.js";import{JH as s,vN as w}from"./D0qhIm1r.js";import{i as W,d as E,e as c,n as i,b as m}from"./C3ldfPpK.js";const A=new Set(["new","creating"]);function g(n){let t;try{t=decodeURIComponent(n)}catch{return null}return t.length===0||A.has(t)?null:t}function f(n){const t=/^\/workspace\/([^/?#]+)\/?(?:[?#].*)?$/.exec(n);return t?g(t[1]):null}function I(n){const t=/^\/workspace\/([^/?#]+)(?:[/?#].*)?$/.exec(n);return t?g(t[1]):null}function J(n,t){return t.length>0&&I(n)===t}function p(){return typeof window>"u"?null:window.location?.pathname??null}function d(n,t){const e=`/workspace/${encodeURIComponent(n)}`,a=t?new URLSearchParams(t).toString():"";return a?`${e}?${a}`:e}function R(n,t){const e=t?.presenceFollowRequestId;return e?w(n,e):w(n)}function P(n,t){return t?i(n,{state:t}):i(n)}function o(n){return n?.tabState?.currentTabId??null}async function S(n,t,e,a){m();const u=P(t,e),r={workspaceId:n,epoch:c(),startTabId:a};return await u,r}function b(n){return!n||W()||E()}function y(n,t){if(c()!==n.epoch||t!==n.startTabId&&t!==n.workspaceId)return!1;const e=p();return e===null||f(e)===n.workspaceId}async function v(n,t,e){if(b(n))return!1;const a=await S(n,t,e,o(s.state));return y(a,o(s.state))?(s.dispatch(R(n,e)),!0):!1}function*T(n,t,e){if(b(n))return!1;const a=o(yield*h(r=>r)),u=yield*l(S,n,t,e,a);return y(u,o(yield*h(r=>r)))?(yield*k(R(n,e)),!0):!1}function _(){m();const n=c(),t=o(s.state),e=p();return()=>c()===n&&o(s.state)===t&&p()===e}function O(n,t={}){return v(n,d(n,t.query),t.state)}function $(n,t={}){return T(n,d(n,t.query),t.state)}async function N(n){const t=f(n);t?await v(t,n,void 0):await i(n)}function*j(n){const t=f(n);t?yield*l(T,t,n,void 0):yield*l(i,n)}const U=Object.freeze(Object.defineProperty({__proto__:null,claimNavigation:_,navigateToAppRoute:N,navigateToAppRouteSaga:j,openAndShowWorkspace:O,showWorkspaceSaga:$,workspaceRoute:d},Symbol.toStringTag,{value:"Module"}));export{p as a,j as b,_ as c,$ as d,d as e,J as i,N as n,O as o,f as p,U as s,I as w};
@@ -1,4 +1,4 @@
1
- import{I as W}from"./B2p16ZcG.js";import{p as X}from"./BdvX8QCl.js";import{b0 as z,a_ as G,aZ as Y,Y as P,U as F,V as Z,b as g,q as N,ay as A,aX as q,B as U,W as E,r as j,aV as J,a0 as K,O as Q,aO as ee}from"./Dp6gutm7.js";import{p as te}from"./BBfR26V0.js";var L=/[─━│┃└┗├┣]/,D=/[└┗├┣]/,ne=/[─━]/,V=/^[\s│┃]+$/,T=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,$=/^\s*%%/,re=" ";function _(n){return n.some(t=>L.test(t))}g(_,"isBoxDrawingFormat");function M(n){for(const t of n){const e=D.exec(t);if(e?.index&&e.index>0)return e.index}return 4}g(M,"inferSegmentWidth");function S(n,t){return n.replace(/\bline\s+(\d+)\b/gi,(e,r)=>{const s=parseInt(r,10),i=t.get(s);return i?`line ${i}`:e})}g(S,"remapErrorLines");function R(n){const t=n.split(`
1
+ import{I as W}from"./DQMGgT_X.js";import{p as X}from"./TzUDDwaI.js";import{b0 as z,a_ as G,aZ as Y,Y as P,U as F,V as Z,b as g,q as N,ay as A,aX as q,B as U,W as E,r as j,aV as J,a0 as K,O as Q,aO as ee}from"./Cdwy3-nO.js";import{p as te}from"./BBfR26V0.js";var L=/[─━│┃└┗├┣]/,D=/[└┗├┣]/,ne=/[─━]/,V=/^[\s│┃]+$/,T=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,$=/^\s*%%/,re=" ";function _(n){return n.some(t=>L.test(t))}g(_,"isBoxDrawingFormat");function M(n){for(const t of n){const e=D.exec(t);if(e?.index&&e.index>0)return e.index}return 4}g(M,"inferSegmentWidth");function S(n,t){return n.replace(/\bline\s+(\d+)\b/gi,(e,r)=>{const s=parseInt(r,10),i=t.get(s);return i?`line ${i}`:e})}g(S,"remapErrorLines");function R(n){const t=n.split(`
2
2
  `),e=new Map;let r=-1;for(const[p,c]of t.entries())if(c.trim()==="treeView-beta"){r=p;break}if(r===-1)return{text:n,lineMap:e};const s=[];for(let p=r+1;p<t.length;p++){const c=t[p];c.trim()===""||$.test(c)||T.test(c)||V.test(c)||s.push(c.replace(/\t/g," "))}if(!_(s))return{text:n,lineMap:e};const i=M(s),o=[];let a=0;for(let p=0;p<=r;p++)o.push(t[p]),a++,e.set(a,p+1);for(let p=r+1;p<t.length;p++){const c=t[p],d=c.trim(),h=p+1;if(d===""){o.push(c),a++,e.set(a,h);continue}if($.test(c)){o.push(c),a++,e.set(a,h);continue}if(T.test(c)){o.push(c),a++,e.set(a,h);continue}if(V.test(c))continue;const l=c.replace(/\t/g," "),w=D.exec(l);if(w?.index!==void 0){const f=w.index,m=Math.round(f/i)+1;let u=f+1;for(;u<l.length&&ne.test(l[u]);)u++;for(;u<l.length&&l[u]===" ";)u++;const v=l.slice(u).trimEnd();if(!v)throw new Error(`Line ${h}: Empty node — expected a filename or directory name after the box-drawing prefix`);const O=re.repeat(m);o.push(O+v),a++,e.set(a,h)}else{if(/^[\s─━│┃└┗├┣]+$/.test(l))continue;if(L.test(l))o.push(c),a++,e.set(a,h);else{if(/^\s+/.test(l))throw new Error(`Line ${h}: Unexpected indentation without box-drawing characters. In box-drawing format, use ├── or └── prefixes for indented nodes.`);o.push(c),a++,e.set(a,h)}}}return{text:o.join(`
3
3
  `),lineMap:e}}g(R,"preprocessBoxDrawing");var x=new W(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",nodeType:"directory",children:[]}]})),ie=g(()=>{x.reset(),j()},"clear"),oe=g(()=>x.records.stack[0],"getRoot"),se=g(()=>x.records.cnt,"getCount"),ae=Q.treeView,ce=g(()=>N(ae,E().treeView),"getConfig"),le=g((n,t,e,r,s,i)=>{for(;n<=x.records.stack[x.records.stack.length-1].level;)x.records.stack.pop();const o={id:x.records.cnt++,level:n,name:t,nodeType:e,icon:s,cssClass:r,description:i,children:[]};x.records.stack[x.records.stack.length-1].children.push(o),x.records.stack.push(o)},"addNode"),de={clear:ie,addNode:le,getRoot:oe,getCount:se,getConfig:ce,getAccTitle:Z,getAccDescription:F,getDiagramTitle:P,setAccDescription:Y,setAccTitle:G,setDiagramTitle:z},I=de,he=g(n=>{X(n,I);for(const t of n.nodes){const e=typeof t.indent=="number"?t.indent:0;let r=t.name;const s=r.endsWith("/");s&&(r=r.slice(0,-1));const i=s?"directory":"file",o=t.classAnnotation||void 0,a=t.iconAnnotation,p=a!==void 0?a||"none":void 0,c=t.descAnnotation||void 0,d=c?J(c,E()):void 0;I.addNode(e,r,i,o,p,d)}},"populate"),pe={parse:g(async n=>{const{text:t,lineMap:e}=R(n);try{const r=await te("treeView",t);A.debug(r),he(r)}catch(r){throw e.size>0&&r instanceof Error&&(r.message=S(r.message,e)),r}},"parse")},b={prefix:"mermaid-treeview",height:24,width:24,icons:{folder:{body:'<path fill="currentColor" d="M10.59 4.59A2 2 0 0 0 9.17 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.17z"/>'},file:{body:'<path fill="currentColor" fill-rule="evenodd" d="M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8.83a2 2 0 0 0-.59-1.42l-4.82-4.82A2 2 0 0 0 13.17 2H6Zm7.5 1.9l4.6 4.6h-3.6a1 1 0 0 1-1-1V3.9Z" clip-rule="evenodd"/>'}}};function H(n,t){const e=t?.filenameIcons?.[n];if(e)return e;const r=n.lastIndexOf(".");if(r>0){const s=n.substring(r).toLowerCase(),i=t?.extensionIcons;return i?.[s]??i?.[s.slice(1)]}}g(H,"detectIcon");function C(n,t){return n.includes(":")?n:n in b.icons||!t?`${b.prefix}:${n}`:`${t}:${n}`}g(C,"qualifyIcon");function B(n,t){if(n.icon!=="none"){if(n.icon)return C(n.icon,t.defaultIconPack);if(t.showIcons){if(n.nodeType==="file"){const e=H(n.name,t);if(e==="none")return;if(e)return C(e,t.defaultIconPack)}return`${b.prefix}:${n.nodeType==="directory"?"folder":"file"}`}}}g(B,"getNodeIcon");ee([{name:b.prefix,icons:b}]);var y=14,ge=4,fe=16,ue=g(async(n,t)=>{const e=[],r=g(i=>{const o=B(i,t);o&&e.push({icon:o,node:i}),i.children.forEach(r)},"collect");r(n);const s=await Promise.all(e.map(async({icon:i,node:o})=>({id:o.id,svg:await K(i,{height:y,width:y})})));return new Map(s.map(({id:i,svg:o})=>[i,o]))},"resolveNodeIcons"),we=g((n,t,e,r,s,i)=>{const o=r.append("g");let a="treeView-node-label";e.nodeType==="directory"&&(a+=" treeView-node-dir"),e.cssClass&&(a+=` ${e.cssClass}`);const p=y+ge,c=B(e,s),d=c!==void 0;c&&o.append("g").attr("class","treeView-node-icon").attr("transform",`translate(${n+s.paddingX}, ${t+s.paddingY})`).html(i.get(e.id)??"");const h=o.append("text").text(e.name).attr("dominant-baseline","middle").attr("class",a),{height:l,width:w}=h.node().getBBox(),f=l+s.paddingY*2,m=n+s.paddingX+(d?p:0);h.attr("x",m),h.attr("y",t+f/2);const u=m+w,v=w+s.paddingX*2+(d?p:0);return e.BBox={x:n,y:t,width:v,height:f},e.cssClass?.split(/\s+/).includes("highlight")&&o.insert("rect",":first-child").attr("x",n).attr("y",t+1).attr("width",0).attr("height",f-2).attr("rx",3).attr("class","treeView-highlight-bg"),{node:e,nodeGroup:o,labelRightEdge:u,centerY:t+f/2}},"positionLabel"),k=g((n,t,e,r,s,i)=>n.append("line").attr("x1",t).attr("y1",e).attr("x2",r).attr("y2",s).attr("stroke-width",i).attr("class","treeView-node-line"),"positionLine"),me=g((n,t,e,r)=>{let s=0,i=0;const o=[],a=g((d,h,l,w)=>{const f=w*(l.rowIndent+l.paddingX),m=we(f,s,h,d,l,r);o.push(m);const{height:u,width:v}=h.BBox;k(d,f-l.rowIndent,s+u/2,f,s+u/2,l.lineThickness),i=Math.max(i,f+v),s+=u},"drawNode"),p=g((d,h=0)=>{a(n,d,e,h),d.children.forEach(m=>{p(m,h+1)});const{x:l,y:w,height:f}=d.BBox;if(d.children.length){const{y:m,height:u}=d.children[d.children.length-1].BBox;k(n,l+e.paddingX,w+f,l+e.paddingX,m+u/2+e.lineThickness/2,e.lineThickness)}},"processNode");p(t);const c=o.filter(d=>d.node.description);if(c.length>0){const h=Math.max(...o.map(l=>l.labelRightEdge))+fe;for(const l of c){const f=l.nodeGroup.append("text").text(l.node.description).attr("dominant-baseline","middle").attr("class","treeView-node-description").attr("x",h).attr("y",l.centerY).node().getBBox();i=Math.max(i,h+f.width+e.paddingX)}}for(const d of o)if(d.node.cssClass?.split(/\s+/).includes("highlight")){const h=d.nodeGroup.select(".treeView-highlight-bg");if(!h.empty()){const l=i-d.node.BBox.x+8;h.attr("width",l),i=Math.max(i,d.node.BBox.x+l+2)}}return{totalHeight:s,totalWidth:i}},"drawTree"),xe=g(async(n,t,e,r)=>{A.debug(`Rendering treeView diagram
4
4
  `+n);const s=r.db,i=s.getRoot(),o=s.getConfig(),a=q(t),p=a.append("g");p.attr("class","tree-view");const c=await ue(i,o),{totalHeight:d,totalWidth:h}=me(p,i,o,c);a.attr("viewBox",`-${o.lineThickness/2} 0 ${h} ${d}`),U(a,d,h,o.useMaxWidth)},"draw"),ve={draw:xe},be=ve,Ie={labelFontSize:"16px",labelColor:"black",lineColor:"black",iconColor:"#546e7a",descriptionColor:"#6a9955",highlightBg:"rgba(255, 193, 7, 0.15)",highlightStroke:"#ffc107"},Ce=g(({treeView:n})=>{const{labelFontSize:t,labelColor:e,lineColor:r,iconColor:s,descriptionColor:i,highlightBg:o,highlightStroke:a}=N(Ie,n);return`
@@ -1 +1 @@
1
- var Vt=Object.defineProperty;var yt=e=>{throw TypeError(e)};var jt=(e,i,s)=>i in e?Vt(e,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[i]=s;var J=(e,i,s)=>jt(e,typeof i!="symbol"?i+"":i,s),bt=(e,i,s)=>i.has(e)||yt("Cannot "+s);var t=(e,i,s)=>(bt(e,i,"read from private field"),s?s.call(e):i.get(e)),g=(e,i,s)=>i.has(e)?yt("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(e):i.set(e,s),a=(e,i,s,n)=>(bt(e,i,"write to private field"),n?n.call(e,s):i.set(e,s),s),o=(e,i,s)=>(bt(e,i,"access private method"),s);var vt=(e,i,s,n)=>({set _(r){a(e,i,r,s)},get _(){return t(e,i,n)}});import{_ as wt}from"./Fcr7AvC-.js";import{m as xt,A as qt,r as Ht,Q as Nt,aX as Gt,R as Jt}from"./DjepxDVb.js";import{B as Ft,D as Kt}from"./BUHPTzFz.js";import{I as F,E as Ct,b as Qt,a as Ut}from"./DICr2Lvd.js";function Xt(e,i){for(const s of Array.isArray(e)?e:[e]){let n=xt.get(s.name);n==null&&(n=s,xt.set(s.name,n)),i.attachLanguages([n]),qt.add(n.name)}}function Zt(e,i){let s;return function(...n){clearTimeout(s),s=setTimeout(()=>e.apply(this,n),i)}}const Dt=0;let Wt=0;var H,T,P,Q,L,st,it,C,U,nt,u,D,_,A,O,b,v,z,dt,E,B,X,N,R,Z,Tt,ft,h,K,ut,zt,Et,Y,pt,It,ct,tt,Ot,gt,et,Bt,Pt,At,Yt=(At=class{constructor(e,i,s){g(this,h);J(this,"backend");g(this,H);g(this,T);g(this,P);g(this,Q);g(this,L);g(this,st);g(this,it);g(this,C);g(this,U);g(this,nt,!1);g(this,u,[F]);g(this,D,[]);g(this,_,0);g(this,A,[]);g(this,O,-1);g(this,b,!0);g(this,v,!1);g(this,z,0);g(this,dt,++Wt);g(this,E,-1);g(this,B,-1);g(this,X);g(this,N,0);g(this,R,[]);g(this,Z,!1);g(this,Tt,Zt(async e=>{if(t(this,nt))return;const{startingLine:i=0,totalLines:s=1/0}=e??{},n=Math.min(s===1/0?1/0:i+s,t(this,L).lineCount);if(t(this,T)==null&&!Lt(t(this,L).languageId)){if(await this.backend?.loadLanguages([t(this,L).languageId]),t(this,nt))return;a(this,T,t(this,H).getLanguage(t(this,L).languageId))}o(this,h,K).call(this),o(this,h,It).call(this,n)},500));g(this,ft,({data:e})=>{if(typeof e!="object"||e===null)return;const{type:i,tokenizerId:s,jobId:n}=e;i==="tokenize"&&s===t(this,dt)&&typeof n=="number"&&n===t(this,z)&&(t(this,E)>=0?o(this,h,Bt).call(this,n):o(this,h,Pt).call(this,n))});this.backend=s,a(this,H,e),a(this,L,i.textDocument),a(this,P,i.theme),a(this,Q,[]),a(this,st,i.tokenizeMaxLineLength??1e3),a(this,it,i.onDeferTokenize),a(this,C,i.matchBrackets!==!1),a(this,U,i.__debug??!1),o(this,h,ut).call(this),o(this,h,K).call(this)}getStringCommentRegexpRangesInLine(e){if(!t(this,C)||e<0||e>=t(this,L).lineCount||(o(this,h,ut).call(this),t(this,T)==null))return null;if(t(this,R)[e]===void 0){o(this,h,et).call(this,e);const i=t(this,u)[e]??F,s=o(this,h,ct).call(this,e,i);t(this,u)[e+1]=s.state}return t(this,R)[e]??null}setTheme(e){t(this,P)!==e&&(a(this,P,e),o(this,h,K).call(this),this.stopBackgroundTokenize(),a(this,u,[F]),a(this,D,[]),a(this,_,0),a(this,A,[]),t(this,T)!=null&&t(this,L).lineCount>0&&o(this,h,pt).call(this,0))}dispose(){a(this,nt,!0),this.stopBackgroundTokenize(),o(this,h,Et).call(this)}tokenize(e,i,s=!1){if(o(this,h,ut).call(this),o(this,h,K).call(this),t(this,T)==null&&!Lt(t(this,L).languageId))throw new Error(`Grammar for language "${t(this,L).languageId}" not loaded`);const{lineCount:n}=t(this,L),{startingLine:r=0,totalLines:l=1/0}=i??{},d=l===1/0?n:Math.min(r+l,n),c=e.startLine,f=Math.max(r,c),I=i!=null&&l!==1/0&&e.lineDelta>0&&c<d&&e.endLine>=d,m=e.lineDelta===0&&(e.changedLineChanges?.every(([,,p])=>p===0)??!0);t(this,C)&&!m&&(t(this,R).length=Math.min(t(this,R).length,e.startLine));const M=s&&e.lineDelta!==0&&c>=r,S=m||i==null||c>=f,y=e.changedLineRanges??[[c,e.endLine]];a(this,D,[]),a(this,_,0),a(this,A,[]);let V=-1;if(c<f)for(const[p,w]of y)p<f&&(V=Math.max(V,Math.min(w,f-1)));const mt=V>=c&&(m||e.lineDelta<0);m?o(this,h,et).call(this,c):(o(this,h,Ot).call(this,e),(i==null||c>=f)&&o(this,h,et).call(this,f));let j=0,St=y[j][1],ht,Rt=0,k=m?y[j][0]:f,rt=!1;const Mt=new Map,W=mt?new Map:void 0;if(W!=null&&!m){const p=Math.min(V+1,f,d);if(p>c){o(this,h,et).call(this,p);let w=c,ot=t(this,u)[w]??F;for(;w<p;w++){const x=o(this,h,ct).call(this,w,ot);ot=x.state,W.set(w,x.resolvedTokens)}t(this,u)[p]=ot}}let q=t(this,u)[k]??F;for(;k<d;){const p=m?t(this,u)[k+1]:M?o(this,h,gt).call(this,k+1):void 0;S&&(t(this,u)[k]=q);const{resolvedTokens:w,state:ot}=o(this,h,ct).call(this,k,q);if(q=ot,k>=f?Mt.set(k,w):W?.set(k,w),S&&(t(this,u)[k+1]=q),rt=k>=St&&(m||M)&&p!=null&&q.equals(p),rt){j++;const x=y[j];if(x==null)break;if(x[0]>=d){ht=x[0],Rt=j;break}let lt=t(this,u)[x[0]];if(M)for(let kt=k+2;kt<=x[0]&&(lt=o(this,h,gt).call(this,kt),lt!=null);kt++)t(this,u)[kt]=lt;lt==null?(St=x[1],k++):(k=x[0],q=lt,St=x[1]),rt=!1;continue}k++}if(S&&(k<d?t(this,u)[k+1]=q:t(this,u)[k]=q),rt&&M&&ht==null){for(let p=k+2;p<=n;p++){const w=o(this,h,gt).call(this,p);if(w==null)break;t(this,u)[p]=w}a(this,D,[]),a(this,_,0),a(this,A,[])}if(W!=null&&W.size>0&&t(this,it).call(this,W),ht!=null)t(this,C)&&m&&(t(this,R).length=Math.min(t(this,R).length,ht)),o(this,h,pt).call(this,ht,y,Rt);else if(!rt&&k<n){const p=I&&c>=f?d:c<f&&!m?c:k;t(this,C)&&m&&(t(this,R).length=Math.min(t(this,R).length,p)),o(this,h,pt).call(this,p,y,j)}return Mt}prebuildStateStack(e){o(this,h,ut).call(this),t(this,Tt).call(this,e)}stopBackgroundTokenize(){a(this,B,-1),!t(this,b)&&(a(this,b,!0),a(this,v,!1),a(this,O,-1),a(this,E,-1),a(this,X,void 0),a(this,N,0),a(this,D,[]),a(this,_,0),a(this,A,[]),o(this,h,Et).call(this))}pauseBackgroundTokenize(){t(this,b)||t(this,v)||(t(this,U)&&console.log("[diffs/editor] background tokenization paused",{jobId:t(this,z)}),a(this,v,!0))}resumeBackgroundTokenize(){t(this,b)||!t(this,v)||t(this,T)==null||t(this,O)<0||(t(this,U)&&console.log("[diffs/editor] background tokenization resumed",{jobId:t(this,z)}),a(this,v,!1),o(this,h,Y).call(this,t(this,z)))}},H=new WeakMap,T=new WeakMap,P=new WeakMap,Q=new WeakMap,L=new WeakMap,st=new WeakMap,it=new WeakMap,C=new WeakMap,U=new WeakMap,nt=new WeakMap,u=new WeakMap,D=new WeakMap,_=new WeakMap,A=new WeakMap,O=new WeakMap,b=new WeakMap,v=new WeakMap,z=new WeakMap,dt=new WeakMap,E=new WeakMap,B=new WeakMap,X=new WeakMap,N=new WeakMap,R=new WeakMap,Z=new WeakMap,Tt=new WeakMap,ft=new WeakMap,h=new WeakSet,K=function(){if(t(this,P)==="")return;this.backend?.getTheme(t(this,P));const{colorMap:e}=t(this,H).setTheme(t(this,P));a(this,Q,e)},ut=function(){t(this,T)==null&&!Lt(t(this,L).languageId)&&t(this,H).getLoadedLanguages().includes(t(this,L).languageId)&&a(this,T,t(this,H).getLanguage(t(this,L).languageId))},zt=function(){t(this,Z)||(globalThis.addEventListener("message",t(this,ft)),a(this,Z,!0))},Et=function(){t(this,Z)&&(globalThis.removeEventListener("message",t(this,ft)),a(this,Z,!1))},Y=function(e){globalThis.postMessage({type:"tokenize",tokenizerId:t(this,dt),jobId:e})},pt=function(e,i,s=0){if(Lt(t(this,L).languageId))return;const n=++vt(this,z)._;t(this,U)&&console.log("[diffs/editor] background tokenization scheduled",{jobId:n,startLine:e,changedLineRanges:i,changedRangeIndex:s}),a(this,b,!1),a(this,v,!1),a(this,O,e),t(this,E)>=0&&a(this,B,Math.max(t(this,B),t(this,E))),a(this,E,-1),a(this,X,i),a(this,N,s),o(this,h,zt).call(this),o(this,h,Y).call(this,n)},It=function(e){if(t(this,T)==null||t(this,u).length>e)return;if(!t(this,b)){t(this,E)>=0?a(this,E,Math.max(t(this,E),e)):a(this,B,Math.max(t(this,B),e));return}const i=++vt(this,z)._;a(this,b,!1),a(this,v,!1),a(this,O,t(this,u).length-1),a(this,E,e),a(this,B,-1),a(this,X,void 0),a(this,N,0),o(this,h,zt).call(this),o(this,h,Y).call(this,i)},ct=function(e,i){const s=t(this,L).getLineText(e);if(s.length>=t(this,st))return console.warn(`[diffs] Line(${e}) too long to tokenize: ${s.length}`),o(this,h,tt).call(this,e,null),{resolvedTokens:[[0,"",s]],state:i};if(t(this,T)==null||s===""||s.trim()==="")return o(this,h,tt).call(this,e,null),{resolvedTokens:[[0,"",s]],state:i};const n=_t(t(this,T),t(this,Q),s,i,Dt,t(this,C));return o(this,h,tt).call(this,e,n.bracketIgnoredRanges),{resolvedTokens:n.resolvedTokens,state:n.ruleStack}},tt=function(e,i){t(this,C)&&(t(this,R)[e]=i)},Ot=function(e){const i=e.changedLineChanges??[[e.startLine,e.endLine,e.lineDelta]],s=e.startLine+1;s<=t(this,u).length-s?(a(this,D,t(this,u)),a(this,_,0),a(this,u,t(this,u).slice(0,s))):(a(this,_,s),a(this,D,t(this,u).slice(s)),t(this,u).length=Math.min(t(this,u).length,s)),a(this,A,i)},gt=function(e){let i=e;for(let s=t(this,A).length-1;s>=0;s--){const[n,r,l]=t(this,A)[s];if(l!==0){if(i>r)i-=l;else if(i>n)return t(this,u)[e]}}return t(this,D)[i-t(this,_)]??t(this,u)[e]},et=function(e,i){const s=Math.min(Math.max(0,e),t(this,L).lineCount);if(t(this,u).length>s||t(this,T)==null)return!0;const n=i==null?0:performance.now();let r=t(this,u).length-1,l=t(this,u)[r]??F;for(;r<s;){t(this,u)[r]=l;const d=t(this,L).getLineText(r);if(d.length<t(this,st)&&d!==""&&d.trim()!==""){const c=_t(t(this,T),t(this,Q),d,l,Dt,t(this,C),!1);o(this,h,tt).call(this,r,c.bracketIgnoredRanges),l=c.ruleStack}else o(this,h,tt).call(this,r,null);if(r++,t(this,u)[r]=l,i!=null&&performance.now()-n>i)break}return r>=s},Bt=function(e){if(t(this,b)||t(this,v)||t(this,T)==null||e!==t(this,z))return;o(this,h,K).call(this);const i=o(this,h,et).call(this,t(this,E),1);if(!(t(this,b)||t(this,v)||e!==t(this,z))){if(i){this.stopBackgroundTokenize();return}a(this,O,t(this,u).length-1),o(this,h,Y).call(this,e)}},Pt=function(e){if(t(this,b)||t(this,v)||t(this,T)==null||e!==t(this,z))return;o(this,h,K).call(this);const i=performance.now(),s=new Map,n=t(this,L).lineCount,r=t(this,X);let l=t(this,O),d=t(this,u)[l]??F,c=!1,f=t(this,N),I=r?.[f]?.[1];for(;l<n;){t(this,u)[l]=d;const m=I!=null?o(this,h,gt).call(this,l+1):void 0,M=o(this,h,ct).call(this,l,d);if(s.set(l,M.resolvedTokens),d=M.state,t(this,u)[l+1]=d,c=I!=null&&l>=I&&m!=null&&d.equals(m),l++,c){f++;const S=r?.[f];if(S==null)break;if(I=S[1],t(this,u)[S[0]]==null)c=!1;else{l=S[0],d=t(this,u)[l]??d,c=!1;continue}}if(performance.now()-i>1)break}if(t(this,it).call(this,s),!(t(this,b)||t(this,v)||e!==t(this,z))){if(c||l>=n){const m=t(this,B);this.stopBackgroundTokenize(),m>=0&&o(this,h,It).call(this,m);return}a(this,O,l),a(this,N,f),o(this,h,Y).call(this,e)}},At);function _t(e,i,s,n,r,l=!0,d=!0){const c=e.tokenizeLine2(s,n,r);c.stoppedEarly&&console.warn(`[diffs] Time limit reached when tokenizing line: ${s.substring(0,100)}`);const f=c.tokens,I=f.length/2,m=[],M=[];if(!d&&!l)return{ruleStack:c.ruleStack,resolvedTokens:m,bracketIgnoredRanges:M};for(let S=0;S<I;S++){const y=f[2*S],V=S+1<I?f[2*S+2]:s.length;if(y===V)continue;const mt=f[2*S+1];if(d){const j=Ct.getForeground(mt);m.push([y,i[j],s.slice(y,V)])}l&&Ct.getTokenType(mt)>0&&M.push([y,V])}return{ruleStack:c.ruleStack,resolvedTokens:m,bracketIgnoredRanges:M}}function Lt(e){return e==="text"||e==="ansi"}var $,G,at,te=(at=class extends Ft{constructor(s,n){super();J(this,"highlighter");J(this,"options");g(this,$,"");g(this,G);this.highlighter=s,this.options=n}tokenizeChunk(s,n){const r=(t(this,$)+s).split(/(\r\n|\r|\n)/);let l=[];for(let d=0;d<r.length;d+=2){const c=r[d],f=this.highlighter.codeToTokens(c,{...this.options,grammarState:t(this,G)}),I=f.tokens[0].map(m=>({...m,offset:m.offset+this.stableOffset}));d+1<r.length?(Ht(n,I),this.pushLineBreak(n,c.length,r[d+1]),a(this,G,f.grammarState)):(l=I,a(this,$,c))}return{unstable:l,tailLength:t(this,$).length}}clone(){this.assertActive();const s=new at(this.highlighter,this.options);return this.copyStateTo(s),a(s,$,t(this,$)),a(s,G,t(this,G)),s}resetSource(){a(this,$,""),a(this,G,void 0)}releaseSource(){this.resetSource()}},$=new WeakMap,G=new WeakMap,at),he=class $t extends Kt{constructor(s,n){super(s,Nt(s));J(this,"raw");J(this,"loadedThemes",new Map);J(this,"attachedLanguages",new Set(["text","ansi"]));this.raw=n}static async create(s){const n=s==="shiki-wasm"?(await wt(async()=>{const{createOnigurumaEngine:l}=await import("./fp9mRO0R.js");return{createOnigurumaEngine:l}},[],import.meta.url)).createOnigurumaEngine(wt(()=>import("./Cey7Y6ql.js"),[],import.meta.url)):(await wt(async()=>{const{createJavaScriptRegexEngine:l}=await import("./LU5PuYrD.js");return{createJavaScriptRegexEngine:l}},[],import.meta.url)).createJavaScriptRegexEngine(),r=await Qt({themes:[],langs:[],engine:n});return new $t(s,r)}getTheme(s){this.assertNotDisposed();const n=this.loadedThemes.get(s),r=this.themeResolver.getResolvedTheme(s)??n;if(r==null)throw new Error(`Theme "${s}" has not been resolved`);if(n!==r){const l=r.textmate??(r.cssVariables!=null?Ut(r.cssVariables):void 0);if(l==null)throw new Error(`Theme "${s}" does not support Shiki`);this.raw.setTheme({...l,name:s}),this.loadedThemes.set(s,r)}return r}codeToTokens(s,n){return this.raw.codeToTokens(s,this.resolveOptions(n))}createEditorTokenizer(s){return new Yt(this.raw,s,this)}createStreamTokenizer(s){return new te(this.raw,this.resolveOptions(s))}async loadLanguages(s){this.assertNotDisposed();const n=s.filter(r=>!this.attachedLanguages.has(r));Xt(await Gt(n),this)}hasLoadedLanguages(s){if(this.disposed)return!1;let n;return s.every(r=>this.attachedLanguages.has(r)?!0:Jt.has(r)?!1:(n??=this.raw.getLoadedLanguages(),n.includes(r)))}attachLanguages(s){this.assertNotDisposed();for(const n of s){if(this.attachedLanguages.has(n.name))continue;const r=n.data.find(l=>l.name===n.name||l.aliases?.includes(n.name)===!0);if(r==null)throw new Error(`attachResolvedLanguages: No returned grammar declares "${n.name}" as its name or an alias.`);this.raw.loadLanguageSync(n.data);try{this.raw.getLanguage(n.name)}catch{throw new Error(`attachResolvedLanguages: "${r.name}" is already loaded without alias "${n.name}". Load the alias first or give the grammar a unique name.`)}this.attachedLanguages.add(n.name)}}releaseResources(){this.loadedThemes.clear(),this.attachedLanguages.clear(),this.raw.dispose()}resolveOptions({theme:s,themes:n,...r}){if(this.assertNotDisposed(),s!=null)return this.getTheme(s),{...r,theme:s};if(n==null)throw new Error("A theme or themes option is required");for(const l of Object.values(n))this.getTheme(l);return{...r,themes:n}}};export{he as ShikiHighlighter};
1
+ var Vt=Object.defineProperty;var yt=e=>{throw TypeError(e)};var jt=(e,i,s)=>i in e?Vt(e,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[i]=s;var J=(e,i,s)=>jt(e,typeof i!="symbol"?i+"":i,s),bt=(e,i,s)=>i.has(e)||yt("Cannot "+s);var t=(e,i,s)=>(bt(e,i,"read from private field"),s?s.call(e):i.get(e)),g=(e,i,s)=>i.has(e)?yt("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(e):i.set(e,s),a=(e,i,s,n)=>(bt(e,i,"write to private field"),n?n.call(e,s):i.set(e,s),s),o=(e,i,s)=>(bt(e,i,"access private method"),s);var vt=(e,i,s,n)=>({set _(r){a(e,i,r,s)},get _(){return t(e,i,n)}});import{_ as wt}from"./Fcr7AvC-.js";import{m as xt,A as qt,r as Ht,Q as Nt,aX as Gt,R as Jt}from"./Dm529rkq.js";import{B as Ft,D as Kt}from"./G0vgahzI.js";import{I as F,E as Ct,b as Qt,a as Ut}from"./DICr2Lvd.js";function Xt(e,i){for(const s of Array.isArray(e)?e:[e]){let n=xt.get(s.name);n==null&&(n=s,xt.set(s.name,n)),i.attachLanguages([n]),qt.add(n.name)}}function Zt(e,i){let s;return function(...n){clearTimeout(s),s=setTimeout(()=>e.apply(this,n),i)}}const Dt=0;let Wt=0;var H,T,P,Q,L,st,it,C,U,nt,u,D,_,A,O,b,v,z,dt,E,B,X,N,R,Z,Tt,ft,h,K,ut,zt,Et,Y,pt,It,ct,tt,Ot,gt,et,Bt,Pt,At,Yt=(At=class{constructor(e,i,s){g(this,h);J(this,"backend");g(this,H);g(this,T);g(this,P);g(this,Q);g(this,L);g(this,st);g(this,it);g(this,C);g(this,U);g(this,nt,!1);g(this,u,[F]);g(this,D,[]);g(this,_,0);g(this,A,[]);g(this,O,-1);g(this,b,!0);g(this,v,!1);g(this,z,0);g(this,dt,++Wt);g(this,E,-1);g(this,B,-1);g(this,X);g(this,N,0);g(this,R,[]);g(this,Z,!1);g(this,Tt,Zt(async e=>{if(t(this,nt))return;const{startingLine:i=0,totalLines:s=1/0}=e??{},n=Math.min(s===1/0?1/0:i+s,t(this,L).lineCount);if(t(this,T)==null&&!Lt(t(this,L).languageId)){if(await this.backend?.loadLanguages([t(this,L).languageId]),t(this,nt))return;a(this,T,t(this,H).getLanguage(t(this,L).languageId))}o(this,h,K).call(this),o(this,h,It).call(this,n)},500));g(this,ft,({data:e})=>{if(typeof e!="object"||e===null)return;const{type:i,tokenizerId:s,jobId:n}=e;i==="tokenize"&&s===t(this,dt)&&typeof n=="number"&&n===t(this,z)&&(t(this,E)>=0?o(this,h,Bt).call(this,n):o(this,h,Pt).call(this,n))});this.backend=s,a(this,H,e),a(this,L,i.textDocument),a(this,P,i.theme),a(this,Q,[]),a(this,st,i.tokenizeMaxLineLength??1e3),a(this,it,i.onDeferTokenize),a(this,C,i.matchBrackets!==!1),a(this,U,i.__debug??!1),o(this,h,ut).call(this),o(this,h,K).call(this)}getStringCommentRegexpRangesInLine(e){if(!t(this,C)||e<0||e>=t(this,L).lineCount||(o(this,h,ut).call(this),t(this,T)==null))return null;if(t(this,R)[e]===void 0){o(this,h,et).call(this,e);const i=t(this,u)[e]??F,s=o(this,h,ct).call(this,e,i);t(this,u)[e+1]=s.state}return t(this,R)[e]??null}setTheme(e){t(this,P)!==e&&(a(this,P,e),o(this,h,K).call(this),this.stopBackgroundTokenize(),a(this,u,[F]),a(this,D,[]),a(this,_,0),a(this,A,[]),t(this,T)!=null&&t(this,L).lineCount>0&&o(this,h,pt).call(this,0))}dispose(){a(this,nt,!0),this.stopBackgroundTokenize(),o(this,h,Et).call(this)}tokenize(e,i,s=!1){if(o(this,h,ut).call(this),o(this,h,K).call(this),t(this,T)==null&&!Lt(t(this,L).languageId))throw new Error(`Grammar for language "${t(this,L).languageId}" not loaded`);const{lineCount:n}=t(this,L),{startingLine:r=0,totalLines:l=1/0}=i??{},d=l===1/0?n:Math.min(r+l,n),c=e.startLine,f=Math.max(r,c),I=i!=null&&l!==1/0&&e.lineDelta>0&&c<d&&e.endLine>=d,m=e.lineDelta===0&&(e.changedLineChanges?.every(([,,p])=>p===0)??!0);t(this,C)&&!m&&(t(this,R).length=Math.min(t(this,R).length,e.startLine));const M=s&&e.lineDelta!==0&&c>=r,S=m||i==null||c>=f,y=e.changedLineRanges??[[c,e.endLine]];a(this,D,[]),a(this,_,0),a(this,A,[]);let V=-1;if(c<f)for(const[p,w]of y)p<f&&(V=Math.max(V,Math.min(w,f-1)));const mt=V>=c&&(m||e.lineDelta<0);m?o(this,h,et).call(this,c):(o(this,h,Ot).call(this,e),(i==null||c>=f)&&o(this,h,et).call(this,f));let j=0,St=y[j][1],ht,Rt=0,k=m?y[j][0]:f,rt=!1;const Mt=new Map,W=mt?new Map:void 0;if(W!=null&&!m){const p=Math.min(V+1,f,d);if(p>c){o(this,h,et).call(this,p);let w=c,ot=t(this,u)[w]??F;for(;w<p;w++){const x=o(this,h,ct).call(this,w,ot);ot=x.state,W.set(w,x.resolvedTokens)}t(this,u)[p]=ot}}let q=t(this,u)[k]??F;for(;k<d;){const p=m?t(this,u)[k+1]:M?o(this,h,gt).call(this,k+1):void 0;S&&(t(this,u)[k]=q);const{resolvedTokens:w,state:ot}=o(this,h,ct).call(this,k,q);if(q=ot,k>=f?Mt.set(k,w):W?.set(k,w),S&&(t(this,u)[k+1]=q),rt=k>=St&&(m||M)&&p!=null&&q.equals(p),rt){j++;const x=y[j];if(x==null)break;if(x[0]>=d){ht=x[0],Rt=j;break}let lt=t(this,u)[x[0]];if(M)for(let kt=k+2;kt<=x[0]&&(lt=o(this,h,gt).call(this,kt),lt!=null);kt++)t(this,u)[kt]=lt;lt==null?(St=x[1],k++):(k=x[0],q=lt,St=x[1]),rt=!1;continue}k++}if(S&&(k<d?t(this,u)[k+1]=q:t(this,u)[k]=q),rt&&M&&ht==null){for(let p=k+2;p<=n;p++){const w=o(this,h,gt).call(this,p);if(w==null)break;t(this,u)[p]=w}a(this,D,[]),a(this,_,0),a(this,A,[])}if(W!=null&&W.size>0&&t(this,it).call(this,W),ht!=null)t(this,C)&&m&&(t(this,R).length=Math.min(t(this,R).length,ht)),o(this,h,pt).call(this,ht,y,Rt);else if(!rt&&k<n){const p=I&&c>=f?d:c<f&&!m?c:k;t(this,C)&&m&&(t(this,R).length=Math.min(t(this,R).length,p)),o(this,h,pt).call(this,p,y,j)}return Mt}prebuildStateStack(e){o(this,h,ut).call(this),t(this,Tt).call(this,e)}stopBackgroundTokenize(){a(this,B,-1),!t(this,b)&&(a(this,b,!0),a(this,v,!1),a(this,O,-1),a(this,E,-1),a(this,X,void 0),a(this,N,0),a(this,D,[]),a(this,_,0),a(this,A,[]),o(this,h,Et).call(this))}pauseBackgroundTokenize(){t(this,b)||t(this,v)||(t(this,U)&&console.log("[diffs/editor] background tokenization paused",{jobId:t(this,z)}),a(this,v,!0))}resumeBackgroundTokenize(){t(this,b)||!t(this,v)||t(this,T)==null||t(this,O)<0||(t(this,U)&&console.log("[diffs/editor] background tokenization resumed",{jobId:t(this,z)}),a(this,v,!1),o(this,h,Y).call(this,t(this,z)))}},H=new WeakMap,T=new WeakMap,P=new WeakMap,Q=new WeakMap,L=new WeakMap,st=new WeakMap,it=new WeakMap,C=new WeakMap,U=new WeakMap,nt=new WeakMap,u=new WeakMap,D=new WeakMap,_=new WeakMap,A=new WeakMap,O=new WeakMap,b=new WeakMap,v=new WeakMap,z=new WeakMap,dt=new WeakMap,E=new WeakMap,B=new WeakMap,X=new WeakMap,N=new WeakMap,R=new WeakMap,Z=new WeakMap,Tt=new WeakMap,ft=new WeakMap,h=new WeakSet,K=function(){if(t(this,P)==="")return;this.backend?.getTheme(t(this,P));const{colorMap:e}=t(this,H).setTheme(t(this,P));a(this,Q,e)},ut=function(){t(this,T)==null&&!Lt(t(this,L).languageId)&&t(this,H).getLoadedLanguages().includes(t(this,L).languageId)&&a(this,T,t(this,H).getLanguage(t(this,L).languageId))},zt=function(){t(this,Z)||(globalThis.addEventListener("message",t(this,ft)),a(this,Z,!0))},Et=function(){t(this,Z)&&(globalThis.removeEventListener("message",t(this,ft)),a(this,Z,!1))},Y=function(e){globalThis.postMessage({type:"tokenize",tokenizerId:t(this,dt),jobId:e})},pt=function(e,i,s=0){if(Lt(t(this,L).languageId))return;const n=++vt(this,z)._;t(this,U)&&console.log("[diffs/editor] background tokenization scheduled",{jobId:n,startLine:e,changedLineRanges:i,changedRangeIndex:s}),a(this,b,!1),a(this,v,!1),a(this,O,e),t(this,E)>=0&&a(this,B,Math.max(t(this,B),t(this,E))),a(this,E,-1),a(this,X,i),a(this,N,s),o(this,h,zt).call(this),o(this,h,Y).call(this,n)},It=function(e){if(t(this,T)==null||t(this,u).length>e)return;if(!t(this,b)){t(this,E)>=0?a(this,E,Math.max(t(this,E),e)):a(this,B,Math.max(t(this,B),e));return}const i=++vt(this,z)._;a(this,b,!1),a(this,v,!1),a(this,O,t(this,u).length-1),a(this,E,e),a(this,B,-1),a(this,X,void 0),a(this,N,0),o(this,h,zt).call(this),o(this,h,Y).call(this,i)},ct=function(e,i){const s=t(this,L).getLineText(e);if(s.length>=t(this,st))return console.warn(`[diffs] Line(${e}) too long to tokenize: ${s.length}`),o(this,h,tt).call(this,e,null),{resolvedTokens:[[0,"",s]],state:i};if(t(this,T)==null||s===""||s.trim()==="")return o(this,h,tt).call(this,e,null),{resolvedTokens:[[0,"",s]],state:i};const n=_t(t(this,T),t(this,Q),s,i,Dt,t(this,C));return o(this,h,tt).call(this,e,n.bracketIgnoredRanges),{resolvedTokens:n.resolvedTokens,state:n.ruleStack}},tt=function(e,i){t(this,C)&&(t(this,R)[e]=i)},Ot=function(e){const i=e.changedLineChanges??[[e.startLine,e.endLine,e.lineDelta]],s=e.startLine+1;s<=t(this,u).length-s?(a(this,D,t(this,u)),a(this,_,0),a(this,u,t(this,u).slice(0,s))):(a(this,_,s),a(this,D,t(this,u).slice(s)),t(this,u).length=Math.min(t(this,u).length,s)),a(this,A,i)},gt=function(e){let i=e;for(let s=t(this,A).length-1;s>=0;s--){const[n,r,l]=t(this,A)[s];if(l!==0){if(i>r)i-=l;else if(i>n)return t(this,u)[e]}}return t(this,D)[i-t(this,_)]??t(this,u)[e]},et=function(e,i){const s=Math.min(Math.max(0,e),t(this,L).lineCount);if(t(this,u).length>s||t(this,T)==null)return!0;const n=i==null?0:performance.now();let r=t(this,u).length-1,l=t(this,u)[r]??F;for(;r<s;){t(this,u)[r]=l;const d=t(this,L).getLineText(r);if(d.length<t(this,st)&&d!==""&&d.trim()!==""){const c=_t(t(this,T),t(this,Q),d,l,Dt,t(this,C),!1);o(this,h,tt).call(this,r,c.bracketIgnoredRanges),l=c.ruleStack}else o(this,h,tt).call(this,r,null);if(r++,t(this,u)[r]=l,i!=null&&performance.now()-n>i)break}return r>=s},Bt=function(e){if(t(this,b)||t(this,v)||t(this,T)==null||e!==t(this,z))return;o(this,h,K).call(this);const i=o(this,h,et).call(this,t(this,E),1);if(!(t(this,b)||t(this,v)||e!==t(this,z))){if(i){this.stopBackgroundTokenize();return}a(this,O,t(this,u).length-1),o(this,h,Y).call(this,e)}},Pt=function(e){if(t(this,b)||t(this,v)||t(this,T)==null||e!==t(this,z))return;o(this,h,K).call(this);const i=performance.now(),s=new Map,n=t(this,L).lineCount,r=t(this,X);let l=t(this,O),d=t(this,u)[l]??F,c=!1,f=t(this,N),I=r?.[f]?.[1];for(;l<n;){t(this,u)[l]=d;const m=I!=null?o(this,h,gt).call(this,l+1):void 0,M=o(this,h,ct).call(this,l,d);if(s.set(l,M.resolvedTokens),d=M.state,t(this,u)[l+1]=d,c=I!=null&&l>=I&&m!=null&&d.equals(m),l++,c){f++;const S=r?.[f];if(S==null)break;if(I=S[1],t(this,u)[S[0]]==null)c=!1;else{l=S[0],d=t(this,u)[l]??d,c=!1;continue}}if(performance.now()-i>1)break}if(t(this,it).call(this,s),!(t(this,b)||t(this,v)||e!==t(this,z))){if(c||l>=n){const m=t(this,B);this.stopBackgroundTokenize(),m>=0&&o(this,h,It).call(this,m);return}a(this,O,l),a(this,N,f),o(this,h,Y).call(this,e)}},At);function _t(e,i,s,n,r,l=!0,d=!0){const c=e.tokenizeLine2(s,n,r);c.stoppedEarly&&console.warn(`[diffs] Time limit reached when tokenizing line: ${s.substring(0,100)}`);const f=c.tokens,I=f.length/2,m=[],M=[];if(!d&&!l)return{ruleStack:c.ruleStack,resolvedTokens:m,bracketIgnoredRanges:M};for(let S=0;S<I;S++){const y=f[2*S],V=S+1<I?f[2*S+2]:s.length;if(y===V)continue;const mt=f[2*S+1];if(d){const j=Ct.getForeground(mt);m.push([y,i[j],s.slice(y,V)])}l&&Ct.getTokenType(mt)>0&&M.push([y,V])}return{ruleStack:c.ruleStack,resolvedTokens:m,bracketIgnoredRanges:M}}function Lt(e){return e==="text"||e==="ansi"}var $,G,at,te=(at=class extends Ft{constructor(s,n){super();J(this,"highlighter");J(this,"options");g(this,$,"");g(this,G);this.highlighter=s,this.options=n}tokenizeChunk(s,n){const r=(t(this,$)+s).split(/(\r\n|\r|\n)/);let l=[];for(let d=0;d<r.length;d+=2){const c=r[d],f=this.highlighter.codeToTokens(c,{...this.options,grammarState:t(this,G)}),I=f.tokens[0].map(m=>({...m,offset:m.offset+this.stableOffset}));d+1<r.length?(Ht(n,I),this.pushLineBreak(n,c.length,r[d+1]),a(this,G,f.grammarState)):(l=I,a(this,$,c))}return{unstable:l,tailLength:t(this,$).length}}clone(){this.assertActive();const s=new at(this.highlighter,this.options);return this.copyStateTo(s),a(s,$,t(this,$)),a(s,G,t(this,G)),s}resetSource(){a(this,$,""),a(this,G,void 0)}releaseSource(){this.resetSource()}},$=new WeakMap,G=new WeakMap,at),he=class $t extends Kt{constructor(s,n){super(s,Nt(s));J(this,"raw");J(this,"loadedThemes",new Map);J(this,"attachedLanguages",new Set(["text","ansi"]));this.raw=n}static async create(s){const n=s==="shiki-wasm"?(await wt(async()=>{const{createOnigurumaEngine:l}=await import("./fp9mRO0R.js");return{createOnigurumaEngine:l}},[],import.meta.url)).createOnigurumaEngine(wt(()=>import("./Cey7Y6ql.js"),[],import.meta.url)):(await wt(async()=>{const{createJavaScriptRegexEngine:l}=await import("./LU5PuYrD.js");return{createJavaScriptRegexEngine:l}},[],import.meta.url)).createJavaScriptRegexEngine(),r=await Qt({themes:[],langs:[],engine:n});return new $t(s,r)}getTheme(s){this.assertNotDisposed();const n=this.loadedThemes.get(s),r=this.themeResolver.getResolvedTheme(s)??n;if(r==null)throw new Error(`Theme "${s}" has not been resolved`);if(n!==r){const l=r.textmate??(r.cssVariables!=null?Ut(r.cssVariables):void 0);if(l==null)throw new Error(`Theme "${s}" does not support Shiki`);this.raw.setTheme({...l,name:s}),this.loadedThemes.set(s,r)}return r}codeToTokens(s,n){return this.raw.codeToTokens(s,this.resolveOptions(n))}createEditorTokenizer(s){return new Yt(this.raw,s,this)}createStreamTokenizer(s){return new te(this.raw,this.resolveOptions(s))}async loadLanguages(s){this.assertNotDisposed();const n=s.filter(r=>!this.attachedLanguages.has(r));Xt(await Gt(n),this)}hasLoadedLanguages(s){if(this.disposed)return!1;let n;return s.every(r=>this.attachedLanguages.has(r)?!0:Jt.has(r)?!1:(n??=this.raw.getLoadedLanguages(),n.includes(r)))}attachLanguages(s){this.assertNotDisposed();for(const n of s){if(this.attachedLanguages.has(n.name))continue;const r=n.data.find(l=>l.name===n.name||l.aliases?.includes(n.name)===!0);if(r==null)throw new Error(`attachResolvedLanguages: No returned grammar declares "${n.name}" as its name or an alias.`);this.raw.loadLanguageSync(n.data);try{this.raw.getLanguage(n.name)}catch{throw new Error(`attachResolvedLanguages: "${r.name}" is already loaded without alias "${n.name}". Load the alias first or give the grammar a unique name.`)}this.attachedLanguages.add(n.name)}}releaseResources(){this.loadedThemes.clear(),this.attachedLanguages.clear(),this.raw.dispose()}resolveOptions({theme:s,themes:n,...r}){if(this.assertNotDisposed(),s!=null)return this.getTheme(s),{...r,theme:s};if(n==null)throw new Error("A theme or themes option is required");for(const l of Object.values(n))this.getTheme(l);return{...r,themes:n}}};export{he as ShikiHighlighter};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/2OP7IVCM.js","/app/immutable/chunks/D0qhIm1r.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/BS1zON0P.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/CWfjuhY2.js","/app/immutable/chunks/Fcr7AvC-.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/CH7HNVC2.js","/app/immutable/chunks/wKT6CuL7.js","/app/immutable/chunks/Cq6hdiVw.js","/app/immutable/chunks/CZfU7DE3.js","/app/immutable/chunks/ChHRVjww.js","/app/immutable/chunks/2z64ELW5.js","/app/immutable/chunks/BhYXv0ZM.js","/app/immutable/chunks/BRCr02in.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/CA6H1-bp.js","/app/immutable/chunks/pYdPYEfN.js","/app/immutable/chunks/Ccf5U4O_.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BwweojP5.js","/app/immutable/chunks/C7b3vXLD.js","/app/immutable/chunks/BfFqg0tr.js","/app/immutable/chunks/CL3a4Hm1.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/CC5YTA05.js","/app/immutable/chunks/_IjN0Lbt.js","/app/immutable/chunks/QiDikPQa.js","/app/immutable/chunks/DU4u3RKB.js","/app/immutable/chunks/CMQzFQs4.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/BvADYKOZ.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/Bv6jwx4N.js","/app/immutable/chunks/l3Y4i65_.js","/app/immutable/chunks/Bu13V5mO.js","/app/immutable/chunks/CC7to1B5.js"])))=>i.map(i=>d[i]);
2
- import{JH as l,nZ as k,n_ as A,j5 as Re,ac as Be,i as m,rW as We,nM as Pe,nN as Oe,cN as Te,b1 as Y,h0 as Fe,vM as ue,G9 as Le,id as Ke,H9 as Ve,DG as He,bH as Z,q3 as fe,m as Ne,DY as De,v1 as Ue}from"./D0qhIm1r.js";import{n as ye}from"./qB07BmZl.js";import{e as qe,bm as oe,cR as se,cU as Ge,b3 as xe,bn as Ye,A as $e}from"./Cq6hdiVw.js";import{d as je}from"./ZfkZCfTr.js";import{h as O}from"./Dms_DO28.js";import{j as W}from"./BPoTi_yl.js";import{bm as o,_ as $}from"./Fcr7AvC-.js";import{cF as Xe,bj as ze,cI as Je,cn as Ze,bp as Qe,d1 as en,d0 as nn,bY as tn,d3 as rn,ae as an,ac as on,ca as sn,ag as cn,b$ as dn,b8 as ln,aH as un}from"./ChHRVjww.js";import{q as fn,n as gn,w as bn}from"./B3G_nhPo.js";import{J as pn,bC as mn,s as hn,A as kn,t as _n,w as wn}from"./ye-GTjqo.js";import{I as yn,z as In}from"./Bqd7fdCF.js";import{c as vn}from"./ChTqQfQN.js";import{aM as Sn}from"./BBuvJMq5.js";import{i as An}from"./CL3a4Hm1.js";import{a as Cn}from"./BdWqymET.js";import{f as h}from"./54ZDusyh.js";import{l as S,m as En,f as ge}from"./C7b3vXLD.js";import{k as Mn}from"./CWfjuhY2.js";import{g as Rn}from"./CZfU7DE3.js";import{a as be}from"./BDDEENB9.js";function Bn(e,n){return!e.daemonVersion||!n?!1:qe(e.daemonVersion,n)==="older"}function Wn(e,n,t){return!Bn(e,t)||e.updateSupported!==!0?!1:n?.includes(e.id)??!1}function Pn(e){return`machine-rail:update:${e}`}function On(e,n){const t=e?k(e,Pn(n)):void 0;return!!t&&t.phase!=="settled"}const Ut=l.createSelector(e=>e.machineRail?.enabled??!1),qt=l.createSelector(e=>!!e.machineRail?.enabled&&e.machineRail.machineIds.length>1),Gt=l.createSelector(e=>{const{machineIds:n,selectedId:t,pendingId:r,degradedIds:a}=e.machineRail,i=e.connections.windowBackendId,s=n.map(c=>{const d=k(e.connections.connections,c)??null,u=d?null:k(e.guestSessions.sessions,c)??null,f=u?e.guestSessions.connectedIds.includes(c)?"connected":c===r?"connecting":"disconnected":!d||d.status==="connecting"?"connecting":d.status==="connected"?"connected":"disconnected";return{id:c,record:d,guest:u,selected:i?c===i:c===t,own:c===i,status:f,offline:d!==null||u!==null?f!=="connected":!1,degraded:f==="connected"&&a.includes(c),updatable:d!==null&&Wn(d,e.connections.connectedIds,e.connections.pinnedVersion),updating:On(e.connections.workflows,c),pending:c===r&&c!==i}});return[...s.filter(c=>!c.guest),...s.filter(c=>c.guest)]}),xt=l.createSelector(e=>{const n=new Set(e.machineRail.machineIds);return A(e.connections.connections).filter(t=>!t.displayOnly&&t.daemonMode!=="node"&&!n.has(t.id))}),Yt=l.createSelector(e=>{const n=e.machineRail;if(!n?.enabled)return null;const t=r=>!k(e.connections.connections,r)&&!!e.guestSessions&&k(e.guestSessions.sessions,r)!==void 0;return ye(n.machineIds,n.selectedId,t)??""}),$t=l.createSelector(e=>{const n=new Set(e.machineRail.machineIds);return A(e.guestSessions.sessions).filter(t=>!n.has(t.id))}),jt=l.createSelector(e=>{const{enabled:n,selectedId:t}=e.machineRail;return!n||t===""||t===e.connections.windowBackendId});let pe=null;const Xt=l.createSelector(e=>{const n=k(e.connections.connections,e.connections.windowBackendId),t={enabled:e.machineRail?.enabled??!1,tint:je(n?.accent,n?.isLocal??!0),opaque:!(e.userPreferences?.shellTransparencyEnabled??!0),theme:`${e.theme?.name}:${e.theme?.activePresetId}:${e.theme?.hasCustomTheme}`},r=pe;return r&&r.enabled===t.enabled&&r.tint===t.tint&&r.opaque===t.opaque&&r.theme===t.theme?r:(pe=t,t)});function zt(e,n){const t=n.trim().toLowerCase();if(e==="github")return!t||t==="github.com"?"github.com":null;if(!t)return"gitlab.com";if(/[\s/@?#\\]/.test(t)||t.includes("://"))return null;try{const r=new URL(`https://${t}`);return!r.hostname||r.username||r.password||r.pathname!=="/"?null:r.host}catch{return null}}const Jt=l.createSelector(e=>e.nodes.paste),Zt=l.createSelector(e=>e.nodes.highlightId),Qt=l.createSelector(e=>e.userPreferences?.labsRemoteAgentsEnabled!==!0?"labs-off":e.remoteMachines?.supported!==!0?"backend-unsupported":e.remoteMachines.claimInvites===!0?null:"invites-unsupported"),er=l.createSelector(e=>e.userPreferences?.labsRemoteAgentsEnabled!==!0?"labs-off":e.remoteMachines?.supported===!0?null:"backend-unsupported"),nr=l.createSelector(e=>e.desktopControl),tr=l.createSelector(e=>e.desktopControl.osPermissions),rr=l.createSelector(e=>e.desktopControl.osPermissionsChecking===!0),ar=l.createSelector((e,n,t)=>e.desktopControl.byKey[Re(n,t)]),or=l.createSelector(e=>!e.workspaceEvents.subscriptionPending&&e.workspaceEvents.subscriptionGeneration>0),Tn=l.createSelector(e=>oe.select(e).manageHostMembers?se.select(e):null),sr=l.createSelector(e=>e.hostMembership),ir=l.createSelector(e=>A(e.hostMembership.members)),cr=l.createSelector(e=>A(e.hostMembership.invites)),Fn=l.createSelector(e=>{const{target:n,withheld:t}=e.hostMembership,r=Tn.select(e);return n&&!t&&r===n.context&&oe.select(e).authenticatedDevices?JSON.stringify([n.session,r]):null}),dr=l.createSelector(e=>{const n=Fn.select(e),t=e.hostMembership.presence;return n&&t.session===n?t:null}),lr=l.createSelector(e=>e.invitationAccountSearch),ur=l.createSelector(e=>A(e.invitationAccountSearch.results)),fr=l.createSelector(e=>Ge.select(e)?.capabilities.invitationAccountSearch===!0),gr=l.createSelector(e=>({backendId:Rn(e),connectionsReady:!e.connections||e.connections.hasReceivedList,model:e.model,providerSettings:e.providerSettings})),Ie=l.createSelector((e,n)=>k(e.settingsEvents.forms,n)),br=l.createSelector((e,n,t)=>{const r=Ie.select(e,n);return r?k(r.operations,t):void 0}),B=l.createSelector((e,n)=>{const t=k(e.settingsEvents.forms,n.formId);return t?.sessionId===n.sessionId?t:void 0}),pr=l.createSelector((e,n,t)=>{const r=B.select(e,n);return r?k(r.entries,t):void 0}),mr=l.createSelector((e,n)=>{const t=B.select(e,n);return Object.fromEntries((t?A(t.entries):[]).map(r=>[r.path,r]))}),Ln=l.createSelector((e,n,t)=>{const r=B.select(e,n);return r?k(r.operations,t):void 0}),hr=l.createSelector((e,n)=>{if(B.select(e,n)?.kind==="collaboration-machine-name"&&(!xe.select(e)||!Ye.select(e)||se.select(e)!==n.sessionId))return!1;const r=Ln.select(e,n,n.resource);return r?.requestId===n.requestId&&r.status==="pending"}),kr=l.createSelector((e,n)=>{const t=B.select(e,n);return t?A(t.operations).find(r=>r.error)?.error??"":""}),I=new Map;function _r(e,n,t){Q(e);const r={sessionId:n,requestIds:{},value:{token:"",qrDataUrl:""},receive:t};return I.set(e,r),()=>{I.get(e)===r&&Q(e)}}function wr(e){const n=I.get(e.formId);n?.sessionId===e.sessionId&&(e.resource==="save"&&(delete n.requestIds.load,delete n.requestIds.qr,n.value={...n.value,qrDataUrl:""},n.receive(n.value)),n.requestIds[e.resource]=e.requestId)}function yr(e,n){const t=I.get(e.formId);t?.sessionId!==e.sessionId||t.requestIds[e.resource]!==e.requestId||(t.value={...t.value,...n},t.receive(t.value))}function Ir(e){const n=I.get(e.formId);return n?.sessionId===e.sessionId?n.value.token:""}function Q(e,n){const t=I.get(e);!t||n!==void 0&&t.sessionId!==n||(I.delete(e),t.value={token:"",qrDataUrl:""},t.receive(t.value))}function vr(){for(const e of I.keys())Q(e)}function Sr(e){const n=I.get(e.formId);return n?.sessionId===e.sessionId?n.value.pairingUri??"":""}const Ar=O("personalDevices/pairingRequested"),Cr=l.createSelector(e=>oe.select(e).personalPairing?se.select(e):null);function Er(e,n,t){const r=W(n.isLocal?t:n.fingerprint);return r?e.find(a=>W(a.fingerprint)===r)??null:null}function Mr(e,n,t){const r=W(e.fingerprint);return r?W(t)===r?Be:n.find(a=>!a.isLocal&&W(a.fingerprint)===r)?.id??null:null}function Rr(e){return!e||e.state==="revoked"}const Kn=8;function Br(e,n){return n&&e.nodeProtocol!==void 0&&e.nodeProtocol<Kn}const q=new Map;function Wr(e,n,t){const r=q.get(e)??new Map;r.set(n,t),q.set(e,r)}function Pr(e,n){return q.get(e)?.get(n)??null}function Or(e){q.delete(e)}const Vn="workspace:";function w(e){return e.agentId??`${Vn}${e.wsId}`}function ee(e){if(!e)return!1;const n=e.status;return n===m.Completed||n===m.Error||n===m.Deleted?!1:e.isProcessing===!0||e.isStreaming===!0||e.isResponding===!0||n===m.Active||n===m.Processing}function Hn(e){const n=e.status;return n===m.Completed||n===m.Error||n===m.Deleted?!1:e.isProcessing===!0||e.isStreaming===!0||e.isResponding===!0||e.isWaitingOnTool===!0||e.activationState===$e.ACTIVATING||n===m.Active||n===m.Processing||n===m.Waiting}function ve(e){if(!e||e.status===m.Deleted)return null;const n=Pe(e)?.kind??null;return n==="blocker"?"blocker":Sn(e)?"question":n==="discussion"?"discussion":null}function ie(e){return ve(e)!==null}function Se(e){return e?.status===m.Error}function Ae(e){return e!==void 0&&e.status!==m.Deleted}function Nn(e){return!e||e.status===m.Deleted?!1:!Se(e)&&!ie(e)&&!Hn(e)}function me(e){if(!e)return 0;const n=new Date(e).getTime();return Number.isFinite(n)?n:0}function ne(e){if(!e)return 0;const n=Oe(e);return me(n!==null?n:e.lastActivity)}function Dn(e,n){return ne(n)-ne(e)}function Un(e,n){const t=new Map;for(const r of n){const a=ne(e.agentSessions.byAgentId[r.agentId]),i=t.get(r.wsId);(!i||a>i.time)&&t.set(r.wsId,{entry:r,time:a})}return[...t.values()].map(r=>r.entry)}function ce(e){return e.tabState.workspaceStacks.flat().flatMap(n=>{const t=k(e.workspace.workspaces,n);return t!==void 0&&We(t)?[t]:[]})}function qn(e){return new Map(ce(e).map((n,t)=>[n.id,t]))}function v(e,n,t,r="top-level"){return ce(e).flatMap(a=>{const i=e.workspaceAgents.byWorkspaceId[a.id],s=(r==="all"?i?.agentIds:i?.foregroundAgentIds)??[],c=[];for(const d of s){const u=String(d),f=e.agentSessions.byAgentId[u];f&&n(f,u)&&c.push({entry:{wsId:a.id,agentId:u},session:f})}return t&&c.sort((d,u)=>t(d.session,u.session)),c.map(d=>d.entry)})}function Gn(e){const n=ce(e).filter(s=>s.attention==="unread").map(s=>s.id),t=new Set(n),r=v(e,Ae).filter(s=>t.has(s.wsId)),a=new Map;for(const s of r){if(e.agentSessions.byAgentId[s.agentId]?.hasUnread!==!0)continue;const c=a.get(s.wsId)??[];c.push(s),a.set(s.wsId,c)}const i=new Map(Un(e,r).map(s=>[s.wsId,s]));return n.flatMap(s=>{const c=a.get(s);if(c!==void 0)return c.map(u=>({...u,clearsWorkspace:!1}));const d=i.get(s);return[d!==void 0?{...d,clearsWorkspace:!0}:{wsId:s,agentId:null,clearsWorkspace:!0}]})}function xn(){return An(yn.WINDOW.CYCLE_FOCUS)}const K=vn("HardwareConsoleActionKeyRegistry"),Yn=["overview","agents","context","changes","files"],j=["planning","agents-row","changes","review"],he=new Map;function b(e){const n=e.workspaceId;return typeof n!="string"||n.length===0||n===Ne?null:n}function te(e,n){return e.workspaceAgents.byWorkspaceId[n]?.activeAgentId??null}function $n(e,n){const r=(e.workspaceAgents.byWorkspaceId[n]?.agentIds??[]).some(c=>e.agentSessions.byAgentId[c]!==void 0),a=j.filter(c=>c!=="agents-row"||r),i=he.get(n)??-1,s=a.find(c=>j.indexOf(c)>i)??a[0];return he.set(n,j.indexOf(s)),s}function jn(e){const{state:n}=e,t=b(e),r=t===null?null:te(n,t);return r===null?null:String(r)}function P(e,n){return e.hardwareConsole.cycleScopeByFamily[n]}function Xn(e){return v(e,ee,Dn,P(e,"cycle-in-progress-agents"))}const zn={blocker:0,question:1,discussion:2,unread:3};function X(e){const n=Gn(e),t=v(e,ie,void 0,P(e,"cycle-attention-agents")),r={blocker:[],question:[],discussion:[]};for(const c of t){const d=ve(e.agentSessions.byAgentId[c.agentId]);d!==null&&r[d].push(c)}const a=new Map,i=[["blocker",r.blocker],["question",r.question],["discussion",r.discussion],["unread",n]],s=[];for(const[c,d]of i)for(const u of d){const f=w(u);a.has(f)||(a.set(f,zn[c]),s.push(u))}return{entries:s,rankByStopKey:a,attentionAgentIds:new Set(t.map(c=>c.agentId)),workspaceClearingWsIds:new Set(n.filter(c=>c.clearsWorkspace).map(c=>c.wsId))}}function Jn(e,n,t){e.dispatch(De(n,t)),e.dispatch(Ue(n,{agentId:t})),e.focusComposer(t)}const z=new Map;function re(e,n){return e[0]-n[0]||e[1]-n[1]||e[2]-n[2]}function Ce(e,n,t,r){const a=(r===null?void 0:t.get(r))??0,i=(d,u)=>[d,u>=a?0:1,u],s=d=>i(n(d),t.get(d.wsId)??0);return{ordered:e.map((d,u)=>({entry:d,index:u,key:s(d)})).sort((d,u)=>re(d.key,u.key)||d.index-u.index).map(d=>d.entry),keyOf:s,anchorTab:a}}function ae(e,n,t,r){const a=t(n),i=new Set(e.slice(e.indexOf(n)+1).filter(s=>s.wsId===n.wsId&&t(s)===a).map(w));return{entry:n,rank:a,laterOnTab:i,anchorWsId:r}}function Zn(e){const{entries:n,rankOf:t,tabIndex:r,cursor:a,currentWsId:i,focused:s}=e,c=i!==null&&r.has(i)?i:null,d=a===void 0?void 0:r.get(a.entry.wsId),u=a!==void 0&&d!==void 0&&(a.anchorWsId===null||r.has(a.anchorWsId))?a.anchorWsId:c,{ordered:f,keyOf:C,anchorTab:p}=Ce(n,t,r,u),E=g=>g.wsId===i&&(g.agentId===null||g.agentId===s);let _;if(a===void 0)_=f.findIndex(g=>!E(g));else{const g=w(a.entry);let M=f.findIndex(y=>w(y)===g);if(M===-1&&a.entry.agentId===null&&(M=f.findIndex(y=>y.wsId===a.entry.wsId&&t(y)===a.rank)),M!==-1)_=M+1;else if(d!==void 0){const y=d,F=[a.rank,y>=p?0:1,y];_=f.findIndex(de=>{const le=re(C(de),F);return le>0||le===0&&a.laterOnTab.has(w(de))})}else{const y=[a.rank,0,p];_=f.findIndex(F=>!E(F)&&re(C(F),y)>=0)}}const T=f[_===-1||_>=f.length?0:_];return{next:T,cursor:ae(f,T,t,u)}}const L=new Map,J=new Map;function R(e){return{id:e.id,get label(){return e.getLabel()},icon:e.icon,isAvailable({state:n}){return e.collect(n).length>0},getUnavailableHint(){return e.getEmptyHint()},execute(n){const{state:t}=n,r=(J.get(e.id)??0)+1;J.set(e.id,r);const a=e.collect(t);if(a.length===0)return;const i=e.rankOf?.(t)??(()=>0),s=L.get(e.id);L.delete(e.id);const c=s===void 0?-1:a.findIndex(g=>w(g)===s),d=jn(n);if(c===-1&&a.length===1&&(a[0].agentId!==null?a[0].agentId===d:a[0].wsId===b(n))){const g=b(n);z.set(e.id,ae(a,a[0],i,g)),a[0].agentId===null&&n.dispatch(fe(a[0].wsId)),n.showHint(e.getSingleCandidateHint());return}const f=qn(t),C=z.get(e.id);let p,E;if(c!==-1){p=a[c];const g=C!==void 0?C.anchorWsId:b(n),{ordered:M}=Ce(a,i,f,g);E=ae(M,p,i,g)}else({next:p,cursor:E}=Zn({entries:a,rankOf:i,tabIndex:f,cursor:C,currentWsId:b(n),focused:d}));const _=w(p);try{p.wsId!==b(n)&&n.showWorkspace(p.wsId).catch(g=>{K.warn("Failed to switch workspace for cycle step",{actionId:e.id,workspaceId:p.wsId,stopKey:_,error:g}),J.get(e.id)===r&&L.set(e.id,_)}),p.agentId!==null?Jn(n,p.wsId,p.agentId):n.dispatch(fe(p.wsId))}catch(g){throw L.set(e.id,_),g}z.set(e.id,E);const T=e.countRemaining?.(t,a,p)??a.length-1;n.dispatch(Z(e.getHudLabel?.(T)??e.getLabel()))}}}const Ee=[R({id:"cycle-workspace-agents",icon:on,getLabel:()=>o.hardwareConsole_actionKey_cycleWorkspaceAgents_label(),getEmptyHint:()=>o.hardwareConsole_actionKey_noAgents_message(),getSingleCandidateHint:()=>o.hardwareConsole_actionKey_noOtherAgents_message(),collect:e=>v(e,Ae)}),R({id:"cycle-in-progress-agents",icon:sn,getLabel:()=>o.hardwareConsole_actionKey_cycleInProgressAgents_label(),getEmptyHint:()=>o.hardwareConsole_actionKey_noInProgressAgents_message(),getSingleCandidateHint:()=>o.hardwareConsole_actionKey_noOtherInProgressAgents_message(),collect:Xn}),R({id:"cycle-attention-agents",icon:cn,getLabel:()=>o.hardwareConsole_actionKey_cycleAttentionAgents_label(),getEmptyHint:()=>o.hardwareConsole_actionKey_noAttentionAgents_message(),getSingleCandidateHint:()=>o.hardwareConsole_actionKey_noOtherAttentionAgents_message(),collect:e=>v(e,ie,void 0,P(e,"cycle-attention-agents"))}),R({id:"cycle-idle-agents",icon:dn,getLabel:()=>o.hardwareConsole_actionKey_cycleIdleAgents_label(),getEmptyHint:()=>o.hardwareConsole_actionKey_noIdleAgents_message(),getSingleCandidateHint:()=>o.hardwareConsole_actionKey_noOtherIdleAgents_message(),collect:e=>v(e,Nn,void 0,P(e,"cycle-idle-agents"))}),R({id:"cycle-unread-agents",icon:ln,getLabel:()=>o.hardwareConsole_actionKey_cycleUnreadAgents_label(),getEmptyHint:()=>o.hardwareConsole_actionKey_noUnreadAgents_message(),getSingleCandidateHint:()=>o.hardwareConsole_actionKey_noOtherUnreadAgents_message(),getHudLabel:e=>e===0?o.hardwareConsole_actionKey_cycleUnreadAgents_label():e===1?o.hardwareConsole_actionKey_cycleUnreadAgents_hudRemaining_one({count:e}):o.hardwareConsole_actionKey_cycleUnreadAgents_hudRemaining_many({count:e}),countRemaining:(e,n,t)=>{const{attentionAgentIds:r,workspaceClearingWsIds:a}=X(e),i=w(t);return n.filter(s=>w(s)===i?!1:s.agentId!==null&&r.has(s.agentId)||!a.has(s.wsId)?!0:s.wsId!==t.wsId).length},collect:e=>X(e).entries,rankOf:e=>{const{rankByStopKey:n}=X(e);return t=>n.get(w(t))??0}}),R({id:"cycle-failed-agents",icon:un,getLabel:()=>o.hardwareConsole_actionKey_cycleFailedAgents_label(),getEmptyHint:()=>o.hardwareConsole_actionKey_noFailedAgents_message(),getSingleCandidateHint:()=>o.hardwareConsole_actionKey_noOtherFailedAgents_message(),collect:e=>v(e,Se,void 0,P(e,"cycle-failed-agents"))}),{id:"stop-agent",get label(){return o.hardwareConsole_actionKey_stopAgent_label()},icon:Xe,isAvailable(e){const{state:n}=e,t=b(e);if(t===null)return!1;const r=te(n,t);return r!==null&&ee(n.agentSessions.byAgentId[r])},execute(e){const{state:n,dispatch:t}=e,r=b(e);if(r===null)return;const a=te(n,r);a===null||!ee(n.agentSessions.byAgentId[a])||(t(Te(a)),e.focusComposer(a))}},{id:"see-spec",get label(){return o.hardwareConsole_actionKey_seeSpec_label()},icon:ze,isAvailable(e){return b(e)!==null},execute(e){const{state:n,dispatch:t}=e,r=b(e);if(r===null)return;const a=Object.values(n.panelLayout.byWorkspaceId[r]?.panels??{});for(const i of a){const s=i.tabs.find(c=>c.id===i.activeTabId);if(s?.type==="note"&&s.noteId===Y){t(Fe(r,s.id,i.id));return}}if(a.length===1){t(ue(r,Y,{openInAdjacentPanel:!0,sourcePanelId:a[0].id}));return}t(ue(r,Y))}},{id:"toggle-sidebar-tabs",get label(){return o.hardwareConsole_actionKey_toggleSidebarTabs_label()},icon:Je,isAvailable(e){return b(e)!==null},execute(e){const{state:n,dispatch:t}=e,r=b(e);if(r===null)return;const a=n.sidebarNav.multiSelectTabOrder.length>0?n.sidebarNav.multiSelectTabOrder:[...Yn],i=n.sidebarNav.multiSelectSelectedTabIdsByWorkspaceId[r]??[],s=i.length===1?a.indexOf(i[0]):-1;t(Le(r,[a[(s+1)%a.length]]))}},{id:"new-agent",get label(){return o.hardwareConsole_actionKey_newAgent_label()},icon:Ze,isAvailable(e){return b(e)!==null},execute(e){const{dispatch:n}=e,t=b(e);t!==null&&n(Ke(t))}},{id:"new-workspace",get label(){return o.hardwareConsole_actionKey_newWorkspace_label()},icon:Qe,isAvailable(){return!0},execute({state:e,dispatch:n}){n(Ve(!e.sidebarNav.showCreateModal))}},{id:"switch-window-layouts",get label(){return o.hardwareConsole_actionKey_switchWindowLayouts_label()},icon:en,isAvailable(e){return b(e)!==null},execute(e){const{state:n,showHint:t}=e,r=b(e);if(r===null)return;const a=$n(n,r);Promise.all([$(()=>import("./2OP7IVCM.js").then(i=>i.p),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url),$(()=>import("./wKT6CuL7.js"),__vite__mapDeps([13,14,10,6,8,3,1,2,4,5,7,9,11,15,16,17,18,19,20,21,22,23,24,25,26]),import.meta.url)]).then(([{getPanelLayoutManager:i},{applyContentPreset:s}])=>s(a,i(r),{workspaceId:r,containerWidth:window.innerWidth,containerHeight:window.innerHeight})).then(i=>{i||t(o.hardwareConsole_actionKey_switchWindowLayouts_notApplicable_hint())}).catch(i=>{K.error("Failed to apply layout preset",{presetId:a,wsId:r,error:i})})}},{id:"cycle-open-windows",get label(){return o.hardwareConsole_actionKey_cycleOpenWindows_label()},icon:nn,isAvailable(){return In()},execute(e){const n=e.state.machineRail;if(n?.enabled){const t=e.state.guestSessions?.sessions,r=ye(n.machineIds,n.selectedId,s=>!!t&&k(t,s)!==void 0);if(!r){e.showHint(o.hardwareConsole_actionKey_noOtherMachines_message());return}const a=e.state.connections?.connections,i=a?k(a,r):void 0;e.dispatch(He(r)),e.dispatch(Z(i?i.isLocal?fn():gn(i):r));return}xn().then(t=>{t?.cycled?e.dispatch(Z(o.hardwareConsole_actionKey_cycleOpenWindows_label())):e.showHint(o.hardwareConsole_actionKey_noOtherOpenWindows_message())}).catch(t=>{K.error("Failed to cycle open windows",{error:t})})}},{id:"push-to-talk",get label(){return o.hardwareConsole_actionKey_pushToTalk_label()},icon:tn,isAvailable(){return kn()},getUnavailableHint(){return o.hardwareConsole_ptt_unavailable_message()},execute(e){if(!wn()&&pn(e.state.voiceSettings)==="unavailable"){mn();return}hn(e)},executeUp(e){_n(e)}},{id:"close-tab",get label(){return o.hardwareConsole_actionKey_closeTab_label()},icon:rn,isAvailable(){return!0},execute(e){const n=window.location.pathname;$(async()=>{const{closeActiveTab:t}=await import("./BfFqg0tr.js");return{closeActiveTab:t}},__vite__mapDeps([27,28,11,6,29,30,1,2,3,4,5,7,8,9,10,31,32,15,12,33,34,35,36,14,16,17,18,19,20,21,22,23,24,25,26,37,38,39,40,41,42]),import.meta.url).then(({closeActiveTab:t})=>{t(n,e.navigate)===null&&e.showHint(o.hardwareConsole_actionKey_closeTab_nothingToClose_hint())}).catch(t=>{K.error("Failed to close the active tab",{error:t})})}},{id:"none",get label(){return o.hardwareConsole_actionKey_none_label()},icon:an,isAvailable(){return!1},execute(){}}];function Tr(e){const n=Ee.find(t=>t.id===e);if(!n)throw new Error(`Unknown action key action: ${e}`);return n}function Fr(e){return e.map(n=>{const t=n==="none"?null:Ee.find(r=>r.id===n)??null;return{icon:t?.icon??null,get label(){return t?.label??null}}})}const Qn=[{usagePage:1,usage:2},{usagePage:1,usage:1},{usagePage:1,usage:5}];function Lr(e){return e.length===0?"unknown":e.some(t=>Qn.some(r=>r.usagePage===t.usagePage&&r.usage===t.usage))||e.length>=5?"usb":"bluetooth"}const G=new Cn("HardwareConsoleCodexProbe"),et="KV_OAI_";function nt(e){if(typeof e!="object"||e===null)return null;const n=e.version;return typeof n=="string"?n:null}function tt(e){if(typeof e!="object"||e===null)return{batteryPercent:null,isCharging:!1};const n=e,t=n.battery;return{batteryPercent:typeof t=="number"&&Number.isFinite(t)?t:null,isCharging:n.is_charging===!0}}function rt(e){const n=e instanceof Error?e.message:String(e);return/method not found|-32601|404/i.test(n)}async function at(e){try{await e.call("v.oai.thstatus",[])}catch(n){return rt(n)?"unsupported-firmware":(G.warn("Codex-mode probe (v.oai.thstatus) failed",{error:String(n)}),"unknown")}try{const n=await e.call("fs.read",{file:"keymap.json"}),t=typeof n?.data=="string"?n.data:null;return t===null?"unknown":t.includes(et)?"ready":"no-codex-layer"}catch(n){return G.warn("Codex-layer probe (fs.read keymap.json) failed",{error:String(n)}),"unknown"}}async function Kr(e){const[n,t,r]=await Promise.all([e.call("sys.version").catch(a=>(G.warn("sys.version failed",{error:String(a)}),null)),e.call("device.status").catch(a=>(G.warn("device.status failed",{error:String(a)}),null)),at(e)]);return{firmwareVersion:nt(n),...tt(t),codexMode:r}}const Vr=["elevenlabs","openai"],V="voice.provider",x={elevenlabs:"voice.elevenlabs.apiKey",openai:"voice.openai.apiKey"},H="voice.openai.model",ot=["gpt-4o-transcribe","gpt-4o-mini-transcribe","whisper-1"],st="gpt-4o-transcribe",N="voice.language",it="",Hr=["en","zh","es","hi","ar","pt","fr","de","ja","ko","ru","it","nl","pl","tr","vi","id","th","sv","da","nb","fi","cs","el","he","hu","ro","uk"],D="voice.vocabulary",U="voice.workspaceVocabulary.maxTerms",ct=0,dt=100,lt=50;function ut(e){return typeof e=="number"&&Number.isInteger(e)&&e>=ct&&e<=dt}function ft(e){return e==="elevenlabs"||e==="openai"}function gt(e){return ot.includes(e)}function ke(e){return typeof e=="string"&&e.length>0}function bt(e){return Array.isArray(e)&&e.every(n=>typeof n=="string")?e:null}async function Nr(){const[e,n,t,r,a,i,s]=await Promise.all([h.settings.get(V),h.settings.get(x.elevenlabs),h.settings.get(x.openai),h.settings.get(D),h.settings.get(H),h.settings.get(N),h.settings.get(U)]);return{available:e!==null,provider:ft(e?.value)?e.value:"elevenlabs",keyConfigured:{elevenlabs:ke(n?.value),openai:ke(t?.value)},vocabulary:bt(r?.value),openaiModel:a===null?null:gt(a.value)?a.value:st,language:i===null?null:typeof i.value=="string"?i.value.trim().toLowerCase():it,workspaceVocabularyMaxTerms:s===null?null:ut(s.value)?s.value:lt}}async function Dr(e){if(!(await h.settings.update([{path:V,value:e}])).some(t=>t.path===V))throw new Error(`settings.update did not apply ${V}`)}async function Ur(e){if(!(await h.settings.update([{path:H,value:e}])).some(t=>t.path===H))throw new Error(`settings.update did not apply ${H}`)}async function qr(e){if(!(await h.settings.update([{path:N,value:e}])).some(t=>t.path===N))throw new Error(`settings.update did not apply ${N}`)}async function Gr(e){if(!(await h.settings.update([{path:D,value:e}])).some(t=>t.path===D))throw new Error(`settings.update did not apply ${D}`)}async function xr(e){if(!(await h.settings.update([{path:U,value:e}])).some(t=>t.path===U))throw new Error(`settings.update did not apply ${U}`)}async function Yr(e,n){const t=n.trim();if(!t)throw new Error("API key must not be empty");await h.settings.update([{path:x[e],value:t}])}async function $r(e){const n=x[e];if(await h.settings.reset(n)===null)throw new Error(`settings.reset failed for ${n}`)}const jr=["workspace-mcp"],Xr=/^[a-zA-Z0-9._-]+$/,zr=64,Jr=O("browserViewsLab/setRequested"),pt={macos:"macos",darwin:"macos",windows:"windows",win32:"windows",linux:"linux"};function mt(e){return e&&pt[e.trim().toLowerCase()]||null}function Zr(e,n){return mt(e.hostOs??n?.platform?.os)}const ht=new Set(["connected","disconnected"]);function kt(e){return e?.state!=="connected"||!e.capabilities?.resources?null:e.capabilities.capacity??null}function _t(e){return e?.state==="connected"?e.capabilities?.resources??null:null}function Me(e){return e&&ht.has(e.state)?e.capabilities:void 0}function Qr(e,n,t){if(e.providers)return e.providers.map(a=>({id:a.id,name:t(a.id)??a.displayName}));const r=Me(n);return r?r.providers.filter(bn).map(a=>({id:a.id,name:t(a.id)??a.id})):[]}function ea(e,n,t){if(t==="orchestrator")return[];const r=Me(e);return r?r.providers.filter(a=>a.visible!==!1&&a.status==="prerequisite-missing").map(a=>n(a.id)??a.id):[]}function na(e){return{macos:"macOS",windows:"Windows",linux:"Linux"}[e]}function ta(e,n){const{machine:t,backend:r}=n;switch(e.code){case"unsupported-backend":return o.remoteMachines_failure_unsupportedBackend_error({backend:r});case"same-machine":return o.remoteMachines_failure_sameMachine_error({machine:t});case"not-owner":return o.remoteMachines_failure_notOwner_error({machine:t});case"machine-not-connected":return o.remoteMachines_failure_notConnected_error({machine:t});case"listener-off":return o.remoteMachines_failure_listenerOff_error({machine:t});case"machine-update-required":return e.update==="backend"?o.remoteMachines_failure_updateBackend_error({machine:t,backend:r}):e.machineVersion&&e.backendVersion?o.remoteMachines_failure_updateMachineVersions_error({machine:t,machineVersion:e.machineVersion,backendVersion:e.backendVersion}):o.remoteMachines_failure_updateMachine_error({machine:t});case"machine-unreachable":{const a=e.unconfirmedStops?.length??0;if(a===0)return o.remoteMachines_failure_unreachable_error({machine:t,backend:r});const i=S(a);return a===1?o.remoteMachines_failure_unconfirmedStops_error_one({count:i,machine:t,backend:r}):o.remoteMachines_failure_unconfirmedStops_error_many({count:i,machine:t,backend:r})}case"machine-in-use":{const a=e.runningAgents??0;return a===1?o.remoteMachines_failure_inUse_error_one({count:S(a),machine:t}):o.remoteMachines_failure_inUse_error_many({count:S(a),machine:t})}case"machine-orchestrator":return o.remoteMachines_failure_orchestrator_error({machine:t,backend:r});case"failed":return o.remoteMachines_failure_generic_error({message:e.message??o.workspace_transfer_unknown_error()})}}function ra(e){return e.code==="machine-in-use"?"stop-agents":e.code==="machine-unreachable"&&(e.unconfirmedStops?.length??0)>0?"retry-stop-agents":null}function aa(e,n){switch(e.state){case"revoked":return o.remoteMachines_state_revoked_description({machine:n.machine});case"unreachable":return o.remoteMachines_state_unreachable_description(n);case"update-required":return o.remoteMachines_failure_updateMachine_error({machine:n.machine});default:return null}}function oa(e,n){switch(e.state){case"revoked":return{label:o.remoteMachines_state_revoked_label(),color:"red"};case"unreachable":return{label:o.remoteMachines_state_unreachable_label(),color:"amber"};case"update-required":return{label:o.remoteMachines_state_updateRequired_label(),color:"amber"};default:return{label:o.remoteMachines_state_available_label({backend:n}),color:"green"}}}function sa(e){return e===1?o.remoteMachines_agents_running_one({count:S(e)}):o.remoteMachines_agents_running_many({count:S(e)})}function _e(e,n){return o.remoteMachines_details_ofValue({used:e,total:n})}function ia(e){const n=kt(e),t=_t(e),r=[];return n&&r.push({label:o.remoteMachines_details_agents_label(),value:_e(S(n.runningAgents),S(n.agentCap))}),t?.cpuPercent!==void 0&&r.push({label:o.remoteMachines_details_cpu_label(),value:En(t.cpuPercent/100,{style:"percent",maximumFractionDigits:0})}),t&&r.push({label:o.remoteMachines_details_memory_label(),value:_e(ge(t.memoryUsedBytes),ge(t.memoryTotalBytes))}),r}function ca(e){return e.length===0?null:{label:o.remoteMachines_needsNode_label(),value:new Intl.ListFormat(Mn(),{style:"long",type:"conjunction"}).format(e)}}function da(e){if(!e)return!0;try{const n=new URL(e);return(n.protocol==="https:"||n.protocol==="http:")&&n.host.length>0}catch{return!1}}const wt=l.createSelector((e,n)=>{const t=B.select(e,n)?.values;return{enabled:t?.enabled===!0,persistedPort:typeof t?.persistedPort=="number"?t.persistedPort:5181,port:typeof t?.port=="number"?t.port:null,certFingerprint:typeof t?.certFingerprint=="string"?t.certFingerprint:"",localIps:Array.isArray(t?.localIps)?t.localIps:[],availableIps:Array.isArray(t?.availableIps)?t.availableIps:null,bindIps:Array.isArray(t?.bindIps)?t.bindIps:[],bindAddressSupported:t?.bindAddressSupported===!0,tunnelEnabled:t?.tunnelEnabled===!0,tunnelOnly:t?.tunnelOnly===!0,tunnelSupported:t?.tunnelSupported===!0,tcAddress:typeof t?.tcAddress=="string"?t.tcAddress:"",relaySupported:t?.relaySupported===!0,relayUrl:typeof t?.relayUrl=="string"?t.relayUrl:""}}),la=l.createSelector((e,n)=>wt.select(e,Ie.select(e,n)??{formId:n,sessionId:""})),ua=O("rtkSettings/requested"),fa=O("rtkSettings/installStarted"),ga=O("pushSettings/requested"),we=[{id:"dracula",label:"Dracula",previewColors:{dark:["#282a36","#f8f8f2","#bd93f9","#ff79c6"],light:["#f8f8f2","#282a36","#9580ff","#ff80bf"]},dark:{name:"Dracula",type:"dark",colors:{"editor.background":"#282a36","editor.foreground":"#f8f8f2","sideBar.background":"#21222c","sideBar.foreground":"#f8f8f2","editorWidget.background":"#282a36","editorWidget.foreground":"#f8f8f2","dropdown.background":"#282a36","dropdown.foreground":"#f8f8f2",focusBorder:"#6272a4","input.background":"#21222c","panel.border":"#44475a","button.background":"#bd93f9","button.foreground":"#282a36","badge.background":"#bd93f9","badge.foreground":"#282a36","list.activeSelectionBackground":"#44475a","list.activeSelectionForeground":"#f8f8f2","tab.inactiveBackground":"#21222c",descriptionForeground:"#6272a4",errorForeground:"#ff5555","terminal.background":"#282a36","terminal.foreground":"#f8f8f2","terminal.ansiBlack":"#21222c","terminal.ansiRed":"#ff5555","terminal.ansiGreen":"#50fa7b","terminal.ansiYellow":"#f1fa8c","terminal.ansiBlue":"#bd93f9","terminal.ansiMagenta":"#ff79c6","terminal.ansiCyan":"#8be9fd","terminal.ansiWhite":"#f8f8f2"}},light:{name:"Dracula Light",type:"light",colors:{"editor.background":"#f8f8f2","editor.foreground":"#282a36","sideBar.background":"#eaeaeb","sideBar.foreground":"#282a36","editorWidget.background":"#f8f8f2","editorWidget.foreground":"#282a36","dropdown.background":"#f8f8f2","dropdown.foreground":"#282a36",focusBorder:"#9580ff","input.background":"#eaeaeb","panel.border":"#d4d4d6","button.background":"#9580ff","button.foreground":"#f8f8f2","badge.background":"#9580ff","badge.foreground":"#f8f8f2","list.activeSelectionBackground":"#d4d4d6","list.activeSelectionForeground":"#282a36","tab.inactiveBackground":"#eaeaeb",descriptionForeground:"#6272a4",errorForeground:"#ff5555","terminal.background":"#f8f8f2","terminal.foreground":"#282a36","terminal.ansiBlack":"#282a36","terminal.ansiRed":"#e13535","terminal.ansiGreen":"#2a9f4a","terminal.ansiYellow":"#c4a000","terminal.ansiBlue":"#7c6dd8","terminal.ansiMagenta":"#e06cb0","terminal.ansiCyan":"#2aacbd","terminal.ansiWhite":"#f8f8f2"}}},{id:"nord",label:"Nord",previewColors:{dark:["#2e3440","#d8dee9","#88c0d0","#81a1c1"],light:["#eceff4","#2e3440","#5e81ac","#88c0d0"]},dark:{name:"Nord",type:"dark",colors:{"editor.background":"#2e3440","editor.foreground":"#d8dee9","sideBar.background":"#1b2029","sideBar.foreground":"#d8dee9","editorWidget.background":"#2e3440","editorWidget.foreground":"#d8dee9","dropdown.background":"#3b4252","dropdown.foreground":"#d8dee9",focusBorder:"#88c0d0","input.background":"#3b4252","panel.border":"#3b4252","button.background":"#88c0d0","button.foreground":"#2e3440","badge.background":"#88c0d0","badge.foreground":"#2e3440","list.activeSelectionBackground":"#3b4252","list.activeSelectionForeground":"#d8dee9","tab.inactiveBackground":"#2e3440",descriptionForeground:"#7b88a1",errorForeground:"#bf616a","terminal.background":"#2e3440","terminal.foreground":"#d8dee9","terminal.ansiBlack":"#3b4252","terminal.ansiRed":"#bf616a","terminal.ansiGreen":"#a3be8c","terminal.ansiYellow":"#ebcb8b","terminal.ansiBlue":"#81a1c1","terminal.ansiMagenta":"#b48ead","terminal.ansiCyan":"#88c0d0","terminal.ansiWhite":"#e5e9f0"}},light:{name:"Nord Light",type:"light",colors:{"editor.background":"#eceff4","editor.foreground":"#2e3440","sideBar.background":"#e5e9f0","sideBar.foreground":"#2e3440","editorWidget.background":"#eceff4","editorWidget.foreground":"#2e3440","dropdown.background":"#eceff4","dropdown.foreground":"#2e3440",focusBorder:"#5e81ac","input.background":"#e5e9f0","panel.border":"#d8dee9","button.background":"#5e81ac","button.foreground":"#eceff4","badge.background":"#5e81ac","badge.foreground":"#eceff4","list.activeSelectionBackground":"#d8dee9","list.activeSelectionForeground":"#2e3440","tab.inactiveBackground":"#e5e9f0",descriptionForeground:"#7b88a1",errorForeground:"#bf616a","terminal.background":"#eceff4","terminal.foreground":"#2e3440","terminal.ansiBlack":"#2e3440","terminal.ansiRed":"#bf616a","terminal.ansiGreen":"#a3be8c","terminal.ansiYellow":"#d08770","terminal.ansiBlue":"#5e81ac","terminal.ansiMagenta":"#b48ead","terminal.ansiCyan":"#88c0d0","terminal.ansiWhite":"#e5e9f0"}}},{id:"rose-pine",label:"Rosé Pine",previewColors:{dark:["#191724","#e0def4","#c4a7e7","#ebbcba"],light:["#faf4ed","#575279","#907aa9","#d7827e"]},dark:{name:"Rosé Pine",type:"dark",colors:{"editor.background":"#191724","editor.foreground":"#e0def4","sideBar.background":"#1f1d2e","sideBar.foreground":"#e0def4","editorWidget.background":"#191724","editorWidget.foreground":"#e0def4","dropdown.background":"#1f1d2e","dropdown.foreground":"#e0def4",focusBorder:"#c4a7e7","input.background":"#1f1d2e","panel.border":"#26233a","button.background":"#c4a7e7","button.foreground":"#191724","badge.background":"#c4a7e7","badge.foreground":"#191724","list.activeSelectionBackground":"#26233a","list.activeSelectionForeground":"#e0def4","tab.inactiveBackground":"#1f1d2e",descriptionForeground:"#908caa",errorForeground:"#eb6f92","terminal.background":"#191724","terminal.foreground":"#e0def4","terminal.ansiBlack":"#26233a","terminal.ansiRed":"#eb6f92","terminal.ansiGreen":"#9ccfd8","terminal.ansiYellow":"#f6c177","terminal.ansiBlue":"#31748f","terminal.ansiMagenta":"#c4a7e7","terminal.ansiCyan":"#9ccfd8","terminal.ansiWhite":"#e0def4"}},light:{name:"Rosé Pine Dawn",type:"light",colors:{"editor.background":"#faf4ed","editor.foreground":"#575279","sideBar.background":"#f2e9e1","sideBar.foreground":"#575279","editorWidget.background":"#faf4ed","editorWidget.foreground":"#575279","dropdown.background":"#faf4ed","dropdown.foreground":"#575279",focusBorder:"#907aa9","input.background":"#f2e9e1","panel.border":"#dfdad9","button.background":"#907aa9","button.foreground":"#faf4ed","badge.background":"#907aa9","badge.foreground":"#faf4ed","list.activeSelectionBackground":"#dfdad9","list.activeSelectionForeground":"#575279","tab.inactiveBackground":"#f2e9e1",descriptionForeground:"#9893a5",errorForeground:"#b4637a","terminal.background":"#faf4ed","terminal.foreground":"#575279","terminal.ansiBlack":"#575279","terminal.ansiRed":"#b4637a","terminal.ansiGreen":"#56949f","terminal.ansiYellow":"#ea9d34","terminal.ansiBlue":"#286983","terminal.ansiMagenta":"#907aa9","terminal.ansiCyan":"#56949f","terminal.ansiWhite":"#f2e9e1"}}},{id:"tokyo-night",label:"Tokyo Night",previewColors:{dark:["#1a1b26","#a9b1d6","#7aa2f7","#bb9af7"],light:["#d5d6db","#343b58","#34548a","#5a4a78"]},dark:{name:"Tokyo Night",type:"dark",colors:{"editor.background":"#1a1b26","editor.foreground":"#a9b1d6","sideBar.background":"#1f2335","sideBar.foreground":"#a9b1d6","editorWidget.background":"#1a1b26","editorWidget.foreground":"#a9b1d6","dropdown.background":"#1f2335","dropdown.foreground":"#a9b1d6",focusBorder:"#7aa2f7","input.background":"#1f2335","panel.border":"#292e42","button.background":"#7aa2f7","button.foreground":"#1a1b26","badge.background":"#7aa2f7","badge.foreground":"#1a1b26","list.activeSelectionBackground":"#292e42","list.activeSelectionForeground":"#a9b1d6","tab.inactiveBackground":"#1f2335",descriptionForeground:"#565f89",errorForeground:"#f7768e","terminal.background":"#1a1b26","terminal.foreground":"#a9b1d6","terminal.ansiBlack":"#414868","terminal.ansiRed":"#f7768e","terminal.ansiGreen":"#9ece6a","terminal.ansiYellow":"#e0af68","terminal.ansiBlue":"#7aa2f7","terminal.ansiMagenta":"#bb9af7","terminal.ansiCyan":"#7dcfff","terminal.ansiWhite":"#c0caf5"}},light:{name:"Tokyo Night Light",type:"light",colors:{"editor.background":"#d5d6db","editor.foreground":"#343b58","sideBar.background":"#cbccd1","sideBar.foreground":"#343b58","editorWidget.background":"#d5d6db","editorWidget.foreground":"#343b58","dropdown.background":"#d5d6db","dropdown.foreground":"#343b58",focusBorder:"#34548a","input.background":"#cbccd1","panel.border":"#c0c1c6","button.background":"#34548a","button.foreground":"#d5d6db","badge.background":"#34548a","badge.foreground":"#d5d6db","list.activeSelectionBackground":"#c0c1c6","list.activeSelectionForeground":"#343b58","tab.inactiveBackground":"#cbccd1",descriptionForeground:"#6a6e82",errorForeground:"#8c4351","terminal.background":"#d5d6db","terminal.foreground":"#343b58","terminal.ansiBlack":"#343b58","terminal.ansiRed":"#8c4351","terminal.ansiGreen":"#33635c","terminal.ansiYellow":"#8f5e15","terminal.ansiBlue":"#34548a","terminal.ansiMagenta":"#5a4a78","terminal.ansiCyan":"#0f4b6e","terminal.ansiWhite":"#d5d6db"}}},{id:"solarized",label:"Solarized",previewColors:{dark:["#002b36","#839496","#268bd2","#2aa198"],light:["#fdf6e3","#657b83","#268bd2","#2aa198"]},dark:{name:"Solarized Dark",type:"dark",colors:{"editor.background":"#002b36","editor.foreground":"#839496","sideBar.background":"#001e26","sideBar.foreground":"#839496","editorWidget.background":"#002b36","editorWidget.foreground":"#839496","dropdown.background":"#002b36","dropdown.foreground":"#839496",focusBorder:"#268bd2","input.background":"#001e26","panel.border":"#073642","button.background":"#268bd2","button.foreground":"#fdf6e3","badge.background":"#268bd2","badge.foreground":"#fdf6e3","list.activeSelectionBackground":"#073642","list.activeSelectionForeground":"#839496","tab.inactiveBackground":"#001e26",descriptionForeground:"#586e75",errorForeground:"#dc322f","terminal.background":"#002b36","terminal.foreground":"#839496","terminal.ansiBlack":"#073642","terminal.ansiRed":"#dc322f","terminal.ansiGreen":"#859900","terminal.ansiYellow":"#b58900","terminal.ansiBlue":"#268bd2","terminal.ansiMagenta":"#d33682","terminal.ansiCyan":"#2aa198","terminal.ansiWhite":"#eee8d5"}},light:{name:"Solarized Light",type:"light",colors:{"editor.background":"#fdf6e3","editor.foreground":"#657b83","sideBar.background":"#EDE8D4","sideBar.foreground":"#657b83","editorWidget.background":"#fdf6e3","editorWidget.foreground":"#657b83","dropdown.background":"#fdf6e3","dropdown.foreground":"#657b83",focusBorder:"#268bd2","input.background":"#eee8d5","panel.border":"#eee8d5","button.background":"#268bd2","button.foreground":"#fdf6e3","badge.background":"#268bd2","badge.foreground":"#fdf6e3","list.activeSelectionBackground":"#eee8d5","list.activeSelectionForeground":"#657b83","tab.inactiveBackground":"#eee8d5",descriptionForeground:"#93a1a1",errorForeground:"#dc322f","terminal.background":"#fdf6e3","terminal.foreground":"#657b83","terminal.ansiBlack":"#073642","terminal.ansiRed":"#dc322f","terminal.ansiGreen":"#859900","terminal.ansiYellow":"#b58900","terminal.ansiBlue":"#268bd2","terminal.ansiMagenta":"#d33682","terminal.ansiCyan":"#2aa198","terminal.ansiWhite":"#eee8d5"}}},{id:"github",label:"GitHub",previewColors:{dark:["#0d1117","#e6edf3","#58a6ff","#bc8cff"],light:["#ffffff","#24292f","#0969da","#8250df"]},dark:{name:"GitHub Dark",type:"dark",colors:{"editor.background":"#0d1117","editor.foreground":"#e6edf3","sideBar.background":"#010409","sideBar.foreground":"#e6edf3","editorWidget.background":"#0d1117","editorWidget.foreground":"#e6edf3","dropdown.background":"#0d1117","dropdown.foreground":"#e6edf3",focusBorder:"#58a6ff","input.background":"#010409","panel.border":"#21262d","button.background":"#58a6ff","button.foreground":"#0d1117","badge.background":"#58a6ff","badge.foreground":"#0d1117","list.activeSelectionBackground":"#21262d","list.activeSelectionForeground":"#e6edf3","tab.inactiveBackground":"#010409",descriptionForeground:"#8b949e",errorForeground:"#f85149","terminal.background":"#0d1117","terminal.foreground":"#e6edf3","terminal.ansiBlack":"#484f58","terminal.ansiRed":"#ff7b72","terminal.ansiGreen":"#3fb950","terminal.ansiYellow":"#d29922","terminal.ansiBlue":"#58a6ff","terminal.ansiMagenta":"#bc8cff","terminal.ansiCyan":"#39d2c0","terminal.ansiWhite":"#b1bac4"}},light:{name:"GitHub Light",type:"light",colors:{"editor.background":"#ffffff","editor.foreground":"#24292f","sideBar.background":"#f6f8fa","sideBar.foreground":"#24292f","editorWidget.background":"#ffffff","editorWidget.foreground":"#24292f","dropdown.background":"#ffffff","dropdown.foreground":"#24292f",focusBorder:"#0969da","input.background":"#f6f8fa","panel.border":"#d0d7de","button.background":"#0969da","button.foreground":"#ffffff","badge.background":"#0969da","badge.foreground":"#ffffff","list.activeSelectionBackground":"#ddf4ff","list.activeSelectionForeground":"#24292f","tab.inactiveBackground":"#f6f8fa",descriptionForeground:"#57606a",errorForeground:"#cf222e","terminal.background":"#ffffff","terminal.foreground":"#24292f","terminal.ansiBlack":"#24292f","terminal.ansiRed":"#cf222e","terminal.ansiGreen":"#116329","terminal.ansiYellow":"#4d2d00","terminal.ansiBlue":"#0969da","terminal.ansiMagenta":"#8250df","terminal.ansiCyan":"#1b7c83","terminal.ansiWhite":"#6e7781"}}},{id:"high-contrast",label:"High Contrast",previewColors:{dark:["#000000","#ffffff","#60a5fa","#f87171"],light:["#ffffff","#111111","#2563eb","#dc2626"]},dark:{name:"High Contrast Dark",type:"dark",colors:{"editor.background":"#000000","editor.foreground":"#ffffff","sideBar.background":"#111111","sideBar.foreground":"#ffffff","editorWidget.background":"#000000","editorWidget.foreground":"#ffffff","dropdown.background":"#000000","dropdown.foreground":"#ffffff",focusBorder:"#60a5fa","input.background":"#0a0a0a","panel.border":"#6b7280","button.background":"#60a5fa","button.foreground":"#000000","badge.background":"#60a5fa","badge.foreground":"#000000","list.activeSelectionBackground":"#1e3a5f","list.activeSelectionForeground":"#ffffff","tab.inactiveBackground":"#111111",descriptionForeground:"#d1d5db",errorForeground:"#f87171","terminal.background":"#000000","terminal.foreground":"#ffffff","terminal.ansiBlack":"#4b5563","terminal.ansiRed":"#f87171","terminal.ansiGreen":"#4ade80","terminal.ansiYellow":"#facc15","terminal.ansiBlue":"#60a5fa","terminal.ansiMagenta":"#c084fc","terminal.ansiCyan":"#22d3ee","terminal.ansiWhite":"#ffffff"}},light:{name:"High Contrast Light",type:"light",colors:{"editor.background":"#ffffff","editor.foreground":"#111111","sideBar.background":"#ededed","sideBar.foreground":"#111111","editorWidget.background":"#ffffff","editorWidget.foreground":"#111111","dropdown.background":"#ffffff","dropdown.foreground":"#111111",focusBorder:"#2563eb","input.background":"#f5f5f5","panel.border":"#4b5563","button.background":"#2563eb","button.foreground":"#ffffff","badge.background":"#2563eb","badge.foreground":"#ffffff","list.activeSelectionBackground":"#dbeafe","list.activeSelectionForeground":"#111111","tab.inactiveBackground":"#ededed",descriptionForeground:"#374151",errorForeground:"#dc2626","terminal.background":"#ffffff","terminal.foreground":"#111111","terminal.ansiBlack":"#111111","terminal.ansiRed":"#dc2626","terminal.ansiGreen":"#15803d","terminal.ansiYellow":"#a16207","terminal.ansiBlue":"#2563eb","terminal.ansiMagenta":"#7c3aed","terminal.ansiCyan":"#0e7490","terminal.ansiWhite":"#e5e7eb"}}}];function yt(){const e=new Map(be.map(t=>[t.id,t.label])),n=new Map(we.map(t=>[t.id,t.label]));for(const{id:t,label:r}of we)if(e.get(t)!==r)throw new Error(`Theme preset ${t} (${r}) is missing from the shared manifest`);for(const{id:t,label:r}of be)if(n.get(t)!==r)throw new Error(`Theme preset manifest entry ${t} (${r}) is missing from renderer presets`)}yt();export{ua as $,Ee as A,na as B,kt as C,ea as D,Zr as E,Qr as F,Me as G,_t as H,ca as I,Ar as J,Kr as K,ga as L,zr as M,Pn as N,Pr as O,Sr as P,Ir as Q,jr as R,yr as S,_r as T,oa as U,Hr as V,ta as W,ra as X,aa as Y,Wr as Z,fa as _,Xr as a,sa as a0,Yr as a1,nr as a2,ar as a3,or as a4,tr as a5,rr as a6,Zt as a7,cr as a8,ir as a9,hr as aA,gr as aB,wt as aC,la as aD,ie as aE,Jr as aF,qr as aG,Ur as aH,Dr as aI,Gr as aJ,xr as aK,we as aL,Tn as aa,sr as ab,dr as ac,Fn as ad,ur as ae,lr as af,fr as ag,jt as ah,xt as ai,Ut as aj,$t as ak,Gt as al,qt as am,Yt as an,Qt as ao,Jt as ap,er as aq,Cr as ar,Xt as as,B as at,Ie as au,mr as av,pr as aw,kr as ax,Ln as ay,br as az,it as b,ot as c,Vr as d,dt as e,ct as f,Fr as g,wr as h,Rr as i,Wn as j,zt as k,vr as l,Or as m,$r as n,Q as o,Mr as p,xn as q,Tr as r,Lr as s,Bn as t,da as u,Nr as v,Er as w,ia as x,Br as y,mt as z};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/2OP7IVCM.js","/app/immutable/chunks/D0qhIm1r.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/BS1zON0P.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/CWfjuhY2.js","/app/immutable/chunks/Fcr7AvC-.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/CH7HNVC2.js","/app/immutable/chunks/wKT6CuL7.js","/app/immutable/chunks/Cq6hdiVw.js","/app/immutable/chunks/CZfU7DE3.js","/app/immutable/chunks/ChHRVjww.js","/app/immutable/chunks/2z64ELW5.js","/app/immutable/chunks/BhYXv0ZM.js","/app/immutable/chunks/BRCr02in.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/CA6H1-bp.js","/app/immutable/chunks/pYdPYEfN.js","/app/immutable/chunks/Ccf5U4O_.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BwweojP5.js","/app/immutable/chunks/C7b3vXLD.js","/app/immutable/chunks/CEH2NAZ8.js","/app/immutable/chunks/CL3a4Hm1.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/BXnNAEju.js","/app/immutable/chunks/_IjN0Lbt.js","/app/immutable/chunks/CJtBv95U.js","/app/immutable/chunks/CVgSN9ZH.js","/app/immutable/chunks/CG6G-VtV.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/C3ldfPpK.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/Cohy0Z-x.js","/app/immutable/chunks/l3Y4i65_.js","/app/immutable/chunks/Bu13V5mO.js","/app/immutable/chunks/CC7to1B5.js"])))=>i.map(i=>d[i]);
2
+ import{JH as l,nZ as k,n_ as A,j5 as Re,ac as Be,i as m,rW as We,nM as Pe,nN as Oe,cN as Te,b1 as Y,h0 as Fe,vM as ue,G9 as Le,id as Ke,H9 as Ve,DG as He,bH as Z,q3 as fe,m as Ne,DY as De,v1 as Ue}from"./D0qhIm1r.js";import{n as ye}from"./qB07BmZl.js";import{e as qe,bm as oe,cR as se,cU as Ge,b3 as xe,bn as Ye,A as $e}from"./Cq6hdiVw.js";import{d as je}from"./ZfkZCfTr.js";import{h as O}from"./Dms_DO28.js";import{j as W}from"./BPoTi_yl.js";import{bm as o,_ as $}from"./Fcr7AvC-.js";import{cF as Xe,bj as ze,cI as Je,cn as Ze,bp as Qe,d1 as en,d0 as nn,bY as tn,d3 as rn,ae as an,ac as on,ca as sn,ag as cn,b$ as dn,b8 as ln,aH as un}from"./ChHRVjww.js";import{q as fn,n as gn,w as bn}from"./B3G_nhPo.js";import{J as pn,bC as mn,s as hn,A as kn,t as _n,w as wn}from"./3EQPKXoI.js";import{I as yn,z as In}from"./Bqd7fdCF.js";import{c as vn}from"./ChTqQfQN.js";import{aM as Sn}from"./BBuvJMq5.js";import{i as An}from"./CL3a4Hm1.js";import{a as Cn}from"./BdWqymET.js";import{f as h}from"./54ZDusyh.js";import{l as S,m as En,f as ge}from"./C7b3vXLD.js";import{k as Mn}from"./CWfjuhY2.js";import{g as Rn}from"./CZfU7DE3.js";import{a as be}from"./DW3UcPIr.js";function Bn(e,n){return!e.daemonVersion||!n?!1:qe(e.daemonVersion,n)==="older"}function Wn(e,n,t){return!Bn(e,t)||e.updateSupported!==!0?!1:n?.includes(e.id)??!1}function Pn(e){return`machine-rail:update:${e}`}function On(e,n){const t=e?k(e,Pn(n)):void 0;return!!t&&t.phase!=="settled"}const Ut=l.createSelector(e=>e.machineRail?.enabled??!1),qt=l.createSelector(e=>!!e.machineRail?.enabled&&e.machineRail.machineIds.length>1),Gt=l.createSelector(e=>{const{machineIds:n,selectedId:t,pendingId:r,degradedIds:a}=e.machineRail,i=e.connections.windowBackendId,s=n.map(c=>{const d=k(e.connections.connections,c)??null,u=d?null:k(e.guestSessions.sessions,c)??null,f=u?e.guestSessions.connectedIds.includes(c)?"connected":c===r?"connecting":"disconnected":!d||d.status==="connecting"?"connecting":d.status==="connected"?"connected":"disconnected";return{id:c,record:d,guest:u,selected:i?c===i:c===t,own:c===i,status:f,offline:d!==null||u!==null?f!=="connected":!1,degraded:f==="connected"&&a.includes(c),updatable:d!==null&&Wn(d,e.connections.connectedIds,e.connections.pinnedVersion),updating:On(e.connections.workflows,c),pending:c===r&&c!==i}});return[...s.filter(c=>!c.guest),...s.filter(c=>c.guest)]}),xt=l.createSelector(e=>{const n=new Set(e.machineRail.machineIds);return A(e.connections.connections).filter(t=>!t.displayOnly&&t.daemonMode!=="node"&&!n.has(t.id))}),Yt=l.createSelector(e=>{const n=e.machineRail;if(!n?.enabled)return null;const t=r=>!k(e.connections.connections,r)&&!!e.guestSessions&&k(e.guestSessions.sessions,r)!==void 0;return ye(n.machineIds,n.selectedId,t)??""}),$t=l.createSelector(e=>{const n=new Set(e.machineRail.machineIds);return A(e.guestSessions.sessions).filter(t=>!n.has(t.id))}),jt=l.createSelector(e=>{const{enabled:n,selectedId:t}=e.machineRail;return!n||t===""||t===e.connections.windowBackendId});let pe=null;const Xt=l.createSelector(e=>{const n=k(e.connections.connections,e.connections.windowBackendId),t={enabled:e.machineRail?.enabled??!1,tint:je(n?.accent,n?.isLocal??!0),opaque:!(e.userPreferences?.shellTransparencyEnabled??!0),theme:`${e.theme?.name}:${e.theme?.activePresetId}:${e.theme?.hasCustomTheme}`},r=pe;return r&&r.enabled===t.enabled&&r.tint===t.tint&&r.opaque===t.opaque&&r.theme===t.theme?r:(pe=t,t)});function zt(e,n){const t=n.trim().toLowerCase();if(e==="github")return!t||t==="github.com"?"github.com":null;if(!t)return"gitlab.com";if(/[\s/@?#\\]/.test(t)||t.includes("://"))return null;try{const r=new URL(`https://${t}`);return!r.hostname||r.username||r.password||r.pathname!=="/"?null:r.host}catch{return null}}const Jt=l.createSelector(e=>e.nodes.paste),Zt=l.createSelector(e=>e.nodes.highlightId),Qt=l.createSelector(e=>e.userPreferences?.labsRemoteAgentsEnabled!==!0?"labs-off":e.remoteMachines?.supported!==!0?"backend-unsupported":e.remoteMachines.claimInvites===!0?null:"invites-unsupported"),er=l.createSelector(e=>e.userPreferences?.labsRemoteAgentsEnabled!==!0?"labs-off":e.remoteMachines?.supported===!0?null:"backend-unsupported"),nr=l.createSelector(e=>e.desktopControl),tr=l.createSelector(e=>e.desktopControl.osPermissions),rr=l.createSelector(e=>e.desktopControl.osPermissionsChecking===!0),ar=l.createSelector((e,n,t)=>e.desktopControl.byKey[Re(n,t)]),or=l.createSelector(e=>!e.workspaceEvents.subscriptionPending&&e.workspaceEvents.subscriptionGeneration>0),Tn=l.createSelector(e=>oe.select(e).manageHostMembers?se.select(e):null),sr=l.createSelector(e=>e.hostMembership),ir=l.createSelector(e=>A(e.hostMembership.members)),cr=l.createSelector(e=>A(e.hostMembership.invites)),Fn=l.createSelector(e=>{const{target:n,withheld:t}=e.hostMembership,r=Tn.select(e);return n&&!t&&r===n.context&&oe.select(e).authenticatedDevices?JSON.stringify([n.session,r]):null}),dr=l.createSelector(e=>{const n=Fn.select(e),t=e.hostMembership.presence;return n&&t.session===n?t:null}),lr=l.createSelector(e=>e.invitationAccountSearch),ur=l.createSelector(e=>A(e.invitationAccountSearch.results)),fr=l.createSelector(e=>Ge.select(e)?.capabilities.invitationAccountSearch===!0),gr=l.createSelector(e=>({backendId:Rn(e),connectionsReady:!e.connections||e.connections.hasReceivedList,model:e.model,providerSettings:e.providerSettings})),Ie=l.createSelector((e,n)=>k(e.settingsEvents.forms,n)),br=l.createSelector((e,n,t)=>{const r=Ie.select(e,n);return r?k(r.operations,t):void 0}),B=l.createSelector((e,n)=>{const t=k(e.settingsEvents.forms,n.formId);return t?.sessionId===n.sessionId?t:void 0}),pr=l.createSelector((e,n,t)=>{const r=B.select(e,n);return r?k(r.entries,t):void 0}),mr=l.createSelector((e,n)=>{const t=B.select(e,n);return Object.fromEntries((t?A(t.entries):[]).map(r=>[r.path,r]))}),Ln=l.createSelector((e,n,t)=>{const r=B.select(e,n);return r?k(r.operations,t):void 0}),hr=l.createSelector((e,n)=>{if(B.select(e,n)?.kind==="collaboration-machine-name"&&(!xe.select(e)||!Ye.select(e)||se.select(e)!==n.sessionId))return!1;const r=Ln.select(e,n,n.resource);return r?.requestId===n.requestId&&r.status==="pending"}),kr=l.createSelector((e,n)=>{const t=B.select(e,n);return t?A(t.operations).find(r=>r.error)?.error??"":""}),I=new Map;function _r(e,n,t){Q(e);const r={sessionId:n,requestIds:{},value:{token:"",qrDataUrl:""},receive:t};return I.set(e,r),()=>{I.get(e)===r&&Q(e)}}function wr(e){const n=I.get(e.formId);n?.sessionId===e.sessionId&&(e.resource==="save"&&(delete n.requestIds.load,delete n.requestIds.qr,n.value={...n.value,qrDataUrl:""},n.receive(n.value)),n.requestIds[e.resource]=e.requestId)}function yr(e,n){const t=I.get(e.formId);t?.sessionId!==e.sessionId||t.requestIds[e.resource]!==e.requestId||(t.value={...t.value,...n},t.receive(t.value))}function Ir(e){const n=I.get(e.formId);return n?.sessionId===e.sessionId?n.value.token:""}function Q(e,n){const t=I.get(e);!t||n!==void 0&&t.sessionId!==n||(I.delete(e),t.value={token:"",qrDataUrl:""},t.receive(t.value))}function vr(){for(const e of I.keys())Q(e)}function Sr(e){const n=I.get(e.formId);return n?.sessionId===e.sessionId?n.value.pairingUri??"":""}const Ar=O("personalDevices/pairingRequested"),Cr=l.createSelector(e=>oe.select(e).personalPairing?se.select(e):null);function Er(e,n,t){const r=W(n.isLocal?t:n.fingerprint);return r?e.find(a=>W(a.fingerprint)===r)??null:null}function Mr(e,n,t){const r=W(e.fingerprint);return r?W(t)===r?Be:n.find(a=>!a.isLocal&&W(a.fingerprint)===r)?.id??null:null}function Rr(e){return!e||e.state==="revoked"}const Kn=8;function Br(e,n){return n&&e.nodeProtocol!==void 0&&e.nodeProtocol<Kn}const q=new Map;function Wr(e,n,t){const r=q.get(e)??new Map;r.set(n,t),q.set(e,r)}function Pr(e,n){return q.get(e)?.get(n)??null}function Or(e){q.delete(e)}const Vn="workspace:";function w(e){return e.agentId??`${Vn}${e.wsId}`}function ee(e){if(!e)return!1;const n=e.status;return n===m.Completed||n===m.Error||n===m.Deleted?!1:e.isProcessing===!0||e.isStreaming===!0||e.isResponding===!0||n===m.Active||n===m.Processing}function Hn(e){const n=e.status;return n===m.Completed||n===m.Error||n===m.Deleted?!1:e.isProcessing===!0||e.isStreaming===!0||e.isResponding===!0||e.isWaitingOnTool===!0||e.activationState===$e.ACTIVATING||n===m.Active||n===m.Processing||n===m.Waiting}function ve(e){if(!e||e.status===m.Deleted)return null;const n=Pe(e)?.kind??null;return n==="blocker"?"blocker":Sn(e)?"question":n==="discussion"?"discussion":null}function ie(e){return ve(e)!==null}function Se(e){return e?.status===m.Error}function Ae(e){return e!==void 0&&e.status!==m.Deleted}function Nn(e){return!e||e.status===m.Deleted?!1:!Se(e)&&!ie(e)&&!Hn(e)}function me(e){if(!e)return 0;const n=new Date(e).getTime();return Number.isFinite(n)?n:0}function ne(e){if(!e)return 0;const n=Oe(e);return me(n!==null?n:e.lastActivity)}function Dn(e,n){return ne(n)-ne(e)}function Un(e,n){const t=new Map;for(const r of n){const a=ne(e.agentSessions.byAgentId[r.agentId]),i=t.get(r.wsId);(!i||a>i.time)&&t.set(r.wsId,{entry:r,time:a})}return[...t.values()].map(r=>r.entry)}function ce(e){return e.tabState.workspaceStacks.flat().flatMap(n=>{const t=k(e.workspace.workspaces,n);return t!==void 0&&We(t)?[t]:[]})}function qn(e){return new Map(ce(e).map((n,t)=>[n.id,t]))}function v(e,n,t,r="top-level"){return ce(e).flatMap(a=>{const i=e.workspaceAgents.byWorkspaceId[a.id],s=(r==="all"?i?.agentIds:i?.foregroundAgentIds)??[],c=[];for(const d of s){const u=String(d),f=e.agentSessions.byAgentId[u];f&&n(f,u)&&c.push({entry:{wsId:a.id,agentId:u},session:f})}return t&&c.sort((d,u)=>t(d.session,u.session)),c.map(d=>d.entry)})}function Gn(e){const n=ce(e).filter(s=>s.attention==="unread").map(s=>s.id),t=new Set(n),r=v(e,Ae).filter(s=>t.has(s.wsId)),a=new Map;for(const s of r){if(e.agentSessions.byAgentId[s.agentId]?.hasUnread!==!0)continue;const c=a.get(s.wsId)??[];c.push(s),a.set(s.wsId,c)}const i=new Map(Un(e,r).map(s=>[s.wsId,s]));return n.flatMap(s=>{const c=a.get(s);if(c!==void 0)return c.map(u=>({...u,clearsWorkspace:!1}));const d=i.get(s);return[d!==void 0?{...d,clearsWorkspace:!0}:{wsId:s,agentId:null,clearsWorkspace:!0}]})}function xn(){return An(yn.WINDOW.CYCLE_FOCUS)}const K=vn("HardwareConsoleActionKeyRegistry"),Yn=["overview","agents","context","changes","files"],j=["planning","agents-row","changes","review"],he=new Map;function b(e){const n=e.workspaceId;return typeof n!="string"||n.length===0||n===Ne?null:n}function te(e,n){return e.workspaceAgents.byWorkspaceId[n]?.activeAgentId??null}function $n(e,n){const r=(e.workspaceAgents.byWorkspaceId[n]?.agentIds??[]).some(c=>e.agentSessions.byAgentId[c]!==void 0),a=j.filter(c=>c!=="agents-row"||r),i=he.get(n)??-1,s=a.find(c=>j.indexOf(c)>i)??a[0];return he.set(n,j.indexOf(s)),s}function jn(e){const{state:n}=e,t=b(e),r=t===null?null:te(n,t);return r===null?null:String(r)}function P(e,n){return e.hardwareConsole.cycleScopeByFamily[n]}function Xn(e){return v(e,ee,Dn,P(e,"cycle-in-progress-agents"))}const zn={blocker:0,question:1,discussion:2,unread:3};function X(e){const n=Gn(e),t=v(e,ie,void 0,P(e,"cycle-attention-agents")),r={blocker:[],question:[],discussion:[]};for(const c of t){const d=ve(e.agentSessions.byAgentId[c.agentId]);d!==null&&r[d].push(c)}const a=new Map,i=[["blocker",r.blocker],["question",r.question],["discussion",r.discussion],["unread",n]],s=[];for(const[c,d]of i)for(const u of d){const f=w(u);a.has(f)||(a.set(f,zn[c]),s.push(u))}return{entries:s,rankByStopKey:a,attentionAgentIds:new Set(t.map(c=>c.agentId)),workspaceClearingWsIds:new Set(n.filter(c=>c.clearsWorkspace).map(c=>c.wsId))}}function Jn(e,n,t){e.dispatch(De(n,t)),e.dispatch(Ue(n,{agentId:t})),e.focusComposer(t)}const z=new Map;function re(e,n){return e[0]-n[0]||e[1]-n[1]||e[2]-n[2]}function Ce(e,n,t,r){const a=(r===null?void 0:t.get(r))??0,i=(d,u)=>[d,u>=a?0:1,u],s=d=>i(n(d),t.get(d.wsId)??0);return{ordered:e.map((d,u)=>({entry:d,index:u,key:s(d)})).sort((d,u)=>re(d.key,u.key)||d.index-u.index).map(d=>d.entry),keyOf:s,anchorTab:a}}function ae(e,n,t,r){const a=t(n),i=new Set(e.slice(e.indexOf(n)+1).filter(s=>s.wsId===n.wsId&&t(s)===a).map(w));return{entry:n,rank:a,laterOnTab:i,anchorWsId:r}}function Zn(e){const{entries:n,rankOf:t,tabIndex:r,cursor:a,currentWsId:i,focused:s}=e,c=i!==null&&r.has(i)?i:null,d=a===void 0?void 0:r.get(a.entry.wsId),u=a!==void 0&&d!==void 0&&(a.anchorWsId===null||r.has(a.anchorWsId))?a.anchorWsId:c,{ordered:f,keyOf:C,anchorTab:p}=Ce(n,t,r,u),E=g=>g.wsId===i&&(g.agentId===null||g.agentId===s);let _;if(a===void 0)_=f.findIndex(g=>!E(g));else{const g=w(a.entry);let M=f.findIndex(y=>w(y)===g);if(M===-1&&a.entry.agentId===null&&(M=f.findIndex(y=>y.wsId===a.entry.wsId&&t(y)===a.rank)),M!==-1)_=M+1;else if(d!==void 0){const y=d,F=[a.rank,y>=p?0:1,y];_=f.findIndex(de=>{const le=re(C(de),F);return le>0||le===0&&a.laterOnTab.has(w(de))})}else{const y=[a.rank,0,p];_=f.findIndex(F=>!E(F)&&re(C(F),y)>=0)}}const T=f[_===-1||_>=f.length?0:_];return{next:T,cursor:ae(f,T,t,u)}}const L=new Map,J=new Map;function R(e){return{id:e.id,get label(){return e.getLabel()},icon:e.icon,isAvailable({state:n}){return e.collect(n).length>0},getUnavailableHint(){return e.getEmptyHint()},execute(n){const{state:t}=n,r=(J.get(e.id)??0)+1;J.set(e.id,r);const a=e.collect(t);if(a.length===0)return;const i=e.rankOf?.(t)??(()=>0),s=L.get(e.id);L.delete(e.id);const c=s===void 0?-1:a.findIndex(g=>w(g)===s),d=jn(n);if(c===-1&&a.length===1&&(a[0].agentId!==null?a[0].agentId===d:a[0].wsId===b(n))){const g=b(n);z.set(e.id,ae(a,a[0],i,g)),a[0].agentId===null&&n.dispatch(fe(a[0].wsId)),n.showHint(e.getSingleCandidateHint());return}const f=qn(t),C=z.get(e.id);let p,E;if(c!==-1){p=a[c];const g=C!==void 0?C.anchorWsId:b(n),{ordered:M}=Ce(a,i,f,g);E=ae(M,p,i,g)}else({next:p,cursor:E}=Zn({entries:a,rankOf:i,tabIndex:f,cursor:C,currentWsId:b(n),focused:d}));const _=w(p);try{p.wsId!==b(n)&&n.showWorkspace(p.wsId).catch(g=>{K.warn("Failed to switch workspace for cycle step",{actionId:e.id,workspaceId:p.wsId,stopKey:_,error:g}),J.get(e.id)===r&&L.set(e.id,_)}),p.agentId!==null?Jn(n,p.wsId,p.agentId):n.dispatch(fe(p.wsId))}catch(g){throw L.set(e.id,_),g}z.set(e.id,E);const T=e.countRemaining?.(t,a,p)??a.length-1;n.dispatch(Z(e.getHudLabel?.(T)??e.getLabel()))}}}const Ee=[R({id:"cycle-workspace-agents",icon:on,getLabel:()=>o.hardwareConsole_actionKey_cycleWorkspaceAgents_label(),getEmptyHint:()=>o.hardwareConsole_actionKey_noAgents_message(),getSingleCandidateHint:()=>o.hardwareConsole_actionKey_noOtherAgents_message(),collect:e=>v(e,Ae)}),R({id:"cycle-in-progress-agents",icon:sn,getLabel:()=>o.hardwareConsole_actionKey_cycleInProgressAgents_label(),getEmptyHint:()=>o.hardwareConsole_actionKey_noInProgressAgents_message(),getSingleCandidateHint:()=>o.hardwareConsole_actionKey_noOtherInProgressAgents_message(),collect:Xn}),R({id:"cycle-attention-agents",icon:cn,getLabel:()=>o.hardwareConsole_actionKey_cycleAttentionAgents_label(),getEmptyHint:()=>o.hardwareConsole_actionKey_noAttentionAgents_message(),getSingleCandidateHint:()=>o.hardwareConsole_actionKey_noOtherAttentionAgents_message(),collect:e=>v(e,ie,void 0,P(e,"cycle-attention-agents"))}),R({id:"cycle-idle-agents",icon:dn,getLabel:()=>o.hardwareConsole_actionKey_cycleIdleAgents_label(),getEmptyHint:()=>o.hardwareConsole_actionKey_noIdleAgents_message(),getSingleCandidateHint:()=>o.hardwareConsole_actionKey_noOtherIdleAgents_message(),collect:e=>v(e,Nn,void 0,P(e,"cycle-idle-agents"))}),R({id:"cycle-unread-agents",icon:ln,getLabel:()=>o.hardwareConsole_actionKey_cycleUnreadAgents_label(),getEmptyHint:()=>o.hardwareConsole_actionKey_noUnreadAgents_message(),getSingleCandidateHint:()=>o.hardwareConsole_actionKey_noOtherUnreadAgents_message(),getHudLabel:e=>e===0?o.hardwareConsole_actionKey_cycleUnreadAgents_label():e===1?o.hardwareConsole_actionKey_cycleUnreadAgents_hudRemaining_one({count:e}):o.hardwareConsole_actionKey_cycleUnreadAgents_hudRemaining_many({count:e}),countRemaining:(e,n,t)=>{const{attentionAgentIds:r,workspaceClearingWsIds:a}=X(e),i=w(t);return n.filter(s=>w(s)===i?!1:s.agentId!==null&&r.has(s.agentId)||!a.has(s.wsId)?!0:s.wsId!==t.wsId).length},collect:e=>X(e).entries,rankOf:e=>{const{rankByStopKey:n}=X(e);return t=>n.get(w(t))??0}}),R({id:"cycle-failed-agents",icon:un,getLabel:()=>o.hardwareConsole_actionKey_cycleFailedAgents_label(),getEmptyHint:()=>o.hardwareConsole_actionKey_noFailedAgents_message(),getSingleCandidateHint:()=>o.hardwareConsole_actionKey_noOtherFailedAgents_message(),collect:e=>v(e,Se,void 0,P(e,"cycle-failed-agents"))}),{id:"stop-agent",get label(){return o.hardwareConsole_actionKey_stopAgent_label()},icon:Xe,isAvailable(e){const{state:n}=e,t=b(e);if(t===null)return!1;const r=te(n,t);return r!==null&&ee(n.agentSessions.byAgentId[r])},execute(e){const{state:n,dispatch:t}=e,r=b(e);if(r===null)return;const a=te(n,r);a===null||!ee(n.agentSessions.byAgentId[a])||(t(Te(a)),e.focusComposer(a))}},{id:"see-spec",get label(){return o.hardwareConsole_actionKey_seeSpec_label()},icon:ze,isAvailable(e){return b(e)!==null},execute(e){const{state:n,dispatch:t}=e,r=b(e);if(r===null)return;const a=Object.values(n.panelLayout.byWorkspaceId[r]?.panels??{});for(const i of a){const s=i.tabs.find(c=>c.id===i.activeTabId);if(s?.type==="note"&&s.noteId===Y){t(Fe(r,s.id,i.id));return}}if(a.length===1){t(ue(r,Y,{openInAdjacentPanel:!0,sourcePanelId:a[0].id}));return}t(ue(r,Y))}},{id:"toggle-sidebar-tabs",get label(){return o.hardwareConsole_actionKey_toggleSidebarTabs_label()},icon:Je,isAvailable(e){return b(e)!==null},execute(e){const{state:n,dispatch:t}=e,r=b(e);if(r===null)return;const a=n.sidebarNav.multiSelectTabOrder.length>0?n.sidebarNav.multiSelectTabOrder:[...Yn],i=n.sidebarNav.multiSelectSelectedTabIdsByWorkspaceId[r]??[],s=i.length===1?a.indexOf(i[0]):-1;t(Le(r,[a[(s+1)%a.length]]))}},{id:"new-agent",get label(){return o.hardwareConsole_actionKey_newAgent_label()},icon:Ze,isAvailable(e){return b(e)!==null},execute(e){const{dispatch:n}=e,t=b(e);t!==null&&n(Ke(t))}},{id:"new-workspace",get label(){return o.hardwareConsole_actionKey_newWorkspace_label()},icon:Qe,isAvailable(){return!0},execute({state:e,dispatch:n}){n(Ve(!e.sidebarNav.showCreateModal))}},{id:"switch-window-layouts",get label(){return o.hardwareConsole_actionKey_switchWindowLayouts_label()},icon:en,isAvailable(e){return b(e)!==null},execute(e){const{state:n,showHint:t}=e,r=b(e);if(r===null)return;const a=$n(n,r);Promise.all([$(()=>import("./2OP7IVCM.js").then(i=>i.p),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url),$(()=>import("./wKT6CuL7.js"),__vite__mapDeps([13,14,10,6,8,3,1,2,4,5,7,9,11,15,16,17,18,19,20,21,22,23,24,25,26]),import.meta.url)]).then(([{getPanelLayoutManager:i},{applyContentPreset:s}])=>s(a,i(r),{workspaceId:r,containerWidth:window.innerWidth,containerHeight:window.innerHeight})).then(i=>{i||t(o.hardwareConsole_actionKey_switchWindowLayouts_notApplicable_hint())}).catch(i=>{K.error("Failed to apply layout preset",{presetId:a,wsId:r,error:i})})}},{id:"cycle-open-windows",get label(){return o.hardwareConsole_actionKey_cycleOpenWindows_label()},icon:nn,isAvailable(){return In()},execute(e){const n=e.state.machineRail;if(n?.enabled){const t=e.state.guestSessions?.sessions,r=ye(n.machineIds,n.selectedId,s=>!!t&&k(t,s)!==void 0);if(!r){e.showHint(o.hardwareConsole_actionKey_noOtherMachines_message());return}const a=e.state.connections?.connections,i=a?k(a,r):void 0;e.dispatch(He(r)),e.dispatch(Z(i?i.isLocal?fn():gn(i):r));return}xn().then(t=>{t?.cycled?e.dispatch(Z(o.hardwareConsole_actionKey_cycleOpenWindows_label())):e.showHint(o.hardwareConsole_actionKey_noOtherOpenWindows_message())}).catch(t=>{K.error("Failed to cycle open windows",{error:t})})}},{id:"push-to-talk",get label(){return o.hardwareConsole_actionKey_pushToTalk_label()},icon:tn,isAvailable(){return kn()},getUnavailableHint(){return o.hardwareConsole_ptt_unavailable_message()},execute(e){if(!wn()&&pn(e.state.voiceSettings)==="unavailable"){mn();return}hn(e)},executeUp(e){_n(e)}},{id:"close-tab",get label(){return o.hardwareConsole_actionKey_closeTab_label()},icon:rn,isAvailable(){return!0},execute(e){const n=window.location.pathname;$(async()=>{const{closeActiveTab:t}=await import("./CEH2NAZ8.js");return{closeActiveTab:t}},__vite__mapDeps([27,28,11,6,29,30,1,2,3,4,5,7,8,9,10,31,32,15,12,33,34,35,36,14,16,17,18,19,20,21,22,23,24,25,26,37,38,39,40,41,42]),import.meta.url).then(({closeActiveTab:t})=>{t(n,e.navigate)===null&&e.showHint(o.hardwareConsole_actionKey_closeTab_nothingToClose_hint())}).catch(t=>{K.error("Failed to close the active tab",{error:t})})}},{id:"none",get label(){return o.hardwareConsole_actionKey_none_label()},icon:an,isAvailable(){return!1},execute(){}}];function Tr(e){const n=Ee.find(t=>t.id===e);if(!n)throw new Error(`Unknown action key action: ${e}`);return n}function Fr(e){return e.map(n=>{const t=n==="none"?null:Ee.find(r=>r.id===n)??null;return{icon:t?.icon??null,get label(){return t?.label??null}}})}const Qn=[{usagePage:1,usage:2},{usagePage:1,usage:1},{usagePage:1,usage:5}];function Lr(e){return e.length===0?"unknown":e.some(t=>Qn.some(r=>r.usagePage===t.usagePage&&r.usage===t.usage))||e.length>=5?"usb":"bluetooth"}const G=new Cn("HardwareConsoleCodexProbe"),et="KV_OAI_";function nt(e){if(typeof e!="object"||e===null)return null;const n=e.version;return typeof n=="string"?n:null}function tt(e){if(typeof e!="object"||e===null)return{batteryPercent:null,isCharging:!1};const n=e,t=n.battery;return{batteryPercent:typeof t=="number"&&Number.isFinite(t)?t:null,isCharging:n.is_charging===!0}}function rt(e){const n=e instanceof Error?e.message:String(e);return/method not found|-32601|404/i.test(n)}async function at(e){try{await e.call("v.oai.thstatus",[])}catch(n){return rt(n)?"unsupported-firmware":(G.warn("Codex-mode probe (v.oai.thstatus) failed",{error:String(n)}),"unknown")}try{const n=await e.call("fs.read",{file:"keymap.json"}),t=typeof n?.data=="string"?n.data:null;return t===null?"unknown":t.includes(et)?"ready":"no-codex-layer"}catch(n){return G.warn("Codex-layer probe (fs.read keymap.json) failed",{error:String(n)}),"unknown"}}async function Kr(e){const[n,t,r]=await Promise.all([e.call("sys.version").catch(a=>(G.warn("sys.version failed",{error:String(a)}),null)),e.call("device.status").catch(a=>(G.warn("device.status failed",{error:String(a)}),null)),at(e)]);return{firmwareVersion:nt(n),...tt(t),codexMode:r}}const Vr=["elevenlabs","openai"],V="voice.provider",x={elevenlabs:"voice.elevenlabs.apiKey",openai:"voice.openai.apiKey"},H="voice.openai.model",ot=["gpt-4o-transcribe","gpt-4o-mini-transcribe","whisper-1"],st="gpt-4o-transcribe",N="voice.language",it="",Hr=["en","zh","es","hi","ar","pt","fr","de","ja","ko","ru","it","nl","pl","tr","vi","id","th","sv","da","nb","fi","cs","el","he","hu","ro","uk"],D="voice.vocabulary",U="voice.workspaceVocabulary.maxTerms",ct=0,dt=100,lt=50;function ut(e){return typeof e=="number"&&Number.isInteger(e)&&e>=ct&&e<=dt}function ft(e){return e==="elevenlabs"||e==="openai"}function gt(e){return ot.includes(e)}function ke(e){return typeof e=="string"&&e.length>0}function bt(e){return Array.isArray(e)&&e.every(n=>typeof n=="string")?e:null}async function Nr(){const[e,n,t,r,a,i,s]=await Promise.all([h.settings.get(V),h.settings.get(x.elevenlabs),h.settings.get(x.openai),h.settings.get(D),h.settings.get(H),h.settings.get(N),h.settings.get(U)]);return{available:e!==null,provider:ft(e?.value)?e.value:"elevenlabs",keyConfigured:{elevenlabs:ke(n?.value),openai:ke(t?.value)},vocabulary:bt(r?.value),openaiModel:a===null?null:gt(a.value)?a.value:st,language:i===null?null:typeof i.value=="string"?i.value.trim().toLowerCase():it,workspaceVocabularyMaxTerms:s===null?null:ut(s.value)?s.value:lt}}async function Dr(e){if(!(await h.settings.update([{path:V,value:e}])).some(t=>t.path===V))throw new Error(`settings.update did not apply ${V}`)}async function Ur(e){if(!(await h.settings.update([{path:H,value:e}])).some(t=>t.path===H))throw new Error(`settings.update did not apply ${H}`)}async function qr(e){if(!(await h.settings.update([{path:N,value:e}])).some(t=>t.path===N))throw new Error(`settings.update did not apply ${N}`)}async function Gr(e){if(!(await h.settings.update([{path:D,value:e}])).some(t=>t.path===D))throw new Error(`settings.update did not apply ${D}`)}async function xr(e){if(!(await h.settings.update([{path:U,value:e}])).some(t=>t.path===U))throw new Error(`settings.update did not apply ${U}`)}async function Yr(e,n){const t=n.trim();if(!t)throw new Error("API key must not be empty");await h.settings.update([{path:x[e],value:t}])}async function $r(e){const n=x[e];if(await h.settings.reset(n)===null)throw new Error(`settings.reset failed for ${n}`)}const jr=["workspace-mcp"],Xr=/^[a-zA-Z0-9._-]+$/,zr=64,Jr=O("browserViewsLab/setRequested"),pt={macos:"macos",darwin:"macos",windows:"windows",win32:"windows",linux:"linux"};function mt(e){return e&&pt[e.trim().toLowerCase()]||null}function Zr(e,n){return mt(e.hostOs??n?.platform?.os)}const ht=new Set(["connected","disconnected"]);function kt(e){return e?.state!=="connected"||!e.capabilities?.resources?null:e.capabilities.capacity??null}function _t(e){return e?.state==="connected"?e.capabilities?.resources??null:null}function Me(e){return e&&ht.has(e.state)?e.capabilities:void 0}function Qr(e,n,t){if(e.providers)return e.providers.map(a=>({id:a.id,name:t(a.id)??a.displayName}));const r=Me(n);return r?r.providers.filter(bn).map(a=>({id:a.id,name:t(a.id)??a.id})):[]}function ea(e,n,t){if(t==="orchestrator")return[];const r=Me(e);return r?r.providers.filter(a=>a.visible!==!1&&a.status==="prerequisite-missing").map(a=>n(a.id)??a.id):[]}function na(e){return{macos:"macOS",windows:"Windows",linux:"Linux"}[e]}function ta(e,n){const{machine:t,backend:r}=n;switch(e.code){case"unsupported-backend":return o.remoteMachines_failure_unsupportedBackend_error({backend:r});case"same-machine":return o.remoteMachines_failure_sameMachine_error({machine:t});case"not-owner":return o.remoteMachines_failure_notOwner_error({machine:t});case"machine-not-connected":return o.remoteMachines_failure_notConnected_error({machine:t});case"listener-off":return o.remoteMachines_failure_listenerOff_error({machine:t});case"machine-update-required":return e.update==="backend"?o.remoteMachines_failure_updateBackend_error({machine:t,backend:r}):e.machineVersion&&e.backendVersion?o.remoteMachines_failure_updateMachineVersions_error({machine:t,machineVersion:e.machineVersion,backendVersion:e.backendVersion}):o.remoteMachines_failure_updateMachine_error({machine:t});case"machine-unreachable":{const a=e.unconfirmedStops?.length??0;if(a===0)return o.remoteMachines_failure_unreachable_error({machine:t,backend:r});const i=S(a);return a===1?o.remoteMachines_failure_unconfirmedStops_error_one({count:i,machine:t,backend:r}):o.remoteMachines_failure_unconfirmedStops_error_many({count:i,machine:t,backend:r})}case"machine-in-use":{const a=e.runningAgents??0;return a===1?o.remoteMachines_failure_inUse_error_one({count:S(a),machine:t}):o.remoteMachines_failure_inUse_error_many({count:S(a),machine:t})}case"machine-orchestrator":return o.remoteMachines_failure_orchestrator_error({machine:t,backend:r});case"failed":return o.remoteMachines_failure_generic_error({message:e.message??o.workspace_transfer_unknown_error()})}}function ra(e){return e.code==="machine-in-use"?"stop-agents":e.code==="machine-unreachable"&&(e.unconfirmedStops?.length??0)>0?"retry-stop-agents":null}function aa(e,n){switch(e.state){case"revoked":return o.remoteMachines_state_revoked_description({machine:n.machine});case"unreachable":return o.remoteMachines_state_unreachable_description(n);case"update-required":return o.remoteMachines_failure_updateMachine_error({machine:n.machine});default:return null}}function oa(e,n){switch(e.state){case"revoked":return{label:o.remoteMachines_state_revoked_label(),color:"red"};case"unreachable":return{label:o.remoteMachines_state_unreachable_label(),color:"amber"};case"update-required":return{label:o.remoteMachines_state_updateRequired_label(),color:"amber"};default:return{label:o.remoteMachines_state_available_label({backend:n}),color:"green"}}}function sa(e){return e===1?o.remoteMachines_agents_running_one({count:S(e)}):o.remoteMachines_agents_running_many({count:S(e)})}function _e(e,n){return o.remoteMachines_details_ofValue({used:e,total:n})}function ia(e){const n=kt(e),t=_t(e),r=[];return n&&r.push({label:o.remoteMachines_details_agents_label(),value:_e(S(n.runningAgents),S(n.agentCap))}),t?.cpuPercent!==void 0&&r.push({label:o.remoteMachines_details_cpu_label(),value:En(t.cpuPercent/100,{style:"percent",maximumFractionDigits:0})}),t&&r.push({label:o.remoteMachines_details_memory_label(),value:_e(ge(t.memoryUsedBytes),ge(t.memoryTotalBytes))}),r}function ca(e){return e.length===0?null:{label:o.remoteMachines_needsNode_label(),value:new Intl.ListFormat(Mn(),{style:"long",type:"conjunction"}).format(e)}}function da(e){if(!e)return!0;try{const n=new URL(e);return(n.protocol==="https:"||n.protocol==="http:")&&n.host.length>0}catch{return!1}}const wt=l.createSelector((e,n)=>{const t=B.select(e,n)?.values;return{enabled:t?.enabled===!0,persistedPort:typeof t?.persistedPort=="number"?t.persistedPort:5181,port:typeof t?.port=="number"?t.port:null,certFingerprint:typeof t?.certFingerprint=="string"?t.certFingerprint:"",localIps:Array.isArray(t?.localIps)?t.localIps:[],availableIps:Array.isArray(t?.availableIps)?t.availableIps:null,bindIps:Array.isArray(t?.bindIps)?t.bindIps:[],bindAddressSupported:t?.bindAddressSupported===!0,tunnelEnabled:t?.tunnelEnabled===!0,tunnelOnly:t?.tunnelOnly===!0,tunnelSupported:t?.tunnelSupported===!0,tcAddress:typeof t?.tcAddress=="string"?t.tcAddress:"",relaySupported:t?.relaySupported===!0,relayUrl:typeof t?.relayUrl=="string"?t.relayUrl:""}}),la=l.createSelector((e,n)=>wt.select(e,Ie.select(e,n)??{formId:n,sessionId:""})),ua=O("rtkSettings/requested"),fa=O("rtkSettings/installStarted"),ga=O("pushSettings/requested"),we=[{id:"dracula",label:"Dracula",previewColors:{dark:["#282a36","#f8f8f2","#bd93f9","#ff79c6"],light:["#f8f8f2","#282a36","#9580ff","#ff80bf"]},dark:{name:"Dracula",type:"dark",colors:{"editor.background":"#282a36","editor.foreground":"#f8f8f2","sideBar.background":"#21222c","sideBar.foreground":"#f8f8f2","editorWidget.background":"#282a36","editorWidget.foreground":"#f8f8f2","dropdown.background":"#282a36","dropdown.foreground":"#f8f8f2",focusBorder:"#6272a4","input.background":"#21222c","panel.border":"#44475a","button.background":"#bd93f9","button.foreground":"#282a36","badge.background":"#bd93f9","badge.foreground":"#282a36","list.activeSelectionBackground":"#44475a","list.activeSelectionForeground":"#f8f8f2","tab.inactiveBackground":"#21222c",descriptionForeground:"#6272a4",errorForeground:"#ff5555","terminal.background":"#282a36","terminal.foreground":"#f8f8f2","terminal.ansiBlack":"#21222c","terminal.ansiRed":"#ff5555","terminal.ansiGreen":"#50fa7b","terminal.ansiYellow":"#f1fa8c","terminal.ansiBlue":"#bd93f9","terminal.ansiMagenta":"#ff79c6","terminal.ansiCyan":"#8be9fd","terminal.ansiWhite":"#f8f8f2"}},light:{name:"Dracula Light",type:"light",colors:{"editor.background":"#f8f8f2","editor.foreground":"#282a36","sideBar.background":"#eaeaeb","sideBar.foreground":"#282a36","editorWidget.background":"#f8f8f2","editorWidget.foreground":"#282a36","dropdown.background":"#f8f8f2","dropdown.foreground":"#282a36",focusBorder:"#9580ff","input.background":"#eaeaeb","panel.border":"#d4d4d6","button.background":"#9580ff","button.foreground":"#f8f8f2","badge.background":"#9580ff","badge.foreground":"#f8f8f2","list.activeSelectionBackground":"#d4d4d6","list.activeSelectionForeground":"#282a36","tab.inactiveBackground":"#eaeaeb",descriptionForeground:"#6272a4",errorForeground:"#ff5555","terminal.background":"#f8f8f2","terminal.foreground":"#282a36","terminal.ansiBlack":"#282a36","terminal.ansiRed":"#e13535","terminal.ansiGreen":"#2a9f4a","terminal.ansiYellow":"#c4a000","terminal.ansiBlue":"#7c6dd8","terminal.ansiMagenta":"#e06cb0","terminal.ansiCyan":"#2aacbd","terminal.ansiWhite":"#f8f8f2"}}},{id:"nord",label:"Nord",previewColors:{dark:["#2e3440","#d8dee9","#88c0d0","#81a1c1"],light:["#eceff4","#2e3440","#5e81ac","#88c0d0"]},dark:{name:"Nord",type:"dark",colors:{"editor.background":"#2e3440","editor.foreground":"#d8dee9","sideBar.background":"#1b2029","sideBar.foreground":"#d8dee9","editorWidget.background":"#2e3440","editorWidget.foreground":"#d8dee9","dropdown.background":"#3b4252","dropdown.foreground":"#d8dee9",focusBorder:"#88c0d0","input.background":"#3b4252","panel.border":"#3b4252","button.background":"#88c0d0","button.foreground":"#2e3440","badge.background":"#88c0d0","badge.foreground":"#2e3440","list.activeSelectionBackground":"#3b4252","list.activeSelectionForeground":"#d8dee9","tab.inactiveBackground":"#2e3440",descriptionForeground:"#7b88a1",errorForeground:"#bf616a","terminal.background":"#2e3440","terminal.foreground":"#d8dee9","terminal.ansiBlack":"#3b4252","terminal.ansiRed":"#bf616a","terminal.ansiGreen":"#a3be8c","terminal.ansiYellow":"#ebcb8b","terminal.ansiBlue":"#81a1c1","terminal.ansiMagenta":"#b48ead","terminal.ansiCyan":"#88c0d0","terminal.ansiWhite":"#e5e9f0"}},light:{name:"Nord Light",type:"light",colors:{"editor.background":"#eceff4","editor.foreground":"#2e3440","sideBar.background":"#e5e9f0","sideBar.foreground":"#2e3440","editorWidget.background":"#eceff4","editorWidget.foreground":"#2e3440","dropdown.background":"#eceff4","dropdown.foreground":"#2e3440",focusBorder:"#5e81ac","input.background":"#e5e9f0","panel.border":"#d8dee9","button.background":"#5e81ac","button.foreground":"#eceff4","badge.background":"#5e81ac","badge.foreground":"#eceff4","list.activeSelectionBackground":"#d8dee9","list.activeSelectionForeground":"#2e3440","tab.inactiveBackground":"#e5e9f0",descriptionForeground:"#7b88a1",errorForeground:"#bf616a","terminal.background":"#eceff4","terminal.foreground":"#2e3440","terminal.ansiBlack":"#2e3440","terminal.ansiRed":"#bf616a","terminal.ansiGreen":"#a3be8c","terminal.ansiYellow":"#d08770","terminal.ansiBlue":"#5e81ac","terminal.ansiMagenta":"#b48ead","terminal.ansiCyan":"#88c0d0","terminal.ansiWhite":"#e5e9f0"}}},{id:"rose-pine",label:"Rosé Pine",previewColors:{dark:["#191724","#e0def4","#c4a7e7","#ebbcba"],light:["#faf4ed","#575279","#907aa9","#d7827e"]},dark:{name:"Rosé Pine",type:"dark",colors:{"editor.background":"#191724","editor.foreground":"#e0def4","sideBar.background":"#1f1d2e","sideBar.foreground":"#e0def4","editorWidget.background":"#191724","editorWidget.foreground":"#e0def4","dropdown.background":"#1f1d2e","dropdown.foreground":"#e0def4",focusBorder:"#c4a7e7","input.background":"#1f1d2e","panel.border":"#26233a","button.background":"#c4a7e7","button.foreground":"#191724","badge.background":"#c4a7e7","badge.foreground":"#191724","list.activeSelectionBackground":"#26233a","list.activeSelectionForeground":"#e0def4","tab.inactiveBackground":"#1f1d2e",descriptionForeground:"#908caa",errorForeground:"#eb6f92","terminal.background":"#191724","terminal.foreground":"#e0def4","terminal.ansiBlack":"#26233a","terminal.ansiRed":"#eb6f92","terminal.ansiGreen":"#9ccfd8","terminal.ansiYellow":"#f6c177","terminal.ansiBlue":"#31748f","terminal.ansiMagenta":"#c4a7e7","terminal.ansiCyan":"#9ccfd8","terminal.ansiWhite":"#e0def4"}},light:{name:"Rosé Pine Dawn",type:"light",colors:{"editor.background":"#faf4ed","editor.foreground":"#575279","sideBar.background":"#f2e9e1","sideBar.foreground":"#575279","editorWidget.background":"#faf4ed","editorWidget.foreground":"#575279","dropdown.background":"#faf4ed","dropdown.foreground":"#575279",focusBorder:"#907aa9","input.background":"#f2e9e1","panel.border":"#dfdad9","button.background":"#907aa9","button.foreground":"#faf4ed","badge.background":"#907aa9","badge.foreground":"#faf4ed","list.activeSelectionBackground":"#dfdad9","list.activeSelectionForeground":"#575279","tab.inactiveBackground":"#f2e9e1",descriptionForeground:"#9893a5",errorForeground:"#b4637a","terminal.background":"#faf4ed","terminal.foreground":"#575279","terminal.ansiBlack":"#575279","terminal.ansiRed":"#b4637a","terminal.ansiGreen":"#56949f","terminal.ansiYellow":"#ea9d34","terminal.ansiBlue":"#286983","terminal.ansiMagenta":"#907aa9","terminal.ansiCyan":"#56949f","terminal.ansiWhite":"#f2e9e1"}}},{id:"tokyo-night",label:"Tokyo Night",previewColors:{dark:["#1a1b26","#a9b1d6","#7aa2f7","#bb9af7"],light:["#d5d6db","#343b58","#34548a","#5a4a78"]},dark:{name:"Tokyo Night",type:"dark",colors:{"editor.background":"#1a1b26","editor.foreground":"#a9b1d6","sideBar.background":"#1f2335","sideBar.foreground":"#a9b1d6","editorWidget.background":"#1a1b26","editorWidget.foreground":"#a9b1d6","dropdown.background":"#1f2335","dropdown.foreground":"#a9b1d6",focusBorder:"#7aa2f7","input.background":"#1f2335","panel.border":"#292e42","button.background":"#7aa2f7","button.foreground":"#1a1b26","badge.background":"#7aa2f7","badge.foreground":"#1a1b26","list.activeSelectionBackground":"#292e42","list.activeSelectionForeground":"#a9b1d6","tab.inactiveBackground":"#1f2335",descriptionForeground:"#565f89",errorForeground:"#f7768e","terminal.background":"#1a1b26","terminal.foreground":"#a9b1d6","terminal.ansiBlack":"#414868","terminal.ansiRed":"#f7768e","terminal.ansiGreen":"#9ece6a","terminal.ansiYellow":"#e0af68","terminal.ansiBlue":"#7aa2f7","terminal.ansiMagenta":"#bb9af7","terminal.ansiCyan":"#7dcfff","terminal.ansiWhite":"#c0caf5"}},light:{name:"Tokyo Night Light",type:"light",colors:{"editor.background":"#d5d6db","editor.foreground":"#343b58","sideBar.background":"#cbccd1","sideBar.foreground":"#343b58","editorWidget.background":"#d5d6db","editorWidget.foreground":"#343b58","dropdown.background":"#d5d6db","dropdown.foreground":"#343b58",focusBorder:"#34548a","input.background":"#cbccd1","panel.border":"#c0c1c6","button.background":"#34548a","button.foreground":"#d5d6db","badge.background":"#34548a","badge.foreground":"#d5d6db","list.activeSelectionBackground":"#c0c1c6","list.activeSelectionForeground":"#343b58","tab.inactiveBackground":"#cbccd1",descriptionForeground:"#6a6e82",errorForeground:"#8c4351","terminal.background":"#d5d6db","terminal.foreground":"#343b58","terminal.ansiBlack":"#343b58","terminal.ansiRed":"#8c4351","terminal.ansiGreen":"#33635c","terminal.ansiYellow":"#8f5e15","terminal.ansiBlue":"#34548a","terminal.ansiMagenta":"#5a4a78","terminal.ansiCyan":"#0f4b6e","terminal.ansiWhite":"#d5d6db"}}},{id:"solarized",label:"Solarized",previewColors:{dark:["#002b36","#839496","#268bd2","#2aa198"],light:["#fdf6e3","#657b83","#268bd2","#2aa198"]},dark:{name:"Solarized Dark",type:"dark",colors:{"editor.background":"#002b36","editor.foreground":"#839496","sideBar.background":"#001e26","sideBar.foreground":"#839496","editorWidget.background":"#002b36","editorWidget.foreground":"#839496","dropdown.background":"#002b36","dropdown.foreground":"#839496",focusBorder:"#268bd2","input.background":"#001e26","panel.border":"#073642","button.background":"#268bd2","button.foreground":"#fdf6e3","badge.background":"#268bd2","badge.foreground":"#fdf6e3","list.activeSelectionBackground":"#073642","list.activeSelectionForeground":"#839496","tab.inactiveBackground":"#001e26",descriptionForeground:"#586e75",errorForeground:"#dc322f","terminal.background":"#002b36","terminal.foreground":"#839496","terminal.ansiBlack":"#073642","terminal.ansiRed":"#dc322f","terminal.ansiGreen":"#859900","terminal.ansiYellow":"#b58900","terminal.ansiBlue":"#268bd2","terminal.ansiMagenta":"#d33682","terminal.ansiCyan":"#2aa198","terminal.ansiWhite":"#eee8d5"}},light:{name:"Solarized Light",type:"light",colors:{"editor.background":"#fdf6e3","editor.foreground":"#657b83","sideBar.background":"#EDE8D4","sideBar.foreground":"#657b83","editorWidget.background":"#fdf6e3","editorWidget.foreground":"#657b83","dropdown.background":"#fdf6e3","dropdown.foreground":"#657b83",focusBorder:"#268bd2","input.background":"#eee8d5","panel.border":"#eee8d5","button.background":"#268bd2","button.foreground":"#fdf6e3","badge.background":"#268bd2","badge.foreground":"#fdf6e3","list.activeSelectionBackground":"#eee8d5","list.activeSelectionForeground":"#657b83","tab.inactiveBackground":"#eee8d5",descriptionForeground:"#93a1a1",errorForeground:"#dc322f","terminal.background":"#fdf6e3","terminal.foreground":"#657b83","terminal.ansiBlack":"#073642","terminal.ansiRed":"#dc322f","terminal.ansiGreen":"#859900","terminal.ansiYellow":"#b58900","terminal.ansiBlue":"#268bd2","terminal.ansiMagenta":"#d33682","terminal.ansiCyan":"#2aa198","terminal.ansiWhite":"#eee8d5"}}},{id:"github",label:"GitHub",previewColors:{dark:["#0d1117","#e6edf3","#58a6ff","#bc8cff"],light:["#ffffff","#24292f","#0969da","#8250df"]},dark:{name:"GitHub Dark",type:"dark",colors:{"editor.background":"#0d1117","editor.foreground":"#e6edf3","sideBar.background":"#010409","sideBar.foreground":"#e6edf3","editorWidget.background":"#0d1117","editorWidget.foreground":"#e6edf3","dropdown.background":"#0d1117","dropdown.foreground":"#e6edf3",focusBorder:"#58a6ff","input.background":"#010409","panel.border":"#21262d","button.background":"#58a6ff","button.foreground":"#0d1117","badge.background":"#58a6ff","badge.foreground":"#0d1117","list.activeSelectionBackground":"#21262d","list.activeSelectionForeground":"#e6edf3","tab.inactiveBackground":"#010409",descriptionForeground:"#8b949e",errorForeground:"#f85149","terminal.background":"#0d1117","terminal.foreground":"#e6edf3","terminal.ansiBlack":"#484f58","terminal.ansiRed":"#ff7b72","terminal.ansiGreen":"#3fb950","terminal.ansiYellow":"#d29922","terminal.ansiBlue":"#58a6ff","terminal.ansiMagenta":"#bc8cff","terminal.ansiCyan":"#39d2c0","terminal.ansiWhite":"#b1bac4"}},light:{name:"GitHub Light",type:"light",colors:{"editor.background":"#ffffff","editor.foreground":"#24292f","sideBar.background":"#f6f8fa","sideBar.foreground":"#24292f","editorWidget.background":"#ffffff","editorWidget.foreground":"#24292f","dropdown.background":"#ffffff","dropdown.foreground":"#24292f",focusBorder:"#0969da","input.background":"#f6f8fa","panel.border":"#d0d7de","button.background":"#0969da","button.foreground":"#ffffff","badge.background":"#0969da","badge.foreground":"#ffffff","list.activeSelectionBackground":"#ddf4ff","list.activeSelectionForeground":"#24292f","tab.inactiveBackground":"#f6f8fa",descriptionForeground:"#57606a",errorForeground:"#cf222e","terminal.background":"#ffffff","terminal.foreground":"#24292f","terminal.ansiBlack":"#24292f","terminal.ansiRed":"#cf222e","terminal.ansiGreen":"#116329","terminal.ansiYellow":"#4d2d00","terminal.ansiBlue":"#0969da","terminal.ansiMagenta":"#8250df","terminal.ansiCyan":"#1b7c83","terminal.ansiWhite":"#6e7781"}}},{id:"high-contrast",label:"High Contrast",previewColors:{dark:["#000000","#ffffff","#60a5fa","#f87171"],light:["#ffffff","#111111","#2563eb","#dc2626"]},dark:{name:"High Contrast Dark",type:"dark",colors:{"editor.background":"#000000","editor.foreground":"#ffffff","sideBar.background":"#111111","sideBar.foreground":"#ffffff","editorWidget.background":"#000000","editorWidget.foreground":"#ffffff","dropdown.background":"#000000","dropdown.foreground":"#ffffff",focusBorder:"#60a5fa","input.background":"#0a0a0a","panel.border":"#6b7280","button.background":"#60a5fa","button.foreground":"#000000","badge.background":"#60a5fa","badge.foreground":"#000000","list.activeSelectionBackground":"#1e3a5f","list.activeSelectionForeground":"#ffffff","tab.inactiveBackground":"#111111",descriptionForeground:"#d1d5db",errorForeground:"#f87171","terminal.background":"#000000","terminal.foreground":"#ffffff","terminal.ansiBlack":"#4b5563","terminal.ansiRed":"#f87171","terminal.ansiGreen":"#4ade80","terminal.ansiYellow":"#facc15","terminal.ansiBlue":"#60a5fa","terminal.ansiMagenta":"#c084fc","terminal.ansiCyan":"#22d3ee","terminal.ansiWhite":"#ffffff"}},light:{name:"High Contrast Light",type:"light",colors:{"editor.background":"#ffffff","editor.foreground":"#111111","sideBar.background":"#ededed","sideBar.foreground":"#111111","editorWidget.background":"#ffffff","editorWidget.foreground":"#111111","dropdown.background":"#ffffff","dropdown.foreground":"#111111",focusBorder:"#2563eb","input.background":"#f5f5f5","panel.border":"#4b5563","button.background":"#2563eb","button.foreground":"#ffffff","badge.background":"#2563eb","badge.foreground":"#ffffff","list.activeSelectionBackground":"#dbeafe","list.activeSelectionForeground":"#111111","tab.inactiveBackground":"#ededed",descriptionForeground:"#374151",errorForeground:"#dc2626","terminal.background":"#ffffff","terminal.foreground":"#111111","terminal.ansiBlack":"#111111","terminal.ansiRed":"#dc2626","terminal.ansiGreen":"#15803d","terminal.ansiYellow":"#a16207","terminal.ansiBlue":"#2563eb","terminal.ansiMagenta":"#7c3aed","terminal.ansiCyan":"#0e7490","terminal.ansiWhite":"#e5e7eb"}}}];function yt(){const e=new Map(be.map(t=>[t.id,t.label])),n=new Map(we.map(t=>[t.id,t.label]));for(const{id:t,label:r}of we)if(e.get(t)!==r)throw new Error(`Theme preset ${t} (${r}) is missing from the shared manifest`);for(const{id:t,label:r}of be)if(n.get(t)!==r)throw new Error(`Theme preset manifest entry ${t} (${r}) is missing from renderer presets`)}yt();export{ua as $,Ee as A,na as B,kt as C,ea as D,Zr as E,Qr as F,Me as G,_t as H,ca as I,Ar as J,Kr as K,ga as L,zr as M,Pn as N,Pr as O,Sr as P,Ir as Q,jr as R,yr as S,_r as T,oa as U,Hr as V,ta as W,ra as X,aa as Y,Wr as Z,fa as _,Xr as a,sa as a0,Yr as a1,nr as a2,ar as a3,or as a4,tr as a5,rr as a6,Zt as a7,cr as a8,ir as a9,hr as aA,gr as aB,wt as aC,la as aD,ie as aE,Jr as aF,qr as aG,Ur as aH,Dr as aI,Gr as aJ,xr as aK,we as aL,Tn as aa,sr as ab,dr as ac,Fn as ad,ur as ae,lr as af,fr as ag,jt as ah,xt as ai,Ut as aj,$t as ak,Gt as al,qt as am,Yt as an,Qt as ao,Jt as ap,er as aq,Cr as ar,Xt as as,B as at,Ie as au,mr as av,pr as aw,kr as ax,Ln as ay,br as az,it as b,ot as c,Vr as d,dt as e,ct as f,Fr as g,wr as h,Rr as i,Wn as j,zt as k,vr as l,Or as m,$r as n,Q as o,Mr as p,xn as q,Tr as r,Lr as s,Bn as t,da as u,Nr as v,Er as w,ia as x,Br as y,mt as z};