golos-lib-js
Version:
Golos-js the JavaScript library with API for GOLOS blockchain
2 lines • 521 kB
JavaScript
/*! For license information please see golos.min.js.LICENSE.txt */
(()=>{var t={2:(t,e,r)=>{var n=r(2199),i=r(4664),o=r(5950);t.exports=function(t){return n(t,o,i)}},4:function(t,e){var r,n;void 0===(n="function"==typeof(r=function(){"use strict";function t(t,e,r){this.low=0|t,this.high=0|e,this.unsigned=!!r}function e(t){return!0===(t&&t.__isLong__)}t.prototype.__isLong__,Object.defineProperty(t.prototype,"__isLong__",{value:!0,enumerable:!1,configurable:!1}),t.isLong=e;var r={},n={};function i(t,e){var i,o,s;return e?(s=0<=(t>>>=0)&&t<256)&&(o=n[t])?o:(i=A(t,(0|t)<0?-1:0,!0),s&&(n[t]=i),i):(s=-128<=(t|=0)&&t<128)&&(o=r[t])?o:(i=A(t,t<0?-1:0,!1),s&&(r[t]=i),i)}function o(t,e){if(isNaN(t)||!isFinite(t))return e?p:h;if(e){if(t<0)return p;if(t>=g)return _}else{if(t<=-u)return E;if(t+1>=u)return y}return t<0?o(-t,e).neg():A(t%f|0,t/f|0,e)}function A(e,r,n){return new t(e,r,n)}t.fromInt=i,t.fromNumber=o,t.fromBits=A;var s=Math.pow;function a(t,e,r){if(0===t.length)throw Error("empty string");if("NaN"===t||"Infinity"===t||"+Infinity"===t||"-Infinity"===t)return h;if("number"==typeof e?(r=e,e=!1):e=!!e,(r=r||10)<2||36<r)throw RangeError("radix");var n;if((n=t.indexOf("-"))>0)throw Error("interior hyphen");if(0===n)return a(t.substring(1),e,r).neg();for(var i=o(s(r,8)),A=h,c=0;c<t.length;c+=8){var f=Math.min(8,t.length-c),g=parseInt(t.substring(c,c+f),r);if(f<8){var u=o(s(r,f));A=A.mul(u).add(o(g))}else A=(A=A.mul(i)).add(o(g))}return A.unsigned=e,A}function c(e){return e instanceof t?e:"number"==typeof e?o(e):"string"==typeof e?a(e):A(e.low,e.high,e.unsigned)}t.fromString=a,t.fromValue=c;var f=4294967296,g=f*f,u=g/2,l=i(1<<24),h=i(0);t.ZERO=h;var p=i(0,!0);t.UZERO=p;var I=i(1);t.ONE=I;var d=i(1,!0);t.UONE=d;var B=i(-1);t.NEG_ONE=B;var y=A(-1,2147483647,!1);t.MAX_VALUE=y;var _=A(-1,-1,!0);t.MAX_UNSIGNED_VALUE=_;var E=A(0,-2147483648,!1);t.MIN_VALUE=E;var C=t.prototype;return C.toInt=function(){return this.unsigned?this.low>>>0:this.low},C.toNumber=function(){return this.unsigned?(this.high>>>0)*f+(this.low>>>0):this.high*f+(this.low>>>0)},C.toString=function(t){if((t=t||10)<2||36<t)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(E)){var e=o(t),r=this.div(e),n=r.mul(e).sub(this);return r.toString(t)+n.toInt().toString(t)}return"-"+this.neg().toString(t)}for(var i=o(s(t,6),this.unsigned),A=this,a="";;){var c=A.div(i),f=(A.sub(c.mul(i)).toInt()>>>0).toString(t);if((A=c).isZero())return f+a;for(;f.length<6;)f="0"+f;a=""+f+a}},C.getHighBits=function(){return this.high},C.getHighBitsUnsigned=function(){return this.high>>>0},C.getLowBits=function(){return this.low},C.getLowBitsUnsigned=function(){return this.low>>>0},C.getNumBitsAbs=function(){if(this.isNegative())return this.eq(E)?64:this.neg().getNumBitsAbs();for(var t=0!=this.high?this.high:this.low,e=31;e>0&&!(t&1<<e);e--);return 0!=this.high?e+33:e+1},C.isZero=function(){return 0===this.high&&0===this.low},C.isNegative=function(){return!this.unsigned&&this.high<0},C.isPositive=function(){return this.unsigned||this.high>=0},C.isOdd=function(){return!(1&~this.low)},C.isEven=function(){return!(1&this.low)},C.equals=function(t){return e(t)||(t=c(t)),(this.unsigned===t.unsigned||this.high>>>31!=1||t.high>>>31!=1)&&this.high===t.high&&this.low===t.low},C.eq=C.equals,C.notEquals=function(t){return!this.eq(t)},C.neq=C.notEquals,C.lessThan=function(t){return this.comp(t)<0},C.lt=C.lessThan,C.lessThanOrEqual=function(t){return this.comp(t)<=0},C.lte=C.lessThanOrEqual,C.greaterThan=function(t){return this.comp(t)>0},C.gt=C.greaterThan,C.greaterThanOrEqual=function(t){return this.comp(t)>=0},C.gte=C.greaterThanOrEqual,C.compare=function(t){if(e(t)||(t=c(t)),this.eq(t))return 0;var r=this.isNegative(),n=t.isNegative();return r&&!n?-1:!r&&n?1:this.unsigned?t.high>>>0>this.high>>>0||t.high===this.high&&t.low>>>0>this.low>>>0?-1:1:this.sub(t).isNegative()?-1:1},C.comp=C.compare,C.negate=function(){return!this.unsigned&&this.eq(E)?E:this.not().add(I)},C.neg=C.negate,C.add=function(t){e(t)||(t=c(t));var r=this.high>>>16,n=65535&this.high,i=this.low>>>16,o=65535&this.low,s=t.high>>>16,a=65535&t.high,f=t.low>>>16,g=0,u=0,l=0,h=0;return l+=(h+=o+(65535&t.low))>>>16,u+=(l+=i+f)>>>16,g+=(u+=n+a)>>>16,g+=r+s,A((l&=65535)<<16|(h&=65535),(g&=65535)<<16|(u&=65535),this.unsigned)},C.subtract=function(t){return e(t)||(t=c(t)),this.add(t.neg())},C.sub=C.subtract,C.multiply=function(t){if(this.isZero())return h;if(e(t)||(t=c(t)),t.isZero())return h;if(this.eq(E))return t.isOdd()?E:h;if(t.eq(E))return this.isOdd()?E:h;if(this.isNegative())return t.isNegative()?this.neg().mul(t.neg()):this.neg().mul(t).neg();if(t.isNegative())return this.mul(t.neg()).neg();if(this.lt(l)&&t.lt(l))return o(this.toNumber()*t.toNumber(),this.unsigned);var r=this.high>>>16,n=65535&this.high,i=this.low>>>16,s=65535&this.low,a=t.high>>>16,f=65535&t.high,g=t.low>>>16,u=65535&t.low,p=0,I=0,d=0,B=0;return d+=(B+=s*u)>>>16,I+=(d+=i*u)>>>16,d&=65535,I+=(d+=s*g)>>>16,p+=(I+=n*u)>>>16,I&=65535,p+=(I+=i*g)>>>16,I&=65535,p+=(I+=s*f)>>>16,p+=r*u+n*g+i*f+s*a,A((d&=65535)<<16|(B&=65535),(p&=65535)<<16|(I&=65535),this.unsigned)},C.mul=C.multiply,C.divide=function(t){if(e(t)||(t=c(t)),t.isZero())throw Error("division by zero");if(this.isZero())return this.unsigned?p:h;var r,n,i;if(this.unsigned){if(t.unsigned||(t=t.toUnsigned()),t.gt(this))return p;if(t.gt(this.shru(1)))return d;i=p}else{if(this.eq(E))return t.eq(I)||t.eq(B)?E:t.eq(E)?I:(r=this.shr(1).div(t).shl(1)).eq(h)?t.isNegative()?I:B:(n=this.sub(t.mul(r)),i=r.add(n.div(t)));if(t.eq(E))return this.unsigned?p:h;if(this.isNegative())return t.isNegative()?this.neg().div(t.neg()):this.neg().div(t).neg();if(t.isNegative())return this.div(t.neg()).neg();i=h}for(n=this;n.gte(t);){r=Math.max(1,Math.floor(n.toNumber()/t.toNumber()));for(var A=Math.ceil(Math.log(r)/Math.LN2),a=A<=48?1:s(2,A-48),f=o(r),g=f.mul(t);g.isNegative()||g.gt(n);)g=(f=o(r-=a,this.unsigned)).mul(t);f.isZero()&&(f=I),i=i.add(f),n=n.sub(g)}return i},C.div=C.divide,C.modulo=function(t){return e(t)||(t=c(t)),this.sub(this.div(t).mul(t))},C.mod=C.modulo,C.not=function(){return A(~this.low,~this.high,this.unsigned)},C.and=function(t){return e(t)||(t=c(t)),A(this.low&t.low,this.high&t.high,this.unsigned)},C.or=function(t){return e(t)||(t=c(t)),A(this.low|t.low,this.high|t.high,this.unsigned)},C.xor=function(t){return e(t)||(t=c(t)),A(this.low^t.low,this.high^t.high,this.unsigned)},C.shiftLeft=function(t){return e(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?A(this.low<<t,this.high<<t|this.low>>>32-t,this.unsigned):A(0,this.low<<t-32,this.unsigned)},C.shl=C.shiftLeft,C.shiftRight=function(t){return e(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?A(this.low>>>t|this.high<<32-t,this.high>>t,this.unsigned):A(this.high>>t-32,this.high>=0?0:-1,this.unsigned)},C.shr=C.shiftRight,C.shiftRightUnsigned=function(t){if(e(t)&&(t=t.toInt()),0==(t&=63))return this;var r=this.high;return t<32?A(this.low>>>t|r<<32-t,r>>>t,this.unsigned):A(32===t?r:r>>>t-32,0,this.unsigned)},C.shru=C.shiftRightUnsigned,C.toSigned=function(){return this.unsigned?A(this.low,this.high,!1):this},C.toUnsigned=function(){return this.unsigned?this:A(this.low,this.high,!0)},C.toBytes=function(t){return t?this.toBytesLE():this.toBytesBE()},C.toBytesLE=function(){var t=this.high,e=this.low;return[255&e,e>>>8&255,e>>>16&255,e>>>24&255,255&t,t>>>8&255,t>>>16&255,t>>>24&255]},C.toBytesBE=function(){var t=this.high,e=this.low;return[t>>>24&255,t>>>16&255,t>>>8&255,255&t,e>>>24&255,e>>>16&255,e>>>8&255,255&e]},t})?r.apply(e,[]):r)||(t.exports=n)},9:()=>{},34:(t,e,r)=>{"use strict";var n=r(7282);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},71:t=>{"use strict";t.exports=[{roles:["posting"],operation:"vote",params:["voter","author","permlink","weight"]},{roles:["posting"],operation:"comment",params:["parent_author","parent_permlink","author","permlink","title","body","json_metadata"]},{roles:["active","owner"],operation:"transfer",params:["from","to","amount","memo"]},{roles:["active"],operation:"transfer_to_vesting",params:["from","to","amount"]},{roles:["active"],operation:"withdraw_vesting",params:["account","vesting_shares"]},{roles:["active"],operation:"limit_order_create",params:["owner","orderid","amount_to_sell","min_to_receive","fill_or_kill","expiration"]},{roles:["active"],operation:"limit_order_cancel",params:["owner","orderid"]},{roles:["active"],operation:"price",params:["base","quote"]},{roles:["active"],operation:"feed_publish",params:["publisher","exchange_rate"]},{roles:["active"],operation:"convert",params:["owner","requestid","amount"]},{roles:["active"],operation:"account_create",params:["fee","creator","new_account_name","owner","active","posting","memo_key","json_metadata"]},{roles:["owner","active"],operation:"account_update",params:["account","owner","active","posting","memo_key","json_metadata"]},{roles:["active"],operation:"witness_update",params:["owner","url","block_signing_key","props","fee"]},{roles:["active"],operation:"account_witness_vote",params:["account","witness","approve"]},{roles:["active"],operation:"account_witness_proxy",params:["account","proxy"]},{roles:["active"],operation:"pow",params:["worker","input","signature","work"]},{roles:["active"],operation:"custom",params:["required_auths","id","data"]},{roles:["posting"],operation:"delete_comment",params:["author","permlink"]},{roles:["posting","active"],operation:"custom_json",params:["required_auths","required_posting_auths","id","json"]},{roles:["posting"],operation:"comment_options",params:["author","permlink","max_accepted_payout","percent_steem_dollars","allow_votes","allow_curation_rewards","extensions"]},{roles:["active"],operation:"set_withdraw_vesting_route",params:["from_account","to_account","percent","auto_vest"]},{roles:["active"],operation:"limit_order_create2",params:["owner","orderid","amount_to_sell","exchange_rate","fill_or_kill","expiration"]},{roles:["active"],operation:"challenge_authority",params:["challenger","challenged","require_owner"]},{roles:["active","owner"],operation:"prove_authority",params:["challenged","require_owner"]},{roles:["active"],operation:"request_account_recovery",params:["recovery_account","account_to_recover","new_owner_authority","extensions"]},{roles:["owner"],operation:"recover_account",params:["account_to_recover","new_owner_authority","recent_owner_authority","extensions"]},{roles:["owner"],operation:"change_recovery_account",params:["account_to_recover","new_recovery_account","extensions"]},{roles:["active"],operation:"escrow_transfer",params:["from","to","agent","escrow_id","sbd_amount","steem_amount","fee","ratification_deadline","escrow_expiration","json_meta"]},{roles:["active"],operation:"escrow_dispute",params:["from","to","agent","who","escrow_id"]},{roles:["active"],operation:"escrow_release",params:["from","to","agent","who","receiver","escrow_id","sbd_amount","steem_amount"]},{roles:["active"],operation:"pow2",params:["input","pow_summary"]},{roles:["active"],operation:"escrow_approve",params:["from","to","agent","who","escrow_id","approve"]},{roles:["active"],operation:"transfer_to_savings",params:["from","to","amount","memo"]},{roles:["active"],operation:"transfer_from_savings",params:["from","request_id","to","amount","memo"]},{roles:["active"],operation:"cancel_transfer_from_savings",params:["from","request_id"]},{roles:["posting","active","owner"],operation:"custom_binary",params:["required_owner_auths","required_active_auths","required_posting_auths","required_auths","id","data"]},{roles:["owner"],operation:"decline_voting_rights",params:["account","decline"]},{roles:["active"],operation:"reset_account",params:["reset_account","account_to_reset","new_owner_authority"]},{roles:["owner","posting"],operation:"set_reset_account",params:["account","current_reset_account","reset_account"]},{roles:["posting"],operation:"claim_reward_balance",params:["account","reward_steem","reward_sbd","reward_vests"]},{roles:["active"],operation:"fill_convert_request",params:["owner","requestid","amount_in","amount_out"]},{roles:["posting"],operation:"comment_reward",params:["author","permlink","payout"]},{roles:["active"],operation:"liquidity_reward",params:["owner","payout"]},{roles:["active"],operation:"interest",params:["owner","interest"]},{roles:["active"],operation:"fill_vesting_withdraw",params:["from_account","to_account","withdrawn","deposited"]},{roles:["posting"],operation:"fill_order",params:["current_owner","current_orderid","current_pays","current_trade_fee","current_trade_fee_receiver","open_owner","open_orderid","open_pays","open_trade_fee","open_trade_fee_receiver"]},{roles:["posting"],operation:"fill_transfer_from_savings",params:["from","to","amount","request_id","memo"]},{roles:["active","owner"],operation:"delegate_vesting_shares",params:["delegator","delegatee","vesting_shares"]},{roles:["active","owner"],operation:"account_create_with_delegation",params:["fee","delegation","creator","new_account_name","owner","active","posting","memo_key","json_metadata","extensions"]},{roles:["active","owner"],operation:"account_create_with_invite",params:["invite_secret","creator","new_account_name","owner","active","posting","memo_key","json_metadata","extensions"]},{roles:["posting"],operation:"account_metadata",params:["account","json_metadata"]},{roles:["active","owner"],operation:"proposal_create",params:["author","title","memo","expiration_time","proposed_operations","review_period_time","extensions"]},{roles:["posting","active","owner"],operation:"proposal_update",params:["author","title","active_approvals_to_add","active_approvals_to_remove","owner_approvals_to_add","owner_approvals_to_remove","posting_approvals_to_add","posting_approvals_to_remove","key_approvals_to_add","key_approvals_to_remove","extensions"]},{roles:["active","owner"],operation:"proposal_delete",params:["author","title","requester","extensions"]},{roles:["active","owner"],operation:"chain_properties_update",params:["owner","props"]},{roles:["active"],operation:"break_free_referral",params:["referral","extensions"]},{roles:["active"],operation:"delegate_vesting_shares_with_interest",params:["delegator","delegatee","vesting_shares","interest_rate","extensions"]},{roles:["active"],operation:"reject_vesting_shares_delegation",params:["delegator","delegatee","extensions"]},{roles:["posting"],operation:"worker_request",params:["author","permlink","worker","required_amount_min","required_amount_max","vest_reward","duration","extensions"]},{roles:["posting"],operation:"worker_request_delete",params:["author","permlink","extensions"]},{roles:["posting"],operation:"worker_request_vote",params:["voter","author","permlink","vote_percent","extensions"]},{roles:["posting"],operation:"claim",params:["from","to","amount","to_vesting","extensions"]},{roles:["posting"],operation:"donate",params:["from","to","amount","memo","extensions"]},{roles:["active"],operation:"transfer_to_tip",params:["from","to","amount","memo","extensions"]},{roles:["active"],operation:"transfer_from_tip",params:["from","to","amount","memo","extensions"]},{roles:["active"],operation:"invite",params:["creator","balance","invite_key","extensions"]},{roles:["active"],operation:"invite_claim",params:["initiator","receiver","invite_secret","extensions"]},{roles:["active"],operation:"asset_create",params:["creator","max_supply","allow_fee","allow_override_transfer","json_metadata","extensions"]},{roles:["active"],operation:"asset_update",params:["creator","symbol","symbols_whitelist","fee_percent","json_metadata","extensions"]},{roles:["active"],operation:"asset_issue",params:["creator","amount","to","extensions"]},{roles:["active"],operation:"asset_transfer",params:["creator","symbol","new_owner","extensions"]},{roles:["active"],operation:"override_transfer",params:["creator","from","to","amount","memo","extensions"]},{roles:["active"],operation:"invite_donate",params:["from","invite_key","amount","memo","extensions"]},{roles:["active"],operation:"invite_transfer",params:["from","to","amount","memo","extensions"]},{roles:["active"],operation:"limit_order_cancel_ex",params:["owner","orderid","extensions"]},{roles:["posting"],operation:"account_setup",params:["account","settings","extensions"]},{roles:["posting"],operation:"paid_subscription_create",params:["author","oid","cost","tip_cost","allow_prepaid","interval","executions","extensions"]},{roles:["posting"],operation:"paid_subscription_update",params:["author","oid","cost","tip_cost","interval","executions","extensions"]},{roles:["posting"],operation:"paid_subscription_delete",params:["author","oid","extensions"]},{roles:["posting","active"],operation:"paid_subscription_transfer",params:["from","to","oid","amount","memo","from_tip","extensions"]},{roles:["posting"],operation:"paid_subscription_cancel",params:["subscriber","author","oid","extensions"]},{roles:["active"],operation:"nft_collection",params:["creator","name","json_metadata","max_token_count","extensions"]},{roles:["active"],operation:"nft_collection_delete",params:["creator","name","extensions"]},{roles:["active"],operation:"nft_issue",params:["creator","name","to","json_metadata","extensions"]},{roles:["active"],operation:"nft_transfer",params:["token_id","from","to","memo","extensions"]},{roles:["active"],operation:"nft_sell",params:["seller","token_id","buyer","order_id","price","extensions"]},{roles:["active"],operation:"nft_buy",params:["buyer","name","token_id","order_id","price","extensions"]},{roles:["active"],operation:"nft_cancel_order",params:["owner","order_id","extensions"]},{roles:["active"],operation:"nft_auction",params:["owner","token_id","min_price","expiration","extensions"]}]},79:(t,e,r)=>{var n=r(3702),i=r(80),o=r(4739),A=r(8655),s=r(1175);function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=i,a.prototype.get=o,a.prototype.has=A,a.prototype.set=s,t.exports=a},80:(t,e,r)=>{var n=r(6025),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0||(r==e.length-1?e.pop():i.call(e,r,1),--this.size,0))}},104:(t,e,r)=>{var n=r(3661);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var A=t.apply(this,n);return r.cache=o.set(i,A)||o,A};return r.cache=new(i.Cache||n),r}i.Cache=n,t.exports=i},181:t=>{t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},200:(t,e,r)=>{"use strict";var n=r(8287).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.decode=f,e.encode=g;var i=a(r(8264)),o=a(r(4148)),A=a(r(1338)),s=r(738);function a(t){return t&&t.__esModule?t:{default:t}}const c=r(3801).ops.encrypted_memo;function f(t,e){if((0,o.default)(e,"memo is required"),o.default.equal(typeof e,"string","memo"),!/^#/.test(e))return e;e=e.substring(1),(0,o.default)(t,"private_key is required"),l(),t=h(t),e=A.default.decode(e),e=c.fromBuffer(new n(e,"binary"));const{from:r,to:a,nonce:f,check:g,encrypted:u}=e,p=t.toPublicKey().toString()===r.toString()?a.toString():r.toString();e=s.Aes.decrypt(t,p,f,u,g);const I=i.default.fromBinary(e.toString("binary"),i.default.DEFAULT_CAPACITY,i.default.LITTLE_ENDIAN);try{return I.mark(),"#"+I.readVString()}catch(t){return I.reset(),"#"+(e=new n(I.toString("binary"),"binary").toString("utf-8"))}}function g(t,e,r,a){if((0,o.default)(r,"memo is required"),o.default.equal(typeof r,"string","memo"),!/^#/.test(r))return r;r=r.substring(1),(0,o.default)(t,"private_key is required"),(0,o.default)(e,"public_key is required"),l(),t=h(t),e=p(e);const f=new i.default(i.default.DEFAULT_CAPACITY,i.default.LITTLE_ENDIAN);f.writeVString(r),r=new n(f.copy(0,f.offset).toBinary(),"binary");const{nonce:g,message:u,checksum:I}=s.Aes.encrypt(t,e,r,a);return r=c.fromObject({from:t.toPublicKey(),to:e,nonce:g,check:I,encrypted:u}),r=c.toBuffer(r),"#"+A.default.encode(new n(r,"binary"))}let u;function l(){if(void 0===u){let t;u=!0;try{const e="5JdeC9P7Pbd1uGdFVEsJ41EkEnADbbHGq6p1BwFxm6txNBsQnsw";t=f(e,g(e,"GLS8m5UgaFAAYQRuaNejYdS8FVLVp9Ss3K1qAVk5de6F8s3HnVbvA","#memo爱"))}catch(t){console.error(t)}finally{u="#memo爱"===t}}if(!1===u)throw new Error("This environment does not support encryption.")}const h=t=>t?t.d?t:s.PrivateKey.fromWif(t):t,p=t=>t?t.Q?t:s.PublicKey.fromString(t):t},251:(t,e)=>{e.read=function(t,e,r,n,i){var o,A,s=8*i-n-1,a=(1<<s)-1,c=a>>1,f=-7,g=r?i-1:0,u=r?-1:1,l=t[e+g];for(g+=u,o=l&(1<<-f)-1,l>>=-f,f+=s;f>0;o=256*o+t[e+g],g+=u,f-=8);for(A=o&(1<<-f)-1,o>>=-f,f+=n;f>0;A=256*A+t[e+g],g+=u,f-=8);if(0===o)o=1-c;else{if(o===a)return A?NaN:1/0*(l?-1:1);A+=Math.pow(2,n),o-=c}return(l?-1:1)*A*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var A,s,a,c=8*o-i-1,f=(1<<c)-1,g=f>>1,u=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,l=n?0:o-1,h=n?1:-1,p=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,A=f):(A=Math.floor(Math.log(e)/Math.LN2),e*(a=Math.pow(2,-A))<1&&(A--,a*=2),(e+=A+g>=1?u/a:u*Math.pow(2,1-g))*a>=2&&(A++,a/=2),A+g>=f?(s=0,A=f):A+g>=1?(s=(e*a-1)*Math.pow(2,i),A+=g):(s=e*Math.pow(2,g-1)*Math.pow(2,i),A=0));i>=8;t[r+l]=255&s,l+=h,s/=256,i-=8);for(A=A<<i|s,c+=i;c>0;t[r+l]=255&A,l+=h,A/=256,c-=8);t[r+l-h]|=128*p}},289:(t,e,r)=>{var n=r(2651);t.exports=function(t){return n(this,t).get(t)}},294:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},295:(t,e,r)=>{var n=r(8287).Buffer;t.exports=function(t,e){for(var r=Math.min(t.length,e.length),i=new n(r),o=0;o<r;++o)i[o]=t[o]^e[o];return i}},308:t=>{var e="\\ud800-\\udfff",r="["+e+"]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^"+e+"]",A="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",a="(?:"+n+"|"+i+")?",c="[\\ufe0e\\ufe0f]?",f=c+a+"(?:\\u200d(?:"+[o,A,s].join("|")+")"+c+a+")*",g="(?:"+[o+n+"?",n,A,s,r].join("|")+")",u=RegExp(i+"(?="+i+")|"+g+f,"g");t.exports=function(t){for(var e=u.lastIndex=0;u.test(t);)++e;return e}},320:(t,e,r)=>{var n=r(8276);t.exports=function(t){return(new n).update(t).digest()}},345:(t,e,r)=>{t.exports=r(7007).EventEmitter},346:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},361:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},392:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},453:(t,e,r)=>{"use strict";var n,i=SyntaxError,o=Function,A=TypeError,s=function(t){try{return o('"use strict"; return ('+t+").constructor;")()}catch(t){}},a=Object.getOwnPropertyDescriptor;if(a)try{a({},"")}catch(t){a=null}var c=function(){throw new A},f=a?function(){try{return c}catch(t){try{return a(arguments,"callee").get}catch(t){return c}}}():c,g=r(4039)(),u=Object.getPrototypeOf||function(t){return t.__proto__},l={},h="undefined"==typeof Uint8Array?n:u(Uint8Array),p={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":g?u([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":l,"%AsyncGenerator%":l,"%AsyncGeneratorFunction%":l,"%AsyncIteratorPrototype%":l,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":l,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g?u(u([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&g?u((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&g?u((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g?u(""[Symbol.iterator]()):n,"%Symbol%":g?Symbol:n,"%SyntaxError%":i,"%ThrowTypeError%":f,"%TypedArray%":h,"%TypeError%":A,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet},I=function t(e){var r;if("%AsyncFunction%"===e)r=s("async function () {}");else if("%GeneratorFunction%"===e)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=s("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&(r=u(i.prototype))}return p[e]=r,r},d={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},B=r(6743),y=r(9030),_=B.call(Function.call,Array.prototype.concat),E=B.call(Function.apply,Array.prototype.splice),C=B.call(Function.call,String.prototype.replace),w=B.call(Function.call,String.prototype.slice),m=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Q=/\\(\\)?/g,b=function(t,e){var r,n=t;if(y(d,n)&&(n="%"+(r=d[n])[0]+"%"),y(p,n)){var o=p[n];if(o===l&&(o=I(n)),void 0===o&&!e)throw new A("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new i("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new A("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new A('"allowMissing" argument must be a boolean');var r=function(t){var e=w(t,0,1),r=w(t,-1);if("%"===e&&"%"!==r)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new i("invalid intrinsic syntax, expected opening `%`");var n=[];return C(t,m,(function(t,e,r,i){n[n.length]=r?C(i,Q,"$1"):e||t})),n}(t),n=r.length>0?r[0]:"",o=b("%"+n+"%",e),s=o.name,c=o.value,f=!1,g=o.alias;g&&(n=g[0],E(r,_([0,1],g)));for(var u=1,l=!0;u<r.length;u+=1){var h=r[u],I=w(h,0,1),d=w(h,-1);if(('"'===I||"'"===I||"`"===I||'"'===d||"'"===d||"`"===d)&&I!==d)throw new i("property names with quotes must have matching quotes");if("constructor"!==h&&l||(f=!0),y(p,s="%"+(n+="."+h)+"%"))c=p[s];else if(null!=c){if(!(h in c)){if(!e)throw new A("base intrinsic for "+t+" exists, but the property is not available.");return}if(a&&u+1>=r.length){var B=a(c,h);c=(l=!!B)&&"get"in B&&!("originalValue"in B.get)?B.get:c[h]}else l=y(c,h),c=c[h];l&&!f&&(p[s]=c)}}return c}},462:(t,e,r)=>{var n=r(2861).Buffer;function i(t){n.isBuffer(t)||(t=n.from(t));for(var e=t.length/4|0,r=new Array(e),i=0;i<e;i++)r[i]=t.readUInt32BE(4*i);return r}function o(t){for(;0<t.length;t++)t[0]=0}function A(t,e,r,n,i){for(var o,A,s,a,c=r[0],f=r[1],g=r[2],u=r[3],l=t[0]^e[0],h=t[1]^e[1],p=t[2]^e[2],I=t[3]^e[3],d=4,B=1;B<i;B++)o=c[l>>>24]^f[h>>>16&255]^g[p>>>8&255]^u[255&I]^e[d++],A=c[h>>>24]^f[p>>>16&255]^g[I>>>8&255]^u[255&l]^e[d++],s=c[p>>>24]^f[I>>>16&255]^g[l>>>8&255]^u[255&h]^e[d++],a=c[I>>>24]^f[l>>>16&255]^g[h>>>8&255]^u[255&p]^e[d++],l=o,h=A,p=s,I=a;return o=(n[l>>>24]<<24|n[h>>>16&255]<<16|n[p>>>8&255]<<8|n[255&I])^e[d++],A=(n[h>>>24]<<24|n[p>>>16&255]<<16|n[I>>>8&255]<<8|n[255&l])^e[d++],s=(n[p>>>24]<<24|n[I>>>16&255]<<16|n[l>>>8&255]<<8|n[255&h])^e[d++],a=(n[I>>>24]<<24|n[l>>>16&255]<<16|n[h>>>8&255]<<8|n[255&p])^e[d++],[o>>>=0,A>>>=0,s>>>=0,a>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],a=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],A=0,s=0,a=0;a<256;++a){var c=s^s<<1^s<<2^s<<3^s<<4;c=c>>>8^255&c^99,r[A]=c,n[c]=A;var f=t[A],g=t[f],u=t[g],l=257*t[c]^16843008*c;i[0][A]=l<<24|l>>>8,i[1][A]=l<<16|l>>>16,i[2][A]=l<<8|l>>>24,i[3][A]=l,l=16843009*u^65537*g^257*f^16843008*A,o[0][c]=l<<24|l>>>8,o[1][c]=l<<16|l>>>16,o[2][c]=l<<8|l>>>24,o[3][c]=l,0===A?A=s=1:(A=f^t[t[t[u^f]]],s^=t[t[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();function c(t){this._key=i(t),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var t=this._key,e=t.length,r=e+6,n=4*(r+1),i=[],o=0;o<e;o++)i[o]=t[o];for(o=e;o<n;o++){var A=i[o-1];o%e==0?(A=A<<8|A>>>24,A=a.SBOX[A>>>24]<<24|a.SBOX[A>>>16&255]<<16|a.SBOX[A>>>8&255]<<8|a.SBOX[255&A],A^=s[o/e|0]<<24):e>6&&o%e==4&&(A=a.SBOX[A>>>24]<<24|a.SBOX[A>>>16&255]<<16|a.SBOX[A>>>8&255]<<8|a.SBOX[255&A]),i[o]=i[o-e]^A}for(var c=[],f=0;f<n;f++){var g=n-f,u=i[g-(f%4?0:4)];c[f]=f<4||g<=4?u:a.INV_SUB_MIX[0][a.SBOX[u>>>24]]^a.INV_SUB_MIX[1][a.SBOX[u>>>16&255]]^a.INV_SUB_MIX[2][a.SBOX[u>>>8&255]]^a.INV_SUB_MIX[3][a.SBOX[255&u]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=c},c.prototype.encryptBlockRaw=function(t){return A(t=i(t),this._keySchedule,a.SUB_MIX,a.SBOX,this._nRounds)},c.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),r=n.allocUnsafe(16);return r.writeUInt32BE(e[0],0),r.writeUInt32BE(e[1],4),r.writeUInt32BE(e[2],8),r.writeUInt32BE(e[3],12),r},c.prototype.decryptBlock=function(t){var e=(t=i(t))[1];t[1]=t[3],t[3]=e;var r=A(t,this._invKeySchedule,a.INV_SUB_MIX,a.INV_SBOX,this._nRounds),o=n.allocUnsafe(16);return o.writeUInt32BE(r[0],0),o.writeUInt32BE(r[3],4),o.writeUInt32BE(r[2],8),o.writeUInt32BE(r[1],12),o},c.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},t.exports.AES=c},487:(t,e,r)=>{"use strict";var n=r(6743),i=r(453),o=i("%Function.prototype.apply%"),A=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||n.call(A,o),a=i("%Object.getOwnPropertyDescriptor%",!0),c=i("%Object.defineProperty%",!0),f=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(t){c=null}t.exports=function(t){var e=s(n,A,arguments);return a&&c&&a(e,"length").configurable&&c(e,"length",{value:1+f(0,t.length-(arguments.length-1))}),e};var g=function(){return s(n,o,arguments)};c?c(t.exports,"apply",{value:g}):t.exports.apply=g},511:(t,e,r)=>{"use strict";var n=r(9167),i=r(9297),o=r(1951),A=r(4913).f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});i(e,t)||A(e,t,{value:o.f(t)})}},530:(t,e,r)=>{var n={ECB:r(2632),CBC:r(2884),CFB:r(6383),CFB8:r(6975),CFB1:r(5264),OFB:r(6843),CTR:r(3053),GCM:r(3053)},i=r(3219);for(var o in i)i[o].module=n[i[o].mode];t.exports=i},537:(t,e,r)=>{var n=r(5606),i=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++)r[e[n]]=Object.getOwnPropertyDescriptor(t,e[n]);return r},o=/%[sdj%]/g;e.format=function(t){if(!y(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(c(arguments[r]));return e.join(" ")}r=1;for(var n=arguments,i=n.length,A=String(t).replace(o,(function(t){if("%%"===t)return"%";if(r>=i)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}})),s=n[r];r<i;s=n[++r])d(s)||!C(s)?A+=" "+s:A+=" "+c(s);return A},e.deprecate=function(t,r){if(void 0!==n&&!0===n.noDeprecation)return t;if(void 0===n)return function(){return e.deprecate(t,r).apply(this,arguments)};var i=!1;return function(){if(!i){if(n.throwDeprecation)throw new Error(r);n.traceDeprecation?console.trace(r):console.error(r),i=!0}return t.apply(this,arguments)}};var A={},s=/^$/;if(n.env.NODE_DEBUG){var a=n.env.NODE_DEBUG;a=a.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+a+"$","i")}function c(t,r){var n={seen:[],stylize:g};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),I(r)?n.showHidden=r:r&&e._extend(n,r),_(n.showHidden)&&(n.showHidden=!1),_(n.depth)&&(n.depth=2),_(n.colors)&&(n.colors=!1),_(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=f),u(n,t,n.depth)}function f(t,e){var r=c.styles[e];return r?"["+c.colors[r][0]+"m"+t+"["+c.colors[r][1]+"m":t}function g(t,e){return t}function u(t,r,n){if(t.customInspect&&r&&Q(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,t);return y(i)||(i=u(t,i,n)),i}var o=function(t,e){if(_(e))return t.stylize("undefined","undefined");if(y(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return B(e)?t.stylize(""+e,"number"):I(e)?t.stylize(""+e,"boolean"):d(e)?t.stylize("null","null"):void 0}(t,r);if(o)return o;var A=Object.keys(r),s=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(A);if(t.showHidden&&(A=Object.getOwnPropertyNames(r)),m(r)&&(A.indexOf("message")>=0||A.indexOf("description")>=0))return l(r);if(0===A.length){if(Q(r)){var a=r.name?": "+r.name:"";return t.stylize("[Function"+a+"]","special")}if(E(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(w(r))return t.stylize(Date.prototype.toString.call(r),"date");if(m(r))return l(r)}var c,f="",g=!1,C=["{","}"];return p(r)&&(g=!0,C=["[","]"]),Q(r)&&(f=" [Function"+(r.name?": "+r.name:"")+"]"),E(r)&&(f=" "+RegExp.prototype.toString.call(r)),w(r)&&(f=" "+Date.prototype.toUTCString.call(r)),m(r)&&(f=" "+l(r)),0!==A.length||g&&0!=r.length?n<0?E(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),c=g?function(t,e,r,n,i){for(var o=[],A=0,s=e.length;A<s;++A)D(e,String(A))?o.push(h(t,e,r,n,String(A),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(h(t,e,r,n,i,!0))})),o}(t,r,n,s,A):A.map((function(e){return h(t,r,n,s,e,g)})),t.seen.pop(),function(t,e,r){return t.reduce((function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}(c,f,C)):C[0]+f+C[1]}function l(t){return"["+Error.prototype.toString.call(t)+"]"}function h(t,e,r,n,i,o){var A,s,a;if((a=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=a.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):a.set&&(s=t.stylize("[Setter]","special")),D(n,i)||(A="["+i+"]"),s||(t.seen.indexOf(a.value)<0?(s=d(r)?u(t,a.value,null):u(t,a.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),_(A)){if(o&&i.match(/^\d+$/))return s;(A=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(A=A.substr(1,A.length-2),A=t.stylize(A,"name")):(A=A.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),A=t.stylize(A,"string"))}return A+": "+s}function p(t){return Array.isArray(t)}function I(t){return"boolean"==typeof t}function d(t){return null===t}function B(t){return"number"==typeof t}function y(t){return"string"==typeof t}function _(t){return void 0===t}function E(t){return C(t)&&"[object RegExp]"===b(t)}function C(t){return"object"==typeof t&&null!==t}function w(t){return C(t)&&"[object Date]"===b(t)}function m(t){return C(t)&&("[object Error]"===b(t)||t instanceof Error)}function Q(t){return"function"==typeof t}function b(t){return Object.prototype.toString.call(t)}function v(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(t=t.toUpperCase(),!A[t])if(s.test(t)){var r=n.pid;A[t]=function(){var n=e.format.apply(e,arguments);console.error("%s %d: %s",t,r,n)}}else A[t]=function(){};return A[t]},e.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=r(9032),e.isArray=p,e.isBoolean=I,e.isNull=d,e.isNullOrUndefined=function(t){return null==t},e.isNumber=B,e.isString=y,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=_,e.isRegExp=E,e.types.isRegExp=E,e.isObject=C,e.isDate=w,e.types.isDate=w,e.isError=m,e.types.isNativeError=m,e.isFunction=Q,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=r(1135);var S=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function D(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){var t,r;console.log("%s - %s",(r=[v((t=new Date).getHours()),v(t.getMinutes()),v(t.getSeconds())].join(":"),[t.getDate(),S[t.getMonth()],r].join(" ")),e.format.apply(e,arguments))},e.inherits=r(6698),e._extend=function(t,e){if(!e||!C(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var N="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function k(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(N&&t[N]){var e;if("function"!=typeof(e=t[N]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,N,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,n=new Promise((function(t,n){e=t,r=n})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(t,n){t?r(t):e(n)}));try{t.apply(this,i)}catch(t){r(t)}return n}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),N&&Object.defineProperty(e,N,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,i(t))},e.promisify.custom=N,e.callbackify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');function e(){for(var e=[],r=0;r<arguments.length;r++)e.push(arguments[r]);var i=e.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var o=this,A=function(){return i.apply(o,arguments)};t.apply(this,e).then((function(t){n.nextTick(A.bind(null,null,t))}),(function(t){n.nextTick(k.bind(null,t,A))}))}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),Object.defineProperties(e,i(t)),e}},616:(t,e,r)=>{"use strict";var n=r(9039);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},650:(t,e,r)=>{var n=r(462),i=r(2861).Buffer,o=r(6168);function A(t,e,r,A){o.call(this),this._cipher=new n.AES(e),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=A,this._mode=t}r(6698)(A,o),A.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)},A.prototype._final=function(){this._cipher.scrub()},t.exports=A},659:(t,e,r)=>{var n=r(1873),i=Object.prototype,o=i.hasOwnProperty,A=i.toString,s=n?n.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),r=t[s];try{t[s]=void 0;var n=!0}catch(t){}var i=A.call(t);return n&&(e?t[s]=r:delete t[s]),i}},695:(t,e,r)=>{var n=r(8096),i=r(2428),o=r(6449),A=r(3656),s=r(361),a=r(7167),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=o(t),f=!r&&i(t),g=!r&&!f&&A(t),u=!r&&!f&&!g&&a(t),l=r||f||g||u,h=l?n(t.length,String):[],p=h.length;for(var I in t)!e&&!c.call(t,I)||l&&("length"==I||g&&("offset"==I||"parent"==I)||u&&("buffer"==I||"byteLength"==I||"byteOffset"==I)||s(I,p))||h.push(I);return h}},709:t=>{"use strict";t.exports=class{constructor(t,e){this.message=t,(null!=e?e.message:void 0)&&(this.message=`cause\t${e.message}\t`+this.message);var r="";(null!=e?e.stack:void 0)&&(r=`caused by\n\t${e.stack}\t`+r),this.stack=this.message+"\n"+r}static throw(t,e){var r=t;throw(null!=e?e.message:void 0)&&(r+=`\t cause: ${e.message} `),(null!=e?e.stack:void 0)&&(r+=`\n stack: ${e.stack} `),new Error(r)}}},734:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MY_HASH=void 0,e.MY_HASH="NO_HASH"},738:(t,e,r)=>{"use strict";t.exports={Address:r(7927),Aes:r(7939),PrivateKey:r(3336),PublicKey:r(3858),Signature:r(4437),brainKey:r(4839),key_utils:r(5238),hash:r(2455),ecc_config:r(9027)}},757:(t,e,r)=>{"use strict";var n=r(7751),i=r(7282),o=r(1625),A=r(7040),s=Object;t.exports=A?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return i(e)&&o(e.prototype,s(t))}},938:t=>{t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},945:(t,e,r)=>{var n=r(79),i=r(8223),o=r(3661);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var A=r.__data__;if(!i||A.length<199)return A.push([t,e]),this.size=++r.size,this;r=this.__data__=new o(A)}return r.set(t,e),this.size=r.size,this}},1033:t=>{t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},1042:(t,e,r)=>{var n=r(6110)(Object,"create");t.exports=n},1074:t=>{t.exports=function(t){return t.split("")}},1093:t=>{"use strict";var e=Object.prototype.toString;t.exports=function(t){var r=e.call(t),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===e.call(t.callee)),n}},1135:t=>{t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},1175:(t,e,r)=>{var n=r(6025);t.exports=function(t,e){var r=this.__data__,i=n(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}},1189:(t,e,r)=>{"use strict";var n=Array.prototype.slice,i=r(1093),o=Object.keys,A=o?function(t){return o(t)}:r(8875),s=Object.keys;A.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return i(t)?s(n.call(t)):s(t)})}else Object.keys=A;return Object.keys||A},t.exports=A},1241:(t,e,r)=>{var n=r(5799),i=r(6171),o=r(3219);e.createCipher=e.Cipher=n.createCipher,e.createCipheriv=e.Cipheriv=n.createCipheriv,e.createDecipher=e.Decipher=i.createDecipher,e.createDecipheriv=e.Decipheriv=i.createDecipheriv,e.listCiphers=e.getCiphers=function(){return Object.keys(o)}},1333:t=>{"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},1338:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=n(r(1487));e.default=(0,i.default)("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},1420:(t,e,r)=>{var n=r(79);t.exports=function(){this.__data__=new n,this.size=0}},1437:(t,e,r)=>{var n=r(2552),i=r(346);t.exports=function(t){return i(t)&&"[object RegExp]"==n(t)}},1452:t=>{"use strict";t.exports=JSON.parse('{"secp128r1":{"p":"fffffffdffffffffffffffffffffffff","a":"fffffffdfffffffffffffffffffffffc","b":"e87579c11079f43dd824993c2cee5ed3","n":"fffffffe0000000075a30d1b9038a115","h":"01","Gx":"161ff7528b899b2d0c28607ca52c5b86","Gy":"cf5ac8395bafeb13c02da292dded7a83"},"secp160k1":{"p":"fffffffffffffffffffffffffffffffeffffac73","a":"00","b":"07","n":"0100000000000000000001b8fa16dfab9aca16b6b3","h":"01","Gx":"3b4c382ce37aa192a4019e763036f4f5dd4d7ebb","Gy":"938cf935318fdced6bc28286531733c3f03c4fee"},"secp160r1":{"p":"ffffffffffffffffffffffffffffffff7fffffff","a":"ffffffffffffffffffffffffffffffff7ffffffc","b":"1c97befc54bd7a8b65acf89f81d4d4adc565fa45","n":"0100000000000000000001f4c8f927aed3ca752257","h":"01","Gx":"4a96b5688ef573284664698968c38bb913cbfc82","Gy":"23a628553168947d59dcc912042351377ac5fb32"},"secp192k1":{"p":"fffffffffffffffffffffffffffffffffffffffeffffee37","a":"00","b":"03","n":"fffffffffffffffffffffffe26f2fc170f69466a74defd8d","h":"01","Gx":"db4ff10ec057e9ae26b07d0280b7f4341da5d1b1eae06c7d","Gy":"9b2f2f6d9c5628a7844163d015be86344082aa88d95e2f9d"},"secp192r1":{"p":"fffffffffffffffffffffffffffffffeffffffffffffffff","a":"fffffffffffffffffffffffffffffffefffffffffffffffc","b":"64210519e59c80e70fa7e9ab72243049feb8deecc146b9b1","n":"ffffffffffffffffffffffff99def836146bc9b1b4d22831","h":"01","Gx":"188da80eb03090f67cbf20eb43a18800f4ff0afd82ff1012","Gy":"07192b95ffc8da78631011ed6b24cdd573f977a11e794811"},"secp256k1":{"p":"fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f","a":"00","b":"07","n":"fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141","h":"01","Gx":"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","Gy":"483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8"},"secp256r1":{"p":"ffffffff00000001000000000000000000000000ffffffffffffffffffffffff","a":"ffffffff00000001000000000000000000000000fffffffffffffffffffffffc","b":"5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b","n":"ffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551","h":"01","Gx":"6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296","Gy":"4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5"}}')},1487:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if(t.length>=255)throw new TypeError("Alphabet too long");const e=new Uint8Array(256);for(let t=0;t<e.length;t++)e[t]=255;for(let r=0;r<t.length;r++){const n=t.charAt(r),i=n.charCodeAt(0);if(255!==e[i])throw new TypeError(n+" is ambiguous");e[i]=r}const r=t.length,n=t.charAt(0),i=Math.log(r)/Math.log(256),o=Math.log(256)/Math.log(r);function A(t){if("string"!=typeof t)throw new TypeError("Expected String");if(0===t.length)return new Uint8Array;let o=0,A=0,s=0;for(;t[o]===n;)A++,o++;const a=(t.length-o)*i+1>>>0,c=new Uint8Array(a);for(;o<t.length;){const n=t.charCodeAt(o);if(n>255)return;let i=e[n];if(255===