META-INF._t.sign.min.js Maven / Gradle / Ivy
(function(m){var u=function(a){var c="",h="",g;for(g=0;3>=g;g++)h=a>>>8*g&255,h="0"+h.toString(16),c+=h.substr(h.length-2,2);return c},p=function(a,c,h,g,l,k,b){a=n(a,n(n(h^(c|~g),l),b));return n(a<>>32-k,c)},q=function(a,c,h,g,l,k,b){a=n(a,n(n(c^h^g,l),b));return n(a<>>32-k,c)},r=function(a,c,h,g,l,k,b){a=n(a,n(n(c&g|h&~g,l),b));return n(a<>>32-k,c)},t=function(a,c,h,g,l,k,b){a=n(a,n(n(c&h|~c&g,l),b));return n(a<>>32-k,c)},n=function(a,c){var h,g,l,k,b;l=a&2147483648;k=c&2147483648;
h=a&1073741824;g=c&1073741824;b=(a&1073741823)+(c&1073741823);return h&&g?b^2147483648^l^k:h||g?b&1073741824?b^3221225472^l^k:b^1073741824^l^k:b^l^k},v=function(a){a=a.replace(/\r\n/g,"\n");for(var c="",h=0;hg?c+=String.fromCharCode(g):(127g?c+=String.fromCharCode(g>>6|192):(c+=String.fromCharCode(g>>12|224),c+=String.fromCharCode(g>>6&63|128)),c+=String.fromCharCode(g&63|128))}return c};m.md5=function(a){var c,h,g,l,k,b,d,e,f;c=a=v(a);h=c.length;
a=h+8;l=16*((a-a%64)/64+1);a=Array(l-1);for(b=k=0;b>>29;b=1732584193;d=4023233417;e=2562383102;f=271733878;for(c=0;c>2,h=(h&3)<<4|g>>4,b=(g&15)<<2|l>>6,d=l&63,isNaN(g)?b=d=64:isNaN(l)&&(d=64),c=c+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt(k)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt(h)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt(b)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".charAt(d);
return c};m.signClient=function(a){m.signClient.allowableClientTimeDifference=a.allowableClientTimeDifference;void 0===m.signClient.allowableClientTimeDifference&&(m.signClient.allowableClientTimeDifference=0);m.signClient.verifyUserAgent=a.verifyUserAgent;m.signClient.clientSecret=a.clientSecret;m.signClient.parameterName=a.parameterName||"sign";m.signClient.toQueryString=function(c){var a="",g=0,l=Object.keys(c).length,k;for(k in c)a+=k+"\x3d"+c[k],g++,gk.length||(h[k[0]]=k[1])}a=h}l=Object.keys(a).sort();var h="",b;for(b in l){var k=l[b],d=a[k];void 0!==d&&null!==d&&""!==d&&"SIGN"!==k.toUpperCase()&&"SIGN_TYPE"!==k.toUpperCase()&&(h=h+k+"\x3d"+d+"\x26")}if(0>=m.signClient.allowableClientTimeDifference&&!m.signClient.verifyUserAgent)return m.md5(h+m.signClient.clientSecret);b=m.md5(h+m.signClient.clientSecret).substring(0,
16);a=m.md5(m.navigator.userAgent+m.signClient.clientSecret).substring(16,24);g=m.md5(Math.floor(g/(1E3*m.signClient.allowableClientTimeDifference))+m.signClient.clientSecret).substring(24,32);return b+a+g}}})(window);
© 2015 - 2024 Weber Informatics LLC | Privacy Policy