@poe-platform/safe-bash 0.1.756 → 0.1.758

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 (161) hide show
  1. package/dist/image-ast/index.browser.js +76 -23
  2. package/dist/image-ast/index.js +76 -23
  3. package/dist/pdf-ast/ast.d.ts +3 -0
  4. package/dist/pdf-ast/index.js +88 -36
  5. package/dist/safe-bash/chunks/{chunk-LESPJ3OG.js → chunk-WNWIBBJZ.js} +15 -2
  6. package/dist/safe-bash/command-chunks/{chunk-S4J6MSLY.js → chunk-444OTXM7.js} +3 -3
  7. package/dist/safe-bash/command-chunks/{chunk-F3J5ZLKF.js → chunk-522TDVLS.js} +1 -1
  8. package/dist/safe-bash/command-chunks/{chunk-VFS2MDAB.js → chunk-6YLD37NH.js} +2 -2
  9. package/dist/safe-bash/command-chunks/{chunk-YI3GKJ7Q.js → chunk-766IWMTB.js} +2 -2
  10. package/dist/safe-bash/command-chunks/{chunk-6AIOGLZO.js → chunk-CE6Z2ULX.js} +2 -2
  11. package/dist/safe-bash/command-chunks/{chunk-KSH2F6RG.js → chunk-CUFCNL6G.js} +1 -1
  12. package/dist/safe-bash/command-chunks/{chunk-5VSGEE6J.js → chunk-F4IQCXZG.js} +5 -5
  13. package/dist/safe-bash/command-chunks/{chunk-F5MORDSU.js → chunk-FDNCPZQS.js} +32 -1
  14. package/dist/safe-bash/command-chunks/{chunk-SG3ZDZCX.js → chunk-FLMLM7Y4.js} +2 -2
  15. package/dist/safe-bash/command-chunks/{chunk-DVZCHNB5.js → chunk-J2NPH7DO.js} +11 -7
  16. package/dist/safe-bash/command-chunks/{chunk-CT3FB722.js → chunk-J7UMKBRK.js} +1 -1
  17. package/dist/safe-bash/command-chunks/{chunk-QQOAK7JQ.js → chunk-KKJCKPTA.js} +1 -1
  18. package/dist/safe-bash/command-chunks/{chunk-7KS6PX4U.js → chunk-KSIGF4AG.js} +3 -3
  19. package/dist/safe-bash/command-chunks/{chunk-KBBI4CSU.js → chunk-L2C5TIII.js} +2 -2
  20. package/dist/safe-bash/command-chunks/{chunk-4HQ7WYSI.js → chunk-MED2BOOW.js} +30 -5
  21. package/dist/safe-bash/command-chunks/{chunk-JRNLDPLI.js → chunk-OZSWW23M.js} +1 -1
  22. package/dist/safe-bash/command-chunks/{chunk-DKQ5REXF.js → chunk-QDPRSPHQ.js} +1 -1
  23. package/dist/safe-bash/command-chunks/{chunk-WOPU2VWF.js → chunk-RID3B5RE.js} +1 -1
  24. package/dist/safe-bash/command-chunks/{chunk-H2FQA4OU.js → chunk-TCAGGM44.js} +72 -19
  25. package/dist/safe-bash/command-chunks/{chunk-REYTQLLB.js → chunk-TT2DMDBY.js} +1 -1
  26. package/dist/safe-bash/command-chunks/{chunk-UGX6MXDD.js → chunk-UIIT4ULR.js} +3 -3
  27. package/dist/safe-bash/command-chunks/{chunk-A6NFLWZI.js → chunk-WKPOGTZY.js} +22 -6
  28. package/dist/safe-bash/command-chunks/{chunk-WI35236J.js → chunk-XYCWDGOG.js} +1 -1
  29. package/dist/safe-bash/command-chunks/{chunk-3DOHQQJR.js → chunk-Y64PA6IA.js} +8 -8
  30. package/dist/safe-bash/command-chunks/{chunk-4F6PG2OT.js → chunk-YJWWRCIG.js} +8 -8
  31. package/dist/safe-bash/command-chunks/{chunk-6Z7OS3TZ.js → chunk-ZP5KDHB4.js} +7 -7
  32. package/dist/safe-bash/commands/pandoc/index.d.ts +1 -1
  33. package/dist/safe-bash/commands/pandoc/index.js +5 -3
  34. package/dist/safe-bash/commands/python/index.browser.js +1 -1
  35. package/dist/safe-bash/commands/python/index.js +6 -0
  36. package/dist/safe-bash/commands/python/jspi.js +11 -2
  37. package/dist/safe-bash/core.browser.js +6 -4
  38. package/dist/safe-bash-command-column/column.js +3 -3
  39. package/dist/safe-bash-command-column/index.js +3 -3
  40. package/dist/safe-bash-command-column/layout.js +2 -2
  41. package/dist/safe-bash-command-csvkit/index.js +8 -8
  42. package/dist/safe-bash-command-factor/command.js +2 -2
  43. package/dist/safe-bash-command-factor/index.js +2 -2
  44. package/dist/safe-bash-command-ffmpeg/index.js +5923 -5893
  45. package/dist/safe-bash-command-imagemagick/index.js +2 -2
  46. package/dist/safe-bash-command-pandoc/command.js +3 -3
  47. package/dist/safe-bash-command-pandoc/index.js +3 -3
  48. package/dist/safe-bash-command-pdfimages/index.js +72 -19
  49. package/dist/safe-bash-command-pdfinfo/index.js +88 -36
  50. package/dist/safe-bash-command-pdftk/index.js +72 -19
  51. package/dist/safe-bash-command-pdftoppm/index.js +88 -36
  52. package/dist/safe-bash-command-pdftotext/index.js +72 -19
  53. package/dist/safe-bash-command-qpdf/index.js +72 -19
  54. package/dist/safe-bash-command-sips/index.js +2 -2
  55. package/dist/safe-bash-command-soffice/index.js +17 -17
  56. package/dist/safe-bash-command-ssconvert/command-bindings.d.ts +18 -0
  57. package/dist/safe-bash-command-ssconvert/command.d.ts +5 -14
  58. package/dist/safe-bash-command-ssconvert/commands.d.ts +6 -0
  59. package/dist/safe-bash-command-ssconvert/commands.js +871 -0
  60. package/dist/safe-bash-command-ssconvert/core.js +8 -8
  61. package/dist/safe-bash-command-ssconvert/formats/csv.js +9 -9
  62. package/dist/safe-bash-command-ssconvert/formats/ods.js +8 -8
  63. package/dist/safe-bash-command-ssconvert/formats/spreadsheetml.js +1 -1
  64. package/dist/safe-bash-command-ssconvert/formats/xls.js +9 -8
  65. package/dist/safe-bash-command-ssconvert/formats/xlsx.js +8 -8
  66. package/dist/safe-bash-command-ssconvert/index.js +376 -236
  67. package/dist/safe-bash-command-wkhtmltopdf/index.js +72 -19
  68. package/dist/safe-bash-command-yq/index.js +4 -4
  69. package/dist/safe-bash-compression-engine/files.js +2 -2
  70. package/dist/safe-bash-compression-engine/operand.js +4 -4
  71. package/dist/safe-bash-contracts/filesystem-descriptor.js +1 -1
  72. package/dist/safe-bash-contracts/filesystem-output.js +1 -1
  73. package/dist/safe-bash-markdown-engine/commonmark-blocks.js +4 -4
  74. package/dist/safe-bash-markdown-engine/commonmark-inlines.js +4 -4
  75. package/dist/safe-bash-markdown-engine/commonmark-syntax.js +2 -2
  76. package/dist/safe-bash-markdown-engine/gfm-syntax.js +3 -3
  77. package/dist/safe-bash-markdown-engine/index.js +7 -7
  78. package/dist/safe-bash-mcp/index.js +4 -4
  79. package/dist/safe-bash-query-engine/index.js +5 -5
  80. package/dist/safe-bash-query-engine/interpreter.js +4 -4
  81. package/dist/safe-bash-query-engine/query-core.js +5 -5
  82. package/dist/spreadsheet-engine/formulas/ast.d.ts +13 -0
  83. package/dist/spreadsheet-engine/formulas/conventions.js +1 -1
  84. package/dist/spreadsheet-engine/formulas/dependencies.js +2 -2
  85. package/dist/spreadsheet-engine/formulas/evaluator.js +2 -2
  86. package/dist/spreadsheet-engine/formulas/named-expressions.d.ts +2 -2
  87. package/dist/spreadsheet-engine/formulas/named-expressions.js +31 -5
  88. package/dist/spreadsheet-engine/formulas/parser.js +34 -0
  89. package/dist/spreadsheet-engine/formulas/rewriting.js +19 -1
  90. package/dist/spreadsheet-engine/formulas/serialization.js +6 -0
  91. package/dist/spreadsheet-format-xls/biff-write-formulas.js +2 -0
  92. package/dist/xlsx-ast/formula-semantics.js +2 -0
  93. package/package.json +6 -2
  94. package/third-party/pdf-ast/THIRD_PARTY_NOTICES.md +16 -0
  95. package/dist/safe-bash/chunks/browser-ECQX6GMK.js +0 -6766
  96. package/dist/safe-bash/chunks/bz2-4OP3OWW3.js +0 -8
  97. package/dist/safe-bash/chunks/chunk-22XPAAOI.js +0 -173
  98. package/dist/safe-bash/chunks/chunk-44WUNUPV.js +0 -649
  99. package/dist/safe-bash/chunks/chunk-4E3SGG37.js +0 -876
  100. package/dist/safe-bash/chunks/chunk-4QTSSQKP.js +0 -898
  101. package/dist/safe-bash/chunks/chunk-5UVGPVXP.js +0 -410
  102. package/dist/safe-bash/chunks/chunk-64OE6Q6X.js +0 -3487
  103. package/dist/safe-bash/chunks/chunk-6IIFUPN2.js +0 -1526
  104. package/dist/safe-bash/chunks/chunk-BENDLTQD.js +0 -7065
  105. package/dist/safe-bash/chunks/chunk-BMO5LWEX.js +0 -534
  106. package/dist/safe-bash/chunks/chunk-BPMCPTNP.js +0 -1920
  107. package/dist/safe-bash/chunks/chunk-BRJTAWP5.js +0 -2955
  108. package/dist/safe-bash/chunks/chunk-C3GEIN7Q.js +0 -20054
  109. package/dist/safe-bash/chunks/chunk-CBVANNKK.js +0 -174814
  110. package/dist/safe-bash/chunks/chunk-CEWCRI6H.js +0 -2813
  111. package/dist/safe-bash/chunks/chunk-CGL53DQQ.js +0 -37
  112. package/dist/safe-bash/chunks/chunk-CTYJJD4O.js +0 -869
  113. package/dist/safe-bash/chunks/chunk-CWSS4MQA.js +0 -7
  114. package/dist/safe-bash/chunks/chunk-DLIGMTCP.js +0 -3266
  115. package/dist/safe-bash/chunks/chunk-EMAJ7WUW.js +0 -1031
  116. package/dist/safe-bash/chunks/chunk-FDKIZ2IJ.js +0 -1950
  117. package/dist/safe-bash/chunks/chunk-FZWJ2A7V.js +0 -3093
  118. package/dist/safe-bash/chunks/chunk-G2VCIF2J.js +0 -22
  119. package/dist/safe-bash/chunks/chunk-GVKBUQDX.js +0 -2649
  120. package/dist/safe-bash/chunks/chunk-IO2OGW3E.js +0 -28051
  121. package/dist/safe-bash/chunks/chunk-ISCZG7WA.js +0 -2648
  122. package/dist/safe-bash/chunks/chunk-JCN3FXLP.js +0 -38983
  123. package/dist/safe-bash/chunks/chunk-KJHDD4A2.js +0 -759
  124. package/dist/safe-bash/chunks/chunk-LB6HVRXS.js +0 -857
  125. package/dist/safe-bash/chunks/chunk-LLWAJOZH.js +0 -15
  126. package/dist/safe-bash/chunks/chunk-LMUKYZIJ.js +0 -708
  127. package/dist/safe-bash/chunks/chunk-M5SCNKIK.js +0 -2012
  128. package/dist/safe-bash/chunks/chunk-MJPFHANT.js +0 -3350
  129. package/dist/safe-bash/chunks/chunk-MZQW2DOL.js +0 -82
  130. package/dist/safe-bash/chunks/chunk-NB2V7EOY.js +0 -1348
  131. package/dist/safe-bash/chunks/chunk-NJVGOIYN.js +0 -17
  132. package/dist/safe-bash/chunks/chunk-OLNZHDIQ.js +0 -5141
  133. package/dist/safe-bash/chunks/chunk-OSUXMC43.js +0 -2317
  134. package/dist/safe-bash/chunks/chunk-OUUVROTM.js +0 -38
  135. package/dist/safe-bash/chunks/chunk-PA6GYKBQ.js +0 -151
  136. package/dist/safe-bash/chunks/chunk-PEFHZ226.js +0 -6957
  137. package/dist/safe-bash/chunks/chunk-QBB5P5KW.js +0 -4839
  138. package/dist/safe-bash/chunks/chunk-RSAWYAEH.js +0 -973
  139. package/dist/safe-bash/chunks/chunk-UWLYRWT4.js +0 -739
  140. package/dist/safe-bash/chunks/chunk-V463NBQH.js +0 -13
  141. package/dist/safe-bash/chunks/chunk-WPUALYUS.js +0 -843
  142. package/dist/safe-bash/chunks/chunk-XHKFSRGU.js +0 -5747
  143. package/dist/safe-bash/chunks/chunk-XHRCLZ3N.js +0 -13391
  144. package/dist/safe-bash/chunks/chunk-XPF5XHLY.js +0 -15
  145. package/dist/safe-bash/chunks/chunk-ZBFOWARG.js +0 -305
  146. package/dist/safe-bash/chunks/chunk-ZG7GWQ5P.js +0 -1859
  147. package/dist/safe-bash/chunks/model-store-EIY3ZQLZ.js +0 -10
  148. package/dist/safe-bash/chunks/pdf-renderer-CMF3CSVU.js +0 -22
  149. package/dist/safe-bash/chunks/pptx-ZL6L7KP2-O425BFIU.js +0 -30658
  150. package/dist/safe-bash/chunks/src-HHEPGR7U.js +0 -18969
  151. package/dist/safe-bash/chunks/src-MXIKQCIC.js +0 -187
  152. package/dist/safe-bash/chunks/usage-6TGVA2OM.js +0 -35
  153. package/dist/safe-bash/chunks/xz-EGQGQUEI.js +0 -8
  154. package/dist/safe-bash/chunks/xz-K2E2WLM6.js +0 -9
  155. package/dist/safe-bash/chunks/zstd-6JBLP5EF.js +0 -8
  156. package/dist/safe-bash/git_rust-C3QYOAZL.wasm +0 -0
  157. package/dist/safe-bash/command-chunks/{chunk-OQVIJMBY.js → chunk-7HINP7ZK.js} +4 -4
  158. package/dist/safe-bash/command-chunks/{chunk-XAYEDOV5.js → chunk-CG4JSOK2.js} +3 -3
  159. package/dist/safe-bash/command-chunks/{chunk-YIK4ZYQ4.js → chunk-DC52GWRK.js} +9 -9
  160. package/dist/safe-bash/command-chunks/{chunk-TOTZFBDT.js → chunk-TKACIO4X.js} +4 -4
  161. package/dist/safe-bash/command-chunks/{chunk-VTWKS4RM.js → chunk-WF2LSKMI.js} +3 -3
@@ -1,869 +0,0 @@
1
- import {
2
- init_platform
3
- } from "./chunk-ZG7GWQ5P.js";
4
-
5
- // node_modules/@noble/hashes/sha2.js
6
- init_platform();
7
-
8
- // node_modules/@noble/hashes/_md.js
9
- init_platform();
10
-
11
- // node_modules/@noble/hashes/_u64.js
12
- init_platform();
13
- var U32_MASK64 = /* @__PURE__ */ (() => BigInt(2 ** 32 - 1))();
14
- var _32n = /* @__PURE__ */ BigInt(32);
15
- function fromBig(n, le = false) {
16
- if (le)
17
- return { h: Number(n & U32_MASK64), l: Number(n >> _32n & U32_MASK64) };
18
- return { h: Number(n >> _32n & U32_MASK64) | 0, l: Number(n & U32_MASK64) | 0 };
19
- }
20
- function split(lst, le = false) {
21
- const len = lst.length;
22
- let Ah = new Uint32Array(len);
23
- let Al = new Uint32Array(len);
24
- for (let i = 0; i < len; i++) {
25
- const { h, l } = fromBig(lst[i], le);
26
- [Ah[i], Al[i]] = [h, l];
27
- }
28
- return [Ah, Al];
29
- }
30
- var fromNumH = (n) => n / 2 ** 32 | 0;
31
- var fromNumL = (n) => n >>> 0;
32
- function setU64FromNum(view, byteOffset, n, isLE2) {
33
- const h = fromNumH(n);
34
- const l = fromNumL(n);
35
- view.setUint32(byteOffset, isLE2 ? l : h, isLE2);
36
- view.setUint32(byteOffset + 4, isLE2 ? h : l, isLE2);
37
- }
38
- var shrSH = (h, _l, s) => h >>> s;
39
- var shrSL = (h, l, s) => h << 32 - s | l >>> s;
40
- var rotrSH = (h, l, s) => h >>> s | l << 32 - s;
41
- var rotrSL = (h, l, s) => h << 32 - s | l >>> s;
42
- var rotrBH = (h, l, s) => h << 64 - s | l >>> s - 32;
43
- var rotrBL = (h, l, s) => h >>> s - 32 | l << 64 - s;
44
- var rotr32H = (_h, l) => l;
45
- var rotr32L = (h, _l) => h;
46
- function add(Ah, Al, Bh, Bl) {
47
- const l = (Al >>> 0) + (Bl >>> 0);
48
- return { h: Ah + Bh + (l / 2 ** 32 | 0) | 0, l: l | 0 };
49
- }
50
- var add3L = (Al, Bl, Cl) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0);
51
- var add3H = (low, Ah, Bh, Ch) => Ah + Bh + Ch + (low / 2 ** 32 | 0) | 0;
52
- var add4L = (Al, Bl, Cl, Dl) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0);
53
- var add4H = (low, Ah, Bh, Ch, Dh) => Ah + Bh + Ch + Dh + (low / 2 ** 32 | 0) | 0;
54
- var add5L = (Al, Bl, Cl, Dl, El) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0) + (El >>> 0);
55
- var add5H = (low, Ah, Bh, Ch, Dh, Eh) => Ah + Bh + Ch + Dh + Eh + (low / 2 ** 32 | 0) | 0;
56
-
57
- // node_modules/@noble/hashes/utils.js
58
- init_platform();
59
- function isBytes(a) {
60
- return a instanceof Uint8Array || ArrayBuffer.isView(a) && a.constructor.name === "Uint8Array" && "BYTES_PER_ELEMENT" in a && a.BYTES_PER_ELEMENT === 1;
61
- }
62
- var atitle = (title) => title ? `"${title}" ` : "";
63
- function anumber(n, title = "") {
64
- if (typeof n !== "number")
65
- throw new TypeError(atitle(title) + "expected number, got " + typeof n);
66
- if (!Number.isSafeInteger(n) || n < 0)
67
- throw new RangeError(atitle(title) + "expected integer >= 0, got " + n);
68
- return n;
69
- }
70
- function abool(value, title = "") {
71
- if (typeof value !== "boolean")
72
- throw new TypeError(atitle(title) + "expected boolean, got type=" + typeof value);
73
- return value;
74
- }
75
- function abytes(value, length, title = "") {
76
- if (isBytes(value) && (length === void 0 || value.length === length))
77
- return value;
78
- if (length !== void 0)
79
- anumber(length, "length");
80
- const bytes = isBytes(value);
81
- const ofLen = length !== void 0 ? ` of length ${length}` : "";
82
- const got = bytes ? `length=${value.length}` : `type=${typeof value}`;
83
- const message = atitle(title) + "expected Uint8Array" + ofLen + ", got " + got;
84
- if (!bytes)
85
- throw new TypeError(message);
86
- throw new RangeError(message);
87
- }
88
- function copyBytes(bytes) {
89
- return Uint8Array.from(abytes(bytes));
90
- }
91
- function ahash(h) {
92
- if (typeof h !== "function" || typeof h.create !== "function")
93
- throw new TypeError("expected hash wrapped by utils.createHasher");
94
- anumber(h.outputLen);
95
- anumber(h.blockLen);
96
- if (h.outputLen < 1 || h.blockLen < 1)
97
- throw new Error("hash blockLen / outputLen must be >= 1");
98
- }
99
- var aobject = (value, label) => {
100
- if (value === null || typeof value !== "object" || Array.isArray(value))
101
- throw new TypeError((label === "object" ? "" : `"${label}" `) + "expected object, got type=" + typeof value);
102
- };
103
- var aopts = (value, label) => {
104
- aobject(value, label);
105
- const proto = Object.getPrototypeOf(value);
106
- if (proto !== Object.prototype && proto !== null)
107
- throw new TypeError(`"${label}" expected plain object`);
108
- if (Object.hasOwn(value, "__proto__"))
109
- throw new TypeError(`"${label}.__proto__" is not allowed`);
110
- };
111
- function aexists(instance, checkFinished = true) {
112
- if (instance.destroyed)
113
- throw new Error("hash was destroyed");
114
- if (checkFinished && instance.finished)
115
- throw new Error("digest() was already called");
116
- }
117
- function aoutput(out, instance) {
118
- abytes(out, void 0, "output");
119
- const min = instance.outputLen;
120
- if (!(out.length >= min)) {
121
- throw new RangeError('"output" expected length >= ' + min);
122
- }
123
- }
124
- function u8(arr) {
125
- return new Uint8Array(arr.buffer, arr.byteOffset, arr.byteLength);
126
- }
127
- function u32(arr) {
128
- return new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));
129
- }
130
- function clean(...arrays) {
131
- for (let i = 0; i < arrays.length; i++) {
132
- arrays[i].fill(0);
133
- }
134
- }
135
- function createView(arr) {
136
- return new DataView(arr.buffer, arr.byteOffset, arr.byteLength);
137
- }
138
- function rotr(word, shift) {
139
- return word << 32 - shift | word >>> shift;
140
- }
141
- function rotl(word, shift) {
142
- return word << shift | word >>> 32 - shift >>> 0;
143
- }
144
- var isLE = /* @__PURE__ */ (() => new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68)();
145
- function byteSwap(word) {
146
- return word << 24 & 4278190080 | word << 8 & 16711680 | word >>> 8 & 65280 | word >>> 24 & 255;
147
- }
148
- var swap8IfBE = isLE ? (n) => n : (n) => byteSwap(n) >>> 0;
149
- function byteSwap32(arr) {
150
- for (let i = 0; i < arr.length; i++) {
151
- arr[i] = byteSwap(arr[i]);
152
- }
153
- return arr;
154
- }
155
- var swap32IfBE = isLE ? (u) => u : byteSwap32;
156
- var hasHexBuiltin = /* @__PURE__ */ (() => (
157
- // @ts-ignore
158
- typeof Uint8Array.from([]).toHex === "function" && typeof Uint8Array.fromHex === "function"
159
- ))();
160
- var hexes = /* @__PURE__ */ Array.from({ length: 256 }, (_, i) => i.toString(16).padStart(2, "0"));
161
- function bytesToHex(bytes) {
162
- abytes(bytes);
163
- if (hasHexBuiltin)
164
- return bytes.toHex();
165
- let hex = "";
166
- for (let i = 0; i < bytes.length; i++) {
167
- hex += hexes[bytes[i]];
168
- }
169
- return hex;
170
- }
171
- function asciiToBase16(ch) {
172
- return ch >= 48 && ch <= 57 ? ch - 48 : ch >= 65 && ch <= 70 ? ch - (65 - 10) : ch >= 97 && ch <= 102 ? ch - (97 - 10) : void 0;
173
- }
174
- function hexToBytes(hex) {
175
- if (typeof hex !== "string")
176
- throw new TypeError("hex string expected, got " + typeof hex);
177
- if (hasHexBuiltin) {
178
- try {
179
- return Uint8Array.fromHex(hex);
180
- } catch (error) {
181
- if (error instanceof SyntaxError)
182
- throw new RangeError(error.message);
183
- throw error;
184
- }
185
- }
186
- const hl = hex.length;
187
- const al = hl / 2;
188
- if (hl % 2)
189
- throw new RangeError("hex string expected, got unpadded hex of length " + hl);
190
- const array = new Uint8Array(al);
191
- for (let ai = 0, hi = 0; ai < al; ai++, hi += 2) {
192
- const n1 = asciiToBase16(hex.charCodeAt(hi));
193
- const n2 = asciiToBase16(hex.charCodeAt(hi + 1));
194
- if (n1 === void 0 || n2 === void 0) {
195
- const char = hex[hi] + hex[hi + 1];
196
- throw new RangeError('hex string expected, got non-hex character "' + char + '" at index ' + hi);
197
- }
198
- array[ai] = n1 * 16 + n2;
199
- }
200
- return array;
201
- }
202
- function nextTick(onReject) {
203
- const host = globalThis;
204
- if (typeof host.scheduler?.yield === "function") {
205
- const promise = host.scheduler.yield();
206
- if (onReject)
207
- promise.catch(onReject);
208
- return promise;
209
- }
210
- return new Promise((resolve) => host.setTimeout(resolve, 0));
211
- }
212
- function utf8ToBytes(str) {
213
- if (typeof str !== "string")
214
- throw new TypeError("string expected");
215
- const encoded = new TextEncoder().encode(str);
216
- try {
217
- return new Uint8Array(encoded);
218
- } finally {
219
- clean(encoded);
220
- }
221
- }
222
- function kdfInputToBytes(data, errorTitle = "") {
223
- if (typeof data === "string")
224
- return utf8ToBytes(data);
225
- return abytes(data, void 0, errorTitle);
226
- }
227
- function checkOpts(defaults, opts, title = "opts") {
228
- aopts(defaults, "defaults");
229
- if (opts !== void 0)
230
- aopts(opts, title);
231
- const merged = Object.assign(/* @__PURE__ */ Object.create(null), defaults, opts);
232
- return merged;
233
- }
234
- function createHasher(hashCons, info = {}) {
235
- if (typeof hashCons !== "function")
236
- throw new TypeError('"hashCons" expected function, got type=' + typeof hashCons);
237
- info = checkOpts({}, info, "info");
238
- const hashC = (msg, opts) => hashCons(opts).update(msg).digest();
239
- const tmp = hashCons(void 0);
240
- hashC.outputLen = tmp.outputLen;
241
- hashC.blockLen = tmp.blockLen;
242
- hashC.canXOF = tmp.canXOF;
243
- hashC.create = (opts) => hashCons(opts);
244
- Object.assign(hashC, info);
245
- return Object.freeze(hashC);
246
- }
247
- var oidNist = (suffix) => ({
248
- // Current NIST hashAlgs suffixes used here fit in one DER subidentifier octet.
249
- // Larger suffix values would need base-128 OID encoding and a different length byte.
250
- oid: Uint8Array.from([6, 9, 96, 134, 72, 1, 101, 3, 4, 2, suffix])
251
- });
252
-
253
- // node_modules/@noble/hashes/_md.js
254
- function Chi(a, b, c) {
255
- return a & b ^ ~a & c;
256
- }
257
- function Maj(a, b, c) {
258
- return a & b ^ a & c ^ b & c;
259
- }
260
- var HashMD = class {
261
- blockLen;
262
- outputLen;
263
- canXOF = false;
264
- padOffset;
265
- isLE;
266
- // For partial updates less than block size
267
- buffer;
268
- view;
269
- finished = false;
270
- length = 0;
271
- pos = 0;
272
- destroyed = false;
273
- constructor(blockLen, outputLen, padOffset, isLE2) {
274
- this.blockLen = blockLen;
275
- this.outputLen = outputLen;
276
- this.padOffset = padOffset;
277
- this.isLE = isLE2;
278
- this.buffer = new Uint8Array(blockLen);
279
- this.view = createView(this.buffer);
280
- }
281
- update(data) {
282
- aexists(this);
283
- abytes(data);
284
- const { view, buffer, blockLen } = this;
285
- const len = data.length;
286
- let processed = false;
287
- for (let pos = 0; pos < len; ) {
288
- const take = Math.min(blockLen - this.pos, len - pos);
289
- if (take === blockLen) {
290
- const dataView = createView(data);
291
- for (; blockLen <= len - pos; pos += blockLen)
292
- this.process(dataView, pos);
293
- processed = true;
294
- continue;
295
- }
296
- buffer.set(pos === 0 && take === len ? data : data.subarray(pos, pos + take), this.pos);
297
- this.pos += take;
298
- pos += take;
299
- if (this.pos === blockLen) {
300
- this.process(view, 0);
301
- this.pos = 0;
302
- processed = true;
303
- }
304
- }
305
- this.length += data.length;
306
- if (processed)
307
- this.roundClean();
308
- return this;
309
- }
310
- digestInto(out) {
311
- aexists(this);
312
- aoutput(out, this);
313
- this.finished = true;
314
- const { buffer, view, blockLen, isLE: isLE2 } = this;
315
- let { pos } = this;
316
- buffer[pos++] = 128;
317
- buffer.fill(0, pos);
318
- if (this.padOffset > blockLen - pos) {
319
- this.process(view, 0);
320
- buffer.fill(0);
321
- }
322
- setU64FromNum(view, blockLen - 8, this.length * 8, isLE2);
323
- this.process(view, 0);
324
- this.roundClean();
325
- const oview = out === buffer ? view : createView(out);
326
- const len = this.outputLen;
327
- const outLen = len / 4;
328
- const state = this.get();
329
- if (len % 4 || outLen > state.length)
330
- throw new Error("invalid outputLen");
331
- for (let i = 0; i < outLen; i++)
332
- oview.setUint32(4 * i, state[i], isLE2);
333
- }
334
- digest() {
335
- const { buffer, outputLen } = this;
336
- this.digestInto(buffer);
337
- const res = buffer.slice(0, outputLen);
338
- this.destroy();
339
- return res;
340
- }
341
- _cloneIntoMeta(to) {
342
- const { buffer, length, finished, destroyed, pos } = this;
343
- to.destroyed = destroyed;
344
- to.finished = finished;
345
- to.length = length;
346
- to.pos = pos;
347
- if (pos)
348
- to.buffer.set(buffer);
349
- return to;
350
- }
351
- clone() {
352
- return this._cloneInto();
353
- }
354
- };
355
- var SHA256_IV = /* @__PURE__ */ Uint32Array.from([
356
- 1779033703,
357
- 3144134277,
358
- 1013904242,
359
- 2773480762,
360
- 1359893119,
361
- 2600822924,
362
- 528734635,
363
- 1541459225
364
- ]);
365
- var SHA224_IV = /* @__PURE__ */ Uint32Array.from([
366
- 3238371032,
367
- 914150663,
368
- 812702999,
369
- 4144912697,
370
- 4290775857,
371
- 1750603025,
372
- 1694076839,
373
- 3204075428
374
- ]);
375
- var SHA384_IV = /* @__PURE__ */ Uint32Array.from([
376
- 3418070365,
377
- 3238371032,
378
- 1654270250,
379
- 914150663,
380
- 2438529370,
381
- 812702999,
382
- 355462360,
383
- 4144912697,
384
- 1731405415,
385
- 4290775857,
386
- 2394180231,
387
- 1750603025,
388
- 3675008525,
389
- 1694076839,
390
- 1203062813,
391
- 3204075428
392
- ]);
393
- var SHA512_IV = /* @__PURE__ */ Uint32Array.from([
394
- 1779033703,
395
- 4089235720,
396
- 3144134277,
397
- 2227873595,
398
- 1013904242,
399
- 4271175723,
400
- 2773480762,
401
- 1595750129,
402
- 1359893119,
403
- 2917565137,
404
- 2600822924,
405
- 725511199,
406
- 528734635,
407
- 4215389547,
408
- 1541459225,
409
- 327033209
410
- ]);
411
-
412
- // node_modules/@noble/hashes/sha2.js
413
- var SHA256_K = /* @__PURE__ */ Uint32Array.from([
414
- 1116352408,
415
- 1899447441,
416
- 3049323471,
417
- 3921009573,
418
- 961987163,
419
- 1508970993,
420
- 2453635748,
421
- 2870763221,
422
- 3624381080,
423
- 310598401,
424
- 607225278,
425
- 1426881987,
426
- 1925078388,
427
- 2162078206,
428
- 2614888103,
429
- 3248222580,
430
- 3835390401,
431
- 4022224774,
432
- 264347078,
433
- 604807628,
434
- 770255983,
435
- 1249150122,
436
- 1555081692,
437
- 1996064986,
438
- 2554220882,
439
- 2821834349,
440
- 2952996808,
441
- 3210313671,
442
- 3336571891,
443
- 3584528711,
444
- 113926993,
445
- 338241895,
446
- 666307205,
447
- 773529912,
448
- 1294757372,
449
- 1396182291,
450
- 1695183700,
451
- 1986661051,
452
- 2177026350,
453
- 2456956037,
454
- 2730485921,
455
- 2820302411,
456
- 3259730800,
457
- 3345764771,
458
- 3516065817,
459
- 3600352804,
460
- 4094571909,
461
- 275423344,
462
- 430227734,
463
- 506948616,
464
- 659060556,
465
- 883997877,
466
- 958139571,
467
- 1322822218,
468
- 1537002063,
469
- 1747873779,
470
- 1955562222,
471
- 2024104815,
472
- 2227730452,
473
- 2361852424,
474
- 2428436474,
475
- 2756734187,
476
- 3204031479,
477
- 3329325298
478
- ]);
479
- var SHA256_W = /* @__PURE__ */ new Uint32Array(64);
480
- var SHA2_32B = class extends HashMD {
481
- // We cannot use array here since array allows indexing by variable
482
- // which means optimizer/compiler cannot use registers.
483
- // Numeric initializers matter: starting the fields as `undefined` changes
484
- // V8's field representation and makes sha256 3x slower (measured).
485
- A = 0;
486
- B = 0;
487
- C = 0;
488
- D = 0;
489
- E = 0;
490
- F = 0;
491
- G = 0;
492
- H = 0;
493
- constructor(outputLen, IV) {
494
- super(64, outputLen, 8, false);
495
- this.A = IV[0] | 0;
496
- this.B = IV[1] | 0;
497
- this.C = IV[2] | 0;
498
- this.D = IV[3] | 0;
499
- this.E = IV[4] | 0;
500
- this.F = IV[5] | 0;
501
- this.G = IV[6] | 0;
502
- this.H = IV[7] | 0;
503
- }
504
- get() {
505
- const { A, B, C, D, E, F, G, H } = this;
506
- return [A, B, C, D, E, F, G, H];
507
- }
508
- // prettier-ignore
509
- set(A, B, C, D, E, F, G, H) {
510
- this.A = A | 0;
511
- this.B = B | 0;
512
- this.C = C | 0;
513
- this.D = D | 0;
514
- this.E = E | 0;
515
- this.F = F | 0;
516
- this.G = G | 0;
517
- this.H = H | 0;
518
- }
519
- _cloneInto(to) {
520
- (to ||= new this.constructor()).set(...this.get());
521
- return this._cloneIntoMeta(to);
522
- }
523
- process(view, offset) {
524
- for (let i = 0; i < 16; i++, offset += 4)
525
- SHA256_W[i] = view.getUint32(offset, false);
526
- for (let i = 16; i < 64; i++) {
527
- const W15 = SHA256_W[i - 15];
528
- const W2 = SHA256_W[i - 2];
529
- const s0 = rotr(W15, 7) ^ rotr(W15, 18) ^ W15 >>> 3;
530
- const s1 = rotr(W2, 17) ^ rotr(W2, 19) ^ W2 >>> 10;
531
- SHA256_W[i] = s1 + SHA256_W[i - 7] + s0 + SHA256_W[i - 16] | 0;
532
- }
533
- let { A, B, C, D, E, F, G, H } = this;
534
- for (let i = 0; i < 64; i++) {
535
- const sigma1 = rotr(E, 6) ^ rotr(E, 11) ^ rotr(E, 25);
536
- const T1 = H + sigma1 + Chi(E, F, G) + SHA256_K[i] + SHA256_W[i] | 0;
537
- const sigma0 = rotr(A, 2) ^ rotr(A, 13) ^ rotr(A, 22);
538
- const T2 = sigma0 + Maj(A, B, C) | 0;
539
- H = G;
540
- G = F;
541
- F = E;
542
- E = D + T1 | 0;
543
- D = C;
544
- C = B;
545
- B = A;
546
- A = T1 + T2 | 0;
547
- }
548
- A = A + this.A | 0;
549
- B = B + this.B | 0;
550
- C = C + this.C | 0;
551
- D = D + this.D | 0;
552
- E = E + this.E | 0;
553
- F = F + this.F | 0;
554
- G = G + this.G | 0;
555
- H = H + this.H | 0;
556
- this.set(A, B, C, D, E, F, G, H);
557
- }
558
- roundClean() {
559
- clean(SHA256_W);
560
- }
561
- destroy() {
562
- this.destroyed = true;
563
- this.set(0, 0, 0, 0, 0, 0, 0, 0);
564
- clean(this.buffer);
565
- }
566
- };
567
- var _SHA256 = class extends SHA2_32B {
568
- constructor() {
569
- super(32, SHA256_IV);
570
- }
571
- };
572
- var _SHA224 = class extends SHA2_32B {
573
- constructor() {
574
- super(28, SHA224_IV);
575
- }
576
- };
577
- var K512 = /* @__PURE__ */ (() => split([
578
- "0x428a2f98d728ae22",
579
- "0x7137449123ef65cd",
580
- "0xb5c0fbcfec4d3b2f",
581
- "0xe9b5dba58189dbbc",
582
- "0x3956c25bf348b538",
583
- "0x59f111f1b605d019",
584
- "0x923f82a4af194f9b",
585
- "0xab1c5ed5da6d8118",
586
- "0xd807aa98a3030242",
587
- "0x12835b0145706fbe",
588
- "0x243185be4ee4b28c",
589
- "0x550c7dc3d5ffb4e2",
590
- "0x72be5d74f27b896f",
591
- "0x80deb1fe3b1696b1",
592
- "0x9bdc06a725c71235",
593
- "0xc19bf174cf692694",
594
- "0xe49b69c19ef14ad2",
595
- "0xefbe4786384f25e3",
596
- "0x0fc19dc68b8cd5b5",
597
- "0x240ca1cc77ac9c65",
598
- "0x2de92c6f592b0275",
599
- "0x4a7484aa6ea6e483",
600
- "0x5cb0a9dcbd41fbd4",
601
- "0x76f988da831153b5",
602
- "0x983e5152ee66dfab",
603
- "0xa831c66d2db43210",
604
- "0xb00327c898fb213f",
605
- "0xbf597fc7beef0ee4",
606
- "0xc6e00bf33da88fc2",
607
- "0xd5a79147930aa725",
608
- "0x06ca6351e003826f",
609
- "0x142929670a0e6e70",
610
- "0x27b70a8546d22ffc",
611
- "0x2e1b21385c26c926",
612
- "0x4d2c6dfc5ac42aed",
613
- "0x53380d139d95b3df",
614
- "0x650a73548baf63de",
615
- "0x766a0abb3c77b2a8",
616
- "0x81c2c92e47edaee6",
617
- "0x92722c851482353b",
618
- "0xa2bfe8a14cf10364",
619
- "0xa81a664bbc423001",
620
- "0xc24b8b70d0f89791",
621
- "0xc76c51a30654be30",
622
- "0xd192e819d6ef5218",
623
- "0xd69906245565a910",
624
- "0xf40e35855771202a",
625
- "0x106aa07032bbd1b8",
626
- "0x19a4c116b8d2d0c8",
627
- "0x1e376c085141ab53",
628
- "0x2748774cdf8eeb99",
629
- "0x34b0bcb5e19b48a8",
630
- "0x391c0cb3c5c95a63",
631
- "0x4ed8aa4ae3418acb",
632
- "0x5b9cca4f7763e373",
633
- "0x682e6ff3d6b2b8a3",
634
- "0x748f82ee5defb2fc",
635
- "0x78a5636f43172f60",
636
- "0x84c87814a1f0ab72",
637
- "0x8cc702081a6439ec",
638
- "0x90befffa23631e28",
639
- "0xa4506cebde82bde9",
640
- "0xbef9a3f7b2c67915",
641
- "0xc67178f2e372532b",
642
- "0xca273eceea26619c",
643
- "0xd186b8c721c0c207",
644
- "0xeada7dd6cde0eb1e",
645
- "0xf57d4f7fee6ed178",
646
- "0x06f067aa72176fba",
647
- "0x0a637dc5a2c898a6",
648
- "0x113f9804bef90dae",
649
- "0x1b710b35131c471b",
650
- "0x28db77f523047d84",
651
- "0x32caab7b40c72493",
652
- "0x3c9ebe0a15c9bebc",
653
- "0x431d67c49c100d4c",
654
- "0x4cc5d4becb3e42b6",
655
- "0x597f299cfc657e2a",
656
- "0x5fcb6fab3ad6faec",
657
- "0x6c44198c4a475817"
658
- ].map((n) => BigInt(n))))();
659
- var SHA512_Kh = /* @__PURE__ */ (() => K512[0])();
660
- var SHA512_Kl = /* @__PURE__ */ (() => K512[1])();
661
- var SHA512_W_H = /* @__PURE__ */ new Uint32Array(80);
662
- var SHA512_W_L = /* @__PURE__ */ new Uint32Array(80);
663
- var SHA2_64B = class extends HashMD {
664
- // We cannot use array here since array allows indexing by variable
665
- // which means optimizer/compiler cannot use registers.
666
- // h -- high 32 bits, l -- low 32 bits
667
- // Numeric initializers matter: starting the fields as `undefined` changes
668
- // V8's field representation and slows hashing down (measured on sha256).
669
- Ah = 0;
670
- Al = 0;
671
- Bh = 0;
672
- Bl = 0;
673
- Ch = 0;
674
- Cl = 0;
675
- Dh = 0;
676
- Dl = 0;
677
- Eh = 0;
678
- El = 0;
679
- Fh = 0;
680
- Fl = 0;
681
- Gh = 0;
682
- Gl = 0;
683
- Hh = 0;
684
- Hl = 0;
685
- constructor(outputLen, IV) {
686
- super(128, outputLen, 16, false);
687
- this.Ah = IV[0] | 0;
688
- this.Al = IV[1] | 0;
689
- this.Bh = IV[2] | 0;
690
- this.Bl = IV[3] | 0;
691
- this.Ch = IV[4] | 0;
692
- this.Cl = IV[5] | 0;
693
- this.Dh = IV[6] | 0;
694
- this.Dl = IV[7] | 0;
695
- this.Eh = IV[8] | 0;
696
- this.El = IV[9] | 0;
697
- this.Fh = IV[10] | 0;
698
- this.Fl = IV[11] | 0;
699
- this.Gh = IV[12] | 0;
700
- this.Gl = IV[13] | 0;
701
- this.Hh = IV[14] | 0;
702
- this.Hl = IV[15] | 0;
703
- }
704
- // prettier-ignore
705
- get() {
706
- const { Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl } = this;
707
- return [Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl];
708
- }
709
- // prettier-ignore
710
- set(Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl) {
711
- this.Ah = Ah | 0;
712
- this.Al = Al | 0;
713
- this.Bh = Bh | 0;
714
- this.Bl = Bl | 0;
715
- this.Ch = Ch | 0;
716
- this.Cl = Cl | 0;
717
- this.Dh = Dh | 0;
718
- this.Dl = Dl | 0;
719
- this.Eh = Eh | 0;
720
- this.El = El | 0;
721
- this.Fh = Fh | 0;
722
- this.Fl = Fl | 0;
723
- this.Gh = Gh | 0;
724
- this.Gl = Gl | 0;
725
- this.Hh = Hh | 0;
726
- this.Hl = Hl | 0;
727
- }
728
- _cloneInto(to) {
729
- (to ||= new this.constructor()).set(...this.get());
730
- return this._cloneIntoMeta(to);
731
- }
732
- process(view, offset) {
733
- for (let i = 0; i < 16; i++, offset += 4) {
734
- SHA512_W_H[i] = view.getUint32(offset);
735
- SHA512_W_L[i] = view.getUint32(offset += 4);
736
- }
737
- for (let i = 16; i < 80; i++) {
738
- const W15h = SHA512_W_H[i - 15] | 0;
739
- const W15l = SHA512_W_L[i - 15] | 0;
740
- const s0h = rotrSH(W15h, W15l, 1) ^ rotrSH(W15h, W15l, 8) ^ shrSH(W15h, W15l, 7);
741
- const s0l = rotrSL(W15h, W15l, 1) ^ rotrSL(W15h, W15l, 8) ^ shrSL(W15h, W15l, 7);
742
- const W2h = SHA512_W_H[i - 2] | 0;
743
- const W2l = SHA512_W_L[i - 2] | 0;
744
- const s1h = rotrSH(W2h, W2l, 19) ^ rotrBH(W2h, W2l, 61) ^ shrSH(W2h, W2l, 6);
745
- const s1l = rotrSL(W2h, W2l, 19) ^ rotrBL(W2h, W2l, 61) ^ shrSL(W2h, W2l, 6);
746
- const SUMl = add4L(s0l, s1l, SHA512_W_L[i - 7], SHA512_W_L[i - 16]);
747
- const SUMh = add4H(SUMl, s0h, s1h, SHA512_W_H[i - 7], SHA512_W_H[i - 16]);
748
- SHA512_W_H[i] = SUMh | 0;
749
- SHA512_W_L[i] = SUMl | 0;
750
- }
751
- let { Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl } = this;
752
- for (let i = 0; i < 80; i++) {
753
- const sigma1h = rotrSH(Eh, El, 14) ^ rotrSH(Eh, El, 18) ^ rotrBH(Eh, El, 41);
754
- const sigma1l = rotrSL(Eh, El, 14) ^ rotrSL(Eh, El, 18) ^ rotrBL(Eh, El, 41);
755
- const CHIh = Eh & Fh ^ ~Eh & Gh;
756
- const CHIl = El & Fl ^ ~El & Gl;
757
- const T1ll = add5L(Hl, sigma1l, CHIl, SHA512_Kl[i], SHA512_W_L[i]);
758
- const T1h = add5H(T1ll, Hh, sigma1h, CHIh, SHA512_Kh[i], SHA512_W_H[i]);
759
- const T1l = T1ll | 0;
760
- const sigma0h = rotrSH(Ah, Al, 28) ^ rotrBH(Ah, Al, 34) ^ rotrBH(Ah, Al, 39);
761
- const sigma0l = rotrSL(Ah, Al, 28) ^ rotrBL(Ah, Al, 34) ^ rotrBL(Ah, Al, 39);
762
- const MAJh = Ah & Bh ^ Ah & Ch ^ Bh & Ch;
763
- const MAJl = Al & Bl ^ Al & Cl ^ Bl & Cl;
764
- Hh = Gh | 0;
765
- Hl = Gl | 0;
766
- Gh = Fh | 0;
767
- Gl = Fl | 0;
768
- Fh = Eh | 0;
769
- Fl = El | 0;
770
- ({ h: Eh, l: El } = add(Dh | 0, Dl | 0, T1h | 0, T1l | 0));
771
- Dh = Ch | 0;
772
- Dl = Cl | 0;
773
- Ch = Bh | 0;
774
- Cl = Bl | 0;
775
- Bh = Ah | 0;
776
- Bl = Al | 0;
777
- const All = add3L(T1l, sigma0l, MAJl);
778
- Ah = add3H(All, T1h, sigma0h, MAJh);
779
- Al = All | 0;
780
- }
781
- ({ h: Ah, l: Al } = add(this.Ah | 0, this.Al | 0, Ah | 0, Al | 0));
782
- ({ h: Bh, l: Bl } = add(this.Bh | 0, this.Bl | 0, Bh | 0, Bl | 0));
783
- ({ h: Ch, l: Cl } = add(this.Ch | 0, this.Cl | 0, Ch | 0, Cl | 0));
784
- ({ h: Dh, l: Dl } = add(this.Dh | 0, this.Dl | 0, Dh | 0, Dl | 0));
785
- ({ h: Eh, l: El } = add(this.Eh | 0, this.El | 0, Eh | 0, El | 0));
786
- ({ h: Fh, l: Fl } = add(this.Fh | 0, this.Fl | 0, Fh | 0, Fl | 0));
787
- ({ h: Gh, l: Gl } = add(this.Gh | 0, this.Gl | 0, Gh | 0, Gl | 0));
788
- ({ h: Hh, l: Hl } = add(this.Hh | 0, this.Hl | 0, Hh | 0, Hl | 0));
789
- this.set(Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl);
790
- }
791
- roundClean() {
792
- clean(SHA512_W_H, SHA512_W_L);
793
- }
794
- destroy() {
795
- this.destroyed = true;
796
- clean(this.buffer);
797
- this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
798
- }
799
- };
800
- var _SHA512 = class extends SHA2_64B {
801
- constructor() {
802
- super(64, SHA512_IV);
803
- }
804
- };
805
- var _SHA384 = class extends SHA2_64B {
806
- constructor() {
807
- super(48, SHA384_IV);
808
- }
809
- };
810
- var sha256 = /* @__PURE__ */ createHasher(
811
- () => new _SHA256(),
812
- /* @__PURE__ */ oidNist(1)
813
- );
814
- var sha224 = /* @__PURE__ */ createHasher(
815
- () => new _SHA224(),
816
- /* @__PURE__ */ oidNist(4)
817
- );
818
- var sha512 = /* @__PURE__ */ createHasher(
819
- () => new _SHA512(),
820
- /* @__PURE__ */ oidNist(3)
821
- );
822
- var sha384 = /* @__PURE__ */ createHasher(
823
- () => new _SHA384(),
824
- /* @__PURE__ */ oidNist(2)
825
- );
826
-
827
- export {
828
- split,
829
- fromNumH,
830
- fromNumL,
831
- rotrSH,
832
- rotrSL,
833
- rotrBH,
834
- rotrBL,
835
- rotr32H,
836
- rotr32L,
837
- add,
838
- add3L,
839
- add3H,
840
- anumber,
841
- abool,
842
- abytes,
843
- copyBytes,
844
- ahash,
845
- aexists,
846
- aoutput,
847
- u8,
848
- u32,
849
- clean,
850
- createView,
851
- rotl,
852
- swap8IfBE,
853
- swap32IfBE,
854
- bytesToHex,
855
- hexToBytes,
856
- nextTick,
857
- kdfInputToBytes,
858
- checkOpts,
859
- createHasher,
860
- oidNist,
861
- Chi,
862
- Maj,
863
- HashMD,
864
- sha256,
865
- sha224,
866
- sha512,
867
- sha384
868
- };
869
- //# sourceMappingURL=chunk-CTYJJD4O.js.map