@gardenfi/utils 2.5.3-beta.0 → 2.5.3-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.js +26 -28
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +5 -5
- package/dist/index100.cjs +1 -1
- package/dist/index100.js +8 -23
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +11 -108
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +18 -6
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +27 -50
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +21 -16
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +51 -10
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +11 -5
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +161 -14
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +21 -3
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +127 -26
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +38 -4
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +6 -6
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +27 -88
- package/dist/index113.cjs +1 -1
- package/dist/index113.js +54 -124
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +45 -7
- package/dist/index115.cjs +1 -1
- package/dist/index115.js +189 -19
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +4 -18
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +62 -38
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +3 -22
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +20 -11
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +16 -6
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +23 -106
- package/dist/index122.cjs +1 -1
- package/dist/index122.js +12 -3
- package/dist/index123.cjs +1 -1
- package/dist/index123.js +19 -4
- package/dist/index124.cjs +1 -1
- package/dist/index124.js +35 -9
- package/dist/index125.cjs +1 -1
- package/dist/index125.js +3 -2
- package/dist/index126.cjs +1 -2
- package/dist/index126.js +19 -3
- package/dist/index127.cjs +1 -20
- package/dist/index127.js +27 -326
- package/dist/index128.cjs +1 -1
- package/dist/index128.js +35 -12
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +8 -4
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +1 -1
- package/dist/index130.cjs +1 -1
- package/dist/index130.js +11 -2
- package/dist/index131.cjs +1 -1
- package/dist/index131.js +24 -6
- package/dist/index132.cjs +1 -3
- package/dist/index132.js +27 -214
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +64 -30
- package/dist/index134.cjs +1 -1
- package/dist/index134.js +9 -21
- package/dist/index135.cjs +1 -1
- package/dist/index135.js +23 -5
- package/dist/index136.cjs +1 -1
- package/dist/index136.js +24 -73
- package/dist/index137.cjs +1 -1
- package/dist/index137.js +24 -5
- package/dist/index138.cjs +1 -1
- package/dist/index138.js +3 -5
- package/dist/index139.cjs +1 -9
- package/dist/index139.js +14 -35
- package/dist/index140.cjs +1 -3
- package/dist/index140.js +93 -100
- package/dist/index141.cjs +1 -1
- package/dist/index141.js +81 -3
- package/dist/index142.cjs +1 -1
- package/dist/index142.js +5 -23
- package/dist/index143.cjs +1 -3
- package/dist/index143.js +6 -451
- package/dist/index144.cjs +1 -2
- package/dist/index144.js +26 -53
- package/dist/index145.cjs +1 -1
- package/dist/index145.js +26 -26
- package/dist/index146.cjs +1 -1
- package/dist/index146.js +13 -33
- package/dist/index147.cjs +1 -1
- package/dist/index147.js +42 -35
- package/dist/index148.cjs +1 -4
- package/dist/index148.js +19 -194
- package/dist/index149.cjs +1 -1
- package/dist/index149.js +77 -7
- package/dist/index150.cjs +1 -1
- package/dist/index150.js +2 -13
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +32 -13
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +106 -22
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +166 -8
- package/dist/index154.cjs +1 -1
- package/dist/index154.js +46 -52
- package/dist/index155.cjs +1 -1
- package/dist/index155.js +31 -44
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +8 -8
- package/dist/index157.cjs +1 -1
- package/dist/index157.js +6 -7
- package/dist/index158.cjs +1 -1
- package/dist/index158.js +6 -16
- package/dist/index159.cjs +1 -1
- package/dist/index159.js +11 -18
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +18 -26
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +10 -21
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +13 -51
- package/dist/index162.cjs +1 -1
- package/dist/index162.js +32 -11
- package/dist/index163.cjs +1 -1
- package/dist/index163.js +5 -162
- package/dist/index164.cjs +1 -1
- package/dist/index164.js +7 -21
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +8 -127
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +18 -36
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +31 -6
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +3 -27
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +16 -190
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +113 -14
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +11 -4
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +19 -62
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +23 -3
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +5 -20
- package/dist/index174.cjs +1 -1
- package/dist/index174.js +5 -16
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +8 -23
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +104 -11
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +3 -35
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +19 -3
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +171 -18
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +118 -115
- package/dist/index180.cjs +1 -1
- package/dist/index180.js +16 -26
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +30 -36
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +2 -11
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +13 -25
- package/dist/index184.cjs +1 -1
- package/dist/index184.js +11 -27
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +45 -63
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +11 -9
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +7 -33
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +89 -24
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +46 -24
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +2 -121
- package/dist/index190.cjs +1 -1
- package/dist/index190.js +37 -3
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +17 -14
- package/dist/index192.cjs +1 -1
- package/dist/index192.js +5 -102
- package/dist/index193.cjs +1 -1
- package/dist/index193.js +9 -80
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +13 -5
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +8 -6
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +8 -27
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +35 -26
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +16 -13
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +14 -42
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +13 -2
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +13 -5
- package/dist/index201.cjs +2 -1
- package/dist/index201.js +24 -11
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +6 -19
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +24 -77
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +19 -2
- package/dist/index205.cjs +1 -1
- package/dist/index205.js +15 -37
- package/dist/index206.cjs +1 -1
- package/dist/index206.js +5 -111
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +13 -49
- package/dist/index208.cjs +1 -1
- package/dist/index208.js +9 -31
- package/dist/index209.cjs +1 -1
- package/dist/index209.js +16 -8
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +283 -13
- package/dist/index210.cjs +2 -1
- package/dist/index210.js +41 -6
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +2 -7
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +5 -11
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +9 -9
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +18 -12
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +8 -32
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +67 -5
- package/dist/index217.cjs +1 -1
- package/dist/index217.js +65 -7
- package/dist/index218.cjs +1 -1
- package/dist/index218.js +184 -6
- package/dist/index219.cjs +1 -1
- package/dist/index219.js +26 -18
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +36 -497
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +74 -29
- package/dist/index221.cjs +1 -1
- package/dist/index221.js +40 -3
- package/dist/index222.cjs +1 -1
- package/dist/index222.js +16 -17
- package/dist/index223.cjs +1 -1
- package/dist/index223.js +13 -10
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +11 -20
- package/dist/index225.cjs +1 -1
- package/dist/index225.js +11 -22
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +103 -5
- package/dist/index227.cjs +1 -1
- package/dist/index227.js +6 -5
- package/dist/index228.cjs +1 -1
- package/dist/index228.js +244 -8
- package/dist/index229.cjs +1 -1
- package/dist/index229.js +6 -104
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +25 -34
- package/dist/index230.cjs +1 -1
- package/dist/index230.js +7 -3
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +24 -16
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +17 -169
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +145 -16
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +24 -9
- package/dist/index235.cjs +1 -1
- package/dist/index235.js +45 -15
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +9 -22
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +42 -30
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +79 -2
- package/dist/index239.cjs +1 -1
- package/dist/index239.js +2 -14
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +8 -30
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +10 -11
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +18 -46
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +68 -11
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +788 -7
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +148 -9
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +199 -12
- package/dist/index246.cjs +2 -1
- package/dist/index246.js +65 -13
- package/dist/index247.cjs +1 -1
- package/dist/index247.js +14 -9
- package/dist/index248.cjs +1 -1
- package/dist/index248.js +4 -24
- package/dist/index249.cjs +1 -1
- package/dist/index249.js +2 -13
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +13 -30
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +57 -11
- package/dist/index27.cjs +16 -1
- package/dist/index27.js +113 -57
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +30 -13
- package/dist/index29.cjs +1 -16
- package/dist/index29.js +7 -113
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +30 -25
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +28 -6
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +16 -7
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +32 -30
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +40 -25
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +151 -16
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +30 -28
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +54 -41
- package/dist/index38.cjs +2 -1
- package/dist/index38.js +59 -151
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +12 -34
- package/dist/index4.cjs +1 -1
- package/dist/index4.js +4 -4
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +37 -57
- package/dist/index41.cjs +1 -2
- package/dist/index41.js +15 -59
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +8 -13
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +19 -36
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +2 -16
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +44 -7
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +31 -19
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +4 -2
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +8 -44
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +67 -31
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +9 -3
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +28 -9
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +71 -68
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +19 -9
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +48 -26
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +7 -71
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +16 -19
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +10 -110
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +5 -61
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +13 -23
- package/dist/index6.cjs +1 -1
- package/dist/index6.js +1 -1
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +3 -36
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +25 -40
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +108 -57
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +4 -166
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +6 -40
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +87 -8
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +6 -36
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +125 -9
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +7 -50
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +19 -87
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +16 -40
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +39 -7
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +21 -6
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +11 -17
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +6 -8
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +106 -13
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +3 -8
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +9 -10
- package/dist/index78.cjs +2 -1
- package/dist/index78.js +3 -47
- package/dist/index79.cjs +20 -1
- package/dist/index79.js +326 -13
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +13 -16
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +4 -13
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +2 -7
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +7 -35
- package/dist/index84.cjs +3 -1
- package/dist/index84.js +215 -9
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +32 -9
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +20 -25
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +5 -10
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +73 -14
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +5 -118
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +5 -81
- package/dist/index91.cjs +9 -1
- package/dist/index91.js +32 -174
- package/dist/index92.cjs +3 -1
- package/dist/index92.js +95 -6
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +3 -14
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +23 -13
- package/dist/index95.cjs +3 -1
- package/dist/index95.js +451 -103
- package/dist/index96.cjs +2 -1
- package/dist/index96.js +53 -74
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +20 -89
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +34 -137
- package/dist/index99.cjs +4 -1
- package/dist/index99.js +193 -68
- package/dist/src/index.d.ts +0 -1
- package/package.json +1 -1
- package/dist/index250.cjs +0 -1
- package/dist/index250.js +0 -27
- package/dist/index251.cjs +0 -1
- package/dist/index251.js +0 -16
- package/dist/index252.cjs +0 -1
- package/dist/index252.js +0 -18
- package/dist/index253.cjs +0 -2
- package/dist/index253.js +0 -27
- package/dist/index254.cjs +0 -1
- package/dist/index254.js +0 -55
- package/dist/index255.cjs +0 -1
- package/dist/index255.js +0 -28
- package/dist/index256.cjs +0 -1
- package/dist/index256.js +0 -21
- package/dist/index257.cjs +0 -1
- package/dist/index257.js +0 -18
- package/dist/index258.cjs +0 -1
- package/dist/index258.js +0 -8
- package/dist/index259.cjs +0 -1
- package/dist/index259.js +0 -16
- package/dist/index260.cjs +0 -1
- package/dist/index260.js +0 -13
- package/dist/index261.cjs +0 -1
- package/dist/index261.js +0 -19
- package/dist/index262.cjs +0 -2
- package/dist/index262.js +0 -44
- package/dist/index263.cjs +0 -1
- package/dist/index263.js +0 -4
- package/dist/index264.cjs +0 -1
- package/dist/index264.js +0 -8
- package/dist/index265.cjs +0 -1
- package/dist/index265.js +0 -13
- package/dist/index266.cjs +0 -1
- package/dist/index266.js +0 -22
- package/dist/index267.cjs +0 -1
- package/dist/index267.js +0 -11
- package/dist/index268.cjs +0 -1
- package/dist/index268.js +0 -69
- package/dist/index269.cjs +0 -1
- package/dist/index269.js +0 -68
- package/dist/index270.cjs +0 -1
- package/dist/index270.js +0 -189
- package/dist/index271.cjs +0 -1
- package/dist/index271.js +0 -31
- package/dist/index272.cjs +0 -1
- package/dist/index272.js +0 -79
- package/dist/index273.cjs +0 -1
- package/dist/index273.js +0 -43
- package/dist/index274.cjs +0 -1
- package/dist/index274.js +0 -19
- package/dist/index275.cjs +0 -1
- package/dist/index275.js +0 -16
- package/dist/index276.cjs +0 -1
- package/dist/index276.js +0 -15
- package/dist/index277.cjs +0 -1
- package/dist/index277.js +0 -14
- package/dist/index278.cjs +0 -2
- package/dist/index278.js +0 -21
- package/dist/index279.cjs +0 -1
- package/dist/index279.js +0 -17
- package/dist/index280.cjs +0 -1
- package/dist/index280.js +0 -106
- package/dist/index281.cjs +0 -1
- package/dist/index281.js +0 -9
- package/dist/index282.cjs +0 -1
- package/dist/index282.js +0 -247
- package/dist/index283.cjs +0 -1
- package/dist/index283.js +0 -9
- package/dist/index284.cjs +0 -1
- package/dist/index284.js +0 -9
- package/dist/index285.cjs +0 -1
- package/dist/index285.js +0 -29
- package/dist/index286.cjs +0 -1
- package/dist/index286.js +0 -22
- package/dist/index287.cjs +0 -1
- package/dist/index287.js +0 -149
- package/dist/index288.cjs +0 -1
- package/dist/index288.js +0 -6
- package/dist/index289.cjs +0 -1
- package/dist/index289.js +0 -158
- package/dist/index290.cjs +0 -1
- package/dist/index290.js +0 -12
- package/dist/index291.cjs +0 -1
- package/dist/index291.js +0 -143
- package/dist/index292.cjs +0 -1
- package/dist/index292.js +0 -116
- package/dist/index293.cjs +0 -2
- package/dist/index293.js +0 -137
- package/dist/index294.cjs +0 -1
- package/dist/index294.js +0 -45
- package/dist/index295.cjs +0 -1
- package/dist/index295.js +0 -81
- package/dist/index296.cjs +0 -1
- package/dist/index296.js +0 -4
- package/dist/index297.cjs +0 -1
- package/dist/index297.js +0 -14
- package/dist/index298.cjs +0 -1
- package/dist/index298.js +0 -22
- package/dist/index299.cjs +0 -1
- package/dist/index299.js +0 -71
- package/dist/index300.cjs +0 -1
- package/dist/index300.js +0 -791
- package/dist/index301.cjs +0 -1
- package/dist/index301.js +0 -151
- package/dist/index302.cjs +0 -1
- package/dist/index302.js +0 -203
- package/dist/index303.cjs +0 -2
- package/dist/index303.js +0 -69
- package/dist/index304.cjs +0 -1
- package/dist/index304.js +0 -10
- package/dist/index305.cjs +0 -1
- package/dist/index305.js +0 -65
- package/dist/index306.cjs +0 -1
- package/dist/index306.js +0 -25
- package/dist/index307.cjs +0 -1
- package/dist/index307.js +0 -8
- package/dist/index308.cjs +0 -1
- package/dist/index308.js +0 -80
- package/dist/index309.cjs +0 -1
- package/dist/index309.js +0 -6
- package/dist/index310.cjs +0 -1
- package/dist/index310.js +0 -197
- package/dist/index311.cjs +0 -1
- package/dist/index311.js +0 -7
- package/dist/index312.cjs +0 -1
- package/dist/index312.js +0 -43
- package/dist/index313.cjs +0 -2
- package/dist/index313.js +0 -44
- package/dist/index314.cjs +0 -1
- package/dist/index314.js +0 -4
- package/dist/index315.cjs +0 -1
- package/dist/index315.js +0 -13
- package/dist/index316.cjs +0 -1
- package/dist/index316.js +0 -22
- package/dist/index317.cjs +0 -1
- package/dist/index317.js +0 -11
- package/dist/index318.cjs +0 -1
- package/dist/index318.js +0 -45
- package/dist/index319.cjs +0 -1
- package/dist/index319.js +0 -69
- package/dist/index320.cjs +0 -1
- package/dist/index320.js +0 -68
- package/dist/index321.cjs +0 -1
- package/dist/index321.js +0 -191
- package/dist/index322.cjs +0 -1
- package/dist/index322.js +0 -79
- package/dist/index323.cjs +0 -1
- package/dist/index323.js +0 -43
- package/dist/index324.cjs +0 -1
- package/dist/index324.js +0 -19
- package/dist/index325.cjs +0 -1
- package/dist/index325.js +0 -16
- package/dist/index326.cjs +0 -1
- package/dist/index326.js +0 -7
- package/dist/index327.cjs +0 -1
- package/dist/index327.js +0 -66
- package/dist/index328.cjs +0 -1
- package/dist/index328.js +0 -7
- package/dist/index329.cjs +0 -1
- package/dist/index329.js +0 -47
- package/dist/index330.cjs +0 -1
- package/dist/index330.js +0 -71
- package/dist/index331.cjs +0 -1
- package/dist/index331.js +0 -4
- package/dist/index332.cjs +0 -1
- package/dist/index332.js +0 -24
- package/dist/src/lib/blockNumber/blockNumber.d.ts +0 -10
- package/dist/src/lib/blockNumber/index.d.ts +0 -1
package/dist/index274.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { BaseError as s } from "./index262.js";
|
|
2
|
-
class n extends s {
|
|
3
|
-
constructor({ current: r, depth: e }) {
|
|
4
|
-
super("Unbalanced parentheses.", {
|
|
5
|
-
metaMessages: [
|
|
6
|
-
`"${r.trim()}" has too many ${e > 0 ? "opening" : "closing"} parentheses.`
|
|
7
|
-
],
|
|
8
|
-
details: `Depth "${e}"`
|
|
9
|
-
}), Object.defineProperty(this, "name", {
|
|
10
|
-
enumerable: !0,
|
|
11
|
-
configurable: !0,
|
|
12
|
-
writable: !0,
|
|
13
|
-
value: "InvalidParenthesisError"
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
n as InvalidParenthesisError
|
|
19
|
-
};
|
package/dist/index275.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index262.cjs");class t extends r.BaseError{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}exports.CircularReferenceError=t;
|
package/dist/index275.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { BaseError as r } from "./index262.js";
|
|
2
|
-
class a extends r {
|
|
3
|
-
constructor({ type: e }) {
|
|
4
|
-
super("Circular reference detected.", {
|
|
5
|
-
metaMessages: [`Struct "${e}" is a circular reference.`]
|
|
6
|
-
}), Object.defineProperty(this, "name", {
|
|
7
|
-
enumerable: !0,
|
|
8
|
-
configurable: !0,
|
|
9
|
-
writable: !0,
|
|
10
|
-
value: "CircularReferenceError"
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
export {
|
|
15
|
-
a as CircularReferenceError
|
|
16
|
-
};
|
package/dist/index276.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function e(){return{current:0,take(){return this.current++},reset(){this.current=0}}}const t=e();exports.idCache=t;
|
package/dist/index276.js
DELETED
package/dist/index277.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index224.cjs"),t=new o.LruMap(8192);function i(r,{enabled:n=!0,id:e}){if(!n||!e)return r();if(t.get(e))return t.get(e);const u=r().finally(()=>t.delete(e));return t.set(e,u),u}exports.promiseCache=t;exports.withDedupe=i;
|
package/dist/index277.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { LruMap as u } from "./index224.js";
|
|
2
|
-
const t = /* @__PURE__ */ new u(8192);
|
|
3
|
-
function s(r, { enabled: o = !0, id: e }) {
|
|
4
|
-
if (!o || !e)
|
|
5
|
-
return r();
|
|
6
|
-
if (t.get(e))
|
|
7
|
-
return t.get(e);
|
|
8
|
-
const n = r().finally(() => t.delete(e));
|
|
9
|
-
return t.set(e, n), n;
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
t as promiseCache,
|
|
13
|
-
s as withDedupe
|
|
14
|
-
};
|
package/dist/index278.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function x(e){var c,d,f;const{scheme:n,statement:t,...p}=((c=e.match(h))==null?void 0:c.groups)??{},{chainId:s,expirationTime:i,issuedAt:o,notBefore:r,requestId:a,...m}=((d=e.match(A))==null?void 0:d.groups)??{},u=(f=e.split("Resources:")[1])==null?void 0:f.split(`
|
|
2
|
-
- `).slice(1);return{...p,...m,...s?{chainId:Number(s)}:{},...i?{expirationTime:new Date(i)}:{},...o?{issuedAt:new Date(o)}:{},...r?{notBefore:new Date(r)}:{},...a?{requestId:a}:{},...u?{resources:u}:{},...n?{scheme:n}:{},...t?{statement:t}:{}}}const h=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\/\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\n)(?<address>0x[a-fA-F0-9]{40})\n\n(?:(?<statement>.*)\n\n)?/,A=/(?:URI: (?<uri>.+))\n(?:Version: (?<version>.+))\n(?:Chain ID: (?<chainId>\d+))\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\n(?:Issued At: (?<issuedAt>.+))(?:\nExpiration Time: (?<expirationTime>.+))?(?:\nNot Before: (?<notBefore>.+))?(?:\nRequest ID: (?<requestId>.+))?/;exports.parseSiweMessage=x;
|
package/dist/index278.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
function A(e) {
|
|
2
|
-
var c, d, f;
|
|
3
|
-
const { scheme: n, statement: t, ...p } = ((c = e.match(m)) == null ? void 0 : c.groups) ?? {}, { chainId: s, expirationTime: i, issuedAt: o, notBefore: r, requestId: a, ...x } = ((d = e.match(h)) == null ? void 0 : d.groups) ?? {}, u = (f = e.split("Resources:")[1]) == null ? void 0 : f.split(`
|
|
4
|
-
- `).slice(1);
|
|
5
|
-
return {
|
|
6
|
-
...p,
|
|
7
|
-
...x,
|
|
8
|
-
...s ? { chainId: Number(s) } : {},
|
|
9
|
-
...i ? { expirationTime: new Date(i) } : {},
|
|
10
|
-
...o ? { issuedAt: new Date(o) } : {},
|
|
11
|
-
...r ? { notBefore: new Date(r) } : {},
|
|
12
|
-
...a ? { requestId: a } : {},
|
|
13
|
-
...u ? { resources: u } : {},
|
|
14
|
-
...n ? { scheme: n } : {},
|
|
15
|
-
...t ? { statement: t } : {}
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
const m = /^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\/\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\n)(?<address>0x[a-fA-F0-9]{40})\n\n(?:(?<statement>.*)\n\n)?/, h = /(?:URI: (?<uri>.+))\n(?:Version: (?<version>.+))\n(?:Chain ID: (?<chainId>\d+))\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\n(?:Issued At: (?<issuedAt>.+))(?:\nExpiration Time: (?<expirationTime>.+))?(?:\nNot Before: (?<notBefore>.+))?(?:\nRequest ID: (?<requestId>.+))?/;
|
|
19
|
-
export {
|
|
20
|
-
A as parseSiweMessage
|
|
21
|
-
};
|
package/dist/index279.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index176.cjs"),f=require("./index186.cjs");function u(n){const{address:s,domain:r,message:e,nonce:t,scheme:i,time:a=new Date}=n;if(r&&e.domain!==r||t&&e.nonce!==t||i&&e.scheme!==i||e.expirationTime&&a>=e.expirationTime||e.notBefore&&a<e.notBefore)return!1;try{if(!e.address||!d.isAddress(e.address,{strict:!1})||s&&!f.isAddressEqual(e.address,s))return!1}catch{return!1}return!0}exports.validateSiweMessage=u;
|
package/dist/index279.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { isAddress as f } from "./index176.js";
|
|
2
|
-
import { isAddressEqual as o } from "./index186.js";
|
|
3
|
-
function l(n) {
|
|
4
|
-
const { address: r, domain: s, message: e, nonce: t, scheme: a, time: i = /* @__PURE__ */ new Date() } = n;
|
|
5
|
-
if (s && e.domain !== s || t && e.nonce !== t || a && e.scheme !== a || e.expirationTime && i >= e.expirationTime || e.notBefore && i < e.notBefore)
|
|
6
|
-
return !1;
|
|
7
|
-
try {
|
|
8
|
-
if (!e.address || !f(e.address, { strict: !1 }) || r && !o(e.address, r))
|
|
9
|
-
return !1;
|
|
10
|
-
} catch {
|
|
11
|
-
return !1;
|
|
12
|
-
}
|
|
13
|
-
return !0;
|
|
14
|
-
}
|
|
15
|
-
export {
|
|
16
|
-
l as validateSiweMessage
|
|
17
|
-
};
|
package/dist/index280.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index295.cjs"),x=require("./index287.cjs"),_=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),f=new Uint32Array(64);class u extends e.HashMD{constructor(o=32){super(64,o,8,!1),this.A=e.SHA256_IV[0]|0,this.B=e.SHA256_IV[1]|0,this.C=e.SHA256_IV[2]|0,this.D=e.SHA256_IV[3]|0,this.E=e.SHA256_IV[4]|0,this.F=e.SHA256_IV[5]|0,this.G=e.SHA256_IV[6]|0,this.H=e.SHA256_IV[7]|0}get(){const{A:o,B:h,C:s,D:a,E:r,F:b,G:c,H:i}=this;return[o,h,s,a,r,b,c,i]}set(o,h,s,a,r,b,c,i){this.A=o|0,this.B=h|0,this.C=s|0,this.D=a|0,this.E=r|0,this.F=b|0,this.G=c|0,this.H=i|0}process(o,h){for(let t=0;t<16;t++,h+=4)f[t]=o.getUint32(h,!1);for(let t=16;t<64;t++){const H=f[t-15],d=f[t-2],S=x.rotr(H,7)^x.rotr(H,18)^H>>>3,l=x.rotr(d,17)^x.rotr(d,19)^d>>>10;f[t]=l+f[t-7]+S+f[t-16]|0}let{A:s,B:a,C:r,D:b,E:c,F:i,G:n,H:A}=this;for(let t=0;t<64;t++){const H=x.rotr(c,6)^x.rotr(c,11)^x.rotr(c,25),d=A+H+e.Chi(c,i,n)+_[t]+f[t]|0,l=(x.rotr(s,2)^x.rotr(s,13)^x.rotr(s,22))+e.Maj(s,a,r)|0;A=n,n=i,i=c,c=b+d|0,b=r,r=a,a=s,s=d+l|0}s=s+this.A|0,a=a+this.B|0,r=r+this.C|0,b=b+this.D|0,c=c+this.E|0,i=i+this.F|0,n=n+this.G|0,A=A+this.H|0,this.set(s,a,r,b,c,i,n,A)}roundClean(){x.clean(f)}destroy(){this.set(0,0,0,0,0,0,0,0),x.clean(this.buffer)}}const I=x.createHasher(()=>new u);exports.SHA256=u;exports.sha256=I;
|
package/dist/index280.js
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { HashMD as D, SHA256_IV as b, Chi as g, Maj as p } from "./index295.js";
|
|
2
|
-
import { createHasher as u, clean as C, rotr as i } from "./index287.js";
|
|
3
|
-
const B = /* @__PURE__ */ Uint32Array.from([
|
|
4
|
-
1116352408,
|
|
5
|
-
1899447441,
|
|
6
|
-
3049323471,
|
|
7
|
-
3921009573,
|
|
8
|
-
961987163,
|
|
9
|
-
1508970993,
|
|
10
|
-
2453635748,
|
|
11
|
-
2870763221,
|
|
12
|
-
3624381080,
|
|
13
|
-
310598401,
|
|
14
|
-
607225278,
|
|
15
|
-
1426881987,
|
|
16
|
-
1925078388,
|
|
17
|
-
2162078206,
|
|
18
|
-
2614888103,
|
|
19
|
-
3248222580,
|
|
20
|
-
3835390401,
|
|
21
|
-
4022224774,
|
|
22
|
-
264347078,
|
|
23
|
-
604807628,
|
|
24
|
-
770255983,
|
|
25
|
-
1249150122,
|
|
26
|
-
1555081692,
|
|
27
|
-
1996064986,
|
|
28
|
-
2554220882,
|
|
29
|
-
2821834349,
|
|
30
|
-
2952996808,
|
|
31
|
-
3210313671,
|
|
32
|
-
3336571891,
|
|
33
|
-
3584528711,
|
|
34
|
-
113926993,
|
|
35
|
-
338241895,
|
|
36
|
-
666307205,
|
|
37
|
-
773529912,
|
|
38
|
-
1294757372,
|
|
39
|
-
1396182291,
|
|
40
|
-
1695183700,
|
|
41
|
-
1986661051,
|
|
42
|
-
2177026350,
|
|
43
|
-
2456956037,
|
|
44
|
-
2730485921,
|
|
45
|
-
2820302411,
|
|
46
|
-
3259730800,
|
|
47
|
-
3345764771,
|
|
48
|
-
3516065817,
|
|
49
|
-
3600352804,
|
|
50
|
-
4094571909,
|
|
51
|
-
275423344,
|
|
52
|
-
430227734,
|
|
53
|
-
506948616,
|
|
54
|
-
659060556,
|
|
55
|
-
883997877,
|
|
56
|
-
958139571,
|
|
57
|
-
1322822218,
|
|
58
|
-
1537002063,
|
|
59
|
-
1747873779,
|
|
60
|
-
1955562222,
|
|
61
|
-
2024104815,
|
|
62
|
-
2227730452,
|
|
63
|
-
2361852424,
|
|
64
|
-
2428436474,
|
|
65
|
-
2756734187,
|
|
66
|
-
3204031479,
|
|
67
|
-
3329325298
|
|
68
|
-
]), h = /* @__PURE__ */ new Uint32Array(64);
|
|
69
|
-
class E extends D {
|
|
70
|
-
constructor(o = 32) {
|
|
71
|
-
super(64, o, 8, !1), this.A = b[0] | 0, this.B = b[1] | 0, this.C = b[2] | 0, this.D = b[3] | 0, this.E = b[4] | 0, this.F = b[5] | 0, this.G = b[6] | 0, this.H = b[7] | 0;
|
|
72
|
-
}
|
|
73
|
-
get() {
|
|
74
|
-
const { A: o, B: r, C: t, D: s, E: a, F: f, G: c, H: e } = this;
|
|
75
|
-
return [o, r, t, s, a, f, c, e];
|
|
76
|
-
}
|
|
77
|
-
// prettier-ignore
|
|
78
|
-
set(o, r, t, s, a, f, c, e) {
|
|
79
|
-
this.A = o | 0, this.B = r | 0, this.C = t | 0, this.D = s | 0, this.E = a | 0, this.F = f | 0, this.G = c | 0, this.H = e | 0;
|
|
80
|
-
}
|
|
81
|
-
process(o, r) {
|
|
82
|
-
for (let x = 0; x < 16; x++, r += 4)
|
|
83
|
-
h[x] = o.getUint32(r, !1);
|
|
84
|
-
for (let x = 16; x < 64; x++) {
|
|
85
|
-
const H = h[x - 15], d = h[x - 2], m = i(H, 7) ^ i(H, 18) ^ H >>> 3, l = i(d, 17) ^ i(d, 19) ^ d >>> 10;
|
|
86
|
-
h[x] = l + h[x - 7] + m + h[x - 16] | 0;
|
|
87
|
-
}
|
|
88
|
-
let { A: t, B: s, C: a, D: f, E: c, F: e, G: n, H: A } = this;
|
|
89
|
-
for (let x = 0; x < 64; x++) {
|
|
90
|
-
const H = i(c, 6) ^ i(c, 11) ^ i(c, 25), d = A + H + g(c, e, n) + B[x] + h[x] | 0, l = (i(t, 2) ^ i(t, 13) ^ i(t, 22)) + p(t, s, a) | 0;
|
|
91
|
-
A = n, n = e, e = c, c = f + d | 0, f = a, a = s, s = t, t = d + l | 0;
|
|
92
|
-
}
|
|
93
|
-
t = t + this.A | 0, s = s + this.B | 0, a = a + this.C | 0, f = f + this.D | 0, c = c + this.E | 0, e = e + this.F | 0, n = n + this.G | 0, A = A + this.H | 0, this.set(t, s, a, f, c, e, n, A);
|
|
94
|
-
}
|
|
95
|
-
roundClean() {
|
|
96
|
-
C(h);
|
|
97
|
-
}
|
|
98
|
-
destroy() {
|
|
99
|
-
this.set(0, 0, 0, 0, 0, 0, 0, 0), C(this.buffer);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
const y = /* @__PURE__ */ u(() => new E());
|
|
103
|
-
export {
|
|
104
|
-
E as SHA256,
|
|
105
|
-
y as sha256
|
|
106
|
-
};
|
package/dist/index281.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index300.cjs");/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function c(r,t){const e=s=>a.weierstrass({...r,hash:s});return{...e(t),create:e}}exports.createCurve=c;
|
package/dist/index281.js
DELETED
package/dist/index282.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("./index301.cjs"),Y=require("./index287.cjs");/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const h=BigInt(0),g=BigInt(1),b=BigInt(2),x=BigInt(3),M=BigInt(4),A=BigInt(5),k=BigInt(7),j=BigInt(8),O=BigInt(9),V=BigInt(16);function q(t,n){const r=t%n;return r>=h?r:n+r}function U(t,n,r){let o=t;for(;n-- >h;)o*=o,o%=r;return o}function y(t,n){if(t===h)throw new Error("invert: expected non-zero number");if(n<=h)throw new Error("invert: expected positive modulus, got "+n);let r=q(t,n),o=n,l=h,f=g;for(;r!==h;){const i=o/r,s=o%r,u=l-f*i;o=r,r=s,l=f,f=u}if(o!==g)throw new Error("invert: does not exist");return q(l,n)}function I(t,n,r){if(!t.eql(t.sqr(n),r))throw new Error("Cannot find square root")}function Z(t,n){const r=(t.ORDER+g)/M,o=t.pow(n,r);return I(t,o,n),o}function $(t,n){const r=(t.ORDER-A)/j,o=t.mul(n,b),l=t.pow(o,r),f=t.mul(n,l),d=t.mul(t.mul(f,b),l),i=t.mul(f,t.sub(d,t.ONE));return I(t,i,n),i}function G(t){const n=_(t),r=S(t),o=r(n,n.neg(n.ONE)),l=r(n,o),f=r(n,n.neg(o)),d=(t+k)/V;return(i,s)=>{let u=i.pow(s,d),w=i.mul(u,o);const a=i.mul(u,l),e=i.mul(u,f),c=i.eql(i.sqr(w),s),m=i.eql(i.sqr(a),s);u=i.cmov(u,w,c),w=i.cmov(e,a,m);const B=i.eql(i.sqr(w),s),E=i.cmov(u,w,B);return I(i,E,s),E}}function S(t){if(t<x)throw new Error("sqrt is not defined for small field");let n=t-g,r=0;for(;n%b===h;)n/=b,r++;let o=b;const l=_(t);for(;N(l,o)===1;)if(o++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(r===1)return Z;let f=l.pow(o,n);const d=(n+g)/b;return function(s,u){if(s.is0(u))return u;if(N(s,u)!==1)throw new Error("Cannot find square root");let w=r,a=s.mul(s.ONE,f),e=s.pow(u,n),c=s.pow(u,d);for(;!s.eql(e,s.ONE);){if(s.is0(e))return s.ZERO;let m=1,B=s.sqr(e);for(;!s.eql(B,s.ONE);)if(m++,B=s.sqr(B),m===w)throw new Error("Cannot find square root");const E=g<<BigInt(w-m-1),L=s.pow(a,E);w=m,a=s.sqr(L),e=s.mul(e,a),c=s.mul(c,L)}return c}}function z(t){return t%M===x?Z:t%j===A?$:t%V===O?G(t):S(t)}const J=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function W(t){const n={ORDER:"bigint",MASK:"bigint",BYTES:"number",BITS:"number"},r=J.reduce((o,l)=>(o[l]="function",o),n);return v._validateObject(t,r),t}function C(t,n,r){if(r<h)throw new Error("invalid exponent, negatives unsupported");if(r===h)return t.ONE;if(r===g)return n;let o=t.ONE,l=n;for(;r>h;)r&g&&(o=t.mul(o,l)),l=t.sqr(l),r>>=g;return o}function H(t,n,r=!1){const o=new Array(n.length).fill(r?t.ZERO:void 0),l=n.reduce((d,i,s)=>t.is0(i)?d:(o[s]=d,t.mul(d,i)),t.ONE),f=t.inv(l);return n.reduceRight((d,i,s)=>t.is0(i)?d:(o[s]=t.mul(d,o[s]),t.mul(d,i)),f),o}function N(t,n){const r=(t.ORDER-g)/b,o=t.pow(n,r),l=t.eql(o,t.ONE),f=t.eql(o,t.ZERO),d=t.eql(o,t.neg(t.ONE));if(!l&&!f&&!d)throw new Error("invalid Legendre symbol result");return l?1:f?0:-1}function K(t,n){n!==void 0&&Y.anumber(n);const r=n!==void 0?n:t.toString(2).length,o=Math.ceil(r/8);return{nBitLength:r,nByteLength:o}}function _(t,n,r=!1,o={}){if(t<=h)throw new Error("invalid field: expected ORDER > 0, got "+t);let l,f,d=!1,i;if(typeof n=="object"&&n!=null){if(o.sqrt||r)throw new Error("cannot specify opts in two arguments");const e=n;e.BITS&&(l=e.BITS),e.sqrt&&(f=e.sqrt),typeof e.isLE=="boolean"&&(r=e.isLE),typeof e.modFromBytes=="boolean"&&(d=e.modFromBytes),i=e.allowedLengths}else typeof n=="number"&&(l=n),o.sqrt&&(f=o.sqrt);const{nBitLength:s,nByteLength:u}=K(t,l);if(u>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let w;const a=Object.freeze({ORDER:t,isLE:r,BITS:s,BYTES:u,MASK:v.bitMask(s),ZERO:h,ONE:g,allowedLengths:i,create:e=>q(e,t),isValid:e=>{if(typeof e!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof e);return h<=e&&e<t},is0:e=>e===h,isValidNot0:e=>!a.is0(e)&&a.isValid(e),isOdd:e=>(e&g)===g,neg:e=>q(-e,t),eql:(e,c)=>e===c,sqr:e=>q(e*e,t),add:(e,c)=>q(e+c,t),sub:(e,c)=>q(e-c,t),mul:(e,c)=>q(e*c,t),pow:(e,c)=>C(a,e,c),div:(e,c)=>q(e*y(c,t),t),sqrN:e=>e*e,addN:(e,c)=>e+c,subN:(e,c)=>e-c,mulN:(e,c)=>e*c,inv:e=>y(e,t),sqrt:f||(e=>(w||(w=z(t)),w(a,e))),toBytes:e=>r?v.numberToBytesLE(e,u):v.numberToBytesBE(e,u),fromBytes:(e,c=!0)=>{if(i){if(!i.includes(e.length)||e.length>u)throw new Error("Field.fromBytes: expected "+i+" bytes, got "+e.length);const B=new Uint8Array(u);B.set(e,r?0:B.length-e.length),e=B}if(e.length!==u)throw new Error("Field.fromBytes: expected "+u+" bytes, got "+e.length);let m=r?v.bytesToNumberLE(e):v.bytesToNumberBE(e);if(d&&(m=q(m,t)),!c&&!a.isValid(m))throw new Error("invalid field element: outside of range 0..ORDER");return m},invertBatch:e=>H(a,e),cmov:(e,c,m)=>m?c:e});return Object.freeze(a)}function T(t){if(typeof t!="bigint")throw new Error("field order must be bigint");const n=t.toString(2).length;return Math.ceil(n/8)}function Q(t){const n=T(t);return n+Math.ceil(n/2)}function X(t,n,r=!1){const o=t.length,l=T(n),f=Q(n);if(o<16||o<f||o>1024)throw new Error("expected "+f+"-1024 bytes of input, got "+o);const d=r?v.bytesToNumberLE(t):v.bytesToNumberBE(t),i=q(d,n-g)+g;return r?v.numberToBytesLE(i,l):v.numberToBytesBE(i,l)}exports.Field=_;exports.FpInvertBatch=H;exports.FpLegendre=N;exports.FpPow=C;exports.FpSqrt=z;exports.getFieldBytesLength=T;exports.getMinHashLength=Q;exports.invert=y;exports.mapHashToField=X;exports.mod=q;exports.nLength=K;exports.pow2=U;exports.tonelliShanks=S;exports.validateField=W;
|
package/dist/index282.js
DELETED
|
@@ -1,247 +0,0 @@
|
|
|
1
|
-
import { numberToBytesLE as _, numberToBytesBE as S, bitMask as K, bytesToNumberLE as x, bytesToNumberBE as T, _validateObject as Q } from "./index301.js";
|
|
2
|
-
import { anumber as Y } from "./index287.js";
|
|
3
|
-
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
4
|
-
const a = BigInt(0), g = BigInt(1), B = /* @__PURE__ */ BigInt(2), L = /* @__PURE__ */ BigInt(3), M = /* @__PURE__ */ BigInt(4), A = /* @__PURE__ */ BigInt(5), U = /* @__PURE__ */ BigInt(7), V = /* @__PURE__ */ BigInt(8), k = /* @__PURE__ */ BigInt(9), Z = /* @__PURE__ */ BigInt(16);
|
|
5
|
-
function q(t, n) {
|
|
6
|
-
const r = t % n;
|
|
7
|
-
return r >= a ? r : n + r;
|
|
8
|
-
}
|
|
9
|
-
function F(t, n, r) {
|
|
10
|
-
let o = t;
|
|
11
|
-
for (; n-- > a; )
|
|
12
|
-
o *= o, o %= r;
|
|
13
|
-
return o;
|
|
14
|
-
}
|
|
15
|
-
function y(t, n) {
|
|
16
|
-
if (t === a)
|
|
17
|
-
throw new Error("invert: expected non-zero number");
|
|
18
|
-
if (n <= a)
|
|
19
|
-
throw new Error("invert: expected positive modulus, got " + n);
|
|
20
|
-
let r = q(t, n), o = n, l = a, f = g;
|
|
21
|
-
for (; r !== a; ) {
|
|
22
|
-
const i = o / r, s = o % r, u = l - f * i;
|
|
23
|
-
o = r, r = s, l = f, f = u;
|
|
24
|
-
}
|
|
25
|
-
if (o !== g)
|
|
26
|
-
throw new Error("invert: does not exist");
|
|
27
|
-
return q(l, n);
|
|
28
|
-
}
|
|
29
|
-
function b(t, n, r) {
|
|
30
|
-
if (!t.eql(t.sqr(n), r))
|
|
31
|
-
throw new Error("Cannot find square root");
|
|
32
|
-
}
|
|
33
|
-
function j(t, n) {
|
|
34
|
-
const r = (t.ORDER + g) / M, o = t.pow(n, r);
|
|
35
|
-
return b(t, o, n), o;
|
|
36
|
-
}
|
|
37
|
-
function G(t, n) {
|
|
38
|
-
const r = (t.ORDER - A) / V, o = t.mul(n, B), l = t.pow(o, r), f = t.mul(n, l), d = t.mul(t.mul(f, B), l), i = t.mul(f, t.sub(d, t.ONE));
|
|
39
|
-
return b(t, i, n), i;
|
|
40
|
-
}
|
|
41
|
-
function J(t) {
|
|
42
|
-
const n = C(t), r = z(t), o = r(n, n.neg(n.ONE)), l = r(n, o), f = r(n, n.neg(o)), d = (t + U) / Z;
|
|
43
|
-
return (i, s) => {
|
|
44
|
-
let u = i.pow(s, d), h = i.mul(u, o);
|
|
45
|
-
const w = i.mul(u, l), e = i.mul(u, f), c = i.eql(i.sqr(h), s), m = i.eql(i.sqr(w), s);
|
|
46
|
-
u = i.cmov(u, h, c), h = i.cmov(e, w, m);
|
|
47
|
-
const v = i.eql(i.sqr(h), s), E = i.cmov(u, h, v);
|
|
48
|
-
return b(i, E, s), E;
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
function z(t) {
|
|
52
|
-
if (t < L)
|
|
53
|
-
throw new Error("sqrt is not defined for small field");
|
|
54
|
-
let n = t - g, r = 0;
|
|
55
|
-
for (; n % B === a; )
|
|
56
|
-
n /= B, r++;
|
|
57
|
-
let o = B;
|
|
58
|
-
const l = C(t);
|
|
59
|
-
for (; I(l, o) === 1; )
|
|
60
|
-
if (o++ > 1e3)
|
|
61
|
-
throw new Error("Cannot find square root: probably non-prime P");
|
|
62
|
-
if (r === 1)
|
|
63
|
-
return j;
|
|
64
|
-
let f = l.pow(o, n);
|
|
65
|
-
const d = (n + g) / B;
|
|
66
|
-
return function(s, u) {
|
|
67
|
-
if (s.is0(u))
|
|
68
|
-
return u;
|
|
69
|
-
if (I(s, u) !== 1)
|
|
70
|
-
throw new Error("Cannot find square root");
|
|
71
|
-
let h = r, w = s.mul(s.ONE, f), e = s.pow(u, n), c = s.pow(u, d);
|
|
72
|
-
for (; !s.eql(e, s.ONE); ) {
|
|
73
|
-
if (s.is0(e))
|
|
74
|
-
return s.ZERO;
|
|
75
|
-
let m = 1, v = s.sqr(e);
|
|
76
|
-
for (; !s.eql(v, s.ONE); )
|
|
77
|
-
if (m++, v = s.sqr(v), m === h)
|
|
78
|
-
throw new Error("Cannot find square root");
|
|
79
|
-
const E = g << BigInt(h - m - 1), N = s.pow(w, E);
|
|
80
|
-
h = m, w = s.sqr(N), e = s.mul(e, w), c = s.mul(c, N);
|
|
81
|
-
}
|
|
82
|
-
return c;
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
function O(t) {
|
|
86
|
-
return t % M === L ? j : t % V === A ? G : t % Z === k ? J(t) : z(t);
|
|
87
|
-
}
|
|
88
|
-
const W = [
|
|
89
|
-
"create",
|
|
90
|
-
"isValid",
|
|
91
|
-
"is0",
|
|
92
|
-
"neg",
|
|
93
|
-
"inv",
|
|
94
|
-
"sqrt",
|
|
95
|
-
"sqr",
|
|
96
|
-
"eql",
|
|
97
|
-
"add",
|
|
98
|
-
"sub",
|
|
99
|
-
"mul",
|
|
100
|
-
"pow",
|
|
101
|
-
"div",
|
|
102
|
-
"addN",
|
|
103
|
-
"subN",
|
|
104
|
-
"mulN",
|
|
105
|
-
"sqrN"
|
|
106
|
-
];
|
|
107
|
-
function tt(t) {
|
|
108
|
-
const n = {
|
|
109
|
-
ORDER: "bigint",
|
|
110
|
-
MASK: "bigint",
|
|
111
|
-
BYTES: "number",
|
|
112
|
-
BITS: "number"
|
|
113
|
-
}, r = W.reduce((o, l) => (o[l] = "function", o), n);
|
|
114
|
-
return Q(t, r), t;
|
|
115
|
-
}
|
|
116
|
-
function X(t, n, r) {
|
|
117
|
-
if (r < a)
|
|
118
|
-
throw new Error("invalid exponent, negatives unsupported");
|
|
119
|
-
if (r === a)
|
|
120
|
-
return t.ONE;
|
|
121
|
-
if (r === g)
|
|
122
|
-
return n;
|
|
123
|
-
let o = t.ONE, l = n;
|
|
124
|
-
for (; r > a; )
|
|
125
|
-
r & g && (o = t.mul(o, l)), l = t.sqr(l), r >>= g;
|
|
126
|
-
return o;
|
|
127
|
-
}
|
|
128
|
-
function $(t, n, r = !1) {
|
|
129
|
-
const o = new Array(n.length).fill(r ? t.ZERO : void 0), l = n.reduce((d, i, s) => t.is0(i) ? d : (o[s] = d, t.mul(d, i)), t.ONE), f = t.inv(l);
|
|
130
|
-
return n.reduceRight((d, i, s) => t.is0(i) ? d : (o[s] = t.mul(d, o[s]), t.mul(d, i)), f), o;
|
|
131
|
-
}
|
|
132
|
-
function I(t, n) {
|
|
133
|
-
const r = (t.ORDER - g) / B, o = t.pow(n, r), l = t.eql(o, t.ONE), f = t.eql(o, t.ZERO), d = t.eql(o, t.neg(t.ONE));
|
|
134
|
-
if (!l && !f && !d)
|
|
135
|
-
throw new Error("invalid Legendre symbol result");
|
|
136
|
-
return l ? 1 : f ? 0 : -1;
|
|
137
|
-
}
|
|
138
|
-
function P(t, n) {
|
|
139
|
-
n !== void 0 && Y(n);
|
|
140
|
-
const r = n !== void 0 ? n : t.toString(2).length, o = Math.ceil(r / 8);
|
|
141
|
-
return { nBitLength: r, nByteLength: o };
|
|
142
|
-
}
|
|
143
|
-
function C(t, n, r = !1, o = {}) {
|
|
144
|
-
if (t <= a)
|
|
145
|
-
throw new Error("invalid field: expected ORDER > 0, got " + t);
|
|
146
|
-
let l, f, d = !1, i;
|
|
147
|
-
if (typeof n == "object" && n != null) {
|
|
148
|
-
if (o.sqrt || r)
|
|
149
|
-
throw new Error("cannot specify opts in two arguments");
|
|
150
|
-
const e = n;
|
|
151
|
-
e.BITS && (l = e.BITS), e.sqrt && (f = e.sqrt), typeof e.isLE == "boolean" && (r = e.isLE), typeof e.modFromBytes == "boolean" && (d = e.modFromBytes), i = e.allowedLengths;
|
|
152
|
-
} else
|
|
153
|
-
typeof n == "number" && (l = n), o.sqrt && (f = o.sqrt);
|
|
154
|
-
const { nBitLength: s, nByteLength: u } = P(t, l);
|
|
155
|
-
if (u > 2048)
|
|
156
|
-
throw new Error("invalid field: expected ORDER of <= 2048 bytes");
|
|
157
|
-
let h;
|
|
158
|
-
const w = Object.freeze({
|
|
159
|
-
ORDER: t,
|
|
160
|
-
isLE: r,
|
|
161
|
-
BITS: s,
|
|
162
|
-
BYTES: u,
|
|
163
|
-
MASK: K(s),
|
|
164
|
-
ZERO: a,
|
|
165
|
-
ONE: g,
|
|
166
|
-
allowedLengths: i,
|
|
167
|
-
create: (e) => q(e, t),
|
|
168
|
-
isValid: (e) => {
|
|
169
|
-
if (typeof e != "bigint")
|
|
170
|
-
throw new Error("invalid field element: expected bigint, got " + typeof e);
|
|
171
|
-
return a <= e && e < t;
|
|
172
|
-
},
|
|
173
|
-
is0: (e) => e === a,
|
|
174
|
-
// is valid and invertible
|
|
175
|
-
isValidNot0: (e) => !w.is0(e) && w.isValid(e),
|
|
176
|
-
isOdd: (e) => (e & g) === g,
|
|
177
|
-
neg: (e) => q(-e, t),
|
|
178
|
-
eql: (e, c) => e === c,
|
|
179
|
-
sqr: (e) => q(e * e, t),
|
|
180
|
-
add: (e, c) => q(e + c, t),
|
|
181
|
-
sub: (e, c) => q(e - c, t),
|
|
182
|
-
mul: (e, c) => q(e * c, t),
|
|
183
|
-
pow: (e, c) => X(w, e, c),
|
|
184
|
-
div: (e, c) => q(e * y(c, t), t),
|
|
185
|
-
// Same as above, but doesn't normalize
|
|
186
|
-
sqrN: (e) => e * e,
|
|
187
|
-
addN: (e, c) => e + c,
|
|
188
|
-
subN: (e, c) => e - c,
|
|
189
|
-
mulN: (e, c) => e * c,
|
|
190
|
-
inv: (e) => y(e, t),
|
|
191
|
-
sqrt: f || ((e) => (h || (h = O(t)), h(w, e))),
|
|
192
|
-
toBytes: (e) => r ? _(e, u) : S(e, u),
|
|
193
|
-
fromBytes: (e, c = !0) => {
|
|
194
|
-
if (i) {
|
|
195
|
-
if (!i.includes(e.length) || e.length > u)
|
|
196
|
-
throw new Error("Field.fromBytes: expected " + i + " bytes, got " + e.length);
|
|
197
|
-
const v = new Uint8Array(u);
|
|
198
|
-
v.set(e, r ? 0 : v.length - e.length), e = v;
|
|
199
|
-
}
|
|
200
|
-
if (e.length !== u)
|
|
201
|
-
throw new Error("Field.fromBytes: expected " + u + " bytes, got " + e.length);
|
|
202
|
-
let m = r ? x(e) : T(e);
|
|
203
|
-
if (d && (m = q(m, t)), !c && !w.isValid(m))
|
|
204
|
-
throw new Error("invalid field element: outside of range 0..ORDER");
|
|
205
|
-
return m;
|
|
206
|
-
},
|
|
207
|
-
// TODO: we don't need it here, move out to separate fn
|
|
208
|
-
invertBatch: (e) => $(w, e),
|
|
209
|
-
// We can't move this out because Fp6, Fp12 implement it
|
|
210
|
-
// and it's unclear what to return in there.
|
|
211
|
-
cmov: (e, c, m) => m ? c : e
|
|
212
|
-
});
|
|
213
|
-
return Object.freeze(w);
|
|
214
|
-
}
|
|
215
|
-
function H(t) {
|
|
216
|
-
if (typeof t != "bigint")
|
|
217
|
-
throw new Error("field order must be bigint");
|
|
218
|
-
const n = t.toString(2).length;
|
|
219
|
-
return Math.ceil(n / 8);
|
|
220
|
-
}
|
|
221
|
-
function D(t) {
|
|
222
|
-
const n = H(t);
|
|
223
|
-
return n + Math.ceil(n / 2);
|
|
224
|
-
}
|
|
225
|
-
function et(t, n, r = !1) {
|
|
226
|
-
const o = t.length, l = H(n), f = D(n);
|
|
227
|
-
if (o < 16 || o < f || o > 1024)
|
|
228
|
-
throw new Error("expected " + f + "-1024 bytes of input, got " + o);
|
|
229
|
-
const d = r ? x(t) : T(t), i = q(d, n - g) + g;
|
|
230
|
-
return r ? _(i, l) : S(i, l);
|
|
231
|
-
}
|
|
232
|
-
export {
|
|
233
|
-
C as Field,
|
|
234
|
-
$ as FpInvertBatch,
|
|
235
|
-
I as FpLegendre,
|
|
236
|
-
X as FpPow,
|
|
237
|
-
O as FpSqrt,
|
|
238
|
-
H as getFieldBytesLength,
|
|
239
|
-
D as getMinHashLength,
|
|
240
|
-
y as invert,
|
|
241
|
-
et as mapHashToField,
|
|
242
|
-
q as mod,
|
|
243
|
-
P as nLength,
|
|
244
|
-
F as pow2,
|
|
245
|
-
z as tonelliShanks,
|
|
246
|
-
tt as validateField
|
|
247
|
-
};
|
package/dist/index283.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index154.cjs"),r=require("./index156.cjs"),c=e=>r.keccak256(t.toBytes(e));function n(e){return c(e)}exports.hashSignature=n;
|
package/dist/index283.js
DELETED
package/dist/index284.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index285.cjs"),n=require("./index264.cjs"),i=t=>{const r=typeof t=="string"?t:n.formatAbiItem(t);return e.normalizeSignature(r)};exports.toSignature=i;
|
package/dist/index284.js
DELETED
package/dist/index285.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index41.cjs");function a(r){let l=!0,i="",o=0,t="",u=!1;for(let n=0;n<r.length;n++){const e=r[n];if(["(",")",","].includes(e)&&(l=!0),e==="("&&o++,e===")"&&o--,!!l){if(o===0){if(e===" "&&["event","function",""].includes(t))t="";else if(t+=e,e===")"){u=!0;break}continue}if(e===" "){r[n-1]!==","&&i!==","&&i!==",("&&(i="",l=!1);continue}t+=e,i+=e}}if(!u)throw new f.BaseError("Unable to normalize signature.");return t}exports.normalizeSignature=a;
|
package/dist/index285.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { BaseError as u } from "./index41.js";
|
|
2
|
-
function a(r) {
|
|
3
|
-
let l = !0, i = "", f = 0, t = "", o = !1;
|
|
4
|
-
for (let n = 0; n < r.length; n++) {
|
|
5
|
-
const e = r[n];
|
|
6
|
-
if (["(", ")", ","].includes(e) && (l = !0), e === "(" && f++, e === ")" && f--, !!l) {
|
|
7
|
-
if (f === 0) {
|
|
8
|
-
if (e === " " && ["event", "function", ""].includes(t))
|
|
9
|
-
t = "";
|
|
10
|
-
else if (t += e, e === ")") {
|
|
11
|
-
o = !0;
|
|
12
|
-
break;
|
|
13
|
-
}
|
|
14
|
-
continue;
|
|
15
|
-
}
|
|
16
|
-
if (e === " ") {
|
|
17
|
-
r[n - 1] !== "," && i !== "," && i !== ",(" && (i = "", l = !1);
|
|
18
|
-
continue;
|
|
19
|
-
}
|
|
20
|
-
t += e, i += e;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
if (!o)
|
|
24
|
-
throw new u("Unable to normalize signature.");
|
|
25
|
-
return t;
|
|
26
|
-
}
|
|
27
|
-
export {
|
|
28
|
-
a as normalizeSignature
|
|
29
|
-
};
|
package/dist/index286.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=BigInt(2**32-1),c=BigInt(32);function u(t,o=!1){return o?{h:Number(t&l),l:Number(t>>c&l)}:{h:Number(t>>c&l)|0,l:Number(t&l)|0}}function B(t,o=!1){const r=t.length;let n=new Uint32Array(r),i=new Uint32Array(r);for(let e=0;e<r;e++){const{h:f,l:s}=u(t[e],o);[n[e],i[e]]=[f,s]}return[n,i]}const g=(t,o,r)=>t<<r|o>>>32-r,m=(t,o,r)=>o<<r|t>>>32-r,S=(t,o,r)=>o<<r-32|t>>>64-r,a=(t,o,r)=>t<<r-32|o>>>64-r;exports.fromBig=u;exports.rotlBH=S;exports.rotlBL=a;exports.rotlSH=g;exports.rotlSL=m;exports.split=B;
|
package/dist/index286.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
const o = /* @__PURE__ */ BigInt(4294967295), i = /* @__PURE__ */ BigInt(32);
|
|
2
|
-
function s(t, r = !1) {
|
|
3
|
-
return r ? { h: Number(t & o), l: Number(t >> i & o) } : { h: Number(t >> i & o) | 0, l: Number(t & o) | 0 };
|
|
4
|
-
}
|
|
5
|
-
function h(t, r = !1) {
|
|
6
|
-
const n = t.length;
|
|
7
|
-
let l = new Uint32Array(n), c = new Uint32Array(n);
|
|
8
|
-
for (let e = 0; e < n; e++) {
|
|
9
|
-
const { h: u, l: f } = s(t[e], r);
|
|
10
|
-
[l[e], c[e]] = [u, f];
|
|
11
|
-
}
|
|
12
|
-
return [l, c];
|
|
13
|
-
}
|
|
14
|
-
const m = (t, r, n) => t << n | r >>> 32 - n, A = (t, r, n) => r << n | t >>> 32 - n, B = (t, r, n) => r << n - 32 | t >>> 64 - n, a = (t, r, n) => t << n - 32 | r >>> 64 - n;
|
|
15
|
-
export {
|
|
16
|
-
s as fromBig,
|
|
17
|
-
B as rotlBH,
|
|
18
|
-
a as rotlBL,
|
|
19
|
-
m as rotlSH,
|
|
20
|
-
A as rotlSL,
|
|
21
|
-
h as split
|
|
22
|
-
};
|
package/dist/index287.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index296.cjs");/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function p(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"}function s(t){if(!Number.isSafeInteger(t)||t<0)throw new Error("positive integer expected, got "+t)}function c(t,...e){if(!p(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error("Uint8Array expected of length "+e+", got length="+t.length)}function m(t){if(typeof t!="function"||typeof t.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");s(t.outputLen),s(t.blockLen)}function B(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function E(t,e){c(t);const n=e.outputLen;if(t.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}function H(t){return new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4))}function U(...t){for(let e=0;e<t.length;e++)t[e].fill(0)}function L(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function S(t,e){return t<<32-e|t>>>e}const h=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function w(t){return t<<24&4278190080|t<<8&16711680|t>>>8&65280|t>>>24&255}function g(t){for(let e=0;e<t.length;e++)t[e]=w(t[e]);return t}const T=h?t=>t:g,d=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",V=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function _(t){if(c(t),d)return t.toHex();let e="";for(let n=0;n<t.length;n++)e+=V[t[n]];return e}const f={_0:48,_9:57,A:65,F:70,a:97,f:102};function l(t){if(t>=f._0&&t<=f._9)return t-f._0;if(t>=f.A&&t<=f.F)return t-(f.A-10);if(t>=f.a&&t<=f.f)return t-(f.a-10)}function I(t){if(typeof t!="string")throw new Error("hex string expected, got "+typeof t);if(d)return Uint8Array.fromHex(t);const e=t.length,n=e/2;if(e%2)throw new Error("hex string expected, got unpadded hex of length "+e);const r=new Uint8Array(n);for(let o=0,i=0;o<n;o++,i+=2){const a=l(t.charCodeAt(i)),y=l(t.charCodeAt(i+1));if(a===void 0||y===void 0){const A=t[i]+t[i+1];throw new Error('hex string expected, got non-hex character "'+A+'" at index '+i)}r[o]=a*16+y}return r}function x(t){if(typeof t!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(t))}function b(t){return typeof t=="string"&&(t=x(t)),c(t),t}function k(...t){let e=0;for(let r=0;r<t.length;r++){const o=t[r];c(o),e+=o.length}const n=new Uint8Array(e);for(let r=0,o=0;r<t.length;r++){const i=t[r];n.set(i,o),o+=i.length}return n}class O{}function R(t){const e=r=>t().update(b(r)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function v(t=32){if(u.crypto&&typeof u.crypto.getRandomValues=="function")return u.crypto.getRandomValues(new Uint8Array(t));if(u.crypto&&typeof u.crypto.randomBytes=="function")return Uint8Array.from(u.crypto.randomBytes(t));throw new Error("crypto.getRandomValues must be defined")}exports.Hash=O;exports.abytes=c;exports.aexists=B;exports.ahash=m;exports.anumber=s;exports.aoutput=E;exports.byteSwap=w;exports.byteSwap32=g;exports.bytesToHex=_;exports.clean=U;exports.concatBytes=k;exports.createHasher=R;exports.createView=L;exports.hexToBytes=I;exports.isBytes=p;exports.isLE=h;exports.randomBytes=v;exports.rotr=S;exports.swap32IfBE=T;exports.toBytes=b;exports.u32=H;exports.utf8ToBytes=x;
|