var b = b || {}; b.na = b.na || {}; b.j = {}; w = window; w = Object.prototype; delete window._p; b.ac = function(a) { return document.createElement(a) }; b.Qa = function(e, a, c, d) { e.addEventListener(a, c, d) }; b.QF = "undefined" !== typeof require && require("fs"); b.EI = function(e, a) { if (e) { if (e instanceof Array) { for (var c = 0, d = e.length; c < d && !1 !== a.call(void 0, e[c], c); c++) {} } else { for (c in e) { if (!1 === a.call(void 0, e[c], c)) { break } } } } }; b.extend = function(c) { var a = 2 <= arguments.length ? Array.prototype.slice.call(arguments, 1) : []; b.EI(a, function(e) { for (var d in e) { e.hasOwnProperty(d) && (c[d] = e[d]) } }); return c }; b.nd = function(a) { return "function" === typeof a }; b.GB = function(a) { return "number" === typeof a || "[object Number]" === Object.prototype.toString.call(a) }; b.ge = function(a) { return "string" === typeof a || "[object String]" === Object.prototype.toString.call(a) }; b.isArray = function(a) { return Array.isArray(a) || "object" === typeof a && "[object Array]" === Object.prototype.toString.call(a) }; b.Gi = function(a) { return "undefined" === typeof a }; b.ar = function(a) { return "object" === typeof a && "[object Object]" === Object.prototype.toString.call(a) }; b.Yf = function(c) { if (!c) { return b.log("invalid URL"), !1 } var a = c.indexOf("://"); if (-1 === a) { return !1 } a = c.indexOf("/", a + 3); return (-1 === a ? c : c.substring(0, a)) !== location.origin }; function ea(f, g, a, c, d) { var e = this; e.x1 = f; e.Lt = g; e.Hd = []; e.XF = a; e.YF = d; e.Yk = c; e.Tt = d; e.PG = f instanceof Array ? [] : {}; e.PF = !1; b.EI(f, function(i, h) { e.Hd.push({ index: h, value: i }) }); e.size = e.Hd.length; e.XA = 0; e.pA = 0; e.Lt = e.Lt || e.size; e.w8 = function(i, h) { e.XF = i; e.YF = h }; e.v8 = function(i, h) { e.Yk = i; e.Tt = h }; e.JF = function() { var i = this; if (!(0 === i.Hd.length || i.pA >= i.Lt)) { var j = i.Hd.shift(), k = j.value, h = j.index; i.pA++; i.XF.call(i.YF, k, h, function(n) { if (!i.PF) { if (i.XA++, i.pA--, n) { i.PF = !0, i.Yk && i.Yk.call(i.Tt, n) } else { var m = Array.prototype.slice.call(arguments, 1); i.PG[this.index] = m[0]; i.XA === i.size ? i.Yk && i.Yk.call(i.Tt, null, i.PG) : i.JF() } } }.bind(j), i) } }; e.Un = function() { if (0 === this.Hd.length) { this.Yk && this.Yk.call(this.Tt, null, []) } else { for (var h = 0; h < this.Lt; h++) { this.JF() } } } } b.async = { t$: function(d, a, c) { d = new ea(d, 1, function(g, e, f) { g.call(c, f) }, a, c); d.Un(); return d }, Z8: function(d, a, c) { d = new ea(d, 0, function(g, e, f) { g.call(c, f) }, a, c); d.Un(); return d }, dca: function(f, g, a) { var c = [], d = [null], e = new ea(f, 1, function(i, j, h) { c.push(function(k) { c = Array.prototype.slice.call(arguments, 1); f.length - 1 === j && (d = d.concat(c)); h.apply(null, arguments) }); i.apply(a, c) }, function(h) { if (g) { if (h) { return g.call(a, h) } g.apply(a, d) } }); e.Un(); return e }, map: function(f, a, c, d) { var e = a; "object" === typeof a && (c = a.xl, d = a.r7, e = a.q7); f = new ea(f, 0, e, c, d); f.Un(); return f }, a8: function(f, a, c, d, e) { f = new ea(f, a, c, d, e); f.Un(); return f } }; b.path = { join: function() { for (var d = arguments.length, a = "", c = 0; c < d; c++) { a = (a + ("" === a ? "" : "/") + arguments[c]).replace(/(\/|\\\\)$/, "") } return a }, Yj: function(a) { return (a = /(\.[^\.\/\?\\]*)(\?.*)?$/.exec(a)) ? a[1] : null }, Z7: function(c) { if (c) { var a = c.lastIndexOf("."); if (-1 !== a) { return c.substring(0, a) } } return c }, SS: function(d, a) { var c = d.indexOf("?"); 0 < c && (d = d.substring(0, c)); c = /(\/|\\\\)([^(\/|\\\\)]+)$/g.exec(d.replace(/(\/|\\\\)$/, "")); if (!c) { return null } c = c[2]; return a && d.substring(d.length - a.length).toLowerCase() === a.toLowerCase() ? c.substring(0, c.length - a.length) : c }, dirname: function(a) { return a.replace(/((.*)(\/|\\|\\\\))?(.*?\..*$)?/, "$2") }, oI: function(e, a) { a = a || ""; var c = e.indexOf("?"), d = ""; 0 < c && (d = e.substring(c), e = e.substring(0, c)); c = e.lastIndexOf("."); return 0 > c ? e + a + d : e.substring(0, c) + a + d }, Pu: function(f, a, c) { if (0 === a.indexOf(".")) { return this.oI(f, a) } var d = f.indexOf("?"), e = ""; c = c ? this.Yj(f) : ""; 0 < d && (e = f.substring(d), f = f.substring(0, d)); d = f.lastIndexOf("/"); return f.substring(0, 0 >= d ? 0 : d + 1) + a + c + e } }; b.S = { ZF: {}, du: {}, CQ: {}, Ek: {}, Jv: "", g2: "", Vc: {}, cv: function() { return window.XMLHttpRequest ? new window.XMLHttpRequest : new ActiveXObject("MSXML2.XMLHTTP") }, AF: function(f) { var a = f[0], c = f[1], d = f[2], e = ["", null, null]; if (1 === f.length) { e[1] = a instanceof Array ? a : [a] } else { if (2 === f.length) { "function" === typeof c ? (e[1] = a instanceof Array ? a : [a], e[2] = c) : (e[0] = a || "", e[1] = c instanceof Array ? c : [c]) } else { if (3 === f.length) { e[0] = a || "", e[1] = c instanceof Array ? c : [c], e[2] = d } else { throw "arguments error to load js!" } } } return e }, zJ: function(d, e, f) { var g = this, h = g.ZF, k = g.AF(arguments), a = k[0], c = k[1], k = k[2]; - 1 < navigator.userAgent.indexOf("Trident/5") ? g.cG(a, c, 0, k) : b.async.map(c, function(m, i, j) { m = b.path.join(a, m); if (h[m]) { return j(null) } g.wE(m, !1, j) }, k) }, AJ: function(f, a, c) { var d = this.EQ(), e = this.AF(arguments); this.zJ(e[0], e[1], function(g) { if (g) { throw g } d.parentNode.removeChild(d); if (e[2]) { e[2]() } }) }, wE: function(f, a, c) { var d = document, e = b.ac("script"); e.async = a; this.ZF[f] = !0; b.Ma.ld.noCache && "string" === typeof f ? this.mG.test(f) ? e.src = f + "\x26_t\x3d" + (new Date - 0) : e.src = f + "?_t\x3d" + (new Date - 0) : e.src = f; b.Qa(e, "load", function() { e.parentNode.removeChild(e); this.removeEventListener("load", arguments.callee, !1); c() }, !1); b.Qa(e, "error", function() { e.parentNode.removeChild(e); c("Load " + f + " failed!") }, !1); d.body.appendChild(e) }, cG: function(f, a, c, d) { if (c >= a.length) { d && d() } else { var e = this; e.wE(b.path.join(f, a[c]), !1, function(g) { if (g) { return d(g) } e.cG(f, a, c + 1, d) }) } }, EQ: function() { var d = document, a = d.getElementById("cocos2d_loadJsImg"); if (!a) { a = b.ac("img"); b.GQ && (a.src = b.GQ); d = d.getElementById(b.Ma.ld.id); d.style.backgroundColor = "black"; d.parentNode.appendChild(a); var c = getComputedStyle ? getComputedStyle(d) : d.currentStyle; c || (c = { width: d.width, height: d.height }); a.style.left = d.offsetLeft + (parseFloat(c.width) - a.width) / 2 + "px"; a.style.top = d.offsetTop + (parseFloat(c.height) - a.height) / 2 + "px"; a.style.position = "absolute" } return a }, tv: function(e, a) { if (b.QF) { require("fs").v9(e, function(g, f) { g ? a(g) : a(null, f.toString()) }) } else { var c = this.cv(), d = "load " + e + " failed!"; c.open("GET", e, !0); /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ? (c.setRequestHeader("Accept-Charset", "utf-8"), c.onreadystatechange = function() { 4 === c.readyState && (200 === c.status ? a(null, c.responseText) : a(d)) }) : (c.overrideMimeType && c.overrideMimeType("text/plain; charset\x3dutf-8"), c.onload = function() { 4 === c.readyState && (200 === c.status ? a(null, c.responseText) : a(d)) }); c.send(null) } }, dG: function(c) { if (b.QF) { return require("fs").w9(c).toString() } var a = this.cv(); a.open("GET", c, !1); /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ? a.setRequestHeader("Accept-Charset", "utf-8") : a.overrideMimeType && a.overrideMimeType("text/plain; charset\x3dutf-8"); a.send(null); return 4 === !a.readyState || 200 !== a.status ? null : a.responseText }, iW: function(d, a) { var c = new XMLHttpRequest; c.open("GET", d, !0); c.responseType = "arraybuffer"; c.onload = function() { var e = c.response; e && (window.c8 = e); 4 === c.readyState && (200 === c.status ? a(null, c.response) : a("load " + d + " failed!")) }; c.send(null) }, IB: function(c, a) { this.tv(c, function(e, f) { if (e) { a(e) } else { try { var g = JSON.parse(f) } catch (d) { throw "parse json [" + c + "] failed : " + d } a(null, g) } }) }, mE: function(a) { return null != /(\.png)|(\.jpg)|(\.bmp)|(\.jpeg)|(\.gif)/.exec(a) }, Ah: function(d, e, f) { function g() { this.removeEventListener("error", g, !1); a.crossOrigin && "anonymous" === a.crossOrigin.toLowerCase() ? (k.Yf = !1, c.uc(d), b.S.Ah(d, k, f)) : "function" === typeof f && f("load image failed") } function h() { this.removeEventListener("load", h, !1); this.removeEventListener("error", g, !1); b.S.Vc[d] = a; f && f(null, a) } var k = { Yf: !0 }; void 0 !== f ? k.Yf = null === e.Yf ? k.Yf : e.Yf : void 0 !== e && (f = e); var a = this.De(d); if (a) { return f && f(null, a), a } a = new Image; k.Yf && "file://" !== location.origin && (a.crossOrigin = "Anonymous"); var c = this; b.Qa(a, "load", h); b.Qa(a, "error", g); a.src = d; return a }, FQ: function(f, g, a) { var c = this, d = null, e = f.type; e ? (e = "." + e.toLowerCase(), d = f.src ? f.src : f.name + e) : (d = f, e = b.path.Yj(d)); if (g = c.De(d)) { return a(null, g) } g = null; e && (g = c.du[e.toLowerCase()]); if (!g) { return b.error("loader for [" + e + "] not exists!"), a() } e = g.eB ? g.eB() : c.Jv; e = c.nV(e, d); b.Ma.ld.noCache && "string" === typeof e && (e = c.mG.test(e) ? e + ("\x26_t\x3d" + (new Date - 0)) : e + ("?_t\x3d" + (new Date - 0))); g.load(e, d, f, function(i, h) { i ? (b.log(i), c.Vc[d] = null, delete c.Vc[d], a()) : (c.Vc[d] = h, a(null, h)) }) }, mG: /\?/, nV: function(f, a) { var c = this.CQ, d = b.path; if (void 0 !== f && void 0 === a) { a = f; var e = d.Yj(a), e = e ? e.toLowerCase() : ""; f = (e = this.du[e]) ? e.eB ? e.eB() : this.Jv : this.Jv } a = b.path.join(f || "", a); if (a.match(/[\/(\\\\)]lang[\/(\\\\)]/i)) { if (c[a]) { return c[a] } d = d.Yj(a) || ""; a = c[a] = a.substring(0, a.length - d.length) + "_" + b.Z.language + d } return a }, load: function(f, a, c) { var d = this, e = arguments.length; if (0 === e) { throw "arguments error!" } 3 === e ? "function" === typeof a && (a = "function" === typeof c ? { lk: a, xl: c } : { xl: a, bT: c }) : 2 === e ? "function" === typeof a && (a = { xl: a }) : 1 === e && (a = {}); f instanceof Array || (f = [f]); e = new ea(f, 0, function(g, h, j, i) { d.FQ(g, h, function(n) { if (n) { return j(n) } var k = Array.prototype.slice.call(arguments, 1); a.lk && a.lk.call(a.Kba, k[0], i.size, i.XA); j(null, k[0]) }) }, a.xl, a.bT); e.Un(); return e }, IF: function(f, g) { var a = this.Ek, c = [], d; for (d in f) { var e = f[d]; a[d] = e; c.push(e) } this.load(c, g) }, U7: function(e, a) { var c = this, d = c.De(e); d ? c.IF(d.filenames, a) : c.load(e, function(g, f) { c.IF(f[0].filenames, a) }) }, Gh: function(e, a) { if (e && a) { if ("string" === typeof e) { return this.du[e.trim().toLowerCase()] = a } for (var c = 0, d = e.length; c < d; c++) { this.du["." + e[c].trim().toLowerCase()] = a } } }, De: function(a) { return this.Vc[a] || this.Vc[this.Ek[a]] }, uc: function(d) { var a = this.Vc, c = this.Ek; delete a[d]; delete a[c[d]]; delete c[d] }, D9: function() { var d = this.Vc, a = this.Ek, c; for (c in d) { delete d[c] } for (c in a) { delete a[c] } } }; b.YA = function() { var e = arguments, f = e.length; if (1 > f) { return "" } var g = e[0], h = !0; "object" === typeof g && (h = !1); for (var a = 1; a < f; ++a) { var c = e[a]; if (h) { for (;;) { var d = null; if ("number" === typeof c && (d = g.match(/(%d)|(%s)/))) { g = g.replace(/(%d)|(%s)/, c); break } g = (d = g.match(/%s/)) ? g.replace(/%s/, c) : g + (" " + c); break } } else { g += " " + c } } return g }; (function() { function f() { b.ka && b.Ma.Np && b.ka.dispatchEvent(b.Ma.Np); b.Ma.Sk && (window.cancelAnimationFrame(b.Ma.Sk), b.Ma.tz()) } function a() { b.ka && b.Ma.Mp && b.ka.dispatchEvent(b.Ma.Mp) } var c = window, d, e; b.Gi(document.hidden) ? b.Gi(document.mozHidden) ? b.Gi(document.msHidden) ? b.Gi(document.webkitHidden) || (d = "webkitHidden", e = "webkitvisibilitychange") : (d = "msHidden", e = "msvisibilitychange") : (d = "mozHidden", e = "mozvisibilitychange") : (d = "hidden", e = "visibilitychange"); d ? b.Qa(document, e, function() { document[d] ? a() : f() }, !1) : (b.Qa(c, "blur", a, !1), b.Qa(c, "focus", f, !1)); - 1 < navigator.userAgent.indexOf("MicroMessenger") && (c.onfocus = function() { f() }); "onpageshow" in window && "onpagehide" in window && (b.Qa(c, "pagehide", a, !1), b.Qa(c, "pageshow", f, !1)); e = c = null })(); b.log = b.warn = b.error = b.assert = function() {}; b.yI = function(f, g) { for (var a = ["webgl", "experimental-webgl", "webkit-3d", "moz-webgl"], c = null, d = 0; d < a.length; ++d) { try { c = f.getContext(a[d], g) } catch (e) {} if (c) { break } } return c }; b.tQ = function(y, a) { b.dc = 0; b.Lb = 1; b.Z = {}; var c = b.Z; c.gM = "en"; c.t_ = "zh"; c.v_ = "fr"; c.y_ = "it"; c.w_ = "de"; c.F_ = "es"; c.u_ = "du"; c.E_ = "ru"; c.A_ = "ko"; c.z_ = "ja"; c.x_ = "hu"; c.D_ = "pt"; c.s_ = "ar"; c.B_ = "no"; c.C_ = "pl"; c.dp = "iOS"; c.VC = "Android"; c.XC = "Windows"; c.X_ = "Marmalade"; c.WC = "Linux"; c.V_ = "Bada"; c.W_ = "Blackberry"; c.Cw = "OS X"; c.$_ = "WP8"; c.Z_ = "WINRT"; c.JM = "Unknown"; c.UD = 0; c.p_ = 1; c.mZ = 2; c.D0 = 3; c.I_ = 4; c.G_ = 5; c.sZ = 6; c.tZ = 7; c.H_ = 8; c.L_ = 9; c.b_ = 10; c.r0 = 11; c.c0 = 12; c.F0 = 13; c.E0 = 14; c.nM = 100; c.vL = 101; c.Sr = "wechat"; c.xC = "androidbrowser"; c.qk = "ie"; c.hw = "qqbrowser"; c.zC = "mqqbrowser"; c.Rr = "ucbrowser"; c.wC = "360browser"; c.yC = "baiduboxapp"; c.Qr = "baidubrowser"; c.vZ = "maxthon"; c.gw = "opera"; c.AC = "oupeng"; c.am = "miuibrowser"; c.Wi = "firefox"; c.rk = "safari"; c.Vi = "chrome"; c.cL = "liebao"; c.wZ = "qzone"; c.BC = "sogou"; c.dL = "unknown"; c.wJ = !1; var d = [c.Qr, c.gw, c.Wi, c.Vi, c.rk], e = [c.dp, c.XC, c.Cw, c.WC], f = [c.Qr, c.gw, c.Wi, c.Vi, c.yC, c.rk, c.Rr, c.hw, c.zC, c.qk], g = window, h = g.navigator, k = document, m = k.documentElement, n = h.userAgent.toLowerCase(); c.yh = -1 !== n.indexOf("mobile") || -1 !== n.indexOf("android"); c.platform = c.yh ? c.nM : c.vL; var p = h.language, p = (p = p ? p : h.browserLanguage) ? p.split("-")[0] : c.gM; c.language = p; var p = c.dL, s = n.match(/sogou|qzone|liebao|micromessenger|qqbrowser|ucbrowser|360 aphone|360browser|baiduboxapp|baidubrowser|maxthon|trident|oupeng|opera|miuibrowser|firefox/i) || n.match(/chrome|safari/i); s && 0 < s.length ? (p = s[0], "micromessenger" === p ? p = c.Sr : "safari" === p && n.match(/android.*applewebkit/) ? p = c.xC : "trident" === p ? p = c.qk : "360 aphone" === p && (p = c.wC)) : n.indexOf("iphone") && n.indexOf("mobile") && (p = "safari"); c.Sf = p; p = n.match(/(iPad|iPhone|iPod)/i) ? !0 : !1; n = n.match(/android/i) || h.platform.match(/android/i) ? !0 : !1; s = c.JM; - 1 !== h.appVersion.indexOf("Win") ? s = c.XC : p ? s = c.dp : -1 !== h.appVersion.indexOf("Mac") ? s = c.Cw : -1 !== h.appVersion.indexOf("X11") && -1 === h.appVersion.indexOf("Linux") ? s = c.Y_ : n ? s = c.VC : -1 !== h.appVersion.indexOf("Linux") && (s = c.WC); c.dk = s; c.y1 = -1 < f.indexOf(c.Sf); var f = parseInt(y[a.sr]), n = b.Lb, s = b.ac("Canvas"), r = b.tu = !0, r = p ? !window.WebGLRenderingContext || -1 === e.indexOf(c.dk) : !window.WebGLRenderingContext || -1 === d.indexOf(c.Sf) || -1 === e.indexOf(c.dk); if (1 === f || 0 === f && r || "file://" === location.origin) { n = b.dc } c.jP = function() { var o = document.createElement("canvas"); o.width = 1; o.height = 1; o = o.getContext("2d"); o.fillStyle = "#000"; o.fillRect(0, 0, 1, 1); o.globalCompositeOperation = "multiply"; var i = document.createElement("canvas"); i.width = 1; i.height = 1; var j = i.getContext("2d"); j.fillStyle = "#fff"; j.fillRect(0, 0, 1, 1); o.drawImage(i, 0, 0, 1, 1); return 0 === o.getImageData(0, 0, 1, 1).data[0] }; c.Xz = c.jP(); n !== b.Lb || g.WebGLRenderingContext && b.yI(s, { stencil: !0, preserveDrawingBuffer: !0 }) || (0 === f ? n = b.dc : b.tu = !1); if (n === b.dc) { try { s.getContext("2d") } catch (u) { b.tu = !1 } } b.ua = n; try { c.Yz = !!(g.AudioContext || g.webkitAudioContext || g.mozAudioContext) } catch (t) { c.Yz = !1 } try { var v = c.localStorage = g.localStorage; v.setItem("storage", ""); v.removeItem("storage"); v = null } catch (x) { "SECURITY_ERR" !== x.name && "QuotaExceededError" !== x.name || b.warn("Warning: localStorage isn't enabled. Please confirm browser cookie or privacy option"), c.localStorage = function() {} } d = c.CA = { canvas: !0 }; b.ua === b.Lb && (d.opengl = !0); if (void 0 !== m.ontouchstart || void 0 !== k.ontouchstart || h.msPointerEnabled) { d.touches = !0 } void 0 !== m.onmouseup && (d.mouse = !0); void 0 !== m.onkeyup && (d.keyboard = !0); if (g.DeviceMotionEvent || g.DeviceOrientationEvent) { d.accelerometer = !0 } c.u4 = function() {}; c.i3 = function() {}; c.a$ = function() {}; c.w2 = function() {}; c.g3 = function() { var i; i = "" + ("isMobile : " + this.yh + "\r\n"); i += "language : " + this.language + "\r\n"; i += "browserType : " + this.Sf + "\r\n"; i += "capabilities : " + JSON.stringify(this.CA) + "\r\n"; i += "os : " + this.dk + "\r\n"; i += "platform : " + this.platform + "\r\n"; b.log(i) }; c.y8 = function(i) { window.open(i) } }; b.S_ = 0; b.T_ = 1; b.Q_ = 2; b.R_ = 3; b.Nk = null; b.s = null; b.Oa = null; b.BP = null; b.fu = !1; b.gH = !1; b.FR = function(f) { var g, a; if (!b.gH) { b.gH = !0; var c = window, d = b.hb(f) || b.hb("#" + f), e; b.Ma.YG(); "CANVAS" === d.tagName ? (g = g || d.width, a = a || d.height, e = b.yl = b.ac("DIV"), f = b.Oa = d, f.parentNode.insertBefore(e, f), f.bI(e), e.setAttribute("id", "Cocos2dGameContainer")) : ("DIV" !== d.tagName && b.log("Warning: target element is not a DIV or CANVAS"), g = g || d.clientWidth, a = a || d.clientHeight, e = b.yl = d, f = b.Oa = b.hb(b.ac("CANVAS")), d.appendChild(f)); f.YH("gameCanvas"); f.setAttribute("width", g || 480); f.setAttribute("height", a || 320); f.setAttribute("tabindex", 99); f.style.outline = "none"; d = e.style; d.width = (g || 480) + "px"; d.height = (a || 320) + "px"; d.margin = "0 auto"; d.position = "relative"; d.overflow = "hidden"; e.top = "100%"; b.ua === b.Lb && (b.s = b.eca = b.yI(f, { stencil: !0, preserveDrawingBuffer: !0, antialias: !b.Z.yh, alpha: !1 })); b.s ? (c.gl = b.s, b.Nk = new b.GL(b.s), b.fu = !0, b.Ra.uQ(), b.Ge.$h()) : (b.s = new b.Vr(f.getContext("2d")), b.Nk = b.JC ? new b.JC(b.s) : null); b.BP = e; b.log(b.pw); b.qR(); b.Z.yh && (g = b.ac("style"), g.type = "text/css", document.body.appendChild(g), g.textContent = "body,canvas,div{ -moz-user-select: none;-webkit-user-select: none;-ms-user-select: none;-khtml-user-select: none;-webkit-tap-highlight-color:rgba(0,0,0,0);}"); b.view = b.nw.py(); b.uJ.OW(b.Oa); b.I = b.Ja.py(); b.I.Tv && b.I.Tv(b.view); b.N = b.I.Ea(); b.n$ = new b.dD; b.BW = new b.WM } }; b.oE = function() { if (b.ua !== b.Lb) { throw "This feature supports WebGL render mode only." } }; b.OF = !1; b.qR = function() { b.OF = !1; b.Oa.oncontextmenu = function() { if (!b.OF) { return !1 } } }; b.Ma = { tL: 0, rL: 1, MZ: 2, DC: 3, sL: 4, NZ: 5, qL: 6, qw: "game_on_hide", Zr: "game_on_show", Mp: null, Np: null, i1: [], rf: { UA: "engineDir", N2: "dependencies", Oq: "debugMode", hY: "showFPS", Qq: "frameRate", id: "id", sr: "renderMode", $V: "jsList", cT: "classReleaseMode" }, BG: !1, bu: !1, td: !0, Sk: null, Iy: null, vF: null, ld: null, LB: null, x8: null, W$: function(a) { this.ld[this.rf.Qq] = a; this.Sk && window.cancelAnimationFrame(this.Sk); this.td = !0; this.YG(); this.tz() }, YG: function() { this.Iy = new Date; this.vF = 1000 / b.Ma.ld[b.Ma.rf.Qq]; b.Z.dk === b.Z.dp && b.Z.Sf === b.Z.Sr || 60 !== b.Ma.ld[b.Ma.rf.Qq] ? (window.WB = this.pH, window.cancelAnimationFrame = this.yE) : (window.WB = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || this.pH, window.cancelAnimationFrame = window.cancelAnimationFrame || window.cancelRequestAnimationFrame || window.msCancelRequestAnimationFrame || window.mozCancelRequestAnimationFrame || window.oCancelRequestAnimationFrame || window.webkitCancelRequestAnimationFrame || window.msCancelAnimationFrame || window.mozCancelAnimationFrame || window.webkitCancelAnimationFrame || window.oCancelAnimationFrame || this.yE) }, pH: function(e) { var a = (new Date).getTime(), c = Math.max(0, b.Ma.vF - (a - b.Ma.Iy)), d = window.setTimeout(function() { e() }, c); b.Ma.Iy = a + c; return d }, yE: function(a) { window.clearTimeout(a) }, tz: function() { var d = this, a, c = b.I; c.tX(d.ld[d.rf.hY]); a = function() { d.td || (c.mW(), d.Sk && window.cancelAnimationFrame(d.Sk), d.Sk = window.WB(a)) }; window.WB(a); d.td = !1 }, Z9: function() { b.I.LJ(0); b.Fc && b.Fc.end(); b.Ma.LB() }, eX: function(d) { function a() { d && (c.ld[c.rf.id] = d); c.BG || c.HW(function() { c.bu = !0 }); b.tu && (c.kP = setInterval(function() { c.bu && (b.FR(c.ld[c.rf.id]), c.tz(), c.Mp = c.Mp || new b.vk(c.qw), c.Mp.setUserData(c), c.Np = c.Np || new b.vk(c.Zr), c.Np.setUserData(c), c.LB(), clearInterval(c.kP)) }, 10)) } var c = this; document.body ? a() : b.Qa(window, "load", function() { this.removeEventListener("load", arguments.callee, !1); a() }, !1) }, mQ: function() { function g(i) { i[h.UA] = i[h.UA] || "frameworks/cocos2d-html5"; null == i[h.Oq] && (i[h.Oq] = 0); i[h.Qq] = i[h.Qq] || 60; null == i[h.sr] && (i[h.sr] = 1); return i } var h = this.rf; if (document.ccConfig) { this.ld = g(document.ccConfig) } else { try { for (var k = document.getElementsByTagName("script"), m = 0; m < k.length; m++) { var n = k[m].getAttribute("cocos"); if ("" === n || n) { break } } var a, c, d; if (m < k.length) { if (a = k[m].src) { d = /(.*)\//.exec(a)[0], b.S.Jv = d, a = b.path.join(d, "project.json") } c = b.S.dG(a) } c || (c = b.S.dG("project.json")); var e = JSON.parse(c); this.ld = g(e || {}) } catch (f) { b.log("Failed to read or parse project.json"), this.ld = g({}) } } b.tQ(this.ld, h) }, zQ: {}, CF: function(g, h, k) { var m = this.zQ; if (m[h]) { return null } k = k || ""; var n = [], a = g[h]; if (!a) { throw "can not find module [" + h + "]" } h = b.path; for (var c = 0, d = a.length; c < d; c++) { var e = a[c]; if (!m[e]) { var f = h.Yj(e); f ? ".js" === f.toLowerCase() && n.push(h.join(k, e)) : (f = this.CF(g, e, k)) && (n = n.concat(f)); m[e] = 1 } } return n }, HW: function(e) { var f = this, g = f.ld, h = f.rf, a = g[h.UA], c = b.S; if (!b.tu) { throw "The renderer doesn't support the renderMode " + g[h.sr] } f.BG = !0; var d = g[h.$V] || []; b.Ia ? c.AJ("", d, function(i) { if (i) { throw i } f.bu = !0; e && e() }) : (h = b.path.join(a, "moduleConfig.json"), c.IB(h, function(i, m) { if (i) { throw i } var r = g.modules || [], k = m.module, n = []; b.ua === b.Lb ? r.splice(0, 0, "shaders") : 0 > r.indexOf("core") && r.splice(0, 0, "core"); for (var p = 0, o = r.length; p < o; p++) { var j = f.CF(k, r[p], a); j && (n = n.concat(j)) } n = n.concat(d); b.S.AJ(n, function(s) { if (s) { throw s } f.bu = !0; e && e() }) })) } }; b.Ma.mQ(); Function.prototype.bind = Function.prototype.bind || function(f) { function a() { return e.apply(this instanceof c && f ? this : f, d.concat(Array.prototype.slice.call(arguments))) } function c() {} if (!b.nd(this)) { throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable") } var d = Array.prototype.slice.call(arguments, 1), e = this; c.prototype = this.prototype; a.prototype = new c; return a }; b.j = { uC: "cc.ActionManager.addAction(): action must be non-null", $K: "cocos2d: removeAction: Target not found", nZ: "cc.ActionManager.removeActionByTag(): an invalid tag", oZ: "cc.ActionManager.removeActionByTag(): target must be non-null", YK: "cc.ActionManager.getActionByTag(): an invalid tag", ZK: "cocos2d : getActionByTag(tag \x3d %s): Action not found", gT: "cocos2d: **** WARNING **** CC_ENABLE_PROFILERS is defined. Disable it when you finish profiling (from ccConfig.js)", hT: "Expected 'data' dict, but not found. Config file: %s", iT: "Please load the resource first : %s", BL: "cocos2d: Director: Error in gettimeofday", CL: "cocos2d: Director: unrecognized projection", a_: "cocos2d: Director: unrecognized projection", AL: "cocos2d: Director: Error in gettimeofday", zL: "running scene should not null", IC: "the scene should not null", Hq: "element type is wrong!", sN: "CCSheduler#scheduleCallback. Callback already scheduled. Updating interval from:%s to %s", i0: "cc.scheduler.scheduleCallbackForTarget(): callback_fn should be non-null.", tN: "cc.scheduler.scheduleCallbackForTarget(): target should be non-null.", qN: "cc.Scheduler.pauseTarget():target should be non-null", rN: "cc.Scheduler.resumeTarget():target should be non-null", pN: "cc.Scheduler.isTargetPaused():target should be non-null", wM: "getZOrder is deprecated. Please use getLocalZOrder instead.", GM: "setZOrder is deprecated. Please use setLocalZOrder instead.", uM: "RotationX !\x3d RotationY. Don't know which one to return", vM: "ScaleX !\x3d ScaleY. Don't know which one to return", M_: "An Node can't be added as a child of itself.", N_: "child already added. It can't be added again", rM: "child must be non-null", AM: "removeFromParentAndCleanup is deprecated. Use removeFromParent instead", sM: "boundingBox is deprecated. Use getBoundingBox instead", yM: "argument tag is an invalid tag", zM: "cocos2d: removeChildByTag(tag \x3d %s): child not found!", P_: "removeAllChildrenWithCleanup is deprecated. Use removeAllChildren instead", HM: "cc.Node.stopActionBy(): argument tag an invalid tag", tM: "cc.Node.getActionByTag(): argument tag is an invalid tag", CM: "resumeSchedulerAndActions is deprecated, please use resume instead.", xM: "pauseSchedulerAndActions is deprecated, please use pause instead.", qM: "Unknown callback function", BM: "child must be non-null", DM: "cc.Node.runAction(): action must be non-null", EM: "callback function must be non-null", FM: "interval must be positive", O_: "cocos2d: Could not initialize cc.AtlasNode. Invalid Texture.", aL: "cc.AtlasNode.updateAtlasValues(): Shall be overridden in subclasses", rZ: "", vC: "cocos2d: Could not initialize cc.AtlasNode. Invalid Texture.", PO: "cc._EventListenerKeyboard.checkAvailable(): Invalid EventListenerKeyboard!", RO: "cc._EventListenerTouchOneByOne.checkAvailable(): Invalid EventListenerTouchOneByOne!", QO: "cc._EventListenerTouchAllAtOnce.checkAvailable(): Invalid EventListenerTouchAllAtOnce!", OO: "cc._EventListenerAcceleration.checkAvailable(): _onAccelerationEvent must be non-nil", OL: "Invalid parameter.", Ts: "Don't call this method if the event is for touch.", VT: "Invalid scene graph priority!", WT: "0 priority is forbidden for fixed priority since it's used for scene graph based priority.", $T: "Invalid listener type!", aU: "Can't set fixed priority with scene graph based listener.", XT: "Invalid parameters.", YT: "listener must be a cc.EventListener object when adding a fixed priority listener", ZT: "The listener has been registered, please don't register it again.", jM: "parameters should not be ending with null in Javascript", kM: "Invalid index in MultiplexLayer switchTo message", lM: "Invalid index in MultiplexLayer switchTo message", iM: "cc.Layer.addLayer(): layer should be non-null", HL: "Resolution not valid", IL: "should set resolutionPolicy", MV: "The touches is more than MAX_TOUCHES, nUnusedIndex \x3d %s", wo: "cc.swap is being modified from original macro, please check usage", Pn: "WebGL error %s", GS: "cocos2d: cc.AnimationCache: No animations were found in provided dictionary.", HS: "cc.AnimationCache. Invalid animation format", OS: "cc.AnimationCache.addAnimations(): File could not be found", IS: "cocos2d: cc.AnimationCache: Animation '%s' found in dictionary without any frames - cannot add to animation cache.", JS: "cocos2d: cc.AnimationCache: Animation '%s' refers to frame '%s' which is not currently in the cc.SpriteFrameCache. This frame will not be added to the animation.", KS: "cocos2d: cc.AnimationCache: None of the frames for animation '%s' were found in the cc.SpriteFrameCache. Animation is not being added to the Animation Cache.", LS: "cocos2d: cc.AnimationCache: An animation in your dictionary refers to a frame which is not in the cc.SpriteFrameCache. Some or all of the frames for the animation '%s' may be missing.", MS: "cocos2d: CCAnimationCache: Animation '%s' found in dictionary without any frames - cannot add to animation cache.", NS: "cocos2d: cc.AnimationCache: Animation '%s' refers to frame '%s' which is not currently in the cc.SpriteFrameCache. This frame will not be added to the animation.", PS: "cc.AnimationCache.addAnimations(): Invalid texture file name", KN: "cc.Sprite.reorderChild(): this child is not in children list", FN: "cc.Sprite.ignoreAnchorPointForPosition(): it is invalid in cc.Sprite when using SpriteBatchNode", NN: "cc.Sprite.setDisplayFrameWithAnimationName(): Frame not found", ON: "cc.Sprite.setDisplayFrameWithAnimationName(): Invalid frame index", MN: "setDisplayFrame is deprecated, please use setSpriteFrame instead.", BN: "cc.Sprite._updateBlendFunc(): _updateBlendFunc doesn't work when the sprite is rendered using a cc.CCSpriteBatchNode", HN: "cc.Sprite.initWithSpriteFrame(): spriteFrame should be non-null", IN: "cc.Sprite.initWithSpriteFrameName(): spriteFrameName should be non-null", JN: " is null, please check.", GN: "cc.Sprite.initWithFile(): filename should be non-null", PN: "cc.Sprite.setDisplayFrameWithAnimationName(): animationName must be non-null", LN: "cc.Sprite.reorderChild(): child should be non-null", CN: "cc.Sprite.addChild(): cc.Sprite only supports cc.Sprites as children when using cc.SpriteBatchNode", DN: "cc.Sprite.addChild(): cc.Sprite only supports a sprite using same texture as children when using cc.SpriteBatchNode", k0: "cc.Sprite.addChild(): child should be non-null", RN: "cc.Sprite.texture setter: Batched sprites should use the same texture as the batchnode", o0: "cc.SpriteBatchNode.updateQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children", m0: "cc.SpriteBatchNode.insertQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children", jD: "cc.SpriteBatchNode.addChild(): cc.SpriteBatchNode only supports cc.Sprites as children", EN: "cc.SpriteBatchNode.addChild(): cc.Sprite is not using the same texture", l0: "Sprite.initWithTexture(): Argument must be non-nil ", QN: "Invalid spriteFrameName", SN: "Invalid argument: cc.Sprite.texture setter expects a CCTexture2D.", p0: "cc.SpriteBatchNode.updateQuadFromSprite(): sprite should be non-null", n0: "cc.SpriteBatchNode.insertQuadFromSprite(): sprite should be non-null", uN: "cc.SpriteBatchNode.addQuadFromSprite(): SpriteBatchNode only supports cc.Sprites as children", wN: "cocos2d: CCSpriteBatchNode: resizing TextureAtlas capacity from %s to %s.", xN: "cocos2d: WARNING: Not enough memory to resize the atlas", zN: "cc.SpriteBatchNode.addChild(): Child doesn't belong to Sprite", yN: "cc.SpriteBatchNode.addChild(): sprite batch node should contain the child", vN: "cc.SpriteBatchNode.addQuadFromSprite(): child should be non-null", AN: "cc.SpriteBatchNode.addChild(): child should be non-null", pY: "cocos2d: WARNING: originalWidth/Height not found on the cc.SpriteFrame. AnchorPoint won't work as expected. Regenrate the .plist", qY: "cocos2d: WARNING: an alias with name %s already exists", oY: "cocos2d: WARNING: Sprite frame: %s has already been added by another source, please fix name conflit", mba: "cocos2d: cc.SpriteFrameCahce: Frame %s not found", HK: "Please load the resource first : %s", IK: "cc.SpriteFrameCache.addSpriteFrames(): plist should be non-null", rY: "Argument must be non-nil", kL: "cc.SpriteBatchNode.updateQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children", iL: "cc.SpriteBatchNode.insertQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children", FZ: "cc.SpriteBatchNode.addChild(): cc.SpriteBatchNode only supports cc.Sprites as children", hL: "Sprite.initWithTexture(): Argument must be non-nil ", fL: "cc.Sprite.addChild(): child should be non-null", GZ: "Invalid spriteFrameName", HZ: "Invalid argument: cc.Sprite texture setter expects a CCTexture2D.", lL: "cc.SpriteBatchNode.updateQuadFromSprite(): sprite should be non-null", jL: "cc.SpriteBatchNode.insertQuadFromSprite(): sprite should be non-null", gL: "cc.SpriteBatchNode.addChild(): child should be non-null", kO: "cocos2d: Could not open file: %s", qD: "cc.TextureAtlas.insertQuad(): invalid totalQuads", lO: "cc.TextureAtlas.initWithTexture():texture should be non-null", vO: "cc.TextureAtlas.updateQuad(): quad should be non-null", wO: "cc.TextureAtlas.updateQuad(): Invalid index", oO: "cc.TextureAtlas.insertQuad(): Invalid index", pO: "cc.TextureAtlas.insertQuad(): Invalid index + amount", mO: "cc.TextureAtlas.insertQuadFromIndex(): Invalid newIndex", nO: "cc.TextureAtlas.insertQuadFromIndex(): Invalid fromIndex", tO: "cc.TextureAtlas.removeQuadAtIndex(): Invalid index", uO: "cc.TextureAtlas.removeQuadsAtIndex(): index + amount out of bounds", qO: "cc.TextureAtlas.moveQuadsFromIndex(): move is out of bounds", rO: "cc.TextureAtlas.moveQuadsFromIndex(): Invalid newIndex", sO: "cc.TextureAtlas.moveQuadsFromIndex(): Invalid oldIndex", FY: "TextureCache:addPVRTCImage does not support on HTML5", DY: "TextureCache:addPVRTCImage does not support on HTML5", KY: "textureForKey is deprecated. Please use getTextureForKey instead.", EY: "addPVRImage does not support on HTML5", GY: "cocos2d: Couldn't add UIImage in TextureCache", IY: "cocos2d: '%s' id\x3d%s %s x %s", MK: "cocos2d: '%s' id\x3d HTMLCanvasElement %s x %s", JY: "cocos2d: TextureCache dumpDebugInfo: %s textures, HTMLCanvasElement for %s KB (%s MB)", HY: "cc.Texture.addUIImage(): image should be non-null", bO: "initWithETCFile does not support on HTML5", fO: "initWithPVRFile does not support on HTML5", hO: "initWithPVRTCData does not support on HTML5", YN: "cc.Texture.addImage(): path should be non-null", dO: "cocos2d: cc.Texture2D. Can't create Texture. UIImage is nil", eO: "cocos2d: WARNING: Image (%s x %s) is bigger than the supported %s x %s", jO: "initWithString isn't supported on cocos2d-html5", cO: "initWithETCFile does not support on HTML5", gO: "initWithPVRFile does not support on HTML5", iO: "initWithPVRTCData does not support on HTML5", $N: "bitsPerPixelForFormat: %s, cannot give useful result, it's a illegal pixel format", XN: "cocos2d: cc.Texture2D: Using RGB565 texture since image has no alpha", ZN: "cc.Texture.addImage(): path should be non-null", aO: "NSInternalInconsistencyException", Og: "Missing file: %s", OJ: "cc.radiansToDegress() should be called cc.radiansToDegrees()", Rw: "Rect width exceeds maximum margin: %s", Qw: "Rect height exceeds maximum margin: %s", PL: "If program goes here, there should be event in dispatch.", QL: "_inDispatch should be 1 here." }; b.IQ = function(e) { if (b.Oa) { var a = b.HQ, c = document; if (!a) { var d = c.createElement("Div"), a = d.style; d.setAttribute("id", "logInfoDiv"); b.Oa.parentNode.appendChild(d); d.setAttribute("width", "200"); d.setAttribute("height", b.Oa.height); a.zIndex = "99999"; a.position = "absolute"; a.top = "0"; a.left = "0"; a = b.HQ = c.createElement("textarea"); c = a.style; a.setAttribute("rows", "20"); a.setAttribute("cols", "30"); a.setAttribute("disabled", !0); d.appendChild(a); c.backgroundColor = "transparent"; c.borderBottom = "1px solid #cccccc"; c.borderRightWidth = "0px"; c.borderLeftWidth = "0px"; c.borderTopWidth = "0px"; c.borderTopStyle = "none"; c.borderRightStyle = "none"; c.borderLeftStyle = "none"; c.padding = "0px"; c.margin = 0 } a.value = a.value + e + "\r\n"; a.scrollTop = a.scrollHeight } }; b.tF = function(c) { if (b.ar(c)) { try { return JSON.stringify(c) } catch (a) { return "" } } else { return c } }; b.nQ = function() { var d = b.Ma.ld[b.Ma.rf.Oq], a = b.Ma; if (d !== a.tL) { var c; d > a.DC ? (c = b.IQ.bind(b), b.error = function() { c("ERROR : " + b.YA.apply(b, arguments)) }, b.assert = function(g, e) { if (!g && e) { for (var f = 2; f < arguments.length; f++) { e = e.replace(/(%s)|(%d)/, b.tF(arguments[f])) } c("Assert: " + e) } }, d !== a.qL && (b.warn = function() { c("WARN : " + b.YA.apply(b, arguments)) }), d === a.sL && (b.log = function() { c(b.YA.apply(b, arguments)) })) : console && console.log.apply && (b.error = function() { return console.error.apply(console, arguments) }, b.assert = function(g, e) { if (!g && e) { for (var f = 2; f < arguments.length; f++) { e = e.replace(/(%s)|(%d)/, b.tF(arguments[f])) } throw e } }, d !== a.DC && (b.warn = function() { return console.warn.apply(console, arguments) }), d === a.rL && (b.log = function() { return console.log.apply(console, arguments) })) } }; b.nQ(); b.S.hW = function(f, a) { var c = this, d = this.cv(), e = "load " + f + " failed!"; d.open("GET", f, !0); /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ? (d.setRequestHeader("Accept-Charset", "x-user-defined"), d.onreadystatechange = function() { if (4 === d.readyState && 200 === d.status) { var g = b.tE(d.responseBody); a(null, c.su(g)) } else { a(e) } }) : (d.overrideMimeType && d.overrideMimeType("text/plain; charset\x3dx-user-defined"), d.onload = function() { 4 === d.readyState && 200 === d.status ? a(null, c.su(d.responseText)) : a(e) }); d.send(null) }; b.S.su = function(d) { if (!d) { return null } for (var a = new Uint8Array(d.length), c = 0; c < d.length; c++) { a[c] = d.charCodeAt(c) & 255 } return a }; b.S.V7 = function(d) { var a = this.cv(), c = "load " + d + " failed!"; a.open("GET", d, !1); d = null; if (/msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent)) { a.setRequestHeader("Accept-Charset", "x-user-defined"); a.send(null); if (200 !== a.status) { return b.log(c), null }(a = b.tE(a.responseBody)) && (d = this.su(a)) } else { a.overrideMimeType && a.overrideMimeType("text/plain; charset\x3dx-user-defined"); a.send(null); if (200 !== a.status) { return b.log(c), null } d = this.su(a.responseText) } return d }; var Uint8Array = Uint8Array || Array; if (/msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent)) { var fa = b.ac("script"); fa.type = "text/vbscript"; fa.textContent = '\x3c!-- IEBinaryToArray_ByteStr --\x3e\r\nFunction IEBinaryToArray_ByteStr(Binary)\r\n IEBinaryToArray_ByteStr \x3d CStr(Binary)\r\nEnd Function\r\nFunction IEBinaryToArray_ByteStr_Last(Binary)\r\n Dim lastIndex\r\n lastIndex \x3d LenB(Binary)\r\n if lastIndex mod 2 Then\r\n IEBinaryToArray_ByteStr_Last \x3d Chr( AscB( MidB( Binary, lastIndex, 1 ) ) )\r\n Else\r\n IEBinaryToArray_ByteStr_Last \x3d ""\r\n End If\r\nEnd Function\r\n'; document.body.appendChild(fa); b.tE = function(e) { for (var a = {}, c = 0; 256 > c; c++) { for (var d = 0; 256 > d; d++) { a[String.fromCharCode(c + 256 * d)] = String.fromCharCode(c) + String.fromCharCode(d) } } c = IEBinaryToArray_ByteStr(e); e = IEBinaryToArray_ByteStr_Last(e); return c.replace(/[\s\S]/g, function(f) { return a[f] }) + e } } b = b || {}; b.iG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAA8CAYAAADc3IdaAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RUE0MDhDRkJEOTBEMTFFNUFEMTY4NDc1NjkyNTJCRjEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RUE0MDhDRkNEOTBEMTFFNUFEMTY4NDc1NjkyNTJCRjEiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpFQTQwOENGOUQ5MEQxMUU1QUQxNjg0NzU2OTI1MkJGMSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpFQTQwOENGQUQ5MEQxMUU1QUQxNjg0NzU2OTI1MkJGMSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Phgsdn8AAACwSURBVHja7NRBEQAACMMwwL/noWN3iYQ+ukkGoMFJABgWgGEBhgVgWACGBRgWgGEBGBZgWACGBWBYgGEBGBaAYQGGBWBYAIYFGBaAYQEYFmBYAIYFYFiAYQEYFoBhAYYFYFiAYQEYFoBhAYYFYFgAhgUYFoBhARgWYFgAhgVgWIBhARgWgGEBhgVgWACGBRgWgGEBGBZgWACGBWBYgGEBGBaAYQGGBWBYgGEBdHgBBgBpUgN1U79AxAAAAABJRU5ErkJggg=="; b.eG = "data:image/PEG;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAA8AAD/4QMsaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjUtYzAxNCA3OS4xNTE0ODEsIDIwMTMvMDMvMTMtMTI6MDk6MTUgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDQyAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpDOTczODY2RUQxRjExMUU0QTdGRDk1NkE2RjRFNEVCRiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpDOTczODY2RkQxRjExMUU0QTdGRDk1NkE2RjRFNEVCRiI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkM5NzM4NjZDRDFGMTExRTRBN0ZEOTU2QTZGNEU0RUJGIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkM5NzM4NjZERDFGMTExRTRBN0ZEOTU2QTZGNEU0RUJGIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+/+4ADkFkb2JlAGTAAAAAAf/bAIQABgQEBAUEBgUFBgkGBQYJCwgGBggLDAoKCwoKDBAMDAwMDAwQDA4PEA8ODBMTFBQTExwbGxscHx8fHx8fHx8fHwEHBwcNDA0YEBAYGhURFRofHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8f/8AAEQgAtAC0AwERAAIRAQMRAf/EAaIAAAAHAQEBAQEAAAAAAAAAAAQFAwIGAQAHCAkKCwEAAgIDAQEBAQEAAAAAAAAAAQACAwQFBgcICQoLEAACAQMDAgQCBgcDBAIGAnMBAgMRBAAFIRIxQVEGE2EicYEUMpGhBxWxQiPBUtHhMxZi8CRygvElQzRTkqKyY3PCNUQnk6OzNhdUZHTD0uIIJoMJChgZhJRFRqS0VtNVKBry4/PE1OT0ZXWFlaW1xdXl9WZ2hpamtsbW5vY3R1dnd4eXp7fH1+f3OEhYaHiImKi4yNjo+Ck5SVlpeYmZqbnJ2en5KjpKWmp6ipqqusra6voRAAICAQIDBQUEBQYECAMDbQEAAhEDBCESMUEFURNhIgZxgZEyobHwFMHR4SNCFVJicvEzJDRDghaSUyWiY7LCB3PSNeJEgxdUkwgJChgZJjZFGidkdFU38qOzwygp0+PzhJSktMTU5PRldYWVpbXF1eX1RlZmdoaWprbG1ub2R1dnd4eXp7fH1+f3OEhYaHiImKi4yNjo+DlJWWl5iZmpucnZ6fkqOkpaanqKmqq6ytrq+v/aAAwDAQACEQMRAD8A4fd3ixERqR6p336AeOWY4WglDLK5k/etVq9K7ZliIDWSiYgySBwSRWvvUb1ybWUytp39TmzFixqxPvvk4tUgmklt9YtfUK1jLFQ3+UADTf2yR3abIKUpC0MjI5NPD8O2VU2mWzIdHtmmZYq1SoIH9MuiLdZqs3CLek+VPId1fsrQwEgEc26KvzY7ZkERiLk8pn1WbPIxxi/uD1PSvJGkadGJrwrKV3o3wxD/AJqymepkdo7NmLsqEBx55cXv2imE3mC3hIjtYeca7VPwLTwUAYx0xPMsM/beOB4cceIfIfBttT0a9UJewgcunqqGH0MMHgzj9LYO0tLmFZRV/wA4bfNA3nkbQb9S9q/pE9ChEifcTX8cI1Mo7SCy7Hwz9WKXD7jYYpqn5W3qlmgVbhOv7s0b/gTTLI54Hns48tJq8X0+seXP5MJ1fyVdROUkhZGB2VlKn8ct4ARsnH2vLGamDE+bHNQ8uXSwlWJ/djjGtKmhNSB4da5WYEO4wdrRl1Se60yVLcq6MGrsdgKe+VkbOzx62MuqUmwJLBgaMCAK03+nKhFy45wuW3OyMSI12HcKO9B74gNgyhq4rSkSmrdGP8o6bU2yZPc2CS6qRAFSxVQOQOxr3p128MjdIEt1CNQ7tIx/d7lQd9/lgq2a2WyVqmNlJ6kL8q9Mpy4AeTOOUjmgvTfnwp8VaUzB4TddXK4hV9GPvIZZWlJHxsajuAOlRmVEbKVeOSrmq7noB0HiKHJ2wR8DUoBuOxP9MlbVJHW4VD6q15AbbVFemTiGslMbST0yCSGQ9QK7Dv4ZMNUgmNzpyXMYljoT9oH260ywwtoM6T3yppzPMgI3Wn3ZPFj3ec7Z1HDEvovQoBpHlaNqUkKerxPd5Ps1+imU5PXloONpz+W0fGfqri+MuSEjt9U1WTmaulf7xto1+X9mZJnjxB02PBqtabO47z9ITVNM0nTI/rF9KrMP2pNlr/kr3zFlmnkNB3eLs7TaQceUgnz5fAIcecNAmkMMyERdFd0BUj5CpH3Y/lcg3HNj/L2lyHhmDw+cdv2ImLTtFvP32n3Hpv15QP0+a9Rg8bJHaQv3tseztLl9WGXCf6B/QvNvr1t9iSO9jH7L/C/3/wBuDixS6cLPwdbi+kxyx89pLJdVtXX0dTtGirsRKvNP1ZIYTzgba5dpQ+nPCUP6wsIC68n+WNUQtb0jY/75YEfSjVph/MZI7S+1h/JmlzC8Rr+qf0MV1j8p5mBNq0c4/l+w33Nt+OWDUwPPZxpdm6rF9EhP7CwbVvy+vLQlZbdoj1BZSPuPTLOCMhsWI7Ty4jWSJj72P3PlZ41ckFWp8Pw1rQ75E4qdlg7XjLqkk2kXCszshqcpILtMetEuqW3VvIZOPGvHY9d8iXNhnCxLZl6VrQU+jvhDaMoVfR9NORBqAf8AbwJE7Q/o/wCketw+DjSld/CuR8L1cXk38XopiISUKyrstQWpsK/MZWLcvicp+Lf4WPf3xJQSjICF2b7PtvhAaymVs+w68SRQ98k0yTC3SgLqwXj8VDXfem3y98nEsCU90mb4wrVIbx2oT4DL4ycHUSei+SdEFxqEESjaVgD7Cvxfhl4lwxJeL18vHyxx95+x7Jqiiaey09RRJG5yL/kJ2/XmFhNAy7nZdoR8SePB0kbP9UIfzNr7aUI7a1RRIyciT0QVoKLjpsIncpckds9qHTGOLEBxEfL4PONW1y5uJGklkaV/5ia/QPDMviERQdBDTZM0uLITIsfm1eVX3NMp8R2I7NiQqW3maSNwwchhuGBofoIyYzdC0T7Lo3HYsp0r8ytThorTiZB+zKOW3+ts344DixyHKvc2Q1eswdeMf0v182W2H5iaXcqEvIDHy6laSJ9xocpOkPOJtz8fb8D6c0CP9kEzit/LWpkPZyok3Ywtwcf7A/0yJnlhsftbhpdDqTxYyBL+iaPy/YrGx1y2/wB57lbqMdI5xRqfP+3I+JjlzFe5sOk1mL+7yDJHunz+a19XeIGPUrJ4lPVgBJGfvw+CD9BBYy7TlAVqMcojv+qP4+aCn8u+VNWB9JUSQ94Twb/gDt+GHxcsNi1DRaLU7wIEv6Jo/L9jG9W/KfmGNnKkleiuODfeKjLY6qJ5hx59j58Z/dzEvI7MF1f8tb6zJMtq8Y/mIqv/AAQqMsAhLkWk6vUYP7yBH3fNjlz5UlhBIU+2A4qczB2xGXVI7vSplYlgQg7Ab+1a5Dhp3WDWRl1Qf1dvU/GtO2BzfGFMJiIVASQodeQAINd6bgVpTwPzzGDtSrJZwtKBI3ppsWcLyOw68a7/AH40x4nQDirLKtaDZtqg1/GtMnAd6bRNuSlKCqdTTaowNck+0uaVZopYmHOM843ahAYbioaqnLI7uNPZPLCxrcIFPNWIJcCm7bnb2O2WCO7qdXmqL3D8rtLo73DCohTih/yn2/UDktTKoAd7znZePxNRKfSO3xP7Ga6cBc6xd3XVIQIIj+vMfL6cYHfu7LQjxdVkydI+gfpYF5u1H61qdzKDVA3BD/kp8I/VmZCPBjAedzz/ADGrnMcroe4bMLvZnDFuRB70yol3mnxJFcuSxNa+OVkOyhjCAaRhv+ORAbPDVLe84upc0SvxU60ywNctOExh1owykK3NaniT4ZITpwsugiUxsvMkoYEmm/XJjOXVZ+yhdhl2kfmBqkAAW5LoP2JfjX8d/wAcEoY5cwwhn1eD6ZkjuO7LtO/Ma2lAW8t6V6vEaj/gW/rlMtHe8S5+H2kI2zQ/0u/2H9aaxyeVdVoY3jWY9h+6evyNAcrvNj93zckDs7WcuHi8vTJEforVbYVsr0unaG4HIffvg8aEvqj8m7+TtTi/ucvEP5s9/tWnVL+3qNQsGCdDLD8aU9xv+vD4MZfTL5sT2hnxf3+KVd8NwhZtN8pavXkkayt3X9y9flsDkuLLj/Ftfh6DVcuES/0smIecPy2trbT5L21cyxoRzjdRyUH9qo67+2W4tQJnhI3cTVdnz0kfEhIygOYPN5L+iJP0l6XHbp02yzg3pyfz48HieQRI3GgH3ePz8MwQ9vaPs5X5cCdyN133HUjJwFsCEYlsJhwQcj/KKE/RTJcNtZlS0WrQgEcuYNPSIPQDrXERSJAozTyVeoqKfbQ/PpiHHynZ6F5ZthMFf0/hrxr4HrSmZWOLy3aubhiXvXle3XS/LHrkUd1aY/Tsg/VmPn9eWvg1dnf4PozlPMgy/UjIpDpnlqS4baVkaSvcvJsv6xkZ/vMtdOXybtPI6XQGZ+ogn/OlyeXahMVqK1B65mZTZef7NxUEgv5K8q7n28cpemwhJLteI27iv35EubFLJe/b3r4ZBuiohmJrTY/ThDOlvqlSD+rIksDFEQTsaA7b/RgtqljTO1uT/N8skC4mTACnNpfOKfFtlgm67LowU6tdQagqdstjlLqs3ZwLIdN8yana09C5cL/Ix5L9zVxlGEvqDXjzarT/AN3M+47j7WTWPnyUAC7tw/i8R4n/AIE7fjlEtED9Jdlg9qJw2zQ+Mf1FMtdsba705NStFFeIclRTlGfEeK5DTZDGfBL8Fze2tFjz6cajEN6v3x/WHeXLqK7spdOuPjCqQFP7UTbEfRXHV4zGXEPwU+z+rGbCcE9+EfOJ/UwP/BT/AOL/ANH0PHlX1Kf7q68/+B/HMrx48Hifi3S/kMn5j8r0vn/R7/l9r5V0iD61eC3DhI+JYu/YD5V3+WYAfT8hoWjXgEEzRc0Yqac1IcHYdCCfHJA0WJOyMsp7q0uUnt3KToeSyDf4vbJgkNZKZG6triKBRCUuRX6xJWvIkmlBTbbr45aZW1ysKkWnEOGjND2I23GDgLi5cuz0byJpck91DCB+8kcJ9JNDmRjPCCXjO1ZHLkGMfxGnuOrRgxWemxbCZ1WnhHGMw8J5yPR2XaUAY48Ef45Af5sUB57vBFaW9mm3M+ow/wAlPhX8TktHHcycf2lzemGEfxbn3DYPM75qk5dI24+jhQSS7Y0Ndgcg7rElNyVp1+gDAXKilk432+gYKboqLuCqIFAK9xtUdd8DYsPClKb9h/tYCAq6InuenbIsJI+Cu3h2OIDTIJtbsy9Tk3GnFNLRjtTCHFnBOrVjt+GTBcLJjTOA5ZCTqtTgDNvJWpiSKTTJqGlXgB7qftr/ABzG1uPlMfF3PsxrbjLTT6bx938Q/ShZ0l0bWOSAlEPKP/KibqPu2zIiRlx/jm6zPCXZ+rscgbHnE9GW0s/+OhxHL0aerT4vS+3TNV6r4fP7Xu/3deL/AEefXh5vge00ZmuJhJcxxC3+OVUejFGBJKE7HjtX55fwuynk2Q6xqJH9EkqDRCag0rsfpGLIo+1unUcZPiXwPam/fDEtUopzbKk5UIwDUIAJ6e1cui48yQyOys5IrhUDGSOtQdq7+wqMsFuq1eQUXsn5YaSpu/rPGi26cht+03wr/HJag8MK73m+zY+LqjLpAfadmeWo+ta9PL1jtEESf6zdf45jT9OMD+du7XTjxtbKXTFHhHvPNhvm+++s6tcMpqkX7pPkmx/4auZWGPDjHm892hm8fWSI+mPpHw/aw66IJOQdtp47JNd9SP8APwwF2UEpuAtaDqPDwyIcmKHu5bYwRrHGRMCebk7MO2EtsUtJ333bv4ZG2y2nZu/TIkra+KpoK7Ht74gMSmVvQlV2BHemWNUkyiKmlDU/5+ORk48k0tTQDfYdsIceSb2hoQa/dhBcWYTa3OTDgZgE00prhNStWtjSf1VCeG5oa+1MulRgQeVOnwSnHVYzj+viFMx8yW8d1dafbqP3ssjLX/ivauYGkmYiR6APX9v4I5smHGPqlI/6Xa079S39X6p+36fP0/8AiuvDMOjzek4oX4fXh5f0eT4DWwlBlUlAYEEslGWnEkfefi6DMunLu15BlFHJLqFVPDiBQDceGIQZk80aY7D6moUMt1yNa1IofwpTJU1b35Jhp66f9Tcs8kd8ZF4RD+6KAbknxrlsKacstmW+WUd5lDAMu24GWwDzXamQRiX0D5LtY9P8vNdMKGTlKf8AVUUUfTvlGpPFPhHuaOxqxaeWWXW5fAckx05zY6DNfSf3jh5zXuTsuRzDjycI9zfoJfl9FLNL6pAz+fJ5xeM7BmO5NSx9z3zNy83mNBAnc80iutzvlD0eEbJXcIzGi77E1+WLmxSe5psTuR1GRbwl07MWr0GR6twK7T9Nm1G8SztePrSA8eZAWiipqcnGNmgw1GojigZy5BD3MLwTyW8gAeJijgEEclNDuMhIU2Y5iQEhyLUfUbfLIWUyTK2LCNwCOJIrWlTSvTJBqkj7Y9DTG2iSbWo6f5jEOPJN7UdP4ZIONNN7foMsi63USZP5NszPqpmI+G2QsP8AWb4V/jjqpcOOu9j7P4PF1Zn0gPtOw/SyS1H1vzFPN1jsoxCnhzbr/HMOfpxAfzt3o9OPG7QnP+HDHhHvPNjX+Ix/ysWnL9x/vF7U+z/ycy/wf8Hrr9TrP5R/104v4P7v8f5z5FvbLUF0/TpZFiFs0fG3eOlWAY7vTep98qqnu55hKh3LvVT6vIhtVEjPySRWaiA0+E1rUUyRaa3VrdoBayPMH5HaMAArX/L8B4ZIcmuRN7M1j8mxi1W4S4q4jDsHA4/ZrtTGMg7LU9mVj4uLkLZB5J0meSaHip/esFjPYkkDMvFtuXzLtbKZkQHORr5vdNbC2ekW9jF+2UiH+qgFT+rMHHP1GR6PTYtBjyxjppHaVCup4Uu17U2OjR2ld3kANNv3cYBA++mWaQXMy7nE9tMcNPix4Ycp/dH9tMNud6g9MyJF5zRwoJHeLVqd/wBWVu5xpbdbqOO23TFyopclqJ7j0mcIDuT16eGIjZbJ5DEXSV3qqkjovxKjU5DoR/bgOzkYzYBUIrmRlEaAq0YLBk2YU3qSO3jiJJ8IWpW8SSly8gQKOQr3PXvlfNM5mNUGogK7GnhkUlMbR+Dqw+0NxUAjDdNck2ghb0VnJFGPTvkqcQ5BdJja0oP1401STu1kHpLHxGxry7/LJguLlTS36ZZAbul1k6DPvKkS2OhS3sgoZOUp/wBVBRcxdUeLIIj3PQez+MYNHLNL+K5fAckRp036O8t3GpS/3rq9yxPdjsg+k5DOOPKIj3OV2ZL8voZZ5fVK5n3n6XjX6Ub9NVr8deXLvWta/fm2venj/Bl4PH/Fd/F4Zeaul5cNJHbi0hfiWt4yeFV25HtXfwzWCT6mIV5q9xBHa3CQiZJWdVblGaqCexJoPfCAwFlN9Lt7G40W/lkcGSFk4jwD7V+/LI8nEzSIyAd4TnTNQv5bCS1eT1YWKxq9QX4915fLBGAu2/P2nlGCUSduT1n8rNGLX0UrA+nbqZBXpXov4nLc8uHH73h9JDxtYD/DDf8AU9F4C714igaOyjAoenN+v68xfpxf1i7aBOTX2P8AIx/2UmM+bLhZtXkjjAEduoiUDpUbt09zmVp48OMd5dD23qDn1pF2Mfp+PM/ax2QFpAo77VxLkYBQSi/iJ5U/veXEIOp98DsoJHMRvXYdhgcmKCaWBJi08ZkSh+GtPi8cIpslGRFA0zDy3eeW30ARvJHG8MfK/hcCrkdW4t9uvalcyMU4iNPO9o4tT+YsXRPpPd+p5jfSI15cNFGIYmkZo4htwQk8VH0HMKXN6vFtEWbKHVeXbkf2f8xkGdqyRujcHBVgNw2NIsHkmUcEsfAuvENuPfC0cYPJHW/hWtPpxapJtajwwhx5JzaU2yYcLKU5s4XldIkHxyEIo92NBmRj2F9zz2suchAc5Gvm9E1qIQ6Za6XB9qdkgWn8qUqcwNObmZnpu9j2tDg0+PTQ5zMYfAc0q/MrUI7DQIrKM8fVI2/4riA/42pktFG5mR6fpR7RZBDBDBH+Ij/Sx/bTwL6+36U9Xf0+fHl79afdmXxbuv8AAHg11Yhq8GkTW0E2miJLSaZhbwAf6VuAPj3OxPQdtsxKD2MDIGpc1KfRZtMueFzCFaLjI1Rzjox25EbbkUpkgKUZOIbJ1Bp1t/pUKzxPytgQYQFWqNyoQPnsclF1+pmQYHzTLy9p0TehyIYVLlSacgNgNssgHC7T1HDip79+X1gtjoT3UmwkJYE/yRj+tcq1RuQiOjr+w4iOKWWX8RJ+EU50dxb6Xc6lP9qYvO3yWtBkM4uYgOlByuypeHpp6if8RlP4dGByySO7Ssau5LMfcmpzPnts8hpAZyMzzO/xKXTycTUGhG9coJd9iGyWX5j4eornm25/zGJcrETdJFckcqfdkXMigHX4+pB7YW4KEtlKsAuEI2PwqQOW+1Rh4TzScsb4SgVsri4nlVzw4AsxNK/LtkDEks5ZoxArqgt1IYGjg7eO3Q9sq5N1IuDhJNzupGo61DKB9rpT5ZIebSQQKiEWCxIVnDhfhWh22+7AWPCBdI+AdOuLVJNrXsMIceadWY6ZYA6zUSoMy8l2X1jWI3IqlsplPzGy/iclqZcOL3uL2Jh8bWAn6cfq+PIfey5R9b8zeMWnxf8AJR/9v8Mwz6cP9Y/Y9NEeN2j/AEcEf9lL8fY81/NvWBLqksKmqWyiFQPEbt/wxzL00eHFfe6ftPJ4+uIHLGBH49fteO/pH9/6XL4a9KHrWuG93beB6b6sW0ZNJWdzqcUskaqfS9EhTz7cuh/HrmMA77IZdEU+p6pNA9uZ2Mcp/wBIZt3l4n4TIWLbjpthY8IBtMtDjhfU0WJSkUkZjKk1PLiev05OHN1+vkRjJ7ma+WNLf6zFGPjZQqih2qe345lYhTznbue6iHu97D9R0GDT4v7xwluviT1c/fmHhPFkMj03czXx8HRxwx+qVQ/W15plWy0SKyQ0MpWMf6iCrfjTHSjiyGTD2gyDBo44Y/xER+A3LCJT8NO2Zcy6DSQoJbeKygFhQMKr75US7jHySm5ldlCfsKeVPfxODicmIHNLbn0DxqSOVS+w+GnShw7ORAm91a20m0lRm5GZWHw7kEePTIzNO/7K0UcmMyydUg1G0WG6eNZ6enRlr1FfHGMgQ4mtwjDk4B6h+OaWwSh56XUjpE9S5XY9Nu2DisuPkiYj0jcLLm2iSCKVGLM5bbagUfZ+8ZGUWUJ2a7leKFWsEl5qCjMpB70ocQNmozqdUr2kirG6GMOz7Bz1WnhgBWcbIN8k0huGeJI2Gyd++ILQYUSUytBhDRkOyfWK1p4ZdAOk1s6D0vyRapa6VPfSbCVia/8AFcQ/rXMfWyuQiPxbuPZnEMennnl/Ef8AYxRuiyi10i71a42aUyXD/wCqlaDK9RvMQHTZzexpeHpp6mfOZlP4Dk+efPGtrJPK8jVkZmZj4kmv68z8kgBQdF2TilORmecjfzYB9fi+sU5D/Pfr/bmPxbvWeGeFK7t4HS3FrE0YSELPzpUy1PI1B3ypz4g72ihZsmnxXLswmkdlVCDwZQaVDHrucPmwMrJDIfL1lqFtcsJbQP6ciiSc7+iUI5bg035ZOHNwdSBIU9f/AC80+0uvMSiGpjgJmk5eK9B/wVMvyT4cZeZhDx9XDuHq+T0DXL70tWtuQJS14yU8SxqfwGVafFcD5su19XwarHfLHUvm7zhZ/WLOG/ibkkGzAdOElCG+/Bop8MjE9WftNpvFxRzRNiH3S6sNkCncmi5kTG7otLk2Su7PJySAK9adMqLucRoJbe2bD4gw9MdXNaA0JAoKnfAYuTDJfTdJJnopB+z1of65EFy4s00XQbaPSYHjX1GuEWSRmPxAsNwtOgGZmPHAjd0+Tt3UYchjCXCAeTzbzBa28Or3sKvI8KSMqSvuWYU5VNN98xJRo7PQ6TMckBKf1EWUDJPNcyqTQSIvpqoFNh1JxG27nZMkspHkKQ91LLNLzkoCAFHEBQAuw2GRkbceGMR2TnSrVRpn1pSkrK9fSPavw9++SgNrdfqMh8Xh3G3NQhgmeViIyK1ai9AMhRLlzHAN05jNuLSNFAaY/E8gpUf59Mn0cP1GZPRHWY3GANGU0yLTonYqFFSxoo8ScysQ73m+0MhJocy9Q1OM2Hl+DT4v72XhbqB3J3c5gYTx5DI8hu9b2jD8voY4I/VLhh/xSXfmHfJpXlNbOM8TLxiH+pGKt95pg0vqyGR97Lt6QwaSOCP8VR+Eef6Hyj5uv3lunAbueuW5Jbp7Kw8MQxH6xL63Llt1pXtWmUvQ8I4U70rRNav7w6fwjiMq+oZpaMVSN6MVKk9WNKd8BJDmaHRS1WTghz/Qjde8p6rpjQr631qCUkWwUEvRQC1V3p75IcmXaWhlpMvBLcdJd6M8s6g8EcFvDFLc3Xqs0cbMTEa7Ci9a9anLMZp0Oried1F6v5X8xywa+s9vAI2jb1HjQbmoo4YjsemZXDxAxPV4/NklglHLH+E/MdR8nrmuW0N7psWo2vxBVDhh3jbc/wDA5iaaZjPhP4LtO29LHPgGbH/CL98T+r9bXl26jubOSwn+LipAU9422I+iuHVY+GQkPwWHYOqGbCcE9+EfOJ/UxPU9Lns7ieFxVI2or+KndWzMEhOILzGbTz0mWUDuInn5dEnkhjLAPUCvxfLK5Rpz9PqomQvkmMFkrpycVJ2CHYU+jJQxjq7DWdrSgRDGQPtYvqGm22nag7IfUjWPm8T0JUk7AHISiIy25MMWplmx77ElKrK98xhJ1052Pqk8okINOXgp6fPIwMujscsMHhjxANjseqS60J1sLeC4i9K6geX1WZm5tyIIqh2UeFOuOQ7UebfpoXIzibhKqSGrVqv2j3Fa5RbnAtkPyCcfi7AdT4UyVqduaZw211aieGdTG8kXJR32I64QKO7RmG8T0tFaTqAt3Z2T1CyFATTav8D3wwkA1arGcgAJ5Ii2pUeH9uC2Mk9t0iDgRVK+J8cmA6zNM1uzjyTp/wBZ1e3BFUhrM/h8HT/hqZZnlw4j57Ou7Mw+PrYjpD1H4cvtZzP/AKX5kghG8djGZX8ObdP4ZhR9OEnrI/Y9Pm/f9oQh/DhjxH+seX6HnP5z6qXungVvgs4uJ/12+Jv4Zk6WNYr73Vds5/F1wx9MYr4ncvm/WHeV3cVILGh6CuUzNvSaTGYxCS+nJzr365B2XRm3liOz8veYWh1G5iRmgdCBXgpLKyFnoB8agmnbJ8Ivd23s/rYYs3HP0xMavz2TfzR57t9TsrbRtEjY3Ilq14OKK1arwj5eNftUGSJHIMO2tTjz5TKNkMfsbzU7PUvrFvbxQXOmpxmReh4/CWPxGrH2yIO7oJ4xKNHkU+0DzVqUGozXZKl7raSo2FaHt4ZfCfqdLr9HGUaHR77+WPmOK+sm02Zw7hTLCKg1Vvtr+NfvyvVx5TDj9hZq4tPPpvH3dQmTaTqenX31m1iM0MbEpxNSUPVWHXplgzQyRqRouvPZmp0mfxMUeOAPTu7iOaLa80K+crdgxSMKGOYFaV8GGVeHlgPTuPJ2R1mj1BrIOGXdIV9qEu/JFhcL6lnO0YPQGkifeN8MdZIfUHGy+zWOXqxTMf8AZBLLvy/rtmhKQi5CjZojy+9dm/DMmOpxy6173R5+wtXiJ244/wBHf7ObE3tFt7mR72A3Lyglw4oQ3bZsmIdebQdXLaP0EJFH9f0+5+sWSenKQ3MElkIZtgR7dMqox5O2GSGePDM2i3GgXmmyXOrcBqDtxnIFJCw/uxEB0ULQfryVwI9XNAGox5Rjxf3fTu87YfrselPNObNfSZSgiRQOJAHxbgDeuUZOE8neaY5IERkeLvKCmjtzOslrM/rKA1XFBUDs3b7shQvZzI5DMHxKVYWaW9gEkzTSyxkScq1BYfZBx682GXaNAcqpUtIbYALMxSXmAw7Be5wADqjKZhNI0tFPCMsx5Cj9gD1+dMntycSUpHcp5ZRxmX92SU7V65ZEbup1eQ8O71X8vrIQ2NxfPsHIRWP8iCrfifwynXS3EQ7D2WwVDJml1NfCPP8AHkmugSKLe+1ebZZ3eSp7RRAnKtTzjAdB9rsOxJXDLqpf5SRP+bF84fmZrs1zd3MpajTMzuOoqxrmZl9IEe50nZYObKcsucpEvJ7q9lKkO/wg1C16E96Zhl7XDGhSE9Yce3Wla7eGC2+nrN1+XOlyWSyPPJBdogM90W5KxG7swO+/Qb5fOFSou7PZ+M4TKB9QHwLH7TydJd3ciwyr6MYJ+szExoqruvI02qBtgGPd0k5GtwWvq62mmSgMhknIDow5OKVoeR6eOGqDHwZGdVshbGGe5uBEJFhG7Fn7he3zyMd2Go0xjG6tlvlHXtU06QTwGRJIjUTJX4RuOvvXLoSFEEWHSazswiQnA8M+ne9d0L8z9RkVRcLHcoKBnb92w+ZXb8MjLT4zy2a8efW44kyiJxj8CyqLzZ5evqR3i+mx/wB/KGX6HWuVnT5IfT9jaNdp84/ew4f6w/Sio9I0+Qevpd20Fe8T80+kVwePLlMWgdiYj6sE5Y/6psL+XmG1+0kd/GO6/A/8MH7qXfFhIa/DzEc0fL0yU5dU0e6/c6nbGJ+63EdR9DUrhGCcd4m/c0z7S0uX0aiBgf6cf0/2IK68i6BfqZLOQx16GNhIlfkd/wAcI1c4/ULaZ+z+nyjiwy4fceIMY1b8tNQjDtaqlyrCh4U50r2DU3+WXx1GOXPZ1ubsfWYjcayDyNH5Filx5GEZf11eJ6HjC4Kmo6VJy2OCMhYNuDl7VyYZcMoyifNIE8rqUuRPJ6UkS1jUivJhtQUynwTvbtMXaoNADiv7FC10fUvWBS0aTj8UbVC02pWp6jIiNdHafmxkGx2v7V11pdyl2oaMRmVeSKG5bAbknImC5tRUiDtSd6FpNnJA0kwLSo3HgdgD9HXLIwBHm0Y8nFPcehkENpEqgLGFK/Z4jLsMN93SdrZ4VUXpU8Z0vyrHaptM6LFQd3l3f9ZzAgfEzWeXP5PRamP5Ts4Yx9cgI/50uf6UP5xuF0jyd9VUhXlVbcf8Sk/Vjpx4mbiPvZ9rn8roI4RzlUP+K/Hm+XvODGSZ2cqFJpUncb9aDMrLu43ZOOohgVzEvIjc79hueu+YheoxckL9X+GvI8enHamRput9NS+UdZki9JwGjoAULp2zZHGLt7k6XHKNcXpUYPI+qQS+pFHGOtVYoymopupND1xMGqfZ2CQolYv5d3LIsU1uhiU1oHWrH3NcgcYbMeh04lZJRl35GlubWO3a0jVYhSIqyDj/AGHHww5OXT6aQ+7bkstfJOpW1vLbLErRSjf41FCdq9cmIgOty9laeUhK9x5KkPk3UkrygWlAKB1A2+RxoIy9mYJdfsRDeWdb5fu4wFH2R6i/jviC1ZOxdLIb/cqyWWu6XD9aQMnD7bxvuPf4TXJWDs6vP7M4jZxHhl5bJxpnnfWoIY2uONwjdBIKN/wS0P35RPTQPk83qNPq8EjHaddD+tkVp510S9j4XsXpD9rmBIg969R92Y50c47xLrM3a2H6dRAxvvHEEXBpmgX49fS7r03O/K2krT5r1GR/MZI7SF+9rHZWkzerBLgl/Ql+hUMHmS0/u5I7+MfsuOD/AH7frwcWGXQxP2MvB7Qw/SY5o+e0lr63aMPQ1Wze3rsRKnqJ99P4YRp5c4G/c1z7WxH0anHKH9YcUfn+xBTeT/K2pqXsyImPeFqjfxRq0yX5nJDaQ+bH+R9Hn9WE8J/on9CS3v5e38K0tWS4jAoAPgkp8m2/HL4ayB57OJLsjV4R+7InHu5H9TGdT8vXEI9O7gkhdfsFlINfY9MtjCMt4m3A1euyQjw5oGJ8wreXvLupXBMVrCZFJq7nZVPux2wkwxj1H9biaU6nUyrCCR38o/NnmmeT9P09BdalKsrx0ahPGJSPnu2YWTVyl6YCvvej0vYGHD+91EuIjffaI/Wrtew6xrdpDBVra1LTO5FAzDpt4VpiMZxYyTzOyTq4a7WY4Q3x47kT3n+1h/5w60i3Edly+G3jq3+vJuf+FAyzRQqBl3uL7QZDl1UcQ5QF/GTwPVl9V5HqrRgVqTTrt0yZFu00ceEBjF1aIW5bqx3Ap2O9aA7fRlMg7jGdkH9Uk58Kn/WoevWvTK+Fs4n0+NR1LZvrD0r1+H+mbOn1b8ti+mg1+ktQr/vS/wDwv9MaZjTYwPpd+k9R/wCWl/w/pjS/l8f80NnUtSG31l/mKf0xpjHDjP8AC79Kal/y0v8A8L/TGgn8tj/mh36U1L/lpf8A4X+mNBfy2P8Amhv9Kan/AMtT/wDC/wBMHCE/lsf80IrTtcmjl43rma3fZmIFV99huPEYJR7nH1GiBFw2KlrukfVVN7aVezb4iE34V7in7JwCV7OGODKOGY9bAvMGuLEHjVJWk4VjdaqOde/sBvXKpSILx3bXZuEgjh93TdBWvm9rOO3lErrMdpFB4spHfxGEZtt3g9Z2FGAEokifWtiHo+j/AJl6jDbwNJdrKroG9Of4u1T8WzfjjLBilvVJH53BEHi4hXKW/wBvNlGn/mjol2ipeRFFf9tKSRn/AGJo2Y0tEecTbZD2hhXDmgQP9NH8fNN4bTytqtHsZlSU7qYH4OPfgf6ZE5M0NpbjzZjQ9n6o8WIiM/6J4T8lb6h5htP95rtbuMdIrgUb/gv7cHiYpc48PuZ/k9dg/u8gyx7p8/mtfXGhX0tVsJIVPVgPUjP34Rp73hIH7Cxl2uYDh1OKUB/po/j5oa5802UEQh02EED7JK8I1+SihOWQ0cibmf1uJqfaTDjjw4I38KiPh1+xLIrXWdalEjFpEB2lf4Yl/wBUf0zIM8eEbftdLj0+s7RlxEkx7ztEe79if2dnpnl6CS6vLpVLAB5XoooN+KDqcwMuWec0A9XodBg7OiZzn6jzJ2+ADwX8xdZk1K4ur0KTFLK1H7UrRR9A2zYUIwEe50GljLNnnlP8Unm0epCFXWY8UJqWO527D54ISAG70sMd8kvlSOUc49670G25GY8t93NjtshOT+r39Try7/OuR6s31P8AVPLfGn17b/jIn9Mzrk+m+Lmu+Hf3OFl5a/5bf+Sif0wXJl+Yz/zfsb+oeWj/AMfv/JRP6Y3JH5jUfzfsb/R3lr/lt/5KJ/TG5dy+PqP5v2OGn+Wf+W7/AJKJ/TG5dyPzGo/m/YuXTfLRNPr1P+eif0yPFLuQdTqP5v2IPWNDmsCJUJltW6SU3Uns1PwOGGS3J0usGTY7SSvLHNTPR9YNmfQn+Ozc7jqUJ6kDw8RkJwvk4Wr0nH6o/V97tR0K2sJX1C1QPaT0Lsu5jB8D/Ifww4slHd0Ou0Y1mPwz6cg+39rzbz7ZaYtpPeiCOK4kdRCyLxbqOXTr8AOYuUUbcTtPsrDg0sQd8gocXU9/vYRaalqd3cx2NvMywxcgslGHGPxfjy+WQEreUy45zHALMY9w6IrTNRvkimuGkKRW9FYHqSSB9kkHJxmXV5OxePHKZG0fv/QzC08zyCaK00+6LpON5ZdviArxBpsadsyhPo87HsnJIfSeIyoU9A0rztrlrEjx3LPANqSjmhPT9rf8cplDHLmPk7aWg12k2jk4vI7sl0380baVzBf2hDCgd4TyFD3KN2Pzyieh/mn5scXtBOJMM+IiufDv9hTePUvJV7IJ1aDmnxSK/wC7Yf6yGnL8cgY547btscnZueQmBCx3+k/LqkfmX809OsImi04KWHwpK9AB/qp/X7snj0XWZ+DTq/aAn06aP+ceXwDyfzP57ub2B7h7kzzMSHUkkoB+AGZXFGAqIp1WPQ5M8+PNIyl5sOvfMM8ulN9dj/cRmkS7hi5B6r/stjlRmOrvMWkkCBFjJuobqGjGki0+Lv79PwxEgY07URMSghK8D1FSo2IPtvlJ2bwLRf1qD0fWoa/aptSuCxTHhPJ6ivmAbDl8zmze+/PSRV1rdssoW2kMiEbn3wgMMGuykepfa64BIpYAqTQ12FD3ywRcvHrJWnpuIAKk1ruAPDLBB2nHIoaS6rciMAUYg19sPhuNLLMS35I+IIy9B4YfCbzm4aT7Q9djiX9H6gQ9k44RyNuEr+y3+T+rMDPgINhxNVpuL149pd36Qpa5oclhJ60VXs3+y3UqT2b+ByOPJY35t+j1gyCj9X3pTlgc9kHlK5le5axch7ZkZwjb0O1QPY16ZTmFC3Vdp4oiPGOdsD87+W4Z7y/iilMUUEkvpQ05KAKmgqchLeIcPV6A58Inxb8Nsc8jvZxaZJ6CKl05dblSAX3PwnfenEimViIcTsfT4M2AC+GUZ2aO5rl8PJR8y3nk2O9SHUJLh76GOqxwim0n2uZ6dPpp064xERsXTe0pnPNEEwjwz9UR1hff3pT+ltOGs28+lTCe2j5g2klY6fCS7q777jpXv7YYOu12sw4dSMuHiMIkHfqeWw9z0O1u66VbfU5llWSISxmi0Ib4q8j4joMnGQennoceqlxkER2Ng80XHO0EQlojGgWVitWJ3OxHbfbGJouuz9hY8xlW1jokvmXUJLOGaZpfqskSF0ncUABHUg9j4YnMXS6r2VxHHxgioDn+v3sC0i51zWpY5o4hLAzEGWdgkfMDcGprT3plRy3zdbpfZ3LKHHjgZBT1G7n0G/jgaaK6adQ15a0HFRWoUn4tvD8ciJ7uVruyfBqBPqq/ckmuapeXbrPLIZApbhCPsKp3A26+3hhk14oCqSuAtLIiqQC5AH3+/tkAbbjsnVzpdgtlFLLe8rp2YSwIm6AD4TU065eIAjdp4yOSS/Urr6z6HHevDjXv+rKuA3TdxirZgt6TuppXr4Zsol6wIqG5NBua5aA2BFpdEdT8WWBtgn+n6xD9WjR5OLItPiB7eBy6NO602oxiNHoiZbiZpEdEIC7869a5bTj5NXGZFcgjbW+uXUFVAHdj0OGnIjKUxyTKCV2NGPIZVOLYAYm2UaDrqRKNO1Eh7OQcI5H3CV/Zb/J/Vmr1GCtxzcXVaTi/eY/qH2+YQuvaSNOugIzygmBaKvUU6qflgxz4hvzcvQ6rxY7/AFBE+T/+OwP+MT/wyOf6WrtX+6+LE/POpNb32qQxI7TvLIsZUVAYmlcjfpDgavWjHpgOpjTx7W7bVFle+vHa2lCq0Ln4GkUbfAV8NsomDzL59jnCJ4cZ5d3NKois11N9bjnl1G4Xlbu4Zy3Yk9zkPc5kzEY5Sy8XiGqJdfwwtaW0dsssl3ThLGEoVqTtstSeQIFa4C4sTI0Pl5/rTry/5putKsTpzWbfXLKX07iOQP8AuULAsxC7juaZKEtndDtzJgweHCA2HM9/uTHVNc8wXPm+xexuBNHxQ2x+JLUqQWbr9oUG565OZ9WzptJrtREDLM7xJ92/Rd5v8xa75gkisxZL60PqQyoeLRM0cdWOxqwUNyBNN+m+Am1GeeT0XwwlK66Ivypc6RN5csVsyyy26GC+V2B4zKTug6lT1J98QBKL6F7P5JSw8JA4Y7Cvtv39Et893VnEIUQsNVI9K9j4in1ZqMvOoqDy3HtkIxp0ftRPBOceEg5B1Hd5/oYcssbP6bkrC1PiO9BXw+WSkd3lOHa1l5AltdtHFKJbfqkq+/8AHFkDY816rPazI4ZTQLKGrzqaVWoByUbDGwVb9L3H139IVX16+pXiOPP/AFPs4fE3tHh7Jrpc8MtoiByLlGoy0/Z7EHLNFn448PUPVYJgx8wmCvxUePY5sA5MQmOlWhvb2OIfGv2nUA1IHUAZMObgxiRomh3sqawsxHxaIRwoRUVIoAd/ll/MbOZPRRhjlIbzpvUo7ODhHZsN61Cty27HvhxSl1dVoJ5J3xj7GrS6ESBGrWu/t8svDvMOQRFFNrS9A+FRyDbhh4jKs2HiZzkOiPVy0dT1yjNGmzAd2V+cv+PL5P8A8a5qsHVwuyf4vx3obyd/x2f+eT/ww6j6W7tX+6+LCvzBvLq01LUJbMtHJ68gdwKilfA4LIgKec7VxxniiJcqDDv8L6v5gtzcX0wS3eIfUJJZCSGbcsyoBUeFcxpSNbupwdjnNLix+iO31dfcwmbU9Z0fzHd23qxvcQB7Z5fTD1UGvJOW618fDIxlvYcPXY5zJx5PUY7Mt8hy6hbpdJqSS8tT/wBKiLH4XSn2gwrRgxrxPY5KBuwXe9gYsOPJEToZz/dk/wA3qAlfnvUrSzna1spY21CYf6a6faRAKKG/yvxGQO3Vu7e1+GRMcYHEdpFJ/LWj3l9DDdS6jHGkcqrHBKxLlYvi2BOy0XplmKHFRt43VaiUImHCeE9eiYR6ENTvZryxv4Uill9JmqYyvjTuad9t+2SlHe3Gx5TACBB2HNJri21nS9Sl0Ww/0qedlp9Wf4T/ACkn4enL+uQutnaY82TGBKMzGPMgfpTeC4stOvLwXeoH9IaeXMPqW68pWlUA8zyZm49KE7ZKMt3EzE5DxV9SSMkl9czGKAlmPP0YQzgA9WB/XiSJKSIAW4iIr6c9TIAQ+3Rh1rkhSLPRCXkNxbXAhuKEsoKAGvw9KV2yuU+9uhuNnUf7dT6leVdutKZh+N676Ob4HorqrQet6q+jX1K/Dx65Vj4uIcPNy43e3NPrf69xX6xx7U49fpptnQ4PFr107TDx1uzfyD6v16X0uP2N+nKtdqe3WuXz6NHaP0xrnfw+KYat+kf9K9X0uPM8vT5VpX/OuZceT0OPxfy4vlQ96WQdfh69ssa4XsilrxFetcsDlDkmFlyoKeOSZp3B/dZh527BzZf5z6WP+q/6lzUYOrh9k/xfjvQ3k7/js/8APJ/4YdR9Ld2r/dfEMX87fpD9Jah9S4+pznry6UqKfjgF8IrudD2x4P5fHx/zft6Mb8mfWP8AD9t9Zrx5Pw5Vr6fI8f8APwzGjw/xcmrTeL+V9H1b1+C8v82er/jG+4cv0hzb1PRpw9P0/h4/t8uH2q98q26Ok1fi+PK/q8vcm3kL9P8A1fUOVf0b9XPqerT7NR/dc9/D7O300zIwcVHudBr+HxMV3x36Of2MW1P6vztPQ9D0vTkp6H95x5n+9p/wuUmqDl4/qnXFz/i/Qhr/AOo/WIP0d6vocDy9Sv2v2qfR1pia/hZ4vG4P3vLo4V+GlfV5Dj4dP18skftSr3fL65+/9T1ufxej/eepUfZ4964ZV15MBdelZZ/W/Ql+t+p9X+sfF6nD1+W3Lly+OvDx2wx5FunxcAqqv7a+5G6X+may/oj1eVG58OP9zX9r6MMbvZxsnBw+pDPw9R/V9X61VuXGn0Vrv1yBtnGq2+lo15j1K+pQfa60+nMTLx9eTn4ODpzdmO5L/9k\x3d"; b.gG = "data:image/NGf;base64,iVBORw0KGgoAAAANSUhEUgAAAWwAAAAHCAYAAAAs23eUAAAACXBIWXMAAAsTAAALEwEAmpwYAAA6XWlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS41LWMwMTQgNzkuMTUxNDgxLCAyMDEzLzAzLzEzLTEyOjA5OjE1ICAgICAgICAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgICAgICAgICB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIKICAgICAgICAgICAgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIKICAgICAgICAgICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICAgICAgICAgICB4bWxuczpwaG90b3Nob3A9Imh0dHA6Ly9ucy5hZG9iZS5jb20vcGhvdG9zaG9wLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOnRpZmY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vdGlmZi8xLjAvIgogICAgICAgICAgICB4bWxuczpleGlmPSJodHRwOi8vbnMuYWRvYmUuY29tL2V4aWYvMS4wLyI+CiAgICAgICAgIDx4bXA6Q3JlYXRvclRvb2w+QWRvYmUgUGhvdG9zaG9wIENDIChNYWNpbnRvc2gpPC94bXA6Q3JlYXRvclRvb2w+CiAgICAgICAgIDx4bXA6Q3JlYXRlRGF0ZT4yMDE1LTA0LTAzVDE1OjM5OjM2KzA4OjAwPC94bXA6Q3JlYXRlRGF0ZT4KICAgICAgICAgPHhtcDpNb2RpZnlEYXRlPjIwMTUtMDQtMDNUMTg6MDc6NDUrMDg6MDA8L3htcDpNb2RpZnlEYXRlPgogICAgICAgICA8eG1wOk1ldGFkYXRhRGF0ZT4yMDE1LTA0LTAzVDE4OjA3OjQ1KzA4OjAwPC94bXA6TWV0YWRhdGFEYXRlPgogICAgICAgICA8eG1wTU06SW5zdGFuY2VJRD54bXAuaWlkOjBjMWI1MTkwLWU2MmQtNDU0OS1iOWZiLWQxOWI0MjQ0Y2E0MTwveG1wTU06SW5zdGFuY2VJRD4KICAgICAgICAgPHhtcE1NOkRvY3VtZW50SUQ+eG1wLmRpZDpDOTczODY3M0QxRjExMUU0QTdGRDk1NkE2RjRFNEVCRjwveG1wTU06RG9jdW1lbnRJRD4KICAgICAgICAgPHhtcE1NOkRlcml2ZWRGcm9tIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgPHN0UmVmOmluc3RhbmNlSUQ+eG1wLmlpZDpDOTczODY3MEQxRjExMUU0QTdGRDk1NkE2RjRFNEVCRjwvc3RSZWY6aW5zdGFuY2VJRD4KICAgICAgICAgICAgPHN0UmVmOmRvY3VtZW50SUQ+eG1wLmRpZDpDOTczODY3MUQxRjExMUU0QTdGRDk1NkE2RjRFNEVCRjwvc3RSZWY6ZG9jdW1lbnRJRD4KICAgICAgICAgPC94bXBNTTpEZXJpdmVkRnJvbT4KICAgICAgICAgPHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD54bXAuZGlkOkM5NzM4NjczRDFGMTExRTRBN0ZEOTU2QTZGNEU0RUJGPC94bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ+CiAgICAgICAgIDx4bXBNTTpIaXN0b3J5PgogICAgICAgICAgICA8cmRmOlNlcT4KICAgICAgICAgICAgICAgPHJkZjpsaSByZGY6cGFyc2VUeXBlPSJSZXNvdXJjZSI+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDphY3Rpb24+c2F2ZWQ8L3N0RXZ0OmFjdGlvbj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0Omluc3RhbmNlSUQ+eG1wLmlpZDowYzFiNTE5MC1lNjJkLTQ1NDktYjlmYi1kMTliNDI0NGNhNDE8L3N0RXZ0Omluc3RhbmNlSUQ+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDp3aGVuPjIwMTUtMDQtMDNUMTg6MDc6NDUrMDg6MDA8L3N0RXZ0OndoZW4+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDpzb2Z0d2FyZUFnZW50PkFkb2JlIFBob3Rvc2hvcCBDQyAoTWFjaW50b3NoKTwvc3RFdnQ6c29mdHdhcmVBZ2VudD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmNoYW5nZWQ+Lzwvc3RFdnQ6Y2hhbmdlZD4KICAgICAgICAgICAgICAgPC9yZGY6bGk+CiAgICAgICAgICAgIDwvcmRmOlNlcT4KICAgICAgICAgPC94bXBNTTpIaXN0b3J5PgogICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3BuZzwvZGM6Zm9ybWF0PgogICAgICAgICA8cGhvdG9zaG9wOkNvbG9yTW9kZT4zPC9waG90b3Nob3A6Q29sb3JNb2RlPgogICAgICAgICA8cGhvdG9zaG9wOkRvY3VtZW50QW5jZXN0b3JzPgogICAgICAgICAgICA8cmRmOkJhZz4KICAgICAgICAgICAgICAgPHJkZjpsaT54bXAuZGlkOkY5RkM4OUM2RDFGODExRTRBN0ZEOTU2QTZGNEU0RUJGPC9yZGY6bGk+CiAgICAgICAgICAgIDwvcmRmOkJhZz4KICAgICAgICAgPC9waG90b3Nob3A6RG9jdW1lbnRBbmNlc3RvcnM+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgICAgIDx0aWZmOlhSZXNvbHV0aW9uPjcyMDAwMC8xMDAwMDwvdGlmZjpYUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6WVJlc29sdXRpb24+NzIwMDAwLzEwMDAwPC90aWZmOllSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpSZXNvbHV0aW9uVW5pdD4yPC90aWZmOlJlc29sdXRpb25Vbml0PgogICAgICAgICA8ZXhpZjpDb2xvclNwYWNlPjY1NTM1PC9leGlmOkNvbG9yU3BhY2U+CiAgICAgICAgIDxleGlmOlBpeGVsWERpbWVuc2lvbj4zNjQ8L2V4aWY6UGl4ZWxYRGltZW5zaW9uPgogICAgICAgICA8ZXhpZjpQaXhlbFlEaW1lbnNpb24+NzwvZXhpZjpQaXhlbFlEaW1lbnNpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIAo8P3hwYWNrZXQgZW5kPSJ3Ij8+FYdguAAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAArklEQVR42uzQIQrCUADH4f97CksblgXDovBA2Hk8gEUwiAcwaFXE4h3mKTyAacWB0bCwIlta0Gf3APLC7zvCZ/zVqWzcMYvrxShqI2O8fh1ucwEA/u4tqZK0lXQZlo3b52m14gUAgjOQNJVUSJLN4nrJCQAEb2OTqIt4AIDgTWzbxz0PABC8h3124zMPABC8nc3Tal027vTqk957QwkAhOMj6S5pJqn4AgAA//8DAP/AJ1Ic5b5jAAAAAElFTkSuQmCC"; b.fG = "data:image/NGf;base64,iVBORw0KGgoAAAANSUhEUgAAAWwAAAAHCAMAAAAbBYemAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2tpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDpGOUZDODlDNkQxRjgxMUU0QTdGRDk1NkE2RjRFNEVCRiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpGN0IxRjQwOEQyMEQxMUU0OEMyNkRCQzE1OTYxM0YxRSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpGN0IxRjQwN0QyMEQxMUU0OEMyNkRCQzE1OTYxM0YxRSIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgKE1hY2ludG9zaCkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDplZjVkMDgyYy1iMGQ3LTQ3M2EtYjQwOC01NGQ5Y2U2ZmVjZDciIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6RjlGQzg5QzZEMUY4MTFFNEE3RkQ5NTZBNkY0RTRFQkYiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7NnERNAAAABlBMVEX/wCgAAADNMH0JAAAAG0lEQVR42uzBAQEAAACCIP+vbkhAAQBwYgIMAAn7AAEA8CMoAAAAAElFTkSuQmCC"; var b = b || {}, ga = { id: 0 | 998 * Math.random(), OV: 0 | 998 * Math.random(), sI: function(e, f, g) { e = e.toString(); var h = e.substring(e.indexOf("(") + 1, e.indexOf(")")), h = h.trim(); for (e = e.substring(e.indexOf("{") + 1, e.lastIndexOf("}")); - 1 !== e.indexOf("this._super");) { var a = e.indexOf("this._super"), c = e.indexOf("(", a), d = e.substring(c + 1, e.indexOf(")", c)), d = d.trim(); e = e.substring(0, a) + "ClassManager[" + g + "]." + f + ".call(this" + (d ? "," : "") + e.substring(c + 1) } return Function(h, e) }, SI: function() { return this.id++ }, SU: function() { return this.OV++ } }; ga.sI.LZ = ga; (function() { var c = /\b_super\b/, a = b.Ma.ld[b.Ma.rf.cT]; a && console.log("release Mode"); b.Ia = function() {}; b.Ia.extend = function(u) { function y() { this.Y = ga.SU(); this.ctor && this.ctor.apply(this, arguments) } var d = this.prototype, e = Object.create(d), g = ga.SI(); ga[g] = d; var f = { writable: !0, enumerable: !1, configurable: !0 }; e.Y = null; y.id = g; f.value = g; Object.defineProperty(e, "__pid", f); y.prototype = e; f.value = y; Object.defineProperty(y.prototype, "constructor", f); this.Sg && (y.Sg = b.k(this.Sg)); this.Tg && (y.Tg = b.k(this.Tg)); for (var r = 0, t = arguments.length; r < t; ++r) { var v = arguments[r], x; for (x in v) { var k = "function" === typeof v[x], h = "function" === typeof d[x], n = c.test(v[x]); a && k && h && n ? (f.value = ga.sI(v[x], x, g), Object.defineProperty(e, x, f)) : k && h && n ? (f.value = function(j, i) { return function() { var o = this._super; this._super = d[j]; var A = i.apply(this, arguments); this._super = o; return A } }(x, v[x]), Object.defineProperty(e, x, f)) : k ? (f.value = v[x], Object.defineProperty(e, x, f)) : e[x] = v[x]; if (k) { var m, p; if (this.Sg && this.Sg[x]) { var k = this.Sg[x], s; for (s in this.Tg) { if (this.Tg[s] === k) { p = s; break } } b.l(e, k, v[x], v[p] ? v[p] : e[p], x, p) } if (this.Tg && this.Tg[x]) { k = this.Tg[x]; for (s in this.Sg) { if (this.Sg[s] === k) { m = s; break } } b.l(e, k, v[m] ? v[m] : e[m], v[x], m, x) } } } } y.extend = b.Ia.extend; y.G6 = function(j) { for (var i in j) { e[i] = j[i] } }; return y } })(); b.l = function(a, c, e, h, k, m) { if (a.__defineGetter__) { e && a.__defineGetter__(c, e), h && a.__defineSetter__(c, h) } else { if (Object.defineProperty) { var n = { enumerable: !1, configurable: !0 }; e && (n.get = e); h && (n.set = h); Object.defineProperty(a, c, n) } else { throw Error("browser does not support getters") } } if (!k && !m) { for (var n = null != e, p = void 0 != h, r = Object.getOwnPropertyNames(a), d = 0; d < r.length; d++) { var f = r[d]; if ((a.__lookupGetter__ ? !a.__lookupGetter__(f) : !Object.getOwnPropertyDescriptor(a, f)) && "function" === typeof a[f]) { var g = a[f]; if (n && g === e && (k = f, !p || m)) { break } if (p && g === h && (m = f, !n || k)) { break } } } } a = a.constructor; k && (a.Sg || (a.Sg = {}), a.Sg[k] = c); m && (a.Tg || (a.Tg = {}), a.Tg[m] = c) }; b.k = function(e) { var a = e.constructor ? new e.constructor : {}, c; for (c in e) { var d = e[c]; a[c] = "object" !== typeof d || !d || d instanceof b.f || d instanceof HTMLElement ? d : b.k(d) } return a }; b.nv = function(d, a) { for (var c in d) { a[c] = d[c] } }; b = b || {}; b.na = b.na || {}; b.f2 = function() {}; b.q_ = { i8: 0, back: 6, ff: 18, i2: 8, Bba: 9, N3: 13, shift: 16, K2: 17, alt: 18, pause: 19, q2: 20, escape: 27, jba: 32, Y8: 33, X8: 34, end: 35, home: 36, left: 37, Rba: 38, right: 39, X2: 40, select: 41, L6: 45, ZZ: 46, 0: 48, 1: 49, 2: 50, 3: 51, 4: 52, 5: 53, 6: 54, 7: 55, 8: 56, 9: 57, a: 65, b: 66, c: 67, R: 68, j3: 69, S3: 70, g: 71, C6: 72, F6: 73, s7: 74, t7: 75, R7: 76, Y7: 77, wv: 78, u8: 79, d: 80, q9: 81, r: 82, l$: 83, Aba: 84, u: 85, v: 86, M: 87, x: 88, y: 89, z: 90, j8: 96, k8: 97, l8: 98, m8: 99, n8: 100, o8: 101, p8: 102, q8: 103, r8: 104, s8: 105, "*": 106, "+": 107, "-": 109, numdel: 110, "/": 111, T3: 112, X3: 113, Y3: 114, Z3: 115, a4: 116, b4: 117, c4: 118, d4: 119, e4: 120, U3: 121, V3: 122, W3: 123, t8: 144, q$: 145, ";": 186, s$: 186, O3: 187, "\x3d": 187, ",": 188, A2: 188, L2: 189, ".": 190, k9: 190, l4: 191, A6: 192, "[": 219, z8: 219, h2: 220, "]": 221, x2: 221, quote: 222, a3: 1000, b3: 1001, c3: 1003, Z2: 1004, Y2: 1005 }; b.f_ = 0; b.TL = 1; b.UL = 2; b.g_ = 3; b.h_ = 4; b.VL = 5; b.n5 = function(a) { return 8 < a.length && 137 === a[0] && 80 === a[1] && 78 === a[2] && 71 === a[3] && 13 === a[4] && 10 === a[5] && 26 === a[6] && 10 === a[7] ? b.TL : 2 < a.length && (73 === a[0] && 73 === a[1] || 77 === a[0] && 77 === a[1] || 255 === a[0] && 216 === a[1]) ? b.UL : b.VL }; b.H6 = function(d, a) { function c() {} c.prototype = a.prototype; d.aw = a.prototype; d.prototype = new c; d.prototype.constructor = d }; b.j2 = function(e, f, g) { var h = arguments.callee.caller; if (h.aw) { return ret = h.aw.constructor.apply(e, Array.prototype.slice.call(arguments, 1)) } for (var a = Array.prototype.slice.call(arguments, 2), c = !1, d = e.constructor; d; d = d.aw && d.aw.constructor) { if (d.prototype[f] === h) { c = !0 } else { if (c) { return d.prototype[f].apply(e, a) } } } if (e[f] === h) { return e.constructor.prototype[f].apply(e, a) } throw Error("cc.base called from a method of one name to a method of a different name") }; b.XM = function() { this.y = this.x = 0 }; b.d = function(c, a) { return void 0 === c ? { x: 0, y: 0 } : void 0 === a ? { x: c.x, y: c.y } : { x: c, y: a } }; b.DW = function(c, a) { return c && a && c.x === a.x && c.y === a.y }; b.j0 = function(c, a) { this.width = c || 0; this.height = a || 0 }; b.size = function(c, a) { return void 0 === c ? { width: 0, height: 0 } : void 0 === a ? { width: c.width, height: c.height } : { width: c, height: a } }; b.hba = function(c, a) { return c && a && c.width === a.width && c.height === a.height }; b.Nh = function(e, a, c, d) { this.x = e || 0; this.y = a || 0; this.width = c || 0; this.height = d || 0 }; b.rect = function(e, a, c, d) { return void 0 === e ? { x: 0, y: 0, width: 0, height: 0 } : void 0 === a ? { x: e.x, y: e.y, width: e.width, height: e.height } : { x: e, y: a, width: c, height: d } }; b.RJ = function(c, a) { return c && a && c.x === a.x && c.y === a.y && c.width === a.width && c.height === a.height }; b.lz = function(a) { return a && 0 === a.x && 0 === a.y && 0 === a.width && 0 === a.height }; b.x9 = function(c, a) { return c && a ? !(c.x >= a.x || c.y >= a.y || c.x + c.width <= a.x + a.width || c.y + c.height <= a.y + a.height) : !1 }; b.pr = function(a) { return a.x + a.width }; b.y9 = function(a) { return a.x + a.width / 2 }; b.oo = function(a) { return a.x }; b.qr = function(a) { return a.y + a.height }; b.z9 = function(a) { return a.y + a.height / 2 }; b.po = function(a) { return a.y }; b.QJ = function(c, a) { return a.x >= b.oo(c) && a.x <= b.pr(c) && a.y >= b.po(c) && a.y <= b.qr(c) }; b.B9 = function(f, a) { var c = f.y + f.height, d = a.x + a.width, e = a.y + a.height; return !(f.x + f.width < a.x || d < f.x || c < a.y || e < f.y) }; b.C9 = function(c, a) { return !(c.x + c.width < a.x || a.x + a.width < c.x || c.y + c.height < a.y || a.y + a.height < c.y) }; b.Dv = function(d, a) { var c = b.rect(0, 0, 0, 0); c.x = Math.min(d.x, a.x); c.y = Math.min(d.y, a.y); c.width = Math.max(d.x + d.width, a.x + a.width) - c.x; c.height = Math.max(d.y + d.height, a.y + a.height) - c.y; return c }; b.A9 = function(d, a) { var c = b.rect(Math.max(b.oo(d), b.oo(a)), Math.max(b.po(d), b.po(a)), 0, 0); c.width = Math.min(b.pr(d), b.pr(a)) - b.oo(c); c.height = Math.min(b.qr(d), b.qr(a)) - b.po(c); return c }; b.dD = b.Ia.extend({ wG: null, Ey: null, ctor: function() { window.DOMParser ? (this.Ey = !0, this.wG = new DOMParser) : this.Ey = !1 }, parse: function(a) { return this.vG(a) }, vG: function(c) { var a; this.Ey ? a = this.wG.parseFromString(c, "text/xml") : (a = new ActiveXObject("Microsoft.XMLDOM"), a.async = "false", a.loadXML(c)); return a } }); b.WM = b.dD.extend({ parse: function(e) { e = this.vG(e).documentElement; if ("plist" !== e.tagName) { throw "Not a plist file!" } for (var a = null, c = 0, d = e.childNodes.length; c < d && (a = e.childNodes[c], 1 !== a.nodeType); c++) {} return this.Yy(a) }, Yy: function(d) { var a = null, c = d.tagName; if ("dict" === c) { a = this.TQ(d) } else { if ("array" === c) { a = this.SQ(d) } else { if ("string" === c) { if (1 === d.childNodes.length) { a = d.firstChild.nodeValue } else { for (a = "", c = 0; c < d.childNodes.length; c++) { a += d.childNodes[c].nodeValue } } } else { "false" === c ? a = !1 : "true" === c ? a = !0 : "real" === c ? a = parseFloat(d.firstChild.nodeValue) : "integer" === c && (a = parseInt(d.firstChild.nodeValue, 10)) } } } return a }, SQ: function(f) { for (var a = [], c = 0, d = f.childNodes.length; c < d; c++) { var e = f.childNodes[c]; 1 === e.nodeType && a.push(this.Yy(e)) } return a }, TQ: function(f) { for (var g = {}, a = null, c = 0, d = f.childNodes.length; c < d; c++) { var e = f.childNodes[c]; 1 === e.nodeType && ("key" === e.tagName ? a = e.firstChild.nodeValue : g[a] = this.Yy(e)) } return g } }); b.TR = { load: function(e, a, c, d) { b.S.tv(e, d) } }; b.S.Gh(["txt", "xml", "vsh", "fsh", "atlas"], b.TR); b.BQ = { load: function(e, a, c, d) { b.S.IB(e, d) } }; b.S.Gh(["json", "ExportJson"], b.BQ); b.AQ = { load: function(e, a, c, d) { b.S.zJ(e, d) } }; b.S.Gh(["js"], b.AQ); b.lQ = { load: function(e, a, c, d) { b.S.Vc[a] = b.S.Ah(e, function(g, f) { if (g) { return d(g) } b.Ra.fb(a); d(null, f) }) } }; b.S.Gh("png jpg bmp jpeg gif ico".split(" "), b.lQ); b.lR = { load: function(e, a, c, d) { b.S.Vc[a] = b.S.Ah(c.src, function(g, f) { if (g) { return d(g) } b.Ra.fb(a); d(null, f) }) } }; b.S.Gh(["serverImg"], b.lR); b.$Q = { load: function(e, a, c, d) { b.S.tv(e, function(g, f) { if (g) { return d(g) } d(null, b.BW.parse(f)) }) } }; b.S.Gh(["plist"], b.$Q); b.zP = { VN: { ".eot": "embedded-opentype", ".ttf": "truetype", ".woff": "woff", ".svg": "svg" }, bG: function(g, h, k) { var m = document, n = b.path, a = this.VN, c = b.ac("style"); c.type = "text/css"; m.body.appendChild(c); var d = "@font-face { font-family:" + g + "; src:"; if (h instanceof Array) { for (var e = 0, f = h.length; e < f; e++) { k = n.Yj(h[e]).toLowerCase(), d += "url('" + h[e] + "') format('" + a[k] + "')", d += e === f - 1 ? ";" : "," } } else { d += "url('" + h + "') format('" + a[k] + "');" } c.textContent += d + "};"; h = b.ac("div"); k = h.style; k.fontFamily = g; h.innerHTML = "."; k.position = "absolute"; k.left = "-100px"; k.top = "-100px"; m.body.appendChild(h) }, load: function(e, a, c, d) { a = c.type; e = c.name; a = c.nba; b.ge(c) ? (a = b.path.Yj(c), e = b.path.SS(c, a), this.bG(e, c, a)) : this.bG(e, a); d(null, !0) } }; b.S.Gh(["font", "eot", "ttf", "woff", "svg"], b.zP); b.M0 = { load: function(e, a, c, d) { b.S.hW(e, d) } }; b.oP = { load: function(e, a, c, d) { b.S.iW(e, d) } }; b.S.Gh(["csb"], b.oP); window.CocosEngine = b.pw = "Cocos2d-JS v3.5"; b.uw = 0; b.lw = b.d(0, 0); b.wL = 0.5; b.JZ = 1; b.iD = 1; b.IM = 0; b.kD = 0; b.lD = 0; b.q0 = 0; b.e0 = 1; b.d0 = "-hd"; b.KO = 1; b.Xw = 0; b.g0 = 0; b.fM = 0; b.eM = 0; b.ww = 1; b.OZ = b.pw + "-canvas"; b.Xr = 1; b.cg = 1; b.hb = function(c) { var a = this === b ? document : this; if (c = c instanceof HTMLElement ? c : a.querySelector(c)) { c.find = c.find || b.hb, c.wB = c.wB || function(d) { return this.className.match(RegExp("(\\s|^)" + d + "(\\s|$)")) }, c.YH = c.YH || function(d) { this.wB(d) || (this.className && (this.className += " "), this.className += d); return this }, c.SW = c.SW || function(d) { this.wB(d) && (this.className = this.className.replace(d, "")); return this }, c.remove = c.remove || function() { this.parentNode && this.parentNode.removeChild(this); return this }, c.bI = c.bI || function(d) { d.appendChild(this); return this }, c.IW = c.IW || function(d) { d.childNodes[0] ? d.insertBefore(this, d.childNodes[0]) : d.appendChild(this); return this }, c.Er = c.Er || function() { this.style[b.hb.PY] = b.hb.translate(this.position) + b.hb.rotate(this.rotation) + b.hb.scale(this.scale) + b.hb.vo(this.vo); return this }, c.position = c.position || { x: 0, y: 0 }, c.rotation = c.rotation || 0, c.scale = c.scale || { x: 1, y: 1 }, c.vo = c.vo || { x: 0, y: 0 }, c.Jba = function(e, d) { this.position.x = e; this.position.y = d; this.Er(); return this }, c.rotate = function(d) { this.rotation = d; this.Er(); return this }, c.resize = function(e, d) { this.scale.x = e; this.scale.y = d; this.Er(); return this }, c.Baa = function(e, d) { this.vo.x = e; this.vo.y = d; this.Er(); return this } } return c }; switch (b.Z.Sf) { case b.Z.Wi: b.hb.nr = "Moz"; b.hb.eo = !0; break; case b.Z.Vi: case b.Z.rk: b.hb.nr = "webkit"; b.hb.eo = !0; break; case b.Z.gw: b.hb.nr = "O"; b.hb.eo = !1; break; case b.Z.qk: b.hb.nr = "ms"; b.hb.eo = !1; break; default: b.hb.nr = "webkit", b.hb.eo = !0 } b.hb.PY = b.hb.nr + "Transform"; b.hb.translate = b.hb.eo ? function(a) { return "translate3d(" + a.x + "px, " + a.y + "px, 0) " } : function(a) { return "translate(" + a.x + "px, " + a.y + "px) " }; b.hb.rotate = b.hb.eo ? function(a) { return "rotateZ(" + a + "deg) " } : function(a) { return "rotate(" + a + "deg) " }; b.hb.scale = function(a) { return "scale(" + a.x + ", " + a.y + ") " }; b.hb.vo = function(a) { return "skewX(" + -a.x + "deg) skewY(" + a.y + "deg)" }; b.cZ = function(a) { return b.hb(document.createElement(a)) }; b.hb.j4 = function(d) { var a = 0, c = 0; do { a += d.offsetLeft, c += d.offsetTop } while (d = d.offsetParent); return { x: a, y: c } }; b.o_ = -1; b.PI = Math.PI; b.SL = parseFloat("3.402823466e+38F"); b.e_ = parseFloat("1.175494351e-38F"); b.YM = b.PI / 180; b.GC = 180 / b.PI; b.TD = 4294967295; b.wo = function(e, a, c) { if (!b.ar(c) || b.Gi(c.x) || b.Gi(c.y)) { b.log(b.j.wo) } else { var d = c[e]; c[e] = c[a]; c[a] = d } }; b.gW = function(d, a, c) { return d + (a - d) * c }; b.s9 = function() { return 16777215 * Math.random() }; b.u9 = function() { return 2 * (Math.random() - 0.5) }; b.t9 = Math.random; b.Ce = function(a) { return a * b.YM }; b.QB = function(a) { return a * b.GC }; b.OJ = function(a) { b.log(b.j.OJ); return a * b.GC }; b.fg = Number.MAX_VALUE - 1; b.qf = b.IM ? 1 : 770; b.pf = 771; b.f8 = function(a) { a.va && (a.va.Ub(), a.va.Ih()) }; b.M3 = function() {}; b.R2 = function() {}; b.Xf = function() { b.df += 1 }; b.ps = 1.192092896e-7; b.jb = b.ww ? function() { return b.I.Kk } : function() { return 1 }; b.FW = function(c) { var a = b.jb(); return b.d(c.x * a, c.y * a) }; b.EW = function(c) { var a = b.jb(); return b.d(c.x / a, c.y / a) }; b.$y = function(d, a) { var c = b.jb(); a.x = d.x / c; a.y = d.y / c }; b.kY = function(c) { var a = b.jb(); return b.size(c.width * a, c.height * a) }; b.jY = function(c) { var a = b.jb(); return b.size(c.width / a, c.height / a) }; b.lH = function(d, a) { var c = b.jb(); a.width = d.width / c; a.height = d.height / c }; b.Cv = b.ww ? function(c) { var a = b.jb(); return b.rect(c.x / a, c.y / a, c.width / a, c.height / a) } : function(a) { return a }; b.rr = b.ww ? function(c) { var a = b.jb(); return b.rect(c.x * a, c.y * a, c.width * a, c.height * a) } : function(a) { return a }; b.ONE = 1; b.ZERO = 0; b.SRC_ALPHA = 770; b.SRC_ALPHA_SATURATE = 776; b.SRC_COLOR = 768; b.DST_ALPHA = 772; b.DST_COLOR = 774; b.ONE_MINUS_SRC_ALPHA = 771; b.ONE_MINUS_SRC_COLOR = 769; b.ONE_MINUS_DST_ALPHA = 773; b.ONE_MINUS_DST_COLOR = 775; b.ONE_MINUS_CONSTANT_ALPHA = 32772; b.ONE_MINUS_CONSTANT_COLOR = 32770; b.LINEAR = 9729; b.REPEAT = 10497; b.CLAMP_TO_EDGE = 33071; b.MIRRORED_REPEAT = 33648; b.Pn = function() { if (b.sr === b.Lb) { var a = b.s.getError(); a && b.log(b.j.Pn, a) } }; b.VZ = 0; b.TZ = 1; b.WZ = 2; b.UZ = 3; b.SZ = 2; b.B0 = 0; b.ad = 1; b.op = 2; b.pm = 4; b.pp = b.ad | b.op | b.pm; b.k_ = 0; b.ab = 0; b.ne = 1; b.Ed = 2; b.C0 = 3; b.mp = 0; b.lp = 1; b.om = 2; b.Ns = 3; b.Ms = 4; b.Ls = 5; b.np = 6; b.jx = 7; b.z0 = 8; b.Ak = "ShaderPositionTextureColor"; b.gD = "ShaderPositionTextureColorAlphaTest"; b.zs = "ShaderPositionColor"; b.kp = "ShaderPositionTexture"; b.Vw = "ShaderPositionTexture_uColor"; b.Uw = "ShaderPositionTextureA8Color"; b.Ww = "ShaderPosition_uColor"; b.fD = "ShaderPositionLengthTextureColor"; b.FO = "CC_PMatrix"; b.DO = "CC_MVMatrix"; b.EO = "CC_MVPMatrix"; b.JO = "CC_Time"; b.IO = "CC_SinTime"; b.CO = "CC_CosTime"; b.GO = "CC_Random01"; b.HO = "CC_Texture0"; b.y0 = "CC_alpha_value"; b.Do = "a_color"; b.pk = "a_position"; b.$l = "a_texCoord"; b.cM = 32; b.CC = 3233828865; b.Os = 3233828866; b.pM = 8801; b.aN = 8802; b.xL = 8803; b.Hq = function(d, a) { if (d && 0 < d.length) { for (var c = 0; c < d.length; c++) { if (!(d[c] instanceof a)) { return b.log("element type is wrong!"), !1 } } } return !0 }; b.fe = function(e, a) { for (var c = 0, d = e.length; c < d; c++) { if (e[c] === a) { e.splice(c, 1); break } } }; b.e2 = function(e, a) { for (var c = 0, d = a.length; c < d; c++) { b.fe(e, a[c]) } }; b.d2 = function(d, a, c) { d.splice.apply(d, [c, 0].concat(a)); return d }; b.xI = function(e) { var a, c = e.length, d = Array(c); for (a = 0; a < c; a += 1) { d[a] = e[a] } return d }; b = b || {}; b.na = b.na || {}; b.na.lx = function() { b.color = function(f, g, h, c, d, e) { return void 0 === f ? new b.Bd(0, 0, 0, 255, d, e) : b.ge(f) ? (f = b.gJ(f), new b.Bd(f.r, f.g, f.b, f.a)) : b.ar(f) ? new b.Bd(f.r, f.g, f.b, f.a, f.arrayBuffer, f.offset) : new b.Bd(f, g, h, c, d, e) }; b.Bd = function(e, f, g, h, k, c) { this.zc = k || new ArrayBuffer(b.Bd.BYTES_PER_ELEMENT); this.Eb = c || 0; k = this.zc; c = this.Eb; var d = Uint8Array.BYTES_PER_ELEMENT; this.kz = new Uint8Array(k, c, 1); this.fy = new Uint8Array(k, c + d, 1); this.xx = new Uint8Array(k, c + 2 * d, 1); this.rx = new Uint8Array(k, c + 3 * d, 1); this.kz[0] = e || 0; this.fy[0] = f || 0; this.xx[0] = g || 0; this.rx[0] = null == h ? 255 : h; void 0 === h && (this.aS = !0) }; b.Bd.BYTES_PER_ELEMENT = 4; var a = b.Bd.prototype; a.YP = function() { return this.kz[0] }; a.vR = function(c) { this.kz[0] = 0 > c ? 0 : c }; a.QP = function() { return this.fy[0] }; a.sR = function(c) { this.fy[0] = 0 > c ? 0 : c }; a.iy = function() { return this.xx[0] }; a.yz = function(c) { this.xx[0] = 0 > c ? 0 : c }; a.gy = function() { return this.rx[0] }; a.vz = function(c) { this.rx[0] = 0 > c ? 0 : c }; b.l(a, "r", a.YP, a.vR); b.l(a, "g", a.QP, a.sR); b.l(a, "b", a.iy, a.yz); b.l(a, "a", a.gy, a.vz); z = function(f, c, d, e) { this.zc = d || new ArrayBuffer(z.BYTES_PER_ELEMENT); this.Eb = e || 0; this.rl = new Float32Array(this.zc, this.Eb, 1); this.sl = new Float32Array(this.zc, this.Eb + 4, 1); this.rl[0] = f || 0; this.sl[0] = c || 0 }; z.BYTES_PER_ELEMENT = 8; a = z.prototype; a.wy = function() { return this.rl[0] }; a.Mz = function(c) { this.rl[0] = c }; a.xy = function() { return this.sl[0] }; a.Nz = function(c) { this.sl[0] = c }; b.l(a, "x", a.wy, a.Mz); b.l(a, "y", a.xy, a.Nz); D = function(g, c, d, e, f) { this.zc = e || new ArrayBuffer(D.BYTES_PER_ELEMENT); this.Eb = f || 0; e = this.zc; f = this.Eb; this.rl = new Float32Array(e, f, 1); this.rl[0] = g || 0; this.sl = new Float32Array(e, f + Float32Array.BYTES_PER_ELEMENT, 1); this.sl[0] = c || 0; this.rA = new Float32Array(e, f + 2 * Float32Array.BYTES_PER_ELEMENT, 1); this.rA[0] = d || 0 }; D.BYTES_PER_ELEMENT = 12; a = D.prototype; a.wy = function() { return this.rl[0] }; a.Mz = function(c) { this.rl[0] = c }; a.xy = function() { return this.sl[0] }; a.Nz = function(c) { this.sl[0] = c }; a.kQ = function() { return this.rA[0] }; a.ER = function(c) { this.rA[0] = c }; b.l(a, "x", a.wy, a.Mz); b.l(a, "y", a.xy, a.Nz); b.l(a, "z", a.kQ, a.ER); E = function(f, c, d, e) { this.zc = d || new ArrayBuffer(E.BYTES_PER_ELEMENT); this.Eb = e || 0; this.fA = new Float32Array(this.zc, this.Eb, 1); this.iA = new Float32Array(this.zc, this.Eb + 4, 1); this.fA[0] = f || 0; this.iA[0] = c || 0 }; E.BYTES_PER_ELEMENT = 8; a = E.prototype; a.eQ = function() { return this.fA[0] }; a.CR = function(c) { this.fA[0] = c }; a.hQ = function() { return this.iA[0] }; a.DR = function(c) { this.iA[0] = c }; b.l(a, "u", a.eQ, a.CR); b.l(a, "v", a.hQ, a.DR); b.Pw = function(f, g, h, c, d, e) { this.zc = d || new ArrayBuffer(b.Pw.BYTES_PER_ELEMENT); this.Eb = e || 0; d = this.zc; e = z.BYTES_PER_ELEMENT; this.An = f ? new z(f.x, f.y, d, 0) : new z(0, 0, d, 0); this.Dn = g ? new z(g.x, g.y, d, e) : new z(0, 0, d, e); this.ym = h ? new z(h.x, h.y, d, 2 * e) : new z(0, 0, d, 2 * e); this.Cm = c ? new z(c.x, c.y, d, 3 * e) : new z(0, 0, d, 3 * e) }; b.Pw.BYTES_PER_ELEMENT = 32; a = b.Pw.prototype; a.sy = function() { return this.An }; a.Iz = function(c) { this.An.x = c.x; this.An.y = c.y }; a.ty = function() { return this.Dn }; a.Jz = function(c) { this.Dn.x = c.x; this.Dn.y = c.y }; a.jy = function() { return this.ym }; a.zz = function(c) { this.ym.x = c.x; this.ym.y = c.y }; a.ky = function() { return this.Cm }; a.Az = function(c) { this.Cm.x = c.x; this.Cm.y = c.y }; b.l(a, "tl", a.sy, a.Iz); b.l(a, "tr", a.ty, a.Jz); b.l(a, "bl", a.jy, a.zz); b.l(a, "br", a.ky, a.Az); b.cD = function(f, c, d, e) { this.bl = f || new D(0, 0, 0); this.br = c || new D(0, 0, 0); this.tl = d || new D(0, 0, 0); this.tr = e || new D(0, 0, 0) }; b.uf = function(f, g, h, c, d) { this.zc = c || new ArrayBuffer(b.uf.BYTES_PER_ELEMENT); this.Eb = d || 0; c = this.zc; d = this.Eb; var e = D.BYTES_PER_ELEMENT; this.Ga = f ? new D(f.x, f.y, f.z, c, d) : new D(0, 0, 0, c, d); this.Ep = g ? b.color(g.r, g.g, g.b, g.a, c, d + e) : b.color(0, 0, 0, 0, c, d + e); this.Ye = h ? new E(h.u, h.v, c, d + e + b.Bd.BYTES_PER_ELEMENT) : new E(0, 0, c, d + e + b.Bd.BYTES_PER_ELEMENT) }; b.uf.BYTES_PER_ELEMENT = 24; a = b.uf.prototype; a.vy = function() { return this.Ga }; a.Lz = function(d) { var c = this.Ga; c.x = d.x; c.y = d.y; c.z = d.z }; a.ny = function() { return this.Ep }; a.Bz = function(d) { var c = this.Ep; c.r = d.r; c.g = d.g; c.b = d.b; c.a = d.a }; a.uy = function() { return this.Ye }; a.Kz = function(c) { this.Ye.u = c.u; this.Ye.v = c.v }; b.l(a, "vertices", a.vy, a.Lz); b.l(a, "colors", a.ny, a.Bz); b.l(a, "texCoords", a.uy, a.Kz); b.Qb = function(e, f, g, h, k, c) { this.zc = k || new ArrayBuffer(b.Qb.BYTES_PER_ELEMENT); this.Eb = c || 0; k = this.zc; c = this.Eb; var d = b.uf.BYTES_PER_ELEMENT; this.An = e ? new b.uf(e.vertices, e.colors, e.texCoords, k, c) : new b.uf(null, null, null, k, c); this.ym = f ? new b.uf(f.vertices, f.colors, f.texCoords, k, c + d) : new b.uf(null, null, null, k, c + d); this.Dn = g ? new b.uf(g.vertices, g.colors, g.texCoords, k, c + 2 * d) : new b.uf(null, null, null, k, c + 2 * d); this.Cm = h ? new b.uf(h.vertices, h.colors, h.texCoords, k, c + 3 * d) : new b.uf(null, null, null, k, c + 3 * d) }; b.Qb.BYTES_PER_ELEMENT = 96; a = b.Qb.prototype; a.sy = function() { return this.An }; a.Iz = function(d) { var c = this.An; c.vertices = d.vertices; c.colors = d.colors; c.texCoords = d.texCoords }; a.jy = function() { return this.ym }; a.zz = function(d) { var c = this.ym; c.vertices = d.vertices; c.colors = d.colors; c.texCoords = d.texCoords }; a.ty = function() { return this.Dn }; a.Jz = function(d) { var c = this.Dn; c.vertices = d.vertices; c.colors = d.colors; c.texCoords = d.texCoords }; a.ky = function() { return this.Cm }; a.Az = function(d) { var c = this.Cm; c.vertices = d.vertices; c.colors = d.colors; c.texCoords = d.texCoords }; a.GP = function() { return this.zc }; b.l(a, "tl", a.sy, a.Iz); b.l(a, "tr", a.ty, a.Jz); b.l(a, "bl", a.jy, a.zz); b.l(a, "br", a.ky, a.Az); b.l(a, "arrayBuffer", a.GP, null); b.LO = function() { return new b.Qb }; b.VD = function(f) { if (!f) { return b.LO() } var c = f.tl, d = f.bl, e = f.tr; f = f.br; return { tl: { vertices: { x: c.vertices.x, y: c.vertices.y, z: c.vertices.z }, colors: { r: c.colors.r, g: c.colors.g, b: c.colors.b, a: c.colors.a }, texCoords: { u: c.texCoords.u, v: c.texCoords.v } }, bl: { vertices: { x: d.vertices.x, y: d.vertices.y, z: d.vertices.z }, colors: { r: d.colors.r, g: d.colors.g, b: d.colors.b, a: d.colors.a }, texCoords: { u: d.texCoords.u, v: d.texCoords.v } }, tr: { vertices: { x: e.vertices.x, y: e.vertices.y, z: e.vertices.z }, colors: { r: e.colors.r, g: e.colors.g, b: e.colors.b, a: e.colors.a }, texCoords: { u: e.texCoords.u, v: e.texCoords.v } }, br: { vertices: { x: f.vertices.x, y: f.vertices.y, z: f.vertices.z }, colors: { r: f.colors.r, g: f.colors.g, b: f.colors.b, a: f.colors.a }, texCoords: { u: f.texCoords.u, v: f.texCoords.v } } } }; b.A0 = function(e) { if (!e) { return [] } for (var c = [], d = 0; d < e.length; d++) { c.push(b.VD(e[d])) } return c }; b.$c = function(f, g, h, c, d) { this.zc = c || new ArrayBuffer(b.$c.BYTES_PER_ELEMENT); this.Eb = d || 0; c = this.zc; d = this.Eb; var e = z.BYTES_PER_ELEMENT; this.Ga = f ? new z(f.x, f.y, c, d) : new z(0, 0, c, d); this.Ep = g ? b.color(g.r, g.g, g.b, g.a, c, d + e) : b.color(0, 0, 0, 0, c, d + e); this.Ye = h ? new E(h.u, h.v, c, d + e + b.Bd.BYTES_PER_ELEMENT) : new E(0, 0, c, d + e + b.Bd.BYTES_PER_ELEMENT) }; b.$c.BYTES_PER_ELEMENT = 20; a = b.$c.prototype; a.vy = function() { return this.Ga }; a.Lz = function(c) { this.Ga.x = c.x; this.Ga.y = c.y }; a.ny = function() { return this.Ep }; a.Bz = function(d) { var c = this.Ep; c.r = d.r; c.g = d.g; c.b = d.b; c.a = d.a }; a.uy = function() { return this.Ye }; a.Kz = function(c) { this.Ye.u = c.u; this.Ye.v = c.v }; b.l(a, "vertices", a.vy, a.Lz); b.l(a, "colors", a.ny, a.Bz); b.l(a, "texCoords", a.uy, a.Kz); b.Kb = function(f, g, h, c, d) { this.zc = c || new ArrayBuffer(b.Kb.BYTES_PER_ELEMENT); this.Eb = d || 0; c = this.zc; d = this.Eb; var e = b.$c.BYTES_PER_ELEMENT; this.aE = f ? new b.$c(f.vertices, f.colors, f.texCoords, c, d) : new b.$c(null, null, null, c, d); this.gE = g ? new b.$c(g.vertices, g.colors, g.texCoords, c, d + e) : new b.$c(null, null, null, c, d + e); this.lE = h ? new b.$c(h.vertices, h.colors, h.texCoords, c, d + 2 * e) : new b.$c(null, null, null, c, d + 2 * e) }; b.Kb.BYTES_PER_ELEMENT = 60; a = b.Kb.prototype; a.gy = function() { return this.aE }; a.vz = function(d) { var c = this.aE; c.vertices = d.vertices; c.colors = d.colors; c.texCoords = d.texCoords }; a.iy = function() { return this.gE }; a.yz = function(d) { var c = this.gE; c.vertices = d.vertices; c.colors = d.colors; c.texCoords = d.texCoords }; a.KP = function() { return this.lE }; a.oR = function(d) { var c = this.lE; c.vertices = d.vertices; c.colors = d.colors; c.texCoords = d.texCoords }; b.l(a, "a", a.gy, a.vz); b.l(a, "b", a.iy, a.yz); b.l(a, "c", a.KP, a.oR) }; b.na.Kw = function() { var a = b.color; a.iQ = function() { return a(255, 255, 255) }; a.jQ = function() { return a(255, 255, 0) }; a.IP = function() { return a(0, 0, 255) }; a.SP = function() { return a(0, 255, 0) }; a.ZP = function() { return a(255, 0, 0) }; a.UP = function() { return a(255, 0, 255) }; a.HP = function() { return a(0, 0, 0) }; a.XP = function() { return a(255, 127, 0) }; a.RP = function() { return a(166, 166, 166) }; b.l(a, "WHITE", a.iQ); b.l(a, "YELLOW", a.jQ); b.l(a, "BLUE", a.IP); b.l(a, "GREEN", a.SP); b.l(a, "RED", a.ZP); b.l(a, "MAGENTA", a.UP); b.l(a, "BLACK", a.HP); b.l(a, "ORANGE", a.XP); b.l(a, "GRAY", a.RP); b.Wb.qP = function() { return new b.Wb(b.ONE, b.ZERO) }; b.Wb.cP = function() { return new b.Wb(b.ONE, b.ONE_MINUS_SRC_ALPHA) }; b.Wb.bP = function() { return new b.Wb(b.SRC_ALPHA, b.ONE_MINUS_SRC_ALPHA) }; b.Wb.aP = function() { return new b.Wb(b.SRC_ALPHA, b.ONE) }; b.l(b.Wb, "DISABLE", b.Wb.qP); b.l(b.Wb, "ALPHA_PREMULTIPLIED", b.Wb.cP); b.l(b.Wb, "ALPHA_NON_PREMULTIPLIED", b.Wb.bP); b.l(b.Wb, "ADDITIVE", b.Wb.aP) }; b.Bd = function(e, a, c, d) { this.r = e || 0; this.g = a || 0; this.b = c || 0; this.a = null == d ? 255 : d }; b.color = function(e, a, c, d) { return void 0 === e ? { r: 0, g: 0, b: 0, a: 255 } : b.ge(e) ? b.gJ(e) : b.ar(e) ? { r: e.r, g: e.g, b: e.b, a: null == e.a ? 255 : e.a } : { r: e, g: a, b: c, a: null == d ? 255 : d } }; b.y2 = function(c, a) { return c.r === a.r && c.g === a.g && c.b === a.b }; function ha() { this.timestamp = this.z = this.y = this.x = 0 } function z(c, a) { this.x = c || 0; this.y = a || 0 } b.dw = function(c, a) { return new z(c, a) }; function D(d, a, c) { this.x = d || 0; this.y = a || 0; this.z = c || 0 } b.aca = function(d, a, c) { return new D(d, a, c) }; function E(c, a) { this.u = c || 0; this.v = a || 0 } b.Cba = function(c, a) { return new E(c, a) }; b.Wb = function(c, a) { this.src = c; this.ya = a }; b.l2 = function() { return new b.Wb(b.ONE, b.ZERO) }; b.gJ = function(a) { a = a.replace(/^#?/, "0x"); a = parseInt(a); return b.color(a >> 16, (a >> 8) % 256, a % 256) }; b.z2 = function(e) { var a = e.r.toString(16), c = e.g.toString(16), d = e.b.toString(16); return "#" + (16 > e.r ? "0" + a : a) + (16 > e.g ? "0" + c : c) + (16 > e.b ? "0" + d : d) }; b.Es = 0; b.mm = 1; b.nD = 2; b.qp = 0; b.MO = 1; b.WD = 2; b.H0 = b.Ia.extend({ fn: null, Aq: null, px: 0, ctor: function() { this.fn = {}; this.Aq = {}; this.px = 2 << (0 | 10 * Math.random()) }, WO: function() { this.px++; return "key_" + this.px }, maa: function(d, a) { if (null != a) { var c = this.WO(); this.fn[c] = a; this.Aq[c] = d } }, tW: function(d) { if (null == d) { return null } var a = this.fn, c; for (c in a) { if (a[c] === d) { return this.Aq[c] } } return null }, Yba: function(a) { return this.tW(a) }, VW: function(d) { if (null != d) { var a = this.fn, c; for (c in a) { if (a[c] === d) { delete this.Aq[c]; delete a[c]; break } } } }, R9: function(c) { if (null != c) { for (var a = 0; a < c.length; a++) { this.VW(c[a]) } } }, ES: function() { var d = [], a = this.fn, c; for (c in a) { d.push(a[c]) } return d }, J9: function() { this.fn = {}; this.Aq = {} }, count: function() { return this.ES().length } }); function ia(c) { this.fontName = "Arial"; this.fontSize = 12; this.textAlign = b.mm; this.verticalAlign = b.qp; this.fillStyle = b.color(255, 255, 255, 255); this.boundingHeight = this.boundingWidth = 0; this.nC = !1; this.strokeStyle = b.color(255, 255, 255, 255); this.lineWidth = 1; this.fontWeight = this.fontStyle = this.lineHeight = "normal"; this.FK = !1; this.shadowBlur = this.shadowOffsetY = this.shadowOffsetX = 0; this.shadowOpacity = 1; if (c && c instanceof Object) { for (var a in c) { this[a] = c[a] } } } function ja(a) { return a.fontStyle + " " + a.fontWeight + " " + a.fontSize + "px/" + (a.lineHeight.charAt ? a.lineHeight : a.lineHeight + "px") + " '" + a.fontName + "'" } b.ua === b.Lb && (b.assert(b.nd(b.na.lx), b.j.Og, "CCTypesWebGL.js"), b.na.lx(), delete b.na.lx); b.assert(b.nd(b.na.Kw), b.j.Og, "CCTypesPropertyDefine.js"); b.na.Kw(); delete b.na.Kw; b.v0 = []; b.w0 = {}; b.PZ = "device-dpi"; b.uL = "high-dpi"; b.RZ = "medium-dpi"; b.QZ = "low-dpi"; b.Ke = { oa: function() { this.iJ = document.getElementsByTagName("html")[0] }, availWidth: function(a) { return a && a !== this.iJ ? a.clientWidth : window.innerWidth }, availHeight: function(a) { return a && a !== this.iJ ? a.clientHeight : window.innerHeight }, vv: { width: "device-width", "user-scalable": "no" }, VH: b.Z.Sf }; - 1 < window.navigator.userAgent.indexOf("OS 8_1_") && (b.Ke.VH = b.Z.am); switch (b.Ke.VH) { case b.Z.rk: b.Ke.vv["minimal-ui"] = "true"; b.Ke.availWidth = function(a) { return a.clientWidth }; b.Ke.availHeight = function(a) { return a.clientHeight }; break; case b.Z.Vi: b.Ke.__defineGetter__("target-densitydpi", function() { return b.view.xu }); case b.Z.BC: case b.Z.Rr: b.Ke.availWidth = function(a) { return a.clientWidth }; b.Ke.availHeight = function(a) { return a.clientHeight }; break; case b.Z.am: b.Ke.oa = function(c) { if (!c.up) { var a = function() { c.wr(c.lg.width, c.lg.height, c.ug); window.removeEventListener("resize", a, !1) }; window.addEventListener("resize", a, !1) } } } b.nw = b.Ia.extend({ R0: null, te: null, lg: null, $k: null, Nd: null, Vj: null, rz: !1, wx: !0, Mk: 1, nA: "", pz: null, Ca: 1, rG: 1, ib: 1, sG: 1, an: 0, Oy: 5, ug: null, RG: null, VG: null, UG: null, SG: null, TG: null, Up: !1, N0: !1, E1: null, GF: null, HF: null, z1: !1, Nx: null, zj: null, ey: 1, up: !1, NF: !0, xu: null, ctor: function() { var e = document, a = b.Yi, c = b.sf; b.Ke.oa(this); this.zj = b.yl.parentNode === e.body ? e.documentElement : b.yl.parentNode; this.te = b.size(0, 0); this.By(); var e = b.Oa.width, d = b.Oa.height; this.lg = b.size(e, d); this.$k = b.size(e, d); this.Nd = b.rect(0, 0, e, d); this.Vj = b.rect(0, 0, e, d); this.Nx = { left: 0, top: 0 }; this.nA = "Cocos2dHTML5"; e = b.Z; this.FI(e.dk === e.dp || e.dk === e.Cw); b.Yl && b.Yl.oa(this.Vj); this.RG = new b.ke(a.Yr, c.rw); this.VG = new b.ke(a.SM, c.SHOW_ALL); this.UG = new b.ke(a.Yr, c.Aw); this.SG = new b.ke(a.Yr, c.sw); this.TG = new b.ke(a.Yr, c.tw); this.GF = b.Oa; this.HF = b.s; this.xu = b.uL }, kq: function() { var d; d = this.wr ? this : b.view; var a = d.te.width, c = d.te.height; d.By(); if (d.te.width !== a || d.te.height !== c) { d.pz && d.pz.call(), a = d.$k.width, c = d.$k.height, 0 < a && d.wr(a, c, d.ug) } }, Haa: function(a) { this.xu = a; this.fH() }, b6: function() { return this.xu }, $W: function(a) { a ? this.up || (this.up = !0, b.Qa(window, "resize", this.kq), b.Qa(window, "orientationchange", this.kq)) : this.up && (this.up = !1, window.removeEventListener("resize", this.kq), window.removeEventListener("orientationchange", this.kq)) }, waa: function(a) { if (b.nd(a) || null == a) { this.pz = a } }, By: function() { var a = this.te; a.width = b.Ke.availWidth(this.zj); a.height = b.Ke.availHeight(this.zj) }, J0: function() { var c = this.$k.width, a = this.$k.height; 0 < c && this.wr(c, a, this.ug) }, fH: function() { if (this.NF) { var f = document.getElementById("cocosMetaElement"); f && document.head.removeChild(f); var a, c = (f = document.getElementsByName("viewport")) ? f[0] : null, d, f = b.ac("meta"); f.id = "cocosMetaElement"; f.name = "viewport"; f.content = ""; a = b.Ke.vv; d = c ? c.content : ""; for (var e in a) { RegExp(e).test(d) || (d += "," + e + "\x3d" + a[e]) } /^,/.test(d) && (d = d.substr(1)); f.content = d; c && (c.content = d); document.head.appendChild(f) } }, t1: function() { var a = b.jb(); this.ib = this.Ca = a }, o1: function() { this.Ca = this.rG; this.ib = this.sG }, K0: function() {}, $q: function() { this.Up = !0 }, vS: function(a) { this.NF = a }, FI: function(a) { this.rz = a ? !0 : !1 }, f7: function() { return this.rz }, L3: function(a) { this.wx = a ? !0 : !1 }, T6: function() { return this.wx }, end: function() {}, c7: function() { return null !== this.GF && null !== this.HF }, Y$: function(a) { this.ey = a; b.I.Sl(b.I.Zn()) }, xba: function() {}, daa: function() {}, J$: function(c, a) { this.Nx = { left: c, top: a } }, L4: function() { return this.Nx }, f5: function() { return b.size(this.te.width, this.te.height) }, X$: function(c, a) { this.te.width = c; this.te.height = a; this.zj.style.width = c + "px"; this.zj.style.height = a + "px"; this.kq(); b.I.Sl(b.I.Zn()) }, r2: function() {}, ao: function() { return b.size(this.Vj.width, this.Vj.height) }, bv: function() { return b.d(this.Vj.x, this.Vj.y) }, p2: function() { return !0 }, J5: function() { return this.ug }, NX: function(c) { if (c instanceof b.ke) { this.ug = c } else { var a = b.ke; c === a.rw && (this.ug = this.RG); c === a.SHOW_ALL && (this.ug = this.VG); c === a.Aw && (this.ug = this.UG); c === a.sw && (this.ug = this.SG); c === a.tw && (this.ug = this.TG) } }, wr: function(e, a, c) { if (0 < e || 0 < a) { if (this.NX(c), c = this.ug) { c.Nl(this); b.Z.yh && this.fH(); this.By(); this.$k.width = this.lg.width = e; this.$k.height = this.lg.height = a; var d = c.apply(this, this.lg); d.scale && 2 === d.scale.length && (this.Ca = d.scale[0], this.ib = d.scale[1]); d.viewport && (e = this.Nd, a = this.Vj, d = d.viewport, e.x = d.x, e.y = d.y, e.width = d.width, e.height = d.height, a.x = -e.x / this.Ca, a.y = -e.y / this.ib, a.width = b.Oa.width / this.Ca, a.height = b.Oa.height / this.ib, b.s.yr && b.s.yr(e.x, -e.y)); e = b.I; e.Hb.width = this.lg.width; e.Hb.height = this.lg.height; c.Ml(this); b.N.width = e.Hb.width; b.N.height = e.Hb.height; b.ua === b.Lb && (e.Im(), e.qK()); this.rG = this.Ca; this.sG = this.ib; b.yL && b.yL.n1(); b.Yl && b.Yl.oa(this.Vj) } else { b.log(b.j.IL) } } else { b.log(b.j.HL) } }, fB: function() { return b.size(this.lg.width, this.lg.height) }, gY: function(e, f, g, h) { var a = this.ey, c = this.Ca, d = this.ib; b.s.viewport(e * c * a + this.Nd.x * a, f * d * a + this.Nd.y * a, g * c * a, h * d * a) }, SX: function(e, f, g, h) { var a = this.ey, c = this.Ca, d = this.ib; b.s.scissor(e * c * a + this.Nd.x * a, f * d * a + this.Nd.y * a, g * c * a, h * d * a) }, i7: function() { var a = b.s; return a.isEnabled(a.SCISSOR_TEST) }, P5: function() { var d = b.s, a = this.Ca, c = this.ib, d = d.getParameter(d.SCISSOR_BOX); return b.rect((d[0] - this.Nd.x) / a, (d[1] - this.Nd.y) / c, d[2] / a, d[3] / c) }, dba: function(a) { null != a && 0 < a.length && (this.nA = a) }, q6: function() { return this.nA }, r6: function() { return this.Nd }, XI: function() { return this.Ca }, YI: function() { return this.ib }, T4: function() { return this.Mk }, HA: function(d, a, c) { return { x: this.Mk * (d - c.left), y: this.Mk * (c.top + c.height - a) } }, mP: function(d, a) { var c = this.Nd; d.x = (this.Mk * (d.x - a.left) - c.x) / this.Ca; d.y = (this.Mk * (a.top + a.height - d.y) - c.y) / this.ib }, it: function(d) { for (var e = this.Nd, f = this.Ca, g = this.ib, h, k, a, c = 0; c < d.length; c++) { h = d[c], k = h.Dc, a = h.tg, h.Gz((k.x - e.x) / f, (k.y - e.y) / g), h.kl((a.x - e.x) / f, (a.y - e.y) / g) } } }); b.nw.py = function() { this.Ft || (this.Ft = this.Ft || new b.nw, this.Ft.$q()); return this.Ft }; b.Yi = b.Ia.extend({ Nl: function() {}, apply: function() {}, Ml: function() {}, Oz: function(f, g, a) { var c = f.zj; b.view.wx && b.Z.yh && c === document.documentElement && b.screen.RS(c); var c = b.Oa, d = b.yl; d.style.width = c.style.width = g + "px"; d.style.height = c.style.height = a + "px"; d = f.Mk = 1; f.rz && (d = f.Mk = window.devicePixelRatio || 1); c.width = g * d; c.height = a * d; b.s.XJ && b.s.XJ(); f = document.body; var e; f && (e = f.style) && (e.paddingTop = e.paddingTop || "0px", e.paddingRight = e.paddingRight || "0px", e.paddingBottom = e.paddingBottom || "0px", e.paddingLeft = e.paddingLeft || "0px", e.borderTop = e.borderTop || "0px", e.borderRight = e.borderRight || "0px", e.borderBottom = e.borderBottom || "0px", e.borderLeft = e.borderLeft || "0px", e.marginTop = e.marginTop || "0px", e.marginRight = e.marginRight || "0px", e.marginBottom = e.marginBottom || "0px", e.marginLeft = e.marginLeft || "0px") }, rF: function() { document.body.insertBefore(b.yl, document.body.firstChild); var a = document.body.style; a.width = window.innerWidth + "px"; a.height = window.innerHeight + "px"; a.overflow = "hidden"; a = b.yl.style; a.position = "fixed"; a.left = a.top = "0px"; document.body.scrollTop = 0 } }); b.sf = b.Ia.extend({ qz: { scale: [1, 1], viewport: null }, Bp: function(f, g, a, c, d, e) { 2 > Math.abs(f - a) && (a = f); 2 > Math.abs(g - c) && (c = g); f = b.rect(Math.round((f - a) / 2), Math.round((g - c) / 2), a, c); this.qz.scale = [d, e]; this.qz.viewport = f; return this.qz }, Nl: function() {}, apply: function() { return { scale: [1, 1] } }, Ml: function() {} }); (function() { var f = b.Yi.extend({ apply: function(g) { this.Oz(g, g.te.width, g.te.height) } }), a = b.Yi.extend({ apply: function(h, j) { var t = h.te.width, u = h.te.height, i = b.yl.style, k = j.width, p = j.height, s = t / k, r = u / p, g, v; s < r ? (g = t, v = p * s) : (g = k * r, v = u); k = Math.round((t - g) / 2); v = Math.round((u - v) / 2); this.Oz(h, t - 2 * k, u - 2 * v); i.marginLeft = k + "px"; i.marginRight = k + "px"; i.marginTop = v + "px"; i.marginBottom = v + "px" } }); f.extend({ Nl: function(g) { this._super(g); g.zj = document.documentElement }, apply: function(g) { this._super(g); this.rF() } }); a.extend({ Nl: function(g) { this._super(g); g.zj = document.documentElement }, apply: function(h, g) { this._super(h, g); this.rF() } }); var c = b.Yi.extend({ apply: function(g) { this.Oz(g, b.Oa.width, b.Oa.height) } }); b.Yi.Yr = new f; b.Yi.SM = new a; b.Yi.U_ = new c; var f = b.sf.extend({ apply: function(h, i) { var j = b.Oa.width, g = b.Oa.height; return this.Bp(j, g, j, g, j / i.width, g / i.height) } }), a = b.sf.extend({ apply: function(h, j) { var t = b.Oa.width, u = b.Oa.height, i = j.width, k = j.height, p = t / i, s = u / k, r = 0, g, v; p < s ? (r = p, g = t, v = k * r) : (r = s, g = i * r, v = u); return this.Bp(t, u, g, v, r, r) } }), c = b.sf.extend({ apply: function(h, j) { var t = b.Oa.width, u = b.Oa.height, i = j.width, k = j.height, p = t / i, s = u / k, r, g, v; p < s ? (r = s, g = i * r, v = u) : (r = p, g = t, v = k * r); return this.Bp(t, u, g, v, r, r) } }), d = b.sf.extend({ apply: function(g, h) { var i = b.Oa.width, j = b.Oa.height, k = j / h.height; return this.Bp(i, j, i, j, k, k) }, Ml: function(g) { b.I.Hb = g.ao() } }), e = b.sf.extend({ apply: function(g, h) { var i = b.Oa.width, j = b.Oa.height, k = i / h.width; return this.Bp(i, j, i, j, k, k) }, Ml: function(g) { b.I.Hb = g.ao() } }); b.sf.rw = new f; b.sf.SHOW_ALL = new a; b.sf.Aw = new c; b.sf.sw = new d; b.sf.tw = new e })(); b.ke = b.Ia.extend({ gt: null, ht: null, ctor: function(c, a) { this.qX(c); this.rX(a) }, Nl: function(a) { this.gt.Nl(a); this.ht.Nl(a) }, apply: function(c, a) { this.gt.apply(c, a); return this.ht.apply(c, a) }, Ml: function(a) { this.gt.Ml(a); this.ht.Ml(a) }, qX: function(a) { a instanceof b.Yi && (this.gt = a) }, rX: function(a) { a instanceof b.sf && (this.ht = a) } }); b.ke.rw = 0; b.ke.Aw = 1; b.ke.SHOW_ALL = 2; b.ke.sw = 3; b.ke.tw = 4; b.ke.UD = 5; b.screen = { uu: !1, ez: null, dA: "", Pk: null, xP: [ ["requestFullscreen", "exitFullscreen", "fullscreenchange", "fullscreenEnabled", "fullscreenElement"], ["requestFullScreen", "exitFullScreen", "fullScreenchange", "fullScreenEnabled", "fullScreenElement"], ["webkitRequestFullScreen", "webkitCancelFullScreen", "webkitfullscreenchange", "webkitIsFullScreen", "webkitCurrentFullScreenElement"], ["mozRequestFullScreen", "mozCancelFullScreen", "mozfullscreenchange", "mozFullScreen", "mozFullScreenElement"], ["msRequestFullscreen", "msExitFullscreen", "MSFullscreenChange", "msFullscreenEnabled", "msFullscreenElement"] ], oa: function() { this.Pk = {}; var e, a, c = this.xP, d; e = 0; for (l = c.length; e < l; e++) { if ((a = c[e]) && a[1] in document) { e = 0; for (d = a.length; e < d; e++) { this.Pk[c[0][e]] = a[e] } break } } this.uu = "undefined" !== typeof this.Pk.requestFullscreen; this.dA = "ontouchstart" in window ? "touchstart" : "mousedown" }, fullScreen: function() { return this.uu && document[this.Pk.fullscreenElement] }, WJ: function(d, a) { if (this.uu) { d = d || document.documentElement; if (a) { var c = this.Pk.o4; this.ez && document.removeEventListener(c, this.ez); this.ez = a; b.Qa(document, c, a, !1) } return d[this.Pk.requestFullscreen]() } }, P3: function() { return this.uu ? document[this.Pk.exitFullscreen]() : !0 }, RS: function(f, a) { function c() { e.WJ(f, a); d.removeEventListener(e.dA, c) } f = f || document.body; var d = b.Oa || f, e = this; this.WJ(f, a); b.Qa(d, this.dA, c) } }; b.screen.oa(); b.Yl = { NK: b.d(0, 0), OK: b.d(0, 0), top: b.d(0, 0), gI: b.d(0, 0), hI: b.d(0, 0), bottom: b.d(0, 0), nI: b.d(0, 0), left: b.d(0, 0), right: b.d(0, 0), width: 0, height: 0, oa: function(f) { var g = this.width = f.width, a = this.height = f.height, c = f.x; f = f.y; var d = f + a, e = c + g; this.NK.x = c; this.NK.y = d; this.OK.x = e; this.OK.y = d; this.top.x = c + g / 2; this.top.y = d; this.gI.x = c; this.gI.y = f; this.hI.x = e; this.hI.y = f; this.bottom.x = c + g / 2; this.bottom.y = f; this.nI.x = c + g / 2; this.nI.y = f + a / 2; this.left.x = c; this.left.y = f + a / 2; this.right.x = e; this.right.y = f + a / 2 } }; b.zO = -90; b.AO = 90; b.BO = 180; b.x0 = 0; b.uJ = { jn: !1, SF: !1, zG: b.d(0, 0), bR: b.d(0, 0), AG: [], fz: 0, Qj: [], eA: {}, an: 0, Oy: 5, sx: !1, Vs: 1 / 30, cE: 1, rm: 0, tx: null, Us: null, fQ: function() { for (var c = this.an, a = 0; a < this.Oy; a++) { if (!(c & 1)) { return this.an |= 1 << a, a } c >>= 1 } return -1 }, eR: function(a) { 0 > a || a >= this.Oy || (a = ~(1 << a), this.an &= a) }, Bj: null, uB: function(h) { for (var k, m, a, c = [], d = this.eA, e = 0, f = h.length; e < f; e++) { if (k = h[e], a = k.ue, m = d[a], null == m) { var g = this.fQ(); - 1 === g ? b.log(b.j.MV, g) : (m = this.Qj[g] = new b.Js(k.Dc.x, k.Dc.y, k.ue), m.kl(k.tg), d[a] = g, c.push(m)) } } 0 < c.length && (this.Bj.it(c), h = new b.tf(c), h.wj = b.tf.fm.fw, b.ka.dispatchEvent(h)) }, vB: function(e) { for (var f, g, h = [], a = this.Qj, c = 0, d = e.length; c < d; c++) { f = e[c], g = f.ue, g = this.eA[g], null != g && a[g] && (a[g].Gz(f.Dc), a[g].kl(f.tg), h.push(a[g])) } 0 < h.length && (this.Bj.it(h), e = new b.tf(h), e.wj = b.tf.fm.zw, b.ka.dispatchEvent(e)) }, gv: function(a) { a = this.ZI(a); 0 < a.length && (this.Bj.it(a), a = new b.tf(a), a.wj = b.tf.fm.ow, b.ka.dispatchEvent(a)) }, fJ: function(a) { a = this.ZI(a); 0 < a.length && (this.Bj.it(a), a = new b.tf(a), a.wj = b.tf.fm.iw, b.ka.dispatchEvent(a)) }, ZI: function(h) { for (var k, m, a, c = [], d = this.Qj, e = this.eA, f = 0, g = h.length; f < g; f++) { k = h[f], a = k.ue, m = e[a], null != m && d[m] && (d[m].Gz(k.Dc), d[m].kl(k.tg), c.push(d[m]), this.eR(m), delete e[a]) } return c }, Fg: function(e) { var a = document.documentElement, c = window, d = null, d = b.nd(e.getBoundingClientRect) ? e.getBoundingClientRect() : e instanceof HTMLCanvasElement ? { left: 0, top: 0, width: e.width, height: e.height } : { left: 0, top: 0, width: parseInt(e.style.width), height: parseInt(e.style.height) }; return { left: d.left + c.pageXOffset - a.clientLeft, top: d.top + c.pageYOffset - a.clientTop, width: d.width, height: d.height } }, ZU: function(f) { for (var a = null, c = this.AG, d = f.ue, e = c.length - 1; 0 <= e; e--) { if (c[e].ue === d) { a = c[e]; break } } a || (a = f); return a }, LX: function(f) { for (var a = !1, c = this.AG, d = f.ue, e = c.length - 1; 0 <= e; e--) { if (c[e].ue === d) { c[e] = f; a = !0; break } } a || (50 >= c.length ? c.push(f) : (c[this.fz] = f, this.fz = (this.fz + 1) % 50)) }, Xq: function(e, a, c) { var d = this.zG; e = this.Bj.HA(e, a, c); a = new b.Js(e.x, e.y); a.kl(d.x, d.y); d.x = e.x; d.y = e.y; return a }, Xn: function(e, a, c) { var d = this.bR; this.Bj.mP(e, a); a = new b.oc(c); a.AX(e.x, e.y); a.uR(d.x, d.y); d.x = e.x; d.y = e.y; return a }, Yn: function(c, a) { if (null != c.pageX) { return { x: c.pageX, y: c.pageY } } a.left -= document.body.scrollLeft; a.top -= document.body.scrollTop; return { x: c.clientX, y: c.clientY } }, av: function(g, h) { for (var k = [], m = this.Bj, n, a, c = this.zG, d = g.changedTouches.length, e = 0; e < d; e++) { if (n = g.changedTouches[e]) { var f; f = b.Z.Wi === b.Z.Sf ? m.HA(n.pageX, n.pageY, h) : m.HA(n.clientX, n.clientY, h); null != n.identifier ? (n = new b.Js(f.x, f.y, n.identifier), a = this.ZU(n).Zj(), n.kl(a.x, a.y), this.LX(n)) : (n = new b.Js(f.x, f.y), n.kl(c.x, c.y)); c.x = f.x; c.y = f.y; k.push(n) } } return k }, OW: function(f) { if (!this.SF) { this.Bj = b.view; var g = this, a = "mouse" in b.Z.CA, c = "touches" in b.Z.CA, d = !1; b.Z.yh && (d = !0); a && (b.Qa(window, "mousedown", function() { g.jn = !0 }, !1), b.Qa(window, "mouseup", function(i) { if (!d) { var j = g.jn; g.jn = !1; if (j) { var j = g.Fg(f), h = g.Yn(i, j); b.QJ(new b.Nh(j.left, j.top, j.width, j.height), h) || (g.gv([g.Xq(h.x, h.y, j)]), j = g.Xn(h, j, b.oc.kx), j.Rl(i.button), b.ka.dispatchEvent(j)) } } }, !1), b.Qa(f, "mousedown", function(i) { if (!d) { g.jn = !0; var j = g.Fg(f), h = g.Yn(i, j); g.uB([g.Xq(h.x, h.y, j)]); j = g.Xn(h, j, b.oc.HC); j.Rl(i.button); b.ka.dispatchEvent(j); i.stopPropagation(); i.preventDefault(); f.focus() } }, !1), b.Qa(f, "mouseup", function(i) { if (!d) { g.jn = !1; var j = g.Fg(f), h = g.Yn(i, j); g.gv([g.Xq(h.x, h.y, j)]); j = g.Xn(h, j, b.oc.kx); j.Rl(i.button); b.ka.dispatchEvent(j); i.stopPropagation(); i.preventDefault() } }, !1), b.Qa(f, "mousemove", function(i) { if (!d) { var j = g.Fg(f), h = g.Yn(i, j); g.vB([g.Xq(h.x, h.y, j)]); j = g.Xn(h, j, b.oc.RC); g.jn ? j.Rl(i.button) : j.Rl(null); b.ka.dispatchEvent(j); i.stopPropagation(); i.preventDefault() } }, !1), b.Qa(f, "mousewheel", function(i) { var j = g.Fg(f), h = g.Yn(i, j), j = g.Xn(h, j, b.oc.Tw); j.Rl(i.button); j.AK(0, i.wheelDelta); b.ka.dispatchEvent(j); i.stopPropagation(); i.preventDefault() }, !1), b.Qa(f, "DOMMouseScroll", function(i) { var j = g.Fg(f), h = g.Yn(i, j), j = g.Xn(h, j, b.oc.Tw); j.Rl(i.button); j.AK(0, -120 * i.detail); b.ka.dispatchEvent(j); i.stopPropagation(); i.preventDefault() }, !1)); if (window.navigator.msPointerEnabled) { var a = { MSPointerDown: g.uB, MSPointerMove: g.vB, MSPointerUp: g.gv, MSPointerCancel: g.fJ }, e; for (e in a) { (function(i, h) { b.Qa(f, i, function(j) { var k = g.Fg(f); k.left -= document.documentElement.scrollLeft; k.top -= document.documentElement.scrollTop; h.call(g, [g.Xq(j.clientX, j.clientY, k)]); j.stopPropagation() }, !1) })(e, a[e]) } } c && (b.Qa(f, "touchstart", function(i) { if (i.changedTouches) { var h = g.Fg(f); h.left -= document.body.scrollLeft; h.top -= document.body.scrollTop; g.uB(g.av(i, h)); i.stopPropagation(); i.preventDefault(); f.focus() } }, !1), b.Qa(f, "touchmove", function(i) { if (i.changedTouches) { var h = g.Fg(f); h.left -= document.body.scrollLeft; h.top -= document.body.scrollTop; g.vB(g.av(i, h)); i.stopPropagation(); i.preventDefault() } }, !1), b.Qa(f, "touchend", function(i) { if (i.changedTouches) { var h = g.Fg(f); h.left -= document.body.scrollLeft; h.top -= document.body.scrollTop; g.gv(g.av(i, h)); i.stopPropagation(); i.preventDefault() } }, !1), b.Qa(f, "touchcancel", function(i) { if (i.changedTouches) { var h = g.Fg(f); h.left -= document.body.scrollLeft; h.top -= document.body.scrollTop; g.fJ(g.av(i, h)); i.stopPropagation(); i.preventDefault() } }, !1)); this.MG(); this.LG(); this.SF = !0 } }, MG: function() {}, LG: function() {}, update: function(a) { this.rm > this.Vs && (this.rm -= this.Vs, b.ka.dispatchEvent(new b.NL(this.tx))); this.rm += a } }; var w = b.uJ; w.v$ = function(a) { this.sx !== a && (this.sx = a, a = b.I.th(), this.rm = 0, a.fk(this)) }; w.w$ = function(a) { this.Vs !== a && (this.Vs = a) }; w.MG = function() { b.Qa(b.Oa, "keydown", function(a) { b.ka.dispatchEvent(new b.KC(a.keyCode, !0)); a.stopPropagation(); a.preventDefault() }, !1); b.Qa(b.Oa, "keyup", function(a) { b.ka.dispatchEvent(new b.KC(a.keyCode, !1)); a.stopPropagation(); a.preventDefault() }, !1) }; w.LG = function() { var a = window; this.tx = new ha; this.Us = a.DeviceMotionEvent || a.DeviceOrientationEvent; b.Z.Sf === b.Z.zC && (this.Us = window.DeviceOrientationEvent); b.Qa(a, this.Us === a.DeviceMotionEvent ? "devicemotion" : "deviceorientation", this.vT.bind(this), !1) }; w.vT = function(f) { var g = window; if (this.sx) { var a = this.tx, c, d, e; this.Us === window.DeviceMotionEvent ? (e = f.accelerationIncludingGravity, c = this.cE * e.x * 0.1, d = this.cE * e.y * 0.1, e = 0.1 * e.z) : (c = f.gamma / 90 * 0.981, d = 0.981 * -(f.beta / 90), e = f.alpha / 90 * 0.981); b.Z.dk === b.Z.VC ? (a.x = -c, a.y = -d) : (a.x = c, a.y = d); a.z = e; a.timestamp = f.timeStamp || Date.now(); f = a.x; g.orientation === b.AO ? (a.x = -a.y, a.y = f) : g.orientation === b.zO ? (a.x = a.y, a.y = -f) : g.orientation === b.BO && (a.x = -a.x, a.y = -a.y) } }; delete w; b.qZ = function(f, g, a, c, d, e) { this.a = f; this.b = g; this.c = a; this.R = c; this.la = d; this.ma = e }; b.wS = function(c, a) { return { a: 1, b: 0, c: 0, R: 1, la: c, ma: a } }; b.hf = function(e, a, c) { var d; void 0 === c ? (c = a, d = e.x, e = e.y) : (d = e, e = a); return { x: c.a * d + c.c * e + c.la, y: c.b * d + c.R * e + c.ma } }; b.k1 = function(d, a, c) { return b.hf(d, a, c) }; b.gba = function(c, a) { return { width: a.a * c.width + a.c * c.height, height: a.b * c.width + a.R * c.height } }; b.U1 = function() { return { a: 1, b: 0, c: 0, R: 1, la: 0, ma: 0 } }; b.T1 = function() { return { a: 1, b: 0, c: 0, R: 1, la: 0, ma: 0 } }; b.RB = function(h, k) { var m = b.po(h), a = b.oo(h), c = b.pr(h), d = b.qr(h), e = b.hf(a, m, k), m = b.hf(c, m, k), a = b.hf(a, d, k), f = b.hf(c, d, k), c = Math.min(e.x, m.x, a.x, f.x), d = Math.max(e.x, m.x, a.x, f.x), g = Math.min(e.y, m.y, a.y, f.y), e = Math.max(e.y, m.y, a.y, f.y); return b.rect(c, g, d - c, e - g) }; b.JG = function(h, k) { var m = b.po(h), a = b.oo(h), c = b.pr(h), d = b.qr(h), e = b.hf(a, m, k), m = b.hf(c, m, k), a = b.hf(a, d, k), f = b.hf(c, d, k), c = Math.min(e.x, m.x, a.x, f.x), d = Math.max(e.x, m.x, a.x, f.x), g = Math.min(e.y, m.y, a.y, f.y), e = Math.max(e.y, m.y, a.y, f.y); h.x = c; h.y = g; h.width = d - c; h.height = e - g; return h }; b.zS = function(d, a, c) { return { a: d.a, b: d.b, c: d.c, R: d.R, la: d.la + d.a * a + d.c * c, ma: d.ma + d.b * a + d.R * c } }; b.yS = function(d, a, c) { return { a: d.a * a, b: d.b * a, c: d.c * c, R: d.R * c, la: d.la, ma: d.ma } }; b.xS = function(e, a) { var c = Math.sin(a), d = Math.cos(a); return { a: e.a * d + e.c * c, b: e.b * d + e.R * c, c: e.c * d - e.a * c, R: e.R * d - e.b * c, la: e.la, ma: e.ma } }; b.vl = function(c, a) { return { a: c.a * a.a + c.b * a.c, b: c.a * a.b + c.b * a.R, c: c.c * a.a + c.R * a.c, R: c.c * a.b + c.R * a.R, la: c.la * a.a + c.ma * a.c + a.la, ma: c.la * a.b + c.ma * a.R + a.ma } }; b.S1 = function(c, a) { return c.a === a.a && c.b === a.b && c.c === a.c && c.R === a.R && c.la === a.la && c.ma === a.ma }; b.$H = function(c) { var a = 1 / (c.a * c.R - c.b * c.c); return { a: a * c.R, b: -a * c.b, c: -a * c.c, R: a * c.a, la: a * (c.c * c.ma - c.R * c.la), ma: a * (c.b * c.la - c.a * c.ma) } }; b.aD = parseFloat("1.192092896e-07F"); b.NB = function(a) { return b.d(-a.x, -a.y) }; b.Hg = function(c, a) { return b.d(c.x + a.x, c.y + a.y) }; b.od = function(c, a) { return b.d(c.x - a.x, c.y - a.y) }; b.Li = function(c, a) { return b.d(c.x * a, c.y * a) }; b.JJ = function(c, a) { return b.Li(b.Hg(c, a), 0.5) }; b.lo = function(c, a) { return c.x * a.x + c.y * a.y }; b.uW = function(c, a) { return c.x * a.y - c.y * a.x }; b.Bv = function(a) { return b.d(-a.y, a.x) }; b.P8 = function(a) { return b.d(a.y, -a.x) }; b.O8 = function(c, a) { return b.Li(a, b.lo(c, a) / b.lo(a, a)) }; b.Q8 = function(c, a) { return b.d(c.x * a.x - c.y * a.y, c.x * a.y + c.y * a.x) }; b.V8 = function(c, a) { return b.d(c.x * a.x + c.y * a.y, c.y * a.x - c.x * a.y) }; b.HJ = function(a) { return b.lo(a, a) }; b.FJ = function(c, a) { return b.HJ(b.od(c, a)) }; b.GJ = function(a) { return Math.sqrt(b.HJ(a)) }; b.H8 = function(c, a) { return b.GJ(b.od(c, a)) }; b.$f = function(c) { var a = b.GJ(c); return 0 === a ? b.d(c) : b.Li(c, 1 / a) }; b.I8 = function(a) { return b.d(Math.cos(a), Math.sin(a)) }; b.U8 = function(a) { return Math.atan2(a.y, a.x) }; b.Kq = function(e, a, c) { if (a > c) { var d = a; a = c; c = d } return e < a ? a : e < c ? e : c }; b.EJ = function(d) { var a = b.d(0, 0), c = b.d(1, 1); return b.d(b.Kq(d.x, a.x, c.x), b.Kq(d.y, a.y, c.y)) }; b.J8 = function(a) { return b.d(a.width, a.height) }; b.G8 = function(c, a) { return b.d(a(c.x), a(c.y)) }; b.IJ = function(d, a, c) { return b.Hg(b.Li(d, 1 - c), b.Li(a, c)) }; b.K8 = function(d, a, c) { return d.x - c <= a.x && a.x <= d.x + c && d.y - c <= a.y && a.y <= d.y + c ? !0 : !1 }; b.F8 = function(c, a) { return b.d(c.x * a.x, c.y * a.y) }; b.DJ = function(e, a) { var c = b.$f(e), d = b.$f(a), c = Math.atan2(c.x * d.y - c.y * d.x, b.lo(c, d)); return Math.abs(c) < b.aD ? 0 : c }; b.E8 = function(d, a) { var c = Math.acos(b.lo(b.$f(d), b.$f(a))); return Math.abs(c) < b.aD ? 0 : c }; b.KJ = function(f, a, c) { f = b.od(f, a); var d = Math.cos(c); c = Math.sin(c); var e = f.x; f.x = e * d - f.y * c + a.x; f.y = e * c + f.y * d + a.y; return f }; b.MB = function(d, e, f, g, h) { if (d.x === e.x && d.y === e.y || f.x === g.x && f.y === g.y) { return !1 } var k = e.x - d.x; e = e.y - d.y; var a = g.x - f.x; g = g.y - f.y; var c = d.x - f.x; d = d.y - f.y; f = g * k - a * e; h.x = a * d - g * c; h.y = k * d - e * c; if (0 === f) { return 0 === h.x || 0 === h.y ? !0 : !1 } h.x /= f; h.y /= f; return !0 }; b.S8 = function(f, a, c, d) { var e = b.d(0, 0); return b.MB(f, a, c, d, e) && 0 <= e.x && 1 >= e.x && 0 <= e.y && 1 >= e.y ? !0 : !1 }; b.M8 = function(f, a, c, d) { var e = b.d(0, 0); return b.MB(f, a, c, d, e) ? (c = b.d(0, 0), c.x = f.x + e.x * (a.x - f.x), c.y = f.y + e.x * (a.y - f.y), c) : b.d(0, 0) }; b.R8 = function(c, a) { return null != c && null != a ? c.x === a.x && c.y === a.y : !1 }; b.W8 = function(a) { a.x = 0; a.y = 0 }; b.L8 = function(c, a) { c.x = a.x; c.y = a.y }; b.vW = function(c, a) { c.x *= a; c.y *= a }; b.T8 = function(c, a) { c.x -= a.x; c.y -= a.y }; b.D8 = function(c, a) { c.x += a.x; c.y += a.y }; b.N8 = function(a) { b.vW(a, 1 / Math.sqrt(a.x * a.x + a.y * a.y)) }; b.rC = function(m, r, a, c, e) { e += c; if (!(1 >= e)) { r *= 0.5; for (var n, p = e - 1, s = c; s < e; s++) { n = 2 * s; var t = b.d(m[2 * s], m[2 * s + 1]), d; if (0 === s) { d = b.Bv(b.$f(b.od(t, b.d(m[2 * (s + 1)], m[2 * (s + 1) + 1])))) } else { if (s === p) { d = b.Bv(b.$f(b.od(b.d(m[2 * (s - 1)], m[2 * (s - 1) + 1]), t))) } else { d = b.d(m[2 * (s - 1)], m[2 * (s - 1) + 1]); var g = b.d(m[2 * (s + 1)], m[2 * (s + 1) + 1]), k = b.$f(b.od(g, t)), h = b.$f(b.od(d, t)), f = Math.acos(b.lo(k, h)); d = f < b.Ce(70) ? b.Bv(b.$f(b.JJ(k, h))) : f < b.Ce(170) ? b.$f(b.JJ(k, h)) : b.Bv(b.$f(b.od(g, d))) } } d = b.Li(d, r); a[2 * n] = t.x + d.x; a[2 * n + 1] = t.y + d.y; a[2 * (n + 1)] = t.x - d.x; a[2 * (n + 1) + 1] = t.y - d.y } for (s = 0 === c ? 0 : c - 1; s < p; s++) { n = 2 * s, m = n + 2, r = b.dw(a[2 * n], a[2 * n + 1]), e = b.dw(a[2 * (n + 1)], a[2 * (n + 1) + 1]), n = b.dw(a[2 * m], a[2 * m]), c = b.dw(a[2 * (m + 1)], a[2 * (m + 1) + 1]), r = !b.YY(r.x, r.y, c.x, c.y, e.x, e.y, n.x, n.y), !r.cr && (0 > r.value || 1 < r.value) && (r.cr = !0), r.cr && (a[2 * m] = c.x, a[2 * m + 1] = c.y, a[2 * (m + 1)] = n.x, a[2 * (m + 1) + 1] = n.y) } } }; b.YY = function(d, e, f, g, h, k, a, c) { if (d === f && e === g || h === a && k === c) { return { cr: !1, value: 0 } } f -= d; g -= e; h -= d; k -= e; a -= d; c -= e; d = Math.sqrt(f * f + g * g); f /= d; g /= d; e = h * f + k * g; k = k * f - h * g; h = e; e = a * f + c * g; c = c * f - a * g; a = e; return k === c ? { cr: !1, value: 0 } : { cr: !0, value: (a + (h - a) * c / (c - k)) / d } }; b.bca = function(f) { for (var a = 0, c = f.length; a < c; a++) { var d = f[(a + 1) % c], e = f[(a + 2) % c]; if (0 < b.uW(b.od(d, f[a]), b.od(e, d))) { return !1 } } return !0 }; b.IZ = function(c, a) { a[2] = a[3] = a[6] = a[7] = a[8] = a[9] = a[11] = a[14] = 0; a[10] = a[15] = 1; a[0] = c.a; a[4] = c.c; a[12] = c.la; a[1] = c.b; a[5] = c.R; a[13] = c.ma }; b.j_ = function(c, a) { a.a = c[0]; a.c = c[4]; a.la = c[12]; a.b = c[1]; a.R = c[5]; a.ma = c[13] }; b.Js = b.Ia.extend({ Dc: null, tg: null, ue: 0, sH: !1, oh: null, ctor: function(d, a, c) { this.Dc = b.d(d || 0, a || 0); this.ue = c || 0 }, Zj: function() { return { x: this.Dc.x, y: this.Dc.y } }, MU: function() { return this.Dc.x }, NU: function() { return this.Dc.y }, E5: function() { return { x: this.tg.x, y: this.tg.y } }, V5: function() { return { x: this.oh.x, y: this.oh.y } }, yU: function() { return b.od(this.Dc, this.tg) }, LU: function() { return { x: this.Dc.x, y: this.Dc.y } }, F5: function() { return { x: this.tg.x, y: this.tg.y } }, W5: function() { return { x: this.oh.x, y: this.oh.y } }, l5: function() { return this.ue }, m5: function() { b.log("getId is deprecated. Please use getID instead."); return this.ue }, Laa: function(d, a, c) { this.tg = this.Dc; this.Dc = b.d(a || 0, c || 0); this.ue = d; this.sH || (this.oh = b.d(this.Dc), this.sH = !0) }, Gz: function(c, a) { void 0 === a ? (this.Dc.x = c.x, this.Dc.y = c.y) : (this.Dc.x = c, this.Dc.y = a) }, kl: function(c, a) { this.tg = void 0 === a ? b.d(c.x, c.y) : b.d(c || 0, a || 0) } }); b.rb = b.Ia.extend({ Ec: 0, Tk: !1, Mb: null, Cz: function(a) { this.Mb = a }, ctor: function(a) { this.Ec = a }, qB: function() { return this.Ec }, stopPropagation: function() { this.Tk = !0 }, m7: function() { return this.Tk }, M4: function() { return this.Mb } }); b.rb.Fs = 0; b.rb.hm = 1; b.rb.ok = 2; b.rb.im = 3; b.rb.Zo = 4; b.rb.Fo = 6; b.vk = b.rb.extend({ ay: null, PH: null, ctor: function(a) { b.rb.prototype.ctor.call(this, b.rb.Fo); this.ay = a }, setUserData: function(a) { this.PH = a }, getUserData: function() { return this.PH }, Y4: function() { return this.ay } }); b.oc = b.rb.extend({ mF: 0, kE: 0, Cg: 0, de: 0, gz: 0, hz: 0, WG: 0, XG: 0, ctor: function(a) { b.rb.prototype.ctor.call(this, b.rb.im); this.mF = a }, AK: function(c, a) { this.WG = c; this.XG = a }, Q5: function() { return this.WG }, R5: function() { return this.XG }, AX: function(c, a) { this.Cg = c; this.de = a }, Zj: function() { return { x: this.Cg, y: this.de } }, LU: function() { return { x: this.Cg, y: b.view.lg.height - this.de } }, uR: function(c, a) { this.gz = c; this.hz = a }, yU: function() { return { x: this.Cg - this.gz, y: this.de - this.hz } }, R4: function() { return this.Cg - this.gz }, S4: function() { return this.de - this.hz }, Rl: function(a) { this.kE = a }, B4: function() { return this.kE }, MU: function() { return this.Cg }, NU: function() { return this.de } }); b.oc.NONE = 0; b.oc.HC = 1; b.oc.kx = 2; b.oc.RC = 3; b.oc.Tw = 4; b.oc.CZ = 0; b.oc.EZ = 2; b.oc.DZ = 1; b.oc.xZ = 3; b.oc.yZ = 4; b.oc.zZ = 5; b.oc.AZ = 6; b.oc.BZ = 7; b.tf = b.rb.extend({ wj: 0, Qj: null, ctor: function(a) { b.rb.prototype.ctor.call(this, b.rb.Fs); this.Qj = a || [] }, X4: function() { return this.wj }, g6: function() { return this.Qj }, q1: function(a) { this.wj = a }, v1: function(a) { this.Qj = a } }); b.tf.J_ = 5; b.tf.fm = { fw: 0, zw: 1, ow: 2, iw: 3 }; b.d_ = b.rb.extend({ QH: null, RH: null, ctor: function(c, a) { b.rb.prototype.ctor.call(this, b.rb.Zo); this.QH = a; this.RH = c } }); b.ea = b.Ia.extend({ Uy: null, Ec: 0, fh: null, xe: !1, xj: 0, p: null, td: !0, dn: !0, ctor: function(d, a, c) { this.Uy = c; this.Ec = d || 0; this.fh = a || "" }, Fz: function(a) { this.td = a }, e1: function() { return this.td }, pn: function(a) { this.xe = a }, yQ: function() { return this.xe }, d1: function() { return this.Ec }, a1: function() { return this.fh }, Dz: function(a) { this.xj = a }, W0: function() { return this.xj }, lq: function(a) { this.p = a }, b1: function() { return this.p }, Ai: function() { return null !== this.Uy }, k: function() { return null }, Wc: function(a) { this.dn = a }, isEnabled: function() { return this.dn }, Kv: function() {}, uc: function() {} }); b.ea.UD = 0; b.ea.nm = 1; b.ea.Yw = 2; b.ea.hm = 3; b.ea.im = 4; b.ea.ok = 5; b.ea.ok = 6; b.ea.Fo = 8; b.ea.Zo = 7; b.sp = b.ea.extend({ dq: null, ctor: function(d, a) { this.dq = a; var c = this; b.ea.prototype.ctor.call(this, b.ea.Fo, d, function(e) { null !== c.dq && c.dq(e) }) }, Ai: function() { return b.ea.prototype.Ai.call(this) && null !== this.dq }, k: function() { return new b.sp(this.fh, this.dq) } }); b.sp.create = function(c, a) { return new b.sp(c, a) }; b.nj = b.ea.extend({ xv: null, Av: null, yv: null, zv: null, ctor: function() { var a = this; b.ea.prototype.ctor.call(this, b.ea.im, b.nj.zb, function(d) { var c = b.oc; switch (d.mF) { case c.HC: a.xv && a.xv(d); break; case c.kx: a.Av && a.Av(d); break; case c.RC: a.yv && a.yv(d); break; case c.Tw: a.zv && a.zv(d) } }) }, k: function() { var a = new b.nj; a.xv = this.xv; a.Av = this.Av; a.yv = this.yv; a.zv = this.zv; return a }, Ai: function() { return !0 } }); b.nj.zb = "__cc_mouse"; b.nj.create = function() { return new b.nj }; b.Rg = b.ea.extend({ Gm: null, ik: !1, ck: null, ir: null, Ll: null, hr: null, ctor: function() { b.ea.prototype.ctor.call(this, b.ea.nm, b.Rg.zb, null); this.Gm = [] }, Faa: function(a) { this.ik = a }, n7: function() { return this.ik }, k: function() { var a = new b.Rg; a.ck = this.ck; a.ir = this.ir; a.Ll = this.Ll; a.hr = this.hr; a.ik = this.ik; return a }, Ai: function() { return this.ck ? !0 : (b.log(b.j.RO), !1) } }); b.Rg.zb = "__cc_touch_one_by_one"; b.Rg.create = function() { return new b.Rg }; b.Qg = b.ea.extend({ jr: null, mr: null, lr: null, kr: null, ctor: function() { b.ea.prototype.ctor.call(this, b.ea.Yw, b.Qg.zb, null) }, k: function() { var a = new b.Qg; a.jr = this.jr; a.mr = this.mr; a.lr = this.lr; a.kr = this.kr; return a }, Ai: function() { return null === this.jr && null === this.mr && null === this.lr && null === this.kr ? (b.log(b.j.QO), !1) : !0 } }); b.Qg.zb = "__cc_touch_all_at_once"; b.Qg.create = function() { return new b.Qg }; b.ea.create = function(e) { b.assert(e && e.event, b.j.OL); var a = e.event; delete e.event; var c = null; a === b.ea.nm ? c = new b.Rg : a === b.ea.Yw ? c = new b.Qg : a === b.ea.im ? c = new b.nj : a === b.ea.Fo ? (c = new b.sp(e.bU, e.Eg), delete e.bU, delete e.Eg) : a === b.ea.hm ? c = new b.mj : a === b.ea.ok ? (c = new b.lj(e.Eg), delete e.Eg) : a === b.ea.Zo && (c = new b.tp); for (var d in e) { c[d] = e[d] } return c }; b.tp = b.ea.extend({ k: function() { var a = new b.tp; a.er = this.er; return a }, Ai: function() { return this.er ? !0 : (b.log("Invalid EventListenerFocus!"), !1) }, er: null, ctor: function() { b.ea.prototype.ctor.call(this, b.ea.Zo, b.tp.zb, function(a) { this.er && this.er(a.RH, a.QH) }) } }); b.tp.zb = "__cc_focus_event"; b.SO = b.Ia.extend({ Qe: null, Ve: null, eJ: 0, ctor: function() { this.Qe = []; this.Ve = [] }, size: function() { return this.Qe.length + this.Ve.length }, empty: function() { return 0 === this.Qe.length && 0 === this.Ve.length }, push: function(a) { 0 === a.xj ? this.Ve.push(a) : this.Qe.push(a) }, eT: function() { this.Ve.length = 0 }, dT: function() { this.Qe.length = 0 }, clear: function() { this.Ve.length = 0; this.Qe.length = 0 }, a5: function() { return this.Qe }, O5: function() { return this.Ve } }); b.Ts = function(d) { var a = b.rb, c = d.Ec; if (c === a.ok) { return b.lj.zb } if (c === a.Fo) { return d.ay } if (c === a.hm) { return b.mj.zb } if (c === a.im) { return b.nj.zb } if (c === a.Zo) { return b.tp.zb } c === a.Fs && b.log(b.j.Ts); return "" }; b.ka = { mw: 0, Wr: 1, Io: 2, XZ: 3, Cf: {}, gq: {}, ih: {}, Pt: {}, FF: {}, Bn: [], Ip: [], Rk: 0, dn: !1, nG: 0, wQ: [b.Ma.qw, b.Ma.Zr], mu: function(d) { null != this.ih[d.Y] && this.Ip.push(d); d = d.K; for (var a = 0, c = d.length; a < c; a++) { this.mu(d[a]) } }, mo: function(f, a) { var c = this.ih[f.Y], d, e; if (c) { for (d = 0, e = c.length; d < e; d++) { c[d].Fz(!0) } } if (!0 === a) { for (c = f.K, d = 0, e = c.length; d < e; d++) { this.mo(c[d], !0) } } }, Mi: function(f, a) { var c = this.ih[f.Y], d, e; if (c) { for (d = 0, e = c.length; d < e; d++) { c[d].Fz(!1) } } this.mu(f); if (!0 === a) { for (c = f.K, d = 0, e = c.length; d < e; d++) { this.Mi(c[d], !0) } } }, $O: function(a) { 0 === this.Rk ? this.sF(a) : this.Bn.push(a) }, sF: function(d) { var a = d.fh, c = this.Cf[a]; c || (c = new b.SO, this.Cf[a] = c); c.push(d); 0 === d.xj ? (this.jl(a, this.Io), a = d.p, null === a && b.log(b.j.VT), this.eP(a, d), a.Hf && this.Mi(a)) : this.jl(a, this.Wr) }, ry: function(a) { return this.Cf[a] }, XR: function() { if (0 !== this.Ip.length) { for (var d = this.Ip, e, f, g = this.ih, h = 0, k = d.length; h < k; h++) { if (e = g[d[h].Y]) { for (var a = 0, c = e.length; a < c; a++) { (f = e[a]) && this.jl(f.fh, this.Io) } } } this.Ip.length = 0 } }, NG: function(d) { if (d) { for (var a, c = 0; c < d.length;) { a = d[c], a.pn(!1), null != a.p && (this.GE(a.p, a), a.lq(null)), 0 === this.Rk ? b.fe(d, a) : ++c } } }, el: function(e) { var a = this.Cf[e]; if (a) { var c = a.Qe; this.NG(a.Ve); this.NG(c); delete this.gq[e]; this.Rk || (a.clear(), delete this.Cf[e]) } for (var c = this.Bn, d, a = 0; a < c.length;) { (d = c[a]) && d.fh === e ? b.fe(c, d) : ++a } }, Rz: function(d) { var a = this.mw, c = this.gq; c[d] && (a = c[d]); a !== this.mw && (c[d] = this.mw, a & this.Wr && this.JR(d), a & this.Io && ((a = b.I.rc) ? this.LR(d, a) : c[d] = this.Io)) }, LR: function(e, a) { var c = this.ry(e); if (c) { var d = c.Ve; d && 0 !== d.length && (this.nG = 0, this.Pt = {}, this.oA(a, !0), c.Ve.sort(this.IR)) } }, IR: function(d, a) { var c = b.ka.Pt; return d && a && d.p && a.p ? c[a.p.Y] - c[d.p.Y] : -1 }, JR: function(e) { if (e = this.Cf[e]) { var a = e.Qe; if (a && 0 !== a.length) { a.sort(this.KR); for (var c = 0, d = a.length; c < d && !(0 <= a[c].xj);) { ++c } e.eJ = c } } }, KR: function(c, a) { return c.xj - a.xj }, Vy: function(f) { if (f = this.Cf[f]) { var a = f.Qe, c = f.Ve, d, e; if (c) { for (d = 0; d < c.length;) { e = c[d], e.xe ? ++d : b.fe(c, e) } } if (a) { for (d = 0; d < a.length;) { e = a[d], e.xe ? ++d : b.fe(a, e) } } c && 0 === c.length && f.eT(); a && 0 === a.length && f.dT() } }, Du: function(d) { var a = this.Rk; b.assert(0 < a, b.j.PL); if (!(1 < a)) { d.Ec === b.rb.Fs ? (this.Vy(b.Rg.zb), this.Vy(b.Qg.zb)) : this.Vy(b.Ts(d)); b.assert(1 === a, b.j.QL); d = this.Cf; var a = this.gq, c; for (c in d) { d[c].empty() && (delete a[c], delete d[c]) } c = this.Bn; if (0 !== c.length) { d = 0; for (a = c.length; d < a; d++) { this.sF(c[d]) } this.Bn.length = 0 } } }, PQ: function(d, e) { if (!d.yQ) { return !1 } var f = e.event, g = e.fK; f.Cz(d.p); var h = !1, k, a = f.wj, c = b.tf.fm; a === c.fw ? d.ck && (h = d.ck(g, f)) && d.xe && d.Gm.push(g) : 0 < d.Gm.length && -1 !== (k = d.Gm.indexOf(g)) && (h = !0, a === c.zw && d.ir ? d.ir(g, f) : a === c.ow ? (d.Ll && d.Ll(g, f), d.xe && d.Gm.splice(k, 1)) : a === c.iw && (d.hr && d.hr(g, f), d.xe && d.Gm.splice(k, 1))); return f.Tk ? (b.ka.Du(f), !0) : h && d.xe && d.ik ? (e.pW && e.touches.splice(g, 1), !0) : !1 }, rP: function(e) { this.Rz(b.Rg.zb); this.Rz(b.Qg.zb); var f = this.ry(b.Rg.zb), g = this.ry(b.Qg.zb); if (null !== f || null !== g) { var h = e.Qj, a = b.xI(h), c = { event: e, pW: f && g, touches: a, fK: null }; if (f) { for (var d = 0; d < h.length; d++) { if (c.fK = h[d], this.Wx(f, this.PQ, c), e.Tk) { return } } } if (g && 0 < a.length && (this.Wx(g, this.RQ, { event: e, touches: a }), e.Tk)) { return } this.Du(e) } }, RQ: function(f, g) { if (!f.xe) { return !1 } var a = b.tf.fm, c = g.event, d = g.touches, e = c.wj; c.Cz(f.p); e === a.fw && f.jr ? f.jr(d, c) : e === a.zw && f.mr ? f.mr(d, c) : e === a.ow && f.lr ? f.lr(d, c) : e === a.iw && f.kr && f.kr(d, c); return c.Tk ? (b.ka.Du(c), !0) : !1 }, eP: function(d, a) { var c = this.ih[d.Y]; c || (c = [], this.ih[d.Y] = c); c.push(a) }, GE: function(d, a) { var c = this.ih[d.Y]; c && (b.fe(c, a), 0 === c.length && delete this.ih[d.Y]) }, Wx: function(d, e, f) { var g = !1, h = d.Qe, k = d.Ve, a = 0, c; if (h && 0 !== h.length) { for (; a < d.eJ; ++a) { if (c = h[a], c.isEnabled() && !c.td && c.xe && e(c, f)) { g = !0; break } } } if (k && !g) { for (d = 0; d < k.length; d++) { if (c = k[d], c.isEnabled() && !c.td && c.xe && e(c, f)) { g = !0; break } } } if (h && !g) { for (; a < h.length && (c = h[a], !c.isEnabled() || c.td || !c.xe || !e(c, f)); ++a) {} } }, jl: function(d, a) { var c = this.gq; c[d] = null == c[d] ? a : a | c[d] }, oA: function(h, k) { var m = h.K, a = 0, c = m.length, d = this.FF, e = this.ih; if (0 < c) { for (var f; a < c; a++) { if ((f = m[a]) && 0 > f.Xb) { this.oA(f, !1) } else { break } } null != e[h.Y] && (d[h.Yh] || (d[h.Yh] = []), d[h.Yh].push(h.Y)); for (; a < c; a++) { (f = m[a]) && this.oA(f, !1) } } else { null != e[h.Y] && (d[h.Yh] || (d[h.Yh] = []), d[h.Yh].push(h.Y)) } if (k) { var m = [], g; for (g in d) { m.push(g) } m.sort(this.MR); g = m.length; f = this.Pt; for (a = 0; a < g; a++) { for (c = d[m[a]], e = 0; e < c.length; e++) { f[c[e]] = ++this.nG } } this.FF = {} } }, MR: function(c, a) { return c - a }, addListener: function(c, a) { b.assert(c && a, b.j.XT); if (!(c instanceof b.ea)) { b.assert(!b.GB(a), b.j.YT), c = b.ea.create(c) } else { if (c.xe) { b.log(b.j.ZT); return } } if (c.Ai()) { if (b.GB(a)) { if (0 === a) { b.log(b.j.WT); return } c.lq(null); c.Dz(a); c.pn(!0); c.Fz(!1) } else { c.lq(a), c.Dz(0), c.pn(!0) } this.$O(c); return c } }, vA: function(d, a) { var c = new b.sp(d, a); this.addListener(c, 1); return c }, removeListener: function(f) { if (null != f) { var g, a = this.Cf, c; for (c in a) { var d = a[c], e = d.Qe; (g = this.OG(d.Ve, f)) ? this.jl(f.fh, this.Io): (g = this.OG(e, f)) && this.jl(f.fh, this.Wr); d.empty() && (delete this.gq[f.fh], delete a[c]); if (g) { break } } if (!g) { for (g = this.Bn, a = 0, c = g.length; a < c; a++) { if (d = g[a], d === f) { b.fe(g, d); d.pn(!1); break } } } } }, OG: function(f, a) { if (null == f) { return !1 } for (var c = 0, d = f.length; c < d; c++) { var e = f[c]; if (e === a) { return e.pn(!1), null != e.p && (this.GE(e.p, e), e.lq(null)), 0 === this.Rk && b.fe(f, e), !0 } } return !1 }, UJ: function(f, a) { if (f instanceof b.f) { delete this.Pt[f.Y]; b.fe(this.Ip, f); var c = this.ih[f.Y]; if (c) { for (var d = b.xI(c), c = 0; c < d.length; c++) { this.removeListener(d[c]) } d.length = 0 } d = this.Bn; for (c = 0; c < d.length;) { var e = d[c]; e.p === f ? (e.lq(null), e.pn(!1), d.splice(c, 1)) : ++c } if (!0 === a) { for (d = f.K, c = 0, e = d.length; c < e; c++) { this.UJ(d[c], !0) } } } else { f === b.ea.nm ? this.el(b.Rg.zb) : f === b.ea.Yw ? this.el(b.Qg.zb) : f === b.ea.im ? this.el(b.nj.zb) : f === b.ea.ok ? this.el(b.lj.zb) : f === b.ea.hm ? this.el(b.mj.zb) : b.log(b.j.$T) } }, O9: function(a) { this.el(a) }, RW: function() { var d = this.Cf, a = this.wQ, c; for (c in d) { -1 === a.indexOf(c) && this.el(c) } }, saa: function(f, a) { if (null != f) { var c = this.Cf, d; for (d in c) { var e = c[d].Qe; if (e && -1 !== e.indexOf(f)) { null != f.p && b.log(b.j.aU); f.xj !== a && (f.Dz(a), this.jl(f.fh, this.Wr)); break } } } }, Wc: function(a) { this.dn = a }, isEnabled: function() { return this.dn }, dispatchEvent: function(c) { if (this.dn) { this.XR(); this.Rk++; if (!c || !c.qB) { throw "event is undefined" } if (c.Ec === b.rb.Fs) { this.rP(c) } else { var a = b.Ts(c); this.Rz(a); a = this.Cf[a]; null != a && this.Wx(a, this.LQ, c); this.Du(c) } this.Rk-- } }, LQ: function(c, a) { a.Cz(c.p); c.Uy(a); return a.Tk }, U2: function(d, a) { var c = new b.vk(d); c.setUserData(a); this.dispatchEvent(c) } }; b.dg = function() {}; b.dg.prototype = { constructor: b.dg, apply: function(a) { a.addEventListener = b.dg.prototype.addEventListener; a.xB = b.dg.prototype.xB; a.removeEventListener = b.dg.prototype.removeEventListener; a.dispatchEvent = b.dg.prototype.dispatchEvent }, addEventListener: function(e, a, c) { if ("load" === e && this.T) { setTimeout(function() { a.call(c) }, 0) } else { void 0 === this.Fj && (this.Fj = {}); var d = this.Fj; void 0 === d[e] && (d[e] = []); this.xB(e, a, c) || d[e].push({ Eg: a, VA: c }) } }, xB: function(f, g, a) { if (void 0 === this.Fj) { return !1 } var c = this.Fj; if (void 0 !== c[f]) { f = 0; for (var d = c.length; f < d; f++) { var e = c[f]; if (e.Eg === g && e.VA === a) { return !0 } } } return !1 }, removeEventListener: function(e, a) { if (void 0 !== this.Fj) { var c = this.Fj[e]; if (void 0 !== c) { for (var d = 0; d < c.length;) { c[d].VA === a ? c.splice(d, 1) : d++ } } } }, dispatchEvent: function(f, g) { if (void 0 !== this.Fj) { null == g && (g = !0); var a = this.Fj[f]; if (void 0 !== a) { for (var c = [], d = a.length, e = 0; e < d; e++) { c[e] = a[e] } for (e = 0; e < d; e++) { c[e].Eg.call(c[e].VA, this) } g && (a.length = 0) } } } }; b.NL = b.rb.extend({ bE: null, ctor: function(a) { b.rb.prototype.ctor.call(this, b.rb.ok); this.bE = a } }); b.KC = b.rb.extend({ Hy: 0, RF: !1, ctor: function(c, a) { b.rb.prototype.ctor.call(this, b.rb.hm); this.Hy = c; this.RF = a } }); b.lj = b.ea.extend({ St: null, ctor: function(c) { this.St = c; var a = this; b.ea.prototype.ctor.call(this, b.ea.ok, b.lj.zb, function(d) { a.St(d.bE, d) }) }, Ai: function() { b.assert(this.St, b.j.OO); return !0 }, k: function() { return new b.lj(this.St) } }); b.lj.zb = "__cc_acceleration"; b.lj.create = function(a) { return new b.lj(a) }; b.mj = b.ea.extend({ fr: null, gr: null, ctor: function() { var a = this; b.ea.prototype.ctor.call(this, b.ea.hm, b.mj.zb, function(c) { c.RF ? a.fr && a.fr(c.Hy, c) : a.gr && a.gr(c.Hy, c) }) }, k: function() { var a = new b.mj; a.fr = this.fr; a.gr = this.gr; return a }, Ai: function() { return null === this.fr && null === this.gr ? (b.log(b.j.PO), !1) : !0 } }); b.mj.zb = "__cc_keyboard"; b.mj.create = function() { return new b.mj }; b.YW = { af: !0, ui: [], ni: [], Ht: !1, ct: {}, Em: [], Uh: 0, WI: function(a) { return a.Fd() }, wb: function(f) { var g = this.ni, a, c = b.view.Ca, d = b.view.ib, e = f || b.s; e.tI(); f = 0; for (a = g.length; f < a; f++) { g[f].wb(e, c, d) } }, nz: function(e, f, g, h) { e || b.log("The context of RenderTexture is invalid."); g = b.Gi(g) ? 1 : g; h = b.Gi(h) ? 1 : h; f = f || this.Uh; var a = this.ct[f], c, d; e.tI(); c = 0; for (d = a.length; c < d; c++) { a[c].wb(e, g, h) } a.length = 0; e = this.Em; delete this.ct[f]; b.fe(e, f); 0 === e.length ? this.Ht = !1 : this.Uh = e[e.length - 1] }, Au: function(a) { this.Ht = !0; a = a || 0; this.ct[a] = []; - 1 === this.Em.indexOf(a) && this.Em.push(a); this.Uh = a }, SR: function() { this.Ht = !1 }, ZJ: function() { this.af = !1; this.ui.length = 0 }, transform: function() { var d = this.ui; d.sort(this.Sz); for (var a = 0, c = d.length; a < c; a++) { 0 !== d[a].C && d[a].updateStatus() } d.length = 0 }, ba: function() { return 0 < this.ui.length }, Sz: function(c, a) { return c.kg - a.kg }, NJ: function(a) { this.ui.push(a) }, rI: function() { this.ni.length = 0 }, Ig: function(c) { if (c.Db) { if (this.Ht) { var a = this.ct[this.Uh]; - 1 === a.indexOf(c) && a.push(c) } else { -1 === this.ni.indexOf(c) && this.ni.push(c) } } } }; b.ua === b.dc && (b.Za = b.YW); (function() { b.Vr = function(c) { this.bb = c; this.nn = 0; this.Ox = c.globalAlpha; this.Px = c.globalCompositeOperation; this.Qx = c.fillStyle; this.Rx = c.strokeStyle; this.Rt = this.Sy = 0; this.iq = this.height; this.vx = 0 }; var a = b.Vr.prototype; a.XJ = function() { var c = this.bb; this.Ox = c.globalAlpha; this.Px = c.globalCompositeOperation; this.Qx = c.fillStyle; this.Rx = c.strokeStyle; this.iq = this.bb.canvas.height + this.Rt }; a.yr = function(d, c) { this.Sy = d; this.Rt = c; this.iq = this.bb.canvas.height + this.Rt }; a.tI = function() { this.iq = this.bb.canvas.height + this.Rt }; a.eba = function(d, c) { this.Ca = d; this.ib = c }; a.getContext = function() { return this.bb }; a.save = function() { this.bb.save(); this.nn++ }; a.restore = function() { this.bb.restore(); this.nn-- }; a.xr = function(c) { 0 < this.nn ? this.bb.globalAlpha = c : this.Ox !== c && (this.Ox = c, this.bb.globalAlpha = c) }; a.vr = function(c) { 0 < this.nn ? this.bb.globalCompositeOperation = c : this.Px !== c && (this.Px = c, this.bb.globalCompositeOperation = c) }; a.Kg = function(c) { 0 < this.nn ? this.bb.fillStyle = c : this.Qx !== c && (this.Qx = c, this.bb.fillStyle = c) }; a.Wv = function(c) { 0 < this.nn ? this.bb.strokeStyle = c : this.Rx !== c && (this.Rx = c, this.bb.strokeStyle = c) }; a.setTransform = function(e, c, d) { 0 < this.vx ? (this.restore(), this.save(), this.bb.transform(e.a, -e.b, -e.c, e.R, e.la * c, -(e.ma * d))) : this.bb.setTransform(e.a, -e.b, -e.c, e.R, this.Sy + e.la * c, this.iq - e.ma * d) }; a.A1 = function(f, c, d, e) { f ? (this.vx++, this.bb.setTransform(c.a, c.c, c.b, c.R, this.Sy + c.la * d, this.iq - c.ma * e), this.save()) : (this.vx--, this.restore()) } })(); b.ZW = { af: !0, ui: [], ni: [], Gt: !1, bt: {}, Em: [], Uh: 0, WI: function(a) { return a.Fd() }, wb: function(e) { var a = this.ni, c, d = e || b.s; e = 0; for (c = a.length; e < c; e++) { a[e].wb(d) } }, Au: function(a) { this.Gt = !0; a = a || 0; this.bt[a] = []; this.Em.push(a); this.Uh = a }, SR: function() { this.Gt = !1 }, gR: function(f) { f = f || this.Uh; var g = this.bt[f], a, c, d = b.s, e = this.Em; a = 0; for (c = g.length; a < c; a++) { g[a].wb(d) } g.length = 0; delete this.bt[f]; b.fe(e, f); 0 === e.length ? this.Gt = !1 : this.Uh = e[e.length - 1] }, ZJ: function() { this.af = !1; this.ui.length = 0 }, transform: function() { var d = this.ui; d.sort(this.Sz); for (var a = 0, c = d.length; a < c; a++) { d[a].updateStatus() } d.length = 0 }, ba: function() { return 0 < this.ui.length }, Sz: function(c, a) { return c.kg - a.kg }, NJ: function(a) { this.ui.push(a) }, rI: function() { this.ni.length = 0 }, Ig: function(c) { if (c.Db) { if (this.Gt) { var a = this.bt[this.Uh]; - 1 === a.indexOf(c) && a.push(c) } else { -1 === this.ni.indexOf(c) && this.ni.push(c) } } } }; b.ua === b.Lb && (b.Za = b.ZW); b.na.Jw = function() { var a = b.f.prototype; b.l(a, "x", a.pb, a.uK); b.l(a, "y", a.qb, a.vK); b.l(a, "width", a.mg, a.qn); b.l(a, "height", a.Aj, a.on); b.l(a, "anchorX", a.hy, a.wz); b.l(a, "anchorY", a.FP, a.xz); b.l(a, "skewX", a.gV, a.TX); b.l(a, "skewY", a.hV, a.UX); b.l(a, "zIndex", a.KU, a.sK); b.l(a, "vertexZ", a.qV, a.eY); b.l(a, "rotation", a.aV, a.PX); b.l(a, "rotationX", a.bV, a.QX); b.l(a, "rotationY", a.cV, a.RX); b.l(a, "scale", a.dV, a.jf); b.l(a, "scaleX", a.XI, a.zr); b.l(a, "scaleY", a.YI, a.fC); b.l(a, "children", a.sU); b.l(a, "childrenCount", a.tU); b.l(a, "parent", a.getParent, a.tK); b.l(a, "visible", a.ZV, a.Yv); b.l(a, "running", a.XV); b.l(a, "ignoreAnchor", a.UV, a.iv); b.l(a, "actionManager", a.Wu, a.gK); b.l(a, "scheduler", a.th, a.zK); b.l(a, "shaderProgram", a.$n, a.Tl); b.l(a, "opacity", a.sh, a.yd); b.l(a, "opacityModifyRGB", a.zh); b.l(a, "cascadeOpacity", a.RV, a.mX); b.l(a, "color", a.Uf, a.xb); b.l(a, "cascadeColor", a.QV, a.lX) }; b.UC = -1; b.YB = 1; b.f = b.Ia.extend({ Xb: 0, Yh: 0, Iu: 0, oi: 0, Kj: 0, Ca: 1, ib: 1, Id: null, Xk: null, Gu: !1, Ry: !1, xg: 0, yg: 0, K: null, jd: !0, wf: null, Q: null, Hf: !1, Ua: null, Dj: !1, tag: b.UC, userData: null, userObject: null, ye: !1, va: null, arrivalOrder: 0, Le: null, Pc: null, U0: null, xp: !1, Ws: null, zf: null, Fy: !1, gc: "Node", kH: !1, kn: "", mi: 255, Ff: null, ec: !1, fc: !1, i: null, sj: null, ctor: function() { this.pQ(); this.rQ() }, pQ: function() { this.wf = b.d(0, 0); this.Q = b.size(0, 0); this.Id = b.d(0, 0); this.Xk = b.d(0, 0); this.K = []; var a = b.I; this.Le = a.Wu(); this.Pc = a.th(); this.Ws = { a: 1, b: 0, c: 0, R: 1, la: 0, ma: 0 }; b.oL && (this.zf = new b.oL(this)); this.mi = 255; this.Ff = b.color(255, 255, 255, 255); this.fc = this.ec = !1 }, oa: function() { return !0 }, ig: function(f, a) { if (f && 0 !== f.length) { var c, d = f.length, e; c = b.f.Jf; switch (a) { case c.X: for (c = 0; c < d; c++) { (e = f[c]) && e.X() } break; case c.Ib: for (c = 0; c < d; c++) { (e = f[c]) && e.Ib() } break; case c.Kl: for (c = 0; c < d; c++) { (e = f[c]) && e.Kl() } break; case c.Od: for (c = 0; c < d; c++) { (e = f[c]) && e.Od() } break; case c.mf: for (c = 0; c < d; c++) { (e = f[c]) && e.mf() } break; case c.Eh: for (c = 0; c < d; c++) { (e = f[c]) && e.Eh() } break; case c.kf: for (c = 0; c < d; c++) { (e = f[c]) && e.kf() } break; default: b.assert(0, b.j.qM) } } }, $e: function(c) { for (var a in c) { this[a] = c[a] } }, gV: function() { return this.xg }, TX: function(a) { this.xg = a; this.i.ia(b.f.L.ba) }, hV: function() { return this.yg }, UX: function(a) { this.yg = a; this.i.ia(b.f.L.ba) }, sK: function(a) { this.Xb = a; this.Ua && this.Ua.ur(this, a); b.ka.mu(this) }, bH: function(a) { this.Xb = a }, KU: function() { return this.Xb }, t6: function() { b.log(b.j.wM); return this.Xb }, fba: function(a) { b.log(b.j.GM); this.sK(a) }, aaa: function(a) { this.Yh !== a && (this.Yh = a, b.ka.mu(this)) }, i5: function() { return this.Yh }, qV: function() { return this.Iu }, eY: function(a) { this.Iu = a }, aV: function() { this.oi !== this.Kj && b.log(b.j.uM); return this.oi }, PX: function(a) { this.oi = this.Kj = a; this.i.ia(b.f.L.ba) }, bV: function() { return this.oi }, QX: function(a) { this.oi = a; this.i.ia(b.f.L.ba) }, cV: function() { return this.Kj }, RX: function(a) { this.Kj = a; this.i.ia(b.f.L.ba) }, dV: function() { this.Ca !== this.ib && b.log(b.j.vM); return this.Ca }, jf: function(c, a) { this.Ca = c; this.ib = a || 0 === a ? a : c; this.i.ia(b.f.L.ba) }, XI: function() { return this.Ca }, zr: function(a) { this.Ca = a; this.i.ia(b.f.L.ba) }, YI: function() { return this.ib }, fC: function(a) { this.ib = a; this.i.ia(b.f.L.ba) }, G: function(d, a) { var c = this.Id; if (void 0 === a) { if (c.x === d.x && c.y === d.y) { return } c.x = d.x; c.y = d.y } else { if (c.x === d.x && c.y === a) { return } c.x = d; c.y = a } this.Gu = !1; this.i.ia(b.f.L.ba) }, kaa: function(d, a) { var c = this.Xk; void 0 === a ? (c.x = d.x, c.y = d.y) : (c.x = d, c.y = a); this.Ry = this.Gu = !0; this.i.ia(b.f.L.ba) }, Vq: function() { return b.d(this.Id) }, v5: function() { return b.d(this.Xk) }, pb: function() { return this.Id.x }, uK: function(a) { this.Id.x = a; this.i.ia(b.f.L.ba) }, qb: function() { return this.Id.y }, vK: function(a) { this.Id.y = a; this.i.ia(b.f.L.ba) }, tU: function() { return this.K.length }, sU: function() { return this.K }, ZV: function() { return this.jd }, Yv: function(a) { this.jd !== a && (this.jd = a, this.i.ia(b.f.L.ba), b.Za.af = !0) }, w4: function() { return b.d(this.wf) }, Xa: function(d, a) { var c = this.wf; if (void 0 === a) { if (d.x === c.x && d.y === c.y) { return } c.x = d.x; c.y = d.y } else { if (d === c.x && a === c.y) { return } c.x = d; c.y = a } ka(this.i) }, hy: function() { return this.wf.x }, wz: function(a) { this.wf.x !== a && (this.wf.x = a, ka(this.i)) }, FP: function() { return this.wf.y }, xz: function(a) { this.wf.y !== a && (this.wf.y = a, ka(this.i)) }, Tq: function() { return this.i.Tq() }, mg: function() { return this.Q.width }, qn: function(a) { this.Q.width = a; ka(this.i) }, Aj: function() { return this.Q.height }, on: function(a) { this.Q.height = a; ka(this.i) }, eb: function() { return b.size(this.Q) }, he: function(d, a) { var c = this.Q; if (void 0 === a) { if (d.width === c.width && d.height === c.height) { return } c.width = d.width; c.height = d.height } else { if (d === c.width && a === c.height) { return } c.width = d; c.height = a } ka(this.i) }, XV: function() { return this.Hf }, getParent: function() { return this.Ua }, tK: function(a) { this.Ua = a }, UV: function() { return this.Dj }, iv: function(a) { a !== this.Dj && (this.Dj = a, this.i.ia(b.f.L.ba)) }, oB: function() { return this.tag }, Xv: function(a) { this.tag = a }, EX: function(a) { this.kn = a }, getName: function() { return this.kn }, getUserData: function() { return this.userData }, setUserData: function(a) { this.userData = a }, n6: function() { return this.userObject }, aba: function(a) { this.userObject !== a && (this.userObject = a) }, z5: function() { return this.arrivalOrder }, GX: function(a) { this.arrivalOrder = a }, Wu: function() { this.Le || (this.Le = b.I.Wu()); return this.Le }, gK: function(a) { this.Le !== a && (this.mC(), this.Le = a) }, th: function() { this.Pc || (this.Pc = b.I.th()); return this.Pc }, zK: function(a) { this.Pc !== a && (this.Hr(), this.Pc = a) }, m2: function() { b.log(b.j.sM); return this.rU() }, rU: function() { var a = b.rect(0, 0, this.Q.width, this.Q.height); return b.JG(a, this.Pd()) }, Od: function() { this.mC(); this.Hr(); b.ka.UJ(this); this.ig(this.K, b.f.Jf.Od) }, Ci: function(e) { var a = this.K; if (null !== a) { for (var c = 0; c < a.length; c++) { var d = a[c]; if (d && d.tag === e) { return d } } } return null }, G4: function(e) { if (!e) { return b.log("Invalid name"), null } for (var a = this.K, c = 0, d = a.length; c < d; c++) { if (a[c].kn === e) { return a[c] } } return null }, B: function(f, a, c) { a = void 0 === a ? f.Xb : a; var d, e = !1; b.Gi(c) ? (c = void 0, d = f.kn) : b.ge(c) ? (d = c, c = void 0) : b.GB(c) && (e = !0, d = ""); b.assert(f, b.j.rM); b.assert(null === f.Ua, "child already added. It can't be added again"); this.ZO(f, a, c, d, e) }, ZO: function(f, a, c, d, e) { this.K || (this.K = []); this.vQ(f, a); e ? f.Xv(c) : f.EX(d); f.tK(this); f.GX(b.YB++); this.Hf && (f.X(), this.Fy && f.Kl()); this.ec && f.i.ia(b.f.L.ra); this.fc && f.i.ia(b.f.L.pa) }, vc: function(a) { this.Ua && (null == a && (a = !0), this.Ua.removeChild(this, a)) }, P9: function(a) { b.log(b.j.AM); this.vc(a) }, removeChild: function(c, a) { 0 !== this.K.length && (null == a && (a = !0), -1 < this.K.indexOf(c) && this.pP(c, a), b.Za.af = !0) }, UB: function(d, a) { d === b.UC && b.log(b.j.yM); var c = this.Ci(d); null == c ? b.log(b.j.zM, d) : this.removeChild(c, a) }, I9: function(a) { this.qo(a) }, qo: function(e) { var a = this.K; if (null !== a) { null == e && (e = !0); for (var c = 0; c < a.length; c++) { var d = a[c]; d && (this.Hf && (d.Eh(), d.Ib()), e && d.Od(), d.parent = null) } this.K.length = 0 } }, pP: function(c, a) { this.Hf && (c.Eh(), c.Ib()); a && c.Od(); c.parent = null; c.i.LA(); b.fe(this.K, c) }, vQ: function(c, a) { b.Za.af = this.ye = !0; this.K.push(c); c.bH(a) }, Oi: function() { this.i.ia(b.f.L.ba) }, ur: function(c, a) { b.assert(c, b.j.BM); b.Za.af = this.ye = !0; c.arrivalOrder = b.YB; b.YB++; c.bH(a) }, kf: function() { if (this.ye) { var f = this.K, a = f.length, c, d, e; for (c = 1; c < a; c++) { e = f[c]; for (d = c - 1; 0 <= d;) { if (e.Xb < f[d].Xb) { f[d + 1] = f[d] } else { if (e.Xb === f[d].Xb && e.arrivalOrder < f[d].arrivalOrder) { f[d + 1] = f[d] } else { break } } d-- } f[d + 1] = e } this.ye = !1 } }, AT: function() {}, QY: function() { null !== this.Ua && (this.Ua.QY(), this.Ua.transform()) }, X: function() { this.Fy = !1; this.Hf = !0; this.ig(this.K, b.f.Jf.X); this.ek() }, Kl: function() { this.Fy = !0; this.ig(this.K, b.f.Jf.Kl) }, Eh: function() { this.ig(this.K, b.f.Jf.Eh) }, Ib: function() { this.Hf = !1; this.pause(); this.ig(this.K, b.f.Jf.Ib); this.QW() }, ha: function(a) { b.assert(a, b.j.DM); this.actionManager.eS(a, this, !this.Hf); return a }, mC: function() { this.actionManager && this.actionManager.TJ(this) }, yY: function(a) { this.actionManager.SJ(a) }, zY: function(a) { a === b.Zl ? b.log(b.j.HM) : this.actionManager.PW(a, this) }, dB: function(a) { return a === b.Zl ? (b.log(b.j.tM), null) : this.actionManager.dB(a, this) }, x5: function() { return this.actionManager.sW(this) }, fk: function() { this.fX(0) }, fX: function(a) { this.scheduler.fk(this, a, !this.Hf) }, Si: function() { this.scheduler.Si(this) }, Ni: function(f, g, a, c, d) { var e = arguments.length; "function" === typeof f ? 1 === e ? (g = 0, a = b.fg, c = 0, d = this.Y) : 2 === e ? "number" === typeof g ? (a = b.fg, c = 0, d = this.Y) : (d = g, g = 0, a = b.fg, c = 0) : 3 === e ? ("string" === typeof a ? (d = a, a = b.fg) : d = this.Y, c = 0) : 4 === e && (d = this.Y) : 1 === e ? (g = 0, a = b.fg, c = 0) : 2 === e && (a = b.fg, c = 0); b.assert(f, b.j.EM); b.assert(0 <= g, b.j.FM); a = null == a ? b.fg : a; this.scheduler.Ni(f, this, g || 0, a, c || 0, !this.Hf, d) }, Ql: function(d, a, c) { void 0 === c && (c = this.Y); this.Ni(d, 0, 0, a, c) }, Ri: function(a) { a && this.scheduler.Ri(a, this) }, Hr: function() { this.scheduler.QK(this) }, e$: function() { b.log(b.j.CM); this.ek() }, ek: function() { this.scheduler.Mi(this); this.actionManager && this.actionManager.Mi(this); b.ka.Mi(this) }, j9: function() { b.log(b.j.xM); this.pause() }, pause: function() { this.scheduler.mo(this); this.actionManager && this.actionManager.mo(this); b.ka.mo(this) }, x$: function(a) { if (null == a) { return this.xp = !1 } this.Ws = a; this.i.ia(b.f.L.ba); this.xp = !0 }, lB: function() { this.i.lB() }, a9: function() { return this.lB() }, $j: function() { for (var c = this.Pd(), a = this.Ua; null !== a; a = a.parent) { c = b.vl(c, a.Pd()) } return c }, h8: function() { return this.$j() }, cJ: function() { return b.$H(this.$j()) }, gca: function() { return this.cJ() }, Rn: function(a) { return b.hf(a, this.cJ()) }, wI: function(a) { a = a || b.d(0, 0); return b.hf(a, this.$j()) }, lT: function(a) { return b.od(this.Rn(a), this.i.Tq()) }, B2: function(a) { a = a || b.d(0, 0); a = b.Hg(a, this.i.Tq()); return this.wI(a) }, P0: function(a) { a = this.wI(a); return b.I.vI(a) }, C2: function(a) { return this.Rn(a.Zj()) }, D2: function(a) { a = b.I.uI(a.Zj()); return this.lT(a) }, update: function(a) { this.zf && !this.zf.Y6() && this.zf.ga(a) }, mf: function() { this.ig(this.K, b.f.Jf.mf) }, Kv: function() {}, uc: function() {}, wU: function(a) { return this.zf ? this.zf.wU(a) : null }, H1: function(a) { this.zf && this.zf.add(a) }, N9: function(a) { return this.zf ? this.zf.remove(a) : !1 }, QW: function() { this.zf && this.zf.G9() }, ev: null, ga: function(a) { this.i.ga(a) }, transform: function(c, a) { this.i.transform(c, a) }, g8: function() { return this.Pd() }, Pd: function() { return this.i.Pd() }, Wn: function() { this.sj || (this.sj = new b.Go); return this.sj }, j5: function() { return this.ev }, baa: function(a) { this.ev = a }, $n: function() { return this.i.$n() }, Tl: function(a) { this.i.Tl(a) }, h5: function() { return 0 }, $$: function() {}, A4: function() { var f = b.rect(0, 0, this.Q.width, this.Q.height), a = this.$j(), f = b.RB(f, a); if (!this.K) { return f } for (var c = this.K, d = 0; d < c.length; d++) { var e = c[d]; e && e.jd && (e = e.Rp(a)) && (f = b.Dv(f, e)) } return f }, Rp: function(f) { var a = b.rect(0, 0, this.Q.width, this.Q.height); f = null == f ? this.Pd() : b.vl(this.Pd(), f); a = b.RB(a, f); if (!this.K) { return a } for (var c = this.K, d = 0; d < c.length; d++) { var e = c[d]; e && e.jd && (e = e.Rp(f)) && (a = b.Dv(a, e)) } return a }, sh: function() { return this.mi }, Xu: function() { return this.i.Xu() }, yd: function(a) { this.mi = a; this.i.ia(b.f.L.pa) }, TK: function(a) { F(this.i, a) }, RV: function() { return this.fc }, mX: function(a) { this.fc !== a && (this.fc = a, a = this.i, a.Fx = !0, a.ia(b.f.L.pa)) }, Uf: function() { var a = this.Ff; return b.color(a.r, a.g, a.b, a.a) }, Uq: function() { return this.i.Uq() }, xb: function(c) { var a = this.Ff; a.r = c.r; a.g = c.g; a.b = c.b; this.i.ia(b.f.L.ra) }, SK: function(a) { this.i.Rf(a) }, QV: function() { return this.ec }, lX: function(a) { this.ec !== a && (this.ec = a, a = this.i, a.Ex = !0, a.ia(b.f.L.ra)) }, Pi: function() {}, zh: function() { return !1 }, rQ: function() { this.i = b.Za.WI(this) }, Fd: function() { return b.ua === b.dc ? new b.f.A(this) : new b.f.F(this) } }); b.f.create = function() { return new b.f }; b.f.Jf = { X: 1, Ib: 2, Od: 3, Kl: 4, mf: 5, Eh: 6, kf: 7 }; b.assert(b.nd(b.na.Jw), b.j.Og, "BaseNodesPropertyDefine.js"); b.na.Jw(); delete b.na.Jw; b.pL = function(c, a) { this.Db = !0; this.Sc = c; this.bd = a; this.wb = function(f, d, e) { this.bd && this.bd.call(this.Sc, f, d, e) } }; b.f.L = { ba: 1, cca: 2, ra: 4, pa: 8, n2: 16, A8: 32, jk: 64, Wf: 128, all: 255 }; b.f.qd = function(a) { this.C = 1; this.p = a; this.Db = !1; this.xf = new b.XM; this.En = { a: 1, b: 0, c: 0, R: 1, la: 0, ma: 0 }; this.ql = { a: 1, b: 0, c: 0, R: 1, la: 0, ma: 0 }; this.MF = { a: 1, b: 0, c: 0, R: 1, la: 0, ma: 0 }; this.pc = 255; this.mb = b.color(255, 255, 255, 255); this.Fx = this.Ex = !1; this.kg = -1 }; b.f.qd.prototype = { constructor: b.f.qd, Tq: function() { return b.d(this.xf) }, Uq: function() { var a = this.mb; return b.color(a.r, a.g, a.b, a.a) }, Xu: function() { return this.pc }, lB: function() { this.C & b.f.L.ba && (this.MF = b.$H(this.Pd())); return this.MF }, LA: function() {}, ia: function(a) { 0 === this.C && 0 !== a && b.Za.NJ(this); this.C |= a }, Rf: function(f) { var a = this.p, c = this.mb, d = a.Ff, e; if (this.Ex && !a.ec) { c.r = d.r; c.g = d.g; c.b = d.b; c = new b.Bd(255, 255, 255, 255); f = a.K; a = 0; for (d = f.length; a < d; a++) { (e = f[a]) && e.i && e.i.Rf(c) } this.Ex = !1 } else { if (void 0 === f && (f = (f = a.Ua) && f.ec ? f.Uq() : b.color.WHITE), c.r = 0 | d.r * f.r / 255, c.g = 0 | d.g * f.g / 255, c.b = 0 | d.b * f.b / 255, a.ec) { for (f = a.K, a = 0, d = f.length; a < d; a++) { (e = f[a]) && e.i && (e.i.Rf(c), e.i.Va()) } } } this.C ^= this.C & b.f.L.ra }, Va: function() {}, updateStatus: function() { var e = b.f.L, a = this.C, c = a & e.ra, d = a & e.pa; c && this.Rf(); d && F(this); (c || d) && this.Va(); a & e.ba && (this.transform(G(this), !0), this.C ^= this.C & b.f.L.ba) } }; function la(e) { var a, c = e.p; if (void 0 === a) { var d = c.Ua; a = 255; d && d.fc && (a = d.Xu()) } e.pc = c.mi * a / 255 } function ma(e) { var a, c = e.p; e = e.mb; var d = c.Ff; void 0 === a && (a = (a = c.Ua) && a.ec ? a.Uq() : b.color.WHITE); e.r = 0 | d.r * a.r / 255; e.g = 0 | d.g * a.g / 255; e.b = 0 | d.b * a.b / 255 } function F(f, g) { var a = f.p, c, d, e; if (f.Fx && !a.fc) { f.pc = a.mi; d = a.K; a = 0; for (c = d.length; a < c; a++) { (e = d[a]) && e.i && F(e.i, 255) } f.Fx = !1 } else { if (void 0 === g && (c = a.Ua, g = 255, c && c.fc && (g = c.Xu())), f.pc = a.mi * g / 255, a.fc) { for (d = a.K, a = 0, c = d.length; a < c; a++) { (e = d[a]) && e.i && (F(e.i, f.pc), e.i.Va()) } } } f.C ^= f.C & b.f.L.pa } function G(a) { return a.p && a.p.Ua && a.p.Ua.i ? a.p.Ua.i : null } function ka(e) { var a = e.xf, c = e.p.Q, d = e.p.wf; a.x = c.width * d.x; a.y = c.height * d.y; e.ia(b.f.L.ba) }(function() { b.f.A = function(c) { b.f.qd.call(this, c); this.Cp = null; this.Th = !1 }; var a = b.f.A.prototype = Object.create(b.f.qd.prototype); a.constructor = b.f.A; a.transform = function(g, c) { var d = this.Pd(), e = this.ql; this.Th = !0; if (g) { var f = g.ql; e.a = d.a * f.a + d.b * f.c; e.b = d.a * f.b + d.b * f.R; e.c = d.c * f.a + d.R * f.c; e.R = d.c * f.b + d.R * f.R; e.la = f.a * d.la + f.c * d.ma + f.la; e.ma = f.R * d.ma + f.ma + f.b * d.la } else { e.a = d.a, e.b = d.b, e.c = d.c, e.R = d.R, e.la = d.la, e.ma = d.ma } if (c && (d = this.p.K) && 0 !== d.length) { for (e = 0, f = d.length; e < f; e++) { d[e].i.transform(this, c) } } }; a.Pd = function() { var c = this.p, d = !1; c.Gu && c.Ua && (d = c.Ua.Q, c.Id.x = c.Xk.x * d.width, c.Id.y = c.Xk.y * d.height, c.Ry = !1, d = !0); if (d || this.C & b.f.L.ba) { d = this.En; d.la = c.Id.x; d.ma = c.Id.y; var f = 1, k = 0, m = 0, p = 1; c.oi && (p = 0.017453292519943295 * c.oi, m = Math.sin(p), p = Math.cos(p)); c.Kj && (k = 0.017453292519943295 * c.Kj, f = Math.cos(k), k = -Math.sin(k)); d.a = f; d.b = k; d.c = m; d.R = p; var r = c.Ca, t = c.ib, e = this.xf.x, g = this.xf.y, h = 0.000001 > r && -0.000001 < r ? 0.000001 : r, n = 0.000001 > t && -0.000001 < t ? 0.000001 : t; if (1 !== r || 1 !== t) { f = d.a *= h, k = d.b *= h, m = d.c *= n, p = d.R *= n } if (c.xg || c.yg) { r = Math.tan(-c.xg * Math.PI / 180), t = Math.tan(-c.yg * Math.PI / 180), Infinity === r && (r = 99999999), Infinity === t && (t = 99999999), h = g * r, n = e * t, d.a = f - m * t, d.b = k - p * t, d.c = m - f * r, d.R = p - k * r, d.la += f * h + m * n, d.ma += k * h + p * n } d.la -= f * e + m * g; d.ma -= k * e + p * g; c.Dj && (d.la += e, d.ma += g); c.xp && (this.En = b.vl(d, c.Ws)) } return this.En }; a.ga = function(f) { var c = this.p; if (c.jd) { if (f = f || G(this)) { this.kg = f.kg + 1 } var d = c.K, e; this.We(f); f = d.length; if (0 < f) { c.kf(); for (c = 0; c < f; c++) { if (e = d[c], 0 > e.Xb) { e.i.ga(this) } else { break } } for (b.Za.Ig(this); c < f; c++) { d[c].i.ga(this) } } else { b.Za.Ig(this) } this.C = 0 } }; a.We = function(g) { var c = b.f.L, d = this.C, e = g ? g.p : null; e && e.ec && g.C & c.ra && (d |= c.ra); e && e.fc && g.C & c.pa && (d |= c.pa); g && g.C & c.ba && (d |= c.ba); var e = d & c.ra, f = d & c.pa, c = d & c.ba; this.C = d; e && ma(this); f && la(this); e && this.Va(); c && this.transform(g) }; a.ia = function(c) { b.f.qd.prototype.ia.call(this, c); this.pR(); this.Cp && this.Cp.ia(c) }; a.pR = function() { !1 === this.Th && (this.Th = !0) }; a.lu = function(f) { if (this.Cp !== f) { this.Cp = f; for (var c = this.p.K, d = 0, e = c.length; d < e; d++) { c[d].i.lu(f) } } }; a.LA = function() { this.Cp = null; for (var f = this.p.K, c, d = 0, e = f.length; d < e; d++) { (c = f[d]) && c.i && c.i.LA() } }; a.Tl = function() {}; a.$n = function() { return null }; b.f.A.BF = function(c) { return c ? c.src === b.SRC_ALPHA && c.ya === b.ONE || c.src === b.ONE && c.ya === b.ONE ? "lighter" : c.src === b.ZERO && c.ya === b.SRC_ALPHA ? "destination-in" : c.src === b.ZERO && c.ya === b.ONE_MINUS_SRC_ALPHA ? "destination-out" : "source-over" : "source-over" } })(); (function() { b.f.F = function(d) { b.f.qd.call(this, d); d = new b.e.U; var c = d.m; c[2] = c[3] = c[6] = c[7] = c[8] = c[9] = c[11] = c[14] = 0; c[10] = c[15] = 1; this.RR = d; this.Rc = new b.e.U; this.sj = this.va = null }; var a = b.f.F.prototype = Object.create(b.f.qd.prototype); a.constructor = b.f.F; a.Pd = function() { var r = this.p; if (r.Gu && r.Ua) { var s = r.Ua.Q; r.Id.x = r.Xk.x * s.width; r.Id.y = r.Xk.y * s.height; r.Ry = !1 } if (this.C & b.f.L.ba) { var s = r.Id.x, v = r.Id.y, c = this.xf.x, d = -c, f = this.xf.y, t = -f, u = r.Ca, e = r.ib, n = 0.017453292519943295 * r.oi, p = 0.017453292519943295 * r.Kj; r.Dj && (s += c, v += f); var h = 1, g = 0, m = 1, k = 0; if (0 !== r.oi || 0 !== r.Kj) { h = Math.cos(-n), g = Math.sin(-n), m = Math.cos(-p), k = Math.sin(-p) } n = r.xg || r.yg; n || 0 === c && 0 === f || (s += m * d * u + -g * t * e, v += k * d * u + h * t * e); p = this.En; p.a = m * u; p.b = k * u; p.c = -g * e; p.R = h * e; p.la = s; p.ma = v; n && (p = b.vl({ a: 1, b: Math.tan(b.Ce(r.yg)), c: Math.tan(b.Ce(r.xg)), R: 1, la: 0, ma: 0 }, p), 0 !== c || 0 !== f) && (p = b.zS(p, d, t)); r.xp && (p = b.vl(p, r.Ws), r.xp = !1); this.En = p } return this.En }; a.We = function(f) { var c = b.f.L, d = this.C, e = f ? f.p : null; e && e.ec && f.C & c.ra && (d |= c.ra); e && e.fc && f.C & c.pa && (d |= c.pa); f && f.C & c.ba && (d |= c.ba); e = d & c.ra; c = d & c.pa; this.C = d; e && ma(this); c && la(this); (e || c) && this.Va(); this.transform(f) }; a.Va = function() {}; a.ga = function(f) { var c = this.p; if (c.jd) { f = f || G(this); c.Ua && c.Ua.i && (this.kg = c.Ua.i.kg + 1); var d = b.vb; d.stack.push(d.top); this.We(f); d.top = this.Rc; if ((f = c.K) && 0 < f.length) { var e = f.length; c.kf(); for (c = 0; c < e; c++) { if (f[c] && 0 > f[c].Xb) { f[c].i.ga(this) } else { break } } for (b.Za.Ig(this); c < e; c++) { f[c] && f[c].i.ga(this) } } else { b.Za.Ig(this) } this.C = 0; d.top = d.stack.pop() } }; a.transform = function(c, e) { var f = this.RR, g = this.Rc, h = this.p, k = (c = c || G(this)) ? c.Rc : b.vb.top, m = this.Pd(); this.C ^= this.C & b.f.L.ba; var d = f.m; d[0] = m.a; d[4] = m.c; d[12] = m.la; d[1] = m.b; d[5] = m.R; d[13] = m.ma; d[14] = h.Iu; b.sv(g, k, f); null === h.sj || null !== h.ev && h.ev.wp || (k = this.xf.x, m = this.xf.y, 0 !== k || 0 !== m ? (b.iD || (k |= 0, m |= 0), d = b.e.U.Wj(k, m, 0, f), g.multiply(d), h.sj.Ky(g), d = b.e.U.Wj(-k, -m, 0, d), g.multiply(d), f.wd()) : h.sj.Ky(g)); if (e && h.K && 0 !== h.K.length) { for (h = h.K, f = 0, g = h.length; f < g; f++) { h[f].i.transform(this, e) } } }; a.Tl = function(c) { this.va = c }; a.$n = function() { return this.va } })(); b.Jc = b.f.extend({ textureAtlas: null, quadsToDraw: 0, en: 0, WF: 0, bi: 0, dh: 0, hc: !1, O: null, Dt: !1, gc: "AtlasNode", C1: null, ctor: function(e, a, c, d) { b.f.prototype.ctor.call(this); this.O = { src: b.qf, ya: b.pf }; this.Dt = !1; void 0 !== d && this.JV(e, a, c, d) }, Fd: function() { this.i = b.ua === b.dc ? new b.Jc.A(this) : new b.Jc.F(this) }, Bo: function() { b.log(b.j.aL) }, Uf: function() { return this.hc ? this.i.uj : b.f.prototype.Uf.call(this) }, Pi: function(c) { var a = this.color; this.hc = c; this.xb(a) }, zh: function() { return this.hc }, Vn: function() { return this.O }, Hh: function(c, a) { this.O = void 0 === a ? c : { src: c, ya: a } }, Ar: function(a) { this.textureAtlas = a }, ak: function() { return this.textureAtlas }, H5: function() { return this.quadsToDraw }, taa: function(a) { this.quadsToDraw = a }, JV: function(e, a, c, d) { if (!e) { throw "cc.AtlasNode.initWithTileFile(): title should not be null" } e = b.Ra.lc(e); return this.Pa(e, a, c, d) }, Pa: function(e, a, c, d) { return this.i.Pa(e, a, c, d) }, xb: function(a) { this.i.xb(a) }, yd: function(a) { this.i.yd(a) }, kb: function() { return this.i.kb() }, $a: function(a) { this.i.$a(a) }, Ez: function(a) { this.Dt = a } }); w = b.Jc.prototype; b.l(w, "opacity", w.sh, w.yd); b.l(w, "color", w.Uf, w.xb); b.l(w, "texture", w.kb, w.$a); b.dg.prototype.apply(w); b.Jc.create = function(e, a, c, d) { return new b.Jc(e, a, c, d) }; (function() { b.Jc.A = function(c) { b.f.A.call(this, c); this.Db = !1; this.uj = b.color.WHITE; this.P = this.Fb = null }; var a = b.Jc.A.prototype = Object.create(b.f.A.prototype); a.constructor = b.Jc.A; a.Pa = function(g, c, d, e) { var f = this.p; f.bi = c; f.dh = d; f.hc = !0; this.Fb = g; if (!this.Fb) { return b.log(b.j.vC), !1 } this.P = this.Fb; this.Dx(); f.quadsToDraw = e; return !0 }; a.xb = function(d) { var c = this.p.Ff; if (c.r !== d.r || c.g !== d.g || c.b !== d.b) { this.uj = d, this.Fm() } }; a.Fm = b.Z.Xz ? function() { var f = this.p, c = f.kb(); if (c && this.Fb) { var d = this.Fb.xa; if (d) { var e = c.xa, c = b.rect(0, 0, d.width, d.height); e instanceof HTMLCanvasElement ? b.o.A.Wm(d, this.uj, c, e) : (e = b.o.A.Wm(d, this.uj, c), c = new b.ca, c.mc(e), c.fb(), f.$a(c)) } } } : function() { var f = this.p, c, d = f.kb(); if (d && this.Fb && (c = d.xa)) { var e = this.Fb.xa; if (d = b.Ra.pB(e)) { e = b.rect(0, 0, e.width, e.height), c instanceof HTMLCanvasElement ? b.o.A.Vm(c, d, this.mb, e, c) : (c = b.o.A.Vm(c, d, this.mb, e), d = new b.ca, d.mc(c), d.fb(), f.$a(d)) } } }; a.yd = function(c) { b.f.prototype.yd.call(this.p, c) }; a.kb = function() { return this.P }; a.$a = function(c) { this.P = c }; a.Dx = function() { var d = this.p, c = this.P.eb(); d.WF = 0 | c.height / d.dh; d.en = 0 | c.width / d.bi } })(); (function() { b.Jc.F = function(c) { b.f.F.call(this, c); this.Db = !0; this.cb = null; this.uj = b.color.WHITE; this.gA = this.et = null; this.va = b.Ge.Hc(b.Vw); this.gA = b.s.getUniformLocation(this.va.Zu(), "u_color") }; var a = b.Jc.F.prototype = Object.create(b.f.F.prototype); a.constructor = b.Jc.F; a.pl = function() { var c = this.p; this.cb.texture.co() || (c.O.src = b.SRC_ALPHA, c.O.ya = b.ONE_MINUS_SRC_ALPHA) }; a.JH = function() { this.p.hc = this.cb.texture.co() }; a.wb = function(d) { d = d || b.s; var c = this.p; this.va.Ub(); this.va.wg(this.Rc); b.Vf(c.O.src, c.O.ya); this.gA && this.et && (d.uniform4fv(this.gA, this.et), this.cb.DI(c.quadsToDraw)) }; a.Pa = function(g, c, d, e) { var f = this.p; f.bi = c; f.dh = d; this.uj = b.color.WHITE; f.hc = !0; f.O.src = b.qf; f.O.ya = b.pf; c = f.Ff; this.et = new Float32Array([c.r / 255, c.g / 255, c.b / 255, f.mi / 255]); this.cb = new b.Ph; this.cb.Pa(g, e); if (!this.cb) { return b.log(b.j.vC), !1 } this.pl(); this.JH(); this.Dx(); f.quadsToDraw = e; return !0 }; a.xb = function(e) { var c = b.color(e.r, e.g, e.b), d = this.p; this.uj = e; e = this.pc; d.hc && (c.r = c.r * e / 255, c.g = c.g * e / 255, c.b = c.b * e / 255); b.f.prototype.xb.call(d, c) }; a.yd = function(d) { var c = this.p; b.f.prototype.yd.call(c, d); c.hc && (c.color = this.uj) }; a.Va = function() { var c = this.mb; this.et = new Float32Array([c.r / 255, c.g / 255, c.b / 255, this.pc / 255]) }; a.kb = function() { return this.cb.texture }; a.$a = function(c) { this.cb.texture = c; this.pl(); this.JH() }; a.Dx = function() { var e = this.p, c = this.cb.texture, d = c.eb(); e.Dt && (d = c.Q); e.WF = 0 | d.height / e.dh; e.en = 0 | d.width / e.bi } })(); b.na.mx = function() { b.ca = b.Ia.extend({ j1: !0, kh: null, ji: 0, ii: 0, kn: "", Q: null, Bh: 0, Ch: 0, Ct: !1, $m: !1, shaderProgram: null, T: !1, xa: null, Ze: null, url: null, ctor: function() { this.Q = b.size(0, 0); this.kh = b.ca.CI }, SB: function() { this.Ze && b.s.deleteTexture(this.Ze); b.S.uc(this.url) }, UI: function() { return this.kh }, nB: function() { return this.ji }, mB: function() { return this.ii }, getName: function() { return this.Ze }, eb: function() { return b.size(this.Q.width / b.jb(), this.Q.height / b.jb()) }, mg: function() { return this.Q.width / b.jb() }, Aj: function() { return this.Q.height / b.jb() }, xU: function() { return this.Q }, PU: function() { return this.Bh }, BX: function(a) { this.Bh = a }, QU: function() { return this.Ch }, CX: function(a) { this.Ch = a }, $n: function() { return this.shaderProgram }, Tl: function(a) { this.shaderProgram = a }, co: function() { return this.Ct }, xV: function() { return this.$m }, description: function() { return "\x3ccc.Texture2D | Name \x3d " + this.kn + " | Dimensions \x3d " + this.ji + " x " + this.ii + " | Coordinates \x3d (" + this.Bh + ", " + this.Ch + ")\x3e" }, Ol: function() {}, bW: function(a) { return a }, Zq: function(g, h, k, m, n) { var a = b.ca, c = b.s, d = c.RGBA, e = c.UNSIGNED_BYTE, f = k * b.ca.XD[h] / 8; 0 === f % 8 ? c.pixelStorei(c.UNPACK_ALIGNMENT, 8) : 0 === f % 4 ? c.pixelStorei(c.UNPACK_ALIGNMENT, 4) : 0 === f % 2 ? c.pixelStorei(c.UNPACK_ALIGNMENT, 2) : c.pixelStorei(c.UNPACK_ALIGNMENT, 1); this.Ze = c.createTexture(); b.Ee(this); c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MIN_FILTER, c.LINEAR); c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MAG_FILTER, c.LINEAR); c.texParameteri(c.TEXTURE_2D, c.TEXTURE_WRAP_S, c.CLAMP_TO_EDGE); c.texParameteri(c.TEXTURE_2D, c.TEXTURE_WRAP_T, c.CLAMP_TO_EDGE); switch (h) { case a.dj: d = c.RGBA; break; case a.gp: d = c.RGB; break; case a.vs: e = c.UNSIGNED_SHORT_4_4_4_4; break; case a.us: e = c.UNSIGNED_SHORT_5_5_5_1; break; case a.fp: e = c.UNSIGNED_SHORT_5_6_5; break; case a.Ew: d = c.LUMINANCE_ALPHA; break; case a.ep: d = c.ALPHA; break; case a.Fw: d = c.LUMINANCE; break; default: b.assert(0, b.j.aO) } c.texImage2D(c.TEXTURE_2D, 0, d, k, m, 0, d, e, g); this.Q.width = n.width; this.Q.height = n.height; this.ji = k; this.ii = m; this.kh = h; this.Bh = n.width / k; this.Ch = n.height / m; this.$m = this.Ct = !1; this.shaderProgram = b.Ge.Hc(b.kp); return this.T = !0 }, BT: function(e) { var a = [0, this.Ch, this.Bh, this.Ch, 0, 0, this.Bh, 0], c = this.ji * this.Bh, d = this.ii * this.Ch; e = [e.x, e.y, 0, c + e.x, e.y, 0, e.x, d + e.y, 0, c + e.x, d + e.y, 0]; b.tc(b.ad | b.pm); this.va.Ub(); this.va.DK(); b.Ee(this); c = b.s; c.vertexAttribPointer(b.ab, 2, c.FLOAT, !1, 0, e); c.vertexAttribPointer(b.Ed, 2, c.FLOAT, !1, 0, a); c.drawArrays(c.TRIANGLE_STRIP, 0, 4) }, DT: function(d) { var a = [0, this.Ch, this.Bh, this.Ch, 0, 0, this.Bh, 0]; d = [d.x, d.y, d.x + d.width, d.y, d.x, d.y + d.height, d.x + d.width, d.y + d.height]; b.tc(b.ad | b.pm); this.va.Ub(); this.va.DK(); b.Ee(this); var c = b.s; c.vertexAttribPointer(b.ab, 2, c.FLOAT, !1, 0, d); c.vertexAttribPointer(b.Ed, 2, c.FLOAT, !1, 0, a); c.drawArrays(c.TRIANGLE_STRIP, 0, 4) }, oJ: function(e) { if (null == e) { return b.log(b.j.dO), !1 } var a = e.sV(), c = e.EU(), d = b.Qn.aq; if (a > d || c > d) { return b.log(b.j.eO, a, c, d, d), !1 } this.T = !0; return this.qQ(e, a, c) }, mc: function(a) { a && (this.Ze = b.s.createTexture(), this.xa = a, this.T = !0) }, GU: function() { return this.xa }, VV: function() { return this.T }, fb: function(c) { c = void 0 === c ? !1 : c; if (b.fu) { if (!this.xa) { var a = b.S.De(this.url); if (!a) { return } this.mc(a) } this.xa.width && this.xa.height && (a = b.s, b.Ee(this), a.pixelStorei(a.UNPACK_ALIGNMENT, 4), c && a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL, 1), a.texImage2D(a.TEXTURE_2D, 0, a.RGBA, a.RGBA, a.UNSIGNED_BYTE, this.xa), a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.LINEAR), a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MAG_FILTER, a.LINEAR), a.texParameteri(a.TEXTURE_2D, a.TEXTURE_WRAP_S, a.CLAMP_TO_EDGE), a.texParameteri(a.TEXTURE_2D, a.TEXTURE_WRAP_T, a.CLAMP_TO_EDGE), this.shaderProgram = b.Ge.Hc(b.kp), b.Ee(null), c && a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL, 0), a = this.xa.height, this.ji = this.Q.width = this.xa.width, this.ii = this.Q.height = a, this.kh = b.ca.dj, this.Ch = this.Bh = 1, this.Ct = c, this.$m = !1, this.dispatchEvent("load")) } }, Qd: function() { b.log(b.j.jO); return null }, BV: function() { b.log(b.j.cO); return !1 }, DV: function() { b.log(b.j.gO); return !1 }, EV: function() { b.log(b.j.iO); return !1 }, YX: function(f, a, c, d) { var e = b.s; void 0 !== a && (f = { CJ: f, BJ: a, Lr: c, Mr: d }); b.assert(this.ji === b.cj(this.ji) && this.ii === b.cj(this.ii) || f.Lr === e.CLAMP_TO_EDGE && f.Mr === e.CLAMP_TO_EDGE, "WebGLRenderingContext.CLAMP_TO_EDGE should be used in NPOT textures"); b.Ee(this); e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MIN_FILTER, f.CJ); e.texParameteri(e.TEXTURE_2D, e.TEXTURE_MAG_FILTER, f.BJ); e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_S, f.Lr); e.texParameteri(e.TEXTURE_2D, e.TEXTURE_WRAP_T, f.Mr) }, iX: function() { var a = b.s; b.Ee(this); this.$m ? a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.LINEAR_MIPMAP_NEAREST) : a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.LINEAR); a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MAG_FILTER, a.LINEAR) }, hK: function() { var a = b.s; b.Ee(this); this.$m ? a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.NEAREST_MIPMAP_NEAREST) : a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.NEAREST); a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MAG_FILTER, a.NEAREST) }, generateMipmap: function() { b.assert(this.ji === b.cj(this.ji) && this.ii === b.cj(this.ii), "Mimpap texture only works in POT textures"); b.Ee(this); b.s.generateMipmap(b.s.TEXTURE_2D); this.$m = !0 }, BY: function() { return b.ca.UO[this.kh] }, XS: function(c) { c = c || this.kh; var a = b.ca.XD[c]; if (null != a) { return a } b.log(b.j.$N, c); return -1 }, qQ: function(d, g, h) { var k = b.ca, m = d.getData(), n = null, n = null, p = d.D6(), a = b.size(d.sV(), d.EU()), c = k.CI, e = d.z4(); p || (8 <= e ? c = k.gp : (b.log(b.j.XN), c = k.fp)); var f = g * h; if (c === k.fp) { if (p) { for (m = new Uint16Array(g * h), n = d.getData(), e = 0; e < f; ++e) { m[e] = (n[e] >> 0 & 255) >> 3 << 11 | (n[e] >> 8 & 255) >> 2 << 5 | (n[e] >> 16 & 255) >> 3 << 0 } } else { for (m = new Uint16Array(g * h), n = d.getData(), e = 0; e < f; ++e) { m[e] = (n[e] & 255) >> 3 << 11 | (n[e] & 255) >> 2 << 5 | (n[e] & 255) >> 3 << 0 } } } else { if (c === k.vs) { for (m = new Uint16Array(g * h), n = d.getData(), e = 0; e < f; ++e) { m[e] = (n[e] >> 0 & 255) >> 4 << 12 | (n[e] >> 8 & 255) >> 4 << 8 | (n[e] >> 16 & 255) >> 4 << 4 | (n[e] >> 24 & 255) >> 4 << 0 } } else { if (c === k.us) { for (m = new Uint16Array(g * h), n = d.getData(), e = 0; e < f; ++e) { m[e] = (n[e] >> 0 & 255) >> 3 << 11 | (n[e] >> 8 & 255) >> 3 << 6 | (n[e] >> 16 & 255) >> 3 << 1 | (n[e] >> 24 & 255) >> 7 << 0 } } else { if (c === k.ep) { for (m = new Uint8Array(g * h), n = d.getData(), e = 0; e < f; ++e) { m[e] = n >> 24 & 255 } } } } } if (p && c === k.gp) { for (n = d.getData(), m = new Uint8Array(g * h * 3), e = 0; e < f; ++e) { m[3 * e] = n >> 0 & 255, m[3 * e + 1] = n >> 8 & 255, m[3 * e + 2] = n >> 16 & 255 } } this.Zq(m, c, g, h, a); d.getData(); this.Ct = d.e7(); return !0 }, Gq: function(c, a) { this.addEventListener("load", c, a) }, UW: function(a) { this.removeEventListener("load", a) } }) }; b.na.nx = function() { var a = b.Ph.prototype; a.jH = function() { var c = b.s; this.Me[0] = c.createBuffer(); this.Me[1] = c.createBuffer(); this.cl = c.createBuffer(); this.Nt() }; a.Nt = function() { var c = b.s; c.bindBuffer(c.ARRAY_BUFFER, this.cl); c.bufferData(c.ARRAY_BUFFER, this.ve, c.DYNAMIC_DRAW); c.bindBuffer(c.ELEMENT_ARRAY_BUFFER, this.Me[1]); c.bufferData(c.ELEMENT_ARRAY_BUFFER, this.Nb, c.STATIC_DRAW) }; a.DI = function(e) { var c; c = 0; if (0 !== e && this.texture && this.texture.T) { var d = b.s; b.Ee(this.texture); b.tc(b.pp); d.bindBuffer(d.ARRAY_BUFFER, this.cl); this.dirty && (d.bufferData(d.ARRAY_BUFFER, this.ve, d.DYNAMIC_DRAW), this.dirty = !1); d.vertexAttribPointer(b.ab, 3, d.FLOAT, !1, 24, 0); d.vertexAttribPointer(b.ne, 4, d.UNSIGNED_BYTE, !0, 24, 12); d.vertexAttribPointer(b.Ed, 2, d.FLOAT, !1, 24, 16); d.bindBuffer(d.ELEMENT_ARRAY_BUFFER, this.Me[1]); b.kD ? d.drawElements(d.TRIANGLE_STRIP, 6 * e, d.UNSIGNED_SHORT, 6 * c * this.Nb.BYTES_PER_ELEMENT) : d.drawElements(d.TRIANGLES, 6 * e, d.UNSIGNED_SHORT, 6 * c * this.Nb.BYTES_PER_ELEMENT); b.df++ } } }; b.na.ox = function() { var a = b.Ra; a.fb = function(e) { var c = this.jc; b.fu || (c = this.$p); var d = c[e]; d || (d = c[e] = new b.ca, d.url = e); d.fb() }; a.lc = function(g, c, d) { b.assert(g, b.j.ZN); var e = this.jc; b.fu || (e = this.$p); var f = e[g] || e[b.S.Ek[g]]; if (f) { return c && c.call(d, f), f } f = e[g] = new b.ca; f.url = g; (b.S.mE(g) ? b.S.load : b.S.Ah).call(b.S, g, function(h) { if (h) { return c && c.call(d, h) } b.Ra.fb(g); h = e[g]; c && c.call(d, h) }); return f }; a.pS = a.lc; a = null }; b.na.Nw = function() { var c = b.ca; c.b0 = function(d) { b.TM = d }; c.dj = 2; c.gp = 3; c.fp = 4; c.ep = 5; c.Fw = 6; c.Ew = 7; c.vs = 8; c.us = 7; c.$C = 9; c.ZC = 10; c.LM = c.dj; var a = b.ca.UO = {}; a[c.dj] = "RGBA8888"; a[c.gp] = "RGB888"; a[c.fp] = "RGB565"; a[c.ep] = "A8"; a[c.Fw] = "I8"; a[c.Ew] = "AI88"; a[c.vs] = "RGBA4444"; a[c.us] = "RGB5A1"; a[c.$C] = "PVRTC4"; a[c.ZC] = "PVRTC2"; a = b.ca.XD = {}; a[c.dj] = 32; a[c.gp] = 24; a[c.fp] = 16; a[c.ep] = 8; a[c.Fw] = 8; a[c.Ew] = 16; a[c.vs] = 16; a[c.us] = 16; a[c.$C] = 4; a[c.ZC] = 3; a = b.ca.prototype; b.l(a, "name", a.getName); b.l(a, "pixelFormat", a.UI); b.l(a, "pixelsWidth", a.nB); b.l(a, "pixelsHeight", a.mB); b.l(a, "width", a.mg); b.l(a, "height", a.Aj); c.CI = c.LM }; b.na.Ow = function() { var a = b.Ph.prototype; b.l(a, "totalQuads", a.bJ); b.l(a, "capacity", a.NI); b.l(a, "quads", a.VI, a.xK) }; b.gZ = 51; b.jZ = 19; b.lZ = 18; b.iZ = 50; b.fZ = 34; b.dZ = 35; b.eZ = 33; b.hZ = 49; b.kZ = 17; b.TM = !1; b.ua === b.dc ? (b.ca = b.Ia.extend({ Q: null, T: !1, xa: null, url: null, $t: null, ctor: function() { this.Q = b.size(0, 0); this.T = !1; this.xa = null; this.$t = "" }, nB: function() { return this.Q.width }, mB: function() { return this.Q.height }, eb: function() { var a = b.jb(); return b.size(this.Q.width / a, this.Q.height / a) }, mg: function() { return this.Q.width / b.jb() }, Aj: function() { return this.Q.height / b.jb() }, xU: function() { return this.Q }, mc: function(a) { a && (this.xa = a, this.Q.width = a.width, this.Q.height = a.height, this.T = !0) }, GU: function() { return this.xa }, VV: function() { return this.T }, fb: function() { if (!this.T) { if (!this.xa) { var a = b.S.De(this.url); if (!a) { return } this.mc(a) } a = this.xa; this.Q.width = a.width; this.Q.height = a.height; this.dispatchEvent("load") } }, description: function() { return "\x3ccc.Texture2D | width \x3d " + this.Q.width + " height " + this.Q.height + "\x3e" }, Zq: function() { return !1 }, oJ: function() { return !1 }, Qd: function() { return !1 }, SB: function() { b.S.uc(this.url) }, getName: function() { return null }, PU: function() { return 1 }, BX: function() {}, QU: function() { return 1 }, CX: function() {}, UI: function() { return null }, $n: function() { return null }, Tl: function() {}, co: function() { return !1 }, xV: function() { return !1 }, Ol: function() {}, bW: function(a) { return a }, BT: function() {}, DT: function() {}, BV: function() { b.log(b.j.bO); return !1 }, DV: function() { b.log(b.j.fO); return !1 }, EV: function() { b.log(b.j.hO); return !1 }, YX: function(e, a, c, d) { void 0 !== a && (e = { CJ: e, BJ: a, Lr: c, Mr: d }); this.$t = e.Lr === b.REPEAT && e.Mr === b.REPEAT ? "repeat" : e.Lr === b.REPEAT ? "repeat-x" : e.Mr === b.REPEAT ? "repeat-y" : "" }, iX: function() {}, hK: function() {}, generateMipmap: function() {}, BY: function() { return "" }, XS: function() { return -1 }, Gq: function(c, a) { this.addEventListener("load", c, a) }, UW: function(a) { this.removeEventListener("load", a) }, yy: null, yx: null, Dy: !1, B1: function(a) { this.T && this.Dy !== a && ((this.Dy = a) ? (this.yx = this.xa, this.yy || (this.yy = b.ca.DP(this.xa)), this.xa = this.yy) : null !== this.yx && (this.xa = this.yx)) } }), b.ca.DP = function(f) { var g, a; if (null === f) { return null } a = a || b.ac("canvas"); g = g || b.rect(0, 0, f.width, f.height); a.width = g.width; a.height = g.height; var c = a.getContext("2d"); c.drawImage(f, g.x, g.y, g.width, g.height, 0, 0, g.width, g.height); f = c.getImageData(0, 0, g.width, g.height); g = f.data; for (var d = 0, e = g.length; d < e; d += 4) { g[d] = g[d + 1] = g[d + 2] = 0.34 * g[d] + 0.5 * g[d + 1] + 0.16 * g[d + 2] } c.putImageData(f, 0, 0); return a }) : (b.assert(b.nd(b.na.mx), b.j.Og, "TexturesWebGL.js"), b.na.mx(), delete b.na.mx); b.dg.prototype.apply(b.ca.prototype); b.assert(b.nd(b.na.Nw), b.j.Og, "TexturesPropertyDefine.js"); b.na.Nw(); delete b.na.Nw; b.Ra = { jc: {}, tq: {}, cA: 0 | 1000 * Math.random(), $p: {}, uQ: function() { var e, a = this.$p, c = this.jc; for (e in a) { var d = a[e]; d.fb(); c[e] = d } this.$p = {} }, L1: function() { b.log(b.j.FY) }, I1: function() { b.log(b.j.DY) }, description: function() { return "\x3cTextureCache | Number of textures \x3d " + this.jc.length + "\x3e" }, Dba: function(a) { b.log(b.j.KY); return this.Wq(a) }, Wq: function(a) { return this.jc[a] || this.jc[b.S.Ek[a]] }, HU: function(c) { for (var a in this.jc) { if (this.jc[a] === c) { return a } } return null }, CP: function() { this.cA++; return "_textureKey_" + this.cA }, pB: function(c) { var a = this.HU(c); a || (a = c instanceof HTMLImageElement ? c.src : this.CP()); this.tq[a] || (this.tq[a] = b.o.A.Um(c)); return this.tq[a] }, K1: function() { b.log(b.j.EY) }, K9: function() { var c = this.jc, a; for (a in c) { c[a] && c[a].SB() } this.jc = {} }, X9: function(d) { if (d) { var a = this.jc, c; for (c in a) { a[c] === d && (a[c].SB(), delete a[c]) } } }, Y9: function(a) { null != a && this.jc[a] && delete this.jc[a] }, o2: function(d, a) { if (a instanceof b.ca) { this.jc[d] = a } else { var c = new b.ca; c.mc(a); c.fb(); this.jc[d] = c } }, R1: function(d, a) { b.assert(d, b.j.HY); if (a && this.jc[a]) { return this.jc[a] } var c = new b.ca; c.oJ(d); null != a ? this.jc[a] = c : b.log(b.j.GY); return c }, h3: function() { var e = 0, f = 0, g = this.jc, h; for (h in g) { var a = g[h]; e++; a.xa instanceof HTMLImageElement ? b.log(b.j.IY, h, a.xa.src, a.pixelsWidth, a.pixelsHeight) : b.log(b.j.MK, h, a.pixelsWidth, a.pixelsHeight); f += a.pixelsWidth * a.pixelsHeight * 4 } g = this.tq; for (h in g) { var a = g[h], c; for (c in a) { var d = a[c]; e++; b.log(b.j.MK, h, d.width, d.height); f += d.width * d.height * 4 } } b.log(b.j.JY, e, f / 1024, (f / 1048576).toFixed(2)) }, tj: function() { this.jc = {}; this.tq = {}; this.cA = 0 | 1000 * Math.random(); this.$p = {} } }; b.ua === b.dc ? (w = b.Ra, w.fb = function(d) { var a = this.jc, c = a[d]; c || (c = a[d] = new b.ca, c.url = d); c.fb() }, w.lc = function(f, a, c) { b.assert(f, b.j.YN); var d = this.jc, e = d[f] || d[b.S.Ek[f]]; if (e) { return a && a.call(c, e), e } e = d[f] = new b.ca; e.url = f; (b.S.mE(f) ? b.S.load : b.S.Ah).call(b.S, f, function(g) { if (g) { return a && a.call(c, g) } b.Ra.fb(f); g = d[f]; a && a.call(c, g) }); return e }, w.pS = w.lc, w = null) : (b.assert(b.nd(b.na.ox), b.j.Og, "TexturesWebGL.js"), b.na.ox(), delete b.na.ox); b.Ph = b.Ia.extend({ dirty: !1, texture: null, Nb: null, Me: null, Vd: 0, Zd: null, ve: null, cl: null, Ue: null, ctor: function(c, a) { this.Me = []; b.ge(c) ? this.kv(c, a) : c instanceof b.ca && this.Pa(c, a) }, bJ: function() { return this.Da }, NI: function() { return this.Vd }, kb: function() { return this.texture }, $a: function(a) { this.texture = a }, mK: function(a) { this.dirty = a }, DB: function() { return this.dirty }, VI: function() { return this.Zd }, xK: function(a) { this.Zd = a }, Q0: function(d, a) { if (d) { for (var c = 0; c < d.length; c++) { this.nu(d[c], a + c) } } }, nu: function(d, a) { var c = this.Zd; c[a] ? (c[a].bl = d.bl, c[a].br = d.br, c[a].tl = d.tl, c[a].tr = d.tr) : c[a] = new b.Qb(d.tl, d.bl, d.tr, d.br, this.ve, a * b.Qb.BYTES_PER_ELEMENT) }, description: function() { return "\x3ccc.TextureAtlas | totalQuads \x3d" + this.Da + "\x3e" }, hH: function() { if (0 !== this.Vd) { for (var d = this.Nb, a = this.Vd, c = 0; c < a; c++) { b.kD ? (d[6 * c + 0] = 4 * c + 0, d[6 * c + 1] = 4 * c + 0, d[6 * c + 2] = 4 * c + 2, d[6 * c + 3] = 4 * c + 1, d[6 * c + 4] = 4 * c + 3, d[6 * c + 5] = 4 * c + 3) : (d[6 * c + 0] = 4 * c + 0, d[6 * c + 1] = 4 * c + 1, d[6 * c + 2] = 4 * c + 2, d[6 * c + 3] = 4 * c + 3, d[6 * c + 4] = 4 * c + 2, d[6 * c + 5] = 4 * c + 1) } } }, jH: function() { var a = b.s; this.Me[0] = a.createBuffer(); this.Me[1] = a.createBuffer(); this.cl = a.createBuffer(); this.Nt() }, Nt: function() { var a = b.s; a.bindBuffer(a.ARRAY_BUFFER, this.cl); a.bufferData(a.ARRAY_BUFFER, this.ve, a.DYNAMIC_DRAW); a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, this.Me[1]); a.bufferData(a.ELEMENT_ARRAY_BUFFER, this.Nb, a.STATIC_DRAW) }, kv: function(d, a) { var c = b.Ra.lc(d); if (c) { return this.Pa(c, a) } b.log(b.j.kO, d); return !1 }, Pa: function(f, a) { b.assert(f, b.j.lO); this.Vd = a |= 0; this.Da = 0; this.texture = f; this.Zd = []; this.Nb = new Uint16Array(6 * a); var c = b.Qb.BYTES_PER_ELEMENT; this.ve = new ArrayBuffer(c * a); this.Ue = new Uint8Array(this.ve); if ((!this.Zd || !this.Nb) && 0 < a) { return !1 } for (var d = this.Zd, e = 0; e < a; e++) { d[e] = new b.Qb(null, null, null, null, this.ve, e * c) } this.hH(); this.jH(); return this.dirty = !0 }, cw: function(c, a) { b.assert(c, b.j.vO); b.assert(0 <= a && a < this.Vd, b.j.wO); this.Da = Math.max(a + 1, this.Da); this.nu(c, a); this.dirty = !0 }, ho: function(f, a) { b.assert(a < this.Vd, b.j.oO); this.Da++; if (this.Da > this.Vd) { b.log(b.j.qD) } else { var c = b.Qb.BYTES_PER_ELEMENT, d = a * c, e = (this.Da - 1 - a) * c; this.Zd[this.Da - 1] = new b.Qb(null, null, null, null, this.ve, (this.Da - 1) * c); this.Ue.set(this.Ue.subarray(d, d + e), d + c); this.nu(f, a); this.dirty = !0 } }, O6: function(d, e, f) { f = f || d.length; b.assert(e + f <= this.Vd, b.j.pO); var g = b.Qb.BYTES_PER_ELEMENT; this.Da += f; if (this.Da > this.Vd) { b.log(b.j.qD) } else { var h = e * g, k = (this.Da - 1 - e - f) * g, a = this.Da - 1 - f, c; for (c = 0; c < f; c++) { this.Zd[a + c] = new b.Qb(null, null, null, null, this.ve, (this.Da - 1) * g) } this.Ue.set(this.Ue.subarray(h, h + k), h + g * f); for (c = 0; c < f; c++) { this.nu(d[c], e + c) } this.dirty = !0 } }, M6: function(f, g) { if (f !== g) { b.assert(0 <= g || g < this.Da, b.j.mO); b.assert(0 <= f || f < this.Da, b.j.nO); var a = b.Qb.BYTES_PER_ELEMENT, c = this.Ue, d = c.subarray(f * a, a), e; f > g ? (e = g * a, c.set(c.subarray(e, e + (f - g) * a), e + a), c.set(d, e)) : (e = (f + 1) * a, c.set(c.subarray(e, e + (g - f) * a), e - a), c.set(d, g * a)); this.dirty = !0 } }, Fv: function(d) { b.assert(d < this.Da, b.j.tO); var a = b.Qb.BYTES_PER_ELEMENT; this.Da--; this.Zd.length = this.Da; if (d !== this.Da) { var c = (d + 1) * a; this.Ue.set(this.Ue.subarray(c, c + (this.Da - d) * a), c - a) } this.dirty = !0 }, S9: function(e, a) { b.assert(e + a <= this.Da, b.j.uO); this.Da -= a; if (e !== this.Da) { var c = b.Qb.BYTES_PER_ELEMENT, d = (e + a) * c; this.Ue.set(this.Ue.subarray(d, d + (this.Da - e) * c), e * c) } this.dirty = !0 }, Ev: function() { this.Da = this.Zd.length = 0 }, jl: function(a) { this.dirty = a }, $J: function(d) { if (d === this.Vd) { return !0 } var e = b.Qb.BYTES_PER_ELEMENT, f = this.Vd; this.Da = Math.min(this.Da, d); var g = this.Vd = 0 | d, h = this.Da; if (null === this.Zd) { for (this.Zd = [], this.ve = new ArrayBuffer(e * g), this.Ue = new Uint8Array(this.ve), d = 0; d < g; d++) { this.Zd = new b.Qb(null, null, null, null, this.ve, d * e) } } else { var k, a, c = this.Zd; if (g > f) { k = []; a = new ArrayBuffer(e * g); for (d = 0; d < h; d++) { k[d] = new b.Qb(c[d].tl, c[d].bl, c[d].tr, c[d].br, a, d * e) } for (; d < g; d++) { k[d] = new b.Qb(null, null, null, null, a, d * e) } } else { for (h = Math.max(h, g), k = [], a = new ArrayBuffer(e * g), d = 0; d < h; d++) { k[d] = new b.Qb(c[d].tl, c[d].bl, c[d].tr, c[d].br, a, d * e) } } this.Ue = new Uint8Array(a); this.Zd = k; this.ve = a } null === this.Nb ? this.Nb = new Uint16Array(6 * g) : g > f ? (e = new Uint16Array(6 * g), e.set(this.Nb, 0), this.Nb = e) : this.Nb = this.Nb.subarray(0, 6 * g); this.hH(); this.Nt(); return this.dirty = !0 }, zV: function(a) { this.Da += a }, b8: function(h, k, m) { if (void 0 === m) { if (m = k, k = this.Da - h, b.assert(m + (this.Da - h) <= this.Vd, b.j.qO), 0 === k) { return } } else { if (b.assert(m + k <= this.Da, b.j.rO), b.assert(h < this.Da, b.j.sO), h === m) { return } } var a = b.Qb.BYTES_PER_ELEMENT, c = h * a, d = k * a, e = this.Ue, f = e.subarray(c, c + d), g = m * a; m < h ? (k = m * a, e.set(e.subarray(k, k + (h - m) * a), k + d)) : (k = (h + k) * a, e.set(e.subarray(k, k + (m - h) * a), c)); e.set(f, g); this.dirty = !0 }, i4: function(f, a) { for (var c = a * b.Qb.BYTES_PER_ELEMENT, d = new Uint8Array(this.ve, f * b.Qb.BYTES_PER_ELEMENT, c), e = 0; e < c; e++) { d[e] = 0 } }, HT: function() { this.DI(this.Da) }, m1: function() { var a = b.s; this.Me && (this.Me[0] && a.deleteBuffer(this.Me[0]), this.Me[1] && a.deleteBuffer(this.Me[1])); this.cl && a.deleteBuffer(this.cl) } }); w = b.Ph.prototype; b.l(w, "totalQuads", w.bJ); b.l(w, "capacity", w.NI); b.l(w, "quads", w.VI, w.xK); b.Ph.create = function(c, a) { return new b.Ph(c, a) }; b.Ph.KA = b.Ph.create; b.ua === b.Lb && (b.assert(b.nd(b.na.nx), b.j.Og, "TexturesWebGL.js"), b.na.nx(), delete b.na.nx); b.assert(b.nd(b.na.Ow), b.j.Og, "TexturesPropertyDefine.js"); b.na.Ow(); delete b.na.Ow; b.Pg = b.f.extend({ gc: "Scene", ctor: function() { b.f.prototype.ctor.call(this); this.Dj = !0; this.Xa(0.5, 0.5); this.he(b.I.Ea()) } }); b.Pg.create = function() { return new b.Pg }; b.yw = b.Pg.extend({ bh: null, dd: null, un: null, Vk: null, ci: null, gc: "LoaderScene", oa: function() { var d = this, a = d.Ax = new b.sb(b.color(51, 51, 51, 255)); d.B(a, 0); b.eG && b.S.Ah(b.eG, { Yf: !1 }, function(f, e) { logoWidth = e.width; logoHeight = e.height; d.Cy(e, 686) }); b.iG && b.S.Ah(b.iG, { Yf: !1 }, function(f, e) { d.Cy(e, 476) }); b.hG && b.S.Ah(b.hG, { Yf: !1 }, function(f, e) { d.sQ(e, 244) }); b.fG && b.S.Ah(b.fG, { Yf: !1 }, function(f, e) { d.oQ(e, 244) }); b.gG && b.S.Ah(b.gG, { Yf: !1 }, function(f, e) { d.Cy(e, 244) }); var c = d.dd = new b.J("\u9996\u6b21\u52a0\u8f7d\u65f6\u95f4\u7a0d\u957f\uff0c\u8bf7\u8010\u5fc3\u7b49\u5f85...", "Microsoft YaHei", 22); c.G(b.Hg(b.Yl.bottom, b.d(0, 298))); c.xb(b.color(128, 128, 128)); a.B(this.dd, 10); return !0 }, Cy: function(d, a) { var c = new b.ca; c.mc(d); c.fb(); this.ci = new b.o(c); this.ci.Xa(0, 0.5); this.ci.x = 0.5 * (b.Yl.width - this.ci.eb().width); this.ci.y = a; this.Ax.B(this.ci, 8) }, sQ: function(d, a) { var c = new b.ca; c.mc(d); c.fb(); this.un = new b.o(c); this.un.x = this.ci.Vq().x - 10; this.un.y = a; this.Ax.B(this.un, 11); c = new b.km(new b.ip(2, 360)); this.un.ha(c) }, oQ: function(d, a) { var c = new b.ca; c.mc(d); c.fb(); this.Vk = new b.o(c); this.Vk.zr(0); this.Vk.Xa(0, 0.5); this.Vk.x = this.ci.Vq().x - 24; this.Vk.y = a; this.Ax.B(this.Vk, 10) }, X: function() { b.f.prototype.X.call(this); this.Ni(this.rH, 0.3) }, Ib: function() { b.f.prototype.Ib.call(this) }, FV: function(c, a) { b.ge(c) && (c = [c]); this.aX = c || []; this.xl = a }, rH: function() { var a = this; a.Ri(a.rH); b.S.load(a.aX, function(d, e, c) { d = Math.min(c / e * 100 | 0, 100); a.Vk.zr(0.01 * d + 0.03) }, function() { a.xl && a.xl() }) } }); b.yw.GW = function(d) { var a = na, c = b; c.uv || (c.uv = new b.yw, c.uv.oa()); c.uv.FV(a, d); b.I.Jg(c.uv) }; b.wa = b.f.extend({ gc: "Layer", ctor: function() { var a = b.f.prototype; a.ctor.call(this); this.Dj = !0; a.Xa.call(this, 0.5, 0.5); a.he.call(this, b.N) }, oa: function() { this.Dj = !0; this.Xa(0.5, 0.5); this.he(b.N); this.fc = this.ec = !1; return !0 }, AA: function() { this.i.AA() }, Gr: function() { this.i.Gr() }, PV: function() { return this.ai }, B: function(d, a, c) { b.f.prototype.B.call(this, d, a, c); this.i.hE(d) }, Fd: function() { return b.ua === b.dc ? new b.wa.A(this) : new b.wa.F(this) } }); b.wa.create = function() { return new b.wa }; b.sb = b.wa.extend({ O: null, gc: "LayerColor", Vn: function() { return this.O }, u2: function(c, a) { this.width = c; this.height = a }, t2: function(a) { this.width = a }, s2: function(a) { this.height = a }, Pi: function() {}, zh: function() { return !1 }, ctor: function(d, a, c) { b.wa.prototype.ctor.call(this); this.O = new b.Wb(b.qf, b.pf); b.sb.prototype.oa.call(this, d, a, c) }, oa: function(e, a, c) { b.ua !== b.dc && (this.shaderProgram = b.Ge.Hc(b.zs)); var d = b.I.Ea(); e = e || b.color(0, 0, 0, 255); a = void 0 === a ? d.width : a; c = void 0 === c ? d.height : c; d = this.Ff; d.r = e.r; d.g = e.g; d.b = e.b; this.mi = e.a; this.i.ia(b.f.L.ra | b.f.L.pa); b.sb.prototype.he.call(this, a, c); return !0 }, Hh: function(d, a) { var c = this.O; void 0 === a ? (c.src = d.src, c.ya = d.ya) : (c.src = d, c.ya = a); this.i.Ir(c) }, qn: function(a) { b.f.prototype.qn.call(this, a); this.i.NH(a) }, on: function(a) { b.f.prototype.on.call(this, a); this.i.MH(a) }, he: function(c, a) { b.wa.prototype.he.call(this, c, a); this.i.LH(c, a) }, Fd: function() { return b.ua === b.dc ? new b.sb.A(this) : new b.sb.F(this) } }); b.sb.create = function(d, a, c) { return new b.sb(d, a, c) }; var oa = b.sb.prototype; b.l(oa, "width", oa.mg, oa.qn); b.l(oa, "height", oa.Aj, oa.on); b.Td = b.sb.extend({ Kp: null, wn: 255, Lm: 255, oj: null, Mx: !1, gc: "LayerGradient", Wd: [], ctor: function(e, a, c, d) { b.sb.prototype.ctor.call(this); this.Kp = b.color(0, 0, 0, 255); this.oj = b.d(0, -1); this.Lm = this.wn = 255; d && d instanceof Array ? (this.Wd = d, d.splice(0, 0, { d: 0, color: e || b.color.BLACK }), d.push({ d: 1, color: a || b.color.BLACK })) : this.Wd = [{ d: 0, color: e || b.color.BLACK }, { d: 1, color: a || b.color.BLACK }]; b.Td.prototype.oa.call(this, e, a, c, d) }, oa: function(e, a, c) { e = e || b.color(0, 0, 0, 255); a = a || b.color(0, 0, 0, 255); c = c || b.d(0, -1); var d = this.Kp; this.wn = e.a; d.r = a.r; d.g = a.g; d.b = a.b; this.Lm = a.a; this.oj = c; this.Mx = !0; b.sb.prototype.oa.call(this, b.color(e.r, e.g, e.b, 255)); this.i.ia(b.f.L.ra | b.f.L.pa | b.f.L.Wf); return !0 }, he: function(c, a) { b.sb.prototype.he.call(this, c, a); this.i.ia(b.f.L.Wf) }, qn: function(a) { b.sb.prototype.qn.call(this, a); this.i.ia(b.f.L.Wf) }, on: function(a) { b.sb.prototype.on.call(this, a); this.i.ia(b.f.L.Wf) }, jV: function() { return b.color(this.Ff) }, WX: function(c) { this.color = c; var a = this.Wd; a && 0 < a.length && (a = a[0].color, a.r = c.r, a.g = c.g, a.b = c.b) }, vX: function(c) { var a = this.Kp; a.r = c.r; a.g = c.g; a.b = c.b; (a = this.Wd) && 0 < a.length && (a = a[a.length - 1].color, a.r = c.r, a.g = c.g, a.b = c.b); this.i.ia(b.f.L.ra) }, CU: function() { return b.color(this.Kp) }, XX: function(c) { this.wn = c; var a = this.Wd; a && 0 < a.length && (a[0].color.a = c); this.i.ia(b.f.L.pa) }, kV: function() { return this.wn }, wX: function(c) { this.Lm = c; var a = this.Wd; a && 0 < a.length && (a[a.length - 1].color.a = c); this.i.ia(b.f.L.pa) }, DU: function() { return this.Lm }, cY: function(a) { this.oj.x = a.x; this.oj.y = a.y; this.i.ia(b.f.L.Wf) }, oV: function() { return b.d(this.oj.x, this.oj.y) }, W6: function() { return this.Mx }, H$: function(a) { this.Mx = a; this.i.ia(b.f.L.Wf) }, vU: function() { return this.Wd }, pX: function(a) { this.Wd = a; this.i.ia(b.f.L.ra | b.f.L.pa | b.f.L.Wf) }, Fd: function() { return b.ua === b.dc ? new b.Td.A(this) : new b.Td.F(this) } }); b.Td.create = function(e, a, c, d) { return new b.Td(e, a, c, d) }; var I = b.Td.prototype; b.l(I, "startColor", I.jV, I.WX); b.l(I, "endColor", I.CU, I.vX); b.l(I, "startOpacity", I.kV, I.XX); b.l(I, "endOpacity", I.DU, I.wX); b.l(I, "vector", I.oV, I.cY); b.l(I, "colorStops", I.vU, I.pX); b.ts = b.wa.extend({ Ok: 0, eh: null, gc: "LayerMultiplex", ctor: function(a) { b.wa.prototype.ctor.call(this); a instanceof Array ? b.ts.prototype.qJ.call(this, a) : b.ts.prototype.qJ.call(this, Array.prototype.slice.call(arguments)) }, qJ: function(a) { 0 < a.length && null == a[a.length - 1] && b.log(b.j.jM); this.eh = a; this.Ok = 0; this.B(this.eh[this.Ok]); return !0 }, yba: function(a) { a >= this.eh.length ? b.log(b.j.kM) : (this.removeChild(this.eh[this.Ok], !0), this.Ok = a, this.B(this.eh[a])) }, zba: function(a) { a >= this.eh.length ? b.log(b.j.lM) : (this.removeChild(this.eh[this.Ok], !0), this.eh[this.Ok] = null, this.Ok = a, this.B(this.eh[a])) }, J1: function(a) { a ? this.eh.push(a) : b.log(b.j.iM) } }); b.ts.create = function() { return new b.ts(Array.prototype.slice.call(arguments)) }; (function() { b.wa.A = function(c) { b.f.A.call(this, c); this.ai = !1; this.qj = null }; var a = b.wa.A.prototype = Object.create(b.f.A.prototype); a.constructor = b.wa.A; a.AA = function() { if (!this.ai) { this.Db = !0; this.ai = this.Th = b.Za.af = !0; for (var e = this.p.K, c = 0, d = e.length; c < d; c++) { e[c].i.lu(this) } this.qj || (this.qj = new b.eL, this.qj.Xa(0, 0)) } }; a.Gr = function() { if (this.ai) { b.Za.af = !0; this.ai = this.Db = !1; this.Th = !0; for (var e = this.p.K, c = 0, d = e.length; c < d; c++) { e[c].i.lu(null) } } }; a.PV = function() { return this.ai }; a.wb = function() { if (this.Th) { var f = this.p, g = f.K, h = this.qj; this.transform(G(this), !0); var c = this.ly(); c.width = 0 | c.width + 0.5; c.height = 0 | c.height + 0.5; var d = h.Vg, e = d.getContext(); h.YJ(c.width, c.height); d.yr(0 - c.x, e.canvas.height - c.height + c.y); h.G(c.x, c.y); f.kf(); b.Za.Au(this.Y); f = 0; for (c = g.length; f < c; f++) { g[f].ga(this) } b.Za.nz(d, this.Y); h.transform(); this.Th = !1 } }; a.ga = function(e) { if (this.ai) { var c = this.p, d = c.K.length; c.jd && 0 !== d && (this.We(e), b.Za.Ig(this), this.qj.ga(this), this.C = 0) } else { b.f.A.prototype.ga.call(this, e) } }; a.hE = function(c) { c.Ua === this.p && this.ai && c.i.lu(this) }; a.ly = function() { var f = null, g = this.p; if (!g.K || 0 === g.K.length) { return b.rect(0, 0, 10, 10) } for (var h = g.$j(), g = g.K, c = 0, d = g.length; c < d; c++) { var e = g[c]; e && e.jd && (f ? (e = e.Rp(h)) && (f = b.Dv(f, e)) : f = e.Rp(h)) } return f } })(); (function() { b.sb.A = function(c) { b.wa.A.call(this, c); this.Db = !0; this.Fk = "source-over"; this.gP = new b.pL(this, this.hP) }; var a = b.sb.A.prototype = Object.create(b.wa.A.prototype); a.constructor = b.sb.A; a.Gr = function() { b.wa.A.prototype.Gr.call(this); this.Db = !0 }; a.wb = function(c, e, f) { c = c || b.s; var g = c.getContext(), h = this.p, k = this.mb, m = this.pc / 255, d = h.Q.width, h = h.Q.height; 0 !== m && (c.vr(this.Fk), c.xr(m), c.Kg("rgba(" + (0 | k.r) + "," + (0 | k.g) + "," + (0 | k.b) + ", 1)"), c.setTransform(this.ql, e, f), g.fillRect(0, 0, d * e, -h * f), b.df++) }; a.Ir = function(c) { this.Fk = b.f.A.BF(c) }; a.LH = a.NH = a.MH = function() {}; a.hP = function() { if (this.Th) { var e = this.p, f = this.qj, g = e.K, h = g.length; this.transform(G(this), !0); var k = this.ly(); k.width = 0 | k.width + 0.5; k.height = 0 | k.height + 0.5; var c = f.Vg, d = c.getContext(); f.YJ(k.width, k.height); c.yr(0 - k.x, d.canvas.height - k.height + k.y); f.G(k.x, k.y); b.Za.Au(this.Y); if (0 < h) { e.kf(); for (e = 0; e < h; e++) { if (k = g[e], 0 > k.Xb) { k.i.ga(this) } else { break } } for (b.Za.Ig(this); e < h; e++) { g[e].i.ga(this) } } else { b.Za.Ig(this) } b.Za.nz(c, this.Y); f.transform(); this.Th = !1 } }; a.ga = function(c) { this.ai ? this.p.jd && (this.We(c), b.Za.Ig(this.gP), this.qj.i.ia(b.f.L.ba), this.qj.ga(this), this.C = 0) : b.f.A.prototype.ga.call(this) }; a.ly = function() { var g = this.p, c = b.rect(0, 0, g.Q.width, g.Q.height), d = g.$j(), c = b.RB(c, g.$j()); if (!g.K || 0 === g.K.length) { return c } for (var g = g.K, e = 0; e < g.length; e++) { var f = g[e]; f && f.jd && (f = f.Rp(d), c = b.Dv(c, f)) } return c } })(); b.Td.qd = { updateStatus: function() { var e = b.f.L, a = this.C, c = a & e.ra, d = a & e.pa; c && this.Rf(); d && F(this); a & e.ba && this.transform(null, !0); (c || d || a & e.Wf) && this.Va(); this.C = 0 } }; (function() { b.Td.A = function(c) { b.sb.A.call(this, c); this.Db = !0; this.oh = b.d(0, 0); this.pt = b.d(0, 0); this.lF = this.tH = null }; var a = b.Td.A.prototype = Object.create(b.sb.A.prototype); b.nv(b.Td.qd, a); a.constructor = b.Td.A; a.wb = function(h, k, m) { h = h || b.s; var n = h.getContext(), c = this.p, d = this.pc / 255; if (0 !== d) { var e = c.Q.width, f = c.Q.height; h.vr(this.Fk); h.xr(d); d = n.createLinearGradient(this.oh.x * k, this.oh.y * m, this.pt.x * k, this.pt.y * m); if (c.Wd) { for (var g = 0; g < c.Wd.length; g++) { d.addColorStop(c.Wd[g].d, this.rE[g]) } } else { d.addColorStop(0, this.tH), d.addColorStop(1, this.lF) } h.Kg(d); h.setTransform(this.ql, k, m); n.fillRect(0, 0, e * k, -f * m); b.df++ } }; a.We = function(g) { var c = b.f.L, d = this.C, e = g ? g.p : null; e && e.ec && g.C & c.ra && (d |= c.ra); e && e.fc && g.C & c.pa && (d |= c.pa); g && g.C & c.ba && (d |= c.ba); var e = d & c.ra, f = d & c.pa; this.C = d; e && ma(this); f && la(this); d & c.ba && this.transform(g); (e || f || d & c.Wf) && this.Va() }; a.Va = function() { var g = this.p, c = g.Q, d = 0.5 * c.width, c = 0.5 * c.height; this.C ^= this.C & b.f.L.Wf; var e = b.DJ(b.d(0, -1), g.oj), e = b.KJ(b.d(0, -1), b.d(0, 0), e), f = Math.min(Math.abs(1 / e.x), Math.abs(1 / e.y)); this.oh.x = d * -e.x * f + d; this.oh.y = c * e.y * f - c; this.pt.x = d * e.x * f + d; this.pt.y = c * -e.y * f - c; d = this.mb; c = g.Kp; e = g.Lm / 255; this.tH = "rgba(" + Math.round(d.r) + "," + Math.round(d.g) + "," + Math.round(d.b) + "," + (g.wn / 255).toFixed(4) + ")"; this.lF = "rgba(" + Math.round(c.r) + "," + Math.round(c.g) + "," + Math.round(c.b) + "," + e.toFixed(4) + ")"; if (g.Wd) { for (this.Lm = this.wn = 0, this.rE = [], d = 0; d < g.Wd.length; d++) { c = g.Wd[d].color, this.rE.push("rgba(" + Math.round(c.r) + "," + Math.round(c.g) + "," + Math.round(c.b) + "," + (null == c.a ? 1 : c.a / 255).toFixed(4) + ")") } } } })(); (function() { b.wa.F = function(c) { b.f.F.call(this, c) }; var a = b.wa.F.prototype = Object.create(b.f.F.prototype); a.constructor = b.wa.F; a.AA = function() {}; a.Gr = function() {}; a.hE = function() {} })(); (function() { b.sb.F = function(f) { b.wa.F.call(this, f); this.Db = !0; this.pu = new ArrayBuffer(32); this.ou = new ArrayBuffer(16); f = this.pu; var c = this.ou, d = z.BYTES_PER_ELEMENT, e = b.Bd.BYTES_PER_ELEMENT; this.tn = [new z(0, 0, f, 0), new z(0, 0, f, d), new z(0, 0, f, 2 * d), new z(0, 0, f, 3 * d)]; this.oH = [b.color(0, 0, 0, 255, c, 0), b.color(0, 0, 0, 255, c, e), b.color(0, 0, 0, 255, c, 2 * e), b.color(0, 0, 0, 255, c, 3 * e)]; this.mA = b.s.createBuffer(); this.Lx = b.s.createBuffer() }; var a = b.sb.F.prototype = Object.create(b.wa.F.prototype); a.constructor = b.sb.F; a.wb = function(d) { d = d || b.s; var c = this.p; this.va.Ub(); this.va.wg(this.Rc); b.tc(b.ad | b.op); b.Vf(c.O.src, c.O.ya); d.bindBuffer(d.ARRAY_BUFFER, this.mA); d.vertexAttribPointer(b.ab, 2, d.FLOAT, !1, 0, 0); d.bindBuffer(d.ARRAY_BUFFER, this.Lx); d.vertexAttribPointer(b.ne, 4, d.UNSIGNED_BYTE, !0, 0, 0); d.drawArrays(d.TRIANGLE_STRIP, 0, this.tn.length) }; a.LH = function(e, c) { var d = this.tn; void 0 === c ? (d[1].x = e.width, d[2].y = e.height, d[3].x = e.width, d[3].y = e.height) : (d[1].x = e, d[2].y = c, d[3].x = e, d[3].y = c); this.Zs() }; a.NH = function(d) { var c = this.tn; c[1].x = d; c[3].x = d; this.Zs() }; a.MH = function(d) { var c = this.tn; c[2].y = d; c[3].y = d; this.Zs() }; a.Va = function() { for (var f = this.mb, c = this.pc, d = this.oH, e = 0; 4 > e; e++) { d[e].r = f.r, d[e].g = f.g, d[e].b = f.b, d[e].a = c } this.jE() }; a.Zs = function() { var c = b.s; c.bindBuffer(c.ARRAY_BUFFER, this.mA); c.bufferData(c.ARRAY_BUFFER, this.pu, c.STATIC_DRAW) }; a.jE = function() { var c = b.s; c.bindBuffer(c.ARRAY_BUFFER, this.Lx); c.bufferData(c.ARRAY_BUFFER, this.ou, c.STATIC_DRAW) }; a.Ir = function() {} })(); (function() { b.Td.F = function(c) { b.sb.F.call(this, c); this.Db = !0; this.pE = new b.Nh; this.qE = !1 }; var a = b.Td.F.prototype = Object.create(b.sb.F.prototype); b.nv(b.Td.qd, a); a.constructor = b.Td.F; a.We = function(g) { var c = b.f.L, d = this.C, e = g ? g.p : null; e && e.ec && g.C & c.ra && (d |= c.ra); e && e.fc && g.C & c.pa && (d |= c.pa); g && g.C & c.ba && (d |= c.ba); var e = d & c.ra, f = d & c.pa; this.C = d; e && ma(this); f && la(this); this.transform(g); (e || f || d & c.Wf) && this.Va() }; a.Va = function() { this.C ^= this.C & b.f.L.Wf; var c = this.p, d = c.Wd; if (d && !(2 > d.length)) { this.qE = !0; var f = d.length, k = 2 * f, m, p = c.Q; this.pu = new ArrayBuffer(8 * k); this.ou = new ArrayBuffer(4 * k); var r = this.tn, t = this.oH; r.length = 0; t.length = 0; var e = this.pu, g = this.ou, h = z.BYTES_PER_ELEMENT, n = b.Bd.BYTES_PER_ELEMENT; for (m = 0; m < k; m++) { r.push(new z(0, 0, e, h * m)), t.push(b.color(0, 0, 0, 255, g, n * m)) } m = Math.PI + b.DJ(b.d(0, -1), c.oj); c = b.d(p.width / 2, p.height / 2); e = Math.round(b.QB(m)); k = b.wS(c.x, c.y); k = b.xS(k, m); 90 > e ? (e = b.d(-c.x, c.y), g = b.d(c.x, c.y)) : 180 > e ? (e = b.d(c.x, c.y), g = b.d(c.x, -c.y)) : 270 > e ? (e = b.d(c.x, -c.y), g = b.d(-c.x, -c.y)) : (e = b.d(-c.x, -c.y), g = b.d(-c.x, c.y)); h = Math.sin(m); m = Math.cos(m); k = b.yS(k, Math.abs((e.x * m - e.y * h) / c.x), Math.abs((g.x * h + g.y * m) / c.y)); for (m = 0; m < f; m++) { e = d[m].d * p.height, g = b.hf(-c.x, e - c.y, k), r[2 * m].x = g.x, r[2 * m].y = g.y, e = b.hf(p.width - c.x, e - c.y, k), r[2 * m + 1].x = e.x, r[2 * m + 1].y = e.y } p = this.pc / 255; for (m = 0; m < f; m++) { r = d[m].color, c = t[2 * m], k = t[2 * m + 1], c.r = r.r, c.g = r.g, c.b = r.b, c.a = r.a * p, k.r = r.r, k.g = r.g, k.b = r.b, k.a = r.a * p } this.Zs(); this.jE() } }; a.wb = function(e) { e = e || b.s; var c = this.p, d = this.LP(); e.enable(e.SCISSOR_TEST); b.view.SX(d.x, d.y, d.width, d.height); this.va.Ub(); this.va.wg(this.Rc); b.tc(b.ad | b.op); b.Vf(c.O.src, c.O.ya); e.bindBuffer(e.ARRAY_BUFFER, this.mA); e.vertexAttribPointer(b.ab, 2, e.FLOAT, !1, 0, 0); e.bindBuffer(e.ARRAY_BUFFER, this.Lx); e.vertexAttribPointer(b.ne, 4, e.UNSIGNED_BYTE, !0, 0, 0); e.drawArrays(e.TRIANGLE_STRIP, 0, this.tn.length); e.disable(e.SCISSOR_TEST) }; a.LP = function() { if (this.qE) { var d = this.p, c = b.rect(0, 0, d.Q.width, d.Q.height), d = d.$j(); this.pE = b.JG(c, d) } return this.pE } })(); b.na.Mw = function() { var a = b.o.prototype; b.l(a, "opacityModifyRGB", a.zh, a.Pi); b.l(a, "opacity", a.sh, a.yd); b.l(a, "color", a.Uf, a.xb); b.l(a, "flippedX", a.SV, a.xX); b.l(a, "flippedY", a.TV, a.yX); b.l(a, "offsetX", a.VP); b.l(a, "offsetY", a.WP); b.l(a, "texture", a.kb, a.$a); b.l(a, "textureRectRotated", a.YV); b.l(a, "batchNode", a.qU, a.Mv); b.l(a, "quad", a.$u) }; b.o = b.f.extend({ dirty: !1, atlasIndex: 0, textureAtlas: null, lb: null, dl: null, Zm: null, ll: !1, Fn: null, O: null, P: null, Aa: null, we: !1, ed: null, ol: null, hc: !1, Ac: !1, Bc: !1, T: !1, gc: "Sprite", ctor: function(d, a, c) { b.f.prototype.ctor.call(this); this.ll = !1; this.ed = b.d(0, 0); this.ol = b.d(0, 0); this.O = { src: b.qf, ya: b.pf }; this.Aa = b.rect(0, 0, 0, 0); this.HR(d, a, c) }, Cr: function() { return this.T }, Gq: function(c, a) { this.addEventListener("load", c, a) }, DB: function() { return this.dirty }, mK: function(a) { this.dirty = a }, YV: function() { return this.we }, y4: function() { return this.atlasIndex }, z$: function(a) { this.atlasIndex = a }, aJ: function() { return b.rect(this.Aa) }, ak: function() { return this.textureAtlas }, Ar: function(a) { this.textureAtlas = a }, UU: function() { return b.d(this.ed) }, VP: function() { return this.ed.x }, WP: function() { return this.ed.y }, Vn: function() { return this.O }, wh: function(c) { b.assert(c, b.j.HN); c.T || (this.T = !1, c.addEventListener("load", this.i.nH, this)); var a = b.ua === b.dc ? !1 : c.ze, a = this.Pa(c.kb(), c.Ei(), a); this.Ul(c); return a }, J6: function(c) { b.assert(c, b.j.IN); var a = b.W.V(c); b.assert(a, c + b.j.JN); return this.wh(a) }, Vba: function(a) { this.textureAtlas = a.ak(); this.lb = a }, dY: function(c) { var a = this.Aa; a.x = c.x; a.y = c.y; a.width = c.width; a.height = c.height }, kf: function() { if (this.ye) { var f = this.K, a = f.length, c, d, e; for (c = 1; c < a; c++) { e = f[c]; for (d = c - 1; 0 <= d;) { if (e.Xb < f[d].Xb) { f[d + 1] = f[d] } else { if (e.Xb === f[d].Xb && e.arrivalOrder < f[d].arrivalOrder) { f[d + 1] = f[d] } else { break } } d-- } f[d + 1] = e } this.lb && this.ig(f, b.f.Jf.kf); this.ye = !1 } }, ur: function(c, a) { b.assert(c, b.j.LN); - 1 === this.K.indexOf(c) ? b.log(b.j.KN) : a !== c.zIndex && (this.lb && !this.ye && (this.Hz(), this.lb.VJ(!0)), b.f.prototype.ur.call(this, c, a)) }, removeChild: function(c, a) { this.lb && this.lb.Gv(c); b.f.prototype.removeChild.call(this, c, a) }, Yv: function(a) { b.f.prototype.Yv.call(this, a); this.i.bC(!0) }, qo: function(f) { var a = this.K, c = this.lb; if (c && null != a) { for (var d = 0, e = a.length; d < e; d++) { c.Gv(a[d]) } } b.f.prototype.qo.call(this, f); this.Zm = !1 }, iv: function(a) { this.lb ? b.log(b.j.FN) : b.f.prototype.iv.call(this, a) }, xX: function(a) { this.Ac !== a && (this.Ac = a, this.wc(this.Aa, this.we, this.Q), this.Oi(!0)) }, yX: function(a) { this.Bc !== a && (this.Bc = a, this.wc(this.Aa, this.we, this.Q), this.Oi(!0)) }, SV: function() { return this.Ac }, TV: function() { return this.Bc }, Pi: function(a) { this.hc !== a && (this.hc = a, this.i.$G()) }, zh: function() { return this.hc }, R$: function(d, a) { b.assert(d, b.j.PN); var c = b.Ku.MI(d); c ? (c = c.sd[a]) ? this.Ul(c.V()) : b.log(b.j.ON) : b.log(b.j.NN) }, qU: function() { return this.lb }, Hz: function() { if (!this.ye) { this.ye = !0; for (var a = this.Ua; a && a !== this.lb;) { a.Hz(), a = a.parent } } }, kb: function() { return this.P }, HR: function(d, a, c) { if (void 0 === d) { b.o.prototype.oa.call(this) } else { if (b.ge(d)) { "#" === d[0] ? (d = b.W.V(d.substr(1, d.length - 1)), this.wh(d)) : b.o.prototype.oa.call(this, d, a) } else { if (b.ar(d)) { if (d instanceof b.ca) { this.Pa(d, a, c) } else { if (d instanceof b.Dd) { this.wh(d) } else { if (d instanceof HTMLImageElement || d instanceof HTMLCanvasElement) { a = new b.ca, a.mc(d), a.fb(), this.Pa(a) } } } } } } }, $u: function() { return this.i.$u() }, Hh: function(d, a) { var c = this.O; void 0 === a ? (c.src = d.src, c.ya = d.ya) : (c.src = d, c.ya = a); this.i.Ir(c) }, oa: function() { if (0 < arguments.length) { return this.kv(arguments[0], arguments[1]) } b.f.prototype.oa.call(this); this.dirty = this.dl = !1; this.O.src = b.qf; this.O.ya = b.pf; this.texture = null; this.Ac = this.Bc = !1; this.anchorY = this.anchorX = 0.5; this.ed.x = 0; this.ed.y = 0; this.Zm = !1; this.i.$h(); this.wc(b.rect(0, 0, 0, 0), !1, b.size(0, 0)); return !0 }, kv: function(e, a) { b.assert(e, b.j.GN); var c = b.Ra.Wq(e); if (c) { if (!a) { var d = c.eb(); a = b.rect(0, 0, d.width, d.height) } return this.Pa(c, a) } c = b.Ra.lc(e); return this.Pa(c, a || b.rect(0, 0, c.Q.width, c.Q.height)) }, Pa: function(f, a, c, d) { b.assert(0 !== arguments.length, b.j.hL); c = c || !1; f = this.i.KF(f, a, c, d); if (!b.f.prototype.oa.call(this)) { return !1 } this.lb = null; this.dirty = this.dl = !1; this.hc = !0; this.O.src = b.qf; this.O.ya = b.pf; this.Ac = this.Bc = !1; this.Xa(0.5, 0.5); this.ed.x = 0; this.ed.y = 0; this.Zm = !1; this.i.$h(); var e = f.T; this.T = e; if (!e) { return this.we = c, a && (this.Aa.x = a.x, this.Aa.y = a.y, this.Aa.width = a.width, this.Aa.height = a.height), this.texture && this.texture.removeEventListener("load", this), f.addEventListener("load", this.i.wH, this), this.texture = f, !0 } a || (a = b.rect(0, 0, f.width, f.height)); this.i.nE(f, a, c); this.texture = f; this.wc(a, c); this.Mv(null); return !0 }, wc: function(e, a, c, d) { this.we = a || !1; this.he(c || e); this.dY(e); this.i.eH(e, d); e = this.ol.x; a = this.ol.y; this.Ac && (e = -e); this.Bc && (a = -a); c = this.Aa; this.ed.x = e + (this.Q.width - c.width) / 2; this.ed.y = a + (this.Q.height - c.height) / 2; this.lb ? this.dirty = !0 : this.i.oz() }, mf: function() { this.i.mf() }, B: function(d, a, c) { b.assert(d, b.j.fL); null == a && (a = d.Xb); null == c && (c = d.tag); this.i.ZG(d) && (b.f.prototype.B.call(this, d, a, c), this.Zm = !0) }, Ul: function(d) { var a = this; b.ge(d) && (d = b.W.V(d), b.assert(d, b.j.QN)); this.Oi(!0); var c = d.TI(); a.ol.x = c.x; a.ol.y = c.y; c = d.kb(); d.T ? (c !== a.P && (a.texture = c), a.wc(d.Ei(), d.ze, d.Yu())) : (a.T = !1, d.addEventListener("load", function(f) { a.T = !0; var e = f.kb(); e !== a.P && (a.texture = e); a.wc(f.Ei(), f.ze, f.Yu()); a.dispatchEvent("load"); a.xb(a.color) }, a)); this.i.IH(c) }, Q$: function(a) { b.log(b.j.MN); this.Ul(a) }, FB: function(a) { return this.i.FB(a) }, wT: function() { return this.V() }, V: function() { return new b.Dd(this.P, b.rr(this.Aa), this.we, b.FW(this.ol), b.kY(this.Q)) }, Mv: function(a) { (this.lb = a) ? (this.Fn = { a: 1, b: 0, c: 0, R: 1, la: 0, ma: 0 }, this.textureAtlas = this.lb.ak()) : (this.atlasIndex = b.o.OC, this.textureAtlas = null, this.dirty = this.dl = !1, this.i.oz()) }, $a: function(a) { if (!a) { return this.i.mq(null) } b.ge(a) ? (a = b.Ra.lc(a), a.T ? (this.i.mq(a), this.Jx(a.eb()), this.xb(this.Ff), this.T = !0) : a.addEventListener("load", function() { this.i.mq(a); this.Jx(a.eb()); this.xb(this.Ff); this.T = !0 }, this)) : (b.assert(a instanceof b.ca, b.j.SN), this.Jx(a.eb()), this.i.mq(a)) }, Jx: function(c) { if (c && (c.width || c.height)) { var a = this.aJ(); a.height || a.width || (c.x = c.x || 0, c.y = c.y || 0, c.width = c.width || 0, c.height = c.height || 0, this.wc(c)) } }, Fd: function() { return b.ua === b.dc ? new b.o.A(this) : new b.o.F(this) } }); b.o.create = function(d, a, c) { return new b.o(d, a, c) }; b.o.KA = b.o.create; b.o.J2 = b.o.create; b.o.JA = b.o.create; b.o.OC = -1; b.dg.prototype.apply(b.o.prototype); b.assert(b.nd(b.na.Mw), b.j.Og, "SpritesPropertyDefine.js"); b.na.Mw(); delete b.na.Mw; (function() { b.o.A = function(c) { b.f.A.call(this, c); this.Db = !0; this.ti = { Hv: 0, Iv: 0, x: 0, y: 0, width: 0, height: 0, Kr: !1 }; this.Fk = "source-over"; this.jg = !1; this.Fb = null }; var a = b.o.A.prototype = Object.create(b.f.A.prototype); a.constructor = b.o.A; a.$h = function() {}; a.bC = function() {}; a.oz = function() {}; a.mq = function(d) { var c = this.p; c.P !== d && (d ? (d.xa instanceof HTMLImageElement && (this.Fb = d), c.T = d.T) : c.T = !1, c.P = d) }; a.$G = function() { this.ia(b.f.L.ra | b.f.L.pa) }; a.FB = function(d) { var c = this.p; return d.kb() !== c.P ? !1 : b.RJ(d.Ei(), c.Aa) }; a.Ir = function(c) { this.Fk = b.f.A.BF(c) }; a.ZG = function() { return !0 }; a.KF = function(f, c, d, e) { d && f.T && (f = f.xa, f = b.o.A.Sx(f, c, e), e = new b.ca, e.mc(f), e.fb(), f = e, c.x = c.y = 0, this.p.Aa = b.rect(0, 0, c.width, c.height)); return f }; a.nE = function(e, c) { if (e && e.url) { var d = c.y + c.height; c.x + c.width > e.width && b.error(b.j.Rw, e.url); d > e.height && b.error(b.j.Qw, e.url) } this.p.Fb = e }; a.wb = function(c, e, h) { var k = this.p, m = this.ti, n = this.pc / 255; if ((!k.P || 0 !== m.width && 0 !== m.height && k.P.T) && 0 !== n) { c = c || b.s; var p = c.getContext(), r = k.ed.x, d = k.Aa.height, f = k.Aa.width, g = -k.ed.y - d; c.setTransform(this.ql, e, h); c.vr(this.Fk); c.xr(n); (k.Ac || k.Bc) && c.save(); k.Ac && (r = -r - f, p.scale(-1, 1)); k.Bc && (g = k.ed.y, p.scale(1, -1)); k.P ? (n = k.P.xa, "" !== k.P.$t ? (c.Kg(p.createPattern(n, k.P.$t)), p.fillRect(r * e, g * h, f * e, d * h)) : this.jg ? p.drawImage(n, 0, 0, m.width, m.height, r * e, g * h, f * e, d * h) : p.drawImage(n, m.Hv, m.Iv, m.width, m.height, r * e, g * h, f * e, d * h)) : (n = k.Q, m.Kr && (m = this.mb, c.Kg("rgba(" + m.r + "," + m.g + "," + m.b + ",1)"), p.fillRect(r * e, g * h, n.width * e, n.height * h))); (k.Ac || k.Bc) && c.restore(); b.df++ } }; a.Va = b.Z.Xz ? function() { var g = this.p, c = this.mb; if (255 === c.r && 255 === c.g && 255 === c.b) { this.jg && (this.jg = !1, g.texture = this.Fb) } else { var d, e = g.P, f = this.ti; e && f.Kr && this.Fb && (d = e.xa) && (this.jg = !0, d instanceof HTMLCanvasElement && !this.we && !this.lG && this.Fb.xa !== d ? b.o.A.Wm(this.Fb.xa, c, f, d) : (d = b.o.A.Wm(this.Fb.xa, c, f), e = new b.ca, e.mc(d), e.fb(), g.texture = e)) } } : function() { var g = this.p, c = this.mb; if (255 === c.r && 255 === c.g && 255 === c.b) { this.jg && (this.jg = !1, g.texture = this.Fb) } else { var d, e = g.P, f = this.ti; e && f.Kr && this.Fb && (d = e.xa) && (e = b.Ra.pB(this.Fb.xa)) && (this.jg = !0, d instanceof HTMLCanvasElement && !this.we && !this.lG ? b.o.A.Vm(d, e, c, f, d) : (d = b.o.A.Vm(d, e, c, f), e = new b.ca, e.mc(d), e.fb(), g.texture = e)) } }; a.$u = function() { return null }; a.IH = function(e, c) { var d = this.p; d.we && (d.Fb = e); this.jg = !1; this.ti.Hv = this.ti.x; this.ti.Iv = this.ti.y; c && (d = d.Uf(), 255 === d.r && 255 === d.g && 255 === d.b || this.Va()) }; a.mf = function() { var d = this.p; if (d.dirty) { var c = d.Ua; !d.jd || c && c !== d.lb && c.ll ? d.ll = !0 : (d.ll = !1, d.Fn = c && c !== d.lb ? b.vl(this.Pd(), c.Fn) : this.Pd()); d.dl = !1; d.dirty = !1 } d.Zm && d.ig(d.K, b.f.Jf.mf) }; a.Rf = function(c) { b.f.A.prototype.Rf.call(this, c) }; a.nH = function(c) { this.wc(c.Ei(), c.ze, c.Yu()); this.i.Va(); this.dispatchEvent("load") }; a.wH = function(e) { if (!this.T) { this.T = !0; var c = this.Aa, d = this.i; c ? b.lz(c) && (c.width = e.width, c.height = e.height) : c = b.rect(0, 0, e.width, e.height); this.texture = d.Fb = e; this.wc(c, this.we); e = d.mb; 255 === e.r && 255 === e.g && 255 === e.b || d.Va(); this.Mv(this.lb); this.dispatchEvent("load") } }; a.eH = function(f, c) { void 0 === c && (c = !0); var d = this.ti, e = c ? b.jb() : 1; d.Hv = d.x = 0 | f.x * e; d.Iv = d.y = 0 | f.y * e; d.width = 0 | f.width * e; d.height = 0 | f.height * e; d.Kr = !(0 === d.width || 0 === d.height || 0 > d.x || 0 > d.y); this.jg && (this.p.P = this.Fb, this.jg = !1, this.Va()) }; b.o.A.Wm = function(g, c, d, e) { e = e || b.ac("canvas"); d = d || b.rect(0, 0, g.width, g.height); var f = e.getContext("2d"); e.width !== d.width || e.height !== d.height ? (e.width = d.width, e.height = d.height) : f.globalCompositeOperation = "source-over"; f.fillStyle = "rgb(" + (0 | c.r) + "," + (0 | c.g) + "," + (0 | c.b) + ")"; f.fillRect(0, 0, d.width, d.height); f.globalCompositeOperation = "multiply"; f.drawImage(g, d.x, d.y, d.width, d.height, 0, 0, d.width, d.height); f.globalCompositeOperation = "destination-atop"; f.drawImage(g, d.x, d.y, d.width, d.height, 0, 0, d.width, d.height); return e }; b.o.A.Vm = function(g, h, k, m, n) { m || (m = b.rect(0, 0, g.width, g.height)); g = k.r / 255; var p = k.g / 255; k = k.b / 255; var c = Math.min(m.width, h[0].width), d = Math.min(m.height, h[0].height), e; n ? (e = n.getContext("2d"), e.clearRect(0, 0, c, d)) : (n = b.ac("canvas"), n.width = c, n.height = d, e = n.getContext("2d")); e.save(); e.globalCompositeOperation = "lighter"; var f = e.globalAlpha; 0 < g && (e.globalAlpha = g * f, e.drawImage(h[0], m.x, m.y, c, d, 0, 0, c, d)); 0 < p && (e.globalAlpha = p * f, e.drawImage(h[1], m.x, m.y, c, d, 0, 0, c, d)); 0 < k && (e.globalAlpha = k * f, e.drawImage(h[2], m.x, m.y, c, d, 0, 0, c, d)); 1 > g + p + k && (e.globalAlpha = f, e.drawImage(h[3], m.x, m.y, c, d, 0, 0, c, d)); e.restore(); return n }; b.o.A.Um = function(f) { function c() { var k = b.o.A.Um, n = f.width, p = f.height; d[0].width = n; d[0].height = p; d[1].width = n; d[1].height = p; d[2].width = n; d[2].height = p; d[3].width = n; d[3].height = p; k.canvas.width = n; k.canvas.height = p; var r = k.canvas.getContext("2d"); r.drawImage(f, 0, 0); k.oC.width = n; k.oC.height = p; for (var r = r.getImageData(0, 0, n, p).data, h = 0; 4 > h; h++) { var j = d[h].getContext("2d"); j.getImageData(0, 0, n, p).data; k.LK.drawImage(f, 0, 0); for (var m = k.LK.getImageData(0, 0, n, p), i = m.data, g = 0; g < r.length; g += 4) { i[g] = 0 === h ? r[g] : 0, i[g + 1] = 1 === h ? r[g + 1] : 0, i[g + 2] = 2 === h ? r[g + 2] : 0, i[g + 3] = r[g + 3] } j.putImageData(m, 0, 0) } f.onload = null } if (f.pI) { return f.pI } var d = [b.ac("canvas"), b.ac("canvas"), b.ac("canvas"), b.ac("canvas")]; try { c() } catch (e) { f.onload = c } return f.pI = d }; b.o.A.Um.canvas = b.ac("canvas"); b.o.A.Um.oC = b.ac("canvas"); b.o.A.Um.LK = b.o.A.Um.oC.getContext("2d"); b.o.A.Sx = function(g, c, d) { if (!g) { return null } if (!c) { return g } d = null == d ? !0 : d; var e = b.ac("canvas"); e.width = c.width; e.height = c.height; var f = e.getContext("2d"); f.translate(e.width / 2, e.height / 2); d ? f.rotate(-1.5707963267948966) : f.rotate(1.5707963267948966); f.drawImage(g, c.x, c.y, c.height, c.width, -c.height / 2, -c.width / 2, c.height, c.width); return e } })(); (function() { b.o.F = function(c) { b.f.F.call(this, c); this.Db = !0; this.ki = new b.Qb; this.DG = b.s.createBuffer(); this.li = !0; this.dl = this.Ka = !1 }; var a = b.o.F.prototype = Object.create(b.f.F.prototype); a.constructor = b.o.F; a.Ir = function() {}; a.ia = function(c) { b.f.F.prototype.ia.call(this, c); this.Ka = !0 }; a.bC = function(g) { this.Ka = this.dl = g; for (var c = this.p.K, d, e = c ? c.length : 0, f = 0; f < e; f++) { d = c[f], d instanceof b.o && d.i.bC(g) } }; a.ZG = function(d) { var c = this.p; if (c.lb) { if (!(d instanceof b.o)) { return b.log(b.j.CN), !1 } d.texture.Ze !== c.textureAtlas.texture.Ze && b.log(b.j.DN); c.lb.appendChild(d); c.ye || c.Hz() } return !0 }; a.KF = function(c) { return c }; a.FB = function(d) { var c = this.p; return b.RJ(d.Ei(), c.Aa) && d.kb().getName() === c.P.getName() && b.DW(d.TI(), c.ol) }; a.$h = function() { var d = { r: 255, g: 255, b: 255, a: 255 }, c = this.ki; c.bl.colors = d; c.br.colors = d; c.tl.colors = d; c.tr.colors = d; this.li = !0 }; a.oz = function() { var g = this.p, c = g.ed.x, d = g.ed.y, e = c + g.Aa.width, g = d + g.Aa.height, f = this.ki; f.bl.vertices = { x: c, y: d, z: 0 }; f.br.vertices = { x: e, y: d, z: 0 }; f.tl.vertices = { x: c, y: g, z: 0 }; f.tr.vertices = { x: e, y: g, z: 0 }; this.li = !0 }; a.$u = function() { return this.ki }; a.IH = function() {}; a.nH = function(c) { this.wc(c.Ei(), c.ze, c.Yu()); this.dispatchEvent("load") }; a.wH = function(e) { var c = this.i; if (!this.T) { this.T = !0; var d = this.Aa; d ? b.lz(d) && (d.width = e.width, d.height = e.height) : d = b.rect(0, 0, e.width, e.height); this.texture = e; this.wc(d, this.we); this.Mv(this.lb); c.li = !0; this.dispatchEvent("load") } }; a.eH = function(h, k) { void 0 === k && (k = !0); k && (h = b.rr(h)); var m = this.p, n = m.lb ? m.textureAtlas.texture : m.P; if (n) { var c = n.pixelsWidth, d = n.pixelsHeight, e, f, g = this.ki; m.we ? (b.uw ? (n = (2 * h.x + 1) / (2 * c), c = n + (2 * h.height - 2) / (2 * c), e = (2 * h.y + 1) / (2 * d), d = e + (2 * h.width - 2) / (2 * d)) : (n = h.x / c, c = (h.x + h.height) / c, e = h.y / d, d = (h.y + h.width) / d), m.Ac && (f = e, e = d, d = f), m.Bc && (f = n, n = c, c = f), g.bl.texCoords.u = n, g.bl.texCoords.v = e, g.br.texCoords.u = n, g.br.texCoords.v = d, g.tl.texCoords.u = c, g.tl.texCoords.v = e, g.tr.texCoords.u = c, g.tr.texCoords.v = d) : (b.uw ? (n = (2 * h.x + 1) / (2 * c), c = n + (2 * h.width - 2) / (2 * c), e = (2 * h.y + 1) / (2 * d), d = e + (2 * h.height - 2) / (2 * d)) : (n = h.x / c, c = (h.x + h.width) / c, e = h.y / d, d = (h.y + h.height) / d), m.Ac && (f = n, n = c, c = f), m.Bc && (f = e, e = d, d = f), g.bl.texCoords.u = n, g.bl.texCoords.v = d, g.br.texCoords.u = c, g.br.texCoords.v = d, g.tl.texCoords.u = n, g.tl.texCoords.v = e, g.tr.texCoords.u = c, g.tr.texCoords.v = e); this.li = !0 } }; a.transform = function(d, c) { b.f.F.prototype.transform.call(this, d, c); this.Ka = !0 }; a.$G = function() {}; a.Va = function() { var e = this.mb, c = this.pc, d = this.p, e = { r: e.r, g: e.g, b: e.b, a: c }; d.hc && (e.r *= c / 255, e.g *= c / 255, e.b *= c / 255); c = this.ki; c.bl.colors = e; c.br.colors = e; c.tl.colors = e; c.tr.colors = e; d.lb && (d.atlasIndex !== b.o.OC ? d.textureAtlas.cw(c, d.atlasIndex) : this.Ka = !0); this.li = !0 }; a.pl = function() { if (this.lb) { b.log(b.j.BN) } else { var c = this.p; c.P && c.P.co() ? (c.O.src = b.qf, c.O.ya = b.pf, c.opacityModifyRGB = !0) : (c.O.src = b.SRC_ALPHA, c.O.ya = b.ONE_MINUS_SRC_ALPHA, c.opacityModifyRGB = !1) } }; a.mq = function(d) { var c = this.p; if (c.lb) { if (c.lb.texture !== d) { b.log(b.j.RN); return } } else { c.P !== d && (c.T = d ? d.T : !1, c.P = d, this.pl()) } this.va = d ? b.Ge.Hc(b.Ak) : b.Ge.Hc(b.zs) }; a.mf = function() { var n = this.p; if (this.Ka) { var t = this.ki, u = n.Ua; if (!n.jd || u && u !== n.lb && u.ll) { t.br.vertices = t.tl.vertices = t.tr.vertices = t.bl.vertices = { x: 0, y: 0, z: 0 }, n.ll = !0 } else { n.ll = !1; 0 !== this.C && (this.updateStatus(), this.C = 0); n.Fn = u && u !== n.lb ? b.vl(this.Pd(), u.Fn) : this.Pd(); var x = n.Fn, c = n.Aa, u = n.ed.x, d = n.ed.y, g = u + c.width, v = d + c.height, f = x.la, r = x.ma, s = x.a, h = x.b, e = x.R, m = -x.c, x = u * s - d * m + f, c = u * h + d * e + r, k = g * s - d * m + f, d = g * h + d * e + r, p = g * s - v * m + f, g = g * h + v * e + r, f = u * s - v * m + f, u = u * h + v * e + r, v = n.Iu; b.iD || (x |= 0, c |= 0, k |= 0, d |= 0, p |= 0, g |= 0, f |= 0, u |= 0); t.bl.vertices = { x: x, y: c, z: v }; t.br.vertices = { x: k, y: d, z: v }; t.tl.vertices = { x: f, y: u, z: v }; t.tr.vertices = { x: p, y: g, z: v } } n.textureAtlas.cw(t, n.atlasIndex); this.Ka = n.dl = !1 } n.Zm && n.ig(n.K, b.f.Jf.mf) }; a.nE = function(e, c, d) { e && e.url && (d ? (d = c.x + c.height, c = c.y + c.width) : (d = c.x + c.width, c = c.y + c.height), d > e.width && b.error(b.j.Rw, e.url), c > e.height && b.error(b.j.Qw, e.url)) }; a.wb = function(e) { var c = this.p, d = c.P; d && !d.T || 0 === this.pc || (e = e || b.s, d ? d.T && (this.va.Ub(), this.va.wg(this.Rc), b.Vf(c.O.src, c.O.ya), b.sB(0, d), b.tc(b.pp), e.bindBuffer(e.ARRAY_BUFFER, this.DG), this.li && (e.bufferData(e.ARRAY_BUFFER, this.ki.arrayBuffer, e.DYNAMIC_DRAW), this.li = !1), e.vertexAttribPointer(0, 3, e.FLOAT, !1, 24, 0), e.vertexAttribPointer(1, 4, e.UNSIGNED_BYTE, !0, 24, 12), e.vertexAttribPointer(2, 2, e.FLOAT, !1, 24, 16), e.drawArrays(e.TRIANGLE_STRIP, 0, 4)) : (this.va.Ub(), this.va.wg(this.Rc), b.Vf(c.O.src, c.O.ya), b.Ee(null), b.tc(b.ad | b.op), e.bindBuffer(e.ARRAY_BUFFER, this.DG), this.li && (e.bufferData(e.ARRAY_BUFFER, this.ki.arrayBuffer, e.STATIC_DRAW), this.li = !1), e.vertexAttribPointer(b.ab, 3, e.FLOAT, !1, 24, 0), e.vertexAttribPointer(b.ne, 4, e.UNSIGNED_BYTE, !0, 24, 12), e.drawArrays(e.TRIANGLE_STRIP, 0, 4)), b.df++, 0 === b.Xw && !c.kH) || (b.Gg(b.Mg), b.vb.stack.push(b.vb.top), b.vb.top = this.Rc, 1 === b.Xw || c.kH ? (c = this.ki, c = [b.d(c.tl.vertices.x, c.tl.vertices.y), b.d(c.bl.vertices.x, c.bl.vertices.y), b.d(c.br.vertices.x, c.br.vertices.y), b.d(c.tr.vertices.x, c.tr.vertices.y)], b.Nk.Tf(c, 4, !0)) : 2 === b.Xw && (d = c.aJ(), c = c.UU(), c = [b.d(c.x, c.y), b.d(c.x + d.width, c.y), b.d(c.x + d.width, c.y + d.height), b.d(c.x, c.y + d.height)], b.Nk.Tf(c, 4, !0)), b.vb.top = b.vb.stack.pop()) } })(); b.Sa = b.f.extend({ O: null, re: null, gc: "SpriteBatchNode", ctor: function(d, a) { b.f.prototype.ctor.call(this); this.re = []; this.O = new b.Wb(b.qf, b.pf); var c; a = a || b.Sa.EC; b.ge(d) ? (c = b.Ra.Wq(d)) || (c = b.Ra.lc(d)) : d instanceof b.ca && (c = d); c && this.Pa(c, a) }, P1: function(e, f, g) { b.assert(e, b.j.vN); if (!(e instanceof b.o)) { return b.log(b.j.uN), null } e.atlasIndex = f; var h = 0, a, c = this.re; if (c && 0 < c.length) { for (h = 0, a = c.length; h < a; h++) { var d = c[h]; if (d && d.atlasIndex >= f) { break } } } c.splice(h, 0, e); b.f.prototype.B.call(this, e, f, g); this.VJ(!1); return this }, ak: function() { return this.i.ak() }, Ar: function() {}, zU: function() { return this.re }, kv: function(d, a) { var c = b.Ra.Wq(d); c || (c = b.Ra.lc(d)); return this.Pa(c, a) }, s1: function() {}, oa: function(d, a) { var c = b.Ra.Wq(d); c || (c = b.Ra.lc(d)); return this.Pa(c, a) }, Yq: function() { this.i.Yq() }, M9: function(c, a) { this.removeChild(this.K[c], a) }, PJ: function(f, a) { var c = f.children; if (c && 0 < c.length) { for (var d = 0; d < c.length; d++) { var e = c[d]; e && 0 > e.zIndex && (a = this.PJ(e, a)) } }!f === this && (f.atlasIndex = a, a++); if (c && 0 < c.length) { for (d = 0; d < c.length; d++) { (e = c[d]) && 0 <= e.zIndex && (a = this.PJ(e, a)) } } return a }, AB: function(c) { var a = c.children; return a && 0 !== a.length ? this.AB(a[a.length - 1]) : c.atlasIndex }, lW: function(c) { var a = c.children; return a && 0 !== a.length ? this.lW(a[a.length - 1]) : c.atlasIndex }, QS: function(f, g) { var a = f.parent, c = a.children, d = c.indexOf(f), e = null; 0 < d && d < b.TD && (e = c[d - 1]); return a === this ? 0 === d ? 0 : this.AB(e) + 1 : 0 === d ? 0 > g ? a.atlasIndex : a.atlasIndex + 1 : 0 > e.zIndex && 0 > g || 0 <= e.zIndex && 0 <= g ? this.AB(e) + 1 : a.atlasIndex + 1 }, VJ: function(a) { this.ye = a }, Hh: function(c, a) { this.O = void 0 === a ? c : { src: c, ya: a } }, Vn: function() { return new b.Wb(this.O.src, this.O.ya) }, ur: function(c, a) { b.assert(c, b.j.AN); - 1 === this.K.indexOf(c) ? b.log(b.j.zN) : a !== c.zIndex && b.f.prototype.ur.call(this, c, a) }, removeChild: function(c, a) { null != c && (-1 === this.K.indexOf(c) ? b.log(b.j.yN) : (this.Gv(c), b.f.prototype.removeChild.call(this, c, a))) }, Tba: function(c, a) { b.assert(c, b.j.lL); c instanceof b.o ? (this.i.qI(), c.batchNode = this, c.atlasIndex = a, c.dirty = !0, c.mf()) : b.log(b.j.kL) }, N6: function(c, a) { b.assert(c, b.j.jL); c instanceof b.o ? (this.i.ho(c, a), c.batchNode = this, c.atlasIndex = a, c.dirty = !0, c.mf(), this.i.AI(c, a)) : b.log(b.j.iL) }, Pa: function(c, a) { this.K.length = 0; this.re.length = 0; a = a || b.Sa.EC; this.i.Pa(c, a); return !0 }, NV: function(f, g) { f.batchNode = this; f.atlasIndex = g; f.dirty = !0; this.i.ho(f, g); this.re.splice(g, 0, f); var a = g + 1, c = this.re; if (c && 0 < c.length) { for (; a < c.length; a++) { c[a].atlasIndex++ } } var c = f.children, d, e; if (c) { for (a = 0, e = c.length || 0; a < e; a++) { (d = c[a]) && this.NV(d, this.QS(d, d.zIndex)) } } }, appendChild: function(d) { this.ye = !0; d.batchNode = this; d.dirty = !0; this.re.push(d); var a = this.re.length - 1; d.atlasIndex = a; this.i.ho(d, a); d = d.children; for (var a = 0, c = d.length || 0; a < c; a++) { this.appendChild(d[a]) } }, Gv: function(e) { this.i.Fv(e.atlasIndex); e.batchNode = null; var a = this.re, c = a.indexOf(e); if (-1 !== c) { a.splice(c, 1); for (var d = a.length; c < d; ++c) { a[c].atlasIndex-- } } if (e = e.children) { for (a = 0, c = e.length || 0; a < c; a++) { e[a] && this.Gv(e[a]) } } }, kb: function() { return this.i.kb() }, $a: function(a) { this.i.$a(a) }, B: function(d, a, c) { b.assert(null != d, b.j.gL); this.i.xJ(d) && (a = null == a ? d.zIndex : a, c = null == c ? d.tag : c, b.f.prototype.B.call(this, d, a, c), this.appendChild(d)) }, qo: function(e) { var a = this.re; if (a && 0 < a.length) { for (var c = 0, d = a.length; c < d; c++) { a[c] && (a[c].batchNode = null) } } b.f.prototype.qo.call(this, e); this.re.length = 0; this.i.Ev() }, kf: function() { if (this.ye) { var f = this.K, g, a = 0, c = f.length, d; for (g = 1; g < c; g++) { var e = f[g], a = g - 1; for (d = f[a]; 0 <= a && (e.Xb < d.Xb || e.Xb === d.Xb && e.arrivalOrder < d.arrivalOrder);) { f[a + 1] = d, a -= 1, d = f[a] } f[a + 1] = e } 0 < f.length && (this.ig(f, b.f.Jf.kf), this.i.RK(f)); this.ye = !1 } }, Fd: function() { return b.ua === b.dc ? new b.Sa.A(this) : new b.Sa.F(this) } }); w = b.Sa.prototype; b.l(w, "texture", w.kb, w.$a); b.l(w, "textureAtlas", w.ak, w.Ar); b.l(w, "descendants", w.zU); b.Sa.EC = 29; b.Sa.create = function(c, a) { return new b.Sa(c, a) }; b.Sa.KA = b.Sa.create; (function() { b.Sa.A = function(c) { b.f.A.call(this, c); this.Fb = this.P = null }; var a = b.Sa.A.prototype = Object.create(b.f.A.prototype); a.constructor = b.Sa.A; a.qI = function() {}; a.xJ = function(c) { return c instanceof b.o ? !0 : (b.log(b.j.jD), !1) }; a.Pa = function(c) { this.P = this.Fb = c }; a.ho = function() {}; a.Yq = function() {}; a.Fv = function() {}; a.Ev = function() {}; a.kb = function() { return this.P }; a.$a = function(e) { this.P = e; for (var c = this.p.K, d = 0; d < c.length; d++) { c[d].$a(e) } }; a.RK = function(e) { for (var c = this.p.re.length = 0, d = e.length; c < d; c++) { this.Bu(e[c]) } }; a.Bu = function(g) { var c = this.p.re, d = g.children, e, f = d.length; for (e = 0; e < f; e++) { if (0 > d[e].Xb) { c.push(d[e]) } else { break } } for (c.push(g); e < f; e++) { c.push(d[e]) } }; a.ak = function() {}; a.Ar = function() {}; a.AI = function(d, c) { this.p.K.splice(c, 0, d) } })(); (function() { b.Sa.F = function(c) { b.f.F.call(this, c); this.Db = !0; this.cb = null }; var a = b.Sa.F.prototype = Object.create(b.f.F.prototype); a.constructor = b.Sa.F; a.xJ = function(c) { return c instanceof b.o ? c.texture != this.kb() ? (b.log(b.j.EN), !1) : !0 : (b.log(b.j.jD), !1) }; a.wb = function() { var c = this.p; 0 !== this.cb.totalQuads && (this.va.Ub(), this.va.wg(this.Rc), c.ig(c.K, b.f.Jf.mf), b.Vf(c.O.src, c.O.ya), this.cb.HT()) }; a.ga = function(e) { var c = this.p; if (c.jd) { c.Ua && c.Ua.i && (this.kg = c.Ua.i.kg + 1); var d = b.vb; d.stack.push(d.top); this.C & b.f.L.ba || this.transform(e); this.updateStatus(e); d.top = this.Rc; c.kf(); b.Za.Ig(this); this.C = 0; d.top = d.stack.pop() } }; a.qI = function(d) { for (var c = this.cb; d >= c.capacity || c.capacity === c.totalQuads;) { this.Yq() } }; a.Yq = function() { var d = this.cb.capacity, c = Math.floor(4 * (d + 1) / 3); b.log(b.j.wN, d, c); this.cb.$J(c) || b.log(b.j.xN) }; a.Pa = function(d, c) { this.cb = new b.Ph; this.cb.Pa(d, c); this.pl(); this.va = b.Ge.Hc(b.Ak) }; a.ho = function(e, c) { var d = this.cb; d.totalQuads >= d.capacity && this.Yq(); d.ho(e.quad, c) }; a.Fv = function(c) { this.cb.Fv(c) }; a.kb = function() { return this.cb.texture }; a.$a = function(c) { this.cb.$a(c); c && this.pl() }; a.Ev = function() { this.cb.Ev() }; a.wu = function(e, f) { var g = this.p.re, h = this.cb, k = h.quads, c = g[e], d = b.VD(k[e]); g[f].atlasIndex = e; g[e] = g[f]; h.cw(k[f], e); g[f] = c; h.cw(d, f) }; a.Bu = function(f, g) { var h = 0, c = f.children; c && (h = c.length); var d = 0; if (0 === h) { d = f.atlasIndex, f.atlasIndex = g, f.arrivalOrder = 0, d !== g && this.wu(d, g), g++ } else { d = !0; 0 <= c[0].zIndex && (d = f.atlasIndex, f.atlasIndex = g, f.arrivalOrder = 0, d !== g && this.wu(d, g), g++, d = !1); for (h = 0; h < c.length; h++) { var e = c[h]; d && 0 <= e.zIndex && (d = f.atlasIndex, f.atlasIndex = g, f.arrivalOrder = 0, d !== g && this.wu(d, g), g++, d = !1); g = this.Bu(e, g) } d && (d = f.atlasIndex, f.atlasIndex = g, f.arrivalOrder = 0, d !== g && this.wu(d, g), g++) } return g }; a.RK = function(e) { for (var c = 0, d = 0; d < e.length; d++) { c = this.Bu(e[d], c) } }; a.pl = function() { if (!this.cb.texture.co()) { var c = this.p.O; c.src = b.SRC_ALPHA; c.ya = b.ONE_MINUS_SRC_ALPHA } }; a.ak = function() { return this.cb }; a.Ar = function(c) { c !== this.cb && (this.cb = c) }; a.AI = function() {} })(); b.eL = b.o.extend({ rj: null, Vg: null, ctor: function() { b.o.prototype.ctor.call(this); var c = document.createElement("canvas"); c.width = c.height = 10; this.rj = c; this.Vg = new b.Vr(c.getContext("2d")); var a = new b.ca; a.mc(c); a.fb(); this.$a(a) }, D4: function() { return this.Vg }, C4: function() { return this.rj }, YJ: function(d, a) { void 0 === a && (a = d.height, d = d.width); var c = this.rj; c.width = d; c.height = a; this.kb().fb(); this.wc(b.rect(0, 0, d, a), !1) } }); b.of = b.Ia.extend({ sn: null, rd: 0, Jn: null, ctor: function(d, a, c) { this.sn = d || null; this.rd = a || 0; this.Jn = c || null }, k: function() { var a = new b.of; a.wh(this.sn.k(), this.rd, this.Jn); return a }, Ru: function() { return b.k(this) }, copy: function() { var a = new b.of; a.wh(this.sn.k(), this.rd, this.Jn); return a }, wh: function(d, a, c) { this.sn = d; this.rd = a; this.Jn = c; return !0 }, V: function() { return this.sn }, Ul: function(a) { this.sn = a }, O4: function() { return this.rd }, M$: function(a) { this.rd = a }, m6: function() { return this.Jn }, $aa: function(a) { this.Jn = a } }); b.of.create = function(d, a, c) { return new b.of(d, a, c) }; b.Kh = b.Ia.extend({ sd: null, di: 0, hl: !1, q: 0, rd: 0, ph: 0, ctor: function(e, a, c) { this.sd = []; if (void 0 === e) { this.tJ(null, 0) } else { var d = e[0]; d && (d instanceof b.Dd ? this.tJ(e, a, c) : d instanceof b.of && this.jv(e, a, c)) } }, g5: function() { return this.sd }, Z$: function(a) { this.sd = a }, yA: function(c) { var a = new b.of; a.wh(c, 1, null); this.sd.push(a); this.ph++ }, N1: function(c) { c = b.Ra.lc(c); var a = b.rect(0, 0, 0, 0); a.width = c.width; a.height = c.height; c = new b.Dd(c, a); this.yA(c) }, O1: function(d, a) { var c = new b.Dd(d, a); this.yA(c) }, jv: function(e, a, c) { b.Hq(e, b.of); this.rd = a; this.di = void 0 === c ? 1 : c; this.ph = 0; a = this.sd; for (c = a.length = 0; c < e.length; c++) { var d = e[c]; a.push(d); this.ph += d.rd } return !0 }, k: function() { var a = new b.Kh; a.jv(this.uE(), this.rd, this.di); a.Uv(this.hl); return a }, Ru: function() { var a = new b.Kh; a.jv(this.uE(), this.rd, this.di); a.Uv(this.hl); return a }, uE: function() { for (var c = [], a = 0; a < this.sd.length; a++) { c.push(this.sd[a].k()) } return c }, copy: function() { return this.Ru(null) }, p5: function() { return this.di }, gaa: function(a) { this.di = a }, Uv: function(a) { this.hl = a }, K5: function() { return this.hl }, gB: function() { return this.ph * this.rd }, N4: function() { return this.rd }, L$: function(a) { this.rd = a }, e6: function() { return this.ph }, tJ: function(f, a, c) { b.Hq(f, b.Dd); this.di = void 0 === c ? 1 : c; this.rd = a || 0; this.ph = 0; a = this.sd; a.length = 0; if (f) { for (c = 0; c < f.length; c++) { var d = f[c], e = new b.of; e.wh(d, 1, null); a.push(e) } this.ph += f.length } return !0 }, Kv: function() {}, uc: function() {} }); b.Kh.create = function(d, a, c) { return new b.Kh(d, a, c) }; b.Kh.H2 = b.Kh.create; b.Ku = { um: {}, WH: function(c, a) { this.um[a] = c }, L9: function(a) { a && this.um[a] && delete this.um[a] }, MI: function(a) { return this.um[a] ? this.um[a] : null }, YO: function(d, e) { var f = d.animations; if (f) { var g = 1, h = d.properties; if (h) { for (var g = null != h.format ? parseInt(h.format) : g, h = h.spritesheets, k = b.W, a = b.path, c = 0; c < h.length; c++) { k.Ju(a.Pu(e, h[c])) } } switch (g) { case 1: this.UQ(f); break; case 2: this.VQ(f); break; default: b.log(b.j.HS) } } else { b.log(b.j.GS) } }, F1: function(c) { b.assert(c, b.j.PS); var a = b.S.De(c); a ? this.YO(a, c) : b.log(b.j.OS) }, UQ: function(h) { var k = b.W, m; for (m in h) { var a = h[m], c = a.frames, a = parseFloat(a.delay) || 0, d = null; if (c) { for (var d = [], e = 0; e < c.length; e++) { var f = k.V(c[e]); if (f) { var g = new b.of; g.wh(f, 1, null); d.push(g) } else { b.log(b.j.JS, m, c[e]) } } 0 === d.length ? b.log(b.j.KS, m) : (d.length !== c.length && b.log(b.j.LS, m), d = new b.Kh(d, a, 1), b.Ku.WH(d, m)) } else { b.log(b.j.IS, m) } } }, VQ: function(n) { var a = b.W, c; for (c in n) { var e = n[c], k = parseInt(e.loops), k = e.loop ? b.fg : isNaN(k) ? 1 : k, m = e.restoreOriginalFrame && !0 == e.restoreOriginalFrame ? !0 : !1, p = e.frames; if (p) { for (var r = [], t = 0; t < p.length; t++) { var d = p[t], f = d.spriteframe, g = a.V(f); if (g) { var f = parseFloat(d.delayUnits) || 0, d = d.notification, h = new b.of; h.wh(g, f, d); r.push(h) } else { b.log(b.j.NS, c, f) } } e = parseFloat(e.delayPerUnit) || 0; p = new b.Kh; p.jv(r, e, k); p.Uv(m); b.Ku.WH(p, c) } else { b.log(b.j.MS, c) } } }, tj: function() { this.um = {} } }; b.Dd = b.Ia.extend({ Eb: null, Hj: null, $d: null, ze: !1, Aa: null, Df: null, Se: null, P: null, zn: "", T: !1, ctor: function(f, a, c, d, e) { this.Eb = b.d(0, 0); this.Df = b.d(0, 0); this.Hj = b.size(0, 0); this.ze = !1; this.Se = b.size(0, 0); this.zn = ""; this.P = null; this.T = !1; void 0 !== f && void 0 !== a && (void 0 === c || void 0 === d || void 0 === e ? this.Pa(f, a) : this.Pa(f, a, c, d, e)) }, Cr: function() { return this.T }, Gq: function(c, a) { this.addEventListener("load", c, a) }, $U: function() { var a = this.$d; return b.rect(a.x, a.y, a.width, a.height) }, vaa: function(a) { this.$d || (this.$d = b.rect(0, 0, 0, 0)); this.$d.x = a.x; this.$d.y = a.y; this.$d.width = a.width; this.$d.height = a.height; this.Aa = b.Cv(a) }, g7: function() { return this.ze }, zaa: function(a) { this.ze = a }, Ei: function() { var a = this.Aa; return b.rect(a.x, a.y, a.width, a.height) }, yK: function(a) { this.Aa || (this.Aa = b.rect(0, 0, 0, 0)); this.Aa.x = a.x; this.Aa.y = a.y; this.Aa.width = a.width; this.Aa.height = a.height; this.$d = b.rr(this.Aa) }, y5: function() { return b.d(this.Df) }, naa: function(a) { this.Df.x = a.x; this.Df.y = a.y; b.$y(this.Df, this.Eb) }, A5: function() { return b.size(this.Se) }, paa: function(a) { this.Se.width = a.width; this.Se.height = a.height }, Yu: function() { return b.size(this.Hj) }, oaa: function(a) { this.Hj.width = a.width; this.Hj.height = a.height }, kb: function() { if (this.P) { return this.P } if ("" !== this.zn) { var a = b.Ra.lc(this.zn); a && (this.T = a.T); return a } return null }, $a: function(c) { if (this.P !== c) { var a = c.T; this.T = a; this.P = c; a || c.addEventListener("load", function(f) { this.T = !0; if (this.ze && b.ua === b.dc) { var d = f.xa, d = b.o.A.Sx(d, this.Ei()), e = new b.ca; e.mc(d); e.fb(); this.$a(e); d = this.Ei(); this.yK(b.rect(0, 0, d.width, d.height)) } d = this.Aa; 0 === d.width && 0 === d.height && (d = f.width, f = f.height, this.Aa.width = d, this.Aa.height = f, this.$d = b.rr(this.Aa), this.Se.width = this.$d.width, this.Se.height = this.$d.height, this.Hj.width = d, this.Hj.height = f); this.dispatchEvent("load") }, this) } }, TI: function() { return b.d(this.Eb) }, yr: function(a) { this.Eb.x = a.x; this.Eb.y = a.y }, k: function() { var a = new b.Dd; a.Pa(this.zn, this.$d, this.ze, this.Df, this.Se); a.$a(this.P); return a }, Ru: function() { var a = new b.Dd; a.Pa(this.zn, this.$d, this.ze, this.Df, this.Se); a.$a(this.P); return a }, copy: function() { return this.Ru() }, Pa: function(e, f, g, h, a) { 2 === arguments.length && (f = b.rr(f)); h = h || b.d(0, 0); a = a || f; g = g || !1; b.ge(e) ? (this.P = null, this.zn = e) : e instanceof b.ca && this.$a(e); e = this.kb(); this.$d = f; f = this.Aa = b.Cv(f); if (e && e.url && e.T) { var c, d; g ? (c = f.x + f.height, d = f.y + f.width) : (c = f.x + f.width, d = f.y + f.height); c > e.nB() && b.error(b.j.Rw, e.url); d > e.mB() && b.error(b.j.Qw, e.url) } this.Df.x = h.x; this.Df.y = h.y; b.$y(h, this.Eb); this.Se.width = a.width; this.Se.height = a.height; b.lH(a, this.Hj); this.ze = g; return !0 } }); b.dg.prototype.apply(b.Dd.prototype); b.Dd.create = function(f, a, c, d, e) { return new b.Dd(f, a, c, d, e) }; b.Dd.KA = b.Dd.create; b.Dd.V0 = function(f, g, a, c, d) { var e = new b.Dd; e.P = f; e.$d = g; e.Aa = b.Cv(g); e.Df.x = c.x; e.Df.y = c.y; b.$y(e.Df, e.Eb); e.Se.width = d.width; e.Se.height = d.height; b.lH(e.Se, e.Hj); e.ze = a; return e }; b.W = { YD: /^\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*$/, NO: /^\s*\{\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*,\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*\}\s*$/, zg: {}, ri: {}, ah: {}, KG: function(a) { return (a = this.NO.exec(a)) ? b.rect(parseFloat(a[1]), parseFloat(a[2]), parseFloat(a[3]), parseFloat(a[4])) : b.rect(0, 0, 0, 0) }, yG: function(a) { return (a = this.YD.exec(a)) ? b.d(parseFloat(a[1]), parseFloat(a[2])) : b.d(0, 0) }, Qz: function(a) { return (a = this.YD.exec(a)) ? b.size(parseFloat(a[1]), parseFloat(a[2])) : b.size(0, 0) }, OP: function(c) { var a = b.S.De(c); b.assert(a, b.j.HK, c); b.S.uc(c); if (a.bn) { return this.ah[c] = a } this.ah[c] = this.uG(a); return this.ah[c] }, PP: function(c, a) { b.assert(a, b.j.HK, c); this.ah[c] = this.uG(a); return this.ah[c] }, uG: function(h) { var k = h.frames, m = h.metadata || h.meta; h = {}; var a = {}, c = 0; m && (c = m.format, c = 1 >= c.length ? parseInt(c) : c, a.yV = m.textureFileName || m.textureFileName || m.image); for (var d in k) { var e = k[d]; if (e) { m = {}; if (0 == c) { m.rect = b.rect(e.x, e.y, e.width, e.height); m.Lv = !1; m.offset = b.d(e.offsetX, e.offsetY); var f = e.originalWidth, e = e.originalHeight; f && e || b.log(b.j.pY); f = Math.abs(f); e = Math.abs(e); m.size = b.size(f, e) } else { if (1 == c || 2 == c) { m.rect = this.KG(e.frame), m.Lv = e.rotated || !1, m.offset = this.yG(e.offset), m.size = this.Qz(e.sourceSize) } else { if (3 == c) { var f = this.Qz(e.spriteSize), g = this.KG(e.textureRect); f && (g = b.rect(g.x, g.y, f.width, f.height)); m.rect = g; m.Lv = e.textureRotated || !1; m.offset = this.yG(e.spriteOffset); m.size = this.Qz(e.spriteSourceSize); m.BS = e.aliases } else { f = e.frame, g = e.sourceSize, d = e.filename || d, m.rect = b.rect(f.x, f.y, f.w, f.h), m.Lv = e.rotated || !1, m.offset = b.d(0, 0), m.size = b.size(g.w, g.h) } } } h[d] = m } } return { bn: !0, frames: h, vv: a } }, I0: function(d, a, c) { b.assert(d, b.j.IK); a && a.frames && (a = this.ah[d] || this.PP(d, a), this.xE(d, a, c)) }, xE: function(g, h, k) { var m = h.frames; h = h.vv; k ? k instanceof b.ca || (b.ge(k) ? k = b.Ra.lc(k) : b.assert(0, b.j.rY)) : k = b.Ra.lc(b.path.Pu(g, h.yV || ".png")); g = this.ri; h = this.zg; for (var n in m) { var a = m[n], c = h[n]; if (!c) { c = new b.Dd(k, a.rect, a.Lv, a.offset, a.size); if (a = a.BS) { for (var d = 0, e = a.length; d < e; d++) { var f = a[d]; g[f] && b.log(b.j.qY, f); g[f] = n } } b.ua === b.dc && c.ze && c.kb().T && (a = c.kb().xa, a = b.o.A.Sx(a, c.$U()), d = new b.ca, d.mc(a), d.fb(), c.$a(d), a = c.Aa, c.yK(b.rect(0, 0, a.width, a.height))); h[n] = c } } }, Ju: function(d, a) { b.assert(d, b.j.IK); var c = this.ah[d] || b.S.De(d); c && c.frames && (c = this.ah[d] || this.OP(d), this.xE(d, c, a)) }, O0: function(c) { c = c.frames; for (var a in c) { this.zg[a] && b.log(b.j.oY, a) } }, yA: function(c, a) { this.zg[a] = c }, U9: function() { this.zg = {}; this.ri = {} }, T9: function(a) { a && (this.ri[a] && delete this.ri[a], this.zg[a] && delete this.zg[a]) }, V9: function(f) { var a = this.zg, c = this.ri; if (f = this.ah[f]) { f = f.frames; for (var d in f) { if (a[d]) { delete a[d]; for (var e in c) { c[e] === d && delete c[e] } } } } }, W9: function(f) { var g = this.zg, a = this.ri, c; for (c in g) { var d = g[c]; if (d && d.kb() === f) { delete g[c]; for (var e in a) { a[e] === c && delete a[e] } } } }, V: function(d) { var a = this.zg[d]; if (!a) { var c = this.ri[d]; c && ((a = this.zg[c.toString()]) || delete this.ri[d]) } return a }, tj: function() { this.zg = {}; this.ri = {}; this.ah = {} } }; b.Qn = { c_: 0, h0: 1, INT: 2, YZ: 3, uZ: 4, aq: 0, JQ: 0, aA: !1, vu: !1, Zz: !1, $z: !1, bA: !1, h1: 0, Ny: 0, Qs: "", zq: {}, bn: !1, $h: function() { var a = this.zq; a["cocos2d.x.version"] = b.pw; a["cocos2d.x.compiled_with_profiler"] = !1; a["cocos2d.x.compiled_with_gl_state_cache"] = b.cg; this.bn = !0 }, r5: function() { return this.aq }, q5: function() { return this.JQ }, s5: function() { return this.Ny }, tba: function() { return this.vu }, uba: function() { return this.aA }, sba: function() { return !1 }, vba: function() { return !1 }, pba: function() { return !1 }, qba: function() { return this.Zz }, rba: function() { return this.$z }, wba: function() { return this.bA }, On: function(a) { return -1 < this.Qs.indexOf(a) }, o6: function(d, a) { this.bn || this.$h(); var c = this.zq; return c[d] ? c[d] : a }, bba: function(c, a) { this.zq[c] = a }, KT: function() { 0 === b.cg && (b.log(""), b.log(b.j.gT), b.log("")) }, oU: function() { if (b.ua !== b.dc) { this.bn || this.$h(); var e = b.s, a = this.zq; a["gl.vendor"] = e.getParameter(e.VENDOR); a["gl.renderer"] = e.getParameter(e.RENDERER); a["gl.version"] = e.getParameter(e.VERSION); this.Qs = ""; for (var c = e.getSupportedExtensions(), d = 0; d < c.length; d++) { this.Qs += c[d] + " " } this.aq = e.getParameter(e.MAX_TEXTURE_SIZE); a["gl.max_texture_size"] = this.aq; this.Ny = e.getParameter(e.MAX_COMBINED_TEXTURE_IMAGE_UNITS); a["gl.max_texture_units"] = this.Ny; this.aA = this.On("GL_IMG_texture_compression_pvrtc"); a["gl.supports_PVRTC"] = this.aA; this.vu = !1; a["gl.supports_NPOT"] = this.vu; this.Zz = this.On("GL_IMG_texture_format_BGRA888"); a["gl.supports_BGRA8888"] = this.Zz; this.$z = this.On("GL_EXT_discard_framebuffer"); a["gl.supports_discard_framebuffer"] = this.$z; this.bA = this.On("vertex_array_object"); a["gl.supports_vertex_array_object"] = this.bA; b.Pn() } }, W7: function(d) { this.bn || this.$h(); var a = b.S.De(d); if (!a) { throw "Please load the resource first : " + d } b.assert(a, b.j.iT, d); if (a = a.data) { for (var c in a) { this.zq[c] = a[c] } } else { b.log(b.j.hT, d) } } }; b.df = 0; b.LC = function(c) { b.dr(b.Ng, c); var a = new b.e.U; b.dr(b.Mg, a); c.multiply(a) }; b.Ja = b.Ia.extend({ g1: !1, bq: !1, td: !1, cu: !1, Mj: !1, tm: 0, Ty: 0, hq: 0, sm: 0, Kk: 1, Jp: !1, vj: 0, dy: 0, Ie: null, Je: null, Oe: null, Hb: null, Ej: null, hh: null, Qt: null, rg: null, nh: null, jz: null, rc: null, sd: 0, wq: 0, uz: 0, T0: null, Pc: null, Le: null, st: null, Yx: null, $x: null, Zx: null, ctor: function() { var a = this; a.Ej = Date.now(); b.ka.vA(b.Ma.Zr, function() { a.Ej = Date.now() }) }, oa: function() { this.Ty = this.tm = 1 / b.sT; this.nh = []; this.hq = b.Ja.RM; this.jz = null; this.dy = this.sm = 0; this.Jp = !1; this.wq = this.sd = 0; this.Ej = Date.now(); this.cu = this.td = !1; this.Hb = b.size(0, 0); this.rg = null; this.Kk = 1; this.Pc = new b.lm; b.tC ? (this.Le = new b.tC, this.Pc.fk(this.Le, b.lm.hp, !1)) : this.Le = null; this.Yx = new b.vk(b.Ja.JL); this.Yx.setUserData(this); this.$x = new b.vk(b.Ja.LL); this.$x.setUserData(this); this.Zx = new b.vk(b.Ja.KL); this.Zx.setUserData(this); this.st = new b.vk(b.Ja.ML); this.st.setUserData(this); return !0 }, ZS: function() { var a = Date.now(); this.bq ? (this.vj = 0, this.bq = !1) : this.vj = (a - this.Ej) / 1000; 0 < b.Ma.ld[b.Ma.rf.Oq] && 0.2 < this.vj && (this.vj = 1 / 60); this.Ej = a }, uI: null, vI: null, IT: function() { var a = b.Za; this.ZS(); this.td || (this.Pc.update(this.vj), b.ka.dispatchEvent(this.Zx)); this.tj(); this.hh && this.FX(); this.zx && this.zx(); this.rc && (!0 === a.af ? (b.Za.rI(), this.rc.i.kg = 0, this.rc.ga(), a.ZJ()) : !0 === a.ba() && a.transform(), b.ka.dispatchEvent(this.$x)); this.Qt && this.Qt.ga(); this.Jp && this.GR(); this.ux && this.ux(); a.wb(b.s); b.ka.dispatchEvent(this.Yx); this.wq++; this.Jp && this.iP() }, zx: null, ux: null, end: function() { this.cu = !0 }, K4: function() { return this.Kk }, w5: function() { return this.Qt }, Ea: function() { return b.size(this.Hb) }, rB: function() { return b.size(this.Hb.width * this.Kk, this.Hb.height * this.Kk) }, ao: null, bv: null, bo: null, pause: function() { this.td || (this.Ty = this.tm, this.jK(0.25), this.td = !0) }, l9: function() { b.assert(this.rc, b.j.zL); this.nh.pop(); var a = this.nh.length; 0 === a ? this.end() : (this.Mj = !0, this.hh = this.nh[a - 1]) }, KW: function() { b.Ku.tj(); b.W.tj(); b.Ra.tj() }, LW: function() { this.th().TY(); b.ka && b.ka.Wc(!1); this.rc && (this.rc.Eh(), this.rc.Ib(), this.rc.Od()); this.hh = this.rc = null; this.nh.length = 0; this.KK(); this.KW(); b.Pn() }, MW: function(a) { b.assert(a, b.j.IC); this.Mj = !1; this.nh.push(a); this.hh = a }, Jg: function(c) { b.assert(c, b.j.IC); if (this.rc) { var a = this.nh.length; 0 === a ? (this.Mj = !0, this.nh[a] = c) : (this.Mj = !0, this.nh[a - 1] = c); this.hh = c } else { this.MW(c), this.JK() } }, ek: function() { this.td && (this.jK(this.Ty), (this.Ej = Date.now()) || b.log(b.j.BL), this.td = !1, this.vj = 0) }, I$: function(a) { a !== this.Kk && (this.Kk = a, this.Im()) }, aC: null, K$: function() {}, iaa: function(a) { this.bq = a }, FX: function() { var c = !1, a = !1; b.aa && (c = this.rc ? this.rc instanceof b.aa : !1, a = this.hh ? this.hh instanceof b.aa : !1); if (!a) { if (a = this.rc) { a.Eh(), a.Ib() } this.Mj && a && a.Od() } this.rc = this.hh; b.Za.af = !0; this.hh = null; c || null === this.rc || (this.rc.X(), this.rc.Kl()) }, laa: function(a) { this.Qt = a }, P4: function() { return this.jz }, N$: function(a) { this.jz = a }, Tv: null, Sl: null, jC: null, VU: null, Zn: null, iK: null, GR: function() { this.sd++; this.sm += this.vj; this.Ie && this.Je && this.Oe ? (this.sm > b.wL && (this.Je.string = this.uz.toFixed(3), this.dy = this.sd / this.sm, this.sm = this.sd = 0, this.Ie.string = this.dy.toFixed(1), this.Oe.string = (0 | b.df).toString()), this.Ie.ga(), this.Je.ga(), this.Oe.ga()) : this.Im(); b.df = 0 }, k7: function() { return this.Mj }, N5: function() { return this.rc }, x4: function() { return this.tm }, X6: function() { return this.Jp }, tX: function(a) { this.Jp = a }, S5: function() { return this.uz }, b7: function() { return this.bq }, d7: function() { return this.td }, f6: function() { return this.wq }, m9: function() { this.LJ(1) }, LJ: function(e) { b.assert(this.rc, b.j.AL); var a = this.nh, c = a.length; if (0 === c) { this.end() } else { if (!(e > c)) { for (; c > e;) { var d = a.pop(); d.running && (d.Eh(), d.Ib()); d.Od(); c-- } this.hh = a[a.length - 1]; this.Mj = !1 } } }, th: function() { return this.Pc }, zK: function(a) { this.Pc !== a && (this.Pc = a) }, Wu: function() { return this.Le }, gK: function(a) { this.Le !== a && (this.Le = a) }, Q4: function() { return this.vj }, Im: null, iP: function() { this.uz = (Date.now() - this.Ej) / 1000 } }); b.Ja.ML = "director_projection_changed"; b.Ja.JL = "director_after_draw"; b.Ja.LL = "director_after_visit"; b.Ja.KL = "director_after_update"; b.DL = b.Ja.extend({ ov: !1, JK: function() { this.bq = !0; this.ov = !1 }, mW: function() { this.cu ? (this.cu = !1, this.LW()) : this.ov || this.IT() }, KK: function() { this.ov = !0 }, jK: function(a) { this.tm = a; this.ov || (this.KK(), this.JK()) } }); b.Ja.lC = null; b.Ja.II = !0; b.Ja.py = function() { b.Ja.II && (b.Ja.II = !1, b.Ja.lC = new b.DL, b.Ja.lC.oa()); return b.Ja.lC }; b.sT = 60; b.Ja.PM = 0; b.Ja.bD = 1; b.Ja.QM = 3; b.Ja.RM = b.Ja.bD; b.ua === b.dc ? (w = b.Ja.prototype, w.Sl = function(a) { this.hq = a; b.ka.dispatchEvent(this.st) }, w.aC = function() {}, w.Tv = function(a) { this.Hb.width = b.Oa.width; this.Hb.height = b.Oa.height; this.rg = a || b.view; b.ka && b.ka.Wc(!0) }, w.tj = function() { var c = this.rg.Nd, a = b.s.getContext(); a.setTransform(1, 0, 0, 1, 0, 0); a.clearRect(-c.x, c.y, c.width, c.height) }, w.Im = function() { var a = 0, a = this.Hb.width > this.Hb.height ? 0 | this.Hb.height / 320 * 24 : 0 | this.Hb.width / 320 * 24; this.Ie = new b.J("000.0", "Arial", a); this.Je = new b.J("0.000", "Arial", a); this.Oe = new b.J("0000", "Arial", a); a = b.lw; this.Oe.G(this.Oe.width / 2 + a.x, 5 * this.Oe.height / 2 + a.y); this.Je.G(this.Je.width / 2 + a.x, 3 * this.Je.height / 2 + a.y); this.Ie.G(this.Ie.width / 2 + a.x, this.Ie.height / 2 + a.y) }, w.ao = function() { return this.Ea() }, w.bv = function() { return b.d(0, 0) }) : (b.Ja.Op = new Image, b.Qa(b.Ja.Op, "load", function() { b.Ja.uF = !0 }), b.Op && (b.Ja.Op.src = b.Op)); b.ua === b.Lb && function() { b.$Z = b.Ia.extend({ Sba: function() {} }); var a = b.Ja.prototype; a.Sl = function(e) { var f = this.Hb; this.jC(); var g = this.rg, h = g.Nd.x / g.Ca, g = g.Nd.y / g.ib; switch (e) { case b.Ja.PM: b.Gg(b.Ng); b.io(); f = b.e.U.IA(-h, f.width - h, -g, f.height - g, -1024, 1024); b.jo(f); b.Gg(b.Mg); b.io(); break; case b.Ja.bD: var k = this.bo(), c = new b.e.U, d = new b.e.U; b.Gg(b.Ng); b.io(); c = b.e.U.rT(f.width / f.height, 2 * k); b.jo(c); b.Gg(b.Mg); b.io(); d.JB(new b.e.ta(-h + f.width / 2, -g + f.height / 2, k), new b.e.ta(-h + f.width / 2, -g + f.height / 2, 0), new b.e.ta(0, 1, 0)); b.jo(d); break; case b.Ja.QM: break; default: b.log(b.j.CL) } this.hq = e; b.ka.dispatchEvent(this.st); b.wK(); b.Za.af = !0 }; a.aC = function(d) { var c = b.s; d ? (c.clearDepth(1), c.enable(c.DEPTH_TEST), c.depthFunc(c.LEQUAL)) : c.disable(c.DEPTH_TEST) }; a.Tv = function(c) { this.Hb.width = b.Oa.width; this.Hb.height = b.Oa.height; this.rg = c || b.view; c = b.Qn; c.oU(); c.KT(); this.Im(); this.qK(); b.ka && b.ka.Wc(!0) }; a.tj = function() { var c = b.s; c.clear(c.COLOR_BUFFER_BIT | c.DEPTH_BUFFER_BIT) }; a.zx = function() { b.rv() }; a.ux = function() { b.qv() }; a.Im = function() { if (!b.Zc) { this.nP() } else { if (null != b.Ja.uF && !1 !== b.Ja.uF) { var e = new b.ca; e.mc(b.Ja.Op); e.fb(); var c = b.view.fB().height / 320; 0 === c && (c = this.Hb.height / 320); var d = new b.Zc; d.Ez(!0); d.Qd("00.0", e, 12, 32, "."); d.scale = c; this.Ie = d; d = new b.Zc; d.Ez(!0); d.Qd("0.000", e, 12, 32, "."); d.scale = c; this.Je = d; d = new b.Zc; d.Ez(!0); d.Qd("000", e, 12, 32, "."); d.scale = c; this.Oe = d; e = b.lw; this.Oe.G(e.x, 34 * c + e.y); this.Je.G(e.x, 17 * c + e.y); this.Ie.G(e) } } }; a.nP = function() { var c = 0, c = this.Hb.width > this.Hb.height ? 0 | this.Hb.height / 320 * 24 : 0 | this.Hb.width / 320 * 24; this.Ie = new b.J("000.0", "Arial", c); this.Je = new b.J("0.000", "Arial", c); this.Oe = new b.J("0000", "Arial", c); c = b.lw; this.Oe.G(this.Oe.width / 2 + c.x, 5 * this.Oe.height / 2 + c.y); this.Je.G(this.Je.width / 2 + c.x, 3 * this.Je.height / 2 + c.y); this.Ie.G(this.Ie.width / 2 + c.x, this.Ie.height / 2 + c.y) }; a.uI = function(f) { var c = new b.e.U; b.LC(c); var d = c.inverse(), c = c.m[14] / c.m[15], e = this.rg.fB(); f = new b.e.ta(2 * f.x / e.width - 1, 1 - 2 * f.y / e.height, c); f.PK(d); return b.d(f.x, f.y) }; a.vI = function(d) { var c = new b.e.U; b.LC(c); d = new b.e.ta(d.x, d.y, 0); d.PK(c); c = this.rg.fB(); return b.d(c.width * (0.5 * d.x + 0.5), c.height * (0.5 * -d.y + 0.5)) }; a.ao = function() { return this.rg.ao() }; a.bv = function() { return this.rg.bv() }; a.bo = function() { return this.Hb.height / 1.1566 }; a.jC = function() { var d = this.rg; if (d) { var c = this.Hb; d.gY(-d.Nd.x / d.Ca, -d.Nd.y / d.ib, c.width, c.height) } }; a.VU = function() { return this.rg }; a.Zn = function() { return this.hq }; a.iK = function(c) { c ? b.Vf(b.qf, b.pf) : b.Vf(b.s.ONE, b.s.ZERO) }; a.qK = function() { this.iK(!0); this.aC(!1); this.Sl(this.hq); b.s.clearColor(0, 0, 0, 1) } }(); b.Go = b.Ia.extend({ Om: null, Pm: null, Qm: null, Gk: null, Hk: null, Ik: null, Gn: null, Hn: null, In: null, Ka: !1, gn: null, ctor: function() { this.gn = new b.e.U; this.restore() }, description: function() { return "\x3cCCCamera | center \x3d(" + this.Gk + "," + this.Hk + "," + this.Ik + ")\x3e" }, mK: function(a) { this.Ka = a }, DB: function() { return this.Ka }, restore: function() { this.Om = this.Pm = 0; this.Qm = b.Go.bo(); this.Gn = this.Gk = this.Hk = this.Ik = 0; this.Hn = 1; this.In = 0; this.gn.wd(); this.Ka = !1 }, X7: function() { this.Ka && (this.gn.JB(new b.e.ta(this.Om, this.Pm, this.Qm), new b.e.ta(this.Gk, this.Hk, this.Ik), new b.e.ta(this.Gn, this.Hn, this.In)), this.Ka = !1); b.jo(this.gn) }, Ky: function(a) { this.Ka && (this.gn.JB(new b.e.ta(this.Om, this.Pm, this.Qm), new b.e.ta(this.Gk, this.Hk, this.Ik), new b.e.ta(this.Gn, this.Hn, this.In)), this.Ka = !1); a.multiply(this.gn) }, S$: function(d, a, c) { this.oK(d, a, c) }, oK: function(d, a, c) { this.Om = d; this.Pm = a; this.Qm = c; this.Ka = !0 }, D$: function(d, a, c) { this.nX(d, a, c) }, nX: function(d, a, c) { this.Gk = d; this.Hk = a; this.Ik = c; this.Ka = !0 }, Zaa: function(d, a, c) { this.bY(d, a, c) }, bY: function(d, a, c) { this.Gn = d; this.Hn = a; this.In = c; this.Ka = !0 }, Z4: function() { return { x: this.Om, y: this.Pm, z: this.Qm } }, QI: function() { return { x: this.Om, y: this.Pm, z: this.Qm } }, F4: function() { return { x: this.Gk, y: this.Hk, z: this.Ik } }, OI: function() { return { x: this.Gk, y: this.Hk, z: this.Ik } }, l6: function() { return { x: this.Gn, y: this.Hn, z: this.In } }, mV: function() { return { x: this.Gn, y: this.Hn, z: this.In } }, G0: function() {} }); b.Go.bo = function() { return b.ps }; b.a0 = b.hp + 1; b.QC = function(e, a, c, d) { this.next = null; this.Eg = e; this.target = a; this.no = c; this.paused = d; this.Ki = !1 }; b.NC = function(e, a, c, d) { this.list = e; this.cf = a; this.target = c; this.Eg = null; this.hv = d }; b.YL = b.E6 = function(e, f, g, h, a, c, d) { this.ie = e; this.target = f; this.zo = g; this.Lq = h; this.Mq = a; this.paused = c; this.hv = d }; b.gx = b.Ia.extend({ Pc: null, Ab: 0, iu: !1, yq: !1, nl: 0, gu: 0, Hp: 0, bh: 0, o5: function() { return this.bh }, setInterval: function(a) { this.bh = a }, EK: function(d, a, c) { this.Ab = -1; this.bh = d; this.Hp = c; this.yq = 0 < this.Hp; this.gu = a; this.iu = this.gu === b.fg }, lk: function() { return 0 }, cancel: function() { return 0 }, ctor: function() { this.Pc = null; this.Ab = -1; this.yq = this.iu = !1; this.bh = this.Hp = this.gu = this.nl = 0 }, update: function(a) { -1 === this.Ab ? this.nl = this.Ab = 0 : (this.Ab += a, this.iu && !this.yq ? this.Ab >= this.bh && (this.lk(), this.Ab = 0) : (this.yq ? this.Ab >= this.Hp && (this.lk(), this.Ab -= this.Hp, this.nl += 1, this.yq = !1) : this.Ab >= this.bh && (this.lk(), this.Ab = 0, this.nl += 1), !this.iu && this.nl > this.gu && this.cancel())) } }); b.yO = b.gx.extend({ Sc: null, Lj: null, ctor: function() { this.Lj = this.Sc = null }, GV: function(f, g, a, c, d, e) { this.Pc = f; this.Sc = a; this.Lj = g; this.EK(c, d, e); return !0 }, U5: function() { return this.Lj }, lk: function() { this.Sc && this.Lj && this.Sc.call(this.Lj, this.Ab) }, cancel: function() { this.Pc.Ri(this.Lj, this.Sc) } }); b.xO = b.gx.extend({ Sc: null, bd: null, Gy: null, ctor: function() { this.bd = this.Sc = null }, Hl: function(e, f, g, h, a, c, d) { this.Pc = e; this.Sc = g; this.bd = f; this.Gy = h; this.EK(a, c, d); return !0 }, E4: function() { return this.bd }, getKey: function() { return this.Gy }, lk: function() { this.bd && this.bd.call(this.Sc, this.Ab) }, cancel: function() { this.Pc.Ri(this.Gy, this.Sc) } }); b.lm = b.Ia.extend({ vq: 1, Sj: null, Rj: null, Tj: null, Zh: null, vm: null, og: null, Mb: null, Yg: !1, xq: !1, ctor: function() { this.vq = 1; this.Sj = []; this.Rj = []; this.Tj = []; this.og = {}; this.Zh = {}; this.Mb = null; this.xq = this.Yg = !1; this.vm = [] }, kR: function(f, a, c, d) { var e = this.og[a.Y]; if (e && e.cf) { if (e.cf.no !== c) { if (this.xq) { b.log("warning: you CANNOT change update priority in scheduled function"); e.cf.Ki = !1; e.cf.paused = d; return } this.Si(a) } else { e.cf.Ki = !1; e.cf.paused = d; return } } 0 === c ? this.dP(this.Rj, f, a, d) : 0 > c ? this.CG(this.Sj, f, a, c, d) : this.CG(this.Tj, f, a, c, d) }, mz: function(a) { delete this.Zh[a.target.Y]; b.fe(this.vm, a); a.gx = null; a.target = null }, eu: function(a) { if (a = this.og[a.target.Y]) { b.fe(a.list, a.cf), delete this.og[a.target.Y], a.cf = null, a.target = null } }, CG: function(f, g, a, c, d) { g = new b.QC(g, a, c, d); if (f) { d = f.length - 1; for (var e = 0; e <= d && !(c < f[e].no); e++) {} f.splice(e, 0, g) } else { f = [], f.push(g) } this.og[a.Y] = new b.NC(f, g, a); return f }, dP: function(e, a, c, d) { a = new b.QC(a, c, 0, d); e.push(a); this.og[c.Y] = new b.NC(e, a, c, null) }, BK: function(a) { this.vq = a }, d6: function() { return this.vq }, update: function(f) { this.xq = !0; 1 !== this.vq && (f *= this.vq); var a, c, d, e; a = 0; c = this.Sj; for (d = c.length; a < d; a++) { e = c[a], e.paused || e.Ki || e.Eg(f) } a = 0; c = this.Rj; for (d = c.length; a < d; a++) { e = c[a], e.paused || e.Ki || e.Eg(f) } a = 0; c = this.Tj; for (d = c.length; a < d; a++) { e = c[a], e.paused || e.Ki || e.Eg(f) } d = this.vm; for (a = 0; a < d.length; a++) { this.Mb = c = d[a]; this.Yg = !1; if (!c.paused) { for (c.zo = 0; c.zo < c.ie.length; ++c.zo) { c.Lq = c.ie[c.zo], c.Mq = !1, c.Lq.update(f), c.Lq = null } } this.Yg && 0 === this.Mb.ie.length && this.mz(this.Mb) } a = 0; for (c = this.Sj; a < c.length;) { e = c[a], e.Ki ? this.eu(e) : a++ } a = 0; for (c = this.Rj; a < c.length;) { e = c[a], e.Ki ? this.eu(e) : a++ } a = 0; for (c = this.Tj; a < c.length;) { e = c[a], e.Ki ? this.eu(e) : a++ } this.xq = !1; this.Mb = null }, o$: function(f, g, a, c, d, e) { this.Ni(g, f, a, c, d, e, f.Y + "") }, Ni: function(a, c, e, h, k, m, n) { var p = !1; if ("function" !== typeof a) { var r = a, p = !0 }!1 === p ? 5 === arguments.length && (n = k, m = h, k = 0, h = b.fg) : 4 === arguments.length && (m = h, h = b.fg, k = 0); b.assert(c, b.j.tN); !1 === p && b.assert(n, "key should not be empty!"); var d = this.Zh[c.Y]; d ? b.assert(d.paused === m, "") : (d = new b.YL(null, c, 0, null, null, m, null), this.vm.push(d), this.Zh[c.Y] = d); var f, g; if (null == d.ie) { d.ie = [] } else { if (!1 === p) { for (g = 0; g < d.ie.length; g++) { if (f = d.ie[g], a === f.bd) { b.log(b.j.sN, f.bh.toFixed(4), e.toFixed(4)); f.bh = e; return } } } else { for (g = 0; g < d.ie.length; ++g) { if ((f = d.ie[g]) && r === f.Lj) { b.log("CCScheduler#scheduleSelector. Selector already scheduled. Updating interval from: %.4f to %.4f", f.bh, e); f.setInterval(e); return } } } }!1 === p ? (f = new b.xO, f.Hl(this, a, c, n, e, h, k)) : (f = new b.yO, f.GV(this, r, c, e, h, k)); d.ie.push(f) }, fk: function(d, a, c) { this.kR(function(e) { d.update(e) }, d, a, c) }, gQ: function(c, a) { switch (typeof c) { case "number": case "string": return c === a.getKey(); case "function": return c === a.bd; default: return c === a.Lj } }, Ri: function(e, f) { if (f && e) { var g = this.Zh[f.Y]; if (g) { for (var h = g.ie, a = 0, c = h.length; a < c; a++) { var d = h[a]; if (this.gQ(e, d)) { d !== g.Lq || g.Mq || (g.Mq = !0); h.splice(a, 1); g.zo >= a && g.zo--; 0 === h.length && (this.Mb === g ? this.Yg = !0 : this.mz(g)); break } } } } }, Si: function(a) { null != a && (a = this.og[a.Y]) && (this.xq ? a.cf.Ki = !0 : this.eu(a.cf)) }, QK: function(c) { if (null != c) { var a = this.Zh[c.Y]; a && (-1 < a.ie.indexOf(a.Lq) && !a.Mq && (a.Mq = !0), a.ie.length = 0, this.Mb === a ? this.Yg = !0 : this.mz(a)); this.Si(c) } }, TY: function() { this.qC(b.lm.hp) }, qC: function(e) { var a, c, d = this.vm; for (a = 0; a < d.length; a++) { c = d[a], this.QK(c.target) } if (0 > e) { for (a = 0; a < this.Sj.length; a++) { (c = this.Sj[a]) && c.no >= e && this.Si(c.target) } } if (0 >= e) { for (a = 0; a < this.Rj.length; a++) { (c = this.Rj[a]) && this.Si(c.target) } } for (a = 0; a < this.Tj.length; a++) { (c = this.Tj[a]) && c.no >= e && this.Si(c.target) } }, h7: function(e, a) { b.assert(e, "Argument key must not be empty"); b.assert(a, "Argument target must be non-nullptr"); var c = this.og[a.Y]; if (!c) { return !1 } if (null != c.ie) { for (var c = c.ie, d = 0; d < c.length; ++d) { if (e === c[d].getKey()) { return !0 } } } return !1 }, g9: function() { return this.yW(b.lm.hp) }, yW: function(f) { var g = [], a, c = this.vm, d, e; d = 0; for (e = c.length; d < e; d++) { if (a = c[d]) { a.paused = !0, g.push(a.target) } } if (0 > f) { for (d = 0; d < this.Sj.length; d++) { (c = this.Sj[d]) && c.no >= f && (a.paused = !0, g.push(a.target)) } } if (0 >= f) { for (d = 0; d < this.Rj.length; d++) { if (c = this.Rj[d]) { a.paused = !0, g.push(a.target) } } } for (d = 0; d < this.Tj.length; d++) { (c = this.Tj[d]) && c.no >= f && (a.paused = !0, g.push(a.target)) } return g }, cX: function(c) { if (c) { for (var a = 0; a < c.length; a++) { this.Mi(c[a]) } } }, mo: function(c) { b.assert(c, b.j.qN); var a = this.Zh[c.Y]; a && (a.paused = !0); if (c = this.og[c.Y]) { c.cf.paused = !0 } }, Mi: function(c) { b.assert(c, b.j.rN); var a = this.Zh[c.Y]; a && (a.paused = !1); if (c = this.og[c.Y]) { c.cf.paused = !1 } }, o7: function(c) { b.assert(c, b.j.pN); var a = this.Zh[c.Y]; return a ? a.paused : (c = this.og[c.Y]) ? c.cf.paused : !1 }, p$: function(d, a, c) { this.fk(d, a, c) }, Pba: function(c, a) { this.Ri(a, c) }, Qba: function(a) { this.Si(a) }, Nba: function(a) { this.Ri(a.Y + "", a) }, Hr: function() { this.qC(b.lm.hp) }, Oba: function(a) { this.qC(a) } }); b.lm.hp = -2147483648; b.YC = 2 * Math.PI; b.JC = b.Ia.extend({ Cx: [], s: null, ctor: function(a) { this.s = a }, ET: function(f, a) { a || (a = 1); var c = b.view.Ca, d = b.d(f.x * c, f.y * b.view.ib), e = this.s.getContext(); e.beginPath(); e.arc(d.x, -d.y, a * c, 0, 2 * Math.PI, !1); e.closePath(); e.fill() }, FT: function(e, f, g) { if (null != e) { g || (g = 1); f = this.s.getContext(); var h = b.view.Ca, a = b.view.ib; f.beginPath(); for (var c = 0, d = e.length; c < d; c++) { f.arc(e[c].x * h, -e[c].y * a, g * h, 0, 2 * Math.PI, !1) } f.closePath(); f.fill() } }, Bi: function(f, a) { var c = this.s.getContext(), d = b.view.Ca, e = b.view.ib; c.beginPath(); c.moveTo(f.x * d, -f.y * e); c.lineTo(a.x * d, -a.y * e); c.closePath(); c.stroke() }, RA: function(c, a) { this.Bi(b.d(c.x, c.y), b.d(a.x, c.y)); this.Bi(b.d(a.x, c.y), b.d(a.x, a.y)); this.Bi(b.d(a.x, a.y), b.d(c.x, a.y)); this.Bi(b.d(c.x, a.y), b.d(c.x, c.y)) }, JT: function(d, a, c) { d = [d, b.d(a.x, d.y), a, b.d(d.x, a.y)]; this.TA(d, 4, c) }, Tf: function(d, e, f, g) { g = g || !1; if (null != d) { if (3 > d.length) { throw Error("Polygon's point must greater than 2") } var h = d[0]; e = this.s.getContext(); var k = b.view.Ca, a = b.view.ib; e.beginPath(); e.moveTo(h.x * k, -h.y * a); for (var h = 1, c = d.length; h < c; h++) { e.lineTo(d[h].x * k, -d[h].y * a) } f && e.closePath(); g ? e.fill() : e.stroke() } }, TA: function(d, a, c) { this.to(c.r, c.g, c.b, c.a); this.Tf(d, a, !0, !0) }, NA: function(e, f, g, h, a) { a = a || !1; h = this.s.getContext(); var c = b.view.Ca, d = b.view.ib; h.beginPath(); h.arc(0 | e.x * c, 0 | -(e.y * d), f * c, -g, -(g - 2 * Math.PI), !1); a && h.lineTo(0 | e.x * c, 0 | -(e.y * d)); h.stroke() }, QA: function(e, f, g, h) { for (var a = this.Cx, c = a.length = 0, d = 0; d < h; d++) { a.push(b.d(Math.pow(1 - c, 2) * e.x + 2 * (1 - c) * c * f.x + c * c * g.x, Math.pow(1 - c, 2) * e.y + 2 * (1 - c) * c * f.y + c * c * g.y)), c += 1 / h } a.push(b.d(g.x, g.y)); this.Tf(a, h + 1, !1, !1) }, OA: function(d, e, f, g, h) { for (var k = this.Cx, a = k.length = 0, c = 0; c < h; c++) { k.push(b.d(Math.pow(1 - a, 3) * d.x + 3 * Math.pow(1 - a, 2) * a * e.x + 3 * (1 - a) * a * a * f.x + a * a * a * g.x, Math.pow(1 - a, 3) * d.y + 3 * Math.pow(1 - a, 2) * a * e.y + 3 * (1 - a) * a * a * f.y + a * a * a * g.y)), a += 1 / h } k.push(b.d(g.x, g.y)); this.Tf(k, h + 1, !1, !1) }, MA: function(c, a) { this.Bl(c, 0.5, a) }, Bl: function(d, e, f) { b.s.Wv("rgba(255,255,255,1)"); var g = this.Cx; g.length = 0; for (var h, k, a = 1 / d.length, c = 0; c < f + 1; c++) { k = c / f, 1 === k ? (h = d.length - 1, k = 1) : (h = 0 | k / a, k = (k - a * h) / a), h = b.KZ(b.Gc(d, h - 1), b.Gc(d, h - 0), b.Gc(d, h + 1), b.Gc(d, h + 2), e, k), g.push(h) } this.Tf(g, f + 1, !1, !1) }, drawImage: function(e, f, g, h, a) { var c = arguments.length, d = this.s.getContext(); switch (c) { case 2: d.drawImage(e, f.x, -(f.y + e.height)); break; case 3: d.drawImage(e, f.x, -(f.y + g.height), g.width, g.height); break; case 5: d.drawImage(e, f.x, f.y, g.width, g.height, h.x, -(h.y + a.height), a.width, a.height); break; default: throw Error("Argument must be non-nil") } }, f3: function(f, g, a) { f = f || this.s; var c = f.getContext(); g *= b.view.Ca; a = "rgba(" + (0 | a.r) + "," + (0 | a.g) + "," + (0 | a.b); f.Kg(a + ",1)"); var d = g / 10; c.beginPath(); c.moveTo(-g, g); c.lineTo(0, d); c.lineTo(g, g); c.lineTo(d, 0); c.lineTo(g, -g); c.lineTo(0, -d); c.lineTo(-g, -g); c.lineTo(-d, 0); c.lineTo(-g, g); c.closePath(); c.fill(); var e = c.createRadialGradient(0, 0, d, 0, 0, g); e.addColorStop(0, a + ", 1)"); e.addColorStop(0.3, a + ", 0.8)"); e.addColorStop(1, a + ", 0.0)"); f.Kg(e); c.beginPath(); c.arc(0, 0, g - d, 0, b.YC, !1); c.closePath(); c.fill() }, d3: function(f, a, c) { f = f || this.s; var d = f.getContext(); a *= b.view.Ca; c = "rgba(" + (0 | c.r) + "," + (0 | c.g) + "," + (0 | c.b); var e = d.createRadialGradient(0, 0, a / 10, 0, 0, a); e.addColorStop(0, c + ", 1)"); e.addColorStop(0.3, c + ", 0.8)"); e.addColorStop(0.6, c + ", 0.4)"); e.addColorStop(1, c + ", 0.0)"); f.Kg(e); d.beginPath(); d.arc(0, 0, a, 0, b.YC, !1); d.closePath(); d.fill() }, fillText: function(d, a, c) { this.s.getContext().fillText(d, a, -c) }, to: function(e, a, c, d) { this.s.Kg("rgba(" + e + "," + a + "," + c + "," + d / 255 + ")"); this.s.Wv("rgba(" + e + "," + a + "," + c + "," + d / 255 + ")") }, IX: function() {}, dC: function(a) { this.s.getContext().lineWidth = a * b.view.Ca } }); b.GL = b.Ia.extend({ s: null, Up: !1, Zb: null, Wg: -1, oe: null, bz: -1, az: -1, ctor: function(a) { null == a && (a = b.s); if (!a instanceof WebGLRenderingContext) { throw "Can't initialise DrawingPrimitiveWebGL. context need is WebGLRenderingContext" } this.s = a; this.oe = new Float32Array([1, 1, 1, 1]) }, Ii: function() { this.Up || (this.Zb = b.Ge.Hc(b.Ww), this.Wg = this.s.getUniformLocation(this.Zb.Zu(), "u_color"), this.bz = this.s.getUniformLocation(this.Zb.Zu(), "u_pointSize"), this.Up = !0) }, e3: function() { this.Up = !1 }, ET: function(d) { this.Ii(); var a = this.s; this.Zb.Ub(); this.Zb.Ih(); b.tc(b.ad); a.uniform4fv(this.Wg, this.oe); this.Zb.iC(this.bz, this.az); var c = a.createBuffer(); a.bindBuffer(a.ARRAY_BUFFER, c); a.bufferData(a.ARRAY_BUFFER, new Float32Array([d.x, d.y]), a.STATIC_DRAW); a.vertexAttribPointer(b.ab, 2, a.FLOAT, !1, 0, 0); a.drawArrays(a.POINTS, 0, 1); a.deleteBuffer(c); b.Xf() }, FT: function(d) { if (d && 0 !== d.length) { this.Ii(); var a = this.s; this.Zb.Ub(); this.Zb.Ih(); b.tc(b.ad); a.uniform4fv(this.Wg, this.oe); this.Zb.iC(this.bz, this.az); var c = a.createBuffer(); a.bindBuffer(a.ARRAY_BUFFER, c); a.bufferData(a.ARRAY_BUFFER, this.au(d), a.STATIC_DRAW); a.vertexAttribPointer(b.ab, 2, a.FLOAT, !1, 0, 0); a.drawArrays(a.POINTS, 0, d.length); a.deleteBuffer(c); b.Xf() } }, au: function(d) { for (var a = new Float32Array(2 * d.length), c = 0; c < d.length; c++) { a[2 * c] = d[c].x, a[2 * c + 1] = d[c].y } return a }, Bi: function(e, a) { this.Ii(); var c = this.s; this.Zb.Ub(); this.Zb.Ih(); b.tc(b.ad); c.uniform4fv(this.Wg, this.oe); var d = c.createBuffer(); c.bindBuffer(c.ARRAY_BUFFER, d); c.bufferData(c.ARRAY_BUFFER, this.au([e, a]), c.STATIC_DRAW); c.vertexAttribPointer(b.ab, 2, c.FLOAT, !1, 0, 0); c.drawArrays(c.LINES, 0, 2); c.deleteBuffer(d); b.Xf() }, RA: function(c, a) { this.Bi(b.d(c.x, c.y), b.d(a.x, c.y)); this.Bi(b.d(a.x, c.y), b.d(a.x, a.y)); this.Bi(b.d(a.x, a.y), b.d(c.x, a.y)); this.Bi(b.d(c.x, a.y), b.d(c.x, c.y)) }, JT: function(d, a, c) { d = [d, b.d(a.x, d.y), a, b.d(d.x, a.y)]; this.TA(d, 4, c) }, Tf: function(e, a, c) { this.Ii(); a = this.s; this.Zb.Ub(); this.Zb.Ih(); b.tc(b.ad); a.uniform4fv(this.Wg, this.oe); var d = a.createBuffer(); a.bindBuffer(a.ARRAY_BUFFER, d); a.bufferData(a.ARRAY_BUFFER, this.au(e), a.STATIC_DRAW); a.vertexAttribPointer(b.ab, 2, a.FLOAT, !1, 0, 0); c ? a.drawArrays(a.LINE_LOOP, 0, e.length) : a.drawArrays(a.LINE_STRIP, 0, e.length); a.deleteBuffer(d); b.Xf() }, TA: function(d, a, c) { this.Ii(); c && this.to(c.r, c.g, c.b, c.a); a = this.s; this.Zb.Ub(); this.Zb.Ih(); b.tc(b.ad); a.uniform4fv(this.Wg, this.oe); c = a.createBuffer(); a.bindBuffer(a.ARRAY_BUFFER, c); a.bufferData(a.ARRAY_BUFFER, this.au(d), a.STATIC_DRAW); a.vertexAttribPointer(b.ab, 2, a.FLOAT, !1, 0, 0); a.drawArrays(a.TRIANGLE_FAN, 0, d.length); a.deleteBuffer(c); b.Xf() }, NA: function(g, h, k, m, n) { this.Ii(); var a = 1; n && a++; var c = 2 * Math.PI / m; if (n = new Float32Array(2 * (m + 2))) { for (var d = 0; d <= m; d++) { var e = d * c, f = h * Math.sin(e + k) + g.y; n[2 * d] = h * Math.cos(e + k) + g.x; n[2 * d + 1] = f } n[2 * (m + 1)] = g.x; n[2 * (m + 1) + 1] = g.y; g = this.s; this.Zb.Ub(); this.Zb.Ih(); b.tc(b.ad); g.uniform4fv(this.Wg, this.oe); h = g.createBuffer(); g.bindBuffer(g.ARRAY_BUFFER, h); g.bufferData(g.ARRAY_BUFFER, n, g.STATIC_DRAW); g.vertexAttribPointer(b.ab, 2, g.FLOAT, !1, 0, 0); g.drawArrays(g.LINE_STRIP, 0, m + a); g.deleteBuffer(h); b.Xf() } }, QA: function(e, f, g, h) { this.Ii(); for (var a = new Float32Array(2 * (h + 1)), c = 0, d = 0; d < h; d++) { a[2 * d] = Math.pow(1 - c, 2) * e.x + 2 * (1 - c) * c * f.x + c * c * g.x, a[2 * d + 1] = Math.pow(1 - c, 2) * e.y + 2 * (1 - c) * c * f.y + c * c * g.y, c += 1 / h } a[2 * h] = g.x; a[2 * h + 1] = g.y; e = this.s; this.Zb.Ub(); this.Zb.Ih(); b.tc(b.ad); e.uniform4fv(this.Wg, this.oe); f = e.createBuffer(); e.bindBuffer(e.ARRAY_BUFFER, f); e.bufferData(e.ARRAY_BUFFER, a, e.STATIC_DRAW); e.vertexAttribPointer(b.ab, 2, e.FLOAT, !1, 0, 0); e.drawArrays(e.LINE_STRIP, 0, h + 1); e.deleteBuffer(f); b.Xf() }, OA: function(d, e, f, g, h) { this.Ii(); for (var k = new Float32Array(2 * (h + 1)), a = 0, c = 0; c < h; c++) { k[2 * c] = Math.pow(1 - a, 3) * d.x + 3 * Math.pow(1 - a, 2) * a * e.x + 3 * (1 - a) * a * a * f.x + a * a * a * g.x, k[2 * c + 1] = Math.pow(1 - a, 3) * d.y + 3 * Math.pow(1 - a, 2) * a * e.y + 3 * (1 - a) * a * a * f.y + a * a * a * g.y, a += 1 / h } k[2 * h] = g.x; k[2 * h + 1] = g.y; d = this.s; this.Zb.Ub(); this.Zb.Ih(); b.tc(b.ad); d.uniform4fv(this.Wg, this.oe); e = d.createBuffer(); d.bindBuffer(d.ARRAY_BUFFER, e); d.bufferData(d.ARRAY_BUFFER, k, d.STATIC_DRAW); d.vertexAttribPointer(b.ab, 2, d.FLOAT, !1, 0, 0); d.drawArrays(d.LINE_STRIP, 0, h + 1); d.deleteBuffer(e); b.Xf() }, MA: function(c, a) { this.Bl(c, 0.5, a) }, Bl: function(d, e, f) { this.Ii(); for (var g = new Float32Array(2 * (f + 1)), h, k, a = 1 / d.length, c = 0; c < f + 1; c++) { k = c / f, 1 === k ? (h = d.length - 1, k = 1) : (h = 0 | k / a, k = (k - a * h) / a), h = b.Ou(b.Gc(d, h - 1), b.Gc(d, h), b.Gc(d, h + 1), b.Gc(d, h + 2), e, k), g[2 * c] = h.x, g[2 * c + 1] = h.y } d = this.s; this.Zb.Ub(); this.Zb.Ih(); b.tc(b.ad); d.uniform4fv(this.Wg, this.oe); e = d.createBuffer(); d.bindBuffer(d.ARRAY_BUFFER, e); d.bufferData(d.ARRAY_BUFFER, g, d.STATIC_DRAW); d.vertexAttribPointer(b.ab, 2, d.FLOAT, !1, 0, 0); d.drawArrays(d.LINE_STRIP, 0, f + 1); d.deleteBuffer(e); b.Xf() }, to: function(e, a, c, d) { this.oe[0] = e / 255; this.oe[1] = a / 255; this.oe[2] = c / 255; this.oe[3] = d / 255 }, IX: function(a) { this.az = a * b.jb() }, dC: function(a) { this.s.lineWidth && this.s.lineWidth(a) } }); b.na.Lw = function() { var a = b.J.prototype; b.l(a, "color", a.Uf, a.xb); b.l(a, "opacity", a.sh, a.yd); b.l(a, "string", a.Fl, a.zd); b.l(a, "textAlign", a.FU, a.zX); b.l(a, "verticalAlign", a.rV, a.fY); b.l(a, "fontSize", a.iB, a.Qv); b.l(a, "fontName", a.hB, a.Pv); b.l(a, "font", a.NP, a.rR); b.l(a, "boundingWidth", a.my, a.nR); b.l(a, "boundingHeight", a.JP, a.mR); b.l(a, "fillStyle", a.MP, a.pK); b.l(a, "strokeStyle", a.dQ, a.BR); b.l(a, "lineWidth", a.TP, a.tR); b.l(a, "shadowOffsetX", a.aQ, a.xR); b.l(a, "shadowOffsetY", a.bQ, a.yR); b.l(a, "shadowOpacity", a.cQ, a.zR); b.l(a, "shadowBlur", a.$P, a.wR) }; b.J = b.o.extend({ Rb: null, Cj: b.mm, Uj: b.qp, Bb: null, Cb: 0, Pb: "", Vt: null, Qc: !1, fd: null, qi: 0, Oj: 0, rn: null, Lf: !1, ml: null, si: 0, yn: null, Vz: 0, Wz: 0, ln: !1, Jy: null, gc: "LabelTTF", Wh: "normal", Xh: "normal", Zp: "normal", Qd: function(f, g, a, c, d, e) { f = f ? f + "" : ""; a = a || 16; c = c || b.size(0, 0); d = d || b.Es; e = e || b.qp; this.hc = !1; this.Rb = b.size(c.width, c.height); this.Bb = g || "Arial"; this.Cj = d; this.Uj = e; this.Cb = a; this.i.Nj(this.Bb, a, this.Wh, this.Xh); this.string = f; this.i.vg(); this.i.xi(); this.Yb(); return !0 }, Yb: function() { this.ln = !0; this.i.ia(b.f.L.jk) }, ctor: function(f, g, a, c, d, e) { b.o.prototype.ctor.call(this); this.Rb = b.size(0, 0); this.Cj = b.Es; this.Uj = b.qp; this.hc = !1; this.Bb = "Arial"; this.Qc = !1; this.fd = b.d(0, 0); this.Oj = this.qi = 0; this.Lf = !1; this.ml = b.color(255, 255, 255, 255); this.si = 0; this.yn = b.color(255, 255, 255, 255); this.Wz = this.Vz = 0; this.ln = !1; this.Jy = []; this.i.vg(); this.T = !0; g && g instanceof ia ? this.IV(f, g) : b.J.prototype.Qd.call(this, f, g, a, c, d, e) }, oa: function() { return this.Qd(" ", this.Bb, this.Cb) }, description: function() { return "\x3ccc.LabelTTF | FontName \x3d" + this.Bb + " FontSize \x3d " + this.Cb.toFixed(1) + "\x3e" }, kB: function() { return !this.Zp || this.Zp.charAt ? this.i.yj : this.Zp || this.i.yj }, faa: function(a) { this.Zp = a }, Fl: function() { return this.Pb }, FU: function() { return this.Cj }, rV: function() { return this.Uj }, U4: function() { return b.size(this.Rb) }, iB: function() { return this.Cb }, hB: function() { return this.Bb }, IV: function(c, a) { this.OH(a, !1); this.string = c; return !0 }, Iaa: function(a) { a && this.OH(a, !0) }, c6: function() { return this.aR(!1) }, TT: function(e, a, c, d) { null != e.r && null != e.g && null != e.b && null != e.a ? this.wP(e, a, c) : this.jF(e, a, c, d) }, jF: function(f, a, c, d) { c = c || 0.5; !1 === this.Qc && (this.Qc = !0); var e = this.fd; if (e && e.x !== f || e.de !== a) { e.x = f, e.y = a } this.qi !== c && (this.qi = c); this.i.vg(); this.Oj !== d && (this.Oj = d); this.Yb() }, wP: function(d, a, c) { this.rn || (this.rn = b.color(255, 255, 255, 128)); this.rn.r = d.r; this.rn.g = d.g; this.rn.b = d.b; this.jF(a.width || a.x || 0, a.height || a.y || 0, null != d.a ? d.a / 255 : 0.5, c) }, aQ: function() { return this.fd.x }, xR: function(a) { !1 === this.Qc && (this.Qc = !0); this.fd.x !== a && (this.fd.x = a, this.Yb()) }, bQ: function() { return this.fd.de }, yR: function(a) { !1 === this.Qc && (this.Qc = !0); this.fd.de !== a && (this.fd.de = a, this.Yb()) }, c1: function() { return b.d(this.fd.x, this.fd.y) }, u1: function(a) { !1 === this.Qc && (this.Qc = !0); if (this.fd.x !== a.x || this.fd.y !== a.y) { this.fd.x = a.x, this.fd.y = a.y, this.Yb() } }, cQ: function() { return this.qi }, zR: function(a) { !1 === this.Qc && (this.Qc = !0); this.qi !== a && (this.qi = a, this.i.vg(), this.Yb()) }, $P: function() { return this.Oj }, wR: function(a) { !1 === this.Qc && (this.Qc = !0); this.Oj !== a && (this.Oj = a, this.Yb()) }, S2: function() { this.Qc && (this.Qc = !1, this.Yb()) }, UT: function(d, a) { !1 === this.Lf && (this.Lf = !0); var c = this.ml; if (c.r !== d.r || c.g !== d.g || c.b !== d.b) { c.r = d.r, c.g = d.g, c.b = d.b, this.i.vg() } this.si !== a && (this.si = a || 0); this.Yb() }, dQ: function() { return this.ml }, BR: function(c) { !1 === this.Lf && (this.Lf = !0); var a = this.ml; if (a.r !== c.r || a.g !== c.g || a.b !== c.b) { a.r = c.r, a.g = c.g, a.b = c.b, this.i.vg(), this.Yb() } }, TP: function() { return this.si }, tR: function(a) { !1 === this.Lf && (this.Lf = !0); this.si !== a && (this.si = a || 0, this.Yb()) }, T2: function() { this.Lf && (this.Lf = !1, this.Yb()) }, pK: function(c) { var a = this.yn; if (a.r !== c.r || a.g !== c.g || a.b !== c.b) { a.r = c.r, a.g = c.g, a.b = c.b, this.i.vg(), this.ln = !0 } }, MP: function() { return this.yn }, OH: function(d, a) { d.k4 ? (this.Rb.width = d.boundingWidth, this.Rb.height = d.boundingHeight) : (this.Rb.width = 0, this.Rb.height = 0); this.Cj = d.textAlign; this.Uj = d.verticalAlign; this.Bb = d.fontName; this.Cb = d.fontSize || 12; this.Zp = d.lineHeight ? d.lineHeight : this.Cb; this.i.Nj(d); d.FK && this.TT(d.shadowOffsetX, d.shadowOffsetY, d.shadowOpacity, d.shadowBlur); d.nC && this.UT(d.strokeStyle, d.lineWidth); this.pK(d.fillStyle); a && this.i.xi(); var c = b.f.L; this.i.ia(c.ra | c.pa | c.jk) }, aR: function(d) { var a = new ia; d ? (a.fontSize = this.Cb, a.boundingWidth = b.jb() * this.Rb.width, a.boundingHeight = b.jb() * this.Rb.height) : (a.fontSize = this.Cb, a.boundingWidth = this.Rb.width, a.boundingHeight = this.Rb.height); a.fontName = this.Bb; a.textAlign = this.Cj; a.verticalAlign = this.Uj; if (this.Lf) { a.nC = !0; var c = this.ml; a.strokeStyle = b.color(c.r, c.g, c.b); a.lineWidth = this.si } else { a.nC = !1 } this.Qc ? (a.FK = !0, a.shadowBlur = this.Oj, a.shadowOpacity = this.qi, a.shadowOffsetX = (d ? b.jb() : 1) * this.fd.x, a.shadowOffsetY = (d ? b.jb() : 1) * this.fd.y) : a.Qc = !1; d = this.yn; a.fillStyle = b.color(d.r, d.g, d.b); return a }, zd: function(a) { a = String(a); this.Vt !== a && (this.Vt = a + "", this.Eu(), this.Yb(), this.i.ia(b.f.L.ba)) }, Eu: function() { this.Pb && "" !== this.Pb || this.Pb === this.Vt || (b.Za.af = !0); this.Pb = this.Vt }, zX: function(a) { a !== this.Cj && (this.Cj = a, this.Yb()) }, fY: function(a) { a !== this.Uj && (this.Uj = a, this.Yb()) }, O$: function(d, a) { var c; void 0 === a ? (c = d.width, a = d.height) : c = d; if (c !== this.Rb.width || a !== this.Rb.height) { this.Rb.width = c, this.Rb.height = a, this.Eu(), this.Yb() } }, my: function() { return this.Rb.width }, nR: function(a) { a !== this.Rb.width && (this.Rb.width = a, this.Eu(), this.Yb()) }, JP: function() { return this.Rb.height }, mR: function(a) { a !== this.Rb.height && (this.Rb.height = a, this.Eu(), this.Yb()) }, Qv: function(a) { this.Cb !== a && (this.Cb = a, this.i.Nj(this.Bb, this.Cb, this.Wh, this.Xh), this.Yb()) }, Pv: function(a) { this.Bb && this.Bb !== a && (this.Bb = a, this.i.Nj(this.Bb, this.Cb, this.Wh, this.Xh), this.Yb()) }, NP: function() { return this.i.oy() }, rR: function(a) { if (a = b.J.AP.exec(a)) { this.Cb = parseInt(a[1]), this.Bb = a[2], this.i.Nj(this.Bb, this.Cb, this.Wh, this.Xh), this.Yb() } }, eb: function() { this.ln && this.i.Fu(); return b.o.prototype.eb.call(this) }, mg: function() { this.ln && this.i.Fu(); return b.o.prototype.mg.call(this) }, Aj: function() { this.ln && this.i.Fu(); return b.o.prototype.Aj.call(this) }, wc: function(d, a, c) { b.o.prototype.wc.call(this, d, a, c, !1) }, Fd: function() { return b.ua === b.dc ? new b.J.A(this) : new b.J.F(this) }, Nj: function(a) { this.Wh !== a && (this.Wh = a, this.i.Nj(this.Bb, this.Cb, this.Wh, this.Xh), this.Yb()) }, oy: function() { return this.Wh }, r1: function(a) { this.Xh !== a && (this.Xh = a, this.i.Nj(this.Bb, this.Cb, this.Wh, this.Xh), this.Yb()) }, Y0: function() { return this.Xh } }); b.assert(b.nd(b.na.Lw), b.j.Og, "LabelTTFPropertyDefine.js"); b.na.Lw(); delete b.na.Lw; b.J.AP = /^(\d+)px\s+['"]?([\w\s\d]+)['"]?$/; b.J.create = function(f, g, a, c, d, e) { return new b.J(f, g, a, c, d, e) }; b.J.I2 = b.J.create; b.J.VO = b.KO ? b.Ak : b.Uw; b.J.Qh = b.ac("div"); b.J.Qh.style.fontFamily = "Arial"; b.J.Qh.style.position = "absolute"; b.J.Qh.style.left = "-100px"; b.J.Qh.style.top = "-100px"; b.J.Qh.style.lineHeight = "normal"; document.body ? document.body.appendChild(b.J.Qh) : b.Qa(window, "load", function() { this.removeEventListener("load", arguments.callee, !1); document.body.appendChild(b.J.Qh) }, !1); b.J.$D = function(e, a) { if (e instanceof ia) { var c = b.J.Ss[ja(e)]; if (0 < c) { return c } var d = b.J.Qh; d.innerHTML = "ajghl~!"; d.style.fontFamily = e.fontName; d.style.fontSize = e.fontSize + "px"; d.style.fontStyle = e.fontStyle; d.style.fontWeight = e.fontWeight; c = d.clientHeight; b.J.Ss[ja(e)] = c; d.innerHTML = ""; return c } c = b.J.Ss[e + "." + a]; if (0 < c) { return c } d = b.J.Qh; d.innerHTML = "ajghl~!"; d.style.fontFamily = e; d.style.fontSize = a + "px"; c = d.clientHeight; b.J.Ss[e + "." + a] = c; d.innerHTML = ""; return c }; b.J.Ss = {}; b.J.PR = ["left", "center", "right"]; b.J.QR = ["top", "middle", "bottom"]; b.J.XK = !0; b.J.SH = /([a-zA-Z0-9\u00c4\u00d6\u00dc\u00e4\u00f6\u00fc\u00df\u00e9\u00e8\u00e7\u00e0\u00f9\u00ea\u00e2\u00ee\u00f4\u00fb]+|\S)/; b.J.vH = /^[!,.:;}\]%\?>\u3001\u2018\u201c\u300b\uff1f\u3002\uff0c\uff01]/; b.J.aG = /([a-zA-Z0-9\u00c4\u00d6\u00dc\u00e4\u00f6\u00fc\u00df\u00e9\u00e8\u00e7\u00e0\u00f9\u00ea\u00e2\u00ee\u00f4\u00fb]+|\S)$/; b.J.$F = /[a-zA-Z0-9\u00c4\u00d6\u00dc\u00e4\u00f6\u00fc\u00df\u00e9\u00e8\u00e7\u00e0\u00f9\u00ea\u00e2\u00ee\u00f4\u00fb]+$/; b.J.qF = /^[a-zA-Z0-9\u00c4\u00d6\u00dc\u00e4\u00f6\u00fc\u00df\u00e9\u00e8\u00e7\u00e0\u00f9\u00ea\u00e2\u00ee\u00f4\u00fb]/; (function() { b.J.qd = function() { this.yj = 18; this.Qk = ""; this.Pz = "rgba(128, 128, 128, 0.5)"; this.Uz = ""; this.cy = "rgba(255,255,255,1)"; this.Kt = this.Jt = null; this.Jy = []; this.Bg = []; this.Vp = !1 }; var a = b.J.qd.prototype; a.constructor = b.J.qd; a.qy = function() { if (this.Kt) { return this.Kt } var e = this.p; if (!this.Jt) { var c = b.ac("canvas"); c.width = 1; c.height = 1; var d = new b.ca; d.mc(c); e.$a(d); this.Jt = c } return this.Kt = this.Jt.getContext("2d") }; a.Nj = function(f, c, d, e) { f instanceof ia ? (this.Qk = ja(f), this.yj = b.J.$D(f)) : (this.Qk = d + " " + e + " " + c + "px '" + f + "'", this.yj = b.J.$D(f, c)) }; a.oy = function() { return this.Qk }; a.X0 = function() { return this.yj }; a.xi = function() { this.C ^= this.C & b.f.L.jk; var f = this.p, g = this.qy(), h = this.Jt, c = f.Q; if (0 === f.Pb.length) { h.width = 1, h.height = c.height || 1, f.P && f.P.fb(), f.wc(b.rect(0, 0, 1, c.height)) } else { g.font = this.Qk; this.Fu(); var d = c.width, c = c.height, e = h.width === d && h.height === c; h.width = d; h.height = c; e && g.clearRect(0, 0, d, c); this.vP(g); f.P && f.P.fb(); f.wc(b.rect(0, 0, d, c)) } }; a.KQ = function() { this.qy().font = this.Qk }; a.hn = function(c) { return this.qy().measureText(c).width }; a.Fu = function() { var f = this.p, g = f.Rb.width, h, c, d = this.Jy; d.length = 0; this.Vp = !1; this.KQ(); if (0 !== g) { for (this.Bg = f.Pb.split("\n"), h = 0; h < this.Bg.length; h++) { this.Kx(this.Bg, h, g) } } else { for (this.Bg = f.Pb.split("\n"), h = 0, c = this.Bg.length; h < c; h++) { d.push(this.hn(this.Bg[h])) } } 0 < this.Bg.length && (this.Vp = !0); c = h = 0; f.Lf && (h = c = 2 * f.si); if (f.Qc) { var e = f.fd; h += 2 * Math.abs(e.x); c += 2 * Math.abs(e.y) } g = 0 === g ? this.Vp ? b.size(Math.ceil(Math.max.apply(Math, d) + h), Math.ceil(this.yj * this.Bg.length + c)) : b.size(Math.ceil(this.hn(f.Pb) + h), Math.ceil(this.yj + c)) : 0 === f.Rb.height ? this.Vp ? b.size(Math.ceil(g + h), Math.ceil(f.kB() * this.Bg.length + c)) : b.size(Math.ceil(g + h), Math.ceil(f.kB() + c)) : b.size(Math.ceil(g + h), Math.ceil(f.Rb.height + c)); "normal" !== f.oy() && (g.width = Math.ceil(g.width + 0.3 * f.Cb)); f.he(g); f.Vz = h; f.Wz = c; f = f.wf; this.xf.x = 0.5 * h + (g.width - h) * f.x; this.xf.y = 0.5 * c + (g.height - c) * f.y }; a.vP = function(c) { if (c) { var e = this.p, h = e.Vz, k = e.Wz, m = e.Q.height - k, n = e.Uj, p = e.Cj, r = e.si; c.setTransform(1, 0, 0, 1, 0.5 * h, m + 0.5 * k); c.font !== this.Qk && (c.font = this.Qk); c.fillStyle = this.cy; var d = k = 0, f = e.Lf; f && (c.lineWidth = 2 * r, c.strokeStyle = this.Uz); e.Qc && (r = e.fd, c.shadowColor = this.Pz, c.shadowOffsetX = r.x, c.shadowOffsetY = -r.y, c.shadowBlur = e.Oj); c.textBaseline = b.J.QR[n]; c.textAlign = b.J.PR[p]; var g = e.Q.width - h, h = e.kB(), r = (h - this.yj) / 2, k = p === b.nD ? k + g : p === b.mm ? k + g / 2 : k + 0; if (this.Vp) { for (e = this.Bg.length, n === b.WD ? d = h - 2 * r + m - h * e : n === b.MO && (d = (h - 2 * r) / 2 + (m - h * e) / 2), n = 0; n < e; n++) { p = this.Bg[n], g = -m + (h * n + r) + d, f && c.strokeText(p, k, g), c.fillText(p, k, g) } } else { n !== b.WD && (d = n === b.qp ? d - m : d - 0.5 * m), f && c.strokeText(e.Pb, k, d), c.fillText(e.Pb, k, d) } } }; a.Kx = function(c, e, h) { var k = c[e], m = this.hn(k); if (m > h && 1 < k.length) { for (var n = h / m * k.length | 0, p = k.substr(n), r = m - this.hn(p), d, f = 0, g = 0; r > h && 100 > g++;) { n *= h / r, n |= 0, p = k.substr(n), r = m - this.hn(p) } for (g = 0; r < h && 100 > g++;) { p && (f = (d = b.J.SH.exec(p)) ? d[0].length : 1, d = p), n += f, p = k.substr(n), r = m - this.hn(p) } n -= f; 0 === n && (n = 1, d = d.substr(1)); h = k.substr(0, n); b.J.XK && b.J.vH.test(d || p) && (m = b.J.aG.exec(h), n -= m ? m[0].length : 0, d = k.substr(n), h = k.substr(0, n)); b.J.qF.test(d) && (m = b.J.$F.exec(h)) && h !== m[0] && (n -= m[0].length, d = k.substr(n), h = k.substr(0, n)); c[e] = d || p; c.splice(e, 0, h) } } })(); (function() { b.J.A = function(c) { b.o.A.call(this, c); b.J.qd.call(this) }; b.J.A.prototype = Object.create(b.o.A.prototype); b.nv(b.J.qd.prototype, b.J.A.prototype); var a = b.J.A.prototype; a.constructor = b.J.A; a.updateStatus = function() { var f = b.f.L, c = this.C, d = c & f.ra, e = c & f.pa; d && this.Rf(); e && F(this); d ? this.Va() : c & f.jk && this.xi(); this.C & f.ba && (this.transform(G(this), !0), this.C ^= this.C & b.f.L.ba) }; a.We = function(g) { var c = b.f.L, d = this.C, e = g ? g.p : null; e && e.ec && g.C & c.ra && (d |= c.ra); e && e.fc && g.C & c.pa && (d |= c.pa); g && g.C & c.ba && (d |= c.ba); var e = d & c.ra, f = d & c.pa; this.C = d; e && ma(this); f && la(this); e ? this.Va() : d & c.jk && this.xi(); d & c.ba && this.transform(g) }; a.vg = function() { var g = this.mb, c = this.p, d = c.rn || this.mb, e = c.ml, f = c.yn; this.Pz = "rgba(" + (0 | 0.5 * d.r) + "," + (0 | 0.5 * d.g) + "," + (0 | 0.5 * d.b) + "," + c.qi + ")"; this.cy = "rgba(" + (0 | g.r / 255 * f.r) + "," + (0 | g.g / 255 * f.g) + "," + (0 | g.b / 255 * f.b) + ", 1)"; this.Uz = "rgba(" + (0 | g.r / 255 * e.r) + "," + (0 | g.g / 255 * e.g) + "," + (0 | g.b / 255 * e.b) + ", 1)" }; a.Va = function() { this.vg(); this.xi() } })(); (function() { b.J.F = function(c) { b.o.F.call(this, c); b.J.qd.call(this); this.Tl(b.Ge.Hc(b.J.VO)) }; var a = b.J.F.prototype = Object.create(b.o.F.prototype); b.nv(b.J.qd.prototype, a); a.constructor = b.J.F; a.vg = function() { this.ia(b.f.L.jk); var e = this.p, c = e.ml, d = e.yn; this.Pz = "rgba(128,128,128," + e.qi + ")"; this.cy = "rgba(" + (0 | d.r) + "," + (0 | d.g) + "," + (0 | d.b) + ", 1)"; this.Uz = "rgba(" + (0 | c.r) + "," + (0 | c.g) + "," + (0 | c.b) + ", 1)" }; a.updateStatus = function() { var f = b.f.L, c = this.C, d = c & f.ra, e = c & f.pa; d && this.Rf(); e && F(this); d || e ? (this.vg(), this.Va(), this.xi()) : c & f.jk && this.xi(); this.C & f.ba && (this.transform(G(this), !0), this.C ^= this.C & b.f.L.ba) }; a.We = function(g) { var c = b.f.L, d = this.C, e = g ? g.p : null; e && e.ec && g.C & c.ra && (d |= c.ra); e && e.fc && g.C & c.pa && (d |= c.pa); g && g.C & c.ba && (d |= c.ba); var e = d & c.ra, f = d & c.pa; this.C = d; e && ma(this); f && la(this); e || f ? (this.vg(), this.Va(), this.xi()) : d & c.jk && this.xi(); this.transform(g) } })(); b.XL = b.Ia.extend({ Tb: null, target: null, ul: 0, Be: null, zl: !1, paused: !1, hv: null, ctor: function() { this.Tb = []; this.target = null; this.ul = 0; this.Be = null; this.paused = this.zl = !1; this.hv = null } }); b.tC = b.Ia.extend({ pg: null, wm: null, Mb: null, Yg: !1, p1: function(d, a) { for (var c = 0; c < d.length; c++) { if (a === d[c].target) { return d[c] } } return null }, ctor: function() { this.pg = {}; this.wm = []; this.Mb = null; this.Yg = !1 }, eS: function(e, a, c) { if (!e) { throw "cc.ActionManager.addAction(): action must be non-null" } if (!a) { throw "cc.ActionManager.addAction(): action must be non-null" } var d = this.pg[a.Y]; d || (d = new b.XL, d.paused = c, d.target = a, this.pg[a.Y] = d, this.wm.push(d)); this.XO(d); d.Tb.push(e); e.H(a) }, H9: function() { for (var d = this.wm, a = 0; a < d.length; a++) { var c = d[a]; c && this.TJ(c.target, !0) } }, TJ: function(d, a) { if (null != d) { var c = this.pg[d.Y]; c && (-1 === c.Tb.indexOf(c.Be) || c.zl || (c.zl = !0), c.Tb.length = 0, this.Mb !== c || a ? this.Ux(c) : this.Yg = !0) } }, SJ: function(d) { if (null != d) { var a = this.pg[d.originalTarget.Y]; if (a) { for (var c = 0; c < a.Tb.length; c++) { if (a.Tb[c] === d) { a.Tb.splice(c, 1); break } } } else { b.log(b.j.$K) } } }, PW: function(f, g) { f === b.Zl && b.log(b.j.uC); b.assert(g, b.j.uC); var a = this.pg[g.Y]; if (a) { for (var c = a.Tb.length, d = 0; d < c; ++d) { var e = a.Tb[d]; if (e && e.oB() === f && e.originalTarget === g) { this.dR(d, a); break } } } }, dB: function(f, a) { f === b.Zl && b.log(b.j.YK); var c = this.pg[a.Y]; if (c) { if (null != c.Tb) { for (var d = 0; d < c.Tb.length; ++d) { var e = c.Tb[d]; if (e && e.oB() === f) { return e } } } b.log(b.j.ZK, f) } return null }, sW: function(a) { return (a = this.pg[a.Y]) ? a.Tb ? a.Tb.length : 0 : 0 }, mo: function(a) { if (a = this.pg[a.Y]) { a.paused = !0 } }, Mi: function(a) { if (a = this.pg[a.Y]) { a.paused = !1 } }, f9: function() { for (var e = [], a = this.wm, c = 0; c < a.length; c++) { var d = a[c]; d && !d.paused && (d.paused = !0, e.push(d.target)) } return e }, cX: function(c) { if (c) { for (var a = 0; a < c.length; a++) { c[a] && this.Mi(c[a]) } } }, o9: function() { b.I.th().Si(this) }, dR: function(c, a) { a.Tb[c] !== a.Be || a.zl || (a.zl = !0); a.Tb.splice(c, 1); a.ul >= c && a.ul--; 0 === a.Tb.length && (this.Mb === a ? this.Yg = !0 : this.Ux(a)) }, Ux: function(a) { a && (delete this.pg[a.target.Y], b.fe(this.wm, a), a.Tb = null, a.target = null) }, XO: function(a) { null == a.Tb && (a.Tb = []) }, update: function(f) { for (var a = this.wm, c, d = 0; d < a.length; d++) { c = this.Mb = a[d]; if (!c.paused) { for (c.ul = 0; c.ul < (c.Tb ? c.Tb.length : 0); c.ul++) { if (c.Be = c.Tb[c.ul], c.Be) { c.zl = !1; c.Be.step(f * (c.Be.nq ? c.Be.Kd : 1)); if (c.zl) { c.Be = null } else { if (c.Be.Zf()) { c.Be.stop(); var e = c.Be; c.Be = null; this.SJ(e) } } c.Be = null } } } this.Yg && 0 === c.Tb.length && this.Ux(c) } } }); b.e = b.e || {}; b.e.Kc = 0.015625; b.e.nc = function(a) { return a * a }; b.e.a2 = function(c, a) { return c + b.e.Kc > a && c - b.e.Kc < a }; (function(c) { c.e.qm = function(e, d) { void 0 === d ? (this.x = e.x, this.y = e.y) : (this.x = e || 0, this.y = d || 0) }; var a = c.e.qm.prototype; a.fill = function(e, d) { this.x = e; this.y = d }; a.length = function() { return Math.sqrt(c.e.nc(this.x) + c.e.nc(this.y)) }; a.ko = function() { return c.e.nc(this.x) + c.e.nc(this.y) }; a.normalize = function() { var d = 1 / this.length(); this.x *= d; this.y *= d; return this }; c.e.qm.add = function(f, d, e) { f.x = d.x + e.x; f.y = d.y + e.y; return f }; a.add = function(d) { this.x += d.x; this.y += d.y; return this }; a.Xj = function(d) { return this.x * d.x + this.y * d.y }; c.e.qm.Wl = function(f, d, e) { f.x = d.x - e.x; f.y = d.y - e.y; return f }; a.Wl = function(d) { this.x -= d.x; this.y -= d.y; return this }; a.transform = function(f) { var d = this.x, e = this.y; this.x = d * f.m[0] + e * f.m[3] + f.m[6]; this.y = d * f.m[1] + e * f.m[4] + f.m[7]; return this }; c.e.qm.scale = function(f, d, e) { f.x = d.x * e; f.y = d.y * e; return f }; a.scale = function(d) { this.x *= d; this.y *= d; return this }; a.Uu = function(d) { return this.x < d.x + c.e.Kc && this.x > d.x - c.e.Kc && this.y < d.y + c.e.Kc && this.y > d.y - c.e.Kc } })(b); (function(c) { c.L7 = c.e.ta = function(f, d, e) { f && void 0 === d ? (this.x = f.x, this.y = f.y, this.z = f.z) : (this.x = f || 0, this.y = d || 0, this.z = e || 0) }; c.e.Zba = function(e, f, d) { return new c.e.ta(e, f, d) }; var a = c.e.ta.prototype; a.fill = function(f, d, e) { f && void 0 === d ? (this.x = f.x, this.y = f.y, this.z = f.z) : (this.x = f, this.y = d, this.z = e); return this }; a.length = function() { return Math.sqrt(c.e.nc(this.x) + c.e.nc(this.y) + c.e.nc(this.z)) }; a.ko = function() { return c.e.nc(this.x) + c.e.nc(this.y) + c.e.nc(this.z) }; a.normalize = function() { var d = 1 / this.length(); this.x *= d; this.y *= d; this.z *= d; return this }; a.rh = function(g) { var d = this.x, e = this.y, f = this.z; this.x = e * g.z - f * g.y; this.y = f * g.x - d * g.z; this.z = d * g.y - e * g.x }; a.Xj = function(d) { return this.x * d.x + this.y * d.y + this.z * d.z }; a.add = function(d) { this.x += d.x; this.y += d.y; this.z += d.z; return this }; a.Wl = function(d) { this.x -= d.x; this.y -= d.y; this.z -= d.z; return this }; a.transform = function(g) { var d = this.x, e = this.y, f = this.z; g = g.m; this.x = d * g[0] + e * g[4] + f * g[8] + g[12]; this.y = d * g[1] + e * g[5] + f * g[9] + g[13]; this.z = d * g[2] + e * g[6] + f * g[10] + g[14]; return this }; a.Iba = function(g) { var d = this.x, e = this.y, f = this.z; g = g.m; this.x = d * g[0] + e * g[4] + f * g[8]; this.y = d * g[1] + e * g[5] + f * g[9]; this.z = d * g[2] + e * g[6] + f * g[10]; return this }; a.PK = function(e) { var d = new c.e.rp(this.x, this.y, this.z, 1); d.transform(e); this.x = d.x / d.M; this.y = d.y / d.M; this.z = d.z / d.M }; a.scale = function(d) { this.x *= d; this.y *= d; this.z *= d; return this }; a.Uu = function(e) { var d = c.e.Kc; return this.x < e.x + d && this.x > e.x - d && this.y < e.y + d && this.y > e.y - d && this.z < e.z + d && this.z > e.z - d }; a.P6 = function(e) { e = e.m; var d = new c.e.ta(this.x - e[12], this.y - e[13], this.z - e[14]); this.x = d.x * e[0] + d.y * e[1] + d.z * e[2]; this.y = d.x * e[4] + d.y * e[5] + d.z * e[6]; this.z = d.x * e[8] + d.y * e[9] + d.z * e[10]; return this }; a.Q6 = function(g) { var d = this.x, e = this.y, f = this.z; g = g.m; this.x = d * g[0] + e * g[1] + f * g[2]; this.y = d * g[4] + e * g[5] + f * g[6]; this.z = d * g[8] + e * g[9] + f * g[10]; return this }; a.ud = function(d) { if (!d) { return this } this.x = d.x; this.y = d.y; this.z = d.z; return this }; c.e.ta.hca = function(d) { d.x = d.y = d.z = 0; return d }; a.NY = function() { var d = new Float32Array(3); d[0] = this.x; d[1] = this.y; d[2] = this.z; return d } })(b); (function(c) { c.e.rp = function(g, d, e, f) { g && void 0 === d ? (this.x = g.x, this.y = g.y, this.z = g.z, this.M = g.M) : (this.x = g || 0, this.y = d || 0, this.z = e || 0, this.M = f || 0) }; c.M7 = c.e.rp; var a = c.e.rp.prototype; a.fill = function(g, d, e, f) { g && void 0 === d ? (this.x = g.x, this.y = g.y, this.z = g.z, this.M = g.M) : (this.x = g, this.y = d, this.z = e, this.M = f) }; a.add = function(d) { if (!d) { return this } this.x += d.x; this.y += d.y; this.z += d.z; this.M += d.M; return this }; a.Xj = function(d) { return this.x * d.x + this.y * d.y + this.z * d.z + this.M * d.M }; a.length = function() { return Math.sqrt(c.e.nc(this.x) + c.e.nc(this.y) + c.e.nc(this.z) + c.e.nc(this.M)) }; a.ko = function() { return c.e.nc(this.x) + c.e.nc(this.y) + c.e.nc(this.z) + c.e.nc(this.M) }; a.gW = function() { return this }; a.normalize = function() { var d = 1 / this.length(); this.x *= d; this.y *= d; this.z *= d; this.M *= d; return this }; a.scale = function(d) { this.normalize(); this.x *= d; this.y *= d; this.z *= d; this.M *= d; return this }; a.Wl = function(d) { this.x -= d.x; this.y -= d.y; this.z -= d.z; this.M -= d.M }; a.transform = function(g) { var h = this.x, d = this.y, e = this.z, f = this.M; g = g.m; this.x = h * g[0] + d * g[4] + e * g[8] + f * g[12]; this.y = h * g[1] + d * g[5] + e * g[9] + f * g[13]; this.z = h * g[2] + d * g[6] + e * g[10] + f * g[14]; this.M = h * g[3] + d * g[7] + e * g[11] + f * g[15]; return this }; c.e.rp.Hba = function(d, f) { for (var g = [], h = 0; h < d.length; h++) { var e = new c.e.rp(d[h]); e.transform(f); g.push(e) } return g }; a.Uu = function(e) { var d = c.e.Kc; return this.x < e.x + d && this.x > e.x - d && this.y < e.y + d && this.y > e.y - d && this.z < e.z + d && this.z > e.z - d && this.M < e.M + d && this.M > e.M - d }; a.ud = function(d) { this.x = d.x; this.y = d.y; this.z = d.z; this.M = d.M; return this }; a.NY = function() { var d = new Float32Array(4); d[0] = this.x; d[1] = this.y; d[2] = this.z; d[3] = this.M; return d } })(b); (function(a) { a.e.$M = function(d, c) { this.start = d || new a.e.qm; this.dir = c || new a.e.qm }; a.e.$M.prototype.fill = function(f, c, d, e) { this.start.x = f; this.start.y = c; this.dir.x = d; this.dir.y = e } })(b); var Float32Array = Float32Array || Array; (function(d) { d.e.xc = function(e) { this.m = e && e.m ? new Float32Array(e.m) : new Float32Array(9) }; d.z7 = d.e.xc; var a = d.e.xc.prototype; a.fill = function(f) { var e = this.m; f = f.m; e[0] = f[0]; e[1] = f[1]; e[2] = f[2]; e[3] = f[3]; e[4] = f[4]; e[5] = f[5]; e[6] = f[6]; e[7] = f[7]; e[8] = f[8]; return this }; a.uS = function() { var g = this.m, m = g[0], n = g[1], p = g[2], r = g[3], t = g[4], f = g[5], h = g[6], k = g[7], e = g[8]; g[0] = t * e - f * k; g[1] = p * k - n * e; g[2] = n * f - p * t; g[3] = f * h - r * e; g[4] = m * e - p * h; g[5] = p * r - m * f; g[6] = r * k - t * h; g[8] = m * t - n * r }; a.wd = function() { var e = this.m; e[1] = e[2] = e[3] = e[5] = e[6] = e[7] = 0; e[0] = e[4] = e[8] = 1; return this }; var c = new d.e.xc; a.inverse = function(e) { if (0 === e) { return this } c.ud(this); e = 1 / e; this.uS(); this.oW(e); return this }; a.vJ = function() { var e = this.m; return 1 === e[0] && 0 === e[1] && 0 === e[2] && 0 === e[3] && 1 === e[4] && 0 === e[5] && 0 === e[6] && 0 === e[7] && 1 === e[8] }; a.RY = function() { var e = this.m, g = e[1], h = e[2], k = e[5], m = e[6], f = e[7]; e[1] = e[3]; e[2] = m; e[3] = g; e[5] = f; e[6] = h; e[7] = k; return this }; a.Q2 = function() { var f = this.m, e = f[0] * f[4] * f[8] + f[1] * f[5] * f[6] + f[2] * f[3] * f[7]; return e -= f[2] * f[4] * f[6] + f[0] * f[5] * f[7] + f[1] * f[3] * f[8] }; a.multiply = function(x) { var y = this.m, A = x.m; x = y[0]; var B = y[1], C = y[2], H = y[3], e = y[4], f = y[5], k = y[6], p = y[7], n = y[8], s = A[0], r = A[1], u = A[2], v = A[3], g = A[4], h = A[5], m = A[6], t = A[7], A = A[8]; y[0] = x * s + H * r + k * u; y[1] = B * s + e * r + p * u; y[2] = C * s + f * r + n * u; y[3] = C * s + f * r + n * u; y[4] = B * v + e * g + p * h; y[5] = C * v + f * g + n * h; y[6] = x * m + H * t + k * A; y[7] = B * m + e * t + p * A; y[8] = C * m + f * t + n * A; return this }; a.oW = function(f) { var e = this.m; e[0] *= f; e[1] *= f; e[2] *= f; e[3] *= f; e[4] *= f; e[5] *= f; e[6] *= f; e[7] *= f; e[8] *= f }; d.e.xc.h$ = function(h, k) { var m = Math.cos(k), f = Math.sin(k), g = new d.e.xc, e = g.m; e[0] = m + h.x * h.x * (1 - m); e[1] = h.z * f + h.y * h.x * (1 - m); e[2] = -h.y * f + h.z * h.x * (1 - m); e[3] = -h.z * f + h.x * h.y * (1 - m); e[4] = m + h.y * h.y * (1 - m); e[5] = h.x * f + h.z * h.y * (1 - m); e[6] = h.y * f + h.x * h.z * (1 - m); e[7] = -h.x * f + h.y * h.z * (1 - m); e[8] = m + h.z * h.z * (1 - m); return g }; a.ud = function(f) { if (this === f) { return d.log("cc.math.Matrix3.assign(): current matrix equals matIn"), this } var e = this.m; f = f.m; e[0] = f[0]; e[1] = f[1]; e[2] = f[2]; e[3] = f[3]; e[4] = f[4]; e[5] = f[5]; e[6] = f[6]; e[7] = f[7]; e[8] = f[8]; return this }; a.Uu = function(f) { if (this === f) { return !0 } var g = d.e.Kc, h = this.m; f = f.m; for (var e = 0; 9 > e; ++e) { if (!(h[e] + g > f[e] && h[e] - g < f[e])) { return !1 } } return !0 }; d.e.xc.oT = function(f) { var g = new d.e.xc, e = g.m; e[0] = 1; e[1] = 0; e[2] = 0; e[3] = 0; e[4] = Math.cos(f); e[5] = Math.sin(f); e[6] = 0; e[7] = -Math.sin(f); e[8] = Math.cos(f); return g }; d.e.xc.pT = function(f) { var g = new d.e.xc, e = g.m; e[0] = Math.cos(f); e[1] = 0; e[2] = -Math.sin(f); e[3] = 0; e[4] = 1; e[5] = 0; e[6] = Math.sin(f); e[7] = 0; e[8] = Math.cos(f); return g }; d.e.xc.qT = function(f) { var g = new d.e.xc, e = g.m; e[0] = Math.cos(f); e[1] = -Math.sin(f); e[2] = 0; e[3] = Math.sin(f); e[4] = Math.cos(f); e[5] = 0; e[6] = 0; e[7] = 0; e[8] = 1; return g }; d.e.xc.F2 = function(f) { var g = new d.e.xc, e = g.m; e[0] = Math.cos(f); e[1] = Math.sin(f); e[2] = 0; e[3] = -Math.sin(f); e[4] = Math.cos(f); e[5] = 0; e[6] = 0; e[7] = 0; e[8] = 1; return g }; d.e.xc.zI = function(f, g) { var e = new d.e.xc; e.wd(); e.m[0] = f; e.m[4] = g; return e }; d.e.xc.Wj = function(f, g) { var e = new d.e.xc; e.wd(); e.m[6] = f; e.m[7] = g; return e }; d.e.xc.nT = function(f) { if (!f) { return null } var g = new d.e.xc, e = g.m; e[0] = 1 - 2 * (f.y * f.y + f.z * f.z); e[1] = 2 * (f.x * f.y - f.M * f.z); e[2] = 2 * (f.x * f.z + f.M * f.y); e[3] = 2 * (f.x * f.y + f.M * f.z); e[4] = 1 - 2 * (f.x * f.x + f.z * f.z); e[5] = 2 * (f.y * f.z - f.M * f.x); e[6] = 2 * (f.x * f.z - f.M * f.y); e[7] = 2 * (f.y * f.z + f.M * f.x); e[8] = 1 - 2 * (f.x * f.x + f.y * f.y); return g }; a.j$ = function() { return d.e.eg.dK(this).pC() } })(b); (function(e) { e.e.U = function(f) { this.m = f && f.m ? new Float32Array(f.m) : new Float32Array(16) }; e.A7 = e.e.U; var a = e.e.U.prototype; a.fill = function(h) { for (var f = this.m, g = 0; 16 > g; g++) { f[g] = h[g] } return this }; e.C7 = function(g) { var f = g.m; f[1] = f[2] = f[3] = f[4] = f[6] = f[7] = f[8] = f[9] = f[11] = f[12] = f[13] = f[14] = 0; f[0] = f[5] = f[10] = f[15] = 1; return g }; a.wd = function() { var f = this.m; f[1] = f[2] = f[3] = f[4] = f[6] = f[7] = f[8] = f[9] = f[11] = f[12] = f[13] = f[14] = 0; f[0] = f[5] = f[10] = f[15] = 1; return this }; a.get = function(g, f) { return this.m[g + 4 * f] }; a.set = function(h, f, g) { this.m[h + 4 * f] = g }; a.wo = function(f, h, m, n) { var g = this.m, i = g[f + 4 * h]; g[f + 4 * h] = g[m + 4 * n]; g[m + 4 * n] = i }; e.e.U.zF = function(f, g) { var i, t = 0, u = 0, h, m, p, r, n = [0, 0, 0, 0], v = [0, 0, 0, 0], s = [0, 0, 0, 0]; for (i = 0; 4 > i; i++) { for (h = r = 0; 4 > h; h++) { if (1 !== s[h]) { for (m = 0; 4 > m; m++) { 0 === s[m] && (p = Math.abs(f.get(h, m)), p >= r && (r = p, u = h, t = m)) } } }++s[t]; if (u !== t) { for (h = 0; 4 > h; h++) { f.wo(u, h, t, h) } for (h = 0; 4 > h; h++) { g.wo(u, h, t, h) } } v[i] = u; n[i] = t; if (0 === f.get(t, t)) { return !1 } m = 1 / f.get(t, t); f.set(t, t, 1); for (h = 0; 4 > h; h++) { f.set(t, h, f.get(t, h) * m) } for (h = 0; 4 > h; h++) { g.set(t, h, g.get(t, h) * m) } for (m = 0; 4 > m; m++) { if (m !== t) { p = f.get(m, t); f.set(m, t, 0); for (h = 0; 4 > h; h++) { f.set(m, h, f.get(m, h) - f.get(t, h) * p) } for (h = 0; 4 > h; h++) { g.set(m, h, f.get(m, h) - g.get(t, h) * p) } } } } for (h = 3; 0 <= h; h--) { if (v[h] !== n[h]) { for (m = 0; 4 > m; m++) { f.wo(m, v[h], m, n[h]) } } } return !0 }; var c = (new e.e.U).wd(); e.D7 = function(g, h) { var f = new e.e.U(h); if (!1 === e.e.U.zF(f, c)) { return null } g.ud(f); return g }; a.inverse = function() { var f = new e.e.U(this); return !1 === e.e.U.zF(f, c) ? null : f }; a.vJ = function() { var f = this.m; return 1 === f[0] && 0 === f[1] && 0 === f[2] && 0 === f[3] && 0 === f[4] && 1 === f[5] && 0 === f[6] && 0 === f[7] && 0 === f[8] && 0 === f[9] && 1 === f[10] && 0 === f[11] && 0 === f[12] && 0 === f[13] && 0 === f[14] && 1 === f[15] }; a.RY = function() { var f = this.m, g = f[1], i = f[2], t = f[3], u = f[6], h = f[7], m = f[8], p = f[9], r = f[11], n = f[12], v = f[13], s = f[14]; f[1] = f[4]; f[2] = m; f[3] = n; f[4] = g; f[6] = p; f[7] = v; f[8] = i; f[9] = u; f[11] = s; f[12] = t; f[13] = h; f[14] = r; return this }; e.sv = function(t, u, x) { t = t.m; var B = u.m, f = x.m; x = B[0]; u = B[1]; var g = B[2], i = B[3], s = B[4], C = B[5], y = B[6], Q = B[7], H = B[8], T = B[9], V = B[10], m = B[11], p = B[12], v = B[13], R = B[14], B = B[15], X = f[0], Y = f[1], Z = f[2], ag = f[3], ah = f[4], ai = f[5], aj = f[6], A = f[7], S = f[8], U = f[9], aa = f[10], r = f[11], W = f[12], h = f[13], n = f[14], f = f[15]; t[0] = X * x + Y * s + Z * H + ag * p; t[1] = X * u + Y * C + Z * T + ag * v; t[2] = X * g + Y * y + Z * V + ag * R; t[3] = X * i + Y * Q + Z * m + ag * B; t[4] = ah * x + ai * s + aj * H + A * p; t[5] = ah * u + ai * C + aj * T + A * v; t[6] = ah * g + ai * y + aj * V + A * R; t[7] = ah * i + ai * Q + aj * m + A * B; t[8] = S * x + U * s + aa * H + r * p; t[9] = S * u + U * C + aa * T + r * v; t[10] = S * g + U * y + aa * V + r * R; t[11] = S * i + U * Q + aa * m + r * B; t[12] = W * x + h * s + n * H + f * p; t[13] = W * u + h * C + n * T + f * v; t[14] = W * g + h * y + n * V + f * R; t[15] = W * i + h * Q + n * m + f * B }; a.multiply = function(t) { var u = this.m, x = t.m; t = u[0]; var B = u[1], f = u[2], g = u[3], i = u[4], s = u[5], C = u[6], y = u[7], Q = u[8], H = u[9], T = u[10], V = u[11], m = u[12], p = u[13], v = u[14], R = u[15], X = x[0], Y = x[1], Z = x[2], ag = x[3], ah = x[4], ai = x[5], aj = x[6], A = x[7], S = x[8], U = x[9], aa = x[10], r = x[11], W = x[12], h = x[13], n = x[14], x = x[15]; u[0] = X * t + Y * i + Z * Q + ag * m; u[1] = X * B + Y * s + Z * H + ag * p; u[2] = X * f + Y * C + Z * T + ag * v; u[3] = X * g + Y * y + Z * V + ag * R; u[4] = ah * t + ai * i + aj * Q + A * m; u[5] = ah * B + ai * s + aj * H + A * p; u[6] = ah * f + ai * C + aj * T + A * v; u[7] = ah * g + ai * y + aj * V + A * R; u[8] = S * t + U * i + aa * Q + r * m; u[9] = S * B + U * s + aa * H + r * p; u[10] = S * f + U * C + aa * T + r * v; u[11] = S * g + U * y + aa * V + r * R; u[12] = W * t + h * i + n * Q + x * m; u[13] = W * B + h * s + n * H + x * p; u[14] = W * f + h * C + n * T + x * v; u[15] = W * g + h * y + n * V + x * R; return this }; e.OU = function() { var h = b.Fh.top.m, f = b.Dh.top.m, g = new Float32Array(16); g[0] = h[0] * f[0] + h[4] * f[1] + h[8] * f[2] + h[12] * f[3]; g[1] = h[1] * f[0] + h[5] * f[1] + h[9] * f[2] + h[13] * f[3]; g[2] = h[2] * f[0] + h[6] * f[1] + h[10] * f[2] + h[14] * f[3]; g[3] = h[3] * f[0] + h[7] * f[1] + h[11] * f[2] + h[15] * f[3]; g[4] = h[0] * f[4] + h[4] * f[5] + h[8] * f[6] + h[12] * f[7]; g[5] = h[1] * f[4] + h[5] * f[5] + h[9] * f[6] + h[13] * f[7]; g[6] = h[2] * f[4] + h[6] * f[5] + h[10] * f[6] + h[14] * f[7]; g[7] = h[3] * f[4] + h[7] * f[5] + h[11] * f[6] + h[15] * f[7]; g[8] = h[0] * f[8] + h[4] * f[9] + h[8] * f[10] + h[12] * f[11]; g[9] = h[1] * f[8] + h[5] * f[9] + h[9] * f[10] + h[13] * f[11]; g[10] = h[2] * f[8] + h[6] * f[9] + h[10] * f[10] + h[14] * f[11]; g[11] = h[3] * f[8] + h[7] * f[9] + h[11] * f[10] + h[15] * f[11]; g[12] = h[0] * f[12] + h[4] * f[13] + h[8] * f[14] + h[12] * f[15]; g[13] = h[1] * f[12] + h[5] * f[13] + h[9] * f[14] + h[13] * f[15]; g[14] = h[2] * f[12] + h[6] * f[13] + h[10] * f[14] + h[14] * f[15]; g[15] = h[3] * f[12] + h[7] * f[13] + h[11] * f[14] + h[15] * f[15]; return g }; e.B7 = function(i, f) { if (i === f) { return e.log("cc.kmMat4Assign(): pOut equals pIn"), i } var h = i.m, g = f.m; h[0] = g[0]; h[1] = g[1]; h[2] = g[2]; h[3] = g[3]; h[4] = g[4]; h[5] = g[5]; h[6] = g[6]; h[7] = g[7]; h[8] = g[8]; h[9] = g[9]; h[10] = g[10]; h[11] = g[11]; h[12] = g[12]; h[13] = g[13]; h[14] = g[14]; h[15] = g[15]; return i }; a.ud = function(g) { if (this === g) { return e.log("cc.mat.Matrix4.assignFrom(): mat4 equals current matrix"), this } var f = this.m; g = g.m; f[0] = g[0]; f[1] = g[1]; f[2] = g[2]; f[3] = g[3]; f[4] = g[4]; f[5] = g[5]; f[6] = g[6]; f[7] = g[7]; f[8] = g[8]; f[9] = g[9]; f[10] = g[10]; f[11] = g[11]; f[12] = g[12]; f[13] = g[13]; f[14] = g[14]; f[15] = g[15]; return this }; a.Uu = function(i) { if (this === i) { return e.log("cc.kmMat4AreEqual(): pMat1 and pMat2 are same object."), !0 } var f = this.m; i = i.m; for (var h = e.e.Kc, g = 0; 16 > g; g++) { if (!(f[g] + h > i[g] && f[g] - h < i[g])) { return !1 } } return !0 }; e.e.U.oT = function(g, h) { h = h || new e.e.U; var f = h.m; f[0] = 1; f[3] = f[2] = f[1] = 0; f[4] = 0; f[5] = Math.cos(g); f[6] = Math.sin(g); f[7] = 0; f[8] = 0; f[9] = -Math.sin(g); f[10] = Math.cos(g); f[11] = 0; f[14] = f[13] = f[12] = 0; f[15] = 1; return h }; e.e.U.pT = function(g, h) { h = h || new e.e.U; var f = h.m; f[0] = Math.cos(g); f[1] = 0; f[2] = -Math.sin(g); f[3] = 0; f[7] = f[6] = f[4] = 0; f[5] = 1; f[8] = Math.sin(g); f[9] = 0; f[10] = Math.cos(g); f[11] = 0; f[14] = f[13] = f[12] = 0; f[15] = 1; return h }; e.e.U.qT = function(g, h) { h = h || new e.e.U; var f = h.m; f[0] = Math.cos(g); f[1] = Math.sin(g); f[3] = f[2] = 0; f[4] = -Math.sin(g); f[5] = Math.cos(g); f[7] = f[6] = 0; f[11] = f[9] = f[8] = 0; f[10] = 1; f[14] = f[13] = f[12] = 0; f[15] = 1; return h }; e.e.U.E2 = function(i, m, p, r) { r = r || new e.e.U; var s = Math.cos(i); i = Math.sin(i); var h = Math.cos(m); m = Math.sin(m); var k = Math.cos(p); p = Math.sin(p); var n = i * m, g = s * m, f = r.m; f[0] = h * k; f[4] = h * p; f[8] = -m; f[1] = n * k - s * p; f[5] = n * p + s * k; f[9] = i * h; f[2] = g * k + i * p; f[6] = g * p - i * k; f[10] = s * h; f[3] = f[7] = f[11] = 0; f[15] = 1; return r }; e.e.U.nT = function(g, h) { h = h || new e.e.U; var f = h.m; f[0] = 1 - 2 * (g.y * g.y + g.z * g.z); f[1] = 2 * (g.x * g.y + g.z * g.M); f[2] = 2 * (g.x * g.z - g.y * g.M); f[3] = 0; f[4] = 2 * (g.x * g.y - g.z * g.M); f[5] = 1 - 2 * (g.x * g.x + g.z * g.z); f[6] = 2 * (g.z * g.y + g.x * g.M); f[7] = 0; f[8] = 2 * (g.x * g.z + g.y * g.M); f[9] = 2 * (g.y * g.z - g.x * g.M); f[10] = 1 - 2 * (g.x * g.x + g.y * g.y); f[11] = 0; f[14] = f[13] = f[12] = 0; f[15] = 1; return h }; e.e.U.G2 = function(i, f, h) { h = h || new e.e.U; var g = h.m; i = i.m; g[0] = i[0]; g[1] = i[1]; g[2] = i[2]; g[3] = 0; g[4] = i[3]; g[5] = i[4]; g[6] = i[5]; g[7] = 0; g[8] = i[6]; g[9] = i[7]; g[10] = i[8]; g[11] = 0; g[12] = f.x; g[13] = f.y; g[14] = f.z; g[15] = 1; return h }; e.e.U.zI = function(h, i, k, g) { g = g || new e.e.U; var f = g.m; f[0] = h; f[5] = i; f[10] = k; f[15] = 1; f[1] = f[2] = f[3] = f[4] = f[6] = f[7] = f[8] = f[9] = f[11] = f[12] = f[13] = f[14] = 0; return g }; e.I7 = function(h, i, f, g) { h.m[0] = h.m[5] = h.m[10] = h.m[15] = 1; h.m[1] = h.m[2] = h.m[3] = h.m[4] = h.m[6] = h.m[7] = h.m[8] = h.m[9] = h.m[11] = 0; h.m[12] = i; h.m[13] = f; h.m[14] = g; return h }; e.e.U.Wj = function(i, f, h, g) { g = g || new e.e.U; g.wd(); g.m[12] = i; g.m[13] = f; g.m[14] = h; return g }; a.k6 = function() { var f = this.m; return (new e.e.ta(f[4], f[5], f[6])).normalize() }; a.M5 = function() { var f = this.m; return (new e.e.ta(f[0], f[1], f[2])).normalize() }; a.d5 = function() { var f = this.m; return (new e.e.ta(f[8], f[9], f[10])).normalize() }; e.G7 = function(h, k, m, g, f) { var i = e.Ce(k / 2); k = f - g; var n = Math.sin(i); if (0 === k || 0 === n || 0 === m) { return null } i = Math.cos(i) / n; h.wd(); h.m[0] = i / m; h.m[5] = i; h.m[10] = -(f + g) / k; h.m[11] = -1; h.m[14] = -2 * g * f / k; h.m[15] = 0; return h }; e.e.U.rT = function(h, k) { var m = e.Ce(30), g = k - 0.1, f = Math.sin(m); if (0 === g || 0 === f || 0 === h) { return null } var m = Math.cos(m) / f, f = new e.e.U, i = f.m; f.wd(); i[0] = m / h; i[5] = m; i[10] = -(k + 0.1) / g; i[11] = -1; i[14] = -0.2 * k / g; i[15] = 0; return f }; e.F7 = function(f, h, m, n, g, i, p) { f.wd(); f.m[0] = 2 / (m - h); f.m[5] = 2 / (g - n); f.m[10] = -2 / (p - i); f.m[12] = -((m + h) / (m - h)); f.m[13] = -((g + n) / (g - n)); f.m[14] = -((p + i) / (p - i)); return f }; e.e.U.IA = function(f, k, m, i, g, h) { var n = new e.e.U, p = n.m; n.wd(); p[0] = 2 / (k - f); p[5] = 2 / (i - m); p[10] = -2 / (h - g); p[12] = -((k + f) / (k - f)); p[13] = -((i + m) / (i - m)); p[14] = -((h + g) / (h - g)); return n }; e.E7 = function(h, i, k, g) { k = new e.e.ta(k); var f = new e.e.ta(g); k.Wl(i); k.normalize(); f.normalize(); g = new e.e.ta(k); g.rh(f); g.normalize(); f = new e.e.ta(g); f.rh(k); g.normalize(); h.wd(); h.m[0] = g.x; h.m[4] = g.y; h.m[8] = g.z; h.m[1] = f.x; h.m[5] = f.y; h.m[9] = f.z; h.m[2] = -k.x; h.m[6] = -k.y; h.m[10] = -k.z; i = e.e.U.Wj(-i.x, -i.y, -i.z); h.multiply(i); return h }; var d = new e.e.U; a.JB = function(i, k, g) { k = new e.e.ta(k); var h = new e.e.ta(g); g = this.m; k.Wl(i); k.normalize(); h.normalize(); var f = new e.e.ta(k); f.rh(h); f.normalize(); h = new e.e.ta(f); h.rh(k); f.normalize(); this.wd(); g[0] = f.x; g[4] = f.y; g[8] = f.z; g[1] = h.x; g[5] = h.y; g[9] = h.z; g[2] = -k.x; g[6] = -k.y; g[10] = -k.z; d = e.e.U.Wj(-i.x, -i.y, -i.z, d); this.multiply(d) }; e.H7 = function(i, f, h) { var g = Math.cos(h); h = Math.sin(h); f = new e.e.ta(f); f.normalize(); i.m[0] = g + f.x * f.x * (1 - g); i.m[1] = f.z * h + f.y * f.x * (1 - g); i.m[2] = -f.y * h + f.z * f.x * (1 - g); i.m[3] = 0; i.m[4] = -f.z * h + f.x * f.y * (1 - g); i.m[5] = g + f.y * f.y * (1 - g); i.m[6] = f.x * h + f.z * f.y * (1 - g); i.m[7] = 0; i.m[8] = f.y * h + f.x * f.z * (1 - g); i.m[9] = -f.x * h + f.y * f.z * (1 - g); i.m[10] = g + f.z * f.z * (1 - g); i.m[11] = 0; i.m[12] = 0; i.m[13] = 0; i.m[14] = 0; i.m[15] = 1; return i }; e.e.U.mT = function(h, i, k) { k = k || new e.e.U; var g = this.m, f = Math.cos(i); i = Math.sin(i); h = new e.e.ta(h); h.normalize(); g[0] = f + h.x * h.x * (1 - f); g[1] = h.z * i + h.y * h.x * (1 - f); g[2] = -h.y * i + h.z * h.x * (1 - f); g[3] = 0; g[4] = -h.z * i + h.x * h.y * (1 - f); g[5] = f + h.y * h.y * (1 - f); g[6] = h.x * i + h.z * h.y * (1 - f); g[7] = 0; g[8] = h.y * i + h.x * h.z * (1 - f); g[9] = -h.x * i + h.y * h.z * (1 - f); g[10] = f + h.z * h.z * (1 - f); g[11] = 0; g[12] = g[13] = g[14] = 0; g[15] = 1; return k }; a.cU = function() { var g = new e.e.xc, h = this.m, f = g.m; f[0] = h[0]; f[1] = h[1]; f[2] = h[2]; f[3] = h[4]; f[4] = h[5]; f[5] = h[6]; f[6] = h[8]; f[7] = h[9]; f[8] = h[10]; return g }; a.R3 = function(g) { var h = new e.e.Jb, f = this.m; switch (g) { case e.e.Jb.ZM: h.a = f[3] - f[0]; h.b = f[7] - f[4]; h.c = f[11] - f[8]; h.R = f[15] - f[12]; break; case e.e.Jb.hM: h.a = f[3] + f[0]; h.b = f[7] + f[4]; h.c = f[11] + f[8]; h.R = f[15] + f[12]; break; case e.e.Jb.bL: h.a = f[3] + f[1]; h.b = f[7] + f[5]; h.c = f[11] + f[9]; h.R = f[15] + f[13]; break; case e.e.Jb.UN: h.a = f[3] - f[1]; h.b = f[7] - f[5]; h.c = f[11] - f[9]; h.R = f[15] - f[13]; break; case e.e.Jb.RL: h.a = f[3] - f[2]; h.b = f[7] - f[6]; h.c = f[11] - f[10]; h.R = f[15] - f[14]; break; case e.e.Jb.oM: h.a = f[3] + f[2]; h.b = f[7] + f[6]; h.c = f[11] + f[10]; h.R = f[15] + f[14]; break; default: e.log("cc.math.Matrix4.extractPlane: Invalid plane index") } g = Math.sqrt(h.a * h.a + h.b * h.b + h.c * h.c); h.a /= g; h.b /= g; h.c /= g; h.R /= g; return h }; a.pC = function() { var f = this.cU(); return e.e.eg.dK(f).pC() } })(b); (function(c) { c.e.Jb = function(g, d, e, f) { g && void 0 === d ? (this.a = g.a, this.b = g.b, this.c = g.c, this.R = g.R) : (this.a = g || 0, this.b = d || 0, this.c = e || 0, this.R = f || 0) }; c.J7 = c.e.Jb; var a = c.e.Jb.prototype; c.e.Jb.hM = 0; c.e.Jb.ZM = 1; c.e.Jb.bL = 2; c.e.Jb.UN = 3; c.e.Jb.oM = 4; c.e.Jb.RL = 5; c.e.Jb.NM = 0; c.e.Jb.MM = 1; c.e.Jb.OM = 2; a.Xj = function(d) { return this.a * d.x + this.b * d.y + this.c * d.z + this.R * d.M }; a.V2 = function(d) { return this.a * d.x + this.b * d.y + this.c * d.z + this.R }; a.W2 = function(d) { return this.a * d.x + this.b * d.y + this.c * d.z }; c.e.Jb.m4 = function(e, d) { return new c.e.Jb(d.x, d.y, d.z, -d.Xj(e)) }; c.e.Jb.n4 = function(e, f, g) { f = new c.e.ta(f); g = new c.e.ta(g); var d = new c.e.Jb; f.Wl(e); g.Wl(e); f.rh(g); f.normalize(); d.a = f.x; d.b = f.y; d.c = f.z; d.R = f.scale(-1).Xj(e); return d }; a.normalize = function() { var e = new c.e.ta(this.a, this.b, this.c), d = 1 / e.length(); e.normalize(); this.a = e.x; this.b = e.y; this.c = e.z; this.R *= d; return this }; a.v2 = function(d) { d = this.a * d.x + this.b * d.y + this.c * d.z + this.R; return 0.001 < d ? c.e.Jb.NM : -0.001 > d ? c.e.Jb.MM : c.e.Jb.OM } })(b); (function(c) { c.e.eg = function(g, d, e, f) { g && void 0 === d ? (this.x = g.x, this.y = g.y, this.z = g.z, this.M = g.M) : (this.x = g || 0, this.y = d || 0, this.z = e || 0, this.M = f || 0) }; c.K7 = c.e.eg; var a = c.e.eg.prototype; a.jT = function(d) { this.x = -d.x; this.y = -d.y; this.z = -d.z; this.M = d.M; return this }; a.Xj = function(d) { return this.M * d.M + this.x * d.x + this.y * d.y + this.z * d.z }; a.Q3 = function() { return this }; a.wd = function() { this.z = this.y = this.x = 0; this.M = 1; return this }; a.inverse = function() { var d = this.length(); if (Math.abs(d) > c.e.Kc) { return this.M = this.z = this.y = this.x = 0, this } this.jT(this).scale(1 / d); return this }; a.vJ = function() { return 0 === this.x && 0 === this.y && 0 === this.z && 1 === this.M }; a.length = function() { return Math.sqrt(this.ko()) }; a.ko = function() { return this.x * this.x + this.y * this.y + this.z * this.z + this.M * this.M }; a.multiply = function(g) { var h = this.x, d = this.y, e = this.z, f = this.M; this.M = f * g.M - h * g.x - d * g.y - e * g.z; this.x = f * g.x + h * g.M + d * g.z - e * g.y; this.y = f * g.y + d * g.M + e * g.x - h * g.z; this.z = f * g.z + e * g.M + h * g.y - d * g.x; return this }; a.normalize = function() { var d = this.length(); if (Math.abs(d) <= c.e.Kc) { throw "current quaternion is an invalid value" } this.scale(1 / d); return this }; a.cK = function(f) { var d = 0.5 * Math.PI, e = Math.sin(d); this.M = Math.cos(d); this.x = f.x * e; this.y = f.y * e; this.z = f.z * e }; c.e.eg.dK = function(d) { if (!d) { return null } var f, g, h; f = []; g = d.m; d = 0; f[0] = g[0]; f[1] = g[3]; f[2] = g[6]; f[4] = g[1]; f[5] = g[4]; f[6] = g[7]; f[8] = g[2]; f[9] = g[5]; f[10] = g[8]; f[15] = 1; var e = f[0]; d = e[0] + e[5] + e[10] + 1; d > c.e.Kc ? (d = 2 * Math.sqrt(d), f = (e[9] - e[6]) / d, g = (e[2] - e[8]) / d, h = (e[4] - e[1]) / d, d *= 0.25) : e[0] > e[5] && e[0] > e[10] ? (d = 2 * Math.sqrt(1 + e[0] - e[5] - e[10]), f = 0.25 * d, g = (e[4] + e[1]) / d, h = (e[2] + e[8]) / d, d = (e[9] - e[6]) / d) : e[5] > e[10] ? (d = 2 * Math.sqrt(1 + e[5] - e[0] - e[10]), f = (e[4] + e[1]) / d, g = 0.25 * d, h = (e[9] + e[6]) / d, d = (e[2] - e[8]) / d) : (d = 2 * Math.sqrt(1 + e[10] - e[0] - e[5]), f = (e[2] + e[8]) / d, g = (e[9] + e[6]) / d, h = 0.25 * d, d = (e[4] - e[1]) / d); return new c.e.eg(f, g, h, d) }; c.e.eg.k$ = function(k, m, n) { var p, d, e, f, g; p = c.Ce(m) / 2; d = c.Ce(k) / 2; e = c.Ce(n) / 2; n = Math.cos(p); k = Math.cos(d); m = Math.cos(e); p = Math.sin(p); d = Math.sin(d); e = Math.sin(e); f = k * m; g = d * e; var h = new c.e.eg; h.M = n * f + p * g; h.x = p * f - n * g; h.y = n * d * m + p * k * e; h.z = n * k * e - p * d * m; h.normalize(); return h }; a.iba = function(h, k) { if (this.x === h.x && this.y === h.y && this.z === h.z && this.M === h.M) { return this } var d = this.Xj(h), f = Math.acos(d), d = Math.sqrt(1 - c.e.nc(d)), g = Math.sin(k * f) / d, e = new c.e.eg(h); this.scale(Math.sin((1 - k) * f) / d); e.scale(g); this.add(e); return this }; a.pC = function() { var e, f, d = new c.e.ta; e = Math.acos(this.M); f = Math.sqrt(c.e.nc(this.x) + c.e.nc(this.y) + c.e.nc(this.z)); f > -c.e.Kc && f < c.e.Kc || f < 2 * Math.PI + c.e.Kc && f > 2 * Math.PI - c.e.Kc ? (e = 0, d.x = 0, d.y = 0, d.z = 1) : (e *= 2, d.x = this.x / f, d.y = this.y / f, d.z = this.z / f, d.normalize()); return { axis: d, c2: e } }; a.scale = function(d) { this.x *= d; this.y *= d; this.z *= d; this.M *= d; return this }; a.ud = function(d) { this.x = d.x; this.y = d.y; this.z = d.z; this.M = d.M; return this }; a.add = function(d) { this.x += d.x; this.y += d.y; this.z += d.z; this.M += d.M; return this }; c.e.eg.i$ = function(h, k, d) { var f = new c.e.ta(h), g = new c.e.ta(k); f.normalize(); g.normalize(); var e = f.Xj(g); k = new c.e.eg; if (1 <= e) { return k.wd(), k } - 0.999999 > e ? Math.abs(d.ko()) < c.e.Kc ? k.cK(d) : (f = new c.e.ta(1, 0, 0), f.rh(h), Math.abs(f.ko()) < c.e.Kc && (f.fill(0, 1, 0), f.rh(h)), f.normalize(), k.cK(f)) : (h = Math.sqrt(2 * (1 + e)), d = 1 / h, f.rh(g), k.x = f.x * d, k.y = f.y * d, k.z = f.z * d, k.M = 0.5 * h, k.normalize()); return k }; a.d8 = function(h) { var k = this.x, d = this.y, f = this.z, g = new c.e.ta(h), e = new c.e.ta(k, d, f), k = new c.e.ta(k, d, f); e.rh(h); k.rh(e); e.scale(2 * q.M); k.scale(2); g.add(e); g.add(k); return g } })(b); b.e.Nr = function(c, a) { this.min = c || new b.e.ta; this.max = a || new b.e.ta }; b.e.Nr.prototype.kT = function(a) { return a.x >= this.min.x && a.x <= this.max.x && a.y >= this.min.y && a.y <= this.max.y && a.z >= this.min.z && a.z <= this.max.z }; b.e.Nr.kT = function(c, a) { return c.x >= a.min.x && c.x <= a.max.x && c.y >= a.min.y && c.y <= a.max.y && c.z >= a.min.z && c.z <= a.max.z }; b.e.Nr.prototype.ud = function(a) { this.min.ud(a.min); this.max.ud(a.max) }; b.e.Nr.assign = function(c, a) { c.min.ud(a.min); c.max.ud(a.max); return c }; (function(c) { c.e.cp = function(e, d) { this.top = e; this.stack = d || [] }; c.N7 = c.e.cp; var a = c.e.cp.prototype; a.$q = function() { this.stack.length = 0; this.top = null }; c.P7 = function(e, d) { e.stack.push(e.top); e.top = new c.e.U(d) }; c.O7 = function(d) { d.top = d.stack.pop() }; c.Q7 = function(d) { d.stack = null; d.top = null }; a.push = function(d) { d = d || this.top; this.stack.push(this.top); this.top = new c.e.U(d) }; a.pop = function() { this.top = this.stack.pop() }; a.uc = function() { this.jG = this.top = this.stack = null }; a.Z0 = function(e) { var d = this.jG; if (0 === d.length) { return new c.e.U(e) } d = d.pop(); d.ud(e); return d }; a.l1 = function(d) { this.jG.push(d) } })(b); (function(d) { d.Mg = 5888; d.Ng = 5889; d.PC = 5890; d.Dh = new d.e.cp; d.Fh = new d.e.cp; d.yo = new d.e.cp; d.vb = null; d.fW = function() { var e = new d.e.U; d.Dh.$q(); d.Fh.$q(); d.yo.$q(); d.vb = d.Dh; d.LV = !0; e.wd(); d.Dh.push(e); d.Fh.push(e); d.yo.push(e) }; d.fW(); d.eW = function() { d.Dh.uc(); d.Dh = null; d.Fh.uc(); d.Fh = null; d.yo.uc(); d.yo = null; d.LV = !1; d.vb = null }; d.rv = function() { d.vb.push(d.vb.top) }; d.v7 = function(e) { d.vb.stack.push(d.vb.top); e.ud(d.vb.top); d.vb.top = e }; d.qv = function() { d.vb.top = d.vb.stack.pop() }; d.Gg = function(e) { switch (e) { case d.Mg: d.vb = d.Dh; break; case d.Ng: d.vb = d.Fh; break; case d.PC: d.vb = d.yo; break; default: throw "Invalid matrix mode specified" } }; d.io = function() { d.vb.top.wd() }; d.u7 = function(e) { d.vb.top.ud(e) }; d.jo = function(e) { d.vb.top.multiply(e) }; var a = new d.e.U; d.y7 = function(f, g, e) { f = d.e.U.Wj(f, g, e, a); d.vb.top.multiply(f) }; var c = new d.e.ta; d.w7 = function(f, g, h, e) { c.fill(g, h, e); f = d.e.U.mT(c, d.Ce(f), a); d.vb.top.multiply(f) }; d.x7 = function(f, g, e) { f = d.e.U.zI(f, g, e, a); d.vb.top.multiply(f) }; d.dr = function(f, e) { switch (f) { case d.Mg: e.ud(d.Dh.top); break; case d.Ng: e.ud(d.Fh.top); break; case d.PC: e.ud(d.yo.top); break; default: throw "Invalid matrix mode specified" } } })(b); b.nN = "precision lowp float;\nvarying vec4 v_fragmentColor;\nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor; \n}\n"; b.oN = "attribute vec4 a_position;\nuniform vec4 u_color;\nuniform float u_pointSize;\nvarying lowp vec4 v_fragmentColor; \nvoid main(void) \n{\n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n gl_PointSize \x3d u_pointSize; \n v_fragmentColor \x3d u_color; \n}"; b.bN = "precision lowp float; \nvarying vec4 v_fragmentColor; \nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor; \n} "; b.eN = "attribute vec4 a_position;\nattribute vec4 a_color;\nvarying lowp vec4 v_fragmentColor;\nvoid main()\n{\n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_fragmentColor \x3d a_color; \n}"; b.cN = "// #extension GL_OES_standard_derivatives : enable\nvarying mediump vec4 v_color;\nvarying mediump vec2 v_texcoord;\nvoid main()\t\n{ \n// #if defined GL_OES_standard_derivatives\t\n// gl_FragColor \x3d v_color*smoothstep(0.0, length(fwidth(v_texcoord)), 1.0 - length(v_texcoord)); \n// #else\t\ngl_FragColor \x3d v_color * step(0.0, 1.0 - length(v_texcoord)); \n// #endif \n}"; b.dN = "attribute mediump vec4 a_position; \nattribute mediump vec2 a_texcoord; \nattribute mediump vec4 a_color;\t\nvarying mediump vec4 v_color; \nvarying mediump vec2 v_texcoord;\t\nvoid main() \n{ \n v_color \x3d a_color;//vec4(a_color.rgb * a_color.a, a_color.a); \n v_texcoord \x3d a_texcoord; \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n}"; b.jN = "precision lowp float; \nvarying vec2 v_texCoord; \nvoid main() \n{ \n gl_FragColor \x3d texture2D(CC_Texture0, v_texCoord); \n}"; b.mN = "attribute vec4 a_position; \nattribute vec2 a_texCoord; \nvarying mediump vec2 v_texCoord; \nvoid main() \n{ \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_texCoord \x3d a_texCoord; \n}"; b.kN = "precision lowp float; \nuniform vec4 u_color; \nvarying vec2 v_texCoord; \nvoid main() \n{ \n gl_FragColor \x3d texture2D(CC_Texture0, v_texCoord) * u_color; \n}"; b.lN = "attribute vec4 a_position;\nattribute vec2 a_texCoord; \nvarying mediump vec2 v_texCoord; \nvoid main() \n{ \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_texCoord \x3d a_texCoord; \n}"; b.fN = "precision lowp float; \nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nvoid main() \n{ \n gl_FragColor \x3d vec4( v_fragmentColor.rgb, \n v_fragmentColor.a * texture2D(CC_Texture0, v_texCoord).a \n ); \n}"; b.gN = "attribute vec4 a_position; \nattribute vec2 a_texCoord; \nattribute vec4 a_color; \nvarying lowp vec4 v_fragmentColor; \nvarying mediump vec2 v_texCoord; \nvoid main() \n{ \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_fragmentColor \x3d a_color; \n v_texCoord \x3d a_texCoord; \n}"; b.iN = "precision lowp float;\nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor * texture2D(CC_Texture0, v_texCoord); \n}"; b.hD = "attribute vec4 a_position; \nattribute vec2 a_texCoord; \nattribute vec4 a_color; \nvarying lowp vec4 v_fragmentColor; \nvarying mediump vec2 v_texCoord; \nvoid main() \n{ \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_fragmentColor \x3d a_color; \n v_texCoord \x3d a_texCoord; \n}"; b.hN = "precision lowp float; \nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nuniform float CC_alpha_value; \nvoid main() \n{ \n vec4 texColor \x3d texture2D(CC_Texture0, v_texCoord); \n if ( texColor.a \x3c\x3d CC_alpha_value ) \n discard; \n gl_FragColor \x3d texColor * v_fragmentColor; \n}"; b.f0 = "precision lowp float; \nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nuniform sampler2D u_texture; \nuniform sampler2D u_mask; \nvoid main() \n{ \n vec4 texColor \x3d texture2D(u_texture, v_texCoord); \n vec4 maskColor \x3d texture2D(u_mask, v_texCoord); \n vec4 finalColor \x3d vec4(texColor.r, texColor.g, texColor.b, maskColor.a * texColor.a); \n gl_FragColor \x3d v_fragmentColor * finalColor; \n}"; b.Ge = { ax: 0, bx: 1, Zw: 2, $w: 3, dx: 4, cx: 5, ex: 6, pD: 7, u0: 8, Oc: {}, $h: function() { this.jW(); return !0 }, Yd: function(c, a) { switch (a) { case this.ax: c.xh(b.hD, b.iN); c.Uc(b.pk, b.ab); c.Uc(b.Do, b.ne); c.Uc(b.$l, b.Ed); break; case this.bx: c.xh(b.hD, b.hN); c.Uc(b.pk, b.ab); c.Uc(b.Do, b.ne); c.Uc(b.$l, b.Ed); break; case this.Zw: c.xh(b.eN, b.bN); c.Uc(b.pk, b.ab); c.Uc(b.Do, b.ne); break; case this.$w: c.xh(b.mN, b.jN); c.Uc(b.pk, b.ab); c.Uc(b.$l, b.Ed); break; case this.dx: c.xh(b.lN, b.kN); c.Uc(b.pk, b.ab); c.Uc(b.$l, b.Ed); break; case this.cx: c.xh(b.gN, b.fN); c.Uc(b.pk, b.ab); c.Uc(b.Do, b.ne); c.Uc(b.$l, b.Ed); break; case this.ex: c.xh(b.oN, b.nN); c.Uc("aVertex", b.ab); break; case this.pD: c.xh(b.dN, b.cN); c.Uc(b.pk, b.ab); c.Uc(b.$l, b.Ed); c.Uc(b.Do, b.ne); break; default: b.log("cocos2d: cc.shaderCache._loadDefaultShader, error shader type"); return } c.link(); c.XY() }, jW: function() { var a = new b.Cd; this.Yd(a, this.ax); this.Oc[b.Ak] = a; this.Oc.ShaderPositionTextureColor = a; a = new b.Cd; this.Yd(a, this.bx); this.Oc[b.gD] = a; this.Oc.ShaderPositionTextureColorAlphaTest = a; a = new b.Cd; this.Yd(a, this.Zw); this.Oc[b.zs] = a; this.Oc.ShaderPositionColor = a; a = new b.Cd; this.Yd(a, this.$w); this.Oc[b.kp] = a; this.Oc.ShaderPositionTexture = a; a = new b.Cd; this.Yd(a, this.dx); this.Oc[b.Vw] = a; this.Oc.ShaderPositionTextureUColor = a; a = new b.Cd; this.Yd(a, this.cx); this.Oc[b.Uw] = a; this.Oc.ShaderPositionTextureA8Color = a; a = new b.Cd; this.Yd(a, this.ex); this.Oc[b.Ww] = a; this.Oc.ShaderPositionUColor = a; a = new b.Cd; this.Yd(a, this.pD); this.Oc[b.fD] = a; this.Oc.ShaderPositionLengthTextureColor = a }, F9: function() { var a = this.Hc(b.Ak); a.reset(); this.Yd(a, this.ax); a = this.Hc(b.gD); a.reset(); this.Yd(a, this.bx); a = this.Hc(b.zs); a.reset(); this.Yd(a, this.Zw); a = this.Hc(b.kp); a.reset(); this.Yd(a, this.$w); a = this.Hc(b.Vw); a.reset(); this.Yd(a, this.dx); a = this.Hc(b.Uw); a.reset(); this.Yd(a, this.cx); a = this.Hc(b.Ww); a.reset(); this.Yd(a, this.ex) }, Hc: function(a) { return this.Oc[a] }, Zu: function(a) { return this.Oc[a] }, M1: function(c, a) { this.Oc[a] = c } }; b.ZL = function() { this.location = this.value = void 0; this.hv = {} }; b.Cd = b.Ia.extend({ da: null, ob: null, Ae: null, Bf: null, Ba: null, ng: null, hA: !1, be: function(f, a) { if (null == f) { return !1 } for (var c = !0, d = null, e = 0; e < this.ng.length; e++) { this.ng[e].location == f && (d = this.ng[e]) } d ? d.value == a ? c = !1 : d.value = a : (d = new b.ZL, d.location = f, d.value = a, this.ng.push(d)); return c }, S0: function() { return "\x3cCCGLProgram \x3d " + this.toString() + " | Program \x3d " + this.ob.toString() + ", VertexShader \x3d " + this.Ae.toString() + ", FragmentShader \x3d " + this.Bf.toString() + "\x3e" }, sE: function(d, a, c) { if (!c || !d) { return !1 } c = (b.Cd.xQ() ? "precision highp float;\n" : "precision mediump float;\n") + "uniform mat4 CC_PMatrix; \nuniform mat4 CC_MVMatrix; \nuniform mat4 CC_MVPMatrix; \nuniform vec4 CC_Time; \nuniform vec4 CC_SinTime; \nuniform vec4 CC_CosTime; \nuniform vec4 CC_Random01; \nuniform sampler2D CC_Texture0; \n//CC INCLUDES END \n" + c; this.da.shaderSource(d, c); this.da.compileShader(d); c = this.da.getShaderParameter(d, this.da.COMPILE_STATUS); c || (b.log("cocos2d: ERROR: Failed to compile shader:\n" + this.da.getShaderSource(d)), a === this.da.VERTEX_SHADER ? b.log("cocos2d: \n" + this.ZY()) : b.log("cocos2d: \n" + this.hU())); return !0 === c }, ctor: function(d, a, c) { this.Ba = []; this.ng = []; this.da = c || b.s; d && a && this.oa(d, a) }, P2: function() { this.ng = this.Ba = this.Bf = this.Ae = null; this.da.deleteProgram(this.ob) }, xh: function(d, a) { var c = this.da; this.ob = c.createProgram(); this.Bf = this.Ae = null; d && (this.Ae = c.createShader(c.VERTEX_SHADER), this.sE(this.Ae, c.VERTEX_SHADER, d) || b.log("cocos2d: ERROR: Failed to compile vertex shader")); a && (this.Bf = c.createShader(c.FRAGMENT_SHADER), this.sE(this.Bf, c.FRAGMENT_SHADER, a) || b.log("cocos2d: ERROR: Failed to compile fragment shader")); this.Ae && c.attachShader(this.ob, this.Ae); b.Pn(); this.Bf && c.attachShader(this.ob, this.Bf); this.ng.length = 0; b.Pn(); return !0 }, Qd: function(c, a) { return this.xh(c, a) }, KV: function(e, a) { var c = b.S.De(e); if (!c) { throw "Please load the resource firset : " + e } var d = b.S.De(a); if (!d) { throw "Please load the resource firset : " + a } return this.xh(c, d) }, oa: function(c, a) { return this.KV(c, a) }, Uc: function(c, a) { this.da.bindAttribLocation(this.ob, a, c) }, link: function() { if (!this.ob) { return b.log("cc.GLProgram.link(): Cannot link invalid program"), !1 } this.da.linkProgram(this.ob); this.Ae && this.da.deleteShader(this.Ae); this.Bf && this.da.deleteShader(this.Bf); this.Bf = this.Ae = null; return b.Ma.ld[b.Ma.rf.Oq] && !this.da.getProgramParameter(this.ob, this.da.LINK_STATUS) ? (b.log("cocos2d: ERROR: Failed to link program: " + this.da.getProgramInfoLog(this.ob)), b.tV(this.ob), this.ob = null, !1) : !0 }, Ub: function() { b.dJ(this.ob) }, XY: function() { this.Ba[b.mp] = this.da.getUniformLocation(this.ob, b.FO); this.Ba[b.lp] = this.da.getUniformLocation(this.ob, b.DO); this.Ba[b.om] = this.da.getUniformLocation(this.ob, b.EO); this.Ba[b.Ns] = this.da.getUniformLocation(this.ob, b.JO); this.Ba[b.Ms] = this.da.getUniformLocation(this.ob, b.IO); this.Ba[b.Ls] = this.da.getUniformLocation(this.ob, b.CO); this.hA = null != this.Ba[b.Ns] || null != this.Ba[b.Ms] || null != this.Ba[b.Ls]; this.Ba[b.np] = this.da.getUniformLocation(this.ob, b.GO); this.Ba[b.jx] = this.da.getUniformLocation(this.ob, b.HO); this.Ub(); this.CK(this.Ba[b.jx], 0) }, h6: function(a) { if (!a) { throw "cc.GLProgram.getUniformLocationForName(): uniform name should be non-null" } if (!this.ob) { throw "cc.GLProgram.getUniformLocationForName(): Invalid operation. Cannot get uniform location when program is not initialized" } return this.da.getUniformLocation(this.ob, a) }, i6: function() { return this.Ba[b.om] }, j6: function() { return this.Ba[b.jx] }, CK: function(c, a) { this.be(c, a) && this.da.uniform1i(c, a) }, Raa: function(d, a, c) { this.be(d, [a, c]) && this.da.uniform2i(d, a, c) }, Uaa: function(e, a, c, d) { this.be(e, [a, c, d]) && this.da.uniform3i(e, a, c, d) }, Xaa: function(f, a, c, d, e) { this.be(f, [a, c, d, e]) && this.da.uniform4i(f, a, c, d, e) }, Saa: function(c, a) { this.be(c, a) && this.da.uniform2iv(c, a) }, Vaa: function(c, a) { this.be(c, a) && this.da.uniform3iv(c, a) }, Yaa: function(c, a) { this.be(c, a) && this.da.uniform4iv(c, a) }, Paa: function(c, a) { this.CK(c, a) }, iC: function(c, a) { this.be(c, a) && this.da.uniform1f(c, a) }, $X: function(d, a, c) { this.be(d, [a, c]) && this.da.uniform2f(d, a, c) }, aY: function(e, a, c, d) { this.be(e, [a, c, d]) && this.da.uniform3f(e, a, c, d) }, Qi: function(f, a, c, d, e) { this.be(f, [a, c, d, e]) && this.da.uniform4f(f, a, c, d, e) }, Qaa: function(c, a) { this.be(c, a) && this.da.uniform2fv(c, a) }, Taa: function(c, a) { this.be(c, a) && this.da.uniform3fv(c, a) }, Waa: function(c, a) { this.be(c, a) && this.da.uniform4fv(c, a) }, uo: function(c, a) { this.be(c, a) && this.da.uniformMatrix4fv(c, !1, a) }, Oaa: function() { if (!(2 > arguments.length)) { switch (arguments.length) { case 2: this.iC(arguments[0], arguments[1]); break; case 3: this.$X(arguments[0], arguments[1], arguments[2]); break; case 4: this.aY(arguments[0], arguments[1], arguments[2], arguments[3]); break; case 5: this.Qi(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4]) } } }, DK: function() { var d = new b.e.U, a = new b.e.U, c = new b.e.U; b.dr(b.Ng, d); b.dr(b.Mg, a); b.sv(c, d, a); this.uo(this.Ba[b.mp], d.m, 1); this.uo(this.Ba[b.lp], a.m, 1); this.uo(this.Ba[b.om], c.m, 1); this.hA && (d = b.I, d = d.wq * d.tm, this.Qi(this.Ba[b.Ns], d / 10, d, 2 * d, 4 * d), this.Qi(this.Ba[b.Ms], d / 8, d / 4, d / 2, Math.sin(d)), this.Qi(this.Ba[b.Ls], d / 8, d / 4, d / 2, Math.cos(d))); - 1 !== this.Ba[b.np] && this.Qi(this.Ba[b.np], Math.random(), Math.random(), Math.random(), Math.random()) }, w1: function(d) { if (d && d.i) { var a = new b.e.U, c = new b.e.U; b.dr(b.Ng, a); b.sv(c, a, d.i.Rc); this.uo(this.Ba[b.mp], a.m, 1); this.uo(this.Ba[b.lp], d.i.Rc.m, 1); this.uo(this.Ba[b.om], c.m, 1); this.hA && (d = b.I, d = d.wq * d.tm, this.Qi(this.Ba[b.Ns], d / 10, d, 2 * d, 4 * d), this.Qi(this.Ba[b.Ms], d / 8, d / 4, d / 2, Math.sin(d)), this.Qi(this.Ba[b.Ls], d / 8, d / 4, d / 2, Math.cos(d))); - 1 !== this.Ba[b.np] && this.Qi(this.Ba[b.np], Math.random(), Math.random(), Math.random(), Math.random()) } }, Maa: function() { this.da.uniformMatrix4fv(this.Ba[b.om], !1, b.OU()) }, Naa: function(a) { b.sv(a, b.Fh.top, b.Dh.top); this.da.uniformMatrix4fv(this.Ba[b.om], !1, a.m) }, Ih: function() { this.da.uniformMatrix4fv(this.Ba[b.lp], !1, b.Dh.top.m); this.da.uniformMatrix4fv(this.Ba[b.mp], !1, b.Fh.top.m) }, wg: function(a) { if (!a) { throw "modelView matrix is undefined." } this.da.uniformMatrix4fv(this.Ba[b.lp], !1, a.m); this.da.uniformMatrix4fv(this.Ba[b.mp], !1, b.Fh.top.m) }, ZY: function() { return this.da.getShaderInfoLog(this.Ae) }, p6: function() { return this.da.getShaderInfoLog(this.Ae) }, e5: function() { return this.da.getShaderInfoLog(this.Ae) }, hU: function() { return this.da.getShaderInfoLog(this.Bf) }, n9: function() { return this.da.getProgramInfoLog(this.ob) }, G5: function() { return this.da.getProgramInfoLog(this.ob) }, reset: function() { this.Bf = this.Ae = null; this.Ba.length = 0; this.da.deleteProgram(this.ob); this.ob = null; for (var a = 0; a < this.ng.length; a++) { this.ng[a].value = null, this.ng[a] = null } this.ng.length = 0 }, Zu: function() { return this.ob }, Kv: function() {}, uc: function() {} }); b.Cd.create = function(c, a) { return new b.Cd(c, a) }; b.Cd.zy = null; b.Cd.xQ = function() { if (null == b.Cd.zy) { var a = b.s; b.Cd.zy = 0 !== a.getShaderPrecisionFormat(a.FRAGMENT_SHADER, a.HIGH_FLOAT).precision } return b.Cd.zy }; b.MX = function(e, a) { e.shaderProgram = a; var c = e.children; if (c) { for (var d = 0; d < c.length; d++) { b.MX(c[d], a) } } }; b.zE = -1; b.kA = !1; b.jA = !1; b.lA = !1; b.cg && (b.mM = 16, b.Gp = -1, b.Fp = [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], b.Am = -1, b.zm = -1, b.TO = 0, b.lD && (b.BH = 0)); b.z6 = function() { b.eW(); b.zE = -1; b.kA = !1; b.jA = !1; b.lA = !1; if (b.cg) { b.Gp = -1; for (var a = 0; a < b.mM; a++) { b.Fp[a] = -1 } b.Am = -1; b.zm = -1; b.TO = 0 } }; b.dJ = function(a) { a !== b.Gp && (b.Gp = a, b.s.useProgram(a)) }; b.cg || (b.dJ = function(a) { b.s.useProgram(a) }); b.tV = function(a) { b.cg && a === b.Gp && (b.Gp = -1); gl.deleteProgram(a) }; b.Vf = function(c, a) { if (c !== b.Am || a !== b.zm) { b.Am = c, b.zm = a, b.Nv(c, a) } }; b.Nv = function(d, a) { var c = b.s; d === c.ONE && a === c.ZERO ? c.disable(c.BLEND) : (c.enable(c.BLEND), b.s.blendFunc(d, a)) }; b.v6 = function(d, a) { if (d !== b.Am || a !== b.zm) { b.Am = d; b.zm = a; var c = b.s; d === c.ONE && a === c.ZERO ? c.disable(c.BLEND) : (c.enable(c.BLEND), c.blendFuncSeparate(c.SRC_ALPHA, a, d, a)) } }; b.cg || (b.Vf = b.Nv); b.w6 = function() { var a = b.s; a.blendEquation(a.FUNC_ADD); b.cg ? b.Nv(b.Am, b.zm) : b.Nv(a.qf, a.pf) }; b.wK = function() { b.zE = -1 }; b.tc = function(d) { var a = b.s, c = d & b.ad; c !== b.kA && (c ? a.enableVertexAttribArray(b.ab) : a.disableVertexAttribArray(b.ab), b.kA = c); c = d & b.op; c !== b.jA && (c ? a.enableVertexAttribArray(b.ne) : a.disableVertexAttribArray(b.ne), b.jA = c); d &= b.pm; d !== b.lA && (d ? a.enableVertexAttribArray(b.Ed) : a.disableVertexAttribArray(b.Ed), b.lA = d) }; b.Ee = function(a) { b.sB(0, a) }; b.sB = function(d, a) { if (b.Fp[d] !== a) { b.Fp[d] = a; var c = b.s; c.activeTexture(c.TEXTURE0 + d); a ? c.bindTexture(c.TEXTURE_2D, a.Ze) : c.bindTexture(c.TEXTURE_2D, null) } }; b.cg || (b.sB = function(d, a) { var c = b.s; c.activeTexture(c.TEXTURE0 + d); a ? c.bindTexture(c.TEXTURE_2D, a.Ze) : c.bindTexture(c.TEXTURE_2D, null) }); b.x6 = function(a) { b.uV(a) }; b.uV = function(a) { b.cg && a === b.Fp[0] && (b.Fp[0] = -1); b.s.deleteTexture(a) }; b.u6 = function(a) { b.lD && b.cg && b.BH !== a && (b.BH = a) }; b.y6 = function() {}; b.Zc = b.Jc.extend({ Pb: null, Ly: null, T: !1, gc: "LabelAtlas", ctor: function(f, a, c, d, e) { b.Jc.prototype.ctor.call(this); this.i.lK(); a && b.Zc.prototype.Qd.call(this, f, a, c, d, e) }, Fd: function() { return b.ua === b.Lb ? new b.Zc.F(this) : new b.Zc.A(this) }, Cr: function() { return this.T }, Gq: function(c, a) { this.addEventListener("load", c, a) }, Qd: function(h, k, m, a, c) { var d = h + "", e, f; if (void 0 === m) { m = b.S.De(k); if (1 !== parseInt(m.version, 10)) { return b.log("cc.LabelAtlas.initWithString(): Unsupported version. Upgrade cocos2d version"), !1 } k = b.path.Pu(k, m.textureFilename); a = b.jb(); e = parseInt(m.itemWidth, 10) / a; f = parseInt(m.itemHeight, 10) / a; m = String.fromCharCode(parseInt(m.firstChar, 10)) } else { e = m || 0, f = a || 0, m = c || " " } var g = null, g = k instanceof b.ca ? k : b.Ra.lc(k); this.T = k = g.T; k || (this.Pb = d, g.addEventListener("load", function() { this.Pa(g, e, f, d.length); this.string = this.Pb; this.xb(this.i.mb); this.dispatchEvent("load") }, this)); return this.Pa(g, e, f, d.length) ? (this.Ly = m, this.string = d, !0) : !1 }, xb: function(a) { b.Jc.prototype.xb.call(this, a); this.i.Bo() }, Fl: function() { return this.Pb }, B: function(d, a, c) { this.i.fE(d); b.f.prototype.B.call(this, d, a, c) }, Bo: function() { this.i.Bo() }, zd: function(c) { c = String(c); var a = c.length; this.Pb = c; this.he(a * this.bi, this.dh); this.i.zd(c); this.i.Bo(); this.quadsToDraw = a } }); var pa = b.Zc.prototype; b.l(pa, "opacity", pa.sh, pa.yd); b.l(pa, "color", pa.Uf, pa.xb); b.l(pa, "string", pa.Fl, pa.zd); b.Zc.create = function(f, a, c, d, e) { return new b.Zc(f, a, c, d, e) }; (function() { b.Zc.A = function(c) { b.Jc.A.call(this, c); this.Db = !1 }; var a = b.Zc.A.prototype = Object.create(b.Jc.A.prototype); a.constructor = b.Zc.A; a.lK = function() { var c = this.p; c.fc = !0; c.ec = !1 }; a.Bo = function() { for (var g = this.p, h = g.Pb || "", k = h.length, m = this.P, n = g.bi, p = g.dh, c = 0; c < k; c++) { var d = h.charCodeAt(c) - g.Ly.charCodeAt(0), d = b.rect(parseInt(d % g.en, 10) * n, parseInt(d / g.en, 10) * p, n, p), e = h.charCodeAt(c), f = g.Ci(c); f ? 32 === e ? (f.oa(), f.wc(b.rect(0, 0, 10, 10), !1, b.size(0, 0))) : (f.Pa(m, d), f.visible = !0) : (f = new b.o, 32 === e ? (f.oa(), f.wc(b.rect(0, 0, 10, 10), !1, b.size(0, 0))) : f.Pa(m, d), b.f.prototype.B.call(g, f, 0, c)); f.G(c * n + n / 2, p / 2) } }; a.zd = function() { var f = this.p; if (f.K) { for (var f = f.K, c = f.length, d = 0; d < c; d++) { var e = f[d]; e && !e.DQ && (e.visible = !1) } } }; a.fE = function() { child.DQ = !0 } })(); (function() { b.Zc.F = function(c) { b.Jc.F.call(this, c); this.Db = !0 }; var a = b.Zc.F.prototype = Object.create(b.Jc.F.prototype); a.constructor = b.Zc.F; a.lK = function() { var c = this.p; c.fc = !0; c.ec = !0 }; a.wb = function(c) { b.Jc.F.prototype.wb.call(this, c); b.eM && (c = this.p.eb(), c = [b.d(0, 0), b.d(c.width, 0), b.d(c.width, c.height), b.d(0, c.height)], b.Nk.Tf(c, 4, !0)) }; a.Bo = function() { var v = this.p, x = v.Pb, y = x.length, A = this.cb, B = A.texture, C = B.pixelsWidth, B = B.pixelsHeight, c = v.bi, d = v.dh; v.Dt || (c = v.bi * b.jb(), d = v.dh * b.jb()); y > A.Vd && b.log("cc.LabelAtlas._updateAtlasValues(): Invalid String length"); for (var e = A.quads, f = this.mb, f = { r: f.r, g: f.g, b: f.b, a: v.pc }, k = v.bi, p = 0; p < y; p++) { var n = x.charCodeAt(p) - v.Ly.charCodeAt(0), s = n % v.en, r = 0 | n / v.en, t; b.uw ? (s = (2 * s * c + 1) / (2 * C), n = s + (2 * c - 2) / (2 * C), r = (2 * r * d + 1) / (2 * B), t = r + (2 * d - 2) / (2 * B)) : (s = s * c / C, n = s + c / C, r = r * d / B, t = r + d / B); var u = e[p], g = u.tl, h = u.tr, m = u.bl, u = u.br; g.texCoords.u = s; g.texCoords.v = r; h.texCoords.u = n; h.texCoords.v = r; m.texCoords.u = s; m.texCoords.v = t; u.texCoords.u = n; u.texCoords.v = t; m.vertices.x = p * k; m.vertices.y = 0; m.vertices.z = 0; u.vertices.x = p * k + k; u.vertices.y = 0; u.vertices.z = 0; g.vertices.x = p * k; g.vertices.y = v.dh; g.vertices.z = 0; h.vertices.x = p * k + k; h.vertices.y = v.dh; h.vertices.z = 0; g.colors = f; h.colors = f; m.colors = f; u.colors = f } 0 < y && (A.dirty = !0, v = A.totalQuads, y > v && A.zV(y - v)) }; a.zd = function(c) { c = c.length; c > this.cb.totalQuads && this.cb.$J(c) }; a.fE = function() {} })(); b.r_ = -1; b.Sd = b.Sa.extend({ hc: !1, Pb: "", Ne: null, wt: "", cn: "", yp: b.mm, Cq: -1, Mt: !1, Et: null, QG: null, T: !1, gc: "LabelBMFont", Fd: function() { return b.ua === b.Lb ? new b.Sd.F(this) : new b.Sd.A(this) }, dH: function(f, a) { a ? this.cn = f : this.Pb = f; var c = this.K; if (c) { for (var d = 0; d < c.length; d++) { var e = c[d]; e && e.Yv(!1) } } this.T && (this.Su(), a && this.ag()) }, ctor: function(f, a, c, d, e) { b.Sa.prototype.ctor.call(this); this.Et = b.d(0, 0); this.QG = []; this.fc = this.ec = !0; this.Qd(f, a, c, d, e) }, Cr: function() { return this.T }, Gq: function(c, a) { this.addEventListener("load", c, a) }, zh: function() { return this.hc }, Pi: function(d) { this.hc = d; if (d = this.K) { for (var a = 0; a < d.length; a++) { var c = d[a]; c && (c.opacityModifyRGB = this.hc) } } }, Fm: function() { this.i.Fm() }, oa: function() { return this.Qd(null, null, null, null, null) }, Qd: function(f, g, a, c, d) { f = f || ""; this.Ne && b.log("cc.LabelBMFont.initWithString(): re-init is no longer supported"); if (g) { var e = b.S.De(g); if (!e) { return b.log("cc.LabelBMFont.initWithString(): Impossible to create font. Please check file"), !1 } this.Ne = e; this.wt = g; g = b.Ra.lc(e.cI); (this.T = e = g.T) || g.addEventListener("load", function(h) { this.T = !0; this.Pa(h, this.cn.length); this.zd(this.cn, !0); this.dispatchEvent("load") }, this) } else { g = new b.ca, e = new Image, g.mc(e), this.T = !1 } return this.Pa(g, f.length) ? (this.yp = c || b.Es, this.Et = d || b.d(0, 0), this.Cq = null == a ? -1 : a, this.mi = 255, this.Ff = b.color(255, 255, 255, 255), this.Q.width = 0, this.Q.height = 0, this.Xa(0.5, 0.5), this.i.LF(), this.zd(f, !0), !0) : !1 }, Su: function() { var m = this.i.P || this.textureAtlas.texture, r = 0, t = b.size(0, 0), u = 0, x = 1, a = this.Pb, d = a ? a.length : 0; if (0 !== d) { var g, v = this.Ne, f = v.cW, p = v.GA, s = v.gU; for (g = 0; g < d - 1; g++) { 10 === a.charCodeAt(g) && x++ } var e = p * x, x = -(p - p * x), c = -1; for (g = 0; g < d; g++) { if (p = a.charCodeAt(g), 0 !== p) { if (10 === p) { r = 0, x -= v.GA } else { var k = f[c << 16 | p & 65535] || 0, h = s[p]; if (h) { var n = b.rect(h.rect.x, h.rect.y, h.rect.width, h.rect.height), n = b.Cv(n); n.x += this.Et.x; n.y += this.Et.y; (c = this.Ci(g)) ? this.i.GH(c, n, p): (c = new b.o, c.Pa(m, n, !1), c.lG = !0, this.B(c, 0, g)); c.opacityModifyRGB = this.hc; this.i.FH(c); n = b.d(r + h.$Y + 0.5 * h.rect.width + k, x + (v.GA - h.aZ) - 0.5 * n.height * b.jb()); c.G(b.EW(n)); r += h.sC + k; c = p; u < r && (u = r) } else { b.log("cocos2d: LabelBMFont: character not found " + a[g]) } } } } t.width = h && h.sC < h.rect.width ? u - h.sC + h.rect.width : u; t.height = e; this.he(b.jY(t)) } }, Uba: function(f) { var a = this.K; if (a) { for (var c = 0, d = a.length; c < d; c++) { var e = a[c]; e && (e.visible = !1) } } this.Ne && this.Su(); f || this.ag() }, Fl: function() { return this.cn }, zd: function(c, a) { c = String(c); null == a && (a = !0); null != c && b.ge(c) || (c += ""); this.cn = c; this.dH(c, a) }, AR: function(a) { this.zd(a, !1) }, C$: function(a) { this.zd(a, !0) }, zt: function(d, a) { if (0 >= a) { return 0 } var c = this.Ci(d); return this.DF(this.Ci(d + a)) - this.DF(c) }, Kx: function(a, c, e, h) { for (var k = a[c], m = 0, n = 0; n < c; n++) { m += a[n].length } var m = m + c - h, p = this.zt(m, a[c].length - 1); if (p > e && 1 < k.length) { h = e / p * k.length | 0; for (var n = k.substr(h), r = p - this.zt(m + h, n.length - 1), d, f = 0, g = 0; r > e && 100 > g++;) { h *= e / r, h |= 0, n = k.substr(h), r = p - this.zt(m + h, n.length - 1) } for (g = 0; r < e && 100 > g++;) { n && (f = (d = b.J.SH.exec(n)) ? d[0].length : 1, d = n), this.Mt && (f = 0), h += f, n = k.substr(h), r = p - this.zt(m + h, n.length - 1) } h -= f; 0 === h && (h = 1, d = d.substr(1)); e = k.substr(0, h); b.J.XK && b.J.vH.test(d || n) && (f = (m = b.J.aG.exec(e)) ? m[0].length : 0, this.Mt && (f = 0), h -= f, d = k.substr(h), e = k.substr(0, h)); b.J.qF.test(d) && (m = b.J.$F.exec(e)) && e !== m[0] && (f = m[0].length, this.Mt && (f = 0), h -= f, d = k.substr(h), e = k.substr(0, h)); a[c] = d || n; a.splice(c, 0, e) } }, ag: function() { this.string = this.cn; var h, k, m; if (0 < this.Cq) { var a = this.string.split("\n"), c = "", d = 0, e = 0; for (h = 0; h < a.length; h++) { e = a.length, this.Kx(a, h, this.Cq * this.Ca, d), e < a.length && d++, 0 < h && (c += "\n"), c += a[h] } c += String.fromCharCode(0); this.dH(c, !1) } if (this.yp !== b.Es) { for (a = h = 0, c = this.Pb.length, d = [], e = 0; e < c; e++) { if (10 === this.Pb[e].charCodeAt(0) || 0 === this.Pb[e].charCodeAt(0)) { k = 0; var f = d.length; if (0 === f) { a++ } else { if (m = h + f - 1 + a, !(0 > m)) { var g = this.Ci(m); if (null != g) { k = g.pb() + g.mg() / 2; g = 0; switch (this.yp) { case b.mm: g = this.width / 2 - k / 2; break; case b.nD: g = this.width - k } if (0 !== g) { for (k = 0; k < f; k++) { m = h + k + a, 0 > m || (m = this.Ci(m)) && (m.x += g) } } h += f; a++; d.length = 0 } } } } else { d.push(this.Pb[h]) } } } }, gX: function(a) { this.yp = a; this.ag() }, EP: function() { return this.yp }, kX: function(a) { this.Cq = a; this.ag() }, my: function() { return this.Cq }, eaa: function(a) { this.Mt = a; this.ag() }, jf: function(c, a) { b.f.prototype.jf.call(this, c, a); this.ag() }, zr: function(a) { b.f.prototype.zr.call(this, a); this.ag() }, fC: function(a) { b.f.prototype.fC.call(this, a); this.ag() }, U$: function(c) { if (null != c && c !== this.wt) { var a = b.S.De(c); a ? (this.wt = c, this.Ne = a, c = b.Ra.lc(a.cI), this.T = a = c.T, this.texture = c, this.i.HH(), a ? this.Su() : c.addEventListener("load", function(d) { this.T = !0; this.texture = d; this.Su(); this.Fm(); this.ag(); this.dispatchEvent("load") }, this)) : b.log("cc.LabelBMFont.setFntFile() : Impossible to create font. Please check file") } }, b5: function() { return this.wt }, $a: function(a) { this.i.$a(a) }, Xa: function(c, a) { b.f.prototype.Xa.call(this, c, a); this.ag() }, wz: function(a) { b.f.prototype.wz.call(this, a); this.ag() }, xz: function(a) { b.f.prototype.xz.call(this, a); this.ag() }, L0: function() {}, f1: function(e, a) { var c = 0; if (this.lP.dW) { var d = this.lP.dW[(e << 16 | a & 65535).toString()]; d && (c = d.b2) } return c }, DF: function(a) { return a.pb() * this.Ca - a.mg() * this.Ca * a.hy() }, $0: function(a) { return a.pb() * this.Ca + a.mg() * this.Ca * a.hy() }, UF: function(a) { a = a.charCodeAt(0); return 9 <= a && 13 >= a || 32 === a || 133 === a || 160 === a || 5760 === a || 8192 <= a && 8202 >= a || 8232 === a || 8233 === a || 8239 === a || 8287 === a || 12288 === a }, D1: function(d) { var a = d.length; if (!(0 >= a) && (a -= 1, this.UF(d[a]))) { for (var c = a - 1; 0 <= c; --c) { if (this.UF(d[c])) { a = c } else { break } } this.ZR(d, a) } }, ZR: function(d, a) { var c = d.length; a >= c || 0 > a || d.splice(a, c) } }); var J = b.Sd.prototype; b.dg.prototype.apply(J); b.l(J, "string", J.Fl, J.AR); b.l(J, "boundingWidth", J.my, J.kX); b.l(J, "textAlign", J.EP, J.gX); b.Sd.create = function(f, a, c, d, e) { return new b.Sd(f, a, c, d, e) }; b.yP = { $L: /info [^\n]*(\n|$)/gi, nL: /common [^\n]*(\n|$)/gi, KM: /page [^\n]*(\n|$)/gi, mL: /char [^\n]*(\n|$)/gi, dM: /kerning [^\n]*(\n|$)/gi, bM: /\w+=[^ \r\n]+/gi, aM: /^[\-]?\d+$/, eq: function(e) { e = e.match(this.bM); var f = {}; if (e) { for (var g = 0, h = e.length; g < h; g++) { var a = e[g], c = a.indexOf("\x3d"), d = a.substring(0, c), a = a.substring(c + 1); a.match(this.aM) ? a = parseInt(a) : '"' === a[0] && (a = a.substring(1, a.length - 1)); f[d] = a } } return f }, xW: function(d, e) { var f = {}; this.eq(d.match(this.$L)[0]); var g = this.eq(d.match(this.nL)[0]); f.GA = g.lineHeight; if (b.ua === b.Lb) { var h = b.Qn.aq; (g.scaleW > h.width || g.scaleH > h.height) && b.log("cc.LabelBMFont._parseCommonArguments(): page can't be larger than supported") } 1 !== g.pages && b.log("cc.LabelBMFont._parseCommonArguments(): only supports 1 page"); g = this.eq(d.match(this.KM)[0]); 0 !== g.id && b.log("cc.LabelBMFont._parseImageFileName() : file could not be found"); f.cI = b.path.Pu(e, g.file); for (var k = d.match(this.mL), a = f.gU = {}, g = 0, h = k.length; g < h; g++) { var c = this.eq(k[g]); a[c.id] = { rect: { x: c.x, y: c.y, width: c.width, height: c.height }, $Y: c.xoffset, aZ: c.yoffset, sC: c.xadvance } } k = f.cW = {}; if (a = d.match(this.dM)) { for (g = 0, h = a.length; g < h; g++) { c = this.eq(a[g]), k[c.first << 16 | c.second & 65535] = c.amount } } return f }, load: function(f, a, c, d) { var e = this; b.S.tv(f, function(h, g) { if (h) { return d(h) } d(null, e.xW(g, a)) }) } }; b.S.Gh(["fnt"], b.yP); (function() { b.Sd.A = function(c) { b.Sa.A.call(this, c); this.Db = !0 }; var a = b.Sd.A.prototype = Object.create(b.Sa.A.prototype); a.constructor = b.Sd.A; a.wb = function() { void 0 }; a.GH = function(e, c, d) { 32 === d ? e.wc(c, !1, b.size(0, 0)) : (e.wc(c, !1), e.visible = !0) }; a.FH = function(c) { c.mb = this.mb; c.i.ia(b.f.L.ra); c.pc = this.pc; c.i.ia(b.f.L.pa) }; a.HH = function() { var c = this.p; c.Fb = c.texture }; a.$a = function(e) { for (var f = this.p.K, g = this.mb, h = 0; h < f.length; h++) { var k = f[h], c = k.i, d = c.mb; if (this.P === c.P || d.r === g.r && d.g === g.g && d.b === g.b) { k.texture = e } } this.P = e }; a.Fm = b.Z.Xz ? function() { var g = this.p, c = g.kb(); if (c && 0 < c.eb().width) { var d = this.Fb.xa; if (d) { var e = c.xa, f = b.rect(0, 0, d.width, d.height); e instanceof HTMLCanvasElement && !g.we ? b.o.A.Wm(d, this.mb, f, e) : (e = b.o.A.Wm(d, this.mb, f), c = new b.ca, c.mc(e), c.fb()); g.$a(c) } } } : function() { var f = this.p, c, d = f.kb(); if (d && 0 < d.eb().width && (c = d.xa)) { var e = b.Ra.pB(this.Fb.xa); e && (c instanceof HTMLCanvasElement && !this.we ? (b.o.A.Vm(c, e, this.mb, null, c), this.$a(d)) : (c = b.o.A.Vm(c, e, this.mb), d = new b.ca, d.mc(c), d.fb(), f.$a(d))) } }; a.WR = function(c) { b.f.prototype.TK.call(c, this.pc) }; a.VR = function(c) { b.f.prototype.SK.call(c, this.mb) }; a.LF = function() {} })(); (function() { b.Sd.F = function(c) { b.Sa.F.call(this, c); this.Db = !0 }; var a = b.Sd.F.prototype = Object.create(b.Sa.F.prototype); a.constructor = b.Sd.F; a.GH = function(d, c) { d.wc(c, !1); d.visible = !0 }; a.HH = function() {}; a.Fm = function() {}; a.WR = function(c) { c.TK(this.pc) }; a.VR = function(c) { c.SK(this.mb) }; a.LF = function() { var e = this.p, c = e.textureAtlas.texture; e.hc = c.co(); var d = e.QG = new b.o; d.Pa(c, b.rect(0, 0, 0, 0), !1); d.batchNode = e }; a.wb = function(d) { b.Sa.F.prototype.wb.call(this, d); d = this.p; if (b.fM) { d = d.eb(); var c = b.d(0 | -this.xf.x, 0 | -this.xf.y); d = [b.d(c.x, c.y), b.d(c.x + d.width, c.y), b.d(c.x + d.width, c.y + d.height), b.d(c.x, c.y + d.height)]; b.Nk.to(0, 255, 0, 255); b.Nk.Tf(d, 4, !0) } }; a.FH = function() {} })(); b.zk = b.f.extend({ texture: null, Tn: !1, Jh: !1, O: null, sq: 0, by: 0, Wk: 0, My: 0, Gj: 0, iz: 0, dz: null, cz: null, Ga: null, Hm: null, Ye: null, hd: null, ft: null, yu: null, gc: "MotionStreak", ctor: function(f, a, c, d, e) { b.f.prototype.ctor.call(this); this.Ef = b.d(0, 0); this.O = new b.Wb(b.SRC_ALPHA, b.ONE_MINUS_SRC_ALPHA); this.Jh = this.Tn = !1; this.texture = null; this.iz = this.Gj = this.My = this.Wk = this.by = this.sq = 0; this.yu = this.ft = this.hd = this.Ye = this.Hm = this.Ga = this.cz = this.dz = null; void 0 !== e && this.CV(f, a, c, d, e) }, kb: function() { return this.texture }, $a: function(a) { this.texture !== a && (this.texture = a) }, Vn: function() { return this.O }, Hh: function(c, a) { void 0 === a ? this.O = c : (this.O.src = c, this.O.ya = a) }, sh: function() { b.log("cc.MotionStreak.getOpacity has not been supported."); return 0 }, yd: function() { b.log("cc.MotionStreak.setOpacity has not been supported.") }, Pi: function() {}, zh: function() { return !1 }, Z6: function() { return this.Tn }, T$: function(a) { this.Tn = a }, l7: function() { return this.Jh }, Caa: function(a) { this.Jh = a }, CV: function(f, a, c, d, e) { if (!e) { throw "cc.MotionStreak.initWithFade(): Invalid filename or texture" } b.ge(e) && (e = b.Ra.lc(e)); b.f.prototype.G.call(this, b.d(0, 0)); this.anchorY = this.anchorX = 0; this.ignoreAnchor = !0; this.Jh = !1; this.Tn = !0; this.Wk = -1 === a ? c / 5 : a; this.Wk *= this.Wk; this.sq = c; this.by = 1 / f; this.My = f = (0 | 60 * f) + 2; this.Gj = 0; this.cz = new Float32Array(f); this.dz = new Float32Array(2 * f); this.Ga = new Float32Array(4 * f); this.Ye = new Float32Array(4 * f); this.Hm = new Uint8Array(8 * f); this.hd = gl.createBuffer(); this.yu = gl.createBuffer(); this.ft = gl.createBuffer(); this.O.src = gl.SRC_ALPHA; this.O.ya = gl.ONE_MINUS_SRC_ALPHA; this.texture = e; this.color = d; this.fk(); gl.bindBuffer(gl.ARRAY_BUFFER, this.hd); gl.bufferData(gl.ARRAY_BUFFER, this.Ga, gl.DYNAMIC_DRAW); gl.bindBuffer(gl.ARRAY_BUFFER, this.yu); gl.bufferData(gl.ARRAY_BUFFER, this.Ye, gl.DYNAMIC_DRAW); gl.bindBuffer(gl.ARRAY_BUFFER, this.ft); gl.bufferData(gl.ARRAY_BUFFER, this.Hm, gl.DYNAMIC_DRAW); return !0 }, Gba: function(e) { this.color = e; for (var a = this.Hm, c = 0, d = 2 * this.Gj; c < d; c++) { a[4 * c] = e.r, a[4 * c + 1] = e.g, a[4 * c + 2] = e.b } }, reset: function() { this.Gj = 0 }, G: function(c, a) { this.Jh = !0; void 0 === a ? (this.Ef.x = c.x, this.Ef.y = c.y) : (this.Ef.x = c, this.Ef.y = a) }, pb: function() { return this.Ef.x }, uK: function(a) { this.Ef.x = a; this.Jh || (this.Jh = !0) }, qb: function() { return this.Ef.y }, vK: function(a) { this.Ef.y = a; this.Jh || (this.Jh = !0) }, update: function(d) { if (this.Jh) { this.i.Rf(); d *= this.by; var g, h, k, m, n = 0, p = this.Gj, a = this.cz, c = this.dz, e = this.Ga, f = this.Hm; for (k = 0; k < p; k++) { a[k] -= d, 0 >= a[k] ? n++ : (g = k - n, 0 < n ? (a[g] = a[k], c[2 * g] = c[2 * k], c[2 * g + 1] = c[2 * k + 1], m = 2 * k, h = 2 * g, e[2 * h] = e[2 * m], e[2 * h + 1] = e[2 * m + 1], e[2 * (h + 1)] = e[2 * (m + 1)], e[2 * (h + 1) + 1] = e[2 * (m + 1) + 1], m *= 4, h *= 4, f[h + 0] = f[m + 0], f[h + 1] = f[m + 1], f[h + 2] = f[m + 2], f[h + 4] = f[m + 4], f[h + 5] = f[m + 5], f[h + 6] = f[m + 6]) : h = 8 * g, g = 255 * a[g], f[h + 3] = g, f[h + 7] = g) } p -= n; k = !0; p >= this.My ? k = !1 : 0 < p && (d = b.FJ(b.d(c[2 * (p - 1)], c[2 * (p - 1) + 1]), this.Ef) < this.Wk, h = 1 === p ? !1 : b.FJ(b.d(c[2 * (p - 2)], c[2 * (p - 2) + 1]), this.Ef) < 2 * this.Wk, d || h) && (k = !1); k && (c[2 * p] = this.Ef.x, c[2 * p + 1] = this.Ef.y, a[p] = 1, a = 8 * p, k = this.Uq(), f[a] = k.r, f[a + 1] = k.g, f[a + 2] = k.b, f[a + 4] = k.r, f[a + 5] = k.g, f[a + 6] = k.b, f[a + 3] = 255, f[a + 7] = 255, 0 < p && this.Tn && (1 < p ? b.rC(c, this.sq, this.Ga, p, 1) : b.rC(c, this.sq, this.Ga, 0, 2)), p++); this.Tn || b.rC(c, this.sq, this.Ga, 0, p); if (p && this.iz !== p) { c = 1 / p; f = this.Ye; for (k = 0; k < p; k++) { f[4 * k] = 0, f[4 * k + 1] = c * k, f[2 * (2 * k + 1)] = 1, f[2 * (2 * k + 1) + 1] = c * k } this.iz = p } this.Gj = p } }, Fd: function() { return b.ua === b.Lb ? new b.zk.F(this) : null } }); b.zk.create = function(f, a, c, d, e) { return new b.zk(f, a, c, d, e) }; b.zk.F = function(a) { b.f.F.call(this, a); this.Db = !0; this.va = b.Ge.Hc(b.Ak) }; b.zk.F.prototype = Object.create(b.f.F.prototype); b.zk.F.prototype.constructor = b.o.F; b.zk.F.prototype.wb = function(c) { var a = this.p; 1 >= a.Gj || !a.texture || !a.texture.T || (c = c || b.s, this.va.Ub(), this.va.wg(this.Rc), b.tc(b.pp), b.Vf(a.O.src, a.O.ya), b.Ee(a.texture), c.bindBuffer(c.ARRAY_BUFFER, a.hd), c.bufferData(c.ARRAY_BUFFER, a.Ga, c.DYNAMIC_DRAW), c.vertexAttribPointer(b.ab, 2, c.FLOAT, !1, 0, 0), c.bindBuffer(c.ARRAY_BUFFER, a.yu), c.bufferData(c.ARRAY_BUFFER, a.Ye, c.DYNAMIC_DRAW), c.vertexAttribPointer(b.Ed, 2, c.FLOAT, !1, 0, 0), c.bindBuffer(c.ARRAY_BUFFER, a.ft), c.bufferData(c.ARRAY_BUFFER, a.Hm, c.DYNAMIC_DRAW), c.vertexAttribPointer(b.ne, 4, c.UNSIGNED_BYTE, !0, 0, 0), c.drawArrays(c.TRIANGLE_STRIP, 0, 2 * a.Gj), b.df++) }; b.gm = b.Ia.extend({ wp: !1, Jj: 0, cd: null, P: null, Kf: null, Ym: null, Uk: !1, va: null, FE: 0, Ka: !1, ctor: function(d, a, c) { b.oE(); this.wp = !1; this.Jj = 0; this.P = this.cd = null; this.Kf = b.d(0, 0); this.Ym = null; this.Uk = !1; this.va = null; this.FE = 0; this.Ka = !1; void 0 !== d && this.CB(d, a, c) }, R6: function() { return this.wp }, setActive: function(c) { this.wp = c; if (!c) { c = b.I; var a = c.Zn(); c.Sl(a) } }, L5: function() { return this.Jj }, xaa: function(a) { this.Jj = a }, k5: function() { return b.size(this.cd.width, this.cd.height) }, caa: function(a) { this.cd.width = parseInt(a.width); this.cd.height = parseInt(a.height) }, X5: function() { return b.d(this.Kf.x, this.Kf.y) }, Daa: function(a) { this.Kf.x = a.x; this.Kf.y = a.y }, p7: function() { return this.Uk }, Jaa: function(a) { this.Uk !== a && (this.Uk = a, this.Nu()) }, CB: function(e, f, g) { if (!f) { var h = b.I.rB(), a = b.cj(h.width), c = b.cj(h.height), d = new Uint8Array(a * c * 4); if (!d) { return b.log("cocos2d: CCGrid: not enough memory."), !1 } f = new b.ca; f.Zq(d, b.ca.dj, a, c, h); if (!f) { return b.log("cocos2d: CCGrid: error creating texture"), !1 } } this.wp = !1; this.Jj = 0; this.cd = e; this.P = f; this.Uk = g || !1; this.Kf.x = this.P.width / e.width; this.Kf.y = this.P.height / e.height; this.Ym = new b.WL; if (!this.Ym) { return !1 } this.Ym.wV(this.P); this.va = b.Ge.Hc(b.kp); this.Nu(); return !0 }, k2: function() { this.FE = b.I.Zn(); this.Ym.TS(this.P) }, V1: function(e) { this.Ym.AS(this.P); if (e && e.Wn().DB()) { var a = e.Tq(), c = e.i.Rc, d = b.e.U.Wj(a.x, a.y, 0); c.multiply(d); e.sj.Ky(c); d = b.e.U.Wj(-a.x, -a.y, 0, d); c.multiply(d) } b.Ee(this.P); this.dI(); this.BA(e); this.aI() }, dI: function() {}, aI: function() {}, BA: function() { b.log("cc.GridBase.blit(): Shall be overridden in subclass.") }, so: function() { b.log("cc.GridBase.reuse(): Shall be overridden in subclass.") }, Nu: function() { b.log("cc.GridBase.calculateVertexPoints(): Shall be overridden in subclass.") }, u$: function() { var a = b.I.rB(); b.s.viewport(0, 0, a.width, a.height); b.Gg(b.Ng); b.io(); a = b.e.U.IA(0, a.width, 0, a.height, -1, 1); b.jo(a); b.Gg(b.Mg); b.io(); b.wK() } }); b.gm.create = function(d, a, c) { return new b.gm(d, a, c) }; b.MC = b.gm.extend({ Mf: null, Ga: null, fi: null, Nb: null, Xe: null, hd: null, Re: null, Ot: !1, pG: !1, qG: !1, ctor: function(d, a, c) { b.gm.prototype.ctor.call(this); this.Re = this.hd = this.Xe = this.Nb = this.fi = this.Ga = this.Mf = null; void 0 !== d && this.CB(d, a, c) }, $ba: function(a) { return this.pV(a) }, pV: function(c) { c.x === (0 | c.x) && c.y === (0 | c.y) || b.log("cc.Grid3D.vertex() : Numbers must be integers"); c = 0 | 3 * (c.x * (this.cd.height + 1) + c.y); var a = this.Ga; return new D(a[c], a[c + 1], a[c + 2]) }, C8: function(a) { return this.XU(a) }, XU: function(c) { c.x === (0 | c.x) && c.y === (0 | c.y) || b.log("cc.Grid3D.originalVertex() : Numbers must be integers"); c = 0 | 3 * (c.x * (this.cd.height + 1) + c.y); var a = this.fi; return new D(a[c], a[c + 1], a[c + 2]) }, cba: function(e, a) { e.x === (0 | e.x) && e.y === (0 | e.y) || b.log("cc.Grid3D.setVertex() : Numbers must be integers"); var c = 0 | 3 * (e.x * (this.cd.height + 1) + e.y), d = this.Ga; d[c] = a.x; d[c + 1] = a.y; d[c + 2] = a.z; this.Ka = !0 }, dI: function() { if (this.Ot) { var a = b.s; this.pG = a.isEnabled(a.DEPTH_TEST); this.qG = a.getParameter(a.DEPTH_WRITEMASK); a.enable(a.DEPTH_TEST); a.depthMask(!0) } }, aI: function() { if (this.Ot) { var a = b.s; this.pG ? a.enable(a.DEPTH_TEST) : a.disable(a.DEPTH_TEST); a.depthMask(this.qG) } }, BA: function(d) { var a = this.cd.width * this.cd.height; b.tc(b.ad | b.pm); this.va.Ub(); this.va.wg(d.i.Rc); d = b.s; var c = this.Ka; d.bindBuffer(d.ARRAY_BUFFER, this.hd); c && d.bufferData(d.ARRAY_BUFFER, this.Ga, d.DYNAMIC_DRAW); d.vertexAttribPointer(b.ab, 3, d.FLOAT, !1, 0, 0); d.bindBuffer(d.ARRAY_BUFFER, this.Xe); c && d.bufferData(d.ARRAY_BUFFER, this.Mf, d.DYNAMIC_DRAW); d.vertexAttribPointer(b.Ed, 2, d.FLOAT, !1, 0, 0); d.bindBuffer(d.ELEMENT_ARRAY_BUFFER, this.Re); c && d.bufferData(d.ELEMENT_ARRAY_BUFFER, this.Nb, d.STATIC_DRAW); d.drawElements(d.TRIANGLES, 6 * a, d.UNSIGNED_SHORT, 0); c && (this.Ka = !1); b.Xf() }, so: function() { if (0 < this.Jj) { for (var e = this.fi, a = this.Ga, c = 0, d = this.Ga.length; c < d; c++) { e[c] = a[c] }--this.Jj } }, Nu: function() { var u = b.s, v = this.P.pixelsWidth, x = this.P.pixelsHeight, y = this.P.Q.height, A = this.cd, B = (A.width + 1) * (A.height + 1); this.Ga = new Float32Array(3 * B); this.Mf = new Float32Array(2 * B); this.Nb = new Uint16Array(A.width * A.height * 6); this.hd && u.deleteBuffer(this.hd); this.hd = u.createBuffer(); this.Xe && u.deleteBuffer(this.Xe); this.Xe = u.createBuffer(); this.Re && u.deleteBuffer(this.Re); this.Re = u.createBuffer(); for (var C, a, c = this.Nb, d = this.Mf, e = this.Uk, h = this.Ga, B = 0; B < A.width; ++B) { for (C = 0; C < A.height; ++C) { var n = C * A.width + B; a = B * this.Kf.x; var m = a + this.Kf.x, r = C * this.Kf.y, p = r + this.Kf.y, s = B * (A.height + 1) + C, t = (B + 1) * (A.height + 1) + C, f = (B + 1) * (A.height + 1) + (C + 1), g = B * (A.height + 1) + (C + 1); c[6 * n] = s; c[6 * n + 1] = t; c[6 * n + 2] = g; c[6 * n + 3] = t; c[6 * n + 4] = f; c[6 * n + 5] = g; var n = [3 * s, 3 * t, 3 * f, 3 * g], k = [{ x: a, y: r, z: 0 }, { x: m, y: r, z: 0 }, { x: m, y: p, z: 0 }, { x: a, y: p, z: 0 }], s = [2 * s, 2 * t, 2 * f, 2 * g], m = [b.d(a, r), b.d(m, r), b.d(m, p), b.d(a, p)]; for (a = 0; 4 > a; ++a) { h[n[a]] = k[a].x, h[n[a] + 1] = k[a].y, h[n[a] + 2] = k[a].z, d[s[a]] = m[a].x / v, d[s[a] + 1] = e ? (y - m[a].y) / x : m[a].y / x } } } this.fi = new Float32Array(this.Ga); u.bindBuffer(u.ARRAY_BUFFER, this.hd); u.bufferData(u.ARRAY_BUFFER, this.Ga, u.DYNAMIC_DRAW); u.bindBuffer(u.ARRAY_BUFFER, this.Xe); u.bufferData(u.ARRAY_BUFFER, this.Mf, u.DYNAMIC_DRAW); u.bindBuffer(u.ELEMENT_ARRAY_BUFFER, this.Re); u.bufferData(u.ELEMENT_ARRAY_BUFFER, this.Nb, u.STATIC_DRAW); this.Ka = !0 }, haa: function(a) { this.Ot = a }, u5: function() { return this.Ot } }); b.MC.create = function(d, a, c) { return new b.MC(d, a, c) }; b.rD = b.gm.extend({ Mf: null, Ga: null, fi: null, Nb: null, Xe: null, hd: null, Re: null, ctor: function(d, a, c) { b.gm.prototype.ctor.call(this); this.Re = this.hd = this.Xe = this.Nb = this.fi = this.Ga = this.Mf = null; void 0 !== d && this.CB(d, a, c) }, Eba: function(a) { return this.lV(a) }, lV: function(c) { c.x === (0 | c.x) && c.y === (0 | c.y) || b.log("cc.TiledGrid3D.tile() : Numbers must be integers"); c = 12 * (this.cd.height * c.x + c.y); var a = this.Ga; return new b.cD(new D(a[c], a[c + 1], a[c + 2]), new D(a[c + 3], a[c + 4], a[c + 5]), new D(a[c + 6], a[c + 7], a[c + 8]), new D(a[c + 9], a[c + 10], a[c + 11])) }, WU: function(c) { c.x === (0 | c.x) && c.y === (0 | c.y) || b.log("cc.TiledGrid3D.originalTile() : Numbers must be integers"); c = 12 * (this.cd.height * c.x + c.y); var a = this.fi; return new b.cD(new D(a[c], a[c + 1], a[c + 2]), new D(a[c + 3], a[c + 4], a[c + 5]), new D(a[c + 6], a[c + 7], a[c + 8]), new D(a[c + 9], a[c + 10], a[c + 11])) }, B8: function(a) { return this.WU(a) }, Kaa: function(e, a) { e.x === (0 | e.x) && e.y === (0 | e.y) || b.log("cc.TiledGrid3D.setTile() : Numbers must be integers"); var c = 12 * (this.cd.height * e.x + e.y), d = this.Ga; d[c] = a.bl.x; d[c + 1] = a.bl.y; d[c + 2] = a.bl.z; d[c + 3] = a.br.x; d[c + 4] = a.br.y; d[c + 5] = a.br.z; d[c + 6] = a.tl.x; d[c + 7] = a.tl.y; d[c + 8] = a.tl.z; d[c + 9] = a.tr.x; d[c + 10] = a.tr.y; d[c + 11] = a.tr.z; this.Ka = !0 }, BA: function(d) { var a = this.cd.width * this.cd.height; this.va.Ub(); this.va.wg(d.i.Rc); d = b.s; var c = this.Ka; b.tc(b.ad | b.pm); d.bindBuffer(d.ARRAY_BUFFER, this.hd); c && d.bufferData(d.ARRAY_BUFFER, this.Ga, d.DYNAMIC_DRAW); d.vertexAttribPointer(b.ab, 3, d.FLOAT, !1, 0, this.Ga); d.bindBuffer(d.ARRAY_BUFFER, this.Xe); c && d.bufferData(d.ARRAY_BUFFER, this.Mf, d.DYNAMIC_DRAW); d.vertexAttribPointer(b.Ed, 2, d.FLOAT, !1, 0, this.Mf); d.bindBuffer(d.ELEMENT_ARRAY_BUFFER, this.Re); c && d.bufferData(d.ELEMENT_ARRAY_BUFFER, this.Nb, d.STATIC_DRAW); d.drawElements(d.TRIANGLES, 6 * a, d.UNSIGNED_SHORT, 0); c && (this.Ka = !1); b.Xf() }, so: function() { if (0 < this.Jj) { for (var d = this.Ga, a = this.fi, c = 0; c < d.length; c++) { a[c] = d[c] }--this.Jj } }, Nu: function() { var x = this.P.pixelsWidth, y = this.P.pixelsHeight, A = this.P.Q.height, a = this.cd, c = a.width * a.height; this.Ga = new Float32Array(12 * c); this.Mf = new Float32Array(8 * c); this.Nb = new Uint16Array(6 * c); var d = b.s; this.hd && d.deleteBuffer(this.hd); this.hd = d.createBuffer(); this.Xe && d.deleteBuffer(this.Xe); this.Xe = d.createBuffer(); this.Re && d.deleteBuffer(this.Re); this.Re = d.createBuffer(); var e, f, g = 0, h = this.Kf, k = this.Ga, n = this.Mf, r = this.Uk; for (e = 0; e < a.width; e++) { for (f = 0; f < a.height; f++) { var p = e * h.x, t = p + h.x, s = f * h.y, u = s + h.y; k[12 * g] = p; k[12 * g + 1] = s; k[12 * g + 2] = 0; k[12 * g + 3] = t; k[12 * g + 4] = s; k[12 * g + 5] = 0; k[12 * g + 6] = p; k[12 * g + 7] = u; k[12 * g + 8] = 0; k[12 * g + 9] = t; k[12 * g + 10] = u; k[12 * g + 11] = 0; var v = s, m = u; r && (v = A - s, m = A - u); n[8 * g] = p / x; n[8 * g + 1] = v / y; n[8 * g + 2] = t / x; n[8 * g + 3] = v / y; n[8 * g + 4] = p / x; n[8 * g + 5] = m / y; n[8 * g + 6] = t / x; n[8 * g + 7] = m / y; g++ } } x = this.Nb; for (e = 0; e < c; e++) { x[6 * e + 0] = 4 * e + 0, x[6 * e + 1] = 4 * e + 1, x[6 * e + 2] = 4 * e + 2, x[6 * e + 3] = 4 * e + 1, x[6 * e + 4] = 4 * e + 2, x[6 * e + 5] = 4 * e + 3 } this.fi = new Float32Array(this.Ga); d.bindBuffer(d.ARRAY_BUFFER, this.hd); d.bufferData(d.ARRAY_BUFFER, this.Ga, d.DYNAMIC_DRAW); d.bindBuffer(d.ARRAY_BUFFER, this.Xe); d.bufferData(d.ARRAY_BUFFER, this.Mf, d.DYNAMIC_DRAW); d.bindBuffer(d.ELEMENT_ARRAY_BUFFER, this.Re); d.bufferData(d.ELEMENT_ARRAY_BUFFER, this.Nb, d.DYNAMIC_DRAW); this.Ka = !0 } }); b.rD.create = function(d, a, c) { return new b.rD(d, a, c) }; b.WL = b.Ia.extend({ Ps: null, jh: null, oG: null, Xm: null, ctor: function() { b.oE(); this.Xm = b.s; this.oG = [0, 0, 0, 0]; this.jh = null; this.Ps = this.Xm.createFramebuffer() }, wV: function(c) { var a = this.Xm; this.jh = a.getParameter(a.FRAMEBUFFER_BINDING); a.bindFramebuffer(a.FRAMEBUFFER, this.Ps); a.framebufferTexture2D(a.FRAMEBUFFER, a.COLOR_ATTACHMENT0, a.TEXTURE_2D, c.Ze, 0); a.checkFramebufferStatus(a.FRAMEBUFFER) !== a.FRAMEBUFFER_COMPLETE && b.log("Frame Grabber: could not attach texture to frmaebuffer"); a.bindFramebuffer(a.FRAMEBUFFER, this.jh) }, TS: function() { var a = this.Xm; this.jh = a.getParameter(a.FRAMEBUFFER_BINDING); a.bindFramebuffer(a.FRAMEBUFFER, this.Ps); this.oG = a.getParameter(a.COLOR_CLEAR_VALUE); a.clearColor(0, 0, 0, 0); a.clear(a.COLOR_BUFFER_BIT | a.DEPTH_BUFFER_BIT) }, AS: function() { var a = this.Xm; a.bindFramebuffer(a.FRAMEBUFFER, this.jh); a.colorMask(!0, !0, !0, !0) }, O2: function() { this.Xm.deleteFramebuffer(this.Ps) } }); b.Xba = function() { return { x: 0, y: 0 } }; b.nk = function(c, a) { return { x: c, y: a } }; b.Rd = function(c, a) { return b.nk(c.x + a.x, c.y + a.y) }; b.Vb = function(c, a) { return b.nk(c.x - a.x, c.y - a.y) }; b.Xc = function(c, a) { return b.nk(c.x * a, c.y * a) }; b.Co = function(a) { return b.nk(-a.y, a.x) }; b.nf = function(a) { return b.nk(-a.x, -a.y) }; b.VK = function(c, a) { return c.x * a.x + c.y * a.y }; b.Wba = function(a) { return b.nk(Math.cos(a), Math.sin(a)) }; b.Jr = function(a) { a = b.$f(b.d(a.x, a.y)); return b.nk(a.x, a.y) }; b.Ud = function(a) { return b.nk(a.x, a.y) }; b.za = function(a) { return { u: a.x, v: a.y } }; b.EL = b.f.extend({ Na: null, O: null, Cc: 1, Gd: null, gc: "DrawNodeCanvas", ctor: function() { b.f.prototype.ctor.call(this); var a = this.i; a.Na = this.Na = []; a.Gd = this.Gd = b.color(255, 255, 255, 255); a.O = this.O = new b.Wb(b.qf, b.pf); this.oa() }, Vn: function() { return this.O }, Hh: function(c, a) { void 0 === a ? (this.O.src = c.src, this.O.ya = c.ya) : (this.O.src = c, this.O.ya = a) }, dC: function(a) { this.Cc = a }, JU: function() { return this.Cc }, to: function(c) { var a = this.Gd; a.r = c.r; a.g = c.g; a.b = c.b; a.a = null == c.a ? 255 : c.a }, md: function() { return b.color(this.Gd.r, this.Gd.g, this.Gd.b, this.Gd.a) }, RA: function(f, a, c, d, e) { d = null == d ? this.Cc : d; e = e || this.md(); null == e.a && (e.a = 255); f = [f, b.d(a.x, f.y), a, b.d(f.x, a.y)]; a = new b.kj(b.Ya.fj); a.bg = f; a.lineWidth = d; a.Ji = e; a.pv = !0; a.bk = !0; a.lineCap = "butt"; if (a.fillColor = c) { null == c.a && (c.a = 255), a.EB = !0 } this.Na.push(a) }, NA: function(d, g, h, k, m, n, p) { n = n || this.Cc; p = p || this.md(); null == p.a && (p.a = 255); for (var a = 2 * Math.PI / k, c = [], e = 0; e <= k; e++) { var f = e * a; c.push(b.d(g * Math.cos(f + h) + d.x, g * Math.sin(f + h) + d.y)) } m && c.push(b.d(d.x, d.y)); d = new b.kj(b.Ya.fj); d.bg = c; d.lineWidth = n; d.Ji = p; d.pv = !0; d.bk = !0; this.Na.push(d) }, QA: function(h, k, m, a, c, d) { c = c || this.Cc; d = d || this.md(); null == d.a && (d.a = 255); for (var e = [], f = 0, g = 0; g < a; g++) { e.push(b.d(Math.pow(1 - f, 2) * h.x + 2 * (1 - f) * f * k.x + f * f * m.x, Math.pow(1 - f, 2) * h.y + 2 * (1 - f) * f * k.y + f * f * m.y)), f += 1 / a } e.push(b.d(m.x, m.y)); h = new b.kj(b.Ya.fj); h.bg = e; h.lineWidth = c; h.Ji = d; h.bk = !0; h.lineCap = "round"; this.Na.push(h) }, OA: function(g, h, k, m, n, a, c) { a = a || this.Cc; c = c || this.md(); null == c.a && (c.a = 255); for (var d = [], e = 0, f = 0; f < n; f++) { d.push(b.d(Math.pow(1 - e, 3) * g.x + 3 * Math.pow(1 - e, 2) * e * h.x + 3 * (1 - e) * e * e * k.x + e * e * e * m.x, Math.pow(1 - e, 3) * g.y + 3 * Math.pow(1 - e, 2) * e * h.y + 3 * (1 - e) * e * e * k.y + e * e * e * m.y)), e += 1 / n } d.push(b.d(m.x, m.y)); g = new b.kj(b.Ya.fj); g.bg = d; g.lineWidth = a; g.Ji = c; g.bk = !0; g.lineCap = "round"; this.Na.push(g) }, MA: function(e, a, c, d) { this.Bl(e, 0.5, a, c, d) }, Bl: function(g, h, k, m, n) { m = m || this.Cc; n = n || this.md(); null == n.a && (n.a = 255); for (var a = [], c, d, e = 1 / g.length, f = 0; f < k + 1; f++) { d = f / k, 1 === d ? (c = g.length - 1, d = 1) : (c = 0 | d / e, d = (d - e * c) / e), c = b.Ou(b.Gc(g, c - 1), b.Gc(g, c - 0), b.Gc(g, c + 1), b.Gc(g, c + 2), h, d), a.push(c) } g = new b.kj(b.Ya.fj); g.bg = a; g.lineWidth = m; g.Ji = n; g.bk = !0; g.lineCap = "round"; this.Na.push(g) }, PA: function(e, a, c) { c = c || this.md(); null == c.a && (c.a = 255); var d = new b.kj(b.Ya.oD); d.bg = [e]; d.lineWidth = a; d.fillColor = c; this.Na.push(d) }, CT: function(f, a, c) { if (f && 0 != f.length) { c = c || this.md(); null == c.a && (c.a = 255); for (var d = 0, e = f.length; d < e; d++) { this.PA(f[d], a, c) } } }, SA: function(f, a, c, d) { c = c || this.Cc; d = d || this.md(); null == d.a && (d.a = 255); var e = new b.kj(b.Ya.fj); e.bg = [f, a]; e.lineWidth = 2 * c; e.Ji = d; e.bk = !0; e.lineCap = "round"; this.Na.push(e) }, GT: function(f, a, c, d) { c = null == c ? this.Cc : c; d = d || this.md(); null == d.a && (d.a = 255); var e = new b.kj(b.Ya.fj); e.bg = f; e.fillColor = a; e.lineWidth = c; e.Ji = d; e.pv = !0; e.bk = !0; e.lineCap = "round"; a && (e.EB = !0); this.Na.push(e) }, Tf: function(f, g, a, c) { for (var d = [], e = 0; e < f.length; e++) { d.push(b.d(f[e].x, f[e].y)) } return this.GT(d, g, a, c) }, clear: function() { this.Na.length = 0 }, Fd: function() { return new b.Ya.A(this) } }); b.FL = b.f.extend({ Dm: 0, Na: null, vi: null, AH: null, zH: null, Cc: 1, Gd: null, O: null, Ka: !1, gc: "DrawNodeWebGL", Vn: function() { return this.O }, Hh: function(c, a) { void 0 === a ? (this.O.src = c.src, this.O.ya = c.ya) : (this.O.src = c, this.O.ya = a) }, ctor: function() { b.f.prototype.ctor.call(this); this.Na = []; this.O = new b.Wb(b.qf, b.pf); this.Gd = b.color(255, 255, 255, 255); this.oa() }, oa: function() { return b.f.prototype.oa.call(this) ? (this.shaderProgram = b.Ge.Hc(b.fD), this.Lp(64), this.AH = b.s.createBuffer(), this.Ka = !0) : !1 }, dC: function(a) { this.Cc = a }, JU: function() { return this.Cc }, to: function(c) { var a = this.Gd; a.r = c.r; a.g = c.g; a.b = c.b; a.a = c.a }, md: function() { return b.color(this.Gd.r, this.Gd.g, this.Gd.b, this.Gd.a) }, RA: function(f, a, c, d, e) { d = null == d ? this.Cc : d; e = e || this.md(); null == e.a && (e.a = 255); f = [f, b.d(a.x, f.y), a, b.d(f.x, a.y)]; null == c ? this.mt(f, d, e, !0) : this.Tf(f, c, d, e) }, NA: function(d, g, h, k, m, n, p) { n = n || this.Cc; p = p || this.md(); null == p.a && (p.a = 255); var a = 2 * Math.PI / k, c = [], e; for (e = 0; e <= k; e++) { var f = e * a; c.push(b.d(g * Math.cos(f + h) + d.x, g * Math.sin(f + h) + d.y)) } m && c.push(b.d(d.x, d.y)); n *= 0.5; e = 0; for (d = c.length; e < d - 1; e++) { this.SA(c[e], c[e + 1], n, p) } }, QA: function(h, k, m, a, c, d) { c = c || this.Cc; d = d || this.md(); null == d.a && (d.a = 255); for (var e = [], f = 0, g = 0; g < a; g++) { e.push(b.d(Math.pow(1 - f, 2) * h.x + 2 * (1 - f) * f * k.x + f * f * m.x, Math.pow(1 - f, 2) * h.y + 2 * (1 - f) * f * k.y + f * f * m.y)), f += 1 / a } e.push(b.d(m.x, m.y)); this.mt(e, c, d, !1) }, OA: function(g, h, k, m, n, a, c) { a = a || this.Cc; c = c || this.md(); null == c.a && (c.a = 255); for (var d = [], e = 0, f = 0; f < n; f++) { d.push(b.d(Math.pow(1 - e, 3) * g.x + 3 * Math.pow(1 - e, 2) * e * h.x + 3 * (1 - e) * e * e * k.x + e * e * e * m.x, Math.pow(1 - e, 3) * g.y + 3 * Math.pow(1 - e, 2) * e * h.y + 3 * (1 - e) * e * e * k.y + e * e * e * m.y)), e += 1 / n } d.push(b.d(m.x, m.y)); this.mt(d, a, c, !1) }, MA: function(e, a, c, d) { this.Bl(e, 0.5, a, c, d) }, Bl: function(g, h, k, m, n) { m = m || this.Cc; n = n || this.md(); null == n.a && (n.a = 255); for (var a = [], c, d, e = 1 / g.length, f = 0; f < k + 1; f++) { d = f / k, 1 === d ? (c = g.length - 1, d = 1) : (c = 0 | d / e, d = (d - e * c) / e), c = b.Ou(b.Gc(g, c - 1), b.Gc(g, c - 0), b.Gc(g, c + 1), b.Gc(g, c + 2), h, d), a.push(c) } m *= 0.5; g = 0; for (h = a.length; g < h - 1; g++) { this.SA(a[g], a[g + 1], m, n) } }, fR: function() { var c = b.s; b.tc(b.pp); c.bindBuffer(c.ARRAY_BUFFER, this.AH); this.Ka && (c.bufferData(c.ARRAY_BUFFER, this.vi, c.STREAM_DRAW), this.Ka = !1); var a = b.$c.BYTES_PER_ELEMENT; c.vertexAttribPointer(b.ab, 2, c.FLOAT, !1, a, 0); c.vertexAttribPointer(b.ne, 4, c.UNSIGNED_BYTE, !0, a, 8); c.vertexAttribPointer(b.Ed, 2, c.FLOAT, !1, a, 12); c.drawArrays(c.TRIANGLES, 0, 3 * this.Na.length); b.Xf() }, Lp: function(f) { var a = this.Na; if (a.length + f > this.Dm) { var c = b.Kb.BYTES_PER_ELEMENT; this.Dm += Math.max(this.Dm, f); if (null == a || 0 === a.length) { this.Na = [], this.vi = new ArrayBuffer(c * this.Dm), this.zH = new Uint8Array(this.vi) } else { f = []; for (var d = new ArrayBuffer(c * this.Dm), e = 0; e < a.length; e++) { f[e] = new b.Kb(a[e].a, a[e].b, a[e].c, d, e * c) } this.zH = new Uint8Array(d); this.vi = d; this.Na = f } } }, PA: function(f, g, a) { a = a || this.md(); null == a.a && (a.a = 255); var c = { r: 0 | a.r, g: 0 | a.g, b: 0 | a.b, a: 0 | a.a }; a = { vertices: { x: f.x - g, y: f.y - g }, colors: c, texCoords: { u: -1, v: -1 } }; var d = { vertices: { x: f.x - g, y: f.y + g }, colors: c, texCoords: { u: -1, v: 1 } }, e = { vertices: { x: f.x + g, y: f.y + g }, colors: c, texCoords: { u: 1, v: 1 } }; f = { vertices: { x: f.x + g, y: f.y - g }, colors: c, texCoords: { u: 1, v: -1 } }; this.Lp(6); this.Na.push(new b.Kb(a, d, e, this.vi, this.Na.length * b.Kb.BYTES_PER_ELEMENT)); this.Na.push(new b.Kb(a, e, f, this.vi, this.Na.length * b.Kb.BYTES_PER_ELEMENT)); this.Ka = !0 }, CT: function(f, a, c) { if (f && 0 !== f.length) { c = c || this.md(); null == c.a && (c.a = 255); for (var d = 0, e = f.length; d < e; d++) { this.PA(f[d], a, c) } } }, SA: function(n, r, s, v) { v = v || this.md(); null == v.a && (v.a = 255); s = s || 0.5 * this.Cc; this.Lp(18); v = { r: 0 | v.r, g: 0 | v.g, b: 0 | v.b, a: 0 | v.a }; var a = b.Ud(n); r = b.Ud(r); n = b.Jr(b.Co(b.Vb(r, a))); var c = b.Co(n), e = b.Xc(n, s); s = b.Xc(c, s); var t = b.Rd(r, b.Vb(e, s)), u = b.Vb(r, e), d = b.Rd(r, e), m = b.Vb(a, e), p = b.Rd(a, e), g = b.Vb(a, b.Vb(e, s)), a = b.Rd(a, b.Rd(e, s)), f = b.Kb.BYTES_PER_ELEMENT, k = this.vi, h = this.Na; h.push(new b.Kb({ vertices: b.Vb(r, b.Rd(e, s)), colors: v, texCoords: b.za(b.nf(b.Rd(n, c))) }, { vertices: t, colors: v, texCoords: b.za(b.Vb(n, c)) }, { vertices: u, colors: v, texCoords: b.za(b.nf(n)) }, k, h.length * f)); h.push(new b.Kb({ vertices: d, colors: v, texCoords: b.za(n) }, { vertices: t, colors: v, texCoords: b.za(b.Vb(n, c)) }, { vertices: u, colors: v, texCoords: b.za(b.nf(n)) }, k, h.length * f)); h.push(new b.Kb({ vertices: d, colors: v, texCoords: b.za(n) }, { vertices: m, colors: v, texCoords: b.za(b.nf(n)) }, { vertices: u, colors: v, texCoords: b.za(b.nf(n)) }, k, h.length * f)); h.push(new b.Kb({ vertices: d, colors: v, texCoords: b.za(n) }, { vertices: m, colors: v, texCoords: b.za(b.nf(n)) }, { vertices: p, colors: v, texCoords: b.za(n) }, k, h.length * f)); h.push(new b.Kb({ vertices: g, colors: v, texCoords: b.za(b.Vb(c, n)) }, { vertices: m, colors: v, texCoords: b.za(b.nf(n)) }, { vertices: p, colors: v, texCoords: b.za(n) }, k, h.length * f)); h.push(new b.Kb({ vertices: g, colors: v, texCoords: b.za(b.Vb(c, n)) }, { vertices: a, colors: v, texCoords: b.za(b.Rd(n, c)) }, { vertices: p, colors: v, texCoords: b.za(n) }, k, h.length * f)); this.Ka = !0 }, Tf: function(y, a, c, d) { if (null == a) { this.mt(y, c, d, !0) } else { null == a.a && (a.a = 255); null == d.a && (d.a = 255); c = null == c ? this.Cc : c; c *= 0.5; a = { r: 0 | a.r, g: 0 | a.g, b: 0 | a.b, a: 0 | a.a }; d = { r: 0 | d.r, g: 0 | d.g, b: 0 | d.b, a: 0 | d.a }; var e = [], f, g, h, k, m = y.length; for (f = 0; f < m; f++) { g = b.Ud(y[(f - 1 + m) % m]); h = b.Ud(y[f]); k = b.Ud(y[(f + 1) % m]); var n = b.Jr(b.Co(b.Vb(h, g))); h = b.Jr(b.Co(b.Vb(k, h))); e[f] = { offset: b.Xc(b.Rd(n, h), 1 / (b.VK(n, h) + 1)), wv: h } } n = 0 < c; this.Lp(3 * (3 * m - 2)); var p = b.Kb.BYTES_PER_ELEMENT, s = this.vi, r = this.Na, u = !1 == n ? 0.5 : 0; for (f = 0; f < m - 2; f++) { g = b.Vb(b.Ud(y[0]), b.Xc(e[0].offset, u)), h = b.Vb(b.Ud(y[f + 1]), b.Xc(e[f + 1].offset, u)), k = b.Vb(b.Ud(y[f + 2]), b.Xc(e[f + 2].offset, u)), r.push(new b.Kb({ vertices: g, colors: a, texCoords: b.za({ x: 0, y: 0 }) }, { vertices: h, colors: a, texCoords: b.za({ x: 0, y: 0 }) }, { vertices: k, colors: a, texCoords: b.za({ x: 0, y: 0 }) }, s, r.length * p)) } for (f = 0; f < m; f++) { u = (f + 1) % m; g = b.Ud(y[f]); h = b.Ud(y[u]); k = e[f].wv; var t = e[f].offset, v = e[u].offset, u = n ? b.Vb(g, b.Xc(t, c)) : b.Vb(g, b.Xc(t, 0.5)), x = n ? b.Vb(h, b.Xc(v, c)) : b.Vb(h, b.Xc(v, 0.5)); g = n ? b.Rd(g, b.Xc(t, c)) : b.Rd(g, b.Xc(t, 0.5)); h = n ? b.Rd(h, b.Xc(v, c)) : b.Rd(h, b.Xc(v, 0.5)); n ? (r.push(new b.Kb({ vertices: u, colors: d, texCoords: b.za(b.nf(k)) }, { vertices: x, colors: d, texCoords: b.za(b.nf(k)) }, { vertices: h, colors: d, texCoords: b.za(k) }, s, r.length * p)), r.push(new b.Kb({ vertices: u, colors: d, texCoords: b.za(b.nf(k)) }, { vertices: g, colors: d, texCoords: b.za(k) }, { vertices: h, colors: d, texCoords: b.za(k) }, s, r.length * p))) : (r.push(new b.Kb({ vertices: u, colors: a, texCoords: b.za({ x: 0, y: 0 }) }, { vertices: x, colors: a, texCoords: b.za({ x: 0, y: 0 }) }, { vertices: h, colors: a, texCoords: b.za(k) }, s, r.length * p)), r.push(new b.Kb({ vertices: u, colors: a, texCoords: b.za({ x: 0, y: 0 }) }, { vertices: g, colors: a, texCoords: b.za(k) }, { vertices: h, colors: a, texCoords: b.za(k) }, s, r.length * p))) } this.Ka = !0 } }, mt: function(n, r, s, v) { r = null == r ? this.Cc : r; s = s || this.Gd; null == s.a && (s.a = 255); r *= 0.5; if (!(0 >= r)) { s = { r: 0 | s.r, g: 0 | s.g, b: 0 | s.b, a: 0 | s.a }; var a = [], c, e, t, u, d = n.length; for (c = 0; c < d; c++) { e = b.Ud(n[(c - 1 + d) % d]); t = b.Ud(n[c]); u = b.Ud(n[(c + 1) % d]); var m = b.Jr(b.Co(b.Vb(t, e))); t = b.Jr(b.Co(b.Vb(u, t))); a[c] = { offset: b.Xc(b.Rd(m, t), 1 / (b.VK(m, t) + 1)), wv: t } } this.Lp(3 * (3 * d - 2)); u = b.Kb.BYTES_PER_ELEMENT; var m = this.vi, p = this.Na; v = v ? d : d - 1; for (c = 0; c < v; c++) { var g = (c + 1) % d; e = b.Ud(n[c]); t = b.Ud(n[g]); var f = a[c].wv, k = a[c].offset, g = a[g].offset, h = b.Vb(e, b.Xc(k, r)); e = b.Rd(e, b.Xc(k, r)); k = b.Rd(t, b.Xc(g, r)); p.push(new b.Kb({ vertices: h, colors: s, texCoords: b.za(b.nf(f)) }, { vertices: b.Vb(t, b.Xc(g, r)), colors: s, texCoords: b.za(b.nf(f)) }, { vertices: k, colors: s, texCoords: b.za(f) }, m, p.length * u)); p.push(new b.Kb({ vertices: h, colors: s, texCoords: b.za(b.nf(f)) }, { vertices: e, colors: s, texCoords: b.za(f) }, { vertices: k, colors: s, texCoords: b.za(f) }, m, p.length * u)) } this.Ka = !0 } }, clear: function() { this.Na.length = 0; this.Ka = !0 }, Fd: function() { return new b.Ya.F(this) } }); b.Ya = b.ua === b.Lb ? b.FL : b.EL; b.Ya.create = function() { return new b.Ya }; b.kj = function(a) { this.type = a; this.fillColor = this.bg = null; this.lineWidth = 0; this.Ji = null; this.lineCap = "butt"; this.bk = this.EB = this.pv = !1 }; b.Ya.oD = 0; b.Ya.WN = 1; b.Ya.fj = 2; b.Ya.A = function(a) { b.f.A.call(this, a); this.Db = !0; this.O = this.Gd = this.Na = null }; b.Ya.A.prototype = Object.create(b.f.A.prototype); b.Ya.A.prototype.constructor = b.Ya.A; b.Ya.A.prototype.wb = function(e, f, g) { e = e || b.s; e.getContext(); var h = this.p.pc / 255; if (0 !== h) { e.setTransform(this.ql, f, g); e.xr(h); this.O && this.O.src === b.SRC_ALPHA && this.O.ya === b.ONE && e.vr("lighter"); for (var h = this.Na, a = 0, c = h.length; a < c; a++) { var d = h[a]; switch (d.type) { case b.Ya.oD: this.sP(e, d, f, g); break; case b.Ya.WN: this.uP(e, d, f, g); break; case b.Ya.fj: this.tP(e, d, f, g) } } } }; b.Ya.A.prototype.sP = function(e, f, g, h) { var a = f.fillColor, c = f.bg[0]; f = f.lineWidth; var d = e.getContext(); e.Kg("rgba(" + (0 | a.r) + "," + (0 | a.g) + "," + (0 | a.b) + "," + a.a / 255 + ")"); d.beginPath(); d.arc(c.x * g, -c.y * h, f * g, 0, 2 * Math.PI, !1); d.closePath(); d.fill() }; b.Ya.A.prototype.uP = function(h, k, m, a) { var c = k.Ji, d = k.bg[0], e = k.bg[1], f = k.lineWidth; k = k.lineCap; var g = h.getContext(); h.Wv("rgba(" + (0 | c.r) + "," + (0 | c.g) + "," + (0 | c.b) + "," + c.a / 255 + ")"); g.lineWidth = f * m; g.beginPath(); g.lineCap = k; g.moveTo(d.x * m, -d.y * a); g.lineTo(e.x * m, -e.y * a); g.stroke() }; b.Ya.A.prototype.tP = function(n, a, c, e) { var k = a.bg, m = a.lineCap; if (null != k) { var p = a.fillColor, r = a.lineWidth, t = a.Ji, d = a.pv, f = a.EB; a = a.bk; var g = n.getContext(), h = k[0]; g.lineCap = m; p && n.Kg("rgba(" + (0 | p.r) + "," + (0 | p.g) + "," + (0 | p.b) + "," + p.a / 255 + ")"); r && (g.lineWidth = r * c); t && n.Wv("rgba(" + (0 | t.r) + "," + (0 | t.g) + "," + (0 | t.b) + "," + t.a / 255 + ")"); g.beginPath(); g.moveTo(h.x * c, -h.y * e); n = 1; for (m = k.length; n < m; n++) { g.lineTo(k[n].x * c, -k[n].y * e) } d && g.closePath(); f && g.fill(); a && g.stroke() } }; b.Ya.F = function(a) { b.f.F.call(this, a); this.Db = !0 }; b.Ya.F.prototype = Object.create(b.f.F.prototype); b.Ya.F.prototype.constructor = b.Ya.F; b.Ya.F.prototype.wb = function() { var a = this.p; b.Vf(a.O.src, a.O.ya); this.va.Ub(); this.va.wg(this.Rc); a.fR() }; b.Zl = -1; b.Yc = b.Ia.extend({ originalTarget: null, target: null, tag: b.Zl, ctor: function() { this.target = this.originalTarget = null; this.tag = b.Zl }, copy: function() { b.log("copy is deprecated. Please use clone instead."); return this.k() }, k: function() { var a = new b.Yc; a.originalTarget = null; a.target = null; a.tag = this.tag; return a }, Zf: function() { return !0 }, H: function(a) { this.target = this.originalTarget = a }, stop: function() { this.target = null }, step: function() { b.log("[Action step]. override me") }, update: function() { b.log("[Action update]. override me") }, Z5: function() { return this.target }, gk: function(a) { this.target = a }, B5: function() { return this.originalTarget }, qaa: function(a) { this.originalTarget = a }, oB: function() { return this.tag }, Xv: function(a) { this.tag = a }, Kv: function() {}, uc: function() {} }); b.action = function() { return new b.Yc }; b.Yc.create = b.action; b.Mh = b.Yc.extend({ q: 0, ctor: function() { b.Yc.prototype.ctor.call(this); this.q = 0 }, gB: function() { return this.q * (this.Of || 1) }, uX: function(a) { this.q = a }, reverse: function() { b.log("cocos2d: FiniteTimeAction#reverse: Implement me"); return null }, k: function() { return new b.Mh } }); b.Ds = b.Yc.extend({ Kd: 0, Ta: null, ctor: function(c, a) { b.Yc.prototype.ctor.call(this); this.Kd = 0; this.Ta = null; c && this.$(c, a) }, iV: function() { return this.Kd }, VX: function(a) { this.Kd = a }, $: function(c, a) { if (!c) { throw "cc.Speed.initWithAction(): action must be non nil" } this.Ta = c; this.Kd = a; return !0 }, k: function() { var a = new b.Ds; a.$(this.Ta.k(), this.Kd); return a }, H: function(a) { b.Yc.prototype.H.call(this, a); this.Ta.H(a) }, stop: function() { this.Ta.stop(); b.Yc.prototype.stop.call(this) }, step: function(a) { this.Ta.step(a * this.Kd) }, Zf: function() { return this.Ta.Zf() }, reverse: function() { return new b.Ds(this.Ta.reverse(), this.Kd) }, rK: function(a) { this.Ta !== a && (this.Ta = a) }, jB: function() { return this.Ta } }); b.speed = function(c, a) { return new b.Ds(c, a) }; b.Ds.create = b.speed; b.vw = b.Yc.extend({ Rm: null, Bm: !1, at: !1, Bt: null, Pp: null, qA: null, Jl: 0, Pl: 0, Xl: 0, wl: 0, ctor: function(c, a) { b.Yc.prototype.ctor.call(this); this.Rm = null; this.at = this.Bm = !1; this.Pp = this.Bt = null; this.wl = this.Xl = this.Pl = this.Jl = 0; this.qA = b.rect(0, 0, 0, 0); c && (a ? this.fo(c, a) : this.fo(c)) }, k: function() { var c = new b.vw, a = this.qA; c.fo(this.Rm, new b.Nh(a.x, a.y, a.width, a.height)); return c }, V6: function() { return this.Bm }, B$: function(a) { this.Bm = a }, fo: function(d, a) { if (!d) { throw "cc.Follow.initWithAction(): followedNode must be non nil" } a = a || b.rect(0, 0, 0, 0); this.Rm = d; this.qA = a; this.Bm = !b.lz(a); this.at = !1; var c = b.I.Ea(); this.Pp = b.d(c.width, c.height); this.Bt = b.Li(this.Pp, 0.5); this.Bm && (this.Jl = -(a.x + a.width - this.Pp.x), this.Pl = -a.x, this.Xl = -a.y, this.wl = -(a.y + a.height - this.Pp.y), this.Pl < this.Jl && (this.Pl = this.Jl = (this.Jl + this.Pl) / 2), this.Xl < this.wl && (this.Xl = this.wl = (this.Xl + this.wl) / 2), this.Xl === this.wl && this.Jl === this.Pl && (this.at = !0)); return !0 }, step: function() { var c = this.Rm.x, a = this.Rm.y, c = this.Bt.x - c, a = this.Bt.y - a; this.target.i.C = 0; this.Bm ? this.at || this.target.G(b.Kq(c, this.Jl, this.Pl), b.Kq(a, this.wl, this.Xl)) : this.target.G(c, a) }, Zf: function() { return !this.Rm.running }, stop: function() { this.target = null; b.Yc.prototype.stop.call(this) } }); b.fU = function(c, a) { return new b.vw(c, a) }; b.vw.create = b.fU; b.D = b.Mh.extend({ Ab: 0, vt: !1, Af: null, Of: 1, jq: !1, fl: !1, Kd: 1, nq: !1, ctor: function(a) { this.Of = this.Kd = 1; this.jq = !1; this.MAX_VALUE = 2; this.nq = this.fl = !1; b.Mh.prototype.ctor.call(this); void 0 !== a && this.n(a) }, W4: function() { return this.Ab }, n: function(a) { this.q = 0 === a ? b.ps : a; this.Ab = 0; return this.vt = !0 }, Zf: function() { return this.Ab >= this.q }, qa: function(a) { a.jq = this.jq; a.Kd = this.Kd; a.Of = this.Of; a.Af = this.Af; a.nq = this.nq; a.fl = this.fl }, Jd: function(c) { if (this.Af) { c.Af = []; for (var a = 0; a < this.Af.length; a++) { c.Af.push(this.Af[a].reverse()) } } }, k: function() { var a = new b.D(this.q); this.qa(a); return a }, Ha: function(c) { this.Af ? this.Af.length = 0 : this.Af = []; for (var a = 0; a < arguments.length; a++) { this.Af.push(arguments[a]) } return this }, Lc: function(e) { var a = this.Af; if (!a || 0 === a.length) { return e } for (var c = 0, d = a.length; c < d; c++) { e = a[c].Ha(e) } return e }, step: function(a) { this.vt ? (this.vt = !1, this.Ab = 0) : this.Ab += a; a = this.Ab / (1.192092896e-7 < this.q ? this.q : 1.192092896e-7); a = 1 > a ? a : 1; this.update(0 < a ? a : 0); this.fl && 1 < this.Of && this.Zf() && (this.jq || this.Of--, this.H(this.target), this.step(this.Ab - this.q)) }, H: function(a) { b.Yc.prototype.H.call(this, a); this.Ab = 0; this.vt = !0 }, reverse: function() { b.log("cc.IntervalAction: reverse not implemented."); return null }, y$: function() { b.log("cc.ActionInterval.setAmplitudeRate(): it should be overridden in subclass.") }, v4: function() { b.log("cc.ActionInterval.getAmplitudeRate(): it should be overridden in subclass."); return 0 }, speed: function(a) { if (0 >= a) { return b.log("The speed parameter error"), this } this.nq = !0; this.Kd *= a; return this }, iV: function() { return this.Kd }, VX: function(a) { this.Kd = a; return this }, repeat: function(a) { a = Math.round(a); if (isNaN(a) || 1 > a) { return b.log("The repeat parameter error"), this } this.fl = !0; this.Of *= a; return this }, VB: function() { this.fl = !0; this.Of = this.MAX_VALUE; this.jq = !0; return this } }); b.cS = function(a) { return new b.D(a) }; b.D.create = b.cS; b.yc = b.D.extend({ Ug: null, mH: null, Yp: 0, ctor: function(f) { b.D.prototype.ctor.call(this); this.Ug = []; var a = f instanceof Array ? f : arguments, c = a.length - 1; 0 <= c && null == a[c] && b.log("parameters should not be ending with null in Javascript"); if (0 <= c) { for (var d = a[0], e = 1; e < c; e++) { a[e] && (d = b.yc.Rh(d, a[e])) } this.Il(d, a[c]) } }, Il: function(c, a) { if (!c || !a) { throw "cc.Sequence.initWithTwoActions(): arguments must all be non nil" } this.n(c.q + a.q); this.Ug[0] = c; this.Ug[1] = a; return !0 }, k: function() { var a = new b.yc; this.qa(a); a.Il(this.Ug[0].k(), this.Ug[1].k()); return a }, H: function(a) { b.D.prototype.H.call(this, a); this.mH = this.Ug[0].q / this.q; this.Yp = -1 }, stop: function() { -1 !== this.Yp && this.Ug[this.Yp].stop(); b.Yc.prototype.stop.call(this) }, update: function(f) { var a = 0, c = this.mH, d = this.Ug, e = this.Yp; f = this.Lc(f); f < c ? (f = 0 !== c ? f / c : 1, 0 === a && 1 === e && (d[1].update(0), d[1].stop())) : (a = 1, f = 1 === c ? 1 : (f - c) / (1 - c), -1 === e && (d[0].H(this.target), d[0].update(1), d[0].stop()), e || (d[0].update(1), d[0].stop())); d = d[a]; e === a && d.Zf() || (e !== a && d.H(this.target), f *= d.Of, d.update(1 < f ? f % 1 : f), this.Yp = a) }, reverse: function() { var a = b.yc.Rh(this.Ug[1].reverse(), this.Ug[0].reverse()); this.qa(a); this.Jd(a); return a } }); b.gb = function(f) { var g = f instanceof Array ? f : arguments; 0 < g.length && null == g[g.length - 1] && b.log("parameters should not be ending with null in Javascript"); for (var a, c, d, e; g && 0 < g.length;) { for (c = Array.prototype.shift.call(g), e = c.Of || 1, c.fl = !1, c.Of = 1, d = 0, a || (a = c, d = 1), d; d < e; d++) { a = b.yc.Rh(a, c) } } return a }; b.yc.create = b.gb; b.yc.Rh = function(d, a) { var c = new b.yc; c.Il(d, a); return c }; b.xs = b.D.extend({ Nf: 0, Pj: 0, Qy: 0, eE: !1, Ta: null, ctor: function(c, a) { b.D.prototype.ctor.call(this); void 0 !== a && this.$(c, a) }, $: function(c, a) { return this.n(c.q * a) ? (this.Nf = a, this.Ta = c, c instanceof b.Lg && (this.eE = !0, this.Nf -= 1), this.Pj = 0, !0) : !1 }, k: function() { var a = new b.xs; this.qa(a); a.$(this.Ta.k(), this.Nf); return a }, H: function(a) { this.Pj = 0; this.Qy = this.Ta.q / this.q; b.D.prototype.H.call(this, a); this.Ta.H(a) }, stop: function() { this.Ta.stop(); b.Yc.prototype.stop.call(this) }, update: function(f) { f = this.Lc(f); var a = this.Ta, c = this.q, d = this.Nf, e = this.Qy; if (f >= e) { for (; f > e && this.Pj < d;) { a.update(1), this.Pj++, a.stop(), a.H(this.target), this.Qy = e += a.q / c } 1 <= f && this.Pj < d && this.Pj++; this.eE || (this.Pj === d ? (a.update(1), a.stop()) : a.update(f - (e - a.q / c))) } else { a.update(f * d % 1) } }, Zf: function() { return this.Pj === this.Nf }, reverse: function() { var a = new b.xs(this.Ta.reverse(), this.Nf); this.qa(a); this.Jd(a); return a }, rK: function(a) { this.Ta !== a && (this.Ta = a) }, jB: function() { return this.Ta } }); b.repeat = function(c, a) { return new b.xs(c, a) }; b.xs.create = b.repeat; b.km = b.D.extend({ Ta: null, ctor: function(a) { b.D.prototype.ctor.call(this); this.Ta = null; a && this.$(a) }, $: function(a) { if (!a) { throw "cc.RepeatForever.initWithAction(): action must be non null" } this.Ta = a; return !0 }, k: function() { var a = new b.km; this.qa(a); a.$(this.Ta.k()); return a }, H: function(a) { b.D.prototype.H.call(this, a); this.Ta.H(a) }, step: function(c) { var a = this.Ta; a.step(c); a.Zf() && (a.H(this.target), a.step(a.Ab - a.q)) }, Zf: function() { return !1 }, reverse: function() { var a = new b.km(this.Ta.reverse()); this.qa(a); this.Jd(a); return a }, rK: function(a) { this.Ta !== a && (this.Ta = a) }, jB: function() { return this.Ta } }); b.VB = function(a) { return new b.km(a) }; b.km.create = b.VB; b.Oh = b.D.extend({ ei: null, wi: null, ctor: function(f) { b.D.prototype.ctor.call(this); this.wi = this.ei = null; var a = f instanceof Array ? f : arguments, c = a.length - 1; 0 <= c && null == a[c] && b.log("parameters should not be ending with null in Javascript"); if (0 <= c) { for (var d = a[0], e = 1; e < c; e++) { a[e] && (d = b.Oh.Rh(d, a[e])) } this.Il(d, a[c]) } }, Il: function(f, a) { if (!f || !a) { throw "cc.Spawn.initWithTwoActions(): arguments must all be non null" } var c = !1, d = f.q, e = a.q; this.n(Math.max(d, e)) && (this.ei = f, this.wi = a, d > e ? this.wi = b.yc.Rh(a, b.vd(d - e)) : d < e && (this.ei = b.yc.Rh(f, b.vd(e - d))), c = !0); return c }, k: function() { var a = new b.Oh; this.qa(a); a.Il(this.ei.k(), this.wi.k()); return a }, H: function(a) { b.D.prototype.H.call(this, a); this.ei.H(a); this.wi.H(a) }, stop: function() { this.ei.stop(); this.wi.stop(); b.Yc.prototype.stop.call(this) }, update: function(a) { a = this.Lc(a); this.ei && this.ei.update(a); this.wi && this.wi.update(a) }, reverse: function() { var a = b.Oh.Rh(this.ei.reverse(), this.wi.reverse()); this.qa(a); this.Jd(a); return a } }); b.hk = function(e) { var a = e instanceof Array ? e : arguments; 0 < a.length && null == a[a.length - 1] && b.log("parameters should not be ending with null in Javascript"); for (var c = a[0], d = 1; d < a.length; d++) { null != a[d] && (c = b.Oh.Rh(c, a[d])) } return c }; b.Oh.create = b.hk; b.Oh.Rh = function(d, a) { var c = new b.Oh; c.Il(d, a); return c }; b.Sw = b.D.extend({ nt: 0, oq: 0, DE: 0, Xx: 0, vn: 0, EE: 0, ctor: function(d, a, c) { b.D.prototype.ctor.call(this); void 0 !== a && this.n(d, a, c) }, n: function(d, a, c) { return b.D.prototype.n.call(this, d) ? (this.nt = a || 0, this.Xx = c || this.nt, !0) : !1 }, k: function() { var a = new b.Sw; this.qa(a); a.n(this.q, this.nt, this.Xx); return a }, H: function(d) { b.D.prototype.H.call(this, d); var a = d.rotationX % 360, c = this.nt - a; 180 < c && (c -= 360); - 180 > c && (c += 360); this.oq = a; this.DE = c; this.vn = d.rotationY % 360; d = this.Xx - this.vn; 180 < d && (d -= 360); - 180 > d && (d += 360); this.EE = d }, reverse: function() { b.log("cc.RotateTo.reverse(): it should be overridden in subclass.") }, update: function(a) { a = this.Lc(a); this.target && (this.target.rotationX = this.oq + this.DE * a, this.target.rotationY = this.vn + this.EE * a) } }); b.dX = function(d, a, c) { return new b.Sw(d, a, c) }; b.Sw.create = b.dX; b.ip = b.D.extend({ hg: 0, oq: 0, Xs: 0, vn: 0, ctor: function(d, a, c) { b.D.prototype.ctor.call(this); void 0 !== a && this.n(d, a, c) }, n: function(d, a, c) { return b.D.prototype.n.call(this, d) ? (this.hg = a || 0, this.Xs = c || this.hg, !0) : !1 }, k: function() { var a = new b.ip; this.qa(a); a.n(this.q, this.hg, this.Xs); return a }, H: function(a) { b.D.prototype.H.call(this, a); this.oq = a.rotationX; this.vn = a.rotationY }, update: function(a) { a = this.Lc(a); this.target && (this.target.rotationX = this.oq + this.hg * a, this.target.rotationY = this.vn + this.Xs * a) }, reverse: function() { var a = new b.ip(this.q, -this.hg, -this.Xs); this.qa(a); this.Jd(a); return a } }); b.XB = function(d, a, c) { return new b.ip(d, a, c) }; b.ip.create = b.XB; b.aj = b.D.extend({ lh: null, ic: null, qc: null, ctor: function(d, a, c) { b.D.prototype.ctor.call(this); this.lh = b.d(0, 0); this.ic = b.d(0, 0); this.qc = b.d(0, 0); void 0 !== a && this.n(d, a, c) }, n: function(d, a, c) { return b.D.prototype.n.call(this, d) ? (void 0 !== a.x && (c = a.y, a = a.x), this.lh.x = a, this.lh.y = c, !0) : !1 }, k: function() { var a = new b.aj; this.qa(a); a.n(this.q, this.lh); return a }, H: function(c) { b.D.prototype.H.call(this, c); var a = c.pb(); c = c.qb(); this.qc.x = a; this.qc.y = c; this.ic.x = a; this.ic.y = c }, update: function(f) { f = this.Lc(f); if (this.target) { var a = this.lh.x * f; f *= this.lh.y; var c = this.ic; if (b.Xr) { var d = this.target.qb(), e = this.qc; c.x = c.x + this.target.pb() - e.x; c.y = c.y + d - e.y; a += c.x; f += c.y; e.x = a; e.y = f; this.target.G(a, f) } else { this.target.G(c.x + a, c.y + f) } } }, reverse: function() { var a = new b.aj(this.q, b.d(-this.lh.x, -this.lh.y)); this.qa(a); this.Jd(a); return a } }); b.moveBy = function(d, a, c) { return new b.aj(d, a, c) }; b.aj.create = b.moveBy; b.bj = b.aj.extend({ Pe: null, ctor: function(d, a, c) { b.aj.prototype.ctor.call(this); this.Pe = b.d(0, 0); void 0 !== a && this.n(d, a, c) }, n: function(d, a, c) { return b.aj.prototype.n.call(this, d, a, c) ? (void 0 !== a.x && (c = a.y, a = a.x), this.Pe.x = a, this.Pe.y = c, !0) : !1 }, k: function() { var a = new b.bj; this.qa(a); a.n(this.q, this.Pe); return a }, H: function(a) { b.aj.prototype.H.call(this, a); this.lh.x = this.Pe.x - a.pb(); this.lh.y = this.Pe.y - a.qb() } }); b.moveTo = function(d, a, c) { return new b.bj(d, a, c) }; b.bj.create = b.moveTo; b.Ck = b.D.extend({ xg: 0, yg: 0, qu: 0, ru: 0, qt: 0, rt: 0, pe: 0, qe: 0, ctor: function(d, a, c) { b.D.prototype.ctor.call(this); void 0 !== c && this.n(d, a, c) }, n: function(e, a, c) { var d = !1; b.D.prototype.n.call(this, e) && (this.qt = a, this.rt = c, d = !0); return d }, k: function() { var a = new b.Ck; this.qa(a); a.n(this.q, this.qt, this.rt); return a }, H: function(a) { b.D.prototype.H.call(this, a); this.qu = a.skewX % 180; this.pe = this.qt - this.qu; 180 < this.pe && (this.pe -= 360); - 180 > this.pe && (this.pe += 360); this.ru = a.skewY % 360; this.qe = this.rt - this.ru; 180 < this.qe && (this.qe -= 360); - 180 > this.qe && (this.qe += 360) }, update: function(a) { a = this.Lc(a); this.target.skewX = this.qu + this.pe * a; this.target.skewY = this.ru + this.qe * a } }); b.mY = function(d, a, c) { return new b.Ck(d, a, c) }; b.Ck.create = b.mY; b.Cs = b.Ck.extend({ ctor: function(d, a, c) { b.Ck.prototype.ctor.call(this); void 0 !== c && this.n(d, a, c) }, n: function(e, a, c) { var d = !1; b.Ck.prototype.n.call(this, e, a, c) && (this.xg = a, this.yg = c, d = !0); return d }, k: function() { var a = new b.Cs; this.qa(a); a.n(this.q, this.xg, this.yg); return a }, H: function(a) { b.Ck.prototype.H.call(this, a); this.pe = this.xg; this.qe = this.yg; this.qt = this.qu + this.pe; this.rt = this.ru + this.qe }, reverse: function() { var a = new b.Cs(this.q, -this.xg, -this.yg); this.qa(a); this.Jd(a); return a } }); b.lY = function(d, a, c) { return new b.Cs(d, a, c) }; b.Cs.create = b.lY; b.$i = b.D.extend({ ic: null, Zg: null, Tp: 0, Xp: 0, qc: null, ctor: function(f, a, c, d, e) { b.D.prototype.ctor.call(this); this.ic = b.d(0, 0); this.qc = b.d(0, 0); this.Zg = b.d(0, 0); void 0 !== d && this.n(f, a, c, d, e) }, n: function(f, a, c, d, e) { return b.D.prototype.n.call(this, f) ? (void 0 === e && (e = d, d = c, c = a.y, a = a.x), this.Zg.x = a, this.Zg.y = c, this.Tp = d, this.Xp = e, !0) : !1 }, k: function() { var a = new b.$i; this.qa(a); a.n(this.q, this.Zg, this.Tp, this.Xp); return a }, H: function(c) { b.D.prototype.H.call(this, c); var a = c.pb(); c = c.qb(); this.qc.x = a; this.qc.y = c; this.ic.x = a; this.ic.y = c }, update: function(f) { f = this.Lc(f); if (this.target) { var a = f * this.Xp % 1, a = 4 * this.Tp * a * (1 - a), a = a + this.Zg.y * f; f *= this.Zg.x; var c = this.ic; if (b.Xr) { var d = this.target.qb(), e = this.qc; c.x = c.x + this.target.pb() - e.x; c.y = c.y + d - e.y; f += c.x; a += c.y; e.x = f; e.y = a; this.target.G(f, a) } else { this.target.G(c.x + f, c.y + a) } } }, reverse: function() { var a = new b.$i(this.q, b.d(-this.Zg.x, -this.Zg.y), this.Tp, this.Xp); this.qa(a); this.Jd(a); return a } }); b.yJ = function(f, a, c, d, e) { return new b.$i(f, a, c, d, e) }; b.$i.create = b.yJ; b.xw = b.$i.extend({ Pe: null, ctor: function(f, a, c, d, e) { b.$i.prototype.ctor.call(this); this.Pe = b.d(0, 0); void 0 !== d && this.n(f, a, c, d, e) }, n: function(f, a, c, d, e) { return b.$i.prototype.n.call(this, f, a, c, d, e) ? (void 0 === e && (c = a.y, a = a.x), this.Pe.x = a, this.Pe.y = c, !0) : !1 }, H: function(a) { b.$i.prototype.H.call(this, a); this.Zg.x = this.Pe.x - this.ic.x; this.Zg.y = this.Pe.y - this.ic.y }, k: function() { var a = new b.xw; this.qa(a); a.n(this.q, this.Pe, this.Tp, this.Xp); return a } }); b.aW = function(f, a, c, d, e) { return new b.xw(f, a, c, d, e) }; b.xw.create = b.aW; b.eI = function(e, a, c, d) { return 0 * Math.pow(1 - d, 3) + 3 * d * Math.pow(1 - d, 2) * e + 3 * Math.pow(d, 2) * (1 - d) * a + Math.pow(d, 3) * c }; b.sk = b.D.extend({ Ne: null, ic: null, qc: null, ctor: function(c, a) { b.D.prototype.ctor.call(this); this.Ne = []; this.ic = b.d(0, 0); this.qc = b.d(0, 0); a && this.n(c, a) }, n: function(c, a) { return b.D.prototype.n.call(this, c) ? (this.Ne = a, !0) : !1 }, k: function() { var e = new b.sk; this.qa(e); for (var a = [], c = 0; c < this.Ne.length; c++) { var d = this.Ne[c]; a.push(b.d(d.x, d.y)) } e.n(this.q, a); return e }, H: function(c) { b.D.prototype.H.call(this, c); var a = c.pb(); c = c.qb(); this.qc.x = a; this.qc.y = c; this.ic.x = a; this.ic.y = c }, update: function(f) { f = this.Lc(f); if (this.target) { var a = this.Ne, c = b.eI(a[0].x, a[1].x, a[2].x, f); f = b.eI(a[0].y, a[1].y, a[2].y, f); a = this.ic; if (b.Xr) { var d = this.target.qb(), e = this.qc; a.x = a.x + this.target.pb() - e.x; a.y = a.y + d - e.y; c += a.x; f += a.y; e.x = c; e.y = f; this.target.G(c, f) } else { this.target.G(a.x + c, a.y + f) } } }, reverse: function() { var a = this.Ne, a = [b.Hg(a[1], b.NB(a[2])), b.Hg(a[0], b.NB(a[2])), b.NB(a[2])], a = new b.sk(this.q, a); this.qa(a); this.Jd(a); return a } }); b.VS = function(c, a) { return new b.sk(c, a) }; b.sk.create = b.VS; b.Tr = b.sk.extend({ zu: null, ctor: function(c, a) { b.sk.prototype.ctor.call(this); this.zu = []; a && this.n(c, a) }, n: function(c, a) { return b.D.prototype.n.call(this, c) ? (this.zu = a, !0) : !1 }, k: function() { var a = new b.Tr; this.qa(a); a.n(this.q, this.zu); return a }, H: function(d) { b.sk.prototype.H.call(this, d); d = this.ic; var a = this.zu, c = this.Ne; c[0] = b.od(a[0], d); c[1] = b.od(a[1], d); c[2] = b.od(a[2], d) } }); b.WS = function(c, a) { return new b.Tr(c, a) }; b.Tr.create = b.WS; b.Bk = b.D.extend({ Ca: 1, ib: 1, pq: 1, qq: 1, Mm: 0, Nm: 0, pe: 0, qe: 0, ctor: function(d, a, c) { b.D.prototype.ctor.call(this); void 0 !== a && this.n(d, a, c) }, n: function(d, a, c) { return b.D.prototype.n.call(this, d) ? (this.Mm = a, this.Nm = null != c ? c : a, !0) : !1 }, k: function() { var a = new b.Bk; this.qa(a); a.n(this.q, this.Mm, this.Nm); return a }, H: function(a) { b.D.prototype.H.call(this, a); this.pq = a.scaleX; this.qq = a.scaleY; this.pe = this.Mm - this.pq; this.qe = this.Nm - this.qq }, update: function(a) { a = this.Lc(a); this.target && (this.target.scaleX = this.pq + this.pe * a, this.target.scaleY = this.qq + this.qe * a) } }); b.Fe = function(d, a, c) { return new b.Bk(d, a, c) }; b.Bk.create = b.Fe; b.As = b.Bk.extend({ H: function(a) { b.Bk.prototype.H.call(this, a); this.pe = this.pq * this.Mm - this.pq; this.qe = this.qq * this.Nm - this.qq }, reverse: function() { var a = new b.As(this.q, 1 / this.Mm, 1 / this.Nm); this.qa(a); this.Jd(a); return a }, k: function() { var a = new b.As; this.qa(a); a.n(this.q, this.Mm, this.Nm); return a } }); b.eK = function(d, a, c) { return new b.As(d, a, c) }; b.As.create = b.eK; b.Ur = b.D.extend({ Nf: 0, tG: !1, ctor: function(c, a) { b.D.prototype.ctor.call(this); void 0 !== a && this.n(c, a) }, n: function(c, a) { return b.D.prototype.n.call(this, c) ? (this.Nf = a, !0) : !1 }, k: function() { var a = new b.Ur; this.qa(a); a.n(this.q, this.Nf); return a }, update: function(c) { c = this.Lc(c); if (this.target && !this.Zf()) { var a = 1 / this.Nf; this.target.visible = c % a > a / 2 } }, H: function(a) { b.D.prototype.H.call(this, a); this.tG = a.visible }, stop: function() { this.target.visible = this.tG; b.D.prototype.stop.call(this) }, reverse: function() { var a = new b.Ur(this.q, this.Nf); this.qa(a); this.Jd(a); return a } }); b.blink = function(c, a) { return new b.Ur(c, a) }; b.Ur.create = b.blink; b.Zi = b.D.extend({ Cn: 0, xt: 0, ctor: function(c, a) { b.D.prototype.ctor.call(this); void 0 !== a && this.n(c, a) }, n: function(c, a) { return b.D.prototype.n.call(this, c) ? (this.Cn = a, !0) : !1 }, k: function() { var a = new b.Zi; this.qa(a); a.n(this.q, this.Cn); return a }, update: function(c) { c = this.Lc(c); var a = void 0 !== this.xt ? this.xt : 255; this.target.opacity = a + (this.Cn - a) * c }, H: function(a) { b.D.prototype.H.call(this, a); this.xt = a.opacity } }); b.WA = function(c, a) { return new b.Zi(c, a) }; b.Zi.create = b.WA; b.wk = b.Zi.extend({ sz: null, ctor: function(a) { b.Zi.prototype.ctor.call(this); null == a && (a = 0); this.n(a, 255) }, reverse: function() { var a = new b.$o; a.n(this.q, 0); this.qa(a); this.Jd(a); return a }, k: function() { var a = new b.wk; this.qa(a); a.n(this.q, this.Cn); return a }, H: function(a) { this.sz && (this.Cn = this.sz.xt); b.Zi.prototype.H.call(this, a) } }); b.GI = function(a) { return new b.wk(a) }; b.wk.create = b.GI; b.$o = b.Zi.extend({ ctor: function(a) { b.Zi.prototype.ctor.call(this); null == a && (a = 0); this.n(a, 0) }, reverse: function() { var a = new b.wk; a.sz = this; a.n(this.q, 255); this.qa(a); this.Jd(a); return a }, k: function() { var a = new b.$o; this.qa(a); a.n(this.q, this.Cn); return a } }); b.HI = function(a) { return new b.$o(a) }; b.$o.create = b.HI; b.hx = b.D.extend({ Tc: null, Mc: null, ctor: function(e, a, c, d) { b.D.prototype.ctor.call(this); this.Tc = b.color(0, 0, 0); this.Mc = b.color(0, 0, 0); void 0 !== d && this.n(e, a, c, d) }, n: function(e, a, c, d) { return b.D.prototype.n.call(this, e) ? (this.Tc = b.color(a, c, d), !0) : !1 }, k: function() { var c = new b.hx; this.qa(c); var a = this.Tc; c.n(this.q, a.r, a.g, a.b); return c }, H: function(a) { b.D.prototype.H.call(this, a); this.Mc = this.target.color }, update: function(d) { d = this.Lc(d); var a = this.Mc, c = this.Tc; a && (this.target.color = b.color(a.r + (c.r - a.r) * d, a.g + (c.g - a.g) * d, a.b + (c.b - a.b) * d)) } }); b.MY = function(e, a, c, d) { return new b.hx(e, a, c, d) }; b.hx.create = b.MY; b.Hs = b.D.extend({ lt: 0, kt: 0, jt: 0, yF: 0, xF: 0, wF: 0, ctor: function(e, a, c, d) { b.D.prototype.ctor.call(this); void 0 !== d && this.n(e, a, c, d) }, n: function(e, a, c, d) { return b.D.prototype.n.call(this, e) ? (this.lt = a, this.kt = c, this.jt = d, !0) : !1 }, k: function() { var a = new b.Hs; this.qa(a); a.n(this.q, this.lt, this.kt, this.jt); return a }, H: function(a) { b.D.prototype.H.call(this, a); a = a.color; this.yF = a.r; this.xF = a.g; this.wF = a.b }, update: function(a) { a = this.Lc(a); this.target.color = b.color(this.yF + this.lt * a, this.xF + this.kt * a, this.wF + this.jt * a) }, reverse: function() { var a = new b.Hs(this.q, -this.lt, -this.kt, -this.jt); this.qa(a); this.Jd(a); return a } }); b.LY = function(e, a, c, d) { return new b.Hs(e, a, c, d) }; b.Hs.create = b.LY; b.bm = b.D.extend({ update: function() {}, reverse: function() { var a = new b.bm(this.q); this.qa(a); this.Jd(a); return a }, k: function() { var a = new b.bm; this.qa(a); a.n(this.q); return a } }); b.vd = function(a) { return new b.bm(a) }; b.bm.create = b.vd; b.ys = b.D.extend({ gi: null, ctor: function(a) { b.D.prototype.ctor.call(this); this.gi = null; a && this.$(a) }, $: function(a) { if (!a) { throw "cc.ReverseTime.initWithAction(): action must be non null" } if (a === this.gi) { throw "cc.ReverseTime.initWithAction(): the action was already passed in." } return b.D.prototype.n.call(this, a.q) ? (this.gi = a, !0) : !1 }, k: function() { var a = new b.ys; this.qa(a); a.$(this.gi.k()); return a }, H: function(a) { b.D.prototype.H.call(this, a); this.gi.H(a) }, update: function(a) { a = this.Lc(a); this.gi && this.gi.update(1 - a) }, reverse: function() { return this.gi.k() }, stop: function() { this.gi.stop(); b.Yc.prototype.stop.call(this) } }); b.bK = function(a) { return new b.ys(a) }; b.ys.create = b.bK; b.Pr = b.D.extend({ pj: null, cq: 0, Wy: null, tt: 0, Tz: null, ctor: function(a) { b.D.prototype.ctor.call(this); this.Tz = []; a && this.kJ(a) }, MI: function() { return this.pj }, hX: function(a) { this.pj = a }, kJ: function(e) { if (!e) { throw "cc.Animate.initWithAnimation(): animation must be non-NULL" } var f = e.gB(); if (this.n(f * e.di)) { this.cq = 0; this.hX(e); this.Wy = null; this.tt = 0; var g = this.Tz, h = g.length = 0, a = f / e.ph; e = e.sd; b.Hq(e, b.of); for (var c = 0; c < e.length; c++) { var d = h * a / f, h = h + e[c].rd; g.push(d) } return !0 } return !1 }, k: function() { var a = new b.Pr; this.qa(a); a.kJ(this.pj.k()); return a }, H: function(a) { b.D.prototype.H.call(this, a); this.pj.hl && (this.Wy = a.wT()); this.tt = this.cq = 0 }, update: function(f) { f = this.Lc(f); 1 > f && (f *= this.pj.di, (0 | f) > this.tt && (this.cq = 0, this.tt++), f %= 1); for (var a = this.pj.sd, c = a.length, d = this.Tz, e = this.cq; e < c; e++) { if (d[e] <= f) { this.target.Ul(a[e].V()), this.cq = e + 1 } else { break } } }, reverse: function() { var f = this.pj, a = f.sd, c = []; b.Hq(a, b.of); if (0 < a.length) { for (var d = a.length - 1; 0 <= d; d--) { var e = a[d]; if (!e) { break } c.push(e.k()) } } a = new b.Kh(c, f.rd, f.di); a.Uv(f.hl); f = new b.Pr(a); this.qa(f); this.Jd(f); return f }, stop: function() { this.pj.hl && this.target && this.target.Ul(this.Wy); b.Yc.prototype.stop.call(this) } }); b.FS = function(a) { return new b.Pr(a) }; b.Pr.create = b.FS; b.fx = b.D.extend({ vp: null, Sm: null, ctor: function(c, a) { b.D.prototype.ctor.call(this); a && this.fo(c, a) }, fo: function(c, a) { return this.n(a.q) ? (this.Sm = c, this.vp = a, !0) : !1 }, k: function() { var a = new b.fx; this.qa(a); a.fo(this.Sm, this.vp.k()); return a }, H: function(a) { b.D.prototype.H.call(this, a); this.vp.H(this.Sm) }, stop: function() { this.vp.stop() }, update: function(a) { a = this.Lc(a); this.vp.update(a) }, c5: function() { return this.Sm }, V$: function(a) { this.Sm !== a && (this.Sm = a) } }); b.CY = function(c, a) { return new b.fx(c, a) }; b.fx.create = b.CY; b.Lg = b.Mh.extend({ Zf: function() { return !0 }, step: function() { this.update(1) }, update: function() {}, reverse: function() { return this.k() }, k: function() { return new b.Lg } }); b.Bs = b.Lg.extend({ update: function() { this.target.visible = !0 }, reverse: function() { return new b.ss }, k: function() { return new b.Bs } }); b.show = function() { return new b.Bs }; b.Bs.create = b.show; b.ss = b.Lg.extend({ update: function() { this.target.visible = !1 }, reverse: function() { return new b.Bs }, k: function() { return new b.ss } }); b.Gl = function() { return new b.ss }; b.ss.create = b.Gl; b.Is = b.Lg.extend({ update: function() { this.target.visible = !this.target.visible }, reverse: function() { return new b.Is }, k: function() { return new b.Is } }); b.OY = function() { return new b.Is }; b.Is.create = b.OY; b.ws = b.Lg.extend({ It: !0, ctor: function(a) { b.Mh.prototype.ctor.call(this); void 0 !== a && this.oa(a) }, update: function() { this.target.vc(this.It) }, oa: function(a) { this.It = a; return !0 }, reverse: function() { return new b.ws(this.It) }, k: function() { return new b.ws(this.It) } }); b.WW = function(a) { return new b.ws(a) }; b.ws.create = b.WW; b.qs = b.Lg.extend({ Ac: !1, ctor: function(a) { b.Mh.prototype.ctor.call(this); this.Ac = !1; void 0 !== a && this.mJ(a) }, mJ: function(a) { this.Ac = a; return !0 }, update: function() { this.target.flippedX = this.Ac }, reverse: function() { return new b.qs(!this.Ac) }, k: function() { var a = new b.qs; a.mJ(this.Ac); return a } }); b.dU = function(a) { return new b.qs(a) }; b.qs.create = b.dU; b.rs = b.Lg.extend({ Bc: !1, ctor: function(a) { b.Mh.prototype.ctor.call(this); this.Bc = !1; void 0 !== a && this.nJ(a) }, nJ: function(a) { this.Bc = a; return !0 }, update: function() { this.target.flippedY = this.Bc }, reverse: function() { return new b.rs(!this.Bc) }, k: function() { var a = new b.rs; a.nJ(this.Bc); return a } }); b.eU = function(a) { return new b.rs(a) }; b.rs.create = b.eU; b.Gw = b.Lg.extend({ Cg: 0, de: 0, ctor: function(c, a) { b.Mh.prototype.ctor.call(this); this.de = this.Cg = 0; void 0 !== c && (void 0 !== c.x && (a = c.y, c = c.x), this.sJ(c, a)) }, sJ: function(c, a) { this.Cg = c; this.de = a; return !0 }, update: function() { this.target.G(this.Cg, this.de) }, k: function() { var a = new b.Gw; a.sJ(this.Cg, this.de); return a } }); b.zW = function(c, a) { return new b.Gw(c, a) }; b.Gw.create = b.zW; b.Xi = b.Lg.extend({ pi: null, dt: null, Qp: null, Tx: null, ctor: function(d, a, c) { b.Mh.prototype.ctor.call(this); void 0 !== d && (void 0 === a ? this.lv(d) : this.lv(d, a, c)) }, lv: function(d, a, c) { a ? (this.Tx = c, this.dt = d, this.pi = a) : d && (this.Qp = d); return !0 }, execute: function() { null != this.dt ? this.dt.call(this.pi, this.target, this.Tx) : this.Qp && this.Qp.call(null, this.target) }, update: function() { this.execute() }, a6: function() { return this.pi }, Gaa: function(a) { a !== this.pi && (this.pi && (this.pi = null), this.pi = a) }, k: function() { var a = new b.Xi; this.pi ? a.lv(this.dt, this.pi, this.Tx) : this.Qp && a.lv(this.Qp); return a } }); b.$b = function(d, a, c) { return new b.Xi(d, a, c) }; b.Xi.create = b.$b; b.ew = b.D.extend({ Gx: 0, Hx: 0, Ix: 0, nF: 0, oF: 0, pF: 0, CH: 0, DH: 0, EH: 0, ctor: function() { b.D.prototype.ctor.call(this); this.EH = this.DH = this.CH = this.pF = this.oF = this.nF = this.Ix = this.Hx = this.Gx = 0 }, H: function(c) { b.D.prototype.H.call(this, c); c = c.Wn(); var a = c.OI(); this.Gx = a.x; this.Hx = a.y; this.Ix = a.z; a = c.QI(); this.nF = a.x; this.oF = a.y; this.pF = a.z; c = c.mV(); this.CH = c.x; this.DH = c.y; this.EH = c.z }, k: function() { return new b.ew }, reverse: function() { return new b.ys(this) } }); b.Dw = b.ew.extend({ Ij: 0, Vx: 0, zp: 0, BE: 0, hg: 0, AE: 0, HG: 0, FG: 0, GG: 0, EG: 0, ctor: function(e, f, g, h, a, c, d) { b.ew.prototype.ctor.call(this); void 0 !== d && this.n(e, f, g, h, a, c, d) }, n: function(e, f, g, h, a, c, d) { return b.D.prototype.n.call(this, e) ? (this.Ij = f, this.Vx = g, this.zp = h, this.BE = a, this.hg = c, this.AE = d, this.FG = b.Ce(a), this.EG = b.Ce(d), !0) : !1 }, nY: function() { var f, a; a = this.target.Wn(); var c = a.QI(); f = a.OI(); a = c.x - f.x; var d = c.y - f.y; f = c.z - f.z; var c = Math.sqrt(Math.pow(a, 2) + Math.pow(d, 2) + Math.pow(f, 2)), e = Math.sqrt(Math.pow(a, 2) + Math.pow(d, 2)); 0 === e && (e = b.ps); 0 === c && (c = b.ps); f = Math.acos(f / c); a = 0 > a ? Math.PI - Math.asin(d / e) : Math.asin(d / e); return { qW: c / b.Go.bo(), bZ: f, azimuth: a } }, H: function(a) { b.D.prototype.H.call(this, a); a = this.nY(); isNaN(this.Ij) && (this.Ij = a.qW); isNaN(this.zp) && (this.zp = b.QB(a.bZ)); isNaN(this.hg) && (this.hg = b.QB(a.azimuth)); this.HG = b.Ce(this.zp); this.GG = b.Ce(this.hg) }, k: function() { var a = new b.Dw; a.n(this.q, this.Ij, this.Vx, this.zp, this.BE, this.hg, this.AE); return a }, update: function(e) { e = this.Lc(e); var a = (this.Ij + this.Vx * e) * b.Go.bo(), c = this.HG + this.FG * e, d = this.GG + this.EG * e; e = Math.sin(c) * Math.cos(d) * a + this.Gx; d = Math.sin(c) * Math.sin(d) * a + this.Hx; a = Math.cos(c) * a + this.Ix; this.target.Wn().oK(e, d, a); this.target.Oi() } }); b.gf = function(e, f, g, h, a, c, d) { return new b.Dw(e, f, g, h, a, c, d) }; b.Dw.create = b.gf; b.Fa = b.D.extend({ t: null, ctor: function(a) { b.D.prototype.ctor.call(this); a && this.$(a) }, $: function(a) { if (!a) { throw "cc.ActionEase.initWithAction(): action must be non nil" } return this.n(a.gB()) ? (this.t = a, !0) : !1 }, k: function() { var a = new b.Fa; a.$(this.t.k()); return a }, H: function(a) { b.D.prototype.H.call(this, a); this.t.H(this.target) }, stop: function() { this.t.stop(); b.D.prototype.stop.call(this) }, update: function(a) { this.t.update(a) }, reverse: function() { return new b.Fa(this.t.reverse()) }, jB: function() { return this.t } }); b.bS = function(a) { return new b.Fa(a) }; b.Fa.create = b.bS; b.uk = b.Fa.extend({ Ob: 0, ctor: function(c, a) { b.Fa.prototype.ctor.call(this); void 0 !== a && this.$(c, a) }, uaa: function(a) { this.Ob = a }, I5: function() { return this.Ob }, $: function(c, a) { return b.Fa.prototype.$.call(this, c) ? (this.Ob = a, !0) : !1 }, k: function() { var a = new b.uk; a.$(this.t.k(), this.Ob); return a }, reverse: function() { return new b.uk(this.t.reverse(), 1 / this.Ob) } }); b.ST = function(c, a) { return new b.uk(c, a) }; b.uk.create = b.ST; b.ls = b.uk.extend({ update: function(a) { this.t.update(Math.pow(a, this.Ob)) }, reverse: function() { return new b.ls(this.t.reverse(), 1 / this.Ob) }, k: function() { var a = new b.ls; a.$(this.t.k(), this.Ob); return a } }); b.ls.create = function(c, a) { return new b.ls(c, a) }; b.PT = function(a) { return { Ob: a, Ha: function(c) { return Math.pow(c, this.Ob) }, reverse: function() { return b.PT(1 / this.Ob) } } }; b.em = b.uk.extend({ update: function(a) { this.t.update(Math.pow(a, 1 / this.Ob)) }, reverse: function() { return new b.em(this.t.reverse(), 1 / this.Ob) }, k: function() { var a = new b.em; a.$(this.t.k(), this.Ob); return a } }); b.em.create = function(c, a) { return new b.em(c, a) }; b.RT = function(a) { return { Ob: a, Ha: function(c) { return Math.pow(c, 1 / this.Ob) }, reverse: function() { return b.RT(1 / this.Ob) } } }; b.dm = b.uk.extend({ update: function(a) { a *= 2; 1 > a ? this.t.update(0.5 * Math.pow(a, this.Ob)) : this.t.update(1 - 0.5 * Math.pow(2 - a, this.Ob)) }, k: function() { var a = new b.dm; a.$(this.t.k(), this.Ob); return a }, reverse: function() { return new b.dm(this.t.reverse(), this.Ob) } }); b.dm.create = function(c, a) { return new b.dm(c, a) }; b.QT = function(a) { return { Ob: a, Ha: function(c) { c *= 2; return 1 > c ? 0.5 * Math.pow(c, this.Ob) : 1 - 0.5 * Math.pow(2 - c, this.Ob) }, reverse: function() { return b.QT(this.Ob) } } }; b.is = b.Fa.extend({ update: function(a) { this.t.update(0 === a ? 0 : Math.pow(2, 10 * (a - 1))) }, reverse: function() { return new b.ks(this.t.reverse()) }, k: function() { var a = new b.is; a.$(this.t.k()); return a } }); b.is.create = function(a) { return new b.is(a) }; b.VE = { Ha: function(a) { return 0 === a ? 0 : Math.pow(2, 10 * (a - 1)) }, reverse: function() { return b.XE } }; b.w3 = function() { return b.VE }; b.ks = b.Fa.extend({ update: function(a) { this.t.update(1 === a ? 1 : -Math.pow(2, -10 * a) + 1) }, reverse: function() { return new b.is(this.t.reverse()) }, k: function() { var a = new b.ks; a.$(this.t.k()); return a } }); b.ks.create = function(a) { return new b.ks(a) }; b.XE = { Ha: function(a) { return 1 === a ? 1 : -Math.pow(2, -10 * a) + 1 }, reverse: function() { return b.VE } }; b.y3 = function() { return b.XE }; b.js = b.Fa.extend({ update: function(a) { 1 !== a && 0 !== a && (a *= 2, a = 1 > a ? 0.5 * Math.pow(2, 10 * (a - 1)) : 0.5 * (-Math.pow(2, -10 * (a - 1)) + 2)); this.t.update(a) }, reverse: function() { return new b.js(this.t.reverse()) }, k: function() { var a = new b.js; a.$(this.t.k()); return a } }); b.js.create = function(a) { return new b.js(a) }; b.WE = { Ha: function(a) { return 1 !== a && 0 !== a ? (a *= 2, 1 > a ? 0.5 * Math.pow(2, 10 * (a - 1)) : 0.5 * (-Math.pow(2, -10 * (a - 1)) + 2)) : a }, reverse: function() { return b.WE } }; b.x3 = function() { return b.WE }; b.ms = b.Fa.extend({ update: function(a) { a = 0 === a || 1 === a ? a : -1 * Math.cos(a * Math.PI / 2) + 1; this.t.update(a) }, reverse: function() { return new b.os(this.t.reverse()) }, k: function() { var a = new b.ms; a.$(this.t.k()); return a } }); b.ms.create = function(a) { return new b.ms(a) }; b.gF = { Ha: function(a) { return 0 === a || 1 === a ? a : -1 * Math.cos(a * Math.PI / 2) + 1 }, reverse: function() { return b.iF } }; b.I3 = function() { return b.gF }; b.os = b.Fa.extend({ update: function(a) { a = 0 === a || 1 === a ? a : Math.sin(a * Math.PI / 2); this.t.update(a) }, reverse: function() { return new b.ms(this.t.reverse()) }, k: function() { var a = new b.os; a.$(this.t.k()); return a } }); b.os.create = function(a) { return new b.os(a) }; b.iF = { Ha: function(a) { return 0 === a || 1 === a ? a : Math.sin(a * Math.PI / 2) }, reverse: function() { return b.gF } }; b.K3 = function() { return b.iF }; b.ns = b.Fa.extend({ update: function(a) { a = 0 === a || 1 === a ? a : -0.5 * (Math.cos(Math.PI * a) - 1); this.t.update(a) }, k: function() { var a = new b.ns; a.$(this.t.k()); return a }, reverse: function() { return new b.ns(this.t.reverse()) } }); b.ns.create = function(a) { return new b.ns(a) }; b.hF = { Ha: function(a) { return 0 === a || 1 === a ? a : -0.5 * (Math.cos(Math.PI * a) - 1) }, reverse: function() { return b.hF } }; b.J3 = function() { return b.hF }; b.cm = b.Fa.extend({ nb: 0.3, ctor: function(c, a) { b.Fa.prototype.ctor.call(this); c && this.$(c, a) }, C5: function() { return this.nb }, raa: function(a) { this.nb = a }, $: function(c, a) { b.Fa.prototype.$.call(this, c); this.nb = null == a ? 0.3 : a; return !0 }, reverse: function() { b.log("cc.EaseElastic.reverse(): it should be overridden in subclass."); return null }, k: function() { var a = new b.cm; a.$(this.t.k(), this.nb); return a } }); b.cm.create = function(c, a) { return new b.cm(c, a) }; b.fs = b.cm.extend({ update: function(c) { var a = 0; 0 === c || 1 === c ? a = c : (a = this.nb / 4, c -= 1, a = -Math.pow(2, 10 * c) * Math.sin((c - a) * Math.PI * 2 / this.nb)); this.t.update(a) }, reverse: function() { return new b.hs(this.t.reverse(), this.nb) }, k: function() { var a = new b.fs; a.$(this.t.k(), this.nb); return a } }); b.fs.create = function(c, a) { return new b.fs(c, a) }; b.TE = { Ha: function(a) { if (0 === a || 1 === a) { return a } a -= 1; return -Math.pow(2, 10 * a) * Math.sin((a - 0.075) * Math.PI * 2 / 0.3) }, reverse: function() { return b.UE } }; b.MT = function(a) { return a && 0.3 !== a ? { nb: a, Ha: function(c) { if (0 === c || 1 === c) { return c } c -= 1; return -Math.pow(2, 10 * c) * Math.sin((c - this.nb / 4) * Math.PI * 2 / this.nb) }, reverse: function() { return b.OT(this.nb) } } : b.TE }; b.hs = b.cm.extend({ update: function(c) { var a = 0, a = 0 === c || 1 === c ? c : Math.pow(2, -10 * c) * Math.sin((c - this.nb / 4) * Math.PI * 2 / this.nb) + 1; this.t.update(a) }, reverse: function() { return new b.fs(this.t.reverse(), this.nb) }, k: function() { var a = new b.hs; a.$(this.t.k(), this.nb); return a } }); b.hs.create = function(c, a) { return new b.hs(c, a) }; b.UE = { Ha: function(a) { return 0 === a || 1 === a ? a : Math.pow(2, -10 * a) * Math.sin((a - 0.075) * Math.PI * 2 / 0.3) + 1 }, reverse: function() { return b.TE } }; b.OT = function(a) { return a && 0.3 !== a ? { nb: a, Ha: function(c) { return 0 === c || 1 === c ? c : Math.pow(2, -10 * c) * Math.sin((c - this.nb / 4) * Math.PI * 2 / this.nb) + 1 }, reverse: function() { return b.MT(this.nb) } } : b.UE }; b.gs = b.cm.extend({ update: function(d) { var a = 0, a = this.nb; if (0 === d || 1 === d) { a = d } else { a || (a = this.nb = 0.3 * 1.5); var c = a / 4; d = 2 * d - 1; a = 0 > d ? -0.5 * Math.pow(2, 10 * d) * Math.sin((d - c) * Math.PI * 2 / a) : Math.pow(2, -10 * d) * Math.sin((d - c) * Math.PI * 2 / a) * 0.5 + 1 } this.t.update(a) }, reverse: function() { return new b.gs(this.t.reverse(), this.nb) }, k: function() { var a = new b.gs; a.$(this.t.k(), this.nb); return a } }); b.gs.create = function(c, a) { return new b.gs(c, a) }; b.NT = function(a) { return { nb: a || 0.3, Ha: function(e) { var c = 0, c = this.nb; if (0 === e || 1 === e) { c = e } else { c || (c = this.nb = 0.3 * 1.5); var d = c / 4; e = 2 * e - 1; c = 0 > e ? -0.5 * Math.pow(2, 10 * e) * Math.sin((e - d) * Math.PI * 2 / c) : Math.pow(2, -10 * e) * Math.sin((e - d) * Math.PI * 2 / c) * 0.5 + 1 } return c }, reverse: function() { return b.NT(this.nb) } } }; b.tk = b.Fa.extend({ Mu: function(a) { if (a < 1 / 2.75) { return 7.5625 * a * a } if (a < 2 / 2.75) { return a -= 1.5 / 2.75, 7.5625 * a * a + 0.75 } if (a < 2.5 / 2.75) { return a -= 2.25 / 2.75, 7.5625 * a * a + 0.9375 } a -= 2.625 / 2.75; return 7.5625 * a * a + 0.984375 }, k: function() { var a = new b.tk; a.$(this.t.k()); return a }, reverse: function() { return new b.tk(this.t.reverse()) } }); b.tk.create = function(a) { return new b.tk(a) }; b.cs = b.tk.extend({ update: function(a) { this.t.update(1 - this.Mu(1 - a)) }, reverse: function() { return new b.es(this.t.reverse()) }, k: function() { var a = new b.cs; a.$(this.t.k()); return a } }); b.cs.create = function(a) { return new b.cs(a) }; b.$s = function(a) { if (a < 1 / 2.75) { return 7.5625 * a * a } if (a < 2 / 2.75) { return a -= 1.5 / 2.75, 7.5625 * a * a + 0.75 } if (a < 2.5 / 2.75) { return a -= 2.25 / 2.75, 7.5625 * a * a + 0.9375 } a -= 2.625 / 2.75; return 7.5625 * a * a + 0.984375 }; b.KE = { Ha: function(a) { return 1 - b.$s(1 - a) }, reverse: function() { return b.ME } }; b.n3 = function() { return b.KE }; b.es = b.tk.extend({ update: function(a) { this.t.update(this.Mu(a)) }, reverse: function() { return new b.cs(this.t.reverse()) }, k: function() { var a = new b.es; a.$(this.t.k()); return a } }); b.es.create = function(a) { return new b.es(a) }; b.ME = { Ha: function(a) { return b.$s(a) }, reverse: function() { return b.KE } }; b.p3 = function() { return b.ME }; b.ds = b.tk.extend({ update: function(c) { var a = 0, a = 0.5 > c ? 0.5 * (1 - this.Mu(1 - 2 * c)) : 0.5 * this.Mu(2 * c - 1) + 0.5; this.t.update(a) }, k: function() { var a = new b.ds; a.$(this.t.k()); return a }, reverse: function() { return new b.ds(this.t.reverse()) } }); b.ds.create = function(a) { return new b.ds(a) }; b.LE = { Ha: function(a) { return a = 0.5 > a ? 0.5 * (1 - b.$s(1 - 2 * a)) : 0.5 * b.$s(2 * a - 1) + 0.5 }, reverse: function() { return b.LE } }; b.o3 = function() { return b.LE }; b.$r = b.Fa.extend({ update: function(a) { this.t.update(0 === a || 1 === a ? a : a * a * (2.70158 * a - 1.70158)) }, reverse: function() { return new b.bs(this.t.reverse()) }, k: function() { var a = new b.$r; a.$(this.t.k()); return a } }); b.$r.create = function(a) { return new b.$r(a) }; b.HE = { Ha: function(a) { return 0 === a || 1 === a ? a : a * a * (2.70158 * a - 1.70158) }, reverse: function() { return b.JE } }; b.k3 = function() { return b.HE }; b.bs = b.Fa.extend({ update: function(a) { a -= 1; this.t.update(a * a * (2.70158 * a + 1.70158) + 1) }, reverse: function() { return new b.$r(this.t.reverse()) }, k: function() { var a = new b.bs; a.$(this.t.k()); return a } }); b.bs.create = function(a) { return new b.bs(a) }; b.JE = { Ha: function(a) { a -= 1; return a * a * (2.70158 * a + 1.70158) + 1 }, reverse: function() { return b.HE } }; b.m3 = function() { return b.JE }; b.as = b.Fa.extend({ update: function(a) { a *= 2; 1 > a ? this.t.update(a * a * (3.5949095 * a - 2.5949095) / 2) : (a -= 2, this.t.update(a * a * (3.5949095 * a + 2.5949095) / 2 + 1)) }, k: function() { var a = new b.as; a.$(this.t.k()); return a }, reverse: function() { return new b.as(this.t.reverse()) } }); b.as.create = function(a) { return new b.as(a) }; b.IE = { Ha: function(a) { a *= 2; if (1 > a) { return a * a * (3.5949095 * a - 2.5949095) / 2 } a -= 2; return a * a * (3.5949095 * a + 2.5949095) / 2 + 1 }, reverse: function() { return b.IE } }; b.l3 = function() { return b.IE }; b.Jo = b.Fa.extend({ Wt: null, Xt: null, Yt: null, Zt: null, ctor: function(a) { b.Fa.prototype.ctor.call(this, a) }, ja: function(f, a, c, d, e) { return Math.pow(1 - e, 3) * f + 3 * e * Math.pow(1 - e, 2) * a + 3 * Math.pow(e, 2) * (1 - e) * c + Math.pow(e, 3) * d }, update: function(a) { this.t.update(this.ja(this.Wt, this.Xt, this.Yt, this.Zt, a)) }, k: function() { var a = new b.Jo; a.$(this.t.k()); a.kK(this.Wt, this.Xt, this.Yt, this.Zt); return a }, reverse: function() { var a = new b.Jo(this.t.reverse()); a.kK(this.Zt, this.Yt, this.Xt, this.Wt); return a }, kK: function(e, a, c, d) { this.Wt = e || 0; this.Xt = a || 0; this.Yt = c || 0; this.Zt = d || 0 } }); b.Jo.create = function(a) { return new b.Jo(a) }; b.LT = function(e, a, c, d) { return { Ha: function(f) { return b.Jo.prototype.ja(e, a, c, d, f) }, reverse: function() { return b.LT(d, c, a, e) } } }; b.Qo = b.Fa.extend({ ja: function(a) { return Math.pow(a, 2) }, update: function(a) { this.t.update(this.ja(a)) }, k: function() { var a = new b.Qo; a.$(this.t.k()); return a }, reverse: function() { return new b.Qo(this.t.reverse()) } }); b.Qo.create = function(a) { return new b.Qo(a) }; b.YE = { Ha: b.Qo.prototype.ja, reverse: function() { return b.YE } }; b.z3 = function() { return b.YE }; b.So = b.Fa.extend({ ja: function(a) { return -a * (a - 2) }, update: function(a) { this.t.update(this.ja(a)) }, k: function() { var a = new b.So; a.$(); return a }, reverse: function() { return new b.So(this.t.reverse()) } }); b.So.create = function(a) { return new b.So(a) }; b.$E = { Ha: b.So.prototype.ja, reverse: function() { return b.$E } }; b.B3 = function() { return b.$E }; b.Ro = b.Fa.extend({ ja: function(c) { var a = c; c *= 2; 1 > c ? a = c * c * 0.5 : (--c, a = -0.5 * (c * (c - 2) - 1)); return a }, update: function(a) { this.t.update(this.ja(a)) }, k: function() { var a = new b.Ro; a.$(this.t.k()); return a }, reverse: function() { return new b.Ro(this.t.reverse()) } }); b.Ro.create = function(a) { return new b.Ro(a) }; b.ZE = { Ha: b.Ro.prototype.ja, reverse: function() { return b.ZE } }; b.A3 = function() { return b.ZE }; b.To = b.Fa.extend({ ja: function(a) { return a * a * a * a }, update: function(a) { this.t.update(this.ja(a)) }, k: function() { var a = new b.To; a.$(this.t.k()); return a }, reverse: function() { return new b.To(this.t.reverse()) } }); b.To.create = function(a) { return new b.To(a) }; b.aF = { Ha: b.To.prototype.ja, reverse: function() { return b.aF } }; b.C3 = function() { return b.aF }; b.Vo = b.Fa.extend({ ja: function(a) { a -= 1; return -(a * a * a * a - 1) }, update: function(a) { this.t.update(this.ja(a)) }, k: function() { var a = new b.Vo; a.$(this.t.k()); return a }, reverse: function() { return new b.Vo(this.t.reverse()) } }); b.Vo.create = function(a) { return new b.Vo(a) }; b.cF = { Ha: b.Vo.prototype.ja, reverse: function() { return b.cF } }; b.E3 = function() { return b.cF }; b.Uo = b.Fa.extend({ ja: function(a) { a *= 2; if (1 > a) { return 0.5 * a * a * a * a } a -= 2; return -0.5 * (a * a * a * a - 2) }, update: function(a) { this.t.update(this.ja(a)) }, k: function() { var a = new b.Uo; a.$(this.t.k()); return a }, reverse: function() { return new b.Uo(this.t.reverse()) } }); b.Uo.create = function(a) { return new b.Uo(a) }; b.bF = { Ha: b.Uo.prototype.ja, reverse: function() { return b.bF } }; b.D3 = function() { return b.bF }; b.Wo = b.Fa.extend({ ja: function(a) { return a * a * a * a * a }, update: function(a) { this.t.update(this.ja(a)) }, k: function() { var a = new b.Wo; a.$(this.t.k()); return a }, reverse: function() { return new b.Wo(this.t.reverse()) } }); b.Wo.create = function(a) { return new b.Wo(a) }; b.dF = { Ha: b.Wo.prototype.ja, reverse: function() { return b.dF } }; b.F3 = function() { return b.dF }; b.Yo = b.Fa.extend({ ja: function(a) { a -= 1; return a * a * a * a * a + 1 }, update: function(a) { this.t.update(this.ja(a)) }, k: function() { var a = new b.Yo; a.$(this.t.k()); return a }, reverse: function() { return new b.Yo(this.t.reverse()) } }); b.Yo.create = function(a) { return new b.Yo(a) }; b.fF = { Ha: b.Yo.prototype.ja, reverse: function() { return b.fF } }; b.H3 = function() { return b.fF }; b.Xo = b.Fa.extend({ ja: function(a) { a *= 2; if (1 > a) { return 0.5 * a * a * a * a * a } a -= 2; return 0.5 * (a * a * a * a * a + 2) }, update: function(a) { this.t.update(this.ja(a)) }, k: function() { var a = new b.Xo; a.$(this.t.k()); return a }, reverse: function() { return new b.Xo(this.t.reverse()) } }); b.Xo.create = function(a) { return new b.Xo(a) }; b.eF = { Ha: b.Xo.prototype.ja, reverse: function() { return b.eF } }; b.G3 = function() { return b.eF }; b.Ko = b.Fa.extend({ ja: function(a) { return -1 * (Math.sqrt(1 - a * a) - 1) }, update: function(a) { this.t.update(this.ja(a)) }, k: function() { var a = new b.Ko; a.$(this.t.k()); return a }, reverse: function() { return new b.Ko(this.t.reverse()) } }); b.Ko.create = function(a) { return new b.Ko(a) }; b.NE = { Ha: b.Ko.prototype.ja, reverse: function() { return b.NE } }; b.q3 = function() { return b.NE }; b.Mo = b.Fa.extend({ ja: function(a) { a -= 1; return Math.sqrt(1 - a * a) }, update: function(a) { this.t.update(this.ja(a)) }, k: function() { var a = new b.Mo; a.$(this.t.k()); return a }, reverse: function() { return new b.Mo(this.t.reverse()) } }); b.Mo.create = function(a) { return new b.Mo(a) }; b.PE = { Ha: b.Mo.prototype.ja, reverse: function() { return b.PE } }; b.s3 = function() { return b.PE }; b.Lo = b.Fa.extend({ ja: function(a) { a *= 2; if (1 > a) { return -0.5 * (Math.sqrt(1 - a * a) - 1) } a -= 2; return 0.5 * (Math.sqrt(1 - a * a) + 1) }, update: function(a) { this.t.update(this.ja(a)) }, k: function() { var a = new b.Lo; a.$(this.t.k()); return a }, reverse: function() { return new b.Lo(this.t.reverse()) } }); b.Lo.create = function(a) { return new b.Lo(a) }; b.OE = { Ha: b.Lo.prototype.ja, reverse: function() { return b.OE } }; b.r3 = function() { return b.OE }; b.No = b.Fa.extend({ ja: function(a) { return a * a * a }, update: function(a) { this.t.update(this.ja(a)) }, k: function() { var a = new b.No; a.$(this.t.k()); return a }, reverse: function() { return new b.No(this.t.reverse()) } }); b.No.create = function(a) { return new b.No(a) }; b.QE = { Ha: b.No.prototype.ja, reverse: function() { return b.QE } }; b.t3 = function() { return b.QE }; b.Po = b.Fa.extend({ ja: function(a) { a -= 1; return a * a * a + 1 }, update: function(a) { this.t.update(this.ja(a)) }, k: function() { var a = new b.Po; a.$(this.t.k()); return a }, reverse: function() { return new b.Po(this.t.reverse()) } }); b.Po.create = function(a) { return new b.Po(a) }; b.SE = { Ha: b.Po.prototype.ja, reverse: function() { return b.SE } }; b.v3 = function() { return b.SE }; b.Oo = b.Fa.extend({ ja: function(a) { a *= 2; if (1 > a) { return 0.5 * a * a * a } a -= 2; return 0.5 * (a * a * a + 2) }, update: function(a) { this.t.update(this.ja(a)) }, k: function() { var a = new b.Oo; a.$(this.t.k()); return a }, reverse: function() { return new b.Oo(this.t.reverse()) } }); b.Oo.create = function(a) { return new b.Oo(a) }; b.RE = { Ha: b.Oo.prototype.ja, reverse: function() { return b.RE } }; b.u3 = function() { return b.RE }; b.Ou = function(g, h, k, m, n, a) { var c = a * a, d = c * a, e = (1 - n) / 2; n = e * (-d + 2 * c - a); var f = e * (-d + c) + (2 * d - 3 * c + 1); a = e * (d - 2 * c + a) + (-2 * d + 3 * c); c = e * (d - c); return b.d(g.x * n + h.x * f + k.x * a + m.x * c, g.y * n + h.y * f + k.y * a + m.y * c) }; b.aK = function(d) { for (var a = [], c = d.length - 1; 0 <= c; c--) { a.push(b.d(d[c].x, d[c].y)) } return a }; b.fT = function(d) { for (var a = [], c = 0; c < d.length; c++) { a.push(b.d(d[c].x, d[c].y)) } return a }; b.Qu = b.fT; b.Gc = function(d, a) { var c = Math.min(d.length - 1, Math.max(a, 0)); return d[c] }; b.f$ = function(f) { for (var a = f.length, c = 0 | a / 2, d = 0; d < c; ++d) { var e = f[d]; f[d] = f[a - d - 1]; f[a - d - 1] = e } }; b.Lh = b.D.extend({ sg: null, CE: 0, xn: 0, qc: null, dE: null, ctor: function(d, a, c) { b.D.prototype.ctor.call(this); this.sg = []; void 0 !== c && this.n(d, a, c) }, n: function(d, a, c) { if (!a || 0 === a.length) { throw "Invalid configuration. It must at least have one control point" } return b.D.prototype.n.call(this, d) ? (this.JX(a), this.xn = c, !0) : !1 }, k: function() { var a = new b.Lh; a.n(this.q, b.Qu(this.sg), this.xn); return a }, H: function(a) { b.D.prototype.H.call(this, a); this.CE = 1 / (this.sg.length - 1); this.qc = b.d(this.target.pb(), this.target.qb()); this.dE = b.d(0, 0) }, update: function(e) { e = this.Lc(e); var a, c = this.sg; if (1 === e) { a = c.length - 1, e = 1 } else { var d = this.CE; a = 0 | e / d; e = (e - d * a) / d } a = b.Ou(b.Gc(c, a - 1), b.Gc(c, a - 0), b.Gc(c, a + 1), b.Gc(c, a + 2), this.xn, e); b.Xr && (c = this.target.pb() - this.qc.x, e = this.target.qb() - this.qc.y, 0 !== c || 0 !== e) && (d = this.dE, c = d.x + c, e = d.y + e, d.x = c, d.y = e, a.x += c, a.y += e); this.UK(a) }, reverse: function() { var a = b.aK(this.sg); return b.mI(this.q, a, this.xn) }, UK: function(a) { this.target.G(a); this.qc = a }, D5: function() { return this.sg }, JX: function(a) { this.sg = a } }); b.mI = function(d, a, c) { return new b.Lh(d, a, c) }; b.Lh.create = b.mI; b.Ho = b.Lh.extend({ ic: null, ctor: function(d, a, c) { b.Lh.prototype.ctor.call(this); this.ic = b.d(0, 0); void 0 !== c && this.n(d, a, c) }, H: function(a) { b.Lh.prototype.H.call(this, a); this.ic.x = a.pb(); this.ic.y = a.qb() }, reverse: function() { for (var e = this.sg.slice(), a, c = e[0], d = 1; d < e.length; ++d) { a = e[d], e[d] = b.od(a, c), c = a } e = b.aK(e); c = e[e.length - 1]; e.pop(); c.x = -c.x; c.y = -c.y; e.unshift(c); for (d = 1; d < e.length; ++d) { a = e[d], a.x = -a.x, a.y = -a.y, a.x += c.x, a.y += c.y, c = e[d] = a } return b.lI(this.q, e, this.xn) }, UK: function(d) { var a = this.ic, c = d.x + a.x; d = d.y + a.y; this.qc.x = c; this.qc.y = d; this.target.G(c, d) }, k: function() { var a = new b.Ho; a.n(this.q, b.Qu(this.sg), this.xn); return a } }); b.lI = function(d, a, c) { return new b.Ho(d, a, c) }; b.Ho.create = b.lI; b.kw = b.Lh.extend({ ctor: function(c, a) { a && this.n(c, a) }, n: function(c, a) { return b.Lh.prototype.n.call(this, c, a, 0.5) }, k: function() { var a = new b.kw; a.n(this.q, b.Qu(this.sg)); return a } }); b.aT = function(c, a) { return new b.kw(c, a) }; b.kw.create = b.aT; b.jw = b.Ho.extend({ ctor: function(c, a) { b.Ho.prototype.ctor.call(this); a && this.n(c, a) }, n: function(c, a) { return b.Lh.prototype.n.call(this, c, a, 0.5) }, k: function() { var a = new b.jw; a.n(this.q, b.Qu(this.sg)); return a } }); b.$S = function(c, a) { return new b.jw(c, a) }; b.jw.create = b.$S; b.pZ = b.Ia.extend({ WY: function() {} }); b.Or = b.D.extend({ key: "", Vu: 0, bw: 0, uT: 0, ctor: function(e, a, c, d) { b.D.prototype.ctor.call(this); this.key = ""; void 0 !== d && this.n(e, a, c, d) }, n: function(e, a, c, d) { return b.D.prototype.n.call(this, e) ? (this.key = a, this.bw = d, this.Vu = c, !0) : !1 }, H: function(a) { if (!a || !a.WY) { throw "cc.ActionTween.startWithTarget(): target must be non-null, and target must implement updateTweenAction function" } b.D.prototype.H.call(this, a); this.uT = this.bw - this.Vu }, update: function() {}, reverse: function() { return new b.Or(this.duration, this.key, this.bw, this.Vu) }, k: function() { var a = new b.Or; a.n(this.q, this.key, this.Vu, this.bw); return a } }); b.dS = function(e, a, c, d) { return new b.Or(e, a, c, d) }; b.Or.create = b.dS; b.l_ = 0; b.m_ = 1; b.n_ = 9; b.cj = function(a) { a -= 1; a |= a >> 1; a |= a >> 2; a |= a >> 4; a |= a >> 8; return (a | a >> 16) + 1 }; b.je = b.f.extend({ sprite: null, EA: 0, DA: 0, Iq: !1, P: null, kh: b.ca.dj, FA: 0, Jk: null, gc: "RenderTexture", ctor: function(e, a, c, d) { b.f.prototype.ctor.call(this); this.fc = this.ec = !0; this.Jk = new b.Bd(0, 0, 0, 255); void 0 !== e && void 0 !== a && (c = c || b.ca.dj, this.mv(e, a, c, d || 0)); this.Xa(0, 0) }, Fd: function() { return b.ua === b.dc ? new b.je.A(this) : new b.je.F(this) }, Od: function() { b.f.prototype.Ib.call(this); this.i.Od() }, $I: function() { return this.sprite }, hC: function(a) { this.sprite = a }, kC: function(d, a, c) { this.i.kC(d, a, c) }, mv: function(e, a, c, d) { return this.i.mv(e, a, c, d) }, zi: function() { b.Za.Au(this.Y); this.i.zi() }, US: function(e, f, g, h, a, c) { var d = b.s; a = a || d.COLOR_BUFFER_BIT; c = c || d.COLOR_BUFFER_BIT | d.DEPTH_BUFFER_BIT; this.Ys(e, f, g, h, a, c, d.COLOR_BUFFER_BIT | d.DEPTH_BUFFER_BIT | d.STENCIL_BUFFER_BIT) }, Ys: function(e, f, g, h, a, c, d) { this.zi(); this.i.Ys(e, f, g, h, a, c, d) }, end: function() { this.i.end() }, clear: function(e, a, c, d) { this.US(e, a, c, d); this.end() }, clearRect: function(e, a, c, d) { this.i.clearRect(e, a, c, d) }, clearDepth: function(a) { this.i.clearDepth(a) }, clearStencil: function(a) { this.i.clearStencil(a) }, I4: function() { return this.EA }, F$: function(a) { this.EA = a }, uU: function() { return this.Jk }, oX: function(c) { var a = this.Jk; a.r = c.r; a.g = c.g; a.b = c.b; a.a = c.a }, H4: function() { return this.DA }, E$: function(a) { this.DA = a }, J4: function() { return this.FA }, G$: function(a) { this.FA = a }, S6: function() { return this.Iq }, A$: function(a) { this.Iq = a }, m$: function() { b.log("saveToFile isn't supported on Cocos2d-Html5") }, e8: function() { b.log("saveToFile isn't supported on cocos2d-html5"); return null }, S7: function() {}, T7: function() {} }); w = b.je.prototype; b.l(w, "clearColorVal", w.uU, w.oX); b.je.create = function(e, a, c, d) { return new b.je(e, a, c, d) }; (function() { b.je.A = function(c) { b.f.A.call(this, c); this.Db = !0; this.rj = b.ac("canvas"); this.Vg = new b.Vr(this.rj.getContext("2d")) }; var a = b.je.A.prototype = Object.create(b.f.A.prototype); a.constructor = b.je.A; a.Od = function() { this.rj = this.Vg = null }; a.clearStencil = function() {}; a.kC = function() {}; a.VY = function() {}; a.mv = function(g, c) { var d = this.p, e = this.rj, f = b.jb(); e.width = 0 | g * f; e.height = 0 | c * f; f = new b.ca; f.mc(e); f.fb(); e = d.sprite = new b.o(f); e.Hh(b.ONE, b.ONE_MINUS_SRC_ALPHA); d.Iq = !1; d.B(e); return !0 }; a.zi = function() {}; a.Ys = function(f, g, h, c) { f = f || 0; g = g || 0; h = h || 0; c = isNaN(c) ? 255 : c; var d = this.Vg.getContext(), e = this.rj; d.setTransform(1, 0, 0, 1, 0, 0); this.Vg.Kg("rgba(" + (0 | f) + "," + (0 | g) + "," + (0 | h) + "," + c / 255 + ")"); d.clearRect(0, 0, e.width, e.height); d.fillRect(0, 0, e.width, e.height) }; a.end = function() { var d = this.p, c = b.jb(); b.Za.nz(this.Vg, d.Y, c, c) }; a.clearRect = function(f, c, d, e) { this.Vg.clearRect(f, c, d, -e) }; a.clearDepth = function() { b.log("clearDepth isn't supported on Cocos2d-Html5") }; a.ga = function(d) { var c = this.p; this.We(d); c.sprite.ga(this); this.C = 0 } })(); (function() { b.je.F = function(c) { b.f.F.call(this, c); this.Db = !0; this.Lk = this.uq = this.jh = this.ut = null; this.hu = new b.Nh; this.Tm = new b.Nh; this.yt = new b.Nh }; var a = b.je.F.prototype = Object.create(b.f.F.prototype); a.constructor = b.je.F; a.kC = function(e, c, d) { this.hu.x = e.x; this.hu.y = e.y; this.Tm = c; this.yt = d }; a.wb = function(f) { var g = f || b.s; f = this.p; if (f.Iq) { f.zi(); var h = f.EA; if (h) { var c = [0, 0, 0, 0], d = 0, e = 0; h & g.COLOR_BUFFER_BIT && (c = g.getParameter(g.COLOR_CLEAR_VALUE), g.clearColor(f.Jk.r / 255, f.Jk.g / 255, f.Jk.b / 255, f.Jk.a / 255)); h & g.DEPTH_BUFFER_BIT && (d = g.getParameter(g.DEPTH_CLEAR_VALUE), g.clearDepth(f.DA)); h & g.STENCIL_BUFFER_BIT && (e = g.getParameter(g.STENCIL_CLEAR_VALUE), g.clearStencil(f.FA)); g.clear(h); h & g.COLOR_BUFFER_BIT && g.clearColor(c[0], c[1], c[2], c[3]); h & g.DEPTH_BUFFER_BIT && g.clearDepth(d); h & g.STENCIL_BUFFER_BIT && g.clearStencil(e) } f.kf(); g = f.K; for (h = 0; h < g.length; h++) { c = g[h], c !== f.sprite && c.i.ga(f.sprite.i) } f.end() } }; a.clearStencil = function(e) { var c = b.s, d = c.getParameter(c.STENCIL_CLEAR_VALUE); c.clearStencil(e); c.clear(c.STENCIL_BUFFER_BIT); c.clearStencil(d) }; a.Od = function() { this.uq = null; var c = b.s; c.deleteFramebuffer(this.ut); this.Lk && c.deleteRenderbuffer(this.Lk) }; a.VY = function() {}; a.mv = function(g, h, k, m) { var n = this.p; k === b.ca.ep && b.log("cc.RenderTexture._initWithWidthAndHeightForWebGL() : only RGB and RGBA formats are valid for a render texture;"); var p = b.s, c = b.jb(); this.Tm = new b.Nh(0, 0, g, h); this.yt = new b.Nh(0, 0, g, h); g = 0 | g * c; h = 0 | h * c; this.jh = p.getParameter(p.FRAMEBUFFER_BINDING); var d; b.Qn.vu ? (c = g, d = h) : (c = b.cj(g), d = b.cj(h)); for (var e = new Uint8Array(c * d * 4), f = 0; f < c * d * 4; f++) { e[f] = 0 } this.kh = k; f = n.P = new b.ca; if (!n.P) { return !1 } f.Zq(e, n.kh, c, d, b.size(g, h)); k = p.getParameter(p.RENDERBUFFER_BINDING); if (b.Qn.On("GL_QCOM")) { this.uq = new b.ca; if (!this.uq) { return !1 } this.uq.Zq(e, n.kh, c, d, b.size(g, h)) } this.ut = p.createFramebuffer(); p.bindFramebuffer(p.FRAMEBUFFER, this.ut); p.framebufferTexture2D(p.FRAMEBUFFER, p.COLOR_ATTACHMENT0, p.TEXTURE_2D, f.Ze, 0); 0 !== m && (this.Lk = p.createRenderbuffer(), p.bindRenderbuffer(p.RENDERBUFFER, this.Lk), p.renderbufferStorage(p.RENDERBUFFER, m, c, d), m === p.DEPTH_STENCIL ? p.framebufferRenderbuffer(p.FRAMEBUFFER, p.DEPTH_STENCIL_ATTACHMENT, p.RENDERBUFFER, this.Lk) : m === p.STENCIL_INDEX || m === p.STENCIL_INDEX8 ? p.framebufferRenderbuffer(p.FRAMEBUFFER, p.STENCIL_ATTACHMENT, p.RENDERBUFFER, this.Lk) : m === p.DEPTH_COMPONENT16 && p.framebufferRenderbuffer(p.FRAMEBUFFER, p.DEPTH_ATTACHMENT, p.RENDERBUFFER, this.Lk)); p.checkFramebufferStatus(p.FRAMEBUFFER) !== p.FRAMEBUFFER_COMPLETE && b.log("Could not attach texture to the framebuffer"); f.hK(); g = n.sprite = new b.o(f); g.scaleY = -1; g.Hh(p.ONE, p.ONE_MINUS_SRC_ALPHA); p.bindRenderbuffer(p.RENDERBUFFER, k); p.bindFramebuffer(p.FRAMEBUFFER, this.jh); n.Iq = !1; n.B(g); return !0 }; a.zi = function() { var g = this.p; b.Gg(b.Ng); b.rv(); b.Gg(b.Mg); b.rv(); var c = b.s, d = b.I; d.Sl(d.Zn()); var e = g.P.Q, f = b.I.rB(), d = f.width / e.width, e = f.height / e.height, d = b.e.U.IA(-1 / d, 1 / d, -1 / e, 1 / e, -1, 1); b.jo(d); d = new b.Nh(0, 0, 0, 0); d.width = this.yt.width; d.height = this.yt.height; e = d.height / this.Tm.height; d.x = d.width / this.Tm.width * (this.Tm.x - this.hu.x); d.y = (this.Tm.y - this.hu.y) * e; c.viewport(d.x, d.y, d.width, d.height); this.jh = c.getParameter(c.FRAMEBUFFER_BINDING); c.bindFramebuffer(c.FRAMEBUFFER, this.ut); b.Qn.On("GL_QCOM") && (c.framebufferTexture2D(c.FRAMEBUFFER, c.COLOR_ATTACHMENT0, c.TEXTURE_2D, this.uq.Ze, 0), c.clear(c.COLOR_BUFFER_BIT | c.DEPTH_BUFFER_BIT), c.framebufferTexture2D(c.FRAMEBUFFER, c.COLOR_ATTACHMENT0, c.TEXTURE_2D, g.P.Ze, 0)) }; a.Ys = function(c, e, h, k, m, n, p) { c /= 255; e /= 255; h /= 255; k /= 255; var r = b.s, d = [0, 0, 0, 0], f = 0, g = 0; p & r.COLOR_BUFFER_BIT && (d = r.getParameter(r.COLOR_CLEAR_VALUE), r.clearColor(c, e, h, k)); p & r.DEPTH_BUFFER_BIT && (f = r.getParameter(r.DEPTH_CLEAR_VALUE), r.clearDepth(m)); p & r.STENCIL_BUFFER_BIT && (g = r.getParameter(r.STENCIL_CLEAR_VALUE), r.clearStencil(n)); r.clear(p); p & r.COLOR_BUFFER_BIT && r.clearColor(d[0], d[1], d[2], d[3]); p & r.DEPTH_BUFFER_BIT && r.clearDepth(f); p & r.STENCIL_BUFFER_BIT && r.clearStencil(g) }; a.end = function() { b.Za.gR(this.p.Y); var d = b.s, c = b.I; d.bindFramebuffer(d.FRAMEBUFFER, this.jh); c.jC(); b.Gg(b.Ng); b.qv(); b.Gg(b.Mg); b.qv() }; a.clearRect = function() {}; a.clearDepth = function(f) { var c = this.p; c.zi(); var d = b.s, e = d.getParameter(d.DEPTH_CLEAR_VALUE); d.clearDepth(f); d.clear(d.DEPTH_BUFFER_BIT); d.clearDepth(e); c.end() }; a.ga = function(d) { var c = this.p; c.jd && (b.rv(), this.We(d), b.Za.Ig(this), c.sprite.ga(this), this.C = 0, b.qv()) } })(); b.sa = b.f.extend({ Ec: null, hi: 0, tb: null, gh: null, xm: null, Gf: !1, gc: "ProgressTimer", ctor: function(a) { b.f.prototype.ctor.call(this); this.Ec = b.sa.gj; this.hi = 0; this.gh = b.d(0, 0); this.xm = b.d(0, 0); this.Gf = !1; this.tb = null; a && this.HV(a) }, RU: function() { return b.d(this.gh.x, this.gh.y) }, DX: function(a) { this.gh = b.EJ(a) }, pU: function() { return b.d(this.xm.x, this.xm.y) }, jX: function(a) { this.xm = b.EJ(a) }, qB: function() { return this.Ec }, YU: function() { return this.hi }, $I: function() { return this.tb }, HX: function(a) { this.hi !== a && (this.hi = b.Kq(a, 0, 100), this.i.KH()) }, Pi: function() {}, zh: function() { return !1 }, WV: function() { return this.Gf }, xb: function(a) { this.tb.color = a; this.i.ia(b.f.L.ra) }, yd: function(a) { this.tb.opacity = a; this.i.ia(b.f.L.pa) }, Uf: function() { return this.tb.color }, sh: function() { return this.tb.opacity }, yaa: function(a) { this.Gf !== a && (this.Gf = a, this.i.Ol()) }, hC: function(a) { this.tb !== a && ((this.tb = a) ? this.he(a.width, a.height) : this.he(0, 0), this.i.Ol()) }, ZX: function(a) { a !== this.Ec && (this.Ec = a, this.i.Ol()) }, OX: function(a) { this.Gf !== a && (this.Gf = a, this.i.Ol()) }, HV: function(a) { this.percentage = 0; this.Xa(0.5, 0.5); this.Ec = b.sa.gj; this.Gf = !1; this.midPoint = b.d(0.5, 0.5); this.barChangeRate = b.d(1, 1); this.hC(a); this.i.jJ(); return !0 }, Fd: function() { return b.ua === b.dc ? new b.sa.A(this) : new b.sa.F(this) } }); w = b.sa.prototype; b.l(w, "midPoint", w.RU, w.DX); b.l(w, "barChangeRate", w.pU, w.jX); b.l(w, "type", w.qB, w.ZX); b.l(w, "percentage", w.YU, w.HX); b.l(w, "sprite", w.$I, w.hC); b.l(w, "reverseDir", w.WV, w.OX); b.sa.create = function(a) { return new b.sa(a) }; b.sa.mD = 4; b.sa.TN = 75; b.sa.gj = 0; b.sa.Dk = 1; b.Iw = b.D.extend({ Tc: 0, Mc: 0, ctor: function(c, a) { b.D.prototype.ctor.call(this); this.Mc = this.Tc = 0; void 0 !== a && this.n(c, a) }, n: function(c, a) { return b.D.prototype.n.call(this, c) ? (this.Tc = a, !0) : !1 }, k: function() { var a = new b.Iw; a.n(this.q, this.Tc); return a }, reverse: function() { b.log("cc.ProgressTo.reverse(): reverse hasn't been supported."); return null }, H: function(a) { b.D.prototype.H.call(this, a); this.Mc = a.percentage }, update: function(a) { this.target instanceof b.sa && (this.target.percentage = this.Mc + (this.Tc - this.Mc) * a) } }); b.JW = function(c, a) { return new b.Iw(c, a) }; b.Iw.create = b.JW; b.Hw = b.D.extend({ Tc: 0, Mc: 0, ctor: function(d, a, c) { b.D.prototype.ctor.call(this); this.Mc = this.Tc = 0; void 0 !== c && this.n(d, a, c) }, n: function(d, a, c) { return b.D.prototype.n.call(this, d) ? (this.Tc = c, this.Mc = a, !0) : !1 }, k: function() { var a = new b.Hw; a.n(this.q, this.Mc, this.Tc); return a }, reverse: function() { return b.PB(this.q, this.Tc, this.Mc) }, H: function(a) { b.D.prototype.H.call(this, a) }, update: function(a) { this.target instanceof b.sa && (this.target.percentage = this.Mc + (this.Tc - this.Mc) * a) } }); b.PB = function(d, a, c) { return new b.Hw(d, a, c) }; b.Hw.create = b.PB; (function() { b.sa.A = function(c) { b.f.A.call(this, c); this.Db = !0; this.ZD = Math.PI / 180; this.iE = b.rect(0, 0, 0, 0); this.Xy = b.d(0, 0); this.Ij = 0; this.kF = this.qH = 270; this.vE = !1 }; var a = b.sa.A.prototype = Object.create(b.f.A.prototype); a.constructor = b.sa.A; a.wb = function(c, d, f) { c = c || b.s; var k = c.getContext(), m = this.p, p = m.tb, r = p.i.ti, t = p.i.pc / 255; if (0 !== r.width && 0 !== r.height && p.P && r.Kr && 0 !== t) { c.setTransform(this.ql, d, f); c.vr(p.Fk); c.xr(t); var e = p.Aa, g = p.ed, t = g.x, h = -g.y - e.height, n = e.width, e = e.height; c.save(); p.Ac && (t = -t - n, k.scale(-1, 1)); p.Bc && (h = g.y, k.scale(1, -1)); m.Ec === b.sa.Dk ? (m = this.iE, k.beginPath(), k.rect(m.x * d, m.y * f, m.width * d, m.height * f), k.clip(), k.closePath()) : m.Ec === b.sa.gj && (m = this.Xy.x * d, g = this.Xy.y * f, k.beginPath(), k.arc(m, g, this.Ij * f, this.ZD * this.qH, this.ZD * this.kF, this.vE), k.lineTo(m, g), k.clip(), k.closePath()); m = p.P.xa; p.jg ? k.drawImage(m, 0, 0, r.width, r.height, t * d, h * f, n * d, e * f) : k.drawImage(m, r.Hv, r.Iv, r.width, r.height, t * d, h * f, n * d, e * f); c.restore(); b.df++ } }; a.Ol = function() {}; a.jJ = function() {}; a.KH = function() { var c = this.p, e = c.tb, f = e.width, g = e.height, h = c.gh; if (c.Ec === b.sa.gj) { this.Ij = Math.round(Math.sqrt(f * f + g * g)); var k, m = !1, d = this.Xy; d.x = f * h.x; d.y = -g * h.y; c.Gf ? (k = 270, h = 270 - 3.6 * c.hi) : (h = -90, k = -90 + 3.6 * c.hi); e.Ac && (d.x -= 2 * f * c.gh.x, h = -h - 180, k = -k - 180, m = !m); e.Bc && (d.y += 2 * g * c.gh.y, m = !m, h = -h, k = -k); this.qH = h; this.kF = k; this.vE = m } else { m = c.xm, d = c.hi / 100, c = this.iE, m = b.size(f * (1 - m.x), g * (1 - m.y)), d = b.size((f - m.width) * d, (g - m.height) * d), m = b.size(m.width + d.width, m.height + d.height), k = b.d(f * h.x, g * h.y), d = k.x - m.width / 2, 0.5 < h.x && m.width / 2 >= f - k.x && (d = f - m.width), f = k.y - m.height / 2, 0.5 < h.y && m.height / 2 >= g - k.y && (f = g - m.height), c.x = 0, g = 1, e.Ac && (c.x -= m.width, g = -1), 0 < d && (c.x += d * g), c.y = 0, g = 1, e.Bc && (c.y += m.height, g = -1), 0 < f && (c.y -= f * g), c.width = m.width, c.height = -m.height } }; a.Va = function() {}; a.We = function(f) { var g = this.p; if (g.tb) { var h = b.f.L, c = this.C, d = f ? f.p : null; d && d.ec && f.C & h.ra && (c |= h.ra); d && d.fc && f.C & h.pa && (c |= h.pa); f && f.C & h.ba && (c |= h.ba); this.C = c; var g = g.tb.i, d = g.C, e = d & h.pa; d & h.ra && ma(g); e && la(g); c & h.ba && this.transform(f) } }; a.updateStatus = function() { var g = this.p; if (g.tb) { var c = b.f.L, d = this.C, g = g.tb.i, e = g.C, f = e & c.pa; e & c.ra && g.Rf(); f && F(g); d & c.ba && this.transform(G(this), !0); this.C = 0 } } })(); (function() { b.sa.F = function(c) { b.f.F.call(this, c); this.Db = !0; this.$R = b.s.createBuffer(); this.ce = 0; this.qh = this.gd = null; this.Hu = !1 }; var a = b.sa.F.prototype = Object.create(b.f.F.prototype); a.constructor = b.sa.F; a.wb = function(e) { var c = this.p; e = e || b.s; if (this.gd && c.tb) { this.va.Ub(); this.va.wg(this.Rc); var d = c.tb.O; b.Vf(d.src, d.ya); b.tc(b.pp); b.Ee(c.tb.texture); e.bindBuffer(e.ARRAY_BUFFER, this.$R); this.Hu && (e.bufferData(e.ARRAY_BUFFER, this.qh, e.DYNAMIC_DRAW), this.Hu = !1); d = b.$c.BYTES_PER_ELEMENT; e.vertexAttribPointer(b.ab, 2, e.FLOAT, !1, d, 0); e.vertexAttribPointer(b.ne, 4, e.UNSIGNED_BYTE, !0, d, 8); e.vertexAttribPointer(b.Ed, 2, e.FLOAT, !1, d, 12); c.Ec === b.sa.gj ? e.drawArrays(e.TRIANGLE_FAN, 0, this.ce) : c.Ec === b.sa.Dk && (c.Gf ? (e.drawArrays(e.TRIANGLE_STRIP, 0, this.ce / 2), e.drawArrays(e.TRIANGLE_STRIP, 4, this.ce / 2), b.df++) : e.drawArrays(e.TRIANGLE_STRIP, 0, this.ce)); b.df++ } }; a.We = function(g) { var c = this.p; if (c.tb) { var d = b.f.L, e = this.C, f = g ? g.p : null; f && f.ec && g.C & d.ra && (e |= d.ra); f && f.fc && g.C & d.pa && (e |= d.pa); g && g.C & d.ba && (e |= d.ba); this.C = e; c = c.tb.i; f = c.C; e = f & d.ra; d = f & d.pa; e && ma(c); d && la(c); if (e || d) { c.Va(), this.Va() } this.transform(g); c.C = 0 } }; a.updateStatus = function() { var g = this.p; if (g.tb) { var c = b.f.L, d = this.C, g = g.tb.i, e = g.C, f = e & c.ra, e = e & c.pa; f && (g.Rf(), this.C ^= this.C & c.ra); e && (F(g), this.C ^= this.C & c.pa); if (f || e) { g.Va(), this.Va() } d & c.ba && this.transform(G(this), !0) } }; a.Ol = function() { this.gd && (this.qh = this.gd = null, this.ce = 0) }; a.jJ = function() { this.qh = this.gd = null; this.ce = 0; this.va = b.Ge.Hc(b.Ak) }; a.KH = function() { var c = this.p.Ec; c === b.sa.gj ? this.YR() : c === b.sa.Dk && this.UR(); this.Hu = !0 }; a.UR = function() { var g = this.p; if (g.tb) { var c, d = g.hi / 100; c = g.xm; c = b.Li(b.d(1 - c.x + d * c.x, 1 - c.y + d * c.y), 0.5); d = b.od(g.gh, c); g = b.Hg(g.gh, c); 0 > d.x && (g.x += -d.x, d.x = 0); 1 < g.x && (d.x -= g.x - 1, g.x = 1); 0 > d.y && (g.y += -d.y, d.y = 0); 1 < g.y && (d.y -= g.y - 1, g.y = 1); if (this.Gf) { if (!this.gd) { this.ce = 8; var e = b.$c.BYTES_PER_ELEMENT; this.qh = new ArrayBuffer(8 * e); var f = []; for (c = 0; 8 > c; c++) { f[c] = new b.$c(null, null, null, this.qh, c * e) } f[0].texCoords = this.Ld(b.d(0, 1)); f[0].vertices = this.Md(b.d(0, 1)); f[1].texCoords = this.Ld(b.d(0, 0)); f[1].vertices = this.Md(b.d(0, 0)); f[6].texCoords = this.Ld(b.d(1, 1)); f[6].vertices = this.Md(b.d(1, 1)); f[7].texCoords = this.Ld(b.d(1, 0)); f[7].vertices = this.Md(b.d(1, 0)); this.gd = f } c = this.gd; c[2].texCoords = this.Ld(b.d(d.x, g.y)); c[2].vertices = this.Md(b.d(d.x, g.y)); c[3].texCoords = this.Ld(b.d(d.x, d.y)); c[3].vertices = this.Md(b.d(d.x, d.y)); c[4].texCoords = this.Ld(b.d(g.x, g.y)); c[4].vertices = this.Md(b.d(g.x, g.y)); c[5].texCoords = this.Ld(b.d(g.x, d.y)); c[5].vertices = this.Md(b.d(g.x, d.y)) } else { if (!this.gd) { for (this.ce = 4, e = b.$c.BYTES_PER_ELEMENT, this.qh = new ArrayBuffer(4 * e), this.gd = [], c = 0; 4 > c; c++) { this.gd[c] = new b.$c(null, null, null, this.qh, c * e) } } c = this.gd; c[0].texCoords = this.Ld(b.d(d.x, g.y)); c[0].vertices = this.Md(b.d(d.x, g.y)); c[1].texCoords = this.Ld(b.d(d.x, d.y)); c[1].vertices = this.Md(b.d(d.x, d.y)); c[2].texCoords = this.Ld(b.d(g.x, g.y)); c[2].vertices = this.Md(b.d(g.x, g.y)); c[3].texCoords = this.Ld(b.d(g.x, d.y)); c[3].vertices = this.Md(b.d(g.x, d.y)) } this.Va() } }; a.YR = function() { var g = this.p; if (g.tb) { var h, k = g.gh; h = g.hi / 100; var m = 2 * b.PI * (g.Gf ? h : 1 - h), g = b.d(k.x, 1), n = b.KJ(g, k, m), m = 0; if (0 === h) { n = g, m = 0 } else { if (1 === h) { n = g, m = 4 } else { var p = b.SL, c = b.sa.mD; for (h = 0; h <= c; ++h) { var d = (h + (c - 1)) % c, e = this.Bx(h % c), d = this.Bx(d); 0 === h ? d = b.IJ(e, d, 1 - k.x) : 4 === h && (e = b.IJ(e, d, 1 - k.x)); var f = b.d(0, 0); b.MB(e, d, k, n, f) && (0 !== h && 4 !== h || 0 <= f.x && 1 >= f.x) && 0 <= f.y && f.y < p && (p = f.y, m = h) } n = b.Hg(k, b.Li(b.od(n, k), p)) } } p = !0; this.ce !== m + 3 && (p = !1, this.qh = this.gd = null, this.ce = 0); if (!this.gd) { c = this.ce = m + 3; e = b.$c.BYTES_PER_ELEMENT; this.qh = new ArrayBuffer(c * e); d = []; for (h = 0; h < c; h++) { d[h] = new b.$c(null, null, null, this.qh, h * e) } this.gd = d; if (!this.gd) { b.log("cc.ProgressTimer._updateRadial() : Not enough memory"); return } } this.Va(); c = this.gd; if (!p) { for (c[0].texCoords = this.Ld(k), c[0].vertices = this.Md(k), c[1].texCoords = this.Ld(g), c[1].vertices = this.Md(g), h = 0; h < m; h++) { k = this.Bx(h), c[h + 2].texCoords = this.Ld(k), c[h + 2].vertices = this.Md(k) } } c[this.ce - 1].texCoords = this.Ld(n); c[this.ce - 1].vertices = this.Md(n) } }; a.Bx = function(d) { if (d < b.sa.mD) { var c = b.sa.TN; return this.p.Gf ? b.d(c >> 7 - (d << 1) & 1, c >> 7 - ((d << 1) + 1) & 1) : b.d(c >> (d << 1) + 1 & 1, c >> (d << 1) & 1) } return b.d(0, 0) }; a.Ld = function(f) { var c = this.p.tb; if (!c) { return { u: 0, v: 0 } } var d = c.quad, e = b.d(d.bl.texCoords.u, d.bl.texCoords.v), d = b.d(d.tr.texCoords.u, d.tr.texCoords.v); c.textureRectRotated && (c = f.x, f.x = f.y, f.y = c); return { u: e.x * (1 - f.x) + d.x * f.x, v: e.y * (1 - f.y) + d.y * f.y } }; a.Md = function(e) { var c = this.p.tb; if (!c) { return { x: 0, y: 0 } } var d = c.quad, c = b.d(d.bl.vertices.x, d.bl.vertices.y), d = b.d(d.tr.vertices.x, d.tr.vertices.y); return { x: c.x * (1 - e.x) + d.x * e.x, y: c.y * (1 - e.y) + d.y * e.y } }; a.Va = function() { var f = this.p; if (f.tb && this.gd) { for (var f = f.tb.quad.tl.colors, c = this.gd, d = 0, e = this.ce; d < e; ++d) { c[d].colors = f } this.Hu = !0 } } })(); b.jp = 4208917214; b.t0 = 0; b.ej = 1; b.Gs = 0; b.s0 = 1; b.aa = b.Pg.extend({ fa: null, La: null, q: null, qg: !1, TF: !1, gc: "TransitionScene", ctor: function(c, a) { b.Pg.prototype.ctor.call(this); void 0 !== c && void 0 !== a && this.n(c, a) }, cH: function() { this.Ri(this.cH); var a = b.I; this.TF = a.Mj; a.Jg(this.fa); b.ka.Wc(!0); this.La.visible = !0 }, mh: function() { this.qg = !0 }, ga: function() { this.qg ? (this.La.ga(), this.fa.ga()) : (this.fa.ga(), this.La.ga()); b.f.prototype.ga.call(this) }, X: function() { b.f.prototype.X.call(this); b.ka.Wc(!1); this.La.Eh(); this.fa.X() }, Ib: function() { b.f.prototype.Ib.call(this); b.ka.Wc(!0); this.La.Ib(); this.fa.Kl() }, Od: function() { b.f.prototype.Od.call(this); this.TF && this.La.Od() }, n: function(c, a) { if (!a) { throw "cc.TransitionScene.initWithDuration(): Argument scene must be non-nil" } if (this.oa()) { this.q = c; this.$e({ x: 0, y: 0, anchorX: 0, anchorY: 0 }); this.fa = a; this.La = b.I.rc; this.La || (this.La = new b.Pg, this.La.oa()); if (this.fa === this.La) { throw "cc.TransitionScene.initWithDuration(): Incoming scene must be different from the outgoing scene" } this.mh(); return !0 } return !1 }, finish: function() { this.fa.$e({ visible: !0, x: 0, y: 0, scale: 1, rotation: 0 }); b.ua === b.Lb && this.fa.Wn().restore(); this.La.$e({ visible: !1, x: 0, y: 0, scale: 1, rotation: 0 }); b.ua === b.Lb && this.La.Wn().restore(); this.Ni(this.cH, 0) }, zB: function() { this.fa.visible = !0; this.La.visible = !1 } }); b.aa.create = function(c, a) { return new b.aa(c, a) }; b.me = b.aa.extend({ Zk: 0, ctor: function(d, a, c) { b.aa.prototype.ctor.call(this); void 0 != c && this.n(d, a, c) }, n: function(d, a, c) { b.aa.prototype.n.call(this, d, a) && (this.Zk = c); return !0 } }); b.me.create = function(d, a, c) { return new b.me(d, a, c) }; b.JD = b.aa.extend({ ctor: function(c, a) { b.aa.prototype.ctor.call(this); a && this.n(c, a) }, X: function() { b.aa.prototype.X.call(this); this.fa.$e({ scale: 0.001, anchorX: 0.5, anchorY: 0.5 }); this.La.$e({ scale: 1, anchorX: 0.5, anchorY: 0.5 }); var a = b.gb(b.hk(b.eK(this.q / 2, 0.001), b.XB(this.q / 2, 720)), b.vd(this.q / 2)); this.La.ha(a); this.fa.ha(b.gb(a.reverse(), b.$b(this.finish, this))) } }); b.JD.create = function(c, a) { return new b.JD(c, a) }; b.zD = b.aa.extend({ ctor: function(c, a) { b.aa.prototype.ctor.call(this); a && this.n(c, a) }, X: function() { b.aa.prototype.X.call(this); var d = b.I.Ea(); this.fa.$e({ scale: 0.5, x: d.width, y: 0, anchorX: 0.5, anchorY: 0.5 }); this.La.anchorX = 0.5; this.La.anchorY = 0.5; var a = b.yJ(this.q / 4, b.d(-d.width, 0), d.width / 4, 2), c = b.Fe(this.q / 4, 1), d = b.Fe(this.q / 4, 0.5), d = b.gb(d, a), a = b.gb(a, c), c = b.vd(this.q / 2); this.La.ha(d); this.fa.ha(b.gb(c, a, b.$b(this.finish, this))) } }); b.zD.create = function(c, a) { return new b.zD(c, a) }; b.ij = b.aa.extend({ ctor: function(c, a) { b.aa.prototype.ctor.call(this); a && this.n(c, a) }, X: function() { b.aa.prototype.X.call(this); this.Fi(); var a = this.action(); this.fa.ha(b.gb(this.bf(a), b.$b(this.finish, this))) }, Fi: function() { this.fa.G(-b.I.Ea().width, 0) }, action: function() { return b.moveTo(this.q, b.d(0, 0)) }, bf: function(a) { return new b.em(a, 2) } }); b.ij.create = function(c, a) { return new b.ij(c, a) }; b.BD = b.ij.extend({ ctor: function(c, a) { b.ij.prototype.ctor.call(this); a && this.n(c, a) }, Fi: function() { this.fa.G(b.I.Ea().width, 0) } }); b.BD.create = function(c, a) { return new b.BD(c, a) }; b.CD = b.ij.extend({ ctor: function(c, a) { b.ij.prototype.ctor.call(this); a && this.n(c, a) }, Fi: function() { this.fa.G(0, b.I.Ea().height) } }); b.CD.create = function(c, a) { return new b.CD(c, a) }; b.AD = b.ij.extend({ ctor: function(c, a) { b.ij.prototype.ctor.call(this); a && this.n(c, a) }, Fi: function() { this.fa.G(0, -b.I.Ea().height) } }); b.AD.create = function(c, a) { return new b.AD(c, a) }; b.Ui = 0.5; b.jj = b.aa.extend({ ctor: function(c, a) { b.aa.prototype.ctor.call(this); a && this.n(c, a) }, mh: function() { this.qg = !1 }, X: function() { b.aa.prototype.X.call(this); this.Fi(); var c = this.action(), a = this.action(), c = this.bf(c), a = b.gb(this.bf(a), b.$b(this.finish, this)); this.fa.ha(c); this.La.ha(a) }, Fi: function() { this.fa.G(-b.I.Ea().width + b.Ui, 0) }, action: function() { return b.moveBy(this.q, b.d(b.I.Ea().width - b.Ui, 0)) }, bf: function(a) { return new b.dm(a, 2) } }); b.jj.create = function(c, a) { return new b.jj(c, a) }; b.MD = b.jj.extend({ ctor: function(c, a) { b.jj.prototype.ctor.call(this); a && this.n(c, a) }, mh: function() { this.qg = !0 }, Fi: function() { this.fa.G(b.I.Ea().width - b.Ui, 0) }, action: function() { return b.moveBy(this.q, b.d(-(b.I.Ea().width - b.Ui), 0)) } }); b.MD.create = function(c, a) { return new b.MD(c, a) }; b.LD = b.jj.extend({ ctor: function(c, a) { b.jj.prototype.ctor.call(this); a && this.n(c, a) }, mh: function() { this.qg = !1 }, Fi: function() { this.fa.G(0, -(b.I.Ea().height - b.Ui)) }, action: function() { return b.moveBy(this.q, b.d(0, b.I.Ea().height - b.Ui)) } }); b.LD.create = function(c, a) { return new b.LD(c, a) }; b.ND = b.jj.extend({ ctor: function(c, a) { b.jj.prototype.ctor.call(this); a && this.n(c, a) }, mh: function() { this.qg = !0 }, Fi: function() { this.fa.G(0, b.I.Ea().height - b.Ui) }, action: function() { return b.moveBy(this.q, b.d(0, -(b.I.Ea().height - b.Ui))) } }); b.ND.create = function(c, a) { return new b.ND(c, a) }; b.KD = b.aa.extend({ ctor: function(c, a) { b.aa.prototype.ctor.call(this); a && this.n(c, a) }, X: function() { b.aa.prototype.X.call(this); this.fa.$e({ scale: 0.001, anchorX: 2 / 3, anchorY: 0.5 }); this.La.$e({ scale: 1, anchorX: 1 / 3, anchorY: 0.5 }); var c = b.Fe(this.q, 0.01), a = b.Fe(this.q, 1); this.fa.ha(this.bf(a)); this.La.ha(b.gb(this.bf(c), b.$b(this.finish, this))) }, bf: function(a) { return new b.em(a, 2) } }); b.KD.create = function(c, a) { return new b.KD(c, a) }; b.xD = b.me.extend({ ctor: function(d, a, c) { b.me.prototype.ctor.call(this); null == c && (c = b.ej); a && this.n(d, a, c) }, X: function() { b.aa.prototype.X.call(this); var d, a; this.fa.visible = !1; var c; this.Zk === b.ej ? (d = 90, c = 270, a = 90) : (d = -90, c = 90, a = -90); d = b.gb(b.vd(this.q / 2), b.show(), b.gf(this.q / 2, 1, 0, c, d, 0, 0), b.$b(this.finish, this)); a = b.gb(b.gf(this.q / 2, 1, 0, 0, a, 0, 0), b.Gl(), b.vd(this.q / 2)); this.fa.ha(d); this.La.ha(a) } }); b.xD.create = function(d, a, c) { return new b.xD(d, a, c) }; b.yD = b.me.extend({ ctor: function(d, a, c) { b.me.prototype.ctor.call(this); null == c && (c = b.Gs); a && this.n(d, a, c) }, X: function() { b.aa.prototype.X.call(this); var d, a; this.fa.visible = !1; var c; this.Zk === b.Gs ? (d = 90, c = 270, a = 90) : (d = -90, c = 90, a = -90); d = b.gb(b.vd(this.q / 2), b.show(), b.gf(this.q / 2, 1, 0, c, d, 90, 0), b.$b(this.finish, this)); a = b.gb(b.gf(this.q / 2, 1, 0, 0, a, 90, 0), b.Gl(), b.vd(this.q / 2)); this.fa.ha(d); this.La.ha(a) } }); b.yD.create = function(d, a, c) { return new b.yD(d, a, c) }; b.wD = b.me.extend({ ctor: function(d, a, c) { b.me.prototype.ctor.call(this); null == c && (c = b.ej); a && this.n(d, a, c) }, X: function() { b.aa.prototype.X.call(this); var d, a; this.fa.visible = !1; var c; this.Zk === b.ej ? (d = 90, c = 270, a = 90) : (d = -90, c = 90, a = -90); d = b.gb(b.vd(this.q / 2), b.show(), b.gf(this.q / 2, 1, 0, c, d, -45, 0), b.$b(this.finish, this)); a = b.gb(b.gf(this.q / 2, 1, 0, 0, a, 45, 0), b.Gl(), b.vd(this.q / 2)); this.fa.ha(d); this.La.ha(a) } }); b.wD.create = function(d, a, c) { return new b.wD(d, a, c) }; b.RD = b.me.extend({ ctor: function(d, a, c) { b.me.prototype.ctor.call(this); null == c && (c = b.ej); a && this.n(d, a, c) }, X: function() { b.aa.prototype.X.call(this); var d, a; this.fa.visible = !1; var c; this.Zk === b.ej ? (d = 90, c = 270, a = 90) : (d = -90, c = 90, a = -90); d = b.gb(b.vd(this.q / 2), b.hk(b.gf(this.q / 2, 1, 0, c, d, 0, 0), b.Fe(this.q / 2, 1), b.show()), b.$b(this.finish, this)); a = b.gb(b.hk(b.gf(this.q / 2, 1, 0, 0, a, 0, 0), b.Fe(this.q / 2, 0.5)), b.Gl(), b.vd(this.q / 2)); this.fa.scale = 0.5; this.fa.ha(d); this.La.ha(a) } }); b.RD.create = function(d, a, c) { return new b.RD(d, a, c) }; b.SD = b.me.extend({ ctor: function(d, a, c) { b.me.prototype.ctor.call(this); null == c && (c = b.Gs); a && this.n(d, a, c) }, X: function() { b.aa.prototype.X.call(this); var d, a; this.fa.visible = !1; var c; this.Zk === b.Gs ? (d = 90, c = 270, a = 90) : (d = -90, c = 90, a = -90); d = b.gb(b.vd(this.q / 2), b.hk(b.gf(this.q / 2, 1, 0, c, d, 90, 0), b.Fe(this.q / 2, 1), b.show()), b.$b(this.finish, this)); a = b.gb(b.hk(b.gf(this.q / 2, 1, 0, 0, a, 90, 0), b.Fe(this.q / 2, 0.5)), b.Gl(), b.vd(this.q / 2)); this.fa.scale = 0.5; this.fa.ha(d); this.La.ha(a) } }); b.SD.create = function(d, a, c) { return new b.SD(d, a, c) }; b.QD = b.me.extend({ ctor: function(d, a, c) { b.me.prototype.ctor.call(this); null == c && (c = b.ej); a && this.n(d, a, c) }, X: function() { b.aa.prototype.X.call(this); var d, a; this.fa.visible = !1; var c; this.Zk === b.ej ? (d = 90, c = 270, a = 90) : (d = -90, c = 90, a = -90); d = b.gb(b.vd(this.q / 2), b.hk(b.gf(this.q / 2, 1, 0, c, d, -45, 0), b.Fe(this.q / 2, 1), b.show()), b.show(), b.$b(this.finish, this)); a = b.gb(b.hk(b.gf(this.q / 2, 1, 0, 0, a, 45, 0), b.Fe(this.q / 2, 0.5)), b.Gl(), b.vd(this.q / 2)); this.fa.scale = 0.5; this.fa.ha(d); this.La.ha(a) } }); b.QD.create = function(d, a, c) { return new b.QD(d, a, c) }; b.gg = b.aa.extend({ yf: null, ctor: function(d, a, c) { b.aa.prototype.ctor.call(this); this.yf = b.color(); a && this.n(d, a, c) }, X: function() { b.aa.prototype.X.call(this); var c = new b.sb(this.yf); this.fa.visible = !1; this.B(c, 2, b.jp); var c = this.Ci(b.jp), a = b.gb(b.GI(this.q / 2), b.$b(this.zB, this), b.HI(this.q / 2), b.$b(this.finish, this)); c.ha(a) }, Ib: function() { b.aa.prototype.Ib.call(this); this.UB(b.jp, !1) }, n: function(d, a, c) { c = c || b.color.BLACK; b.aa.prototype.n.call(this, d, a) && (this.yf.r = c.r, this.yf.g = c.g, this.yf.b = c.b, this.yf.a = 0); return !0 } }); b.gg.create = function(d, a, c) { return new b.gg(d, a, c) }; b.sD = b.aa.extend({ ctor: function(c, a) { b.aa.prototype.ctor.call(this); a && this.n(c, a) }, X: function() { b.aa.prototype.X.call(this); var e = b.color(0, 0, 0, 0), a = b.I.Ea(), e = new b.sb(e), c = new b.je(a.width, a.height); c.sprite.anchorX = 0.5; c.sprite.anchorY = 0.5; c.$e({ x: a.width / 2, y: a.height / 2, anchorX: 0.5, anchorY: 0.5 }); c.zi(); this.fa.ga(); c.end(); var d = new b.je(a.width, a.height); d.G(a.width / 2, a.height / 2); d.sprite.anchorX = d.anchorX = 0.5; d.sprite.anchorY = d.anchorY = 0.5; d.zi(); this.La.ga(); d.end(); c.sprite.Hh(b.ONE, b.ONE); d.sprite.Hh(b.SRC_ALPHA, b.ONE_MINUS_SRC_ALPHA); e.B(c); e.B(d); c.sprite.opacity = 255; d.sprite.opacity = 255; a = b.gb(b.WA(this.q, 0), b.$b(this.zB, this), b.$b(this.finish, this)); d.sprite.ha(a); this.B(e, 2, b.jp) }, Ib: function() { this.UB(b.jp, !1); b.aa.prototype.Ib.call(this) }, ga: function() { b.f.prototype.ga.call(this) }, AT: function() {} }); b.sD.create = function(c, a) { return new b.sD(c, a) }; b.PD = b.aa.extend({ Sb: null, ctor: function(c, a) { b.aa.prototype.ctor.call(this); this.Sb = new b.Bw; a && this.n(c, a) }, mh: function() { this.qg = !1 }, X: function() { b.aa.prototype.X.call(this); this.Sb.gk(this.La); this.Sb.X(); var a = b.I.Ea(), a = b.Lba(this.q, b.size(0 | a.width / a.height * 12, 12)), a = this.bf(a); this.Sb.ha(b.gb(a, b.$b(this.finish, this), b.Zv())) }, ga: function() { this.fa.ga(); this.Sb.ga() }, bf: function(a) { return a } }); b.PD.create = function(c, a) { return new b.PD(c, a) }; b.Ks = b.aa.extend({ Sb: null, OR: function() { this.Sb.gk(this.fa) }, ctor: function(c, a) { b.aa.prototype.ctor.call(this); this.Sb = new b.Bw; a && this.n(c, a) }, X: function() { b.aa.prototype.X.call(this); this.Sb.gk(this.La); this.Sb.X(); var a = this.action(), a = b.gb(a, b.$b(this.OR, this), a.reverse()); this.Sb.ha(b.gb(this.bf(a), b.$b(this.finish, this), b.Zv())) }, Ib: function() { this.Sb.gk(null); this.Sb.Ib(); b.aa.prototype.Ib.call(this) }, ga: function() { this.Sb.ga() }, bf: function(a) { return new b.dm(a, 3) }, action: function() { return b.kba(this.q / 2, 3) } }); b.Ks.create = function(c, a) { return new b.Ks(c, a) }; b.OD = b.Ks.extend({ ctor: function(c, a) { b.Ks.prototype.ctor.call(this); a && this.n(c, a) }, action: function() { return b.lba(this.q / 2, 3) } }); b.OD.create = function(c, a) { return new b.OD(c, a) }; b.hj = b.aa.extend({ Sb: null, ctor: function(c, a) { b.aa.prototype.ctor.call(this); this.Sb = new b.Bw; a && this.n(c, a) }, mh: function() { this.qg = !1 }, X: function() { b.aa.prototype.X.call(this); this.Sb.gk(this.La); this.Sb.X(); var a = b.I.Ea(), a = this.Kn(b.size(0 | a.width / a.height * 12, 12)); this.Sb.ha(b.gb(this.bf(a), b.$b(this.finish, this), b.Zv())) }, ga: function() { this.fa.ga(); this.Sb.ga() }, bf: function(a) { return a }, Kn: function(a) { return b.h4(this.q, a) } }); b.hj.create = function(c, a) { return new b.hj(c, a) }; b.tD = b.hj.extend({ ctor: function(c, a) { b.hj.prototype.ctor.call(this); a && this.n(c, a) }, Kn: function(a) { return b.f4(this.q, a) } }); b.tD.create = function(c, a) { return new b.tD(c, a) }; b.vD = b.hj.extend({ ctor: function(c, a) { b.hj.prototype.ctor.call(this); a && this.n(c, a) }, Kn: function(a) { return new b.i_(this.q, a) } }); b.vD.create = function(c, a) { return new b.vD(c, a) }; b.uD = b.hj.extend({ ctor: function(c, a) { b.hj.prototype.ctor.call(this); a && this.n(c, a) }, Kn: function(a) { return b.g4(this.q, a) } }); b.uD.create = function(c, a) { return new b.uD(c, a) }; b.eD = 49153; b.le = b.aa.extend({ Tc: 0, Mc: 0, ju: null, gc: "TransitionProgress", ctor: function(c, a) { b.aa.prototype.ctor.call(this); a && this.n(c, a) }, il: function(d, a, c) { d.$e({ x: a, y: c, anchorX: 0.5, anchorY: 0.5 }) }, X: function() { b.aa.prototype.X.call(this); this.iH(); var c = b.I.Ea(), a = new b.je(c.width, c.height); a.sprite.anchorX = 0.5; a.sprite.anchorY = 0.5; this.il(a, c.width / 2, c.height / 2); a.clear(0, 0, 0, 1); a.zi(); this.ju.ga(); a.end(); this.ju === this.La && this.zB(); c = this.al(a); a = b.gb(b.PB(this.q, this.Mc, this.Tc), b.$b(this.finish, this)); c.ha(a); this.B(c, 2, b.eD) }, Ib: function() { this.UB(b.eD, !0); b.aa.prototype.Ib.call(this) }, iH: function() { this.ju = this.La; this.Mc = 100; this.Tc = 0 }, al: function() { b.log("cc.TransitionProgress._progressTimerNodeWithRenderTexture(): should be overridden in subclass"); return null }, mh: function() { this.qg = !1 } }); b.le.create = function(c, a) { return new b.le(c, a) }; b.HD = b.le.extend({ ctor: function(c, a) { b.le.prototype.ctor.call(this); a && this.n(c, a) }, al: function(c) { var a = b.I.Ea(); c = new b.sa(c.sprite); b.ua === b.Lb && (c.sprite.flippedY = !0); c.type = b.sa.gj; c.reverseDir = !1; c.percentage = 100; this.il(c, a.width / 2, a.height / 2); return c } }); b.HD.create = function(c, a) { return new b.HD(c, a) }; b.ix = b.le.extend({ ctor: function(c, a) { b.le.prototype.ctor.call(this); a && this.n(c, a) }, al: function(c) { var a = b.I.Ea(); c = new b.sa(c.sprite); b.ua === b.Lb && (c.sprite.flippedY = !0); c.type = b.sa.gj; c.reverseDir = !0; c.percentage = 100; this.il(c, a.width / 2, a.height / 2); return c } }); b.ix.create = function(d, a) { var c = new b.ix; return null !== c && c.n(d, a) ? c : new b.ix(d, a) }; b.ED = b.le.extend({ ctor: function(c, a) { b.le.prototype.ctor.call(this); a && this.n(c, a) }, al: function(c) { var a = b.I.Ea(); c = new b.sa(c.sprite); b.ua === b.Lb && (c.sprite.flippedY = !0); c.type = b.sa.Dk; c.midPoint = b.d(1, 0); c.barChangeRate = b.d(1, 0); c.percentage = 100; this.il(c, a.width / 2, a.height / 2); return c } }); b.ED.create = function(c, a) { return new b.ED(c, a) }; b.ID = b.le.extend({ ctor: function(c, a) { b.le.prototype.ctor.call(this); a && this.n(c, a) }, al: function(c) { var a = b.I.Ea(); c = new b.sa(c.sprite); b.ua === b.Lb && (c.sprite.flippedY = !0); c.type = b.sa.Dk; c.midPoint = b.d(0, 0); c.barChangeRate = b.d(0, 1); c.percentage = 100; this.il(c, a.width / 2, a.height / 2); return c } }); b.ID.create = function(c, a) { return new b.ID(c, a) }; b.FD = b.le.extend({ ctor: function(c, a) { b.le.prototype.ctor.call(this); a && this.n(c, a) }, al: function(c) { var a = b.I.Ea(); c = new b.sa(c.sprite); b.ua === b.Lb && (c.sprite.flippedY = !0); c.type = b.sa.Dk; c.midPoint = b.d(0.5, 0.5); c.barChangeRate = b.d(1, 1); c.percentage = 0; this.il(c, a.width / 2, a.height / 2); return c }, mh: function() { this.qg = !1 }, iH: function() { this.ju = this.fa; this.Mc = 0; this.Tc = 100 } }); b.FD.create = function(c, a) { return new b.FD(c, a) }; b.GD = b.le.extend({ ctor: function(c, a) { b.le.prototype.ctor.call(this); a && this.n(c, a) }, al: function(c) { var a = b.I.Ea(); c = new b.sa(c.sprite); b.ua === b.Lb && (c.sprite.flippedY = !0); c.type = b.sa.Dk; c.midPoint = b.d(0.5, 0.5); c.barChangeRate = b.d(1, 1); c.percentage = 100; this.il(c, a.width / 2, a.height / 2); return c } }); b.GD.create = function(c, a) { return new b.GD(c, a) }; b.DD = b.aa.extend({ ctor: function(d, a, c) { b.aa.prototype.ctor.call(this); this.Sb = new b.Bw; this.n(d, a, c) }, Ap: !0, Sb: null, gc: "TransitionPageTurn", n: function(d, a, c) { this.Ap = c; b.aa.prototype.n.call(this, d, a); return !0 }, Kn: function(a) { return this.Ap ? b.bK(b.wW(this.q, a)) : b.wW(this.q, a) }, X: function() { b.aa.prototype.X.call(this); var c = b.I.Ea(), a; c.width > c.height ? (c = 16, a = 12) : (c = 12, a = 16); c = this.Kn(b.size(c, a)); a = this.Sb; this.Ap ? (a.gk(this.fa), a.X(), this.fa.visible = !1, a.ha(b.gb(c, b.$b(this.finish, this), b.Zv())), this.fa.ha(b.show())) : (a.gk(this.La), a.X(), a.ha(b.gb(c, b.$b(this.finish, this), b.Zv()))) }, ga: function() { this.Ap ? this.La.ga() : this.fa.ga(); this.Sb.ga() }, mh: function() { this.qg = this.Ap } }); b.DD.create = function(d, a, c) { return new b.DD(d, a, c) }; b.At = b.cM; b.Sp = "Arial"; b.EF = !1; b.bc = b.f.extend({ se: !1, Sc: null, bd: null, Wp: !1, gc: "MenuItem", ctor: function(d, a) { var c = b.f.prototype; c.ctor.call(this); this.bd = this.Sc = null; this.se = this.Wp = !1; c.Xa.call(this, 0.5, 0.5); this.Sc = a || null; if (this.bd = d || null) { this.se = !0 } }, j7: function() { return this.Wp }, Pi: function() {}, zh: function() { return !1 }, gk: function(c, a) { this.Sc = a; this.bd = c }, isEnabled: function() { return this.se }, Wc: function(a) { this.se = a }, Hl: function(c, a) { this.anchorY = this.anchorX = 0.5; this.Sc = a; this.bd = c; this.se = !0; this.Wp = !1; return !0 }, rect: function() { var d = this.Id, a = this.Q, c = this.wf; return b.rect(d.x - a.width * c.x, d.y - a.height * c.y, a.width, a.height) }, selected: function() { this.Wp = !0 }, He: function() { this.Wp = !1 }, $B: function(c, a) { this.Sc = a; this.bd = c }, Dq: function() { if (this.se) { var c = this.Sc, a = this.bd; if (a) { if (c && b.ge(a)) { c[a](this) } else { c && b.nd(a) ? a.call(c, this) : a(this) } } } } }); w = b.bc.prototype; b.l(w, "enabled", w.isEnabled, w.Wc); b.bc.create = function(c, a) { return new b.bc(c, a) }; b.yk = b.bc.extend({ Km: null, dd: null, mn: 0, Dp: null, ctor: function(d, a, c) { b.bc.prototype.ctor.call(this, a, c); this.Dp = this.dd = this.Km = null; d && (this.mn = 1, this.Dp = b.color.WHITE, this.Km = b.color(126, 126, 126), this.Rv(d), this.cascadeOpacity = this.cascadeColor = !0) }, AU: function() { return this.Km }, sX: function(a) { this.Km = a }, IU: function() { return this.dd }, Rv: function(a) { a && (this.B(a), a.anchorX = 0, a.anchorY = 0, this.width = a.width, this.height = a.height); this.dd && this.removeChild(this.dd, !0); this.dd = a }, Wc: function(c) { if (this.se !== c) { var a = this.dd; c ? a.color = this.Dp : (this.Dp = a.color, a.color = this.Km) } b.bc.prototype.Wc.call(this, c) }, yd: function(a) { this.dd.opacity = a }, sh: function() { return this.dd.opacity }, xb: function(a) { this.dd.color = a }, Uf: function() { return this.dd.color }, pJ: function(d, a, c) { this.Hl(a, c); this.mn = 1; this.Dp = b.color.WHITE; this.Km = b.color(126, 126, 126); this.Rv(d); return this.cascadeOpacity = this.cascadeColor = !0 }, zd: function(a) { this.dd.string = a; this.width = this.dd.width; this.height = this.dd.height }, Fl: function() { return this.dd.string }, Dq: function() { this.se && (this.mC(), this.scale = this.mn, b.bc.prototype.Dq.call(this)) }, selected: function() { if (this.se) { b.bc.prototype.selected.call(this); var a = this.dB(b.Os); a ? this.yY(a) : this.mn = this.scale; a = b.Fe(0.1, 1.2 * this.mn); a.Xv(b.Os); this.ha(a) } }, He: function() { if (this.se) { b.bc.prototype.He.call(this); this.zY(b.Os); var a = b.Fe(0.1, this.mn); a.Xv(b.Os); this.ha(a) } } }); w = b.yk.prototype; b.l(w, "string", w.Fl, w.zd); b.l(w, "disabledColor", w.AU, w.sX); b.l(w, "label", w.IU, w.Rv); b.yk.create = function(d, a, c) { return new b.yk(d, a, c) }; b.SC = b.yk.extend({ ctor: function(d, e, f, g, h, k, a) { var c; d && 0 < d.length && (c = new b.Zc(d, e, f, g, h)); b.yk.prototype.ctor.call(this, c, k, a) }, Qd: function(d, e, f, g, h, k, a) { if (!d || 0 === d.length) { throw "cc.MenuItemAtlasFont.initWithString(): value should be non-null and its length should be greater than 0" } var c = new b.Zc; c.Qd(d, e, f, g, h); this.pJ(c, k, a); return !0 } }); b.SC.create = function(e, f, g, h, a, c, d) { return new b.SC(e, f, g, h, a, c, d) }; b.xk = b.yk.extend({ Cb: null, Bb: null, ctor: function(e, a, c) { var d; e && 0 < e.length ? (this.Bb = b.Sp, this.Cb = b.At, d = new b.J(e, this.Bb, this.Cb)) : (this.Cb = 0, this.Bb = ""); b.yk.prototype.ctor.call(this, d, a, c) }, Qd: function(d, a, c) { if (!d || 0 === d.length) { throw "Value should be non-null and its length should be greater than 0" } this.Bb = b.Sp; this.Cb = b.At; d = new b.J(d, this.Bb, this.Cb); this.pJ(d, a, c); return !0 }, Qv: function(a) { this.Cb = a; this.IG() }, iB: function() { return this.Cb }, Pv: function(a) { this.Bb = a; this.IG() }, hB: function() { return this.Bb }, IG: function() { var a = new b.J(this.dd.string, this.Bb, this.Cb); this.Rv(a) } }); b.xk.Qv = function(a) { b.At = a }; b.xk.fontSize = function() { return b.At }; b.xk.Pv = function(a) { b.EF && (b.Sp = ""); b.Sp = a; b.EF = !0 }; w = b.xk.prototype; b.l(w, "fontSize", w.iB, w.Qv); b.l(w, "fontName", w.hB, w.Pv); b.xk.fontName = function() { return b.Sp }; b.xk.create = function(d, a, c) { return new b.xk(d, a, c) }; b.cc = b.bc.extend({ Nc: null, ae: null, Xd: null, ctor: function(d, e, f, g, h) { b.bc.prototype.ctor.call(this); this.Xd = this.ae = this.Nc = null; if (void 0 !== e) { var k, a, c; void 0 !== h ? (k = f, c = g, a = h) : void 0 !== g && b.nd(g) ? (k = f, c = g) : void 0 !== g && b.nd(f) ? (a = g, c = f, k = null) : void 0 === f && (k = null); this.rJ(d, e, k, c, a) } }, TU: function() { return this.Nc }, eC: function(a) { this.Nc !== a && (a && (this.B(a, 0, b.pM), a.anchorX = 0, a.anchorY = 0), this.Nc && this.removeChild(this.Nc, !0), this.Nc = a, this.width = this.Nc.width, this.height = this.Nc.height, this.Cu(), a.Cr && !a.T && a.addEventListener("load", function(c) { this.width = c.width; this.height = c.height }, this)) }, eV: function() { return this.ae }, gC: function(a) { this.ae !== a && (a && (this.B(a, 0, b.aN), a.anchorX = 0, a.anchorY = 0), this.ae && this.removeChild(this.ae, !0), this.ae = a, this.Cu()) }, BU: function() { return this.Xd }, cC: function(a) { this.Xd !== a && (a && (this.B(a, 0, b.xL), a.anchorX = 0, a.anchorY = 0), this.Xd && this.removeChild(this.Xd, !0), this.Xd = a, this.Cu()) }, rJ: function(f, a, c, d, e) { this.Hl(d, e); this.eC(f); this.gC(a); this.cC(c); if (f = this.Nc) { this.width = f.width, this.height = f.height, f.Cr && !f.T && f.addEventListener("load", function(g) { this.width = g.width; this.height = g.height; this.cascadeOpacity = this.cascadeColor = !0 }, this) } return this.cascadeOpacity = this.cascadeColor = !0 }, xb: function(a) { this.Nc.color = a; this.ae && (this.ae.color = a); this.Xd && (this.Xd.color = a) }, Uf: function() { return this.Nc.color }, yd: function(a) { this.Nc.opacity = a; this.ae && (this.ae.opacity = a); this.Xd && (this.Xd.opacity = a) }, sh: function() { return this.Nc.opacity }, selected: function() { b.bc.prototype.selected.call(this); this.Nc && (this.Xd && (this.Xd.visible = !1), this.ae ? (this.Nc.visible = !1, this.ae.visible = !0) : this.Nc.visible = !0) }, He: function() { b.bc.prototype.He.call(this); this.Nc && (this.Nc.visible = !0, this.ae && (this.ae.visible = !1), this.Xd && (this.Xd.visible = !1)) }, Wc: function(a) { this.se !== a && (b.bc.prototype.Wc.call(this, a), this.Cu()) }, Cu: function() { var d = this.Nc, a = this.ae, c = this.Xd; this.se ? (d && (d.visible = !0), a && (a.visible = !1), c && (c.visible = !1)) : c ? (d && (d.visible = !1), a && (a.visible = !1), c && (c.visible = !0)) : (d && (d.visible = !0), a && (a.visible = !1)) } }); w = b.cc.prototype; b.l(w, "normalImage", w.TU, w.eC); b.l(w, "selectedImage", w.eV, w.gC); b.l(w, "disabledImage", w.BU, w.cC); b.cc.create = function(f, a, c, d, e) { return new b.cc(f, a, c, d, e || void 0) }; b.TC = b.cc.extend({ ctor: function(g, h, k, m, n) { var a = null, c = null, d = null, e = null, f = null; void 0 === g ? b.cc.prototype.ctor.call(this) : (a = new b.o(g), h && (c = new b.o(h)), void 0 === m ? e = k : void 0 === n ? (e = k, f = m) : n && (d = new b.o(k), e = m, f = n), b.cc.prototype.ctor.call(this, a, c, d, e, f)) }, jaa: function(a) { this.eC(new b.o(a)) }, Aaa: function(a) { this.gC(new b.o(a)) }, P$: function(a) { this.cC(new b.o(a)) }, I6: function(d, e, f, g, h) { var k = null, a = null, c = null; d && (k = new b.o(d)); e && (a = new b.o(e)); f && (c = new b.o(f)); return this.rJ(k, a, c, g, h) } }); b.TC.create = function(f, a, c, d, e) { return new b.TC(f, a, c, d, e) }; b.jm = b.bc.extend({ Ic: null, If: 0, Ut: null, yf: null, ctor: function() { b.bc.prototype.ctor.call(this); this.If = 0; this.Ic = []; this.Ut = 0; this.yf = b.color.WHITE; 0 < arguments.length && this.BB(Array.prototype.slice.apply(arguments)) }, sh: function() { return this.Ut }, yd: function(c) { this.Ut = c; if (this.Ic && 0 < this.Ic.length) { for (var a = 0; a < this.Ic.length; a++) { this.Ic[a].opacity = c } } this.yf.a = c }, Uf: function() { var a = this.yf; return b.color(a.r, a.g, a.b, a.a) }, xb: function(c) { var a = this.yf; a.r = c.r; a.g = c.g; a.b = c.b; if (this.Ic && 0 < this.Ic.length) { for (a = 0; a < this.Ic.length; a++) { this.Ic[a].xb(c) } } void 0 === c.a || c.aS || this.yd(c.a) }, fV: function() { return this.If }, Vv: function(d) { if (d !== this.If) { this.If = d; (d = this.Ci(b.CC)) && d.vc(!1); d = this.Ic[this.If]; this.B(d, 0, b.CC); var a = d.width, c = d.height; this.width = a; this.height = c; d.G(a / 2, c / 2) } }, Y5: function() { return this.Ic }, Eaa: function(a) { this.Ic = a }, BB: function(e) { var a = e.length; b.nd(e[e.length - 2]) ? (this.Hl(e[e.length - 2], e[e.length - 1]), a -= 2) : b.nd(e[e.length - 1]) ? (this.Hl(e[e.length - 1], null), a -= 1) : this.Hl(null, null); for (var c = this.Ic, d = c.length = 0; d < a; d++) { e[d] && c.push(e[d]) } this.If = b.TD; this.Vv(0); return this.cascadeOpacity = this.cascadeColor = !0 }, Q1: function(a) { this.Ic.push(a) }, Dq: function() { this.se && this.Vv((this.If + 1) % this.Ic.length); b.bc.prototype.Dq.call(this) }, selected: function() { b.bc.prototype.selected.call(this); this.Ic[this.If].selected() }, He: function() { b.bc.prototype.He.call(this); this.Ic[this.If].He() }, Wc: function(d) { if (this.se !== d) { b.bc.prototype.Wc.call(this, d); var a = this.Ic; if (a && 0 < a.length) { for (var c = 0; c < a.length; c++) { a[c].enabled = d } } } }, r$: function() { return this.Ic[this.If] }, T5: function() { return this.Ic[this.If] }, X: function() { b.f.prototype.X.call(this); this.Vv(this.If) } }); w = b.jm.prototype; b.l(w, "selectedIndex", w.fV, w.Vv); b.jm.create = function() { 0 < arguments.length && null == arguments[arguments.length - 1] && b.log("parameters should not be ending with null in Javascript"); var a = new b.jm; a.BB(Array.prototype.slice.apply(arguments)); return a }; b.bp = 0; b.ap = 1; b.K_ = -128; b.FC = 5; b.pd = b.wa.extend({ enabled: !1, Gb: null, Ag: -1, yH: null, gc: "Menu", ctor: function(e) { b.wa.prototype.ctor.call(this); this.yf = b.color.WHITE; this.enabled = !1; this.Ut = 255; this.Gb = null; this.Ag = -1; this.yH = b.ea.create({ event: b.ea.nm, ik: !0, ck: this.MQ, ir: this.QQ, Ll: this.OQ, hr: this.NQ }); 0 < arguments.length && null == arguments[arguments.length - 1] && b.log("parameters should not be ending with null in Javascript"); var a = arguments.length, c; if (0 === a) { c = [] } else { if (1 === a) { c = e instanceof Array ? e : [e] } else { if (1 < a) { c = []; for (var d = 0; d < a; d++) { arguments[d] && c.push(arguments[d]) } } } } this.lJ(c) }, X: function() { var a = this.yH; a.xe || b.ka.addListener(a, this); b.f.prototype.X.call(this) }, isEnabled: function() { return this.enabled }, Wc: function(a) { this.enabled = a }, BB: function(d) { var a = []; if (d) { for (var c = 0; c < d.length; c++) { d[c] && a.push(d[c]) } } return this.lJ(a) }, lJ: function(c) { if (b.wa.prototype.oa.call(this)) { this.enabled = !0; var a = b.N; this.G(a.width / 2, a.height / 2); this.he(a); this.Xa(0.5, 0.5); this.iv(!0); if (c) { for (a = 0; a < c.length; a++) { this.B(c[a], a) } } this.Gb = null; this.Ag = b.bp; return this.cascadeOpacity = this.cascadeColor = !0 } return !1 }, B: function(d, a, c) { if (!(d instanceof b.bc)) { throw "cc.Menu.addChild() : Menu only supports MenuItem objects as children" } b.wa.prototype.B.call(this, d, a, c) }, Z1: function() { this.DS(b.FC) }, DS: function(d) { var e = -d, f = this.K, g, h, k, a; if (f && 0 < f.length) { h = 0; for (g = f.length; h < g; h++) { e += f[h].height * f[h].scaleY + d } var c = e / 2; h = 0; for (g = f.length; h < g; h++) { a = f[h], k = a.height, e = a.scaleY, a.G(0, c - k * e / 2), c -= k * e + d } } }, W1: function() { this.CS(b.FC) }, CS: function(d) { var e = -d, f = this.K, g, h, k, a; if (f && 0 < f.length) { g = 0; for (h = f.length; g < h; g++) { e += f[g].width * f[g].scaleX + d } var c = -e / 2; g = 0; for (h = f.length; g < h; g++) { a = f[g], e = a.scaleX, k = f[g].width, a.G(c + k * e / 2, 0), c += k * e + d } } }, X1: function() { 0 < arguments.length && null == arguments[arguments.length - 1] && b.log("parameters should not be ending with null in Javascript"); for (var m = [], r = 0; r < arguments.length; r++) { m.push(arguments[r]) } var a = -5, c = 0, e = 0, n = 0, p, s, t, d = this.K; if (d && 0 < d.length) { for (r = 0, t = d.length; r < t; r++) { c >= m.length || !(p = m[c]) || (s = d[r].height, e = e >= s || isNaN(s) ? e : s, ++n, n >= p && (a += e + 5, e = n = 0, ++c)) } } var g = b.I.Ea(), k = p = e = c = 0, h = 0, a = a / 2; if (d && 0 < d.length) { for (r = 0, t = d.length; r < t; r++) { var f = d[r]; 0 === p && (p = m[c], h = k = g.width / (1 + p)); s = f.Aj(); e = e >= s || isNaN(s) ? e : s; f.G(h - g.width / 2, a - s / 2); h += k; ++n; n >= p && (a -= e + 5, e = p = n = 0, ++c) } } }, Y1: function() { 0 < arguments.length && null == arguments[arguments.length - 1] && b.log("parameters should not be ending with null in Javascript"); var n = [], p; for (p = 0; p < arguments.length; p++) { n.push(arguments[p]) } var t = [], a = [], c = -10, e = -5, r = 0, s = 0, v = 0, d, k, m, g, f = this.K; if (f && 0 < f.length) { for (p = 0, m = f.length; p < m; p++) { (k = f[p], r >= n.length || !(d = n[r])) || (g = k.width, s = s >= g || isNaN(g) ? s : g, e += k.height + 5, ++v, v >= d && (t.push(s), a.push(e), c += s + 10, s = v = 0, e = -5, ++r)) } } e = b.I.Ea(); d = s = r = 0; var c = -c / 2, h = 0; if (f && 0 < f.length) { for (p = 0, m = f.length; p < m; p++) { k = f[p], 0 === d && (d = n[r], h = a[r]), g = k.mg(), s = s >= g || isNaN(g) ? s : g, k.G(c + t[r] / 2, h - e.height / 2), h -= k.height + 10, ++v, v >= d && (c += s + 5, s = d = v = 0, ++r) } } }, removeChild: function(c, a) { null != c && (c instanceof b.bc ? (this.Gb === c && (this.Gb = null), b.f.prototype.removeChild.call(this, c, a)) : b.log("cc.Menu.removeChild():Menu only supports MenuItem objects as children")) }, MQ: function(e, a) { var c = a.Mb; if (c.Ag !== b.bp || !c.jd || !c.enabled) { return !1 } for (var d = c.parent; null != d; d = d.parent) { if (!d.jd) { return !1 } } c.Gb = c.VF(e); return c.Gb ? (c.Ag = b.ap, c.Gb.selected(), c.Gb.Oi(), !0) : !1 }, OQ: function(d, a) { var c = a.Mb; c.Ag !== b.ap ? b.log("cc.Menu.onTouchEnded(): invalid state") : (c.Gb && (c.Gb.He(), c.Gb.Oi(), c.Gb.Dq()), c.Ag = b.bp) }, NQ: function(d, a) { var c = a.Mb; c.Ag !== b.ap ? b.log("cc.Menu.onTouchCancelled(): invalid state") : (this.Gb && (c.Gb.He(), c.Gb.Oi()), c.Ag = b.bp) }, QQ: function(e, a) { var c = a.Mb; if (c.Ag !== b.ap) { b.log("cc.Menu.onTouchMoved(): invalid state") } else { var d = c.VF(e); d !== c.Gb && (c.Gb && (c.Gb.He(), c.Gb.Oi()), c.Gb = d, c.Gb && (c.Gb.selected(), c.Gb.Oi())) } }, Ib: function() { this.Ag === b.ap && (this.Gb && (this.Gb.He(), this.Gb = null), this.Ag = b.bp); b.f.prototype.Ib.call(this) }, Pi: function() {}, zh: function() { return !1 }, VF: function(f) { f = f.Zj(); var g = this.K, a; if (g && 0 < g.length) { for (var c = g.length - 1; 0 <= c; c--) { if (a = g[c], a.jd && a.isEnabled()) { var d = a.Rn(f), e = a.rect(); e.x = 0; e.y = 0; if (b.QJ(e, d)) { return a } } } } return null } }); w = b.pd.prototype; b.pd.create = function(c) { var a = arguments.length; 0 < a && null == arguments[a - 1] && b.log("parameters should not be ending with null in Javascript"); return 0 === a ? new b.pd : 1 === a ? new b.pd(c) : new b.pd(Array.prototype.slice.call(arguments, 0)) }; (function() { var f = b.Z, g = { common: { xd: !0, Ad: b.Z.Yz, kd: !0 } }; g[f.qk] = { xd: !0, Ad: b.Z.Yz, kd: !0, Cl: !0 }; g[f.xC] = { xd: !1, Ad: !1, kd: !1 }; g[f.Vi] = { xd: !0, Ad: !0, kd: !1 }; g[f.Wi] = { xd: !0, Ad: !0, kd: !0, tT: !0 }; g[f.Rr] = { xd: !0, Ad: !1, kd: !1 }; g[f.hw] = { xd: !1, Ad: !1, kd: !0 }; g[f.AC] = { xd: !1, Ad: !1, kd: !1, ro: !0, Cl: !0 }; g[f.Sr] = { xd: !1, Ad: !1, kd: !1, ro: !0, Cl: !0 }; g[f.wC] = { xd: !1, Ad: !1, kd: !0 }; g[f.am] = { xd: !1, Ad: !1, kd: !0 }; g[f.cL] = { xd: !1, Ad: !1, kd: !1, ro: !0, Cl: !0 }; g[f.BC] = { xd: !1, Ad: !1, kd: !1, ro: !0, Cl: !0 }; g[f.Qr] = { xd: !1, Ad: !1, kd: !1, ro: !0, Cl: !0 }; g[f.yC] = { xd: !1, Ad: !1, kd: !1, ro: !0, Cl: !0 }; g[f.rk] = { xd: !0, Ad: !0, kd: !1, WK: function(h) { document.createElement("audio").src = h } }; var a, c; try { var d = navigator.userAgent.toLowerCase(); switch (f.Sf) { case f.qk: c = d.match(/(msie |rv:)([\d.]+)/); break; case f.Wi: c = d.match(/(firefox\/|rv:)([\d.]+)/); break; case f.Vi: c = d.match(/chrome\/([\d.]+)/); break; case f.Qr: c = d.match(/baidubrowser\/([\d.]+)/); break; case f.Rr: c = d.match(/ucbrowser\/([\d.]+)/); break; case f.hw: c = d.match(/qqbrowser\/([\d.]+)/); break; case f.AC: c = d.match(/oupeng\/([\d.]+)/); break; case f.Sr: c = d.match(/micromessenger\/([\d.]+)/); break; case f.rk: c = d.match(/safari\/([\d.]+)/); break; case f.am: c = d.match(/miuibrowser\/([\d.]+)/) } a = c ? c[1] : "" } catch (e) { console.log(e) } if (a) { switch (f.Sf) { case f.Vi: 30 > parseInt(a) && (g[f.Vi] = { xd: !1, Ad: !0, kd: !1 }); break; case f.am: if (a = a.match(/\d+/g), 2 > a[0] || 2 === a[0] && 0 === a[1] && 1 >= a[2]) { g[f.am].kd = !1 } } } if (b.Z.yh) { b.Rs = b.Z.dk !== b.Z.dp ? g[f.Sf] || g.common : g[f.rk] } else { switch (f.Sf) { case f.qk: b.Rs = g[f.qk]; break; case f.Wi: b.Rs = g[f.Wi]; break; default: b.Rs = g.common } } })(); b.Eo = b.Ia.extend({ volume: 1, loop: !1, src: null, xH: !1, Te: !1, vf: "AUDIO", fq: !1, Na: null, Vh: null, rq: null, Jm: null, bb: null, Bq: null, Ay: !1, $g: null, ctor: function(d, a, c) { d && (this.bb = d); a && (this.Bq = a); d && a && (this.vf = "WEBAUDIO"); this.src = c }, ku: null, ZB: function(c) { if (c) { var a = this.Te; this.vf = "WEBAUDIO"; this.Na && this.Na !== c && this.Di() && this.stop(); this.Na = c; a && this.play(); this.Bq.gain.value = this.volume; this.ku && this.ku(c) } }, aH: null, nK: function(c) { if (c) { var a = this.Te; this.vf = "AUDIO"; this.$g && this.$g !== c && this.Di() && this.stop(); this.$g = c; a && this.play(); c.volume = this.volume; c.loop = this.loop; this.aH && this.aH(c) } }, play: function(c, a) { this.Te = !0; this.loop = void 0 === a ? this.loop : a; "AUDIO" === this.vf ? this.ZQ(c) : this.xG(c) }, Di: function() { if (!this.Te) { return this.Te } if ("AUDIO" === this.vf) { var a = this.$g; return !a || this.fq || a.ended ? this.Te = !1 : !0 } return (a = this.Vh) ? null == a.playbackState ? this.Te : this.Jm + this.bb.currentTime - this.rq < this.Vh.buffer.duration : !0 }, xG: function(e) { var a = this.Vh; if (this.Na) { if (!this.fq && a) { if (0 === this.bb.currentTime || this.Jm + this.bb.currentTime - this.rq > this.Vh.buffer.duration) { this.uH() } else { return } } a = this.bb.createBufferSource(); a.buffer = this.Na; a.connect(this.Bq); a.loop = this.loop; this.rq = this.bb.currentTime; this.Jm = 0; if (a.start) { a.start(0, e || 0) } else { if (a.noteGrainOn) { var c = a.buffer.duration; this.loop ? a.noteGrainOn(0, e, c) : a.noteGrainOn(0, e, c - e) } else { a.noteOn(0) } } this.Vh = a; var d = this; a.onended = function() { d.Ay ? d.Ay = !1 : d.Te = !1 } } }, ZQ: function() { var a = this.$g; a && (a.loop = this.loop, a.play()) }, stop: function() { this.Te = !1; "AUDIO" === this.vf ? this.NR() : this.uH() }, uH: function() { var a = this.Vh; this.Ay = !0; a && (a.stop(0), this.Vh = null) }, NR: function() { var a = this.$g; a && (a.pause(), a.duration && Infinity !== a.duration && (a.currentTime = 0)) }, pause: function() { this.Te = !1; this.fq = !0; "AUDIO" === this.vf ? this.WQ() : this.XQ() }, XQ: function() { this.Jm += this.bb.currentTime - this.rq; var a = this.Vh; a && a.stop(0) }, WQ: function() { var a = this.$g; a && a.pause() }, ek: function() { this.fq && ("AUDIO" === this.vf ? this.hR() : this.iR(), this.fq = !1, this.Te = !0) }, iR: function() { var a = this.Vh; a && (this.rq = this.bb.currentTime, this.xG(this.Jm % a.buffer.duration)) }, hR: function() { var a = this.$g; a && a.play() }, Br: function(a) { 1 < a && (a = 1); 0 > a && (a = 0); this.volume = a; "AUDIO" === this.vf ? this.$g && (this.$g.volume = a) : this.Bq && (this.Bq.gain.value = a) }, s6: function() { return this.volume }, cloneNode: function() { var d, a; if ("AUDIO" === this.vf) { d = new b.Eo; var c = document.createElement("audio"); c.src = this.src; d.nK(c) } else { c = this.bb.createGain(), c.gain.value = 1, c.connect(this.bb.destination), d = new b.Eo(this.bb, c, this.src), this.Na ? d.ZB(this.Na) : (a = this, this.ku = function(e) { d.ZB(e); a.ku = null }) } d.vf = this.vf; return d } }); (function(h) { var k = h.Ad, m = h.xd, a = h.kd, c = []; (function() { var j = document.createElement("audio"); if (j.canPlayType) { var i = j.canPlayType('audio/ogg; codecs\x3d"vorbis"'); i && "" !== i && c.push(".ogg"); (i = j.canPlayType("audio/mpeg")) && "" !== i && c.push(".mp3"); (i = j.canPlayType('audio/wav; codecs\x3d"1"')) && "" !== i && c.push(".wav"); (i = j.canPlayType("audio/mp4")) && "" !== i && c.push(".mp4"); (j = j.canPlayType("audio/x-m4a")) && "" !== j && c.push(".m4a") } })(); try { if (k) { var d = new(window.AudioContext || window.webkitAudioContext || window.mozAudioContext); h.tT && setTimeout(function() { d = new(window.AudioContext || window.webkitAudioContext || window.mozAudioContext) }, 0) } } catch (e) { k = !1, b.log("browser don't support webAudio") } var f = { Vc: {}, load: function(j, o, r, s) { if (0 === c.length) { return s("can not support audio!") } var t = b.path.Yj(j), u = [t]; for (r = 0; r < c.length; r++) { t !== c[r] && u.push(c[r]) } var p; if (f.Vc[o]) { return s(null, f.Vc[o]) } if (k) { try { var i = d.createGain(); i.gain.value = 1; i.connect(d.destination); p = new b.Eo(d, i, j) } catch (n) { k = !1, b.log("browser don't support webAudio"), p = new b.Eo(null, null, j) } } else { p = new b.Eo(null, null, j) } this.HB(j, u, p, s); f.Vc[o] = p }, HB: function(t, u, r, v) { if (0 === u.length) { var i = "can not found the resource of audio! Last match url is : ", i = i + t.replace(/\.(.*)?$/, "("); c.forEach(function(B) { i += B + "|" }); i = i.replace(/\|$/, ")"); return v(i) } t = b.path.oI(t, u.splice(0, 1)); if (k) { h.WK && h.WK(t); var n = new XMLHttpRequest; n.open("GET", t, !0); n.responseType = "arraybuffer"; n.onload = function() { d.decodeAudioData(n.response, function(B) { r.ZB(B); v(null, r) }, function() { f.HB(t, u, r, v) }) }; n.send() } else { var j = document.createElement("audio"), p = !1, s = !1, x = setTimeout(function() { 0 === j.readyState ? o() : (s = !0, v("audio load timeout : " + t, r)) }, 10000), y = function() { p || (r.nK(j), j.removeEventListener("canplaythrough", y, !1), j.removeEventListener("error", A, !1), j.removeEventListener("emptied", o, !1), !s && v(null, r), p = !0, clearTimeout(x)) }, A = function() { p && (j.removeEventListener("canplaythrough", y, !1), j.removeEventListener("error", A, !1), j.removeEventListener("emptied", o, !1), !s && f.HB(t, u, r, v), p = !0, clearTimeout(x)) }, o = function() { s = !0; y(); v(null, r) }; b.Qa(j, "canplaythrough", y, !1); b.Qa(j, "error", A, !1); h.Cl && b.Qa(j, "emptied", o, !1); j.src = t; j.load() } } }; b.S.Gh(["mp3", "ogg", "wav", "mp4", "m4a"], f); b.Fc = { Xg: null, Py: 1, fca: function() { return !1 }, AW: function(n, i) { var j = this.Xg; j && j.src !== n && j.Di() && j.stop(); j = f.Vc[n]; j || (b.S.load(n), j = f.Vc[n]); j.play(0, i); j.Br(this.Py); this.Xg = j }, $v: function(j) { var i = this.Xg; i && (i.stop(), j && b.S.uc(i.src)) }, i9: function() { var i = this.Xg; i && i.pause() }, d$: function() { var i = this.Xg; i && i.ek() }, g$: function() { var i = this.Xg; i && (i.stop(), i.play()) }, t5: function() { return this.Py }, Sv: function(j) { j -= 0; isNaN(j) && (j = 1); 1 < j && (j = 1); 0 > j && (j = 0); this.Py = j; var i = this.Xg; i && i.Br(j) }, a7: function() { var i = this.Xg; return i ? i.Di() : !1 }, Sh: {}, kG: 5, ot: 1, OB: function(p, n) { if (!m) { return null } var i = this.Sh[p]; i || (i = this.Sh[p] = []); var j; for (j = 0; j < i.length && i[j].Di(); j++) {} if (i[j]) { o = i[j], o.Br(this.ot), o.play(0, n) } else { if (!k && j > this.kG) { b.log("Error: %s greater than %d", p, this.kG) } else { var o = f.Vc[p]; o || (b.S.load(p), o = f.Vc[p]); o = o.cloneNode(); o.Br(this.ot); o.loop = n || !1; o.play(); i.push(o) } } return o }, Ov: function(p) { p -= 0; isNaN(p) && (p = 1); 1 < p && (p = 1); 0 > p && (p = 0); this.ot = p; var n = this.Sh, i; for (i in n) { var j = n[i]; if (Array.isArray(j)) { for (var o = 0; o < j.length; o++) { j[o].Br(p) } } } }, V4: function() { return this.ot }, h9: function(i) { i && i.pause() }, e9: function() { var o = this.Sh, i; for (i in o) { for (var j = o[i], n = 0; n < o[i].length; n++) { j[n].Di() && j[n].pause() } } }, c$: function(i) { i && i.ek() }, b$: function() { var o = this.Sh, i; for (i in o) { for (var j = o[i], n = 0; n < o[i].length; n++) { j[n].ek() } } }, oba: function(i) { i && i.stop() }, AY: function() { var o = this.Sh, i; for (i in o) { for (var j = o[i], n = 0; n < o[i].length; n++) { j[n].stop() } } }, Mba: function(j) { if (j) { b.S.uc(j); var i = this.Sh[j]; i && (i.length = 0); delete this.Sh[j]; delete f.Vc[j] } }, end: function() { this.$v(); this.AY() }, Zy: [], YQ: function() { var o = this.Xg; o && o.Di() && (o.pause(), this.Zy.push(o)); var o = this.Sh, i; for (i in o) { for (var j = o[i], n = 0; n < o[i].length; n++) { j[n].Di() && (j[n].pause(), this.Zy.push(j[n])) } } }, jR: function() { for (var j = this.Zy, i = 0; i < j.length; i++) { j[i].ek() } j.length = 0 } }; if (!a) { var g = function() { var i = b.Fc.Xg; i && !1 === i.xH && i.Te && i.Di() && (i.xH = !0, i.play(0, i.loop), !h.ro && b.Oa.removeEventListener("touchstart", g)) }; setTimeout(function() { b.Oa && b.Oa.addEventListener("touchstart", g, !1) }, 150) } b.ka.vA(b.Ma.qw, function() { b.Fc.YQ() }); b.ka.vA(b.Ma.Zr, function() { b.Fc.jR() }) })(b.Rs); b.or = { Hd: {}, cR: function() { this.uc() }, fP: function(c) { var a = void 0 === c.Hf ? !1 : !c.Hf; b.I.th().Ni(this.cR, c, 0, 0, 0, a) }, p9: function(d) { var a = d.constructor.prototype.qx; if (!a) { var c = { writable: !0, enumerable: !1, configurable: !0 }; c.value = ga.SI(); Object.defineProperty(d.constructor.prototype, "__pid", c) } this.Hd[a] || (this.Hd[a] = []); this.Hd[a].push(d) }, yB: function(a) { return (a = this.Hd[a.prototype.qx]) && 0 !== a.length ? !0 : !1 }, Q9: function(d) { var a = d.constructor.prototype.qx; if (a && (a = this.Hd[a])) { for (var c = 0; c < a.length; c++) { d === a[c] && (d.uc && d.uc(), a.splice(c, 1)) } } }, RI: function(d) { if (this.yB(d)) { var a = this.Hd[d.prototype.qx], c = Array.prototype.slice.call(arguments); c.shift(); a = a.pop(); a.so && a.so.apply(a, c); b.Z.wJ && a.uc && this.fP(a); return a } }, zT: function() { for (var d in this.Hd) { for (var a = 0; a < this.Hd[d].length; a++) { var c = this.Hd[d][a]; c.uc && c.uc() } } this.Hd = {} } }; if ("zh" == b.Z.language) { var K = { hJ: "res/homeBg.png", Rq: "res/background.jpg", KI: "res/gameRes.plist", aB: "res/gameRes.png", Fr: "res/scored-number.fnt", SY: "res/scored-number.png", TB: "res/relive.png", kI: "res/en-share.png", fI: "res/bgSound.mp3", cB: "res/gameTitle.plist", El: "res/gameTitle.png", LI: "res/title.json", iI: "res/arrowhead.json", jI: "res/play.json", Tu: "res/cross.mp3", $A: "res/fragment-red.json", ZA: "res/fragment-blue.json" }, na = [], qa } else { K = { hJ: "res/homeBg.png", Rq: "res/background.jpg", KI: "res/gameRes-en.plist", aB: "res/gameRes-en.png", Fr: "res/scored-number.fnt", SY: "res/scored-number.png", TB: "res/relive.png", fI: "res/bgSound.mp3", cB: "res/gameTitle.plist", El: "res/gameTitle.png", LI: "res/title.json", iI: "res/arrowhead.json", jI: "res/play.json", Tu: "res/cross.mp3", $A: "res/fragment-red.json", ZA: "res/fragment-blue.json" }, na = [] } for (qa in K) { na.push(K[qa]) } var L = [], ra = 1, sa = 1, M = 1, ta = 0.75, N = "", O = "", P = 0, ua = 1, va = 0, wa = 1, xa = 0, ya = ["block-large-blue.png", "block-small-blue.png", "block-large-red.png", "block-small-red.png"]; "" == b.Z.localStorage.getItem("sRedBlueBestScore") || null == b.Z.localStorage.getItem("sRedBlueBestScore") ? M = 1 : (xa = b.Z.localStorage.getItem("sRedBlueBestScore"), M = 0); sa = 0 == b.Z.localStorage.getItem("sRedBlueMusic") ? 0 : 1; ra = 0 == b.Z.localStorage.getItem("sRedBlueSound") ? 0 : 1; var za = b.Ia.extend({ GK: null, sc: [], M2: [], Vl: [], ctor: function(e, a, c) { var d = this; b.S.IB(e, function(g, f) { g || d.AV(f, a, c) }) }, AV: function(e, a, c) { this.sc = e; this.GK = a; for (e = 0; e < this.sc.length; e++) { if (a = new b.o(b.W.V(this.sc[e].filename)), this.Vl = [], this.uY(a, this.sc[e]), (1 < this.sc[e].rotate.length || 0 < this.sc[e].rotate[0].duration) && this.vY(a, this.sc[e].rotate), (1 < this.sc[e].scale.length || 0 < this.sc[e].scale[0].duration) && this.wY(a, this.sc[e].scale), (1 < this.sc[e].opacity.length || 0 < this.sc[e].opacity[0].duration) && this.sY(a, this.sc[e].opacity), (1 < this.sc[e].position.length || 0 < this.sc[e].position[0].duration) && this.tY(a, this.sc[e].position), this.GK.B(a, this.sc.length - 1 - this.sc[e].index), 0 < this.Vl.length) { var d = new b.Oh(this.Vl), d = new b.yc(new b.bm(this.sc[e].K6), d); d.uX(this.sc[e].outpoint); 0 <= this.sc[e].comment[0].indexOf("loop\x3d-1") && (d = d.VB()); d.speed(c); a.ha(d) } } }, uY: function(c, a) { c.$e({ x: a.propertyInit.Position.startpos.x, y: a.propertyInit.Position.startpos.y, anchorX: a.propertyInit.AnchorPoint[0], anchorY: a.propertyInit.AnchorPoint[1], width: a.width, height: a.height, opacity: a.propertyInit.Opacity / 100 * 255, rotation: a.propertyInit.Rotate, scaleX: parseInt(a.propertyInit.Scale[0] / a.propertyInit.Scale[2]), scaleY: parseInt(a.propertyInit.Scale[1] / a.propertyInit.Scale[2]) }) }, vY: function(f, a) { for (var c = [], d = 0; d < a.length; d++) { if (0 < a[d].duration) { var e = b.XB(a[d].duration, a[d].value); c.push(e) } } this.Vl.push(new b.yc(c)) }, sY: function(f, a) { for (var c = [], d = 0; d < a.length; d++) { if (0 < a[d].duration) { var e = b.WA(a[d].duration, a[d].value / 100 * 255); c.push(e) } } this.Vl.push(new b.yc(c)) }, wY: function(f, a) { for (var c = [], d = 0; d < a.length; d++) { if (0 < a[d].duration) { var e = b.Fe(a[d].duration, a[d].value[0] / a[d].value[2], a[d].value[1] / a[d].value[2]); c.push(e) } } this.Vl.push(new b.yc(c)) }, tY: function(f, a) { for (var c = [], d = 0; d < a.length; d++) { if (0 < a[d].duration) { var e = [b.d(a[d].value.startpos.x, a[d].value.startpos.y), b.d(a[d].value.cp1.x, a[d].value.cp1.y), b.d(a[d].value.cp2.x, a[d].value.cp2.y)], e = new b.Tr(a[d].duration, e); c.push(e) } } this.Vl.push(new b.yc(c)) } }); b.wa.extend({ N: null, ctor: function() { this._super(); this.N = b.I.Ea(); this.oa() }, oa: function() { this._super(); var a = b.ea.create({ event: b.ea.nm, ik: !0, ck: function() { return !0 }, Ll: function() {} }); b.ka.addListener(a, this); a = null } }); b.wa.extend({ Hi: 0, ctor: function() { this._super(); this.Hi = 0; var a = new b.o(b.W.V("download-game.png")); a.Xa(0, 0); a.x = 0; a.y = 20; this.B(a); this.Hi += a.eb().width; a = new b.cc(new b.o(b.W.V("ios.png")), new b.o(b.W.V("ios.png")), this.yT, this); a = new b.pd(a); a.Xa(0, 0); a.x = this.Hi + 60; a.y = 42; this.B(a); this.Hi += 106; a = new b.cc(new b.o(b.W.V("android.png")), new b.o(b.W.V("android.png")), this.xT, this); a = new b.pd(a); a.Xa(0, 0); a.x = this.Hi + 100; a.y = 42; this.B(a); this.Hi += 190 }, yT: function() { alert("Applestore\u5ba1\u6838\u4e2d\uff0c\u5f88\u5feb\u5c31\u80fd\u548c\u5c0f\u4f19\u4f34\u4eec\u89c1\u9762\u4e86~") }, xT: function() {} }); var Aa = b.wa.extend({ Pf: null, Qf: null, oa: function() { var a = !1; this.yb = new b.Sa(K.Rq); this.B(this.yb); this._super() && (this.xY(K.Rq), a = !0); return a }, xY: function(a) { this.Pf = new b.o(a); this.Pf.G(b.d(this.Pf.eb().width / 2, this.Pf.eb().height / 2)); this.B(this.Pf); this.Qf = new b.o(a); this.Qf.G(b.d(0.5 * this.Qf.eb().width, 1.5 * this.Qf.eb().height)); this.B(this.Qf) }, X: function() { this._super(); this.jf(2); this.fk() }, update: function() { this.Pf.qb() <= -this.Pf.eb().height / 2 ? this.Pf.G(b.d(0.5 * this.Pf.eb().width, 1.5 * this.Pf.eb().height - 2)) : this.Pf.G(b.Hg(this.Pf.Vq(), b.d(0, -2))); this.Qf.qb() <= -this.Qf.eb().height / 2 ? this.Qf.G(b.d(0.5 * this.Qf.eb().width, 1.5 * this.Qf.eb().height - 2)) : this.Qf.G(b.Hg(this.Qf.Vq(), b.d(0, -2))) } }); Aa.create = function() { var a = new Aa; return a && a.oa() ? a : null }; var Da = b.Pg.extend({ N: null, mk: null, B6: null, lf: null, Wa: null, kc: null, uh: null, ef: null, vh: null, JI: 1, X: function() { this._super(); this.N = b.N; b.W.Ju(K.cB); this.Dg(); this.xA(); this.oS(); this.Wa = new b.o(b.W.V("me-large-blue.png")); this.Wa.G(0.25 * this.N.width, 200); O = "Blue"; this.B(this.Wa, 1); this.kc = new b.o(b.W.V("me-large-red.png")); this.kc.G(0.75 * this.N.width, 200); O = "Red"; this.B(this.kc, 1); this.Ql(this.Fq, 1) }, Dg: function() { var a = new b.o(K.Rq); a.jf(1); a.x = 0.5 * b.N.width; a.y = b.N.height; this.B(a) }, xA: function() { this.mk = new b.o(b.W.V("score-bg.png")); this.mk.Xa(0.5, 1); this.mk.G(0.5 * this.N.width, this.N.height); this.B(this.mk); this.lf = new b.Sd("0", K.Fr, b.mm); this.lf.jf(0.6); this.lf.G(0.5 * this.N.width, this.N.height - 38); this.B(this.lf) }, oS: function() { this.uh = new b.o(b.W.V("taparea-left-(2).png")); this.uh.Xa(0.5, 0); this.uh.x = 0.25 * this.N.width; this.uh.y = 0; this.uh.opacity = 0; this.B(this.uh); this.ef = new b.o(b.W.V("help-1-word.png")); this.ef.Xa(0.5, 0); this.ef.x = 0.5 * b.N.width; this.ef.y = 476; this.ef.opacity = 0; this.B(this.ef); this.vh = new b.o(b.W.V("help-1-line.png")); this.vh.Xa(0, 0); this.vh.x = 132; this.vh.y = 394; this.vh.opacity = 0; this.B(this.vh) }, sA: function() { this.Wa.vc(); this.Wa = null; this.Wa = new Ba("Blue"); this.Wa.G(0.25 * this.N.width, 200); N = "Blue"; this.B(this.Wa, 1) }, xb: function() { N = this.Wa.Eq; O = this.kc.Eq }, Fq: function() { L = []; var c = new Ca(1); c.G(0.25 * this.N.width, this.N.height - 32); this.B(c); L.push(c); var a = new b.yc(b.moveTo(0.3, b.d(0.25 * this.N.width, 700)), new b.Xi(this.iY, this)); c.ha(a) }, iY: function() { var c = new b.wk(0.5, 255); this.uh.ha(c); var a = c.k(); this.ef.ha(a); c = c.k(); this.vh.ha(c); this.sA(); this.zA() }, KB: function(a) { 3 == a && this.JI ? (null != this.uh && (this.uh.vc(), this.uh = null), null != this.vh && (this.vh.vc(), this.vh = null), null != this.ef && (this.ef.vc(), this.ef = null), this.Ql(this.nW, 1), this.JI = 0) : 4 == a && (null != this.ef && (this.ef.vc(), this.ef = null), a = new b.o(b.W.V("help-3-1.png")), a.Xa(0.5, 0), a.x = 0.5 * b.N.width, a.y = 560, this.B(a), a = new b.o(b.W.V("help-3-2.png")), a.Xa(0.5, 0), a.x = 0.5 * b.N.width, a.y = 460, this.B(a), M = 0, this.Ql(this.vV, 1.5)) }, nW: function() { var a = new b.yc(b.moveTo(1, b.d(0.25 * this.N.width, 270)), new b.Xi(this.uA, this)); L[0].ha(a) }, uA: function() { N == L[0].Sn ? (this.lf.zd("1"), this.Pq(), this.KB(4)) : (this.xo(N, this.Wa), this.Sq()); L[0].vc(); L.shift() }, Pq: function() { ra && b.Fc.OB(K.Tu, !1) }, xo: function(f, g) { if (b.Z.wJ) { if ("Red" == f) { var a = b.Ra.lc(K.s4), c = new b.UM(a); this.B(c); var d = new b.VM(K.r4) } else { a = b.Ra.lc(K.q4), c = new b.UM(a), this.B(c), d = new b.VM(K.p4) } var a = g.pb(), e = g.qb(); g.vc(); d.U6(); d.x = a; d.y = e; c.B(d) } else { "Red" == f ? (c = new b.wa, c.yb = new b.Sa(K.El), c.B(c.yb), new za(K.$A, c.yb, 1)) : (c = new b.wa, c.yb = new b.Sa(K.El), c.B(c.yb), new za(K.ZA, c.yb, 1)), a = g.pb(), e = g.qb(), g.vc(), c.x = a - 160, c.y = e - 100, this.B(c) } }, KX: function() { this.G(b.d(0, 0)) }, Sq: function() { L[0].vc(); this.Hr(); b.Z.yh ? this.dv() : this.Ql(this.dv, 1.5) }, dv: function() { b.I.Jg(new b.gg(0.3, new Da)) }, vV: function() { b.I.Jg(new b.gg(0.3, new Ea)) }, zA: function() { this.B(new Fa, 99) } }); var Ga = b.wa.extend({ yb: null, ctor: function() { this._super(); this.Dg(); this.kW(); this.YS(); this.nS(); ra ? b.Fc.Ov(1) : b.Fc.Ov(0); sa ? b.Fc.Sv(0.5) : b.Fc.Sv(0) }, kW: function() { var a = new b.wa; b.W.Ju(K.cB); a.yb = new b.Sa(K.El); a.B(a.yb); new za(K.LI, a.yb, 1); a.jf(640 / 768); a.x = -50; a.y = 80; this.B(a) }, Dg: function() { var a = new b.o(K.hJ); a.jf(1008 / a.eb().height); a.x = 0.5 * b.N.width; a.y = 0.5 * b.N.height; this.B(a) }, YS: function() { var a = new b.cc(new b.o(b.W.V("en-start.png")), new b.o(b.W.V("en-start.png")), this.bB, this), a = new b.pd(a); a.G(b.d(0.5 * b.N.width, 240)); a.Xa(0.5, 0.5); this.B(a, 2); a = new b.wa; a.yb = new b.Sa(K.El); a.B(a.yb); new za(K.jI, a.yb, 4); a.$e({ x: -50, y: 24 }); this.B(a, 1) }, nS: function() { var a = new b.J("68微游戏", "Microsoft YaHei", 24); a.G(b.Hg(b.Yl.bottom, b.d(0, 30))); a.xb(b.color(200, 200, 200)); this.B(a, 10) }, bB: function() { b.Fc.OB(K.Tu); M ? b.I.Jg(new b.gg(0.3, new Da)) : b.I.Jg(new b.gg(0.3, new Ea)) }, hS: function() {} }), Ha = b.Pg.extend({ X: function() { this._super(); this.B(new Ga) } }); var Ba = b.o.extend({ Eq: "", UH: 0, yi: null, ctor: function(a) { this._super(); this.yi = "Red" == a ? new b.cc(new b.o(b.W.V("me-large-red.png")), new b.o(b.W.V("me-large-blue.png")), this.MJ, this) : new b.cc(new b.o(b.W.V("me-large-blue.png")), new b.o(b.W.V("me-large-red.png")), this.MJ, this); this.Eq = a; this.UH = this.yi.eb().width; a = new b.pd(this.yi); a.x = 0; a.y = 0; this.B(a) }, MJ: function() { this.getParent().xb() } }); var Ca = b.o.extend({ TH: 0, Sn: "", ctor: function(c) { if (c) { a = b.W.V(ya[2]), this.Sn = "Red" } else { c = parseInt(4 * Math.random() + 0, 10); var a = b.W.V(ya[c]); this.Sn = 2 > c ? "Blue" : "Red" } this._super(a) }, so: function() { if (guide) { a = b.W.V(ya[2]), this.Sn = "Red" } else { var c = parseInt(4 * Math.random() + 0, 10), a = b.W.V(ya[c]); this.Sn = 2 > c ? "Blue" : "Red" } this.Ul(a) }, UY: function() {} }); Ca.create = function(a) { return b.or.yB(Ca) ? b.or.RI(Ca, a) : new Ca(a) }; var Ia = b.o.extend({ TH: 1, BI: "", Nq: "", ctor: function() { this._super(); var c = parseInt(4 * Math.random() + 0, 10), a = b.o.JA(b.W.V(ya[c])); this.BI = 2 > c ? "Blue" : "Red"; a.G(0.25 * b.I.Ea().width, 0); this.B(a); a = parseInt(4 * Math.random() + 0, 10); 0 == c % 2 ? 2 > a ? (c = b.o.JA(b.W.V(ya[0])), this.Nq = "Blue") : (c = b.o.JA(b.W.V(ya[2])), this.Nq = "Red") : 2 > a ? (c = new b.o(b.W.V(ya[1])), this.Nq = "Blue") : (c = new b.o(b.W.V(ya[3])), this.Nq = "Red"); c.G(0.75 * b.I.Ea().width, 0); this.B(c) }, so: function() { this.qo(); this.ctor() }, UY: function() {} }); Ia.create = function() { return b.or.yB(Ia) ? b.or.RI(Ia) : new Ia }; var Ka = b.wa.extend({ Lu: null, yb: null, b9: null, c9: null, d9: null, Dr: null, N: null, lf: null, Wa: null, kc: null, ee: null, Fba: 1, Al: null, ctor: function() { this._super(); va ? this.Al = P % 10 : (P = 0, wa = 1, this.Al = 0, this.th().BK(1)); this.N = b.I.Ea(); var a = b.Ra.lc(K.aB); this.yb = new b.Sa(a); this.B(this.yb, 9); this.Dg(); this.xA(); this.sA(); ra ? b.Fc.Ov(1) : b.Fc.Ov(0); sa ? (b.Fc.Sv(0.5), b.Fc.AW(K.fI)) : (b.Fc.Sv(0), b.Fc.$v()); this.zA(); this.Ql(this.bB, 2.5); this.fk() }, bB: function() { this.Ni(this.Fq, ta) }, Dg: function() { this.Lu = Aa.create(); this.B(this.Lu) }, G1: function() {}, xA: function() { this.mk = new b.o(b.W.V("score-bg.png")); this.mk.Xa(0.5, 1); this.mk.G(0.5 * this.N.width, this.N.height); this.B(this.mk); this.lf = new b.Sd(P.toString(), K.Fr); this.lf.jf(0.6); this.lf.G(0.5 * this.N.width, this.N.height - 38); this.B(this.lf) }, sA: function() { this.Wa = new Ba("Red"); this.Wa.G(0.25 * this.N.width, 200); N = "Red"; this.B(this.Wa); this.kc = new Ba("Blue"); this.kc.G(0.75 * this.N.width, 200); O = "Blue"; this.B(this.kc) }, Fq: function() { if (10 > this.Al) { var c = parseInt(4 * Math.random() + 1, 10); if (10 < P && 2 < c) { var a = Ia.create(); a.G(0, this.N.height + 40); this.B(a) } else { a = Ca.create(0), a.G(1 == c ? 0.25 * this.N.width : 0.75 * this.N.width, this.N.height + 40), this.yb.B(a) } L.push(a); this.Al++ } else { this.ZH() } }, zA: function() { this.Dr = new Fa; this.B(this.Dr, 99) }, uA: function() { var c = L[0].pb(); if (L[0].TH) { c = L[0].BI, O == L[0].Nq && N == c ? (P++, this.Pq(), this.lf.zd(P)) : (this.xo(N, this.Wa), this.xo(O, this.kc), this.Sq()) } else { var a = L[0].Sn; c > 0.5 * this.N.width ? O == a ? (P++, this.Pq(), this.lf.zd(P)) : (this.xo(O, this.kc), this.Sq()) : N == a ? (P++, this.Pq(), this.lf.zd(P)) : (this.xo(N, this.Wa), this.Sq()) } L[0].vc(); L.shift() }, Pq: function() { ra && b.Fc.OB(K.Tu, !1) }, xo: function(f, a) { var c = b.Ra.lc(K.El), d = new b.wa; "Red" == f ? (d.yb = new b.Sa(c), d.B(d.yb), new za(K.$A, d.yb, 1)) : (d.yb = new b.Sa(c), d.B(d.yb), new za(K.ZA, d.yb, 1)); var c = a.pb(), e = a.qb(); a.vc(); d.x = c - 160; d.y = e - 100; this.B(d) }, KX: function() { this.G(b.d(0, 0)) }, ZH: function() { this.Ri(this.Fq); this.Ql(this.qS, 1) }, qS: function() { this.ee = new b.o(b.W.V("speed-line.png")); this.ee.Xa(0.5, 0); this.ee.G(0.5 * b.N.width, this.N.height + 20); this.B(this.ee) }, TW: function() { this.ee.vc(); this.ee = null; this.NW() }, NW: function() { var a = new b.yc(new b.Bk(0.3, 0), new b.Xi(this.rS, this)); this.Wa.ha(a); this.kc.ha(a.copy()) }, rS: function() { this.Wa.vc(); this.kc.vc(); this.kc = this.Wa = null; var a = "", a = parseInt(10 * Math.random()), a = 0 == a % 2 ? "Red" : "Blue"; this.Wa = new Ba(a); this.Wa.G(0.25 * this.N.width, 200); N = a; this.Wa.jf(0); this.B(this.Wa, 1); a = parseInt(10 * Math.random()); a = 0 == a % 2 ? "Red" : "Blue"; this.kc = new Ba(a); this.kc.G(0.75 * this.N.width, 200); O = a; this.kc.jf(0); this.B(this.kc, 1); a = new b.yc(new b.Bk(0.3, 1), new b.bm(0.5), new b.Xi(this.bX, this)); this.Wa.ha(a); this.kc.ha(a.copy()); ua = 0 }, bX: function() { ta += 0.01; this.Ni(this.Fq, ta); wa += 0.1; this.th().BK(wa) }, Sq: function() { b.Fc.$v(); this.Hr(); null != this.ee && (this.ee.vc(), this.ee = null); null != this.Dr && (this.Dr.vc(), this.Dr = null); null != this.Lu && (this.Lu = null); this.kc = this.Wa = null; b.ka.RW(); for (var a = 0; a < L.length; a++) { L[a].vc() } this.Ql(this.dv, 1.5) }, xb: function() { N = this.Wa.Eq; O = this.kc.Eq }, t4: function() { var c = new b.wa, a = new b.sb(b.color(0, 0, 0, 200)); c.B(a, 0); this.B(c) }, dv: function() { b.or.zT(); b.I.Jg(new b.gg(0.3, new Ja)) }, update: function() { null != this.ee && (190 >= this.ee.y ? 180 >= this.ee.y ? (this.TW(), this.Al = 0) : this.ee.y = 170 : this.ee.y -= 10 * wa); for (var a = 0; a < L.length; a++) { 280 >= L[a].y ? 272 > L[a].y ? (10 == this.Al && (this.Al = 0, this.ZH()), this.uA()) : L[a].y = 270 : L[a].y -= 10 * wa } } }), Ea = b.Pg.extend({ X: function() { this._super(); this.B(new Ka) } }); var La = b.wa.extend({ ub: null, N: null, ff: null, ctor: function() { this._super(); this.N = b.I.Ea(); this.Dg(); this.sS(); this.gS(); this.tA(); this.lS() }, Dg: function() { this.ub = new b.o(b.W.V("scoreboard.png")); this.ub.G(0.5 * this.N.width, 0.65 * this.N.height); this.B(this.ub) }, sS: function() { var a = new b.Sd(P.toString(), K.Fr); a.jf(0.6); a.G(this.ub.pb() + 130, this.ub.qb() + 104); this.B(a) }, gS: function() { console.log(P); // updateShare(P); // Play68.setRankingScoreDesc(P); P > xa && (this.fS(), xa = P, b.Z.localStorage.setItem("sRedBlueBestScore", P)); var a = new b.Sd(xa.toString(), K.Fr); a.jf(0.6); a.G(this.ub.pb() + 130, this.ub.qb() - 20); this.B(a) }, fS: function() { this.Jq = new b.o(b.W.V("en-new-record.png")); this.Jq.Xa(0, 1); this.Jq.G(this.ub.pb() - 0.5 * this.ub.eb().width + 25, this.ub.qb() + 0.5 * this.ub.eb().height); this.Jq.opacity = 0; this.B(this.Jq); var a = new b.yc(new b.wk(0.3), new b.$o(0.3)), a = new b.km(a); this.Jq.ha(a) }, tA: function() { var a = new b.cc(new b.o(b.W.V("settings.png")), new b.o(b.W.V("settings.png")), this.wA, this); this.ff = new b.pd(a); this.ff.Xa(1, 0); this.ff.G(this.ub.pb() + 150, this.ub.qb() - 170); this.B(this.ff) }, wA: function() { this.getParent().wA(); this.ff.Wc(!1) }, lS: function() { var a = new b.cc(new b.o(K.kI), new b.o(K.kI), this.mU, this), a = new b.pd(a); a.Xa(1, 0); a.G(this.ub.pb() - 110, this.ub.qb() - 154); this.B(a) }, mU: function() { // play68_submitScore(P) } }); var Ma = b.wa.extend({ ub: null, N: null, Nn: null, Mn: null, Ln: null, ff: null, ctor: function() { this._super(); this.N = b.I.Ea(); this.Dg(); this.mS(); this.iS(); this.XH(); this.tA(); this.XH() }, Dg: function() { this.ub = new b.o(b.W.V("settingboard.png")); this.ub.G(0.5 * this.N.width, 0.6 * this.N.height); this.B(this.ub) }, mS: function() { var a = new b.jm(new b.cc(new b.o(b.W.V("music-on.png")), new b.o(b.W.V("music-on.png"))), new b.cc(new b.o(b.W.V("music-on.png")), new b.o(b.W.V("music-on.png")))); a.$B(this.nU, this); this.Nn = new b.pd(a); this.Nn.G(this.ub.pb() + 66, this.ub.qb() + 30); this.Nn.opacity = ra ? 255 : 1; this.B(this.Nn) }, nU: function() { ra ? (this.Nn.opacity = 1, ra = 0, b.Z.localStorage.setItem("sRedBlueSound", 0)) : (this.Nn.opacity = 255, ra = 1, b.Z.localStorage.setItem("sRedBlueSound", 1)) }, iS: function() { var a = new b.jm(new b.cc(new b.o(b.W.V("music-on.png")), new b.o(b.W.V("music-on.png"))), new b.cc(new b.o(b.W.V("music-on.png")), new b.o(b.W.V("music-on.png")))); a.$B(this.jU, this); this.Mn = new b.pd(a); this.Mn.G(this.ub.pb() - 6, this.ub.qb() + 82); this.Mn.opacity = sa ? 255 : 1; this.B(this.Mn) }, jU: function() { sa ? (this.Mn.opacity = 1, sa = 0, b.Z.localStorage.setItem("sRedBlueMusic", 0)) : (this.Mn.opacity = 255, sa = 1, b.Z.localStorage.setItem("sRedBlueMusic", 1)) }, XH: function() { var a = new b.jm(new b.cc(new b.o(b.W.V("music-on.png")), new b.o(b.W.V("music-on.png"))), new b.cc(new b.o(b.W.V("music-on.png")), new b.o(b.W.V("music-on.png")))); a.$B(this.iU, this); this.Ln = new b.pd(a); this.Ln.G(this.ub.pb() + 222, this.ub.qb() - 18); this.B(this.Ln); this.Ln.opacity = M ? 255 : 1 }, iU: function() { M ? (this.Ln.opacity = 1, M = 0) : (this.Ln.opacity = 255, M = 1) }, tA: function() { var a = new b.cc(new b.o(b.W.V("en-back.png")), new b.o(b.W.V("en-back.png")), this.tB, this); this.ff = new b.pd(a); this.ff.Xa(1, 0); this.ff.G(this.ub.pb() + 156, this.ub.qb() - 136); this.B(this.ff) }, tB: function() { this.getParent().tB(); this.ff.Wc(!1) } }); var Fa = b.wa.extend({ N: null, ctor: function() { this._super(); this.N = b.I.Ea(); this.oa() }, oa: function() { this._super(); var a = b.ea.create({ event: b.ea.nm, ik: !0, Ao: [], kk: [], fv: 1, rW: function(d, c) { this.kk.push(d); this.Ao.push(c) }, E9: function(c) { 0 < this.Ao.length && this.Ao.splice(c, 1); 0 < this.kk.length && this.kk.splice(c, 1) }, ck: function(g, c) { if (M) { if (this.fv) { var d = c.Mb, e = d.Rn(g.Zj()), f; if (360 > e.y && 0 < e.y) { if (e.x < 0.5 * b.N.width) { N = "Blue" == N ? "Red" : "Blue", this.fv = 0, d.getParent().Wa.yi.selected(), d.getParent().KB(3) } else { return !1 } } else { return !1 } } else { return !1 } } else { if (2 <= this.kk.length) { return !1 } ua = 1; d = c.Mb; f = 0.5 * d.getParent().Wa.UH; e = d.Rn(g.Zj()); f = d.getParent().Wa.qb() + f; d.getParent(); e.y < f && 0 < e.y && (e.x < 0.5 * b.N.width ? (N = "Blue" == N ? "Red" : "Blue", d.getParent().Wa.yi.selected()) : (O = "Blue" == O ? "Red" : "Blue", d.getParent().kc.yi.selected()), this.rW(g.ue, e.x)) } return !0 }, Ll: function(g, c) { if (M) { var d = c.Mb, d = d.Rn(g.Zj()); if (360 > d.y && 0 < d.y && d.x < 0.5 * b.N.width) { if (this.fv) { return !1 } d = c.Mb; N = "Blue" == N ? "Red" : "Blue"; d.getParent().Wa.yi.He(); d.getParent().KB(3); this.fv = 1 } } else { for (var d = c.Mb, e = null, f = 0; f < this.kk.length; f++) { g.ue == this.kk[f] && (e = f) } null == e && (e = "cw"); if (ua) { if (this.Ao[e] < 0.5 * b.N.width && "cw" != e) { N = "Blue" == N ? "Red" : "Blue", d.getParent().Wa.yi.He() } else { if ("cw" != e) { O = "Blue" == O ? "Red" : "Blue", d.getParent().kc.yi.He() } else { return !1 } } "cw" != e && (this.Ao.splice(e, 1), this.kk.splice(e, 1)) } else { return ua = 1, this.Ao = [], this.kk = [], !1 } } } }); b.ka.addListener(a, this); a = null } }); var Na = b.wa.extend({ Ti: null, Dl: null, N: null, ctor: function() { this._super(); b.Fc.$v(); this.N = b.N; L.splice(0, L.length); L.length = 0; this.Dg(); this.tS(); this.jS() }, Dg: function() { var a = new b.o(K.Rq); a.x = 0.5 * b.N.width; a.y = 0.5 * b.N.height; this.B(a) }, tS: function() { this.Ti = new La; this.Ti.opacity = 0; this.Ti.Xa(0, 0); this.Ti.G(0, 100); this.B(this.Ti); var a = new b.Oh(new b.wk(1), new b.bj(0.3, b.d(0, 0))); this.Ti.ha(a) }, wA: function() { var a = new b.bj(0.3, b.d(-this.N.width, 0)); this.Ti.ha(a); this.Dl = new Ma; this.Dl.Xa(0, 0); this.Dl.G(this.N.width, 0); this.B(this.Dl); a = new b.bj(0.3, b.d(0, 0)); this.Dl.ha(a) }, tB: function() { var a = new b.bj(0.3, b.d(0, 0)); this.Ti.ha(a); a = new b.yc(new b.bj(0.3, b.d(this.N.width, 0)), new b.Xi(this.XW, this)); this.Dl.ha(a) }, XW: function() { this.Ti.ff.Wc(!0); this.Dl.vc() }, kS: function() { var c = new b.cc(new b.o(K.TB), new b.o(K.TB), this.lU, this), c = new b.pd(c); c.G(b.d(0.5 * this.N.width, 0.25 * this.N.height)); this.B(c); var a = new b.wa; a.yb = new b.Sa(K.El); a.B(a.yb); new za(K.iI, a.yb, 2); a.$e({ x: 0.5 * this.N.width, y: c.qb() }); this.B(a) }, jS: function() { var a = new b.cc(new b.o(b.W.V("en-restart.png")), new b.o(b.W.V("en-restart.png")), this.kU, this), a = new b.pd(a); a.G(b.d(0.5 * this.N.width, 0.2 * this.N.height)); this.B(a) }, lU: function() { va = 1; b.I.Jg(new b.gg(0.3, new Ea)) }, kU: function() { M ? b.I.Jg(new b.gg(0.3, new Da)) : (va = 0, b.I.Jg(new b.gg(0.3, new Ea))) }, hS: function() {} }), Ja = b.Pg.extend({ X: function() { this._super(); this.B(new Na) } }); b.Ma.LB = function() { b.view.vS(!0); b.view.FI(!1); b.view.wr(640, 1008, b.ke.SHOW_ALL); b.view.$W(!0); b.yw.GW(function() { b.W.Ju(K.KI, K.aB); b.I.Jg(new b.gg(0.3, new Ha)) }) }; b.Ma.eX();