<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol &amp;&amp; "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj &amp;&amp; "function" == typeof Symbol &amp;&amp; obj.constructor === Symbol &amp;&amp; obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }

function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" &amp;&amp; o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike &amp;&amp; o &amp;&amp; typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() { }; return { s: F, n: function n() { if (i &gt;= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion &amp;&amp; it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" &amp;&amp; o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

function _arrayLikeToArray(arr, len) { if (len == null || len &gt; arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i &lt; len; i++) { arr2[i] = arr[i]; } return arr2; }

function set(target, property, value, receiver) { if (typeof Reflect !== "undefined" &amp;&amp; Reflect.set) { set = Reflect.set; } else { set = function set(target, property, value, receiver) { var base = _superPropBase(target, property); var desc; if (base) { desc = Object.getOwnPropertyDescriptor(base, property); if (desc.set) { desc.set.call(receiver, value); return true; } else if (!desc.writable) { return false; } } desc = Object.getOwnPropertyDescriptor(receiver, property); if (desc) { if (!desc.writable) { return false; } desc.value = value; Object.defineProperty(receiver, property, desc); } else { _defineProperty(receiver, property, value); } return true; }; } return set(target, property, value, receiver); }

function _set(target, property, value, receiver, isStrict) { var s = set(target, property, value, receiver || target); if (!s &amp;&amp; isStrict) { throw new Error('failed to set property'); } return value; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

function _get() { if (typeof Reflect !== "undefined" &amp;&amp; Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length &lt; 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }

function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" &amp;&amp; superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass &amp;&amp; superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }

function _possibleConstructorReturn(self, call) { if (call &amp;&amp; (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () { })); return true; } catch (e) { return false; } }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _defineProperties(target, props) { for (var i = 0; i &lt; props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }


!function () {
    "use strict";
    var t = /* */ function () {
        function t() {
            _classCallCheck(this, t);
            t.screenScale = Number((Laya.stage.height / Laya.stage.width).toFixed(3)), t.screenScale &gt; 1.8 &amp;&amp; (t.screenScale *= .9);
        }
        _createClass(t, null, [{
            key: "getLocalData",
            value: function getLocalData() {
                if (Laya.LocalStorage.getItem(t.gameName)) {
                    var e = JSON.parse(Laya.LocalStorage.getItem(t.gameName));
                    this.MaxCube = e.MaxCube, this.WnNum = e.WnNum, this.BoomNum = e.BoomNum, this.CiTieNum = e.CiTieNum,
                        this.ChangeNum = e.ChangeNum;
                } else this.MaxCube = 2, this.WnNum = this.GameConfig.BasicData.item[0], this.BoomNum = this.GameConfig.BasicData.item[1],
                    this.CiTieNum = this.GameConfig.BasicData.item[2], this.ChangeNum = this.GameConfig.BasicData.item[3];
                this.ItemRefresh = this.GameConfig.BasicData.itemrefresh;
            }
        }, {
            key: "saveLocalData",
            value: function saveLocalData() {
                var e = {
                    MaxCube: this.MaxCube,
                    WnNum: this.WnNum,
                    BoomNum: this.BoomNum,
                    CiTieNum: this.CiTieNum,
                    ChangeNum: this.ChangeNum
                };
                Laya.LocalStorage.setItem(t.gameName, JSON.stringify(e));
            }
        }, {
            key: "getUserInfo",
            value: function getUserInfo(_t) {
                1 == Number(Laya.LocalStorage.getItem("isAdUser")) ? this.isAdUser = 1 : 1095 == _t &amp;&amp; (Laya.LocalStorage.setItem("isAdUser", "1"),
                    this.isAdUser = 1);
            }
        }, {
            key: "addScore",
            value: function addScore(_t2) {
                var e = Math.pow(2, _t2);
                return this.Score += e, e;
            }
        }, {
            key: "reduceIntervalTime",
            value: function reduceIntervalTime() {
                this.IntervalNum = 0;
            }
        }, {
            key: "isSameWeek",
            value: function isSameWeek(_t3) {
                var e = new Date(_t3).setHours(0, 0, 0, 0), i = new Date(new Date().getTime()).setHours(0, 0, 0, 0);
                var s = parseInt(String(e / 864e5)), a = parseInt(String(i / 864e5));
                return parseInt(String(s / 7)) == parseInt(String(a / 7));
            }
        }, {
            key: "isSameDate",
            value: function isSameDate(e) {
                return e == t.getTimeStamp();
            }
        }, {
            key: "setNumSize",
            value: function setNumSize(_t4) {
                if (_t4.toString().length &lt;= 3) return _t4.toString();
                var e = "";
                switch (_t4.toString().length - 3) {
                    case 1:
                    case 2:
                    case 3:
                        e = (_t4 / 1e3).toFixed(1) + "k";
                        break;

                    case 4:
                    case 5:
                    case 6:
                        e = (_t4 / 1e6).toFixed(2) + "M";
                        break;

                    case 7:
                    case 8:
                    case 9:
                        e = (_t4 / 1e9).toFixed(2) + "G";
                        break;

                    case 10:
                    case 11:
                    case 12:
                        e = (_t4 / 1e12).toFixed(2) + "T";
                        break;

                    case 13:
                    case 14:
                    case 15:
                        e = (_t4 / 1e15).toFixed(2) + "P";
                        break;

                    case 16:
                    case 17:
                    case 18:
                        e = (_t4 / 1e18).toFixed(2) + "E";
                }
                return e;
            }
        }, {
            key: "setFontSize",
            value: function setFontSize(_t5) {
                var e = arguments.length &gt; 1 &amp;&amp; arguments[1] !== undefined ? arguments[1] : !1;
                var i = this.setNumSize(_t5), s = 0;
                return s = i.length &lt;= 3 ? 30 : 4 == i.length ? 20 : 5 == i.length ? 18 : 6 == i.length ? 15 : 13,
                    e ? [i, 40] : [i, s];
            }
        }, {
            key: "getTime",
            value: function getTime(_t6) {
                var e = "", i = Math.floor(_t6 / 60);
                e += i &gt;= 10 ? "10:" : "0" + i + ":";
                var s = _t6 % 60;
                return e += s &gt;= 10 ? s : "0" + s;
            }
        }, {
            key: "replacePos",
            value: function replacePos(_t7, e, i) {
                return _t7.substr(0, e - 1) + i + _t7.substring(e, _t7.length);
            }
        }, {
            key: "RandomSorting",
            value: function RandomSorting(_t8) {
                var e = 0;
                for (var _s = 0; _s &lt; _t8.length; _s++) {
                    var i = Math.floor(Math.random() * _t8.length);
                    i == _t8.length &amp;&amp; (i = 0), e = _t8[i], _t8[i] = _t8[_s], _t8[_s] = e;
                }
                return _t8;
            }
        }, {
            key: "getTimeStamp",
            value: function getTimeStamp() {
                var _t9 = new Date(Laya.Browser.now()), e = String(_t9.getFullYear()), i = String(_t9.getMonth() + 1 &lt; 10 ? "0" + (_t9.getMonth() + 1) : _t9.getMonth() + 1), s = String(_t9.getDate() &lt; 10 ? "0" + _t9.getDate() : _t9.getDate());
                _t9.getHours(), _t9.getHours(), _t9.getMinutes(), _t9.getMinutes(), _t9.getSeconds(),
                    _t9.getSeconds();
                return e + i + s;
            }
        }]);
        return t;
    }();
    t.gameName = "2048_Data", t.IntervalTime = 2, t.IntervalNum = 0, t.Score = 0, t.MaxCube = 2,
        t.MaxLevel = 31, t.WnNum = 0, t.BoomNum = 0, t.CiTieNum = 0, t.ChangeNum = 0, t.ItemRefresh = 100,
        t.textures = ["2", "4", "8", "16", "32", "64", "128", "256", "512", "1024", "2048", "4096", "8192", "16K", "32K", "64K", "128K", "256K", "512K", "1024K", "2048K", "4096K", "8192K", "16M", "32M", "64M", "128M", "256M", "512M", "1024M", "2048M"],
        t.soundOn = !0, t.vibrateOn = !0, t.screenScale = 0, t.isAdUser = 0, t.dataLoaded = !1;
    var e = /* */ function () {
        function e() {
            _classCallCheck(this, e);
            this.hexcase = 0, this.b64pad = "";
        }
        _createClass(e, [{
            key: "hex_md5",
            value: function hex_md5(t) {
                return this.rstr2hex(this.rstr_md5(this.str2rstr_utf8(t)));
            }
        }, {
            key: "b64_md5",
            value: function b64_md5(t) {
                return this.rstr2b64(this.rstr_md5(this.str2rstr_utf8(t)));
            }
        }, {
            key: "any_md5",
            value: function any_md5(t, _e) {
                return this.rstr2any(this.rstr_md5(this.str2rstr_utf8(t)), _e);
            }
        }, {
            key: "hex_hmac_md5",
            value: function hex_hmac_md5(t, _e2) {
                return this.rstr2hex(this.rstr_hmac_md5(this.str2rstr_utf8(t), this.str2rstr_utf8(_e2)));
            }
        }, {
            key: "b64_hmac_md5",
            value: function b64_hmac_md5(t, _e3) {
                return this.rstr2b64(this.rstr_hmac_md5(this.str2rstr_utf8(t), this.str2rstr_utf8(_e3)));
            }
        }, {
            key: "any_hmac_md5",
            value: function any_hmac_md5(t, _e4, i) {
                return this.rstr2any(this.rstr_hmac_md5(this.str2rstr_utf8(t), this.str2rstr_utf8(_e4)), i);
            }
        }, {
            key: "md5_vm_test",
            value: function md5_vm_test() {
                return "900150983cd24fb0d6963f7d28e17f72" == this.hex_md5("abc").toLowerCase();
            }
        }, {
            key: "rstr_md5",
            value: function rstr_md5(t) {
                return this.binl2rstr(this.binl_md5(this.rstr2binl(t), 8 * t.length));
            }
        }, {
            key: "rstr_hmac_md5",
            value: function rstr_hmac_md5(t, _e5) {
                var i = this.rstr2binl(t);
                i.length &gt; 16 &amp;&amp; (i = this.binl_md5(i, 8 * t.length));
                for (var s = Array(16), a = Array(16), o = 0; o &lt; 16; o++) {
                    s[o] = 909522486 ^ i[o], a[o] = 1549556828 ^ i[o];
                }
                var n = this.binl_md5(s.concat(this.rstr2binl(_e5)), 512 + 8 * _e5.length);
                return this.binl2rstr(this.binl_md5(a.concat(n), 640));
            }
        }, {
            key: "rstr2hex",
            value: function rstr2hex(t) {
                try {
                    this.hexcase;
                } catch (t) {
                    this.hexcase = 0;
                }
                for (var _e6, i = this.hexcase ? "0123456789ABCDEF" : "0123456789abcdef", s = "", a = 0; a &lt; t.length; a++) {
                    _e6 = t.charCodeAt(a), s += i.charAt(_e6 &gt;&gt;&gt; 4 &amp; 15) + i.charAt(15 &amp; _e6);
                }
                return s;
            }
        }, {
            key: "rstr2b64",
            value: function rstr2b64(t) {
                try {
                    this.b64pad;
                } catch (t) {
                    this.b64pad = "";
                }
                for (var _e7 = "", i = t.length, s = 0; s &lt; i; s += 3) {
                    for (var a = t.charCodeAt(s) &lt;&lt; 16 | (s + 1 &lt; i ? t.charCodeAt(s + 1) &lt;&lt; 8 : 0) | (s + 2 &lt; i ? t.charCodeAt(s + 2) : 0), o = 0; o &lt; 4; o++) {
                        8 * s + 6 * o &gt; 8 * t.length ? _e7 += this.b64pad : _e7 += "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(a &gt;&gt;&gt; 6 * (3 - o) &amp; 63);
                    }
                }
                return _e7;
            }
        }, {
            key: "rstr2any",
            value: function rstr2any(t, _e8) {
                var i, s, a, o, n, r = _e8.length, h = Array(Math.ceil(t.length / 2));
                for (i = 0; i &lt; h.length; i++) {
                    h[i] = t.charCodeAt(2 * i) &lt;&lt; 8 | t.charCodeAt(2 * i + 1);
                }
                var l = Math.ceil(8 * t.length / (Math.log(_e8.length) / Math.log(2))), d = Array(l);
                for (s = 0; s &lt; l; s++) {
                    for (n = Array(), o = 0, i = 0; i &lt; h.length; i++) {
                        o = (o &lt;&lt; 16) + h[i], o -= (a = Math.floor(o / r)) * r, (n.length &gt; 0 || a &gt; 0) &amp;&amp; (n[n.length] = a);
                    }
                    d[s] = o, h = n;
                }
                var c = "";
                for (i = d.length - 1; i &gt;= 0; i--) {
                    c += _e8.charAt(d[i]);
                }
                return c;
            }
        }, {
            key: "str2rstr_utf8",
            value: function str2rstr_utf8(t) {
                for (var _e9, i, s = "", a = -1; ++a &lt; t.length;) {
                    _e9 = t.charCodeAt(a), i = a + 1 &lt; t.length ? t.charCodeAt(a + 1) : 0, 55296 &lt;= _e9 &amp;&amp; _e9 &lt;= 56319 &amp;&amp; 56320 &lt;= i &amp;&amp; i &lt;= 57343 &amp;&amp; (_e9 = 65536 + ((1023 &amp; _e9) &lt;&lt; 10) + (1023 &amp; i),
                        a++), _e9 &lt;= 127 ? s += String.fromCharCode(_e9) : _e9 &lt;= 2047 ? s += String.fromCharCode(192 | _e9 &gt;&gt;&gt; 6 &amp; 31, 128 | 63 &amp; _e9) : _e9 &lt;= 65535 ? s += String.fromCharCode(224 | _e9 &gt;&gt;&gt; 12 &amp; 15, 128 | _e9 &gt;&gt;&gt; 6 &amp; 63, 128 | 63 &amp; _e9) : _e9 &lt;= 2097151 &amp;&amp; (s += String.fromCharCode(240 | _e9 &gt;&gt;&gt; 18 &amp; 7, 128 | _e9 &gt;&gt;&gt; 12 &amp; 63, 128 | _e9 &gt;&gt;&gt; 6 &amp; 63, 128 | 63 &amp; _e9));
                }
                return s;
            }
        }, {
            key: "str2rstr_utf16le",
            value: function str2rstr_utf16le(t) {
                for (var _e10 = "", i = 0; i &lt; t.length; i++) {
                    _e10 += String.fromCharCode(255 &amp; t.charCodeAt(i), t.charCodeAt(i) &gt;&gt;&gt; 8 &amp; 255);
                }
                return _e10;
            }
        }, {
            key: "str2rstr_utf16be",
            value: function str2rstr_utf16be(t) {
                for (var _e11 = "", i = 0; i &lt; t.length; i++) {
                    _e11 += String.fromCharCode(t.charCodeAt(i) &gt;&gt;&gt; 8 &amp; 255, 255 &amp; t.charCodeAt(i));
                }
                return _e11;
            }
        }, {
            key: "rstr2binl",
            value: function rstr2binl(t) {
                for (var _e12 = Array(t.length &gt;&gt; 2), i = 0; i &lt; _e12.length; i++) {
                    _e12[i] = 0;
                }
                for (i = 0; i &lt; 8 * t.length; i += 8) {
                    _e12[i &gt;&gt; 5] |= (255 &amp; t.charCodeAt(i / 8)) &lt;&lt; i % 32;
                }
                return _e12;
            }
        }, {
            key: "binl2rstr",
            value: function binl2rstr(t) {
                for (var _e13 = "", i = 0; i &lt; 32 * t.length; i += 8) {
                    _e13 += String.fromCharCode(t[i &gt;&gt; 5] &gt;&gt;&gt; i % 32 &amp; 255);
                }
                return _e13;
            }
        }, {
            key: "binl_md5",
            value: function binl_md5(t, _e14) {
                t[_e14 &gt;&gt; 5] |= 128 &lt;&lt; _e14 % 32, t[14 + (_e14 + 64 &gt;&gt;&gt; 9 &lt;&lt; 4)] = _e14;
                for (var i = 1732584193, s = -271733879, a = -1732584194, o = 271733878, n = 0; n &lt; t.length; n += 16) {
                    var r = i, h = s, l = a, d = o;
                    i = this.md5_ff(i, s, a, o, t[n + 0], 7, -680876936), o = this.md5_ff(o, i, s, a, t[n + 1], 12, -389564586),
                        a = this.md5_ff(a, o, i, s, t[n + 2], 17, 606105819), s = this.md5_ff(s, a, o, i, t[n + 3], 22, -1044525330),
                        i = this.md5_ff(i, s, a, o, t[n + 4], 7, -176418897), o = this.md5_ff(o, i, s, a, t[n + 5], 12, 1200080426),
                        a = this.md5_ff(a, o, i, s, t[n + 6], 17, -1473231341), s = this.md5_ff(s, a, o, i, t[n + 7], 22, -45705983),
                        i = this.md5_ff(i, s, a, o, t[n + 8], 7, 1770035416), o = this.md5_ff(o, i, s, a, t[n + 9], 12, -1958414417),
                        a = this.md5_ff(a, o, i, s, t[n + 10], 17, -42063), s = this.md5_ff(s, a, o, i, t[n + 11], 22, -1990404162),
                        i = this.md5_ff(i, s, a, o, t[n + 12], 7, 1804603682), o = this.md5_ff(o, i, s, a, t[n + 13], 12, -40341101),
                        a = this.md5_ff(a, o, i, s, t[n + 14], 17, -1502002290), s = this.md5_ff(s, a, o, i, t[n + 15], 22, 1236535329),
                        i = this.md5_gg(i, s, a, o, t[n + 1], 5, -165796510), o = this.md5_gg(o, i, s, a, t[n + 6], 9, -1069501632),
                        a = this.md5_gg(a, o, i, s, t[n + 11], 14, 643717713), s = this.md5_gg(s, a, o, i, t[n + 0], 20, -373897302),
                        i = this.md5_gg(i, s, a, o, t[n + 5], 5, -701558691), o = this.md5_gg(o, i, s, a, t[n + 10], 9, 38016083),
                        a = this.md5_gg(a, o, i, s, t[n + 15], 14, -660478335), s = this.md5_gg(s, a, o, i, t[n + 4], 20, -405537848),
                        i = this.md5_gg(i, s, a, o, t[n + 9], 5, 568446438), o = this.md5_gg(o, i, s, a, t[n + 14], 9, -1019803690),
                        a = this.md5_gg(a, o, i, s, t[n + 3], 14, -187363961), s = this.md5_gg(s, a, o, i, t[n + 8], 20, 1163531501),
                        i = this.md5_gg(i, s, a, o, t[n + 13], 5, -1444681467), o = this.md5_gg(o, i, s, a, t[n + 2], 9, -51403784),
                        a = this.md5_gg(a, o, i, s, t[n + 7], 14, 1735328473), s = this.md5_gg(s, a, o, i, t[n + 12], 20, -1926607734),
                        i = this.md5_hh(i, s, a, o, t[n + 5], 4, -378558), o = this.md5_hh(o, i, s, a, t[n + 8], 11, -2022574463),
                        a = this.md5_hh(a, o, i, s, t[n + 11], 16, 1839030562), s = this.md5_hh(s, a, o, i, t[n + 14], 23, -35309556),
                        i = this.md5_hh(i, s, a, o, t[n + 1], 4, -1530992060), o = this.md5_hh(o, i, s, a, t[n + 4], 11, 1272893353),
                        a = this.md5_hh(a, o, i, s, t[n + 7], 16, -155497632), s = this.md5_hh(s, a, o, i, t[n + 10], 23, -1094730640),
                        i = this.md5_hh(i, s, a, o, t[n + 13], 4, 681279174), o = this.md5_hh(o, i, s, a, t[n + 0], 11, -358537222),
                        a = this.md5_hh(a, o, i, s, t[n + 3], 16, -722521979), s = this.md5_hh(s, a, o, i, t[n + 6], 23, 76029189),
                        i = this.md5_hh(i, s, a, o, t[n + 9], 4, -640364487), o = this.md5_hh(o, i, s, a, t[n + 12], 11, -421815835),
                        a = this.md5_hh(a, o, i, s, t[n + 15], 16, 530742520), s = this.md5_hh(s, a, o, i, t[n + 2], 23, -995338651),
                        i = this.md5_ii(i, s, a, o, t[n + 0], 6, -198630844), o = this.md5_ii(o, i, s, a, t[n + 7], 10, 1126891415),
                        a = this.md5_ii(a, o, i, s, t[n + 14], 15, -1416354905), s = this.md5_ii(s, a, o, i, t[n + 5], 21, -57434055),
                        i = this.md5_ii(i, s, a, o, t[n + 12], 6, 1700485571), o = this.md5_ii(o, i, s, a, t[n + 3], 10, -1894986606),
                        a = this.md5_ii(a, o, i, s, t[n + 10], 15, -1051523), s = this.md5_ii(s, a, o, i, t[n + 1], 21, -2054922799),
                        i = this.md5_ii(i, s, a, o, t[n + 8], 6, 1873313359), o = this.md5_ii(o, i, s, a, t[n + 15], 10, -30611744),
                        a = this.md5_ii(a, o, i, s, t[n + 6], 15, -1560198380), s = this.md5_ii(s, a, o, i, t[n + 13], 21, 1309151649),
                        i = this.md5_ii(i, s, a, o, t[n + 4], 6, -145523070), o = this.md5_ii(o, i, s, a, t[n + 11], 10, -1120210379),
                        a = this.md5_ii(a, o, i, s, t[n + 2], 15, 718787259), s = this.md5_ii(s, a, o, i, t[n + 9], 21, -343485551),
                        i = this.safe_add(i, r), s = this.safe_add(s, h), a = this.safe_add(a, l), o = this.safe_add(o, d);
                }
                return [i, s, a, o];
            }
        }, {
            key: "md5_cmn",
            value: function md5_cmn(t, _e15, i, s, a, o) {
                return this.safe_add(this.bit_rol(this.safe_add(this.safe_add(_e15, t), this.safe_add(s, o)), a), i);
            }
        }, {
            key: "md5_ff",
            value: function md5_ff(t, _e16, i, s, a, o, n) {
                return this.md5_cmn(_e16 &amp; i | ~_e16 &amp; s, t, _e16, a, o, n);
            }
        }, {
            key: "md5_gg",
            value: function md5_gg(t, _e17, i, s, a, o, n) {
                return this.md5_cmn(_e17 &amp; s | i &amp; ~s, t, _e17, a, o, n);
            }
        }, {
            key: "md5_hh",
            value: function md5_hh(t, _e18, i, s, a, o, n) {
                return this.md5_cmn(_e18 ^ i ^ s, t, _e18, a, o, n);
            }
        }, {
            key: "md5_ii",
            value: function md5_ii(t, _e19, i, s, a, o, n) {
                return this.md5_cmn(i ^ (_e19 | ~s), t, _e19, a, o, n);
            }
        }, {
            key: "safe_add",
            value: function safe_add(t, _e20) {
                var i = (65535 &amp; t) + (65535 &amp; _e20);
                return (t &gt;&gt; 16) + (_e20 &gt;&gt; 16) + (i &gt;&gt; 16) &lt;&lt; 16 | 65535 &amp; i;
            }
        }, {
            key: "bit_rol",
            value: function bit_rol(t, _e21) {
                return t &lt;&lt; _e21 | t &gt;&gt;&gt; 32 - _e21;
            }
        }]);
        return e;
    }();
    var i = function i() {
        _classCallCheck(this, i);
    };
    i.mAdOn = !0, i.mSoundable = !0, i.mVersion = 1001, i.TAG = "box_2048", i.mScoreUnit = "åˆ†",
        i.mURL = "", i.mCmd = {
            check: "1.0.1/" + i.TAG + "/check?",
            login: "1.0.1/" + i.TAG + "/login?",
            login2: "1.0.2/" + i.TAG + "/login2?",
            challenge: "1.0.1/" + i.TAG + "/challenge?",
            querycards: "1.0.1/" + i.TAG + "/querycards?",
            rank: "1.0.1/" + i.TAG + "/rank?",
            report: "1.0.1/" + i.TAG + "/report?",
            AddCard: "1.0.1/" + i.TAG + "/addcard?",
            AddMyCard: "1.0.1/" + i.TAG + "/AddMyCard?",
            ad: "1.0.1/" + i.TAG + "/ad?",
            mymark: "1.0.1/" + i.TAG + "/mymark?",
            ItemTotle: "1.0.1/" + i.TAG + "/ItemTotle?",
            SetUserValue: "1.0.1/" + i.TAG + "/SetUserValue?",
            ChangeTCt: "1.0.1/" + i.TAG + "/ChangeTCt?",
            GetNowTime: "1.0.1/" + i.TAG + "/GetNowTime?"
        }, i.mKeys = {
            "1.0.1": "f31ff06cd174bce746fd8d9a59d4d294"
        }, i.maidinKey = "9bdfFbvgt1s_fd0d3e27ef", i.mReportAdHitUrl = i.mURL + "1.0.1/" + i.TAG + "/data?";
    var s = function s() {
        _classCallCheck(this, s);
    };
    s.sShareUrls = [], s.mShareIds = {
        shareApp: 1,
        shareProp: 1
    };
    var a = /* */ function () {
        function a() {
            _classCallCheck(this, a);
        }
        _createClass(a, null, [{
            key: "getTimeBySecond",
            value: function getTimeBySecond(t) {
                var e = Math.round((t - 1800) / 3600), i = Math.round((t - 30) / 60) % 60, s = Math.floor(t % 60);
                return (e &gt; 0 ? e &gt; 9 ? String(e) : "0" + e : "00") + ":" + (i &gt; 0 ? i &gt; 9 ? String(i) : "0" + i : "00") + ":" + (s &gt; 0 ? s &gt; 9 ? String(s) : "0" + s : "00");
            }
        }, {
            key: "getTodayFirstSecond",
            value: function getTodayFirstSecond() {
                var t = new Date();
                return t.setHours(0, 0, 0, 0), t.getTime() / 1e3;
            }
        }, {
            key: "getCurrTime",
            value: function getCurrTime() {
                var t = new Date();
                return Math.floor(t.getTime() / 1e3);
            }
        }]);
        return a;
    }();
    Laya.Browser.window.wx;
    var o = /* */ function () {
        function o() {
            _classCallCheck(this, o);
        }
        _createClass(o, null, [{
            key: "day",
            value: function day() {
                var t = new Date(), e = [t.getFullYear(), t.getMonth(), t.getDate()];
                var i = o.mWX.getUserDataByKey("yes_day_time");
                if (null == i) return o.mWX.setUserValue("yes_day_time", JSON.stringify(e)), o.mWX.setUserValue("haveTipCount", "20"),
                    !0;
                {
                    var _t10 = JSON.parse(i);
                    if (3 == _t10.length) {
                        var s = !0;
                        return _t10[0] != e[0] &amp;&amp; (s = !1), _t10[1] != e[1] &amp;&amp; (s = !1), _t10[2] != e[2] &amp;&amp; (s = !1),
                            0 == s &amp;&amp; o.mWX.setUserValue("yes_day_time", JSON.stringify(e)), s;
                    }
                }
            }
        }]);
        return o;
    }();
    o.level_num = 1, o.applist_y = 40, o.is_h_w = !1, o.adUtil = null, o.is_share = !0,
        o.result_banner = !1, o.BannerGamesShare = null, o.HotShare = null, o.FriendShare = null,
        o.ResultGamesShare = null;
    var n = Laya.Browser.window.wx;
    var r = /* */ function () {
        function r() {
            _classCallCheck(this, r);
            this.mBannerOffsetY = 80, this.adBanner = null, this.mCustomBanner = null, this.mCustomBannerAdList = [],
                this.customIdList = ["adunit-b9a5ad35ced3359f", "adunit-fa306aead37098c7", "adunit-382f74a834d26b50"],
                this.show_Ys_Num = 0, this.updateBannerNum = 3, this.closeUINum = 0, this.banner_realHeight = 0,
                this.banner_realWidth = 0, this.rush_bannernumb = 0, this.is_show_banner = !1, this.is_success_banner = !1;
        }
        _createClass(r, [{
            key: "showBannerAd",
            value: function showBannerAd() {
                var _this = this;
                var t = arguments.length &gt; 0 &amp;&amp; arguments[0] !== undefined ? arguments[0] : "";
                var e = arguments.length &gt; 1 &amp;&amp; arguments[1] !== undefined ? arguments[1] : 1;
                var i = arguments.length &gt; 2 &amp;&amp; arguments[2] !== undefined ? arguments[2] : null;
                if ("" == r.sDefaultBannerId) return;
                var s = this;
                if (window.wx) if (null == s.adBanner) {
                    t = r.sDefaultBannerId, r.sDefaultBannerIdList.length &gt; 0 &amp;&amp; (this.rush_bannernumb &gt;= r.sDefaultBannerIdList.length &amp;&amp; (this.rush_bannernumb = 0),
                        t = r.sDefaultBannerIdList[this.rush_bannernumb], this.rush_bannernumb++), s.adBanner = n.createBannerAd({
                            adUnitId: t,
                            style: {
                                left: 0,
                                top: y.uo.phone().screenHeight - 107,
                                width: y.uo.phone().screenWidth * e
                            }
                        });
                    var _a = 0;
                    Laya.Browser.onIOS &amp;&amp; o.is_h_w &amp;&amp; (_a = 20), s.adBanner.onResize(function (t) {
                        s.adBanner.style.top = y.uo.phone().screenHeight - s.adBanner.style.realHeight - _a,
                            s.adBanner.style.left = (y.uo.phone().screenWidth - s.adBanner.style.realWidth) / 2;
                    }), s.adBanner.onLoad(function () {
                        console.log("adBanner å¹¿å‘ŠåŠ&nbsp;è½½æˆåŠŸ"), _this.banner_realHeight = s.adBanner.style.realHeight,
                            _this.banner_realWidth = s.adBanner.style.realWidth, _this.is_success_banner = !0,
                            null != i &amp;&amp; (i(), i = null);
                    }), s.adBanner.onError(function (t) {
                        _this.banner_realHeight = 0, _this.banner_realWidth = 0, _this.is_success_banner = !1,
                            console.log("adbanner onerror = " + JSON.stringify(t)), null != i &amp;&amp; (i(), i = null),
                            s.adBanner = null;
                    }), s.adBanner.show();
                } else s.adBanner.style.width = y.uo.phone().screenWidth * e, null != s.mCustomBanner ? (s.mCustomBanner.visible = !0,
                    s.adBanner = null) : (s.adBanner.show(), this.is_show_banner = !0);
            }
        }, {
            key: "updateBanner",
            value: function updateBanner() {
                if (this.closeUINum++, this.closeUINum &gt;= this.updateBannerNum) {
                    if (this.closeUINum = 0, null == this.adBanner) return;
                    null != this.adBanner &amp;&amp; (o.adUtil.adBanner.destroy(!0), o.adUtil.adBanner = null,
                        o.adUtil.showBannerAd());
                } else o.adUtil.showBannerAd();
            }
        }, {
            key: "hideBannerAd",
            value: function hideBannerAd() {
                var t = arguments.length &gt; 0 &amp;&amp; arguments[0] !== undefined ? arguments[0] : null;
                null != this.adBanner &amp;&amp; null != this.adBanner &amp;&amp; (this.adBanner.hide(), this.is_show_banner &amp;&amp; (o.adUtil.adBanner.destroy(!0),
                    o.adUtil.adBanner = null, o.adUtil.showBannerAd("", 1, function () {
                        null != t &amp;&amp; t();
                    })), this.is_show_banner = !1);
            }
        }, {
            key: "closeBanner",
            value: function closeBanner() {
                null != this.adBanner &amp;&amp; null != this.adBanner &amp;&amp; this.adBanner.hide();
            }
        }], [{
            key: "playVideo",
            value: function playVideo(t) {
                var e = arguments.length &gt; 1 &amp;&amp; arguments[1] !== undefined ? arguments[1] : null;
                var i = arguments.length &gt; 2 &amp;&amp; arguments[2] !== undefined ? arguments[2] : null;


                my.r(() =&gt; {
                    null != e &amp;&amp; e()
                }, () =&gt; {
                    null != i &amp;&amp; i()
                })

                // Laya.Browser.window.wx ? r.sIsPlayVideo || (y.uo.mVideoAD ? (r.sIsPlayVideo = !0,
                //     Laya.timer.once(1200, this, function () {
                //         r.sIsPlayVideo = !1;
                //     }), y.uo.showVideoAD(function (i) {
                //         i ? (r.sIsPlayVideo = !1, null != t &amp;&amp; null != t &amp;&amp; t()) : (r.sIsPlayVideo = !1,
                //             null != e &amp;&amp; e());
                //     })) : (r.sIsPlayVideo = !1, null != i &amp;&amp; i(), n.showToast({
                //         title: "è§†é¢‘èŽ·å–å¤±è´¥",
                //         icon: "none",
                //         image: "",
                //         duration: 2e3
                //     }))) : t();
            }
        }, {
            key: "showInterstitialAd",
            value: function showInterstitialAd() {
                window.wx &amp;&amp; (Date.now() - y.uo.closeCPTime &gt; 31e3 ? y.uo.showInterstitialAd() : b.showCustomAd(4));
            }
        }]);
        return r;
    }();
    r.sDefaultBannerId = "adunit-9a414b0bfe7ebfb6", r.sDefaultBannerIdList = [], r.sDefaultVideoId = "adunit-660fa9f449f2c346",
        r.sDefaultCustomId = "adunit-b9a5ad35ced3359f", r.sDefaultInterstitialId = "adunit-75e4d23cc55959ad",
        r.sDefaultNum = 5, r.chapin_Num = 3, r.openUINum = 0, r.sIsPlayVideo = !1;
    var h = Laya.HttpRequest;
    var l = Laya.Browser.window.wx;
    var d = /* */ function () {
        function d() {
            _classCallCheck(this, d);
            this.mUID = 0, this.mOnOff = [], this.mCards = 0, this.mWeiXinVersion = "", this.mADKeep = 0,
                this.mHttpCall = null, this.mLaunch = null, this.mSaveImage = "", this.mMyRank = 0,
                this.mChallenge = null, this.mShareID = 0, this.mMarks = [0, 0, 0, 0], this.fhOnoff = 0,
                this.mrelayID = 0, this.maxToolCards = 2, this.mToolCards = 0, this.mReturnAppid = "",
                this.mReturnUrl = "", this.mTaskInfo = [], this.mCoinsNum = 0, this.mPropList = [],
                this.mUsingPropId = "2001", this.mStartAward = [], this.mUserData = [], this.mNowDay = 0,
                this.mWxAdUrl = [], this.mGamesBox = [], this.mShareCallback = null, this.mShareIsNoCallback = null,
                this.mShareIsAgainCallback = null, this.mCallShareTime = 0, this.mShareCount = 0,
                this.mPassAwardListData = [], this.mdtValues = null, this.stagesList = null, this.onOffData = {},
                this.onUserData = {}, this.is_address = !0;
        }
        _createClass(d, [{
            key: "onHttpRequestError",
            value: function onHttpRequestError(t) {
                this.mHttpCall = null, console.log("onHttpRequestError:" + t);
            }
        }, {
            key: "GetNowTime",
            value: function GetNowTime() {
                var t = arguments.length &gt; 0 &amp;&amp; arguments[0] !== undefined ? arguments[0] : null;
                var e = [];
                e.uid = this.mUID, y.uo.server(u.mIF.GetNowTime, e, function (e) {
                    0 == e.code &amp;&amp; (o.mWX.stagesList = e.code, null != t &amp;&amp; t(e.time));
                });
            }
        }, {
            key: "getStageStatus",
            value: function getStageStatus() {
                var t = {};
                t.uid = y.uo.mWeUser.uid, y.uo.server(u.mIF.getstages, t, function (t) {
                    0 == t.code ? o.mWX.stagesList = t.stages : o.mWX.stagesList;
                });
            }
        }, {
            key: "onLaunch",
            value: function onLaunch(e) {
                var a = arguments.length &gt; 1 &amp;&amp; arguments[1] !== undefined ? arguments[1] : !1;
                y.uo.getUser();
                var n = {};
                Laya.Browser.onIOS ? n.platform = 2 : n.platform = 1, n.uid = y.uo.mWeUser.uid,
                    n.ver = i.mVersion, void 0 !== e.query.uid &amp;&amp; (n.target = e.query.uid), void 0 !== e.query.type &amp;&amp; (n.type = e.query.type),
                    void 0 !== e.query.id &amp;&amp; (n.id = e.query.id), y.uo.server(u.mIF.lauch, n, function (e) {
                        0 == e.code &amp;&amp; (console.log("ç”¨æˆ·çš„æ•°æ®", e), o.mWX.mMarks[0] = Number(e.marks.mark),
                            o.mWX.fhOnoff = Number(e.fh_onoff), console.log("å¼€å…³", o.mWX.fhOnoff), s.sShareUrls = e.shareurl,
                            o.mWX.mOnOff = e.on_off, o.mWX.mNowDay = e.nowday, o.mWX.mCoinsNum = Number(e.coins),
                            o.mWX.mWxAdUrl = e.wxadurl, o.mWX.mdtValues = e.dt_values, o.mWX.ip_location = e.ip_location,
                            null != e.user_data &amp;&amp; null != e.user_data &amp;&amp; e.user_data.length &gt; 0 &amp;&amp; (o.mWX.mUserData = e.user_data),
                            o.mWX.setOnOff(e), o.mWX.setUserData(), o.mWX.ABGroup(), o.mWX.mGamesBox = e.games_box,
                            y.uo.mIsNewUser = e.nowday == e.regday ? 1 : 0, 1 == y.uo.mIsNewUser &amp;&amp; (r.chapin_Num = 0),
                            o.mWX.maidianDate(), t.dataLoaded = !0, o.mWX.getStageStatus(), y.uo.initVideoAD(r.sDefaultVideoId),
                            y.uo.initInterstitialAd(r.sDefaultInterstitialId), o.adUtil.showBannerAd("", 1, function () { }));
                    });
            }
        }, {
            key: "setOnOff",
            value: function setOnOff(t) {
                var _this2 = this;
                t.on_off.forEach(function (e) {
                    switch (e.key) {
                        case "of_show_iconclosebtn":
                        case "of_startpage_showfenfa":
                        case "of_over_btntime":
                            e.param = JSON.parse(e.param), t.fh_onoff || (e.value = 0), _this2.onOffData[e.key] = e;
                            break;

                        default:
                            t.fh_onoff || (e.value = 0), _this2.onOffData[e.key] = e.value;
                    }
                });
            }
        }, {
            key: "setUserData",
            value: function setUserData() {
                var _this3 = this;
                o.mWX.mUserData.forEach(function (t) {
                    switch (t.key) {
                        case "level_num":
                            o.level_num = Number(t.values);
                            break;

                        case "gold":
                            localStorage.setItem("curMoney", String(t.values));
                            break;

                        case "first_adid":
                        case "first_channe_id":
                        case "first_media_type":
                        case "first_share_from":
                        case "nowtime":
                        case "sigh_id":
                        case "power":
                        case "config_jump_number":
                        case "startpower":
                        case "skin":
                        case "cur_power":
                            _this3.onUserData[t.key] = t.values;
                    }
                }), console.log("11111111111111", this.onUserData);
            }
        }, {
            key: "rightWXShare",
            value: function rightWXShare() {
                window.wx &amp;&amp; (l.showShareMenu({
                    withShareTicket: !0
                }), this.shareApp());
            }
        }, {
            key: "shareApp",
            value: function shareApp() {
                console.log("å¼€å¯åˆ†äº«"), l.onShareAppMessage(function () {
                    var t = s.mShareIds.shareApp;
                    return {
                        title: s.sShareUrls[2].title,
                        imageUrl: s.sShareUrls[2].url,
                        query: "uid=" + o.mWX.mUID + "&amp;score=0&amp;client=0&amp;type=0&amp;id=0&amp;surl=" + t,
                        success: function success(t) { }
                    };
                });
            }
        }, {
            key: "ABGroup",
            value: function ABGroup() {
                Number(y.uo.mWeUser.uid) % 2 != 0 &amp;&amp; (y.uo.group = "a");
            }
        }, {
            key: "maidian",
            value: function maidian(t, e) {
                var i = {
                    icon_type: t,
                    is_click: 1,
                    is_success: e,
                    from_type: "video"
                };
                o.mWX.indexBpTotle("icon_page", i);
            }
        }, {
            key: "address_1",
            value: function address_1() {
                if (this.is_address) {
                    this.is_address = !1;
                    var t = l.getSystemInfoSync();
                    var _e22 = Laya.LocalStorage.getItem("firstEntryTime");
                    "" == _e22 &amp;&amp; (_e22 = String(a.getCurrTime()), Laya.LocalStorage.setItem("firstEntryTime", _e22));
                    var _i = Laya.LocalStorage.getItem("lastEntryTime");
                    "" == _i &amp;&amp; (_i = String(a.getCurrTime()), Laya.LocalStorage.setItem("lastEntryTime", _i));
                    var _s2 = {
                        channel_type: 0,
                        share_from: void 0 !== y.uo.launch().query.uid ? y.uo.launch().query.uid : "0",
                        first_entry_time: _e22,
                        last_entry_time: _i,
                        wechat_version: t.version,
                        device_os_version: y.uo.mPhone.system,
                        device_type: y.uo.mPhone.model
                    };
                    o.mWX.indexBpTotle("app_entry", _s2);
                }
            }
        }, {
            key: "maidianDate",
            value: function maidianDate() {
                if (y.uo.mLaunch) {
                    null == o.mWX.getUserDataByKey("first_channe_id") ? (null != y.uo.mLaunch.query.wxgamecid &amp;&amp; (y.uo.channe_id = y.uo.mLaunch.query.wxgamecid,
                        y.uo.first_channe_id = y.uo.mLaunch.query.wxgamecid), o.mWX.setUserValue("first_channe_id", y.uo.first_channe_id + "")) : (null != y.uo.mLaunch.query.wxgamecid &amp;&amp; (y.uo.channe_id = y.uo.mLaunch.query.wxgamecid),
                            y.uo.first_channe_id = o.mWX.getUserDataByKey("first_channe_id"));
                }
                if (y.uo.mLaunch) {
                    null == o.mWX.getUserDataByKey("first_adid") ? (null != y.uo.mLaunch.query.adid &amp;&amp; (y.uo.adid = y.uo.mLaunch.query.adid,
                        y.uo.first_adid = y.uo.mLaunch.query.adid), o.mWX.setUserValue("first_adid", y.uo.first_adid + "")) : (null != y.uo.mLaunch.query.adid &amp;&amp; (y.uo.adid = y.uo.mLaunch.query.adid),
                            y.uo.first_adid = o.mWX.getUserDataByKey("first_adid"));
                }
                o.mWX.address_1();
            }
        }, {
            key: "getOnOffByKey",
            value: function getOnOffByKey(t) {
                if (0 == this.fhOnoff &amp;&amp; "of_jump" != t) return !1;
                for (var e = 0; e &lt; this.mOnOff.length; e++) {
                    if (this.mOnOff[e].key == t) return "0" != this.mOnOff[e].value;
                }
                return !1;
            }
        }, {
            key: "setUserValue",
            value: function setUserValue(t, e) {
                var s = arguments.length &gt; 2 &amp;&amp; arguments[2] !== undefined ? arguments[2] : !1;
                var a = arguments.length &gt; 3 &amp;&amp; arguments[3] !== undefined ? arguments[3] : null;
                var o = this;
                s &amp;&amp; l.showLoading({
                    title: "",
                    mask: !0,
                    success: function success() { },
                    fail: function fail() { },
                    complete: function complete() { }
                }), this.mHttpCall = new h(), this.mHttpCall.once(Laya.Event.COMPLETE, this, function (i) {
                    var n = null;
                    0 == (n = "string" == typeof i ? p.getJSON(i) : p.getJSON(o.mHttpCall.data)).code &amp;&amp; (o.updateUserDataByKey(t, e),
                        null != a &amp;&amp; a()), s &amp;&amp; l.hideLoading(), o.mHttpCall = null;
                }), this.mHttpCall.once(Laya.Event.ERROR, this, this.onHttpRequestError);
                var n = [];
                n.uid = this.mUID, n.dt_key = t, n.dt_value = e;
                var r = i.mURL + i.mCmd.SetUserValue + p.getUrlParams(n, "1.0.1");
                this.mHttpCall.send(r, null, "get", "text");
            }
        }, {
            key: "getUserDataByKey",
            value: function getUserDataByKey(t) {
                return o.mWX.onUserData[t];
            }
        }, {
            key: "updateUserDataByKey",
            value: function updateUserDataByKey(t, e) {
                for (var i = 0, s = 0; s &lt; this.mUserData.length; s++) {
                    this.mUserData[s].key == t ? this.mUserData[s].values = e : i++;
                }
                if (i == this.mUserData.length) {
                    var _i2 = new Object();
                    _i2.key = t, _i2.values = e, this.mUserData.push(_i2);
                }
            }
        }, {
            key: "getOnOffValueByKey",
            value: function getOnOffValueByKey(t) {
                for (var e = 0; e &lt; this.mOnOff.length; e++) {
                    if (this.mOnOff[e].key == t) return this.mOnOff[e].value;
                }
                return "0";
            }
        }, {
            key: "getOnOffParamByKey",
            value: function getOnOffParamByKey(t) {
                var e = "";
                for (var _i3 = 0; _i3 &lt; o.mWX.mOnOff.length; _i3++) {
                    if (o.mWX.mOnOff[_i3].key == t) {
                        e = o.mWX.mOnOff[_i3].param;
                        break;
                    }
                }
                return e;
            }
        }, {
            key: "getShareTimeByCount",
            value: function getShareTimeByCount() {
                var t = o.mWX.getOnOffParamByKey("of_share_time");
                console.log("åˆ†äº«æ—¶é—´", t);
                var e = t.split(",");
                return o.mWX.mShareCount &gt; 0 ? Number(e[e.length - 1]) / 1e3 : Number(e[0]) / 1e3;
            }
        }, {
            key: "GetBPUrl",
            value: function GetBPUrl() {
                var t = "";
                if (null != y.uo.mdtValues) return e = (t = y.uo.mdtValues).split("?");
                o.mWX.mdtValues.forEach(function (e) {
                    "dt_log_url" != e.key || (t = e.param);
                });
                var e = t.split("?");
                return console.log("èŽ·å¾—åŸ‹ç‚¹åœ°å€", e), e;
            }
        }, {
            key: "indexBpTotle",
            value: function indexBpTotle(t, e) {
                if (!window.wx) return;
                this.mHttpCall = new h(), this.mHttpCall.once(Laya.Event.COMPLETE, this, this.onHttpRequestError),
                    e.uid = y.uo.mWeUser.uid, e.is_new = y.uo.mIsNewUser, e.session_id = y.uo.loginSession,
                    e.create_time = a.getCurrTime(), e.channel_id = y.uo.channe_id, e.first_channel_id = y.uo.first_channe_id,
                    e.adid = y.uo.adid, e.first_adid = y.uo.first_adid, e.group = y.uo.group;
                var i = {};
                i.keyname = t, i.uid = y.uo.mWeUser.uid, i.clos = JSON.stringify(e);
                var s = this.GetBPUrl()[1].split("=");
                i.gameid = s[1];
                var o = this.GetBPUrl()[0] + "?" + p.getUrlParams(i, "maidian");
                console.log("åŸ‹ç‚¹ç»Ÿè®¡ï¼š", o), this.mHttpCall.send(o, null, "get", "text");
            }
        }]);
        return d;
    }();
    var c = Laya.Browser.window.wx;
    var m = /* */ function () {
        function m() {
            _classCallCheck(this, m);
        }
        _createClass(m, null, [{
            key: "shareProp",
            value: function shareProp(t) {
                o.is_share = !0;
                var e = s.mShareIds.shareProp, i = s.sShareUrls[2].title, n = s.sShareUrls[2].url;
                m.is_exit = !1, o.mWX.mCallShareTime = a.getCurrTime(), o.mWX.mShareCallback = function () {
                    t(!0);
                }, o.mWX.mShareIsNoCallback = function () {
                    o.mWX.mShareIsNoCallback = null, t(!1);
                };
                var r = t;
                o.mWX.mShareIsAgainCallback = function () {
                    m.shareProp(r);
                }, c.shareAppMessage({
                    title: i,
                    imageUrl: n,
                    query: "gift=" + o.mWX.mUID + "&amp;uid=" + o.mWX.mUID + "&amp;id=" + o.mWX.mShareID + "&amp;score=0&amp;client=0&amp;type=0&amp;surl=" + e,
                    success: function success(t) { },
                    fail: function fail(t) { }
                });
            }
        }]);
        return m;
    }();
    m.is_exit = !0;
    var u = /* */ function () {
        function u() {
            _classCallCheck(this, u);
            this.tip = null;
        }
        _createClass(u, [{
            key: "version",
            value: function version() {
                return "1.0.1";
            }
        }, {
            key: "loginBtnPos",
            value: function loginBtnPos() {
                return 160;
            }
        }, {
            key: "onBefore",
            value: function onBefore() {
                return !1;
            }
        }, {
            key: "onShow",
            value: function onShow() { }
        }, {
            key: "onReShow",
            value: function onReShow() { }
        }, {
            key: "onLogin",
            value: function onLogin(t, e) {
                return o.mWX = new d(), o.mWX.mUID = e.uid, o.mWX.mLaunch = y.uo.launch(), o.mWX.onLaunch(y.uo.launch()),
                    !0;
            }
        }, {
            key: "onEnterGame",
            value: function onEnterGame(t, e, i) {
                console.log("123", t), console.log("234", e), console.log("345", i), null != o.mWX.mShareCallback &amp;&amp; (m.is_exit = !0,
                    "0" == o.mWX.getOnOffValueByKey("of_share_time") ? (o.mWX.mShareCallback(), o.mWX.mShareCallback = null) : a.getCurrTime() - o.mWX.mCallShareTime &gt; o.mWX.getShareTimeByCount() ? (o.mWX.mShareCallback(),
                        o.mWX.mShareCallback = null, o.mWX.mShareCount++, o.mWX.mCallShareTime = 0) : (null != o.mWX.mShareIsNoCallback &amp;&amp; (o.mWX.mShareIsNoCallback(),
                            o.mWX.mShareIsNoCallback = null), o.is_share &amp;&amp; Laya.timer.once(200, this, function () {
                                Laya.Browser.window.wx.showToast({
                                    title: "åˆ†äº«åˆ°ç¾¤ç”Ÿæ•ˆ",
                                    icon: "none",
                                    duration: 2e3,
                                    false: function _false(t) {
                                        console.log(t);
                                    },
                                    success: function success(t) {
                                        console.log(t);
                                    }
                                });
                            })));
            }
        }, {
            key: "onHideGame",
            value: function onHideGame() { }
        }]);
        return u;
    }();
    u.mIF = {
        wxinfo: {
            url: "1.0.1/box_2048/wxinfo?",
            key: "1.0.1",
            tips: "æŠ¥å‘Šå¾®ä¿¡ä¿¡æ¯æŽ¥å£"
        },
        login: {
            url: "1.0.1/box_2048/login?",
            key: "1.0.1",
            tips: "ç™»å½•æœåŠ¡"
        },
        lauch: {
            url: "1.0.1/box_2048/lauch?",
            key: "1.0.1",
            tips: "ç™»å½•æœåŠ¡"
        },
        userinfo: {
            url: "1.0.1/box_2048/userinfo?",
            key: "1.0.1",
            tips: "æ›´æ–°ç”¨æˆ·ä¿¡æ¯"
        },
        getstages: {
            url: "1.0.1/box_2048/getstage?",
            key: "1.0.1",
            tips: "èŽ·å–å…³å¡é…ç½®"
        },
        GetNowTime: {
            url: "1.0.1/box_2048/GetNowTime?",
            key: "1.0.1",
            tips: "èŽ·å–åŽå°æ—¶é—´"
        }
    };
    var g = Laya.Browser.window.wx;
    var w = /* */ function () {
        function w() {
            _classCallCheck(this, w);
        }
        _createClass(w, null, [{
            key: "MD5",
            value: function MD5(t) {
                return new e().hex_md5(t);
            }
        }]);
        return w;
    }();
    var y = /* */ function () {
        function y() {
            _classCallCheck(this, y);
            this.version = "1.0.1", this.mLaunch = null, this.mWeUser = {}, this.mPhone = {},
                this.mSDKVersion = "", this.iphoneX = !1, this.mCallBack = null, this.mHttpCall = null,
                this.mLoginType = 1, this.mShowLogo = !0, this.btnLogin = null, this.zOrder = 123,
                this.mFrist = !0, this.mInit = !1, this.mVideoAD = null, this.mNoVideo = !1, this.interstitialAd = null,
                this.customAd = null, this.mIsNewUser = 0, this.option123 = null, this.loginSession = null,
                this.first_share_from = null, this.sigh_id = null, this.channe_id = "0", this.first_channe_id = "0",
                this.adid = "0", this.first_adid = "0", this.group = "b", this.mdtValues = null,
                this.closeCPTime = 0, y.uo = this, this.mCallBack = new u();
        }
        _createClass(y, [{
            key: "screenHeight",
            value: function screenHeight() {
                return this.mPhone.screenHeight;
            }
        }, {
            key: "IsXP",
            value: function IsXP() {
                return !!(Laya.Browser.onIOS &amp;&amp; this.mPhone.screenWidth &gt; 800);
            }
        }, {
            key: "wxVersion",
            value: function wxVersion() {
                return this.mSDKVersion;
            }
        }, {
            key: "getUser",
            value: function getUser() {
                return this.mWeUser;
            }
        }, {
            key: "getUserID",
            value: function getUserID() {
                return Number(this.mWeUser.uid);
            }
        }, {
            key: "phone",
            value: function phone() {
                return this.mPhone;
            }
        }, {
            key: "launch",
            value: function launch() {
                return this.mLaunch;
            }
        }, {
            key: "initWX",
            value: function initWX() {
                var e = arguments.length &gt; 0 &amp;&amp; arguments[0] !== undefined ? arguments[0] : 1;
                var i = arguments.length &gt; 1 &amp;&amp; arguments[1] !== undefined ? arguments[1] : !0;
                var s = arguments.length &gt; 2 &amp;&amp; arguments[2] !== undefined ? arguments[2] : 0;
                this.mPhone = g.getSystemInfoSync(), console.log("è¿›å…¥core", this.mPhone), this.mPhone.model.indexOf("iPhone X") &gt;= 0 &amp;&amp; (this.iphoneX = !0),
                    this.mSDKVersion = this.mPhone.SDKVersion;
                var a = g.getLaunchOptionsSync();
                t.getUserInfo(a.scene), this.option123 = a.query;
                var o = {};
                if (o.query = a.query, o.scene = a.scene, o.shareTicket = a.shareTicket, o.isSticky = a.isSticky,
                    null != o.query.scene) for (var n = decodeURIComponent(o.query.scene).split("&amp;"), r = 0; r &lt; n.length; r++) {
                        var h = n[r].split("=");
                        2 == h.length &amp;&amp; (o.query[h[0]] = h[1]);
                    }
                this.mLaunch = o, this.mLoginType = e, this.mShowLogo = i, Laya.timer.callLater(this, this.check);
            }
        }, {
            key: "showLoginBtn",
            value: function showLoginBtn() {
                if (console.log("showLoginBtn"), null == this.btnLogin) {
                    this.btnLogin = g.createUserInfoButton({
                        type: "image",
                        withCredentials: !1,
                        image: "",
                        style: {
                            left: 0,
                            top: 0,
                            width: 0,
                            height: 0
                        }
                    }), this.btnLogin.show(), console.log(this.btnLogin), this.btnLogin.onTap(function (t) {
                        void 0 !== t.userInfo ? (y.uo.btnLogin.destroy(), y.uo.initUser(t), y.uo.btnLogin = null) : g.showToast({
                            title: "æ¸¸æˆéœ€è¦æ‚¨æŽˆæƒå¤´åƒå’Œç”¨æˆ·åä¿¡æ¯!",
                            icon: "success",
                            image: "",
                            duration: 2e3
                        });
                    });
                }
            }
        }, {
            key: "check",
            value: function check() {
                g.checkSession({
                    success: function success(t) {
                        console.log("checkSession ok"), y.uo.login();
                    },
                    fail: function fail(t) {
                        console.log("checkSession fail"), g.removeStorageSync("user"), y.uo.login();
                    }
                });
            }
        }, {
            key: "reLogin",
            value: function reLogin() {
                g.removeStorageSync("user"), this.login();
            }
        }, {
            key: "login",
            value: function login() {
                var t = !0, e = g.getStorageSync("user");
                if ("object" == _typeof2(e)) {
                    var i = e.openid;
                    "" != i &amp;&amp; null != i || (t = !1), ("" == e.uid || null == e.uid || Number(e.uid) &lt; 1e4) &amp;&amp; (t = !1);
                } else t = !1;
                t ? (y.uo.mWeUser = e, y.uo.checkCode("")) : g.login({
                    success: function success(t) {
                        y.uo.checkCode(t.code);
                    },
                    fail: function fail(t) {
                        console.log("login fail,try again"), Laya.timer.once(1e3, y.uo, y.uo.login);
                    }
                });
            }
        }, {
            key: "checkCode",
            value: function checkCode(t) {
                console.log("å¼€å§‹ç™»é™†");
                var e = [];
                e.code = t, "" == t &amp;&amp; (e.uid = y.uo.mWeUser.uid), void 0 !== this.mLaunch.query.uid &amp;&amp; (e.master = this.mLaunch.query.uid),
                    void 0 !== this.mLaunch.query.agentid &amp;&amp; (e.agentid = this.mLaunch.query.agentid),
                    void 0 !== this.mLaunch.query.adid &amp;&amp; (e.adid = this.mLaunch.query.adid), e.ver = this.mCallBack.version(),
                    this.server(u.mIF.login, e, function (t) {
                        if (console.log("ç”¨æˆ·ç™»å½•è¿”å›žæ•°æ®", t), 0 == t.code) {
                            if (y.uo.mdtValues = t.dt_value, y.uo.loginSession = a.getCurrTime(), null != y.uo.mWeUser &amp;&amp; y.uo.mWeUser.uid == t.uid) {
                                if (y.uo.mWeUser.openid != t.openid) return void Laya.timer.once(100, y.uo, y.uo.reLogin);
                            } else y.uo.mWeUser = {}, y.uo.mWeUser.openid = t.openid, y.uo.mWeUser.uid = Number(t.uid);
                            var _e23 = {};
                            o.mWX.indexBpTotle("app_open", _e23), 1 == y.uo.mCallBack.onLogin(y.uo.mWeUser, t) ? y.uo.getUserInfo() : y.uo.init();
                        } else Laya.timer.once(1e3, y.uo, y.uo.reLogin);
                    });
            }
        }, {
            key: "getUserInfo",
            value: function getUserInfo() {
                if (2 == this.mLoginType) return y.uo.onEnter(null, this.mLaunch), void y.uo.init();
                g.getUserInfo({
                    withCredentials: !1,
                    lang: "zh_CN",
                    success: function success(t) {
                        console.log(t), y.uo.initUser(t);
                    },
                    fail: function fail(t) {
                        console.log(t), y.uo.mSDKVersion &gt;= "2.0.1" ? (y.uo.showLoginBtn(), y.uo.mCallBack.onReShow()) : y.uo.wxAuthorize();
                    }
                });
            }
        }, {
            key: "wxAuthorize",
            value: function wxAuthorize() {
                g.authorize({
                    scope: "scope.userInfo",
                    success: function success(t) {
                        y.uo.getUserInfo();
                    },
                    fail: function fail(t) {
                        y.uo.openSeting();
                    }
                });
            }
        }, {
            key: "openSeting",
            value: function openSeting() {
                var t = this;
                g.showModal({
                    title: "æç¤º",
                    content: "æ¸¸æˆéœ€è¦æ‚¨æŽˆæƒå¤´åƒå’Œç”¨æˆ·åä¿¡æ¯",
                    showCancel: !1,
                    cancelText: "å–æ¶ˆ",
                    confirmText: "ç¡®è®¤",
                    success: function success(e) {
                        g.openSetting({
                            success: function success(t) {
                                0 == t.authSetting["scope.userInfo"] ? y.uo.openSeting() : y.uo.getUserInfo();
                            },
                            fail: function fail(e) {
                                t.openSeting();
                            }
                        });
                    }
                });
            }
        }, {
            key: "initUser",
            value: function initUser(t) {
                var e = 0, i = t.userInfo;
                console.log(i.avatarUrl, y.uo.mWeUser.avatarUrl, y.uo.mWeUser.nickName, i.nickName),
                    y.uo.mWeUser.nickName != i.nickName &amp;&amp; (y.uo.mWeUser.nickName = i.nickName, e = 1);
                var s = i.avatarUrl;
                "0" == s.charAt(s.length - 1) &amp;&amp; "/" == s.charAt(s.length - 2) &amp;&amp; (s = s.substr(0, s.length - 2),
                    s += "/132"), y.uo.mWeUser.avatarUrl != s &amp;&amp; (y.uo.mWeUser.avatarUrl = s, e = 1),
                    y.uo.mWeUser.gender = i.gender, y.uo.mWeUser.province = i.province, y.uo.mWeUser.city = i.city,
                    y.uo.mWeUser.country = i.country, 1 == e &amp;&amp; y.uo.updateUserInfo(), g.setStorageSync("user", y.uo.mWeUser),
                    y.uo.onEnter(null, this.mLaunch), y.uo.init();
            }
        }, {
            key: "onEnter",
            value: function onEnter(t, e) {
                this.mCallBack.onEnterGame(this.mFrist, t, e), this.mFrist = !1;
            }
        }, {
            key: "init",
            value: function init() {
                0 == this.mInit &amp;&amp; (g.onShow(this.wxShow), g.onHide(this.wxHide), this.mInit = !0);
            }
        }, {
            key: "wxShow",
            value: function wxShow(t) {
                console.log("é»˜è®¤éšè—"), console.log("è¾¾åˆ°"), console.log("è¿›å…¥:" + new Date().getTime()),
                    console.log(t);
                var e = {};
                if (e.query = t.query, e.scene = t.scene, e.shareTicket = t.shareTicket, e.isSticky = t.isSticky,
                    null != e.query.scene) for (var i = decodeURIComponent(e.query.scene).split("&amp;"), s = 0; s &lt; i.length; s++) {
                        var a = i[s].split("=");
                        2 == a.length &amp;&amp; (e.query[a[0]] = a[1]);
                    }
                if (1 == y.uo.mFrist) return y.uo.mLaunch = e, void y.uo.getUserInfo();
                var o = y.uo.mLaunch;
                y.uo.mLaunch = e, y.uo.onEnter(o, e);
            }
        }, {
            key: "wxHide",
            value: function wxHide() {
                y.uo.mCallBack.onHideGame(), console.log("é€€å‡º:" + new Date().getTime());
            }
        }, {
            key: "updateUserInfo",
            value: function updateUserInfo() {
                var t = {};
                t.uid = y.uo.mWeUser.uid, t.gender = y.uo.mWeUser.gender, null != y.uo.mWeUser.province &amp;&amp; "" != y.uo.mWeUser.province &amp;&amp; (t.province = y.uo.mWeUser.province),
                    null != y.uo.mWeUser.city &amp;&amp; "" != y.uo.mWeUser.city &amp;&amp; (t.city = y.uo.mWeUser.city),
                    this.server(u.mIF.userinfo, t, function (t) {
                        console.log("updateUserInfo..ok");
                    });
            }
        }, {
            key: "server",
            value: function server(t, e, i) {
                var s = arguments.length &gt; 3 &amp;&amp; arguments[3] !== undefined ? arguments[3] : null;
                this.mHttpCall = new Laya.HttpRequest(), this.mHttpCall.once(Laya.Event.COMPLETE, this, function (t) {
                    var e = null;
                    e = "string" == typeof t ? p.getJSON(t) : p.getJSON(y.uo.mHttpCall.data), null != i &amp;&amp; i(e),
                        y.uo.mHttpCall = null;
                }), this.mHttpCall.once(Laya.Event.ERROR, this, function (t) {
                    null != s ? s() : y.uo.onHttpRequestError(t);
                });
                var a = p.getServer() + t.url + p.getUrlParams(e, t.key);
                console.log("22222", a), this.mHttpCall.send(a, null, "get", "text");
            }
        }, {
            key: "onHttpRequestError",
            value: function onHttpRequestError(t) {
                console.log("httpåè®®å‘é€å¤±è´¥", t), g.hideLoading();
            }
        }, {
            key: "initVideoAD",
            value: function initVideoAD(t) {
                var _this4 = this;
                "" != t ? null == this.mVideoAD ? (this.mVideoAD = g.createRewardedVideoAd({
                    adUnitId: t
                }), this.mVideoAD.load().then(function () {
                    console.log("å¹¿å‘Šåˆå§‹åŒ–æˆåŠŸ");
                }).catch(function (t) {
                    _this4.mVideoAD = null, console.log("æ²¡æœ‰æ‹‰åˆ°å¹¿å‘Š");
                }), this.mVideoAD.onError(function (t) {
                    console.log("è§†é¢‘æ‹‰å–å¤±è´¥", t), y.uo.mNoVideo = !0, _this4.mVideoAD = null, g.showToast({
                        title: "è§†é¢‘èŽ·å–å¤±è´¥",
                        icon: "none",
                        image: "",
                        duration: 2e3
                    });
                })) : (this.mVideoAD.destroy(), this.mVideoAD = null, this.mVideoAD = g.createRewardedVideoAd({
                    adUnitId: t
                }), this.mVideoAD.load().then(function () {
                    console.log("å¹¿å‘Šåˆå§‹åŒ–æˆåŠŸ");
                }).catch(function (t) {
                    _this4.mVideoAD = null, console.log("æ²¡æœ‰æ‹‰åˆ°å¹¿å‘Š");
                })) : this.mNoVideo = !0;
            }
        }, {
            key: "showVideoAD",
            value: function showVideoAD(t) {
                var _this5 = this;
                return null == this.mVideoAD || 1 == y.uo.mNoVideo ? (y.uo.initVideoAD(r.sDefaultVideoId),
                    null != t &amp;&amp; t(!1), !1) : (y.uo.mVideoAD.show().catch(function (t) {
                        console.log("########", t), g.showToast({
                            title: "è§†é¢‘èŽ·å–å¤±è´¥",
                            icon: "none",
                            image: "",
                            duration: 2e3
                        }), _this5.mVideoAD.load();
                    }), this.mVideoAD.offClose(null), this.mVideoAD.onClose(function (e) {
                        e &amp;&amp; e.isEnded || void 0 === e ? null != t &amp;&amp; t(!0) : null != t &amp;&amp; t(!1);
                    }), !0);
            }
        }, {
            key: "initCustomAd",
            value: function initCustomAd(t) {
                if ("" != t) {
                    var e = Number((Laya.stage.height / Laya.stage.width).toFixed(1)) - .8;
                    this.customAd = g.createCustomAd({
                        adUnitId: t,
                        adIntervals: 600,
                        style: {
                            left: y.uo.phone().screenWidth - 65,
                            top: 36 * e * 1.5,
                            fixed: !1
                        }
                    }), this.customAd.onLoad(function () {
                        console.log("åŽŸç”Ÿå¹¿å‘ŠåŠ&nbsp;è½½æˆåŠŸ");
                    }), this.customAd.onError(function (t) {
                        console.log("åŽŸç”Ÿå¹¿å‘ŠåŠ&nbsp;è½½å¤±è´¥ï¼š", t);
                    }), this.customAd.show(), o.adUtil.show_Ys_Num++;
                }
            }
        }, {
            key: "updateCustom",
            value: function updateCustom() {
                this.customAd.destroy(), this.customAd = null, o.adUtil.show_Ys_Num &gt;= 3 &amp;&amp; (o.adUtil.show_Ys_Num = 0),
                    this.initCustomAd(o.adUtil.customIdList[o.adUtil.show_Ys_Num]);
            }
        }, {
            key: "initInterstitialAd",
            value: function initInterstitialAd(t) {
                var _this6 = this;
                "" != t &amp;&amp; (this.interstitialAd = g.createInterstitialAd({
                    adUnitId: t
                }), this.interstitialAd.onLoad(function () {
                    console.log("æ’å±å¹¿å‘ŠåŠ&nbsp;è½½æˆåŠŸ");
                }), this.interstitialAd.onError(function (t) {
                    console.log("æ’å±å¹¿å‘ŠåŠ&nbsp;è½½å¤±è´¥", t);
                }), this.interstitialAd.onClose(function () {
                    _this6.closeCPTime = Date.now();
                }));
            }
        }, {
            key: "showInterstitialAd",
            value: function showInterstitialAd() {
                window.wx &amp;&amp; this.interstitialAd &amp;&amp; this.interstitialAd.show();
            }
        }]);
        return y;
    }();
    y.uo = null;
    var p = /* */ function () {
        function p() {
            _classCallCheck(this, p);
        }
        _createClass(p, null, [{
            key: "getUrlParams",
            value: function getUrlParams(t) {
                var e = arguments.length &gt; 1 &amp;&amp; arguments[1] !== undefined ? arguments[1] : "1.0.1";
                var s = !1, a = new Array();
                for (var _e24 in t) {
                    if ("string" != typeof t[_e24] &amp;&amp; "number" != typeof t[_e24]) continue;
                    "tick" == _e24 &amp;&amp; (s = !0);
                    var _i4 = _e24.toLocaleLowerCase();
                    t[_i4] = t[_e24], a.push(_i4);
                }
                if (0 == s) {
                    var o = new Date();
                    t.tick = Math.floor(o.getTime() / 1e3), a.push("tick");
                }
                a.sort(function (t, e) {
                    return t &gt; e ? 1 : -1;
                });
                var n = "";
                for (var r = 0; r &lt; a.length; r++) {
                    n = n + a[r] + "=" + t[a[r]] + "&amp;";
                }
                var h = "";
                return n + "key=" + (h = "maidian" == e ? w.MD5(n + "key=" + i.maidinKey) : null != i.mKeys[e] ? w.MD5(n + "key=" + i.mKeys[e]) : w.MD5(n + "key=wvkbfuhl"));
            }
        }, {
            key: "getCDN",
            value: function getCDN() {
                return "";
            }
        }, {
            key: "getJSON",
            value: function getJSON(t) {
                if ("" == t || null == t) return {
                    code: -999
                };
                var e = t.indexOf("{", 0);
                return t = t.substr(e, t.length - e), JSON.parse(t);
            }
        }, {
            key: "getServer",
            value: function getServer() {
                return i.mURL;
            }
        }]);
        return p;
    }();
    var b = /* */ function () {
        function b() {
            _classCallCheck(this, b);
        }
        _createClass(b, null, [{
            key: "initWX",
            value: function initWX() {
                if (Laya.Browser.window.wx) {
                    this.getNetworkType(), this.onNetworkStatusChange(), this.getSystemInfoSync();
                    var e = wx.getLaunchOptionsSync();
                    t.getUserInfo(e.scene);
                    var i = {};
                    if (i.query = e.query, i.scene = e.scene, i.shareTicket = e.shareTicket, i.isSticky = e.isSticky,
                        null != i.query.scene) for (var s = decodeURIComponent(i.query.scene).split("&amp;"), a = 0; a &lt; s.length; a++) {
                            var o = s[a].split("=");
                            2 == o.length &amp;&amp; (i.query[o[0]] = o[1]);
                        }
                    this.mLaunch = i, Laya.timer.callLater(this, this.checkSession);
                }
            }
        }, {
            key: "checkSession",
            value: function checkSession() {
                var t = this;
                wx.checkSession({
                    success: function success(e) {
                        console.log("checkSession ok"), t.login();
                    },
                    fail: function fail(e) {
                        console.log("checkSession fail"), wx.removeStorageSync("user"), t.login();
                    }
                });
            }
        }, {
            key: "login",
            value: function login() {
                var t = this;
                var e = !0, i = wx.getStorageSync("user");
                if ("object" == _typeof2(i)) {
                    var s = i.openid;
                    "" != s &amp;&amp; null != s || (e = !1), ("" == i.uid || null == i.uid || Number(i.uid) &lt; 1e4) &amp;&amp; (e = !1);
                } else e = !1;
                e ? (this.mWeUser = i, this.checkCode("")) : wx.login({
                    success: function success(e) {
                        t.checkCode(e.code);
                    },
                    fail: function fail(e) {
                        console.log("login fail,try again"), Laya.timer.once(1e3, t, t.login);
                    }
                });
            }
        }, {
            key: "reLogin",
            value: function reLogin() {
                wx.removeStorageSync("user"), this.login();
            }
        }, {
            key: "checkCode",
            value: function checkCode(t) {
                var e = this;
                var i = [];
                i.code = t, "" == t &amp;&amp; (i.uid = e.mWeUser.uid), void 0 !== this.mLaunch.query.uid &amp;&amp; (i.master = this.mLaunch.query.uid),
                    void 0 !== this.mLaunch.query.agentid &amp;&amp; (i.agentid = this.mLaunch.query.agentid),
                    void 0 !== this.mLaunch.query.adid &amp;&amp; (i.adid = this.mLaunch.query.adid), this.server(u.mIF.login, i, function (t) {
                        if (console.log("ç”¨æˆ·ç™»å½•è¿”å›žæ•°æ®", t), 0 == t.code) {
                            if (e.mdtValues = t.dt_value, e.loginSession = a.getCurrTime(), null != e.mWeUser &amp;&amp; e.mWeUser.uid == t.uid) {
                                if (e.mWeUser.openid != t.openid) return void Laya.timer.once(100, e, e.reLogin);
                            } else e.mWeUser = {}, e.mWeUser.openid = t.openid, e.mWeUser.uid = Number(t.uid);
                        } else Laya.timer.once(1e3, e, e.reLogin);
                    });
            }
        }, {
            key: "getUserInfo",
            value: function getUserInfo() {
                this.onEnter(null, this.mLaunch), this.init();
            }
        }, {
            key: "onEnter",
            value: function onEnter(t, e) {
                this.mFrist = !1;
            }
        }, {
            key: "init",
            value: function init() {
                0 == this.mInit &amp;&amp; (wx.onShow(this.wxShow), wx.onHide(this.wxHide), this.mInit = !0);
            }
        }, {
            key: "wxShow",
            value: function wxShow(t) {
                console.log(t);
                var e = {};
                if (e.query = t.query, e.scene = t.scene, e.shareTicket = t.shareTicket, e.isSticky = t.isSticky,
                    null != e.query.scene) for (var i = decodeURIComponent(e.query.scene).split("&amp;"), s = 0; s &lt; i.length; s++) {
                        var a = i[s].split("=");
                        2 == a.length &amp;&amp; (e.query[a[0]] = a[1]);
                    }
                if (1 == this.mFrist) return this.mLaunch = e, void this.getUserInfo();
                var o = this.mLaunch;
                this.mLaunch = e, this.onEnter(o, e);
            }
        }, {
            key: "wxHide",
            value: function wxHide() { }
        }, {
            key: "server",
            value: function server(t, e, i) {
                var s = arguments.length &gt; 3 &amp;&amp; arguments[3] !== undefined ? arguments[3] : null;
                var a = this;
                this.mHttpCall = new Laya.HttpRequest(), this.mHttpCall.once(Laya.Event.COMPLETE, this, function (t) {
                    var e = null;
                    e = "string" == typeof t ? p.getJSON(t) : p.getJSON(a.mHttpCall.data), null != i &amp;&amp; i(e),
                        a.mHttpCall = null;
                }), this.mHttpCall.once(Laya.Event.ERROR, this, function (t) {
                    null != s ? s() : console.log("httpåè®®å‘é€å¤±è´¥", t);
                });
                var o = p.getServer() + t.url + p.getUrlParams(e, t.key);
                console.log("22222", o), this.mHttpCall.send(o, null, "get", "text");
            }
        }, {
            key: "showShareMenu",
            value: function showShareMenu() {
                Laya.Browser.window.wx &amp;&amp; wx.showShareMenu &amp;&amp; wx.showShareMenu({
                    withShareTicket: !0,
                    menus: ["shareAppMessage", "shareTimeline"],
                    success: function success() {
                        if (wx.onShareAppMessage) {
                            var t = {
                                imageUrl: "",
                                title: ""
                            };
                            wx.onShareAppMessage(function () {
                                return t;
                            });
                        }
                    },
                    fail: function fail(t) {
                        console.log("æ˜¾ç¤ºå½“å‰é¡µé¢çš„è½¬å‘æŒ‰é’®-å¤±è´¥", t);
                    }
                });
            }
        }, {
            key: "createVideoAd",
            value: function createVideoAd() {
                var _this7 = this;
                if (Laya.Browser.window.wx &amp;&amp; wx.createRewardedVideoAd) {
                    if ("" == this.videoAd_id) return void console.log("è¯·æ£€æŸ¥ æ’å± å¹¿å‘Šidï¼");
                    null == this.videoAd ? (this.videoAd = wx.createRewardedVideoAd({
                        adUnitId: this.videoAd_id
                    }), this.videoAd &amp;&amp; this.videoAd.onLoad &amp;&amp; this.videoAd.onLoad(function () {
                        console.log("è§†é¢‘å¹¿å‘ŠåŠ&nbsp;è½½æˆåŠŸ"), _this7.isHasVideoAd = !0;
                    }), this.videoAd &amp;&amp; this.videoAd.onError &amp;&amp; this.videoAd.onError(function (t) {
                        console.log("è§†é¢‘å¹¿å‘ŠåŠ&nbsp;è½½å¤±è´¥", t);
                    }), this.videoAd &amp;&amp; this.videoAd.onClose &amp;&amp; this.videoAd.onClose(function (t) {
                        _this7.callBack_VideoAd_onClosed(t);
                    })) : this.videoAd &amp;&amp; this.videoAd.load &amp;&amp; (console.log("æ‰‹åŠ¨æ‹‰å–å¹¿å‘Š"), this.videoAd.load());
                }
            }
        }, {
            key: "callBack_VideoAd_onClosed",
            value: function callBack_VideoAd_onClosed(t) {
                t &amp;&amp; t.isEnded ? this.callBack_Success_VideoAd &amp;&amp; this.callBack_Success_VideoAd() : this.callBack_Fail_VideoAd &amp;&amp; this.callBack_Fail_VideoAd();
            }
        }, {
            key: "showVideoAd",
            value: function showVideoAd(t) {
                var _this8 = this;
                var e = arguments.length &gt; 1 &amp;&amp; arguments[1] !== undefined ? arguments[1] : null;
                if (!this.isHasVideoAd || "" == this.netWorkType) return this.showToast("å½“å‰æš‚æ—&nbsp;å¹¿å‘Šï¼Œè¯·ç¨åŽå†è¯•ï¼"),
                    void this.createVideoAd();
                this.videoAd &amp;&amp; this.videoAd.show &amp;&amp; (this.videoAd.show(), this.callBack_Success_VideoAd = t,
                    this.callBack_Fail_VideoAd = null == e ? function () {
                        _this8.showToast("éœ€è¦è§‚çœ‹å®Œæ•´è§†é¢‘æ‰èƒ½èŽ·å¾—å¥–åŠ±");
                    } : e);
            }
        }, {
            key: "createBanner",
            value: function createBanner() {
                var _this9 = this;
                Laya.Browser.window.wx &amp;&amp; wx.createBannerAd &amp;&amp; null == this.bannerAd &amp;&amp; (this.bannerAd = wx.createBannerAd({
                    adUnitId: this.bannerAd_id,
                    adIntervals: 30,
                    style: {
                        left: (this.systemInfo.screenWidth - 300) / 2,
                        top: this.systemInfo.screenHeight - 76,
                        width: 300
                    }
                }), this.bannerAd.onError(function (t) {
                    console.log("bannerå¹¿å‘ŠåŠ&nbsp;è½½å¤±è´¥", t), _this9.is_success_banner = !1;
                }), this.bannerAd.onLoad(function () {
                    console.log("banner åŠ&nbsp;è½½æˆåŠŸ"), _this9.banner_realHeight = _this9.bannerAd.style.realHeight,
                        _this9.banner_realWidth = _this9.bannerAd.style.realWidth, _this9.is_success_banner = !0;
                }), this.bannerAd.onResize(function (t) {
                    _this9.bannerAd.style.left = (_this9.systemInfo.screenWidth - _this9.bannerAd.style.realWidth) / 2,
                        Laya.Browser.onIOS &amp;&amp; Laya.Browser.clientHeight / Laya.Browser.clientWidth &gt;= 2.004 ? _this9.bannerAd.style.top = _this9.systemInfo.screenHeight - 1.25 * _this9.bannerAd.style.realHeight : _this9.bannerAd.style.top = _this9.systemInfo.screenHeight - _this9.bannerAd.style.realHeight;
                }));
            }
        }, {
            key: "showBanner",
            value: function showBanner() {
                Laya.Browser.window.wx &amp;&amp; (this.bannerAd.show(), this.is_show_banner = !0);
            }
        }, {
            key: "hideBanner",
            value: function hideBanner() {
                Laya.Browser.window.wx &amp;&amp; (this.bannerAd.hide(), this.is_show_banner = !1);
            }
        }, {
            key: "createInterstitialAd",
            value: function createInterstitialAd() {
                var _this10 = this;
                Laya.Browser.window.wx &amp;&amp; wx.createInterstitialAd &amp;&amp; null == this.interstitialAd &amp;&amp; (this.interstitialAd = wx.createInterstitialAd({
                    adUnitId: this.interstitialAd_id
                }), this.interstitialAd.onLoad(function () {
                    console.log("æ’å±å¹¿å‘ŠåŠ&nbsp;è½½æˆåŠŸ");
                }), this.interstitialAd.onError(function (t) {
                    console.log("æ’å±å¹¿å‘ŠåŠ&nbsp;è½½å¤±è´¥", t);
                }), this.interstitialAd.onClose(function () {
                    _this10.closeCPTime = Date.now();
                }));
            }
        }, {
            key: "showInterstitialAd",
            value: function showInterstitialAd() {
                Laya.Browser.window.wx &amp;&amp; this.interstitialAd &amp;&amp; Date.now() - this.closeCPTime &gt; 31e3 &amp;&amp; this.interstitialAd.show();
            }
        }, {
            key: "initCustomAds",
            value: function initCustomAds() {
                this.screenScale = Number((Laya.stage.height / Laya.stage.width).toFixed(1)) / 1.8;
                for (var _t11 = 0; _t11 &lt; this.customAd_id_List.length; _t11++) {
                    this.customAd_List.push(this.createCustomAd(_t11));
                }
            }
        }, {
            key: "createCustomAd",
            value: function createCustomAd() {
                var t = arguments.length &gt; 0 &amp;&amp; arguments[0] !== undefined ? arguments[0] : -1;
                if (Laya.Browser.window.wx) {
                    var e = "", i = [];
                    -1 == t ? (e = this.customAd_id, i = this.customAd_pos) : (e = this.customAd_id_List[t],
                        i = this.customAd_pos_List[t]);
                    var s = 0;
                    s = 70 == i[1] ? i[1] * this.screenScale * 1.5 : this.systemInfo.screenHeight - i[1] * this.screenScale;
                    return wx.createCustomAd({
                        adUnitId: e,
                        adIntervals: 60,
                        style: {
                            left: this.systemInfo.screenWidth - i[0],
                            top: s,
                            fixed: !1
                        }
                    });
                }
            }
        }, {
            key: "showCustomAd",
            value: function showCustomAd() {
                var t = arguments.length &gt; 0 &amp;&amp; arguments[0] !== undefined ? arguments[0] : -1;
                Laya.Browser.window.wx &amp;&amp; (-1 == t ? this.customAd.show() : null == this.customAd_List[t] ? this.createCustomAd(t) : this.customAd_List[t].show());
            }
        }, {
            key: "showGameUIAd",
            value: function showGameUIAd() {
                null == this.customAd_List[2] ? this.createCustomAd(2) : this.customAd_List[2].show(),
                    null == this.customAd_List[3] ? this.createCustomAd(3) : this.customAd_List[3].show();
            }
        }, {
            key: "hideGameUIAd",
            value: function hideGameUIAd() {
                null == this.customAd_List[2] ? this.createCustomAd(2) : this.customAd_List[2].hide(),
                    null == this.customAd_List[3] ? this.createCustomAd(3) : this.customAd_List[3].hide();
            }
        }, {
            key: "hideCustomAd",
            value: function hideCustomAd() {
                var t = arguments.length &gt; 0 &amp;&amp; arguments[0] !== undefined ? arguments[0] : -1;
                Laya.Browser.window.wx &amp;&amp; (-1 == t ? this.customAd.hide() : null == this.customAd_List[t] ? this.createCustomAd(t) : this.customAd_List[t].hide());
            }
        }, {
            key: "loadSubpackage",
            value: function loadSubpackage(t, e) {
                Laya.Browser.onWeiXin ? wx.loadSubpackage ? wx.loadSubpackage({
                    name: t,
                    success: function success(t) {
                        e();
                    },
                    fail: function fail(t) {
                        console.log("åˆ†åŒ…åŠ&nbsp;è½½å¤±è´¥", t);
                    }
                }) : (Laya.Browser.window.require(t + "/game.js"), Laya.timer.once(1e3, this, function () {
                    console.log("åˆ†åŒ…åŠ&nbsp;è½½æˆåŠŸ");
                })) : e();
            }
        }, {
            key: "showToast",
            value: function showToast(t) {
                var e = arguments.length &gt; 1 &amp;&amp; arguments[1] !== undefined ? arguments[1] : "none";
                var i = arguments.length &gt; 2 &amp;&amp; arguments[2] !== undefined ? arguments[2] : 2e3;
                Laya.Browser.window.wx &amp;&amp; wx.showToast &amp;&amp; wx.showToast({
                    title: t,
                    icon: e,
                    duration: i
                });
            }
        }, {
            key: "showModal",
            value: function showModal(t, e) {
                var i = arguments.length &gt; 2 &amp;&amp; arguments[2] !== undefined ? arguments[2] : !0;
                var s = arguments.length &gt; 3 &amp;&amp; arguments[3] !== undefined ? arguments[3] : null;
                var a = arguments.length &gt; 4 &amp;&amp; arguments[4] !== undefined ? arguments[4] : null;
                Laya.Browser.window.wx &amp;&amp; wx.showModal &amp;&amp; wx.showModal({
                    title: t,
                    content: e,
                    showCancel: i,
                    success: function success(t) {
                        t &amp;&amp; t.confirm &amp;&amp; s &amp;&amp; s(), t &amp;&amp; t.cancel &amp;&amp; a &amp;&amp; a();
                    }
                });
            }
        }, {
            key: "vibrateShort",
            value: function vibrateShort() {
                Laya.Browser.window.wx &amp;&amp; wx.vibrateShort &amp;&amp; wx.vibrateShort({});
            }
        }, {
            key: "vibrateLong",
            value: function vibrateLong() {
                Laya.Browser.window.wx &amp;&amp; wx.vibrateLong &amp;&amp; wx.vibrateLong({});
            }
        }, {
            key: "onNetworkStatusChange",
            value: function onNetworkStatusChange() {
                var _this11 = this;
                wx.onNetworkStatusChange(function (t) {
                    console.log("å½“å‰æ˜¯å¦æœ‰ç½‘ç»œè¿žæŽ¥ï¼š", t.isConnected), console.log("ç½‘ç»œç±»åž‹ï¼š", t.networkType), _this11.netWorkType = t.networkType;
                });
            }
        }, {
            key: "getSystemInfoSync",
            value: function getSystemInfoSync() {
                this.systemInfo = wx.getSystemInfoSync();
            }
        }, {
            key: "getNetworkType",
            value: function getNetworkType() {
                var _this12 = this;
                wx.getNetworkType({
                    success: function success(t) {
                        console.log("å½“å‰ç½‘ç»œçŠ¶æ€ï¼š", t.networkType), _this12.netWorkType = t.networkType;
                    },
                    fail: function fail(t) {
                        console.log("èŽ·å–ç½‘ç»œçŠ¶æ€å¤±è´¥ï¼š", t);
                    }
                });
            }
        }]);
        return b;
    }();
    b.systemInfo = null, b.netWorkType = "", b.videoAd = null, b.videoAd_id = "adunit-660fa9f449f2c346",
        b.isHasVideoAd = !1, b.callBack_Success_VideoAd = null, b.callBack_Fail_VideoAd = null,
        b.bannerAd = null, b.bannerAd_id = "adunit-9a414b0bfe7ebfb6", b.bannerAd_id_List = [],
        b.banner_realHeight = 0, b.banner_realWidth = 0, b.is_show_banner = !1, b.is_success_banner = !1,
        b.interstitialAd = null, b.interstitialAd_id = "adunit-75e4d23cc55959ad", b.closeCPTime = 0,
        b.customAd = null, b.customAd_id = "", b.customAd_pos = [30, 30], b.customAd_List = [],
        b.customAd_id_List = ["adunit-dd2121af96115bf7", "adunit-6a8b582cfa078e0c", "adunit-c480057fdc5e93dc", "adunit-37f8c31cbdd2173b", "adunit-82d730c3ff5c2ecd"],
        b.customAd_pos_List = [[80, 300], [370, 300], [350, 70], [80, 70], [375, 540]],
        b.screenScale = 0, b.mLaunch = null, b.mWeUser = {}, b.mdtValues = null, b.mFrist = !0,
        b.mInit = !1, b.loginSession = null, b.channe_id = "0", b.first_channe_id = "0",
        b.adid = "0", b.first_adid = "0", b.group = "b", b.mIsNewUser = 0, b.mHttpCall = null;
    var x = /* */ function (_Laya$Script) {
        _inherits(x, _Laya$Script);
        var _super = _createSuper(x);
        function x() {
            var _this13;
            _classCallCheck(this, x);
            _this13 = _super.call(this), x._instance = _assertThisInitialized(_this13);
            return _this13;
        }
        _createClass(x, [{
            key: "onAwake",
            value: function onAwake() {
                this.guideUI = this.owner, this.boxui = this.guideUI.getChildAt(0), this.hand = this.boxui.getChildByName("hand"),
                    this.boxui.height = 750 * t.screenScale;
            }
        }, {
            key: "onEnable",
            value: function onEnable() {
                this.handTween();
            }
        }, {
            key: "hideGuide",
            value: function hideGuide() {
                if (this.guideUI.visible) {
                    my.i(() =&gt; {
                        this.guideUI.visible = !1, Laya.Tween.clearAll(this.hand),
                            b.showGameUIAd()
                    })

                }
            }
        }, {
            key: "handTween",
            value: function handTween() {
                var _this14 = this;
                Laya.Tween.to(this.hand, {
                    centerX: 180
                }, 800, null, Laya.Handler.create(this, function () {
                    Laya.Tween.to(_this14.hand, {
                        centerX: -130
                    }, 800, null, Laya.Handler.create(_this14, function () {
                        _this14.handTween();
                    }));
                }));
            }
        }], [{
            key: "instance",
            get: function get() {
                return null == this._instance &amp;&amp; (this._instance = new x()), this._instance;
            }
        }]);
        return x;
    }(Laya.Script);
    x._instance = null;
    var f = /* */ function () {
        function f() {
            _classCallCheck(this, f);
        }
        _createClass(f, null, [{
            key: "btnTween",
            value: function btnTween(t, e) {
                if (Laya.Tween.clearAll(e), t) e.scaleX = 1, e.scaleY = 1; else {
                    var i = 0;
                    i = 1.15 == e.scaleX ? 1 : 1.15, Laya.Tween.to(e, {
                        scaleX: i,
                        scaleY: i
                    }, 800, null, Laya.Handler.create(this, this.btnTween, [t, e]));
                }
            }
        }, {
            key: "newBtnTween",
            value: function newBtnTween(t, e) {
                if (Laya.Tween.clearAll(e), t) e.scaleX = 1, e.scaleY = 1; else {
                    var i = 0, s = 0;
                    1.3 == e.scaleX ? (i = 1, s = 1e3) : (i = 1.3, s = 500), Laya.Tween.to(e, {
                        scaleX: i,
                        scaleY: i
                    }, s, null, Laya.Handler.create(this, this.newBtnTween, [t, e]));
                }
            }
        }, {
            key: "openUIByAlpha",
            value: function openUIByAlpha(t) {
                var e = arguments.length &gt; 1 &amp;&amp; arguments[1] !== undefined ? arguments[1] : null;
                t.visible = !0, Laya.Tween.clearAll(t), t.alpha = 0, Laya.Tween.to(t, {
                    alpha: 1
                }, 300, Laya.Ease.circIn, Laya.Handler.create(this, e));
            }
        }, {
            key: "openUIByScale",
            value: function openUIByScale(t) {
                var e = arguments.length &gt; 1 &amp;&amp; arguments[1] !== undefined ? arguments[1] : null;
                t.visible = !0, Laya.Tween.clearAll(t), t.alpha = 0, t.scaleX = .8, t.scaleY = .8,
                    Laya.Tween.to(t, {
                        alpha: 1,
                        scaleX: 1,
                        scaleY: 1
                    }, 500, Laya.Ease.backOut, Laya.Handler.create(this, e));
            }
        }, {
            key: "openUIByPos",
            value: function openUIByPos(t) {
                var e = arguments.length &gt; 1 &amp;&amp; arguments[1] !== undefined ? arguments[1] : !1;
                var i = arguments.length &gt; 2 &amp;&amp; arguments[2] !== undefined ? arguments[2] : null;
                t.visible = !0, Laya.Tween.clearAll(t), t.centerX = e ? -750 : 750, Laya.Tween.to(t, {
                    centerX: 0
                }, 300, Laya.Ease.backOut, Laya.Handler.create(this, i));
            }
        }, {
            key: "rotatLight",
            value: function rotatLight(t) {
                var _this15 = this;
                var e = arguments.length &gt; 1 &amp;&amp; arguments[1] !== undefined ? arguments[1] : 360;
                Laya.Tween.to(t, {
                    rotation: e
                }, 4500, null, Laya.Handler.create(this, function () {
                    e += 360, _this15.rotatLight(t, e);
                }));
            }
        }, {
            key: "BoxTween",
            value: function BoxTween(t) {
                Laya.Tween.to(t, {
                    rotation: 12
                }, 500, Laya.Ease.backIn, Laya.Handler.create(this, function () {
                    Laya.Tween.to(t, {
                        rotation: 0
                    }, 500, Laya.Ease.backOut);
                }));
            }
        }, {
            key: "NewBoxTween",
            value: function NewBoxTween(t, e) {
                var _this16 = this;
                Laya.Tween.clearAll(t), e ? (t.rotation = 0, Laya.timer.clear(this, this.NewBoxTween)) : Laya.Tween.to(t, {
                    rotation: 10
                }, 300, Laya.Ease.backIn, Laya.Handler.create(this, function () {
                    Laya.Tween.to(t, {
                        rotation: 0
                    }, 300, Laya.Ease.backOut, Laya.Handler.create(_this16, function () {
                        Laya.timer.once(2e3, _this16, _this16.NewBoxTween, [t, e]);
                    }));
                }));
            }
        }, {
            key: "loadBFont",
            value: function loadBFont(t, e, i) {
                var s = new Laya.BitmapFont();
                s.loadFont(t, new Laya.Handler(this, function (t) {
                    t.autoScaleSize = !0, Laya.Text.registerBitmapFont(e, t), i();
                }, [s]));
            }
        }, {
            key: "playSound",
            value: function playSound(e) {
                if (t.soundOn) switch (e) {
                    case 0:
                        Laya.SoundManager.playSound("GameScene/sound/boom.mp3");
                        break;

                    case 1:
                        Laya.SoundManager.playSound("GameScene/sound/citie.mp3");
                        break;

                    case 2:
                        Laya.SoundManager.playSound("GameScene/sound/fashe.mp3");
                        break;

                    case 3:
                        Laya.SoundManager.playSound("GameScene/sound/getarget.mp3");
                        break;

                    case 4:
                        Laya.SoundManager.playSound("GameScene/sound/useProp.mp3");
                        break;

                    case 5:
                        Laya.SoundManager.playSound("GameScene/sound/xiaochu.mp3");
                }
            }
        }, {
            key: "playBGM",
            value: function playBGM() {
                Laya.SoundManager.playMusic("GameScene/sound/bgm.mp3", 0);
            }
        }, {
            key: "setVolume",
            value: function setVolume() {
                t.soundOn ? (Laya.SoundManager.setMusicVolume(1), Laya.SoundManager.setSoundVolume(1)) : (Laya.SoundManager.setMusicVolume(0),
                    Laya.SoundManager.setSoundVolume(0));
            }
        }, {
            key: "closeVolume",
            value: function closeVolume() {
                Laya.SoundManager.setMusicVolume(0), Laya.SoundManager.setSoundVolume(0);
            }
        }, {
            key: "getDistance",
            value: function getDistance(t, e) {
                return Math.pow(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2), .5);
            }
        }, {
            key: "getrotation",
            value: function getrotation(t, e) {
                return t.y == e.y ? t.x == e.x ? 0 : t.x &gt; e.x ? 90 : -90 : t.y &lt; e.y ? t.x == e.x ? 0 : 180 * Math.atan((t.x - e.x) / (e.y - t.y)) / Math.PI : t.x == e.x ? 180 : t.x &gt; e.x ? 180 - 180 * Math.atan((t.x - e.x) / (t.y - e.y)) / Math.PI : 180 * Math.atan((t.x - e.x) / (e.y - t.y)) / Math.PI - 180;
            }
        }]);
        return f;
    }();
    var L = /* */ function (_Laya$Script3D) {
        _inherits(L, _Laya$Script3D);
        var _super2 = _createSuper(L);
        function L() {
            var _this17;
            _classCallCheck(this, L);
            _this17 = _super2.call(this), _this17.canCollider = !0;
            return _this17;
        }
        _createClass(L, [{
            key: "onAwake",
            value: function onAwake() {
                this.boom = this.owner, this.rigidbody = this.boom.addComponent(Laya.Rigidbody3D);
                var t = new Laya.BoxColliderShape();
                this.rigidbody.colliderShape = t;
            }
        }, {
            key: "boxOut",
            value: function boxOut() {
                this.rigidbody.linearVelocity = new Laya.Vector3(0, 0, 30);
            }
        }, {
            key: "onCollisionEnter",
            value: function onCollisionEnter(t) {
                var _this18 = this;
                var e = t.other.owner;
                "box0" != e.name &amp;&amp; "wall" != e.name &amp;&amp; "box1" != e.name &amp;&amp; "box2" != e.name &amp;&amp; "box3" != e.name || this.canCollider &amp;&amp; (this.canCollider = !1,
                    this.boom.getChildAt(0).active = !1, this.boom.getChildAt(1).active = !0, f.playSound(0),
                    Laya.timer.once(1e3, this, function () {
                        _this18.boom.active = !1, _this18.boom.removeSelf(), Laya.timer.once(50, _this18, function () {
                            _this18.boom.destroy();
                        });
                    }));
            }
        }]);
        return L;
    }(Laya.Script3D);
    var S = /* */ function (_Laya$Script2) {
        _inherits(S, _Laya$Script2);
        var _super3 = _createSuper(S);
        function S() {
            var _this19;
            _classCallCheck(this, S);
            _this19 = _super3.call(this), _this19.ImageType = "Simple", _this19.FillMethod = "Radial 90",
                _this19.FillOrigin = "top", _this19.FillAmount = 1, _this19.Reverse = !1, _this19._fillAmount_lt = 0;
            return _this19;
        }
        _createClass(S, [{
            key: "fillAmount",
            get: function get() {
                return this.FillAmount;
            },
            set: function set(t) {
                this.FillAmount = t, this.FillAmount &gt;= 1 &amp;&amp; (this.FillAmount = 1), this.FillAmount &lt;= 0 &amp;&amp; (this.FillAmount = 0);
            }
        }, {
            key: "onAwake",
            value: function onAwake() {
                S.instance = this, this.originImg = this.owner;
            }
        }, {
            key: "onStart",
            value: function onStart() {
                this._fillAmount_lt = this.FillAmount, this.updateImageRender();
            }
        }, {
            key: "onEnable",
            value: function onEnable() {
                this.FillAmount = 0;
            }
        }, {
            key: "Init",
            value: function Init() {
                this.FillAmount = 0;
            }
        }, {
            key: "onUpdate",
            value: function onUpdate() {
                "Filled" == this.ImageType &amp;&amp; this._fillAmount_lt != this.FillAmount &amp;&amp; (this._fillAmount_lt = this.FillAmount,
                    this.updateImageRender());
            }
        }, {
            key: "updateImageRender",
            value: function updateImageRender() {
                switch (this.ImageType) {
                    case "Simple":
                    case "Sliced":
                    case "Tiled":
                        console.warn("æš‚æœªå®žçŽ°");
                        break;

                    case "Filled":
                        this._filledMode();
                }
            }
        }, {
            key: "proTween",
            value: function proTween() {
                var _this20 = this;
                this.owner.visible = !0, this.FillAmount = 1, Laya.timer.loop(10, this, function () {
                    _this20.FillAmount -= .0032, _this20.FillAmount &lt;= 0 &amp;&amp; (_this20.FillAmount = 0,
                        _this20.owner.visible = !1, Laya.timer.clearAll(_this20));
                });
            }
        }, {
            key: "clearTween",
            value: function clearTween() {
                Laya.timer.clearAll(this);
            }
        }, {
            key: "_filledMode",
            value: function _filledMode() {
                if (!this.originImg.mask) {
                    var t = new Laya.Sprite();
                    this.originImg.mask = t;
                }
                switch (this.originImg.mask.graphics.clear(!0), this.FillMethod) {
                    case "Horizintal":
                        switch (this.FillOrigin) {
                            case "left":
                                this.Reverse ? this.originImg.mask.graphics.drawRect(this.originImg.width, 0, -this.originImg.width * this.FillAmount, this.originImg.height, "") : this.originImg.mask.graphics.drawRect(0, 0, this.originImg.width * this.FillAmount, this.originImg.height, "");
                                break;

                            case "right":
                                this.Reverse ? this.originImg.mask.graphics.drawRect(0, 0, this.originImg.width * this.FillAmount, this.originImg.height, "") : this.originImg.mask.graphics.drawRect(this.originImg.width, 0, -this.originImg.width * this.FillAmount, this.originImg.height, "");
                                break;

                            default:
                                this.Reverse ? this.originImg.mask.graphics.drawRect(this.originImg.width, 0, -this.originImg.width * this.FillAmount, this.originImg.height, "") : this.originImg.mask.graphics.drawRect(0, 0, this.originImg.width * this.FillAmount, this.originImg.height, "");
                        }
                        break;

                    case "Vertical":
                        switch (this.FillOrigin) {
                            case "top":
                                this.Reverse ? this.originImg.mask.graphics.drawRect(0, this.originImg.height, this.originImg.width, -this.originImg.height * this.FillAmount, "") : this.originImg.mask.graphics.drawRect(0, 0, this.originImg.width, this.originImg.height * this.FillAmount, "");
                                break;

                            case "bottom":
                                this.Reverse ? this.originImg.mask.graphics.drawRect(0, 0, this.originImg.width, this.originImg.height * this.FillAmount, "") : this.originImg.mask.graphics.drawRect(0, this.originImg.height, this.originImg.width, -this.originImg.height * this.FillAmount, "");
                                break;

                            default:
                                this.Reverse ? this.originImg.mask.graphics.drawRect(0, this.originImg.height, this.originImg.width, -this.originImg.height * this.FillAmount, "") : this.originImg.mask.graphics.drawRect(0, 0, this.originImg.width, this.originImg.height * this.FillAmount, "");
                        }
                        break;

                    case "Radial 90":
                        switch (this.FillOrigin) {
                            case "top":
                                this.Reverse ? this.originImg.mask.graphics.drawPie(0, 0, Math.sqrt(Math.pow(this.originImg.width, 2) + Math.pow(this.originImg.height, 2)), 0, 90 * this.fillAmount, "") : this.originImg.mask.graphics.drawPie(0, 0, Math.sqrt(Math.pow(this.originImg.width, 2) + Math.pow(this.originImg.height, 2)), -270 - 90 * this.fillAmount, 0, "");
                                break;

                            case "bottom":
                                this.Reverse ? this.originImg.mask.graphics.drawPie(this.originImg.width, this.originImg.height, Math.sqrt(Math.pow(this.originImg.width, 2) + Math.pow(this.originImg.height, 2)), 180, 180 + 90 * this.fillAmount, "") : this.originImg.mask.graphics.drawPie(this.originImg.width, this.originImg.height, Math.sqrt(Math.pow(this.originImg.width, 2) + Math.pow(this.originImg.height, 2)), 270 - 90 * this.fillAmount, 270, "");
                                break;

                            case "left":
                                this.Reverse ? this.originImg.mask.graphics.drawPie(0, this.originImg.height, Math.sqrt(Math.pow(this.originImg.width, 2) + Math.pow(this.originImg.height, 2)), 270, 270 + 90 * this.fillAmount, "") : this.originImg.mask.graphics.drawPie(0, this.originImg.height, Math.sqrt(Math.pow(this.originImg.width, 2) + Math.pow(this.originImg.height, 2)), -90 * this.fillAmount, 0, "");
                                break;

                            case "right":
                                this.Reverse ? this.originImg.mask.graphics.drawPie(this.originImg.width, 0, Math.sqrt(Math.pow(this.originImg.width, 2) + Math.pow(this.originImg.height, 2)), 90, 90 + 90 * this.fillAmount, "") : this.originImg.mask.graphics.drawPie(this.originImg.width, 0, Math.sqrt(Math.pow(this.originImg.width, 2) + Math.pow(this.originImg.height, 2)), 180 - 90 * this.fillAmount, 180, "");
                        }
                        break;

                    case "Radial 180":
                        switch (this.FillOrigin) {
                            case "top":
                                this.Reverse ? this.originImg.mask.graphics.drawPie(this.originImg.width / 2, 0, Math.sqrt(Math.pow(this.originImg.width / 2, 2) + Math.pow(this.originImg.height, 2)), 0, 180 * this.fillAmount, "") : this.originImg.mask.graphics.drawPie(this.originImg.width / 2, 0, Math.sqrt(Math.pow(this.originImg.width / 2, 2) + Math.pow(this.originImg.height, 2)), 180 - 180 * this.fillAmount, 180, "");
                                break;

                            case "bottom":
                                this.Reverse ? this.originImg.mask.graphics.drawPie(this.originImg.width / 2, this.originImg.height, Math.sqrt(Math.pow(this.originImg.width / 2, 2) + Math.pow(this.originImg.height, 2)), -180, 180 * this.fillAmount - 180, "") : this.originImg.mask.graphics.drawPie(this.originImg.width / 2, this.originImg.height, Math.sqrt(Math.pow(this.originImg.width / 2, 2) + Math.pow(this.originImg.height, 2)), -180 * this.fillAmount, 0, "");
                                break;

                            case "left":
                                this.Reverse ? this.originImg.mask.graphics.drawPie(0, this.originImg.height / 2, Math.sqrt(Math.pow(this.originImg.width, 2) + Math.pow(this.originImg.height / 2, 2)), -90, 180 * this.fillAmount - 90, "") : this.originImg.mask.graphics.drawPie(0, this.originImg.height / 2, Math.sqrt(Math.pow(this.originImg.width, 2) + Math.pow(this.originImg.height / 2, 2)), 90 - 180 * this.fillAmount, 90, "");
                                break;

                            case "right":
                                this.Reverse ? this.originImg.mask.graphics.drawPie(this.originImg.width, this.originImg.height / 2, Math.sqrt(Math.pow(this.originImg.width, 2) + Math.pow(this.originImg.height / 2, 2)), -270, 180 * this.fillAmount - 270, "") : this.originImg.mask.graphics.drawPie(this.originImg.width, this.originImg.height / 2, Math.sqrt(Math.pow(this.originImg.width, 2) + Math.pow(this.originImg.height / 2, 2)), -90 - 180 * this.fillAmount, -90, "");
                        }
                        break;

                    case "Radial 360":
                        switch (this.FillOrigin) {
                            case "top":
                                this.Reverse ? this.originImg.mask.graphics.drawPie(this.originImg.width / 2, this.originImg.height / 2, Math.sqrt(Math.pow(this.originImg.width / 2, 2) + Math.pow(this.originImg.height, 2)), -90, 360 * this.fillAmount - 90, "") : this.originImg.mask.graphics.drawPie(this.originImg.width / 2, this.originImg.height / 2, Math.sqrt(Math.pow(this.originImg.width / 2, 2) + Math.pow(this.originImg.height, 2)), -90 - 360 * this.fillAmount, -90, "");
                                break;

                            case "bottom":
                                this.Reverse ? this.originImg.mask.graphics.drawPie(this.originImg.width / 2, this.originImg.height / 2, Math.sqrt(Math.pow(this.originImg.width / 2, 2) + Math.pow(this.originImg.height, 2)), -270, 360 * this.fillAmount - 270, "") : this.originImg.mask.graphics.drawPie(this.originImg.width / 2, this.originImg.height / 2, Math.sqrt(Math.pow(this.originImg.width / 2, 2) + Math.pow(this.originImg.height, 2)), 90 - 360 * this.fillAmount, 90, "");
                                break;

                            case "left":
                                this.Reverse ? this.originImg.mask.graphics.drawPie(this.originImg.width / 2, this.originImg.height / 2, Math.sqrt(Math.pow(this.originImg.width, 2) + Math.pow(this.originImg.height / 2, 2)), 180, 180 + 360 * this.fillAmount, "") : this.originImg.mask.graphics.drawPie(this.originImg.width / 2, this.originImg.height / 2, Math.sqrt(Math.pow(this.originImg.width, 2) + Math.pow(this.originImg.height / 2, 2)), 180 - 360 * this.fillAmount, 180, "");
                                break;

                            case "right":
                                this.Reverse ? this.originImg.mask.graphics.drawPie(this.originImg.width / 2, this.originImg.height / 2, Math.sqrt(Math.pow(this.originImg.width, 2) + Math.pow(this.originImg.height / 2, 2)), 0, 360 * this.fillAmount, "") : this.originImg.mask.graphics.drawPie(this.originImg.width / 2, this.originImg.height / 2, Math.sqrt(Math.pow(this.originImg.width, 2) + Math.pow(this.originImg.height / 2, 2)), -360 * this.fillAmount, 0, "");
                        }
                }
            }
        }]);
        return S;
    }(Laya.Script);
    S.instance = null;
    var C = /* */ function (_Laya$Script3) {
        _inherits(C, _Laya$Script3);
        var _super4 = _createSuper(C);
        function C() {
            var _this21;
            _classCallCheck(this, C);
            _this21 = _super4.call(this), C._instance = _assertThisInitialized(_this21);
            return _this21;
        }
        _createClass(C, [{
            key: "onAwake",
            value: function onAwake() {
                this.kaijUI = this.owner, this.boxui = this.kaijUI.getChildAt(0), this.light = this.boxui.getChildByName("light"),
                    this.startBtn = this.boxui.getChildByName("startBtn"), this.closeBtn = this.boxui.getChildByName("closeBtn"),
                    this.startBtn.on(Laya.Event.CLICK, this, this.startBtnClick), this.closeBtn.on(Laya.Event.CLICK, this, this.closeBtnClick),
                    this.boxui.height = 750 * t.screenScale;
            }
        }, {
            key: "show",
            value: function show() {
                this.kaijUI.visible || (this.kaijUI.visible = !0, f.openUIByScale(this.boxui), D.instance.maxNum = 1,
                    f.rotatLight(this.light), N.instance.showUIScene(this.light.y, D.instance.targetNum - 1),
                    o.adUtil.showBannerAd(), b.showCustomAd(0), b.showCustomAd(1));
            }
        }, {
            key: "hide",
            value: function hide() {
                this.kaijUI.visible = !1, Laya.Tween.clearAll(this.light), this.light.rotation = 0,
                    N.instance.hideUIScene(), b.hideCustomAd(0), b.hideCustomAd(1), b.showGameUIAd();
            }
        }, {
            key: "startBtnClick",
            value: function startBtnClick() {
                var _this22 = this;
                r.playVideo(function () {
                    N.instance.loadPreBox(!1), _this22.hide();
                });
            }
        }, {
            key: "closeBtnClick",
            value: function closeBtnClick() {
                D.instance.targetNum = 5, D.instance.updateTarget(), N.instance.loadPreBox(), this.hide();
            }
        }], [{
            key: "instance",
            get: function get() {
                return null == this._instance &amp;&amp; (this._instance = new C()), this._instance;
            }
        }]);
        return C;
    }(Laya.Script);
    C._instance = null;
    var A = /* */ function (_Laya$Script4) {
        _inherits(A, _Laya$Script4);
        var _super5 = _createSuper(A);
        function A() {
            var _this23;
            _classCallCheck(this, A);
            _this23 = _super5.call(this), _this23.time = 5, A._instance = _assertThisInitialized(_this23);
            return _this23;
        }
        _createClass(A, [{
            key: "onAwake",
            value: function onAwake() {
                this.failUI = this.owner, this.boxui = this.failUI.getChildAt(0), this.proMask = this.boxui.getChildByName("pro"),
                    this.numImage = this.boxui.getChildByName("number"), this.fuhuoBtn = this.boxui.getChildByName("fuhuoBtn"),
                    this.closeBtn = this.boxui.getChildByName("closeBtn"), this.fuhuoBtn.on(Laya.Event.CLICK, this, this.fuhuoClick),
                    this.closeBtn.on(Laya.Event.CLICK, this, this.closeBtnClick), this.boxui.height = 750 * t.screenScale;
            }
        }, {
            key: "show",
            value: function show() {
                this.failUI.visible || (this.failUI.visible = !0, f.openUIByScale(this.boxui), this.closeBtn.visible = !1,
                    this.time = 5, this.numImage.skin = "UI/GameUI/5.png", Laya.timer.loop(1e3, this, this.reduceTime),
                    this.proMask.getComponent(S).proTween(), r.showInterstitialAd(), o.adUtil.showBannerAd(),
                    b.showCustomAd(0), b.showCustomAd(1), b.hideGameUIAd());
            }
        }, {
            key: "hide",
            value: function hide() {
                Laya.timer.clear(this, this.reduceTime), this.proMask.getComponent(S).clearTween(),
                    this.failUI.visible = !1, b.hideCustomAd(0), b.hideCustomAd(1);
            }
        }, {
            key: "reduceTime",
            value: function reduceTime() {
                this.time--, this.time &lt;= 0 ? (this.numImage.skin = "", this.closeBtnClick()) : (this.numImage.skin = "UI/GameUI/" + this.time + ".png",
                    3 == this.time &amp;&amp; (this.closeBtn.visible = !0));
            }
        }, {
            key: "fuhuoClick",
            value: function fuhuoClick() {
                var _this24 = this;
                Laya.timer.clear(this, this.reduceTime), r.playVideo(function () {
                    N.instance.removeBoxes(), Laya.timer.once(50, _this24, function () {
                        D.instance.randomBox(), D.instance.isGameOver = !1;
                    }), _this24.hide(), b.showGameUIAd();
                }, function () {
                    _this24.closeBtn.visible = !0, _this24.numImage.skin = "";
                });
            }
        }, {
            key: "closeBtnClick",
            value: function closeBtnClick() {
                my.i(() =&gt; {
                    this.hide(), C.instance.show(), N.instance.initScene(), D.instance.isGameOver = !1,
                        D.instance.initScore();
                })

            }
        }], [{
            key: "instance",
            get: function get() {
                return null == this._instance &amp;&amp; (this._instance = new A()), this._instance;
            }
        }]);
        return A;
    }(Laya.Script);
    A._instance = null;
    var I = /* */ function () {
        function I() {
            _classCallCheck(this, I);
            this.customAd_id = null;
        }
        _createClass(I, null, [{
            key: "Init",
            value: function Init() {
                this.getSystemInfoSync(), this.getNetworkType(), this.onNetworkStatusChange(), this.onShow(),
                    this.onHide(), this.showShareMenu();
            }
        }, {
            key: "showShareMenu",
            value: function showShareMenu() {
                Laya.Browser.window.wx &amp;&amp; wx.showShareMenu &amp;&amp; wx.showShareMenu({
                    withShareTicket: !0,
                    menus: ["shareAppMessage", "shareTimeline"],
                    success: function success() {
                        if (wx.onShareAppMessage) {
                            var t = {
                                imageUrl: "",
                                title: ""
                            };
                            wx.onShareAppMessage(function () {
                                return t;
                            });
                        }
                    },
                    fail: function fail(t) {
                        console.log("æ˜¾ç¤ºå½“å‰é¡µé¢çš„è½¬å‘æŒ‰é’®-å¤±è´¥", t);
                    }
                });
            }
        }, {
            key: "shareAppMessage",
            value: function shareAppMessage() {
                var t = arguments.length &gt; 0 &amp;&amp; arguments[0] !== undefined ? arguments[0] : null;
                var e = arguments.length &gt; 1 &amp;&amp; arguments[1] !== undefined ? arguments[1] : null;
                var i = arguments.length &gt; 2 &amp;&amp; arguments[2] !== undefined ? arguments[2] : null;
                if (Laya.Browser.window.wx &amp;&amp; wx.shareAppMessage) {
                    var s = {
                        title: "",
                        imageUrl: "",
                        query: t
                    };
                    wx.shareAppMessage(s), this.callBack_Success_Share = e, this.callBack_Fail_Share = i,
                        this.isShareTime = !0;
                }
            }
        }, {
            key: "onShow",
            value: function onShow() {
                var _this25 = this;
                Laya.Browser.window.wx &amp;&amp; wx.onShow &amp;&amp; wx.onShow(function (t) {
                    _this25.isShareTime &amp;&amp; (_this25.isShareTime = !1, Laya.Browser.now() - _this25.lastShareTime &gt;= 2500 ? _this25.callBack_Success_Share &amp;&amp; _this25.callBack_Success_Share() : _this25.callBack_Fail_Share &amp;&amp; _this25.callBack_Fail_Share());
                });
            }
        }, {
            key: "onHide",
            value: function onHide() {
                var _this26 = this;
                Laya.Browser.window.wx &amp;&amp; wx.onHide &amp;&amp; wx.onHide(function () {
                    _this26.isShareTime &amp;&amp; (_this26.lastShareTime = Laya.Browser.now());
                });
            }
        }, {
            key: "createRewardedVideoAd",
            value: function createRewardedVideoAd() {
                var _this27 = this;
                if (Laya.Browser.window.wx &amp;&amp; Laya.Browser.window.wx.createRewardedVideoAd) {
                    if ("" == this.rewardAd_id) return void console.log("è¯·æ£€æŸ¥ æ’å± å¹¿å‘Šidï¼");
                    null == this.rewardAd ? (this.rewardAd = Laya.Browser.window.wx.createRewardedVideoAd({
                        adUnitId: this.rewardAd_id
                    }), this.rewardAd &amp;&amp; this.rewardAd.onLoad &amp;&amp; this.rewardAd.onLoad(function () {
                        console.log("è§†é¢‘å¹¿å‘ŠåŠ&nbsp;è½½æˆåŠŸ"), _this27.isHasRewardAd = !0;
                    }), this.rewardAd &amp;&amp; this.rewardAd.onError &amp;&amp; this.rewardAd.onError(function (t) {
                        console.log("è§†é¢‘å¹¿å‘ŠåŠ&nbsp;è½½å¤±è´¥", t);
                    }), this.rewardAd &amp;&amp; this.rewardAd.onClose &amp;&amp; this.rewardAd.onClose(function (t) {
                        _this27.callBack_RewardAd_onClosed(t);
                    })) : this.rewardAd &amp;&amp; this.rewardAd.load &amp;&amp; (console.log("æ‰‹åŠ¨æ‹‰å–å¹¿å‘Š"), this.rewardAd.load());
                }
            }
        }, {
            key: "callBack_RewardAd_onClosed",
            value: function callBack_RewardAd_onClosed(t) {
                t &amp;&amp; t.isEnded ? this.callBack_Success_RewardAd &amp;&amp; this.callBack_Success_RewardAd() : this.callBack_Fail_RewardAd &amp;&amp; this.callBack_Fail_RewardAd();
            }
        }, {
            key: "showRewardAd",
            value: function showRewardAd(t) {
                var _this28 = this;
                var e = arguments.length &gt; 1 &amp;&amp; arguments[1] !== undefined ? arguments[1] : null;
                if (!this.isHasRewardAd || "" == this.netWorkType) return this.showToast("å½“å‰æš‚æ—&nbsp;å¹¿å‘Šï¼Œè¯·ç¨åŽå†è¯•ï¼", "none", 2e3),
                    void this.createRewardedVideoAd();
                this.rewardAd &amp;&amp; this.rewardAd.show &amp;&amp; (this.rewardAd.show(), this.callBack_Success_RewardAd = t,
                    this.callBack_Fail_RewardAd = null == e ? function () {
                        _this28.showToast("éœ€è¦è§‚çœ‹å®Œæ•´è§†é¢‘æ‰èƒ½èŽ·å¾—å¥–åŠ±");
                    } : e);
            }
        }, {
            key: "createBanner",
            value: function createBanner() {
                var _this29 = this;
                var t = arguments.length &gt; 0 &amp;&amp; arguments[0] !== undefined ? arguments[0] : !1;
                Laya.Browser.window.wx &amp;&amp; wx.createBannerAd &amp;&amp; null == this.bannerAd &amp;&amp; (this.bannerAd = wx.createBannerAd({
                    adUnitId: this.bannerAd_id,
                    adIntervals: 30,
                    style: {
                        left: (wx.getSystemInfoSync().screenWidth - 300) / 2,
                        top: wx.getSystemInfoSync().screenHeight - 76,
                        width: 300
                    }
                }), this.bannerAd.onError(function (t) {
                    console.log("bannerå¹¿å‘ŠåŠ&nbsp;è½½å¤±è´¥", t);
                }), this.bannerAd.onLoad(function () {
                    console.log("banner åŠ&nbsp;è½½æˆåŠŸ");
                }), this.bannerAd.onResize(function (t) {
                    console.log("æˆ‘åœ¨è°ƒæ•´"), _this29.bannerAd.style.left = (wx.getSystemInfoSync().screenWidth - _this29.bannerAd.style.realWidth) / 2,
                        Laya.Browser.onIOS &amp;&amp; Laya.Browser.clientHeight / Laya.Browser.clientWidth &gt;= 2.004 ? _this29.bannerAd.style.top = wx.getSystemInfoSync().screenHeight - 1.25 * _this29.bannerAd.style.realHeight : _this29.bannerAd.style.top = wx.getSystemInfoSync().screenHeight - _this29.bannerAd.style.realHeight;
                }), t &amp;&amp; this.bannerAd.show());
            }
        }, {
            key: "showBanner",
            value: function showBanner() {
                Laya.Browser.window.wx &amp;&amp; this.bannerAd.show();
            }
        }, {
            key: "hideBanner",
            value: function hideBanner() {
                Laya.Browser.window.wx &amp;&amp; this.bannerAd.hide();
            }
        }, {
            key: "createInterstitialAd",
            value: function createInterstitialAd() {
                Laya.Browser.window.wx &amp;&amp; wx.createInterstitialAd &amp;&amp; (console.log(this.interstitialAd),
                    null == this.interstitialAd &amp;&amp; (this.interstitialAd = wx.createInterstitialAd({
                        adUnitId: this.interstitialAd_id
                    }), this.interstitialAd.onLoad(function () {
                        console.log("æ’å±å¹¿å‘ŠåŠ&nbsp;è½½æˆåŠŸ");
                    }), this.interstitialAd.onError(function (t) {
                        console.log("æ’å±å¹¿å‘ŠåŠ&nbsp;è½½å¤±è´¥", t);
                    })));
            }
        }, {
            key: "showInterstitialAd",
            value: function showInterstitialAd() {
                this.interstitialAd &amp;&amp; this.interstitialAd.show &amp;&amp; this.interstitialAd.show();
            }
        }, {
            key: "loadSubpackage",
            value: function loadSubpackage(t, e) {
                Laya.Browser.onWeiXin ? wx.loadSubpackage ? wx.loadSubpackage({
                    name: t,
                    success: function success(t) {
                        e();
                    },
                    fail: function fail(t) {
                        console.log("åˆ†åŒ…åŠ&nbsp;è½½å¤±è´¥", t);
                    }
                }) : (Laya.Browser.window.require(t + "/game.js"), Laya.timer.once(1e3, this, function () {
                    console.log("åˆ†åŒ…åŠ&nbsp;è½½æˆåŠŸ");
                })) : e();
            }
        }, {
            key: "showToast",
            value: function showToast(t) {
                var e = arguments.length &gt; 1 &amp;&amp; arguments[1] !== undefined ? arguments[1] : "none";
                var i = arguments.length &gt; 2 &amp;&amp; arguments[2] !== undefined ? arguments[2] : 2e3;
                Laya.Browser.window.wx &amp;&amp; wx.showToast &amp;&amp; wx.showToast({
                    title: t,
                    icon: e,
                    duration: i
                });
            }
        }, {
            key: "showModal",
            value: function showModal(t, e) {
                var i = arguments.length &gt; 2 &amp;&amp; arguments[2] !== undefined ? arguments[2] : !0;
                var s = arguments.length &gt; 3 &amp;&amp; arguments[3] !== undefined ? arguments[3] : null;
                var a = arguments.length &gt; 4 &amp;&amp; arguments[4] !== undefined ? arguments[4] : null;
                Laya.Browser.window.wx &amp;&amp; wx.showModal &amp;&amp; wx.showModal({
                    title: t,
                    content: e,
                    showCancel: i,
                    success: function success(t) {
                        t &amp;&amp; t.confirm &amp;&amp; s &amp;&amp; s(), t &amp;&amp; t.cancel &amp;&amp; a &amp;&amp; a();
                    }
                });
            }
        }, {
            key: "vibrateShort",
            value: function vibrateShort() {
                Laya.Browser.window.wx &amp;&amp; wx.vibrateShort &amp;&amp; wx.vibrateShort({});
            }
        }, {
            key: "vibrateLong",
            value: function vibrateLong() {
                Laya.Browser.window.wx &amp;&amp; wx.vibrateLong &amp;&amp; wx.vibrateLong({});
            }
        }, {
            key: "onNetworkStatusChange",
            value: function onNetworkStatusChange() {
                var _this30 = this;
                Laya.Browser.window.wx &amp;&amp; wx.onNetworkStatusChange &amp;&amp; wx.onNetworkStatusChange(function (t) {
                    console.log("å½“å‰æ˜¯å¦æœ‰ç½‘ç»œè¿žæŽ¥ï¼š", t.isConnected), console.log("ç½‘ç»œç±»åž‹ï¼š", t.networkType), _this30.netWorkType = t.networkType;
                });
            }
        }, {
            key: "getSystemInfoSync",
            value: function getSystemInfoSync() {
                Laya.Browser.onWeiXin &amp;&amp; wx.getSystemInfoSync &amp;&amp; (this.systemInfo = wx.getSystemInfoSync(),
                    console.log("è®¾å¤‡ä¿¡æ¯", this.systemInfo));
            }
        }, {
            key: "getNetworkType",
            value: function getNetworkType() {
                var _this31 = this;
                Laya.Browser.window.wx &amp;&amp; wx.getNetworkType &amp;&amp; wx.getNetworkType({
                    success: function success(t) {
                        console.log("å½“å‰ç½‘ç»œçŠ¶æ€ï¼š", t.networkType), _this31.netWorkType = t.networkType;
                    },
                    fail: function fail(t) {
                        console.log("èŽ·å–ç½‘ç»œçŠ¶æ€å¤±è´¥ï¼š", t);
                    }
                });
            }
        }, {
            key: "loadFont",
            value: function loadFont(t) {
                if (Laya.Browser.onWeiXin) var e = wx.loadFont(t); else Laya.loader.load(t, null, null, Laya.Loader.TTF);
                return e;
            }
        }]);
        return I;
    }();
    I.callBack_Success_Share = null, I.callBack_Fail_Share = null, I.isShareTime = !1,
        I.lastShareTime = 0, I.rewardAd_id = "adunit-eadc33b42c241018", I.rewardAd = null,
        I.isHasRewardAd = !1, I.callBack_Success_RewardAd = null, I.callBack_Fail_RewardAd = null,
        I.bannerAd_id = "adunit-bf3d280fb4023ce0", I.bannerAd_idList = [], I.bannerAd = null,
        I.interstitialAd_id = "adunit-f98b2d638e5a266a", I.interstitialAd = null, I.customAd = null,
        I.systemInfo = null, I.netWorkType = "";
    var _ = /* */ function (_Laya$Script5) {
        _inherits(_, _Laya$Script5);
        var _super6 = _createSuper(_);
        function _() {
            var _this32;
            _classCallCheck(this, _);
            _this32 = _super6.call(this), _this32.propIndex = 0, _this32.closeEvent = null,
                _this32.getEvent = null, _._instance = _assertThisInitialized(_this32);
            return _this32;
        }
        _createClass(_, [{
            key: "onAwake",
            value: function onAwake() {
                this.propUI = this.owner, this.boxui = this.propUI.getChildAt(0), this.light = this.boxui.getChildByName("light"),
                    this.getBtn = this.boxui.getChildByName("getBtn"), this.closeBtn = this.boxui.getChildByName("closeBtn"),
                    this.prop = this.boxui.getChildByName("prop"), this.getBtn.on(Laya.Event.CLICK, this, this.getBtnClick),
                    this.closeBtn.on(Laya.Event.CLICK, this, this.closeBtnClick), this.boxui.height = 750 * t.screenScale;
            }
        }, {
            key: "show",
            value: function show(t) {
                var e = arguments.length &gt; 1 &amp;&amp; arguments[1] !== undefined ? arguments[1] : null;
                var i = arguments.length &gt; 2 &amp;&amp; arguments[2] !== undefined ? arguments[2] : null;
                this.propUI.visible || (this.propUI.visible = !0, f.openUIByScale(this.boxui), this.propIndex = t,
                    f.rotatLight(this.light), o.adUtil.showBannerAd(), b.showCustomAd(0), b.showCustomAd(1),
                    b.hideGameUIAd()), null == this.closeEvent &amp;&amp; (this.closeEvent = e), this.getEvent = i,
                    this.prop.skin = "UI/GameUI/prop" + t + ".png";
            }
        }, {
            key: "hide",
            value: function hide() {
                this.propUI.visible = !1, Laya.Tween.clearAll(this.light), this.light.rotation = 0,
                    this.closeEvent &amp;&amp; this.closeEvent(), b.hideCustomAd(0), b.hideCustomAd(1);
            }
        }, {
            key: "getBtnClick",
            value: function getBtnClick() {
                var _this33 = this;
                r.playVideo(function () {
                    switch (_this33.propIndex) {
                        case 0:
                            t.WnNum++, I.showToast("èŽ·å¾—ä¸‡èƒ½æ–¹å—");
                            break;

                        case 1:
                            t.BoomNum++, I.showToast("èŽ·å¾—ç‚¸å¼¹");
                            break;

                        case 2:
                            t.CiTieNum++, I.showToast("èŽ·å¾—ç£é“");
                            break;

                        case 3:
                            t.ChangeNum++, I.showToast("èŽ·å¾—æ›¿æ¢æ–¹å—");
                    }
                    t.saveLocalData(), D.instance.updatePropBtn(), _this33.hide(), _this33.getEvent &amp;&amp; _this33.getEvent();
                });
            }
        }, {
            key: "closeBtnClick",
            value: function closeBtnClick() {
                my.i(() =&gt; {
                    this.hide(), b.showGameUIAd();
                })

            }
        }], [{
            key: "instance",
            get: function get() {
                return null == this._instance &amp;&amp; (this._instance = new _()), this._instance;
            }
        }]);
        return _;
    }(Laya.Script);
    _._instance = null;
    var B = /* */ function (_Laya$Script6) {
        _inherits(B, _Laya$Script6);
        var _super7 = _createSuper(B);
        function B() {
            var _this34;
            _classCallCheck(this, B);
            _this34 = _super7.call(this), B._instance = _assertThisInitialized(_this34);
            return _this34;
        }
        _createClass(B, [{
            key: "onAwake",
            value: function onAwake() {
                this.targetUI = this.owner, this.boxui = this.targetUI.getChildAt(0), this.light = this.boxui.getChildByName("light"),
                    this.getBtn = this.boxui.getChildByName("getBtn"), this.closeBtn = this.boxui.getChildByName("closeBtn"),
                    this.getBtn.on(Laya.Event.CLICK, this, this.getBtnClick), this.closeBtn.on(Laya.Event.CLICK, this, this.closeBtnClick),
                    this.boxui.height = 750 * t.screenScale;
            }
        }, {
            key: "show",
            value: function show() {
                this.targetUI.visible || (this.targetUI.visible = !0, f.openUIByScale(this.boxui),
                    f.rotatLight(this.light), f.playSound(3), o.adUtil.showBannerAd(), b.showCustomAd(0),
                    b.showCustomAd(1), b.hideGameUIAd(), D.instance.targetNum &gt;= 7 &amp;&amp; r.showInterstitialAd()),
                    N.instance.showUIScene(this.light.y, D.instance.targetNum - 1);
            }
        }, {
            key: "hide",
            value: function hide() {
                this.targetUI.visible = !1, Laya.Tween.clearAll(this.light), this.light.rotation = 0,
                    N.instance.hideUIScene(), b.hideCustomAd(0), b.hideCustomAd(1), b.showGameUIAd();
            }
        }, {
            key: "getBtnClick",
            value: function getBtnClick() {
                var _this35 = this;
                r.playVideo(function () {
                    var e = t.GameConfig.BasicData.reward, i = Math.round(100 * Math.random()), s = 0, a = 0;
                    for (var _t12 = 0; _t12 &lt; 4; _t12++) {
                        if (i &lt;= (s += e[_t12])) {
                            a = _t12;
                            break;
                        }
                    }
                    switch (a) {
                        case 0:
                            t.WnNum++, I.showToast("èŽ·å¾—ä¸‡èƒ½æ–¹å—");
                            break;

                        case 1:
                            t.BoomNum++, I.showToast("èŽ·å¾—ç‚¸å¼¹");
                            break;

                        case 2:
                            t.CiTieNum++, I.showToast("èŽ·å¾—ç£é“");
                            break;

                        case 3:
                            t.ChangeNum++, I.showToast("èŽ·å¾—æ›¿æ¢æ–¹å—");
                    }
                    t.saveLocalData(), D.instance.updatePropBtn(), _this35.hide();
                });
            }
        }, {
            key: "closeBtnClick",
            value: function closeBtnClick() {
                my.i(() =&gt; {
                    this.hide();
                })

            }
        }], [{
            key: "instance",
            get: function get() {
                return null == this._instance &amp;&amp; (this._instance = new B()), this._instance;
            }
        }]);
        return B;
    }(Laya.Script);
    B._instance = null;
    var v = /* */ function (_Laya$Script3D2) {
        _inherits(v, _Laya$Script3D2);
        var _super8 = _createSuper(v);
        function v() {
            var _this36;
            _classCallCheck(this, v);
            _this36 = _super8.call(this), _this36.isStop = !1, _this36.boxNum = 1, _this36.canCollider = !0,
                _this36.isCollider = !1, _this36.isOut = !1, _this36.boxIndex = 0;
            return _this36;
        }
        _createClass(v, [{
            key: "onAwake",
            value: function onAwake() {
                this.box = this.owner, this.rigidbody = this.box.addComponent(Laya.Rigidbody3D);
                var t = new Laya.BoxColliderShape();
                this.rigidbody.colliderShape = t, "box3" == this.box.name ? this.boxIndex = 1 : "box4" == this.box.name &amp;&amp; (this.boxIndex = 2);
            }
        }, {
            key: "onStart",
            value: function onStart() {
                var _this37 = this;
                var e = "cubeTex/3_" + t.textures[this.boxNum - 1] + ".png";
                Laya.Texture2D.load(e, Laya.Handler.create(this, function (t) {
                    _this37.box.getChildAt(0).meshRenderer.material.albedoTexture = t;
                }));
            }
        }, {
            key: "boxOut",
            value: function boxOut() {
                this.isOut = !0, this.rigidbody.linearVelocity = new Laya.Vector3(0, 0, 30);
            }
        }, {
            key: "boxUp",
            value: function boxUp() {
                this.rigidbody.angularVelocity = new Laya.Vector3(6, 0, 0), this.rigidbody.linearVelocity = new Laya.Vector3(0, 8, 6);
            }
        }, {
            key: "boxDestroy",
            value: function boxDestroy() {
                var _this38 = this;
                var t = arguments.length &gt; 0 &amp;&amp; arguments[0] !== undefined ? arguments[0] : 50;
                this.canCollider = !1, this.boxUp(), Laya.timer.once(t, this, function () {
                    _this38.box.active = !1, _this38.box.destroy();
                });
            }
        }, {
            key: "setColor",
            value: function setColor() {
                this.box.getChildAt(0).meshRenderer.material.renderMode = 0, this.loadTex();
            }
        }, {
            key: "loadTex",
            value: function loadTex() {
                var _this39 = this;
                var e = this.boxNum - 1;
                Laya.Texture2D.load("cubeTex/" + t.textures[e] + ".png", Laya.Handler.create(this, function (t) {
                    _this39.box.getChildAt(0).meshRenderer.material.albedoTexture = t;
                }));
            }
        }, {
            key: "addNum",
            value: function addNum() {
                var e = arguments.length &gt; 0 &amp;&amp; arguments[0] !== undefined ? arguments[0] : null;
                this.canCollider = !0, this.boxNum++, this.boxNum &gt; D.instance.maxNum &amp;&amp; (D.instance.maxNum = this.boxNum),
                    _.instance.show(this.boxIndex, function () {
                        D.instance.maxNum &gt;= D.instance.targetNum &amp;&amp; B.instance.show();
                    }), D.instance.maxNum &gt;= D.instance.targetNum &amp;&amp; (D.instance.targetNum++, D.instance.updateTarget()),
                    this.setColor(), this.boxUp();
                var i = N.instance.getScreenPos(this.box.transform.position), s = t.addScore(this.boxNum);
                if (D.instance.showScoreTip(s, i), D.instance.updateScore(), this.box.numChildren &gt; 1 &amp;&amp; this.box.getChildAt(1).destroy(),
                    null != e) {
                    var a = new Laya.Vector3();
                    Laya.Vector3.add(e.transform.position.clone(), this.box.transform.position.clone(), a),
                        Laya.Vector3.scale(a, .5, a), N.instance.play_HC_Effect(a);
                }
                f.playSound(5);
            }
        }, {
            key: "onCollisionEnter",
            value: function onCollisionEnter(e) {
                var _this40 = this;
                var i = e.other.owner;
                "wall" == i.name ? (this.isCollider = !0, this.isStop || (this.isStop = !0, this.rigidbody.linearVelocity = new Laya.Vector3(0, 0, 0),
                    this.rigidbody.angularVelocity = new Laya.Vector3(0, 0, 0))) : "box1" == i.name &amp;&amp; this.canCollider ? (this.isCollider = !0,
                        i.getComponent(Laya.Script3D).canCollider &amp;&amp; (i.getComponent(Laya.Script3D).canCollider = !1,
                            this.canCollider = !1, this.boxNum &lt; t.MaxLevel ? (this.addNum(i), i.active = !1,
                                i.removeSelf(), Laya.timer.once(50, this, function () {
                                    i.destroy();
                                })) : (i.active = !1, this.box.active = !1, i.removeSelf(), Laya.timer.once(50, this, function () {
                                    i.destroy(), _this40.box.destroy();
                                }), _.instance.show(this.boxIndex)))) : "box2" != i.name &amp;&amp; "box3" != i.name &amp;&amp; "box4" != i.name || (this.isCollider = !0,
                                    i.getComponent(v).boxNum == this.boxNum &amp;&amp; this.canCollider ? (this.canCollider = !1,
                                        this.boxNum &lt; t.MaxLevel ? this.isStop ? (this.addNum(i), i.active = !1, i.removeSelf(),
                                            Laya.timer.once(50, this, function () {
                                                i.destroy();
                                            })) : (this.isStop = !0, i.getComponent(v).addNum(this.box), this.box.active = !1,
                                                Laya.timer.once(50, this, function () {
                                                    _this40.box.destroy();
                                                })) : (i.active = !1, this.box.active = !1, i.removeSelf(), Laya.timer.once(50, this, function () {
                                                    i.destroy(), _this40.box.destroy();
                                                }), _.instance.show(this.boxIndex))) : this.boxStop());
            }
        }, {
            key: "boxStop",
            value: function boxStop() {
                this.isStop ? this.isOut &amp;&amp; (this.rigidbody.friction = .5) : (this.isOut &amp;&amp; (this.rigidbody.friction = 3),
                    this.isStop = !0, this.box.getChildByName("Trail") &amp;&amp; this.box.getChildByName("Trail").destroy(),
                    this.box.transform.localPositionZ &lt;= 2.4 &amp;&amp; !D.instance.isGameOver &amp;&amp; (console.log("å¤±è´¥"),
                        D.instance.isGameOver = !0, A.instance.show()));
            }
        }, {
            key: "onTriggerEnter",
            value: function onTriggerEnter(t) {
                !D.instance.isGameOver &amp;&amp; this.canCollider &amp;&amp; ("fail" == t.owner.name ? this.isCollider &amp;&amp; (console.log("å¤±è´¥"),
                    D.instance.isGameOver = !0, A.instance.show()) : "zhadan" == t.owner.name &amp;&amp; this.boxDestroy(200));
            }
        }]);
        return v;
    }(Laya.Script3D);
    var k = /* */ function (_Laya$Script3D3) {
        _inherits(k, _Laya$Script3D3);
        var _super9 = _createSuper(k);
        function k() {
            var _this41;
            _classCallCheck(this, k);
            _this41 = _super9.call(this), _this41.isStop = !1, _this41.boxNum = 1, _this41.canCollider = !0,
                _this41.isCollider = !1, _this41.isOut = !1;
            return _this41;
        }
        _createClass(k, [{
            key: "onAwake",
            value: function onAwake() {
                this.box = this.owner, this.addRigidbody();
            }
        }, {
            key: "onStart",
            value: function onStart() {
                this.setColor();
            }
        }, {
            key: "addRigidbody",
            value: function addRigidbody() {
                this.rigidbody = this.box.addComponent(Laya.Rigidbody3D);
                var t = new Laya.BoxColliderShape();
                this.rigidbody.colliderShape = t;
            }
        }, {
            key: "setColor",
            value: function setColor() {
                var _this42 = this;
                var e = this.boxNum - 1;
                Laya.Texture2D.load("cubeTex/" + t.textures[e] + ".png", Laya.Handler.create(this, function (t) {
                    _this42.box.getChildAt(0).meshRenderer.material.albedoTexture = t;
                }));
            }
        }, {
            key: "boxOut",
            value: function boxOut() {
                this.isOut = !0, this.rigidbody.linearVelocity = new Laya.Vector3(0, 0, 30);
            }
        }, {
            key: "boxUp",
            value: function boxUp() {
                this.rigidbody.angularVelocity = new Laya.Vector3(6, 0, 0), this.rigidbody.linearVelocity = new Laya.Vector3(0, 8, 6);
            }
        }, {
            key: "boxDestroy",
            value: function boxDestroy() {
                var _this43 = this;
                var t = arguments.length &gt; 0 &amp;&amp; arguments[0] !== undefined ? arguments[0] : 50;
                this.canCollider = !1, this.boxUp(), Laya.timer.once(t, this, function () {
                    _this43.box.active = !1, _this43.box.destroy();
                });
            }
        }, {
            key: "addNum",
            value: function addNum() {
                var e = arguments.length &gt; 0 &amp;&amp; arguments[0] !== undefined ? arguments[0] : null;
                this.canCollider = !0, this.boxNum++, this.boxNum &gt; D.instance.maxNum &amp;&amp; (D.instance.maxNum = this.boxNum),
                    D.instance.maxNum &gt;= D.instance.targetNum &amp;&amp; (B.instance.show(), D.instance.targetNum++,
                        D.instance.updateTarget()), this.setColor(), this.boxUp();
                var i = N.instance.getScreenPos(this.box.transform.position), s = t.addScore(this.boxNum);
                if (D.instance.showScoreTip(s, i), D.instance.updateScore(), null != e) {
                    var a = new Laya.Vector3();
                    Laya.Vector3.add(e.transform.position.clone(), this.box.transform.position.clone(), a),
                        Laya.Vector3.scale(a, .5, a), N.instance.play_HC_Effect(a);
                }
                f.playSound(5);
            }
        }, {
            key: "onCollisionEnter",
            value: function onCollisionEnter(e) {
                var _this44 = this;
                var i = e.other.owner;
                "wall" == i.name ? (this.isCollider = !0, this.isStop || (this.isStop = !0, this.rigidbody.linearVelocity = new Laya.Vector3(0, 0, 0),
                    this.rigidbody.angularVelocity = new Laya.Vector3(0, 0, 0))) : "box0" == i.name ? (this.isCollider = !0,
                        i.getComponent(k).boxNum == this.boxNum &amp;&amp; this.canCollider ? (this.canCollider = !1,
                            this.boxNum &lt; t.MaxLevel ? this.isStop ? (this.addNum(i), i.active = !1, i.removeSelf(),
                                Laya.timer.once(50, this, function () {
                                    i.destroy();
                                })) : (this.canCollider = !1, this.isStop = !0, i.getComponent(k).addNum(this.box),
                                    this.box.active = !1, Laya.timer.once(50, this, function () {
                                        _this44.box.destroy();
                                    })) : (i.active = !1, this.box.active = !1, i.removeSelf(), Laya.timer.once(50, this, function () {
                                        i.destroy(), _this44.box.destroy();
                                    }))) : this.boxStop()) : "box1" == i.name &amp;&amp; this.canCollider ? (this.isCollider = !0,
                                        i.getComponent(Laya.Script3D).canCollider &amp;&amp; (i.getComponent(Laya.Script3D).canCollider = !1,
                                            this.canCollider = !1, this.boxNum &lt; t.MaxLevel ? (this.addNum(i), i.active = !1,
                                                i.removeSelf(), Laya.timer.once(50, this, function () {
                                                    i.destroy();
                                                })) : (i.active = !1, this.box.active = !1, i.removeSelf(), Laya.timer.once(50, this, function () {
                                                    i.destroy(), _this44.box.destroy();
                                                })))) : "box2" != i.name &amp;&amp; "box3" != i.name &amp;&amp; "box4" != i.name || (this.isCollider = !0,
                                                    i.getComponent(v).boxNum == this.boxNum &amp;&amp; this.canCollider ? (this.canCollider = !1,
                                                        this.boxNum &lt; t.MaxLevel ? (this.addNum(i), i.active = !1, i.removeSelf(), Laya.timer.once(50, this, function () {
                                                            i.destroy();
                                                        })) : (i.active = !1, this.box.active = !1, i.removeSelf(), Laya.timer.once(50, this, function () {
                                                            i.destroy(), _this44.box.destroy();
                                                        })), i.numChildren &gt; 1 &amp;&amp; _.instance.show(Number(i.name.substring(3)) - 2)) : this.boxStop());
            }
        }, {
            key: "boxStop",
            value: function boxStop() {
                this.isStop ? this.isOut &amp;&amp; (this.rigidbody.friction = .5) : (this.isOut &amp;&amp; (this.rigidbody.friction = 3),
                    this.isStop = !0, this.box.getChildByName("Trail") &amp;&amp; this.box.getChildByName("Trail").destroy(),
                    this.box.transform.localPositionZ &lt;= 2.4 &amp;&amp; !D.instance.isGameOver &amp;&amp; (console.log("å¤±è´¥"),
                        D.instance.isGameOver = !0, A.instance.show()));
            }
        }, {
            key: "onTriggerEnter",
            value: function onTriggerEnter(t) {
                !D.instance.isGameOver &amp;&amp; this.canCollider &amp;&amp; ("fail" == t.owner.name &amp;&amp; this.isCollider ? (console.log("å¤±è´¥"),
                    D.instance.isGameOver = !0, A.instance.show()) : "zhadan" == t.owner.name &amp;&amp; this.boxDestroy(200));
            }
        }]);
        return k;
    }(Laya.Script3D);
    var U = /* */ function (_Laya$Script3D4) {
        _inherits(U, _Laya$Script3D4);
        var _super10 = _createSuper(U);
        function U() {
            var _this45;
            _classCallCheck(this, U);
            _this45 = _super10.call(this), _this45.canCollider = !0;
            return _this45;
        }
        _createClass(U, [{
            key: "onAwake",
            value: function onAwake() {
                this.box = this.owner, this.rigidbody = this.box.addComponent(Laya.Rigidbody3D);
                var t = new Laya.BoxColliderShape();
                this.rigidbody.colliderShape = t;
            }
        }, {
            key: "boxOut",
            value: function boxOut() {
                this.rigidbody.linearVelocity = new Laya.Vector3(0, 0, 30);
            }
        }, {
            key: "onCollisionEnter",
            value: function onCollisionEnter(t) {
                var _this46 = this;
                if (this.canCollider) {
                    var e = t.other.owner;
                    "wall" != e.name &amp;&amp; "box0" != e.name &amp;&amp; "box1" != e.name &amp;&amp; "box2" != e.name &amp;&amp; "box3" != e.name || (this.canCollider = !1,
                        f.playSound(1), N.instance.makeUpBox(), N.instance.play_CT_effect(this.box.transform.position),
                        this.box.active = !1, Laya.timer.once(50, this, function () {
                            _this46.box.destroy();
                        }));
                }
            }
        }]);
        return U;
    }(Laya.Script3D);
    var T = /* */ function (_Laya$Script3D5) {
        _inherits(T, _Laya$Script3D5);
        var _super11 = _createSuper(T);
        function T() {
            var _this47;
            _classCallCheck(this, T);
            _this47 = _super11.call(this), _this47.canCollider = !0;
            return _this47;
        }
        _createClass(T, [{
            key: "onAwake",
            value: function onAwake() {
                this.box = this.owner, this.rigidbody = this.box.addComponent(Laya.Rigidbody3D);
                var t = new Laya.BoxColliderShape();
                this.rigidbody.colliderShape = t;
            }
        }, {
            key: "boxOut",
            value: function boxOut() {
                this.rigidbody.linearVelocity = new Laya.Vector3(0, 0, 30);
            }
        }]);
        return T;
    }(Laya.Script3D);
    var N = /* */ function () {
        function N() {
            _classCallCheck(this, N);
            this.boxArray = [], this.hadPos = !1;
        }
        _createClass(N, [{
            key: "loadScene",
            value: function loadScene(e) {
                this.GameScene = new Laya.Scene3D(), Laya.stage.addChildAt(this.GameScene, 0), this.gameObjects = Laya.loader.getRes("GameScene/Conventional/GameScene.lh"),
                    this.Camera = this.gameObjects.getChildByName("Main Camera"), this.GameScene.addChild(this.Camera),
                    this.Light = this.gameObjects.getChildByName("Directional Light"), this.GameScene.addChild(this.Light),
                    this.boxSprite = new Laya.Sprite3D("Boxes"), this.GameScene.addChild(this.boxSprite),
                    this.Camera.clearFlag = Laya.CameraClearFlags.Sky, this.Camera.enableHDR = !1, t.screenScale &gt; 1.8 &amp;&amp; (this.Camera.fieldOfView = 60 * (1 + t.screenScale - 1.778)),
                    this.GameScene.ambientColor = new Laya.Vector3(.6226415, .6226415, .6226415), this.Light.shadowMode = Laya.ShadowMode.SoftLow,
                    this.Light.shadowDistance = 60, this.Light.shadowCascadesMode = Laya.ShadowCascadesMode.TwoCascades,
                    this.Light.shadowResolution = 2048, this.Light.shadowStrength = .8, e(), this.loadJson();
            }
        }, {
            key: "loadJson",
            value: function loadJson() {
                var _this48 = this;
                Laya.loader.load(["json/gameConfig.json"], Laya.Handler.create(this, function () {
                    t.GameConfig = Laya.loader.getRes("json/gameConfig.json"), t.getLocalData(), _this48.loadPrefabs();
                }), null, Laya.Loader.JSON);
            }
        }, {
            key: "loadPrefabs",
            value: function loadPrefabs() {
                for (var _t13 = 0; _t13 &lt; 5; _t13++) {
                    this.boxArray.push(this.gameObjects.getChildByName("Boxes").getChildAt(_t13));
                }
                this.boom = this.gameObjects.getChildByName("zhadan"), this.citie = this.gameObjects.getChildByName("citie");
                var t = this.gameObjects.getChildByName("zhuotai");
                this.GameScene.addChild(t), this.lujing = this.gameObjects.getChildByName("lujing"),
                    this.GameScene.addChild(this.lujing), this.ctEffect = this.gameObjects.getChildByName("ct_cx"),
                    this.boxEffect = this.gameObjects.getChildByName("hc"), this.loadBox(1), this.loadPreBox(),
                    this.loadUIScene(), this.targetBox = Laya.Sprite3D.instantiate(this.boxArray[0], this.GameScene),
                    this.targetBox.transform.position = new Laya.Vector3(0, .7, 13), this.targetBox.transform.localRotationEulerY = 45;
            }
        }, {
            key: "initScene",
            value: function initScene() {
                this.Box = null, this.boxSprite.destroyChildren(), this.loadBox(1);
            }
        }, {
            key: "loadPreBox",
            value: function loadPreBox() {
                var e = arguments.length &gt; 0 &amp;&amp; arguments[0] !== undefined ? arguments[0] : !0;
                var i = [];
                i = e ? t.GameConfig.normal_box : t.GameConfig.score_box;
                for (var _t14 = 0; _t14 &lt; i.length; _t14++) {
                    var s = new Laya.Vector3(i[_t14][1], i[_t14][2], i[_t14][3]), a = Laya.Sprite3D.instantiate(this.boxArray[0], this.boxSprite, !1, s);
                    a.addComponent(k), 0 == i[_t14][0] ? a.getComponent(k).boxNum = D.instance.targetNum - 1 : a.getComponent(k).boxNum = i[_t14][0];
                }
            }
        }, {
            key: "loadBox",
            value: function loadBox(t) {
                this.Box = Laya.Sprite3D.instantiate(this.boxArray[0], this.boxSprite), this.Box.addComponent(k),
                    this.Box.getComponent(k).boxNum = t, this.lujing.transform.localPositionX = 0, D.instance.currBoxIndex = t;
            }
        }, {
            key: "updateTargetBox",
            value: function updateTargetBox() {
                var _this49 = this;
                D.instance.targetNum &lt; t.MaxLevel &amp;&amp; Laya.Texture2D.load("cubeTex/" + t.textures[D.instance.targetNum - 1] + ".png", Laya.Handler.create(this, function (t) {
                    _this49.targetBox.getChildAt(0).meshRenderer.material.albedoTexture = t;
                }));
            }
        }, {
            key: "loadPropBox",
            value: function loadPropBox(t) {
                var e = arguments.length &gt; 1 &amp;&amp; arguments[1] !== undefined ? arguments[1] : 0;
                null != this.Box &amp;&amp; (this.Box.destroy(), this.Box = null), t &lt; 4 ? (this.Box = Laya.Sprite3D.instantiate(this.boxArray[t + 1], this.boxSprite),
                    this.Box.addComponent(v), this.Box.getComponent(v).boxNum = e) : 4 == t ? (this.Box = Laya.Sprite3D.instantiate(this.boom, this.boxSprite),
                        this.Box.addComponent(L)) : 5 == t ? (this.Box = Laya.Sprite3D.instantiate(this.citie, this.boxSprite),
                            this.Box.addComponent(U)) : 6 == t &amp;&amp; (this.Box = Laya.Sprite3D.instantiate(this.boxArray[1], this.boxSprite),
                                this.Box.addComponent(T)), this.lujing.transform.localPositionX = 0;
            }
        }, {
            key: "boxMove",
            value: function boxMove(t) {
                null != this.Box &amp;&amp; (this.Box.transform.localPositionX + t &gt; 2 ? this.Box.transform.localPositionX = 2 : this.Box.transform.localPositionX + t &lt; -2 ? this.Box.transform.localPositionX = -2 : this.Box.transform.localPositionX += t,
                    this.lujing.transform.localPositionX = this.Box.transform.localPositionX);
            }
        }, {
            key: "removeBoxes",
            value: function removeBoxes() {
                this.Box.destroy(), this.Box = null;
                var t = this.boxSprite.numChildren - 1;
                for (var _i5 = 0; _i5 &lt; t; _i5++) {
                    var e = this.boxSprite.getChildAt(_i5);
                    e &amp;&amp; e.transform.localPositionZ &lt;= 4 &amp;&amp; (e.destroy(), _i5--);
                }
            }
        }, {
            key: "play_HC_Effect",
            value: function play_HC_Effect(t) {
                var e = Laya.ShuriKenParticle3D.instantiate(this.boxEffect, this.GameScene, !1, t);
                Laya.timer.once(500, this, function () {
                    e.destroy();
                });
            }
        }, {
            key: "play_CT_effect",
            value: function play_CT_effect(t) {
                var e = Laya.ShuriKenParticle3D.instantiate(this.ctEffect, this.GameScene, !1, t);
                e.active = !0, Laya.timer.once(500, this, function () {
                    e.destroy();
                });
            }
        }, {
            key: "makeUpBox",
            value: function makeUpBox() {
                var t = -1, e = -1, i = -1, s = 0;
                for (var _n = 0; _n &lt; this.boxSprite.numChildren - 1; _n++) {
                    var a = this.boxSprite.getChildAt(_n);
                    if (("box0" == a.name || "box2" == a.name || "box3" == a.name) &amp;&amp; a != this.Box &amp;&amp; -1 == t) {
                        t = _n, i = a.getComponent(Laya.Script3D).boxNum;
                        for (var _n2 = 0; _n2 &lt; this.boxSprite.numChildren - 1; _n2++) {
                            var o = this.boxSprite.getChildAt(_n2);
                            if (("box0" == a.name || "box2" == a.name || "box3" == a.name) &amp;&amp; o != this.Box &amp;&amp; i == o.getComponent(Laya.Script3D).boxNum &amp;&amp; t != _n2) {
                                e = _n2, this.boxSprite.getChildAt(t).getComponent(Laya.Script3D).addNum(), this.boxSprite.getChildAt(e).getComponent(Laya.Script3D).boxDestroy(),
                                    s++;
                                break;
                            }
                        }
                        if (t = -1, e = -1, i = -1, 5 == s) break;
                    }
                }
            }
        }, {
            key: "showLujing",
            value: function showLujing(t) {
                this.lujing.active = t;
            }
        }, {
            key: "getScreenPos",
            value: function getScreenPos(t) {
                var e = new Laya.Vector4();
                return this.Camera.worldToViewportPoint(t, e), new Laya.Vector2(e.x, e.y);
            }
        }, {
            key: "loadUIScene",
            value: function loadUIScene() {
                this.uiScene = new Laya.Scene3D(), this.uiCamera = new Laya.Camera(), Laya.stage.addChild(this.uiScene),
                    this.uiScene.addChild(this.uiCamera), this.uiCamera.transform.position = new Laya.Vector3(0, -.6, -5),
                    this.uiCamera.transform.localRotationEulerX = -20, this.uiCamera.clearFlag = 2,
                    this.uiCamera.orthographic = !0, this.uiCamera.orthographicVerticalSize = Number((Laya.stage.height / Laya.stage.width).toFixed(3)) / 1.779 * 8,
                    this.uiScene.ambientMode = 0, this.uiScene.ambientColor = new Laya.Vector3(.6226415, .6226415, .6226415);
                var t = new Laya.DirectionLight();
                this.uiScene.addChild(t), t.transform.localRotationEulerX = -50, t.intensity = .2,
                    this.uiBox = Laya.Sprite3D.instantiate(this.boxArray[0], this.uiScene), this.uiBox.transform.localRotationEulerZ = 180,
                    this.uiScene.active = !1;
            }
        }, {
            key: "showUIScene",
            value: function showUIScene(e, i) {
                var _this50 = this;
                if (this.uiScene.active = !0, !this.hadPos) {
                    this.hadPos = !0;
                    var s = new Laya.Vector3(0, 0, 0), a = new Laya.Vector3(375, e, 0), o = Number((Laya.stage.height / Laya.stage.width).toFixed(3)) - 1.8;
                    o &gt; 0 ? o *= .5 : o = 0;
                    var n = a.y + a.y * o;
                    a = new Laya.Vector3(a.x, n, 0), this.uiCamera.convertScreenCoordToOrthographicCoord(a, s),
                        this.uiBox.transform.position = s;
                }
                this.uiBox.transform.localRotationEulerY = 0, Laya.Texture2D.load("cubeTex/" + t.textures[i] + ".png", Laya.Handler.create(this, function (t) {
                    _this50.uiBox.getChildAt(0).meshRenderer.material.albedoTexture = t;
                })), Laya.timer.frameLoop(1, this, this.boxRota);
            }
        }, {
            key: "boxRota",
            value: function boxRota() {
                this.uiBox.transform.localRotationEulerY -= 1.5;
            }
        }, {
            key: "hideUIScene",
            value: function hideUIScene() {
                this.uiScene.active = !1, Laya.timer.clear(this, this.boxRota);
            }
        }], [{
            key: "instance",
            get: function get() {
                return null == this._instance &amp;&amp; (this._instance = new N()), this._instance;
            }
        }]);
        return N;
    }();
    N._instance = null;
    var M = /* */ function (_Laya$Script7) {
        _inherits(M, _Laya$Script7);
        var _super12 = _createSuper(M);
        function M() {
            var _this51;
            _classCallCheck(this, M);
            _this51 = _super12.call(this), M._instance = _assertThisInitialized(_this51);
            return _this51;
        }
        _createClass(M, [{
            key: "onAwake",
            value: function onAwake() {
                this.setUI = this.owner, this.boxui = this.setUI.getChildAt(0), this.rankBtn = this.boxui.getChildByName("rankBtn"),
                    this.soundBtn = this.boxui.getChildByName("soundBtn"), this.restartBtn = this.boxui.getChildByName("restartBtn"),
                    this.closeBtn = this.boxui.getChildByName("closeBtn"), this.rankBtn.on(Laya.Event.CLICK, this, this.rankBtnClick),
                    this.soundBtn.on(Laya.Event.CLICK, this, this.soundBtnClick), this.restartBtn.on(Laya.Event.CLICK, this, this.restartBtnClick),
                    this.closeBtn.on(Laya.Event.CLICK, this, this.closeBtnClick);
            }
        }, {
            key: "show",
            value: function show() {
                this.setUI.visible = !0, f.openUIByScale(this.boxui), this.setSoundSkin(), o.adUtil.showBannerAd(),
                    r.showInterstitialAd(), b.hideGameUIAd();
            }
        }, {
            key: "hide",
            value: function hide() {
                this.setUI.visible = !1;
            }
        }, {
            key: "rankBtnClick",
            value: function rankBtnClick() {
                I.showToast("æš‚æœªå¼€æ”¾");
            }
        }, {
            key: "soundBtnClick",
            value: function soundBtnClick() {
                t.soundOn ? t.soundOn = !1 : t.soundOn = !0, this.setSoundSkin(), f.setVolume();
            }
        }, {
            key: "setSoundSkin",
            value: function setSoundSkin() {
                t.soundOn ? this.soundBtn.skin = "UI/GameUI/soundOn.png" : this.soundBtn.skin = "UI/GameUI/soundOff.png";
            }
        }, {
            key: "restartBtnClick",
            value: function restartBtnClick() {
                this.hide(), N.instance.initScene(), C.instance.show();
            }
        }, {
            key: "closeBtnClick",
            value: function closeBtnClick() {
                this.hide(), b.showGameUIAd();
            }
        }], [{
            key: "instance",
            get: function get() {
                return null == this._instance &amp;&amp; (this._instance = new M()), this._instance;
            }
        }]);
        return M;
    }(Laya.Script);
    M._instance = null;
    var D = /* */ function (_Laya$Script8) {
        _inherits(D, _Laya$Script8);
        var _super13 = _createSuper(D);
        function D() {
            var _this52;
            _classCallCheck(this, D);
            _this52 = _super13.call(this), _this52.isDown = !1, _this52.isGameOver = !1, _this52.startPos = 0,
                _this52.endPos = 0, _this52.maxNum = 1, _this52.targetNum = 5, _this52.boxOutNum = 0,
                _this52.selectProp = -1, _this52.currBoxIndex = 1, _this52.scoreTips = [], D._instance = _assertThisInitialized(_this52);
            return _this52;
        }
        _createClass(D, [{
            key: "onAwake",
            value: function onAwake() {
                this.gameUI = this.owner, this.boxui = this.gameUI.getChildAt(0), this.controlUI = this.boxui.getChildByName("ControlUI"),
                    this.scoreText = this.boxui.getChildByName("score").getChildAt(0), this.wanneng = this.boxui.getChildByName("wanneng"),
                    this.boom = this.boxui.getChildByName("boom"), this.citie = this.boxui.getChildByName("citie"),
                    this.change = this.boxui.getChildByName("change"), this.setBtn = this.boxui.getChildByName("setBtn"),
                    this.tipImg = this.boxui.getChildByName("tip"), this.closeTip = this.boxui.getChildByName("close"),
                    this.boxui.height = 750 * t.screenScale, this.controlUI.on(Laya.Event.MOUSE_DOWN, this, this.mouseDown),
                    this.controlUI.on(Laya.Event.MOUSE_MOVE, this, this.mouseMove), this.controlUI.on(Laya.Event.MOUSE_UP, this, this.mouseUp),
                    this.controlUI.on(Laya.Event.MOUSE_OUT, this, this.mouseUp), this.wanneng.on(Laya.Event.CLICK, this, this.propBtnClick),
                    this.boom.on(Laya.Event.CLICK, this, this.propBtnClick), this.citie.on(Laya.Event.CLICK, this, this.propBtnClick),
                    this.change.on(Laya.Event.CLICK, this, this.propBtnClick), this.setBtn.on(Laya.Event.CLICK, this, this.setBtnClick),
                    this.closeTip.on(Laya.Event.CLICK, this, this.closeTipClick), this.updateScore(),
                    this.updateTarget(), this.updatePropBtn();
            }
        }, {
            key: "onEnable",
            value: function onEnable() {
                f.playBGM(), o.adUtil.showBannerAd();
            }
        }, {
            key: "mouseDown",
            value: function mouseDown() {
                this.isGameOver || null != N.instance.Box &amp;&amp; (this.isDown = !0, this.startPos = Laya.stage.mouseX,
                    N.instance.showLujing(!0), x.instance.hideGuide(), this.wanneng.zOrder = -1, this.boom.zOrder = -1,
                    this.citie.zOrder = -1, this.change.zOrder = -1, this.setBtn.zOrder = -1, this.closeTip.zOrder = -1);
            }
        }, {
            key: "mouseMove",
            value: function mouseMove() {
                if (!this.isGameOver &amp;&amp; this.isDown) {
                    this.endPos = Laya.stage.mouseX;
                    var t = (this.endPos - this.startPos) / Laya.stage.width * 6;
                    N.instance.boxMove(-t), this.startPos = Laya.stage.mouseX;
                }
            }
        }, {
            key: "mouseUp",
            value: function mouseUp() {
                var _this53 = this;
                this.isGameOver || null != N.instance.Box &amp;&amp; this.isDown &amp;&amp; (this.isDown = !1, N.instance.Box.getComponent(Laya.Script3D).boxOut(),
                    N.instance.Box = null, this.boxOutNum++, Laya.timer.once(300, this, function () {
                        _this53.boxOutNum &gt;= t.ItemRefresh ? (_this53.boxOutNum = 0, _this53.randomPropBox()) : _this53.randomBox();
                    }), N.instance.showLujing(!1), this.wanneng.zOrder = 1, this.boom.zOrder = 1, this.citie.zOrder = 1,
                    this.change.zOrder = 1, this.setBtn.zOrder = 1, this.closeTip.zOrder = 1, this.tipImg.visible &amp;&amp; (this.hideTipUI(),
                        this.useProp()), f.playSound(2));
            }
        }, {
            key: "initScore",
            value: function initScore() {
                t.Score = 0, this.boxOutNum = 0, this.updateScore();
            }
        }, {
            key: "initTarget",
            value: function initTarget() {
                this.targetNum = 5, this.updateTarget();
            }
        }, {
            key: "propBtnClick",
            value: function propBtnClick(e) {
                var _this54 = this;
                if (!this.isGameOver &amp;&amp; e.type == Laya.Event.CLICK) {
                    switch (e.target.name) {
                        case "wanneng":
                            t.WnNum &gt; 0 ? (this.showTipUI(0), N.instance.loadPropBox(6)) : _.instance.show(0, null, function () {
                                _this54.showTipUI(0), N.instance.loadPropBox(6);
                            });
                            break;

                        case "boom":
                            t.BoomNum &gt; 0 ? (this.showTipUI(1), N.instance.loadPropBox(4)) : _.instance.show(1, null, function () {
                                _this54.showTipUI(1), N.instance.loadPropBox(4);
                            });
                            break;

                        case "citie":
                            t.CiTieNum &gt; 0 ? (this.showTipUI(2), N.instance.loadPropBox(5)) : _.instance.show(2, null, function () {
                                _this54.showTipUI(2), N.instance.loadPropBox(5);
                            });
                            break;

                        case "change":
                            t.ChangeNum &gt; 0 ? (null != N.instance.Box &amp;&amp; (N.instance.Box.destroy(), N.instance.Box = null),
                                t.ChangeNum--, this.randomBox(!0), this.updatePropBtn(), f.playSound(4)) : _.instance.show(3);
                            break;

                        case "boomBox":
                            var i = this.getRandomBox();
                            N.instance.loadPropBox(2, i);
                            break;

                        case "citieBox":
                            break;

                        case "wnBox":
                            i = this.getRandomBox();
                            N.instance.loadPropBox(1, i);
                    }
                    t.saveLocalData();
                }
            }
        }, {
            key: "setBtnClick",
            value: function setBtnClick() {
                M.instance.show();
            }
        }, {
            key: "useProp",
            value: function useProp() {
                switch (this.selectProp) {
                    case 0:
                        t.WnNum--;
                        break;

                    case 1:
                        t.BoomNum--;
                        break;

                    case 2:
                        t.CiTieNum--;
                }
                this.updatePropBtn();
            }
        }, {
            key: "hideTipUI",
            value: function hideTipUI() {
                this.tipImg.visible = !1, this.closeTip.visible = !1, this.setBtn.visible = !0,
                    this.boxui.getChildByName("score").visible = !0, this.wanneng.visible = !0, this.boom.visible = !0,
                    this.citie.visible = !0, this.change.visible = !0, b.showGameUIAd();
            }
        }, {
            key: "closeTipClick",
            value: function closeTipClick() {
                this.hideTipUI(), null != N.instance.Box &amp;&amp; (N.instance.Box.destroy(), N.instance.Box = null),
                    N.instance.loadBox(this.currBoxIndex);
            }
        }, {
            key: "showTipUI",
            value: function showTipUI(t) {
                this.selectProp = t, this.tipImg.visible = !0, this.closeTip.visible = !0, this.tipImg.skin = "UI/GameUI/tip" + t + ".png",
                    this.setBtn.visible = !1, this.boxui.getChildByName("score").visible = !1, this.wanneng.visible = !1,
                    this.boom.visible = !1, this.citie.visible = !1, this.change.visible = !1, f.playSound(4),
                    b.hideGameUIAd();
            }
        }, {
            key: "getRandomBox",
            value: function getRandomBox() {
                var e = arguments.length &gt; 0 &amp;&amp; arguments[0] !== undefined ? arguments[0] : !1;
                var i = t.GameConfig.taskData[this.maxNum].weight.slice(), s = 0;
                e &amp;&amp; (i[this.currBoxIndex - 1] = 0);
                var a = 0, o = 0;
                for (var _t15 = 0; _t15 &lt; i.length; _t15++) {
                    a += i[_t15];
                }
                var n = Math.round(Math.random() * a);
                for (var _t16 = 0; _t16 &lt; i.length; _t16++) {
                    if (n &lt;= (o += i[_t16])) {
                        s = _t16 + 1;
                        break;
                    }
                }
                return s;
            }
        }, {
            key: "randomBox",
            value: function randomBox() {
                var t = arguments.length &gt; 0 &amp;&amp; arguments[0] !== undefined ? arguments[0] : !1;
                var e = this.getRandomBox(t);
                N.instance.loadBox(e);
            }
        }, {
            key: "randomPropBox",
            value: function randomPropBox() {
                var e = t.GameConfig.BasicData.itemweight, i = Math.round(100 * Math.random()), s = 0, a = 0;
                for (var _t17 = 0; _t17 &lt; 3; _t17++) {
                    if (i &lt;= (s += e[_t17])) {
                        a = _t17;
                        break;
                    }
                }
                if (a &lt;= 2) {
                    e = t.GameConfig.taskData[this.maxNum].weight;
                    var o = 0, n = 0;
                    for (var _t18 = 0; _t18 &lt; e.length; _t18++) {
                        o += e[_t18];
                    }
                    var r = Math.round(Math.random() * o);
                    for (var _t19 = 0; _t19 &lt; e.length; _t19++) {
                        if (r &lt;= (n += e[_t19])) {
                            N.instance.loadPropBox(a + 1, _t19 + 1);
                            break;
                        }
                    }
                } else this.randomBox();
            }
        }, {
            key: "updateScore",
            value: function updateScore() {
                this.scoreText.changeText("" + t.Score);
                var e = t.Score.toString().length;
                this.scoreText.fontSize = e &lt;= 6 ? 40 : 7 == e ? 35 : 8 == e ? 30 : e &gt; 8 &amp;&amp; e &lt;= 10 ? 25 : e &gt; 10 &amp;&amp; e &lt;= 12 ? 20 : 15;
            }
        }, {
            key: "updateTarget",
            value: function updateTarget() {
                N.instance.updateTargetBox();
            }
        }, {
            key: "updatePropBtn",
            value: function updatePropBtn() {
                t.WnNum &gt; 0 ? (this.wanneng.getChildAt(0).visible = !1, this.wanneng.getChildAt(1).visible = !0,
                    this.wanneng.getChildAt(1).changeText("x" + t.WnNum)) : (this.wanneng.getChildAt(0).visible = !0,
                        this.wanneng.getChildAt(1).visible = !1), t.BoomNum &gt; 0 ? (this.boom.getChildAt(0).visible = !1,
                            this.boom.getChildAt(1).visible = !0, this.boom.getChildAt(1).changeText("x" + t.BoomNum)) : (this.boom.getChildAt(0).visible = !0,
                                this.boom.getChildAt(1).visible = !1), t.CiTieNum &gt; 0 ? (this.citie.getChildAt(0).visible = !1,
                                    this.citie.getChildAt(1).visible = !0, this.citie.getChildAt(1).changeText("x" + t.CiTieNum)) : (this.citie.getChildAt(0).visible = !0,
                                        this.citie.getChildAt(1).visible = !1), t.ChangeNum &gt; 0 ? (this.change.getChildAt(0).visible = !1,
                                            this.change.getChildAt(1).visible = !0, this.change.getChildAt(1).changeText("x" + t.ChangeNum)) : (this.change.getChildAt(0).visible = !0,
                                                this.change.getChildAt(1).visible = !1);
            }
        }, {
            key: "createNum",
            value: function createNum(t) {
                var e;
                return this.scoreTips.length &gt; 0 ? e = this.scoreTips.pop() : ((e = new Laya.FontClip("UI/GameUI/scoreNum.png", "0123456789+")).align = "center",
                    e.width = 300, e.anchorX = .5, e.anchorY = .5), this.controlUI.addChild(e), e.pos(t.x, t.y + 150),
                    e.alpha = 0, e;
            }
        }, {
            key: "showScoreTip",
            value: function showScoreTip(t, e) {
                var _this55 = this;
                var i = this.createNum(e);
                i.value = "+" + t, Laya.Tween.to(i, {
                    y: e.y + 100,
                    alpha: 1
                }, 200, null, Laya.Handler.create(this, function () {
                    Laya.timer.once(600, _this55, function () {
                        i.removeSelf(), _this55.scoreTips.push(i);
                    });
                }));
            }
        }], [{
            key: "instance",
            get: function get() {
                return null == this._instance &amp;&amp; (this._instance = new D()), this._instance;
            }
        }]);
        return D;
    }(Laya.Script);
    D._instance = null;
    var O = /* */ function (_Laya$Image) {
        _inherits(O, _Laya$Image);
        var _super14 = _createSuper(O);
        function O() {
            _classCallCheck(this, O);
            return _super14.call(this);
        }
        _createClass(O, [{
            key: "onAwake",
            value: function onAwake() {
                this.on(Laya.Event.MOUSE_DOWN, this, this.buttonDown), this.on(Laya.Event.MOUSE_OUT, this, this.buttonOut),
                    this.on(Laya.Event.MOUSE_OVER, this, this.buttonDown);
            }
        }, {
            key: "buttonDown",
            value: function buttonDown() {
                Laya.Tween.clearAll(this), Laya.Tween.to(this, {
                    scaleX: .9,
                    scaleY: .9
                }, 200);
            }
        }, {
            key: "buttonOut",
            value: function buttonOut() {
                Laya.Tween.clearAll(this), Laya.Tween.to(this, {
                    scaleX: 1,
                    scaleY: 1
                }, 200);
            }
        }]);
        return O;
    }(Laya.Image);
    var W = /* */ function (_Laya$Script9) {
        _inherits(W, _Laya$Script9);
        var _super15 = _createSuper(W);
        function W() {
            var _this56;
            _classCallCheck(this, W);
            _this56 = _super15.call(this), _this56.maxPro = 0, _this56.loadSpeed = 0, _this56.loadPro = 0,
                _this56.isStartLoad = !1, _this56.isLoadCompleted = !1;
            return _this56;
        }
        _createClass(W, [{
            key: "onAwake",
            value: function onAwake() {
                this.boxui = this.owner.getChildAt(0), this.proMask = this.boxui.getChildByName("pro").mask,
                    this.maxPro = this.proMask.width, new t(), this.boxui.height = 750 * t.screenScale;
            }
        }, {
            key: "onEnable",
            value: function onEnable() {
                var _this57 = this;
                null == o.adUtil &amp;&amp; (o.adUtil = new r()), window.wx ? (null == y.uo &amp;&amp; (new y(),
                    o.mWX = new d(), y.uo.initWX(2)), b.getSystemInfoSync(), b.initCustomAds()) : (null == y.uo &amp;&amp; new y(),
                        t.dataLoaded = !0, o.mWX = new d()), this.isStartLoad = !0, I.loadSubpackage("GameScene", function () {
                            _this57.startLoad();
                        });
            }
        }, {
            key: "startLoad",
            value: function startLoad() {
                var _this58 = this;
                Laya.loader.create(["GameScene/Conventional/GameScene.lh"], Laya.Handler.create(this, function () {
                    my.init({
                        gamedistributionId: "1dbba1486e4044c8a2950781fd179e15",
                        gamemonetizeId: "b59fnu1abpkz3vo4kksxwievl1jpynfs",
                        complete: () =&gt; {
                            N.instance.loadScene(function () {
                                _this58.isLoadCompleted = !0;
                            });
                        }
                    })

                }));
            }
        }, {
            key: "onUpdate",
            value: function onUpdate() {
                if (this.isStartLoad) {
                    if (this.isLoadCompleted ? this.loadSpeed = 5 : this.loadSpeed = 15, this.loadPro / this.maxPro &gt;= .95 &amp;&amp; !this.isLoadCompleted) return;
                    if (this.loadPro &gt;= this.maxPro) return this.isStartLoad = !1, this.proMask.x = this.maxPro,
                        Laya.Scene.open("Scene/GameScene.scene", !1), void Laya.timer.once(200, this, function () {
                            o.mWX.indexBpTotle("homepage_load", {}), Laya.Scene.close("Scene/LoadScene.scene", "LoadScene");
                        });
                    this.loadPro += Laya.timer.delta / this.loadSpeed, this.loadPro &gt; this.maxPro &amp;&amp; (this.loadPro = this.maxPro),
                        this.proMask.x = this.loadPro;
                }
            }
        }]);
        return W;
    }(Laya.Script);
    var V = /* */ function () {
        function V() {
            _classCallCheck(this, V);
        }
        _createClass(V, null, [{
            key: "init",
            value: function init() {
                var t = Laya.ClassUtils.regClass;
                t("scripts/UIScripts/GuideUI.ts", x), t("scripts/UIScripts/GameUI.ts", D), t("scripts/UIScripts/ButtonManager.ts", O),
                    t("scripts/UIScripts/SetUI.ts", M), t("scripts/UIScripts/ImageDraw.ts", S), t("scripts/UIScripts/FailUI.ts", A),
                    t("scripts/UIScripts/KaiJUI.ts", C), t("scripts/UIScripts/PropUI.ts", _), t("scripts/UIScripts/TargetUI.ts", B),
                    t("scripts/UIScripts/LoadUI.ts", W);
            }
        }]);
        return V;
    }();
    V.width = 750, V.height = 1670, V.scaleMode = "showall", V.screenMode = "vertical",
        V.alignV = "middle", V.alignH = "center", V.startScene = "Scene/LoadScene.scene",
        V.sceneRoot = "", V.debug = !1, V.stat = !1, V.physicsDebug = !1, V.exportSceneToJson = !0,
        V.init();
    new (/* */ function () {
        function _class() {
            _classCallCheck(this, _class);
            window.Laya3D ? Laya3D.init(V.width, V.height) : Laya.init(V.width, V.height, Laya.WebGL),
                Laya.Physics &amp;&amp; Laya.Physics.enable(), Laya.DebugPanel &amp;&amp; Laya.DebugPanel.enable(),
                Laya.stage.scaleMode = V.scaleMode,
                Laya.stage.alignV = V.alignV,
                Laya.stage.alignH = V.alignH, Laya.URL.exportSceneToJson = V.exportSceneToJson,
                (V.debug || "true" == Laya.Utils.getQueryString("debug")) &amp;&amp; Laya.enableDebugPanel(),
                V.physicsDebug &amp;&amp; Laya.PhysicsDebugDraw &amp;&amp; Laya.PhysicsDebugDraw.enable(), V.stat &amp;&amp; Laya.Stat.show(),
                Laya.alertGlobalError(!0), Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.onVersionLoaded), Laya.ResourceVersion.FILENAME_VERSION);
        }
        _createClass(_class, [{
            key: "onVersionLoaded",
            value: function onVersionLoaded() {
                Laya.AtlasInfoManager.enable("fileconfig.json", Laya.Handler.create(this, this.onConfigLoaded));
            }
        }, {
            key: "onConfigLoaded",
            value: function onConfigLoaded() {
                V.startScene &amp;&amp; Laya.Scene.open(V.startScene), Laya.MouseManager.multiTouchEnabled = !1;
            }
        }]);
        return _class;
    }())();
}();</pre></body></html>