PageSourceSearch

https://www.dx.app/_next/static/chunks/3038-3e93452b0b9e9d9d.js

js dx.app collected 2026-10-03 19:23:57 UTC 5,250 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3038],{33038:(t,e,i)=>{i.d(e,{Js:()=>p});var r=i(38031),l=i(31450),n=i(77513),s=i(12815);let a=BigInt(-1),u=BigInt(0),o=BigInt(1),h=BigInt(5),f={},d="0000";for(;d.length<80;)d+=d;function m(t){let e=d;for(;e.length<t;)e+=e;return BigInt("1"+e.substring(0,t))}function v(t,e,i){let l=BigInt(e.width);if(e.signed){let e=o<<l-o;(0,r.vA)(null==i||t>=-e&&t<e,"overflow","NUMERIC_FAULT",{operation:i,fault:"overflow",value:t}),t=t>u?(0,n.ST)((0,n.dK)(t,l),l):-(0,n.ST)((0,n.dK)(-t,l),l)}else{let e=o<<l;(0,r.vA)(null==i||t>=0&&t<e,"overflow","NUMERIC_FAULT",{operation:i,fault:"overflow",value:t}),t=(t%e+e)%e&e-o}return t}function c(t){"number"==typeof t&&(t=`fixed128x${t}`);let e=!0,i=128,l=18;if("string"==typeof t)if("fixed"===t);else if("ufixed"===t)e=!1;else{let n=t.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);(0,r.MR)(n,"invalid fixed format","format",t),e="u"!==n[1],i=parseInt(n[2]),l=parseInt(n[3])}else if(t){let n=t,s=(t,e,i)=>null==n[t]?i:((0,r.MR)(typeof n[t]===e,"invalid fixed format ("+t+" not "+e+")","format."+t,n[t]),n[t]);e=s("signed","boolean",e),i=s("width","number",i),l=s("decimals","number",l)}(0,r.MR)(i%8==0,"invalid FixedNumber width (not byte aligned)","format.width",i),(0,r.MR)(l<=80,"invalid FixedNumber decimals (too large)","format.decimals",l);let n=(e?"":"u")+"fixed"+String(i)+"x"+String(l);return{signed:e,width:i,decimals:l,name:n}}class g{format;#t;#e;#i;_value;constructor(t,e,i){(0,r.gk)(t,f,"FixedNumber"),this.#e=e,this.#t=i;let l=function(t,e){let i="";t<u&&(i="-",t*=a);let r=t.toString();if(0===e)return i+r;for(;r.length<=e;)r=d+r;let l=r.length-e;for(r=r.substring(0,l)+"."+r.substring(l);"0"===r[0]&&"."!==r[1];)r=r.substring(1);for(;"0"===r[r.length-1]&&"."!==r[r.length-2];)r=r.substring(0,r.length-1);return i+r}(e,i.decimals);(0,s.n)(this,{format:i.name,_value:l}),this.#i=m(i.decimals)}get signed(){return this.#t.signed}get width(){return this.#t.width}get decimals(){return this.#t.decimals}get value(){return this.#e}#r(t){(0,r.MR)(this.format===t.format,"incompatible format; use fixedNumber.toFormat","other",t)}#l(t,e){return new g(f,t=v(t,this.#t,e),this.#t)}#n(t,e){return this.#r(t),this.#l(this.#e+t.#e,e)}addUnsafe(t){return this.#n(t)}add(t){return this.#n(t,"add")}#s(t,e){return this.#r(t),this.#l(this.#e-t.#e,e)}subUnsafe(t){return this.#s(t)}sub(t){return this.#s(t,"sub")}#a(t,e){return this.#r(t),this.#l(this.#e*t.#e/this.#i,e)}mulUnsafe(t){return this.#a(t)}mul(t){return this.#a(t,"mul")}mulSignal(t){this.#r(t);let e=this.#e*t.#e;return(0,r.vA)(e%this.#i===u,"precision lost during signalling mul","NUMERIC_FAULT",{operation:"mulSignal",fault:"underflow",value:this}),this.#l(e/this.#i,"mulSignal")}#u(t,e){return(0,r.vA)(t.#e!==u,"division by zero","NUMERIC_FAULT",{operation:"div",fault:"divide-by-zero",value:this}),this.#r(t),this.#l(this.#e*this.#i/t.#e,e)}divUnsafe(t){return this.#u(t)}div(t){return this.#u(t,"div")}divSignal(t){(0,r.vA)(t.#e!==u,"division by zero","NUMERIC_FAULT",{operation:"div",fault:"divide-by-zero",value:this}),this.#r(t);let e=this.#e*this.#i;return(0,r.vA)(e%t.#e===u,"precision lost during signalling div","NUMERIC_FAULT",{operation:"divSignal",fault:"underflow",value:this}),this.#l(e/t.#e,"divSignal")}cmp(t){let e=this.value,i=t.value,r=this.decimals-t.decimals;return(r>0?i*=m(r):r<0&&(e*=m(-r)),e<i)?-1:+(e>i)}eq(t){return 0===this.cmp(t)}lt(t){return 0>this.cmp(t)}lte(t){return 0>=this.cmp(t)}gt(t){return this.cmp(t)>0}gte(t){return this.cmp(t)>=0}floor(){let t=this.#e;return this.#e<u&&(t-=this.#i-o),t=this.#e/this.#i*this.#i,this.#l(t,"floor")}ceiling(){let t=this.#e;return this.#e>u&&(t+=this.#i-o),t=this.#e/this.#i*this.#i,this.#l(t,"ceiling")}round(t){if(null==t&&(t=0),t>=this.decimals)return this;let e=this.decimals-t,i=h*m(e-1),r=this.value+i,l=m(e);return v(r=r/l*l,this.#t,"round"),new g(f,r,this.#t)}isZero(){return this.#e===u}isNegative(){return this.#e<u}toString(){return this._value}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(t){return g.fromString(this.toString(),t)}static fromValue(t,e,i){let l=null==e?0:(0,n.WZ)(e),s=c(i),a=(0,n.Ab)(t,"value"),o=l-s.decimals;if(o>0){let e=m(o);(0,r.vA)(a%e===u,"value loses precision for format","NUMERIC_FAULT",{operation:"fromValue",fault:"underflow",value:t}),a/=e}else o<0&&(a*=m(-o));return v(a,s,"fromValue"),new g(f,a,s)}static fromString(t,e){let i=t.match(/^(-?)([0-9]*)\.?([0-9]*)$/);(0,r.MR)(i&&i[2].length+i[3].length>0,"invalid FixedNumber string value","value",t);let l=c(e),n=i[2]||"0",s=i[3]||"";for(;s.length<l.decimals;)s+=d;(0,r.vA)(s.substring(l.decimals).match(/^0*$/),"too many decimals for format","NUMERIC_FAULT",{operation:"fromString",fault:"underflow",value:t}),s=s.substring(0,l.decimals);let a=BigInt(i[1]+n+s);return v(a,l,"fromString"),new g(f,a,l)}static fromBytes(t,e){let i=(0,n.Dg)((0,l.q5)(t,"value")),r=c(e);return r.signed&&(i=(0,n.ST)(i,r.width)),v(i,r,"fromBytes"),new g(f,i,r)}}let b=["wei","kwei","mwei","gwei","szabo","finney","ether"];function p(t,e){let i=18;if("string"==typeof e){let t=b.indexOf(e);(0,r.MR)(t>=0,"invalid unit","unit",e),i=3*t}else null!=e&&(i=(0,n.WZ)(e,"unit"));return g.fromValue(t,i,{decimals:i,width:512}).toString()}}}]);

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.