trident-git 0.10.0 → 0.11.0

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 (132) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +5 -5
  3. package/.next/build-manifest.json +2 -2
  4. package/.next/prerender-manifest.json +3 -3
  5. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  6. package/.next/server/app/_global-error.html +2 -2
  7. package/.next/server/app/_global-error.rsc +1 -1
  8. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  9. package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  10. package/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  11. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  12. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  13. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  14. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  15. package/.next/server/app/_not-found.html +1 -1
  16. package/.next/server/app/_not-found.rsc +2 -2
  17. package/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
  18. package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  19. package/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
  20. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  21. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  22. package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  23. package/.next/server/app/api/credentials/route_client-reference-manifest.js +1 -1
  24. package/.next/server/app/api/custom-scripts/route_client-reference-manifest.js +1 -1
  25. package/.next/server/app/api/fs/open/route_client-reference-manifest.js +1 -1
  26. package/.next/server/app/api/fs/open-terminal/route_client-reference-manifest.js +1 -1
  27. package/.next/server/app/api/fs/route_client-reference-manifest.js +1 -1
  28. package/.next/server/app/api/git/action/route_client-reference-manifest.js +1 -1
  29. package/.next/server/app/api/git/branches/route_client-reference-manifest.js +1 -1
  30. package/.next/server/app/api/git/diff/route_client-reference-manifest.js +1 -1
  31. package/.next/server/app/api/git/log/route_client-reference-manifest.js +1 -1
  32. package/.next/server/app/api/git/status/route_client-reference-manifest.js +1 -1
  33. package/.next/server/app/api/repos/clone/route_client-reference-manifest.js +1 -1
  34. package/.next/server/app/api/repos/route_client-reference-manifest.js +1 -1
  35. package/.next/server/app/api/settings/route_client-reference-manifest.js +1 -1
  36. package/.next/server/app/credentials/page_client-reference-manifest.js +1 -1
  37. package/.next/server/app/credentials.html +1 -1
  38. package/.next/server/app/credentials.rsc +2 -2
  39. package/.next/server/app/credentials.segments/_full.segment.rsc +2 -2
  40. package/.next/server/app/credentials.segments/_head.segment.rsc +1 -1
  41. package/.next/server/app/credentials.segments/_index.segment.rsc +2 -2
  42. package/.next/server/app/credentials.segments/_tree.segment.rsc +2 -2
  43. package/.next/server/app/credentials.segments/credentials/__PAGE__.segment.rsc +1 -1
  44. package/.next/server/app/credentials.segments/credentials.segment.rsc +1 -1
  45. package/.next/server/app/index.html +1 -1
  46. package/.next/server/app/index.rsc +2 -2
  47. package/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  48. package/.next/server/app/index.segments/_full.segment.rsc +2 -2
  49. package/.next/server/app/index.segments/_head.segment.rsc +1 -1
  50. package/.next/server/app/index.segments/_index.segment.rsc +2 -2
  51. package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  52. package/.next/server/app/page_client-reference-manifest.js +1 -1
  53. package/.next/server/app/workspace/changes/page_client-reference-manifest.js +1 -1
  54. package/.next/server/app/workspace/changes.html +1 -1
  55. package/.next/server/app/workspace/changes.rsc +2 -2
  56. package/.next/server/app/workspace/changes.segments/_full.segment.rsc +2 -2
  57. package/.next/server/app/workspace/changes.segments/_head.segment.rsc +1 -1
  58. package/.next/server/app/workspace/changes.segments/_index.segment.rsc +2 -2
  59. package/.next/server/app/workspace/changes.segments/_tree.segment.rsc +2 -2
  60. package/.next/server/app/workspace/changes.segments/workspace/changes/__PAGE__.segment.rsc +1 -1
  61. package/.next/server/app/workspace/changes.segments/workspace/changes.segment.rsc +1 -1
  62. package/.next/server/app/workspace/changes.segments/workspace.segment.rsc +1 -1
  63. package/.next/server/app/workspace/conflicts/page_client-reference-manifest.js +1 -1
  64. package/.next/server/app/workspace/conflicts.html +1 -1
  65. package/.next/server/app/workspace/conflicts.rsc +2 -2
  66. package/.next/server/app/workspace/conflicts.segments/_full.segment.rsc +2 -2
  67. package/.next/server/app/workspace/conflicts.segments/_head.segment.rsc +1 -1
  68. package/.next/server/app/workspace/conflicts.segments/_index.segment.rsc +2 -2
  69. package/.next/server/app/workspace/conflicts.segments/_tree.segment.rsc +2 -2
  70. package/.next/server/app/workspace/conflicts.segments/workspace/conflicts/__PAGE__.segment.rsc +1 -1
  71. package/.next/server/app/workspace/conflicts.segments/workspace/conflicts.segment.rsc +1 -1
  72. package/.next/server/app/workspace/conflicts.segments/workspace.segment.rsc +1 -1
  73. package/.next/server/app/workspace/custom-scripts/page_client-reference-manifest.js +1 -1
  74. package/.next/server/app/workspace/custom-scripts.html +1 -1
  75. package/.next/server/app/workspace/custom-scripts.rsc +2 -2
  76. package/.next/server/app/workspace/custom-scripts.segments/_full.segment.rsc +2 -2
  77. package/.next/server/app/workspace/custom-scripts.segments/_head.segment.rsc +1 -1
  78. package/.next/server/app/workspace/custom-scripts.segments/_index.segment.rsc +2 -2
  79. package/.next/server/app/workspace/custom-scripts.segments/_tree.segment.rsc +2 -2
  80. package/.next/server/app/workspace/custom-scripts.segments/workspace/custom-scripts/__PAGE__.segment.rsc +1 -1
  81. package/.next/server/app/workspace/custom-scripts.segments/workspace/custom-scripts.segment.rsc +1 -1
  82. package/.next/server/app/workspace/custom-scripts.segments/workspace.segment.rsc +1 -1
  83. package/.next/server/app/workspace/history/page_client-reference-manifest.js +1 -1
  84. package/.next/server/app/workspace/history.html +1 -1
  85. package/.next/server/app/workspace/history.rsc +3 -3
  86. package/.next/server/app/workspace/history.segments/_full.segment.rsc +3 -3
  87. package/.next/server/app/workspace/history.segments/_head.segment.rsc +1 -1
  88. package/.next/server/app/workspace/history.segments/_index.segment.rsc +2 -2
  89. package/.next/server/app/workspace/history.segments/_tree.segment.rsc +2 -2
  90. package/.next/server/app/workspace/history.segments/workspace/history/__PAGE__.segment.rsc +2 -2
  91. package/.next/server/app/workspace/history.segments/workspace/history.segment.rsc +1 -1
  92. package/.next/server/app/workspace/history.segments/workspace.segment.rsc +1 -1
  93. package/.next/server/app/workspace/page_client-reference-manifest.js +1 -1
  94. package/.next/server/app/workspace/settings/page_client-reference-manifest.js +1 -1
  95. package/.next/server/app/workspace/settings.html +1 -1
  96. package/.next/server/app/workspace/settings.rsc +2 -2
  97. package/.next/server/app/workspace/settings.segments/_full.segment.rsc +2 -2
  98. package/.next/server/app/workspace/settings.segments/_head.segment.rsc +1 -1
  99. package/.next/server/app/workspace/settings.segments/_index.segment.rsc +2 -2
  100. package/.next/server/app/workspace/settings.segments/_tree.segment.rsc +2 -2
  101. package/.next/server/app/workspace/settings.segments/workspace/settings/__PAGE__.segment.rsc +1 -1
  102. package/.next/server/app/workspace/settings.segments/workspace/settings.segment.rsc +1 -1
  103. package/.next/server/app/workspace/settings.segments/workspace.segment.rsc +1 -1
  104. package/.next/server/app/workspace/stashes/page_client-reference-manifest.js +1 -1
  105. package/.next/server/app/workspace/stashes.html +1 -1
  106. package/.next/server/app/workspace/stashes.rsc +2 -2
  107. package/.next/server/app/workspace/stashes.segments/_full.segment.rsc +2 -2
  108. package/.next/server/app/workspace/stashes.segments/_head.segment.rsc +1 -1
  109. package/.next/server/app/workspace/stashes.segments/_index.segment.rsc +2 -2
  110. package/.next/server/app/workspace/stashes.segments/_tree.segment.rsc +2 -2
  111. package/.next/server/app/workspace/stashes.segments/workspace/stashes/__PAGE__.segment.rsc +1 -1
  112. package/.next/server/app/workspace/stashes.segments/workspace/stashes.segment.rsc +1 -1
  113. package/.next/server/app/workspace/stashes.segments/workspace.segment.rsc +1 -1
  114. package/.next/server/app/workspace.html +1 -1
  115. package/.next/server/app/workspace.rsc +3 -3
  116. package/.next/server/app/workspace.segments/_full.segment.rsc +3 -3
  117. package/.next/server/app/workspace.segments/_head.segment.rsc +1 -1
  118. package/.next/server/app/workspace.segments/_index.segment.rsc +2 -2
  119. package/.next/server/app/workspace.segments/_tree.segment.rsc +2 -2
  120. package/.next/server/app/workspace.segments/workspace/__PAGE__.segment.rsc +2 -2
  121. package/.next/server/app/workspace.segments/workspace.segment.rsc +1 -1
  122. package/.next/server/app-paths-manifest.json +5 -5
  123. package/.next/server/chunks/725.js +1 -1
  124. package/.next/server/pages/404.html +1 -1
  125. package/.next/server/pages/500.html +2 -2
  126. package/.next/server/server-reference-manifest.json +1 -1
  127. package/.next/static/chunks/{446-4590c885aa3c0cf7.js → 446-5e20362a9a4e9a9b.js} +1 -1
  128. package/.next/static/css/87de0e40a1732998.css +1 -0
  129. package/package.json +1 -1
  130. package/.next/static/css/34464e853551fd25.css +0 -1
  131. /package/.next/static/{l9uLuY-iXi6iaQyhMpyBw → qBeODQKrmCXcCTlAXpjln}/_buildManifest.js +0 -0
  132. /package/.next/static/{l9uLuY-iXi6iaQyhMpyBw → qBeODQKrmCXcCTlAXpjln}/_ssgManifest.js +0 -0
@@ -6,8 +6,8 @@
6
6
  "/api/fs/open/route": "app/api/fs/open/route.js",
7
7
  "/api/fs/route": "app/api/fs/route.js",
8
8
  "/api/git/action/route": "app/api/git/action/route.js",
9
- "/api/git/diff/route": "app/api/git/diff/route.js",
10
9
  "/api/git/branches/route": "app/api/git/branches/route.js",
10
+ "/api/git/diff/route": "app/api/git/diff/route.js",
11
11
  "/api/git/log/route": "app/api/git/log/route.js",
12
12
  "/api/git/status/route": "app/api/git/status/route.js",
13
13
  "/api/repos/clone/route": "app/api/repos/clone/route.js",
@@ -15,13 +15,13 @@
15
15
  "/api/settings/route": "app/api/settings/route.js",
16
16
  "/icon.png/route": "app/icon.png/route.js",
17
17
  "/api/custom-scripts/route": "app/api/custom-scripts/route.js",
18
- "/credentials/page": "app/credentials/page.js",
19
18
  "/page": "app/page.js",
20
- "/workspace/changes/page": "app/workspace/changes/page.js",
21
- "/workspace/history/page": "app/workspace/history/page.js",
22
- "/workspace/custom-scripts/page": "app/workspace/custom-scripts/page.js",
19
+ "/credentials/page": "app/credentials/page.js",
23
20
  "/workspace/conflicts/page": "app/workspace/conflicts/page.js",
21
+ "/workspace/custom-scripts/page": "app/workspace/custom-scripts/page.js",
22
+ "/workspace/changes/page": "app/workspace/changes/page.js",
24
23
  "/workspace/settings/page": "app/workspace/settings/page.js",
25
24
  "/workspace/page": "app/workspace/page.js",
25
+ "/workspace/history/page": "app/workspace/history/page.js",
26
26
  "/workspace/stashes/page": "app/workspace/stashes/page.js"
27
27
  }
@@ -1,4 +1,4 @@
1
- "use strict";exports.id=725,exports.ids=[725],exports.modules={725:(a,b,c)=>{c.d(b,{u:()=>G});var d=c(8249),e=c(4626),f=c(5023),g=c(7484);function h(a){let b=0x811c9dc5;for(let c=0;c<a.length;c++)b^=a.charCodeAt(c),b=Math.imul(b,0x1000193);return b>>>0}var i=c(4490);function j({children:a,items:b,containerClassName:c="w-full"}){let[e,f]=(0,g.useState)(!1),[h,j]=(0,g.useState)({x:0,y:0}),k=(0,g.useRef)(null),l=(0,g.useRef)(null),m=(a,b)=>{let c=!!a.children?.length;return(0,d.jsxs)("li",{className:(0,i.cn)(c&&"relative group/submenu"),children:[(0,d.jsxs)("a",{onClick:b=>{b.stopPropagation(),a.disabled||c||(a.onClick?.(),f(!1))},className:(0,i.cn)("flex items-center gap-2","whitespace-nowrap",a.danger&&"text-error",a.disabled&&"opacity-40 pointer-events-none",c&&"flex items-center justify-between gap-3"),children:[(0,d.jsxs)("span",{className:"flex min-w-0 items-center gap-2",children:[a.icon&&(0,d.jsx)("span",{className:"inline-flex shrink-0 opacity-80",children:a.icon}),(0,d.jsx)("span",{children:a.labelNode??a.label})]}),c&&(0,d.jsx)("i",{className:"iconoir-nav-arrow-right text-[12px]","aria-hidden":"true"})]}),c&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{className:"hidden group-hover/submenu:block absolute left-full top-0 h-full w-3"}),(0,d.jsx)("ul",{className:"hidden group-hover/submenu:block absolute left-[calc(100%-1px)] top-0 menu !m-0 p-2 shadow-lg bg-base-100 rounded-box border border-base-200 min-w-[220px] z-[10000] [&:before]:hidden",children:a.children.map((a,c)=>m(a,`${b}-${c}`))})]})]},b)};return(0,d.jsxs)("div",{ref:l,className:c,onContextMenu:a=>{a.preventDefault(),a.stopPropagation(),j({x:a.clientX,y:a.clientY}),f(!0)},children:[a,e&&(0,d.jsx)("ul",{ref:k,className:"fixed z-[9999] menu p-2 shadow-lg bg-base-100 rounded-box border border-base-200",style:{left:`${h.x}px`,top:`${h.y}px`},children:b.map((a,b)=>m(a,`menu-${b}`))})]})}function k({text:a,searchQuery:b}){if(!b||!a)return(0,d.jsx)(d.Fragment,{children:a});let c=b.toLowerCase(),e=a.toLowerCase(),f=[],g=0,h=e.indexOf(c);for(;-1!==h;)h>g&&f.push({text:a.slice(g,h),highlighted:!1}),f.push({text:a.slice(h,h+c.length),highlighted:!0}),g=h+c.length,h=e.indexOf(c,g);return(g<a.length&&f.push({text:a.slice(g),highlighted:!1}),0===f.length)?(0,d.jsx)(d.Fragment,{children:a}):(0,d.jsx)(d.Fragment,{children:f.map((a,b)=>a.highlighted?(0,d.jsx)("mark",{className:"bg-warning text-warning-content rounded-sm px-0.5",children:a.text},b):(0,d.jsx)("span",{children:a.text},b))})}let l=(0,g.forwardRef)(function({commits:a,onSelectCommit:b,onResetToCommit:c,onRevertCommit:e,onCreateTag:f,onCherryPickCommit:l,onCherryPickSelectedCommits:m,onRewordCommit:n,selectedHash:o,selectedHashes:p,onEndReached:q,isLoadingMore:r,currentBranch:s,hiddenBranches:t,localBranches:u=[],trackingInfo:v,getBranchTagContextMenuItems:w},x){let y=(0,g.useCallback)(a=>a.startsWith("refs/heads/")?a.slice(11):a.startsWith("refs/remotes/")?a.slice(13):a.startsWith("remotes/")?a.slice(8):a,[]),z=(0,g.useCallback)(a=>a.startsWith("tag:")?a.replace(/^tag:\s*/,"").trim():a,[]),A=(0,g.useMemo)(()=>(function(a,b={}){let c=[],d=new Set(b.localBranches??[]),e=[],f=[],g=[];function i(){for(let a=0;a<e.length;a++)if(null===e[a])return a;return e.length}function j(a){let b,c=g[a],d=c?(b=h(c),`hsl(${b%360} 82% 52%)`):f[a]??`hsl(${47*a%360} 78% 56%)`;return f[a]=d,d}return a.forEach((a,b)=>{var h;let k=e.indexOf(a.hash);for(-1===k&&(k=i());e.length<=k;)e.push(null),g.push(null),f.push(void 0);let l=function(a,b){if(0===a.length)return null;let c=a.find(a=>b.has(a));return c||a[0]}((h=a.refs)?h.replace(/^\s*\((.*)\)\s*$/,"$1").split(",").map(a=>a.trim()).filter(Boolean).map(a=>a.replace(/^HEAD\s*->\s*/,"").trim()).map(a=>a.startsWith("refs/heads/")?a.slice(11):a.startsWith("refs/remotes/")?a.slice(13):a.startsWith("remotes/")?a.slice(8):a).filter(a=>!a.startsWith("tag:")).filter(a=>"HEAD"!==a).filter(a=>!/\/HEAD$/.test(a)):[],d);if(l){let a=function(a,b){let c,d;if(b.has(a))return a;let e=-1===(d=(c=a.startsWith("remotes/")?a.slice(8):a).indexOf("/"))?null:c.slice(d+1);return e&&b.has(e)?e:a}(l,d);(function(a,b,c){return!b||c.has(a)&&!c.has(b)})(a,g[k],d)&&(g[k]=a)}let m=j(k),n={...a,x:k,y:b,color:m,paths:[],isMerge:a.parents.length>1};for(let a=0;a<e.length;a++)a!==k&&null!==e[a]&&n.paths.push({x1:a,y1:b,x2:a,y2:b+1,color:j(a),type:"straight"});e[k]=null;let o=a.parents;if(o.length>0){let a=o[0],c=e.indexOf(a);-1!==c?n.paths.push({x1:k,y1:b,x2:c,y2:b+1,color:m,type:"merge"}):(e[k]=a,n.paths.push({x1:k,y1:b,x2:k,y2:b+1,color:m,type:"straight"}));for(let a=1;a<o.length;a++){let c=o[a],d=e.indexOf(c);if(-1!==d)n.paths.push({x1:k,y1:b,x2:d,y2:b+1,color:j(d),type:"fork"});else{let a=i();for(;e.length<=a;)e.push(null),g.push(null),f.push(void 0);e[a]=c,n.paths.push({x1:k,y1:b,x2:a,y2:b+1,color:j(a),type:"fork"})}}}null===e[k]&&(g[k]=null,f[k]=void 0),c.push(n)}),c})(a,{localBranches:u}),[a,u]),B=(0,g.useRef)(null),C=(0,g.useRef)(null),[D,E]=(0,g.useState)(!1),[F,G]=(0,g.useState)("");(0,g.useEffect)(()=>{let a=a=>{(a.metaKey||a.ctrlKey)&&"f"===a.key&&(a.preventDefault(),E(!0),setTimeout(()=>C.current?.focus(),0)),"Escape"===a.key&&D&&(E(!1),G(""))};return window.addEventListener("keydown",a),()=>window.removeEventListener("keydown",a)},[D]);let H=(0,g.useCallback)(()=>{E(!1),G("")},[]);if((0,g.useImperativeHandle)(x,()=>({scrollToCommit:a=>{if(!A||0===A.length)return!1;let b=A.findIndex(b=>b.hash===a);if(-1===b)return!1;if(B.current){let a=24*b-B.current.clientHeight/2+12;B.current.scrollTop=Math.max(0,a)}return!0}}),[A]),!A||0===A.length)return null;let I=(Math.max(...A.map(a=>a.x),0)+1)*12+20,J=24*A.length;return(0,d.jsxs)("div",{className:"flex flex-col h-full bg-base-100 overflow-hidden font-mono text-sm select-none",children:[D&&(0,d.jsxs)("div",{className:"sticky top-0 z-30 bg-base-100 border-b border-base-300 px-2 py-2 flex items-center gap-2",children:[(0,d.jsx)("span",{className:"opacity-50",children:"\uD83D\uDD0D"}),(0,d.jsx)("input",{ref:C,type:"text",placeholder:"Search in commits...",value:F,onChange:a=>G(a.target.value),className:"input input-bordered input-sm flex-1 text-sm",autoFocus:!0}),(0,d.jsx)("div",{className:"tooltip tooltip-left z-50","data-tip":"Close search (Esc)",children:(0,d.jsx)("button",{onClick:H,className:"btn btn-ghost btn-sm btn-square",children:"✖️"})})]}),(0,d.jsx)("div",{className:"flex-1 overflow-auto h-full max-w-full px-2",onScroll:a=>{let{scrollTop:b,clientHeight:c,scrollHeight:d}=a.currentTarget;d-b-c<100&&q?.()},ref:B,children:(0,d.jsxs)("div",{className:"relative min-w-full",style:{height:J},children:[(0,d.jsxs)("svg",{width:I,height:J,className:"absolute top-0 left-0 pointer-events-none z-10",children:[A.map(a=>(0,d.jsx)("g",{children:a.paths.map((a,b)=>{let c=12*a.x1+6,e=24*a.y1+12,f=12*a.x2+6,g=24*a.y2+12,h="";if("straight"===a.type)h=`M ${c} ${e} L ${f} ${g}`;else{let a=e+12,b=g-12;h=`M ${c} ${e} C ${c} ${a}, ${f} ${b}, ${f} ${g}`}return(0,d.jsx)("path",{d:h,stroke:a.color,strokeWidth:2,fill:"none",strokeLinecap:"round"},b)})},a.hash)),A.map(a=>(0,d.jsx)("circle",{cx:12*a.x+6,cy:24*a.y+12,r:3,fill:a.color,stroke:a.color,strokeWidth:2},`dot-${a.hash}`))]}),(0,d.jsxs)("div",{style:{width:"100%"},children:[A.map(a=>{let g=p?p.has(a.hash):o===a.hash,q=p?.size??+!!o,r=[{label:"Reset to here",icon:(0,d.jsx)("i",{className:"iconoir-refresh-circle text-[14px]","aria-hidden":"true"}),onClick:()=>c?.(a.hash)}];if(e&&r.push({label:"Revert commit",icon:(0,d.jsx)("i",{className:"iconoir-u-turn-arrow-left text-[14px]","aria-hidden":"true"}),onClick:()=>e(a.hash,a.message)}),f&&r.push({label:"Create tag",icon:(0,d.jsx)("i",{className:"iconoir-bookmark text-[14px]","aria-hidden":"true"}),onClick:()=>f(a.hash)}),l&&r.push({label:"Cherry-pick commit",icon:(0,d.jsx)("i",{className:"iconoir-git-fork text-[14px]","aria-hidden":"true"}),onClick:()=>l(a.hash,a.message)}),m&&q>1&&g&&r.push({label:`Cherry-pick ${q} selected commits`,icon:(0,d.jsx)("i",{className:"iconoir-git-fork text-[14px]","aria-hidden":"true"}),onClick:m}),n&&u&&u.length>0){let b=a.refs?a.refs.replace(/[()]/g,"").split(",").map(a=>a.trim()):[],c=null;for(let a of b){let b=a.replace(/^HEAD\s*->\s*/,"");if(u.includes(b)&&(c=b,s&&b===s))break}c&&r.push({label:"Reword commit",icon:(0,d.jsx)("i",{className:"iconoir-edit-pencil text-[14px]","aria-hidden":"true"}),onClick:()=>n(a.hash,a.message,a.body??"",c)})}let x=(()=>{if(!a.refs)return[];let b=a.refs.replace(/^\s*\((.*)\)\s*$/,"$1").split(",").map(a=>{let b=a.startsWith("HEAD -> "),c=y(a.replace(/^HEAD\s*->\s*/,"").trim());return{raw:a,name:c,isHead:b}}),c=[],d=new Set,e=a=>t&&(t.has(a)||t.has(`remotes/${a}`));return b.forEach((a,f)=>{if(!d.has(f)&&u.includes(a.name)&&!e(a.name)){let e=v?.[a.name];if(e&&e.upstream){let g=y(e.upstream.trim()),h=new Set([g,y(`remotes/${g}`),y(`refs/remotes/${g}`)]),i=b.findIndex((a,b)=>b!==f&&!d.has(b)&&h.has(a.name));if(-1!==i){let e=b[i],h=g.split("/")[0];c.push({displayName:`${a.name} (${h})`,primaryRef:a.name,secondaryRef:e.name,isHead:a.isHead}),d.add(f),d.add(i);return}}}}),b.forEach((a,b)=>{!d.has(b)&&(e(a.name)||c.push({displayName:z(a.name),primaryRef:a.name,isHead:a.isHead}))}),c})();return(0,d.jsx)(j,{items:r,children:(0,d.jsxs)("div",{className:(0,i.cn)("flex items-center hover:bg-base-200 border-b border-base-200 last:border-0 cursor-pointer transition-colors text-xs",g&&"bg-primary/10"),style:{height:24},onClick:c=>b?.(a.hash,{isMultiSelect:c.metaKey||c.ctrlKey,isRangeSelect:c.shiftKey}),children:[(0,d.jsx)("div",{style:{width:I,flexShrink:0}}),(0,d.jsxs)("div",{className:"flex flex-1 gap-4 overflow-hidden pr-4 items-center",children:[(0,d.jsxs)("div",{className:"flex-1 truncate flex items-center gap-2",children:[x.map((a,b)=>{let c=s&&(a.primaryRef===s||a.isHead&&a.primaryRef===s),e=a.primaryRef.startsWith("tag:")?{textColor:"#374151",backgroundColor:"#e5e7eb"}:function(a){let b,c,d,e,f,g,i,j,k,l=h(a),m=l%360,n=72+(l>>>9)%20,o=84+(l>>>17)%8,p=1.05/((k=function({r:a,g:b,b:c}){let d=a=>{let b=a/255;return b<=.03928?b/12.92:Math.pow((b+.055)/1.055,2.4)};return .2126*d(a)+.7152*d(b)+.0722*d(c)}((c=n/100*(1-Math.abs(2*(b=o/100)-1)),e=c*(1-Math.abs((d=m/60)%2-1)),f=0,g=0,i=0,d>=0&&d<1?(f=c,g=e):d>=1&&d<2?(f=e,g=c):d>=2&&d<3?(g=c,i=e):d>=3&&d<4?(g=e,i=c):d>=4&&d<5?(f=e,i=c):(f=c,i=e),{r:Math.round((f+(j=b-c/2))*255),g:Math.round((g+j)*255),b:Math.round((i+j)*255)})))+.05)>=(k+.05)/.05?"#ffffff":"#111827";return{backgroundColor:`hsl(${m} ${n}% ${o}%)`,textColor:p}}(a.primaryRef),f=(0,d.jsx)("span",{className:(0,i.cn)("text-[10px] px-1.5 rounded-full whitespace-nowrap shrink-0",c&&"font-bold"),style:{color:e.textColor,backgroundColor:e.backgroundColor},title:a.displayName,children:(0,d.jsx)(k,{text:a.displayName,searchQuery:F})}),g=w?.(a.primaryRef)||[];return 0===g.length?(0,d.jsx)("span",{className:"shrink-0",children:f},b):(0,d.jsx)(j,{items:g,containerClassName:"inline-flex shrink-0",children:f},b)}),(0,d.jsx)("span",{className:(0,i.cn)("truncate min-w-0 max-w-[600px]",g?"font-semibold":""),title:a.message,children:(0,d.jsx)(k,{text:a.message,searchQuery:F})})]}),(0,d.jsx)("div",{className:"w-32 truncate opacity-70 text-right",children:(0,d.jsx)(k,{text:a.author_name,searchQuery:F})}),(0,d.jsx)("div",{className:"w-20 truncate opacity-50 font-mono text-right",children:(0,d.jsx)(k,{text:a.hash.substring(0,7),searchQuery:F})}),(0,d.jsx)("div",{className:"w-32 truncate opacity-70 text-right",children:new Date(a.date).toLocaleString(void 0,{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"})})]})]})},a.hash)}),r&&(0,d.jsxs)("div",{className:"flex items-center justify-center py-8 border-b border-base-300",children:[(0,d.jsx)("span",{className:"loading loading-spinner text-base-content/50"}),(0,d.jsx)("span",{className:"ml-2 text-sm opacity-70",children:"Loading more commits..."})]})]})]})})]})});var m=c(8550),n=c(3381),o=c(8696),p=c(7532),q=c(5048);function r({status:a}){switch(a){case"A":return(0,d.jsx)("i",{className:"iconoir-plus-circle text-[16px] text-success","aria-hidden":"true"});case"D":return(0,d.jsx)("i",{className:"iconoir-minus-circle text-[16px] text-error","aria-hidden":"true"});case"M":return(0,d.jsx)("i",{className:"iconoir-edit-pencil text-[16px] text-warning","aria-hidden":"true"});default:return(0,d.jsx)("i",{className:"iconoir-page text-[16px] opacity-50","aria-hidden":"true"})}}function s({node:a,selectedFile:b,expandedFolders:c,onToggleFolder:e,onSelectFile:f,depth:g=0}){let h=Array.from(a.children.values()).sort((a,b)=>{let c=a.children.size>0,d=b.children.size>0;return c&&!d?-1:!c&&d?1:a.name.localeCompare(b.name)});return(0,d.jsx)(d.Fragment,{children:h.map(a=>{if(a.children.size>0){let h=c.has(a.path);return(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"flex items-center gap-1 px-2 py-1.5 text-xs rounded cursor-pointer hover:bg-base-200 transition-colors opacity-80",style:{paddingLeft:`${12*g+8}px`},onClick:()=>e(a.path),title:a.path,children:[(0,d.jsx)("span",{className:"text-[10px] opacity-70",children:h?"▼":"▶"}),(0,d.jsx)("i",{className:"iconoir-folder text-[14px] opacity-70","aria-hidden":"true"}),(0,d.jsx)("span",{className:"truncate flex-1",children:a.name})]}),h&&(0,d.jsx)(s,{node:a,selectedFile:b,expandedFolders:c,onToggleFolder:e,onSelectFile:f,depth:g+1})]},a.path)}if(!a.file)return null;let h=a.file;return(0,d.jsxs)("div",{className:(0,i.cn)("flex items-center gap-2 px-2 py-1.5 text-xs rounded cursor-pointer hover:bg-base-200 transition-colors",b===h.path&&"bg-base-200 font-medium"),style:{paddingLeft:`${12*g+8}px`},onClick:()=>f(h.path),title:h.path,children:[(0,d.jsx)(r,{status:h.status}),(0,d.jsx)("span",{className:"truncate flex-1 font-mono",children:a.name})]},a.path)})})}function t({repoPath:a,commitHash:b,fromCommitHash:c,toCommitHash:f,filePath:h,splitView:j}){let{data:k,isLoading:l}=(0,e.st)(a,h,{commitHash:b,fromCommitHash:c,toCommitHash:f}),{resolvedTheme:m}=(0,o.D)(),[n,r]=(0,g.useState)(!1);if(l)return(0,d.jsx)("div",{className:"flex items-center justify-center p-8",children:(0,d.jsx)("span",{className:"loading loading-spinner text-base-content/50"})});if(!k)return(0,d.jsx)("div",{className:"flex items-center justify-center p-8 opacity-50",children:"No diff available"});if((0,i.u)(h))return(0,d.jsx)(q.K,{filePath:h,imageDiff:k.imageDiff});if((0,i.kO)(h,k.left,k.right))return(0,d.jsx)("div",{className:"flex items-center justify-center p-8 opacity-50",children:"Binary file - diff not available"});let s=k.diff||"",t=s.length,u=(0,i.tq)(s);return(t>102400||u>3e3)&&!n?(0,d.jsxs)("div",{className:"flex flex-col items-center justify-center h-full gap-4 text-center p-8",children:[(0,d.jsx)("i",{className:"iconoir-warning-triangle text-[32px] text-warning","aria-hidden":"true"}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)("h3",{className:"font-bold text-lg",children:"Large Diff Detected"}),(0,d.jsxs)("p",{className:"opacity-70",children:["This diff is large (",Math.round(t/1024),"KB, ~",u," changed lines) and may freeze your browser if rendered."]})]}),(0,d.jsx)("button",{className:"btn btn-outline",onClick:()=>r(!0),children:"Show Diff Anyway"})]}):(0,d.jsx)("div",{className:"overflow-auto h-full",children:(0,d.jsx)(p.O,{oldValue:k.left||"",newValue:k.right||"",splitView:j,useDarkTheme:"dark"===m})})}function u({repoPath:a,commitHash:b=null,fromCommitHash:c=null,toCommitHash:f=null}){let h=!!c&&!!f,j=h?`${c}..${f}`:b??"none",{data:k,isLoading:l}=(0,e.gg)(a,{commitHash:b,fromCommitHash:c,toCommitHash:f}),[n,o]=(0,g.useState)(null),[p,q]=(0,g.useState)(!1),[r,u]=(0,g.useState)({}),v=(0,g.useMemo)(()=>(function(a){let b={name:"",path:"",children:new Map};for(let c of a){let a=c.path.split("/").filter(Boolean),d=b,e="";for(let b=0;b<a.length;b++){let f=a[b];e=e?`${e}/${f}`:f,d.children.has(f)||d.children.set(f,{name:f,path:e,children:new Map}),d=d.children.get(f),b===a.length-1&&(d.file=c)}}return b})(k?.files??[]),[k?.files]),w=(0,g.useMemo)(()=>(function a(b){let c=[];return Array.from(b.children.values()).forEach(b=>{b.children.size>0&&(c.push(b.path),c.push(...a(b)))}),c})(v),[v]),x=(0,g.useMemo)(()=>r[j]??new Set,[r,j]),[y,z]=(0,g.useState)(()=>!0);(0,m.v)(p,()=>q(!1));let A=(0,g.useMemo)(()=>{let a=new Set;return w.forEach(b=>{x.has(b)||a.add(b)}),n&&(function(a){let b=a.split("/").filter(Boolean),c=[];for(let a=1;a<b.length;a++)c.push(b.slice(0,a).join("/"));return c})(n).forEach(b=>a.add(b)),a},[w,x,n]),B=(0,g.useCallback)(a=>{u(b=>{let c=new Set(b[j]??new Set);return c.has(a)?c.delete(a):c.add(a),{...b,[j]:c}})},[j]);return l?(0,d.jsx)("div",{className:"flex items-center justify-center p-8 h-full",children:(0,d.jsx)("span",{className:"loading loading-spinner text-base-content/50"})}):k&&0!==k.files.length?(0,d.jsxs)("div",{className:(0,i.cn)("flex h-full",p&&"fixed inset-0 z-[80] h-auto bg-base-100 shadow-2xl"),children:[(0,d.jsxs)("div",{className:"w-64 border-r border-base-300 flex flex-col bg-base-200/30 shrink-0",children:[(0,d.jsxs)("div",{className:"px-3 py-2 text-xs font-bold opacity-70 border-b border-base-300 bg-base-100",children:[k.files.length," file",1!==k.files.length?"s":""," changed"]}),(0,d.jsx)("div",{className:"flex-1 overflow-y-auto min-h-0",children:(0,d.jsx)("div",{className:"p-1",children:(0,d.jsx)(s,{node:v,selectedFile:n,expandedFolders:A,onToggleFolder:B,onSelectFile:o})})})]}),(0,d.jsx)("div",{className:"flex-1 overflow-hidden",children:n?(0,d.jsxs)("div",{className:"h-full flex flex-col",children:[(0,d.jsxs)("div",{className:"px-4 py-2 text-xs font-mono opacity-70 border-b border-base-300 bg-base-100 shrink-0 truncate flex items-center justify-between",children:[(0,d.jsx)("span",{className:"truncate",children:n}),(0,d.jsxs)("div",{className:"flex items-center gap-2 shrink-0 ml-4",children:[(0,d.jsx)("label",{htmlFor:"commit-diff-split-view",className:"text-[10px] uppercase tracking-wider font-bold cursor-pointer opacity-70",children:"Split View"}),(0,d.jsx)("input",{type:"checkbox",id:"commit-diff-split-view",checked:y,onChange:a=>z(a.target.checked),className:"toggle toggle-xs toggle-primary"}),(0,d.jsx)("button",{type:"button",className:"btn btn-ghost btn-xs btn-square",onClick:()=>q(a=>!a),"aria-label":p?"Exit full-page diff view":"Expand diff viewer to full page",title:p?"Exit full-page diff view":"Expand diff viewer to full page",children:(0,d.jsx)("i",{className:(0,i.cn)(p?"iconoir-collapse":"iconoir-maximize","text-[14px]"),"aria-hidden":"true"})})]})]}),(0,d.jsx)("div",{className:"flex-1 overflow-auto diff-viewer-wrapper",children:(0,d.jsx)(t,{repoPath:a,commitHash:b,fromCommitHash:c,toCommitHash:f,filePath:n,splitView:y})})]}):(0,d.jsx)("div",{className:"flex items-center justify-center h-full opacity-70 text-sm",children:"Select a file to view changes"})})]}):(0,d.jsx)("div",{className:"flex items-center justify-center p-8 h-full opacity-50",children:h?"No changes in selected commit range":"No changes in this commit"})}function v(a,b=""){let c={name:"",children:new Map};for(let d of a){let a=d.split("/"),e=c;for(let c=0;c<a.length;c++){let f=a[c];e.children.has(f)||e.children.set(f,{name:f,children:new Map}),e=e.children.get(f),c===a.length-1&&(e.fullPath=b?`${b}/${d}`:d)}}return c}function w(a,b,c){if(b[a])return b[a];let d=a.split("/");for(let a=d.length-1;a>0;a--){let c=d.slice(0,a).join("/");if(b[c])return b[c]}if(c){let a=c.split("/");for(let c=a.length;c>0;c--){let d=a.slice(0,c).join("/");if(b[d])return b[d]}}return null}function x(a){return Array.from(a.children.values()).sort((a,b)=>{let c=a.children.size>0&&!a.fullPath,d=b.children.size>0&&!b.fullPath;return c&&!d?-1:!c&&d?1:a.name.localeCompare(b.name)})}function y(a,b,c=""){let d=[];for(let e of x(a)){if(void 0!==e.fullPath){d.push(e.fullPath);continue}let a=c?`${c}/${e.name}`:e.name;b.has(a)&&d.push(...y(e,b,a))}return d}function z(a){let b=[];for(let c of x(a)){if(c.fullPath){b.push(c.fullPath);continue}b.push(...z(c))}return b}function A({type:a,isActive:b,isInherited:c,onClick:e,showOnHover:f}){return(0,d.jsx)("button",{className:(0,i.cn)("p-0.5 rounded hover:bg-base-300 transition-colors shrink-0 cursor-pointer text-xs",b&&"bg-primary/10",c&&"opacity-50",!b&&!f&&"opacity-0 group-hover:opacity-100"),onClick:e,title:"visible"===a?b?"Remove visible filter":"Show only this branch":b?"Remove hide filter":"Hide this branch",children:"visible"===a?(0,d.jsx)("i",{className:"iconoir-eye text-[14px]","aria-hidden":"true"}):(0,d.jsx)("i",{className:"iconoir-eye-closed text-[14px]","aria-hidden":"true"})})}function B({name:a,groupPath:b,icon:c,isExpanded:e,onToggle:f,visibilityMap:g,onToggleVisibility:h,depth:j=0}){let k=g[b],l=b.includes("/")?b.split("/").slice(0,-1).join("/"):void 0,m=l?g[l]:null,n=k||m,o=!k&&null!==m;return(0,d.jsxs)("div",{className:(0,i.cn)("group flex items-center gap-1 px-2 py-1.5 text-sm rounded-md cursor-pointer hover:bg-base-200 transition-colors font-medium"),style:{paddingLeft:`${12*j+8}px`},children:[(0,d.jsxs)("div",{className:"flex items-center gap-1.5 flex-1 min-w-0",onClick:f,children:[(0,d.jsx)("span",{className:"text-xs opacity-70",children:e?"▼":"▶"}),(0,d.jsx)("span",{className:"shrink-0",children:c}),(0,d.jsx)("span",{className:"truncate min-w-0 flex-1",children:a})]}),(0,d.jsxs)("div",{className:"flex items-center gap-0.5 ml-auto",children:[(0,d.jsx)(A,{type:"visible",isActive:"visible"===k||o&&"visible"===n,isInherited:o&&"visible"===n,onClick:a=>{a.stopPropagation(),h(b,"visible")},showOnHover:"visible"===k||o&&"visible"===n}),(0,d.jsx)(A,{type:"hidden",isActive:"hidden"===k||o&&"hidden"===n,isInherited:o&&"hidden"===n,onClick:a=>{a.stopPropagation(),h(b,"hidden")},showOnHover:"hidden"===k||o&&"hidden"===n})]})]})}function C({node:a,currentBranch:b,expandedFolders:c,onToggleFolder:e,onCheckout:f,onCheckoutToLocal:g,onCreateBranch:h,onDeleteBranch:k,onRenameBranch:l,onRenameRemoteBranch:m,onRebase:n,onMerge:o,onPushToRemote:p,onPullFromRemote:q,getBranchContextMenuItems:r,onBranchClick:s,onBranchContextMenu:t,onDeleteBranchGroup:u,selectedBranches:v,visibilityMap:x,onToggleVisibility:y,parentPath:B="",depth:D=0,groupPath:E,isRemote:F=!1,trackingInfo:G}){let H=Array.from(a.children.values()).sort((a,b)=>{let c=a.children.size>0&&!a.fullPath,d=b.children.size>0&&!b.fullPath;return c&&!d?-1:!c&&d?1:a.name.localeCompare(b.name)});return(0,d.jsx)(d.Fragment,{children:H.map(a=>{let H=void 0!==a.fullPath,I=a.children.size>0&&!H,J=a.fullPath||(B?`${B}/${a.name}`:a.name),K=c.has(J),L=H&&a.fullPath===b,M=x[J],N=w(J,x,E),O=!M&&null!==N;if(I){let w=z(a).filter(a=>a!==b);return(0,d.jsxs)("div",{children:[(0,d.jsx)(j,{items:[{label:"Delete",icon:(0,d.jsx)("i",{className:"iconoir-trash text-[14px]","aria-hidden":"true"}),onClick:()=>u(w),danger:!0,disabled:0===w.length}],children:(0,d.jsxs)("div",{className:(0,i.cn)("group flex items-center gap-1 px-2 py-1.5 text-sm rounded-md cursor-pointer hover:bg-base-200 transition-colors opacity-70 select-none"),style:{paddingLeft:`${12*D+8}px`},children:[(0,d.jsxs)("div",{className:"flex items-center gap-1 flex-1 min-w-0",onClick:()=>e(J),children:[(0,d.jsx)("span",{className:"text-xs opacity-70",children:K?"▼":"▶"}),(0,d.jsx)("i",{className:"iconoir-folder text-[16px] shrink-0","aria-hidden":"true"}),(0,d.jsx)("span",{className:"truncate min-w-0 flex-1",children:a.name})]}),(0,d.jsxs)("div",{className:"flex items-center gap-0.5 ml-auto",children:[(0,d.jsx)(A,{type:"visible",isActive:"visible"===M||O&&"visible"===N,isInherited:O&&"visible"===N,onClick:a=>{a.stopPropagation(),y(J,"visible")},showOnHover:"visible"===M||O&&"visible"===N}),(0,d.jsx)(A,{type:"hidden",isActive:"hidden"===M||O&&"hidden"===N,isInherited:O&&"hidden"===N,onClick:a=>{a.stopPropagation(),y(J,"hidden")},showOnHover:"hidden"===M||O&&"hidden"===N})]})]})}),K&&(0,d.jsx)(C,{node:a,currentBranch:b,expandedFolders:c,onToggleFolder:e,onCheckout:f,onCheckoutToLocal:g,onCreateBranch:h,onDeleteBranch:k,onRenameBranch:l,onRenameRemoteBranch:m,onRebase:n,onMerge:o,onPushToRemote:p,onPullFromRemote:q,getBranchContextMenuItems:r,onBranchClick:s,onBranchContextMenu:t,onDeleteBranchGroup:u,selectedBranches:v,visibilityMap:x,onToggleVisibility:y,parentPath:J,depth:D+1,groupPath:E,isRemote:F,trackingInfo:G})]},J)}let P=!F&&a.fullPath?G?.[a.fullPath]:void 0,Q=P&&(P.ahead>0||P.behind>0),R=r({branchRef:a.fullPath,branchLeafName:a.name,currentBranch:b,isRemote:F,selectedBranchRefs:v.has(a.fullPath)?Array.from(v):[a.fullPath]}),S=v.has(a.fullPath);return(0,d.jsx)(j,{items:R,children:(0,d.jsxs)("div",{className:(0,i.cn)("group flex items-center gap-2 px-2 py-1.5 text-sm rounded-md cursor-pointer transition-colors select-none",!S&&"hover:bg-base-200",S&&"bg-primary/10 hover:bg-primary/20",L&&"bg-base-200 font-medium text-primary"),style:{paddingLeft:`${12*D+8}px`},onContextMenu:()=>t?.(a.fullPath),children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 flex-1 min-w-0",onClick:b=>s?.(a.fullPath,{isMultiSelect:b.metaKey||b.ctrlKey,isRangeSelect:b.shiftKey}),onDoubleClick:()=>!L&&f(a.fullPath),children:[L?(0,d.jsx)("span",{className:"w-3 h-3 flex items-center justify-center shrink-0",children:(0,d.jsx)("span",{className:"w-2 h-2 rounded-full bg-primary"})}):F?(0,d.jsx)("i",{className:"iconoir-globe text-[14px] opacity-50 shrink-0","aria-hidden":"true"}):(0,d.jsx)("i",{className:"iconoir-git-branch text-[14px] opacity-50 shrink-0","aria-hidden":"true"}),(0,d.jsx)("span",{className:"truncate min-w-0 flex-1",title:a.fullPath,children:a.name}),Q&&(0,d.jsxs)("span",{className:"flex items-center gap-1 text-xs opacity-70 shrink-0",title:`${P.ahead} ahead, ${P.behind} behind ${P.upstream}`,children:[P.ahead>0&&(0,d.jsxs)("span",{className:"flex items-center gap-0.5 text-xs",children:[(0,d.jsx)("i",{className:"iconoir-arrow-up text-[12px]","aria-hidden":"true"}),(0,d.jsx)("span",{children:P.ahead})]}),P.behind>0&&(0,d.jsxs)("span",{className:"flex items-center gap-0.5 text-xs",children:[(0,d.jsx)("i",{className:"iconoir-arrow-down text-[12px]","aria-hidden":"true"}),(0,d.jsx)("span",{children:P.behind})]})]})]}),(0,d.jsxs)("div",{className:"flex items-center gap-0.5 ml-auto",children:[(0,d.jsx)(A,{type:"visible",isActive:"visible"===M||O&&"visible"===N,isInherited:O&&"visible"===N,onClick:a=>{a.stopPropagation(),y(J,"visible")},showOnHover:"visible"===M||O&&"visible"===N}),(0,d.jsx)(A,{type:"hidden",isActive:"hidden"===M||O&&"hidden"===N,isInherited:O&&"hidden"===N,onClick:a=>{a.stopPropagation(),y(J,"hidden")},showOnHover:"hidden"===M||O&&"hidden"===N})]})]})},a.fullPath)})})}var D=c(9099);async function E(a){try{return await navigator.clipboard.writeText(a),!0}catch{let b=document.createElement("textarea");b.value=a,b.style.position="fixed",b.style.left="-9999px",document.body.appendChild(b),b.select();try{return document.execCommand("copy"),!0}catch{return!1}finally{document.body.removeChild(b)}}}let F={isOpen:!1,executionId:null,scriptName:"",branchRef:"",output:"",status:"idle",error:null};function G({repoPath:a}){(0,f.jE)();let{data:b}=(0,e.t0)();(0,e.Y5)();let c=(0,D.useRouter)(),h=(0,D.useSearchParams)();(h.get("branch")??"").trim(),(0,g.useRef)(null),(0,g.useRef)(null);let[k,o]=(0,g.useState)(100),{data:p,isLoading:q,isError:r,error:s,refetch:t,isFetching:x}=(0,e._X)(a,k),{data:A,isLoading:G,refetch:H}=(0,e._6)(a);A?.current?.trim();let{data:I}=(0,e.en)(a),[J,K]=(0,g.useState)(null),[L,M]=(0,g.useState)([]),[N,O]=(0,g.useState)(null),P=(0,g.useRef)(0);(0,g.useCallback)(()=>{let a=Date.now();a-P.current<500||(P.current=a,Promise.all([H(),t()]))},[H,t]);let Q=(0,g.useCallback)(a=>{K(a),M(a?[a]:[]),O(a)},[]),{mutateAsync:R}=(0,e.a3)(),S=(0,g.useCallback)(()=>{let a=new URLSearchParams(h.toString()).toString();c.push(a?`/workspace/conflicts?${a}`:"/workspace/conflicts")},[c,h]),T=(0,g.useCallback)(a=>{if(!(a instanceof Error))return!1;let b=a.message.toLowerCase();return b.includes("conflict")||b.includes("could not apply")||b.includes("fix conflicts")||b.includes("resolve all conflicts")||b.includes("merge --continue")||b.includes("rebase --continue")},[]),[U,V]=(0,g.useState)(!1),[W,X]=(0,g.useState)(""),[Y,Z]=(0,g.useState)(null),[$,_]=(0,g.useState)(!1),[aa,ab]=(0,g.useState)(!1),[ac,ad]=(0,g.useState)(null),[ae,af]=(0,g.useState)(""),[ag,ah]=(0,g.useState)(!1),[ai,aj]=(0,g.useState)(!1),[ak,al]=(0,g.useState)(!1),[am,an]=(0,g.useState)([]),[ao,ap]=(0,g.useState)(!1),[aq,ar]=(0,g.useState)(!1),[as,at]=(0,g.useState)(!1),[au,av]=(0,g.useState)(null),[aw,ax]=(0,g.useState)(!1),[ay,az]=(0,g.useState)(!1),[aA,aB]=(0,g.useState)(null),[aC,aD]=(0,g.useState)(!1),[aE,aF]=(0,g.useState)(!1),[aG,aH]=(0,g.useState)(!1),[aI,aJ]=(0,g.useState)([]),[aK,aL]=(0,g.useState)(!1),[aM,aN]=(0,g.useState)(!1),[aO,aP]=(0,g.useState)(!1),[aQ,aR]=(0,g.useState)(!1),[aS,aT]=(0,g.useState)(null),[aU,aV]=(0,g.useState)(null),[aW,aX]=(0,g.useState)(""),[aY,aZ]=(0,g.useState)(!1),[a$,a_]=(0,g.useState)(!1),[a0,a1]=(0,g.useState)(!1),[a2,a3]=(0,g.useState)(null),[a4,a5]=(0,g.useState)(""),[a6,a7]=(0,g.useState)(!1),[a8,a9]=(0,g.useState)(!1),[ba,bb]=(0,g.useState)(null),[bc,bd]=(0,g.useState)(!1),[be,bf]=(0,g.useState)(!1),[bg,bh]=(0,g.useState)("origin"),[bi,bj]=(0,g.useState)(""),[bk,bl]=(0,g.useState)(!1),[bm,bn]=(0,g.useState)(!1),[bo,bp]=(0,g.useState)(null),[bq,br]=(0,g.useState)(null),[bs,bt]=(0,g.useState)(!0),[bu,bv]=(0,g.useState)(!1),[bw,bx]=(0,g.useState)("checking"),by=(0,g.useCallback)(()=>{bn(!1),bp(null),br(null),bx("checking")},[]),[bz,bA]=(0,g.useState)(!1),[bB,bC]=(0,g.useState)(null),[bD,bE]=(0,g.useState)(null),[bF,bG]=(0,g.useState)(!1),[bH,bI]=(0,g.useState)(!1),[bJ,bK]=(0,g.useState)(!1),[bL,bM]=(0,g.useState)(""),[bN,bO]=(0,g.useState)(!1),[bP,bQ]=(0,g.useState)("checking"),bR=(0,g.useCallback)(()=>{bA(!1),bC(null),bE(null),bQ("checking")},[]),[bS,bT]=(0,g.useState)(!1),[bU,bV]=(0,g.useState)(null),[bW,bX]=(0,g.useState)([]),[bY,bZ]=(0,g.useState)(""),[b$,b_]=(0,g.useState)([]),[b0,b1]=(0,g.useState)(""),[b2,b3]=(0,g.useState)(null),[b4,b5]=(0,g.useState)(!1),[b6,b7]=(0,g.useState)(!1),[b8,b9]=(0,g.useState)(!0),[ca,cb]=(0,g.useState)(!1),[cc,cd]=(0,g.useState)(""),[ce,cf]=(0,g.useState)(!1),[cg,ch]=(0,g.useState)(null),[ci,cj]=(0,g.useState)(!1),[ck,cl]=(0,g.useState)(!1),[cm,cn]=(0,g.useState)(!1),[co,cp]=(0,g.useState)(null),[cq,cr]=(0,g.useState)([]),[cs,ct]=(0,g.useState)(""),[cu,cv]=(0,g.useState)([]),[cw,cx]=(0,g.useState)(""),[cy,cz]=(0,g.useState)(null),[cA,cB]=(0,g.useState)(!0),[cC,cD]=(0,g.useState)(!1),[cE,cF]=(0,g.useState)(null),[cG,cH]=(0,g.useState)(!1),[cI,cJ]=(0,g.useState)(!1),[cK,cL]=(0,g.useState)(!1),[cM,cN]=(0,g.useState)(!1),[cO,cP]=(0,g.useState)(!1),[cQ,cR]=(0,g.useState)(!1),[cS,cT]=(0,g.useState)(null),[cU,cV]=(0,g.useState)(""),[cW,cX]=(0,g.useState)(!1),[cY,cZ]=(0,g.useState)(!1),[c$,c_]=(0,g.useState)(null),[c0,c1]=(0,g.useState)(!1),[c2,c3]=(0,g.useState)(!1),[c4,c5]=(0,g.useState)(null),[c6,c7]=(0,g.useState)(!1),[c8,c9]=(0,g.useState)(!1),[da,db]=(0,g.useState)(null),[dc,dd]=(0,g.useState)(""),[de,df]=(0,g.useState)(""),[dg,dh]=(0,g.useState)(!1),di=(0,g.useRef)(null),[dj,dk]=(0,g.useState)(null),[dl,dm]=(0,g.useState)([]),[dn,dp]=(0,g.useState)(null),[dq,dr]=(0,g.useState)(!1),ds=(0,g.useRef)(null),[dt,du]=(0,g.useState)(F),[dv,dw]=(0,g.useState)(!1),[dx,dy]=(0,g.useState)(!1),[dz,dA]=(0,g.useState)(!1),dB="starting"===dt.status||"running"===dt.status,dC="completed"===dt.status||"failed"===dt.status||"canceled"===dt.status,dD=(0,g.useCallback)(()=>{aR(!1),aT(null),aV(null),aX(""),aZ(!1)},[]),dE=(0,g.useCallback)(()=>{a1(!1),a3(null),a5("")},[]),dF=(0,g.useCallback)(()=>{a9(!1),bb(null)},[]),dG=(0,g.useCallback)(()=>{bf(!1),bh("origin"),bj("")},[]),dH=(0,g.useCallback)(()=>{c9(!1),db(null),dd(""),df("")},[]),dI=(0,g.useCallback)(()=>{if(aM){aN(!1),aJ([]);return}if(cQ)return void cR(!1);if(U){V(!1),Z(null);return}if(aa){ab(!1),ad(null),af(""),ah(!1);return}if(cm)return void cn(!1);if(bS)return void bT(!1);if(bz)return void bR();if(bm)return void by();if(aQ)return void dD();if(a0)return void dE();if(a8)return void dF();if(be)return void dG();if(aG){aH(!1),aJ([]);return}if(ak){al(!1),an([]),ap(!1);return}if(as){at(!1),av(null);return}if(ay){az(!1),aB(null),aD(!1);return}if(c8)return void dH();if(cY)return void cZ(!1);if(c2){c3(!1),c5(null);return}dq?dr(!1):dt.isOpen&&dC&&(du(F),dA(!1),dw(!1))},[aM,cQ,U,aa,cm,bS,bR,bz,by,bm,aQ,dD,a0,dE,a8,dF,be,dG,aG,ak,as,ay,c8,dH,cY,c2,dq,dt.isOpen,dC]),dJ=cY||c2||c8||ak||as||ay||aM||aG||aQ||a0||a8||be||bm||bz||bS||cm||U||aa||cQ||dq||dt.isOpen;(0,m.v)(dJ,dI);let[dK,dL]=(0,g.useState)(300),[dM,dN]=(0,g.useState)(!1),dO=(0,g.useRef)(null),[dP,dQ]=(0,g.useState)(.28),[dR,dS]=(0,g.useState)(!1),dT=(0,g.useRef)(null);(0,g.useRef)(!1);let dU=(0,g.useCallback)(a=>{a.preventDefault(),dN(!0),dO.current={startY:a.clientY,startHeight:dK}},[dK]),dV=(0,g.useCallback)(a=>{a.preventDefault(),dS(!0)},[]),dW=(0,g.useMemo)(()=>A?.branches?v(A.branches):null,[A?.branches]),dX=(0,g.useMemo)(()=>{if(!A?.remotes)return null;var a=A.remotes;let b=new Map;for(let[c,d]of Object.entries(a))b.set(c,v(d,`remotes/${c}`));return b},[A?.remotes]);(0,g.useMemo)(()=>{let a=new Set;for(let b of A?.branches??[])a.add(b);for(let[b,c]of Object.entries(A?.remotes??{}))for(let d of c)a.add(`remotes/${b}/${d}`);return a},[A?.branches,A?.remotes]);let dY=(0,g.useMemo)(()=>new Set(dl),[dl]),dZ=(0,e.GK)(a),d$=(0,e.Lp)(),d_=(0,g.useMemo)(()=>(dZ?.customScripts??[]).filter(a=>"branch"===a.target&&"run-bash-script"===a.action&&a.name.trim().length>0&&a.content.trim().length>0),[dZ?.customScripts]),[d0,d1]=(0,g.useState)(!0),[d2,d3]=(0,g.useState)(!0),[d4,d5]=(0,g.useState)(!0),[d6,d7]=(0,g.useState)({}),[d8,d9]=(0,g.useState)(new Set),ea=(0,g.useMemo)(()=>{let a=[];if(d0&&dW&&a.push(...y(dW,d8)),d2&&dX)for(let[b,c]of Array.from(dX.entries())){let d=`__remotes__/${b}`;d8.has(d)&&a.push(...y(c,d8,`remotes/${b}`))}return a},[d8,dW,d0,dX,d2]);(0,g.useRef)(null);let eb=(0,g.useCallback)(b=>{d$.mutate({path:a,updates:b})},[a,d$]),ec=(0,g.useCallback)(()=>{let a=!d0;d1(a),eb({localGroupExpanded:a})},[d0,eb]),ed=(0,g.useCallback)(()=>{let a=!d2;d3(a),eb({remotesGroupExpanded:a})},[d2,eb]),ee=(0,g.useCallback)(()=>{let a=!d4;d5(a),eb({worktreesGroupExpanded:a})},[eb,d4]),ef=(0,g.useCallback)(a=>{d9(b=>{let c=new Set(b);return c.has(a)?c.delete(a):c.add(a),eb({expandedFolders:Array.from(c)}),c})},[eb]),eg=(0,g.useCallback)((a,b)=>{d7(c=>{let d={...c};d[a]===b?delete d[a]:d[a]=b;let e={};return Object.entries(d).forEach(([a,b])=>{("visible"===b||"hidden"===b)&&(e[a]=b)}),eb({visibilityMap:e}),d})},[eb]),eh=(0,g.useCallback)(()=>{d7({}),eb({visibilityMap:{}})},[eb]),ei=(0,g.useCallback)((a,b)=>{let c=w(a,d6);if(c)return c;if(b){let b=a.split("/");if(b.length>=2&&"remotes"===b[0]){let a=b[1],c=d6[`__remotes__/${a}`];if(c)return c;let d=d6.__remotes__;if(d)return d}}else{let a=d6.__local__;if(a)return a}return null},[d6]),ej=(0,g.useMemo)(()=>{if(!p?.all||!A?.branches||!A?.branchCommits)return p?.all||[];let a=Object.values(d6).some(a=>"visible"===a),b=Object.values(d6).some(a=>"hidden"===a);if(!a&&!b)return p.all;let c=[...A.branches.map(a=>({branch:a,isRemote:!1}))];if(A.remotes)for(let[a,b]of Object.entries(A.remotes))for(let d of b)c.push({branch:`remotes/${a}/${d}`,isRemote:!0});let d=new Set,e=new Set,f=new Set;for(let{branch:a,isRemote:b}of c){let c=ei(a,b);"visible"===c?d.add(a):"hidden"===c?e.add(a):f.add(a)}let g=new Map(p.all.map(a=>[a.hash,a])),h=(a,b)=>{let c=[a];for(;c.length>0;){let a=c.pop();if(b.has(a))continue;let d=g.get(a);if(d)for(let e of(b.add(a),d.parents||[]))b.has(e)||c.push(e)}},i=new Set;for(let a of d){let b=A.branchCommits[a];b&&h(b,i)}if(a)return p.all.filter(a=>i.has(a.hash));if(b){let a=new Set;for(let b of f){let c=A.branchCommits[b];c&&h(c,a)}return p.all.filter(b=>a.has(b.hash))}return p.all},[p?.all,A?.branches,A?.branchCommits,A?.remotes,d6,ei]),ek=(0,g.useMemo)(()=>new Set(L),[L]),el=(0,g.useMemo)(()=>ej.map(a=>a.hash),[ej]),em=(0,g.useMemo)(()=>J?p?.all.find(a=>a.hash===J):null,[p?.all,J]),en=(0,g.useMemo)(()=>{if(!p?.all||L.length<2)return null;let a=new Map(p.all.map(a=>[a.hash,a])),b=new Map(el.map((a,b)=>[a,b])),c=Array.from(new Set(L)).filter(a=>b.has(a)).sort((a,c)=>(b.get(a)??Number.MAX_SAFE_INTEGER)-(b.get(c)??Number.MAX_SAFE_INTEGER));if(c.length<2)return null;let d=c[0],e=c[c.length-1],f=a.get(d),g=a.get(e);return f&&g?{latestHash:d,oldestHash:e,latestCommit:f,oldestCommit:g}:null},[el,p?.all,L]),eo=!!en,ep=(0,g.useCallback)((a,b)=>{let c=b?.isRangeSelect??!1,d=b?.isMultiSelect??!1;if(c){let b=N??J??a,c=el.indexOf(b),d=el.indexOf(a);if(-1!==c&&-1!==d){let[e,f]=c<d?[c,d]:[d,c];M(el.slice(e,f+1)),K(a),O(b);return}}if(d){if(ek.has(a)){let b=L.filter(b=>b!==a);M(b),K(c=>c!==a?c:b.length>0?b[b.length-1]:null),N===a&&O(b.length>0?b[b.length-1]:null)}else M([...L,a]),K(a),O(a);return}Q(a)},[el,ek,L,J,N,Q]),eq=(0,g.useMemo)(()=>ej.filter(a=>ek.has(a.hash)).reverse(),[ej,ek]),er=(0,g.useMemo)(()=>Object.values(d6).some(a=>"visible"===a||"hidden"===a),[d6]),es=(0,g.useMemo)(()=>{let a=new Set;if(A?.branches)for(let b of A.branches)"hidden"===ei(b,!1)&&a.add(b);if(A?.remotes)for(let[b,c]of Object.entries(A.remotes))for(let d of c){let c=`remotes/${b}/${d}`;"hidden"===ei(c,!0)&&a.add(c)}return a},[A?.branches,A?.remotes,ei]),et=(0,g.useCallback)(a=>{if(!A?.branchCommits)return;let b=A.branchCommits[a];if(b){if(p?.all?.some(a=>a.hash===b)&&di.current&&di.current.scrollToCommit(b))return void Q(b);dk(b),Q(b)}},[A?.branchCommits,p?.all,Q]),eu=(0,g.useCallback)((a,b)=>{let c=b?.isRangeSelect??!1,d=b?.isMultiSelect??!1;if(c){let b=dn??a,c=ea.indexOf(b),d=ea.indexOf(a);if(-1!==c&&-1!==d){let[e,f]=c<d?[c,d]:[d,c],g=ea.slice(e,f+1);dY.has(a)?dm(dl.filter(a=>!g.includes(a))):dm(Array.from(new Set([...dl,...g]))),dp(b)}else dm([a]),dp(a);return}if(d){dY.has(a)?dm(dl.filter(b=>b!==a)):dm([...dl,a]),dp(a);return}dm([a]),dp(a),et(a)},[dn,ea,et,dl,dY]),ev=(0,g.useCallback)(a=>{dY.has(a)||(dm([a]),dp(a))},[dY]),ew=(0,g.useCallback)(async(b,c)=>{dA(!1),dw(!1),du({isOpen:!0,executionId:null,scriptName:b.name,branchRef:c,output:"",status:"starting",error:null});try{let d=await fetch("/api/custom-scripts",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({command:"start",repoPath:a,branchRef:c,scriptContent:b.content})}),e=await d.json();if(!d.ok)throw Error(e.error||"Failed to start script execution");let f=[];e.previousBranch&&e.checkedOutBranch&&e.previousBranch!==e.checkedOutBranch&&f.push(`[info] Checked out ${e.checkedOutBranch} (from ${e.previousBranch})`),du(a=>({...a,executionId:e.executionId,output:[f.join("\n"),e.output].filter(Boolean).join("\n"),status:e.status,error:null}))}catch(a){du(b=>({...b,status:"failed",error:a.message,output:b.output?`${b.output}
1
+ "use strict";exports.id=725,exports.ids=[725],exports.modules={725:(a,b,c)=>{c.d(b,{u:()=>G});var d=c(8249),e=c(4626),f=c(5023),g=c(7484);function h(a){let b=0x811c9dc5;for(let c=0;c<a.length;c++)b^=a.charCodeAt(c),b=Math.imul(b,0x1000193);return b>>>0}var i=c(4490);function j({children:a,items:b,containerClassName:c="w-full"}){let[e,f]=(0,g.useState)(!1),[h,j]=(0,g.useState)({x:0,y:0}),k=(0,g.useRef)(null),l=(0,g.useRef)(null),m=(a,b)=>{let c=!!a.children?.length;return(0,d.jsxs)("li",{className:(0,i.cn)(c&&"relative group/submenu"),children:[(0,d.jsxs)("a",{onClick:b=>{b.stopPropagation(),a.disabled||c||(a.onClick?.(),f(!1))},className:(0,i.cn)("flex items-center gap-2","whitespace-nowrap",a.danger&&"text-error",a.disabled&&"opacity-40 pointer-events-none",c&&"flex items-center justify-between gap-3"),children:[(0,d.jsxs)("span",{className:"flex min-w-0 items-center gap-2",children:[a.icon&&(0,d.jsx)("span",{className:"inline-flex shrink-0 opacity-80",children:a.icon}),(0,d.jsx)("span",{children:a.labelNode??a.label})]}),c&&(0,d.jsx)("i",{className:"iconoir-nav-arrow-right text-[12px]","aria-hidden":"true"})]}),c&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{className:"hidden group-hover/submenu:block absolute left-full top-0 h-full w-3"}),(0,d.jsx)("ul",{className:"hidden group-hover/submenu:block absolute left-[calc(100%-1px)] top-0 menu !m-0 p-2 shadow-lg bg-base-100 rounded-box border border-base-200 min-w-[220px] z-[10000] [&:before]:hidden",children:a.children.map((a,c)=>m(a,`${b}-${c}`))})]})]},b)};return(0,d.jsxs)("div",{ref:l,className:c,onContextMenu:a=>{a.preventDefault(),a.stopPropagation(),j({x:a.clientX,y:a.clientY}),f(!0)},children:[a,e&&(0,d.jsx)("ul",{ref:k,className:"fixed z-[9999] menu p-2 shadow-lg bg-base-100 rounded-box border border-base-200",style:{left:`${h.x}px`,top:`${h.y}px`},children:b.map((a,b)=>m(a,`menu-${b}`))})]})}function k({text:a,searchQuery:b}){if(!b||!a)return(0,d.jsx)(d.Fragment,{children:a});let c=b.toLowerCase(),e=a.toLowerCase(),f=[],g=0,h=e.indexOf(c);for(;-1!==h;)h>g&&f.push({text:a.slice(g,h),highlighted:!1}),f.push({text:a.slice(h,h+c.length),highlighted:!0}),g=h+c.length,h=e.indexOf(c,g);return(g<a.length&&f.push({text:a.slice(g),highlighted:!1}),0===f.length)?(0,d.jsx)(d.Fragment,{children:a}):(0,d.jsx)(d.Fragment,{children:f.map((a,b)=>a.highlighted?(0,d.jsx)("mark",{className:"bg-warning text-warning-content rounded-sm px-0.5",children:a.text},b):(0,d.jsx)("span",{children:a.text},b))})}let l=(0,g.forwardRef)(function({commits:a,onSelectCommit:b,onResetToCommit:c,onRevertCommit:e,onCreateTag:f,onCherryPickCommit:l,onCherryPickSelectedCommits:m,onRewordCommit:n,selectedHash:o,selectedHashes:p,onEndReached:q,isLoadingMore:r,currentBranch:s,hiddenBranches:t,localBranches:u=[],trackingInfo:v,getBranchTagContextMenuItems:w},x){let y=(0,g.useCallback)(a=>a.startsWith("refs/heads/")?a.slice(11):a.startsWith("refs/remotes/")?a.slice(13):a.startsWith("remotes/")?a.slice(8):a,[]),z=(0,g.useCallback)(a=>a.startsWith("tag:")?a.replace(/^tag:\s*/,"").trim():a,[]),A=(0,g.useMemo)(()=>(function(a,b={}){let c=[],d=new Set(b.localBranches??[]),e=[],f=[],g=[];function i(){for(let a=0;a<e.length;a++)if(null===e[a])return a;return e.length}function j(a){let b,c=g[a],d=c?(b=h(c),`hsl(${b%360} 82% 52%)`):f[a]??`hsl(${47*a%360} 78% 56%)`;return f[a]=d,d}return a.forEach((a,b)=>{var h;let k=[];for(let b=0;b<e.length;b++)e[b]===a.hash&&k.push(b);let l=k.length>0?k[0]:-1;for(-1===l&&(l=i());e.length<=l;)e.push(null),g.push(null),f.push(void 0);let m=function(a,b){if(0===a.length)return null;let c=a.find(a=>b.has(a));return c||a[0]}((h=a.refs)?h.replace(/^\s*\((.*)\)\s*$/,"$1").split(",").map(a=>a.trim()).filter(Boolean).map(a=>a.replace(/^HEAD\s*->\s*/,"").trim()).map(a=>a.startsWith("refs/heads/")?a.slice(11):a.startsWith("refs/remotes/")?a.slice(13):a.startsWith("remotes/")?a.slice(8):a).filter(a=>!a.startsWith("tag:")).filter(a=>"HEAD"!==a).filter(a=>!/\/HEAD$/.test(a)):[],d);if(m){let a=function(a,b){let c,d;if(b.has(a))return a;let e=-1===(d=(c=a.startsWith("remotes/")?a.slice(8):a).indexOf("/"))?null:c.slice(d+1);return e&&b.has(e)?e:a}(m,d);(function(a,b,c){return!b||c.has(a)&&!c.has(b)})(a,g[l],d)&&(g[l]=a)}let n=j(l),o={...a,x:l,y:b,color:n,paths:[],isMerge:a.parents.length>1},p=k.filter(a=>a!==l),q=new Set(p);for(let a=0;a<e.length;a++)a===l||null===e[a]||q.has(a)||o.paths.push({x1:a,y1:b,x2:a,y2:b+1,color:j(a),type:"straight"});for(let a of(e[l]=null,p))o.paths.push({x1:a,y1:b,x2:l,y2:b+1,color:j(a),type:"merge"}),e[a]=null,g[a]=null,f[a]=void 0;let r=a.parents;if(r.length>0){let a=r[0];e[l]=a,o.paths.push({x1:l,y1:b,x2:l,y2:b+1,color:n,type:"straight"});for(let a=1;a<r.length;a++){let c=r[a],d=e.indexOf(c);if(-1!==d)o.paths.push({x1:l,y1:b,x2:d,y2:b+1,color:j(d),type:"fork"});else{let a=i();for(;e.length<=a;)e.push(null),g.push(null),f.push(void 0);e[a]=c,o.paths.push({x1:l,y1:b,x2:a,y2:b+1,color:j(a),type:"fork"})}}}null===e[l]&&(g[l]=null,f[l]=void 0),c.push(o)}),c})(a,{localBranches:u}),[a,u]),B=(0,g.useRef)(null),C=(0,g.useRef)(null),[D,E]=(0,g.useState)(!1),[F,G]=(0,g.useState)("");(0,g.useEffect)(()=>{let a=a=>{(a.metaKey||a.ctrlKey)&&"f"===a.key&&(a.preventDefault(),E(!0),setTimeout(()=>C.current?.focus(),0)),"Escape"===a.key&&D&&(E(!1),G(""))};return window.addEventListener("keydown",a),()=>window.removeEventListener("keydown",a)},[D]);let H=(0,g.useCallback)(()=>{E(!1),G("")},[]);if((0,g.useImperativeHandle)(x,()=>({scrollToCommit:a=>{if(!A||0===A.length)return!1;let b=A.findIndex(b=>b.hash===a);if(-1===b)return!1;if(B.current){let a=24*b-B.current.clientHeight/2+12;B.current.scrollTop=Math.max(0,a)}return!0}}),[A]),!A||0===A.length)return null;let I=(Math.max(...A.map(a=>a.x),0)+1)*12+20,J=24*A.length;return(0,d.jsxs)("div",{className:"flex flex-col h-full bg-base-100 overflow-hidden font-mono text-sm select-none",children:[D&&(0,d.jsxs)("div",{className:"sticky top-0 z-30 bg-base-100 border-b border-base-300 px-2 py-2 flex items-center gap-2",children:[(0,d.jsx)("span",{className:"opacity-50",children:"\uD83D\uDD0D"}),(0,d.jsx)("input",{ref:C,type:"text",placeholder:"Search in commits...",value:F,onChange:a=>G(a.target.value),className:"input input-bordered input-sm flex-1 text-sm",autoFocus:!0}),(0,d.jsx)("div",{className:"tooltip tooltip-left z-50","data-tip":"Close search (Esc)",children:(0,d.jsx)("button",{onClick:H,className:"btn btn-ghost btn-sm btn-square",children:"✖️"})})]}),(0,d.jsx)("div",{className:"flex-1 overflow-auto h-full max-w-full px-2",onScroll:a=>{let{scrollTop:b,clientHeight:c,scrollHeight:d}=a.currentTarget;d-b-c<100&&q?.()},ref:B,children:(0,d.jsxs)("div",{className:"relative min-w-full",style:{height:J},children:[(0,d.jsxs)("svg",{width:I,height:J,className:"absolute top-0 left-0 pointer-events-none z-10",children:[A.map(a=>(0,d.jsx)("g",{children:a.paths.map((a,b)=>{let c=12*a.x1+6,e=24*a.y1+12,f=12*a.x2+6,g=24*a.y2+12,h="";if("straight"===a.type)h=`M ${c} ${e} L ${f} ${g}`;else{let a=e+12,b=g-12;h=`M ${c} ${e} C ${c} ${a}, ${f} ${b}, ${f} ${g}`}return(0,d.jsx)("path",{d:h,stroke:a.color,strokeWidth:2,fill:"none",strokeLinecap:"round"},b)})},a.hash)),A.map(a=>(0,d.jsx)("circle",{cx:12*a.x+6,cy:24*a.y+12,r:3,fill:a.color,stroke:a.color,strokeWidth:2},`dot-${a.hash}`))]}),(0,d.jsxs)("div",{style:{width:"100%"},children:[A.map(a=>{let g=p?p.has(a.hash):o===a.hash,q=p?.size??+!!o,r=[{label:"Reset to here",icon:(0,d.jsx)("i",{className:"iconoir-refresh-circle text-[14px]","aria-hidden":"true"}),onClick:()=>c?.(a.hash)}];if(e&&r.push({label:"Revert commit",icon:(0,d.jsx)("i",{className:"iconoir-u-turn-arrow-left text-[14px]","aria-hidden":"true"}),onClick:()=>e(a.hash,a.message)}),f&&r.push({label:"Create tag",icon:(0,d.jsx)("i",{className:"iconoir-bookmark text-[14px]","aria-hidden":"true"}),onClick:()=>f(a.hash)}),l&&r.push({label:"Cherry-pick commit",icon:(0,d.jsx)("i",{className:"iconoir-git-fork text-[14px]","aria-hidden":"true"}),onClick:()=>l(a.hash,a.message)}),m&&q>1&&g&&r.push({label:`Cherry-pick ${q} selected commits`,icon:(0,d.jsx)("i",{className:"iconoir-git-fork text-[14px]","aria-hidden":"true"}),onClick:m}),n&&u&&u.length>0){let b=a.refs?a.refs.replace(/[()]/g,"").split(",").map(a=>a.trim()):[],c=null;for(let a of b){let b=a.replace(/^HEAD\s*->\s*/,"");if(u.includes(b)&&(c=b,s&&b===s))break}c&&r.push({label:"Reword commit",icon:(0,d.jsx)("i",{className:"iconoir-edit-pencil text-[14px]","aria-hidden":"true"}),onClick:()=>n(a.hash,a.message,a.body??"",c)})}let x=(()=>{if(!a.refs)return[];let b=a.refs.replace(/^\s*\((.*)\)\s*$/,"$1").split(",").map(a=>{let b=a.startsWith("HEAD -> "),c=y(a.replace(/^HEAD\s*->\s*/,"").trim());return{raw:a,name:c,isHead:b}}),c=[],d=new Set,e=a=>t&&(t.has(a)||t.has(`remotes/${a}`));return b.forEach((a,f)=>{if(!d.has(f)&&u.includes(a.name)&&!e(a.name)){let e=v?.[a.name];if(e&&e.upstream){let g=y(e.upstream.trim()),h=new Set([g,y(`remotes/${g}`),y(`refs/remotes/${g}`)]),i=b.findIndex((a,b)=>b!==f&&!d.has(b)&&h.has(a.name));if(-1!==i){let e=b[i],h=g.split("/")[0];c.push({displayName:`${a.name} (${h})`,primaryRef:a.name,secondaryRef:e.name,isHead:a.isHead}),d.add(f),d.add(i);return}}}}),b.forEach((a,b)=>{!d.has(b)&&(e(a.name)||c.push({displayName:z(a.name),primaryRef:a.name,isHead:a.isHead}))}),c})();return(0,d.jsx)(j,{items:r,children:(0,d.jsxs)("div",{className:(0,i.cn)("flex items-center hover:bg-base-200 border-b border-base-200 last:border-0 cursor-pointer transition-colors text-xs",g&&"bg-primary/10"),style:{height:24},onClick:c=>b?.(a.hash,{isMultiSelect:c.metaKey||c.ctrlKey,isRangeSelect:c.shiftKey}),children:[(0,d.jsx)("div",{style:{width:I,flexShrink:0}}),(0,d.jsxs)("div",{className:"flex flex-1 gap-4 overflow-hidden pr-4 items-center",children:[(0,d.jsxs)("div",{className:"flex-1 truncate flex items-center gap-2",children:[x.map((a,b)=>{let c=s&&(a.primaryRef===s||a.isHead&&a.primaryRef===s),e=a.primaryRef.startsWith("tag:")?{textColor:"#374151",backgroundColor:"#e5e7eb"}:function(a){let b,c,d,e,f,g,i,j,k,l=h(a),m=l%360,n=72+(l>>>9)%20,o=84+(l>>>17)%8,p=1.05/((k=function({r:a,g:b,b:c}){let d=a=>{let b=a/255;return b<=.03928?b/12.92:Math.pow((b+.055)/1.055,2.4)};return .2126*d(a)+.7152*d(b)+.0722*d(c)}((c=n/100*(1-Math.abs(2*(b=o/100)-1)),e=c*(1-Math.abs((d=m/60)%2-1)),f=0,g=0,i=0,d>=0&&d<1?(f=c,g=e):d>=1&&d<2?(f=e,g=c):d>=2&&d<3?(g=c,i=e):d>=3&&d<4?(g=e,i=c):d>=4&&d<5?(f=e,i=c):(f=c,i=e),{r:Math.round((f+(j=b-c/2))*255),g:Math.round((g+j)*255),b:Math.round((i+j)*255)})))+.05)>=(k+.05)/.05?"#ffffff":"#111827";return{backgroundColor:`hsl(${m} ${n}% ${o}%)`,textColor:p}}(a.primaryRef),f=(0,d.jsx)("span",{className:(0,i.cn)("text-[10px] px-1.5 rounded-full whitespace-nowrap shrink-0",c&&"font-bold"),style:{color:e.textColor,backgroundColor:e.backgroundColor},title:a.displayName,children:(0,d.jsx)(k,{text:a.displayName,searchQuery:F})}),g=w?.(a.primaryRef)||[];return 0===g.length?(0,d.jsx)("span",{className:"shrink-0",children:f},b):(0,d.jsx)(j,{items:g,containerClassName:"inline-flex shrink-0",children:f},b)}),(0,d.jsx)("span",{className:(0,i.cn)("truncate min-w-0 max-w-[600px]",g?"font-semibold":""),title:a.message,children:(0,d.jsx)(k,{text:a.message,searchQuery:F})})]}),(0,d.jsx)("div",{className:"w-32 truncate opacity-70 text-right",children:(0,d.jsx)(k,{text:a.author_name,searchQuery:F})}),(0,d.jsx)("div",{className:"w-20 truncate opacity-50 font-mono text-right",children:(0,d.jsx)(k,{text:a.hash.substring(0,7),searchQuery:F})}),(0,d.jsx)("div",{className:"w-32 truncate opacity-70 text-right",children:new Date(a.date).toLocaleString(void 0,{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"})})]})]})},a.hash)}),r&&(0,d.jsxs)("div",{className:"flex items-center justify-center py-8 border-b border-base-300",children:[(0,d.jsx)("span",{className:"loading loading-spinner text-base-content/50"}),(0,d.jsx)("span",{className:"ml-2 text-sm opacity-70",children:"Loading more commits..."})]})]})]})})]})});var m=c(8550),n=c(3381),o=c(8696),p=c(7532),q=c(5048);function r({status:a}){switch(a){case"A":return(0,d.jsx)("i",{className:"iconoir-plus-circle text-[16px] text-success","aria-hidden":"true"});case"D":return(0,d.jsx)("i",{className:"iconoir-minus-circle text-[16px] text-error","aria-hidden":"true"});case"M":return(0,d.jsx)("i",{className:"iconoir-edit-pencil text-[16px] text-warning","aria-hidden":"true"});default:return(0,d.jsx)("i",{className:"iconoir-page text-[16px] opacity-50","aria-hidden":"true"})}}function s({node:a,selectedFile:b,expandedFolders:c,onToggleFolder:e,onSelectFile:f,depth:g=0}){let h=Array.from(a.children.values()).sort((a,b)=>{let c=a.children.size>0,d=b.children.size>0;return c&&!d?-1:!c&&d?1:a.name.localeCompare(b.name)});return(0,d.jsx)(d.Fragment,{children:h.map(a=>{if(a.children.size>0){let h=c.has(a.path);return(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"flex items-center gap-1 px-2 py-1.5 text-xs rounded cursor-pointer hover:bg-base-200 transition-colors opacity-80",style:{paddingLeft:`${12*g+8}px`},onClick:()=>e(a.path),title:a.path,children:[(0,d.jsx)("span",{className:"text-[10px] opacity-70",children:h?"▼":"▶"}),(0,d.jsx)("i",{className:"iconoir-folder text-[14px] opacity-70","aria-hidden":"true"}),(0,d.jsx)("span",{className:"truncate flex-1",children:a.name})]}),h&&(0,d.jsx)(s,{node:a,selectedFile:b,expandedFolders:c,onToggleFolder:e,onSelectFile:f,depth:g+1})]},a.path)}if(!a.file)return null;let h=a.file;return(0,d.jsxs)("div",{className:(0,i.cn)("flex items-center gap-2 px-2 py-1.5 text-xs rounded cursor-pointer hover:bg-base-200 transition-colors",b===h.path&&"bg-base-200 font-medium"),style:{paddingLeft:`${12*g+8}px`},onClick:()=>f(h.path),title:h.path,children:[(0,d.jsx)(r,{status:h.status}),(0,d.jsx)("span",{className:"truncate flex-1 font-mono",children:a.name})]},a.path)})})}function t({repoPath:a,commitHash:b,fromCommitHash:c,toCommitHash:f,filePath:h,splitView:j}){let{data:k,isLoading:l}=(0,e.st)(a,h,{commitHash:b,fromCommitHash:c,toCommitHash:f}),{resolvedTheme:m}=(0,o.D)(),[n,r]=(0,g.useState)(!1);if(l)return(0,d.jsx)("div",{className:"flex items-center justify-center p-8",children:(0,d.jsx)("span",{className:"loading loading-spinner text-base-content/50"})});if(!k)return(0,d.jsx)("div",{className:"flex items-center justify-center p-8 opacity-50",children:"No diff available"});if((0,i.u)(h))return(0,d.jsx)(q.K,{filePath:h,imageDiff:k.imageDiff});if((0,i.kO)(h,k.left,k.right))return(0,d.jsx)("div",{className:"flex items-center justify-center p-8 opacity-50",children:"Binary file - diff not available"});let s=k.diff||"",t=s.length,u=(0,i.tq)(s);return(t>102400||u>3e3)&&!n?(0,d.jsxs)("div",{className:"flex flex-col items-center justify-center h-full gap-4 text-center p-8",children:[(0,d.jsx)("i",{className:"iconoir-warning-triangle text-[32px] text-warning","aria-hidden":"true"}),(0,d.jsxs)("div",{className:"space-y-2",children:[(0,d.jsx)("h3",{className:"font-bold text-lg",children:"Large Diff Detected"}),(0,d.jsxs)("p",{className:"opacity-70",children:["This diff is large (",Math.round(t/1024),"KB, ~",u," changed lines) and may freeze your browser if rendered."]})]}),(0,d.jsx)("button",{className:"btn btn-outline",onClick:()=>r(!0),children:"Show Diff Anyway"})]}):(0,d.jsx)("div",{className:"overflow-auto h-full",children:(0,d.jsx)(p.O,{oldValue:k.left||"",newValue:k.right||"",splitView:j,useDarkTheme:"dark"===m})})}function u({repoPath:a,commitHash:b=null,fromCommitHash:c=null,toCommitHash:f=null}){let h=!!c&&!!f,j=h?`${c}..${f}`:b??"none",{data:k,isLoading:l}=(0,e.gg)(a,{commitHash:b,fromCommitHash:c,toCommitHash:f}),[n,o]=(0,g.useState)(null),[p,q]=(0,g.useState)(!1),[r,u]=(0,g.useState)({}),v=(0,g.useMemo)(()=>(function(a){let b={name:"",path:"",children:new Map};for(let c of a){let a=c.path.split("/").filter(Boolean),d=b,e="";for(let b=0;b<a.length;b++){let f=a[b];e=e?`${e}/${f}`:f,d.children.has(f)||d.children.set(f,{name:f,path:e,children:new Map}),d=d.children.get(f),b===a.length-1&&(d.file=c)}}return b})(k?.files??[]),[k?.files]),w=(0,g.useMemo)(()=>(function a(b){let c=[];return Array.from(b.children.values()).forEach(b=>{b.children.size>0&&(c.push(b.path),c.push(...a(b)))}),c})(v),[v]),x=(0,g.useMemo)(()=>r[j]??new Set,[r,j]),[y,z]=(0,g.useState)(()=>!0);(0,m.v)(p,()=>q(!1));let A=(0,g.useMemo)(()=>{let a=new Set;return w.forEach(b=>{x.has(b)||a.add(b)}),n&&(function(a){let b=a.split("/").filter(Boolean),c=[];for(let a=1;a<b.length;a++)c.push(b.slice(0,a).join("/"));return c})(n).forEach(b=>a.add(b)),a},[w,x,n]),B=(0,g.useCallback)(a=>{u(b=>{let c=new Set(b[j]??new Set);return c.has(a)?c.delete(a):c.add(a),{...b,[j]:c}})},[j]);return l?(0,d.jsx)("div",{className:"flex items-center justify-center p-8 h-full",children:(0,d.jsx)("span",{className:"loading loading-spinner text-base-content/50"})}):k&&0!==k.files.length?(0,d.jsxs)("div",{className:(0,i.cn)("flex h-full",p&&"fixed inset-0 z-[80] h-auto bg-base-100 shadow-2xl"),children:[(0,d.jsxs)("div",{className:"w-64 border-r border-base-300 flex flex-col bg-base-200/30 shrink-0",children:[(0,d.jsxs)("div",{className:"px-3 py-2 text-xs font-bold opacity-70 border-b border-base-300 bg-base-100",children:[k.files.length," file",1!==k.files.length?"s":""," changed"]}),(0,d.jsx)("div",{className:"flex-1 overflow-y-auto min-h-0",children:(0,d.jsx)("div",{className:"p-1",children:(0,d.jsx)(s,{node:v,selectedFile:n,expandedFolders:A,onToggleFolder:B,onSelectFile:o})})})]}),(0,d.jsx)("div",{className:"flex-1 overflow-hidden",children:n?(0,d.jsxs)("div",{className:"h-full flex flex-col",children:[(0,d.jsxs)("div",{className:"px-4 py-2 text-xs font-mono opacity-70 border-b border-base-300 bg-base-100 shrink-0 truncate flex items-center justify-between",children:[(0,d.jsx)("span",{className:"truncate",children:n}),(0,d.jsxs)("div",{className:"flex items-center gap-2 shrink-0 ml-4",children:[(0,d.jsx)("label",{htmlFor:"commit-diff-split-view",className:"text-[10px] uppercase tracking-wider font-bold cursor-pointer opacity-70",children:"Split View"}),(0,d.jsx)("input",{type:"checkbox",id:"commit-diff-split-view",checked:y,onChange:a=>z(a.target.checked),className:"toggle toggle-xs toggle-primary"}),(0,d.jsx)("button",{type:"button",className:"btn btn-ghost btn-xs btn-square",onClick:()=>q(a=>!a),"aria-label":p?"Exit full-page diff view":"Expand diff viewer to full page",title:p?"Exit full-page diff view":"Expand diff viewer to full page",children:(0,d.jsx)("i",{className:(0,i.cn)(p?"iconoir-collapse":"iconoir-maximize","text-[14px]"),"aria-hidden":"true"})})]})]}),(0,d.jsx)("div",{className:"flex-1 overflow-auto diff-viewer-wrapper",children:(0,d.jsx)(t,{repoPath:a,commitHash:b,fromCommitHash:c,toCommitHash:f,filePath:n,splitView:y})})]}):(0,d.jsx)("div",{className:"flex items-center justify-center h-full opacity-70 text-sm",children:"Select a file to view changes"})})]}):(0,d.jsx)("div",{className:"flex items-center justify-center p-8 h-full opacity-50",children:h?"No changes in selected commit range":"No changes in this commit"})}function v(a,b=""){let c={name:"",children:new Map};for(let d of a){let a=d.split("/"),e=c;for(let c=0;c<a.length;c++){let f=a[c];e.children.has(f)||e.children.set(f,{name:f,children:new Map}),e=e.children.get(f),c===a.length-1&&(e.fullPath=b?`${b}/${d}`:d)}}return c}function w(a,b,c){if(b[a])return b[a];let d=a.split("/");for(let a=d.length-1;a>0;a--){let c=d.slice(0,a).join("/");if(b[c])return b[c]}if(c){let a=c.split("/");for(let c=a.length;c>0;c--){let d=a.slice(0,c).join("/");if(b[d])return b[d]}}return null}function x(a){return Array.from(a.children.values()).sort((a,b)=>{let c=a.children.size>0&&!a.fullPath,d=b.children.size>0&&!b.fullPath;return c&&!d?-1:!c&&d?1:a.name.localeCompare(b.name)})}function y(a,b,c=""){let d=[];for(let e of x(a)){if(void 0!==e.fullPath){d.push(e.fullPath);continue}let a=c?`${c}/${e.name}`:e.name;b.has(a)&&d.push(...y(e,b,a))}return d}function z(a){let b=[];for(let c of x(a)){if(c.fullPath){b.push(c.fullPath);continue}b.push(...z(c))}return b}function A({type:a,isActive:b,isInherited:c,onClick:e,showOnHover:f}){return(0,d.jsx)("button",{className:(0,i.cn)("p-0.5 rounded hover:bg-base-300 transition-colors shrink-0 cursor-pointer text-xs",b&&"bg-primary/10",c&&"opacity-50",!b&&!f&&"opacity-0 group-hover:opacity-100"),onClick:e,title:"visible"===a?b?"Remove visible filter":"Show only this branch":b?"Remove hide filter":"Hide this branch",children:"visible"===a?(0,d.jsx)("i",{className:"iconoir-eye text-[14px]","aria-hidden":"true"}):(0,d.jsx)("i",{className:"iconoir-eye-closed text-[14px]","aria-hidden":"true"})})}function B({name:a,groupPath:b,icon:c,isExpanded:e,onToggle:f,visibilityMap:g,onToggleVisibility:h,depth:j=0}){let k=g[b],l=b.includes("/")?b.split("/").slice(0,-1).join("/"):void 0,m=l?g[l]:null,n=k||m,o=!k&&null!==m;return(0,d.jsxs)("div",{className:(0,i.cn)("group flex items-center gap-1 px-2 py-1.5 text-sm rounded-md cursor-pointer hover:bg-base-200 transition-colors font-medium"),style:{paddingLeft:`${12*j+8}px`},children:[(0,d.jsxs)("div",{className:"flex items-center gap-1.5 flex-1 min-w-0",onClick:f,children:[(0,d.jsx)("span",{className:"text-xs opacity-70",children:e?"▼":"▶"}),(0,d.jsx)("span",{className:"shrink-0",children:c}),(0,d.jsx)("span",{className:"truncate min-w-0 flex-1",children:a})]}),(0,d.jsxs)("div",{className:"flex items-center gap-0.5 ml-auto",children:[(0,d.jsx)(A,{type:"visible",isActive:"visible"===k||o&&"visible"===n,isInherited:o&&"visible"===n,onClick:a=>{a.stopPropagation(),h(b,"visible")},showOnHover:"visible"===k||o&&"visible"===n}),(0,d.jsx)(A,{type:"hidden",isActive:"hidden"===k||o&&"hidden"===n,isInherited:o&&"hidden"===n,onClick:a=>{a.stopPropagation(),h(b,"hidden")},showOnHover:"hidden"===k||o&&"hidden"===n})]})]})}function C({node:a,currentBranch:b,expandedFolders:c,onToggleFolder:e,onCheckout:f,onCheckoutToLocal:g,onCreateBranch:h,onDeleteBranch:k,onRenameBranch:l,onRenameRemoteBranch:m,onRebase:n,onMerge:o,onPushToRemote:p,onPullFromRemote:q,getBranchContextMenuItems:r,onBranchClick:s,onBranchContextMenu:t,onDeleteBranchGroup:u,selectedBranches:v,visibilityMap:x,onToggleVisibility:y,parentPath:B="",depth:D=0,groupPath:E,isRemote:F=!1,trackingInfo:G}){let H=Array.from(a.children.values()).sort((a,b)=>{let c=a.children.size>0&&!a.fullPath,d=b.children.size>0&&!b.fullPath;return c&&!d?-1:!c&&d?1:a.name.localeCompare(b.name)});return(0,d.jsx)(d.Fragment,{children:H.map(a=>{let H=void 0!==a.fullPath,I=a.children.size>0&&!H,J=a.fullPath||(B?`${B}/${a.name}`:a.name),K=c.has(J),L=H&&a.fullPath===b,M=x[J],N=w(J,x,E),O=!M&&null!==N;if(I){let w=z(a).filter(a=>a!==b);return(0,d.jsxs)("div",{children:[(0,d.jsx)(j,{items:[{label:"Delete",icon:(0,d.jsx)("i",{className:"iconoir-trash text-[14px]","aria-hidden":"true"}),onClick:()=>u(w),danger:!0,disabled:0===w.length}],children:(0,d.jsxs)("div",{className:(0,i.cn)("group flex items-center gap-1 px-2 py-1.5 text-sm rounded-md cursor-pointer hover:bg-base-200 transition-colors opacity-70 select-none"),style:{paddingLeft:`${12*D+8}px`},children:[(0,d.jsxs)("div",{className:"flex items-center gap-1 flex-1 min-w-0",onClick:()=>e(J),children:[(0,d.jsx)("span",{className:"text-xs opacity-70",children:K?"▼":"▶"}),(0,d.jsx)("i",{className:"iconoir-folder text-[16px] shrink-0","aria-hidden":"true"}),(0,d.jsx)("span",{className:"truncate min-w-0 flex-1",children:a.name})]}),(0,d.jsxs)("div",{className:"flex items-center gap-0.5 ml-auto",children:[(0,d.jsx)(A,{type:"visible",isActive:"visible"===M||O&&"visible"===N,isInherited:O&&"visible"===N,onClick:a=>{a.stopPropagation(),y(J,"visible")},showOnHover:"visible"===M||O&&"visible"===N}),(0,d.jsx)(A,{type:"hidden",isActive:"hidden"===M||O&&"hidden"===N,isInherited:O&&"hidden"===N,onClick:a=>{a.stopPropagation(),y(J,"hidden")},showOnHover:"hidden"===M||O&&"hidden"===N})]})]})}),K&&(0,d.jsx)(C,{node:a,currentBranch:b,expandedFolders:c,onToggleFolder:e,onCheckout:f,onCheckoutToLocal:g,onCreateBranch:h,onDeleteBranch:k,onRenameBranch:l,onRenameRemoteBranch:m,onRebase:n,onMerge:o,onPushToRemote:p,onPullFromRemote:q,getBranchContextMenuItems:r,onBranchClick:s,onBranchContextMenu:t,onDeleteBranchGroup:u,selectedBranches:v,visibilityMap:x,onToggleVisibility:y,parentPath:J,depth:D+1,groupPath:E,isRemote:F,trackingInfo:G})]},J)}let P=!F&&a.fullPath?G?.[a.fullPath]:void 0,Q=P&&(P.ahead>0||P.behind>0),R=r({branchRef:a.fullPath,branchLeafName:a.name,currentBranch:b,isRemote:F,selectedBranchRefs:v.has(a.fullPath)?Array.from(v):[a.fullPath]}),S=v.has(a.fullPath);return(0,d.jsx)(j,{items:R,children:(0,d.jsxs)("div",{className:(0,i.cn)("group flex items-center gap-2 px-2 py-1.5 text-sm rounded-md cursor-pointer transition-colors select-none",!S&&"hover:bg-base-200",S&&"bg-primary/10 hover:bg-primary/20",L&&"bg-base-200 font-medium text-primary"),style:{paddingLeft:`${12*D+8}px`},onContextMenu:()=>t?.(a.fullPath),children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 flex-1 min-w-0",onClick:b=>s?.(a.fullPath,{isMultiSelect:b.metaKey||b.ctrlKey,isRangeSelect:b.shiftKey}),onDoubleClick:()=>!L&&f(a.fullPath),children:[L?(0,d.jsx)("span",{className:"w-3 h-3 flex items-center justify-center shrink-0",children:(0,d.jsx)("span",{className:"w-2 h-2 rounded-full bg-primary"})}):F?(0,d.jsx)("i",{className:"iconoir-globe text-[14px] opacity-50 shrink-0","aria-hidden":"true"}):(0,d.jsx)("i",{className:"iconoir-git-branch text-[14px] opacity-50 shrink-0","aria-hidden":"true"}),(0,d.jsx)("span",{className:"truncate min-w-0 flex-1",title:a.fullPath,children:a.name}),Q&&(0,d.jsxs)("span",{className:"flex items-center gap-1 text-xs opacity-70 shrink-0",title:`${P.ahead} ahead, ${P.behind} behind ${P.upstream}`,children:[P.ahead>0&&(0,d.jsxs)("span",{className:"flex items-center gap-0.5 text-xs",children:[(0,d.jsx)("i",{className:"iconoir-arrow-up text-[12px]","aria-hidden":"true"}),(0,d.jsx)("span",{children:P.ahead})]}),P.behind>0&&(0,d.jsxs)("span",{className:"flex items-center gap-0.5 text-xs",children:[(0,d.jsx)("i",{className:"iconoir-arrow-down text-[12px]","aria-hidden":"true"}),(0,d.jsx)("span",{children:P.behind})]})]})]}),(0,d.jsxs)("div",{className:"flex items-center gap-0.5 ml-auto",children:[(0,d.jsx)(A,{type:"visible",isActive:"visible"===M||O&&"visible"===N,isInherited:O&&"visible"===N,onClick:a=>{a.stopPropagation(),y(J,"visible")},showOnHover:"visible"===M||O&&"visible"===N}),(0,d.jsx)(A,{type:"hidden",isActive:"hidden"===M||O&&"hidden"===N,isInherited:O&&"hidden"===N,onClick:a=>{a.stopPropagation(),y(J,"hidden")},showOnHover:"hidden"===M||O&&"hidden"===N})]})]})},a.fullPath)})})}var D=c(9099);async function E(a){try{return await navigator.clipboard.writeText(a),!0}catch{let b=document.createElement("textarea");b.value=a,b.style.position="fixed",b.style.left="-9999px",document.body.appendChild(b),b.select();try{return document.execCommand("copy"),!0}catch{return!1}finally{document.body.removeChild(b)}}}let F={isOpen:!1,executionId:null,scriptName:"",branchRef:"",output:"",status:"idle",error:null};function G({repoPath:a}){(0,f.jE)();let{data:b}=(0,e.t0)();(0,e.Y5)();let c=(0,D.useRouter)(),h=(0,D.useSearchParams)();(h.get("branch")??"").trim(),(0,g.useRef)(null),(0,g.useRef)(null);let[k,o]=(0,g.useState)(100),{data:p,isLoading:q,isError:r,error:s,refetch:t,isFetching:x}=(0,e._X)(a,k),{data:A,isLoading:G,refetch:H}=(0,e._6)(a);A?.current?.trim();let{data:I}=(0,e.en)(a),[J,K]=(0,g.useState)(null),[L,M]=(0,g.useState)([]),[N,O]=(0,g.useState)(null),P=(0,g.useRef)(0);(0,g.useCallback)(()=>{let a=Date.now();a-P.current<500||(P.current=a,Promise.all([H(),t()]))},[H,t]);let Q=(0,g.useCallback)(a=>{K(a),M(a?[a]:[]),O(a)},[]),{mutateAsync:R}=(0,e.a3)(),S=(0,g.useCallback)(()=>{let a=new URLSearchParams(h.toString()).toString();c.push(a?`/workspace/conflicts?${a}`:"/workspace/conflicts")},[c,h]),T=(0,g.useCallback)(a=>{if(!(a instanceof Error))return!1;let b=a.message.toLowerCase();return b.includes("conflict")||b.includes("could not apply")||b.includes("fix conflicts")||b.includes("resolve all conflicts")||b.includes("merge --continue")||b.includes("rebase --continue")},[]),[U,V]=(0,g.useState)(!1),[W,X]=(0,g.useState)(""),[Y,Z]=(0,g.useState)(null),[$,_]=(0,g.useState)(!1),[aa,ab]=(0,g.useState)(!1),[ac,ad]=(0,g.useState)(null),[ae,af]=(0,g.useState)(""),[ag,ah]=(0,g.useState)(!1),[ai,aj]=(0,g.useState)(!1),[ak,al]=(0,g.useState)(!1),[am,an]=(0,g.useState)([]),[ao,ap]=(0,g.useState)(!1),[aq,ar]=(0,g.useState)(!1),[as,at]=(0,g.useState)(!1),[au,av]=(0,g.useState)(null),[aw,ax]=(0,g.useState)(!1),[ay,az]=(0,g.useState)(!1),[aA,aB]=(0,g.useState)(null),[aC,aD]=(0,g.useState)(!1),[aE,aF]=(0,g.useState)(!1),[aG,aH]=(0,g.useState)(!1),[aI,aJ]=(0,g.useState)([]),[aK,aL]=(0,g.useState)(!1),[aM,aN]=(0,g.useState)(!1),[aO,aP]=(0,g.useState)(!1),[aQ,aR]=(0,g.useState)(!1),[aS,aT]=(0,g.useState)(null),[aU,aV]=(0,g.useState)(null),[aW,aX]=(0,g.useState)(""),[aY,aZ]=(0,g.useState)(!1),[a$,a_]=(0,g.useState)(!1),[a0,a1]=(0,g.useState)(!1),[a2,a3]=(0,g.useState)(null),[a4,a5]=(0,g.useState)(""),[a6,a7]=(0,g.useState)(!1),[a8,a9]=(0,g.useState)(!1),[ba,bb]=(0,g.useState)(null),[bc,bd]=(0,g.useState)(!1),[be,bf]=(0,g.useState)(!1),[bg,bh]=(0,g.useState)("origin"),[bi,bj]=(0,g.useState)(""),[bk,bl]=(0,g.useState)(!1),[bm,bn]=(0,g.useState)(!1),[bo,bp]=(0,g.useState)(null),[bq,br]=(0,g.useState)(null),[bs,bt]=(0,g.useState)(!0),[bu,bv]=(0,g.useState)(!1),[bw,bx]=(0,g.useState)("checking"),by=(0,g.useCallback)(()=>{bn(!1),bp(null),br(null),bx("checking")},[]),[bz,bA]=(0,g.useState)(!1),[bB,bC]=(0,g.useState)(null),[bD,bE]=(0,g.useState)(null),[bF,bG]=(0,g.useState)(!1),[bH,bI]=(0,g.useState)(!1),[bJ,bK]=(0,g.useState)(!1),[bL,bM]=(0,g.useState)(""),[bN,bO]=(0,g.useState)(!1),[bP,bQ]=(0,g.useState)("checking"),bR=(0,g.useCallback)(()=>{bA(!1),bC(null),bE(null),bQ("checking")},[]),[bS,bT]=(0,g.useState)(!1),[bU,bV]=(0,g.useState)(null),[bW,bX]=(0,g.useState)([]),[bY,bZ]=(0,g.useState)(""),[b$,b_]=(0,g.useState)([]),[b0,b1]=(0,g.useState)(""),[b2,b3]=(0,g.useState)(null),[b4,b5]=(0,g.useState)(!1),[b6,b7]=(0,g.useState)(!1),[b8,b9]=(0,g.useState)(!0),[ca,cb]=(0,g.useState)(!1),[cc,cd]=(0,g.useState)(""),[ce,cf]=(0,g.useState)(!1),[cg,ch]=(0,g.useState)(null),[ci,cj]=(0,g.useState)(!1),[ck,cl]=(0,g.useState)(!1),[cm,cn]=(0,g.useState)(!1),[co,cp]=(0,g.useState)(null),[cq,cr]=(0,g.useState)([]),[cs,ct]=(0,g.useState)(""),[cu,cv]=(0,g.useState)([]),[cw,cx]=(0,g.useState)(""),[cy,cz]=(0,g.useState)(null),[cA,cB]=(0,g.useState)(!0),[cC,cD]=(0,g.useState)(!1),[cE,cF]=(0,g.useState)(null),[cG,cH]=(0,g.useState)(!1),[cI,cJ]=(0,g.useState)(!1),[cK,cL]=(0,g.useState)(!1),[cM,cN]=(0,g.useState)(!1),[cO,cP]=(0,g.useState)(!1),[cQ,cR]=(0,g.useState)(!1),[cS,cT]=(0,g.useState)(null),[cU,cV]=(0,g.useState)(""),[cW,cX]=(0,g.useState)(!1),[cY,cZ]=(0,g.useState)(!1),[c$,c_]=(0,g.useState)(null),[c0,c1]=(0,g.useState)(!1),[c2,c3]=(0,g.useState)(!1),[c4,c5]=(0,g.useState)(null),[c6,c7]=(0,g.useState)(!1),[c8,c9]=(0,g.useState)(!1),[da,db]=(0,g.useState)(null),[dc,dd]=(0,g.useState)(""),[de,df]=(0,g.useState)(""),[dg,dh]=(0,g.useState)(!1),di=(0,g.useRef)(null),[dj,dk]=(0,g.useState)(null),[dl,dm]=(0,g.useState)([]),[dn,dp]=(0,g.useState)(null),[dq,dr]=(0,g.useState)(!1),ds=(0,g.useRef)(null),[dt,du]=(0,g.useState)(F),[dv,dw]=(0,g.useState)(!1),[dx,dy]=(0,g.useState)(!1),[dz,dA]=(0,g.useState)(!1),dB="starting"===dt.status||"running"===dt.status,dC="completed"===dt.status||"failed"===dt.status||"canceled"===dt.status,dD=(0,g.useCallback)(()=>{aR(!1),aT(null),aV(null),aX(""),aZ(!1)},[]),dE=(0,g.useCallback)(()=>{a1(!1),a3(null),a5("")},[]),dF=(0,g.useCallback)(()=>{a9(!1),bb(null)},[]),dG=(0,g.useCallback)(()=>{bf(!1),bh("origin"),bj("")},[]),dH=(0,g.useCallback)(()=>{c9(!1),db(null),dd(""),df("")},[]),dI=(0,g.useCallback)(()=>{if(aM){aN(!1),aJ([]);return}if(cQ)return void cR(!1);if(U){V(!1),Z(null);return}if(aa){ab(!1),ad(null),af(""),ah(!1);return}if(cm)return void cn(!1);if(bS)return void bT(!1);if(bz)return void bR();if(bm)return void by();if(aQ)return void dD();if(a0)return void dE();if(a8)return void dF();if(be)return void dG();if(aG){aH(!1),aJ([]);return}if(ak){al(!1),an([]),ap(!1);return}if(as){at(!1),av(null);return}if(ay){az(!1),aB(null),aD(!1);return}if(c8)return void dH();if(cY)return void cZ(!1);if(c2){c3(!1),c5(null);return}dq?dr(!1):dt.isOpen&&dC&&(du(F),dA(!1),dw(!1))},[aM,cQ,U,aa,cm,bS,bR,bz,by,bm,aQ,dD,a0,dE,a8,dF,be,dG,aG,ak,as,ay,c8,dH,cY,c2,dq,dt.isOpen,dC]),dJ=cY||c2||c8||ak||as||ay||aM||aG||aQ||a0||a8||be||bm||bz||bS||cm||U||aa||cQ||dq||dt.isOpen;(0,m.v)(dJ,dI);let[dK,dL]=(0,g.useState)(300),[dM,dN]=(0,g.useState)(!1),dO=(0,g.useRef)(null),[dP,dQ]=(0,g.useState)(.28),[dR,dS]=(0,g.useState)(!1),dT=(0,g.useRef)(null);(0,g.useRef)(!1);let dU=(0,g.useCallback)(a=>{a.preventDefault(),dN(!0),dO.current={startY:a.clientY,startHeight:dK}},[dK]),dV=(0,g.useCallback)(a=>{a.preventDefault(),dS(!0)},[]),dW=(0,g.useMemo)(()=>A?.branches?v(A.branches):null,[A?.branches]),dX=(0,g.useMemo)(()=>{if(!A?.remotes)return null;var a=A.remotes;let b=new Map;for(let[c,d]of Object.entries(a))b.set(c,v(d,`remotes/${c}`));return b},[A?.remotes]);(0,g.useMemo)(()=>{let a=new Set;for(let b of A?.branches??[])a.add(b);for(let[b,c]of Object.entries(A?.remotes??{}))for(let d of c)a.add(`remotes/${b}/${d}`);return a},[A?.branches,A?.remotes]);let dY=(0,g.useMemo)(()=>new Set(dl),[dl]),dZ=(0,e.GK)(a),d$=(0,e.Lp)(),d_=(0,g.useMemo)(()=>(dZ?.customScripts??[]).filter(a=>"branch"===a.target&&"run-bash-script"===a.action&&a.name.trim().length>0&&a.content.trim().length>0),[dZ?.customScripts]),[d0,d1]=(0,g.useState)(!0),[d2,d3]=(0,g.useState)(!0),[d4,d5]=(0,g.useState)(!0),[d6,d7]=(0,g.useState)({}),[d8,d9]=(0,g.useState)(new Set),ea=(0,g.useMemo)(()=>{let a=[];if(d0&&dW&&a.push(...y(dW,d8)),d2&&dX)for(let[b,c]of Array.from(dX.entries())){let d=`__remotes__/${b}`;d8.has(d)&&a.push(...y(c,d8,`remotes/${b}`))}return a},[d8,dW,d0,dX,d2]);(0,g.useRef)(null);let eb=(0,g.useCallback)(b=>{d$.mutate({path:a,updates:b})},[a,d$]),ec=(0,g.useCallback)(()=>{let a=!d0;d1(a),eb({localGroupExpanded:a})},[d0,eb]),ed=(0,g.useCallback)(()=>{let a=!d2;d3(a),eb({remotesGroupExpanded:a})},[d2,eb]),ee=(0,g.useCallback)(()=>{let a=!d4;d5(a),eb({worktreesGroupExpanded:a})},[eb,d4]),ef=(0,g.useCallback)(a=>{d9(b=>{let c=new Set(b);return c.has(a)?c.delete(a):c.add(a),eb({expandedFolders:Array.from(c)}),c})},[eb]),eg=(0,g.useCallback)((a,b)=>{d7(c=>{let d={...c};d[a]===b?delete d[a]:d[a]=b;let e={};return Object.entries(d).forEach(([a,b])=>{("visible"===b||"hidden"===b)&&(e[a]=b)}),eb({visibilityMap:e}),d})},[eb]),eh=(0,g.useCallback)(()=>{d7({}),eb({visibilityMap:{}})},[eb]),ei=(0,g.useCallback)((a,b)=>{let c=w(a,d6);if(c)return c;if(b){let b=a.split("/");if(b.length>=2&&"remotes"===b[0]){let a=b[1],c=d6[`__remotes__/${a}`];if(c)return c;let d=d6.__remotes__;if(d)return d}}else{let a=d6.__local__;if(a)return a}return null},[d6]),ej=(0,g.useMemo)(()=>{if(!p?.all||!A?.branches||!A?.branchCommits)return p?.all||[];let a=Object.values(d6).some(a=>"visible"===a),b=Object.values(d6).some(a=>"hidden"===a);if(!a&&!b)return p.all;let c=[...A.branches.map(a=>({branch:a,isRemote:!1}))];if(A.remotes)for(let[a,b]of Object.entries(A.remotes))for(let d of b)c.push({branch:`remotes/${a}/${d}`,isRemote:!0});let d=new Set,e=new Set,f=new Set;for(let{branch:a,isRemote:b}of c){let c=ei(a,b);"visible"===c?d.add(a):"hidden"===c?e.add(a):f.add(a)}let g=new Map(p.all.map(a=>[a.hash,a])),h=(a,b)=>{let c=[a];for(;c.length>0;){let a=c.pop();if(b.has(a))continue;let d=g.get(a);if(d)for(let e of(b.add(a),d.parents||[]))b.has(e)||c.push(e)}},i=new Set;for(let a of d){let b=A.branchCommits[a];b&&h(b,i)}if(a)return p.all.filter(a=>i.has(a.hash));if(b){let a=new Set;for(let b of f){let c=A.branchCommits[b];c&&h(c,a)}return p.all.filter(b=>a.has(b.hash))}return p.all},[p?.all,A?.branches,A?.branchCommits,A?.remotes,d6,ei]),ek=(0,g.useMemo)(()=>new Set(L),[L]),el=(0,g.useMemo)(()=>ej.map(a=>a.hash),[ej]),em=(0,g.useMemo)(()=>J?p?.all.find(a=>a.hash===J):null,[p?.all,J]),en=(0,g.useMemo)(()=>{if(!p?.all||L.length<2)return null;let a=new Map(p.all.map(a=>[a.hash,a])),b=new Map(el.map((a,b)=>[a,b])),c=Array.from(new Set(L)).filter(a=>b.has(a)).sort((a,c)=>(b.get(a)??Number.MAX_SAFE_INTEGER)-(b.get(c)??Number.MAX_SAFE_INTEGER));if(c.length<2)return null;let d=c[0],e=c[c.length-1],f=a.get(d),g=a.get(e);return f&&g?{latestHash:d,oldestHash:e,latestCommit:f,oldestCommit:g}:null},[el,p?.all,L]),eo=!!en,ep=(0,g.useCallback)((a,b)=>{let c=b?.isRangeSelect??!1,d=b?.isMultiSelect??!1;if(c){let b=N??J??a,c=el.indexOf(b),d=el.indexOf(a);if(-1!==c&&-1!==d){let[e,f]=c<d?[c,d]:[d,c];M(el.slice(e,f+1)),K(a),O(b);return}}if(d){if(ek.has(a)){let b=L.filter(b=>b!==a);M(b),K(c=>c!==a?c:b.length>0?b[b.length-1]:null),N===a&&O(b.length>0?b[b.length-1]:null)}else M([...L,a]),K(a),O(a);return}Q(a)},[el,ek,L,J,N,Q]),eq=(0,g.useMemo)(()=>ej.filter(a=>ek.has(a.hash)).reverse(),[ej,ek]),er=(0,g.useMemo)(()=>Object.values(d6).some(a=>"visible"===a||"hidden"===a),[d6]),es=(0,g.useMemo)(()=>{let a=new Set;if(A?.branches)for(let b of A.branches)"hidden"===ei(b,!1)&&a.add(b);if(A?.remotes)for(let[b,c]of Object.entries(A.remotes))for(let d of c){let c=`remotes/${b}/${d}`;"hidden"===ei(c,!0)&&a.add(c)}return a},[A?.branches,A?.remotes,ei]),et=(0,g.useCallback)(a=>{if(!A?.branchCommits)return;let b=A.branchCommits[a];if(b){if(p?.all?.some(a=>a.hash===b)&&di.current&&di.current.scrollToCommit(b))return void Q(b);dk(b),Q(b)}},[A?.branchCommits,p?.all,Q]),eu=(0,g.useCallback)((a,b)=>{let c=b?.isRangeSelect??!1,d=b?.isMultiSelect??!1;if(c){let b=dn??a,c=ea.indexOf(b),d=ea.indexOf(a);if(-1!==c&&-1!==d){let[e,f]=c<d?[c,d]:[d,c],g=ea.slice(e,f+1);dY.has(a)?dm(dl.filter(a=>!g.includes(a))):dm(Array.from(new Set([...dl,...g]))),dp(b)}else dm([a]),dp(a);return}if(d){dY.has(a)?dm(dl.filter(b=>b!==a)):dm([...dl,a]),dp(a);return}dm([a]),dp(a),et(a)},[dn,ea,et,dl,dY]),ev=(0,g.useCallback)(a=>{dY.has(a)||(dm([a]),dp(a))},[dY]),ew=(0,g.useCallback)(async(b,c)=>{dA(!1),dw(!1),du({isOpen:!0,executionId:null,scriptName:b.name,branchRef:c,output:"",status:"starting",error:null});try{let d=await fetch("/api/custom-scripts",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({command:"start",repoPath:a,branchRef:c,scriptContent:b.content})}),e=await d.json();if(!d.ok)throw Error(e.error||"Failed to start script execution");let f=[];e.previousBranch&&e.checkedOutBranch&&e.previousBranch!==e.checkedOutBranch&&f.push(`[info] Checked out ${e.checkedOutBranch} (from ${e.previousBranch})`),du(a=>({...a,executionId:e.executionId,output:[f.join("\n"),e.output].filter(Boolean).join("\n"),status:e.status,error:null}))}catch(a){du(b=>({...b,status:"failed",error:a.message,output:b.output?`${b.output}
2
2
  [error] ${a.message}`:`[error] ${a.message}`}))}},[a]),ex=(0,g.useCallback)(async()=>{if(dt.executionId&&dB){dw(!0);try{let a=await fetch("/api/custom-scripts",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({command:"cancel",executionId:dt.executionId})}),b=await a.json();if(!a.ok)throw Error(b.error||"Failed to cancel script execution");du(a=>({...a,output:b.output,status:b.status})),"running"!==b.status&&"starting"!==b.status&&dw(!1)}catch(a){du(b=>({...b,output:`${b.output}
3
3
  [error] ${a.message}`})),dw(!1)}}},[dt.executionId,dB]),ey=(0,g.useCallback)(async()=>{if(dx)return;dy(!0);let a=await E(dt.output);dy(!1),dA(a),a&&setTimeout(()=>dA(!1),1500)},[dx,dt.output]),ez=a=>{let b=a.filter(a=>a!==fi);0!==b.length&&(an(b),ap(!1),al(!0))},eA=a=>{ez([a])},eB=(0,g.useCallback)(a=>{let b=a.trim();b&&(av(b),at(!0))},[]),eC=(0,g.useCallback)(()=>{az(!1),aB(null),aD(!1)},[]),eD=(0,g.useCallback)(a=>{a&&(aB(a),aD(!1),az(!0))},[]),eE=async()=>{if(0!==am.length){ar(!0);try{let b=new Map,c=(a,c,d)=>{b.has(a)||b.set(a,{branchRef:c,run:d})},e=new Set;if(ao)for(let a of am){if(a.startsWith("remotes/"))continue;let b=A?.trackingInfo?.[a];b?.upstream&&e.add(b.upstream)}for(let b of e){let[d,...e]=b.split("/"),f=e.join("/");if(d&&f){let b=`${d}/${f}`;c(`remote:${b}`,b,()=>R({repoPath:a,action:"delete-remote-branch",data:{remote:d,branch:f},suppressErrorToast:!0}))}}for(let b of am){if(b.startsWith("remotes/")){let d=b.split("/");if(d.length>=3){let b=d[1],e=d.slice(2).join("/"),f=`${b}/${e}`;c(`remote:${f}`,f,()=>R({repoPath:a,action:"delete-remote-branch",data:{remote:b,branch:e},suppressErrorToast:!0}))}continue}c(`local:${b}`,b,()=>R({repoPath:a,action:"delete-branch",data:{branch:b},suppressErrorToast:!0}))}let f=Array.from(b.values()),g=(await Promise.allSettled(f.map(a=>a.run()))).flatMap((a,b)=>{if("fulfilled"===a.status)return[];let c=f[b].branchRef;return console.error(`Failed to delete branch "${c}":`,a.reason),[c]});g.length>0&&(0,n.oR)({type:"error",title:1===g.length?"Failed to Delete 1 Branch":`Failed to Delete ${g.length} Branches`,description:(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{children:"The following branches could not be deleted:"}),(0,d.jsx)("ul",{className:"mt-1 max-h-40 overflow-y-auto list-disc pl-5",children:g.map(a=>(0,d.jsx)("li",{className:"break-all",children:a},a))})]}),duration:1e4}),al(!1),an([]),ap(!1),dm([]),dp(null)}catch(a){console.error(a)}finally{ar(!1)}}},eF=async()=>{if(aA){aF(!0);try{if(await R({repoPath:a,action:"delete-tag",data:{tag:aA}}),aC&&fk)try{await R({repoPath:a,action:"delete-remote-tag",data:{remote:fk,tag:aA}})}catch(a){console.error("Failed to delete remote tag:",a)}eC()}catch(a){console.error(a)}finally{aF(!1)}}},eG=async()=>{if(au){ax(!0);try{await R({repoPath:a,action:"delete-worktree",data:{path:au}}),at(!1),av(null)}catch(a){console.error(a)}finally{ax(!1)}}},eH=a=>{aT(a),aV(null),aX(a),aZ(!1),aR(!0)},eI=a=>{let b=a.split("/");if(b.length<3||"remotes"!==b[0])return;let c=b[1],d=b.slice(2).join("/");c&&d&&(aT(a),aV({remote:c,branch:d}),aX(d),aZ(!1),aR(!0))},eJ=async()=>{if(aS&&aW){if(aU?aU.branch===aW:aS===aW)return void dD();a_(!0);try{aU?await R({repoPath:a,action:"rename-remote-branch",data:{remote:aU.remote,oldName:aU.branch,newName:aW}}):await R({repoPath:a,action:"rename-branch",data:{oldName:aS,newName:aW,renameTrackingRemote:aY}}),dD()}catch(a){console.error(a)}finally{a_(!1)}}},eK=async()=>{if(!a2)return;let b=a2.trim(),c=a4.trim();if(b&&c){if(b===c)return void dE();a7(!0);try{await R({repoPath:a,action:"rename-remote",data:{oldName:b,newName:c}}),dE()}catch(a){console.error(a)}finally{a7(!1)}}},eL=async()=>{if(!ba)return;let b=ba.trim();if(b){bd(!0);try{await R({repoPath:a,action:"delete-remote",data:{name:b}}),dF()}catch(a){console.error(a)}finally{bd(!1)}}},eM=async()=>{let b=bg.trim(),c=bi.trim();if(b&&c){bl(!0);try{await R({repoPath:a,action:"add-remote",data:{name:b,url:c}}),dG()}catch(a){console.error(a)}finally{bl(!1)}}},eN=({sourceBranch:a,targetBranch:b})=>{bp(a),br(b),bt(!0),bx("checking"),bn(!0)},eO=async()=>{if(bo&&bq){bv(!0);try{await R({repoPath:a,action:"checkout",data:{branch:bo}}),await R({repoPath:a,action:"rebase",data:{ontoBranch:bq,stashChanges:bs}}),by()}catch(a){T(a)&&(by(),S(),(0,n.oR)({type:"warning",title:"Rebase Conflict Detected",description:"Redirected to the conflict resolver. Resolve conflicted files, then continue or abort.",duration:12e3})),console.error(a)}finally{bv(!1)}}},eP=({sourceBranch:a,targetBranch:b})=>{bC(b),bE(a),bG(!1),bI(!1),bK(!1),bM(""),bQ("checking"),bA(!0)},eQ=(0,g.useCallback)(b=>{if(bI(b),b){if(!bD)return void bM("");(async()=>{try{let b=await R({repoPath:a,action:"get-latest-commit-message",data:{branch:bD}});bM("string"==typeof b?.message?b.message:"")}catch(a){console.error(a),bM("")}})()}},[bD,a,R]),eR=async()=>{if(bB&&bD){bO(!0);try{await R({repoPath:a,action:"checkout",data:{branch:bB}}),await R({repoPath:a,action:"merge",data:{targetBranch:bD,rebaseBeforeMerge:bF,squash:bH,fastForward:bJ,squashMessage:bH?bL:void 0}}),bR()}catch(a){T(a)&&(bR(),S(),(0,n.oR)({type:"warning",title:"Merge Conflict Detected",description:"Redirected to the conflict resolver. Resolve conflicted files, then continue or abort.",duration:12e3})),console.error(a)}finally{bO(!1)}}},eS=async b=>{bV(b),ch(null),bX([]),b_([]),bZ(""),b1(""),b3(null),b5(!1),b7(!1),b9(!0),cb(!1),cd(""),bT(!0),cj(!0);try{let c=await R({repoPath:a,action:"get-remotes",data:{}});if(!c.remotes||0===c.remotes.length){ch("No remote repository configured. Please add a remote first."),cj(!1);return}bX(c.remotes);let d=await R({repoPath:a,action:"get-tracking-branch",data:{branch:b}});b3(d.tracking);let e=d.tracking?.remote,f=e&&c.remotes.includes(e)?e:c.remotes[0];bZ(f),cl(!0);let g=await R({repoPath:a,action:"get-remote-branches",data:{remote:f}});b_(g.branches||[]),d.tracking?.remote===f&&d.tracking?.branch?b1(d.tracking.branch):(g.branches?.includes(b),b1(b))}catch(a){console.error(a),ch(a.message||"Failed to load remote information")}finally{cj(!1),cl(!1)}},eT=async b=>{bZ(b),cl(!0),b_([]);try{let c=await R({repoPath:a,action:"get-remote-branches",data:{remote:b}});b_(c.branches||[]),b2?.remote===b&&b2?.branch?b1(b2.branch):b1(bU||"")}catch(a){console.error(a),ch(a.message||"Failed to load remote branches")}finally{cl(!1)}},eU=(0,g.useCallback)(b=>{if(cb(b),b){if(!bU)return void cd("");(async()=>{try{let b=await R({repoPath:a,action:"get-latest-commit-message",data:{branch:bU}});cd("string"==typeof b?.message?b.message:"")}catch(a){console.error(a),cd("")}})()}},[bU,a,R]),eV=async()=>{if(bU&&bY&&b0){cf(!0),ch(null);try{let b=!b$.includes(b0)||b2?.remote!==bY||b2?.branch!==b0;await R({repoPath:a,action:"push-to-remote",data:{localBranch:bU,remote:bY,remoteBranch:b0,rebaseFirst:!b6&&b4,forcePush:b6,pushLocalOnlyTags:b8,setUpstream:b,squash:ca,squashMessage:cc}}),await R({repoPath:a,action:"fetch",data:{remote:bY}}),bT(!1),bV(null)}catch(a){console.error(a),ch(a.message||"Failed to push to remote")}finally{cf(!1)}}},eW=async b=>{cp(b),cF(null),cr([]),cv([]),ct(""),cx(""),cz(null),cB(!0),cn(!0),cH(!0);try{let c=await R({repoPath:a,action:"get-remotes",data:{}});if(!c.remotes||0===c.remotes.length){cF("No remote repository configured. Please add a remote first."),cH(!1);return}cr(c.remotes);let d=await R({repoPath:a,action:"get-tracking-branch",data:{branch:b}});cz(d.tracking);let e=d.tracking?.remote,f=e&&c.remotes.includes(e)?e:c.remotes[0];ct(f),cJ(!0);let g=await R({repoPath:a,action:"get-remote-branches",data:{remote:f}});cv(g.branches||[]),d.tracking?.remote===f&&d.tracking?.branch?cx(d.tracking.branch):cx("")}catch(a){console.error(a),cF(a.message||"Failed to load remote information")}finally{cH(!1),cJ(!1)}},eX=async b=>{ct(b),cJ(!0),cv([]),cx("");try{let c=await R({repoPath:a,action:"get-remote-branches",data:{remote:b}});cv(c.branches||[]),cy?.remote===b&&cy?.branch?cx(cy.branch):cx("")}catch(a){console.error(a),cF(a.message||"Failed to load remote branches")}finally{cJ(!1)}},eY=async()=>{if(co&&cs&&cw){cD(!0),cF(null);try{await R({repoPath:a,action:"pull-from-remote",data:{localBranch:co,remote:cs,remoteBranch:cw,rebase:cA}}),cn(!1),cp(null)}catch(a){console.error(a),cF(a.message||"Failed to pull from remote")}finally{cD(!1)}}},eZ=a=>{cT(a),cV(a.split("/").slice(2).join("/")),cR(!0)},e$=async()=>{if(cS&&cU){cX(!0);try{await R({repoPath:a,action:"checkout-to-local",data:{remoteBranch:cS,localBranch:cU}}),cR(!1),cT(null),cV("")}catch(a){console.error(a)}finally{cX(!1)}}},e_=async()=>{cL(!0);try{await R({repoPath:a,action:"fetch",data:{allRemotes:!0}})}catch(a){console.error(a)}finally{cL(!1)}},e0=(0,g.useCallback)(async()=>{if(!cM){cN(!0);try{let b=await fetch("/api/fs/open",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:a})}),c=await b.json().catch(()=>({}));if(!b.ok)throw Error(c.error||"Failed to open repository folder")}catch(a){(0,n.oR)({type:"error",title:"Failed to Open Repo Folder",description:a instanceof Error?a.message:"Unknown error"})}finally{cN(!1)}}},[cM,a]),e1=(0,g.useCallback)(async()=>{if(!cO){cP(!0);try{let b=await fetch("/api/fs/open-terminal",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:a})}),c=await b.json().catch(()=>({}));if(!b.ok)throw Error(c.error||"Failed to open terminal")}catch(a){(0,n.oR)({type:"error",title:"Failed to Open Terminal",description:a instanceof Error?a.message:"Unknown error"})}finally{cP(!1)}}},[cO,a]),e2=(0,g.useCallback)((a,b)=>{if(b)return;let c=window.location.origin;try{window.top?.location?.origin&&(c=window.top.location.origin)}catch{}let d=`${c}/workspace?path=${encodeURIComponent(a)}`;window.open(d,"_blank","noopener,noreferrer")},[]),e3=async b=>{try{await R({repoPath:a,action:"fetch",data:{remote:b}})}catch(a){console.error(a)}},e4=async b=>{try{await R({repoPath:a,action:"checkout",data:{branch:b}})}catch(a){console.error(a)}},e5=async a=>{c_(a),cZ(!0)},e6=async()=>{if(c$){c1(!0);try{await R({repoPath:a,action:"reset",data:{commitHash:c$,mode:"hard"}}),cZ(!1),c_(null)}catch(a){console.error(a)}finally{c1(!1)}}},e7=async()=>{if(c4){c7(!0);try{await R({repoPath:a,action:"revert",data:{commitHash:c4.hash}}),c3(!1),c5(null)}catch(a){console.error(a)}finally{c7(!1)}}},e8=async()=>{if(da&&dc.trim()){dh(!0);try{let b,c;await R({repoPath:a,action:"reword",data:{commitHash:da.hash,message:(b=dc.trim(),(c=de.replace(/\r\n/g,"\n")).trim()?`${b}
4
4
 
@@ -1 +1 @@
1
- <!DOCTYPE html><!--l9uLuY_iXi6iaQyhMpyBw--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/_next/static/media/4cf2300e9c8272f7-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/93f479601ee12b01-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/_next/static/css/de70bee13400563f.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/34464e853551fd25.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-7dec27dc3bfe207a.js"/><script src="/_next/static/chunks/4bd1b696-096d35a2bd1da3af.js" async=""></script><script src="/_next/static/chunks/794-37dad9bbc14b04b8.js" async=""></script><script src="/_next/static/chunks/main-app-8bead961b2b5992f.js" async=""></script><script src="/_next/static/chunks/176-b068120641913226.js" async=""></script><script src="/_next/static/chunks/785-e6d755147ff87934.js" async=""></script><script src="/_next/static/chunks/200-3664e65687e716a2.js" async=""></script><script src="/_next/static/chunks/26-a76b3447d31c0f53.js" async=""></script><script src="/_next/static/chunks/app/layout-3a89133183963c99.js" async=""></script><link rel="preload" href="https://cdn.jsdelivr.net/gh/iconoir-icons/iconoir@main/css/iconoir.css" as="style"/><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><title>404: This page could not be found.</title><title>Trident</title><meta name="description" content="Git repository management tool"/><link rel="icon" href="/icon.png?91e8b75214a43d69" type="image/png" sizes="256x256"/><link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/iconoir-icons/iconoir@main/css/iconoir.css"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body class="__variable_188709 __variable_9a8899 antialiased"><div hidden=""><!--$--><!--/$--></div><script>((a,b,c,d,e,f,g,h)=>{let i=document.documentElement,j=["light","dark"];function k(b){var c;(Array.isArray(a)?a:[a]).forEach(a=>{let c="class"===a,d=c&&f?e.map(a=>f[a]||a):e;c?(i.classList.remove(...d),i.classList.add(f&&f[b]?f[b]:b)):i.setAttribute(a,b)}),c=b,h&&j.includes(c)&&(i.style.colorScheme=c)}if(d)k(d);else try{let a=localStorage.getItem(b)||c,d=g&&"system"===a?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":a;k(d)}catch(a){}})("data-theme","theme","system",null,["light","dark"],null,true,true)</script><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/webpack-7dec27dc3bfe207a.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[2246,[\"176\",\"static/chunks/176-b068120641913226.js\",\"785\",\"static/chunks/785-e6d755147ff87934.js\",\"200\",\"static/chunks/200-3664e65687e716a2.js\",\"26\",\"static/chunks/26-a76b3447d31c0f53.js\",\"558\",\"static/chunks/app/layout-3a89133183963c99.js\"],\"Providers\"]\n3:I[7121,[],\"\"]\n4:I[4581,[],\"\"]\n5:I[484,[],\"OutletBoundary\"]\n6:\"$Sreact.suspense\"\n8:I[484,[],\"ViewportBoundary\"]\na:I[484,[],\"MetadataBoundary\"]\nc:I[7123,[],\"\"]\n:HL[\"/_next/static/media/4cf2300e9c8272f7-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/93f479601ee12b01-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/css/de70bee13400563f.css\",\"style\"]\n:HL[\"/_next/static/css/34464e853551fd25.css\",\"style\"]\n:HL[\"https://cdn.jsdelivr.net/gh/iconoir-icons/iconoir@main/css/iconoir.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"l9uLuY-iXi6iaQyhMpyBw\",\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/de70bee13400563f.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/34464e853551fd25.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"link\",null,{\"rel\":\"stylesheet\",\"href\":\"https://cdn.jsdelivr.net/gh/iconoir-icons/iconoir@main/css/iconoir.css\"}]}],[\"$\",\"body\",null,{\"className\":\"__variable_188709 __variable_9a8899 antialiased\",\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$6\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@7\"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$6\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true}\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"d:I[6869,[],\"IconMark\"]\n7:null\nb:[[\"$\",\"title\",\"0\",{\"children\":\"Trident\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Git repository management tool\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/icon.png?91e8b75214a43d69\",\"type\":\"image/png\",\"sizes\":\"256x256\"}],[\"$\",\"$Ld\",\"3\",{}]]\n"])</script></body></html>
1
+ <!DOCTYPE html><!--qBeODQKrmCXcCTlAXpjln--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/_next/static/media/4cf2300e9c8272f7-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/93f479601ee12b01-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/_next/static/css/de70bee13400563f.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/87de0e40a1732998.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-7dec27dc3bfe207a.js"/><script src="/_next/static/chunks/4bd1b696-096d35a2bd1da3af.js" async=""></script><script src="/_next/static/chunks/794-37dad9bbc14b04b8.js" async=""></script><script src="/_next/static/chunks/main-app-8bead961b2b5992f.js" async=""></script><script src="/_next/static/chunks/176-b068120641913226.js" async=""></script><script src="/_next/static/chunks/785-e6d755147ff87934.js" async=""></script><script src="/_next/static/chunks/200-3664e65687e716a2.js" async=""></script><script src="/_next/static/chunks/26-a76b3447d31c0f53.js" async=""></script><script src="/_next/static/chunks/app/layout-3a89133183963c99.js" async=""></script><link rel="preload" href="https://cdn.jsdelivr.net/gh/iconoir-icons/iconoir@main/css/iconoir.css" as="style"/><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><title>404: This page could not be found.</title><title>Trident</title><meta name="description" content="Git repository management tool"/><link rel="icon" href="/icon.png?91e8b75214a43d69" type="image/png" sizes="256x256"/><link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/iconoir-icons/iconoir@main/css/iconoir.css"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body class="__variable_188709 __variable_9a8899 antialiased"><div hidden=""><!--$--><!--/$--></div><script>((a,b,c,d,e,f,g,h)=>{let i=document.documentElement,j=["light","dark"];function k(b){var c;(Array.isArray(a)?a:[a]).forEach(a=>{let c="class"===a,d=c&&f?e.map(a=>f[a]||a):e;c?(i.classList.remove(...d),i.classList.add(f&&f[b]?f[b]:b)):i.setAttribute(a,b)}),c=b,h&&j.includes(c)&&(i.style.colorScheme=c)}if(d)k(d);else try{let a=localStorage.getItem(b)||c,d=g&&"system"===a?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":a;k(d)}catch(a){}})("data-theme","theme","system",null,["light","dark"],null,true,true)</script><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/webpack-7dec27dc3bfe207a.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[2246,[\"176\",\"static/chunks/176-b068120641913226.js\",\"785\",\"static/chunks/785-e6d755147ff87934.js\",\"200\",\"static/chunks/200-3664e65687e716a2.js\",\"26\",\"static/chunks/26-a76b3447d31c0f53.js\",\"558\",\"static/chunks/app/layout-3a89133183963c99.js\"],\"Providers\"]\n3:I[7121,[],\"\"]\n4:I[4581,[],\"\"]\n5:I[484,[],\"OutletBoundary\"]\n6:\"$Sreact.suspense\"\n8:I[484,[],\"ViewportBoundary\"]\na:I[484,[],\"MetadataBoundary\"]\nc:I[7123,[],\"\"]\n:HL[\"/_next/static/media/4cf2300e9c8272f7-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/93f479601ee12b01-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/css/de70bee13400563f.css\",\"style\"]\n:HL[\"/_next/static/css/87de0e40a1732998.css\",\"style\"]\n:HL[\"https://cdn.jsdelivr.net/gh/iconoir-icons/iconoir@main/css/iconoir.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"qBeODQKrmCXcCTlAXpjln\",\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/de70bee13400563f.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/87de0e40a1732998.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"link\",null,{\"rel\":\"stylesheet\",\"href\":\"https://cdn.jsdelivr.net/gh/iconoir-icons/iconoir@main/css/iconoir.css\"}]}],[\"$\",\"body\",null,{\"className\":\"__variable_188709 __variable_9a8899 antialiased\",\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$6\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@7\"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$6\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true}\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"d:I[6869,[],\"IconMark\"]\n7:null\nb:[[\"$\",\"title\",\"0\",{\"children\":\"Trident\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Git repository management tool\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/icon.png?91e8b75214a43d69\",\"type\":\"image/png\",\"sizes\":\"256x256\"}],[\"$\",\"$Ld\",\"3\",{}]]\n"])</script></body></html>
@@ -1,2 +1,2 @@
1
- <!DOCTYPE html><!--l9uLuY_iXi6iaQyhMpyBw--><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-7dec27dc3bfe207a.js"/><script src="/_next/static/chunks/4bd1b696-096d35a2bd1da3af.js" async=""></script><script src="/_next/static/chunks/794-37dad9bbc14b04b8.js" async=""></script><script src="/_next/static/chunks/main-app-8bead961b2b5992f.js" async=""></script><meta name="next-size-adjust" content=""/><title>500: Internal Server Error.</title><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}
2
- @media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">500</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">Internal Server Error.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/webpack-7dec27dc3bfe207a.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[7121,[],\"\"]\n3:I[4581,[],\"\"]\n4:I[484,[],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n7:I[484,[],\"ViewportBoundary\"]\n9:I[484,[],\"MetadataBoundary\"]\nb:I[7123,[],\"\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"l9uLuY-iXi6iaQyhMpyBw\",\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"_global-error\",{\"children\":[\"__PAGE__\",{}]}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"title\",null,{\"children\":\"500: Internal Server Error.\"}]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"lineHeight\":\"48px\"},\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}\\n@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"paddingRight\":23,\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\"},\"children\":\"500\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"28px\"},\"children\":\"Internal Server Error.\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L7\",null,{\"children\":\"$L8\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L9\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$La\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$b\",[]],\"S\":true}\n"])</script><script>self.__next_f.push([1,"8:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"6:null\na:[]\n"])</script></body></html>
1
+ <!DOCTYPE html><!--qBeODQKrmCXcCTlAXpjln--><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-7dec27dc3bfe207a.js"/><script src="/_next/static/chunks/4bd1b696-096d35a2bd1da3af.js" async=""></script><script src="/_next/static/chunks/794-37dad9bbc14b04b8.js" async=""></script><script src="/_next/static/chunks/main-app-8bead961b2b5992f.js" async=""></script><meta name="next-size-adjust" content=""/><title>500: Internal Server Error.</title><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}
2
+ @media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">500</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">Internal Server Error.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/webpack-7dec27dc3bfe207a.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[7121,[],\"\"]\n3:I[4581,[],\"\"]\n4:I[484,[],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n7:I[484,[],\"ViewportBoundary\"]\n9:I[484,[],\"MetadataBoundary\"]\nb:I[7123,[],\"\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"qBeODQKrmCXcCTlAXpjln\",\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"_global-error\",{\"children\":[\"__PAGE__\",{}]}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"title\",null,{\"children\":\"500: Internal Server Error.\"}]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"lineHeight\":\"48px\"},\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}\\n@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"paddingRight\":23,\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\"},\"children\":\"500\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"28px\"},\"children\":\"Internal Server Error.\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L7\",null,{\"children\":\"$L8\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L9\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$La\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$b\",[]],\"S\":true}\n"])</script><script>self.__next_f.push([1,"8:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"6:null\na:[]\n"])</script></body></html>
@@ -1 +1 @@
1
- {"node":{},"edge":{},"encryptionKey":"vLzvbpVyZ44MBpi8ug1FRtXXzpeb79TGQAnWS++IHiQ="}
1
+ {"node":{},"edge":{},"encryptionKey":"8+xijprSQ5BOi2bpJlifZ3YPZReqO/KfWjyJEqm8820="}