@coinbase/cdp-core 0.0.67 → 0.0.69

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 (160) hide show
  1. package/README.md +149 -1
  2. package/dist/esm/index.native113.js +1 -1
  3. package/dist/esm/index.native137.js +2 -2
  4. package/dist/esm/index.native151.js +2 -4
  5. package/dist/esm/index.native152.js +109 -2
  6. package/dist/esm/index.native153.js +2 -109
  7. package/dist/esm/index.native154.js +4 -2
  8. package/dist/esm/index.native155.js +1 -1
  9. package/dist/esm/index.native156.js +7 -38
  10. package/dist/esm/index.native158.js +375 -67
  11. package/dist/esm/index.native159.js +832 -34
  12. package/dist/esm/index.native160.js +38 -20
  13. package/dist/esm/index.native161.js +2 -8
  14. package/dist/esm/index.native162.js +70 -2
  15. package/dist/esm/index.native163.js +30 -373
  16. package/dist/esm/index.native164.js +20 -832
  17. package/dist/esm/index.native175.js +2 -2
  18. package/dist/esm/index.native176.js +2 -2
  19. package/dist/esm/index.native177.js +2 -2
  20. package/dist/esm/index.native21.js +4 -2
  21. package/dist/esm/index.native31.js +1 -1
  22. package/dist/esm/index.native35.js +13 -12
  23. package/dist/esm/index.native37.js +4 -2
  24. package/dist/esm/index.native51.js +1 -1
  25. package/dist/esm/index.native52.js +3 -3
  26. package/dist/esm/index.native60.js +377 -2
  27. package/dist/esm/index.native61.js +2 -379
  28. package/dist/esm/index.native62.js +65 -28
  29. package/dist/esm/index.native63.js +364 -28
  30. package/dist/esm/index.native64.js +4 -2
  31. package/dist/esm/index.native65.js +28 -65
  32. package/dist/esm/index.native66.js +28 -364
  33. package/dist/esm/index.native7.js +6 -10
  34. package/dist/esm/index.web104.js +1 -1
  35. package/dist/esm/index.web107.js +6 -6
  36. package/dist/esm/index.web114.js +2 -2
  37. package/dist/esm/index.web118.js +1 -1
  38. package/dist/esm/index.web122.js +3 -20
  39. package/dist/esm/index.web123.js +21 -10
  40. package/dist/esm/index.web124.js +9 -19
  41. package/dist/esm/index.web125.js +15 -89
  42. package/dist/esm/index.web126.js +92 -19
  43. package/dist/esm/index.web127.js +18 -115
  44. package/dist/esm/index.web128.js +112 -73
  45. package/dist/esm/index.web150.js +7 -3
  46. package/dist/esm/index.web151.js +2 -39
  47. package/dist/esm/index.web152.js +378 -2
  48. package/dist/esm/index.web153.js +832 -69
  49. package/dist/esm/index.web154.js +37 -33
  50. package/dist/esm/index.web155.js +2 -21
  51. package/dist/esm/index.web156.js +69 -7
  52. package/dist/esm/index.web157.js +35 -2
  53. package/dist/esm/index.web158.js +17 -374
  54. package/dist/esm/index.web159.js +78 -832
  55. package/dist/esm/index.web20.js +4 -2
  56. package/dist/esm/index.web29.js +1 -1
  57. package/dist/esm/index.web33.js +13 -12
  58. package/dist/esm/index.web35.js +4 -2
  59. package/dist/esm/index.web6.js +6 -10
  60. package/dist/native/index.native113.js +1 -1
  61. package/dist/native/index.native137.js +2 -2
  62. package/dist/native/index.native151.js +2 -4
  63. package/dist/native/index.native152.js +109 -2
  64. package/dist/native/index.native153.js +2 -109
  65. package/dist/native/index.native154.js +4 -2
  66. package/dist/native/index.native155.js +1 -1
  67. package/dist/native/index.native156.js +7 -38
  68. package/dist/native/index.native158.js +375 -67
  69. package/dist/native/index.native159.js +832 -34
  70. package/dist/native/index.native160.js +38 -20
  71. package/dist/native/index.native161.js +2 -8
  72. package/dist/native/index.native162.js +70 -2
  73. package/dist/native/index.native163.js +30 -373
  74. package/dist/native/index.native164.js +20 -832
  75. package/dist/native/index.native175.js +2 -2
  76. package/dist/native/index.native176.js +2 -2
  77. package/dist/native/index.native177.js +2 -2
  78. package/dist/native/index.native21.js +4 -2
  79. package/dist/native/index.native31.js +1 -1
  80. package/dist/native/index.native35.js +13 -12
  81. package/dist/native/index.native37.js +4 -2
  82. package/dist/native/index.native51.js +1 -1
  83. package/dist/native/index.native52.js +3 -3
  84. package/dist/native/index.native60.js +377 -2
  85. package/dist/native/index.native61.js +2 -379
  86. package/dist/native/index.native62.js +65 -28
  87. package/dist/native/index.native63.js +364 -28
  88. package/dist/native/index.native64.js +4 -2
  89. package/dist/native/index.native65.js +28 -65
  90. package/dist/native/index.native66.js +28 -364
  91. package/dist/native/index.native7.js +6 -10
  92. package/dist/native-types/actions/initiateMfaEnrollment.d.ts +9 -0
  93. package/dist/native-types/actions/initiateMfaVerification.d.ts +2 -0
  94. package/dist/native-types/actions/submitMfaEnrollment.d.ts +10 -0
  95. package/dist/native-types/actions/submitMfaVerification.d.ts +6 -0
  96. package/dist/native-types/auth/authManager.d.ts +3 -1
  97. package/dist/native-types/auth/toAuthState.d.ts +10 -3
  98. package/dist/native-types/auth/types.d.ts +3 -1
  99. package/dist/native-types/auth/withAuth.d.ts +1 -1
  100. package/dist/native-types/core.d.ts +3 -1
  101. package/dist/native-types/index.d.ts +4 -0
  102. package/dist/native-types/mocks/mockAuthManager.d.ts +3 -1
  103. package/dist/native-types/shared/validators.d.ts +4 -0
  104. package/dist/native-types/types.d.ts +2 -1
  105. package/dist/native-types/version.d.ts +1 -1
  106. package/dist/types/actions/initiateMfaEnrollment.d.ts +9 -0
  107. package/dist/types/actions/initiateMfaVerification.d.ts +2 -0
  108. package/dist/types/actions/submitMfaEnrollment.d.ts +10 -0
  109. package/dist/types/actions/submitMfaVerification.d.ts +6 -0
  110. package/dist/types/auth/authManager.d.ts +3 -1
  111. package/dist/types/auth/toAuthState.d.ts +10 -3
  112. package/dist/types/auth/types.d.ts +3 -1
  113. package/dist/types/auth/withAuth.d.ts +1 -1
  114. package/dist/types/core.d.ts +3 -1
  115. package/dist/types/index.d.ts +4 -0
  116. package/dist/types/mocks/mockAuthManager.d.ts +3 -1
  117. package/dist/types/shared/validators.d.ts +4 -0
  118. package/dist/types/types.d.ts +2 -1
  119. package/dist/types/version.d.ts +1 -1
  120. package/dist/web/index.web104.js +1 -1
  121. package/dist/web/index.web107.js +6 -6
  122. package/dist/web/index.web114.js +2 -2
  123. package/dist/web/index.web118.js +1 -1
  124. package/dist/web/index.web122.js +3 -20
  125. package/dist/web/index.web123.js +21 -10
  126. package/dist/web/index.web124.js +9 -19
  127. package/dist/web/index.web125.js +15 -89
  128. package/dist/web/index.web126.js +92 -19
  129. package/dist/web/index.web127.js +18 -115
  130. package/dist/web/index.web128.js +112 -73
  131. package/dist/web/index.web150.js +7 -3
  132. package/dist/web/index.web151.js +2 -39
  133. package/dist/web/index.web152.js +378 -2
  134. package/dist/web/index.web153.js +832 -69
  135. package/dist/web/index.web154.js +37 -33
  136. package/dist/web/index.web155.js +2 -21
  137. package/dist/web/index.web156.js +69 -7
  138. package/dist/web/index.web157.js +35 -2
  139. package/dist/web/index.web158.js +17 -374
  140. package/dist/web/index.web159.js +78 -832
  141. package/dist/web/index.web20.js +4 -2
  142. package/dist/web/index.web29.js +1 -1
  143. package/dist/web/index.web33.js +13 -12
  144. package/dist/web/index.web35.js +4 -2
  145. package/dist/web/index.web6.js +6 -10
  146. package/dist/web-types/actions/initiateMfaEnrollment.d.ts +9 -0
  147. package/dist/web-types/actions/initiateMfaVerification.d.ts +2 -0
  148. package/dist/web-types/actions/submitMfaEnrollment.d.ts +10 -0
  149. package/dist/web-types/actions/submitMfaVerification.d.ts +6 -0
  150. package/dist/web-types/auth/authManager.d.ts +3 -1
  151. package/dist/web-types/auth/toAuthState.d.ts +10 -3
  152. package/dist/web-types/auth/types.d.ts +3 -1
  153. package/dist/web-types/auth/withAuth.d.ts +1 -1
  154. package/dist/web-types/core.d.ts +3 -1
  155. package/dist/web-types/index.d.ts +4 -0
  156. package/dist/web-types/mocks/mockAuthManager.d.ts +3 -1
  157. package/dist/web-types/shared/validators.d.ts +4 -0
  158. package/dist/web-types/types.d.ts +2 -1
  159. package/dist/web-types/version.d.ts +1 -1
  160. package/package.json +3 -3
@@ -1,81 +1,120 @@
1
- import { Hash as g, createView as l, aexists as b, toBytes as a, abytes as d, aoutput as x, clean as w } from "./index.web117.js";
2
- function y(o, t, s, n) {
3
- if (typeof o.setBigUint64 == "function")
4
- return o.setBigUint64(t, s, n);
5
- const i = BigInt(32), h = BigInt(4294967295), e = Number(s >> i & h), r = Number(s & h), c = n ? 4 : 0, u = n ? 0 : 4;
6
- o.setUint32(t + c, e, n), o.setUint32(t + u, r, n);
7
- }
8
- function U(o, t, s) {
9
- return o & t ^ ~o & s;
10
- }
11
- function _(o, t, s) {
12
- return o & t ^ o & s ^ t & s;
13
- }
14
- class m extends g {
15
- constructor(t, s, n, i) {
16
- super(), this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.blockLen = t, this.outputLen = s, this.padOffset = n, this.isLE = i, this.buffer = new Uint8Array(t), this.view = l(this.buffer);
17
- }
18
- update(t) {
19
- b(this), t = a(t), d(t);
20
- const { view: s, buffer: n, blockLen: i } = this, h = t.length;
21
- for (let e = 0; e < h; ) {
22
- const r = Math.min(i - this.pos, h - e);
23
- if (r === i) {
24
- const c = l(t);
25
- for (; i <= h - e; e += i)
26
- this.process(c, e);
27
- continue;
28
- }
29
- n.set(t.subarray(e, e + r), this.pos), this.pos += r, e += r, this.pos === i && (this.process(s, 0), this.pos = 0);
1
+ import { isJWK as p } from "./index.web170.js";
2
+ import { decode as m } from "./index.web123.js";
3
+ import y from "./index.web171.js";
4
+ import { isCryptoKey as S, isKeyObject as K } from "./index.web169.js";
5
+ let c;
6
+ const f = async (e, r, s, i = !1) => {
7
+ c ||= /* @__PURE__ */ new WeakMap();
8
+ let n = c.get(e);
9
+ if (n?.[s])
10
+ return n[s];
11
+ const t = await y({ ...r, alg: s });
12
+ return i && Object.freeze(e), n ? n[s] = t : c.set(e, { [s]: t }), t;
13
+ }, E = (e, r) => {
14
+ c ||= /* @__PURE__ */ new WeakMap();
15
+ let s = c.get(e);
16
+ if (s?.[r])
17
+ return s[r];
18
+ const i = e.type === "public", n = !!i;
19
+ let t;
20
+ if (e.asymmetricKeyType === "x25519") {
21
+ switch (r) {
22
+ case "ECDH-ES":
23
+ case "ECDH-ES+A128KW":
24
+ case "ECDH-ES+A192KW":
25
+ case "ECDH-ES+A256KW":
26
+ break;
27
+ default:
28
+ throw new TypeError("given KeyObject instance cannot be used for this algorithm");
30
29
  }
31
- return this.length += t.length, this.roundClean(), this;
30
+ t = e.toCryptoKey(e.asymmetricKeyType, n, i ? [] : ["deriveBits"]);
32
31
  }
33
- digestInto(t) {
34
- b(this), x(t, this), this.finished = !0;
35
- const { buffer: s, view: n, blockLen: i, isLE: h } = this;
36
- let { pos: e } = this;
37
- s[e++] = 128, w(this.buffer.subarray(e)), this.padOffset > i - e && (this.process(n, 0), e = 0);
38
- for (let f = e; f < i; f++)
39
- s[f] = 0;
40
- y(n, i - 8, BigInt(this.length * 8), h), this.process(n, 0);
41
- const r = l(t), c = this.outputLen;
42
- if (c % 4)
43
- throw new Error("_sha2: outputLen should be aligned to 32bit");
44
- const u = c / 4, p = this.get();
45
- if (u > p.length)
46
- throw new Error("_sha2: outputLen bigger than state");
47
- for (let f = 0; f < u; f++)
48
- r.setUint32(4 * f, p[f], h);
32
+ if (e.asymmetricKeyType === "ed25519") {
33
+ if (r !== "EdDSA" && r !== "Ed25519")
34
+ throw new TypeError("given KeyObject instance cannot be used for this algorithm");
35
+ t = e.toCryptoKey(e.asymmetricKeyType, n, [
36
+ i ? "verify" : "sign"
37
+ ]);
49
38
  }
50
- digest() {
51
- const { buffer: t, outputLen: s } = this;
52
- this.digestInto(t);
53
- const n = t.slice(0, s);
54
- return this.destroy(), n;
39
+ if (e.asymmetricKeyType === "rsa") {
40
+ let a;
41
+ switch (r) {
42
+ case "RSA-OAEP":
43
+ a = "SHA-1";
44
+ break;
45
+ case "RS256":
46
+ case "PS256":
47
+ case "RSA-OAEP-256":
48
+ a = "SHA-256";
49
+ break;
50
+ case "RS384":
51
+ case "PS384":
52
+ case "RSA-OAEP-384":
53
+ a = "SHA-384";
54
+ break;
55
+ case "RS512":
56
+ case "PS512":
57
+ case "RSA-OAEP-512":
58
+ a = "SHA-512";
59
+ break;
60
+ default:
61
+ throw new TypeError("given KeyObject instance cannot be used for this algorithm");
62
+ }
63
+ if (r.startsWith("RSA-OAEP"))
64
+ return e.toCryptoKey({
65
+ name: "RSA-OAEP",
66
+ hash: a
67
+ }, n, i ? ["encrypt"] : ["decrypt"]);
68
+ t = e.toCryptoKey({
69
+ name: r.startsWith("PS") ? "RSA-PSS" : "RSASSA-PKCS1-v1_5",
70
+ hash: a
71
+ }, n, [i ? "verify" : "sign"]);
55
72
  }
56
- _cloneInto(t) {
57
- t || (t = new this.constructor()), t.set(...this.get());
58
- const { blockLen: s, buffer: n, length: i, finished: h, destroyed: e, pos: r } = this;
59
- return t.destroyed = e, t.finished = h, t.length = i, t.pos = r, i % s && t.buffer.set(n), t;
73
+ if (e.asymmetricKeyType === "ec") {
74
+ const o = (/* @__PURE__ */ new Map([
75
+ ["prime256v1", "P-256"],
76
+ ["secp384r1", "P-384"],
77
+ ["secp521r1", "P-521"]
78
+ ])).get(e.asymmetricKeyDetails?.namedCurve);
79
+ if (!o)
80
+ throw new TypeError("given KeyObject instance cannot be used for this algorithm");
81
+ r === "ES256" && o === "P-256" && (t = e.toCryptoKey({
82
+ name: "ECDSA",
83
+ namedCurve: o
84
+ }, n, [i ? "verify" : "sign"])), r === "ES384" && o === "P-384" && (t = e.toCryptoKey({
85
+ name: "ECDSA",
86
+ namedCurve: o
87
+ }, n, [i ? "verify" : "sign"])), r === "ES512" && o === "P-521" && (t = e.toCryptoKey({
88
+ name: "ECDSA",
89
+ namedCurve: o
90
+ }, n, [i ? "verify" : "sign"])), r.startsWith("ECDH-ES") && (t = e.toCryptoKey({
91
+ name: "ECDH",
92
+ namedCurve: o
93
+ }, n, i ? [] : ["deriveBits"]));
60
94
  }
61
- clone() {
62
- return this._cloneInto();
95
+ if (!t)
96
+ throw new TypeError("given KeyObject instance cannot be used for this algorithm");
97
+ return s ? s[r] = t : c.set(e, { [r]: t }), t;
98
+ }, d = async (e, r) => {
99
+ if (e instanceof Uint8Array || S(e))
100
+ return e;
101
+ if (K(e)) {
102
+ if (e.type === "secret")
103
+ return e.export();
104
+ if ("toCryptoKey" in e && typeof e.toCryptoKey == "function")
105
+ try {
106
+ return E(e, r);
107
+ } catch (i) {
108
+ if (i instanceof TypeError)
109
+ throw i;
110
+ }
111
+ let s = e.export({ format: "jwk" });
112
+ return f(e, s, r);
63
113
  }
64
- }
65
- const B = /* @__PURE__ */ Uint32Array.from([
66
- 1779033703,
67
- 3144134277,
68
- 1013904242,
69
- 2773480762,
70
- 1359893119,
71
- 2600822924,
72
- 528734635,
73
- 1541459225
74
- ]);
114
+ if (p(e))
115
+ return e.k ? m(e.k) : f(e, e, r, !0);
116
+ throw new Error("unreachable");
117
+ };
75
118
  export {
76
- U as Chi,
77
- m as HashMD,
78
- _ as Maj,
79
- B as SHA256_IV,
80
- y as setBigUint64
119
+ d as default
81
120
  };
@@ -1,6 +1,10 @@
1
- function e(t) {
2
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
1
+ import { __module as e } from "./index.web151.js";
2
+ import { __require as o } from "./index.web152.js";
3
+ import { __require as t } from "./index.web153.js";
4
+ var r;
5
+ function s() {
6
+ return r ? e.exports : (r = 1, process.env.NODE_ENV === "production" ? e.exports = o() : e.exports = t(), e.exports);
3
7
  }
4
8
  export {
5
- e as getDefaultExportFromCjs
9
+ s as __require
6
10
  };
@@ -1,41 +1,4 @@
1
- import { __module as h } from "./index.web152.js";
2
- import { __require as S } from "./index.web153.js";
3
- import { __require as q } from "./index.web154.js";
4
- import { __require as w } from "./index.web155.js";
5
- var x;
6
- function G() {
7
- return x ? h.exports : (x = 1, function() {
8
- var v = S(), p = q().utf8, B = w(), F = q().bin, d = function(o, f) {
9
- o.constructor == String ? f && f.encoding === "binary" ? o = F.stringToBytes(o) : o = p.stringToBytes(o) : B(o) ? o = Array.prototype.slice.call(o, 0) : !Array.isArray(o) && o.constructor !== Uint8Array && (o = o.toString());
10
- for (var u = v.bytesToWords(o), a = o.length * 8, n = 1732584193, r = -271733879, i = -1732584194, t = 271733878, e = 0; e < u.length; e++)
11
- u[e] = (u[e] << 8 | u[e] >>> 24) & 16711935 | (u[e] << 24 | u[e] >>> 8) & 4278255360;
12
- u[a >>> 5] |= 128 << a % 32, u[(a + 64 >>> 9 << 4) + 14] = a;
13
- for (var _ = d._ff, c = d._gg, l = d._hh, y = d._ii, e = 0; e < u.length; e += 16) {
14
- var T = n, b = r, A = i, I = t;
15
- n = _(n, r, i, t, u[e + 0], 7, -680876936), t = _(t, n, r, i, u[e + 1], 12, -389564586), i = _(i, t, n, r, u[e + 2], 17, 606105819), r = _(r, i, t, n, u[e + 3], 22, -1044525330), n = _(n, r, i, t, u[e + 4], 7, -176418897), t = _(t, n, r, i, u[e + 5], 12, 1200080426), i = _(i, t, n, r, u[e + 6], 17, -1473231341), r = _(r, i, t, n, u[e + 7], 22, -45705983), n = _(n, r, i, t, u[e + 8], 7, 1770035416), t = _(t, n, r, i, u[e + 9], 12, -1958414417), i = _(i, t, n, r, u[e + 10], 17, -42063), r = _(r, i, t, n, u[e + 11], 22, -1990404162), n = _(n, r, i, t, u[e + 12], 7, 1804603682), t = _(t, n, r, i, u[e + 13], 12, -40341101), i = _(i, t, n, r, u[e + 14], 17, -1502002290), r = _(r, i, t, n, u[e + 15], 22, 1236535329), n = c(n, r, i, t, u[e + 1], 5, -165796510), t = c(t, n, r, i, u[e + 6], 9, -1069501632), i = c(i, t, n, r, u[e + 11], 14, 643717713), r = c(r, i, t, n, u[e + 0], 20, -373897302), n = c(n, r, i, t, u[e + 5], 5, -701558691), t = c(t, n, r, i, u[e + 10], 9, 38016083), i = c(i, t, n, r, u[e + 15], 14, -660478335), r = c(r, i, t, n, u[e + 4], 20, -405537848), n = c(n, r, i, t, u[e + 9], 5, 568446438), t = c(t, n, r, i, u[e + 14], 9, -1019803690), i = c(i, t, n, r, u[e + 3], 14, -187363961), r = c(r, i, t, n, u[e + 8], 20, 1163531501), n = c(n, r, i, t, u[e + 13], 5, -1444681467), t = c(t, n, r, i, u[e + 2], 9, -51403784), i = c(i, t, n, r, u[e + 7], 14, 1735328473), r = c(r, i, t, n, u[e + 12], 20, -1926607734), n = l(n, r, i, t, u[e + 5], 4, -378558), t = l(t, n, r, i, u[e + 8], 11, -2022574463), i = l(i, t, n, r, u[e + 11], 16, 1839030562), r = l(r, i, t, n, u[e + 14], 23, -35309556), n = l(n, r, i, t, u[e + 1], 4, -1530992060), t = l(t, n, r, i, u[e + 4], 11, 1272893353), i = l(i, t, n, r, u[e + 7], 16, -155497632), r = l(r, i, t, n, u[e + 10], 23, -1094730640), n = l(n, r, i, t, u[e + 13], 4, 681279174), t = l(t, n, r, i, u[e + 0], 11, -358537222), i = l(i, t, n, r, u[e + 3], 16, -722521979), r = l(r, i, t, n, u[e + 6], 23, 76029189), n = l(n, r, i, t, u[e + 9], 4, -640364487), t = l(t, n, r, i, u[e + 12], 11, -421815835), i = l(i, t, n, r, u[e + 15], 16, 530742520), r = l(r, i, t, n, u[e + 2], 23, -995338651), n = y(n, r, i, t, u[e + 0], 6, -198630844), t = y(t, n, r, i, u[e + 7], 10, 1126891415), i = y(i, t, n, r, u[e + 14], 15, -1416354905), r = y(r, i, t, n, u[e + 5], 21, -57434055), n = y(n, r, i, t, u[e + 12], 6, 1700485571), t = y(t, n, r, i, u[e + 3], 10, -1894986606), i = y(i, t, n, r, u[e + 10], 15, -1051523), r = y(r, i, t, n, u[e + 1], 21, -2054922799), n = y(n, r, i, t, u[e + 8], 6, 1873313359), t = y(t, n, r, i, u[e + 15], 10, -30611744), i = y(i, t, n, r, u[e + 6], 15, -1560198380), r = y(r, i, t, n, u[e + 13], 21, 1309151649), n = y(n, r, i, t, u[e + 4], 6, -145523070), t = y(t, n, r, i, u[e + 11], 10, -1120210379), i = y(i, t, n, r, u[e + 2], 15, 718787259), r = y(r, i, t, n, u[e + 9], 21, -343485551), n = n + T >>> 0, r = r + b >>> 0, i = i + A >>> 0, t = t + I >>> 0;
16
- }
17
- return v.endian([n, r, i, t]);
18
- };
19
- d._ff = function(o, f, u, a, n, r, i) {
20
- var t = o + (f & u | ~f & a) + (n >>> 0) + i;
21
- return (t << r | t >>> 32 - r) + f;
22
- }, d._gg = function(o, f, u, a, n, r, i) {
23
- var t = o + (f & a | u & ~a) + (n >>> 0) + i;
24
- return (t << r | t >>> 32 - r) + f;
25
- }, d._hh = function(o, f, u, a, n, r, i) {
26
- var t = o + (f ^ u ^ a) + (n >>> 0) + i;
27
- return (t << r | t >>> 32 - r) + f;
28
- }, d._ii = function(o, f, u, a, n, r, i) {
29
- var t = o + (u ^ (f | ~a)) + (n >>> 0) + i;
30
- return (t << r | t >>> 32 - r) + f;
31
- }, d._blocksize = 16, d._digestsize = 16, h.exports = function(o, f) {
32
- if (o == null)
33
- throw new Error("Illegal argument " + o);
34
- var u = v.wordsToBytes(d(o, f));
35
- return f && f.asBytes ? u : f && f.asString ? F.bytesToString(u) : v.bytesToHex(u);
36
- };
37
- }(), h.exports);
38
- }
1
+ var e = { exports: {} };
39
2
  export {
40
- G as __require
3
+ e as __module
41
4
  };
@@ -1,4 +1,380 @@
1
- var e = { exports: {} };
1
+ import { __exports as o } from "./index.web175.js";
2
+ /**
3
+ * @license React
4
+ * react.production.js
5
+ *
6
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */
11
+ var $;
12
+ function X() {
13
+ if ($) return o;
14
+ $ = 1;
15
+ var E = Symbol.for("react.transitional.element"), N = Symbol.for("react.portal"), M = Symbol.for("react.fragment"), Y = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), L = Symbol.for("react.consumer"), U = Symbol.for("react.context"), k = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), b = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), C = Symbol.iterator;
16
+ function D(t) {
17
+ return t === null || typeof t != "object" ? null : (t = C && t[C] || t["@@iterator"], typeof t == "function" ? t : null);
18
+ }
19
+ var w = {
20
+ isMounted: function() {
21
+ return !1;
22
+ },
23
+ enqueueForceUpdate: function() {
24
+ },
25
+ enqueueReplaceState: function() {
26
+ },
27
+ enqueueSetState: function() {
28
+ }
29
+ }, A = Object.assign, S = {};
30
+ function _(t, e, n) {
31
+ this.props = t, this.context = e, this.refs = S, this.updater = n || w;
32
+ }
33
+ _.prototype.isReactComponent = {}, _.prototype.setState = function(t, e) {
34
+ if (typeof t != "object" && typeof t != "function" && t != null)
35
+ throw Error(
36
+ "takes an object of state variables to update or a function which returns an object of state variables."
37
+ );
38
+ this.updater.enqueueSetState(this, t, e, "setState");
39
+ }, _.prototype.forceUpdate = function(t) {
40
+ this.updater.enqueueForceUpdate(this, t, "forceUpdate");
41
+ };
42
+ function h() {
43
+ }
44
+ h.prototype = _.prototype;
45
+ function y(t, e, n) {
46
+ this.props = t, this.context = e, this.refs = S, this.updater = n || w;
47
+ }
48
+ var v = y.prototype = new h();
49
+ v.constructor = y, A(v, _.prototype), v.isPureReactComponent = !0;
50
+ var g = Array.isArray, i = { H: null, A: null, T: null, S: null, V: null }, O = Object.prototype.hasOwnProperty;
51
+ function R(t, e, n, r, s, f) {
52
+ return n = f.ref, {
53
+ $$typeof: E,
54
+ type: t,
55
+ key: e,
56
+ ref: n !== void 0 ? n : null,
57
+ props: f
58
+ };
59
+ }
60
+ function q(t, e) {
61
+ return R(
62
+ t.type,
63
+ e,
64
+ void 0,
65
+ void 0,
66
+ void 0,
67
+ t.props
68
+ );
69
+ }
70
+ function T(t) {
71
+ return typeof t == "object" && t !== null && t.$$typeof === E;
72
+ }
73
+ function z(t) {
74
+ var e = { "=": "=0", ":": "=2" };
75
+ return "$" + t.replace(/[=:]/g, function(n) {
76
+ return e[n];
77
+ });
78
+ }
79
+ var H = /\/+/g;
80
+ function m(t, e) {
81
+ return typeof t == "object" && t !== null && t.key != null ? z("" + t.key) : e.toString(36);
82
+ }
83
+ function j() {
84
+ }
85
+ function G(t) {
86
+ switch (t.status) {
87
+ case "fulfilled":
88
+ return t.value;
89
+ case "rejected":
90
+ throw t.reason;
91
+ default:
92
+ switch (typeof t.status == "string" ? t.then(j, j) : (t.status = "pending", t.then(
93
+ function(e) {
94
+ t.status === "pending" && (t.status = "fulfilled", t.value = e);
95
+ },
96
+ function(e) {
97
+ t.status === "pending" && (t.status = "rejected", t.reason = e);
98
+ }
99
+ )), t.status) {
100
+ case "fulfilled":
101
+ return t.value;
102
+ case "rejected":
103
+ throw t.reason;
104
+ }
105
+ }
106
+ throw t;
107
+ }
108
+ function a(t, e, n, r, s) {
109
+ var f = typeof t;
110
+ (f === "undefined" || f === "boolean") && (t = null);
111
+ var u = !1;
112
+ if (t === null) u = !0;
113
+ else
114
+ switch (f) {
115
+ case "bigint":
116
+ case "string":
117
+ case "number":
118
+ u = !0;
119
+ break;
120
+ case "object":
121
+ switch (t.$$typeof) {
122
+ case E:
123
+ case N:
124
+ u = !0;
125
+ break;
126
+ case d:
127
+ return u = t._init, a(
128
+ u(t._payload),
129
+ e,
130
+ n,
131
+ r,
132
+ s
133
+ );
134
+ }
135
+ }
136
+ if (u)
137
+ return s = s(t), u = r === "" ? "." + m(t, 0) : r, g(s) ? (n = "", u != null && (n = u.replace(H, "$&/") + "/"), a(s, e, n, "", function(W) {
138
+ return W;
139
+ })) : s != null && (T(s) && (s = q(
140
+ s,
141
+ n + (s.key == null || t && t.key === s.key ? "" : ("" + s.key).replace(
142
+ H,
143
+ "$&/"
144
+ ) + "/") + u
145
+ )), e.push(s)), 1;
146
+ u = 0;
147
+ var p = r === "" ? "." : r + ":";
148
+ if (g(t))
149
+ for (var c = 0; c < t.length; c++)
150
+ r = t[c], f = p + m(r, c), u += a(
151
+ r,
152
+ e,
153
+ n,
154
+ f,
155
+ s
156
+ );
157
+ else if (c = D(t), typeof c == "function")
158
+ for (t = c.call(t), c = 0; !(r = t.next()).done; )
159
+ r = r.value, f = p + m(r, c++), u += a(
160
+ r,
161
+ e,
162
+ n,
163
+ f,
164
+ s
165
+ );
166
+ else if (f === "object") {
167
+ if (typeof t.then == "function")
168
+ return a(
169
+ G(t),
170
+ e,
171
+ n,
172
+ r,
173
+ s
174
+ );
175
+ throw e = String(t), Error(
176
+ "Objects are not valid as a React child (found: " + (e === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : e) + "). If you meant to render a collection of children, use an array instead."
177
+ );
178
+ }
179
+ return u;
180
+ }
181
+ function l(t, e, n) {
182
+ if (t == null) return t;
183
+ var r = [], s = 0;
184
+ return a(t, r, "", "", function(f) {
185
+ return e.call(n, f, s++);
186
+ }), r;
187
+ }
188
+ function K(t) {
189
+ if (t._status === -1) {
190
+ var e = t._result;
191
+ e = e(), e.then(
192
+ function(n) {
193
+ (t._status === 0 || t._status === -1) && (t._status = 1, t._result = n);
194
+ },
195
+ function(n) {
196
+ (t._status === 0 || t._status === -1) && (t._status = 2, t._result = n);
197
+ }
198
+ ), t._status === -1 && (t._status = 0, t._result = e);
199
+ }
200
+ if (t._status === 1) return t._result.default;
201
+ throw t._result;
202
+ }
203
+ var P = typeof reportError == "function" ? reportError : function(t) {
204
+ if (typeof window == "object" && typeof window.ErrorEvent == "function") {
205
+ var e = new window.ErrorEvent("error", {
206
+ bubbles: !0,
207
+ cancelable: !0,
208
+ message: typeof t == "object" && t !== null && typeof t.message == "string" ? String(t.message) : String(t),
209
+ error: t
210
+ });
211
+ if (!window.dispatchEvent(e)) return;
212
+ } else if (typeof process == "object" && typeof process.emit == "function") {
213
+ process.emit("uncaughtException", t);
214
+ return;
215
+ }
216
+ console.error(t);
217
+ };
218
+ function B() {
219
+ }
220
+ return o.Children = {
221
+ map: l,
222
+ forEach: function(t, e, n) {
223
+ l(
224
+ t,
225
+ function() {
226
+ e.apply(this, arguments);
227
+ },
228
+ n
229
+ );
230
+ },
231
+ count: function(t) {
232
+ var e = 0;
233
+ return l(t, function() {
234
+ e++;
235
+ }), e;
236
+ },
237
+ toArray: function(t) {
238
+ return l(t, function(e) {
239
+ return e;
240
+ }) || [];
241
+ },
242
+ only: function(t) {
243
+ if (!T(t))
244
+ throw Error(
245
+ "React.Children.only expected to receive a single React element child."
246
+ );
247
+ return t;
248
+ }
249
+ }, o.Component = _, o.Fragment = M, o.Profiler = I, o.PureComponent = y, o.StrictMode = Y, o.Suspense = x, o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = i, o.__COMPILER_RUNTIME = {
250
+ __proto__: null,
251
+ c: function(t) {
252
+ return i.H.useMemoCache(t);
253
+ }
254
+ }, o.cache = function(t) {
255
+ return function() {
256
+ return t.apply(null, arguments);
257
+ };
258
+ }, o.cloneElement = function(t, e, n) {
259
+ if (t == null)
260
+ throw Error(
261
+ "The argument must be a React element, but you passed " + t + "."
262
+ );
263
+ var r = A({}, t.props), s = t.key, f = void 0;
264
+ if (e != null)
265
+ for (u in e.ref !== void 0 && (f = void 0), e.key !== void 0 && (s = "" + e.key), e)
266
+ !O.call(e, u) || u === "key" || u === "__self" || u === "__source" || u === "ref" && e.ref === void 0 || (r[u] = e[u]);
267
+ var u = arguments.length - 2;
268
+ if (u === 1) r.children = n;
269
+ else if (1 < u) {
270
+ for (var p = Array(u), c = 0; c < u; c++)
271
+ p[c] = arguments[c + 2];
272
+ r.children = p;
273
+ }
274
+ return R(t.type, s, void 0, void 0, f, r);
275
+ }, o.createContext = function(t) {
276
+ return t = {
277
+ $$typeof: U,
278
+ _currentValue: t,
279
+ _currentValue2: t,
280
+ _threadCount: 0,
281
+ Provider: null,
282
+ Consumer: null
283
+ }, t.Provider = t, t.Consumer = {
284
+ $$typeof: L,
285
+ _context: t
286
+ }, t;
287
+ }, o.createElement = function(t, e, n) {
288
+ var r, s = {}, f = null;
289
+ if (e != null)
290
+ for (r in e.key !== void 0 && (f = "" + e.key), e)
291
+ O.call(e, r) && r !== "key" && r !== "__self" && r !== "__source" && (s[r] = e[r]);
292
+ var u = arguments.length - 2;
293
+ if (u === 1) s.children = n;
294
+ else if (1 < u) {
295
+ for (var p = Array(u), c = 0; c < u; c++)
296
+ p[c] = arguments[c + 2];
297
+ s.children = p;
298
+ }
299
+ if (t && t.defaultProps)
300
+ for (r in u = t.defaultProps, u)
301
+ s[r] === void 0 && (s[r] = u[r]);
302
+ return R(t, f, void 0, void 0, null, s);
303
+ }, o.createRef = function() {
304
+ return { current: null };
305
+ }, o.forwardRef = function(t) {
306
+ return { $$typeof: k, render: t };
307
+ }, o.isValidElement = T, o.lazy = function(t) {
308
+ return {
309
+ $$typeof: d,
310
+ _payload: { _status: -1, _result: t },
311
+ _init: K
312
+ };
313
+ }, o.memo = function(t, e) {
314
+ return {
315
+ $$typeof: b,
316
+ type: t,
317
+ compare: e === void 0 ? null : e
318
+ };
319
+ }, o.startTransition = function(t) {
320
+ var e = i.T, n = {};
321
+ i.T = n;
322
+ try {
323
+ var r = t(), s = i.S;
324
+ s !== null && s(n, r), typeof r == "object" && r !== null && typeof r.then == "function" && r.then(B, P);
325
+ } catch (f) {
326
+ P(f);
327
+ } finally {
328
+ i.T = e;
329
+ }
330
+ }, o.unstable_useCacheRefresh = function() {
331
+ return i.H.useCacheRefresh();
332
+ }, o.use = function(t) {
333
+ return i.H.use(t);
334
+ }, o.useActionState = function(t, e, n) {
335
+ return i.H.useActionState(t, e, n);
336
+ }, o.useCallback = function(t, e) {
337
+ return i.H.useCallback(t, e);
338
+ }, o.useContext = function(t) {
339
+ return i.H.useContext(t);
340
+ }, o.useDebugValue = function() {
341
+ }, o.useDeferredValue = function(t, e) {
342
+ return i.H.useDeferredValue(t, e);
343
+ }, o.useEffect = function(t, e, n) {
344
+ var r = i.H;
345
+ if (typeof n == "function")
346
+ throw Error(
347
+ "useEffect CRUD overload is not enabled in this build of React."
348
+ );
349
+ return r.useEffect(t, e);
350
+ }, o.useId = function() {
351
+ return i.H.useId();
352
+ }, o.useImperativeHandle = function(t, e, n) {
353
+ return i.H.useImperativeHandle(t, e, n);
354
+ }, o.useInsertionEffect = function(t, e) {
355
+ return i.H.useInsertionEffect(t, e);
356
+ }, o.useLayoutEffect = function(t, e) {
357
+ return i.H.useLayoutEffect(t, e);
358
+ }, o.useMemo = function(t, e) {
359
+ return i.H.useMemo(t, e);
360
+ }, o.useOptimistic = function(t, e) {
361
+ return i.H.useOptimistic(t, e);
362
+ }, o.useReducer = function(t, e, n) {
363
+ return i.H.useReducer(t, e, n);
364
+ }, o.useRef = function(t) {
365
+ return i.H.useRef(t);
366
+ }, o.useState = function(t) {
367
+ return i.H.useState(t);
368
+ }, o.useSyncExternalStore = function(t, e, n) {
369
+ return i.H.useSyncExternalStore(
370
+ t,
371
+ e,
372
+ n
373
+ );
374
+ }, o.useTransition = function() {
375
+ return i.H.useTransition();
376
+ }, o.version = "19.1.0", o;
377
+ }
2
378
  export {
3
- e as __module
379
+ X as __require
4
380
  };