export const DEFAULT_LAZY_RENDER_MIN_FILES=0xc8;export const DEFAULT_LAZY_RENDER_MAX_FILES=0x3e7;export const DEFAULT_LAZY_RENDER_CHUNK_SIZE=0x28;export const DEFAULT_AUTO_COLLAPSE_MIN_FILES=0xc8;export function getLazyRenderUpperBound({maxFiles:maxFiles=DEFAULT_LAZY_RENDER_MAX_FILES,serverMaxFiles:serverMaxFiles=null}={}){if(!Number['isFinite'](serverMaxFiles))return maxFiles;return Math['min'](maxFiles,serverMaxFiles);}export function shouldUseLazyRendering(_0x39a54f,{minFiles:minFiles=DEFAULT_LAZY_RENDER_MIN_FILES,maxFiles:maxFiles=DEFAULT_LAZY_RENDER_MAX_FILES,serverMaxFiles:serverMaxFiles=null}={}){const _0x9c99b9=getLazyRenderUpperBound({'maxFiles':maxFiles,'serverMaxFiles':serverMaxFiles});return _0x39a54f>=minFiles&&_0x39a54f<=_0x9c99b9;}export function shouldAutoCollapseDiff(_0x2b3d87,{threshold:threshold=DEFAULT_AUTO_COLLAPSE_MIN_FILES}={}){return _0x2b3d87>=threshold;}export function getNextRenderedCount({renderedCount:_0x406a00,totalFiles:_0x3f527c,chunkSize:chunkSize=DEFAULT_LAZY_RENDER_CHUNK_SIZE}){return Math['min'](_0x406a00+chunkSize,_0x3f527c);}export function renderedCountForTarget({renderedCount:_0xf7c1c3,targetIndex:_0x297ad1,totalFiles:_0x8d0cbe,chunkSize:chunkSize=DEFAULT_LAZY_RENDER_CHUNK_SIZE}){let _0x4c14ec=_0xf7c1c3;while(_0x4c14ec<=_0x297ad1&&_0x4c14ec<_0x8d0cbe){_0x4c14ec=getNextRenderedCount({'renderedCount':_0x4c14ec,'totalFiles':_0x8d0cbe,'chunkSize':chunkSize});}return _0x4c14ec;}export function getLazyLoadMoreText({filesLength:_0x103a6c,renderedCount:_0x178989,chunkSize:_0x388de1}){const _0x534cec=Math['max'](0x0,_0x103a6c-_0x178989),_0x24ad32=Math['min'](_0x388de1,_0x534cec);return'Load\x20'+_0x24ad32['toLocaleString']()+'\x20more\x20files\x20('+_0x178989['toLocaleString']()+'\x20/\x20'+_0x103a6c['toLocaleString']()+')';}export function getFileNameFromDiffFile(_0x56a9ab){return _0x56a9ab?.['newPath']||_0x56a9ab?.['oldPath']||'';}export function buildCollapsedStateUpdates({files:_0x3d6ec7,collapsed:_0x192526,storageKeyPrefix:_0x335515,getStorageKey:_0x37641c}){const _0x86f215=[];for(const _0x353df5 of _0x3d6ec7||[]){const _0x377002=getFileNameFromDiffFile(_0x353df5);if(!_0x377002)continue;_0x86f215['push']({'key':_0x37641c(_0x335515,_0x377002),'value':String(_0x192526),'fileName':_0x377002});}return _0x86f215;}