-
Notifications
You must be signed in to change notification settings - Fork 0
/
33.316eaed88922d39a54d4.js
1 lines (1 loc) · 43.4 KB
/
33.316eaed88922d39a54d4.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[33],{"+85N":function(e,t,r){"use strict";(function(e){var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,u){function i(e){try{c(n.next(e))}catch(t){u(t)}}function a(e){try{c(n.throw(e))}catch(t){u(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(i,a)}c((n=n.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var r,n,o,u,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function a(u){return function(a){return function(u){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,n=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(a){u=[6,a],n=0}finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}},a=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=r("+qE3"),l=c(r("fZJM")),d=c(r("vUa2")),f=c(r("2hAF")),h=r("eIIK"),p="Air Gaped Device",g=function(){return u(void 0,void 0,void 0,function(){var e,t,r,n,o,u,a;return i(this,function(i){switch(i.label){case 0:return[4,f.default.read({title:"Sync Cobo Vault",description:"Please click 'Sync' in Cobo Vault and scan the QR code displayed later"})];case 1:if(e=i.sent(),r=e.result,"json"===(t=e.type)){if(n=JSON.parse(r),u=n.xpub,a=n.path,(o=n.xfp)&&u&&a)return[2,{xfp:o,xpub:u,hdPath:a}]}else if("none"===t)throw new Error("Reading canceled");throw new Error("Invalid qrcode")}})})},v=function(t){function r(e){var r=t.call(this)||this;return r.xfp="",r.xpub="",r.hdPath="",r.page=0,r.perPage=5,r.type=p,r.accounts=[],r.currentAccount=0,r.paths={},r.latestAccount=0,r.deserialize(e),r}return o(r,t),r.getKeyring=function(){return u(this,void 0,void 0,function(){var e;return i(this,function(t){switch(t.label){case 0:return[4,g()];case 1:return[2,new r({xfp:(e=t.sent()).xfp,xpub:e.xpub,hdPath:e.hdPath,perPage:5,page:0,accounts:[],currentAccount:0,paths:{}})]}})})},r.getEmptyKeyring=function(){return new r({xfp:"",xpub:"",hdPath:"",perPage:5,page:0,accounts:[],currentAccount:0,paths:{}})},r.prototype.readKeyring=function(){return u(this,void 0,void 0,function(){var e,t,r;return i(this,function(n){switch(n.label){case 0:return[4,g()];case 1:return e=n.sent(),t=e.xpub,r=e.hdPath,this.xfp=e.xfp,this.xpub=t,this.hdPath=r,[2]}})})},r.prototype.checkKeyring=function(){if(!this.xfp||!this.xpub||!this.hdPath)throw new Error("keyring not fulfilled, please call function `readKeyring` firstly")},r.prototype.serialize=function(){return Promise.resolve({xfp:this.xfp,xpub:this.xpub,hdPath:this.hdPath,accounts:this.accounts,currentAccount:this.currentAccount,page:this.page,perPage:this.perPage,paths:this.paths})},r.prototype.deserialize=function(e){this.xfp=e.xfp,this.xpub=e.xpub,this.hdPath=e.hdPath,this.accounts=e.accounts,this.currentAccount=e.currentAccount,this.page=e.page,this.perPage=e.perPage,this.paths=e.paths},r.prototype.setCurrentAccount=function(e){this.currentAccount=e},r.prototype.getCurrentAccount=function(){return this.currentAccount},r.prototype.getCurrentAddress=function(){return this.accounts[this.currentAccount]},r.prototype.addAccounts=function(e){var t=this;return void 0===e&&(e=1),new Promise(function(r,n){try{for(var o=t.latestAccount,u=o+e,i=[],a=o;a<u;a++){var c=t._addressFromIndex("m",a);i.push(c),t.page=0,t.latestAccount++}t.accounts=t.accounts.concat(i),r(t.accounts)}catch(s){n(s)}})},r.prototype.getFirstPage=function(){return this.page=0,this.__getPage(1)},r.prototype.getNextPage=function(){return this.__getPage(1)},r.prototype.getPreviousPage=function(){return this.__getPage(-1)},r.prototype.__getPage=function(e){var t=this;return this.page+=e,this.page<=0&&(this.page=1),new Promise(function(e,r){try{for(var n=(t.page-1)*t.perPage,o=n+t.perPage,u=[],i=n;i<o;i++){var a=t._addressFromIndex("m",i);u.push({address:a,balance:null,index:i}),t.paths[h.toChecksumAddress(a)]=i}e(u)}catch(c){r(c)}})},r.prototype.getAccounts=function(){return this.accounts},r.prototype.removeAccount=function(e){if(!this.accounts.map(function(e){return e.toLowerCase()}).includes(e.toLowerCase()))throw new Error("Address "+e+" not found in this keyring");this.accounts=this.accounts.filter(function(t){return t.toLowerCase()!==e.toLowerCase()})},r.prototype.readSignature=function(t){return u(this,void 0,void 0,function(){var r,n,o,u,a,c,s;return i(this,function(i){switch(i.label){case 0:return[4,f.default.read({title:"Submit signing result",description:"Please scan signing result QR code displayed on your Cobo Vault"})];case 1:if(r=i.sent()){if("ur"===r.type){if(n=JSON.parse(e.from(r.result,"hex").toString("utf-8")),u=n.signature,(o=n.signId)&&u){if(o!==t)throw new Error("read signature error: mismatched signId");return a=e.from(u.slice(0,64),"hex"),c=e.from(u.slice(64,128),"hex"),s=e.from(u.slice(128),"hex"),[2,{r:a,s:c,v:s}]}throw new Error("invalid signature qrcode")}throw new Error("invalid signature qrcode")}throw new Error("read signature canceled")}})})},r.serializeTx=function(e){var t=a(a([],e.raw.slice(0,6)),[h.toBuffer(e.getChainId()),h.unpadBuffer(h.toBuffer(0)),h.unpadBuffer(h.toBuffer(0))]);return h.rlp.encode(t)},r.prototype.signTransaction=function(t,n){return u(this,void 0,void 0,function(){var o,u,a,c,s,d;return i(this,function(i){switch(i.label){case 0:return o=r.serializeTx(n).toString("hex"),u=this._pathFromAddress(t),a=l.default.sha256().update(""+o+u+this.xfp).digest("hex").slice(0,8),[4,f.default.play(e.from(JSON.stringify({txHex:o,xfp:this.xfp,hdPath:u,signId:a}),"utf-8").toString("hex"),{hasNext:!0,title:"Request signing transaction",description:"Please scan the QR code below with Cobo Vault, review transaction information and authorize to sign"})];case 1:return i.sent(),[4,this.readSignature(a)];case 2:return c=i.sent(),s=c.s,d=c.v,n.r=c.r,n.s=s,n.v=d,[2,n]}})})},r.prototype.signMessage=function(e,t){return this.signPersonalMessage(e,t)},r.prototype.signPersonalMessage=function(t,r){return u(this,void 0,void 0,function(){var n,o,u;return i(this,function(i){switch(i.label){case 0:return n=this._pathFromAddress(t),o=l.default.sha256().update(""+r+n+this.xfp).digest("hex").slice(0,8),[4,f.default.play(e.from(JSON.stringify({messageHex:r,xfp:this.xfp,hdPath:n,signId:o}),"utf-8").toString("hex"),{hasNext:!0,title:"Request signing message",description:"Please scan the QR code below with Cobo Vault, review message and authorize to sign"})];case 1:return i.sent(),[4,this.readSignature(o)];case 2:return[2,"0x"+(u=i.sent()).r+u.s+u.v]}})})},r.prototype.signTypedData=function(t,r){return u(this,void 0,void 0,function(){var n,o,u;return i(this,function(i){switch(i.label){case 0:return n=this._pathFromAddress(t),o=l.default.sha256().update(""+JSON.stringify(r)+n+this.xfp).digest("hex").slice(0,8),[4,f.default.play(e.from(JSON.stringify({data:r,xfp:this.xfp,hdPath:n,signId:o}),"utf-8").toString("hex"),{hasNext:!0,title:"Request signing typed data",description:"Please scan the QR code below with Cobo Vault, review data and authorize to sign"})];case 1:return i.sent(),[4,this.readSignature(o)];case 2:return u=i.sent(),[2,e.concat([u.r,u.s,u.v])]}})})},r.prototype._addressFromIndex=function(e,t){this.checkKeyring(),this.hdk||(this.hdk=d.default.fromExtendedKey(this.xpub));var r=this.hdk.derive(e+"/0/"+t),n="0x"+h.publicToAddress(r.publicKey,!0).toString("hex");return h.toChecksumAddress(n)},r.prototype._pathFromAddress=function(e){var t=h.toChecksumAddress(e),r=this.paths[t];if(void 0===r)for(var n=0;n<1e3;n++)if(t===this._addressFromIndex("m",n)){r=n;break}if(void 0===r)throw new Error("Unknown address");return this.hdPath+"/0/"+r},r.type=p,r}(s.EventEmitter);t.default=v}).call(this,r("tjlA").Buffer)},"1C+a":function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Progress=void 0;const o=n(r("q1tI"));t.Progress=({progress:e,total:t})=>o.default.createElement("p",null,`${e} / ${t}`)},"2Q9u":function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Button=void 0;const o=n(r("q1tI")),u={minWidth:64,height:24,background:"transparent",borderColor:"grey",borderWidth:1,outline:"none",margin:2};t.Button=e=>{const{onClick:t,children:r}=e;return o.default.createElement("button",{onClick:t,style:u},r)}},"2hAF":function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(r("BuVO"));o.default.bootstrap(),t.default=o.default.makeService()},BuVO:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(r("i8i4")),u=n(r("iWd9")),i=n(r("q1tI")),a=n(r("9rZX"));let c,s,l=!1;t.default={bootstrap:()=>{const e=document.getElementsByTagName("body").item(0),t=document.createElement("div");t.id="cv_sdk_container",e.appendChild(t),a.default.setAppElement("#cv_sdk_container"),o.default.render(i.default.createElement(u.default),t)},setup:(e,t)=>{l=!0,c=e,s=t},makeService:()=>{if(l)return{read:c,play:s};throw new Error("SDK is not initialized")}}},CxSg:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),u=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useAnimatedQRCodeReader=void 0;const a=u(r("q1tI")),c=i(r("RnoV")),s=r("zs2r"),l=r("+qE3"),d=r("2Q9u"),f=r("1C+a"),h=r("lZNz");t.useAnimatedQRCodeReader=()=>{const[e,t]=a.useState([]),[r,n]=a.useState(""),o=a.useMemo(()=>new l.EventEmitter,[]),[u,i]=a.useState(null),[p,g]=a.useState(null),v=()=>{t([]),n("")};return[a.default.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},u&&a.default.createElement("p",null,u),p&&a.default.createElement("p",null,p),a.default.createElement(c.default,{onScan:r=>{r&&(r=>{try{(e=>{JSON.parse(e),o.emit("read",{type:"json",result:e})})(r)}catch(u){try{(r=>{try{const[u,i]=s.extractSingleWorkload(r);if(e.length>0&&i!==e[0].total&&n("invalid animated qrcode: mismatching qrs, please retry"),!e.find(e=>e.index===u)){const n=[...e,{index:u,total:i,data:r}];if(t(n),n.length===i){const e=s.decodeUR(n.map(e=>e.data));o.emit("read",{type:"ur",result:e})}}}catch(u){n(u.message)}})(r)}catch(i){(e=>{o.emit("read",{type:"text",result:e})})(r)}}})(r)},delay:100,style:{width:"100%"},onError:e=>{n(e.message)}}),a.default.createElement("p",null,e[0]&&e[0].total>1&&a.default.createElement(f.Progress,{progress:e.length,total:e[0].total})),a.default.createElement(h.ButtonGroup,null,a.default.createElement(d.Button,{onClick:()=>{o.emit("read",{type:"none",result:""})}},"Close"),r&&a.default.createElement(d.Button,{onClick:()=>{v()}},"Retry")),r&&a.default.createElement("p",{style:{color:"red"}},r)),{read:e=>new Promise(t=>{console.log(e),e&&(e.title&&i(e.title),e.description&&g(e.description)),o.once("read",e=>{v(),t(e)})})}]}},Ir3a:function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.decodeSimpleCBOR=t.encodeSimpleCBOR=t.composeHeader=void 0,t.composeHeader=function(t){var r;if(t>0&&t<=23)r=e.from([64+t]);else if(t>=24&&t<=255)(n=e.alloc(1)).writeUInt8(t,0),r=e.concat([e.from([88]),n]);else if(t>=256&&t<=65535)(n=e.alloc(2)).writeUInt16BE(t,0),r=e.concat([e.from([89]),n]);else{if(!(t>=65536&&t<=Math.pow(2,32)-1))throw new Error("length exceeded");var n;(n=e.alloc(4)).writeUInt32BE(t,0),r=e.concat([e.from([96]),n])}return r},t.encodeSimpleCBOR=function(r){var n=e.from(r,"hex");if(n.length<=0||n.length>=Math.pow(2,32))throw new Error("data is too large");var o=t.composeHeader(n.length);return e.concat([o,n]).toString("hex")},t.decodeSimpleCBOR=function(t){var r=e.from(t,"hex");if(r.length<=0)throw new Error("invalid input");var n=r[0];if(n<88)return r.slice(1,1+(o=n-64)).toString("hex");if(88==n){var o=r.slice(1,2).readUInt8(0);return r.slice(2,2+o).toString("hex")}if(89==n)return o=r.slice(1,3).readUInt16BE(0),r.slice(3,3+o).toString("hex");if(96==n)return o=r.slice(1,5).readUInt32BE(0),r.slice(5,5+o).toString("hex");throw new Error("invalid input")}}).call(this,r("tjlA").Buffer)},M7G1:function(e,t,r){"use strict";r.r(t);var n=r("+85N"),o=r.n(n);function u(e,t,r,n,o,u,i){try{var a=e[u](i),c=a.value}catch(s){return void r(s)}a.done?t(c):Promise.resolve(c).then(n,o)}function i(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){u(i,n,o,a,c,"next",e)}function c(e){u(i,n,o,a,c,"throw",e)}a(void 0)})}}function a(e){return c.apply(this,arguments)}function c(){return(c=i(regeneratorRuntime.mark(function e(t){var n,u,a,c,s,l,d,f,h,p,g,v,m,y,w,x,b,A,P,E,k,O,R,V,B,S,C,j,M,H;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return H=function(){return(H=i(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==p.length){e.next=3;break}return e.next=3,A();case 3:return e.prev=3,e.abrupt("return",f.signPersonalMessage(E(),t.data));case 7:throw e.prev=7,e.t0=e.catch(3),e.t0;case 10:case"end":return e.stop()}},e,null,[[3,7]])}))).apply(this,arguments)},M=function(e){return H.apply(this,arguments)},j=function(){return(j=i(regeneratorRuntime.mark(function e(t){var r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==p.length){e.next=3;break}return e.next=3,A();case 3:return r=n.fromTxData(t,{chain:d(c)}),e.prev=4,e.next=7,f.signTransaction(E(),r);case 7:return e.abrupt("return","0x".concat(e.sent.serialize().toString("hex")));case 11:throw e.prev=11,e.t0=e.catch(4),e.t0;case 14:case"end":return e.stop()}},e,null,[[4,11]])}))).apply(this,arguments)},C=function(e){return j.apply(this,arguments)},S=function(e){return new Promise(function(t,r){m.sendAsync({jsonrpc:"2.0",method:"eth_getBalance",params:[e,"latest"],id:42},function(e,n){e&&r(e);var o=n&&n.result;t(null!=o?new l(o).toString(10):null)})})},B=function(e){return Promise.all(e.map(function(e){return new Promise(function(){var t=i(regeneratorRuntime.mark(function t(r){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,S(e);case 2:r({address:e,balance:t.sent});case 4:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}())}))},V=function(){return(V=i(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(g){e.next=2;break}return e.abrupt("return",[]);case 2:if(!(f.getAccounts().length>0)||t){e.next=4;break}return e.abrupt("return",f.getAccounts());case 4:return e.prev=4,e.next=7,f.addAccounts(f.getAccounts().length+5);case 7:p=e.sent,e.next=13;break;case 10:throw e.prev=10,e.t0=e.catch(4),e.t0;case 13:return e.abrupt("return",p);case 14:case"end":return e.stop()}},e,null,[[4,10]])}))).apply(this,arguments)},R=function(e){return V.apply(this,arguments)},O=function(){return(O=i(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,R(!0);case 2:return e.abrupt("return",(t=e.sent)&&B(t));case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)},k=function(){return O.apply(this,arguments)},E=function(){return f.getCurrentAddress()},P=function(e){return f.setCurrentAccount(p.findIndex(function(t){return t===e})||0)},A=function(){return g?R():f.readKeyring().then(function(){return g=!0,R()})},b=function(){return v},x=function(){return(x=i(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t===a){e.next=2;break}throw new Error("CoboVault only supports standard path: m/44'/0'/0'/0/x");case 2:return v=!1,h=t,e.abrupt("return",!0);case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)},w=function(e){return x.apply(this,arguments)},y=function(){h="",g=!1,m.stop()},e.next=19,Promise.resolve().then(r.t.bind(null,"ztCV",7));case 19:return n=e.sent.Transaction,e.next=23,Promise.all([r.e(1),r.e(2),r.e(3),r.e(4),r.e(5),r.e(6)]).then(r.bind(null,"CYPU"));case 23:return u=e.sent.default,a="m/44'/60'/0'/0",c=t.networkId,s=t.rpcUrl,l=t.BigNumber,d=t.networkName,f=o.a.getEmptyKeyring(),h="",p=Array.from([]),g=!1,v=!1,(m=u({getAccounts:function(e){R().then(function(t){return e(null,t)}).catch(function(t){return e(t,null)})},signTransaction:function(e,t){C(e).then(function(e){return t(null,e)}).catch(function(e){return t(e,null)})},processMessage:function(e,t){M(e).then(function(e){return t(null,e)}).catch(function(e){return t(e,null)})},processPersonalMessage:function(e,t){M(e).then(function(e){return t(null,e)}).catch(function(e){return t(e,null)})},signMessage:function(e,t){M(e).then(function(e){return t(null,e)}).catch(function(e){return t(e,null)})},signPersonalMessage:function(e,t){M(e).then(function(e){return t(null,e)}).catch(function(e){return t(e,null)})},rpcUrl:s})).setPath=w,m.dPath=h,m.enable=A,m.setPrimaryAccount=P,m.getPrimaryAddress=E,m.getAccounts=R,m.getMoreAccounts=k,m.getBalance=S,m.getBalances=B,m.send=m.sendAsync,m.disconnect=y,m.isCustomPath=b,e.abrupt("return",m);case 46:case"end":return e.stop()}},e)}))).apply(this,arguments)}t.default=function(e){var t,r=e.appName,n=e.rpcUrl,o=e.networkId,u=e.preferred;return{name:e.label||"CoboVault",svg:e.svg,iconSrc:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAMLUlEQVR4nO2ceVQV9xXHP/N47IhsouhJNKhI0IASxCUYVNwitFqbrUl7amKaQ9SYqMEVjZpEiZ6aRlPT1jQ5bdPkJM12TI2JqdEoLrhgUEBEg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YzffasEwLb0rkun0O1IfuGgbqLlKuI9dwSLnwunIFU/9KfyZQ9sR8OyzTwpsSuXSR6fz94IYpl/BDyvWZcgXcBvx+MDu5IeUq+F4jVxmX8asMQ8pVx3SW+YlcmnIF8+D3gxuLcj0kl2g6SMhVyLVhD90BflIuLbwpkcuOQc7BjV65LLjBTK6sJttDd0FOLku7ujCdZX5UrgbtLtP/0B3gJ3LlHcZQh9g3jZhGTa68lG1U0vfQHaBILtX3qnLlmwOFXAqEh8pV7yJ6DPtDd4AHyqVZU1auysHOrFwWXDem+nWwJ6Cuj01duRr7Io7RpVx9+8/w03bKoMrK9Qa5waRclRgfKVcwjbVoFRCa77VhmRbelMh1+5wrVb377/ig/oZ/6JZfwCpXMO03/GW+b4dlWnhTIlefyOiYUof+hn/oxkEAK1dah7zhH7rl5ydytXA923/Z+8Eh5fqLXG8rV/BFPxDtD+V6SC7RdJCQ64OD20hP9mYolxbelMjVgcGMSZYpfpWhb5XLghvM5MpqeoSpiCZyFW74N0pyWdrVheks86NyNWjXgUkpU3rozrfkypNgqKNzzmnc5MpLdYxKOpUr2P8DZztj6pDjDvgAAAAASUVORK5CYII=",wallet:(t=i(regeneratorRuntime.mark(function e(t){var u,c,s,l;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return u=t.BigNumber,c=t.networkName,s=t.resetWalletState,e.next=3,a({appName:r,rpcUrl:n,networkId:o,BigNumber:u,networkName:c,resetWalletState:s});case 3:return e.abrupt("return",{provider:l=e.sent,interface:{name:"CoboVault",connect:l.enable,disconnect:l.disconnect,address:{get:function(){var e=i(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",l.getPrimaryAddress());case 1:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}()},network:{get:function(){var e=i(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",o);case 1:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}()},balance:{get:function(){var e=i(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=l.getPrimaryAddress(),e.abrupt("return",t&&l.getBalance(t));case 2:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}()}}});case 5:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)}),type:"hardware",desktop:!0,mobile:!0,osExclusions:[],preferred:u}}},QjJ2:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseQRCode=void 0;const o=n(r("q1tI")),u=n(r("D1Df"));t.BaseQRCode=({size:e=200,data:t="",ecl:r="L"})=>o.default.createElement(u.default,{value:t,size:e,level:r})},VP3s:function(e,t,r){"use strict";(function(e){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeBc32Data=t.encodeBc32Data=t.encodeSegwitAddress=t.decodeSegwitAddress=t.Bech32Version=void 0;var o,u=n(r("wUHp"));!function(e){e[e.Origin=1]="Origin",e[e.bis=2]="bis"}(o=t.Bech32Version||(t.Bech32Version={}));var i=function(e,t,r,n){for(var o=0,u=0,i=[],a=(1<<r)-1,c=0;c<e.length;++c){var s=e[c];if(s<0||s>>t!=0)return null;for(o=o<<t|s,u+=t;u>=r;)i.push(o>>(u-=r)&a)}if(n)u>0&&i.push(o<<r-u&a);else if(u>=t||o<<r-u&a)return null;return i};t.decodeSegwitAddress=function(e,t){var r=u.default.decode(t);if(null===r||r.hrp!==e||r.data.length<1||r.data[0]>16)return null;var n=i(Uint8Array.from(r.data.slice(1)),5,8,!1);return null===n||n.length<2||n.length>40||0===r.data[0]&&20!==n.length&&32!==n.length?null:{version:r.data[0],program:n}},t.encodeSegwitAddress=function(e,r,n){var a=i(n,8,5,!0);if(!a)return null;var c=u.default.encode(e,[r].concat(a),o.Origin);return null===t.decodeSegwitAddress(e,c)?null:c},t.encodeBc32Data=function(t){var r=e.from(t,"hex"),n=i(r,8,5,!0);if(n)return u.default.encode(void 0,n,o.bis);throw new Error("invalid input")},t.decodeBc32Data=function(t){var r=u.default.decode(t);if(r){var n=i(e.from(r.data),5,8,!1);return n?e.from(n).toString("hex"):null}return null}}).call(this,r("tjlA").Buffer)},iWd9:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(r("BuVO")),u=r("yUcP");t.default=()=>{const[e,{read:t,play:r}]=u.useController();return o.default.setup(t,r),e}},l470:function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.extractSingleWorkload=t.smartDecodeUR=t.decodeUR=void 0;var n=r("xOHM"),o=r("Ir3a"),u=r("VP3s"),i=function(e){var t=e.toUpperCase().split("OF");if(2!==t.length)throw new Error("invalid sequence: "+e);return[+t[0],+t[1]]},a=function(t,r){var o=u.decodeBc32Data(r);if(!o)throw new Error("can not decode payload: "+r);if(u.decodeBc32Data(t)!==n.sha256Hash(e.from(o,"hex")).toString("hex"))throw new Error("invalid digest: \n digest:"+t+" \n payload:"+r)},c=function(e,t){if(void 0===t&&(t="bytes"),e.toUpperCase()!==("ur:"+t).toUpperCase())throw new Error("invalid UR header: "+e)};t.decodeUR=function(e,t){void 0===t&&(t="bytes");var r=function(e,t){void 0===t&&(t="bytes");try{return 1===e.length?function(e,t){void 0===t&&(t="bytes");var r=e.split("/");switch(r.length){case 2:return c(r[0],t),r[1];case 3:return c(r[0],t),a(r[1],n=r[2]),n;case 4:var n;return c(r[0],t),i(r[1]),a(r[2],n=r[3]),n;default:throw new Error("invalid workload pieces length: expect 2 / 3 / 4 bug got "+r.length)}}(e[0],t):function(e,t){void 0===t&&(t="bytes");var r=e.length,n=new Array(r).fill(""),o="";e.forEach(function(e){var u=e.split("/");c(u[0],t);var a=i(u[1]),s=a[0],l=a[1];if(l!==r)throw new Error("invalid workload: "+e+", total "+l+" not equal workloads length "+r);if(o&&o!==u[2])throw new Error("invalid workload: "+e+", checksum changed "+o+", "+u[2]);if(o=u[2],n[s-1])throw new Error("invalid workload: "+e+", index "+s+" has already been set");n[s-1]=u[3]});var u=n.join("");return a(o,u),u}(e,t)}catch(r){throw new Error("invalid workloads: "+e+"\n "+r)}}(e,t),n=u.decodeBc32Data(r);if(!n)throw new Error("invalid data");return o.decodeSimpleCBOR(n)};var s=function(e,t,r){return r.indexOf(e)===t};t.smartDecodeUR=function(e){if(e.length>0){var r=t.extractSingleWorkload(e[0])[1];return e.length===r?{success:!0,current:e.length,length:r,workloads:[],result:t.decodeUR(e)}:{success:!1,current:e.length,length:r,workloads:e.filter(s),result:""}}return{success:!1,current:0,length:0,workloads:[],result:""}},t.extractSingleWorkload=function(e){var t=e.toUpperCase().split("/");switch(t.length){case 2:case 3:return[1,1];case 4:return i(t[1]);default:throw new Error("invalid workload pieces length: expect 2 / 3 / 4 bug got "+t.length)}}}).call(this,r("tjlA").Buffer)},lZNz:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonGroup=void 0;const o=n(r("q1tI"));t.ButtonGroup=e=>o.default.createElement("div",{style:{width:"100%",display:"flex",flexDirection:"row-reverse",alignItems:"center",justifyContent:"flex-start"}},e.children)},tTlE:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),u=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.useAnimatedQRCodePlayer=void 0;const i=u(r("q1tI")),a=r("qCKp"),c=r("QjJ2"),s=r("zs2r"),l=r("+qE3"),d=r("2Q9u"),f=r("lZNz");t.useAnimatedQRCodePlayer=()=>{const[e,t]=i.useState([]),[r,n]=i.useState(500),[o,u]=i.useState(!1),[h,p]=i.useState(0),[g,v]=i.useState(null),[m,y]=i.useState(null),[w,x]=i.useState(!1),b=()=>{p(e=>e>=P.length-1?0:e+1)},A=i.useMemo(()=>new l.EventEmitter,[]),P=e;return i.useEffect(()=>{if(!w){const e=a.interval(r).subscribe(()=>{b()});return()=>{e.unsubscribe()}}},[r,P,w]),[i.default.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},g&&i.default.createElement("p",null,g),m&&i.default.createElement("p",null,m),i.default.createElement(c.BaseQRCode,{size:288,data:P[h]}),i.default.createElement("p",{style:{textAlign:"center"}},h+1,"/",P.length),i.default.createElement(f.ButtonGroup,null,w?i.default.createElement(d.Button,{onClick:()=>{x(!1)}},"Play"):i.default.createElement(d.Button,{onClick:()=>{x(!0)}},"Pause"),i.default.createElement(d.Button,{onClick:b},"Next"),i.default.createElement(d.Button,{onClick:()=>{p(e=>e<0?P.length-1:e-1)}},"Prev")),i.default.createElement(f.ButtonGroup,null,i.default.createElement(d.Button,{onClick:()=>{A.emit("finish",!0)}},o?"Next":"Finish"))),{play:(e,r)=>new Promise(o=>{const i=s.encodeUR(e,800);t(i),r&&(r.refreshSpeed&&n(r.refreshSpeed),r.hasNext&&u(r.hasNext),r.title&&v(r.title),r.description&&y(r.description)),A.once("finish",()=>{t([]),n(500),p(0),o()})})}]}},vI2P:function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.encodeUR=void 0;var n=r("Ir3a"),o=r("VP3s"),u=r("xOHM"),i=function(e,t){return void 0===t&&(t="bytes"),"ur:"+t+"/"+e};t.encodeUR=function(t,r){void 0===r&&(r=200);var a=n.encodeSimpleCBOR(t),c=o.encodeBc32Data(a),s=u.sha256Hash(e.from(a,"hex")).toString("hex"),l=o.encodeBc32Data(s),d=c.match(new RegExp(".{1,"+r+"}","g"));if(!d)throw new Error("Unexpected error when encoding");return function(e,t,r){return void 0===r&&(r="bytes"),1===e.length?[i(e[0])]:e.map(function(n,o){return u.compose3(function(e){return i(e,r)},function(t){return function(e,t,r){return t+1+"of"+r+"/"+e}(t,o,e.length)},function(e){return function(e,t){return t+"/"+e}(e,t)})(n)})}(d,l,"bytes").map(function(e){return e.toUpperCase()})}}).call(this,r("tjlA").Buffer)},wUHp:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("VP3s"),o="qpzry9x8gf2tvdw0s3jn54khce6mua7l",u=[996825010,642813549,513874426,1027748829,705979059],i=function(e){for(var t=1,r=0;r<e.length;++r){var n=t>>25;t=(33554431&t)<<5^e[r];for(var o=0;o<6;++o)n>>o&1&&(t^=u[o])}return t},a=function(e){var t,r=[];for(t=0;t<e.length;++t)r.push(e.charCodeAt(t)>>5);for(r.push(0),t=0;t<e.length;++t)r.push(31&e.charCodeAt(t));return r},c=function(e,t,r){var o;o=e?a(e):[0];var u=r===n.Bech32Version.Origin?1:1073741823;return i(o.concat(t))===u};t.default={encode:function(e,t,r){var u,c=t.concat(function(e,t,r){var o;o=e?a(e).concat(t).concat([0,0,0,0,0,0]):[0].concat(t).concat([0,0,0,0,0,0]);for(var u=r===n.Bech32Version.Origin?1:1073741823,c=i(o)^u,s=[],l=0;l<6;++l)s.push(c>>5*(5-l)&31);return s}(e,t,r));u=e?e+"1":"";for(var s=0;s<c.length;++s)u+=o.charAt(c[s]);return u},decode:function(e){var t,r=!1,u=!1;for(t=0;t<e.length;++t){if(e.charCodeAt(t)<33||e.charCodeAt(t)>126)return null;e.charCodeAt(t)>=97&&e.charCodeAt(t)<=122&&(r=!0),e.charCodeAt(t)>=65&&e.charCodeAt(t)<=90&&(u=!0)}if(r&&u)return null;var i=(e=e.toLowerCase()).lastIndexOf("1");if(-1===i)return function(e){for(var t=[],r=0;r<e.length;++r){var u=o.indexOf(e.charAt(r));if(-1===u)return null;t.push(u)}return c(void 0,t,n.Bech32Version.bis)?{hrp:null,data:t.slice(0,t.length-6)}:null}(e);if(i<1||i+7>e.length||e.length>90)return null;var a=e.substring(0,i),s=[];for(t=i+1;t<e.length;++t){var l=o.indexOf(e.charAt(t));if(-1===l)return null;s.push(l)}return c(a,s,n.Bech32Version.Origin)?{hrp:a,data:s.slice(0,s.length-6)}:null}}},xOHM:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.compose3=t.sha256Hash=void 0;var o=n(r("afKu"));t.sha256Hash=function(e){return o.default("sha256").update(e).digest()},t.compose3=function(e,t,r){return function(n){return e(t(r(n)))}}},yUcP:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),u=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t},i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,u){function i(e){try{c(n.next(e))}catch(t){u(t)}}function a(e){try{c(n.throw(e))}catch(t){u(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(i,a)}c((n=n.apply(e,t||[])).next())})},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useController=void 0;const c=u(r("q1tI")),s=a(r("9rZX")),l=r("tTlE"),d=r("CxSg"),f={content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)"}};t.useController=()=>{const[e,t]=c.useState(!1),[r,n]=c.useState("play"),[o,{play:u}]=l.useAnimatedQRCodePlayer(),[a,{read:h}]=d.useAnimatedQRCodeReader(),p=()=>{t(!1),n("play")};return[c.default.createElement(s.default,{isOpen:e,style:f},c.default.createElement("div",{style:{width:320,boxSizing:"border-box",padding:16,flex:1,flexDirection:"column",alignItems:"center",justifyContent:"center"}},"read"===r?a:o)),{play:(e,r)=>i(void 0,void 0,void 0,function*(){t(!0),n("play"),yield u(e,r),p()}),read:e=>i(void 0,void 0,void 0,function*(){t(!0),n("read");const r=yield h(e);return p(),r})}]}},zs2r:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractSingleWorkload=t.decodeUR=t.encodeUR=void 0;var n=r("vI2P");Object.defineProperty(t,"encodeUR",{enumerable:!0,get:function(){return n.encodeUR}});var o=r("l470");Object.defineProperty(t,"decodeUR",{enumerable:!0,get:function(){return o.decodeUR}}),Object.defineProperty(t,"extractSingleWorkload",{enumerable:!0,get:function(){return o.extractSingleWorkload}})}}]);