js-md5 0.10.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Change Log
2
2
 
3
+ ## v0.11.0 / 2026-11-18
4
+ ### Fixed
5
+ - Incorrect hash for `DataView` input.
6
+ - Throws `ArrayBuffer is not defined` in browsers without `ArrayBuffer`.
7
+
8
+ ### Changed
9
+ - Multi-byte typed arrays such as `Uint16Array`, `Uint32Array` and `Float32Array` are now hashed by their underlying bytes, the same as Node.js `crypto` and Web Crypto. Previously each element was treated as one byte.
10
+
3
11
  ## v0.10.0 / 2026-11-16
4
12
  ### Fixed
5
13
  - Unpaired UTF-16 surrogates produce wrong digests and consume the next code unit in the JS path. Unpaired surrogates are now encoded as U+FFFD, matching `TextEncoder` and Node.js `crypto`. #57
package/README.md CHANGED
@@ -1,7 +1,8 @@
1
1
  # js-md5
2
2
  [![CI](https://github.com/emn178/js-md5/actions/workflows/ci.yml/badge.svg)](https://github.com/emn178/js-md5/actions/workflows/ci.yml)
3
- [![Coverage Status](https://coveralls.io/repos/emn178/js-md5/badge.svg?branch=master)](https://coveralls.io/r/emn178/js-md5?branch=master)
4
- [![NPM](https://nodei.co/npm/js-md5.png?stars&downloads)](https://nodei.co/npm/js-md5/)
3
+ [![Coverage Status](https://coveralls.io/repos/emn178/js-md5/badge.svg?branch=master)](https://coveralls.io/r/emn178/js-md5?branch=master)
4
+ [![NPM](https://img.shields.io/npm/v/js-md5)](https://www.npmjs.com/package/js-md5)
5
+ [![CDNJS](https://img.shields.io/jsdelivr/npm/hm/js-md5)](https://www.jsdelivr.com/package/npm/js-md5)
5
6
 
6
7
  A simple and fast MD5 hash function for JavaScript supports UTF-8 encoding.
7
8
 
@@ -39,7 +40,7 @@ APIs, including `hex`, `array`, `digest`, and `arrayBuffer` output.
39
40
  - [Async Benchmark (measurethat.net)](https://measurethat.net/Benchmarks/Show/29176/0/md5-performance-comparison-very-long-text-v6)
40
41
  - [Async Benchmark (jsperf.app)](https://jsperf.app/jonuhi/9)
41
42
 
42
- * js-md5 is the fastest synchronous MD5 library, but slower than Hash-WASM
43
+ * js-md5 is the fastest for short strings in these benchmarks. For large data, WebAssembly-based libraries (e.g. Hash-WASM) are faster.
43
44
 
44
45
  - [File Benchmark - Issue #19](https://github.com/emn178/js-md5/issues/19)
45
46
  - [File Benchmark - Issue #42](https://github.com/emn178/js-md5/issues/42)
@@ -102,7 +103,7 @@ md5('The quick brown fox jumps over the lazy dog.'); // e4d909c290d0fb1ca068ffad
102
103
  // It also supports UTF-8 encoding
103
104
  md5('中文'); // a7bac2239fcdcb3a067903d8077c4a07
104
105
 
105
- // It also supports byte `Array`, `Uint8Array`, `ArrayBuffer`
106
+ // It also supports byte `Array`, `Uint8Array`, `ArrayBuffer` and other `ArrayBuffer` views (their underlying bytes are hashed)
106
107
  md5([]); // d41d8cd98f00b204e9800998ecf8427e
107
108
  md5(new Uint8Array([])); // d41d8cd98f00b204e9800998ecf8427e
108
109
 
package/build/md5-lite.js CHANGED
@@ -2,7 +2,7 @@
2
2
  * [js-md5]{@link https://github.com/emn178/js-md5}
3
3
  *
4
4
  * @namespace md5
5
- * @version 0.10.0
5
+ * @version 0.11.0
6
6
  * @author Chen, Yi-Cyuan [emn178@gmail.com]
7
7
  * @copyright Chen, Yi-Cyuan 2014-2026
8
8
  * @license MIT
@@ -39,7 +39,7 @@
39
39
 
40
40
  var isArray = Array.isArray;
41
41
 
42
- var isView = ArrayBuffer.isView;
42
+ var isView = ArrayBuffer.isView ;
43
43
 
44
44
  // [message: string, isString: bool]
45
45
  var formatMessage = function (message) {
@@ -53,10 +53,14 @@
53
53
  if (message.constructor === ArrayBuffer) {
54
54
  return [new Uint8Array(message), false];
55
55
  }
56
- if (!isArray(message) && !isView(message)) {
56
+ if (isArray(message)) {
57
+ return [message, false];
58
+ }
59
+ if (!isView(message)) {
57
60
  throw new Error(INPUT_ERROR);
58
61
  }
59
- return [message, false];
62
+ // read the underlying bytes of any view (DataView, Uint16Array, ...)
63
+ return [new Uint8Array(message.buffer, message.byteOffset, message.byteLength), false];
60
64
  };
61
65
 
62
66
  /**
@@ -172,6 +176,8 @@
172
176
  throw new Error(INPUT_ERROR);
173
177
  } else if (message.constructor === ArrayBuffer) {
174
178
  message = new Uint8Array(message);
179
+ } else if (isView(message) && message.constructor !== Buffer) {
180
+ message = new Uint8Array(message.buffer, message.byteOffset, message.byteLength);
175
181
  }
176
182
  }
177
183
  if (isArray(message) || isView(message) ||
@@ -2,9 +2,9 @@
2
2
  * [js-md5]{@link https://github.com/emn178/js-md5}
3
3
  *
4
4
  * @namespace md5
5
- * @version 0.10.0
5
+ * @version 0.11.0
6
6
  * @author Chen, Yi-Cyuan [emn178@gmail.com]
7
7
  * @copyright Chen, Yi-Cyuan 2014-2026
8
8
  * @license MIT
9
9
  */
10
- !function(){var t="input is invalid type",r="object"==typeof window,e=r?window:{};e.JS_MD5_NO_WINDOW&&(r=!1);var i="undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope,s=!e.JS_MD5_NO_NODE_JS&&!r&&"object"==typeof process&&process.versions&&process.versions.node;s?e=global:i&&(e=self);var h,n=!e.JS_MD5_NO_COMMON_JS&&"object"==typeof module&&module.exports,o="function"==typeof define&&define.amd,a="0123456789abcdef".split(""),f=[128,32768,8388608,-2147483648],u=["hex","array","digest","arrayBuffer"],y=[],c=new ArrayBuffer(68);h=new Uint8Array(c),y=new Uint32Array(c);var d=Array.isArray,p=ArrayBuffer.isView,l=function(t){return function(r){return new w(!0).update(r)[t]()}},b=function(r){var e=require("crypto"),i=require("buffer").Buffer,s=i.from;return function(h){if("string"==typeof h)return e.createHash("md5").update(h,"utf8").digest("hex");if(null==h)throw new Error(t);return h.constructor===ArrayBuffer&&(h=new Uint8Array(h)),d(h)||p(h)||h.constructor===i?e.createHash("md5").update(s(h)).digest("hex"):r(h)}};function w(t){if(t)y[0]=y[16]=y[1]=y[2]=y[3]=y[4]=y[5]=y[6]=y[7]=y[8]=y[9]=y[10]=y[11]=y[12]=y[13]=y[14]=y[15]=0,this.blocks=y,this.buffer8=h;else{var r=new ArrayBuffer(68);this.buffer8=new Uint8Array(r),this.blocks=new Uint32Array(r)}this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}w.prototype.update=function(r){if(this.finalized)throw new Error("finalize already called");var e=function(r){var e=typeof r;if("string"===e)return[r,!0];if("object"!==e||null===r)throw new Error(t);if(r.constructor===ArrayBuffer)return[new Uint8Array(r),!1];if(!d(r)&&!p(r))throw new Error(t);return[r,!1]}(r);r=e[0];for(var i,s,h,n=e[1],o=0,a=r.length,f=this.blocks,u=this.buffer8;o<a;){if(this.hashed&&(this.hashed=!1,f[0]=f[16],f[16]=f[1]=f[2]=f[3]=f[4]=f[5]=f[6]=f[7]=f[8]=f[9]=f[10]=f[11]=f[12]=f[13]=f[14]=f[15]=0),n)for(h=this.start;o<a&&h<64;++o)(i=r.charCodeAt(o))<128?u[h++]=i:i<2048?(u[h++]=192|i>>>6,u[h++]=128|63&i):i<55296||i>=57344?(u[h++]=224|i>>>12,u[h++]=128|i>>>6&63,u[h++]=128|63&i):i<56320&&(s=r.charCodeAt(o+1))>=56320&&s<57344?(++o,i=65536+((1023&i)<<10|1023&s),u[h++]=240|i>>>18,u[h++]=128|i>>>12&63,u[h++]=128|i>>>6&63,u[h++]=128|63&i):(u[h++]=239,u[h++]=191,u[h++]=189);else for(h=this.start;o<a&&h<64;++o)u[h++]=r[o];this.lastByteIndex=h,this.bytes+=h-this.start,h>=64?(this.start=h-64,this.hash(),this.hashed=!0):this.start=h}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this},w.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,r=this.lastByteIndex;t[r>>>2]|=f[3&r],r>=56&&(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()}},w.prototype.hash=function(){var t,r,e,i,s,h,n=this.blocks;this.first?r=((r=((t=((t=n[0]-680876937)<<7|t>>>25)-271733879|0)^(e=((e=(-271733879^(i=((i=(-1732584194^2004318071&t)+n[1]-117830708)<<12|i>>>20)+t|0)&(-271733879^t))+n[2]-1126478375)<<17|e>>>15)+i|0)&(i^t))+n[3]-1316259209)<<22|r>>>10)+e|0:(t=this.h0,r=this.h1,e=this.h2,r=((r+=((t=((t+=((i=this.h3)^r&(e^i))+n[0]-680876936)<<7|t>>>25)+r|0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+n[1]-389564586)<<12|i>>>20)+t|0)&(t^r))+n[2]+606105819)<<17|e>>>15)+i|0)&(i^t))+n[3]-1044525330)<<22|r>>>10)+e|0),r=((r+=((t=((t+=(i^r&(e^i))+n[4]-176418897)<<7|t>>>25)+r|0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+n[5]+1200080426)<<12|i>>>20)+t|0)&(t^r))+n[6]-1473231341)<<17|e>>>15)+i|0)&(i^t))+n[7]-45705983)<<22|r>>>10)+e|0,r=((r+=((t=((t+=(i^r&(e^i))+n[8]+1770035416)<<7|t>>>25)+r|0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+n[9]-1958414417)<<12|i>>>20)+t|0)&(t^r))+n[10]-42063)<<17|e>>>15)+i|0)&(i^t))+n[11]-1990404162)<<22|r>>>10)+e|0,r=((r+=((t=((t+=(i^r&(e^i))+n[12]+1804603682)<<7|t>>>25)+r|0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+n[13]-40341101)<<12|i>>>20)+t|0)&(t^r))+n[14]-1502002290)<<17|e>>>15)+i|0)&(i^t))+n[15]+1236535329)<<22|r>>>10)+e|0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+n[1]-165796510)<<5|t>>>27)+r|0)^r))+n[6]-1069501632)<<9|i>>>23)+t|0)^t&((e=((e+=(t^r&(i^t))+n[11]+643717713)<<14|e>>>18)+i|0)^i))+n[0]-373897302)<<20|r>>>12)+e|0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+n[5]-701558691)<<5|t>>>27)+r|0)^r))+n[10]+38016083)<<9|i>>>23)+t|0)^t&((e=((e+=(t^r&(i^t))+n[15]-660478335)<<14|e>>>18)+i|0)^i))+n[4]-405537848)<<20|r>>>12)+e|0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+n[9]+568446438)<<5|t>>>27)+r|0)^r))+n[14]-1019803690)<<9|i>>>23)+t|0)^t&((e=((e+=(t^r&(i^t))+n[3]-187363961)<<14|e>>>18)+i|0)^i))+n[8]+1163531501)<<20|r>>>12)+e|0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+n[13]-1444681467)<<5|t>>>27)+r|0)^r))+n[2]-51403784)<<9|i>>>23)+t|0)^t&((e=((e+=(t^r&(i^t))+n[7]+1735328473)<<14|e>>>18)+i|0)^i))+n[12]-1926607734)<<20|r>>>12)+e|0,r=((r+=((h=(i=((i+=((s=r^e)^(t=((t+=(s^i)+n[5]-378558)<<4|t>>>28)+r|0))+n[8]-2022574463)<<11|i>>>21)+t|0)^t)^(e=((e+=(h^r)+n[11]+1839030562)<<16|e>>>16)+i|0))+n[14]-35309556)<<23|r>>>9)+e|0,r=((r+=((h=(i=((i+=((s=r^e)^(t=((t+=(s^i)+n[1]-1530992060)<<4|t>>>28)+r|0))+n[4]+1272893353)<<11|i>>>21)+t|0)^t)^(e=((e+=(h^r)+n[7]-155497632)<<16|e>>>16)+i|0))+n[10]-1094730640)<<23|r>>>9)+e|0,r=((r+=((h=(i=((i+=((s=r^e)^(t=((t+=(s^i)+n[13]+681279174)<<4|t>>>28)+r|0))+n[0]-358537222)<<11|i>>>21)+t|0)^t)^(e=((e+=(h^r)+n[3]-722521979)<<16|e>>>16)+i|0))+n[6]+76029189)<<23|r>>>9)+e|0,r=((r+=((h=(i=((i+=((s=r^e)^(t=((t+=(s^i)+n[9]-640364487)<<4|t>>>28)+r|0))+n[12]-421815835)<<11|i>>>21)+t|0)^t)^(e=((e+=(h^r)+n[15]+530742520)<<16|e>>>16)+i|0))+n[2]-995338651)<<23|r>>>9)+e|0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+n[0]-198630844)<<6|t>>>26)+r|0)|~e))+n[7]+1126891415)<<10|i>>>22)+t|0)^((e=((e+=(t^(i|~r))+n[14]-1416354905)<<15|e>>>17)+i|0)|~t))+n[5]-57434055)<<21|r>>>11)+e|0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+n[12]+1700485571)<<6|t>>>26)+r|0)|~e))+n[3]-1894986606)<<10|i>>>22)+t|0)^((e=((e+=(t^(i|~r))+n[10]-1051523)<<15|e>>>17)+i|0)|~t))+n[1]-2054922799)<<21|r>>>11)+e|0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+n[8]+1873313359)<<6|t>>>26)+r|0)|~e))+n[15]-30611744)<<10|i>>>22)+t|0)^((e=((e+=(t^(i|~r))+n[6]-1560198380)<<15|e>>>17)+i|0)|~t))+n[13]+1309151649)<<21|r>>>11)+e|0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+n[4]-145523070)<<6|t>>>26)+r|0)|~e))+n[11]-1120210379)<<10|i>>>22)+t|0)^((e=((e+=(t^(i|~r))+n[2]+718787259)<<15|e>>>17)+i|0)|~t))+n[9]-343485551)<<21|r>>>11)+e|0,this.first?(this.h0=t+1732584193|0,this.h1=r-271733879|0,this.h2=e-1732584194|0,this.h3=i+271733878|0,this.first=!1):(this.h0=this.h0+t|0,this.h1=this.h1+r|0,this.h2=this.h2+e|0,this.h3=this.h3+i|0)},w.prototype.hex=function(){this.finalize();var t=this.h0,r=this.h1,e=this.h2,i=this.h3;return a[t>>>4&15]+a[15&t]+a[t>>>12&15]+a[t>>>8&15]+a[t>>>20&15]+a[t>>>16&15]+a[t>>>28&15]+a[t>>>24&15]+a[r>>>4&15]+a[15&r]+a[r>>>12&15]+a[r>>>8&15]+a[r>>>20&15]+a[r>>>16&15]+a[r>>>28&15]+a[r>>>24&15]+a[e>>>4&15]+a[15&e]+a[e>>>12&15]+a[e>>>8&15]+a[e>>>20&15]+a[e>>>16&15]+a[e>>>28&15]+a[e>>>24&15]+a[i>>>4&15]+a[15&i]+a[i>>>12&15]+a[i>>>8&15]+a[i>>>20&15]+a[i>>>16&15]+a[i>>>28&15]+a[i>>>24&15]},w.prototype.toString=w.prototype.hex,w.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]},w.prototype.array=w.prototype.digest,w.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};var v=function(){var t=l("hex");s&&(t=b(t)),t.create=function(){return new w},t.update=function(r){return t.create().update(r)};for(var r=0;r<u.length;++r){var e=u[r];t[e]=l(e)}return t}();v.md5=v,n?module.exports=v:(e.md5=v,o&&define(function(){return v}))}();
10
+ !function(){var t="input is invalid type",r="object"==typeof window,e=r?window:{};e.JS_MD5_NO_WINDOW&&(r=!1);var i="undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope,s=!e.JS_MD5_NO_NODE_JS&&!r&&"object"==typeof process&&process.versions&&process.versions.node;s?e=global:i&&(e=self);var h,n=!e.JS_MD5_NO_COMMON_JS&&"object"==typeof module&&module.exports,o="function"==typeof define&&define.amd,f="0123456789abcdef".split(""),a=[128,32768,8388608,-2147483648],u=["hex","array","digest","arrayBuffer"],y=[],c=new ArrayBuffer(68);h=new Uint8Array(c),y=new Uint32Array(c);var d=Array.isArray,p=ArrayBuffer.isView,l=function(t){return function(r){return new w(!0).update(r)[t]()}},b=function(r){var e=require("crypto"),i=require("buffer").Buffer,s=i.from;return function(h){if("string"==typeof h)return e.createHash("md5").update(h,"utf8").digest("hex");if(null==h)throw new Error(t);return h.constructor===ArrayBuffer?h=new Uint8Array(h):p(h)&&h.constructor!==i&&(h=new Uint8Array(h.buffer,h.byteOffset,h.byteLength)),d(h)||p(h)||h.constructor===i?e.createHash("md5").update(s(h)).digest("hex"):r(h)}};function w(t){if(t)y[0]=y[16]=y[1]=y[2]=y[3]=y[4]=y[5]=y[6]=y[7]=y[8]=y[9]=y[10]=y[11]=y[12]=y[13]=y[14]=y[15]=0,this.blocks=y,this.buffer8=h;else{var r=new ArrayBuffer(68);this.buffer8=new Uint8Array(r),this.blocks=new Uint32Array(r)}this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}w.prototype.update=function(r){if(this.finalized)throw new Error("finalize already called");var e=function(r){var e=typeof r;if("string"===e)return[r,!0];if("object"!==e||null===r)throw new Error(t);if(r.constructor===ArrayBuffer)return[new Uint8Array(r),!1];if(d(r))return[r,!1];if(!p(r))throw new Error(t);return[new Uint8Array(r.buffer,r.byteOffset,r.byteLength),!1]}(r);r=e[0];for(var i,s,h,n=e[1],o=0,f=r.length,a=this.blocks,u=this.buffer8;o<f;){if(this.hashed&&(this.hashed=!1,a[0]=a[16],a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),n)for(h=this.start;o<f&&h<64;++o)(i=r.charCodeAt(o))<128?u[h++]=i:i<2048?(u[h++]=192|i>>>6,u[h++]=128|63&i):i<55296||i>=57344?(u[h++]=224|i>>>12,u[h++]=128|i>>>6&63,u[h++]=128|63&i):i<56320&&(s=r.charCodeAt(o+1))>=56320&&s<57344?(++o,i=65536+((1023&i)<<10|1023&s),u[h++]=240|i>>>18,u[h++]=128|i>>>12&63,u[h++]=128|i>>>6&63,u[h++]=128|63&i):(u[h++]=239,u[h++]=191,u[h++]=189);else for(h=this.start;o<f&&h<64;++o)u[h++]=r[o];this.lastByteIndex=h,this.bytes+=h-this.start,h>=64?(this.start=h-64,this.hash(),this.hashed=!0):this.start=h}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this},w.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,r=this.lastByteIndex;t[r>>>2]|=a[3&r],r>=56&&(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()}},w.prototype.hash=function(){var t,r,e,i,s,h,n=this.blocks;this.first?r=((r=((t=((t=n[0]-680876937)<<7|t>>>25)-271733879|0)^(e=((e=(-271733879^(i=((i=(-1732584194^2004318071&t)+n[1]-117830708)<<12|i>>>20)+t|0)&(-271733879^t))+n[2]-1126478375)<<17|e>>>15)+i|0)&(i^t))+n[3]-1316259209)<<22|r>>>10)+e|0:(t=this.h0,r=this.h1,e=this.h2,r=((r+=((t=((t+=((i=this.h3)^r&(e^i))+n[0]-680876936)<<7|t>>>25)+r|0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+n[1]-389564586)<<12|i>>>20)+t|0)&(t^r))+n[2]+606105819)<<17|e>>>15)+i|0)&(i^t))+n[3]-1044525330)<<22|r>>>10)+e|0),r=((r+=((t=((t+=(i^r&(e^i))+n[4]-176418897)<<7|t>>>25)+r|0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+n[5]+1200080426)<<12|i>>>20)+t|0)&(t^r))+n[6]-1473231341)<<17|e>>>15)+i|0)&(i^t))+n[7]-45705983)<<22|r>>>10)+e|0,r=((r+=((t=((t+=(i^r&(e^i))+n[8]+1770035416)<<7|t>>>25)+r|0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+n[9]-1958414417)<<12|i>>>20)+t|0)&(t^r))+n[10]-42063)<<17|e>>>15)+i|0)&(i^t))+n[11]-1990404162)<<22|r>>>10)+e|0,r=((r+=((t=((t+=(i^r&(e^i))+n[12]+1804603682)<<7|t>>>25)+r|0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+n[13]-40341101)<<12|i>>>20)+t|0)&(t^r))+n[14]-1502002290)<<17|e>>>15)+i|0)&(i^t))+n[15]+1236535329)<<22|r>>>10)+e|0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+n[1]-165796510)<<5|t>>>27)+r|0)^r))+n[6]-1069501632)<<9|i>>>23)+t|0)^t&((e=((e+=(t^r&(i^t))+n[11]+643717713)<<14|e>>>18)+i|0)^i))+n[0]-373897302)<<20|r>>>12)+e|0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+n[5]-701558691)<<5|t>>>27)+r|0)^r))+n[10]+38016083)<<9|i>>>23)+t|0)^t&((e=((e+=(t^r&(i^t))+n[15]-660478335)<<14|e>>>18)+i|0)^i))+n[4]-405537848)<<20|r>>>12)+e|0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+n[9]+568446438)<<5|t>>>27)+r|0)^r))+n[14]-1019803690)<<9|i>>>23)+t|0)^t&((e=((e+=(t^r&(i^t))+n[3]-187363961)<<14|e>>>18)+i|0)^i))+n[8]+1163531501)<<20|r>>>12)+e|0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+n[13]-1444681467)<<5|t>>>27)+r|0)^r))+n[2]-51403784)<<9|i>>>23)+t|0)^t&((e=((e+=(t^r&(i^t))+n[7]+1735328473)<<14|e>>>18)+i|0)^i))+n[12]-1926607734)<<20|r>>>12)+e|0,r=((r+=((h=(i=((i+=((s=r^e)^(t=((t+=(s^i)+n[5]-378558)<<4|t>>>28)+r|0))+n[8]-2022574463)<<11|i>>>21)+t|0)^t)^(e=((e+=(h^r)+n[11]+1839030562)<<16|e>>>16)+i|0))+n[14]-35309556)<<23|r>>>9)+e|0,r=((r+=((h=(i=((i+=((s=r^e)^(t=((t+=(s^i)+n[1]-1530992060)<<4|t>>>28)+r|0))+n[4]+1272893353)<<11|i>>>21)+t|0)^t)^(e=((e+=(h^r)+n[7]-155497632)<<16|e>>>16)+i|0))+n[10]-1094730640)<<23|r>>>9)+e|0,r=((r+=((h=(i=((i+=((s=r^e)^(t=((t+=(s^i)+n[13]+681279174)<<4|t>>>28)+r|0))+n[0]-358537222)<<11|i>>>21)+t|0)^t)^(e=((e+=(h^r)+n[3]-722521979)<<16|e>>>16)+i|0))+n[6]+76029189)<<23|r>>>9)+e|0,r=((r+=((h=(i=((i+=((s=r^e)^(t=((t+=(s^i)+n[9]-640364487)<<4|t>>>28)+r|0))+n[12]-421815835)<<11|i>>>21)+t|0)^t)^(e=((e+=(h^r)+n[15]+530742520)<<16|e>>>16)+i|0))+n[2]-995338651)<<23|r>>>9)+e|0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+n[0]-198630844)<<6|t>>>26)+r|0)|~e))+n[7]+1126891415)<<10|i>>>22)+t|0)^((e=((e+=(t^(i|~r))+n[14]-1416354905)<<15|e>>>17)+i|0)|~t))+n[5]-57434055)<<21|r>>>11)+e|0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+n[12]+1700485571)<<6|t>>>26)+r|0)|~e))+n[3]-1894986606)<<10|i>>>22)+t|0)^((e=((e+=(t^(i|~r))+n[10]-1051523)<<15|e>>>17)+i|0)|~t))+n[1]-2054922799)<<21|r>>>11)+e|0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+n[8]+1873313359)<<6|t>>>26)+r|0)|~e))+n[15]-30611744)<<10|i>>>22)+t|0)^((e=((e+=(t^(i|~r))+n[6]-1560198380)<<15|e>>>17)+i|0)|~t))+n[13]+1309151649)<<21|r>>>11)+e|0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+n[4]-145523070)<<6|t>>>26)+r|0)|~e))+n[11]-1120210379)<<10|i>>>22)+t|0)^((e=((e+=(t^(i|~r))+n[2]+718787259)<<15|e>>>17)+i|0)|~t))+n[9]-343485551)<<21|r>>>11)+e|0,this.first?(this.h0=t+1732584193|0,this.h1=r-271733879|0,this.h2=e-1732584194|0,this.h3=i+271733878|0,this.first=!1):(this.h0=this.h0+t|0,this.h1=this.h1+r|0,this.h2=this.h2+e|0,this.h3=this.h3+i|0)},w.prototype.hex=function(){this.finalize();var t=this.h0,r=this.h1,e=this.h2,i=this.h3;return f[t>>>4&15]+f[15&t]+f[t>>>12&15]+f[t>>>8&15]+f[t>>>20&15]+f[t>>>16&15]+f[t>>>28&15]+f[t>>>24&15]+f[r>>>4&15]+f[15&r]+f[r>>>12&15]+f[r>>>8&15]+f[r>>>20&15]+f[r>>>16&15]+f[r>>>28&15]+f[r>>>24&15]+f[e>>>4&15]+f[15&e]+f[e>>>12&15]+f[e>>>8&15]+f[e>>>20&15]+f[e>>>16&15]+f[e>>>28&15]+f[e>>>24&15]+f[i>>>4&15]+f[15&i]+f[i>>>12&15]+f[i>>>8&15]+f[i>>>20&15]+f[i>>>16&15]+f[i>>>28&15]+f[i>>>24&15]},w.prototype.toString=w.prototype.hex,w.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]},w.prototype.array=w.prototype.digest,w.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};var v=function(){var t=l("hex");s&&(t=b(t)),t.create=function(){return new w},t.update=function(r){return t.create().update(r)};for(var r=0;r<u.length;++r){var e=u[r];t[e]=l(e)}return t}();v.md5=v,n?module.exports=v:(e.md5=v,o&&define(function(){return v}))}();
@@ -3,8 +3,8 @@ function t(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"de
3
3
  * [js-md5]{@link https://github.com/emn178/js-md5}
4
4
  *
5
5
  * @namespace md5
6
- * @version 0.10.0
6
+ * @version 0.11.0
7
7
  * @author Chen, Yi-Cyuan [emn178@gmail.com]
8
8
  * @copyright Chen, Yi-Cyuan 2014-2026
9
9
  * @license MIT
10
- */i=r,function(){var t="input is invalid type",r="object"==typeof window,h=r?window:{};h.JS_MD5_NO_WINDOW&&(r=!1),"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope&&(h=self);var s,e=!h.JS_MD5_NO_COMMON_JS&&i.exports,n="0123456789abcdef".split(""),a=[128,32768,8388608,-2147483648],o=["hex","array","digest","arrayBuffer"],f=[],u=new ArrayBuffer(68);s=new Uint8Array(u),f=new Uint32Array(u);var y=Array.isArray,p=ArrayBuffer.isView,l=function(t){return function(i){return new d(!0).update(i)[t]()}};function d(t){if(t)f[0]=f[16]=f[1]=f[2]=f[3]=f[4]=f[5]=f[6]=f[7]=f[8]=f[9]=f[10]=f[11]=f[12]=f[13]=f[14]=f[15]=0,this.blocks=f,this.buffer8=s;else{var i=new ArrayBuffer(68);this.buffer8=new Uint8Array(i),this.blocks=new Uint32Array(i)}this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}d.prototype.update=function(i){if(this.finalized)throw new Error("finalize already called");var r=function(i){var r=typeof i;if("string"===r)return[i,!0];if("object"!==r||null===i)throw new Error(t);if(i.constructor===ArrayBuffer)return[new Uint8Array(i),!1];if(!y(i)&&!p(i))throw new Error(t);return[i,!1]}(i);i=r[0];for(var h,s,e,n=r[1],a=0,o=i.length,f=this.blocks,u=this.buffer8;a<o;){if(this.hashed&&(this.hashed=!1,f[0]=f[16],f[16]=f[1]=f[2]=f[3]=f[4]=f[5]=f[6]=f[7]=f[8]=f[9]=f[10]=f[11]=f[12]=f[13]=f[14]=f[15]=0),n)for(e=this.start;a<o&&e<64;++a)(h=i.charCodeAt(a))<128?u[e++]=h:h<2048?(u[e++]=192|h>>>6,u[e++]=128|63&h):h<55296||h>=57344?(u[e++]=224|h>>>12,u[e++]=128|h>>>6&63,u[e++]=128|63&h):h<56320&&(s=i.charCodeAt(a+1))>=56320&&s<57344?(++a,h=65536+((1023&h)<<10|1023&s),u[e++]=240|h>>>18,u[e++]=128|h>>>12&63,u[e++]=128|h>>>6&63,u[e++]=128|63&h):(u[e++]=239,u[e++]=191,u[e++]=189);else for(e=this.start;a<o&&e<64;++a)u[e++]=i[a];this.lastByteIndex=e,this.bytes+=e-this.start,e>=64?(this.start=e-64,this.hash(),this.hashed=!0):this.start=e}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this},d.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,i=this.lastByteIndex;t[i>>>2]|=a[3&i],i>=56&&(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()}},d.prototype.hash=function(){var t,i,r,h,s,e,n=this.blocks;this.first?i=((i=((t=((t=n[0]-680876937)<<7|t>>>25)-271733879|0)^(r=((r=(-271733879^(h=((h=(-1732584194^2004318071&t)+n[1]-117830708)<<12|h>>>20)+t|0)&(-271733879^t))+n[2]-1126478375)<<17|r>>>15)+h|0)&(h^t))+n[3]-1316259209)<<22|i>>>10)+r|0:(t=this.h0,i=this.h1,r=this.h2,i=((i+=((t=((t+=((h=this.h3)^i&(r^h))+n[0]-680876936)<<7|t>>>25)+i|0)^(r=((r+=(i^(h=((h+=(r^t&(i^r))+n[1]-389564586)<<12|h>>>20)+t|0)&(t^i))+n[2]+606105819)<<17|r>>>15)+h|0)&(h^t))+n[3]-1044525330)<<22|i>>>10)+r|0),i=((i+=((t=((t+=(h^i&(r^h))+n[4]-176418897)<<7|t>>>25)+i|0)^(r=((r+=(i^(h=((h+=(r^t&(i^r))+n[5]+1200080426)<<12|h>>>20)+t|0)&(t^i))+n[6]-1473231341)<<17|r>>>15)+h|0)&(h^t))+n[7]-45705983)<<22|i>>>10)+r|0,i=((i+=((t=((t+=(h^i&(r^h))+n[8]+1770035416)<<7|t>>>25)+i|0)^(r=((r+=(i^(h=((h+=(r^t&(i^r))+n[9]-1958414417)<<12|h>>>20)+t|0)&(t^i))+n[10]-42063)<<17|r>>>15)+h|0)&(h^t))+n[11]-1990404162)<<22|i>>>10)+r|0,i=((i+=((t=((t+=(h^i&(r^h))+n[12]+1804603682)<<7|t>>>25)+i|0)^(r=((r+=(i^(h=((h+=(r^t&(i^r))+n[13]-40341101)<<12|h>>>20)+t|0)&(t^i))+n[14]-1502002290)<<17|r>>>15)+h|0)&(h^t))+n[15]+1236535329)<<22|i>>>10)+r|0,i=((i+=((h=((h+=(i^r&((t=((t+=(r^h&(i^r))+n[1]-165796510)<<5|t>>>27)+i|0)^i))+n[6]-1069501632)<<9|h>>>23)+t|0)^t&((r=((r+=(t^i&(h^t))+n[11]+643717713)<<14|r>>>18)+h|0)^h))+n[0]-373897302)<<20|i>>>12)+r|0,i=((i+=((h=((h+=(i^r&((t=((t+=(r^h&(i^r))+n[5]-701558691)<<5|t>>>27)+i|0)^i))+n[10]+38016083)<<9|h>>>23)+t|0)^t&((r=((r+=(t^i&(h^t))+n[15]-660478335)<<14|r>>>18)+h|0)^h))+n[4]-405537848)<<20|i>>>12)+r|0,i=((i+=((h=((h+=(i^r&((t=((t+=(r^h&(i^r))+n[9]+568446438)<<5|t>>>27)+i|0)^i))+n[14]-1019803690)<<9|h>>>23)+t|0)^t&((r=((r+=(t^i&(h^t))+n[3]-187363961)<<14|r>>>18)+h|0)^h))+n[8]+1163531501)<<20|i>>>12)+r|0,i=((i+=((h=((h+=(i^r&((t=((t+=(r^h&(i^r))+n[13]-1444681467)<<5|t>>>27)+i|0)^i))+n[2]-51403784)<<9|h>>>23)+t|0)^t&((r=((r+=(t^i&(h^t))+n[7]+1735328473)<<14|r>>>18)+h|0)^h))+n[12]-1926607734)<<20|i>>>12)+r|0,i=((i+=((e=(h=((h+=((s=i^r)^(t=((t+=(s^h)+n[5]-378558)<<4|t>>>28)+i|0))+n[8]-2022574463)<<11|h>>>21)+t|0)^t)^(r=((r+=(e^i)+n[11]+1839030562)<<16|r>>>16)+h|0))+n[14]-35309556)<<23|i>>>9)+r|0,i=((i+=((e=(h=((h+=((s=i^r)^(t=((t+=(s^h)+n[1]-1530992060)<<4|t>>>28)+i|0))+n[4]+1272893353)<<11|h>>>21)+t|0)^t)^(r=((r+=(e^i)+n[7]-155497632)<<16|r>>>16)+h|0))+n[10]-1094730640)<<23|i>>>9)+r|0,i=((i+=((e=(h=((h+=((s=i^r)^(t=((t+=(s^h)+n[13]+681279174)<<4|t>>>28)+i|0))+n[0]-358537222)<<11|h>>>21)+t|0)^t)^(r=((r+=(e^i)+n[3]-722521979)<<16|r>>>16)+h|0))+n[6]+76029189)<<23|i>>>9)+r|0,i=((i+=((e=(h=((h+=((s=i^r)^(t=((t+=(s^h)+n[9]-640364487)<<4|t>>>28)+i|0))+n[12]-421815835)<<11|h>>>21)+t|0)^t)^(r=((r+=(e^i)+n[15]+530742520)<<16|r>>>16)+h|0))+n[2]-995338651)<<23|i>>>9)+r|0,i=((i+=((h=((h+=(i^((t=((t+=(r^(i|~h))+n[0]-198630844)<<6|t>>>26)+i|0)|~r))+n[7]+1126891415)<<10|h>>>22)+t|0)^((r=((r+=(t^(h|~i))+n[14]-1416354905)<<15|r>>>17)+h|0)|~t))+n[5]-57434055)<<21|i>>>11)+r|0,i=((i+=((h=((h+=(i^((t=((t+=(r^(i|~h))+n[12]+1700485571)<<6|t>>>26)+i|0)|~r))+n[3]-1894986606)<<10|h>>>22)+t|0)^((r=((r+=(t^(h|~i))+n[10]-1051523)<<15|r>>>17)+h|0)|~t))+n[1]-2054922799)<<21|i>>>11)+r|0,i=((i+=((h=((h+=(i^((t=((t+=(r^(i|~h))+n[8]+1873313359)<<6|t>>>26)+i|0)|~r))+n[15]-30611744)<<10|h>>>22)+t|0)^((r=((r+=(t^(h|~i))+n[6]-1560198380)<<15|r>>>17)+h|0)|~t))+n[13]+1309151649)<<21|i>>>11)+r|0,i=((i+=((h=((h+=(i^((t=((t+=(r^(i|~h))+n[4]-145523070)<<6|t>>>26)+i|0)|~r))+n[11]-1120210379)<<10|h>>>22)+t|0)^((r=((r+=(t^(h|~i))+n[2]+718787259)<<15|r>>>17)+h|0)|~t))+n[9]-343485551)<<21|i>>>11)+r|0,this.first?(this.h0=t+1732584193|0,this.h1=i-271733879|0,this.h2=r-1732584194|0,this.h3=h+271733878|0,this.first=!1):(this.h0=this.h0+t|0,this.h1=this.h1+i|0,this.h2=this.h2+r|0,this.h3=this.h3+h|0)},d.prototype.hex=function(){this.finalize();var t=this.h0,i=this.h1,r=this.h2,h=this.h3;return n[t>>>4&15]+n[15&t]+n[t>>>12&15]+n[t>>>8&15]+n[t>>>20&15]+n[t>>>16&15]+n[t>>>28&15]+n[t>>>24&15]+n[i>>>4&15]+n[15&i]+n[i>>>12&15]+n[i>>>8&15]+n[i>>>20&15]+n[i>>>16&15]+n[i>>>28&15]+n[i>>>24&15]+n[r>>>4&15]+n[15&r]+n[r>>>12&15]+n[r>>>8&15]+n[r>>>20&15]+n[r>>>16&15]+n[r>>>28&15]+n[r>>>24&15]+n[h>>>4&15]+n[15&h]+n[h>>>12&15]+n[h>>>8&15]+n[h>>>20&15]+n[h>>>16&15]+n[h>>>28&15]+n[h>>>24&15]},d.prototype.toString=d.prototype.hex,d.prototype.digest=function(){this.finalize();var t=this.h0,i=this.h1,r=this.h2,h=this.h3;return[255&t,t>>>8&255,t>>>16&255,t>>>24&255,255&i,i>>>8&255,i>>>16&255,i>>>24&255,255&r,r>>>8&255,r>>>16&255,r>>>24&255,255&h,h>>>8&255,h>>>16&255,h>>>24&255]},d.prototype.array=d.prototype.digest,d.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(16),i=new Uint32Array(t);return i[0]=this.h0,i[1]=this.h1,i[2]=this.h2,i[3]=this.h3,t};var c=function(){var t=l("hex");t.create=function(){return new d},t.update=function(i){return t.create().update(i)};for(var i=0;i<o.length;++i){var r=o[i];t[r]=l(r)}return t}();c.md5=c,e?i.exports=c:h.md5=c}();var h=t(r.exports);export{h as default,h as md5};
10
+ */i=r,function(){var t="input is invalid type",r="object"==typeof window,h=r?window:{};h.JS_MD5_NO_WINDOW&&(r=!1),"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope&&(h=self);var e,s=!h.JS_MD5_NO_COMMON_JS&&i.exports,n="0123456789abcdef".split(""),a=[128,32768,8388608,-2147483648],f=["hex","array","digest","arrayBuffer"],o=[],u=new ArrayBuffer(68);e=new Uint8Array(u),o=new Uint32Array(u);var y=Array.isArray,p=ArrayBuffer.isView,l=function(t){return function(i){return new d(!0).update(i)[t]()}};function d(t){if(t)o[0]=o[16]=o[1]=o[2]=o[3]=o[4]=o[5]=o[6]=o[7]=o[8]=o[9]=o[10]=o[11]=o[12]=o[13]=o[14]=o[15]=0,this.blocks=o,this.buffer8=e;else{var i=new ArrayBuffer(68);this.buffer8=new Uint8Array(i),this.blocks=new Uint32Array(i)}this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}d.prototype.update=function(i){if(this.finalized)throw new Error("finalize already called");var r=function(i){var r=typeof i;if("string"===r)return[i,!0];if("object"!==r||null===i)throw new Error(t);if(i.constructor===ArrayBuffer)return[new Uint8Array(i),!1];if(y(i))return[i,!1];if(!p(i))throw new Error(t);return[new Uint8Array(i.buffer,i.byteOffset,i.byteLength),!1]}(i);i=r[0];for(var h,e,s,n=r[1],a=0,f=i.length,o=this.blocks,u=this.buffer8;a<f;){if(this.hashed&&(this.hashed=!1,o[0]=o[16],o[16]=o[1]=o[2]=o[3]=o[4]=o[5]=o[6]=o[7]=o[8]=o[9]=o[10]=o[11]=o[12]=o[13]=o[14]=o[15]=0),n)for(s=this.start;a<f&&s<64;++a)(h=i.charCodeAt(a))<128?u[s++]=h:h<2048?(u[s++]=192|h>>>6,u[s++]=128|63&h):h<55296||h>=57344?(u[s++]=224|h>>>12,u[s++]=128|h>>>6&63,u[s++]=128|63&h):h<56320&&(e=i.charCodeAt(a+1))>=56320&&e<57344?(++a,h=65536+((1023&h)<<10|1023&e),u[s++]=240|h>>>18,u[s++]=128|h>>>12&63,u[s++]=128|h>>>6&63,u[s++]=128|63&h):(u[s++]=239,u[s++]=191,u[s++]=189);else for(s=this.start;a<f&&s<64;++a)u[s++]=i[a];this.lastByteIndex=s,this.bytes+=s-this.start,s>=64?(this.start=s-64,this.hash(),this.hashed=!0):this.start=s}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this},d.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,i=this.lastByteIndex;t[i>>>2]|=a[3&i],i>=56&&(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()}},d.prototype.hash=function(){var t,i,r,h,e,s,n=this.blocks;this.first?i=((i=((t=((t=n[0]-680876937)<<7|t>>>25)-271733879|0)^(r=((r=(-271733879^(h=((h=(-1732584194^2004318071&t)+n[1]-117830708)<<12|h>>>20)+t|0)&(-271733879^t))+n[2]-1126478375)<<17|r>>>15)+h|0)&(h^t))+n[3]-1316259209)<<22|i>>>10)+r|0:(t=this.h0,i=this.h1,r=this.h2,i=((i+=((t=((t+=((h=this.h3)^i&(r^h))+n[0]-680876936)<<7|t>>>25)+i|0)^(r=((r+=(i^(h=((h+=(r^t&(i^r))+n[1]-389564586)<<12|h>>>20)+t|0)&(t^i))+n[2]+606105819)<<17|r>>>15)+h|0)&(h^t))+n[3]-1044525330)<<22|i>>>10)+r|0),i=((i+=((t=((t+=(h^i&(r^h))+n[4]-176418897)<<7|t>>>25)+i|0)^(r=((r+=(i^(h=((h+=(r^t&(i^r))+n[5]+1200080426)<<12|h>>>20)+t|0)&(t^i))+n[6]-1473231341)<<17|r>>>15)+h|0)&(h^t))+n[7]-45705983)<<22|i>>>10)+r|0,i=((i+=((t=((t+=(h^i&(r^h))+n[8]+1770035416)<<7|t>>>25)+i|0)^(r=((r+=(i^(h=((h+=(r^t&(i^r))+n[9]-1958414417)<<12|h>>>20)+t|0)&(t^i))+n[10]-42063)<<17|r>>>15)+h|0)&(h^t))+n[11]-1990404162)<<22|i>>>10)+r|0,i=((i+=((t=((t+=(h^i&(r^h))+n[12]+1804603682)<<7|t>>>25)+i|0)^(r=((r+=(i^(h=((h+=(r^t&(i^r))+n[13]-40341101)<<12|h>>>20)+t|0)&(t^i))+n[14]-1502002290)<<17|r>>>15)+h|0)&(h^t))+n[15]+1236535329)<<22|i>>>10)+r|0,i=((i+=((h=((h+=(i^r&((t=((t+=(r^h&(i^r))+n[1]-165796510)<<5|t>>>27)+i|0)^i))+n[6]-1069501632)<<9|h>>>23)+t|0)^t&((r=((r+=(t^i&(h^t))+n[11]+643717713)<<14|r>>>18)+h|0)^h))+n[0]-373897302)<<20|i>>>12)+r|0,i=((i+=((h=((h+=(i^r&((t=((t+=(r^h&(i^r))+n[5]-701558691)<<5|t>>>27)+i|0)^i))+n[10]+38016083)<<9|h>>>23)+t|0)^t&((r=((r+=(t^i&(h^t))+n[15]-660478335)<<14|r>>>18)+h|0)^h))+n[4]-405537848)<<20|i>>>12)+r|0,i=((i+=((h=((h+=(i^r&((t=((t+=(r^h&(i^r))+n[9]+568446438)<<5|t>>>27)+i|0)^i))+n[14]-1019803690)<<9|h>>>23)+t|0)^t&((r=((r+=(t^i&(h^t))+n[3]-187363961)<<14|r>>>18)+h|0)^h))+n[8]+1163531501)<<20|i>>>12)+r|0,i=((i+=((h=((h+=(i^r&((t=((t+=(r^h&(i^r))+n[13]-1444681467)<<5|t>>>27)+i|0)^i))+n[2]-51403784)<<9|h>>>23)+t|0)^t&((r=((r+=(t^i&(h^t))+n[7]+1735328473)<<14|r>>>18)+h|0)^h))+n[12]-1926607734)<<20|i>>>12)+r|0,i=((i+=((s=(h=((h+=((e=i^r)^(t=((t+=(e^h)+n[5]-378558)<<4|t>>>28)+i|0))+n[8]-2022574463)<<11|h>>>21)+t|0)^t)^(r=((r+=(s^i)+n[11]+1839030562)<<16|r>>>16)+h|0))+n[14]-35309556)<<23|i>>>9)+r|0,i=((i+=((s=(h=((h+=((e=i^r)^(t=((t+=(e^h)+n[1]-1530992060)<<4|t>>>28)+i|0))+n[4]+1272893353)<<11|h>>>21)+t|0)^t)^(r=((r+=(s^i)+n[7]-155497632)<<16|r>>>16)+h|0))+n[10]-1094730640)<<23|i>>>9)+r|0,i=((i+=((s=(h=((h+=((e=i^r)^(t=((t+=(e^h)+n[13]+681279174)<<4|t>>>28)+i|0))+n[0]-358537222)<<11|h>>>21)+t|0)^t)^(r=((r+=(s^i)+n[3]-722521979)<<16|r>>>16)+h|0))+n[6]+76029189)<<23|i>>>9)+r|0,i=((i+=((s=(h=((h+=((e=i^r)^(t=((t+=(e^h)+n[9]-640364487)<<4|t>>>28)+i|0))+n[12]-421815835)<<11|h>>>21)+t|0)^t)^(r=((r+=(s^i)+n[15]+530742520)<<16|r>>>16)+h|0))+n[2]-995338651)<<23|i>>>9)+r|0,i=((i+=((h=((h+=(i^((t=((t+=(r^(i|~h))+n[0]-198630844)<<6|t>>>26)+i|0)|~r))+n[7]+1126891415)<<10|h>>>22)+t|0)^((r=((r+=(t^(h|~i))+n[14]-1416354905)<<15|r>>>17)+h|0)|~t))+n[5]-57434055)<<21|i>>>11)+r|0,i=((i+=((h=((h+=(i^((t=((t+=(r^(i|~h))+n[12]+1700485571)<<6|t>>>26)+i|0)|~r))+n[3]-1894986606)<<10|h>>>22)+t|0)^((r=((r+=(t^(h|~i))+n[10]-1051523)<<15|r>>>17)+h|0)|~t))+n[1]-2054922799)<<21|i>>>11)+r|0,i=((i+=((h=((h+=(i^((t=((t+=(r^(i|~h))+n[8]+1873313359)<<6|t>>>26)+i|0)|~r))+n[15]-30611744)<<10|h>>>22)+t|0)^((r=((r+=(t^(h|~i))+n[6]-1560198380)<<15|r>>>17)+h|0)|~t))+n[13]+1309151649)<<21|i>>>11)+r|0,i=((i+=((h=((h+=(i^((t=((t+=(r^(i|~h))+n[4]-145523070)<<6|t>>>26)+i|0)|~r))+n[11]-1120210379)<<10|h>>>22)+t|0)^((r=((r+=(t^(h|~i))+n[2]+718787259)<<15|r>>>17)+h|0)|~t))+n[9]-343485551)<<21|i>>>11)+r|0,this.first?(this.h0=t+1732584193|0,this.h1=i-271733879|0,this.h2=r-1732584194|0,this.h3=h+271733878|0,this.first=!1):(this.h0=this.h0+t|0,this.h1=this.h1+i|0,this.h2=this.h2+r|0,this.h3=this.h3+h|0)},d.prototype.hex=function(){this.finalize();var t=this.h0,i=this.h1,r=this.h2,h=this.h3;return n[t>>>4&15]+n[15&t]+n[t>>>12&15]+n[t>>>8&15]+n[t>>>20&15]+n[t>>>16&15]+n[t>>>28&15]+n[t>>>24&15]+n[i>>>4&15]+n[15&i]+n[i>>>12&15]+n[i>>>8&15]+n[i>>>20&15]+n[i>>>16&15]+n[i>>>28&15]+n[i>>>24&15]+n[r>>>4&15]+n[15&r]+n[r>>>12&15]+n[r>>>8&15]+n[r>>>20&15]+n[r>>>16&15]+n[r>>>28&15]+n[r>>>24&15]+n[h>>>4&15]+n[15&h]+n[h>>>12&15]+n[h>>>8&15]+n[h>>>20&15]+n[h>>>16&15]+n[h>>>28&15]+n[h>>>24&15]},d.prototype.toString=d.prototype.hex,d.prototype.digest=function(){this.finalize();var t=this.h0,i=this.h1,r=this.h2,h=this.h3;return[255&t,t>>>8&255,t>>>16&255,t>>>24&255,255&i,i>>>8&255,i>>>16&255,i>>>24&255,255&r,r>>>8&255,r>>>16&255,r>>>24&255,255&h,h>>>8&255,h>>>16&255,h>>>24&255]},d.prototype.array=d.prototype.digest,d.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(16),i=new Uint32Array(t);return i[0]=this.h0,i[1]=this.h1,i[2]=this.h2,i[3]=this.h3,t};var c=function(){var t=l("hex");t.create=function(){return new d},t.update=function(i){return t.create().update(i)};for(var i=0;i<f.length;++i){var r=f[i];t[r]=l(r)}return t}();c.md5=c,s?i.exports=c:h.md5=c}();var h=t(r.exports);export{h as default,h as md5};
@@ -8,7 +8,7 @@ var md5$1 = {exports: {}};
8
8
  * [js-md5]{@link https://github.com/emn178/js-md5}
9
9
  *
10
10
  * @namespace md5
11
- * @version 0.10.0
11
+ * @version 0.11.0
12
12
  * @author Chen, Yi-Cyuan [emn178@gmail.com]
13
13
  * @copyright Chen, Yi-Cyuan 2014-2026
14
14
  * @license MIT
@@ -42,7 +42,7 @@ var md5$1 = {exports: {}};
42
42
 
43
43
  var isArray = Array.isArray;
44
44
 
45
- var isView = ArrayBuffer.isView;
45
+ var isView = ArrayBuffer.isView ;
46
46
 
47
47
  // [message: string, isString: bool]
48
48
  var formatMessage = function (message) {
@@ -56,10 +56,14 @@ var md5$1 = {exports: {}};
56
56
  if (message.constructor === ArrayBuffer) {
57
57
  return [new Uint8Array(message), false];
58
58
  }
59
- if (!isArray(message) && !isView(message)) {
59
+ if (isArray(message)) {
60
+ return [message, false];
61
+ }
62
+ if (!isView(message)) {
60
63
  throw new Error(INPUT_ERROR);
61
64
  }
62
- return [message, false];
65
+ // read the underlying bytes of any view (DataView, Uint16Array, ...)
66
+ return [new Uint8Array(message.buffer, message.byteOffset, message.byteLength), false];
63
67
  };
64
68
 
65
69
  /**
@@ -13,7 +13,7 @@ var md5$1 = {exports: {}};
13
13
  * [js-md5]{@link https://github.com/emn178/js-md5}
14
14
  *
15
15
  * @namespace md5
16
- * @version 0.10.0
16
+ * @version 0.11.0
17
17
  * @author Chen, Yi-Cyuan [emn178@gmail.com]
18
18
  * @copyright Chen, Yi-Cyuan 2014-2026
19
19
  * @license MIT
@@ -51,7 +51,7 @@ var md5$1 = {exports: {}};
51
51
 
52
52
  var isArray = Array.isArray;
53
53
 
54
- var isView = ArrayBuffer.isView;
54
+ var isView = ArrayBuffer.isView ;
55
55
 
56
56
  // [message: string, isString: bool]
57
57
  var formatMessage = function (message) {
@@ -65,10 +65,14 @@ var md5$1 = {exports: {}};
65
65
  if (message.constructor === ArrayBuffer) {
66
66
  return [new Uint8Array(message), false];
67
67
  }
68
- if (!isArray(message) && !isView(message)) {
68
+ if (isArray(message)) {
69
+ return [message, false];
70
+ }
71
+ if (!isView(message)) {
69
72
  throw new Error(INPUT_ERROR);
70
73
  }
71
- return [message, false];
74
+ // read the underlying bytes of any view (DataView, Uint16Array, ...)
75
+ return [new Uint8Array(message.buffer, message.byteOffset, message.byteLength), false];
72
76
  };
73
77
 
74
78
  /**
@@ -184,6 +188,8 @@ var md5$1 = {exports: {}};
184
188
  throw new Error(INPUT_ERROR);
185
189
  } else if (message.constructor === ArrayBuffer) {
186
190
  message = new Uint8Array(message);
191
+ } else if (isView(message) && message.constructor !== Buffer) {
192
+ message = new Uint8Array(message.buffer, message.byteOffset, message.byteLength);
187
193
  }
188
194
  }
189
195
  if (isArray(message) || isView(message) ||
package/build/md5.js CHANGED
@@ -2,7 +2,7 @@
2
2
  * [js-md5]{@link https://github.com/emn178/js-md5}
3
3
  *
4
4
  * @namespace md5
5
- * @version 0.10.0
5
+ * @version 0.11.0
6
6
  * @author Chen, Yi-Cyuan [emn178@gmail.com]
7
7
  * @copyright Chen, Yi-Cyuan 2014-2026
8
8
  * @license MIT
@@ -58,7 +58,7 @@
58
58
  };
59
59
  }
60
60
 
61
- var isView = ArrayBuffer.isView;
61
+ var isView = ARRAY_BUFFER ? ArrayBuffer.isView : null;
62
62
  /* istanbul ignore else */
63
63
  if (ARRAY_BUFFER && (root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW || !isView)) {
64
64
  isView = function (obj) {
@@ -78,10 +78,14 @@
78
78
  if (ARRAY_BUFFER && message.constructor === ArrayBuffer) {
79
79
  return [new Uint8Array(message), false];
80
80
  }
81
- if (!isArray(message) && !isView(message)) {
81
+ if (isArray(message)) {
82
+ return [message, false];
83
+ }
84
+ if (!ARRAY_BUFFER || !isView(message)) {
82
85
  throw new Error(INPUT_ERROR);
83
86
  }
84
- return [message, false];
87
+ // read the underlying bytes of any view (DataView, Uint16Array, ...)
88
+ return [new Uint8Array(message.buffer, message.byteOffset, message.byteLength), false];
85
89
  };
86
90
 
87
91
  /**
@@ -202,6 +206,8 @@
202
206
  throw new Error(INPUT_ERROR);
203
207
  } else if (message.constructor === ArrayBuffer) {
204
208
  message = new Uint8Array(message);
209
+ } else if (ARRAY_BUFFER && isView(message) && message.constructor !== Buffer) {
210
+ message = new Uint8Array(message.buffer, message.byteOffset, message.byteLength);
205
211
  }
206
212
  }
207
213
  if (isArray(message) || isView(message) ||
package/build/md5.min.js CHANGED
@@ -2,9 +2,9 @@
2
2
  * [js-md5]{@link https://github.com/emn178/js-md5}
3
3
  *
4
4
  * @namespace md5
5
- * @version 0.10.0
5
+ * @version 0.11.0
6
6
  * @author Chen, Yi-Cyuan [emn178@gmail.com]
7
7
  * @copyright Chen, Yi-Cyuan 2014-2026
8
8
  * @license MIT
9
9
  */
10
- !function(){var t="input is invalid type",r="object"==typeof window,e=r?window:{};e.JS_MD5_NO_WINDOW&&(r=!1);var i="undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope,s=!e.JS_MD5_NO_NODE_JS&&!r&&"object"==typeof process&&process.versions&&process.versions.node;s?e=global:i&&(e=self);var h=!e.JS_MD5_NO_COMMON_JS&&"object"==typeof module&&module.exports,n="function"==typeof define&&define.amd,o=!e.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,a="0123456789abcdef".split(""),f=[128,32768,8388608,-2147483648],u=[0,8,16,24],c=["hex","array","digest","arrayBuffer"];c.push("buffer"),c.push("base64");var y,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),d=[];if(o){var l=new ArrayBuffer(68);y=new Uint8Array(l),d=new Uint32Array(l)}var b=Array.isArray;!e.JS_MD5_NO_NODE_JS&&b||(b=function(t){return"[object Array]"===Object.prototype.toString.call(t)});var v=ArrayBuffer.isView;!o||!e.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&v||(v=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var w=function(r){var e=typeof r;if("string"===e)return[r,!0];if("object"!==e||null===r)throw new Error(t);if(o&&r.constructor===ArrayBuffer)return[new Uint8Array(r),!1];if(!b(r)&&!v(r))throw new Error(t);return[r,!1]},A=function(t){return function(r){return new g(!0).update(r)[t]()}},_=function(r){var i=require("crypto"),s=require("buffer").Buffer,h=s.from;!e.JS_MD5_NO_BUFFER_FROM&&h||(h=function(t){return new s(t)});return function(e){if("string"==typeof e)return i.createHash("md5").update(e,"utf8").digest("hex");if(null==e)throw new Error(t);return e.constructor===ArrayBuffer&&(e=new Uint8Array(e)),b(e)||v(e)||e.constructor===s?i.createHash("md5").update(h(e)).digest("hex"):r(e)}},B=function(t){return function(r,e){return new S(r,!0).update(e)[t]()}};function g(t){if(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=y;else if(o){var r=new ArrayBuffer(68);this.buffer8=new Uint8Array(r),this.blocks=new Uint32Array(r)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}function S(t,r){var e,i=w(t);if(t=i[0],i[1]){var s,h,n=[],o=t.length,a=0;for(e=0;e<o;++e)(s=t.charCodeAt(e))<128?n[a++]=s:s<2048?(n[a++]=192|s>>>6,n[a++]=128|63&s):s<55296||s>=57344?(n[a++]=224|s>>>12,n[a++]=128|s>>>6&63,n[a++]=128|63&s):s<56320&&(h=t.charCodeAt(e+1))>=56320&&h<57344?(++e,s=65536+((1023&s)<<10|1023&h),n[a++]=240|s>>>18,n[a++]=128|s>>>12&63,n[a++]=128|s>>>6&63,n[a++]=128|63&s):(n[a++]=239,n[a++]=191,n[a++]=189);t=n}t.length>64&&(t=new g(!0).update(t).array());var f=[],u=[];for(e=0;e<64;++e){var c=t[e]||0;f[e]=92^c,u[e]=54^c}g.call(this,r),this.update(u),this.oKeyPad=f,this.inner=!0,this.sharedMemory=r}g.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var r=w(t);t=r[0];for(var e,i,s,h=r[1],n=0,a=t.length,f=this.blocks,c=this.buffer8;n<a;){if(this.hashed&&(this.hashed=!1,f[0]=f[16],f[16]=f[1]=f[2]=f[3]=f[4]=f[5]=f[6]=f[7]=f[8]=f[9]=f[10]=f[11]=f[12]=f[13]=f[14]=f[15]=0),h)if(o)for(s=this.start;n<a&&s<64;++n)(e=t.charCodeAt(n))<128?c[s++]=e:e<2048?(c[s++]=192|e>>>6,c[s++]=128|63&e):e<55296||e>=57344?(c[s++]=224|e>>>12,c[s++]=128|e>>>6&63,c[s++]=128|63&e):e<56320&&(i=t.charCodeAt(n+1))>=56320&&i<57344?(++n,e=65536+((1023&e)<<10|1023&i),c[s++]=240|e>>>18,c[s++]=128|e>>>12&63,c[s++]=128|e>>>6&63,c[s++]=128|63&e):(c[s++]=239,c[s++]=191,c[s++]=189);else for(s=this.start;n<a&&s<64;++n)(e=t.charCodeAt(n))<128?f[s>>>2]|=e<<u[3&s++]:e<2048?(f[s>>>2]|=(192|e>>>6)<<u[3&s++],f[s>>>2]|=(128|63&e)<<u[3&s++]):e<55296||e>=57344?(f[s>>>2]|=(224|e>>>12)<<u[3&s++],f[s>>>2]|=(128|e>>>6&63)<<u[3&s++],f[s>>>2]|=(128|63&e)<<u[3&s++]):e<56320&&(i=t.charCodeAt(n+1))>=56320&&i<57344?(++n,e=65536+((1023&e)<<10|1023&i),f[s>>>2]|=(240|e>>>18)<<u[3&s++],f[s>>>2]|=(128|e>>>12&63)<<u[3&s++],f[s>>>2]|=(128|e>>>6&63)<<u[3&s++],f[s>>>2]|=(128|63&e)<<u[3&s++]):(f[s>>>2]|=239<<u[3&s++],f[s>>>2]|=191<<u[3&s++],f[s>>>2]|=189<<u[3&s++]);else if(o)for(s=this.start;n<a&&s<64;++n)c[s++]=t[n];else for(s=this.start;n<a&&s<64;++n)f[s>>>2]|=t[n]<<u[3&s++];this.lastByteIndex=s,this.bytes+=s-this.start,s>=64?(this.start=s-64,this.hash(),this.hashed=!0):this.start=s}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this},g.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,r=this.lastByteIndex;t[r>>>2]|=f[3&r],r>=56&&(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()}},g.prototype.hash=function(){var t,r,e,i,s,h,n=this.blocks;this.first?r=((r=((t=((t=n[0]-680876937)<<7|t>>>25)-271733879|0)^(e=((e=(-271733879^(i=((i=(-1732584194^2004318071&t)+n[1]-117830708)<<12|i>>>20)+t|0)&(-271733879^t))+n[2]-1126478375)<<17|e>>>15)+i|0)&(i^t))+n[3]-1316259209)<<22|r>>>10)+e|0:(t=this.h0,r=this.h1,e=this.h2,r=((r+=((t=((t+=((i=this.h3)^r&(e^i))+n[0]-680876936)<<7|t>>>25)+r|0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+n[1]-389564586)<<12|i>>>20)+t|0)&(t^r))+n[2]+606105819)<<17|e>>>15)+i|0)&(i^t))+n[3]-1044525330)<<22|r>>>10)+e|0),r=((r+=((t=((t+=(i^r&(e^i))+n[4]-176418897)<<7|t>>>25)+r|0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+n[5]+1200080426)<<12|i>>>20)+t|0)&(t^r))+n[6]-1473231341)<<17|e>>>15)+i|0)&(i^t))+n[7]-45705983)<<22|r>>>10)+e|0,r=((r+=((t=((t+=(i^r&(e^i))+n[8]+1770035416)<<7|t>>>25)+r|0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+n[9]-1958414417)<<12|i>>>20)+t|0)&(t^r))+n[10]-42063)<<17|e>>>15)+i|0)&(i^t))+n[11]-1990404162)<<22|r>>>10)+e|0,r=((r+=((t=((t+=(i^r&(e^i))+n[12]+1804603682)<<7|t>>>25)+r|0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+n[13]-40341101)<<12|i>>>20)+t|0)&(t^r))+n[14]-1502002290)<<17|e>>>15)+i|0)&(i^t))+n[15]+1236535329)<<22|r>>>10)+e|0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+n[1]-165796510)<<5|t>>>27)+r|0)^r))+n[6]-1069501632)<<9|i>>>23)+t|0)^t&((e=((e+=(t^r&(i^t))+n[11]+643717713)<<14|e>>>18)+i|0)^i))+n[0]-373897302)<<20|r>>>12)+e|0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+n[5]-701558691)<<5|t>>>27)+r|0)^r))+n[10]+38016083)<<9|i>>>23)+t|0)^t&((e=((e+=(t^r&(i^t))+n[15]-660478335)<<14|e>>>18)+i|0)^i))+n[4]-405537848)<<20|r>>>12)+e|0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+n[9]+568446438)<<5|t>>>27)+r|0)^r))+n[14]-1019803690)<<9|i>>>23)+t|0)^t&((e=((e+=(t^r&(i^t))+n[3]-187363961)<<14|e>>>18)+i|0)^i))+n[8]+1163531501)<<20|r>>>12)+e|0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+n[13]-1444681467)<<5|t>>>27)+r|0)^r))+n[2]-51403784)<<9|i>>>23)+t|0)^t&((e=((e+=(t^r&(i^t))+n[7]+1735328473)<<14|e>>>18)+i|0)^i))+n[12]-1926607734)<<20|r>>>12)+e|0,r=((r+=((h=(i=((i+=((s=r^e)^(t=((t+=(s^i)+n[5]-378558)<<4|t>>>28)+r|0))+n[8]-2022574463)<<11|i>>>21)+t|0)^t)^(e=((e+=(h^r)+n[11]+1839030562)<<16|e>>>16)+i|0))+n[14]-35309556)<<23|r>>>9)+e|0,r=((r+=((h=(i=((i+=((s=r^e)^(t=((t+=(s^i)+n[1]-1530992060)<<4|t>>>28)+r|0))+n[4]+1272893353)<<11|i>>>21)+t|0)^t)^(e=((e+=(h^r)+n[7]-155497632)<<16|e>>>16)+i|0))+n[10]-1094730640)<<23|r>>>9)+e|0,r=((r+=((h=(i=((i+=((s=r^e)^(t=((t+=(s^i)+n[13]+681279174)<<4|t>>>28)+r|0))+n[0]-358537222)<<11|i>>>21)+t|0)^t)^(e=((e+=(h^r)+n[3]-722521979)<<16|e>>>16)+i|0))+n[6]+76029189)<<23|r>>>9)+e|0,r=((r+=((h=(i=((i+=((s=r^e)^(t=((t+=(s^i)+n[9]-640364487)<<4|t>>>28)+r|0))+n[12]-421815835)<<11|i>>>21)+t|0)^t)^(e=((e+=(h^r)+n[15]+530742520)<<16|e>>>16)+i|0))+n[2]-995338651)<<23|r>>>9)+e|0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+n[0]-198630844)<<6|t>>>26)+r|0)|~e))+n[7]+1126891415)<<10|i>>>22)+t|0)^((e=((e+=(t^(i|~r))+n[14]-1416354905)<<15|e>>>17)+i|0)|~t))+n[5]-57434055)<<21|r>>>11)+e|0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+n[12]+1700485571)<<6|t>>>26)+r|0)|~e))+n[3]-1894986606)<<10|i>>>22)+t|0)^((e=((e+=(t^(i|~r))+n[10]-1051523)<<15|e>>>17)+i|0)|~t))+n[1]-2054922799)<<21|r>>>11)+e|0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+n[8]+1873313359)<<6|t>>>26)+r|0)|~e))+n[15]-30611744)<<10|i>>>22)+t|0)^((e=((e+=(t^(i|~r))+n[6]-1560198380)<<15|e>>>17)+i|0)|~t))+n[13]+1309151649)<<21|r>>>11)+e|0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+n[4]-145523070)<<6|t>>>26)+r|0)|~e))+n[11]-1120210379)<<10|i>>>22)+t|0)^((e=((e+=(t^(i|~r))+n[2]+718787259)<<15|e>>>17)+i|0)|~t))+n[9]-343485551)<<21|r>>>11)+e|0,this.first?(this.h0=t+1732584193|0,this.h1=r-271733879|0,this.h2=e-1732584194|0,this.h3=i+271733878|0,this.first=!1):(this.h0=this.h0+t|0,this.h1=this.h1+r|0,this.h2=this.h2+e|0,this.h3=this.h3+i|0)},g.prototype.hex=function(){this.finalize();var t=this.h0,r=this.h1,e=this.h2,i=this.h3;return a[t>>>4&15]+a[15&t]+a[t>>>12&15]+a[t>>>8&15]+a[t>>>20&15]+a[t>>>16&15]+a[t>>>28&15]+a[t>>>24&15]+a[r>>>4&15]+a[15&r]+a[r>>>12&15]+a[r>>>8&15]+a[r>>>20&15]+a[r>>>16&15]+a[r>>>28&15]+a[r>>>24&15]+a[e>>>4&15]+a[15&e]+a[e>>>12&15]+a[e>>>8&15]+a[e>>>20&15]+a[e>>>16&15]+a[e>>>28&15]+a[e>>>24&15]+a[i>>>4&15]+a[15&i]+a[i>>>12&15]+a[i>>>8&15]+a[i>>>20&15]+a[i>>>16&15]+a[i>>>28&15]+a[i>>>24&15]},g.prototype.toString=g.prototype.hex,g.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]},g.prototype.array=g.prototype.digest,g.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},g.prototype.buffer=g.prototype.arrayBuffer,g.prototype.base64=function(){for(var t,r,e,i="",s=this.array(),h=0;h<15;)t=s[h++],r=s[h++],e=s[h++],i+=p[t>>>2]+p[63&(t<<4|r>>>4)]+p[63&(r<<2|e>>>6)]+p[63&e];return t=s[h],i+=p[t>>>2]+p[t<<4&63]+"=="},S.prototype=new g,S.prototype.finalize=function(){if(g.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();g.call(this,this.sharedMemory),this.update(this.oKeyPad),this.update(t),g.prototype.finalize.call(this)}};var O=function(){var t=A("hex");s&&(t=_(t)),t.create=function(){return new g},t.update=function(r){return t.create().update(r)};for(var r=0;r<c.length;++r){var e=c[r];t[e]=A(e)}return t}();O.md5=O,O.md5.hmac=function(){var t=B("hex");t.create=function(t){return new S(t)},t.update=function(r,e){return t.create(r).update(e)};for(var r=0;r<c.length;++r){var e=c[r];t[e]=B(e)}return t}(),h?module.exports=O:(e.md5=O,n&&define(function(){return O}))}();
10
+ !function(){var t="input is invalid type",r="object"==typeof window,e=r?window:{};e.JS_MD5_NO_WINDOW&&(r=!1);var i="undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope,s=!e.JS_MD5_NO_NODE_JS&&!r&&"object"==typeof process&&process.versions&&process.versions.node;s?e=global:i&&(e=self);var h=!e.JS_MD5_NO_COMMON_JS&&"object"==typeof module&&module.exports,n="function"==typeof define&&define.amd,o=!e.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,a="0123456789abcdef".split(""),f=[128,32768,8388608,-2147483648],u=[0,8,16,24],y=["hex","array","digest","arrayBuffer"];y.push("buffer"),y.push("base64");var c,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),d=[];if(o){var l=new ArrayBuffer(68);c=new Uint8Array(l),d=new Uint32Array(l)}var b=Array.isArray;!e.JS_MD5_NO_NODE_JS&&b||(b=function(t){return"[object Array]"===Object.prototype.toString.call(t)});var v=o?ArrayBuffer.isView:null;!o||!e.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&v||(v=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var w=function(r){var e=typeof r;if("string"===e)return[r,!0];if("object"!==e||null===r)throw new Error(t);if(o&&r.constructor===ArrayBuffer)return[new Uint8Array(r),!1];if(b(r))return[r,!1];if(!o||!v(r))throw new Error(t);return[new Uint8Array(r.buffer,r.byteOffset,r.byteLength),!1]},A=function(t){return function(r){return new g(!0).update(r)[t]()}},_=function(r){var i=require("crypto"),s=require("buffer").Buffer,h=s.from;!e.JS_MD5_NO_BUFFER_FROM&&h||(h=function(t){return new s(t)});return function(e){if("string"==typeof e)return i.createHash("md5").update(e,"utf8").digest("hex");if(null==e)throw new Error(t);return e.constructor===ArrayBuffer?e=new Uint8Array(e):o&&v(e)&&e.constructor!==s&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),b(e)||v(e)||e.constructor===s?i.createHash("md5").update(h(e)).digest("hex"):r(e)}},B=function(t){return function(r,e){return new O(r,!0).update(e)[t]()}};function g(t){if(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=c;else if(o){var r=new ArrayBuffer(68);this.buffer8=new Uint8Array(r),this.blocks=new Uint32Array(r)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}function O(t,r){var e,i=w(t);if(t=i[0],i[1]){var s,h,n=[],o=t.length,a=0;for(e=0;e<o;++e)(s=t.charCodeAt(e))<128?n[a++]=s:s<2048?(n[a++]=192|s>>>6,n[a++]=128|63&s):s<55296||s>=57344?(n[a++]=224|s>>>12,n[a++]=128|s>>>6&63,n[a++]=128|63&s):s<56320&&(h=t.charCodeAt(e+1))>=56320&&h<57344?(++e,s=65536+((1023&s)<<10|1023&h),n[a++]=240|s>>>18,n[a++]=128|s>>>12&63,n[a++]=128|s>>>6&63,n[a++]=128|63&s):(n[a++]=239,n[a++]=191,n[a++]=189);t=n}t.length>64&&(t=new g(!0).update(t).array());var f=[],u=[];for(e=0;e<64;++e){var y=t[e]||0;f[e]=92^y,u[e]=54^y}g.call(this,r),this.update(u),this.oKeyPad=f,this.inner=!0,this.sharedMemory=r}g.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var r=w(t);t=r[0];for(var e,i,s,h=r[1],n=0,a=t.length,f=this.blocks,y=this.buffer8;n<a;){if(this.hashed&&(this.hashed=!1,f[0]=f[16],f[16]=f[1]=f[2]=f[3]=f[4]=f[5]=f[6]=f[7]=f[8]=f[9]=f[10]=f[11]=f[12]=f[13]=f[14]=f[15]=0),h)if(o)for(s=this.start;n<a&&s<64;++n)(e=t.charCodeAt(n))<128?y[s++]=e:e<2048?(y[s++]=192|e>>>6,y[s++]=128|63&e):e<55296||e>=57344?(y[s++]=224|e>>>12,y[s++]=128|e>>>6&63,y[s++]=128|63&e):e<56320&&(i=t.charCodeAt(n+1))>=56320&&i<57344?(++n,e=65536+((1023&e)<<10|1023&i),y[s++]=240|e>>>18,y[s++]=128|e>>>12&63,y[s++]=128|e>>>6&63,y[s++]=128|63&e):(y[s++]=239,y[s++]=191,y[s++]=189);else for(s=this.start;n<a&&s<64;++n)(e=t.charCodeAt(n))<128?f[s>>>2]|=e<<u[3&s++]:e<2048?(f[s>>>2]|=(192|e>>>6)<<u[3&s++],f[s>>>2]|=(128|63&e)<<u[3&s++]):e<55296||e>=57344?(f[s>>>2]|=(224|e>>>12)<<u[3&s++],f[s>>>2]|=(128|e>>>6&63)<<u[3&s++],f[s>>>2]|=(128|63&e)<<u[3&s++]):e<56320&&(i=t.charCodeAt(n+1))>=56320&&i<57344?(++n,e=65536+((1023&e)<<10|1023&i),f[s>>>2]|=(240|e>>>18)<<u[3&s++],f[s>>>2]|=(128|e>>>12&63)<<u[3&s++],f[s>>>2]|=(128|e>>>6&63)<<u[3&s++],f[s>>>2]|=(128|63&e)<<u[3&s++]):(f[s>>>2]|=239<<u[3&s++],f[s>>>2]|=191<<u[3&s++],f[s>>>2]|=189<<u[3&s++]);else if(o)for(s=this.start;n<a&&s<64;++n)y[s++]=t[n];else for(s=this.start;n<a&&s<64;++n)f[s>>>2]|=t[n]<<u[3&s++];this.lastByteIndex=s,this.bytes+=s-this.start,s>=64?(this.start=s-64,this.hash(),this.hashed=!0):this.start=s}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this},g.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,r=this.lastByteIndex;t[r>>>2]|=f[3&r],r>=56&&(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()}},g.prototype.hash=function(){var t,r,e,i,s,h,n=this.blocks;this.first?r=((r=((t=((t=n[0]-680876937)<<7|t>>>25)-271733879|0)^(e=((e=(-271733879^(i=((i=(-1732584194^2004318071&t)+n[1]-117830708)<<12|i>>>20)+t|0)&(-271733879^t))+n[2]-1126478375)<<17|e>>>15)+i|0)&(i^t))+n[3]-1316259209)<<22|r>>>10)+e|0:(t=this.h0,r=this.h1,e=this.h2,r=((r+=((t=((t+=((i=this.h3)^r&(e^i))+n[0]-680876936)<<7|t>>>25)+r|0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+n[1]-389564586)<<12|i>>>20)+t|0)&(t^r))+n[2]+606105819)<<17|e>>>15)+i|0)&(i^t))+n[3]-1044525330)<<22|r>>>10)+e|0),r=((r+=((t=((t+=(i^r&(e^i))+n[4]-176418897)<<7|t>>>25)+r|0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+n[5]+1200080426)<<12|i>>>20)+t|0)&(t^r))+n[6]-1473231341)<<17|e>>>15)+i|0)&(i^t))+n[7]-45705983)<<22|r>>>10)+e|0,r=((r+=((t=((t+=(i^r&(e^i))+n[8]+1770035416)<<7|t>>>25)+r|0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+n[9]-1958414417)<<12|i>>>20)+t|0)&(t^r))+n[10]-42063)<<17|e>>>15)+i|0)&(i^t))+n[11]-1990404162)<<22|r>>>10)+e|0,r=((r+=((t=((t+=(i^r&(e^i))+n[12]+1804603682)<<7|t>>>25)+r|0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+n[13]-40341101)<<12|i>>>20)+t|0)&(t^r))+n[14]-1502002290)<<17|e>>>15)+i|0)&(i^t))+n[15]+1236535329)<<22|r>>>10)+e|0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+n[1]-165796510)<<5|t>>>27)+r|0)^r))+n[6]-1069501632)<<9|i>>>23)+t|0)^t&((e=((e+=(t^r&(i^t))+n[11]+643717713)<<14|e>>>18)+i|0)^i))+n[0]-373897302)<<20|r>>>12)+e|0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+n[5]-701558691)<<5|t>>>27)+r|0)^r))+n[10]+38016083)<<9|i>>>23)+t|0)^t&((e=((e+=(t^r&(i^t))+n[15]-660478335)<<14|e>>>18)+i|0)^i))+n[4]-405537848)<<20|r>>>12)+e|0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+n[9]+568446438)<<5|t>>>27)+r|0)^r))+n[14]-1019803690)<<9|i>>>23)+t|0)^t&((e=((e+=(t^r&(i^t))+n[3]-187363961)<<14|e>>>18)+i|0)^i))+n[8]+1163531501)<<20|r>>>12)+e|0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+n[13]-1444681467)<<5|t>>>27)+r|0)^r))+n[2]-51403784)<<9|i>>>23)+t|0)^t&((e=((e+=(t^r&(i^t))+n[7]+1735328473)<<14|e>>>18)+i|0)^i))+n[12]-1926607734)<<20|r>>>12)+e|0,r=((r+=((h=(i=((i+=((s=r^e)^(t=((t+=(s^i)+n[5]-378558)<<4|t>>>28)+r|0))+n[8]-2022574463)<<11|i>>>21)+t|0)^t)^(e=((e+=(h^r)+n[11]+1839030562)<<16|e>>>16)+i|0))+n[14]-35309556)<<23|r>>>9)+e|0,r=((r+=((h=(i=((i+=((s=r^e)^(t=((t+=(s^i)+n[1]-1530992060)<<4|t>>>28)+r|0))+n[4]+1272893353)<<11|i>>>21)+t|0)^t)^(e=((e+=(h^r)+n[7]-155497632)<<16|e>>>16)+i|0))+n[10]-1094730640)<<23|r>>>9)+e|0,r=((r+=((h=(i=((i+=((s=r^e)^(t=((t+=(s^i)+n[13]+681279174)<<4|t>>>28)+r|0))+n[0]-358537222)<<11|i>>>21)+t|0)^t)^(e=((e+=(h^r)+n[3]-722521979)<<16|e>>>16)+i|0))+n[6]+76029189)<<23|r>>>9)+e|0,r=((r+=((h=(i=((i+=((s=r^e)^(t=((t+=(s^i)+n[9]-640364487)<<4|t>>>28)+r|0))+n[12]-421815835)<<11|i>>>21)+t|0)^t)^(e=((e+=(h^r)+n[15]+530742520)<<16|e>>>16)+i|0))+n[2]-995338651)<<23|r>>>9)+e|0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+n[0]-198630844)<<6|t>>>26)+r|0)|~e))+n[7]+1126891415)<<10|i>>>22)+t|0)^((e=((e+=(t^(i|~r))+n[14]-1416354905)<<15|e>>>17)+i|0)|~t))+n[5]-57434055)<<21|r>>>11)+e|0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+n[12]+1700485571)<<6|t>>>26)+r|0)|~e))+n[3]-1894986606)<<10|i>>>22)+t|0)^((e=((e+=(t^(i|~r))+n[10]-1051523)<<15|e>>>17)+i|0)|~t))+n[1]-2054922799)<<21|r>>>11)+e|0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+n[8]+1873313359)<<6|t>>>26)+r|0)|~e))+n[15]-30611744)<<10|i>>>22)+t|0)^((e=((e+=(t^(i|~r))+n[6]-1560198380)<<15|e>>>17)+i|0)|~t))+n[13]+1309151649)<<21|r>>>11)+e|0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+n[4]-145523070)<<6|t>>>26)+r|0)|~e))+n[11]-1120210379)<<10|i>>>22)+t|0)^((e=((e+=(t^(i|~r))+n[2]+718787259)<<15|e>>>17)+i|0)|~t))+n[9]-343485551)<<21|r>>>11)+e|0,this.first?(this.h0=t+1732584193|0,this.h1=r-271733879|0,this.h2=e-1732584194|0,this.h3=i+271733878|0,this.first=!1):(this.h0=this.h0+t|0,this.h1=this.h1+r|0,this.h2=this.h2+e|0,this.h3=this.h3+i|0)},g.prototype.hex=function(){this.finalize();var t=this.h0,r=this.h1,e=this.h2,i=this.h3;return a[t>>>4&15]+a[15&t]+a[t>>>12&15]+a[t>>>8&15]+a[t>>>20&15]+a[t>>>16&15]+a[t>>>28&15]+a[t>>>24&15]+a[r>>>4&15]+a[15&r]+a[r>>>12&15]+a[r>>>8&15]+a[r>>>20&15]+a[r>>>16&15]+a[r>>>28&15]+a[r>>>24&15]+a[e>>>4&15]+a[15&e]+a[e>>>12&15]+a[e>>>8&15]+a[e>>>20&15]+a[e>>>16&15]+a[e>>>28&15]+a[e>>>24&15]+a[i>>>4&15]+a[15&i]+a[i>>>12&15]+a[i>>>8&15]+a[i>>>20&15]+a[i>>>16&15]+a[i>>>28&15]+a[i>>>24&15]},g.prototype.toString=g.prototype.hex,g.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]},g.prototype.array=g.prototype.digest,g.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},g.prototype.buffer=g.prototype.arrayBuffer,g.prototype.base64=function(){for(var t,r,e,i="",s=this.array(),h=0;h<15;)t=s[h++],r=s[h++],e=s[h++],i+=p[t>>>2]+p[63&(t<<4|r>>>4)]+p[63&(r<<2|e>>>6)]+p[63&e];return t=s[h],i+=p[t>>>2]+p[t<<4&63]+"=="},O.prototype=new g,O.prototype.finalize=function(){if(g.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();g.call(this,this.sharedMemory),this.update(this.oKeyPad),this.update(t),g.prototype.finalize.call(this)}};var S=function(){var t=A("hex");s&&(t=_(t)),t.create=function(){return new g},t.update=function(r){return t.create().update(r)};for(var r=0;r<y.length;++r){var e=y[r];t[e]=A(e)}return t}();S.md5=S,S.md5.hmac=function(){var t=B("hex");t.create=function(t){return new O(t)},t.update=function(r,e){return t.create(r).update(e)};for(var r=0;r<y.length;++r){var e=y[r];t[e]=B(e)}return t}(),h?module.exports=S:(e.md5=S,n&&define(function(){return S}))}();
package/build/md5.min.mjs CHANGED
@@ -3,8 +3,8 @@ function t(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"de
3
3
  * [js-md5]{@link https://github.com/emn178/js-md5}
4
4
  *
5
5
  * @namespace md5
6
- * @version 0.10.0
6
+ * @version 0.11.0
7
7
  * @author Chen, Yi-Cyuan [emn178@gmail.com]
8
8
  * @copyright Chen, Yi-Cyuan 2014-2026
9
9
  * @license MIT
10
- */r=e,function(){var t="input is invalid type",e="object"==typeof window,i=e?window:{};i.JS_MD5_NO_WINDOW&&(e=!1),"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope&&(i=self);var h=!i.JS_MD5_NO_COMMON_JS&&r.exports,s=!i.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,a="0123456789abcdef".split(""),n=[128,32768,8388608,-2147483648],o=[0,8,16,24],f=["hex","array","digest","arrayBuffer"];f.push("buffer"),f.push("base64");var u,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),y=[];if(s){var c=new ArrayBuffer(68);u=new Uint8Array(c),y=new Uint32Array(c)}var l=Array.isArray;!i.JS_MD5_NO_NODE_JS&&l||(l=function(t){return"[object Array]"===Object.prototype.toString.call(t)});var d=ArrayBuffer.isView;!s||!i.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&d||(d=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var b=function(r){var e=typeof r;if("string"===e)return[r,!0];if("object"!==e||null===r)throw new Error(t);if(s&&r.constructor===ArrayBuffer)return[new Uint8Array(r),!1];if(!l(r)&&!d(r))throw new Error(t);return[r,!1]},v=function(t){return function(r){return new A(!0).update(r)[t]()}},w=function(t){return function(r,e){return new _(r,!0).update(e)[t]()}};function A(t){if(t)y[0]=y[16]=y[1]=y[2]=y[3]=y[4]=y[5]=y[6]=y[7]=y[8]=y[9]=y[10]=y[11]=y[12]=y[13]=y[14]=y[15]=0,this.blocks=y,this.buffer8=u;else if(s){var r=new ArrayBuffer(68);this.buffer8=new Uint8Array(r),this.blocks=new Uint32Array(r)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}function _(t,r){var e,i=b(t);if(t=i[0],i[1]){var h,s,a=[],n=t.length,o=0;for(e=0;e<n;++e)(h=t.charCodeAt(e))<128?a[o++]=h:h<2048?(a[o++]=192|h>>>6,a[o++]=128|63&h):h<55296||h>=57344?(a[o++]=224|h>>>12,a[o++]=128|h>>>6&63,a[o++]=128|63&h):h<56320&&(s=t.charCodeAt(e+1))>=56320&&s<57344?(++e,h=65536+((1023&h)<<10|1023&s),a[o++]=240|h>>>18,a[o++]=128|h>>>12&63,a[o++]=128|h>>>6&63,a[o++]=128|63&h):(a[o++]=239,a[o++]=191,a[o++]=189);t=a}t.length>64&&(t=new A(!0).update(t).array());var f=[],u=[];for(e=0;e<64;++e){var p=t[e]||0;f[e]=92^p,u[e]=54^p}A.call(this,r),this.update(u),this.oKeyPad=f,this.inner=!0,this.sharedMemory=r}A.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var r=b(t);t=r[0];for(var e,i,h,a=r[1],n=0,f=t.length,u=this.blocks,p=this.buffer8;n<f;){if(this.hashed&&(this.hashed=!1,u[0]=u[16],u[16]=u[1]=u[2]=u[3]=u[4]=u[5]=u[6]=u[7]=u[8]=u[9]=u[10]=u[11]=u[12]=u[13]=u[14]=u[15]=0),a)if(s)for(h=this.start;n<f&&h<64;++n)(e=t.charCodeAt(n))<128?p[h++]=e:e<2048?(p[h++]=192|e>>>6,p[h++]=128|63&e):e<55296||e>=57344?(p[h++]=224|e>>>12,p[h++]=128|e>>>6&63,p[h++]=128|63&e):e<56320&&(i=t.charCodeAt(n+1))>=56320&&i<57344?(++n,e=65536+((1023&e)<<10|1023&i),p[h++]=240|e>>>18,p[h++]=128|e>>>12&63,p[h++]=128|e>>>6&63,p[h++]=128|63&e):(p[h++]=239,p[h++]=191,p[h++]=189);else for(h=this.start;n<f&&h<64;++n)(e=t.charCodeAt(n))<128?u[h>>>2]|=e<<o[3&h++]:e<2048?(u[h>>>2]|=(192|e>>>6)<<o[3&h++],u[h>>>2]|=(128|63&e)<<o[3&h++]):e<55296||e>=57344?(u[h>>>2]|=(224|e>>>12)<<o[3&h++],u[h>>>2]|=(128|e>>>6&63)<<o[3&h++],u[h>>>2]|=(128|63&e)<<o[3&h++]):e<56320&&(i=t.charCodeAt(n+1))>=56320&&i<57344?(++n,e=65536+((1023&e)<<10|1023&i),u[h>>>2]|=(240|e>>>18)<<o[3&h++],u[h>>>2]|=(128|e>>>12&63)<<o[3&h++],u[h>>>2]|=(128|e>>>6&63)<<o[3&h++],u[h>>>2]|=(128|63&e)<<o[3&h++]):(u[h>>>2]|=239<<o[3&h++],u[h>>>2]|=191<<o[3&h++],u[h>>>2]|=189<<o[3&h++]);else if(s)for(h=this.start;n<f&&h<64;++n)p[h++]=t[n];else for(h=this.start;n<f&&h<64;++n)u[h>>>2]|=t[n]<<o[3&h++];this.lastByteIndex=h,this.bytes+=h-this.start,h>=64?(this.start=h-64,this.hash(),this.hashed=!0):this.start=h}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this},A.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,r=this.lastByteIndex;t[r>>>2]|=n[3&r],r>=56&&(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()}},A.prototype.hash=function(){var t,r,e,i,h,s,a=this.blocks;this.first?r=((r=((t=((t=a[0]-680876937)<<7|t>>>25)-271733879|0)^(e=((e=(-271733879^(i=((i=(-1732584194^2004318071&t)+a[1]-117830708)<<12|i>>>20)+t|0)&(-271733879^t))+a[2]-1126478375)<<17|e>>>15)+i|0)&(i^t))+a[3]-1316259209)<<22|r>>>10)+e|0:(t=this.h0,r=this.h1,e=this.h2,r=((r+=((t=((t+=((i=this.h3)^r&(e^i))+a[0]-680876936)<<7|t>>>25)+r|0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+a[1]-389564586)<<12|i>>>20)+t|0)&(t^r))+a[2]+606105819)<<17|e>>>15)+i|0)&(i^t))+a[3]-1044525330)<<22|r>>>10)+e|0),r=((r+=((t=((t+=(i^r&(e^i))+a[4]-176418897)<<7|t>>>25)+r|0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+a[5]+1200080426)<<12|i>>>20)+t|0)&(t^r))+a[6]-1473231341)<<17|e>>>15)+i|0)&(i^t))+a[7]-45705983)<<22|r>>>10)+e|0,r=((r+=((t=((t+=(i^r&(e^i))+a[8]+1770035416)<<7|t>>>25)+r|0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+a[9]-1958414417)<<12|i>>>20)+t|0)&(t^r))+a[10]-42063)<<17|e>>>15)+i|0)&(i^t))+a[11]-1990404162)<<22|r>>>10)+e|0,r=((r+=((t=((t+=(i^r&(e^i))+a[12]+1804603682)<<7|t>>>25)+r|0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+a[13]-40341101)<<12|i>>>20)+t|0)&(t^r))+a[14]-1502002290)<<17|e>>>15)+i|0)&(i^t))+a[15]+1236535329)<<22|r>>>10)+e|0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+a[1]-165796510)<<5|t>>>27)+r|0)^r))+a[6]-1069501632)<<9|i>>>23)+t|0)^t&((e=((e+=(t^r&(i^t))+a[11]+643717713)<<14|e>>>18)+i|0)^i))+a[0]-373897302)<<20|r>>>12)+e|0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+a[5]-701558691)<<5|t>>>27)+r|0)^r))+a[10]+38016083)<<9|i>>>23)+t|0)^t&((e=((e+=(t^r&(i^t))+a[15]-660478335)<<14|e>>>18)+i|0)^i))+a[4]-405537848)<<20|r>>>12)+e|0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+a[9]+568446438)<<5|t>>>27)+r|0)^r))+a[14]-1019803690)<<9|i>>>23)+t|0)^t&((e=((e+=(t^r&(i^t))+a[3]-187363961)<<14|e>>>18)+i|0)^i))+a[8]+1163531501)<<20|r>>>12)+e|0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+a[13]-1444681467)<<5|t>>>27)+r|0)^r))+a[2]-51403784)<<9|i>>>23)+t|0)^t&((e=((e+=(t^r&(i^t))+a[7]+1735328473)<<14|e>>>18)+i|0)^i))+a[12]-1926607734)<<20|r>>>12)+e|0,r=((r+=((s=(i=((i+=((h=r^e)^(t=((t+=(h^i)+a[5]-378558)<<4|t>>>28)+r|0))+a[8]-2022574463)<<11|i>>>21)+t|0)^t)^(e=((e+=(s^r)+a[11]+1839030562)<<16|e>>>16)+i|0))+a[14]-35309556)<<23|r>>>9)+e|0,r=((r+=((s=(i=((i+=((h=r^e)^(t=((t+=(h^i)+a[1]-1530992060)<<4|t>>>28)+r|0))+a[4]+1272893353)<<11|i>>>21)+t|0)^t)^(e=((e+=(s^r)+a[7]-155497632)<<16|e>>>16)+i|0))+a[10]-1094730640)<<23|r>>>9)+e|0,r=((r+=((s=(i=((i+=((h=r^e)^(t=((t+=(h^i)+a[13]+681279174)<<4|t>>>28)+r|0))+a[0]-358537222)<<11|i>>>21)+t|0)^t)^(e=((e+=(s^r)+a[3]-722521979)<<16|e>>>16)+i|0))+a[6]+76029189)<<23|r>>>9)+e|0,r=((r+=((s=(i=((i+=((h=r^e)^(t=((t+=(h^i)+a[9]-640364487)<<4|t>>>28)+r|0))+a[12]-421815835)<<11|i>>>21)+t|0)^t)^(e=((e+=(s^r)+a[15]+530742520)<<16|e>>>16)+i|0))+a[2]-995338651)<<23|r>>>9)+e|0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+a[0]-198630844)<<6|t>>>26)+r|0)|~e))+a[7]+1126891415)<<10|i>>>22)+t|0)^((e=((e+=(t^(i|~r))+a[14]-1416354905)<<15|e>>>17)+i|0)|~t))+a[5]-57434055)<<21|r>>>11)+e|0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+a[12]+1700485571)<<6|t>>>26)+r|0)|~e))+a[3]-1894986606)<<10|i>>>22)+t|0)^((e=((e+=(t^(i|~r))+a[10]-1051523)<<15|e>>>17)+i|0)|~t))+a[1]-2054922799)<<21|r>>>11)+e|0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+a[8]+1873313359)<<6|t>>>26)+r|0)|~e))+a[15]-30611744)<<10|i>>>22)+t|0)^((e=((e+=(t^(i|~r))+a[6]-1560198380)<<15|e>>>17)+i|0)|~t))+a[13]+1309151649)<<21|r>>>11)+e|0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+a[4]-145523070)<<6|t>>>26)+r|0)|~e))+a[11]-1120210379)<<10|i>>>22)+t|0)^((e=((e+=(t^(i|~r))+a[2]+718787259)<<15|e>>>17)+i|0)|~t))+a[9]-343485551)<<21|r>>>11)+e|0,this.first?(this.h0=t+1732584193|0,this.h1=r-271733879|0,this.h2=e-1732584194|0,this.h3=i+271733878|0,this.first=!1):(this.h0=this.h0+t|0,this.h1=this.h1+r|0,this.h2=this.h2+e|0,this.h3=this.h3+i|0)},A.prototype.hex=function(){this.finalize();var t=this.h0,r=this.h1,e=this.h2,i=this.h3;return a[t>>>4&15]+a[15&t]+a[t>>>12&15]+a[t>>>8&15]+a[t>>>20&15]+a[t>>>16&15]+a[t>>>28&15]+a[t>>>24&15]+a[r>>>4&15]+a[15&r]+a[r>>>12&15]+a[r>>>8&15]+a[r>>>20&15]+a[r>>>16&15]+a[r>>>28&15]+a[r>>>24&15]+a[e>>>4&15]+a[15&e]+a[e>>>12&15]+a[e>>>8&15]+a[e>>>20&15]+a[e>>>16&15]+a[e>>>28&15]+a[e>>>24&15]+a[i>>>4&15]+a[15&i]+a[i>>>12&15]+a[i>>>8&15]+a[i>>>20&15]+a[i>>>16&15]+a[i>>>28&15]+a[i>>>24&15]},A.prototype.toString=A.prototype.hex,A.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]},A.prototype.array=A.prototype.digest,A.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},A.prototype.buffer=A.prototype.arrayBuffer,A.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+=p[t>>>2]+p[63&(t<<4|r>>>4)]+p[63&(r<<2|e>>>6)]+p[63&e];return t=h[s],i+=p[t>>>2]+p[t<<4&63]+"=="},_.prototype=new A,_.prototype.finalize=function(){if(A.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();A.call(this,this.sharedMemory),this.update(this.oKeyPad),this.update(t),A.prototype.finalize.call(this)}};var B=function(){var t=v("hex");t.create=function(){return new A},t.update=function(r){return t.create().update(r)};for(var r=0;r<f.length;++r){var e=f[r];t[e]=v(e)}return t}();B.md5=B,B.md5.hmac=function(){var t=w("hex");t.create=function(t){return new _(t)},t.update=function(r,e){return t.create(r).update(e)};for(var r=0;r<f.length;++r){var e=f[r];t[e]=w(e)}return t}(),h?r.exports=B:i.md5=B}();var i=t(e.exports);export{i as default,i as md5};
10
+ */r=e,function(){var t="input is invalid type",e="object"==typeof window,i=e?window:{};i.JS_MD5_NO_WINDOW&&(e=!1),"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope&&(i=self);var h=!i.JS_MD5_NO_COMMON_JS&&r.exports,s=!i.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,n="0123456789abcdef".split(""),a=[128,32768,8388608,-2147483648],o=[0,8,16,24],f=["hex","array","digest","arrayBuffer"];f.push("buffer"),f.push("base64");var u,y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),p=[];if(s){var c=new ArrayBuffer(68);u=new Uint8Array(c),p=new Uint32Array(c)}var l=Array.isArray;!i.JS_MD5_NO_NODE_JS&&l||(l=function(t){return"[object Array]"===Object.prototype.toString.call(t)});var d=s?ArrayBuffer.isView:null;!s||!i.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&d||(d=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var b=function(r){var e=typeof r;if("string"===e)return[r,!0];if("object"!==e||null===r)throw new Error(t);if(s&&r.constructor===ArrayBuffer)return[new Uint8Array(r),!1];if(l(r))return[r,!1];if(!s||!d(r))throw new Error(t);return[new Uint8Array(r.buffer,r.byteOffset,r.byteLength),!1]},v=function(t){return function(r){return new A(!0).update(r)[t]()}},w=function(t){return function(r,e){return new _(r,!0).update(e)[t]()}};function A(t){if(t)p[0]=p[16]=p[1]=p[2]=p[3]=p[4]=p[5]=p[6]=p[7]=p[8]=p[9]=p[10]=p[11]=p[12]=p[13]=p[14]=p[15]=0,this.blocks=p,this.buffer8=u;else if(s){var r=new ArrayBuffer(68);this.buffer8=new Uint8Array(r),this.blocks=new Uint32Array(r)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}function _(t,r){var e,i=b(t);if(t=i[0],i[1]){var h,s,n=[],a=t.length,o=0;for(e=0;e<a;++e)(h=t.charCodeAt(e))<128?n[o++]=h:h<2048?(n[o++]=192|h>>>6,n[o++]=128|63&h):h<55296||h>=57344?(n[o++]=224|h>>>12,n[o++]=128|h>>>6&63,n[o++]=128|63&h):h<56320&&(s=t.charCodeAt(e+1))>=56320&&s<57344?(++e,h=65536+((1023&h)<<10|1023&s),n[o++]=240|h>>>18,n[o++]=128|h>>>12&63,n[o++]=128|h>>>6&63,n[o++]=128|63&h):(n[o++]=239,n[o++]=191,n[o++]=189);t=n}t.length>64&&(t=new A(!0).update(t).array());var f=[],u=[];for(e=0;e<64;++e){var y=t[e]||0;f[e]=92^y,u[e]=54^y}A.call(this,r),this.update(u),this.oKeyPad=f,this.inner=!0,this.sharedMemory=r}A.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var r=b(t);t=r[0];for(var e,i,h,n=r[1],a=0,f=t.length,u=this.blocks,y=this.buffer8;a<f;){if(this.hashed&&(this.hashed=!1,u[0]=u[16],u[16]=u[1]=u[2]=u[3]=u[4]=u[5]=u[6]=u[7]=u[8]=u[9]=u[10]=u[11]=u[12]=u[13]=u[14]=u[15]=0),n)if(s)for(h=this.start;a<f&&h<64;++a)(e=t.charCodeAt(a))<128?y[h++]=e:e<2048?(y[h++]=192|e>>>6,y[h++]=128|63&e):e<55296||e>=57344?(y[h++]=224|e>>>12,y[h++]=128|e>>>6&63,y[h++]=128|63&e):e<56320&&(i=t.charCodeAt(a+1))>=56320&&i<57344?(++a,e=65536+((1023&e)<<10|1023&i),y[h++]=240|e>>>18,y[h++]=128|e>>>12&63,y[h++]=128|e>>>6&63,y[h++]=128|63&e):(y[h++]=239,y[h++]=191,y[h++]=189);else for(h=this.start;a<f&&h<64;++a)(e=t.charCodeAt(a))<128?u[h>>>2]|=e<<o[3&h++]:e<2048?(u[h>>>2]|=(192|e>>>6)<<o[3&h++],u[h>>>2]|=(128|63&e)<<o[3&h++]):e<55296||e>=57344?(u[h>>>2]|=(224|e>>>12)<<o[3&h++],u[h>>>2]|=(128|e>>>6&63)<<o[3&h++],u[h>>>2]|=(128|63&e)<<o[3&h++]):e<56320&&(i=t.charCodeAt(a+1))>=56320&&i<57344?(++a,e=65536+((1023&e)<<10|1023&i),u[h>>>2]|=(240|e>>>18)<<o[3&h++],u[h>>>2]|=(128|e>>>12&63)<<o[3&h++],u[h>>>2]|=(128|e>>>6&63)<<o[3&h++],u[h>>>2]|=(128|63&e)<<o[3&h++]):(u[h>>>2]|=239<<o[3&h++],u[h>>>2]|=191<<o[3&h++],u[h>>>2]|=189<<o[3&h++]);else if(s)for(h=this.start;a<f&&h<64;++a)y[h++]=t[a];else for(h=this.start;a<f&&h<64;++a)u[h>>>2]|=t[a]<<o[3&h++];this.lastByteIndex=h,this.bytes+=h-this.start,h>=64?(this.start=h-64,this.hash(),this.hashed=!0):this.start=h}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this},A.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,r=this.lastByteIndex;t[r>>>2]|=a[3&r],r>=56&&(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()}},A.prototype.hash=function(){var t,r,e,i,h,s,n=this.blocks;this.first?r=((r=((t=((t=n[0]-680876937)<<7|t>>>25)-271733879|0)^(e=((e=(-271733879^(i=((i=(-1732584194^2004318071&t)+n[1]-117830708)<<12|i>>>20)+t|0)&(-271733879^t))+n[2]-1126478375)<<17|e>>>15)+i|0)&(i^t))+n[3]-1316259209)<<22|r>>>10)+e|0:(t=this.h0,r=this.h1,e=this.h2,r=((r+=((t=((t+=((i=this.h3)^r&(e^i))+n[0]-680876936)<<7|t>>>25)+r|0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+n[1]-389564586)<<12|i>>>20)+t|0)&(t^r))+n[2]+606105819)<<17|e>>>15)+i|0)&(i^t))+n[3]-1044525330)<<22|r>>>10)+e|0),r=((r+=((t=((t+=(i^r&(e^i))+n[4]-176418897)<<7|t>>>25)+r|0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+n[5]+1200080426)<<12|i>>>20)+t|0)&(t^r))+n[6]-1473231341)<<17|e>>>15)+i|0)&(i^t))+n[7]-45705983)<<22|r>>>10)+e|0,r=((r+=((t=((t+=(i^r&(e^i))+n[8]+1770035416)<<7|t>>>25)+r|0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+n[9]-1958414417)<<12|i>>>20)+t|0)&(t^r))+n[10]-42063)<<17|e>>>15)+i|0)&(i^t))+n[11]-1990404162)<<22|r>>>10)+e|0,r=((r+=((t=((t+=(i^r&(e^i))+n[12]+1804603682)<<7|t>>>25)+r|0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+n[13]-40341101)<<12|i>>>20)+t|0)&(t^r))+n[14]-1502002290)<<17|e>>>15)+i|0)&(i^t))+n[15]+1236535329)<<22|r>>>10)+e|0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+n[1]-165796510)<<5|t>>>27)+r|0)^r))+n[6]-1069501632)<<9|i>>>23)+t|0)^t&((e=((e+=(t^r&(i^t))+n[11]+643717713)<<14|e>>>18)+i|0)^i))+n[0]-373897302)<<20|r>>>12)+e|0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+n[5]-701558691)<<5|t>>>27)+r|0)^r))+n[10]+38016083)<<9|i>>>23)+t|0)^t&((e=((e+=(t^r&(i^t))+n[15]-660478335)<<14|e>>>18)+i|0)^i))+n[4]-405537848)<<20|r>>>12)+e|0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+n[9]+568446438)<<5|t>>>27)+r|0)^r))+n[14]-1019803690)<<9|i>>>23)+t|0)^t&((e=((e+=(t^r&(i^t))+n[3]-187363961)<<14|e>>>18)+i|0)^i))+n[8]+1163531501)<<20|r>>>12)+e|0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+n[13]-1444681467)<<5|t>>>27)+r|0)^r))+n[2]-51403784)<<9|i>>>23)+t|0)^t&((e=((e+=(t^r&(i^t))+n[7]+1735328473)<<14|e>>>18)+i|0)^i))+n[12]-1926607734)<<20|r>>>12)+e|0,r=((r+=((s=(i=((i+=((h=r^e)^(t=((t+=(h^i)+n[5]-378558)<<4|t>>>28)+r|0))+n[8]-2022574463)<<11|i>>>21)+t|0)^t)^(e=((e+=(s^r)+n[11]+1839030562)<<16|e>>>16)+i|0))+n[14]-35309556)<<23|r>>>9)+e|0,r=((r+=((s=(i=((i+=((h=r^e)^(t=((t+=(h^i)+n[1]-1530992060)<<4|t>>>28)+r|0))+n[4]+1272893353)<<11|i>>>21)+t|0)^t)^(e=((e+=(s^r)+n[7]-155497632)<<16|e>>>16)+i|0))+n[10]-1094730640)<<23|r>>>9)+e|0,r=((r+=((s=(i=((i+=((h=r^e)^(t=((t+=(h^i)+n[13]+681279174)<<4|t>>>28)+r|0))+n[0]-358537222)<<11|i>>>21)+t|0)^t)^(e=((e+=(s^r)+n[3]-722521979)<<16|e>>>16)+i|0))+n[6]+76029189)<<23|r>>>9)+e|0,r=((r+=((s=(i=((i+=((h=r^e)^(t=((t+=(h^i)+n[9]-640364487)<<4|t>>>28)+r|0))+n[12]-421815835)<<11|i>>>21)+t|0)^t)^(e=((e+=(s^r)+n[15]+530742520)<<16|e>>>16)+i|0))+n[2]-995338651)<<23|r>>>9)+e|0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+n[0]-198630844)<<6|t>>>26)+r|0)|~e))+n[7]+1126891415)<<10|i>>>22)+t|0)^((e=((e+=(t^(i|~r))+n[14]-1416354905)<<15|e>>>17)+i|0)|~t))+n[5]-57434055)<<21|r>>>11)+e|0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+n[12]+1700485571)<<6|t>>>26)+r|0)|~e))+n[3]-1894986606)<<10|i>>>22)+t|0)^((e=((e+=(t^(i|~r))+n[10]-1051523)<<15|e>>>17)+i|0)|~t))+n[1]-2054922799)<<21|r>>>11)+e|0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+n[8]+1873313359)<<6|t>>>26)+r|0)|~e))+n[15]-30611744)<<10|i>>>22)+t|0)^((e=((e+=(t^(i|~r))+n[6]-1560198380)<<15|e>>>17)+i|0)|~t))+n[13]+1309151649)<<21|r>>>11)+e|0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+n[4]-145523070)<<6|t>>>26)+r|0)|~e))+n[11]-1120210379)<<10|i>>>22)+t|0)^((e=((e+=(t^(i|~r))+n[2]+718787259)<<15|e>>>17)+i|0)|~t))+n[9]-343485551)<<21|r>>>11)+e|0,this.first?(this.h0=t+1732584193|0,this.h1=r-271733879|0,this.h2=e-1732584194|0,this.h3=i+271733878|0,this.first=!1):(this.h0=this.h0+t|0,this.h1=this.h1+r|0,this.h2=this.h2+e|0,this.h3=this.h3+i|0)},A.prototype.hex=function(){this.finalize();var t=this.h0,r=this.h1,e=this.h2,i=this.h3;return n[t>>>4&15]+n[15&t]+n[t>>>12&15]+n[t>>>8&15]+n[t>>>20&15]+n[t>>>16&15]+n[t>>>28&15]+n[t>>>24&15]+n[r>>>4&15]+n[15&r]+n[r>>>12&15]+n[r>>>8&15]+n[r>>>20&15]+n[r>>>16&15]+n[r>>>28&15]+n[r>>>24&15]+n[e>>>4&15]+n[15&e]+n[e>>>12&15]+n[e>>>8&15]+n[e>>>20&15]+n[e>>>16&15]+n[e>>>28&15]+n[e>>>24&15]+n[i>>>4&15]+n[15&i]+n[i>>>12&15]+n[i>>>8&15]+n[i>>>20&15]+n[i>>>16&15]+n[i>>>28&15]+n[i>>>24&15]},A.prototype.toString=A.prototype.hex,A.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]},A.prototype.array=A.prototype.digest,A.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},A.prototype.buffer=A.prototype.arrayBuffer,A.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+=y[t>>>2]+y[63&(t<<4|r>>>4)]+y[63&(r<<2|e>>>6)]+y[63&e];return t=h[s],i+=y[t>>>2]+y[t<<4&63]+"=="},_.prototype=new A,_.prototype.finalize=function(){if(A.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();A.call(this,this.sharedMemory),this.update(this.oKeyPad),this.update(t),A.prototype.finalize.call(this)}};var B=function(){var t=v("hex");t.create=function(){return new A},t.update=function(r){return t.create().update(r)};for(var r=0;r<f.length;++r){var e=f[r];t[e]=v(e)}return t}();B.md5=B,B.md5.hmac=function(){var t=w("hex");t.create=function(t){return new _(t)},t.update=function(r,e){return t.create(r).update(e)};for(var r=0;r<f.length;++r){var e=f[r];t[e]=w(e)}return t}(),h?r.exports=B:i.md5=B}();var i=t(e.exports);export{i as default,i as md5};
package/build/md5.mjs CHANGED
@@ -8,7 +8,7 @@ var md5$1 = {exports: {}};
8
8
  * [js-md5]{@link https://github.com/emn178/js-md5}
9
9
  *
10
10
  * @namespace md5
11
- * @version 0.10.0
11
+ * @version 0.11.0
12
12
  * @author Chen, Yi-Cyuan [emn178@gmail.com]
13
13
  * @copyright Chen, Yi-Cyuan 2014-2026
14
14
  * @license MIT
@@ -61,7 +61,7 @@ var md5$1 = {exports: {}};
61
61
  };
62
62
  }
63
63
 
64
- var isView = ArrayBuffer.isView;
64
+ var isView = ARRAY_BUFFER ? ArrayBuffer.isView : null;
65
65
  /* istanbul ignore else */
66
66
  if (ARRAY_BUFFER && (root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW || !isView)) {
67
67
  isView = function (obj) {
@@ -81,10 +81,14 @@ var md5$1 = {exports: {}};
81
81
  if (ARRAY_BUFFER && message.constructor === ArrayBuffer) {
82
82
  return [new Uint8Array(message), false];
83
83
  }
84
- if (!isArray(message) && !isView(message)) {
84
+ if (isArray(message)) {
85
+ return [message, false];
86
+ }
87
+ if (!ARRAY_BUFFER || !isView(message)) {
85
88
  throw new Error(INPUT_ERROR);
86
89
  }
87
- return [message, false];
90
+ // read the underlying bytes of any view (DataView, Uint16Array, ...)
91
+ return [new Uint8Array(message.buffer, message.byteOffset, message.byteLength), false];
88
92
  };
89
93
 
90
94
  /**
@@ -2,7 +2,7 @@
2
2
  * [js-md5]{@link https://github.com/emn178/js-md5}
3
3
  *
4
4
  * @namespace md5
5
- * @version 0.10.0
5
+ * @version 0.11.0
6
6
  * @author Chen, Yi-Cyuan [emn178@gmail.com]
7
7
  * @copyright Chen, Yi-Cyuan 2014-2026
8
8
  * @license MIT
@@ -49,7 +49,7 @@
49
49
 
50
50
  var isArray = Array.isArray;
51
51
 
52
- var isView = ArrayBuffer.isView;
52
+ var isView = ArrayBuffer.isView ;
53
53
 
54
54
  // [message: string, isString: bool]
55
55
  var formatMessage = function (message) {
@@ -63,10 +63,14 @@
63
63
  if (message.constructor === ArrayBuffer) {
64
64
  return [new Uint8Array(message), false];
65
65
  }
66
- if (!isArray(message) && !isView(message)) {
66
+ if (isArray(message)) {
67
+ return [message, false];
68
+ }
69
+ if (!isView(message)) {
67
70
  throw new Error(INPUT_ERROR);
68
71
  }
69
- return [message, false];
72
+ // read the underlying bytes of any view (DataView, Uint16Array, ...)
73
+ return [new Uint8Array(message.buffer, message.byteOffset, message.byteLength), false];
70
74
  };
71
75
 
72
76
  /**
@@ -182,6 +186,8 @@
182
186
  throw new Error(INPUT_ERROR);
183
187
  } else if (message.constructor === ArrayBuffer) {
184
188
  message = new Uint8Array(message);
189
+ } else if (isView(message) && message.constructor !== Buffer) {
190
+ message = new Uint8Array(message.buffer, message.byteOffset, message.byteLength);
185
191
  }
186
192
  }
187
193
  if (isArray(message) || isView(message) ||
@@ -2,9 +2,9 @@
2
2
  * [js-md5]{@link https://github.com/emn178/js-md5}
3
3
  *
4
4
  * @namespace md5
5
- * @version 0.10.0
5
+ * @version 0.11.0
6
6
  * @author Chen, Yi-Cyuan [emn178@gmail.com]
7
7
  * @copyright Chen, Yi-Cyuan 2014-2026
8
8
  * @license MIT
9
9
  */
10
- !function(){var t="input is invalid type",r="object"==typeof window,e=r?window:{};e.JS_MD5_NO_WINDOW&&(r=!1);var i="undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope,h=!e.JS_MD5_NO_NODE_JS&&!r&&"object"==typeof process&&process.versions&&process.versions.node;h?e=global:i&&(e=self);var s=!e.JS_MD5_NO_COMMON_JS&&"object"==typeof module&&module.exports,n="function"==typeof define&&define.amd,a="0123456789abcdef".split(""),o=[128,32768,8388608,-2147483648],f=["hex","array","digest","arrayBuffer"];f.push("buffer"),f.push("base64");var u,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),y=[],c=new ArrayBuffer(68);u=new Uint8Array(c),y=new Uint32Array(c);var d=Array.isArray,l=ArrayBuffer.isView,v=function(r){var e=typeof r;if("string"===e)return[r,!0];if("object"!==e||null===r)throw new Error(t);if(r.constructor===ArrayBuffer)return[new Uint8Array(r),!1];if(!d(r)&&!l(r))throw new Error(t);return[r,!1]},b=function(t){return function(r){return new B(!0).update(r)[t]()}},w=function(r){var e=require("crypto"),i=require("buffer").Buffer,h=i.from;return function(s){if("string"==typeof s)return e.createHash("md5").update(s,"utf8").digest("hex");if(null==s)throw new Error(t);return s.constructor===ArrayBuffer&&(s=new Uint8Array(s)),d(s)||l(s)||s.constructor===i?e.createHash("md5").update(h(s)).digest("hex"):r(s)}},A=function(t){return function(r,e){return new g(r,!0).update(e)[t]()}};function B(t){if(t)y[0]=y[16]=y[1]=y[2]=y[3]=y[4]=y[5]=y[6]=y[7]=y[8]=y[9]=y[10]=y[11]=y[12]=y[13]=y[14]=y[15]=0,this.blocks=y,this.buffer8=u;else{var r=new ArrayBuffer(68);this.buffer8=new Uint8Array(r),this.blocks=new Uint32Array(r)}this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}function g(t,r){var e,i=v(t);if(t=i[0],i[1]){var h,s,n=[],a=t.length,o=0;for(e=0;e<a;++e)(h=t.charCodeAt(e))<128?n[o++]=h:h<2048?(n[o++]=192|h>>>6,n[o++]=128|63&h):h<55296||h>=57344?(n[o++]=224|h>>>12,n[o++]=128|h>>>6&63,n[o++]=128|63&h):h<56320&&(s=t.charCodeAt(e+1))>=56320&&s<57344?(++e,h=65536+((1023&h)<<10|1023&s),n[o++]=240|h>>>18,n[o++]=128|h>>>12&63,n[o++]=128|h>>>6&63,n[o++]=128|63&h):(n[o++]=239,n[o++]=191,n[o++]=189);t=n}t.length>64&&(t=new B(!0).update(t).array());var f=[],u=[];for(e=0;e<64;++e){var p=t[e]||0;f[e]=92^p,u[e]=54^p}B.call(this,r),this.update(u),this.oKeyPad=f,this.inner=!0,this.sharedMemory=r}B.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var r=v(t);t=r[0];for(var e,i,h,s=r[1],n=0,a=t.length,o=this.blocks,f=this.buffer8;n<a;){if(this.hashed&&(this.hashed=!1,o[0]=o[16],o[16]=o[1]=o[2]=o[3]=o[4]=o[5]=o[6]=o[7]=o[8]=o[9]=o[10]=o[11]=o[12]=o[13]=o[14]=o[15]=0),s)for(h=this.start;n<a&&h<64;++n)(e=t.charCodeAt(n))<128?f[h++]=e:e<2048?(f[h++]=192|e>>>6,f[h++]=128|63&e):e<55296||e>=57344?(f[h++]=224|e>>>12,f[h++]=128|e>>>6&63,f[h++]=128|63&e):e<56320&&(i=t.charCodeAt(n+1))>=56320&&i<57344?(++n,e=65536+((1023&e)<<10|1023&i),f[h++]=240|e>>>18,f[h++]=128|e>>>12&63,f[h++]=128|e>>>6&63,f[h++]=128|63&e):(f[h++]=239,f[h++]=191,f[h++]=189);else for(h=this.start;n<a&&h<64;++n)f[h++]=t[n];this.lastByteIndex=h,this.bytes+=h-this.start,h>=64?(this.start=h-64,this.hash(),this.hashed=!0):this.start=h}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this},B.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,r=this.lastByteIndex;t[r>>>2]|=o[3&r],r>=56&&(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()}},B.prototype.hash=function(){var t,r,e,i,h,s,n=this.blocks;this.first?r=((r=((t=((t=n[0]-680876937)<<7|t>>>25)-271733879|0)^(e=((e=(-271733879^(i=((i=(-1732584194^2004318071&t)+n[1]-117830708)<<12|i>>>20)+t|0)&(-271733879^t))+n[2]-1126478375)<<17|e>>>15)+i|0)&(i^t))+n[3]-1316259209)<<22|r>>>10)+e|0:(t=this.h0,r=this.h1,e=this.h2,r=((r+=((t=((t+=((i=this.h3)^r&(e^i))+n[0]-680876936)<<7|t>>>25)+r|0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+n[1]-389564586)<<12|i>>>20)+t|0)&(t^r))+n[2]+606105819)<<17|e>>>15)+i|0)&(i^t))+n[3]-1044525330)<<22|r>>>10)+e|0),r=((r+=((t=((t+=(i^r&(e^i))+n[4]-176418897)<<7|t>>>25)+r|0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+n[5]+1200080426)<<12|i>>>20)+t|0)&(t^r))+n[6]-1473231341)<<17|e>>>15)+i|0)&(i^t))+n[7]-45705983)<<22|r>>>10)+e|0,r=((r+=((t=((t+=(i^r&(e^i))+n[8]+1770035416)<<7|t>>>25)+r|0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+n[9]-1958414417)<<12|i>>>20)+t|0)&(t^r))+n[10]-42063)<<17|e>>>15)+i|0)&(i^t))+n[11]-1990404162)<<22|r>>>10)+e|0,r=((r+=((t=((t+=(i^r&(e^i))+n[12]+1804603682)<<7|t>>>25)+r|0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+n[13]-40341101)<<12|i>>>20)+t|0)&(t^r))+n[14]-1502002290)<<17|e>>>15)+i|0)&(i^t))+n[15]+1236535329)<<22|r>>>10)+e|0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+n[1]-165796510)<<5|t>>>27)+r|0)^r))+n[6]-1069501632)<<9|i>>>23)+t|0)^t&((e=((e+=(t^r&(i^t))+n[11]+643717713)<<14|e>>>18)+i|0)^i))+n[0]-373897302)<<20|r>>>12)+e|0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+n[5]-701558691)<<5|t>>>27)+r|0)^r))+n[10]+38016083)<<9|i>>>23)+t|0)^t&((e=((e+=(t^r&(i^t))+n[15]-660478335)<<14|e>>>18)+i|0)^i))+n[4]-405537848)<<20|r>>>12)+e|0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+n[9]+568446438)<<5|t>>>27)+r|0)^r))+n[14]-1019803690)<<9|i>>>23)+t|0)^t&((e=((e+=(t^r&(i^t))+n[3]-187363961)<<14|e>>>18)+i|0)^i))+n[8]+1163531501)<<20|r>>>12)+e|0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+n[13]-1444681467)<<5|t>>>27)+r|0)^r))+n[2]-51403784)<<9|i>>>23)+t|0)^t&((e=((e+=(t^r&(i^t))+n[7]+1735328473)<<14|e>>>18)+i|0)^i))+n[12]-1926607734)<<20|r>>>12)+e|0,r=((r+=((s=(i=((i+=((h=r^e)^(t=((t+=(h^i)+n[5]-378558)<<4|t>>>28)+r|0))+n[8]-2022574463)<<11|i>>>21)+t|0)^t)^(e=((e+=(s^r)+n[11]+1839030562)<<16|e>>>16)+i|0))+n[14]-35309556)<<23|r>>>9)+e|0,r=((r+=((s=(i=((i+=((h=r^e)^(t=((t+=(h^i)+n[1]-1530992060)<<4|t>>>28)+r|0))+n[4]+1272893353)<<11|i>>>21)+t|0)^t)^(e=((e+=(s^r)+n[7]-155497632)<<16|e>>>16)+i|0))+n[10]-1094730640)<<23|r>>>9)+e|0,r=((r+=((s=(i=((i+=((h=r^e)^(t=((t+=(h^i)+n[13]+681279174)<<4|t>>>28)+r|0))+n[0]-358537222)<<11|i>>>21)+t|0)^t)^(e=((e+=(s^r)+n[3]-722521979)<<16|e>>>16)+i|0))+n[6]+76029189)<<23|r>>>9)+e|0,r=((r+=((s=(i=((i+=((h=r^e)^(t=((t+=(h^i)+n[9]-640364487)<<4|t>>>28)+r|0))+n[12]-421815835)<<11|i>>>21)+t|0)^t)^(e=((e+=(s^r)+n[15]+530742520)<<16|e>>>16)+i|0))+n[2]-995338651)<<23|r>>>9)+e|0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+n[0]-198630844)<<6|t>>>26)+r|0)|~e))+n[7]+1126891415)<<10|i>>>22)+t|0)^((e=((e+=(t^(i|~r))+n[14]-1416354905)<<15|e>>>17)+i|0)|~t))+n[5]-57434055)<<21|r>>>11)+e|0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+n[12]+1700485571)<<6|t>>>26)+r|0)|~e))+n[3]-1894986606)<<10|i>>>22)+t|0)^((e=((e+=(t^(i|~r))+n[10]-1051523)<<15|e>>>17)+i|0)|~t))+n[1]-2054922799)<<21|r>>>11)+e|0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+n[8]+1873313359)<<6|t>>>26)+r|0)|~e))+n[15]-30611744)<<10|i>>>22)+t|0)^((e=((e+=(t^(i|~r))+n[6]-1560198380)<<15|e>>>17)+i|0)|~t))+n[13]+1309151649)<<21|r>>>11)+e|0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+n[4]-145523070)<<6|t>>>26)+r|0)|~e))+n[11]-1120210379)<<10|i>>>22)+t|0)^((e=((e+=(t^(i|~r))+n[2]+718787259)<<15|e>>>17)+i|0)|~t))+n[9]-343485551)<<21|r>>>11)+e|0,this.first?(this.h0=t+1732584193|0,this.h1=r-271733879|0,this.h2=e-1732584194|0,this.h3=i+271733878|0,this.first=!1):(this.h0=this.h0+t|0,this.h1=this.h1+r|0,this.h2=this.h2+e|0,this.h3=this.h3+i|0)},B.prototype.hex=function(){this.finalize();var t=this.h0,r=this.h1,e=this.h2,i=this.h3;return a[t>>>4&15]+a[15&t]+a[t>>>12&15]+a[t>>>8&15]+a[t>>>20&15]+a[t>>>16&15]+a[t>>>28&15]+a[t>>>24&15]+a[r>>>4&15]+a[15&r]+a[r>>>12&15]+a[r>>>8&15]+a[r>>>20&15]+a[r>>>16&15]+a[r>>>28&15]+a[r>>>24&15]+a[e>>>4&15]+a[15&e]+a[e>>>12&15]+a[e>>>8&15]+a[e>>>20&15]+a[e>>>16&15]+a[e>>>28&15]+a[e>>>24&15]+a[i>>>4&15]+a[15&i]+a[i>>>12&15]+a[i>>>8&15]+a[i>>>20&15]+a[i>>>16&15]+a[i>>>28&15]+a[i>>>24&15]},B.prototype.toString=B.prototype.hex,B.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]},B.prototype.array=B.prototype.digest,B.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},B.prototype.buffer=B.prototype.arrayBuffer,B.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+=p[t>>>2]+p[63&(t<<4|r>>>4)]+p[63&(r<<2|e>>>6)]+p[63&e];return t=h[s],i+=p[t>>>2]+p[t<<4&63]+"=="},g.prototype=new B,g.prototype.finalize=function(){if(B.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();B.call(this,this.sharedMemory),this.update(this.oKeyPad),this.update(t),B.prototype.finalize.call(this)}};var m=function(){var t=b("hex");h&&(t=w(t)),t.create=function(){return new B},t.update=function(r){return t.create().update(r)};for(var r=0;r<f.length;++r){var e=f[r];t[e]=b(e)}return t}();m.md5=m,m.md5.hmac=function(){var t=A("hex");t.create=function(t){return new g(t)},t.update=function(r,e){return t.create(r).update(e)};for(var r=0;r<f.length;++r){var e=f[r];t[e]=A(e)}return t}(),s?module.exports=m:(e.md5=m,n&&define(function(){return m}))}();
10
+ !function(){var t="input is invalid type",r="object"==typeof window,e=r?window:{};e.JS_MD5_NO_WINDOW&&(r=!1);var i="undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope,h=!e.JS_MD5_NO_NODE_JS&&!r&&"object"==typeof process&&process.versions&&process.versions.node;h?e=global:i&&(e=self);var s=!e.JS_MD5_NO_COMMON_JS&&"object"==typeof module&&module.exports,n="function"==typeof define&&define.amd,a="0123456789abcdef".split(""),o=[128,32768,8388608,-2147483648],f=["hex","array","digest","arrayBuffer"];f.push("buffer"),f.push("base64");var u,y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),p=[],c=new ArrayBuffer(68);u=new Uint8Array(c),p=new Uint32Array(c);var d=Array.isArray,l=ArrayBuffer.isView,b=function(r){var e=typeof r;if("string"===e)return[r,!0];if("object"!==e||null===r)throw new Error(t);if(r.constructor===ArrayBuffer)return[new Uint8Array(r),!1];if(d(r))return[r,!1];if(!l(r))throw new Error(t);return[new Uint8Array(r.buffer,r.byteOffset,r.byteLength),!1]},v=function(t){return function(r){return new g(!0).update(r)[t]()}},w=function(r){var e=require("crypto"),i=require("buffer").Buffer,h=i.from;return function(s){if("string"==typeof s)return e.createHash("md5").update(s,"utf8").digest("hex");if(null==s)throw new Error(t);return s.constructor===ArrayBuffer?s=new Uint8Array(s):l(s)&&s.constructor!==i&&(s=new Uint8Array(s.buffer,s.byteOffset,s.byteLength)),d(s)||l(s)||s.constructor===i?e.createHash("md5").update(h(s)).digest("hex"):r(s)}},A=function(t){return function(r,e){return new B(r,!0).update(e)[t]()}};function g(t){if(t)p[0]=p[16]=p[1]=p[2]=p[3]=p[4]=p[5]=p[6]=p[7]=p[8]=p[9]=p[10]=p[11]=p[12]=p[13]=p[14]=p[15]=0,this.blocks=p,this.buffer8=u;else{var r=new ArrayBuffer(68);this.buffer8=new Uint8Array(r),this.blocks=new Uint32Array(r)}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(t,r){var e,i=b(t);if(t=i[0],i[1]){var h,s,n=[],a=t.length,o=0;for(e=0;e<a;++e)(h=t.charCodeAt(e))<128?n[o++]=h:h<2048?(n[o++]=192|h>>>6,n[o++]=128|63&h):h<55296||h>=57344?(n[o++]=224|h>>>12,n[o++]=128|h>>>6&63,n[o++]=128|63&h):h<56320&&(s=t.charCodeAt(e+1))>=56320&&s<57344?(++e,h=65536+((1023&h)<<10|1023&s),n[o++]=240|h>>>18,n[o++]=128|h>>>12&63,n[o++]=128|h>>>6&63,n[o++]=128|63&h):(n[o++]=239,n[o++]=191,n[o++]=189);t=n}t.length>64&&(t=new g(!0).update(t).array());var f=[],u=[];for(e=0;e<64;++e){var y=t[e]||0;f[e]=92^y,u[e]=54^y}g.call(this,r),this.update(u),this.oKeyPad=f,this.inner=!0,this.sharedMemory=r}g.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var r=b(t);t=r[0];for(var e,i,h,s=r[1],n=0,a=t.length,o=this.blocks,f=this.buffer8;n<a;){if(this.hashed&&(this.hashed=!1,o[0]=o[16],o[16]=o[1]=o[2]=o[3]=o[4]=o[5]=o[6]=o[7]=o[8]=o[9]=o[10]=o[11]=o[12]=o[13]=o[14]=o[15]=0),s)for(h=this.start;n<a&&h<64;++n)(e=t.charCodeAt(n))<128?f[h++]=e:e<2048?(f[h++]=192|e>>>6,f[h++]=128|63&e):e<55296||e>=57344?(f[h++]=224|e>>>12,f[h++]=128|e>>>6&63,f[h++]=128|63&e):e<56320&&(i=t.charCodeAt(n+1))>=56320&&i<57344?(++n,e=65536+((1023&e)<<10|1023&i),f[h++]=240|e>>>18,f[h++]=128|e>>>12&63,f[h++]=128|e>>>6&63,f[h++]=128|63&e):(f[h++]=239,f[h++]=191,f[h++]=189);else for(h=this.start;n<a&&h<64;++n)f[h++]=t[n];this.lastByteIndex=h,this.bytes+=h-this.start,h>=64?(this.start=h-64,this.hash(),this.hashed=!0):this.start=h}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this},g.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,r=this.lastByteIndex;t[r>>>2]|=o[3&r],r>=56&&(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()}},g.prototype.hash=function(){var t,r,e,i,h,s,n=this.blocks;this.first?r=((r=((t=((t=n[0]-680876937)<<7|t>>>25)-271733879|0)^(e=((e=(-271733879^(i=((i=(-1732584194^2004318071&t)+n[1]-117830708)<<12|i>>>20)+t|0)&(-271733879^t))+n[2]-1126478375)<<17|e>>>15)+i|0)&(i^t))+n[3]-1316259209)<<22|r>>>10)+e|0:(t=this.h0,r=this.h1,e=this.h2,r=((r+=((t=((t+=((i=this.h3)^r&(e^i))+n[0]-680876936)<<7|t>>>25)+r|0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+n[1]-389564586)<<12|i>>>20)+t|0)&(t^r))+n[2]+606105819)<<17|e>>>15)+i|0)&(i^t))+n[3]-1044525330)<<22|r>>>10)+e|0),r=((r+=((t=((t+=(i^r&(e^i))+n[4]-176418897)<<7|t>>>25)+r|0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+n[5]+1200080426)<<12|i>>>20)+t|0)&(t^r))+n[6]-1473231341)<<17|e>>>15)+i|0)&(i^t))+n[7]-45705983)<<22|r>>>10)+e|0,r=((r+=((t=((t+=(i^r&(e^i))+n[8]+1770035416)<<7|t>>>25)+r|0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+n[9]-1958414417)<<12|i>>>20)+t|0)&(t^r))+n[10]-42063)<<17|e>>>15)+i|0)&(i^t))+n[11]-1990404162)<<22|r>>>10)+e|0,r=((r+=((t=((t+=(i^r&(e^i))+n[12]+1804603682)<<7|t>>>25)+r|0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+n[13]-40341101)<<12|i>>>20)+t|0)&(t^r))+n[14]-1502002290)<<17|e>>>15)+i|0)&(i^t))+n[15]+1236535329)<<22|r>>>10)+e|0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+n[1]-165796510)<<5|t>>>27)+r|0)^r))+n[6]-1069501632)<<9|i>>>23)+t|0)^t&((e=((e+=(t^r&(i^t))+n[11]+643717713)<<14|e>>>18)+i|0)^i))+n[0]-373897302)<<20|r>>>12)+e|0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+n[5]-701558691)<<5|t>>>27)+r|0)^r))+n[10]+38016083)<<9|i>>>23)+t|0)^t&((e=((e+=(t^r&(i^t))+n[15]-660478335)<<14|e>>>18)+i|0)^i))+n[4]-405537848)<<20|r>>>12)+e|0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+n[9]+568446438)<<5|t>>>27)+r|0)^r))+n[14]-1019803690)<<9|i>>>23)+t|0)^t&((e=((e+=(t^r&(i^t))+n[3]-187363961)<<14|e>>>18)+i|0)^i))+n[8]+1163531501)<<20|r>>>12)+e|0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+n[13]-1444681467)<<5|t>>>27)+r|0)^r))+n[2]-51403784)<<9|i>>>23)+t|0)^t&((e=((e+=(t^r&(i^t))+n[7]+1735328473)<<14|e>>>18)+i|0)^i))+n[12]-1926607734)<<20|r>>>12)+e|0,r=((r+=((s=(i=((i+=((h=r^e)^(t=((t+=(h^i)+n[5]-378558)<<4|t>>>28)+r|0))+n[8]-2022574463)<<11|i>>>21)+t|0)^t)^(e=((e+=(s^r)+n[11]+1839030562)<<16|e>>>16)+i|0))+n[14]-35309556)<<23|r>>>9)+e|0,r=((r+=((s=(i=((i+=((h=r^e)^(t=((t+=(h^i)+n[1]-1530992060)<<4|t>>>28)+r|0))+n[4]+1272893353)<<11|i>>>21)+t|0)^t)^(e=((e+=(s^r)+n[7]-155497632)<<16|e>>>16)+i|0))+n[10]-1094730640)<<23|r>>>9)+e|0,r=((r+=((s=(i=((i+=((h=r^e)^(t=((t+=(h^i)+n[13]+681279174)<<4|t>>>28)+r|0))+n[0]-358537222)<<11|i>>>21)+t|0)^t)^(e=((e+=(s^r)+n[3]-722521979)<<16|e>>>16)+i|0))+n[6]+76029189)<<23|r>>>9)+e|0,r=((r+=((s=(i=((i+=((h=r^e)^(t=((t+=(h^i)+n[9]-640364487)<<4|t>>>28)+r|0))+n[12]-421815835)<<11|i>>>21)+t|0)^t)^(e=((e+=(s^r)+n[15]+530742520)<<16|e>>>16)+i|0))+n[2]-995338651)<<23|r>>>9)+e|0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+n[0]-198630844)<<6|t>>>26)+r|0)|~e))+n[7]+1126891415)<<10|i>>>22)+t|0)^((e=((e+=(t^(i|~r))+n[14]-1416354905)<<15|e>>>17)+i|0)|~t))+n[5]-57434055)<<21|r>>>11)+e|0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+n[12]+1700485571)<<6|t>>>26)+r|0)|~e))+n[3]-1894986606)<<10|i>>>22)+t|0)^((e=((e+=(t^(i|~r))+n[10]-1051523)<<15|e>>>17)+i|0)|~t))+n[1]-2054922799)<<21|r>>>11)+e|0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+n[8]+1873313359)<<6|t>>>26)+r|0)|~e))+n[15]-30611744)<<10|i>>>22)+t|0)^((e=((e+=(t^(i|~r))+n[6]-1560198380)<<15|e>>>17)+i|0)|~t))+n[13]+1309151649)<<21|r>>>11)+e|0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+n[4]-145523070)<<6|t>>>26)+r|0)|~e))+n[11]-1120210379)<<10|i>>>22)+t|0)^((e=((e+=(t^(i|~r))+n[2]+718787259)<<15|e>>>17)+i|0)|~t))+n[9]-343485551)<<21|r>>>11)+e|0,this.first?(this.h0=t+1732584193|0,this.h1=r-271733879|0,this.h2=e-1732584194|0,this.h3=i+271733878|0,this.first=!1):(this.h0=this.h0+t|0,this.h1=this.h1+r|0,this.h2=this.h2+e|0,this.h3=this.h3+i|0)},g.prototype.hex=function(){this.finalize();var t=this.h0,r=this.h1,e=this.h2,i=this.h3;return a[t>>>4&15]+a[15&t]+a[t>>>12&15]+a[t>>>8&15]+a[t>>>20&15]+a[t>>>16&15]+a[t>>>28&15]+a[t>>>24&15]+a[r>>>4&15]+a[15&r]+a[r>>>12&15]+a[r>>>8&15]+a[r>>>20&15]+a[r>>>16&15]+a[r>>>28&15]+a[r>>>24&15]+a[e>>>4&15]+a[15&e]+a[e>>>12&15]+a[e>>>8&15]+a[e>>>20&15]+a[e>>>16&15]+a[e>>>28&15]+a[e>>>24&15]+a[i>>>4&15]+a[15&i]+a[i>>>12&15]+a[i>>>8&15]+a[i>>>20&15]+a[i>>>16&15]+a[i>>>28&15]+a[i>>>24&15]},g.prototype.toString=g.prototype.hex,g.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]},g.prototype.array=g.prototype.digest,g.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},g.prototype.buffer=g.prototype.arrayBuffer,g.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+=y[t>>>2]+y[63&(t<<4|r>>>4)]+y[63&(r<<2|e>>>6)]+y[63&e];return t=h[s],i+=y[t>>>2]+y[t<<4&63]+"=="},B.prototype=new g,B.prototype.finalize=function(){if(g.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();g.call(this,this.sharedMemory),this.update(this.oKeyPad),this.update(t),g.prototype.finalize.call(this)}};var m=function(){var t=v("hex");h&&(t=w(t)),t.create=function(){return new g},t.update=function(r){return t.create().update(r)};for(var r=0;r<f.length;++r){var e=f[r];t[e]=v(e)}return t}();m.md5=m,m.md5.hmac=function(){var t=A("hex");t.create=function(t){return new B(t)},t.update=function(r,e){return t.create(r).update(e)};for(var r=0;r<f.length;++r){var e=f[r];t[e]=A(e)}return t}(),s?module.exports=m:(e.md5=m,n&&define(function(){return m}))}();
@@ -3,8 +3,8 @@ function t(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"de
3
3
  * [js-md5]{@link https://github.com/emn178/js-md5}
4
4
  *
5
5
  * @namespace md5
6
- * @version 0.10.0
6
+ * @version 0.11.0
7
7
  * @author Chen, Yi-Cyuan [emn178@gmail.com]
8
8
  * @copyright Chen, Yi-Cyuan 2014-2026
9
9
  * @license MIT
10
- */r=e,function(){var t="input is invalid type",e="object"==typeof window,i=e?window:{};i.JS_MD5_NO_WINDOW&&(e=!1),"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope&&(i=self);var h=!i.JS_MD5_NO_COMMON_JS&&r.exports,s="0123456789abcdef".split(""),a=[128,32768,8388608,-2147483648],n=["hex","array","digest","arrayBuffer"];n.push("buffer"),n.push("base64");var o,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),u=[],p=new ArrayBuffer(68);o=new Uint8Array(p),u=new Uint32Array(p);var y=Array.isArray,l=ArrayBuffer.isView,c=function(r){var e=typeof r;if("string"===e)return[r,!0];if("object"!==e||null===r)throw new Error(t);if(r.constructor===ArrayBuffer)return[new Uint8Array(r),!1];if(!y(r)&&!l(r))throw new Error(t);return[r,!1]},d=function(t){return function(r){return new w(!0).update(r)[t]()}},v=function(t){return function(r,e){return new b(r,!0).update(e)[t]()}};function w(t){if(t)u[0]=u[16]=u[1]=u[2]=u[3]=u[4]=u[5]=u[6]=u[7]=u[8]=u[9]=u[10]=u[11]=u[12]=u[13]=u[14]=u[15]=0,this.blocks=u,this.buffer8=o;else{var r=new ArrayBuffer(68);this.buffer8=new Uint8Array(r),this.blocks=new Uint32Array(r)}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(t,r){var e,i=c(t);if(t=i[0],i[1]){var h,s,a=[],n=t.length,o=0;for(e=0;e<n;++e)(h=t.charCodeAt(e))<128?a[o++]=h:h<2048?(a[o++]=192|h>>>6,a[o++]=128|63&h):h<55296||h>=57344?(a[o++]=224|h>>>12,a[o++]=128|h>>>6&63,a[o++]=128|63&h):h<56320&&(s=t.charCodeAt(e+1))>=56320&&s<57344?(++e,h=65536+((1023&h)<<10|1023&s),a[o++]=240|h>>>18,a[o++]=128|h>>>12&63,a[o++]=128|h>>>6&63,a[o++]=128|63&h):(a[o++]=239,a[o++]=191,a[o++]=189);t=a}t.length>64&&(t=new w(!0).update(t).array());var f=[],u=[];for(e=0;e<64;++e){var p=t[e]||0;f[e]=92^p,u[e]=54^p}w.call(this,r),this.update(u),this.oKeyPad=f,this.inner=!0,this.sharedMemory=r}w.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var r=c(t);t=r[0];for(var e,i,h,s=r[1],a=0,n=t.length,o=this.blocks,f=this.buffer8;a<n;){if(this.hashed&&(this.hashed=!1,o[0]=o[16],o[16]=o[1]=o[2]=o[3]=o[4]=o[5]=o[6]=o[7]=o[8]=o[9]=o[10]=o[11]=o[12]=o[13]=o[14]=o[15]=0),s)for(h=this.start;a<n&&h<64;++a)(e=t.charCodeAt(a))<128?f[h++]=e:e<2048?(f[h++]=192|e>>>6,f[h++]=128|63&e):e<55296||e>=57344?(f[h++]=224|e>>>12,f[h++]=128|e>>>6&63,f[h++]=128|63&e):e<56320&&(i=t.charCodeAt(a+1))>=56320&&i<57344?(++a,e=65536+((1023&e)<<10|1023&i),f[h++]=240|e>>>18,f[h++]=128|e>>>12&63,f[h++]=128|e>>>6&63,f[h++]=128|63&e):(f[h++]=239,f[h++]=191,f[h++]=189);else for(h=this.start;a<n&&h<64;++a)f[h++]=t[a];this.lastByteIndex=h,this.bytes+=h-this.start,h>=64?(this.start=h-64,this.hash(),this.hashed=!0):this.start=h}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this},w.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,r=this.lastByteIndex;t[r>>>2]|=a[3&r],r>=56&&(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()}},w.prototype.hash=function(){var t,r,e,i,h,s,a=this.blocks;this.first?r=((r=((t=((t=a[0]-680876937)<<7|t>>>25)-271733879|0)^(e=((e=(-271733879^(i=((i=(-1732584194^2004318071&t)+a[1]-117830708)<<12|i>>>20)+t|0)&(-271733879^t))+a[2]-1126478375)<<17|e>>>15)+i|0)&(i^t))+a[3]-1316259209)<<22|r>>>10)+e|0:(t=this.h0,r=this.h1,e=this.h2,r=((r+=((t=((t+=((i=this.h3)^r&(e^i))+a[0]-680876936)<<7|t>>>25)+r|0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+a[1]-389564586)<<12|i>>>20)+t|0)&(t^r))+a[2]+606105819)<<17|e>>>15)+i|0)&(i^t))+a[3]-1044525330)<<22|r>>>10)+e|0),r=((r+=((t=((t+=(i^r&(e^i))+a[4]-176418897)<<7|t>>>25)+r|0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+a[5]+1200080426)<<12|i>>>20)+t|0)&(t^r))+a[6]-1473231341)<<17|e>>>15)+i|0)&(i^t))+a[7]-45705983)<<22|r>>>10)+e|0,r=((r+=((t=((t+=(i^r&(e^i))+a[8]+1770035416)<<7|t>>>25)+r|0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+a[9]-1958414417)<<12|i>>>20)+t|0)&(t^r))+a[10]-42063)<<17|e>>>15)+i|0)&(i^t))+a[11]-1990404162)<<22|r>>>10)+e|0,r=((r+=((t=((t+=(i^r&(e^i))+a[12]+1804603682)<<7|t>>>25)+r|0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+a[13]-40341101)<<12|i>>>20)+t|0)&(t^r))+a[14]-1502002290)<<17|e>>>15)+i|0)&(i^t))+a[15]+1236535329)<<22|r>>>10)+e|0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+a[1]-165796510)<<5|t>>>27)+r|0)^r))+a[6]-1069501632)<<9|i>>>23)+t|0)^t&((e=((e+=(t^r&(i^t))+a[11]+643717713)<<14|e>>>18)+i|0)^i))+a[0]-373897302)<<20|r>>>12)+e|0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+a[5]-701558691)<<5|t>>>27)+r|0)^r))+a[10]+38016083)<<9|i>>>23)+t|0)^t&((e=((e+=(t^r&(i^t))+a[15]-660478335)<<14|e>>>18)+i|0)^i))+a[4]-405537848)<<20|r>>>12)+e|0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+a[9]+568446438)<<5|t>>>27)+r|0)^r))+a[14]-1019803690)<<9|i>>>23)+t|0)^t&((e=((e+=(t^r&(i^t))+a[3]-187363961)<<14|e>>>18)+i|0)^i))+a[8]+1163531501)<<20|r>>>12)+e|0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+a[13]-1444681467)<<5|t>>>27)+r|0)^r))+a[2]-51403784)<<9|i>>>23)+t|0)^t&((e=((e+=(t^r&(i^t))+a[7]+1735328473)<<14|e>>>18)+i|0)^i))+a[12]-1926607734)<<20|r>>>12)+e|0,r=((r+=((s=(i=((i+=((h=r^e)^(t=((t+=(h^i)+a[5]-378558)<<4|t>>>28)+r|0))+a[8]-2022574463)<<11|i>>>21)+t|0)^t)^(e=((e+=(s^r)+a[11]+1839030562)<<16|e>>>16)+i|0))+a[14]-35309556)<<23|r>>>9)+e|0,r=((r+=((s=(i=((i+=((h=r^e)^(t=((t+=(h^i)+a[1]-1530992060)<<4|t>>>28)+r|0))+a[4]+1272893353)<<11|i>>>21)+t|0)^t)^(e=((e+=(s^r)+a[7]-155497632)<<16|e>>>16)+i|0))+a[10]-1094730640)<<23|r>>>9)+e|0,r=((r+=((s=(i=((i+=((h=r^e)^(t=((t+=(h^i)+a[13]+681279174)<<4|t>>>28)+r|0))+a[0]-358537222)<<11|i>>>21)+t|0)^t)^(e=((e+=(s^r)+a[3]-722521979)<<16|e>>>16)+i|0))+a[6]+76029189)<<23|r>>>9)+e|0,r=((r+=((s=(i=((i+=((h=r^e)^(t=((t+=(h^i)+a[9]-640364487)<<4|t>>>28)+r|0))+a[12]-421815835)<<11|i>>>21)+t|0)^t)^(e=((e+=(s^r)+a[15]+530742520)<<16|e>>>16)+i|0))+a[2]-995338651)<<23|r>>>9)+e|0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+a[0]-198630844)<<6|t>>>26)+r|0)|~e))+a[7]+1126891415)<<10|i>>>22)+t|0)^((e=((e+=(t^(i|~r))+a[14]-1416354905)<<15|e>>>17)+i|0)|~t))+a[5]-57434055)<<21|r>>>11)+e|0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+a[12]+1700485571)<<6|t>>>26)+r|0)|~e))+a[3]-1894986606)<<10|i>>>22)+t|0)^((e=((e+=(t^(i|~r))+a[10]-1051523)<<15|e>>>17)+i|0)|~t))+a[1]-2054922799)<<21|r>>>11)+e|0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+a[8]+1873313359)<<6|t>>>26)+r|0)|~e))+a[15]-30611744)<<10|i>>>22)+t|0)^((e=((e+=(t^(i|~r))+a[6]-1560198380)<<15|e>>>17)+i|0)|~t))+a[13]+1309151649)<<21|r>>>11)+e|0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+a[4]-145523070)<<6|t>>>26)+r|0)|~e))+a[11]-1120210379)<<10|i>>>22)+t|0)^((e=((e+=(t^(i|~r))+a[2]+718787259)<<15|e>>>17)+i|0)|~t))+a[9]-343485551)<<21|r>>>11)+e|0,this.first?(this.h0=t+1732584193|0,this.h1=r-271733879|0,this.h2=e-1732584194|0,this.h3=i+271733878|0,this.first=!1):(this.h0=this.h0+t|0,this.h1=this.h1+r|0,this.h2=this.h2+e|0,this.h3=this.h3+i|0)},w.prototype.hex=function(){this.finalize();var t=this.h0,r=this.h1,e=this.h2,i=this.h3;return s[t>>>4&15]+s[15&t]+s[t>>>12&15]+s[t>>>8&15]+s[t>>>20&15]+s[t>>>16&15]+s[t>>>28&15]+s[t>>>24&15]+s[r>>>4&15]+s[15&r]+s[r>>>12&15]+s[r>>>8&15]+s[r>>>20&15]+s[r>>>16&15]+s[r>>>28&15]+s[r>>>24&15]+s[e>>>4&15]+s[15&e]+s[e>>>12&15]+s[e>>>8&15]+s[e>>>20&15]+s[e>>>16&15]+s[e>>>28&15]+s[e>>>24&15]+s[i>>>4&15]+s[15&i]+s[i>>>12&15]+s[i>>>8&15]+s[i>>>20&15]+s[i>>>16&15]+s[i>>>28&15]+s[i>>>24&15]},w.prototype.toString=w.prototype.hex,w.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]},w.prototype.array=w.prototype.digest,w.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},w.prototype.buffer=w.prototype.arrayBuffer,w.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+=f[t>>>2]+f[63&(t<<4|r>>>4)]+f[63&(r<<2|e>>>6)]+f[63&e];return t=h[s],i+=f[t>>>2]+f[t<<4&63]+"=="},b.prototype=new w,b.prototype.finalize=function(){if(w.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();w.call(this,this.sharedMemory),this.update(this.oKeyPad),this.update(t),w.prototype.finalize.call(this)}};var A=function(){var t=d("hex");t.create=function(){return new w},t.update=function(r){return t.create().update(r)};for(var r=0;r<n.length;++r){var e=n[r];t[e]=d(e)}return t}();A.md5=A,A.md5.hmac=function(){var t=v("hex");t.create=function(t){return new b(t)},t.update=function(r,e){return t.create(r).update(e)};for(var r=0;r<n.length;++r){var e=n[r];t[e]=v(e)}return t}(),h?r.exports=A:i.md5=A}();var i=t(e.exports);export{i as default,i as md5};
10
+ */r=e,function(){var t="input is invalid type",e="object"==typeof window,i=e?window:{};i.JS_MD5_NO_WINDOW&&(e=!1),"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope&&(i=self);var h=!i.JS_MD5_NO_COMMON_JS&&r.exports,s="0123456789abcdef".split(""),n=[128,32768,8388608,-2147483648],a=["hex","array","digest","arrayBuffer"];a.push("buffer"),a.push("base64");var o,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),u=[],y=new ArrayBuffer(68);o=new Uint8Array(y),u=new Uint32Array(y);var p=Array.isArray,l=ArrayBuffer.isView,c=function(r){var e=typeof r;if("string"===e)return[r,!0];if("object"!==e||null===r)throw new Error(t);if(r.constructor===ArrayBuffer)return[new Uint8Array(r),!1];if(p(r))return[r,!1];if(!l(r))throw new Error(t);return[new Uint8Array(r.buffer,r.byteOffset,r.byteLength),!1]},d=function(t){return function(r){return new v(!0).update(r)[t]()}},b=function(t){return function(r,e){return new w(r,!0).update(e)[t]()}};function v(t){if(t)u[0]=u[16]=u[1]=u[2]=u[3]=u[4]=u[5]=u[6]=u[7]=u[8]=u[9]=u[10]=u[11]=u[12]=u[13]=u[14]=u[15]=0,this.blocks=u,this.buffer8=o;else{var r=new ArrayBuffer(68);this.buffer8=new Uint8Array(r),this.blocks=new Uint32Array(r)}this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}function w(t,r){var e,i=c(t);if(t=i[0],i[1]){var h,s,n=[],a=t.length,o=0;for(e=0;e<a;++e)(h=t.charCodeAt(e))<128?n[o++]=h:h<2048?(n[o++]=192|h>>>6,n[o++]=128|63&h):h<55296||h>=57344?(n[o++]=224|h>>>12,n[o++]=128|h>>>6&63,n[o++]=128|63&h):h<56320&&(s=t.charCodeAt(e+1))>=56320&&s<57344?(++e,h=65536+((1023&h)<<10|1023&s),n[o++]=240|h>>>18,n[o++]=128|h>>>12&63,n[o++]=128|h>>>6&63,n[o++]=128|63&h):(n[o++]=239,n[o++]=191,n[o++]=189);t=n}t.length>64&&(t=new v(!0).update(t).array());var f=[],u=[];for(e=0;e<64;++e){var y=t[e]||0;f[e]=92^y,u[e]=54^y}v.call(this,r),this.update(u),this.oKeyPad=f,this.inner=!0,this.sharedMemory=r}v.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var r=c(t);t=r[0];for(var e,i,h,s=r[1],n=0,a=t.length,o=this.blocks,f=this.buffer8;n<a;){if(this.hashed&&(this.hashed=!1,o[0]=o[16],o[16]=o[1]=o[2]=o[3]=o[4]=o[5]=o[6]=o[7]=o[8]=o[9]=o[10]=o[11]=o[12]=o[13]=o[14]=o[15]=0),s)for(h=this.start;n<a&&h<64;++n)(e=t.charCodeAt(n))<128?f[h++]=e:e<2048?(f[h++]=192|e>>>6,f[h++]=128|63&e):e<55296||e>=57344?(f[h++]=224|e>>>12,f[h++]=128|e>>>6&63,f[h++]=128|63&e):e<56320&&(i=t.charCodeAt(n+1))>=56320&&i<57344?(++n,e=65536+((1023&e)<<10|1023&i),f[h++]=240|e>>>18,f[h++]=128|e>>>12&63,f[h++]=128|e>>>6&63,f[h++]=128|63&e):(f[h++]=239,f[h++]=191,f[h++]=189);else for(h=this.start;n<a&&h<64;++n)f[h++]=t[n];this.lastByteIndex=h,this.bytes+=h-this.start,h>=64?(this.start=h-64,this.hash(),this.hashed=!0):this.start=h}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this},v.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,r=this.lastByteIndex;t[r>>>2]|=n[3&r],r>=56&&(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()}},v.prototype.hash=function(){var t,r,e,i,h,s,n=this.blocks;this.first?r=((r=((t=((t=n[0]-680876937)<<7|t>>>25)-271733879|0)^(e=((e=(-271733879^(i=((i=(-1732584194^2004318071&t)+n[1]-117830708)<<12|i>>>20)+t|0)&(-271733879^t))+n[2]-1126478375)<<17|e>>>15)+i|0)&(i^t))+n[3]-1316259209)<<22|r>>>10)+e|0:(t=this.h0,r=this.h1,e=this.h2,r=((r+=((t=((t+=((i=this.h3)^r&(e^i))+n[0]-680876936)<<7|t>>>25)+r|0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+n[1]-389564586)<<12|i>>>20)+t|0)&(t^r))+n[2]+606105819)<<17|e>>>15)+i|0)&(i^t))+n[3]-1044525330)<<22|r>>>10)+e|0),r=((r+=((t=((t+=(i^r&(e^i))+n[4]-176418897)<<7|t>>>25)+r|0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+n[5]+1200080426)<<12|i>>>20)+t|0)&(t^r))+n[6]-1473231341)<<17|e>>>15)+i|0)&(i^t))+n[7]-45705983)<<22|r>>>10)+e|0,r=((r+=((t=((t+=(i^r&(e^i))+n[8]+1770035416)<<7|t>>>25)+r|0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+n[9]-1958414417)<<12|i>>>20)+t|0)&(t^r))+n[10]-42063)<<17|e>>>15)+i|0)&(i^t))+n[11]-1990404162)<<22|r>>>10)+e|0,r=((r+=((t=((t+=(i^r&(e^i))+n[12]+1804603682)<<7|t>>>25)+r|0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+n[13]-40341101)<<12|i>>>20)+t|0)&(t^r))+n[14]-1502002290)<<17|e>>>15)+i|0)&(i^t))+n[15]+1236535329)<<22|r>>>10)+e|0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+n[1]-165796510)<<5|t>>>27)+r|0)^r))+n[6]-1069501632)<<9|i>>>23)+t|0)^t&((e=((e+=(t^r&(i^t))+n[11]+643717713)<<14|e>>>18)+i|0)^i))+n[0]-373897302)<<20|r>>>12)+e|0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+n[5]-701558691)<<5|t>>>27)+r|0)^r))+n[10]+38016083)<<9|i>>>23)+t|0)^t&((e=((e+=(t^r&(i^t))+n[15]-660478335)<<14|e>>>18)+i|0)^i))+n[4]-405537848)<<20|r>>>12)+e|0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+n[9]+568446438)<<5|t>>>27)+r|0)^r))+n[14]-1019803690)<<9|i>>>23)+t|0)^t&((e=((e+=(t^r&(i^t))+n[3]-187363961)<<14|e>>>18)+i|0)^i))+n[8]+1163531501)<<20|r>>>12)+e|0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+n[13]-1444681467)<<5|t>>>27)+r|0)^r))+n[2]-51403784)<<9|i>>>23)+t|0)^t&((e=((e+=(t^r&(i^t))+n[7]+1735328473)<<14|e>>>18)+i|0)^i))+n[12]-1926607734)<<20|r>>>12)+e|0,r=((r+=((s=(i=((i+=((h=r^e)^(t=((t+=(h^i)+n[5]-378558)<<4|t>>>28)+r|0))+n[8]-2022574463)<<11|i>>>21)+t|0)^t)^(e=((e+=(s^r)+n[11]+1839030562)<<16|e>>>16)+i|0))+n[14]-35309556)<<23|r>>>9)+e|0,r=((r+=((s=(i=((i+=((h=r^e)^(t=((t+=(h^i)+n[1]-1530992060)<<4|t>>>28)+r|0))+n[4]+1272893353)<<11|i>>>21)+t|0)^t)^(e=((e+=(s^r)+n[7]-155497632)<<16|e>>>16)+i|0))+n[10]-1094730640)<<23|r>>>9)+e|0,r=((r+=((s=(i=((i+=((h=r^e)^(t=((t+=(h^i)+n[13]+681279174)<<4|t>>>28)+r|0))+n[0]-358537222)<<11|i>>>21)+t|0)^t)^(e=((e+=(s^r)+n[3]-722521979)<<16|e>>>16)+i|0))+n[6]+76029189)<<23|r>>>9)+e|0,r=((r+=((s=(i=((i+=((h=r^e)^(t=((t+=(h^i)+n[9]-640364487)<<4|t>>>28)+r|0))+n[12]-421815835)<<11|i>>>21)+t|0)^t)^(e=((e+=(s^r)+n[15]+530742520)<<16|e>>>16)+i|0))+n[2]-995338651)<<23|r>>>9)+e|0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+n[0]-198630844)<<6|t>>>26)+r|0)|~e))+n[7]+1126891415)<<10|i>>>22)+t|0)^((e=((e+=(t^(i|~r))+n[14]-1416354905)<<15|e>>>17)+i|0)|~t))+n[5]-57434055)<<21|r>>>11)+e|0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+n[12]+1700485571)<<6|t>>>26)+r|0)|~e))+n[3]-1894986606)<<10|i>>>22)+t|0)^((e=((e+=(t^(i|~r))+n[10]-1051523)<<15|e>>>17)+i|0)|~t))+n[1]-2054922799)<<21|r>>>11)+e|0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+n[8]+1873313359)<<6|t>>>26)+r|0)|~e))+n[15]-30611744)<<10|i>>>22)+t|0)^((e=((e+=(t^(i|~r))+n[6]-1560198380)<<15|e>>>17)+i|0)|~t))+n[13]+1309151649)<<21|r>>>11)+e|0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+n[4]-145523070)<<6|t>>>26)+r|0)|~e))+n[11]-1120210379)<<10|i>>>22)+t|0)^((e=((e+=(t^(i|~r))+n[2]+718787259)<<15|e>>>17)+i|0)|~t))+n[9]-343485551)<<21|r>>>11)+e|0,this.first?(this.h0=t+1732584193|0,this.h1=r-271733879|0,this.h2=e-1732584194|0,this.h3=i+271733878|0,this.first=!1):(this.h0=this.h0+t|0,this.h1=this.h1+r|0,this.h2=this.h2+e|0,this.h3=this.h3+i|0)},v.prototype.hex=function(){this.finalize();var t=this.h0,r=this.h1,e=this.h2,i=this.h3;return s[t>>>4&15]+s[15&t]+s[t>>>12&15]+s[t>>>8&15]+s[t>>>20&15]+s[t>>>16&15]+s[t>>>28&15]+s[t>>>24&15]+s[r>>>4&15]+s[15&r]+s[r>>>12&15]+s[r>>>8&15]+s[r>>>20&15]+s[r>>>16&15]+s[r>>>28&15]+s[r>>>24&15]+s[e>>>4&15]+s[15&e]+s[e>>>12&15]+s[e>>>8&15]+s[e>>>20&15]+s[e>>>16&15]+s[e>>>28&15]+s[e>>>24&15]+s[i>>>4&15]+s[15&i]+s[i>>>12&15]+s[i>>>8&15]+s[i>>>20&15]+s[i>>>16&15]+s[i>>>28&15]+s[i>>>24&15]},v.prototype.toString=v.prototype.hex,v.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]},v.prototype.array=v.prototype.digest,v.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},v.prototype.buffer=v.prototype.arrayBuffer,v.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+=f[t>>>2]+f[63&(t<<4|r>>>4)]+f[63&(r<<2|e>>>6)]+f[63&e];return t=h[s],i+=f[t>>>2]+f[t<<4&63]+"=="},w.prototype=new v,w.prototype.finalize=function(){if(v.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();v.call(this,this.sharedMemory),this.update(this.oKeyPad),this.update(t),v.prototype.finalize.call(this)}};var A=function(){var t=d("hex");t.create=function(){return new v},t.update=function(r){return t.create().update(r)};for(var r=0;r<a.length;++r){var e=a[r];t[e]=d(e)}return t}();A.md5=A,A.md5.hmac=function(){var t=b("hex");t.create=function(t){return new w(t)},t.update=function(r,e){return t.create(r).update(e)};for(var r=0;r<a.length;++r){var e=a[r];t[e]=b(e)}return t}(),h?r.exports=A:i.md5=A}();var i=t(e.exports);export{i as default,i as md5};
@@ -8,7 +8,7 @@ var md5$1 = {exports: {}};
8
8
  * [js-md5]{@link https://github.com/emn178/js-md5}
9
9
  *
10
10
  * @namespace md5
11
- * @version 0.10.0
11
+ * @version 0.11.0
12
12
  * @author Chen, Yi-Cyuan [emn178@gmail.com]
13
13
  * @copyright Chen, Yi-Cyuan 2014-2026
14
14
  * @license MIT
@@ -52,7 +52,7 @@ var md5$1 = {exports: {}};
52
52
 
53
53
  var isArray = Array.isArray;
54
54
 
55
- var isView = ArrayBuffer.isView;
55
+ var isView = ArrayBuffer.isView ;
56
56
 
57
57
  // [message: string, isString: bool]
58
58
  var formatMessage = function (message) {
@@ -66,10 +66,14 @@ var md5$1 = {exports: {}};
66
66
  if (message.constructor === ArrayBuffer) {
67
67
  return [new Uint8Array(message), false];
68
68
  }
69
- if (!isArray(message) && !isView(message)) {
69
+ if (isArray(message)) {
70
+ return [message, false];
71
+ }
72
+ if (!isView(message)) {
70
73
  throw new Error(INPUT_ERROR);
71
74
  }
72
- return [message, false];
75
+ // read the underlying bytes of any view (DataView, Uint16Array, ...)
76
+ return [new Uint8Array(message.buffer, message.byteOffset, message.byteLength), false];
73
77
  };
74
78
 
75
79
  /**
@@ -13,7 +13,7 @@ var md5$1 = {exports: {}};
13
13
  * [js-md5]{@link https://github.com/emn178/js-md5}
14
14
  *
15
15
  * @namespace md5
16
- * @version 0.10.0
16
+ * @version 0.11.0
17
17
  * @author Chen, Yi-Cyuan [emn178@gmail.com]
18
18
  * @copyright Chen, Yi-Cyuan 2014-2026
19
19
  * @license MIT
@@ -61,7 +61,7 @@ var md5$1 = {exports: {}};
61
61
 
62
62
  var isArray = Array.isArray;
63
63
 
64
- var isView = ArrayBuffer.isView;
64
+ var isView = ArrayBuffer.isView ;
65
65
 
66
66
  // [message: string, isString: bool]
67
67
  var formatMessage = function (message) {
@@ -75,10 +75,14 @@ var md5$1 = {exports: {}};
75
75
  if (message.constructor === ArrayBuffer) {
76
76
  return [new Uint8Array(message), false];
77
77
  }
78
- if (!isArray(message) && !isView(message)) {
78
+ if (isArray(message)) {
79
+ return [message, false];
80
+ }
81
+ if (!isView(message)) {
79
82
  throw new Error(INPUT_ERROR);
80
83
  }
81
- return [message, false];
84
+ // read the underlying bytes of any view (DataView, Uint16Array, ...)
85
+ return [new Uint8Array(message.buffer, message.byteOffset, message.byteLength), false];
82
86
  };
83
87
 
84
88
  /**
@@ -194,6 +198,8 @@ var md5$1 = {exports: {}};
194
198
  throw new Error(INPUT_ERROR);
195
199
  } else if (message.constructor === ArrayBuffer) {
196
200
  message = new Uint8Array(message);
201
+ } else if (isView(message) && message.constructor !== Buffer) {
202
+ message = new Uint8Array(message.buffer, message.byteOffset, message.byteLength);
197
203
  }
198
204
  }
199
205
  if (isArray(message) || isView(message) ||
@@ -13,7 +13,7 @@ var md5$1 = {exports: {}};
13
13
  * [js-md5]{@link https://github.com/emn178/js-md5}
14
14
  *
15
15
  * @namespace md5
16
- * @version 0.10.0
16
+ * @version 0.11.0
17
17
  * @author Chen, Yi-Cyuan [emn178@gmail.com]
18
18
  * @copyright Chen, Yi-Cyuan 2014-2026
19
19
  * @license MIT
@@ -70,7 +70,7 @@ var md5$1 = {exports: {}};
70
70
  };
71
71
  }
72
72
 
73
- var isView = ArrayBuffer.isView;
73
+ var isView = ARRAY_BUFFER ? ArrayBuffer.isView : null;
74
74
  /* istanbul ignore else */
75
75
  if (ARRAY_BUFFER && (root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW || !isView)) {
76
76
  isView = function (obj) {
@@ -90,10 +90,14 @@ var md5$1 = {exports: {}};
90
90
  if (ARRAY_BUFFER && message.constructor === ArrayBuffer) {
91
91
  return [new Uint8Array(message), false];
92
92
  }
93
- if (!isArray(message) && !isView(message)) {
93
+ if (isArray(message)) {
94
+ return [message, false];
95
+ }
96
+ if (!ARRAY_BUFFER || !isView(message)) {
94
97
  throw new Error(INPUT_ERROR);
95
98
  }
96
- return [message, false];
99
+ // read the underlying bytes of any view (DataView, Uint16Array, ...)
100
+ return [new Uint8Array(message.buffer, message.byteOffset, message.byteLength), false];
97
101
  };
98
102
 
99
103
  /**
@@ -214,6 +218,8 @@ var md5$1 = {exports: {}};
214
218
  throw new Error(INPUT_ERROR);
215
219
  } else if (message.constructor === ArrayBuffer) {
216
220
  message = new Uint8Array(message);
221
+ } else if (ARRAY_BUFFER && isView(message) && message.constructor !== Buffer) {
222
+ message = new Uint8Array(message.buffer, message.byteOffset, message.byteLength);
217
223
  }
218
224
  }
219
225
  if (isArray(message) || isView(message) ||
package/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- type Message = string | number[] | ArrayBuffer | Uint8Array;
1
+ type Message = string | number[] | ArrayBuffer | ArrayBufferView;
2
2
 
3
3
  interface Hasher {
4
4
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "js-md5",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "description": "A simple MD5 hash function for JavaScript supports UTF-8 encoding.",
5
5
  "main": "src/md5.js",
6
6
  "module": "build/md5.mjs",
package/src/md5.js CHANGED
@@ -2,7 +2,7 @@
2
2
  * [js-md5]{@link https://github.com/emn178/js-md5}
3
3
  *
4
4
  * @namespace md5
5
- * @version 0.10.0
5
+ * @version 0.11.0
6
6
  * @author Chen, Yi-Cyuan [emn178@gmail.com]
7
7
  * @copyright Chen, Yi-Cyuan 2014-2026
8
8
  * @license MIT
@@ -66,7 +66,7 @@
66
66
  };
67
67
  }
68
68
 
69
- var isView = ArrayBuffer.isView;
69
+ var isView = ARRAY_BUFFER ? ArrayBuffer.isView : null;
70
70
  /* istanbul ignore else */
71
71
  if (FEATURE_LEGACY && ARRAY_BUFFER && (root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW || !isView)) {
72
72
  isView = function (obj) {
@@ -86,11 +86,15 @@
86
86
  if (ARRAY_BUFFER && message.constructor === ArrayBuffer) {
87
87
  return [new Uint8Array(message), false];
88
88
  }
89
- if (!isArray(message) && !isView(message)) {
89
+ if (isArray(message)) {
90
+ return [message, false];
91
+ }
92
+ if (!ARRAY_BUFFER || !isView(message)) {
90
93
  throw new Error(INPUT_ERROR);
91
94
  }
92
- return [message, false];
93
- }
95
+ // read the underlying bytes of any view (DataView, Uint16Array, ...)
96
+ return [new Uint8Array(message.buffer, message.byteOffset, message.byteLength), false];
97
+ };
94
98
 
95
99
  /**
96
100
  * @method hex
@@ -210,6 +214,8 @@
210
214
  throw new Error(INPUT_ERROR);
211
215
  } else if (message.constructor === ArrayBuffer) {
212
216
  message = new Uint8Array(message);
217
+ } else if (ARRAY_BUFFER && isView(message) && message.constructor !== Buffer) {
218
+ message = new Uint8Array(message.buffer, message.byteOffset, message.byteLength);
213
219
  }
214
220
  }
215
221
  if (isArray(message) || isView(message) ||