text: ["^ ","~:resource-id",["~:shadow.build.npm/resource","node_modules/elliptic/lib/elliptic/ec/signature.js"],"~:js","shadow$provide.module$node_modules$elliptic$lib$elliptic$ec$signature=function(global,require,module,exports){function Signature(options,enc){if(options instanceof Signature)return options;this._importDER(options,enc)||(assert(options.r&&options.s,\"Signature without r or s\"),this.r=new BN(options.r,16),this.s=new BN(options.s,16),this.recoveryParam=void 0===options.recoveryParam?null:options.recoveryParam)}function Position(){this.place=0}function getLength(buf,p){var initial=buf[p.place++];if(!(initial&\n128))return initial;initial&=15;if(0===initial||4<initial)return!1;for(var val=0,i=0,off=p.place;i<initial;i++,off++)val<<=8,val|=buf[off],val>>>=0;if(127>=val)return!1;p.place=off;return val}function rmPadding(buf){for(var i=0,len=buf.length-1;!(buf[i]||buf[i+1]&128)&&i<len;)i++;return 0===i?buf:buf.slice(i)}function constructLength(arr,len){if(!(128>len)){var octets=1+(Math.log(len)/Math.LN2>>>3);for(arr.push(octets|128);--octets;)arr.push(len>>>(octets<<3)&255)}arr.push(len)}var BN=require(\"module$node_modules$bn_DOT_js$lib$bn\"),\nutils=require(\"module$node_modules$elliptic$lib$elliptic$utils\"),assert=utils.assert;module.exports=Signature;Signature.prototype._importDER=function(data,enc){data=utils.toArray(data,enc);enc=new Position;if(48!==data[enc.place++])return!1;var len=getLength(data,enc);if(!1===len||len+enc.place!==data.length||2!==data[enc.place++])return!1;var rlen=getLength(data,enc);if(!1===rlen)return!1;len=data.slice(enc.place,rlen+enc.place);enc.place+=rlen;if(2!==data[enc.place++])return!1;rlen=getLength(data,\nenc);if(!1===rlen||data.length!==rlen+enc.place)return!1;data=data.slice(enc.place,rlen+enc.place);if(0===len[0])if(len[1]&128)len=len.slice(1);else return!1;if(0===data[0])if(data[1]&128)data=data.slice(1);else return!1;this.r=new BN(len);this.s=new BN(data);this.recoveryParam=null;return!0};Signature.prototype.toDER=function(enc){var r=this.r.toArray(),s=this.s.toArray();r[0]&128&&(r=[0].concat(r));s[0]&128&&(s=[0].concat(s));r=rmPadding(r);for(s=rmPadding(s);!(s[0]||s[1]&128);)s=s.slice(1);var arr=\n[2];constructLength(arr,r.length);arr=arr.concat(r);arr.push(2);constructLength(arr,s.length);r=arr.concat(s);s=[48];constructLength(s,r.length);s=s.concat(r);return utils.encode(s,enc)}}","~:source","shadow$provide[\"module$node_modules$elliptic$lib$elliptic$ec$signature\"] = function(global,require,module,exports) {\n'use strict';\n\nvar BN = require('bn.js');\n\nvar utils = require('../utils');\nvar assert = utils.assert;\n\nfunction Signature(options, enc) {\n  if (options instanceof Signature)\n    return options;\n\n  if (this._importDER(options, enc))\n    return;\n\n  assert(options.r && options.s, 'Signature without r or s');\n  this.r = new BN(options.r, 16);\n  this.s = new BN(options.s, 16);\n  if (options.recoveryParam === undefined)\n    this.recoveryParam = null;\n  else\n    this.recoveryParam = options.recoveryParam;\n}\nmodule.exports = Signature;\n\nfunction Position() {\n  this.place = 0;\n}\n\nfunction getLength(buf, p) {\n  var initial = buf[p.place++];\n  if (!(initial & 0x80)) {\n    return initial;\n  }\n  var octetLen = initial & 0xf;\n\n  // Indefinite length or overflow\n  if (octetLen === 0 || octetLen > 4) {\n    return false;\n  }\n\n  var val = 0;\n  for (var i = 0, off = p.place; i < octetLen; i++, off++) {\n    val <<= 8;\n    val |= buf[off];\n    val >>>= 0;\n  }\n\n  // Leading zeroes\n  if (val <= 0x7f) {\n    return false;\n  }\n\n  p.place = off;\n  return val;\n}\n\nfunction rmPadding(buf) {\n  var i = 0;\n  var len = buf.length - 1;\n  while (!buf[i] && !(buf[i + 1] & 0x80) && i < len) {\n    i++;\n  }\n  if (i === 0) {\n    return buf;\n  }\n  return buf.slice(i);\n}\n\nSignature.prototype._importDER = function _importDER(data, enc) {\n  data = utils.toArray(data, enc);\n  var p = new Position();\n  if (data[p.place++] !== 0x30) {\n    return false;\n  }\n  var len = getLength(data, p);\n  if (len === false) {\n    return false;\n  }\n  if ((len + p.place) !== data.length) {\n    return false;\n  }\n  if (data[p.place++] !== 0x02) {\n    return false;\n  }\n  var rlen = getLength(data, p);\n  if (rlen === false) {\n    return false;\n  }\n  var r = data.slice(p.place, rlen + p.place);\n  p.place += rlen;\n  if (data[p.place++] !== 0x02) {\n    return false;\n  }\n  var slen = getLength(data, p);\n  if (slen === false) {\n    return false;\n  }\n  if (data.length !== slen + p.place) {\n    return false;\n  }\n  var s = data.slice(p.place, slen + p.place);\n  if (r[0] === 0) {\n    if (r[1] & 0x80) {\n      r = r.slice(1);\n    } else {\n      // Leading zeroes\n      return false;\n    }\n  }\n  if (s[0] === 0) {\n    if (s[1] & 0x80) {\n      s = s.slice(1);\n    } else {\n      // Leading zeroes\n      return false;\n    }\n  }\n\n  this.r = new BN(r);\n  this.s = new BN(s);\n  this.recoveryParam = null;\n\n  return true;\n};\n\nfunction constructLength(arr, len) {\n  if (len < 0x80) {\n    arr.push(len);\n    return;\n  }\n  var octets = 1 + (Math.log(len) / Math.LN2 >>> 3);\n  arr.push(octets | 0x80);\n  while (--octets) {\n    arr.push((len >>> (octets << 3)) & 0xff);\n  }\n  arr.push(len);\n}\n\nSignature.prototype.toDER = function toDER(enc) {\n  var r = this.r.toArray();\n  var s = this.s.toArray();\n\n  // Pad values\n  if (r[0] & 0x80)\n    r = [ 0 ].concat(r);\n  // Pad values\n  if (s[0] & 0x80)\n    s = [ 0 ].concat(s);\n\n  r = rmPadding(r);\n  s = rmPadding(s);\n\n  while (!s[0] && !(s[1] & 0x80)) {\n    s = s.slice(1);\n  }\n  var arr = [ 0x02 ];\n  constructLength(arr, r.length);\n  arr = arr.concat(r);\n  arr.push(0x02);\n  constructLength(arr, s.length);\n  var backHalf = arr.concat(s);\n  var res = [ 0x30 ];\n  constructLength(res, backHalf.length);\n  res = res.concat(backHalf);\n  return utils.encode(res, enc);\n};\n\n};","~:removed-requires",["~#set",[]],"~:actual-requires",["^5",["~$shadow.js","~$module$node_modules$elliptic$lib$elliptic$utils","~$module$node_modules$bn_DOT_js$lib$bn"]],"~:properties",["^5",["s","recoveryParam","_importDER","place","r","toDER"]],"~:compiled-at",1644840880021,"~:source-map-json","{\n\"version\":3,\n\"file\":\"module$node_modules$elliptic$lib$elliptic$ec$signature.js\",\n\"lineCount\":5,\n\"mappings\":\"AAAAA,cAAA,CAAA,sDAAA,CAA2E,QAAQ,CAACC,MAAD,CAAQC,OAAR,CAAgBC,MAAhB,CAAuBC,OAAvB,CAAgC,CAQnHC,QAASA,UAAS,CAACC,OAAD,CAAUC,GAAV,CAAe,CAC/B,GAAID,OAAJ,WAAuBD,UAAvB,CACE,MAAOC,QAEL,KAAKE,CAAAA,UAAL,CAAgBF,OAAhB,CAAyBC,GAAzB,CAAJ,GAGAE,MAAA,CAAOH,OAAQI,CAAAA,CAAf,EAAoBJ,OAAQK,CAAAA,CAA5B,CAA+B,0BAA/B,CAIE,CAHF,IAAKD,CAAAA,CAGH,CAHO,IAAIE,EAAJ,CAAON,OAAQI,CAAAA,CAAf,CAAkB,EAAlB,CAGP,CAFF,IAAKC,CAAAA,CAEH,CAFO,IAAIC,EAAJ,CAAON,OAAQK,CAAAA,CAAf,CAAkB,EAAlB,CAEP,CAAA,IAAKE,CAAAA,aAAL,CAD4BC,IAAAA,EAA9B,GAAIR,OAAQO,CAAAA,aAAZ,CACuB,IADvB,CAGuBP,OAAQO,CAAAA,aAT/B,CAJ+B,CAiBjCE,QAASA,SAAQ,EAAG,CAClB,IAAKC,CAAAA,KAAL,CAAa,CADK,CAIpBC,QAASA,UAAS,CAACC,GAAD,CAAMC,CAAN,CAAS,CACzB,IAAIC,QAAUF,GAAA,CAAIC,CAAEH,CAAAA,KAAF,EAAJ,CACd,IAAI,EAAEI,OAAF;AAAY,GAAZ,CAAJ,CACE,MAAOA,QAEMA,QAAXC,EAAqB,EAGzB,IAAiB,CAAjB,GAAIA,OAAJ,EAAiC,CAAjC,CAAsBA,OAAtB,CACE,MAAO,CAAA,CAIT,KADA,IAAIC,IAAM,CAAV,CACSC,EAAI,CADb,CACgBC,IAAML,CAAEH,CAAAA,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AA,CAAgBC,GAAhB,CAAqBpB,CAAEiB,CAAAA,MAAvB,CACAG,IAAA,CAAMA,GAAIe,CAAAA,MAAJ,CAAWnC,CAAX,CACNoB,IAAIK,CAAAA,IAAJ,CAAS,CAAT,CACAN,gBAAA,CAAgBC,GAAhB,CAAqBnB,CAAEgB,CAAAA,MAAvB,CACImB,EAAAA,CAAWhB,GAAIe,CAAAA,MAAJ,CAAWlC,CAAX,CACXoC,EAAAA,CAAM,CAAE,EAAF,CACVlB,gBAAA,CAAgBkB,CAAhB,CAAqBD,CAASnB,CAAAA,MAA9B,CACAoB,EAAA,CAAMA,CAAIF,CAAAA,MAAJ,CAAWC,CAAX,CACN,OAAOV,MAAMY,CAAAA,MAAN,CAAaD,CAAb,CAAkBxC,GAAlB,CA1BuC,CA3ImE;\",\n\"sources\":[\"node_modules/elliptic/lib/elliptic/ec/signature.js\"],\n\"sourcesContent\":[\"shadow$provide[\\\"module$node_modules$elliptic$lib$elliptic$ec$signature\\\"] = function(global,require,module,exports) {\\n'use strict';\\n\\nvar BN = require('bn.js');\\n\\nvar utils = require('../utils');\\nvar assert = utils.assert;\\n\\nfunction Signature(options, enc) {\\n  if (options instanceof Signature)\\n    return options;\\n\\n  if (this._importDER(options, enc))\\n    return;\\n\\n  assert(options.r && options.s, 'Signature without r or s');\\n  this.r = new BN(options.r, 16);\\n  this.s = new BN(options.s, 16);\\n  if (options.recoveryParam === undefined)\\n    this.recoveryParam = null;\\n  else\\n    this.recoveryParam = options.recoveryParam;\\n}\\nmodule.exports = Signature;\\n\\nfunction Position() {\\n  this.place = 0;\\n}\\n\\nfunction getLength(buf, p) {\\n  var initial = buf[p.place++];\\n  if (!(initial & 0x80)) {\\n    return initial;\\n  }\\n  var octetLen = initial & 0xf;\\n\\n  // Indefinite length or overflow\\n  if (octetLen === 0 || octetLen > 4) {\\n    return false;\\n  }\\n\\n  var val = 0;\\n  for (var i = 0, off = p.place; i < octetLen; i++, off++) {\\n    val <<= 8;\\n    val |= buf[off];\\n    val >>>= 0;\\n  }\\n\\n  // Leading zeroes\\n  if (val <= 0x7f) {\\n    return false;\\n  }\\n\\n  p.place = off;\\n  return val;\\n}\\n\\nfunction rmPadding(buf) {\\n  var i = 0;\\n  var len = buf.length - 1;\\n  while (!buf[i] && !(buf[i + 1] & 0x80) && i < len) {\\n    i++;\\n  }\\n  if (i === 0) {\\n    return buf;\\n  }\\n  return buf.slice(i);\\n}\\n\\nSignature.prototype._importDER = function _importDER(data, enc) {\\n  data = utils.toArray(data, enc);\\n  var p = new Position();\\n  if (data[p.place++] !== 0x30) {\\n    return false;\\n  }\\n  var len = getLength(data, p);\\n  if (len === false) {\\n    return false;\\n  }\\n  if ((len + p.place) !== data.length) {\\n    return false;\\n  }\\n  if (data[p.place++] !== 0x02) {\\n    return false;\\n  }\\n  var rlen = getLength(data, p);\\n  if (rlen === false) {\\n    return false;\\n  }\\n  var r = data.slice(p.place, rlen + p.place);\\n  p.place += rlen;\\n  if (data[p.place++] !== 0x02) {\\n    return false;\\n  }\\n  var slen = getLength(data, p);\\n  if (slen === false) {\\n    return false;\\n  }\\n  if (data.length !== slen + p.place) {\\n    return false;\\n  }\\n  var s = data.slice(p.place, slen + p.place);\\n  if (r[0] === 0) {\\n    if (r[1] & 0x80) {\\n      r = r.slice(1);\\n    } else {\\n      // Leading zeroes\\n      return false;\\n    }\\n  }\\n  if (s[0] === 0) {\\n    if (s[1] & 0x80) {\\n      s = s.slice(1);\\n    } else {\\n      // Leading zeroes\\n      return false;\\n    }\\n  }\\n\\n  this.r = new BN(r);\\n  this.s = new BN(s);\\n  this.recoveryParam = null;\\n\\n  return true;\\n};\\n\\nfunction constructLength(arr, len) {\\n  if (len < 0x80) {\\n    arr.push(len);\\n    return;\\n  }\\n  var octets = 1 + (Math.log(len) / Math.LN2 >>> 3);\\n  arr.push(octets | 0x80);\\n  while (--octets) {\\n    arr.push((len >>> (octets << 3)) & 0xff);\\n  }\\n  arr.push(len);\\n}\\n\\nSignature.prototype.toDER = function toDER(enc) {\\n  var r = this.r.toArray();\\n  var s = this.s.toArray();\\n\\n  // Pad values\\n  if (r[0] & 0x80)\\n    r = [ 0 ].concat(r);\\n  // Pad values\\n  if (s[0] & 0x80)\\n    s = [ 0 ].concat(s);\\n\\n  r = rmPadding(r);\\n  s = rmPadding(s);\\n\\n  while (!s[0] && !(s[1] & 0x80)) {\\n    s = s.slice(1);\\n  }\\n  var arr = [ 0x02 ];\\n  constructLength(arr, r.length);\\n  arr = arr.concat(r);\\n  arr.push(0x02);\\n  constructLength(arr, s.length);\\n  var backHalf = arr.concat(s);\\n  var res = [ 0x30 ];\\n  constructLength(res, backHalf.length);\\n  res = res.concat(backHalf);\\n  return utils.encode(res, enc);\\n};\\n\\n};\"],\n\"names\":[\"shadow$provide\",\"global\",\"require\",\"module\",\"exports\",\"Signature\",\"options\",\"enc\",\"_importDER\",\"assert\",\"r\",\"s\",\"BN\",\"recoveryParam\",\"undefined\",\"Position\",\"place\",\"getLength\",\"buf\",\"p\",\"initial\",\"octetLen\",\"val\",\"i\",\"off\",\"rmPadding\",\"len\",\"length\",\"slice\",\"constructLength\",\"arr\",\"octets\",\"Math\",\"log\",\"LN2\",\"push\",\"utils\",\"prototype\",\"Signature.prototype._importDER\",\"data\",\"toArray\",\"rlen\",\"slen\",\"toDER\",\"Signature.prototype.toDER\",\"concat\",\"backHalf\",\"res\",\"encode\"]\n}\n"]