UNPKG

@powrldgr/raydium-sdk-v2

Version:

An SDK for building applications on top of Raydium.

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