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.
- package/build/index.js +745 -733
- package/package.json +14 -14
- package/prisma-client/extension.d.ts +1 -0
- package/prisma-client/extension.js +1 -0
- package/prisma-client/generator-build/index.js +10 -3
- package/prisma-client/package.json +7 -1
- package/prisma-client/runtime/binary.js +105 -114
- package/prisma-client/runtime/binary.js.map +4 -4
- package/prisma-client/runtime/binary.mjs +105 -114
- package/prisma-client/runtime/binary.mjs.map +4 -4
- package/prisma-client/runtime/client.js +38 -47
- package/prisma-client/runtime/client.js.map +4 -4
- package/prisma-client/runtime/client.mjs +38 -47
- package/prisma-client/runtime/client.mjs.map +4 -4
- package/prisma-client/runtime/edge-esm.js +18 -18
- package/prisma-client/runtime/edge-esm.js.map +4 -4
- package/prisma-client/runtime/edge.js +18 -18
- package/prisma-client/runtime/edge.js.map +4 -4
- package/prisma-client/runtime/index-browser.js +1 -12
- package/prisma-client/runtime/index-browser.js.map +4 -4
- package/prisma-client/runtime/index-browser.mjs +1 -12
- package/prisma-client/runtime/index-browser.mjs.map +4 -4
- package/prisma-client/runtime/library.js +56 -67
- package/prisma-client/runtime/library.js.map +4 -4
- package/prisma-client/runtime/library.mjs +56 -67
- package/prisma-client/runtime/library.mjs.map +4 -4
- package/prisma-client/runtime/react-native.js +31 -31
- package/prisma-client/runtime/react-native.js.map +4 -4
- package/prisma-client/runtime/utilities.d.mts +414 -0
- package/prisma-client/runtime/utilities.d.ts +414 -0
- package/prisma-client/runtime/utilities.js +13 -0
- package/prisma-client/runtime/utilities.js.map +7 -0
- package/prisma-client/runtime/utilities.mjs +13 -0
- package/prisma-client/runtime/utilities.mjs.map +7 -0
- package/prisma-client/scripts/default-index.js +1 -1
|
@@ -0,0 +1,414 @@
|
|
|
1
|
+
declare class AnyNull extends NullTypesEnumValue {
|
|
2
|
+
#private;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
declare class DbNull extends NullTypesEnumValue {
|
|
6
|
+
#private;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export declare function Decimal(n: Decimal.Value): Decimal;
|
|
10
|
+
|
|
11
|
+
export declare namespace Decimal {
|
|
12
|
+
export type Constructor = typeof Decimal;
|
|
13
|
+
export type Instance = Decimal;
|
|
14
|
+
export type Rounding = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
|
|
15
|
+
export type Modulo = Rounding | 9;
|
|
16
|
+
export type Value = string | number | Decimal;
|
|
17
|
+
|
|
18
|
+
// http://mikemcl.github.io/decimal.js/#constructor-properties
|
|
19
|
+
export interface Config {
|
|
20
|
+
precision?: number;
|
|
21
|
+
rounding?: Rounding;
|
|
22
|
+
toExpNeg?: number;
|
|
23
|
+
toExpPos?: number;
|
|
24
|
+
minE?: number;
|
|
25
|
+
maxE?: number;
|
|
26
|
+
crypto?: boolean;
|
|
27
|
+
modulo?: Modulo;
|
|
28
|
+
defaults?: boolean;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export declare class Decimal {
|
|
33
|
+
readonly d: number[];
|
|
34
|
+
readonly e: number;
|
|
35
|
+
readonly s: number;
|
|
36
|
+
|
|
37
|
+
constructor(n: Decimal.Value);
|
|
38
|
+
|
|
39
|
+
absoluteValue(): Decimal;
|
|
40
|
+
abs(): Decimal;
|
|
41
|
+
|
|
42
|
+
ceil(): Decimal;
|
|
43
|
+
|
|
44
|
+
clampedTo(min: Decimal.Value, max: Decimal.Value): Decimal;
|
|
45
|
+
clamp(min: Decimal.Value, max: Decimal.Value): Decimal;
|
|
46
|
+
|
|
47
|
+
comparedTo(n: Decimal.Value): number;
|
|
48
|
+
cmp(n: Decimal.Value): number;
|
|
49
|
+
|
|
50
|
+
cosine(): Decimal;
|
|
51
|
+
cos(): Decimal;
|
|
52
|
+
|
|
53
|
+
cubeRoot(): Decimal;
|
|
54
|
+
cbrt(): Decimal;
|
|
55
|
+
|
|
56
|
+
decimalPlaces(): number;
|
|
57
|
+
dp(): number;
|
|
58
|
+
|
|
59
|
+
dividedBy(n: Decimal.Value): Decimal;
|
|
60
|
+
div(n: Decimal.Value): Decimal;
|
|
61
|
+
|
|
62
|
+
dividedToIntegerBy(n: Decimal.Value): Decimal;
|
|
63
|
+
divToInt(n: Decimal.Value): Decimal;
|
|
64
|
+
|
|
65
|
+
equals(n: Decimal.Value): boolean;
|
|
66
|
+
eq(n: Decimal.Value): boolean;
|
|
67
|
+
|
|
68
|
+
floor(): Decimal;
|
|
69
|
+
|
|
70
|
+
greaterThan(n: Decimal.Value): boolean;
|
|
71
|
+
gt(n: Decimal.Value): boolean;
|
|
72
|
+
|
|
73
|
+
greaterThanOrEqualTo(n: Decimal.Value): boolean;
|
|
74
|
+
gte(n: Decimal.Value): boolean;
|
|
75
|
+
|
|
76
|
+
hyperbolicCosine(): Decimal;
|
|
77
|
+
cosh(): Decimal;
|
|
78
|
+
|
|
79
|
+
hyperbolicSine(): Decimal;
|
|
80
|
+
sinh(): Decimal;
|
|
81
|
+
|
|
82
|
+
hyperbolicTangent(): Decimal;
|
|
83
|
+
tanh(): Decimal;
|
|
84
|
+
|
|
85
|
+
inverseCosine(): Decimal;
|
|
86
|
+
acos(): Decimal;
|
|
87
|
+
|
|
88
|
+
inverseHyperbolicCosine(): Decimal;
|
|
89
|
+
acosh(): Decimal;
|
|
90
|
+
|
|
91
|
+
inverseHyperbolicSine(): Decimal;
|
|
92
|
+
asinh(): Decimal;
|
|
93
|
+
|
|
94
|
+
inverseHyperbolicTangent(): Decimal;
|
|
95
|
+
atanh(): Decimal;
|
|
96
|
+
|
|
97
|
+
inverseSine(): Decimal;
|
|
98
|
+
asin(): Decimal;
|
|
99
|
+
|
|
100
|
+
inverseTangent(): Decimal;
|
|
101
|
+
atan(): Decimal;
|
|
102
|
+
|
|
103
|
+
isFinite(): boolean;
|
|
104
|
+
|
|
105
|
+
isInteger(): boolean;
|
|
106
|
+
isInt(): boolean;
|
|
107
|
+
|
|
108
|
+
isNaN(): boolean;
|
|
109
|
+
|
|
110
|
+
isNegative(): boolean;
|
|
111
|
+
isNeg(): boolean;
|
|
112
|
+
|
|
113
|
+
isPositive(): boolean;
|
|
114
|
+
isPos(): boolean;
|
|
115
|
+
|
|
116
|
+
isZero(): boolean;
|
|
117
|
+
|
|
118
|
+
lessThan(n: Decimal.Value): boolean;
|
|
119
|
+
lt(n: Decimal.Value): boolean;
|
|
120
|
+
|
|
121
|
+
lessThanOrEqualTo(n: Decimal.Value): boolean;
|
|
122
|
+
lte(n: Decimal.Value): boolean;
|
|
123
|
+
|
|
124
|
+
logarithm(n?: Decimal.Value): Decimal;
|
|
125
|
+
log(n?: Decimal.Value): Decimal;
|
|
126
|
+
|
|
127
|
+
minus(n: Decimal.Value): Decimal;
|
|
128
|
+
sub(n: Decimal.Value): Decimal;
|
|
129
|
+
|
|
130
|
+
modulo(n: Decimal.Value): Decimal;
|
|
131
|
+
mod(n: Decimal.Value): Decimal;
|
|
132
|
+
|
|
133
|
+
naturalExponential(): Decimal;
|
|
134
|
+
exp(): Decimal;
|
|
135
|
+
|
|
136
|
+
naturalLogarithm(): Decimal;
|
|
137
|
+
ln(): Decimal;
|
|
138
|
+
|
|
139
|
+
negated(): Decimal;
|
|
140
|
+
neg(): Decimal;
|
|
141
|
+
|
|
142
|
+
plus(n: Decimal.Value): Decimal;
|
|
143
|
+
add(n: Decimal.Value): Decimal;
|
|
144
|
+
|
|
145
|
+
precision(includeZeros?: boolean): number;
|
|
146
|
+
sd(includeZeros?: boolean): number;
|
|
147
|
+
|
|
148
|
+
round(): Decimal;
|
|
149
|
+
|
|
150
|
+
sine() : Decimal;
|
|
151
|
+
sin() : Decimal;
|
|
152
|
+
|
|
153
|
+
squareRoot(): Decimal;
|
|
154
|
+
sqrt(): Decimal;
|
|
155
|
+
|
|
156
|
+
tangent() : Decimal;
|
|
157
|
+
tan() : Decimal;
|
|
158
|
+
|
|
159
|
+
times(n: Decimal.Value): Decimal;
|
|
160
|
+
mul(n: Decimal.Value) : Decimal;
|
|
161
|
+
|
|
162
|
+
toBinary(significantDigits?: number): string;
|
|
163
|
+
toBinary(significantDigits: number, rounding: Decimal.Rounding): string;
|
|
164
|
+
|
|
165
|
+
toDecimalPlaces(decimalPlaces?: number): Decimal;
|
|
166
|
+
toDecimalPlaces(decimalPlaces: number, rounding: Decimal.Rounding): Decimal;
|
|
167
|
+
toDP(decimalPlaces?: number): Decimal;
|
|
168
|
+
toDP(decimalPlaces: number, rounding: Decimal.Rounding): Decimal;
|
|
169
|
+
|
|
170
|
+
toExponential(decimalPlaces?: number): string;
|
|
171
|
+
toExponential(decimalPlaces: number, rounding: Decimal.Rounding): string;
|
|
172
|
+
|
|
173
|
+
toFixed(decimalPlaces?: number): string;
|
|
174
|
+
toFixed(decimalPlaces: number, rounding: Decimal.Rounding): string;
|
|
175
|
+
|
|
176
|
+
toFraction(max_denominator?: Decimal.Value): Decimal[];
|
|
177
|
+
|
|
178
|
+
toHexadecimal(significantDigits?: number): string;
|
|
179
|
+
toHexadecimal(significantDigits: number, rounding: Decimal.Rounding): string;
|
|
180
|
+
toHex(significantDigits?: number): string;
|
|
181
|
+
toHex(significantDigits: number, rounding?: Decimal.Rounding): string;
|
|
182
|
+
|
|
183
|
+
toJSON(): string;
|
|
184
|
+
|
|
185
|
+
toNearest(n: Decimal.Value, rounding?: Decimal.Rounding): Decimal;
|
|
186
|
+
|
|
187
|
+
toNumber(): number;
|
|
188
|
+
|
|
189
|
+
toOctal(significantDigits?: number): string;
|
|
190
|
+
toOctal(significantDigits: number, rounding: Decimal.Rounding): string;
|
|
191
|
+
|
|
192
|
+
toPower(n: Decimal.Value): Decimal;
|
|
193
|
+
pow(n: Decimal.Value): Decimal;
|
|
194
|
+
|
|
195
|
+
toPrecision(significantDigits?: number): string;
|
|
196
|
+
toPrecision(significantDigits: number, rounding: Decimal.Rounding): string;
|
|
197
|
+
|
|
198
|
+
toSignificantDigits(significantDigits?: number): Decimal;
|
|
199
|
+
toSignificantDigits(significantDigits: number, rounding: Decimal.Rounding): Decimal;
|
|
200
|
+
toSD(significantDigits?: number): Decimal;
|
|
201
|
+
toSD(significantDigits: number, rounding: Decimal.Rounding): Decimal;
|
|
202
|
+
|
|
203
|
+
toString(): string;
|
|
204
|
+
|
|
205
|
+
truncated(): Decimal;
|
|
206
|
+
trunc(): Decimal;
|
|
207
|
+
|
|
208
|
+
valueOf(): string;
|
|
209
|
+
|
|
210
|
+
static abs(n: Decimal.Value): Decimal;
|
|
211
|
+
static acos(n: Decimal.Value): Decimal;
|
|
212
|
+
static acosh(n: Decimal.Value): Decimal;
|
|
213
|
+
static add(x: Decimal.Value, y: Decimal.Value): Decimal;
|
|
214
|
+
static asin(n: Decimal.Value): Decimal;
|
|
215
|
+
static asinh(n: Decimal.Value): Decimal;
|
|
216
|
+
static atan(n: Decimal.Value): Decimal;
|
|
217
|
+
static atanh(n: Decimal.Value): Decimal;
|
|
218
|
+
static atan2(y: Decimal.Value, x: Decimal.Value): Decimal;
|
|
219
|
+
static cbrt(n: Decimal.Value): Decimal;
|
|
220
|
+
static ceil(n: Decimal.Value): Decimal;
|
|
221
|
+
static clamp(n: Decimal.Value, min: Decimal.Value, max: Decimal.Value): Decimal;
|
|
222
|
+
static clone(object?: Decimal.Config): Decimal.Constructor;
|
|
223
|
+
static config(object: Decimal.Config): Decimal.Constructor;
|
|
224
|
+
static cos(n: Decimal.Value): Decimal;
|
|
225
|
+
static cosh(n: Decimal.Value): Decimal;
|
|
226
|
+
static div(x: Decimal.Value, y: Decimal.Value): Decimal;
|
|
227
|
+
static exp(n: Decimal.Value): Decimal;
|
|
228
|
+
static floor(n: Decimal.Value): Decimal;
|
|
229
|
+
static hypot(...n: Decimal.Value[]): Decimal;
|
|
230
|
+
static isDecimal(object: any): object is Decimal;
|
|
231
|
+
static ln(n: Decimal.Value): Decimal;
|
|
232
|
+
static log(n: Decimal.Value, base?: Decimal.Value): Decimal;
|
|
233
|
+
static log2(n: Decimal.Value): Decimal;
|
|
234
|
+
static log10(n: Decimal.Value): Decimal;
|
|
235
|
+
static max(...n: Decimal.Value[]): Decimal;
|
|
236
|
+
static min(...n: Decimal.Value[]): Decimal;
|
|
237
|
+
static mod(x: Decimal.Value, y: Decimal.Value): Decimal;
|
|
238
|
+
static mul(x: Decimal.Value, y: Decimal.Value): Decimal;
|
|
239
|
+
static noConflict(): Decimal.Constructor; // Browser only
|
|
240
|
+
static pow(base: Decimal.Value, exponent: Decimal.Value): Decimal;
|
|
241
|
+
static random(significantDigits?: number): Decimal;
|
|
242
|
+
static round(n: Decimal.Value): Decimal;
|
|
243
|
+
static set(object: Decimal.Config): Decimal.Constructor;
|
|
244
|
+
static sign(n: Decimal.Value): number;
|
|
245
|
+
static sin(n: Decimal.Value): Decimal;
|
|
246
|
+
static sinh(n: Decimal.Value): Decimal;
|
|
247
|
+
static sqrt(n: Decimal.Value): Decimal;
|
|
248
|
+
static sub(x: Decimal.Value, y: Decimal.Value): Decimal;
|
|
249
|
+
static sum(...n: Decimal.Value[]): Decimal;
|
|
250
|
+
static tan(n: Decimal.Value): Decimal;
|
|
251
|
+
static tanh(n: Decimal.Value): Decimal;
|
|
252
|
+
static trunc(n: Decimal.Value): Decimal;
|
|
253
|
+
|
|
254
|
+
static readonly default?: Decimal.Constructor;
|
|
255
|
+
static readonly Decimal?: Decimal.Constructor;
|
|
256
|
+
|
|
257
|
+
static readonly precision: number;
|
|
258
|
+
static readonly rounding: Decimal.Rounding;
|
|
259
|
+
static readonly toExpNeg: number;
|
|
260
|
+
static readonly toExpPos: number;
|
|
261
|
+
static readonly minE: number;
|
|
262
|
+
static readonly maxE: number;
|
|
263
|
+
static readonly crypto: boolean;
|
|
264
|
+
static readonly modulo: Decimal.Modulo;
|
|
265
|
+
|
|
266
|
+
static readonly ROUND_UP: 0;
|
|
267
|
+
static readonly ROUND_DOWN: 1;
|
|
268
|
+
static readonly ROUND_CEIL: 2;
|
|
269
|
+
static readonly ROUND_FLOOR: 3;
|
|
270
|
+
static readonly ROUND_HALF_UP: 4;
|
|
271
|
+
static readonly ROUND_HALF_DOWN: 5;
|
|
272
|
+
static readonly ROUND_HALF_EVEN: 6;
|
|
273
|
+
static readonly ROUND_HALF_CEIL: 7;
|
|
274
|
+
static readonly ROUND_HALF_FLOOR: 8;
|
|
275
|
+
static readonly EUCLID: 9;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* Placeholder value for "no text".
|
|
280
|
+
*/
|
|
281
|
+
export declare const empty: Sql;
|
|
282
|
+
|
|
283
|
+
declare interface ErrorWithBatchIndex {
|
|
284
|
+
batchRequestIdx?: number;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* Create a SQL query for a list of values.
|
|
289
|
+
*/
|
|
290
|
+
export declare function join(values: readonly RawValue[], separator?: string, prefix?: string, suffix?: string): Sql;
|
|
291
|
+
|
|
292
|
+
declare class JsonNull extends NullTypesEnumValue {
|
|
293
|
+
#private;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
declare type KnownErrorParams = {
|
|
297
|
+
code: string;
|
|
298
|
+
clientVersion: string;
|
|
299
|
+
meta?: Record<string, unknown>;
|
|
300
|
+
batchRequestIdx?: number;
|
|
301
|
+
};
|
|
302
|
+
|
|
303
|
+
declare class NullTypesEnumValue extends ObjectEnumValue {
|
|
304
|
+
_getNamespace(): string;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* Base class for unique values of object-valued enums.
|
|
309
|
+
*/
|
|
310
|
+
export declare abstract class ObjectEnumValue {
|
|
311
|
+
constructor(arg?: symbol);
|
|
312
|
+
abstract _getNamespace(): string;
|
|
313
|
+
_getName(): string;
|
|
314
|
+
toString(): string;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
export declare const objectEnumValues: {
|
|
318
|
+
classes: {
|
|
319
|
+
DbNull: typeof DbNull;
|
|
320
|
+
JsonNull: typeof JsonNull;
|
|
321
|
+
AnyNull: typeof AnyNull;
|
|
322
|
+
};
|
|
323
|
+
instances: {
|
|
324
|
+
DbNull: DbNull;
|
|
325
|
+
JsonNull: JsonNull;
|
|
326
|
+
AnyNull: AnyNull;
|
|
327
|
+
};
|
|
328
|
+
};
|
|
329
|
+
|
|
330
|
+
declare type Options = {
|
|
331
|
+
clientVersion: string;
|
|
332
|
+
};
|
|
333
|
+
|
|
334
|
+
export declare class PrismaClientInitializationError extends Error {
|
|
335
|
+
clientVersion: string;
|
|
336
|
+
errorCode?: string;
|
|
337
|
+
retryable?: boolean;
|
|
338
|
+
constructor(message: string, clientVersion: string, errorCode?: string);
|
|
339
|
+
get [Symbol.toStringTag](): string;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
export declare class PrismaClientKnownRequestError extends Error implements ErrorWithBatchIndex {
|
|
343
|
+
code: string;
|
|
344
|
+
meta?: Record<string, unknown>;
|
|
345
|
+
clientVersion: string;
|
|
346
|
+
batchRequestIdx?: number;
|
|
347
|
+
constructor(message: string, { code, clientVersion, meta, batchRequestIdx }: KnownErrorParams);
|
|
348
|
+
get [Symbol.toStringTag](): string;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
export declare class PrismaClientRustPanicError extends Error {
|
|
352
|
+
clientVersion: string;
|
|
353
|
+
constructor(message: string, clientVersion: string);
|
|
354
|
+
get [Symbol.toStringTag](): string;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
export declare class PrismaClientUnknownRequestError extends Error implements ErrorWithBatchIndex {
|
|
358
|
+
clientVersion: string;
|
|
359
|
+
batchRequestIdx?: number;
|
|
360
|
+
constructor(message: string, { clientVersion, batchRequestIdx }: UnknownErrorParams);
|
|
361
|
+
get [Symbol.toStringTag](): string;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
export declare class PrismaClientValidationError extends Error {
|
|
365
|
+
name: string;
|
|
366
|
+
clientVersion: string;
|
|
367
|
+
constructor(message: string, { clientVersion }: Options);
|
|
368
|
+
get [Symbol.toStringTag](): string;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* Create raw SQL statement.
|
|
373
|
+
*/
|
|
374
|
+
export declare function raw(value: string): Sql;
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Supported value or SQL instance.
|
|
378
|
+
*/
|
|
379
|
+
export declare type RawValue = Value | Sql;
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* A SQL instance can be nested within each other to build SQL strings.
|
|
383
|
+
*/
|
|
384
|
+
export declare class Sql {
|
|
385
|
+
readonly values: Value[];
|
|
386
|
+
readonly strings: string[];
|
|
387
|
+
constructor(rawStrings: readonly string[], rawValues: readonly RawValue[]);
|
|
388
|
+
get sql(): string;
|
|
389
|
+
get statement(): string;
|
|
390
|
+
get text(): string;
|
|
391
|
+
inspect(): {
|
|
392
|
+
sql: string;
|
|
393
|
+
statement: string;
|
|
394
|
+
text: string;
|
|
395
|
+
values: unknown[];
|
|
396
|
+
};
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* Create a SQL object from a template string.
|
|
401
|
+
*/
|
|
402
|
+
export declare function sqltag(strings: readonly string[], ...values: readonly RawValue[]): Sql;
|
|
403
|
+
|
|
404
|
+
declare type UnknownErrorParams = {
|
|
405
|
+
clientVersion: string;
|
|
406
|
+
batchRequestIdx?: number;
|
|
407
|
+
};
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* Values supported by SQL engine.
|
|
411
|
+
*/
|
|
412
|
+
export declare type Value = unknown;
|
|
413
|
+
|
|
414
|
+
export { }
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";var xe=Object.defineProperty;var Ke=Object.getOwnPropertyDescriptor;var Je=Object.getOwnPropertyNames;var Xe=Object.prototype.hasOwnProperty;var ze=(e,r)=>{for(var t in r)xe(e,t,{get:r[t],enumerable:!0})},Qe=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Je(r))!Xe.call(e,i)&&i!==t&&xe(e,i,{get:()=>r[i],enumerable:!(n=Ke(r,i))||n.enumerable});return e};var Ye=e=>Qe(xe({},"__esModule",{value:!0}),e);var jr={};ze(jr,{Decimal:()=>H,ObjectEnumValue:()=>Y,PrismaClientInitializationError:()=>K,PrismaClientKnownRequestError:()=>J,PrismaClientRustPanicError:()=>X,PrismaClientUnknownRequestError:()=>z,PrismaClientValidationError:()=>Q,Sql:()=>Z,empty:()=>je,join:()=>He,objectEnumValues:()=>Me,raw:()=>Re,sqltag:()=>qe});module.exports=Ye(jr);function y(e,r){Object.defineProperty(e,"name",{value:r,configurable:!0})}var K=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(K,"PrismaClientInitializationError");var J=class extends Error{code;meta;clientVersion;batchRequestIdx;constructor(r,{code:t,clientVersion:n,meta:i,batchRequestIdx:o}){super(r),this.name="PrismaClientKnownRequestError",this.code=t,this.clientVersion=n,this.meta=i,Object.defineProperty(this,"batchRequestIdx",{value:o,enumerable:!1,writable:!0})}get[Symbol.toStringTag](){return"PrismaClientKnownRequestError"}};y(J,"PrismaClientKnownRequestError");var X=class extends Error{clientVersion;constructor(r,t){super(r),this.name="PrismaClientRustPanicError",this.clientVersion=t}get[Symbol.toStringTag](){return"PrismaClientRustPanicError"}};y(X,"PrismaClientRustPanicError");var z=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(z,"PrismaClientUnknownRequestError");var Q=class extends Error{name="PrismaClientValidationError";clientVersion;constructor(r,{clientVersion:t}){super(r),this.clientVersion=t}get[Symbol.toStringTag](){return"PrismaClientValidationError"}};y(Q,"PrismaClientValidationError");var ae=Symbol(),Pe=new WeakMap,Y=class{constructor(r){r===ae?Pe.set(this,`Prisma.${this._getName()}`):Pe.set(this,`new Prisma.${this._getNamespace()}.${this._getName()}()`)}_getName(){return this.constructor.name}toString(){return Pe.get(this)}},ee=class extends Y{_getNamespace(){return"NullTypes"}},re=class extends ee{#e};Ce(re,"DbNull");var te=class extends ee{#e};Ce(te,"JsonNull");var ne=class extends ee{#e};Ce(ne,"AnyNull");var Me={classes:{DbNull:re,JsonNull:te,AnyNull:ne},instances:{DbNull:new re(ae),JsonNull:new te(ae),AnyNull:new ne(ae)}};function Ce(e,r){Object.defineProperty(e,"name",{value:r,configurable:!0})}var W=9e15,G=1e9,be="0123456789abcdef",he="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",pe="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",Se={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-W,maxE:W,crypto:!1},De,_,w=!0,de="[DecimalError] ",U=de+"Invalid argument: ",Le=de+"Precision limit exceeded",Fe=de+"crypto unavailable",_e="[object Decimal]",I=Math.floor,b=Math.pow,er=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,rr=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,tr=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,Ve=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,A=1e7,g=7,nr=9007199254740991,ir=he.length-1,ke=pe.length-1,p={toStringTag:_e};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,i=n.constructor;if(e=new i(e),r=new i(r),!e.s||!r.s)return new i(NaN);if(e.gt(r))throw Error(U+r);return t=n.cmp(e),t<0?e:n.cmp(r)>0?r:new i(n)};p.comparedTo=p.cmp=function(e){var r,t,n,i,o=this,s=o.d,f=(e=new o.constructor(e)).d,a=o.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(o.e!==e.e)return o.e>e.e^a<0?1:-1;for(n=s.length,i=f.length,r=0,t=n<i?n:i;r<t;++r)if(s[r]!==f[r])return s[r]>f[r]^a<0?1:-1;return n===i?0:n>i^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=or(n,We(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,i,o,s,f,a,u,l=this,c=l.constructor;if(!l.isFinite()||l.isZero())return new c(l);for(w=!1,o=l.s*b(l.s*l,1/3),!o||Math.abs(o)==1/0?(t=S(l.d),e=l.e,(o=(e-t.length+1)%3)&&(t+=o==1||o==-2?"0":"00"),o=b(t,1/3),e=I((e+1)/3)-(e%3==(e<0?-1:2)),o==1/0?t="5e"+e:(t=o.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new c(t),n.s=l.s):n=new c(o.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"||!i&&t=="4999"){if(!i&&(m(f,e+1,0),f.times(f).times(f).eq(l))){n=f;break}s+=4,i=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,i,o=this,s=o.constructor,f=new s(1);if(!o.isFinite())return new s(o.s?1/0:NaN);if(o.isZero())return f;t=s.precision,n=s.rounding,s.precision=t+Math.max(o.e,o.sd())+4,s.rounding=1,i=o.d.length,i<32?(e=Math.ceil(i/3),r=(1/we(4,e)).toString()):(e=16,r="2.3283064365386962890625e-10"),o=$(s,1,o.times(r),new s(1),!0);for(var a,u=e,l=new s(8);u--;)a=o.times(o),o=f.minus(a.times(l.minus(a.times(l))));return m(o,s.precision=t,s.rounding=n,!0)};p.hyperbolicSine=p.sinh=function(){var e,r,t,n,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(r=o.precision,t=o.rounding,o.precision=r+Math.max(i.e,i.sd())+4,o.rounding=1,n=i.d.length,n<3)i=$(o,2,i,i,!0);else{e=1.4*Math.sqrt(n),e=e>16?16:e|0,i=i.times(1/we(5,e)),i=$(o,2,i,i,!0);for(var s,f=new o(5),a=new o(16),u=new o(20);e--;)s=i.times(i),i=i.times(f.plus(s.times(a.times(s).plus(u))))}return o.precision=r,o.rounding=t,m(i,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,i=r.rounding;return t!==-1?t===0?e.isNeg()?D(r,n,i):new r(0):new r(NaN):e.isZero()?D(r,n+4,i).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=i,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,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=o.precision,r=o.rounding,n=i.sd(),Math.max(n,e)<2*-i.e-1?m(new o(i),e,r,!0):(o.precision=t=n-i.e,i=x(i.plus(1),new o(1).minus(i),t+e,1),o.precision=e+4,o.rounding=1,i=i.ln(),o.precision=e,o.rounding=r,i.times(.5))):new o(NaN)};p.inverseSine=p.asin=function(){var e,r,t,n,i=this,o=i.constructor;return i.isZero()?new o(i):(r=i.abs().cmp(1),t=o.precision,n=o.rounding,r!==-1?r===0?(e=D(o,t+4,n).times(.5),e.s=i.s,e):new o(NaN):(o.precision=t+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=t,o.rounding=n,i.times(2)))};p.inverseTangent=p.atan=function(){var e,r,t,n,i,o,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<=ke)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<=ke)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),i=u;e!==-1;)if(i=i.times(a),o=s.minus(i.div(n+=2)),i=i.times(a),s=o.plus(i.div(n+=2)),s.d[r]!==void 0)for(e=r;s.d[e]===o.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,i,o,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)o=!0;else{for(i=t[0];i%10===0;)i/=10;o=i!==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),ie(a.d,i=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),!o){+S(a.d).slice(i+1,i+15)+1==1e14&&(a=m(a,c+1,0));break}while(ie(a.d,i+=10,h));return w=!0,m(a,c,h)};p.minus=p.sub=function(e){var r,t,n,i,o,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(),o=l-t,o){for(c=o<0,c?(r=u,o=-o,s=h.length):(r=h,t=l,s=u.length),n=Math.max(Math.ceil(f/g),s)+2,o>n&&(o=n,r.length=1),r.reverse(),n=o;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}o=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>o;){if(u[--n]<h[n]){for(i=n;i&&u[--i]===0;)u[i]=A-1;--u[i],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 Te(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,i,o,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(o=I(c.e/g),n=I(e.e/g),u=u.slice(),i=o-n,i){for(i<0?(t=u,i=-i,s=l.length):(t=l,n=o,s=u.length),o=Math.ceil(f/g),s=o>s?o+1:s+1,i>s&&(i=s,t.length=1),t.reverse();i--;)t.push(0);t.reverse()}for(s=u.length,i=l.length,s-i<0&&(i=s,t=l,l=u,u=t),r=0;i;)r=(u[--i]=u[i]+l[i]+r)/A|0,u[i]%=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=Be(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=fr(n,We(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,i,o,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(o=n,n=o.plus(x(s,o,t+2,1)).times(.5),S(o.d).slice(0,t)===(r=S(n.d)).slice(0,t))if(r=r.slice(t-3,t+1),r=="9999"||!i&&r=="4999"){if(!i&&(m(o,a+1,0),o.times(o).eq(s))){n=o;break}t+=4,i=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,i,o,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&&(o=h,h=d,d=o,s=a,a=u,u=s),o=[],s=a+u,n=s;n--;)o.push(0);for(n=u;--n>=0;){for(r=0,i=a+n;i>n;)f=o[i]+d[n]*h[i-n-1]+r,o[i--]=f%A|0,r=f/A|0;o[i]=(o[i]+r)%A|0}for(;!o[--s];)o.pop();return r?++t:o.shift(),e.d=o,e.e=ge(o,t),w?m(e,c.precision,c.rounding):e};p.toBinary=function(e,r){return Ie(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,i=n.constructor;return e===void 0?t=L(n,!0):(q(e,0,G),r===void 0?r=i.rounding:q(r,0,8),n=m(new i(n),e+1,r),t=L(n,!0,e+1)),n.isNeg()&&!n.isZero()?"-"+t:t};p.toFixed=function(e,r){var t,n,i=this,o=i.constructor;return e===void 0?t=L(i):(q(e,0,G),r===void 0?r=o.rounding:q(r,0,8),n=m(new o(i),e+i.e+1,r),t=L(n,!1,e+n.e+1)),i.isNeg()&&!i.isZero()?"-"+t:t};p.toFraction=function(e){var r,t,n,i,o,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),o=r.e=Be(v)-d.e-1,s=o%g,r.d[0]=b(10,s<0?g+s:s),e==null)e=o>0?r:u;else{if(f=new N(e),!f.isInt()||f.lt(u))throw Error(U+f);e=f.gt(r)?o>0?r:u:f}for(w=!1,f=new N(S(v)),l=N.precision,N.precision=o=v.length*g*2;c=x(f,r,0,1,1),i=t.plus(c.times(n)),i.cmp(e)!=1;)t=n,n=i,i=u,u=a.plus(c.times(i)),a=i,i=r,r=f.minus(c.times(i)),f=i;return i=x(e.minus(t),n,0,1,1),a=a.plus(i.times(u)),t=t.plus(i.times(n)),a.s=u.s=d.s,h=x(u,n,o,1).minus(d).abs().cmp(x(a,t,o,1).minus(d).abs())<1?[u,n]:[a,t],N.precision=l,w=!0,h};p.toHexadecimal=p.toHex=function(e,r){return Ie(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 Ie(this,8,e,r)};p.toPower=p.pow=function(e){var r,t,n,i,o,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,o=a.rounding,e.eq(1))return m(f,n,o);if(r=I(e.e/g),r>=e.d.length-1&&(t=u<0?-u:u)<=nr)return i=Ue(a,f,t,n),e.s<0?new a(1).div(i):m(i,n,o);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),i=Te(e.times(B(f,n+t)),n),i.d&&(i=m(i,n+5,1),ie(i.d,n,o)&&(r=n+10,i=m(Te(e.times(B(f,r+t)),r),r+5,1),+S(i.d).slice(n+1,n+15)+1==1e14&&(i=m(i,n+1,0)))),i.s=s,w=!0,a.rounding=o,m(i,n,o))};p.toPrecision=function(e,r){var t,n=this,i=n.constructor;return e===void 0?t=L(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(q(e,1,G),r===void 0?r=i.rounding:q(r,0,8),n=m(new i(n),e,r),t=L(n,e<=n.e||n.e<=i.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,i=e.length-1,o="",s=e[0];if(i>0){for(o+=s,r=1;r<i;r++)n=e[r]+"",t=g-n.length,t&&(o+=V(t)),o+=n;s=e[r],n=s+"",t=g-n.length,t&&(o+=V(t))}else if(s===0)return"0";for(;s%10===0;)s/=10;return o+s}function q(e,r,t){if(e!==~~e||e<r||e>t)throw Error(U+e)}function ie(e,r,t,n){var i,o,s,f;for(o=e[0];o>=10;o/=10)--r;return--r<0?(r+=g,i=0):(i=Math.ceil((r+1)/g),r%=g),o=b(10,g-r),f=e[i]%o|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==o||t>3&&f+1==o/2)&&(e[i+1]/o/100|0)==b(10,r-2)-1||(f==o/2||f==0)&&(e[i+1]/o/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==o||!n&&t>3&&f+1==o/2)&&(e[i+1]/o/1e3|0)==b(10,r-3)-1,s}function le(e,r,t){for(var n,i=[0],o,s=0,f=e.length;s<f;){for(o=i.length;o--;)i[o]*=r;for(i[0]+=be.indexOf(e.charAt(s++)),n=0;n<i.length;n++)i[n]>t-1&&(i[n+1]===void 0&&(i[n+1]=0),i[n+1]+=i[n]/t|0,i[n]%=t)}return i.reverse()}function or(e,r){var t,n,i;if(r.isZero())return r;n=r.d.length,n<32?(t=Math.ceil(n/3),i=(1/we(4,t)).toString()):(t=16,i="2.3283064365386962890625e-10"),e.precision+=t,r=$(e,1,r.times(i),new e(1));for(var o=t;o--;){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,i,o){var s,f=0,a=n.length;for(n=n.slice();a--;)s=n[a]*i+f,n[a]=s%o|0,f=s/o|0;return f&&n.unshift(f),n}function r(n,i,o,s){var f,a;if(o!=s)a=o>s?1:-1;else for(f=a=0;f<o;f++)if(n[f]!=i[f]){a=n[f]>i[f]?1:-1;break}return a}function t(n,i,o,s){for(var f=0;o--;)n[o]-=f,f=n[o]<i[o]?1:0,n[o]=f*s+n[o]-i[o];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,o,s,f,a){var u,l,c,h,d,v,N,R,C,M,E,k,oe,F,Ne,se,j,ve,O,fe,ue=n.constructor,Ee=n.s==i.s?1:-1,T=n.d,P=i.d;if(!T||!T[0]||!P||!P[0])return new ue(!n.s||!i.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-i.e):(a=A,d=g,l=I(n.e/d)-I(i.e/d)),O=P.length,j=T.length,C=new ue(Ee),M=C.d=[],c=0;P[c]==(T[c]||0);c++);if(P[c]>(T[c]||0)&&l--,o==null?(F=o=ue.precision,s=ue.rounding):f?F=o+(n.e-i.e)+1:F=o,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<j||h)&&F--;c++)Ne=h*a+(T[c]||0),M[c]=Ne/P|0,h=Ne%P|0;v=h||c<j}else{for(h=a/(P[0]+1)|0,h>1&&(P=e(P,h,a),T=e(T,h,a),O=P.length,j=T.length),se=O,E=T.slice(0,O),k=E.length;k<O;)E[k++]=0;fe=P.slice(),fe.unshift(0),ve=P[0],P[1]>=a/2&&++ve;do h=0,u=r(P,E,O,k),u<0?(oe=E[0],O!=k&&(oe=oe*a+(E[1]||0)),h=oe/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?fe: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?fe:P,k,a))),k=E.length):u===0&&(h++,E=[0]),M[c++]=h,u&&E[0]?E[k++]=T[se]||0:(E=[T[se]],k=1);while((se++<j||E[0]!==void 0)&&F--);v=E[0]!==void 0}M[0]||M.shift()}if(d==1)C.e=l,De=v;else{for(c=1,h=M[0];h>=10;h/=10)c++;C.e=c+l*d-1,m(C,f?o+C.e+1:o,s,v)}return C}}();function m(e,r,t,n){var i,o,s,f,a,u,l,c,h,d=e.constructor;e:if(r!=null){if(c=e.d,!c)return e;for(i=1,f=c[0];f>=10;f/=10)i++;if(o=r-i,o<0)o+=g,s=r,l=c[h=0],a=l/b(10,i-s-1)%10|0;else if(h=Math.ceil((o+1)/g),f=c.length,h>=f)if(n){for(;f++<=h;)c.push(0);l=a=0,i=1,o%=g,s=o-g+1}else break e;else{for(l=f=c[h],i=1;f>=10;f/=10)i++;o%=g,s=o-g+i,a=s<0?0:l/b(10,i-s-1)%10|0}if(n=n||r<0||c[h+1]!==void 0||(s<0?l:l%b(10,i-s-1)),u=t<4?(a||n)&&(t==0||t==(e.s<0?3:2)):a>5||a==5&&(t==4||n||t==6&&(o>0?s>0?l/b(10,i-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(o==0?(c.length=h,f=1,h--):(c.length=h+1,f=b(10,g-o),c[h]=s>0?(l/b(10,i-s)%b(10,s)|0)*f:0),u)for(;;)if(h==0){for(o=1,s=c[0];s>=10;s/=10)o++;for(s=c[0]+=f,f=1;s>=10;s/=10)f++;o!=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(o=c.length;c[--o]===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 Ze(e);var n,i=e.e,o=S(e.d),s=o.length;return r?(t&&(n=t-s)>0?o=o.charAt(0)+"."+o.slice(1)+V(n):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(e.e<0?"e":"e+")+e.e):i<0?(o="0."+V(-i-1)+o,t&&(n=t-s)>0&&(o+=V(n))):i>=s?(o+=V(i+1-s),t&&(n=t-i-1)>0&&(o=o+"."+V(n))):((n=i+1)<s&&(o=o.slice(0,n)+"."+o.slice(n)),t&&(n=t-s)>0&&(i+1===s&&(o+="."),o+=V(n))),o}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>ir)throw w=!0,t&&(e.precision=t),Error(Le);return m(new e(he),r,1,!0)}function D(e,r,t){if(r>ke)throw Error(Le);return m(new e(pe),r,t,!0)}function Be(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 Ue(e,r,t,n){var i,o=new e(1),s=Math.ceil(n/g+4);for(w=!1;;){if(t%2&&(o=o.times(r),ye(o.d,s)&&(i=!0)),t=I(t/2),t===0){t=o.d.length-1,i&&o.d[t]===0&&++o.d[t];break}r=r.times(r),ye(r.d,s)}return w=!0,o}function Oe(e){return e.d[e.d.length-1]&1}function Ge(e,r,t){for(var n,i,o=new e(r[0]),s=0;++s<r.length;){if(i=new e(r[s]),!i.s){o=i;break}n=o.cmp(i),(n===t||n===0&&o.s===t)&&(o=i)}return o}function Te(e,r){var t,n,i,o,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=o=s=new h(1),h.precision=a;;){if(o=m(o.times(e),a,1),t=t.times(++l),f=s.plus(x(o,t,a,1)),S(f.d).slice(0,a)===S(s.d).slice(0,a)){for(i=c;i--;)s=m(s.times(s),a,1);if(r==null)if(u<3&&ie(s.d,a-n,d,u))h.precision=a+=10,t=o=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,i,o,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(o=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++;o=N.e,n>1?(N=new C("0."+t),o++):N=new C(n+"."+t.slice(1))}else return u=me(C,l+2,E).times(o+""),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),i=3;;){if(s=m(s.times(h),l,1),u=a.plus(x(s,new C(i),l,1)),S(u.d).slice(0,l)===S(a.d).slice(0,l))if(a=a.times(2),o!==0&&(a=a.plus(me(C,l+2,E).times(o+""))),a=x(a,new C(d),l,1),r==null)if(ie(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),i=f=1;else return m(a,C.precision=E,M,w=!0);else return C.precision=E,a;a=u,i+=2}}function Ze(e){return String(e.s*e.s/0)}function ce(e,r){var t,n,i;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(i=r.length;r.charCodeAt(i-1)===48;--i);if(r=r.slice(n,i),r){if(i-=n,e.e=t=t-n-1,e.d=[],n=(t+1)%g,t<0&&(n+=g),n<i){for(n&&e.d.push(+r.slice(0,n)),i-=g;n<i;)e.d.push(+r.slice(n,n+=g));r=r.slice(n),n=g-r.length}else n-=i;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 sr(e,r){var t,n,i,o,s,f,a,u,l;if(r.indexOf("_")>-1){if(r=r.replace(/(\d)_(?=\d)/g,"$1"),Ve.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(rr.test(r))t=16,r=r.toLowerCase();else if(er.test(r))t=2;else if(tr.test(r))t=8;else throw Error(U+r);for(o=r.search(/p/i),o>0?(a=+r.slice(o+1),r=r.substring(2,o)):r=r.slice(2),o=r.indexOf("."),s=o>=0,n=e.constructor,s&&(r=r.replace(".",""),f=r.length,o=f-o,i=Ue(n,new n(t),o,o*2)),u=le(r,t,A),l=u.length-1,o=l;u[o]===0;--o)u.pop();return o<0?new n(e.s*0):(e.e=ge(u,l),e.d=u,w=!1,s&&(e=x(e,i,f*4)),a&&(e=e.times(Math.abs(a)<54?b(2,a):H.pow(2,a))),w=!0,e)}function fr(e,r){var t,n=r.d.length;if(n<3)return r.isZero()?r:$(e,2,r,r);t=1.4*Math.sqrt(n),t=t>16?16:t|0,r=r.times(1/we(5,t)),r=$(e,2,r,r);for(var i,o=new e(5),s=new e(16),f=new e(20);t--;)i=r.times(r),r=r.times(o.plus(i.times(s.times(i).minus(f))));return r}function $(e,r,t,n,i){var o,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=i?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(o=c;s.d[o]===f.d[o]&&o--;);if(o==-1)break}o=f,f=n,n=s,s=o,u++}return w=!0,s.d.length=c+1,s}function we(e,r){for(var t=e;--r;)t*=e;return t}function We(e,r){var t,n=r.s<0,i=D(e,e.precision,1),o=i.times(.5);if(r=r.abs(),r.lte(o))return _=n?4:1,r;if(t=r.divToInt(i),t.isZero())_=n?3:2;else{if(r=r.minus(t.times(i)),r.lte(o))return _=Oe(t)?n?2:3:n?4:1,r;_=Oe(t)?n?1:4:n?3:2}return r.minus(i).abs()}function Ie(e,r,t,n){var i,o,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=Ze(e);else{for(l=L(e),s=l.indexOf("."),v?(i=2,r==16?t=t*4-3:r==8&&(t=t*3-2)):i=r,s>=0&&(l=l.replace(".",""),h=new d(1),h.e=l.length-s,h.d=le(L(h),10,i),h.e=h.d.length),c=le(l,10,i),o=a=c.length;c[--a]==0;)c.pop();if(!c[0])l=v?"0p+0":"0";else{if(s<0?o--:(e=new d(e),e.d=c,e.e=o,e=x(e,h,t,n,0,i),c=e.d,o=e.e,u=De),s=c[t],f=i/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]>i-1;)c[t]=0,t||(++o,c.unshift(1));for(a=c.length;!c[a-1];--a);for(s=0,l="";s<a;s++)l+=be.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,i,r),a=c.length;!c[a-1];--a);for(s=1,l="1.";s<a;s++)l+=be.charAt(c[s])}else l=l.charAt(0)+"."+l.slice(1);l=l+(o<0?"p":"p+")+o}else if(o<0){for(;++o;)l="0"+l;l="0."+l}else if(++o>a)for(o-=a;o--;)l+="0";else o<a&&(l=l.slice(0,o)+"."+l.slice(o))}l=(r==16?"0x":r==2?"0b":r==8?"0o":"")+l}return e.s<0?"-"+l:l}function ye(e,r){if(e.length>r)return e.length=r,!0}function ur(e){return new this(e).abs()}function ar(e){return new this(e).acos()}function lr(e){return new this(e).acosh()}function cr(e,r){return new this(e).plus(r)}function hr(e){return new this(e).asin()}function pr(e){return new this(e).asinh()}function mr(e){return new this(e).atan()}function dr(e){return new this(e).atanh()}function gr(e,r){e=new this(e),r=new this(r);var t,n=this.precision,i=this.rounding,o=n+4;return!e.s||!r.s?t=new this(NaN):!e.d&&!r.d?(t=D(this,o,1).times(r.s>0?.25:.75),t.s=e.s):!r.d||e.isZero()?(t=r.s<0?D(this,n,i):new this(0),t.s=e.s):!e.d||r.isZero()?(t=D(this,o,1).times(.5),t.s=e.s):r.s<0?(this.precision=o,this.rounding=1,t=this.atan(x(e,r,o,1)),r=D(this,o,1),this.precision=n,this.rounding=i,t=e.s<0?t.minus(r):t.plus(r)):t=this.atan(x(e,r,o,1)),t}function wr(e){return new this(e).cbrt()}function Nr(e){return m(e=new this(e),e.e+1,2)}function vr(e,r,t){return new this(e).clamp(r,t)}function Er(e){if(!e||typeof e!="object")throw Error(de+"Object expected");var r,t,n,i=e.defaults===!0,o=["precision",1,G,"rounding",0,8,"toExpNeg",-W,0,"toExpPos",0,W,"maxE",0,W,"minE",-W,0,"modulo",0,9];for(r=0;r<o.length;r+=3)if(t=o[r],i&&(this[t]=Se[t]),(n=e[t])!==void 0)if(I(n)===n&&n>=o[r+1]&&n<=o[r+2])this[t]=n;else throw Error(U+t+": "+n);if(t="crypto",i&&(this[t]=Se[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(Fe);else this[t]=!1;else throw Error(U+t+": "+n);return this}function xr(e){return new this(e).cos()}function Pr(e){return new this(e).cosh()}function $e(e){var r,t,n;function i(o){var s,f,a,u=this;if(!(u instanceof i))return new i(o);if(u.constructor=i,Ae(o)){u.s=o.s,w?!o.d||o.e>i.maxE?(u.e=NaN,u.d=null):o.e<i.minE?(u.e=0,u.d=[0]):(u.e=o.e,u.d=o.d.slice()):(u.e=o.e,u.d=o.d?o.d.slice():o.d);return}if(a=typeof o,a==="number"){if(o===0){u.s=1/o<0?-1:1,u.e=0,u.d=[0];return}if(o<0?(o=-o,u.s=-1):u.s=1,o===~~o&&o<1e7){for(s=0,f=o;f>=10;f/=10)s++;w?s>i.maxE?(u.e=NaN,u.d=null):s<i.minE?(u.e=0,u.d=[0]):(u.e=s,u.d=[o]):(u.e=s,u.d=[o]);return}if(o*0!==0){o||(u.s=NaN),u.e=NaN,u.d=null;return}return ce(u,o.toString())}if(a==="string")return(f=o.charCodeAt(0))===45?(o=o.slice(1),u.s=-1):(f===43&&(o=o.slice(1)),u.s=1),Ve.test(o)?ce(u,o):sr(u,o);if(a==="bigint")return o<0?(o=-o,u.s=-1):u.s=1,ce(u,o.toString());throw Error(U+o)}if(i.prototype=p,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.EUCLID=9,i.config=i.set=Er,i.clone=$e,i.isDecimal=Ae,i.abs=ur,i.acos=ar,i.acosh=lr,i.add=cr,i.asin=hr,i.asinh=pr,i.atan=mr,i.atanh=dr,i.atan2=gr,i.cbrt=wr,i.ceil=Nr,i.clamp=vr,i.cos=xr,i.cosh=Pr,i.div=Cr,i.exp=br,i.floor=Sr,i.hypot=kr,i.ln=Tr,i.log=Ir,i.log10=qr,i.log2=Rr,i.max=Mr,i.min=Or,i.mod=yr,i.mul=Ar,i.pow=Dr,i.random=Lr,i.round=Fr,i.sign=_r,i.sin=Vr,i.sinh=Br,i.sqrt=Ur,i.sub=Gr,i.sum=Zr,i.tan=Wr,i.tanh=$r,i.trunc=Hr,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 i.config(e),i}function Cr(e,r){return new this(e).div(r)}function br(e){return new this(e).exp()}function Sr(e){return m(e=new this(e),e.e+1,3)}function kr(){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 Ae(e){return e instanceof H||e&&e.toStringTag===_e||!1}function Tr(e){return new this(e).ln()}function Ir(e,r){return new this(e).log(r)}function Rr(e){return new this(e).log(2)}function qr(e){return new this(e).log(10)}function Mr(){return Ge(this,arguments,-1)}function Or(){return Ge(this,arguments,1)}function yr(e,r){return new this(e).mod(r)}function Ar(e,r){return new this(e).mul(r)}function Dr(e,r){return new this(e).pow(r)}function Lr(e){var r,t,n,i,o=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));o<n;)i=r[o],i>=429e7?r[o]=crypto.getRandomValues(new Uint32Array(1))[0]:f[o++]=i%1e7;else if(crypto.randomBytes){for(r=crypto.randomBytes(n*=4);o<n;)i=r[o]+(r[o+1]<<8)+(r[o+2]<<16)+((r[o+3]&127)<<24),i>=214e7?crypto.randomBytes(4).copy(r,o):(f.push(i%1e7),o+=4);o=n/4}else throw Error(Fe);else for(;o<n;)f[o++]=Math.random()*1e7|0;for(n=f[--o],e%=g,n&&e&&(i=b(10,g-e),f[o]=(n/i|0)*i);f[o]===0;o--)f.pop();if(o<0)t=0,f=[0];else{for(t=-1;f[0]===0;t-=g)f.shift();for(n=1,i=f[0];i>=10;i/=10)n++;n<g&&(t-=g-n)}return s.e=t,s.d=f,s}function Fr(e){return m(e=new this(e),e.e+1,this.rounding)}function _r(e){return e=new this(e),e.d?e.d[0]?e.s:0*e.s:e.s||NaN}function Vr(e){return new this(e).sin()}function Br(e){return new this(e).sinh()}function Ur(e){return new this(e).sqrt()}function Gr(e,r){return new this(e).sub(r)}function Zr(){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 Wr(e){return new this(e).tan()}function $r(e){return new this(e).tanh()}function Hr(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 H=p.constructor=$e(Se);he=new H(he);pe=new H(pe);var Z=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 i=0,o=0;for(;i<t.length;){let s=t[i++],f=r[i];if(s instanceof e){this.strings[o]+=s.strings[0];let a=0;for(;a<s.values.length;)this.values[o++]=s.values[a++],this.strings[o]=s.strings[a];this.strings[o]+=f}else this.values[o++]=s,this.strings[o]=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 He(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 Z([t,...Array(e.length-1).fill(r),n],e)}function Re(e){return new Z([e],[])}var je=Re("");function qe(e,...r){return new Z(e,r)}0&&(module.exports={Decimal,ObjectEnumValue,PrismaClientInitializationError,PrismaClientKnownRequestError,PrismaClientRustPanicError,PrismaClientUnknownRequestError,PrismaClientValidationError,Sql,empty,join,objectEnumValues,raw,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.js.map
|