!function(t){if("object"==typeofexports&&"undefined"!=typeofmodule)module.exports=t();elseif("function"==typeofdefine&&define.amd)define([],t);else{("undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:this).bcur=t()}}((function(){for(vart=function(t){varr;returnfunction(e){returnr||t(r={exports:{},parent:e},r.exports),r.exports}},r=t((function(t,r){(function(t){(function(){"use strict";varn=this&&this.__importDefault||function(t){returnt&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0}),r.decodeBc32Data=r.encodeBc32Data=r.Bech32Version=void0;vari,o=n(e({}));!function(t){t[t.Origin=1]="Origin",t[t.bis=2]="bis"}(i=r.Bech32Version||(r.Bech32Version={}));varh=function(t,r,e,n){for(vari=0,o=0,h=[],s=(1<<e)-1,u=0;u<t.length;++u){varf=t[u];if(f<0||f>>r!=0)returnnull;for(i=i<<r|f,o+=r;o>=e;)o-=e,h.push(i>>o&s)}if(n)o>0&&h.push(i<<e-o&s);elseif(o>=r||i<<e-o&s)returnnull;returnh};r.encodeBc32Data=function(r){vare=t.from(r,"hex"),n=h(e,8,5,!0);if(n)returno.default.encode(void0,n,i.bis);thrownewError("invalid input")},r.decodeBc32Data=function(r){vare=o.default.decode(r);if(e){varn=h(t.from(e.data),5,8,!1);returnn?t.from(n).toString("hex"):null}returnnull}}).call(this)}).call(this,n({}).Buffer)})),e=t((function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});varn=r({}),i="qpzry9x8gf2tvdw0s3jn54khce6mua7l",o=[996825010,642813549,513874426,1027748829,705979059],h=function(t){for(varr=1,e=0;e<t.length;++e){varn=r>>25;r=(33554431&r)<<5^t[e];for(vari=0;i<6;++i)n>>i&1&&(r^=o[i])}returnr},s=function(t){varr,e=[];for(r=0;r<t.length;++r)e.push(t.charCodeAt(r)>>5);for(e.push(0),r=0;r<t.length;++r)e.push(31&t.charCodeAt(r));returne},u=function(t,r,e){vari;i=t?s(t):[0];varo=e===n.Bech32Version.Origin?1:1073741823;returnh(i.concat(r))===o};e.default={encode:function(t,r,e){varo,u=r.concat(function(t,r,e){vari;i=t?s(t).concat(r).concat([0,0,0,0,0,0]):[0].concat(r).concat([0,0,0,0,0,0]);for(varo=e===n.Bech32Version.Origin?1:1073741823,u=h(i)^o,f=[],a=0;a<6;++a)f.push(u>>5*(5-a)&31);returnf}(t,r,e));o=t?t+"1":"";for(varf=0;f<u.length;++f)o+=i.charAt(u[f]);returno},decode:function(t){varr,e=!1,o=!1;for(r=0;r<t.length;++r){if(t.charCodeAt(r)<33||t.charCodeAt(r)>126)returnnull;t.charCodeAt(r)>=97&&t.charCodeAt(r)<=122&&(e=!0),t.charCodeAt(r)>=65&&t.charCodeAt(r)<=90&&(o=!0)}if(e&&o)returnnull;varh=(t=t.toLowerCase()).lastIndexOf("1");if(-1===h)returnfunction(t){for(varr=[],e=0;e<t.length;++e){varo=i.indexOf(t.charAt(e));if(-1===o)returnnull;r.push(o)}returnu(void0,r,n.Bech32Version.bis)?{hrp:null,data:r.slice(0,r.length-6)}:null}(t);if(h<1||h+7>t.length||t.length>90)returnnull;vars=t.substring(0,h),f=[];for(r=h+1;r<t.length;++r){vara=i.indexOf(t.charAt(r));if(-1===a)returnnull;f.push(a)}returnu(s,f,n.Bech32Version.Origin)?{hrp:s,data:f.slice(0,f.length-6)}:null}}})),n=t((function(t,r){(function(t){(function(){"use strict";r.Buffer=e,r.SlowBuffer=function(t){return+t!=t&&(t=0),e.alloc(+t)},r.INSPECT_MAX_BYTES=50;functiont(t){if(t>2147483647)thrownewRangeError('The value "'+t+'" is invalid for option "size"');varr=newUint8Array(t);returnr.__proto__=e.prototype,r}functione(t,r,e){if("number"==typeoft){if("string"==typeofr)thrownewTypeError('The "string" argument must be of type string. Received type number');returnh(t)}returnn(t,r,e)}functionn(r,n,i){if("string"==typeofr)returnfunction(r,n){if("string"==typeofn&&""!==n||(n="utf8"),!e.isEncoding(n))thrownewTypeError("Unknown encoding: "+n);vari=0|f(r,n),o=t(i),h=o.write(r,n);returnh!==i&&(o=o.slice(0,h)),o}(r,n);if(ArrayBuffer.isView(r))returns(r);if(null==r)throwTypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeofr);if(P(r,ArrayBuffer)||r&&P(r.buffer,ArrayBuffer))returnfunction(t,r,n){if(r<0||t.byteLength<r)thrownewRangeError('"offset" is outside of buffer bounds');if(t.byteLength<r+(n||0))thrownewRangeError('"length" is outside of buffer bounds');v