mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-07-17 04:32:40 -04:00
1 line
2.4 KiB
JavaScript
1 line
2.4 KiB
JavaScript
"undefined"==typeof ZLIB&&alert("ZLIB is not defined. SRC zlib.js before zlib-adler32.js"),function(){var r=65521,e=5552;ZLIB.adler32=function(o,t,d,a){return"string"==typeof t?function(o,t,d,a){var c,h;if(c=o>>>16&65535,o&=65535,1==a)return(o+=255&t.charCodeAt(d))>=r&&(o-=r),(c+=o)>=r&&(c-=r),o|c<<16;if(null===t)return 1;if(a<16){for(;a--;)c+=o+=255&t.charCodeAt(d++);return o>=r&&(o-=r),o|(c%=r)<<16}for(;a>=e;){a-=e,h=347;do{c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++)}while(--h);o%=r,c%=r}if(a){for(;a>=16;)a-=16,c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++),c+=o+=255&t.charCodeAt(d++);for(;a--;)c+=o+=255&t.charCodeAt(d++);o%=r,c%=r}return o|c<<16}(o,t,d,a):function(o,t,d,a){var c,h;if(c=o>>>16&65535,o&=65535,1==a)return(o+=t[d])>=r&&(o-=r),(c+=o)>=r&&(c-=r),o|c<<16;if(null===t)return 1;if(a<16){for(;a--;)c+=o+=t[d++];return o>=r&&(o-=r),o|(c%=r)<<16}for(;a>=e;){a-=e,h=347;do{c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++]}while(--h);o%=r,c%=r}if(a){for(;a>=16;)a-=16,c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++],c+=o+=t[d++];for(;a--;)c+=o+=t[d++];o%=r,c%=r}return o|c<<16}(o,t,d,a)},ZLIB.adler32_combine=function(e,o,t){var d,a,c;return t<0?4294967295:(a=(c=t%=r)*(d=65535&e),a%=r,(d+=(65535&o)+r-1)>=r&&(d-=r),d>=r&&(d-=r),(a+=(e>>16&65535)+(o>>16&65535)+r-c)>=131042&&(a-=131042),a>=r&&(a-=r),d|a<<16)}}() |