ui-minified/_nuxt/68d7ff0.js

2 lines
8.2 MiB
JavaScript
Raw Normal View History

2022-08-05 10:22:10 +02:00
/*! For license information please see LICENSES */
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],[function(e,c,t){"use strict";t.d(c,"k",(function(){return n})),t.d(c,"j",(function(){return l})),t.d(c,"a",(function(){return h})),t.d(c,"b",(function(){return x})),t.d(c,"o",(function(){return m})),t.d(c,"p",(function(){return y})),t.d(c,"l",(function(){return v})),t.d(c,"i",(function(){return w})),t.d(c,"d",(function(){return _})),t.d(c,"e",(function(){return A})),t.d(c,"c",(function(){return S})),t.d(c,"g",(function(){return M})),t.d(c,"f",(function(){return E})),t.d(c,"h",(function(){return k})),t.d(c,"n",(function(){return I})),t.d(c,"m",(function(){return C}));const f=new(t(3).b)("bytes/5.6.0");function d(e){return!!e.toHexString}function r(e){return e.slice||(e.slice=function(){const c=Array.prototype.slice.call(arguments);return r(new Uint8Array(Array.prototype.slice.apply(e,c)))}),e}function n(e){return v(e)&&!(e.length%2)||l(e)}function o(e){return"number"==typeof e&&e==e&&e%1==0}function l(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"==typeof e)return!1;if(!o(e.length)||e.length<0)return!1;for(let i=0;i<e.length;i++){const c=e[i];if(!o(c)||c<0||c>=256)return!1}return!0}function h(e,c){if(c||(c={}),"number"==typeof e){f.checkSafeUint53(e,"invalid arrayify value");const c=[];for(;e;)c.unshift(255&e),e=parseInt(String(e/256));return 0===c.length&&c.push(0),r(new Uint8Array(c))}if(c.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),d(e)&&(e=e.toHexString()),v(e)){let t=e.substring(2);t.length%2&&("left"===c.hexPad?t="0x0"+t.substring(2):"right"===c.hexPad?t+="0":f.throwArgumentError("hex data is odd-length","value",e));const d=[];for(let i=0;i<t.length;i+=2)d.push(parseInt(t.substring(i,i+2),16));return r(new Uint8Array(d))}return l(e)?r(new Uint8Array(e)):f.throwArgumentError("invalid arrayify value","value",e)}function x(e){const c=e.map(e=>h(e)),t=c.reduce((e,c)=>e+c.length,0),f=new Uint8Array(t);return c.reduce((e,object)=>(f.set(object,e),e+object.length),0),r(f)}function m(e){let c=h(e);if(0===c.length)return c;let t=0;for(;t<c.length&&0===c[t];)t++;return t&&(c=c.slice(t)),c}function y(e,c){(e=h(e)).length>c&&f.throwArgumentError("value out of range","value",arguments[0]);const t=new Uint8Array(c);return t.set(e,c-e.length),r(t)}function v(e,c){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&(!c||e.length===2+2*c)}function w(e,c){if(c||(c={}),"number"==typeof e){f.checkSafeUint53(e,"invalid hexlify value");let c="";for(;e;)c="0123456789abcdef"[15&e]+c,e=Math.floor(e/16);return c.length?(c.length%2&&(c="0"+c),"0x"+c):"0x00"}if("bigint"==typeof e)return(e=e.toString(16)).length%2?"0x0"+e:"0x"+e;if(c.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),d(e))return e.toHexString();if(v(e))return e.length%2&&("left"===c.hexPad?e="0x0"+e.substring(2):"right"===c.hexPad?e+="0":f.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(l(e)){let c="0x";for(let i=0;i<e.length;i++){let t=e[i];c+="0123456789abcdef"[(240&t)>>4]+"0123456789abcdef"[15&t]}return c}return f.throwArgumentError("invalid hexlify value","value",e)}function _(data){if("string"!=typeof data)data=w(data);else if(!v(data)||data.length%2)return null;return(data.length-2)/2}function A(data,e,c){return"string"!=typeof data?data=w(data):(!v(data)||data.length%2)&&f.throwArgumentError("invalid hexData","value",data),e=2+2*e,null!=c?"0x"+data.substring(e,2+2*c):"0x"+data.substring(e)}function S(e){let c="0x";return e.forEach(e=>{c+=w(e).substring(2)}),c}function M(e){const c=E(w(e,{hexPad:"left"}));return"0x"===c?"0x0":c}function E(e){"string"!=typeof e&&(e=w(e)),v(e)||f.throwArgumentError("invalid hex string","value",e),e=e.substring(2);let c=0;for(;c<e.length&&"0"===e[c];)c++;return"0x"+e.substring(c)}function k(e,c){for("string"!=typeof e?e=w(e):v(e)||f.throwArgumentError("invalid hex string","value",e),e.length>2*c+2&&f.throwArgumentError("value out of range","value",arguments[1]);e.length<2*c+2;)e="0x0"+e.substring(2);return e}function I(e){const c={r:"0x",s:"0x",_vs:"0x",recoveryParam:0