(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-template-GetSafeQualityCheckDTO-GetSafeQualityCheckDTO~pages-template-GetpmProgressReportDTO-G~69e99384"],{"0c47":function(n,e,i){var t=i("da84"),r=i("d44e");r(t.JSON,"JSON",!0)},"23dc":function(n,e,i){var t=i("d44e");t(Math,"Math",!0)},"944a":function(n,e,i){var t=i("746f");t("toStringTag")},d90c:function(n,e,i){var t;i("a4d3"),i("e01a"),i("d28b"),i("944a"),i("c975"),i("26e9"),i("fb6a"),i("ace4"),i("0c47"),i("23dc"),i("d3b7"),i("ac1f"),i("25f0"),i("3ca3"),i("5319"),i("841c"),i("fb2c"),i("9a8c"),i("a975"),i("735e"),i("c1ac"),i("d139"),i("3a7b"),i("d5d6"),i("82f8"),i("e91f"),i("60bd"),i("5f96"),i("3280"),i("3fcc"),i("ca91"),i("25a1"),i("cd26"),i("3c5d"),i("2954"),i("649e"),i("219c"),i("170b"),i("b39a"),i("72f7"),i("ddb0"),function(r){"use strict";var s,o,u,c=9e15,f=1e9,a="0123456789abcdef",d="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",h="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",l={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-c,maxE:c,crypto:!1},p=!0,g="[DecimalError] ",w=g+"Invalid argument: ",m=g+"Precision limit exceeded",v=g+"crypto unavailable",N=Math.floor,b=Math.pow,E=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,x=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,y=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,M=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,O=1e7,q=7,D=9007199254740991,F=d.length-1,A=h.length-1,Z={name:"[object Decimal]"};function k(n){var e,i,t,r=n.length-1,s="",o=n[0];if(r>0){for(s+=o,e=1;ei)throw Error(w+n)}function R(n,e,i,t){var r,s,o,u;for(s=n[0];s>=10;s/=10)--e;return--e<0?(e+=q,r=0):(r=Math.ceil((e+1)/q),e%=q),s=b(10,q-e),u=n[r]%s|0,null==t?e<3?(0==e?u=u/100|0:1==e&&(u=u/10|0),o=i<4&&99999==u||i>3&&49999==u||5e4==u||0==u):o=(i<4&&u+1==s||i>3&&u+1==s/2)&&(n[r+1]/s/100|0)==b(10,e-2)-1||(u==s/2||0==u)&&0==(n[r+1]/s/100|0):e<4?(0==e?u=u/1e3|0:1==e?u=u/100|0:2==e&&(u=u/10|0),o=(t||i<4)&&9999==u||!t&&i>3&&4999==u):o=((t||i<4)&&u+1==s||!t&&i>3&&u+1==s/2)&&(n[r+1]/s/1e3|0)==b(10,e-3)-1,o}function S(n,e,i){for(var t,r,s=[0],o=0,u=n.length;oi-1&&(void 0===s[t+1]&&(s[t+1]=0),s[t+1]+=s[t]/i|0,s[t]%=i)}return s.reverse()}function T(n,e){var i,t,r=e.d.length;r<32?(i=Math.ceil(r/3),t=(1/nn(4,i)).toString()):(i=16,t="2.3283064365386962890625e-10"),n.precision+=i,e=Y(n,1,e.times(t),new n(1));for(var s=i;s--;){var o=e.times(e);e=o.times(o).minus(o).times(8).plus(1)}return n.precision-=i,e}Z.absoluteValue=Z.abs=function(){var n=new this.constructor(this);return n.s<0&&(n.s=1),L(n)},Z.ceil=function(){return L(new this.constructor(this),this.e+1,2)},Z.comparedTo=Z.cmp=function(n){var e,i,t,r,s=this,o=s.d,u=(n=new s.constructor(n)).d,c=s.s,f=n.s;if(!o||!u)return c&&f?c!==f?c:o===u?0:!o^c<0?1:-1:NaN;if(!o[0]||!u[0])return o[0]?c:u[0]?-f:0;if(c!==f)return c;if(s.e!==n.e)return s.e>n.e^c<0?1:-1;for(t=o.length,r=u.length,e=0,i=tu[e]^c<0?1:-1;return t===r?0:t>r^c<0?1:-1},Z.cosine=Z.cos=function(){var n,e,i=this,t=i.constructor;return i.d?i.d[0]?(n=t.precision,e=t.rounding,t.precision=n+Math.max(i.e,i.sd())+q,t.rounding=1,i=T(t,en(t,i)),t.precision=n,t.rounding=e,L(2==u||3==u?i.neg():i,n,e,!0)):new t(1):new t(NaN)},Z.cubeRoot=Z.cbrt=function(){var n,e,i,t,r,s,o,u,c,f,a=this,d=a.constructor;if(!a.isFinite()||a.isZero())return new d(a);for(p=!1,s=a.s*b(a.s*a,1/3),s&&Math.abs(s)!=1/0?t=new d(s.toString()):(i=k(a.d),n=a.e,(s=(n-i.length+1)%3)&&(i+=1==s||-2==s?"0":"00"),s=b(i,1/3),n=N((n+1)/3)-(n%3==(n<0?-1:2)),s==1/0?i="5e"+n:(i=s.toExponential(),i=i.slice(0,i.indexOf("e")+1)+n),t=new d(i),t.s=a.s),o=(n=d.precision)+3;;)if(u=t,c=u.times(u).times(u),f=c.plus(a),t=U(f.plus(a).times(u),f.plus(c),o+2,1),k(u.d).slice(0,o)===(i=k(t.d)).slice(0,o)){if(i=i.slice(o-3,o+1),"9999"!=i&&(r||"4999"!=i)){+i&&(+i.slice(1)||"5"!=i.charAt(0))||(L(t,n+1,1),e=!t.times(t).times(t).eq(a));break}if(!r&&(L(u,n+1,0),u.times(u).times(u).eq(a))){t=u;break}o+=4,r=1}return p=!0,L(t,n,d.rounding,e)},Z.decimalPlaces=Z.dp=function(){var n,e=this.d,i=NaN;if(e){if(n=e.length-1,i=(n-N(this.e/q))*q,n=e[n],n)for(;n%10==0;n/=10)i--;i<0&&(i=0)}return i},Z.dividedBy=Z.div=function(n){return U(this,new this.constructor(n))},Z.dividedToIntegerBy=Z.divToInt=function(n){var e=this,i=e.constructor;return L(U(e,new i(n),0,1,1),i.precision,i.rounding)},Z.equals=Z.eq=function(n){return 0===this.cmp(n)},Z.floor=function(){return L(new this.constructor(this),this.e+1,3)},Z.greaterThan=Z.gt=function(n){return this.cmp(n)>0},Z.greaterThanOrEqualTo=Z.gte=function(n){var e=this.cmp(n);return 1==e||0===e},Z.hyperbolicCosine=Z.cosh=function(){var n,e,i,t,r,s=this,o=s.constructor,u=new o(1);if(!s.isFinite())return new o(s.s?1/0:NaN);if(s.isZero())return u;i=o.precision,t=o.rounding,o.precision=i+Math.max(s.e,s.sd())+4,o.rounding=1,r=s.d.length,r<32?(n=Math.ceil(r/3),e=(1/nn(4,n)).toString()):(n=16,e="2.3283064365386962890625e-10"),s=Y(o,1,s.times(e),new o(1),!0);for(var c,f=n,a=new o(8);f--;)c=s.times(s),s=u.minus(c.times(a.minus(c.times(a))));return L(s,o.precision=i,o.rounding=t,!0)},Z.hyperbolicSine=Z.sinh=function(){var n,e,i,t,r=this,s=r.constructor;if(!r.isFinite()||r.isZero())return new s(r);if(e=s.precision,i=s.rounding,s.precision=e+Math.max(r.e,r.sd())+4,s.rounding=1,t=r.d.length,t<3)r=Y(s,2,r,r,!0);else{n=1.4*Math.sqrt(t),n=n>16?16:0|n,r=r.times(1/nn(5,n)),r=Y(s,2,r,r,!0);for(var o,u=new s(5),c=new s(16),f=new s(20);n--;)o=r.times(r),r=r.times(u.plus(o.times(c.times(o).plus(f))))}return s.precision=e,s.rounding=i,L(r,e,i,!0)},Z.hyperbolicTangent=Z.tanh=function(){var n,e,i=this,t=i.constructor;return i.isFinite()?i.isZero()?new t(i):(n=t.precision,e=t.rounding,t.precision=n+7,t.rounding=1,U(i.sinh(),i.cosh(),t.precision=n,t.rounding=e)):new t(i.s)},Z.inverseCosine=Z.acos=function(){var n,e=this,i=e.constructor,t=e.abs().cmp(1),r=i.precision,s=i.rounding;return-1!==t?0===t?e.isNeg()?H(i,r,s):new i(0):new i(NaN):e.isZero()?H(i,r+4,s).times(.5):(i.precision=r+6,i.rounding=1,e=e.asin(),n=H(i,r+4,s).times(.5),i.precision=r,i.rounding=s,n.minus(e))},Z.inverseHyperbolicCosine=Z.acosh=function(){var n,e,i=this,t=i.constructor;return i.lte(1)?new t(i.eq(1)?0:NaN):i.isFinite()?(n=t.precision,e=t.rounding,t.precision=n+Math.max(Math.abs(i.e),i.sd())+4,t.rounding=1,p=!1,i=i.times(i).minus(1).sqrt().plus(i),p=!0,t.precision=n,t.rounding=e,i.ln()):new t(i)},Z.inverseHyperbolicSine=Z.asinh=function(){var n,e,i=this,t=i.constructor;return!i.isFinite()||i.isZero()?new t(i):(n=t.precision,e=t.rounding,t.precision=n+2*Math.max(Math.abs(i.e),i.sd())+6,t.rounding=1,p=!1,i=i.times(i).plus(1).sqrt().plus(i),p=!0,t.precision=n,t.rounding=e,i.ln())},Z.inverseHyperbolicTangent=Z.atanh=function(){var n,e,i,t,r=this,s=r.constructor;return r.isFinite()?r.e>=0?new s(r.abs().eq(1)?r.s/0:r.isZero()?r:NaN):(n=s.precision,e=s.rounding,t=r.sd(),Math.max(t,n)<2*-r.e-1?L(new s(r),n,e,!0):(s.precision=i=t-r.e,r=U(r.plus(1),new s(1).minus(r),i+n,1),s.precision=n+4,s.rounding=1,r=r.ln(),s.precision=n,s.rounding=e,r.times(.5))):new s(NaN)},Z.inverseSine=Z.asin=function(){var n,e,i,t,r=this,s=r.constructor;return r.isZero()?new s(r):(e=r.abs().cmp(1),i=s.precision,t=s.rounding,-1!==e?0===e?(n=H(s,i+4,t).times(.5),n.s=r.s,n):new s(NaN):(s.precision=i+6,s.rounding=1,r=r.div(new s(1).minus(r.times(r)).sqrt().plus(1)).atan(),s.precision=i,s.rounding=t,r.times(2)))},Z.inverseTangent=Z.atan=function(){var n,e,i,t,r,s,o,u,c,f=this,a=f.constructor,d=a.precision,h=a.rounding;if(f.isFinite()){if(f.isZero())return new a(f);if(f.abs().eq(1)&&d+4<=A)return o=H(a,d+4,h).times(.25),o.s=f.s,o}else{if(!f.s)return new a(NaN);if(d+4<=A)return o=H(a,d+4,h).times(.5),o.s=f.s,o}for(a.precision=u=d+10,a.rounding=1,i=Math.min(28,u/q+2|0),n=i;n;--n)f=f.div(f.times(f).plus(1).sqrt().plus(1));for(p=!1,e=Math.ceil(u/q),t=1,c=f.times(f),o=new a(f),r=f;-1!==n;)if(r=r.times(c),s=o.minus(r.div(t+=2)),r=r.times(c),o=s.plus(r.div(t+=2)),void 0!==o.d[e])for(n=e;o.d[n]===s.d[n]&&n--;);return i&&(o=o.times(2<this.d.length-2},Z.isNaN=function(){return!this.s},Z.isNegative=Z.isNeg=function(){return this.s<0},Z.isPositive=Z.isPos=function(){return this.s>0},Z.isZero=function(){return!!this.d&&0===this.d[0]},Z.lessThan=Z.lt=function(n){return this.cmp(n)<0},Z.lessThanOrEqualTo=Z.lte=function(n){return this.cmp(n)<1},Z.logarithm=Z.log=function(n){var e,i,t,r,s,o,u,c,f=this,a=f.constructor,d=a.precision,h=a.rounding,l=5;if(null==n)n=new a(10),e=!0;else{if(n=new a(n),i=n.d,n.s<0||!i||!i[0]||n.eq(1))return new a(NaN);e=n.eq(10)}if(i=f.d,f.s<0||!i||!i[0]||f.eq(1))return new a(i&&!i[0]?-1/0:1!=f.s?NaN:i?0:1/0);if(e)if(i.length>1)s=!0;else{for(r=i[0];r%10===0;)r/=10;s=1!==r}if(p=!1,u=d+l,o=Q(f,u),t=e?I(a,u+10):Q(n,u),c=U(o,t,u,1),R(c.d,r=d,h))do{if(u+=10,o=Q(f,u),t=e?I(a,u+10):Q(n,u),c=U(o,t,u,1),!s){+k(c.d).slice(r+1,r+15)+1==1e14&&(c=L(c,d+1,0));break}}while(R(c.d,r+=10,h));return p=!0,L(c,d,h)},Z.minus=Z.sub=function(n){var e,i,t,r,s,o,u,c,f,a,d,h,l=this,g=l.constructor;if(n=new g(n),!l.d||!n.d)return l.s&&n.s?l.d?n.s=-n.s:n=new g(n.d||l.s!==n.s?l:NaN):n=new g(NaN),n;if(l.s!=n.s)return n.s=-n.s,l.plus(n);if(f=l.d,h=n.d,u=g.precision,c=g.rounding,!f[0]||!h[0]){if(h[0])n.s=-n.s;else{if(!f[0])return new g(3===c?-0:0);n=new g(l)}return p?L(n,u,c):n}if(i=N(n.e/q),a=N(l.e/q),f=f.slice(),s=a-i,s){for(d=s<0,d?(e=f,s=-s,o=h.length):(e=h,i=a,o=f.length),t=Math.max(Math.ceil(u/q),o)+2,s>t&&(s=t,e.length=1),e.reverse(),t=s;t--;)e.push(0);e.reverse()}else{for(t=f.length,o=h.length,d=t0;--t)f[o++]=0;for(t=h.length;t>s;){if(f[--t]o?s+1:o+1,r>o&&(r=o,i.length=1),i.reverse();r--;)i.push(0);i.reverse()}for(o=f.length,r=a.length,o-r<0&&(r=o,i=a,a=f,f=i),e=0;r;)e=(f[--r]=f[r]+a[r]+e)/O|0,f[r]%=O;for(e&&(f.unshift(e),++t),o=f.length;0==f[--o];)f.pop();return n.d=f,n.e=C(f,t),p?L(n,u,c):n},Z.precision=Z.sd=function(n){var e,i=this;if(void 0!==n&&n!==!!n&&1!==n&&0!==n)throw Error(w+n);return i.d?(e=B(i.d),n&&i.e+1>e&&(e=i.e+1)):e=NaN,e},Z.round=function(){var n=this,e=n.constructor;return L(new e(n),n.e+1,e.rounding)},Z.sine=Z.sin=function(){var n,e,i=this,t=i.constructor;return i.isFinite()?i.isZero()?new t(i):(n=t.precision,e=t.rounding,t.precision=n+Math.max(i.e,i.sd())+q,t.rounding=1,i=X(t,en(t,i)),t.precision=n,t.rounding=e,L(u>2?i.neg():i,n,e,!0)):new t(NaN)},Z.squareRoot=Z.sqrt=function(){var n,e,i,t,r,s,o=this,u=o.d,c=o.e,f=o.s,a=o.constructor;if(1!==f||!u||!u[0])return new a(!f||f<0&&(!u||u[0])?NaN:u?o:1/0);for(p=!1,f=Math.sqrt(+o),0==f||f==1/0?(e=k(u),(e.length+c)%2==0&&(e+="0"),f=Math.sqrt(e),c=N((c+1)/2)-(c<0||c%2),f==1/0?e="5e"+c:(e=f.toExponential(),e=e.slice(0,e.indexOf("e")+1)+c),t=new a(e)):t=new a(f.toString()),i=(c=a.precision)+3;;)if(s=t,t=s.plus(U(o,s,i+2,1)).times(.5),k(s.d).slice(0,i)===(e=k(t.d)).slice(0,i)){if(e=e.slice(i-3,i+1),"9999"!=e&&(r||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(L(t,c+1,1),n=!t.times(t).eq(o));break}if(!r&&(L(s,c+1,0),s.times(s).eq(o))){t=s;break}i+=4,r=1}return p=!0,L(t,c,a.rounding,n)},Z.tangent=Z.tan=function(){var n,e,i=this,t=i.constructor;return i.isFinite()?i.isZero()?new t(i):(n=t.precision,e=t.rounding,t.precision=n+10,t.rounding=1,i=i.sin(),i.s=1,i=U(i,new t(1).minus(i.times(i)).sqrt(),n+10,0),t.precision=n,t.rounding=e,L(2==u||4==u?i.neg():i,n,e,!0)):new t(NaN)},Z.times=Z.mul=function(n){var e,i,t,r,s,o,u,c,f,a=this,d=a.constructor,h=a.d,l=(n=new d(n)).d;if(n.s*=a.s,!h||!h[0]||!l||!l[0])return new d(!n.s||h&&!h[0]&&!l||l&&!l[0]&&!h?NaN:h&&l?0*n.s:n.s/0);for(i=N(a.e/q)+N(n.e/q),c=h.length,f=l.length,c=0;){for(e=0,r=c+t;r>t;)u=s[r]+l[t]*h[r-t-1]+e,s[r--]=u%O|0,e=u/O|0;s[r]=(s[r]+e)%O|0}for(;!s[--o];)s.pop();return e?++i:s.shift(),n.d=s,n.e=C(s,i),p?L(n,d.precision,d.rounding):n},Z.toBinary=function(n,e){return tn(this,2,n,e)},Z.toDecimalPlaces=Z.toDP=function(n,e){var i=this,t=i.constructor;return i=new t(i),void 0===n?i:(P(n,0,f),void 0===e?e=t.rounding:P(e,0,8),L(i,n+i.e+1,e))},Z.toExponential=function(n,e){var i,t=this,r=t.constructor;return void 0===n?i=_(t,!0):(P(n,0,f),void 0===e?e=r.rounding:P(e,0,8),t=L(new r(t),n+1,e),i=_(t,!0,n+1)),t.isNeg()&&!t.isZero()?"-"+i:i},Z.toFixed=function(n,e){var i,t,r=this,s=r.constructor;return void 0===n?i=_(r):(P(n,0,f),void 0===e?e=s.rounding:P(e,0,8),t=L(new s(r),n+r.e+1,e),i=_(t,!1,n+t.e+1)),r.isNeg()&&!r.isZero()?"-"+i:i},Z.toFraction=function(n){var e,i,t,r,s,o,u,c,f,a,d,h,l=this,g=l.d,m=l.constructor;if(!g)return new m(l);if(f=i=new m(1),t=c=new m(0),e=new m(t),s=e.e=B(g)-l.e-1,o=s%q,e.d[0]=b(10,o<0?q+o:o),null==n)n=s>0?e:f;else{if(u=new m(n),!u.isInt()||u.lt(f))throw Error(w+u);n=u.gt(e)?s>0?e:f:u}for(p=!1,u=new m(k(g)),a=m.precision,m.precision=s=g.length*q*2;;){if(d=U(u,e,0,1,1),r=i.plus(d.times(t)),1==r.cmp(n))break;i=t,t=r,r=f,f=c.plus(d.times(r)),c=r,r=e,e=u.minus(d.times(r)),u=r}return r=U(n.minus(i),t,0,1,1),c=c.plus(r.times(f)),i=i.plus(r.times(t)),c.s=f.s=l.s,h=U(f,t,s,1).minus(l).abs().cmp(U(c,i,s,1).minus(l).abs())<1?[f,t]:[c,i],m.precision=a,p=!0,h},Z.toHexadecimal=Z.toHex=function(n,e){return tn(this,16,n,e)},Z.toNearest=function(n,e){var i=this,t=i.constructor;if(i=new t(i),null==n){if(!i.d)return i;n=new t(1),e=t.rounding}else{if(n=new t(n),void 0===e?e=t.rounding:P(e,0,8),!i.d)return n.s?i:n;if(!n.d)return n.s&&(n.s=i.s),n}return n.d[0]?(p=!1,i=U(i,n,0,e,1).times(n),p=!0,L(i)):(n.s=i.s,i=n),i},Z.toNumber=function(){return+this},Z.toOctal=function(n,e){return tn(this,8,n,e)},Z.toPower=Z.pow=function(n){var e,i,t,r,s,o,u=this,c=u.constructor,f=+(n=new c(n));if(!u.d||!n.d||!u.d[0]||!n.d[0])return new c(b(+u,f));if(u=new c(u),u.eq(1))return u;if(t=c.precision,s=c.rounding,n.eq(1))return L(u,t,s);if(e=N(n.e/q),e>=n.d.length-1&&(i=f<0?-f:f)<=D)return r=J(c,u,i,t),n.s<0?new c(1).div(r):L(r,t,s);if(o=u.s,o<0){if(ec.maxE+1||e0?o/0:0):(p=!1,c.rounding=u.s=1,i=Math.min(12,(e+"").length),r=$(n.times(Q(u,t+i)),t),r.d&&(r=L(r,t+5,1),R(r.d,t,s)&&(e=t+10,r=L($(n.times(Q(u,e+i)),e),e+5,1),+k(r.d).slice(t+1,t+15)+1==1e14&&(r=L(r,t+1,0)))),r.s=o,p=!0,c.rounding=s,L(r,t,s))},Z.toPrecision=function(n,e){var i,t=this,r=t.constructor;return void 0===n?i=_(t,t.e<=r.toExpNeg||t.e>=r.toExpPos):(P(n,1,f),void 0===e?e=r.rounding:P(e,0,8),t=L(new r(t),n,e),i=_(t,n<=t.e||t.e<=r.toExpNeg,n)),t.isNeg()&&!t.isZero()?"-"+i:i},Z.toSignificantDigits=Z.toSD=function(n,e){var i=this,t=i.constructor;return void 0===n?(n=t.precision,e=t.rounding):(P(n,1,f),void 0===e?e=t.rounding:P(e,0,8)),L(new t(i),n,e)},Z.toString=function(){var n=this,e=n.constructor,i=_(n,n.e<=e.toExpNeg||n.e>=e.toExpPos);return n.isNeg()&&!n.isZero()?"-"+i:i},Z.truncated=Z.trunc=function(){return L(new this.constructor(this),this.e+1,1)},Z.valueOf=Z.toJSON=function(){var n=this,e=n.constructor,i=_(n,n.e<=e.toExpNeg||n.e>=e.toExpPos);return n.isNeg()?"-"+i:i};var U=function(){function n(n,e,i){var t,r=0,s=n.length;for(n=n.slice();s--;)t=n[s]*e+r,n[s]=t%i|0,r=t/i|0;return r&&n.unshift(r),n}function e(n,e,i,t){var r,s;if(i!=t)s=i>t?1:-1;else for(r=s=0;re[r]?1:-1;break}return s}function i(n,e,i,t){for(var r=0;i--;)n[i]-=r,r=n[i]1;)n.shift()}return function(t,r,s,u,c,f){var a,d,h,l,p,g,w,m,v,b,E,x,y,M,D,F,A,Z,k,P,R=t.constructor,S=t.s==r.s?1:-1,T=t.d,U=r.d;if(!T||!T[0]||!U||!U[0])return new R(t.s&&r.s&&(T?!U||T[0]!=U[0]:U)?T&&0==T[0]||!U?0*S:S/0:NaN);for(f?(p=1,d=t.e-r.e):(f=O,p=q,d=N(t.e/p)-N(r.e/p)),k=U.length,A=T.length,v=new R(S),b=v.d=[],h=0;U[h]==(T[h]||0);h++);if(U[h]>(T[h]||0)&&d--,null==s?(M=s=R.precision,u=R.rounding):M=c?s+(t.e-r.e)+1:s,M<0)b.push(1),g=!0;else{if(M=M/p+2|0,h=0,1==k){for(l=0,U=U[0],M++;(h1&&(U=n(U,l,f),T=n(T,l,f),k=U.length,A=T.length),F=k,E=T.slice(0,k),x=E.length;x=f/2&&++Z;do{l=0,a=e(U,E,k,x),a<0?(y=E[0],k!=x&&(y=y*f+(E[1]||0)),l=y/Z|0,l>1?(l>=f&&(l=f-1),w=n(U,l,f),m=w.length,x=E.length,a=e(w,E,m,x),1==a&&(l--,i(w,k=10;l/=10)h++;v.e=h+d*p-1,L(v,c?s+v.e+1:s,u,g)}return v}}();function L(n,e,i,t){var r,s,o,u,c,f,a,d,h,l=n.constructor;n:if(null!=e){if(d=n.d,!d)return n;for(r=1,u=d[0];u>=10;u/=10)r++;if(s=e-r,s<0)s+=q,o=e,a=d[h=0],c=a/b(10,r-o-1)%10|0;else if(h=Math.ceil((s+1)/q),u=d.length,h>=u){if(!t)break n;for(;u++<=h;)d.push(0);a=c=0,r=1,s%=q,o=s-q+1}else{for(a=u=d[h],r=1;u>=10;u/=10)r++;s%=q,o=s-q+r,c=o<0?0:a/b(10,r-o-1)%10|0}if(t=t||e<0||void 0!==d[h+1]||(o<0?a:a%b(10,r-o-1)),f=i<4?(c||t)&&(0==i||i==(n.s<0?3:2)):c>5||5==c&&(4==i||t||6==i&&(s>0?o>0?a/b(10,r-o):0:d[h-1])%10&1||i==(n.s<0?8:7)),e<1||!d[0])return d.length=0,f?(e-=n.e+1,d[0]=b(10,(q-e%q)%q),n.e=-e||0):d[0]=n.e=0,n;if(0==s?(d.length=h,u=1,h--):(d.length=h+1,u=b(10,q-s),d[h]=o>0?(a/b(10,r-o)%b(10,o)|0)*u:0),f)for(;;){if(0==h){for(s=1,o=d[0];o>=10;o/=10)s++;for(o=d[0]+=u,u=1;o>=10;o/=10)u++;s!=u&&(n.e++,d[0]==O&&(d[0]=1));break}if(d[h]+=u,d[h]!=O)break;d[h--]=0,u=1}for(s=d.length;0===d[--s];)d.pop()}return p&&(n.e>l.maxE?(n.d=null,n.e=NaN):n.e0?s=s.charAt(0)+"."+s.slice(1)+V(t):o>1&&(s=s.charAt(0)+"."+s.slice(1)),s=s+(n.e<0?"e":"e+")+n.e):r<0?(s="0."+V(-r-1)+s,i&&(t=i-o)>0&&(s+=V(t))):r>=o?(s+=V(r+1-o),i&&(t=i-r-1)>0&&(s=s+"."+V(t))):((t=r+1)0&&(r+1===o&&(s+="."),s+=V(t))),s}function C(n,e){var i=n[0];for(e*=q;i>=10;i/=10)e++;return e}function I(n,e,i){if(e>F)throw p=!0,i&&(n.precision=i),Error(m);return L(new n(d),e,1,!0)}function H(n,e,i){if(e>A)throw Error(m);return L(new n(h),e,i,!0)}function B(n){var e=n.length-1,i=e*q+1;if(e=n[e],e){for(;e%10==0;e/=10)i--;for(e=n[0];e>=10;e/=10)i++}return i}function V(n){for(var e="";n--;)e+="0";return e}function J(n,e,i,t){var r,s=new n(1),o=Math.ceil(t/q+4);for(p=!1;;){if(i%2&&(s=s.times(e),rn(s.d,o)&&(r=!0)),i=N(i/2),0===i){i=s.d.length-1,r&&0===s.d[i]&&++s.d[i];break}e=e.times(e),rn(e.d,o)}return p=!0,s}function j(n){return 1&n.d[n.d.length-1]}function G(n,e,i){for(var t,r=new n(e[0]),s=0;++s17)return new h(n.d?n.d[0]?n.s<0?0:1/0:1:n.s?n.s<0?0:n:NaN);null==e?(p=!1,c=g):c=e,u=new h(.03125);while(n.e>-2)n=n.times(u),d+=5;for(t=Math.log(b(2,d))/Math.LN10*2+5|0,c+=t,i=s=o=new h(1),h.precision=c;;){if(s=L(s.times(n),c,1),i=i.times(++a),u=o.plus(U(s,i,c,1)),k(u.d).slice(0,c)===k(o.d).slice(0,c)){r=d;while(r--)o=L(o.times(o),c,1);if(null!=e)return h.precision=g,o;if(!(f<3&&R(o.d,c-t,l,f)))return L(o,h.precision=g,l,p=!0);h.precision=c+=10,i=s=u=new h(1),a=0,f++}o=u}}function Q(n,e){var i,t,r,s,o,u,c,f,a,d,h,l=1,g=10,w=n,m=w.d,v=w.constructor,N=v.rounding,b=v.precision;if(w.s<0||!m||!m[0]||!w.e&&1==m[0]&&1==m.length)return new v(m&&!m[0]?-1/0:1!=w.s?NaN:m?0:w);if(null==e?(p=!1,a=b):a=e,v.precision=a+=g,i=k(m),t=i.charAt(0),!(Math.abs(s=w.e)<15e14))return f=I(v,a+2,b).times(s+""),w=Q(new v(t+"."+i.slice(1)),a-g).plus(f),v.precision=b,null==e?L(w,b,N,p=!0):w;while(t<7&&1!=t||1==t&&i.charAt(1)>3)w=w.times(n),i=k(w.d),t=i.charAt(0),l++;for(s=w.e,t>1?(w=new v("0."+i),s++):w=new v(t+"."+i.slice(1)),d=w,c=o=w=U(w.minus(1),w.plus(1),a,1),h=L(w.times(w),a,1),r=3;;){if(o=L(o.times(h),a,1),f=c.plus(U(o,new v(r),a,1)),k(f.d).slice(0,a)===k(c.d).slice(0,a)){if(c=c.times(2),0!==s&&(c=c.plus(I(v,a+2,b).times(s+""))),c=U(c,new v(l),a,1),null!=e)return v.precision=b,c;if(!R(c.d,a-g,N,u))return L(c,v.precision=b,N,p=!0);v.precision=a+=g,f=o=w=U(d.minus(1),d.plus(1),a,1),h=L(w.times(w),a,1),r=u=1}c=f,r+=2}}function W(n){return String(n.s*n.s/0)}function z(n,e){var i,t,r;for((i=e.indexOf("."))>-1&&(e=e.replace(".","")),(t=e.search(/e/i))>0?(i<0&&(i=t),i+=+e.slice(t+1),e=e.substring(0,t)):i<0&&(i=e.length),t=0;48===e.charCodeAt(t);t++);for(r=e.length;48===e.charCodeAt(r-1);--r);if(e=e.slice(t,r),e){if(r-=t,n.e=i=i-t-1,n.d=[],t=(i+1)%q,i<0&&(t+=q),tn.constructor.maxE?(n.d=null,n.e=NaN):n.e0?(f=+e.slice(o+1),e=e.substring(2,o)):e=e.slice(2),o=e.indexOf("."),u=o>=0,t=n.constructor,u&&(e=e.replace(".",""),c=e.length,o=c-o,r=J(t,new t(i),o,2*o)),a=S(e,i,O),d=a.length-1,o=d;0===a[o];--o)a.pop();return o<0?new t(0*n.s):(n.e=C(a,d),n.d=a,p=!1,u&&(n=U(n,r,4*c)),f&&(n=n.times(Math.abs(f)<54?b(2,f):s.pow(2,f))),p=!0,n)}function X(n,e){var i,t=e.d.length;if(t<3)return Y(n,2,e,e);i=1.4*Math.sqrt(t),i=i>16?16:0|i,e=e.times(1/nn(5,i)),e=Y(n,2,e,e);for(var r,s=new n(5),o=new n(16),u=new n(20);i--;)r=e.times(e),e=e.times(s.plus(r.times(o.times(r).minus(u))));return e}function Y(n,e,i,t,r){var s,o,u,c,f=n.precision,a=Math.ceil(f/q);for(p=!1,c=i.times(i),u=new n(t);;){if(o=U(u.times(c),new n(e++*e++),f,1),u=r?t.plus(o):t.minus(o),t=U(o.times(c),new n(e++*e++),f,1),o=u.plus(t),void 0!==o.d[a]){for(s=a;o.d[s]===u.d[s]&&s--;);if(-1==s)break}s=u,u=t,t=o,o=s}return p=!0,o.d.length=a+1,o}function nn(n,e){var i=n;while(--e)i*=n;return i}function en(n,e){var i,t=e.s<0,r=H(n,n.precision,1),s=r.times(.5);if(e=e.abs(),e.lte(s))return u=t?4:1,e;if(i=e.divToInt(r),i.isZero())u=t?3:2;else{if(e=e.minus(i.times(r)),e.lte(s))return u=j(i)?t?2:3:t?4:1,e;u=j(i)?t?1:4:t?3:2}return e.minus(r).abs()}function tn(n,e,i,t){var r,s,u,c,d,h,l,p,g,w=n.constructor,m=void 0!==i;if(m?(P(i,1,f),void 0===t?t=w.rounding:P(t,0,8)):(i=w.precision,t=w.rounding),n.isFinite()){for(l=_(n),u=l.indexOf("."),m?(r=2,16==e?i=4*i-3:8==e&&(i=3*i-2)):r=e,u>=0&&(l=l.replace(".",""),g=new w(1),g.e=l.length-u,g.d=S(_(g),10,r),g.e=g.d.length),p=S(l,10,r),s=d=p.length;0==p[--d];)p.pop();if(p[0]){if(u<0?s--:(n=new w(n),n.d=p,n.e=s,n=U(n,g,i,t,0,r),p=n.d,s=n.e,h=o),u=p[i],c=r/2,h=h||void 0!==p[i+1],h=t<4?(void 0!==u||h)&&(0===t||t===(n.s<0?3:2)):u>c||u===c&&(4===t||h||6===t&&1&p[i-1]||t===(n.s<0?8:7)),p.length=i,h)for(;++p[--i]>r-1;)p[i]=0,i||(++s,p.unshift(1));for(d=p.length;!p[d-1];--d);for(u=0,l="";u1)if(16==e||8==e){for(u=16==e?4:3,--d;d%u;d++)l+="0";for(p=S(l,r,e),d=p.length;!p[d-1];--d);for(u=1,l="1.";ud)for(s-=d;s--;)l+="0";else se)return n.length=e,!0}function sn(n){return new this(n).abs()}function on(n){return new this(n).acos()}function un(n){return new this(n).acosh()}function cn(n,e){return new this(n).plus(e)}function fn(n){return new this(n).asin()}function an(n){return new this(n).asinh()}function dn(n){return new this(n).atan()}function hn(n){return new this(n).atanh()}function ln(n,e){n=new this(n),e=new this(e);var i,t=this.precision,r=this.rounding,s=t+4;return n.s&&e.s?n.d||e.d?!e.d||n.isZero()?(i=e.s<0?H(this,t,r):new this(0),i.s=n.s):!n.d||e.isZero()?(i=H(this,s,1).times(.5),i.s=n.s):e.s<0?(this.precision=s,this.rounding=1,i=this.atan(U(n,e,s,1)),e=H(this,s,1),this.precision=t,this.rounding=r,i=n.s<0?i.minus(e):i.plus(e)):i=this.atan(U(n,e,s,1)):(i=H(this,s,1).times(e.s>0?.25:.75),i.s=n.s):i=new this(NaN),i}function pn(n){return new this(n).cbrt()}function gn(n){return L(n=new this(n),n.e+1,2)}function wn(n){if(!n||"object"!==typeof n)throw Error(g+"Object expected");var e,i,t,r=!0===n.defaults,s=["precision",1,f,"rounding",0,8,"toExpNeg",-c,0,"toExpPos",0,c,"maxE",0,c,"minE",-c,0,"modulo",0,9];for(e=0;e=s[e+1]&&t<=s[e+2]))throw Error(w+i+": "+t);this[i]=t}if(i="crypto",r&&(this[i]=l[i]),void 0!==(t=n[i])){if(!0!==t&&!1!==t&&0!==t&&1!==t)throw Error(w+i+": "+t);if(t){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(v);this[i]=!0}else this[i]=!1}return this}function mn(n){return new this(n).cos()}function vn(n){return new this(n).cosh()}function Nn(n){var e,i,t;function r(n){var e,i,t,s=this;if(!(s instanceof r))return new r(n);if(s.constructor=r,n instanceof r)return s.s=n.s,void(p?!n.d||n.e>r.maxE?(s.e=NaN,s.d=null):n.e=10;i/=10)e++;return void(p?e>r.maxE?(s.e=NaN,s.d=null):e=429e7?e[s]=crypto.getRandomValues(new Uint32Array(1))[0]:u[s++]=r%1e7;else{if(!crypto.randomBytes)throw Error(v);for(e=crypto.randomBytes(t*=4);s=214e7?crypto.randomBytes(4).copy(e,s):(u.push(r%1e7),s+=4);s=t/4}else for(;s=10;r/=10)t++;t