티스토리 수익 글 보기

티스토리 수익 글 보기

“use strict”;(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([[16442],{13083:(e,i,t)=>{function l(e){return`line-${e}`}function n(e,i,t){return`${e}${“left”===i?”L”:”R”}${t}`}function r(e){return”DELETION”===e?”left”:”right”}function a(e,i=!1,t=!1){if(t)return”var(–bgColor-attention-muted, var(–color-attention-subtle))”;switch(e){case”ADDITION”:return i?”var(–diffBlob-additionNum-bgColor, var(–diffBlob-addition-bgColor-num))”:”var(–diffBlob-additionLine-bgColor, var(–diffBlob-addition-bgColor-line))”;case”DELETION”:return i?”var(–diffBlob-deletionNum-bgColor, var(–diffBlob-deletion-bgColor-num))”:”var(–diffBlob-deletionLine-bgColor, var(–diffBlob-deletion-bgColor-line))”;case”HUNK”:return i?”var(–diffBlob-hunkNum-bgColor, var(–diffBlob-hunk-bgColor-num))”:”var(–diffBlob-hunkLine-bgColor, var(–bgColor-accent-muted))”;case”EMPTY”:return i?”var(–diffBlob-emptyNum-bgColor, var(–diffBlob-hunk-bgColor-num))”:”var(–diffBlob-emptyLine-bgColor, var(–bgColor-accent-muted))”;default:return}}function s(e){let i=0;if(e)for(let t of e)i=Math.max(i,t?.left??0,t?.right??0);return Math.max(8*i.toString().length+20,40).toString()}t.d(i,{IQ:()=>n,Sq:()=>l,XU:()=>r,c7:()=>s,gK:()=>a})},19976:(e,i,t)=>{t.d(i,{Jg:()=>c,nq:()=>f,uP:()=>h.u,zl:()=>u.z,$e:()=>p,P3:()=>x,wj:()=>g,l4:()=>v,Qe:()=>b,Ah:()=>S});var l=t(28278),n=t(21728),r=t(34164),a=t(73017),s=t(13083);let d=e=>{let i,t,d,o,c,f,h,u,m,x,y=(0,n.c)(34),{dragging:p,isHighlighted:g,isLeftColumn:b,colSpan:N,line:j,lineAnchor:_}=e,D=j.html,v=””;if([“ADDITION”,”DELETION”].includes(j.type)&&[“+”,”-“].includes(D[0])){let e;v=D[0],y[0]!==D?(e=D.slice(1),y[0]=D,y[1]=e):e=y[1],D=e}let C=p&&g,L=b&&”HUNK”!==j.type;y[2]!==C||y[3]!==L?(i=(0,r.$)(“diff-text-cell”,{“border-left color-border-accent-emphasis”:C,”border-right”:L}),y[2]=C,y[3]=L,y[4]=i):i=y[4],y[5]!==_?(t=_?(0,s.Sq)(_):void 0,y[5]=_,y[6]=t):t=y[6],y[7]!==g||y[8]!==j.type?(d=(0,s.gK)(j.type,!1,g),y[7]=g,y[8]=j.type,y[9]=d):d=y[9],y[10]!==d?(o={backgroundColor:d},y[10]=d,y[11]=o):o=y[11];let S=v,T=”ADDITION”===j.type,w=”DELETION”===j.type;y[12]!==T||y[13]!==w?(c=(0,r.$)(“diff-text syntax-highlighted-line”,{addition:T,deletion:w}),y[12]=T,y[13]=w,y[14]=c):c=y[14];let I=e.lineChild,E=”HUNK”===j.type;y[15]!==E?(f=(0,r.$)(“diff-text-inner”,{“color-fg-muted”:E}),y[15]=E,y[16]=f):f=y[16];let $=”CONTEXT”===j.type?”-7px”:void 0;return y[17]!==$?(h={marginLeft:$},y[17]=$,y[18]=h):h=y[18],y[19]!==D||y[20]!==f||y[21]!==h?(u=(0,l.jsx)(a.$6,{className:f,html:D,style:h}),y[19]=D,y[20]=f,y[21]=h,y[22]=u):u=y[22],y[23]!==v||y[24]!==e.lineChild||y[25]!==u||y[26]!==c?(m=(0,l.jsxs)(“code”,{“data-code-marker”:S,className:c,children:[I,u]}),y[23]=v,y[24]=e.lineChild,y[25]=u,y[26]=c,y[27]=m):m=y[27],y[28]!==N||y[29]!==m||y[30]!==i||y[31]!==t||y[32]!==o?(x=(0,l.jsx)(“td”,{className:i,colSpan:N,id:t,style:o,children:m}),y[28]=N,y[29]=m,y[30]=i,y[31]=t,y[32]=o,y[33]=x):x=y[33],x};try{d.displayName||(d.displayName=”DiffText”)}catch{}let o=e=>{let i,t,a,d,o,c,f,h,u,m,x,y,p,g=(0,n.c)(30);g[0]!==e?({ariaLabel:i,children:t,hasExpanderButton:d,lineType:f,colSpan:a,interactiveProps:o,isHighlighted:c,…h}=e,g[0]=e,g[1]=i,g[2]=t,g[3]=a,g[4]=d,g[5]=o,g[6]=c,g[7]=f,g[8]=h):(i=g[1],t=g[2],a=g[3],d=g[4],o=g[5],c=g[6],f=g[7],h=g[8]),g[9]!==t?(u=(0,l.jsx)(“code”,{className:”pr-2″,children:t}),g[9]=t,g[10]=u):u=g[10];let b=u;if(o){let e;g[11]!==i||g[12]!==o||g[13]!==b?(e=(0,l.jsx)(“button”,{className:”diff-line-number-button”,…o,”aria-label”:i,children:b}),g[11]=i,g[12]=o,g[13]=b,g[14]=e):e=g[14],b=e}let N=o?void 0:i,j=!!o;g[15]!==d||g[16]!==j?(m=(0,r.$)(“diff-line-number”,{“has-expander”:d,clickable:j}),g[15]=d,g[16]=j,g[17]=m):m=g[17];let _=a||1;return g[18]!==c||g[19]!==f?(x=(0,s.gK)(f,!0,c),g[18]=c,g[19]=f,g[20]=x):x=g[20],g[21]!==x?(y={backgroundColor:x},g[21]=x,g[22]=y):y=g[22],g[23]!==h||g[24]!==N||g[25]!==m||g[26]!==_||g[27]!==y||g[28]!==b?(p=(0,l.jsx)(“td”,{“aria-label”:N,”data-line-number”:!0,className:m,colSpan:_,style:y,…h,children:b}),g[23]=h,g[24]=N,g[25]=m,g[26]=_,g[27]=y,g[28]=b,g[29]=p):p=g[29],p};try{o.displayName||(o.displayName=”LineNumber”)}catch{}let c=e=>{let i,t,r,a,s=(0,n.c)(28),{dragging:c,isHighlighted:f,isLeftColumn:h,isSplit:u,lineAnchor:m,line:x,lineChild:y,onLineNumberClick:p}=e,g=”CONTEXT”===x.type||”INJECTED_CONTEXT”===x.type,b=”ADDITION”!==x.type,N=b||!u,j=”DELETION”!==x.type,_=j&&!g||!u,D=u&&g?h?x.left:x.right:x.left;return s[0]!==D||s[1]!==f||s[2]!==x.left||s[3]!==x.right||s[4]!==x.type||s[5]!==p||s[6]!==b||s[7]!==N?(i=N&&(0,l.jsx)(o,{ariaLabel:`Line ${b?x.left?.toString():x.right?.toString()}`,lineType:x.type,interactiveProps:p?{onClick:p}:null,isHighlighted:f,children:b&&D}),s[0]=D,s[1]=f,s[2]=x.left,s[3]=x.right,s[4]=x.type,s[5]=p,s[6]=b,s[7]=N,s[8]=i):i=s[8],s[9]!==f||s[10]!==x.left||s[11]!==x.right||s[12]!==x.type||s[13]!==p||s[14]!==j||s[15]!==_?(t=_&&(0,l.jsx)(o,{ariaLabel:`Line ${j?x.right?.toString():x.left?.toString()}`,lineType:x.type,interactiveProps:p?{onClick:p}:null,isHighlighted:f,children:j&&x.right}),s[9]=f,s[10]=x.left,s[11]=x.right,s[12]=x.type,s[13]=p,s[14]=j,s[15]=_,s[16]=t):t=s[16],s[17]!==c||s[18]!==f||s[19]!==h||s[20]!==x||s[21]!==m||s[22]!==y?(r=(0,l.jsx)(d,{dragging:c,isHighlighted:f,isLeftColumn:h,line:x,lineAnchor:m,lineChild:y}),s[17]=c,s[18]=f,s[19]=h,s[20]=x,s[21]=m,s[22]=y,s[23]=r):r=s[23],s[24]!==i||s[25]!==t||s[26]!==r?(a=(0,l.jsxs)(l.Fragment,{children:[i,t,r]}),s[24]=i,s[25]=t,s[26]=r,s[27]=a):a=s[27],a};try{c.displayName||(c.displayName=”DiffLinePart”)}catch{}function f(){let e,i,t=(0,n.c)(2);return t[0]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,l.jsxs)(“clipPath”,{id:”diff-placeholder”,children:[(0,l.jsx)(“rect”,{height:”11.9298746″,rx:”2″,width:”67.0175439″,x:”0″,y:”0″}),(0,l.jsx)(“rect”,{height:”11.9298746″,rx:”2″,width:”100.701754″,x:”18.9473684″,y:”47.7194983″}),(0,l.jsx)(“rect”,{height:”11.9298746″,rx:”2″,width:”37.8947368″,x:”0″,y:”71.930126″}),(0,l.jsx)(“rect”,{height:”11.9298746″,rx:”2″,width:”53.3333333″,x:”127.017544″,y:”48.0703769″}),(0,l.jsx)(“rect”,{height:”11.9298746″,rx:”2″,width:”72.9824561″,x:”187.719298″,y:”48.0703769″}),(0,l.jsx)(“rect”,{height:”11.9298746″,rx:”2″,width:”140.350877″,x:”76.8421053″,y:”0″}),(0,l.jsx)(“rect”,{height:”11.9298746″,rx:”2″,width:”140.350877″,x:”17.8947368″,y:”23.8597491″}),(0,l.jsx)(“rect”,{height:”11.9298746″,rx:”2″,width:”173.684211″,x:”166.315789″,y:”23.8597491″})]}),t[0]=e):e=t[0],t[1]===Symbol.for(“react.memo_cache_sentinel”)?(i=(0,l.jsx)(“svg”,{“aria-hidden”:”true”,version:”1.1″,viewBox:”0 0 340 84″,xmlns:”http://www.w3.org/2000/svg”,className:”DiffPlaceholder-module__DiffPlaceholderSVG–zRrf1″,children:(0,l.jsxs)(“defs”,{children:[e,(0,l.jsxs)(“linearGradient”,{id:”animated-diff-gradient”,spreadMethod:”reflect”,x1:”0″,x2:”0″,y1:”0″,y2:”1″,children:[(0,l.jsx)(“stop”,{offset:”0″,stopColor:”#eee”}),(0,l.jsx)(“stop”,{offset:”0.2″,stopColor:”#eee”}),(0,l.jsx)(“stop”,{offset:”0.5″,stopColor:”#ddd”}),(0,l.jsx)(“stop”,{offset:”0.8″,stopColor:”#eee”}),(0,l.jsx)(“stop”,{offset:”1″,stopColor:”#eee”}),(0,l.jsx)(“animateTransform”,{attributeName:”y1″,dur:”1s”,repeatCount:”3″,values:”0%; 100%; 0″}),(0,l.jsx)(“animateTransform”,{attributeName:”y2″,dur:”1s”,repeatCount:”3″,values:”100%; 200%; 0″})]})]})}),t[1]=i):i=t[1],i}try{f.displayName||(f.displayName=”DiffPlaceholder”)}catch{}var h=t(88098),u=t(91618),m=t(38621);function x(e){let i,t,r,a=(0,n.c)(10),{currentLine:s,hunkButton:c,isLeftColumn:f,isSplit:h}=e;if(h&&!f)return null;a[0]!==s.type||a[1]!==c||a[2]!==h?(i=c?(0,l.jsx)(o,{colSpan:h?1:2,hasExpanderButton:!0,lineType:s.type,children:c}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o,{lineType:s.type,children:(0,l.jsx)(m.KebabHorizontalIcon,{})}),!h&&(0,l.jsx)(o,{lineType:s.type,children:(0,l.jsx)(m.KebabHorizontalIcon,{})})]}),a[0]=s.type,a[1]=c,a[2]=h,a[3]=i):i=a[3];let u=h?3:void 0;return a[4]!==s||a[5]!==u?(t=(0,l.jsx)(d,{isHighlighted:!1,isLeftColumn:!0,colSpan:u,line:s}),a[4]=s,a[5]=u,a[6]=t):t=a[6],a[7]!==i||a[8]!==t?(r=(0,l.jsxs)(l.Fragment,{children:[i,t]}),a[7]=i,a[8]=t,a[9]=r):r=a[9],r}try{x.displayName||(x.displayName=”HunkHeaderDiffLine”)}catch{}function y(){let e,i=(0,n.c)(1);return i[0]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,l.jsx)(“div”,{className:”hunk-kebab-icon pr-2 pb-1″,children:(0,l.jsx)(m.KebabHorizontalIcon,{})}),i[0]=e):e=i[0],e}try{y.displayName||(y.displayName=”HunkKebabIcon”)}catch{}function p(e){let i,t,a,s=(0,n.c)(5),{isLeftColumn:d}=e;return s[0]===Symbol.for(“react.memo_cache_sentinel”)?(i=(0,l.jsx)(o,{lineType:”EMPTY”}),s[0]=i):i=s[0],s[1]!==d?(t=(0,r.$)(“empty-diff-line”,{“border-right”:d}),s[1]=d,s[2]=t):t=s[2],s[3]!==t?(a=(0,l.jsxs)(l.Fragment,{children:[i,(0,l.jsx)(“td”,{className:t,colSpan:1})]}),s[3]=t,s[4]=a):a=s[4],a}try{p.displayName||(p.displayName=”EmptyDiffLine”)}catch{}function g(e){let i,t,r,a,s,d,o,c,f=(0,n.c)(15);return f[0]===Symbol.for(“react.memo_cache_sentinel”)?(i=(0,l.jsx)(“thead”,{className:”sr-only”,children:(0,l.jsxs)(“tr”,{children:[(0,l.jsx)(“th”,{scope:”col”,children:”Original file line number”}),(0,l.jsx)(“th”,{scope:”col”,children:”Original file line”}),(0,l.jsx)(“th”,{scope:”col”,children:”Diff line number”}),(0,l.jsx)(“th”,{scope:”col”,children:”Diff line change”})]})}),f[0]=i):i=f[0],f[1]!==e.lineWidth?(t=(0,l.jsx)(“col”,{width:e.lineWidth}),f[1]=e.lineWidth,f[2]=t):t=f[2],f[3]===Symbol.for(“react.memo_cache_sentinel”)?(r=(0,l.jsx)(“col”,{}),f[3]=r):r=f[3],f[4]!==e.lineWidth?(a=(0,l.jsx)(“col”,{width:e.lineWidth}),f[4]=e.lineWidth,f[5]=a):a=f[5],f[6]===Symbol.for(“react.memo_cache_sentinel”)?(s=(0,l.jsx)(“col”,{}),f[6]=s):s=f[6],f[7]!==t||f[8]!==a?(d=(0,l.jsxs)(“colgroup”,{children:[t,r,a,s]}),f[7]=t,f[8]=a,f[9]=d):d=f[9],f[10]!==e.children?(o=(0,l.jsx)(“tbody”,{children:e.children}),f[10]=e.children,f[11]=o):o=f[11],f[12]!==d||f[13]!==o?(c=(0,l.jsxs)(l.Fragment,{children:[i,d,o]}),f[12]=d,f[13]=o,f[14]=c):c=f[14],c}try{g.displayName||(g.displayName=”SplitDiffTable”)}catch{}function b(e){let i,t,r,a,s,d,o,c,f,h,u=(0,n.c)(24),m=e.showLineNumbers??!0;return u[0]!==m?(i=m&&(0,l.jsx)(“th”,{scope:”col”,children:”Original file line number”}),u[0]=m,u[1]=i):i=u[1],u[2]!==m?(t=m&&(0,l.jsx)(“th”,{scope:”col”,children:”Diff line number”}),u[2]=m,u[3]=t):t=u[3],u[4]===Symbol.for(“react.memo_cache_sentinel”)?(r=(0,l.jsx)(“th”,{scope:”col”,children:”Diff line change”}),u[4]=r):r=u[4],u[5]!==i||u[6]!==t?(a=(0,l.jsx)(“thead”,{className:”sr-only”,children:(0,l.jsxs)(“tr”,{children:[i,t,r]})}),u[5]=i,u[6]=t,u[7]=a):a=u[7],u[8]!==e.lineWidth||u[9]!==m?(s=m&&(0,l.jsx)(“col”,{width:e.lineWidth}),u[8]=e.lineWidth,u[9]=m,u[10]=s):s=u[10],u[11]!==e.lineWidth||u[12]!==m?(d=m&&(0,l.jsx)(“col”,{width:e.lineWidth}),u[11]=e.lineWidth,u[12]=m,u[13]=d):d=u[13],u[14]===Symbol.for(“react.memo_cache_sentinel”)?(o=(0,l.jsx)(“col”,{width:”100%”}),u[14]=o):o=u[14],u[15]!==s||u[16]!==d?(c=(0,l.jsxs)(“colgroup”,{children:[s,d,o]}),u[15]=s,u[16]=d,u[17]=c):c=u[17],u[18]!==e.children?(f=(0,l.jsx)(“tbody”,{children:e.children}),u[18]=e.children,u[19]=f):f=u[19],u[20]!==a||u[21]!==c||u[22]!==f?(h=(0,l.jsxs)(l.Fragment,{children:[a,c,f]}),u[20]=a,u[21]=c,u[22]=f,u[23]=h):h=u[23],h}try{b.displayName||(b.displayName=”UnifiedDiffTable”)}catch{}let N=”UnifiedDiffLines-module__diffTextInner–z42oB”;function j(e){let i,t,r,a,d=(0,n.c)(9),{line:o,children:c}=e;return d[0]!==o.type?(i=(0,s.gK)(o.type,!0),d[0]=o.type,d[1]=i):i=d[1],d[2]!==i?(t={backgroundColor:i,textAlign:”center”},d[2]=i,d[3]=t):t=d[3],d[4]!==c?(r=(0,l.jsx)(“code”,{children:c}),d[4]=c,d[5]=r):r=d[5],d[6]!==t||d[7]!==r?(a=(0,l.jsx)(“td”,{className:”UnifiedDiffLines-module__diffLineNumber–Ls6hS”,style:t,children:r}),d[6]=t,d[7]=r,d[8]=a):a=d[8],a}function _(e){let i,t,s,d,o=(0,n.c)(7),{line:c,showLineNumbers:f}=e,h=f?4:2;o[0]===Symbol.for(“react.memo_cache_sentinel”)?(i=(0,l.jsx)(y,{}),o[0]=i):i=o[0],o[1]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,r.$)(N,”color-fg-muted”),o[1]=t):t=o[1];let u=c.html;return o[2]!==u?(s=(0,l.jsxs)(“div”,{className:”d-flex flex-row”,children:[i,(0,l.jsx)(“code”,{className:”UnifiedDiffLines-module__diffHunkText–nwvt0″,children:(0,l.jsx)(a.$6,{className:t,html:u})})]}),o[2]=u,o[3]=s):s=o[3],o[4]!==h||o[5]!==s?(d=(0,l.jsx)(“td”,{colSpan:h,className:”UnifiedDiffLines-module__diffHunkCell–PwOTu”,valign:”top”,children:s}),o[4]=h,o[5]=s,o[6]=d):d=o[6],d}function D(e){let i,t,d,o=(0,n.c)(15),{line:c,showLineNumbers:f}=e,h=”HUNK”===c.type,u=”ADDITION”!==c.type,m=”DELETION”!==c.type,x=”ADDITION”===c.type?”+”:”DELETION”===c.type?”-“:void 0,y=!!x;return o[0]!==h||o[1]!==c||o[2]!==f?(i=h&&(0,l.jsx)(_,{line:c,showLineNumbers:f}),o[0]=h,o[1]=c,o[2]=f,o[3]=i):i=o[3],o[4]!==h||o[5]!==c||o[6]!==x||o[7]!==u||o[8]!==y||o[9]!==f||o[10]!==m?(t=!h&&(0,l.jsxs)(l.Fragment,{children:[f&&(0,l.jsx)(j,{line:c,children:u&&c.left}),f&&(0,l.jsx)(j,{line:c,children:m&&c.right}),(0,l.jsx)(“td”,{className:”UnifiedDiffLines-module__diffTextCell–y7sIw”,style:{backgroundColor:(0,s.gK)(c.type,!1)},children:(0,l.jsxs)(“code”,{className:(0,r.$)(“ADDITION”===c.type&&”UnifiedDiffLines-module__syntaxHighlightedAdditionLine–GBB6F”,”DELETION”===c.type&&”UnifiedDiffLines-module__syntaxHighlightedDeletionLine–mmCob”),children:[y&&(0,l.jsx)(“span”,{className:”UnifiedDiffLines-module__diffTextMarker–XE3qq”,children:x}),(0,l.jsx)(a.$6,{className:N,html:c.html,style:{backgroundColor:(0,s.gK)(c.type,!1)}})]})})]}),o[4]=h,o[5]=c,o[6]=x,o[7]=u,o[8]=y,o[9]=f,o[10]=m,o[11]=t):t=o[11],o[12]!==i||o[13]!==t?(d=(0,l.jsxs)(“tr”,{children:[i,t]}),o[12]=i,o[13]=t,o[14]=d):d=o[14],d}function v(e){let i,t,a,s,d,o=(0,n.c)(19),{className:c,lines:f,lineWidth:h,tabSize:u}=e;o[0]!==f?(i=f.some(C),o[0]=f,o[1]=i):i=o[1];let m=i;if(o[2]!==m||o[3]!==f||o[4]!==u){let e;o[6]!==m||o[7]!==u?(e=(e,i)=>(0,l.jsx)(D,{line:e,tabSize:u,showLineNumbers:m},i),o[6]=m,o[7]=u,o[8]=e):e=o[8],t=f.map(e),o[2]=m,o[3]=f,o[4]=u,o[5]=t}else t=o[5];let x=t;return o[9]!==c?(a=(0,r.$)(“UnifiedDiffLines-module__unifiedDiffLines–UDm5a”,c,”tab-size”),o[9]=c,o[10]=a):a=o[10],o[11]!==x||o[12]!==m||o[13]!==h?(s=(0,l.jsx)(b,{lineWidth:h,showLineNumbers:m,children:x}),o[11]=x,o[12]=m,o[13]=h,o[14]=s):s=o[14],o[15]!==a||o[16]!==s||o[17]!==u?(d=(0,l.jsx)(“table”,{className:a,”data-tab-size”:u,children:s}),o[15]=a,o[16]=s,o[17]=u,o[18]=d):d=o[18],d}function C(e){return null!==e.left||null!==e.right}try{j.displayName||(j.displayName=”LineNumberCell”)}catch{}try{_.displayName||(_.displayName=”HunkCell”)}catch{}try{D.displayName||(D.displayName=”UnifiedDiffRow”)}catch{}try{v.displayName||(v.displayName=”UnifiedDiffLines”)}catch{}function L(e){return”LEFT”===e?”-“:”RIGHT”===e?”+”:””}function S({startDiffSide:e,endDiffSide:i,originalStartLine:t,originalEndLine:l}){return e&&i&&”number”==typeof t&&”number”==typeof l?0===t&&1===l&&e===i?”-1 to +1″:e===i&&t===l?`${L(e)}${t}`:`${L(e)}${t} to ${L(i)}${l}`:””}},28600:(e,i,t)=>{t.d(i,{A:()=>s});let{getItem:l,setItem:n,removeItem:r}=(0,t(82075).A)(“localStorage”),a=”REACT_PROFILING_ENABLED”,s={enable:()=>n(a,”true”),disable:()=>r(a),isEnabled:()=>!!l(a)}},51407:(e,i,t)=>{t.d(i,{Y:()=>l});function l(){let e={};return e.promise=new Promise((i,t)=>{e.resolve=i,e.reject=t}),e}},88098:(e,i,t)=>{t.d(i,{u:()=>s});var l=t(28278),n=t(21728),r=t(34164);let a={diffSquare:”DiffSquares-module__diffSquare–KZMTU”,addition:”DiffSquares-module__addition–kxGde”,deletion:”DiffSquares-module__deletion–vyEtU”,neutral:”DiffSquares-module__neutral–_tGgY”};function s(e){let i,t,r=(0,n.c)(4),{squares:a}=e;return r[0]!==a?(i=a.map(d),r[0]=a,r[1]=i):i=r[1],r[2]!==i?(t=(0,l.jsx)(“div”,{className:”d-flex”,children:i}),r[2]=i,r[3]=t):t=r[3],t}function d(e,i){return(0,l.jsx)(“div”,{“data-testid”:`${e} diffstat`,className:(0,r.$)(a.diffSquare,a[e])},i)}try{s.displayName||(s.displayName=”DiffSquares”)}catch{}},91618:(e,i,t)=>{t.d(i,{z:()=>a});var l=t(28278),n=t(21728),r=t(88098);function a(e){let i,t,a,s,d,o,c,f=(0,n.c)(21),{linesAdded:h,linesDeleted:u,linesChanged:m,hideSquares:x}=e,y=void 0===h?0:h,p=void 0===u?0:u,g=void 0===m?0:m,b=void 0!==x&&x;if(!y&&!p&&!g||0===g)return null;if(f[0]!==y||f[1]!==g||f[2]!==p){var N,j,_;let e,t,l,{greenSquares:n,redSquares:r,graySquares:a}=(N=y,j=p,t=Math.floor(N*(e=(_=g)>5?5/_:1)),{greenSquares:t,redSquares:l=Math.floor(j*e),graySquares:5-t-l});i=[…Array(n).fill(“addition”),…Array(r).fill(“deletion”),…Array(a).fill(“neutral”)],f[0]=y,f[1]=g,f[2]=p,f[3]=i}else i=f[3];let D=i;return f[4]!==y?(t=y>0&&(0,l.jsxs)(“span”,{“aria-hidden”:”true”,className:”f6 text-bold fgColor-success”,children:[“+”,y.toLocaleString()]}),f[4]=y,f[5]=t):t=f[5],f[6]!==p?(a=p>0&&(0,l.jsxs)(“span”,{“aria-hidden”:”true”,className:”f6 text-bold fgColor-danger”,children:[“-“,p.toLocaleString()]}),f[6]=p,f[7]=a):a=f[7],f[8]!==y||f[9]!==p?(s=function({linesAdded:e,linesDeleted:i}){let t=”Lines changed: “;return t+`${e} ${1===e?”addition”:”additions”} & ${i} ${1===i?”deletion”:”deletions”}`}({linesAdded:y,linesDeleted:p}),f[8]=y,f[9]=p,f[10]=s):s=f[10],f[11]!==s?(d=(0,l.jsx)(“span”,{className:”sr-only”,children:s}),f[11]=s,f[12]=d):d=f[12],f[13]!==b||f[14]!==D?(o=!b&&(0,l.jsx)(r.u,{squares:D}),f[13]=b,f[14]=D,f[15]=o):o=f[15],f[16]!==o||f[17]!==t||f[18]!==a||f[19]!==d?(c=(0,l.jsxs)(“div”,{className:”d-flex flex-items-center gap-1 pl-1″,children:[t,a,d,o]}),f[16]=o,f[17]=t,f[18]=a,f[19]=d,f[20]=c):c=f[20],c}try{a.displayName||(a.displayName=”DiffStats”)}catch{}},98091:(e,i,t)=>{t.d(i,{i:()=>c});var l=t(28278),n=t(68273),r=t(21728),a=t(13083),s=t(19976),d=t(34164);let o=”StaticUnifiedDiffPreview-module__StaticDiffPreview–d7JRB”,c=(0,n.GV)()?function(e){let i,t,n,c,f=(0,r.c)(12),{diffLines:h,tabSize:u,className:m,diffTableClassName:x}=e;if(!h||h.length<1)return null;f[0]!==h?(i=(0,a.c7)(h),f[0]=h,f[1]=i):i=f[1];let y=i;return f[2]!==m?(t=(0,d.$)(o,m),f[2]=m,f[3]=t):t=f[3],f[4]!==h||f[5]!==x||f[6]!==y||f[7]!==u?(n=(0,l.jsx)(s.l4,{lineWidth:y,lines:h,tabSize:u,className:x}),f[4]=h,f[5]=x,f[6]=y,f[7]=u,f[8]=n):n=f[8],f[9]!==t||f[10]!==n?(c=(0,l.jsx)("div",{className:t,children:n}),f[9]=t,f[10]=n,f[11]=c):c=f[11],c}:function({diffLines:e,tabSize:i,className:t,diffTableClassName:n}){if(!e||e.length<1)return null;let r=(0,a.c7)(e);return(0,l.jsx)("div",{className:(0,d.$)(o,t),children:(0,l.jsx)(s.l4,{lineWidth:r,lines:e,tabSize:i,className:n})})};try{c.displayName||(c.displayName="StaticUnifiedDiffPreview")}catch{}}}]); //# sourceMappingURL=16442-9b77726f60c7.js.map