@intent-hq/web 2.384.1 → 2.384.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{DTdAlnvg.js → 2bsrY56g.js} +5 -5
  3. package/web/app/immutable/chunks/{BJ1Bk8co.js → 4QXQvR4H.js} +1 -1
  4. package/web/app/immutable/chunks/{CZDat5YW.js → 4oPBEC4-.js} +1 -1
  5. package/web/app/immutable/chunks/{D5reO2Y0.js → B4l71ix-.js} +1 -1
  6. package/web/app/immutable/chunks/{C1GvdDuD.js → B7RoQL2j.js} +2 -2
  7. package/web/app/immutable/chunks/{BFBQinse.js → B7h1ZmQS.js} +1 -1
  8. package/web/app/immutable/chunks/{D5i4Tktw.js → B7o2QL9R.js} +1 -1
  9. package/web/app/immutable/chunks/{4rRlR2tp.js → B8evz7o6.js} +2 -2
  10. package/web/app/immutable/chunks/{0_OkSok2.js → B8nUpMEz.js} +1 -1
  11. package/web/app/immutable/chunks/{BX_Jr21Z.js → BAAb6Ol7.js} +1 -1
  12. package/web/app/immutable/chunks/{qAXb8ucI.js → BBV_EtXR.js} +1 -1
  13. package/web/app/immutable/chunks/{5ibcqblv.js → BCx-pM-8.js} +1 -1
  14. package/web/app/immutable/chunks/{BkUPUOzV.js → BEiVNbJd.js} +1 -1
  15. package/web/app/immutable/chunks/{Tk34IzPH.js → BEjISjEF.js} +1 -1
  16. package/web/app/immutable/chunks/{jzrltQdi.js → BEpYOO0x.js} +1 -1
  17. package/web/app/immutable/chunks/{Dh_uOrf0.js → BFc0Rlfo.js} +1 -1
  18. package/web/app/immutable/chunks/{BgPJ_lbZ.js → BGN0Ete3.js} +1 -1
  19. package/web/app/immutable/chunks/{C7OV0KqB.js → BGaOyp5o.js} +1 -1
  20. package/web/app/immutable/chunks/{DvdS-8it.js → BHKaBN6i.js} +1 -1
  21. package/web/app/immutable/chunks/{JD0Hsmjx.js → BJZU-qAV.js} +1 -1
  22. package/web/app/immutable/chunks/{BACpI8G6.js → BK6CZrM5.js} +1 -1
  23. package/web/app/immutable/chunks/{BYIgLpGQ.js → BNFLngEB.js} +1 -1
  24. package/web/app/immutable/chunks/{Bmn4uqsd.js → BPZBxYco.js} +1 -1
  25. package/web/app/immutable/chunks/{B7eTEd5f.js → BRsOtr8M.js} +1 -1
  26. package/web/app/immutable/chunks/{eZPmVSmq.js → BYU-C1jV.js} +2 -2
  27. package/web/app/immutable/chunks/{ZAUoxjxb.js → BaodMpKG.js} +1 -1
  28. package/web/app/immutable/chunks/{eTRx_lEs.js → Bap7o4n5.js} +1 -1
  29. package/web/app/immutable/chunks/{Di0D97hw.js → BcffwE-d.js} +1 -1
  30. package/web/app/immutable/chunks/{Cj5p8V3Z.js → BhpCwvYl.js} +1 -1
  31. package/web/app/immutable/chunks/{CQhRmQZt.js → Bm6FDHvN.js} +1 -1
  32. package/web/app/immutable/chunks/{CFjwzuFW.js → BqU6TsU1.js} +1 -1
  33. package/web/app/immutable/chunks/{BGN2EuCq.js → Bw8_vMki.js} +1 -1
  34. package/web/app/immutable/chunks/{DRg21hWl.js → BziYv9ZW.js} +2 -2
  35. package/web/app/immutable/chunks/{BtBv0U_D.js → BzllE3aT.js} +2 -2
  36. package/web/app/immutable/chunks/{C41iTvQS.js → C4IVoYqo.js} +1 -1
  37. package/web/app/immutable/chunks/{Cxz7a3ln.js → CBZTF7Qa.js} +4 -4
  38. package/web/app/immutable/chunks/{E92QiCEr.js → CBvkahdk.js} +1 -1
  39. package/web/app/immutable/chunks/{BltFs6ST.js → CCAcpS1o.js} +2 -2
  40. package/web/app/immutable/chunks/{CGmFuvv3.js → CI-VmE1m.js} +1 -1
  41. package/web/app/immutable/chunks/{MEhQGTPs.js → CJ72QIuX.js} +3 -3
  42. package/web/app/immutable/chunks/{lDDdxVqt.js → CJHIllR1.js} +1 -1
  43. package/web/app/immutable/chunks/{BiM95_Ol.js → CK2Cr1RP.js} +1 -1
  44. package/web/app/immutable/chunks/{CDVdEpeY.js → CNzCvSR9.js} +1 -1
  45. package/web/app/immutable/chunks/{DM_kAcca.js → CP9jggxp.js} +1 -1
  46. package/web/app/immutable/chunks/{CvCS8OAf.js → CSIAWhhl.js} +1 -1
  47. package/web/app/immutable/chunks/{IjcPbG76.js → CUWtSiZ5.js} +1 -1
  48. package/web/app/immutable/chunks/{CMn1nNPl.js → CU_25eHm.js} +1 -1
  49. package/web/app/immutable/chunks/{D59epBkG.js → CYQKXGJn.js} +1 -1
  50. package/web/app/immutable/chunks/{CjsT6P1W.js → CayjT2l8.js} +1 -1
  51. package/web/app/immutable/chunks/{d7CFoqrB.js → Cb0AGw5F.js} +1 -1
  52. package/web/app/immutable/chunks/{DnkGrT83.js → CbDsELcV.js} +3 -3
  53. package/web/app/immutable/chunks/{B57eLsJv.js → CbucW-av.js} +1 -1
  54. package/web/app/immutable/chunks/{lma_Aa_Q.js → CceLSCZq.js} +1 -1
  55. package/web/app/immutable/chunks/{CdhlQsS3.js → CdMAY9xp.js} +1 -1
  56. package/web/app/immutable/chunks/{B1DQbauY.js → CgJXgMzB.js} +1 -1
  57. package/web/app/immutable/chunks/{BHXs-6um.js → ChdMCKvy.js} +1 -1
  58. package/web/app/immutable/chunks/{CrjK8LH9.js → Chx7ONT3.js} +1 -1
  59. package/web/app/immutable/chunks/{BvGyYsBI.js → Ciei8d6b.js} +3 -3
  60. package/web/app/immutable/chunks/{DvjmmZhh.js → CjyJQV6j.js} +1 -1
  61. package/web/app/immutable/chunks/{Dkgk_rvZ.js → CnHcPhIW.js} +4 -4
  62. package/web/app/immutable/chunks/{8uGKFevW.js → Ct8L3-dh.js} +1 -1
  63. package/web/app/immutable/chunks/{3BCyU2N-.js → Cw2ZnpX7.js} +1 -1
  64. package/web/app/immutable/chunks/{CEaHYCM5.js → Cx6Utm5I.js} +1 -1
  65. package/web/app/immutable/chunks/{DSTc-o8X.js → D0sQr-H_.js} +1 -1
  66. package/web/app/immutable/chunks/{ByNdLM3c.js → D2LsUZli.js} +1 -1
  67. package/web/app/immutable/chunks/{CfE9G-Vk.js → D3qs3VJZ.js} +1 -1
  68. package/web/app/immutable/chunks/{DnQOpOtg.js → D4ZMSrvm.js} +3 -3
  69. package/web/app/immutable/chunks/{BbV6R15i.js → D4g4334W.js} +1 -1
  70. package/web/app/immutable/chunks/{C8veqOP9.js → D5u143LD.js} +1 -1
  71. package/web/app/immutable/chunks/{gZ0nGq7V.js → D6Hf6lXy.js} +1 -1
  72. package/web/app/immutable/chunks/{BV8D9pH6.js → D8elUKsb.js} +1 -1
  73. package/web/app/immutable/chunks/{KmGBeLVg.js → D8s3q34H.js} +1 -1
  74. package/web/app/immutable/chunks/{CeOHBQlu.js → DAzQ7i2U.js} +1 -1
  75. package/web/app/immutable/chunks/{CQ9fljqW.js → DB0jxR-D.js} +1 -1
  76. package/web/app/immutable/chunks/{D_DdTIu0.js → DCGl0RXW.js} +7 -7
  77. package/web/app/immutable/chunks/{ClyQ7g2p.js → DGZLYT-c.js} +1 -1
  78. package/web/app/immutable/chunks/{CCej7AMq.js → DHbqsCcC.js} +1 -1
  79. package/web/app/immutable/chunks/{BMPSP6zy.js → DJM7b4MF.js} +1 -1
  80. package/web/app/immutable/chunks/{C-srtNB0.js → DKLk3Wx8.js} +1 -1
  81. package/web/app/immutable/chunks/{BMW8QkkW.js → DKrlwauu.js} +1 -1
  82. package/web/app/immutable/chunks/{DUhda8VE.js → DLKd3Oyl.js} +1 -1
  83. package/web/app/immutable/chunks/{DA6dl8M4.js → DN-MAVuE.js} +1 -1
  84. package/web/app/immutable/chunks/{CKc3ivIh.js → DOU-V4Cg.js} +2 -2
  85. package/web/app/immutable/chunks/{C2jf24pz.js → DV6uX7ff.js} +1 -1
  86. package/web/app/immutable/chunks/{DQdjZnba.js → DVL_BM5a.js} +1 -1
  87. package/web/app/immutable/chunks/{XS67_4Nj.js → DY52XPja.js} +2 -2
  88. package/web/app/immutable/chunks/{DAUcVagO.js → DZjKvOyB.js} +1 -1
  89. package/web/app/immutable/chunks/{DVuQpyKc.js → DZnKNdAN.js} +1 -1
  90. package/web/app/immutable/chunks/{P9PnSQNh.js → DaZ7K0cS.js} +3 -3
  91. package/web/app/immutable/chunks/{CTKlTmjI.js → DcACHBPs.js} +1 -1
  92. package/web/app/immutable/chunks/{BegKMnH4.js → Df-2xtN9.js} +1 -1
  93. package/web/app/immutable/chunks/{CcNZQwT1.js → Dfh8DRT0.js} +3 -3
  94. package/web/app/immutable/chunks/{XzLIP4y8.js → Dg5FvxXA.js} +1 -1
  95. package/web/app/immutable/chunks/{esAd2hCU.js → Dk0Z1pVU.js} +1 -1
  96. package/web/app/immutable/chunks/{Rz920YbF.js → DkET5D1Z.js} +1 -1
  97. package/web/app/immutable/chunks/{BXClhyCJ.js → Dl9we4aZ.js} +1 -1
  98. package/web/app/immutable/chunks/{DUkL2vjQ.js → DltbAw1B.js} +1 -1
  99. package/web/app/immutable/chunks/{BQXu3XXC.js → Dm9EHXJZ.js} +1 -1
  100. package/web/app/immutable/chunks/{HP51nVq8.js → DnozpXMO.js} +1 -1
  101. package/web/app/immutable/chunks/{Dc7e-OgI.js → DoStKyYK.js} +2 -2
  102. package/web/app/immutable/chunks/{Cr6ukNck.js → DpeQIGDn.js} +1 -1
  103. package/web/app/immutable/chunks/{CzG_0Mji.js → H9nIRlnK.js} +1 -1
  104. package/web/app/immutable/chunks/{CZ56JG-R.js → Ipu7_2rx.js} +1 -1
  105. package/web/app/immutable/chunks/{Ue4xifLs.js → McOgUz0K.js} +1 -1
  106. package/web/app/immutable/chunks/{Bk1CZ_aH.js → MsC14vMO.js} +1 -1
  107. package/web/app/immutable/chunks/{rjhGooNa.js → NZ_vlsKe.js} +1 -1
  108. package/web/app/immutable/chunks/{wsPxCWV4.js → QFC15GkG.js} +2 -2
  109. package/web/app/immutable/chunks/{ClNWpSoj.js → RzextV4B.js} +1 -1
  110. package/web/app/immutable/chunks/{evy8DaDH.js → WWSsQ21S.js} +1 -1
  111. package/web/app/immutable/chunks/{4Pag07jF.js → YTt0B0lA.js} +1 -1
  112. package/web/app/immutable/chunks/{-31r5MID.js → ZNhLMxqQ.js} +1 -1
  113. package/web/app/immutable/chunks/{Cm60YBNN.js → Za_i3D8P.js} +4 -4
  114. package/web/app/immutable/chunks/{DtO9zNSi.js → _0LhNaan.js} +1 -1
  115. package/web/app/immutable/chunks/{0vzGySSF.js → akx8_VtJ.js} +1 -1
  116. package/web/app/immutable/chunks/{DneGzq7o.js → ez7LBTR9.js} +1 -1
  117. package/web/app/immutable/chunks/{BxiKdHSR.js → gkPeOUJv.js} +1 -1
  118. package/web/app/immutable/chunks/{CRGZeiHP.js → h3LTJhAu.js} +1 -1
  119. package/web/app/immutable/chunks/{D2rdAIDv.js → hcDGwCEP.js} +1 -1
  120. package/web/app/immutable/chunks/{gIt--5se.js → jiLgt56M.js} +1 -1
  121. package/web/app/immutable/chunks/{BWM_jjc6.js → jmJoSjVa.js} +1 -1
  122. package/web/app/immutable/chunks/{B80lqB7E.js → mLzVJBUx.js} +1 -1
  123. package/web/app/immutable/chunks/{BswbJQ0U.js → oTjaecL9.js} +1 -1
  124. package/web/app/immutable/chunks/{D8mJ0i4V.js → oki3b9jv.js} +1 -1
  125. package/web/app/immutable/chunks/{DJEkkAqR.js → qLxI2L63.js} +1 -1
  126. package/web/app/immutable/chunks/{8eQog6L5.js → rYnu2FeJ.js} +1 -1
  127. package/web/app/immutable/chunks/{B4T9RExk.js → tF7VK2wM.js} +1 -1
  128. package/web/app/immutable/chunks/{zJz5NUAZ.js → wZz1J3UE.js} +1 -1
  129. package/web/app/immutable/entry/{app.BN9LppoE.js → app.CHgb5yMQ.js} +2 -2
  130. package/web/app/immutable/entry/start.CINDVXKj.js +1 -0
  131. package/web/app/immutable/nodes/{0.DuuUT7lf.js → 0.DECevrtM.js} +1 -1
  132. package/web/app/immutable/nodes/{1.CuKU_s85.js → 1.LZZdSQoJ.js} +1 -1
  133. package/web/app/immutable/nodes/{10.DkGJji_v.js → 10.KUh1filM.js} +1 -1
  134. package/web/app/immutable/nodes/{11.DswJjpxi.js → 11.D5CTYtT6.js} +1 -1
  135. package/web/app/immutable/nodes/{15.CDuV6cP7.js → 15.5st_fzCN.js} +1 -1
  136. package/web/app/immutable/nodes/{19.DvjAcoWG.js → 19.wB7XsK3B.js} +2 -2
  137. package/web/app/immutable/nodes/{2.r_yCTdWa.js → 2.C7whbYui.js} +1 -1
  138. package/web/app/immutable/nodes/{3.BzmP3XDj.js → 3.KbBbpAm6.js} +1 -1
  139. package/web/app/immutable/nodes/{4.BPX7a1xw.js → 4.C1b_QyI0.js} +1 -1
  140. package/web/app/immutable/nodes/{5.CbH1sau-.js → 5.CG-B5vOM.js} +1 -1
  141. package/web/app/immutable/nodes/{6.DXN3u4yU.js → 6.v-GnNHdu.js} +1 -1
  142. package/web/app/immutable/nodes/{7.BAFpN-hf.js → 7.D9LU-AZb.js} +1 -1
  143. package/web/app/immutable/nodes/{8.COZNLTaW.js → 8.BJP_1POW.js} +1 -1
  144. package/web/app/immutable/nodes/9.f8mHa7_b.js +14 -0
  145. package/web/app/version.json +1 -1
  146. package/web/index.html +9 -9
  147. package/web/app/immutable/entry/start.Dyk9KswN.js +0 -1
  148. package/web/app/immutable/nodes/9.VZM4RxD5.js +0 -14
@@ -1,4 +1,4 @@
1
- import{I as le}from"./DM_kAcca.js";import{p as he}from"./BswbJQ0U.js";import{Y as $e,b0 as fe,aZ as ge,U as ue,V as ye,a_ as xe,b as h,W as J,ay as w,aW as me,X as P,bh as pe,b4 as be,r as we,z as B,q as ke,O as ve,aM as Ce}from"./Cxz7a3ln.js";import{p as Ee}from"./CwHPdS9l.js";var m={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Be=ve.gitGraph,S=h(()=>ke({...Be,...J().gitGraph}),"getConfig"),d=new le(()=>{const e=S(),r=e.mainBranchName,t=e.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:t}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function Y(){return Ce({length:7})}h(Y,"getID");function te(e,r){const t=Object.create(null);return e.reduce((s,o)=>{const i=r(o);return t[i]||(t[i]=!0,s.push(o)),s},[])}h(te,"uniqBy");var Te=h(function(e){d.records.direction=e},"setDirection"),Le=h(function(e){w.debug("options str",e),e=e?.trim(),e=e||"{}";try{d.records.options=JSON.parse(e)}catch(r){w.error("error while parsing gitGraph options",r.message)}},"setOptions"),Me=h(function(){return d.records.options},"getOptions"),Re=h(function(e){let r=e.msg,t=e.id;const s=e.type;let o=e.tags;w.info("commit",r,t,s,o),w.debug("Entering commit:",r,t,s,o);const i=S();t=B.sanitizeText(t,i),r=B.sanitizeText(r,i),o=o?.map(a=>B.sanitizeText(a,i));const n={id:t||d.records.seq+"-"+Y(),message:r,seq:d.records.seq++,type:s??m.NORMAL,tags:o??[],parents:d.records.head==null?[]:[d.records.head.id],branch:d.records.currBranch};d.records.head=n,w.info("main branch",i.mainBranchName),d.records.commits.has(n.id)&&w.warn(`Commit ID ${n.id} already exists`),d.records.commits.set(n.id,n),d.records.branches.set(d.records.currBranch,n.id),w.debug("in pushCommit "+n.id)},"commit"),Ie=h(function(e){let r=e.name;const t=e.order;if(r=B.sanitizeText(r,S()),d.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);d.records.branches.set(r,d.records.head!=null?d.records.head.id:null),d.records.branchConfig.set(r,{name:r,order:t}),ae(r),w.debug("in createBranch")},"branch"),Oe=h(e=>{let r=e.branch,t=e.id;const s=e.type,o=e.tags,i=S();r=B.sanitizeText(r,i),t&&(t=B.sanitizeText(t,i));const n=d.records.branches.get(d.records.currBranch),a=d.records.branches.get(r),l=n?d.records.commits.get(n):void 0,f=a?d.records.commits.get(a):void 0;if(l&&f&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(d.records.currBranch===r){const c=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(l===void 0||!l){const c=new Error(`Incorrect usage of "merge". Current branch (${d.records.currBranch})has no commits`);throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},c}if(!d.records.branches.has(r)){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},c}if(f===void 0||!f){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},c}if(l===f){const c=new Error('Incorrect usage of "merge". Both branches have same head');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(t&&d.records.commits.has(t)){const c=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom id");throw c.hash={text:`merge ${r} ${t} ${s} ${o?.join(" ")}`,token:`merge ${r} ${t} ${s} ${o?.join(" ")}`,expected:[`merge ${r} ${t}_UNIQUE ${s} ${o?.join(" ")}`]},c}const g=a||"",$={id:t||`${d.records.seq}-${Y()}`,message:`merged branch ${r} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,g],branch:d.records.currBranch,type:m.MERGE,customType:s,customId:!!t,tags:o??[]};d.records.head=$,d.records.commits.set($.id,$),d.records.branches.set(d.records.currBranch,$.id),w.debug(d.records.branches),w.debug("in mergeBranch")},"merge"),_e=h(function(e){let r=e.id,t=e.targetId,s=e.tags,o=e.parent;w.debug("Entering cherryPick:",r,t,s);const i=S();if(r=B.sanitizeText(r,i),t=B.sanitizeText(t,i),s=s?.map(l=>B.sanitizeText(l,i)),o=B.sanitizeText(o,i),!r||!d.records.commits.has(r)){const l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},l}const n=d.records.commits.get(r);if(n===void 0||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(o&&!(Array.isArray(n.parents)&&n.parents.includes(o)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const a=n.branch;if(n.type===m.MERGE&&!o)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!t||!d.records.commits.has(t)){if(a===d.records.currBranch){const $=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const l=d.records.branches.get(d.records.currBranch);if(l===void 0||!l){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const f=d.records.commits.get(l);if(f===void 0||!f){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const g={id:d.records.seq+"-"+Y(),message:`cherry-picked ${n?.message} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,n.id],branch:d.records.currBranch,type:m.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${n.id}${n.type===m.MERGE?`|parent:${o}`:""}`]};d.records.head=g,d.records.commits.set(g.id,g),d.records.branches.set(d.records.currBranch,g.id),w.debug(d.records.branches),w.debug("in cherryPick")}},"cherryPick"),ae=h(function(e){if(e=B.sanitizeText(e,S()),d.records.branches.has(e)){d.records.currBranch=e;const r=d.records.branches.get(d.records.currBranch);r===void 0||!r?d.records.head=null:d.records.head=d.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}},"checkout");function V(e,r,t){const s=e.indexOf(r);s===-1?e.push(t):e.splice(s,1,t)}h(V,"upsert");function Q(e){const r=e.reduce((o,i)=>o.seq>i.seq?o:i,e[0]);let t="";e.forEach(function(o){o===r?t+=" *":t+=" |"});const s=[t,r.id,r.seq];for(const o in d.records.branches)d.records.branches.get(o)===r.id&&s.push(o);if(w.debug(s.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const o=d.records.commits.get(r.parents[0]);V(e,r,o),r.parents[1]&&e.push(d.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const o=d.records.commits.get(r.parents[0]);V(e,r,o)}}e=te(e,o=>o.id),Q(e)}h(Q,"prettyPrintCommitHistory");var Ge=h(function(){w.debug(d.records.commits);const e=ne()[0];Q([e])},"prettyPrint"),He=h(function(){d.reset(),we()},"clear"),Se=h(function(){return[...d.records.branchConfig.values()].map((r,t)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${t}`)}).sort((r,t)=>(r.order??0)-(t.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),Ae=h(function(){return d.records.branches},"getBranches"),We=h(function(){return d.records.commits},"getCommits"),ne=h(function(){const e=[...d.records.commits.values()];return e.forEach(function(r){w.debug(r.id)}),e.sort((r,t)=>r.seq-t.seq),e},"getCommitsArray"),De=h(function(){return d.records.currBranch},"getCurrentBranch"),qe=h(function(){return d.records.direction},"getDirection"),Pe=h(function(){return d.records.head},"getHead"),se={commitType:m,getConfig:S,setDirection:Te,setOptions:Le,getOptions:Me,commit:Re,branch:Ie,merge:Oe,cherryPick:_e,checkout:ae,prettyPrint:Ge,clear:He,getBranchesAsObjArray:Se,getBranches:Ae,getCommits:We,getCommitsArray:ne,getCurrentBranch:De,getDirection:qe,getHead:Pe,setAccTitle:xe,getAccTitle:ye,getAccDescription:ue,setAccDescription:ge,setDiagramTitle:fe,getDiagramTitle:$e},Ne=h((e,r)=>{he(e,r),e.dir&&r.setDirection(e.dir);for(const t of e.statements)Fe(t,r)},"populate"),Fe=h((e,r)=>{const s={Commit:h(o=>r.commit(ze(o)),"Commit"),Branch:h(o=>r.branch(Ye(o)),"Branch"),Merge:h(o=>r.merge(je(o)),"Merge"),Checkout:h(o=>r.checkout(Ue(o)),"Checkout"),CherryPicking:h(o=>r.cherryPick(Ke(o)),"CherryPicking")}[e.$type];s?s(e):w.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),ze=h(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?m[e.type]:m.NORMAL,tags:e.tags??void 0}),"parseCommit"),Ye=h(e=>({name:e.name,order:e.order??0}),"parseBranch"),je=h(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?m[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ue=h(e=>e.branch,"parseCheckout"),Ke=h(e=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Ve={parse:h(async e=>{const r=await Ee("gitGraph",e);w.debug(r),Ne(r,se)},"parse")},O=10,_=40,L=4,R=2,G=8,j=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),X=12,Z=new Set(["redux-color","redux-dark-color"]),Xe=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),H=h((e,r,t=!1)=>t&&e>0?(e-1)%(r-1)+1:e%r,"calcColorIndex"),C=new Map,E=new Map,F=30,D=new Map,z=[],I=0,y="LR",Je=h(()=>{C.clear(),E.clear(),D.clear(),I=0,z=[],y="LR"},"clear"),oe=h(e=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(s=>{const o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),o.setAttribute("class","row"),o.textContent=s.trim(),r.appendChild(o)}),r},"drawText"),ce=h(e=>{let r,t,s;return y==="BT"?(t=h((o,i)=>o<=i,"comparisonFunc"),s=1/0):(t=h((o,i)=>o>=i,"comparisonFunc"),s=0),e.forEach(o=>{const i=y==="TB"||y=="BT"?E.get(o)?.y:E.get(o)?.x;i!==void 0&&t(i,s)&&(r=o,s=i)}),r},"findClosestParent"),Qe=h(e=>{let r="",t=1/0;return e.forEach(s=>{const o=E.get(s).y;o<=t&&(r=s,t=o)}),r||void 0},"findClosestParentBT"),Ze=h((e,r,t)=>{let s=t,o=t;const i=[];e.forEach(n=>{const a=r.get(n);if(!a)throw new Error(`Commit not found for key ${n}`);a.parents.length?(s=rr(a),o=Math.max(s,o)):i.push(a),tr(a,s)}),s=o,i.forEach(n=>{ar(n,s,t)}),e.forEach(n=>{const a=r.get(n);if(a?.parents.length){const l=Qe(a.parents);s=E.get(l).y-_,s<=o&&(o=s);const f=C.get(a.branch).pos,g=s-O;E.set(a.id,{x:f,y:g})}})},"setParallelBTPos"),er=h(e=>{const r=ce(e.parents.filter(s=>s!==null));if(!r)throw new Error(`Closest parent not found for commit ${e.id}`);const t=E.get(r)?.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return t},"findClosestParentPos"),rr=h(e=>er(e)+_,"calculateCommitPosition"),tr=h((e,r)=>{const t=C.get(e.branch);if(!t)throw new Error(`Branch not found for commit ${e.id}`);const s=t.pos,o=r+O;return E.set(e.id,{x:s,y:o}),{x:s,y:o}},"setCommitPosition"),ar=h((e,r,t)=>{const s=C.get(e.branch);if(!s)throw new Error(`Branch not found for commit ${e.id}`);const o=r+t,i=s.pos;E.set(e.id,{x:i,y:o})},"setRootPosition"),nr=h((e,r,t,s,o,i)=>{const{theme:n}=P(),a=j.has(n??""),l=Z.has(n??""),f=Xe.has(n??"");if(i===m.HIGHLIGHT)e.append("rect").attr("x",t.x-10+(a?3:0)).attr("y",t.y-10+(a?3:0)).attr("width",a?14:20).attr("height",a?14:20).attr("class",`commit ${r.id} commit-highlight${H(o,G,l)} ${s}-outer`),e.append("rect").attr("x",t.x-6+(a?2:0)).attr("y",t.y-6+(a?2:0)).attr("width",a?8:12).attr("height",a?8:12).attr("class",`commit ${r.id} commit${H(o,G,l)} ${s}-inner`);else if(i===m.CHERRY_PICK)e.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",a?7:10).attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x+3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x+3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x-3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`);else{const g=e.append("circle");if(g.attr("cx",t.x),g.attr("cy",t.y),g.attr("r",a?7:10),g.attr("class",`commit ${r.id} commit${H(o,G,l)}`),i===m.MERGE){const $=e.append("circle");$.attr("cx",t.x),$.attr("cy",t.y),$.attr("r",a?5:6),$.attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}if(i===m.REVERSE){const $=e.append("path"),c=a?4:5;$.attr("d",`M ${t.x-c},${t.y-c}L${t.x+c},${t.y+c}M${t.x-c},${t.y+c}L${t.x+c},${t.y-c}`).attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}}},"drawCommitBullet"),sr=h((e,r,t,s,o)=>{if(r.type!==m.CHERRY_PICK&&(r.customId&&r.type===m.MERGE||r.type!==m.MERGE)&&o.showCommitLabel){const i=e.append("g"),n=i.insert("rect").attr("class","commit-label-bkg"),a=i.append("text").attr("x",s).attr("y",t.y+25).attr("class","commit-label").text(r.id),l=a.node()?.getBBox();if(l&&(n.attr("x",t.posWithOffset-l.width/2-R).attr("y",t.y+13.5).attr("width",l.width+2*R).attr("height",l.height+2*R),y==="TB"||y==="BT"?(n.attr("x",t.x-(l.width+4*L+5)).attr("y",t.y-12),a.attr("x",t.x-(l.width+4*L)).attr("y",t.y+l.height-12)):a.attr("x",t.posWithOffset-l.width/2),o.rotateCommitLabel))if(y==="TB"||y==="BT")a.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),n.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const f=-7.5-(l.width+10)/25*9.5,g=10+l.width/25*8.5;i.attr("transform","translate("+f+", "+g+") rotate(-45, "+s+", "+t.y+")")}}},"drawCommitLabel"),or=h((e,r,t,s)=>{if(r.tags.length>0){let o=0,i=0,n=0;const a=[];for(const l of r.tags.reverse()){const f=e.insert("polygon"),g=e.append("circle"),$=e.append("text").attr("y",t.y-16-o).attr("class","tag-label").text(l),c=$.node()?.getBBox();if(!c)throw new Error("Tag bbox not found");i=Math.max(i,c.width),n=Math.max(n,c.height),$.attr("x",t.posWithOffset-c.width/2),a.push({tag:$,hole:g,rect:f,yOffset:o}),o+=20}for(const{tag:l,hole:f,rect:g,yOffset:$}of a){const c=n/2,x=t.y-19.2-$;if(g.attr("class","tag-label-bkg").attr("points",`
1
+ import{I as le}from"./CP9jggxp.js";import{p as he}from"./oTjaecL9.js";import{Y as $e,b0 as fe,aZ as ge,U as ue,V as ye,a_ as xe,b as h,W as J,ay as w,aW as me,X as P,bh as pe,b4 as be,r as we,z as B,q as ke,O as ve,aM as Ce}from"./CBZTF7Qa.js";import{p as Ee}from"./CwHPdS9l.js";var m={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Be=ve.gitGraph,S=h(()=>ke({...Be,...J().gitGraph}),"getConfig"),d=new le(()=>{const e=S(),r=e.mainBranchName,t=e.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:t}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function Y(){return Ce({length:7})}h(Y,"getID");function te(e,r){const t=Object.create(null);return e.reduce((s,o)=>{const i=r(o);return t[i]||(t[i]=!0,s.push(o)),s},[])}h(te,"uniqBy");var Te=h(function(e){d.records.direction=e},"setDirection"),Le=h(function(e){w.debug("options str",e),e=e?.trim(),e=e||"{}";try{d.records.options=JSON.parse(e)}catch(r){w.error("error while parsing gitGraph options",r.message)}},"setOptions"),Me=h(function(){return d.records.options},"getOptions"),Re=h(function(e){let r=e.msg,t=e.id;const s=e.type;let o=e.tags;w.info("commit",r,t,s,o),w.debug("Entering commit:",r,t,s,o);const i=S();t=B.sanitizeText(t,i),r=B.sanitizeText(r,i),o=o?.map(a=>B.sanitizeText(a,i));const n={id:t||d.records.seq+"-"+Y(),message:r,seq:d.records.seq++,type:s??m.NORMAL,tags:o??[],parents:d.records.head==null?[]:[d.records.head.id],branch:d.records.currBranch};d.records.head=n,w.info("main branch",i.mainBranchName),d.records.commits.has(n.id)&&w.warn(`Commit ID ${n.id} already exists`),d.records.commits.set(n.id,n),d.records.branches.set(d.records.currBranch,n.id),w.debug("in pushCommit "+n.id)},"commit"),Ie=h(function(e){let r=e.name;const t=e.order;if(r=B.sanitizeText(r,S()),d.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);d.records.branches.set(r,d.records.head!=null?d.records.head.id:null),d.records.branchConfig.set(r,{name:r,order:t}),ae(r),w.debug("in createBranch")},"branch"),Oe=h(e=>{let r=e.branch,t=e.id;const s=e.type,o=e.tags,i=S();r=B.sanitizeText(r,i),t&&(t=B.sanitizeText(t,i));const n=d.records.branches.get(d.records.currBranch),a=d.records.branches.get(r),l=n?d.records.commits.get(n):void 0,f=a?d.records.commits.get(a):void 0;if(l&&f&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(d.records.currBranch===r){const c=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(l===void 0||!l){const c=new Error(`Incorrect usage of "merge". Current branch (${d.records.currBranch})has no commits`);throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},c}if(!d.records.branches.has(r)){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},c}if(f===void 0||!f){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},c}if(l===f){const c=new Error('Incorrect usage of "merge". Both branches have same head');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(t&&d.records.commits.has(t)){const c=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom id");throw c.hash={text:`merge ${r} ${t} ${s} ${o?.join(" ")}`,token:`merge ${r} ${t} ${s} ${o?.join(" ")}`,expected:[`merge ${r} ${t}_UNIQUE ${s} ${o?.join(" ")}`]},c}const g=a||"",$={id:t||`${d.records.seq}-${Y()}`,message:`merged branch ${r} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,g],branch:d.records.currBranch,type:m.MERGE,customType:s,customId:!!t,tags:o??[]};d.records.head=$,d.records.commits.set($.id,$),d.records.branches.set(d.records.currBranch,$.id),w.debug(d.records.branches),w.debug("in mergeBranch")},"merge"),_e=h(function(e){let r=e.id,t=e.targetId,s=e.tags,o=e.parent;w.debug("Entering cherryPick:",r,t,s);const i=S();if(r=B.sanitizeText(r,i),t=B.sanitizeText(t,i),s=s?.map(l=>B.sanitizeText(l,i)),o=B.sanitizeText(o,i),!r||!d.records.commits.has(r)){const l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},l}const n=d.records.commits.get(r);if(n===void 0||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(o&&!(Array.isArray(n.parents)&&n.parents.includes(o)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const a=n.branch;if(n.type===m.MERGE&&!o)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!t||!d.records.commits.has(t)){if(a===d.records.currBranch){const $=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const l=d.records.branches.get(d.records.currBranch);if(l===void 0||!l){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const f=d.records.commits.get(l);if(f===void 0||!f){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const g={id:d.records.seq+"-"+Y(),message:`cherry-picked ${n?.message} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,n.id],branch:d.records.currBranch,type:m.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${n.id}${n.type===m.MERGE?`|parent:${o}`:""}`]};d.records.head=g,d.records.commits.set(g.id,g),d.records.branches.set(d.records.currBranch,g.id),w.debug(d.records.branches),w.debug("in cherryPick")}},"cherryPick"),ae=h(function(e){if(e=B.sanitizeText(e,S()),d.records.branches.has(e)){d.records.currBranch=e;const r=d.records.branches.get(d.records.currBranch);r===void 0||!r?d.records.head=null:d.records.head=d.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}},"checkout");function V(e,r,t){const s=e.indexOf(r);s===-1?e.push(t):e.splice(s,1,t)}h(V,"upsert");function Q(e){const r=e.reduce((o,i)=>o.seq>i.seq?o:i,e[0]);let t="";e.forEach(function(o){o===r?t+=" *":t+=" |"});const s=[t,r.id,r.seq];for(const o in d.records.branches)d.records.branches.get(o)===r.id&&s.push(o);if(w.debug(s.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const o=d.records.commits.get(r.parents[0]);V(e,r,o),r.parents[1]&&e.push(d.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const o=d.records.commits.get(r.parents[0]);V(e,r,o)}}e=te(e,o=>o.id),Q(e)}h(Q,"prettyPrintCommitHistory");var Ge=h(function(){w.debug(d.records.commits);const e=ne()[0];Q([e])},"prettyPrint"),He=h(function(){d.reset(),we()},"clear"),Se=h(function(){return[...d.records.branchConfig.values()].map((r,t)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${t}`)}).sort((r,t)=>(r.order??0)-(t.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),Ae=h(function(){return d.records.branches},"getBranches"),We=h(function(){return d.records.commits},"getCommits"),ne=h(function(){const e=[...d.records.commits.values()];return e.forEach(function(r){w.debug(r.id)}),e.sort((r,t)=>r.seq-t.seq),e},"getCommitsArray"),De=h(function(){return d.records.currBranch},"getCurrentBranch"),qe=h(function(){return d.records.direction},"getDirection"),Pe=h(function(){return d.records.head},"getHead"),se={commitType:m,getConfig:S,setDirection:Te,setOptions:Le,getOptions:Me,commit:Re,branch:Ie,merge:Oe,cherryPick:_e,checkout:ae,prettyPrint:Ge,clear:He,getBranchesAsObjArray:Se,getBranches:Ae,getCommits:We,getCommitsArray:ne,getCurrentBranch:De,getDirection:qe,getHead:Pe,setAccTitle:xe,getAccTitle:ye,getAccDescription:ue,setAccDescription:ge,setDiagramTitle:fe,getDiagramTitle:$e},Ne=h((e,r)=>{he(e,r),e.dir&&r.setDirection(e.dir);for(const t of e.statements)Fe(t,r)},"populate"),Fe=h((e,r)=>{const s={Commit:h(o=>r.commit(ze(o)),"Commit"),Branch:h(o=>r.branch(Ye(o)),"Branch"),Merge:h(o=>r.merge(je(o)),"Merge"),Checkout:h(o=>r.checkout(Ue(o)),"Checkout"),CherryPicking:h(o=>r.cherryPick(Ke(o)),"CherryPicking")}[e.$type];s?s(e):w.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),ze=h(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?m[e.type]:m.NORMAL,tags:e.tags??void 0}),"parseCommit"),Ye=h(e=>({name:e.name,order:e.order??0}),"parseBranch"),je=h(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?m[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ue=h(e=>e.branch,"parseCheckout"),Ke=h(e=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Ve={parse:h(async e=>{const r=await Ee("gitGraph",e);w.debug(r),Ne(r,se)},"parse")},O=10,_=40,L=4,R=2,G=8,j=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),X=12,Z=new Set(["redux-color","redux-dark-color"]),Xe=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),H=h((e,r,t=!1)=>t&&e>0?(e-1)%(r-1)+1:e%r,"calcColorIndex"),C=new Map,E=new Map,F=30,D=new Map,z=[],I=0,y="LR",Je=h(()=>{C.clear(),E.clear(),D.clear(),I=0,z=[],y="LR"},"clear"),oe=h(e=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(s=>{const o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),o.setAttribute("class","row"),o.textContent=s.trim(),r.appendChild(o)}),r},"drawText"),ce=h(e=>{let r,t,s;return y==="BT"?(t=h((o,i)=>o<=i,"comparisonFunc"),s=1/0):(t=h((o,i)=>o>=i,"comparisonFunc"),s=0),e.forEach(o=>{const i=y==="TB"||y=="BT"?E.get(o)?.y:E.get(o)?.x;i!==void 0&&t(i,s)&&(r=o,s=i)}),r},"findClosestParent"),Qe=h(e=>{let r="",t=1/0;return e.forEach(s=>{const o=E.get(s).y;o<=t&&(r=s,t=o)}),r||void 0},"findClosestParentBT"),Ze=h((e,r,t)=>{let s=t,o=t;const i=[];e.forEach(n=>{const a=r.get(n);if(!a)throw new Error(`Commit not found for key ${n}`);a.parents.length?(s=rr(a),o=Math.max(s,o)):i.push(a),tr(a,s)}),s=o,i.forEach(n=>{ar(n,s,t)}),e.forEach(n=>{const a=r.get(n);if(a?.parents.length){const l=Qe(a.parents);s=E.get(l).y-_,s<=o&&(o=s);const f=C.get(a.branch).pos,g=s-O;E.set(a.id,{x:f,y:g})}})},"setParallelBTPos"),er=h(e=>{const r=ce(e.parents.filter(s=>s!==null));if(!r)throw new Error(`Closest parent not found for commit ${e.id}`);const t=E.get(r)?.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return t},"findClosestParentPos"),rr=h(e=>er(e)+_,"calculateCommitPosition"),tr=h((e,r)=>{const t=C.get(e.branch);if(!t)throw new Error(`Branch not found for commit ${e.id}`);const s=t.pos,o=r+O;return E.set(e.id,{x:s,y:o}),{x:s,y:o}},"setCommitPosition"),ar=h((e,r,t)=>{const s=C.get(e.branch);if(!s)throw new Error(`Branch not found for commit ${e.id}`);const o=r+t,i=s.pos;E.set(e.id,{x:i,y:o})},"setRootPosition"),nr=h((e,r,t,s,o,i)=>{const{theme:n}=P(),a=j.has(n??""),l=Z.has(n??""),f=Xe.has(n??"");if(i===m.HIGHLIGHT)e.append("rect").attr("x",t.x-10+(a?3:0)).attr("y",t.y-10+(a?3:0)).attr("width",a?14:20).attr("height",a?14:20).attr("class",`commit ${r.id} commit-highlight${H(o,G,l)} ${s}-outer`),e.append("rect").attr("x",t.x-6+(a?2:0)).attr("y",t.y-6+(a?2:0)).attr("width",a?8:12).attr("height",a?8:12).attr("class",`commit ${r.id} commit${H(o,G,l)} ${s}-inner`);else if(i===m.CHERRY_PICK)e.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",a?7:10).attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x+3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x+3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x-3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`);else{const g=e.append("circle");if(g.attr("cx",t.x),g.attr("cy",t.y),g.attr("r",a?7:10),g.attr("class",`commit ${r.id} commit${H(o,G,l)}`),i===m.MERGE){const $=e.append("circle");$.attr("cx",t.x),$.attr("cy",t.y),$.attr("r",a?5:6),$.attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}if(i===m.REVERSE){const $=e.append("path"),c=a?4:5;$.attr("d",`M ${t.x-c},${t.y-c}L${t.x+c},${t.y+c}M${t.x-c},${t.y+c}L${t.x+c},${t.y-c}`).attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}}},"drawCommitBullet"),sr=h((e,r,t,s,o)=>{if(r.type!==m.CHERRY_PICK&&(r.customId&&r.type===m.MERGE||r.type!==m.MERGE)&&o.showCommitLabel){const i=e.append("g"),n=i.insert("rect").attr("class","commit-label-bkg"),a=i.append("text").attr("x",s).attr("y",t.y+25).attr("class","commit-label").text(r.id),l=a.node()?.getBBox();if(l&&(n.attr("x",t.posWithOffset-l.width/2-R).attr("y",t.y+13.5).attr("width",l.width+2*R).attr("height",l.height+2*R),y==="TB"||y==="BT"?(n.attr("x",t.x-(l.width+4*L+5)).attr("y",t.y-12),a.attr("x",t.x-(l.width+4*L)).attr("y",t.y+l.height-12)):a.attr("x",t.posWithOffset-l.width/2),o.rotateCommitLabel))if(y==="TB"||y==="BT")a.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),n.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const f=-7.5-(l.width+10)/25*9.5,g=10+l.width/25*8.5;i.attr("transform","translate("+f+", "+g+") rotate(-45, "+s+", "+t.y+")")}}},"drawCommitLabel"),or=h((e,r,t,s)=>{if(r.tags.length>0){let o=0,i=0,n=0;const a=[];for(const l of r.tags.reverse()){const f=e.insert("polygon"),g=e.append("circle"),$=e.append("text").attr("y",t.y-16-o).attr("class","tag-label").text(l),c=$.node()?.getBBox();if(!c)throw new Error("Tag bbox not found");i=Math.max(i,c.width),n=Math.max(n,c.height),$.attr("x",t.posWithOffset-c.width/2),a.push({tag:$,hole:g,rect:f,yOffset:o}),o+=20}for(const{tag:l,hole:f,rect:g,yOffset:$}of a){const c=n/2,x=t.y-19.2-$;if(g.attr("class","tag-label-bkg").attr("points",`
2
2
  ${s-i/2-L/2},${x+R}
3
3
  ${s-i/2-L/2},${x-R}
4
4
  ${t.posWithOffset-i/2-L},${x-c-R}
@@ -1,4 +1,4 @@
1
- import{s as xe}from"./C7OV0KqB.js";import{p as be}from"./BswbJQ0U.js";import{b as C,a6 as Ce,W as ae,q as ee,aX as we,B as Te,ay as te,b8 as B,aW as Z,a_ as Le,V as $e,b0 as Ae,Y as Fe,U as _e,aZ as Ne,O as Me,ao as ke,r as Ve}from"./Cxz7a3ln.js";import{p as ze}from"./CwHPdS9l.js";import{f as O,o as Q}from"./DSTc-o8X.js";function De(t){var a=0,l=t.children,n=l&&l.length;if(!n)a=1;else for(;--n>=0;)a+=l[n].value;t.value=a}function Pe(){return this.eachAfter(De)}function Be(t,a){let l=-1;for(const n of this)t.call(a,n,++l,this);return this}function We(t,a){for(var l=this,n=[l],s,r,h=-1;l=n.pop();)if(t.call(a,l,++h,this),s=l.children)for(r=s.length-1;r>=0;--r)n.push(s[r]);return this}function Ee(t,a){for(var l=this,n=[l],s=[],r,h,d,f=-1;l=n.pop();)if(s.push(l),r=l.children)for(h=0,d=r.length;h<d;++h)n.push(r[h]);for(;l=s.pop();)t.call(a,l,++f,this);return this}function Re(t,a){let l=-1;for(const n of this)if(t.call(a,n,++l,this))return n}function He(t){return this.eachAfter(function(a){for(var l=+t(a.data)||0,n=a.children,s=n&&n.length;--s>=0;)l+=n[s].value;a.value=l})}function Ie(t){return this.eachBefore(function(a){a.children&&a.children.sort(t)})}function Oe(t){for(var a=this,l=qe(a,t),n=[a];a!==l;)a=a.parent,n.push(a);for(var s=n.length;t!==l;)n.splice(s,0,t),t=t.parent;return n}function qe(t,a){if(t===a)return t;var l=t.ancestors(),n=a.ancestors(),s=null;for(t=l.pop(),a=n.pop();t===a;)s=t,t=l.pop(),a=n.pop();return s}function Ge(){for(var t=this,a=[t];t=t.parent;)a.push(t);return a}function Xe(){return Array.from(this)}function Ye(){var t=[];return this.eachBefore(function(a){a.children||t.push(a)}),t}function je(){var t=this,a=[];return t.each(function(l){l!==t&&a.push({source:l.parent,target:l})}),a}function*Ue(){var t=this,a,l=[t],n,s,r;do for(a=l.reverse(),l=[];t=a.pop();)if(yield t,n=t.children)for(s=0,r=n.length;s<r;++s)l.push(n[s]);while(l.length)}function ne(t,a){t instanceof Map?(t=[void 0,t],a===void 0&&(a=Ke)):a===void 0&&(a=Je);for(var l=new Y(t),n,s=[l],r,h,d,f;n=s.pop();)if((h=a(n.data))&&(f=(h=Array.from(h)).length))for(n.children=h,d=f-1;d>=0;--d)s.push(r=h[d]=new Y(h[d])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(et)}function Ze(){return ne(this).eachBefore(Qe)}function Je(t){return t.children}function Ke(t){return Array.isArray(t)?t[1]:null}function Qe(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function et(t){var a=0;do t.height=a;while((t=t.parent)&&t.height<++a)}function Y(t){this.data=t,this.depth=this.height=0,this.parent=null}Y.prototype=ne.prototype={constructor:Y,count:Pe,each:Be,eachAfter:Ee,eachBefore:We,find:Re,sum:He,sort:Ie,path:Oe,ancestors:Ge,descendants:Xe,leaves:Ye,links:je,copy:Ze,[Symbol.iterator]:Ue};function tt(t){if(typeof t!="function")throw new Error;return t}function q(){return 0}function G(t){return function(){return t}}function at(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function oe(t,a,l,n,s){for(var r=t.children,h,d=-1,f=r.length,o=t.value&&(n-a)/t.value;++d<f;)h=r[d],h.y0=l,h.y1=s,h.x0=a,h.x1=a+=h.value*o}Object.create(Y.prototype);function ce(t,a,l,n,s){for(var r=t.children,h,d=-1,f=r.length,o=t.value&&(s-l)/t.value;++d<f;)h=r[d],h.x0=a,h.x1=n,h.y0=l,h.y1=l+=h.value*o}var he=(1+Math.sqrt(5))/2;function de(t,a,l,n,s,r){for(var h=[],d=a.children,f,o,u=0,S=0,i=d.length,v,x,g=a.value,p,b,_,$,z,R,N;u<i;){v=s-l,x=r-n;do p=d[S++].value;while(!p&&S<i);for(b=_=p,R=Math.max(x/v,v/x)/(g*t),N=p*p*R,z=Math.max(_/N,N/b);S<i;++S){if(p+=o=d[S].value,o<b&&(b=o),o>_&&(_=o),N=p*p*R,$=Math.max(_/N,N/b),$>z){p-=o;break}z=$}h.push(f={value:p,dice:v<x,children:d.slice(u,S)}),f.dice?oe(f,l,n,s,g?n+=x*p/g:r):ce(f,l,n,g?l+=v*p/g:s,r),g-=p,u=S}return h}var nt=(function t(a){function l(n,s,r,h,d){de(a,n,s,r,h,d)}return l.ratio=function(n){return t((n=+n)>1?n:1)},l})(he);function lt(){var t=nt,a=!1,l=1,n=1,s=[0],r=q,h=q,d=q,f=q,o=q;function u(i){return i.x0=i.y0=0,i.x1=l,i.y1=n,i.eachBefore(S),s=[0],a&&i.eachBefore(at),i}function S(i){var v=s[i.depth],x=i.x0+v,g=i.y0+v,p=i.x1-v,b=i.y1-v;p<x&&(x=p=(x+p)/2),b<g&&(g=b=(g+b)/2),i.x0=x,i.y0=g,i.x1=p,i.y1=b,i.children&&(v=s[i.depth+1]=r(i)/2,x+=o(i)-v,g+=h(i)-v,p-=d(i)-v,b-=f(i)-v,p<x&&(x=p=(x+p)/2),b<g&&(g=b=(g+b)/2),t(i,x,g,p,b))}return u.round=function(i){return arguments.length?(a=!!i,u):a},u.size=function(i){return arguments.length?(l=+i[0],n=+i[1],u):[l,n]},u.tile=function(i){return arguments.length?(t=tt(i),u):t},u.padding=function(i){return arguments.length?u.paddingInner(i).paddingOuter(i):u.paddingInner()},u.paddingInner=function(i){return arguments.length?(r=typeof i=="function"?i:G(+i),u):r},u.paddingOuter=function(i){return arguments.length?u.paddingTop(i).paddingRight(i).paddingBottom(i).paddingLeft(i):u.paddingTop()},u.paddingTop=function(i){return arguments.length?(h=typeof i=="function"?i:G(+i),u):h},u.paddingRight=function(i){return arguments.length?(d=typeof i=="function"?i:G(+i),u):d},u.paddingBottom=function(i){return arguments.length?(f=typeof i=="function"?i:G(+i),u):f},u.paddingLeft=function(i){return arguments.length?(o=typeof i=="function"?i:G(+i),u):o},u}(function t(a){function l(n,s,r,h,d){if((f=n._squarify)&&f.ratio===a)for(var f,o,u,S,i=-1,v,x=f.length,g=n.value;++i<x;){for(o=f[i],u=o.children,S=o.value=0,v=u.length;S<v;++S)o.value+=u[S].value;o.dice?oe(o,s,r,h,g?r+=(d-r)*o.value/g:d):ce(o,s,r,g?s+=(h-s)*o.value/g:h,d),g-=o.value}else n._squarify=f=de(a,n,s,r,h,d),f.ratio=a}return l.ratio=function(n){return t((n=+n)>1?n:1)},l})(he);var E,ue=(E=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=Le,this.getAccTitle=$e,this.setDiagramTitle=Ae,this.getDiagramTitle=Fe,this.getAccDescription=_e,this.setAccDescription=Ne}getNodes(){return this.nodes}getConfig(){const a=Me,l=ae();return ee({...a.treemap,...l.treemap??{}})}addNode(a,l){this.nodes.push(a),this.levels.set(a,l),l===0&&(this.outerNodes.push(a),this.root??=a)}getRoot(){return{name:"",children:this.outerNodes}}addClass(a,l){const n=this.classes.get(a)??{id:a,styles:[],textStyles:[]},s=l.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");s&&s.forEach(r=>{ke(r)&&(n?.textStyles?n.textStyles.push(r):n.textStyles=[r]),n?.styles?n.styles.push(r):n.styles=[r]}),this.classes.set(a,n)}getClasses(){return this.classes}getStylesForClass(a){return this.classes.get(a)?.styles??[]}clear(){Ve(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},C(E,"TreeMapDB"),E);function pe(t){if(!t.length)return[];const a=[],l=[];return t.forEach(n=>{const s={name:n.name,children:n.type==="Leaf"?void 0:[]};for(s.classSelector=n?.classSelector,n?.cssCompiledStyles&&(s.cssCompiledStyles=n.cssCompiledStyles),n.type==="Leaf"&&n.value!==void 0&&(s.value=n.value);l.length>0&&l[l.length-1].level>=n.level;)l.pop();if(l.length===0)a.push(s);else{const r=l[l.length-1].node;r.children?r.children.push(s):r.children=[s]}n.type!=="Leaf"&&l.push({node:s,level:n.level})}),a}C(pe,"buildHierarchy");var st=C((t,a)=>{be(t,a);const l=[];for(const r of t.TreemapRows??[])r.$type==="ClassDefStatement"&&a.addClass(r.className??"",r.styleText??"");for(const r of t.TreemapRows??[]){const h=r.item;if(!h)continue;const d=r.indent?parseInt(r.indent):0,f=rt(h),o=h.classSelector?a.getStylesForClass(h.classSelector):[],u=o.length>0?o:void 0,S={level:d,name:f,type:h.$type,value:h.value,classSelector:h.classSelector,cssCompiledStyles:u};l.push(S)}const n=pe(l),s=C((r,h)=>{for(const d of r)a.addNode(d,h),d.children&&d.children.length>0&&s(d.children,h+1)},"addNodesRecursively");s(n,0)},"populate"),rt=C(t=>t.name?String(t.name):"","getItemName"),fe={parser:{yy:void 0},parse:C(async t=>{try{const l=await ze("treemap",t);te.debug("Treemap AST:",l);const n=fe.parser?.yy;if(!(n instanceof ue))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");st(l,n)}catch(a){throw te.error("Error parsing treemap:",a),a}},"parse")},it=10,W=10,X=25,ot=C((t,a,l,n)=>{const s=n.db,r=s.getConfig(),h=r.padding??it,d=s.getDiagramTitle(),f=s.getRoot(),{themeVariables:o}=ae();if(!f)return;const u=d?30:0,S=we(a),i=r.nodeWidth?r.nodeWidth*W:960,v=r.nodeHeight?r.nodeHeight*W:500,x=i,g=v+u;S.attr("viewBox",`0 0 ${x} ${g}`),Te(S,g,x,r.useMaxWidth);let p;try{const e=r.valueFormat||",";if(e==="$0,0")p=C(c=>"$"+O(",")(c),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const c=/\.\d+/.exec(e),m=c?c[0]:"";p=C(w=>"$"+O(","+m)(w),"valueFormat")}else if(e.startsWith("$")){const c=e.substring(1);p=C(m=>"$"+O(c||"")(m),"valueFormat")}else p=O(e)}catch(e){te.error("Error creating format function:",e),p=O(",")}const b=Q().range(["transparent",o.cScale0,o.cScale1,o.cScale2,o.cScale3,o.cScale4,o.cScale5,o.cScale6,o.cScale7,o.cScale8,o.cScale9,o.cScale10,o.cScale11]),_=Q().range(["transparent",o.cScalePeer0,o.cScalePeer1,o.cScalePeer2,o.cScalePeer3,o.cScalePeer4,o.cScalePeer5,o.cScalePeer6,o.cScalePeer7,o.cScalePeer8,o.cScalePeer9,o.cScalePeer10,o.cScalePeer11]),$=Q().range([o.cScaleLabel0,o.cScaleLabel1,o.cScaleLabel2,o.cScaleLabel3,o.cScaleLabel4,o.cScaleLabel5,o.cScaleLabel6,o.cScaleLabel7,o.cScaleLabel8,o.cScaleLabel9,o.cScaleLabel10,o.cScaleLabel11]);d&&S.append("text").attr("x",x/2).attr("y",u/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(d);const z=S.append("g").attr("transform",`translate(0, ${u})`).attr("class","treemapContainer"),R=ne(f).sum(e=>e.value??0).sort((e,c)=>(c.value??0)-(e.value??0)),le=lt().size([i,v]).paddingTop(e=>e.children&&e.children.length>0?X+W:0).paddingInner(h).paddingLeft(e=>e.children&&e.children.length>0?W:0).paddingRight(e=>e.children&&e.children.length>0?W:0).paddingBottom(e=>e.children&&e.children.length>0?W:0).round(!0)(R),me=le.descendants().filter(e=>e.children&&e.children.length>0),H=z.selectAll(".treemapSection").data(me).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);H.append("rect").attr("width",e=>e.x1-e.x0).attr("height",X).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),H.append("clipPath").attr("id",(e,c)=>`clip-section-${a}-${c}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",X),H.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,c)=>`treemapSection section${c}`).attr("fill",e=>b(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>_(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const c=B({cssCompiledStyles:e.data.cssCompiledStyles});return c.nodeStyles+";"+c.borderStyles.join(";")}),H.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",X/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,c)=>`url(#clip-section-${a}-${c})`).attr("style",e=>{if(e.depth===0)return"display: none;";const c="dominant-baseline: middle; font-size: 12px; fill:"+$(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const c=Z(this),m=e.data.name;c.text(m);const w=e.x1-e.x0,L=6;let T;r.showValues!==!1&&e.value?T=w-10-30-10-L:T=w-L-6;const y=Math.max(15,T),M=c.node();if(M.getComputedTextLength()>y){let V=m;for(;V.length>0;){if(V=m.substring(0,V.length-1),V.length===0){c.text("..."),M.getComputedTextLength()>y&&c.text("");break}if(c.text(V+"..."),M.getComputedTextLength()<=y)break}}}),r.showValues!==!1&&H.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",X/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?p(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const c="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+$(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")});const se=le.leaves(),A=se.length>20,ge=A?16:38,j=A?14:28,D=A?4:8,I=A?4:6,J=A?2:4,re=A?8:10,K=A?1:2,U=z.selectAll(".treemapLeafGroup").data(se).enter().append("g").attr("class",(e,c)=>`treemapNode treemapLeafGroup leaf${c}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);U.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?b(e.parent.data.name):b(e.data.name)).attr("style",e=>B({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?b(e.parent.data.name):b(e.data.name)).attr("stroke-width",3),U.append("clipPath").attr("id",(e,c)=>`clip-${a}-${c}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),U.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const c=`text-anchor: middle; dominant-baseline: middle; font-size: ${ge}px;fill:`+$(e.data.name)+";",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,c)=>`url(#clip-${a}-${c})`).text(e=>e.data.name).each(function(e){const c=Z(this),m=e.x1-e.x0,w=e.y1-e.y0,L=c.node(),T=m-2*J,P=w-2*J;if(T<re||P<re){c.style("display","none");return}let y=parseInt(c.style("font-size"),10);const M=.6;for(;L.getComputedTextLength()>T&&y>D;)y--,c.style("font-size",`${y}px`);let F=Math.max(I,Math.min(j,Math.round(y*M))),k=y+K+F;for(;k>P&&y>D&&(y--,F=Math.max(I,Math.min(j,Math.round(y*M))),!(F<I&&y===D));)c.style("font-size",`${y}px`),k=y+K+F;c.style("font-size",`${y}px`),A?(y<D||P<D)&&c.style("display","none"):(L.getComputedTextLength()>T||y<D||P<y)&&c.style("display","none")}),r.showValues!==!1&&U.append("text").attr("class","treemapValue").attr("x",c=>(c.x1-c.x0)/2).attr("y",function(c){return(c.y1-c.y0)/2}).attr("style",c=>{const m=`text-anchor: middle; dominant-baseline: hanging; font-size: ${j}px;fill:`+$(c.data.name)+";",w=B({cssCompiledStyles:c.data.cssCompiledStyles});return m+w.labelStyles.replace("color:","fill:")}).attr("clip-path",(c,m)=>`url(#clip-${a}-${m})`).text(c=>c.value?p(c.value):"").each(function(c){const m=Z(this),w=this.parentNode;if(!w){m.style("display","none");return}const L=Z(w).select(".treemapLabel");if(L.empty()||L.style("display")==="none"){m.style("display","none");return}const T=parseFloat(L.style("font-size")),y=Math.max(I,Math.min(j,Math.round(T*.6)));m.style("font-size",`${y}px`);const F=(c.y1-c.y0)/2+T/2+K;m.attr("y",F);const k=c.x1-c.x0,ie=c.y1-c.y0-4,ve=k-2*J;m.node().getComputedTextLength()>ve||F+y>ie||y<I?m.style("display","none"):m.style("display",null)});const ye=r.diagramPadding??8;xe(S,ye,"flowchart",r?.useMaxWidth||!1)},"draw"),ct=C(function(t,a){return a.db.getClasses()},"getClasses"),ht={draw:ot,getClasses:ct},dt={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},ut=C(({treemap:t}={})=>{const a=Ce(),l=ae(),n=ee(a,l.themeVariables),s=ee(dt,t),r=s.titleColor??n.titleColor,h=s.labelColor??n.textColor,d=s.valueColor??n.textColor;return`
1
+ import{s as xe}from"./BGaOyp5o.js";import{p as be}from"./oTjaecL9.js";import{b as C,a6 as Ce,W as ae,q as ee,aX as we,B as Te,ay as te,b8 as B,aW as Z,a_ as Le,V as $e,b0 as Ae,Y as Fe,U as _e,aZ as Ne,O as Me,ao as ke,r as Ve}from"./CBZTF7Qa.js";import{p as ze}from"./CwHPdS9l.js";import{f as O,o as Q}from"./D0sQr-H_.js";function De(t){var a=0,l=t.children,n=l&&l.length;if(!n)a=1;else for(;--n>=0;)a+=l[n].value;t.value=a}function Pe(){return this.eachAfter(De)}function Be(t,a){let l=-1;for(const n of this)t.call(a,n,++l,this);return this}function We(t,a){for(var l=this,n=[l],s,r,h=-1;l=n.pop();)if(t.call(a,l,++h,this),s=l.children)for(r=s.length-1;r>=0;--r)n.push(s[r]);return this}function Ee(t,a){for(var l=this,n=[l],s=[],r,h,d,f=-1;l=n.pop();)if(s.push(l),r=l.children)for(h=0,d=r.length;h<d;++h)n.push(r[h]);for(;l=s.pop();)t.call(a,l,++f,this);return this}function Re(t,a){let l=-1;for(const n of this)if(t.call(a,n,++l,this))return n}function He(t){return this.eachAfter(function(a){for(var l=+t(a.data)||0,n=a.children,s=n&&n.length;--s>=0;)l+=n[s].value;a.value=l})}function Ie(t){return this.eachBefore(function(a){a.children&&a.children.sort(t)})}function Oe(t){for(var a=this,l=qe(a,t),n=[a];a!==l;)a=a.parent,n.push(a);for(var s=n.length;t!==l;)n.splice(s,0,t),t=t.parent;return n}function qe(t,a){if(t===a)return t;var l=t.ancestors(),n=a.ancestors(),s=null;for(t=l.pop(),a=n.pop();t===a;)s=t,t=l.pop(),a=n.pop();return s}function Ge(){for(var t=this,a=[t];t=t.parent;)a.push(t);return a}function Xe(){return Array.from(this)}function Ye(){var t=[];return this.eachBefore(function(a){a.children||t.push(a)}),t}function je(){var t=this,a=[];return t.each(function(l){l!==t&&a.push({source:l.parent,target:l})}),a}function*Ue(){var t=this,a,l=[t],n,s,r;do for(a=l.reverse(),l=[];t=a.pop();)if(yield t,n=t.children)for(s=0,r=n.length;s<r;++s)l.push(n[s]);while(l.length)}function ne(t,a){t instanceof Map?(t=[void 0,t],a===void 0&&(a=Ke)):a===void 0&&(a=Je);for(var l=new Y(t),n,s=[l],r,h,d,f;n=s.pop();)if((h=a(n.data))&&(f=(h=Array.from(h)).length))for(n.children=h,d=f-1;d>=0;--d)s.push(r=h[d]=new Y(h[d])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(et)}function Ze(){return ne(this).eachBefore(Qe)}function Je(t){return t.children}function Ke(t){return Array.isArray(t)?t[1]:null}function Qe(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function et(t){var a=0;do t.height=a;while((t=t.parent)&&t.height<++a)}function Y(t){this.data=t,this.depth=this.height=0,this.parent=null}Y.prototype=ne.prototype={constructor:Y,count:Pe,each:Be,eachAfter:Ee,eachBefore:We,find:Re,sum:He,sort:Ie,path:Oe,ancestors:Ge,descendants:Xe,leaves:Ye,links:je,copy:Ze,[Symbol.iterator]:Ue};function tt(t){if(typeof t!="function")throw new Error;return t}function q(){return 0}function G(t){return function(){return t}}function at(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function oe(t,a,l,n,s){for(var r=t.children,h,d=-1,f=r.length,o=t.value&&(n-a)/t.value;++d<f;)h=r[d],h.y0=l,h.y1=s,h.x0=a,h.x1=a+=h.value*o}Object.create(Y.prototype);function ce(t,a,l,n,s){for(var r=t.children,h,d=-1,f=r.length,o=t.value&&(s-l)/t.value;++d<f;)h=r[d],h.x0=a,h.x1=n,h.y0=l,h.y1=l+=h.value*o}var he=(1+Math.sqrt(5))/2;function de(t,a,l,n,s,r){for(var h=[],d=a.children,f,o,u=0,S=0,i=d.length,v,x,g=a.value,p,b,_,$,z,R,N;u<i;){v=s-l,x=r-n;do p=d[S++].value;while(!p&&S<i);for(b=_=p,R=Math.max(x/v,v/x)/(g*t),N=p*p*R,z=Math.max(_/N,N/b);S<i;++S){if(p+=o=d[S].value,o<b&&(b=o),o>_&&(_=o),N=p*p*R,$=Math.max(_/N,N/b),$>z){p-=o;break}z=$}h.push(f={value:p,dice:v<x,children:d.slice(u,S)}),f.dice?oe(f,l,n,s,g?n+=x*p/g:r):ce(f,l,n,g?l+=v*p/g:s,r),g-=p,u=S}return h}var nt=(function t(a){function l(n,s,r,h,d){de(a,n,s,r,h,d)}return l.ratio=function(n){return t((n=+n)>1?n:1)},l})(he);function lt(){var t=nt,a=!1,l=1,n=1,s=[0],r=q,h=q,d=q,f=q,o=q;function u(i){return i.x0=i.y0=0,i.x1=l,i.y1=n,i.eachBefore(S),s=[0],a&&i.eachBefore(at),i}function S(i){var v=s[i.depth],x=i.x0+v,g=i.y0+v,p=i.x1-v,b=i.y1-v;p<x&&(x=p=(x+p)/2),b<g&&(g=b=(g+b)/2),i.x0=x,i.y0=g,i.x1=p,i.y1=b,i.children&&(v=s[i.depth+1]=r(i)/2,x+=o(i)-v,g+=h(i)-v,p-=d(i)-v,b-=f(i)-v,p<x&&(x=p=(x+p)/2),b<g&&(g=b=(g+b)/2),t(i,x,g,p,b))}return u.round=function(i){return arguments.length?(a=!!i,u):a},u.size=function(i){return arguments.length?(l=+i[0],n=+i[1],u):[l,n]},u.tile=function(i){return arguments.length?(t=tt(i),u):t},u.padding=function(i){return arguments.length?u.paddingInner(i).paddingOuter(i):u.paddingInner()},u.paddingInner=function(i){return arguments.length?(r=typeof i=="function"?i:G(+i),u):r},u.paddingOuter=function(i){return arguments.length?u.paddingTop(i).paddingRight(i).paddingBottom(i).paddingLeft(i):u.paddingTop()},u.paddingTop=function(i){return arguments.length?(h=typeof i=="function"?i:G(+i),u):h},u.paddingRight=function(i){return arguments.length?(d=typeof i=="function"?i:G(+i),u):d},u.paddingBottom=function(i){return arguments.length?(f=typeof i=="function"?i:G(+i),u):f},u.paddingLeft=function(i){return arguments.length?(o=typeof i=="function"?i:G(+i),u):o},u}(function t(a){function l(n,s,r,h,d){if((f=n._squarify)&&f.ratio===a)for(var f,o,u,S,i=-1,v,x=f.length,g=n.value;++i<x;){for(o=f[i],u=o.children,S=o.value=0,v=u.length;S<v;++S)o.value+=u[S].value;o.dice?oe(o,s,r,h,g?r+=(d-r)*o.value/g:d):ce(o,s,r,g?s+=(h-s)*o.value/g:h,d),g-=o.value}else n._squarify=f=de(a,n,s,r,h,d),f.ratio=a}return l.ratio=function(n){return t((n=+n)>1?n:1)},l})(he);var E,ue=(E=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=Le,this.getAccTitle=$e,this.setDiagramTitle=Ae,this.getDiagramTitle=Fe,this.getAccDescription=_e,this.setAccDescription=Ne}getNodes(){return this.nodes}getConfig(){const a=Me,l=ae();return ee({...a.treemap,...l.treemap??{}})}addNode(a,l){this.nodes.push(a),this.levels.set(a,l),l===0&&(this.outerNodes.push(a),this.root??=a)}getRoot(){return{name:"",children:this.outerNodes}}addClass(a,l){const n=this.classes.get(a)??{id:a,styles:[],textStyles:[]},s=l.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");s&&s.forEach(r=>{ke(r)&&(n?.textStyles?n.textStyles.push(r):n.textStyles=[r]),n?.styles?n.styles.push(r):n.styles=[r]}),this.classes.set(a,n)}getClasses(){return this.classes}getStylesForClass(a){return this.classes.get(a)?.styles??[]}clear(){Ve(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},C(E,"TreeMapDB"),E);function pe(t){if(!t.length)return[];const a=[],l=[];return t.forEach(n=>{const s={name:n.name,children:n.type==="Leaf"?void 0:[]};for(s.classSelector=n?.classSelector,n?.cssCompiledStyles&&(s.cssCompiledStyles=n.cssCompiledStyles),n.type==="Leaf"&&n.value!==void 0&&(s.value=n.value);l.length>0&&l[l.length-1].level>=n.level;)l.pop();if(l.length===0)a.push(s);else{const r=l[l.length-1].node;r.children?r.children.push(s):r.children=[s]}n.type!=="Leaf"&&l.push({node:s,level:n.level})}),a}C(pe,"buildHierarchy");var st=C((t,a)=>{be(t,a);const l=[];for(const r of t.TreemapRows??[])r.$type==="ClassDefStatement"&&a.addClass(r.className??"",r.styleText??"");for(const r of t.TreemapRows??[]){const h=r.item;if(!h)continue;const d=r.indent?parseInt(r.indent):0,f=rt(h),o=h.classSelector?a.getStylesForClass(h.classSelector):[],u=o.length>0?o:void 0,S={level:d,name:f,type:h.$type,value:h.value,classSelector:h.classSelector,cssCompiledStyles:u};l.push(S)}const n=pe(l),s=C((r,h)=>{for(const d of r)a.addNode(d,h),d.children&&d.children.length>0&&s(d.children,h+1)},"addNodesRecursively");s(n,0)},"populate"),rt=C(t=>t.name?String(t.name):"","getItemName"),fe={parser:{yy:void 0},parse:C(async t=>{try{const l=await ze("treemap",t);te.debug("Treemap AST:",l);const n=fe.parser?.yy;if(!(n instanceof ue))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");st(l,n)}catch(a){throw te.error("Error parsing treemap:",a),a}},"parse")},it=10,W=10,X=25,ot=C((t,a,l,n)=>{const s=n.db,r=s.getConfig(),h=r.padding??it,d=s.getDiagramTitle(),f=s.getRoot(),{themeVariables:o}=ae();if(!f)return;const u=d?30:0,S=we(a),i=r.nodeWidth?r.nodeWidth*W:960,v=r.nodeHeight?r.nodeHeight*W:500,x=i,g=v+u;S.attr("viewBox",`0 0 ${x} ${g}`),Te(S,g,x,r.useMaxWidth);let p;try{const e=r.valueFormat||",";if(e==="$0,0")p=C(c=>"$"+O(",")(c),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const c=/\.\d+/.exec(e),m=c?c[0]:"";p=C(w=>"$"+O(","+m)(w),"valueFormat")}else if(e.startsWith("$")){const c=e.substring(1);p=C(m=>"$"+O(c||"")(m),"valueFormat")}else p=O(e)}catch(e){te.error("Error creating format function:",e),p=O(",")}const b=Q().range(["transparent",o.cScale0,o.cScale1,o.cScale2,o.cScale3,o.cScale4,o.cScale5,o.cScale6,o.cScale7,o.cScale8,o.cScale9,o.cScale10,o.cScale11]),_=Q().range(["transparent",o.cScalePeer0,o.cScalePeer1,o.cScalePeer2,o.cScalePeer3,o.cScalePeer4,o.cScalePeer5,o.cScalePeer6,o.cScalePeer7,o.cScalePeer8,o.cScalePeer9,o.cScalePeer10,o.cScalePeer11]),$=Q().range([o.cScaleLabel0,o.cScaleLabel1,o.cScaleLabel2,o.cScaleLabel3,o.cScaleLabel4,o.cScaleLabel5,o.cScaleLabel6,o.cScaleLabel7,o.cScaleLabel8,o.cScaleLabel9,o.cScaleLabel10,o.cScaleLabel11]);d&&S.append("text").attr("x",x/2).attr("y",u/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(d);const z=S.append("g").attr("transform",`translate(0, ${u})`).attr("class","treemapContainer"),R=ne(f).sum(e=>e.value??0).sort((e,c)=>(c.value??0)-(e.value??0)),le=lt().size([i,v]).paddingTop(e=>e.children&&e.children.length>0?X+W:0).paddingInner(h).paddingLeft(e=>e.children&&e.children.length>0?W:0).paddingRight(e=>e.children&&e.children.length>0?W:0).paddingBottom(e=>e.children&&e.children.length>0?W:0).round(!0)(R),me=le.descendants().filter(e=>e.children&&e.children.length>0),H=z.selectAll(".treemapSection").data(me).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);H.append("rect").attr("width",e=>e.x1-e.x0).attr("height",X).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),H.append("clipPath").attr("id",(e,c)=>`clip-section-${a}-${c}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",X),H.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,c)=>`treemapSection section${c}`).attr("fill",e=>b(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>_(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const c=B({cssCompiledStyles:e.data.cssCompiledStyles});return c.nodeStyles+";"+c.borderStyles.join(";")}),H.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",X/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,c)=>`url(#clip-section-${a}-${c})`).attr("style",e=>{if(e.depth===0)return"display: none;";const c="dominant-baseline: middle; font-size: 12px; fill:"+$(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const c=Z(this),m=e.data.name;c.text(m);const w=e.x1-e.x0,L=6;let T;r.showValues!==!1&&e.value?T=w-10-30-10-L:T=w-L-6;const y=Math.max(15,T),M=c.node();if(M.getComputedTextLength()>y){let V=m;for(;V.length>0;){if(V=m.substring(0,V.length-1),V.length===0){c.text("..."),M.getComputedTextLength()>y&&c.text("");break}if(c.text(V+"..."),M.getComputedTextLength()<=y)break}}}),r.showValues!==!1&&H.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",X/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?p(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const c="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+$(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")});const se=le.leaves(),A=se.length>20,ge=A?16:38,j=A?14:28,D=A?4:8,I=A?4:6,J=A?2:4,re=A?8:10,K=A?1:2,U=z.selectAll(".treemapLeafGroup").data(se).enter().append("g").attr("class",(e,c)=>`treemapNode treemapLeafGroup leaf${c}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);U.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?b(e.parent.data.name):b(e.data.name)).attr("style",e=>B({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?b(e.parent.data.name):b(e.data.name)).attr("stroke-width",3),U.append("clipPath").attr("id",(e,c)=>`clip-${a}-${c}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),U.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const c=`text-anchor: middle; dominant-baseline: middle; font-size: ${ge}px;fill:`+$(e.data.name)+";",m=B({cssCompiledStyles:e.data.cssCompiledStyles});return c+m.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,c)=>`url(#clip-${a}-${c})`).text(e=>e.data.name).each(function(e){const c=Z(this),m=e.x1-e.x0,w=e.y1-e.y0,L=c.node(),T=m-2*J,P=w-2*J;if(T<re||P<re){c.style("display","none");return}let y=parseInt(c.style("font-size"),10);const M=.6;for(;L.getComputedTextLength()>T&&y>D;)y--,c.style("font-size",`${y}px`);let F=Math.max(I,Math.min(j,Math.round(y*M))),k=y+K+F;for(;k>P&&y>D&&(y--,F=Math.max(I,Math.min(j,Math.round(y*M))),!(F<I&&y===D));)c.style("font-size",`${y}px`),k=y+K+F;c.style("font-size",`${y}px`),A?(y<D||P<D)&&c.style("display","none"):(L.getComputedTextLength()>T||y<D||P<y)&&c.style("display","none")}),r.showValues!==!1&&U.append("text").attr("class","treemapValue").attr("x",c=>(c.x1-c.x0)/2).attr("y",function(c){return(c.y1-c.y0)/2}).attr("style",c=>{const m=`text-anchor: middle; dominant-baseline: hanging; font-size: ${j}px;fill:`+$(c.data.name)+";",w=B({cssCompiledStyles:c.data.cssCompiledStyles});return m+w.labelStyles.replace("color:","fill:")}).attr("clip-path",(c,m)=>`url(#clip-${a}-${m})`).text(c=>c.value?p(c.value):"").each(function(c){const m=Z(this),w=this.parentNode;if(!w){m.style("display","none");return}const L=Z(w).select(".treemapLabel");if(L.empty()||L.style("display")==="none"){m.style("display","none");return}const T=parseFloat(L.style("font-size")),y=Math.max(I,Math.min(j,Math.round(T*.6)));m.style("font-size",`${y}px`);const F=(c.y1-c.y0)/2+T/2+K;m.attr("y",F);const k=c.x1-c.x0,ie=c.y1-c.y0-4,ve=k-2*J;m.node().getComputedTextLength()>ve||F+y>ie||y<I?m.style("display","none"):m.style("display",null)});const ye=r.diagramPadding??8;xe(S,ye,"flowchart",r?.useMaxWidth||!1)},"draw"),ct=C(function(t,a){return a.db.getClasses()},"getClasses"),ht={draw:ot,getClasses:ct},dt={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},ut=C(({treemap:t}={})=>{const a=Ce(),l=ae(),n=ee(a,l.themeVariables),s=ee(dt,t),r=s.titleColor??n.titleColor,h=s.labelColor??n.textColor,d=s.valueColor??n.textColor;return`
2
2
  .treemapNode.section {
3
3
  stroke: ${s.sectionStrokeColor};
4
4
  stroke-width: ${s.sectionStrokeWidth};
@@ -1,4 +1,4 @@
1
- import{t as Jt,bo as m,bm as F,bw as Xt,bs as Ye,bq as Zt,b as Qt}from"./hY0rMePc.js";import{bs as en,c5 as Je,ca as xe,aD as t,bH as H,a5 as A,bA as R,W as L,bn as tn,c9 as d,bV as ae,cd as pt,c6 as nn,aA as v,bS as O,b_ as j,bl as Xe,bO as J,aB as T,b$ as Pe,be as sn,a7 as an,ay as Ze}from"./3SdAC2_C.js";import{i as ve}from"./BWmYJDmC.js";import{g as on,i as rn}from"./D400ElMz.js";import{f as ln}from"./leDczq9h.js";import{f as cn}from"./B4PfEXaO.js";import{k as dn}from"./RWWlGLMu.js";import{Jx as Se,ok as fn,A3 as un,sH as bt,om as hn,ad as kt}from"./DXdFemRu.js";import{b$ as gn,dH as mn}from"./C9aF-Sor.js";import{c as vn}from"./ChTqQfQN.js";import{c as Lt,h as He,D as pn}from"./Ue4xifLs.js";import{F as wt,ba as _t}from"./DETS1-K4.js";import{f as Qe}from"./CIU_APaR.js";import"./rNjiZ_3W.js";import{S as Re}from"./CbaFGz2w.js";import{l as bn}from"./B7JHU89G.js";import{g as kn}from"./BNm3whw0.js";function wn(q,c,oe,Ie=1){const We=Lt(q,c,oe,"","",{context:3}),re=new Set,pe=new Set,X=_n(Ie)-1,De=We.split(`
1
+ import{t as Jt,bo as m,bm as F,bw as Xt,bs as Ye,bq as Zt,b as Qt}from"./hY0rMePc.js";import{bs as en,c5 as Je,ca as xe,aD as t,bH as H,a5 as A,bA as R,W as L,bn as tn,c9 as d,bV as ae,cd as pt,c6 as nn,aA as v,bS as O,b_ as j,bl as Xe,bO as J,aB as T,b$ as Pe,be as sn,a7 as an,ay as Ze}from"./3SdAC2_C.js";import{i as ve}from"./BWmYJDmC.js";import{g as on,i as rn}from"./D400ElMz.js";import{f as ln}from"./leDczq9h.js";import{f as cn}from"./B4PfEXaO.js";import{k as dn}from"./RWWlGLMu.js";import{Jx as Se,ok as fn,A3 as un,sH as bt,om as hn,ad as kt}from"./DXdFemRu.js";import{b$ as gn,dH as mn}from"./C9aF-Sor.js";import{c as vn}from"./ChTqQfQN.js";import{c as Lt,h as He,D as pn}from"./McOgUz0K.js";import{F as wt,ba as _t}from"./DETS1-K4.js";import{f as Qe}from"./CIU_APaR.js";import"./rNjiZ_3W.js";import{S as Re}from"./CbaFGz2w.js";import{l as bn}from"./B7JHU89G.js";import{g as kn}from"./BNm3whw0.js";function wn(q,c,oe,Ie=1){const We=Lt(q,c,oe,"","",{context:3}),re=new Set,pe=new Set,X=_n(Ie)-1,De=We.split(`
2
2
  `);let s=0,I=0,le=!1;for(const $ of De)if($.startsWith("@@")){le=!0;const Z=$.match(/@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/);Z&&(I=parseInt(Z[1],10),s=parseInt(Z[2],10))}else le&&($.startsWith("+")?(re.add(s+X),s++):$.startsWith("-")?(pe.add(I+X),I++):$.startsWith(" ")&&(s++,I++));return{additions:re,deletions:pe}}function _n(q){return Number.isFinite(q)&&q>1?Math.floor(q):1}var Ln=T("<div><!> <!></div>"),Cn=T('<div class="diff-skeleton svelte-1f4chm"><div class="diff-skeleton-header svelte-1f4chm"><!> <!></div> <div class="diff-skeleton-content svelte-1f4chm"></div></div>'),yn=T('<div class="error-state svelte-1f4chm"><!> <span class="text-danger text-sm ml-2"> </span></div>'),xn=T('<div class="error-state svelte-1f4chm"><!> <span class="text-subtle text-sm ml-2"> </span></div>'),Pn=T('<div class="empty-state svelte-1f4chm"><span class="text-subtle text-sm"><!></span></div>'),Sn=T('<span class="icon">+</span> ',1),Hn=T('<span class="icon">−</span> ',1),Rn=T('<div class="selection-action-bar svelte-1f4chm"><span class="selection-info"> </span> <!> <!></div>'),In=T('<div class="diff-wrapper svelte-1f4chm"><!> <div class="diff-content svelte-1f4chm"><!></div></div>'),Wn=T('<div class="tracked-change-diff-viewer svelte-1f4chm"><!></div>');function Dn(q,c){if(new.target)return Jt({component:Dn,...q});en(c,!0);const oe=()=>Ye(yt,"$read$",re),Ie=()=>Ye(Rt,"$workspace$",re),We=()=>Ye(It,"$workingTreeFileContentStore",re),[re,pe]=Zt(),X=vn("TrackedChangeDiffViewer"),De=2*1024*1024;let s=m(c,"change",7),I=m(c,"active",7,!0),le=m(c,"workspaceId",7),$=m(c,"viewMode",7,"unified"),Z=m(c,"showHeader",7,!1),Ne=m(c,"foldUnchanged",7,!0),Ae=m(c,"lineWrapping",7,!1),M=m(c,"onStageHunk",7),U=m(c,"onUnstageHunk",7),et=m(c,"onOpenCommit",7),Me=m(c,"refreshKey",7),Ue=m(c,"branchBaseRef",7),Ee=m(c,"branchBaseCommitSha",7),ge=m(c,"useProvidedContent",7,!1),ce=m(c,"allowHeadReads",7,!0),Fe=m(c,"canReadHeadFiles",7),W=m(c,"lineOffset",7,1),tt=m(c,"lineStageIndicators",7),Oe=m(c,"annotations",23,()=>[]),Te=m(c,"renderAnnotation",7),$e=m(c,"virtualizer",7),G=m(c,"gitRootId",7,void 0),be=m(c,"gitRootPath",7,void 0);const de=Je(()=>le())??kn()?.workspaceId??"",Ct=Math.random().toString(36).substring(2,8),Be=`tracked-diff:${crypto.randomUUID()}`,yt=gn(de,Be),Q=d(()=>oe()?.result?.kind==="trackedDiff"?oe().result:void 0),ke=d(()=>oe()?.loading??!0),nt=d(()=>oe()?.error??null),ze=d(()=>(t(Q)?.oldContent.length??0)+(t(Q)?.newContent.length??0)>De),B=d(()=>t(ze)?"":t(Q)?.oldContent??""),V=d(()=>t(ze)?"":t(Q)?.newContent??""),ee=d(()=>ct(s()?.relativePath||s()?.file||"")),it=d(()=>t(Q)?.chunk?.chunks.length?Ut(t(Q).chunk,t(ee)):""),xt=d(()=>!t(B)&&!t(V)&&!t(it)),Pt=d(()=>!!s()?.gitlink||!!t(Q)?.gitlink),st=d(()=>W()>1?`
3
3
  `.repeat(W()-1):""),St=d(()=>t(st)+t(B)),Ht=d(()=>t(st)+t(V));let w=ae(null),Ke=ae(null),we=null,_e=ae(!1);const Rt=mn(de),at=pt(void 0),ot=pt(""),It=dn(ot,at),rt=d(Ie),te=d(()=>be()||t(rt)?.worktreePath||t(rt)?.repositoryPath||""),Le=d(()=>s()?.relativePath||s()?.file||"file"),Wt=d(()=>Mt(t(Le)));let Ce=ae(null),lt=ae("");function ct(e){if(!e.startsWith("/")||!t(te))return e;const i=t(te).endsWith("/")?t(te).slice(0,-1):t(te);if(e.startsWith(i+"/"))return e.slice(i.length+1);if(e.startsWith(i)){const a=e.slice(i.length);return a.startsWith("/")?a.slice(1):a}return e}function Dt(e){return e?e.startsWith("/")?e:t(te)?`${t(te)}/${e}`:null:null}const dt=d(()=>W()>1),Nt=d(()=>t(dt)?`${t(Le)}:${He(t(B))}:off${W()}`:void 0),At=d(()=>t(dt)?`${t(Le)}:${He(t(V))}:off${W()}`:void 0);function Mt(e){const i=e.split(".").pop()?.toLowerCase();return i?{ts:"typescript",tsx:"tsx",js:"javascript",jsx:"jsx",py:"python",rs:"rust",go:"go",rb:"ruby",java:"java",kt:"kotlin",swift:"swift",cs:"csharp",cpp:"cpp",c:"c",h:"c",hpp:"cpp",json:"json",yaml:"yaml",yml:"yaml",toml:"toml",md:"markdown",html:"html",css:"css",scss:"scss",sql:"sql",sh:"bash",bash:"bash",zsh:"bash",svelte:"svelte",vue:"vue"}[i]:void 0}function Ut(e,i){const a=`a/${i}`,o=`b/${i}`,u=[`diff --git ${a} ${o}`,`--- ${a}`,`+++ ${o}`];for(const r of e.chunks){u.push(`@@ -${r.oldStart},${r.oldLines} +${r.newStart},${r.newLines} @@`);for(const h of r.lines){const l=h.type===kt.Addition?"+":h.type===kt.Deletion?"-":" ",g=h.content.endsWith(`
4
4
  `)?h.content.slice(0,-1):h.content;u.push(`${l}${g}`)}}return u.join(`
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/2ndYjFQq.js","/app/immutable/chunks/BTc_j7Dt.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/hY0rMePc.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/nodes/0.DuuUT7lf.js","/app/immutable/chunks/CjZEyjv4.js","/app/immutable/chunks/BWmYJDmC.js","/app/immutable/chunks/CXul4WJt.js","/app/immutable/chunks/BIv0yV05.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/DXdFemRu.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/B4mHWFlW.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/BQ1b28aV.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/B_QPRXJ5.js","/app/immutable/chunks/CAmQkXZq.js","/app/immutable/chunks/wsPxCWV4.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/assets/0.BmwjvpSF.css","/app/immutable/nodes/1.CuKU_s85.js","/app/immutable/chunks/DTdAlnvg.js","/app/immutable/chunks/DUkL2vjQ.js","/app/immutable/chunks/DETS1-K4.js","/app/immutable/chunks/BNN0vAFF.js","/app/immutable/chunks/leDczq9h.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/D400ElMz.js","/app/immutable/chunks/CIU_APaR.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/rNjiZ_3W.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/nodes/2.r_yCTdWa.js","/app/immutable/chunks/CWwAStwx.js","/app/immutable/chunks/C9aF-Sor.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/B7JHU89G.js","/app/immutable/chunks/BiM95_Ol.js","/app/immutable/chunks/lma_Aa_Q.js","/app/immutable/chunks/HP51nVq8.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/B0fUscDD.js","/app/immutable/chunks/D_DdTIu0.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/AXE1aiRo.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/3BCyU2N-.js","/app/immutable/chunks/-31r5MID.js","/app/immutable/chunks/CL3a4Hm1.js","/app/immutable/chunks/Mh0PqgbP.js","/app/immutable/chunks/CcSZrbR4.js","/app/immutable/chunks/B4PfEXaO.js","/app/immutable/chunks/DZEg_JlV.js","/app/immutable/chunks/DnkGrT83.js","/app/immutable/chunks/CJW4jhjq.js","/app/immutable/chunks/Cr6ukNck.js","/app/immutable/chunks/x_GKKTQV.js","/app/immutable/chunks/BXT21uPn.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/72S4_8Fo.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/D4WPlvMg.js","/app/immutable/chunks/BVlMQ1xQ.js","/app/immutable/chunks/C0A3yiL9.js","/app/immutable/chunks/BQXu3XXC.js","/app/immutable/chunks/CQcEqK4G.js","/app/immutable/chunks/BXyd6A9p.js","/app/immutable/chunks/4jB5IsVV.js","/app/immutable/chunks/edw8TVSr.js","/app/immutable/chunks/CGaMCAik.js","/app/immutable/chunks/Dkgk_rvZ.js","/app/immutable/chunks/Rz920YbF.js","/app/immutable/chunks/CegXgKbh.js","/app/immutable/chunks/Bk1CZ_aH.js","/app/immutable/chunks/KMO8sO00.js","/app/immutable/chunks/BltFs6ST.js","/app/immutable/chunks/BdnR40vX.js","/app/immutable/chunks/CRFehAxF.js","/app/immutable/chunks/COB2k0Aa.js","/app/immutable/chunks/uAXEbxa8.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/CbqBbwIN.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/YqTahsxp.js","/app/immutable/chunks/IxfPVMNO.js","/app/immutable/chunks/05jEdw2V.js","/app/immutable/chunks/DyHx5QFY.js","/app/immutable/chunks/CwTWayd0.js","/app/immutable/chunks/Bu13V5mO.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/D2rdAIDv.js","/app/immutable/chunks/CSiaiLHL.js","/app/immutable/chunks/BhVPbMnV.js","/app/immutable/chunks/xeMXLCBg.js","/app/immutable/chunks/H2jLkRRS.js","/app/immutable/chunks/RWWlGLMu.js","/app/immutable/chunks/BO4HougN.js","/app/immutable/chunks/Bygp72Wl.js","/app/immutable/chunks/CEjK2ich.js","/app/immutable/chunks/AYsHMWH3.js","/app/immutable/chunks/BwLxx4IG.js","/app/immutable/assets/register.CUyDR59i.css","/app/immutable/chunks/BzW_moTi.js","/app/immutable/chunks/BX_Jr21Z.js","/app/immutable/chunks/CmbheRhJ.js","/app/immutable/chunks/O63l2zGE.js","/app/immutable/chunks/BjLb7AHW.js","/app/immutable/chunks/Dv-bjgEk.js","/app/immutable/chunks/DAsc1V4f.js","/app/immutable/chunks/BsieX9dN.js","/app/immutable/chunks/-J-Hmuck.js","/app/immutable/assets/SettingsPage.CKvEnOAL.css","/app/immutable/chunks/DhHLTWgE.js","/app/immutable/chunks/BEvFtidS.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/Bb9tq6rt.js","/app/immutable/chunks/Di3TE7pQ.js","/app/immutable/chunks/DB4f78Ip.js","/app/immutable/chunks/DXB4L22V.js","/app/immutable/chunks/CKc3ivIh.js","/app/immutable/chunks/CbaFGz2w.js","/app/immutable/chunks/D0I7VQ8a.js","/app/immutable/chunks/DnHJL326.js","/app/immutable/chunks/D2Rapl2X.js","/app/immutable/chunks/BDPP0w0q.js","/app/immutable/assets/checkbox.D429NJZk.css","/app/immutable/chunks/DxDZbRkP.js","/app/immutable/chunks/BJTYazIn.js","/app/immutable/chunks/CmImGhNY.js","/app/immutable/assets/select-viewport.CV-KWLNP.css","/app/immutable/chunks/CWezNj5-.js","/app/immutable/assets/directory-picker-service.Eai7L_H2.css","/app/immutable/chunks/CvCS8OAf.js","/app/immutable/chunks/BJ1Bk8co.js","/app/immutable/chunks/1MN-thc1.js","/app/immutable/assets/slider.kL-wkHnx.css","/app/immutable/assets/AttachmentPreview.DWUPhcKi.css","/app/immutable/chunks/9Bk8hwX5.js","/app/immutable/chunks/ump_SWLl.js","/app/immutable/chunks/DfOxl3xY.js","/app/immutable/chunks/C9fPgzDG.js","/app/immutable/chunks/C6g7LzDB.js","/app/immutable/chunks/2V6-Yhg-.js","/app/immutable/chunks/BJHkJxQ6.js","/app/immutable/chunks/BACpI8G6.js","/app/immutable/chunks/Do6vtrQf.js","/app/immutable/chunks/DnQOpOtg.js","/app/immutable/chunks/X-wIiWCo.js","/app/immutable/chunks/DpmMYKqt.js","/app/immutable/chunks/DU4sJYad.js","/app/immutable/chunks/I8XhKsSY.js","/app/immutable/chunks/BvGyYsBI.js","/app/immutable/chunks/Cb6nJOfB.js","/app/immutable/chunks/BNm3whw0.js","/app/immutable/chunks/C1GvdDuD.js","/app/immutable/chunks/Bcb1iqQJ.js","/app/immutable/chunks/Djz9uuuA.js","/app/immutable/assets/AgentAvatar.CZKKHyEm.css","/app/immutable/assets/avatar-state.BzFIexJN.css","/app/immutable/chunks/k863GLf6.js","/app/immutable/assets/TipTapEditor.BmeA7Qtk.css","/app/immutable/chunks/C4VXXfVL.js","/app/immutable/chunks/BmALJKBY.js","/app/immutable/assets/image-context-items.D_hsaikk.css","/app/immutable/chunks/DvjmmZhh.js","/app/immutable/chunks/BaJMqkSd.js","/app/immutable/chunks/DqFGUV9A.js","/app/immutable/chunks/CPel99qV.js","/app/immutable/chunks/CQ409-Pj.js","/app/immutable/assets/terminal-manager.MhP_vFvK.css","/app/immutable/chunks/C-BsEdGZ.js","/app/immutable/chunks/DOuyIvfN.js","/app/immutable/chunks/A0p6PvBn.js","/app/immutable/chunks/Cm60YBNN.js","/app/immutable/chunks/D-N7efrx.js","/app/immutable/chunks/CJtFSxbf.js","/app/immutable/chunks/xmnalplU.js","/app/immutable/chunks/CXCw-Jw-.js","/app/immutable/assets/CompactWorkspaceInitializer.i4vCnRqW.css","/app/immutable/chunks/CVoQx6Vw.js","/app/immutable/chunks/CcNZQwT1.js","/app/immutable/assets/workspace-key-menu.DrT-Fxqq.css","/app/immutable/chunks/BalE-G27.js","/app/immutable/chunks/D5-RCLzi.js","/app/immutable/chunks/DpChblex.js","/app/immutable/chunks/BOpszErG.js","/app/immutable/chunks/P9PnSQNh.js","/app/immutable/chunks/BKD7o1lQ.js","/app/immutable/assets/MarkdownViewer.D2MexjjT.css","/app/immutable/chunks/goTpbPhD.js","/app/immutable/chunks/CGcJ5lqH.js","/app/immutable/chunks/DCP9TL-A.js","/app/immutable/chunks/CXXVPWBH.js","/app/immutable/chunks/BAdVoGAI.js","/app/immutable/chunks/4rRlR2tp.js","/app/immutable/chunks/C0CrTfQC.js","/app/immutable/chunks/BzqJYEOZ.js","/app/immutable/chunks/CvxVjZLu.js","/app/immutable/chunks/DMrypNw-.js","/app/immutable/assets/Terminal.Ddek5eNE.css","/app/immutable/chunks/DDnDtSlm.js","/app/immutable/assets/AgentAvatarStack.DOhClFuX.css","/app/immutable/chunks/BbIcudMY.js","/app/immutable/assets/2.DIadQLJA.css","/app/immutable/nodes/3.BzmP3XDj.js","/app/immutable/nodes/4.BPX7a1xw.js","/app/immutable/nodes/5.CbH1sau-.js","/app/immutable/nodes/6.DXN3u4yU.js","/app/immutable/chunks/C0fFeGdB.js","/app/immutable/chunks/C5tAJtyd.js","/app/immutable/chunks/BaJfBXet.js","/app/immutable/assets/PanelContentRenderer.C1wFV-kd.css","/app/immutable/chunks/BTtqZJEI.js","/app/immutable/chunks/IjcPbG76.js","/app/immutable/chunks/DQdjZnba.js","/app/immutable/chunks/MEhQGTPs.js","/app/immutable/chunks/D-62MVd3.js","/app/immutable/chunks/CCPr9hs_.js","/app/immutable/chunks/CpimfPxg.js","/app/immutable/chunks/0tWsVa0y.js","/app/immutable/assets/DockScreenshotEditorWindow.DNkBhnHK.css","/app/immutable/assets/dock-tokens.C3wiNkmL.css","/app/immutable/chunks/CQhRmQZt.js","/app/immutable/chunks/CJoPlWyA.js","/app/immutable/chunks/BGN2EuCq.js","/app/immutable/chunks/BtBv0U_D.js","/app/immutable/chunks/Jh2BVut2.js","/app/immutable/assets/TaskStatusIcon.sfU2TZ7a.css","/app/immutable/assets/AgentCard.Cna0hri3.css","/app/immutable/chunks/Ue4xifLs.js","/app/immutable/chunks/DEB8jcix.js","/app/immutable/chunks/lwn02icp.js","/app/immutable/assets/TrackedChangeDiffViewer.CveSjyPc.css","/app/immutable/chunks/DaXosNFA.js","/app/immutable/chunks/CcNhqKh5.js","/app/immutable/assets/syntax-highlighting.CrQGLq0X.css","/app/immutable/assets/CodeBlock.BezhEtUo.css","/app/immutable/chunks/Cxz7a3ln.js","/app/immutable/assets/DiagramPresentation.C2GLYoBN.css","/app/immutable/chunks/KU76P7cR.js","/app/immutable/chunks/DRg21hWl.js","/app/immutable/chunks/DgAgTFcK.js","/app/immutable/chunks/Dc7e-OgI.js","/app/immutable/chunks/CE0jr9sE.js","/app/immutable/chunks/0_OkSok2.js","/app/immutable/assets/StreamingDiagramRenderer.BShsSvPz.css","/app/immutable/assets/chat-search.Cjb73igJ.css","/app/immutable/chunks/CZ56JG-R.js","/app/immutable/chunks/BFBQinse.js","/app/immutable/chunks/D5reO2Y0.js","/app/immutable/chunks/CcmN1reb.js","/app/immutable/assets/conversation-turns.P_pkAsRX.css","/app/immutable/chunks/BTtAt-Pu.js","/app/immutable/chunks/6kZoubzS.js","/app/immutable/chunks/BLZhAOLT.js","/app/immutable/chunks/BvFRd1je.js","/app/immutable/chunks/CrjK8LH9.js","/app/immutable/chunks/BbV6R15i.js","/app/immutable/assets/WorkspaceSetupCard.DNLkSKZg.css","/app/immutable/chunks/DTU57FsX.js","/app/immutable/chunks/DL6gGkHp.js","/app/immutable/assets/DockRecordingEditor.BX1NXczK.css","/app/immutable/assets/ChatPanel.B73KM22O.css","/app/immutable/assets/HomeWorkspaceDetail.Dp5EWw2P.css","/app/immutable/chunks/XS67_4Nj.js","/app/immutable/chunks/DWGXN6Nr.js","/app/immutable/assets/ResizablePanel.Bi3i2_fe.css","/app/immutable/assets/6.DBgC2kSL.css","/app/immutable/nodes/7.BAFpN-hf.js","/app/immutable/assets/7.D6ebrVTb.css","/app/immutable/nodes/8.COZNLTaW.js","/app/immutable/chunks/0vzGySSF.js","/app/immutable/nodes/9.VZM4RxD5.js","/app/immutable/chunks/C-srtNB0.js","/app/immutable/chunks/D3yXvqwY.js","/app/immutable/chunks/-xCKOX3D.js","/app/immutable/chunks/Bc3o0U_Z.js","/app/immutable/chunks/7Em2EC6e.js","/app/immutable/assets/9.CfWCtgHG.css","/app/immutable/nodes/10.DkGJji_v.js","/app/immutable/chunks/cKonll34.js","/app/immutable/assets/CodeEditor.Bq04Rj-N.css","/app/immutable/chunks/ClNWpSoj.js","/app/immutable/assets/confirm-script-deletion.CqNa5NIC.css","/app/immutable/chunks/ByYwSpDO.js","/app/immutable/assets/scroll-area.bHHIbcsu.css","/app/immutable/chunks/CHMwcoWM.js","/app/immutable/assets/LineChangesBadge.CJ0J_Z0k.css","/app/immutable/chunks/wEnqV1Ol.js","/app/immutable/chunks/Bosi029J.js","/app/immutable/chunks/BWM_jjc6.js","/app/immutable/assets/10.xCAPscJx.css","/app/immutable/nodes/11.DswJjpxi.js","/app/immutable/assets/11.BO7QC36g.css","/app/immutable/nodes/12.iQywXLwT.js","/app/immutable/nodes/13.m6xe0bMv.js","/app/immutable/assets/13.CF5xLHXq.css","/app/immutable/nodes/14.CyaNpqAL.js","/app/immutable/chunks/CIzFSDuO.js","/app/immutable/assets/14.BuZANxI8.css","/app/immutable/nodes/15.CDuV6cP7.js","/app/immutable/assets/15.CWppUCpM.css","/app/immutable/nodes/16.MUmBS-bv.js","/app/immutable/assets/16.DBFWhlfB.css","/app/immutable/nodes/17.C_k1qpf6.js","/app/immutable/nodes/18.BjTfofOz.js","/app/immutable/nodes/19.DvjAcoWG.js","/app/immutable/assets/19.Cznk2DRv.css","/app/immutable/nodes/20.DuDV-BZU.js","/app/immutable/assets/20.BdP13STv.css"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/2ndYjFQq.js","/app/immutable/chunks/BTc_j7Dt.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/hY0rMePc.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/nodes/0.DECevrtM.js","/app/immutable/chunks/CjZEyjv4.js","/app/immutable/chunks/BWmYJDmC.js","/app/immutable/chunks/CXul4WJt.js","/app/immutable/chunks/BIv0yV05.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/DXdFemRu.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/B4mHWFlW.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/BQ1b28aV.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/B_QPRXJ5.js","/app/immutable/chunks/CAmQkXZq.js","/app/immutable/chunks/QFC15GkG.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/assets/0.BmwjvpSF.css","/app/immutable/nodes/1.LZZdSQoJ.js","/app/immutable/chunks/2bsrY56g.js","/app/immutable/chunks/DltbAw1B.js","/app/immutable/chunks/DETS1-K4.js","/app/immutable/chunks/BNN0vAFF.js","/app/immutable/chunks/leDczq9h.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/D400ElMz.js","/app/immutable/chunks/CIU_APaR.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/rNjiZ_3W.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/nodes/2.C7whbYui.js","/app/immutable/chunks/CWwAStwx.js","/app/immutable/chunks/C9aF-Sor.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/B7JHU89G.js","/app/immutable/chunks/CK2Cr1RP.js","/app/immutable/chunks/CceLSCZq.js","/app/immutable/chunks/DnozpXMO.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/B0fUscDD.js","/app/immutable/chunks/DCGl0RXW.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/AXE1aiRo.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/Cw2ZnpX7.js","/app/immutable/chunks/ZNhLMxqQ.js","/app/immutable/chunks/CL3a4Hm1.js","/app/immutable/chunks/Mh0PqgbP.js","/app/immutable/chunks/CcSZrbR4.js","/app/immutable/chunks/B4PfEXaO.js","/app/immutable/chunks/DZEg_JlV.js","/app/immutable/chunks/CbDsELcV.js","/app/immutable/chunks/CJW4jhjq.js","/app/immutable/chunks/DpeQIGDn.js","/app/immutable/chunks/x_GKKTQV.js","/app/immutable/chunks/BXT21uPn.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/72S4_8Fo.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/D4WPlvMg.js","/app/immutable/chunks/BVlMQ1xQ.js","/app/immutable/chunks/C0A3yiL9.js","/app/immutable/chunks/Dm9EHXJZ.js","/app/immutable/chunks/CQcEqK4G.js","/app/immutable/chunks/BXyd6A9p.js","/app/immutable/chunks/4jB5IsVV.js","/app/immutable/chunks/edw8TVSr.js","/app/immutable/chunks/CGaMCAik.js","/app/immutable/chunks/CnHcPhIW.js","/app/immutable/chunks/DkET5D1Z.js","/app/immutable/chunks/CegXgKbh.js","/app/immutable/chunks/MsC14vMO.js","/app/immutable/chunks/KMO8sO00.js","/app/immutable/chunks/CCAcpS1o.js","/app/immutable/chunks/BdnR40vX.js","/app/immutable/chunks/CRFehAxF.js","/app/immutable/chunks/COB2k0Aa.js","/app/immutable/chunks/uAXEbxa8.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/CbqBbwIN.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/YqTahsxp.js","/app/immutable/chunks/IxfPVMNO.js","/app/immutable/chunks/05jEdw2V.js","/app/immutable/chunks/DyHx5QFY.js","/app/immutable/chunks/CwTWayd0.js","/app/immutable/chunks/Bu13V5mO.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/hcDGwCEP.js","/app/immutable/chunks/CSiaiLHL.js","/app/immutable/chunks/BhVPbMnV.js","/app/immutable/chunks/xeMXLCBg.js","/app/immutable/chunks/H2jLkRRS.js","/app/immutable/chunks/RWWlGLMu.js","/app/immutable/chunks/BO4HougN.js","/app/immutable/chunks/Bygp72Wl.js","/app/immutable/chunks/CEjK2ich.js","/app/immutable/chunks/AYsHMWH3.js","/app/immutable/chunks/BwLxx4IG.js","/app/immutable/assets/register.CUyDR59i.css","/app/immutable/chunks/BzW_moTi.js","/app/immutable/chunks/BAAb6Ol7.js","/app/immutable/chunks/CmbheRhJ.js","/app/immutable/chunks/O63l2zGE.js","/app/immutable/chunks/BjLb7AHW.js","/app/immutable/chunks/Dv-bjgEk.js","/app/immutable/chunks/DAsc1V4f.js","/app/immutable/chunks/BsieX9dN.js","/app/immutable/chunks/-J-Hmuck.js","/app/immutable/assets/SettingsPage.CKvEnOAL.css","/app/immutable/chunks/DhHLTWgE.js","/app/immutable/chunks/BEvFtidS.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/Bb9tq6rt.js","/app/immutable/chunks/Di3TE7pQ.js","/app/immutable/chunks/DB4f78Ip.js","/app/immutable/chunks/DXB4L22V.js","/app/immutable/chunks/DOU-V4Cg.js","/app/immutable/chunks/CbaFGz2w.js","/app/immutable/chunks/D0I7VQ8a.js","/app/immutable/chunks/DnHJL326.js","/app/immutable/chunks/D2Rapl2X.js","/app/immutable/chunks/BDPP0w0q.js","/app/immutable/assets/checkbox.D429NJZk.css","/app/immutable/chunks/DxDZbRkP.js","/app/immutable/chunks/BJTYazIn.js","/app/immutable/chunks/CmImGhNY.js","/app/immutable/assets/select-viewport.CV-KWLNP.css","/app/immutable/chunks/CWezNj5-.js","/app/immutable/assets/directory-picker-service.Eai7L_H2.css","/app/immutable/chunks/CSIAWhhl.js","/app/immutable/chunks/4QXQvR4H.js","/app/immutable/chunks/1MN-thc1.js","/app/immutable/assets/slider.kL-wkHnx.css","/app/immutable/assets/AttachmentPreview.DWUPhcKi.css","/app/immutable/chunks/9Bk8hwX5.js","/app/immutable/chunks/ump_SWLl.js","/app/immutable/chunks/DfOxl3xY.js","/app/immutable/chunks/C9fPgzDG.js","/app/immutable/chunks/C6g7LzDB.js","/app/immutable/chunks/2V6-Yhg-.js","/app/immutable/chunks/BJHkJxQ6.js","/app/immutable/chunks/BK6CZrM5.js","/app/immutable/chunks/Do6vtrQf.js","/app/immutable/chunks/D4ZMSrvm.js","/app/immutable/chunks/X-wIiWCo.js","/app/immutable/chunks/DpmMYKqt.js","/app/immutable/chunks/DU4sJYad.js","/app/immutable/chunks/I8XhKsSY.js","/app/immutable/chunks/Ciei8d6b.js","/app/immutable/chunks/Cb6nJOfB.js","/app/immutable/chunks/BNm3whw0.js","/app/immutable/chunks/B7RoQL2j.js","/app/immutable/chunks/Bcb1iqQJ.js","/app/immutable/chunks/Djz9uuuA.js","/app/immutable/assets/AgentAvatar.CZKKHyEm.css","/app/immutable/assets/avatar-state.BzFIexJN.css","/app/immutable/chunks/k863GLf6.js","/app/immutable/assets/TipTapEditor.BmeA7Qtk.css","/app/immutable/chunks/C4VXXfVL.js","/app/immutable/chunks/BmALJKBY.js","/app/immutable/assets/image-context-items.D_hsaikk.css","/app/immutable/chunks/CjyJQV6j.js","/app/immutable/chunks/BaJMqkSd.js","/app/immutable/chunks/DqFGUV9A.js","/app/immutable/chunks/CPel99qV.js","/app/immutable/chunks/CQ409-Pj.js","/app/immutable/assets/terminal-manager.MhP_vFvK.css","/app/immutable/chunks/C-BsEdGZ.js","/app/immutable/chunks/DOuyIvfN.js","/app/immutable/chunks/A0p6PvBn.js","/app/immutable/chunks/Za_i3D8P.js","/app/immutable/chunks/D-N7efrx.js","/app/immutable/chunks/CJtFSxbf.js","/app/immutable/chunks/xmnalplU.js","/app/immutable/chunks/CXCw-Jw-.js","/app/immutable/assets/CompactWorkspaceInitializer.i4vCnRqW.css","/app/immutable/chunks/CVoQx6Vw.js","/app/immutable/chunks/Dfh8DRT0.js","/app/immutable/assets/workspace-key-menu.DrT-Fxqq.css","/app/immutable/chunks/BalE-G27.js","/app/immutable/chunks/D5-RCLzi.js","/app/immutable/chunks/DpChblex.js","/app/immutable/chunks/BOpszErG.js","/app/immutable/chunks/DaZ7K0cS.js","/app/immutable/chunks/BKD7o1lQ.js","/app/immutable/assets/MarkdownViewer.D2MexjjT.css","/app/immutable/chunks/goTpbPhD.js","/app/immutable/chunks/CGcJ5lqH.js","/app/immutable/chunks/DCP9TL-A.js","/app/immutable/chunks/CXXVPWBH.js","/app/immutable/chunks/BAdVoGAI.js","/app/immutable/chunks/B8evz7o6.js","/app/immutable/chunks/C0CrTfQC.js","/app/immutable/chunks/BzqJYEOZ.js","/app/immutable/chunks/CvxVjZLu.js","/app/immutable/chunks/DMrypNw-.js","/app/immutable/assets/Terminal.Ddek5eNE.css","/app/immutable/chunks/DDnDtSlm.js","/app/immutable/assets/AgentAvatarStack.DOhClFuX.css","/app/immutable/chunks/BbIcudMY.js","/app/immutable/assets/2.DIadQLJA.css","/app/immutable/nodes/3.KbBbpAm6.js","/app/immutable/nodes/4.C1b_QyI0.js","/app/immutable/nodes/5.CG-B5vOM.js","/app/immutable/nodes/6.v-GnNHdu.js","/app/immutable/chunks/C0fFeGdB.js","/app/immutable/chunks/C5tAJtyd.js","/app/immutable/chunks/BaJfBXet.js","/app/immutable/assets/PanelContentRenderer.C1wFV-kd.css","/app/immutable/chunks/BTtqZJEI.js","/app/immutable/chunks/CUWtSiZ5.js","/app/immutable/chunks/DVL_BM5a.js","/app/immutable/chunks/CJ72QIuX.js","/app/immutable/chunks/D-62MVd3.js","/app/immutable/chunks/CCPr9hs_.js","/app/immutable/chunks/CpimfPxg.js","/app/immutable/chunks/0tWsVa0y.js","/app/immutable/assets/DockScreenshotEditorWindow.DNkBhnHK.css","/app/immutable/assets/dock-tokens.C3wiNkmL.css","/app/immutable/chunks/Bm6FDHvN.js","/app/immutable/chunks/CJoPlWyA.js","/app/immutable/chunks/Bw8_vMki.js","/app/immutable/chunks/BzllE3aT.js","/app/immutable/chunks/Jh2BVut2.js","/app/immutable/assets/TaskStatusIcon.sfU2TZ7a.css","/app/immutable/assets/AgentCard.Cna0hri3.css","/app/immutable/chunks/McOgUz0K.js","/app/immutable/chunks/DEB8jcix.js","/app/immutable/chunks/lwn02icp.js","/app/immutable/assets/TrackedChangeDiffViewer.CveSjyPc.css","/app/immutable/chunks/DaXosNFA.js","/app/immutable/chunks/CcNhqKh5.js","/app/immutable/assets/syntax-highlighting.CrQGLq0X.css","/app/immutable/assets/CodeBlock.BezhEtUo.css","/app/immutable/chunks/CBZTF7Qa.js","/app/immutable/assets/DiagramPresentation.C2GLYoBN.css","/app/immutable/chunks/KU76P7cR.js","/app/immutable/chunks/BziYv9ZW.js","/app/immutable/chunks/DgAgTFcK.js","/app/immutable/chunks/DoStKyYK.js","/app/immutable/chunks/CE0jr9sE.js","/app/immutable/chunks/B8nUpMEz.js","/app/immutable/assets/StreamingDiagramRenderer.BShsSvPz.css","/app/immutable/assets/chat-search.Cjb73igJ.css","/app/immutable/chunks/Ipu7_2rx.js","/app/immutable/chunks/B7h1ZmQS.js","/app/immutable/chunks/B4l71ix-.js","/app/immutable/chunks/CcmN1reb.js","/app/immutable/assets/conversation-turns.P_pkAsRX.css","/app/immutable/chunks/BTtAt-Pu.js","/app/immutable/chunks/6kZoubzS.js","/app/immutable/chunks/BLZhAOLT.js","/app/immutable/chunks/BvFRd1je.js","/app/immutable/chunks/Chx7ONT3.js","/app/immutable/chunks/D4g4334W.js","/app/immutable/assets/WorkspaceSetupCard.DNLkSKZg.css","/app/immutable/chunks/DTU57FsX.js","/app/immutable/chunks/DL6gGkHp.js","/app/immutable/assets/DockRecordingEditor.BX1NXczK.css","/app/immutable/assets/ChatPanel.B73KM22O.css","/app/immutable/assets/HomeWorkspaceDetail.Dp5EWw2P.css","/app/immutable/chunks/DY52XPja.js","/app/immutable/chunks/DWGXN6Nr.js","/app/immutable/assets/ResizablePanel.Bi3i2_fe.css","/app/immutable/assets/6.DBgC2kSL.css","/app/immutable/nodes/7.D9LU-AZb.js","/app/immutable/assets/7.D6ebrVTb.css","/app/immutable/nodes/8.BJP_1POW.js","/app/immutable/chunks/akx8_VtJ.js","/app/immutable/nodes/9.f8mHa7_b.js","/app/immutable/chunks/DKLk3Wx8.js","/app/immutable/chunks/D3yXvqwY.js","/app/immutable/chunks/-xCKOX3D.js","/app/immutable/chunks/Bc3o0U_Z.js","/app/immutable/chunks/7Em2EC6e.js","/app/immutable/assets/9.CfWCtgHG.css","/app/immutable/nodes/10.KUh1filM.js","/app/immutable/chunks/cKonll34.js","/app/immutable/assets/CodeEditor.Bq04Rj-N.css","/app/immutable/chunks/RzextV4B.js","/app/immutable/assets/confirm-script-deletion.CqNa5NIC.css","/app/immutable/chunks/ByYwSpDO.js","/app/immutable/assets/scroll-area.bHHIbcsu.css","/app/immutable/chunks/CHMwcoWM.js","/app/immutable/assets/LineChangesBadge.CJ0J_Z0k.css","/app/immutable/chunks/wEnqV1Ol.js","/app/immutable/chunks/Bosi029J.js","/app/immutable/chunks/jmJoSjVa.js","/app/immutable/assets/10.xCAPscJx.css","/app/immutable/nodes/11.D5CTYtT6.js","/app/immutable/assets/11.BO7QC36g.css","/app/immutable/nodes/12.iQywXLwT.js","/app/immutable/nodes/13.m6xe0bMv.js","/app/immutable/assets/13.CF5xLHXq.css","/app/immutable/nodes/14.CyaNpqAL.js","/app/immutable/chunks/CIzFSDuO.js","/app/immutable/assets/14.BuZANxI8.css","/app/immutable/nodes/15.5st_fzCN.js","/app/immutable/assets/15.CWppUCpM.css","/app/immutable/nodes/16.MUmBS-bv.js","/app/immutable/assets/16.DBFWhlfB.css","/app/immutable/nodes/17.C_k1qpf6.js","/app/immutable/nodes/18.BjTfofOz.js","/app/immutable/nodes/19.wB7XsK3B.js","/app/immutable/assets/19.Cznk2DRv.css","/app/immutable/nodes/20.DuDV-BZU.js","/app/immutable/assets/20.BdP13STv.css"])))=>i.map(i=>d[i]);
2
2
  import{_ as o,bm as X,t as lt,bo as f,bw as dt,b as pt,c as ft}from"../chunks/hY0rMePc.js";import{l as x}from"../chunks/BdWqymET.js";import{s as gt}from"../chunks/D-N7efrx.js";import{bs as Et,cb as vt,ca as Tt,bk as bt,aD as m,bH as F,c0 as ht,ay as T,bS as It,W as c,bn as At,bV as U,aA as g,a7 as I,c9 as y,a5 as Ot,bA as Rt,aB as q,b$ as Pt,b_ as Dt,bO as Lt}from"../chunks/3SdAC2_C.js";import{i as k}from"../chunks/BWmYJDmC.js";import{c as V}from"../chunks/BNN0vAFF.js";import{b as S}from"../chunks/Dn334wJv.js";const yt=async()=>{window.location.pathname.startsWith("/sandbox")||await o(()=>import("../chunks/2ndYjFQq.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url)},Vt=/^[a-zA-Z_$]{1,3}\.call is not a function$/;function St(t){return t instanceof Error&&t.name==="TypeError"&&Vt.test(t.message)&&typeof t.stack=="string"&&t.stack.includes("bits-ui")}const K=500,wt=8,xt=/[a-z][a-z0-9+.-]*:\/\/\S+/gi,kt=/[)\]}>'".,;:]+$/,Nt=/[^/]+\.[cm]?[jt]s(?::\d+){0,2}$/;function Ct(t){const e=kt.exec(t)?.[0]??"",a=t.slice(0,t.length-e.length),n=a.indexOf("://"),i=a.slice(0,n),s=a.slice(n+3).split("#")[0].split("?")[0],_=s.indexOf("/"),l=_===-1?s:s.slice(0,_),d=l.slice(l.lastIndexOf("@")+1),p=_===-1?"":s.slice(_);if(p===""||p==="/")return`${i}://${d}${e}`;const O=Nt.exec(p)?.[0];return`${i}://${d}/${O??"<redacted>"}${e}`}function w(t){const e=t.replace(xt,Ct);return e.length>K?`${e.slice(0,K)}…`:e}function jt(t){return typeof t!="string"||t.length===0?null:t.split(`
3
3
  `).slice(0,wt).map(w).join(`
4
- `)}function Mt(t,e){if(t instanceof Error)return{name:w(String(t.name)),message:w(String(t.message)),stack:jt(t.stack),routeId:e};if(t&&typeof t=="object"){const a="message"in t?t.message:void 0;return{name:"object",message:typeof a=="string"?w(a):"[non-Error object]",stack:null,routeId:e}}return{name:typeof t,message:w(String(t)),stack:null,routeId:e}}let Z=!1,A=0;const Ft=2,Ut=({error:t,event:e})=>{if(t&&typeof t=="object"&&"message"in t){const a=String(t.message);if(a.includes("no diff result available"))return{message:""};if(a.includes("isInHiddenArea"))return{message:""};if(a.includes("TextModel got disposed"))return{message:""}}if(t&&typeof t=="object"&&"message"in t){const a=String(t.message);if(a.includes("Not found: /index.html")||a.includes("Not found"))return Z?(A++,A>=Ft&&(x.warn('Multiple consecutive "Not found" errors detected, router may be corrupted',{url:e.url.toString(),routeId:e.route.id,consecutiveErrors:A}),A=0,typeof window<"u"&&setTimeout(()=>{x.info("Triggering full page reload to recover from router corruption"),window.location.reload()},100)),x.error("Client navigation error:",{error:t,url:e.url.toString(),routeId:e.route.id}),{message:X.hooks_client_pageNotFound_message()}):(Z=!0,A=0,{message:""});A=0}return gt(t)?{message:""}:St(t)?{message:""}:(x.error("Client error:",Mt(t,e.route.id)),{message:X.hooks_client_unexpected_error()})},Yt={};var zt=q('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),Bt=q("<!> <!>",1);function J(t,e){if(new.target)return lt({component:J,...t});Et(e,!0);let a=f(e,"stores",7),n=f(e,"page",7),i=f(e,"constructors",7),s=f(e,"components",23,()=>[]),_=f(e,"form",7),l=f(e,"data_0",7,null),d=f(e,"data_1",7,null),p=f(e,"data_2",7,null);vt(()=>a().page.set(n())),Tt(()=>{a(),n(),i(),s(),_(),l(),d(),p(),a().page.notify()});let O=U(!1),z=U(!1),B=U(null);bt(()=>{const r=a().page.subscribe(()=>{m(O)&&(F(z,!0),ht().then(()=>{F(B,document.title||"untitled page",!0)}))});return F(O,!0),r});const Y=y(()=>i()[2]);var tt={get stores(){return a()},set stores(r){a(r),g()},get page(){return n()},set page(r){n(r),g()},get constructors(){return i()},set constructors(r){i(r),g()},get components(){return s()},set components(r=[]){s(r),g()},get form(){return _()},set form(r){_(r),g()},get data_0(){return l()},set data_0(r=null){l(r),g()},get data_1(){return d()},set data_1(r=null){d(r),g()},get data_2(){return p()},set data_2(r=null){p(r),g()},$set:dt,$on:(r,u)=>pt(e,r,u)},G=Bt(),W=T(G);{var et=r=>{const u=y(()=>i()[0]);var E=I(),R=T(E);V(R,()=>m(u),(v,b)=>{S(b(v,{get data(){return l()},get form(){return _()},get params(){return n().params},children:(P,Wt)=>{var $=I(),st=T($);{var nt=h=>{const N=y(()=>i()[1]);var D=I(),C=T(D);V(C,()=>m(N),(j,M)=>{S(M(j,{get data(){return d()},get form(){return _()},get params(){return n().params},children:(L,$t)=>{var H=I(),_t=T(H);V(_t,()=>m(Y),(ut,mt)=>{S(mt(ut,{get data(){return p()},get form(){return _()},get params(){return n().params}}),ct=>s()[2]=ct,()=>s()?.[2])}),c(L,H)},$$slots:{default:!0}}),L=>s()[1]=L,()=>s()?.[1])}),c(h,D)},it=h=>{const N=y(()=>i()[1]);var D=I(),C=T(D);V(C,()=>m(N),(j,M)=>{S(M(j,{get data(){return d()},get form(){return _()},get params(){return n().params}}),L=>s()[1]=L,()=>s()?.[1])}),c(h,D)};k(st,h=>{i()[2]?h(nt):h(it,-1)})}c(P,$)},$$slots:{default:!0}}),P=>s()[0]=P,()=>s()?.[0])}),c(r,E)},rt=r=>{const u=y(()=>i()[0]);var E=I(),R=T(E);V(R,()=>m(u),(v,b)=>{S(b(v,{get data(){return l()},get form(){return _()},get params(){return n().params}}),P=>s()[0]=P,()=>s()?.[0])}),c(r,E)};k(W,r=>{i()[1]?r(et):r(rt,-1)})}var ot=It(W,2);{var at=r=>{var u=zt(),E=Ot(u);{var R=v=>{var b=Pt();Dt(()=>Lt(b,m(B))),c(v,b)};k(E,v=>{m(z)&&v(R)})}Rt(u),c(r,u)};k(ot,r=>{m(O)&&r(at)})}return c(t,G),At(tt)}const te=ft(J),ee=[()=>o(()=>import("../nodes/0.DuuUT7lf.js"),__vite__mapDeps([6,4,5,7,8,9,10,11,3,12,13,14,15,16,2,17,18,19,20,21,22,23]),import.meta.url),()=>o(()=>import("../nodes/1.CuKU_s85.js"),__vite__mapDeps([24,4,5,8,25,26,27,28,7,29,3,30,31,32,33,34,11,1,2,35,9]),import.meta.url),()=>o(()=>import("../nodes/2.r_yCTdWa.js"),__vite__mapDeps([36,4,5,7,37,8,9,29,3,30,27,28,31,33,38,2,12,13,14,15,16,11,39,34,1,35,20,40,25,41,21,22,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,32,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,19,101,102,103,10,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,18,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,26,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211]),import.meta.url),()=>o(()=>import("../nodes/3.BzmP3XDj.js"),__vite__mapDeps([212,4,5,8,65,31,7,29,3,30,25,26,27,28,32,33,34,11,1,2,35,9,43,44,42,45,38,12,13,14,15,16,39,20,40,46,21,22,41]),import.meta.url),()=>o(()=>import("../nodes/4.BPX7a1xw.js"),__vite__mapDeps([213,4,5,7,10,11,3,47,12,13,14,15,16,2,38,27,28,8,29,30,31,39,34,1,35,20,40,48,44,49,50,51,46,52,53,54,21,22,55,56,57,58,59,60,61,62,32,33,9,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,41,45,91,92,93,94,95,96,97,98,99,100,19,101,102,103,43,25,42,104,105,106,107,108,109]),import.meta.url),()=>o(()=>import("../nodes/5.CbH1sau-.js"),__vite__mapDeps([214,4,5,7,202,203,12,13,14,15,3,16,2,11,27,28,8,29,30,31,204,151,130,129,32,33,34,1,35,9,128,125,112,65,86,126,64,121,122,89,90,87,67,88,131,63,44,201,108,109,10,47,38,39,20,40,48,49,50,51,46,52,53,54,21,22,55,56,57,58,59,60,61,62,66,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,41,45,91,92,93,94,95,96,97,98,99,100,19,101,102,103,43,25,42,104,105,106,107]),import.meta.url),()=>o(()=>import("../nodes/6.DXN3u4yU.js"),__vite__mapDeps([215,4,5,66,216,8,28,29,3,7,30,203,12,13,14,15,16,2,11,32,33,31,34,1,35,9,217,129,130,27,218,40,38,39,20,70,58,84,219,114,82,56,46,57,62,63,64,65,67,68,112,86,87,88,124,125,126,121,122,89,90,97,111,113,115,116,117,118,119,120,123,127,44,53,54,48,21,22,55,51,128,131,132,133,134,135,136,137,43,25,42,45,41,138,139,188,163,164,165,166,78,52,50,49,79,154,155,148,156,157,158,110,159,141,18,142,143,160,161,162,167,168,169,149,170,151,171,189,180,91,220,221,222,197,223,224,225,73,226,74,227,228,229,140,77,144,230,96,231,232,233,234,195,235,80,95,187,236,237,238,239,206,240,103,241,242,243,244,245,210,191,246,247,248,249,178,194,196,250,26,251,183,252,253,254,72,75,76,61,69,255,256,150,257,208,209,258,259,93,260,261,262,263,264,265,184,102,185,266,267,268,269,192,92,172,270,271,193,272,37,204,273,274,179,275]),import.meta.url),()=>o(()=>import("../nodes/7.BAFpN-hf.js"),__vite__mapDeps([276,4,5,8,31,7,29,3,30,33,38,2,12,13,14,15,16,11,27,28,39,34,1,35,20,40,44,26,25,50,51,48,49,46,223,9,65,224,62,32,63,64,66,67,68,160,54,141,18,128,125,112,86,126,121,122,89,90,87,88,129,130,131,97,53,21,22,55,56,57,58,142,143,134,127,116,117,225,73,226,124,74,227,149,228,229,52,154,155,136,115,137,148,156,157,158,110,70,111,113,114,118,119,120,123,132,133,135,43,42,45,41,138,139,159,161,162,163,164,165,166,167,168,169,170,151,171,140,77,144,78,79,230,96,231,232,233,234,195,235,80,95,187,236,237,197,238,239,206,240,103,241,242,243,244,245,210,191,246,247,248,249,178,194,196,250,82,188,189,180,91,251,183,252,253,254,256,98,99,277]),import.meta.url),()=>o(()=>import("../nodes/8.COZNLTaW.js"),__vite__mapDeps([278,4,5,66,114,279,21,14,22,41,13,12,15,3,7,16,2,11,62,8,29,30,32,33,31,34,1,35,28,9,40,63,64,27,65,67,68,130,220]),import.meta.url),()=>o(()=>import("../nodes/9.VZM4RxD5.js"),__vite__mapDeps([280,4,5,8,9,31,7,29,3,30,33,32,34,11,1,2,35,28,86,121,65,112,122,89,90,111,113,66,114,115,27,87,67,88,116,117,118,119,120,123,124,125,126,64,97,62,40,63,12,13,14,15,16,68,127,44,53,38,39,20,54,48,21,22,55,56,46,57,58,51,128,129,130,131,132,133,134,135,136,137,43,25,42,45,41,70,138,139,173,147,148,151,142,143,149,26,60,158,281,282,204,79,160,161,227,234,195,83,71,50,49,251,265,184,183,102,164,165,150,169,81,279,155,156,261,262,100,92,283,91,284,285,82,69,106,268,157,167,286,229]),import.meta.url),()=>o(()=>import("../nodes/10.DkGJji_v.js"),__vite__mapDeps([287,4,5,216,8,28,29,3,7,30,203,12,13,14,15,16,2,11,32,33,31,34,1,35,9,217,129,130,27,218,40,38,39,20,70,58,84,219,26,25,56,46,57,181,65,44,182,59,52,53,54,48,21,22,55,51,50,49,60,61,62,63,64,66,67,68,69,96,97,132,114,115,112,86,133,155,131,121,122,89,90,136,137,148,156,157,158,128,125,126,87,88,154,110,111,113,116,117,118,119,120,123,124,127,134,135,43,42,45,41,138,139,159,141,18,142,143,160,161,162,163,164,165,166,167,168,169,149,170,151,171,183,184,140,77,144,178,185,37,186,95,260,99,197,190,82,281,282,204,93,81,272,80,102,231,273,264,232,230,233,234,195,235,227,187,236,265,266,249,274,176,205,175,105,106,107,108,109,177,206,207,288,201,289,290,94,291,153,150,100,292,293,101,294,295,296,257,297,199,298,172,262,193,299]),import.meta.url),()=>o(()=>import("../nodes/11.DswJjpxi.js"),__vite__mapDeps([300,4,5,8,42,25,31,7,29,3,30,28,12,13,14,15,16,2,11,27,33,190,117,32,34,1,35,9,120,65,112,86,62,40,63,64,66,67,68,110,97,258,193,156,125,292,293,101,38,39,20,288,201,108,109,107,54,48,44,45,161,289,118,103,296,102,301]),import.meta.url),()=>o(()=>import("../nodes/12.iQywXLwT.js"),__vite__mapDeps([302,4,5,66,114,27,28,8,7,29,3,30,31]),import.meta.url),()=>o(()=>import("../nodes/13.m6xe0bMv.js"),__vite__mapDeps([303,4,5,8,9,32,7,29,3,30,33,31,34,11,1,2,35,28,27,130,220,304]),import.meta.url),()=>o(()=>import("../nodes/14.CyaNpqAL.js"),__vite__mapDeps([305,4,5,8,29,3,7,30,34,11,1,2,35,130,220,33,31,32,28,9,306,13,174,197,112,65,86,40,116,117,132,66,114,115,133,135,136,137,27,131,121,122,64,89,90,307]),import.meta.url),()=>o(()=>import("../nodes/15.CDuV6cP7.js"),__vite__mapDeps([308,4,5,8,55,12,13,14,15,3,7,16,2,11,56,46,57,38,27,28,29,30,31,39,34,1,35,20,40,58,51,130,220,33,47,48,44,49,50,52,53,54,21,22,59,60,61,62,32,9,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,41,45,91,92,93,94,95,96,97,98,99,100,19,101,102,103,43,25,42,10,104,105,106,107,108,109,245,195,141,18,128,125,112,126,121,122,129,131,142,143,134,127,116,117,210,118,191,246,145,113,114,115,119,123,124,164,165,178,163,166,188,154,155,136,137,148,156,157,158,110,111,120,132,133,135,138,139,159,160,161,162,167,168,169,149,170,151,171,189,285,255,225,140,144,223,224,226,227,228,229,230,231,232,233,234,235,187,236,237,197,238,239,206,240,241,242,243,244,247,248,249,194,196,250,26,180,251,183,252,253,254,256,150,257,208,209,258,259,306,309]),import.meta.url),()=>o(()=>import("../nodes/16.MUmBS-bv.js"),__vite__mapDeps([310,4,5,29,3,7,30,34,11,1,2,35,130,220,33,8,31,65,73,225,28,16,197,32,9,76,77,40,54,48,44,311,229]),import.meta.url),()=>o(()=>import("../nodes/17.C_k1qpf6.js"),__vite__mapDeps([312,4,5,8,9,29,3,7,30,34,11,1,2,35,130,220,33,267,31,97,226,15,16,32,28,86,87,67,88,124,125,112,65,126,64,121,122,89,90,27,54,48,44,49,74,73,225,227,149,228,229,123,40,268,197,75,269]),import.meta.url),()=>o(()=>import("../nodes/18.BjTfofOz.js"),__vite__mapDeps([313,4,5,29,3,7,30,34,11,1,2,35,130,220,33]),import.meta.url),()=>o(()=>import("../nodes/19.DvjAcoWG.js"),__vite__mapDeps([314,4,5,8,54,11,3,48,44,27,28,7,29,30,31,32,33,34,1,2,35,9,12,13,14,15,16,65,187,80,38,39,20,40,55,56,46,57,58,51,180,91,63,85,113,66,114,115,112,86,87,67,88,116,117,118,119,161,128,125,126,64,121,122,89,90,129,130,131,134,146,147,135,136,137,148,142,143,149,71,133,100,43,25,42,45,21,22,41,315]),import.meta.url),()=>o(()=>import("../nodes/20.DuDV-BZU.js"),__vite__mapDeps([316,4,5,66,29,3,7,30,34,11,1,2,35,130,220,33,8,216,28,203,12,13,14,15,16,32,31,9,217,129,27,218,40,38,39,20,70,58,84,219,273,249,167,57,22,104,317]),import.meta.url)],re=[],oe={"/(app)":[6,[2],[3]],"/(app)/agent/[id]":[7,[2],[3]],"/(app)/desktop-control-agent":[8,[2],[3]],"/desktop-overlay":[13],"/dev-console":[14],"/dock-annotation":[16],"/dock-capture-editor":[17],"/dock":[15],"/frame":[18],"/hud":[19,[4]],"/(app)/settings":[9,[2],[3]],"/tab-window/[id]":[20,[5]],"/(app)/workspace/creating":[12,[2],[3]],"/(app)/workspace/[id]":[10,[2],[3]],"/(app)/workspace/[id]/files":[11,[2],[3]]},Q={handleError:Ut||(({error:t})=>{console.error(t)}),init:yt,reroute:(()=>{}),transport:{}},Gt=Object.fromEntries(Object.entries(Q.transport).map(([t,e])=>[t,e.decode])),ae=Object.fromEntries(Object.entries(Q.transport).map(([t,e])=>[t,e.encode])),se=!1,ne=(t,e)=>Gt[t](e),ie=()=>o(()=>import("../chunks/wbPk3Yxo.js"),[],import.meta.url).then(t=>t.default);export{ne as decode,Gt as decoders,oe as dictionary,ae as encoders,ie as get_error_template,se as hash,Q as hooks,Yt as matchers,ee as nodes,te as root,re as server_loads};
4
+ `)}function Mt(t,e){if(t instanceof Error)return{name:w(String(t.name)),message:w(String(t.message)),stack:jt(t.stack),routeId:e};if(t&&typeof t=="object"){const a="message"in t?t.message:void 0;return{name:"object",message:typeof a=="string"?w(a):"[non-Error object]",stack:null,routeId:e}}return{name:typeof t,message:w(String(t)),stack:null,routeId:e}}let Z=!1,A=0;const Ft=2,Ut=({error:t,event:e})=>{if(t&&typeof t=="object"&&"message"in t){const a=String(t.message);if(a.includes("no diff result available"))return{message:""};if(a.includes("isInHiddenArea"))return{message:""};if(a.includes("TextModel got disposed"))return{message:""}}if(t&&typeof t=="object"&&"message"in t){const a=String(t.message);if(a.includes("Not found: /index.html")||a.includes("Not found"))return Z?(A++,A>=Ft&&(x.warn('Multiple consecutive "Not found" errors detected, router may be corrupted',{url:e.url.toString(),routeId:e.route.id,consecutiveErrors:A}),A=0,typeof window<"u"&&setTimeout(()=>{x.info("Triggering full page reload to recover from router corruption"),window.location.reload()},100)),x.error("Client navigation error:",{error:t,url:e.url.toString(),routeId:e.route.id}),{message:X.hooks_client_pageNotFound_message()}):(Z=!0,A=0,{message:""});A=0}return gt(t)?{message:""}:St(t)?{message:""}:(x.error("Client error:",Mt(t,e.route.id)),{message:X.hooks_client_unexpected_error()})},Yt={};var zt=q('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),Bt=q("<!> <!>",1);function J(t,e){if(new.target)return lt({component:J,...t});Et(e,!0);let a=f(e,"stores",7),n=f(e,"page",7),i=f(e,"constructors",7),s=f(e,"components",23,()=>[]),_=f(e,"form",7),l=f(e,"data_0",7,null),d=f(e,"data_1",7,null),p=f(e,"data_2",7,null);vt(()=>a().page.set(n())),Tt(()=>{a(),n(),i(),s(),_(),l(),d(),p(),a().page.notify()});let O=U(!1),z=U(!1),B=U(null);bt(()=>{const r=a().page.subscribe(()=>{m(O)&&(F(z,!0),ht().then(()=>{F(B,document.title||"untitled page",!0)}))});return F(O,!0),r});const Y=y(()=>i()[2]);var tt={get stores(){return a()},set stores(r){a(r),g()},get page(){return n()},set page(r){n(r),g()},get constructors(){return i()},set constructors(r){i(r),g()},get components(){return s()},set components(r=[]){s(r),g()},get form(){return _()},set form(r){_(r),g()},get data_0(){return l()},set data_0(r=null){l(r),g()},get data_1(){return d()},set data_1(r=null){d(r),g()},get data_2(){return p()},set data_2(r=null){p(r),g()},$set:dt,$on:(r,u)=>pt(e,r,u)},G=Bt(),W=T(G);{var et=r=>{const u=y(()=>i()[0]);var E=I(),R=T(E);V(R,()=>m(u),(v,b)=>{S(b(v,{get data(){return l()},get form(){return _()},get params(){return n().params},children:(P,Wt)=>{var $=I(),st=T($);{var nt=h=>{const N=y(()=>i()[1]);var D=I(),C=T(D);V(C,()=>m(N),(j,M)=>{S(M(j,{get data(){return d()},get form(){return _()},get params(){return n().params},children:(L,$t)=>{var H=I(),_t=T(H);V(_t,()=>m(Y),(ut,mt)=>{S(mt(ut,{get data(){return p()},get form(){return _()},get params(){return n().params}}),ct=>s()[2]=ct,()=>s()?.[2])}),c(L,H)},$$slots:{default:!0}}),L=>s()[1]=L,()=>s()?.[1])}),c(h,D)},it=h=>{const N=y(()=>i()[1]);var D=I(),C=T(D);V(C,()=>m(N),(j,M)=>{S(M(j,{get data(){return d()},get form(){return _()},get params(){return n().params}}),L=>s()[1]=L,()=>s()?.[1])}),c(h,D)};k(st,h=>{i()[2]?h(nt):h(it,-1)})}c(P,$)},$$slots:{default:!0}}),P=>s()[0]=P,()=>s()?.[0])}),c(r,E)},rt=r=>{const u=y(()=>i()[0]);var E=I(),R=T(E);V(R,()=>m(u),(v,b)=>{S(b(v,{get data(){return l()},get form(){return _()},get params(){return n().params}}),P=>s()[0]=P,()=>s()?.[0])}),c(r,E)};k(W,r=>{i()[1]?r(et):r(rt,-1)})}var ot=It(W,2);{var at=r=>{var u=zt(),E=Ot(u);{var R=v=>{var b=Pt();Dt(()=>Lt(b,m(B))),c(v,b)};k(E,v=>{m(z)&&v(R)})}Rt(u),c(r,u)};k(ot,r=>{m(O)&&r(at)})}return c(t,G),At(tt)}const te=ft(J),ee=[()=>o(()=>import("../nodes/0.DECevrtM.js"),__vite__mapDeps([6,4,5,7,8,9,10,11,3,12,13,14,15,16,2,17,18,19,20,21,22,23]),import.meta.url),()=>o(()=>import("../nodes/1.LZZdSQoJ.js"),__vite__mapDeps([24,4,5,8,25,26,27,28,7,29,3,30,31,32,33,34,11,1,2,35,9]),import.meta.url),()=>o(()=>import("../nodes/2.C7whbYui.js"),__vite__mapDeps([36,4,5,7,37,8,9,29,3,30,27,28,31,33,38,2,12,13,14,15,16,11,39,34,1,35,20,40,25,41,21,22,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,32,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,19,101,102,103,10,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,18,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,26,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211]),import.meta.url),()=>o(()=>import("../nodes/3.KbBbpAm6.js"),__vite__mapDeps([212,4,5,8,65,31,7,29,3,30,25,26,27,28,32,33,34,11,1,2,35,9,43,44,42,45,38,12,13,14,15,16,39,20,40,46,21,22,41]),import.meta.url),()=>o(()=>import("../nodes/4.C1b_QyI0.js"),__vite__mapDeps([213,4,5,7,10,11,3,47,12,13,14,15,16,2,38,27,28,8,29,30,31,39,34,1,35,20,40,48,44,49,50,51,46,52,53,54,21,22,55,56,57,58,59,60,61,62,32,33,9,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,41,45,91,92,93,94,95,96,97,98,99,100,19,101,102,103,43,25,42,104,105,106,107,108,109]),import.meta.url),()=>o(()=>import("../nodes/5.CG-B5vOM.js"),__vite__mapDeps([214,4,5,7,202,203,12,13,14,15,3,16,2,11,27,28,8,29,30,31,204,151,130,129,32,33,34,1,35,9,128,125,112,65,86,126,64,121,122,89,90,87,67,88,131,63,44,201,108,109,10,47,38,39,20,40,48,49,50,51,46,52,53,54,21,22,55,56,57,58,59,60,61,62,66,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,41,45,91,92,93,94,95,96,97,98,99,100,19,101,102,103,43,25,42,104,105,106,107]),import.meta.url),()=>o(()=>import("../nodes/6.v-GnNHdu.js"),__vite__mapDeps([215,4,5,66,216,8,28,29,3,7,30,203,12,13,14,15,16,2,11,32,33,31,34,1,35,9,217,129,130,27,218,40,38,39,20,70,58,84,219,114,82,56,46,57,62,63,64,65,67,68,112,86,87,88,124,125,126,121,122,89,90,97,111,113,115,116,117,118,119,120,123,127,44,53,54,48,21,22,55,51,128,131,132,133,134,135,136,137,43,25,42,45,41,138,139,188,163,164,165,166,78,52,50,49,79,154,155,148,156,157,158,110,159,141,18,142,143,160,161,162,167,168,169,149,170,151,171,189,180,91,220,221,222,197,223,224,225,73,226,74,227,228,229,140,77,144,230,96,231,232,233,234,195,235,80,95,187,236,237,238,239,206,240,103,241,242,243,244,245,210,191,246,247,248,249,178,194,196,250,26,251,183,252,253,254,72,75,76,61,69,255,256,150,257,208,209,258,259,93,260,261,262,263,264,265,184,102,185,266,267,268,269,192,92,172,270,271,193,272,37,204,273,274,179,275]),import.meta.url),()=>o(()=>import("../nodes/7.D9LU-AZb.js"),__vite__mapDeps([276,4,5,8,31,7,29,3,30,33,38,2,12,13,14,15,16,11,27,28,39,34,1,35,20,40,44,26,25,50,51,48,49,46,223,9,65,224,62,32,63,64,66,67,68,160,54,141,18,128,125,112,86,126,121,122,89,90,87,88,129,130,131,97,53,21,22,55,56,57,58,142,143,134,127,116,117,225,73,226,124,74,227,149,228,229,52,154,155,136,115,137,148,156,157,158,110,70,111,113,114,118,119,120,123,132,133,135,43,42,45,41,138,139,159,161,162,163,164,165,166,167,168,169,170,151,171,140,77,144,78,79,230,96,231,232,233,234,195,235,80,95,187,236,237,197,238,239,206,240,103,241,242,243,244,245,210,191,246,247,248,249,178,194,196,250,82,188,189,180,91,251,183,252,253,254,256,98,99,277]),import.meta.url),()=>o(()=>import("../nodes/8.BJP_1POW.js"),__vite__mapDeps([278,4,5,66,114,279,21,14,22,41,13,12,15,3,7,16,2,11,62,8,29,30,32,33,31,34,1,35,28,9,40,63,64,27,65,67,68,130,220]),import.meta.url),()=>o(()=>import("../nodes/9.f8mHa7_b.js"),__vite__mapDeps([280,4,5,8,9,31,7,29,3,30,33,32,34,11,1,2,35,28,86,121,65,112,122,89,90,111,113,66,114,115,27,87,67,88,116,117,118,119,120,123,124,125,126,64,97,62,40,63,12,13,14,15,16,68,127,44,53,38,39,20,54,48,21,22,55,56,46,57,58,51,128,129,130,131,132,133,134,135,136,137,43,25,42,45,41,70,138,139,173,147,148,151,142,143,149,26,60,158,281,282,204,79,160,161,227,234,195,83,71,50,49,251,265,184,183,102,164,165,150,169,81,279,155,156,261,262,100,92,283,91,284,285,82,69,106,268,157,167,286,229]),import.meta.url),()=>o(()=>import("../nodes/10.KUh1filM.js"),__vite__mapDeps([287,4,5,216,8,28,29,3,7,30,203,12,13,14,15,16,2,11,32,33,31,34,1,35,9,217,129,130,27,218,40,38,39,20,70,58,84,219,26,25,56,46,57,181,65,44,182,59,52,53,54,48,21,22,55,51,50,49,60,61,62,63,64,66,67,68,69,96,97,132,114,115,112,86,133,155,131,121,122,89,90,136,137,148,156,157,158,128,125,126,87,88,154,110,111,113,116,117,118,119,120,123,124,127,134,135,43,42,45,41,138,139,159,141,18,142,143,160,161,162,163,164,165,166,167,168,169,149,170,151,171,183,184,140,77,144,178,185,37,186,95,260,99,197,190,82,281,282,204,93,81,272,80,102,231,273,264,232,230,233,234,195,235,227,187,236,265,266,249,274,176,205,175,105,106,107,108,109,177,206,207,288,201,289,290,94,291,153,150,100,292,293,101,294,295,296,257,297,199,298,172,262,193,299]),import.meta.url),()=>o(()=>import("../nodes/11.D5CTYtT6.js"),__vite__mapDeps([300,4,5,8,42,25,31,7,29,3,30,28,12,13,14,15,16,2,11,27,33,190,117,32,34,1,35,9,120,65,112,86,62,40,63,64,66,67,68,110,97,258,193,156,125,292,293,101,38,39,20,288,201,108,109,107,54,48,44,45,161,289,118,103,296,102,301]),import.meta.url),()=>o(()=>import("../nodes/12.iQywXLwT.js"),__vite__mapDeps([302,4,5,66,114,27,28,8,7,29,3,30,31]),import.meta.url),()=>o(()=>import("../nodes/13.m6xe0bMv.js"),__vite__mapDeps([303,4,5,8,9,32,7,29,3,30,33,31,34,11,1,2,35,28,27,130,220,304]),import.meta.url),()=>o(()=>import("../nodes/14.CyaNpqAL.js"),__vite__mapDeps([305,4,5,8,29,3,7,30,34,11,1,2,35,130,220,33,31,32,28,9,306,13,174,197,112,65,86,40,116,117,132,66,114,115,133,135,136,137,27,131,121,122,64,89,90,307]),import.meta.url),()=>o(()=>import("../nodes/15.5st_fzCN.js"),__vite__mapDeps([308,4,5,8,55,12,13,14,15,3,7,16,2,11,56,46,57,38,27,28,29,30,31,39,34,1,35,20,40,58,51,130,220,33,47,48,44,49,50,52,53,54,21,22,59,60,61,62,32,9,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,41,45,91,92,93,94,95,96,97,98,99,100,19,101,102,103,43,25,42,10,104,105,106,107,108,109,245,195,141,18,128,125,112,126,121,122,129,131,142,143,134,127,116,117,210,118,191,246,145,113,114,115,119,123,124,164,165,178,163,166,188,154,155,136,137,148,156,157,158,110,111,120,132,133,135,138,139,159,160,161,162,167,168,169,149,170,151,171,189,285,255,225,140,144,223,224,226,227,228,229,230,231,232,233,234,235,187,236,237,197,238,239,206,240,241,242,243,244,247,248,249,194,196,250,26,180,251,183,252,253,254,256,150,257,208,209,258,259,306,309]),import.meta.url),()=>o(()=>import("../nodes/16.MUmBS-bv.js"),__vite__mapDeps([310,4,5,29,3,7,30,34,11,1,2,35,130,220,33,8,31,65,73,225,28,16,197,32,9,76,77,40,54,48,44,311,229]),import.meta.url),()=>o(()=>import("../nodes/17.C_k1qpf6.js"),__vite__mapDeps([312,4,5,8,9,29,3,7,30,34,11,1,2,35,130,220,33,267,31,97,226,15,16,32,28,86,87,67,88,124,125,112,65,126,64,121,122,89,90,27,54,48,44,49,74,73,225,227,149,228,229,123,40,268,197,75,269]),import.meta.url),()=>o(()=>import("../nodes/18.BjTfofOz.js"),__vite__mapDeps([313,4,5,29,3,7,30,34,11,1,2,35,130,220,33]),import.meta.url),()=>o(()=>import("../nodes/19.wB7XsK3B.js"),__vite__mapDeps([314,4,5,8,54,11,3,48,44,27,28,7,29,30,31,32,33,34,1,2,35,9,12,13,14,15,16,65,187,80,38,39,20,40,55,56,46,57,58,51,180,91,63,85,113,66,114,115,112,86,87,67,88,116,117,118,119,161,128,125,126,64,121,122,89,90,129,130,131,134,146,147,135,136,137,148,142,143,149,71,133,100,43,25,42,45,21,22,41,315]),import.meta.url),()=>o(()=>import("../nodes/20.DuDV-BZU.js"),__vite__mapDeps([316,4,5,66,29,3,7,30,34,11,1,2,35,130,220,33,8,216,28,203,12,13,14,15,16,32,31,9,217,129,27,218,40,38,39,20,70,58,84,219,273,249,167,57,22,104,317]),import.meta.url)],re=[],oe={"/(app)":[6,[2],[3]],"/(app)/agent/[id]":[7,[2],[3]],"/(app)/desktop-control-agent":[8,[2],[3]],"/desktop-overlay":[13],"/dev-console":[14],"/dock-annotation":[16],"/dock-capture-editor":[17],"/dock":[15],"/frame":[18],"/hud":[19,[4]],"/(app)/settings":[9,[2],[3]],"/tab-window/[id]":[20,[5]],"/(app)/workspace/creating":[12,[2],[3]],"/(app)/workspace/[id]":[10,[2],[3]],"/(app)/workspace/[id]/files":[11,[2],[3]]},Q={handleError:Ut||(({error:t})=>{console.error(t)}),init:yt,reroute:(()=>{}),transport:{}},Gt=Object.fromEntries(Object.entries(Q.transport).map(([t,e])=>[t,e.decode])),ae=Object.fromEntries(Object.entries(Q.transport).map(([t,e])=>[t,e.encode])),se=!1,ne=(t,e)=>Gt[t](e),ie=()=>o(()=>import("../chunks/wbPk3Yxo.js"),[],import.meta.url).then(t=>t.default);export{ne as decode,Gt as decoders,oe as dictionary,ae as encoders,ie as get_error_template,se as hash,Q as hooks,Yt as matchers,ee as nodes,te as root,re as server_loads};
@@ -0,0 +1 @@
1
+ import{l as o,s as r}from"../chunks/2bsrY56g.js";export{o as load_css,r as start};
@@ -1 +1 @@
1
- import{t as L,bo as O,bw as I,bs as ee,bq as te,b as N,br as ne,bp as oe}from"../chunks/hY0rMePc.js";import{bs as P,bj as re,bk as se,a7 as b,ay as h,bf as T,W as E,bn as W,aA as R}from"../chunks/3SdAC2_C.js";import{t as $}from"../chunks/CjZEyjv4.js";import{i as ie}from"../chunks/BWmYJDmC.js";import{k as ae}from"../chunks/CXul4WJt.js";import{w as ce}from"../chunks/BIv0yV05.js";import{Jx as ue}from"../chunks/DXdFemRu.js";import{z as de,I as B}from"../chunks/Bqd7fdCF.js";import{initAppStore as le}from"../chunks/BQ1b28aV.js";import{J as fe,H as me}from"../chunks/CAmQkXZq.js";import{i as pe}from"../chunks/wsPxCWV4.js";const we=!1,ve=!1,ge=!0,Ce=Object.freeze(Object.defineProperty({__proto__:null,csr:ge,prerender:ve,ssr:we},Symbol.toStringTag,{value:"Module"}));function be(e,t,r){const f=le(e);let p=t.startSagas(e),s=!1;const l=()=>{if(!s){s=!0;try{for(const m of p)m()}finally{f.dispose(),r?.rootStoreStop===l&&(r.rootStoreStop=void 0,r.rootStoreReplaceSagas=void 0)}}};return l}const j=3,Y=4,he=100;let A=null;function S(e){const t=Date.now();A!==null&&A.direction===e&&t-A.at<he||(A={direction:e,at:t},e==="back"?history.back():history.forward())}function Ee(){return document.querySelector("webview:hover")!==null}function Ae(e){e!=="back"&&e!=="forward"||Ee()||S(e)}function q(e){return e.target instanceof Element&&e.target.closest("webview")!==null}function C(e){q(e)||(e.button===j?(e.preventDefault(),S("back")):e.button===Y&&(e.preventDefault(),S("forward")))}function F(e){q(e)||(e.button===j||e.button===Y)&&e.preventDefault()}function ye(e=window){return e.addEventListener("mouseup",C,{capture:!0}),e.addEventListener("mousedown",F,{capture:!0}),()=>{e.removeEventListener("mouseup",C,{capture:!0}),e.removeEventListener("mousedown",F,{capture:!0})}}function _e(e){const t=new Set,r="data-window-animation-paused",f=()=>e.hasAttribute("data-window-blurred");function p(i){const n=new Set;for(const o of i){if(!(o instanceof CSSAnimation)||o.playState!=="running"&&o.playState!=="paused"||o.effect?.getTiming().iterations!==1/0)continue;const d=o.effect?.target;d instanceof Element&&n.add(d)}for(const o of n)t.has(o)||(t.add(o),o.setAttribute(r,""))}function s(){for(const i of t)i.removeAttribute(r);t.clear()}function l(i){for(const n of i)!t.has(n)||e.contains(n)&&n.getAnimations({subtree:!0}).some(d=>d instanceof CSSAnimation&&d.effect?.target===n&&d.effect?.getTiming().iterations===1/0)||(t.delete(n),n.removeAttribute(r))}const m=new MutationObserver(i=>{if(!f())return;const n=new Set,o=new Set;for(const a of i){if(a.type==="childList")for(const c of a.addedNodes)c instanceof Element&&n.add(c);else if(a.target instanceof Element&&a.attributeName!==r&&a.attributeName!=="data-window-blurred")n.add(a.target);else continue;if(a.target instanceof Element)for(const c of t)(a.target.contains(c)||!e.contains(c))&&o.add(c)}l(o);const d=[];for(const a of n){if(!e.contains(a))continue;let c=a.parentElement;for(;c&&!n.has(c);)c=c.parentElement;c||d.push(...a.getAnimations({subtree:!0}))}p(d)});function v(){m.disconnect(),f()?(m.observe(e,{childList:!0,attributes:!0,subtree:!0}),p(e.getAnimations({subtree:!0}))):s()}function u(i){!f()||!(i.target instanceof Element)||(l([i.target]),p(i.target.getAnimations({subtree:!0})))}function w(i){!f()||!(i.target instanceof Element)||l([i.target])}const g=new MutationObserver(v);return g.observe(e,{attributes:!0,attributeFilter:["data-window-blurred"]}),e.addEventListener("animationstart",u,!0),e.addEventListener("animationcancel",w,!0),v(),{destroy(){g.disconnect(),m.disconnect(),e.removeEventListener("animationstart",u,!0),e.removeEventListener("animationcancel",w,!0),s()}}}function z(e,t){if(new.target)return L({component:z,...e});P(t,!0);const r=()=>ee(m,"$resolvedLocale$",f),[f,p]=te();let s=O(t,"children",7);const l=be(ue,{startSagas:()=>[]},void 0);re(l);const m=fe(),v=me();se(()=>{const n=!pe()&&window.location.pathname!=="/dock";let o=document.hasFocus(),d=!1;const a=()=>{document.documentElement.toggleAttribute("data-window-blurred",n&&d&&!o)},c=_=>{o=_,a()},M=()=>c(!1),k=()=>c(!0),K=v.subscribe(_=>{d=_,a()}),D=window.electronAPI,H=de();let y;a(),n&&(H?y=D?.on?.("window:focus",c):(window.addEventListener("blur",M),window.addEventListener("focus",k)));const Q=_e(document.documentElement),X=ce(document.getElementById("splash"));document.getElementById("app-drag-region")?.remove();const Z=ye(window),U=window.electronAPI?.on?.(B.APP.HISTORY_NAVIGATE,Ae);return()=>{K(),Q.destroy(),y?D.offById("window:focus",y):n&&!H&&(window.removeEventListener("blur",M),window.removeEventListener("focus",k)),document.documentElement.removeAttribute("data-window-blurred"),X(),Z(),U&&window.electronAPI.offById(B.APP.HISTORY_NAVIGATE,U)}});var u={get children(){return s()},set children(n){s(n),R()},$set:I,$on:(n,o)=>N(t,n,o)},w=b(),g=h(w);ae(g,r,n=>{var o=b(),d=h(o);$(d,()=>s()??T),E(n,o)}),E(e,w);var i=W(u);return p(),i}const x="/dev-console";function Se(e){return e===x||e.startsWith(x+"/")}const G="/desktop-overlay";function Le(e){return e===G||e.startsWith(`${G}/`)}const V="/frame";function Oe(e){return e===V||e===`${V}/`}function J(e,t){if(new.target)return L({component:J,...e});P(t,!0);let r=O(t,"children",7);const f=typeof window<"u"&&(Se(window.location.pathname)||Le(window.location.pathname)||Oe(window.location.pathname));var p={get children(){return r()},set children(u){r(u),R()},$set:I,$on:(u,w)=>N(t,u,w)},s=b(),l=h(s);{var m=u=>{var w=b(),g=h(w);$(g,()=>r()??T),E(u,w)},v=u=>{z(u,{get children(){return r()}})};ie(l,u=>{f?u(m):u(v,-1)})}return E(e,s),W(p)}var Ie=new Set(["$$slots","$$events","$$legacy","children"]);function Ne(e,t){if(new.target)return L({component:Ne,...e});P(t,!0);let r=O(t,"children",7),f=oe(t,Ie);var p={get children(){return r()},set children(s){r(s),R()},$set:I,$on:(s,l)=>N(t,s,l)};return J(e,ne(()=>f,{children:(s,l)=>{var m=b(),v=h(m);$(v,()=>r()??T),E(s,m)},$$slots:{default:!0}})),W(p)}export{Ne as component,Ce as universal};
1
+ import{t as L,bo as O,bw as I,bs as ee,bq as te,b as N,br as ne,bp as oe}from"../chunks/hY0rMePc.js";import{bs as P,bj as re,bk as se,a7 as b,ay as h,bf as T,W as E,bn as W,aA as R}from"../chunks/3SdAC2_C.js";import{t as $}from"../chunks/CjZEyjv4.js";import{i as ie}from"../chunks/BWmYJDmC.js";import{k as ae}from"../chunks/CXul4WJt.js";import{w as ce}from"../chunks/BIv0yV05.js";import{Jx as ue}from"../chunks/DXdFemRu.js";import{z as de,I as B}from"../chunks/Bqd7fdCF.js";import{initAppStore as le}from"../chunks/BQ1b28aV.js";import{J as fe,H as me}from"../chunks/CAmQkXZq.js";import{i as pe}from"../chunks/QFC15GkG.js";const we=!1,ve=!1,ge=!0,Ce=Object.freeze(Object.defineProperty({__proto__:null,csr:ge,prerender:ve,ssr:we},Symbol.toStringTag,{value:"Module"}));function be(e,t,r){const f=le(e);let p=t.startSagas(e),s=!1;const l=()=>{if(!s){s=!0;try{for(const m of p)m()}finally{f.dispose(),r?.rootStoreStop===l&&(r.rootStoreStop=void 0,r.rootStoreReplaceSagas=void 0)}}};return l}const j=3,Y=4,he=100;let A=null;function S(e){const t=Date.now();A!==null&&A.direction===e&&t-A.at<he||(A={direction:e,at:t},e==="back"?history.back():history.forward())}function Ee(){return document.querySelector("webview:hover")!==null}function Ae(e){e!=="back"&&e!=="forward"||Ee()||S(e)}function q(e){return e.target instanceof Element&&e.target.closest("webview")!==null}function C(e){q(e)||(e.button===j?(e.preventDefault(),S("back")):e.button===Y&&(e.preventDefault(),S("forward")))}function F(e){q(e)||(e.button===j||e.button===Y)&&e.preventDefault()}function ye(e=window){return e.addEventListener("mouseup",C,{capture:!0}),e.addEventListener("mousedown",F,{capture:!0}),()=>{e.removeEventListener("mouseup",C,{capture:!0}),e.removeEventListener("mousedown",F,{capture:!0})}}function _e(e){const t=new Set,r="data-window-animation-paused",f=()=>e.hasAttribute("data-window-blurred");function p(i){const n=new Set;for(const o of i){if(!(o instanceof CSSAnimation)||o.playState!=="running"&&o.playState!=="paused"||o.effect?.getTiming().iterations!==1/0)continue;const d=o.effect?.target;d instanceof Element&&n.add(d)}for(const o of n)t.has(o)||(t.add(o),o.setAttribute(r,""))}function s(){for(const i of t)i.removeAttribute(r);t.clear()}function l(i){for(const n of i)!t.has(n)||e.contains(n)&&n.getAnimations({subtree:!0}).some(d=>d instanceof CSSAnimation&&d.effect?.target===n&&d.effect?.getTiming().iterations===1/0)||(t.delete(n),n.removeAttribute(r))}const m=new MutationObserver(i=>{if(!f())return;const n=new Set,o=new Set;for(const a of i){if(a.type==="childList")for(const c of a.addedNodes)c instanceof Element&&n.add(c);else if(a.target instanceof Element&&a.attributeName!==r&&a.attributeName!=="data-window-blurred")n.add(a.target);else continue;if(a.target instanceof Element)for(const c of t)(a.target.contains(c)||!e.contains(c))&&o.add(c)}l(o);const d=[];for(const a of n){if(!e.contains(a))continue;let c=a.parentElement;for(;c&&!n.has(c);)c=c.parentElement;c||d.push(...a.getAnimations({subtree:!0}))}p(d)});function v(){m.disconnect(),f()?(m.observe(e,{childList:!0,attributes:!0,subtree:!0}),p(e.getAnimations({subtree:!0}))):s()}function u(i){!f()||!(i.target instanceof Element)||(l([i.target]),p(i.target.getAnimations({subtree:!0})))}function w(i){!f()||!(i.target instanceof Element)||l([i.target])}const g=new MutationObserver(v);return g.observe(e,{attributes:!0,attributeFilter:["data-window-blurred"]}),e.addEventListener("animationstart",u,!0),e.addEventListener("animationcancel",w,!0),v(),{destroy(){g.disconnect(),m.disconnect(),e.removeEventListener("animationstart",u,!0),e.removeEventListener("animationcancel",w,!0),s()}}}function z(e,t){if(new.target)return L({component:z,...e});P(t,!0);const r=()=>ee(m,"$resolvedLocale$",f),[f,p]=te();let s=O(t,"children",7);const l=be(ue,{startSagas:()=>[]},void 0);re(l);const m=fe(),v=me();se(()=>{const n=!pe()&&window.location.pathname!=="/dock";let o=document.hasFocus(),d=!1;const a=()=>{document.documentElement.toggleAttribute("data-window-blurred",n&&d&&!o)},c=_=>{o=_,a()},M=()=>c(!1),k=()=>c(!0),K=v.subscribe(_=>{d=_,a()}),D=window.electronAPI,H=de();let y;a(),n&&(H?y=D?.on?.("window:focus",c):(window.addEventListener("blur",M),window.addEventListener("focus",k)));const Q=_e(document.documentElement),X=ce(document.getElementById("splash"));document.getElementById("app-drag-region")?.remove();const Z=ye(window),U=window.electronAPI?.on?.(B.APP.HISTORY_NAVIGATE,Ae);return()=>{K(),Q.destroy(),y?D.offById("window:focus",y):n&&!H&&(window.removeEventListener("blur",M),window.removeEventListener("focus",k)),document.documentElement.removeAttribute("data-window-blurred"),X(),Z(),U&&window.electronAPI.offById(B.APP.HISTORY_NAVIGATE,U)}});var u={get children(){return s()},set children(n){s(n),R()},$set:I,$on:(n,o)=>N(t,n,o)},w=b(),g=h(w);ae(g,r,n=>{var o=b(),d=h(o);$(d,()=>s()??T),E(n,o)}),E(e,w);var i=W(u);return p(),i}const x="/dev-console";function Se(e){return e===x||e.startsWith(x+"/")}const G="/desktop-overlay";function Le(e){return e===G||e.startsWith(`${G}/`)}const V="/frame";function Oe(e){return e===V||e===`${V}/`}function J(e,t){if(new.target)return L({component:J,...e});P(t,!0);let r=O(t,"children",7);const f=typeof window<"u"&&(Se(window.location.pathname)||Le(window.location.pathname)||Oe(window.location.pathname));var p={get children(){return r()},set children(u){r(u),R()},$set:I,$on:(u,w)=>N(t,u,w)},s=b(),l=h(s);{var m=u=>{var w=b(),g=h(w);$(g,()=>r()??T),E(u,w)},v=u=>{z(u,{get children(){return r()}})};ie(l,u=>{f?u(m):u(v,-1)})}return E(e,s),W(p)}var Ie=new Set(["$$slots","$$events","$$legacy","children"]);function Ne(e,t){if(new.target)return L({component:Ne,...e});P(t,!0);let r=O(t,"children",7),f=oe(t,Ie);var p={get children(){return r()},set children(s){r(s),R()},$set:I,$on:(s,l)=>N(t,s,l)};return J(e,ne(()=>f,{children:(s,l)=>{var m=b(),v=h(m);$(v,()=>r()??T),E(s,m)},$$slots:{default:!0}})),W(p)}export{Ne as component,Ce as universal};
@@ -1 +1 @@
1
- import{t as W,bw as A,b as D,bm as u,br as R,bp as U}from"../chunks/hY0rMePc.js";import{bs as E,ca as V,aD as e,a7 as X,ay as Y,W as _,bn as N,c9 as y,a5 as a,bA as s,bS as f,bl as $,be as Z,b$ as ee,b_ as k,bO as m,aB as O}from"../chunks/3SdAC2_C.js";import{i as T}from"../chunks/BWmYJDmC.js";import{g as re}from"../chunks/DTdAlnvg.js";import{p as b}from"../chunks/DUkL2vjQ.js";import{F as te,cT as ae}from"../chunks/DETS1-K4.js";import{f as se}from"../chunks/CIU_APaR.js";import"../chunks/rNjiZ_3W.js";var oe=O('<p class="text-sm text-subtle"> </p>'),ie=O('<div class="min-h-screen flex items-center justify-center p-6 bg-background"><div class="w-full max-w-md" role="alert" aria-live="assertive"><div class="bg-card border border-border rounded-xl shadow-lg p-8 space-y-6 text-center"><div class="flex justify-center"><div class="w-14 h-14 rounded-full bg-warning/10 flex items-center justify-center opacity-50"><!></div></div> <div class="space-y-3"><h2 class="text-2xl font-semibold text-foreground"> </h2> <!> <p class="text-base text-subtle leading-relaxed break-words"> </p></div> <div class="flex items-center justify-center gap-3 flex-wrap"><!></div></div></div></div>');function q(i,o){if(new.target)return W({component:q,...i});E(o,!0);let c=y(()=>b.error),r=y(()=>b.status),v=y(()=>e(r)===404&&b.url.pathname!=="/");V(()=>{e(v)?(console.warn("[+error.svelte:root] 404, redirecting to /",{url:b.url.href,status:e(r)}),re("/",{replaceState:!0})):console.error("[+error.svelte:root]",{status:e(r),error:e(c)})});var g={$set:A,$on:(l,n)=>D(o,l,n)},j=X(),G=Y(j);{var H=l=>{var n=ie(),F=a(n),S=a(F),x=a(S),z=a(x),I=a(z);te(I,{get icon(){return ae},size:"lg",class:"text-warning"}),s(z),s(x);var w=f(x,2),B=a(w),J=$(B,!0),C=f(B,2);{var K=t=>{var d=oe(),p=$(d,!0);k(h=>m(p,h),[()=>u.error_page_status_label({status:e(r)})]),_(t,d)};T(C,t=>{e(r)&&e(r)!==500&&t(K)})}var L=f(C,2),M=$(L,!0);s(w);var P=f(w,2),Q=a(P);se(Q,{variant:"outline",size:"default",onclick:()=>window.location.reload(),children:(t,d)=>{Z();var p=ee();k(h=>m(p,h),[()=>u.error_page_reload_button()]),_(t,p)},$$slots:{default:!0}}),s(P),s(S),s(F),s(n),k((t,d)=>{m(J,t),m(M,d)},[()=>u.error_page_title(),()=>e(c)?.message||u.error_page_unexpected_fallback()]),_(l,n)};T(G,l=>{e(v)||l(H)})}return _(i,j),N(g)}var le=new Set(["$$slots","$$events","$$legacy"]);function ne(i,o){if(new.target)return W({component:ne,...i});E(o,!0);let c=U(o,le);var r={$set:A,$on:(v,g)=>D(o,v,g)};return q(i,R(()=>c)),N(r)}export{ne as component};
1
+ import{t as W,bw as A,b as D,bm as u,br as R,bp as U}from"../chunks/hY0rMePc.js";import{bs as E,ca as V,aD as e,a7 as X,ay as Y,W as _,bn as N,c9 as y,a5 as a,bA as s,bS as f,bl as $,be as Z,b$ as ee,b_ as k,bO as m,aB as O}from"../chunks/3SdAC2_C.js";import{i as T}from"../chunks/BWmYJDmC.js";import{g as re}from"../chunks/2bsrY56g.js";import{p as b}from"../chunks/DltbAw1B.js";import{F as te,cT as ae}from"../chunks/DETS1-K4.js";import{f as se}from"../chunks/CIU_APaR.js";import"../chunks/rNjiZ_3W.js";var oe=O('<p class="text-sm text-subtle"> </p>'),ie=O('<div class="min-h-screen flex items-center justify-center p-6 bg-background"><div class="w-full max-w-md" role="alert" aria-live="assertive"><div class="bg-card border border-border rounded-xl shadow-lg p-8 space-y-6 text-center"><div class="flex justify-center"><div class="w-14 h-14 rounded-full bg-warning/10 flex items-center justify-center opacity-50"><!></div></div> <div class="space-y-3"><h2 class="text-2xl font-semibold text-foreground"> </h2> <!> <p class="text-base text-subtle leading-relaxed break-words"> </p></div> <div class="flex items-center justify-center gap-3 flex-wrap"><!></div></div></div></div>');function q(i,o){if(new.target)return W({component:q,...i});E(o,!0);let c=y(()=>b.error),r=y(()=>b.status),v=y(()=>e(r)===404&&b.url.pathname!=="/");V(()=>{e(v)?(console.warn("[+error.svelte:root] 404, redirecting to /",{url:b.url.href,status:e(r)}),re("/",{replaceState:!0})):console.error("[+error.svelte:root]",{status:e(r),error:e(c)})});var g={$set:A,$on:(l,n)=>D(o,l,n)},j=X(),G=Y(j);{var H=l=>{var n=ie(),F=a(n),S=a(F),x=a(S),z=a(x),I=a(z);te(I,{get icon(){return ae},size:"lg",class:"text-warning"}),s(z),s(x);var w=f(x,2),B=a(w),J=$(B,!0),C=f(B,2);{var K=t=>{var d=oe(),p=$(d,!0);k(h=>m(p,h),[()=>u.error_page_status_label({status:e(r)})]),_(t,d)};T(C,t=>{e(r)&&e(r)!==500&&t(K)})}var L=f(C,2),M=$(L,!0);s(w);var P=f(w,2),Q=a(P);se(Q,{variant:"outline",size:"default",onclick:()=>window.location.reload(),children:(t,d)=>{Z();var p=ee();k(h=>m(p,h),[()=>u.error_page_reload_button()]),_(t,p)},$$slots:{default:!0}}),s(P),s(S),s(F),s(n),k((t,d)=>{m(J,t),m(M,d)},[()=>u.error_page_title(),()=>e(c)?.message||u.error_page_unexpected_fallback()]),_(l,n)};T(G,l=>{e(v)||l(H)})}return _(i,j),N(g)}var le=new Set(["$$slots","$$events","$$legacy"]);function ne(i,o){if(new.target)return W({component:ne,...i});E(o,!0);let c=U(o,le);var r={$set:A,$on:(v,g)=>D(o,v,g)};return q(i,R(()=>c)),N(r)}export{ne as component};