UNPKG

hfs

Version:
2 lines (1 loc) 20.8 kB
System.register([],(function(t,i){"use strict";return{execute:function(){function i(t,i){for(var h=function(){var h=i[s];if("string"!=typeof h&&!Array.isArray(h)){var r=function(i){if("default"!==i&&!(i in t)){var s=Object.getOwnPropertyDescriptor(h,i);s&&Object.defineProperty(t,i,s.get?s:{enumerable:!0,get:function(){return h[i]}})}};for(var e in h)r(e)}},s=0;s<i.length;s++)h();return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var h,s,r,e,o,a,m,n,_,l={},y={exports:{}},d=y.exports,u={exports:{}},p=u.exports;function c(){return r||(r=1,l.UINT32=(h||(h=1,function(t){!function(i){function h(t,i){return this instanceof h?(this._low=0,this._high=0,this.remainder=null,void 0===i?r.call(this,t):"string"==typeof t?e.call(this,t,i):void s.call(this,t,i)):new h(t,i)}function s(t,i){return this._low=0|t,this._high=0|i,this}function r(t){return this._low=65535&t,this._high=t>>>16,this}function e(t,i){var h=parseInt(t,i||10);return this._low=65535&h,this._high=h>>>16,this}h(Math.pow(36,5)),h(Math.pow(16,7)),h(Math.pow(10,9)),h(Math.pow(2,30)),h(36),h(16),h(10),h(2),h.prototype.fromBits=s,h.prototype.fromNumber=r,h.prototype.fromString=e,h.prototype.toNumber=function(){return 65536*this._high+this._low},h.prototype.toString=function(t){return this.toNumber().toString(t||10)},h.prototype.add=function(t){var i=this._low+t._low,h=i>>>16;return h+=this._high+t._high,this._low=65535&i,this._high=65535&h,this},h.prototype.subtract=function(t){return this.add(t.clone().negate())},h.prototype.multiply=function(t){var i,h,s=this._high,r=this._low,e=t._high,o=t._low;return i=(h=r*o)>>>16,i+=s*o,i&=65535,i+=r*e,this._low=65535&h,this._high=65535&i,this},h.prototype.div=function(t){if(0==t._low&&0==t._high)throw Error("division by zero");if(0==t._high&&1==t._low)return this.remainder=new h(0),this;if(t.gt(this))return this.remainder=this.clone(),this._low=0,this._high=0,this;if(this.eq(t))return this.remainder=new h(0),this._low=1,this._high=0,this;for(var i=t.clone(),s=-1;!this.lt(i);)i.shiftLeft(1,!0),s++;for(this.remainder=this.clone(),this._low=0,this._high=0;s>=0;s--)i.shiftRight(1),this.remainder.lt(i)||(this.remainder.subtract(i),s>=16?this._high|=1<<s-16:this._low|=1<<s);return this},h.prototype.negate=function(){var t=1+(65535&~this._low);return this._low=65535&t,this._high=~this._high+(t>>>16)&65535,this},h.prototype.equals=h.prototype.eq=function(t){return this._low==t._low&&this._high==t._high},h.prototype.greaterThan=h.prototype.gt=function(t){return this._high>t._high||!(this._high<t._high)&&this._low>t._low},h.prototype.lessThan=h.prototype.lt=function(t){return this._high<t._high||!(this._high>t._high)&&this._low<t._low},h.prototype.or=function(t){return this._low|=t._low,this._high|=t._high,this},h.prototype.and=function(t){return this._low&=t._low,this._high&=t._high,this},h.prototype.not=function(){return this._low=65535&~this._low,this._high=65535&~this._high,this},h.prototype.xor=function(t){return this._low^=t._low,this._high^=t._high,this},h.prototype.shiftRight=h.prototype.shiftr=function(t){return t>16?(this._low=this._high>>t-16,this._high=0):16==t?(this._low=this._high,this._high=0):(this._low=this._low>>t|this._high<<16-t&65535,this._high>>=t),this},h.prototype.shiftLeft=h.prototype.shiftl=function(t,i){return t>16?(this._high=this._low<<t-16,this._low=0,i||(this._high&=65535)):16==t?(this._high=this._low,this._low=0):(this._high=this._high<<t|this._low>>16-t,this._low=this._low<<t&65535,i||(this._high&=65535)),this},h.prototype.rotateLeft=h.prototype.rotl=function(t){var i=this._high<<16|this._low;return i=i<<t|i>>>32-t,this._low=65535&i,this._high=i>>>16,this},h.prototype.rotateRight=h.prototype.rotr=function(t){var i=this._high<<16|this._low;return i=i>>>t|i<<32-t,this._low=65535&i,this._high=i>>>16,this},h.prototype.clone=function(){return new h(this._low,this._high)},t.exports?t.exports=h:i.UINT32=h}(d)}(y)),y.exports),l.UINT64=(s||(s=1,function(t){!function(i){var h={16:r(Math.pow(16,5)),10:r(Math.pow(10,5)),2:r(Math.pow(2,5))},s={16:r(16),10:r(10),2:r(2)};function r(t,i,h,s){return this instanceof r?(this.remainder=null,"string"==typeof t?a.call(this,t,i):void 0===i?o.call(this,t):void e.apply(this,arguments)):new r(t,i,h,s)}function e(t,i,h,s){return void 0===h?(this._a00=65535&t,this._a16=t>>>16,this._a32=65535&i,this._a48=i>>>16,this):(this._a00=0|t,this._a16=0|i,this._a32=0|h,this._a48=0|s,this)}function o(t){return this._a00=65535&t,this._a16=t>>>16,this._a32=0,this._a48=0,this}function a(t,i){i=i||10,this._a00=0,this._a16=0,this._a32=0,this._a48=0;for(var s=h[i]||new r(Math.pow(i,5)),e=0,o=t.length;e<o;e+=5){var a=Math.min(5,o-e),m=parseInt(t.slice(e,e+a),i);this.multiply(a<5?new r(Math.pow(i,a)):s).add(new r(m))}return this}r.prototype.fromBits=e,r.prototype.fromNumber=o,r.prototype.fromString=a,r.prototype.toNumber=function(){return 65536*this._a16+this._a00},r.prototype.toString=function(t){var i=s[t=t||10]||new r(t);if(!this.gt(i))return this.toNumber().toString(t);for(var h=this.clone(),e=new Array(64),o=63;o>=0&&(h.div(i),e[o]=h.remainder.toNumber().toString(t),h.gt(i));o--);return e[o-1]=h.toNumber().toString(t),e.join("")},r.prototype.add=function(t){var i=this._a00+t._a00,h=i>>>16,s=(h+=this._a16+t._a16)>>>16,r=(s+=this._a32+t._a32)>>>16;return r+=this._a48+t._a48,this._a00=65535&i,this._a16=65535&h,this._a32=65535&s,this._a48=65535&r,this},r.prototype.subtract=function(t){return this.add(t.clone().negate())},r.prototype.multiply=function(t){var i=this._a00,h=this._a16,s=this._a32,r=this._a48,e=t._a00,o=t._a16,a=t._a32,m=i*e,n=m>>>16,_=(n+=i*o)>>>16;n&=65535,_+=(n+=h*e)>>>16;var l=(_+=i*a)>>>16;return _&=65535,l+=(_+=h*o)>>>16,_&=65535,l+=(_+=s*e)>>>16,l+=i*t._a48,l&=65535,l+=h*a,l&=65535,l+=s*o,l&=65535,l+=r*e,this._a00=65535&m,this._a16=65535&n,this._a32=65535&_,this._a48=65535&l,this},r.prototype.div=function(t){if(0==t._a16&&0==t._a32&&0==t._a48){if(0==t._a00)throw Error("division by zero");if(1==t._a00)return this.remainder=new r(0),this}if(t.gt(this))return this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0,this;if(this.eq(t))return this.remainder=new r(0),this._a00=1,this._a16=0,this._a32=0,this._a48=0,this;for(var i=t.clone(),h=-1;!this.lt(i);)i.shiftLeft(1,!0),h++;for(this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0;h>=0;h--)i.shiftRight(1),this.remainder.lt(i)||(this.remainder.subtract(i),h>=48?this._a48|=1<<h-48:h>=32?this._a32|=1<<h-32:h>=16?this._a16|=1<<h-16:this._a00|=1<<h);return this},r.prototype.negate=function(){var t=1+(65535&~this._a00);return this._a00=65535&t,t=(65535&~this._a16)+(t>>>16),this._a16=65535&t,t=(65535&~this._a32)+(t>>>16),this._a32=65535&t,this._a48=~this._a48+(t>>>16)&65535,this},r.prototype.equals=r.prototype.eq=function(t){return this._a48==t._a48&&this._a00==t._a00&&this._a32==t._a32&&this._a16==t._a16},r.prototype.greaterThan=r.prototype.gt=function(t){return this._a48>t._a48||!(this._a48<t._a48)&&(this._a32>t._a32||!(this._a32<t._a32)&&(this._a16>t._a16||!(this._a16<t._a16)&&this._a00>t._a00))},r.prototype.lessThan=r.prototype.lt=function(t){return this._a48<t._a48||!(this._a48>t._a48)&&(this._a32<t._a32||!(this._a32>t._a32)&&(this._a16<t._a16||!(this._a16>t._a16)&&this._a00<t._a00))},r.prototype.or=function(t){return this._a00|=t._a00,this._a16|=t._a16,this._a32|=t._a32,this._a48|=t._a48,this},r.prototype.and=function(t){return this._a00&=t._a00,this._a16&=t._a16,this._a32&=t._a32,this._a48&=t._a48,this},r.prototype.xor=function(t){return this._a00^=t._a00,this._a16^=t._a16,this._a32^=t._a32,this._a48^=t._a48,this},r.prototype.not=function(){return this._a00=65535&~this._a00,this._a16=65535&~this._a16,this._a32=65535&~this._a32,this._a48=65535&~this._a48,this},r.prototype.shiftRight=r.prototype.shiftr=function(t){return(t%=64)>=48?(this._a00=this._a48>>t-48,this._a16=0,this._a32=0,this._a48=0):t>=32?(t-=32,this._a00=65535&(this._a32>>t|this._a48<<16-t),this._a16=this._a48>>t&65535,this._a32=0,this._a48=0):t>=16?(t-=16,this._a00=65535&(this._a16>>t|this._a32<<16-t),this._a16=65535&(this._a32>>t|this._a48<<16-t),this._a32=this._a48>>t&65535,this._a48=0):(this._a00=65535&(this._a00>>t|this._a16<<16-t),this._a16=65535&(this._a16>>t|this._a32<<16-t),this._a32=65535&(this._a32>>t|this._a48<<16-t),this._a48=this._a48>>t&65535),this},r.prototype.shiftLeft=r.prototype.shiftl=function(t,i){return(t%=64)>=48?(this._a48=this._a00<<t-48,this._a32=0,this._a16=0,this._a00=0):t>=32?(t-=32,this._a48=this._a16<<t|this._a00>>16-t,this._a32=this._a00<<t&65535,this._a16=0,this._a00=0):t>=16?(t-=16,this._a48=this._a32<<t|this._a16>>16-t,this._a32=65535&(this._a16<<t|this._a00>>16-t),this._a16=this._a00<<t&65535,this._a00=0):(this._a48=this._a48<<t|this._a32>>16-t,this._a32=65535&(this._a32<<t|this._a16>>16-t),this._a16=65535&(this._a16<<t|this._a00>>16-t),this._a00=this._a00<<t&65535),i||(this._a48&=65535),this},r.prototype.rotateLeft=r.prototype.rotl=function(t){if(0==(t%=64))return this;if(t>=32){var i=this._a00;if(this._a00=this._a32,this._a32=i,i=this._a48,this._a48=this._a16,this._a16=i,32==t)return this;t-=32}var h=this._a48<<16|this._a32,s=this._a16<<16|this._a00,r=h<<t|s>>>32-t,e=s<<t|h>>>32-t;return this._a00=65535&e,this._a16=e>>>16,this._a32=65535&r,this._a48=r>>>16,this},r.prototype.rotateRight=r.prototype.rotr=function(t){if(0==(t%=64))return this;if(t>=32){var i=this._a00;if(this._a00=this._a32,this._a32=i,i=this._a48,this._a48=this._a16,this._a16=i,32==t)return this;t-=32}var h=this._a48<<16|this._a32,s=this._a16<<16|this._a00,r=h>>>t|s<<32-t,e=s>>>t|h<<32-t;return this._a00=65535&e,this._a16=e>>>16,this._a32=65535&r,this._a48=r>>>16,this},r.prototype.clone=function(){return new r(this._a00,this._a16,this._a32,this._a48)},t.exports?t.exports=r:i.UINT64=r}(p)}(u)),u.exports)),l}function f(){if(o)return e;o=1;var t=c().UINT32;t.prototype.xxh_update=function(t,s){var r,e,o=h._low,a=h._high;r=(e=t*o)>>>16,r+=s*o,r&=65535,r+=t*a;var m=this._low+(65535&e),n=m>>>16,_=(n+=this._high+(65535&r))<<16|65535&m;n=(_=_<<13|_>>>19)>>>16,r=(e=(m=65535&_)*(o=i._low))>>>16,r+=n*o,r&=65535,r+=m*(a=i._high),this._low=65535&e,this._high=65535&r};var i=t("2654435761"),h=t("2246822519"),s=t("3266489917"),r=t("668265263"),a=t("374761393");function m(){return 2==arguments.length?new m(arguments[1]).update(arguments[0]).digest():this instanceof m?void n.call(this,arguments[0]):new m(arguments[0])}function n(s){return this.seed=s instanceof t?s.clone():t(s),this.v1=this.seed.clone().add(i).add(h),this.v2=this.seed.clone().add(h),this.v3=this.seed.clone(),this.v4=this.seed.clone().subtract(i),this.total_len=0,this.memsize=0,this.memory=null,this}return m.prototype.init=n,m.prototype.update=function(t){var i,h="string"==typeof t;h&&(t=function(t){for(var i=[],h=0,s=t.length;h<s;h++){var r=t.charCodeAt(h);r<128?i.push(r):r<2048?i.push(192|r>>6,128|63&r):r<55296||r>=57344?i.push(224|r>>12,128|r>>6&63,128|63&r):(h++,r=65536+((1023&r)<<10|1023&t.charCodeAt(h)),i.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r))}return new Uint8Array(i)}(t),h=!1,i=!0),"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer&&(i=!0,t=new Uint8Array(t));var s=0,r=t.length,e=s+r;if(0==r)return this;if(this.total_len+=r,0==this.memsize&&(this.memory=h?"":i?new Uint8Array(16):new Buffer(16)),this.memsize+r<16)return h?this.memory+=t:i?this.memory.set(t.subarray(0,r),this.memsize):t.copy(this.memory,this.memsize,0,r),this.memsize+=r,this;if(this.memsize>0){h?this.memory+=t.slice(0,16-this.memsize):i?this.memory.set(t.subarray(0,16-this.memsize),this.memsize):t.copy(this.memory,this.memsize,0,16-this.memsize);var o=0;h?(this.v1.xxh_update(this.memory.charCodeAt(o+1)<<8|this.memory.charCodeAt(o),this.memory.charCodeAt(o+3)<<8|this.memory.charCodeAt(o+2)),o+=4,this.v2.xxh_update(this.memory.charCodeAt(o+1)<<8|this.memory.charCodeAt(o),this.memory.charCodeAt(o+3)<<8|this.memory.charCodeAt(o+2)),o+=4,this.v3.xxh_update(this.memory.charCodeAt(o+1)<<8|this.memory.charCodeAt(o),this.memory.charCodeAt(o+3)<<8|this.memory.charCodeAt(o+2)),o+=4,this.v4.xxh_update(this.memory.charCodeAt(o+1)<<8|this.memory.charCodeAt(o),this.memory.charCodeAt(o+3)<<8|this.memory.charCodeAt(o+2))):(this.v1.xxh_update(this.memory[o+1]<<8|this.memory[o],this.memory[o+3]<<8|this.memory[o+2]),o+=4,this.v2.xxh_update(this.memory[o+1]<<8|this.memory[o],this.memory[o+3]<<8|this.memory[o+2]),o+=4,this.v3.xxh_update(this.memory[o+1]<<8|this.memory[o],this.memory[o+3]<<8|this.memory[o+2]),o+=4,this.v4.xxh_update(this.memory[o+1]<<8|this.memory[o],this.memory[o+3]<<8|this.memory[o+2])),s+=16-this.memsize,this.memsize=0,h&&(this.memory="")}if(s<=e-16){var a=e-16;do{h?(this.v1.xxh_update(t.charCodeAt(s+1)<<8|t.charCodeAt(s),t.charCodeAt(s+3)<<8|t.charCodeAt(s+2)),s+=4,this.v2.xxh_update(t.charCodeAt(s+1)<<8|t.charCodeAt(s),t.charCodeAt(s+3)<<8|t.charCodeAt(s+2)),s+=4,this.v3.xxh_update(t.charCodeAt(s+1)<<8|t.charCodeAt(s),t.charCodeAt(s+3)<<8|t.charCodeAt(s+2)),s+=4,this.v4.xxh_update(t.charCodeAt(s+1)<<8|t.charCodeAt(s),t.charCodeAt(s+3)<<8|t.charCodeAt(s+2))):(this.v1.xxh_update(t[s+1]<<8|t[s],t[s+3]<<8|t[s+2]),s+=4,this.v2.xxh_update(t[s+1]<<8|t[s],t[s+3]<<8|t[s+2]),s+=4,this.v3.xxh_update(t[s+1]<<8|t[s],t[s+3]<<8|t[s+2]),s+=4,this.v4.xxh_update(t[s+1]<<8|t[s],t[s+3]<<8|t[s+2])),s+=4}while(s<=a)}return s<e&&(h?this.memory+=t.slice(s):i?this.memory.set(t.subarray(s,e),this.memsize):t.copy(this.memory,this.memsize,s,e),this.memsize=e-s),this},m.prototype.digest=function(){var e,o,m=this.memory,n="string"==typeof m,_=0,l=this.memsize,y=new t;for((e=this.total_len>=16?this.v1.rotl(1).add(this.v2.rotl(7).add(this.v3.rotl(12).add(this.v4.rotl(18)))):this.seed.clone().add(a)).add(y.fromNumber(this.total_len));_<=l-4;)n?y.fromBits(m.charCodeAt(_+1)<<8|m.charCodeAt(_),m.charCodeAt(_+3)<<8|m.charCodeAt(_+2)):y.fromBits(m[_+1]<<8|m[_],m[_+3]<<8|m[_+2]),e.add(y.multiply(s)).rotl(17).multiply(r),_+=4;for(;_<l;)y.fromBits(n?m.charCodeAt(_++):m[_++],0),e.add(y.multiply(a)).rotl(11).multiply(i);return o=e.clone().shiftRight(15),e.xor(o).multiply(h),o=e.clone().shiftRight(13),e.xor(o).multiply(s),o=e.clone().shiftRight(16),e.xor(o),this.init(this.seed),e},e=m}function A(){if(m)return a;m=1;var t=c().UINT64,i=t("11400714785074694791"),h=t("14029467366897019727"),s=t("1609587929392839161"),r=t("9650029242287828579"),e=t("2870177450012600261");function o(){return 2==arguments.length?new o(arguments[1]).update(arguments[0]).digest():this instanceof o?void n.call(this,arguments[0]):new o(arguments[0])}function n(s){return this.seed=s instanceof t?s.clone():t(s),this.v1=this.seed.clone().add(i).add(h),this.v2=this.seed.clone().add(h),this.v3=this.seed.clone(),this.v4=this.seed.clone().subtract(i),this.total_len=0,this.memsize=0,this.memory=null,this}return o.prototype.init=n,o.prototype.update=function(s){var r,e="string"==typeof s;e&&(s=function(t){for(var i=[],h=0,s=t.length;h<s;h++){var r=t.charCodeAt(h);r<128?i.push(r):r<2048?i.push(192|r>>6,128|63&r):r<55296||r>=57344?i.push(224|r>>12,128|r>>6&63,128|63&r):(h++,r=65536+((1023&r)<<10|1023&t.charCodeAt(h)),i.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r))}return new Uint8Array(i)}(s),e=!1,r=!0),"undefined"!=typeof ArrayBuffer&&s instanceof ArrayBuffer&&(r=!0,s=new Uint8Array(s));var o=0,a=s.length,m=o+a;if(0==a)return this;if(this.total_len+=a,0==this.memsize&&(this.memory=e?"":r?new Uint8Array(32):new Buffer(32)),this.memsize+a<32)return e?this.memory+=s:r?this.memory.set(s.subarray(0,a),this.memsize):s.copy(this.memory,this.memsize,0,a),this.memsize+=a,this;if(this.memsize>0){e?this.memory+=s.slice(0,32-this.memsize):r?this.memory.set(s.subarray(0,32-this.memsize),this.memsize):s.copy(this.memory,this.memsize,0,32-this.memsize);var n=0;e?(l=t(this.memory.charCodeAt(n+1)<<8|this.memory.charCodeAt(n),this.memory.charCodeAt(n+3)<<8|this.memory.charCodeAt(n+2),this.memory.charCodeAt(n+5)<<8|this.memory.charCodeAt(n+4),this.memory.charCodeAt(n+7)<<8|this.memory.charCodeAt(n+6)),this.v1.add(l.multiply(h)).rotl(31).multiply(i),n+=8,l=t(this.memory.charCodeAt(n+1)<<8|this.memory.charCodeAt(n),this.memory.charCodeAt(n+3)<<8|this.memory.charCodeAt(n+2),this.memory.charCodeAt(n+5)<<8|this.memory.charCodeAt(n+4),this.memory.charCodeAt(n+7)<<8|this.memory.charCodeAt(n+6)),this.v2.add(l.multiply(h)).rotl(31).multiply(i),n+=8,l=t(this.memory.charCodeAt(n+1)<<8|this.memory.charCodeAt(n),this.memory.charCodeAt(n+3)<<8|this.memory.charCodeAt(n+2),this.memory.charCodeAt(n+5)<<8|this.memory.charCodeAt(n+4),this.memory.charCodeAt(n+7)<<8|this.memory.charCodeAt(n+6)),this.v3.add(l.multiply(h)).rotl(31).multiply(i),n+=8,l=t(this.memory.charCodeAt(n+1)<<8|this.memory.charCodeAt(n),this.memory.charCodeAt(n+3)<<8|this.memory.charCodeAt(n+2),this.memory.charCodeAt(n+5)<<8|this.memory.charCodeAt(n+4),this.memory.charCodeAt(n+7)<<8|this.memory.charCodeAt(n+6)),this.v4.add(l.multiply(h)).rotl(31).multiply(i)):(l=t(this.memory[n+1]<<8|this.memory[n],this.memory[n+3]<<8|this.memory[n+2],this.memory[n+5]<<8|this.memory[n+4],this.memory[n+7]<<8|this.memory[n+6]),this.v1.add(l.multiply(h)).rotl(31).multiply(i),n+=8,l=t(this.memory[n+1]<<8|this.memory[n],this.memory[n+3]<<8|this.memory[n+2],this.memory[n+5]<<8|this.memory[n+4],this.memory[n+7]<<8|this.memory[n+6]),this.v2.add(l.multiply(h)).rotl(31).multiply(i),n+=8,l=t(this.memory[n+1]<<8|this.memory[n],this.memory[n+3]<<8|this.memory[n+2],this.memory[n+5]<<8|this.memory[n+4],this.memory[n+7]<<8|this.memory[n+6]),this.v3.add(l.multiply(h)).rotl(31).multiply(i),n+=8,l=t(this.memory[n+1]<<8|this.memory[n],this.memory[n+3]<<8|this.memory[n+2],this.memory[n+5]<<8|this.memory[n+4],this.memory[n+7]<<8|this.memory[n+6]),this.v4.add(l.multiply(h)).rotl(31).multiply(i)),o+=32-this.memsize,this.memsize=0,e&&(this.memory="")}if(o<=m-32){var _=m-32;do{var l;e?(l=t(s.charCodeAt(o+1)<<8|s.charCodeAt(o),s.charCodeAt(o+3)<<8|s.charCodeAt(o+2),s.charCodeAt(o+5)<<8|s.charCodeAt(o+4),s.charCodeAt(o+7)<<8|s.charCodeAt(o+6)),this.v1.add(l.multiply(h)).rotl(31).multiply(i),o+=8,l=t(s.charCodeAt(o+1)<<8|s.charCodeAt(o),s.charCodeAt(o+3)<<8|s.charCodeAt(o+2),s.charCodeAt(o+5)<<8|s.charCodeAt(o+4),s.charCodeAt(o+7)<<8|s.charCodeAt(o+6)),this.v2.add(l.multiply(h)).rotl(31).multiply(i),o+=8,l=t(s.charCodeAt(o+1)<<8|s.charCodeAt(o),s.charCodeAt(o+3)<<8|s.charCodeAt(o+2),s.charCodeAt(o+5)<<8|s.charCodeAt(o+4),s.charCodeAt(o+7)<<8|s.charCodeAt(o+6)),this.v3.add(l.multiply(h)).rotl(31).multiply(i),o+=8,l=t(s.charCodeAt(o+1)<<8|s.charCodeAt(o),s.charCodeAt(o+3)<<8|s.charCodeAt(o+2),s.charCodeAt(o+5)<<8|s.charCodeAt(o+4),s.charCodeAt(o+7)<<8|s.charCodeAt(o+6)),this.v4.add(l.multiply(h)).rotl(31).multiply(i)):(l=t(s[o+1]<<8|s[o],s[o+3]<<8|s[o+2],s[o+5]<<8|s[o+4],s[o+7]<<8|s[o+6]),this.v1.add(l.multiply(h)).rotl(31).multiply(i),l=t(s[(o+=8)+1]<<8|s[o],s[o+3]<<8|s[o+2],s[o+5]<<8|s[o+4],s[o+7]<<8|s[o+6]),this.v2.add(l.multiply(h)).rotl(31).multiply(i),l=t(s[(o+=8)+1]<<8|s[o],s[o+3]<<8|s[o+2],s[o+5]<<8|s[o+4],s[o+7]<<8|s[o+6]),this.v3.add(l.multiply(h)).rotl(31).multiply(i),l=t(s[(o+=8)+1]<<8|s[o],s[o+3]<<8|s[o+2],s[o+5]<<8|s[o+4],s[o+7]<<8|s[o+6]),this.v4.add(l.multiply(h)).rotl(31).multiply(i)),o+=8}while(o<=_)}return o<m&&(e?this.memory+=s.slice(o):r?this.memory.set(s.subarray(o,m),this.memsize):s.copy(this.memory,this.memsize,o,m),this.memsize=m-o),this},o.prototype.digest=function(){var o,a,m=this.memory,n="string"==typeof m,_=0,l=this.memsize,y=new t;for(this.total_len>=32?((o=this.v1.clone().rotl(1)).add(this.v2.clone().rotl(7)),o.add(this.v3.clone().rotl(12)),o.add(this.v4.clone().rotl(18)),o.xor(this.v1.multiply(h).rotl(31).multiply(i)),o.multiply(i).add(r),o.xor(this.v2.multiply(h).rotl(31).multiply(i)),o.multiply(i).add(r),o.xor(this.v3.multiply(h).rotl(31).multiply(i)),o.multiply(i).add(r),o.xor(this.v4.multiply(h).rotl(31).multiply(i)),o.multiply(i).add(r)):o=this.seed.clone().add(e),o.add(y.fromNumber(this.total_len));_<=l-8;)n?y.fromBits(m.charCodeAt(_+1)<<8|m.charCodeAt(_),m.charCodeAt(_+3)<<8|m.charCodeAt(_+2),m.charCodeAt(_+5)<<8|m.charCodeAt(_+4),m.charCodeAt(_+7)<<8|m.charCodeAt(_+6)):y.fromBits(m[_+1]<<8|m[_],m[_+3]<<8|m[_+2],m[_+5]<<8|m[_+4],m[_+7]<<8|m[_+6]),y.multiply(h).rotl(31).multiply(i),o.xor(y).rotl(27).multiply(i).add(r),_+=8;for(_+4<=l&&(n?y.fromBits(m.charCodeAt(_+1)<<8|m.charCodeAt(_),m.charCodeAt(_+3)<<8|m.charCodeAt(_+2),0,0):y.fromBits(m[_+1]<<8|m[_],m[_+3]<<8|m[_+2],0,0),o.xor(y.multiply(i)).rotl(23).multiply(h).add(s),_+=4);_<l;)y.fromBits(n?m.charCodeAt(_++):m[_++],0,0,0),o.xor(y.multiply(e)).rotl(11).multiply(i);return a=o.clone().shiftRight(33),o.xor(a).multiply(h),a=o.clone().shiftRight(29),o.xor(a).multiply(s),a=o.clone().shiftRight(32),o.xor(a),this.init(this.seed),o},a=o}var C=_?n:(_=1,n={h32:f(),h64:A()});t("i",i({__proto__:null},[C]))}}}));