PageSourceSearch

https://kavix.ai/_next/static/chunks/3928.e48f7cb4ce42b48a.js

js kavix.ai collected 2026-10-05 13:43:34 UTC 28,930 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3928],{39804:function(t,c,e){function r(t,c){var e,r,a;t.accDescr&&(null===(e=c.setAccDescription)||void 0===e||e.call(c,t.accDescr)),t.accTitle&&(null===(r=c.setAccTitle)||void 0===r||r.call(c,t.accTitle)),t.title&&(null===(a=c.setDiagramTitle)||void 0===a||a.call(c,t.title))}e.d(c,{A:function(){return r}}),(0,e(52016).eW)(r,"populateCommonDb")},46894:function(t,c,e){e.d(c,{A:function(){return o}});var r,a=e(52016),o=(r=class{reset(){this.records=this.init()}constructor(t){this.init=t,this.records=this.init()}},(0,a.eW)(r,"ImperativeState"),r)},73928:function(t,c,e){e.d(c,{diagram:function(){return tp}});var r=e(39804),a=e(46894),o=e(80424),n=e(52016),i=e(75693),s=e(5402),l={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},d=n.vZ.gitGraph,h=(0,n.eW)(()=>(0,o.Rb)({...d,...(0,n.iE)().gitGraph}),"getConfig"),m=new a.A(()=>{let t=h(),c=t.mainBranchName,e=t.mainBranchOrder;return{mainBranchName:c,commits:new Map,head:null,branchConfig:new Map([[c,{name:c,order:e}]]),branches:new Map([[c,null]]),currBranch:c,direction:"LR",seq:0,options:{}}});function g(){return(0,o.MX)({length:7})}function u(t,c){let e=Object.create(null);return t.reduce((t,r)=>{let a=c(r);return e[a]||(e[a]=!0,t.push(r)),t},[])}(0,n.eW)(g,"getID"),(0,n.eW)(u,"uniqBy");var y=(0,n.eW)(function(t){m.records.direction=t},"setDirection"),p=(0,n.eW)(function(t){n.cM.debug("options str",t),t=(t=null==t?void 0:t.trim())||"{}";try{m.records.options=JSON.parse(t)}catch(t){n.cM.error("error while parsing gitGraph options",t.message)}},"setOptions"),x=(0,n.eW)(function(){return m.records.options},"getOptions"),f=(0,n.eW)(function(t){let c=t.msg,e=t.id,r=t.type,a=t.tags;n.cM.info("commit",c,e,r,a),n.cM.debug("Entering commit:",c,e,r,a);let o=h();e=n.SY.sanitizeText(e,o),c=n.SY.sanitizeText(c,o),a=null==a?void 0:a.map(t=>n.SY.sanitizeText(t,o));let i={id:e||m.records.seq+"-"+g(),message:c,seq:m.records.seq++,type:null!=r?r:l.NORMAL,tags:null!=a?a:[],parents:null==m.records.head?[]:[m.records.head.id],branch:m.records.currBranch};m.records.head=i,n.cM.info("main branch",o.mainBranchName),m.records.commits.set(i.id,i),m.records.branches.set(m.records.currBranch,i.id),n.cM.debug("in pushCommit "+i.id)},"commit"),b=(0,n.eW)(function(t){let c=t.name,e=t.order;if(c=n.SY.sanitizeText(c,h()),m.records.branches.has(c))throw 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(c,'")'));m.records.branches.set(c,null!=m.records.head?m.records.head.id:null),m.records.branchConfig.set(c,{name:c,order:e}),B(c),n.cM.debug("in createBranch")},"branch"),v=(0,n.eW)(t=>{let c=t.branch,e=t.id,r=t.type,a=t.tags,o=h();c=n.SY.sanitizeText(c,o),e&&(e=n.SY.sanitizeText(e,o));let i=m.records.branches.get(m.records.currBranch),s=m.records.branches.get(c),d=i?m.records.commits.get(i):void 0,u=s?m.records.commits.get(s):void 0;if(d&&u&&d.branch===c)throw Error("Cannot merge branch '".concat(c,"' into itself."));if(m.records.currBranch===c){let t=Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw t.hash={text:"merge ".concat(c),token:"merge ".concat(c),expected:["branch abc"]},t}if(void 0===d||!d){let t=Error('Incorrect usage of "merge". Current branch ('.concat(m.records.currBranch,")has no commits"));throw t.hash={text:"merge ".concat(c),token:"merge ".concat(c),expected:["commit"]},t}if(!m.records.branches.has(c)){let t=Error('Incorrect usage of "merge". Branch to be merged ('+c+") does not exist");throw t.hash={text:"merge ".concat(c),token:"merge ".concat(c),expected:["branch ".concat(c)]},t}if(void 0===u||!u){let t=Error('Incorrect usage of "merge". Branch to be merged ('+c+") has no commits");throw t.hash={text:"merge ".concat(c),token:"merge ".concat(c),expected:['"commit"']},t}if(d===u){let t=Error('Incorrect usage of "merge". Both branches have same head');throw t.hash={text:"merge ".concat(c),token:"merge ".concat(c),expected:["branch abc"]},t}if(e&&m.records.commits.has(e)){let t=Error('Incorrect usage of "merge". Commit with id:'+e+" already exists, use different custom id");throw t.hash={text:"merge ".concat(c," ").concat(e," ").concat(r," ").concat(null==a?void 0:a.join(" ")),token:"merge ".concat(c," ").concat(e," ").concat(r," ").concat(null==a?void 0:a.join(" ")),expected:["merge ".concat(c," ").concat(e,"_UNIQUE ").concat(r," ").concat(null==a?void 0:a.join(" "))]},t}let y={id:e||"".concat(m.records.seq,"-").concat(g()),message:"merged branch ".concat(c," into ").concat(m.records.currBranch),seq:m.records.seq++,parents:null==m.records.head?[]:[m.records.head.id,s||""],branch:m.records.currBranch,type:l.MERGE,customType:r,customId:!!e,tags:null!=a?a:[]};m.records.head=y,m.records.commits.set(y.id,y),m.records.branches.set(m.records.currBranch,y.id),n.cM.debug(m.records.branches),n.cM.debug("in mergeBranch")},"merge"),w=(0,n.eW)(function(t){let c=t.id,e=t.targetId,r=t.tags,a=t.parent;n.cM.debug("Entering cherryPick:",c,e,r);let o=h();if(c=n.SY.sanitizeText(c,o),e=n.SY.sanitizeText(e,o),r=null==r?void 0:r.map(t=>n.SY.sanitizeText(t,o)),a=n.SY.sanitizeText(a,o),!c||!m.records.commits.has(c)){let t=Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw t.hash={text:"cherryPick ".concat(c," ").concat(e),token:"cherryPick ".concat(c," ").concat(e),expected:["cherry-pick abc"]},t}let i=m.records.commits.get(c);if(void 0===i||!i)throw Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');
1if(a&&(!Array.isArray(i.parents)||!i.parents.includes(a)))throw Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let s=i.branch;if(i.type===l.MERGE&&!a)throw Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!e||!m.records.commits.has(e)){if(s===m.records.currBranch){let t=Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw t.hash={text:"cherryPick ".concat(c," ").concat(e),token:"cherryPick ".concat(c," ").concat(e),expected:["cherry-pick abc"]},t}let t=m.records.branches.get(m.records.currBranch);if(void 0===t||!t){let t=Error('Incorrect usage of "cherry-pick". Current branch ('.concat(m.records.currBranch,")has no commits"));throw t.hash={text:"cherryPick ".concat(c," ").concat(e),token:"cherryPick ".concat(c," ").concat(e),expected:["cherry-pick abc"]},t}let o=m.records.commits.get(t);if(void 0===o||!o){let t=Error('Incorrect usage of "cherry-pick". Current branch ('.concat(m.records.currBranch,")has no commits"));throw t.hash={text:"cherryPick ".concat(c," ").concat(e),token:"cherryPick ".concat(c," ").concat(e),expected:["cherry-pick abc"]},t}let d={id:m.records.seq+"-"+g(),message:"cherry-picked ".concat(null==i?void 0:i.message," into ").concat(m.records.currBranch),seq:m.records.seq++,parents:null==m.records.head?[]:[m.records.head.id,i.id],branch:m.records.currBranch,type:l.CHERRY_PICK,tags:r?r.filter(Boolean):["cherry-pick:".concat(i.id).concat(i.type===l.MERGE?"|parent:".concat(a):"")]};m.records.head=d,m.records.commits.set(d.id,d),m.records.branches.set(m.records.currBranch,d.id),n.cM.debug(m.records.branches),n.cM.debug("in cherryPick")}},"cherryPick"),B=(0,n.eW)(function(t){if(t=n.SY.sanitizeText(t,h()),!m.records.branches.has(t)){let c=Error('Trying to checkout branch which is not yet created. (Help try using "branch '.concat(t,'")'));throw c.hash={text:"checkout ".concat(t),token:"checkout ".concat(t),expected:["branch ".concat(t)]},c}{var c;m.records.currBranch=t;let e=m.records.branches.get(m.records.currBranch);m.records.head=void 0!==e&&e&&null!==(c=m.records.commits.get(e))&&void 0!==c?c:null}},"checkout");function E(t,c,e){let r=t.indexOf(c);-1===r?t.push(e):t.splice(r,1,e)}function k(t){let c=t.reduce((t,c)=>t.seq>c.seq?t:c,t[0]),e="";t.forEach(function(t){e+=t===c?"	*":"	|"});let r=[e,c.id,c.seq];for(let t in m.records.branches)m.records.branches.get(t)===c.id&&r.push(t);if(n.cM.debug(r.join(" ")),c.parents&&2==c.parents.length&&c.parents[0]&&c.parents[1]){let e=m.records.commits.get(c.parents[0]);E(t,c,e),c.parents[1]&&t.push(m.records.commits.get(c.parents[1]))}else{if(0==c.parents.length)return;if(c.parents[0]){let e=m.records.commits.get(c.parents[0]);E(t,c,e)}}k(t=u(t,t=>t.id))}(0,n.eW)(E,"upsert"),(0,n.eW)(k,"prettyPrintCommitHistory");var C=(0,n.eW)(function(){n.cM.debug(m.records.commits),k([R()[0]])},"prettyPrint"),M=(0,n.eW)(function(){m.reset(),(0,n.ZH)()},"clear"),T=(0,n.eW)(function(){return[...m.records.branchConfig.values()].map((t,c)=>null!==t.order&&void 0!==t.order?t:{...t,order:parseFloat("0.".concat(c))}).sort((t,c)=>{var e,r;return(null!==(e=t.order)&&void 0!==e?e:0)-(null!==(r=c.order)&&void 0!==r?r:0)}).map(t=>{let{name:c}=t;return{name:c}})},"getBranchesAsObjArray"),L=(0,n.eW)(function(){return m.records.branches},"getBranches"),W=(0,n.eW)(function(){return m.records.commits},"getCommits"),R=(0,n.eW)(function(){let t=[...m.records.commits.values()];return t.forEach(function(t){n.cM.debug(t.id)}),t.sort((t,c)=>t.seq-c.seq),t},"getCommitsArray"),P={commitType:l,getConfig:h,setDirection:y,setOptions:p,getOptions:x,commit:f,branch:b,merge:v,cherryPick:w,checkout:B,prettyPrint:C,clear:M,getBranchesAsObjArray:T,getBranches:L,getCommits:W,getCommitsArray:R,getCurrentBranch:(0,n.eW)(function(){return m.records.currBranch},"getCurrentBranch"),getDirection:(0,n.eW)(function(){return m.records.direction},"getDirection"),getHead:(0,n.eW)(function(){return m.records.head},"getHead"),setAccTitle:n.GN,getAccTitle:n.eu,getAccDescription:n.Mx,setAccDescription:n.U$,setDiagramTitle:n.g2,getDiagramTitle:n.Kr},A=(0,n.eW)((t,c)=>{for(let e of((0,r.A)(t,c),t.dir&&c.setDirection(t.dir),t.statements))I(e,c)},"populate"),I=(0,n.eW)((t,c)=>{let e={Commit:(0,n.eW)(t=>c.commit(G(t)),"Commit"),Branch:(0,n.eW)(t=>c.branch(O(t)),"Branch"),Merge:(0,n.eW)(t=>
1c.merge(S(t)),"Merge"),Checkout:(0,n.eW)(t=>c.checkout(q(t)),"Checkout"),CherryPicking:(0,n.eW)(t=>c.cherryPick(H(t)),"CherryPicking")}[t.$type];e?e(t):n.cM.error("Unknown statement type: ".concat(t.$type))},"parseStatement"),G=(0,n.eW)(t=>{var c,e;return{id:t.id,msg:null!==(c=t.message)&&void 0!==c?c:"",type:void 0!==t.type?l[t.type]:l.NORMAL,tags:null!==(e=t.tags)&&void 0!==e?e:void 0}},"parseCommit"),O=(0,n.eW)(t=>{var c;return{name:t.name,order:null!==(c=t.order)&&void 0!==c?c:0}},"parseBranch"),S=(0,n.eW)(t=>{var c,e;return{branch:t.branch,id:null!==(c=t.id)&&void 0!==c?c:"",type:void 0!==t.type?l[t.type]:void 0,tags:null!==(e=t.tags)&&void 0!==e?e:void 0}},"parseMerge"),q=(0,n.eW)(t=>t.branch,"parseCheckout"),H=(0,n.eW)(t=>{var c;return{id:t.id,targetId:"",tags:0===(null===(c=t.tags)||void 0===c?void 0:c.length)?void 0:t.tags,parent:t.parent}},"parseCherryPicking"),z={parse:(0,n.eW)(async t=>{let c=await (0,i.Qc)("gitGraph",t);n.cM.debug(c),A(c,P)},"parse")},D=(0,n.nV)(),Y=null==D?void 0:D.gitGraph,N=new Map,_=new Map,j=new Map,K=[],F=0,U="LR",V=(0,n.eW)(()=>{N.clear(),_.clear(),j.clear(),F=0,K=[],U="LR"},"clear"),Z=(0,n.eW)(t=>{let c=document.createElementNS("http://www.w3.org/2000/svg","text");return("string"==typeof t?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach(t=>{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=t.trim(),c.appendChild(e)}),c},"drawText"),$=(0,n.eW)(t=>{let c,e,r;return"BT"===U?(e=(0,n.eW)((t,c)=>t<=c,"comparisonFunc"),r=1/0):(e=(0,n.eW)((t,c)=>t>=c,"comparisonFunc"),r=0),t.forEach(t=>{var a,o;let n="TB"===U||"BT"==U?null===(a=_.get(t))||void 0===a?void 0:a.y:null===(o=_.get(t))||void 0===o?void 0:o.x;void 0!==n&&e(n,r)&&(c=t,r=n)}),c},"findClosestParent"),Q=(0,n.eW)(t=>{let c="",e=1/0;return t.forEach(t=>{let r=_.get(t).y;r<=e&&(c=t,e=r)}),c||void 0},"findClosestParentBT"),X=(0,n.eW)((t,c,e)=>{let r=e,a=e,o=[];t.forEach(t=>{let e=c.get(t);if(!e)throw Error("Commit not found for key ".concat(t));e.parents.length?a=Math.max(r=tt(e),a):o.push(e),tc(e,r)}),r=a,o.forEach(t=>{te(t,r,e)}),t.forEach(t=>{let e=c.get(t);if(null==e?void 0:e.parents.length){let t=Q(e.parents);(r=_.get(t).y-40)<=a&&(a=r);let c=N.get(e.branch).pos,o=r-10;_.set(e.id,{x:c,y:o})}})},"setParallelBTPos"),J=(0,n.eW)(t=>{var c;let e=$(t.parents.filter(t=>null!==t));if(!e)throw Error("Closest parent not found for commit ".concat(t.id));let r=null===(c=_.get(e))||void 0===c?void 0:c.y;if(void 0===r)throw Error("Closest parent position not found for commit ".concat(t.id));return r},"findClosestParentPos"),tt=(0,n.eW)(t=>J(t)+40,"calculateCommitPosition"),tc=(0,n.eW)((t,c)=>{let e=N.get(t.branch);if(!e)throw Error("Branch not found for commit ".concat(t.id));let r=e.pos,a=c+10;return _.set(t.id,{x:r,y:a}),{x:r,y:a}},"setCommitPosition"),te=(0,n.eW)((t,c,e)=>{let r=N.get(t.branch);if(!r)throw Error("Branch not found for commit ".concat(t.id));let a=r.pos;_.set(t.id,{x:a,y:c+e})},"setRootPosition"),tr=(0,n.eW)((t,c,e,r,a,o)=>{if(o===l.HIGHLIGHT)t.append("rect").attr("x",e.x-10).attr("y",e.y-10).attr("width",20).attr("height",20).attr("class","commit ".concat(c.id," commit-highlight").concat(a%8," ").concat(r,"-outer")),t.append("rect").attr("x",e.x-6).attr("y",e.y-6).attr("width",12).attr("height",12).attr("class","commit ".concat(c.id," commit").concat(a%8," ").concat(r,"-inner"));else if(o===l.CHERRY_PICK)t.append("circle").attr("cx",e.x).attr("cy",e.y).attr("r",10).attr("class","commit ".concat(c.id," ").concat(r)),t.append("circle").attr("cx",e.x-3).attr("cy",e.y+2).attr("r",2.75).attr("fill","#fff").attr("class","commit ".concat(c.id," ").concat(r)),t.append("circle").attr("cx",e.x+3).attr("cy",e.y+2).attr("r",2.75).attr("fill","#fff").attr("class","commit ".concat(c.id," ").concat(r)),t.append("line").attr("x1",e.x+3).attr("y1",e.y+1).attr("x2",e.x).attr("y2",e.y-5).attr("stroke","#fff").attr("class","commit ".concat(c.id," ").concat(r)),t.append("line").attr("x1",e.x-3).attr("y1",e.y+1).attr("x2",e.x).attr("y2",e.y-5).attr("stroke","#fff").attr("class","commit ".concat(c.id," ").concat(r));else{let n=t.append("circle");if(n.attr("cx",e.x),n.attr("cy",e.y),n.attr("r",c.type===l.MERGE?9:10),n.attr("class","commit ".concat(c.id," commit").concat(a%8)),o===l.MERGE){let o=t.append("circle");o.attr("cx",e.x),o.attr("cy",e.y),o.attr("r",6),o.attr("class","commit ".concat(r," ").concat(c.id," commit").concat(a%8))}o===l.REVERSE&&t.append("path").attr("d","M ".concat(e.x-5,",").concat(e.y-5,"L").concat(e.x+5,",").concat(e.y+5,"M").concat(e.x-5,",").concat(e.y+5,"L").concat(e.x+5,",").concat(e.y-5)).attr("class","commit ".concat(r," ").concat(c.id," commit").concat(a%8))}},"drawCommitBullet"),ta=(0,n.eW)((t,c,e,r)=>{if(c.type!==l.CHERRY_PICK&&(c.customId&&c.type===l.MERGE||c.type!==l.MERGE)&&(null==Y?void 0:Y.showCommitLabel)){var a;let o=t.append("g"),n=o.insert("rect").attr("class","commit-label-bkg"),i=o.append("text").attr("x",r).attr("y",e.y+25).attr("class","commit-label").text(c.id),s=null===(a=i.node())||void 0===a?void 0:a.getBBox();if(s&&(n.attr("x",e.posWithOffset-s.width/2-2).attr("y",e.y+13.5).attr("width",s.width+4).attr("height",s.height+4),"TB"===U||"BT"===U?(n.attr("x",e.x-(s.width+16+5)).attr("y",e.y-12),i.attr("x",e.x-(s.width+16)).attr("y",e.y+s.height-12)):i.attr("x",e.posWithOffset-s.width/2),Y.rotateCommitLabel)){if("TB"===U||"BT"===U)i.attr("transform","rotate(-45, "+e.x+", "+e.y+")"),n.attr("transform","rotate(-45, "+e.x+", "+e.y+")");else{let t=-7.5-(s.width+10)/25*9.5,c=10+s.width/25*8.5;o.attr("transform","translate("+t+", "+c+") rotate(-45, "+r+", "+e.y+")")}}}},"drawCommitLabel"),to=(0,n.eW)((t,c,e,r)=>{if(c.tags.length>0){let o=0,n=0,i=0,s=[];for(let r of c.tags.reverse()){var a;let c=t.insert("polygon"),l=t.append("circle"),d=t.append("text").attr("y",e.y-16-o).attr("class","tag-label").text(r),h=null===(a=d.node())||void 0===a?void 0:a.getBBox();if(!h)throw Error("Tag bbox not found");n=Math.max(n,h.width),i=Math.max(i,h.height),d.attr("x",e.posWithOffset-h.width/2),s.push({tag:d,hole:l,rect:c,yOffset:o}),o+=20}for(let{tag:t,hole:c,rect:a,yOffset:o}of s){let s=i/2,l=e.y-19.2-o;if(a.attr("class","tag-label-bkg").attr("points","\n      ".concat(r-n/2-2,",").concat(l+2,"  \n      ").concat(r-n/2-2,",").concat(l-2,"\n      ").concat(e.posWithOffset-n/2-4,",").concat(l-s-2,"\n      ").concat(e.posWithOffset+n/2+4,",").concat(l-s-2,"\n      ").concat(e.posWithOffset+n/2+4,",").concat(l+s+2,"\n      ").concat(e.posWithOffset-n/2-4,",").concat(l+s+2)),c.attr("cy",l).attr("cx",r-n/2+2).attr("r",1.5).attr("class","tag-hole"),"TB"===U||"BT"===U){let i=r+o;a.attr("class","tag-label-bkg").attr("points","\n        ".concat(e.x,",").concat(i+2,"\n        ").concat(e.x,",").concat(i-2,"\n        ").concat(e.x+10,",").concat(i-s-2,"\n        ").concat(e.x+10+n+4,",").concat(i-s-2,"\n        ").concat(e.x+10+n+4,",").concat(i+s+2,"\n        ").concat(e.x+10,",").concat(i+s+2)).attr("transform","translate(12,12) rotate(45, "+e.x+","+r+")"),c.attr("cx",e.x+2).attr("cy",i).attr("transform","translate(12,12) rotate(45, "+e.x+","+r+")"),t.attr("x",e.x+5).attr("y",i+3).attr("transform","translate(14,14) rotate(45, "+e.x+","+r+")")}}}},"drawCommitTags"),tn=(0,n.eW)(t=>{var c;switch(null!==(c=t.customType)&&void 0!==c?c:t.type){case l.NORMAL:return"commit-normal";case l.REVERSE:return"commit-reverse";case l.HIGHLIGHT:return"commit-highlight";case l.MERGE:return"commit-merge";
1case l.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),ti=(0,n.eW)((t,c,e,r)=>{var a,o,n;let i={x:0,y:0};if(!(t.parents.length>0))return"TB"===c?30:"BT"===c?(null!==(a=r.get(t.id))&&void 0!==a?a:i).y-40:0;{let e=$(t.parents);if(e){let a=null!==(o=r.get(e))&&void 0!==o?o:i;return"TB"===c?a.y+40:"BT"===c?(null!==(n=r.get(t.id))&&void 0!==n?n:i).y-40:a.x+40}}return 0},"calculatePosition"),ts=(0,n.eW)((t,c,e)=>{var r,a;let o="BT"===U&&e?c:c+10,n="TB"===U||"BT"===U?o:null===(r=N.get(t.branch))||void 0===r?void 0:r.pos,i="TB"===U||"BT"===U?null===(a=N.get(t.branch))||void 0===a?void 0:a.pos:o;if(void 0===i||void 0===n)throw Error("Position were undefined for commit ".concat(t.id));return{x:i,y:n,posWithOffset:o}},"getCommitPosition"),tl=(0,n.eW)((t,c,e)=>{var r;if(!Y)throw Error("GitGraph config not found");let a=t.append("g").attr("class","commit-bullets"),o=t.append("g").attr("class","commit-labels"),i="TB"===U||"BT"===U?30:0,s=[...c.keys()],l=null!==(r=null==Y?void 0:Y.parallelCommits)&&void 0!==r&&r,d=s.sort((0,n.eW)((t,e)=>{var r,a;let o=null===(r=c.get(t))||void 0===r?void 0:r.seq,n=null===(a=c.get(e))||void 0===a?void 0:a.seq;return void 0!==o&&void 0!==n?o-n:0},"sortKeys"));"BT"===U&&(l&&X(d,c,i),d=d.reverse()),d.forEach(t=>{let r=c.get(t);if(!r)throw Error("Commit not found for key ".concat(t));l&&(i=ti(r,U,i,_));let n=ts(r,i,l);if(e){var s,d,h;let t=tn(r),c=null!==(d=r.customType)&&void 0!==d?d:r.type,e=null!==(h=null===(s=N.get(r.branch))||void 0===s?void 0:s.index)&&void 0!==h?h:0;tr(a,r,n,t,e,c),ta(o,r,n,i),to(o,r,n,i)}"TB"===U||"BT"===U?_.set(r.id,{x:n.x,y:n.posWithOffset}):_.set(r.id,{x:n.posWithOffset,y:n.y}),(i="BT"===U&&l?i+40:i+40+10)>F&&(F=i)})},"drawCommits"),td=(0,n.eW)((t,c,e,r,a)=>{let o=("TB"===U||"BT"===U?e.x<r.x:e.y<r.y)?c.branch:t.branch,i=(0,n.eW)(t=>t.branch===o,"isOnBranchToGetCurve"),s=(0,n.eW)(e=>e.seq>t.seq&&e.seq<c.seq,"isBetweenCommits");return[...a.values()].some(t=>s(t)&&i(t))},"shouldRerouteArrow"),th=(0,n.eW)(function(t,c){let e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=t+Math.abs(t-c)/2;if(e>5)return r;if(K.every(t=>Math.abs(t-r)>=10))return K.push(r),r;let a=Math.abs(t-c);return th(t,c-a/5,e+1)},"findLane"),tm=(0,n.eW)((t,c,e,r)=>{var a,o,n,i,s;let d=_.get(c.id),h=_.get(e.id);if(void 0===d||void 0===h)throw Error("Commit positions not found for commits ".concat(c.id," and ").concat(e.id));let m=td(c,e,d,h,r),g,u="",y="",p=0,x=0,f=null===(a=N.get(e.branch))||void 0===a?void 0:a.index;if(e.type===l.MERGE&&c.id!==e.parents[0]&&(f=null===(o=N.get(c.branch))||void 0===o?void 0:o.index),m){u="A 10 10, 0, 0, 0,",y="A 10 10, 0, 0, 1,",p=10,x=10;let t=d.y<h.y?th(d.y,h.y):th(h.y,d.y),e=d.x<h.x?th(d.x,h.x):th(h.x,d.x);"TB"===U?d.x<h.x?g="M ".concat(d.x," ").concat(d.y," L ").concat(e-p," ").concat(d.y," ").concat(y," ").concat(e," ").concat(d.y+x," L ").concat(e," ").concat(h.y-p," ").concat(u," ").concat(e+x," ").concat(h.y," L ").concat(h.x," ").concat(h.y):(f=null===(n=N.get(c.branch))||void 0===n?void 0:n.index,g="M ".concat(d.x," ").concat(d.y," L ").concat(e+p," ").concat(d.y," ").concat(u," ").concat(e," ").concat(d.y+x," L ").concat(e," ").concat(h.y-p," ").concat(y," ").concat(e-x," ").concat(h.y," L ").concat(h.x," ").concat(h.y)):"BT"===U?d.x<h.x?g="M ".concat(d.x," ").concat(d.y," L ").concat(e-p," ").concat(d.y," ").concat(u," ").concat(e," ").concat(d.y-x," L ").concat(e," ").concat(h.y+p," ").concat(y," ").concat(e+x," ").concat(h.y," L ").concat(h.x," ").concat(h.y):(f=null===(i=N.get(c.branch))||void 0===i?void 0:i.index,g="M ".concat(d.x," ").concat(d.y," L ").concat(e+p," ").concat(d.y," ").concat(y," ").concat(e," ").concat(d.y-x," L ").concat(e," ").concat(h.y+p," ").concat(u," ").concat(e-x," ").concat(h.y," L ").concat(h.x," ").concat(h.y)):d.y<h.y?g="M ".concat(d.x," ").concat(d.y," L ").concat(d.x," ").concat(t-p," ").concat(u," ").concat(d.x+x," ").concat(t," L ").concat(h.x-p," ").concat(t," ").concat(y," ").concat(h.x," ").concat(t+x," L ").concat(h.x," ").concat(h.y):(f=null===(s=N.get(c.branch))||void 0===s?void 0:s.index,g="M ".concat(d.x," ").concat(d.y," L ").concat(d.x," ").concat(t+p," ").concat(y," ").concat(d.x+x," ").concat(t," L ").concat(h.x-p," ").concat(t," ").concat(u," ").concat(h.x," ").concat(t-x," L ").concat(h.x," ").concat(h.y))}else u="A 20 20, 0, 0, 0,",y="A 20 20, 0, 0, 1,",p=20,x=20,"TB"===U?(d.x<h.x&&(g=e.type===l.MERGE&&c.id!==e.parents[0]?"M ".concat(d.x," ").concat(d.y," L ").concat(d.x," ").concat(h.y-p," ").concat(u," ").concat(d.x+x," ").concat(h.y," L ").concat(h.x," ").concat(h.y):"M ".concat(d.x," ").concat(d.y," L ").concat(h.x-p," ").concat(d.y," ").concat(y," ").concat(h.x," ").concat(d.y+x," L ").concat(h.x," ").concat(h.y)),d.x>h.x&&(u="A 20 20, 0, 0, 0,",y="A 20 20, 0, 0, 1,",p=20,x=20,g=e.type===l.MERGE&&c.id!==e.parents[0]?"M ".concat(d.x," ").concat(d.y," L ").concat(d.x," ").concat(h.y-p," ").concat(y," ").concat(d.x-x," ").concat(h.y," L ").concat(h.x," ").concat(h.y):"M ".concat(d.x," ").concat(d.y," L ").concat(h.x+p," ").concat(d.y," ").concat(u," ").concat(h.x," ").concat(d.y+x," L ").concat(h.x," ").concat(h.y)),d.x===h.x&&(g="M ".concat(d.x," ").concat(d.y," L ").concat(h.x," ").concat(h.y))):"BT"===U?(d.x<h.x&&(g=e.type===l.MERGE&&c.id!==e.parents[0]?"M ".concat(d.x," ").concat(d.y," L ").concat(d.x," ").concat(h.y+p," ").concat(y," ").concat(d.x+x," ").concat(h.y," L ").concat(h.x," ").concat(h.y):"M ".concat(d.x," ").concat(d.y," L ").concat(h.x-p," ").concat(d.y," ").concat(u," ").concat(h.x," ").concat(d.y-x," L ").concat(h.x," ").concat(h.y)),d.x>h.x&&(u="A 20 20, 0, 0, 0,",y="A 20 20, 0, 0, 1,",p=20,x=20,g=e.type===l.MERGE&&c.id!==e.parents[0]?"M ".concat(d.x," ").concat(d.y," L ").concat(d.x," ").concat(h.y+p," ").concat(u," ").concat(d.x-x," ").concat(h.y," L ").concat(h.x," ").concat(h.y):"M ".concat(d.x," ").concat(d.y," L ").concat(h.x-p," ").concat(d.y," ").concat(u," ").concat(h.x," ").concat(d.y-x," L ").concat(h.x," ").concat(h.y)),d.x===h.x&&(g="M ".concat(d.x," ").concat(d.y," L ").concat(h.x," ").concat(h.y))):(d.y<h.y&&(g=e.type===l.MERGE&&c.id!==e.parents[0]?"M ".concat(d.x," ").concat(d.y," L ").concat(h.x-p," ").concat(d.y," ").concat(y," ").concat(h.x," ").concat(d.y+x," L ").concat(h.x," ").concat(h.y):"M ".concat(d.x," ").concat(d.y," L ").concat(d.x," ").concat(h.y-p," ").concat(u," ").concat(d.x+x," ").concat(h.y," L ").concat(h.x," ").concat(h.y)),d.y>h.y&&(g=e.type===l.MERGE&&c.id!==e.parents[0]?"M ".concat(d.x," ").concat(d.y," L ").concat(h.x-p," ").concat(d.y," ").concat(u," ").concat(h.x," ").concat(d.y-x," L ").concat(h.x," ").concat(h.y):"M ".concat(d.x," ").concat(d.y," L ").concat(d.x," ").concat(h.y+p," ").concat(y," ").concat(d.x+x," ").concat(h.y," L ").concat(h.x," ").concat(h.y)),d.y===h.y&&(g="M ".concat(d.x," ").concat(d.y," L ").concat(h.x," ").concat(h.y)));if(void 0===g)throw Error("Line definition not found");t.append("path").attr("d",g).attr("class","arrow arrow"+f%8)},"drawArrow"),tg=(0,n.eW)((t,c)=>{let e=t.append("g").attr("class","commit-arrows");
1[...c.keys()].forEach(t=>{let r=c.get(t);r.parents&&r.parents.length>0&&r.parents.forEach(t=>{tm(e,c.get(t),r,c)})})},"drawArrows"),tu=(0,n.eW)((t,c)=>{let e=t.append("g");c.forEach((t,c)=>{var r;let a=c%8,o=null===(r=N.get(t.name))||void 0===r?void 0:r.pos;if(void 0===o)throw Error("Position not found for branch ".concat(t.name));let n=e.append("line");n.attr("x1",0),n.attr("y1",o),n.attr("x2",F),n.attr("y2",o),n.attr("class","branch branch"+a),"TB"===U?(n.attr("y1",30),n.attr("x1",o),n.attr("y2",F),n.attr("x2",o)):"BT"===U&&(n.attr("y1",F),n.attr("x1",o),n.attr("y2",30),n.attr("x2",o)),K.push(o);let i=Z(t.name),s=e.insert("rect"),l=e.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+a);l.node().appendChild(i);let d=i.getBBox();s.attr("class","branchLabelBkg label"+a).attr("rx",4).attr("ry",4).attr("x",-d.width-4-(!0===(null==Y?void 0:Y.rotateCommitLabel)?30:0)).attr("y",-d.height/2+8).attr("width",d.width+18).attr("height",d.height+4),l.attr("transform","translate("+(-d.width-14-(!0===(null==Y?void 0:Y.rotateCommitLabel)?30:0))+", "+(o-d.height/2-1)+")"),"TB"===U?(s.attr("x",o-d.width/2-10).attr("y",0),l.attr("transform","translate("+(o-d.width/2-5)+", 0)")):"BT"===U?(s.attr("x",o-d.width/2-10).attr("y",F),l.attr("transform","translate("+(o-d.width/2-5)+", "+F+")")):s.attr("transform","translate(-19, "+(o-d.height/2)+")")})},"drawBranches"),ty=(0,n.eW)(function(t,c,e,r,a){return N.set(t,{pos:c,index:e}),c+=50+(a?40:0)+("TB"===U||"BT"===U?r.width/2:0)},"setBranchPosition"),tp={parser:z,db:P,renderer:{draw:(0,n.eW)(function(t,c,e,r){var a,i;if(V(),n.cM.debug("in gitgraph renderer",t+"\n","id:",c,e),!Y)throw Error("GitGraph config not found");let l=null!==(a=Y.rotateCommitLabel)&&void 0!==a&&a,d=r.db;j=d.getCommits();let h=d.getBranchesAsObjArray();U=d.getDirection();let m=(0,s.Z)('[id="'.concat(c,'"]')),g=0;h.forEach((t,c)=>{var e;let r=Z(t.name),a=m.append("g"),o=a.insert("g").attr("class","branchLabel"),n=o.insert("g").attr("class","label branch-label");null===(e=n.node())||void 0===e||e.appendChild(r);let i=r.getBBox();g=ty(t.name,g,c,i,l),n.remove(),o.remove(),a.remove()}),tl(m,j,!1),Y.showBranches&&tu(m,h),tg(m,j),tl(m,j,!0),o.w8.insertTitle(m,"gitTitleText",null!==(i=Y.titleTopMargin)&&void 0!==i?i:0,d.getDiagramTitle()),(0,n.Rw)(void 0,m,Y.diagramPadding,Y.useMaxWidth)},"draw")},styles:(0,n.eW)(t=>"\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(c=>"\n        .branch-label".concat(c," { fill: ").concat(t["gitBranchLabel"+c],"; }\n        .commit").concat(c," { stroke: ").concat(t["git"+c],"; fill: ").concat(t["git"+c],"; }\n        .commit-highlight").concat(c," { stroke: ").concat(t["gitInv"+c],"; fill: ").concat(t["gitInv"+c],"; }\n        .label").concat(c,"  { fill: ").concat(t["git"+c],"; }\n        .arrow").concat(c," { stroke: ").concat(t["git"+c],"; }\n        ")).join("\n"),"\n\n  .branch {\n    stroke-width: 1;\n    stroke: ").concat(t.lineColor,";\n    stroke-dasharray: 2;\n  }\n  .commit-label { font-size: ").concat(t.commitLabelFontSize,"; fill: ").concat(t.commitLabelColor,";}\n  .commit-label-bkg { font-size: ").concat(t.commitLabelFontSize,"; fill: ").concat(t.commitLabelBackground,"; opacity: 0.5; }\n  .tag-label { font-size: ").concat(t.tagLabelFontSize,"; fill: ").concat(t.tagLabelColor,";}\n  .tag-label-bkg { fill: ").concat(t.tagLabelBackground,"; stroke: ").concat(t.tagLabelBorder,"; }\n  .tag-hole { fill: ").concat(t.textColor,"; }\n\n  .commit-merge {\n    stroke: ").concat(t.primaryColor,";\n    fill: ").concat(t.primaryColor,";\n  }\n  .commit-reverse {\n    stroke: ").concat(t.primaryColor,";\n    fill: ").concat(t.primaryColor,";\n    stroke-width: 3;\n  }\n  .commit-highlight-outer {\n  }\n  .commit-highlight-inner {\n    stroke: ").concat(t.primaryColor,";\n    fill: ").concat(t.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(t.textColor,";\n  }\n"),"getStyles")}}}]);

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.