ui-minified/_nuxt/d573b16.js

1 line
1.4 MiB
JavaScript
Raw Normal View History

2022-08-05 10:22:10 +02:00
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{103:function(e,t,r){"use strict";r.r(t),r.d(t,"getTornadoKeys",(function(){return I})),r.d(t,"buildGroth16",(function(){return N})),r.d(t,"download",(function(){return E}));r(82),r(65);var n=r(23),o=(r(59),r(19),r(14),r(64),r(25),r(1)),c=r(47),l=r.n(c),d=r(701),m=r.n(d),f=r(412),h=r.n(f),v=r(421),y=r.n(v),M=r(17),k=r(26),x=r(1181),w=new m.a;function N(){var e=Object(M.g)();return x({wasmInitialMemory:e?1e3:2e3})}function D(){var e=new l.a.providers.HttpProvider(k.a.netId1.rpcUrls.Infura.url);return new y.a({provider:e,ensAddress:Object(v.getEnsAddress)("1")})}function I(e){return j.apply(this,arguments)}function j(){return(j=Object(o.a)(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Promise.all([E({name:"tornado.json.zip",contentType:"string"}),E({name:"tornadoProvingKey.bin.zip",contentType:"arraybuffer",getProgress:t})]);case 3:return r=e.sent,e.abrupt("return",{circuit:JSON.parse(r[0]),provingKey:r[1]});case 7:throw e.prev=7,e.t0=e.catch(0),e.t0;case 10:case"end":return e.stop()}}),e,null,[[0,7]])})))).apply(this,arguments)}function T(e){return A.apply(this,arguments)}function A(){return(A=Object(o.a)(regeneratorRuntime.mark((function e(t){var r,o,c,l,d,m,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r=D(),e.next=4,r.name(t);case 4:return o=e.sent,e.next=7,o.getContent(t);case 7:return c=e.sent,l=c.value,d=l.split("://"),m=Object(n.a)(d,2),f=m[1],e.abrupt("return",f);case 13:throw e.prev=13,e.t0=e.catch(0),new Error(e.t0);case 16:case"end":return e.stop()}}),e,null,[[0,13]])})))).apply(this,arguments)}function z(e){return O.apply(this,arguments)}function O(){return(O=Object(o.a)(regeneratorRuntime.mark((function e(t){var r,n,o,c,l,d,m,f,v,y;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.url,n=t.name,o=t.getProgress,c=t.id,l=t.retryAttempt,d=void 0===l?0:l,e.prev=1,e.next=4,h.a.get("".concat(r,"/").concat(n),{responseType:"blob",headers:{"Content-Type":"application/x-www-form-urlencoded"},onDownloadProgress:function(e){if("function"==typeof o){var progress=Math.round(100*e.loaded/9626311);o(progress)}}});case 4:return m=e.sent,e.abrupt("return",m);case 8:if(e.prev=8,e.t0=e.catch(1),c){e.next=14;break}return e.next=13,T("tornadocash.eth");case 13:c=e.sent;case 14:if(f=[r,"https://ipfs.io/ipfs/".concat(c),"https://dweb.link/ipfs/".concat(c),"https://gateway.pinata.cloud/ipfs/".concat(c)],!(d<f.length)){e.next=22;break}return v=f[d],d++,e.next=20,z({name:n,getProgress:o,retryAttempt:d,id:c,url:v});case 20:return y=e.sent,e.abrupt("return",y);case 22:throw e.t0;case 23:case"end":return e.stop()}}),e,null,[[1,8]])})))).apply(this,arguments)}function E(e){return C.apply(this,arguments)}function C(){return(C=Object(o.a)(regeneratorRuntime.mark((function e(t){var n,o,c,l,d,m,f,h,v,content;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.name,o=t.contentType,c=t.getProgress,l=t.eventName,d=void 0===l?"events":l,e.prev=1,m=r.p.slice(0,-7),e.next=5,z({getProgress:c,url:m,name:n});case 5:return f=e.sent,e.next=8,w.loadAsync(f.data);case 8:return h=e.sent,v=h.file(n.replace("".concat(d,"/"),"").slice(0,-4)),e.next=12,v.async(o);case 12:return content=e.sent,e.abrupt("return",content);case 16:throw e.prev=16,e.t0=e.catch(1),e.t0;case 19:case"end":return e.stop()}}),e,null,[[1,16]])})))).apply(this,arguments)}},1068:function(e,t){},1075:function(e,t){},116:function(e,t,r){"use strict";r.d(t,"c",(function(){return l})),r.d(t,"k",(function(){return d})),r.d(t,"j",(function(){return m})),r.d(t,"o",(function(){return f})),r.d(t,"n",(function(){return h})),r.d(t,"r",(function(){return v})),r.d(t,"e",(function(){return y})),r.d(t,"i",(function(){return M})),r.d(t,"a",(function(){return k})),r.d(t,"b",(function(){return x})),r.d(t,"p",(function(){return w})),r.d(t,"q",(function(){return N})),r.d(t,"l",(function(){return D})),r.d(t,"m",(function(){