@dodoex/wallet-web3 0.0.43-0 → 0.0.43-11

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 (141) hide show
  1. package/dist/__tslib-06bd234c.js +1 -0
  2. package/dist/alchemy-provider-5870b6fa-fb56363c.js +1 -0
  3. package/dist/alchemy-websocket-provider-213da986-36fd7da5.js +1 -0
  4. package/dist/blocto-302ac4a1.js +1 -0
  5. package/dist/ccip-d20ab6e3.js +1 -0
  6. package/dist/cjs/__tslib-f2fe09d3.cjs +1 -0
  7. package/dist/cjs/alchemy-provider-5870b6fa-ee0f3cfa.cjs +1 -0
  8. package/dist/cjs/alchemy-websocket-provider-213da986-1066a5aa.cjs +1 -0
  9. package/dist/cjs/blocto-746c6015.cjs +1 -0
  10. package/dist/cjs/ccip-f5dc259d.cjs +1 -0
  11. package/dist/cjs/{draggabilly-2a4e5cff.cjs → draggabilly-0783ec0d.cjs} +1 -1
  12. package/dist/cjs/ethers-5745dd80.cjs +1 -0
  13. package/dist/cjs/id-ae481b99.cjs +1 -0
  14. package/dist/cjs/{index-f78f51c3.cjs → index-00bde96a.cjs} +1 -1
  15. package/dist/cjs/{index-eb09e54d.cjs → index-35edc6a0.cjs} +1 -1
  16. package/dist/cjs/index-3c269acf.cjs +1 -0
  17. package/dist/cjs/index-71175faa.cjs +15 -0
  18. package/dist/cjs/{index-38a6dc28.cjs → index-799c908d.cjs} +3 -3
  19. package/dist/cjs/{index-df8e5839.cjs → index-9f2a69d5.cjs} +1 -1
  20. package/dist/{index-c8e896d5.js → cjs/index-a71533a7.cjs} +2 -2
  21. package/dist/cjs/index-ab339518.cjs +28 -0
  22. package/dist/cjs/index-b1b1a1c0.cjs +1 -0
  23. package/dist/cjs/index-bf8eb28f.cjs +1 -0
  24. package/dist/cjs/index-c2dcf412.cjs +1 -0
  25. package/dist/cjs/index-d1687537.cjs +6 -0
  26. package/dist/cjs/index-e47a43ca.cjs +1 -0
  27. package/dist/cjs/index.cjs +1 -1
  28. package/dist/cjs/index.es-e160b6dc.cjs +9 -0
  29. package/dist/cjs/{interface-a109a0d8.cjs → interface-ff181c7b.cjs} +1 -1
  30. package/dist/cjs/{lib-typedarrays-06843b62.cjs → lib-typedarrays-c64f11e6.cjs} +1 -1
  31. package/dist/cjs/{portis-92310876.cjs → portis-58a24850.cjs} +1 -1
  32. package/dist/cjs/provider-a6c9fbfa.cjs +1 -0
  33. package/dist/cjs/providers/connector/alchemy/index.d.ts +136 -0
  34. package/dist/cjs/providers/connector/alchemy/provider.d.ts +138 -0
  35. package/dist/cjs/providers/connector/alchemy/signer.d.ts +23 -0
  36. package/dist/cjs/providers/connector/index.d.ts +175 -43
  37. package/dist/cjs/providers/connector/ledgerUSB/index.d.ts +43 -43
  38. package/dist/cjs/providers/connector/ledgerUSB/provider.d.ts +10 -10
  39. package/dist/cjs/providers/connector/types.d.ts +4 -0
  40. package/dist/cjs/providers/connector/uniPass/index.d.ts +43 -43
  41. package/dist/cjs/providers/connector/uniPass/provider.d.ts +10 -10
  42. package/dist/cjs/providers/wallets/index.d.ts +2 -1
  43. package/dist/cjs/providers/wallets/standalone.d.ts +1 -0
  44. package/dist/cjs/providers/wallets/types.d.ts +1 -0
  45. package/dist/cjs/rainbow-802a8ce7.cjs +1 -0
  46. package/dist/cjs/{sha224-a9b32339.cjs → sha224-5daf1fab.cjs} +1 -1
  47. package/dist/cjs/sha256-26039255.cjs +1 -0
  48. package/dist/cjs/typed-data-357b9230.cjs +1 -0
  49. package/dist/cjs/uAuth-060257f4.cjs +1 -0
  50. package/dist/cjs/walletConnect-df2b806a.cjs +1 -0
  51. package/dist/cjs/walletLink-67ccc536.cjs +3 -0
  52. package/dist/{draggabilly-12ef51c6.js → draggabilly-5d13c53d.js} +1 -1
  53. package/dist/ethers-f6ce878f.js +1 -0
  54. package/dist/id-3106c08d.js +1 -0
  55. package/dist/{index-2e23cc8c.js → index-0204ed27.js} +2 -2
  56. package/dist/index-1ad3bb4e.js +1 -0
  57. package/dist/{cjs/index-afa45043.cjs → index-36d29bc1.js} +2 -2
  58. package/dist/{index-9b0e9b64.js → index-444d59a7.js} +3 -3
  59. package/dist/index-4b5fe6aa.js +1 -0
  60. package/dist/{index-0ee5ef8d.js → index-65d96278.js} +1 -1
  61. package/dist/index-935f8a62.js +1 -0
  62. package/dist/index-96e86c92.js +28 -0
  63. package/dist/index-98a11c40.js +1 -0
  64. package/dist/index-a24668b1.js +1 -0
  65. package/dist/index-a74d13e3.js +1 -0
  66. package/dist/index-ce22ada5.js +15 -0
  67. package/dist/{index-e0d3617a.js → index-f08d6a6b.js} +1 -1
  68. package/dist/index.es-759e0653.js +9 -0
  69. package/dist/index.js +1 -1
  70. package/dist/{interface-a6f33bb4.js → interface-cd906eb2.js} +1 -1
  71. package/dist/{lib-typedarrays-60e6aa6b.js → lib-typedarrays-4b6a33c3.js} +1 -1
  72. package/dist/{portis-19afe2ea.js → portis-910273d9.js} +1 -1
  73. package/dist/provider-96d7dc65.js +1 -0
  74. package/dist/providers/connector/alchemy/index.d.ts +136 -0
  75. package/dist/providers/connector/alchemy/provider.d.ts +138 -0
  76. package/dist/providers/connector/alchemy/signer.d.ts +23 -0
  77. package/dist/providers/connector/index.d.ts +175 -43
  78. package/dist/providers/connector/ledgerUSB/index.d.ts +43 -43
  79. package/dist/providers/connector/ledgerUSB/provider.d.ts +10 -10
  80. package/dist/providers/connector/types.d.ts +4 -0
  81. package/dist/providers/connector/uniPass/index.d.ts +43 -43
  82. package/dist/providers/connector/uniPass/provider.d.ts +10 -10
  83. package/dist/providers/wallets/index.d.ts +2 -1
  84. package/dist/providers/wallets/standalone.d.ts +1 -0
  85. package/dist/providers/wallets/types.d.ts +1 -0
  86. package/dist/rainbow-ee36577e.js +1 -0
  87. package/dist/{sha224-fc7a621b.js → sha224-0615a638.js} +1 -1
  88. package/dist/sha256-0d6a48ad.js +1 -0
  89. package/dist/typed-data-d27a7991.js +1 -0
  90. package/dist/uAuth-46c8105c.js +1 -0
  91. package/dist/walletConnect-3f236791.js +1 -0
  92. package/dist/walletLink-59597120.js +3 -0
  93. package/package.json +11 -4
  94. package/dist/DefaultJsonRpcProvider-d03291cf.js +0 -1
  95. package/dist/__node-resolve_empty-7cc52421.js +0 -1
  96. package/dist/__tslib-c18c68ca.js +0 -1
  97. package/dist/blocto-4f268393.js +0 -1
  98. package/dist/bn-cd5d9c7e.js +0 -1
  99. package/dist/browser-ponyfill-0d656c3b.js +0 -1
  100. package/dist/cjs/DefaultJsonRpcProvider-fe0308e2.cjs +0 -1
  101. package/dist/cjs/__node-resolve_empty-8a1ddcdf.cjs +0 -1
  102. package/dist/cjs/__tslib-eb9eb2b7.cjs +0 -1
  103. package/dist/cjs/blocto-d45a7d82.cjs +0 -1
  104. package/dist/cjs/bn-94c30d2e.cjs +0 -1
  105. package/dist/cjs/browser-ponyfill-b3718e5b.cjs +0 -1
  106. package/dist/cjs/ethers-f94c032f.cjs +0 -1
  107. package/dist/cjs/id-52024487.cjs +0 -1
  108. package/dist/cjs/index-0740e7fe.cjs +0 -1
  109. package/dist/cjs/index-2eb62a28.cjs +0 -15
  110. package/dist/cjs/index-8a11ae09.cjs +0 -1
  111. package/dist/cjs/index-8cd59ca8.cjs +0 -1
  112. package/dist/cjs/index-9dc5efa7.cjs +0 -1
  113. package/dist/cjs/index-d886349d.cjs +0 -9
  114. package/dist/cjs/index-dd475117.cjs +0 -1
  115. package/dist/cjs/index-e0461bd6.cjs +0 -6
  116. package/dist/cjs/index-f6a4cadd.cjs +0 -1
  117. package/dist/cjs/index.es-e2c97fd8.cjs +0 -9
  118. package/dist/cjs/provider-a2e5d503.cjs +0 -1
  119. package/dist/cjs/rainbow-8c27c228.cjs +0 -1
  120. package/dist/cjs/sha256-2e691c21.cjs +0 -1
  121. package/dist/cjs/uAuth-323e7587.cjs +0 -1
  122. package/dist/cjs/walletConnect-39af2510.cjs +0 -1
  123. package/dist/cjs/walletLink-cb148ef1.cjs +0 -3
  124. package/dist/ethers-20b88c06.js +0 -1
  125. package/dist/id-5fb9d202.js +0 -1
  126. package/dist/index-198785fa.js +0 -1
  127. package/dist/index-53bc60c6.js +0 -1
  128. package/dist/index-6e0697ab.js +0 -9
  129. package/dist/index-8d5315df.js +0 -1
  130. package/dist/index-a35d2562.js +0 -15
  131. package/dist/index-d00482ad.js +0 -1
  132. package/dist/index-d1fdba35.js +0 -1
  133. package/dist/index-d605fbc1.js +0 -1
  134. package/dist/index-ec6e039e.js +0 -1
  135. package/dist/index.es-9e9bc056.js +0 -9
  136. package/dist/provider-6f989b4e.js +0 -1
  137. package/dist/rainbow-463c6dc0.js +0 -1
  138. package/dist/sha256-3d0dbba6.js +0 -1
  139. package/dist/uAuth-d42a0af6.js +0 -1
  140. package/dist/walletConnect-380a5d1c.js +0 -1
  141. package/dist/walletLink-b1651399.js +0 -3
@@ -1 +0,0 @@
1
- import{_ as e}from"./index-6e0697ab.js";import"@ethersproject/providers";import"zustand";import"events";import"@ethersproject/address";import"@ethersproject/constants";import"@ethersproject/contracts";import"@ethersproject/properties";import"@ethersproject/transactions";import"@ethersproject/bytes";const t="dapp-inpage-integration",i="openblock-content-integration",n=["https://cocoswap.com","https://app.openocean.finance"],o=["https://oec.cocoswap.com"];class s{constructor(){console.log("start initialize openblockinpage provider"),this.callBackList={},this.eventListener={},this.isMetaMask=!0,this.isOpenBlock=!0,this.chainId=null,this.networkVersion=null,this.selectedAddress=null,this.request=this.request.bind(this),this.send=this.send.bind(this),this.sendAsync=this.sendAsync.bind(this),this.on=this.on.bind(this),this.isConnected=this.isConnected.bind(this),this.enable=this.enable.bind(this),this._metamask=this._getExperimentalApi(),this._initInpageListener(),this.getProviderData()}getProviderData(){var t;return e(this,void 0,void 0,(function*(){const e=yield this.request("metamask_getProviderState");this.chainId=null==e?void 0:e.chainId,this.networkVersion=null==e?void 0:e.networkVersion,this.selectedAddress=null===(t=null==e?void 0:e.accounts)||void 0===t?void 0:t[0]}))}request(t){return e(this,void 0,void 0,(function*(){if("eth_requestAccounts"===t.method){const e=yield this._hookRequest("eth_accounts");if(e.length)return new Promise((t=>t(e)))}return this._hookRequest(t)}))}send(...t){return e(this,void 0,void 0,(function*(){if("function"!=typeof t[1])return"string"==typeof t[0]?this.request({method:t[0],params:t[1]}):1===t.length?this.request(t):void 0;this.sendAsync(t[0],t[1])}))}sendAsync(...t){return e(this,void 0,void 0,(function*(){const e={method:t[0].method,params:t[0].params},i=t[0].id;this.request(e).then((e=>{t[1](null,{id:i,jsonrpc:"2.0",result:e})})).catch((e=>{t[1](null,{id:i,jsonrpc:"2.0",error:e})}))}))}isConnected(){return!0}enable(){return e(this,void 0,void 0,(function*(){const e=yield this._hookRequest("eth_accounts");return e.length?new Promise((t=>t(e))):this.request({method:"eth_requestAccounts"})}))}on(e,t){"string"==typeof e&&"function"==typeof t&&(this.eventListener[e]&&this.eventListener[e].length>5||(this.eventListener[e]?(this.eventListener[e].push(t),this.eventListener[e]=Array.from(new Set(this.eventListener[e]))):this.eventListener[e]||(this.eventListener=Object.assign(Object.assign({},this.eventListener),{[e]:[t]})),this._registerEvent(e)))}removeListener(){}_initInpageListener(){window.addEventListener("message",(e=>{var i,n,o;if(e.data.target!==t)return;const s=null===(o=null===(n=null===(i=e.data)||void 0===i?void 0:i.value)||void 0===n?void 0:n.data)||void 0===o?void 0:o.mark;s&&("call_method"===s.type?this._handleNormalMethod(s,e):"register_event"===s.type&&this._handleEventMethod(s,e))}),!1)}_handleNormalMethod(e,t){var i,n,o,s,r;(null===(i=t.data.value.data)||void 0===i?void 0:i.error)?null===(n=this.callBackList[e.id])||void 0===n||n.reject(null===(o=t.data.value.data)||void 0===o?void 0:o.error):null===(s=this.callBackList[e.id])||void 0===s||s.resolve(null===(r=t.data.value.data)||void 0===r?void 0:r.result),delete this.callBackList[e.id]}_handleEventMethod(e,t){var i,s,r,d,a,h,l;const c=null===(d=null===(r=null===(s=null===(i=t.data)||void 0===i?void 0:i.value)||void 0===s?void 0:s.data)||void 0===r?void 0:r.mark)||void 0===d?void 0:d.eventName,u=null===(l=null===(h=null===(a=t.data)||void 0===a?void 0:a.value)||void 0===h?void 0:h.data)||void 0===l?void 0:l.params;if(c){const e=this.eventListener[c];if(!e)return void("https://app.openocean.finance"===window.location.origin&&window.location.reload());e.forEach((e=>{"chainChanged"===c&&(this.chainId=u,this.networkVersion=Number(u)),o.includes(window.location.origin)&&"chainChanged"===c||(n.includes(window.location.origin)?window.location.reload():e(u))}))}}_hookRequest(e){return new Promise(((n,o)=>{const s=(()=>{function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return e()+e()+e()+e()+e()+e()+e()+e()})();"string"==typeof e&&(e={method:e}),e=Object.assign(Object.assign({},e),{mark:{id:s,method:e.method,type:"call_method"}}),window.parent.postMessage({from:t,target:i,data:e},"*"),this.callBackList[s]={resolve:n,reject:o}}))}_registerEvent(e){const n={mark:{eventName:e,type:"register_event"},eventName:e};window.parent.postMessage({from:t,target:i,data:n},"*")}_getExperimentalApi(){return new Proxy({isUnlocked:()=>new Promise((e=>e(!0)))},{get:(e,t,...i)=>Reflect.get(e,t,...i)})}}function r(){var e;if(null===(e=window.obethereum)||void 0===e?void 0:e.isOpenBlock)return window.obethereum;let t=new s;t=new Proxy(t,{deleteProperty:()=>!0});try{Object.defineProperty(window,"obethereum",{set(e){console.log("set ethereum",e)},get:()=>t})}catch(e){console.log("initializeProvider error",e),window.obethereum=t}return window.web3=Object.assign({},window.web3),window.web3.currentProvider=t,window.dispatchEvent(new Event("ethereum#initialized")),t}export{r as default};
@@ -1 +0,0 @@
1
- import{_ as e,f as o,h as t,d as n}from"./index-6e0697ab.js";import{EthereumProvider as r}from"./index.es-9e9bc056.js";import"@ethersproject/address";import"@ethersproject/providers";import"zustand";import"events";import"@ethersproject/constants";import"@ethersproject/contracts";import"@ethersproject/properties";import"@ethersproject/transactions";import"@ethersproject/bytes";import"./_commonjs-dynamic-modules-7cfc9805.js";import"./__node-resolve_empty-7cc52421.js";import"./__tslib-c18c68ca.js";import"./browser-ponyfill-0d656c3b.js";function c({chainId:c,rpcUrl:i,rpc:s,walletConnectParams:a,darkMode:d},p){return e(this,void 0,void 0,(function*(){let l,m,h="wss://relay.walletconnect.com",u=!0;a&&(h=a.bridge||h,u=void 0!==a.qrcode?a.qrcode:u,a.infuraId,m=a.qrModalOptions||void 0),s?l=s:c&&i&&(l={[c]:i});const b=o(),j=yield r.init({projectId:"59e050d1f27ed617e65bb9637c9498d6",chains:c?[c]:[],showQrModal:!b,rpcMap:l,qrModalOptions:Object.assign({themeMode:d?"dark":"light"},m)});return j.on("display_uri",(e=>{(null==m?void 0:m.openCallback)&&m.openCallback(e)})),j.on("connect",p.connect),j.on("disconnect",(e=>{p.disconnect(e),p.accountsChanged([])})),j.on("accountsChanged",p.accountsChanged),j.on("chainChanged",p.chainChanged),j.on("message",(({type:e,data:o})=>p.message(e,o))),new Promise((o=>e(this,void 0,void 0,(function*(){b?(j.once("display_uri",(e=>{let r=e;t()&&(r=`rainbow://wc?uri=${encodeURIComponent(e)}&connector=rainbowkit`),window.location.href=r,o(n(j))})),j.enable()):(yield j.enable(),o(n(j)))}))))}))}export{c as default};
@@ -1 +0,0 @@
1
- import{c as t}from"./index-6e0697ab.js";import{c as n}from"./_commonjs-dynamic-modules-7cfc9805.js";import{r}from"./__node-resolve_empty-7cc52421.js";var e,i={exports:{}};function o(){return e||(e=1,i.exports=(o=o||function(e,i){var o;if("undefined"!=typeof window&&window.crypto&&(o=window.crypto),"undefined"!=typeof self&&self.crypto&&(o=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(o=globalThis.crypto),!o&&"undefined"!=typeof window&&window.msCrypto&&(o=window.msCrypto),!o&&void 0!==t&&t.crypto&&(o=t.crypto),!o&&"function"==typeof n)try{o=r}catch(t){}var s=function(){if(o){if("function"==typeof o.getRandomValues)try{return o.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof o.randomBytes)try{return o.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function t(){}return function(n){var r;return t.prototype=n,r=new t,t.prototype=null,r}}(),c={},f=c.lib={},u=f.Base={extend:function(t){var n=a(this);return t&&n.mixIn(t),n.hasOwnProperty("init")&&this.init!==n.init||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var n in t)t.hasOwnProperty(n)&&(this[n]=t[n]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},h=f.WordArray=u.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=i?n:4*t.length},toString:function(t){return(t||d).stringify(this)},concat:function(t){var n=this.words,r=t.words,e=this.sigBytes,i=t.sigBytes;if(this.clamp(),e%4)for(var o=0;o<i;o++){var s=r[o>>>2]>>>24-o%4*8&255;n[e+o>>>2]|=s<<24-(e+o)%4*8}else for(var a=0;a<i;a+=4)n[e+a>>>2]=r[a>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var t=u.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var n=[],r=0;r<t;r+=4)n.push(s());return new h.init(n,t)}}),p=c.enc={},d=p.Hex={stringify:function(t){for(var n=t.words,r=t.sigBytes,e=[],i=0;i<r;i++){var o=n[i>>>2]>>>24-i%4*8&255;e.push((o>>>4).toString(16)),e.push((15&o).toString(16))}return e.join("")},parse:function(t){for(var n=t.length,r=[],e=0;e<n;e+=2)r[e>>>3]|=parseInt(t.substr(e,2),16)<<24-e%8*4;return new h.init(r,n/2)}},l=p.Latin1={stringify:function(t){for(var n=t.words,r=t.sigBytes,e=[],i=0;i<r;i++){var o=n[i>>>2]>>>24-i%4*8&255;e.push(String.fromCharCode(o))}return e.join("")},parse:function(t){for(var n=t.length,r=[],e=0;e<n;e++)r[e>>>2]|=(255&t.charCodeAt(e))<<24-e%4*8;return new h.init(r,n)}},y=p.Utf8={stringify:function(t){try{return decodeURIComponent(escape(l.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return l.parse(unescape(encodeURIComponent(t)))}},g=f.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new h.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=y.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(t){var n,r=this._data,i=r.words,o=r.sigBytes,s=this.blockSize,a=o/(4*s),c=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*s,f=e.min(4*c,o);if(c){for(var u=0;u<c;u+=s)this._doProcessBlock(i,u);n=i.splice(0,c),r.sigBytes-=f}return new h.init(n,f)},clone:function(){var t=u.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});f.Hasher=g.extend({cfg:u.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){g.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(n,r){return new t.init(r).finalize(n)}},_createHmacHelper:function(t){return function(n,r){return new w.HMAC.init(t,r).finalize(n)}}});var w=c.algo={};return c}(Math),o)),i.exports;var o}var s,a={exports:{}};function c(){return s?a.exports:(s=1,a.exports=(t=o(),function(n){var r=t,e=r.lib,i=e.WordArray,o=e.Hasher,s=r.algo,a=[],c=[];!function(){function t(t){for(var r=n.sqrt(t),e=2;e<=r;e++)if(!(t%e))return!1;return!0}function r(t){return 4294967296*(t-(0|t))|0}for(var e=2,i=0;i<64;)t(e)&&(i<8&&(a[i]=r(n.pow(e,.5))),c[i]=r(n.pow(e,1/3)),i++),e++}();var f=[],u=s.SHA256=o.extend({_doReset:function(){this._hash=new i.init(a.slice(0))},_doProcessBlock:function(t,n){for(var r=this._hash.words,e=r[0],i=r[1],o=r[2],s=r[3],a=r[4],u=r[5],h=r[6],p=r[7],d=0;d<64;d++){if(d<16)f[d]=0|t[n+d];else{var l=f[d-15],y=(l<<25|l>>>7)^(l<<14|l>>>18)^l>>>3,g=f[d-2],w=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;f[d]=y+f[d-7]+w+f[d-16]}var v=e&i^e&o^i&o,m=(e<<30|e>>>2)^(e<<19|e>>>13)^(e<<10|e>>>22),_=p+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&u^~a&h)+c[d]+f[d];p=h,h=u,u=a,a=s+_|0,s=o,o=i,i=e,e=_+(m+v)|0}r[0]=r[0]+e|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+s|0,r[4]=r[4]+a|0,r[5]=r[5]+u|0,r[6]=r[6]+h|0,r[7]=r[7]+p|0},_doFinalize:function(){var t=this._data,r=t.words,e=8*this._nDataBytes,i=8*t.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=n.floor(e/4294967296),r[15+(i+64>>>9<<4)]=e,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});r.SHA256=o._createHelper(u),r.HmacSHA256=o._createHmacHelper(u)}(Math),t.SHA256));var t}export{c as a,o as r};