prisma 6.16.0-integration-feat-orm-1375-web-client-ts.3 → 6.16.0-integration-feat-orm-1074-package-dev-export.2

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.
Files changed (35) hide show
  1. package/build/index.js +745 -733
  2. package/package.json +14 -14
  3. package/prisma-client/extension.d.ts +1 -0
  4. package/prisma-client/extension.js +1 -0
  5. package/prisma-client/generator-build/index.js +10 -3
  6. package/prisma-client/package.json +7 -1
  7. package/prisma-client/runtime/binary.js +105 -114
  8. package/prisma-client/runtime/binary.js.map +4 -4
  9. package/prisma-client/runtime/binary.mjs +105 -114
  10. package/prisma-client/runtime/binary.mjs.map +4 -4
  11. package/prisma-client/runtime/client.js +38 -47
  12. package/prisma-client/runtime/client.js.map +4 -4
  13. package/prisma-client/runtime/client.mjs +38 -47
  14. package/prisma-client/runtime/client.mjs.map +4 -4
  15. package/prisma-client/runtime/edge-esm.js +18 -18
  16. package/prisma-client/runtime/edge-esm.js.map +4 -4
  17. package/prisma-client/runtime/edge.js +18 -18
  18. package/prisma-client/runtime/edge.js.map +4 -4
  19. package/prisma-client/runtime/index-browser.js +1 -12
  20. package/prisma-client/runtime/index-browser.js.map +4 -4
  21. package/prisma-client/runtime/index-browser.mjs +1 -12
  22. package/prisma-client/runtime/index-browser.mjs.map +4 -4
  23. package/prisma-client/runtime/library.js +56 -67
  24. package/prisma-client/runtime/library.js.map +4 -4
  25. package/prisma-client/runtime/library.mjs +56 -67
  26. package/prisma-client/runtime/library.mjs.map +4 -4
  27. package/prisma-client/runtime/react-native.js +31 -31
  28. package/prisma-client/runtime/react-native.js.map +4 -4
  29. package/prisma-client/runtime/utilities.d.mts +414 -0
  30. package/prisma-client/runtime/utilities.d.ts +414 -0
  31. package/prisma-client/runtime/utilities.js +13 -0
  32. package/prisma-client/runtime/utilities.js.map +7 -0
  33. package/prisma-client/runtime/utilities.mjs +13 -0
  34. package/prisma-client/runtime/utilities.mjs.map +7 -0
  35. package/prisma-client/scripts/default-index.js +1 -1
@@ -0,0 +1,13 @@
1
+ function y(e,r){Object.defineProperty(e,"name",{value:r,configurable:!0})}var ne=class e extends Error{clientVersion;errorCode;retryable;constructor(r,t,n){super(r),this.name="PrismaClientInitializationError",this.clientVersion=t,this.errorCode=n,Error.captureStackTrace(e)}get[Symbol.toStringTag](){return"PrismaClientInitializationError"}};y(ne,"PrismaClientInitializationError");var ie=class extends Error{code;meta;clientVersion;batchRequestIdx;constructor(r,{code:t,clientVersion:n,meta:o,batchRequestIdx:i}){super(r),this.name="PrismaClientKnownRequestError",this.code=t,this.clientVersion=n,this.meta=o,Object.defineProperty(this,"batchRequestIdx",{value:i,enumerable:!1,writable:!0})}get[Symbol.toStringTag](){return"PrismaClientKnownRequestError"}};y(ie,"PrismaClientKnownRequestError");var oe=class extends Error{clientVersion;constructor(r,t){super(r),this.name="PrismaClientRustPanicError",this.clientVersion=t}get[Symbol.toStringTag](){return"PrismaClientRustPanicError"}};y(oe,"PrismaClientRustPanicError");var se=class extends Error{clientVersion;batchRequestIdx;constructor(r,{clientVersion:t,batchRequestIdx:n}){super(r),this.name="PrismaClientUnknownRequestError",this.clientVersion=t,Object.defineProperty(this,"batchRequestIdx",{value:n,writable:!0,enumerable:!1})}get[Symbol.toStringTag](){return"PrismaClientUnknownRequestError"}};y(se,"PrismaClientUnknownRequestError");var fe=class extends Error{name="PrismaClientValidationError";clientVersion;constructor(r,{clientVersion:t}){super(r),this.clientVersion=t}get[Symbol.toStringTag](){return"PrismaClientValidationError"}};y(fe,"PrismaClientValidationError");var ue=Symbol(),xe=new WeakMap,ae=class{constructor(r){r===ue?xe.set(this,`Prisma.${this._getName()}`):xe.set(this,`new Prisma.${this._getNamespace()}.${this._getName()}()`)}_getName(){return this.constructor.name}toString(){return xe.get(this)}},j=class extends ae{_getNamespace(){return"NullTypes"}},K=class extends j{#e};Pe(K,"DbNull");var J=class extends j{#e};Pe(J,"JsonNull");var X=class extends j{#e};Pe(X,"AnyNull");var We={classes:{DbNull:K,JsonNull:J,AnyNull:X},instances:{DbNull:new K(ue),JsonNull:new J(ue),AnyNull:new X(ue)}};function Pe(e,r){Object.defineProperty(e,"name",{value:r,configurable:!0})}var Z=9e15,G=1e9,Ce="0123456789abcdef",he="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",pe="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",be={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-Z,maxE:Z,crypto:!1},Me,_,w=!0,de="[DecimalError] ",U=de+"Invalid argument: ",Oe=de+"Precision limit exceeded",ye=de+"crypto unavailable",Ae="[object Decimal]",I=Math.floor,b=Math.pow,$e=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,He=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,je=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,De=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,A=1e7,g=7,Ke=9007199254740991,Je=he.length-1,Se=pe.length-1,p={toStringTag:Ae};p.absoluteValue=p.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),m(e)};p.ceil=function(){return m(new this.constructor(this),this.e+1,2)};p.clampedTo=p.clamp=function(e,r){var t,n=this,o=n.constructor;if(e=new o(e),r=new o(r),!e.s||!r.s)return new o(NaN);if(e.gt(r))throw Error(U+r);return t=n.cmp(e),t<0?e:n.cmp(r)>0?r:new o(n)};p.comparedTo=p.cmp=function(e){var r,t,n,o,i=this,s=i.d,f=(e=new i.constructor(e)).d,a=i.s,u=e.s;if(!s||!f)return!a||!u?NaN:a!==u?a:s===f?0:!s^a<0?1:-1;if(!s[0]||!f[0])return s[0]?a:f[0]?-u:0;if(a!==u)return a;if(i.e!==e.e)return i.e>e.e^a<0?1:-1;for(n=s.length,o=f.length,r=0,t=n<o?n:o;r<t;++r)if(s[r]!==f[r])return s[r]>f[r]^a<0?1:-1;return n===o?0:n>o^a<0?1:-1};p.cosine=p.cos=function(){var e,r,t=this,n=t.constructor;return t.d?t.d[0]?(e=n.precision,r=n.rounding,n.precision=e+Math.max(t.e,t.sd())+g,n.rounding=1,t=Xe(n,Be(n,t)),n.precision=e,n.rounding=r,m(_==2||_==3?t.neg():t,e,r,!0)):new n(1):new n(NaN)};p.cubeRoot=p.cbrt=function(){var e,r,t,n,o,i,s,f,a,u,l=this,c=l.constructor;if(!l.isFinite()||l.isZero())return new c(l);for(w=!1,i=l.s*b(l.s*l,1/3),!i||Math.abs(i)==1/0?(t=S(l.d),e=l.e,(i=(e-t.length+1)%3)&&(t+=i==1||i==-2?"0":"00"),i=b(t,1/3),e=I((e+1)/3)-(e%3==(e<0?-1:2)),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new c(t),n.s=l.s):n=new c(i.toString()),s=(e=c.precision)+3;;)if(f=n,a=f.times(f).times(f),u=a.plus(l),n=x(u.plus(l).times(f),u.plus(a),s+2,1),S(f.d).slice(0,s)===(t=S(n.d)).slice(0,s))if(t=t.slice(s-3,s+1),t=="9999"||!o&&t=="4999"){if(!o&&(m(f,e+1,0),f.times(f).times(f).eq(l))){n=f;break}s+=4,o=1}else{(!+t||!+t.slice(1)&&t.charAt(0)=="5")&&(m(n,e+1,1),r=!n.times(n).times(n).eq(l));break}return w=!0,m(n,e,c.rounding,r)};p.decimalPlaces=p.dp=function(){var e,r=this.d,t=NaN;if(r){if(e=r.length-1,t=(e-I(this.e/g))*g,e=r[e],e)for(;e%10==0;e/=10)t--;t<0&&(t=0)}return t};p.dividedBy=p.div=function(e){return x(this,new this.constructor(e))};p.dividedToIntegerBy=p.divToInt=function(e){var r=this,t=r.constructor;return m(x(r,new t(e),0,1,1),t.precision,t.rounding)};p.equals=p.eq=function(e){return this.cmp(e)===0};p.floor=function(){return m(new this.constructor(this),this.e+1,3)};p.greaterThan=p.gt=function(e){return this.cmp(e)>0};p.greaterThanOrEqualTo=p.gte=function(e){var r=this.cmp(e);return r==1||r===0};p.hyperbolicCosine=p.cosh=function(){var e,r,t,n,o,i=this,s=i.constructor,f=new s(1);if(!i.isFinite())return new s(i.s?1/0:NaN);if(i.isZero())return f;t=s.precision,n=s.rounding,s.precision=t+Math.max(i.e,i.sd())+4,s.rounding=1,o=i.d.length,o<32?(e=Math.ceil(o/3),r=(1/we(4,e)).toString()):(e=16,r="2.3283064365386962890625e-10"),i=W(s,1,i.times(r),new s(1),!0);for(var a,u=e,l=new s(8);u--;)a=i.times(i),i=f.minus(a.times(l.minus(a.times(l))));return m(i,s.precision=t,s.rounding=n,!0)};p.hyperbolicSine=p.sinh=function(){var e,r,t,n,o=this,i=o.constructor;if(!o.isFinite()||o.isZero())return new i(o);if(r=i.precision,t=i.rounding,i.precision=r+Math.max(o.e,o.sd())+4,i.rounding=1,n=o.d.length,n<3)o=W(i,2,o,o,!0);else{e=1.4*Math.sqrt(n),e=e>16?16:e|0,o=o.times(1/we(5,e)),o=W(i,2,o,o,!0);for(var s,f=new i(5),a=new i(16),u=new i(20);e--;)s=o.times(o),o=o.times(f.plus(s.times(a.times(s).plus(u))))}return i.precision=r,i.rounding=t,m(o,r,t,!0)};p.hyperbolicTangent=p.tanh=function(){var e,r,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(e=n.precision,r=n.rounding,n.precision=e+7,n.rounding=1,x(t.sinh(),t.cosh(),n.precision=e,n.rounding=r)):new n(t.s)};p.inverseCosine=p.acos=function(){var e=this,r=e.constructor,t=e.abs().cmp(1),n=r.precision,o=r.rounding;return t!==-1?t===0?e.isNeg()?D(r,n,o):new r(0):new r(NaN):e.isZero()?D(r,n+4,o).times(.5):(r.precision=n+6,r.rounding=1,e=new r(1).minus(e).div(e.plus(1)).sqrt().atan(),r.precision=n,r.rounding=o,e.times(2))};p.inverseHyperbolicCosine=p.acosh=function(){var e,r,t=this,n=t.constructor;return t.lte(1)?new n(t.eq(1)?0:NaN):t.isFinite()?(e=n.precision,r=n.rounding,n.precision=e+Math.max(Math.abs(t.e),t.sd())+4,n.rounding=1,w=!1,t=t.times(t).minus(1).sqrt().plus(t),w=!0,n.precision=e,n.rounding=r,t.ln()):new n(t)};p.inverseHyperbolicSine=p.asinh=function(){var e,r,t=this,n=t.constructor;return!t.isFinite()||t.isZero()?new n(t):(e=n.precision,r=n.rounding,n.precision=e+2*Math.max(Math.abs(t.e),t.sd())+6,n.rounding=1,w=!1,t=t.times(t).plus(1).sqrt().plus(t),w=!0,n.precision=e,n.rounding=r,t.ln())};p.inverseHyperbolicTangent=p.atanh=function(){var e,r,t,n,o=this,i=o.constructor;return o.isFinite()?o.e>=0?new i(o.abs().eq(1)?o.s/0:o.isZero()?o:NaN):(e=i.precision,r=i.rounding,n=o.sd(),Math.max(n,e)<2*-o.e-1?m(new i(o),e,r,!0):(i.precision=t=n-o.e,o=x(o.plus(1),new i(1).minus(o),t+e,1),i.precision=e+4,i.rounding=1,o=o.ln(),i.precision=e,i.rounding=r,o.times(.5))):new i(NaN)};p.inverseSine=p.asin=function(){var e,r,t,n,o=this,i=o.constructor;return o.isZero()?new i(o):(r=o.abs().cmp(1),t=i.precision,n=i.rounding,r!==-1?r===0?(e=D(i,t+4,n).times(.5),e.s=o.s,e):new i(NaN):(i.precision=t+6,i.rounding=1,o=o.div(new i(1).minus(o.times(o)).sqrt().plus(1)).atan(),i.precision=t,i.rounding=n,o.times(2)))};p.inverseTangent=p.atan=function(){var e,r,t,n,o,i,s,f,a,u=this,l=u.constructor,c=l.precision,h=l.rounding;if(u.isFinite()){if(u.isZero())return new l(u);if(u.abs().eq(1)&&c+4<=Se)return s=D(l,c+4,h).times(.25),s.s=u.s,s}else{if(!u.s)return new l(NaN);if(c+4<=Se)return s=D(l,c+4,h).times(.5),s.s=u.s,s}for(l.precision=f=c+10,l.rounding=1,t=Math.min(28,f/g+2|0),e=t;e;--e)u=u.div(u.times(u).plus(1).sqrt().plus(1));for(w=!1,r=Math.ceil(f/g),n=1,a=u.times(u),s=new l(u),o=u;e!==-1;)if(o=o.times(a),i=s.minus(o.div(n+=2)),o=o.times(a),s=i.plus(o.div(n+=2)),s.d[r]!==void 0)for(e=r;s.d[e]===i.d[e]&&e--;);return t&&(s=s.times(2<<t-1)),w=!0,m(s,l.precision=c,l.rounding=h,!0)};p.isFinite=function(){return!!this.d};p.isInteger=p.isInt=function(){return!!this.d&&I(this.e/g)>this.d.length-2};p.isNaN=function(){return!this.s};p.isNegative=p.isNeg=function(){return this.s<0};p.isPositive=p.isPos=function(){return this.s>0};p.isZero=function(){return!!this.d&&this.d[0]===0};p.lessThan=p.lt=function(e){return this.cmp(e)<0};p.lessThanOrEqualTo=p.lte=function(e){return this.cmp(e)<1};p.logarithm=p.log=function(e){var r,t,n,o,i,s,f,a,u=this,l=u.constructor,c=l.precision,h=l.rounding,d=5;if(e==null)e=new l(10),r=!0;else{if(e=new l(e),t=e.d,e.s<0||!t||!t[0]||e.eq(1))return new l(NaN);r=e.eq(10)}if(t=u.d,u.s<0||!t||!t[0]||u.eq(1))return new l(t&&!t[0]?-1/0:u.s!=1?NaN:t?0:1/0);if(r)if(t.length>1)i=!0;else{for(o=t[0];o%10===0;)o/=10;i=o!==1}if(w=!1,f=c+d,s=B(u,f),n=r?me(l,f+10):B(e,f),a=x(s,n,f,1),z(a.d,o=c,h))do if(f+=10,s=B(u,f),n=r?me(l,f+10):B(e,f),a=x(s,n,f,1),!i){+S(a.d).slice(o+1,o+15)+1==1e14&&(a=m(a,c+1,0));break}while(z(a.d,o+=10,h));return w=!0,m(a,c,h)};p.minus=p.sub=function(e){var r,t,n,o,i,s,f,a,u,l,c,h,d=this,v=d.constructor;if(e=new v(e),!d.d||!e.d)return!d.s||!e.s?e=new v(NaN):d.d?e.s=-e.s:e=new v(e.d||d.s!==e.s?d:NaN),e;if(d.s!=e.s)return e.s=-e.s,d.plus(e);if(u=d.d,h=e.d,f=v.precision,a=v.rounding,!u[0]||!h[0]){if(h[0])e.s=-e.s;else if(u[0])e=new v(d);else return new v(a===3?-0:0);return w?m(e,f,a):e}if(t=I(e.e/g),l=I(d.e/g),u=u.slice(),i=l-t,i){for(c=i<0,c?(r=u,i=-i,s=h.length):(r=h,t=l,s=u.length),n=Math.max(Math.ceil(f/g),s)+2,i>n&&(i=n,r.length=1),r.reverse(),n=i;n--;)r.push(0);r.reverse()}else{for(n=u.length,s=h.length,c=n<s,c&&(s=n),n=0;n<s;n++)if(u[n]!=h[n]){c=u[n]<h[n];break}i=0}for(c&&(r=u,u=h,h=r,e.s=-e.s),s=u.length,n=h.length-s;n>0;--n)u[s++]=0;for(n=h.length;n>i;){if(u[--n]<h[n]){for(o=n;o&&u[--o]===0;)u[o]=A-1;--u[o],u[n]+=A}u[n]-=h[n]}for(;u[--s]===0;)u.pop();for(;u[0]===0;u.shift())--t;return u[0]?(e.d=u,e.e=ge(u,t),w?m(e,f,a):e):new v(a===3?-0:0)};p.modulo=p.mod=function(e){var r,t=this,n=t.constructor;return e=new n(e),!t.d||!e.s||e.d&&!e.d[0]?new n(NaN):!e.d||t.d&&!t.d[0]?m(new n(t),n.precision,n.rounding):(w=!1,n.modulo==9?(r=x(t,e.abs(),0,3,1),r.s*=e.s):r=x(t,e,0,n.modulo,1),r=r.times(e),w=!0,t.minus(r))};p.naturalExponential=p.exp=function(){return ke(this)};p.naturalLogarithm=p.ln=function(){return B(this)};p.negated=p.neg=function(){var e=new this.constructor(this);return e.s=-e.s,m(e)};p.plus=p.add=function(e){var r,t,n,o,i,s,f,a,u,l,c=this,h=c.constructor;if(e=new h(e),!c.d||!e.d)return!c.s||!e.s?e=new h(NaN):c.d||(e=new h(e.d||c.s===e.s?c:NaN)),e;if(c.s!=e.s)return e.s=-e.s,c.minus(e);if(u=c.d,l=e.d,f=h.precision,a=h.rounding,!u[0]||!l[0])return l[0]||(e=new h(c)),w?m(e,f,a):e;if(i=I(c.e/g),n=I(e.e/g),u=u.slice(),o=i-n,o){for(o<0?(t=u,o=-o,s=l.length):(t=l,n=i,s=u.length),i=Math.ceil(f/g),s=i>s?i+1:s+1,o>s&&(o=s,t.length=1),t.reverse();o--;)t.push(0);t.reverse()}for(s=u.length,o=l.length,s-o<0&&(o=s,t=l,l=u,u=t),r=0;o;)r=(u[--o]=u[o]+l[o]+r)/A|0,u[o]%=A;for(r&&(u.unshift(r),++n),s=u.length;u[--s]==0;)u.pop();return e.d=u,e.e=ge(u,n),w?m(e,f,a):e};p.precision=p.sd=function(e){var r,t=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(U+e);return t.d?(r=Le(t.d),e&&t.e+1>r&&(r=t.e+1)):r=NaN,r};p.round=function(){var e=this,r=e.constructor;return m(new r(e),e.e+1,r.rounding)};p.sine=p.sin=function(){var e,r,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(e=n.precision,r=n.rounding,n.precision=e+Math.max(t.e,t.sd())+g,n.rounding=1,t=Qe(n,Be(n,t)),n.precision=e,n.rounding=r,m(_>2?t.neg():t,e,r,!0)):new n(NaN)};p.squareRoot=p.sqrt=function(){var e,r,t,n,o,i,s=this,f=s.d,a=s.e,u=s.s,l=s.constructor;if(u!==1||!f||!f[0])return new l(!u||u<0&&(!f||f[0])?NaN:f?s:1/0);for(w=!1,u=Math.sqrt(+s),u==0||u==1/0?(r=S(f),(r.length+a)%2==0&&(r+="0"),u=Math.sqrt(r),a=I((a+1)/2)-(a<0||a%2),u==1/0?r="5e"+a:(r=u.toExponential(),r=r.slice(0,r.indexOf("e")+1)+a),n=new l(r)):n=new l(u.toString()),t=(a=l.precision)+3;;)if(i=n,n=i.plus(x(s,i,t+2,1)).times(.5),S(i.d).slice(0,t)===(r=S(n.d)).slice(0,t))if(r=r.slice(t-3,t+1),r=="9999"||!o&&r=="4999"){if(!o&&(m(i,a+1,0),i.times(i).eq(s))){n=i;break}t+=4,o=1}else{(!+r||!+r.slice(1)&&r.charAt(0)=="5")&&(m(n,a+1,1),e=!n.times(n).eq(s));break}return w=!0,m(n,a,l.rounding,e)};p.tangent=p.tan=function(){var e,r,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(e=n.precision,r=n.rounding,n.precision=e+10,n.rounding=1,t=t.sin(),t.s=1,t=x(t,new n(1).minus(t.times(t)).sqrt(),e+10,0),n.precision=e,n.rounding=r,m(_==2||_==4?t.neg():t,e,r,!0)):new n(NaN)};p.times=p.mul=function(e){var r,t,n,o,i,s,f,a,u,l=this,c=l.constructor,h=l.d,d=(e=new c(e)).d;if(e.s*=l.s,!h||!h[0]||!d||!d[0])return new c(!e.s||h&&!h[0]&&!d||d&&!d[0]&&!h?NaN:!h||!d?e.s/0:e.s*0);for(t=I(l.e/g)+I(e.e/g),a=h.length,u=d.length,a<u&&(i=h,h=d,d=i,s=a,a=u,u=s),i=[],s=a+u,n=s;n--;)i.push(0);for(n=u;--n>=0;){for(r=0,o=a+n;o>n;)f=i[o]+d[n]*h[o-n-1]+r,i[o--]=f%A|0,r=f/A|0;i[o]=(i[o]+r)%A|0}for(;!i[--s];)i.pop();return r?++t:i.shift(),e.d=i,e.e=ge(i,t),w?m(e,c.precision,c.rounding):e};p.toBinary=function(e,r){return Te(this,2,e,r)};p.toDecimalPlaces=p.toDP=function(e,r){var t=this,n=t.constructor;return t=new n(t),e===void 0?t:(q(e,0,G),r===void 0?r=n.rounding:q(r,0,8),m(t,e+t.e+1,r))};p.toExponential=function(e,r){var t,n=this,o=n.constructor;return e===void 0?t=L(n,!0):(q(e,0,G),r===void 0?r=o.rounding:q(r,0,8),n=m(new o(n),e+1,r),t=L(n,!0,e+1)),n.isNeg()&&!n.isZero()?"-"+t:t};p.toFixed=function(e,r){var t,n,o=this,i=o.constructor;return e===void 0?t=L(o):(q(e,0,G),r===void 0?r=i.rounding:q(r,0,8),n=m(new i(o),e+o.e+1,r),t=L(n,!1,e+n.e+1)),o.isNeg()&&!o.isZero()?"-"+t:t};p.toFraction=function(e){var r,t,n,o,i,s,f,a,u,l,c,h,d=this,v=d.d,N=d.constructor;if(!v)return new N(d);if(u=t=new N(1),n=a=new N(0),r=new N(n),i=r.e=Le(v)-d.e-1,s=i%g,r.d[0]=b(10,s<0?g+s:s),e==null)e=i>0?r:u;else{if(f=new N(e),!f.isInt()||f.lt(u))throw Error(U+f);e=f.gt(r)?i>0?r:u:f}for(w=!1,f=new N(S(v)),l=N.precision,N.precision=i=v.length*g*2;c=x(f,r,0,1,1),o=t.plus(c.times(n)),o.cmp(e)!=1;)t=n,n=o,o=u,u=a.plus(c.times(o)),a=o,o=r,r=f.minus(c.times(o)),f=o;return o=x(e.minus(t),n,0,1,1),a=a.plus(o.times(u)),t=t.plus(o.times(n)),a.s=u.s=d.s,h=x(u,n,i,1).minus(d).abs().cmp(x(a,t,i,1).minus(d).abs())<1?[u,n]:[a,t],N.precision=l,w=!0,h};p.toHexadecimal=p.toHex=function(e,r){return Te(this,16,e,r)};p.toNearest=function(e,r){var t=this,n=t.constructor;if(t=new n(t),e==null){if(!t.d)return t;e=new n(1),r=n.rounding}else{if(e=new n(e),r===void 0?r=n.rounding:q(r,0,8),!t.d)return e.s?t:e;if(!e.d)return e.s&&(e.s=t.s),e}return e.d[0]?(w=!1,t=x(t,e,0,r,1).times(e),w=!0,m(t)):(e.s=t.s,t=e),t};p.toNumber=function(){return+this};p.toOctal=function(e,r){return Te(this,8,e,r)};p.toPower=p.pow=function(e){var r,t,n,o,i,s,f=this,a=f.constructor,u=+(e=new a(e));if(!f.d||!e.d||!f.d[0]||!e.d[0])return new a(b(+f,u));if(f=new a(f),f.eq(1))return f;if(n=a.precision,i=a.rounding,e.eq(1))return m(f,n,i);if(r=I(e.e/g),r>=e.d.length-1&&(t=u<0?-u:u)<=Ke)return o=Fe(a,f,t,n),e.s<0?new a(1).div(o):m(o,n,i);if(s=f.s,s<0){if(r<e.d.length-1)return new a(NaN);if((e.d[r]&1)==0&&(s=1),f.e==0&&f.d[0]==1&&f.d.length==1)return f.s=s,f}return t=b(+f,u),r=t==0||!isFinite(t)?I(u*(Math.log("0."+S(f.d))/Math.LN10+f.e+1)):new a(t+"").e,r>a.maxE+1||r<a.minE-1?new a(r>0?s/0:0):(w=!1,a.rounding=f.s=1,t=Math.min(12,(r+"").length),o=ke(e.times(B(f,n+t)),n),o.d&&(o=m(o,n+5,1),z(o.d,n,i)&&(r=n+10,o=m(ke(e.times(B(f,r+t)),r),r+5,1),+S(o.d).slice(n+1,n+15)+1==1e14&&(o=m(o,n+1,0)))),o.s=s,w=!0,a.rounding=i,m(o,n,i))};p.toPrecision=function(e,r){var t,n=this,o=n.constructor;return e===void 0?t=L(n,n.e<=o.toExpNeg||n.e>=o.toExpPos):(q(e,1,G),r===void 0?r=o.rounding:q(r,0,8),n=m(new o(n),e,r),t=L(n,e<=n.e||n.e<=o.toExpNeg,e)),n.isNeg()&&!n.isZero()?"-"+t:t};p.toSignificantDigits=p.toSD=function(e,r){var t=this,n=t.constructor;return e===void 0?(e=n.precision,r=n.rounding):(q(e,1,G),r===void 0?r=n.rounding:q(r,0,8)),m(new n(t),e,r)};p.toString=function(){var e=this,r=e.constructor,t=L(e,e.e<=r.toExpNeg||e.e>=r.toExpPos);return e.isNeg()&&!e.isZero()?"-"+t:t};p.truncated=p.trunc=function(){return m(new this.constructor(this),this.e+1,1)};p.valueOf=p.toJSON=function(){var e=this,r=e.constructor,t=L(e,e.e<=r.toExpNeg||e.e>=r.toExpPos);return e.isNeg()?"-"+t:t};function S(e){var r,t,n,o=e.length-1,i="",s=e[0];if(o>0){for(i+=s,r=1;r<o;r++)n=e[r]+"",t=g-n.length,t&&(i+=V(t)),i+=n;s=e[r],n=s+"",t=g-n.length,t&&(i+=V(t))}else if(s===0)return"0";for(;s%10===0;)s/=10;return i+s}function q(e,r,t){if(e!==~~e||e<r||e>t)throw Error(U+e)}function z(e,r,t,n){var o,i,s,f;for(i=e[0];i>=10;i/=10)--r;return--r<0?(r+=g,o=0):(o=Math.ceil((r+1)/g),r%=g),i=b(10,g-r),f=e[o]%i|0,n==null?r<3?(r==0?f=f/100|0:r==1&&(f=f/10|0),s=t<4&&f==99999||t>3&&f==49999||f==5e4||f==0):s=(t<4&&f+1==i||t>3&&f+1==i/2)&&(e[o+1]/i/100|0)==b(10,r-2)-1||(f==i/2||f==0)&&(e[o+1]/i/100|0)==0:r<4?(r==0?f=f/1e3|0:r==1?f=f/100|0:r==2&&(f=f/10|0),s=(n||t<4)&&f==9999||!n&&t>3&&f==4999):s=((n||t<4)&&f+1==i||!n&&t>3&&f+1==i/2)&&(e[o+1]/i/1e3|0)==b(10,r-3)-1,s}function le(e,r,t){for(var n,o=[0],i,s=0,f=e.length;s<f;){for(i=o.length;i--;)o[i]*=r;for(o[0]+=Ce.indexOf(e.charAt(s++)),n=0;n<o.length;n++)o[n]>t-1&&(o[n+1]===void 0&&(o[n+1]=0),o[n+1]+=o[n]/t|0,o[n]%=t)}return o.reverse()}function Xe(e,r){var t,n,o;if(r.isZero())return r;n=r.d.length,n<32?(t=Math.ceil(n/3),o=(1/we(4,t)).toString()):(t=16,o="2.3283064365386962890625e-10"),e.precision+=t,r=W(e,1,r.times(o),new e(1));for(var i=t;i--;){var s=r.times(r);r=s.times(s).minus(s).times(8).plus(1)}return e.precision-=t,r}var x=function(){function e(n,o,i){var s,f=0,a=n.length;for(n=n.slice();a--;)s=n[a]*o+f,n[a]=s%i|0,f=s/i|0;return f&&n.unshift(f),n}function r(n,o,i,s){var f,a;if(i!=s)a=i>s?1:-1;else for(f=a=0;f<i;f++)if(n[f]!=o[f]){a=n[f]>o[f]?1:-1;break}return a}function t(n,o,i,s){for(var f=0;i--;)n[i]-=f,f=n[i]<o[i]?1:0,n[i]=f*s+n[i]-o[i];for(;!n[0]&&n.length>1;)n.shift()}return function(n,o,i,s,f,a){var u,l,c,h,d,v,N,R,C,M,E,k,Y,F,Ne,ee,H,ve,O,re,te=n.constructor,Ee=n.s==o.s?1:-1,T=n.d,P=o.d;if(!T||!T[0]||!P||!P[0])return new te(!n.s||!o.s||(T?P&&T[0]==P[0]:!P)?NaN:T&&T[0]==0||!P?Ee*0:Ee/0);for(a?(d=1,l=n.e-o.e):(a=A,d=g,l=I(n.e/d)-I(o.e/d)),O=P.length,H=T.length,C=new te(Ee),M=C.d=[],c=0;P[c]==(T[c]||0);c++);if(P[c]>(T[c]||0)&&l--,i==null?(F=i=te.precision,s=te.rounding):f?F=i+(n.e-o.e)+1:F=i,F<0)M.push(1),v=!0;else{if(F=F/d+2|0,c=0,O==1){for(h=0,P=P[0],F++;(c<H||h)&&F--;c++)Ne=h*a+(T[c]||0),M[c]=Ne/P|0,h=Ne%P|0;v=h||c<H}else{for(h=a/(P[0]+1)|0,h>1&&(P=e(P,h,a),T=e(T,h,a),O=P.length,H=T.length),ee=O,E=T.slice(0,O),k=E.length;k<O;)E[k++]=0;re=P.slice(),re.unshift(0),ve=P[0],P[1]>=a/2&&++ve;do h=0,u=r(P,E,O,k),u<0?(Y=E[0],O!=k&&(Y=Y*a+(E[1]||0)),h=Y/ve|0,h>1?(h>=a&&(h=a-1),N=e(P,h,a),R=N.length,k=E.length,u=r(N,E,R,k),u==1&&(h--,t(N,O<R?re:P,R,a))):(h==0&&(u=h=1),N=P.slice()),R=N.length,R<k&&N.unshift(0),t(E,N,k,a),u==-1&&(k=E.length,u=r(P,E,O,k),u<1&&(h++,t(E,O<k?re:P,k,a))),k=E.length):u===0&&(h++,E=[0]),M[c++]=h,u&&E[0]?E[k++]=T[ee]||0:(E=[T[ee]],k=1);while((ee++<H||E[0]!==void 0)&&F--);v=E[0]!==void 0}M[0]||M.shift()}if(d==1)C.e=l,Me=v;else{for(c=1,h=M[0];h>=10;h/=10)c++;C.e=c+l*d-1,m(C,f?i+C.e+1:i,s,v)}return C}}();function m(e,r,t,n){var o,i,s,f,a,u,l,c,h,d=e.constructor;e:if(r!=null){if(c=e.d,!c)return e;for(o=1,f=c[0];f>=10;f/=10)o++;if(i=r-o,i<0)i+=g,s=r,l=c[h=0],a=l/b(10,o-s-1)%10|0;else if(h=Math.ceil((i+1)/g),f=c.length,h>=f)if(n){for(;f++<=h;)c.push(0);l=a=0,o=1,i%=g,s=i-g+1}else break e;else{for(l=f=c[h],o=1;f>=10;f/=10)o++;i%=g,s=i-g+o,a=s<0?0:l/b(10,o-s-1)%10|0}if(n=n||r<0||c[h+1]!==void 0||(s<0?l:l%b(10,o-s-1)),u=t<4?(a||n)&&(t==0||t==(e.s<0?3:2)):a>5||a==5&&(t==4||n||t==6&&(i>0?s>0?l/b(10,o-s):0:c[h-1])%10&1||t==(e.s<0?8:7)),r<1||!c[0])return c.length=0,u?(r-=e.e+1,c[0]=b(10,(g-r%g)%g),e.e=-r||0):c[0]=e.e=0,e;if(i==0?(c.length=h,f=1,h--):(c.length=h+1,f=b(10,g-i),c[h]=s>0?(l/b(10,o-s)%b(10,s)|0)*f:0),u)for(;;)if(h==0){for(i=1,s=c[0];s>=10;s/=10)i++;for(s=c[0]+=f,f=1;s>=10;s/=10)f++;i!=f&&(e.e++,c[0]==A&&(c[0]=1));break}else{if(c[h]+=f,c[h]!=A)break;c[h--]=0,f=1}for(i=c.length;c[--i]===0;)c.pop()}return w&&(e.e>d.maxE?(e.d=null,e.e=NaN):e.e<d.minE&&(e.e=0,e.d=[0])),e}function L(e,r,t){if(!e.isFinite())return Ve(e);var n,o=e.e,i=S(e.d),s=i.length;return r?(t&&(n=t-s)>0?i=i.charAt(0)+"."+i.slice(1)+V(n):s>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(e.e<0?"e":"e+")+e.e):o<0?(i="0."+V(-o-1)+i,t&&(n=t-s)>0&&(i+=V(n))):o>=s?(i+=V(o+1-s),t&&(n=t-o-1)>0&&(i=i+"."+V(n))):((n=o+1)<s&&(i=i.slice(0,n)+"."+i.slice(n)),t&&(n=t-s)>0&&(o+1===s&&(i+="."),i+=V(n))),i}function ge(e,r){var t=e[0];for(r*=g;t>=10;t/=10)r++;return r}function me(e,r,t){if(r>Je)throw w=!0,t&&(e.precision=t),Error(Oe);return m(new e(he),r,1,!0)}function D(e,r,t){if(r>Se)throw Error(Oe);return m(new e(pe),r,t,!0)}function Le(e){var r=e.length-1,t=r*g+1;if(r=e[r],r){for(;r%10==0;r/=10)t--;for(r=e[0];r>=10;r/=10)t++}return t}function V(e){for(var r="";e--;)r+="0";return r}function Fe(e,r,t,n){var o,i=new e(1),s=Math.ceil(n/g+4);for(w=!1;;){if(t%2&&(i=i.times(r),Re(i.d,s)&&(o=!0)),t=I(t/2),t===0){t=i.d.length-1,o&&i.d[t]===0&&++i.d[t];break}r=r.times(r),Re(r.d,s)}return w=!0,i}function Ie(e){return e.d[e.d.length-1]&1}function _e(e,r,t){for(var n,o,i=new e(r[0]),s=0;++s<r.length;){if(o=new e(r[s]),!o.s){i=o;break}n=i.cmp(o),(n===t||n===0&&i.s===t)&&(i=o)}return i}function ke(e,r){var t,n,o,i,s,f,a,u=0,l=0,c=0,h=e.constructor,d=h.rounding,v=h.precision;if(!e.d||!e.d[0]||e.e>17)return new h(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(r==null?(w=!1,a=v):a=r,f=new h(.03125);e.e>-2;)e=e.times(f),c+=5;for(n=Math.log(b(2,c))/Math.LN10*2+5|0,a+=n,t=i=s=new h(1),h.precision=a;;){if(i=m(i.times(e),a,1),t=t.times(++l),f=s.plus(x(i,t,a,1)),S(f.d).slice(0,a)===S(s.d).slice(0,a)){for(o=c;o--;)s=m(s.times(s),a,1);if(r==null)if(u<3&&z(s.d,a-n,d,u))h.precision=a+=10,t=i=f=new h(1),l=0,u++;else return m(s,h.precision=v,d,w=!0);else return h.precision=v,s}s=f}}function B(e,r){var t,n,o,i,s,f,a,u,l,c,h,d=1,v=10,N=e,R=N.d,C=N.constructor,M=C.rounding,E=C.precision;if(N.s<0||!R||!R[0]||!N.e&&R[0]==1&&R.length==1)return new C(R&&!R[0]?-1/0:N.s!=1?NaN:R?0:N);if(r==null?(w=!1,l=E):l=r,C.precision=l+=v,t=S(R),n=t.charAt(0),Math.abs(i=N.e)<15e14){for(;n<7&&n!=1||n==1&&t.charAt(1)>3;)N=N.times(e),t=S(N.d),n=t.charAt(0),d++;i=N.e,n>1?(N=new C("0."+t),i++):N=new C(n+"."+t.slice(1))}else return u=me(C,l+2,E).times(i+""),N=B(new C(n+"."+t.slice(1)),l-v).plus(u),C.precision=E,r==null?m(N,E,M,w=!0):N;for(c=N,a=s=N=x(N.minus(1),N.plus(1),l,1),h=m(N.times(N),l,1),o=3;;){if(s=m(s.times(h),l,1),u=a.plus(x(s,new C(o),l,1)),S(u.d).slice(0,l)===S(a.d).slice(0,l))if(a=a.times(2),i!==0&&(a=a.plus(me(C,l+2,E).times(i+""))),a=x(a,new C(d),l,1),r==null)if(z(a.d,l-v,M,f))C.precision=l+=v,u=s=N=x(c.minus(1),c.plus(1),l,1),h=m(N.times(N),l,1),o=f=1;else return m(a,C.precision=E,M,w=!0);else return C.precision=E,a;a=u,o+=2}}function Ve(e){return String(e.s*e.s/0)}function ce(e,r){var t,n,o;for((t=r.indexOf("."))>-1&&(r=r.replace(".","")),(n=r.search(/e/i))>0?(t<0&&(t=n),t+=+r.slice(n+1),r=r.substring(0,n)):t<0&&(t=r.length),n=0;r.charCodeAt(n)===48;n++);for(o=r.length;r.charCodeAt(o-1)===48;--o);if(r=r.slice(n,o),r){if(o-=n,e.e=t=t-n-1,e.d=[],n=(t+1)%g,t<0&&(n+=g),n<o){for(n&&e.d.push(+r.slice(0,n)),o-=g;n<o;)e.d.push(+r.slice(n,n+=g));r=r.slice(n),n=g-r.length}else n-=o;for(;n--;)r+="0";e.d.push(+r),w&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function ze(e,r){var t,n,o,i,s,f,a,u,l;if(r.indexOf("_")>-1){if(r=r.replace(/(\d)_(?=\d)/g,"$1"),De.test(r))return ce(e,r)}else if(r==="Infinity"||r==="NaN")return+r||(e.s=NaN),e.e=NaN,e.d=null,e;if(He.test(r))t=16,r=r.toLowerCase();else if($e.test(r))t=2;else if(je.test(r))t=8;else throw Error(U+r);for(i=r.search(/p/i),i>0?(a=+r.slice(i+1),r=r.substring(2,i)):r=r.slice(2),i=r.indexOf("."),s=i>=0,n=e.constructor,s&&(r=r.replace(".",""),f=r.length,i=f-i,o=Fe(n,new n(t),i,i*2)),u=le(r,t,A),l=u.length-1,i=l;u[i]===0;--i)u.pop();return i<0?new n(e.s*0):(e.e=ge(u,l),e.d=u,w=!1,s&&(e=x(e,o,f*4)),a&&(e=e.times(Math.abs(a)<54?b(2,a):Q.pow(2,a))),w=!0,e)}function Qe(e,r){var t,n=r.d.length;if(n<3)return r.isZero()?r:W(e,2,r,r);t=1.4*Math.sqrt(n),t=t>16?16:t|0,r=r.times(1/we(5,t)),r=W(e,2,r,r);for(var o,i=new e(5),s=new e(16),f=new e(20);t--;)o=r.times(r),r=r.times(i.plus(o.times(s.times(o).minus(f))));return r}function W(e,r,t,n,o){var i,s,f,a,u=1,l=e.precision,c=Math.ceil(l/g);for(w=!1,a=t.times(t),f=new e(n);;){if(s=x(f.times(a),new e(r++*r++),l,1),f=o?n.plus(s):n.minus(s),n=x(s.times(a),new e(r++*r++),l,1),s=f.plus(n),s.d[c]!==void 0){for(i=c;s.d[i]===f.d[i]&&i--;);if(i==-1)break}i=f,f=n,n=s,s=i,u++}return w=!0,s.d.length=c+1,s}function we(e,r){for(var t=e;--r;)t*=e;return t}function Be(e,r){var t,n=r.s<0,o=D(e,e.precision,1),i=o.times(.5);if(r=r.abs(),r.lte(i))return _=n?4:1,r;if(t=r.divToInt(o),t.isZero())_=n?3:2;else{if(r=r.minus(t.times(o)),r.lte(i))return _=Ie(t)?n?2:3:n?4:1,r;_=Ie(t)?n?1:4:n?3:2}return r.minus(o).abs()}function Te(e,r,t,n){var o,i,s,f,a,u,l,c,h,d=e.constructor,v=t!==void 0;if(v?(q(t,1,G),n===void 0?n=d.rounding:q(n,0,8)):(t=d.precision,n=d.rounding),!e.isFinite())l=Ve(e);else{for(l=L(e),s=l.indexOf("."),v?(o=2,r==16?t=t*4-3:r==8&&(t=t*3-2)):o=r,s>=0&&(l=l.replace(".",""),h=new d(1),h.e=l.length-s,h.d=le(L(h),10,o),h.e=h.d.length),c=le(l,10,o),i=a=c.length;c[--a]==0;)c.pop();if(!c[0])l=v?"0p+0":"0";else{if(s<0?i--:(e=new d(e),e.d=c,e.e=i,e=x(e,h,t,n,0,o),c=e.d,i=e.e,u=Me),s=c[t],f=o/2,u=u||c[t+1]!==void 0,u=n<4?(s!==void 0||u)&&(n===0||n===(e.s<0?3:2)):s>f||s===f&&(n===4||u||n===6&&c[t-1]&1||n===(e.s<0?8:7)),c.length=t,u)for(;++c[--t]>o-1;)c[t]=0,t||(++i,c.unshift(1));for(a=c.length;!c[a-1];--a);for(s=0,l="";s<a;s++)l+=Ce.charAt(c[s]);if(v){if(a>1)if(r==16||r==8){for(s=r==16?4:3,--a;a%s;a++)l+="0";for(c=le(l,o,r),a=c.length;!c[a-1];--a);for(s=1,l="1.";s<a;s++)l+=Ce.charAt(c[s])}else l=l.charAt(0)+"."+l.slice(1);l=l+(i<0?"p":"p+")+i}else if(i<0){for(;++i;)l="0"+l;l="0."+l}else if(++i>a)for(i-=a;i--;)l+="0";else i<a&&(l=l.slice(0,i)+"."+l.slice(i))}l=(r==16?"0x":r==2?"0b":r==8?"0o":"")+l}return e.s<0?"-"+l:l}function Re(e,r){if(e.length>r)return e.length=r,!0}function Ye(e){return new this(e).abs()}function er(e){return new this(e).acos()}function rr(e){return new this(e).acosh()}function tr(e,r){return new this(e).plus(r)}function nr(e){return new this(e).asin()}function ir(e){return new this(e).asinh()}function or(e){return new this(e).atan()}function sr(e){return new this(e).atanh()}function fr(e,r){e=new this(e),r=new this(r);var t,n=this.precision,o=this.rounding,i=n+4;return!e.s||!r.s?t=new this(NaN):!e.d&&!r.d?(t=D(this,i,1).times(r.s>0?.25:.75),t.s=e.s):!r.d||e.isZero()?(t=r.s<0?D(this,n,o):new this(0),t.s=e.s):!e.d||r.isZero()?(t=D(this,i,1).times(.5),t.s=e.s):r.s<0?(this.precision=i,this.rounding=1,t=this.atan(x(e,r,i,1)),r=D(this,i,1),this.precision=n,this.rounding=o,t=e.s<0?t.minus(r):t.plus(r)):t=this.atan(x(e,r,i,1)),t}function ur(e){return new this(e).cbrt()}function ar(e){return m(e=new this(e),e.e+1,2)}function lr(e,r,t){return new this(e).clamp(r,t)}function cr(e){if(!e||typeof e!="object")throw Error(de+"Object expected");var r,t,n,o=e.defaults===!0,i=["precision",1,G,"rounding",0,8,"toExpNeg",-Z,0,"toExpPos",0,Z,"maxE",0,Z,"minE",-Z,0,"modulo",0,9];for(r=0;r<i.length;r+=3)if(t=i[r],o&&(this[t]=be[t]),(n=e[t])!==void 0)if(I(n)===n&&n>=i[r+1]&&n<=i[r+2])this[t]=n;else throw Error(U+t+": "+n);if(t="crypto",o&&(this[t]=be[t]),(n=e[t])!==void 0)if(n===!0||n===!1||n===0||n===1)if(n)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[t]=!0;else throw Error(ye);else this[t]=!1;else throw Error(U+t+": "+n);return this}function hr(e){return new this(e).cos()}function pr(e){return new this(e).cosh()}function Ue(e){var r,t,n;function o(i){var s,f,a,u=this;if(!(u instanceof o))return new o(i);if(u.constructor=o,qe(i)){u.s=i.s,w?!i.d||i.e>o.maxE?(u.e=NaN,u.d=null):i.e<o.minE?(u.e=0,u.d=[0]):(u.e=i.e,u.d=i.d.slice()):(u.e=i.e,u.d=i.d?i.d.slice():i.d);return}if(a=typeof i,a==="number"){if(i===0){u.s=1/i<0?-1:1,u.e=0,u.d=[0];return}if(i<0?(i=-i,u.s=-1):u.s=1,i===~~i&&i<1e7){for(s=0,f=i;f>=10;f/=10)s++;w?s>o.maxE?(u.e=NaN,u.d=null):s<o.minE?(u.e=0,u.d=[0]):(u.e=s,u.d=[i]):(u.e=s,u.d=[i]);return}if(i*0!==0){i||(u.s=NaN),u.e=NaN,u.d=null;return}return ce(u,i.toString())}if(a==="string")return(f=i.charCodeAt(0))===45?(i=i.slice(1),u.s=-1):(f===43&&(i=i.slice(1)),u.s=1),De.test(i)?ce(u,i):ze(u,i);if(a==="bigint")return i<0?(i=-i,u.s=-1):u.s=1,ce(u,i.toString());throw Error(U+i)}if(o.prototype=p,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.EUCLID=9,o.config=o.set=cr,o.clone=Ue,o.isDecimal=qe,o.abs=Ye,o.acos=er,o.acosh=rr,o.add=tr,o.asin=nr,o.asinh=ir,o.atan=or,o.atanh=sr,o.atan2=fr,o.cbrt=ur,o.ceil=ar,o.clamp=lr,o.cos=hr,o.cosh=pr,o.div=mr,o.exp=dr,o.floor=gr,o.hypot=wr,o.ln=Nr,o.log=vr,o.log10=xr,o.log2=Er,o.max=Pr,o.min=Cr,o.mod=br,o.mul=Sr,o.pow=kr,o.random=Tr,o.round=Ir,o.sign=Rr,o.sin=qr,o.sinh=Mr,o.sqrt=Or,o.sub=yr,o.sum=Ar,o.tan=Dr,o.tanh=Lr,o.trunc=Fr,e===void 0&&(e={}),e&&e.defaults!==!0)for(n=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],r=0;r<n.length;)e.hasOwnProperty(t=n[r++])||(e[t]=this[t]);return o.config(e),o}function mr(e,r){return new this(e).div(r)}function dr(e){return new this(e).exp()}function gr(e){return m(e=new this(e),e.e+1,3)}function wr(){var e,r,t=new this(0);for(w=!1,e=0;e<arguments.length;)if(r=new this(arguments[e++]),r.d)t.d&&(t=t.plus(r.times(r)));else{if(r.s)return w=!0,new this(1/0);t=r}return w=!0,t.sqrt()}function qe(e){return e instanceof Q||e&&e.toStringTag===Ae||!1}function Nr(e){return new this(e).ln()}function vr(e,r){return new this(e).log(r)}function Er(e){return new this(e).log(2)}function xr(e){return new this(e).log(10)}function Pr(){return _e(this,arguments,-1)}function Cr(){return _e(this,arguments,1)}function br(e,r){return new this(e).mod(r)}function Sr(e,r){return new this(e).mul(r)}function kr(e,r){return new this(e).pow(r)}function Tr(e){var r,t,n,o,i=0,s=new this(1),f=[];if(e===void 0?e=this.precision:q(e,1,G),n=Math.ceil(e/g),this.crypto)if(crypto.getRandomValues)for(r=crypto.getRandomValues(new Uint32Array(n));i<n;)o=r[i],o>=429e7?r[i]=crypto.getRandomValues(new Uint32Array(1))[0]:f[i++]=o%1e7;else if(crypto.randomBytes){for(r=crypto.randomBytes(n*=4);i<n;)o=r[i]+(r[i+1]<<8)+(r[i+2]<<16)+((r[i+3]&127)<<24),o>=214e7?crypto.randomBytes(4).copy(r,i):(f.push(o%1e7),i+=4);i=n/4}else throw Error(ye);else for(;i<n;)f[i++]=Math.random()*1e7|0;for(n=f[--i],e%=g,n&&e&&(o=b(10,g-e),f[i]=(n/o|0)*o);f[i]===0;i--)f.pop();if(i<0)t=0,f=[0];else{for(t=-1;f[0]===0;t-=g)f.shift();for(n=1,o=f[0];o>=10;o/=10)n++;n<g&&(t-=g-n)}return s.e=t,s.d=f,s}function Ir(e){return m(e=new this(e),e.e+1,this.rounding)}function Rr(e){return e=new this(e),e.d?e.d[0]?e.s:0*e.s:e.s||NaN}function qr(e){return new this(e).sin()}function Mr(e){return new this(e).sinh()}function Or(e){return new this(e).sqrt()}function yr(e,r){return new this(e).sub(r)}function Ar(){var e=0,r=arguments,t=new this(r[e]);for(w=!1;t.s&&++e<r.length;)t=t.plus(r[e]);return w=!0,m(t,this.precision,this.rounding)}function Dr(e){return new this(e).tan()}function Lr(e){return new this(e).tanh()}function Fr(e){return m(e=new this(e),e.e+1,1)}p[Symbol.for("nodejs.util.inspect.custom")]=p.toString;p[Symbol.toStringTag]="Decimal";var Q=p.constructor=Ue(be);he=new Q(he);pe=new Q(pe);var $=class e{constructor(r,t){if(r.length-1!==t.length)throw r.length===0?new TypeError("Expected at least 1 string"):new TypeError(`Expected ${r.length} strings to have ${r.length-1} values`);let n=t.reduce((s,f)=>s+(f instanceof e?f.values.length:1),0);this.values=new Array(n),this.strings=new Array(n+1),this.strings[0]=r[0];let o=0,i=0;for(;o<t.length;){let s=t[o++],f=r[o];if(s instanceof e){this.strings[i]+=s.strings[0];let a=0;for(;a<s.values.length;)this.values[i++]=s.values[a++],this.strings[i]=s.strings[a];this.strings[i]+=f}else this.values[i++]=s,this.strings[i]=f}}get sql(){let r=this.strings.length,t=1,n=this.strings[0];for(;t<r;)n+=`?${this.strings[t++]}`;return n}get statement(){let r=this.strings.length,t=1,n=this.strings[0];for(;t<r;)n+=`:${t}${this.strings[t++]}`;return n}get text(){let r=this.strings.length,t=1,n=this.strings[0];for(;t<r;)n+=`$${t}${this.strings[t++]}`;return n}inspect(){return{sql:this.sql,statement:this.statement,text:this.text,values:this.values}}};function _r(e,r=",",t="",n=""){if(e.length===0)throw new TypeError("Expected `join([])` to be called with an array of multiple elements, but got an empty array");return new $([t,...Array(e.length-1).fill(r),n],e)}function Ge(e){return new $([e],[])}var Vr=Ge("");function Ze(e,...r){return new $(e,r)}export{Q as Decimal,ae as ObjectEnumValue,ne as PrismaClientInitializationError,ie as PrismaClientKnownRequestError,oe as PrismaClientRustPanicError,se as PrismaClientUnknownRequestError,fe as PrismaClientValidationError,$ as Sql,Vr as empty,_r as join,We as objectEnumValues,Ge as raw,Ze as sqltag};
2
+ /*! Bundled license information:
3
+
4
+ decimal.js/decimal.mjs:
5
+ (*!
6
+ * decimal.js v10.5.0
7
+ * An arbitrary-precision Decimal type for JavaScript.
8
+ * https://github.com/MikeMcl/decimal.js
9
+ * Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
10
+ * MIT Licence
11
+ *)
12
+ */
13
+ //# sourceMappingURL=utilities.mjs.map