PageSourceSearch

https://evernote.com/_next/static/chunks/4839.17b7457e3b2a02b3.js

js evernote.com collected 2026-09-24 08:26:07 UTC 24,770 bytes, 63 lines download raw bytes

1try{!function(){var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="a600e3ed-2373-4faa-8fd1-b8a53e4e070c",t._sentryDebugIdIdentifier="sentry-dbid-a600e3ed-2373-4faa-8fd1-b8a53e4e070c")}()}catch(t){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4839],{4839:(t,e,r)=>{r.d(e,{diagram:()=>tf});var a=r(36211),i=r(87722),o=r(29790),s=r(90428),c=r(32165),n=r(88863),d=r(33948),h={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},l=s.UI.gitGraph,m=(0,c.K2)(()=>(0,o.$t)({...l,...(0,s.zj)().gitGraph}),"getConfig"),$=new i.m(()=>{let t=m(),e=t.mainBranchName,r=t.mainBranchOrder;return{mainBranchName:e,commits:new Map,head:null,branchConfig:new Map([[e,{name:e,order:r}]]),branches:new Map([[e,null]]),currBranch:e,direction:"LR",seq:0,options:{}}});function y(){return(0,o.yT)({length:7})}function g(t,e){let r=Object.create(null);return t.reduce((t,a)=>{let i=e(a);return r[i]||(r[i]=!0,t.push(a)),t},[])}(0,c.K2)(y,"getID"),(0,c.K2)(g,"uniqBy");var p=(0,c.K2)(function(t){$.records.direction=t},"setDirection"),f=(0,c.K2)(function(t){c.Rm.debug("options str",t),t=(t=t?.trim())||"{}";try{$.records.options=JSON.parse(t)}catch(t){c.Rm.error("error while parsing gitGraph options",t.message)}},"setOptions"),x=(0,c.K2)(function(){return $.records.options},"getOptions"),u=(0,c.K2)(function(t){let e=t.msg,r=t.id,a=t.type,i=t.tags;c.Rm.info("commit",e,r,a,i),c.Rm.debug("Entering commit:",e,r,a,i);let o=m();r=s.Y2.sanitizeText(r,o),e=s.Y2.sanitizeText(e,o),i=i?.map(t=>s.Y2.sanitizeText(t,o));let n={id:r||$.records.seq+"-"+y(),message:e,seq:$.records.seq++,type:a??h.NORMAL,tags:i??[],parents:null==$.records.head?[]:[$.records.head.id],branch:$.records.currBranch};$.records.head=n,c.Rm.info("main branch",o.mainBranchName),$.records.commits.has(n.id)&&c.Rm.warn(`Commit ID ${n.id} already exists`),$.records.commits.set(n.id,n),$.records.branches.set($.records.currBranch,n.id),c.Rm.debug("in pushCommit "+n.id)},"commit"),b=(0,c.K2)(function(t){let e=t.name,r=t.order;if(e=s.Y2.sanitizeText(e,m()),$.records.branches.has(e))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 ${e}")`);$.records.branches.set(e,null!=$.records.head?$.records.head.id:null),$.records.branchConfig.set(e,{name:e,order:r}),B(e),c.Rm.debug("in createBranch")},"branch"),w=(0,c.K2)(t=>
1{let e=t.branch,r=t.id,a=t.type,i=t.tags,o=m();e=s.Y2.sanitizeText(e,o),r&&(r=s.Y2.sanitizeText(r,o));let n=$.records.branches.get($.records.currBranch),d=$.records.branches.get(e),l=n?$.records.commits.get(n):void 0,g=d?$.records.commits.get(d):void 0;if(l&&g&&l.branch===e)throw Error(`Cannot merge branch '${e}' into itself.`);if($.records.currBranch===e){let t=Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw t.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},t}if(void 0===l||!l){let t=Error(`Incorrect usage of "merge". Current branch (${$.records.currBranch})has no commits`);throw t.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["commit"]},t}if(!$.records.branches.has(e)){let t=Error('Incorrect usage of "merge". Branch to be merged ('+e+") does not exist");throw t.hash={text:`merge ${e}`,token:`merge ${e}`,expected:[`branch ${e}`]},t}if(void 0===g||!g){let t=Error('Incorrect usage of "merge". Branch to be merged ('+e+") has no commits");throw t.hash={text:`merge ${e}`,token:`merge ${e}`,expected:['"commit"']},t}if(l===g){let t=Error('Incorrect usage of "merge". Both branches have same head');throw t.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},t}if(r&&$.records.commits.has(r)){let t=Error('Incorrect usage of "merge". Commit with id:'+r+" already exists, use different custom id");throw t.hash={text:`merge ${e} ${r} ${a} ${i?.join(" ")}`,token:`merge ${e} ${r} ${a} ${i?.join(" ")}`,expected:[`merge ${e} ${r}_UNIQUE ${a} ${i?.join(" ")}`]},t}let p={id:r||`${$.records.seq}-${y()}`,message:`merged branch ${e} into ${$.records.currBranch}`,seq:$.records.seq++,parents:null==$.records.head?[]:[$.records.head.id,d||""],branch:$.records.currBranch,type:h.MERGE,customType:a,customId:!!r,tags:i??[]};$.records.head=p,$.records.commits.set(p.id,p),$.records.branches.set($.records.currBranch,p.id),c.Rm.debug($.records.branches),c.Rm.debug("in mergeBranch")},"merge"),E=(0,c.K2)(function(t){let e=t.id,r=t.targetId,a=t.tags,i=t.parent;c.Rm.debug("Entering cherryPick:",e,r,a);let o=m();if(e=s.Y2.sanitizeText(e,o),r=s.Y2.sanitizeText(r,o),a=a?.map(t=>s.Y2.sanitizeText(t,o)),i=s.Y2.sanitizeText(i,o),!e||!$.records.commits.has(e)){let t=Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw t.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},t}let n=$.records.commits.get(e);if(void 0===n||!n)throw Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(i&&!(Array.isArray(n.parents)&&n.parents.includes(i)))throw Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let d=n.branch;if(n.type===h.MERGE&&!i)throw Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!r||!$.records.commits.has(r)){if(d===$.records.currBranch){let t=Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw t.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},t}let t=$.records.branches.get($.records.currBranch);if(void 0===t||!t){let t=Error(`Incorrect usage of "cherry-pick". Current branch (${$.records.currBranch})has no commits`);throw t.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},t}let o=$.records.commits.get(t);if(void 0===o||!o){let t=Error(`Incorrect usage of "cherry-pick". Current branch (${$.records.currBranch})has no commits`);throw t.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},t}let s={id:$.records.seq+"-"+y(),message:`cherry-picked ${n?.message} into ${$.records.currBranch}`,seq:$.records.seq++,parents:null==$.records.head?[]:[$.records.head.id,n.id],branch:$.records.currBranch,type:h.CHERRY_PICK,tags:a?a.filter(Boolean):[`cherry-pick:${n.id}${n.type===h.MERGE?`|parent:${i}`:""}`]};$.records.head=s,$.records.commits.set(s.id,s),$.records.branches.set($.records.currBranch,s.id),c.Rm.debug($.records.branches),c.Rm.debug("in cherryPick")}},"cherryPick"),B=(0,c.K2)(function(t){if(t=s.Y2.sanitizeText(t,m()),$.records.branches.has(t)){$.records.currBranch=t;let e=$.records.branches.get($.records.currBranch);void 0!==e&&e?$.records.head=$.records.commits.get(e)??null:$.records.head=null}else{let e=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw e.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},e}},"checkout");function k(t,e,r){let a=t.indexOf(e);-1===a?t.push(r):t.splice(a,1,r)}function C(t){let e=t.reduce((t,e)=>t.seq>e.seq?t:e,t[0]),r="";t.forEach(function(t){t===e?r+="	*":r+="	|"});let a=[r,e.id,e.seq];for(let t in $.records.branches)$.records.branches.get(t)===e.id&&a.push(t);if(c.Rm.debug(a.join(" ")),e.parents&&2==e.parents.length&&e.parents[0]&&e.parents[1]){let r=$.records.commits.get(e.parents[0]);k(t,e,r),e.parents[1]&&t.push($.records.commits.get(e.parents[1]))}else if(0==e.parents.length)return;else if(e.parents[0]){let r=$.records.commits.get(e.parents[0]);k(t,e,r)}C(t=g(t,t=>t.id))}(0,c.K2)(k,"upsert"),(0,c.K2)(C,"prettyPrintCommitHistory");var T=(0,c.K2)(function(){c.Rm.debug($.records.commits),C([v()[0]])},"prettyPrint"),L=(0,c.K2)(function(){$.reset(),(0,s.IU)()},"clear"),K=(0,c.K2)(function(){return[...$.records.branchConfig.values()].map((t,e)=>null!==t.order&&void 0!==t.order?t:{...t,order:parseFloat(`0.${e}`)}).sort((t,e)=>(t.order??0)-(e.order??0)).map(({name:t})=>({name:t}))},"getBranchesAsObjArray"),M=(0,c.K2)(function(){return $.records.branches},"getBranches"),R=(0,c.K2)(function(){return $.records.commits},"getCommits"),v=(0,c.K2)(function(){let t=[...$.records.commits.values()];return t.forEach(function(t){c.Rm.debug(t.id)}),t.sort((t,e)=>t.seq-e.seq),t},"getCommitsArray"),I={commitType:h,getConfig:m,setDirection:p,setOptions:f,getOptions:x,commit:u,branch:b,merge:w,cherryPick:E,checkout:B,prettyPrint:T,clear:L,getBranchesAsObjArray:K,getBranches:M,getCommits:R,getCommitsArray:v,getCurrentBranch:(0,c.K2)(function(){return $.records.currBranch},"getCurrentBranch"),getDirection:(0,c.K2)(function(){return $.records.direction},"getDirection"),getHead:(0,c.K2)(function(){return $.records.head},"getHead"),setAccTitle:s.SV,getAccTitle:s.iN,getAccDescription:s.m7,setAccDescription:s.EI,setDiagramTitle:s.ke,getDiagramTitle:s.ab},P=(0,c.K2)((t,e)=>{for(let r of((0,a.S)(t,e),t.dir&&e.setDirection(t.dir),t.statements))A(r,e)},"populate"),A=(0,c.K2)((t,e)=>{let r={Commit:(0,c.K2)(t=>e.commit(G(t)),"Commit"),Branch:(0,c.K2)(t=>e.branch(q(t)),"Branch"),Merge:(0,c.K2)(t=>e.merge(O(t)),"Merge"),Checkout:(0,c.K2)(t=>e.checkout(D(t)),"Checkout"),CherryPicking:(0,c.K2)(t=>e.cherryPick(z(t)),"CherryPicking")}[t.$type];r?r(t):c.Rm.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),G=(0,c.K2)(t=>({id:t.id,msg:t.message??"",type:void 0!==t.type?h[t.type]:h.NORMAL,tags:t.tags??void 0}),"parseCommit"),q=(0,c.K2)(t=>({name:t.name,order:t.order??0}),"parseBranch"),O=(0,c.K2)(t=>({branch:t.branch,id:t.id??"",type:void 0!==t.type?h[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),D=(0,c.K2)(t=>t.branch,"parseCheckout"),z=(0,c.K2)(t=>({id:t.id,targetId:"",tags:t.tags?.length===0?void 0:t.tags,parent:t.parent}),"parseCherryPicking"),H={parse:(0,c.K2)(async t=>{let e=await (0,n.qg)("gitGraph",t);c.Rm.debug(e),P(e,I)},"parse")},S=(0,s.D7)(),Y=S?.gitGraph,_=new Map,N=new Map,j=new Map,W=[],F=0,U="LR",V=(0,c.K2)(()=>{_.clear(),N.clear(),j.clear(),F=0,W=[],U="LR"},"clear"),J=(0,c.K2)(t=>{let e=document.createElementNS("http://www.w3.org/2000/svg","text");return("string"==typeof t?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach(t=>{let r=document.createElementNS("http://www.w3.org/2000/svg","tspan");r.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),r.setAttribute("dy","1em"),r.setAttribute("x","0"),r.setAttribute("class","row"),r.textContent=t.trim(),e.appendChild(r)}),e},"drawText"),Q=(0,c.K2)(t=>{let e,r,a;
1return"BT"===U?(r=(0,c.K2)((t,e)=>t<=e,"comparisonFunc"),a=1/0):(r=(0,c.K2)((t,e)=>t>=e,"comparisonFunc"),a=0),t.forEach(t=>{let i="TB"===U||"BT"==U?N.get(t)?.y:N.get(t)?.x;void 0!==i&&r(i,a)&&(e=t,a=i)}),e},"findClosestParent"),X=(0,c.K2)(t=>{let e="",r=1/0;return t.forEach(t=>{let a=N.get(t).y;a<=r&&(e=t,r=a)}),e||void 0},"findClosestParentBT"),Z=(0,c.K2)((t,e,r)=>{let a=r,i=r,o=[];t.forEach(t=>{let r=e.get(t);if(!r)throw Error(`Commit not found for key ${t}`);r.parents.length?i=Math.max(a=te(r),i):o.push(r),tr(r,a)}),a=i,o.forEach(t=>{ta(t,a,r)}),t.forEach(t=>{let r=e.get(t);if(r?.parents.length){let t=X(r.parents);(a=N.get(t).y-40)<=i&&(i=a);let e=_.get(r.branch).pos,o=a-10;N.set(r.id,{x:e,y:o})}})},"setParallelBTPos"),tt=(0,c.K2)(t=>{let e=Q(t.parents.filter(t=>null!==t));if(!e)throw Error(`Closest parent not found for commit ${t.id}`);let r=N.get(e)?.y;if(void 0===r)throw Error(`Closest parent position not found for commit ${t.id}`);return r},"findClosestParentPos"),te=(0,c.K2)(t=>tt(t)+40,"calculateCommitPosition"),tr=(0,c.K2)((t,e)=>{let r=_.get(t.branch);if(!r)throw Error(`Branch not found for commit ${t.id}`);let a=r.pos,i=e+10;return N.set(t.id,{x:a,y:i}),{x:a,y:i}},"setCommitPosition"),ta=(0,c.K2)((t,e,r)=>{let a=_.get(t.branch);if(!a)throw Error(`Branch not found for commit ${t.id}`);let i=a.pos;N.set(t.id,{x:i,y:e+r})},"setRootPosition"),ti=(0,c.K2)((t,e,r,a,i,o)=>{if(o===h.HIGHLIGHT)t.append("rect").attr("x",r.x-10).attr("y",r.y-10).attr("width",20).attr("height",20).attr("class",`commit ${e.id} commit-highlight${i%8} ${a}-outer`),t.append("rect").attr("x",r.x-6).attr("y",r.y-6).attr("width",12).attr("height",12).attr("class",`commit ${e.id} commit${i%8} ${a}-inner`);else if(o===h.CHERRY_PICK)t.append("circle").attr("cx",r.x).attr("cy",r.y).attr("r",10).attr("class",`commit ${e.id} ${a}`),t.append("circle").attr("cx",r.x-3).attr("cy",r.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${e.id} ${a}`),t.append("circle").attr("cx",r.x+3).attr("cy",r.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${e.id} ${a}`),t.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 ${e.id} ${a}`),t.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 ${e.id} ${a}`);else{let s=t.append("circle");if(s.attr("cx",r.x),s.attr("cy",r.y),s.attr("r",e.type===h.MERGE?9:10),s.attr("class",`commit ${e.id} commit${i%8}`),o===h.MERGE){let o=t.append("circle");o.attr("cx",r.x),o.attr("cy",r.y),o.attr("r",6),o.attr("class",`commit ${a} ${e.id} commit${i%8}`)}o===h.REVERSE&&t.append("path").attr("d",`M ${r.x-5},${r.y-5}L${r.x+5},${r.y+5}M${r.x-5},${r.y+5}L${r.x+5},${r.y-5}`).attr("class",`commit ${a} ${e.id} commit${i%8}`)}},"drawCommitBullet"),to=(0,c.K2)((t,e,r,a)=>{if(e.type!==h.CHERRY_PICK&&(e.customId&&e.type===h.MERGE||e.type!==h.MERGE)&&Y?.showCommitLabel){let i=t.append("g"),o=i.insert("rect").attr("class","commit-label-bkg"),s=i.append("text").attr("x",a).attr("y",r.y+25).attr("class","commit-label").text(e.id),c=s.node()?.getBBox();if(c&&(o.attr("x",r.posWithOffset-c.width/2-2).attr("y",r.y+13.5).attr("width",c.width+4).attr("height",c.height+4),"TB"===U||"BT"===U?(o.attr("x",r.x-(c.width+16+5)).attr("y",r.y-12),s.attr("x",r.x-(c.width+16)).attr("y",r.y+c.height-12)):s.attr("x",r.posWithOffset-c.width/2),Y.rotateCommitLabel))if("TB"===U||"BT"===U)s.attr("transform","rotate(-45, "+r.x+", "+r.y+")"),o.attr("transform","rotate(-45, "+r.x+", "+r.y+")");else{let t=-7.5-(c.width+10)/25*9.5,e=10+c.width/25*8.5;i.attr("transform","translate("+t+", "+e+") rotate(-45, "+a+", "+r.y+")")}}},"drawCommitLabel"),ts=(0,c.K2)((t,e,r,a)=>{if(e.tags.length>0){let i=0,o=0,s=0,c=[];for(let a of e.tags.reverse()){let e=t.insert("polygon"),n=t.append("circle"),d=t.append("text").attr("y",r.y-16-i).attr("class","tag-label").text(a),h=d.node()?.getBBox();if(!h)throw Error("Tag bbox not found");o=Math.max(o,h.width),s=Math.max(s,h.height),d.attr("x",r.posWithOffset-h.width/2),c.push({tag:d,hole:n,rect:e,yOffset:i}),i+=20}for(let{tag:t,hole:e,rect:i,yOffset:n}of c){let c=s/2,d=r.y-19.2-n;if(i.attr("class","tag-label-bkg").attr("points",`
2      ${a-o/2-2},${d+2}  
3      ${a-o/2-2},${d-2}
4      ${r.posWithOffset-o/2-4},${d-c-2}
5      ${r.posWithOffset+o/2+4},${d-c-2}
6      ${r.posWithOffset+o/2+4},${d+c+2}
7      ${r.posWithOffset-o/2-4},${d+c+2}`),e.attr("cy",d).attr("cx",a-o/2+2).attr("r",1.5).attr("class","tag-hole"),"TB"===U||"BT"===U){let s=a+n;i.attr("class","tag-label-bkg").attr("points",`
8        ${r.x},${s+2}
9        ${r.x},${s-2}
10        ${r.x+10},${s-c-2}
11        ${r.x+10+o+4},${s-c-2}
12        ${r.x+10+o+4},${s+c+2}
13        ${r.x+10},${s+c+2}`).attr("transform","translate(12,12) rotate(45, "+r.x+","+a+")"),e.attr("cx",r.x+2).attr("cy",s).attr("transform","translate(12,12) rotate(45, "+r.x+","+a+")"),t.attr("x",r.x+5).attr("y",s+3).attr("transform","translate(14,14) rotate(45, "+r.x+","+a+")")}}}},"drawCommitTags"),tc=(0,c.K2)(t=>{switch(t.customType??t.type){case h.NORMAL:return"commit-normal";case h.REVERSE:return"commit-reverse";case h.HIGHLIGHT:return"commit-highlight";case h.MERGE:return"commit-merge";
13case h.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),tn=(0,c.K2)((t,e,r,a)=>{let i={x:0,y:0};if(t.parents.length>0){let r=Q(t.parents);if(r){let o=a.get(r)??i;return"TB"===e?o.y+40:"BT"===e?(a.get(t.id)??i).y-40:o.x+40}}else if("TB"===e)return 30;else if("BT"===e)return(a.get(t.id)??i).y-40;return 0},"calculatePosition"),td=(0,c.K2)((t,e,r)=>{let a="BT"===U&&r?e:e+10,i="TB"===U||"BT"===U?a:_.get(t.branch)?.pos,o="TB"===U||"BT"===U?_.get(t.branch)?.pos:a;if(void 0===o||void 0===i)throw Error(`Position were undefined for commit ${t.id}`);return{x:o,y:i,posWithOffset:a}},"getCommitPosition"),th=(0,c.K2)((t,e,r)=>{if(!Y)throw Error("GitGraph config not found");let a=t.append("g").attr("class","commit-bullets"),i=t.append("g").attr("class","commit-labels"),o=30*("TB"===U||"BT"===U),s=[...e.keys()],n=Y?.parallelCommits??!1,d=s.sort((0,c.K2)((t,r)=>{let a=e.get(t)?.seq,i=e.get(r)?.seq;return void 0!==a&&void 0!==i?a-i:0},"sortKeys"));"BT"===U&&(n&&Z(d,e,o),d=d.reverse()),d.forEach(t=>{let s=e.get(t);if(!s)throw Error(`Commit not found for key ${t}`);n&&(o=tn(s,U,o,N));let c=td(s,o,n);if(r){let t=tc(s),e=s.customType??s.type,r=_.get(s.branch)?.index??0;ti(a,s,c,t,r,e),to(i,s,c,o),ts(i,s,c,o)}"TB"===U||"BT"===U?N.set(s.id,{x:c.x,y:c.posWithOffset}):N.set(s.id,{x:c.posWithOffset,y:c.y}),(o="BT"===U&&n?o+40:o+40+10)>F&&(F=o)})},"drawCommits"),tl=(0,c.K2)((t,e,r,a,i)=>{let o=("TB"===U||"BT"===U?r.x<a.x:r.y<a.y)?e.branch:t.branch,s=(0,c.K2)(t=>t.branch===o,"isOnBranchToGetCurve"),n=(0,c.K2)(r=>r.seq>t.seq&&r.seq<e.seq,"isBetweenCommits");return[...i.values()].some(t=>n(t)&&s(t))},"shouldRerouteArrow"),tm=(0,c.K2)((t,e,r=0)=>{let a=t+Math.abs(t-e)/2;if(r>5)return a;if(W.every(t=>Math.abs(t-a)>=10))return W.push(a),a;let i=Math.abs(t-e);return tm(t,e-i/5,r+1)},"findLane"),t$=(0,c.K2)((t,e,r,a)=>{let i,o=N.get(e.id),s=N.get(r.id);if(void 0===o||void 0===s)throw Error(`Commit positions not found for commits ${e.id} and ${r.id}`);let c=tl(e,r,o,s,a),n="",d="",l=0,m=0,$=_.get(r.branch)?.index;if(r.type===h.MERGE&&e.id!==r.parents[0]&&($=_.get(e.branch)?.index),c){n="A 10 10, 0, 0, 0,",d="A 10 10, 0, 0, 1,",l=10,m=10;let t=o.y<s.y?tm(o.y,s.y):tm(s.y,o.y),r=o.x<s.x?tm(o.x,s.x):tm(s.x,o.x);"TB"===U?o.x<s.x?i=`M ${o.x} ${o.y} L ${r-l} ${o.y} ${d} ${r} ${o.y+m} L ${r} ${s.y-l} ${n} ${r+m} ${s.y} L ${s.x} ${s.y}`:($=_.get(e.branch)?.index,i=`M ${o.x} ${o.y} L ${r+l} ${o.y} ${n} ${r} ${o.y+m} L ${r} ${s.y-l} ${d} ${r-m} ${s.y} L ${s.x} ${s.y}`):"BT"===U?o.x<s.x?i=`M ${o.x} ${o.y} L ${r-l} ${o.y} ${n} ${r} ${o.y-m} L ${r} ${s.y+l} ${d} ${r+m} ${s.y} L ${s.x} ${s.y}`:($=_.get(e.branch)?.index,i=`M ${o.x} ${o.y} L ${r+l} ${o.y} ${d} ${r} ${o.y-m} L ${r} ${s.y+l} ${n} ${r-m} ${s.y} L ${s.x} ${s.y}`):o.y<s.y?i=`M ${o.x} ${o.y} L ${o.x} ${t-l} ${n} ${o.x+m} ${t} L ${s.x-l} ${t} ${d} ${s.x} ${t+m} L ${s.x} ${s.y}`:($=_.get(e.branch)?.index,i=`M ${o.x} ${o.y} L ${o.x} ${t+l} ${d} ${o.x+m} ${t} L ${s.x-l} ${t} ${n} ${s.x} ${t-m} L ${s.x} ${s.y}`)}else n="A 20 20, 0, 0, 0,",d="A 20 20, 0, 0, 1,",l=20,m=20,"TB"===U?(o.x<s.x&&(i=r.type===h.MERGE&&e.id!==r.parents[0]?`M ${o.x} ${o.y} L ${o.x} ${s.y-l} ${n} ${o.x+m} ${s.y} L ${s.x} ${s.y}`:`M ${o.x} ${o.y} L ${s.x-l} ${o.y} ${d} ${s.x} ${o.y+m} L ${s.x} ${s.y}`),o.x>s.x&&(n="A 20 20, 0, 0, 0,",d="A 20 20, 0, 0, 1,",l=20,m=20,i=r.type===h.MERGE&&e.id!==r.parents[0]?`M ${o.x} ${o.y} L ${o.x} ${s.y-l} ${d} ${o.x-m} ${s.y} L ${s.x} ${s.y}`:`M ${o.x} ${o.y} L ${s.x+l} ${o.y} ${n} ${s.x} ${o.y+m} L ${s.x} ${s.y}`),o.x===s.x&&(i=`M ${o.x} ${o.y} L ${s.x} ${s.y}`)):"BT"===U?(o.x<s.x&&(i=r.type===h.MERGE&&e.id!==r.parents[0]?`M ${o.x} ${o.y} L ${o.x} ${s.y+l} ${d} ${o.x+m} ${s.y} L ${s.x} ${s.y}`:`M ${o.x} ${o.y} L ${s.x-l} ${o.y} ${n} ${s.x} ${o.y-m} L ${s.x} ${s.y}`),o.x>s.x&&(n="A 20 20, 0, 0, 0,",d="A 20 20, 0, 0, 1,",l=20,m=20,i=r.type===h.MERGE&&e.id!==r.parents[0]?`M ${o.x} ${o.y} L ${o.x} ${s.y+l} ${n} ${o.x-m} ${s.y} L ${s.x} ${s.y}`:`M ${o.x} ${o.y} L ${s.x-l} ${o.y} ${n} ${s.x} ${o.y-m} L ${s.x} ${s.y}`),o.x===s.x&&(i=`M ${o.x} ${o.y} L ${s.x} ${s.y}`)):(o.y<s.y&&(i=r.type===h.MERGE&&e.id!==r.parents[0]?`M ${o.x} ${o.y} L ${s.x-l} ${o.y} ${d} ${s.x} ${o.y+m} L ${s.x} ${s.y}`:`M ${o.x} ${o.y} L ${o.x} ${s.y-l} ${n} ${o.x+m} ${s.y} L ${s.x} ${s.y}`),o.y>s.y&&(i=r.type===h.MERGE&&e.id!==r.parents[0]?`M ${o.x} ${o.y} L ${s.x-l} ${o.y} ${n} ${s.x} ${o.y-m} L ${s.x} ${s.y}`:`M ${o.x} ${o.y} L ${o.x} ${s.y+l} ${d} ${o.x+m} ${s.y} L ${s.x} ${s.y}`),o.y===s.y&&(i=`M ${o.x} ${o.y} L ${s.x} ${s.y}`));if(void 0===i)throw Error("Line definition not found");t.append("path").attr("d",i).attr("class","arrow arrow"+$%8)},"drawArrow"),ty=(0,c.K2)((t,e)=>{let r=t.append("g").attr("class","commit-arrows");
13[...e.keys()].forEach(t=>{let a=e.get(t);a.parents&&a.parents.length>0&&a.parents.forEach(t=>{t$(r,e.get(t),a,e)})})},"drawArrows"),tg=(0,c.K2)((t,e)=>{let r=t.append("g");e.forEach((t,e)=>{let a=e%8,i=_.get(t.name)?.pos;if(void 0===i)throw Error(`Position not found for branch ${t.name}`);let o=r.append("line");o.attr("x1",0),o.attr("y1",i),o.attr("x2",F),o.attr("y2",i),o.attr("class","branch branch"+a),"TB"===U?(o.attr("y1",30),o.attr("x1",i),o.attr("y2",F),o.attr("x2",i)):"BT"===U&&(o.attr("y1",F),o.attr("x1",i),o.attr("y2",30),o.attr("x2",i)),W.push(i);let s=J(t.name),c=r.insert("rect"),n=r.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+a);n.node().appendChild(s);let d=s.getBBox();c.attr("class","branchLabelBkg label"+a).attr("rx",4).attr("ry",4).attr("x",-d.width-4-30*(Y?.rotateCommitLabel===!0)).attr("y",-d.height/2+8).attr("width",d.width+18).attr("height",d.height+4),n.attr("transform","translate("+(-d.width-14-30*(Y?.rotateCommitLabel===!0))+", "+(i-d.height/2-1)+")"),"TB"===U?(c.attr("x",i-d.width/2-10).attr("y",0),n.attr("transform","translate("+(i-d.width/2-5)+", 0)")):"BT"===U?(c.attr("x",i-d.width/2-10).attr("y",F),n.attr("transform","translate("+(i-d.width/2-5)+", "+F+")")):c.attr("transform","translate(-19, "+(i-d.height/2)+")")})},"drawBranches"),tp=(0,c.K2)(function(t,e,r,a,i){return _.set(t,{pos:e,index:r}),e+=50+40*!!i+("TB"===U||"BT"===U?a.width/2:0)},"setBranchPosition"),tf={parser:H,db:I,renderer:{draw:(0,c.K2)(function(t,e,r,a){if(V(),c.Rm.debug("in gitgraph renderer",t+"\n","id:",e,r),!Y)throw Error("GitGraph config not found");let i=Y.rotateCommitLabel??!1,n=a.db;j=n.getCommits();let h=n.getBranchesAsObjArray();U=n.getDirection();let l=(0,d.Ltv)(`[id="${e}"]`),m=0;h.forEach((t,e)=>{let r=J(t.name),a=l.append("g"),o=a.insert("g").attr("class","branchLabel"),s=o.insert("g").attr("class","label branch-label");s.node()?.appendChild(r);let c=r.getBBox();m=tp(t.name,m,e,c,i),s.remove(),o.remove(),a.remove()}),th(l,j,!1),Y.showBranches&&tg(l,h),ty(l,j),th(l,j,!0),o._K.insertTitle(l,"gitTitleText",Y.titleTopMargin??0,n.getDiagramTitle()),(0,s.mj)(void 0,l,Y.diagramPadding,Y.useMaxWidth)},"draw")},styles:(0,c.K2)(t=>`
14  .commit-id,
15  .commit-msg,
16  .branch-label {
17    fill: lightgrey;
18    color: lightgrey;
19    font-family: 'trebuchet ms', verdana, arial, sans-serif;
20    font-family: var(--mermaid-font-family);
21  }
22  ${[0,1,2,3,4,5,6,7].map(e=>`
23        .branch-label${e} { fill: ${t["gitBranchLabel"+e]}; }
24        .commit${e} { stroke: ${t["git"+e]}; fill: ${t["git"+e]}; }
25        .commit-highlight${e} { stroke: ${t["gitInv"+e]}; fill: ${t["gitInv"+e]}; }
26        .label${e}  { fill: ${t["git"+e]}; }
27        .arrow${e} { stroke: ${t["git"+e]}; }
28        `).join("\n")}
29
30  .branch {
31    stroke-width: 1;
32    stroke: ${t.lineColor};
33    stroke-dasharray: 2;
34  }
35  .commit-label { font-size: ${t.commitLabelFontSize}; fill: ${t.commitLabelColor};}
36  .commit-label-bkg { font-size: ${t.commitLabelFontSize}; fill: ${t.commitLabelBackground}; opacity: 0.5; }
37  .tag-label { font-size: ${t.tagLabelFontSize}; fill: ${t.tagLabelColor};}
38  .tag-label-bkg { fill: ${t.tagLabelBackground}; stroke: ${t.tagLabelBorder}; }
39  .tag-hole { fill: ${t.textColor}; }
40
41  .commit-merge {
42    stroke: ${t.primaryColor};
43    fill: ${t.primaryColor};
44  }
45  .commit-reverse {
46    stroke: ${t.primaryColor};
47    fill: ${t.primaryColor};
48    stroke-width: 3;
49  }
50  .commit-highlight-outer {
51  }
52  .commit-highlight-inner {
53    stroke: ${t.primaryColor};
54    fill: ${t.primaryColor};
55  }
56
57  .arrow { stroke-width: 8; stroke-linecap: round; fill: none}
58  .gitTitleText {
59    text-anchor: middle;
60    font-size: 18px;
61    fill: ${t.textColor};
62  }
63`,"getStyles")}},36211:(t,e,r)=>{function a(t,e){t.accDescr&&e.setAccDescription?.(t.accDescr),t.accTitle&&e.setAccTitle?.(t.accTitle),t.title&&e.setDiagramTitle?.(t.title)}r.d(e,{S:()=>a}),(0,r(32165).K2)(a,"populateCommonDb")},87722:(t,e,r)=>{r.d(e,{m:()=>i});var a=r(32165),i=class{constructor(t){this.init=t,this.records=this.init()}static{(0,a.K2)(this,"ImperativeState")}reset(){this.records=this.init()}}}}]);

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.