@huyooo/ui 0.5.3 → 0.5.5

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 (48) hide show
  1. package/dist/{AuthkitAuthModal-cEi5Hm14.js → AuthkitAuthModal-BjqMoIed.js} +141 -162
  2. package/dist/AuthkitAuthModal.vue_vue_type_style_index_1_lang-BpOmabWi.js +10 -0
  3. package/dist/{AuthkitAuthorize-DksJZktr.js → AuthkitAuthorize-DWb0xKRa.js} +12 -15
  4. package/dist/{Clipboard-CGm0G1dN.js → Clipboard-Bful1lNJ.js} +1 -1
  5. package/dist/CustomTable-B8i1SbFB.js +202 -0
  6. package/dist/{FeedbackItem-Day3rfSw.js → FeedbackItem-bPlL6uEE.js} +15 -14
  7. package/dist/{FeedbackModal-CsRXm-MY.js → FeedbackModal-DJx3R3rM.js} +22 -25
  8. package/dist/Introduce-e3nEDSRY.js +390 -0
  9. package/dist/LandingPageSectionHeader-Dlc5rL21.js +463 -0
  10. package/dist/LandingPageSectionTabs-CrFrtbqu.js +1369 -0
  11. package/dist/{MessageHandle-DqH_478k.js → MessageHandle-BJH_S-61.js} +37 -45
  12. package/dist/{PaySubscriptions-Dp8y1fdJ.js → PaySubscriptions-BGl9BQru.js} +17 -16
  13. package/dist/{ReferrerReferees-xIXZglpy.js → ReferrerReferees-oi-zzWCo.js} +20 -19
  14. package/dist/{Upload.vue_vue_type_script_setup_true_lang-CxGZSDoo.js → Upload.vue_vue_type_script_setup_true_lang-CDyUt05d.js} +11 -10
  15. package/dist/{UserAccountMenu-DD3zoOBd.js → UserAccountMenu-BD8F9vEK.js} +1 -1
  16. package/dist/{UserPanel-C1NGdsFk.js → UserPanel-C6XusLxb.js} +23 -24
  17. package/dist/{WidthContainer-C30YFs9X.js → WidthContainer-uWfPyPEH.js} +19 -18
  18. package/dist/authkit.js +12 -11
  19. package/dist/common.js +2 -2
  20. package/dist/components/PrivateCom/BodyAndFooterLayout.vue.d.ts +17 -0
  21. package/dist/components/PrivateCom/Footer.vue.d.ts +2 -0
  22. package/dist/components/PrivateCom/Introduce.vue.d.ts +2 -0
  23. package/dist/components/PrivateCom/useSEO.d.ts +71 -0
  24. package/dist/composables.js +26 -25
  25. package/dist/feedback.js +3 -3
  26. package/dist/index-Bb-d5pBq.js +1167 -0
  27. package/dist/index.js +367 -359
  28. package/dist/landingPage.js +46 -45
  29. package/dist/main.d.ts +1 -0
  30. package/dist/message.js +2 -2
  31. package/dist/pay.js +1 -1
  32. package/dist/privateCom.d.ts +4 -0
  33. package/dist/privateCom.js +8 -0
  34. package/dist/referrer.js +1 -1
  35. package/dist/style.css +1 -1
  36. package/dist/upload.js +2 -2
  37. package/dist/{AuthkitAuthModal.vue_vue_type_style_index_1_lang-B-QKS_BT.js → useAuthkitAppsAuthPageInfo-Dr5K7ULW.js} +16 -23
  38. package/dist/{useAuthkitUsersProfile-D2UZf7n0.js → useAuthkitUsersProfile-DNOB_Kuk.js} +1 -1
  39. package/dist/{useMessageNotifications-BahKMcby.js → useMessageNotifications-DOH1MS61.js} +1 -1
  40. package/dist/{useRoutePermission-Uxu5S3m1.js → useRoutePermission-DuZZniIv.js} +18 -17
  41. package/dist/{useUploadCos-DNKp_9xt.js → useUploadCos-B5P_PDcy.js} +2 -2
  42. package/dist/user.js +2 -2
  43. package/package.json +6 -1
  44. package/dist/CustomTable-kfI18phy.js +0 -1359
  45. package/dist/LandingPageSectionTabs-DPTZIwiJ.js +0 -1838
  46. package/dist/utils/landingPage.d.ts +0 -1
  47. /package/dist/{index-DaMA6jEr.js → _commonjsHelpers-DaMA6jEr.js} +0 -0
  48. /package/dist/{index-DZIhLe1R.js → globalConfig-DZIhLe1R.js} +0 -0
@@ -0,0 +1,1167 @@
1
+ import { c as Ne } from "./_commonjsHelpers-DaMA6jEr.js";
2
+ var _e = { exports: {} };
3
+ (function(x, b) {
4
+ (function(R, y) {
5
+ x.exports = y();
6
+ })(Ne, function() {
7
+ var R = 1e3, y = 6e4, Q = 36e5, z = "millisecond", C = "second", E = "minute", X = "hour", v = "day", Y = "week", G = "month", T = "quarter", L = "year", ne = "date", M = "Invalid Date", k = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, F = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, N = {
8
+ name: "en",
9
+ weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
10
+ months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
11
+ ordinal: function(O) {
12
+ var d = ["th", "st", "nd", "rd"], p = O % 100;
13
+ return "[" + O + (d[(p - 20) % 10] || d[p] || d[0]) + "]";
14
+ }
15
+ }, ie = function(O, d, p) {
16
+ var m = String(O);
17
+ return !m || m.length >= d ? O : "" + Array(d + 1 - m.length).join(p) + O;
18
+ }, ae = {
19
+ s: ie,
20
+ z: function(O) {
21
+ var d = -O.utcOffset(), p = Math.abs(d), m = Math.floor(p / 60), w = p % 60;
22
+ return (d <= 0 ? "+" : "-") + ie(m, 2, "0") + ":" + ie(w, 2, "0");
23
+ },
24
+ m: function O(d, p) {
25
+ if (d.date() < p.date()) return -O(p, d);
26
+ var m = 12 * (p.year() - d.year()) + (p.month() - d.month()), w = d.clone().add(m, G), I = p - w < 0, D = d.clone().add(m + (I ? -1 : 1), G);
27
+ return +(-(m + (p - w) / (I ? w - D : D - w)) || 0);
28
+ },
29
+ a: function(O) {
30
+ return O < 0 ? Math.ceil(O) || 0 : Math.floor(O);
31
+ },
32
+ p: function(O) {
33
+ return {
34
+ M: G,
35
+ y: L,
36
+ w: Y,
37
+ d: v,
38
+ D: ne,
39
+ h: X,
40
+ m: E,
41
+ s: C,
42
+ ms: z,
43
+ Q: T
44
+ }[O] || String(O || "").toLowerCase().replace(/s$/, "");
45
+ },
46
+ u: function(O) {
47
+ return O === void 0;
48
+ }
49
+ }, K = "en", $ = {};
50
+ $[K] = N;
51
+ var _ = "$isDayjsObject", V = function(O) {
52
+ return O instanceof H || !(!O || !O[_]);
53
+ }, J = function O(d, p, m) {
54
+ var w;
55
+ if (!d) return K;
56
+ if (typeof d == "string") {
57
+ var I = d.toLowerCase();
58
+ $[I] && (w = I), p && ($[I] = p, w = I);
59
+ var D = d.split("-");
60
+ if (!w && D.length > 1) return O(D[0]);
61
+ } else {
62
+ var j = d.name;
63
+ $[j] = d, w = j;
64
+ }
65
+ return !m && w && (K = w), w || !m && K;
66
+ }, g = function(O, d) {
67
+ if (V(O)) return O.clone();
68
+ var p = typeof d == "object" ? d : {};
69
+ return p.date = O, p.args = arguments, new H(p);
70
+ }, B = ae;
71
+ B.l = J, B.i = V, B.w = function(O, d) {
72
+ return g(O, {
73
+ locale: d.$L,
74
+ utc: d.$u,
75
+ x: d.$x,
76
+ $offset: d.$offset
77
+ });
78
+ };
79
+ var H = function() {
80
+ function O(p) {
81
+ this.$L = J(p.locale, null, !0), this.parse(p), this.$x = this.$x || p.x || {}, this[_] = !0;
82
+ }
83
+ var d = O.prototype;
84
+ return d.parse = function(p) {
85
+ this.$d = function(m) {
86
+ var w = m.date, I = m.utc;
87
+ if (w === null) return /* @__PURE__ */ new Date(NaN);
88
+ if (B.u(w)) return /* @__PURE__ */ new Date();
89
+ if (w instanceof Date) return new Date(w);
90
+ if (typeof w == "string" && !/Z$/i.test(w)) {
91
+ var D = w.match(k);
92
+ if (D) {
93
+ var j = D[2] - 1 || 0, q = (D[7] || "0").substring(0, 3);
94
+ return I ? new Date(Date.UTC(D[1], j, D[3] || 1, D[4] || 0, D[5] || 0, D[6] || 0, q)) : new Date(D[1], j, D[3] || 1, D[4] || 0, D[5] || 0, D[6] || 0, q);
95
+ }
96
+ }
97
+ return new Date(w);
98
+ }(p), this.init();
99
+ }, d.init = function() {
100
+ var p = this.$d;
101
+ this.$y = p.getFullYear(), this.$M = p.getMonth(), this.$D = p.getDate(), this.$W = p.getDay(), this.$H = p.getHours(), this.$m = p.getMinutes(), this.$s = p.getSeconds(), this.$ms = p.getMilliseconds();
102
+ }, d.$utils = function() {
103
+ return B;
104
+ }, d.isValid = function() {
105
+ return this.$d.toString() !== M;
106
+ }, d.isSame = function(p, m) {
107
+ var w = g(p);
108
+ return this.startOf(m) <= w && w <= this.endOf(m);
109
+ }, d.isAfter = function(p, m) {
110
+ return g(p) < this.startOf(m);
111
+ }, d.isBefore = function(p, m) {
112
+ return this.endOf(m) < g(p);
113
+ }, d.$g = function(p, m, w) {
114
+ return B.u(p) ? this[m] : this.set(w, p);
115
+ }, d.unix = function() {
116
+ return Math.floor(this.valueOf() / 1e3);
117
+ }, d.valueOf = function() {
118
+ return this.$d.getTime();
119
+ }, d.startOf = function(p, m) {
120
+ var w = this, I = !!B.u(m) || m, D = B.p(p), j = function(ue, e) {
121
+ var r = B.w(w.$u ? Date.UTC(w.$y, e, ue) : new Date(w.$y, e, ue), w);
122
+ return I ? r : r.endOf(v);
123
+ }, q = function(ue, e) {
124
+ return B.w(w.toDate()[ue].apply(w.toDate("s"), (I ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e)), w);
125
+ }, ee = this.$W, h = this.$M, oe = this.$D, de = "set" + (this.$u ? "UTC" : "");
126
+ switch (D) {
127
+ case L:
128
+ return I ? j(1, 0) : j(31, 11);
129
+ case G:
130
+ return I ? j(1, h) : j(0, h + 1);
131
+ case Y:
132
+ var ge = this.$locale().weekStart || 0, se = (ee < ge ? ee + 7 : ee) - ge;
133
+ return j(I ? oe - se : oe + (6 - se), h);
134
+ case v:
135
+ case ne:
136
+ return q(de + "Hours", 0);
137
+ case X:
138
+ return q(de + "Minutes", 1);
139
+ case E:
140
+ return q(de + "Seconds", 2);
141
+ case C:
142
+ return q(de + "Milliseconds", 3);
143
+ default:
144
+ return this.clone();
145
+ }
146
+ }, d.endOf = function(p) {
147
+ return this.startOf(p, !1);
148
+ }, d.$set = function(p, m) {
149
+ var w, I = B.p(p), D = "set" + (this.$u ? "UTC" : ""), j = (w = {}, w[v] = D + "Date", w[ne] = D + "Date", w[G] = D + "Month", w[L] = D + "FullYear", w[X] = D + "Hours", w[E] = D + "Minutes", w[C] = D + "Seconds", w[z] = D + "Milliseconds", w)[I], q = I === v ? this.$D + (m - this.$W) : m;
150
+ if (I === G || I === L) {
151
+ var ee = this.clone().set(ne, 1);
152
+ ee.$d[j](q), ee.init(), this.$d = ee.set(ne, Math.min(this.$D, ee.daysInMonth())).$d;
153
+ } else j && this.$d[j](q);
154
+ return this.init(), this;
155
+ }, d.set = function(p, m) {
156
+ return this.clone().$set(p, m);
157
+ }, d.get = function(p) {
158
+ return this[B.p(p)]();
159
+ }, d.add = function(p, m) {
160
+ var w, I = this;
161
+ p = Number(p);
162
+ var D = B.p(m), j = function(h) {
163
+ var oe = g(I);
164
+ return B.w(oe.date(oe.date() + Math.round(h * p)), I);
165
+ };
166
+ if (D === G) return this.set(G, this.$M + p);
167
+ if (D === L) return this.set(L, this.$y + p);
168
+ if (D === v) return j(1);
169
+ if (D === Y) return j(7);
170
+ var q = (w = {}, w[E] = y, w[X] = Q, w[C] = R, w)[D] || 1, ee = this.$d.getTime() + p * q;
171
+ return B.w(ee, this);
172
+ }, d.subtract = function(p, m) {
173
+ return this.add(-1 * p, m);
174
+ }, d.format = function(p) {
175
+ var m = this, w = this.$locale();
176
+ if (!this.isValid()) return w.invalidDate || M;
177
+ var I = p || "YYYY-MM-DDTHH:mm:ssZ", D = B.z(this), j = this.$H, q = this.$m, ee = this.$M, h = w.weekdays, oe = w.months, de = w.meridiem, ge = function(e, r, t, u) {
178
+ return e && (e[r] || e(m, I)) || t[r].slice(0, u);
179
+ }, se = function(e) {
180
+ return B.s(j % 12 || 12, e, "0");
181
+ }, ue = de || function(e, r, t) {
182
+ var u = e < 12 ? "AM" : "PM";
183
+ return t ? u.toLowerCase() : u;
184
+ };
185
+ return I.replace(F, function(e, r) {
186
+ return r || function(t) {
187
+ switch (t) {
188
+ case "YY":
189
+ return String(m.$y).slice(-2);
190
+ case "YYYY":
191
+ return B.s(m.$y, 4, "0");
192
+ case "M":
193
+ return ee + 1;
194
+ case "MM":
195
+ return B.s(ee + 1, 2, "0");
196
+ case "MMM":
197
+ return ge(w.monthsShort, ee, oe, 3);
198
+ case "MMMM":
199
+ return ge(oe, ee);
200
+ case "D":
201
+ return m.$D;
202
+ case "DD":
203
+ return B.s(m.$D, 2, "0");
204
+ case "d":
205
+ return String(m.$W);
206
+ case "dd":
207
+ return ge(w.weekdaysMin, m.$W, h, 2);
208
+ case "ddd":
209
+ return ge(w.weekdaysShort, m.$W, h, 3);
210
+ case "dddd":
211
+ return h[m.$W];
212
+ case "H":
213
+ return String(j);
214
+ case "HH":
215
+ return B.s(j, 2, "0");
216
+ case "h":
217
+ return se(1);
218
+ case "hh":
219
+ return se(2);
220
+ case "a":
221
+ return ue(j, q, !0);
222
+ case "A":
223
+ return ue(j, q, !1);
224
+ case "m":
225
+ return String(q);
226
+ case "mm":
227
+ return B.s(q, 2, "0");
228
+ case "s":
229
+ return String(m.$s);
230
+ case "ss":
231
+ return B.s(m.$s, 2, "0");
232
+ case "SSS":
233
+ return B.s(m.$ms, 3, "0");
234
+ case "Z":
235
+ return D;
236
+ }
237
+ return null;
238
+ }(e) || D.replace(":", "");
239
+ });
240
+ }, d.utcOffset = function() {
241
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
242
+ }, d.diff = function(p, m, w) {
243
+ var I, D = this, j = B.p(m), q = g(p), ee = (q.utcOffset() - this.utcOffset()) * y, h = this - q, oe = function() {
244
+ return B.m(D, q);
245
+ };
246
+ switch (j) {
247
+ case L:
248
+ I = oe() / 12;
249
+ break;
250
+ case G:
251
+ I = oe();
252
+ break;
253
+ case T:
254
+ I = oe() / 3;
255
+ break;
256
+ case Y:
257
+ I = (h - ee) / 6048e5;
258
+ break;
259
+ case v:
260
+ I = (h - ee) / 864e5;
261
+ break;
262
+ case X:
263
+ I = h / Q;
264
+ break;
265
+ case E:
266
+ I = h / y;
267
+ break;
268
+ case C:
269
+ I = h / R;
270
+ break;
271
+ default:
272
+ I = h;
273
+ }
274
+ return w ? I : B.a(I);
275
+ }, d.daysInMonth = function() {
276
+ return this.endOf(G).$D;
277
+ }, d.$locale = function() {
278
+ return $[this.$L];
279
+ }, d.locale = function(p, m) {
280
+ if (!p) return this.$L;
281
+ var w = this.clone(), I = J(p, m, !0);
282
+ return I && (w.$L = I), w;
283
+ }, d.clone = function() {
284
+ return B.w(this.$d, this);
285
+ }, d.toDate = function() {
286
+ return new Date(this.valueOf());
287
+ }, d.toJSON = function() {
288
+ return this.isValid() ? this.toISOString() : null;
289
+ }, d.toISOString = function() {
290
+ return this.$d.toISOString();
291
+ }, d.toString = function() {
292
+ return this.$d.toUTCString();
293
+ }, O;
294
+ }(), Z = H.prototype;
295
+ return g.prototype = Z, [["$ms", z], ["$s", C], ["$m", E], ["$H", X], ["$W", v], ["$M", G], ["$y", L], ["$D", ne]].forEach(function(O) {
296
+ Z[O[1]] = function(d) {
297
+ return this.$g(d, O[0], O[1]);
298
+ };
299
+ }), g.extend = function(O, d) {
300
+ return O.$i || (O(d, H, g), O.$i = !0), g;
301
+ }, g.locale = J, g.isDayjs = V, g.unix = function(O) {
302
+ return g(1e3 * O);
303
+ }, g.en = $[K], g.Ls = $, g.p = {}, g;
304
+ });
305
+ })(_e);
306
+ var $e = { exports: {} }, Ae = { exports: {} }, Se = { exports: {} };
307
+ (function(x) {
308
+ (function(b) {
309
+ var R, y = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, Q = Math.ceil, z = Math.floor, C = "[BigNumber Error] ", E = C + "Number primitive has more than 15 significant digits: ", X = 1e14, v = 14, Y = 9007199254740991, G = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], T = 1e7, L = 1e9;
310
+ function ne($) {
311
+ var _, V, J, g = h.prototype = {
312
+ constructor: h,
313
+ toString: null,
314
+ valueOf: null
315
+ }, B = new h(1), H = 20, Z = 4, O = -7, d = 21, p = -1e7, m = 1e7, w = !1, I = 1, D = 0, j = {
316
+ prefix: "",
317
+ groupSize: 3,
318
+ secondaryGroupSize: 0,
319
+ groupSeparator: ",",
320
+ decimalSeparator: ".",
321
+ fractionGroupSize: 0,
322
+ fractionGroupSeparator: " ",
323
+ // non-breaking space
324
+ suffix: ""
325
+ }, q = "0123456789abcdefghijklmnopqrstuvwxyz", ee = !0;
326
+ function h(e, r) {
327
+ var t, u, i, s, l, n, f, c, o = this;
328
+ if (!(o instanceof h)) return new h(e, r);
329
+ if (r == null) {
330
+ if (e && e._isBigNumber === !0) {
331
+ o.s = e.s, !e.c || e.e > m ? o.c = o.e = null : e.e < p ? o.c = [o.e = 0] : (o.e = e.e, o.c = e.c.slice());
332
+ return;
333
+ }
334
+ if ((n = typeof e == "number") && e * 0 == 0) {
335
+ if (o.s = 1 / e < 0 ? (e = -e, -1) : 1, e === ~~e) {
336
+ for (s = 0, l = e; l >= 10; l /= 10, s++) ;
337
+ s > m ? o.c = o.e = null : (o.e = s, o.c = [e]);
338
+ return;
339
+ }
340
+ c = String(e);
341
+ } else {
342
+ if (!y.test(c = String(e))) return J(o, c, n);
343
+ o.s = c.charCodeAt(0) == 45 ? (c = c.slice(1), -1) : 1;
344
+ }
345
+ (s = c.indexOf(".")) > -1 && (c = c.replace(".", "")), (l = c.search(/e/i)) > 0 ? (s < 0 && (s = l), s += +c.slice(l + 1), c = c.substring(0, l)) : s < 0 && (s = c.length);
346
+ } else {
347
+ if (N(r, 2, q.length, "Base"), r == 10 && ee)
348
+ return o = new h(e), se(o, H + o.e + 1, Z);
349
+ if (c = String(e), n = typeof e == "number") {
350
+ if (e * 0 != 0) return J(o, c, n, r);
351
+ if (o.s = 1 / e < 0 ? (c = c.slice(1), -1) : 1, h.DEBUG && c.replace(/^0\.0*|\./, "").length > 15)
352
+ throw Error(E + e);
353
+ } else
354
+ o.s = c.charCodeAt(0) === 45 ? (c = c.slice(1), -1) : 1;
355
+ for (t = q.slice(0, r), s = l = 0, f = c.length; l < f; l++)
356
+ if (t.indexOf(u = c.charAt(l)) < 0) {
357
+ if (u == ".") {
358
+ if (l > s) {
359
+ s = f;
360
+ continue;
361
+ }
362
+ } else if (!i && (c == c.toUpperCase() && (c = c.toLowerCase()) || c == c.toLowerCase() && (c = c.toUpperCase()))) {
363
+ i = !0, l = -1, s = 0;
364
+ continue;
365
+ }
366
+ return J(o, String(e), n, r);
367
+ }
368
+ n = !1, c = V(c, r, 10, o.s), (s = c.indexOf(".")) > -1 ? c = c.replace(".", "") : s = c.length;
369
+ }
370
+ for (l = 0; c.charCodeAt(l) === 48; l++) ;
371
+ for (f = c.length; c.charCodeAt(--f) === 48; ) ;
372
+ if (c = c.slice(l, ++f)) {
373
+ if (f -= l, n && h.DEBUG && f > 15 && (e > Y || e !== z(e)))
374
+ throw Error(E + o.s * e);
375
+ if ((s = s - l - 1) > m)
376
+ o.c = o.e = null;
377
+ else if (s < p)
378
+ o.c = [o.e = 0];
379
+ else {
380
+ if (o.e = s, o.c = [], l = (s + 1) % v, s < 0 && (l += v), l < f) {
381
+ for (l && o.c.push(+c.slice(0, l)), f -= v; l < f; )
382
+ o.c.push(+c.slice(l, l += v));
383
+ l = v - (c = c.slice(l)).length;
384
+ } else
385
+ l -= f;
386
+ for (; l--; c += "0") ;
387
+ o.c.push(+c);
388
+ }
389
+ } else
390
+ o.c = [o.e = 0];
391
+ }
392
+ h.clone = ne, h.ROUND_UP = 0, h.ROUND_DOWN = 1, h.ROUND_CEIL = 2, h.ROUND_FLOOR = 3, h.ROUND_HALF_UP = 4, h.ROUND_HALF_DOWN = 5, h.ROUND_HALF_EVEN = 6, h.ROUND_HALF_CEIL = 7, h.ROUND_HALF_FLOOR = 8, h.EUCLID = 9, h.config = h.set = function(e) {
393
+ var r, t;
394
+ if (e != null)
395
+ if (typeof e == "object") {
396
+ if (e.hasOwnProperty(r = "DECIMAL_PLACES") && (t = e[r], N(t, 0, L, r), H = t), e.hasOwnProperty(r = "ROUNDING_MODE") && (t = e[r], N(t, 0, 8, r), Z = t), e.hasOwnProperty(r = "EXPONENTIAL_AT") && (t = e[r], t && t.pop ? (N(t[0], -L, 0, r), N(t[1], 0, L, r), O = t[0], d = t[1]) : (N(t, -L, L, r), O = -(d = t < 0 ? -t : t))), e.hasOwnProperty(r = "RANGE"))
397
+ if (t = e[r], t && t.pop)
398
+ N(t[0], -L, -1, r), N(t[1], 1, L, r), p = t[0], m = t[1];
399
+ else if (N(t, -L, L, r), t)
400
+ p = -(m = t < 0 ? -t : t);
401
+ else
402
+ throw Error(C + r + " cannot be zero: " + t);
403
+ if (e.hasOwnProperty(r = "CRYPTO"))
404
+ if (t = e[r], t === !!t)
405
+ if (t)
406
+ if (typeof crypto < "u" && crypto && (crypto.getRandomValues || crypto.randomBytes))
407
+ w = t;
408
+ else
409
+ throw w = !t, Error(C + "crypto unavailable");
410
+ else
411
+ w = t;
412
+ else
413
+ throw Error(C + r + " not true or false: " + t);
414
+ if (e.hasOwnProperty(r = "MODULO_MODE") && (t = e[r], N(t, 0, 9, r), I = t), e.hasOwnProperty(r = "POW_PRECISION") && (t = e[r], N(t, 0, L, r), D = t), e.hasOwnProperty(r = "FORMAT"))
415
+ if (t = e[r], typeof t == "object") j = t;
416
+ else throw Error(C + r + " not an object: " + t);
417
+ if (e.hasOwnProperty(r = "ALPHABET"))
418
+ if (t = e[r], typeof t == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(t))
419
+ ee = t.slice(0, 10) == "0123456789", q = t;
420
+ else
421
+ throw Error(C + r + " invalid: " + t);
422
+ } else
423
+ throw Error(C + "Object expected: " + e);
424
+ return {
425
+ DECIMAL_PLACES: H,
426
+ ROUNDING_MODE: Z,
427
+ EXPONENTIAL_AT: [O, d],
428
+ RANGE: [p, m],
429
+ CRYPTO: w,
430
+ MODULO_MODE: I,
431
+ POW_PRECISION: D,
432
+ FORMAT: j,
433
+ ALPHABET: q
434
+ };
435
+ }, h.isBigNumber = function(e) {
436
+ if (!e || e._isBigNumber !== !0) return !1;
437
+ if (!h.DEBUG) return !0;
438
+ var r, t, u = e.c, i = e.e, s = e.s;
439
+ e: if ({}.toString.call(u) == "[object Array]") {
440
+ if ((s === 1 || s === -1) && i >= -L && i <= L && i === z(i)) {
441
+ if (u[0] === 0) {
442
+ if (i === 0 && u.length === 1) return !0;
443
+ break e;
444
+ }
445
+ if (r = (i + 1) % v, r < 1 && (r += v), String(u[0]).length == r) {
446
+ for (r = 0; r < u.length; r++)
447
+ if (t = u[r], t < 0 || t >= X || t !== z(t)) break e;
448
+ if (t !== 0) return !0;
449
+ }
450
+ }
451
+ } else if (u === null && i === null && (s === null || s === 1 || s === -1))
452
+ return !0;
453
+ throw Error(C + "Invalid BigNumber: " + e);
454
+ }, h.maximum = h.max = function() {
455
+ return de(arguments, -1);
456
+ }, h.minimum = h.min = function() {
457
+ return de(arguments, 1);
458
+ }, h.random = function() {
459
+ var e = 9007199254740992, r = Math.random() * e & 2097151 ? function() {
460
+ return z(Math.random() * e);
461
+ } : function() {
462
+ return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
463
+ };
464
+ return function(t) {
465
+ var u, i, s, l, n, f = 0, c = [], o = new h(B);
466
+ if (t == null ? t = H : N(t, 0, L), l = Q(t / v), w)
467
+ if (crypto.getRandomValues) {
468
+ for (u = crypto.getRandomValues(new Uint32Array(l *= 2)); f < l; )
469
+ n = u[f] * 131072 + (u[f + 1] >>> 11), n >= 9e15 ? (i = crypto.getRandomValues(new Uint32Array(2)), u[f] = i[0], u[f + 1] = i[1]) : (c.push(n % 1e14), f += 2);
470
+ f = l / 2;
471
+ } else if (crypto.randomBytes) {
472
+ for (u = crypto.randomBytes(l *= 7); f < l; )
473
+ n = (u[f] & 31) * 281474976710656 + u[f + 1] * 1099511627776 + u[f + 2] * 4294967296 + u[f + 3] * 16777216 + (u[f + 4] << 16) + (u[f + 5] << 8) + u[f + 6], n >= 9e15 ? crypto.randomBytes(7).copy(u, f) : (c.push(n % 1e14), f += 7);
474
+ f = l / 7;
475
+ } else
476
+ throw w = !1, Error(C + "crypto unavailable");
477
+ if (!w)
478
+ for (; f < l; )
479
+ n = r(), n < 9e15 && (c[f++] = n % 1e14);
480
+ for (l = c[--f], t %= v, l && t && (n = G[v - t], c[f] = z(l / n) * n); c[f] === 0; c.pop(), f--) ;
481
+ if (f < 0)
482
+ c = [s = 0];
483
+ else {
484
+ for (s = -1; c[0] === 0; c.splice(0, 1), s -= v) ;
485
+ for (f = 1, n = c[0]; n >= 10; n /= 10, f++) ;
486
+ f < v && (s -= v - f);
487
+ }
488
+ return o.e = s, o.c = c, o;
489
+ };
490
+ }(), h.sum = function() {
491
+ for (var e = 1, r = arguments, t = new h(r[0]); e < r.length; ) t = t.plus(r[e++]);
492
+ return t;
493
+ }, V = /* @__PURE__ */ function() {
494
+ var e = "0123456789";
495
+ function r(t, u, i, s) {
496
+ for (var l, n = [0], f, c = 0, o = t.length; c < o; ) {
497
+ for (f = n.length; f--; n[f] *= u) ;
498
+ for (n[0] += s.indexOf(t.charAt(c++)), l = 0; l < n.length; l++)
499
+ n[l] > i - 1 && (n[l + 1] == null && (n[l + 1] = 0), n[l + 1] += n[l] / i | 0, n[l] %= i);
500
+ }
501
+ return n.reverse();
502
+ }
503
+ return function(t, u, i, s, l) {
504
+ var n, f, c, o, a, A, S, U, re = t.indexOf("."), fe = H, P = Z;
505
+ for (re >= 0 && (o = D, D = 0, t = t.replace(".", ""), U = new h(u), A = U.pow(t.length - re), D = o, U.c = r(K(k(A.c), A.e, "0"), 10, i, e), U.e = U.c.length), S = r(t, u, i, l ? (n = q, e) : (n = e, q)), c = o = S.length; S[--o] == 0; S.pop()) ;
506
+ if (!S[0]) return n.charAt(0);
507
+ if (re < 0 ? --c : (A.c = S, A.e = c, A.s = s, A = _(A, U, fe, P, i), S = A.c, a = A.r, c = A.e), f = c + fe + 1, re = S[f], o = i / 2, a = a || f < 0 || S[f + 1] != null, a = P < 4 ? (re != null || a) && (P == 0 || P == (A.s < 0 ? 3 : 2)) : re > o || re == o && (P == 4 || a || P == 6 && S[f - 1] & 1 || P == (A.s < 0 ? 8 : 7)), f < 1 || !S[0])
508
+ t = a ? K(n.charAt(1), -fe, n.charAt(0)) : n.charAt(0);
509
+ else {
510
+ if (S.length = f, a)
511
+ for (--i; ++S[--f] > i; )
512
+ S[f] = 0, f || (++c, S = [1].concat(S));
513
+ for (o = S.length; !S[--o]; ) ;
514
+ for (re = 0, t = ""; re <= o; t += n.charAt(S[re++])) ;
515
+ t = K(t, c, n.charAt(0));
516
+ }
517
+ return t;
518
+ };
519
+ }(), _ = /* @__PURE__ */ function() {
520
+ function e(u, i, s) {
521
+ var l, n, f, c, o = 0, a = u.length, A = i % T, S = i / T | 0;
522
+ for (u = u.slice(); a--; )
523
+ f = u[a] % T, c = u[a] / T | 0, l = S * f + c * A, n = A * f + l % T * T + o, o = (n / s | 0) + (l / T | 0) + S * c, u[a] = n % s;
524
+ return o && (u = [o].concat(u)), u;
525
+ }
526
+ function r(u, i, s, l) {
527
+ var n, f;
528
+ if (s != l)
529
+ f = s > l ? 1 : -1;
530
+ else
531
+ for (n = f = 0; n < s; n++)
532
+ if (u[n] != i[n]) {
533
+ f = u[n] > i[n] ? 1 : -1;
534
+ break;
535
+ }
536
+ return f;
537
+ }
538
+ function t(u, i, s, l) {
539
+ for (var n = 0; s--; )
540
+ u[s] -= n, n = u[s] < i[s] ? 1 : 0, u[s] = n * l + u[s] - i[s];
541
+ for (; !u[0] && u.length > 1; u.splice(0, 1)) ;
542
+ }
543
+ return function(u, i, s, l, n) {
544
+ var f, c, o, a, A, S, U, re, fe, P, W, ce, me, ye, Oe, pe, we, he = u.s == i.s ? 1 : -1, le = u.c, te = i.c;
545
+ if (!le || !le[0] || !te || !te[0])
546
+ return new h(
547
+ // Return NaN if either NaN, or both Infinity or 0.
548
+ !u.s || !i.s || (le ? te && le[0] == te[0] : !te) ? NaN : (
549
+ // Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0.
550
+ le && le[0] == 0 || !te ? he * 0 : he / 0
551
+ )
552
+ );
553
+ for (re = new h(he), fe = re.c = [], c = u.e - i.e, he = s + c + 1, n || (n = X, c = M(u.e / v) - M(i.e / v), he = he / v | 0), o = 0; te[o] == (le[o] || 0); o++) ;
554
+ if (te[o] > (le[o] || 0) && c--, he < 0)
555
+ fe.push(1), a = !0;
556
+ else {
557
+ for (ye = le.length, pe = te.length, o = 0, he += 2, A = z(n / (te[0] + 1)), A > 1 && (te = e(te, A, n), le = e(le, A, n), pe = te.length, ye = le.length), me = pe, P = le.slice(0, pe), W = P.length; W < pe; P[W++] = 0) ;
558
+ we = te.slice(), we = [0].concat(we), Oe = te[0], te[1] >= n / 2 && Oe++;
559
+ do {
560
+ if (A = 0, f = r(te, P, pe, W), f < 0) {
561
+ if (ce = P[0], pe != W && (ce = ce * n + (P[1] || 0)), A = z(ce / Oe), A > 1)
562
+ for (A >= n && (A = n - 1), S = e(te, A, n), U = S.length, W = P.length; r(S, P, U, W) == 1; )
563
+ A--, t(S, pe < U ? we : te, U, n), U = S.length, f = 1;
564
+ else
565
+ A == 0 && (f = A = 1), S = te.slice(), U = S.length;
566
+ if (U < W && (S = [0].concat(S)), t(P, S, W, n), W = P.length, f == -1)
567
+ for (; r(te, P, pe, W) < 1; )
568
+ A++, t(P, pe < W ? we : te, W, n), W = P.length;
569
+ } else f === 0 && (A++, P = [0]);
570
+ fe[o++] = A, P[0] ? P[W++] = le[me] || 0 : (P = [le[me]], W = 1);
571
+ } while ((me++ < ye || P[0] != null) && he--);
572
+ a = P[0] != null, fe[0] || fe.splice(0, 1);
573
+ }
574
+ if (n == X) {
575
+ for (o = 1, he = fe[0]; he >= 10; he /= 10, o++) ;
576
+ se(re, s + (re.e = o + c * v - 1) + 1, l, a);
577
+ } else
578
+ re.e = c, re.r = +a;
579
+ return re;
580
+ };
581
+ }();
582
+ function oe(e, r, t, u) {
583
+ var i, s, l, n, f;
584
+ if (t == null ? t = Z : N(t, 0, 8), !e.c) return e.toString();
585
+ if (i = e.c[0], l = e.e, r == null)
586
+ f = k(e.c), f = u == 1 || u == 2 && (l <= O || l >= d) ? ae(f, l) : K(f, l, "0");
587
+ else if (e = se(new h(e), r, t), s = e.e, f = k(e.c), n = f.length, u == 1 || u == 2 && (r <= s || s <= O)) {
588
+ for (; n < r; f += "0", n++) ;
589
+ f = ae(f, s);
590
+ } else if (r -= l, f = K(f, s, "0"), s + 1 > n) {
591
+ if (--r > 0) for (f += "."; r--; f += "0") ;
592
+ } else if (r += s - n, r > 0)
593
+ for (s + 1 == n && (f += "."); r--; f += "0") ;
594
+ return e.s < 0 && i ? "-" + f : f;
595
+ }
596
+ function de(e, r) {
597
+ for (var t, u, i = 1, s = new h(e[0]); i < e.length; i++)
598
+ u = new h(e[i]), (!u.s || (t = F(s, u)) === r || t === 0 && s.s === r) && (s = u);
599
+ return s;
600
+ }
601
+ function ge(e, r, t) {
602
+ for (var u = 1, i = r.length; !r[--i]; r.pop()) ;
603
+ for (i = r[0]; i >= 10; i /= 10, u++) ;
604
+ return (t = u + t * v - 1) > m ? e.c = e.e = null : t < p ? e.c = [e.e = 0] : (e.e = t, e.c = r), e;
605
+ }
606
+ J = /* @__PURE__ */ function() {
607
+ var e = /^(-?)0([xbo])(?=\w[\w.]*$)/i, r = /^([^.]+)\.$/, t = /^\.([^.]+)$/, u = /^-?(Infinity|NaN)$/, i = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
608
+ return function(s, l, n, f) {
609
+ var c, o = n ? l : l.replace(i, "");
610
+ if (u.test(o))
611
+ s.s = isNaN(o) ? null : o < 0 ? -1 : 1;
612
+ else {
613
+ if (!n && (o = o.replace(e, function(a, A, S) {
614
+ return c = (S = S.toLowerCase()) == "x" ? 16 : S == "b" ? 2 : 8, !f || f == c ? A : a;
615
+ }), f && (c = f, o = o.replace(r, "$1").replace(t, "0.$1")), l != o))
616
+ return new h(o, c);
617
+ if (h.DEBUG)
618
+ throw Error(C + "Not a" + (f ? " base " + f : "") + " number: " + l);
619
+ s.s = null;
620
+ }
621
+ s.c = s.e = null;
622
+ };
623
+ }();
624
+ function se(e, r, t, u) {
625
+ var i, s, l, n, f, c, o, a = e.c, A = G;
626
+ if (a) {
627
+ e: {
628
+ for (i = 1, n = a[0]; n >= 10; n /= 10, i++) ;
629
+ if (s = r - i, s < 0)
630
+ s += v, l = r, f = a[c = 0], o = z(f / A[i - l - 1] % 10);
631
+ else if (c = Q((s + 1) / v), c >= a.length)
632
+ if (u) {
633
+ for (; a.length <= c; a.push(0)) ;
634
+ f = o = 0, i = 1, s %= v, l = s - v + 1;
635
+ } else
636
+ break e;
637
+ else {
638
+ for (f = n = a[c], i = 1; n >= 10; n /= 10, i++) ;
639
+ s %= v, l = s - v + i, o = l < 0 ? 0 : z(f / A[i - l - 1] % 10);
640
+ }
641
+ if (u = u || r < 0 || // Are there any non-zero digits after the rounding digit?
642
+ // The expression n % pows10[d - j - 1] returns all digits of n to the right
643
+ // of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.
644
+ a[c + 1] != null || (l < 0 ? f : f % A[i - l - 1]), u = t < 4 ? (o || u) && (t == 0 || t == (e.s < 0 ? 3 : 2)) : o > 5 || o == 5 && (t == 4 || u || t == 6 && // Check whether the digit to the left of the rounding digit is odd.
645
+ (s > 0 ? l > 0 ? f / A[i - l] : 0 : a[c - 1]) % 10 & 1 || t == (e.s < 0 ? 8 : 7)), r < 1 || !a[0])
646
+ return a.length = 0, u ? (r -= e.e + 1, a[0] = A[(v - r % v) % v], e.e = -r || 0) : a[0] = e.e = 0, e;
647
+ if (s == 0 ? (a.length = c, n = 1, c--) : (a.length = c + 1, n = A[v - s], a[c] = l > 0 ? z(f / A[i - l] % A[l]) * n : 0), u)
648
+ for (; ; )
649
+ if (c == 0) {
650
+ for (s = 1, l = a[0]; l >= 10; l /= 10, s++) ;
651
+ for (l = a[0] += n, n = 1; l >= 10; l /= 10, n++) ;
652
+ s != n && (e.e++, a[0] == X && (a[0] = 1));
653
+ break;
654
+ } else {
655
+ if (a[c] += n, a[c] != X) break;
656
+ a[c--] = 0, n = 1;
657
+ }
658
+ for (s = a.length; a[--s] === 0; a.pop()) ;
659
+ }
660
+ e.e > m ? e.c = e.e = null : e.e < p && (e.c = [e.e = 0]);
661
+ }
662
+ return e;
663
+ }
664
+ function ue(e) {
665
+ var r, t = e.e;
666
+ return t === null ? e.toString() : (r = k(e.c), r = t <= O || t >= d ? ae(r, t) : K(r, t, "0"), e.s < 0 ? "-" + r : r);
667
+ }
668
+ return g.absoluteValue = g.abs = function() {
669
+ var e = new h(this);
670
+ return e.s < 0 && (e.s = 1), e;
671
+ }, g.comparedTo = function(e, r) {
672
+ return F(this, new h(e, r));
673
+ }, g.decimalPlaces = g.dp = function(e, r) {
674
+ var t, u, i, s = this;
675
+ if (e != null)
676
+ return N(e, 0, L), r == null ? r = Z : N(r, 0, 8), se(new h(s), e + s.e + 1, r);
677
+ if (!(t = s.c)) return null;
678
+ if (u = ((i = t.length - 1) - M(this.e / v)) * v, i = t[i]) for (; i % 10 == 0; i /= 10, u--) ;
679
+ return u < 0 && (u = 0), u;
680
+ }, g.dividedBy = g.div = function(e, r) {
681
+ return _(this, new h(e, r), H, Z);
682
+ }, g.dividedToIntegerBy = g.idiv = function(e, r) {
683
+ return _(this, new h(e, r), 0, 1);
684
+ }, g.exponentiatedBy = g.pow = function(e, r) {
685
+ var t, u, i, s, l, n, f, c, o, a = this;
686
+ if (e = new h(e), e.c && !e.isInteger())
687
+ throw Error(C + "Exponent not an integer: " + ue(e));
688
+ if (r != null && (r = new h(r)), n = e.e > 14, !a.c || !a.c[0] || a.c[0] == 1 && !a.e && a.c.length == 1 || !e.c || !e.c[0])
689
+ return o = new h(Math.pow(+ue(a), n ? e.s * (2 - ie(e)) : +ue(e))), r ? o.mod(r) : o;
690
+ if (f = e.s < 0, r) {
691
+ if (r.c ? !r.c[0] : !r.s) return new h(NaN);
692
+ u = !f && a.isInteger() && r.isInteger(), u && (a = a.mod(r));
693
+ } else {
694
+ if (e.e > 9 && (a.e > 0 || a.e < -1 || (a.e == 0 ? a.c[0] > 1 || n && a.c[1] >= 24e7 : a.c[0] < 8e13 || n && a.c[0] <= 9999975e7)))
695
+ return s = a.s < 0 && ie(e) ? -0 : 0, a.e > -1 && (s = 1 / s), new h(f ? 1 / s : s);
696
+ D && (s = Q(D / v + 2));
697
+ }
698
+ for (n ? (t = new h(0.5), f && (e.s = 1), c = ie(e)) : (i = Math.abs(+ue(e)), c = i % 2), o = new h(B); ; ) {
699
+ if (c) {
700
+ if (o = o.times(a), !o.c) break;
701
+ s ? o.c.length > s && (o.c.length = s) : u && (o = o.mod(r));
702
+ }
703
+ if (i) {
704
+ if (i = z(i / 2), i === 0) break;
705
+ c = i % 2;
706
+ } else if (e = e.times(t), se(e, e.e + 1, 1), e.e > 14)
707
+ c = ie(e);
708
+ else {
709
+ if (i = +ue(e), i === 0) break;
710
+ c = i % 2;
711
+ }
712
+ a = a.times(a), s ? a.c && a.c.length > s && (a.c.length = s) : u && (a = a.mod(r));
713
+ }
714
+ return u ? o : (f && (o = B.div(o)), r ? o.mod(r) : s ? se(o, D, Z, l) : o);
715
+ }, g.integerValue = function(e) {
716
+ var r = new h(this);
717
+ return e == null ? e = Z : N(e, 0, 8), se(r, r.e + 1, e);
718
+ }, g.isEqualTo = g.eq = function(e, r) {
719
+ return F(this, new h(e, r)) === 0;
720
+ }, g.isFinite = function() {
721
+ return !!this.c;
722
+ }, g.isGreaterThan = g.gt = function(e, r) {
723
+ return F(this, new h(e, r)) > 0;
724
+ }, g.isGreaterThanOrEqualTo = g.gte = function(e, r) {
725
+ return (r = F(this, new h(e, r))) === 1 || r === 0;
726
+ }, g.isInteger = function() {
727
+ return !!this.c && M(this.e / v) > this.c.length - 2;
728
+ }, g.isLessThan = g.lt = function(e, r) {
729
+ return F(this, new h(e, r)) < 0;
730
+ }, g.isLessThanOrEqualTo = g.lte = function(e, r) {
731
+ return (r = F(this, new h(e, r))) === -1 || r === 0;
732
+ }, g.isNaN = function() {
733
+ return !this.s;
734
+ }, g.isNegative = function() {
735
+ return this.s < 0;
736
+ }, g.isPositive = function() {
737
+ return this.s > 0;
738
+ }, g.isZero = function() {
739
+ return !!this.c && this.c[0] == 0;
740
+ }, g.minus = function(e, r) {
741
+ var t, u, i, s, l = this, n = l.s;
742
+ if (e = new h(e, r), r = e.s, !n || !r) return new h(NaN);
743
+ if (n != r)
744
+ return e.s = -r, l.plus(e);
745
+ var f = l.e / v, c = e.e / v, o = l.c, a = e.c;
746
+ if (!f || !c) {
747
+ if (!o || !a) return o ? (e.s = -r, e) : new h(a ? l : NaN);
748
+ if (!o[0] || !a[0])
749
+ return a[0] ? (e.s = -r, e) : new h(o[0] ? l : (
750
+ // IEEE 754 (2008) 6.3: n - n = -0 when rounding to -Infinity
751
+ Z == 3 ? -0 : 0
752
+ ));
753
+ }
754
+ if (f = M(f), c = M(c), o = o.slice(), n = f - c) {
755
+ for ((s = n < 0) ? (n = -n, i = o) : (c = f, i = a), i.reverse(), r = n; r--; i.push(0)) ;
756
+ i.reverse();
757
+ } else
758
+ for (u = (s = (n = o.length) < (r = a.length)) ? n : r, n = r = 0; r < u; r++)
759
+ if (o[r] != a[r]) {
760
+ s = o[r] < a[r];
761
+ break;
762
+ }
763
+ if (s && (i = o, o = a, a = i, e.s = -e.s), r = (u = a.length) - (t = o.length), r > 0) for (; r--; o[t++] = 0) ;
764
+ for (r = X - 1; u > n; ) {
765
+ if (o[--u] < a[u]) {
766
+ for (t = u; t && !o[--t]; o[t] = r) ;
767
+ --o[t], o[u] += X;
768
+ }
769
+ o[u] -= a[u];
770
+ }
771
+ for (; o[0] == 0; o.splice(0, 1), --c) ;
772
+ return o[0] ? ge(e, o, c) : (e.s = Z == 3 ? -1 : 1, e.c = [e.e = 0], e);
773
+ }, g.modulo = g.mod = function(e, r) {
774
+ var t, u, i = this;
775
+ return e = new h(e, r), !i.c || !e.s || e.c && !e.c[0] ? new h(NaN) : !e.c || i.c && !i.c[0] ? new h(i) : (I == 9 ? (u = e.s, e.s = 1, t = _(i, e, 0, 3), e.s = u, t.s *= u) : t = _(i, e, 0, I), e = i.minus(t.times(e)), !e.c[0] && I == 1 && (e.s = i.s), e);
776
+ }, g.multipliedBy = g.times = function(e, r) {
777
+ var t, u, i, s, l, n, f, c, o, a, A, S, U, re, fe, P = this, W = P.c, ce = (e = new h(e, r)).c;
778
+ if (!W || !ce || !W[0] || !ce[0])
779
+ return !P.s || !e.s || W && !W[0] && !ce || ce && !ce[0] && !W ? e.c = e.e = e.s = null : (e.s *= P.s, !W || !ce ? e.c = e.e = null : (e.c = [0], e.e = 0)), e;
780
+ for (u = M(P.e / v) + M(e.e / v), e.s *= P.s, f = W.length, a = ce.length, f < a && (U = W, W = ce, ce = U, i = f, f = a, a = i), i = f + a, U = []; i--; U.push(0)) ;
781
+ for (re = X, fe = T, i = a; --i >= 0; ) {
782
+ for (t = 0, A = ce[i] % fe, S = ce[i] / fe | 0, l = f, s = i + l; s > i; )
783
+ c = W[--l] % fe, o = W[l] / fe | 0, n = S * c + o * A, c = A * c + n % fe * fe + U[s] + t, t = (c / re | 0) + (n / fe | 0) + S * o, U[s--] = c % re;
784
+ U[s] = t;
785
+ }
786
+ return t ? ++u : U.splice(0, 1), ge(e, U, u);
787
+ }, g.negated = function() {
788
+ var e = new h(this);
789
+ return e.s = -e.s || null, e;
790
+ }, g.plus = function(e, r) {
791
+ var t, u = this, i = u.s;
792
+ if (e = new h(e, r), r = e.s, !i || !r) return new h(NaN);
793
+ if (i != r)
794
+ return e.s = -r, u.minus(e);
795
+ var s = u.e / v, l = e.e / v, n = u.c, f = e.c;
796
+ if (!s || !l) {
797
+ if (!n || !f) return new h(i / 0);
798
+ if (!n[0] || !f[0]) return f[0] ? e : new h(n[0] ? u : i * 0);
799
+ }
800
+ if (s = M(s), l = M(l), n = n.slice(), i = s - l) {
801
+ for (i > 0 ? (l = s, t = f) : (i = -i, t = n), t.reverse(); i--; t.push(0)) ;
802
+ t.reverse();
803
+ }
804
+ for (i = n.length, r = f.length, i - r < 0 && (t = f, f = n, n = t, r = i), i = 0; r; )
805
+ i = (n[--r] = n[r] + f[r] + i) / X | 0, n[r] = X === n[r] ? 0 : n[r] % X;
806
+ return i && (n = [i].concat(n), ++l), ge(e, n, l);
807
+ }, g.precision = g.sd = function(e, r) {
808
+ var t, u, i, s = this;
809
+ if (e != null && e !== !!e)
810
+ return N(e, 1, L), r == null ? r = Z : N(r, 0, 8), se(new h(s), e, r);
811
+ if (!(t = s.c)) return null;
812
+ if (i = t.length - 1, u = i * v + 1, i = t[i]) {
813
+ for (; i % 10 == 0; i /= 10, u--) ;
814
+ for (i = t[0]; i >= 10; i /= 10, u++) ;
815
+ }
816
+ return e && s.e + 1 > u && (u = s.e + 1), u;
817
+ }, g.shiftedBy = function(e) {
818
+ return N(e, -Y, Y), this.times("1e" + e);
819
+ }, g.squareRoot = g.sqrt = function() {
820
+ var e, r, t, u, i, s = this, l = s.c, n = s.s, f = s.e, c = H + 4, o = new h("0.5");
821
+ if (n !== 1 || !l || !l[0])
822
+ return new h(!n || n < 0 && (!l || l[0]) ? NaN : l ? s : 1 / 0);
823
+ if (n = Math.sqrt(+ue(s)), n == 0 || n == 1 / 0 ? (r = k(l), (r.length + f) % 2 == 0 && (r += "0"), n = Math.sqrt(+r), f = M((f + 1) / 2) - (f < 0 || f % 2), n == 1 / 0 ? r = "5e" + f : (r = n.toExponential(), r = r.slice(0, r.indexOf("e") + 1) + f), t = new h(r)) : t = new h(n + ""), t.c[0]) {
824
+ for (f = t.e, n = f + c, n < 3 && (n = 0); ; )
825
+ if (i = t, t = o.times(i.plus(_(s, i, c, 1))), k(i.c).slice(0, n) === (r = k(t.c)).slice(0, n))
826
+ if (t.e < f && --n, r = r.slice(n - 3, n + 1), r == "9999" || !u && r == "4999") {
827
+ if (!u && (se(i, i.e + H + 2, 0), i.times(i).eq(s))) {
828
+ t = i;
829
+ break;
830
+ }
831
+ c += 4, n += 4, u = 1;
832
+ } else {
833
+ (!+r || !+r.slice(1) && r.charAt(0) == "5") && (se(t, t.e + H + 2, 1), e = !t.times(t).eq(s));
834
+ break;
835
+ }
836
+ }
837
+ return se(t, t.e + H + 1, Z, e);
838
+ }, g.toExponential = function(e, r) {
839
+ return e != null && (N(e, 0, L), e++), oe(this, e, r, 1);
840
+ }, g.toFixed = function(e, r) {
841
+ return e != null && (N(e, 0, L), e = e + this.e + 1), oe(this, e, r);
842
+ }, g.toFormat = function(e, r, t) {
843
+ var u, i = this;
844
+ if (t == null)
845
+ e != null && r && typeof r == "object" ? (t = r, r = null) : e && typeof e == "object" ? (t = e, e = r = null) : t = j;
846
+ else if (typeof t != "object")
847
+ throw Error(C + "Argument not an object: " + t);
848
+ if (u = i.toFixed(e, r), i.c) {
849
+ var s, l = u.split("."), n = +t.groupSize, f = +t.secondaryGroupSize, c = t.groupSeparator || "", o = l[0], a = l[1], A = i.s < 0, S = A ? o.slice(1) : o, U = S.length;
850
+ if (f && (s = n, n = f, f = s, U -= s), n > 0 && U > 0) {
851
+ for (s = U % n || n, o = S.substr(0, s); s < U; s += n) o += c + S.substr(s, n);
852
+ f > 0 && (o += c + S.slice(s)), A && (o = "-" + o);
853
+ }
854
+ u = a ? o + (t.decimalSeparator || "") + ((f = +t.fractionGroupSize) ? a.replace(new RegExp("\\d{" + f + "}\\B", "g"), "$&" + (t.fractionGroupSeparator || "")) : a) : o;
855
+ }
856
+ return (t.prefix || "") + u + (t.suffix || "");
857
+ }, g.toFraction = function(e) {
858
+ var r, t, u, i, s, l, n, f, c, o, a, A, S = this, U = S.c;
859
+ if (e != null && (n = new h(e), !n.isInteger() && (n.c || n.s !== 1) || n.lt(B)))
860
+ throw Error(C + "Argument " + (n.isInteger() ? "out of range: " : "not an integer: ") + ue(n));
861
+ if (!U) return new h(S);
862
+ for (r = new h(B), c = t = new h(B), u = f = new h(B), A = k(U), s = r.e = A.length - S.e - 1, r.c[0] = G[(l = s % v) < 0 ? v + l : l], e = !e || n.comparedTo(r) > 0 ? s > 0 ? r : c : n, l = m, m = 1 / 0, n = new h(A), f.c[0] = 0; o = _(n, r, 0, 1), i = t.plus(o.times(u)), i.comparedTo(e) != 1; )
863
+ t = u, u = i, c = f.plus(o.times(i = c)), f = i, r = n.minus(o.times(i = r)), n = i;
864
+ return i = _(e.minus(t), u, 0, 1), f = f.plus(i.times(c)), t = t.plus(i.times(u)), f.s = c.s = S.s, s = s * 2, a = _(c, u, s, Z).minus(S).abs().comparedTo(_(f, t, s, Z).minus(S).abs()) < 1 ? [c, u] : [f, t], m = l, a;
865
+ }, g.toNumber = function() {
866
+ return +ue(this);
867
+ }, g.toPrecision = function(e, r) {
868
+ return e != null && N(e, 1, L), oe(this, e, r, 2);
869
+ }, g.toString = function(e) {
870
+ var r, t = this, u = t.s, i = t.e;
871
+ return i === null ? u ? (r = "Infinity", u < 0 && (r = "-" + r)) : r = "NaN" : (e == null ? r = i <= O || i >= d ? ae(k(t.c), i) : K(k(t.c), i, "0") : e === 10 && ee ? (t = se(new h(t), H + i + 1, Z), r = K(k(t.c), t.e, "0")) : (N(e, 2, q.length, "Base"), r = V(K(k(t.c), i, "0"), 10, e, u, !0)), u < 0 && t.c[0] && (r = "-" + r)), r;
872
+ }, g.valueOf = g.toJSON = function() {
873
+ return ue(this);
874
+ }, g._isBigNumber = !0, $ != null && h.set($), h;
875
+ }
876
+ function M($) {
877
+ var _ = $ | 0;
878
+ return $ > 0 || $ === _ ? _ : _ - 1;
879
+ }
880
+ function k($) {
881
+ for (var _, V, J = 1, g = $.length, B = $[0] + ""; J < g; ) {
882
+ for (_ = $[J++] + "", V = v - _.length; V--; _ = "0" + _) ;
883
+ B += _;
884
+ }
885
+ for (g = B.length; B.charCodeAt(--g) === 48; ) ;
886
+ return B.slice(0, g + 1 || 1);
887
+ }
888
+ function F($, _) {
889
+ var V, J, g = $.c, B = _.c, H = $.s, Z = _.s, O = $.e, d = _.e;
890
+ if (!H || !Z) return null;
891
+ if (V = g && !g[0], J = B && !B[0], V || J) return V ? J ? 0 : -Z : H;
892
+ if (H != Z) return H;
893
+ if (V = H < 0, J = O == d, !g || !B) return J ? 0 : !g ^ V ? 1 : -1;
894
+ if (!J) return O > d ^ V ? 1 : -1;
895
+ for (Z = (O = g.length) < (d = B.length) ? O : d, H = 0; H < Z; H++) if (g[H] != B[H]) return g[H] > B[H] ^ V ? 1 : -1;
896
+ return O == d ? 0 : O > d ^ V ? 1 : -1;
897
+ }
898
+ function N($, _, V, J) {
899
+ if ($ < _ || $ > V || $ !== z($))
900
+ throw Error(C + (J || "Argument") + (typeof $ == "number" ? $ < _ || $ > V ? " out of range: " : " not an integer: " : " not a primitive number: ") + String($));
901
+ }
902
+ function ie($) {
903
+ var _ = $.c.length - 1;
904
+ return M($.e / v) == _ && $.c[_] % 2 != 0;
905
+ }
906
+ function ae($, _) {
907
+ return ($.length > 1 ? $.charAt(0) + "." + $.slice(1) : $) + (_ < 0 ? "e" : "e+") + _;
908
+ }
909
+ function K($, _, V) {
910
+ var J, g;
911
+ if (_ < 0) {
912
+ for (g = V + "."; ++_; g += V) ;
913
+ $ = g + $;
914
+ } else if (J = $.length, ++_ > J) {
915
+ for (g = V, _ -= J; --_; g += V) ;
916
+ $ += g;
917
+ } else _ < J && ($ = $.slice(0, _) + "." + $.slice(_));
918
+ return $;
919
+ }
920
+ R = ne(), R.default = R.BigNumber = R, x.exports ? x.exports = R : (b || (b = typeof self < "u" && self ? self : window), b.BigNumber = R);
921
+ })(Ne);
922
+ })(Se);
923
+ var Ee = Se.exports;
924
+ (function(x) {
925
+ var b = Ee, R = x.exports;
926
+ (function() {
927
+ var y = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, Q, z, C = {
928
+ // table of character substitutions
929
+ "\b": "\\b",
930
+ " ": "\\t",
931
+ "\n": "\\n",
932
+ "\f": "\\f",
933
+ "\r": "\\r",
934
+ '"': '\\"',
935
+ "\\": "\\\\"
936
+ }, E;
937
+ function X(Y) {
938
+ return y.lastIndex = 0, y.test(Y) ? '"' + Y.replace(y, function(G) {
939
+ var T = C[G];
940
+ return typeof T == "string" ? T : "\\u" + ("0000" + G.charCodeAt(0).toString(16)).slice(-4);
941
+ }) + '"' : '"' + Y + '"';
942
+ }
943
+ function v(Y, G) {
944
+ var T, L, ne, M, k = Q, F, N = G[Y], ie = N != null && (N instanceof b || b.isBigNumber(N));
945
+ switch (N && typeof N == "object" && typeof N.toJSON == "function" && (N = N.toJSON(Y)), typeof E == "function" && (N = E.call(G, Y, N)), typeof N) {
946
+ case "string":
947
+ return ie ? N : X(N);
948
+ case "number":
949
+ return isFinite(N) ? String(N) : "null";
950
+ case "boolean":
951
+ case "null":
952
+ case "bigint":
953
+ return String(N);
954
+ case "object":
955
+ if (!N)
956
+ return "null";
957
+ if (Q += z, F = [], Object.prototype.toString.apply(N) === "[object Array]") {
958
+ for (M = N.length, T = 0; T < M; T += 1)
959
+ F[T] = v(T, N) || "null";
960
+ return ne = F.length === 0 ? "[]" : Q ? `[
961
+ ` + Q + F.join(`,
962
+ ` + Q) + `
963
+ ` + k + "]" : "[" + F.join(",") + "]", Q = k, ne;
964
+ }
965
+ if (E && typeof E == "object")
966
+ for (M = E.length, T = 0; T < M; T += 1)
967
+ typeof E[T] == "string" && (L = E[T], ne = v(L, N), ne && F.push(X(L) + (Q ? ": " : ":") + ne));
968
+ else
969
+ Object.keys(N).forEach(function(ae) {
970
+ var K = v(ae, N);
971
+ K && F.push(X(ae) + (Q ? ": " : ":") + K);
972
+ });
973
+ return ne = F.length === 0 ? "{}" : Q ? `{
974
+ ` + Q + F.join(`,
975
+ ` + Q) + `
976
+ ` + k + "}" : "{" + F.join(",") + "}", Q = k, ne;
977
+ }
978
+ }
979
+ typeof R.stringify != "function" && (R.stringify = function(Y, G, T) {
980
+ var L;
981
+ if (Q = "", z = "", typeof T == "number")
982
+ for (L = 0; L < T; L += 1)
983
+ z += " ";
984
+ else typeof T == "string" && (z = T);
985
+ if (E = G, G && typeof G != "function" && (typeof G != "object" || typeof G.length != "number"))
986
+ throw new Error("JSON.stringify");
987
+ return v("", {
988
+ "": Y
989
+ });
990
+ });
991
+ })();
992
+ })(Ae);
993
+ var De = Ae.exports, ve = null;
994
+ const Be = /(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])/, Ie = /(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)/;
995
+ var ke = function(x) {
996
+ var b = {
997
+ strict: !1,
998
+ // not being strict means do not generate syntax errors for "duplicate key"
999
+ storeAsString: !1,
1000
+ // toggles whether the values should be stored as BigNumber (default) or a string
1001
+ alwaysParseAsBig: !1,
1002
+ // toggles whether all numbers should be Big
1003
+ useNativeBigInt: !1,
1004
+ // toggles whether to use native BigInt instead of bignumber.js
1005
+ protoAction: "error",
1006
+ constructorAction: "error"
1007
+ };
1008
+ if (x != null) {
1009
+ if (x.strict === !0 && (b.strict = !0), x.storeAsString === !0 && (b.storeAsString = !0), b.alwaysParseAsBig = x.alwaysParseAsBig === !0 ? x.alwaysParseAsBig : !1, b.useNativeBigInt = x.useNativeBigInt === !0 ? x.useNativeBigInt : !1, typeof x.constructorAction < "u")
1010
+ if (x.constructorAction === "error" || x.constructorAction === "ignore" || x.constructorAction === "preserve")
1011
+ b.constructorAction = x.constructorAction;
1012
+ else
1013
+ throw new Error(`Incorrect value for constructorAction option, must be "error", "ignore" or undefined but passed ${x.constructorAction}`);
1014
+ if (typeof x.protoAction < "u")
1015
+ if (x.protoAction === "error" || x.protoAction === "ignore" || x.protoAction === "preserve")
1016
+ b.protoAction = x.protoAction;
1017
+ else
1018
+ throw new Error(`Incorrect value for protoAction option, must be "error", "ignore" or undefined but passed ${x.protoAction}`);
1019
+ }
1020
+ var R, y, Q = {
1021
+ '"': '"',
1022
+ "\\": "\\",
1023
+ "/": "/",
1024
+ b: "\b",
1025
+ f: "\f",
1026
+ n: `
1027
+ `,
1028
+ r: "\r",
1029
+ t: " "
1030
+ }, z, C = function(M) {
1031
+ throw {
1032
+ name: "SyntaxError",
1033
+ message: M,
1034
+ at: R,
1035
+ text: z
1036
+ };
1037
+ }, E = function(M) {
1038
+ return M && M !== y && C("Expected '" + M + "' instead of '" + y + "'"), y = z.charAt(R), R += 1, y;
1039
+ }, X = function() {
1040
+ var M, k = "";
1041
+ for (y === "-" && (k = "-", E("-")); y >= "0" && y <= "9"; )
1042
+ k += y, E();
1043
+ if (y === ".")
1044
+ for (k += "."; E() && y >= "0" && y <= "9"; )
1045
+ k += y;
1046
+ if (y === "e" || y === "E")
1047
+ for (k += y, E(), (y === "-" || y === "+") && (k += y, E()); y >= "0" && y <= "9"; )
1048
+ k += y, E();
1049
+ if (M = +k, !isFinite(M))
1050
+ C("Bad number");
1051
+ else
1052
+ return ve == null && (ve = Ee), k.length > 15 ? b.storeAsString ? k : b.useNativeBigInt ? BigInt(k) : new ve(k) : b.alwaysParseAsBig ? b.useNativeBigInt ? BigInt(M) : new ve(M) : M;
1053
+ }, v = function() {
1054
+ var M, k, F = "", N;
1055
+ if (y === '"')
1056
+ for (var ie = R; E(); ) {
1057
+ if (y === '"')
1058
+ return R - 1 > ie && (F += z.substring(ie, R - 1)), E(), F;
1059
+ if (y === "\\") {
1060
+ if (R - 1 > ie && (F += z.substring(ie, R - 1)), E(), y === "u") {
1061
+ for (N = 0, k = 0; k < 4 && (M = parseInt(E(), 16), !!isFinite(M)); k += 1)
1062
+ N = N * 16 + M;
1063
+ F += String.fromCharCode(N);
1064
+ } else if (typeof Q[y] == "string")
1065
+ F += Q[y];
1066
+ else
1067
+ break;
1068
+ ie = R;
1069
+ }
1070
+ }
1071
+ C("Bad string");
1072
+ }, Y = function() {
1073
+ for (; y && y <= " "; )
1074
+ E();
1075
+ }, G = function() {
1076
+ switch (y) {
1077
+ case "t":
1078
+ return E("t"), E("r"), E("u"), E("e"), !0;
1079
+ case "f":
1080
+ return E("f"), E("a"), E("l"), E("s"), E("e"), !1;
1081
+ case "n":
1082
+ return E("n"), E("u"), E("l"), E("l"), null;
1083
+ }
1084
+ C("Unexpected '" + y + "'");
1085
+ }, T, L = function() {
1086
+ var M = [];
1087
+ if (y === "[") {
1088
+ if (E("["), Y(), y === "]")
1089
+ return E("]"), M;
1090
+ for (; y; ) {
1091
+ if (M.push(T()), Y(), y === "]")
1092
+ return E("]"), M;
1093
+ E(","), Y();
1094
+ }
1095
+ }
1096
+ C("Bad array");
1097
+ }, ne = function() {
1098
+ var M, k = /* @__PURE__ */ Object.create(null);
1099
+ if (y === "{") {
1100
+ if (E("{"), Y(), y === "}")
1101
+ return E("}"), k;
1102
+ for (; y; ) {
1103
+ if (M = v(), Y(), E(":"), b.strict === !0 && Object.hasOwnProperty.call(k, M) && C('Duplicate key "' + M + '"'), Be.test(M) === !0 ? b.protoAction === "error" ? C("Object contains forbidden prototype property") : b.protoAction === "ignore" ? T() : k[M] = T() : Ie.test(M) === !0 ? b.constructorAction === "error" ? C("Object contains forbidden constructor property") : b.constructorAction === "ignore" ? T() : k[M] = T() : k[M] = T(), Y(), y === "}")
1104
+ return E("}"), k;
1105
+ E(","), Y();
1106
+ }
1107
+ }
1108
+ C("Bad object");
1109
+ };
1110
+ return T = function() {
1111
+ switch (Y(), y) {
1112
+ case "{":
1113
+ return ne();
1114
+ case "[":
1115
+ return L();
1116
+ case '"':
1117
+ return v();
1118
+ case "-":
1119
+ return X();
1120
+ default:
1121
+ return y >= "0" && y <= "9" ? X() : G();
1122
+ }
1123
+ }, function(M, k) {
1124
+ var F;
1125
+ return z = M + "", R = 0, y = " ", F = T(), Y(), y && C("Syntax error"), typeof k == "function" ? function N(ie, ae) {
1126
+ var K, $ = ie[ae];
1127
+ return $ && typeof $ == "object" && Object.keys($).forEach(function(_) {
1128
+ K = N($, _), K !== void 0 ? $[_] = K : delete $[_];
1129
+ }), k.call(ie, ae, $);
1130
+ }({
1131
+ "": F
1132
+ }, "") : F;
1133
+ };
1134
+ }, Te = ke, xe = De.stringify, Me = Te;
1135
+ $e.exports = function(x) {
1136
+ return {
1137
+ parse: Me(x),
1138
+ stringify: xe
1139
+ };
1140
+ };
1141
+ var Le = $e.exports.parse = Me(), Ce = $e.exports.stringify = xe;
1142
+ function Re(x, b) {
1143
+ return x.find((R) => R.key === b);
1144
+ }
1145
+ function be(x) {
1146
+ try {
1147
+ const b = typeof x == "string" ? Le(x) : x;
1148
+ return Ce(b, null, 2);
1149
+ } catch (b) {
1150
+ return console.error("Invalid JSON data:", b), x;
1151
+ }
1152
+ }
1153
+ function Ue(x) {
1154
+ return x ? typeof x == "object" && x !== null ? be(x) : typeof x == "boolean" || typeof x == "number" || x != null ? x.toString() : "-" : "-";
1155
+ }
1156
+ function Fe(x, b) {
1157
+ return b.split(".").reduce((R, y) => R == null ? void 0 : R[y], x);
1158
+ }
1159
+ function je(x, b, R) {
1160
+ return `mailto:${x}?subject=${encodeURIComponent(b)}&body=${encodeURIComponent(R)}`;
1161
+ }
1162
+ export {
1163
+ Fe as a,
1164
+ je as c,
1165
+ Re as f,
1166
+ Ue as g
1167
+ };