@intent-hq/web 2.383.0 → 2.383.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{BlDljC9y.js → 0PdeE_M-.js} +1 -1
  3. package/web/app/immutable/chunks/{DMDFfHqn.js → 469banqV.js} +3 -3
  4. package/web/app/immutable/chunks/{DWiU4388.js → 6GlvsI2m.js} +1 -1
  5. package/web/app/immutable/chunks/{DdXBqrnq.js → 7GuT70Sz.js} +1 -1
  6. package/web/app/immutable/chunks/{lVh2oAeQ.js → B6qvxAO7.js} +1 -1
  7. package/web/app/immutable/chunks/{CRs9zG2A.js → B8VxRkn_.js} +1 -1
  8. package/web/app/immutable/chunks/{DF2_1gr9.js → BAP-Km9w.js} +1 -1
  9. package/web/app/immutable/chunks/{B2f9w8eB.js → BAzzHP-D.js} +1 -1
  10. package/web/app/immutable/chunks/{C_78iNNC.js → BBws4Cyt.js} +1 -1
  11. package/web/app/immutable/chunks/{CrkMZYjb.js → BCS2G1TZ.js} +1 -1
  12. package/web/app/immutable/chunks/{p9X2tUBM.js → BFgeFHTs.js} +1 -1
  13. package/web/app/immutable/chunks/{eTsHzcIE.js → BI0hvS48.js} +3 -3
  14. package/web/app/immutable/chunks/{BFIcslMA.js → BI3a2AWW.js} +1 -1
  15. package/web/app/immutable/chunks/{Ct_q9q1G.js → BK6a0pzX.js} +1 -1
  16. package/web/app/immutable/chunks/{DlliJA4a.js → BLyGObAP.js} +3 -3
  17. package/web/app/immutable/chunks/{B2kb4xeF.js → BNkpVy97.js} +1 -1
  18. package/web/app/immutable/chunks/{DY0qeQe8.js → BPzekfWN.js} +1 -1
  19. package/web/app/immutable/chunks/{BO_DS0RP.js → BTw9kxtg.js} +1 -1
  20. package/web/app/immutable/chunks/{Bir0Y4gf.js → BXhT5rHA.js} +1 -1
  21. package/web/app/immutable/chunks/{pYQh_Bw_.js → BY9RbRJy.js} +1 -1
  22. package/web/app/immutable/chunks/{AlEhxd2n.js → BYP8ebQS.js} +1 -1
  23. package/web/app/immutable/chunks/{B_LcgbLl.js → BbvEB4jz.js} +1 -1
  24. package/web/app/immutable/chunks/{DliHiH6M.js → BjRQQ_jq.js} +4 -4
  25. package/web/app/immutable/chunks/{hb4NYXGo.js → BkITif4J.js} +1 -1
  26. package/web/app/immutable/chunks/{DLbcryNV.js → BlRYe00B.js} +1 -1
  27. package/web/app/immutable/chunks/{UhL0ohiG.js → BlVYr5cA.js} +1 -1
  28. package/web/app/immutable/chunks/{S8ugWfAx.js → Bq_wOSEp.js} +1 -1
  29. package/web/app/immutable/chunks/{DVROSXw1.js → BtHTHBJp.js} +1 -1
  30. package/web/app/immutable/chunks/{Csc9ETIC.js → BvPbguyx.js} +1 -1
  31. package/web/app/immutable/chunks/{D_ovLyyd.js → BvbTU4IL.js} +1 -1
  32. package/web/app/immutable/chunks/{3xK9OOJy.js → BwhjiNjC.js} +1 -1
  33. package/web/app/immutable/chunks/{DIG1mTAN.js → BwtFad5m.js} +2 -2
  34. package/web/app/immutable/chunks/{Dqdvt4Zr.js → BxVnbYG1.js} +1 -1
  35. package/web/app/immutable/chunks/{BmUPAQa9.js → ByfS7UIX.js} +1 -1
  36. package/web/app/immutable/chunks/{BP4Hm_tD.js → C-O59F9J.js} +2 -2
  37. package/web/app/immutable/chunks/{CuW3cq2w.js → C6Qw0raF.js} +1 -1
  38. package/web/app/immutable/chunks/{DO19lrhU.js → C8JlOzbF.js} +1 -1
  39. package/web/app/immutable/chunks/{jn4zbMQy.js → C9h2rwKF.js} +1 -1
  40. package/web/app/immutable/chunks/{Ba8ctcpl.js → CBkpyV7r.js} +1 -1
  41. package/web/app/immutable/chunks/{baWz1QxB.js → CDAoSo12.js} +1 -1
  42. package/web/app/immutable/chunks/{CFvBUo4R.js → CDCEiDxP.js} +3 -3
  43. package/web/app/immutable/chunks/{L4HdMFBq.js → CDNvYbvS.js} +1 -1
  44. package/web/app/immutable/chunks/{C8HkqBCb.js → CEOBX1Pf.js} +1 -1
  45. package/web/app/immutable/chunks/{DUIwUF5m.js → CGIQkN5K.js} +1 -1
  46. package/web/app/immutable/chunks/{PO_5m99x.js → CHXhxB4Q.js} +1 -1
  47. package/web/app/immutable/chunks/{DE7dSDHO.js → CI9sv_EP.js} +1 -1
  48. package/web/app/immutable/chunks/{CPQ-kfy2.js → CJO6KBmw.js} +1 -1
  49. package/web/app/immutable/chunks/{1mf839wD.js → CJVoHxzN.js} +1 -1
  50. package/web/app/immutable/chunks/{DWWC1JsA.js → CKXQrY3X.js} +1 -1
  51. package/web/app/immutable/chunks/{IQ13JH5A.js → CL-lzPGU.js} +1 -1
  52. package/web/app/immutable/chunks/{DPA45OJk.js → CaNxJFJ1.js} +1 -1
  53. package/web/app/immutable/chunks/{CXS2Ba3S.js → CbO3oDHw.js} +1 -1
  54. package/web/app/immutable/chunks/{BWGnuS1v.js → CeHXXIxE.js} +1 -1
  55. package/web/app/immutable/chunks/{CYtPXqgK.js → CiSIqqOJ.js} +1 -1
  56. package/web/app/immutable/chunks/{lwlI9u_5.js → CjpxPpfy.js} +1 -1
  57. package/web/app/immutable/chunks/{Bu7LYnzn.js → Ck2X3Rvg.js} +1 -1
  58. package/web/app/immutable/chunks/{cebxNJuC.js → Ckb6le-m.js} +4 -4
  59. package/web/app/immutable/chunks/{BJ_CKcUH.js → CkmRZ_MC.js} +1 -1
  60. package/web/app/immutable/chunks/{C5yhcKTW.js → CnAbYuPp.js} +1 -1
  61. package/web/app/immutable/chunks/{D3O8Vtuw.js → CnqJXAKo.js} +1 -1
  62. package/web/app/immutable/chunks/{8r75D0ru.js → Cofxvpdb.js} +1 -1
  63. package/web/app/immutable/chunks/{DEVX5wOm.js → CrFyLBfi.js} +2 -2
  64. package/web/app/immutable/chunks/{D9XKwVJX.js → CxFOqPFP.js} +3 -3
  65. package/web/app/immutable/chunks/{CPTZJWC9.js → Cxf6ur9F.js} +1 -1
  66. package/web/app/immutable/chunks/{Bn880vDO.js → D-YGlaxj.js} +1 -1
  67. package/web/app/immutable/chunks/{Cs2lHsyA.js → D-dukRlA.js} +1 -1
  68. package/web/app/immutable/chunks/{DFcppVBl.js → D3C3nNLs.js} +1 -1
  69. package/web/app/immutable/chunks/{CAgnBDaV.js → D4FXvK9L.js} +3 -3
  70. package/web/app/immutable/chunks/{jcl0zObl.js → DDJ_XVek.js} +2 -2
  71. package/web/app/immutable/chunks/{DMQmPhTl.js → DEI5RmgA.js} +1 -1
  72. package/web/app/immutable/chunks/{BG9tvqwj.js → DJs4vEjF.js} +1 -1
  73. package/web/app/immutable/chunks/{W2WLehNu.js → DME_6OFx.js} +1 -1
  74. package/web/app/immutable/chunks/{D5xMHmv3.js → DMlkDPxV.js} +1 -1
  75. package/web/app/immutable/chunks/{CEgeN2ws.js → DOUbieNj.js} +1 -1
  76. package/web/app/immutable/chunks/{DIFhl0he.js → DOhJfAZG.js} +1 -1
  77. package/web/app/immutable/chunks/{B5M0SkuR.js → DPZcepbV.js} +1 -1
  78. package/web/app/immutable/chunks/{BtTA7CNV.js → DPyomP91.js} +1 -1
  79. package/web/app/immutable/chunks/{CuewocoW.js → DPzOIlu9.js} +1 -1
  80. package/web/app/immutable/chunks/{BJWt3PU_.js → DSAj_NCN.js} +1 -1
  81. package/web/app/immutable/chunks/{eQVXRlbn.js → DUhA4bgN.js} +1 -1
  82. package/web/app/immutable/chunks/{BA-rwlhs.js → DaaqgDka.js} +1 -1
  83. package/web/app/immutable/chunks/{wUSGg9l9.js → Ddq8SBEz.js} +1 -1
  84. package/web/app/immutable/chunks/{DOEI9gYY.js → DduCxuVq.js} +1 -1
  85. package/web/app/immutable/chunks/{DpHn84BV.js → Dhzl8ugO.js} +1 -1
  86. package/web/app/immutable/chunks/{COhRCR9P.js → Di8eJPr0.js} +2 -2
  87. package/web/app/immutable/chunks/{DlJZrxef.js → Div5PXT-.js} +2 -2
  88. package/web/app/immutable/chunks/{puJFvQs5.js → DjHhZWUX.js} +1 -1
  89. package/web/app/immutable/chunks/{ChTVnFH2.js → Djg1-55Y.js} +1 -1
  90. package/web/app/immutable/chunks/{Cmq0pZIQ.js → DlEmrQXN.js} +2 -2
  91. package/web/app/immutable/chunks/{CMrw-y4l.js → Dm7KqEFT.js} +13 -13
  92. package/web/app/immutable/chunks/{BsN2abqQ.js → DmXAUF0G.js} +1 -1
  93. package/web/app/immutable/chunks/{k0JmlCVk.js → DmaEU7hb.js} +1 -1
  94. package/web/app/immutable/chunks/{C0I_aIej.js → DqMqjmmT.js} +2 -2
  95. package/web/app/immutable/chunks/{sdV4t8T0.js → Dr0V5Z_Q.js} +1 -1
  96. package/web/app/immutable/chunks/{BETzmOvF.js → DrHfN5GT.js} +1 -1
  97. package/web/app/immutable/chunks/{BfvZe-kN.js → DsT1iX_Q.js} +6 -6
  98. package/web/app/immutable/chunks/{BSKf8bnG.js → Dsf8OM9-.js} +1 -1
  99. package/web/app/immutable/chunks/{BUQUek8g.js → Du_rNq8q.js} +1 -1
  100. package/web/app/immutable/chunks/{DK-ttWlY.js → DwImHc9s.js} +1 -1
  101. package/web/app/immutable/chunks/{DvSURWC2.js → Dzk9iuw9.js} +3 -3
  102. package/web/app/immutable/chunks/{9bukzQMK.js → Fdd73CJo.js} +1 -1
  103. package/web/app/immutable/chunks/{DpyfxjgC.js → H9IjxeQk.js} +1 -1
  104. package/web/app/immutable/chunks/{DGa13zF2.js → KH7BHXXb.js} +1 -1
  105. package/web/app/immutable/chunks/{U_OQY9n3.js → KSLBBJRy.js} +1 -1
  106. package/web/app/immutable/chunks/{BAOaoX22.js → M-TVgx-R.js} +1 -1
  107. package/web/app/immutable/chunks/{BeNn_MBw.js → MI7EtNv0.js} +1 -1
  108. package/web/app/immutable/chunks/{CtNkh9GR.js → MQBseMlG.js} +1 -1
  109. package/web/app/immutable/chunks/{CE7VCun2.js → P-T74LCo.js} +3 -3
  110. package/web/app/immutable/chunks/{Bz7R1ahj.js → Rx5mQeGT.js} +4 -4
  111. package/web/app/immutable/chunks/{BwG2vfja.js → Su2XS_Ru.js} +1 -1
  112. package/web/app/immutable/chunks/{9gSjzhYc.js → T8d_aLDP.js} +1 -1
  113. package/web/app/immutable/chunks/{duDdSCAT.js → TiuNiN7j.js} +1 -1
  114. package/web/app/immutable/chunks/{DjxLojU4.js → W7maz5hp.js} +1 -1
  115. package/web/app/immutable/chunks/{DeHvIzqj.js → WVvubfLN.js} +2 -2
  116. package/web/app/immutable/chunks/{BURZJh0r.js → XHPDEELd.js} +1 -1
  117. package/web/app/immutable/chunks/{pwJelZzH.js → Zx9hB63s.js} +1 -1
  118. package/web/app/immutable/chunks/{wIMcEpgB.js → azpKokvz.js} +1 -1
  119. package/web/app/immutable/chunks/{Db3Wob9h.js → bF6PpsOD.js} +1 -1
  120. package/web/app/immutable/chunks/{CxOmNieJ.js → h06E2ICA.js} +1 -1
  121. package/web/app/immutable/chunks/{4BrIaRe_.js → i_QPvq4q.js} +1 -1
  122. package/web/app/immutable/chunks/{BX-LCSle.js → nImP7yvb.js} +1 -1
  123. package/web/app/immutable/chunks/{Bs2WE18g.js → nbomrtth.js} +1 -1
  124. package/web/app/immutable/chunks/{M5Dwuu-X.js → oOhxfFIU.js} +1 -1
  125. package/web/app/immutable/chunks/{0HRWclfL.js → q6F-1__g.js} +1 -1
  126. package/web/app/immutable/chunks/{68Tuqjp3.js → x63yRqVE.js} +1 -1
  127. package/web/app/immutable/chunks/{DSbNJBwA.js → yaHL2zPw.js} +1 -1
  128. package/web/app/immutable/chunks/{nXfD7jHz.js → zHu1d_6X.js} +2 -2
  129. package/web/app/immutable/entry/{app.PfV9Bd5g.js → app.CgYQGiwi.js} +2 -2
  130. package/web/app/immutable/entry/start.C_kFKw1E.js +1 -0
  131. package/web/app/immutable/nodes/{0.N3QFhxpx.js → 0.DOOOI3Bo.js} +1 -1
  132. package/web/app/immutable/nodes/{1.Cuki-Q-c.js → 1.DCbWOuyY.js} +1 -1
  133. package/web/app/immutable/nodes/{10.CzZBTiyD.js → 10.DkhUAhty.js} +4 -4
  134. package/web/app/immutable/nodes/{11.Cc53X5P2.js → 11.DDwWhO0Z.js} +1 -1
  135. package/web/app/immutable/nodes/{15.D2GMHiSb.js → 15.Dw1bH9Zl.js} +1 -1
  136. package/web/app/immutable/nodes/{19.DvFJngD4.js → 19.BDZr-fpl.js} +2 -2
  137. package/web/app/immutable/nodes/{2.B94-26jU.js → 2.BXcXLNQd.js} +4 -4
  138. package/web/app/immutable/nodes/{3.D7lbuuWp.js → 3.DSd1hRZn.js} +1 -1
  139. package/web/app/immutable/nodes/{4.YSZzuDIT.js → 4.BkWwx_VF.js} +1 -1
  140. package/web/app/immutable/nodes/{5.ymicNL_Y.js → 5.y9tMc2yb.js} +1 -1
  141. package/web/app/immutable/nodes/{6.CtS0PFqR.js → 6.BosoYTZK.js} +1 -1
  142. package/web/app/immutable/nodes/{7.BVAyauMB.js → 7.BX-dUHAQ.js} +1 -1
  143. package/web/app/immutable/nodes/{8.CHlBOO6u.js → 8.DUR07SoM.js} +1 -1
  144. package/web/app/immutable/nodes/{9.CNAqB0x1.js → 9.Cw56XQ1G.js} +4 -4
  145. package/web/app/version.json +1 -1
  146. package/web/index.html +9 -9
  147. package/web/app/immutable/entry/start.kviRYMjm.js +0 -1
@@ -1 +1 @@
1
- import{t as T,bo as r,bw as W,bq as $,b as x,bs as B}from"./C0QTy0Sy.js";import{bs as C,cd as H,ca as S,a7 as u,ay as f,W as k,bn as q,aA as o}from"./3SdAC2_C.js";import{i as D}from"./bhKPSdq4.js";import{k as J}from"./-K3ARgq0.js";import{a as L}from"./BwG2vfja.js";import{dH as j}from"./BaujsV9k.js";import{Jv as z,g$ as E}from"./tr-2J8Mf.js";function F(i,t){if(new.target)return T({component:F,...i});C(t,!0);const d=()=>B(w,"$workspace$",b),[b,v]=$();let c=r(t,"tab",7),a=r(t,"workspaceId",7),n=r(t,"layoutId",7),p=r(t,"isActive",7);const m=H(a());S(()=>m.set(a()));const w=j(m);var g={get tab(){return c()},set tab(e){c(e),o()},get workspaceId(){return a()},set workspaceId(e){a(e),o()},get layoutId(){return n()},set layoutId(e){n(e),o()},get isActive(){return p()},set isActive(e){p(e),o()},$set:W,$on:(e,s)=>x(t,e,s)},l=u(),_=f(l);{var y=e=>{var s=u(),A=f(s);J(A,a,h=>{L(h,{get workspace(){return d()},showBackToList:!1,onclose:()=>z.dispatch(E(n()??a(),c().id))})}),k(e,s)};D(_,e=>{p()&&d()&&e(y)})}k(i,l);var I=q(g);return v(),I}export{F as default};
1
+ import{t as T,bo as r,bw as W,bq as $,b as x,bs as B}from"./C0QTy0Sy.js";import{bs as C,cd as H,ca as S,a7 as u,ay as f,W as k,bn as q,aA as o}from"./3SdAC2_C.js";import{i as D}from"./bhKPSdq4.js";import{k as J}from"./-K3ARgq0.js";import{a as L}from"./Su2XS_Ru.js";import{dH as j}from"./BaujsV9k.js";import{Jv as z,g$ as E}from"./tr-2J8Mf.js";function F(i,t){if(new.target)return T({component:F,...i});C(t,!0);const d=()=>B(w,"$workspace$",b),[b,v]=$();let c=r(t,"tab",7),a=r(t,"workspaceId",7),n=r(t,"layoutId",7),p=r(t,"isActive",7);const m=H(a());S(()=>m.set(a()));const w=j(m);var g={get tab(){return c()},set tab(e){c(e),o()},get workspaceId(){return a()},set workspaceId(e){a(e),o()},get layoutId(){return n()},set layoutId(e){n(e),o()},get isActive(){return p()},set isActive(e){p(e),o()},$set:W,$on:(e,s)=>x(t,e,s)},l=u(),_=f(l);{var y=e=>{var s=u(),A=f(s);J(A,a,h=>{L(h,{get workspace(){return d()},showBackToList:!1,onclose:()=>z.dispatch(E(n()??a(),c().id))})}),k(e,s)};D(_,e=>{p()&&d()&&e(y)})}k(i,l);var I=q(g);return v(),I}export{F as default};
@@ -1,2 +1,2 @@
1
- import{t as Xt,bo as de,_ as aa,bw as Yt,bs as ge,bq as pr,b as Gt,bm as d}from"./C0QTy0Sy.js";import{bs as Jt,ca as se,aD as e,bH as c,a5 as F,bA as k,W as s,bn as Zt,bV as j,c9 as i,aA as ce,c6 as Ht,ay as ve,be as ot,b$ as ct,b_ as I,bO as m,bS as g,bl as C,aB as x,bj as oa,aw as ut,ai as ia,c5 as ur,a as Lr,a7 as Ue,aj as yt,cd as na,br as la,bf as sa}from"./3SdAC2_C.js";import{i as Y}from"./bhKPSdq4.js";import{k as Mr}from"./-K3ARgq0.js";import{g as Ut}from"./B6S6VNu7.js";import{c as Nt}from"./CUkDMZwP.js";import{s as Qe,g as jt,f as Kt}from"./7UPrdiE9.js";import{b as Rr}from"./Dn334wJv.js";import{Jv as R,nX as jr,we as Ur,wd as Vr,LL as da,LM as ca,eJ as ua,eK as fa,Lb as yr,m5 as nr,Cx as $r,sG as kr,oj as va,A2 as pa,ac as Ir,nZ as ga,K2 as ma,Ki as _a,nx as ha,iW as wa,vG as ba,Av as xa,La as Pa}from"./tr-2J8Mf.js";import{g as ya}from"./DWGXN6Nr.js";import{a as $a,h as ka,j as Ia,c as Sa,d as Ca,i as Fa,e as Da,f as Sr,g as Ta,b as lr}from"./Dsr4GELp.js";import{bO as Ea,b$ as La,dH as Ma}from"./BaujsV9k.js";import{w as Cr,d as Ra}from"./wEnqV1Ol.js";import{f as ja}from"./EK6zOAHM.js";import{m as sr}from"./BmTMWrby.js";import{f as Te}from"./FzlZUztb.js";import{h as Ua}from"./DCRuihKm.js";import"./CrD0jtXE.js";import{F as dt,ac as Va,au as za,aZ as Aa,b3 as Ot,ct as Wa,cu as Na,bm as Ba,cS as Ha,c9 as Oa}from"./U9jJmfYa.js";import{E as qa,b as Ka,S as Fr}from"./fiz8N_zQ.js";import{c as Xa}from"./ChTqQfQN.js";import"./B4SiDSWP.js";import{$ as Ya}from"./CMrw-y4l.js";import{i as dr,b as Ga,a as Ja}from"./H2jLkRRS.js";import{C as fr,p as Za}from"./DTuql3Rj.js";import{M as Qa}from"./DlliJA4a.js";import{l as cr,m as zr}from"./CE7dsja4.js";import"./Bsh6nUhU.js";import"./QeBH-DWE.js";import{M as Bt}from"./CDK_hSiv.js";import{V as eo}from"./CqcqWJoa.js";import{bT as to,b7 as ro}from"./DVROSXw1.js";import{g as ao}from"./yFcbscNn.js";import{H as oo}from"./Bqd7fdCF.js";import{g as io,W as no}from"./CO5zWp8I.js";import{b as lo,h as so}from"./BxEf7uwl.js";import{t as co}from"./BfojStRz.js";const Dr=1024*1024,uo=5e3;function fo(A,_){if(A.length>Dr||new TextEncoder().encode(A).byteLength>Dr){_(null);return}let re;try{re=new Worker(new URL("/app/immutable/workers/html-file-preview.worker-BfFljPK-.js",import.meta.url),{type:"module"})}catch{_(null);return}let Be=!1;const ee=setTimeout(()=>O(null),uo);function P(){Be||(Be=!0,clearTimeout(ee),re.terminate())}function O(ae){Be||(P(),_(ae))}return re.onmessage=({data:ae})=>O(ae),re.onerror=ae=>{ae.preventDefault(),O(null)},re.postMessage(A),P}const Ar=R.createSelector((A,_)=>jr(A.pdfPreview.previews,_));var vo=x('<div class="flex shrink-0 flex-wrap items-center justify-center gap-2 border-b border-border p-2"><!> <span aria-live="polite"> </span> <!> <!> <span> </span> <!></div> <div class="min-h-0 flex-1 overflow-auto p-4"><canvas class="mx-auto block" role="img"></canvas></div>',1),po=x('<div class="flex h-full min-h-0 flex-col" data-testid="pdf-viewer"><!></div>');function vr(A,_){if(new.target)return Xt({component:vr,...A});Jt(_,!0);const re=()=>ge(ye,"$preview",Be),[Be,ee]=pr();let P=de(_,"workspaceId",7),O=de(_,"filePath",7),ae=de(_,"gitRootId",7);const Ee=crypto.randomUUID(),ye=Ar(Ee),be=new WeakMap;let oe=j(null),et=j(void 0),U=j(1),B=j(1),pe=j(!0),xe=j(!1),Le=j(null),W=j(0);const $e=i(()=>re()?.error??e(Le)),Ce=i(()=>e($e)==="missing"?d.file_pdf_missing_error():e($e)==="large"?d.file_pdf_large_error():e($e)==="invalid"?d.file_pdf_invalid_error():e($e)==="password"?d.file_pdf_password_error():d.file_pdf_load_error());se(()=>{const v=P(),f=O();e(W);const ie=crypto.randomUUID();return R.dispatch(Ur(Ee,ie,v,f,...ae()?[{gitRootId:ae()}]:[])),()=>{R.dispatch(Vr(Ee,ie))}}),se(()=>{const v=re()?.url;let f=!1,ie;if(c(oe,null),c(Le,null),c(pe,!0),c(U,1),c(B,1),!!v)return(async()=>{try{const{loadPdfDocument:y}=await aa(async()=>{const{loadPdfDocument:N}=await import("./cb1JHFKl.js");return{loadPdfDocument:N}},[],import.meta.url);if(f)return;ie=y(v);const G=await ie.promise;f||c(oe,G)}catch(y){if(f)return;c(Le,y instanceof Error&&y.name==="PasswordException"?"password":y instanceof Error&&y.name==="InvalidPDFException"?"invalid":"load",!0)}finally{f||c(pe,!1)}})(),()=>{f=!0,ie?.destroy()}}),se(()=>{const v=e(oe),f=e(et),ie=e(U),y=e(B);if(!v||!f)return;let G=!1,N,D;const fe=()=>{if(!D)return;const J=(be.get(D)??1)-1;J?be.set(D,J):(be.delete(D),D.cleanup()),D=void 0};return c(xe,!0),(async()=>{try{if(D=await v.getPage(ie),be.set(D,(be.get(D)??0)+1),G){fe();return}const J=D.getViewport({scale:y}),ne=Math.min(window.devicePixelRatio||1,2,Math.sqrt(16e6/(J.width*J.height)));f.width=Math.ceil(J.width*ne),f.height=Math.ceil(J.height*ne),f.style.width=`${J.width}px`,f.style.height=`${J.height}px`,N=D.render({canvas:f,viewport:J,transform:[ne,0,0,ne,0,0]}),await N.promise}catch{G||c(Le,"invalid")}finally{G||c(xe,!1)}})(),()=>{G=!0,N?.cancel(),N?N.promise.then(fe,fe):fe()}});var qe={get workspaceId(){return P()},set workspaceId(v){P(v),ce()},get filePath(){return O()},set filePath(v){O(v),ce()},get gitRootId(){return ae()},set gitRootId(v){ae(v),ce()},$set:Yt,$on:(v,f)=>Gt(_,v,f)},Ve=po(),Ke=F(Ve);{var ue=v=>{{const f=y=>{ot();var G=ct();I(()=>m(G,e(Ce))),s(y,G)};let ie=i(()=>d.ui_combobox_retry_label());qa(v,{onRetry:()=>Ht(W),get retryLabel(){return e(ie)},class:"m-auto",message:f,$$slots:{message:!0}})}},a=v=>{{let f=i(()=>d.file_pdf_loading_label());Ka(v,{get label(){return e(f)},count:1,class:"p-4"})}},l=v=>{var f=vo(),ie=ve(f),y=F(ie);{let me=i(()=>e(U)<=1);Te(y,{variant:"ghost",size:"compact",get disabled(){return e(me)},onclick:()=>Ht(U,-1),children:(Me,tt)=>{ot();var _e=ct();I(Re=>m(_e,Re),[()=>d.file_pdf_previous_label()]),s(Me,_e)},$$slots:{default:!0}})}var G=g(y,2),N=C(G,!0),D=g(G,2);{let me=i(()=>e(U)>=e(oe).numPages);Te(D,{variant:"ghost",size:"compact",get disabled(){return e(me)},onclick:()=>Ht(U),children:(Me,tt)=>{ot();var _e=ct();I(Re=>m(_e,Re),[()=>d.file_pdf_next_label()]),s(Me,_e)},$$slots:{default:!0}})}var fe=g(D,2);{let me=i(()=>e(B)<=.25);Te(fe,{variant:"ghost",size:"compact",get disabled(){return e(me)},onclick:()=>c(B,Math.max(.25,e(B)-.25),!0),children:(Me,tt)=>{ot();var _e=ct();I(Re=>m(_e,Re),[()=>d.editor_fileViewer_zoomOut_tooltip()]),s(Me,_e)},$$slots:{default:!0}})}var J=g(fe,2),ne=C(J,!0),ft=g(J,2);{let me=i(()=>e(B)>=3);Te(ft,{variant:"ghost",size:"compact",get disabled(){return e(me)},onclick:()=>c(B,Math.min(3,e(B)+.25),!0),children:(Me,tt)=>{ot();var _e=ct();I(Re=>m(_e,Re),[()=>d.editor_fileViewer_zoomIn_tooltip()]),s(Me,_e)},$$slots:{default:!0}})}k(ie);var vt=g(ie,2),pt=F(vt);let bt;Rr(pt,me=>c(et,me),()=>e(et)),k(vt),I((me,Me,tt)=>{m(N,me),m(ne,Me),Qe(vt,"aria-busy",e(xe)),Qe(pt,"aria-label",tt),bt=jt(pt,"",bt,{visibility:e(xe)?"hidden":"visible"})},[()=>d.file_pdf_page_label({page:cr(e(U)),total:cr(e(oe).numPages)}),()=>zr(e(B),{style:"percent"}),()=>d.file_pdf_canvas_ariaLabel({name:O(),page:cr(e(U))})]),s(v,f)};Y(Ke,v=>{e($e)?v(ue):e(pe)||re()?.status==="loading"?v(a,1):e(oe)&&v(l,2)})}k(Ve),s(A,Ve);var q=Zt(qe);return ee(),q}const go=R.createSelector((A,_)=>jr(A.videoPreview.previews,_));var mo=x('<p role="status"> </p>'),_o=x('<p role="alert"> </p>'),ho=x('<div class="flex flex-col items-center gap-3 p-6 text-center text-sm text-subtle"><p class="break-all"> </p> <!> <!></div>'),wo=x('<video controls="" preload="metadata" playsinline="" class="max-w-full max-h-full" data-testid="file-video"> </video>',2),bo=x('<div class="min-h-0 flex-1 flex items-center justify-center bg-background"><!></div>');function Wr(A,_){if(new.target)return Xt({component:Wr,...A});Jt(_,!0);const re=()=>ge(et,"$preview",Be),[Be,ee]=pr();let P=de(_,"sourceUrl",7),O=de(_,"fileName",7),ae=de(_,"allowDownload",7),Ee=de(_,"downloading",7),ye=de(_,"onDownload",7),be=j(null);const oe=crypto.randomUUID(),et=go(oe),U=i(()=>re()?.status==="loading"),B=i(()=>e(be)??re()?.error);let pe=!1,xe=!1;oa(()=>{xe=!0,R.dispatch(da(oe))});function Le(){if(xe||e(U))return;const a=P().startsWith("workspace-file://")?new URL(P()):null;if(pe||!a||!a.pathname.toLowerCase().endsWith(".mp4")){c(be,"unsupported");return}pe=!0,a.searchParams.set("preview","h264"),R.dispatch(ca(oe,a.hostname,a.toString()))}function W(a){if(xe)return;const l=a.currentTarget.error?.code;l===2?c(be,"network"):l!==1&&Le()}var $e={get sourceUrl(){return P()},set sourceUrl(a){P(a),ce()},get fileName(){return O()},set fileName(a){O(a),ce()},get allowDownload(){return ae()},set allowDownload(a){ae(a),ce()},get downloading(){return Ee()},set downloading(a){Ee(a),ce()},get onDownload(){return ye()},set onDownload(a){ye(a),ce()},$set:Yt,$on:(a,l)=>Gt(_,a,l)},Ce=bo(),qe=F(Ce);{var Ve=a=>{var l=ho(),q=F(l),v=C(q,!0),f=g(q,2);{var ie=D=>{var fe=mo(),J=C(fe,!0);I(ne=>m(J,ne),[()=>d.editor_fileViewer_videoPreparing_label()]),s(D,fe)},y=D=>{var fe=_o(),J=C(fe,!0);I(ne=>m(J,ne),[()=>e(B)==="network"?d.editor_fileViewer_videoLoad_error():d.editor_fileViewer_videoUnsupported_label()]),s(D,fe)};Y(f,D=>{e(U)?D(ie):D(y,-1)})}var G=g(f,2);{var N=D=>{Te(D,{variant:"secondary",size:"sm",get onclick(){return ye()},get disabled(){return Ee()},children:(fe,J)=>{ot();var ne=ct();I(ft=>m(ne,ft),[()=>d.layout_fileTab_downloadFile_label()]),s(fe,ne)},$$slots:{default:!0}})};Y(G,D=>{ae()&&D(N)})}k(l),I(()=>m(v,O())),s(a,l)},Ke=a=>{var l=wo(),q=C(l,!0);I(v=>{Qe(l,"src",re()?.url??P()),m(q,v)},[()=>d.editor_fileViewer_videoUnsupported_label()]),ut("error",l,W),ut("loadedmetadata",l,v=>{v.currentTarget.videoWidth===0&&Le()}),s(a,l)};Y(qe,a=>{e(B)||e(U)?a(Ve):a(Ke,-1)})}k(Ce),s(A,Ce);var ue=Zt($e);return ee(),ue}var xo=x('<!> <span class="text-xs text-subtle min-w-[50px] text-center"> </span> <!> <div class="w-px h-5 bg-border mx-1"></div>',1),Po=x('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="w-px h-5 bg-border mx-1"></div> <!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),yo=x('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),$o=x('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19V6l12-3v13M9 19c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zm12-3c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zM9 10l12-3"></path></svg></div> <div class="text-sm text-subtle mb-4"> </div> <audio controls="" class="w-full max-w-md"><source/> </audio></div>'),ko=x("<!> ",1),Io=x('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"></path></svg></div> <p class="text-sm text-subtle mb-4"> </p> <!></div>'),So=x('<th class="border border-border px-2 py-1 text-left text-xs font-medium bg-muted"> </th>'),Co=x('<td class="border border-border px-2 py-1 text-xs"> </td>'),Fo=x("<tr></tr>"),Do=x('<div class="flex-1 overflow-auto p-4"><table class="w-full border-collapse"><thead><tr></tr></thead><tbody></tbody></table></div>'),To=x('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),Eo=x('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 3v2m6-2v2M9 19v2m6-2v2M5 9H3m2 6H3m18-6h-2m2 6h-2M7 19h10a2 2 0 002-2V7a2 2 0 00-2-2H7a2 2 0 00-2 2v10a2 2 0 002 2zM9 9h6v6H9V9z"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),Lo=x('<div class="h-full flex flex-col"><!></div>');function qt(A,_){if(new.target)return Xt({component:qt,...A});Jt(_,!0);const re=t=>{var o=xo(),u=ve(o);{let V=i(()=>d.editor_fileViewer_zoomOut_tooltip());Te(u,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:fe,get title(){return e(V)},children:(T,K)=>{dt(T,{get icon(){return Wa},size:"sm"})},$$slots:{default:!0}})}var w=g(u,2),$=C(w,!0),E=g(w,2);{let V=i(()=>d.editor_fileViewer_zoomIn_tooltip());Te(E,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:D,get title(){return e(V)},children:(T,K)=>{dt(T,{get icon(){return Na},size:"sm"})},$$slots:{default:!0}})}ot(2),I(()=>m($,e(Le))),s(t,o)},Be=Xa("FileViewer");let ee=de(_,"filePath",7),P=de(_,"fileContent",7,""),O=de(_,"sourceUrl",7),ae=de(_,"language",7),Ee=de(_,"isBinary",7),ye=de(_,"allowDownload",7,!0),be=de(_,"onDownload",7),oe=de(_,"downloading",7,!1);const et=t=>{const o=t.split(".").pop()?.toLowerCase()||"";return["png","jpg","jpeg","gif","webp","bmp","ico","avif"].includes(o)?"image":o==="svg"?"svg":["mp4","webm","ogg","mov","avi"].includes(o)?"video":["mp3","wav","ogg","m4a","flac"].includes(o)?"audio":o==="pdf"?"pdf":["md","markdown"].includes(o)?"markdown":o==="json"?"json":o==="csv"?"csv":["yaml","yml"].includes(o)?"yaml":o==="xml"?"xml":["zip","tar","gz","rar","7z","bz2"].includes(o)?"archive":["exe","dll","so","dylib","wasm"].includes(o)?"binary":"text"},U=i(()=>et(ee())),B=i(()=>ee().split("/").pop()||d.editor_fileViewer_unknown_fallback());let pe=j(100),xe=j(0);const Le=i(()=>zr(e(pe)/100,{style:"percent",maximumFractionDigits:0}));let W=j(!1),$e=j(0),Ce=j(0),qe=j(0),Ve=j(0),Ke=j(!1),ue=null;function a(){const t=ue;ue=null,c(Ke,!1),t?.viewport.hasPointerCapture(t.pointerId)&&t.viewport.releasePointerCapture(t.pointerId)}function l(t){if(t.button!==0||!t.isPrimary||ue)return;const o=t.currentTarget;o.setPointerCapture(t.pointerId),ue={pointerId:t.pointerId,x:t.clientX,y:t.clientY,viewport:o},c(Ke,!0),t.preventDefault()}function q(t){if(!(!ue||t.pointerId!==ue.pointerId)){if((t.buttons&1)===0){a();return}c(qe,ue.viewport.scrollLeft,!0),c(Ve,ue.viewport.scrollTop,!0),c($e,e($e)+(t.clientX-ue.x)),c(Ce,e(Ce)+(t.clientY-ue.y)),ue.x=t.clientX,ue.y=t.clientY}}function v(t){t.pointerId===ue?.pointerId&&a()}se(()=>{ee(),O(),e(pe),e(xe),c(qe,0),c(Ve,0)}),se(()=>(ee(),O(),ur(()=>{a(),c($e,0),c(Ce,0)}),a));const f=t=>{const o=t.split(".").pop()?.toLowerCase();return o==="jpg"||o==="jpeg"?"image/jpeg":o==="png"?"image/png":o==="gif"?"image/gif":o==="webp"?"image/webp":"application/octet-stream"},ie=t=>{const o=t.split(".").pop()?.toLowerCase();if(o==="mp4")return"video/mp4";if(o==="webm")return"video/webm"},y=()=>{if(O())return O();if(typeof P()=="string")return P().startsWith("data:")||P().startsWith("http")?P():Ee()?`data:${f(ee())};base64,${P()}`:`data:${f(ee())};base64,${P()}`;if(P()instanceof ArrayBuffer){const o=new Uint8Array(P()).reduce((w,$)=>w+String.fromCharCode($),""),u=btoa(o);return`data:${f(ee())};base64,${u}`}return""},G=()=>{if(O())return O();const t=ie(ee());if(!t)return"";if(typeof P()=="string")return P().startsWith("data:")||P().startsWith("http")?P():`data:${t};base64,${P()}`;const o=new Uint8Array(P()),u=[],w=32768;for(let $=0;$<o.length;$+=w)u.push(String.fromCharCode(...o.subarray($,$+w)));return`data:${t};base64,${btoa(u.join(""))}`},N=()=>{const t=typeof P()=="string"?new TextEncoder().encode(P()):new Uint8Array(P()),o=[],u=32768;for(let w=0;w<t.length;w+=u)o.push(String.fromCharCode(...t.subarray(w,w+u)));return`data:image/svg+xml;base64,${btoa(o.join(""))}`},D=()=>{c(pe,Math.min(e(pe)+25,500),!0)},fe=()=>{c(pe,Math.max(e(pe)-25,25),!0)},J=()=>{c(xe,(e(xe)+90)%360)},ne=()=>{if(!ye()||oe())return;if(be()){be()();return}const t=document.createElement("a");t.href=e(U)==="video"?G():e(U)==="svg"?N():y(),t.download=e(B),t.click()},ft=async()=>{try{const t=y(),o=new Image;o.crossOrigin="anonymous";const u=await new Promise((w,$)=>{o.onload=()=>{const E=document.createElement("canvas");E.width=o.naturalWidth,E.height=o.naturalHeight;const V=E.getContext("2d");if(!V){$(new Error("Failed to get canvas context"));return}V.drawImage(o,0,0),E.toBlob(T=>{T?w(T):$(new Error("Failed to create blob from canvas"))},"image/png",1)},o.onerror=()=>$(new Error("Failed to load image")),o.src=t});await navigator.clipboard.write([new ClipboardItem({"image/png":u})]),c(W,!0),setTimeout(()=>c(W,!1),2e3)}catch(t){Be.error("Failed to copy image:",t)}},vt=t=>{try{const o=JSON.parse(t);return JSON.stringify(o,null,2)}catch{return t}},pt=t=>t.split(`
1
+ import{t as Xt,bo as de,_ as aa,bw as Yt,bs as ge,bq as pr,b as Gt,bm as d}from"./C0QTy0Sy.js";import{bs as Jt,ca as se,aD as e,bH as c,a5 as F,bA as k,W as s,bn as Zt,bV as j,c9 as i,aA as ce,c6 as Ht,ay as ve,be as ot,b$ as ct,b_ as I,bO as m,bS as g,bl as C,aB as x,bj as oa,aw as ut,ai as ia,c5 as ur,a as Lr,a7 as Ue,aj as yt,cd as na,br as la,bf as sa}from"./3SdAC2_C.js";import{i as Y}from"./bhKPSdq4.js";import{k as Mr}from"./-K3ARgq0.js";import{g as Ut}from"./B6S6VNu7.js";import{c as Nt}from"./CUkDMZwP.js";import{s as Qe,g as jt,f as Kt}from"./7UPrdiE9.js";import{b as Rr}from"./Dn334wJv.js";import{Jv as R,nX as jr,we as Ur,wd as Vr,LL as da,LM as ca,eJ as ua,eK as fa,Lb as yr,m5 as nr,Cx as $r,sG as kr,oj as va,A2 as pa,ac as Ir,nZ as ga,K2 as ma,Ki as _a,nx as ha,iW as wa,vG as ba,Av as xa,La as Pa}from"./tr-2J8Mf.js";import{g as ya}from"./DWGXN6Nr.js";import{a as $a,h as ka,j as Ia,c as Sa,d as Ca,i as Fa,e as Da,f as Sr,g as Ta,b as lr}from"./Dsr4GELp.js";import{bO as Ea,b$ as La,dH as Ma}from"./BaujsV9k.js";import{w as Cr,d as Ra}from"./wEnqV1Ol.js";import{f as ja}from"./EK6zOAHM.js";import{m as sr}from"./BmTMWrby.js";import{f as Te}from"./FzlZUztb.js";import{h as Ua}from"./DCRuihKm.js";import"./CrD0jtXE.js";import{F as dt,ac as Va,au as za,aZ as Aa,b3 as Ot,ct as Wa,cu as Na,bm as Ba,cS as Ha,c9 as Oa}from"./U9jJmfYa.js";import{E as qa,b as Ka,S as Fr}from"./fiz8N_zQ.js";import{c as Xa}from"./ChTqQfQN.js";import"./B4SiDSWP.js";import{$ as Ya}from"./Dm7KqEFT.js";import{i as dr,b as Ga,a as Ja}from"./H2jLkRRS.js";import{C as fr,p as Za}from"./DTuql3Rj.js";import{M as Qa}from"./BLyGObAP.js";import{l as cr,m as zr}from"./CE7dsja4.js";import"./Bsh6nUhU.js";import"./QeBH-DWE.js";import{M as Bt}from"./CDK_hSiv.js";import{V as eo}from"./CqcqWJoa.js";import{bT as to,b7 as ro}from"./BtHTHBJp.js";import{g as ao}from"./yFcbscNn.js";import{H as oo}from"./Bqd7fdCF.js";import{g as io,W as no}from"./CO5zWp8I.js";import{b as lo,h as so}from"./BxEf7uwl.js";import{t as co}from"./BfojStRz.js";const Dr=1024*1024,uo=5e3;function fo(A,_){if(A.length>Dr||new TextEncoder().encode(A).byteLength>Dr){_(null);return}let re;try{re=new Worker(new URL("/app/immutable/workers/html-file-preview.worker-BfFljPK-.js",import.meta.url),{type:"module"})}catch{_(null);return}let Be=!1;const ee=setTimeout(()=>O(null),uo);function P(){Be||(Be=!0,clearTimeout(ee),re.terminate())}function O(ae){Be||(P(),_(ae))}return re.onmessage=({data:ae})=>O(ae),re.onerror=ae=>{ae.preventDefault(),O(null)},re.postMessage(A),P}const Ar=R.createSelector((A,_)=>jr(A.pdfPreview.previews,_));var vo=x('<div class="flex shrink-0 flex-wrap items-center justify-center gap-2 border-b border-border p-2"><!> <span aria-live="polite"> </span> <!> <!> <span> </span> <!></div> <div class="min-h-0 flex-1 overflow-auto p-4"><canvas class="mx-auto block" role="img"></canvas></div>',1),po=x('<div class="flex h-full min-h-0 flex-col" data-testid="pdf-viewer"><!></div>');function vr(A,_){if(new.target)return Xt({component:vr,...A});Jt(_,!0);const re=()=>ge(ye,"$preview",Be),[Be,ee]=pr();let P=de(_,"workspaceId",7),O=de(_,"filePath",7),ae=de(_,"gitRootId",7);const Ee=crypto.randomUUID(),ye=Ar(Ee),be=new WeakMap;let oe=j(null),et=j(void 0),U=j(1),B=j(1),pe=j(!0),xe=j(!1),Le=j(null),W=j(0);const $e=i(()=>re()?.error??e(Le)),Ce=i(()=>e($e)==="missing"?d.file_pdf_missing_error():e($e)==="large"?d.file_pdf_large_error():e($e)==="invalid"?d.file_pdf_invalid_error():e($e)==="password"?d.file_pdf_password_error():d.file_pdf_load_error());se(()=>{const v=P(),f=O();e(W);const ie=crypto.randomUUID();return R.dispatch(Ur(Ee,ie,v,f,...ae()?[{gitRootId:ae()}]:[])),()=>{R.dispatch(Vr(Ee,ie))}}),se(()=>{const v=re()?.url;let f=!1,ie;if(c(oe,null),c(Le,null),c(pe,!0),c(U,1),c(B,1),!!v)return(async()=>{try{const{loadPdfDocument:y}=await aa(async()=>{const{loadPdfDocument:N}=await import("./cb1JHFKl.js");return{loadPdfDocument:N}},[],import.meta.url);if(f)return;ie=y(v);const G=await ie.promise;f||c(oe,G)}catch(y){if(f)return;c(Le,y instanceof Error&&y.name==="PasswordException"?"password":y instanceof Error&&y.name==="InvalidPDFException"?"invalid":"load",!0)}finally{f||c(pe,!1)}})(),()=>{f=!0,ie?.destroy()}}),se(()=>{const v=e(oe),f=e(et),ie=e(U),y=e(B);if(!v||!f)return;let G=!1,N,D;const fe=()=>{if(!D)return;const J=(be.get(D)??1)-1;J?be.set(D,J):(be.delete(D),D.cleanup()),D=void 0};return c(xe,!0),(async()=>{try{if(D=await v.getPage(ie),be.set(D,(be.get(D)??0)+1),G){fe();return}const J=D.getViewport({scale:y}),ne=Math.min(window.devicePixelRatio||1,2,Math.sqrt(16e6/(J.width*J.height)));f.width=Math.ceil(J.width*ne),f.height=Math.ceil(J.height*ne),f.style.width=`${J.width}px`,f.style.height=`${J.height}px`,N=D.render({canvas:f,viewport:J,transform:[ne,0,0,ne,0,0]}),await N.promise}catch{G||c(Le,"invalid")}finally{G||c(xe,!1)}})(),()=>{G=!0,N?.cancel(),N?N.promise.then(fe,fe):fe()}});var qe={get workspaceId(){return P()},set workspaceId(v){P(v),ce()},get filePath(){return O()},set filePath(v){O(v),ce()},get gitRootId(){return ae()},set gitRootId(v){ae(v),ce()},$set:Yt,$on:(v,f)=>Gt(_,v,f)},Ve=po(),Ke=F(Ve);{var ue=v=>{{const f=y=>{ot();var G=ct();I(()=>m(G,e(Ce))),s(y,G)};let ie=i(()=>d.ui_combobox_retry_label());qa(v,{onRetry:()=>Ht(W),get retryLabel(){return e(ie)},class:"m-auto",message:f,$$slots:{message:!0}})}},a=v=>{{let f=i(()=>d.file_pdf_loading_label());Ka(v,{get label(){return e(f)},count:1,class:"p-4"})}},l=v=>{var f=vo(),ie=ve(f),y=F(ie);{let me=i(()=>e(U)<=1);Te(y,{variant:"ghost",size:"compact",get disabled(){return e(me)},onclick:()=>Ht(U,-1),children:(Me,tt)=>{ot();var _e=ct();I(Re=>m(_e,Re),[()=>d.file_pdf_previous_label()]),s(Me,_e)},$$slots:{default:!0}})}var G=g(y,2),N=C(G,!0),D=g(G,2);{let me=i(()=>e(U)>=e(oe).numPages);Te(D,{variant:"ghost",size:"compact",get disabled(){return e(me)},onclick:()=>Ht(U),children:(Me,tt)=>{ot();var _e=ct();I(Re=>m(_e,Re),[()=>d.file_pdf_next_label()]),s(Me,_e)},$$slots:{default:!0}})}var fe=g(D,2);{let me=i(()=>e(B)<=.25);Te(fe,{variant:"ghost",size:"compact",get disabled(){return e(me)},onclick:()=>c(B,Math.max(.25,e(B)-.25),!0),children:(Me,tt)=>{ot();var _e=ct();I(Re=>m(_e,Re),[()=>d.editor_fileViewer_zoomOut_tooltip()]),s(Me,_e)},$$slots:{default:!0}})}var J=g(fe,2),ne=C(J,!0),ft=g(J,2);{let me=i(()=>e(B)>=3);Te(ft,{variant:"ghost",size:"compact",get disabled(){return e(me)},onclick:()=>c(B,Math.min(3,e(B)+.25),!0),children:(Me,tt)=>{ot();var _e=ct();I(Re=>m(_e,Re),[()=>d.editor_fileViewer_zoomIn_tooltip()]),s(Me,_e)},$$slots:{default:!0}})}k(ie);var vt=g(ie,2),pt=F(vt);let bt;Rr(pt,me=>c(et,me),()=>e(et)),k(vt),I((me,Me,tt)=>{m(N,me),m(ne,Me),Qe(vt,"aria-busy",e(xe)),Qe(pt,"aria-label",tt),bt=jt(pt,"",bt,{visibility:e(xe)?"hidden":"visible"})},[()=>d.file_pdf_page_label({page:cr(e(U)),total:cr(e(oe).numPages)}),()=>zr(e(B),{style:"percent"}),()=>d.file_pdf_canvas_ariaLabel({name:O(),page:cr(e(U))})]),s(v,f)};Y(Ke,v=>{e($e)?v(ue):e(pe)||re()?.status==="loading"?v(a,1):e(oe)&&v(l,2)})}k(Ve),s(A,Ve);var q=Zt(qe);return ee(),q}const go=R.createSelector((A,_)=>jr(A.videoPreview.previews,_));var mo=x('<p role="status"> </p>'),_o=x('<p role="alert"> </p>'),ho=x('<div class="flex flex-col items-center gap-3 p-6 text-center text-sm text-subtle"><p class="break-all"> </p> <!> <!></div>'),wo=x('<video controls="" preload="metadata" playsinline="" class="max-w-full max-h-full" data-testid="file-video"> </video>',2),bo=x('<div class="min-h-0 flex-1 flex items-center justify-center bg-background"><!></div>');function Wr(A,_){if(new.target)return Xt({component:Wr,...A});Jt(_,!0);const re=()=>ge(et,"$preview",Be),[Be,ee]=pr();let P=de(_,"sourceUrl",7),O=de(_,"fileName",7),ae=de(_,"allowDownload",7),Ee=de(_,"downloading",7),ye=de(_,"onDownload",7),be=j(null);const oe=crypto.randomUUID(),et=go(oe),U=i(()=>re()?.status==="loading"),B=i(()=>e(be)??re()?.error);let pe=!1,xe=!1;oa(()=>{xe=!0,R.dispatch(da(oe))});function Le(){if(xe||e(U))return;const a=P().startsWith("workspace-file://")?new URL(P()):null;if(pe||!a||!a.pathname.toLowerCase().endsWith(".mp4")){c(be,"unsupported");return}pe=!0,a.searchParams.set("preview","h264"),R.dispatch(ca(oe,a.hostname,a.toString()))}function W(a){if(xe)return;const l=a.currentTarget.error?.code;l===2?c(be,"network"):l!==1&&Le()}var $e={get sourceUrl(){return P()},set sourceUrl(a){P(a),ce()},get fileName(){return O()},set fileName(a){O(a),ce()},get allowDownload(){return ae()},set allowDownload(a){ae(a),ce()},get downloading(){return Ee()},set downloading(a){Ee(a),ce()},get onDownload(){return ye()},set onDownload(a){ye(a),ce()},$set:Yt,$on:(a,l)=>Gt(_,a,l)},Ce=bo(),qe=F(Ce);{var Ve=a=>{var l=ho(),q=F(l),v=C(q,!0),f=g(q,2);{var ie=D=>{var fe=mo(),J=C(fe,!0);I(ne=>m(J,ne),[()=>d.editor_fileViewer_videoPreparing_label()]),s(D,fe)},y=D=>{var fe=_o(),J=C(fe,!0);I(ne=>m(J,ne),[()=>e(B)==="network"?d.editor_fileViewer_videoLoad_error():d.editor_fileViewer_videoUnsupported_label()]),s(D,fe)};Y(f,D=>{e(U)?D(ie):D(y,-1)})}var G=g(f,2);{var N=D=>{Te(D,{variant:"secondary",size:"sm",get onclick(){return ye()},get disabled(){return Ee()},children:(fe,J)=>{ot();var ne=ct();I(ft=>m(ne,ft),[()=>d.layout_fileTab_downloadFile_label()]),s(fe,ne)},$$slots:{default:!0}})};Y(G,D=>{ae()&&D(N)})}k(l),I(()=>m(v,O())),s(a,l)},Ke=a=>{var l=wo(),q=C(l,!0);I(v=>{Qe(l,"src",re()?.url??P()),m(q,v)},[()=>d.editor_fileViewer_videoUnsupported_label()]),ut("error",l,W),ut("loadedmetadata",l,v=>{v.currentTarget.videoWidth===0&&Le()}),s(a,l)};Y(qe,a=>{e(B)||e(U)?a(Ve):a(Ke,-1)})}k(Ce),s(A,Ce);var ue=Zt($e);return ee(),ue}var xo=x('<!> <span class="text-xs text-subtle min-w-[50px] text-center"> </span> <!> <div class="w-px h-5 bg-border mx-1"></div>',1),Po=x('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="w-px h-5 bg-border mx-1"></div> <!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),yo=x('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),$o=x('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19V6l12-3v13M9 19c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zm12-3c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zM9 10l12-3"></path></svg></div> <div class="text-sm text-subtle mb-4"> </div> <audio controls="" class="w-full max-w-md"><source/> </audio></div>'),ko=x("<!> ",1),Io=x('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"></path></svg></div> <p class="text-sm text-subtle mb-4"> </p> <!></div>'),So=x('<th class="border border-border px-2 py-1 text-left text-xs font-medium bg-muted"> </th>'),Co=x('<td class="border border-border px-2 py-1 text-xs"> </td>'),Fo=x("<tr></tr>"),Do=x('<div class="flex-1 overflow-auto p-4"><table class="w-full border-collapse"><thead><tr></tr></thead><tbody></tbody></table></div>'),To=x('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),Eo=x('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 3v2m6-2v2M9 19v2m6-2v2M5 9H3m2 6H3m18-6h-2m2 6h-2M7 19h10a2 2 0 002-2V7a2 2 0 00-2-2H7a2 2 0 00-2 2v10a2 2 0 002 2zM9 9h6v6H9V9z"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),Lo=x('<div class="h-full flex flex-col"><!></div>');function qt(A,_){if(new.target)return Xt({component:qt,...A});Jt(_,!0);const re=t=>{var o=xo(),u=ve(o);{let V=i(()=>d.editor_fileViewer_zoomOut_tooltip());Te(u,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:fe,get title(){return e(V)},children:(T,K)=>{dt(T,{get icon(){return Wa},size:"sm"})},$$slots:{default:!0}})}var w=g(u,2),$=C(w,!0),E=g(w,2);{let V=i(()=>d.editor_fileViewer_zoomIn_tooltip());Te(E,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:D,get title(){return e(V)},children:(T,K)=>{dt(T,{get icon(){return Na},size:"sm"})},$$slots:{default:!0}})}ot(2),I(()=>m($,e(Le))),s(t,o)},Be=Xa("FileViewer");let ee=de(_,"filePath",7),P=de(_,"fileContent",7,""),O=de(_,"sourceUrl",7),ae=de(_,"language",7),Ee=de(_,"isBinary",7),ye=de(_,"allowDownload",7,!0),be=de(_,"onDownload",7),oe=de(_,"downloading",7,!1);const et=t=>{const o=t.split(".").pop()?.toLowerCase()||"";return["png","jpg","jpeg","gif","webp","bmp","ico","avif"].includes(o)?"image":o==="svg"?"svg":["mp4","webm","ogg","mov","avi"].includes(o)?"video":["mp3","wav","ogg","m4a","flac"].includes(o)?"audio":o==="pdf"?"pdf":["md","markdown"].includes(o)?"markdown":o==="json"?"json":o==="csv"?"csv":["yaml","yml"].includes(o)?"yaml":o==="xml"?"xml":["zip","tar","gz","rar","7z","bz2"].includes(o)?"archive":["exe","dll","so","dylib","wasm"].includes(o)?"binary":"text"},U=i(()=>et(ee())),B=i(()=>ee().split("/").pop()||d.editor_fileViewer_unknown_fallback());let pe=j(100),xe=j(0);const Le=i(()=>zr(e(pe)/100,{style:"percent",maximumFractionDigits:0}));let W=j(!1),$e=j(0),Ce=j(0),qe=j(0),Ve=j(0),Ke=j(!1),ue=null;function a(){const t=ue;ue=null,c(Ke,!1),t?.viewport.hasPointerCapture(t.pointerId)&&t.viewport.releasePointerCapture(t.pointerId)}function l(t){if(t.button!==0||!t.isPrimary||ue)return;const o=t.currentTarget;o.setPointerCapture(t.pointerId),ue={pointerId:t.pointerId,x:t.clientX,y:t.clientY,viewport:o},c(Ke,!0),t.preventDefault()}function q(t){if(!(!ue||t.pointerId!==ue.pointerId)){if((t.buttons&1)===0){a();return}c(qe,ue.viewport.scrollLeft,!0),c(Ve,ue.viewport.scrollTop,!0),c($e,e($e)+(t.clientX-ue.x)),c(Ce,e(Ce)+(t.clientY-ue.y)),ue.x=t.clientX,ue.y=t.clientY}}function v(t){t.pointerId===ue?.pointerId&&a()}se(()=>{ee(),O(),e(pe),e(xe),c(qe,0),c(Ve,0)}),se(()=>(ee(),O(),ur(()=>{a(),c($e,0),c(Ce,0)}),a));const f=t=>{const o=t.split(".").pop()?.toLowerCase();return o==="jpg"||o==="jpeg"?"image/jpeg":o==="png"?"image/png":o==="gif"?"image/gif":o==="webp"?"image/webp":"application/octet-stream"},ie=t=>{const o=t.split(".").pop()?.toLowerCase();if(o==="mp4")return"video/mp4";if(o==="webm")return"video/webm"},y=()=>{if(O())return O();if(typeof P()=="string")return P().startsWith("data:")||P().startsWith("http")?P():Ee()?`data:${f(ee())};base64,${P()}`:`data:${f(ee())};base64,${P()}`;if(P()instanceof ArrayBuffer){const o=new Uint8Array(P()).reduce((w,$)=>w+String.fromCharCode($),""),u=btoa(o);return`data:${f(ee())};base64,${u}`}return""},G=()=>{if(O())return O();const t=ie(ee());if(!t)return"";if(typeof P()=="string")return P().startsWith("data:")||P().startsWith("http")?P():`data:${t};base64,${P()}`;const o=new Uint8Array(P()),u=[],w=32768;for(let $=0;$<o.length;$+=w)u.push(String.fromCharCode(...o.subarray($,$+w)));return`data:${t};base64,${btoa(u.join(""))}`},N=()=>{const t=typeof P()=="string"?new TextEncoder().encode(P()):new Uint8Array(P()),o=[],u=32768;for(let w=0;w<t.length;w+=u)o.push(String.fromCharCode(...t.subarray(w,w+u)));return`data:image/svg+xml;base64,${btoa(o.join(""))}`},D=()=>{c(pe,Math.min(e(pe)+25,500),!0)},fe=()=>{c(pe,Math.max(e(pe)-25,25),!0)},J=()=>{c(xe,(e(xe)+90)%360)},ne=()=>{if(!ye()||oe())return;if(be()){be()();return}const t=document.createElement("a");t.href=e(U)==="video"?G():e(U)==="svg"?N():y(),t.download=e(B),t.click()},ft=async()=>{try{const t=y(),o=new Image;o.crossOrigin="anonymous";const u=await new Promise((w,$)=>{o.onload=()=>{const E=document.createElement("canvas");E.width=o.naturalWidth,E.height=o.naturalHeight;const V=E.getContext("2d");if(!V){$(new Error("Failed to get canvas context"));return}V.drawImage(o,0,0),E.toBlob(T=>{T?w(T):$(new Error("Failed to create blob from canvas"))},"image/png",1)},o.onerror=()=>$(new Error("Failed to load image")),o.src=t});await navigator.clipboard.write([new ClipboardItem({"image/png":u})]),c(W,!0),setTimeout(()=>c(W,!1),2e3)}catch(t){Be.error("Failed to copy image:",t)}},vt=t=>{try{const o=JSON.parse(t);return JSON.stringify(o,null,2)}catch{return t}},pt=t=>t.split(`
2
2
  `).map(u=>u.split(",").map(w=>w.trim()));var bt={get filePath(){return ee()},set filePath(t){ee(t),ce()},get fileContent(){return P()},set fileContent(t=""){P(t),ce()},get sourceUrl(){return O()},set sourceUrl(t){O(t),ce()},get language(){return ae()},set language(t){ae(t),ce()},get isBinary(){return Ee()},set isBinary(t){Ee(t),ce()},get allowDownload(){return ye()},set allowDownload(t=!0){ye(t),ce()},get onDownload(){return be()},set onDownload(t){be(t),ce()},get downloading(){return oe()},set downloading(t=!1){oe(t),ce()},$set:Yt,$on:(t,o)=>Gt(_,t,o)},me=Lo();ut("blur",Lr,a);var Me=F(me);{var tt=t=>{var o=Po(),u=F(o),w=F(u);re(w);var $=g(w,2);{let Pe=i(()=>d.editor_fileViewer_rotate_tooltip());Te($,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:J,get title(){return e(Pe)},children:(Ae,Ye)=>{dt(Ae,{get icon(){return Va},size:"sm"})},$$slots:{default:!0}})}var E=g($,4);{let Pe=i(()=>d.editor_fileViewer_copyImage_tooltip());Te(E,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:ft,get title(){return e(Pe)},children:(Ae,Ye)=>{var rt=Ue(),Ge=ve(rt);{var kt=Fe=>{dt(Fe,{get icon(){return za},size:"sm",class:"text-green-500"})},Vt=Fe=>{dt(Fe,{get icon(){return Aa},size:"sm"})};Y(Ge,Fe=>{e(W)?Fe(kt):Fe(Vt,-1)})}s(Ae,rt)},$$slots:{default:!0}})}var V=g(E,2);{let Pe=i(()=>!ye()||oe()),Ae=i(()=>d.editor_fileViewer_download_tooltip());Te(V,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:ne,get disabled(){return e(Pe)},get title(){return e(Ae)},children:(Ye,rt)=>{dt(Ye,{get icon(){return Ot},size:"sm"})},$$slots:{default:!0}})}var T=g(V,2),K=C(T,!0);k(u);var L=g(u,2),he=C(L);k(o),I(Pe=>{m(K,e(B)),Kt(L,1,`relative min-h-0 flex-1 overflow-auto bg-checkered flex items-center justify-center p-4 select-none ${e(Ke)?"cursor-grabbing":"cursor-grab"}`,"svelte-1uj35xu"),jt(L,`--pan-scroll-x: ${e(qe)??""}px; --pan-scroll-y: ${e(Ve)??""}px;`),Qe(he,"src",Pe),Qe(he,"alt",e(B)),jt(he,`translate: ${e($e)??""}px ${e(Ce)??""}px; transform: scale(${e(pe)/100}) rotate(${e(xe)??""}deg); transition: transform 0.2s;`)},[()=>y()]),yt("pointerdown",L,l),yt("pointermove",L,q),yt("pointerup",L,v),ut("pointercancel",L,v),ut("lostpointercapture",L,v),s(t,o)},_e=t=>{var o=yo(),u=F(o),w=F(u);re(w);var $=g(w,2);{let L=i(()=>!ye()||oe()),he=i(()=>d.editor_fileViewer_download_tooltip());Te($,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:ne,get disabled(){return e(L)},get title(){return e(he)},children:(Pe,Ae)=>{dt(Pe,{get icon(){return Ot},size:"sm"})},$$slots:{default:!0}})}var E=g($,2),V=C(E,!0);k(u);var T=g(u,2),K=C(T);k(o),I(L=>{m(V,e(B)),Kt(T,1,`relative min-h-0 flex-1 overflow-auto bg-checkered flex items-center justify-center p-4 select-none ${e(Ke)?"cursor-grabbing":"cursor-grab"}`,"svelte-1uj35xu"),jt(T,`--pan-scroll-x: ${e(qe)??""}px; --pan-scroll-y: ${e(Ve)??""}px;`),Qe(K,"src",L),Qe(K,"alt",e(B)),jt(K,`translate: ${e($e)??""}px ${e(Ce)??""}px; transform: scale(${e(pe)/100});`)},[()=>N()]),yt("pointerdown",T,l),yt("pointermove",T,q),yt("pointerup",T,v),ut("pointercancel",T,v),ut("lostpointercapture",T,v),s(t,o)},Re=t=>{const o=i(G);var u=Ue(),w=ve(u);Mr(w,()=>ee()+e(o),$=>{Wr($,{get sourceUrl(){return e(o)},get fileName(){return e(B)},get allowDownload(){return ye()},get downloading(){return oe()},onDownload:ne})}),s(t,u)},Qt=t=>{var o=$o(),u=g(F(o),2),w=C(u,!0),$=g(u,2),E=F($),V=g(E);k($),k(o),I((T,K)=>{m(w,e(B)),Qe(E,"src",T),m(V,` ${K??""}`)},[()=>y(),()=>d.editor_fileViewer_audioUnsupported_label()]),s(t,o)},$t=t=>{var o=Io(),u=g(F(o),2),w=C(u,!0),$=g(u,2);{let E=i(()=>!ye()||oe());Te($,{size:"sm",variant:"secondary",onclick:ne,get disabled(){return e(E)},children:(V,T)=>{var K=ko(),L=ve(K);dt(L,{get icon(){return Ot},size:"sm",class:"mr-2"});var he=g(L);I(Pe=>m(he,` ${Pe??""}`),[()=>d.editor_fileViewer_downloadPdf_label()]),s(V,K)},$$slots:{default:!0}})}k(o),I(E=>m(w,E),[()=>d.editor_fileViewer_pdfUnavailable_label()]),s(t,o)},er=t=>{{let o=i(()=>vt(P().toString()));fr(t,{get value(){return e(o)},language:"json",get fileName(){return ee()},lineNumbers:!0,readOnly:!0})}},tr=t=>{const o=i(()=>pt(P().toString()));var u=Do(),w=F(u),$=F(w),E=F($);Ut(E,23,()=>e(o)[0]||[],(T,K)=>`header-${K}-${T}`,(T,K)=>{var L=So(),he=C(L,!0);I(()=>m(he,e(K))),s(T,L)}),k(E),k($);var V=g($);Ut(V,23,()=>e(o).slice(1),(T,K)=>`row-${K}`,(T,K,L)=>{var he=Fo();Ut(he,23,()=>e(K),(Pe,Ae)=>`cell-${e(L)}-${Ae}`,(Pe,Ae)=>{var Ye=Co(),rt=C(Ye,!0);I(()=>m(rt,e(Ae))),s(Pe,Ye)}),k(he),s(T,he)}),k(V),k(w),k(u),s(t,u)},Xe=t=>{var o=To(),u=g(F(o),2),w=C(u,!0),$=g(u,2),E=C($,!0);k(o),I(V=>{m(w,e(B)),m(E,V)},[()=>d.editor_fileViewer_archive_label()]),s(t,o)},ze=t=>{var o=Eo(),u=g(F(o),2),w=C(u,!0),$=g(u,2),E=C($,!0);k(o),I(V=>{m(w,e(B)),m(E,V)},[()=>d.editor_fileViewer_binary_label()]),s(t,o)},rr=t=>{{let o=i(()=>P().toString());fr(t,{get value(){return e(o)},get language(){return ae()},get fileName(){return ee()},lineNumbers:!0,highlightActiveLine:!0})}};Y(Me,t=>{e(U)==="image"?t(tt):e(U)==="svg"?t(_e,1):e(U)==="video"?t(Re,2):e(U)==="audio"?t(Qt,3):e(U)==="pdf"?t($t,4):e(U)==="json"?t(er,5):e(U)==="csv"?t(tr,6):e(U)==="archive"?t(Xe,7):e(U)==="binary"?t(ze,8):t(rr,-1)})}return k(me),s(A,me),Zt(bt)}ia(["pointerdown","pointermove","pointerup"]);const Mo=/access denied|permission denied|outside (?:the )?workspace/i,Ro=/file not found|no such file or directory/i;function jo(A){return Mo.test(A)?"access-denied":A===d.files_read_notFound_error()||Ro.test(A)?"not-found":"generic"}function Uo(A){switch(A){case"access-denied":return d.layout_fileTab_errorAccessDenied_label();case"not-found":return d.layout_fileTab_errorNotFound_label();case"generic":return d.layout_fileTab_errorGeneric_label()}}var Vo=x("<!> <!>",1),zo=x("<!> <!> <!>",1),Ao=x('<div class="flex flex-col items-center justify-center h-full text-subtle gap-2"><p> </p> <p class="text-xs"> </p></div>'),Tr=x('<div class="flex h-full items-center justify-center p-4 text-subtle"><p role="alert"> </p></div>'),Wo=x('<div class="flex h-full items-center justify-center text-subtle"><p> </p></div>'),Er=x('<div class="flex items-center justify-center h-full text-subtle"><p> </p></div>'),No=x('<div class="flex items-center gap-3"><!> <!></div>'),Bo=x('<div class="flex flex-col h-full"><div class="flex-1 p-4 space-y-2"></div></div>'),Ho=x('<p class="text-xs"> </p>'),Oo=x("<li><!></li>"),qo=x('<p class="text-xs mt-2"> </p> <ul class="flex flex-col items-center gap-1"></ul>',1),Ko=x('<div class="flex flex-col items-center justify-center h-full text-subtle gap-2"><p class="text-danger" role="alert"> </p> <p class="text-xs font-mono"> </p> <!> <!></div>'),Xo=x('<div class="flex flex-col items-center justify-center h-full text-subtle gap-3 p-4"><p> </p> <p class="text-xs break-all"> </p> <!></div>'),Yo=x('<div class="h-full overflow-auto p-4"><!></div>'),Go=x("<div><!></div>"),Jo=x('<iframe sandbox="" referrerpolicy="no-referrer"></iframe>'),Zo=x('<div class="absolute inset-0 flex items-center justify-center text-subtle" role="status"> </div>'),Qo=x('<div class="relative size-full"><!> <!> <!></div>');function ei(A,_){if(new.target)return Xt({component:ei,...A});Jt(_,!0);const re=()=>ge(tr,"$workspace",W),Be=()=>ge(D,"$fileContentStore",W),ee=()=>ge(fe,"$fileLoadingStore",W),P=()=>ge(J,"$fileSavingStore",W),O=()=>ge(ne,"$fileErrorStore",W),ae=()=>ge(ft,"$fileErrorInfoStore",W),Ee=()=>ge(vt,"$homeView$",W),ye=()=>ge(pt,"$fileNotFoundCandidatesStore",W),be=()=>ge(bt,"$isFileBinaryStore",W),oe=()=>ge(me,"$isFileDirtyStore",W),et=()=>ge(Me,"$fileLastUpdatedStore",W),U=()=>ge(tt,"$ftChanges$",W),B=()=>ge(er,"$gutterRead$",W),pe=()=>ge(Ke,"$lineWrapping",W),xe=()=>ge(ue,"$diffIndicators",W),Le=()=>ge(Qt,"$rootMediaPreview",W),[W,$e]=pr(),Ce=(r,n=sa)=>{var b=Or,S=qr;{let le=i(()=>xe()?e(rt):[]),ke=i(()=>n()&&v());Rr(fr(r,{get value(){return b()},set value(Z){S(Z)},get language(){return e(or)},get readOnly(){return e(y)},get fileName(){return a().filePath},get workspaceId(){return l()},get filePath(){return a().filePath},get lineWrapping(){return pe()},get lineChanges(){return e(le)},get jumpTo(){return e(kt)},get externalContentVersion(){return e(Pe)},get isPanelFocused(){return e(ke)}}),Z=>c(Ye,Z,!0),()=>e(Ye))}},qe=r=>{var n=Vo(),b=ve(n);{var S=Z=>{var He=Ue(),Je=ve(He);Nt(Je,()=>Bt,(nt,Tt)=>{Tt(nt,{get icon(){return Ba},get label(){return e(Ae)},disabled:!0})}),s(Z,He)};Y(b,Z=>{!e(It)&&!e(y)&&!e(L)&&Z(S)})}var le=g(b,2);{var ke=Z=>{{let He=i(()=>e(_t)?d.ui_viewSettings_htmlPreview_label():void 0),Je=i(()=>!e(We)),nt=i(()=>!e(y)&&!e(We));eo(Z,{embedded:!0,showFold:!1,showSplit:!1,get showPreview(){return e(wr)},get previewLabel(){return e(He)},get previewEnabled(){return e(Fe)},onTogglePreview:()=>c(Fe,!e(Fe)),get showWrap(){return e(Je)},get wrapEnabled(){return pe()},onToggleWrap:()=>R.dispatch(_a()),get showDiff(){return e(nt)},get diffEnabled(){return xe()},onToggleDiff:()=>R.dispatch(ma())})}};Y(le,Z=>{a().filePath&&!e(It)&&!e(L)&&Z(ke)})}s(r,n)},Ve=r=>{var n=Ue(),b=ve(n);{var S=le=>{var ke=zo(),Z=ve(ke);{var He=Oe=>{var at=Ue(),ht=ve(at);{let Et=i(()=>d.layout_fileTab_goToChanges_tooltip());Nt(ht,()=>Bt,(Lt,Mt)=>{Mt(Lt,{get icon(){return Oa},get label(){return e(Et)},onclick:Gr})})}s(Oe,at)};Y(Z,Oe=>{e(Hr)&&Oe(He)})}var Je=g(Z,2);{var nt=Oe=>{var at=Ue(),ht=ve(at);{let Et=i(()=>d.layout_fileTab_downloadFile_label()),Lt=i(()=>!e(Ct)||e(mt));Nt(ht,()=>Bt,(Mt,ir)=>{ir(Mt,{get icon(){return Ot},get label(){return e(Et)},onclick:At,get disabled(){return e(Lt)}})})}s(Oe,at)};Y(Je,Oe=>{e(it)&&Oe(nt)})}var Tt=g(Je,2);{let Oe=i(()=>d.layout_fileTab_deleteFile_tooltip());Nt(Tt,()=>Bt,(at,ht)=>{ht(at,{get icon(){return Ha},get label(){return e(Oe)},onclick:Jr,destructive:!0})})}s(le,ke)};Y(b,le=>{a().filePath&&!e(It)&&!e(y)&&le(S)})}s(r,n)},Ke=to(),ue=ro();let a=de(_,"tab",7),l=de(_,"workspaceId",7),q=de(_,"isActive",7),v=de(_,"isPanelFocused",7);se(()=>{const r=l();if(!(!q()||!r||e(f)))return R.dispatch(ua(r,"files")),()=>R.dispatch(fa(r,"files"))});const f=i(()=>typeof a().data?.gitRootId=="string"?a().data.gitRootId:void 0),ie=i(()=>typeof a().data?.gitRootPath=="string"?a().data.gitRootPath:void 0),y=i(()=>!!e(f)),G=i(()=>a().filePath?ja(a().filePath,e(f)):a().filePath),N=na(e(G));se(()=>{N.set(e(G))});const D=$a(l(),N),fe=ka(l(),N),J=Ia(l(),N),ne=Sa(l(),N),ft=Ca(l(),N),vt=co(l()),pt=Fa(l(),N),bt=Da(l(),N),me=Sr(l(),N),Me=Ta(l(),N),tt=Ea(l()),_e=ya(),Re=crypto.randomUUID(),Qt=Ar(Re),$t=`file-gutter:${crypto.randomUUID()}`,er=La(l(),$t),tr=Ma(l()),Xe=i(()=>re()?.worktreePath||re()?.repositoryPath||re()?.path||null),ze=i(Be),rr=io();se(()=>{e(ze)!==null&&e(ze)!==void 0&&rr?.markContentLoaded()});const t=i(ee),o=i(P),u=i(O),w=i(()=>e(u)?jo(e(u)):"generic"),$=i(()=>e(u)?lo(ae()):null);let E=j(0),V=!1;se(()=>{const r=Ee();if(!r||r.unavailable){V=!1;return}e($)&&!V&&(V=!0,ur(()=>Ht(E)))});const T=5,K=i(()=>(ye()??[]).slice(0,T)),L=i(be),he=i(oe),Pe=i(et),Ae=i(()=>e(o)?d.ui_saveIndicator_saving_tooltip():e(he)?d.ui_saveIndicator_autoSaving_tooltip():d.ui_saveIndicator_saved_tooltip());let Ye=j(null),rt=j(la([])),Ge=j(null),kt=j(void 0),Vt=j(void 0),Fe=j(!0),gr=j(null);se(()=>{const r=a().data?.line,n=a().data?.jumpTimestamp;!r||n!==void 0&&n===e(Vt)||(c(Vt,n,!0),c(kt,{line:r},!0),c(Fe,!1))});const gt=i(()=>e(f)?Cr(a().filePath,e(ie)):null),It=i(()=>e(f)?!e(gt):!!(a().filePath&&(Ga(a().filePath)||e(Xe)&&Ja(a().filePath,e(Xe))))),St=i(()=>a().filePath&&e(Xe)?dr(a().filePath)?a().filePath:`${e(Xe)}/${a().filePath}`:null),xt=i(()=>!!a().filePath&&/\.pdf$/i.test(a().filePath)),Pt=i(()=>!!a().filePath&&/\.(?:png|jpe?g|gif|webp|mp4|webm)$/i.test(a().filePath)),it=i(()=>l()&&/^[A-Za-z0-9._-]+$/.test(l())?Cr(a().filePath,e(Xe)):null),Nr=i(()=>!e(f)&&e(it)?e(it).split("/").slice(0,-1).join("/"):void 0),ar=i(()=>e(xt)||e(Pt)?e(it):null),mr=i(()=>e(f)&&e(Pt)?{png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",mp4:"video/mp4",webm:"video/webm"}[a().filePath?.split(".").pop()?.toLowerCase()??""]:void 0);se(()=>{if(!q()||!e(f)||!e(gt)||!e(mr))return;const r=crypto.randomUUID();return R.dispatch(Ur(Re,r,l(),e(gt),{gitRootId:e(f),mimeType:e(mr)})),()=>R.dispatch(Vr(Re,r))});let mt=j(!1);const Ct=i(()=>!!e(it)&&!e(t)&&(!e(Pt)||e(Ge)===e(it))),_r=i(()=>e(Ge)&&l()?`workspace-file://${l()}/${e(Ge).split("/").map(encodeURIComponent).join("/")}`:null),or=i(()=>a().filePath?ga(a().filePath):"plaintext"),hr=i(()=>e(or)==="markdown"),_t=i(()=>/\.html?$/i.test(a().filePath??""));let Ft=j(void 0);const zt=i(()=>e(Ft)?.source===e(ze)),wr=i(()=>e(hr)||e(_t)&&!(e(zt)&&e(Ft)?.document===null)),We=i(()=>e(wr)&&e(Fe));se(()=>{if(!q()||!e(_t)||!e(We)||e(L)||e(u))return;const r=e(ze);if(!(r===null||e(zt)))return fo(r,n=>{c(Ft,{source:r,document:n}),n===null&&c(Fe,!1)})}),se(()=>{e(_t)&&!e(We)&&a().filePath&&c(gr,a().filePath,!0)}),se(()=>{if(!e(_t)||!e(We)||!q()||!v())return;function r(n){const b=n.detail?.line;b&&(c(kt,{line:b},!0),c(Fe,!1))}return window.addEventListener("workspace:go-to-line",r),()=>window.removeEventListener("workspace:go-to-line",r)}),se(()=>{if(!q()||e(xt)||e(f))return;const r=e(ar),n=a().filePath,b=l(),S=a().id;if(c(Ge,null),!r||!n||!b)return;let le=!1;const ke=()=>!le&&l()===b&&a().id===S&&a().filePath===n;return(async()=>{let Z=!1;try{Z=(await Ua("file.stat",{workspaceId:b,path:r}))?.isFile===!0}catch{}if(!ke())return;if(Z){c(Ge,r,!0);return}if(!/\.(?:png|jpe?g|gif|webp|mp4|webm)$/i.test(r)){c(Ge,r,!0);return}const{candidates:He,truncated:Je}=await Ya(b,r);if(ke()){if(!Je&&He.length===1){R.dispatch(yr(b,n,He[0],S));return}c(Ge,r,!0)}})(),()=>{le=!0}});function Br(r,n){return!!(r.file===n||r.relativePath===n||r.relativePath&&n.endsWith("/"+r.relativePath)||r.file&&n.endsWith("/"+r.file)||r.relativePath&&r.relativePath.endsWith("/"+n)||r.file&&r.file.endsWith("/"+n))}const Dt=i(()=>e(y)||!a().filePath?null:U().find(r=>Br(r,a().filePath))??null),Hr=i(()=>!!e(Dt));se(()=>{if(e(y))return;const r=l(),n=a().filePath,b=e(Xe);return()=>{if(!r||!n)return;const S=lr.select(R.state,r,n);if(S?.kind!=="editable-text")return;const le=nr(S.localContent),ke=Sr.select(R.state,r,n),Z=dr(n)?n:b?`${b}/${n}`:null;ke&&Z&&R.dispatch($r(r,n,Z,le))}}),se(()=>{const r=a().filePath,n=e(St),b=l();if(e(E),!q())return;const S=!e(f)&&!!r&&dr(r)&&!e(Xe);r&&b&&!e(It)&&!e(Pt)&&!e(xt)&&!S&&(e(f)&&e(gt)&&e(G)?R.dispatch(kr(b,e(G),n??r,{gitRoot:{id:e(f),relativePath:e(gt)}})):R.dispatch(kr(b,r,n??r)))});function Or(){return e(ze)??""}function qr(r){e(y)||e(L)||!a().filePath||!l()||!e(St)||R.dispatch(Pa(l(),a().filePath,nr(r)))}function Kr(){if(e(y)||e(L)||!a().filePath||!e(St)||e(ze)===null||e(o))return;const r=lr.select(R.state,l(),a().filePath);r?.kind==="editable-text"&&R.dispatch($r(l(),a().filePath,e(St),nr(r.localContent)))}function Xr(r){const n=a().filePath;!n||!l()||(R.dispatch(xa(l(),n)),R.dispatch(yr(l(),n,r,a().id)))}se(()=>{const r=a().filePath,n=e(Dt);if(!r||!n){c(rt,[],!0);return}if(!q())return;const b=l(),S=crypto.randomUUID();return R.dispatch(va(b,$t,S,{kind:"diffs",path:r,staged:n.stage==="staged"})),()=>{R.dispatch(pa(b,$t,S))}}),se(()=>{const r=B(),n=r?.result?.kind==="diffs"?r.result.chunks:[],b=n.find(S=>S.file===a().filePath)??n[0];c(rt,b?Za(b.chunks.map(S=>({oldStart:S.oldStart,oldLines:S.oldLines,newStart:S.newStart,newLines:S.newLines,lines:S.lines.map(le=>(le.type===Ir.Addition?"+":le.type===Ir.Deletion?"-":" ")+le.content)}))):[],!0)});function Yr(r){const n=/Mac|iPhone|iPad|iPod/.test(navigator.userAgent),b=ke=>oo(r,ao(ke),n);if(b("editor.save")){r.preventDefault(),e(he)&&!e(o)&&Kr();return}const S=b("editor.undo")?"undo":b("editor.redo")?"redo":b("editor.toggle-task-list")?"toggle-task-list":b("editor.copy")?"copy":b("editor.select-all")?"select-all":null;if(!S||e(y)&&S!=="copy"&&S!=="select-all")return;S!=="toggle-task-list"&&e(Ye)?.runShortcut(S)&&r.preventDefault()}function Gr(r){if(!a().filePath||!e(Dt))return;const n=r?.metaKey||r?.ctrlKey||!1,S=r?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;R.dispatch(ba(l(),e(Dt),{filePath:a().filePath,changeId:e(Dt).id,openInAdjacentPanel:n,sourcePanelId:S}))}async function At(){const r=e(it);if(!(e(y)||!r||!l()||!e(Ct)||e(mt))){c(mt,!0);try{const n=await Ra(l(),r,e(Xe));!n?.success&&!n?.canceled&&sr.error(n?.error?.message||d.layout_fileTab_downloadFailed_error())}catch{sr.error(d.layout_fileTab_downloadFailed_error())}finally{c(mt,!1)}}}function Jr(){const r=e(St);if(e(y)||!a().filePath||!l()||!r)return;const n=ha(lr.select(R.state,l(),a().filePath));if(!n){sr.error(d.ui_reversibleActions_failed_error({message:d.fileExplorer_tree_undoUnavailable_error()}));return}R.dispatch(wa(l(),a().filePath,{absolutePath:r,tabId:a().id,snapshot:n}))}se(()=>{if(!_e||!q())return;const r={isDirty:!e(y)&&e(he),isSaving:!e(y)&&e(o)};ur(()=>{_e.registerActions({display:qe,actions:Ve}),_e.registerState(r)})});var Zr={get tab(){return a()},set tab(r){a(r),ce()},get workspaceId(){return l()},set workspaceId(r){l(r),ce()},get isActive(){return q()},set isActive(r){q(r),ce()},get isPanelFocused(){return v()},set isPanelFocused(r){v(r),ce()},$set:Yt,$on:(r,n)=>Gt(_,r,n)},br=Ue();ut("keydown",Lr,r=>q()&&Yr(r));var Qr=ve(br);{var ea=r=>{var n=Ue(),b=ve(n);Mr(b,()=>a().filePath,S=>{var le=Ue(),ke=ve(le);{var Z=h=>{var p=Ao(),M=F(p),X=C(M,!0),z=g(M,2),je=C(z,!0);k(p),I(te=>{m(X,te),m(je,a().filePath)},[()=>d.layout_fileTab_outsideWorkspace_label()]),s(h,p)},He=h=>{var p=Ue(),M=ve(p);{var X=z=>{vr(z,{get workspaceId(){return l()},get filePath(){return e(gt)},get gitRootId(){return e(f)}})};Y(M,z=>{q()&&z(X)})}s(h,p)},Je=h=>{var p=Ue(),M=ve(p);{var X=te=>{var Ie=Tr(),H=F(Ie),we=C(H,!0);k(Ie),I(Q=>m(we,Q),[()=>d.layout_fileTab_errorLoading_label()]),s(te,Ie)},z=te=>{qt(te,{get filePath(){return a().filePath},get sourceUrl(){return Le().url},allowDownload:!1})},je=te=>{var Ie=Wo(),H=F(Ie),we=C(H,!0);k(Ie),I(Q=>m(we,Q),[()=>d.layout_fileTab_preparing_label()]),s(te,Ie)};Y(M,te=>{Le()?.error?te(X):Le()?.url?te(z,1):te(je,-1)})}s(h,p)},nt=h=>{var p=Ue(),M=ve(p);{var X=z=>{vr(z,{get workspaceId(){return l()},get filePath(){return e(ar)}})};Y(M,z=>{q()&&z(X)})}s(h,p)},Tt=h=>{var p=Tr(),M=F(p),X=C(M,!0);k(p),I(z=>m(X,z),[()=>d.file_pdf_load_error()]),s(h,p)},Oe=h=>{{let p=i(()=>e(Ge)??a().filePath),M=i(()=>!e(y)&&e(Ct));qt(h,{get filePath(){return e(p)},get sourceUrl(){return e(_r)},onDownload:At,get allowDownload(){return e(M)},get downloading(){return e(mt)}})}},at=h=>{var p=Er(),M=F(p),X=C(M,!0);k(p),I(z=>m(X,z),[()=>d.layout_fileTab_preparing_label()]),s(h,p)},ht=h=>{var p=Bo(),M=F(p);Ut(M,20,()=>[...Array(20).keys()],X=>X,(X,z)=>{var je=No(),te=F(je);Fr(te,{class:"h-3 w-8 shrink-0"});var Ie=g(te,2);Fr(Ie,{class:"h-3",style:`width: ${30+Math.random()*60}%`}),k(je),s(X,je)}),k(M),k(p),s(h,p)},Et=h=>{{let p=i(()=>so(e($)));no(h,{get view(){return e(p)}})}},Lt=h=>{var p=Ko(),M=F(p),X=C(M,!0),z=g(M,2),je=C(z,!0),te=g(z,2);{var Ie=Q=>{var lt=Ho(),Ze=C(lt,!0);I(()=>m(Ze,e(u))),s(Q,lt)};Y(te,Q=>{e(w)==="generic"&&Q(Ie)})}var H=g(te,2);{var we=Q=>{var lt=qo(),Ze=ve(lt),Rt=C(Ze,!0),Wt=g(Ze,2);Ut(Wt,20,()=>e(K),wt=>wt,(wt,De)=>{var Se=Oo(),Ne=F(Se);Te(Ne,{variant:"link",size:"compact",class:"h-auto p-0 font-mono text-xs",onclick:()=>Xr(De),children:(st,xr)=>{ot();var Pr=ct();I(()=>m(Pr,De)),s(st,Pr)},$$slots:{default:!0}}),k(Se),s(wt,Se)}),k(Wt),I(wt=>m(Rt,wt),[()=>d.layout_fileTab_didYouMean_label()]),s(Q,lt)};Y(H,Q=>{e(K).length>0&&Q(we)})}k(p),I(Q=>{m(X,Q),m(je,a().filePath)},[()=>Uo(e(w))]),s(h,p)},Mt=h=>{var p=Xo(),M=F(p),X=C(M,!0),z=g(M,2),je=C(z,!0),te=g(z,2);{var Ie=H=>{{let we=i(()=>!e(Ct)||e(mt));Te(H,{variant:"secondary",size:"sm",onclick:At,get disabled(){return e(we)},children:(Q,lt)=>{ot();var Ze=ct();I(Rt=>m(Ze,Rt),[()=>d.layout_fileTab_downloadFile_label()]),s(Q,Ze)},$$slots:{default:!0}})}};Y(te,H=>{!e(y)&&e(it)&&H(Ie)})}k(p),I(H=>{m(X,H),m(je,a().filePath)},[()=>d.editor_fileViewer_binary_label()]),s(h,p)},ir=h=>{const p=i(()=>a().filePath?.toLowerCase().endsWith(".svg"));var M=Ue(),X=ve(M);{var z=H=>{{let we=i(()=>a().filePath||""),Q=i(()=>!e(y)&&e(Ct));qt(H,{get filePath(){return e(we)},get fileContent(){return e(ze)},get language(){return e(or)},get isBinary(){return e(L)},onDownload:At,get allowDownload(){return e(Q)},get downloading(){return e(mt)}})}},je=H=>{var we=Yo(),Q=F(we);Qa(Q,{get content(){return e(ze)},get workspaceId(){return l()},get relativeMediaBase(){return e(Nr)},renderRichFencesAsCode:!0,renderDiagrams:!0}),k(we),s(H,we)},te=H=>{var we=Qo(),Q=F(we);{var lt=De=>{var Se=Go();let Ne;var st=F(Se);Ce(st,()=>!e(We)),k(Se),I(()=>{Ne=Kt(Se,1,"size-full",null,Ne,{invisible:e(We)}),Se.inert=e(We)}),s(De,Se)};Y(Q,De=>{(!e(We)||e(gr)===a().filePath)&&De(lt)})}var Ze=g(Q,2);{var Rt=De=>{const Se=i(()=>e(We)&&e(zt));var Ne=Jo();let st;I(xr=>{Qe(Ne,"title",xr),Qe(Ne,"srcdoc",e(Ft).document),st=Kt(Ne,1,"absolute inset-0 block size-full border-0 bg-background",null,st,{invisible:!e(Se)}),Ne.inert=!e(Se)},[()=>d.ui_viewSettings_htmlPreview_label()]),s(De,Ne)};Y(Ze,De=>{e(Ft)?.document!=null&&De(Rt)})}var Wt=g(Ze,2);{var wt=De=>{var Se=Zo(),Ne=C(Se,!0);I(st=>m(Ne,st),[()=>d.layout_fileTab_preparing_label()]),s(De,Se)};Y(Wt,De=>{e(We)&&!e(zt)&&De(wt)})}k(we),s(H,we)},Ie=H=>{Ce(H,()=>!0)};Y(X,H=>{e(p)?H(z):e(hr)&&e(We)?H(je,1):e(_t)?H(te,2):H(Ie,-1)})}s(h,M)},ra=h=>{var p=Er(),M=F(p),X=C(M,!0);k(p),I(z=>m(X,z),[()=>d.layout_fileTab_preparing_label()]),s(h,p)};Y(ke,h=>{e(It)?h(Z):e(f)&&e(xt)&&e(gt)?h(He,1):e(f)&&e(Pt)?h(Je,2):e(xt)&&e(ar)?h(nt,3):e(xt)?h(Tt,4):e(_r)?h(Oe,5):e(Pt)?h(at,6):e(t)&&(!e(_t)||e(ze)===null)?h(ht,7):e($)?h(Et,8):e(u)?h(Lt,9):e(L)?h(Mt,10):e(ze)!==null?h(ir,11):h(ra,-1)})}s(S,le)}),s(r,n)};Y(Qr,r=>{a().filePath&&r(ea)})}s(A,br);var ta=Zt(Zr);return $e(),ta}export{ei as default};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/BsN2abqQ.js","/app/immutable/chunks/C0QTy0Sy.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/bhKPSdq4.js","/app/immutable/chunks/-K3ARgq0.js","/app/immutable/chunks/BwG2vfja.js","/app/immutable/chunks/B6S6VNu7.js","/app/immutable/chunks/CrD0jtXE.js","/app/immutable/chunks/7UPrdiE9.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/CUkDMZwP.js","/app/immutable/chunks/BmTMWrby.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/FzlZUztb.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/DCRuihKm.js","/app/immutable/chunks/C7LIHk5_.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/CE7dsja4.js","/app/immutable/chunks/B4SiDSWP.js","/app/immutable/chunks/tr-2J8Mf.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/DX-Wrapd.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/U9jJmfYa.js","/app/immutable/chunks/DLwWVKiF.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/fiz8N_zQ.js","/app/immutable/chunks/CAvYeStH.js","/app/immutable/chunks/BAKPnd3w.js","/app/immutable/chunks/A9niI_uA.js","/app/immutable/chunks/Co4vj0dC.js","/app/immutable/chunks/QeBH-DWE.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/lJeex2Gh.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/CJ4Z96pe.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/c5QZsH9t.js","/app/immutable/chunks/Bsh6nUhU.js","/app/immutable/chunks/CDjpuJh0.js","/app/immutable/chunks/DsGUBv3k.js","/app/immutable/chunks/BjLb7AHW.js","/app/immutable/chunks/CbqxWBi7.js","/app/immutable/chunks/DAsc1V4f.js","/app/immutable/chunks/BsieX9dN.js","/app/immutable/chunks/BFEzojY2.js","/app/immutable/assets/SettingsPage.CKvEnOAL.css","/app/immutable/chunks/4BrIaRe_.js","/app/immutable/chunks/goTpbPhD.js","/app/immutable/chunks/eTsHzcIE.js","/app/immutable/chunks/C6mS8uZB.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/DwL1A1su.js","/app/immutable/chunks/BaujsV9k.js","/app/immutable/chunks/L_tYoUCb.js","/app/immutable/chunks/D-62MVd3.js","/app/immutable/chunks/BeOwB_6G.js","/app/immutable/chunks/CL3a4Hm1.js","/app/immutable/chunks/Ba8ctcpl.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/p9X2tUBM.js","/app/immutable/chunks/COhRCR9P.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/DKHY8q_S.js","/app/immutable/chunks/S845NCb3.js","/app/immutable/chunks/EK6zOAHM.js","/app/immutable/chunks/DCK8dPAL.js","/app/immutable/chunks/CHLX1QZz.js","/app/immutable/assets/slider.kL-wkHnx.css","/app/immutable/chunks/CU5jKGma.js","/app/immutable/chunks/DIG1mTAN.js","/app/immutable/chunks/DR4Kh2SL.js","/app/immutable/chunks/CQcEqK4G.js","/app/immutable/chunks/DnJ4jlPB.js","/app/immutable/chunks/No1eCFy3.js","/app/immutable/chunks/haN7a3Sc.js","/app/immutable/chunks/CRZZ_hOy.js","/app/immutable/chunks/BWYuMy_r.js","/app/immutable/assets/DockScreenshotEditorWindow.DNkBhnHK.css","/app/immutable/assets/dock-tokens.C3wiNkmL.css","/app/immutable/chunks/DVROSXw1.js","/app/immutable/chunks/CFvBUo4R.js","/app/immutable/chunks/D6dlPeEM.js","/app/immutable/chunks/BSKFIBj2.js","/app/immutable/assets/select-viewport.CV-KWLNP.css","/app/immutable/chunks/C1EvfTg-.js","/app/immutable/chunks/CY4fyoCV.js","/app/immutable/chunks/D51XIZYq.js","/app/immutable/chunks/BP5uGGO_.js","/app/immutable/chunks/BzW_moTi.js","/app/immutable/chunks/eElW3aeh.js","/app/immutable/chunks/jn4zbMQy.js","/app/immutable/chunks/DzWZGIya.js","/app/immutable/chunks/C4JbSg3f.js","/app/immutable/chunks/DQ_mNIfK.js","/app/immutable/assets/checkbox.D429NJZk.css","/app/immutable/chunks/tZyAiGvb.js","/app/immutable/chunks/DE7dSDHO.js","/app/immutable/chunks/BfvZe-kN.js","/app/immutable/chunks/BWGnuS1v.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/CPTZJWC9.js","/app/immutable/chunks/ujhgjK1k.js","/app/immutable/assets/directory-picker-service.Eai7L_H2.css","/app/immutable/chunks/DMDFfHqn.js","/app/immutable/chunks/OFhgRaUm.js","/app/immutable/chunks/BP4Hm_tD.js","/app/immutable/chunks/BYq9VtBF.js","/app/immutable/chunks/wl2qP2wF.js","/app/immutable/assets/AgentAvatar.CZKKHyEm.css","/app/immutable/assets/avatar-state.BzFIexJN.css","/app/immutable/chunks/yFcbscNn.js","/app/immutable/assets/TipTapEditor.BmeA7Qtk.css","/app/immutable/chunks/B8-Q1tED.js","/app/immutable/chunks/a3TFelkn.js","/app/immutable/chunks/CmrjfWYI.js","/app/immutable/assets/image-context-items.D_hsaikk.css","/app/immutable/chunks/BJ_CKcUH.js","/app/immutable/chunks/BE6Cp7Qp.js","/app/immutable/assets/AttachmentPreview.DWUPhcKi.css","/app/immutable/chunks/Bz7R1ahj.js","/app/immutable/chunks/B_LcgbLl.js","/app/immutable/chunks/3xK9OOJy.js","/app/immutable/chunks/Bu13V5mO.js","/app/immutable/chunks/CDK_hSiv.js","/app/immutable/chunks/DMQmPhTl.js","/app/immutable/chunks/nXfD7jHz.js","/app/immutable/chunks/KHteWVFN.js","/app/immutable/chunks/BKD7o1lQ.js","/app/immutable/assets/TaskStatusIcon.sfU2TZ7a.css","/app/immutable/chunks/BcpfdNy8.js","/app/immutable/chunks/DA5opfEp.js","/app/immutable/chunks/DvUGkiYP.js","/app/immutable/assets/AgentCard.Cna0hri3.css","/app/immutable/chunks/DOEI9gYY.js","/app/immutable/chunks/DEB8jcix.js","/app/immutable/chunks/lwn02icp.js","/app/immutable/chunks/Ctbo6mXV.js","/app/immutable/assets/TrackedChangeDiffViewer.CveSjyPc.css","/app/immutable/chunks/Dsr4GELp.js","/app/immutable/chunks/Djp7mdlG.js","/app/immutable/chunks/CcNhqKh5.js","/app/immutable/assets/syntax-highlighting.CrQGLq0X.css","/app/immutable/assets/CodeBlock.BezhEtUo.css","/app/immutable/chunks/cebxNJuC.js","/app/immutable/chunks/BbIcudMY.js","/app/immutable/chunks/Cf4fmkfL.js","/app/immutable/assets/DiagramPresentation.C2GLYoBN.css","/app/immutable/chunks/BIVeXMBl.js","/app/immutable/chunks/DeHvIzqj.js","/app/immutable/chunks/DgAgTFcK.js","/app/immutable/chunks/C-BsEdGZ.js","/app/immutable/chunks/DlliJA4a.js","/app/immutable/assets/MarkdownViewer.D2MexjjT.css","/app/immutable/chunks/DlJZrxef.js","/app/immutable/chunks/B2nCyo89.js","/app/immutable/chunks/eQVXRlbn.js","/app/immutable/chunks/D9XKwVJX.js","/app/immutable/assets/workspace-key-menu.DrT-Fxqq.css","/app/immutable/chunks/A0p6PvBn.js","/app/immutable/chunks/YqTahsxp.js","/app/immutable/chunks/Bvi-fRGz.js","/app/immutable/chunks/Cqa6LF3b.js","/app/immutable/chunks/DPA45OJk.js","/app/immutable/assets/StreamingDiagramRenderer.BShsSvPz.css","/app/immutable/assets/chat-search.Cjb73igJ.css","/app/immutable/chunks/DvSURWC2.js","/app/immutable/chunks/ebbVP0tp.js","/app/immutable/chunks/chjnSxvZ.js","/app/immutable/chunks/BFIcslMA.js","/app/immutable/chunks/D4WPlvMg.js","/app/immutable/chunks/DF2_1gr9.js","/app/immutable/chunks/D3O8Vtuw.js","/app/immutable/chunks/BTrqJIJZ.js","/app/immutable/chunks/U_OQY9n3.js","/app/immutable/chunks/KYuLFpkq.js","/app/immutable/assets/AgentAvatarStack.DOhClFuX.css","/app/immutable/chunks/OtomGvb3.js","/app/immutable/assets/conversation-turns.P_pkAsRX.css","/app/immutable/chunks/PIgqsYsQ.js","/app/immutable/chunks/C4QKwtCH.js","/app/immutable/chunks/D_Xpj-6r.js","/app/immutable/chunks/DB7RVYiL.js","/app/immutable/chunks/DrxfcnSy.js","/app/immutable/chunks/CXS2Ba3S.js","/app/immutable/chunks/W2WLehNu.js","/app/immutable/chunks/Y5Ky10uA.js","/app/immutable/chunks/H2jLkRRS.js","/app/immutable/chunks/DC8keNAk.js","/app/immutable/assets/WorkspaceSetupCard.DNLkSKZg.css","/app/immutable/chunks/518Fef2L.js","/app/immutable/chunks/DL6gGkHp.js","/app/immutable/assets/DockRecordingEditor.BX1NXczK.css","/app/immutable/chunks/CCqqosml.js","/app/immutable/chunks/D37getya.js","/app/immutable/chunks/S8ugWfAx.js","/app/immutable/assets/ChatPanel.B73KM22O.css","/app/immutable/assets/HomeWorkspaceDetail.Dp5EWw2P.css","/app/immutable/chunks/DLbcryNV.js","/app/immutable/chunks/DrIA1Azf.js","/app/immutable/chunks/CQ409-Pj.js","/app/immutable/chunks/ozVAo4aX.js","/app/immutable/chunks/CXXVPWBH.js","/app/immutable/chunks/DWGXN6Nr.js","/app/immutable/chunks/CE7VCun2.js","/app/immutable/chunks/f24VwgrA.js","/app/immutable/assets/BrowserTabType.DojB6H-_.css","/app/immutable/chunks/DY0qeQe8.js","/app/immutable/chunks/Bir0Y4gf.js","/app/immutable/chunks/D3yXvqwY.js","/app/immutable/chunks/6-uYidyP.js","/app/immutable/chunks/C8y9EItt.js","/app/immutable/chunks/DXBEIeJu.js","/app/immutable/chunks/BX-0SVP7.js","/app/immutable/chunks/1WR8MecL.js","/app/immutable/assets/register.CUyDR59i.css","/app/immutable/assets/terminal-manager.MhP_vFvK.css","/app/immutable/chunks/BAOaoX22.js","/app/immutable/assets/confirm-script-deletion.CqNa5NIC.css","/app/immutable/chunks/_SYFiE9N.js","/app/immutable/assets/Terminal.Ddek5eNE.css","/app/immutable/chunks/BfojStRz.js","/app/immutable/chunks/BxEf7uwl.js","/app/immutable/chunks/DdXBqrnq.js","/app/immutable/chunks/CMrw-y4l.js","/app/immutable/chunks/6Bqipt1r.js","/app/immutable/chunks/DEVX5wOm.js","/app/immutable/chunks/B2Ym4lhl.js","/app/immutable/chunks/PO_5m99x.js","/app/immutable/chunks/CSiaiLHL.js","/app/immutable/chunks/Bs9K_x5H.js","/app/immutable/chunks/B_QPRXJ5.js","/app/immutable/chunks/Bty1UglO.js","/app/immutable/chunks/BIv0yV05.js","/app/immutable/chunks/BO4HougN.js","/app/immutable/chunks/DpHn84BV.js","/app/immutable/assets/AgentOverviewTabType.DU1WpoFR.css","/app/immutable/chunks/baWz1QxB.js","/app/immutable/chunks/CRs9zG2A.js","/app/immutable/chunks/C4JXGtw1.js","/app/immutable/chunks/DFcppVBl.js","/app/immutable/chunks/C_KuQ05a.js","/app/immutable/assets/DiscussionTabType.D3Laoutn.css","/app/immutable/chunks/CAgnBDaV.js","/app/immutable/chunks/DTuql3Rj.js","/app/immutable/chunks/B9oKJyXc.js","/app/immutable/assets/CodeEditor.Bq04Rj-N.css","/app/immutable/chunks/L7j-Q29w.js","/app/immutable/assets/LineChangesBadge.CJ0J_Z0k.css","/app/immutable/chunks/CMu-09q3.js","/app/immutable/assets/NoteTabType.AG_iwaNn.css","/app/immutable/chunks/k0JmlCVk.js","/app/immutable/chunks/wEnqV1Ol.js","/app/immutable/chunks/CqcqWJoa.js","/app/immutable/chunks/CO5zWp8I.js","/app/immutable/assets/FileTabType.BUKcoHE1.css","/app/immutable/chunks/pYQh_Bw_.js","/app/immutable/chunks/BURZJh0r.js","/app/immutable/chunks/Bu7LYnzn.js","/app/immutable/chunks/DjxLojU4.js","/app/immutable/assets/ChatChangesPanel.BQqG1JnE.css","/app/immutable/chunks/wUSGg9l9.js","/app/immutable/chunks/CxOmNieJ.js","/app/immutable/chunks/CtNkh9GR.js","/app/immutable/chunks/CkA2ItLw.js","/app/immutable/chunks/B-ef1MlI.js","/app/immutable/chunks/BGTRTFMR.js","/app/immutable/chunks/BZ9svoQk.js"])))=>i.map(i=>d[i]);
2
- import{bm as e,_ as c,t as Te,bo as ie,bw as he,b as ke}from"./C0QTy0Sy.js";import{t as u}from"./CiMmbOsB.js";import{bD as ue,bv as Ve,cK as Ne,aO as $e,cn as Me,aV as ge,bg as Ke,aN as Be,aM as Ge,bs as He,bL as qe,b_ as Fe,bJ as je,F as Ue}from"./U9jJmfYa.js";import{R as H}from"./BUGeL7WE.js";import{bs as we,ca as Q,bH as v,aD as t,bV as K,br as ze,a7 as q,ay as M,W as p,bn as Le,c9 as b,aA as ne,a5 as X,bA as Z,bS as ye,aw as Ye,aB as W,be as F,b$ as x,b_ as I,bO as E,bl as Je,bk as Qe}from"./3SdAC2_C.js";import{i as D}from"./bhKPSdq4.js";import{s as fe}from"./7UPrdiE9.js";import{L as me}from"./CmrjfWYI.js";import{C as Xe,L as be}from"./fiz8N_zQ.js";import{I as Ze}from"./BAKPnd3w.js";import"./A9niI_uA.js";import"./CJ4Z96pe.js";import{f as le}from"./FzlZUztb.js";import{v as Ie}from"./DCRuihKm.js";import"./lJeex2Gh.js";import"./CrD0jtXE.js";import{I as ve}from"./B6S6VNu7.js";import{I as et}from"./Bqd7fdCF.js";import"./C7LIHk5_.js";import{a as tt}from"./BdWqymET.js";function xt(){u.register({type:"workspace",loadComponent:()=>c(()=>import("./BsN2abqQ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209]),import.meta.url),defaultWidthTier:"wide",icon:ue,get defaultTitle(){return e.workspace_page_workspaceResource_label()},get categoryLabel(){return e.workspace_page_workspaceResource_label()},renameable:!1}),u.register({type:"browser",loadComponent:()=>c(()=>import("./DLbcryNV.js"),__vite__mapDeps([210,1,2,3,11,6,7,8,9,10,15,211,22,23,24,25,26,18,13,4,71,14,16,17,19,12,20,21,27,28,29,30,31,32,45,33,34,35,36,37,38,39,40,41,42,43,44,46,58,72,64,62,65,68,60,59,73,74,75,76,63,77,78,181,92,57,61,182,212,123,213,125,52,136,86,214,99,100,215,109,110,111,112,113,216,217,102,218]),import.meta.url),defaultWidthTier:"wide",icon:Ve,get defaultTitle(){return e.layout_tabTypes_browser_title()},get categoryLabel(){return e.layout_tabTypes_browser_category()},sidebarTabId:"browser",renameable:!1}),u.register({type:"terminal",loadComponent:()=>c(()=>import("./DY0qeQe8.js"),__vite__mapDeps([219,1,2,3,4,11,28,7,8,9,10,6,64,18,22,23,24,25,26,13,62,16,17,19,65,20,220,15,221,222,59,60,57,58,61,63,223,224,225,226,227,112,212,191,228,14,12,21,27,29,30,31,32,213,229,72,68,73,74,75,76,77,78,36,42,43,40,41,217,230,38,35,39,136,33,34,37,44,45,46,215,231,149,232,233,102,234]),import.meta.url),defaultWidthTier:"medium",icon:Ne,get defaultTitle(){return e.layout_tabTypes_terminal_title()},get categoryLabel(){return e.layout_tabTypes_terminal_category()},sidebarTabId:"terminals",renameable:!1}),u.register({type:"code-review",loadComponent:()=>c(()=>import("./DdXBqrnq.js"),__vite__mapDeps([235,1,2,22,23,24,25,9,7,26,18,13,3,29,6,8,10,64,28,11,62,16,17,19,65,20,216,76,63,78,92,72,12,14,15,4,21,27,30,31,32,68,60,59,73,74,75,77,58,57,61,217,181,182,102,236,237,178,84,87,179,180,130,132,133,142,229,167,238,234,239,36,42,43,40,41,113,112,172,206,191,213,143,135,71,240,241,242,243,244,199,151,109,110,111,245,246,223,224,225,226,227,140,153,154,35,164,82,69,70,33,34,37,38,39,44,45,46,79,80,81,50,51,117,165,125,52]),import.meta.url),defaultWidthTier:"wide",icon:$e,get defaultTitle(){return e.layout_tabTypes_codeReview_title()},get categoryLabel(){return e.layout_tabTypes_codeReview_category()},renameable:!1}),u.register({type:"agent-overview",loadComponent:()=>c(()=>import("./DpHn84BV.js"),__vite__mapDeps([247,1,2,3,6,7,8,9,10,15,14,16,13,17,18,19,11,4,119,120,121,75,22,23,24,25,26,76,63,77,64,28,62,65,20,78,58,122,12,21,27,29,30,31,32,158,81,51,178,84,87,68,60,59,179,180,130,92,72,73,74,57,61,132,133,142,109,110,111,112,113,248]),import.meta.url),defaultWidthTier:"narrow",icon:Me,get defaultTitle(){return e.layout_tabTypes_agentOverview_title()},get categoryLabel(){return e.layout_tabTypes_agents_category()},renameable:!1}),u.register({type:"agent",loadComponent:()=>c(()=>import("./baWz1QxB.js"),__vite__mapDeps([249,1,2,3,4,6,7,8,9,10,11,15,72,12,13,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,64,62,65,68,60,59,73,74,75,76,63,77,78,58,250,251,238,237,102,57,61,133,205,44,45,215,240,132,92,241,103,35,36,47,48,49,42,43,50,51,52,53,104,38,39,105,86,34,37,40,41,71,82,33,46,106,107,81,108,95,96,109,110,111,112,113,114,115,194,54,55,56,66,67,69,70,79,80,83,84,85,87,88,89,90,91,93,94,97,98,99,100,101,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,195,196,197,198,199,200,201,202,203,204,206,207,208,217,216]),import.meta.url),defaultWidthTier:"chat",icon:ge,get defaultTitle(){return e.layout_tabTypes_agent_title()},get categoryLabel(){return e.layout_tabTypes_agents_category()},sidebarTabId:"agents",renameable:!0}),u.register({type:"discussion",loadComponent:()=>c(()=>import("./DFcppVBl.js"),__vite__mapDeps([252,1,2,3,4,11,8,9,7,10,16,13,17,18,19,38,6,29,35,15,36,14,39,33,34,37,27,40,41,28,42,31,43,44,45,46,21,22,23,24,25,26,217,12,20,30,32,64,62,65,72,68,60,59,73,74,75,76,63,77,78,58,92,57,61,194,88,89,66,114,120,121,125,52,161,82,164,140,69,70,71,79,80,81,50,51,117,165,99,100,48,236,216,181,182,102,237,178,84,87,179,180,130,132,133,142,229,167,238,234,239,113,112,172,206,191,213,143,135,240,241,242,243,244,199,151,109,110,111,245,246,223,224,225,226,227,129,131,253,98,94,95,49,96,97,118,215,254]),import.meta.url),defaultWidthTier:"chat",icon:ge,get defaultTitle(){return e.workspace_discussion_title()},get categoryLabel(){return e.workspace_discussion_list_label()},sidebarTabId:"people",renameable:!1}),u.register({type:"note",loadComponent:()=>c(()=>import("./CAgnBDaV.js"),__vite__mapDeps([255,1,2,3,11,64,18,9,22,23,24,25,7,26,13,28,8,10,6,62,16,17,19,65,20,215,181,92,72,12,14,15,4,21,27,29,30,31,32,68,60,59,73,74,75,76,63,77,78,58,57,61,182,35,36,81,88,89,50,51,33,34,37,38,39,40,41,42,43,44,45,46,117,120,121,138,139,140,141,116,71,52,69,70,79,80,82,67,118,114,119,122,123,100,124,236,216,217,102,237,178,84,87,179,180,130,132,133,142,229,167,238,234,239,113,112,172,206,191,213,143,135,240,241,242,243,244,199,151,109,110,111,245,246,223,224,225,226,227,146,55,147,148,149,150,256,257,258,108,95,49,96,163,195,259,260,153,154,106,48,107,261,156,157,158,159,152,155,162,184,192,136,197,198,174,164,165,262]),import.meta.url),defaultWidthTier:"medium",icon:H.note,get defaultTitle(){return e.layout_tabTypes_note_title()},get categoryLabel(){return e.layout_tabTypes_context_category()},sidebarTabId:"notes",renameable:!0}),u.register({type:"file",loadComponent:()=>c(()=>import("./k0JmlCVk.js"),__vite__mapDeps([263,1,2,3,4,6,7,8,9,10,11,15,22,23,24,25,26,18,13,215,151,64,28,62,16,17,19,65,20,264,68,60,59,199,77,12,14,21,27,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,236,61,57,58,63,92,72,73,74,75,76,78,216,217,181,182,102,237,178,84,87,179,180,130,132,133,142,229,167,238,234,239,113,112,172,206,191,213,143,135,71,240,241,242,243,244,109,110,111,245,246,223,224,225,226,227,256,257,117,258,164,140,82,69,70,79,80,81,50,51,165,136,265,123,266,233,267]),import.meta.url),defaultWidthTier:"wide",icon:Ke,get defaultTitle(){return e.layout_tabTypes_file_title()},get categoryLabel(){return e.layout_tabTypes_files_category()},sidebarTabId:"files",renameable:!0}),u.register({type:"diff",loadComponent:()=>c(()=>import("./pYQh_Bw_.js"),__vite__mapDeps([268,1,2,3,4,11,163,22,23,24,25,9,7,26,18,13,215,64,28,8,10,6,62,16,17,19,65,20,146,55,15,132,59,92,72,12,14,21,27,29,30,31,32,68,60,73,74,75,76,63,77,78,58,57,61,133,147,148,149,35,36,150,269,151,33,34,37,38,39,40,41,42,43,44,45,46,117,136,265,197,198,174,199,121]),import.meta.url),defaultWidthTier:"wide",icon:Be,get defaultTitle(){return e.layout_tabTypes_diff_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},sidebarTabId:"files",renameable:!1}),u.register({type:"changes",loadComponent:()=>c(()=>import("./Bu7LYnzn.js"),__vite__mapDeps([270,1,2,4,15,22,23,24,25,9,7,26,18,13,163,215,64,28,11,3,8,10,6,62,16,17,19,65,20,216,76,63,78,92,72,12,14,21,27,29,30,31,32,68,60,59,73,74,75,77,58,57,61,217,181,182,102,271,160,259,260,146,55,132,133,147,148,149,35,36,150,269,151,33,34,37,38,39,40,41,42,43,44,45,46,117,120,121,106,48,49,107,134,135,71,126,143,178,84,87,179,180,130,142,236,237,229,167,238,234,239,113,112,172,206,191,213,240,241,242,243,244,199,109,110,111,245,246,223,224,225,226,227,272,265]),import.meta.url),defaultWidthTier:"wide",icon:H.changes,get defaultTitle(){return e.layout_tabTypes_changes_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},sidebarTabId:"changes",renameable:!1}),u.register({type:"local-changes",loadComponent:()=>c(()=>import("./wUSGg9l9.js"),__vite__mapDeps([273,1,2,15,22,23,24,25,9,7,26,18,13,163,215,64,28,11,3,8,10,6,62,16,17,19,65,20,271,29,160,259,260,92,72,12,14,4,21,27,30,31,32,68,60,59,73,74,75,76,63,77,78,58,57,61,146,55,132,133,147,148,149,35,36,150,269,151,33,34,37,38,39,40,41,42,43,44,45,46,117,120,121,106,48,49,107,134,135,71,126,143,181,182,216,217,102,178,84,87,179,180,130,142,236,237,229,167,238,234,239,113,112,172,206,191,213,240,241,242,243,244,199,109,110,111,245,246,223,224,225,226,227,272,265]),import.meta.url),defaultWidthTier:"wide",icon:H.changes,get defaultTitle(){return e.layout_tabTypes_localChanges_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},sidebarTabId:"changes",renameable:!1}),u.register({type:"chat-changes",loadComponent:()=>c(()=>import("./CxOmNieJ.js"),__vite__mapDeps([274,1,2,3,271,6,7,8,9,10,29,15,22,23,24,25,26,18,13,160,64,28,11,62,16,17,19,65,20,259,260,92,72,12,14,4,21,27,30,31,32,68,60,59,73,74,75,76,63,77,78,58,57,61,146,55,132,133,147,148,149,35,36,150,269,151,33,34,37,38,39,40,41,42,43,44,45,46,117,120,121,106,48,49,107,134,135,71,126,143,181,182,216,217,102,178,84,87,179,180,130,142,236,237,229,167,238,234,239,113,112,172,206,191,213,240,241,242,243,244,199,109,110,111,245,246,223,224,225,226,227,272]),import.meta.url),defaultWidthTier:"wide",icon:H.changes,get defaultTitle(){return e.layout_tabTypes_chatChanges_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},renameable:!1}),u.register({type:"activity-changes",loadComponent:()=>c(()=>import("./CtNkh9GR.js"),__vite__mapDeps([275,1,2,3,4,11,62,241,24,59,146,8,9,7,10,55,15,132,16,13,17,18,19,22,23,25,26,92,64,28,6,65,20,72,12,14,21,27,29,30,31,32,68,60,73,74,75,76,63,77,78,58,57,61,133,147,148,149,35,36,150,269,151,33,34,37,38,39,40,41,42,43,44,45,46,117,215,136,265,197,198,174,199,121]),import.meta.url),defaultWidthTier:"wide",icon:H.changes,get defaultTitle(){return e.layout_tabTypes_activityChanges_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},renameable:!1}),u.register({type:"hook-script",loadComponent:()=>c(()=>import("./CkA2ItLw.js"),__vite__mapDeps([276,1,2,3,152,6,7,8,9,10,140,153,59,154,12,13,14,15,16,17,18,19,11,4,20,21,22,23,24,25,26,27,28,29,30,31,32,155,167,64,62,65,76,63,77]),import.meta.url),defaultWidthTier:"medium",icon:Ge,get defaultTitle(){return e.chat_backgroundHooks_viewScript_label()},get categoryLabel(){return e.layout_tabTypes_panel_category()},renameable:!1}),u.register({type:"settings",loadComponent:()=>c(()=>import("./B-ef1MlI.js"),__vite__mapDeps([277,1,2]),import.meta.url),defaultWidthTier:"narrow",icon:He,get defaultTitle(){return e.layout_tabTypes_settings_title()},get categoryLabel(){return e.layout_tabTypes_settings_category()},renameable:!1}),u.register({type:"overview",loadComponent:()=>c(()=>import("./BGTRTFMR.js"),__vite__mapDeps([278,1,2]),import.meta.url),defaultWidthTier:"narrow",icon:ue,get defaultTitle(){return e.layout_tabTypes_overview_title()},get categoryLabel(){return e.layout_tabTypes_overview_category()},renameable:!1})}async function Wt(y){if(y?.restoreStatus!=="restored")return;const _=new Set(Object.values(y.panels).flatMap(r=>{const k=r.tabs.find(l=>l.id===r.activeTabId);return k?[k.type]:[]}));await Promise.allSettled([..._].map(r=>u.loadComponent(r)))}var at=W("<!> <!>",1),rt=W('<img class="h-auto w-full max-w-64 rounded-lg" width="512" height="512"/>'),ot=W('<div class="flex aspect-square w-full max-w-64 items-center justify-center"><!></div>'),st=W('<div class="flex justify-center" data-testid="passkey-qr"><!></div>'),it=W('<div class="flex justify-center py-4 text-muted-foreground"><!></div>'),nt=W('<p class="type-caption text-muted-foreground" data-testid="passkey-pin-advice"> </p>'),lt=W('<form id="passkey-pin-form" class="flex flex-col gap-3"><!> <!></form>');function Pe(y,_){if(new.target)return Te({component:Pe,...y});we(_,!0);let r=ie(_,"payload",7),k=ie(_,"static",7,!1),l=ie(_,"onRespond",7),f=K(!1),A=K(""),U=K("");const a=b(()=>r()?.view??null);Q(()=>{v(f,r()!==null)}),Q(()=>{t(a)?.step!=="pin"&&v(A,"")});let z=K(0),Y=K(ze(Date.now()));Q(()=>{const i=t(a)?.step==="pin"&&t(a).kind==="device"?t(a).retryAfterMs:void 0;if(typeof i!="number"){v(z,0);return}const T=Date.now();v(Y,T,!0),v(z,T+i);const w=setInterval(()=>{v(Y,Date.now(),!0),t(Y)>=t(z)&&clearInterval(w)},250);return()=>clearInterval(w)});const ee=b(()=>Math.max(0,Math.ceil((t(z)-t(Y))/1e3))),_e=b(()=>t(a)?.step==="pin"&&(t(a).kind==="device"?t(ee)>0:typeof t(a).retryAfterMs=="number"));Q(()=>{const i=t(a)?.step==="qr"?t(a).data:"";if(!i){v(U,"");return}let T=!0;return c(async()=>{const{default:w}=await import("./BZ9svoQk.js").then(C=>C.b);return{default:w}},__vite__mapDeps([279,59]),import.meta.url).then(({default:w})=>w.toDataURL(i,{width:512,margin:2})).then(w=>{T&&v(U,w,!0)}),()=>{T=!1}});const Ee=b(()=>r()?r().kind==="create"?e.passkeys_dialog_createTitle_label({site:r().rpId}):e.passkeys_dialog_getTitle_label({site:r().rpId}):"");function De(i){switch(i){case"bluetooth-off":return e.passkeys_dialog_bluetoothOff_error();case"bluetooth-missing":return e.passkeys_dialog_bluetoothMissing_error();case"pin-locked":return e.passkeys_dialog_pinLocked_error();case"timeout":return e.passkeys_dialog_timeout_error();case"already-registered":return e.passkeys_dialog_alreadyRegistered_error();case"unavailable":return e.passkeys_dialog_unavailable_error();case"device-locked":return e.passkeys_dialog_deviceLocked_error();case"device-already-registered":return e.passkeys_dialog_deviceAlreadyRegistered_error();case"device-no-passkey":return e.passkeys_dialog_deviceNoPasskey_error({site:r()?.rpId??""});case"device-old-pin-wrong":return e.passkeys_dialog_deviceOldPinWrong_error();case"device-failed":return e.passkeys_dialog_deviceFailed_error();default:return e.passkeys_dialog_failed_error()}}const Ae=b(()=>{if(!(!t(a)||!r()))switch(t(a).step){case"choose-transport":return r().kind==="create"?e.passkeys_dialog_chooseCreate_description():e.passkeys_dialog_chooseGet_description();case"qr":case"progress":switch(t(a).progress){case"waiting-for-phone":return e.passkeys_dialog_waitingForPhone_description();case"connecting":return e.passkeys_dialog_connecting_description();case"waiting-for-approval":return e.passkeys_dialog_waitingForApproval_description();case"touch-key":return e.passkeys_dialog_touchKey_description();case"processing":return e.passkeys_dialog_processing_description();default:return t(a).step==="progress"&&t(a).transport==="usb"?e.passkeys_dialog_insertKey_description():e.passkeys_dialog_starting_description()}case"pin":return t(a).kind==="usb"?e.passkeys_dialog_pin_description():t(a).oldPin?e.passkeys_dialog_deviceOldPin_description():e.passkeys_dialog_devicePin_description();case"choose-account":return e.passkeys_dialog_chooseAccount_description();case"error":return De(t(a).reason)}}),de=b(()=>t(a)?.step==="pin"&&t(a).kind==="device"?t(a).oldPin?e.passkeys_dialog_deviceOldPin_label():e.passkeys_dialog_devicePin_label():e.passkeys_dialog_pin_label()),Ce=b(()=>{if(t(a)?.step==="pin"){if(t(a).kind==="device"){if(t(ee)>0)return e.passkeys_dialog_devicePinWait_error({seconds:t(ee)})}else if(typeof t(a).retryAfterMs=="number")return e.passkeys_dialog_pinRetryAfter_error();if(t(a).wrongPin)return typeof t(a).attemptsLeft=="number"?t(a).attemptsLeft===1?e.passkeys_dialog_wrongPinAttempts_one({count:t(a).attemptsLeft}):e.passkeys_dialog_wrongPinAttempts_many({count:t(a).attemptsLeft}):e.passkeys_dialog_wrongPin_error()}}),Oe=b(()=>{if(t(a)?.step!=="choose-transport")return[];const i=t(a).hybrid==="bluetooth-off"?e.passkeys_dialog_bluetoothOff_description():t(a).hybrid==="bluetooth-missing"?e.passkeys_dialog_bluetoothMissing_description():void 0;return[...t(a).device?[{id:"device",label:e.passkeys_dialog_thisDevice_label(),note:void 0,icon:qe}]:[],{id:"hybrid",label:e.passkeys_dialog_phone_label(),note:i,icon:Fe},{id:"usb",label:e.passkeys_dialog_securityKey_label(),note:void 0,icon:je}]});function te(){l()({action:"cancel"})}function Re(i){if(i.preventDefault(),!t(A))return;const T=t(A);v(A,""),l()({action:"pin",pin:T})}var xe={get payload(){return r()},set payload(i){r(i),ne()},get static(){return k()},set static(i=!1){k(i),ne()},get onRespond(){return l()},set onRespond(i){l(i),ne()},$set:he,$on:(i,T)=>ke(_,i,T)},pe=q(),We=M(pe);{var Se=i=>{{const T=C=>{var ae=q(),J=M(ae);{var re=P=>{le(P,{variant:"secondary",onclick:te,children:(S,B)=>{F();var V=x();I(d=>E(V,d),[()=>e.passkeys_dialog_close_label()]),p(S,V)},$$slots:{default:!0}})},oe=P=>{var S=at(),B=M(S);le(B,{variant:"ghost",onclick:te,children:(n,m)=>{F();var s=x();I(L=>E(s,L),[()=>e.passkeys_dialog_cancel_label()]),p(n,s)},$$slots:{default:!0}});var V=ye(B,2);{var d=n=>{{let m=b(()=>!t(A)||t(_e));le(n,{variant:"primary",type:"submit",form:"passkey-pin-form",get disabled(){return t(m)},children:(s,L)=>{F();var o=x();I(g=>E(o,g),[()=>e.passkeys_dialog_continue_label()]),p(s,o)},$$slots:{default:!0}})}};D(V,n=>{t(a).step==="pin"&&n(d)})}p(P,S)};D(J,P=>{t(a).step==="error"?P(re):P(oe,-1)})}p(C,ae)};let w=b(()=>t(a).step==="error"?e.passkeys_dialog_close_label():e.passkeys_dialog_cancel_label());Xe(i,{get static(){return k()},get title(){return t(Ee)},get description(){return t(Ae)},size:"sm",dismissOnInteractOutside:!1,get closeLabel(){return t(w)},onClose:te,get open(){return t(f)},set open(C){v(f,C,!0)},footer:T,children:(C,ae)=>{var J=q(),re=M(J);{var oe=d=>{{const n=(s,L)=>{let o=()=>(L?.()).item;me(s,{leading:h=>{Ue(h,{get icon(){return o().icon},fw:!0})},title:h=>{F();var R=x();I(()=>E(R,o().label)),p(h,R)},description:h=>{var R=q(),se=M(R);{var G=$=>{var ce=x();I(()=>E(ce,o().note)),p($,ce)};D(se,$=>{o().note&&$(G)})}p(h,R)},$$slots:{leading:!0,title:!0,description:!0}})};let m=b(()=>e.passkeys_dialog_transports_ariaLabel());be(d,{get items(){return t(Oe)},getKey:s=>s.id,getText:s=>s.label,get ariaLabel(){return t(m)},onActivate:s=>l()({action:"transport",transport:s.id}),row:n,$$slots:{row:!0}})}},P=d=>{var n=st(),m=X(n);{var s=o=>{var g=rt();I(O=>{fe(g,"src",t(U)),fe(g,"alt",O)},[()=>e.passkeys_dialog_qrImage_ariaLabel()]),p(o,g)},L=o=>{var g=ot(),O=X(g);ve(O,{size:20}),Z(g),p(o,g)};D(m,o=>{t(U)?o(s):o(L,-1)})}Z(n),p(d,n)},S=d=>{var n=it(),m=X(n);ve(m,{size:20}),Z(n),p(d,n)},B=d=>{var n=lt(),m=X(n);{let o=b(()=>t(a).kind==="device"?"numeric":void 0);Ze(m,{type:"password",get inputmode(){return t(o)},autocomplete:"off",get"aria-label"(){return t(de)},get placeholder(){return t(de)},get error(){return t(Ce)},get disabled(){return t(_e)},autofocus:!0,get value(){return t(A)},set value(g){v(A,g,!0)}})}var s=ye(m,2);{var L=o=>{var g=nt(),O=Je(g,!0);I(N=>E(O,N),[()=>e.passkeys_dialog_devicePinAdvice_description()]),p(o,g)};D(s,o=>{t(a).firstPasskey&&o(L)})}Z(n),Ye("submit",n,Re),p(d,n)},V=d=>{{const n=(s,L)=>{let o=()=>(L?.()).item;me(s,{title:N=>{F();var h=x();I(()=>E(h,o().userDisplayName||o().userName)),p(N,h)},description:N=>{var h=q(),R=M(h);{var se=G=>{var $=x();I(()=>E($,o().userName)),p(G,$)};D(R,G=>{o().userDisplayName&&o().userName&&G(se)})}p(N,h)},$$slots:{title:!0,description:!0}})};let m=b(()=>e.passkeys_dialog_accounts_ariaLabel());be(d,{get items(){return t(a).accounts},getKey:s=>s.index,getText:s=>s.userDisplayName||s.userName,get ariaLabel(){return t(m)},onActivate:s=>l()({action:"choose",index:s.index}),row:n,$$slots:{row:!0}})}};D(re,d=>{t(a).step==="choose-transport"?d(oe):t(a).step==="qr"?d(P,1):t(a).step==="progress"?d(S,2):t(a).step==="pin"?d(B,3):t(a).step==="choose-account"&&d(V,4)})}p(C,J)},$$slots:{footer:!0,default:!0}})}};D(We,i=>{r()&&t(a)&&i(Se)})}return p(y,pe),Le(xe)}const _t=new tt("PasskeyDialog"),j=et.PASSKEYS;function dt(y){const _=Ie();if(!_)return()=>{};const r=_.on(j.DIALOG_SHOW,l=>{const f=l;!f||typeof f.ceremonyId!="string"||!f.view||y.onShow(f)}),k=_.on(j.DIALOG_CLOSE,l=>{const f=l;f&&typeof f.ceremonyId=="string"&&y.onClose(f.ceremonyId)});return()=>{_.offById(j.DIALOG_SHOW,r),_.offById(j.DIALOG_CLOSE,k)}}function pt(y){const _=Ie();_&&_.invoke(j.DIALOG_RESPOND,y).catch(()=>{_t.warn("Passkey dialog response failed",{action:y.action})})}function ct(y,_){if(new.target)return Te({component:ct,...y});we(_,!0);let r=K(null);Qe(()=>dt({onShow:l=>{v(r,l,!0)},onClose:l=>{t(r)?.ceremonyId===l&&v(r,null)}}));var k={$set:he,$on:(l,f)=>ke(_,l,f)};return Pe(y,{get payload(){return t(r)},onRespond:l=>{t(r)&&pt({...l,ceremonyId:t(r).ceremonyId})}}),Le(k)}export{ct as P,Wt as p,xt as r};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/DmXAUF0G.js","/app/immutable/chunks/C0QTy0Sy.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/bhKPSdq4.js","/app/immutable/chunks/-K3ARgq0.js","/app/immutable/chunks/Su2XS_Ru.js","/app/immutable/chunks/B6S6VNu7.js","/app/immutable/chunks/CrD0jtXE.js","/app/immutable/chunks/7UPrdiE9.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/CUkDMZwP.js","/app/immutable/chunks/BmTMWrby.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/FzlZUztb.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/DCRuihKm.js","/app/immutable/chunks/C7LIHk5_.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/CE7dsja4.js","/app/immutable/chunks/B4SiDSWP.js","/app/immutable/chunks/tr-2J8Mf.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/DX-Wrapd.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/U9jJmfYa.js","/app/immutable/chunks/DLwWVKiF.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/fiz8N_zQ.js","/app/immutable/chunks/CAvYeStH.js","/app/immutable/chunks/BAKPnd3w.js","/app/immutable/chunks/A9niI_uA.js","/app/immutable/chunks/Co4vj0dC.js","/app/immutable/chunks/QeBH-DWE.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/lJeex2Gh.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/CJ4Z96pe.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/c5QZsH9t.js","/app/immutable/chunks/Bsh6nUhU.js","/app/immutable/chunks/CDjpuJh0.js","/app/immutable/chunks/DsGUBv3k.js","/app/immutable/chunks/BjLb7AHW.js","/app/immutable/chunks/CbqxWBi7.js","/app/immutable/chunks/DAsc1V4f.js","/app/immutable/chunks/BsieX9dN.js","/app/immutable/chunks/BFEzojY2.js","/app/immutable/assets/SettingsPage.CKvEnOAL.css","/app/immutable/chunks/i_QPvq4q.js","/app/immutable/chunks/goTpbPhD.js","/app/immutable/chunks/BI0hvS48.js","/app/immutable/chunks/C6mS8uZB.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/DwL1A1su.js","/app/immutable/chunks/BaujsV9k.js","/app/immutable/chunks/L_tYoUCb.js","/app/immutable/chunks/D-62MVd3.js","/app/immutable/chunks/BeOwB_6G.js","/app/immutable/chunks/CL3a4Hm1.js","/app/immutable/chunks/CBkpyV7r.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/BFgeFHTs.js","/app/immutable/chunks/Di8eJPr0.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/DKHY8q_S.js","/app/immutable/chunks/S845NCb3.js","/app/immutable/chunks/EK6zOAHM.js","/app/immutable/chunks/DCK8dPAL.js","/app/immutable/chunks/CHLX1QZz.js","/app/immutable/assets/slider.kL-wkHnx.css","/app/immutable/chunks/CU5jKGma.js","/app/immutable/chunks/BwtFad5m.js","/app/immutable/chunks/DR4Kh2SL.js","/app/immutable/chunks/CQcEqK4G.js","/app/immutable/chunks/DnJ4jlPB.js","/app/immutable/chunks/No1eCFy3.js","/app/immutable/chunks/haN7a3Sc.js","/app/immutable/chunks/CRZZ_hOy.js","/app/immutable/chunks/BWYuMy_r.js","/app/immutable/assets/DockScreenshotEditorWindow.DNkBhnHK.css","/app/immutable/assets/dock-tokens.C3wiNkmL.css","/app/immutable/chunks/BtHTHBJp.js","/app/immutable/chunks/CDCEiDxP.js","/app/immutable/chunks/D6dlPeEM.js","/app/immutable/chunks/BSKFIBj2.js","/app/immutable/assets/select-viewport.CV-KWLNP.css","/app/immutable/chunks/C1EvfTg-.js","/app/immutable/chunks/CY4fyoCV.js","/app/immutable/chunks/D51XIZYq.js","/app/immutable/chunks/BP5uGGO_.js","/app/immutable/chunks/BzW_moTi.js","/app/immutable/chunks/eElW3aeh.js","/app/immutable/chunks/C9h2rwKF.js","/app/immutable/chunks/DzWZGIya.js","/app/immutable/chunks/C4JbSg3f.js","/app/immutable/chunks/DQ_mNIfK.js","/app/immutable/assets/checkbox.D429NJZk.css","/app/immutable/chunks/tZyAiGvb.js","/app/immutable/chunks/CI9sv_EP.js","/app/immutable/chunks/DsT1iX_Q.js","/app/immutable/chunks/CeHXXIxE.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/Cxf6ur9F.js","/app/immutable/chunks/ujhgjK1k.js","/app/immutable/assets/directory-picker-service.Eai7L_H2.css","/app/immutable/chunks/469banqV.js","/app/immutable/chunks/OFhgRaUm.js","/app/immutable/chunks/C-O59F9J.js","/app/immutable/chunks/BYq9VtBF.js","/app/immutable/chunks/wl2qP2wF.js","/app/immutable/assets/AgentAvatar.CZKKHyEm.css","/app/immutable/assets/avatar-state.BzFIexJN.css","/app/immutable/chunks/yFcbscNn.js","/app/immutable/assets/TipTapEditor.BmeA7Qtk.css","/app/immutable/chunks/B8-Q1tED.js","/app/immutable/chunks/a3TFelkn.js","/app/immutable/chunks/CmrjfWYI.js","/app/immutable/assets/image-context-items.D_hsaikk.css","/app/immutable/chunks/CkmRZ_MC.js","/app/immutable/chunks/BE6Cp7Qp.js","/app/immutable/assets/AttachmentPreview.DWUPhcKi.css","/app/immutable/chunks/Rx5mQeGT.js","/app/immutable/chunks/BbvEB4jz.js","/app/immutable/chunks/BwhjiNjC.js","/app/immutable/chunks/Bu13V5mO.js","/app/immutable/chunks/CDK_hSiv.js","/app/immutable/chunks/DEI5RmgA.js","/app/immutable/chunks/zHu1d_6X.js","/app/immutable/chunks/KHteWVFN.js","/app/immutable/chunks/BKD7o1lQ.js","/app/immutable/assets/TaskStatusIcon.sfU2TZ7a.css","/app/immutable/chunks/BcpfdNy8.js","/app/immutable/chunks/DA5opfEp.js","/app/immutable/chunks/DvUGkiYP.js","/app/immutable/assets/AgentCard.Cna0hri3.css","/app/immutable/chunks/DduCxuVq.js","/app/immutable/chunks/DEB8jcix.js","/app/immutable/chunks/lwn02icp.js","/app/immutable/chunks/Ctbo6mXV.js","/app/immutable/assets/TrackedChangeDiffViewer.CveSjyPc.css","/app/immutable/chunks/Dsr4GELp.js","/app/immutable/chunks/Djp7mdlG.js","/app/immutable/chunks/CcNhqKh5.js","/app/immutable/assets/syntax-highlighting.CrQGLq0X.css","/app/immutable/assets/CodeBlock.BezhEtUo.css","/app/immutable/chunks/Ckb6le-m.js","/app/immutable/chunks/BbIcudMY.js","/app/immutable/chunks/Cf4fmkfL.js","/app/immutable/assets/DiagramPresentation.C2GLYoBN.css","/app/immutable/chunks/BIVeXMBl.js","/app/immutable/chunks/WVvubfLN.js","/app/immutable/chunks/DgAgTFcK.js","/app/immutable/chunks/C-BsEdGZ.js","/app/immutable/chunks/BLyGObAP.js","/app/immutable/assets/MarkdownViewer.D2MexjjT.css","/app/immutable/chunks/Div5PXT-.js","/app/immutable/chunks/B2nCyo89.js","/app/immutable/chunks/DUhA4bgN.js","/app/immutable/chunks/CxFOqPFP.js","/app/immutable/assets/workspace-key-menu.DrT-Fxqq.css","/app/immutable/chunks/A0p6PvBn.js","/app/immutable/chunks/YqTahsxp.js","/app/immutable/chunks/Bvi-fRGz.js","/app/immutable/chunks/Cqa6LF3b.js","/app/immutable/chunks/CaNxJFJ1.js","/app/immutable/assets/StreamingDiagramRenderer.BShsSvPz.css","/app/immutable/assets/chat-search.Cjb73igJ.css","/app/immutable/chunks/Dzk9iuw9.js","/app/immutable/chunks/ebbVP0tp.js","/app/immutable/chunks/chjnSxvZ.js","/app/immutable/chunks/BI3a2AWW.js","/app/immutable/chunks/D4WPlvMg.js","/app/immutable/chunks/BAP-Km9w.js","/app/immutable/chunks/CnqJXAKo.js","/app/immutable/chunks/BTrqJIJZ.js","/app/immutable/chunks/KSLBBJRy.js","/app/immutable/chunks/KYuLFpkq.js","/app/immutable/assets/AgentAvatarStack.DOhClFuX.css","/app/immutable/chunks/OtomGvb3.js","/app/immutable/assets/conversation-turns.P_pkAsRX.css","/app/immutable/chunks/PIgqsYsQ.js","/app/immutable/chunks/C4QKwtCH.js","/app/immutable/chunks/D_Xpj-6r.js","/app/immutable/chunks/DB7RVYiL.js","/app/immutable/chunks/DrxfcnSy.js","/app/immutable/chunks/CbO3oDHw.js","/app/immutable/chunks/DME_6OFx.js","/app/immutable/chunks/Y5Ky10uA.js","/app/immutable/chunks/H2jLkRRS.js","/app/immutable/chunks/DC8keNAk.js","/app/immutable/assets/WorkspaceSetupCard.DNLkSKZg.css","/app/immutable/chunks/518Fef2L.js","/app/immutable/chunks/DL6gGkHp.js","/app/immutable/assets/DockRecordingEditor.BX1NXczK.css","/app/immutable/chunks/CCqqosml.js","/app/immutable/chunks/D37getya.js","/app/immutable/chunks/Bq_wOSEp.js","/app/immutable/assets/ChatPanel.B73KM22O.css","/app/immutable/assets/HomeWorkspaceDetail.Dp5EWw2P.css","/app/immutable/chunks/BlRYe00B.js","/app/immutable/chunks/DrIA1Azf.js","/app/immutable/chunks/CQ409-Pj.js","/app/immutable/chunks/ozVAo4aX.js","/app/immutable/chunks/CXXVPWBH.js","/app/immutable/chunks/DWGXN6Nr.js","/app/immutable/chunks/P-T74LCo.js","/app/immutable/chunks/f24VwgrA.js","/app/immutable/assets/BrowserTabType.DojB6H-_.css","/app/immutable/chunks/BPzekfWN.js","/app/immutable/chunks/BXhT5rHA.js","/app/immutable/chunks/D3yXvqwY.js","/app/immutable/chunks/6-uYidyP.js","/app/immutable/chunks/C8y9EItt.js","/app/immutable/chunks/DXBEIeJu.js","/app/immutable/chunks/BX-0SVP7.js","/app/immutable/chunks/1WR8MecL.js","/app/immutable/assets/register.CUyDR59i.css","/app/immutable/assets/terminal-manager.MhP_vFvK.css","/app/immutable/chunks/M-TVgx-R.js","/app/immutable/assets/confirm-script-deletion.CqNa5NIC.css","/app/immutable/chunks/_SYFiE9N.js","/app/immutable/assets/Terminal.Ddek5eNE.css","/app/immutable/chunks/BfojStRz.js","/app/immutable/chunks/BxEf7uwl.js","/app/immutable/chunks/7GuT70Sz.js","/app/immutable/chunks/Dm7KqEFT.js","/app/immutable/chunks/6Bqipt1r.js","/app/immutable/chunks/CrFyLBfi.js","/app/immutable/chunks/B2Ym4lhl.js","/app/immutable/chunks/CHXhxB4Q.js","/app/immutable/chunks/CSiaiLHL.js","/app/immutable/chunks/Bs9K_x5H.js","/app/immutable/chunks/B_QPRXJ5.js","/app/immutable/chunks/Bty1UglO.js","/app/immutable/chunks/BIv0yV05.js","/app/immutable/chunks/BO4HougN.js","/app/immutable/chunks/Dhzl8ugO.js","/app/immutable/assets/AgentOverviewTabType.DU1WpoFR.css","/app/immutable/chunks/CDAoSo12.js","/app/immutable/chunks/B8VxRkn_.js","/app/immutable/chunks/C4JXGtw1.js","/app/immutable/chunks/D3C3nNLs.js","/app/immutable/chunks/C_KuQ05a.js","/app/immutable/assets/DiscussionTabType.D3Laoutn.css","/app/immutable/chunks/D4FXvK9L.js","/app/immutable/chunks/DTuql3Rj.js","/app/immutable/chunks/B9oKJyXc.js","/app/immutable/assets/CodeEditor.Bq04Rj-N.css","/app/immutable/chunks/L7j-Q29w.js","/app/immutable/assets/LineChangesBadge.CJ0J_Z0k.css","/app/immutable/chunks/CMu-09q3.js","/app/immutable/assets/NoteTabType.AG_iwaNn.css","/app/immutable/chunks/DmaEU7hb.js","/app/immutable/chunks/wEnqV1Ol.js","/app/immutable/chunks/CqcqWJoa.js","/app/immutable/chunks/CO5zWp8I.js","/app/immutable/assets/FileTabType.BUKcoHE1.css","/app/immutable/chunks/BY9RbRJy.js","/app/immutable/chunks/XHPDEELd.js","/app/immutable/chunks/Ck2X3Rvg.js","/app/immutable/chunks/W7maz5hp.js","/app/immutable/assets/ChatChangesPanel.BQqG1JnE.css","/app/immutable/chunks/Ddq8SBEz.js","/app/immutable/chunks/h06E2ICA.js","/app/immutable/chunks/MQBseMlG.js","/app/immutable/chunks/CkA2ItLw.js","/app/immutable/chunks/B-ef1MlI.js","/app/immutable/chunks/BGTRTFMR.js","/app/immutable/chunks/BZ9svoQk.js"])))=>i.map(i=>d[i]);
2
+ import{bm as e,_ as c,t as Te,bo as ie,bw as he,b as ke}from"./C0QTy0Sy.js";import{t as u}from"./CiMmbOsB.js";import{bD as ue,bv as Ve,cK as Ne,aO as $e,cn as Me,aV as ge,bg as Ke,aN as Be,aM as Ge,bs as He,bL as qe,b_ as Fe,bJ as je,F as Ue}from"./U9jJmfYa.js";import{R as H}from"./BUGeL7WE.js";import{bs as we,ca as Q,bH as v,aD as t,bV as K,br as ze,a7 as q,ay as M,W as p,bn as Le,c9 as b,aA as ne,a5 as X,bA as Z,bS as ye,aw as Ye,aB as W,be as F,b$ as x,b_ as I,bO as E,bl as Je,bk as Qe}from"./3SdAC2_C.js";import{i as D}from"./bhKPSdq4.js";import{s as fe}from"./7UPrdiE9.js";import{L as me}from"./CmrjfWYI.js";import{C as Xe,L as be}from"./fiz8N_zQ.js";import{I as Ze}from"./BAKPnd3w.js";import"./A9niI_uA.js";import"./CJ4Z96pe.js";import{f as le}from"./FzlZUztb.js";import{v as Ie}from"./DCRuihKm.js";import"./lJeex2Gh.js";import"./CrD0jtXE.js";import{I as ve}from"./B6S6VNu7.js";import{I as et}from"./Bqd7fdCF.js";import"./C7LIHk5_.js";import{a as tt}from"./BdWqymET.js";function xt(){u.register({type:"workspace",loadComponent:()=>c(()=>import("./DmXAUF0G.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209]),import.meta.url),defaultWidthTier:"wide",icon:ue,get defaultTitle(){return e.workspace_page_workspaceResource_label()},get categoryLabel(){return e.workspace_page_workspaceResource_label()},renameable:!1}),u.register({type:"browser",loadComponent:()=>c(()=>import("./BlRYe00B.js"),__vite__mapDeps([210,1,2,3,11,6,7,8,9,10,15,211,22,23,24,25,26,18,13,4,71,14,16,17,19,12,20,21,27,28,29,30,31,32,45,33,34,35,36,37,38,39,40,41,42,43,44,46,58,72,64,62,65,68,60,59,73,74,75,76,63,77,78,181,92,57,61,182,212,123,213,125,52,136,86,214,99,100,215,109,110,111,112,113,216,217,102,218]),import.meta.url),defaultWidthTier:"wide",icon:Ve,get defaultTitle(){return e.layout_tabTypes_browser_title()},get categoryLabel(){return e.layout_tabTypes_browser_category()},sidebarTabId:"browser",renameable:!1}),u.register({type:"terminal",loadComponent:()=>c(()=>import("./BPzekfWN.js"),__vite__mapDeps([219,1,2,3,4,11,28,7,8,9,10,6,64,18,22,23,24,25,26,13,62,16,17,19,65,20,220,15,221,222,59,60,57,58,61,63,223,224,225,226,227,112,212,191,228,14,12,21,27,29,30,31,32,213,229,72,68,73,74,75,76,77,78,36,42,43,40,41,217,230,38,35,39,136,33,34,37,44,45,46,215,231,149,232,233,102,234]),import.meta.url),defaultWidthTier:"medium",icon:Ne,get defaultTitle(){return e.layout_tabTypes_terminal_title()},get categoryLabel(){return e.layout_tabTypes_terminal_category()},sidebarTabId:"terminals",renameable:!1}),u.register({type:"code-review",loadComponent:()=>c(()=>import("./7GuT70Sz.js"),__vite__mapDeps([235,1,2,22,23,24,25,9,7,26,18,13,3,29,6,8,10,64,28,11,62,16,17,19,65,20,216,76,63,78,92,72,12,14,15,4,21,27,30,31,32,68,60,59,73,74,75,77,58,57,61,217,181,182,102,236,237,178,84,87,179,180,130,132,133,142,229,167,238,234,239,36,42,43,40,41,113,112,172,206,191,213,143,135,71,240,241,242,243,244,199,151,109,110,111,245,246,223,224,225,226,227,140,153,154,35,164,82,69,70,33,34,37,38,39,44,45,46,79,80,81,50,51,117,165,125,52]),import.meta.url),defaultWidthTier:"wide",icon:$e,get defaultTitle(){return e.layout_tabTypes_codeReview_title()},get categoryLabel(){return e.layout_tabTypes_codeReview_category()},renameable:!1}),u.register({type:"agent-overview",loadComponent:()=>c(()=>import("./Dhzl8ugO.js"),__vite__mapDeps([247,1,2,3,6,7,8,9,10,15,14,16,13,17,18,19,11,4,119,120,121,75,22,23,24,25,26,76,63,77,64,28,62,65,20,78,58,122,12,21,27,29,30,31,32,158,81,51,178,84,87,68,60,59,179,180,130,92,72,73,74,57,61,132,133,142,109,110,111,112,113,248]),import.meta.url),defaultWidthTier:"narrow",icon:Me,get defaultTitle(){return e.layout_tabTypes_agentOverview_title()},get categoryLabel(){return e.layout_tabTypes_agents_category()},renameable:!1}),u.register({type:"agent",loadComponent:()=>c(()=>import("./CDAoSo12.js"),__vite__mapDeps([249,1,2,3,4,6,7,8,9,10,11,15,72,12,13,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,64,62,65,68,60,59,73,74,75,76,63,77,78,58,250,251,238,237,102,57,61,133,205,44,45,215,240,132,92,241,103,35,36,47,48,49,42,43,50,51,52,53,104,38,39,105,86,34,37,40,41,71,82,33,46,106,107,81,108,95,96,109,110,111,112,113,114,115,194,54,55,56,66,67,69,70,79,80,83,84,85,87,88,89,90,91,93,94,97,98,99,100,101,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,195,196,197,198,199,200,201,202,203,204,206,207,208,217,216]),import.meta.url),defaultWidthTier:"chat",icon:ge,get defaultTitle(){return e.layout_tabTypes_agent_title()},get categoryLabel(){return e.layout_tabTypes_agents_category()},sidebarTabId:"agents",renameable:!0}),u.register({type:"discussion",loadComponent:()=>c(()=>import("./D3C3nNLs.js"),__vite__mapDeps([252,1,2,3,4,11,8,9,7,10,16,13,17,18,19,38,6,29,35,15,36,14,39,33,34,37,27,40,41,28,42,31,43,44,45,46,21,22,23,24,25,26,217,12,20,30,32,64,62,65,72,68,60,59,73,74,75,76,63,77,78,58,92,57,61,194,88,89,66,114,120,121,125,52,161,82,164,140,69,70,71,79,80,81,50,51,117,165,99,100,48,236,216,181,182,102,237,178,84,87,179,180,130,132,133,142,229,167,238,234,239,113,112,172,206,191,213,143,135,240,241,242,243,244,199,151,109,110,111,245,246,223,224,225,226,227,129,131,253,98,94,95,49,96,97,118,215,254]),import.meta.url),defaultWidthTier:"chat",icon:ge,get defaultTitle(){return e.workspace_discussion_title()},get categoryLabel(){return e.workspace_discussion_list_label()},sidebarTabId:"people",renameable:!1}),u.register({type:"note",loadComponent:()=>c(()=>import("./D4FXvK9L.js"),__vite__mapDeps([255,1,2,3,11,64,18,9,22,23,24,25,7,26,13,28,8,10,6,62,16,17,19,65,20,215,181,92,72,12,14,15,4,21,27,29,30,31,32,68,60,59,73,74,75,76,63,77,78,58,57,61,182,35,36,81,88,89,50,51,33,34,37,38,39,40,41,42,43,44,45,46,117,120,121,138,139,140,141,116,71,52,69,70,79,80,82,67,118,114,119,122,123,100,124,236,216,217,102,237,178,84,87,179,180,130,132,133,142,229,167,238,234,239,113,112,172,206,191,213,143,135,240,241,242,243,244,199,151,109,110,111,245,246,223,224,225,226,227,146,55,147,148,149,150,256,257,258,108,95,49,96,163,195,259,260,153,154,106,48,107,261,156,157,158,159,152,155,162,184,192,136,197,198,174,164,165,262]),import.meta.url),defaultWidthTier:"medium",icon:H.note,get defaultTitle(){return e.layout_tabTypes_note_title()},get categoryLabel(){return e.layout_tabTypes_context_category()},sidebarTabId:"notes",renameable:!0}),u.register({type:"file",loadComponent:()=>c(()=>import("./DmaEU7hb.js"),__vite__mapDeps([263,1,2,3,4,6,7,8,9,10,11,15,22,23,24,25,26,18,13,215,151,64,28,62,16,17,19,65,20,264,68,60,59,199,77,12,14,21,27,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,236,61,57,58,63,92,72,73,74,75,76,78,216,217,181,182,102,237,178,84,87,179,180,130,132,133,142,229,167,238,234,239,113,112,172,206,191,213,143,135,71,240,241,242,243,244,109,110,111,245,246,223,224,225,226,227,256,257,117,258,164,140,82,69,70,79,80,81,50,51,165,136,265,123,266,233,267]),import.meta.url),defaultWidthTier:"wide",icon:Ke,get defaultTitle(){return e.layout_tabTypes_file_title()},get categoryLabel(){return e.layout_tabTypes_files_category()},sidebarTabId:"files",renameable:!0}),u.register({type:"diff",loadComponent:()=>c(()=>import("./BY9RbRJy.js"),__vite__mapDeps([268,1,2,3,4,11,163,22,23,24,25,9,7,26,18,13,215,64,28,8,10,6,62,16,17,19,65,20,146,55,15,132,59,92,72,12,14,21,27,29,30,31,32,68,60,73,74,75,76,63,77,78,58,57,61,133,147,148,149,35,36,150,269,151,33,34,37,38,39,40,41,42,43,44,45,46,117,136,265,197,198,174,199,121]),import.meta.url),defaultWidthTier:"wide",icon:Be,get defaultTitle(){return e.layout_tabTypes_diff_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},sidebarTabId:"files",renameable:!1}),u.register({type:"changes",loadComponent:()=>c(()=>import("./Ck2X3Rvg.js"),__vite__mapDeps([270,1,2,4,15,22,23,24,25,9,7,26,18,13,163,215,64,28,11,3,8,10,6,62,16,17,19,65,20,216,76,63,78,92,72,12,14,21,27,29,30,31,32,68,60,59,73,74,75,77,58,57,61,217,181,182,102,271,160,259,260,146,55,132,133,147,148,149,35,36,150,269,151,33,34,37,38,39,40,41,42,43,44,45,46,117,120,121,106,48,49,107,134,135,71,126,143,178,84,87,179,180,130,142,236,237,229,167,238,234,239,113,112,172,206,191,213,240,241,242,243,244,199,109,110,111,245,246,223,224,225,226,227,272,265]),import.meta.url),defaultWidthTier:"wide",icon:H.changes,get defaultTitle(){return e.layout_tabTypes_changes_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},sidebarTabId:"changes",renameable:!1}),u.register({type:"local-changes",loadComponent:()=>c(()=>import("./Ddq8SBEz.js"),__vite__mapDeps([273,1,2,15,22,23,24,25,9,7,26,18,13,163,215,64,28,11,3,8,10,6,62,16,17,19,65,20,271,29,160,259,260,92,72,12,14,4,21,27,30,31,32,68,60,59,73,74,75,76,63,77,78,58,57,61,146,55,132,133,147,148,149,35,36,150,269,151,33,34,37,38,39,40,41,42,43,44,45,46,117,120,121,106,48,49,107,134,135,71,126,143,181,182,216,217,102,178,84,87,179,180,130,142,236,237,229,167,238,234,239,113,112,172,206,191,213,240,241,242,243,244,199,109,110,111,245,246,223,224,225,226,227,272,265]),import.meta.url),defaultWidthTier:"wide",icon:H.changes,get defaultTitle(){return e.layout_tabTypes_localChanges_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},sidebarTabId:"changes",renameable:!1}),u.register({type:"chat-changes",loadComponent:()=>c(()=>import("./h06E2ICA.js"),__vite__mapDeps([274,1,2,3,271,6,7,8,9,10,29,15,22,23,24,25,26,18,13,160,64,28,11,62,16,17,19,65,20,259,260,92,72,12,14,4,21,27,30,31,32,68,60,59,73,74,75,76,63,77,78,58,57,61,146,55,132,133,147,148,149,35,36,150,269,151,33,34,37,38,39,40,41,42,43,44,45,46,117,120,121,106,48,49,107,134,135,71,126,143,181,182,216,217,102,178,84,87,179,180,130,142,236,237,229,167,238,234,239,113,112,172,206,191,213,240,241,242,243,244,199,109,110,111,245,246,223,224,225,226,227,272]),import.meta.url),defaultWidthTier:"wide",icon:H.changes,get defaultTitle(){return e.layout_tabTypes_chatChanges_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},renameable:!1}),u.register({type:"activity-changes",loadComponent:()=>c(()=>import("./MQBseMlG.js"),__vite__mapDeps([275,1,2,3,4,11,62,241,24,59,146,8,9,7,10,55,15,132,16,13,17,18,19,22,23,25,26,92,64,28,6,65,20,72,12,14,21,27,29,30,31,32,68,60,73,74,75,76,63,77,78,58,57,61,133,147,148,149,35,36,150,269,151,33,34,37,38,39,40,41,42,43,44,45,46,117,215,136,265,197,198,174,199,121]),import.meta.url),defaultWidthTier:"wide",icon:H.changes,get defaultTitle(){return e.layout_tabTypes_activityChanges_title()},get categoryLabel(){return e.layout_tabTypes_changes_category()},renameable:!1}),u.register({type:"hook-script",loadComponent:()=>c(()=>import("./CkA2ItLw.js"),__vite__mapDeps([276,1,2,3,152,6,7,8,9,10,140,153,59,154,12,13,14,15,16,17,18,19,11,4,20,21,22,23,24,25,26,27,28,29,30,31,32,155,167,64,62,65,76,63,77]),import.meta.url),defaultWidthTier:"medium",icon:Ge,get defaultTitle(){return e.chat_backgroundHooks_viewScript_label()},get categoryLabel(){return e.layout_tabTypes_panel_category()},renameable:!1}),u.register({type:"settings",loadComponent:()=>c(()=>import("./B-ef1MlI.js"),__vite__mapDeps([277,1,2]),import.meta.url),defaultWidthTier:"narrow",icon:He,get defaultTitle(){return e.layout_tabTypes_settings_title()},get categoryLabel(){return e.layout_tabTypes_settings_category()},renameable:!1}),u.register({type:"overview",loadComponent:()=>c(()=>import("./BGTRTFMR.js"),__vite__mapDeps([278,1,2]),import.meta.url),defaultWidthTier:"narrow",icon:ue,get defaultTitle(){return e.layout_tabTypes_overview_title()},get categoryLabel(){return e.layout_tabTypes_overview_category()},renameable:!1})}async function Wt(y){if(y?.restoreStatus!=="restored")return;const _=new Set(Object.values(y.panels).flatMap(r=>{const k=r.tabs.find(l=>l.id===r.activeTabId);return k?[k.type]:[]}));await Promise.allSettled([..._].map(r=>u.loadComponent(r)))}var at=W("<!> <!>",1),rt=W('<img class="h-auto w-full max-w-64 rounded-lg" width="512" height="512"/>'),ot=W('<div class="flex aspect-square w-full max-w-64 items-center justify-center"><!></div>'),st=W('<div class="flex justify-center" data-testid="passkey-qr"><!></div>'),it=W('<div class="flex justify-center py-4 text-muted-foreground"><!></div>'),nt=W('<p class="type-caption text-muted-foreground" data-testid="passkey-pin-advice"> </p>'),lt=W('<form id="passkey-pin-form" class="flex flex-col gap-3"><!> <!></form>');function Pe(y,_){if(new.target)return Te({component:Pe,...y});we(_,!0);let r=ie(_,"payload",7),k=ie(_,"static",7,!1),l=ie(_,"onRespond",7),f=K(!1),A=K(""),U=K("");const a=b(()=>r()?.view??null);Q(()=>{v(f,r()!==null)}),Q(()=>{t(a)?.step!=="pin"&&v(A,"")});let z=K(0),Y=K(ze(Date.now()));Q(()=>{const i=t(a)?.step==="pin"&&t(a).kind==="device"?t(a).retryAfterMs:void 0;if(typeof i!="number"){v(z,0);return}const T=Date.now();v(Y,T,!0),v(z,T+i);const w=setInterval(()=>{v(Y,Date.now(),!0),t(Y)>=t(z)&&clearInterval(w)},250);return()=>clearInterval(w)});const ee=b(()=>Math.max(0,Math.ceil((t(z)-t(Y))/1e3))),_e=b(()=>t(a)?.step==="pin"&&(t(a).kind==="device"?t(ee)>0:typeof t(a).retryAfterMs=="number"));Q(()=>{const i=t(a)?.step==="qr"?t(a).data:"";if(!i){v(U,"");return}let T=!0;return c(async()=>{const{default:w}=await import("./BZ9svoQk.js").then(C=>C.b);return{default:w}},__vite__mapDeps([279,59]),import.meta.url).then(({default:w})=>w.toDataURL(i,{width:512,margin:2})).then(w=>{T&&v(U,w,!0)}),()=>{T=!1}});const Ee=b(()=>r()?r().kind==="create"?e.passkeys_dialog_createTitle_label({site:r().rpId}):e.passkeys_dialog_getTitle_label({site:r().rpId}):"");function De(i){switch(i){case"bluetooth-off":return e.passkeys_dialog_bluetoothOff_error();case"bluetooth-missing":return e.passkeys_dialog_bluetoothMissing_error();case"pin-locked":return e.passkeys_dialog_pinLocked_error();case"timeout":return e.passkeys_dialog_timeout_error();case"already-registered":return e.passkeys_dialog_alreadyRegistered_error();case"unavailable":return e.passkeys_dialog_unavailable_error();case"device-locked":return e.passkeys_dialog_deviceLocked_error();case"device-already-registered":return e.passkeys_dialog_deviceAlreadyRegistered_error();case"device-no-passkey":return e.passkeys_dialog_deviceNoPasskey_error({site:r()?.rpId??""});case"device-old-pin-wrong":return e.passkeys_dialog_deviceOldPinWrong_error();case"device-failed":return e.passkeys_dialog_deviceFailed_error();default:return e.passkeys_dialog_failed_error()}}const Ae=b(()=>{if(!(!t(a)||!r()))switch(t(a).step){case"choose-transport":return r().kind==="create"?e.passkeys_dialog_chooseCreate_description():e.passkeys_dialog_chooseGet_description();case"qr":case"progress":switch(t(a).progress){case"waiting-for-phone":return e.passkeys_dialog_waitingForPhone_description();case"connecting":return e.passkeys_dialog_connecting_description();case"waiting-for-approval":return e.passkeys_dialog_waitingForApproval_description();case"touch-key":return e.passkeys_dialog_touchKey_description();case"processing":return e.passkeys_dialog_processing_description();default:return t(a).step==="progress"&&t(a).transport==="usb"?e.passkeys_dialog_insertKey_description():e.passkeys_dialog_starting_description()}case"pin":return t(a).kind==="usb"?e.passkeys_dialog_pin_description():t(a).oldPin?e.passkeys_dialog_deviceOldPin_description():e.passkeys_dialog_devicePin_description();case"choose-account":return e.passkeys_dialog_chooseAccount_description();case"error":return De(t(a).reason)}}),de=b(()=>t(a)?.step==="pin"&&t(a).kind==="device"?t(a).oldPin?e.passkeys_dialog_deviceOldPin_label():e.passkeys_dialog_devicePin_label():e.passkeys_dialog_pin_label()),Ce=b(()=>{if(t(a)?.step==="pin"){if(t(a).kind==="device"){if(t(ee)>0)return e.passkeys_dialog_devicePinWait_error({seconds:t(ee)})}else if(typeof t(a).retryAfterMs=="number")return e.passkeys_dialog_pinRetryAfter_error();if(t(a).wrongPin)return typeof t(a).attemptsLeft=="number"?t(a).attemptsLeft===1?e.passkeys_dialog_wrongPinAttempts_one({count:t(a).attemptsLeft}):e.passkeys_dialog_wrongPinAttempts_many({count:t(a).attemptsLeft}):e.passkeys_dialog_wrongPin_error()}}),Oe=b(()=>{if(t(a)?.step!=="choose-transport")return[];const i=t(a).hybrid==="bluetooth-off"?e.passkeys_dialog_bluetoothOff_description():t(a).hybrid==="bluetooth-missing"?e.passkeys_dialog_bluetoothMissing_description():void 0;return[...t(a).device?[{id:"device",label:e.passkeys_dialog_thisDevice_label(),note:void 0,icon:qe}]:[],{id:"hybrid",label:e.passkeys_dialog_phone_label(),note:i,icon:Fe},{id:"usb",label:e.passkeys_dialog_securityKey_label(),note:void 0,icon:je}]});function te(){l()({action:"cancel"})}function Re(i){if(i.preventDefault(),!t(A))return;const T=t(A);v(A,""),l()({action:"pin",pin:T})}var xe={get payload(){return r()},set payload(i){r(i),ne()},get static(){return k()},set static(i=!1){k(i),ne()},get onRespond(){return l()},set onRespond(i){l(i),ne()},$set:he,$on:(i,T)=>ke(_,i,T)},pe=q(),We=M(pe);{var Se=i=>{{const T=C=>{var ae=q(),J=M(ae);{var re=P=>{le(P,{variant:"secondary",onclick:te,children:(S,B)=>{F();var V=x();I(d=>E(V,d),[()=>e.passkeys_dialog_close_label()]),p(S,V)},$$slots:{default:!0}})},oe=P=>{var S=at(),B=M(S);le(B,{variant:"ghost",onclick:te,children:(n,m)=>{F();var s=x();I(L=>E(s,L),[()=>e.passkeys_dialog_cancel_label()]),p(n,s)},$$slots:{default:!0}});var V=ye(B,2);{var d=n=>{{let m=b(()=>!t(A)||t(_e));le(n,{variant:"primary",type:"submit",form:"passkey-pin-form",get disabled(){return t(m)},children:(s,L)=>{F();var o=x();I(g=>E(o,g),[()=>e.passkeys_dialog_continue_label()]),p(s,o)},$$slots:{default:!0}})}};D(V,n=>{t(a).step==="pin"&&n(d)})}p(P,S)};D(J,P=>{t(a).step==="error"?P(re):P(oe,-1)})}p(C,ae)};let w=b(()=>t(a).step==="error"?e.passkeys_dialog_close_label():e.passkeys_dialog_cancel_label());Xe(i,{get static(){return k()},get title(){return t(Ee)},get description(){return t(Ae)},size:"sm",dismissOnInteractOutside:!1,get closeLabel(){return t(w)},onClose:te,get open(){return t(f)},set open(C){v(f,C,!0)},footer:T,children:(C,ae)=>{var J=q(),re=M(J);{var oe=d=>{{const n=(s,L)=>{let o=()=>(L?.()).item;me(s,{leading:h=>{Ue(h,{get icon(){return o().icon},fw:!0})},title:h=>{F();var R=x();I(()=>E(R,o().label)),p(h,R)},description:h=>{var R=q(),se=M(R);{var G=$=>{var ce=x();I(()=>E(ce,o().note)),p($,ce)};D(se,$=>{o().note&&$(G)})}p(h,R)},$$slots:{leading:!0,title:!0,description:!0}})};let m=b(()=>e.passkeys_dialog_transports_ariaLabel());be(d,{get items(){return t(Oe)},getKey:s=>s.id,getText:s=>s.label,get ariaLabel(){return t(m)},onActivate:s=>l()({action:"transport",transport:s.id}),row:n,$$slots:{row:!0}})}},P=d=>{var n=st(),m=X(n);{var s=o=>{var g=rt();I(O=>{fe(g,"src",t(U)),fe(g,"alt",O)},[()=>e.passkeys_dialog_qrImage_ariaLabel()]),p(o,g)},L=o=>{var g=ot(),O=X(g);ve(O,{size:20}),Z(g),p(o,g)};D(m,o=>{t(U)?o(s):o(L,-1)})}Z(n),p(d,n)},S=d=>{var n=it(),m=X(n);ve(m,{size:20}),Z(n),p(d,n)},B=d=>{var n=lt(),m=X(n);{let o=b(()=>t(a).kind==="device"?"numeric":void 0);Ze(m,{type:"password",get inputmode(){return t(o)},autocomplete:"off",get"aria-label"(){return t(de)},get placeholder(){return t(de)},get error(){return t(Ce)},get disabled(){return t(_e)},autofocus:!0,get value(){return t(A)},set value(g){v(A,g,!0)}})}var s=ye(m,2);{var L=o=>{var g=nt(),O=Je(g,!0);I(N=>E(O,N),[()=>e.passkeys_dialog_devicePinAdvice_description()]),p(o,g)};D(s,o=>{t(a).firstPasskey&&o(L)})}Z(n),Ye("submit",n,Re),p(d,n)},V=d=>{{const n=(s,L)=>{let o=()=>(L?.()).item;me(s,{title:N=>{F();var h=x();I(()=>E(h,o().userDisplayName||o().userName)),p(N,h)},description:N=>{var h=q(),R=M(h);{var se=G=>{var $=x();I(()=>E($,o().userName)),p(G,$)};D(R,G=>{o().userDisplayName&&o().userName&&G(se)})}p(N,h)},$$slots:{title:!0,description:!0}})};let m=b(()=>e.passkeys_dialog_accounts_ariaLabel());be(d,{get items(){return t(a).accounts},getKey:s=>s.index,getText:s=>s.userDisplayName||s.userName,get ariaLabel(){return t(m)},onActivate:s=>l()({action:"choose",index:s.index}),row:n,$$slots:{row:!0}})}};D(re,d=>{t(a).step==="choose-transport"?d(oe):t(a).step==="qr"?d(P,1):t(a).step==="progress"?d(S,2):t(a).step==="pin"?d(B,3):t(a).step==="choose-account"&&d(V,4)})}p(C,J)},$$slots:{footer:!0,default:!0}})}};D(We,i=>{r()&&t(a)&&i(Se)})}return p(y,pe),Le(xe)}const _t=new tt("PasskeyDialog"),j=et.PASSKEYS;function dt(y){const _=Ie();if(!_)return()=>{};const r=_.on(j.DIALOG_SHOW,l=>{const f=l;!f||typeof f.ceremonyId!="string"||!f.view||y.onShow(f)}),k=_.on(j.DIALOG_CLOSE,l=>{const f=l;f&&typeof f.ceremonyId=="string"&&y.onClose(f.ceremonyId)});return()=>{_.offById(j.DIALOG_SHOW,r),_.offById(j.DIALOG_CLOSE,k)}}function pt(y){const _=Ie();_&&_.invoke(j.DIALOG_RESPOND,y).catch(()=>{_t.warn("Passkey dialog response failed",{action:y.action})})}function ct(y,_){if(new.target)return Te({component:ct,...y});we(_,!0);let r=K(null);Qe(()=>dt({onShow:l=>{v(r,l,!0)},onClose:l=>{t(r)?.ceremonyId===l&&v(r,null)}}));var k={$set:he,$on:(l,f)=>ke(_,l,f)};return Pe(y,{get payload(){return t(r)},onRespond:l=>{t(r)&&pt({...l,ceremonyId:t(r).ceremonyId})}}),Le(k)}export{ct as P,Wt as p,xt as r};
@@ -1,4 +1,4 @@
1
- import{b as e}from"./cebxNJuC.js";var l=e(()=>`
1
+ import{b as e}from"./Ckb6le-m.js";var l=e(()=>`
2
2
  /* Font Awesome icon styling - consolidated */
3
3
  .label-icon {
4
4
  display: inline-block;
@@ -1,3 +1,3 @@
1
- import{t as D,bo as d,bw as P,b}from"./C0QTy0Sy.js";import{bs as S,a7 as A,ay as C,W as M,bn as x,aA as m,aD as i,c9 as c}from"./3SdAC2_C.js";import{i as z}from"./bhKPSdq4.js";import{D as f,M as B}from"./cebxNJuC.js";import{S as J,p as N}from"./DPA45OJk.js";import{N as W}from"./DVROSXw1.js";import{Jv as $,vI as j,bq as E}from"./tr-2J8Mf.js";import{h as K}from"./DIG1mTAN.js";import{a9 as O}from"./BaujsV9k.js";function R(l,s){if(new.target)return D({component:R,...l});S(s,!0);let o=d(s,"kind",7),t=d(s,"source",7),a=d(s,"workspaceId",7);const g=new W,p=c(()=>{if(o()==="mermaid")return null;const e=g.parseMarkdown(`\`\`\`ws-block:diagram
1
+ import{t as D,bo as d,bw as P,b}from"./C0QTy0Sy.js";import{bs as S,a7 as A,ay as C,W as M,bn as x,aA as m,aD as i,c9 as c}from"./3SdAC2_C.js";import{i as z}from"./bhKPSdq4.js";import{D as f,M as B}from"./Ckb6le-m.js";import{S as J,p as N}from"./CaNxJFJ1.js";import{N as W}from"./BtHTHBJp.js";import{Jv as $,vI as j,bq as E}from"./tr-2J8Mf.js";import{h as K}from"./BwtFad5m.js";import{a9 as O}from"./BaujsV9k.js";function R(l,s){if(new.target)return D({component:R,...l});S(s,!0);let o=d(s,"kind",7),t=d(s,"source",7),a=d(s,"workspaceId",7);const g=new W,p=c(()=>{if(o()==="mermaid")return null;const e=g.parseMarkdown(`\`\`\`ws-block:diagram
2
2
  ${t()}
3
3
  \`\`\``)[0],r=e?.primitive.type==="diagram"?JSON.stringify(e.primitive):t();return N(r,!0)});function k(e,r){if(!a()||!r.target)return;const n={openInAdjacentPanel:e.metaKey||e.ctrlKey,sourcePanelId:e.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0};r.type==="file"?$.dispatch(j(a(),r.target,n)):r.type==="note"&&K(O(r.target,a()),{...n,workspaceId:E(a()),event:e})}var w={get kind(){return o()},set kind(e){o(e),m()},get source(){return t()},set source(e){t(e),m()},get workspaceId(){return a()},set workspaceId(e){a(e),m()},$set:P,$on:(e,r)=>b(s,e,r)},u=A(),v=C(u);{var y=e=>{f(e,{kind:"mermaid",rendererOwnsActions:!0,children:(r,n)=>{B(r,{get code(){return t()},showExportButton:!0})},$$slots:{default:!0}})},I=e=>{f(e,{kind:"custom",children:(r,n)=>{{let h=c(()=>i(p)?.diagram??null),_=c(()=>i(p)?.error);J(r,{get diagram(){return i(h)},get source(){return t()},get sourceError(){return i(_)},onBindingClick:k})}},$$slots:{default:!0}})};z(v,e=>{o()==="mermaid"?e(y):e(I,-1)})}return M(l,u),x(w)}export{R as default};