steem-auth-vue-temp
Version:
A Vue 3 authentication component for Steem blockchain and Echelon sidechain
2 lines • 119 kB
JavaScript
(function(ce,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue"),require("dsteem")):typeof define=="function"&&define.amd?define(["exports","vue","dsteem"],i):(ce=typeof globalThis<"u"?globalThis:ce||self,i(ce.SteemAuthVue={},ce.Vue,ce.dsteem))})(this,function(ce,i,ge){"use strict";function Ue(z){const W=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(z){for(const h in z)if(h!=="default"){const m=Object.getOwnPropertyDescriptor(z,h);Object.defineProperty(W,h,m.get?m:{enumerable:!0,get:()=>z[h]})}}return W.default=z,Object.freeze(W)}const Ce=Ue(ge);var Oe={exports:{}};(function(z,W){(function(h,m){z.exports=m()})(window,function(){return function(h){var m={};function e(r){if(m[r])return m[r].exports;var o=m[r]={i:r,l:!1,exports:{}};return h[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=h,e.c=m,e.d=function(r,o,c){e.o(r,o)||Object.defineProperty(r,o,{enumerable:!0,get:c})},e.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},e.t=function(r,o){if(1&o&&(r=e(r)),8&o||4&o&&typeof r=="object"&&r&&r.__esModule)return r;var c=Object.create(null);if(e.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:r}),2&o&&typeof r!="string")for(var l in r)e.d(c,l,(function(u){return r[u]}).bind(null,l));return c},e.n=function(r){var o=r&&r.__esModule?function(){return r.default}:function(){return r};return e.d(o,"a",o),o},e.o=function(r,o){return Object.prototype.hasOwnProperty.call(r,o)},e.p="",e(e.s=52)}([function(h,m){var e=h.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=e)},function(h,m){var e=h.exports={version:"2.6.5"};typeof __e=="number"&&(__e=e)},function(h,m,e){var r=e(24)("wks"),o=e(16),c=e(0).Symbol,l=typeof c=="function";(h.exports=function(u){return r[u]||(r[u]=l&&c[u]||(l?c:o)("Symbol."+u))}).store=r},function(h,m,e){var r=e(4),o=e(36),c=e(27),l=Object.defineProperty;m.f=e(5)?Object.defineProperty:function(u,y,a){if(r(u),y=c(y,!0),r(a),o)try{return l(u,y,a)}catch{}if("get"in a||"set"in a)throw TypeError("Accessors not supported!");return"value"in a&&(u[y]=a.value),u}},function(h,m,e){var r=e(9);h.exports=function(o){if(!r(o))throw TypeError(o+" is not an object!");return o}},function(h,m,e){h.exports=!e(13)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(h,m){var e={}.hasOwnProperty;h.exports=function(r,o){return e.call(r,o)}},function(h,m,e){var r=e(0),o=e(1),c=e(17),l=e(8),u=e(6),y=function(a,E,g){var d,k,N,j=a&y.F,U=a&y.G,A=a&y.S,O=a&y.P,v=a&y.B,p=a&y.W,q=U?o:o[E]||(o[E]={}),f=q.prototype,P=U?r:A?r[E]:(r[E]||{}).prototype;for(d in U&&(g=E),g)(k=!j&&P&&P[d]!==void 0)&&u(q,d)||(N=k?P[d]:g[d],q[d]=U&&typeof P[d]!="function"?g[d]:v&&k?c(N,r):p&&P[d]==N?function(C){var R=function(B,b,x){if(this instanceof C){switch(arguments.length){case 0:return new C;case 1:return new C(B);case 2:return new C(B,b)}return new C(B,b,x)}return C.apply(this,arguments)};return R.prototype=C.prototype,R}(N):O&&typeof N=="function"?c(Function.call,N):N,O&&((q.virtual||(q.virtual={}))[d]=N,a&y.R&&f&&!f[d]&&l(f,d,N)))};y.F=1,y.G=2,y.S=4,y.P=8,y.B=16,y.W=32,y.U=64,y.R=128,h.exports=y},function(h,m,e){var r=e(3),o=e(19);h.exports=e(5)?function(c,l,u){return r.f(c,l,o(1,u))}:function(c,l,u){return c[l]=u,c}},function(h,m){h.exports=function(e){return typeof e=="object"?e!==null:typeof e=="function"}},function(h,m,e){var r=e(56),o=e(21);h.exports=function(c){return r(o(c))}},function(h,m){var e={}.toString;h.exports=function(r){return e.call(r).slice(8,-1)}},function(h,m){h.exports=!0},function(h,m){h.exports=function(e){try{return!!e()}catch{return!0}}},function(h,m){h.exports={}},function(h,m,e){var r=e(34),o=e(25);h.exports=Object.keys||function(c){return r(c,o)}},function(h,m){var e=0,r=Math.random();h.exports=function(o){return"Symbol(".concat(o===void 0?"":o,")_",(++e+r).toString(36))}},function(h,m,e){var r=e(18);h.exports=function(o,c,l){if(r(o),c===void 0)return o;switch(l){case 1:return function(u){return o.call(c,u)};case 2:return function(u,y){return o.call(c,u,y)};case 3:return function(u,y,a){return o.call(c,u,y,a)}}return function(){return o.apply(c,arguments)}}},function(h,m){h.exports=function(e){if(typeof e!="function")throw TypeError(e+" is not a function!");return e}},function(h,m){h.exports=function(e,r){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:r}}},function(h,m,e){var r=e(3).f,o=e(6),c=e(2)("toStringTag");h.exports=function(l,u,y){l&&!o(l=y?l:l.prototype,c)&&r(l,c,{configurable:!0,value:u})}},function(h,m){h.exports=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e}},function(h,m){var e=Math.ceil,r=Math.floor;h.exports=function(o){return isNaN(o=+o)?0:(o>0?r:e)(o)}},function(h,m,e){var r=e(24)("keys"),o=e(16);h.exports=function(c){return r[c]||(r[c]=o(c))}},function(h,m,e){var r=e(1),o=e(0),c=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(h.exports=function(l,u){return c[l]||(c[l]=u!==void 0?u:{})})("versions",[]).push({version:r.version,mode:e(12)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(h,m){h.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(h,m,e){var r=e(9),o=e(0).document,c=r(o)&&r(o.createElement);h.exports=function(l){return c?o.createElement(l):{}}},function(h,m,e){var r=e(9);h.exports=function(o,c){if(!r(o))return o;var l,u;if(c&&typeof(l=o.toString)=="function"&&!r(u=l.call(o))||typeof(l=o.valueOf)=="function"&&!r(u=l.call(o))||!c&&typeof(l=o.toString)=="function"&&!r(u=l.call(o)))return u;throw TypeError("Can't convert object to primitive value")}},function(h,m,e){m.f=e(2)},function(h,m,e){var r=e(0),o=e(1),c=e(12),l=e(28),u=e(3).f;h.exports=function(y){var a=o.Symbol||(o.Symbol=c?{}:r.Symbol||{});y.charAt(0)=="_"||y in a||u(a,y,{value:l.f(y)})}},function(h,m){m.f={}.propertyIsEnumerable},function(h,m,e){var r=e(18);function o(c){var l,u;this.promise=new c(function(y,a){if(l!==void 0||u!==void 0)throw TypeError("Bad Promise constructor");l=y,u=a}),this.resolve=r(l),this.reject=r(u)}h.exports.f=function(c){return new o(c)}},function(h,m){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch{typeof window=="object"&&(e=window)}h.exports=e},function(h,m,e){var r=e(21);h.exports=function(o){return Object(r(o))}},function(h,m,e){var r=e(6),o=e(10),c=e(57)(!1),l=e(23)("IE_PROTO");h.exports=function(u,y){var a,E=o(u),g=0,d=[];for(a in E)a!=l&&r(E,a)&&d.push(a);for(;y.length>g;)r(E,a=y[g++])&&(~c(d,a)||d.push(a));return d}},function(h,m,e){var r=e(22),o=Math.min;h.exports=function(c){return c>0?o(r(c),9007199254740991):0}},function(h,m,e){h.exports=!e(5)&&!e(13)(function(){return Object.defineProperty(e(26)("div"),"a",{get:function(){return 7}}).a!=7})},function(h,m,e){var r=e(63)(!0);e(38)(String,"String",function(o){this._t=String(o),this._i=0},function(){var o,c=this._t,l=this._i;return l>=c.length?{value:void 0,done:!0}:(o=r(c,l),this._i+=o.length,{value:o,done:!1})})},function(h,m,e){var r=e(12),o=e(7),c=e(39),l=e(8),u=e(14),y=e(64),a=e(20),E=e(66),g=e(2)("iterator"),d=!([].keys&&"next"in[].keys()),k=function(){return this};h.exports=function(N,j,U,A,O,v,p){y(U,j,A);var q,f,P,C=function(K){if(!d&&K in x)return x[K];switch(K){case"keys":case"values":return function(){return new U(this,K)}}return function(){return new U(this,K)}},R=j+" Iterator",B=O=="values",b=!1,x=N.prototype,M=x[g]||x["@@iterator"]||O&&x[O],G=M||C(O),F=O?B?C("entries"):G:void 0,V=j=="Array"&&x.entries||M;if(V&&(P=E(V.call(new N)))!==Object.prototype&&P.next&&(a(P,R,!0),r||typeof P[g]=="function"||l(P,g,k)),B&&M&&M.name!=="values"&&(b=!0,G=function(){return M.call(this)}),r&&!p||!d&&!b&&x[g]||l(x,g,G),u[j]=G,u[R]=k,O)if(q={values:B?G:C("values"),keys:v?G:C("keys"),entries:F},p)for(f in q)f in x||c(x,f,q[f]);else o(o.P+o.F*(d||b),j,q);return q}},function(h,m,e){h.exports=e(8)},function(h,m,e){var r=e(4),o=e(65),c=e(25),l=e(23)("IE_PROTO"),u=function(){},y=function(){var a,E=e(26)("iframe"),g=c.length;for(E.style.display="none",e(41).appendChild(E),E.src="javascript:",(a=E.contentWindow.document).open(),a.write("<script>document.F=Object<\/script>"),a.close(),y=a.F;g--;)delete y.prototype[c[g]];return y()};h.exports=Object.create||function(a,E){var g;return a!==null?(u.prototype=r(a),g=new u,u.prototype=null,g[l]=a):g=y(),E===void 0?g:o(g,E)}},function(h,m,e){var r=e(0).document;h.exports=r&&r.documentElement},function(h,m,e){e(67);for(var r=e(0),o=e(8),c=e(14),l=e(2)("toStringTag"),u="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),y=0;y<u.length;y++){var a=u[y],E=r[a],g=E&&E.prototype;g&&!g[l]&&o(g,l,a),c[a]=c.Array}},function(h,m){m.f=Object.getOwnPropertySymbols},function(h,m,e){var r=e(34),o=e(25).concat("length","prototype");m.f=Object.getOwnPropertyNames||function(c){return r(c,o)}},function(h,m){},function(h,m,e){var r=e(11),o=e(2)("toStringTag"),c=r(function(){return arguments}())=="Arguments";h.exports=function(l){var u,y,a;return l===void 0?"Undefined":l===null?"Null":typeof(y=function(E,g){try{return E[g]}catch{}}(u=Object(l),o))=="string"?y:c?r(u):(a=r(u))=="Object"&&typeof u.callee=="function"?"Arguments":a}},function(h,m,e){var r=e(4),o=e(18),c=e(2)("species");h.exports=function(l,u){var y,a=r(l).constructor;return a===void 0||(y=r(a)[c])==null?u:o(y)}},function(h,m,e){var r,o,c,l=e(17),u=e(88),y=e(41),a=e(26),E=e(0),g=E.process,d=E.setImmediate,k=E.clearImmediate,N=E.MessageChannel,j=E.Dispatch,U=0,A={},O=function(){var p=+this;if(A.hasOwnProperty(p)){var q=A[p];delete A[p],q()}},v=function(p){O.call(p.data)};d&&k||(d=function(p){for(var q=[],f=1;arguments.length>f;)q.push(arguments[f++]);return A[++U]=function(){u(typeof p=="function"?p:Function(p),q)},r(U),U},k=function(p){delete A[p]},e(11)(g)=="process"?r=function(p){g.nextTick(l(O,p,1))}:j&&j.now?r=function(p){j.now(l(O,p,1))}:N?(c=(o=new N).port2,o.port1.onmessage=v,r=l(c.postMessage,c,1)):E.addEventListener&&typeof postMessage=="function"&&!E.importScripts?(r=function(p){E.postMessage(p+"","*")},E.addEventListener("message",v,!1)):r="onreadystatechange"in a("script")?function(p){y.appendChild(a("script")).onreadystatechange=function(){y.removeChild(this),O.call(p)}}:function(p){setTimeout(l(O,p,1),0)}),h.exports={set:d,clear:k}},function(h,m){h.exports=function(e){try{return{e:!1,v:e()}}catch(r){return{e:!0,v:r}}}},function(h,m,e){var r=e(4),o=e(9),c=e(31);h.exports=function(l,u){if(r(l),o(u)&&u.constructor===l)return u;var y=c.f(l);return(0,y.resolve)(u),y.promise}},function(h,m,e){var r=e(109),o=e(111);function c(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}m.parse=v,m.resolve=function(p,q){return v(p,!1,!0).resolve(q)},m.resolveObject=function(p,q){return p?v(p,!1,!0).resolveObject(q):q},m.format=function(p){return o.isString(p)&&(p=v(p)),p instanceof c?p.format():c.prototype.format.call(p)},m.Url=c;var l=/^([a-z0-9.+-]+:)/i,u=/:[0-9]*$/,y=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,a=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",`
`," "]),E=["'"].concat(a),g=["%","/","?",";","#"].concat(E),d=["/","?","#"],k=/^[+a-z0-9A-Z_-]{0,63}$/,N=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,j={javascript:!0,"javascript:":!0},U={javascript:!0,"javascript:":!0},A={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},O=e(112);function v(p,q,f){if(p&&o.isObject(p)&&p instanceof c)return p;var P=new c;return P.parse(p,q,f),P}c.prototype.parse=function(p,q,f){if(!o.isString(p))throw new TypeError("Parameter 'url' must be a string, not "+typeof p);var P=p.indexOf("?"),C=P!==-1&&P<p.indexOf("#")?"?":"#",R=p.split(C);R[0]=R[0].replace(/\\/g,"/");var B=p=R.join(C);if(B=B.trim(),!f&&p.split("#").length===1){var b=y.exec(B);if(b)return this.path=B,this.href=B,this.pathname=b[1],b[2]?(this.search=b[2],this.query=q?O.parse(this.search.substr(1)):this.search.substr(1)):q&&(this.search="",this.query={}),this}var x=l.exec(B);if(x){var M=(x=x[0]).toLowerCase();this.protocol=M,B=B.substr(x.length)}if(f||x||B.match(/^\/\/[^@\/]+@[^@\/]+/)){var G=B.substr(0,2)==="//";!G||x&&U[x]||(B=B.substr(2),this.slashes=!0)}if(!U[x]&&(G||x&&!A[x])){for(var F,V,K=-1,Y=0;Y<d.length;Y++)(ee=B.indexOf(d[Y]))!==-1&&(K===-1||ee<K)&&(K=ee);for((V=K===-1?B.lastIndexOf("@"):B.lastIndexOf("@",K))!==-1&&(F=B.slice(0,V),B=B.slice(V+1),this.auth=decodeURIComponent(F)),K=-1,Y=0;Y<g.length;Y++){var ee;(ee=B.indexOf(g[Y]))!==-1&&(K===-1||ee<K)&&(K=ee)}K===-1&&(K=B.length),this.host=B.slice(0,K),B=B.slice(K),this.parseHost(),this.hostname=this.hostname||"";var ne=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!ne)for(var X=this.hostname.split(/\./),oe=(Y=0,X.length);Y<oe;Y++){var T=X[Y];if(T&&!T.match(k)){for(var D="",$=0,ie=T.length;$<ie;$++)T.charCodeAt($)>127?D+="x":D+=T[$];if(!D.match(k)){var re=X.slice(0,Y),t=X.slice(Y+1),n=T.match(N);n&&(re.push(n[1]),t.unshift(n[2])),t.length&&(B="/"+t.join(".")+B),this.hostname=re.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),ne||(this.hostname=r.toASCII(this.hostname));var s=this.port?":"+this.port:"",_=this.hostname||"";this.host=_+s,this.href+=this.host,ne&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),B[0]!=="/"&&(B="/"+B))}if(!j[M])for(Y=0,oe=E.length;Y<oe;Y++){var w=E[Y];if(B.indexOf(w)!==-1){var S=encodeURIComponent(w);S===w&&(S=escape(w)),B=B.split(w).join(S)}}var I=B.indexOf("#");I!==-1&&(this.hash=B.substr(I),B=B.slice(0,I));var H=B.indexOf("?");if(H!==-1?(this.search=B.substr(H),this.query=B.substr(H+1),q&&(this.query=O.parse(this.query)),B=B.slice(0,H)):q&&(this.search="",this.query={}),B&&(this.pathname=B),A[M]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){s=this.pathname||"";var Q=this.search||"";this.path=s+Q}return this.href=this.format(),this},c.prototype.format=function(){var p=this.auth||"";p&&(p=(p=encodeURIComponent(p)).replace(/%3A/i,":"),p+="@");var q=this.protocol||"",f=this.pathname||"",P=this.hash||"",C=!1,R="";this.host?C=p+this.host:this.hostname&&(C=p+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(C+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(R=O.stringify(this.query));var B=this.search||R&&"?"+R||"";return q&&q.substr(-1)!==":"&&(q+=":"),this.slashes||(!q||A[q])&&C!==!1?(C="//"+(C||""),f&&f.charAt(0)!=="/"&&(f="/"+f)):C||(C=""),P&&P.charAt(0)!=="#"&&(P="#"+P),B&&B.charAt(0)!=="?"&&(B="?"+B),q+C+(f=f.replace(/[?#]/g,function(b){return encodeURIComponent(b)}))+(B=B.replace("#","%23"))+P},c.prototype.resolve=function(p){return this.resolveObject(v(p,!1,!0)).format()},c.prototype.resolveObject=function(p){if(o.isString(p)){var q=new c;q.parse(p,!1,!0),p=q}for(var f=new c,P=Object.keys(this),C=0;C<P.length;C++){var R=P[C];f[R]=this[R]}if(f.hash=p.hash,p.href==="")return f.href=f.format(),f;if(p.slashes&&!p.protocol){for(var B=Object.keys(p),b=0;b<B.length;b++){var x=B[b];x!=="protocol"&&(f[x]=p[x])}return A[f.protocol]&&f.hostname&&!f.pathname&&(f.path=f.pathname="/"),f.href=f.format(),f}if(p.protocol&&p.protocol!==f.protocol){if(!A[p.protocol]){for(var M=Object.keys(p),G=0;G<M.length;G++){var F=M[G];f[F]=p[F]}return f.href=f.format(),f}if(f.protocol=p.protocol,p.host||U[p.protocol])f.pathname=p.pathname;else{for(var V=(p.pathname||"").split("/");V.length&&!(p.host=V.shift()););p.host||(p.host=""),p.hostname||(p.hostname=""),V[0]!==""&&V.unshift(""),V.length<2&&V.unshift(""),f.pathname=V.join("/")}if(f.search=p.search,f.query=p.query,f.host=p.host||"",f.auth=p.auth,f.hostname=p.hostname||p.host,f.port=p.port,f.pathname||f.search){var K=f.pathname||"",Y=f.search||"";f.path=K+Y}return f.slashes=f.slashes||p.slashes,f.href=f.format(),f}var ee=f.pathname&&f.pathname.charAt(0)==="/",ne=p.host||p.pathname&&p.pathname.charAt(0)==="/",X=ne||ee||f.host&&p.pathname,oe=X,T=f.pathname&&f.pathname.split("/")||[],D=(V=p.pathname&&p.pathname.split("/")||[],f.protocol&&!A[f.protocol]);if(D&&(f.hostname="",f.port=null,f.host&&(T[0]===""?T[0]=f.host:T.unshift(f.host)),f.host="",p.protocol&&(p.hostname=null,p.port=null,p.host&&(V[0]===""?V[0]=p.host:V.unshift(p.host)),p.host=null),X=X&&(V[0]===""||T[0]==="")),ne)f.host=p.host||p.host===""?p.host:f.host,f.hostname=p.hostname||p.hostname===""?p.hostname:f.hostname,f.search=p.search,f.query=p.query,T=V;else if(V.length)T||(T=[]),T.pop(),T=T.concat(V),f.search=p.search,f.query=p.query;else if(!o.isNullOrUndefined(p.search))return D&&(f.hostname=f.host=T.shift(),(n=!!(f.host&&f.host.indexOf("@")>0)&&f.host.split("@"))&&(f.auth=n.shift(),f.host=f.hostname=n.shift())),f.search=p.search,f.query=p.query,o.isNull(f.pathname)&&o.isNull(f.search)||(f.path=(f.pathname?f.pathname:"")+(f.search?f.search:"")),f.href=f.format(),f;if(!T.length)return f.pathname=null,f.search?f.path="/"+f.search:f.path=null,f.href=f.format(),f;for(var $=T.slice(-1)[0],ie=(f.host||p.host||T.length>1)&&($==="."||$==="..")||$==="",re=0,t=T.length;t>=0;t--)($=T[t])==="."?T.splice(t,1):$===".."?(T.splice(t,1),re++):re&&(T.splice(t,1),re--);if(!X&&!oe)for(;re--;re)T.unshift("..");!X||T[0]===""||T[0]&&T[0].charAt(0)==="/"||T.unshift(""),ie&&T.join("/").substr(-1)!=="/"&&T.push("");var n,s=T[0]===""||T[0]&&T[0].charAt(0)==="/";return D&&(f.hostname=f.host=s?"":T.length?T.shift():"",(n=!!(f.host&&f.host.indexOf("@")>0)&&f.host.split("@"))&&(f.auth=n.shift(),f.host=f.hostname=n.shift())),(X=X||f.host&&T.length)&&!s&&T.unshift(""),T.length?f.pathname=T.join("/"):(f.pathname=null,f.path=null),o.isNull(f.pathname)&&o.isNull(f.search)||(f.path=(f.pathname?f.pathname:"")+(f.search?f.search:"")),f.auth=p.auth||f.auth,f.slashes=f.slashes||p.slashes,f.href=f.format(),f},c.prototype.parseHost=function(){var p=this.host,q=u.exec(p);q&&((q=q[0])!==":"&&(this.port=q.substr(1)),p=p.substr(0,p.length-q.length)),p&&(this.hostname=p)}},function(h,m,e){Object.defineProperty(m,"__esModule",{value:!0});var r=g(e(53)),o=g(e(60)),c=g(e(80)),l=g(e(96)),u=g(e(98)),y=g(e(99)),a=g(e(103)),E=e(104);function g(O){return O&&O.__esModule?O:{default:O}}var d="https://steemlogin.com",k=function(){return typeof window<"u"&&window},N=function(){return k()&&window._steemconnect},j=function(){return k()&&window.steem_keychain},U=function(){return!N()&&j()},A=function(){function O(v){(0,u.default)(this,O),this.apiURL=v.apiURL||"https://api.steemlogin.com",this.app=v.app,this.callbackURL=v.callbackURL,this.accessToken=v.accessToken,this.scope=v.scope||[],this.responseType=v.responseType}return(0,y.default)(O,[{key:"setBaseURL",value:function(){return console.warn('The function "setBaseUrl" is deprecated, the base URL is always "https://steemconnect.com", you can only change the API URL with "setApiURL"'),this}},{key:"setApiURL",value:function(v){return this.apiURL=v,this}},{key:"setApp",value:function(v){return this.app=v,this}},{key:"setCallbackURL",value:function(v){return this.callbackURL=v,this}},{key:"setAccessToken",value:function(v){return this.accessToken=v,this}},{key:"removeAccessToken",value:function(){return delete this.accessToken,this}},{key:"setScope",value:function(v){return this.scope=v,this}},{key:"getLoginURL",value:function(v){var p=encodeURIComponent(this.callbackURL),q="https://steemlogin.com/oauth2/authorize?client_id="+this.app+"&redirect_uri="+p;return this.responseType==="code"&&(q+="&response_type="+this.responseType),this.scope&&(q+="&scope="+this.scope.join(",")),v&&(q+="&state="+encodeURIComponent(v)),q}},{key:"login",value:function(v,p){if(N()){var q={};this.app&&(q.app=this.app),v.authority&&(q.authority=v.authority),window._steemconnect.login(q,p)}else if(j()&&v.username){var f={type:"login"};this.app&&(f.app=this.app);var P=parseInt(new Date().getTime()/1e3,10),C={signed_message:f,authors:[v.username],timestamp:P};window.steem_keychain.requestSignBuffer(v.username,(0,l.default)(C),"Posting",function(R){if(R.error)return p(R.error);C.signatures=[R.result];var B=btoa((0,l.default)(C));return p(null,B)})}else k()&&(window.location=this.getLoginURL(v.state))}},{key:"send",value:function(v,p,q,f){var P=this.apiURL+"/api/"+v,C=(0,a.default)(P,{method:p,headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json",Authorization:this.accessToken},body:(0,l.default)(q)}).then(function(R){var B=R.json();return R.status!==200?B.then(function(b){return c.default.reject(b)}):B}).then(function(R){return R.error?c.default.reject(R):R});return f?C.then(function(R){return f(null,R)}).catch(function(R){return f(R,null)}):C}},{key:"me",value:function(v){return this.send("me","POST",{},v)}},{key:"broadcast",value:function(v,p){if(N()){var q=(0,E.encodeOps)(v);return window._steemconnect.sign(q,p)}return this.send("broadcast","POST",{operations:v},p)}},{key:"vote",value:function(v,p,q,f,P){if(U())return window.steem_keychain.requestVote(v,q,p,f,function(R){return R.error?P(R.error):P(null,R)});var C={voter:v,author:p,permlink:q,weight:f};return this.broadcast([["vote",C]],P)}},{key:"comment",value:function(v,p,q,f,P,C,R,B){if(U())return window.steem_keychain.requestPost(q,P,C,p,v,R,f,"",function(x){return x.error?B(x.error):B(null,x)});var b={parent_author:v,parent_permlink:p,author:q,permlink:f,title:P,body:C,json_metadata:(0,l.default)(R)};return this.broadcast([["comment",b]],B)}},{key:"deleteComment",value:function(v,p,q){var f={author:v,permlink:p};return this.broadcast([["delete_comment",f]],q)}},{key:"customJson",value:function(v,p,q,f,P){if(U())return window.steem_keychain.requestCustomJson(p[0],q,"Posting",f,"",function(R){return R.error?P(R.error):P(null,R)});var C={required_auths:v,required_posting_auths:p,id:q,json:f};return this.broadcast([["custom_json",C]],P)}},{key:"reblog",value:function(v,p,q,f){var P=["reblog",{account:v,author:p,permlink:q}];return this.customJson([],[v],"follow",(0,l.default)(P),f)}},{key:"follow",value:function(v,p,q){var f=["follow",{follower:v,following:p,what:["blog"]}];return this.customJson([],[v],"follow",(0,l.default)(f),q)}},{key:"unfollow",value:function(v,p,q){var f=["follow",{follower:v,following:p,what:[]}];return this.customJson([],[v],"follow",(0,l.default)(f),q)}},{key:"ignore",value:function(v,p,q){var f=["follow",{follower:v,following:p,what:["ignore"]}];return this.customJson([],[v],"follow",(0,l.default)(f),q)}},{key:"claimRewardBalance",value:function(v,p,q,f,P){var C={account:v,reward_steem:p,reward_sbd:q,reward_vests:f};return this.broadcast([["claim_reward_balance",C]],P)}},{key:"revokeToken",value:function(v){var p=this;return this.send("oauth2/token/revoke","POST",{token:this.accessToken},v).then(function(){return p.removeAccessToken()})}},{key:"updateUserMetadata",value:function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=arguments[1];return console.warn('The function "updateUserMetadata" is deprecated.'),this.send("me","PUT",{user_metadata:v},p)}}]),O}();m.default={Client:A,Initialize:function(O){return console.warn('The function "Initialize" is deprecated, please use the class "Client" instead.'),new A(O)},sign:function(O,v,p){if(console.warn('The function "sign" is deprecated.'),typeof O!="string"||(v===void 0?"undefined":(0,o.default)(v))!=="object")return{error:"invalid_request",error_description:"Request has an invalid format"};var q="https://steemlogin.com/sign/"+O+"?";return q+=(0,r.default)(v).map(function(f){return f+"="+encodeURIComponent(v[f])}).join("&"),q+=p?"&redirect_uri="+encodeURIComponent(p):""},sendTransaction:function(O,v,p){var q=(0,E.encodeTx)(O,v),f=q.replace("steem://",d+"/");return N()?window._steemconnect.sign(q,p):p&&k()?window.open(f,"_blank").focus():f},sendOperations:function(O,v,p){var q=(0,E.encodeOps)(O,v),f=q.replace("steem://",d+"/");return N()?window._steemconnect.sign(q,p):p&&k()?window.open(f,"_blank").focus():f},sendOperation:function(O,v,p){var q=(0,E.encodeOp)(O,v),f=q.replace("steem://",d+"/");return N()?window._steemconnect.sign(q,p):p&&k()?window.open(f,"_blank").focus():f},hasChromeExtension:N,hasSteemKeychain:j,useSteemKeychain:U},h.exports=m.default},function(h,m,e){h.exports={default:e(54),__esModule:!0}},function(h,m,e){e(55),h.exports=e(1).Object.keys},function(h,m,e){var r=e(33),o=e(15);e(59)("keys",function(){return function(c){return o(r(c))}})},function(h,m,e){var r=e(11);h.exports=Object("z").propertyIsEnumerable(0)?Object:function(o){return r(o)=="String"?o.split(""):Object(o)}},function(h,m,e){var r=e(10),o=e(35),c=e(58);h.exports=function(l){return function(u,y,a){var E,g=r(u),d=o(g.length),k=c(a,d);if(l&&y!=y){for(;d>k;)if((E=g[k++])!=E)return!0}else for(;d>k;k++)if((l||k in g)&&g[k]===y)return l||k||0;return!l&&-1}}},function(h,m,e){var r=e(22),o=Math.max,c=Math.min;h.exports=function(l,u){return(l=r(l))<0?o(l+u,0):c(l,u)}},function(h,m,e){var r=e(7),o=e(1),c=e(13);h.exports=function(l,u){var y=(o.Object||{})[l]||Object[l],a={};a[l]=u(y),r(r.S+r.F*c(function(){y(1)}),"Object",a)}},function(h,m,e){m.__esModule=!0;var r=l(e(61)),o=l(e(70)),c=typeof o.default=="function"&&typeof r.default=="symbol"?function(u){return typeof u}:function(u){return u&&typeof o.default=="function"&&u.constructor===o.default&&u!==o.default.prototype?"symbol":typeof u};function l(u){return u&&u.__esModule?u:{default:u}}m.default=typeof o.default=="function"&&c(r.default)==="symbol"?function(u){return u===void 0?"undefined":c(u)}:function(u){return u&&typeof o.default=="function"&&u.constructor===o.default&&u!==o.default.prototype?"symbol":u===void 0?"undefined":c(u)}},function(h,m,e){h.exports={default:e(62),__esModule:!0}},function(h,m,e){e(37),e(42),h.exports=e(28).f("iterator")},function(h,m,e){var r=e(22),o=e(21);h.exports=function(c){return function(l,u){var y,a,E=String(o(l)),g=r(u),d=E.length;return g<0||g>=d?c?"":void 0:(y=E.charCodeAt(g))<55296||y>56319||g+1===d||(a=E.charCodeAt(g+1))<56320||a>57343?c?E.charAt(g):y:c?E.slice(g,g+2):a-56320+(y-55296<<10)+65536}}},function(h,m,e){var r=e(40),o=e(19),c=e(20),l={};e(8)(l,e(2)("iterator"),function(){return this}),h.exports=function(u,y,a){u.prototype=r(l,{next:o(1,a)}),c(u,y+" Iterator")}},function(h,m,e){var r=e(3),o=e(4),c=e(15);h.exports=e(5)?Object.defineProperties:function(l,u){o(l);for(var y,a=c(u),E=a.length,g=0;E>g;)r.f(l,y=a[g++],u[y]);return l}},function(h,m,e){var r=e(6),o=e(33),c=e(23)("IE_PROTO"),l=Object.prototype;h.exports=Object.getPrototypeOf||function(u){return u=o(u),r(u,c)?u[c]:typeof u.constructor=="function"&&u instanceof u.constructor?u.constructor.prototype:u instanceof Object?l:null}},function(h,m,e){var r=e(68),o=e(69),c=e(14),l=e(10);h.exports=e(38)(Array,"Array",function(u,y){this._t=l(u),this._i=0,this._k=y},function(){var u=this._t,y=this._k,a=this._i++;return!u||a>=u.length?(this._t=void 0,o(1)):o(0,y=="keys"?a:y=="values"?u[a]:[a,u[a]])},"values"),c.Arguments=c.Array,r("keys"),r("values"),r("entries")},function(h,m){h.exports=function(){}},function(h,m){h.exports=function(e,r){return{value:r,done:!!e}}},function(h,m,e){h.exports={default:e(71),__esModule:!0}},function(h,m,e){e(72),e(45),e(78),e(79),h.exports=e(1).Symbol},function(h,m,e){var r=e(0),o=e(6),c=e(5),l=e(7),u=e(39),y=e(73).KEY,a=e(13),E=e(24),g=e(20),d=e(16),k=e(2),N=e(28),j=e(29),U=e(74),A=e(75),O=e(4),v=e(9),p=e(10),q=e(27),f=e(19),P=e(40),C=e(76),R=e(77),B=e(3),b=e(15),x=R.f,M=B.f,G=C.f,F=r.Symbol,V=r.JSON,K=V&&V.stringify,Y=k("_hidden"),ee=k("toPrimitive"),ne={}.propertyIsEnumerable,X=E("symbol-registry"),oe=E("symbols"),T=E("op-symbols"),D=Object.prototype,$=typeof F=="function",ie=r.QObject,re=!ie||!ie.prototype||!ie.prototype.findChild,t=c&&a(function(){return P(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a!=7})?function(L,J,te){var ue=x(D,J);ue&&delete D[J],M(L,J,te),ue&&L!==D&&M(D,J,ue)}:M,n=function(L){var J=oe[L]=P(F.prototype);return J._k=L,J},s=$&&typeof F.iterator=="symbol"?function(L){return typeof L=="symbol"}:function(L){return L instanceof F},_=function(L,J,te){return L===D&&_(T,J,te),O(L),J=q(J,!0),O(te),o(oe,J)?(te.enumerable?(o(L,Y)&&L[Y][J]&&(L[Y][J]=!1),te=P(te,{enumerable:f(0,!1)})):(o(L,Y)||M(L,Y,f(1,{})),L[Y][J]=!0),t(L,J,te)):M(L,J,te)},w=function(L,J){O(L);for(var te,ue=U(J=p(J)),fe=0,me=ue.length;me>fe;)_(L,te=ue[fe++],J[te]);return L},S=function(L){var J=ne.call(this,L=q(L,!0));return!(this===D&&o(oe,L)&&!o(T,L))&&(!(J||!o(this,L)||!o(oe,L)||o(this,Y)&&this[Y][L])||J)},I=function(L,J){if(L=p(L),J=q(J,!0),L!==D||!o(oe,J)||o(T,J)){var te=x(L,J);return!te||!o(oe,J)||o(L,Y)&&L[Y][J]||(te.enumerable=!0),te}},H=function(L){for(var J,te=G(p(L)),ue=[],fe=0;te.length>fe;)o(oe,J=te[fe++])||J==Y||J==y||ue.push(J);return ue},Q=function(L){for(var J,te=L===D,ue=G(te?T:p(L)),fe=[],me=0;ue.length>me;)!o(oe,J=ue[me++])||te&&!o(D,J)||fe.push(oe[J]);return fe};$||(u((F=function(){if(this instanceof F)throw TypeError("Symbol is not a constructor!");var L=d(arguments.length>0?arguments[0]:void 0),J=function(te){this===D&&J.call(T,te),o(this,Y)&&o(this[Y],L)&&(this[Y][L]=!1),t(this,L,f(1,te))};return c&&re&&t(D,L,{configurable:!0,set:J}),n(L)}).prototype,"toString",function(){return this._k}),R.f=I,B.f=_,e(44).f=C.f=H,e(30).f=S,e(43).f=Q,c&&!e(12)&&u(D,"propertyIsEnumerable",S,!0),N.f=function(L){return n(k(L))}),l(l.G+l.W+l.F*!$,{Symbol:F});for(var se="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Z=0;se.length>Z;)k(se[Z++]);for(var he=b(k.store),le=0;he.length>le;)j(he[le++]);l(l.S+l.F*!$,"Symbol",{for:function(L){return o(X,L+="")?X[L]:X[L]=F(L)},keyFor:function(L){if(!s(L))throw TypeError(L+" is not a symbol!");for(var J in X)if(X[J]===L)return J},useSetter:function(){re=!0},useSimple:function(){re=!1}}),l(l.S+l.F*!$,"Object",{create:function(L,J){return J===void 0?P(L):w(P(L),J)},defineProperty:_,defineProperties:w,getOwnPropertyDescriptor:I,getOwnPropertyNames:H,getOwnPropertySymbols:Q}),V&&l(l.S+l.F*(!$||a(function(){var L=F();return K([L])!="[null]"||K({a:L})!="{}"||K(Object(L))!="{}"})),"JSON",{stringify:function(L){for(var J,te,ue=[L],fe=1;arguments.length>fe;)ue.push(arguments[fe++]);if(te=J=ue[1],(v(J)||L!==void 0)&&!s(L))return A(J)||(J=function(me,be){if(typeof te=="function"&&(be=te.call(this,me,be)),!s(be))return be}),ue[1]=J,K.apply(V,ue)}}),F.prototype[ee]||e(8)(F.prototype,ee,F.prototype.valueOf),g(F,"Symbol"),g(Math,"Math",!0),g(r.JSON,"JSON",!0)},function(h,m,e){var r=e(16)("meta"),o=e(9),c=e(6),l=e(3).f,u=0,y=Object.isExtensible||function(){return!0},a=!e(13)(function(){return y(Object.preventExtensions({}))}),E=function(d){l(d,r,{value:{i:"O"+ ++u,w:{}}})},g=h.exports={KEY:r,NEED:!1,fastKey:function(d,k){if(!o(d))return typeof d=="symbol"?d:(typeof d=="string"?"S":"P")+d;if(!c(d,r)){if(!y(d))return"F";if(!k)return"E";E(d)}return d[r].i},getWeak:function(d,k){if(!c(d,r)){if(!y(d))return!0;if(!k)return!1;E(d)}return d[r].w},onFreeze:function(d){return a&&g.NEED&&y(d)&&!c(d,r)&&E(d),d}}},function(h,m,e){var r=e(15),o=e(43),c=e(30);h.exports=function(l){var u=r(l),y=o.f;if(y)for(var a,E=y(l),g=c.f,d=0;E.length>d;)g.call(l,a=E[d++])&&u.push(a);return u}},function(h,m,e){var r=e(11);h.exports=Array.isArray||function(o){return r(o)=="Array"}},function(h,m,e){var r=e(10),o=e(44).f,c={}.toString,l=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];h.exports.f=function(u){return l&&c.call(u)=="[object Window]"?function(y){try{return o(y)}catch{return l.slice()}}(u):o(r(u))}},function(h,m,e){var r=e(30),o=e(19),c=e(10),l=e(27),u=e(6),y=e(36),a=Object.getOwnPropertyDescriptor;m.f=e(5)?a:function(E,g){if(E=c(E),g=l(g,!0),y)try{return a(E,g)}catch{}if(u(E,g))return o(!r.f.call(E,g),E[g])}},function(h,m,e){e(29)("asyncIterator")},function(h,m,e){e(29)("observable")},function(h,m,e){h.exports={default:e(81),__esModule:!0}},function(h,m,e){e(45),e(37),e(42),e(82),e(94),e(95),h.exports=e(1).Promise},function(h,m,e){var r,o,c,l,u=e(12),y=e(0),a=e(17),E=e(46),g=e(7),d=e(9),k=e(18),N=e(83),j=e(84),U=e(47),A=e(48).set,O=e(89)(),v=e(31),p=e(49),q=e(90),f=e(50),P=y.TypeError,C=y.process,R=C&&C.versions,B=R&&R.v8||"",b=y.Promise,x=E(C)=="process",M=function(){},G=o=v.f,F=!!function(){try{var T=b.resolve(1),D=(T.constructor={})[e(2)("species")]=function($){$(M,M)};return(x||typeof PromiseRejectionEvent=="function")&&T.then(M)instanceof D&&B.indexOf("6.6")!==0&&q.indexOf("Chrome/66")===-1}catch{}}(),V=function(T){var D;return!(!d(T)||typeof(D=T.then)!="function")&&D},K=function(T,D){if(!T._n){T._n=!0;var $=T._c;O(function(){for(var ie=T._v,re=T._s==1,t=0,n=function(s){var _,w,S,I=re?s.ok:s.fail,H=s.resolve,Q=s.reject,se=s.domain;try{I?(re||(T._h==2&&ne(T),T._h=1),I===!0?_=ie:(se&&se.enter(),_=I(ie),se&&(se.exit(),S=!0)),_===s.promise?Q(P("Promise-chain cycle")):(w=V(_))?w.call(_,H,Q):H(_)):Q(ie)}catch(Z){se&&!S&&se.exit(),Q(Z)}};$.length>t;)n($[t++]);T._c=[],T._n=!1,D&&!T._h&&Y(T)})}},Y=function(T){A.call(y,function(){var D,$,ie,re=T._v,t=ee(T);if(t&&(D=p(function(){x?C.emit("unhandledRejection",re,T):($=y.onunhandledrejection)?$({promise:T,reason:re}):(ie=y.console)&&ie.error&&ie.error("Unhandled promise rejection",re)}),T._h=x||ee(T)?2:1),T._a=void 0,t&&D.e)throw D.v})},ee=function(T){return T._h!==1&&(T._a||T._c).length===0},ne=function(T){A.call(y,function(){var D;x?C.emit("rejectionHandled",T):(D=y.onrejectionhandled)&&D({promise:T,reason:T._v})})},X=function(T){var D=this;D._d||(D._d=!0,(D=D._w||D)._v=T,D._s=2,D._a||(D._a=D._c.slice()),K(D,!0))},oe=function(T){var D,$=this;if(!$._d){$._d=!0,$=$._w||$;try{if($===T)throw P("Promise can't be resolved itself");(D=V(T))?O(function(){var ie={_w:$,_d:!1};try{D.call(T,a(oe,ie,1),a(X,ie,1))}catch(re){X.call(ie,re)}}):($._v=T,$._s=1,K($,!1))}catch(ie){X.call({_w:$,_d:!1},ie)}}};F||(b=function(T){N(this,b,"Promise","_h"),k(T),r.call(this);try{T(a(oe,this,1),a(X,this,1))}catch(D){X.call(this,D)}},(r=function(T){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=e(91)(b.prototype,{then:function(T,D){var $=G(U(this,b));return $.ok=typeof T!="function"||T,$.fail=typeof D=="function"&&D,$.domain=x?C.domain:void 0,this._c.push($),this._a&&this._a.push($),this._s&&K(this,!1),$.promise},catch:function(T){return this.then(void 0,T)}}),c=function(){var T=new r;this.promise=T,this.resolve=a(oe,T,1),this.reject=a(X,T,1)},v.f=G=function(T){return T===b||T===l?new c(T):o(T)}),g(g.G+g.W+g.F*!F,{Promise:b}),e(20)(b,"Promise"),e(92)("Promise"),l=e(1).Promise,g(g.S+g.F*!F,"Promise",{reject:function(T){var D=G(this);return(0,D.reject)(T),D.promise}}),g(g.S+g.F*(u||!F),"Promise",{resolve:function(T){return f(u&&this===l?b:this,T)}}),g(g.S+g.F*!(F&&e(93)(function(T){b.all(T).catch(M)})),"Promise",{all:function(T){var D=this,$=G(D),ie=$.resolve,re=$.reject,t=p(function(){var n=[],s=0,_=1;j(T,!1,function(w){var S=s++,I=!1;n.push(void 0),_++,D.resolve(w).then(function(H){I||(I=!0,n[S]=H,--_||ie(n))},re)}),--_||ie(n)});return t.e&&re(t.v),$.promise},race:function(T){var D=this,$=G(D),ie=$.reject,re=p(function(){j(T,!1,function(t){D.resolve(t).then($.resolve,ie)})});return re.e&&ie(re.v),$.promise}})},function(h,m){h.exports=function(e,r,o,c){if(!(e instanceof r)||c!==void 0&&c in e)throw TypeError(o+": incorrect invocation!");return e}},function(h,m,e){var r=e(17),o=e(85),c=e(86),l=e(4),u=e(35),y=e(87),a={},E={};(m=h.exports=function(g,d,k,N,j){var U,A,O,v,p=j?function(){return g}:y(g),q=r(k,N,d?2:1),f=0;if(typeof p!="function")throw TypeError(g+" is not iterable!");if(c(p)){for(U=u(g.length);U>f;f++)if((v=d?q(l(A=g[f])[0],A[1]):q(g[f]))===a||v===E)return v}else for(O=p.call(g);!(A=O.next()).done;)if((v=o(O,q,A.value,d))===a||v===E)return v}).BREAK=a,m.RETURN=E},function(h,m,e){var r=e(4);h.exports=function(o,c,l,u){try{return u?c(r(l)[0],l[1]):c(l)}catch(a){var y=o.return;throw y!==void 0&&r(y.call(o)),a}}},function(h,m,e){var r=e(14),o=e(2)("iterator"),c=Array.prototype;h.exports=function(l){return l!==void 0&&(r.Array===l||c[o]===l)}},function(h,m,e){var r=e(46),o=e(2)("iterator"),c=e(14);h.exports=e(1).getIteratorMethod=function(l){if(l!=null)return l[o]||l["@@iterator"]||c[r(l)]}},function(h,m){h.exports=function(e,r,o){var c=o===void 0;switch(r.length){case 0:return c?e():e.call(o);case 1:return c?e(r[0]):e.call(o,r[0]);case 2:return c?e(r[0],r[1]):e.call(o,r[0],r[1]);case 3:return c?e(r[0],r[1],r[2]):e.call(o,r[0],r[1],r[2]);case 4:return c?e(r[0],r[1],r[2],r[3]):e.call(o,r[0],r[1],r[2],r[3])}return e.apply(o,r)}},function(h,m,e){var r=e(0),o=e(48).set,c=r.MutationObserver||r.WebKitMutationObserver,l=r.process,u=r.Promise,y=e(11)(l)=="process";h.exports=function(){var a,E,g,d=function(){var U,A;for(y&&(U=l.domain)&&U.exit();a;){A=a.fn,a=a.next;try{A()}catch(O){throw a?g():E=void 0,O}}E=void 0,U&&U.enter()};if(y)g=function(){l.nextTick(d)};else if(!c||r.navigator&&r.navigator.standalone)if(u&&u.resolve){var k=u.resolve(void 0);g=function(){k.then(d)}}else g=function(){o.call(r,d)};else{var N=!0,j=document.createTextNode("");new c(d).observe(j,{characterData:!0}),g=function(){j.data=N=!N}}return function(U){var A={fn:U,next:void 0};E&&(E.next=A),a||(a=A,g()),E=A}}},function(h,m,e){var r=e(0).navigator;h.exports=r&&r.userAgent||""},function(h,m,e){var r=e(8);h.exports=function(o,c,l){for(var u in c)l&&o[u]?o[u]=c[u]:r(o,u,c[u]);return o}},function(h,m,e){var r=e(0),o=e(1),c=e(3),l=e(5),u=e(2)("species");h.exports=function(y){var a=typeof o[y]=="function"?o[y]:r[y];l&&a&&!a[u]&&c.f(a,u,{configurable:!0,get:function(){return this}})}},function(h,m,e){var r=e(2)("iterator"),o=!1;try{var c=[7][r]();c.return=function(){o=!0},Array.from(c,function(){throw 2})}catch{}h.exports=function(l,u){if(!u&&!o)return!1;var y=!1;try{var a=[7],E=a[r]();E.next=function(){return{done:y=!0}},a[r]=function(){return E},l(a)}catch{}return y}},function(h,m,e){var r=e(7),o=e(1),c=e(0),l=e(47),u=e(50);r(r.P+r.R,"Promise",{finally:function(y){var a=l(this,o.Promise||c.Promise),E=typeof y=="function";return this.then(E?function(g){return u(a,y()).then(function(){return g})}:y,E?function(g){return u(a,y()).then(function(){throw g})}:y)}})},function(h,m,e){var r=e(7),o=e(31),c=e(49);r(r.S,"Promise",{try:function(l){var u=o.f(this),y=c(l);return(y.e?u.reject:u.resolve)(y.v),u.promise}})},function(h,m,e){h.exports={default:e(97),__esModule:!0}},function(h,m,e){var r=e(1),o=r.JSON||(r.JSON={stringify:JSON.stringify});h.exports=function(c){return o.stringify.apply(o,arguments)}},function(h,m,e){m.__esModule=!0,m.default=function(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")}},function(h,m,e){m.__esModule=!0;var r,o=e(100),c=(r=o)&&r.__esModule?r:{default:r};m.default=function(){function l(u,y){for(var a=0;a<y.length;a++){var E=y[a];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),(0,c.default)(u,E.key,E)}}return function(u,y,a){return y&&l(u.prototype,y),a&&l(u,a),u}}()},function(h,m,e){h.exports={default:e(101),__esModule:!0}},function(h,m,e){e(102);var r=e(1).Object;h.exports=function(o,c,l){return r.defineProperty(o,c,l)}},function(h,m,e){var r=e(7);r(r.S+r.F*!e(5),"Object",{defineProperty:e(3).f})},function(h,m){var e=function(r){function o(){this.fetch=!1}return o.prototype=r,new o}(typeof self<"u"?self:this);(function(r){(function(o){var c="URLSearchParams"in r,l="Symbol"in r&&"iterator"in Symbol,u="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch{return!1}}(),y="FormData"in r,a="ArrayBuffer"in r;if(a)var E=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],g=ArrayBuffer.isView||function(b){return b&&E.indexOf(Object.prototype.toString.call(b))>-1};function d(b){if(typeof b!="string"&&(b=String(b)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(b))throw new TypeError("Invalid character in header field name");return b.toLowerCase()}function k(b){return typeof b!="string"&&(b=String(b)),b}function N(b){var x={next:function(){var M=b.shift();return{done:M===void 0,value:M}}};return l&&(x[Symbol.iterator]=function(){return x}),x}function j(b){this.map={},b instanceof j?b.forEach(function(x,M){this.append(M,x)},this):Array.isArray(b)?b.forEach(function(x){this.append(x[0],x[1])},this):b&&Object.getOwnPropertyNames(b).forEach(function(x){this.append(x,b[x])},this)}function U(b){if(b.bodyUsed)return Promise.reject(new TypeError("Already read"));b.bodyUsed=!0}function A(b){return new Promise(function(x,M){b.onload=function(){x(b.result)},b.onerror=function(){M(b.error)}})}function O(b){var x=new FileReader,M=A(x);return x.readAsArrayBuffer(b),M}function v(b){if(b.slice)return b.slice(0);var x=new Uint8Array(b.byteLength);return x.set(new Uint8Array(b)),x.buffer}function p(){return this.bodyUsed=!1,this._initBody=function(b){var x;this._bodyInit=b,b?typeof b=="string"?this._bodyText=b:u&&Blob.prototype.isPrototypeOf(b)?this._bodyBlob=b:y&&FormData.prototype.isPrototypeOf(b)?this._bodyFormData=b:c&&URLSearchParams.prototype.isPrototypeOf(b)?this._bodyText=b.toString():a&&u&&(x=b)&&DataView.prototype.isPrototypeOf(x)?(this._bodyArrayBuffer=v(b.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(b)||g(b))?this._bodyArrayBuffer=v(b):this._bodyText=b=Object.prototype.toString.call(b):this._bodyText="",this.headers.get("content-type")||(typeof b=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):c&&URLSearchParams.prototype.isPrototypeOf(b)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},u&&(this.blob=function(){var b=U(this);if(b)return b;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?U(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(O)}),this.text=function(){var b,x,M,G=U(this);if(G)return G;if(this._bodyBlob)return b=this._bodyBlob,x=new FileReader,M=A(x),x.readAsText(b),M;if(this._bodyArrayBuffer)return Promise.resolve(function(F){for(var V=new Uint8Array(F),K=new Array(V.length),Y=0;Y<V.length;Y++)K[Y]=String.fromCharCode(V[Y]);return K.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},y&&(this.formData=function(){return this.text().then(P)}),this.json=function(){return this.text().then(JSON.parse)},this}j.prototype.append=function(b,x){b=d(b),x=k(x);var M=this.map[b];this.map[b]=M?M+", "+x:x},j.prototype.delete=function(b){delete this.map[d(b)]},j.prototype.get=function(b){return b=d(b),this.has(b)?this.map[b]:null},j.prototype.has=function(b){return this.map.hasOwnProperty(d(b))},j.prototype.set=function(b,x){this.map[d(b)]=k(x)},j.prototype.forEach=function(b,x){for(var M in this.map)this.map.hasOwnProperty(M)&&b.call(x,this.map[M],M,this)},j.prototype.keys=function(){var b=[];return this.forEach(function(x,M){b.push(M)}),N(b)},j.prototype.values=function(){var b=[];return this.forEach(function(x){b.push(x)}),N(b)},j.prototype.entries=function(){var b=[];return this.forEach(function(x,M){b.push([M,x])}),N(b)},l&&(j.prototype[Symbol.iterator]=j.prototype.entries);var q=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function f(b,x){var M,G,F=(x=x||{}).body;if(b instanceof f){if(b.bodyUsed)throw new TypeError("Already read");this.url=b.url,this.credentials=b.credentials,x.headers||(this.headers=new j(b.headers)),this.method=b.method,this.mode=b.mode,this.signal=b.signal,F||b._bodyInit==null||(F=b._bodyInit,b.bodyUsed=!0)}else this.url=String(b);if(this.credentials=x.credentials||this.credentials||"same-origin",!x.headers&&this.headers||(this.headers=new j(x.headers)),this.method=(M=x.method||this.method||"GET",G=M.toUpperCase(),q.indexOf(G)>-1?G:M),this.mode=x.mode||this.mode||null,this.signal=x.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&F)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(F)}function P(b){var x=new FormData;return b.trim().split("&").forEach(function(M){if(M){var G=M.split("="),F=G.shift().replace(/\+/g," "),V=G.join("=").replace(/\+/g," ");x.append(decodeURIComponent(F),decodeURIComponent(V))}}),x}function C(b,x){x||(x={}),this.type="default",this.status=x.status===void 0?200:x.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in x?x.statusText:"OK",this.headers=new j(x.headers),this.url=x.url||"",this._initBody(b)}f.prototype.clone=function(){return new f(this,{body:this._bodyInit})},p.call(f.prototype),p.call(C.prototype),C.prototype.clone=function(){return new C(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new j(this.headers),url:this.url})},C.error=function(){var b=new C(null,{status:0,statusText:""});return b.type="error",b};var R=[301,302,303,307,308];C.redirect=function(b,x){if(R.indexOf(x)===-1)throw new RangeError("Invalid status code");return new C(null,{status:x,headers:{location:b}})},o.DOMException=r.DOMException;try{new o.DOMException}catch{o.DOMException=function(x,M){this.message=x,this.name=M;var G=Error(x);this.stack=G.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function B(b,x){return new Promise(function(M,G){var F=new f(b,x);if(F.signal&&F.signal.aborted)return G(new o.DOMException("Aborted","AbortError"));var V=new XMLHttpRequest;function K(){V.abort()}V.onload=function(){var Y,ee,ne={status:V.status,statusText:V.statusText,headers:(Y=V.getAllResponseHeaders()||"",ee=new j,Y.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(oe){var T=oe.split(":"),D=T.shift().trim();if(D){var $=T.join(":").trim();ee.append(D,$)}}),ee)};ne.url="responseURL"in V?V.responseURL:ne.headers.get("X-Request-URL");var X="response"in V?V.response:V.responseText;M(new C(X,ne))},V.onerror=function(){G(new TypeError("Network request failed"))},V.ontimeout=function(){G(new TypeError("Network request failed"))},V.onabort=function(){G(new o.DOMException("Aborted","AbortError"))},V.open(F.method,F.url,!0),F.credentials==="include"?V.withCredentials=!0:F.credentials==="omit"&&(V.withCredentials=!1),"responseType"in V&&u&&(V.responseType="blob"),F.headers.forEach(function(Y,ee){V.setRequestHeader(ee,Y)}),F.signal&&(F.signal.addEventListener("abort",K),V.onreadystatechange=function(){V.readyState===4&&F.signal.removeEventListener("abort",K)}),V.send(F._bodyInit===void 0?null:F._bodyInit)})}B.polyfill=!0,r.fetch||(r.fetch=B,r.Headers=j,r.Request=f,r.Response=C),o.Headers=j,o.Request=f,o.Response=C,o.fetch=B})({})})(e),delete e.fetch.polyfill,(m=e.fetch).default=e.fetch,m.fetch=e.fetch,m.Headers=e.Headers,m.Request=e.Request,m.Response=e.Response,h.exports=m},function(h,m,e){(function(r,o){Object.defineProperty(m,"__esModule",{value:!0}),typeof URL>"u"&&(r.URL=e(51).URL),typeof URLSearchParams>"u"&&(r.URLSearchParams=e(51).URLSearchParams),typeof btoa>"u"&&(r.btoa=function(d){return new o(d,"binary").toString("base64")}),typeof atob>"u"&&(r.atob=function(d){return new o(d,"base64").toString("binary")});var c={"/":"_",_:"/","+":"-","-":"+","=":".",".":"="},l=function(d){return btoa(d).replace(/(\+|\/|=)/g,function(k){return c[k]})},u=function(d){return atob(d.replace(/(-|_|\.)/g,function(k){return c[k]}))};m.decode=function(d){var k=d.slice(0,6),N=new URL(d.replace(/^steem:/,"http:"));if(k!=="steem:")throw new Error("Invalid protocol, expected 'steem:' got '"+k+"'");if(N.host!=="sign")throw new Error("Invalid action, expected 'sign' got '"+N.host+"'");var j,U,A=N.pathname.split("/").slice(1),O=A[0],v=A[1];try{j=JSON.parse(u(v))}catch(q){throw q.message="Invalid payload: "+q.message,q}switch(O){case"tx":U=j;break;case"op":case"ops":U={ref_block_num:"__ref_block_num",ref_block_prefix:"__ref_block_prefix",expiration:"__expiration",extensions:[],operations:O==="ops"?j:[j]};break;default:throw new Error("Invalid signing action '"+O+"'")}var p={};return N.searchParams.has("cb")&&(p.callback=u(N.searchParams.get("cb"))),N.searchParams.has("nb")&&(p.no_broadcast=!0),N.searchParams.has("s")&&(p.signer=N.searchParams.get("s")),{tx:U,params:p}};var y=/(__(ref_block_(num|prefix)|expiration|signer))/g;m.resolveTransaction=function(d,k,N){var j=k.signer||N.preferred_signer;if(!N.signers.includes(j))throw new Error("Signer '"+j+"' not available");var U={__ref_block_num:N.ref_block_num,__ref_block_prefix:N.ref_block_prefix,__expiration:N.expiration,__signer:j},A=function(O){var v=typeof O;switch(v==="object"&&Array.isArray(O)?v="array":O===null&&(v="null"),v){case"string":return O.replace(y,function(B){return U[B]});case"array":return O.map(A);case"object":for(var p={},q=0,f=Object.entries(O);q<f.length;q++){var P=f[q],C=P[0],R=P[1];p[C]=A(R)}return p;default:return O}};return{signer:j,tx:A(d)}};var a=/({{(sig|id|block|txn)}})/g;function E(d){var k=new URLSearchParams;d.no_broadcast===!0&&k.set("nb",""),d.signer&&k.set("s",d.signer),d.callback&&k.set("cb",l(d.callback));var N=k.toString