PageSourceSearch

https://1myac.com/chunk-22NDOM3J.js

js 1myac.com collected 2026-09-29 15:35:24 UTC 28,228 bytes, 1 lines download raw bytes

1import{a as ie}from"./chunk-NVRT2BGR.js";import{a as de}from"./chunk-OSZ7KPSI.js";import{a as he}from"./chunk-V7H33RMG.js";import"./chunk-3Q435MSQ.js";import"./chunk-RBQNH42H.js";import"./chunk-ISHAE3NO.js";import"./chunk-6AV4ARYD.js";import"./chunk-F2YCIDJY.js";import{C as ne,D as ce,w as oe}from"./chunk-Y2VH6OJG.js";import"./chunk-2DG2OPPA.js";import{C as V,M as E,R as J,S as F,T as X,U as Q,V as U,W as ee,X as te,Y as re,aa as ae,g as l,i as w,u as Z}from"./chunk-MKXYEVA7.js";import"./chunk-EL5SV3JE.js";import"./chunk-V5YH6CLL.js";import"./chunk-2GU5336X.js";import{j as se}from"./chunk-KAYYNT2L.js";import"./chunk-KDSDEIG5.js";import"./chunk-N233UIX2.js";import"./chunk-PGYLP6GG.js";import"./chunk-OPIF26FG.js";import"./chunk-RMDLQNEC.js";import"./chunk-TRV6NV54.js";import{a as A,b as K,t as Y}from"./chunk-ATLPHYUF.js";var $={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},xe=Z.gitGraph,I=l(()=>ne(A(A({},xe),V().gitGraph)),"getConfig"),i=new de(()=>{let a=I(),t=a.mainBranchName,r=a.mainBranchOrder;return{mainBranchName:t,commits:new Map,head:null,branchConfig:new Map([[t,{name:t,order:r}]]),branches:new Map([[t,null]]),currBranch:t,direction:"LR",seq:0,options:{}}});function _(){return oe({length:7})}l(_,"getID");function me(a,t){let r=Object.create(null);return a.reduce((o,e)=>{let s=t(e);return r[s]||(r[s]=!0,o.push(e)),o},[])}l(me,"uniqBy");var ue=l(function(a){i.records.direction=a},"setDirection"),be=l(function(a){w.debug("options str",a),a=a==null?void 0:a.trim(),a=a||"{}";try{i.records.options=JSON.parse(a)}catch(t){w.error("error while parsing gitGraph options",t.message)}},"setOptions"),we=l(function(){return i.records.options},"getOptions"),Be=l(function(a){let t=a.msg,r=a.id,o=a.type,e=a.tags;w.info("commit",t,r,o,e),w.debug("Entering commit:",t,r,o,e);let s=I();r=E.sanitizeText(r,s),t=E.sanitizeText(t,s),e=e==null?void 0:e.map(n=>E.sanitizeText(n,s));let c={id:r||i.records.seq+"-"+_(),message:t,seq:i.records.seq++,type:o!=null?o:$.NORMAL,tags:e!=null?e:[],parents:i.records.head==null?[]:[i.records.head.id],branch:i.records.currBranch};i.records.head=c,w.info("main branch",s.mainBranchName),i.records.commits.set(c.id,c),i.records.branches.set(i.records.currBranch,c.id),w.debug("in pushCommit "+c.id)},"commit"),ve=l(function(a){let t=a.name,r=a.order;if(t=E.sanitizeText(t,I()),i.records.branches.has(t))throw new Error('Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout '.concat(t,'")'));i.records.branches.set(t,i.records.head!=null?i.records.head.id:null),i.records.branchConfig.set(t,{name:t,order:r}),pe(t),w.debug("in createBranch")},"branch"),Ce=l(a=>{let t=a.branch,r=a.id,o=a.type,e=a.tags,s=I();t=E.sanitizeText(t,s),r&&(r=E.sanitizeText(r,s));let c=i.records.branches.get(i.records.currBranch),n=i.records.branches.get(t),m=c?i.records.commits.get(c):void 0,h=n?i.records.commits.get(n):void 0;if(m&&h&&m.branch===t)throw new Error("Cannot merge branch '".concat(t,"' into itself."));if(i.records.currBranch===t){let d=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw d.hash={text:"merge ".concat(t),token:"merge ".concat(t),expected:["branch abc"]},d}if(m===void 0||!m){let d=new Error('Incorrect usage of "merge". Current branch ('.concat(i.records.currBranch,")has no commits"));throw d.hash={text:"merge ".concat(t),token:"merge ".concat(t),expected:["commit"]},d}if(!i.records.branches.has(t)){let d=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") does not exist");throw d.hash={text:"merge ".concat(t),token:"merge ".concat(t),expected:["branch ".concat(t)]},d}if(h===void 0||!h){let d=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") has no commits");throw d.hash={text:"merge ".concat(t),token:"merge ".concat(t),expected:['"commit"']},d}if(m===h){let d=new Error('Incorrect usage of "merge". Both branches have same head');throw d.hash={text:"merge ".concat(t),token:"merge ".concat(t),expected:["branch abc"]},d}if(r&&i.records.commits.has(r)){let d=new Error('Incorrect usage of "merge". Commit with id:'+r+" already exists, use different custom Id");throw d.hash={text:"merge ".concat(t," ").concat(r," ").concat(o," ").concat(e==null?void 0:e.join(" ")),token:"merge ".concat(t," ").concat(r," ").concat(o," ").concat(e==null?void 0:e.join(" ")),expected:["merge ".concat(t," ").concat(r,"_UNIQUE ").concat(o," ").concat(e==null?void 0:e.join(" "))]},d}let p=n||"",y={id:r||"".concat(i.records.seq,"-").concat(_()),message:"merged branch ".concat(t," into ").concat(i.records.currBranch),seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,p],branch:i.records.currBranch,type:$.MERGE,customType:o,customId:!!r,tags:e!=null?e:[]};i.records.head=y,i.records.commits.set(y.id,y),i.records.branches.set(i.records.currBranch,y.id),w.debug(i.records.branches),w.debug("in mergeBranch")},"merge"),ke=l(function(a){let t=a.id,r=a.targetId,o=a.tags,e=a.parent;w.debug("Entering cherryPick:",t,r,o);let s=I();if(t=E.sanitizeText(t,s),r=E.sanitizeText(r,s),o=o==null?void 0:o.map(m=>E.sanitizeText(m,s)),e=E.sanitizeText(e,s),!t||!i.records.commits.has(t)){let m=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw m.hash={text:"cherryPick ".concat(t," ").concat(r),token:"cherryPick ".concat(t," ").concat(r),expected:["cherry-pick abc"]},m}let c=i.records.commits.get(t);if(c===void 0||!c)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(e&&!(Array.isArray(c.parents)&&c.parents.includes(e)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let n=c.branch;
1if(c.type===$.MERGE&&!e)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!r||!i.records.commits.has(r)){if(n===i.records.currBranch){let y=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw y.hash={text:"cherryPick ".concat(t," ").concat(r),token:"cherryPick ".concat(t," ").concat(r),expected:["cherry-pick abc"]},y}let m=i.records.branches.get(i.records.currBranch);if(m===void 0||!m){let y=new Error('Incorrect usage of "cherry-pick". Current branch ('.concat(i.records.currBranch,")has no commits"));throw y.hash={text:"cherryPick ".concat(t," ").concat(r),token:"cherryPick ".concat(t," ").concat(r),expected:["cherry-pick abc"]},y}let h=i.records.commits.get(m);if(h===void 0||!h){let y=new Error('Incorrect usage of "cherry-pick". Current branch ('.concat(i.records.currBranch,")has no commits"));throw y.hash={text:"cherryPick ".concat(t," ").concat(r),token:"cherryPick ".concat(t," ").concat(r),expected:["cherry-pick abc"]},y}let p={id:i.records.seq+"-"+_(),message:"cherry-picked ".concat(c==null?void 0:c.message," into ").concat(i.records.currBranch),seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,c.id],branch:i.records.currBranch,type:$.CHERRY_PICK,tags:o?o.filter(Boolean):["cherry-pick:".concat(c.id).concat(c.type===$.MERGE?"|parent:".concat(e):"")]};i.records.head=p,i.records.commits.set(p.id,p),i.records.branches.set(i.records.currBranch,p.id),w.debug(i.records.branches),w.debug("in cherryPick")}},"cherryPick"),pe=l(function(a){var t;if(a=E.sanitizeText(a,I()),i.records.branches.has(a)){i.records.currBranch=a;let r=i.records.branches.get(i.records.currBranch);r===void 0||!r?i.records.head=null:i.records.head=(t=i.records.commits.get(r))!=null?t:null}else{let r=new Error('Trying to checkout branch which is not yet created. (Help try using "branch '.concat(a,'")'));throw r.hash={text:"checkout ".concat(a),token:"checkout ".concat(a),expected:["branch ".concat(a)]},r}},"checkout");function S(a,t,r){let o=a.indexOf(t);o===-1?a.push(r):a.splice(o,1,r)}l(S,"upsert");function j(a){let t=a.reduce((e,s)=>e.seq>s.seq?e:s,a[0]),r="";a.forEach(function(e){e===t?r+="	*":r+="	|"});let o=[r,t.id,t.seq];for(let e in i.records.branches)i.records.branches.get(e)===t.id&&o.push(e);if(w.debug(o.join(" ")),t.parents&&t.parents.length==2&&t.parents[0]&&t.parents[1]){let e=i.records.commits.get(t.parents[0]);S(a,t,e),t.parents[1]&&a.push(i.records.commits.get(t.parents[1]))}else{if(t.parents.length==0)return;if(t.parents[0]){let e=i.records.commits.get(t.parents[0]);S(a,t,e)}}a=me(a,e=>e.id),j(a)}l(j,"prettyPrintCommitHistory");var Ee=l(function(){w.debug(i.records.commits);let a=ge()[0];j([a])},"prettyPrint"),Te=l(function(){i.reset(),J()},"clear"),Le=l(function(){return[...i.records.branchConfig.values()].map((t,r)=>t.order!==null&&t.order!==void 0?t:K(A({},t),{order:parseFloat("0.".concat(r))})).sort((t,r)=>{var o,e;return((o=t.order)!=null?o:0)-((e=r.order)!=null?e:0)}).map(({name:t})=>({name:t}))},"getBranchesAsObjArray"),Me=l(function(){return i.records.branches},"getBranches"),Pe=l(function(){return i.records.commits},"getCommits"),ge=l(function(){let a=[...i.records.commits.values()];return a.forEach(function(t){w.debug(t.id)}),a.sort((t,r)=>t.seq-r.seq),a},"getCommitsArray"),Re=l(function(){return i.records.currBranch},"getCurrentBranch"),Oe=l(function(){return i.records.direction},"getDirection"),qe=l(function(){return i.records.head},"getHead"),fe={commitType:$,getConfig:I,setDirection:ue,setOptions:be,getOptions:we,commit:Be,branch:ve,merge:Ce,cherryPick:ke,checkout:pe,prettyPrint:Ee,clear:Te,getBranchesAsObjArray:Le,getBranches:Me,getCommits:Pe,getCommitsArray:ge,getCurrentBranch:Re,getDirection:Oe,getHead:qe,setAccTitle:F,getAccTitle:X,getAccDescription:U,setAccDescription:Q,setDiagramTitle:ee,getDiagramTitle:te},Ie=l((a,t)=>{ie(a,t),a.dir&&t.setDirection(a.dir);for(let r of a.statements)We(r,t)},"populate"),We=l((a,t)=>{let o={Commit:l(e=>t.commit(Ge(e)),"Commit"),Branch:l(e=>t.branch(De(e)),"Branch"),Merge:l(e=>t.merge(Ae(e)),"Merge"),Checkout:l(e=>t.checkout(He(e)),"Checkout"),CherryPicking:l(e=>t.cherryPick(Ne(e)),"CherryPicking")}[a.$type];o?o(a):w.error("Unknown statement type: ".concat(a.$type))},"parseStatement"),Ge=l(a=>{var r,o;return{id:a.id,msg:(r=a.message)!=null?r:"",type:a.type!==void 0?$[a.type]:$.NORMAL,tags:(o=a.tags)!=null?o:void 0}},"parseCommit"),De=l(a=>{var r;return{name:a.name,order:(r=a.order)!=null?r:0}},"parseBranch"),Ae=l(a=>{var r,o;return{branch:a.branch,id:(r=a.id)!=null?r:"",type:a.type!==void 0?$[a.type]:void 0,tags:(o=a.tags)!=null?o:void 0}},"parseMerge"),He=l(a=>a.branch,"parseCheckout"),Ne=l(a=>{var r;return{id:a.id,targetId:"",tags:((r=a.tags)==null?void 0:r.length)===0?void 0:a.tags,parent:a.parent}},"parseCherryPicking"),_e={parse:l(a=>Y(null,null,function*(){let t=yield he("gitGraph",a);w.debug(t),Ie(t,fe)}),"parse")},z=re(),b=z==null?void 0:z.gitGraph,R=10,O=40,L=4,M=2,q=8,v=new Map,C=new Map,H=30,G=new Map,N=[],P=0,f="LR",ze=l(()=>
1{v.clear(),C.clear(),G.clear(),P=0,N=[],f="LR"},"clear"),ye=l(a=>{let t=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof a=="string"?a.split(/\\n|\n|<br\s*\/?>/gi):a).forEach(o=>{let e=document.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),e.setAttribute("dy","1em"),e.setAttribute("x","0"),e.setAttribute("class","row"),e.textContent=o.trim(),t.appendChild(e)}),t},"drawText"),$e=l(a=>{let t,r,o;return f==="BT"?(r=l((e,s)=>e<=s,"comparisonFunc"),o=1/0):(r=l((e,s)=>e>=s,"comparisonFunc"),o=0),a.forEach(e=>{var c,n;let s=f==="TB"||f=="BT"?(c=C.get(e))==null?void 0:c.y:(n=C.get(e))==null?void 0:n.x;s!==void 0&&r(s,o)&&(t=e,o=s)}),t},"findClosestParent"),Se=l(a=>{let t="",r=1/0;return a.forEach(o=>{let e=C.get(o).y;e<=r&&(t=o,r=e)}),t||void 0},"findClosestParentBT"),je=l((a,t,r)=>{let o=r,e=r,s=[];a.forEach(c=>{let n=t.get(c);if(!n)throw new Error("Commit not found for key ".concat(c));n.parents.length?(o=Ye(n),e=Math.max(o,e)):s.push(n),Ze(n,o)}),o=e,s.forEach(c=>{Ve(c,o,r)}),a.forEach(c=>{let n=t.get(c);if(n!=null&&n.parents.length){let m=Se(n.parents);o=C.get(m).y-O,o<=e&&(e=o);let h=v.get(n.branch).pos,p=o-R;C.set(n.id,{x:h,y:p})}})},"setParallelBTPos"),Ke=l(a=>{var o;let t=$e(a.parents.filter(e=>e!==null));if(!t)throw new Error("Closest parent not found for commit ".concat(a.id));let r=(o=C.get(t))==null?void 0:o.y;if(r===void 0)throw new Error("Closest parent position not found for commit ".concat(a.id));return r},"findClosestParentPos"),Ye=l(a=>Ke(a)+O,"calculateCommitPosition"),Ze=l((a,t)=>{let r=v.get(a.branch);if(!r)throw new Error("Branch not found for commit ".concat(a.id));let o=r.pos,e=t+R;return C.set(a.id,{x:o,y:e}),{x:o,y:e}},"setCommitPosition"),Ve=l((a,t,r)=>{let o=v.get(a.branch);if(!o)throw new Error("Branch not found for commit ".concat(a.id));let e=t+r,s=o.pos;C.set(a.id,{x:s,y:e})},"setRootPosition"),Je=l((a,t,r,o,e,s)=>{if(s===$.HIGHLIGHT)a.append("rect").attr("x",r.x-10).attr("y",r.y-10).attr("width",20).attr("height",20).attr("class","commit ".concat(t.id," commit-highlight").concat(e%q," ").concat(o,"-outer")),a.append("rect").attr("x",r.x-6).attr("y",r.y-6).attr("width",12).attr("height",12).attr("class","commit ".concat(t.id," commit").concat(e%q," ").concat(o,"-inner"));else if(s===$.CHERRY_PICK)a.append("circle").attr("cx",r.x).attr("cy",r.y).attr("r",10).attr("class","commit ".concat(t.id," ").concat(o)),a.append("circle").attr("cx",r.x-3).attr("cy",r.y+2).attr("r",2.75).attr("fill","#fff").attr("class","commit ".concat(t.id," ").concat(o)),a.append("circle").attr("cx",r.x+3).attr("cy",r.y+2).attr("r",2.75).attr("fill","#fff").attr("class","commit ".concat(t.id," ").concat(o)),a.append("line").attr("x1",r.x+3).attr("y1",r.y+1).attr("x2",r.x).attr("y2",r.y-5).attr("stroke","#fff").attr("class","commit ".concat(t.id," ").concat(o)),a.append("line").attr("x1",r.x-3).attr("y1",r.y+1).attr("x2",r.x).attr("y2",r.y-5).attr("stroke","#fff").attr("class","commit ".concat(t.id," ").concat(o));else{let c=a.append("circle");if(c.attr("cx",r.x),c.attr("cy",r.y),c.attr("r",t.type===$.MERGE?9:10),c.attr("class","commit ".concat(t.id," commit").concat(e%q)),s===$.MERGE){let n=a.append("circle");n.attr("cx",r.x),n.attr("cy",r.y),n.attr("r",6),n.attr("class","commit ".concat(o," ").concat(t.id," commit").concat(e%q))}s===$.REVERSE&&a.append("path").attr("d","M ".concat(r.x-5,",").concat(r.y-5,"L").concat(r.x+5,",").concat(r.y+5,"M").concat(r.x-5,",").concat(r.y+5,"L").concat(r.x+5,",").concat(r.y-5)).attr("class","commit ".concat(o," ").concat(t.id," commit").concat(e%q))}},"drawCommitBullet"),Fe=l((a,t,r,o)=>{var e;if(t.type!==$.CHERRY_PICK&&(t.customId&&t.type===$.MERGE||t.type!==$.MERGE)&&(b!=null&&b.showCommitLabel)){let s=a.append("g"),c=s.insert("rect").attr("class","commit-label-bkg"),n=s.append("text").attr("x",o).attr("y",r.y+25).attr("class","commit-label").text(t.id),m=(e=n.node())==null?void 0:e.getBBox();if(m&&(c.attr("x",r.posWithOffset-m.width/2-M).attr("y",r.y+13.5).attr("width",m.width+2*M).attr("height",m.height+2*M),f==="TB"||f==="BT"?(c.attr("x",r.x-(m.width+4*L+5)).attr("y",r.y-12),n.attr("x",r.x-(m.width+4*L)).attr("y",r.y+m.height-12)):n.attr("x",r.posWithOffset-m.width/2),b.rotateCommitLabel))if(f==="TB"||f==="BT")n.attr("transform","rotate(-45, "+r.x+", "+r.y+")"),c.attr("transform","rotate(-45, "+r.x+", "+r.y+")");else{let h=-7.5-(m.width+10)/25*9.5,p=10+m.width/25*8.5;s.attr("transform","translate("+h+", "+p+") rotate(-45, "+o+", "+r.y+")")}}},"drawCommitLabel"),Xe=l((a,t,r,o)=>{var e;if(t.tags.length>0){let s=0,c=0,n=0,m=[];for(let h of t.tags.reverse()){let p=a.insert("polygon"),y=a.append("circle"),d=a.append("text").attr("y",r.y-16-s).attr("class","tag-label").text(h),g=(e=d.node())==null?void 0:e.getBBox();if(!g)throw new Error("Tag bbox not found");c=Math.max(c,g.width),n=Math.max(n,g.height),d.attr("x",r.posWithOffset-g.width/2),m.push({tag:d,hole:y,rect:p,yOffset:s}),s+=20}for(let{tag:h,hole:p,rect:y,yOffset:d}of m){let g=n/2,x=r.y-19.2-d;if(y.attr("class","tag-label-bkg").attr("points","\n      ".concat(o-c/2-L/2,",").concat(x+M,"  \n      ").concat(o-c/2-L/2,",").concat(x-M,"\n      ").concat(r.posWithOffset-c/2-L,",").concat(x-g-M,"\n      ").concat(r.posWithOffset+c/2+L,",").concat(x-g-M,"\n      ").concat(r.posWithOffset+c/2+L,",").concat(x+g+M,"\n      ").concat(r.posWithOffset-c/2-L,",").concat(x+g+M)),p.attr("cy",x).attr("cx",o-c/2+L/2).attr("r",1.5).attr("class","tag-hole"),f==="TB"||f==="BT"){let u=o+d;y.attr("class","tag-label-bkg").attr("points","\n        ".concat(r.x,",").concat(u+2,"\n        ").concat(r.x,",").concat(u-2,"\n        ").concat(r.x+R,",").concat(u-g-2,"\n        ").concat(r.x+R+c+4,",").concat(u-g-2,"\n        ").concat(r.x+R+c+4,",").concat(u+g+2,"\n        ").concat(r.x+R,",").concat(u+g+2)).attr("transform","translate(12,12) rotate(45, "+r.x+","+o+")"),p.attr("cx",r.x+L/2).attr("cy",u).attr("transform","translate(12,12) rotate(45, "+r.x+","+o+")"),h.attr("x",r.x+5).attr("y",u+3).attr("transform","translate(14,14) rotate(45, "+r.x+","+o+")")}}}},"drawCommitTags"),Qe=l(a=>{var r;switch((r=a.customType)!=null?r:a.type){case $.NORMAL:return"commit-normal";case $.REVERSE:return"commit-reverse";case $.HIGHLIGHT:return"commit-highlight";case $.MERGE:return"commit-merge";
1case $.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),Ue=l((a,t,r,o)=>{var s,c,n;let e={x:0,y:0};if(a.parents.length>0){let m=$e(a.parents);if(m){let h=(s=o.get(m))!=null?s:e;return t==="TB"?h.y+O:t==="BT"?((c=o.get(a.id))!=null?c:e).y-O:h.x+O}}else return t==="TB"?H:t==="BT"?((n=o.get(a.id))!=null?n:e).y-O:0;return 0},"calculatePosition"),et=l((a,t,r)=>{var c,n;let o=f==="BT"&&r?t:t+R,e=f==="TB"||f==="BT"?o:(c=v.get(a.branch))==null?void 0:c.pos,s=f==="TB"||f==="BT"?(n=v.get(a.branch))==null?void 0:n.pos:o;if(s===void 0||e===void 0)throw new Error("Position were undefined for commit ".concat(a.id));return{x:s,y:e,posWithOffset:o}},"getCommitPosition"),le=l((a,t,r)=>{var p;if(!b)throw new Error("GitGraph config not found");let o=a.append("g").attr("class","commit-bullets"),e=a.append("g").attr("class","commit-labels"),s=f==="TB"||f==="BT"?H:0,c=[...t.keys()],n=(p=b==null?void 0:b.parallelCommits)!=null?p:!1,m=l((y,d)=>{var u,T;let g=(u=t.get(y))==null?void 0:u.seq,x=(T=t.get(d))==null?void 0:T.seq;return g!==void 0&&x!==void 0?g-x:0},"sortKeys"),h=c.sort(m);f==="BT"&&(n&&je(h,t,s),h=h.reverse()),h.forEach(y=>{var x,u,T;let d=t.get(y);if(!d)throw new Error("Commit not found for key ".concat(y));n&&(s=Ue(d,f,s,C));let g=et(d,s,n);if(r){let W=Qe(d),k=(x=d.customType)!=null?x:d.type,B=(T=(u=v.get(d.branch))==null?void 0:u.index)!=null?T:0;Je(o,d,g,W,B,k),Fe(e,d,g,s),Xe(e,d,g,s)}f==="TB"||f==="BT"?C.set(d.id,{x:g.x,y:g.posWithOffset}):C.set(d.id,{x:g.posWithOffset,y:g.y}),s=f==="BT"&&n?s+O:s+O+R,s>P&&(P=s)})},"drawCommits"),tt=l((a,t,r,o,e)=>{let c=(f==="TB"||f==="BT"?r.x<o.x:r.y<o.y)?t.branch:a.branch,n=l(h=>h.branch===c,"isOnBranchToGetCurve"),m=l(h=>h.seq>a.seq&&h.seq<t.seq,"isBetweenCommits");return[...e.values()].some(h=>m(h)&&n(h))},"shouldRerouteArrow"),D=l((a,t,r=0)=>{let o=a+Math.abs(a-t)/2;if(r>5)return o;if(N.every(c=>Math.abs(c-o)>=10))return N.push(o),o;let s=Math.abs(a-t);return D(a,t-s/5,r+1)},"findLane"),rt=l((a,t,r,o)=>{var g,x,u,T,W;let e=C.get(t.id),s=C.get(r.id);if(e===void 0||s===void 0)throw new Error("Commit positions not found for commits ".concat(t.id," and ").concat(r.id));let c=tt(t,r,e,s,o),n="",m="",h=0,p=0,y=(g=v.get(r.branch))==null?void 0:g.index;r.type===$.MERGE&&t.id!==r.parents[0]&&(y=(x=v.get(t.branch))==null?void 0:x.index);let d;if(c){n="A 10 10, 0, 0, 0,",m="A 10 10, 0, 0, 1,",h=10,p=10;let k=e.y<s.y?D(e.y,s.y):D(s.y,e.y),B=e.x<s.x?D(e.x,s.x):D(s.x,e.x);f==="TB"?e.x<s.x?d="M ".concat(e.x," ").concat(e.y," L ").concat(B-h," ").concat(e.y," ").concat(m," ").concat(B," ").concat(e.y+p," L ").concat(B," ").concat(s.y-h," ").concat(n," ").concat(B+p," ").concat(s.y," L ").concat(s.x," ").concat(s.y):(y=(u=v.get(t.branch))==null?void 0:u.index,d="M ".concat(e.x," ").concat(e.y," L ").concat(B+h," ").concat(e.y," ").concat(n," ").concat(B," ").concat(e.y+p," L ").concat(B," ").concat(s.y-h," ").concat(m," ").concat(B-p," ").concat(s.y," L ").concat(s.x," ").concat(s.y)):f==="BT"?e.x<s.x?d="M ".concat(e.x," ").concat(e.y," L ").concat(B-h," ").concat(e.y," ").concat(n," ").concat(B," ").concat(e.y-p," L ").concat(B," ").concat(s.y+h," ").concat(m," ").concat(B+p," ").concat(s.y," L ").concat(s.x," ").concat(s.y):(y=(T=v.get(t.branch))==null?void 0:T.index,d="M ".concat(e.x," ").concat(e.y," L ").concat(B+h," ").concat(e.y," ").concat(m," ").concat(B," ").concat(e.y-p," L ").concat(B," ").concat(s.y+h," ").concat(n," ").concat(B-p," ").concat(s.y," L ").concat(s.x," ").concat(s.y)):e.y<s.y?d="M ".concat(e.x," ").concat(e.y," L ").concat(e.x," ").concat(k-h," ").concat(n," ").concat(e.x+p," ").concat(k," L ").concat(s.x-h," ").concat(k," ").concat(m," ").concat(s.x," ").concat(k+p," L ").concat(s.x," ").concat(s.y):(y=(W=v.get(t.branch))==null?void 0:W.index,d="M ".concat(e.x," ").concat(e.y," L ").concat(e.x," ").concat(k+h," ").concat(m," ").concat(e.x+p," ").concat(k," L ").concat(s.x-h," ").concat(k," ").concat(n," ").concat(s.x," ").concat(k-p," L ").concat(s.x," ").concat(s.y))}else n="A 20 20, 0, 0, 0,",m="A 20 20, 0, 0, 1,",h=20,p=20,f==="TB"?(e.x<s.x&&(r.type===$.MERGE&&t.id!==r.parents[0]?d="M ".concat(e.x," ").concat(e.y," L ").concat(e.x," ").concat(s.y-h," ").concat(n," ").concat(e.x+p," ").concat(s.y," L ").concat(s.x," ").concat(s.y):d="M ".concat(e.x," ").concat(e.y," L ").concat(s.x-h," ").concat(e.y," ").concat(m," ").concat(s.x," ").concat(e.y+p," L ").concat(s.x," ").concat(s.y)),e.x>s.x&&(n="A 20 20, 0, 0, 0,",m="A 20 20, 0, 0, 1,",h=20,p=20,r.type===$.MERGE&&t.id!==r.parents[0]?d="M ".concat(e.x," ").concat(e.y," L ").concat(e.x," ").concat(s.y-h," ").concat(m," ").concat(e.x-p," ").concat(s.y," L ").concat(s.x," ").concat(s.y):d="M ".concat(e.x," ").concat(e.y," L ").concat(s.x+h," ").concat(e.y," ").concat(n," ").concat(s.x," ").concat(e.y+p," L ").concat(s.x," ").concat(s.y)),e.x===s.x&&(d="M ".concat(e.x," ").concat(e.y," L ").concat(s.x," ").concat(s.y))):f==="BT"?(e.x<s.x&&(r.type===$.MERGE&&t.id!==r.parents[0]?d="M ".concat(e.x," ").concat(e.y," L ").concat(e.x," ").concat(s.y+
1h," ").concat(m," ").concat(e.x+p," ").concat(s.y," L ").concat(s.x," ").concat(s.y):d="M ".concat(e.x," ").concat(e.y," L ").concat(s.x-h," ").concat(e.y," ").concat(n," ").concat(s.x," ").concat(e.y-p," L ").concat(s.x," ").concat(s.y)),e.x>s.x&&(n="A 20 20, 0, 0, 0,",m="A 20 20, 0, 0, 1,",h=20,p=20,r.type===$.MERGE&&t.id!==r.parents[0]?d="M ".concat(e.x," ").concat(e.y," L ").concat(e.x," ").concat(s.y+h," ").concat(n," ").concat(e.x-p," ").concat(s.y," L ").concat(s.x," ").concat(s.y):d="M ".concat(e.x," ").concat(e.y," L ").concat(s.x-h," ").concat(e.y," ").concat(n," ").concat(s.x," ").concat(e.y-p," L ").concat(s.x," ").concat(s.y)),e.x===s.x&&(d="M ".concat(e.x," ").concat(e.y," L ").concat(s.x," ").concat(s.y))):(e.y<s.y&&(r.type===$.MERGE&&t.id!==r.parents[0]?d="M ".concat(e.x," ").concat(e.y," L ").concat(s.x-h," ").concat(e.y," ").concat(m," ").concat(s.x," ").concat(e.y+p," L ").concat(s.x," ").concat(s.y):d="M ".concat(e.x," ").concat(e.y," L ").concat(e.x," ").concat(s.y-h," ").concat(n," ").concat(e.x+p," ").concat(s.y," L ").concat(s.x," ").concat(s.y)),e.y>s.y&&(r.type===$.MERGE&&t.id!==r.parents[0]?d="M ".concat(e.x," ").concat(e.y," L ").concat(s.x-h," ").concat(e.y," ").concat(n," ").concat(s.x," ").concat(e.y-p," L ").concat(s.x," ").concat(s.y):d="M ".concat(e.x," ").concat(e.y," L ").concat(e.x," ").concat(s.y+h," ").concat(m," ").concat(e.x+p," ").concat(s.y," L ").concat(s.x," ").concat(s.y)),e.y===s.y&&(d="M ".concat(e.x," ").concat(e.y," L ").concat(s.x," ").concat(s.y)));if(d===void 0)throw new Error("Line definition not found");a.append("path").attr("d",d).attr("class","arrow arrow"+y%q)},"drawArrow"),at=l((a,t)=>{let r=a.append("g").attr("class","commit-arrows");[...t.keys()].forEach(o=>{let e=t.get(o);e.parents&&e.parents.length>0&&e.parents.forEach(s=>{rt(r,t.get(s),e,t)})})},"drawArrows"),st=l((a,t)=>{let r=a.append("g");t.forEach((o,e)=>{var x;let s=e%q,c=(x=v.get(o.name))==null?void 0:x.pos;if(c===void 0)throw new Error("Position not found for branch ".concat(o.name));let n=r.append("line");n.attr("x1",0),n.attr("y1",c),n.attr("x2",P),n.attr("y2",c),n.attr("class","branch branch"+s),f==="TB"?(n.attr("y1",H),n.attr("x1",c),n.attr("y2",P),n.attr("x2",c)):f==="BT"&&(n.attr("y1",P),n.attr("x1",c),n.attr("y2",H),n.attr("x2",c)),N.push(c);let m=o.name,h=ye(m),p=r.insert("rect"),d=r.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+s);d.node().appendChild(h);let g=h.getBBox();p.attr("class","branchLabelBkg label"+s).attr("rx",4).attr("ry",4).attr("x",-g.width-4-((b==null?void 0:b.rotateCommitLabel)===!0?30:0)).attr("y",-g.height/2+8).attr("width",g.width+18).attr("height",g.height+4),d.attr("transform","translate("+(-g.width-14-((b==null?void 0:b.rotateCommitLabel)===!0?30:0))+", "+(c-g.height/2-1)+")"),f==="TB"?(p.attr("x",c-g.width/2-10).attr("y",0),d.attr("transform","translate("+(c-g.width/2-5)+", 0)")):f==="BT"?(p.attr("x",c-g.width/2-10).attr("y",P),d.attr("transform","translate("+(c-g.width/2-5)+", "+P+")")):p.attr("transform","translate(-19, "+(c-g.height/2)+")")})},"drawBranches"),ot=l(function(a,t,r,o,e){return v.set(a,{pos:t,index:r}),t+=50+(e?40:0)+(f==="TB"||f==="BT"?o.width/2:0),t},"setBranchPosition"),nt=l(function(a,t,r,o){var h,p;if(ze(),w.debug("in gitgraph renderer",a+"\n","id:",t,r),!b)throw new Error("GitGraph config not found");let e=(h=b.rotateCommitLabel)!=null?h:!1,s=o.db;G=s.getCommits();let c=s.getBranchesAsObjArray();f=s.getDirection();let n=se('[id="'.concat(t,'"]')),m=0;c.forEach((y,d)=>{var k;let g=ye(y.name),x=n.append("g"),u=x.insert("g").attr("class","branchLabel"),T=u.insert("g").attr("class","label branch-label");(k=T.node())==null||k.appendChild(g);let W=g.getBBox();m=ot(y.name,m,d,W,e),T.remove(),u.remove(),x.remove()}),le(n,G,!1),b.showBranches&&st(n,c),at(n,G),le(n,G,!0),ce.insertTitle(n,"gitTitleText",(p=b.titleTopMargin)!=null?p:0,s.getDiagramTitle()),ae(void 0,n,b.diagramPadding,b.useMaxWidth)},"draw"),ct={draw:nt},it=l(a=>"\n  .commit-id,\n  .commit-msg,\n  .branch-label {\n    fill: lightgrey;\n    color: lightgrey;\n    font-family: 'trebuchet ms', verdana, arial, sans-serif;\n    font-family: var(--mermaid-font-family);\n  }\n  ".concat([0,1,2,3,4,5,6,7].map(t=>"\n        .branch-label".concat(t," { fill: ").concat(a["gitBranchLabel"+t],"; }\n        .commit").concat(t," { stroke: ").concat(a["git"+t],"; fill: ").concat(a["git"+t],"; }\n        .commit-highlight").concat(t," { stroke: ").concat(a["gitInv"+t],"; fill: ").concat(a["gitInv"+t],"; }\n        .label").concat(t,"  { fill: ").concat(a["git"+t],"; }\n        .arrow").concat(t," { stroke: ").concat(a["git"+t],"; }\n        ")).join("\n"),"\n\n  .branch {\n    stroke-width: 1;\n    stroke: ").concat(a.lineColor,";\n    stroke-dasharray: 2;\n  }\n  .commit-label { font-size: ").concat(a.commitLabelFontSize,"; fill: ").concat(a.commitLabelColor,";}\n  .commit-label-bkg { font-size: ").concat(a.commitLabelFontSize,";
1 fill: ").concat(a.commitLabelBackground,"; opacity: 0.5; }\n  .tag-label { font-size: ").concat(a.tagLabelFontSize,"; fill: ").concat(a.tagLabelColor,";}\n  .tag-label-bkg { fill: ").concat(a.tagLabelBackground,"; stroke: ").concat(a.tagLabelBorder,"; }\n  .tag-hole { fill: ").concat(a.textColor,"; }\n\n  .commit-merge {\n    stroke: ").concat(a.primaryColor,";\n    fill: ").concat(a.primaryColor,";\n  }\n  .commit-reverse {\n    stroke: ").concat(a.primaryColor,";\n    fill: ").concat(a.primaryColor,";\n    stroke-width: 3;\n  }\n  .commit-highlight-outer {\n  }\n  .commit-highlight-inner {\n    stroke: ").concat(a.primaryColor,";\n    fill: ").concat(a.primaryColor,";\n  }\n\n  .arrow { stroke-width: 8; stroke-linecap: round; fill: none}\n  .gitTitleText {\n    text-anchor: middle;\n    font-size: 18px;\n    fill: ").concat(a.textColor,";\n  }\n"),"getStyles"),dt=it,yt={parser:_e,db:fe,renderer:ct,styles:dt};export{yt as diagram};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.