PageSourceSearch

https://aerodrome.finance/assets/sha3-Bk1ffKuE.js

js aerodrome.finance collected 2026-10-02 06:15:45 UTC 10,297 bytes, 1 lines download raw bytes

1var y={},g={},X;function D(){if(X)return g;X=1,Object.defineProperty(g,"__esModule",{value:!0}),g.output=g.exists=g.hash=g.bytes=g.bool=g.number=g.isBytes=void 0;function o(f){if(!Number.isSafeInteger(f)||f<0)throw new Error(`positive integer expected, not ${f}`)}g.number=o;function L(f){if(typeof f!="boolean")throw new Error(`boolean expected, not ${f}`)}g.bool=L;function p(f){return f instanceof Uint8Array||f!=null&&typeof f=="object"&&f.constructor.name==="Uint8Array"}g.isBytes=p;function O(f,...k){if(!p(f))throw new Error("Uint8Array expected");if(k.length>0&&!k.includes(f.length))throw new Error(`Uint8Array expected of length ${k}, not of length=${f.length}`)}g.bytes=O;function A(f){if(typeof f!="function"||typeof f.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");o(f.outputLen),o(f.blockLen)}g.hash=A;function m(f,k=!0){if(f.destroyed)throw new Error("Hash instance has been destroyed");if(k&&f.finished)throw new Error("Hash#digest() has already been called")}g.exists=m;function E(f,k){O(f);const U=k.outputLen;if(f.length<U)throw new Error(`digestInto() expects output buffer of length at least ${U}`)}g.output=E;const S={number:o,bool:L,bytes:O,hash:A,exists:m,output:E};return g.default=S,g}var c={},V;function z(){if(V)return c;V=1,Object.defineProperty(c,"__esModule",{value:!0}),c.add5L=c.add5H=c.add4H=c.add4L=c.add3H=c.add3L=c.add=c.rotlBL=c.rotlBH=c.rotlSL=c.rotlSH=c.rotr32L=c.rotr32H=c.rotrBL=c.rotrBH=c.rotrSL=c.rotrSH=c.shrSL=c.shrSH=c.toBig=c.split=c.fromBig=void 0;const o=BigInt(2**32-1),L=BigInt(32);function p(n,e=!1){return e?{h:Number(n&o),l:Number(n>>L&o)}:{h:Number(n>>L&o)|0,l:Number(n&o)|0}}c.fromBig=p;function O(n,e=!1){let r=new Uint32Array(n.length),t=new Uint32Array(n.length);for(let s=0;s<n.length;s++){const{h,l:d}=p(n[s],e);[r[s],t[s]]=[h,d]}return[r,t]}c.split=O;const A=(n,e)=>BigInt(n>>>0)<<L|BigInt(e>>>0);c.toBig=A;const m=(n,e,r)=>n>>>r;c.shrSH=m;const E=(n,e,r)=>n<<32-r|e>>>r;c.shrSL=E;const S=(n,e,r)=>n>>>r|e<<32-r;c.rotrSH=S;const f=(n,e,r)=>n<<32-r|e>>>r;c.rotrSL=f;const k=(n,e,r)=>n<<64-r|e>>>r-32;c.rotrBH=k;const U=(n,e,r)=>n>>>r-32|e<<64-r;c.rotrBL=U;const C=(n,e)=>e;c.rotr32H=C;const F=(n,e)=>n;c.rotr32L=F;const B=(n,e,r)=>n<<r|e>>>32-r;c.rotlSH=B;const v=(n,e,r)=>e<<r|n>>>32-r;c.rotlSL=v;const j=(n,e,r)=>e<<r-32|n>>>64-r;c.rotlBH=j;const x=(n,e,r)=>n<<r-32|e>>>64-r;c.rotlBL=x;function I(n,e,r,t){const s=(e>>>0)+(t>>>0);return{h:n+r+(s/2**32|0)|0,l:s|0}}c.add=I;const H=(n,e,r)=>(n>>>0)+(e>>>0)+(r>>>0);c.add3L=H;const T=(n,e,r,t)=>e+r+t+(n/2**32|0)|0;c.add3H=T;const a=(n,e,r,t)=>(n>>>0)+(e>>>0)+(r>>>0)+(t>>>0);c.add4L=a;const i=(n,e,r,t,s)=>e+r+t+s+(n/2**32|0)|0;c.add4H=i;const u=(n,e,r,t,s)=>(n>>>0)+(e>>>0)+(r>>>0)+(t>>>0)+(s>>>0);c.add5L=u;const l=(n,e,r,t,s,h)=>e+r+t+s+h+(n/2**32|0)|0;c.add5H=l;const b={fromBig:p,split:O,toBig:A,shrSH:m,shrSL:E,rotrSH:S,rotrSL:f,rotrBH:k,rotrBL:U,rotr32H:C,rotr32L:F,rotlSH:B,rotlSL:v,rotlBH:j,rotlBL:x,add:I,add3L:H,add3H:T,add4L:a,add4H:i,add5H:l,add5L:u};return c.default=b,c}var P={},q={},W;function G(){return W||(W=1,Object.defineProperty(q,"__esModule",{value:!0}),q.crypto=void 0,q.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0),q}var $;function J(){return $||($=1,(function(o){Object.defineProperty(o,"__esModule",{value:!0}),o.randomBytes=o.wrapXOFConstructorWithOpts=o.wrapConstructorWithOpts=o.wrapConstructor=o.checkOpts=o.Hash=o.concatBytes=o.toBytes=o.utf8ToBytes=o.asyncLoop=o.nextTick=o.hexToBytes=o.bytesToHex=o.byteSwap32=o.byteSwapIfBE=o.byteSwap=o.isLE=o.rotl=o.rotr=o.createView=o.u32=o.u8=o.isBytes=void 0;const L=G(),p=D();function O(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}o.isBytes=O;const A=t=>new Uint8Array(t.buffer,t.byteOffset,t.byteLength);o.u8=A;const m=t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4));o.u32=m;const E=t=>new DataView(t.buffer,t.byteOffset,t.byteLength);o.createView=E;const S=(t,s)=>t<<32-s|t>>>s;o.rotr=S;const f=(t,s)=>t<<s|t>>>32-s>>>0;o.rotl=f,o.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;const k=t=>t<<24&4278190080|t<<8&16711680|t>>>8&65280|t>>>24&255;o.byteSwap=k,o.byteSwapIfBE=o.isLE?t=>t:t=>(0,o.byteSwap)(t);function U(t){for(let s=0;s<t.length;s++)t[s]=(0,o.byteSwap)(t[s])}o.byteSwap32=U;const C=Array.from({length:256},(t,s)=>s.toString(16).padStart(2,"0"));function F(t){(0,p.bytes)(t);let s="";for(let h=0;h<t.length;h++)s+=C[t[h]];return s}o.bytesToHex=F;const B={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function v(t){if(t>=B._0&&t<=B._9)return t-B._0;if(t>=B._A&&t<=B._F)return t-(B._A-10);if(t>=B._a&&t<=B._f)return t-(B._a-10)}function j(t){if(typeof t!="string")throw new Error("hex string expected, got "+typeof t);const s=t.length,h=s/2;if(s%2)throw new Error("padded hex string expected, got unpadded hex of length "+s);const d=new Uint8Array(h);for(let w=0,_=0;w<h;w++,_+=2){const R=v(t.charCodeAt(_)),M=v(t.charCodeAt(_+1));if(R===void 0||M===void 0){const K=t[_]+t[_+1];throw new Error('hex string expected, got non-hex character "'+K+'" at index '+_)}d[w]=R*16+M}return d}o.hexToBytes=j;const x=async()=>{};o.nextTick=x;async function I(t,s,h){let d=Date.now();for(let w=0;w<t;w++){h(w);const _=Date.now()-d;_>=0&&_<s||(await(0,o.nextTick)(),d+=_)}}o.asyncLoop=I;function H(t){if(typeof t!="string")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}o.utf8ToBytes=H;function T(t){return typeof t=="string"&&(t=H(t)),(0,p.bytes)(t),t}o.toBytes=T;function a(...t){let s=0;for(let d=0;d<t.length;d++){const w=t[d];(0,p.bytes)(w),s+=w.length}const h=new Uint8Array(s);for(let d=0,w=0;d<t.length;d++){const _=t[d];h.set(_,w),w+=_.length}return h}o.concatBytes=a;class i{clone(){return this._cloneInto()}}o.Hash=i;const u={}.toString;function l(t,s){if(s!==void 0&&u.call(s)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(t,s)}o.checkOpts=l;function b(t){const s=d=>t().update(T(d)).digest(),h=t();return s.outputLen=h.outputLen,s.blockLen=h.blockLen,s.create=()=>t(),s}o.wrapConstructor=b;function n(t){const s=(d,w)=>t(w).update(T(d)).digest(),h=t({});return s.outputLen=h.outputLen,s.blockLen=h.blockLen,s.create=d=>t(d),s}o.wrapConstructorWithOpts=n;function e(t){const s=(d,w)=>t(w).update(T(d)).digest(),h=t({});return s.outputLen=h.outputLen,s.blockLen=h.blockLen,s.create=d=>t(d),s}o.wrapXOFConstructorWithOpts=e;function r(t=32){if(L.crypto&&typeof L.crypto.getRandomValues=="function")return L.crypto.getRandomValues(new Uint8Array(t));throw new Error("crypto.getRandomValues must be defined")}o.randomBytes=r})(P)),P}var N;function Q(){if(N)return y;N=1,Object.defineProperty(y,"__esModule",{value:!0}),y.shake256=y.shake128=y.keccak_512=y.keccak_384=y.keccak_256=y.keccak_224=y.sha3_512=y.sha3_384=y.sha3_256=y.sha3_224=y.Keccak=y.keccakP=void 0;const o=D(),L=z(),p=J(),O=[],A=[],m=[],E=BigInt(0),S=BigInt(1),f=BigInt(2),k=BigInt(7),U=BigInt(256),C=BigInt(113);for(let a=0,i=S,u=1,l=0;a<24;a++){[u,l]=[l,(2*u+3*l)%5],O.push(2*(5*l+u)),A.push((a+1)*(a+2)/2%64);let b=E;for(let n=0;n<7;n++)i=(i<<S^(i>>k)*C)%U,i&f&&(b^=S<<(S<<BigInt(n))-S);m.push(b)}const[F,B]=(0,L.split)(m,!0),v=(a,i,u)=>u>32?(0,L.rotlBH)(a,i,u):(0,L.rotlSH)(a,i,u),j=(a,i,u)=>u>32?(0,L.rotlBL)(a,i,u):(0,L.rotlSL)(a,i,u);function x(a,i=24){const u=new Uint32Array(10);for(let l=24-i;l<24;l++){for(let e=0;e<10;e++)u[e]=a[e]^a[e+10]^a[e+20]^a[e+30]^a[e+40];for(let e=0;e<10;e+=2){const r=(e+8)%10,t=(e+2)%10,s=u[t],h=u[t+1],d=v(s,h,1)^u[r],w=j(s,h,1)^u[r+1];for(let _=0;_<50;_+=10)a[e+_]^=d,a[e+_+1]^=w}let b=a[2],n=a[3];for(let e=0;e<24;e++){const r=A[e],t=v(b,n,r),s=j(b,n,r),h=O[e];b=a[h],n=a[h+1],a[h]=t,a[h+1]=s}for(let e=0;e<50;e+=10){for(let r=0;r<10;r++)u[r]=a[e+r];for(let r=0;r<10;r++)a[e+r]^=~u[(r+2)%10]&u[(r+4)%10]}a[0]^=F[l],a[1]^=B[l]}u.fill(0)}y.keccakP=x;class I extends p.Hash{constructor(i,u,l,b=!1,n=24){if(super(),this.blockLen=i,this.suffix=u,this.outputLen=l,this.enableXOF=b,this.rounds=n,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,o.number)(l),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,p.u32)(this.state)}keccak(){p.isLE||(0,p.byteSwap32)(this.state32),x(this.state32,this.rounds),p.isLE||(0,p.byteSwap32)(this.state32),this.posOut=0,this.pos=0}update(i){(0,o.exists)(this);const{blockLen:u,state:l}=this;i=(0,p.toBytes)(i);const b=i.length;for(let n=0;n<b;){const e=Math.min(u-this.pos,b-n);for(let r=0;r<e;r++)l[this.pos++]^=i[n++];this.pos===u&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:i,suffix:u,pos:l,blockLen:b}=this;i[l]^=u,(u&128)!==0&&l===b-1&&this.keccak(),i[b-1]^=128,this.keccak()}writeInto(i){(0,o.exists)(this,!1),(0,o.bytes)(i),this.finish();const u=this.state,{blockLen:l}=this;for(let b=0,n=i.length;b<n;){this.posOut>=l&&this.keccak();const e=Math.min(l-this.posOut,n-b);i.set(u.subarray(this.posOut,this.posOut+e),b),this.posOut+=e,b+=e}return i}xofInto(i){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(i)}xof(i){return(0,o.number)(i),this.xofInto(new Uint8Array(i))}digestInto(i){if((0,o.output)(i,this),this.finished)throw new Error("digest() was already called");return this.writeInto(i),this.destroy(),i}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(i){const{blockLen:u,suffix:l,outputLen:b,rounds:n,enableXOF:e}=this;
1return i||(i=new I(u,l,b,e,n)),i.state32.set(this.state32),i.pos=this.pos,i.posOut=this.posOut,i.finished=this.finished,i.rounds=n,i.suffix=l,i.outputLen=b,i.enableXOF=e,i.destroyed=this.destroyed,i}}y.Keccak=I;const H=(a,i,u)=>(0,p.wrapConstructor)(()=>new I(i,a,u));y.sha3_224=H(6,144,224/8),y.sha3_256=H(6,136,256/8),y.sha3_384=H(6,104,384/8),y.sha3_512=H(6,72,512/8),y.keccak_224=H(1,144,224/8),y.keccak_256=H(1,136,256/8),y.keccak_384=H(1,104,384/8),y.keccak_512=H(1,72,512/8);const T=(a,i,u)=>(0,p.wrapXOFConstructorWithOpts)((l={})=>new I(i,a,l.dkLen===void 0?u:l.dkLen,!0));return y.shake128=T(31,168,128/8),y.shake256=T(31,136,256/8),y}export{J as a,D as b,Q as r};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.