@@ -3665,11 +3665,10 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
3665
3665
rotlSH, rotlSL, rotlBH, rotlBL,
3666
3666
add, add3L, add3H, add4L, add4H, add5H, add5L,
3667
3667
};
3668
- var u64$1 = u64;
3669
3668
3670
3669
// Round contants (first 32 bits of the fractional parts of the cube roots of the first 80 primes 2..409):
3671
3670
// prettier-ignore
3672
- const [SHA512_Kh, SHA512_Kl] = /* @__PURE__ */ (() => u64$1 .split([
3671
+ const [SHA512_Kh, SHA512_Kl] = /* @__PURE__ */ (() => u64.split([
3673
3672
'0x428a2f98d728ae22', '0x7137449123ef65cd', '0xb5c0fbcfec4d3b2f', '0xe9b5dba58189dbbc',
3674
3673
'0x3956c25bf348b538', '0x59f111f1b605d019', '0x923f82a4af194f9b', '0xab1c5ed5da6d8118',
3675
3674
'0xd807aa98a3030242', '0x12835b0145706fbe', '0x243185be4ee4b28c', '0x550c7dc3d5ffb4e2',
@@ -3752,36 +3751,36 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
3752
3751
// s0 := (w[i-15] rightrotate 1) xor (w[i-15] rightrotate 8) xor (w[i-15] rightshift 7)
3753
3752
const W15h = SHA512_W_H[i - 15] | 0;
3754
3753
const W15l = SHA512_W_L[i - 15] | 0;
3755
- const s0h = u64$1 .rotrSH(W15h, W15l, 1) ^ u64$1 .rotrSH(W15h, W15l, 8) ^ u64$1 .shrSH(W15h, W15l, 7);
3756
- const s0l = u64$1 .rotrSL(W15h, W15l, 1) ^ u64$1 .rotrSL(W15h, W15l, 8) ^ u64$1 .shrSL(W15h, W15l, 7);
3754
+ const s0h = u64.rotrSH(W15h, W15l, 1) ^ u64.rotrSH(W15h, W15l, 8) ^ u64.shrSH(W15h, W15l, 7);
3755
+ const s0l = u64.rotrSL(W15h, W15l, 1) ^ u64.rotrSL(W15h, W15l, 8) ^ u64.shrSL(W15h, W15l, 7);
3757
3756
// s1 := (w[i-2] rightrotate 19) xor (w[i-2] rightrotate 61) xor (w[i-2] rightshift 6)
3758
3757
const W2h = SHA512_W_H[i - 2] | 0;
3759
3758
const W2l = SHA512_W_L[i - 2] | 0;
3760
- const s1h = u64$1 .rotrSH(W2h, W2l, 19) ^ u64$1 .rotrBH(W2h, W2l, 61) ^ u64$1 .shrSH(W2h, W2l, 6);
3761
- const s1l = u64$1 .rotrSL(W2h, W2l, 19) ^ u64$1 .rotrBL(W2h, W2l, 61) ^ u64$1 .shrSL(W2h, W2l, 6);
3759
+ const s1h = u64.rotrSH(W2h, W2l, 19) ^ u64.rotrBH(W2h, W2l, 61) ^ u64.shrSH(W2h, W2l, 6);
3760
+ const s1l = u64.rotrSL(W2h, W2l, 19) ^ u64.rotrBL(W2h, W2l, 61) ^ u64.shrSL(W2h, W2l, 6);
3762
3761
// SHA256_W[i] = s0 + s1 + SHA256_W[i - 7] + SHA256_W[i - 16];
3763
- const SUMl = u64$1 .add4L(s0l, s1l, SHA512_W_L[i - 7], SHA512_W_L[i - 16]);
3764
- const SUMh = u64$1 .add4H(SUMl, s0h, s1h, SHA512_W_H[i - 7], SHA512_W_H[i - 16]);
3762
+ const SUMl = u64.add4L(s0l, s1l, SHA512_W_L[i - 7], SHA512_W_L[i - 16]);
3763
+ const SUMh = u64.add4H(SUMl, s0h, s1h, SHA512_W_H[i - 7], SHA512_W_H[i - 16]);
3765
3764
SHA512_W_H[i] = SUMh | 0;
3766
3765
SHA512_W_L[i] = SUMl | 0;
3767
3766
}
3768
3767
let { Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl } = this;
3769
3768
// Compression function main loop, 80 rounds
3770
3769
for (let i = 0; i < 80; i++) {
3771
3770
// S1 := (e rightrotate 14) xor (e rightrotate 18) xor (e rightrotate 41)
3772
- const sigma1h = u64$1 .rotrSH(Eh, El, 14) ^ u64$1 .rotrSH(Eh, El, 18) ^ u64$1 .rotrBH(Eh, El, 41);
3773
- const sigma1l = u64$1 .rotrSL(Eh, El, 14) ^ u64$1 .rotrSL(Eh, El, 18) ^ u64$1 .rotrBL(Eh, El, 41);
3771
+ const sigma1h = u64.rotrSH(Eh, El, 14) ^ u64.rotrSH(Eh, El, 18) ^ u64.rotrBH(Eh, El, 41);
3772
+ const sigma1l = u64.rotrSL(Eh, El, 14) ^ u64.rotrSL(Eh, El, 18) ^ u64.rotrBL(Eh, El, 41);
3774
3773
//const T1 = (H + sigma1 + Chi(E, F, G) + SHA256_K[i] + SHA256_W[i]) | 0;
3775
3774
const CHIh = (Eh & Fh) ^ (~Eh & Gh);
3776
3775
const CHIl = (El & Fl) ^ (~El & Gl);
3777
3776
// T1 = H + sigma1 + Chi(E, F, G) + SHA512_K[i] + SHA512_W[i]
3778
3777
// prettier-ignore
3779
- const T1ll = u64$1 .add5L(Hl, sigma1l, CHIl, SHA512_Kl[i], SHA512_W_L[i]);
3780
- const T1h = u64$1 .add5H(T1ll, Hh, sigma1h, CHIh, SHA512_Kh[i], SHA512_W_H[i]);
3778
+ const T1ll = u64.add5L(Hl, sigma1l, CHIl, SHA512_Kl[i], SHA512_W_L[i]);
3779
+ const T1h = u64.add5H(T1ll, Hh, sigma1h, CHIh, SHA512_Kh[i], SHA512_W_H[i]);
3781
3780
const T1l = T1ll | 0;
3782
3781
// S0 := (a rightrotate 28) xor (a rightrotate 34) xor (a rightrotate 39)
3783
- const sigma0h = u64$1 .rotrSH(Ah, Al, 28) ^ u64$1 .rotrBH(Ah, Al, 34) ^ u64$1 .rotrBH(Ah, Al, 39);
3784
- const sigma0l = u64$1 .rotrSL(Ah, Al, 28) ^ u64$1 .rotrBL(Ah, Al, 34) ^ u64$1 .rotrBL(Ah, Al, 39);
3782
+ const sigma0h = u64.rotrSH(Ah, Al, 28) ^ u64.rotrBH(Ah, Al, 34) ^ u64.rotrBH(Ah, Al, 39);
3783
+ const sigma0l = u64.rotrSL(Ah, Al, 28) ^ u64.rotrBL(Ah, Al, 34) ^ u64.rotrBL(Ah, Al, 39);
3785
3784
const MAJh = (Ah & Bh) ^ (Ah & Ch) ^ (Bh & Ch);
3786
3785
const MAJl = (Al & Bl) ^ (Al & Cl) ^ (Bl & Cl);
3787
3786
Hh = Gh | 0;
@@ -3790,26 +3789,26 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
3790
3789
Gl = Fl | 0;
3791
3790
Fh = Eh | 0;
3792
3791
Fl = El | 0;
3793
- ({ h: Eh, l: El } = u64$1 .add(Dh | 0, Dl | 0, T1h | 0, T1l | 0));
3792
+ ({ h: Eh, l: El } = u64.add(Dh | 0, Dl | 0, T1h | 0, T1l | 0));
3794
3793
Dh = Ch | 0;
3795
3794
Dl = Cl | 0;
3796
3795
Ch = Bh | 0;
3797
3796
Cl = Bl | 0;
3798
3797
Bh = Ah | 0;
3799
3798
Bl = Al | 0;
3800
- const All = u64$1 .add3L(T1l, sigma0l, MAJl);
3801
- Ah = u64$1 .add3H(All, T1h, sigma0h, MAJh);
3799
+ const All = u64.add3L(T1l, sigma0l, MAJl);
3800
+ Ah = u64.add3H(All, T1h, sigma0h, MAJh);
3802
3801
Al = All | 0;
3803
3802
}
3804
3803
// Add the compressed chunk to the current hash value
3805
- ({ h: Ah, l: Al } = u64$1 .add(this.Ah | 0, this.Al | 0, Ah | 0, Al | 0));
3806
- ({ h: Bh, l: Bl } = u64$1 .add(this.Bh | 0, this.Bl | 0, Bh | 0, Bl | 0));
3807
- ({ h: Ch, l: Cl } = u64$1 .add(this.Ch | 0, this.Cl | 0, Ch | 0, Cl | 0));
3808
- ({ h: Dh, l: Dl } = u64$1 .add(this.Dh | 0, this.Dl | 0, Dh | 0, Dl | 0));
3809
- ({ h: Eh, l: El } = u64$1 .add(this.Eh | 0, this.El | 0, Eh | 0, El | 0));
3810
- ({ h: Fh, l: Fl } = u64$1 .add(this.Fh | 0, this.Fl | 0, Fh | 0, Fl | 0));
3811
- ({ h: Gh, l: Gl } = u64$1 .add(this.Gh | 0, this.Gl | 0, Gh | 0, Gl | 0));
3812
- ({ h: Hh, l: Hl } = u64$1 .add(this.Hh | 0, this.Hl | 0, Hh | 0, Hl | 0));
3804
+ ({ h: Ah, l: Al } = u64.add(this.Ah | 0, this.Al | 0, Ah | 0, Al | 0));
3805
+ ({ h: Bh, l: Bl } = u64.add(this.Bh | 0, this.Bl | 0, Bh | 0, Bl | 0));
3806
+ ({ h: Ch, l: Cl } = u64.add(this.Ch | 0, this.Cl | 0, Ch | 0, Cl | 0));
3807
+ ({ h: Dh, l: Dl } = u64.add(this.Dh | 0, this.Dl | 0, Dh | 0, Dl | 0));
3808
+ ({ h: Eh, l: El } = u64.add(this.Eh | 0, this.El | 0, Eh | 0, El | 0));
3809
+ ({ h: Fh, l: Fl } = u64.add(this.Fh | 0, this.Fl | 0, Fh | 0, Fl | 0));
3810
+ ({ h: Gh, l: Gl } = u64.add(this.Gh | 0, this.Gl | 0, Gh | 0, Gl | 0));
3811
+ ({ h: Hh, l: Hl } = u64.add(this.Hh | 0, this.Hl | 0, Hh | 0, Hl | 0));
3813
3812
this.set(Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl);
3814
3813
}
3815
3814
roundClean() {
@@ -9537,7 +9536,6 @@ const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !==
9537
9536
let {V} = node;
9538
9537
if (V) { // this is a valid emoji (so far)
9539
9538
emoji = V;
9540
- if (eaten) eaten.push(...cps.slice(pos).reverse()); // (optional) copy input, used for ens_tokenize()
9541
9539
cps.length = pos; // truncate
9542
9540
}
9543
9541
}
0 commit comments