/** * [js-md5]{@link https://github.com/emn178/js-md5} * * @namespace md5 * @version 0.8.3 * @author Chen, Yi-Cyuan [emn178@gmail.com] * @copyright Chen, Yi-Cyuan 2014-2023 * @license MIT */ !function(){"use strict";function c(t){var r=typeof t;if("string"==r)return[t,!0];if("object"==r&&null!==t){if(t.constructor===n)return[new Uint8Array(t),!1];if(p(t)||y(t))return[t,!1]}throw new Error(e)}var r,e="input is invalid type",t="object"==typeof window?window:{},i="undefined"!=typeof WorkerGlobalScope&&!!WorkerGlobalScope,h="object"==typeof process&&process.versions&&process.versions.node,i=(h?t=global:i&&(t=self),"object"==typeof module&&module.exports),s="function"==typeof define&&define.amd,n=ArrayBuffer,o="0123456789abcdef".split(""),a=[128,32768,8388608,-2147483648],f=["hex","array","digest","buffer","arrayBuffer","base64"],u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),p=Array.isArray,y=n.isView,p=p||function(t){return"[object Array]"===Object.prototype.toString.call(t)},d=(y=y||function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===n},[]);function l(t){t?(d[0]=d[16]=d[1]=d[2]=d[3]=d[4]=d[5]=d[6]=d[7]=d[8]=d[9]=d[10]=d[11]=d[12]=d[13]=d[14]=d[15]=0,this.blocks=d,this.buffer8=r):(t=new n(68),this.buffer8=new Uint8Array(t),this.blocks=new Uint32Array(t)),this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}function b(r){return function(t){return new l(!0).update(t)[r]()}}g=new n(68),r=new Uint8Array(g),d=new Uint32Array(g),l.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");for(var r,e,i=c(t),h=(t=i[0],i[1]),s=0,n=t.length,o=this.blocks,a=this.buffer8;s>>6:(r<55296||57344<=r?a[e++]=224|r>>>12:(r=65536+((1023&r)<<10|1023&t.charCodeAt(++s)),a[e++]=240|r>>>18,a[e++]=128|r>>>12&63),a[e++]=128|r>>>6&63),a[e++]=128|63&r);else for(e=this.start;s>>2]|=a[3&r],56<=r&&(this.hashed||this.hash(),t[0]=t[16],t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.bytes<<3,t[15]=this.hBytes<<3|this.bytes>>>29,this.hash())},l.prototype.hash=function(){var t,r,e,i,h,s=this.blocks,n=this.first?((n=((t=((t=s[0]-680876937)<<7|t>>>25)-271733879<<0)^(r=((r=(-271733879^(e=((e=(-1732584194^2004318071&t)+s[1]-117830708)<<12|e>>>20)+t<<0)&(-271733879^t))+s[2]-1126478375)<<17|r>>>15)+e<<0)&(e^t))+s[3]-1316259209)<<22|n>>>10)+r<<0:(t=this.h0,n=this.h1,r=this.h2,((n+=((t=((t+=((e=this.h3)^n&(r^e))+s[0]-680876936)<<7|t>>>25)+n<<0)^(r=((r+=(n^(e=((e+=(r^t&(n^r))+s[1]-389564586)<<12|e>>>20)+t<<0)&(t^n))+s[2]+606105819)<<17|r>>>15)+e<<0)&(e^t))+s[3]-1044525330)<<22|n>>>10)+r<<0),n=((n+=((t=((t+=(e^n&(r^e))+s[4]-176418897)<<7|t>>>25)+n<<0)^(r=((r+=(n^(e=((e+=(r^t&(n^r))+s[5]+1200080426)<<12|e>>>20)+t<<0)&(t^n))+s[6]-1473231341)<<17|r>>>15)+e<<0)&(e^t))+s[7]-45705983)<<22|n>>>10)+r<<0;n=((n+=((t=((t+=(e^n&(r^e))+s[8]+1770035416)<<7|t>>>25)+n<<0)^(r=((r+=(n^(e=((e+=(r^t&(n^r))+s[9]-1958414417)<<12|e>>>20)+t<<0)&(t^n))+s[10]-42063)<<17|r>>>15)+e<<0)&(e^t))+s[11]-1990404162)<<22|n>>>10)+r<<0,n=((n+=((t=((t+=(e^n&(r^e))+s[12]+1804603682)<<7|t>>>25)+n<<0)^(r=((r+=(n^(e=((e+=(r^t&(n^r))+s[13]-40341101)<<12|e>>>20)+t<<0)&(t^n))+s[14]-1502002290)<<17|r>>>15)+e<<0)&(e^t))+s[15]+1236535329)<<22|n>>>10)+r<<0,n=((n+=((e=((e+=(n^r&((t=((t+=(r^e&(n^r))+s[1]-165796510)<<5|t>>>27)+n<<0)^n))+s[6]-1069501632)<<9|e>>>23)+t<<0)^t&((r=((r+=(t^n&(e^t))+s[11]+643717713)<<14|r>>>18)+e<<0)^e))+s[0]-373897302)<<20|n>>>12)+r<<0,n=((n+=((e=((e+=(n^r&((t=((t+=(r^e&(n^r))+s[5]-701558691)<<5|t>>>27)+n<<0)^n))+s[10]+38016083)<<9|e>>>23)+t<<0)^t&((r=((r+=(t^n&(e^t))+s[15]-660478335)<<14|r>>>18)+e<<0)^e))+s[4]-405537848)<<20|n>>>12)+r<<0,n=((n+=((e=((e+=(n^r&((t=((t+=(r^e&(n^r))+s[9]+568446438)<<5|t>>>27)+n<<0)^n))+s[14]-1019803690)<<9|e>>>23)+t<<0)^t&((r=((r+=(t^n&(e^t))+s[3]-187363961)<<14|r>>>18)+e<<0)^e))+s[8]+1163531501)<<20|n>>>12)+r<<0,n=((n+=((e=((e+=(n^r&((t=((t+=(r^e&(n^r))+s[13]-1444681467)<<5|t>>>27)+n<<0)^n))+s[2]-51403784)<<9|e>>>23)+t<<0)^t&((r=((r+=(t^n&(e^t))+s[7]+1735328473)<<14|r>>>18)+e<<0)^e))+s[12]-1926607734)<<20|n>>>12)+r<<0,n=((n+=((h=(e=((e+=((i=n^r)^(t=((t+=(i^e)+s[5]-378558)<<4|t>>>28)+n<<0))+s[8]-2022574463)<<11|e>>>21)+t<<0)^t)^(r=((r+=(h^n)+s[11]+1839030562)<<16|r>>>16)+e<<0))+s[14]-35309556)<<23|n>>>9)+r<<0,n=((n+=((h=(e=((e+=((i=n^r)^(t=((t+=(i^e)+s[1]-1530992060)<<4|t>>>28)+n<<0))+s[4]+1272893353)<<11|e>>>21)+t<<0)^t)^(r=((r+=(h^n)+s[7]-155497632)<<16|r>>>16)+e<<0))+s[10]-1094730640)<<23|n>>>9)+r<<0,n=((n+=((h=(e=((e+=((i=n^r)^(t=((t+=(i^e)+s[13]+681279174)<<4|t>>>28)+n<<0))+s[0]-358537222)<<11|e>>>21)+t<<0)^t)^(r=((r+=(h^n)+s[3]-722521979)<<16|r>>>16)+e<<0))+s[6]+76029189)<<23|n>>>9)+r<<0,n=((n+=((h=(e=((e+=((i=n^r)^(t=((t+=(i^e)+s[9]-640364487)<<4|t>>>28)+n<<0))+s[12]-421815835)<<11|e>>>21)+t<<0)^t)^(r=((r+=(h^n)+s[15]+530742520)<<16|r>>>16)+e<<0))+s[2]-995338651)<<23|n>>>9)+r<<0,n=((n+=((e=((e+=(n^((t=((t+=(r^(n|~e))+s[0]-198630844)<<6|t>>>26)+n<<0)|~r))+s[7]+1126891415)<<10|e>>>22)+t<<0)^((r=((r+=(t^(e|~n))+s[14]-1416354905)<<15|r>>>17)+e<<0)|~t))+s[5]-57434055)<<21|n>>>11)+r<<0,n=((n+=((e=((e+=(n^((t=((t+=(r^(n|~e))+s[12]+1700485571)<<6|t>>>26)+n<<0)|~r))+s[3]-1894986606)<<10|e>>>22)+t<<0)^((r=((r+=(t^(e|~n))+s[10]-1051523)<<15|r>>>17)+e<<0)|~t))+s[1]-2054922799)<<21|n>>>11)+r<<0,n=((n+=((e=((e+=(n^((t=((t+=(r^(n|~e))+s[8]+1873313359)<<6|t>>>26)+n<<0)|~r))+s[15]-30611744)<<10|e>>>22)+t<<0)^((r=((r+=(t^(e|~n))+s[6]-1560198380)<<15|r>>>17)+e<<0)|~t))+s[13]+1309151649)<<21|n>>>11)+r<<0,n=((n+=((e=((e+=(n^((t=((t+=(r^(n|~e))+s[4]-145523070)<<6|t>>>26)+n<<0)|~r))+s[11]-1120210379)<<10|e>>>22)+t<<0)^((r=((r+=(t^(e|~n))+s[2]+718787259)<<15|r>>>17)+e<<0)|~t))+s[9]-343485551)<<21|n>>>11)+r<<0,this.first?(this.h0=t+1732584193<<0,this.h1=n-271733879<<0,this.h2=r-1732584194<<0,this.h3=e+271733878<<0,this.first=!1):(this.h0=this.h0+t<<0,this.h1=this.h1+n<<0,this.h2=this.h2+r<<0,this.h3=this.h3+e<<0)},l.prototype.toString=l.prototype.hex=function(){this.finalize();var t=this.h0,r=this.h1,e=this.h2,i=this.h3;return o[t>>>4&15]+o[15&t]+o[t>>>12&15]+o[t>>>8&15]+o[t>>>20&15]+o[t>>>16&15]+o[t>>>28&15]+o[t>>>24&15]+o[r>>>4&15]+o[15&r]+o[r>>>12&15]+o[r>>>8&15]+o[r>>>20&15]+o[r>>>16&15]+o[r>>>28&15]+o[r>>>24&15]+o[e>>>4&15]+o[15&e]+o[e>>>12&15]+o[e>>>8&15]+o[e>>>20&15]+o[e>>>16&15]+o[e>>>28&15]+o[e>>>24&15]+o[i>>>4&15]+o[15&i]+o[i>>>12&15]+o[i>>>8&15]+o[i>>>20&15]+o[i>>>16&15]+o[i>>>28&15]+o[i>>>24&15]},l.prototype.array=l.prototype.digest=function(){this.finalize();var t=this.h0,r=this.h1,e=this.h2,i=this.h3;return[255&t,t>>>8&255,t>>>16&255,t>>>24&255,255&r,r>>>8&255,r>>>16&255,r>>>24&255,255&e,e>>>8&255,e>>>16&255,e>>>24&255,255&i,i>>>8&255,i>>>16&255,i>>>24&255]},l.prototype.buffer=l.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(16),r=new Uint32Array(t);return r[0]=this.h0,r[1]=this.h1,r[2]=this.h2,r[3]=this.h3,t},l.prototype.base64=function(){for(var t,r,e,i="",h=this.array(),s=0;s<15;)t=h[s++],r=h[s++],e=h[s++],i+=u[t>>>2]+u[63&(t<<4|r>>>4)]+u[63&(r<<2|e>>>6)]+u[63&e];return t=h[s],i+(u[t>>>2]+u[t<<4&63]+"==")};var w,v,A,m,g=h?{crypto:require("crypto"),Buffer:require("buffer").Buffer,bufferFrom:Buffer.from||function(t){return new Buffer(t)}}:{},B=b("hex");h&&(w=B,{crypto:v,Buffer:A,bufferFrom:m}=g,B=function(t){if(null==t)throw new Error(e);return"string"==typeof t?v.createHash("md5").update(t,"utf8").digest("hex"):(t.constructor===n&&(t=new Uint8Array(t)),p(t)||y(t)||t.constructor===A?v.createHash("md5").update(m(t)).digest("hex"):w(t))}),B.create=function(){return new l},B.update=function(t){return B.create().update(t)};for(var z=0;z>>6:(i<55296||57344<=i?h[n++]=224|i>>>12:(i=65536+((1023&i)<<10|1023&t.charCodeAt(++o)),h[n++]=240|i>>>18,h[n++]=128|i>>>12&63),h[n++]=128|i>>>6&63),h[n++]=128|63&i);t=h}64