nova-ui/static/nullifier.worker.js

2 lines
694 KiB
JavaScript
Raw Normal View History

/*! For license information please see ../LICENSES */!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports;}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r});},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0});},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e];}.bind(null,o));return r;},n.n=function(t){var e=t&&t.__esModule?function(){return t.default;}:function(){return t;};return n.d(e,"a",e),e;},n.o=function(object,t){return Object.prototype.hasOwnProperty.call(object,t);},n.p="/_nuxt/",n(n.s=166);}([function(t,e,n){"use strict";n.d(e,"k",function(){return l;}),n.d(e,"j",function(){return h;}),n.d(e,"a",function(){return d;}),n.d(e,"b",function(){return m;}),n.d(e,"o",function(){return y;}),n.d(e,"p",function(){return v;}),n.d(e,"l",function(){return w;}),n.d(e,"i",function(){return A;}),n.d(e,"d",function(){return E;}),n.d(e,"e",function(){return T;}),n.d(e,"c",function(){return O;}),n.d(e,"g",function(){return M;}),n.d(e,"f",function(){return k;}),n.d(e,"h",function(){return x;}),n.d(e,"n",function(){return S;}),n.d(e,"m",function(){return j;});const r=new(n(2).b)("bytes/5.7.0");function o(t){return!!t.toHexString;}function c(t){return t.slice||(t.slice=function(){const e=Array.prototype.slice.call(arguments);return c(new Uint8Array(Array.prototype.slice.apply(t,e)));}),t;}function l(t){return w(t)&&!(t.length%2)||h(t);}function f(t){return"number"==typeof t&&t==t&&t%1==0;}function h(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t)return!1;if(!f(t.length)||t.length<0)return!1;for(let i=0;i<t.length;i++){const e=t[i];if(!f(e)||e<0||e>=256)return!1;}return!0;}function d(t,e){if(e||(e={}),"number"==typeof t){r.checkSafeUint53(t,"invalid arrayify value");const e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),c(new Uint8Array(e));}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),o(t)&&(t=t.toHexString()),w(t)){let n=t.substring(2);n.length%2&&("left"===e.hexPad?n="0"+n:"right"===e.hexPad?n+="0":r.throwArgumentError("hex data is odd-length","value",t));const o=[];for(let i=0;i<n.length;i+=2)o.push(parseInt(n.substring(i,i+2),16));return c(new Uint8Array(o));}return h(t)?c(new Uint8Array(t)):r.throwArgumentError("invalid arrayify value","value",t);}function m(t){const e=t.map(t=>d(t)),n=e.reduce((t,e)=>t+e.length,0),r=new Uint8Array(n);return e.reduce((t,object)=>(r.set(object,t),t+object.length),0),c(r);}function y(t){let e=d(t);if(0===e.length)return e;let n=0;for(;n<e.length&&0===e[n];)n++;return n&&(e=e.slice(n)),e;}function v(t,e){(t=d(t)).length>e&&r.throwArgumentError("value out of range","value",arguments[0]);const n=new Uint8Array(e);return n.set(t,e-t.length),c(n);}function w(t,e){return!("string"!=typeof t||!t.match(/^0x[0-9A-Fa-f]*$/))&&(!e||t.length===2+2*e);}const _="0123456789abcdef";function A(t,e){if(e||(e={}),"number"==typeof t){r.checkSafeUint53(t,"invalid hexlify value");let e="";for(;t;)e=_[15&t]+e,t=Math.floor(t/16);return e.length?(e.length%2&&(e="0"+e),"0x"+e):"0x00";}if("bigint"==typeof t)return(t=t.toString(16)).length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),o(t))return t.toHexString();if(w(t))return t.length%2&&("left"===e.hexPad?t="0x0"+t.substring(2):"right"===e.hexPad?t+="0":r.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(h(t)){let e="0x";for(let i=0;i<t.length;i++){let n=t[i];e+=_[(240&n)>>4]+_[15&n];}return e;}return r.throwArgumentError("invalid hexlify value","value",t);}function E(data){if("string"!=typeof data)data=A(data