(window.webpackJsonp = window.webpackJsonp || []).push([[11], {
    1172: function(e, t, r) {
        "use strict";
        var n = r(0)
            , o = r(2);
        n(t, "__esModule", {
            value: !0
        }),
            t.getCurrentTime = void 0;
        var c = o(r(6))
            , l = o(r(41));
        t.getCurrentTime = function(data) {
            return new c.default((function(e) {
                    e((0,
                        l.default)())
                }
            ))
        }
    },
    1256: function(e, t, r) {
        "use strict";
        var n = r(0)
            , o = r(2);
        n(t, "__esModule", {
            value: !0
        }),
            t.default = void 0;
        var c, l = o(r(4)), d = r(1257), f = [], v = "@@clickoutsideContext", h = 0;
        function m(e, t, r) {
            return function() {
                var n = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}
                    , o = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
                !(r && r.context && n.target && o.target) || e.contains(n.target) || e.contains(o.target) || e === n.target || r.context.popperElm && (r.context.popperElm.contains(n.target) || r.context.popperElm.contains(o.target)) || (t.expression && e[v].methodName && r.context[e[v].methodName] ? r.context[e[v].methodName]() : e[v].bindingFn && e[v].bindingFn())
            }
        }
        !l.default.prototype.$isServer && (0,
            d.on)(document, "mousedown", (function(e) {
                return c = e
            }
        )),
        !l.default.prototype.$isServer && (0,
            d.on)(document, "mouseup", (function(e) {
                f.forEach((function(t) {
                        return t[v].documentHandler(e, c)
                    }
                ))
            }
        ));
        t.default = {
            bind: function(e, t, r) {
                f.push(e);
                var n = h++;
                e[v] = {
                    id: n,
                    documentHandler: m(e, t, r),
                    methodName: t.expression,
                    bindingFn: t.value
                }
            },
            update: function(e, t, r) {
                e[v].documentHandler = m(e, t, r),
                    e[v].methodName = t.expression,
                    e[v].bindingFn = t.value
            },
            unbind: function(e) {
                for (var t = f.length, i = 0; i < t; i++)
                    if (f[i][v].id === e[v].id) {
                        f.splice(i, 1);
                        break
                    }
                delete e[v]
            }
        }
    },
    1301: function(e, t, r) {
        "use strict";
        var n = r(11)
            , o = r(16)
            , c = r(9)
            , l = r(18)
            , d = r(17)
            , f = r(0)
            , v = r(2);
        f(t, "__esModule", {
            value: !0
        }),
            t.cmsApiRequest = t.cmsApiPageRequest = t.cmsApiNewsRequest = t.cmsApiCommonRequest = t.cmsApiArticleRequest = void 0;
        var h = v(r(7))
            , m = v(r(41))
            , y = v(r(6))
            , _ = v(r(44))
            , w = v(r(95))
            , C = v(r(222))
            , S = v(r(98))
            , k = v(r(49))
            , T = r(12)
            , L = (r(8),
            r(170));
        function E(e, t) {
            var r = n(e);
            if (o) {
                var l = o(e);
                t && (l = l.filter((function(t) {
                        return c(e, t).enumerable
                    }
                ))),
                    r.push.apply(r, l)
            }
            return r
        }
        function P(e) {
            for (var t = 1; t < arguments.length; t++) {
                var r = null != arguments[t] ? arguments[t] : {};
                t % 2 ? E(Object(r), !0).forEach((function(t) {
                        (0,
                            h.default)(e, t, r[t])
                    }
                )) : l ? d(e, l(r)) : E(Object(r)).forEach((function(t) {
                        f(e, t, c(r, t))
                    }
                ))
            }
            return e
        }
        var A = w.default.create({
            baseURL: "https://webapi.weex.com",
            timeout: 2e4,
            headers: {
                Authorization: "Bearer ".concat("6fff94d72ef745d8cc6d8e23321651839e4aa3b93ab584638684eb14e4cc7c6039aa65f31191bf85b9a56d8e19458cf361018ed4d78b337b506dec16db854ca11baca751fff971250ccf556f0ca50c1f89281390be687ec033e5754bd4c1423fbb78a2b357d451293611069923276b4fdbe1fd5913dd99ffda70c911bbdaed72")
            }
        });
        function O() {
            var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : ""
                , t = arguments.length > 1 ? arguments[1] : void 0
                , r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : null
                , n = {
                locale: (0,
                    T.getCmsLocaleByLangCode)(t)
            };
            return r && (n = P(P({}, n), r)),
            e && (n.populate = e),
                {
                    post: function(e, data) {
                        return A.post(e, P(P({}, data), n))
                    },
                    get: function(e, data) {
                        return A.get(e, {
                            params: P(P({}, data), n),
                            paramsSerializer: function(e) {
                                return C.default.stringify(e)
                            }
                        })
                    }
                }
        }
        A.interceptors.request.use((function(e) {
                return e.startTime = (0,
                    m.default)(),
                    e
            }
        ), (function(e) {
                return function(e) {
                    var t = (0,
                        L.getI18n)();
                    return (0,
                        S.default)({
                        type: "error",
                        message: t.timeout
                    }),
                        y.default.resolve(e)
                }(e)
            }
        )),
            A.interceptors.response.use((function(e) {
                    return function(e) {
                        var t = (0,
                            m.default)() - e.config.startTime;
                        return (0,
                            k.default)("ajax_response_time", e.request.responseURL, {
                            duration: t
                        }),
                            200 === e.status ? e.data : e
                    }(e)
                }
            ), (function(e) {
                    return function(e) {
                        var t, r, n, o = (0,
                            L.getI18n)(), c = (null == e || null === (t = e.response) || void 0 === t || null === (t = t.request) || void 0 === t ? void 0 : t.responseURL) || (null == e || null === (r = e.config) || void 0 === r ? void 0 : r.url), l = null != e && e.response ? (0,
                            _.default)(null === (n = e.response) || void 0 === n ? void 0 : n.data) : e.code;
                        (0,
                            k.default)("ajax_error", c, {
                            ext: l
                        }),
                            e.response ? function(e, t) {
                                var r, n = e.status, o = null == e || null === (r = e.data) || void 0 === r ? void 0 : r.msg;
                                if (404 == n)
                                    return;
                                switch (n) {
                                    case 504:
                                        (0,
                                            S.default)({
                                            type: "error",
                                            message: t.notfound
                                        });
                                        break;
                                    case 403:
                                        (0,
                                            S.default)({
                                            type: "error",
                                            message: t.forbidden
                                        });
                                        break;
                                    case 401:
                                        break;
                                    case 500:
                                        (0,
                                            S.default)({
                                            type: "error",
                                            message: t.unknow
                                        });
                                        break;
                                    default:
                                        (0,
                                            S.default)({
                                            type: "error",
                                            message: o || t.unknow
                                        })
                                }
                            }(e.response, o) : "ECONNABORTED" === e.code && e.message.includes("timeout") && (0,
                                S.default)({
                                type: "error",
                                message: o.timeout
                            });
                        return y.default.reject(e)
                    }(e)
                }
            ));
        t.cmsApiCommonRequest = function(e, t) {
            return O("", e, t)
        }
            ,
            t.cmsApiRequest = function(e) {
                return O(["thumbnail", "seo"], e)
            }
            ,
            t.cmsApiNewsRequest = function(e) {
                return O("thumbnail", e)
            }
            ,
            t.cmsApiArticleRequest = function(e) {
                return O("thumbnail", e)
            }
            ,
            t.cmsApiPageRequest = function(e) {
                return O("seo.metaImage", e)
            }
    },
    1302: function(e, t, r) {
        var map = {
            "./ar-AR": [140, 7],
            "./ar-AR.js": [140, 7],
            "./ar-AR.json": [343, 3],
            "./de-DE": [141, 7],
            "./de-DE.js": [141, 7],
            "./de-DE.json": [344, 3],
            "./en": [107, 7],
            "./en.js": [107, 7],
            "./en.json": [223, 3],
            "./fa-IR": [142, 7],
            "./fa-IR.js": [142, 7],
            "./fa-IR.json": [345, 3],
            "./ko-kr": [143, 7],
            "./ko-kr.js": [143, 7],
            "./ko-kr.json": [346, 3],
            "./ru-RU": [144, 7],
            "./ru-RU.js": [144, 7],
            "./ru-RU.json": [347, 3],
            "./tr-TR": [145, 7],
            "./tr-TR.js": [145, 7],
            "./tr-TR.json": [348, 3],
            "./uk-UK": [146, 7],
            "./uk-UK.js": [146, 7],
            "./uk-UK.json": [349, 3],
            "./vi": [147, 7],
            "./vi.js": [147, 7],
            "./vi.json": [350, 3],
            "./zh-cn": [148, 7],
            "./zh-cn.js": [148, 7],
            "./zh-cn.json": [351, 3],
            "./zh-tw": [149, 7],
            "./zh-tw.js": [149, 7],
            "./zh-tw.json": [352, 3]
        };
        function n(e) {
            return Promise.resolve().then((function() {
                    if (!r.o(map, e)) {
                        var t = new Error("Cannot find module '" + e + "'");
                        throw t.code = "MODULE_NOT_FOUND",
                            t
                    }
                    var n = map[e]
                        , o = n[0];
                    return r.t(o, n[1])
                }
            ))
        }
        n.keys = function() {
            return Object.keys(map)
        }
            ,
            n.id = 1302,
            e.exports = n
    },
    1321: function(e, t, r) {
        "use strict";
        var n = r(0)
            , o = r(2);
        n(t, "__esModule", {
            value: !0
        }),
            t.default = void 0;
        var c = o(r(14))
            , l = o(r(15))
            , d = o(r(73))
            , f = o(r(74))
            , v = o(r(7))
            , h = o(r(646))
            , m = r(54)
            , y = function() {
            return (0,
                f.default)((function e() {
                    (0,
                        d.default)(this, e),
                        this._connect()
                }
            ), [{
                key: "_connect",
                value: function() {
                    var e = this;
                    this.instance || (0,
                        m.getNewContractWSUrl)(!0).then((function(t) {
                            e.instance = new h.default(t,!0)
                        }
                    ))
                }
            }], [{
                key: "getInstance",
                value: (e = (0,
                        l.default)(c.default.mark((function e() {
                            var t;
                            return c.default.wrap((function(e) {
                                    for (; ; )
                                        switch (e.prev = e.next) {
                                            case 0:
                                                if (this.instance) {
                                                    e.next = 5;
                                                    break
                                                }
                                                return e.next = 3,
                                                    (0,
                                                        m.getNewContractWSUrl)(!0);
                                            case 3:
                                                t = e.sent,
                                                    this.instance = new h.default(t,!0);
                                            case 5:
                                                return e.abrupt("return", this.instance);
                                            case 6:
                                            case "end":
                                                return e.stop()
                                        }
                                }
                            ), e, this)
                        }
                    ))),
                        function() {
                            return e.apply(this, arguments)
                        }
                )
            }]);
            var e
        }();
        (0,
            v.default)(y, "instance", null | h.default);
        t.default = y
    },
    1322: function(e, t, r) {
        "use strict";
        var n = r(27)
            , o = r(110)
            , c = r(111)
            , l = r(112)
            , d = r(69)
            , f = r(11)
            , v = r(16)
            , h = r(9)
            , m = r(18)
            , y = r(17)
            , _ = r(0)
            , w = r(34)
            , C = r(2);
        _(t, "__esModule", {
            value: !0
        }),
            t.default = void 0,
            t.generateId = re;
        var S = C(r(14))
            , k = C(r(44))
            , T = C(r(299))
            , L = C(r(6))
            , E = C(r(41))
            , P = C(r(11))
            , A = C(r(15));
        C(r(384));
        r(308);
        var O = C(r(385))
            , N = C(r(30))
            , x = C(r(73))
            , R = C(r(74))
            , I = C(r(7))
            , M = (C(r(4)),
            r(1323),
            r(629))
            , D = r(26)
            , B = r(54)
            , U = r(389)
            , F = r(167)
            , j = C(r(49))
            , H = G(r(45))
            , K = G(r(43))
            , W = r(20)
            , z = (r(8),
            r(170));
        function $(e) {
            if ("function" != typeof w)
                return null;
            var t = new w
                , r = new w;
            return ($ = function(e) {
                    return e ? r : t
                }
            )(e)
        }
        function G(e, t) {
            if (!t && e && e.__esModule)
                return e;
            if (null === e || "object" != n(e) && "function" != typeof e)
                return {
                    default: e
                };
            var r = $(t);
            if (r && r.has(e))
                return r.get(e);
            var o = {
                __proto__: null
            }
                , a = _ && h;
            for (var u in e)
                if ("default" !== u && {}.hasOwnProperty.call(e, u)) {
                    var i = a ? h(e, u) : null;
                    i && (i.get || i.set) ? _(o, u, i) : o[u] = e[u]
                }
            return o.default = e,
            r && r.set(e, o),
                o
        }
        function V(e, t) {
            var r = f(e);
            if (v) {
                var n = v(e);
                t && (n = n.filter((function(t) {
                        return h(e, t).enumerable
                    }
                ))),
                    r.push.apply(r, n)
            }
            return r
        }
        function Q(e) {
            for (var t = 1; t < arguments.length; t++) {
                var r = null != arguments[t] ? arguments[t] : {};
                t % 2 ? V(Object(r), !0).forEach((function(t) {
                        (0,
                            I.default)(e, t, r[t])
                    }
                )) : m ? y(e, m(r)) : V(Object(r)).forEach((function(t) {
                        _(e, t, h(r, t))
                    }
                ))
            }
            return e
        }
        function Z(e, t) {
            var r = void 0 !== c && e[l] || e["@@iterator"];
            if (!r) {
                if (d(e) || (r = function(e, a) {
                    if (e) {
                        if ("string" == typeof e)
                            return X(e, a);
                        var t = {}.toString.call(e).slice(8, -1);
                        return "Object" === t && e.constructor && (t = e.constructor.name),
                            "Map" === t || "Set" === t ? o(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? X(e, a) : void 0
                    }
                }(e)) || t && e && "number" == typeof e.length) {
                    r && (e = r);
                    var n = 0
                        , f = function() {};
                    return {
                        s: f,
                        n: function() {
                            return n >= e.length ? {
                                done: !0
                            } : {
                                done: !1,
                                value: e[n++]
                            }
                        },
                        e: function(e) {
                            throw e
                        },
                        f: f
                    }
                }
                throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")
            }
            var v, a = !0, u = !1;
            return {
                s: function() {
                    r = r.call(e)
                },
                n: function() {
                    var e = r.next();
                    return a = e.done,
                        e
                },
                e: function(e) {
                    u = !0,
                        v = e
                },
                f: function() {
                    try {
                        a || null == r.return || r.return()
                    } finally {
                        if (u)
                            throw v
                    }
                }
            }
        }
        function X(e, a) {
            (null == a || a > e.length) && (a = e.length);
            for (var t = 0, r = Array(a); t < a; t++)
                r[t] = e[t];
            return r
        }
        r(390);
        var Y = {
            maxReconnectionDelay: 5e3,
            minReconnectionDelay: 1e3 + 4e3 * Math.random(),
            reconnectionDelayGrowFactor: 1.3,
            connectionTimeout: 5e3,
            maxRetries: 50,
            maxEnqueuedMessages: 1 / 0,
            startClosed: !1,
            debug: !0,
            maxHeartbeat: 6,
            heartbeatInterval: 5e3,
            sensorsReportInterval: 6e4,
            compress: !0
        }
            , J = t.default = function() {
            function e(t, r) {
                var n, o = this;
                (0,
                    x.default)(this, e),
                    (0,
                        I.default)(this, "version", void 0),
                    (0,
                        I.default)(this, "_wsURL", void 0),
                    (0,
                        I.default)(this, "_url", void 0),
                    (0,
                        I.default)(this, "_options", void 0),
                    (0,
                        I.default)(this, "_ws", void 0),
                    (0,
                        I.default)(this, "_binaryType", void 0),
                    (0,
                        I.default)(this, "_protocols", void 0),
                    (0,
                        I.default)(this, "_retryCount", void 0),
                    (0,
                        I.default)(this, "_heartbeats", void 0),
                    (0,
                        I.default)(this, "_closeCalled", void 0),
                    (0,
                        I.default)(this, "_shouldReconnect", void 0),
                    (0,
                        I.default)(this, "_connectLock", void 0),
                    (0,
                        I.default)(this, "_connectTimeout", void 0),
                    (0,
                        I.default)(this, "_connectTimeoutSec", void 0),
                    (0,
                        I.default)(this, "__connectDelay", void 0),
                    (0,
                        I.default)(this, "_beatTimeout", void 0),
                    (0,
                        I.default)(this, "_messageQueue", void 0),
                    (0,
                        I.default)(this, "_listeners", void 0),
                    (0,
                        I.default)(this, "_channelMap", void 0),
                    (0,
                        I.default)(this, "productCode", void 0),
                    (0,
                        I.default)(this, "urlManager", void 0),
                    (0,
                        I.default)(this, "token", void 0),
                    (0,
                        I.default)(this, "_messageSent", void 0),
                    (0,
                        I.default)(this, "_isLogin", void 0),
                    (0,
                        I.default)(this, "timeBoard", void 0),
                    (0,
                        I.default)(this, "_heartbeatTimes", void 0),
                    (0,
                        I.default)(this, "sensorsReport", void 0),
                    (0,
                        I.default)(this, "_waitTimer", void 0),
                    (0,
                        I.default)(this, "_handleOpen", (function(e) {
                            if (clearTimeout(o._connectTimeout),
                                o._heartbeats = 0,
                                o._debug("deal message queue:", (0,
                                    k.default)(o._messageQueue)),
                                o._messageQueue.forEach((function(e) {
                                        return o.send(e)
                                    }
                                )),
                                o._messageQueue = [],
                            o._channelMap.size > 0) {
                                var t, r = Z(o._channelMap);
                                try {
                                    for (r.s(); !(t = r.n()).done; ) {
                                        var n = (0,
                                            N.default)(t.value, 2)
                                            , c = n[0]
                                            , l = n[1]
                                            , d = l.params
                                            , f = l.listener;
                                        o.subscribe(c, d, f)
                                    }
                                } catch (e) {
                                    r.e(e)
                                } finally {
                                    r.f()
                                }
                            }
                            o._heartbeat(),
                                o._listeners.open.forEach((function(t) {
                                        return t(e)
                                    }
                                ))
                        }
                    )),
                    (0,
                        I.default)(this, "_handleClose", (function(e) {
                            var t = !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1];
                            o._clearTimeouts(),
                                o._clearSensorsReportTimer(),
                                (null == e ? void 0 : e.code) === M.CONNECTION_ERROR_CODE.E1007 ? o.msgBoxE1007() : t && o.reconnect(),
                                o._listeners.close.forEach((function(t) {
                                        return t(e)
                                    }
                                ))
                        }
                    )),
                    (0,
                        I.default)(this, "_handleMessage", (function(e) {
                            var t = e.data;
                            o._retryCount = -1,
                                o._messageSent = !0,
                                o._options.compress ? o._inflateMessage(t) : o._dispatchMessage(t)
                        }
                    )),
                    this._url = t,
                    this._options = r,
                    this._isLogin = window.$nuxt.$store.state.newTrading.isLogin || (null === (n = H.default.get(H.TokenKey.R_TOKEN)) || void 0 === n ? void 0 : n.length) > 0,
                    this._init(),
                    this._connect()
            }
            return (0,
                R.default)(e, [{
                key: "begin",
                value: function(e) {
                    this.changeProduct(e),
                        this._connect()
                }
            }, {
                key: "changeProduct",
                value: function(e) {
                    this.productCode = e
                }
            }, {
                key: "_init",
                value: function() {
                    this.version = "2.0",
                        this._binaryType = "blob",
                        this._protocols = "",
                        this._retryCount = -1,
                        this._heartbeats = 0,
                        this._connectLock = !1,
                        this._connectTimeout = null,
                        this._connectTimeoutSec = 5e3,
                        this._connectDelay = 0,
                        this._messageQueue = [],
                        this._shouldReconnect = !0,
                        this._listeners = {
                            open: new T.default,
                            close: new T.default,
                            error: new T.default,
                            message: new T.default
                        },
                        this._channelMap = new T.default,
                        this._messageSent = !1,
                        this.timeBoard = {},
                        this._clearSensorsReportTimer()
                }
            }, {
                key: "CONNECTING",
                get: function() {
                    return e.CONNECTING
                }
            }, {
                key: "OPEN",
                get: function() {
                    return e.OPEN
                }
            }, {
                key: "CLOSING",
                get: function() {
                    return e.CLOSING
                }
            }, {
                key: "CLOSED",
                get: function() {
                    return e.CLOSED
                }
            }, {
                key: "retryCount",
                get: function() {
                    return Math.max(this._retryCount, 0)
                }
            }, {
                key: "readyState",
                get: function() {
                    var t;
                    return this._ws ? this._ws.readyState : null !== (t = this._options) && void 0 !== t && t.startClosed ? e.CLOSED : e.CONNECTING
                }
            }, {
                key: "_clearSensorsReportTimer",
                value: function() {
                    var e;
                    this.sensorsReport && clearInterval(this.sensorsReport),
                    this._heartbeatTimes && (null === (e = this._heartbeatTimes) || void 0 === e ? void 0 : e.length) > 0 && (0,
                        j.default)("ws_response_time", this._url, {
                        ext: this._heartbeatTimes.join(",")
                    }),
                        this._heartbeatTimes = []
                }
            }, {
                key: "msgBoxE1007",
                value: function() {
                    var e = this
                        , t = "white" === (K.default.get(K.CookieKey.GLOBAL_THEME) || "black") ? "big-icon-confirm single" : "big-icon-confirm single black"
                        , r = (0,
                        z.getI18n)();
                    O.default.alert('<div class="forbidden-content center">'.concat(r.wsErr1007, "</div>"), "", {
                        confirmButtonText: r.resetBtn,
                        dangerouslyUseHTMLString: !0,
                        customClass: t,
                        type: "warning",
                        title: "",
                        center: !0,
                        iconClass: "iconfont icon-tishi",
                        closeOnClickModal: !1,
                        closeOnPressEscape: !1,
                        showCancelButton: !1
                    }).then((function() {
                            e.reconnect()
                        }
                    ))
                }
            }, {
                key: "_inflateMessage",
                value: function(e) {
                    if (e instanceof Blob) {
                        var t = new FileReader
                            , r = this;
                        t.addEventListener("loadend", (function() {
                                var e = (0,
                                    U.inflate)(t.result, {
                                    to: "string"
                                });
                                r._dispatchMessage(e)
                            }
                        )),
                            t.onerror = function(e) {}
                            ,
                            t.readAsArrayBuffer(e)
                    } else
                        this._dispatchMessage(e)
                }
            }, {
                key: "_dispatchMessage",
                value: function(e) {
                    var data = JSON.parse(String(e));
                    if ("pong" == data.action) {
                        this._heartbeats = 0;
                        var time = this._timeEnd("ping");
                        this._heartbeatTimes.push(time)
                    }
                    var t = re(data.action, data);
                    this._listeners.message.forEach((function(e) {
                            return e(data, t)
                        }
                    ))
                }
            }, {
                key: "_handleError",
                value: function(e) {
                    this._debug("error event", e.message),
                        this._disconnect(void 0, "TIMEOUT" === e.message ? "timeout" : void 0),
                        this._listeners.error.forEach((function(t) {
                                return t(e)
                            }
                        )),
                        this.reconnect()
                }
            }, {
                key: "_handleTimeout",
                value: function() {
                    this._debug("timeout event"),
                        this._handleError(new M.WrappedErrorEvent(null,M.TIMEOUT_ERROR,this))
                }
            }, {
                key: "_initListeners",
                value: function() {
                    var e = this;
                    this._ws && (this._ws.onopen = this._handleOpen,
                            this._ws.onclose = function(t) {
                                var r = new M.WrappedCloseEvent(t);
                                r.target = e,
                                    e._handleClose(r, "terminate" !== r.reason)
                            }
                            ,
                            this._ws.onmessage = this._handleMessage,
                            this._ws.onerror = function(t) {
                                e._handleError(new M.WrappedErrorEvent(t,M.CONNECTION_ERROR,e))
                            }
                    )
                }
            }, {
                key: "_removeListeners",
                value: function() {
                    this._ws && (this._debug("removeListeners"),
                        this._ws.onclose = ee,
                        this._ws.onopen = ee,
                        this._ws.onerror = ee,
                        this._ws.onmessage = ee)
                }
            }, {
                key: "_wait",
                value: function() {
                    var e = this;
                    return this._isLogin ? L.default.resolve() : new L.default((function(t) {
                            var r = (0,
                                D.getWSTimoutMilliSecs)(e._retryCount) + (e._retryCount <= 1 ? e._connectDelay : e._connectTimeoutSec);
                            e._debug("waiting", r),
                                e._waitTimer = setTimeout(t, r)
                        }
                    ))
                }
            }, {
                key: "_getNextUrl",
                value: function(e) {
                    if ("string" == typeof e)
                        return L.default.resolve(e);
                    if ("function" == typeof e) {
                        var t = e(this._options.compress);
                        if ("string" == typeof t)
                            return L.default.resolve(t);
                        if (t.then)
                            return t
                    }
                    throw Error("Invalid URL")
                }
            }, {
                key: "_logout",
                value: function() {
                    var e = window.$nuxt;
                    return e.$store.commit("CLEAR_USER"),
                        e.$store.commit("SET_TRADER_NEW_TIPS", !1),
                        e.$store.commit("SET_MIX_TRADER_NEW_TIPS", !1),
                        (0,
                            D.delLoginCookie)(),
                        new L.default((function(e, t) {
                                (0,
                                    F.invokeClearCookie)().then((function(t) {
                                        H.default.remove(H.TokenKey.CC_TOKEN),
                                            H.default.remove(H.TokenKey.R_TOKEN),
                                            W.UserLocal.USERID = void 0,
                                            W.UserLocal.LAST_LOGIN_TIME = void 0,
                                            e(t)
                                    }
                                )).catch((function(e) {
                                        return t(e)
                                    }
                                ))
                            }
                        ))
                }
            }, {
                key: "_connect",
                value: function() {
                    var e = this;
                    if (!this._connectLock && this._shouldReconnect) {
                        this._connectLock = !0,
                            this._retryCount++,
                            this._debug("Connect retryCount:", this._retryCount);
                        var t = this._options.maxRetries
                            , r = void 0 === t ? Y.maxRetries : t;
                        if (this._debug("Max maxRetries", r),
                        this._retryCount >= r || this._isLogin && this._retryCount >= 10)
                            return this._debug("Max retries reached", this._retryCount, ">=", r),
                                void this._logout().then((function(e) {
                                        window.location.reload()
                                    }
                                ));
                        this._removeListeners(),
                            this._wait().then((function() {
                                    var t;
                                    e._protocols = (0,
                                        B.getTokenData)(e._url),
                                    null !== e._ws && (null === (t = e._ws) || void 0 === t ? void 0 : t.readyState) === e.OPEN && e._ws.close(),
                                        e._protocols = (0,
                                            D.removeTailRecursive)(e._protocols, "="),
                                        e._ws = e._protocols.length > 0 ? new WebSocket(e._url,e._protocols) : new WebSocket(e._url),
                                        (0,
                                            B.getContractWSUrl)().then((function(t) {
                                                var r;
                                                e._url = t,
                                                    e._protocols = (0,
                                                        B.getTokenData)(t),
                                                null !== e._ws && (null === (r = e._ws) || void 0 === r ? void 0 : r.readyState) === e.OPEN && (e._debug("_connect ws error :", e._ws),
                                                    e._ws.close()),
                                                    e._protocols = (0,
                                                        D.removeTailRecursive)(e._protocols, "="),
                                                    e._debug("Connecting to", t, "with protocols", e._protocols),
                                                    e._ws = e._protocols.length > 0 ? new WebSocket(t,e._protocols) : new WebSocket(t),
                                                    e._connectLock = !1,
                                                    e._initListeners(),
                                                    e.checkWebSocketStatus()
                                            }
                                        ))
                                }
                            ))
                    }
                }
            }, {
                key: "_disconnect",
                value: function() {
                    var code = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 1e3
                        , e = arguments.length > 1 ? arguments[1] : void 0;
                    if (this._clearTimeouts(),
                        this._debug("_disconnect:", "code:", code, "reason:", e),
                        this._ws) {
                        this._removeListeners();
                        try {
                            this._ws.close(code, e);
                            var t = new M.WrappedCloseEvent(null,code,e);
                            t.target = this,
                                this._handleClose(t)
                        } catch (e) {
                            this._debug("_disconnect: error", e)
                        }
                    }
                }
            }, {
                key: "_heartbeat",
                value: function() {
                    var e = this;
                    this._beatTimeout && clearTimeout(this._beatTimeout),
                    this.sensorsReport && clearInterval(this.sensorsReport);
                    var t = function() {
                        var r = e._options
                            , n = r.maxHeartbeat
                            , o = void 0 === n ? Y.maxHeartbeat : n
                            , c = r.heartbeatInterval
                            , l = void 0 === c ? Y.heartbeatInterval : c;
                        if (e._heartbeats > o)
                            return e._debug("_heartbeat:", e._heartbeats, "> maxHeartbeat", o),
                                e.reconnect(4999, "heartbeat"),
                                void e._clearSensorsReportTimer();
                        e._ws.readyState === WebSocket.OPEN ? (0 == e._heartbeats && e._time("ping"),
                            e.send((0,
                                k.default)({
                                action: "ping"
                            }))) : e._clearSensorsReportTimer(),
                            e._heartbeats++,
                            e._beatTimeout = setTimeout((function() {
                                    t()
                                }
                            ), l)
                    };
                    t(),
                        this.sensorsReport = setInterval((function() {
                                (0,
                                    j.default)("ws_response_time", e._url, {
                                    ext: e._heartbeatTimes.join(",")
                                }),
                                    e._heartbeatTimes = []
                            }
                        ), Y.sensorsReportInterval)
                }
            }, {
                key: "close",
                value: function() {
                    var code = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 1e3
                        , e = arguments.length > 1 ? arguments[1] : void 0;
                    this._closeCalled = !0,
                        this._shouldReconnect = !1,
                        this._clearTimeouts(),
                    this._waitTimer && clearTimeout(this._waitTimer),
                        this._ws ? this._ws.readyState !== this.CLOSED ? (this._ws.close(code, e),
                            this._debug("Triggered closed already")) : this._debug("Already closed") : this._debug("Close enqueued: no ws instance")
                }
            }, {
                key: "terminate",
                value: function() {
                    this.close(1e3, "terminate"),
                        this._debug("Execute termination"),
                        e.instance = null,
                        this._init()
                }
            }, {
                key: "reconnect",
                value: function(code, e) {
                    this._closeCalled || (this._shouldReconnect = !0,
                        this._closeCalled = !1,
                        this._ws && this._ws.readyState !== this.CLOSED ? (this._debug("ws is not null or closed, reconnect"),
                            this._disconnect(code, e),
                            this._connect()) : (this._debug("ws is null or closed, reconnect"),
                            this._connect()))
                }
            }, {
                key: "_debug",
                value: function() {
                    if (this._options.debug)
                        for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
                            t[r] = arguments[r]
                }
            }, {
                key: "_clearTimeouts",
                value: function() {
                    clearTimeout(this._connectTimeout),
                        clearTimeout(this._beatTimeout)
                }
            }, {
                key: "registerEventListener",
                value: function(t, r) {
                    var n = t + String((0,
                        E.default)());
                    return this._listeners[t].set(n, r),
                    "open" === t && this.readyState === (null == e ? void 0 : e.OPEN) && r(),
                        n
                }
            }, {
                key: "removeEventListener",
                value: function(e, t) {
                    this._listeners[e].delete(t)
                }
            }, {
                key: "send",
                value: function(data) {
                    var e;
                    this._ws && this._ws.readyState === this.OPEN ? (this._ws.send(data),
                    "ping" !== (null === (e = (0,
                        k.default)(data)) || void 0 === e ? void 0 : e.action) && (0,
                        j.default)("ws_swap_content", this._url, {
                        ext: (0,
                            k.default)(data)
                    })) : (this._debug("Enqueue", data),
                        this._messageQueue.push(data))
                }
            }, {
                key: "subscribe",
                value: function(e) {
                    var t, r = this, n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, o = arguments.length > 2 ? arguments[2] : void 0;
                    n instanceof Function && (o = n,
                        n = {});
                    var c = n;
                    (null === (t = n.token) || void 0 === t ? void 0 : t.length) > 0 && (c.token = n.token);
                    var l = re(e, c);
                    this._listeners.message.get(l) && this._listeners.message.delete(l),
                        this._listeners.message.set(l, (function(e, t) {
                                var n;
                                r.productCode && (null === (n = r.productCode) || void 0 === n ? void 0 : n.length) > 0 && e.productCode && e.productCode !== r.productCode || t === l && o(e, t)
                            }
                        ));
                    var d = "message" + String((0,
                        E.default)())
                        , f = (0,
                        k.default)(Q(Q({
                        action: e
                    }, c), {}, {
                        msgId: d
                    }));
                    return this._debug("subscribe", f),
                        this.send(f),
                        this._channelMap.set(e, {
                            action: e,
                            params: n,
                            listener: o
                        }),
                    l + "#" + d
                }
            }, {
                key: "unsubscribe",
                value: function(e) {
                    this._listeners.message = new T.default,
                        this._channelMap = new T.default
                }
            }, {
                key: "unsubscribeAll",
                value: function() {
                    for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
                        t[r] = arguments[r];
                    if (!(t.length <= 0))
                        for (var n = 0, o = t; n < o.length; n++) {
                            var c = o[n]
                                , l = (0,
                                k.default)({
                                action: "unsub_" + c.split("|")[0]
                            });
                            this._debug("UnsubscribeAll", l),
                                this.send(l),
                                this._channelMap.delete(c)
                        }
                }
            }, {
                key: "selfDestruct",
                value: function() {
                    this.terminate(),
                        this._debug("selfDestruct"),
                    this.urlManager && this.urlManager.stop()
                }
            }, {
                key: "checkWebSocketStatus",
                value: function() {
                    var e = this;
                    this._ws.readyState === this.OPEN ? this._messageSent ? this._debug("WebSocket connected and message sent") : this._debug("WebSocket connected but no message sent") : this._ws.readyState === this.CONNECTING ? this._connectTimeout = setTimeout((function() {
                            return e.close()
                        }
                    ), this._connectTimeoutSec) : (this._debug("this._ws.readyState", this._ws.readyState),
                        this._debug("WebSocket connection not yet established"))
                }
            }, {
                key: "_time",
                value: function(label) {
                    this.timeBoard[label] = (0,
                        E.default)()
                }
            }, {
                key: "_timeEnd",
                value: function(label) {
                    return this.timeBoard[label] ? (0,
                        E.default)() - this.timeBoard[label] : 0
                }
            }], [{
                key: "getInstance",
                value: (t = (0,
                        A.default)(S.default.mark((function t() {
                            var r, n, o, c, l, d, f, v, h, m, y, _;
                            return S.default.wrap((function(t) {
                                    for (; ; )
                                        switch (t.prev = t.next) {
                                            case 0:
                                                return t.next = 2,
                                                    (0,
                                                        B.getContractWSUrl)();
                                            case 2:
                                                return r = t.sent,
                                                    n = new URL(r),
                                                    o = n.hostname,
                                                    c = n.search,
                                                    l = new URL(window.location.href),
                                                    d = l.currentSearch,
                                                    f = void 0 === d ? c : d,
                                                    v = (null == c ? void 0 : c.compress) || (null == f ? void 0 : f.compress),
                                                null != c && c.compress && !!v !== this._options.compress && (this._options.compress = !!v),
                                                    this.instance ? (h = o.split(".")[0],
                                                        m = new URL(this.instance._url),
                                                        y = m.currentHostname,
                                                        _ = (void 0 === y ? o : y).split(".")[0],
                                                    h.toLowerCase() !== _.toLowerCase() && (this.instance.terminate(),
                                                        this.instance = new e(r,Y))) : this.instance = new e(r,Y),
                                                    t.abrupt("return", this.instance);
                                            case 9:
                                            case "end":
                                                return t.stop()
                                        }
                                }
                            ), t, this)
                        }
                    ))),
                        function() {
                            return t.apply(this, arguments)
                        }
                )
            }, {
                key: "CONNECTING",
                get: function() {
                    return 0
                }
            }, {
                key: "OPEN",
                get: function() {
                    return 1
                }
            }, {
                key: "CLOSING",
                get: function() {
                    return 2
                }
            }, {
                key: "CLOSED",
                get: function() {
                    return 3
                }
            }]);
            var t
        }();
        function ee() {}
        (0,
            I.default)(J, "instance", void 0);
        var te = ["step", "productCode"];
        function re(e) {
            var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
            if ("currentTraceOrders" === e)
                return e;
            var r = e;
            return (0,
                P.default)(t).sort((function(a, b) {
                    return a < b ? -1 : a === b ? 0 : 1
                }
            )).forEach((function(e) {
                    te.indexOf(e) > -1 && (r += "|".concat(e, ":").concat(t[e]))
                }
            )),
                r
        }
    },
    1323: function(e, t, r) {
        "use strict";
        var n = r(110)
            , o = r(111)
            , c = r(112)
            , l = r(69)
            , d = r(11)
            , f = r(16)
            , v = r(9)
            , h = r(18)
            , m = r(17)
            , y = r(0)
            , _ = r(2);
        y(t, "__esModule", {
            value: !0
        }),
            t.UrlManager = void 0;
        var w = _(r(41))
            , C = _(r(44))
            , S = _(r(6))
            , k = _(r(93))
            , T = _(r(73))
            , L = _(r(74))
            , E = _(r(7))
            , P = r(54)
            , A = _(r(222))
            , O = r(20);
        function N(e, t) {
            var r = d(e);
            if (f) {
                var n = f(e);
                t && (n = n.filter((function(t) {
                        return v(e, t).enumerable
                    }
                ))),
                    r.push.apply(r, n)
            }
            return r
        }
        function x(e) {
            for (var t = 1; t < arguments.length; t++) {
                var r = null != arguments[t] ? arguments[t] : {};
                t % 2 ? N(Object(r), !0).forEach((function(t) {
                        (0,
                            E.default)(e, t, r[t])
                    }
                )) : h ? m(e, h(r)) : N(Object(r)).forEach((function(t) {
                        y(e, t, v(r, t))
                    }
                ))
            }
            return e
        }
        function R(e, t) {
            var r = void 0 !== o && e[c] || e["@@iterator"];
            if (!r) {
                if (l(e) || (r = function(e, a) {
                    if (e) {
                        if ("string" == typeof e)
                            return I(e, a);
                        var t = {}.toString.call(e).slice(8, -1);
                        return "Object" === t && e.constructor && (t = e.constructor.name),
                            "Map" === t || "Set" === t ? n(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? I(e, a) : void 0
                    }
                }(e)) || t && e && "number" == typeof e.length) {
                    r && (e = r);
                    var d = 0
                        , f = function() {};
                    return {
                        s: f,
                        n: function() {
                            return d >= e.length ? {
                                done: !0
                            } : {
                                done: !1,
                                value: e[d++]
                            }
                        },
                        e: function(e) {
                            throw e
                        },
                        f: f
                    }
                }
                throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")
            }
            var v, a = !0, u = !1;
            return {
                s: function() {
                    r = r.call(e)
                },
                n: function() {
                    var e = r.next();
                    return a = e.done,
                        e
                },
                e: function(e) {
                    u = !0,
                        v = e
                },
                f: function() {
                    try {
                        a || null == r.return || r.return()
                    } finally {
                        if (u)
                            throw v
                    }
                }
            }
        }
        function I(e, a) {
            (null == a || a > e.length) && (a = e.length);
            for (var t = 0, r = Array(a); t < a; t++)
                r[t] = e[t];
            return r
        }
        var M = r(390);
        t.UrlManager = function() {
            return (0,
                L.default)((function e() {
                    var t = this;
                    (0,
                        T.default)(this, e),
                        (0,
                            E.default)(this, "records", void 0),
                        (0,
                            E.default)(this, "counter", void 0),
                        (0,
                            E.default)(this, "urlProvider", (function() {
                                var e = arguments.length > 0 && void 0 !== arguments[0] && arguments[0];
                                t.evaluateTask();
                                var r = function(e, t, r) {
                                    if (!e || e.length < 0)
                                        return;
                                    var n = e[0];
                                    return e.forEach((function(e) {
                                            var o = t(e)
                                                , c = r(e);
                                            o > 0 && (o < t(n) || o === t(n) && c < r(n)) && (n = e)
                                        }
                                    )),
                                        n
                                }(t.records, (function(i) {
                                        return Number(i.cost)
                                    }
                                ), (function(i) {
                                        return Number(i.lastUsedTime)
                                    }
                                )) || t.records[0];
                                r.lastUsedTime = (0,
                                    w.default)();
                                var n = r.socketUrl;
                                return n += "?".concat(e ? "compress=true&" : "", "data=").concat((0,
                                    P.getTokenData)(n.replace("wss://", "")))
                            }
                        )),
                        (0,
                            E.default)(this, "evaluateTask", (function() {
                                t.counter && clearTimeout(t.counter);
                                var e = function() {
                                    t.evaluate(),
                                        t.counter = setTimeout(e, 18e5)
                                };
                                e()
                            }
                        ));
                    var r = location
                        , n = r.hostname
                        , o = r.search
                        , c = A.default.parse(o)
                        , l = c.abroad && "1" === c.abroad || n.includes("weex.com")
                        , d = "wss://contract.".concat(l ? "weex.com" : O.BaseLocal.WSS_URL, "/websocket")
                        , f = "uuid=".concat(740 * (new Date).getTime() + "").concat(this.socketCompress ? "&compress=true" : "", "&data=").concat((0,
                        P.getTokenData)(d.replace("wss://", "")));
                    d += (d.indexOf("?") > -1 ? "&" : "?") + f,
                        localStorage.setItem("weex::socket::score", []);
                    var v = JSON.parse(localStorage.getItem("weex::socket::score") || "[]")
                        , h = []
                        , m = (location.host.replace("www.", ""),
                        {
                            name: "new-prod-3",
                            socketUrl: "wss://stg-contract-websocket.weex.tech/websocket"
                        });
                    "beta" === M.env && (m.socketUrl = m.socketUrl + "?beta=true"),
                        l ? (h.push(m),
                            h.push.apply(h, (0,
                                k.default)(M.backupSocketUrl))) : h.push.apply(h, (0,
                            k.default)(M.backupSocketUrl)),
                        this.records = function(e, t) {
                            var r, n = [], o = R(e);
                            try {
                                var c = function() {
                                    var e = r.value
                                        , o = t.find((function(i) {
                                            return i.name === e.name
                                        }
                                    ));
                                    o ? n.push(o) : n.push(x(x({}, e), {}, {
                                        cost: -1,
                                        lastTestTime: -1,
                                        lastUsedTime: -1
                                    }))
                                };
                                for (o.s(); !(r = o.n()).done; )
                                    c()
                            } catch (e) {
                                o.e(e)
                            } finally {
                                o.f()
                            }
                            return n
                        }(h, v)
                }
            ), [{
                key: "saveRecord",
                value: function() {
                    localStorage.setItem("weex::socket::score", (0,
                        C.default)(this.records))
                }
            }, {
                key: "evaluate",
                value: function() {
                    var e = this
                        , t = this.records.map((function(e) {
                            return t = e,
                                new S.default((function(e) {
                                        var r = (0,
                                            w.default)()
                                            , n = new WebSocket(t.socketUrl + (t.socketUrl.indexOf("?") > -1 ? "&" : "?") + "check=1")
                                            , o = null
                                            , c = !1
                                            , l = !1
                                            , d = setTimeout((function() {
                                                l = !0,
                                                    t.lastTestTime = (0,
                                                        w.default)(),
                                                    t.cost = 99999,
                                                    e()
                                            }
                                        ), 4e3);
                                        n.onopen = function() {
                                            l ? n.close() : (clearTimeout(d),
                                                o = setTimeout((function() {
                                                        n && n.readyState === n.OPEN && n.close()
                                                    }
                                                ), 1e4))
                                        }
                                            ,
                                            n.onerror = function() {
                                                l || (t.cost = 99999,
                                                    t.lastTestTime = (0,
                                                        w.default)(),
                                                o && clearTimeout(o),
                                                d && clearTimeout(d),
                                                    e())
                                            }
                                            ,
                                            n.onmessage = function() {
                                                if (!l) {
                                                    var n = (0,
                                                        w.default)();
                                                    t.lastTestTime = n,
                                                        t.cost = n - r,
                                                        c = !0,
                                                        e()
                                                }
                                            }
                                            ,
                                            n.onclose = function() {
                                                l || c || (t.lastTestTime = (0,
                                                    w.default)(),
                                                    t.cost = 99999,
                                                    e())
                                            }
                                    }
                                ));
                            var t
                        }
                    ));
                    S.default.all(t).then((function() {
                            e.saveRecord()
                        }
                    ))
                }
            }, {
                key: "stop",
                value: function() {
                    this.counter && clearTimeout(this.counter)
                }
            }])
        }()
    },
    167: function(e, t, r) {
        "use strict";
        var n = r(0)
            , o = r(2);
        n(t, "__esModule", {
            value: !0
        }),
            t.verifySystemLogin = t.userVipCode = t.systemLogin = t.registerForMobileV2 = t.registerForMobile = t.registerForEmailV2 = t.registerForEmail = t.loginCheck = t.login = t.invokeClearCookie = t.getUserInfo = t.getQrcodeKey = t.getQrKeyStatus = t.getQrKey = t.forgetPwdVerify = t.forgetPwdResetNew = t.forgetPwdReset = t.forgetPwdConfirm = void 0;
        var c = o(r(6))
            , l = r(923)
            , d = r(82)
            , f = (r(26),
            (0,
                d.getInstance)("/v1/user"));
        t.registerForMobile = function(data) {
            return f.post("/register/mobile", data).then((function(e) {
                    var t = e;
                    return t.data && (t.data.userInfo = (0,
                        l.formatUserInfo)(t.data)),
                        t
                }
            )).catch((function(e) {
                    return c.default.reject(e)
                }
            ))
        }
            ,
            t.registerForMobileV2 = function(data) {
                return f.post("/register/mobileV2", data).then((function(e) {
                        var t = e;
                        return t.data && (t.data.userInfo = (0,
                            l.formatUserInfo)(t.data)),
                            t
                    }
                )).catch((function(e) {
                        return c.default.reject(e)
                    }
                ))
            }
            ,
            t.registerForEmail = function(data) {
                return f.post("/register/email", data).then((function(e) {
                        var t = e;
                        return t.data && (t.data.userInfo = (0,
                            l.formatUserInfo)(t.data)),
                            t
                    }
                )).catch((function(e) {
                        return c.default.reject(e)
                    }
                ))
            }
            ,
            t.registerForEmailV2 = function(data) {
                return f.post("/register/emailV2", data).then((function(e) {
                        var t = e;
                        return t.data && (t.data.userInfo = (0,
                            l.formatUserInfo)(t.data)),
                            t
                    }
                )).catch((function(e) {
                        return c.default.reject(e)
                    }
                ))
            }
            ,
            t.loginCheck = function(data) {
                return f.post("/login/new", data).then((function(e) {
                        return "00000" === e.code && e.data.userInfo && (e.data.userInfo = (0,
                            l.formatUserInfo)(e.data)),
                            e
                    }
                )).catch((function(e) {
                        return c.default.reject(e)
                    }
                ))
            }
            ,
            t.login = function(data) {
                return f.post("/login/verify-login", data).then((function(e) {
                        return e.data && (e.data.userInfo = (0,
                            l.formatUserInfo)(e.data)),
                            e
                    }
                )).catch((function(e) {
                        return c.default.reject(e)
                    }
                ))
            }
            ,
            t.invokeClearCookie = function(data) {
                return f.post("/public/clearCookie")
            }
            ,
            t.systemLogin = function(data) {
                return f.post("/login/systemLogin", data)
            }
            ,
            t.verifySystemLogin = function(data) {
                return f.post("/login/verifySystemLogin", data).then((function(e) {
                        var t = e;
                        return t.data && (t.data.userInfo = (0,
                            l.formatUserInfo)(t.data)),
                            t
                    }
                )).catch((function(e) {
                        return c.default.reject(e)
                    }
                ))
            }
            ,
            t.getUserInfo = function(data) {
                return f.post("/overview/userinfo", data).then((function(e) {
                        var t = e;
                        return t.data && (t.data.userInfo = (0,
                            l.formatUserInfo)(t.data)),
                            t
                    }
                )).catch((function(e) {
                        return c.default.reject(e)
                    }
                ))
            }
            ,
            t.getQrKey = function(data) {
                return f.post("/public/getQrKey", data)
            }
            ,
            t.forgetPwdConfirm = function(data) {
                return f.post("/forget-pwd/confirm", data)
            }
            ,
            t.forgetPwdReset = function(data) {
                return f.post("/forget-pwd/reset", data)
            }
            ,
            t.forgetPwdResetNew = function(data) {
                return f.post("/forget-pwd/reset-new", data)
            }
            ,
            t.forgetPwdVerify = function(data) {
                return f.post("/forget-pwd/confirmNew", data)
            }
            ,
            t.userVipCode = function(data) {
                return f.post("/overview/userVipCode", data)
            }
            ,
            t.getQrcodeKey = function(e) {
                return f.post("/public/getQrcodeKey")
            }
            ,
            t.getQrKeyStatus = function(data) {
                return f.post("/public/getQrKeyStatus", data)
            }
    },
    197: function(e, t, r) {
        "use strict";
        r(0)(t, "__esModule", {
            value: !0
        }),
            t.firebaseApp = void 0;
        var n = r(987)
            , o = (0,
            n.getApps)();
        t.firebaseApp = {};
        o.length ? t.firebaseApp = o[0] : t.firebaseApp = (0,
            n.initializeApp)({
            apiKey: "AIzaSyAlDwrdAAud0Sf4tM-QuBxCIR3iAOV8axY",
            authDomain: "weex-83521.firebaseapp.com",
            projectId: "weex-83521",
            storageBucket: "weex-83521.appspot.com",
            messagingSenderId: "322040710743",
            appId: "1:322040710743:web:097325fe1f932797168512",
            measurementId: "G-VJ1TZQ4HKS"
        })
    },
    303: function(e, t, r) {
        "use strict";
        var n = r(0)
            , o = r(2);
        n(t, "__esModule", {
            value: !0
        }),
            t.default = void 0;
        var c, l, d, f = o(r(9)), v = o(r(14)), h = o(r(15)), m = o(r(73)), y = o(r(74)), _ = o(r(939)), w = o(r(940)), C = o(r(941)), S = r(109), k = (c = (0,
            S.CacheApi)(),
            l = (0,
                S.CacheApi)(),
            d = function() {
                return (0,
                    y.default)((function e() {
                        (0,
                            m.default)(this, e)
                    }
                ), [{
                    key: "setAuthCode",
                    value: function(code) {
                        w.default.setAuthCode(code)
                    }
                }, {
                    key: "getContractList",
                    value: (Le = (0,
                            h.default)(v.default.mark((function e(data) {
                                var t;
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.next = 2,
                                                        w.default.post("/api/v1/public/meta/getMetaData", data);
                                                case 2:
                                                    return t = e.sent,
                                                        e.abrupt("return", C.default.contractList.res(t));
                                                case 4:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return Le.apply(this, arguments)
                            }
                    )
                }, {
                    key: "getKlineHistory",
                    value: (Te = (0,
                            h.default)(v.default.mark((function e(data) {
                                var t;
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.next = 2,
                                                        w.default.post("/api/v1/public/quote/v1/getKline", C.default.klineHistoryList.req(data));
                                                case 2:
                                                    return t = e.sent,
                                                        e.abrupt("return", C.default.klineHistoryList.res(t));
                                                case 4:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return Te.apply(this, arguments)
                            }
                    )
                }, {
                    key: "getAccount",
                    value: (ke = (0,
                            h.default)(v.default.mark((function e(data) {
                                var t;
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.next = 2,
                                                        w.default.post("/api/v1/private/account/getAccount", C.default.account.req(data));
                                                case 2:
                                                    return t = e.sent,
                                                        e.abrupt("return", C.default.account.res(t));
                                                case 4:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return ke.apply(this, arguments)
                            }
                    )
                }, {
                    key: "getAccountAsset",
                    value: (Se = (0,
                            h.default)(v.default.mark((function e(data) {
                                var t;
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.next = 2,
                                                        w.default.post("/api/v1/private/account/getAccountAsset", C.default.accountAsset.req(data));
                                                case 2:
                                                    return t = e.sent,
                                                        e.abrupt("return", C.default.accountAsset.res(t));
                                                case 4:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return Se.apply(this, arguments)
                            }
                    )
                }, {
                    key: "createOrder",
                    value: (Ce = (0,
                            h.default)(v.default.mark((function e(data) {
                                var t;
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.next = 2,
                                                        w.default.post("/api/v1/private/order/createOrder", C.default.createOrder.req(data));
                                                case 2:
                                                    return t = e.sent,
                                                        e.abrupt("return", C.default.createOrder.res(t));
                                                case 4:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return Ce.apply(this, arguments)
                            }
                    )
                }, {
                    key: "closeAllPosition",
                    value: (be = (0,
                            h.default)(v.default.mark((function e(data) {
                                var t;
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.next = 2,
                                                        w.default.post("/api/v1/private/order/closeAllPosition", C.default.closeAllPosition.req(data));
                                                case 2:
                                                    return t = e.sent,
                                                        e.abrupt("return", C.default.closeAllPosition.res(t));
                                                case 4:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return be.apply(this, arguments)
                            }
                    )
                }, {
                    key: "reversePosition",
                    value: (we = (0,
                            h.default)(v.default.mark((function e(data) {
                                var t;
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.next = 2,
                                                        w.default.post("/api/v1/private/order/reversePosition", C.default.reversePosition.req(data));
                                                case 2:
                                                    return t = e.sent,
                                                        e.abrupt("return", C.default.reversePosition.res(t));
                                                case 4:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return we.apply(this, arguments)
                            }
                    )
                }, {
                    key: "moveMargin",
                    value: (_e = (0,
                            h.default)(v.default.mark((function e(data) {
                                var t;
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.next = 2,
                                                        w.default.post("/api/v1/private/account/moveMargin", C.default.moveMargin.req(data));
                                                case 2:
                                                    return t = e.sent,
                                                        e.abrupt("return", C.default.moveMargin.res(t));
                                                case 4:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return _e.apply(this, arguments)
                            }
                    )
                }, {
                    key: "updateLeverage",
                    value: (ye = (0,
                            h.default)(v.default.mark((function e(data) {
                                var t;
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.next = 2,
                                                        w.default.post("/api/v1/private/account/updateLeverageSetting", C.default.updateLeverage.req(data));
                                                case 2:
                                                    return t = e.sent,
                                                        e.abrupt("return", C.default.updateLeverage.res(t));
                                                case 4:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return ye.apply(this, arguments)
                            }
                    )
                }, {
                    key: "updateMode",
                    value: (me = (0,
                            h.default)(v.default.mark((function e(data) {
                                var t;
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.next = 2,
                                                        w.default.post("/api/v1/private/account/updateModeSetting", C.default.updateMode.req(data));
                                                case 2:
                                                    return t = e.sent,
                                                        e.abrupt("return", C.default.updateMode.res(t));
                                                case 4:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return me.apply(this, arguments)
                            }
                    )
                }, {
                    key: "updateAutoAppendMargin",
                    value: (he = (0,
                            h.default)(v.default.mark((function e(data) {
                                var t;
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.next = 2,
                                                        w.default.post("/api/v1/private/account/updateAutoAppendMargin", C.default.updateAutoAppendMargin.req(data));
                                                case 2:
                                                    return t = e.sent,
                                                        e.abrupt("return", C.default.updateAutoAppendMargin.res(t));
                                                case 4:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return he.apply(this, arguments)
                            }
                    )
                }, {
                    key: "adjustIsolatedPositionMargin",
                    value: (ge = (0,
                            h.default)(v.default.mark((function e(data) {
                                var t;
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.next = 2,
                                                        w.default.post("/api/v1/private/account/adjustIsolatedPositionMargin", C.default.updateAutoAppendMargin.req(data));
                                                case 2:
                                                    return t = e.sent,
                                                        e.abrupt("return", C.default.adjustIsolatedPositionMargin.res(t));
                                                case 4:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return ge.apply(this, arguments)
                            }
                    )
                }, {
                    key: "updateOrderLimitPrice",
                    value: (ve = (0,
                            h.default)(v.default.mark((function e(data) {
                                var t;
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.next = 2,
                                                        w.default.post("/api/v1/private/order/updateOrderLimitPrice", C.default.updateOrderLimitPrice.req(data));
                                                case 2:
                                                    return t = e.sent,
                                                        e.abrupt("return", C.default.updateOrderLimitPrice.res(t));
                                                case 4:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return ve.apply(this, arguments)
                            }
                    )
                }, {
                    key: "updateOrderTriggerPrice",
                    value: (pe = (0,
                            h.default)(v.default.mark((function e(data) {
                                var t;
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.next = 2,
                                                        w.default.post("/api/v1/private/order/updateOrderTriggerPrice", C.default.updateOrderTriggerPrice.req(data));
                                                case 2:
                                                    return t = e.sent,
                                                        e.abrupt("return", C.default.updateOrderTriggerPrice.res(t));
                                                case 4:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return pe.apply(this, arguments)
                            }
                    )
                }, {
                    key: "updateOpenTpSlTriggerPrice",
                    value: (fe = (0,
                            h.default)(v.default.mark((function e(data) {
                                var t;
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.next = 2,
                                                        w.default.post("/api/v1/private/order/updateOrderOpenTpslTriggerPrice", C.default.updateOpenTpSlTriggerPrice.req(data));
                                                case 2:
                                                    return t = e.sent,
                                                        e.abrupt("return", C.default.updateOpenTpSlTriggerPrice.res(t));
                                                case 4:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return fe.apply(this, arguments)
                            }
                    )
                }, {
                    key: "getHistoryOrder",
                    value: (de = (0,
                            h.default)(v.default.mark((function e(data) {
                                var t;
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.next = 2,
                                                        w.default.post("/api/v1/private/order/v1/getHistoryOrderPage", C.default.getHistoryOrder.req(data));
                                                case 2:
                                                    return t = e.sent,
                                                        e.abrupt("return", C.default.getHistoryOrder.res(t));
                                                case 4:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return de.apply(this, arguments)
                            }
                    )
                }, {
                    key: "getCurrentOrder",
                    value: (le = (0,
                            h.default)(v.default.mark((function e(data) {
                                var t;
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.next = 2,
                                                        w.default.post("/api/v1/private/order/getActiveOrderPage2", C.default.getCurrentOrder.req(data));
                                                case 2:
                                                    return t = e.sent,
                                                        e.abrupt("return", C.default.getCurrentOrder.res(t));
                                                case 4:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return le.apply(this, arguments)
                            }
                    )
                }, {
                    key: "cancelOrderById",
                    value: (ce = (0,
                            h.default)(v.default.mark((function e(data) {
                                var t;
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.next = 2,
                                                        w.default.post("/api/v1/private/order/cancelOrderById", C.default.cancelOrderById.req(data));
                                                case 2:
                                                    return t = e.sent,
                                                        e.abrupt("return", C.default.cancelOrderById.res(t));
                                                case 4:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return ce.apply(this, arguments)
                            }
                    )
                }, {
                    key: "cancelAllOrder",
                    value: (se = (0,
                            h.default)(v.default.mark((function e(data) {
                                var t;
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.next = 2,
                                                        w.default.post("/api/v1/private/order/cancelAllOrder", C.default.cancelAllOrder.req(data));
                                                case 2:
                                                    return t = e.sent,
                                                        e.abrupt("return", C.default.cancelAllOrder.res(t));
                                                case 4:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return se.apply(this, arguments)
                            }
                    )
                }, {
                    key: "getHistoryOrderDetailById",
                    value: (ue = (0,
                            h.default)(v.default.mark((function e(data) {
                                var t;
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.next = 2,
                                                        w.default.post("/api/v1/private/order/v1/getHistoryOrderFillTransactionPage", C.default.getHistoryOrderDetailById.req(data));
                                                case 2:
                                                    return t = e.sent,
                                                        e.abrupt("return", C.default.getHistoryOrderDetailById.res(t));
                                                case 4:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return ue.apply(this, arguments)
                            }
                    )
                }, {
                    key: "getHistoryPositionList",
                    value: (oe = (0,
                            h.default)(v.default.mark((function e(data) {
                                var t;
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.next = 2,
                                                        w.default.post("/api/v1/private/account/v1/getHistoryPositionPage", C.default.getHistoryPositionList.req(data));
                                                case 2:
                                                    return t = e.sent,
                                                        e.abrupt("return", C.default.getHistoryPositionList.res(t));
                                                case 4:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return oe.apply(this, arguments)
                            }
                    )
                }, {
                    key: "getFinancialConditionList",
                    value: (ie = (0,
                            h.default)(v.default.mark((function e(data) {
                                var t;
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.next = 2,
                                                        w.default.post("/api/v1/private/account/v1/getCollateralTransactionPage", C.default.getFinancialConditionList.req(data));
                                                case 2:
                                                    return t = e.sent,
                                                        e.abrupt("return", C.default.getFinancialConditionList.res(t));
                                                case 4:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return ie.apply(this, arguments)
                            }
                    )
                }, {
                    key: "getMultiLanguageItem",
                    value: (ae = (0,
                            h.default)(v.default.mark((function e(data) {
                                var t;
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.next = 2,
                                                        w.default.post("/api/v1/public/meta/getMultiLanguageItem", C.default.getMultiLanguageItem.req(data));
                                                case 2:
                                                    return t = e.sent,
                                                        e.abrupt("return", C.default.getMultiLanguageItem.res(t));
                                                case 4:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return ae.apply(this, arguments)
                            }
                    )
                }, {
                    key: "checkContractEnableDisplay",
                    value: (ne = (0,
                            h.default)(v.default.mark((function e() {
                                var t, r;
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.next = 2,
                                                        w.default.post("/api/v1/private/order/checkContractDisplay", C.default.checkContractEnableDisplay.req({}));
                                                case 2:
                                                    return t = e.sent,
                                                        r = C.default.checkContractEnableDisplay.res(t),
                                                        e.abrupt("return", r);
                                                case 5:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function() {
                                return ne.apply(this, arguments)
                            }
                    )
                }, {
                    key: "getFundingHistory",
                    value: (re = (0,
                            h.default)(v.default.mark((function e(data) {
                                var t;
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.next = 2,
                                                        w.default.post("/api/v1/public/quote/v1/getFundingHistory", C.default.getFundingHistory.req(data));
                                                case 2:
                                                    return t = e.sent,
                                                        e.abrupt("return", C.default.getFundingHistory.res(t));
                                                case 4:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return re.apply(this, arguments)
                            }
                    )
                }, {
                    key: "myTraders",
                    value: (te = (0,
                            h.default)(v.default.mark((function e(data) {
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.abrupt("return", w.default.post("/api/v1/private/trace/follower/myTraders", data));
                                                case 1:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return te.apply(this, arguments)
                            }
                    )
                }, {
                    key: "traceGlobalConfig",
                    value: (ee = (0,
                            h.default)(v.default.mark((function e(data) {
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.abrupt("return", w.default.get("/api/v1/public/trace/globalConfig", data));
                                                case 1:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return ee.apply(this, arguments)
                            }
                    )
                }, {
                    key: "getTraceUserInfo",
                    value: (J = (0,
                            h.default)(v.default.mark((function e(data) {
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.abrupt("return", w.default.post("/api/v1/private/trace/user/getTraceUserInfo", data));
                                                case 1:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return J.apply(this, arguments)
                            }
                    )
                }, {
                    key: "topTraderListView",
                    value: (Y = (0,
                            h.default)(v.default.mark((function e(data) {
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.abrupt("return", w.default.post("/api/v1/public/trace/topTraderListView", data));
                                                case 1:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return Y.apply(this, arguments)
                            }
                    )
                }, {
                    key: "traderListView",
                    value: (X = (0,
                            h.default)(v.default.mark((function e(data) {
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.abrupt("return", w.default.post("/api/v1/public/trace/traderListView", data));
                                                case 1:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return X.apply(this, arguments)
                            }
                    )
                }, {
                    key: "myTracers",
                    value: (Z = (0,
                            h.default)(v.default.mark((function e(data) {
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.abrupt("return", w.default.post("/api/v1/private/trace/trader/myTracers", data));
                                                case 1:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return Z.apply(this, arguments)
                            }
                    )
                }, {
                    key: "profitList",
                    value: (Q = (0,
                            h.default)(v.default.mark((function e(data) {
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.abrupt("return", w.default.post("/api/v1/private/trace/trader/profitList", data));
                                                case 1:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return Q.apply(this, arguments)
                            }
                    )
                }, {
                    key: "profitHisList",
                    value: (V = (0,
                            h.default)(v.default.mark((function e(data) {
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.abrupt("return", w.default.post("/api/v1/private/trace/trader/profitHisList", data));
                                                case 1:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return V.apply(this, arguments)
                            }
                    )
                }, {
                    key: "profitHisDetailList",
                    value: (G = (0,
                            h.default)(v.default.mark((function e(data) {
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.abrupt("return", w.default.post("/api/v1/private/trace/trader/profitHisDetailList", data));
                                                case 1:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return G.apply(this, arguments)
                            }
                    )
                }, {
                    key: "waitProfitDetailList",
                    value: ($ = (0,
                            h.default)(v.default.mark((function e(data) {
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.abrupt("return", w.default.post("/api/v1/private/trace/trader/waitProfitDetailList", data));
                                                case 1:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return $.apply(this, arguments)
                            }
                    )
                }, {
                    key: "totalProfitList",
                    value: (z = (0,
                            h.default)(v.default.mark((function e(data) {
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.abrupt("return", w.default.post("/api/v1/private/trace/trader/totalProfitList", data));
                                                case 1:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return z.apply(this, arguments)
                            }
                    )
                }, {
                    key: "historyList",
                    value: (W = (0,
                            h.default)(v.default.mark((function e(data) {
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.abrupt("return", w.default.post("/api/v1/private/tracking/getHistoryOrderList", data));
                                                case 1:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return W.apply(this, arguments)
                            }
                    )
                }, {
                    key: "myBatchTrader",
                    value: (K = (0,
                            h.default)(v.default.mark((function e(data) {
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.abrupt("return", w.default.post("/api/v1/private/trace/follower/myBatchTrader", data));
                                                case 1:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return K.apply(this, arguments)
                            }
                    )
                }, {
                    key: "removeTrader",
                    value: (H = (0,
                            h.default)(v.default.mark((function e(data) {
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.abrupt("return", w.default.post("/api/v1/private/trace/follower/removeTrader", data));
                                                case 1:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return H.apply(this, arguments)
                            }
                    )
                }, {
                    key: "setBatchTraceConfig",
                    value: (j = (0,
                            h.default)(v.default.mark((function e(data) {
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.abrupt("return", w.default.post("/api/v1/private/trace/user/setBatchTraceConfig", data));
                                                case 1:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return j.apply(this, arguments)
                            }
                    )
                }, {
                    key: "getTraceProfile",
                    value: (F = (0,
                            h.default)(v.default.mark((function e(data) {
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.abrupt("return", w.default.post("/api/v1/private/trace/user/getTraceProfile", data));
                                                case 1:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return F.apply(this, arguments)
                            }
                    )
                }, {
                    key: "applyTrader",
                    value: (U = (0,
                            h.default)(v.default.mark((function e(data) {
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.abrupt("return", w.default.post("/api/v1/private/trace/trader/applyTrader", data));
                                                case 1:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return U.apply(this, arguments)
                            }
                    )
                }, {
                    key: "queryApplyTraderStatus",
                    value: (B = (0,
                            h.default)(v.default.mark((function e(data) {
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.abrupt("return", w.default.post("/api/v1/private/trace/trader/queryApplyTraderStatus", data));
                                                case 1:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return B.apply(this, arguments)
                            }
                    )
                }, {
                    key: "setEnNickName",
                    value: (D = (0,
                            h.default)(v.default.mark((function e(data) {
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.abrupt("return", w.default.post("/api/v1/private/trace/user/setEnNickName", data));
                                                case 1:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return D.apply(this, arguments)
                            }
                    )
                }, {
                    key: "setEnProfile",
                    value: (M = (0,
                            h.default)(v.default.mark((function e(data) {
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.abrupt("return", w.default.post("/api/v1/private/trace/user/setEnProfile", data));
                                                case 1:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return M.apply(this, arguments)
                            }
                    )
                }, {
                    key: "setProductCode",
                    value: (I = (0,
                            h.default)(v.default.mark((function e(data) {
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.abrupt("return", w.default.post("/api/v1/private/trace/trader/setTracingContract", data));
                                                case 1:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return I.apply(this, arguments)
                            }
                    )
                }, {
                    key: "setAutoCancel",
                    value: (R = (0,
                            h.default)(v.default.mark((function e(data) {
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.abrupt("return", w.default.post("/api/v1/private/trace/user/setAutoCancel", data));
                                                case 1:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return R.apply(this, arguments)
                            }
                    )
                }, {
                    key: "setRemindTrace",
                    value: (x = (0,
                            h.default)(v.default.mark((function e(data) {
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.abrupt("return", w.default.post("/api/v1/private/trace/follower/setRemindTrace", data));
                                                case 1:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return x.apply(this, arguments)
                            }
                    )
                }, {
                    key: "sortConditionList",
                    value: (N = (0,
                            h.default)(v.default.mark((function e(data) {
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.abrupt("return", w.default.get("/api/v1/public/trace/sortConditionList", data));
                                                case 1:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return N.apply(this, arguments)
                            }
                    )
                }, {
                    key: "globalConfig",
                    value: (O = (0,
                            h.default)(v.default.mark((function e(data) {
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.abrupt("return", w.default.get("/api/v1/public/trace/globalConfig", data));
                                                case 1:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return O.apply(this, arguments)
                            }
                    )
                }, {
                    key: "getUserTraceLevelSetting",
                    value: (A = (0,
                            h.default)(v.default.mark((function e(data) {
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.abrupt("return", w.default.post("/api/v1/private/trace/follower/getUserContractsInfo", data));
                                                case 1:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return A.apply(this, arguments)
                            }
                    )
                }, {
                    key: "getMultiLanguage",
                    value: (P = (0,
                            h.default)(v.default.mark((function e(data) {
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.abrupt("return", w.default.post("/api/v1/private/trace/user/getMultiLanguage", data));
                                                case 1:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return P.apply(this, arguments)
                            }
                    )
                }, {
                    key: "traderContractInfoList",
                    value: (E = (0,
                            h.default)(v.default.mark((function e(data) {
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.abrupt("return", w.default.post("/api/v1/private/trace/trader/traderContractInfoList", data));
                                                case 1:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return E.apply(this, arguments)
                            }
                    )
                }, {
                    key: "traceContractInfoList",
                    value: (L = (0,
                            h.default)(v.default.mark((function e(data) {
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.abrupt("return", w.default.post("/api/v1/private/trace/follower/traceContractInfoList", data));
                                                case 1:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return L.apply(this, arguments)
                            }
                    )
                }, {
                    key: "traderInvite",
                    value: (T = (0,
                            h.default)(v.default.mark((function e(data) {
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.abrupt("return", w.default.post("/api/v1/private/trace/trader/inviteFollowers", data));
                                                case 1:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return T.apply(this, arguments)
                            }
                    )
                }, {
                    key: "setAssetTradersFollowStatus",
                    value: (k = (0,
                            h.default)(v.default.mark((function e(data) {
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.abrupt("return", w.default.post("/api/v1/private/trace/follower/setAssetTradersFollowStatus", data));
                                                case 1:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return k.apply(this, arguments)
                            }
                    )
                }, {
                    key: "traderDetailPage",
                    value: (S = (0,
                            h.default)(v.default.mark((function e(data) {
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.abrupt("return", w.default.post("/api/v1/private/trace/follower/getMyTradeDetail", data));
                                                case 1:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return S.apply(this, arguments)
                            }
                    )
                }, {
                    key: "removeTracer",
                    value: (_ = (0,
                            h.default)(v.default.mark((function e(data) {
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.abrupt("return", w.default.post("/api/v1/private/trace/trader/removeTracer", data));
                                                case 1:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return _.apply(this, arguments)
                            }
                    )
                }, {
                    key: "traderView",
                    value: (f = (0,
                            h.default)(v.default.mark((function e(data) {
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.abrupt("return", w.default.post("/api/v1/public/trace/traderView", data));
                                                case 1:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return f.apply(this, arguments)
                            }
                    )
                }, {
                    key: "currentList",
                    value: (d = (0,
                            h.default)(v.default.mark((function e(data) {
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.abrupt("return", w.default.post("/api/v1/private/tracking/getOpenOrderList", data));
                                                case 1:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return d.apply(this, arguments)
                            }
                    )
                }, {
                    key: "followerList",
                    value: (l = (0,
                            h.default)(v.default.mark((function e(data) {
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.abrupt("return", w.default.post("/api/v1/private/trace/trader/followerList", data));
                                                case 1:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return l.apply(this, arguments)
                            }
                    )
                }, {
                    key: "recommendTraderList",
                    value: (c = (0,
                            h.default)(v.default.mark((function e(data) {
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.abrupt("return", w.default.post("/api/v1/public/trace/recommendTraderList", data));
                                                case 1:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return c.apply(this, arguments)
                            }
                    )
                }, {
                    key: "closeAllTrackingOrder",
                    value: (o = (0,
                            h.default)(v.default.mark((function e(data) {
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.abrupt("return", w.default.post("/api/v1/private/tracking/closeAllTrackingOrder", data));
                                                case 1:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return o.apply(this, arguments)
                            }
                    )
                }, {
                    key: "updateTrackingOrder",
                    value: (n = (0,
                            h.default)(v.default.mark((function e(data) {
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.abrupt("return", w.default.post("/api/v1/private/tracking/updateTrackingOrder", data));
                                                case 1:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return n.apply(this, arguments)
                            }
                    )
                }, {
                    key: "closeTrackingOrder",
                    value: (r = (0,
                            h.default)(v.default.mark((function e(data) {
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.abrupt("return", w.default.post("/api/v1/private/tracking/closeTrackingOrder", data));
                                                case 1:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return r.apply(this, arguments)
                            }
                    )
                }, {
                    key: "getTargetLanguageText",
                    value: (t = (0,
                            h.default)(v.default.mark((function e(data) {
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.abrupt("return", w.default.post("/api/v1/private/translate/getTargetLanguageText", data));
                                                case 1:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(e) {
                                return t.apply(this, arguments)
                            }
                    )
                }, {
                    key: "getContractPlate",
                    value: (e = (0,
                            h.default)(v.default.mark((function e(data) {
                                var t;
                                return v.default.wrap((function(e) {
                                        for (; ; )
                                            switch (e.prev = e.next) {
                                                case 0:
                                                    return e.next = 2,
                                                        w.default.post("/api/v1/public/contract/plate/getContractPlate", C.default.getContractPlate.req(data));
                                                case 2:
                                                    return t = e.sent,
                                                        e.abrupt("return", C.default.getContractPlate.res(t));
                                                case 4:
                                                case "end":
                                                    return e.stop()
                                            }
                                    }
                                ), e)
                            }
                        ))),
                            function(t) {
                                return e.apply(this, arguments)
                            }
                    )
                }]);
                var e, t, r, n, o, c, l, d, f, _, S, k, T, L, E, P, A, O, N, x, R, I, M, D, B, U, F, j, H, K, W, z, $, G, V, Q, Z, X, Y, J, ee, te, re, ne, ae, ie, oe, ue, se, ce, le, de, fe, pe, ve, ge, he, me, ye, _e, we, be, Ce, Se, ke, Te, Le
            }(),
            (0,
                _.default)(d.prototype, "getContractList", [c], (0,
                f.default)(d.prototype, "getContractList"), d.prototype),
            (0,
                _.default)(d.prototype, "checkContractEnableDisplay", [l], (0,
                f.default)(d.prototype, "checkContractEnableDisplay"), d.prototype),
            d), T = new k;
        t.default = T
    },
    305: function(e, t, r) {
        "use strict";
        r(0)(t, "__esModule", {
            value: !0
        }),
            t.switchDeduct = t.getUserGroupTypeList = t.getSpotWithdrawAddrList = t.getSpotRechargeAddress = t.getSpotNewRechargeAddress = t.getSpotLimitInfo = t.getSpotCoinChainList = t.getSpotCoinAssets = t.getSpotCapitalOrderList = t.getSpotCapitalOrderInfo = t.getSpotBillList = t.getSpotAssets = t.getSpotAllAssetNew = t.getSpotAllAsset = t.getAssetsWithBalanceNew = t.getAssetsWithBalance = t.getAssetsCashGift = t.doSpotWithdraw = t.delSpotWithdrawAddr = t.checkSpotWithdrawAddr = t.checkPreWithdraw = t.cacelSpotWithdraw = t.cacelOldSpotWithdraw = t.addSpotWithdrawAddr = void 0;
        r(109);
        var n = (0,
            r(82).getInstance)("");
        t.getSpotAssets = function(data) {
            return n.post("/v1/spot/assets", data)
        }
            ,
            t.getSpotCoinAssets = function(data) {
                return n.post("/v1/spot/getAssets", data)
            }
            ,
            t.getSpotCoinChainList = function(data) {
                return n.post("/v1/spot/public/coinChainList", data)
            }
            ,
            t.getSpotBillList = function(data) {
                return n.post("/v1/spot/billList", data)
            }
            ,
            t.addSpotWithdrawAddr = function(data) {
                return n.post("/v1/spot/addWithdrawAddr", data)
            }
            ,
            t.getSpotWithdrawAddrList = function(data) {
                return n.post("/v1/spot/withdrawAddrList", data)
            }
            ,
            t.delSpotWithdrawAddr = function(data) {
                return n.get("/v1/spot/delWithdrawAddr", data)
            }
            ,
            t.checkSpotWithdrawAddr = function(data) {
                return n.post("/v1/spot/checkWithdrawAddr", data)
            }
            ,
            t.getSpotRechargeAddress = function(data) {
                var e = (new Date).getTime();
                return n.post("/v1/spot/rechargeAddress?t=" + e, data)
            }
            ,
            t.getSpotNewRechargeAddress = function(data) {
                var e = (new Date).getTime();
                return n.post("/v1/spot/rechargeAddress/new?t=" + e, data)
            }
            ,
            t.getSpotCapitalOrderList = function(data) {
                return n.post("/v1/spot/capitalOrderList", data)
            }
            ,
            t.getSpotCapitalOrderInfo = function(data) {
                return n.post("/v1/spot/capitalOrderInfo", data)
            }
            ,
            t.getSpotLimitInfo = function(data) {
                return n.post("/v1/spot/getLimitInfo", data)
            }
            ,
            t.checkPreWithdraw = function(data) {
                return n.post("/v1/spot/checkPreWithdraw", data)
            }
            ,
            t.doSpotWithdraw = function(data) {
                return n.post("/v1/spot/withdraw", data)
            }
            ,
            t.cacelSpotWithdraw = function(data) {
                return n.post("/v1/spot/cancelWithdraw", data)
            }
            ,
            t.cacelOldSpotWithdraw = function(data) {
                return n.post("/v1/spot/withdraw/cancel", data)
            }
            ,
            t.getSpotAllAsset = function(data) {
                return n.post("/v1/gw/assets", data)
            }
            ,
            t.getSpotAllAssetNew = function(data) {
                return n.post("/v1/gw/assets/new", data)
            }
            ,
            t.getAssetsWithBalance = function(data) {
                return n.post("/v1/gw/assetsWithBalance", data)
            }
            ,
            t.getAssetsWithBalanceNew = function(data) {
                return n.post("/v1/gw/assetsWithBalance/new", data)
            }
            ,
            t.getUserGroupTypeList = function(data) {
                return n.post("/v1/spot/getUserGroupTypeList", data)
            }
            ,
            t.switchDeduct = function(data) {
                return n.post("/v1/spot/switchDeduct", data)
            }
            ,
            t.getAssetsCashGift = function(data) {
                return n.post("/v1/gw/assetsCashGiftBalance", data)
            }
    },
    355: function(e, t, r) {
        "use strict";
        var n = r(0)
            , o = r(2);
        n(t, "__esModule", {
            value: !0
        }),
            t.generateUniqueString = function() {
                var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 64
                    , t = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
                    , r = String((0,
                    l.default)())
                    , n = r.length
                    , o = Math.floor(e - n);
                e < n && (r = "",
                    o = e);
                for (var i = 0; i < o + 2; ++i) {
                    r += t[Math.floor(62 * Math.random())]
                }
                return r.slice(0, e)
            }
            ,
            t.numAdd = function() {
                for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
                    t[r] = arguments[r];
                return t.reduce((function(e, t) {
                        return f.Decimal.add(e, Number(t)).toNumber()
                    }
                ), 0)
            }
            ,
            t.numMultiply = function() {
                for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
                    t[r] = arguments[r];
                return t.reduce((function(e, t) {
                        var r = Number(t);
                        return f.Decimal.mul(e, isNaN(r) ? 1 : r).toNumber()
                    }
                ), 1)
            }
            ,
            t.toNumberOrBoolean = function e(t) {
                if ("object" === (0,
                    d.default)(t) && null !== t)
                    if ((0,
                        c.default)(t))
                        for (var i = 0; i < t.length; i++)
                            t[i] = e(t[i]);
                    else
                        for (var r in t)
                            t.hasOwnProperty(r) && (t[r] = e(t[r]));
                else if ("string" == typeof t)
                    switch (!0) {
                        case "true" === t:
                            t = !0;
                            break;
                        case "false" === t:
                            t = !1;
                            break;
                        default:
                            var n = Number(t);
                            window.isNaN(n) || (t = n)
                    }
                return t
            }
        ;
        var c = o(r(69))
            , l = o(r(41))
            , d = o(r(27))
            , f = r(48)
    },
    37: function(e, t, r) {
        "use strict";
        r(0)(t, "__esModule", {
            value: !0
        }),
            t.ABANDONED = void 0;
        t.ABANDONED = "abandoned"
    },
    396: function(e, t, r) {
        "use strict";
        r(0)(t, "__esModule", {
            value: !0
        }),
            t.getLanguage = t.changeLanguage = void 0;
        var n = r(109)
            , o = (0,
            r(82).getInstance)("");
        t.changeLanguage = function(data) {
            data = data || {};
            return o.post("/v1/user/security/changeLanguage", data)
        }
            ,
            t.getLanguage = (0,
                n.cacheApiFunc)((function() {
                    return o.get("/v1/user/security/getLanguageType")
                }
            ))
    },
    406: function(e, t, r) {
        "use strict";
        var n = r(27)
            , o = r(34)
            , c = r(0)
            , l = r(9)
            , d = r(2)(r(4))
            , f = r(82)
            , v = r(8)
            , h = function(e, t) {
            if (!t && e && e.__esModule)
                return e;
            if (null === e || "object" != n(e) && "function" != typeof e)
                return {
                    default: e
                };
            var r = y(t);
            if (r && r.has(e))
                return r.get(e);
            var o = {
                __proto__: null
            }
                , a = c && l;
            for (var u in e)
                if ("default" !== u && {}.hasOwnProperty.call(e, u)) {
                    var i = a ? l(e, u) : null;
                    i && (i.get || i.set) ? c(o, u, i) : o[u] = e[u]
                }
            return o.default = e,
            r && r.set(e, o),
                o
        }(r(45))
            , m = r(12);
        function y(e) {
            if ("function" != typeof o)
                return null;
            var t = new o
                , r = new o;
            return (y = function(e) {
                    return e ? r : t
                }
            )(e)
        }
        var _ = (0,
            f.getInstance)("");
        function w() {
            var e, t, r, n, o;
            if (v.isClient && (e = h.default.get(h.TokenKey.REFRESH_TOKEN),
                t = h.default.get(h.TokenKey.CC_TOKEN),
                r = h.default.get(h.TokenKey.R_TOKEN),
                n = h.default.get(h.TokenKey.CC_TOKEN_EXPIRE),
                o = h.default.get(h.TokenKey.REFRESH_TOKEN_EXPIRE)),
            e && t && r) {
                var c = (new Date).getTime();
                if (Number(c) > Number(o || 0))
                    d.default.prototype.$logout();
                else if (Number(c) > Number(n || 0))
                    d.default.prototype.$logout();
                else if (n && Number(n) - Number(c) < 216e5)
                    try {
                        var l, f, y = (0,
                            m.getLanguageCodeByPath)(null !== (l = null === (f = window) || void 0 === f || null === (f = f.location) || void 0 === f ? void 0 : f.pathname) && void 0 !== l ? l : "");
                        _.post("/v1/user/login/refresh_token", {
                            headers: {
                                refreshToken: e,
                                languageType: y
                            }
                        }).then((function(e) {
                                "00000" === e.code && e.data ? v.isClient && (e.data.accessToken && h.default.set(h.TokenKey.CC_TOKEN, e.data.accessToken),
                                e.data.accessTokenExpire && h.default.set(h.TokenKey.CC_TOKEN_EXPIRE, e.data.accessTokenExpire),
                                e.data.refreshToken && h.default.set(h.TokenKey.REFRESH_TOKEN, e.data.refreshToken),
                                e.data.refreshTokenExpire && h.default.set(h.TokenKey.REFRESH_TOKEN_EXPIRE, e.data.refreshTokenExpire)) : d.default.prototype.$logout()
                            }
                        ))
                    } catch (e) {
                        d.default.prototype.$logout()
                    }
            } else
                d.default.prototype.$logout()
        }
        d.default.prototype.$startAuthToken = function(e) {
            var t = d.default.prototype.$authTokenInterval;
            t && clearInterval(t),
                setTimeout((function(e) {
                        return w()
                    }
                )),
                t = setInterval((function(e) {
                        w()
                    }
                ), 3e5),
                d.default.prototype.$authTokenInterval = t
        }
            ,
            d.default.prototype.$endAuthToken = function(e) {
                var t = d.default.prototype.$authTokenInterval;
                t && clearInterval(t)
            }
    },
    407: function(e, t, r) {
        "use strict";
        var n = r(0)
            , o = r(2);
        n(t, "__esModule", {
            value: !0
        }),
            t.default = void 0;
        var c = o(r(1169))
            , l = o(r(4));
        t.default = function(e) {
            var t = e.store;
            l.default.prototype.$detectSpeed = new c.default(t)
        }
    },
    408: function(e, t, r) {
        "use strict";
        var n = r(2);
        n(r(384));
        r(308);
        var o = n(r(385))
            , c = (n(r(703)),
            n(r(704)))
            , l = (n(r(1190)),
            n(r(1191)))
            , d = (n(r(1192)),
            n(r(460)))
            , f = (n(r(1194)),
            n(r(1195)))
            , v = (n(r(1197)),
            n(r(1198)))
            , h = (n(r(1199)),
            n(r(1200)))
            , m = (n(r(1201)),
            n(r(1202)))
            , y = (n(r(1210)),
            n(r(1211)))
            , _ = (n(r(1212)),
            n(r(591)))
            , w = (n(r(1213)),
            n(r(1214)))
            , C = (n(r(1215)),
            n(r(594)))
            , S = (n(r(1216)),
            n(r(590)))
            , k = (n(r(1217)),
            n(r(1218)))
            , T = (n(r(1219)),
            n(r(1220)))
            , L = (n(r(1221)),
            n(r(595)))
            , E = (n(r(1222)),
            n(r(113)))
            , P = (n(r(1223)),
            n(r(1224)))
            , A = (n(r(1228)),
            n(r(1229)))
            , O = (n(r(1230)),
            n(r(1231)))
            , N = (n(r(1232)),
            n(r(1233)))
            , x = (n(r(1234)),
            n(r(1235)))
            , R = (n(r(1237)),
            n(r(1238)))
            , I = (n(r(1239)),
            n(r(1240)))
            , M = (n(r(1243)),
            n(r(1244)))
            , D = (n(r(1245)),
            n(r(239)))
            , B = (n(r(1246)),
            n(r(1247)))
            , U = (n(r(1249)),
            n(r(1250)))
            , F = (n(r(1251)),
            n(r(1252)))
            , j = (n(r(1253)),
            n(r(238)))
            , H = (n(r(1254)),
            n(r(1255)))
            , K = n(r(4))
            , W = n(r(1256))
            , z = n(r(1258));
        K.default.use(H.default),
            K.default.use(j.default),
            K.default.use(F.default),
            K.default.use(U.default),
            K.default.use(B.default),
            K.default.use(D.default),
            K.default.use(M.default),
            K.default.use(I.default),
            K.default.use(R.default),
            K.default.use(x.default),
            K.default.use(N.default),
            K.default.use(O.default),
            K.default.use(A.default),
            K.default.use(P.default),
            K.default.use(E.default),
            K.default.use(L.default),
            K.default.use(T.default),
            K.default.use(k.default),
            K.default.use(S.default),
            K.default.use(C.default),
            K.default.use(w.default),
            K.default.use(_.default),
            K.default.use(y.default),
            K.default.use(m.default),
            K.default.use(h.default),
            K.default.use(v.default),
            K.default.use(f.default),
            K.default.use(d.default),
            K.default.use(l.default),
            K.default.use(z.default),
            K.default.use(c.default.directive),
            K.default.directive("clickoutside", W.default);
        var $ = o.default
            , G = $.alert
            , V = $.confirm
            , Q = $.prompt;
        K.default.prototype.$msgbox = $,
            K.default.prototype.$alert = G,
            K.default.prototype.$confirm = V,
            K.default.prototype.$prompt = Q
    },
    409: function(e, t, r) {
        "use strict";
        var n = r(2)
            , o = n(r(11))
            , c = n(r(4))
            , l = n(r(1259));
        (0,
            o.default)(l.default).forEach((function(e) {
                c.default.filter(e, l.default[e])
            }
        ))
    },
    410: function(e, t, r) {
        "use strict";
        r(0)(t, "__esModule", {
            value: !0
        }),
            t.default = void 0;
        t.default = function(e) {
            var t = e.app.router;
            e.store;
            t.afterEach((function(e, t) {
                    try {
                        gtag("event", "page_view", {
                            send_to: "G-H684FDKJ2X",
                            to: e.fullPath,
                            from: t.path
                        })
                    } catch (e) {}
                }
            ))
        }
    },
    411: function(e, t, r) {
        "use strict";
        var n = r(2)
            , o = n(r(4))
            , c = n(r(649))
            , l = n(r(708))
            , d = n(r(98))
            , f = n(r(1266))
            , v = n(r(1271))
            , h = r(26)
            , m = n(r(1273));
        r(1274),
            o.default.use(f.default),
            o.default.component("v-errtip", l.default),
            o.default.component("no-data", c.default),
            o.default.use(m.default),
            o.default.use(v.default),
            window.BT = {
                util: {
                    info: function(e, title) {
                        (0,
                            d.default)({
                            type: "info",
                            message: e
                        })
                    },
                    success: function(e, title) {
                        (0,
                            d.default)({
                            type: "success",
                            message: e
                        })
                    },
                    error: function(e, title) {
                        (0,
                            d.default)({
                            type: "error",
                            message: e
                        })
                    },
                    warning: function(e, title) {
                        (0,
                            d.default)({
                            type: "warning",
                            message: e
                        })
                    },
                    openTab: function(e) {
                        if (e) {
                            var t = window.open();
                            t.opener = null,
                                t.location = e,
                                t.target = "_blank"
                        }
                    },
                    getNewContractRedictPath: function(path) {
                        return path.indexOf("/futures/demo-trading/") > -1 ? "futures/demo-trading/" : "futures/"
                    },
                    trim: function(e) {
                        return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "")
                    }
                },
                isMobileDevices: function() {
                    return navigator.userAgent.toLowerCase().indexOf(",,android,iphone,symbianos,windows phone,ipad,ipod") > -1 || (window.onresize = function() {
                        if (window.innerWidth <= 750)
                            return !0
                    }
                        ,
                        !1)
                }
            },
            window.hideGlobalLoading = h.hideGlobalLoading
    },
    429: function(e, t, r) {
        "use strict";
        var n = r(2)(r(4));
        r(8);
        n.default.mixin({
            methods: {
                downloadJumpDl: function(e) {
                    var t, r = this.$i18n.locale;
                    if (t = location.origin + "/" + ("en" === r ? "" : r + "/") + "download",
                    "download" == e)
                        return t;
                    window.open(t)
                },
                go2AppStore: function() {
                    setTimeout((function() {
                            window.open("https://apps.apple.com/app/weex-buy-bitcoin-crypto/id1609350789", "_blank")
                        }
                    ), 100)
                },
                go2GooglePlay: function() {
                    setTimeout((function() {
                            window.open("https://play.google.com/store/apps/details?id=com.wake.weexprd", "_blank")
                        }
                    ), 100)
                }
            },
            mounted: function() {}
        })
    },
    430: function(e, t, r) {
        "use strict";
        var n = r(2)
            , o = n(r(14))
            , c = n(r(93))
            , l = n(r(15))
            , d = n(r(4))
            , f = n(r(650))
            , v = r(12)
            , h = r(62)
            , m = n(r(31));
        d.default.mixin({
            methods: {
                extractPathSegment: function(e) {
                    var t = m.default.map((function(e) {
                            return "/".concat(e.language)
                        }
                    ))
                        , r = e.split("?")[0];
                    return t.forEach((function(e) {
                            r.startsWith(e) && (r = r.replace(e, ""))
                        }
                    )),
                        r.replace(/^\/|\/$/g, "")
                },
                getSeoTdk: function() {
                    var e = this;
                    return (0,
                        l.default)(o.default.mark((function t() {
                            var r, n, c;
                            return o.default.wrap((function(t) {
                                    for (; ; )
                                        switch (t.prev = t.next) {
                                            case 0:
                                                return (r = (r = e.extractPathSegment(e.$route.path)).split("/").join("-").toLowerCase()) || (r = "home"),
                                                (n = h.specialTdkPageMap[r]) && (r = n),
                                                    t.prev = 5,
                                                    t.next = 8,
                                                    f.default.getPages(r, e.$i18n.locale);
                                            case 8:
                                                if (!(c = t.sent).data || !c.data.attributes) {
                                                    t.next = 11;
                                                    break
                                                }
                                                return t.abrupt("return", c.data.attributes);
                                            case 11:
                                                t.next = 15;
                                                break;
                                            case 13:
                                                t.prev = 13,
                                                    t.t0 = t.catch(5);
                                            case 15:
                                                return t.abrupt("return", {});
                                            case 16:
                                            case "end":
                                                return t.stop()
                                        }
                                }
                            ), t, null, [[5, 13]])
                        }
                    )))()
                },
                getMetaImage: function(e) {
                    return /^(https?:\/\/)[^\s/$.?#].[^\s]*$/i.test(e) ? e : "".concat("https://webapi.weex.com").concat(e)
                },
                getHeadInfo: function(e) {
                    var t, r, n, o = e.seo || {}, l = this.$route.path, d = this.$i18n.locale, f = l.replace("/" + d, ""), h = "https://www.weex.com", y = e.title ? e.title : this.$i18n.t("common.title"), _ = o.keywords ? o.keywords : this.$i18n.t("common.keywords"), w = o.metaTitle ? o.metaTitle : y || this.$i18n.t("common.title"), C = o.metaDescription ? o.metaDescription : this.$i18n.t("common.description"), S = (null === (t = m.default.find((function(e) {
                            return e.language === d
                        }
                    ))) || void 0 === t ? void 0 : t.cmsLocale) || d, k = o.canonicalURL ? o.canonicalURL : h + l, T = null !== (r = null === (n = o.metaImage) || void 0 === n || null === (n = n.data) || void 0 === n || null === (n = n.attributes) || void 0 === n ? void 0 : n.url) && void 0 !== r ? r : "https://media.weex.com/img/open_graph.png", L = this.getMetaImage(T), E = m.default.filter((function(e) {
                            return "en" != e.language
                        }
                    )).map((function(e) {
                            return {
                                rel: "alternate",
                                href: h + "/" + e.language + f,
                                hreflang: e.cmsLocale
                            }
                        }
                    )), P = {
                        title: y,
                        htmlAttrs: {
                            lang: S,
                            class: d,
                            dir: (0,
                                v.getDirValue)(this.$route.path)
                        },
                        bodyAttrs: {
                            class: d
                        },
                        link: [{
                            rel: "canonical",
                            href: k
                        }, {
                            rel: "alternate",
                            href: h + f,
                            hreflang: "en"
                        }, {
                            rel: "alternate",
                            href: h + f,
                            hreflang: "x-default"
                        }].concat((0,
                            c.default)(E)),
                        meta: [{
                            hid: "description",
                            name: "description",
                            content: C
                        }, {
                            hid: "keywords",
                            name: "keywords",
                            content: _
                        }, {
                            hid: "twitter:card",
                            name: "twitter:card",
                            content: "summary_large_image"
                        }, {
                            hid: "og:title",
                            property: "og:title",
                            content: w
                        }, {
                            hid: "og:type",
                            property: "og:type",
                            content: "website"
                        }, {
                            hid: "og:description",
                            property: "og:description",
                            content: C
                        }, {
                            hid: "og:image",
                            property: "og:image",
                            content: L
                        }, {
                            hid: "og:image:alt",
                            property: "og:image:alt",
                            content: "WEEX"
                        }, {
                            hid: "og:site_name",
                            property: "og:site_name",
                            content: "WEEX"
                        }, {
                            hid: "og:url",
                            property: "og:url",
                            content: k
                        }, {
                            hid: "twitter:title",
                            name: "twitter:title",
                            content: w
                        }, {
                            hid: "twitter:description",
                            name: "twitter:description",
                            content: C
                        }, {
                            hid: "twitter:image",
                            property: "og:image",
                            content: L
                        }, {
                            hid: "twitter:site",
                            property: "twitter:site",
                            content: "@WEEX_Official"
                        }, {
                            hid: "twitter:url",
                            name: "twitter:url",
                            content: k
                        }, {
                            hid: "twitter:card",
                            name: "twitter:card",
                            content: "summary_large_image"
                        }]
                    };
                    return e.script && (P.script = e.script),
                        P
                }
            },
            mounted: function() {}
        })
    },
    431: function(e, t, r) {
        "use strict";
        var n = r(2)
            , o = n(r(298))
            , c = (n(r(41)),
            n(r(27)));
        !function(e) {
            if (void 0 === e)
                throw new Error("Geetest requires browser environment");
            var t = e.document
                , r = e.Math
                , head = t.getElementsByTagName("head")[0];
            function n(e) {
                this._obj = e
            }
            n.prototype = {
                _each: function(e) {
                    var t = this._obj;
                    for (var r in t)
                        t.hasOwnProperty(r) && e(r, t[r]);
                    return this
                },
                _extend: function(e) {
                    var t = this;
                    new n(e)._each((function(e, r) {
                            t._obj[e] = r
                        }
                    ))
                }
            };
            function l(e) {
                var t = this;
                new n(e)._each((function(e, r) {
                        t[e] = r
                    }
                ))
            }
            l.prototype = {
                apiServers: ["gcaptcha4.geetest.com", "gcaptcha4.geevisit.com", "gcaptcha4.gsensebot.com"],
                staticServers: ["static.geetest.com", "static.geevisit.com", "dn-staticdown.qbox.me"],
                protocol: "http://",
                typePath: "/load",
                fallback_config: {
                    bypass: {
                        staticServers: ["static.geetest.com", "static.geevisit.com", "dn-staticdown.qbox.me"],
                        type: "bypass",
                        bypass: "/v4/bypass.js"
                    }
                },
                _get_fallback_config: function() {
                    var e = this;
                    return d(e.type) ? e.fallback_config[e.type] : e.fallback_config.bypass
                },
                _extend: function(e) {
                    var t = this;
                    new n(e)._each((function(e, r) {
                            t[e] = r
                        }
                    ))
                }
            };
            var d = function(e) {
                return "string" == typeof e
            }
                , f = function(e) {
                return "function" == typeof e
            }
                , v = /Mobi/i.test(navigator.userAgent)
                , h = {}
                , m = {}
                , y = Object.prototype.toString;
            function _(input, e) {
                if ((t = input) !== Object(t) || function(e) {
                    return "[object Date]" == y.call(e)
                }(input) || function(e) {
                    return "[object RegExp]" == y.call(e)
                }(input) || function(e) {
                    return "[object Boolean]" == y.call(e)
                }(input) || function(e) {
                    return "function" == typeof e
                }(input))
                    return e ? function(input) {
                        return input.replace(/(\S)(_([a-zA-Z]))/g, (function(e, t, r, n) {
                                return t + n.toUpperCase() || ""
                            }
                        ))
                    }(input) : input;
                var t;
                if (function(e) {
                    return "[object Array]" == y.call(e)
                }(input))
                    for (var r = [], i = 0; i < input.length; i++)
                        r.push(_(input[i]));
                else {
                    r = {};
                    for (var n in input)
                        input.hasOwnProperty(n) && (r[_(n, !0)] = _(input[n]))
                }
                return r
            }
            var w = function(e, t, path, r) {
                t = function(e) {
                    return e.replace(/^https?:\/\/|\/$/g, "")
                }(t);
                var o = function(path) {
                    return 0 !== (path = path.replace(/\/+/g, "/")).indexOf("/") && (path = "/" + path),
                        path
                }(path) + function(e) {
                    if (!e)
                        return "";
                    var q = "?";
                    return new n(e)._each((function(e, t) {
                            (d(t) || function(e) {
                                return "number" == typeof e
                            }(t) || function(e) {
                                return "boolean" == typeof e
                            }(t)) && (q = q + encodeURIComponent(e) + "=" + encodeURIComponent(t) + "&")
                        }
                    )),
                    "?" === q && (q = ""),
                        q.replace(/&$/, "")
                }(r);
                return t && (o = e + t + o),
                    o
            }
                , C = function(n, c, l, path, d, f, v) {
                var h = function(m) {
                    if (v) {
                        var y = "geetest_" + ((0,
                            o.default)(1e4 * r.random()) + (new Date).valueOf());
                        e[y] = function(e, t) {
                            if ("function" == typeof e) {
                                var r = Array.prototype.slice.call(arguments, 2);
                                return Function.prototype.bind ? e.bind(t, r) : function() {
                                    var n = Array.prototype.slice.call(arguments);
                                    return e.apply(t, r.concat(n))
                                }
                            }
                        }(v, null, y),
                            d.callback = y
                    }
                    !function(e, r, n) {
                        var script = t.createElement("script");
                        script.charset = "UTF-8",
                            script.async = !0,
                        /static\.geetest\.com/g.test(e) && (script.crossOrigin = "anonymous"),
                            script.onerror = function() {
                                r(!0),
                                    o = !0
                            }
                        ;
                        var o = !1;
                        script.onload = script.onreadystatechange = function() {
                            o || script.readyState && "loaded" !== script.readyState && "complete" !== script.readyState || (o = !0,
                                setTimeout((function() {
                                        r(!1)
                                    }
                                ), 0))
                        }
                            ,
                            script.src = e,
                            head.appendChild(script),
                            setTimeout((function() {
                                    o || (script.onerror = script.onload = null,
                                    script.remove && script.remove(),
                                        r(!0))
                                }
                            ), n || 1e4)
                    }(w(c, l[m], path, d), (function(t) {
                            if (t) {
                                if (y)
                                    try {
                                        e[y] = function() {
                                            e[y] = null
                                        }
                                    } catch (e) {}
                                m >= l.length - 1 ? f(!0) : h(m + 1)
                            } else
                                f(!1)
                        }
                    ), n.timeout)
                };
                h(0)
            }
                , S = function(e, t, r) {
                if ("function" != typeof t.onError)
                    throw new Error({
                        networkError: "网络错误",
                        gtTypeError: "gt字段不是字符串类型"
                    }[e]);
                t.onError({
                    desc: r.desc,
                    msg: r.msg,
                    code: r.code
                })
            };
            (e.Geetest || t.getElementById("gt_lib")) && (m.slide = "loaded");
            e.initGeetest4 = function(o, d) {
                var y, w = new l(o);
                o.https ? w.protocol = "https://" : o.protocol || (w.protocol = e.location.protocol + "//"),
                    y = o.getType,
                "object" === (0,
                    c.default)(y) && null !== y && w._extend(o.getType),
                    function(t, path, n, o) {
                        C(n, n.protocol, t, path, {
                            captcha_id: n.captchaId,
                            challenge: n.challenge || "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (function(e) {
                                    var t = 16 * r.random() | 0;
                                    return ("x" === e ? t : 3 & t | 8).toString(16)
                                }
                            )),
                            client_type: v ? "h5" : "web",
                            risk_type: n.riskType,
                            user_info: n.userInfo,
                            call_type: n.callType,
                            lang: n.language ? n.language : "Netscape" === navigator.appName ? navigator.language.toLowerCase() : navigator.userLanguage.toLowerCase()
                        }, (function(e) {
                                e && "function" == typeof n.offlineCb ? n.offlineCb() : e && o(n._get_fallback_config())
                            }
                        ), (function(t, data) {
                                "success" == data.status ? o(data.data) : (data.status,
                                    o(data)),
                                    e[t] = void 0;
                                try {
                                    delete e[t]
                                } catch (e) {}
                            }
                        ))
                    }(w.apiServers, w.typePath, w, (function(r) {
                            if ("error" === (r = _(r)).status)
                                return S("networkError", w, r);
                            var o = r.type;
                            w.debug && new n(r)._extend(w.debug);
                            var c = function() {
                                w._extend(r),
                                    d(new e.Geetest4(w))
                            };
                            h[o] = h[o] || [];
                            var s = m[o] || "init";
                            if ("init" === s)
                                m[o] = "loading",
                                    h[o].push(c),
                                r.gctPath && C(w, w.protocol, Object.hasOwnProperty.call(w, "staticServers") ? w.staticServers : r.staticServers || w.staticServers, r.gctPath, null, (function(e) {
                                        e && S("networkError", w, {
                                            code: "60205",
                                            msg: "Network failure",
                                            desc: {
                                                detail: "gct resource load timeout"
                                            }
                                        })
                                    }
                                )),
                                    C(w, w.protocol, Object.hasOwnProperty.call(w, "staticServers") ? w.staticServers : r.staticServers || w.staticServers, r.bypass || r.staticPath + r.js, null, (function(e) {
                                            if (e)
                                                m[o] = "fail",
                                                    S("networkError", w, {
                                                        code: "60204",
                                                        msg: "Network failure",
                                                        desc: {
                                                            detail: "js resource load timeout"
                                                        }
                                                    });
                                            else {
                                                m[o] = "loaded";
                                                for (var t = h[o], i = 0, r = t.length; i < r; i += 1) {
                                                    var n = t[i];
                                                    f(n) && n()
                                                }
                                                h[o] = []
                                            }
                                        }
                                    ));
                            else {
                                if ("loaded" === s)
                                    return function(e) {
                                        var r = !1
                                            , n = {
                                            js: "script",
                                            css: "link"
                                        }[e.split(".").pop()];
                                        if (void 0 !== n) {
                                            var o = t.getElementsByTagName(n);
                                            for (var i in o)
                                                (o[i].href && o[i].href.toString().indexOf(e) > 0 || o[i].src && o[i].src.toString().indexOf(e) > 0) && (r = !0)
                                        }
                                        return r
                                    }(r.gctPath) || C(w, w.protocol, Object.hasOwnProperty.call(w, "staticServers") ? w.staticServers : r.staticServers || w.staticServers, r.gctPath, null, (function(e) {
                                            e && S("networkError", w, {
                                                code: "60205",
                                                msg: "Network failure",
                                                desc: {
                                                    detail: "gct resource load timeout"
                                                }
                                            })
                                        }
                                    )),
                                        c();
                                "fail" === s ? S("networkError", w, {
                                    code: "60204",
                                    msg: "Network failure",
                                    desc: {
                                        detail: "js resource load timeout"
                                    }
                                }) : "loading" === s && h[o].push(c)
                            }
                        }
                    ))
            }
        }(window)
    },
    432: function(e, t, r) {
        "use strict";
        var n = r(2)
            , o = n(r(98));
        n(r(4)).default.prototype.$hmm = o.default
    },
    433: function(e, t, r) {
        "use strict";
        var n = r(0)
            , o = r(2);
        n(t, "__esModule", {
            value: !0
        }),
            t.default = void 0;
        var c = o(r(14))
            , l = o(r(15))
            , d = o(r(4))
            , f = o(r(296))
            , v = o(r(189))
            , h = r(12);
        d.default.use(f.default);
        t.default = function(e) {
            var t = e.app;
            e.store;
            v.default.i18n((function(e, r) {
                    return t.i18n.t(e, r)
                }
            )),
                h.enabledLanguageMapping.forEach((function(e) {
                        setTimeout((0,
                            l.default)(c.default.mark((function n() {
                                var o;
                                return c.default.wrap((function(n) {
                                        for (; ; )
                                            switch (n.prev = n.next) {
                                                case 0:
                                                    return n.next = 2,
                                                        r(1302)("./".concat(e.file));
                                                case 2:
                                                    o = n.sent,
                                                        t.i18n.mergeLocaleMessage(e.language, o.default || o);
                                                case 4:
                                                case "end":
                                                    return n.stop()
                                            }
                                    }
                                ), n)
                            }
                        ))), e.language === t.i18n.locale ? 0 : 3e3)
                    }
                )),
                t.i18n.path = function(link) {
                    if ("en" === t.i18n.locale)
                        return "/".concat(link);
                    var e = "/".concat(t.i18n.locale, "/").concat(link);
                    return e.endsWith("/") && (e = e.slice(0, -1)),
                        e
                }
        }
    },
    434: function(e, t, r) {
        "use strict";
        var n = r(27)
            , o = r(34)
            , c = r(0)
            , l = r(9)
            , d = r(2)
            , f = d(r(1303))
            , v = d(r(4))
            , h = r(134)
            , m = r(196)
            , y = r(8)
            , _ = d(r(1304))
            , w = d(r(1305))
            , C = L(r(342))
            , S = L(r(45))
            , k = r(20);
        function T(e) {
            if ("function" != typeof o)
                return null;
            var t = new o
                , r = new o;
            return (T = function(e) {
                    return e ? r : t
                }
            )(e)
        }
        function L(e, t) {
            if (!t && e && e.__esModule)
                return e;
            if (null === e || "object" != n(e) && "function" != typeof e)
                return {
                    default: e
                };
            var r = T(t);
            if (r && r.has(e))
                return r.get(e);
            var o = {
                __proto__: null
            }
                , a = c && l;
            for (var u in e)
                if ("default" !== u && {}.hasOwnProperty.call(e, u)) {
                    var i = a ? l(e, u) : null;
                    i && (i.get || i.set) ? c(o, u, i) : o[u] = e[u]
                }
            return o.default = e,
            r && r.set(e, o),
                o
        }
        var E = y.isClient ? C.parse(window.location.search.slice(1)) : {}
            , P = !!y.isClient && "1" === E.log;
        f.default.init({
            server_url: "https://app.sensor.weex.tech:8106/sa?project=production",
            is_track_single_page: !1,
            use_client_time: !0,
            batch_send: !0,
            show_log: P,
            heatmap: {
                clickmap: "default",
                scroll_notice_map: "default"
            }
        });
        var A = y.isClient && S.default.get(S.TokenKey.USER_ID) || ""
            , O = y.isClient ? k.BaseLocal.TERMINAL_CODE : "";
        !O && y.isClient && (0,
            h.getFinger)((function(e) {
                O = e
            }
        ));
        var N = y.isClient && S.default.get(S.TokenKey.R_TOKEN) || ""
            , x = m.DateTime.now().toFormat("yyyy/MM/dd HH:mm:ss.SSS")
            , R = m.DateTime.utc().toFormat("yyyy/MM/dd HH:mm:ss.SSS")
            , I = y.isClient && window.$nuxt ? window.$nuxt.$i18n.locale : "en";
        f.default.registerPage({
            userId: A,
            deviceId: O,
            userToken: N,
            localTime: x,
            utcTime: R,
            language: I
        }),
            f.default.use(w.default, {
                heartbeat_interval_time: 5,
                max_duration: 432e3,
                isCollectUrl: function(e) {
                    return !0
                }
            }),
            f.default.use(_.default, {
                max_duration: 300
            }),
            f.default.quick("autoTrack"),
            v.default.prototype.$sensors = f.default
    },
    435: function(e, t, r) {
        "use strict";
        var n = r(2)(r(4))
            , o = r(49)
            , c = r(8);
        c.isClient && (window.onerror = function(e) {
                c.isProduction,
                    (0,
                        o.ErrorLog)(e)
            }
        ),
            n.default.config.errorHandler = function(e) {
                c.isProduction,
                    (0,
                        o.ErrorLog)(e.message)
            }
    },
    436: function(e, t, r) {
        "use strict";
        var n = r(2)
            , o = n(r(4))
            , c = n(r(1306));
        o.default.component("VuePerfectScrollbar", c.default)
    },
    437: function(e, t, r) {
        "use strict";
        var n = r(2)(r(4))
            , o = r(1307);
        n.default.use(o)
    },
    438: function(e, t, r) {
        "use strict";
        var n = r(27)
            , o = r(34)
            , c = r(0)
            , l = r(9)
            , d = r(2)
            , f = d(r(6))
            , v = d(r(4))
            , h = r(26)
            , m = r(167)
            , y = function(e, t) {
            if (!t && e && e.__esModule)
                return e;
            if (null === e || "object" != n(e) && "function" != typeof e)
                return {
                    default: e
                };
            var r = w(t);
            if (r && r.has(e))
                return r.get(e);
            var o = {
                __proto__: null
            }
                , a = c && l;
            for (var u in e)
                if ("default" !== u && {}.hasOwnProperty.call(e, u)) {
                    var i = a ? l(e, u) : null;
                    i && (i.get || i.set) ? c(o, u, i) : o[u] = e[u]
                }
            return o.default = e,
            r && r.set(e, o),
                o
        }(r(45))
            , _ = r(20);
        function w(e) {
            if ("function" != typeof o)
                return null;
            var t = new o
                , r = new o;
            return (w = function(e) {
                    return e ? r : t
                }
            )(e)
        }
        v.default.prototype.$logout = function(e) {
            return new f.default((function(e, t) {
                    (0,
                        m.invokeClearCookie)().then((function(t) {
                            window.$nuxt.$store.commit("CLEAR_USER"),
                                window.$nuxt.$store.commit("SET_TRADER_NEW_TIPS", !1),
                                window.$nuxt.$store.commit("SET_MIX_TRADER_NEW_TIPS", !1),
                                window.$nuxt.$store.commit("newTrading/UPDATE_LOGIN_STATUS", !1),
                                window.$nuxt.$store.commit("newTrading/SET_CONTRACT_ENABLE_DISPLAY", {}),
                                (0,
                                    h.delLoginCookie)(),
                                _.UserLocal.USERID = void 0,
                                _.UserLocal.LAST_LOGIN_TIME = void 0,
                                y.default.remove(y.TokenKey.CC_TOKEN),
                                y.default.remove(y.TokenKey.R_TOKEN),
                                y.default.remove(y.TokenKey.CC_TOKEN_EXPIRE),
                                y.default.remove(y.TokenKey.REFRESH_TOKEN),
                                y.default.remove(y.TokenKey.REFRESH_TOKEN_EXPIRE),
                                (0,
                                    h.delCookie)("bt_rtoken"),
                                (0,
                                    h.delCookie)("bt_newsessionid"),
                                (0,
                                    h.delCookie)("bt_sessonid"),
                                e(t)
                        }
                    )).catch((function(e) {
                            return t(e)
                        }
                    ))
                }
            ))
        }
            ,
            v.default.prototype.$clearServerAuth = function(e) {
                return (0,
                    h.delLoginCookie)(),
                    new f.default((function(e, t) {
                            (0,
                                m.invokeClearCookie)().then((function(t) {
                                    window.$nuxt.$store.commit("CLEAR_USER"),
                                        window.$nuxt.$store.commit("SET_TRADER_NEW_TIPS", !1),
                                        window.$nuxt.$store.commit("SET_MIX_TRADER_NEW_TIPS", !1),
                                        window.$nuxt.$store.commit("newTrading/UPDATE_LOGIN_STATUS", !1),
                                        y.default.remove(y.TokenKey.R_TOKEN),
                                        e(t)
                                }
                            )).catch((function(e) {
                                    return t(e)
                                }
                            ))
                        }
                    ))
            }
    },
    439: function(e, t, r) {
        "use strict";
        var n = r(2)
            , o = n(r(4))
            , c = n(r(1309));
        o.default.use(c.default, {
            preLoad: 1.33,
            error: "",
            loading: "",
            attempt: 2,
            throttleWait: 500
        })
    },
    440: function(e, t, r) {
        "use strict";
        var n = r(11)
            , o = r(16)
            , c = r(9)
            , l = r(18)
            , d = r(17)
            , f = r(0)
            , v = r(2);
        f(t, "__esModule", {
            value: !0
        }),
            t.default = void 0;
        var h = v(r(304))
            , m = v(r(14))
            , y = v(r(7))
            , _ = v(r(15))
            , w = r(134)
            , C = r(58)
            , S = r(8)
            , k = r(45)
            , T = v(r(4))
            , L = r(46)
            , E = r(12)
            , P = r(20);
        function A(e, t) {
            var r = n(e);
            if (o) {
                var l = o(e);
                t && (l = l.filter((function(t) {
                        return c(e, t).enumerable
                    }
                ))),
                    r.push.apply(r, l)
            }
            return r
        }
        function O(e) {
            for (var t = 1; t < arguments.length; t++) {
                var r = null != arguments[t] ? arguments[t] : {};
                t % 2 ? A(Object(r), !0).forEach((function(t) {
                        (0,
                            y.default)(e, t, r[t])
                    }
                )) : l ? d(e, l(r)) : A(Object(r)).forEach((function(t) {
                        f(e, t, c(r, t))
                    }
                ))
            }
            return e
        }
        var N = new RegExp("^((".concat(L.locales.map((function(e) {
                return "\\/?".concat(e)
            }
        )).join("|"), ")?\\/?(").concat(L.TRADE_PAGE_PATH.join("|"), "))"),"i");
        t.default = function(e) {
            var t = e.app
                , r = t.router
                , n = (t.i18n,
                e.store);
            e.redirect;
            r.beforeEach((function(e, t, r) {
                    if (S.isClient && (0,
                        h.default)(k.TokenKey).forEach((function(e) {
                            return localStorage.removeItem(e)
                        }
                    )),
                        N.test(e.fullPath))
                        return S.isLocal ? void (window.location.href = "".concat(window.location.origin.replace("3000", "3001")).concat(e.fullPath)) : void (window.location.href = "".concat(window.location.origin).concat(e.fullPath));
                    var o = null
                        , c = e.query
                        , l = c.inviteCode
                        , d = c.languageType;
                    if (void 0 !== d) {
                        var f = n.state.locales.find((function(t) {
                                return e.fullPath.indexOf("/".concat(t)) > -1
                            }
                        ))
                            , v = function(e) {
                            return (0,
                                E.getLanguageKeyByLangCode)(e)
                        }(d);
                        f || "en" === v || (window.location.href = window.location.origin + "/" + v + e.fullPath)
                    }
                    l && l !== n.state.inviteCodeInfo[l] && (o = setTimeout((0,
                        _.default)(m.default.mark((function e() {
                            var t, data;
                            return m.default.wrap((function(e) {
                                    for (; ; )
                                        switch (e.prev = e.next) {
                                            case 0:
                                                return e.next = 2,
                                                    (0,
                                                        C.getLongUrl)(l);
                                            case 2:
                                                (t = e.sent) && t.data && (data = JSON.parse(t.data),
                                                    n.commit("SET_INVITE_CODE_INFO", O(O({}, data), {}, {
                                                        inviteCode: l
                                                    })));
                                            case 4:
                                            case "end":
                                                return e.stop()
                                        }
                                }
                            ), e)
                        }
                    ))), 500)),
                    S.isClient && P.BaseLocal.TERMINAL_CODE || (0,
                        w.getFinger)((function(e) {
                            S.isClient && (P.BaseLocal.TERMINAL_CODE = e)
                        }
                    ));
                    /^\/en/.test(e.fullPath) ? (o && clearTimeout(o),
                        r(e.fullPath.replace(/^\/en/, ""))) : (T.default.prototype.$authTokenInterval || T.default.prototype.$startAuthToken(),
                        r())
                }
            ))
        }
    },
    441: function(e, t, r) {
        "use strict";
        var n = r(2)
            , o = n(r(4))
            , c = r(1310)
            , l = n(r(1321))
            , d = n(r(1322));
        o.default.use(c.WebsocketProvider),
            o.default.use({
                install: function(e) {
                    e.prototype.$hero = d.default,
                        e.prototype.$publicWS = l.default
                }
            })
    },
    442: function(e, t, r) {
        "use strict";
        var n = r(537)
            , o = r(652);
        window.zESettings = {
            webWidget: {
                launcher: {
                    chatLabel: {
                        "en-US": "chat",
                        ko: "고객센터",
                        ja: "サービス",
                        vi: "chat",
                        ru: "Поддержка",
                        "*": "在线客服"
                    }
                },
                chat: {
                    title: {
                        "en-US": "chat",
                        ko: "온라인 고객지원",
                        ja: "ヘルプ",
                        vi: "Chat",
                        ru: "Поддержка",
                        "*": "在线客服"
                    },
                    concierge: {
                        title: {
                            "en-US": "Welcome to BG",
                            ko: "환영합니다 BG",
                            ja: "ようこそ  BG",
                            vi: "Chào mừng đến với BG",
                            ru: "Добро пожаловать в BG",
                            "*": "欢迎光临BG"
                        }
                    }
                }
            }
        },
            window.onload = function(e) {
                if (-1 == location.href.indexOf("trade") && -1 == location.href.indexOf("futures/mock-trading") && -1 == location.href.indexOf("act_new")) {
                    var t = "en";
                    location.pathname.includes("zh") && (t = "zh-CN"),
                        (0,
                            o.loadZendeskByLanguage)(t, (function() {
                                (0,
                                    n.editZendeskDom)()
                            }
                        ))
                }
            }
    },
    443: function(e, t, r) {
        "use strict";
        r(2)(r(4)).default.directive("ui-test", {
            bind: function(e, t, r) {
                var n, o = null === (n = r.context.$vnode.componentOptions.Ctor) || void 0 === n || null === (n = n.extendOptions) || void 0 === n ? void 0 : n.name;
                e.setAttribute("data-test-id", "".concat(o, "-").concat(t.value))
            }
        })
    },
    444: function(e, t, r) {
        "use strict";
        r(0)(t, "__esModule", {
            value: !0
        }),
            t.wxtUnlockList = t.submitContact = t.postSubscribePay = t.myTradingVolume = t.listActivityFeeConfig = t.getTaskUserKycRecord = t.getTaskReward = t.getTaskRequirements = t.getTaskNoLoginDetail = t.getTaskList = t.getTaskLeaderboard = t.getTaskDetail = t.getTaskCompletions = t.getTaskApplyStatus = t.getTaskApply = t.getTaskAllList = t.getRewardNum = t.getRewardList = t.getRecentRewards = t.getPublicLeaderboard = t.getMySubscribeInfo = t.getMyIntegralInfo = t.getLeaderboard = t.getFloatActivity = t.getFeeRate = t.getFeeConfigByUserId = t.contactSubmitted = void 0;
        var n = r(109)
            , o = (0,
            r(82).getInstance)("");
        t.listActivityFeeConfig = function(data) {
            return o.post("/v1/user/public/listActivityFeeConfig", data)
        }
            ,
            t.getFeeConfigByUserId = function(data) {
                return o.post("/v1/user/public/getFeeConfigByUserId", data)
            }
            ,
            t.getFeeRate = function(data) {
                return o.post("/v1/if/contract/getFeeRate", data)
            }
            ,
            t.getTaskRequirements = function(data) {
                return o.get("/v1/activity/beginnerTask/taskRequirements", data)
            }
            ,
            t.getTaskList = function(data) {
                return o.get("/v1/activity/list", data)
            }
            ,
            t.getTaskAllList = function(data) {
                return o.get("/v1/activity/allList", data)
            }
            ,
            t.getTaskDetail = function(data) {
                return o.get("/v1/activity/detail", data)
            }
            ,
            t.getMySubscribeInfo = function(data) {
                return o.get("/v1/activity/subscribe/mySubscribeInfo", data)
            }
            ,
            t.postSubscribePay = function(data) {
                return o.post("/v1/activity/subscribe/subscribePay", data)
            }
            ,
            t.getLeaderboard = function(data) {
                return o.get("/v1/activity/subscribe/leaderboard", data)
            }
            ,
            t.getPublicLeaderboard = function(data) {
                return o.get("/v1/activity/subscribe/public/leaderboard", data)
            }
            ,
            t.getMyIntegralInfo = function(data) {
                return o.get("/v1/activity/subscribe/myIntegralInfo", data)
            }
            ,
            t.getRewardList = function(data) {
                return o.get("/v1/activity/getRewardList", data)
            }
            ,
            t.getTaskNoLoginDetail = function(data) {
                return o.get("/v1/activity/noLoginDetail", data)
            }
            ,
            t.getRewardNum = function(data) {
                return o.get("/v1/activity/totalBonusSchedule", data)
            }
            ,
            t.getTaskApply = function(e) {
                var data = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
                return o.post("/v1/activity/apply?activityId=".concat(e), data)
            }
            ,
            t.getTaskApplyStatus = function(e) {
                var data = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
                return o.post("/v1/activity/applyStatus?activityId=".concat(e), data)
            }
            ,
            t.getTaskCompletions = function(e) {
                var data = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
                return o.post("/v1/activity/beginnerTask/taskCompletions?activityId=".concat(e), data)
            }
            ,
            t.getTaskLeaderboard = function(data) {
                return o.get("/v1/activity/tradingCompetition/leaderboard", data)
            }
            ,
            t.getTaskUserKycRecord = function(e, data) {
                return o.post("/v1/activity/beginnerTask/userKycRecord?activityId=".concat(e), data)
            }
            ,
            t.getTaskReward = function(data, e) {
                return o.post("/v1/activity/obtainReward?activityId=".concat(data.activityId, "&taskId=").concat(data.taskId), e)
            }
            ,
            t.getRecentRewards = function(data) {
                return o.get("/v1/activity/beginnerTask/recentRewards", data)
            }
            ,
            t.submitContact = function(e, data) {
                return o.post("/v1/activity/tradingCompetition/submitContact?activityId=".concat(e), data)
            }
            ,
            t.contactSubmitted = function(e) {
                return o.post("/v1/activity/tradingCompetition/contactSubmitted?activityId=".concat(e))
            }
            ,
            t.myTradingVolume = function(e) {
                return o.post("/v1/activity/tradingCompetition/myTradingVolume?activityId=".concat(e))
            }
            ,
            t.wxtUnlockList = function(data) {
                return o.get("/v1/spot/unLockList", data)
            }
            ,
            t.getFloatActivity = (0,
                n.cacheApiFunc)((function(data) {
                    return o.get("/v1/mix/public/getOnlineFloatingWindow", data)
                }
            ))
    },
    58: function(e, t, r) {
        "use strict";
        var n = r(0)
            , o = r(2);
        n(t, "__esModule", {
            value: !0
        }),
            t.withdrawRateList = t.verifyCodeSendPhone = t.verifyCodeSendNew = t.verifyCodeSendEmail = t.verifyCodeSend = t.validateConfigV2 = t.validateConfig = t.userSecuritySendMobile = t.userSecuritySendEmail = t.userSecurityPublicCheckLoginName = t.userPublicAreaList = t.usdtRate = t.uploadIdentityPicNotBase = t.traceSystemConfig = t.topBanner = t.systemAssetsStatus = t.syncSelfExchangeType = t.stopService = t.spotNewListing = t.setUserPreference = t.setDelegateFlag = t.sendMobileVerifyCode = t.sendEmailVerifyCode = t.readPushMsg = t.overseasSmsStatus = t.operationUserSelfOptional = t.openContract = t.mcpContractRateList = t.leftAndRightCoinList = t.indexUserSelectedList = t.indexQuote = t.indexHomeQuotation = t.getUserSelfList = t.getUserPreference = t.getTraceUserInfoNew = t.getSystemNotice = t.getSpotPlateList = t.getSpotKlineList = t.getShortUrl = t.getRegistrationSuccessDialog = t.getPushCount = t.getPopularActivity = t.getPopUpData = t.getPictureList = t.getNavigationBar = t.getMsgDetail = t.getMainBanner = t.getLongUrl = t.getIsAgent = t.getInvitationList = t.getImportNotice = t.getHotTicker = t.getDelegateFlag = t.getCurrentTime = t.getContractList = t.getContractActiveRank = t.getCoinSymbolListForHomePage = t.getCoinList = t.getChannelCodeFromVipCode = t.getBigFamilyQrImg = t.getAreaCodeList = t.getAllQuotationEvents = t.getAgentStatistics = t.feeRateList = t.deleteUserSelf = t.contractRateList = t.communityConfig = t.coinPlaceList = t.coinLink = t.cloudValidateSwitch = t.checkServiceSupport = t.batchOperationUserSelfOptional = t.areaCodeList = t.allExchange = t.addUserSelf = void 0;
        var c = o(r(6))
            , l = o(r(41))
            , d = r(109)
            , f = (0,
            r(82).getInstance)("");
        t.communityConfig = function(data) {
            return f.get("/v1/user/official/getCommunityUrl", data)
        }
            ,
            t.topBanner = function(data) {
                return f.post("/v1/if/index/banner", data)
            }
            ,
            t.getMainBanner = (0,
                d.cacheApiFunc)((function(data) {
                    return f.post("/v1/mix/index/mainBanner", data)
                }
            )),
            t.getNavigationBar = (0,
                d.cacheApiFunc)((function(data) {
                    return f.post("/v1/mix/index/navigationBar", data)
                }
            )),
            t.getPopUpData = (0,
                d.cacheApiFunc)((function(data) {
                    return f.post("/v1/user/public/getFloatingWindowConfig/3", data)
                }
            )),
            t.allExchange = function(data) {
                return f.post("/v1/if/v2/index/allExchange", data)
            }
            ,
            t.syncSelfExchangeType = function(data) {
                return f.post("/v1/if/base/syncSelfExchangeType", data)
            }
            ,
            t.feeRateList = function(data) {
                return f.post("/v1/if/base/feeRateList", data)
            }
            ,
            t.validateConfig = function() {
                return f.post("/v1/mix/public/config")
            }
            ,
            t.validateConfigV2 = function() {
                return f.post("/v1/mix/public/configV2")
            }
            ,
            t.contractRateList = function(data) {
                return f.post("/v1/mix/public/contractRateConfig", data)
            }
            ,
            t.mcpContractRateList = function(data) {
                return f.post("/v1/mix/public/professionalContractRateConfig", data)
            }
            ,
            t.getCoinList = function(data) {
                return f.post("/v1/if/base/coinList", data)
            }
            ,
            t.leftAndRightCoinList = function(data) {
                return f.post("/v1/if/base/coinList", data)
            }
            ,
            t.areaCodeList = function(data) {
                return f.post("/v1/if/base/areaCodeList", data)
            }
            ,
            t.getAreaCodeList = function(data) {
                return f.get("/v1/msg/areaCode/app/v2/list", data)
            }
            ,
            t.checkServiceSupport = function(data) {
                return f.post("/v1/user/public/getIpNationalityLimit", data)
            }
            ,
            t.coinLink = function(data) {
                return f.get("/v1/if/base/v2/getCoinLink", data)
            }
            ,
            t.stopService = function(data) {
                return f.post("/v1/if/system/stopService", data)
            }
            ,
            t.getContractList = function(data) {
                return location.href.includes("rc") && (data = {
                    currentEnv: "beta"
                }),
                    f.get("/v1/if/base/v2/contractList", data)
            }
            ,
            t.getAllQuotationEvents = (0,
                d.cacheApiFunc)((function() {
                    return f.get("/v1/msg/outer/allQuotationEvents")
                }
            )),
            t.openContract = function(data) {
                return f.post("/v1/if/base/openContract", data)
            }
            ,
            t.getBigFamilyQrImg = function(data) {
                return f.post("/v1/if/base/getBigFamilyQrImg", data)
            }
            ,
            t.userSecuritySendMobile = function(data) {
                return f.post("/v1/user/security/send-mobile", data)
            }
            ,
            t.userSecuritySendEmail = function(data) {
                return f.post("/v1/user/security/send-email", data)
            }
            ,
            t.getChannelCodeFromVipCode = function(data) {
                return f.get("/v1/user/public/getChannelcodeFromVipcode", data)
            }
            ,
            t.userSecurityPublicCheckLoginName = function(data) {
                return f.post("/v1/user/public/check-login-name", data)
            }
            ,
            t.userPublicAreaList = function(data) {
                return f.post("/v1/user/public/areaList", data)
            }
            ,
            t.cloudValidateSwitch = function(data) {
                return f.post("/v1/mix/public/webCloudValidate", data)
            }
            ,
            t.withdrawRateList = function(data) {
                return f.post("/v1/mix/public/webWithdrawFee", data)
            }
            ,
            t.getTraceUserInfoNew = function(data) {
                return f.post("/v1/trace/user/getTraceUserInfo", data)
            }
            ,
            t.systemAssetsStatus = function(data) {
                return f.post("/v1/if/index/assetInfos", data)
            }
            ,
            t.traceSystemConfig = function(data) {
                return f.post("/v1/trace/public/globalConfig", data)
            }
            ,
            t.verifyCodeSend = function(data) {
                return f.post("SMS" === data.sendType ? "/v1/user/security/send-mobile" : "/v1/user/security/send-email", data)
            }
            ,
            t.verifyCodeSendNew = function(data) {
                return f.post("/v1/msg/verifyCode/send/validate", data)
            }
            ,
            t.verifyCodeSendPhone = function(data) {
                return f.post("/v1/user/public/send-mobile/validate", data)
            }
            ,
            t.verifyCodeSendEmail = function(data) {
                return f.post("/v1/user/public/send-email/validate", data)
            }
            ,
            t.sendEmailVerifyCode = function(data) {
                return f.post("/v1/user/public/send-email/validate", data)
            }
            ,
            t.sendMobileVerifyCode = function(data) {
                return f.post("/v1/user/public/send-mobile/validate", data)
            }
            ,
            t.usdtRate = function(data) {
                return f.post("/v1/user/public/usdtRate", data)
            }
            ,
            t.getCurrentTime = function(data) {
                return new c.default((function(e) {
                        e((0,
                            l.default)())
                    }
                ))
            }
            ,
            t.indexHomeQuotation = function(data) {
                return f.post("/v1/mix/index/homeQuotation", data)
            }
            ,
            t.indexQuote = function(data) {
                return f.post("/v1/mix/index/getTicker", data)
            }
            ,
            t.indexUserSelectedList = function(data) {
                return f.post("/v1/mix/index/userSelectedList", data)
            }
            ,
            t.addUserSelf = function(data) {
                return f.post("/v1/user/optional/addUserSelf", data)
            }
            ,
            t.deleteUserSelf = function(data) {
                return f.post("/v1/user/optional/deleteUserSelf", data)
            }
            ,
            t.getUserSelfList = function(data) {
                return f.post("/v1/user/optional/getUserSelfList", data)
            }
            ,
            t.operationUserSelfOptional = function(data) {
                return f.post("/v1/user/optional/operationUserSelfOptional", data)
            }
            ,
            t.batchOperationUserSelfOptional = function(data) {
                return f.post("/v1/user/optional/batchOperationUserSelfOptional", data)
            }
            ,
            t.getSpotPlateList = (0,
                d.cacheApiFunc)((function(data) {
                    return f.post("/v1/spot/Plate/listSpotPlate", data)
                }
            )),
            t.getUserPreference = function() {
                return f.post("/v1/user/preference/get")
            }
            ,
            t.setUserPreference = function(data) {
                return f.post("/v1/user/preference/set", data)
            }
            ,
            t.getDelegateFlag = function() {
                return f.post("/v1/trigger/config/delegate/flag/get")
            }
            ,
            t.setDelegateFlag = function(data) {
                return f.post("/v1/trigger/config/delegate/flag/set", data)
            }
            ,
            t.getImportNotice = function(data) {
                return f.get("/v1/mix/index/importance", data)
            }
            ,
            t.getSystemNotice = function(data) {
                return f.post("/v1/if/push/pushList", data)
            }
            ,
            t.readPushMsg = function(data) {
                return f.post("/v1/if/push/readPushMsg", data)
            }
            ,
            t.overseasSmsStatus = function() {
                return f.post("/v1/msg/hx/app/query")
            }
            ,
            t.getPictureList = function(data) {
                var e = "/v1/mix/public/getPictureList?language=".concat(data.language, "&type=").concat(data.type, "&vipCode=").concat(data.vipCode);
                return f.get(e)
            }
            ,
            t.getPushCount = (0,
                d.cacheApiFunc)((function() {
                    return f.post("/v1/if/push/count")
                }
            ), {
                interval: 500
            }),
            t.getMsgDetail = function(data) {
                return f.post("/v1/if/push/pushDetail", data)
            }
            ,
            t.getHotTicker = function(data) {
                return f.post("/v1/mix/index/getTicker", data)
            }
            ,
            t.getLongUrl = function(e) {
                return f.post("/v1/short_url/long_url?shortUrl=" + e, {})
            }
            ,
            t.getAgentStatistics = function(data) {
                return f.post("/v1/mix/agent/statistics", data)
            }
            ,
            t.getInvitationList = function(data) {
                return f.post("/v1/mix/agent/invitation_list?page=" + data.page + "&size=" + data.size)
            }
            ,
            t.getIsAgent = (0,
                d.cacheApiFunc)((function(data) {
                    return f.get("/v1/mix/agent/is_agent", data)
                }
            )),
            t.getShortUrl = function(data) {
                return f.post("/v1/short_url/generate", data)
            }
            ,
            t.uploadIdentityPicNotBase = "v1/user/public/uploadIdentityPicNotBase",
            t.getPopularActivity = (0,
                d.cacheApiFunc)((function(data) {
                    return f.get("/v1/activity/getPopularActivityList", data)
                }
            )),
            t.getContractActiveRank = function(data) {
                return f.post("v1/mix/public/contract/getContractActiveRank", data)
            }
            ,
            t.getRegistrationSuccessDialog = function(data) {
                return f.post("v1/mix/public/getRegistrationSuccessDialog", data)
            }
            ,
            t.getSpotKlineList = function(data) {
                return f.post("/v1/mix/index/getSpotKlineList", data)
            }
            ,
            t.coinPlaceList = (0,
                d.cacheApiFunc)((function(data) {
                    return f.get("/v1/spot/public/coinPlaceList", data)
                }
            )),
            t.spotNewListing = function(data) {
                return f.get("/v1/spot/public/newListing", data)
            }
            ,
            t.getCoinSymbolListForHomePage = function(data) {
                return f.get("/v1/spot/getCoinSymbolListForHomePage", data)
            }
    },
    629: function(e, t, r) {
        "use strict";
        var n = r(0)
            , o = r(2);
        n(t, "__esModule", {
            value: !0
        }),
            t.WrappedErrorEvent = t.WrappedCloseEvent = t.TIMEOUT_ERROR = t.CONNECTION_ERROR_CODE = t.CONNECTION_ERROR = void 0;
        var c = o(r(74))
            , l = o(r(73))
            , d = o(r(7));
        t.TIMEOUT_ERROR = "TIMEOUT",
            t.CONNECTION_ERROR = "SYSTEM",
            t.WrappedErrorEvent = (0,
                c.default)((function e(t, r, n) {
                    (0,
                        l.default)(this, e),
                        (0,
                            d.default)(this, "event", void 0),
                        (0,
                            d.default)(this, "message", void 0),
                        (0,
                            d.default)(this, "target", void 0),
                        this.event = t,
                        this.message = r,
                        this.target = n
                }
            )),
            t.WrappedCloseEvent = (0,
                c.default)((function e(t, code, r) {
                    (0,
                        l.default)(this, e),
                        (0,
                            d.default)(this, "code", void 0),
                        (0,
                            d.default)(this, "reason", void 0),
                        (0,
                            d.default)(this, "wasClean", void 0),
                        (0,
                            d.default)(this, "event", void 0),
                        (0,
                            d.default)(this, "target", void 0),
                        this.event = t,
                        this.code = t ? t.code : code || 1e3,
                        this.reason = t ? t.reason : r || "",
                        this.wasClean = !t || t.wasClean,
                        this.target = null
                }
            )),
            t.CONNECTION_ERROR_CODE = {
                E1007: 1007
            }
    },
    646: function(e, t, r) {
        "use strict";
        var n = r(27)
            , o = r(34)
            , c = r(0)
            , l = r(9)
            , d = r(2);
        c(t, "__esModule", {
            value: !0
        }),
            t.default = void 0;
        var f = d(r(14))
            , v = d(r(11))
            , h = d(r(41))
            , m = d(r(299))
            , y = d(r(44))
            , _ = d(r(15))
            , w = d(r(73))
            , C = d(r(74))
            , S = d(r(7))
            , k = r(26)
            , T = r(54)
            , L = d(r(166))
            , E = d(r(49))
            , P = d(r(222))
            , A = r(389)
            , O = function(e, t) {
            if (!t && e && e.__esModule)
                return e;
            if (null === e || "object" != n(e) && "function" != typeof e)
                return {
                    default: e
                };
            var r = N(t);
            if (r && r.has(e))
                return r.get(e);
            var o = {
                __proto__: null
            }
                , a = c && l;
            for (var u in e)
                if ("default" !== u && {}.hasOwnProperty.call(e, u)) {
                    var i = a ? l(e, u) : null;
                    i && (i.get || i.set) ? c(o, u, i) : o[u] = e[u]
                }
            return o.default = e,
            r && r.set(e, o),
                o
        }(r(45));
        function N(e) {
            if ("function" != typeof o)
                return null;
            var t = new o
                , r = new o;
            return (N = function(e) {
                    return e ? r : t
                }
            )(e)
        }
        var x = t.default = function() {
            function e(link, t, r) {
                var n = this;
                if ((0,
                    w.default)(this, e),
                    (0,
                        S.default)(this, "_pureLink", ""),
                    (0,
                        S.default)(this, "_isArtificialClosed", !1),
                    (0,
                        S.default)(this, "_msgHandleMap", {}),
                    (0,
                        S.default)(this, "_pulseTimer", null),
                    (0,
                        S.default)(this, "_pulseInterval", 13e3),
                    (0,
                        S.default)(this, "_dealMsgListTimer", null),
                    (0,
                        S.default)(this, "_onLine", !1),
                    (0,
                        S.default)(this, "_neeReSubscribeMsgList", []),
                    (0,
                        S.default)(this, "_reConnectFlag", 0),
                    (0,
                        S.default)(this, "_reConnectTimer", null),
                    (0,
                        S.default)(this, "_maxReConnectTimes", 4),
                    (0,
                        S.default)(this, "_directMsgHandler", null),
                    (0,
                        S.default)(this, "version", void 0),
                    (0,
                        S.default)(this, "_url", void 0),
                    (0,
                        S.default)(this, "_options", void 0),
                    (0,
                        S.default)(this, "_binaryType", void 0),
                    (0,
                        S.default)(this, "_protocols", void 0),
                    (0,
                        S.default)(this, "_retryCount", void 0),
                    (0,
                        S.default)(this, "_heartbeats", void 0),
                    (0,
                        S.default)(this, "_closeCalled", void 0),
                    (0,
                        S.default)(this, "_shouldReconnect", void 0),
                    (0,
                        S.default)(this, "_connectLock", void 0),
                    (0,
                        S.default)(this, "_connectTimeout", void 0),
                    (0,
                        S.default)(this, "_connectTimeoutSec", void 0),
                    (0,
                        S.default)(this, "_connectDelay", void 0),
                    (0,
                        S.default)(this, "_beatTimeout", void 0),
                    (0,
                        S.default)(this, "_messageQueue", void 0),
                    (0,
                        S.default)(this, "_listeners", void 0),
                    (0,
                        S.default)(this, "_channelMap", void 0),
                    (0,
                        S.default)(this, "productCode", void 0),
                    (0,
                        S.default)(this, "urlManager", void 0),
                    (0,
                        S.default)(this, "token", void 0),
                    (0,
                        S.default)(this, "_messageSent", void 0),
                    (0,
                        S.default)(this, "_isPublic", void 0),
                    (0,
                        S.default)(this, "beatTimer", void 0),
                    (0,
                        S.default)(this, "heartBeat", void 0),
                    (0,
                        S.default)(this, "timeBoard", void 0),
                    (0,
                        S.default)(this, "_sensorsReportInterval", void 0),
                    (0,
                        S.default)(this, "_heartbeatTimes", void 0),
                    (0,
                        S.default)(this, "sensorsReport", void 0),
                    (0,
                        S.default)(this, "_compress", void 0),
                    (0,
                        S.default)(this, "subscribe", (function(e, t) {
                            n._pureLink && (n._msgHandleMap[e] ? (n._msgHandleMap[e].handles.push(t),
                            n._msgHandleMap[e].hasSubscribed && (n._msgHandleMap[e].hasSubscribed = !1,
                                n._armDataAndSend(e, "unsubscribe"))) : n._msgHandleMap[e] = {
                                hasSubscribed: !1,
                                handles: [t]
                            },
                                n._armDataAndSend(e, "subscribe"))
                        }
                    )),
                    (0,
                        S.default)(this, "unsubscribe", (function(e, t) {
                            if (t && "function" == typeof t && e && n._msgHandleMap[e]) {
                                var r, o = (null === (r = n._msgHandleMap[e]) || void 0 === r || null === (r = r.handles) || void 0 === r ? void 0 : r.indexOf(t)) || -1;
                                -1 !== o && n._msgHandleMap[e].handles.splice(o, 1),
                                n._msgHandleMap[e].handles.length && (n._armDataAndSend(e, "unsubscribe"),
                                    delete n._msgHandleMap[e])
                            }
                        }
                    )),
                    (0,
                        S.default)(this, "unsubscribeAll", (function() {
                            if (n.instance) {
                                var e = (0,
                                    v.default)(n._msgHandleMap);
                                e.length && e.forEach((function(e) {
                                        e && (n._armDataAndSend(e, "unsubscribe"),
                                            delete n._msgHandleMap[e])
                                    }
                                ))
                            }
                        }
                    )),
                    (0,
                        S.default)(this, "close", (function() {
                            if (n.instance) {
                                var e = (0,
                                    v.default)(n._msgHandleMap);
                                e.length && e.forEach((function(e) {
                                        n._armDataAndSend(e, "unsubscribe"),
                                            delete n._msgHandleMap[e]
                                    }
                                )),
                                    n._onLine = !1,
                                    n._isArtificialClosed = !0,
                                    n._clearPulse(),
                                    n.instance.close(),
                                    n.instance = null,
                                    n._rmObserveVisibilityHandler()
                            }
                        }
                    )),
                    (0,
                        S.default)(this, "stop", (function() {
                            n.instance && (n._isArtificialClosed = !0,
                                n.instance.close(),
                                n._clearPulse(),
                                n.instance = null,
                                n._onLine = !1,
                                n._rmObserveVisibilityHandler())
                        }
                    )),
                    (0,
                        S.default)(this, "reConnect", (function() {
                            n._onLine || (n._reConnectFlag >= n._maxReConnectTimes ? (n._clearPulse(),
                                n._reConnectFlag = 0,
                                n.reConnect()) : (n._reConnectTimer && clearTimeout(n._reConnectTimer),
                                n._reConnectTimer = setTimeout((function() {
                                        n.instance && (n.instance.close(),
                                            n.instance = null),
                                            n._setNeeReSendInfo(),
                                            n._connect(),
                                            n._dealWithException(),
                                            n._reConnectFlag += 1,
                                            n._reConnectTimer = null
                                    }
                                ), 3 * n._reConnectFlag * 1e3)))
                        }
                    )),
                    (0,
                        S.default)(this, "_closedHandler", (function() {
                            n._onLine = !1,
                            n.instance && (n.instance.onmessage = null,
                                n.instance.close()),
                                n.instance = null,
                            n._isArtificialClosed || n.reConnect()
                        }
                    )),
                    (0,
                        S.default)(this, "_observeVisibilityHandler", (function() {
                            document.addEventListener("visibilitychange", n._handleVisibilityChanged)
                        }
                    )),
                    (0,
                        S.default)(this, "_rmObserveVisibilityHandler", (function() {
                            document.removeEventListener("visibilitychange", n._handleVisibilityChanged)
                        }
                    )),
                    (0,
                        S.default)(this, "_handleVisibilityChanged", (function() {
                            document.hidden || n._onLine || (n._reConnectFlag = 0,
                                n.reConnect())
                        }
                    )),
                window.WebSocket && link) {
                    this._init(),
                        this._pureLink = "".concat(link).concat(link.includes("?") ? "&" : "?", "languageType=").concat((0,
                            L.default)(this.getLang).lang || 0),
                        this._directMsgHandler = r || null,
                        this._isPublic = t;
                    var o = new URL(this._pureLink).search
                        , c = P.default.parse(o);
                    this._compress = c.compress ? "1" === c.compress ? "1" : "0" : "1",
                        this._connect(),
                        this._dealWithException(),
                        this._observeVisibilityHandler()
                }
            }
            return (0,
                C.default)(e, [{
                key: "registerEventListener",
                value: function(e, t) {
                    var r = e + String((0,
                        h.default)());
                    return this._listeners[e].set(r, t),
                    "open" === e && this.instance && this.readyState === this.instance.OPEN && t(),
                        r
                }
            }, {
                key: "generateId",
                value: function(e) {
                    var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}
                        , r = ["step", "productCode"];
                    if ("currentTraceOrders" === e)
                        return e;
                    var n = e;
                    return (0,
                        v.default)(t).sort((function(a, b) {
                            return a < b ? -1 : a === b ? 0 : 1
                        }
                    )).forEach((function(e) {
                            r.indexOf(e) > -1 && (n += "|".concat(e, ":").concat(t[e]))
                        }
                    )),
                        n
                }
            }, {
                key: "readyState",
                get: function() {
                    var t;
                    return this.instance ? this.instance.readyState : null !== (t = this._options) && void 0 !== t && t.startClosed ? e.CLOSED : e.CONNECTING
                }
            }, {
                key: "CONNECTING",
                get: function() {
                    return e.CONNECTING
                }
            }, {
                key: "OPEN",
                get: function() {
                    return e.OPEN
                }
            }, {
                key: "CLOSING",
                get: function() {
                    return e.CLOSING
                }
            }, {
                key: "CLOSED",
                get: function() {
                    return e.CLOSED
                }
            }, {
                key: "_init",
                value: function() {
                    this.version = "2.0",
                        this._binaryType = "blob",
                        this._protocols = O.default.get(O.TokenKey.CC_TOKEN) || "",
                        this._retryCount = -1,
                        this._heartbeats = 0,
                        this._closeCalled = !1,
                        this._connectLock = !1,
                        this._connectTimeout = null,
                        this._connectTimeoutSec = 5e3,
                        this._connectDelay = 0,
                        this._messageQueue = [],
                        this._shouldReconnect = !0,
                        this._listeners = {
                            open: new m.default,
                            close: new m.default,
                            error: new m.default,
                            message: new m.default
                        },
                        this._channelMap = new m.default,
                        this._messageSent = !1,
                        this.heartBeat = 5e3,
                        this.timeBoard = {},
                        this._sensorsReportInterval = 6e4,
                        this._heartbeatTimes = []
                }
            }, {
                key: "_connect",
                value: function() {
                    if (!this._onLine && this._pureLink) {
                        var link = this._pureLink;
                        this._isArtificialClosed = !1;
                        var e = (0,
                            T.getTokenDataNew)(link);
                        this._protocols = (0,
                            k.removeTailRecursive)(e, "="),
                            this.instance = new WebSocket(link,this._protocols),
                            this._dealWithMsg()
                    }
                }
            }, {
                key: "_setNeeReSendInfo",
                value: function() {
                    var e = this;
                    this._neeReSubscribeMsgList.length = 0;
                    var t = (0,
                        v.default)(this._msgHandleMap);
                    t.length && t.forEach((function(t) {
                            e._msgHandleMap[t].hasSubscribed = !1;
                            var r = {
                                event: "subscribe",
                                channel: t
                            };
                            e._neeReSubscribeMsgList.push([t, (0,
                                y.default)(r)])
                        }
                    ))
                }
            }, {
                key: "_inflateMessage",
                value: function(e) {
                    if (e instanceof Blob) {
                        var t = new FileReader
                            , r = this;
                        t.addEventListener("loadend", (function() {
                                var e = JSON.parse(String((0,
                                    A.inflate)(t.result, {
                                    to: "string"
                                })));
                                if (r._makePulse(e),
                                r._directMsgHandler && e.msg) {
                                    var n = e.msg
                                        , o = n.event
                                        , data = n.data
                                        , c = n.type
                                        , l = n.version;
                                    r._directMsgHandler({
                                        event: o,
                                        data: data,
                                        type: c,
                                        version: l
                                    })
                                } else
                                    r._triggerHandle(e);
                                t = null
                            }
                        )),
                            t.onerror = function(e) {}
                            ,
                            t.readAsArrayBuffer(e)
                    } else {
                        var n = JSON.parse(e || "{}");
                        if (this._makePulse(n),
                        this._directMsgHandler && n.msg) {
                            var o = n.msg
                                , c = o.event
                                , data = o.data
                                , l = o.type
                                , d = o.version;
                            this._directMsgHandler({
                                event: c,
                                data: data,
                                type: l,
                                version: d
                            })
                        } else
                            this._triggerHandle(n)
                    }
                }
            }, {
                key: "_dealWithMsg",
                value: function() {
                    var e = this;
                    this.instance && (this.instance.onmessage = function(t) {
                            try {
                                if ("1" === e._compress || t.data instanceof Blob) {
                                    var r = t.data;
                                    e._inflateMessage(r)
                                } else {
                                    var n = JSON.parse(t.data || "{}");
                                    if (e._makePulse(n),
                                    e._directMsgHandler && n.msg) {
                                        var o = n.msg
                                            , c = o.event
                                            , data = o.data
                                            , l = o.type
                                            , d = o.version;
                                        e._directMsgHandler({
                                            event: c,
                                            data: data,
                                            type: l,
                                            version: d
                                        })
                                    } else
                                        e._triggerHandle(n)
                                }
                            } catch (e) {}
                        }
                    )
                }
            }, {
                key: "_triggerHandle",
                value: function(e) {
                    var t = e.channel
                        , r = e.event
                        , n = e.type
                        , data = e.data;
                    if (!["unsubscribe"].includes(r)) {
                        var o = this._msgHandleMap[t] && this._msgHandleMap[t].handles;
                        o && o.length && o.forEach((function(e) {
                                e({
                                    event: r,
                                    type: n,
                                    data: data
                                })
                            }
                        ))
                    }
                }
            }, {
                key: "_armDataAndSend",
                value: function(e, t) {
                    var r = {
                        event: t,
                        channel: e
                    };
                    this._onLine && this.instance ? ((0,
                        E.default)("ws_swapnew_content", this._pureLink, {
                        ext: (0,
                            y.default)(r)
                    }),
                        "subscribe" === t ? this._sendToService(e, (0,
                            y.default)(r)) : this.send((0,
                            y.default)(r))) : "subscribe" === t && (this._neeReSubscribeMsgList.push([e, (0,
                        y.default)(r)]),
                        this._dealWithException())
                }
            }, {
                key: "_sendToService",
                value: function(e, t) {
                    this._msgHandleMap[e] && (!this._msgHandleMap[e].hasSubscribed && this.instance && this.send(t),
                        this._msgHandleMap[e].hasSubscribed = !0)
                }
            }, {
                key: "_makePulse",
                value: function(data) {
                    if (data) {
                        if (data.type && "ping" == data.type && this.send((0,
                            y.default)({
                            type: "pong",
                            time: (0,
                                h.default)() + ""
                        })),
                        data.type && "pong" == data.type) {
                            var time = this._timeEnd("ping");
                            this._heartbeatTimes.push(time)
                        }
                        if (data.event && "ping" == data.event && this.send((0,
                            y.default)({
                            event: "pong",
                            time: (0,
                                h.default)() + ""
                        })),
                        data.event && "pong" == data.event) {
                            var e = this._timeEnd("ping");
                            window.$nuxt.$store.commit("newTrading/SET_WS_SPEED", e),
                                this._heartbeatTimes.push(e)
                        }
                        if (!this._isPublic && "ping" !== data.type && "pong" !== data.type && "connected" !== data.type) {
                            var t = data.msg && data.msg.event
                                , r = data.msg && data.msg.data;
                            if (r && r.account && r.account instanceof Array) {
                                var n = {
                                    name: t,
                                    account: r.account.map((function(e) {
                                            return {
                                                clientAccountId: e.clientAccountId,
                                                status: e.status
                                            }
                                        }
                                    ))
                                };
                                (0,
                                    E.default)("ws_swapnew_private_content", this._pureLink, {
                                    ext: (0,
                                        y.default)(n)
                                })
                            }
                            if (r && r.collateral && r.collateral instanceof Array) {
                                var o = {
                                    name: t,
                                    collateral: r.collateral.map((function(e) {
                                            return {
                                                amount: e.amount,
                                                marginMode: e.marginMode,
                                                crossContractId: e.crossContractId,
                                                isolatedPositionId: e.isolatedPositionId
                                            }
                                        }
                                    ))
                                };
                                (0,
                                    E.default)("ws_swapnew_private_content", this._pureLink, {
                                    ext: (0,
                                        y.default)(o)
                                })
                            }
                            if (r && r.order && r.order instanceof Array) {
                                var c = {
                                    name: t,
                                    order: r.order.map((function(e) {
                                            return {
                                                marginMode: e.marginMode,
                                                orderSide: e.orderSide,
                                                positionSide: e.positionSide,
                                                size: e.size,
                                                type: e.type,
                                                triggerPrice: e.triggerPrice,
                                                triggerPriceType: e.triggerPriceType
                                            }
                                        }
                                    ))
                                };
                                (0,
                                    E.default)("ws_swapnew_private_content", this._pureLink, {
                                    ext: (0,
                                        y.default)(c)
                                })
                            }
                            if (r && r.position && r.position instanceof Array) {
                                var l = {
                                    name: t,
                                    position: r.position.map((function(e) {
                                            return {
                                                contractId: e.contractId,
                                                marginMode: e.marginMode,
                                                separatedMode: e.separatedMode,
                                                side: e.side,
                                                size: e.size
                                            }
                                        }
                                    ))
                                };
                                (0,
                                    E.default)("ws_swapnew_private_content", this._pureLink, {
                                    ext: (0,
                                        y.default)(l)
                                })
                            }
                        }
                    }
                }
            }, {
                key: "_clearPulse",
                value: function() {
                    this._pulseTimer && (clearInterval(this._pulseTimer),
                        this._pulseTimer = null)
                }
            }, {
                key: "_clearMsgListTimer",
                value: function() {
                    this._dealMsgListTimer && (clearTimeout(this._dealMsgListTimer),
                        this._dealMsgListTimer = null)
                }
            }, {
                key: "_clearSensorsReportTimer",
                value: function() {
                    this.sensorsReport && clearInterval(this.sensorsReport),
                    this._heartbeatTimes.length > 0 && ((0,
                        E.default)("ws_response_time", this._pureLink, {
                        ext: this._heartbeatTimes.join(",")
                    }),
                        this._heartbeatTimes = [])
                }
            }, {
                key: "_dealWithException",
                value: function() {
                    var e = this;
                    this.instance ? (this.instance.onopen = function() {
                        e._reConnectFlag = 0,
                            e._onLine = !0,
                            e._heartbeat(),
                            e._dealMsgListTimer = setTimeout((function() {
                                    e._neeReSubscribeMsgList.length && (e._neeReSubscribeMsgList.forEach((function(t) {
                                            e._sendToService(t[0], t[1])
                                        }
                                    )),
                                        e._neeReSubscribeMsgList.length = 0)
                                }
                            ), 500)
                    }
                        ,
                        this.instance.onerror = function() {
                            e._closedHandler()
                        }
                        ,
                        this.instance.onclose = function(t) {
                            e._closedHandler()
                        }
                        ,
                        window.addEventListener("beforeunload", (function() {
                                e._clearPulse(),
                                    e._clearMsgListTimer(),
                                    e._clearSensorsReportTimer(),
                                    e._rmObserveVisibilityHandler(),
                                e.instance && e.instance.close()
                            }
                        ))) : this._isArtificialClosed || this.reConnect()
                }
            }, {
                key: "_heartbeat",
                value: function() {
                    var e = this;
                    this.sensorsReport && clearInterval(this.sensorsReport);
                    var t = function() {
                        e.beatTimer && clearTimeout(e.beatTimer),
                            e.instance && e.readyState === e.instance.OPEN ? (e._isPublic ? e.send((0,
                                y.default)({
                                event: "ping",
                                time: (0,
                                    h.default)() + ""
                            })) : e.send((0,
                                y.default)({
                                type: "ping",
                                time: (0,
                                    h.default)() + ""
                            })),
                                e._time("ping"),
                                e.beatTimer = setTimeout((function() {
                                        t()
                                    }
                                ), e.heartBeat)) : e._clearSensorsReportTimer()
                    };
                    this.sensorsReport = setInterval((function() {
                            e._heartbeatTimes.length > 0 && ((0,
                                E.default)("ws_response_time", e._pureLink, {
                                ext: e._heartbeatTimes.join(",")
                            }),
                                e._heartbeatTimes = [])
                        }
                    ), this._sensorsReportInterval),
                        t()
                }
            }, {
                key: "_time",
                value: function(label) {
                    this.timeBoard[label] = (0,
                        h.default)()
                }
            }, {
                key: "_timeEnd",
                value: function(label) {
                    return this.timeBoard[label] ? (0,
                        h.default)() - this.timeBoard[label] : 0
                }
            }, {
                key: "send",
                value: function(e) {
                    this.instance && this.readyState === this.OPEN && this.instance.send(e)
                }
            }], [{
                key: "getInstance",
                value: (t = (0,
                        _.default)(f.default.mark((function t() {
                            var r, n, o, c, l = arguments;
                            return f.default.wrap((function(t) {
                                    for (; ; )
                                        switch (t.prev = t.next) {
                                            case 0:
                                                return n = !(l.length > 0 && void 0 !== l[0]) || l[0],
                                                    o = l.length > 1 ? l[1] : void 0,
                                                    t.next = 4,
                                                    (0,
                                                        T.getNewContractWSUrl)(n);
                                            case 4:
                                                return c = t.sent,
                                                this.instance && (null === (r = this.instance) || void 0 === r ? void 0 : r._pureLink) === c || (this.instance = new e(c,n,o)),
                                                    t.abrupt("return", this.instance);
                                            case 7:
                                            case "end":
                                                return t.stop()
                                        }
                                }
                            ), t, this)
                        }
                    ))),
                        function() {
                            return t.apply(this, arguments)
                        }
                )
            }, {
                key: "CONNECTING",
                get: function() {
                    return 0
                }
            }, {
                key: "OPEN",
                get: function() {
                    return 1
                }
            }, {
                key: "CLOSING",
                get: function() {
                    return 2
                }
            }, {
                key: "CLOSED",
                get: function() {
                    return 3
                }
            }]);
            var t
        }();
        (0,
            S.default)(x, "instance", null)
    },
    650: function(e, t, r) {
        "use strict";
        var n = r(0)
            , o = r(2);
        n(t, "__esModule", {
            value: !0
        }),
            t.default = void 0;
        var c = o(r(14))
            , l = o(r(15))
            , d = o(r(73))
            , f = o(r(74))
            , v = r(1301)
            , h = o(r(31))
            , m = function() {
            return (0,
                f.default)((function e() {
                    (0,
                        d.default)(this, e)
                }
            ), [{
                key: "getLangCode",
                value: function(e) {
                    var t;
                    return (null === h.default || void 0 === h.default || null === (t = h.default.find((function(t) {
                            return t.language === e
                        }
                    ))) || void 0 === t ? void 0 : t.langCode) || 0
                }
            }, {
                key: "buildCollectionParams",
                value: function() {
                    var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
                    return {
                        enabled: !0,
                        "pagination[page]": e.page,
                        "pagination[pageSize]": e.pageSize,
                        "filters[enabledDate][$lte]": (new Date).toISOString(),
                        "filters[expiredDate][$null]": !0
                    }
                }
            }, {
                key: "cmsApiCollectionRequest",
                value: (m = (0,
                        l.default)(c.default.mark((function e(t) {
                            var r, n, o, l, path, d, f, v = arguments;
                            return c.default.wrap((function(e) {
                                    for (; ; )
                                        switch (e.prev = e.next) {
                                            case 0:
                                                return r = v.length > 1 && void 0 !== v[1] ? v[1] : "",
                                                    n = v.length > 2 && void 0 !== v[2] ? v[2] : {},
                                                    o = v.length > 3 ? v[3] : void 0,
                                                    l = v.length > 4 ? v[4] : void 0,
                                                    e.prev = 4,
                                                    path = "/api/".concat(t, "/").concat(r || ""),
                                                    d = this.getLangCode(o),
                                                    f = this.buildCollectionParams(n),
                                                    e.abrupt("return", l(d).get(path, f));
                                            case 11:
                                                throw e.prev = 11,
                                                    e.t0 = e.catch(4),
                                                    e.t0;
                                            case 15:
                                            case "end":
                                                return e.stop()
                                        }
                                }
                            ), e, this, [[4, 11]])
                        }
                    ))),
                        function(e) {
                            return m.apply(this, arguments)
                        }
                )
            }, {
                key: "cmsApiSingleRequest",
                value: (o = (0,
                        l.default)(c.default.mark((function e(t, r, n) {
                            var o, path, l, d = arguments;
                            return c.default.wrap((function(e) {
                                    for (; ; )
                                        switch (e.prev = e.next) {
                                            case 0:
                                                return o = d.length > 3 && void 0 !== d[3] ? d[3] : null,
                                                    e.prev = 1,
                                                    path = "/api/".concat(t),
                                                    l = this.getLangCode(r),
                                                    e.abrupt("return", n(l, o).get(path));
                                            case 7:
                                                throw e.prev = 7,
                                                    e.t0 = e.catch(1),
                                                    e.t0;
                                            case 11:
                                            case "end":
                                                return e.stop()
                                        }
                                }
                            ), e, this, [[1, 7]])
                        }
                    ))),
                        function(e, t, r) {
                            return o.apply(this, arguments)
                        }
                )
            }, {
                key: "getNews",
                value: (n = (0,
                        l.default)(c.default.mark((function e() {
                            var t, r, n, o = arguments;
                            return c.default.wrap((function(e) {
                                    for (; ; )
                                        switch (e.prev = e.next) {
                                            case 0:
                                                return t = o.length > 0 && void 0 !== o[0] ? o[0] : "",
                                                    r = o.length > 1 && void 0 !== o[1] ? o[1] : {},
                                                    n = o.length > 2 ? o[2] : void 0,
                                                    e.next = 5,
                                                    this.cmsApiCollectionRequest("newss", t, r, n, v.cmsApiNewsRequest);
                                            case 5:
                                                return e.abrupt("return", e.sent);
                                            case 6:
                                            case "end":
                                                return e.stop()
                                        }
                                }
                            ), e, this)
                        }
                    ))),
                        function() {
                            return n.apply(this, arguments)
                        }
                )
            }, {
                key: "getArticles",
                value: (r = (0,
                        l.default)(c.default.mark((function e() {
                            var t, r, n, o = arguments;
                            return c.default.wrap((function(e) {
                                    for (; ; )
                                        switch (e.prev = e.next) {
                                            case 0:
                                                return t = o.length > 0 && void 0 !== o[0] ? o[0] : "",
                                                    r = o.length > 1 && void 0 !== o[1] ? o[1] : {},
                                                    n = o.length > 2 ? o[2] : void 0,
                                                    e.next = 5,
                                                    this.cmsApiCollectionRequest("articles", t, r, n, v.cmsApiArticleRequest);
                                            case 5:
                                                return e.abrupt("return", e.sent);
                                            case 6:
                                            case "end":
                                                return e.stop()
                                        }
                                }
                            ), e, this)
                        }
                    ))),
                        function() {
                            return r.apply(this, arguments)
                        }
                )
            }, {
                key: "getPages",
                value: (t = (0,
                        l.default)(c.default.mark((function e(t, r) {
                            return c.default.wrap((function(e) {
                                    for (; ; )
                                        switch (e.prev = e.next) {
                                            case 0:
                                                return e.next = 2,
                                                    this.cmsApiSingleRequest(t, r, v.cmsApiPageRequest);
                                            case 2:
                                                return e.abrupt("return", e.sent);
                                            case 3:
                                            case "end":
                                                return e.stop()
                                        }
                                }
                            ), e, this)
                        }
                    ))),
                        function(e, r) {
                            return t.apply(this, arguments)
                        }
                )
            }, {
                key: "getCryptoTokens",
                value: (e = (0,
                        l.default)(c.default.mark((function e(t, r) {
                            var n;
                            return c.default.wrap((function(e) {
                                    for (; ; )
                                        switch (e.prev = e.next) {
                                            case 0:
                                                return n = {
                                                    populate: "thumbnail",
                                                    "filters[token_name][$eq]": r
                                                },
                                                    e.next = 3,
                                                    this.cmsApiSingleRequest("crypto-tokens", t, v.cmsApiCommonRequest, n);
                                            case 3:
                                                return e.abrupt("return", e.sent);
                                            case 4:
                                            case "end":
                                                return e.stop()
                                        }
                                }
                            ), e, this)
                        }
                    ))),
                        function(t, r) {
                            return e.apply(this, arguments)
                        }
                )
            }]);
            var e, t, r, n, o, m
        }()
            , y = new m;
        t.default = y
    },
    652: function(e, t, r) {
        "use strict";
        var n = r(27)
            , o = r(34)
            , c = r(0)
            , l = r(9)
            , d = r(2);
        c(t, "__esModule", {
            value: !0
        }),
            t.monitorWindows = t.loadZendeskByLanguage = t.loadScript = t.go2GooglePlay = t.go2AppStore = t.getOrientedUrls = t.getLocaleByPath = t.getLocaleByNavigator = t.getLocaleByLanguageType = t.getLanguageTypeByQuery = t.getLanguageTypeByLocale = t.getLanguageCodeByPath = t.getLanguageCodeByLocale = t.getLanguageCodeByLanguageType = t.getLangCodeByLocaleName = t.getICPUrls = t.getDeviceType = t.getData = t.getBrowserType = t.getAvailableSite = t.generateRandomString = t.geetestCapcha = t.exists = t.emailReg = t.decryptLinks = t.countDownForDay = t.browserVersion = t.NavigatorLanguages = t.Languages = t.LanguageCodes = t.EnvironmentCheck = void 0;
        var f = d(r(14))
            , v = d(r(6))
            , h = d(r(44))
            , m = d(r(298))
            , y = d(r(73))
            , _ = d(r(74))
            , w = d(r(51))
            , C = d(r(15))
            , S = d(r(579))
            , k = d(r(307))
            , T = d(r(95))
            , L = d(r(116))
            , E = d(r(220))
            , P = (r(709),
            function(e, t) {
                if (!t && e && e.__esModule)
                    return e;
                if (null === e || "object" != n(e) && "function" != typeof e)
                    return {
                        default: e
                    };
                var r = A(t);
                if (r && r.has(e))
                    return r.get(e);
                var o = {
                    __proto__: null
                }
                    , a = c && l;
                for (var u in e)
                    if ("default" !== u && {}.hasOwnProperty.call(e, u)) {
                        var i = a ? l(e, u) : null;
                        i && (i.get || i.set) ? c(o, u, i) : o[u] = e[u]
                    }
                o.default = e,
                r && r.set(e, o)
            }(r(342)),
            r(31));
        function A(e) {
            if ("function" != typeof o)
                return null;
            var t = new o
                , r = new o;
            return (A = function(e) {
                    return e ? r : t
                }
            )(e)
        }
        t.emailReg = /^([a-zA-Z0-9_\-\.\+]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/,
            t.getDeviceType = function() {
                var e = window.location.href;
                return e.includes("iosAPP") ? "iOS" : e.includes("androidApk") ? "android" : /(iPhone|iPad|iPod|iOS|Mac)/i.test(navigator.userAgent) ? "iOS" : "android"
            }
            ,
            t.getLangCodeByLocaleName = function(e) {
                return null == e ? void 0 : e.slice(-2).toLowerCase()
            }
        ;
        var O = t.loadScript = function(e, t) {
            var script = document.createElement("script");
            return script.type = "text/javascript",
                script.id = e,
                script.src = t,
                document.getElementsByTagName("head")[0].appendChild(script),
                new v.default((function(e, t) {
                        script.onload = function() {
                            e()
                        }
                            ,
                            script.onerror = function(e) {
                                t(e)
                            }
                    }
                ))
        }
            , N = (t.loadZendeskByLanguage = function(e, t) {
                var r = "21e8f27e-9ee5-4df4-a53d-bd01295974a2";
                "zh-CN" !== e && "zh-TW" !== e && (r = "91095ed8-3bbf-414b-941f-024bd8ff15ec");
                var n = "https://static.zdassets.com/ekr/snippet.js?key=".concat(r);
                O("ze-snippet", n).then((function() {
                        t && t()
                    }
                ))
            }
                ,
                t.geetestCapcha = function(e, t) {
                    var r = "zho";
                    switch (e) {
                        case "zh-CN":
                        default:
                            r = "zho";
                            break;
                        case "zh-TW":
                            r = "zho-tw";
                            break;
                        case "en":
                            r = "eng";
                            break;
                        case "ko":
                            r = "kor"
                    }
                    var n = {
                        captchaId: "fa6030645465d719a4420e40cb8d87e6",
                        product: "bind",
                        language: r
                    };
                    window.initGeetest4(n, (function(e) {
                            e.onReady((function() {
                                    e.showCaptcha()
                                }
                            )).onSuccess((function() {
                                    var r = JSON.parse((0,
                                        h.default)(e.getValidate()));
                                    L.default.set("geetestValidTime", r.gen_time),
                                        delete r.captcha_id,
                                        e.destroy(),
                                        e = null,
                                        t()
                                }
                            )).onFail((function(t) {
                                    setTimeout((function(t) {
                                            e.destroy(),
                                                e = null
                                        }
                                    ), 2e3)
                                }
                            )).onError((function(e) {}
                            ))
                        }
                    ))
                }
                ,
                t.decryptLinks = function(e) {
                    return E.default.AES.decrypt(e, E.default.enc.Utf8.parse("MwxmPJJHmXasfr45"), {
                        iv: E.default.enc.Utf8.parse("yRKXEEPaEbHAbCPy")
                    }).toString(E.default.enc.Utf8).split(",")
                }
        )
            , x = t.getData = function() {
            var e = (0,
                C.default)(f.default.mark((function e(t, r) {
                    var n;
                    return f.default.wrap((function(e) {
                            for (; ; )
                                switch (e.prev = e.next) {
                                    case 0:
                                        if (n = "",
                                            !(0,
                                                k.default)(t)) {
                                            e.next = 3;
                                            break
                                        }
                                        return e.abrupt("return", n);
                                    case 3:
                                        return e.next = 5,
                                            T.default.get("".concat(t, "?v=").concat((new Date).getTime())).then((function(e) {
                                                    return e.data
                                                }
                                            )).catch((function(e) {}
                                            ));
                                    case 5:
                                        if (n = e.sent,
                                            !(0,
                                                S.default)(n)) {
                                            e.next = 10;
                                            break
                                        }
                                        return e.next = 9,
                                            T.default.get("".concat(r, "?v=").concat((new Date).getTime())).then((function(e) {
                                                    return e.data
                                                }
                                            )).catch((function(e) {}
                                            ));
                                    case 9:
                                        n = e.sent;
                                    case 10:
                                        return e.abrupt("return", n);
                                    case 11:
                                    case "end":
                                        return e.stop()
                                }
                        }
                    ), e)
                }
            )));
            return function(t, r) {
                return e.apply(this, arguments)
            }
        }()
            , R = (t.getAvailableSite = function() {
            var e = (0,
                C.default)(f.default.mark((function e(t, r) {
                    var n, o;
                    return f.default.wrap((function(e) {
                            for (; ; )
                                switch (e.prev = e.next) {
                                    case 0:
                                        return n = [],
                                            o = [],
                                            e.next = 4,
                                            t.forEach(function() {
                                                var e = (0,
                                                    C.default)(f.default.mark((function e(t) {
                                                        return f.default.wrap((function(e) {
                                                                for (; ; )
                                                                    switch (e.prev = e.next) {
                                                                        case 0:
                                                                            return e.t0 = n,
                                                                                e.next = 3,
                                                                                R(t, r).then((function(e) {
                                                                                        e && o.push(t)
                                                                                    }
                                                                                ));
                                                                        case 3:
                                                                            e.t1 = e.sent,
                                                                                e.t0.push.call(e.t0, e.t1);
                                                                        case 5:
                                                                        case "end":
                                                                            return e.stop()
                                                                    }
                                                            }
                                                        ), e)
                                                    }
                                                )));
                                                return function(t) {
                                                    return e.apply(this, arguments)
                                                }
                                            }());
                                    case 4:
                                        return e.abrupt("return", v.default.all(n).then((function() {
                                                return o
                                            }
                                        )));
                                    case 5:
                                    case "end":
                                        return e.stop()
                                }
                        }
                    ), e)
                }
            )));
            return function(t, r) {
                return e.apply(this, arguments)
            }
        }(),
            t.exists = function() {
                var e = (0,
                    C.default)(f.default.mark((function e(t, r) {
                        var n, o;
                        return f.default.wrap((function(e) {
                                for (; ; )
                                    switch (e.prev = e.next) {
                                        case 0:
                                            return (n = T.default.create()).defaults.timeout = (0,
                                                k.default)(r) ? 2e3 : 1e3 * r,
                                                e.next = 4,
                                                n.get(t).then((function(e) {
                                                        return 200 === e.status
                                                    }
                                                )).catch((function(e) {
                                                        return !1
                                                    }
                                                ));
                                        case 4:
                                            return o = e.sent,
                                                e.abrupt("return", o);
                                        case 6:
                                        case "end":
                                            return e.stop()
                                    }
                            }
                        ), e)
                    }
                )));
                return function(t, r) {
                    return e.apply(this, arguments)
                }
            }());
        t.browserVersion = function() {
            var e, t = navigator.userAgent, r = t.match(/(OPERA|CHROME|SAFARI|FIREFOX|MSIE|TRIDENT(?=\/))\/?\s*(\d+)/i) || [];
            return /TRIDENT/i.test(r[1]) ? "IE " + ((e = /\brv[ :]+(\d+)/g.exec(t) || [])[1] || "") : "Chrome" === r[1] && null != (e = t.match(/\b(OPR|Edg)\/(\d+)/)) ? e.slice(1).join(" ").replace("OPR", "Opera").replace("Edg", "Edge") : (r = r[2] ? [r[1], r[2]] : [navigator.appName, navigator.appVersion, "-?"],
            null != (e = t.match(/version\/(\d+)/i)) && r.splice(1, 1, e[1]),
                r.join(" "))
        }
            ,
            t.getBrowserType = function() {
                var e = navigator.userAgent.toLowerCase()
                    , t = function(t) {
                    return t.test(e)
                }
                    , r = function(t) {
                    return e.match(t).toString().replace(/[^0-9|_.]/g, "").replace(/_/g, ".")
                }
                    , n = "unknow";
                t(/windows|win32|win64|wow32|wow64/g) ? n = "windows" : t(/macintosh|macintel/g) ? n = "macos" : t(/x11/g) ? n = "linux" : t(/android|adr/g) ? n = "android" : t(/ios|iphone|ipad|ipod|iwatch/g) && (n = "ios");
                var o = "unknow";
                "windows" === n ? t(/windows nt 5.0|windows 2000/g) ? o = "2000" : t(/windows nt 5.1|windows xp/g) ? o = "xp" : t(/windows nt 5.2|windows 2003/g) ? o = "2003" : t(/windows nt 6.0|windows vista/g) ? o = "vista" : t(/windows nt 6.1|windows 7/g) ? o = "7" : t(/windows nt 6.2|windows 8/g) ? o = "8" : t(/windows nt 6.3|windows 8.1/g) ? o = "8.1" : t(/windows nt 10.0|windows 10/g) && (o = "10") : "macos" === n ? o = r(/os x [\d._]+/g) : "android" === n ? o = r(/android [\d._]+/g) : "ios" === n && (o = r(/os [\d._]+/g));
                var c = "unknow";
                "windows" === n || "macos" === n || "linux" === n ? c = "desktop" : ("android" === n || "ios" === n || t(/mobile/g)) && (c = "mobile");
                var l = "unknow"
                    , d = "unknow";
                t(/applewebkit/g) ? (l = "webkit",
                    t(/edge/g) ? d = "edge" : t(/opr/g) ? d = "opera" : t(/chrome/g) && t(/safari/g) || t(/chrome/g) ? d = "chrome" : t(/safari/g) && (d = "safari")) : t(/gecko/g) && t(/firefox/g) ? (l = "gecko",
                    d = "firefox") : t(/presto/g) ? (l = "presto",
                    d = "opera") : t(/trident|compatible|msie/g) && (l = "trident",
                    d = "iexplore");
                var f = "unknow";
                "webkit" === l ? f = r(/applewebkit\/[\d._]+/g) : "gecko" === l ? f = r(/gecko\/[\d._]+/g) : "presto" === l ? f = r(/presto\/[\d._]+/g) : "trident" === l && (f = r(/trident\/[\d._]+/g));
                var v = "none"
                    , h = "unknow";
                return t(/micromessenger/g) ? (v = "wechat",
                    h = r(/micromessenger\/[\d._]+/g)) : t(/qqbrowser/g) ? (v = "qq",
                    h = r(/qqbrowser\/[\d._]+/g)) : t(/ucbrowser/g) ? (v = "uc",
                    h = r(/ucbrowser\/[\d._]+/g)) : t(/qihu 360se/g) ? v = "360" : t(/2345explorer/g) ? (v = "2345",
                    h = r(/2345explorer\/[\d._]+/g)) : t(/metasr/g) ? v = "sougou" : t(/lbbrowser/g) ? v = "liebao" : t(/maxthon/g) && (v = "maxthon",
                    h = r(/maxthon\/[\d._]+/g)),
                    (0,
                        w.default)({
                        engine: l,
                        engineVs: f,
                        platform: c,
                        supporter: d,
                        system: n,
                        systemVs: o
                    }, "none" === v ? {} : {
                        shell: v,
                        shellVs: h
                    })
            }
            ,
            t.go2AppStore = function() {
                setTimeout((function() {
                        window.open("https://apps.apple.com/app/weex-buy-bitcoin-crypto/id1609350789", "_blank")
                    }
                ), 100)
            }
            ,
            t.go2GooglePlay = function() {
                setTimeout((function() {
                        window.open("https://play.google.com/store/apps/details?id=com.wake.weexprd", "_blank")
                    }
                ), 100)
            }
            ,
            t.generateRandomString = function(e) {
                for (var t = "", r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", i = 0; i < e; i++)
                    t += r.charAt(Math.floor(62 * Math.random()));
                return t = I(t, 1, "5"),
                    t = I(t, 3, "7"),
                    t = I(t, 7, "8"),
                    t = I(t, 14, "9"),
                    t = I(t, 20, "7"),
                    t = I(t, 29, "6")
            }
        ;
        function I(e, t, r) {
            return e.substr(0, t) + r + e.substr(t + 1)
        }
        t.monitorWindows = function() {
            setTimeout((function(e) {
                    $(),
                        window.onresize = function() {
                            return $()
                        }
                        ,
                        window.onorientationchange = function() {
                            return $()
                        }
                }
            ))
        }
        ;
        var M = t.getICPUrls = function() {
            var e = (0,
                C.default)(f.default.mark((function e(t) {
                    var r, n, o, c, l;
                    return f.default.wrap((function(e) {
                            for (; ; )
                                switch (e.prev = e.next) {
                                    case 0:
                                        return r = "test" === t,
                                            n = "staging" === t || r ? "icp2.txt" : "icp.txt",
                                            o = "https://dswcnhr3lpzog.cloudfront.net/".concat(n = "rc" === t ? "icp-rc.txt" : n),
                                            c = "https://weex-httpdns.oss-cn-shanghai.aliyuncs.com/".concat(n),
                                            e.next = 9,
                                            x(o, c);
                                    case 9:
                                        return l = e.sent,
                                            e.abrupt("return", N(l));
                                    case 11:
                                    case "end":
                                        return e.stop()
                                }
                        }
                    ), e)
                }
            )));
            return function(t) {
                return e.apply(this, arguments)
            }
        }()
            , D = t.getOrientedUrls = function() {
            var e = (0,
                C.default)(f.default.mark((function e(t) {
                    var r, n, o, c, l;
                    return f.default.wrap((function(e) {
                            for (; ; )
                                switch (e.prev = e.next) {
                                    case 0:
                                        return r = "test" === t,
                                            n = "staging" === t || r ? "www2.txt" : "www.txt",
                                            o = "https://dswcnhr3lpzog.cloudfront.net/".concat(n = "rc" === t ? "www-rc.txt" : n),
                                            c = "https://weex-httpdns.oss-cn-shanghai.aliyuncs.com/".concat(n),
                                            e.next = 9,
                                            x(o, c);
                                    case 9:
                                        return l = e.sent,
                                            e.abrupt("return", N(l));
                                    case 11:
                                    case "end":
                                        return e.stop()
                                }
                        }
                    ), e)
                }
            )));
            return function(t) {
                return e.apply(this, arguments)
            }
        }()
            , B = t.Languages = ["en", "zh-CN", void 0, "ko", "vi", "zh-TW", P.languageKeyMap.fa]
            , U = t.LanguageCodes = ["en_US", "zh_CN", void 0, "ko_KR", "vi", "zh_TW", P.languageKeyMap.fa]
            , F = t.NavigatorLanguages = ["en-US", "zh-CN", void 0, "ko-KR", "vi", "zh-TW", P.languageKeyMap.fa]
            , j = t.getLocaleByPath = function(path, e) {
            var t, r, n = H(path) || e, o = path.split("/")[1], c = B.filter((function(e) {
                    return void 0 !== e
                }
            )).find((function(e) {
                    return e.toLowerCase() === o.toLowerCase()
                }
            ));
            return null !== (t = null !== (r = B[n]) && void 0 !== r ? r : c) && void 0 !== t ? t : K()
        }
            , H = t.getLanguageTypeByQuery = function(e) {
            var t, r = "?" + e.split("?")[1], n = new URLSearchParams(r).get("languageType");
            return null !== (t = n && Number(n)) && void 0 !== t ? t : null
        }
            , K = (t.getLanguageCodeByPath = function(e) {
                var t = j(e);
                return z(t)
            }
                ,
                t.getLocaleByLanguageType = function(e) {
                    var t;
                    return null !== (t = B[e]) && void 0 !== t ? t : B[0]
                }
                ,
                t.getLocaleByNavigator = function() {
                    var e, t = navigator.language, r = F.indexOf(t);
                    return null !== (e = B[r]) && void 0 !== e ? e : B[0]
                }
        )
            , W = t.getLanguageTypeByLocale = function(e) {
            var t;
            return null !== (t = B.indexOf(e)) && void 0 !== t ? t : 0
        }
            , z = (t.getLanguageCodeByLanguageType = function(e) {
                var t;
                return null !== (t = U[e || 0]) && void 0 !== t ? t : U[0]
            }
                ,
                t.getLanguageCodeByLocale = function(e) {
                    var t, r = B.indexOf(e) || 0;
                    return null !== (t = U[r]) && void 0 !== t ? t : U[0]
                }
        );
        function $() {
            return G.apply(this, arguments)
        }
        function G() {
            return (G = (0,
                C.default)(f.default.mark((function e() {
                    var t, r, n, o, c, l, d, v, h, m, y, _, w, C, S, k, T, E;
                    return f.default.wrap((function(e) {
                            for (; ; )
                                switch (e.prev = e.next) {
                                    case 0:
                                        if (!(window.innerWidth >= 768)) {
                                            e.next = 28;
                                            break
                                        }
                                        return t = window.location,
                                            t.href,
                                            r = t.hostname,
                                            n = t.search,
                                            t.pathname,
                                            o = new URLSearchParams(n),
                                            c = location.pathname.includes("register"),
                                            (l = new V).checkEnvironment(),
                                            d = "test" === l.env,
                                            v = "staging" === l.env,
                                            h = "rc" === l.env,
                                            e.next = 12,
                                            M(l.env);
                                    case 12:
                                        if (m = e.sent,
                                            y = m.includes(r),
                                            !c) {
                                            e.next = 28;
                                            break
                                        }
                                        return e.next = 17,
                                            D(l.env);
                                    case 17:
                                        _ = e.sent,
                                            w = _[Math.floor(Math.random() * _.length)],
                                        h && (w = "support." + w),
                                            C = d ? "test-agency-oriented.weex.tech" : v ? "stg-agency-oriented.weex.tech" : y ? w : h ? r.replace("support-", "www-") : r.replace("support.", "www."),
                                            S = "/register/",
                                            k = L.default.get("languageType"),
                                            T = j(location.pathname, k),
                                            k = W(T),
                                            d || v || y ? o.has("languageType") || o.set("jumpLanguage", k) : S = "/" + T + S,
                                            E = "https://".concat(C).concat(S, "?").concat(o.toString()),
                                            window.location.assign(E);
                                    case 28:
                                    case "end":
                                        return e.stop()
                                }
                        }
                    ), e)
                }
            )))).apply(this, arguments)
        }
        var V = t.EnvironmentCheck = function() {
            return (0,
                _.default)((function e() {
                    (0,
                        y.default)(this, e),
                        this.env = "unknown"
                }
            ), [{
                key: "checkEnvironment",
                value: function() {
                    var e = window.location.hostname;
                    ["test-support.weex.tech"].includes(e) ? this.env = "test" : ["localhost", "stg-support.weex.tech", "support.weikestg.info", "support.mir992.com"].includes(e) ? this.env = "staging" : ["support-rc.weex.tech", "support-rc.weex-rc.info", "support-rc.wtyku.cn"].includes(e) ? this.env = "rc" : this.env = "production"
                }
            }])
        }();
        t.countDownForDay = function(e, t, r) {
            var n = setInterval((function() {
                    e < 1e3 && (r(),
                        clearInterval(n));
                    var o = (0,
                        m.default)(e / 864e5)
                        , c = (0,
                        m.default)(e % 864e5 / 36e5)
                        , l = (0,
                        m.default)(e % 36e5 / 6e4)
                        , d = Math.floor(e % 6e4 / 1e3);
                    o <= 9 && (o = "0" + o),
                    c <= 9 && (c = "0" + c),
                    l <= 9 && (l = "0" + l),
                    d <= 9 && (d = "0" + d),
                        e -= 1e3,
                        t({
                            timer: n,
                            days: o,
                            hours: c,
                            minutes: l,
                            seconds: d
                        })
                }
            ), 1e3)
        }
    },
    655: function(e, t, r) {
        "use strict";
        var n = r(0)
            , o = r(2);
        n(t, "__esModule", {
            value: !0
        }),
            t.updateTrackingOrder = t.updatePresetTPSL = t.updatePlanOrTPSL = t.switchHoldMode = t.stopPlan = t.queryStopPlanPriceLimit = t.queryAllCurrentOrders = t.newStopPlan = t.modifyAutoAppendMargin = t.historyPlan = t.grantFundStatus = t.grantFund = t.getUserShareContent = t.getPosterSharingConfig = t.getPosterList = t.getFollowByProductCode = t.financialContractList = t.financialConditionList = t.currentPlan = t.contractRiskPreparation = t.contractRiskLeverage = t.contractRiskLevel = t.contractPositionHistoryFlow = t.contractPositionConditionList = t.contractPlace = t.contractOrderDetailList = t.contractOrderDetail = t.contractMarginInfo = t.contractLeverageList = t.contractLevelRate = t.contractHistoryOrder = t.contractFundingRate = t.contractFinanceList = t.contractFinanceConditionList = t.contractFinanceCapital = t.contractCurrentOrder = t.contractConditionList = t.contractCancel = t.contractBurstOrderDetail = t.contractAdjustMargin = t.closeTrackingOrder = t.closeAllTrackingOrder = t.closeAllPositionBatch = t.closeAllPosition = t.ckCanOnekeyClose = t.cancelPlan = t.cancelAll = t.arbitrageUserCheck = void 0;
        var c = o(r(6))
            , l = r(109)
            , d = r(82)
            , f = r(62)
            , v = (0,
            d.getInstance)("");
        t.contractHistoryOrder = function(data) {
            return v.post("/v1/if/contract/historyOrder", data)
        }
            ,
            t.contractOrderDetailList = function(data) {
                return v.post("/v1/if/contract/orderDetailList", data)
            }
            ,
            t.contractCurrentOrder = function(data) {
                return v.post("/v1/if/contract/currentOrder", data)
            }
            ,
            t.contractOrderDetail = function(data) {
                return v.post("/v1/if/contract/orderDetail", data)
            }
            ,
            t.contractCancel = function(data) {
                return v.post("/v1/if/contract/cancel", data)
            }
            ,
            t.contractPlace = function(data) {
                return 3 !== (arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 1) ? h(data, "/v1/if/contract/v2/place") : v.post("/v1/if/contract/placePlan", data)
            }
        ;
        function h(data, e, t) {
            var r = data.err_tips;
            return new c.default((function(n, o) {
                    var c = this;
                    v.post(e, data).then((function(e) {
                            if (e.code === f.config.error.SUCCESS && e.data && e.data.requestNos && e.data.requestNos.length > 0)
                                var o = setInterval((function(l) {
                                        v.post("/v1/if/contract/v2/queryByRequestNo", {
                                            type: t || data.type,
                                            contractTradeQueries: [{
                                                productCode: data.productCode || data.contractCloseAllPositionDtos[0].productCode,
                                                requestNos: e.data.requestNos
                                            }]
                                        }).then((function(e) {
                                                if (e.code === f.config.error.SUCCESS && e.data && e.data.queryContracts && e.data.queryContracts.length > 0 && 9 != e.data.queryContracts[0].extraCode) {
                                                    clearInterval(o);
                                                    var t = e.data.queryContracts[0]
                                                        , l = 0;
                                                    e.data.queryContracts.forEach((function(data) {
                                                            l += Number(data.extraCode)
                                                        }
                                                    )),
                                                    0 == l && (t.code ? "009999" === t.code ? (t.msg = c.$t("trade.operation.systemBusy"),
                                                        n(t)) : (t.msg += ", " + r,
                                                        n(t)) : (t.code = f.config.error.SUCCESS,
                                                        n(t)))
                                                }
                                            }
                                        ))
                                    }
                                ), 1500);
                            else
                                n(e)
                        }
                    )).catch((function(e) {
                            o(e)
                        }
                    ))
                }
            ))
        }
        t.contractBurstOrderDetail = function(data) {
            return v.post("/v1/if/contract/burstOrderDetail", data)
        }
            ,
            t.contractRiskPreparation = function(data) {
                return v.post("/v1/if/contract/riskPreparation", data)
            }
            ,
            t.contractRiskLevel = function(data) {
                return v.post("/v1/if/contract/riskLevel", data)
            }
            ,
            t.contractRiskLeverage = (0,
                l.cacheApiFunc)((function(data) {
                    return v.post("/v1/if/contract/leverage", data)
                }
            )),
            t.contractLeverageList = function(data) {
                return v.post("/v1/if/contract/leverageAll", data)
            }
            ,
            t.contractFundingRate = function(data) {
                return v.get("/v1/if/contract/v2/fundingRate", data)
            }
            ,
            t.contractFinanceList = function(data) {
                return v.post("/v1/if/contractFinance/financeList", data)
            }
            ,
            t.contractFinanceCapital = function(data) {
                return v.post("/v1/if/contractFinance/contractCapital", data)
            }
            ,
            t.contractFinanceConditionList = function(data) {
                return v.post("/v1/if/contractFinance/conditionList", data)
            }
            ,
            t.contractMarginInfo = function(data) {
                return v.post("/v1/if/contract/marginInfo", data)
            }
            ,
            t.contractAdjustMargin = function(data) {
                return v.post("/v1/if/contract/adjustMargin", data)
            }
            ,
            t.contractLevelRate = function(data) {
                return v.post("/v1/if/contract/levelRate", data)
            }
            ,
            t.contractConditionList = function(data) {
                return v.post("/v1/if/contract/conditionList", data)
            }
            ,
            t.contractPositionConditionList = function(data) {
                return v.post("/v1/if/contract/positionConditionList", data)
            }
            ,
            t.contractPositionHistoryFlow = function(data) {
                return v.post("/v1/if/contract/positionHistoryFlow", data)
            }
            ,
            t.queryAllCurrentOrders = function(data) {
                return v.post("/v1/if/contract/queryAllCurrentOrders", data)
            }
            ,
            t.grantFundStatus = function(data) {
                return v.post("/v1/if/contract/grantFundStatus", data)
            }
            ,
            t.grantFund = function(data) {
                return v.post("/v1/if/contract/grantFund", data)
            }
            ,
            t.currentPlan = function(data) {
                return v.post("/v1/if/contract/currentPlan", data)
            }
            ,
            t.historyPlan = function(data) {
                return v.post("/v1/if/contract/historyPlan", data)
            }
            ,
            t.cancelPlan = function(data) {
                return v.post("/v1/if/contract/cancelPlan", data)
            }
            ,
            t.stopPlan = function(data) {
                return v.post("/v1/if/contract/stopPlan", data)
            }
            ,
            t.newStopPlan = function(data) {
                return v.post("/v1/if/contract/newStopPlan", data)
            }
            ,
            t.modifyAutoAppendMargin = function(data) {
                return v.post("/v1/if/contract/modifyAutoAppendMargin", data)
            }
            ,
            t.updateTrackingOrder = function(data) {
                return v.post("/v1/if/trace/updateTrackingOrder", data)
            }
            ,
            t.closeTrackingOrder = function(data) {
                return v.post("/v1/if/trace/closeTrackingOrder", data)
            }
            ,
            t.closeAllTrackingOrder = function(data) {
                return h(data, "/v1/if/trace/v2/closeAllTrackingOrder", 2)
            }
            ,
            t.financialConditionList = function(data) {
                return v.post("/v1/if/contractFinance/financialConditionList", data)
            }
            ,
            t.financialContractList = function(data) {
                return v.post("/v1/if/contractFinance/financialList", data)
            }
            ,
            t.switchHoldMode = function(data) {
                return v.post("/v1/if/contract/switchHoldMode", data)
            }
            ,
            t.cancelAll = function(data) {
                return v.post("/v1/if/contract/cancelAll", data)
            }
            ,
            t.updatePresetTPSL = function(data) {
                return v.post("/v1/if/contract/updatePresetTPSL", data)
            }
            ,
            t.updatePlanOrTPSL = function(data) {
                return v.post("/v1/if/contract/updatePlanOrTPSL", data)
            }
            ,
            t.getFollowByProductCode = function(data) {
                return v.post("/v1/trace/tracer/getFollowByProductCode", data)
            }
            ,
            t.closeAllPosition = function(data) {
                return h(data, "/v1/if/contract/v3/closeAllPosition", 2)
            }
            ,
            t.queryStopPlanPriceLimit = function(data) {
                return v.post("/v1/if/contract/queryStopPlanPriceLimit", data)
            }
            ,
            t.arbitrageUserCheck = function(data) {
                return v.post("/v1/if/contract/arbitrageUserCheck", data)
            }
            ,
            t.closeAllPositionBatch = function(data) {
                return h(data, "/v1/if/contract/v2/closeAllPositionBatch", 2)
            }
            ,
            t.ckCanOnekeyClose = function(data) {
                return v.post("/v1/if/trace/checkTradeUser", data)
            }
            ,
            t.getPosterSharingConfig = function(data) {
                return v.post("/v1/user/public/getPosterSharingConfig", data)
            }
            ,
            t.getPosterList = function(data) {
                return v.get("/v1/user/public/listPosterSharingConfig", data)
            }
            ,
            t.getUserShareContent = function(data) {
                return v.post("/v1/user/public/getUserShareContent", data)
            }
    },
    666: function(e, t, r) {
        "use strict";
        r(0)(t, "__esModule", {
            value: !0
        }),
            t.transferAssets = t.leverFinanceDetail = t.leverExchangeLeft = t.financeList = t.conditionList = t.canTransfetAsset = t.basicSite = t.accountList = void 0;
        var n = (0,
            r(82).getInstance)("");
        t.financeList = function(data) {
            return n.post("/v1/if/finance/financeList", data)
        }
            ,
            t.conditionList = function(data) {
                return n.post("/v1/if/finance/conditionList", data)
            }
            ,
            t.leverExchangeLeft = function(data) {
                return n.post("/v1/if/lever/exchangeList", data)
            }
            ,
            t.transferAssets = function(data) {
                return n.post("/v1/assets/transfer", data)
            }
            ,
            t.basicSite = function(data) {
                return n.post("/v1/if/lever/basicSite", data)
            }
            ,
            t.leverFinanceDetail = function(data) {
                return n.post("/v1/if/finance/leverFinanceDetail", data)
            }
            ,
            t.accountList = function(data) {
                return n.post("/v1/assets/accountList", data)
            }
            ,
            t.canTransfetAsset = function(data) {
                return n.post("/v1/assets/getAssets", data)
            }
    },
    711: function(e, t, r) {
        "use strict";
        r(0)(t, "__esModule", {
            value: !0
        }),
            t.default = void 0;
        t.default = function(e) {
            e.store,
                e.route,
                e.redirect
        }
    },
    713: function(e, t, r) {
        "use strict";
        r(0)(t, "__esModule", {
            value: !0
        }),
            t.default = function(e) {
                var t = e.isHMR
                    , r = e.app
                    , n = e.store
                    , o = e.route
                    , c = e.params
                    , l = e.error
                    , d = (e.redirect,
                    r.i18n.fallbackLocale);
                if (t)
                    return;
                var f = c.lang;
                f || (f = n.state.locales.find((function(e) {
                        return new RegExp("^/".concat(e, "(?:/|$)")).test(o.fullPath)
                    }
                )) || d);
                if (!n.state.locales.includes(f))
                    return l({
                        message: "This page could not be found.",
                        statusCode: 404
                    });
                n.commit("SET_LANG", f),
                    r.i18n.setLocale(f),
                    r.i18n.locale = f
            }
    },
    874: function(e, t, r) {
        "use strict";
        var n = r(0)
            , o = r(2);
        n(t, "__esModule", {
            value: !0
        }),
            t.RESOLUTION_TO_SECOND_MAP = t.RESOLUTION_TO_NEW_CONTRACT = t.OVERRIDES_WHITE = t.OVERRIDES_BLACK = t.DEFAULT_BUTTON = t.CHARTING_LIBRARY = void 0,
            t.getDefaultChartConfig = function(symbol, e, t, r, n, o) {
                var S = (0,
                    v.getCurrentPathObj)()
                    , k = S.isSwapNew || S.isProGame ? [].concat(m, ["show_symbol_logos"]) : [].concat(m);
                return (0,
                    l.default)((0,
                    l.default)({
                    autosize: !0,
                    charts_storage_api_version: "1.1",
                    client_id: "weex.com",
                    container: "main_chart",
                    custom_css_url: (o === d.SUPPORTED_THEME[0] ? "night.css" : "white.css") + "?rand=20210706",
                    datafeed: t,
                    debug: f.TVDebugMode,
                    disabled_features: h,
                    drawings_access: {
                        type: "black",
                        tools: [{
                            name: "Regression Trend"
                        }]
                    },
                    enabled_features: k,
                    fullscreen: !1,
                    interval: e,
                    library_path: r,
                    loading_screen: o === d.SUPPORTED_THEME[0] ? {
                        backgroundColor: "#232541",
                        foregroundColor: "#5684F4"
                    } : {
                        backgroundColor: "#ffffff",
                        foregroundColor: "#5684F4"
                    },
                    locale: n,
                    overrides: (0,
                        c.default)({}, y, o === d.SUPPORTED_THEME[0] ? w : C),
                    studies_overrides: _,
                    symbol: symbol,
                    timezone: "Asia/Shanghai"
                }, "autosize", !0), "loading_screen", o === d.SUPPORTED_THEME[0] ? {
                    backgroundColor: "#17171D",
                    foregroundColor: "#5684F4"
                } : {
                    backgroundColor: "#ffffff",
                    foregroundColor: "#5684F4"
                })
            }
        ;
        var c = o(r(51))
            , l = o(r(7))
            , d = r(46)
            , f = r(8)
            , v = r(54)
            , h = ["border_around_the_chart", "compare_symbol", "display_market_status", "header_chart_type", "header_compare", "header_interval_dialog_button", "header_resolutions", "header_widget", , "legend_context_menu", "remove_library_container_border", "show_interval_dialog_on_key_press", "symbol_info", "symbol_search_hot_key", "volume_force_overlay"]
            , m = ["adaptive_logo", "dont_show_boolean_study_arguments", "hide_last_na_study_output", "keep_left_toolbar_visible_on_small_screens", "left_toolbar", "save_chart_properties_to_local_storage", "timeframes_toolbar"]
            , y = {
            "mainSeriesProperties.areaStyle.linewidth": 1,
            "mainSeriesProperties.areaStyle.priceSource": "close",
            "mainSeriesProperties.barStyle.barColorsOnPrevClose": !1,
            "mainSeriesProperties.barStyle.dontDrawOpen": !1,
            "mainSeriesProperties.candleStyle.barColorsOnPrevClose": !1,
            "mainSeriesProperties.candleStyle.drawBorder": !0,
            "mainSeriesProperties.candleStyle.drawWick": !0,
            "mainSeriesProperties.haStyle.barColorsOnPrevClose": !1,
            "mainSeriesProperties.haStyle.drawBorder": !0,
            "mainSeriesProperties.haStyle.drawWick": !0,
            "mainSeriesProperties.hollowCandleStyle.drawBorder": !0,
            "mainSeriesProperties.hollowCandleStyle.drawWick": !0,
            "mainSeriesProperties.lineStyle.linewidth": 1,
            "mainSeriesProperties.lineStyle.priceSource": "close",
            "mainSeriesProperties.showCountdown": !1,
            "mainSeriesProperties.style": 1,
            "paneProperties.legendProperties.showLegend": !1,
            "paneProperties.legendProperties.showSeriesOHLC": !0,
            "paneProperties.legendProperties.showSeriesTitle": !0,
            "paneProperties.legendProperties.showStudyArguments": !0,
            "paneProperties.legendProperties.showStudyTitles": !0,
            "paneProperties.legendProperties.showStudyValues": !0,
            volumePaneSize: "medium"
        }
            , _ = {
            "volume.volume ma.transparency": 0,
            "volume.show ma": !1
        }
            , w = t.OVERRIDES_BLACK = {
            "mainSeriesProperties.areaStyle.color1": "rgba(122, 152, 247, .1)",
            "mainSeriesProperties.areaStyle.color2": "rgba(122, 152, 247, .02)",
            "mainSeriesProperties.areaStyle.linecolor": "#CCCCCC",
            "mainSeriesProperties.barStyle.downColor": "#EC4551",
            "mainSeriesProperties.barStyle.upColor": "#28C452",
            "mainSeriesProperties.candleStyle.borderColor": "#4e5b85",
            "mainSeriesProperties.candleStyle.borderDownColor": "#EC4551",
            "mainSeriesProperties.candleStyle.borderUpColor": "#28C452",
            "mainSeriesProperties.candleStyle.downColor": "#EC4551",
            "mainSeriesProperties.candleStyle.upColor": "#28C452",
            "mainSeriesProperties.candleStyle.wickDownColor": "#EC4551",
            "mainSeriesProperties.candleStyle.wickUpColor": "#28C452",
            "mainSeriesProperties.haStyle.borderColor": "#4e5b85",
            "mainSeriesProperties.haStyle.borderDownColor": "#EC4551",
            "mainSeriesProperties.haStyle.borderUpColor": "#28C452",
            "mainSeriesProperties.haStyle.downColor": "#EC4551",
            "mainSeriesProperties.haStyle.upColor": "#28C452",
            "mainSeriesProperties.haStyle.wickColor": "#4e5b85",
            "mainSeriesProperties.hollowCandleStyle.borderColor": "#4e5b85",
            "mainSeriesProperties.hollowCandleStyle.borderDownColor": "#EC4551",
            "mainSeriesProperties.hollowCandleStyle.borderUpColor": "#28C452",
            "mainSeriesProperties.hollowCandleStyle.downColor": "#EC4551",
            "mainSeriesProperties.hollowCandleStyle.upColor": "#589065",
            "mainSeriesProperties.lineStyle.color": "#4e5b85",
            "paneProperties.background": "#0F1115",
            "paneProperties.crossHairProperties.color": "#697281",
            "paneProperties.separatorColor": "#17191E",
            "paneProperties.vertGridProperties.color": "#1E1E24",
            "paneProperties.horzGridProperties.color": "#1E1E24",
            "scalesProperties.lineColor": "#232329",
            "scalesProperties.textColor": "#8B8B8E"
        }
            , C = t.OVERRIDES_WHITE = (0,
            l.default)((0,
            l.default)((0,
            l.default)({
            "mainSeriesProperties.areaStyle.color1": "rgba(122, 152, 247, .1)",
            "mainSeriesProperties.areaStyle.color2": "rgba(122, 152, 247, .02)",
            "mainSeriesProperties.areaStyle.linecolor": "#CCCCCC",
            "mainSeriesProperties.barStyle.downColor": "#EC4551",
            "mainSeriesProperties.barStyle.upColor": "#28C452",
            "mainSeriesProperties.candleStyle.borderColor": "#ffffff",
            "mainSeriesProperties.candleStyle.borderDownColor": "#EC4551",
            "mainSeriesProperties.candleStyle.borderUpColor": "#28C452",
            "mainSeriesProperties.candleStyle.downColor": "#EC4551",
            "mainSeriesProperties.candleStyle.upColor": "#28C452",
            "mainSeriesProperties.candleStyle.wickDownColor": "#EC4551",
            "mainSeriesProperties.candleStyle.wickUpColor": "#28C452",
            "mainSeriesProperties.haStyle.borderColor": "#ffffff",
            "mainSeriesProperties.haStyle.borderDownColor": "#EC4551",
            "mainSeriesProperties.haStyle.borderUpColor": "#28C452",
            "mainSeriesProperties.haStyle.downColor": "#EC4551",
            "mainSeriesProperties.haStyle.upColor": "#28C452",
            "mainSeriesProperties.haStyle.wickColor": "#ffffff",
            "mainSeriesProperties.hollowCandleStyle.borderColor": "#ffffff",
            "mainSeriesProperties.hollowCandleStyle.borderDownColor": "#EC4551",
            "mainSeriesProperties.hollowCandleStyle.borderUpColor": "#28C452",
            "mainSeriesProperties.hollowCandleStyle.downColor": "#EC4551",
            "mainSeriesProperties.hollowCandleStyle.upColor": "#589065",
            "mainSeriesProperties.lineStyle.color": "#ffffff",
            "paneProperties.background": "#ffffff",
            "paneProperties.crossHairProperties.color": "#697281",
            "paneProperties.horzGridProperties.color": "#F9FAFC",
            "paneProperties.legendProperties.showLegend": !0,
            "paneProperties.legendProperties.showSeriesOHLC": !0,
            "paneProperties.legendProperties.showSeriesTitle": !0,
            "paneProperties.legendProperties.showStudyArguments": !0,
            "paneProperties.legendProperties.showStudyTitles": !0,
            "paneProperties.legendProperties.showStudyValues": !0,
            "paneProperties.vertGridProperties.color": "#F3F3F3"
        }, "paneProperties.horzGridProperties.color", "#F3F3F3"), "scalesProperties.lineColor", "#E8E8E9"), "scalesProperties.textColor", "#8B8B8E");
        t.DEFAULT_BUTTON = [{
            slug: "realtime",
            resolution: "1",
            chartType: 3,
            isMobile: !0
        }, {
            slug: "1m",
            resolution: "1"
        }, {
            slug: "5m",
            resolution: "5"
        }, {
            slug: "15m",
            resolution: "15"
        }, {
            slug: "30m",
            resolution: "30"
        }, {
            slug: "1H",
            resolution: "60",
            isMobile: !0
        }, {
            slug: "4H",
            resolution: "240",
            isMobile: !0
        }, {
            slug: "12H",
            resolution: "720",
            isMobile: !0
        }, {
            slug: "1D",
            resolution: "1D",
            isMobile: !0
        }, {
            slug: "1W",
            resolution: "1W"
        }],
            t.RESOLUTION_TO_SECOND_MAP = {
                1: "60",
                5: "300",
                15: "900",
                30: "1800",
                60: "3600",
                240: "14400",
                720: "43200",
                "1D": "86400",
                "1W": "604800"
            },
            t.RESOLUTION_TO_NEW_CONTRACT = {
                1: "MINUTE_1",
                5: "MINUTE_5",
                15: "MINUTE_15",
                30: "MINUTE_30",
                60: "HOUR_1",
                120: "HOUR_2",
                240: "HOUR_4",
                360: "HOUR_6",
                720: "HOUR_12",
                "1D": "DAY_1",
                "1W": "WEEK_1",
                "1M": "MONTH_1"
            },
            t.CHARTING_LIBRARY = "/charting_library/"
    },
    910: function(e, t, r) {
        var map = {
            "./ar-AR": 140,
            "./ar-AR.js": 140,
            "./ar-AR.json": 343,
            "./de-DE": 141,
            "./de-DE.js": 141,
            "./de-DE.json": 344,
            "./en": 107,
            "./en.js": 107,
            "./en.json": 223,
            "./fa-IR": 142,
            "./fa-IR.js": 142,
            "./fa-IR.json": 345,
            "./ko-kr": 143,
            "./ko-kr.js": 143,
            "./ko-kr.json": 346,
            "./ru-RU": 144,
            "./ru-RU.js": 144,
            "./ru-RU.json": 347,
            "./tr-TR": 145,
            "./tr-TR.js": 145,
            "./tr-TR.json": 348,
            "./uk-UK": 146,
            "./uk-UK.js": 146,
            "./uk-UK.json": 349,
            "./vi": 147,
            "./vi.js": 147,
            "./vi.json": 350,
            "./zh-cn": 148,
            "./zh-cn.js": 148,
            "./zh-cn.json": 351,
            "./zh-tw": 149,
            "./zh-tw.js": 149,
            "./zh-tw.json": 352
        };
        function n(e) {
            var t = o(e);
            return r(t)
        }
        function o(e) {
            if (!r.o(map, e)) {
                var t = new Error("Cannot find module '" + e + "'");
                throw t.code = "MODULE_NOT_FOUND",
                    t
            }
            return map[e]
        }
        n.keys = function() {
            return Object.keys(map)
        }
            ,
            n.resolve = o,
            e.exports = n,
            n.id = 910
    },
    940: function(e, t, r) {
        "use strict";
        var n = r(27)
            , o = r(11)
            , c = r(16)
            , l = r(9)
            , d = r(18)
            , f = r(17)
            , v = r(0)
            , h = r(34)
            , m = r(2);
        v(t, "__esModule", {
            value: !0
        }),
            t.default = void 0;
        var y = m(r(14))
            , _ = m(r(41))
            , w = m(r(6))
            , C = m(r(44))
            , S = m(r(51))
            , k = m(r(7))
            , T = m(r(15))
            , L = m(r(95))
            , E = r(54)
            , P = m(r(98))
            , A = m(r(49))
            , O = r(8)
            , N = function(e, t) {
            if (!t && e && e.__esModule)
                return e;
            if (null === e || "object" != n(e) && "function" != typeof e)
                return {
                    default: e
                };
            var r = R(t);
            if (r && r.has(e))
                return r.get(e);
            var o = {
                __proto__: null
            }
                , a = v && l;
            for (var u in e)
                if ("default" !== u && {}.hasOwnProperty.call(e, u)) {
                    var i = a ? l(e, u) : null;
                    i && (i.get || i.set) ? v(o, u, i) : o[u] = e[u]
                }
            return o.default = e,
            r && r.set(e, o),
                o
        }(r(45))
            , x = r(170);
        function R(e) {
            if ("function" != typeof h)
                return null;
            var t = new h
                , r = new h;
            return (R = function(e) {
                    return e ? r : t
                }
            )(e)
        }
        function I(e, t) {
            var r = o(e);
            if (c) {
                var n = c(e);
                t && (n = n.filter((function(t) {
                        return l(e, t).enumerable
                    }
                ))),
                    r.push.apply(r, n)
            }
            return r
        }
        function M(e) {
            for (var t = 1; t < arguments.length; t++) {
                var r = null != arguments[t] ? arguments[t] : {};
                t % 2 ? I(Object(r), !0).forEach((function(t) {
                        (0,
                            k.default)(e, t, r[t])
                    }
                )) : d ? f(e, d(r)) : I(Object(r)).forEach((function(t) {
                        v(e, t, l(r, t))
                    }
                ))
            }
            return e
        }
        var D = L.default.create({
            timeout: O.isClient ? 2e4 : 2e5
        });
        D.interceptors.request.use(function() {
            var e = (0,
                T.default)(y.default.mark((function e(t) {
                    var r, n;
                    return y.default.wrap((function(e) {
                            for (; ; )
                                switch (e.prev = e.next) {
                                    case 0:
                                        if ((r = O.isClient && N.default.get(N.TokenKey.CC_TOKEN)) && (t.headers["u-token"] = r),
                                        !O.isProduction && !O.isRC) {
                                            e.next = 8;
                                            break
                                        }
                                        return e.next = 5,
                                            (0,
                                                E.getNewAPIUrl)();
                                    case 5:
                                        e.t0 = e.sent,
                                            e.next = 9;
                                        break;
                                    case 8:
                                        e.t0 = "https://http-gateway1.weex.com/";
                                    case 9:
                                        return (n = e.t0) && n.length > 0 && "/" !== n && (t.baseURL = n),
                                            t.startTime = (0,
                                                _.default)(),
                                            e.abrupt("return", t);
                                    case 13:
                                    case "end":
                                        return e.stop()
                                }
                        }
                    ), e)
                }
            )));
            return function(t) {
                return e.apply(this, arguments)
            }
        }(), (function(e) {
                var t = (0,
                    x.getI18n)();
                return (0,
                    P.default)({
                    type: "error",
                    message: t.timeout
                }),
                    w.default.resolve(e)
            }
        )),
            D.interceptors.response.use((function(e) {
                    var t = (0,
                        _.default)() - e.config.startTime;
                    (0,
                        A.default)("ajax_response_time", e.request.responseURL, {
                        duration: t
                    });
                    var r = e.status
                        , data = e.data;
                    return 200 === r ? ("SUCCESS" !== data.code && (0,
                        A.default)("ajax_error", e.request.responseURL, {
                        ext: data.msg
                    }),
                        M(M({}, data), {}, {
                            code: "SUCCESS" === data.code ? "00000" : data.code
                        })) : e
                }
            ), (function(e) {
                    var t, r, n, o, c = e && e.response ? null === (t = e.response.request) || void 0 === t ? void 0 : t.responseURL : null === (r = e.config) || void 0 === r ? void 0 : r.url, l = e && e.response ? (0,
                        C.default)(null === (n = e.response) || void 0 === n ? void 0 : n.data) : e.code;
                    (0,
                        A.default)("ajax_error", c, {
                        ext: l
                    });
                    var d, f = (0,
                        x.getI18n)();
                    if (e.response)
                        switch (e.response.status) {
                            case 504:
                            case 404:
                                (0,
                                    P.default)({
                                    type: "error",
                                    message: f.notfound
                                });
                                break;
                            case 403:
                                (0,
                                    P.default)({
                                    type: "error",
                                    message: f.forbidden
                                });
                                break;
                            case 401:
                                (0,
                                    P.default)({
                                    type: "error",
                                    message: f.expired
                                }),
                                    window.$nuxt.$logout(window.$nuxt.context).then((function() {
                                            window.location.href = "/".concat(f.locale, "login")
                                        }
                                    ));
                                break;
                            case 500:
                                (0,
                                    P.default)({
                                    type: "error",
                                    message: f.unknow
                                });
                                break;
                            default:
                                null !== (o = e.response) && void 0 !== o && null !== (o = o.data) && void 0 !== o && o.msg ? (0,
                                    P.default)({
                                    type: "error",
                                    message: e.response.data.msg
                                }) : (0,
                                    P.default)({
                                    type: "error",
                                    message: f.unknow
                                })
                        }
                    else
                        "ECONNABORTED" === e.code && null != e && null !== (d = e.message) && void 0 !== d && d.includes("timeout") && (0,
                            P.default)({
                            type: "error",
                            message: f.timeout
                        });
                    return w.default.reject(e)
                }
            ));
        var B = {
            post: function(e, data) {
                var t, n = r(166)(O.isClient && (null === (t = window) || void 0 === t || null === (t = t.$nuxt) || void 0 === t || null === (t = t.$store) || void 0 === t || null === (t = t.state) || void 0 === t ? void 0 : t.locale) || "en");
                return data = (0,
                    S.default)({}, data, {
                    languageType: n.lang
                }),
                    D.post(e, data || {})
            },
            get: function(e, data) {
                var t, n = r(166)(O.isClient && (null === (t = window) || void 0 === t || null === (t = t.$nuxt) || void 0 === t || null === (t = t.$store) || void 0 === t || null === (t = t.state) || void 0 === t ? void 0 : t.locale) || "en");
                return data = (0,
                    S.default)({}, data, {
                    languageType: n.lang
                }),
                    D.get(e, data ? {
                        params: data
                    } : {})
            }
        };
        t.default = B
    },
    941: function(e, t, r) {
        "use strict";
        var n = r(0)
            , o = r(2);
        n(t, "__esModule", {
            value: !0
        }),
            t.default = void 0;
        var c = o(r(942))
            , l = o(r(943))
            , d = o(r(944))
            , f = o(r(945))
            , v = o(r(946))
            , h = o(r(947))
            , m = o(r(948))
            , y = o(r(949))
            , _ = o(r(950))
            , w = o(r(951))
            , C = o(r(952))
            , S = o(r(953))
            , k = o(r(954))
            , T = o(r(955))
            , L = o(r(956))
            , E = o(r(957))
            , P = o(r(958))
            , A = o(r(959))
            , O = o(r(960))
            , N = o(r(961))
            , x = o(r(962))
            , R = o(r(963))
            , I = o(r(964))
            , M = o(r(965))
            , D = o(r(966))
            , B = o(r(967))
            , U = {
            contractList: c.default,
            klineHistoryList: l.default,
            account: f.default,
            accountAsset: d.default,
            createOrder: h.default,
            moveMargin: v.default,
            getHistoryOrder: m.default,
            getCurrentOrder: y.default,
            cancelOrderById: _.default,
            cancelAllOrder: w.default,
            closeAllPosition: C.default,
            reversePosition: S.default,
            updateLeverage: k.default,
            updateMode: T.default,
            updateAutoAppendMargin: L.default,
            adjustIsolatedPositionMargin: E.default,
            updateOrderTriggerPrice: P.default,
            updateOrderLimitPrice: D.default,
            updateOpenTpSlTriggerPrice: A.default,
            getHistoryOrderDetailById: O.default,
            getHistoryPositionList: M.default,
            getFinancialConditionList: N.default,
            getMultiLanguageItem: x.default,
            checkContractEnableDisplay: R.default,
            getFundingHistory: I.default,
            getContractPlate: B.default
        };
        t.default = U
    },
    942: function(e, t, r) {
        "use strict";
        var n = r(11)
            , o = r(16)
            , c = r(9)
            , l = r(18)
            , d = r(17)
            , f = r(0)
            , v = r(2);
        f(t, "__esModule", {
            value: !0
        }),
            t.default = void 0;
        var h = v(r(6))
            , m = v(r(30))
            , y = v(r(7))
            , _ = r(355)
            , w = r(8);
        function C(e, t) {
            var r = n(e);
            if (o) {
                var l = o(e);
                t && (l = l.filter((function(t) {
                        return c(e, t).enumerable
                    }
                ))),
                    r.push.apply(r, l)
            }
            return r
        }
        var S = {
            productName: "contractName",
            baseCoinId: "baseCoinId",
            minLeverage: "displayMinLeverage",
            maxLeverage: "displayMaxLeverage",
            settleTime: "fundingDailySettleTime",
            webMarginScale: "displayWebLeverageSettingList",
            appMarginScale: "displayAppLeverageSettingList",
            productCode: "extraConfig.productCode",
            iconUrl: "extraConfig.iconUrl",
            preValue: "extraConfig.preValue",
            forwardContractFlag: "extraConfig.forwardContractFlag",
            status: "extraConfig.status",
            indexDataSource: "extraConfig.indexDataSource",
            contractSort: "extraConfig.contractSort",
            simulation: "extraConfig.simulation",
            quoteCoinId: "quoteCoinId",
            placeConfig: "placeConfig",
            priceUseFeeRate: "priceUseFeeRate",
            newP: "displayNew",
            hotP: "displayHot",
            buyLimitPriceRatio: "buyLimitPriceRatio",
            sellLimitPriceRatio: "sellLimitPriceRatio",
            openCostUpRatio: "frozenMarginFloatingRatio",
            openCostFeeUpRatio: "frozenFillFeeFloatingRatio",
            longLimitBurstPrice: "longLimitLiquidatePrice",
            shortLimitBurstPrice: "shortLimitLiquidatePrice",
            minTradingUnit: "stepSize",
            trackingSupport: "supportTracing",
            planMarketPrice: "supportPlanMarket",
            pricedSymbol: "",
            baseSymbol: "",
            quoteCoinSymbol: "",
            quoteSymbol: "",
            feeRate: "feeRate",
            dailySettleTimes: "",
            marketPriceOpenLimitSize: "",
            marketPriceCloseLimitSize: "",
            supportSharedMode: "",
            supportCrossMode: "",
            supportIsolatedMode: "",
            supportCombinedMode: "",
            supportSeparatedMode: "",
            limitPriceFlag: "",
            priceEndStep: "",
            autoAppendMargin: "",
            priceUseCapitalRate: "",
            warningCoefficient: "",
            reduceChangePriceRatio: "",
            contractId: "contractId",
            tickSize: "tickSize",
            riskLimitTierList: "riskLimitTierList",
            quoteCoinStepSize: "",
            enableDisplay: "enableDisplay",
            takerFeeRate: "takerFeeRate",
            makerFeeRate: "makerFeeRate",
            frozenMarginFloatingRatio: "frozenMarginFloatingRatio",
            frozenFillFeeFloatingRatio: "frozenFillFeeFloatingRatio",
            markPrice: "markPrice"
        }
            , k = {
            req: function() {
                return function(e) {
                    for (var t = 1; t < arguments.length; t++) {
                        var r = null != arguments[t] ? arguments[t] : {};
                        t % 2 ? C(Object(r), !0).forEach((function(t) {
                                (0,
                                    y.default)(e, t, r[t])
                            }
                        )) : l ? d(e, l(r)) : C(Object(r)).forEach((function(t) {
                                f(e, t, c(r, t))
                            }
                        ))
                    }
                    return e
                }({}, {
                    languageType: 1,
                    sign: "SIGN",
                    timeZone: "string"
                })
            },
            res: function(e) {
                return new h.default((function(t, r) {
                        var code = e.code
                            , n = e.data
                            , o = n.coinList
                            , c = n.contractList
                            , l = e.responseTime
                            , d = [];
                        if (w.isClient) {
                            var f = window.Object.entries(S);
                            c.forEach((function(e) {
                                    var t = {}
                                        , r = o.find((function(t) {
                                            return t.coinId === e.quoteCoinId
                                        }
                                    ))
                                        , n = o.find((function(t) {
                                            return t.coinId === e.baseCoinId
                                        }
                                    ));
                                    f.forEach((function(o) {
                                            var c = (0,
                                                m.default)(o, 2)
                                                , l = c[0]
                                                , d = c[1];
                                            switch (!0) {
                                                case "pricedSymbol" === l:
                                                    t.pricedSymbol = r.coinName;
                                                    break;
                                                case "quoteCoinSymbol" === l:
                                                    t.quoteCoinSymbol = r.coinName;
                                                    break;
                                                case "quoteCoinStepSize" === l:
                                                    t.quoteCoinStepSize = r.stepSize;
                                                    break;
                                                case "quoteSymbol" === l:
                                                    t.quoteSymbol = r.coinName;
                                                    break;
                                                case "baseSymbol" === l:
                                                    t.baseSymbol = n.coinName;
                                                    break;
                                                case "feeRate" === l:
                                                    t.feeRate = Math.max(Number(e.takerFeeRate), Number(e.makerFeeRate));
                                                    break;
                                                case "dailySettleTimes" === l:
                                                    t.dailySettleTimes = e.fundingDailySettleTime.length;
                                                    break;
                                                case "marketPriceOpenLimitSize" === l:
                                                    t.marketOpenLimitSize = e.marketOpenLimitSize;
                                                    break;
                                                case "marketPriceCloseLimitSize" === l:
                                                    t.marketPriceCloseLimitSize = e.marketCloseLimitSize;
                                                    break;
                                                case "supportSharedMode" === l:
                                                    t.supportSharedMode = !e.supportMarginModeList.length || e.supportMarginModeList.includes("SHARED") || e.supportMarginModeList.includes("CROSS");
                                                    break;
                                                case "supportCrossMode" === l:
                                                    t.supportCrossMode = !e.supportMarginModeList.length || e.supportMarginModeList.includes("SHARED") || e.supportMarginModeList.includes("CROSS");
                                                    break;
                                                case "supportIsolatedMode" === l:
                                                    t.supportIsolatedMode = !e.supportMarginModeList.length || e.supportMarginModeList.includes("ISOLATED");
                                                    break;
                                                case "supportCombinedMode" === l:
                                                    t.supportCombinedMode = !e.supportSeparatedModeList.length || e.supportSeparatedModeList.includes("COMBINED");
                                                    break;
                                                case "supportSeparatedMode" === l:
                                                    t.supportSeparatedMode = !e.supportSeparatedModeList.length || e.supportSeparatedModeList.includes("SEPARATED");
                                                    break;
                                                case "markPrice" === l:
                                                    t.markPrice = "";
                                                    break;
                                                default:
                                                    if (d) {
                                                        var f = d.split(".");
                                                        t[l] = 1 === f.length ? e[f[0]] : e[f[0]][f[1]]
                                                    }
                                            }
                                            d && (t[l] = (0,
                                                _.toNumberOrBoolean)(t[l]))
                                        }
                                    )),
                                        t.stepSize = e.stepSize,
                                        d.push(t)
                                }
                            ))
                        }
                        t({
                            code: code,
                            data: {
                                coinList: o,
                                contractList: d
                            },
                            restime: l
                        })
                    }
                ))
            }
        };
        t.default = k
    },
    943: function(e, t, r) {
        "use strict";
        var n = r(11)
            , o = r(16)
            , c = r(9)
            , l = r(18)
            , d = r(17)
            , f = r(0)
            , v = r(2);
        f(t, "__esModule", {
            value: !0
        }),
            t.default = void 0;
        var h = v(r(6))
            , m = v(r(7));
        function y(e, t) {
            var r = n(e);
            if (o) {
                var l = o(e);
                t && (l = l.filter((function(t) {
                        return c(e, t).enumerable
                    }
                ))),
                    r.push.apply(r, l)
            }
            return r
        }
        function _(e) {
            for (var t = 1; t < arguments.length; t++) {
                var r = null != arguments[t] ? arguments[t] : {};
                t % 2 ? y(Object(r), !0).forEach((function(t) {
                        (0,
                            m.default)(e, t, r[t])
                    }
                )) : l ? d(e, l(r)) : y(Object(r)).forEach((function(t) {
                        f(e, t, c(r, t))
                    }
                ))
            }
            return e
        }
        var w = {
            req: function(data) {
                return _(_({}, {
                    languageType: 1,
                    sign: "SIGN",
                    timeZone: "string"
                }), data)
            },
            res: function(e) {
                return new h.default((function(t, r) {
                        var code = e.code
                            , n = e.data
                            , o = n.dataList
                            , c = n.nextFlag
                            , l = n.nextKey
                            , d = e.responseTime
                            , f = [];
                        if (void 0 === o)
                            return t(e);
                        o.forEach((function(e) {
                                var t = {
                                    open: Number(e.open),
                                    close: Number(e.close),
                                    high: Number(e.high),
                                    low: Number(e.low),
                                    volume: Number(e.size),
                                    time: Number(e.klineTime),
                                    timestamp: Number(e.klineTime),
                                    contractId: e.contractId
                                };
                                f.push(t)
                            }
                        )),
                            t({
                                code: code,
                                data: {
                                    dataList: f,
                                    nextFlag: c,
                                    nextKey: l
                                },
                                restime: d
                            })
                    }
                ))
            }
        };
        t.default = w
    },
    944: function(e, t, r) {
        "use strict";
        var n = r(11)
            , o = r(16)
            , c = r(9)
            , l = r(18)
            , d = r(17)
            , f = r(0)
            , v = r(2);
        f(t, "__esModule", {
            value: !0
        }),
            t.default = void 0;
        var h = v(r(6))
            , m = v(r(7));
        function y(e, t) {
            var r = n(e);
            if (o) {
                var l = o(e);
                t && (l = l.filter((function(t) {
                        return c(e, t).enumerable
                    }
                ))),
                    r.push.apply(r, l)
            }
            return r
        }
        function _(e) {
            for (var t = 1; t < arguments.length; t++) {
                var r = null != arguments[t] ? arguments[t] : {};
                t % 2 ? y(Object(r), !0).forEach((function(t) {
                        (0,
                            m.default)(e, t, r[t])
                    }
                )) : l ? d(e, l(r)) : y(Object(r)).forEach((function(t) {
                        f(e, t, c(r, t))
                    }
                ))
            }
            return e
        }
        var w = {
            req: function(data) {
                return _(_({}, {
                    languageType: 1,
                    sign: "SIGN",
                    timeZone: "string"
                }), data)
            },
            res: function(e) {
                return new h.default((function(t, r) {
                        t(e)
                    }
                ))
            }
        };
        t.default = w
    },
    945: function(e, t, r) {
        "use strict";
        var n = r(11)
            , o = r(16)
            , c = r(9)
            , l = r(18)
            , d = r(17)
            , f = r(0)
            , v = r(2);
        f(t, "__esModule", {
            value: !0
        }),
            t.default = void 0;
        var h = v(r(6))
            , m = v(r(7));
        function y(e, t) {
            var r = n(e);
            if (o) {
                var l = o(e);
                t && (l = l.filter((function(t) {
                        return c(e, t).enumerable
                    }
                ))),
                    r.push.apply(r, l)
            }
            return r
        }
        function _(e) {
            for (var t = 1; t < arguments.length; t++) {
                var r = null != arguments[t] ? arguments[t] : {};
                t % 2 ? y(Object(r), !0).forEach((function(t) {
                        (0,
                            m.default)(e, t, r[t])
                    }
                )) : l ? d(e, l(r)) : y(Object(r)).forEach((function(t) {
                        f(e, t, c(r, t))
                    }
                ))
            }
            return e
        }
        var w = {
            req: function(data) {
                return _(_({}, {
                    languageType: 1,
                    sign: "SIGN",
                    timeZone: "string"
                }), data)
            },
            res: function(e) {
                return new h.default((function(t, r) {
                        t(e)
                    }
                ))
            }
        };
        t.default = w
    },
    946: function(e, t, r) {
        "use strict";
        var n = r(0)
            , o = r(2);
        n(t, "__esModule", {
            value: !0
        }),
            t.default = void 0;
        var c = o(r(6))
            , l = o(r(30))
            , d = r(37)
            , f = r(8)
            , v = {
            productCode: "coinId",
            amount: "collateralAmount"
        }
            , h = {
            req: function(data) {
                var e = {};
                f.isClient && window.Object.entries(data).forEach((function(t) {
                        var r = (0,
                            l.default)(t, 2)
                            , n = r[0]
                            , o = r[1];
                        v[n] !== d.ABANDONED && (e[v[n] || n] = o)
                    }
                ));
                return e
            },
            res: function(e) {
                return new c.default((function(t, r) {
                        t(e)
                    }
                ))
            }
        };
        t.default = h
    },
    947: function(e, t, r) {
        "use strict";
        var n = r(0)
            , o = r(2);
        n(t, "__esModule", {
            value: !0
        }),
            t.default = void 0;
        var c = o(r(6))
            , l = o(r(30))
            , d = r(37)
            , f = r(355)
            , v = r(8)
            , h = {
            marginMode: "marginMode",
            separatedMode: "separatedMode",
            separatedOpenOrderId: "separatedOpenOrderId",
            positionSide: "positionSide",
            stepSize: d.ABANDONED,
            orderType: d.ABANDONED,
            priceByTriggerType: d.ABANDONED,
            matchType: d.ABANDONED,
            side: d.ABANDONED,
            type: d.ABANDONED,
            amount: d.ABANDONED,
            tradePrice: d.ABANDONED,
            executePrice: d.ABANDONED,
            timeInForce: d.ABANDONED,
            planType: d.ABANDONED,
            stopPrice: d.ABANDONED,
            triggerType: d.ABANDONED,
            delegateCount: d.ABANDONED
        };
        function m(e) {
            return Number(e) ? 1 === Number(e) ? "LAST_PRICE" : "MARK_PRICE" : "LAST_PRICE"
        }
        var y = {
            req: function(data) {
                data.stepSize;
                var e = data.orderType
                    , t = {};
                if (v.isClient) {
                    var r = window.Object.entries(data);
                    t.clientOrderId = (0,
                        f.generateUniqueString)(),
                        t.reduceOnly = !1,
                        t.size = Number(data.amount),
                        t.orderSide = data.orderSide;
                    if (!["LIMIT", "MARKET", "PLAN_LIMIT", "PLAN_MARKET", "POSITION_TP_SL", "TAKE_PROFIT_LIMIT", "TAKE_PROFIT_MARKET", "STOP_MARKET", "STOP_LIMIT"].includes(e))
                        return;
                    switch (e) {
                        case "PLAN_LIMIT":
                        case "PLAN_MARKET":
                            if (void 0 === data.priceByTriggerType)
                                return;
                            var n = {
                                PLAN_LIMIT: {
                                    tp: "TAKE_PROFIT_LIMIT",
                                    sl: "STOP_LIMIT"
                                },
                                PLAN_MARKET: {
                                    tp: "TAKE_PROFIT_MARKET",
                                    sl: "STOP_MARKET"
                                }
                            };
                            "BUY" === t.orderSide ? t.type = Number(data.triggerPrice) > Number(data.priceByTriggerType) ? n[e].sl : n[e].tp : t.type = Number(data.priceByTriggerType) > Number(data.triggerPrice) ? n[e].sl : n[e].tp,
                                t.triggerPrice = data.triggerPrice,
                                t.triggerPriceType = m(data.triggerType),
                                t.orderSource = "PLAN";
                            break;
                        case "TAKE_PROFIT_MARKET":
                        case "STOP_MARKET":
                        case "TAKE_PROFIT_LIMIT":
                        case "STOP_LIMIT":
                            t.type = e,
                                t.positionTpsl = !0,
                                t.reduceOnly = !0,
                                t.triggerPrice = data.stopPrice,
                                t.triggerPriceType = m(data.triggerType);
                            break;
                        default:
                            t.type = e
                    }
                    t.price = t.type.indexOf("MARKET") > -1 ? 0 : void 0 !== data.tradePrice ? data.tradePrice : data.executePrice;
                    t.timeInForce = ["MARKET", "STOP_MARKET", "TAKE_PROFIT_MARKET"].includes(t.type) ? "IMMEDIATE_OR_CANCEL" : ["GOOD_TIL_CANCEL", "POST_ONLY", "FILL_OR_KILL", "IMMEDIATE_OR_CANCEL"][Number(data.timeInForce)] || "GOOD_TIL_CANCEL",
                        r.forEach((function(e) {
                                var r = (0,
                                    l.default)(e, 2)
                                    , n = r[0]
                                    , o = r[1];
                                switch (!0) {
                                    case "presetTakeProfitPrice" === n:
                                        o && (t.setOpenTp = !0,
                                            t.openTpParam = {
                                                side: "BUY" === t.orderSide ? "SELL" : "BUY",
                                                size: t.size,
                                                price: 0,
                                                clientOrderId: (0,
                                                    f.generateUniqueString)(),
                                                triggerPrice: o,
                                                triggerPriceType: "LAST_PRICE"
                                            });
                                        break;
                                    case "presetStopLossPrice" === n:
                                        o && (t.setOpenSl = !0,
                                            t.openSlParam = {
                                                side: "BUY" === t.orderSide ? "SELL" : "BUY",
                                                size: t.size,
                                                price: 0,
                                                clientOrderId: (0,
                                                    f.generateUniqueString)(),
                                                triggerPrice: o,
                                                triggerPriceType: "LAST_PRICE"
                                            });
                                        break;
                                    default:
                                        h[n] !== d.ABANDONED && (t[h[n] || n] = o)
                                }
                            }
                        )),
                        t.orderSource = t.orderSource || "WEB"
                }
                return t
            },
            res: function(e) {
                return new c.default((function(t, r) {
                        t(e)
                    }
                ))
            }
        };
        t.default = y
    },
    948: function(e, t, r) {
        "use strict";
        var n = r(0)
            , o = r(2);
        n(t, "__esModule", {
            value: !0
        }),
            t.default = void 0;
        var c = o(r(6))
            , l = o(r(30))
            , d = r(37)
            , f = r(8)
            , v = {
            productCode: "coinId",
            amount: "collateralAmount"
        }
            , h = {
            req: function(data) {
                var e = {};
                f.isClient && window.Object.entries(data).forEach((function(t) {
                        var r = (0,
                            l.default)(t, 2)
                            , n = r[0]
                            , o = r[1];
                        v[n] !== d.ABANDONED && (e[v[n] || n] = o)
                    }
                ));
                return e
            },
            res: function(e) {
                return new c.default((function(t, r) {
                        t(e)
                    }
                ))
            }
        };
        t.default = h
    },
    949: function(e, t, r) {
        "use strict";
        var n = r(0)
            , o = r(2);
        n(t, "__esModule", {
            value: !0
        }),
            t.default = void 0;
        var c = o(r(6))
            , l = o(r(30))
            , d = r(37)
            , f = r(8)
            , v = {
            productCode: "coinId",
            amount: "collateralAmount"
        }
            , h = {
            req: function(data) {
                var e = {};
                f.isClient && window.Object.entries(data).forEach((function(t) {
                        var r = (0,
                            l.default)(t, 2)
                            , n = r[0]
                            , o = r[1];
                        v[n] !== d.ABANDONED && (e[v[n] || n] = o)
                    }
                ));
                return e
            },
            res: function(e) {
                return new c.default((function(t, r) {
                        t(e)
                    }
                ))
            }
        };
        t.default = h
    },
    950: function(e, t, r) {
        "use strict";
        var n = r(0)
            , o = r(2);
        n(t, "__esModule", {
            value: !0
        }),
            t.default = void 0;
        var c = o(r(69))
            , l = o(r(6))
            , d = o(r(30))
            , f = r(37)
            , v = r(8)
            , h = {
            productCode: f.ABANDONED,
            orderNo: f.ABANDONED
        }
            , m = {
            req: function(data) {
                var e = {};
                v.isClient && window.Object.entries(data).forEach((function(t) {
                        var r = (0,
                            d.default)(t, 2)
                            , n = r[0]
                            , o = r[1];
                        if (!0 == ("orderNo" === n))
                            e.orderIdList = (0,
                                c.default)(o) ? o : [o];
                        else
                            h[n] !== f.ABANDONED && (e[h[n] || n] = o)
                    }
                ));
                return e
            },
            res: function(e) {
                return new l.default((function(t, r) {
                        t(e)
                    }
                ))
            }
        };
        t.default = m
    },
    951: function(e, t, r) {
        "use strict";
        var n = r(0)
            , o = r(2);
        n(t, "__esModule", {
            value: !0
        }),
            t.default = void 0;
        var c = o(r(6))
            , l = o(r(30))
            , d = r(37)
            , f = r(8)
            , v = {
            type: d.ABANDONED,
            productCode: d.ABANDONED,
            cancelCategories: "filterContractIdList"
        }
            , h = {
            req: function(data) {
                var e = {};
                f.isClient && window.Object.entries(data).forEach((function(t) {
                        var r = (0,
                            l.default)(t, 2)
                            , n = r[0]
                            , o = r[1];
                        v[n] !== d.ABANDONED && (e[v[n] || n] = o)
                    }
                ));
                return e
            },
            res: function(e) {
                return new c.default((function(t, r) {
                        t(e)
                    }
                ))
            }
        };
        t.default = h
    },
    952: function(e, t, r) {
        "use strict";
        var n = r(11)
            , o = r(16)
            , c = r(9)
            , l = r(18)
            , d = r(17)
            , f = r(0)
            , v = r(2);
        f(t, "__esModule", {
            value: !0
        }),
            t.default = void 0;
        var h = v(r(6))
            , m = v(r(7));
        function y(e, t) {
            var r = n(e);
            if (o) {
                var l = o(e);
                t && (l = l.filter((function(t) {
                        return c(e, t).enumerable
                    }
                ))),
                    r.push.apply(r, l)
            }
            return r
        }
        function _(e) {
            for (var t = 1; t < arguments.length; t++) {
                var r = null != arguments[t] ? arguments[t] : {};
                t % 2 ? y(Object(r), !0).forEach((function(t) {
                        (0,
                            m.default)(e, t, r[t])
                    }
                )) : l ? d(e, l(r)) : y(Object(r)).forEach((function(t) {
                        f(e, t, c(r, t))
                    }
                ))
            }
            return e
        }
        var w = {
            req: function(data) {
                return _(_({}, {
                    languageType: 0,
                    sign: "SIGN",
                    timeZone: "string",
                    filterCoinIdList: [],
                    filterContractIdList: [],
                    filterPositionIdList: [],
                    orderSource: "CLOSE_ALL_POSITION"
                }), data)
            },
            res: function(e) {
                return new h.default((function(t, r) {
                        t(e)
                    }
                ))
            }
        };
        t.default = w
    },
    953: function(e, t, r) {
        "use strict";
        var n = r(11)
            , o = r(16)
            , c = r(9)
            , l = r(18)
            , d = r(17)
            , f = r(0)
            , v = r(2);
        f(t, "__esModule", {
            value: !0
        }),
            t.default = void 0;
        var h = v(r(6))
            , m = v(r(7));
        function y(e, t) {
            var r = n(e);
            if (o) {
                var l = o(e);
                t && (l = l.filter((function(t) {
                        return c(e, t).enumerable
                    }
                ))),
                    r.push.apply(r, l)
            }
            return r
        }
        function _(e) {
            for (var t = 1; t < arguments.length; t++) {
                var r = null != arguments[t] ? arguments[t] : {};
                t % 2 ? y(Object(r), !0).forEach((function(t) {
                        (0,
                            m.default)(e, t, r[t])
                    }
                )) : l ? d(e, l(r)) : y(Object(r)).forEach((function(t) {
                        f(e, t, c(r, t))
                    }
                ))
            }
            return e
        }
        var w = {
            req: function(data) {
                return _(_({}, {
                    languageType: 1,
                    language: "en_US",
                    sign: "SIGN",
                    timeZone: "string",
                    orderSource: "WEB"
                }), data)
            },
            res: function(e) {
                return new h.default((function(t, r) {
                        t(e)
                    }
                ))
            }
        };
        t.default = w
    },
    954: function(e, t, r) {
        "use strict";
        var n = r(0)
            , o = r(2);
        n(t, "__esModule", {
            value: !0
        }),
            t.default = void 0;
        var c = o(r(6))
            , l = o(r(30))
            , d = r(37)
            , f = r(8)
            , v = {
            productCode: "contractId",
            marginMode: "marginMode",
            longLeverage: "longLeverage",
            shortLeverage: "shortLeverage",
            levelRate: d.ABANDONED,
            positionType: d.ABANDONED
        }
            , h = {
            req: function(data) {
                var e = {};
                f.isClient && window.Object.entries(data).forEach((function(t) {
                        var r = (0,
                            l.default)(t, 2)
                            , n = r[0]
                            , o = r[1];
                        if (!0 == ("levelRate" === n))
                            ;
                        else
                            v[n] !== d.ABANDONED && (e[v[n] || n] = o)
                    }
                ));
                return e
            },
            res: function(e) {
                return new c.default((function(t, r) {
                        t(e)
                    }
                ))
            }
        };
        t.default = h
    },
    955: function(e, t, r) {
        "use strict";
        var n = r(0)
            , o = r(2);
        n(t, "__esModule", {
            value: !0
        }),
            t.default = void 0;
        var c = o(r(6))
            , l = o(r(30))
            , d = r(37)
            , f = r(8)
            , v = {
            productCode: "contractId",
            positionMode: "positionMode",
            holdMode: d.ABANDONED,
            subHoldMode: d.ABANDONED
        }
            , h = {
            req: function(data) {
                var e = {};
                f.isClient && window.Object.entries(data).forEach((function(t) {
                        var r = (0,
                            l.default)(t, 2)
                            , n = r[0]
                            , o = r[1];
                        switch (!0) {
                            case "holdMode" === n:
                                e.marginMode = {
                                    1: "ISOLATED",
                                    2: "SHARED"
                                }[Number(o)] || "SHARED";
                                break;
                            case "subHoldMode" === n:
                                e.separatedMode = {
                                    1: "COMBINED",
                                    2: "SEPARATED"
                                }[Number(o)] || "COMBINED";
                                break;
                            default:
                                v[n] !== d.ABANDONED && (e[v[n] || n] = o)
                        }
                    }
                ));
                return e
            },
            res: function(e) {
                return new c.default((function(t, r) {
                        t(e)
                    }
                ))
            }
        };
        t.default = h
    },
    956: function(e, t, r) {
        "use strict";
        var n = r(0)
            , o = r(2);
        n(t, "__esModule", {
            value: !0
        }),
            t.default = void 0;
        var c = o(r(6))
            , l = o(r(30))
            , d = r(37)
            , f = r(8)
            , v = {
            afterAppendType: "autoAppendMargin",
            positionId: "positionId",
            productCode: d.ABANDONED,
            side: d.ABANDONED,
            openOrderNo: d.ABANDONED
        }
            , h = {
            req: function(data) {
                var e = {};
                f.isClient && window.Object.entries(data).forEach((function(t) {
                        var r = (0,
                            l.default)(t, 2)
                            , n = r[0]
                            , o = r[1];
                        if (!0 == ("afterAppendType" === n))
                            e.autoAppendMargin = Boolean(o);
                        else
                            v[n] !== d.ABANDONED && (e[v[n] || n] = o)
                    }
                ));
                return e
            },
            res: function(e) {
                return new c.default((function(t, r) {
                        t(e)
                    }
                ))
            }
        };
        t.default = h
    },
    957: function(e, t, r) {
        "use strict";
        var n = r(0)
            , o = r(2);
        n(t, "__esModule", {
            value: !0
        }),
            t.default = void 0;
        var c = o(r(6))
            , l = o(r(30))
            , d = r(37)
            , f = r(8)
            , v = {
            positionId: "positionId",
            productCode: d.ABANDONED,
            side: d.ABANDONED,
            openOrderNo: d.ABANDONED
        }
            , h = {
            req: function(data) {
                var e = {};
                f.isClient && window.Object.entries(data).forEach((function(t) {
                        var r = (0,
                            l.default)(t, 2)
                            , n = r[0]
                            , o = r[1];
                        if (!0 == ("afterAppendType" === n))
                            e.autoAppendMargin = Boolean(o);
                        else
                            v[n] !== d.ABANDONED && (e[v[n] || n] = o)
                    }
                ));
                return e
            },
            res: function(e) {
                return new c.default((function(t, r) {
                        t(e)
                    }
                ))
            }
        };
        t.default = h
    },
    958: function(e, t, r) {
        "use strict";
        var n = r(0)
            , o = r(2);
        n(t, "__esModule", {
            value: !0
        }),
            t.default = void 0;
        var c = o(r(6))
            , l = o(r(30))
            , d = r(37)
            , f = r(8)
            , v = {
            productCode: "coinId",
            amount: "collateralAmount",
            orderNo: "orderId",
            executePrice: "updatePrice",
            triggerPrice: "updateTriggerPrice",
            triggerType: "updateTriggerPriceType"
        }
            , h = {
            req: function(data) {
                var e = {};
                f.isClient && window.Object.entries(data).forEach((function(t) {
                        var r = (0,
                            l.default)(t, 2)
                            , n = r[0]
                            , o = r[1];
                        v[n] !== d.ABANDONED && (e[v[n] || n] = o)
                    }
                ));
                return e
            },
            res: function(e) {
                return new c.default((function(t, r) {
                        t(e)
                    }
                ))
            }
        };
        t.default = h
    },
    959: function(e, t, r) {
        "use strict";
        var n = r(0)
            , o = r(2);
        n(t, "__esModule", {
            value: !0
        }),
            t.default = void 0;
        var c = o(r(6))
            , l = o(r(30))
            , d = r(37)
            , f = r(355)
            , v = r(8)
            , h = {
            productCode: d.ABANDONED,
            bizNo: "orderId",
            type: d.ABANDONED,
            presetTakeProfitPrice: "updateOpenTpTriggerPrice",
            presetStopLossPrice: "updateOpenSlTriggerPrice"
        }
            , m = {
            req: function(data) {
                var e = {};
                v.isClient && window.Object.entries(data).forEach((function(t) {
                        var r = (0,
                            l.default)(t, 2)
                            , n = r[0]
                            , o = r[1];
                        switch (!0) {
                            case "presetTakeProfitPrice" === n:
                                o && (e.setOpenTp = !0,
                                    e.openTpParam = {
                                        side: "BUY" === e.orderSide ? "SELL" : "BUY",
                                        size: e.size,
                                        price: 0,
                                        clientOrderId: (0,
                                            f.generateUniqueString)(),
                                        triggerPrice: o,
                                        triggerPriceType: "LAST_PRICE"
                                    });
                                break;
                            case "presetStopLossPrice" === n:
                                o && (e.setOpenSl = !0,
                                    e.openSlParam = {
                                        side: "BUY" === e.orderSide ? "SELL" : "BUY",
                                        size: e.size,
                                        price: 0,
                                        clientOrderId: (0,
                                            f.generateUniqueString)(),
                                        triggerPrice: o,
                                        triggerPriceType: "LAST_PRICE"
                                    });
                                break;
                            default:
                                h[n] !== d.ABANDONED && (e[h[n] || n] = o)
                        }
                    }
                ));
                return e
            },
            res: function(e) {
                return new c.default((function(t, r) {
                        t(e)
                    }
                ))
            }
        };
        t.default = m
    },
    960: function(e, t, r) {
        "use strict";
        var n = r(0)
            , o = r(2);
        n(t, "__esModule", {
            value: !0
        }),
            t.default = void 0;
        var c = o(r(69))
            , l = o(r(6))
            , d = o(r(30))
            , f = r(37)
            , v = r(8)
            , h = {
            productCode: f.ABANDONED,
            orderNo: f.ABANDONED
        }
            , m = {
            req: function(data) {
                var e = {};
                v.isClient && window.Object.entries(data).forEach((function(t) {
                        var r = (0,
                            d.default)(t, 2)
                            , n = r[0]
                            , o = r[1];
                        if (!0 == ("orderNo" === n))
                            e.orderIdList = (0,
                                c.default)(o) ? o : [o];
                        else
                            h[n] !== f.ABANDONED && (e[h[n] || n] = o)
                    }
                ));
                return e
            },
            res: function(e) {
                return new l.default((function(t, r) {
                        t(e)
                    }
                ))
            }
        };
        t.default = m
    },
    961: function(e, t, r) {
        "use strict";
        var n = r(0)
            , o = r(2);
        n(t, "__esModule", {
            value: !0
        }),
            t.default = void 0;
        var c = o(r(6))
            , l = o(r(30))
            , d = r(37)
            , f = r(8)
            , v = {
            productCode: d.ABANDONED,
            orderNo: d.ABANDONED
        }
            , h = {
            req: function(data) {
                var e = {};
                f.isClient && window.Object.entries(data).forEach((function(t) {
                        var r = (0,
                            l.default)(t, 2)
                            , n = r[0]
                            , o = r[1];
                        v[n] !== d.ABANDONED && (e[v[n] || n] = o)
                    }
                ));
                return e
            },
            res: function(e) {
                return new c.default((function(t, r) {
                        t(e)
                    }
                ))
            }
        };
        t.default = h
    },
    962: function(e, t, r) {
        "use strict";
        var n = r(0)
            , o = r(2);
        n(t, "__esModule", {
            value: !0
        }),
            t.default = void 0;
        var c = o(r(6))
            , l = o(r(30))
            , d = r(37)
            , f = r(8)
            , v = {
            productCode: d.ABANDONED,
            orderNo: d.ABANDONED
        }
            , h = {
            req: function(data) {
                var e = {};
                f.isClient && window.Object.entries(data).forEach((function(t) {
                        var r = (0,
                            l.default)(t, 2)
                            , n = r[0]
                            , o = r[1];
                        v[n] !== d.ABANDONED && (e[v[n] || n] = o)
                    }
                ));
                return e
            },
            res: function(e) {
                return new c.default((function(t, r) {
                        t(e)
                    }
                ))
            }
        };
        t.default = h
    },
    963: function(e, t, r) {
        "use strict";
        var n = r(0)
            , o = r(2);
        n(t, "__esModule", {
            value: !0
        }),
            t.default = void 0;
        var c = o(r(6))
            , l = o(r(30))
            , d = r(37)
            , f = r(8)
            , v = {
            productCode: d.ABANDONED,
            orderNo: d.ABANDONED
        }
            , h = {
            req: function(data) {
                var e = {};
                return (f.isClient && window.Object.entries(data)).forEach((function(t) {
                        var r = (0,
                            l.default)(t, 2)
                            , n = r[0]
                            , o = r[1];
                        v[n] !== d.ABANDONED && (e[v[n] || n] = o)
                    }
                )),
                    e
            },
            res: function(e) {
                return new c.default((function(t, r) {
                        t(e)
                    }
                ))
            }
        };
        t.default = h
    },
    964: function(e, t, r) {
        "use strict";
        var n = r(0)
            , o = r(2);
        n(t, "__esModule", {
            value: !0
        }),
            t.default = void 0;
        var c = o(r(6))
            , l = o(r(30))
            , d = r(37)
            , f = r(8)
            , v = {
            languageType: "languageType",
            language: "language",
            sign: d.ABANDONED,
            timeZone: d.ABANDONED,
            contractId: "contractId",
            pageNo: "pageNo",
            pageSize: "pageSize",
            filterBeginTimeInclusive: "filterBeginTimeInclusive",
            filterEndTimeExclusive: "filterEndTimeExclusive"
        }
            , h = {
            req: function(data) {
                var e = {};
                return (f.isClient && window.Object.entries(data)).forEach((function(t) {
                        var r = (0,
                            l.default)(t, 2)
                            , n = r[0]
                            , o = r[1];
                        v[n] !== d.ABANDONED && (e[v[n] || n] = o)
                    }
                )),
                    e
            },
            res: function(e) {
                return new c.default((function(t, r) {
                        t(e)
                    }
                ))
            }
        };
        t.default = h
    },
    965: function(e, t, r) {
        "use strict";
        var n = r(0)
            , o = r(2);
        n(t, "__esModule", {
            value: !0
        }),
            t.default = void 0;
        var c = o(r(6))
            , l = o(r(30))
            , d = r(37)
            , f = r(8)
            , v = {
            productCode: "coinId",
            amount: "collateralAmount"
        }
            , h = {
            req: function(data) {
                var e = {};
                f.isClient && window.Object.entries(data).forEach((function(t) {
                        var r = (0,
                            l.default)(t, 2)
                            , n = r[0]
                            , o = r[1];
                        v[n] !== d.ABANDONED && (e[v[n] || n] = o)
                    }
                ));
                return e
            },
            res: function(e) {
                return new c.default((function(t, r) {
                        t(e)
                    }
                ))
            }
        };
        t.default = h
    },
    966: function(e, t, r) {
        "use strict";
        var n = r(0)
            , o = r(2);
        n(t, "__esModule", {
            value: !0
        }),
            t.default = void 0;
        var c = o(r(6))
            , l = o(r(30))
            , d = r(37)
            , f = r(8)
            , v = {
            languageType: "languageType",
            orderId: "orderId",
            clientOrderId: "clientOrderId",
            updatePrice: "updatePrice"
        }
            , h = {
            req: function(data) {
                var e = {};
                f.isClient && window.Object.entries(data).forEach((function(t) {
                        var r = (0,
                            l.default)(t, 2)
                            , n = r[0]
                            , o = r[1];
                        v[n] !== d.ABANDONED && (e[v[n] || n] = o)
                    }
                ));
                return e
            },
            res: function(e) {
                return new c.default((function(t, r) {
                        t(e)
                    }
                ))
            }
        };
        t.default = h
    },
    967: function(e, t, r) {
        "use strict";
        var n = r(11)
            , o = r(16)
            , c = r(9)
            , l = r(18)
            , d = r(17)
            , f = r(0)
            , v = r(2);
        f(t, "__esModule", {
            value: !0
        }),
            t.default = void 0;
        var h = v(r(6))
            , m = v(r(7));
        function y(e, t) {
            var r = n(e);
            if (o) {
                var l = o(e);
                t && (l = l.filter((function(t) {
                        return c(e, t).enumerable
                    }
                ))),
                    r.push.apply(r, l)
            }
            return r
        }
        function _(e) {
            for (var t = 1; t < arguments.length; t++) {
                var r = null != arguments[t] ? arguments[t] : {};
                t % 2 ? y(Object(r), !0).forEach((function(t) {
                        (0,
                            m.default)(e, t, r[t])
                    }
                )) : l ? d(e, l(r)) : y(Object(r)).forEach((function(t) {
                        f(e, t, c(r, t))
                    }
                ))
            }
            return e
        }
        var w = {
            req: function(data) {
                return _(_({}, {
                    languageType: 0,
                    language: "en_US",
                    sign: "SIGN",
                    timeZone: "string"
                }), data)
            },
            res: function(e) {
                return new h.default((function(t, r) {
                        t(e)
                    }
                ))
            }
        };
        t.default = w
    },
    971: function(e, t, r) {
        "use strict";
        var n = r(0)
            , o = r(2);
        n(t, "__esModule", {
            value: !0
        }),
            t.deepCopy = f,
            t.numAddByDecimal = function() {
                for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
                    t[r] = arguments[r];
                return t.reduce((function(e, t) {
                        var r = Number(t);
                        return d.Decimal.add(e, isNaN(r) ? 0 : r).toNumber()
                    }
                ), 0)
            }
            ,
            t.numMultiplyByDecimal = function() {
                for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
                    t[r] = arguments[r];
                return t.reduce((function(e, t) {
                        var r = Number(t);
                        return d.Decimal.mul(e, isNaN(r) ? 1 : r).toNumber()
                    }
                ), 1)
            }
            ,
            t.sortObjectArrayByKey = function(e, t, r) {
                if (e.length) {
                    return f(e).sort(function(e, t) {
                        return function(r, n) {
                            var o, c, a = isNaN(Number(r[e])) ? null === (o = r[e]) || void 0 === o ? void 0 : o.toUpperCase() : Number(r[e]), b = isNaN(Number(n[e])) ? null === (c = n[e]) || void 0 === c ? void 0 : c.toUpperCase() : Number(n[e]);
                            return a < b ? "up" === t ? -1 : 1 : a > b ? "up" === t ? 1 : -1 : 0
                        }
                    }(t, r || "up"))
                }
                return e
            }
        ;
        var c = o(r(69))
            , l = o(r(27))
            , d = r(48);
        function f(e) {
            var t = "object" === (0,
                l.default)(e) ? (0,
                c.default)(e) ? [] : null === e ? null : {} : e;
            if ("object" === (0,
                l.default)(t) && null !== t)
                for (var r in e)
                    e && e.hasOwnProperty(r) && (t[r] = f(e[r]));
            return t
        }
    },
    988: function(e, t, r) {
        "use strict";
        r(0)(t, "__esModule", {
            value: !0
        }),
            t.mcpAssetSum = t.mcpAsset = t.mcpAccountList = t.getOrderQueryConditions = t.getOrderDealDetailList = t.getMcpContractList = t.getHistoryOrderList = t.getFinancialQueryConditions = t.getFinancialList = t.getDealRecordList = t.getCurrentOrderList = t.closeContract = t.cancelContract = t.batchCloseContract = t.batchCancelContract = void 0;
        var n = (0,
            r(82).getInstance)("/v1/mcp");
        t.getFinancialList = function(data) {
            return n.post("/financial/getFinancialList", data)
        }
            ,
            t.getFinancialQueryConditions = function(data) {
                return n.post("/financial/getFinancialQueryConditions", data)
            }
            ,
            t.getMcpContractList = function(data) {
                return n.post("/contract/list", data)
            }
            ,
            t.getOrderQueryConditions = function(data) {
                return n.post("/order/getOrderQueryConditions", data)
            }
            ,
            t.getHistoryOrderList = function(data) {
                return n.post("/order/getHistoryOrderList", data)
            }
            ,
            t.getDealRecordList = function(data) {
                return n.post("/order/getDealRecordList", data)
            }
            ,
            t.getCurrentOrderList = function(data) {
                return n.post("/order/getCurrentOrderList", data)
            }
            ,
            t.getOrderDealDetailList = function(data) {
                return n.post("/order/getOrderDealDetailList", data)
            }
            ,
            t.cancelContract = function(data) {
                return n.post("/order/cancelContract", data)
            }
            ,
            t.mcpAsset = function(data) {
                return n.post("/account/token", data)
            }
            ,
            t.mcpAccountList = function(data) {
                return n.post("/account/list", data)
            }
            ,
            t.mcpAssetSum = function(data) {
                return n.post("/account/sum/list", data)
            }
            ,
            t.batchCancelContract = function(data) {
                return n.post("/order/batchCancelContract", data)
            }
            ,
            t.closeContract = function(data) {
                return n.post("/order/trader/placeContract", data)
            }
            ,
            t.batchCloseContract = function(data) {
                return n.post("/order/batchCloseContract", data)
            }
    }
}]);
//# sourceMappingURL=9d9c811.js.map
