@infineit-nestjs/core 1.0.38 → 1.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/_virtual/_commonjsHelpers.js +2 -0
- package/dist/cjs/_virtual/query_compiler_bg.postgresql.js +2 -0
- package/dist/cjs/_virtual/query_compiler_bg.postgresql.wasm-base64.js +2 -0
- package/dist/cjs/generated/prisma/browser.js +2 -0
- package/dist/cjs/generated/prisma/client.js +2 -0
- package/dist/cjs/generated/prisma/commonInputTypes.js +2 -0
- package/dist/cjs/generated/prisma/enums.js +2 -0
- package/dist/cjs/generated/prisma/internal/class.js +2 -0
- package/dist/cjs/generated/prisma/internal/prismaNamespace.js +1 -1
- package/dist/cjs/generated/prisma/internal/prismaNamespaceBrowser.js +2 -0
- package/dist/cjs/generated/prisma/models.js +2 -0
- package/dist/cjs/node_modules/@prisma/client/runtime/client.js +2 -2
- package/dist/cjs/node_modules/@prisma/client/runtime/query_compiler_bg.postgresql.js +2 -0
- package/dist/cjs/node_modules/@prisma/client/runtime/query_compiler_bg.postgresql.wasm-base64.js +2 -0
- package/dist/cjs/node_modules/@prisma/client-runtime-utils/dist/index.js +2 -2
- package/dist/es/generated/prisma/browser.js +2 -0
- package/dist/es/generated/prisma/client.js +2 -0
- package/dist/es/generated/prisma/commonInputTypes.js +2 -0
- package/dist/es/generated/prisma/enums.js +2 -0
- package/dist/es/generated/prisma/internal/class.js +2 -0
- package/dist/es/generated/prisma/internal/prismaNamespace.js +1 -1
- package/dist/es/generated/prisma/internal/prismaNamespaceBrowser.js +2 -0
- package/dist/es/generated/prisma/models.js +2 -0
- package/dist/es/node_modules/@prisma/client/runtime/client.js +2 -2
- package/dist/es/node_modules/@prisma/client/runtime/query_compiler_bg.postgresql.js +2 -0
- package/dist/es/node_modules/@prisma/client/runtime/query_compiler_bg.postgresql.wasm-base64.js +2 -0
- package/dist/es/node_modules/@prisma/client-runtime-utils/dist/index.js +2 -3
- package/dist/types/generated/prisma/browser.d.ts +4 -0
- package/dist/types/generated/prisma/client.d.ts +12 -0
- package/dist/types/generated/prisma/commonInputTypes.d.ts +2 -0
- package/dist/types/generated/prisma/enums.d.ts +2 -0
- package/dist/types/generated/prisma/internal/class.d.ts +36 -0
- package/dist/types/generated/prisma/internal/prismaNamespace.d.ts +246 -1
- package/dist/types/generated/prisma/internal/prismaNamespaceBrowser.d.ts +24 -0
- package/dist/types/generated/prisma/models.d.ts +2 -0
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";function n(n,e){Object.defineProperty(n,"name",{value:e,configurable:!0})}var e=class n extends Error{clientVersion;errorCode;retryable;constructor(e,r,t){super(e),this.name="PrismaClientInitializationError",this.clientVersion=r,this.errorCode=t,Error.captureStackTrace(n)}get[Symbol.toStringTag](){return"PrismaClientInitializationError"}};n(e,"PrismaClientInitializationError");var r=class extends Error{code;meta;clientVersion;batchRequestIdx;constructor(n,{code:e,clientVersion:r,meta:t,batchRequestIdx:i}){super(n),this.name="PrismaClientKnownRequestError",this.code=e,this.clientVersion=r,this.meta=t,Object.defineProperty(this,"batchRequestIdx",{value:i,enumerable:!1,writable:!0})}get[Symbol.toStringTag](){return"PrismaClientKnownRequestError"}};n(r,"PrismaClientKnownRequestError");var t=class extends Error{clientVersion;_isPanic;constructor({clientVersion:n,error:e}){var r;super(function(n){if(n.fields?.message){let e=n.fields?.message;return n.fields?.file&&(e+=` in ${n.fields.file}`,n.fields?.line&&(e+=`:${n.fields.line}`),n.fields?.column&&(e+=`:${n.fields.column}`)),n.fields?.reason&&(e+=`\n${n.fields?.reason}`),e}return"Unknown error"}(e)??"Unknown error"),this._isPanic=(r=e,"PANIC"===r.fields?.message),this.clientVersion=n}get[Symbol.toStringTag](){return"PrismaClientRustError"}isPanic(){return this._isPanic}};n(t,"PrismaClientRustError");var i=class extends Error{clientVersion;constructor(n,e){super(n),this.name="PrismaClientRustPanicError",this.clientVersion=e}get[Symbol.toStringTag](){return"PrismaClientRustPanicError"}};n(i,"PrismaClientRustPanicError");var s=class extends Error{clientVersion;batchRequestIdx;constructor(n,{clientVersion:e,batchRequestIdx:r}){super(n),this.name="PrismaClientUnknownRequestError",this.clientVersion=e,Object.defineProperty(this,"batchRequestIdx",{value:r,writable:!0,enumerable:!1})}get[Symbol.toStringTag](){return"PrismaClientUnknownRequestError"}};n(s,"PrismaClientUnknownRequestError");var o=class extends Error{name="PrismaClientValidationError";clientVersion;constructor(n,{clientVersion:e}){super(n),this.clientVersion=e}get[Symbol.toStringTag](){return"PrismaClientValidationError"}};n(o,"PrismaClientValidationError");var u=Symbol(),c=new WeakMap,a=class{constructor(n){n===u?c.set(this,`Prisma.${this._getName()}`):c.set(this,`new Prisma.${this._getNamespace()}.${this._getName()}()`)}_getName(){return this.constructor.name}toString(){return c.get(this)}};function l(n,e){Object.defineProperty(n,"name",{value:e,configurable:!0})}var f=class extends a{_getNamespace(){return"NullTypes"}},h=class extends f{#n};l(h,"DbNull");var d=class extends f{#e};l(d,"JsonNull");var g=class extends f{#r};l(g,"AnyNull"),new h(u),new d(u),new g(u);var p,m,w=9e15,v=1e9,N="0123456789abcdef",b="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",E="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",x={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-w,maxE:w,crypto:!1},y=!0,P="[DecimalError] ",q=P+"Invalid argument: ",C=P+"Precision limit exceeded",R=P+"crypto unavailable",M="[object Decimal]",S=Math.floor,O=Math.pow,_=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,A=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,T=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,V=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,D=1e7,F=b.length-1,I=E.length-1,k={toStringTag:M};function Z(n){var e,r,t,i=n.length-1,s="",o=n[0];if(i>0){for(s+=o,e=1;e<i;e++)(r=7-(t=n[e]+"").length)&&(s+=G(r)),s+=t;(r=7-(t=(o=n[e])+"").length)&&(s+=G(r))}else if(0===o)return"0";for(;o%10==0;)o/=10;return s+o}function U(n,e,r){if(n!==~~n||n<e||n>r)throw Error(q+n)}function $(n,e,r,t){var i,s,o,u;for(s=n[0];s>=10;s/=10)--e;return--e<0?(e+=7,i=0):(i=Math.ceil((e+1)/7),e%=7),s=O(10,7-e),u=n[i]%s|0,null==t?e<3?(0==e?u=u/100|0:1==e&&(u=u/10|0),o=r<4&&99999==u||r>3&&49999==u||5e4==u||0==u):o=(r<4&&u+1==s||r>3&&u+1==s/2)&&(n[i+1]/s/100|0)==O(10,e-2)-1||(u==s/2||0==u)&&!(n[i+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||r<4)&&9999==u||!t&&r>3&&4999==u):o=((t||r<4)&&u+1==s||!t&&r>3&&u+1==s/2)&&(n[i+1]/s/1e3|0)==O(10,e-3)-1,o}function L(n,e,r){for(var t,i,s=[0],o=0,u=n.length;o<u;){for(i=s.length;i--;)s[i]*=e;for(s[0]+=N.indexOf(n.charAt(o++)),t=0;t<s.length;t++)s[t]>r-1&&(void 0===s[t+1]&&(s[t+1]=0),s[t+1]+=s[t]/r|0,s[t]%=r)}return s.reverse()}k.absoluteValue=k.abs=function(){var n=new this.constructor(this);return n.s<0&&(n.s=1),j(n)},k.ceil=function(){return j(new this.constructor(this),this.e+1,2)},k.clampedTo=k.clamp=function(n,e){var r=this,t=r.constructor;if(n=new t(n),e=new t(e),!n.s||!e.s)return new t(NaN);if(n.gt(e))throw Error(q+e);return r.cmp(n)<0?n:r.cmp(e)>0?e:new t(r)},k.comparedTo=k.cmp=function(n){var e,r,t,i,s=this,o=s.d,u=(n=new s.constructor(n)).d,c=s.s,a=n.s;if(!o||!u)return c&&a?c!==a?c:o===u?0:!o^c<0?1:-1:NaN;if(!o[0]||!u[0])return o[0]?c:u[0]?-a:0;if(c!==a)return c;if(s.e!==n.e)return s.e>n.e^c<0?1:-1;for(e=0,r=(t=o.length)<(i=u.length)?t:i;e<r;++e)if(o[e]!==u[e])return o[e]>u[e]^c<0?1:-1;return t===i?0:t>i^c<0?1:-1},k.cosine=k.cos=function(){var n,e,r=this,t=r.constructor;return r.d?r.d[0]?(n=t.precision,e=t.rounding,t.precision=n+Math.max(r.e,r.sd())+7,t.rounding=1,r=function(n,e){var r,t,i;if(e.isZero())return e;t=e.d.length,t<32?i=(1/on(4,r=Math.ceil(t/3))).toString():(r=16,i="2.3283064365386962890625e-10");n.precision+=r,e=sn(n,1,e.times(i),new n(1));for(var s=r;s--;){var o=e.times(e);e=o.times(o).minus(o).times(8).plus(1)}return n.precision-=r,e}(t,un(t,r)),t.precision=n,t.rounding=e,j(2==m||3==m?r.neg():r,n,e,!0)):new t(1):new t(NaN)},k.cubeRoot=k.cbrt=function(){var n,e,r,t,i,s,o,u,c,a,l=this,f=l.constructor;if(!l.isFinite()||l.isZero())return new f(l);for(y=!1,(s=l.s*O(l.s*l,1/3))&&Math.abs(s)!=1/0?t=new f(s.toString()):(r=Z(l.d),(s=((n=l.e)-r.length+1)%3)&&(r+=1==s||-2==s?"0":"00"),s=O(r,1/3),n=S((n+1)/3)-(n%3==(n<0?-1:2)),(t=new f(r=s==1/0?"5e"+n:(r=s.toExponential()).slice(0,r.indexOf("e")+1)+n)).s=l.s),o=(n=f.precision)+3;;)if(a=(c=(u=t).times(u).times(u)).plus(l),t=H(a.plus(l).times(u),a.plus(c),o+2,1),Z(u.d).slice(0,o)===(r=Z(t.d)).slice(0,o)){if("9999"!=(r=r.slice(o-3,o+1))&&(i||"4999"!=r)){+r&&(+r.slice(1)||"5"!=r.charAt(0))||(j(t,n+1,1),e=!t.times(t).times(t).eq(l));break}if(!i&&(j(u,n+1,0),u.times(u).times(u).eq(l))){t=u;break}o+=4,i=1}return y=!0,j(t,n,f.rounding,e)},k.decimalPlaces=k.dp=function(){var n,e=this.d,r=NaN;if(e){if(r=7*((n=e.length-1)-S(this.e/7)),n=e[n])for(;n%10==0;n/=10)r--;r<0&&(r=0)}return r},k.dividedBy=k.div=function(n){return H(this,new this.constructor(n))},k.dividedToIntegerBy=k.divToInt=function(n){var e=this.constructor;return j(H(this,new e(n),0,1,1),e.precision,e.rounding)},k.equals=k.eq=function(n){return 0===this.cmp(n)},k.floor=function(){return j(new this.constructor(this),this.e+1,3)},k.greaterThan=k.gt=function(n){return this.cmp(n)>0},k.greaterThanOrEqualTo=k.gte=function(n){var e=this.cmp(n);return 1==e||0===e},k.hyperbolicCosine=k.cosh=function(){var n,e,r,t,i,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;r=o.precision,t=o.rounding,o.precision=r+Math.max(s.e,s.sd())+4,o.rounding=1,(i=s.d.length)<32?e=(1/on(4,n=Math.ceil(i/3))).toString():(n=16,e="2.3283064365386962890625e-10"),s=sn(o,1,s.times(e),new o(1),!0);for(var c,a=n,l=new o(8);a--;)c=s.times(s),s=u.minus(c.times(l.minus(c.times(l))));return j(s,o.precision=r,o.rounding=t,!0)},k.hyperbolicSine=k.sinh=function(){var n,e,r,t,i=this,s=i.constructor;if(!i.isFinite()||i.isZero())return new s(i);if(e=s.precision,r=s.rounding,s.precision=e+Math.max(i.e,i.sd())+4,s.rounding=1,(t=i.d.length)<3)i=sn(s,2,i,i,!0);else{n=(n=1.4*Math.sqrt(t))>16?16:0|n,i=sn(s,2,i=i.times(1/on(5,n)),i,!0);for(var o,u=new s(5),c=new s(16),a=new s(20);n--;)o=i.times(i),i=i.times(u.plus(o.times(c.times(o).plus(a))))}return s.precision=e,s.rounding=r,j(i,e,r,!0)},k.hyperbolicTangent=k.tanh=function(){var n,e,r=this,t=r.constructor;return r.isFinite()?r.isZero()?new t(r):(n=t.precision,e=t.rounding,t.precision=n+7,t.rounding=1,H(r.sinh(),r.cosh(),t.precision=n,t.rounding=e)):new t(r.s)},k.inverseCosine=k.acos=function(){var n=this,e=n.constructor,r=n.abs().cmp(1),t=e.precision,i=e.rounding;return-1!==r?0===r?n.isNeg()?K(e,t,i):new e(0):new e(NaN):n.isZero()?K(e,t+4,i).times(.5):(e.precision=t+6,e.rounding=1,n=new e(1).minus(n).div(n.plus(1)).sqrt().atan(),e.precision=t,e.rounding=i,n.times(2))},k.inverseHyperbolicCosine=k.acosh=function(){var n,e,r=this,t=r.constructor;return r.lte(1)?new t(r.eq(1)?0:NaN):r.isFinite()?(n=t.precision,e=t.rounding,t.precision=n+Math.max(Math.abs(r.e),r.sd())+4,t.rounding=1,y=!1,r=r.times(r).minus(1).sqrt().plus(r),y=!0,t.precision=n,t.rounding=e,r.ln()):new t(r)},k.inverseHyperbolicSine=k.asinh=function(){var n,e,r=this,t=r.constructor;return!r.isFinite()||r.isZero()?new t(r):(n=t.precision,e=t.rounding,t.precision=n+2*Math.max(Math.abs(r.e),r.sd())+6,t.rounding=1,y=!1,r=r.times(r).plus(1).sqrt().plus(r),y=!0,t.precision=n,t.rounding=e,r.ln())},k.inverseHyperbolicTangent=k.atanh=function(){var n,e,r,t,i=this,s=i.constructor;return i.isFinite()?i.e>=0?new s(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(n=s.precision,e=s.rounding,t=i.sd(),Math.max(t,n)<2*-i.e-1?j(new s(i),n,e,!0):(s.precision=r=t-i.e,i=H(i.plus(1),new s(1).minus(i),r+n,1),s.precision=n+4,s.rounding=1,i=i.ln(),s.precision=n,s.rounding=e,i.times(.5))):new s(NaN)},k.inverseSine=k.asin=function(){var n,e,r,t,i=this,s=i.constructor;return i.isZero()?new s(i):(e=i.abs().cmp(1),r=s.precision,t=s.rounding,-1!==e?0===e?((n=K(s,r+4,t).times(.5)).s=i.s,n):new s(NaN):(s.precision=r+6,s.rounding=1,i=i.div(new s(1).minus(i.times(i)).sqrt().plus(1)).atan(),s.precision=r,s.rounding=t,i.times(2)))},k.inverseTangent=k.atan=function(){var n,e,r,t,i,s,o,u,c,a=this,l=a.constructor,f=l.precision,h=l.rounding;if(a.isFinite()){if(a.isZero())return new l(a);if(a.abs().eq(1)&&f+4<=I)return(o=K(l,f+4,h).times(.25)).s=a.s,o}else{if(!a.s)return new l(NaN);if(f+4<=I)return(o=K(l,f+4,h).times(.5)).s=a.s,o}for(l.precision=u=f+10,l.rounding=1,n=r=Math.min(28,u/7+2|0);n;--n)a=a.div(a.times(a).plus(1).sqrt().plus(1));for(y=!1,e=Math.ceil(u/7),t=1,c=a.times(a),o=new l(a),i=a;-1!==n;)if(i=i.times(c),s=o.minus(i.div(t+=2)),i=i.times(c),void 0!==(o=s.plus(i.div(t+=2))).d[e])for(n=e;o.d[n]===s.d[n]&&n--;);return r&&(o=o.times(2<<r-1)),y=!0,j(o,l.precision=f,l.rounding=h,!0)},k.isFinite=function(){return!!this.d},k.isInteger=k.isInt=function(){return!!this.d&&S(this.e/7)>this.d.length-2},k.isNaN=function(){return!this.s},k.isNegative=k.isNeg=function(){return this.s<0},k.isPositive=k.isPos=function(){return this.s>0},k.isZero=function(){return!!this.d&&0===this.d[0]},k.lessThan=k.lt=function(n){return this.cmp(n)<0},k.lessThanOrEqualTo=k.lte=function(n){return this.cmp(n)<1},k.logarithm=k.log=function(n){var e,r,t,i,s,o,u,c,a=this,l=a.constructor,f=l.precision,h=l.rounding;if(null==n)n=new l(10),e=!0;else{if(r=(n=new l(n)).d,n.s<0||!r||!r[0]||n.eq(1))return new l(NaN);e=n.eq(10)}if(r=a.d,a.s<0||!r||!r[0]||a.eq(1))return new l(r&&!r[0]?-1/0:1!=a.s?NaN:r?0:1/0);if(e)if(r.length>1)s=!0;else{for(i=r[0];i%10==0;)i/=10;s=1!==i}if(y=!1,o=en(a,u=f+5),t=e?J(l,u+10):en(n,u),$((c=H(o,t,u,1)).d,i=f,h))do{if(o=en(a,u+=10),t=e?J(l,u+10):en(n,u),c=H(o,t,u,1),!s){+Z(c.d).slice(i+1,i+15)+1==1e14&&(c=j(c,f+1,0));break}}while($(c.d,i+=10,h));return y=!0,j(c,f,h)},k.minus=k.sub=function(n){var e,r,t,i,s,o,u,c,a,l,f,h,d=this,g=d.constructor;if(n=new g(n),!d.d||!n.d)return d.s&&n.s?d.d?n.s=-n.s:n=new g(n.d||d.s!==n.s?d:NaN):n=new g(NaN),n;if(d.s!=n.s)return n.s=-n.s,d.plus(n);if(a=d.d,h=n.d,u=g.precision,c=g.rounding,!a[0]||!h[0]){if(h[0])n.s=-n.s;else{if(!a[0])return new g(3===c?-0:0);n=new g(d)}return y?j(n,u,c):n}if(r=S(n.e/7),l=S(d.e/7),a=a.slice(),s=l-r){for((f=s<0)?(e=a,s=-s,o=h.length):(e=h,r=l,o=a.length),s>(t=Math.max(Math.ceil(u/7),o)+2)&&(s=t,e.length=1),e.reverse(),t=s;t--;)e.push(0);e.reverse()}else{for((f=(t=a.length)<(o=h.length))&&(o=t),t=0;t<o;t++)if(a[t]!=h[t]){f=a[t]<h[t];break}s=0}for(f&&(e=a,a=h,h=e,n.s=-n.s),o=a.length,t=h.length-o;t>0;--t)a[o++]=0;for(t=h.length;t>s;){if(a[--t]<h[t]){for(i=t;i&&0===a[--i];)a[i]=D-1;--a[i],a[t]+=D}a[t]-=h[t]}for(;0===a[--o];)a.pop();for(;0===a[0];a.shift())--r;return a[0]?(n.d=a,n.e=z(a,r),y?j(n,u,c):n):new g(3===c?-0:0)},k.modulo=k.mod=function(n){var e,r=this,t=r.constructor;return n=new t(n),!r.d||!n.s||n.d&&!n.d[0]?new t(NaN):!n.d||r.d&&!r.d[0]?j(new t(r),t.precision,t.rounding):(y=!1,9==t.modulo?(e=H(r,n.abs(),0,3,1)).s*=n.s:e=H(r,n,0,t.modulo,1),e=e.times(n),y=!0,r.minus(e))},k.naturalExponential=k.exp=function(){return nn(this)},k.naturalLogarithm=k.ln=function(){return en(this)},k.negated=k.neg=function(){var n=new this.constructor(this);return n.s=-n.s,j(n)},k.plus=k.add=function(n){var e,r,t,i,s,o,u,c,a,l,f=this,h=f.constructor;if(n=new h(n),!f.d||!n.d)return f.s&&n.s?f.d||(n=new h(n.d||f.s===n.s?f:NaN)):n=new h(NaN),n;if(f.s!=n.s)return n.s=-n.s,f.minus(n);if(a=f.d,l=n.d,u=h.precision,c=h.rounding,!a[0]||!l[0])return l[0]||(n=new h(f)),y?j(n,u,c):n;if(s=S(f.e/7),t=S(n.e/7),a=a.slice(),i=s-t){for(i<0?(r=a,i=-i,o=l.length):(r=l,t=s,o=a.length),i>(o=(s=Math.ceil(u/7))>o?s+1:o+1)&&(i=o,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((o=a.length)-(i=l.length)<0&&(i=o,r=l,l=a,a=r),e=0;i;)e=(a[--i]=a[i]+l[i]+e)/D|0,a[i]%=D;for(e&&(a.unshift(e),++t),o=a.length;0==a[--o];)a.pop();return n.d=a,n.e=z(a,t),y?j(n,u,c):n},k.precision=k.sd=function(n){var e,r=this;if(void 0!==n&&n!==!!n&&1!==n&&0!==n)throw Error(q+n);return r.d?(e=W(r.d),n&&r.e+1>e&&(e=r.e+1)):e=NaN,e},k.round=function(){var n=this,e=n.constructor;return j(new e(n),n.e+1,e.rounding)},k.sine=k.sin=function(){var n,e,r=this,t=r.constructor;return r.isFinite()?r.isZero()?new t(r):(n=t.precision,e=t.rounding,t.precision=n+Math.max(r.e,r.sd())+7,t.rounding=1,r=function(n,e){var r,t=e.d.length;if(t<3)return e.isZero()?e:sn(n,2,e,e);r=(r=1.4*Math.sqrt(t))>16?16:0|r,e=e.times(1/on(5,r)),e=sn(n,2,e,e);for(var i,s=new n(5),o=new n(16),u=new n(20);r--;)i=e.times(e),e=e.times(s.plus(i.times(o.times(i).minus(u))));return e}(t,un(t,r)),t.precision=n,t.rounding=e,j(m>2?r.neg():r,n,e,!0)):new t(NaN)},k.squareRoot=k.sqrt=function(){var n,e,r,t,i,s,o=this,u=o.d,c=o.e,a=o.s,l=o.constructor;if(1!==a||!u||!u[0])return new l(!a||a<0&&(!u||u[0])?NaN:u?o:1/0);for(y=!1,0==(a=Math.sqrt(+o))||a==1/0?(((e=Z(u)).length+c)%2==0&&(e+="0"),a=Math.sqrt(e),c=S((c+1)/2)-(c<0||c%2),t=new l(e=a==1/0?"5e"+c:(e=a.toExponential()).slice(0,e.indexOf("e")+1)+c)):t=new l(a.toString()),r=(c=l.precision)+3;;)if(t=(s=t).plus(H(o,s,r+2,1)).times(.5),Z(s.d).slice(0,r)===(e=Z(t.d)).slice(0,r)){if("9999"!=(e=e.slice(r-3,r+1))&&(i||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(j(t,c+1,1),n=!t.times(t).eq(o));break}if(!i&&(j(s,c+1,0),s.times(s).eq(o))){t=s;break}r+=4,i=1}return y=!0,j(t,c,l.rounding,n)},k.tangent=k.tan=function(){var n,e,r=this,t=r.constructor;return r.isFinite()?r.isZero()?new t(r):(n=t.precision,e=t.rounding,t.precision=n+10,t.rounding=1,(r=r.sin()).s=1,r=H(r,new t(1).minus(r.times(r)).sqrt(),n+10,0),t.precision=n,t.rounding=e,j(2==m||4==m?r.neg():r,n,e,!0)):new t(NaN)},k.times=k.mul=function(n){var e,r,t,i,s,o,u,c,a,l=this,f=l.constructor,h=l.d,d=(n=new f(n)).d;if(n.s*=l.s,!(h&&h[0]&&d&&d[0]))return new f(!n.s||h&&!h[0]&&!d||d&&!d[0]&&!h?NaN:h&&d?0*n.s:n.s/0);for(r=S(l.e/7)+S(n.e/7),(c=h.length)<(a=d.length)&&(s=h,h=d,d=s,o=c,c=a,a=o),s=[],t=o=c+a;t--;)s.push(0);for(t=a;--t>=0;){for(e=0,i=c+t;i>t;)u=s[i]+d[t]*h[i-t-1]+e,s[i--]=u%D|0,e=u/D|0;s[i]=(s[i]+e)%D|0}for(;!s[--o];)s.pop();return e?++r:s.shift(),n.d=s,n.e=z(s,r),y?j(n,f.precision,f.rounding):n},k.toBinary=function(n,e){return cn(this,2,n,e)},k.toDecimalPlaces=k.toDP=function(n,e){var r=this,t=r.constructor;return r=new t(r),void 0===n?r:(U(n,0,v),void 0===e?e=t.rounding:U(e,0,8),j(r,n+r.e+1,e))},k.toExponential=function(n,e){var r,t=this,i=t.constructor;return void 0===n?r=B(t,!0):(U(n,0,v),void 0===e?e=i.rounding:U(e,0,8),r=B(t=j(new i(t),n+1,e),!0,n+1)),t.isNeg()&&!t.isZero()?"-"+r:r},k.toFixed=function(n,e){var r,t,i=this,s=i.constructor;return void 0===n?r=B(i):(U(n,0,v),void 0===e?e=s.rounding:U(e,0,8),r=B(t=j(new s(i),n+i.e+1,e),!1,n+t.e+1)),i.isNeg()&&!i.isZero()?"-"+r:r},k.toFraction=function(n){var e,r,t,i,s,o,u,c,a,l,f,h,d=this,g=d.d,p=d.constructor;if(!g)return new p(d);if(a=r=new p(1),t=c=new p(0),o=(s=(e=new p(t)).e=W(g)-d.e-1)%7,e.d[0]=O(10,o<0?7+o:o),null==n)n=s>0?e:a;else{if(!(u=new p(n)).isInt()||u.lt(a))throw Error(q+u);n=u.gt(e)?s>0?e:a:u}for(y=!1,u=new p(Z(g)),l=p.precision,p.precision=s=7*g.length*2;f=H(u,e,0,1,1),1!=(i=r.plus(f.times(t))).cmp(n);)r=t,t=i,i=a,a=c.plus(f.times(i)),c=i,i=e,e=u.minus(f.times(i)),u=i;return i=H(n.minus(r),t,0,1,1),c=c.plus(i.times(a)),r=r.plus(i.times(t)),c.s=a.s=d.s,h=H(a,t,s,1).minus(d).abs().cmp(H(c,r,s,1).minus(d).abs())<1?[a,t]:[c,r],p.precision=l,y=!0,h},k.toHexadecimal=k.toHex=function(n,e){return cn(this,16,n,e)},k.toNearest=function(n,e){var r=this,t=r.constructor;if(r=new t(r),null==n){if(!r.d)return r;n=new t(1),e=t.rounding}else{if(n=new t(n),void 0===e?e=t.rounding:U(e,0,8),!r.d)return n.s?r:n;if(!n.d)return n.s&&(n.s=r.s),n}return n.d[0]?(y=!1,r=H(r,n,0,e,1).times(n),y=!0,j(r)):(n.s=r.s,r=n),r},k.toNumber=function(){return+this},k.toOctal=function(n,e){return cn(this,8,n,e)},k.toPower=k.pow=function(n){var e,r,t,i,s,o,u=this,c=u.constructor,a=+(n=new c(n));if(!(u.d&&n.d&&u.d[0]&&n.d[0]))return new c(O(+u,a));if((u=new c(u)).eq(1))return u;if(t=c.precision,s=c.rounding,n.eq(1))return j(u,t,s);if((e=S(n.e/7))>=n.d.length-1&&(r=a<0?-a:a)<=9007199254740991)return i=Q(c,u,r,t),n.s<0?new c(1).div(i):j(i,t,s);if((o=u.s)<0){if(e<n.d.length-1)return new c(NaN);if(1&n.d[e]||(o=1),0==u.e&&1==u.d[0]&&1==u.d.length)return u.s=o,u}return(e=0!=(r=O(+u,a))&&isFinite(r)?new c(r+"").e:S(a*(Math.log("0."+Z(u.d))/Math.LN10+u.e+1)))>c.maxE+1||e<c.minE-1?new c(e>0?o/0:0):(y=!1,c.rounding=u.s=1,r=Math.min(12,(e+"").length),(i=nn(n.times(en(u,t+r)),t)).d&&$((i=j(i,t+5,1)).d,t,s)&&(e=t+10,+Z((i=j(nn(n.times(en(u,e+r)),e),e+5,1)).d).slice(t+1,t+15)+1==1e14&&(i=j(i,t+1,0))),i.s=o,y=!0,c.rounding=s,j(i,t,s))},k.toPrecision=function(n,e){var r,t=this,i=t.constructor;return void 0===n?r=B(t,t.e<=i.toExpNeg||t.e>=i.toExpPos):(U(n,1,v),void 0===e?e=i.rounding:U(e,0,8),r=B(t=j(new i(t),n,e),n<=t.e||t.e<=i.toExpNeg,n)),t.isNeg()&&!t.isZero()?"-"+r:r},k.toSignificantDigits=k.toSD=function(n,e){var r=this.constructor;return void 0===n?(n=r.precision,e=r.rounding):(U(n,1,v),void 0===e?e=r.rounding:U(e,0,8)),j(new r(this),n,e)},k.toString=function(){var n=this,e=n.constructor,r=B(n,n.e<=e.toExpNeg||n.e>=e.toExpPos);return n.isNeg()&&!n.isZero()?"-"+r:r},k.truncated=k.trunc=function(){return j(new this.constructor(this),this.e+1,1)},k.valueOf=k.toJSON=function(){var n=this,e=n.constructor,r=B(n,n.e<=e.toExpNeg||n.e>=e.toExpPos);return n.isNeg()?"-"+r:r};var H=function(){function n(n,e,r){var t,i=0,s=n.length;for(n=n.slice();s--;)t=n[s]*e+i,n[s]=t%r|0,i=t/r|0;return i&&n.unshift(i),n}function e(n,e,r,t){var i,s;if(r!=t)s=r>t?1:-1;else for(i=s=0;i<r;i++)if(n[i]!=e[i]){s=n[i]>e[i]?1:-1;break}return s}function r(n,e,r,t){for(var i=0;r--;)n[r]-=i,i=n[r]<e[r]?1:0,n[r]=i*t+n[r]-e[r];for(;!n[0]&&n.length>1;)n.shift()}return function(t,i,s,o,u,c){var a,l,f,h,d,g,m,w,v,N,b,E,x,y,P,q,C,R,M,O,_=t.constructor,A=t.s==i.s?1:-1,T=t.d,V=i.d;if(!(T&&T[0]&&V&&V[0]))return new _(t.s&&i.s&&(T?!V||T[0]!=V[0]:V)?T&&0==T[0]||!V?0*A:A/0:NaN);for(c?(d=1,l=t.e-i.e):(c=D,d=7,l=S(t.e/d)-S(i.e/d)),M=V.length,C=T.length,N=(v=new _(A)).d=[],f=0;V[f]==(T[f]||0);f++);if(V[f]>(T[f]||0)&&l--,null==s?(y=s=_.precision,o=_.rounding):y=u?s+(t.e-i.e)+1:s,y<0)N.push(1),g=!0;else{if(y=y/d+2|0,f=0,1==M){for(h=0,V=V[0],y++;(f<C||h)&&y--;f++)P=h*c+(T[f]||0),N[f]=P/V|0,h=P%V|0;g=h||f<C}else{for((h=c/(V[0]+1)|0)>1&&(V=n(V,h,c),T=n(T,h,c),M=V.length,C=T.length),q=M,E=(b=T.slice(0,M)).length;E<M;)b[E++]=0;(O=V.slice()).unshift(0),R=V[0],V[1]>=c/2&&++R;do{h=0,(a=e(V,b,M,E))<0?(x=b[0],M!=E&&(x=x*c+(b[1]||0)),(h=x/R|0)>1?(h>=c&&(h=c-1),1==(a=e(m=n(V,h,c),b,w=m.length,E=b.length))&&(h--,r(m,M<w?O:V,w,c))):(0==h&&(a=h=1),m=V.slice()),(w=m.length)<E&&m.unshift(0),r(b,m,E,c),-1==a&&(a=e(V,b,M,E=b.length))<1&&(h++,r(b,M<E?O:V,E,c)),E=b.length):0===a&&(h++,b=[0]),N[f++]=h,a&&b[0]?b[E++]=T[q]||0:(b=[T[q]],E=1)}while((q++<C||void 0!==b[0])&&y--);g=void 0!==b[0]}N[0]||N.shift()}if(1==d)v.e=l,p=g;else{for(f=1,h=N[0];h>=10;h/=10)f++;v.e=f+l*d-1,j(v,u?s+v.e+1:s,o,g)}return v}}();function j(n,e,r,t){var i,s,o,u,c,a,l,f,h,d=n.constructor;n:if(null!=e){if(!(f=n.d))return n;for(i=1,u=f[0];u>=10;u/=10)i++;if((s=e-i)<0)s+=7,o=e,c=(l=f[h=0])/O(10,i-o-1)%10|0;else if((h=Math.ceil((s+1)/7))>=(u=f.length)){if(!t)break n;for(;u++<=h;)f.push(0);l=c=0,i=1,o=(s%=7)-7+1}else{for(l=u=f[h],i=1;u>=10;u/=10)i++;c=(o=(s%=7)-7+i)<0?0:l/O(10,i-o-1)%10|0}if(t=t||e<0||void 0!==f[h+1]||(o<0?l:l%O(10,i-o-1)),a=r<4?(c||t)&&(0==r||r==(n.s<0?3:2)):c>5||5==c&&(4==r||t||6==r&&(s>0?o>0?l/O(10,i-o):0:f[h-1])%10&1||r==(n.s<0?8:7)),e<1||!f[0])return f.length=0,a?(e-=n.e+1,f[0]=O(10,(7-e%7)%7),n.e=-e||0):f[0]=n.e=0,n;if(0==s?(f.length=h,u=1,h--):(f.length=h+1,u=O(10,7-s),f[h]=o>0?(l/O(10,i-o)%O(10,o)|0)*u:0),a)for(;;){if(0==h){for(s=1,o=f[0];o>=10;o/=10)s++;for(o=f[0]+=u,u=1;o>=10;o/=10)u++;s!=u&&(n.e++,f[0]==D&&(f[0]=1));break}if(f[h]+=u,f[h]!=D)break;f[h--]=0,u=1}for(s=f.length;0===f[--s];)f.pop()}return y&&(n.e>d.maxE?(n.d=null,n.e=NaN):n.e<d.minE&&(n.e=0,n.d=[0])),n}function B(n,e,r){if(!n.isFinite())return rn(n);var t,i=n.e,s=Z(n.d),o=s.length;return e?(r&&(t=r-o)>0?s=s.charAt(0)+"."+s.slice(1)+G(t):o>1&&(s=s.charAt(0)+"."+s.slice(1)),s=s+(n.e<0?"e":"e+")+n.e):i<0?(s="0."+G(-i-1)+s,r&&(t=r-o)>0&&(s+=G(t))):i>=o?(s+=G(i+1-o),r&&(t=r-i-1)>0&&(s=s+"."+G(t))):((t=i+1)<o&&(s=s.slice(0,t)+"."+s.slice(t)),r&&(t=r-o)>0&&(i+1===o&&(s+="."),s+=G(t))),s}function z(n,e){var r=n[0];for(e*=7;r>=10;r/=10)e++;return e}function J(n,e,r){if(e>F)throw y=!0,r&&(n.precision=r),Error(C);return j(new n(b),e,1,!0)}function K(n,e,r){if(e>I)throw Error(C);return j(new n(E),e,r,!0)}function W(n){var e=n.length-1,r=7*e+1;if(e=n[e]){for(;e%10==0;e/=10)r--;for(e=n[0];e>=10;e/=10)r++}return r}function G(n){for(var e="";n--;)e+="0";return e}function Q(n,e,r,t){var i,s=new n(1),o=Math.ceil(t/7+4);for(y=!1;;){if(r%2&&an((s=s.times(e)).d,o)&&(i=!0),0===(r=S(r/2))){r=s.d.length-1,i&&0===s.d[r]&&++s.d[r];break}an((e=e.times(e)).d,o)}return y=!0,s}function X(n){return 1&n.d[n.d.length-1]}function Y(n,e,r){for(var t,i,s=new n(e[0]),o=0;++o<e.length;){if(!(i=new n(e[o])).s){s=i;break}((t=s.cmp(i))===r||0===t&&s.s===r)&&(s=i)}return s}function nn(n,e){var r,t,i,s,o,u,c,a=0,l=0,f=0,h=n.constructor,d=h.rounding,g=h.precision;if(!n.d||!n.d[0]||n.e>17)return new h(n.d?n.d[0]?n.s<0?0:1/0:1:n.s?n.s<0?0:n:NaN);for(null==e?(y=!1,c=g):c=e,u=new h(.03125);n.e>-2;)n=n.times(u),f+=5;for(c+=t=Math.log(O(2,f))/Math.LN10*2+5|0,r=s=o=new h(1),h.precision=c;;){if(s=j(s.times(n),c,1),r=r.times(++l),Z((u=o.plus(H(s,r,c,1))).d).slice(0,c)===Z(o.d).slice(0,c)){for(i=f;i--;)o=j(o.times(o),c,1);if(null!=e)return h.precision=g,o;if(!(a<3&&$(o.d,c-t,d,a)))return j(o,h.precision=g,d,y=!0);h.precision=c+=10,r=s=u=new h(1),l=0,a++}o=u}}function en(n,e){var r,t,i,s,o,u,c,a,l,f,h,d=1,g=n,p=g.d,m=g.constructor,w=m.rounding,v=m.precision;if(g.s<0||!p||!p[0]||!g.e&&1==p[0]&&1==p.length)return new m(p&&!p[0]?-1/0:1!=g.s?NaN:p?0:g);if(null==e?(y=!1,l=v):l=e,m.precision=l+=10,t=(r=Z(p)).charAt(0),!(Math.abs(s=g.e)<15e14))return a=J(m,l+2,v).times(s+""),g=en(new m(t+"."+r.slice(1)),l-10).plus(a),m.precision=v,null==e?j(g,v,w,y=!0):g;for(;t<7&&1!=t||1==t&&r.charAt(1)>3;)t=(r=Z((g=g.times(n)).d)).charAt(0),d++;for(s=g.e,t>1?(g=new m("0."+r),s++):g=new m(t+"."+r.slice(1)),f=g,c=o=g=H(g.minus(1),g.plus(1),l,1),h=j(g.times(g),l,1),i=3;;){if(o=j(o.times(h),l,1),Z((a=c.plus(H(o,new m(i),l,1))).d).slice(0,l)===Z(c.d).slice(0,l)){if(c=c.times(2),0!==s&&(c=c.plus(J(m,l+2,v).times(s+""))),c=H(c,new m(d),l,1),null!=e)return m.precision=v,c;if(!$(c.d,l-10,w,u))return j(c,m.precision=v,w,y=!0);m.precision=l+=10,a=o=g=H(f.minus(1),f.plus(1),l,1),h=j(g.times(g),l,1),i=u=1}c=a,i+=2}}function rn(n){return String(n.s*n.s/0)}function tn(n,e){var r,t,i;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(t=e.search(/e/i))>0?(r<0&&(r=t),r+=+e.slice(t+1),e=e.substring(0,t)):r<0&&(r=e.length),t=0;48===e.charCodeAt(t);t++);for(i=e.length;48===e.charCodeAt(i-1);--i);if(e=e.slice(t,i)){if(i-=t,n.e=r=r-t-1,n.d=[],t=(r+1)%7,r<0&&(t+=7),t<i){for(t&&n.d.push(+e.slice(0,t)),i-=7;t<i;)n.d.push(+e.slice(t,t+=7));t=7-(e=e.slice(t)).length}else t-=i;for(;t--;)e+="0";n.d.push(+e),y&&(n.e>n.constructor.maxE?(n.d=null,n.e=NaN):n.e<n.constructor.minE&&(n.e=0,n.d=[0]))}else n.e=0,n.d=[0];return n}function sn(n,e,r,t,i){var s,o,u,c,a=n.precision,l=Math.ceil(a/7);for(y=!1,c=r.times(r),u=new n(t);;){if(o=H(u.times(c),new n(e++*e++),a,1),u=i?t.plus(o):t.minus(o),t=H(o.times(c),new n(e++*e++),a,1),void 0!==(o=u.plus(t)).d[l]){for(s=l;o.d[s]===u.d[s]&&s--;);if(-1==s)break}s=u,u=t,t=o,o=s}return y=!0,o.d.length=l+1,o}function on(n,e){for(var r=n;--e;)r*=n;return r}function un(n,e){var r,t=e.s<0,i=K(n,n.precision,1),s=i.times(.5);if((e=e.abs()).lte(s))return m=t?4:1,e;if((r=e.divToInt(i)).isZero())m=t?3:2;else{if((e=e.minus(r.times(i))).lte(s))return m=X(r)?t?2:3:t?4:1,e;m=X(r)?t?1:4:t?3:2}return e.minus(i).abs()}function cn(n,e,r,t){var i,s,o,u,c,a,l,f,h,d=n.constructor,g=void 0!==r;if(g?(U(r,1,v),void 0===t?t=d.rounding:U(t,0,8)):(r=d.precision,t=d.rounding),n.isFinite()){for(g?(i=2,16==e?r=4*r-3:8==e&&(r=3*r-2)):i=e,(o=(l=B(n)).indexOf("."))>=0&&(l=l.replace(".",""),(h=new d(1)).e=l.length-o,h.d=L(B(h),10,i),h.e=h.d.length),s=c=(f=L(l,10,i)).length;0==f[--c];)f.pop();if(f[0]){if(o<0?s--:((n=new d(n)).d=f,n.e=s,f=(n=H(n,h,r,t,0,i)).d,s=n.e,a=p),o=f[r],u=i/2,a=a||void 0!==f[r+1],a=t<4?(void 0!==o||a)&&(0===t||t===(n.s<0?3:2)):o>u||o===u&&(4===t||a||6===t&&1&f[r-1]||t===(n.s<0?8:7)),f.length=r,a)for(;++f[--r]>i-1;)f[r]=0,r||(++s,f.unshift(1));for(c=f.length;!f[c-1];--c);for(o=0,l="";o<c;o++)l+=N.charAt(f[o]);if(g){if(c>1)if(16==e||8==e){for(o=16==e?4:3,--c;c%o;c++)l+="0";for(c=(f=L(l,i,e)).length;!f[c-1];--c);for(o=1,l="1.";o<c;o++)l+=N.charAt(f[o])}else l=l.charAt(0)+"."+l.slice(1);l=l+(s<0?"p":"p+")+s}else if(s<0){for(;++s;)l="0"+l;l="0."+l}else if(++s>c)for(s-=c;s--;)l+="0";else s<c&&(l=l.slice(0,s)+"."+l.slice(s))}else l=g?"0p+0":"0";l=(16==e?"0x":2==e?"0b":8==e?"0o":"")+l}else l=rn(n);return n.s<0?"-"+l:l}function an(n,e){if(n.length>e)return n.length=e,!0}function ln(n){return new this(n).abs()}function fn(n){return new this(n).acos()}function hn(n){return new this(n).acosh()}function dn(n,e){return new this(n).plus(e)}function gn(n){return new this(n).asin()}function pn(n){return new this(n).asinh()}function mn(n){return new this(n).atan()}function wn(n){return new this(n).atanh()}function vn(n,e){n=new this(n),e=new this(e);var r,t=this.precision,i=this.rounding,s=t+4;return n.s&&e.s?n.d||e.d?!e.d||n.isZero()?(r=e.s<0?K(this,t,i):new this(0)).s=n.s:!n.d||e.isZero()?(r=K(this,s,1).times(.5)).s=n.s:e.s<0?(this.precision=s,this.rounding=1,r=this.atan(H(n,e,s,1)),e=K(this,s,1),this.precision=t,this.rounding=i,r=n.s<0?r.minus(e):r.plus(e)):r=this.atan(H(n,e,s,1)):(r=K(this,s,1).times(e.s>0?.25:.75)).s=n.s:r=new this(NaN),r}function Nn(n){return new this(n).cbrt()}function bn(n){return j(n=new this(n),n.e+1,2)}function En(n,e,r){return new this(n).clamp(e,r)}function xn(n){if(!n||"object"!=typeof n)throw Error(P+"Object expected");var e,r,t,i=!0===n.defaults,s=["precision",1,v,"rounding",0,8,"toExpNeg",-w,0,"toExpPos",0,w,"maxE",0,w,"minE",-w,0,"modulo",0,9];for(e=0;e<s.length;e+=3)if(r=s[e],i&&(this[r]=x[r]),void 0!==(t=n[r])){if(!(S(t)===t&&t>=s[e+1]&&t<=s[e+2]))throw Error(q+r+": "+t);this[r]=t}if(r="crypto",i&&(this[r]=x[r]),void 0!==(t=n[r])){if(!0!==t&&!1!==t&&0!==t&&1!==t)throw Error(q+r+": "+t);if(t){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(R);this[r]=!0}else this[r]=!1}return this}function yn(n){return new this(n).cos()}function Pn(n){return new this(n).cosh()}function qn(n,e){return new this(n).div(e)}function Cn(n){return new this(n).exp()}function Rn(n){return j(n=new this(n),n.e+1,3)}function Mn(){var n,e,r=new this(0);for(y=!1,n=0;n<arguments.length;)if((e=new this(arguments[n++])).d)r.d&&(r=r.plus(e.times(e)));else{if(e.s)return y=!0,new this(1/0);r=e}return y=!0,r.sqrt()}function Sn(n){return n instanceof Gn||n&&n.toStringTag===M||!1}function On(n){return new this(n).ln()}function _n(n,e){return new this(n).log(e)}function An(n){return new this(n).log(2)}function Tn(n){return new this(n).log(10)}function Vn(){return Y(this,arguments,-1)}function Dn(){return Y(this,arguments,1)}function Fn(n,e){return new this(n).mod(e)}function In(n,e){return new this(n).mul(e)}function kn(n,e){return new this(n).pow(e)}function Zn(n){var e,r,t,i,s=0,o=new this(1),u=[];if(void 0===n?n=this.precision:U(n,1,v),t=Math.ceil(n/7),this.crypto)if(crypto.getRandomValues)for(e=crypto.getRandomValues(new Uint32Array(t));s<t;)(i=e[s])>=429e7?e[s]=crypto.getRandomValues(new Uint32Array(1))[0]:u[s++]=i%1e7;else{if(!crypto.randomBytes)throw Error(R);for(e=crypto.randomBytes(t*=4);s<t;)(i=e[s]+(e[s+1]<<8)+(e[s+2]<<16)+((127&e[s+3])<<24))>=214e7?crypto.randomBytes(4).copy(e,s):(u.push(i%1e7),s+=4);s=t/4}else for(;s<t;)u[s++]=1e7*Math.random()|0;for(n%=7,(t=u[--s])&&n&&(i=O(10,7-n),u[s]=(t/i|0)*i);0===u[s];s--)u.pop();if(s<0)r=0,u=[0];else{for(r=-1;0===u[0];r-=7)u.shift();for(t=1,i=u[0];i>=10;i/=10)t++;t<7&&(r-=7-t)}return o.e=r,o.d=u,o}function Un(n){return j(n=new this(n),n.e+1,this.rounding)}function $n(n){return(n=new this(n)).d?n.d[0]?n.s:0*n.s:n.s||NaN}function Ln(n){return new this(n).sin()}function Hn(n){return new this(n).sinh()}function jn(n){return new this(n).sqrt()}function Bn(n,e){return new this(n).sub(e)}function zn(){var n=0,e=arguments,r=new this(e[n]);for(y=!1;r.s&&++n<e.length;)r=r.plus(e[n]);return y=!0,j(r,this.precision,this.rounding)}function Jn(n){return new this(n).tan()}function Kn(n){return new this(n).tanh()}function Wn(n){return j(n=new this(n),n.e+1,1)}k[Symbol.for("nodejs.util.inspect.custom")]=k.toString,k[Symbol.toStringTag]="Decimal";var Gn=k.constructor=function n(e){var r,t,i;function s(n){var e,r,t,i=this;if(!(i instanceof s))return new s(n);if(i.constructor=s,Sn(n))return i.s=n.s,void(y?!n.d||n.e>s.maxE?(i.e=NaN,i.d=null):n.e<s.minE?(i.e=0,i.d=[0]):(i.e=n.e,i.d=n.d.slice()):(i.e=n.e,i.d=n.d?n.d.slice():n.d));if("number"===(t=typeof n)){if(0===n)return i.s=1/n<0?-1:1,i.e=0,void(i.d=[0]);if(n<0?(n=-n,i.s=-1):i.s=1,n===~~n&&n<1e7){for(e=0,r=n;r>=10;r/=10)e++;return void(y?e>s.maxE?(i.e=NaN,i.d=null):e<s.minE?(i.e=0,i.d=[0]):(i.e=e,i.d=[n]):(i.e=e,i.d=[n]))}return 0*n!=0?(n||(i.s=NaN),i.e=NaN,void(i.d=null)):tn(i,n.toString())}if("string"===t)return 45===(r=n.charCodeAt(0))?(n=n.slice(1),i.s=-1):(43===r&&(n=n.slice(1)),i.s=1),V.test(n)?tn(i,n):function(n,e){var r,t,i,s,o,u,c,a,l;if(e.indexOf("_")>-1){if(e=e.replace(/(\d)_(?=\d)/g,"$1"),V.test(e))return tn(n,e)}else if("Infinity"===e||"NaN"===e)return+e||(n.s=NaN),n.e=NaN,n.d=null,n;if(A.test(e))r=16,e=e.toLowerCase();else if(_.test(e))r=2;else{if(!T.test(e))throw Error(q+e);r=8}for((s=e.search(/p/i))>0?(c=+e.slice(s+1),e=e.substring(2,s)):e=e.slice(2),o=(s=e.indexOf("."))>=0,t=n.constructor,o&&(s=(u=(e=e.replace(".","")).length)-s,i=Q(t,new t(r),s,2*s)),s=l=(a=L(e,r,D)).length-1;0===a[s];--s)a.pop();return s<0?new t(0*n.s):(n.e=z(a,l),n.d=a,y=!1,o&&(n=H(n,i,4*u)),c&&(n=n.times(Math.abs(c)<54?O(2,c):Gn.pow(2,c))),y=!0,n)}(i,n);if("bigint"===t)return n<0?(n=-n,i.s=-1):i.s=1,tn(i,n.toString());throw Error(q+n)}if(s.prototype=k,s.ROUND_UP=0,s.ROUND_DOWN=1,s.ROUND_CEIL=2,s.ROUND_FLOOR=3,s.ROUND_HALF_UP=4,s.ROUND_HALF_DOWN=5,s.ROUND_HALF_EVEN=6,s.ROUND_HALF_CEIL=7,s.ROUND_HALF_FLOOR=8,s.EUCLID=9,s.config=s.set=xn,s.clone=n,s.isDecimal=Sn,s.abs=ln,s.acos=fn,s.acosh=hn,s.add=dn,s.asin=gn,s.asinh=pn,s.atan=mn,s.atanh=wn,s.atan2=vn,s.cbrt=Nn,s.ceil=bn,s.clamp=En,s.cos=yn,s.cosh=Pn,s.div=qn,s.exp=Cn,s.floor=Rn,s.hypot=Mn,s.ln=On,s.log=_n,s.log10=Tn,s.log2=An,s.max=Vn,s.min=Dn,s.mod=Fn,s.mul=In,s.pow=kn,s.random=Zn,s.round=Un,s.sign=$n,s.sin=Ln,s.sinh=Hn,s.sqrt=jn,s.sub=Bn,s.sum=zn,s.tan=Jn,s.tanh=Kn,s.trunc=Wn,void 0===e&&(e={}),e&&!0!==e.defaults)for(i=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],r=0;r<i.length;)e.hasOwnProperty(t=i[r++])||(e[t]=this[t]);return s.config(e),s}(x);b=new Gn(b),E=new Gn(E);var Qn=class n{constructor(e,r){if(e.length-1!==r.length){if(0===e.length)throw new TypeError("Expected at least 1 string");throw new TypeError(`Expected ${e.length} strings to have ${e.length-1} values`)}const t=r.reduce((e,r)=>e+(r instanceof n?r.values.length:1),0);this.values=new Array(t),this.strings=new Array(t+1),this.strings[0]=e[0];let i=0,s=0;for(;i<r.length;){const t=r[i++],o=e[i];if(t instanceof n){this.strings[s]+=t.strings[0];let n=0;for(;n<t.values.length;)this.values[s++]=t.values[n++],this.strings[s]=t.strings[n];this.strings[s]+=o}else this.values[s++]=t,this.strings[s]=o}}get sql(){const n=this.strings.length;let e=1,r=this.strings[0];for(;e<n;)r+=`?${this.strings[e++]}`;return r}get statement(){const n=this.strings.length;let e=1,r=this.strings[0];for(;e<n;)r+=`:${e}${this.strings[e++]}`;return r}get text(){const n=this.strings.length;let e=1,r=this.strings[0];for(;e<n;)r+=`$${e}${this.strings[e++]}`;return r}inspect(){return{sql:this.sql,statement:this.statement,text:this.text,values:this.values}}};function Xn(n){return new Qn([n],[])}Xn(""),
|
|
1
|
+
"use strict";function n(n,e){Object.defineProperty(n,"name",{value:e,configurable:!0})}var e=class n extends Error{clientVersion;errorCode;retryable;constructor(e,r,t){super(e),this.name="PrismaClientInitializationError",this.clientVersion=r,this.errorCode=t,Error.captureStackTrace(n)}get[Symbol.toStringTag](){return"PrismaClientInitializationError"}};n(e,"PrismaClientInitializationError");var r=class extends Error{code;meta;clientVersion;batchRequestIdx;constructor(n,{code:e,clientVersion:r,meta:t,batchRequestIdx:i}){super(n),this.name="PrismaClientKnownRequestError",this.code=e,this.clientVersion=r,this.meta=t,Object.defineProperty(this,"batchRequestIdx",{value:i,enumerable:!1,writable:!0})}get[Symbol.toStringTag](){return"PrismaClientKnownRequestError"}};n(r,"PrismaClientKnownRequestError");var t=class extends Error{clientVersion;_isPanic;constructor({clientVersion:n,error:e}){var r;super(function(n){if(n.fields?.message){let e=n.fields?.message;return n.fields?.file&&(e+=` in ${n.fields.file}`,n.fields?.line&&(e+=`:${n.fields.line}`),n.fields?.column&&(e+=`:${n.fields.column}`)),n.fields?.reason&&(e+=`\n${n.fields?.reason}`),e}return"Unknown error"}(e)??"Unknown error"),this._isPanic=(r=e,"PANIC"===r.fields?.message),this.clientVersion=n}get[Symbol.toStringTag](){return"PrismaClientRustError"}isPanic(){return this._isPanic}};n(t,"PrismaClientRustError");var i=class extends Error{clientVersion;constructor(n,e){super(n),this.name="PrismaClientRustPanicError",this.clientVersion=e}get[Symbol.toStringTag](){return"PrismaClientRustPanicError"}};n(i,"PrismaClientRustPanicError");var s=class extends Error{clientVersion;batchRequestIdx;constructor(n,{clientVersion:e,batchRequestIdx:r}){super(n),this.name="PrismaClientUnknownRequestError",this.clientVersion=e,Object.defineProperty(this,"batchRequestIdx",{value:r,writable:!0,enumerable:!1})}get[Symbol.toStringTag](){return"PrismaClientUnknownRequestError"}};n(s,"PrismaClientUnknownRequestError");var o=class extends Error{name="PrismaClientValidationError";clientVersion;constructor(n,{clientVersion:e}){super(n),this.clientVersion=e}get[Symbol.toStringTag](){return"PrismaClientValidationError"}};n(o,"PrismaClientValidationError");var u=Symbol(),c=new WeakMap,a=class{constructor(n){n===u?c.set(this,`Prisma.${this._getName()}`):c.set(this,`new Prisma.${this._getNamespace()}.${this._getName()}()`)}_getName(){return this.constructor.name}toString(){return c.get(this)}};function l(n,e){Object.defineProperty(n,"name",{value:e,configurable:!0})}var f=class extends a{_getNamespace(){return"NullTypes"}},h=class extends f{#n};l(h,"DbNull");var d=class extends f{#e};l(d,"JsonNull");var g=class extends f{#r};l(g,"AnyNull");var p={DbNull:h,JsonNull:d,AnyNull:g},m=new h(u),w=new d(u),v=new g(u);var N,x,b=9e15,E=1e9,y="0123456789abcdef",P="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",q="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",C={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-b,maxE:b,crypto:!1},R=!0,M="[DecimalError] ",S=M+"Invalid argument: ",O=M+"Precision limit exceeded",A=M+"crypto unavailable",_="[object Decimal]",T=Math.floor,D=Math.pow,V=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,I=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,F=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,k=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Z=1e7,U=P.length-1,$=q.length-1,L={toStringTag:_};function j(n){var e,r,t,i=n.length-1,s="",o=n[0];if(i>0){for(s+=o,e=1;e<i;e++)(r=7-(t=n[e]+"").length)&&(s+=nn(r)),s+=t;(r=7-(t=(o=n[e])+"").length)&&(s+=nn(r))}else if(0===o)return"0";for(;o%10==0;)o/=10;return s+o}function H(n,e,r){if(n!==~~n||n<e||n>r)throw Error(S+n)}function B(n,e,r,t){var i,s,o,u;for(s=n[0];s>=10;s/=10)--e;return--e<0?(e+=7,i=0):(i=Math.ceil((e+1)/7),e%=7),s=D(10,7-e),u=n[i]%s|0,null==t?e<3?(0==e?u=u/100|0:1==e&&(u=u/10|0),o=r<4&&99999==u||r>3&&49999==u||5e4==u||0==u):o=(r<4&&u+1==s||r>3&&u+1==s/2)&&(n[i+1]/s/100|0)==D(10,e-2)-1||(u==s/2||0==u)&&!(n[i+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||r<4)&&9999==u||!t&&r>3&&4999==u):o=((t||r<4)&&u+1==s||!t&&r>3&&u+1==s/2)&&(n[i+1]/s/1e3|0)==D(10,e-3)-1,o}function J(n,e,r){for(var t,i,s=[0],o=0,u=n.length;o<u;){for(i=s.length;i--;)s[i]*=e;for(s[0]+=y.indexOf(n.charAt(o++)),t=0;t<s.length;t++)s[t]>r-1&&(void 0===s[t+1]&&(s[t+1]=0),s[t+1]+=s[t]/r|0,s[t]%=r)}return s.reverse()}L.absoluteValue=L.abs=function(){var n=new this.constructor(this);return n.s<0&&(n.s=1),K(n)},L.ceil=function(){return K(new this.constructor(this),this.e+1,2)},L.clampedTo=L.clamp=function(n,e){var r=this,t=r.constructor;if(n=new t(n),e=new t(e),!n.s||!e.s)return new t(NaN);if(n.gt(e))throw Error(S+e);return r.cmp(n)<0?n:r.cmp(e)>0?e:new t(r)},L.comparedTo=L.cmp=function(n){var e,r,t,i,s=this,o=s.d,u=(n=new s.constructor(n)).d,c=s.s,a=n.s;if(!o||!u)return c&&a?c!==a?c:o===u?0:!o^c<0?1:-1:NaN;if(!o[0]||!u[0])return o[0]?c:u[0]?-a:0;if(c!==a)return c;if(s.e!==n.e)return s.e>n.e^c<0?1:-1;for(e=0,r=(t=o.length)<(i=u.length)?t:i;e<r;++e)if(o[e]!==u[e])return o[e]>u[e]^c<0?1:-1;return t===i?0:t>i^c<0?1:-1},L.cosine=L.cos=function(){var n,e,r=this,t=r.constructor;return r.d?r.d[0]?(n=t.precision,e=t.rounding,t.precision=n+Math.max(r.e,r.sd())+7,t.rounding=1,r=function(n,e){var r,t,i;if(e.isZero())return e;t=e.d.length,t<32?i=(1/ln(4,r=Math.ceil(t/3))).toString():(r=16,i="2.3283064365386962890625e-10");n.precision+=r,e=an(n,1,e.times(i),new n(1));for(var s=r;s--;){var o=e.times(e);e=o.times(o).minus(o).times(8).plus(1)}return n.precision-=r,e}(t,fn(t,r)),t.precision=n,t.rounding=e,K(2==x||3==x?r.neg():r,n,e,!0)):new t(1):new t(NaN)},L.cubeRoot=L.cbrt=function(){var n,e,r,t,i,s,o,u,c,a,l=this,f=l.constructor;if(!l.isFinite()||l.isZero())return new f(l);for(R=!1,(s=l.s*D(l.s*l,1/3))&&Math.abs(s)!=1/0?t=new f(s.toString()):(r=j(l.d),(s=((n=l.e)-r.length+1)%3)&&(r+=1==s||-2==s?"0":"00"),s=D(r,1/3),n=T((n+1)/3)-(n%3==(n<0?-1:2)),(t=new f(r=s==1/0?"5e"+n:(r=s.toExponential()).slice(0,r.indexOf("e")+1)+n)).s=l.s),o=(n=f.precision)+3;;)if(a=(c=(u=t).times(u).times(u)).plus(l),t=z(a.plus(l).times(u),a.plus(c),o+2,1),j(u.d).slice(0,o)===(r=j(t.d)).slice(0,o)){if("9999"!=(r=r.slice(o-3,o+1))&&(i||"4999"!=r)){+r&&(+r.slice(1)||"5"!=r.charAt(0))||(K(t,n+1,1),e=!t.times(t).times(t).eq(l));break}if(!i&&(K(u,n+1,0),u.times(u).times(u).eq(l))){t=u;break}o+=4,i=1}return R=!0,K(t,n,f.rounding,e)},L.decimalPlaces=L.dp=function(){var n,e=this.d,r=NaN;if(e){if(r=7*((n=e.length-1)-T(this.e/7)),n=e[n])for(;n%10==0;n/=10)r--;r<0&&(r=0)}return r},L.dividedBy=L.div=function(n){return z(this,new this.constructor(n))},L.dividedToIntegerBy=L.divToInt=function(n){var e=this.constructor;return K(z(this,new e(n),0,1,1),e.precision,e.rounding)},L.equals=L.eq=function(n){return 0===this.cmp(n)},L.floor=function(){return K(new this.constructor(this),this.e+1,3)},L.greaterThan=L.gt=function(n){return this.cmp(n)>0},L.greaterThanOrEqualTo=L.gte=function(n){var e=this.cmp(n);return 1==e||0===e},L.hyperbolicCosine=L.cosh=function(){var n,e,r,t,i,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;r=o.precision,t=o.rounding,o.precision=r+Math.max(s.e,s.sd())+4,o.rounding=1,(i=s.d.length)<32?e=(1/ln(4,n=Math.ceil(i/3))).toString():(n=16,e="2.3283064365386962890625e-10"),s=an(o,1,s.times(e),new o(1),!0);for(var c,a=n,l=new o(8);a--;)c=s.times(s),s=u.minus(c.times(l.minus(c.times(l))));return K(s,o.precision=r,o.rounding=t,!0)},L.hyperbolicSine=L.sinh=function(){var n,e,r,t,i=this,s=i.constructor;if(!i.isFinite()||i.isZero())return new s(i);if(e=s.precision,r=s.rounding,s.precision=e+Math.max(i.e,i.sd())+4,s.rounding=1,(t=i.d.length)<3)i=an(s,2,i,i,!0);else{n=(n=1.4*Math.sqrt(t))>16?16:0|n,i=an(s,2,i=i.times(1/ln(5,n)),i,!0);for(var o,u=new s(5),c=new s(16),a=new s(20);n--;)o=i.times(i),i=i.times(u.plus(o.times(c.times(o).plus(a))))}return s.precision=e,s.rounding=r,K(i,e,r,!0)},L.hyperbolicTangent=L.tanh=function(){var n,e,r=this,t=r.constructor;return r.isFinite()?r.isZero()?new t(r):(n=t.precision,e=t.rounding,t.precision=n+7,t.rounding=1,z(r.sinh(),r.cosh(),t.precision=n,t.rounding=e)):new t(r.s)},L.inverseCosine=L.acos=function(){var n=this,e=n.constructor,r=n.abs().cmp(1),t=e.precision,i=e.rounding;return-1!==r?0===r?n.isNeg()?X(e,t,i):new e(0):new e(NaN):n.isZero()?X(e,t+4,i).times(.5):(e.precision=t+6,e.rounding=1,n=new e(1).minus(n).div(n.plus(1)).sqrt().atan(),e.precision=t,e.rounding=i,n.times(2))},L.inverseHyperbolicCosine=L.acosh=function(){var n,e,r=this,t=r.constructor;return r.lte(1)?new t(r.eq(1)?0:NaN):r.isFinite()?(n=t.precision,e=t.rounding,t.precision=n+Math.max(Math.abs(r.e),r.sd())+4,t.rounding=1,R=!1,r=r.times(r).minus(1).sqrt().plus(r),R=!0,t.precision=n,t.rounding=e,r.ln()):new t(r)},L.inverseHyperbolicSine=L.asinh=function(){var n,e,r=this,t=r.constructor;return!r.isFinite()||r.isZero()?new t(r):(n=t.precision,e=t.rounding,t.precision=n+2*Math.max(Math.abs(r.e),r.sd())+6,t.rounding=1,R=!1,r=r.times(r).plus(1).sqrt().plus(r),R=!0,t.precision=n,t.rounding=e,r.ln())},L.inverseHyperbolicTangent=L.atanh=function(){var n,e,r,t,i=this,s=i.constructor;return i.isFinite()?i.e>=0?new s(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(n=s.precision,e=s.rounding,t=i.sd(),Math.max(t,n)<2*-i.e-1?K(new s(i),n,e,!0):(s.precision=r=t-i.e,i=z(i.plus(1),new s(1).minus(i),r+n,1),s.precision=n+4,s.rounding=1,i=i.ln(),s.precision=n,s.rounding=e,i.times(.5))):new s(NaN)},L.inverseSine=L.asin=function(){var n,e,r,t,i=this,s=i.constructor;return i.isZero()?new s(i):(e=i.abs().cmp(1),r=s.precision,t=s.rounding,-1!==e?0===e?((n=X(s,r+4,t).times(.5)).s=i.s,n):new s(NaN):(s.precision=r+6,s.rounding=1,i=i.div(new s(1).minus(i.times(i)).sqrt().plus(1)).atan(),s.precision=r,s.rounding=t,i.times(2)))},L.inverseTangent=L.atan=function(){var n,e,r,t,i,s,o,u,c,a=this,l=a.constructor,f=l.precision,h=l.rounding;if(a.isFinite()){if(a.isZero())return new l(a);if(a.abs().eq(1)&&f+4<=$)return(o=X(l,f+4,h).times(.25)).s=a.s,o}else{if(!a.s)return new l(NaN);if(f+4<=$)return(o=X(l,f+4,h).times(.5)).s=a.s,o}for(l.precision=u=f+10,l.rounding=1,n=r=Math.min(28,u/7+2|0);n;--n)a=a.div(a.times(a).plus(1).sqrt().plus(1));for(R=!1,e=Math.ceil(u/7),t=1,c=a.times(a),o=new l(a),i=a;-1!==n;)if(i=i.times(c),s=o.minus(i.div(t+=2)),i=i.times(c),void 0!==(o=s.plus(i.div(t+=2))).d[e])for(n=e;o.d[n]===s.d[n]&&n--;);return r&&(o=o.times(2<<r-1)),R=!0,K(o,l.precision=f,l.rounding=h,!0)},L.isFinite=function(){return!!this.d},L.isInteger=L.isInt=function(){return!!this.d&&T(this.e/7)>this.d.length-2},L.isNaN=function(){return!this.s},L.isNegative=L.isNeg=function(){return this.s<0},L.isPositive=L.isPos=function(){return this.s>0},L.isZero=function(){return!!this.d&&0===this.d[0]},L.lessThan=L.lt=function(n){return this.cmp(n)<0},L.lessThanOrEqualTo=L.lte=function(n){return this.cmp(n)<1},L.logarithm=L.log=function(n){var e,r,t,i,s,o,u,c,a=this,l=a.constructor,f=l.precision,h=l.rounding;if(null==n)n=new l(10),e=!0;else{if(r=(n=new l(n)).d,n.s<0||!r||!r[0]||n.eq(1))return new l(NaN);e=n.eq(10)}if(r=a.d,a.s<0||!r||!r[0]||a.eq(1))return new l(r&&!r[0]?-1/0:1!=a.s?NaN:r?0:1/0);if(e)if(r.length>1)s=!0;else{for(i=r[0];i%10==0;)i/=10;s=1!==i}if(R=!1,o=on(a,u=f+5),t=e?Q(l,u+10):on(n,u),B((c=z(o,t,u,1)).d,i=f,h))do{if(o=on(a,u+=10),t=e?Q(l,u+10):on(n,u),c=z(o,t,u,1),!s){+j(c.d).slice(i+1,i+15)+1==1e14&&(c=K(c,f+1,0));break}}while(B(c.d,i+=10,h));return R=!0,K(c,f,h)},L.minus=L.sub=function(n){var e,r,t,i,s,o,u,c,a,l,f,h,d=this,g=d.constructor;if(n=new g(n),!d.d||!n.d)return d.s&&n.s?d.d?n.s=-n.s:n=new g(n.d||d.s!==n.s?d:NaN):n=new g(NaN),n;if(d.s!=n.s)return n.s=-n.s,d.plus(n);if(a=d.d,h=n.d,u=g.precision,c=g.rounding,!a[0]||!h[0]){if(h[0])n.s=-n.s;else{if(!a[0])return new g(3===c?-0:0);n=new g(d)}return R?K(n,u,c):n}if(r=T(n.e/7),l=T(d.e/7),a=a.slice(),s=l-r){for((f=s<0)?(e=a,s=-s,o=h.length):(e=h,r=l,o=a.length),s>(t=Math.max(Math.ceil(u/7),o)+2)&&(s=t,e.length=1),e.reverse(),t=s;t--;)e.push(0);e.reverse()}else{for((f=(t=a.length)<(o=h.length))&&(o=t),t=0;t<o;t++)if(a[t]!=h[t]){f=a[t]<h[t];break}s=0}for(f&&(e=a,a=h,h=e,n.s=-n.s),o=a.length,t=h.length-o;t>0;--t)a[o++]=0;for(t=h.length;t>s;){if(a[--t]<h[t]){for(i=t;i&&0===a[--i];)a[i]=Z-1;--a[i],a[t]+=Z}a[t]-=h[t]}for(;0===a[--o];)a.pop();for(;0===a[0];a.shift())--r;return a[0]?(n.d=a,n.e=G(a,r),R?K(n,u,c):n):new g(3===c?-0:0)},L.modulo=L.mod=function(n){var e,r=this,t=r.constructor;return n=new t(n),!r.d||!n.s||n.d&&!n.d[0]?new t(NaN):!n.d||r.d&&!r.d[0]?K(new t(r),t.precision,t.rounding):(R=!1,9==t.modulo?(e=z(r,n.abs(),0,3,1)).s*=n.s:e=z(r,n,0,t.modulo,1),e=e.times(n),R=!0,r.minus(e))},L.naturalExponential=L.exp=function(){return sn(this)},L.naturalLogarithm=L.ln=function(){return on(this)},L.negated=L.neg=function(){var n=new this.constructor(this);return n.s=-n.s,K(n)},L.plus=L.add=function(n){var e,r,t,i,s,o,u,c,a,l,f=this,h=f.constructor;if(n=new h(n),!f.d||!n.d)return f.s&&n.s?f.d||(n=new h(n.d||f.s===n.s?f:NaN)):n=new h(NaN),n;if(f.s!=n.s)return n.s=-n.s,f.minus(n);if(a=f.d,l=n.d,u=h.precision,c=h.rounding,!a[0]||!l[0])return l[0]||(n=new h(f)),R?K(n,u,c):n;if(s=T(f.e/7),t=T(n.e/7),a=a.slice(),i=s-t){for(i<0?(r=a,i=-i,o=l.length):(r=l,t=s,o=a.length),i>(o=(s=Math.ceil(u/7))>o?s+1:o+1)&&(i=o,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((o=a.length)-(i=l.length)<0&&(i=o,r=l,l=a,a=r),e=0;i;)e=(a[--i]=a[i]+l[i]+e)/Z|0,a[i]%=Z;for(e&&(a.unshift(e),++t),o=a.length;0==a[--o];)a.pop();return n.d=a,n.e=G(a,t),R?K(n,u,c):n},L.precision=L.sd=function(n){var e,r=this;if(void 0!==n&&n!==!!n&&1!==n&&0!==n)throw Error(S+n);return r.d?(e=Y(r.d),n&&r.e+1>e&&(e=r.e+1)):e=NaN,e},L.round=function(){var n=this,e=n.constructor;return K(new e(n),n.e+1,e.rounding)},L.sine=L.sin=function(){var n,e,r=this,t=r.constructor;return r.isFinite()?r.isZero()?new t(r):(n=t.precision,e=t.rounding,t.precision=n+Math.max(r.e,r.sd())+7,t.rounding=1,r=function(n,e){var r,t=e.d.length;if(t<3)return e.isZero()?e:an(n,2,e,e);r=(r=1.4*Math.sqrt(t))>16?16:0|r,e=e.times(1/ln(5,r)),e=an(n,2,e,e);for(var i,s=new n(5),o=new n(16),u=new n(20);r--;)i=e.times(e),e=e.times(s.plus(i.times(o.times(i).minus(u))));return e}(t,fn(t,r)),t.precision=n,t.rounding=e,K(x>2?r.neg():r,n,e,!0)):new t(NaN)},L.squareRoot=L.sqrt=function(){var n,e,r,t,i,s,o=this,u=o.d,c=o.e,a=o.s,l=o.constructor;if(1!==a||!u||!u[0])return new l(!a||a<0&&(!u||u[0])?NaN:u?o:1/0);for(R=!1,0==(a=Math.sqrt(+o))||a==1/0?(((e=j(u)).length+c)%2==0&&(e+="0"),a=Math.sqrt(e),c=T((c+1)/2)-(c<0||c%2),t=new l(e=a==1/0?"5e"+c:(e=a.toExponential()).slice(0,e.indexOf("e")+1)+c)):t=new l(a.toString()),r=(c=l.precision)+3;;)if(t=(s=t).plus(z(o,s,r+2,1)).times(.5),j(s.d).slice(0,r)===(e=j(t.d)).slice(0,r)){if("9999"!=(e=e.slice(r-3,r+1))&&(i||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(K(t,c+1,1),n=!t.times(t).eq(o));break}if(!i&&(K(s,c+1,0),s.times(s).eq(o))){t=s;break}r+=4,i=1}return R=!0,K(t,c,l.rounding,n)},L.tangent=L.tan=function(){var n,e,r=this,t=r.constructor;return r.isFinite()?r.isZero()?new t(r):(n=t.precision,e=t.rounding,t.precision=n+10,t.rounding=1,(r=r.sin()).s=1,r=z(r,new t(1).minus(r.times(r)).sqrt(),n+10,0),t.precision=n,t.rounding=e,K(2==x||4==x?r.neg():r,n,e,!0)):new t(NaN)},L.times=L.mul=function(n){var e,r,t,i,s,o,u,c,a,l=this,f=l.constructor,h=l.d,d=(n=new f(n)).d;if(n.s*=l.s,!(h&&h[0]&&d&&d[0]))return new f(!n.s||h&&!h[0]&&!d||d&&!d[0]&&!h?NaN:h&&d?0*n.s:n.s/0);for(r=T(l.e/7)+T(n.e/7),(c=h.length)<(a=d.length)&&(s=h,h=d,d=s,o=c,c=a,a=o),s=[],t=o=c+a;t--;)s.push(0);for(t=a;--t>=0;){for(e=0,i=c+t;i>t;)u=s[i]+d[t]*h[i-t-1]+e,s[i--]=u%Z|0,e=u/Z|0;s[i]=(s[i]+e)%Z|0}for(;!s[--o];)s.pop();return e?++r:s.shift(),n.d=s,n.e=G(s,r),R?K(n,f.precision,f.rounding):n},L.toBinary=function(n,e){return hn(this,2,n,e)},L.toDecimalPlaces=L.toDP=function(n,e){var r=this,t=r.constructor;return r=new t(r),void 0===n?r:(H(n,0,E),void 0===e?e=t.rounding:H(e,0,8),K(r,n+r.e+1,e))},L.toExponential=function(n,e){var r,t=this,i=t.constructor;return void 0===n?r=W(t,!0):(H(n,0,E),void 0===e?e=i.rounding:H(e,0,8),r=W(t=K(new i(t),n+1,e),!0,n+1)),t.isNeg()&&!t.isZero()?"-"+r:r},L.toFixed=function(n,e){var r,t,i=this,s=i.constructor;return void 0===n?r=W(i):(H(n,0,E),void 0===e?e=s.rounding:H(e,0,8),r=W(t=K(new s(i),n+i.e+1,e),!1,n+t.e+1)),i.isNeg()&&!i.isZero()?"-"+r:r},L.toFraction=function(n){var e,r,t,i,s,o,u,c,a,l,f,h,d=this,g=d.d,p=d.constructor;if(!g)return new p(d);if(a=r=new p(1),t=c=new p(0),o=(s=(e=new p(t)).e=Y(g)-d.e-1)%7,e.d[0]=D(10,o<0?7+o:o),null==n)n=s>0?e:a;else{if(!(u=new p(n)).isInt()||u.lt(a))throw Error(S+u);n=u.gt(e)?s>0?e:a:u}for(R=!1,u=new p(j(g)),l=p.precision,p.precision=s=7*g.length*2;f=z(u,e,0,1,1),1!=(i=r.plus(f.times(t))).cmp(n);)r=t,t=i,i=a,a=c.plus(f.times(i)),c=i,i=e,e=u.minus(f.times(i)),u=i;return i=z(n.minus(r),t,0,1,1),c=c.plus(i.times(a)),r=r.plus(i.times(t)),c.s=a.s=d.s,h=z(a,t,s,1).minus(d).abs().cmp(z(c,r,s,1).minus(d).abs())<1?[a,t]:[c,r],p.precision=l,R=!0,h},L.toHexadecimal=L.toHex=function(n,e){return hn(this,16,n,e)},L.toNearest=function(n,e){var r=this,t=r.constructor;if(r=new t(r),null==n){if(!r.d)return r;n=new t(1),e=t.rounding}else{if(n=new t(n),void 0===e?e=t.rounding:H(e,0,8),!r.d)return n.s?r:n;if(!n.d)return n.s&&(n.s=r.s),n}return n.d[0]?(R=!1,r=z(r,n,0,e,1).times(n),R=!0,K(r)):(n.s=r.s,r=n),r},L.toNumber=function(){return+this},L.toOctal=function(n,e){return hn(this,8,n,e)},L.toPower=L.pow=function(n){var e,r,t,i,s,o,u=this,c=u.constructor,a=+(n=new c(n));if(!(u.d&&n.d&&u.d[0]&&n.d[0]))return new c(D(+u,a));if((u=new c(u)).eq(1))return u;if(t=c.precision,s=c.rounding,n.eq(1))return K(u,t,s);if((e=T(n.e/7))>=n.d.length-1&&(r=a<0?-a:a)<=9007199254740991)return i=en(c,u,r,t),n.s<0?new c(1).div(i):K(i,t,s);if((o=u.s)<0){if(e<n.d.length-1)return new c(NaN);if(1&n.d[e]||(o=1),0==u.e&&1==u.d[0]&&1==u.d.length)return u.s=o,u}return(e=0!=(r=D(+u,a))&&isFinite(r)?new c(r+"").e:T(a*(Math.log("0."+j(u.d))/Math.LN10+u.e+1)))>c.maxE+1||e<c.minE-1?new c(e>0?o/0:0):(R=!1,c.rounding=u.s=1,r=Math.min(12,(e+"").length),(i=sn(n.times(on(u,t+r)),t)).d&&B((i=K(i,t+5,1)).d,t,s)&&(e=t+10,+j((i=K(sn(n.times(on(u,e+r)),e),e+5,1)).d).slice(t+1,t+15)+1==1e14&&(i=K(i,t+1,0))),i.s=o,R=!0,c.rounding=s,K(i,t,s))},L.toPrecision=function(n,e){var r,t=this,i=t.constructor;return void 0===n?r=W(t,t.e<=i.toExpNeg||t.e>=i.toExpPos):(H(n,1,E),void 0===e?e=i.rounding:H(e,0,8),r=W(t=K(new i(t),n,e),n<=t.e||t.e<=i.toExpNeg,n)),t.isNeg()&&!t.isZero()?"-"+r:r},L.toSignificantDigits=L.toSD=function(n,e){var r=this.constructor;return void 0===n?(n=r.precision,e=r.rounding):(H(n,1,E),void 0===e?e=r.rounding:H(e,0,8)),K(new r(this),n,e)},L.toString=function(){var n=this,e=n.constructor,r=W(n,n.e<=e.toExpNeg||n.e>=e.toExpPos);return n.isNeg()&&!n.isZero()?"-"+r:r},L.truncated=L.trunc=function(){return K(new this.constructor(this),this.e+1,1)},L.valueOf=L.toJSON=function(){var n=this,e=n.constructor,r=W(n,n.e<=e.toExpNeg||n.e>=e.toExpPos);return n.isNeg()?"-"+r:r};var z=function(){function n(n,e,r){var t,i=0,s=n.length;for(n=n.slice();s--;)t=n[s]*e+i,n[s]=t%r|0,i=t/r|0;return i&&n.unshift(i),n}function e(n,e,r,t){var i,s;if(r!=t)s=r>t?1:-1;else for(i=s=0;i<r;i++)if(n[i]!=e[i]){s=n[i]>e[i]?1:-1;break}return s}function r(n,e,r,t){for(var i=0;r--;)n[r]-=i,i=n[r]<e[r]?1:0,n[r]=i*t+n[r]-e[r];for(;!n[0]&&n.length>1;)n.shift()}return function(t,i,s,o,u,c){var a,l,f,h,d,g,p,m,w,v,x,b,E,y,P,q,C,R,M,S,O=t.constructor,A=t.s==i.s?1:-1,_=t.d,D=i.d;if(!(_&&_[0]&&D&&D[0]))return new O(t.s&&i.s&&(_?!D||_[0]!=D[0]:D)?_&&0==_[0]||!D?0*A:A/0:NaN);for(c?(d=1,l=t.e-i.e):(c=Z,d=7,l=T(t.e/d)-T(i.e/d)),M=D.length,C=_.length,v=(w=new O(A)).d=[],f=0;D[f]==(_[f]||0);f++);if(D[f]>(_[f]||0)&&l--,null==s?(y=s=O.precision,o=O.rounding):y=u?s+(t.e-i.e)+1:s,y<0)v.push(1),g=!0;else{if(y=y/d+2|0,f=0,1==M){for(h=0,D=D[0],y++;(f<C||h)&&y--;f++)P=h*c+(_[f]||0),v[f]=P/D|0,h=P%D|0;g=h||f<C}else{for((h=c/(D[0]+1)|0)>1&&(D=n(D,h,c),_=n(_,h,c),M=D.length,C=_.length),q=M,b=(x=_.slice(0,M)).length;b<M;)x[b++]=0;(S=D.slice()).unshift(0),R=D[0],D[1]>=c/2&&++R;do{h=0,(a=e(D,x,M,b))<0?(E=x[0],M!=b&&(E=E*c+(x[1]||0)),(h=E/R|0)>1?(h>=c&&(h=c-1),1==(a=e(p=n(D,h,c),x,m=p.length,b=x.length))&&(h--,r(p,M<m?S:D,m,c))):(0==h&&(a=h=1),p=D.slice()),(m=p.length)<b&&p.unshift(0),r(x,p,b,c),-1==a&&(a=e(D,x,M,b=x.length))<1&&(h++,r(x,M<b?S:D,b,c)),b=x.length):0===a&&(h++,x=[0]),v[f++]=h,a&&x[0]?x[b++]=_[q]||0:(x=[_[q]],b=1)}while((q++<C||void 0!==x[0])&&y--);g=void 0!==x[0]}v[0]||v.shift()}if(1==d)w.e=l,N=g;else{for(f=1,h=v[0];h>=10;h/=10)f++;w.e=f+l*d-1,K(w,u?s+w.e+1:s,o,g)}return w}}();function K(n,e,r,t){var i,s,o,u,c,a,l,f,h,d=n.constructor;n:if(null!=e){if(!(f=n.d))return n;for(i=1,u=f[0];u>=10;u/=10)i++;if((s=e-i)<0)s+=7,o=e,c=(l=f[h=0])/D(10,i-o-1)%10|0;else if((h=Math.ceil((s+1)/7))>=(u=f.length)){if(!t)break n;for(;u++<=h;)f.push(0);l=c=0,i=1,o=(s%=7)-7+1}else{for(l=u=f[h],i=1;u>=10;u/=10)i++;c=(o=(s%=7)-7+i)<0?0:l/D(10,i-o-1)%10|0}if(t=t||e<0||void 0!==f[h+1]||(o<0?l:l%D(10,i-o-1)),a=r<4?(c||t)&&(0==r||r==(n.s<0?3:2)):c>5||5==c&&(4==r||t||6==r&&(s>0?o>0?l/D(10,i-o):0:f[h-1])%10&1||r==(n.s<0?8:7)),e<1||!f[0])return f.length=0,a?(e-=n.e+1,f[0]=D(10,(7-e%7)%7),n.e=-e||0):f[0]=n.e=0,n;if(0==s?(f.length=h,u=1,h--):(f.length=h+1,u=D(10,7-s),f[h]=o>0?(l/D(10,i-o)%D(10,o)|0)*u:0),a)for(;;){if(0==h){for(s=1,o=f[0];o>=10;o/=10)s++;for(o=f[0]+=u,u=1;o>=10;o/=10)u++;s!=u&&(n.e++,f[0]==Z&&(f[0]=1));break}if(f[h]+=u,f[h]!=Z)break;f[h--]=0,u=1}for(s=f.length;0===f[--s];)f.pop()}return R&&(n.e>d.maxE?(n.d=null,n.e=NaN):n.e<d.minE&&(n.e=0,n.d=[0])),n}function W(n,e,r){if(!n.isFinite())return un(n);var t,i=n.e,s=j(n.d),o=s.length;return e?(r&&(t=r-o)>0?s=s.charAt(0)+"."+s.slice(1)+nn(t):o>1&&(s=s.charAt(0)+"."+s.slice(1)),s=s+(n.e<0?"e":"e+")+n.e):i<0?(s="0."+nn(-i-1)+s,r&&(t=r-o)>0&&(s+=nn(t))):i>=o?(s+=nn(i+1-o),r&&(t=r-i-1)>0&&(s=s+"."+nn(t))):((t=i+1)<o&&(s=s.slice(0,t)+"."+s.slice(t)),r&&(t=r-o)>0&&(i+1===o&&(s+="."),s+=nn(t))),s}function G(n,e){var r=n[0];for(e*=7;r>=10;r/=10)e++;return e}function Q(n,e,r){if(e>U)throw R=!0,r&&(n.precision=r),Error(O);return K(new n(P),e,1,!0)}function X(n,e,r){if(e>$)throw Error(O);return K(new n(q),e,r,!0)}function Y(n){var e=n.length-1,r=7*e+1;if(e=n[e]){for(;e%10==0;e/=10)r--;for(e=n[0];e>=10;e/=10)r++}return r}function nn(n){for(var e="";n--;)e+="0";return e}function en(n,e,r,t){var i,s=new n(1),o=Math.ceil(t/7+4);for(R=!1;;){if(r%2&&dn((s=s.times(e)).d,o)&&(i=!0),0===(r=T(r/2))){r=s.d.length-1,i&&0===s.d[r]&&++s.d[r];break}dn((e=e.times(e)).d,o)}return R=!0,s}function rn(n){return 1&n.d[n.d.length-1]}function tn(n,e,r){for(var t,i,s=new n(e[0]),o=0;++o<e.length;){if(!(i=new n(e[o])).s){s=i;break}((t=s.cmp(i))===r||0===t&&s.s===r)&&(s=i)}return s}function sn(n,e){var r,t,i,s,o,u,c,a=0,l=0,f=0,h=n.constructor,d=h.rounding,g=h.precision;if(!n.d||!n.d[0]||n.e>17)return new h(n.d?n.d[0]?n.s<0?0:1/0:1:n.s?n.s<0?0:n:NaN);for(null==e?(R=!1,c=g):c=e,u=new h(.03125);n.e>-2;)n=n.times(u),f+=5;for(c+=t=Math.log(D(2,f))/Math.LN10*2+5|0,r=s=o=new h(1),h.precision=c;;){if(s=K(s.times(n),c,1),r=r.times(++l),j((u=o.plus(z(s,r,c,1))).d).slice(0,c)===j(o.d).slice(0,c)){for(i=f;i--;)o=K(o.times(o),c,1);if(null!=e)return h.precision=g,o;if(!(a<3&&B(o.d,c-t,d,a)))return K(o,h.precision=g,d,R=!0);h.precision=c+=10,r=s=u=new h(1),l=0,a++}o=u}}function on(n,e){var r,t,i,s,o,u,c,a,l,f,h,d=1,g=n,p=g.d,m=g.constructor,w=m.rounding,v=m.precision;if(g.s<0||!p||!p[0]||!g.e&&1==p[0]&&1==p.length)return new m(p&&!p[0]?-1/0:1!=g.s?NaN:p?0:g);if(null==e?(R=!1,l=v):l=e,m.precision=l+=10,t=(r=j(p)).charAt(0),!(Math.abs(s=g.e)<15e14))return a=Q(m,l+2,v).times(s+""),g=on(new m(t+"."+r.slice(1)),l-10).plus(a),m.precision=v,null==e?K(g,v,w,R=!0):g;for(;t<7&&1!=t||1==t&&r.charAt(1)>3;)t=(r=j((g=g.times(n)).d)).charAt(0),d++;for(s=g.e,t>1?(g=new m("0."+r),s++):g=new m(t+"."+r.slice(1)),f=g,c=o=g=z(g.minus(1),g.plus(1),l,1),h=K(g.times(g),l,1),i=3;;){if(o=K(o.times(h),l,1),j((a=c.plus(z(o,new m(i),l,1))).d).slice(0,l)===j(c.d).slice(0,l)){if(c=c.times(2),0!==s&&(c=c.plus(Q(m,l+2,v).times(s+""))),c=z(c,new m(d),l,1),null!=e)return m.precision=v,c;if(!B(c.d,l-10,w,u))return K(c,m.precision=v,w,R=!0);m.precision=l+=10,a=o=g=z(f.minus(1),f.plus(1),l,1),h=K(g.times(g),l,1),i=u=1}c=a,i+=2}}function un(n){return String(n.s*n.s/0)}function cn(n,e){var r,t,i;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(t=e.search(/e/i))>0?(r<0&&(r=t),r+=+e.slice(t+1),e=e.substring(0,t)):r<0&&(r=e.length),t=0;48===e.charCodeAt(t);t++);for(i=e.length;48===e.charCodeAt(i-1);--i);if(e=e.slice(t,i)){if(i-=t,n.e=r=r-t-1,n.d=[],t=(r+1)%7,r<0&&(t+=7),t<i){for(t&&n.d.push(+e.slice(0,t)),i-=7;t<i;)n.d.push(+e.slice(t,t+=7));t=7-(e=e.slice(t)).length}else t-=i;for(;t--;)e+="0";n.d.push(+e),R&&(n.e>n.constructor.maxE?(n.d=null,n.e=NaN):n.e<n.constructor.minE&&(n.e=0,n.d=[0]))}else n.e=0,n.d=[0];return n}function an(n,e,r,t,i){var s,o,u,c,a=n.precision,l=Math.ceil(a/7);for(R=!1,c=r.times(r),u=new n(t);;){if(o=z(u.times(c),new n(e++*e++),a,1),u=i?t.plus(o):t.minus(o),t=z(o.times(c),new n(e++*e++),a,1),void 0!==(o=u.plus(t)).d[l]){for(s=l;o.d[s]===u.d[s]&&s--;);if(-1==s)break}s=u,u=t,t=o,o=s}return R=!0,o.d.length=l+1,o}function ln(n,e){for(var r=n;--e;)r*=n;return r}function fn(n,e){var r,t=e.s<0,i=X(n,n.precision,1),s=i.times(.5);if((e=e.abs()).lte(s))return x=t?4:1,e;if((r=e.divToInt(i)).isZero())x=t?3:2;else{if((e=e.minus(r.times(i))).lte(s))return x=rn(r)?t?2:3:t?4:1,e;x=rn(r)?t?1:4:t?3:2}return e.minus(i).abs()}function hn(n,e,r,t){var i,s,o,u,c,a,l,f,h,d=n.constructor,g=void 0!==r;if(g?(H(r,1,E),void 0===t?t=d.rounding:H(t,0,8)):(r=d.precision,t=d.rounding),n.isFinite()){for(g?(i=2,16==e?r=4*r-3:8==e&&(r=3*r-2)):i=e,(o=(l=W(n)).indexOf("."))>=0&&(l=l.replace(".",""),(h=new d(1)).e=l.length-o,h.d=J(W(h),10,i),h.e=h.d.length),s=c=(f=J(l,10,i)).length;0==f[--c];)f.pop();if(f[0]){if(o<0?s--:((n=new d(n)).d=f,n.e=s,f=(n=z(n,h,r,t,0,i)).d,s=n.e,a=N),o=f[r],u=i/2,a=a||void 0!==f[r+1],a=t<4?(void 0!==o||a)&&(0===t||t===(n.s<0?3:2)):o>u||o===u&&(4===t||a||6===t&&1&f[r-1]||t===(n.s<0?8:7)),f.length=r,a)for(;++f[--r]>i-1;)f[r]=0,r||(++s,f.unshift(1));for(c=f.length;!f[c-1];--c);for(o=0,l="";o<c;o++)l+=y.charAt(f[o]);if(g){if(c>1)if(16==e||8==e){for(o=16==e?4:3,--c;c%o;c++)l+="0";for(c=(f=J(l,i,e)).length;!f[c-1];--c);for(o=1,l="1.";o<c;o++)l+=y.charAt(f[o])}else l=l.charAt(0)+"."+l.slice(1);l=l+(s<0?"p":"p+")+s}else if(s<0){for(;++s;)l="0"+l;l="0."+l}else if(++s>c)for(s-=c;s--;)l+="0";else s<c&&(l=l.slice(0,s)+"."+l.slice(s))}else l=g?"0p+0":"0";l=(16==e?"0x":2==e?"0b":8==e?"0o":"")+l}else l=un(n);return n.s<0?"-"+l:l}function dn(n,e){if(n.length>e)return n.length=e,!0}function gn(n){return new this(n).abs()}function pn(n){return new this(n).acos()}function mn(n){return new this(n).acosh()}function wn(n,e){return new this(n).plus(e)}function vn(n){return new this(n).asin()}function Nn(n){return new this(n).asinh()}function xn(n){return new this(n).atan()}function bn(n){return new this(n).atanh()}function En(n,e){n=new this(n),e=new this(e);var r,t=this.precision,i=this.rounding,s=t+4;return n.s&&e.s?n.d||e.d?!e.d||n.isZero()?(r=e.s<0?X(this,t,i):new this(0)).s=n.s:!n.d||e.isZero()?(r=X(this,s,1).times(.5)).s=n.s:e.s<0?(this.precision=s,this.rounding=1,r=this.atan(z(n,e,s,1)),e=X(this,s,1),this.precision=t,this.rounding=i,r=n.s<0?r.minus(e):r.plus(e)):r=this.atan(z(n,e,s,1)):(r=X(this,s,1).times(e.s>0?.25:.75)).s=n.s:r=new this(NaN),r}function yn(n){return new this(n).cbrt()}function Pn(n){return K(n=new this(n),n.e+1,2)}function qn(n,e,r){return new this(n).clamp(e,r)}function Cn(n){if(!n||"object"!=typeof n)throw Error(M+"Object expected");var e,r,t,i=!0===n.defaults,s=["precision",1,E,"rounding",0,8,"toExpNeg",-b,0,"toExpPos",0,b,"maxE",0,b,"minE",-b,0,"modulo",0,9];for(e=0;e<s.length;e+=3)if(r=s[e],i&&(this[r]=C[r]),void 0!==(t=n[r])){if(!(T(t)===t&&t>=s[e+1]&&t<=s[e+2]))throw Error(S+r+": "+t);this[r]=t}if(r="crypto",i&&(this[r]=C[r]),void 0!==(t=n[r])){if(!0!==t&&!1!==t&&0!==t&&1!==t)throw Error(S+r+": "+t);if(t){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(A);this[r]=!0}else this[r]=!1}return this}function Rn(n){return new this(n).cos()}function Mn(n){return new this(n).cosh()}function Sn(n,e){return new this(n).div(e)}function On(n){return new this(n).exp()}function An(n){return K(n=new this(n),n.e+1,3)}function _n(){var n,e,r=new this(0);for(R=!1,n=0;n<arguments.length;)if((e=new this(arguments[n++])).d)r.d&&(r=r.plus(e.times(e)));else{if(e.s)return R=!0,new this(1/0);r=e}return R=!0,r.sqrt()}function Tn(n){return n instanceof ne||n&&n.toStringTag===_||!1}function Dn(n){return new this(n).ln()}function Vn(n,e){return new this(n).log(e)}function In(n){return new this(n).log(2)}function Fn(n){return new this(n).log(10)}function kn(){return tn(this,arguments,-1)}function Zn(){return tn(this,arguments,1)}function Un(n,e){return new this(n).mod(e)}function $n(n,e){return new this(n).mul(e)}function Ln(n,e){return new this(n).pow(e)}function jn(n){var e,r,t,i,s=0,o=new this(1),u=[];if(void 0===n?n=this.precision:H(n,1,E),t=Math.ceil(n/7),this.crypto)if(crypto.getRandomValues)for(e=crypto.getRandomValues(new Uint32Array(t));s<t;)(i=e[s])>=429e7?e[s]=crypto.getRandomValues(new Uint32Array(1))[0]:u[s++]=i%1e7;else{if(!crypto.randomBytes)throw Error(A);for(e=crypto.randomBytes(t*=4);s<t;)(i=e[s]+(e[s+1]<<8)+(e[s+2]<<16)+((127&e[s+3])<<24))>=214e7?crypto.randomBytes(4).copy(e,s):(u.push(i%1e7),s+=4);s=t/4}else for(;s<t;)u[s++]=1e7*Math.random()|0;for(n%=7,(t=u[--s])&&n&&(i=D(10,7-n),u[s]=(t/i|0)*i);0===u[s];s--)u.pop();if(s<0)r=0,u=[0];else{for(r=-1;0===u[0];r-=7)u.shift();for(t=1,i=u[0];i>=10;i/=10)t++;t<7&&(r-=7-t)}return o.e=r,o.d=u,o}function Hn(n){return K(n=new this(n),n.e+1,this.rounding)}function Bn(n){return(n=new this(n)).d?n.d[0]?n.s:0*n.s:n.s||NaN}function Jn(n){return new this(n).sin()}function zn(n){return new this(n).sinh()}function Kn(n){return new this(n).sqrt()}function Wn(n,e){return new this(n).sub(e)}function Gn(){var n=0,e=arguments,r=new this(e[n]);for(R=!1;r.s&&++n<e.length;)r=r.plus(e[n]);return R=!0,K(r,this.precision,this.rounding)}function Qn(n){return new this(n).tan()}function Xn(n){return new this(n).tanh()}function Yn(n){return K(n=new this(n),n.e+1,1)}L[Symbol.for("nodejs.util.inspect.custom")]=L.toString,L[Symbol.toStringTag]="Decimal";var ne=L.constructor=function n(e){var r,t,i;function s(n){var e,r,t,i=this;if(!(i instanceof s))return new s(n);if(i.constructor=s,Tn(n))return i.s=n.s,void(R?!n.d||n.e>s.maxE?(i.e=NaN,i.d=null):n.e<s.minE?(i.e=0,i.d=[0]):(i.e=n.e,i.d=n.d.slice()):(i.e=n.e,i.d=n.d?n.d.slice():n.d));if("number"===(t=typeof n)){if(0===n)return i.s=1/n<0?-1:1,i.e=0,void(i.d=[0]);if(n<0?(n=-n,i.s=-1):i.s=1,n===~~n&&n<1e7){for(e=0,r=n;r>=10;r/=10)e++;return void(R?e>s.maxE?(i.e=NaN,i.d=null):e<s.minE?(i.e=0,i.d=[0]):(i.e=e,i.d=[n]):(i.e=e,i.d=[n]))}return 0*n!=0?(n||(i.s=NaN),i.e=NaN,void(i.d=null)):cn(i,n.toString())}if("string"===t)return 45===(r=n.charCodeAt(0))?(n=n.slice(1),i.s=-1):(43===r&&(n=n.slice(1)),i.s=1),k.test(n)?cn(i,n):function(n,e){var r,t,i,s,o,u,c,a,l;if(e.indexOf("_")>-1){if(e=e.replace(/(\d)_(?=\d)/g,"$1"),k.test(e))return cn(n,e)}else if("Infinity"===e||"NaN"===e)return+e||(n.s=NaN),n.e=NaN,n.d=null,n;if(I.test(e))r=16,e=e.toLowerCase();else if(V.test(e))r=2;else{if(!F.test(e))throw Error(S+e);r=8}for((s=e.search(/p/i))>0?(c=+e.slice(s+1),e=e.substring(2,s)):e=e.slice(2),o=(s=e.indexOf("."))>=0,t=n.constructor,o&&(s=(u=(e=e.replace(".","")).length)-s,i=en(t,new t(r),s,2*s)),s=l=(a=J(e,r,Z)).length-1;0===a[s];--s)a.pop();return s<0?new t(0*n.s):(n.e=G(a,l),n.d=a,R=!1,o&&(n=z(n,i,4*u)),c&&(n=n.times(Math.abs(c)<54?D(2,c):ne.pow(2,c))),R=!0,n)}(i,n);if("bigint"===t)return n<0?(n=-n,i.s=-1):i.s=1,cn(i,n.toString());throw Error(S+n)}if(s.prototype=L,s.ROUND_UP=0,s.ROUND_DOWN=1,s.ROUND_CEIL=2,s.ROUND_FLOOR=3,s.ROUND_HALF_UP=4,s.ROUND_HALF_DOWN=5,s.ROUND_HALF_EVEN=6,s.ROUND_HALF_CEIL=7,s.ROUND_HALF_FLOOR=8,s.EUCLID=9,s.config=s.set=Cn,s.clone=n,s.isDecimal=Tn,s.abs=gn,s.acos=pn,s.acosh=mn,s.add=wn,s.asin=vn,s.asinh=Nn,s.atan=xn,s.atanh=bn,s.atan2=En,s.cbrt=yn,s.ceil=Pn,s.clamp=qn,s.cos=Rn,s.cosh=Mn,s.div=Sn,s.exp=On,s.floor=An,s.hypot=_n,s.ln=Dn,s.log=Vn,s.log10=Fn,s.log2=In,s.max=kn,s.min=Zn,s.mod=Un,s.mul=$n,s.pow=Ln,s.random=jn,s.round=Hn,s.sign=Bn,s.sin=Jn,s.sinh=zn,s.sqrt=Kn,s.sub=Wn,s.sum=Gn,s.tan=Qn,s.tanh=Xn,s.trunc=Yn,void 0===e&&(e={}),e&&!0!==e.defaults)for(i=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],r=0;r<i.length;)e.hasOwnProperty(t=i[r++])||(e[t]=this[t]);return s.config(e),s}(C);P=new ne(P),q=new ne(q);var ee=class n{constructor(e,r){if(e.length-1!==r.length){if(0===e.length)throw new TypeError("Expected at least 1 string");throw new TypeError(`Expected ${e.length} strings to have ${e.length-1} values`)}const t=r.reduce((e,r)=>e+(r instanceof n?r.values.length:1),0);this.values=new Array(t),this.strings=new Array(t+1),this.strings[0]=e[0];let i=0,s=0;for(;i<r.length;){const t=r[i++],o=e[i];if(t instanceof n){this.strings[s]+=t.strings[0];let n=0;for(;n<t.values.length;)this.values[s++]=t.values[n++],this.strings[s]=t.strings[n];this.strings[s]+=o}else this.values[s++]=t,this.strings[s]=o}}get sql(){const n=this.strings.length;let e=1,r=this.strings[0];for(;e<n;)r+=`?${this.strings[e++]}`;return r}get statement(){const n=this.strings.length;let e=1,r=this.strings[0];for(;e<n;)r+=`:${e}${this.strings[e++]}`;return r}get text(){const n=this.strings.length;let e=1,r=this.strings[0];for(;e<n;)r+=`$${e}${this.strings[e++]}`;return r}inspect(){return{sql:this.sql,statement:this.statement,text:this.text,values:this.values}}};function re(n){return new ee([n],[])}var te=re("");
|
|
2
2
|
/*! Bundled license information:
|
|
3
3
|
|
|
4
4
|
decimal.js/decimal.mjs:
|
|
@@ -10,5 +10,5 @@ decimal.js/decimal.mjs:
|
|
|
10
10
|
* MIT Licence
|
|
11
11
|
*)
|
|
12
12
|
*/
|
|
13
|
-
exports.AnyNullClass=g,exports.DbNullClass=h,exports.Decimal=
|
|
13
|
+
exports.AnyNull=v,exports.AnyNullClass=g,exports.DbNull=m,exports.DbNullClass=h,exports.Decimal=ne,exports.JsonNull=w,exports.JsonNullClass=d,exports.NullTypes=p,exports.ObjectEnumValue=a,exports.PrismaClientInitializationError=e,exports.PrismaClientKnownRequestError=r,exports.PrismaClientRustError=t,exports.PrismaClientRustPanicError=i,exports.PrismaClientUnknownRequestError=s,exports.PrismaClientValidationError=o,exports.Sql=ee,exports.empty=te,exports.hasBatchIndex=function(n){return"number"==typeof n.batchRequestIdx},exports.isAnyNull=function(n){return n===v},exports.isDbNull=function(n){return n===m},exports.isJsonNull=function(n){return n===w},exports.join=function(n,e=",",r="",t=""){if(0===n.length)throw new TypeError("Expected `join([])` to be called with an array of multiple elements, but got an empty array");return new ee([r,...Array(n.length-1).fill(e),t],n)},exports.raw=re,exports.sql=function(n,...e){return new ee(n,e)};
|
|
14
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{getPrismaClient as e}from"../../../node_modules/@prisma/client/runtime/client.js";const r={previewFeatures:[],clientVersion:"7.1.0",engineVersion:"ab635e6b9d606fa5c8fb8b1a7f909c3c3c1c98ba",activeProvider:"postgresql",inlineSchema:'generator client {\n provider = "prisma-client"\n output = "../src/generated/prisma" // relative to schema.prisma\n engineType = "client"\n}\n\ndatasource db {\n provider = "postgresql"\n}\n',runtimeDataModel:{models:{},enums:{},types:{}}};function n(){return e(r)}r.runtimeDataModel=JSON.parse('{"models":{},"enums":{},"types":{}}'),r.compilerWasm={getRuntime:async()=>await import("../../../node_modules/@prisma/client/runtime/query_compiler_bg.postgresql.js"),getQueryCompilerWasmModule:async()=>{const{wasm:e}=await import("../../../node_modules/@prisma/client/runtime/query_compiler_bg.postgresql.wasm-base64.js");return await async function(e){const{Buffer:r}=await import("node:buffer"),n=r.from(e,"base64");return new WebAssembly.Module(n)}(e)}};export{n as getPrismaClientClass};
|
|
2
|
+
//# sourceMappingURL=class.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{makeStrictEnum as e,Extensions as
|
|
1
|
+
import{makeStrictEnum as e,Extensions as a}from"../../../node_modules/@prisma/client/runtime/client.js";import{PrismaClientKnownRequestError as i,PrismaClientUnknownRequestError as n,PrismaClientRustPanicError as l,PrismaClientInitializationError as s,PrismaClientValidationError as t,sql as r,empty as o,join as m,raw as d,Sql as u,Decimal as c,NullTypes as b,DbNull as R,JsonNull as N,AnyNull as p}from"../../../node_modules/@prisma/client-runtime-utils/dist/index.js";const E=i,C=n,f=l,x=s,P=t,y=r,q=o,D=m,S=d,j=u,w=c,z=a.getExtensionContext,A={client:"7.1.0",engine:"ab635e6b9d606fa5c8fb8b1a7f909c3c3c1c98ba"},J={DbNull:b.DbNull,JsonNull:b.JsonNull,AnyNull:b.AnyNull},U=R,g=N,k=p,_={},I=e({ReadUncommitted:"ReadUncommitted",ReadCommitted:"ReadCommitted",RepeatableRead:"RepeatableRead",Serializable:"Serializable"}),K=a.defineExtension;export{k as AnyNull,U as DbNull,w as Decimal,g as JsonNull,_ as ModelName,J as NullTypes,x as PrismaClientInitializationError,E as PrismaClientKnownRequestError,f as PrismaClientRustPanicError,C as PrismaClientUnknownRequestError,P as PrismaClientValidationError,j as Sql,I as TransactionIsolationLevel,K as defineExtension,q as empty,z as getExtensionContext,D as join,A as prismaVersion,S as raw,y as sql};
|
|
2
2
|
//# sourceMappingURL=prismaNamespace.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Decimal as l,NullTypes as e,DbNull as a,JsonNull as t,AnyNull as i}from"../../../node_modules/@prisma/client-runtime-utils/dist/index.js";const s=l,d={DbNull:e.DbNull,JsonNull:e.JsonNull,AnyNull:e.AnyNull},m=a,n=t,o=i,u={},N={ReadUncommitted:"ReadUncommitted",ReadCommitted:"ReadCommitted",RepeatableRead:"RepeatableRead",Serializable:"Serializable"};export{o as AnyNull,m as DbNull,s as Decimal,n as JsonNull,u as ModelName,d as NullTypes,N as TransactionIsolationLevel};
|
|
2
|
+
//# sourceMappingURL=prismaNamespaceBrowser.js.map
|