steem-auth-vue
Version:
A Vue 3 authentication component for Steem blockchain and MeeRay sidechain
1,027 lines • 219 kB
JavaScript
var st = Object.defineProperty;
var it = (T, K, f) => K in T ? st(T, K, { enumerable: !0, configurable: !0, writable: !0, value: f }) : T[K] = f;
var Ye = (T, K, f) => (it(T, typeof K != "symbol" ? K + "" : K, f), f);
import { reactive as Le, readonly as Qe, provide as ut, inject as et, defineComponent as Pe, ref as Q, openBlock as D, createElementBlock as V, createElementVNode as M, withModifiers as ge, withDirectives as ye, normalizeClass as Te, vModelText as ke, toDisplayString as re, createCommentVNode as te, createTextVNode as qe, Fragment as _e, renderList as Ae, computed as lt, watch as Se, nextTick as ct, withKeys as We, onMounted as Fe, unref as he, renderSlot as Ke, createVNode as ft, createBlock as xe, vModelCheckbox as ht, vModelRadio as Ne } from "vue";
import * as tt from "dsteem";
import { PrivateKey as Ve } from "dsteem";
var nt = { exports: {} };
(function(T, K) {
(function(f, p) {
T.exports = p();
})(window, function() {
return function(f) {
var p = {};
function e(r) {
if (p[r])
return p[r].exports;
var a = p[r] = { i: r, l: !1, exports: {} };
return f[r].call(a.exports, a, a.exports, e), a.l = !0, a.exports;
}
return e.m = f, e.c = p, e.d = function(r, a, l) {
e.o(r, a) || Object.defineProperty(r, a, { enumerable: !0, get: l });
}, 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, a) {
if (1 & a && (r = e(r)), 8 & a || 4 & a && typeof r == "object" && r && r.__esModule)
return r;
var l = /* @__PURE__ */ Object.create(null);
if (e.r(l), Object.defineProperty(l, "default", { enumerable: !0, value: r }), 2 & a && typeof r != "string")
for (var h in r)
e.d(l, h, (function(o) {
return r[o];
}).bind(null, h));
return l;
}, e.n = function(r) {
var a = r && r.__esModule ? function() {
return r.default;
} : function() {
return r;
};
return e.d(a, "a", a), a;
}, e.o = function(r, a) {
return Object.prototype.hasOwnProperty.call(r, a);
}, e.p = "", e(e.s = 52);
}([function(f, p) {
var e = f.exports = typeof window < "u" && window.Math == Math ? window : typeof self < "u" && self.Math == Math ? self : Function("return this")();
typeof __g == "number" && (__g = e);
}, function(f, p) {
var e = f.exports = { version: "2.6.5" };
typeof __e == "number" && (__e = e);
}, function(f, p, e) {
var r = e(24)("wks"), a = e(16), l = e(0).Symbol, h = typeof l == "function";
(f.exports = function(o) {
return r[o] || (r[o] = h && l[o] || (h ? l : a)("Symbol." + o));
}).store = r;
}, function(f, p, e) {
var r = e(4), a = e(36), l = e(27), h = Object.defineProperty;
p.f = e(5) ? Object.defineProperty : function(o, d, s) {
if (r(o), d = l(d, !0), r(s), a)
try {
return h(o, d, s);
} catch {
}
if ("get" in s || "set" in s)
throw TypeError("Accessors not supported!");
return "value" in s && (o[d] = s.value), o;
};
}, function(f, p, e) {
var r = e(9);
f.exports = function(a) {
if (!r(a))
throw TypeError(a + " is not an object!");
return a;
};
}, function(f, p, e) {
f.exports = !e(13)(function() {
return Object.defineProperty({}, "a", { get: function() {
return 7;
} }).a != 7;
});
}, function(f, p) {
var e = {}.hasOwnProperty;
f.exports = function(r, a) {
return e.call(r, a);
};
}, function(f, p, e) {
var r = e(0), a = e(1), l = e(17), h = e(8), o = e(6), d = function(s, y, g) {
var m, S, j, q = s & d.F, L = s & d.G, C = s & d.S, O = s & d.P, w = s & d.B, u = s & d.W, b = L ? a : a[y] || (a[y] = {}), c = b.prototype, P = L ? r : C ? r[y] : (r[y] || {}).prototype;
for (m in L && (g = y), g)
(S = !q && P && P[m] !== void 0) && o(b, m) || (j = S ? P[m] : g[m], b[m] = L && typeof P[m] != "function" ? g[m] : w && S ? l(j, r) : u && P[m] == j ? function(U) {
var I = function(x, v, E) {
if (this instanceof U) {
switch (arguments.length) {
case 0:
return new U();
case 1:
return new U(x);
case 2:
return new U(x, v);
}
return new U(x, v, E);
}
return U.apply(this, arguments);
};
return I.prototype = U.prototype, I;
}(j) : O && typeof j == "function" ? l(Function.call, j) : j, O && ((b.virtual || (b.virtual = {}))[m] = j, s & d.R && c && !c[m] && h(c, m, j)));
};
d.F = 1, d.G = 2, d.S = 4, d.P = 8, d.B = 16, d.W = 32, d.U = 64, d.R = 128, f.exports = d;
}, function(f, p, e) {
var r = e(3), a = e(19);
f.exports = e(5) ? function(l, h, o) {
return r.f(l, h, a(1, o));
} : function(l, h, o) {
return l[h] = o, l;
};
}, function(f, p) {
f.exports = function(e) {
return typeof e == "object" ? e !== null : typeof e == "function";
};
}, function(f, p, e) {
var r = e(56), a = e(21);
f.exports = function(l) {
return r(a(l));
};
}, function(f, p) {
var e = {}.toString;
f.exports = function(r) {
return e.call(r).slice(8, -1);
};
}, function(f, p) {
f.exports = !0;
}, function(f, p) {
f.exports = function(e) {
try {
return !!e();
} catch {
return !0;
}
};
}, function(f, p) {
f.exports = {};
}, function(f, p, e) {
var r = e(34), a = e(25);
f.exports = Object.keys || function(l) {
return r(l, a);
};
}, function(f, p) {
var e = 0, r = Math.random();
f.exports = function(a) {
return "Symbol(".concat(a === void 0 ? "" : a, ")_", (++e + r).toString(36));
};
}, function(f, p, e) {
var r = e(18);
f.exports = function(a, l, h) {
if (r(a), l === void 0)
return a;
switch (h) {
case 1:
return function(o) {
return a.call(l, o);
};
case 2:
return function(o, d) {
return a.call(l, o, d);
};
case 3:
return function(o, d, s) {
return a.call(l, o, d, s);
};
}
return function() {
return a.apply(l, arguments);
};
};
}, function(f, p) {
f.exports = function(e) {
if (typeof e != "function")
throw TypeError(e + " is not a function!");
return e;
};
}, function(f, p) {
f.exports = function(e, r) {
return { enumerable: !(1 & e), configurable: !(2 & e), writable: !(4 & e), value: r };
};
}, function(f, p, e) {
var r = e(3).f, a = e(6), l = e(2)("toStringTag");
f.exports = function(h, o, d) {
h && !a(h = d ? h : h.prototype, l) && r(h, l, { configurable: !0, value: o });
};
}, function(f, p) {
f.exports = function(e) {
if (e == null)
throw TypeError("Can't call method on " + e);
return e;
};
}, function(f, p) {
var e = Math.ceil, r = Math.floor;
f.exports = function(a) {
return isNaN(a = +a) ? 0 : (a > 0 ? r : e)(a);
};
}, function(f, p, e) {
var r = e(24)("keys"), a = e(16);
f.exports = function(l) {
return r[l] || (r[l] = a(l));
};
}, function(f, p, e) {
var r = e(1), a = e(0), l = a["__core-js_shared__"] || (a["__core-js_shared__"] = {});
(f.exports = function(h, o) {
return l[h] || (l[h] = o !== void 0 ? o : {});
})("versions", []).push({ version: r.version, mode: e(12) ? "pure" : "global", copyright: "© 2019 Denis Pushkarev (zloirock.ru)" });
}, function(f, p) {
f.exports = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",");
}, function(f, p, e) {
var r = e(9), a = e(0).document, l = r(a) && r(a.createElement);
f.exports = function(h) {
return l ? a.createElement(h) : {};
};
}, function(f, p, e) {
var r = e(9);
f.exports = function(a, l) {
if (!r(a))
return a;
var h, o;
if (l && typeof (h = a.toString) == "function" && !r(o = h.call(a)) || typeof (h = a.valueOf) == "function" && !r(o = h.call(a)) || !l && typeof (h = a.toString) == "function" && !r(o = h.call(a)))
return o;
throw TypeError("Can't convert object to primitive value");
};
}, function(f, p, e) {
p.f = e(2);
}, function(f, p, e) {
var r = e(0), a = e(1), l = e(12), h = e(28), o = e(3).f;
f.exports = function(d) {
var s = a.Symbol || (a.Symbol = l ? {} : r.Symbol || {});
d.charAt(0) == "_" || d in s || o(s, d, { value: h.f(d) });
};
}, function(f, p) {
p.f = {}.propertyIsEnumerable;
}, function(f, p, e) {
var r = e(18);
function a(l) {
var h, o;
this.promise = new l(function(d, s) {
if (h !== void 0 || o !== void 0)
throw TypeError("Bad Promise constructor");
h = d, o = s;
}), this.resolve = r(h), this.reject = r(o);
}
f.exports.f = function(l) {
return new a(l);
};
}, function(f, p) {
var e;
e = function() {
return this;
}();
try {
e = e || new Function("return this")();
} catch {
typeof window == "object" && (e = window);
}
f.exports = e;
}, function(f, p, e) {
var r = e(21);
f.exports = function(a) {
return Object(r(a));
};
}, function(f, p, e) {
var r = e(6), a = e(10), l = e(57)(!1), h = e(23)("IE_PROTO");
f.exports = function(o, d) {
var s, y = a(o), g = 0, m = [];
for (s in y)
s != h && r(y, s) && m.push(s);
for (; d.length > g; )
r(y, s = d[g++]) && (~l(m, s) || m.push(s));
return m;
};
}, function(f, p, e) {
var r = e(22), a = Math.min;
f.exports = function(l) {
return l > 0 ? a(r(l), 9007199254740991) : 0;
};
}, function(f, p, e) {
f.exports = !e(5) && !e(13)(function() {
return Object.defineProperty(e(26)("div"), "a", { get: function() {
return 7;
} }).a != 7;
});
}, function(f, p, e) {
var r = e(63)(!0);
e(38)(String, "String", function(a) {
this._t = String(a), this._i = 0;
}, function() {
var a, l = this._t, h = this._i;
return h >= l.length ? { value: void 0, done: !0 } : (a = r(l, h), this._i += a.length, { value: a, done: !1 });
});
}, function(f, p, e) {
var r = e(12), a = e(7), l = e(39), h = e(8), o = e(14), d = e(64), s = e(20), y = e(66), g = e(2)("iterator"), m = !([].keys && "next" in [].keys()), S = function() {
return this;
};
f.exports = function(j, q, L, C, O, w, u) {
d(L, q, C);
var b, c, P, U = function(G) {
if (!m && G in E)
return E[G];
switch (G) {
case "keys":
case "values":
return function() {
return new L(this, G);
};
}
return function() {
return new L(this, G);
};
}, I = q + " Iterator", x = O == "values", v = !1, E = j.prototype, B = E[g] || E["@@iterator"] || O && E[O], z = B || U(O), W = O ? x ? U("entries") : z : void 0, N = q == "Array" && E.entries || B;
if (N && (P = y(N.call(new j()))) !== Object.prototype && P.next && (s(P, I, !0), r || typeof P[g] == "function" || h(P, g, S)), x && B && B.name !== "values" && (v = !0, z = function() {
return B.call(this);
}), r && !u || !m && !v && E[g] || h(E, g, z), o[q] = z, o[I] = S, O)
if (b = { values: x ? z : U("values"), keys: w ? z : U("keys"), entries: W }, u)
for (c in b)
c in E || l(E, c, b[c]);
else
a(a.P + a.F * (m || v), q, b);
return b;
};
}, function(f, p, e) {
f.exports = e(8);
}, function(f, p, e) {
var r = e(4), a = e(65), l = e(25), h = e(23)("IE_PROTO"), o = function() {
}, d = function() {
var s, y = e(26)("iframe"), g = l.length;
for (y.style.display = "none", e(41).appendChild(y), y.src = "javascript:", (s = y.contentWindow.document).open(), s.write("<script>document.F=Object<\/script>"), s.close(), d = s.F; g--; )
delete d.prototype[l[g]];
return d();
};
f.exports = Object.create || function(s, y) {
var g;
return s !== null ? (o.prototype = r(s), g = new o(), o.prototype = null, g[h] = s) : g = d(), y === void 0 ? g : a(g, y);
};
}, function(f, p, e) {
var r = e(0).document;
f.exports = r && r.documentElement;
}, function(f, p, e) {
e(67);
for (var r = e(0), a = e(8), l = e(14), h = e(2)("toStringTag"), o = "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(","), d = 0; d < o.length; d++) {
var s = o[d], y = r[s], g = y && y.prototype;
g && !g[h] && a(g, h, s), l[s] = l.Array;
}
}, function(f, p) {
p.f = Object.getOwnPropertySymbols;
}, function(f, p, e) {
var r = e(34), a = e(25).concat("length", "prototype");
p.f = Object.getOwnPropertyNames || function(l) {
return r(l, a);
};
}, function(f, p) {
}, function(f, p, e) {
var r = e(11), a = e(2)("toStringTag"), l = r(function() {
return arguments;
}()) == "Arguments";
f.exports = function(h) {
var o, d, s;
return h === void 0 ? "Undefined" : h === null ? "Null" : typeof (d = function(y, g) {
try {
return y[g];
} catch {
}
}(o = Object(h), a)) == "string" ? d : l ? r(o) : (s = r(o)) == "Object" && typeof o.callee == "function" ? "Arguments" : s;
};
}, function(f, p, e) {
var r = e(4), a = e(18), l = e(2)("species");
f.exports = function(h, o) {
var d, s = r(h).constructor;
return s === void 0 || (d = r(s)[l]) == null ? o : a(d);
};
}, function(f, p, e) {
var r, a, l, h = e(17), o = e(88), d = e(41), s = e(26), y = e(0), g = y.process, m = y.setImmediate, S = y.clearImmediate, j = y.MessageChannel, q = y.Dispatch, L = 0, C = {}, O = function() {
var u = +this;
if (C.hasOwnProperty(u)) {
var b = C[u];
delete C[u], b();
}
}, w = function(u) {
O.call(u.data);
};
m && S || (m = function(u) {
for (var b = [], c = 1; arguments.length > c; )
b.push(arguments[c++]);
return C[++L] = function() {
o(typeof u == "function" ? u : Function(u), b);
}, r(L), L;
}, S = function(u) {
delete C[u];
}, e(11)(g) == "process" ? r = function(u) {
g.nextTick(h(O, u, 1));
} : q && q.now ? r = function(u) {
q.now(h(O, u, 1));
} : j ? (l = (a = new j()).port2, a.port1.onmessage = w, r = h(l.postMessage, l, 1)) : y.addEventListener && typeof postMessage == "function" && !y.importScripts ? (r = function(u) {
y.postMessage(u + "", "*");
}, y.addEventListener("message", w, !1)) : r = "onreadystatechange" in s("script") ? function(u) {
d.appendChild(s("script")).onreadystatechange = function() {
d.removeChild(this), O.call(u);
};
} : function(u) {
setTimeout(h(O, u, 1), 0);
}), f.exports = { set: m, clear: S };
}, function(f, p) {
f.exports = function(e) {
try {
return { e: !1, v: e() };
} catch (r) {
return { e: !0, v: r };
}
};
}, function(f, p, e) {
var r = e(4), a = e(9), l = e(31);
f.exports = function(h, o) {
if (r(h), a(o) && o.constructor === h)
return o;
var d = l.f(h);
return (0, d.resolve)(o), d.promise;
};
}, function(f, p, e) {
var r = e(109), a = e(111);
function l() {
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;
}
p.parse = w, p.resolve = function(u, b) {
return w(u, !1, !0).resolve(b);
}, p.resolveObject = function(u, b) {
return u ? w(u, !1, !0).resolveObject(b) : b;
}, p.format = function(u) {
return a.isString(u) && (u = w(u)), u instanceof l ? u.format() : l.prototype.format.call(u);
}, p.Url = l;
var h = /^([a-z0-9.+-]+:)/i, o = /:[0-9]*$/, d = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, s = ["{", "}", "|", "\\", "^", "`"].concat(["<", ">", '"', "`", " ", "\r", `
`, " "]), y = ["'"].concat(s), g = ["%", "/", "?", ";", "#"].concat(y), m = ["/", "?", "#"], S = /^[+a-z0-9A-Z_-]{0,63}$/, j = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, q = { javascript: !0, "javascript:": !0 }, L = { javascript: !0, "javascript:": !0 }, C = { http: !0, https: !0, ftp: !0, gopher: !0, file: !0, "http:": !0, "https:": !0, "ftp:": !0, "gopher:": !0, "file:": !0 }, O = e(112);
function w(u, b, c) {
if (u && a.isObject(u) && u instanceof l)
return u;
var P = new l();
return P.parse(u, b, c), P;
}
l.prototype.parse = function(u, b, c) {
if (!a.isString(u))
throw new TypeError("Parameter 'url' must be a string, not " + typeof u);
var P = u.indexOf("?"), U = P !== -1 && P < u.indexOf("#") ? "?" : "#", I = u.split(U);
I[0] = I[0].replace(/\\/g, "/");
var x = u = I.join(U);
if (x = x.trim(), !c && u.split("#").length === 1) {
var v = d.exec(x);
if (v)
return this.path = x, this.href = x, this.pathname = v[1], v[2] ? (this.search = v[2], this.query = b ? O.parse(this.search.substr(1)) : this.search.substr(1)) : b && (this.search = "", this.query = {}), this;
}
var E = h.exec(x);
if (E) {
var B = (E = E[0]).toLowerCase();
this.protocol = B, x = x.substr(E.length);
}
if (c || E || x.match(/^\/\/[^@\/]+@[^@\/]+/)) {
var z = x.substr(0, 2) === "//";
!z || E && L[E] || (x = x.substr(2), this.slashes = !0);
}
if (!L[E] && (z || E && !C[E])) {
for (var W, N, G = -1, X = 0; X < m.length; X++)
(ae = x.indexOf(m[X])) !== -1 && (G === -1 || ae < G) && (G = ae);
for ((N = G === -1 ? x.lastIndexOf("@") : x.lastIndexOf("@", G)) !== -1 && (W = x.slice(0, N), x = x.slice(N + 1), this.auth = decodeURIComponent(W)), G = -1, X = 0; X < g.length; X++) {
var ae;
(ae = x.indexOf(g[X])) !== -1 && (G === -1 || ae < G) && (G = ae);
}
G === -1 && (G = x.length), this.host = x.slice(0, G), x = x.slice(G), this.parseHost(), this.hostname = this.hostname || "";
var se = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
if (!se)
for (var ne = this.hostname.split(/\./), ue = (X = 0, ne.length); X < ue; X++) {
var R = ne[X];
if (R && !R.match(S)) {
for (var J = "", Y = 0, ce = R.length; Y < ce; Y++)
R.charCodeAt(Y) > 127 ? J += "x" : J += R[Y];
if (!J.match(S)) {
var $ = ne.slice(0, X), t = ne.slice(X + 1), n = R.match(j);
n && ($.push(n[1]), t.unshift(n[2])), t.length && (x = "/" + t.join(".") + x), this.hostname = $.join(".");
break;
}
}
}
this.hostname.length > 255 ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), se || (this.hostname = r.toASCII(this.hostname));
var i = this.port ? ":" + this.port : "", _ = this.hostname || "";
this.host = _ + i, this.href += this.host, se && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), x[0] !== "/" && (x = "/" + x));
}
if (!q[B])
for (X = 0, ue = y.length; X < ue; X++) {
var A = y[X];
if (x.indexOf(A) !== -1) {
var k = encodeURIComponent(A);
k === A && (k = escape(A)), x = x.split(A).join(k);
}
}
var F = x.indexOf("#");
F !== -1 && (this.hash = x.substr(F), x = x.slice(0, F));
var ee = x.indexOf("?");
if (ee !== -1 ? (this.search = x.substr(ee), this.query = x.substr(ee + 1), b && (this.query = O.parse(this.query)), x = x.slice(0, ee)) : b && (this.search = "", this.query = {}), x && (this.pathname = x), C[B] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
i = this.pathname || "";
var ie = this.search || "";
this.path = i + ie;
}
return this.href = this.format(), this;
}, l.prototype.format = function() {
var u = this.auth || "";
u && (u = (u = encodeURIComponent(u)).replace(/%3A/i, ":"), u += "@");
var b = this.protocol || "", c = this.pathname || "", P = this.hash || "", U = !1, I = "";
this.host ? U = u + this.host : this.hostname && (U = u + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (U += ":" + this.port)), this.query && a.isObject(this.query) && Object.keys(this.query).length && (I = O.stringify(this.query));
var x = this.search || I && "?" + I || "";
return b && b.substr(-1) !== ":" && (b += ":"), this.slashes || (!b || C[b]) && U !== !1 ? (U = "//" + (U || ""), c && c.charAt(0) !== "/" && (c = "/" + c)) : U || (U = ""), P && P.charAt(0) !== "#" && (P = "#" + P), x && x.charAt(0) !== "?" && (x = "?" + x), b + U + (c = c.replace(/[?#]/g, function(v) {
return encodeURIComponent(v);
})) + (x = x.replace("#", "%23")) + P;
}, l.prototype.resolve = function(u) {
return this.resolveObject(w(u, !1, !0)).format();
}, l.prototype.resolveObject = function(u) {
if (a.isString(u)) {
var b = new l();
b.parse(u, !1, !0), u = b;
}
for (var c = new l(), P = Object.keys(this), U = 0; U < P.length; U++) {
var I = P[U];
c[I] = this[I];
}
if (c.hash = u.hash, u.href === "")
return c.href = c.format(), c;
if (u.slashes && !u.protocol) {
for (var x = Object.keys(u), v = 0; v < x.length; v++) {
var E = x[v];
E !== "protocol" && (c[E] = u[E]);
}
return C[c.protocol] && c.hostname && !c.pathname && (c.path = c.pathname = "/"), c.href = c.format(), c;
}
if (u.protocol && u.protocol !== c.protocol) {
if (!C[u.protocol]) {
for (var B = Object.keys(u), z = 0; z < B.length; z++) {
var W = B[z];
c[W] = u[W];
}
return c.href = c.format(), c;
}
if (c.protocol = u.protocol, u.host || L[u.protocol])
c.pathname = u.pathname;
else {
for (var N = (u.pathname || "").split("/"); N.length && !(u.host = N.shift()); )
;
u.host || (u.host = ""), u.hostname || (u.hostname = ""), N[0] !== "" && N.unshift(""), N.length < 2 && N.unshift(""), c.pathname = N.join("/");
}
if (c.search = u.search, c.query = u.query, c.host = u.host || "", c.auth = u.auth, c.hostname = u.hostname || u.host, c.port = u.port, c.pathname || c.search) {
var G = c.pathname || "", X = c.search || "";
c.path = G + X;
}
return c.slashes = c.slashes || u.slashes, c.href = c.format(), c;
}
var ae = c.pathname && c.pathname.charAt(0) === "/", se = u.host || u.pathname && u.pathname.charAt(0) === "/", ne = se || ae || c.host && u.pathname, ue = ne, R = c.pathname && c.pathname.split("/") || [], J = (N = u.pathname && u.pathname.split("/") || [], c.protocol && !C[c.protocol]);
if (J && (c.hostname = "", c.port = null, c.host && (R[0] === "" ? R[0] = c.host : R.unshift(c.host)), c.host = "", u.protocol && (u.hostname = null, u.port = null, u.host && (N[0] === "" ? N[0] = u.host : N.unshift(u.host)), u.host = null), ne = ne && (N[0] === "" || R[0] === "")), se)
c.host = u.host || u.host === "" ? u.host : c.host, c.hostname = u.hostname || u.hostname === "" ? u.hostname : c.hostname, c.search = u.search, c.query = u.query, R = N;
else if (N.length)
R || (R = []), R.pop(), R = R.concat(N), c.search = u.search, c.query = u.query;
else if (!a.isNullOrUndefined(u.search))
return J && (c.hostname = c.host = R.shift(), (n = !!(c.host && c.host.indexOf("@") > 0) && c.host.split("@")) && (c.auth = n.shift(), c.host = c.hostname = n.shift())), c.search = u.search, c.query = u.query, a.isNull(c.pathname) && a.isNull(c.search) || (c.path = (c.pathname ? c.pathname : "") + (c.search ? c.search : "")), c.href = c.format(), c;
if (!R.length)
return c.pathname = null, c.search ? c.path = "/" + c.search : c.path = null, c.href = c.format(), c;
for (var Y = R.slice(-1)[0], ce = (c.host || u.host || R.length > 1) && (Y === "." || Y === "..") || Y === "", $ = 0, t = R.length; t >= 0; t--)
(Y = R[t]) === "." ? R.splice(t, 1) : Y === ".." ? (R.splice(t, 1), $++) : $ && (R.splice(t, 1), $--);
if (!ne && !ue)
for (; $--; $)
R.unshift("..");
!ne || R[0] === "" || R[0] && R[0].charAt(0) === "/" || R.unshift(""), ce && R.join("/").substr(-1) !== "/" && R.push("");
var n, i = R[0] === "" || R[0] && R[0].charAt(0) === "/";
return J && (c.hostname = c.host = i ? "" : R.length ? R.shift() : "", (n = !!(c.host && c.host.indexOf("@") > 0) && c.host.split("@")) && (c.auth = n.shift(), c.host = c.hostname = n.shift())), (ne = ne || c.host && R.length) && !i && R.unshift(""), R.length ? c.pathname = R.join("/") : (c.pathname = null, c.path = null), a.isNull(c.pathname) && a.isNull(c.search) || (c.path = (c.pathname ? c.pathname : "") + (c.search ? c.search : "")), c.auth = u.auth || c.auth, c.slashes = c.slashes || u.slashes, c.href = c.format(), c;
}, l.prototype.parseHost = function() {
var u = this.host, b = o.exec(u);
b && ((b = b[0]) !== ":" && (this.port = b.substr(1)), u = u.substr(0, u.length - b.length)), u && (this.hostname = u);
};
}, function(f, p, e) {
Object.defineProperty(p, "__esModule", { value: !0 });
var r = g(e(53)), a = g(e(60)), l = g(e(80)), h = g(e(96)), o = g(e(98)), d = g(e(99)), s = g(e(103)), y = e(104);
function g(O) {
return O && O.__esModule ? O : { default: O };
}
var m = "https://steemlogin.com", S = function() {
return typeof window < "u" && window;
}, j = function() {
return S() && window._steemconnect;
}, q = function() {
return S() && window.steem_keychain;
}, L = function() {
return !j() && q();
}, C = function() {
function O(w) {
(0, o.default)(this, O), this.apiURL = w.apiURL || "https://api.steemlogin.com", this.app = w.app, this.callbackURL = w.callbackURL, this.accessToken = w.accessToken, this.scope = w.scope || [], this.responseType = w.responseType;
}
return (0, d.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(w) {
return this.apiURL = w, this;
} }, { key: "setApp", value: function(w) {
return this.app = w, this;
} }, { key: "setCallbackURL", value: function(w) {
return this.callbackURL = w, this;
} }, { key: "setAccessToken", value: function(w) {
return this.accessToken = w, this;
} }, { key: "removeAccessToken", value: function() {
return delete this.accessToken, this;
} }, { key: "setScope", value: function(w) {
return this.scope = w, this;
} }, { key: "getLoginURL", value: function(w) {
var u = encodeURIComponent(this.callbackURL), b = "https://steemlogin.com/oauth2/authorize?client_id=" + this.app + "&redirect_uri=" + u;
return this.responseType === "code" && (b += "&response_type=" + this.responseType), this.scope && (b += "&scope=" + this.scope.join(",")), w && (b += "&state=" + encodeURIComponent(w)), b;
} }, { key: "login", value: function(w, u) {
if (j()) {
var b = {};
this.app && (b.app = this.app), w.authority && (b.authority = w.authority), window._steemconnect.login(b, u);
} else if (q() && w.username) {
var c = { type: "login" };
this.app && (c.app = this.app);
var P = parseInt((/* @__PURE__ */ new Date()).getTime() / 1e3, 10), U = { signed_message: c, authors: [w.username], timestamp: P };
window.steem_keychain.requestSignBuffer(w.username, (0, h.default)(U), "Posting", function(I) {
if (I.error)
return u(I.error);
U.signatures = [I.result];
var x = btoa((0, h.default)(U));
return u(null, x);
});
} else
S() && (window.location = this.getLoginURL(w.state));
} }, { key: "send", value: function(w, u, b, c) {
var P = this.apiURL + "/api/" + w, U = (0, s.default)(P, { method: u, headers: { Accept: "application/json, text/plain, */*", "Content-Type": "application/json", Authorization: this.accessToken }, body: (0, h.default)(b) }).then(function(I) {
var x = I.json();
return I.status !== 200 ? x.then(function(v) {
return l.default.reject(v);
}) : x;
}).then(function(I) {
return I.error ? l.default.reject(I) : I;
});
return c ? U.then(function(I) {
return c(null, I);
}).catch(function(I) {
return c(I, null);
}) : U;
} }, { key: "me", value: function(w) {
return this.send("me", "POST", {}, w);
} }, { key: "broadcast", value: function(w, u) {
if (j()) {
var b = (0, y.encodeOps)(w);
return window._steemconnect.sign(b, u);
}
return this.send("broadcast", "POST", { operations: w }, u);
} }, { key: "vote", value: function(w, u, b, c, P) {
if (L())
return window.steem_keychain.requestVote(w, b, u, c, function(I) {
return I.error ? P(I.error) : P(null, I);
});
var U = { voter: w, author: u, permlink: b, weight: c };
return this.broadcast([["vote", U]], P);
} }, { key: "comment", value: function(w, u, b, c, P, U, I, x) {
if (L())
return window.steem_keychain.requestPost(b, P, U, u, w, I, c, "", function(E) {
return E.error ? x(E.error) : x(null, E);
});
var v = { parent_author: w, parent_permlink: u, author: b, permlink: c, title: P, body: U, json_metadata: (0, h.default)(I) };
return this.broadcast([["comment", v]], x);
} }, { key: "deleteComment", value: function(w, u, b) {
var c = { author: w, permlink: u };
return this.broadcast([["delete_comment", c]], b);
} }, { key: "customJson", value: function(w, u, b, c, P) {
if (L())
return window.steem_keychain.requestCustomJson(u[0], b, "Posting", c, "", function(I) {
return I.error ? P(I.error) : P(null, I);
});
var U = { required_auths: w, required_posting_auths: u, id: b, json: c };
return this.broadcast([["custom_json", U]], P);
} }, { key: "reblog", value: function(w, u, b, c) {
var P = ["reblog", { account: w, author: u, permlink: b }];
return this.customJson([], [w], "follow", (0, h.default)(P), c);
} }, { key: "follow", value: function(w, u, b) {
var c = ["follow", { follower: w, following: u, what: ["blog"] }];
return this.customJson([], [w], "follow", (0, h.default)(c), b);
} }, { key: "unfollow", value: function(w, u, b) {
var c = ["follow", { follower: w, following: u, what: [] }];
return this.customJson([], [w], "follow", (0, h.default)(c), b);
} }, { key: "ignore", value: function(w, u, b) {
var c = ["follow", { follower: w, following: u, what: ["ignore"] }];
return this.customJson([], [w], "follow", (0, h.default)(c), b);
} }, { key: "claimRewardBalance", value: function(w, u, b, c, P) {
var U = { account: w, reward_steem: u, reward_sbd: b, reward_vests: c };
return this.broadcast([["claim_reward_balance", U]], P);
} }, { key: "revokeToken", value: function(w) {
var u = this;
return this.send("oauth2/token/revoke", "POST", { token: this.accessToken }, w).then(function() {
return u.removeAccessToken();
});
} }, { key: "updateUserMetadata", value: function() {
var w = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, u = arguments[1];
return console.warn('The function "updateUserMetadata" is deprecated.'), this.send("me", "PUT", { user_metadata: w }, u);
} }]), O;
}();
p.default = { Client: C, Initialize: function(O) {
return console.warn('The function "Initialize" is deprecated, please use the class "Client" instead.'), new C(O);
}, sign: function(O, w, u) {
if (console.warn('The function "sign" is deprecated.'), typeof O != "string" || (w === void 0 ? "undefined" : (0, a.default)(w)) !== "object")
return { error: "invalid_request", error_description: "Request has an invalid format" };
var b = "https://steemlogin.com/sign/" + O + "?";
return b += (0, r.default)(w).map(function(c) {
return c + "=" + encodeURIComponent(w[c]);
}).join("&"), b += u ? "&redirect_uri=" + encodeURIComponent(u) : "";
}, sendTransaction: function(O, w, u) {
var b = (0, y.encodeTx)(O, w), c = b.replace("steem://", m + "/");
return j() ? window._steemconnect.sign(b, u) : u && S() ? window.open(c, "_blank").focus() : c;
}, sendOperations: function(O, w, u) {
var b = (0, y.encodeOps)(O, w), c = b.replace("steem://", m + "/");
return j() ? window._steemconnect.sign(b, u) : u && S() ? window.open(c, "_blank").focus() : c;
}, sendOperation: function(O, w, u) {
var b = (0, y.encodeOp)(O, w), c = b.replace("steem://", m + "/");
return j() ? window._steemconnect.sign(b, u) : u && S() ? window.open(c, "_blank").focus() : c;
}, hasChromeExtension: j, hasSteemKeychain: q, useSteemKeychain: L }, f.exports = p.default;
}, function(f, p, e) {
f.exports = { default: e(54), __esModule: !0 };
}, function(f, p, e) {
e(55), f.exports = e(1).Object.keys;
}, function(f, p, e) {
var r = e(33), a = e(15);
e(59)("keys", function() {
return function(l) {
return a(r(l));
};
});
}, function(f, p, e) {
var r = e(11);
f.exports = Object("z").propertyIsEnumerable(0) ? Object : function(a) {
return r(a) == "String" ? a.split("") : Object(a);
};
}, function(f, p, e) {
var r = e(10), a = e(35), l = e(58);
f.exports = function(h) {
return function(o, d, s) {
var y, g = r(o), m = a(g.length), S = l(s, m);
if (h && d != d) {
for (; m > S; )
if ((y = g[S++]) != y)
return !0;
} else
for (; m > S; S++)
if ((h || S in g) && g[S] === d)
return h || S || 0;
return !h && -1;
};
};
}, function(f, p, e) {
var r = e(22), a = Math.max, l = Math.min;
f.exports = function(h, o) {
return (h = r(h)) < 0 ? a(h + o, 0) : l(h, o);
};
}, function(f, p, e) {
var r = e(7), a = e(1), l = e(13);
f.exports = function(h, o) {
var d = (a.Object || {})[h] || Object[h], s = {};
s[h] = o(d), r(r.S + r.F * l(function() {
d(1);
}), "Object", s);
};
}, function(f, p, e) {
p.__esModule = !0;
var r = h(e(61)), a = h(e(70)), l = typeof a.default == "function" && typeof r.default == "symbol" ? function(o) {
return typeof o;
} : function(o) {
return o && typeof a.default == "function" && o.constructor === a.default && o !== a.default.prototype ? "symbol" : typeof o;
};
function h(o) {
return o && o.__esModule ? o : { default: o };
}
p.default = typeof a.default == "function" && l(r.default) === "symbol" ? function(o) {
return o === void 0 ? "undefined" : l(o);
} : function(o) {
return o && typeof a.default == "function" && o.constructor === a.default && o !== a.default.prototype ? "symbol" : o === void 0 ? "undefined" : l(o);
};
}, function(f, p, e) {
f.exports = { default: e(62), __esModule: !0 };
}, function(f, p, e) {
e(37), e(42), f.exports = e(28).f("iterator");
}, function(f, p, e) {
var r = e(22), a = e(21);
f.exports = function(l) {
return function(h, o) {
var d, s, y = String(a(h)), g = r(o), m = y.length;
return g < 0 || g >= m ? l ? "" : void 0 : (d = y.charCodeAt(g)) < 55296 || d > 56319 || g + 1 === m || (s = y.charCodeAt(g + 1)) < 56320 || s > 57343 ? l ? y.charAt(g) : d : l ? y.slice(g, g + 2) : s - 56320 + (d - 55296 << 10) + 65536;
};
};
}, function(f, p, e) {
var r = e(40), a = e(19), l = e(20), h = {};
e(8)(h, e(2)("iterator"), function() {
return this;
}), f.exports = function(o, d, s) {
o.prototype = r(h, { next: a(1, s) }), l(o, d + " Iterator");
};
}, function(f, p, e) {
var r = e(3), a = e(4), l = e(15);
f.exports = e(5) ? Object.defineProperties : function(h, o) {
a(h);
for (var d, s = l(o), y = s.length, g = 0; y > g; )
r.f(h, d = s[g++], o[d]);
return h;
};
}, function(f, p, e) {
var r = e(6), a = e(33), l = e(23)("IE_PROTO"), h = Object.prototype;
f.exports = Object.getPrototypeOf || function(o) {
return o = a(o), r(o, l) ? o[l] : typeof o.constructor == "function" && o instanceof o.constructor ? o.constructor.prototype : o instanceof Object ? h : null;
};
}, function(f, p, e) {
var r = e(68), a = e(69), l = e(14), h = e(10);
f.exports = e(38)(Array, "Array", function(o, d) {
this._t = h(o), this._i = 0, this._k = d;
}, function() {
var o = this._t, d = this._k, s = this._i++;
return !o || s >= o.length ? (this._t = void 0, a(1)) : a(0, d == "keys" ? s : d == "values" ? o[s] : [s, o[s]]);
}, "values"), l.Arguments = l.Array, r("keys"), r("values"), r("entries");
}, function(f, p) {
f.exports = function() {
};
}, function(f, p) {
f.exports = function(e, r) {
return { value: r, done: !!e };
};
}, function(f, p, e) {
f.exports = { default: e(71), __esModule: !0 };
}, function(f, p, e) {
e(72), e(45), e(78), e(79), f.exports = e(1).Symbol;
}, function(f, p, e) {
var r = e(0), a = e(6), l = e(5), h = e(7), o = e(39), d = e(73).KEY, s = e(13), y = e(24), g = e(20), m = e(16), S = e(2), j = e(28), q = e(29), L = e(74), C = e(75), O = e(4), w = e(9), u = e(10), b = e(27), c = e(19), P = e(40), U = e(76), I = e(77), x = e(3), v = e(15), E = I.f, B = x.f, z = U.f, W = r.Symbol, N = r.JSON, G = N && N.stringify, X = S("_hidden"), ae = S("toPrimitive"), se = {}.propertyIsEnumerable, ne = y("symbol-registry"), ue = y("symbols"), R = y("op-symbols"), J = Object.prototype, Y = typeof W == "function", ce = r.QObject, $ = !ce || !ce.prototype || !ce.prototype.findChild, t = l && s(function() {
return P(B({}, "a", { get: function() {
return B(this, "a", { value: 7 }).a;
} })).a != 7;
}) ? function(H, Z, le) {
var de = E(J, Z);
de && delete J[Z], B(H, Z, le), de && H !== J && B(J, Z, de);
} : B, n = function(H) {
var Z = ue[H] = P(W.prototype);
return Z._k = H, Z;
}, i = Y && typeof W.iterator == "symbol" ? function(H) {
return typeof H == "symbol";
} : function(H) {
return H instanceof W;
}, _ = function(H, Z, le) {
return H === J && _(R, Z, le), O(H), Z = b(Z, !0), O(le), a(ue, Z) ? (le.enumerable ? (a(H, X) && H[X][Z] && (H[X][Z] = !1), le = P(le, { enumerable: c(0, !1) })) : (a(H, X) || B(H, X, c(1, {})), H[X][Z] = !0), t(H, Z, le)) : B(H, Z, le);
}, A = function(H, Z) {
O(H);
for (var le, de = L(Z = u(Z)), me = 0, Oe = de.length; Oe > me; )
_(H, le = de[me++], Z[le]);
return H;
}, k = function(H) {
var Z = se.call(this, H = b(H, !0));
return !(this === J && a(ue, H) && !a(R, H)) && (!(Z || !a(this, H) || !a(ue, H) || a(this, X) && this[X][H]) || Z);
}, F = function(H, Z) {
if (H = u(H), Z = b(Z, !0), H !== J || !a(ue, Z) || a(R, Z)) {
var le = E(H, Z);
return !le || !a(ue, Z) || a(H, X) && H[X][Z] || (le.enumerable = !0), le;
}
}, ee = function(H) {
for (var Z, le = z(u(H)), de = [], me = 0; le.length > me; )
a(ue, Z = le[me++]) || Z == X || Z == d || de.push(Z);
return de;
}, ie = function(H) {
for (var Z, le = H === J, de = z(le ? R : u(H)), me = [], Oe = 0; de.length > Oe; )
!a(ue, Z = de[Oe++]) || le && !a(J, Z) || me.push(ue[Z]);
return me;
};
Y || (o((W = function() {
if (this instanceof W)
throw TypeError("Symbol is not a constructor!");
var H = m(arguments.length > 0 ? arguments[0] : void 0), Z = function(le) {
this === J && Z.call(R, le), a(this, X) && a(this[X], H) && (this[X][H] = !1), t(this, H, c(1, le));
};
return l && $ && t(J, H, { configurable: !0, set: Z }), n(H);
}).prototype, "toString", function() {
return this._k;
}), I.f = F, x.f = _, e(44).f = U.f = ee, e(30).f = k, e(43).f = ie, l && !e(12) && o(J, "propertyIsEnumerable", k, !0), j.f = function(H) {
return n(S(H));
}), h(h.G + h.W + h.F * !Y, { Symbol: W });
for (var fe = "hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","), oe = 0; fe.length > oe; )
S(fe[oe++]);
for (var be = v(S.store), ve = 0; be.length > ve; )
q(be[ve++]);
h(h.S + h.F * !Y, "Symbol", { for: function(H) {
return a(ne, H += "") ? ne[H] : ne[H] = W(H);
}, keyFor: function(H) {
if (!i(H))
throw TypeError(H + " is not a symbol!");
for (var Z in ne)
if (ne[Z] === H)
return Z;
}, useSetter: function() {
$ = !0;
}, useSimple: function() {
$ = !1;
} }), h(h.S + h.F * !Y, "Object", { create: function(H, Z) {
return Z === void 0 ? P(H) : A(P(H), Z);
}, defineProperty: _, defineProperties: A, getOwnPropertyDescriptor: F, getOwnPropertyNames: ee, getOwnPropertySymbols: ie }), N && h(h.S + h.F * (!Y || s(function() {
var H = W();
return G([H]) != "[null]" || G({ a: H }) != "{}" || G(Object(H)) != "{}";
})), "JSON", { stringify: function(H) {
for (var Z, le, de = [H], me = 1; arguments.length > me; )
de.push(arguments[me++]);
if (le = Z = de[1], (w(Z) || H !== void 0) && !i(H))
return C(Z) || (Z = function(Oe, Me) {
if (typeof le == "function" && (Me = le.call(this, Oe, Me)), !i(Me))
return Me;
}), de[1] = Z, G.apply(N, de);
} }), W.prototype[ae] || e(8)(W.prototype, ae, W.prototype.valueOf), g(W, "Symbol"), g(Math, "Math", !0), g(r.JSON, "JSON", !0);
}, function(f, p, e) {
var r = e(16)("meta"), a = e(9), l = e(6), h = e(3).f, o = 0, d = Object.isExtensible || function() {
return !0;
}, s = !e(13)(function() {
return d(Object.preventExtensions({}));
}), y = function(m) {
h(m, r, { value: { i: "O" + ++o, w: {} } });
}, g = f.exports = { KEY: r, NEED: !1, fastKey: function(m, S) {
if (!a(m))
return typeof m == "symbol" ? m : (typeof m == "string" ? "S" : "P") + m;
if (!l(m, r)) {
if (!d(m))
return "F";
if (!S)
return "E";
y(m);
}
return m[r].i;
}, getWeak: function(m, S) {
if (!l(m, r)) {
if (!d(m))
return !0;
if (!S)
return !1;
y(m);
}
return m[r].w;
}, onFreeze: function(m) {
return s && g.NEED && d(m) && !l(m, r) && y(m), m;
} };
}, function(f, p, e) {
var r = e(15), a = e(43), l = e(30);
f.exports = function(h) {
var o = r(h), d = a.f;
if (d)
for (var s, y = d(h), g = l.f, m = 0; y.length > m; )
g.call(h, s = y[m++]) && o.push(s);
return o;
};
}, function(f, p, e) {
var r = e(11);
f.exports = Array.isArray || function(a) {
return r(a) == "Array";
};
}, function(f, p, e) {
var r = e(10), a = e(44).f, l = {}.toString, h = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [];
f.exports.f = function(o) {
return h && l.call(o) == "[object Window]" ? function(d) {
try {
return a(d);
} catch {
return h.slice();
}
}(o) : a(r(o));
};
}, function(f, p, e) {
var r = e(30), a = e(19), l = e(10), h = e(27), o = e(6), d = e(36), s = Object.getOwnPropertyDescriptor;
p.f = e(5) ? s : function(y, g) {
if (y = l(y), g = h(g, !0), d)
try {
return s(y, g);
} catch {
}
if (o(y, g))
return a(!r.f.call(y, g), y[g]);
};
}, function(f, p, e) {
e(29)("asyncIterator");
}, function(f, p, e) {
e(29)("observable");
}, function(f, p, e) {
f.exports = { default: e(81), __esModule: !0 };
}, function(f, p, e) {
e(45), e(37), e(42), e(82), e(94), e(95), f.exports = e(1).Promise;
}, function(f, p, e) {
var r, a, l, h, o = e(12), d = e(0), s = e(17), y = e(46), g = e(7), m = e(9), S = e(18), j = e(83), q = e(84), L = e(47), C = e(48).set, O = e(89)(), w = e(31), u = e(49), b = e(90), c = e(50), P = d.TypeError, U = d.process, I = U && U.versions, x = I && I.v8 || "", v = d.Promise, E = y(U) == "process", B = function() {
}, z = a = w.f, W = !!function() {
try {
var R = v.resolve(1), J = (R.constructor = {})[e(2)("species")] = function(Y) {
Y(B, B);
};
return (E || typeof PromiseRejectionEvent == "function") && R.then(B) instanceof J && x.indexOf("6.6") !== 0 && b.indexOf("Chrome/66") === -1;
} catch {
}
}(), N = function(R) {
var J;
return !(!m(R) || typeof (J = R.then) != "function") && J;
}, G = function(R, J) {
if (!R._n) {
R._n = !0;
var Y = R._c;
O(function() {
for (var ce = R._v, $ = R._s == 1, t = 0, n = function(i) {
var _, A, k, F = $ ? i.ok : i.fail, ee = i.resolve, ie = i.reject, fe = i.domain;
try {
F ? ($ || (R._h == 2 && se(R), R._h = 1), F === !0 ? _ = ce : (fe && fe.enter(), _ = F(ce), fe && (fe.exit(), k = !0)), _ === i.promise ? ie(P("Promise-chain cycle")) : (A = N(_)) ? A.call(_, ee, ie) : ee(_)) : ie(ce);
} catch (oe) {
fe && !k && fe.exit(), ie(oe);
}
}; Y.length > t; )
n(Y[t++]);
R._c = [], R._n = !1, J && !R._h && X(R);
});
}
}, X = function(R) {
C.call(d, function() {
var J, Y, ce, $ = R._v, t = ae(R);
if (t && (J = u(function() {
E ? U.emit("unhandledRejection", $, R) : (Y = d.onunhandledrejection) ? Y({ promise: R, reason: $ }) : (ce = d.console) && ce.error && ce.error("Unhandled promise rejection", $);
}), R._h = E || ae(R) ? 2 : 1), R._a = void 0, t && J.e)
throw J.v;
});
}, ae = function(R) {
return R._h !== 1 && (R._a || R._c).length === 0;
}, se = function(R) {
C.call(d, function() {
var J;
E ? U.emit("rejectionHandled", R) : (J = d.