window.__require = function e(t, n, o) {
function r(c, i) {
if (!n[c]) {
if (!t[c]) {
var u = c.split("/");
u = u[u.length - 1];
if (!t[u]) {
var l = "function" == typeof __require && __require;
if (!i && l) return l(u, !0);
if (a) return a(u, !0);
throw new Error("Cannot find module '" + c + "'");
}
c = u;
}
var s = n[c] = {
exports: {}
};
t[c][0].call(s.exports, function(e) {
return r(t[c][1][e] || e);
}, s, s.exports, e, t, n, o);
}
return n[c].exports;
}
for (var a = "function" == typeof __require && __require, c = 0; c < o.length; c++) r(o[c]);
return r;
}({
LogonScene: [ function(e, t, n) {
"use strict";
cc._RF.push(t, "4cd35pbpLRJU4SysNKayKr1", "LogonScene");
var o, r = this && this.__extends || (o = function(e, t) {
return (o = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(e, t) {
e.__proto__ = t;
} || function(e, t) {
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
})(e, t);
}, function(e, t) {
o(e, t);
function n() {
this.constructor = e;
}
e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n());
}), a = this && this.__decorate || function(e, t, n, o) {
var r, a = arguments.length, c = a < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(e, t, n, o); else for (var i = e.length - 1; i >= 0; i--) (r = e[i]) && (c = (a < 3 ? r(c) : a > 3 ? r(t, n, c) : r(t, n)) || c);
return a > 3 && c && Object.defineProperty(t, n, c), c;
}, c = this && this.__awaiter || function(e, t, n, o) {
return new (n || (n = Promise))(function(r, a) {
function c(e) {
try {
u(o.next(e));
} catch (e) {
a(e);
}
}
function i(e) {
try {
u(o.throw(e));
} catch (e) {
a(e);
}
}
function u(e) {
e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function(e) {
e(t);
})).then(c, i);
var t;
}
u((o = o.apply(e, t || [])).next());
});
}, i = this && this.__generator || function(e, t) {
var n, o, r, a, c = {
label: 0,
sent: function() {
if (1 & r[0]) throw r[1];
return r[1];
},
trys: [],
ops: []
};
return a = {
next: i(0),
throw: i(1),
return: i(2)
}, "function" == typeof Symbol && (a[Symbol.iterator] = function() {
return this;
}), a;
function i(e) {
return function(t) {
return u([ e, t ]);
};
}
function u(a) {
if (n) throw new TypeError("Generator is already executing.");
for (;c; ) try {
if (n = 1, o && (r = 2 & a[0] ? o.return : a[0] ? o.throw || ((r = o.return) && r.call(o), 
0) : o.next) && !(r = r.call(o, a[1])).done) return r;
(o = 0, r) && (a = [ 2 & a[0], r.value ]);
switch (a[0]) {
case 0:
case 1:
r = a;
break;

case 4:
c.label++;
return {
value: a[1],
done: !1
};

case 5:
c.label++;
o = a[1];
a = [ 0 ];
continue;

case 7:
a = c.ops.pop();
c.trys.pop();
continue;

default:
if (!(r = c.trys, r = r.length > 0 && r[r.length - 1]) && (6 === a[0] || 2 === a[0])) {
c = 0;
continue;
}
if (3 === a[0] && (!r || a[1] > r[0] && a[1] < r[3])) {
c.label = a[1];
break;
}
if (6 === a[0] && c.label < r[1]) {
c.label = r[1];
r = a;
break;
}
if (r && c.label < r[2]) {
c.label = r[2];
c.ops.push(a);
break;
}
r[2] && c.ops.pop();
c.trys.pop();
continue;
}
a = t.call(e, c);
} catch (e) {
a = [ 6, e ];
o = 0;
} finally {
n = r = 0;
}
if (5 & a[0]) throw a[1];
return {
value: a[0] ? a[1] : void 0,
done: !0
};
}
};
Object.defineProperty(n, "__esModule", {
value: !0
});
n.LogonScene = void 0;
var u = e("../../../bundle/common/src/advert/AdsManager"), l = e("../../../bundle/common/src/GameCommon"), s = e("../../../bundle/common/src/ht/HtManager"), d = e("../../../bundle/common/src/module/LoadLayer"), f = e("../../../bundle/common/src/text/LocalizedTextManager"), p = e("../../../framework/main/Constants"), m = e("../../../framework/manager/SceneMgr"), h = e("../../../framework/net/http/Http"), v = e("../../../framework/utils/UiUtil"), y = e("../../common/src/data/AchievData"), g = e("../../common/src/data/RewardData"), b = e("../../common/src/data/UserData"), _ = cc._decorator, w = _.ccclass, L = _.property, S = function(e) {
r(t, e);
function t() {
var t = null !== e && e.apply(this, arguments) || this;
t.loadingPrefab = null;
t.uiAtlas = null;
t.APPID = "1112081415";
t.SECRET = "mZxrK8gUzniIPx0I";
return t;
}
t.prototype.start = function() {
m.default.setSceneType(m.SCENE_TYPE.LOGON);
this.addToast();
OS_IOS && cc.game.setFrameRate(30);
this.init().then(function() {
WECHAT_GAME && l.default.isSceneBlackList(b.default.member.wxSceneId.scene) && (l.default.isInAddressBlackList = !0);
m.default.enterGame();
u.default.showShareMenu();
});
(p.default.IS_LOCAL || WECHAT_GAME) && s.default.getInstance().init();
};
t.prototype.init = function() {
return c(this, void 0, void 0, function() {
return i(this, function(e) {
switch (e.label) {
case 0:
d.LoadLayer.openLoading();
return [ 4, f.LocalizedTextManager.loadLocalizedText() ];

case 1:
e.sent();
return [ 4, b.default.loadConfig() ];

case 2:
e.sent();
u.default.init();
g.default.loadConfig();
y.default.loadConfig();
return [ 2 ];
}
});
});
};
t.prototype.addToast = function() {
v.UiUtil.openModule("res/prefab/Toast", p.default.GLOBAL_NODE);
};
t.prototype.getLocation = function() {
h.default.get("https://setting.1011games.com/api/httpGetIpAddress").then(function(e) {
if (e) {
var t = JSON.parse(e);
if (!(null == t ? void 0 : t.status)) {
console.log("数据请求失败：", null == t ? void 0 : t.data);
return;
}
var n = t.data.address;
l.default.checkIsInBlackList(n);
console.log("地理位置:", n);
}
}).catch(function(e) {
console.log("位置获取失败:", JSON.parse(e));
});
};
a([ L({
type: cc.Prefab
}) ], t.prototype, "loadingPrefab", void 0);
a([ L({
type: cc.SpriteAtlas
}) ], t.prototype, "uiAtlas", void 0);
return a([ w ], t);
}(cc.Component);
n.LogonScene = S;
cc._RF.pop();
}, {
"../../../bundle/common/src/GameCommon": void 0,
"../../../bundle/common/src/advert/AdsManager": void 0,
"../../../bundle/common/src/ht/HtManager": void 0,
"../../../bundle/common/src/module/LoadLayer": void 0,
"../../../bundle/common/src/text/LocalizedTextManager": void 0,
"../../../framework/main/Constants": void 0,
"../../../framework/manager/SceneMgr": void 0,
"../../../framework/net/http/Http": void 0,
"../../../framework/utils/UiUtil": void 0,
"../../common/src/data/AchievData": void 0,
"../../common/src/data/RewardData": void 0,
"../../common/src/data/UserData": void 0
} ]
}, {}, [ "LogonScene" ]);