-
Notifications
You must be signed in to change notification settings - Fork 2
/
5025.6a72c8d1b66b339407f3.js
1 lines (1 loc) · 9.78 KB
/
5025.6a72c8d1b66b339407f3.js
1
(self.webpackChunktimeless_frontend=self.webpackChunktimeless_frontend||[]).push([[5025],{58577:(b,g,_)=>{b.exports=_(40378)(_(50349))},40378:(b,g,_)=>{const t=_(73396),d=_(24079);b.exports=function(f){const i=t(f),n=d(f);return function(l,h){switch("string"==typeof l?l.toLowerCase():l){case"keccak224":return new i(1152,448,null,224,h);case"keccak256":return new i(1088,512,null,256,h);case"keccak384":return new i(832,768,null,384,h);case"keccak512":return new i(576,1024,null,512,h);case"sha3-224":return new i(1152,448,6,224,h);case"sha3-256":return new i(1088,512,6,256,h);case"sha3-384":return new i(832,768,6,384,h);case"sha3-512":return new i(576,1024,6,512,h);case"shake128":return new n(1344,256,31,h);case"shake256":return new n(1088,512,31,h);default:throw new Error("Invald algorithm: "+l)}}}},73396:(b,g,_)=>{const{Transform:t}=_(18300);b.exports=d=>class fe extends t{constructor(i,n,l,h,w){super(w),this._rate=i,this._capacity=n,this._delimitedSuffix=l,this._hashBitLength=h,this._options=w,this._state=new d,this._state.initialize(i,n),this._finalized=!1}_transform(i,n,l){let h=null;try{this.update(i,n)}catch(w){h=w}l(h)}_flush(i){let n=null;try{this.push(this.digest())}catch(l){n=l}i(n)}update(i,n){if(!Buffer.isBuffer(i)&&"string"!=typeof i)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return Buffer.isBuffer(i)||(i=Buffer.from(i,n)),this._state.absorb(i),this}digest(i){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let n=this._state.squeeze(this._hashBitLength/8);return void 0!==i&&(n=n.toString(i)),this._resetState(),n}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const i=new fe(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(i._state),i._finalized=this._finalized,i}}},24079:(b,g,_)=>{const{Transform:t}=_(18300);b.exports=d=>class le extends t{constructor(i,n,l,h){super(h),this._rate=i,this._capacity=n,this._delimitedSuffix=l,this._options=h,this._state=new d,this._state.initialize(i,n),this._finalized=!1}_transform(i,n,l){let h=null;try{this.update(i,n)}catch(w){h=w}l(h)}_flush(){}_read(i){this.push(this.squeeze(i))}update(i,n){if(!Buffer.isBuffer(i)&&"string"!=typeof i)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return Buffer.isBuffer(i)||(i=Buffer.from(i,n)),this._state.absorb(i),this}squeeze(i,n){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let l=this._state.squeeze(i);return void 0!==n&&(l=l.toString(n)),l}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const i=new le(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(i._state),i._finalized=this._finalized,i}}},11126:(b,g)=>{const _=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];g.p1600=function(t){for(let d=0;d<24;++d){const f=t[0]^t[10]^t[20]^t[30]^t[40],i=t[1]^t[11]^t[21]^t[31]^t[41],n=t[2]^t[12]^t[22]^t[32]^t[42],l=t[3]^t[13]^t[23]^t[33]^t[43],h=t[4]^t[14]^t[24]^t[34]^t[44],w=t[5]^t[15]^t[25]^t[35]^t[45],B=t[6]^t[16]^t[26]^t[36]^t[46],p=t[7]^t[17]^t[27]^t[37]^t[47],y=t[8]^t[18]^t[28]^t[38]^t[48],S=t[9]^t[19]^t[29]^t[39]^t[49];let o=y^(n<<1|l>>>31),s=S^(l<<1|n>>>31);const e=t[0]^o,r=t[1]^s,c=t[10]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d],t[1]^=_[2*d+1]}}},50349:(b,g,_)=>{const t=_(11126);function d(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}d.prototype.initialize=function(f,i){for(let n=0;n<50;++n)this.state[n]=0;this.blockSize=f/8,this.count=0,this.squeezing=!1},d.prototype.absorb=function(f){for(let i=0;i<f.length;++i)this.state[~~(this.count/4)]^=f[i]<<this.count%4*8,this.count+=1,this.count===this.blockSize&&(t.p1600(this.state),this.count=0)},d.prototype.absorbLastFewBits=function(f){this.state[~~(this.count/4)]^=f<<this.count%4*8,0!=(128&f)&&this.count===this.blockSize-1&&t.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<(this.blockSize-1)%4*8,t.p1600(this.state),this.count=0,this.squeezing=!0},d.prototype.squeeze=function(f){this.squeezing||this.absorbLastFewBits(1);const i=Buffer.alloc(f);for(let n=0;n<f;++n)i[n]=this.state[~~(this.count/4)]>>>this.count%4*8&255,this.count+=1,this.count===this.blockSize&&(t.p1600(this.state),this.count=0);return i},d.prototype.copy=function(f){for(let i=0;i<50;++i)f.state[i]=this.state[i];f.blockSize=this.blockSize,f.count=this.count,f.squeezing=this.squeezing},b.exports=d},89153:function(b,g,_){"use strict";var t=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(g,"__esModule",{value:!0}),g.getLength=g.decode=g.encode=void 0;var d=t(_(62630));function i(e,r){if("0"===e[0]&&"0"===e[1])throw new Error("invalid RLP: extra zeros");return parseInt(e,r)}function n(e,r){if(e<56)return Buffer.from([e+r]);var c=y(e),u=y(r+55+c.length/2);return Buffer.from(u+c,"hex")}function w(e){var r,c,a,u,m,z=[],x=e[0];if(x<=127)return{data:e.slice(0,1),remainder:e.slice(1)};if(x<=183){if(r=x-127,a=128===x?Buffer.from([]):e.slice(1,r),2===r&&a[0]<128)throw new Error("invalid rlp encoding: byte must be less 0x80");return{data:a,remainder:e.slice(r)}}if(x<=191){if(e.length-1<(c=x-182))throw new Error("invalid RLP: not enough bytes for string length");if((r=i(e.slice(1,c).toString("hex"),16))<=55)throw new Error("invalid RLP: expected string length to be greater than 55");if((a=e.slice(c,r+c)).length<r)throw new Error("invalid RLP: not enough bytes for string");return{data:a,remainder:e.slice(r+c)}}if(x<=247){for(u=e.slice(1,r=x-191);u.length;)m=w(u),z.push(m.data),u=m.remainder;return{data:z,remainder:e.slice(r)}}var k=(c=x-246)+(r=i(e.slice(1,c).toString("hex"),16));if(k>e.length)throw new Error("invalid rlp: total length is larger than the data");if(0===(u=e.slice(c,k)).length)throw new Error("invalid rlp, List has a invalid length");for(;u.length;)m=w(u),z.push(m.data),u=m.remainder;return{data:z,remainder:e.slice(k)}}function B(e){return"0x"===e.slice(0,2)}function y(e){if(e<0)throw new Error("Invalid integer as argument, must be unsigned!");var r=e.toString(16);return r.length%2?"0"+r:r}function s(e){if(!Buffer.isBuffer(e)){if("string"==typeof e)return B(e)?Buffer.from(function(e){return e.length%2?"0"+e:e}(function(e){return"string"!=typeof e?e:B(e)?e.slice(2):e}(e)),"hex"):Buffer.from(e);if("number"==typeof e||"bigint"==typeof e)return e?function(e){var r=y(e);return Buffer.from(r,"hex")}(e):Buffer.from([]);if(null==e)return Buffer.from([]);if(e instanceof Uint8Array)return Buffer.from(e);if(d.default.isBN(e))return Buffer.from(e.toArray());throw new Error("invalid type")}return e}g.encode=function f(e){if(Array.isArray(e)){for(var r=[],c=0;c<e.length;c++)r.push(f(e[c]));var a=Buffer.concat(r);return Buffer.concat([n(a.length,192),a])}var u=s(e);return 1===u.length&&u[0]<128?u:Buffer.concat([n(u.length,128),u])},g.decode=function(e,r){if(void 0===r&&(r=!1),!e||0===e.length)return Buffer.from([]);var a=w(s(e));if(r)return a;if(0!==a.remainder.length)throw new Error("invalid remainder");return a.data},g.getLength=function(e){if(!e||0===e.length)return Buffer.from([]);var r=s(e),c=r[0];if(c<=127)return r.length;if(c<=183)return c-127;if(c<=191)return c-182;if(c<=247)return c-191;var a=c-246;return a+i(r.slice(1,a).toString("hex"),16)}}}]);