@powrldgr/raydium-sdk-v2
Version:
An SDK for building applications on top of Raydium.
1 lines • 199 kB
JavaScript
var vr=Object.defineProperty,Dr=Object.defineProperties;var Fr=Object.getOwnPropertyDescriptors;var ln=Object.getOwnPropertySymbols;var Bi=Object.prototype.hasOwnProperty,xi=Object.prototype.propertyIsEnumerable;var Ti=(r,e,t)=>e in r?vr(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,F=(r,e)=>{for(var t in e||(e={}))Bi.call(e,t)&&Ti(r,t,e[t]);if(ln)for(var t of ln(e))xi.call(e,t)&&Ti(r,t,e[t]);return r},j=(r,e)=>Dr(r,Fr(e));var Pt=(r,e)=>{var t={};for(var n in r)Bi.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&ln)for(var n of ln(r))e.indexOf(n)<0&&xi.call(r,n)&&(t[n]=r[n]);return t};import{PublicKey as N}from"@solana/web3.js";import Ae from"bn.js";var Kt=9e15,ft=1e9,_n="0123456789abcdef",mn="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",fn="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",Wn={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-Kt,maxE:Kt,crypto:!1},Ki,nt,X=!0,gn="[DecimalError] ",mt=gn+"Invalid argument: ",Ni=gn+"Precision limit exceeded",Li=gn+"crypto unavailable",Ri="[object Decimal]",Le=Math.floor,Pe=Math.pow,_r=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,Wr=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,qr=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,Mi=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Ze=1e7,V=7,Vr=9007199254740991,Ur=mn.length-1,qn=fn.length-1,I={toStringTag:Ri};I.absoluteValue=I.abs=function(){var r=new this.constructor(this);return r.s<0&&(r.s=1),_(r)};I.ceil=function(){return _(new this.constructor(this),this.e+1,2)};I.clampedTo=I.clamp=function(r,e){var t,n=this,i=n.constructor;if(r=new i(r),e=new i(e),!r.s||!e.s)return new i(NaN);if(r.gt(e))throw Error(mt+e);return t=n.cmp(r),t<0?r:n.cmp(e)>0?e:new i(n)};I.comparedTo=I.cmp=function(r){var e,t,n,i,o=this,s=o.d,a=(r=new o.constructor(r)).d,c=o.s,u=r.s;if(!s||!a)return!c||!u?NaN:c!==u?c:s===a?0:!s^c<0?1:-1;if(!s[0]||!a[0])return s[0]?c:a[0]?-u:0;if(c!==u)return c;if(o.e!==r.e)return o.e>r.e^c<0?1:-1;for(n=s.length,i=a.length,e=0,t=n<i?n:i;e<t;++e)if(s[e]!==a[e])return s[e]>a[e]^c<0?1:-1;return n===i?0:n>i^c<0?1:-1};I.cosine=I.cos=function(){var r,e,t=this,n=t.constructor;return t.d?t.d[0]?(r=n.precision,e=n.rounding,n.precision=r+Math.max(t.e,t.sd())+V,n.rounding=1,t=Gr(n,Fi(n,t)),n.precision=r,n.rounding=e,_(nt==2||nt==3?t.neg():t,r,e,!0)):new n(1):new n(NaN)};I.cubeRoot=I.cbrt=function(){var r,e,t,n,i,o,s,a,c,u,l=this,d=l.constructor;if(!l.isFinite()||l.isZero())return new d(l);for(X=!1,o=l.s*Pe(l.s*l,1/3),!o||Math.abs(o)==1/0?(t=Ie(l.d),r=l.e,(o=(r-t.length+1)%3)&&(t+=o==1||o==-2?"0":"00"),o=Pe(t,1/3),r=Le((r+1)/3)-(r%3==(r<0?-1:2)),o==1/0?t="5e"+r:(t=o.toExponential(),t=t.slice(0,t.indexOf("e")+1)+r),n=new d(t),n.s=l.s):n=new d(o.toString()),s=(r=d.precision)+3;;)if(a=n,c=a.times(a).times(a),u=c.plus(l),n=oe(u.plus(l).times(a),u.plus(c),s+2,1),Ie(a.d).slice(0,s)===(t=Ie(n.d)).slice(0,s))if(t=t.slice(s-3,s+1),t=="9999"||!i&&t=="4999"){if(!i&&(_(a,r+1,0),a.times(a).times(a).eq(l))){n=a;break}s+=4,i=1}else{(!+t||!+t.slice(1)&&t.charAt(0)=="5")&&(_(n,r+1,1),e=!n.times(n).times(n).eq(l));break}return X=!0,_(n,r,d.rounding,e)};I.decimalPlaces=I.dp=function(){var r,e=this.d,t=NaN;if(e){if(r=e.length-1,t=(r-Le(this.e/V))*V,r=e[r],r)for(;r%10==0;r/=10)t--;t<0&&(t=0)}return t};I.dividedBy=I.div=function(r){return oe(this,new this.constructor(r))};I.dividedToIntegerBy=I.divToInt=function(r){var e=this,t=e.constructor;return _(oe(e,new t(r),0,1,1),t.precision,t.rounding)};I.equals=I.eq=function(r){return this.cmp(r)===0};I.floor=function(){return _(new this.constructor(this),this.e+1,3)};I.greaterThan=I.gt=function(r){return this.cmp(r)>0};I.greaterThanOrEqualTo=I.gte=function(r){var e=this.cmp(r);return e==1||e===0};I.hyperbolicCosine=I.cosh=function(){var r,e,t,n,i,o=this,s=o.constructor,a=new s(1);if(!o.isFinite())return new s(o.s?1/0:NaN);if(o.isZero())return a;t=s.precision,n=s.rounding,s.precision=t+Math.max(o.e,o.sd())+4,s.rounding=1,i=o.d.length,i<32?(r=Math.ceil(i/3),e=(1/yn(4,r)).toString()):(r=16,e="2.3283064365386962890625e-10"),o=Nt(s,1,o.times(e),new s(1),!0);for(var c,u=r,l=new s(8);u--;)c=o.times(o),o=a.minus(c.times(l.minus(c.times(l))));return _(o,s.precision=t,s.rounding=n,!0)};I.hyperbolicSine=I.sinh=function(){var r,e,t,n,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(e=o.precision,t=o.rounding,o.precision=e+Math.max(i.e,i.sd())+4,o.rounding=1,n=i.d.length,n<3)i=Nt(o,2,i,i,!0);else{r=1.4*Math.sqrt(n),r=r>16?16:r|0,i=i.times(1/yn(5,r)),i=Nt(o,2,i,i,!0);for(var s,a=new o(5),c=new o(16),u=new o(20);r--;)s=i.times(i),i=i.times(a.plus(s.times(c.times(s).plus(u))))}return o.precision=e,o.rounding=t,_(i,e,t,!0)};I.hyperbolicTangent=I.tanh=function(){var r,e,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(r=n.precision,e=n.rounding,n.precision=r+7,n.rounding=1,oe(t.sinh(),t.cosh(),n.precision=r,n.rounding=e)):new n(t.s)};I.inverseCosine=I.acos=function(){var r,e=this,t=e.constructor,n=e.abs().cmp(1),i=t.precision,o=t.rounding;return n!==-1?n===0?e.isNeg()?He(t,i,o):new t(0):new t(NaN):e.isZero()?He(t,i+4,o).times(.5):(t.precision=i+6,t.rounding=1,e=e.asin(),r=He(t,i+4,o).times(.5),t.precision=i,t.rounding=o,r.minus(e))};I.inverseHyperbolicCosine=I.acosh=function(){var r,e,t=this,n=t.constructor;return t.lte(1)?new n(t.eq(1)?0:NaN):t.isFinite()?(r=n.precision,e=n.rounding,n.precision=r+Math.max(Math.abs(t.e),t.sd())+4,n.rounding=1,X=!1,t=t.times(t).minus(1).sqrt().plus(t),X=!0,n.precision=r,n.rounding=e,t.ln()):new n(t)};I.inverseHyperbolicSine=I.asinh=function(){var r,e,t=this,n=t.constructor;return!t.isFinite()||t.isZero()?new n(t):(r=n.precision,e=n.rounding,n.precision=r+2*Math.max(Math.abs(t.e),t.sd())+6,n.rounding=1,X=!1,t=t.times(t).plus(1).sqrt().plus(t),X=!0,n.precision=r,n.rounding=e,t.ln())};I.inverseHyperbolicTangent=I.atanh=function(){var r,e,t,n,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(r=o.precision,e=o.rounding,n=i.sd(),Math.max(n,r)<2*-i.e-1?_(new o(i),r,e,!0):(o.precision=t=n-i.e,i=oe(i.plus(1),new o(1).minus(i),t+r,1),o.precision=r+4,o.rounding=1,i=i.ln(),o.precision=r,o.rounding=e,i.times(.5))):new o(NaN)};I.inverseSine=I.asin=function(){var r,e,t,n,i=this,o=i.constructor;return i.isZero()?new o(i):(e=i.abs().cmp(1),t=o.precision,n=o.rounding,e!==-1?e===0?(r=He(o,t+4,n).times(.5),r.s=i.s,r):new o(NaN):(o.precision=t+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=t,o.rounding=n,i.times(2)))};I.inverseTangent=I.atan=function(){var r,e,t,n,i,o,s,a,c,u=this,l=u.constructor,d=l.precision,f=l.rounding;if(u.isFinite()){if(u.isZero())return new l(u);if(u.abs().eq(1)&&d+4<=qn)return s=He(l,d+4,f).times(.25),s.s=u.s,s}else{if(!u.s)return new l(NaN);if(d+4<=qn)return s=He(l,d+4,f).times(.5),s.s=u.s,s}for(l.precision=a=d+10,l.rounding=1,t=Math.min(28,a/V+2|0),r=t;r;--r)u=u.div(u.times(u).plus(1).sqrt().plus(1));for(X=!1,e=Math.ceil(a/V),n=1,c=u.times(u),s=new l(u),i=u;r!==-1;)if(i=i.times(c),o=s.minus(i.div(n+=2)),i=i.times(c),s=o.plus(i.div(n+=2)),s.d[e]!==void 0)for(r=e;s.d[r]===o.d[r]&&r--;);return t&&(s=s.times(2<<t-1)),X=!0,_(s,l.precision=d,l.rounding=f,!0)};I.isFinite=function(){return!!this.d};I.isInteger=I.isInt=function(){return!!this.d&&Le(this.e/V)>this.d.length-2};I.isNaN=function(){return!this.s};I.isNegative=I.isNeg=function(){return this.s<0};I.isPositive=I.isPos=function(){return this.s>0};I.isZero=function(){return!!this.d&&this.d[0]===0};I.lessThan=I.lt=function(r){return this.cmp(r)<0};I.lessThanOrEqualTo=I.lte=function(r){return this.cmp(r)<1};I.logarithm=I.log=function(r){var e,t,n,i,o,s,a,c,u=this,l=u.constructor,d=l.precision,f=l.rounding,m=5;if(r==null)r=new l(10),e=!0;else{if(r=new l(r),t=r.d,r.s<0||!t||!t[0]||r.eq(1))return new l(NaN);e=r.eq(10)}if(t=u.d,u.s<0||!t||!t[0]||u.eq(1))return new l(t&&!t[0]?-1/0:u.s!=1?NaN:t?0:1/0);if(e)if(t.length>1)o=!0;else{for(i=t[0];i%10===0;)i/=10;o=i!==1}if(X=!1,a=d+m,s=dt(u,a),n=e?pn(l,a+10):dt(r,a),c=oe(s,n,a,1),_t(c.d,i=d,f))do if(a+=10,s=dt(u,a),n=e?pn(l,a+10):dt(r,a),c=oe(s,n,a,1),!o){+Ie(c.d).slice(i+1,i+15)+1==1e14&&(c=_(c,d+1,0));break}while(_t(c.d,i+=10,f));return X=!0,_(c,d,f)};I.minus=I.sub=function(r){var e,t,n,i,o,s,a,c,u,l,d,f,m=this,p=m.constructor;if(r=new p(r),!m.d||!r.d)return!m.s||!r.s?r=new p(NaN):m.d?r.s=-r.s:r=new p(r.d||m.s!==r.s?m:NaN),r;if(m.s!=r.s)return r.s=-r.s,m.plus(r);if(u=m.d,f=r.d,a=p.precision,c=p.rounding,!u[0]||!f[0]){if(f[0])r.s=-r.s;else if(u[0])r=new p(m);else return new p(c===3?-0:0);return X?_(r,a,c):r}if(t=Le(r.e/V),l=Le(m.e/V),u=u.slice(),o=l-t,o){for(d=o<0,d?(e=u,o=-o,s=f.length):(e=f,t=l,s=u.length),n=Math.max(Math.ceil(a/V),s)+2,o>n&&(o=n,e.length=1),e.reverse(),n=o;n--;)e.push(0);e.reverse()}else{for(n=u.length,s=f.length,d=n<s,d&&(s=n),n=0;n<s;n++)if(u[n]!=f[n]){d=u[n]<f[n];break}o=0}for(d&&(e=u,u=f,f=e,r.s=-r.s),s=u.length,n=f.length-s;n>0;--n)u[s++]=0;for(n=f.length;n>o;){if(u[--n]<f[n]){for(i=n;i&&u[--i]===0;)u[i]=Ze-1;--u[i],u[n]+=Ze}u[n]-=f[n]}for(;u[--s]===0;)u.pop();for(;u[0]===0;u.shift())--t;return u[0]?(r.d=u,r.e=bn(u,t),X?_(r,a,c):r):new p(c===3?-0:0)};I.modulo=I.mod=function(r){var e,t=this,n=t.constructor;return r=new n(r),!t.d||!r.s||r.d&&!r.d[0]?new n(NaN):!r.d||t.d&&!t.d[0]?_(new n(t),n.precision,n.rounding):(X=!1,n.modulo==9?(e=oe(t,r.abs(),0,3,1),e.s*=r.s):e=oe(t,r,0,n.modulo,1),e=e.times(r),X=!0,t.minus(e))};I.naturalExponential=I.exp=function(){return Vn(this)};I.naturalLogarithm=I.ln=function(){return dt(this)};I.negated=I.neg=function(){var r=new this.constructor(this);return r.s=-r.s,_(r)};I.plus=I.add=function(r){var e,t,n,i,o,s,a,c,u,l,d=this,f=d.constructor;if(r=new f(r),!d.d||!r.d)return!d.s||!r.s?r=new f(NaN):d.d||(r=new f(r.d||d.s===r.s?d:NaN)),r;if(d.s!=r.s)return r.s=-r.s,d.minus(r);if(u=d.d,l=r.d,a=f.precision,c=f.rounding,!u[0]||!l[0])return l[0]||(r=new f(d)),X?_(r,a,c):r;if(o=Le(d.e/V),n=Le(r.e/V),u=u.slice(),i=o-n,i){for(i<0?(t=u,i=-i,s=l.length):(t=l,n=o,s=u.length),o=Math.ceil(a/V),s=o>s?o+1:s+1,i>s&&(i=s,t.length=1),t.reverse();i--;)t.push(0);t.reverse()}for(s=u.length,i=l.length,s-i<0&&(i=s,t=l,l=u,u=t),e=0;i;)e=(u[--i]=u[i]+l[i]+e)/Ze|0,u[i]%=Ze;for(e&&(u.unshift(e),++n),s=u.length;u[--s]==0;)u.pop();return r.d=u,r.e=bn(u,n),X?_(r,a,c):r};I.precision=I.sd=function(r){var e,t=this;if(r!==void 0&&r!==!!r&&r!==1&&r!==0)throw Error(mt+r);return t.d?(e=Oi(t.d),r&&t.e+1>e&&(e=t.e+1)):e=NaN,e};I.round=function(){var r=this,e=r.constructor;return _(new e(r),r.e+1,e.rounding)};I.sine=I.sin=function(){var r,e,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(r=n.precision,e=n.rounding,n.precision=r+Math.max(t.e,t.sd())+V,n.rounding=1,t=Hr(n,Fi(n,t)),n.precision=r,n.rounding=e,_(nt>2?t.neg():t,r,e,!0)):new n(NaN)};I.squareRoot=I.sqrt=function(){var r,e,t,n,i,o,s=this,a=s.d,c=s.e,u=s.s,l=s.constructor;if(u!==1||!a||!a[0])return new l(!u||u<0&&(!a||a[0])?NaN:a?s:1/0);for(X=!1,u=Math.sqrt(+s),u==0||u==1/0?(e=Ie(a),(e.length+c)%2==0&&(e+="0"),u=Math.sqrt(e),c=Le((c+1)/2)-(c<0||c%2),u==1/0?e="5e"+c:(e=u.toExponential(),e=e.slice(0,e.indexOf("e")+1)+c),n=new l(e)):n=new l(u.toString()),t=(c=l.precision)+3;;)if(o=n,n=o.plus(oe(s,o,t+2,1)).times(.5),Ie(o.d).slice(0,t)===(e=Ie(n.d)).slice(0,t))if(e=e.slice(t-3,t+1),e=="9999"||!i&&e=="4999"){if(!i&&(_(o,c+1,0),o.times(o).eq(s))){n=o;break}t+=4,i=1}else{(!+e||!+e.slice(1)&&e.charAt(0)=="5")&&(_(n,c+1,1),r=!n.times(n).eq(s));break}return X=!0,_(n,c,l.rounding,r)};I.tangent=I.tan=function(){var r,e,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(r=n.precision,e=n.rounding,n.precision=r+10,n.rounding=1,t=t.sin(),t.s=1,t=oe(t,new n(1).minus(t.times(t)).sqrt(),r+10,0),n.precision=r,n.rounding=e,_(nt==2||nt==4?t.neg():t,r,e,!0)):new n(NaN)};I.times=I.mul=function(r){var e,t,n,i,o,s,a,c,u,l=this,d=l.constructor,f=l.d,m=(r=new d(r)).d;if(r.s*=l.s,!f||!f[0]||!m||!m[0])return new d(!r.s||f&&!f[0]&&!m||m&&!m[0]&&!f?NaN:!f||!m?r.s/0:r.s*0);for(t=Le(l.e/V)+Le(r.e/V),c=f.length,u=m.length,c<u&&(o=f,f=m,m=o,s=c,c=u,u=s),o=[],s=c+u,n=s;n--;)o.push(0);for(n=u;--n>=0;){for(e=0,i=c+n;i>n;)a=o[i]+m[n]*f[i-n-1]+e,o[i--]=a%Ze|0,e=a/Ze|0;o[i]=(o[i]+e)%Ze|0}for(;!o[--s];)o.pop();return e?++t:o.shift(),r.d=o,r.e=bn(o,t),X?_(r,d.precision,d.rounding):r};I.toBinary=function(r,e){return Gn(this,2,r,e)};I.toDecimalPlaces=I.toDP=function(r,e){var t=this,n=t.constructor;return t=new n(t),r===void 0?t:(Fe(r,0,ft),e===void 0?e=n.rounding:Fe(e,0,8),_(t,r+t.e+1,e))};I.toExponential=function(r,e){var t,n=this,i=n.constructor;return r===void 0?t=Ye(n,!0):(Fe(r,0,ft),e===void 0?e=i.rounding:Fe(e,0,8),n=_(new i(n),r+1,e),t=Ye(n,!0,r+1)),n.isNeg()&&!n.isZero()?"-"+t:t};I.toFixed=function(r,e){var t,n,i=this,o=i.constructor;return r===void 0?t=Ye(i):(Fe(r,0,ft),e===void 0?e=o.rounding:Fe(e,0,8),n=_(new o(i),r+i.e+1,e),t=Ye(n,!1,r+n.e+1)),i.isNeg()&&!i.isZero()?"-"+t:t};I.toFraction=function(r){var e,t,n,i,o,s,a,c,u,l,d,f,m=this,p=m.d,g=m.constructor;if(!p)return new g(m);if(u=t=new g(1),n=c=new g(0),e=new g(n),o=e.e=Oi(p)-m.e-1,s=o%V,e.d[0]=Pe(10,s<0?V+s:s),r==null)r=o>0?e:u;else{if(a=new g(r),!a.isInt()||a.lt(u))throw Error(mt+a);r=a.gt(e)?o>0?e:u:a}for(X=!1,a=new g(Ie(p)),l=g.precision,g.precision=o=p.length*V*2;d=oe(a,e,0,1,1),i=t.plus(d.times(n)),i.cmp(r)!=1;)t=n,n=i,i=u,u=c.plus(d.times(i)),c=i,i=e,e=a.minus(d.times(i)),a=i;return i=oe(r.minus(t),n,0,1,1),c=c.plus(i.times(u)),t=t.plus(i.times(n)),c.s=u.s=m.s,f=oe(u,n,o,1).minus(m).abs().cmp(oe(c,t,o,1).minus(m).abs())<1?[u,n]:[c,t],g.precision=l,X=!0,f};I.toHexadecimal=I.toHex=function(r,e){return Gn(this,16,r,e)};I.toNearest=function(r,e){var t=this,n=t.constructor;if(t=new n(t),r==null){if(!t.d)return t;r=new n(1),e=n.rounding}else{if(r=new n(r),e===void 0?e=n.rounding:Fe(e,0,8),!t.d)return r.s?t:r;if(!r.d)return r.s&&(r.s=t.s),r}return r.d[0]?(X=!1,t=oe(t,r,0,e,1).times(r),X=!0,_(t)):(r.s=t.s,t=r),t};I.toNumber=function(){return+this};I.toOctal=function(r,e){return Gn(this,8,r,e)};I.toPower=I.pow=function(r){var e,t,n,i,o,s,a=this,c=a.constructor,u=+(r=new c(r));if(!a.d||!r.d||!a.d[0]||!r.d[0])return new c(Pe(+a,u));if(a=new c(a),a.eq(1))return a;if(n=c.precision,o=c.rounding,r.eq(1))return _(a,n,o);if(e=Le(r.e/V),e>=r.d.length-1&&(t=u<0?-u:u)<=Vr)return i=Ei(c,a,t,n),r.s<0?new c(1).div(i):_(i,n,o);if(s=a.s,s<0){if(e<r.d.length-1)return new c(NaN);if((r.d[e]&1)==0&&(s=1),a.e==0&&a.d[0]==1&&a.d.length==1)return a.s=s,a}return t=Pe(+a,u),e=t==0||!isFinite(t)?Le(u*(Math.log("0."+Ie(a.d))/Math.LN10+a.e+1)):new c(t+"").e,e>c.maxE+1||e<c.minE-1?new c(e>0?s/0:0):(X=!1,c.rounding=a.s=1,t=Math.min(12,(e+"").length),i=Vn(r.times(dt(a,n+t)),n),i.d&&(i=_(i,n+5,1),_t(i.d,n,o)&&(e=n+10,i=_(Vn(r.times(dt(a,e+t)),e),e+5,1),+Ie(i.d).slice(n+1,n+15)+1==1e14&&(i=_(i,n+1,0)))),i.s=s,X=!0,c.rounding=o,_(i,n,o))};I.toPrecision=function(r,e){var t,n=this,i=n.constructor;return r===void 0?t=Ye(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(Fe(r,1,ft),e===void 0?e=i.rounding:Fe(e,0,8),n=_(new i(n),r,e),t=Ye(n,r<=n.e||n.e<=i.toExpNeg,r)),n.isNeg()&&!n.isZero()?"-"+t:t};I.toSignificantDigits=I.toSD=function(r,e){var t=this,n=t.constructor;return r===void 0?(r=n.precision,e=n.rounding):(Fe(r,1,ft),e===void 0?e=n.rounding:Fe(e,0,8)),_(new n(t),r,e)};I.toString=function(){var r=this,e=r.constructor,t=Ye(r,r.e<=e.toExpNeg||r.e>=e.toExpPos);return r.isNeg()&&!r.isZero()?"-"+t:t};I.truncated=I.trunc=function(){return _(new this.constructor(this),this.e+1,1)};I.valueOf=I.toJSON=function(){var r=this,e=r.constructor,t=Ye(r,r.e<=e.toExpNeg||r.e>=e.toExpPos);return r.isNeg()?"-"+t:t};function Ie(r){var e,t,n,i=r.length-1,o="",s=r[0];if(i>0){for(o+=s,e=1;e<i;e++)n=r[e]+"",t=V-n.length,t&&(o+=lt(t)),o+=n;s=r[e],n=s+"",t=V-n.length,t&&(o+=lt(t))}else if(s===0)return"0";for(;s%10===0;)s/=10;return o+s}function Fe(r,e,t){if(r!==~~r||r<e||r>t)throw Error(mt+r)}function _t(r,e,t,n){var i,o,s,a;for(o=r[0];o>=10;o/=10)--e;return--e<0?(e+=V,i=0):(i=Math.ceil((e+1)/V),e%=V),o=Pe(10,V-e),a=r[i]%o|0,n==null?e<3?(e==0?a=a/100|0:e==1&&(a=a/10|0),s=t<4&&a==99999||t>3&&a==49999||a==5e4||a==0):s=(t<4&&a+1==o||t>3&&a+1==o/2)&&(r[i+1]/o/100|0)==Pe(10,e-2)-1||(a==o/2||a==0)&&(r[i+1]/o/100|0)==0:e<4?(e==0?a=a/1e3|0:e==1?a=a/100|0:e==2&&(a=a/10|0),s=(n||t<4)&&a==9999||!n&&t>3&&a==4999):s=((n||t<4)&&a+1==o||!n&&t>3&&a+1==o/2)&&(r[i+1]/o/1e3|0)==Pe(10,e-3)-1,s}function dn(r,e,t){for(var n,i=[0],o,s=0,a=r.length;s<a;){for(o=i.length;o--;)i[o]*=e;for(i[0]+=_n.indexOf(r.charAt(s++)),n=0;n<i.length;n++)i[n]>t-1&&(i[n+1]===void 0&&(i[n+1]=0),i[n+1]+=i[n]/t|0,i[n]%=t)}return i.reverse()}function Gr(r,e){var t,n,i;if(e.isZero())return e;n=e.d.length,n<32?(t=Math.ceil(n/3),i=(1/yn(4,t)).toString()):(t=16,i="2.3283064365386962890625e-10"),r.precision+=t,e=Nt(r,1,e.times(i),new r(1));for(var o=t;o--;){var s=e.times(e);e=s.times(s).minus(s).times(8).plus(1)}return r.precision-=t,e}var oe=function(){function r(n,i,o){var s,a=0,c=n.length;for(n=n.slice();c--;)s=n[c]*i+a,n[c]=s%o|0,a=s/o|0;return a&&n.unshift(a),n}function e(n,i,o,s){var a,c;if(o!=s)c=o>s?1:-1;else for(a=c=0;a<o;a++)if(n[a]!=i[a]){c=n[a]>i[a]?1:-1;break}return c}function t(n,i,o,s){for(var a=0;o--;)n[o]-=a,a=n[o]<i[o]?1:0,n[o]=a*s+n[o]-i[o];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,o,s,a,c){var u,l,d,f,m,p,g,y,b,h,P,A,k,w,T,B,x,K,S,R,E=n.constructor,L=n.s==i.s?1:-1,O=n.d,D=i.d;if(!O||!O[0]||!D||!D[0])return new E(!n.s||!i.s||(O?D&&O[0]==D[0]:!D)?NaN:O&&O[0]==0||!D?L*0:L/0);for(c?(m=1,l=n.e-i.e):(c=Ze,m=V,l=Le(n.e/m)-Le(i.e/m)),S=D.length,x=O.length,b=new E(L),h=b.d=[],d=0;D[d]==(O[d]||0);d++);if(D[d]>(O[d]||0)&&l--,o==null?(w=o=E.precision,s=E.rounding):a?w=o+(n.e-i.e)+1:w=o,w<0)h.push(1),p=!0;else{if(w=w/m+2|0,d=0,S==1){for(f=0,D=D[0],w++;(d<x||f)&&w--;d++)T=f*c+(O[d]||0),h[d]=T/D|0,f=T%D|0;p=f||d<x}else{for(f=c/(D[0]+1)|0,f>1&&(D=r(D,f,c),O=r(O,f,c),S=D.length,x=O.length),B=S,P=O.slice(0,S),A=P.length;A<S;)P[A++]=0;R=D.slice(),R.unshift(0),K=D[0],D[1]>=c/2&&++K;do f=0,u=e(D,P,S,A),u<0?(k=P[0],S!=A&&(k=k*c+(P[1]||0)),f=k/K|0,f>1?(f>=c&&(f=c-1),g=r(D,f,c),y=g.length,A=P.length,u=e(g,P,y,A),u==1&&(f--,t(g,S<y?R:D,y,c))):(f==0&&(u=f=1),g=D.slice()),y=g.length,y<A&&g.unshift(0),t(P,g,A,c),u==-1&&(A=P.length,u=e(D,P,S,A),u<1&&(f++,t(P,S<A?R:D,A,c))),A=P.length):u===0&&(f++,P=[0]),h[d++]=f,u&&P[0]?P[A++]=O[B]||0:(P=[O[B]],A=1);while((B++<x||P[0]!==void 0)&&w--);p=P[0]!==void 0}h[0]||h.shift()}if(m==1)b.e=l,Ki=p;else{for(d=1,f=h[0];f>=10;f/=10)d++;b.e=d+l*m-1,_(b,a?o+b.e+1:o,s,p)}return b}}();function _(r,e,t,n){var i,o,s,a,c,u,l,d,f,m=r.constructor;e:if(e!=null){if(d=r.d,!d)return r;for(i=1,a=d[0];a>=10;a/=10)i++;if(o=e-i,o<0)o+=V,s=e,l=d[f=0],c=l/Pe(10,i-s-1)%10|0;else if(f=Math.ceil((o+1)/V),a=d.length,f>=a)if(n){for(;a++<=f;)d.push(0);l=c=0,i=1,o%=V,s=o-V+1}else break e;else{for(l=a=d[f],i=1;a>=10;a/=10)i++;o%=V,s=o-V+i,c=s<0?0:l/Pe(10,i-s-1)%10|0}if(n=n||e<0||d[f+1]!==void 0||(s<0?l:l%Pe(10,i-s-1)),u=t<4?(c||n)&&(t==0||t==(r.s<0?3:2)):c>5||c==5&&(t==4||n||t==6&&(o>0?s>0?l/Pe(10,i-s):0:d[f-1])%10&1||t==(r.s<0?8:7)),e<1||!d[0])return d.length=0,u?(e-=r.e+1,d[0]=Pe(10,(V-e%V)%V),r.e=-e||0):d[0]=r.e=0,r;if(o==0?(d.length=f,a=1,f--):(d.length=f+1,a=Pe(10,V-o),d[f]=s>0?(l/Pe(10,i-s)%Pe(10,s)|0)*a:0),u)for(;;)if(f==0){for(o=1,s=d[0];s>=10;s/=10)o++;for(s=d[0]+=a,a=1;s>=10;s/=10)a++;o!=a&&(r.e++,d[0]==Ze&&(d[0]=1));break}else{if(d[f]+=a,d[f]!=Ze)break;d[f--]=0,a=1}for(o=d.length;d[--o]===0;)d.pop()}return X&&(r.e>m.maxE?(r.d=null,r.e=NaN):r.e<m.minE&&(r.e=0,r.d=[0])),r}function Ye(r,e,t){if(!r.isFinite())return Di(r);var n,i=r.e,o=Ie(r.d),s=o.length;return e?(t&&(n=t-s)>0?o=o.charAt(0)+"."+o.slice(1)+lt(n):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(r.e<0?"e":"e+")+r.e):i<0?(o="0."+lt(-i-1)+o,t&&(n=t-s)>0&&(o+=lt(n))):i>=s?(o+=lt(i+1-s),t&&(n=t-i-1)>0&&(o=o+"."+lt(n))):((n=i+1)<s&&(o=o.slice(0,n)+"."+o.slice(n)),t&&(n=t-s)>0&&(i+1===s&&(o+="."),o+=lt(n))),o}function bn(r,e){var t=r[0];for(e*=V;t>=10;t/=10)e++;return e}function pn(r,e,t){if(e>Ur)throw X=!0,t&&(r.precision=t),Error(Ni);return _(new r(mn),e,1,!0)}function He(r,e,t){if(e>qn)throw Error(Ni);return _(new r(fn),e,t,!0)}function Oi(r){var e=r.length-1,t=e*V+1;if(e=r[e],e){for(;e%10==0;e/=10)t--;for(e=r[0];e>=10;e/=10)t++}return t}function lt(r){for(var e="";r--;)e+="0";return e}function Ei(r,e,t,n){var i,o=new r(1),s=Math.ceil(n/V+4);for(X=!1;;){if(t%2&&(o=o.times(e),Si(o.d,s)&&(i=!0)),t=Le(t/2),t===0){t=o.d.length-1,i&&o.d[t]===0&&++o.d[t];break}e=e.times(e),Si(e.d,s)}return X=!0,o}function Ii(r){return r.d[r.d.length-1]&1}function vi(r,e,t){for(var n,i=new r(e[0]),o=0;++o<e.length;)if(n=new r(e[o]),n.s)i[t](n)&&(i=n);else{i=n;break}return i}function Vn(r,e){var t,n,i,o,s,a,c,u=0,l=0,d=0,f=r.constructor,m=f.rounding,p=f.precision;if(!r.d||!r.d[0]||r.e>17)return new f(r.d?r.d[0]?r.s<0?0:1/0:1:r.s?r.s<0?0:r:0/0);for(e==null?(X=!1,c=p):c=e,a=new f(.03125);r.e>-2;)r=r.times(a),d+=5;for(n=Math.log(Pe(2,d))/Math.LN10*2+5|0,c+=n,t=o=s=new f(1),f.precision=c;;){if(o=_(o.times(r),c,1),t=t.times(++l),a=s.plus(oe(o,t,c,1)),Ie(a.d).slice(0,c)===Ie(s.d).slice(0,c)){for(i=d;i--;)s=_(s.times(s),c,1);if(e==null)if(u<3&&_t(s.d,c-n,m,u))f.precision=c+=10,t=o=a=new f(1),l=0,u++;else return _(s,f.precision=p,m,X=!0);else return f.precision=p,s}s=a}}function dt(r,e){var t,n,i,o,s,a,c,u,l,d,f,m=1,p=10,g=r,y=g.d,b=g.constructor,h=b.rounding,P=b.precision;if(g.s<0||!y||!y[0]||!g.e&&y[0]==1&&y.length==1)return new b(y&&!y[0]?-1/0:g.s!=1?NaN:y?0:g);if(e==null?(X=!1,l=P):l=e,b.precision=l+=p,t=Ie(y),n=t.charAt(0),Math.abs(o=g.e)<15e14){for(;n<7&&n!=1||n==1&&t.charAt(1)>3;)g=g.times(r),t=Ie(g.d),n=t.charAt(0),m++;o=g.e,n>1?(g=new b("0."+t),o++):g=new b(n+"."+t.slice(1))}else return u=pn(b,l+2,P).times(o+""),g=dt(new b(n+"."+t.slice(1)),l-p).plus(u),b.precision=P,e==null?_(g,P,h,X=!0):g;for(d=g,c=s=g=oe(g.minus(1),g.plus(1),l,1),f=_(g.times(g),l,1),i=3;;){if(s=_(s.times(f),l,1),u=c.plus(oe(s,new b(i),l,1)),Ie(u.d).slice(0,l)===Ie(c.d).slice(0,l))if(c=c.times(2),o!==0&&(c=c.plus(pn(b,l+2,P).times(o+""))),c=oe(c,new b(m),l,1),e==null)if(_t(c.d,l-p,h,a))b.precision=l+=p,u=s=g=oe(d.minus(1),d.plus(1),l,1),f=_(g.times(g),l,1),i=a=1;else return _(c,b.precision=P,h,X=!0);else return b.precision=P,c;c=u,i+=2}}function Di(r){return String(r.s*r.s/0)}function Un(r,e){var t,n,i;for((t=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(t<0&&(t=n),t+=+e.slice(n+1),e=e.substring(0,n)):t<0&&(t=e.length),n=0;e.charCodeAt(n)===48;n++);for(i=e.length;e.charCodeAt(i-1)===48;--i);if(e=e.slice(n,i),e){if(i-=n,r.e=t=t-n-1,r.d=[],n=(t+1)%V,t<0&&(n+=V),n<i){for(n&&r.d.push(+e.slice(0,n)),i-=V;n<i;)r.d.push(+e.slice(n,n+=V));e=e.slice(n),n=V-e.length}else n-=i;for(;n--;)e+="0";r.d.push(+e),X&&(r.e>r.constructor.maxE?(r.d=null,r.e=NaN):r.e<r.constructor.minE&&(r.e=0,r.d=[0]))}else r.e=0,r.d=[0];return r}function Xr(r,e){var t,n,i,o,s,a,c,u,l;if(e.indexOf("_")>-1){if(e=e.replace(/(\d)_(?=\d)/g,"$1"),Mi.test(e))return Un(r,e)}else if(e==="Infinity"||e==="NaN")return+e||(r.s=NaN),r.e=NaN,r.d=null,r;if(Wr.test(e))t=16,e=e.toLowerCase();else if(_r.test(e))t=2;else if(qr.test(e))t=8;else throw Error(mt+e);for(o=e.search(/p/i),o>0?(c=+e.slice(o+1),e=e.substring(2,o)):e=e.slice(2),o=e.indexOf("."),s=o>=0,n=r.constructor,s&&(e=e.replace(".",""),a=e.length,o=a-o,i=Ei(n,new n(t),o,o*2)),u=dn(e,t,Ze),l=u.length-1,o=l;u[o]===0;--o)u.pop();return o<0?new n(r.s*0):(r.e=bn(u,l),r.d=u,X=!1,s&&(r=oe(r,i,a*4)),c&&(r=r.times(Math.abs(c)<54?Pe(2,c):Wt.pow(2,c))),X=!0,r)}function Hr(r,e){var t,n=e.d.length;if(n<3)return e.isZero()?e:Nt(r,2,e,e);t=1.4*Math.sqrt(n),t=t>16?16:t|0,e=e.times(1/yn(5,t)),e=Nt(r,2,e,e);for(var i,o=new r(5),s=new r(16),a=new r(20);t--;)i=e.times(e),e=e.times(o.plus(i.times(s.times(i).minus(a))));return e}function Nt(r,e,t,n,i){var o,s,a,c,u=1,l=r.precision,d=Math.ceil(l/V);for(X=!1,c=t.times(t),a=new r(n);;){if(s=oe(a.times(c),new r(e++*e++),l,1),a=i?n.plus(s):n.minus(s),n=oe(s.times(c),new r(e++*e++),l,1),s=a.plus(n),s.d[d]!==void 0){for(o=d;s.d[o]===a.d[o]&&o--;);if(o==-1)break}o=a,a=n,n=s,s=o,u++}return X=!0,s.d.length=d+1,s}function yn(r,e){for(var t=r;--e;)t*=r;return t}function Fi(r,e){var t,n=e.s<0,i=He(r,r.precision,1),o=i.times(.5);if(e=e.abs(),e.lte(o))return nt=n?4:1,e;if(t=e.divToInt(i),t.isZero())nt=n?3:2;else{if(e=e.minus(t.times(i)),e.lte(o))return nt=Ii(t)?n?2:3:n?4:1,e;nt=Ii(t)?n?1:4:n?3:2}return e.minus(i).abs()}function Gn(r,e,t,n){var i,o,s,a,c,u,l,d,f,m=r.constructor,p=t!==void 0;if(p?(Fe(t,1,ft),n===void 0?n=m.rounding:Fe(n,0,8)):(t=m.precision,n=m.rounding),!r.isFinite())l=Di(r);else{for(l=Ye(r),s=l.indexOf("."),p?(i=2,e==16?t=t*4-3:e==8&&(t=t*3-2)):i=e,s>=0&&(l=l.replace(".",""),f=new m(1),f.e=l.length-s,f.d=dn(Ye(f),10,i),f.e=f.d.length),d=dn(l,10,i),o=c=d.length;d[--c]==0;)d.pop();if(!d[0])l=p?"0p+0":"0";else{if(s<0?o--:(r=new m(r),r.d=d,r.e=o,r=oe(r,f,t,n,0,i),d=r.d,o=r.e,u=Ki),s=d[t],a=i/2,u=u||d[t+1]!==void 0,u=n<4?(s!==void 0||u)&&(n===0||n===(r.s<0?3:2)):s>a||s===a&&(n===4||u||n===6&&d[t-1]&1||n===(r.s<0?8:7)),d.length=t,u)for(;++d[--t]>i-1;)d[t]=0,t||(++o,d.unshift(1));for(c=d.length;!d[c-1];--c);for(s=0,l="";s<c;s++)l+=_n.charAt(d[s]);if(p){if(c>1)if(e==16||e==8){for(s=e==16?4:3,--c;c%s;c++)l+="0";for(d=dn(l,i,e),c=d.length;!d[c-1];--c);for(s=1,l="1.";s<c;s++)l+=_n.charAt(d[s])}else l=l.charAt(0)+"."+l.slice(1);l=l+(o<0?"p":"p+")+o}else if(o<0){for(;++o;)l="0"+l;l="0."+l}else if(++o>c)for(o-=c;o--;)l+="0";else o<c&&(l=l.slice(0,o)+"."+l.slice(o))}l=(e==16?"0x":e==2?"0b":e==8?"0o":"")+l}return r.s<0?"-"+l:l}function Si(r,e){if(r.length>e)return r.length=e,!0}function Zr(r){return new this(r).abs()}function zr(r){return new this(r).acos()}function jr(r){return new this(r).acosh()}function Qr(r,e){return new this(r).plus(e)}function Yr(r){return new this(r).asin()}function Jr(r){return new this(r).asinh()}function $r(r){return new this(r).atan()}function eo(r){return new this(r).atanh()}function to(r,e){r=new this(r),e=new this(e);var t,n=this.precision,i=this.rounding,o=n+4;return!r.s||!e.s?t=new this(NaN):!r.d&&!e.d?(t=He(this,o,1).times(e.s>0?.25:.75),t.s=r.s):!e.d||r.isZero()?(t=e.s<0?He(this,n,i):new this(0),t.s=r.s):!r.d||e.isZero()?(t=He(this,o,1).times(.5),t.s=r.s):e.s<0?(this.precision=o,this.rounding=1,t=this.atan(oe(r,e,o,1)),e=He(this,o,1),this.precision=n,this.rounding=i,t=r.s<0?t.minus(e):t.plus(e)):t=this.atan(oe(r,e,o,1)),t}function no(r){return new this(r).cbrt()}function io(r){return _(r=new this(r),r.e+1,2)}function ro(r,e,t){return new this(r).clamp(e,t)}function oo(r){if(!r||typeof r!="object")throw Error(gn+"Object expected");var e,t,n,i=r.defaults===!0,o=["precision",1,ft,"rounding",0,8,"toExpNeg",-Kt,0,"toExpPos",0,Kt,"maxE",0,Kt,"minE",-Kt,0,"modulo",0,9];for(e=0;e<o.length;e+=3)if(t=o[e],i&&(this[t]=Wn[t]),(n=r[t])!==void 0)if(Le(n)===n&&n>=o[e+1]&&n<=o[e+2])this[t]=n;else throw Error(mt+t+": "+n);if(t="crypto",i&&(this[t]=Wn[t]),(n=r[t])!==void 0)if(n===!0||n===!1||n===0||n===1)if(n)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[t]=!0;else throw Error(Li);else this[t]=!1;else throw Error(mt+t+": "+n);return this}function so(r){return new this(r).cos()}function ao(r){return new this(r).cosh()}function _i(r){var e,t,n;function i(o){var s,a,c,u=this;if(!(u instanceof i))return new i(o);if(u.constructor=i,Ci(o)){u.s=o.s,X?!o.d||o.e>i.maxE?(u.e=NaN,u.d=null):o.e<i.minE?(u.e=0,u.d=[0]):(u.e=o.e,u.d=o.d.slice()):(u.e=o.e,u.d=o.d?o.d.slice():o.d);return}if(c=typeof o,c==="number"){if(o===0){u.s=1/o<0?-1:1,u.e=0,u.d=[0];return}if(o<0?(o=-o,u.s=-1):u.s=1,o===~~o&&o<1e7){for(s=0,a=o;a>=10;a/=10)s++;X?s>i.maxE?(u.e=NaN,u.d=null):s<i.minE?(u.e=0,u.d=[0]):(u.e=s,u.d=[o]):(u.e=s,u.d=[o]);return}else if(o*0!==0){o||(u.s=NaN),u.e=NaN,u.d=null;return}return Un(u,o.toString())}else if(c!=="string")throw Error(mt+o);return(a=o.charCodeAt(0))===45?(o=o.slice(1),u.s=-1):(a===43&&(o=o.slice(1)),u.s=1),Mi.test(o)?Un(u,o):Xr(u,o)}if(i.prototype=I,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.EUCLID=9,i.config=i.set=oo,i.clone=_i,i.isDecimal=Ci,i.abs=Zr,i.acos=zr,i.acosh=jr,i.add=Qr,i.asin=Yr,i.asinh=Jr,i.atan=$r,i.atanh=eo,i.atan2=to,i.cbrt=no,i.ceil=io,i.clamp=ro,i.cos=so,i.cosh=ao,i.div=co,i.exp=uo,i.floor=lo,i.hypot=mo,i.ln=fo,i.log=po,i.log10=bo,i.log2=go,i.max=yo,i.min=wo,i.mod=ho,i.mul=Po,i.pow=ko,i.random=Ao,i.round=To,i.sign=Bo,i.sin=xo,i.sinh=Io,i.sqrt=So,i.sub=Co,i.sum=Ko,i.tan=No,i.tanh=Lo,i.trunc=Ro,r===void 0&&(r={}),r&&r.defaults!==!0)for(n=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],e=0;e<n.length;)r.hasOwnProperty(t=n[e++])||(r[t]=this[t]);return i.config(r),i}function co(r,e){return new this(r).div(e)}function uo(r){return new this(r).exp()}function lo(r){return _(r=new this(r),r.e+1,3)}function mo(){var r,e,t=new this(0);for(X=!1,r=0;r<arguments.length;)if(e=new this(arguments[r++]),e.d)t.d&&(t=t.plus(e.times(e)));else{if(e.s)return X=!0,new this(1/0);t=e}return X=!0,t.sqrt()}function Ci(r){return r instanceof Wt||r&&r.toStringTag===Ri||!1}function fo(r){return new this(r).ln()}function po(r,e){return new this(r).log(e)}function go(r){return new this(r).log(2)}function bo(r){return new this(r).log(10)}function yo(){return vi(this,arguments,"lt")}function wo(){return vi(this,arguments,"gt")}function ho(r,e){return new this(r).mod(e)}function Po(r,e){return new this(r).mul(e)}function ko(r,e){return new this(r).pow(e)}function Ao(r){var e,t,n,i,o=0,s=new this(1),a=[];if(r===void 0?r=this.precision:Fe(r,1,ft),n=Math.ceil(r/V),this.crypto)if(crypto.getRandomValues)for(e=crypto.getRandomValues(new Uint32Array(n));o<n;)i=e[o],i>=429e7?e[o]=crypto.getRandomValues(new Uint32Array(1))[0]:a[o++]=i%1e7;else if(crypto.randomBytes){for(e=crypto.randomBytes(n*=4);o<n;)i=e[o]+(e[o+1]<<8)+(e[o+2]<<16)+((e[o+3]&127)<<24),i>=214e7?crypto.randomBytes(4).copy(e,o):(a.push(i%1e7),o+=4);o=n/4}else throw Error(Li);else for(;o<n;)a[o++]=Math.random()*1e7|0;for(n=a[--o],r%=V,n&&r&&(i=Pe(10,V-r),a[o]=(n/i|0)*i);a[o]===0;o--)a.pop();if(o<0)t=0,a=[0];else{for(t=-1;a[0]===0;t-=V)a.shift();for(n=1,i=a[0];i>=10;i/=10)n++;n<V&&(t-=V-n)}return s.e=t,s.d=a,s}function To(r){return _(r=new this(r),r.e+1,this.rounding)}function Bo(r){return r=new this(r),r.d?r.d[0]?r.s:0*r.s:r.s||NaN}function xo(r){return new this(r).sin()}function Io(r){return new this(r).sinh()}function So(r){return new this(r).sqrt()}function Co(r,e){return new this(r).sub(e)}function Ko(){var r=0,e=arguments,t=new this(e[r]);for(X=!1;t.s&&++r<e.length;)t=t.plus(e[r]);return X=!0,_(t,this.precision,this.rounding)}function No(r){return new this(r).tan()}function Lo(r){return new this(r).tanh()}function Ro(r){return _(r=new this(r),r.e+1,1)}I[Symbol.for("nodejs.util.inspect.custom")]=I.toString;I[Symbol.toStringTag]="Decimal";var Wt=I.constructor=_i(Wn);mn=new Wt(mn);fn=new Wt(fn);var M=Wt;import{PublicKey as Vi}from"@solana/web3.js";import{get as Wi,set as Mo}from"lodash";var Xn=class{constructor(e){this.logLevel=e.logLevel!==void 0?e.logLevel:0,this.name=e.name}set level(e){this.logLevel=e}get time(){return Date.now().toString()}get moduleName(){return this.name}isLogLevel(e){return e<=this.logLevel}error(...e){return this.isLogLevel(0)?(console.error(this.time,this.name,"sdk logger error",...e),this):this}logWithError(...e){let t=e.map(n=>typeof n=="object"?JSON.stringify(n):n).join(", ");throw new Error(t)}warning(...e){return this.isLogLevel(1)?(console.warn(this.time,this.name,"sdk logger warning",...e),this):this}info(...e){return this.isLogLevel(2)?(console.info(this.time,this.name,"sdk logger info",...e),this):this}debug(...e){return this.isLogLevel(3)?(console.debug(this.time,this.name,"sdk logger debug",...e),this):this}},qi={},Oo={};function Se(r){let e=Wi(qi,r);if(!e){let t=Wi(Oo,r);e=new Xn({name:r,logLevel:t}),Mo(qi,r,e)}return e}import{MINT_SIZE as Eo,TOKEN_PROGRAM_ID as vo,getTransferFeeConfig as Do,unpackMint as Fo}from"@solana/spl-token";var Hn=Se("Raydium_accountInfo_util");async function it(r,e,t){let{batchRequest:n,commitment:i="confirmed",chunkCount:o=100}=F({batchRequest:!1},t),s=Zn(e,o),a=new Array(s.length).fill([]);if(n){let c=s.map(d=>{let f=r._buildArgs([d.map(m=>m.toBase58())],i,"base64");return{methodName:"getMultipleAccounts",args:f}}),u=Zn(c,10);a=(await(await Promise.all(u.map(async d=>await r._rpcBatchRequest(d)))).flat()).map(d=>(d.error&&Hn.logWithError(`failed to get info for multiple accounts, RPC_ERROR, ${d.error.message}`),d.result.value.map(f=>{if(f){let{data:m,executable:p,lamports:g,owner:y,rentEpoch:b}=f;return m.length!==2&&m[1]!=="base64"&&Hn.logWithError("info must be base64 encoded, RPC_ERROR"),{data:Buffer.from(m[0],"base64"),executable:p,lamports:g,owner:new Vi(y),rentEpoch:b}}return null})))}else try{a=await Promise.all(s.map(c=>r.getMultipleAccountsInfo(c,i)))}catch(c){c instanceof Error&&Hn.logWithError(`failed to get info for multiple accounts, RPC_ERROR, ${c.message}`)}return a.flat()}async function rt(r,e,t){let n=await it(r,e.map(i=>i.pubkey),t);return e.map((i,o)=>j(F({},i),{accountInfo:n[o]}))}async function Ui({connection:r,mints:e,config:t}){var o,s,a;if(e.length===0)return{};let n=await rt(r,e.map(c=>({pubkey:kt(c)})),t),i={};for(let c of n){if(!c.accountInfo||c.accountInfo.data.length<Eo){console.log("invalid mint account",c.pubkey.toBase58());continue}let u=Fo(c.pubkey,c.accountInfo,(o=c.accountInfo)==null?void 0:o.owner);i[c.pubkey.toString()]=j(F({},u),{programId:((s=c.accountInfo)==null?void 0:s.owner)||vo,feeConfig:(a=Do(u))!=null?a:void 0})}return i[Vi.default.toBase58()]=i[Q.toBase58()],i}import ot from"bn.js";import Ho from"big.js";import Pn from"bn.js";import _o from"toformat";var Wo=_o,qt=Wo;import hn from"big.js";import Vo from"bn.js";import Uo from"decimal.js-light";import Vt from"bn.js";var Gi=9007199254740991;function Be(r){let e=Se("Raydium_parseBigNumberish");if(r instanceof Vt)return r;if(typeof r=="string"){if(r.match(/^-?[0-9]+$/))return new Vt(r);e.logWithError(`invalid BigNumberish string: ${r}`)}return typeof r=="number"?(r%1&&e.logWithError(`BigNumberish number underflow: ${r}`),(r>=Gi||r<=-Gi)&&e.logWithError(`BigNumberish number overflow: ${r}`),new Vt(String(r))):typeof r=="bigint"?new Vt(r.toString()):(e.error(`invalid BigNumberish value: ${r}`),new Vt(0))}var wn=Se("module/fraction"),zn=qt(hn),Ut=qt(Uo),Go={[0]:Ut.ROUND_DOWN,[1]:Ut.ROUND_HALF_UP,[2]:Ut.ROUND_UP},Xo={[0]:hn.roundDown,[1]:hn.roundHalfUp,[2]:hn.roundUp},te=class{constructor(e,t=new Vo(1)){this.numerator=Be(e),this.denominator=Be(t)}get quotient(){return this.numerator.div(this.denominator)}invert(){return new te(this.denominator,this.numerator)}add(e){let t=e instanceof te?e:new te(Be(e));return this.denominator.eq(t.denominator)?new te(this.numerator.add(t.numerator),this.denominator):new te(this.numerator.mul(t.denominator).add(t.numerator.mul(this.denominator)),this.denominator.mul(t.denominator))}sub(e){let t=e instanceof te?e:new te(Be(e));return this.denominator.eq(t.denominator)?new te(this.numerator.sub(t.numerator),this.denominator):new te(this.numerator.mul(t.denominator).sub(t.numerator.mul(this.denominator)),this.denominator.mul(t.denominator))}mul(e){let t=e instanceof te?e:new te(Be(e));return new te(this.numerator.mul(t.numerator),this.denominator.mul(t.denominator))}div(e){let t=e instanceof te?e:new te(Be(e));return new te(this.numerator.mul(t.denominator),this.denominator.mul(t.numerator))}toSignificant(e,t={groupSeparator:""},n=1){Number.isInteger(e)||wn.logWithError(`${e} is not an integer.`),e<=0&&wn.logWithError(`${e} is not positive.`),Ut.set({precision:e+1,rounding:Go[n]});let i=new Ut(this.numerator.toString()).div(this.denominator.toString()).toSignificantDigits(e);return i.toFormat(i.decimalPlaces(),t)}toFixed(e,t={groupSeparator:""},n=1){return Number.isInteger(e)||wn.logWithError(`${e} is not an integer.`),e<0&&wn.logWithError(`${e} is negative.`),zn.DP=e,zn.RM=Xo[n]||1,new zn(this.numerator.toString()).div(this.denominator.toString()).toFormat(e,t)}isZero(){return this.numerator.isZero()}};var Zo=Se("Raydium_amount"),Xi=qt(Ho);function zo(r,e){let t="0",n="0";if(r.includes(".")){let i=r.split(".");i.length===2?([t,n]=i,n=n.padEnd(e,"0")):Zo.logWithError(`invalid number string, num: ${r}`)}else t=r;return[t,n.slice(0,e)||n]}var Ce=class extends te{constructor(t,n,i=!0,o){let s=new Pn(0),a=jn.pow(new Pn(t.decimals));if(i)s=Be(n);else{let c=new Pn(0),u=new Pn(0);if(typeof n=="string"||typeof n=="number"||typeof n=="bigint"){let[l,d]=zo(n.toString(),t.decimals);c=Be(l),u=Be(d)}c=c.mul(a),s=c.add(u)}super(s,a);this.logger=Se(o||"TokenAmount"),this.token=t}get raw(){return this.numerator}isZero(){return this.raw.isZero()}gt(t){return this.token.equals(t.token)||this.logger.logWithError("gt token not equals"),this.raw.gt(t.raw)}lt(t){return this.token.equals(t.token)||this.logger.logWithError("lt token not equals"),this.raw.lt(t.raw)}add(t){return this.token.equals(t.token)||this.logger.logWithError("add token not equals"),new Ce(this.token,this.raw.add(t.raw))}subtract(t){return this.token.equals(t.token)||this.logger.logWithError("sub token not equals"),new Ce(this.token,this.raw.sub(t.raw))}toSignificant(t=this.token.decimals,n,i=0){return super.toSignificant(t,n,i)}toFixed(t=this.token.decimals,n,i=0){return t>this.token.decimals&&this.logger.logWithError("decimals overflow"),super.toFixed(t,n,i)}toExact(t={groupSeparator:""}){return Xi.DP=this.token.decimals,new Xi(this.numerator.toString()).div(this.denominator.toString()).toFormat(t)}};import{PublicKey as jo}from"@solana/web3.js";import{TOKEN_PROGRAM_ID as Hi}from"@solana/spl-token";var Qn={chainId:101,address:jo.default.toBase58(),programId:Hi.toBase58(),decimals:9,symbol:"SOL",name:"solana",logoURI:"https://img-v1.raydium.io/icon/So11111111111111111111111111111111111111112.png",tags:[],priority:2,type:"raydium",extensions:{coingeckoId:"solana"}},pt={chainId:101,address:"So11111111111111111111111111111111111111112",programId:Hi.toBase58(),decimals:9,symbol:"WSOL",name:"Wrapped SOL",logoURI:"https://img-v1.raydium.io/icon/So11111111111111111111111111111111111111112.png",tags:[],priority:2,type:"raydium",extensions:{coingeckoId:"solana"}};import{PublicKey as ei}from"@solana/web3.js";import{PublicKey as de,SystemProgram as Zi,SYSVAR_RENT_PUBKEY as Qo}from"@solana/web3.js";import{TOKEN_PROGRAM_ID as Yo}from"@solana/spl-token";function Yn({pubkey:r,isSigner:e=!1,isWritable:t=!0}){return{pubkey:r,isWritable:t,isSigner:e}}var Sa=[Yn({pubkey:Yo,isWritable:!1}),Yn({pubkey:Zi.programId,isWritable:!1}),Yn({pubkey:Qo,isWritable:!1})];function Jn({publicKey:r,transformSol:e}){let t=zi(r.toString());if(t instanceof de)return e&&t.equals(Gt)?Q:t;if(e&&t.toString()===Gt.toBase58())return Q;if(typeof t=="string"){if(t===de.default.toBase58())return de.default;try{return new de(t)}catch{throw new Error("invalid public key")}}throw new Error("invalid public key")}function zi(r){try{return new de(r)}catch{return r}}var kn=new de("MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr"),$n=new de("MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr"),gt=new de("SysvarRent111111111111111111111111111111111"),Ca=new de("SysvarC1ock11111111111111111111111111111111"),At=new de("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"),Ka=new de("Sysvar1nstructions1111111111111111111111111"),Na=Zi.programId,La=new de("4k3Dyjzvzp8eMZWUXbBCjEvwSkkk59S5iCNLY3QrkX6R"),Ra=new de("Ea5SjE2Y6yvCeW5dYTn7PYMuW5ikXkvbGdcmSnXeaLjS"),Ma=new de("SRMuApVNdxXokk5GT7XD5cUUgXMBCoAz2LHeuAoKWRt"),Oa=new de("EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"),Ea=new de("Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"),va=new de("mSoLzYCxHdYgdzU16g5QSh3i5K3z3KZK7ytfqcJm7So"),Da=new de("7dHbWXmci3dT8UFYWYZweBLXgycu7Y3iL6trKn1Y7ARj"),Fa=new de("USDH1SM1ojwWUga67PGrgFWUHibbjqMvuMaDkRJTgkX"),_a=new de("NRVwhjBQiUPYtfDT5zRBVJajzFQHaBUNtC7SNVvqRFa"),Wa=new de("ANAxByE6G2WjFp7A4NqtWYXb3mgruyzZYg3spfxe6Lbo"),qa=new de("7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs"),Q=new de("So11111111111111111111111111111111111111112"),Gt=de.default;function kt(r){return Jn({publicKey:r,transformSol:!0})}var ti=class{constructor({mint:e,decimals:t,symbol:n,name:i,skipMint:o=!1,isToken2022:s=!1}){if(e===Gt.toBase58()||e instanceof ei&&Gt.equals(e)){this.decimals=pt.decimals,this.symbol=pt.symbol,this.name=pt.name,this.mint=new ei(pt.address),this.isToken2022=!1;return}this.decimals=t,this.symbol=n||e.toString().substring(0,6),this.name=i||e.toString().substring(0,6),this.mint=o?ei.default:Jn({publicKey:e}),this.isToken2022=s}equals(e){return this===e?!0:this.mint.equals(e.mint)}},Je=ti;Je.WSOL=new ti(j(F({},pt),{mint:pt.address}));var ni=class{constructor({decimals:e,symbol:t="UNKNOWN",name:n="UNKNOWN"}){this.decimals=e,this.symbol=t,this.name=n}equals(e){return this===e}},An=ni;An.SOL=new ni(Qn);import Jo from"bn.js";var ji=new te(new Jo(100)),bt=class extends te{toSignificant(e=5,t,n){return this.mul(ji).toSignificant(e,t,n)}toFixed(e=2,t,n){return this.mul(ji).toFixed(e,t,n)}};var $o=Se("Raydium_price"),ze=class extends te{constructor(t){let{baseToken:n,quoteToken:i,numerator:o,denominator:s}=t;super(o,s);this.baseToken=n,this.quoteToken=i,this.scalar=new te(ii(n.decimals),ii(i.decimals))}get raw(){return new te(this.numerator,this.denominator)}get adjusted(){return super.mul(this.scalar)}invert(){return new ze({baseToken:this.quoteToken,quoteToken:this.baseToken,denominator:this.numerator,numerator:this.denominator})}mul(t){this.quoteToken!==t.baseToken&&$o.logWithError("mul token not equals");let n=super.mul(t);return new ze({baseToken:this.baseToken,quoteToken:t.quoteToken,denominator:n.denominator,numerator:n.numerator})}toSignificant(t=this.quoteToken.decimals,n,i){return this.adjusted.toSignificant(t,n,i)}toFixed(t=this.quoteToken.decimals,n,i){return this.adjusted.toFixed(t,n,i)}};import{PublicKey as hc}from"@solana/web3.js";import kc from"bn.js";var es=new ot(0),_c=new ot(1),Wc=new ot(2),qc=new ot(3),Vc=new ot(5),jn=new ot(10),Uc=new ot(100),Gc=new ot(1e3),Xc=new ot(1e4);function ii(r){return jn.pow(Be(r))}function Zn(r,e=1,t=[]){let n=[...r];if(e<=0)return t;for(;n.length;)t.push(n.splice(0,e));return t}import{PublicKey as as}from"@solana/web3.js";import{TOKEN_PROGRAM_ID as cs}from"@solana/spl-token";import{ComputeBudgetProgram as Qi,Keypair as Ji,PublicKey as ts,Transaction as $i,TransactionMessage as ns,VersionedTransaction as er}from"@solana/web3.js";var ae={CreateAccount:"CreateAccount",InitAccount:"InitAccount",CreateATA:"CreateATA",CloseAccount:"CloseAccount",TransferAmount:"TransferAmount",InitMint:"InitMint",MintTo:"MintTo",InitMarket:"InitMarket",Util1216OwnerClaim:"Util1216OwnerClaim",SetComputeUnitPrice:"SetComputeUnitPrice",SetComputeUnitLimit:"SetComputeUnitLimit",ClmmCreatePool:"ClmmCreatePool",ClmmOpenPosition:"ClmmOpenPosition",ClmmIncreasePosition:"ClmmIncreasePosition",ClmmDecreasePosition:"ClmmDecreasePosition",ClmmClosePosition:"ClmmClosePosition",ClmmSwapBaseIn:"ClmmSwapBaseIn",ClmmSwapBaseOut:"ClmmSwapBaseOut",ClmmInitReward:"ClmmInitReward",ClmmSetReward:"ClmmSetReward",ClmmCollectReward:"ClmmCollectReward",ClmmLockPosition:"ClmmLockPosition",ClmmHarvestLockPosition:"ClmmHarvestLockPosition",AmmV4Swap:"AmmV4Swap",AmmV4AddLiquidity:"AmmV4AddLiquidity",AmmV4RemoveLiquidity:"AmmV4RemoveLiquidity",AmmV4SimulatePoolInfo:"AmmV4SimulatePoolInfo",AmmV4SwapBaseIn:"AmmV4SwapBaseIn",AmmV4SwapBaseOut:"AmmV4SwapBaseOut",AmmV4CreatePool:"AmmV4CreatePool",AmmV4InitPool:"AmmV4InitPool",AmmV5AddLiquidity:"AmmV5AddLiquidity",AmmV5RemoveLiquidity:"AmmV5RemoveLiquidity",AmmV5SimulatePoolInfo:"AmmV5SimulatePoolInfo",AmmV5SwapBaseIn:"AmmV5SwapBaseIn",AmmV5SwapBaseOut:"AmmV5SwapBaseOut",RouteSwap:"RouteSwap",RouteSwap1:"RouteSwap1",RouteSwap2:"RouteSwap2",FarmV3Deposit:"FarmV3Deposit",FarmV3Withdraw:"FarmV3Withdraw",FarmV3CreateLedger:"FarmV3CreateLedger",FarmV4Withdraw:"FarmV4Withdraw",FarmV5Deposit:"FarmV5Deposit",FarmV5Withdraw:"FarmV5Withdraw",FarmV5CreateLedger:"FarmV5CreateLedger",FarmV6Deposit:"FarmV6Deposit",FarmV6Withdraw:"FarmV6Withdraw",FarmV6Create:"FarmV6Create",FarmV6Restart:"FarmV6Restart",FarmV6CreatorAddReward:"FarmV6CreatorAddReward",FarmV6CreatorWithdraw:"FarmV6CreatorWithdraw",CpmmCreatePool:"CpmmCreatePool",CpmmAddLiquidity:"CpmmAddLiquidity",CpmmWithdrawLiquidity:"CpmmWithdrawLiquidity",CpmmSwapBaseIn:"CpmmSwapBaseIn",CpmmSwapBaseOut:"CpmmSwapBaseOut",CpmmLockLp:"CpmmLockLp",CpmmCollectLockFee:"CpmmCollectLockFee",TransferTip:"TransferTip"};import{TOKEN_PROGRAM_ID as is}from"@solana/spl-token";var Yi=Se("Raydium_txUtil"),tr=1644;function Tn(r){let e=[],t=[];return r.microLamports&&(e.push(Qi.setComputeUnitPrice({microLamports:r.microLamports})),t.push(ae.SetComputeUnitPrice)),r.units&&(e.push(Qi.setComputeUnitLimit({units:r.units})),t.push(ae.SetComputeUnitLimit)),{instructions:e,instructionTypes:t}}async function Tt(r,e){var n,i;let t=e!=null?e:"confirmed";return(i=await((n=r.getLatestBlockhash)==null?void 0:n.call(r,{commitment:t})))==null?void 0:i.blockhash}async function Bn(r,e){return r.getSignatureStatuses([e]),new Promise((t,n)=>{let i=setTimeout(n,6e4);r.onSignature(e,o=>{if(clearTimeout(i),!o.err){t("");return}n(Object.assign(o.err,{txId:e}))},"confirmed")})}function rs(r,e){r.length<1&&Yi.logWithError(`no instructions provided: ${r.toString()}`),e.length<1&&Yi.logWithError(`no signers provided:, ${e.toString()}`);let t=new $i;t.recentBlockhash="11111111111111111111111111111111",t.feePayer=e[0],t.add(...r);try{return Buffer.from(t.serialize({verifySignatures:!1})).toString("base64").length<tr}catch{return!1}}function Re(r,e){let[t,n]=ts.findProgramAddressSync(r,e);return{publicKey:t,nonce:n}}function Xt({instructions:r,payer:e,signers:t}){return rs(r,[e,...t])}function Ht({instructions:r,payer:e,lookupTableAddressAccount:t,recentBlockhash:n=Ji.generate().publicKey.toString()}){let o=new ns({payerKey:e,recentBlockhash:n,instructions:r}).compileToV0Message(Object.values(t!=null?t:{}));try{return Buffer.from(new er(o).serialize()).toString("base64").length<tr}catch{return!1}}var os=r=>Buffer.isBuffer(r)?r:r instanceof Uint8Array?Buffer.from(r.buffer,r.byteOffset,r.byteLength):Buffer.from(r),ss=r=>{let e=r.serialize({requireAllSignatures:!1,verifySignatures:!1});r instanceof er&&(e=os(e));try{return e instanceof Buffer?e.toString("base64"):Buffer.from(e).toString("base64")}catch{return e.toString("base64")}};function Bt(r){let e=[];return r.forEach(t=>{t instanceof $i&&(t.recentBlockhash||(t.recentBlockhash=is.toBase58()),t.feePayer||(t.feePayer=Ji.generate().publicKey)),e.push(ss(t))}),console.log("simulate tx string:",e),e}function ce(r,e,t){return Re([r.toBuffer(),(t!=null?t:cs).toBuffer(),e.toBuffer()],new as("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"))}import{PublicKey as q}from"@solana/web3.js";var mu=new q("EhhTKczWMGQt46ynNeRX1WfeagwwJd7ufHvCDjRxjo5Q"),fu=new q("CBuCnLe26faBpcBP2fktp4rp8abpcAnTWft6ZrP5Q4T"),pu=new q("9KEPoZmtHUrBbhWN1v1KWLMkkvwY6WLtAVUCPRtRjP4z"),gu=new q("FarmqiPv5eAj3j1GMdMCMUGXqPUvmquZtMy86QH6rzhG"),bu=new q("CLaimxFqjHzgTJtAGHU47NPhg6qrc5sCnpC4tBLyABQS"),yu=new q("srmqPvymJeFKQ4zGQed1GFppgkRHL9kaELCbyksJtPX"),wu=new q("9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin"),hu=new q("675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8"),Pu=new q("5quBtoiQqxF9Jv6KYKctB59NT3gtJD2Y65kdnB1Uev3h"),ku=new q("CDSr3ssLcRB6XYPJwAfFt18MZvEZp4LjHcvzBVZ45duo"),Zt=new q("CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK"),zt=new q("LockrWmn6K5twhz3y9w1dQERbmgSaRkfnTeTKbpofwE"),xn=new q("kN1kEznaF5Xbd8LYuqtEFcxzWSBk5Fv6ygX6SqEGJVy"),Au=new q("CDSr3ssLcRB6XYPJwAfFt18MZvEZp4LjHcvzBVZ45duo"),Tu=new q("routeUGWgWzqBWFcrCfv8tritsqukccJPu3q5GPP3xS"),Bu=new q("7YttLkHDoNj9wyDur5pM1ejNaAvT9X4eqaYcHQqtj2G5"),xu=new q("6FJon3QE27qgPVggARueB22hLvoh22VzJpXv4rBEoSLF"),Iu=new q("CC12se5To1CdEuw7fDS27B7Geo5jJyL7t5UK2B44NgiH"),Su=new q("9HzJyW1qZsEiSfMUf6L2jo3CcTKAyBmSyKdwQeYisHrC"),Cu=new q("DropEU8AvevN3UrXWXTMuz3rqnMczQVNjq3kcSdW2SQi"),Ku=new q("CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C"),Nu=new q("GpMZbSM2GgvTKHJirzeGfMFoaZ8UR2X7F4v8vHTvxFbL"),Lu=new q("DNXgeM9EiiaAbaWvwjHj9fQQLAX5ZsfHyvmYUNRAdNC8")