var b = b || {}; b.F = b.F || {}; b.e = {}; n = window; n = Object.prototype; delete window._p; b.Sb = function(a) { return document.createElement(a) }; b.Ga = function(a, c, d, e) { a.addEventListener(c, d, e) }; b.pK = "undefined" !== typeof require && require("fs"); b.KM = function(a, c) { if (a) if (a instanceof Array) for (var d = 0, e = a.length; d < e && !1 !== c.call(void 0, a[d], d); d++); else for (d in a) if (!1 === c.call(void 0, a[d], d)) break }; b.gF = function(a) { if (!a) return b.log("invalid URL"), !1; var c = a.indexOf("://"); if (-1 == c) return !1; c = a.indexOf("/", c + 3); return (-1 == c ? a : a.substring(0, c)) != location.origin }; b.async = { XI: function(a) { var c = this.qM; if (!c.wE) { var d = c.length, e = c.PO, f = c.pO, g = f.ed, h = f.lM, k = f.pG, f = f.Fka; if (a) { if (c.wE = a, g) return g.call(h, a) } else { var m = Array.apply(null, arguments).slice(1), p = m.length; 0 == p ? m = null : 1 == p && (m = m[0]); e[this.index] = m; c.count--; k && k.call(f, m, d - c.count, d); 0 == c.count && g && g.apply(h, [null, e]) } } }, KJ: function() {}, $ga: function(a, c, d) { var e = b.async; if (void 0 !== d) "function" == typeof c && (c = { pG: c }), c.ed = d || c.ed; else if (void 0 !== c) "function" == typeof c && (c = { ed: c }); else if (void 0 !== a) c = {}; else throw "arguments error!"; var f = (d = a instanceof Array) ? a.length : Object.keys(a).length; if (0 == f) c.ed && c.ed.call(c.lM, null); else { var g = { length: f, count: f, pO: c, PO: d ? [] : {} }; b.KM(a, function(a, d) { if (g.wE) return !1; var f = c.ed || c.pG ? e.XI.bind({ qM: g, index: d }) : e.KJ; a(f, d) }) } }, map: function(a, c, d) { var e = this, f = arguments.length; "function" == typeof c && (c = { lF: c }); if (3 === f) c.ed = d || c.ed; else if (2 > f) throw "arguments error!"; "function" == typeof c && (c = { lF: c }); if (void 0 !== d) c.ed = d || c.ed; else if (void 0 === a) throw "arguments error!"; var g = (f = a instanceof Array) ? a.length : Object.keys(a).length; if (0 === g) c.ed && c.ed.call(c.lM, null); else { var h = { length: g, count: g, pO: c, PO: f ? [] : {} }; b.KM(a, function(a, d) { if (h.wE) return !1; var f = c.ed ? e.XI.bind({ qM: h, index: d }) : e.KJ; c.lF.call(c.M1, a, d, f) }) } } }; b.path = { join: function() { for (var a = arguments.length, c = "", d = 0; d < a; d++) c = (c + ("" == c ? "" : "/") + arguments[d]).replace(/(\/|\\\\)$/, ""); return c }, Zk: function(a) { return (a = /(\.[^\.\/\?\\]*)(\?.*)?$/.exec(a)) ? a[1] : null }, jga: function(a) { if (a) { var c = a.lastIndexOf("."); if (-1 !== c) return a.substring(0, c) } return a }, vZ: function(a, c) { var d = a.indexOf("?"); 0 < d && (a = a.substring(0, d)); d = /(\/|\\\\)([^(\/|\\\\)]+)$/g.exec(a.replace(/(\/|\\\\)$/, "")); if (!d) return null; d = d[2]; return c && a.substring(a.length - c.length).toLowerCase() == c.toLowerCase() ? d.substring(0, d.length - c.length) : d }, dirname: function(a) { return a.replace(/((.*)(\/|\\|\\\\))?(.*?\..*$)?/, "$2") }, mM: function(a, c) { c = c || ""; var d = a.indexOf("?"), e = ""; 0 < d && (e = a.substring(d), a = a.substring(0, d)); d = a.lastIndexOf("."); return 0 > d ? a + c + e : a.substring(0, d) + c + e }, Oo: function(a, c, d) { if (0 == c.indexOf(".")) return this.mM(a, c); var e = a.indexOf("?"), f = ""; d = d ? this.Zk(a) : ""; 0 < e && (f = a.substring(e), a = a.substring(0, e)); e = a.lastIndexOf("/"); return a.substring(0, 0 >= e ? 0 : e + 1) + c + d + f } }; b.T = { vK: {}, Nv: {}, RW: {}, Gl: {}, Zx: "", sZ: "", Rf: {}, Yw: function() { return window.XMLHttpRequest ? new window.XMLHttpRequest : new ActiveXObject("MSXML2.XMLHTTP") }, YJ: function(a) { var c = a[0], d = a[1], e = a[2], f = ["", null, null]; if (1 === a.length) f[1] = c instanceof Array ? c : [c]; else if (2 === a.length) "function" == typeof d ? (f[1] = c instanceof Array ? c : [c], f[2] = d) : (f[0] = c || "", f[1] = d instanceof Array ? d : [d]); else if (3 === a.length) f[0] = c || "", f[1] = d instanceof Array ? d : [d], f[2] = e; else throw "arguments error to load js!"; return f }, x2: function(a, c, d) { var e = this, f = e.vK, g = e.YJ(arguments); - 1 < navigator.userAgent.indexOf("Trident/5") ? e.AK(g[0], g[1], 0, g[2]) : b.async.map(g[1], function(a, c, d) { a = b.path.join(g[0], a); if (f[a]) return d(null); e.YI(a, !1, d) }, g[2]) }, jO: function(a, c, d) { var e = this.WW(), f = this.YJ(arguments); this.x2(f[0], f[1], function(a) { if (a) throw a; e.parentNode.removeChild(e); if (f[2]) f[2]() }) }, YI: function(a, c, d) { var e = document, f = b.Sb("script"); f.async = c; f.src = a; this.vK[a] = !0; b.Ga(f, "load", function() { this.removeEventListener("load", arguments.callee, !1); d() }, !1); b.Ga(f, "error", function() { d("Load " + a + " failed!") }, !1); e.body.appendChild(f) }, AK: function(a, c, d, e) { if (d >= c.length) e && e(); else { var f = this; f.YI(b.path.join(a, c[d]), !1, function(g) { if (g) return e(g); f.AK(a, c, d + 1, e) }) } }, WW: function() { var a = document, c = a.getElementById("cocos2d_loadJsImg"); if (!c) { c = b.Sb("img"); b.DK && (c.src = b.DK); a = a.getElementById(b.Jb.re.id); a.style.backgroundColor = "black"; a.parentNode.appendChild(c); var d = getComputedStyle ? getComputedStyle(a) : a.currentStyle; d || (d = { width: a.width, height: a.height }); c.style.left = a.offsetLeft + (parseFloat(d.width) - c.width) / 2 + "px"; c.style.top = a.offsetTop + (parseFloat(d.height) - c.height) / 2 + "px"; c.style.position = "absolute" } return c }, Cx: function(a, c) { if (b.pK) require("fs").pha(a, function(a, d) { a ? c(a) : c(null, d.toString()) }); else { var d = this.Yw(), e = "load " + a + " failed!"; d.open("GET", a, !0); /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ? (d.setRequestHeader("Accept-Charset", "utf-8"), d.onreadystatechange = function() { 4 == d.readyState && 200 == d.status ? c(null, d.responseText) : c(e) }) : (d.overrideMimeType && d.overrideMimeType("text/plain; charset\x3dutf-8"), d.onload = function() { 4 == d.readyState && 200 == d.status ? c(null, d.responseText) : c(e) }); d.send(null) } }, BK: function(a) { if (b.pK) return require("fs").qha(a).toString(); var c = this.Yw(); c.open("GET", a, !1); /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ? c.setRequestHeader("Accept-Charset", "utf-8") : c.overrideMimeType && c.overrideMimeType("text/plain; charset\x3dutf-8"); c.send(null); return 4 == !c.readyState || 200 != c.status ? null : c.responseText }, kO: function(a, c) { this.Cx(a, function(d, e) { try { d ? c(d) : c(null, JSON.parse(e)) } catch (f) { throw "load json [" + a + "] failed : " + f; } }) }, TI: function(a) { return null != /(\.png)|(\.jpg)|(\.bmp)|(\.jpeg)|(\.gif)/.exec(a) }, Gs: function(a, c, d) { var e = !0; void 0 !== d ? e = null == c.gF ? e : c.gF : void 0 !== c && (d = c); var f = new Image; e && "file://" != location.origin && (f.crossOrigin = "Anonymous"); b.Ga(f, "load", function() { this.removeEventListener("load", arguments.callee, !1); this.removeEventListener("error", arguments.callee, !1); d && d(null, f) }); b.Ga(f, "error", function() { this.removeEventListener("error", arguments.callee, !1); d && d("load image failed") }); f.src = a; return f }, XW: function(a, c, d) { var e = this, f = null; (c = a.type) ? (c = "." + c.toLowerCase(), f = a.src ? a.src : a.name + c) : (f = a, c = b.path.Zk(f)); var g = e.Rf[f]; if (g) return d(null, g); g = e.Nv[c.toLowerCase()]; if (!g) return b.error("loader for [" + c + "] not exists!"), d(); c = e.$0(g.Ow ? g.Ow() : e.Zx, f); g.load(c, f, a, function(a, c) { a ? (b.log(a), e.Rf[f] = null, delete e.Rf[f], d()) : (e.Rf[f] = c, d(null, c)) }) }, $0: function(a, c) { var d = this.RW, e = b.path; if (void 0 !== a && void 0 === c) { c = a; var f = e.Zk(c), f = f ? f.toLowerCase() : ""; a = (f = this.Nv[f]) ? f.Ow ? f.Ow() : this.Zx : this.Zx } c = b.path.join(a || "", c); if (c.match(/[\/(\\\\)]lang[\/(\\\\)]/i)) { if (d[c]) return d[c]; e = e.Zk(c) || ""; c = d[c] = c.substring(0, c.length - e.length) + "_" + b.hb.language + e } return c }, load: function(a, c, d) { if (void 0 !== d) "function" == typeof c && (c = { pG: c }); else if (void 0 !== c) "function" == typeof c && (d = c, c = {}); else if (void 0 !== a) c = {}; else throw "arguments error!"; c.ed = function(a, c) { a && b.log(a); d && d(c) }; a instanceof Array || (a = [a]); c.lF = this.XW; c.M1 = this; b.async.map(a, c) }, fK: function(a, c) { var d = this.Gl, e = [], f; for (f in a) { var g = a[f]; d[f] = g; e.push(g) } this.load(e, c) }, fga: function(a, c) { var d = this, e = d.Hd(a); e ? d.fK(e.filenames, c) : d.load(a, function(a) { d.fK(a[0].filenames, c) }) }, Nj: function(a, c) { if (a && c) { if ("string" == typeof a) return this.Nv[a.trim().toLowerCase()] = c; for (var d = 0, e = a.length; d < e; d++) this.Nv["." + a[d].trim().toLowerCase()] = c } }, Hd: function(a) { return this.Rf[a] || this.Rf[this.Gl[a]] }, Ki: function(a) { var c = this.Rf, d = this.Gl; delete c[a]; delete c[d[a]]; delete d[a] }, Aha: function() { var a = this.Rf, c = this.Gl, d; for (d in a) delete a[d]; for (d in c) delete c[d] } }; (function() { function a() { b.ra && b.Jb.uk && b.ra.dispatchEvent(b.Jb.uk); b.Jb.lr && (window.cancelAnimationFrame(b.Jb.lr), b.Jb.Sv()) } function c() { b.ra && b.Jb.tk && b.ra.dispatchEvent(b.Jb.tk) } var d = window, e, f; "undefined" !== typeof document.hidden ? (e = "hidden", f = "visibilitychange") : "undefined" !== typeof document.mozHidden ? (e = "mozHidden", f = "mozvisibilitychange") : "undefined" !== typeof document.msHidden ? (e = "msHidden", f = "msvisibilitychange") : "undefined" !== typeof document.webkitHidden && (e = "webkitHidden", f = "webkitvisibilitychange"); e ? b.Ga(document, f, function() { document[e] ? c() : a() }, !1) : (b.Ga(d, "blur", c, !1), b.Ga(d, "focus", a, !1)); - 1 < navigator.userAgent.indexOf("MicroMessenger") && (d.onfocus = function() { a() }); "onpageshow" in window && "onpagehide" in window && (b.Ga(d, "pagehide", c, !1), b.Ga(d, "pageshow", a, !1)); f = d = null })(); b.log = b.warn = b.error = b.assert = function() {}; b.uM = function(a, c) { for (var d = ["webgl", "experimental-webgl", "webkit-3d", "moz-webgl"], e = null, f = 0; f < d.length; ++f) { try { e = a.getContext(d[f], c) } catch (g) {} if (e) break } return e }; b.FW = function(a, c) { b.Ba = 0; b.U = 1; b.hb = {}; var d = b.hb; d.ER = "en"; d.q7 = "zh"; d.r7 = "fr"; d.u7 = "it"; d.s7 = "de"; d.B7 = "es"; d.A7 = "ru"; d.w7 = "ko"; d.v7 = "ja"; d.t7 = "hu"; d.z7 = "pt"; d.p7 = "ar"; d.x7 = "no"; d.y7 = "pl"; d.lS = "Windows"; d.eH = "iOS"; d.fH = "OS X"; d.jS = "UNIX"; d.iS = "Linux"; d.hS = "Android"; d.kS = "Unknown"; d.K8 = 0; d.C7 = 1; d.D7 = 2; d.i6 = 3; d.n7 = 4; d.m7 = 5; d.r6 = 6; d.H7 = 7; d.X6 = 8; d.p8 = 9; d.L8 = 10; d.M8 = 11; d.MR = 100; d.IQ = 101; d.nQ = "wechat"; d.jQ = "androidbrowser"; d.Gy = "ie"; d.kQ = "qqbrowser"; d.DG = "mqqbrowser"; d.lQ = "ucbrowser"; d.u6 = "360browser"; d.v6 = "baiduboxapp"; d.CG = "baidubrowser"; d.w6 = "maxthon"; d.Hy = "opera"; d.x6 = "miuibrowser"; d.Jp = "firefox"; d.Iy = "safari"; d.Fy = "chrome"; d.mQ = "unknown"; d.Zda = !1; var e = [d.CG, d.Hy, d.Jp, d.Fy, d.Iy], f = [d.CG, d.Hy, d.Jp, d.Fy, d.Iy, d.lQ, d.kQ, d.DG, d.Gy], g = window, h = g.navigator, k = document.documentElement, m = h.userAgent.toLowerCase(); d.Jh = -1 != m.indexOf("mobile") || -1 != m.indexOf("android"); d.platform = d.Jh ? d.MR : d.IQ; var p = h.language, p = (p = p ? p : h.browserLanguage) ? p.split("-")[0] : d.ER; d.language = p; var p = d.mQ, r = m.match(/micromessenger|qqbrowser|mqqbrowser|ucbrowser|360browser|baiduboxapp|baidubrowser|maxthon|trident|opera|miuibrowser|firefox/i) || m.match(/chrome|safari/i); r && 0 < r.length && (p = r[0].toLowerCase(), "micromessenger" == p ? p = d.nQ : "safari" === p && m.match(/android.*applewebkit/) ? p = d.jQ : "trident" == p && (p = d.Gy)); d.wm = p; d.CY = -1 < f.indexOf(d.wm); f = parseInt(a[c.$s]); p = b.U; r = b.Sb("Canvas"); b.Pr = !0; e = -1 == e.indexOf(d.wm); if (1 === f || 0 === f && (d.Jh || e) || "file://" == location.origin) p = b.Ba; d.aV = function() { var a = document.createElement("canvas"); a.width = 1; a.height = 1; a = a.getContext("2d"); a.fillStyle = "#000"; a.fillRect(0, 0, 1, 1); a.globalCompositeOperation = "multiply"; a.fillStyle = "#fff"; a.fillRect(0, 0, 1, 1); return 0 === a.getImageData(0, 0, 1, 1).data[0] }; d.hw = d.aV(); p != b.U || g.WebGLRenderingContext && b.uM(r, { stencil: !0, preserveDrawingBuffer: !0 }) || (0 == f ? p = b.Ba : b.Pr = !1); if (p == b.Ba) try { r.getContext("2d") } catch (s) { b.Pr = !1 } b.A = p; try { d.iw = !!new(g.AudioContext || g.webkitAudioContext || g.mozAudioContext) } catch (u) { d.iw = !1 } try { var t = d.localStorage = g.localStorage; t.setItem("storage", ""); t.removeItem("storage"); t = null } catch (v) { "SECURITY_ERR" !== v.name && "QuotaExceededError" !== v.name || b.warn("Warning: localStorage isn't enabled. Please confirm browser cookie or privacy option"), d.localStorage = function() {} } t = d.aE = { canvas: !0 }; b.A == b.U && (t.opengl = !0); void 0 !== k.ontouchstart || h.msPointerEnabled ? t.touches = !0 : void 0 !== k.onmouseup && (t.mouse = !0); void 0 !== k.onkeyup && (t.keyboard = !0); if (g.DeviceMotionEvent || g.DeviceOrientationEvent) t.accelerometer = !0; g = m.match(/(iPad|iPhone|iPod)/i) ? !0 : !1; m = m.match(/android/i) || h.platform.match(/android/i) ? !0 : !1; k = d.kS; - 1 != h.appVersion.indexOf("Win") ? k = d.lS : g ? k = d.eH : -1 != h.appVersion.indexOf("Mac") ? k = d.fH : -1 != h.appVersion.indexOf("X11") ? k = d.jS : -1 != h.appVersion.indexOf("Linux") ? k = d.iS : m && (k = d.hS); d.yF = k; d.Yaa = function() {}; d.baa = function() {}; d.Vha = function() {}; d.$$ = function() { var a; a = "" + ("isMobile : " + this.Jh + "\r\n"); a += "language : " + this.language + "\r\n"; a += "browserType : " + this.wm + "\r\n"; a += "capabilities : " + JSON.stringify(this.aE) + "\r\n"; a += "os : " + this.yF + "\r\n"; a += "platform : " + this.platform + "\r\n"; b.log(a) } }; b.S7 = 0; b.T7 = 1; b.Q7 = 2; b.R7 = 3; b.Fe = null; b.l = null; b.Va = null; b.LV = null; b.Ov = !1; b.sL = !1; b.rL = function(a) { var c, d; if (!b.sL) { b.sL = !0; var e = window, f = new Date, g = 1E3 / b.Jb.re[b.Jb.kg.Kw]; e.MO = e.requestAnimationFrame || e.webkitRequestAnimationFrame || e.mozRequestAnimationFrame || e.oRequestAnimationFrame || e.msRequestAnimationFrame || function(a) { var c = (new Date).getTime(), d = Math.max(0, g - (c - f)), e = window.setTimeout(function() { a() }, d); f = c + d; return e }; e.cancelAnimationFrame = window.cancelAnimationFrame || window.cancelRequestAnimationFrame || window.msCancelRequestAnimationFrame || window.mozCancelRequestAnimationFrame || window.oCancelRequestAnimationFrame || window.webkitCancelRequestAnimationFrame || window.msCancelAnimationFrame || window.mozCancelAnimationFrame || window.webkitCancelAnimationFrame || window.oCancelAnimationFrame || function(a) { clearTimeout(a) }; var h = b.ub(a) || b.ub("#" + a), k; "CANVAS" == h.tagName ? (c = c || h.width, d = d || h.height, k = b.ym = b.Sb("DIV"), a = b.Va = h, a.parentNode.insertBefore(k, a), a.$L(k), k.setAttribute("id", "Cocos2dGameContainer")) : ("DIV" != h.tagName && b.log("Warning: target element is not a DIV or CANVAS"), c = c || h.clientWidth, d = d || h.clientHeight, k = b.ym = h, a = b.Va = b.ub(b.Sb("CANVAS")), h.appendChild(a)); a.UL("gameCanvas"); a.setAttribute("width", c || 480); a.setAttribute("height", d || 320); a.setAttribute("tabindex", 99); a.style.outline = "none"; h = k.style; h.width = (c || 480) + "px"; h.height = (d || 320) + "px"; h.margin = "0 auto"; h.position = "relative"; h.overflow = "hidden"; k.top = "100%"; b.A == b.U && (b.l = b.Rka = b.uM(a, { stencil: !0, preserveDrawingBuffer: !0, antialias: !b.hb.Jh, alpha: !1 })); b.l ? (e.gl = b.l, b.Fe = new b.TQ(b.l), b.Ov = !0, b.Da.IW(), b.Md.jr()) : (b.l = a.getContext("2d"), b.ZW = b.l, b.l.translate(0, a.height), b.Fe = b.NG ? new b.NG(b.l) : null); b.LV = k; b.log(b.Wy); b.TX(); b.hb.Jh && (c = b.Sb("style"), c.type = "text/css", document.body.appendChild(c), c.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.Uy.yB(); b.PN.l3(b.Va); b.I = b.Ta.yB(); b.I.YF && b.I.YF(b.view); b.Tj = b.I.Aa(); b.aia = new b.$t; b.X2 = new b.xS } }; b.ZA = function() { if (b.A !== b.U) throw "This feature supports WebGL render mode only."; }; b.oK = !1; b.TX = function() { b.oK = !1; b.Va.oncontextmenu = function() { if (!b.oK) return !1 } }; b.Jb = { GG: 0, HQ: 1, L6: 2, GQ: 3, Py: 4, HG: 5, FG: 6, ut: "game_on_hide", Op: "game_on_show", tk: null, uk: null, s9: [], kg: { vE: "engineDir", L$: "dependencies", ns: "debugMode", R4: "showFPS", Kw: "frameRate", id: "id", $s: "renderMode", N1: "jsList", FZ: "classReleaseMode" }, RK: !1, rC: !1, jc: !0, lr: null, re: null, xF: null, Dga: null, Kia: function(a) { this.re[this.kg.Kw] = a; this.lr && window.cancelAnimationFrame(this.lr); this.jc = !0; this.Sv() }, Sv: function() { var a = this, c, d = b.I; d.W3(a.re[a.kg.R4]); c = function() { a.jc || (d.z2(), a.lr = window.MO(c)) }; window.MO(c); a.jc = !1 }, F3: function(a) { function c() { a && (d.re[d.kg.id] = a); d.RK ? b.Pr && (d.bV = setInterval(function() { d.rC && (b.rL(d.re[d.kg.id]), d.Sv(), d.tk = d.tk || new b.Si(d.ut), d.tk.setUserData(d), d.uk = d.uk || new b.Si(d.Op), d.uk.setUserData(d), d.xF(), clearInterval(d.bV)) }, 10)) : d.b3(function() { b.Pr && (b.rL(d.re[d.kg.id]), d.Sv(), d.tk = d.tk || new b.Si(d.ut), d.tk.setUserData(d), d.uk = d.uk || new b.Si(d.Op), d.uk.setUserData(d), d.xF()) }) } var d = this; document.body ? c() : b.Ga(window, "load", function() { this.removeEventListener("load", arguments.callee, !1); c() }, !1) }, AW: function() { function a(a) { a[c.vE] = a[c.vE] || "frameworks/cocos2d-html5"; null == a[c.ns] && (a[c.ns] = 0); a[c.Kw] = a[c.Kw] || 60; null == a[c.$s] && (a[c.$s] = 1); return a } var c = this.kg; if (document.ccConfig) this.re = a(document.ccConfig); else try { for (var d = document.getElementsByTagName("script"), e = 0; e < d.length; e++) { var f = d[e].getAttribute("cocos"); if ("" == f || f) break } var g, h, k; if (e < d.length) { if (g = d[e].src) k = /(.*)\//.exec(g)[0], b.T.Zx = k, g = b.path.join(k, "project.js"); h = b.T.BK(g) } h || (h = b.T.BK("project.js")); var m = JSON.parse(h); this.re = a(m || {}) } catch (p) { b.log("Failed to read or parse project.js"), this.re = a({}) } b.FW(this.re, c) }, PW: {}, $J: function(a, c, d) { var e = this.PW; if (e[c]) return null; d = d || ""; var f = [], g = a[c]; if (!g) throw "can not find module [" + c + "]"; c = b.path; for (var h = 0, k = g.length; h < k; h++) { var m = g[h]; if (!e[m]) { var p = c.Zk(m); p ? ".js" == p.toLowerCase() && f.push(c.join(d, m)) : (p = this.$J(a, m, d)) && (f = f.concat(p)); e[m] = 1 } } return f }, b3: function(a) { var c = this, d = c.re, e = c.kg, f = d[e.vE], g = b.T; if (!b.Pr) throw "The renderer doesn't support the renderMode " + d[e.$s]; c.RK = !0; var h = d[e.N1] || []; b.oa ? g.jO("", h, function(d) { if (d) throw d; c.rC = !0; a && a() }) : (e = b.path.join(f, "moduleConfig.json"), g.kO(e, function(e, g) { if (e) throw e; var p = d.modules || [], r = g.module, s = []; b.A == b.U ? p.splice(0, 0, "shaders") : 0 > p.indexOf("core") && p.splice(0, 0, "core"); for (var u = 0, t = p.length; u < t; u++) { var v = c.$J(r, p[u], f); v && (s = s.concat(v)) } s = s.concat(h); b.T.jO(s, function(d) { if (d) throw d; c.rC = !0; a && a() }) })) } }; b.Jb.AW(); Function.prototype.bind = Function.prototype.bind || function(a) { var c = this; return function() { var d = Array.prototype.slice.call(arguments); return c.apply(a || null, d) } }; b.e = { xG: "cc.ActionManager.addAction(): action must be non-null", gQ: "cocos2d: removeAction: Target not found", m6: "cc.ActionManager.removeActionByTag(): an invalid tag", n6: "cc.ActionManager.removeActionByTag(): target must be non-null", eQ: "cc.ActionManager.getActionByTag(): an invalid tag", fQ: "cocos2d : getActionByTag(tag \x3d %s): Action not found", IZ: "cocos2d: **** WARNING **** CC_ENABLE_PROFILERS is defined. Disable it when you finish profiling (from ccConfig.js)", JZ: "Expected 'data' dict, but not found. Config file: %s", KZ: "Please load the resource first : %s", OQ: "cocos2d: Director: Error in gettimeofday", PQ: "cocos2d: Director: unrecognized projection", W6: "cocos2d: Director: unrecognized projection", NQ: "cocos2d: Director: Error in gettimeofday", MQ: "running scene should not null", MG: "the scene should not null", Lo: "element type is wrong!", US: "CCSheduler#scheduleCallback. Callback already scheduled. Updating interval from:%s to %s", VS: "cc.scheduler.scheduleCallbackForTarget(): callback_fn should be non-null.", WS: "cc.scheduler.scheduleCallbackForTarget(): target should be non-null.", SS: "cc.Scheduler.pauseTarget():target should be non-null", TS: "cc.Scheduler.resumeTarget():target should be non-null", RS: "cc.Scheduler.isTargetPaused():target should be non-null", UR: "getZOrder is deprecated. Please use getLocalZOrder instead.", eS: "setZOrder is deprecated. Please use setLocalZOrder instead.", SR: "RotationX !\x3d RotationY. Don't know which one to return", TR: "ScaleX !\x3d ScaleY. Don't know which one to return", I7: "An Node can't be added as a child of itself.", J7: "child already added. It can't be added again", PR: "child must be non-null", ZR: "removeFromParentAndCleanup is deprecated. Use removeFromParent instead", QR: "boundingBox is deprecated. Use getBoundingBox instead", XR: "argument tag is an invalid tag", YR: "cocos2d: removeChildByTag(tag \x3d %s): child not found!", WR: "removeAllChildrenWithCleanup is deprecated. Use removeAllChildren instead", fS: "cc.Node.stopActionBy(): argument tag an invalid tag", RR: "cc.Node.getActionByTag(): argument tag is an invalid tag", aS: "resumeSchedulerAndActions is deprecated, please use resume instead.", VR: "pauseSchedulerAndActions is deprecated, please use pause instead.", OR: "Unknown callback function", $R: "child must be non-null", bS: "cc.Node.runAction(): action must be non-null", cS: "callback function must be non-null", dS: "interval must be positive", K7: "cocos2d: Could not initialize cc.AtlasNode. Invalid Texture.", hQ: "cc.AtlasNode.updateAtlasValues(): Shall be overridden in subclasses", q6: "", yG: "cocos2d: Could not initialize cc.AtlasNode. Invalid Texture.", xU: "cc._EventListenerKeyboard.checkAvailable(): Invalid EventListenerKeyboard!", zU: "cc._EventListenerTouchOneByOne.checkAvailable(): Invalid EventListenerTouchOneByOne!", yU: "cc._EventListenerTouchAllAtOnce.checkAvailable(): Invalid EventListenerTouchAllAtOnce!", wU: "cc._EventListenerAcceleration.checkAvailable(): _onAccelerationEvent must be non-nil", aR: "Invalid parameter.", su: "Don't call this method if the event is for touch.", r_: "Invalid scene graph priority!", s_: "0 priority is forbidden for fixed priority since it's used for scene graph based priority.", w_: "Invalid listener type!", x_: "Can't set fixed priority with scene graph based listener.", t_: "Invalid parameters.", u_: "listener must be a cc.EventListener object when adding a fixed priority listener", v_: "The listener has been registered, please don't register it again.", HR: "parameters should not be ending with null in Javascript", IR: "Invalid index in MultiplexLayer switchTo message", JR: "Invalid index in MultiplexLayer switchTo message", GR: "cc.Layer.addLayer(): layer should be non-null", UQ: "Resolution not valid", VQ: "should set resolutionPolicy", A1: "The touches is more than MAX_TOUCHES, nUnusedIndex \x3d %s", HP: "cc.swap is being modified from original macro, please check usage", Qo: "WebGL error %s", gZ: "cocos2d: cc.AnimationCache: No animations were found in provided dictionary.", hZ: "cc.AnimationCache. Invalid animation format", oZ: "cc.AnimationCache.addAnimations(): File could not be found", iZ: "cocos2d: cc.AnimationCache: Animation '%s' found in dictionary without any frames - cannot add to animation cache.", jZ: "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.", kZ: "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.", lZ: "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.", mZ: "cocos2d: CCAnimationCache: Animation '%s' found in dictionary without any frames - cannot add to animation cache.", nZ: "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.", pZ: "cc.AnimationCache.addAnimations(): Invalid texture file name", sT: "cc.Sprite.reorderChild(): this child is not in children list", kT: "cc.Sprite.ignoreAnchorPointForPosition(): it is invalid in cc.Sprite when using SpriteBatchNode", vT: "cc.Sprite.setDisplayFrameWithAnimationName(): Frame not found", wT: "cc.Sprite.setDisplayFrameWithAnimationName(): Invalid frame index", uT: "setDisplayFrame is deprecated, please use setSpriteFrame instead.", dT: "cc.Sprite._updateBlendFunc(): _updateBlendFunc doesn't work when the sprite is rendered using a cc.CCSpriteBatchNode", mT: "cc.Sprite.initWithSpriteFrame(): spriteFrame should be non-null", nT: "cc.Sprite.initWithSpriteFrameName(): spriteFrameName should be non-null", oT: " is null, please check.", lT: "cc.Sprite.initWithFile(): filename should be non-null", xT: "cc.Sprite.setDisplayFrameWithAnimationName(): animationName must be non-null", tT: "cc.Sprite.reorderChild(): child should be non-null", eT: "cc.Sprite.addChild(): cc.Sprite only supports cc.Sprites as children when using cc.SpriteBatchNode", fT: "cc.Sprite.addChild(): cc.Sprite only supports a sprite using same texture as children when using cc.SpriteBatchNode", gT: "cc.Sprite.addChild(): child should be non-null", zT: "cc.Sprite.texture setter: Batched sprites should use the same texture as the batchnode", f8: "cc.SpriteBatchNode.updateQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children", qT: "cc.SpriteBatchNode.insertQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children", hT: "cc.SpriteBatchNode.addChild(): cc.SpriteBatchNode only supports cc.Sprites as children", iT: "cc.SpriteBatchNode.addChild(): cc.Sprite is not using the same texture", pT: "Sprite.initWithTexture(): Argument must be non-nil ", yT: "Invalid spriteFrameName", AT: "Invalid argument: cc.Sprite.texture setter expects a CCTexture2D.", g8: "cc.SpriteBatchNode.updateQuadFromSprite(): sprite should be non-null", rT: "cc.SpriteBatchNode.insertQuadFromSprite(): sprite should be non-null", jT: "cc.SpriteBatchNode.addChild(): child should be non-null", XS: "cc.SpriteBatchNode.addQuadFromSprite(): SpriteBatchNode only supports cc.Sprites as children", ZS: "cocos2d: CCSpriteBatchNode: resizing TextureAtlas capacity from %s to %s.", $S: "cocos2d: WARNING: Not enough memory to resize the atlas", bT: "cc.SpriteBatchNode.addChild(): Child doesn't belong to Sprite", aT: "cc.SpriteBatchNode.addChild(): sprite batch node should contain the child", YS: "cc.SpriteBatchNode.addQuadFromSprite(): child should be non-null", cT: "cc.SpriteBatchNode.addChild():child should be non-null", a5: "cocos2d: WARNING: originalWidth/Height not found on the cc.SpriteFrame. AnchorPoint won't work as expected. Regenrate the .plist", c5: "cocos2d: WARNING: an alias with name %s already exists", Z4: "cocos2d: WARNING: Sprite frame: %s has already been added by another source, please fix name conflit", f5: "cocos2d: cc.SpriteFrameCahce: Frame %s not found", b5: "Please load the resource first : %s", d5: "cc.SpriteFrameCache.addSpriteFrames(): plist should be non-null", e5: "Argument must be non-nil", My: "cc.SpriteBatchNode.updateQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children", wQ: "cc.SpriteBatchNode.insertQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children", sQ: "cc.SpriteBatchNode.addChild(): cc.SpriteBatchNode only supports cc.Sprites as children", vQ: "Sprite.initWithTexture(): Argument must be non-nil ", tQ: "cc.Sprite.addChild(): child should be non-null", yQ: "Invalid spriteFrameName", zQ: "Invalid argument: cc.Sprite texture setter expects a CCTexture2D.", AQ: "cc.SpriteBatchNode.updateQuadFromSprite(): sprite should be non-null", xQ: "cc.SpriteBatchNode.insertQuadFromSprite(): sprite should be non-null", uQ: "cc.SpriteBatchNode.addChild(): child should be non-null", VT: "cocos2d: Could not open file: %s", PH: "cc.TextureAtlas.insertQuad(): invalid totalQuads", WT: "cc.TextureAtlas.initWithTexture():texture should be non-null", fU: "cc.TextureAtlas.updateQuad(): quad should be non-null", gU: "cc.TextureAtlas.updateQuad(): Invalid index", ZT: "cc.TextureAtlas.insertQuad(): Invalid index", $T: "cc.TextureAtlas.insertQuad(): Invalid index + amount", XT: "cc.TextureAtlas.insertQuadFromIndex(): Invalid newIndex", YT: "cc.TextureAtlas.insertQuadFromIndex(): Invalid fromIndex", dU: "cc.TextureAtlas.removeQuadAtIndex(): Invalid index", eU: "cc.TextureAtlas.removeQuadsAtIndex(): index + amount out of bounds", aU: "cc.TextureAtlas.moveQuadsFromIndex(): move is out of bounds", bU: "cc.TextureAtlas.moveQuadsFromIndex(): Invalid newIndex", cU: "cc.TextureAtlas.moveQuadsFromIndex(): Invalid oldIndex", s5: "TextureCache:addPVRTCImage does not support on HTML5", q5: "TextureCache:addPVRTCImage does not support on HTML5", r5: "addPVRImage does not support on HTML5", t5: "cocos2d: Couldn't add UIImage in TextureCache", v5: "cocos2d: '%s' id\x3d%s %s x %s", JP: "cocos2d: '%s' id\x3d HTMLCanvasElement %s x %s", w5: "cocos2d: TextureCache dumpDebugInfo: %s textures, HTMLCanvasElement for %s KB (%s MB)", u5: "cc.Texture.addUIImage(): image should be non-null", MT: "initWithETCFile does not support on HTML5", QT: "initWithPVRFile does not support on HTML5", ST: "initWithPVRTCData does not support on HTML5", IT: "cc.Texture.addImage(): path should be non-null", OT: "cocos2d: cc.Texture2D. Can't create Texture. UIImage is nil", PT: "cocos2d: WARNING: Image (%s x %s) is bigger than the supported %s x %s", UT: "initWithString isn't supported on cocos2d-html5", NT: "initWithETCFile does not support on HTML5", RT: "initWithPVRFile does not support on HTML5", TT: "initWithPVRTCData does not support on HTML5", KT: "bitsPerPixelForFormat: %s, cannot give useful result, it's a illegal pixel format", HT: "cocos2d: cc.Texture2D: Using RGB565 texture since image has no alpha", JT: "cc.Texture.addImage(): path should be non-null", LT: "NSInternalInconsistencyException", jd: "Missing file: %s", BO: "cc.radiansToDegress() should be called cc.radiansToDegrees()", Iz: "Rect width exceeds maximum margin: %s", Hz: "Rect height exceeds maximum margin: %s", bR: "If program goes here, there should be event in dispatch.", cR: "_inDispatch should be 1 here." }; b.uv = function(a) { if (b.Va) { var c = b.YW, d = document; if (!c) { var e = d.createElement("Div"), c = e.style; e.setAttribute("id", "logInfoDiv"); b.Va.parentNode.appendChild(e); e.setAttribute("width", "200"); e.setAttribute("height", b.Va.height); c.zIndex = "99999"; c.position = "absolute"; c.top = "0"; c.left = "0"; c = b.YW = d.createElement("textarea"); d = c.style; c.setAttribute("rows", "20"); c.setAttribute("cols", "30"); c.setAttribute("disabled", !0); e.appendChild(c); d.backgroundColor = "transparent"; d.borderBottom = "1px solid #cccccc"; d.borderRightWidth = "0px"; d.borderLeftWidth = "0px"; d.borderTopWidth = "0px"; d.borderTopStyle = "none"; d.borderRightStyle = "none"; d.borderLeftStyle = "none"; d.padding = "0px"; d.margin = 0 } a = "string" == typeof a ? a : JSON.stringify(a); c.value = c.value + a + "\r\n"; c.scrollTop = c.scrollHeight } }; b.fv = function(a) { if ("object" === typeof a) try { return JSON.stringify(a) } catch (c) { return "" } else return a }; console.log && (b.log = function(a) { for (var c = 1; c < arguments.length; c++) a = a.replace(/(%s)|(%d)/, b.fv(arguments[c])); console.log(a) }, b.warn = console.warn ? function(a) { for (var c = 1; c < arguments.length; c++) a = a.replace(/(%s)|(%d)/, b.fv(arguments[c])); console.warn(a) } : b.log, b.error = console.error ? function(a) { for (var c = 1; c < arguments.length; c++) a = a.replace(/(%s)|(%d)/, b.fv(arguments[c])); console.error(a) } : b.log, b.assert = function(a, c) { if (!a && c) { for (var d = 2; d < arguments.length; d++) c = c.replace(/(%s)|(%d)/, b.fv(arguments[d])); throw c; } }); var q = b.Jb.re[b.Jb.kg.ns], z = b.Jb; console.log && q === z.HQ || (b.log = q == z.Py ? b.uv.bind(b) : function() {}); q && q != z.GG && q != z.GQ && q != z.FG || (b.warn = function() {}); q != z.Py && q != z.HG && console.warn || (b.warn = b.uv.bind(b)); q && q != z.GG ? q != z.Py && q != z.HG && q != z.FG && console.error || (b.error = b.uv.bind(b), b.assert = function(a, c) { if (!a && c) { for (var d = 2; d < arguments.length; d++) c = c.replace("%s", arguments[d]); b.uv(c) } }) : (b.error = function() {}, b.assert = function() {}); b.T.v2 = function(a, c) { var d = this, e = this.Yw(), f = "load " + a + " failed!"; e.open("GET", a, !0); /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ? (e.setRequestHeader("Accept-Charset", "x-user-defined"), e.onreadystatechange = function() { if (4 == e.readyState && 200 == e.status) { var a = b.VI(e.responseBody); c(null, d.cw(a)) } else c(f) }) : (e.overrideMimeType && e.overrideMimeType("text/plain; charset\x3dx-user-defined"), e.onload = function() { 4 == e.readyState && 200 == e.status ? c(null, d.cw(e.responseText)) : c(f) }); e.send(null) }; b.T.cw = function(a) { if (!a) return null; for (var c = new Uint8Array(a.length), d = 0; d < a.length; d++) c[d] = a.charCodeAt(d) & 255; return c }; b.T.gga = function(a) { var c = this.Yw(), d = "load " + a + " failed!"; c.open("GET", a, !1); a = null; if (/msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent)) { c.setRequestHeader("Accept-Charset", "x-user-defined"); c.send(null); if (200 != c.status) return b.log(d), null; (c = b.VI(c.responseBody)) && (a = this.cw(c)) } else { c.overrideMimeType && c.overrideMimeType("text/plain; charset\x3dx-user-defined"); c.send(null); if (200 != c.status) return b.log(d), null; a = this.cw(c.responseText) } return a }; var Uint8Array = Uint8Array || Array; if (/msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent)) { var aa = b.Sb("script"); aa.type = "text/vbscript"; aa.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(aa); b.VI = function(a) { for (var c = {}, d = 0; 256 > d; d++) for (var e = 0; 256 > e; e++) c[String.fromCharCode(d + 256 * e)] = String.fromCharCode(d) + String.fromCharCode(e); d = IEBinaryToArray_ByteStr(a); a = IEBinaryToArray_ByteStr_Last(a); return d.replace(/[\s\S]/g, function(a) { return c[a] }) + a } }; b = b || {}; b.DK = "data:image/gif;base64,R0lGODlhEAAQALMNAD8/P7+/vyoqKlVVVX9/fxUVFUBAQGBgYMDAwC8vL5CQkP///wAAAP///wAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAANACwAAAAAEAAQAAAEO5DJSau9OOvNex0IMnDIsiCkiW6g6BmKYlBFkhSUEgQKlQCARG6nEBwOgl+QApMdCIRD7YZ5RjlGpCUCACH5BAUAAA0ALAAAAgAOAA4AAAQ6kLGB0JA4M7QW0hrngRllkYyhKAYqKUGguAws0ypLS8JxCLQDgXAIDg+FRKIA6v0SAECCBpXSkstMBAAh+QQFAAANACwAAAAACgAQAAAEOJDJORAac6K1kDSKYmydpASBUl0mqmRfaGTCcQgwcxDEke+9XO2WkxQSiUIuAQAkls0n7JgsWq8RACH5BAUAAA0ALAAAAAAOAA4AAAQ6kMlplDIzTxWC0oxwHALnDQgySAdBHNWFLAvCukc215JIZihVIZEogDIJACBxnCSXTcmwGK1ar1hrBAAh+QQFAAANACwAAAAAEAAKAAAEN5DJKc4RM+tDyNFTkSQF5xmKYmQJACTVpQSBwrpJNteZSGYoFWjIGCAQA2IGsVgglBOmEyoxIiMAIfkEBQAADQAsAgAAAA4ADgAABDmQSVZSKjPPBEDSGucJxyGA1XUQxAFma/tOpDlnhqIYN6MEAUXvF+zldrMBAjHoIRYLhBMqvSmZkggAIfkEBQAADQAsBgAAAAoAEAAABDeQyUmrnSWlYhMASfeFVbZdjHAcgnUQxOHCcqWylKEohqUEAYVkgEAMfkEJYrFA6HhKJsJCNFoiACH5BAUAAA0ALAIAAgAOAA4AAAQ3kMlJq704611SKloCAEk4lln3DQgyUMJxCBKyLAh1EMRR3wiDQmHY9SQslyIQUMRmlmVTIyRaIgA7"; b.Xn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAAgCAYAAAD9qabkAAAKQ2lDQ1BJQ0MgcHJvZmlsZQAAeNqdU3dYk/cWPt/3ZQ9WQtjwsZdsgQAiI6wIyBBZohCSAGGEEBJAxYWIClYUFRGcSFXEgtUKSJ2I4qAouGdBiohai1VcOO4f3Ke1fXrv7e371/u855zn/M55zw+AERImkeaiagA5UoU8Otgfj09IxMm9gAIVSOAEIBDmy8JnBcUAAPADeXh+dLA//AGvbwACAHDVLiQSx+H/g7pQJlcAIJEA4CIS5wsBkFIAyC5UyBQAyBgAsFOzZAoAlAAAbHl8QiIAqg0A7PRJPgUA2KmT3BcA2KIcqQgAjQEAmShHJAJAuwBgVYFSLALAwgCgrEAiLgTArgGAWbYyRwKAvQUAdo5YkA9AYACAmUIszAAgOAIAQx4TzQMgTAOgMNK/4KlfcIW4SAEAwMuVzZdL0jMUuJXQGnfy8ODiIeLCbLFCYRcpEGYJ5CKcl5sjE0jnA0zODAAAGvnRwf44P5Dn5uTh5mbnbO/0xaL+a/BvIj4h8d/+vIwCBAAQTs/v2l/l5dYDcMcBsHW/a6lbANpWAGjf+V0z2wmgWgrQevmLeTj8QB6eoVDIPB0cCgsL7SViob0w44s+/zPhb+CLfvb8QB7+23rwAHGaQJmtwKOD/XFhbnauUo7nywRCMW735yP+x4V//Y4p0eI0sVwsFYrxWIm4UCJNx3m5UpFEIcmV4hLpfzLxH5b9CZN3DQCshk/ATrYHtctswH7uAQKLDljSdgBAfvMtjBoLkQAQZzQyefcAAJO/+Y9AKwEAzZek4wAAvOgYXKiUF0zGCAAARKCBKrBBBwzBFKzADpzBHbzAFwJhBkRADCTAPBBCBuSAHAqhGJZBGVTAOtgEtbADGqARmuEQtMExOA3n4BJcgetwFwZgGJ7CGLyGCQRByAgTYSE6iBFijtgizggXmY4EImFINJKApCDpiBRRIsXIcqQCqUJqkV1II/ItchQ5jVxA+pDbyCAyivyKvEcxlIGyUQPUAnVAuagfGorGoHPRdDQPXYCWomvRGrQePYC2oqfRS+h1dAB9io5jgNExDmaM2WFcjIdFYIlYGibHFmPlWDVWjzVjHVg3dhUbwJ5h7wgkAouAE+wIXoQQwmyCkJBHWExYQ6gl7CO0EroIVwmDhDHCJyKTqE+0JXoS+cR4YjqxkFhGrCbuIR4hniVeJw4TX5NIJA7JkuROCiElkDJJC0lrSNtILaRTpD7SEGmcTCbrkG3J3uQIsoCsIJeRt5APkE+S+8nD5LcUOsWI4kwJoiRSpJQSSjVlP+UEpZ8yQpmgqlHNqZ7UCKqIOp9aSW2gdlAvU4epEzR1miXNmxZDy6Qto9XQmmlnafdoL+l0ugndgx5Fl9CX0mvoB+nn6YP0dwwNhg2Dx0hiKBlrGXsZpxi3GS+ZTKYF05eZyFQw1zIbmWeYD5hvVVgq9ip8FZHKEpU6lVaVfpXnqlRVc1U/1XmqC1SrVQ+rXlZ9pkZVs1DjqQnUFqvVqR1Vu6k2rs5Sd1KPUM9RX6O+X/2C+mMNsoaFRqCGSKNUY7fGGY0hFsYyZfFYQtZyVgPrLGuYTWJbsvnsTHYF+xt2L3tMU0NzqmasZpFmneZxzQEOxrHg8DnZnErOIc4NznstAy0/LbHWaq1mrX6tN9p62r7aYu1y7Rbt69rvdXCdQJ0snfU6bTr3dQm6NrpRuoW623XP6j7TY+t56Qn1yvUO6d3RR/Vt9KP1F+rv1u/RHzcwNAg2kBlsMThj8MyQY+hrmGm40fCE4agRy2i6kcRoo9FJoye4Ju6HZ+M1eBc+ZqxvHGKsNN5l3Gs8YWJpMtukxKTF5L4pzZRrmma60bTTdMzMyCzcrNisyeyOOdWca55hvtm82/yNhaVFnMVKizaLx5balnzLBZZNlvesmFY+VnlW9VbXrEnWXOss623WV2xQG1ebDJs6m8u2qK2brcR2m23fFOIUjynSKfVTbtox7PzsCuya7AbtOfZh9iX2bfbPHcwcEh3WO3Q7fHJ0dcx2bHC866ThNMOpxKnD6VdnG2ehc53zNRemS5DLEpd2lxdTbaeKp26fesuV5RruutK10/Wjm7ub3K3ZbdTdzD3Ffav7TS6bG8ldwz3vQfTw91jicczjnaebp8LzkOcvXnZeWV77vR5Ps5wmntYwbcjbxFvgvct7YDo+PWX6zukDPsY+Ap96n4e+pr4i3z2+I37Wfpl+B/ye+zv6y/2P+L/hefIW8U4FYAHBAeUBvYEagbMDawMfBJkEpQc1BY0FuwYvDD4VQgwJDVkfcpNvwBfyG/ljM9xnLJrRFcoInRVaG/owzCZMHtYRjobPCN8Qfm+m+UzpzLYIiOBHbIi4H2kZmRf5fRQpKjKqLupRtFN0cXT3LNas5Fn7Z72O8Y+pjLk722q2cnZnrGpsUmxj7Ju4gLiquIF4h/hF8ZcSdBMkCe2J5MTYxD2J43MC52yaM5zkmlSWdGOu5dyiuRfm6c7Lnnc8WTVZkHw4hZgSl7I/5YMgQlAvGE/lp25NHRPyhJuFT0W+oo2iUbG3uEo8kuadVpX2ON07fUP6aIZPRnXGMwlPUit5kRmSuSPzTVZE1t6sz9lx2S05lJyUnKNSDWmWtCvXMLcot09mKyuTDeR55m3KG5OHyvfkI/lz89sVbIVM0aO0Uq5QDhZML6greFsYW3i4SL1IWtQz32b+6vkjC4IWfL2QsFC4sLPYuHhZ8eAiv0W7FiOLUxd3LjFdUrpkeGnw0n3LaMuylv1Q4lhSVfJqedzyjlKD0qWlQyuCVzSVqZTJy26u9Fq5YxVhlWRV72qX1VtWfyoXlV+scKyorviwRrjm4ldOX9V89Xlt2treSrfK7etI66Trbqz3Wb+vSr1qQdXQhvANrRvxjeUbX21K3nShemr1js20zcrNAzVhNe1bzLas2/KhNqP2ep1/XctW/a2rt77ZJtrWv913e/MOgx0VO97vlOy8tSt4V2u9RX31btLugt2PGmIbur/mft24R3dPxZ6Pe6V7B/ZF7+tqdG9s3K+/v7IJbVI2jR5IOnDlm4Bv2pvtmne1cFoqDsJB5cEn36Z8e+NQ6KHOw9zDzd+Zf7f1COtIeSvSOr91rC2jbaA9ob3v6IyjnR1eHUe+t/9+7zHjY3XHNY9XnqCdKD3x+eSCk+OnZKeenU4/PdSZ3Hn3TPyZa11RXb1nQ8+ePxd07ky3X/fJ897nj13wvHD0Ivdi2yW3S609rj1HfnD94UivW2/rZffL7Vc8rnT0Tes70e/Tf/pqwNVz1/jXLl2feb3vxuwbt24m3Ry4Jbr1+Hb27Rd3Cu5M3F16j3iv/L7a/eoH+g/qf7T+sWXAbeD4YMBgz8NZD+8OCYee/pT/04fh0kfMR9UjRiONj50fHxsNGr3yZM6T4aeypxPPyn5W/3nrc6vn3/3i+0vPWPzY8Av5i8+/rnmp83Lvq6mvOscjxx+8znk98ab8rc7bfe+477rfx70fmSj8QP5Q89H6Y8en0E/3Pud8/vwv94Tz+4A5JREAAAAGYktHRAD/AP8A/6C9p5MAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfcAgcQLxxUBNp/AAAQZ0lEQVR42u2be3QVVZbGv1N17829eRLyIKAEOiISEtPhJTJAYuyBDmhWjAEx4iAGBhxA4wABbVAMWUAeykMCM+HRTcBRWkNH2l5moS0LCCrQTkYeQWBQSCAIgYRXEpKbW/XNH5zS4noR7faPEeu31l0h4dSpvc+t/Z199jkFWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhY/H9D/MR9qfKnLj/00U71aqfJn9+HCkCR/Wk36ddsgyJ/1wF4fkDfqqm9/gPsUeTnVr6a2xlQfnxdI7zs0W7irzD17Ytb2WT7EeNv/r4ox1O3Quf2QP2pgt9utwfout4FQE8AVBSlnaRmfvAURQkg2RlAbwB9AThlW5L0GaiKojhJhgOIBqDa7XaPrusdPtr5kQwF0BVAAoBIABRCKDd5aFUhRDAAw57eAOwAhKIoupft3zoqhB1AqLwuHIBut9uFt02qqvqRDJR2dAEQJj/BAOjn56dqmma+xiaECAEQAWAggLsB6A6HQ2iaZggBhBAqgEAAnQB0kzaEmT4hAITT6VQ8Ho/HJAKKECJQtr8LwD1y/A1/vcdfEUIEyfZ9AcQbYvZ942Px88L2UwlJR0dH0EMPPbRj5syZPUeNGrXR7Xb/641xIwJ1XY9NSUlZm52dfW+XLl1w8uRJzJ8//+OGhoYJqqqe1TSt1Wsm9NN1PSIqKmr12rVrR5WUlHy1bdu2AQCumWc3IYRD1/UwVVXnFRQUTIuNjUVzczN2797dWFJSkq8oymZd15sAGAEnFEUJ1nX9nzIzM1dnZmZGh4SE4OTJk5g5c+Zf29vbp9pstrMej6fVOyhIhgAYU1hY+B+hoaGoqKg4XVlZea+XTULTNFdCQsLGiRMnPuR2u3UhBOV9eeDAAWXTpk095DUe6WsoyRE5OTlr0tLSAux2O/bs2cO5c+e+pijKUpIXSHaQVAGkvPLKK++6XK4OksJLCFlXV2cvKSlJBFAjhU+x2WwhHo9nUHp6+urMzMy7wsLCUF9fjxdffPHjxsbGiTab7WuPx9NiEutOuq4PyMjI+M+srKyYqKgoHD58GDNmzNjq8XhyVFU9b/q+LH7hBAEYu3PnTlZVVRFAGgCX6f/tAHoOHDjwa0p27txp/JO9e/f+QM7cipw9nfL3kQBKt2zZQpJ87rnn6mQmoHilw2EACs+cOUOSrK+vZ1NTE0nyo48+IoBpxswoBcMJ4Ndjx471kOTFixe5d+9ekqTH42H//v13A4jyzpAURfEH0H/OnDnthu1z5sw558MmFUCPWbNmnaMP3nrrLZoyDmP8Hl68eDFJ8siRI9/Yc+zYMQKYKdtAztrTrl27xptRXV1NAKMAOAyBBBA/Y8aMdpLs6Ojgxx9//E37+++//29yvFXppwvAwMcee8xjtDHsuXLlCqOjo//ia3wsfpkoALqFhoZuIckJEyackimm3dQmEMDUmpoakmRISMhhAHOHDx/eQJIbN24kgKEyMAHAFRMTs2XXrl1saWkhSZ0kp0+ffhrAr3wEW/S8efOukORLL72kA1gKYMPWrVtJkk899dRJAHeYrgsEsIQkjx8/TgDvAPjd448/3kaSb7zxBmUa7vC6z53BwcFbSHL9+vU6Sc6aNes8gF5ewWAH0PfVV18lSQL4DMBGIcQ6AKtcLleBFC2jXtFt8ODBe0iyoqKCAJYByC8qKmJDQwOzsrK+MAmqo1OnTveHhoa+GRkZ+XZkZOSWiIiIvzgcjk9mzpypkWRmZuZpmbYbGV4AgPnNzc1sa2sjgN0A5iQmJtaSZHl5OQHcb/K3s81mW0uSTU1NBFAFYFbfvn1Pk+Tbb79NAA8IIVzW42/hByA+Pz/fLR/2ZXIda05NI/z9/TeR5J49ewhgqlxTrtI0jY2NjQQw3zTLuWJiYjaUlJToS5Ys6fjkk080kwDEeAmADcA9GzZsIElGRUW9CyAWwLApU6Y0kOSKFSsog9QICGdERMTGsrIyZmVlEcC9AB4IDw/fTpLbtm0jgN94CUAnAJmVlZVcs2aNZ/LkyRdJcvbs2b4EwAkgZfPmzTxw4AABFAN4BkC6vFeUSewcAO5duXIlSTIhIaEawGMAxgKYAmAGgCS73e5vrKVk/yGythANYEhCQsIhkly+fDkBpKqqGmL6DgIALDKN/3yZpVWQZGVlJQE8aPI3KiMjo5okV61aRQAjAPQBMPfIkSN0u90EUCBtsPiFEwpgbn19PdetW2fM5N4zQ9ekpKQqkty0aRMBpMjiWM6JEydIkoqirJUFJ6iq6pAPVy8A6cZMehMBUACEuVyuFwG8HBwcPEIWx367ZMkSjSQXLVrUJouTRorrkAHdA8BdQogsAOsKCwtJkmPGjDkvMw2bDDo/ADEjRoz4XylyFbm5uY0mAbjLyyZ/AOOrq6tZVlbWsWDBgo69e/eyoqKCgwcPPg4gSQaoIRbp27dvN7KF+tLSUr28vJwFBQXtMpvpYRIM7+wrAkDeqVOnePbsWQIoNKfzpiXPg8uXLydJJicnNwF4f+nSpW6STEtLq5fjYwhk1wkTJtSQ5Ouvv04AqTKj+N2xY8dIkgEBAW/Ie1v8wncRegwZMmQvSfbr12+3Ua33WqPfOWbMmP0kWVpaSgCDZAqcfejQIWNZsEGKgvnh9gfQb9myZd8nAEJVVZtMkUNk8CcNHTq0liR1XWdYWNhmH1mJIme80OnTp18x1rp5eXkEsNJms92Fb7e/IgEsvHz5Mp999tkmAI/l5uZeMC0B7vEqqAYAyL106RJJsra2lpWVld+sucePH38ZQG+5NncBeOrgwYMkqbe3t/Po0aOsra011wAWyl0H7x0JJ4DE+fPnu0kyPT29DsDdUrBuyNKEEAkAdpw/f/6GeoEM8GUmfwEgPCIiopwkGxsbabPZPgOw6L777vvm4p49e26VGYjFLxUhhD+ApLKyMp44ccIoVnXybgbgzkcfffRzklyzZg0BDJYCMMmoCwQFBXkLgLGWvvcWAgBToSsKwNPTp09vMR7UuLi4rwH0lgU8c/Db5ezbeeTIkRWzZ8++aMxu+fn5BPCADBwHgP4LFy701NXVEUAJgAnPP/98kyxMNgHo53A4zH77BQQETMvPz7+Um5vbBuAlAFMSExPPmdbVL0qh8Acw8fDhw5SCchVAEYAVb775JknyhRdeaJYztHfxMwLAaqNwCGC2FArv8x0hAHKNLGPKlCme5OTk/Zs3bzb7O0wKiiG8KXl5ed8IxenTp0mSR48e1UmyW7duWywBuD2xyQcgFECgoih+8H1gyJgZV5Lkyy+/3CbTRIePtl2HDBmyw1QBHyGDdXZdXR1JUghRKkXBjOMHCoBdpr0L3nvvPZLkF198wejo6O0A4lVVDTb74HQ6AwD8Wq7Jh8rgGgDgQ13XjVR8qaxJuADMbmlpYXl5uV5UVNRWUFDgfv/993Vj/ZydnU1c37eHXML4S3viAcQqitJD2l104cIFY8lTKsXSBWBMVVWVcd9yed2A1NTUQ6Zl00CvLMMOoHdubm6zFIlWOf5+PsY/Kj09vdrU11QAwwGsv3jxIk21m2DZr10I0RXAuAcffPBgaWkpV69eTYfDcdiwUxY0w6xw+flX8L1xApjevXv3lREREaW6rofB93aPDUDQpEmTMgHgtddeqwBwEd/utZvpqK6uPgEAcXFxkA94NwB9unfvjrNnz4LklwDcf08iIqv66Zs2bXrl4YcfxooVKxAbG7uqrq5uAYA2TdOEqqpGYIi2tjbl6aeffu/YsWPv5uTk7JaC1wHg4Pnz542MwoVvTx+21dbWYvjw4WLixIl+2dnZ9lGjRgmSTE1NRUpKCkwFTGiaxtTU1OXTpk3707Bhw/6g67pDipnT4biuj7qut+Lbk3Vf1tTUXI9qu91Pjq1QFEUBgJaWFgBo8yGOQ8eNGxcAAOvXr/8QwBUfYygAKL169eoCABcuXACAWtn2hOGv0+kMNO1KiPDw8F4A4rZv3/7R1KlTR0+bNu1ht9u9r1+/fqitrQXJgwDarRC6/QjPzs4+QJIffPCB9/aQmSAA43ft2mW0e1QGoi8CAPyLsZccExNTC2BlRkbGRdOyYJCP2csBIN6UAZzCd7cBbQCijYp/dXU1ExMTz6SmptaMHj36f9LS0vYlJCRsl6mxIWSdu3fv/g5J7t+/nwC2AShMTk6+SJKff/45AWRLYbD7+fndAeDf5BJnLoCCyZMnt5JkdnZ2C4B/F0KEm1Pu+Pj4rST55ZdfEsBWAK+mpaVdMo3raDn7KwDuSEpK+m+S3LBhAwG8DuCtHTt2UBbpjgC408vvcFVV15HkuXPnjMp+p5uMf0RcXNyHJNnQ0EBVVfcCWBQXF3fG+Jv0yxABPwB5LS0tRmFxN4BlTzzxxGWSXLx4sS5F3GGFy+1Hp5SUlJq6ujoWFxdTpsZ2H+0iIyMj/0iSWVlZX5mr5jfJFroPGzasxlhTnjp1iiTZ3NxMl8tlrCd9pfa9SkpKSJI5OTmnZOageLUZZqxvfVFWVkZcPwdgNwnSCKPqb17jkmR8fPzfZMDZ5CRsFBmNI7h95s2b1yhT7/MAYmStwCx4vy0uLqa3v5qmEcCfvSr1QQAeXb16NY3Cm3HQ55133iGAp+SxZTNhKSkpfzUddkrFjYevzAQCeGjp0qXfsYckY2NjTwD4leGDLCL2HTdunNtoY+zWSHFcIHdsFCtcfuZ1vO9Eqs3m7/F47sb1k2qX/f3997W2tl7BjWfpBYDOzzzzzIVJkyZh0KBBCwEsB3AJvl9AETabLcDj8dwRFRW1ctasWb8JCgpSzp07d62wsPC/Wltb8xRFadR1/ZqPXYbgAQMGbI2Pjw/+6quv9ldVVT0r01ezuPRJSUn5Y9euXXVd11WzDaqq6kePHm3+7LPPRgO4KlNuxWazhXo8nuTk5OSXMjIyEl0uFxoaGtqKior+dPXq1VdUVT0jj7r68ieoT58+vx8yZMjdx48fP1JVVTVF9m20VW02WyfZf97YsWPjXS4X6urqWvPy8jYCWCyEuEDS8FdVFKWzruv//OSTTy5OTk7uqWkaPv3007qysrJ8RVH+LI8ym8/rB3Tu3HnRI488knLo0KG2ffv2ZQI4C98vP6mqqoZqmpaclpa2cOTIkX39/f3R0NDQUVxc/G5TU9PLqqrWa5rWLH1QVFUN0TStX1JSUvH48eP7BwYG4uDBg1cKCgpeBbBe2u+2Qug2EwD5N5sMPuNtMe8XP4TT6Qxoa2sbIGeXvUKIK7d4IISiKC5d1wPljOfA9bPwzYqiXNV13dd6Uqiq6qdpml2mpe02m63d4/G4vcTF5fF47LJf71nJA6BZVVW3pmntuPHlmAD5wk6Q9NnbHp9vHaqq6tA0zU/64PZhk1FfCZB9G/23ALiqKEqzD39tpvbGUqoFwFUhRLP3yzpCCDtJpxyXDulfG27+pqRR3DXsUWVd4Yq0x/taVQjhIhksC8L+ABpM9ljBf5sKwI8pIBr75L5E4vvu+UNeG/a+hv+AL7yFH8qPtOfHjtOP6V/Bja8D6z/B2Nys/1u9Xv33tLf4GfF/LC4GCJwByWIAAAAASUVORK5CYII\x3d"; b.CK = "data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAAlAAD/4QMpaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjAtYzA2MCA2MS4xMzQ3NzcsIDIwMTAvMDIvMTItMTc6MzI6MDAgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjM4MDBEMDY2QTU1MjExRTFBQTAzQjEzMUNFNzMxRkQwIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjM4MDBEMDY1QTU1MjExRTFBQTAzQjEzMUNFNzMxRkQwIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDUzUgV2luZG93cyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkU2RTk0OEM4OERCNDExRTE5NEUyRkE3M0M3QkE1NTlEIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkU2RTk0OEM5OERCNDExRTE5NEUyRkE3M0M3QkE1NTlEIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+/+4ADkFkb2JlAGTAAAAAAf/bAIQADQkJCQoJDQoKDRMMCwwTFhENDREWGhUVFhUVGhkUFhUVFhQZGR0fIB8dGScnKionJzk4ODg5QEBAQEBAQEBAQAEODAwOEA4RDw8RFA4RDhQVERISERUfFRUXFRUfKB0ZGRkZHSgjJiAgICYjLCwoKCwsNzc1NzdAQEBAQEBAQEBA/8AAEQgAyACgAwEiAAIRAQMRAf/EALAAAAEFAQEAAAAAAAAAAAAAAAQAAgMFBgcBAQEAAwEBAAAAAAAAAAAAAAAAAQMEAgUQAAIBAgIEBwoLBgQGAwAAAAECAwAEEQUhMRIGQVFxsTITFGGBwdEiQlKSMzWRoeFicqKyI1NzFYJjJDQWB9KjVCbxwkNkJWXik3QRAAIBAgMFBQcDBQEAAAAAAAABAhEDIRIEMUFRcTJhwVIUBZGhsSJyEzOB0ULhYpIjUxX/2gAMAwEAAhEDEQA/AMJSpUqAVKlXuFAeUq9wpUB5XuFe4V6ooDzZHDox0CnGMinzwl7Z8NajaHeoO3vmTBZBtp9YUIqTEV5ROxHKnWRnaU8VRMhFBUjpV7hSoSeUq9pUB5Sr2lhQHlKvcK8oBV7hSFSRrtaKAZs07YNPM1pG2xJIAw1jSeandry/8X4m8VCKkWwaWwam7Xl/4v1W8VLtmX/i/VbxUoKkWwakSM407tmX/i/VbxUmzGwjQsjdY41IARie/U0IbZO0kNtCXnOCkEBeFu4KI3Bs7DNb27ya+jDx3kJeEnpJJEcQVbWDsk17u5urd591ucZkWhym2Vnd9RkCDEpFxDRpbw0bunu5mlp2De2FMLYXOD2wB2xbOeraUcYGJ72mlSUiqzzdzMd3Z3mixltA2yzcK/NlHM1DQyRXce1HocdNOEfJXZ88y9ZojOqhiBszIRiHQ8Y4cK5TvHuzLljHNMqxNoDjLFraHHnjPxcNCGVbxEUzYNTx5jZSxhpW6qTzlwJ+DCvO2Zf+L9VvFSgqyHYNLYNTdssPxfibxUu15f8Ai/VPiqCakOwa82DU/a8v/F+JvFTDdWPBL8R8VKCvYRYV5UzoMAy6QdIIqI0B4KJtxiRQwou16QoGUkntH5Tz0RbZbmF2hktraSVBo2lUkY8tDye0flPPXTslVUyiyVRsjqUOA4yMT8dW2ram2m6UVTNq9S7EIyUVJydMTn/6DnP+im9Wl+g5z/opvVrpteEhQWY4AaSTwAVf5WPiZh/9S5/zj7zltzlmYWkfWXNvJDGTgGcYDHirR7i7mSbwXParsFMrgb7w6jKw/wCmnc9I14kF3vpvCljbMyWMOJL4aEiB8qU/ObUK7HYWVrl1pFZWiCOCBQqKOLjPGTrNZZqKbUXVHq2nNwTuJRk1VpbgXN8s7Rk5ym0UQQzhIG2NAjhxHWbI+gCBVjBBFbwxwQqEiiUJGg1BVGAFe7dV28WYLYZFmF2Th1UD7JGjymGyn1iK5OyzIBGB1HgrLZhamzumQAGJwSqnSCh1q3GOCodxt4cxurdcpzuN4cyhiWaF5Bg09udUmnWw1H/jV9nFuJ7Quo+8h8peThFA+047vduyMtk7fYqTl07YFdfUufMPzT5p71UdtlmYXaGS2t3mQHAsgxANdadYJopLe4QS2867EsZ4QfCNYrCFbjdDPmgkYyWFxgVf04ifJf6ScNdRUW1XBb6FU5TjF5EpSSrGu/s5lN+g5z/opvVpfoOc/wCim9WtdHnatvObJXDW7xLGhB8nrPaY9/HCr+tEdPCVaSeDoYLnqF63lzW4/PFSW3ecxbI84VSzWUwUaSdg0DXXK5nvAipnd6qgKvWnQO7pri9ZUEmm3Vl2j1kr8pRlFRyquBNZjGxQ/S56Y1S2fu9OVueon11Szahoou06QoQUXadIVCD2FJJ7R+U89dMydv8Axdn+TH9muZye0flPPXQstlK5Tbka1gUjlC1q0vVLkeb6r+O3Tx9xcY1nt8c0NrZCyiOE1108NYjGv1joo7Js1jzKyScYLIvkzL6LDwHXVJksH9Sb49dKNq0tj1jA6uriOCL+02FWX7iVtZX1/AzaHTyeoauKn2MX9W79zebiZCuR5MjSrhfXuEtwTrUeZH+yNfdrRNcxI6IzhXlJEak6WIGJ2Rw4ChWnChndtlVBLMdQA0k1gbXNMzzDfDLs6mjaPKppJbWwJ1bOwwxw43OnHh71YT3DpfWUJmFlb5jHHDdeXBHIsrRea5TSqvxqG04cNN62vetoCS4tre5mgnkGE9q+3DKOkuI2WX6LDQRRHWDh1UCtwj7QRg2wdl8Djgw1qe7XvW0BQ3kfZ7mSLgU+T9E6RVbnuVrnWVSWqj+Lt8ZbRuHEdKPkYVcZ2MJY5fSGyeVar45+rkWQHAqccalPE5km1htWK5nK4Wnt5FuUBUwOMG4nGkA/BXUrW4S6torlOjMgcd/xVn7rLo7zKs0uEjCNeSvdwoBhgsZxX1l2j36k3Lu+uyprdj5Vs5A+i/lD48a0aaVJOPi7jB6lbzWozpjB48pf1NDXNN4vfl7+Z4BXS65pvF78vfzPAK71XTHmZ/S/yT+jvJ7L3fHytz1E+upbL+Qj5W56jfXWRnsIYKLtekKEFGWvSFQgyjk9o/Keet3YthlMP/5x9msJJ7R+U89biyb/AMXEv7gD6tadL1T+kwepRrC39ZkLDMbiwMvUHRPG0bjlGg8ore/23sxBldxfMPLupNhT8yL/AORNZbdzJ484scytxgLqJY5LZj6Q2sV5G1Vud1mjjyG0ij0NEGSZToKyhjtqw4waztuiXA3qKTbSxltfGhbZlE95ZtZqxVbgiOZhrER9ph3Svk9+pJILZ4Y4DGBFCUMKjRsGPobPFhUfW0NJmljE2xJcIrcI2vFUEln1lRXd6lrazXT9GCNpD+yNqoI7mOVduNw6nzlOIoPOUa6yye1XXcbMR5GdQ3xY0BSbj31/FcTQZirJ+q431q7anbHCTZ72Bw7lbPrKBMcBWNNgbMBBh+bsjBdni0VJ1lARZs6yWiupxCuMDy6KpS2IwOo6DTr3Mre3e5tZZVUM4ZBjqOOJoWO4jkXajcOOMHGgDISvWIrdAkKR80+TzVl908bPPL3LzxOuHdifxVfiTAg92qI/w+/8gGgSyN/mR7XPVlp0lF/3L3mbVKtu5Hjbk/8AHE2Fc03i9+Xv5ngFdKNc13i9+Xv5ngFaNV0x5nn+l/kn9HeEWXu+PlbnqJ9dS2Xu9OVueon11kZ7CGCjLXpCgxRlr0hUIPYUcntH5Tz1s8vb+Bt1/dqPirGSe0flPPWusG/g4Py15q06XqlyMWvVYQ+ruI9xJOqzO9hOto/sP8tbGOFIrmWeM7IuMDMnAXXQJOUjQeOsJk0nY96ip0CYunrjaHx1t+srPJUbXBm2LrFPikwTOb+T+VhbZxGMrDXp83x1QSy2tucJpUjPETp+Cn5/ftaRvKvtp3Kx48HG3erHMzOxZiWZtLMdJNQSbbL71Vk6yynViOkqnEEfOWtPbXi3EQkGg6mXiNckjeSJxJGxR10qw0GtxuxmvbImD4CZMFlA4fRfv0BqesqqzTMZNMEDbIHtHH2QeCiZJSqMQdOGiue53mz3czQwsRbIcNHnkec3c4qAMuriz68gTIToxwOOnlp0MjxMJYW741Gs3RVldtbygE/dMcHX/moDaxTiWNZB53B3arb8/wC+4SOF4sf/AKxU9kcBsfOGHfoUHtG/RbzY5Die5HHhXdvavqiZ9Q8Jdlq4/gbKua7xe/L38zwCuhpf2Uk/Zo50kmwJKIdogDjw1VzzeL35e/meAVp1LTgqY4nn+mRauzqmqwrjzCLL3fHytz1E+upLL+Qj5W56jfXWRnroYKLtekKEFF2vSFQg9hSSe0flPPWosm/hIfoLzVl5PaPynnrRWb/w0X0F5q06XqlyM2sVYx5gmbFre/t71NY2T+0h8VbSO5SWNJUOKSAMp7jDGspmMPaLRlXS6eWve1/FRO7WYdbZm1Y/eW/R7qHxHRXGojlm3ulid6aVbaW+OALvgCLq2Hm9WxHKWqjhj6xsK1e8dm15l4niG1LZkswGsxtrPeOmsvayBJA1VItlWjptLuTdPMo7LtjRDq9naK4+WF9IrUW7BaHOljGqVHB7w2hzVoZt87d8vaNYSLl02CcRsDEbJbj71Uu7UBkvJ7/D7q2QoDxySaAO8MTXdxRVMpRp5XZOWdF/ms7R5XdyKfKWJsO/5PhrG5XlNxmEywW6bTnTxAAcJNbGSMXkM1pjgbiNo1PziPJ+Os7u7m/6ReM00ZOgxSpqYYHT3wRXMKN4ll9zUG4bQfNshu8sZVuEA2hirA4qe/VOwwrVbzbww5mI44UKRRYkbWG0S3JWctbd7u5WFfOOLHiUdJqmaipfLsIsObhWe001lMkMVvJNjhghIALMcBxCs7fxXQmkupx1bXDswGPlaTidVaEyKNXkoo4eBV+Sq7L7Vs9zcBgeyQ4GQ/MB1crmoim2orezqcowTuSeEY48jQ7oZX2PLzdyLhNd6RjrEY6I7+uspvH78vfzPAK6UAAAFGAGgAcArmu8Xvy9/M8ArTfio24RW5nnaG67uou3H/KPuqT2X8hHytz1G+upLL3enK3PUb66ys9RDBRdr0hQgou06QqEGUkntH5Tz1e238vF9BeaqKT2j8p56vbb+Xi+gvNWjTdUuRn1XTHmTh8KrJTJlt8t1CPIY44cGnpJVjTJYkmjaN9Ib4u7V923njTethRauZJV3PaW1rfLIiXEDYg6R4VYc9CXW7thfOZbKdbGZtLW8uPVY/u3GrkNUkM9zlcxUjbhfWOA90cRq4gv4LhdqN+VToNYWmnRm9NNVWNTyHc6VWBv8wt4YeHqm6xyPmroq1Z7WGFLSxTq7WLSuPSdjrkfumq5yHXDUeA92oO2SKpVumNAaoJLMXH3myp0rpJ4uKhc3tbDM5BMri1zAj79j7KTiY8TcdBpcsith0286o+sPCagEX9Pzg4zXUCp6QYse8oouCG3tk6m1BYv05W6T+IdyolxbHDAAa2OgDlNCz3ryN2WxBd5PJMg1t81eId2ukqnLlTBbfcuY+9uJLiRcvtPvHdsHK+cfRHcHDWsyawjyy0WBcDI3lTP6TeIcFV+S5OmXx9bJg1048o8Cj0V8Jq2DVu09nL80up7OxHi+oal3P8AXB/IsZS8T/YOV65zvCcc7vfzPAK3ivWCz445zeH954BXOr6I8yfSfyz+jvCLP3fHytz1G+upLP3fHytz1E+usbPaQ0UXadIUIKLtekKhB7Ckk9o/Keer22/l4/oLzVRSe0flPPV7b/y8X0F5q0abqlyM+q6Y8yQsBTDMor1o8aiaE1pbluMqS3sbLLHIhSRQyngqukhaJ9uBjo+H5aOa3ao2t34qouRlLajTalGP8v0IY8ylXQ+PKPFU/bYXOLPge6CKia0LaxTOxHu1Q7cuBd9yPEJ7TbjXKO8CajbMIF6CNIeNvJHjqIWJ7tSpYkalqVblwIdyG+RGXur0hXYJFxal+Dhq5y3slkv3Y2pD0pTr+QUClpJRUdo9XW4OLrTHtM16cZLLWkeC7y4jvlNEpcRtw1Ux27Ci448NZrTFy3nn3IQWxlgGrDZ3pza7/M8ArZo+ArF5171uvp+CqdV0R5l/psUrs2vB3hdl7vTlbnqJ9dS2Xu+PlbnqJ9dY2eshooq16QoQUXa9IVCD2FLJ7RuU89WNtmUSQqkgYMgw0accKrpPaPynnrZWG4Vi+VWmY5tnMWXG+XrIYnA0rhj0mdcTgdNdwnKDqjmduM1SRR/qlr8/4KX6pa8T/BVzDuLZXudRZblmbxXcPUNPc3KqCIwrbOzgrHEnHjoyD+3eSXkht7DeKG4umDGOJVUklfouThXfmbnZ7Cvy1vt9pmv1W1+d8FL9VteJvgq5yrcOGfLmzHN80iyyETPbptAEFo2ZG8pmUa1OFNn3Ky6W/sbDKM5hv5bx2WTZA+7RF2y52WOPJTzE+z2Dy1vt9pT/AKpacTerS/U7Tib1a04/t7kDXPY03jhN0W6sQ7K7W3q2dnrMccaDy/8At80kuZfqWYxWNtlcvUPPhiGYhWDeUy7IwYU8xPs9g8tb7faUn6pacTerTxm9oOBvVq3v9z927aynuId44LiWKNnjhAXF2UYhRg516qpsryjLr21665zFLSTaK9U2GOA87SwqY37knRU+BzOzags0s1Oyr+BKM6sxwP6tSDPLMen6vy0rvdm3Sxlu7K/S7WDDrFUDUTxgnTU826eXW7KlxmqQuwDBXUKcD+1Xee/wXuKX5XDGWLapSVcOyhEM/seJ/V+WnjeGx4pPV+Wkm6kKZlFay3Jlt7iFpYZY8ASVK6DjtDDA0f8A0Tl340/1f8Ndx8xJVWXB0KbktFFpNzdVXAC/qOwA0CQni2flrO3Vwbm5lnI2TKxbDirX/wBE5d+NcfV/wVR7xZPa5U9utvI8nWhmbbw0YEAYYAVxfhfy5rlKR4Fulu6X7mW1mzT8S4Yis/5CPlbnqJ9dSWfu9OVueon11mZvQ2i7XpChKKtekKhBlNJ7R+U89bDfGTb3a3ZX0Lcj6kdY+T2j8p560288m1kWQr6MJ+ylSAr+2cnV5renjs3H1loX+3j9XvbbtxLN9lqW4UnV5jdnjtXHxihtyZNjeSBu5J9k1BJe7xy7W5CJ/wCzuD/mTVTf2+fq97LJuLrPsNRueS7W6aJ/38x+vLVXuY+xvHaNxbf2GoCezf8A36j/APsSf8w1sLnqczTefJluYoLm5uo5F61sBshItP1cNFYe1f8A3ir/APfE/wCZUe9bB94r5jwuPsrQFhmG4l/Z2M17HdW90tuu3IkTHaCjWdIw0VVZdks9/C06yJFEp2dp+E1bbqybGTZ8vpQD7L1XRv8A7blT96Oda7tpNuuNE37Cq9KSisjyuUoxrStKllHbLlWTXsMs8chuSuwEPDqwoLe5y+YRE/gLzmqRekvKKtd4327yM/ulHxmrHJStySWVRyrjxKI2XC/CTlnlPPKTpTdFbP0L1bgrf5Lp0G3dPhQHwV0S1lzBsns3sESR8Crh9WAJGjSOKuU3E+zdZQ3oJh8IArdZXFDmOTpHa3i2+YrI2KtKy4ricBsBuHHgFXSo440+Wa2qqxjvM9uMoy+WvzWpLCWWWE28HxL6e43ojgkeSCBY1Ri5BGIUDT51cl3vm276BBqSEH4WbxV0tlkyXJcxTMb+OW6uY9mGHrCzDQwwAbTp2uKuTZ9N1uYsfRRR8WPhrm419mSSjRyiqxVK7y23B/ftuTm2oSdJyzNVw3BFn7vTlbnqF9dS2fu9OVueon11lZuQ2iLdsGFD05H2dNQGV0ntG5Tz1dWm9N1b2kVq8EVwsI2UaQaQOKhmitZGLOmk68DhSFvY+gfWNSAg7z3Qvo7yKCKIohiaNR5LKxx8qpxvjcqS0VpbxvwOAcRQPZ7D0G9Y0uz2HoH1jUCpLY7zXlpbm3eKO5QuzjrBqZji3x17PvNcyT288VvDBJbMWUovS2hslW7mFQ9nsPQPrGl2ew9A+saCod/WNxtbYsrfb17WBxx5ddD2281xC88klvDcSXEnWuzrqOGGC9zRUPZ7D0G9Y0uzWHoH1jQVCLreq6ntZbaO3it1mGy7RjTs1X2mYy20ZiCq8ZOODcdEdmsPQb1jS7PYegfWNdJuLqnQiSUlRqpFLmryxtH1Ma7Qw2gNNPOdSt0oI27p007s9h6B9Y0uz2HoH1jXX3Z+I4+1b8IJdX89xLHKQFMXQUahpxoiPN5P+onfU+A0/s9h6DesaXZ7D0D6xpG7OLbUtu0StW5JJx2bBsmbtiSiEk+cxoCWWSaVpZOk2vDVo0VYdnsPQb1jSNvZcCH1jSd2c+p1XAmFqEOmOPEfaH+BQd1ueo211IzrgFUYKNAAqI1WztCpUqVCRUqVKgFSpUqAVKlSoBUqVKgFSpUqAVKlSoBUqVKgFSpUqAVKlSoD/9k\x3d"; var b = b || {}, ba = { id: 0 | 998 * Math.random(), B1: 0 | 998 * Math.random(), oM: function(a, c, d) { a = a.toString(); var e = a.substring(a.indexOf("(") + 1, a.indexOf(")")), e = e.trim(); for (a = a.substring(a.indexOf("{") + 1, a.lastIndexOf("}")); - 1 != a.indexOf("this._super");) { var f = a.indexOf("this._super"), g = a.indexOf("(", f), h = a.substring(g + 1, a.indexOf(")", g)), h = h.trim(); a = a.substring(0, f) + "ClassManager[" + d + "]." + c + ".call(this" + (h ? "," : "") + a.substring(g + 1) } return Function(e, a) }, A0: function() { return this.id++ }, B0: function() { return this.B1++ } }; ba.oM.K6 = ba; (function() { var a = /\b_super\b/, c = b.Jb.re[b.Jb.kg.FZ]; c && console.log("release Mode"); b.oa = function() {}; b.oa.extend = function(d) { function e() { this.ta = ba.B0(); this.ctor && this.ctor.apply(this, arguments) } var f = this.prototype, g = Object.create(f), h = ba.A0(); ba[h] = f; var k = { writable: !0, enumerable: !1, configurable: !0 }; g.ta = null; e.id = h; k.value = h; Object.defineProperty(g, "__pid", k); e.prototype = g; k.value = e; Object.defineProperty(e.prototype, "constructor", k); this.Yh && (e.Yh = b.j(this.Yh)); this.Zh && (e.Zh = b.j(this.Zh)); for (var m = 0, p = arguments.length; m < p; ++m) { var r = arguments[m], s; for (s in r) { var u = "function" === typeof r[s], t = "function" === typeof f[s], v = a.test(r[s]); c && u && t && v ? (k.value = ba.oM(r[s], s, h), Object.defineProperty(g, s, k)) : u && t && v ? (k.value = function(a, c) { return function() { var d = this._super; this._super = f[a]; var e = c.apply(this, arguments); this._super = d; return e } }(s, r[s]), Object.defineProperty(g, s, k)) : u ? (k.value = r[s], Object.defineProperty(g, s, k)) : g[s] = r[s]; if (u) { var w, y; if (this.Yh && this.Yh[s]) { var u = this.Yh[s], B; for (B in this.Zh) if (this.Zh[B] == u) { y = B; break } b.i(g, u, r[s], r[y] ? r[y] : g[y], s, y) } if (this.Zh && this.Zh[s]) { u = this.Zh[s]; for (B in this.Yh) if (this.Yh[B] == u) { w = B; break } b.i(g, u, r[w] ? r[w] : g[w], r[s], w, s) } } } } e.extend = b.oa.extend; e.Jda = function(a) { for (var c in a) g[c] = a[c] }; return e } })(); b.i = function(a, c, d, e, f, g) { if (a.__defineGetter__) d && a.__defineGetter__(c, d), e && a.__defineSetter__(c, e); else if (Object.defineProperty) { var h = { enumerable: !1, configurable: !0 }; d && (h.get = d); e && (h.set = e); Object.defineProperty(a, c, h) } else throw Error("browser does not support getters"); if (!f && !g) for (var h = null != d, k = void 0 != e, m = Object.getOwnPropertyNames(a), p = 0; p < m.length; p++) { var r = m[p]; if ((a.__lookupGetter__ ? !a.__lookupGetter__(r) : !Object.getOwnPropertyDescriptor(a, r)) && "function" === typeof a[r]) { var s = a[r]; if (h && s === d && (f = r, !k || g)) break; if (k && s === e && (g = r, !h || f)) break } } a = a.constructor; f && (a.Yh || (a.Yh = {}), a.Yh[f] = c); g && (a.Zh || (a.Zh = {}), a.Zh[g] = c) }; b.j = function(a) { var c = a.constructor ? new a.constructor : {}, d; for (d in a) { var e = a[d]; c[d] = "object" != typeof e || !e || e instanceof b.k || e instanceof HTMLElement ? e : b.j(e) } return c }; b = b || {}; b.F = b.F || {}; b.h$ = function() {}; b.iq = { dM: 8, o5: 9, LM: 13, shift: 16, I$: 17, alt: 18, pause: 19, q$: 20, escape: 27, Zga: 33, Yga: 34, end: 35, home: 36, left: 37, Hka: 38, right: 39, Y$: 40, Mda: 45, U6: 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, B: 67, H: 68, Gg: 69, Ch: 70, g: 71, fp: 72, zs: 73, ox: 74, px: 75, zx: 76, Dx: 77, fl: 78, Hx: 79, Ox: 80, Ux: 81, r: 82, MF: 83, nG: 84, fa: 85, ga: 86, D: 87, x: 88, y: 89, z: 90, oga: 96, pga: 97, qga: 98, rga: 99, sga: 100, tga: 101, uga: 102, vga: 103, wga: 104, xga: 105, "*": 106, "+": 107, "-": 109, numdel: 110, "/": 111, Haa: 112, Laa: 113, Maa: 114, Naa: 115, Oaa: 116, Paa: 117, Qaa: 118, Raa: 119, Saa: 120, Iaa: 121, Jaa: 122, Kaa: 123, Aga: 144, cia: 145, eia: 186, ",": 186, Faa: 187, "\x3d": 187, ";": 188, y$: 188, J$: 189, ".": 190, eha: 190, Waa: 191, Gda: 192, "[": 219, Iga: 219, "]": 221, v$: 221, i$: 220, quote: 222, lka: 32 }; b.a7 = 0; b.Zy = 1; b.PG = 2; b.b7 = 3; b.c7 = 4; b.fR = 5; b.o0 = 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.Zy : 2 < a.length && (73 == a[0] && 73 == a[1] || 77 == a[0] && 77 == a[1] || 255 == a[0] && 216 == a[1]) ? b.PG : b.fR }; b.Kda = function(a, c) { function d() {} d.prototype = c.prototype; a.uy = c.prototype; a.prototype = new d; a.prototype.constructor = a }; b.j$ = function(a, c, d) { var e = arguments.callee.caller; if (e.uy) return ret = e.uy.constructor.apply(a, Array.prototype.slice.call(arguments, 1)); for (var f = Array.prototype.slice.call(arguments, 2), g = !1, h = a.constructor; h; h = h.uy && h.uy.constructor) if (h.prototype[c] === e) g = !0; else if (g) return h.prototype[c].apply(a, f); if (a[c] === e) return a.constructor.prototype[c].apply(a, f); throw Error("cc.base called from a method of one name to a method of a different name"); }; b.Y7 = function(a, c) { this.x = a || 0; this.y = c || 0 }; function C(a, c) { return void 0 == a ? { x: 0, y: 0 } : void 0 == c ? { x: a.x, y: a.y } : { x: a, y: c } } b.DF = function(a, c) { return a && c && a.x === c.x && a.y === c.y }; b.e8 = function(a, c) { this.width = a || 0; this.height = c || 0 }; function N(a, c) { return void 0 === a ? { width: 0, height: 0 } : void 0 === c ? { width: a.width, height: a.height } : { width: a, height: c } } b.kka = function(a, c) { return a && c && a.width == c.width && a.height == c.height }; b.xH = function(a, c, d, e) { this.x = a || 0; this.y = c || 0; this.width = d || 0; this.height = e || 0 }; function O(a, c, d, e) { return void 0 === a ? { x: 0, y: 0, width: 0, height: 0 } : void 0 === c ? { x: a.x, y: a.y, width: a.width, height: a.height } : { x: a, y: c, width: d, height: e } } b.FO = function(a, c) { return a && c && a.x === c.x && a.y === c.y && a.width === c.width && a.height === c.height }; b.zC = function(a) { return a && 0 === a.x && 0 === a.y && 0 === a.width && 0 === a.height }; b.uha = function(a, c) { return a && c ? !(a.x >= c.x || a.y >= c.y || a.x + a.width <= c.x + c.width || a.y + a.height <= c.y + c.height) : !1 }; b.Xs = function(a) { return a.x + a.width }; b.vha = function(a) { return a.x + a.width / 2 }; b.tp = function(a) { return a.x }; b.Ys = function(a) { return a.y + a.height }; b.wha = function(a) { return a.y + a.height / 2 }; b.up = function(a) { return a.y }; b.EO = function(a, c) { return c.x >= b.tp(a) && c.x <= b.Xs(a) && c.y >= b.up(a) && c.y <= b.Ys(a) }; b.yha = function(a, c) { var d = a.y + a.height, e = c.x + c.width, f = c.y + c.height; return !(a.x + a.width < c.x || e < a.x || d < c.y || f < a.y) }; b.zha = function(a, c) { return !(a.x + a.width < c.x || c.x + c.width < a.x || a.y + a.height < c.y || c.y + c.height < a.y) }; b.Vx = function(a, c) { var d = O(0, 0, 0, 0); d.x = Math.min(a.x, c.x); d.y = Math.min(a.y, c.y); d.width = Math.max(a.x + a.width, c.x + c.width) - d.x; d.height = Math.max(a.y + a.height, c.y + c.height) - d.y; return d }; b.xha = function(a, c) { var d = O(Math.max(b.tp(a), b.tp(c)), Math.max(b.up(a), b.up(c)), 0, 0); d.width = Math.min(b.Xs(a), b.Xs(c)) - b.tp(d); d.height = Math.min(b.Ys(a), b.Ys(c)) - b.up(d); return d }; b.$t = b.oa.extend({ MK: null, NB: null, ctor: function() { window.DOMParser ? (this.NB = !0, this.MK = new DOMParser) : this.NB = !1 }, parse: function(a) { return this.fC(a) }, fC: function(a) { var c; this.NB ? c = this.MK.parseFromString(a, "text/xml") : (c = new ActiveXObject("Microsoft.XMLDOM"), c.async = "false", c.loadXML(a)); return c } }); b.xS = b.$t.extend({ parse: function(a) { a = this.fC(a).documentElement; if ("plist" != a.tagName) throw "Not a plist file!"; for (var c = null, d = 0, e = a.childNodes.length; d < e && (c = a.childNodes[d], 1 != c.nodeType); d++); return this.eC(c) }, eC: function(a) { var c = null, d = a.tagName; if ("dict" == d) c = this.pX(a); else if ("array" == d) c = this.oX(a); else if ("string" == d) if (1 == a.childNodes.length) c = a.firstChild.nodeValue; else for (c = "", d = 0; d < a.childNodes.length; d++) c += a.childNodes[d].nodeValue; else "false" == d ? c = !1 : "true" == d ? c = !0 : "real" == d ? c = parseFloat(a.firstChild.nodeValue) : "integer" == d && (c = parseInt(a.firstChild.nodeValue, 10)); return c }, oX: function(a) { for (var c = [], d = 0, e = a.childNodes.length; d < e; d++) { var f = a.childNodes[d]; 1 == f.nodeType && c.push(this.eC(f)) } return c }, pX: function(a) { for (var c = {}, d = null, e = 0, f = a.childNodes.length; e < f; e++) { var g = a.childNodes[e]; 1 == g.nodeType && ("key" == g.tagName ? d = g.firstChild.nodeValue : c[d] = this.eC(g)) } return c } }); b.GL = { load: function(a, c, d, e) { b.T.Cx(a, e) } }; b.T.Nj(["txt", "xml", "vsh", "fsh", "atlas"], b.GL); b.QW = { load: function(a, c, d, e) { b.T.kO(a, e) } }; b.T.Nj(["json", "ExportJson"], b.QW); b.yW = { load: function(a, c, d, e) { b.T.Rf[c] = b.T.Gs(a, function(a, d) { if (a) return e(a); b.Da.rb(c); e(null, d) }) } }; b.T.Nj("png jpg bmp jpeg gif ico".split(" "), b.yW); b.KX = { load: function(a, c, d, e) { b.T.Rf[c] = b.T.Gs(d.src, function(a, d) { if (a) return e(a); b.Da.rb(c); e(null, d) }) } }; b.T.Nj(["serverImg"], b.KX); b.uX = { load: function(a, c, d, e) { b.T.Cx(a, function(a, c) { if (a) return e(a); e(null, b.X2.parse(c)) }) } }; b.T.Nj(["plist"], b.uX); b.JV = { FT: { ".eot": "embedded-opentype", ".ttf": "truetype", ".woff": "woff", ".svg": "svg" }, zK: function(a, c, d) { var e = document, f = b.path, g = this.FT, h = b.Sb("style"); h.type = "text/css"; e.body.appendChild(h); var k = "@font-face { font-family:" + a + "; src:"; if (c instanceof Array) for (var m = 0, p = c.length; m < p; m++) d = f.Zk(c[m]).toLowerCase(), k += "url('" + c[m] + "') format('" + g[d] + "')", k += m == p - 1 ? ";" : ","; else k += "url('" + c + "') format('" + g[d] + "');"; h.textContent += k + "};"; c = b.Sb("div"); d = c.style; d.fontFamily = a; c.innerHTML = "."; d.position = "absolute"; d.left = "-100px"; d.top = "-100px"; e.body.appendChild(c) }, load: function(a, c, d, e) { c = d.type; a = d.name; c = d.mka; "string" == typeof d ? (c = b.path.Zk(d), a = b.path.vZ(d, c), this.zK(a, d, c)) : this.zK(a, c); e(null, !0) } }; b.T.Nj(["font", "eot", "ttf", "woff", "svg"], b.JV); b.V8 = { load: function(a, c, d, e) { b.T.v2(a, e) } }; window.CocosEngine = b.Wy = "Cocos2d-JS v3.0 RC2"; b.jn = 0; b.Ry = C(0, 0); b.JQ = 0.5; b.J6 = 1; b.Qz = 1; b.gS = 0; b.HH = 0; b.Uz = 0; b.i8 = 0; b.a8 = 1; b.Z7 = "-hd"; b.tU = 1; b.Yj = 0; b.c8 = 0; b.DR = 0; b.CR = 0; b.hz = 1; b.M6 = b.Wy + "-canvas"; b.st = 1; b.Wg = 1; b.ub = function(a) { var c = this == b ? document : this; if (a = a instanceof HTMLElement ? a : c.querySelector(a)) a.find = a.find || b.ub, a.UE = a.UE || function(a) { return this.className.match(RegExp("(\\s|^)" + a + "(\\s|$)")) }, a.UL = a.UL || function(a) { this.UE(a) || (this.className && (this.className += " "), this.className += a); return this }, a.p3 = a.p3 || function(a) { this.UE(a) && (this.className = this.className.replace(a, "")); return this }, a.remove = a.remove || function() { this.parentNode && this.parentNode.removeChild(this); return this }, a.$L = a.$L || function(a) { a.appendChild(this); return this }, a.c3 = a.c3 || function(a) { a.childNodes[0] ? a.insertBefore(this, a.childNodes[0]) : a.appendChild(this); return this }, a.mt = a.mt || function() { this.style[b.ub.B5] = b.ub.translate(this.position) + b.ub.rotate(this.rotation) + b.ub.scale(this.scale) + b.ub.zp(this.zp); return this }, a.position = a.position || { x: 0, y: 0 }, a.rotation = a.rotation || 0, a.scale = a.scale || { x: 1, y: 1 }, a.zp = a.zp || { x: 0, y: 0 }, a.PP = function(a, c) { this.position.x = a; this.position.y = c; this.mt() }, a.rotate = function(a) { this.rotation = a; this.mt(); return this }, a.resize = function(a, c) { this.scale.x = a; this.scale.y = c; this.mt(); return this }, a.Bja = function(a, c) { this.zp.x = a; this.zp.y = c; this.mt(); return this }; return a }; switch (b.hb.wm) { case b.hb.Jp: b.ub.Ts = "Moz"; b.ub.gp = !0; break; case b.hb.Fy: case b.hb.Iy: b.ub.Ts = "webkit"; b.ub.gp = !0; break; case b.hb.Hy: b.ub.Ts = "O"; b.ub.gp = !1; break; case b.hb.Gy: b.ub.Ts = "ms"; b.ub.gp = !1; break; default: b.ub.Ts = "webkit", b.ub.gp = !0 } b.ub.B5 = b.ub.Ts + "Transform"; b.ub.translate = b.ub.gp ? function(a) { return "translate3d(" + a.x + "px, " + a.y + "px, 0) " } : function(a) { return "translate(" + a.x + "px, " + a.y + "px) " }; b.ub.rotate = b.ub.gp ? function(a) { return "rotateZ(" + a + "deg) " } : function(a) { return "rotate(" + a + "deg) " }; b.ub.scale = function(a) { return "scale(" + a.x + ", " + a.y + ") " }; b.ub.zp = function(a) { return "skewX(" + -a.x + "deg) skewY(" + a.y + "deg)" }; b.cQ = function() { return b.ub(document.createElement("input")) }; b.ub.Uaa = function(a) { var c = 0, d = 0; do c += a.offsetLeft, d += a.offsetTop; while (a = a.offsetParent); return { x: c, y: d } }; b.l7 = -1; b.PI = Math.PI; b.eR = parseFloat("3.402823466e+38F"); b.Z6 = parseFloat("1.175494351e-38F"); b.yS = b.PI / 180; b.JG = 180 / b.PI; b.tI = 4294967295; b.HP = function(a, c, d) { if ("object" == typeof d && "undefined" != typeof d.x && "undefined" != typeof d.y) { var e = d[a]; d[a] = d[c]; d[c] = e } else b.log(b.e.HP) }; b.bga = function(a, c, d) { return a + (c - a) * d }; b.yb = function() { return 16777215 * Math.random() }; b.i3 = function() { return 2 * (Math.random() - 0.5) }; b.nha = Math.random; b.Sf = function(a) { return a * b.yS }; b.FF = function(a) { return a * b.JG }; b.BO = function(a) { b.log(b.e.BO); return a * b.JG }; b.qq = Number.MAX_VALUE - 1; b.dc = b.gS ? 1 : 770; b.cc = 771; b.Js = function(a) { a.Eb && (a.Eb.Oc(), a.Eb.Ye()) }; b.Eaa = function() {}; b.P$ = function() {}; b.Vf = function() { b.sf += 1 }; b.Mt = 1.192092896E-7; b.pb = b.hz ? function() { return b.I.bh } : function() { return 1 }; b.Y2 = function(a) { var c = b.pb(); return C(a.x * c, a.y * c) }; b.EF = function(a) { var c = b.pb(); return C(a.x / c, a.y / c) }; b.jC = function(a, c) { var d = b.pb(); c.x = a.x / d; c.y = a.y / d }; b.T4 = function(a) { var c = b.pb(); return N(a.width * c, a.height * c) }; b.BP = function(a) { var c = b.pb(); return N(a.width / c, a.height / c) }; b.xL = function(a, c) { var d = b.pb(); c.width = a.width / d; c.height = a.height / d }; b.kl = b.hz ? function(a) { var c = b.pb(); return O(a.x / c, a.y / c, a.width / c, a.height / c) } : function(a) { return a }; b.Zs = b.hz ? function(a) { var c = b.pb(); return O(a.x * c, a.y * c, a.width * c, a.height * c) } : 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.DST_COLOR = 775; b.ONE_MINUS_DST_COLOR = 775; b.ONE_MINUS_CONSTANT_ALPHA = 32772; b.ONE_MINUS_CONSTANT_COLOR = 32770; b.Qo = function() { if (b.$s == b.U) { var a = b.l.getError(); a && b.log(b.e.Qo, a) } }; b.Q6 = 0; b.O6 = 1; b.R6 = 2; b.P6 = 3; b.N6 = 2; b.I8 = 0; b.Qd = 1; b.ou = 2; b.tn = 4; b.El = b.Qd | b.ou | b.tn; b.e7 = 0; b.qb = 0; b.Ce = 1; b.zd = 2; b.J8 = 3; b.oA = 0; b.nA = 1; b.Aq = 2; b.sA = 3; b.rA = 4; b.mA = 5; b.pA = 6; b.qA = 7; b.F8 = 8; b.Wi = "ShaderPositionTextureColor"; b.bu = "ShaderPositionTextureColorAlphaTest"; b.au = "ShaderPositionColor"; b.tq = "ShaderPositionTexture"; b.Oz = "ShaderPositionTexture_uColor"; b.Nz = "ShaderPositionTextureA8Color"; b.Pz = "ShaderPosition_uColor"; b.BH = "ShaderPositionLengthTextureColor"; b.nU = "CC_PMatrix"; b.lU = "CC_MVMatrix"; b.mU = "CC_MVPMatrix"; b.rU = "CC_Time"; b.qU = "CC_SinTime"; b.kU = "CC_CosTime"; b.oU = "CC_Random01"; b.pU = "CC_Texture0"; b.uI = "CC_alpha_value"; b.Ip = "a_color"; b.ql = "a_position"; b.en = "a_texCoord"; b.qR = 32; b.EG = 3233828865; b.pu = 3233828866; b.NR = 8801; b.zS = 8802; b.KQ = 8803; b = b || {}; b.F = b.F || {}; b.F.wA = function() { b.color = function(a, d, e, f, g, h) { return void 0 === a ? new b.yf(0, 0, 0, 255, g, h) : "string" === typeof a ? (a = b.BN(a), new b.yf(a.r, a.g, a.b, a.a)) : "object" === typeof a ? new b.yf(a.r, a.g, a.b, a.a, a.xw, a.offset) : new b.yf(a, d, e, f, g, h) }; b.yf = function(a, d, e, f, g, h) { this.Zc = g || new ArrayBuffer(b.yf.BYTES_PER_ELEMENT); this.va = h || 0; g = this.Zc; h = this.va; var k = Uint8Array.BYTES_PER_ELEMENT; this.xC = new Uint8Array(g, h, 1); this.tB = new Uint8Array(g, h + k, 1); this.MA = new Uint8Array(g, h + 2 * k, 1); this.FA = new Uint8Array(g, h + 3 * k, 1); this.xC[0] = a || 0; this.tB[0] = d || 0; this.MA[0] = e || 0; this.FA[0] = f || 255; void 0 === f && (this.RL = !0) }; b.yf.BYTES_PER_ELEMENT = 4; var a = b.yf.prototype; a.lW = function() { return this.xC[0] }; a.$X = function(a) { this.xC[0] = 0 > a ? 0 : a }; a.$V = function() { return this.tB[0] }; a.VX = function(a) { this.tB[0] = 0 > a ? 0 : a }; a.SV = function() { return this.MA[0] }; a.MX = function(a) { this.MA[0] = 0 > a ? 0 : a }; a.OV = function() { return this.FA[0] }; a.LX = function(a) { this.FA[0] = 0 > a ? 0 : a }; b.i(a, "r", a.lW, a.$X); b.i(a, "g", a.$V, a.VX); b.i(a, "b", a.SV, a.MX); b.i(a, "a", a.OV, a.LX); b.Vb = function(a, d, e, f) { this.Zc = e || new ArrayBuffer(b.Vb.BYTES_PER_ELEMENT); this.va = f || 0; this.qm = new Float32Array(this.Zc, this.va, 1); this.rm = new Float32Array(this.Zc, this.va + 4, 1); this.qm[0] = a || 0; this.rm[0] = d || 0 }; b.Vb.BYTES_PER_ELEMENT = 8; Object.defineProperties(b.Vb.prototype, { x: { get: function() { return this.qm[0] }, set: function(a) { this.qm[0] = a }, enumerable: !0 }, y: { get: function() { return this.rm[0] }, set: function(a) { this.rm[0] = a }, enumerable: !0 } }); b.uc = function(a, d, e, f, g) { this.Zc = f || new ArrayBuffer(b.uc.BYTES_PER_ELEMENT); this.va = g || 0; f = this.Zc; g = this.va; this.qm = new Float32Array(f, g, 1); this.qm[0] = a || 0; this.rm = new Float32Array(f, g + Float32Array.BYTES_PER_ELEMENT, 1); this.rm[0] = d || 0; this.OD = new Float32Array(f, g + 2 * Float32Array.BYTES_PER_ELEMENT, 1); this.OD[0] = e || 0 }; b.uc.BYTES_PER_ELEMENT = 12; Object.defineProperties(b.uc.prototype, { x: { get: function() { return this.qm[0] }, set: function(a) { this.qm[0] = a }, enumerable: !0 }, y: { get: function() { return this.rm[0] }, set: function(a) { this.rm[0] = a }, enumerable: !0 }, z: { get: function() { return this.OD[0] }, set: function(a) { this.OD[0] = a }, enumerable: !0 } }); b.bk = function(a, d, e, f) { this.Zc = e || new ArrayBuffer(b.bk.BYTES_PER_ELEMENT); this.va = f || 0; this.vD = new Float32Array(this.Zc, this.va, 1); this.BD = new Float32Array(this.Zc, this.va + 4, 1); this.vD[0] = a || 0; this.BD[0] = d || 0 }; b.bk.BYTES_PER_ELEMENT = 8; Object.defineProperties(b.bk.prototype, { fa: { get: function() { return this.vD[0] }, set: function(a) { this.vD[0] = a }, enumerable: !0 }, ga: { get: function() { return this.BD[0] }, set: function(a) { this.BD[0] = a }, enumerable: !0 } }); b.Gz = function(a, d, e, f, g, h) { this.Zc = g || new ArrayBuffer(b.Gz.BYTES_PER_ELEMENT); this.va = h || 0; g = this.Zc; h = b.Vb.BYTES_PER_ELEMENT; this.Eo = a ? new b.Vb(a.x, a.y, g, 0) : new b.Vb(0, 0, g, 0); this.Ho = d ? new b.Vb(d.x, d.y, g, h) : new b.Vb(0, 0, g, h); this.yn = e ? new b.Vb(e.x, e.y, g, 2 * h) : new b.Vb(0, 0, g, 2 * h); this.Cn = f ? new b.Vb(f.x, f.y, g, 3 * h) : new b.Vb(0, 0, g, 3 * h) }; b.Gz.BYTES_PER_ELEMENT = 32; b.Xt = function(a, d, e, f) { this.C = a || new b.uc(0, 0, 0); this.L = d || new b.uc(0, 0, 0); this.K = e || new b.uc(0, 0, 0); this.J = f || new b.uc(0, 0, 0) }; Object.defineProperties(b.Gz.prototype, { K: { get: function() { return this.Eo }, set: function(a) { this.Eo.x = a.x; this.Eo.y = a.y }, enumerable: !0 }, J: { get: function() { return this.Ho }, set: function(a) { this.Ho.x = a.x; this.Ho.y = a.y }, enumerable: !0 }, C: { get: function() { return this.yn }, set: function(a) { this.yn.x = a.x; this.yn.y = a.y }, enumerable: !0 }, L: { get: function() { return this.Cn }, set: function(a) { this.Cn.x = a.x; this.Cn.y = a.y }, enumerable: !0 } }); b.qg = function(a, d, e, f, g) { this.Zc = f || new ArrayBuffer(b.qg.BYTES_PER_ELEMENT); this.va = g || 0; f = this.Zc; g = this.va; var h = b.uc.BYTES_PER_ELEMENT; this.Pa = a ? new b.uc(a.x, a.y, a.z, f, g) : new b.uc(0, 0, 0, f, g); this.Qq = d ? b.color(d.r, d.g, d.b, d.a, f, g + h) : b.color(0, 0, 0, 0, f, g + h); this.Pf = e ? new b.bk(e.fa, e.ga, f, g + h + b.yf.BYTES_PER_ELEMENT) : new b.bk(0, 0, f, g + h + b.yf.BYTES_PER_ELEMENT) }; b.qg.BYTES_PER_ELEMENT = 24; Object.defineProperties(b.qg.prototype, { f: { get: function() { return this.Pa }, set: function(a) { var d = this.Pa; d.x = a.x; d.y = a.y; d.z = a.z }, enumerable: !0 }, s: { get: function() { return this.Qq }, set: function(a) { var d = this.Qq; d.r = a.r; d.g = a.g; d.b = a.b; d.a = a.a }, enumerable: !0 }, m: { get: function() { return this.Pf }, set: function(a) { this.Pf.fa = a.fa; this.Pf.ga = a.ga }, enumerable: !0 } }); b.zb = function(a, d, e, f, g, h) { this.Zc = g || new ArrayBuffer(b.zb.BYTES_PER_ELEMENT); this.va = h || 0; g = this.Zc; h = this.va; var k = b.qg.BYTES_PER_ELEMENT; this.Eo = a ? new b.qg(a.f, a.s, a.m, g, h) : new b.qg(null, null, null, g, h); this.yn = d ? new b.qg(d.f, d.s, d.m, g, h + k) : new b.qg(null, null, null, g, h + k); this.Ho = e ? new b.qg(e.f, e.s, e.m, g, h + 2 * k) : new b.qg(null, null, null, g, h + 2 * k); this.Cn = f ? new b.qg(f.f, f.s, f.m, g, h + 3 * k) : new b.qg(null, null, null, g, h + 3 * k) }; b.zb.BYTES_PER_ELEMENT = 96; Object.defineProperties(b.zb.prototype, { K: { get: function() { return this.Eo }, set: function(a) { var d = this.Eo; d.f = a.f; d.s = a.s; d.m = a.m }, enumerable: !0 }, C: { get: function() { return this.yn }, set: function(a) { var d = this.yn; d.f = a.f; d.s = a.s; d.m = a.m }, enumerable: !0 }, J: { get: function() { return this.Ho }, set: function(a) { var d = this.Ho; d.f = a.f; d.s = a.s; d.m = a.m }, enumerable: !0 }, L: { get: function() { return this.Cn }, set: function(a) { var d = this.Cn; d.f = a.f; d.s = a.s; d.m = a.m }, enumerable: !0 }, xw: { get: function() { return this.Zc }, enumerable: !0 } }); b.wI = function() { return new b.zb }; b.vI = function(a) { if (!a) return b.wI(); var d = a.K, e = a.C, f = a.J; a = a.L; return { K: { f: { x: d.f.x, y: d.f.y, z: d.f.z }, s: { r: d.s.r, g: d.s.g, b: d.s.b, a: d.s.a }, m: { fa: d.m.fa, ga: d.m.ga } }, C: { f: { x: e.f.x, y: e.f.y, z: e.f.z }, s: { r: e.s.r, g: e.s.g, b: e.s.b, a: e.s.a }, m: { fa: e.m.fa, ga: e.m.ga } }, J: { f: { x: f.f.x, y: f.f.y, z: f.f.z }, s: { r: f.s.r, g: f.s.g, b: f.s.b, a: f.s.a }, m: { fa: f.m.fa, ga: f.m.ga } }, L: { f: { x: a.f.x, y: a.f.y, z: a.f.z }, s: { r: a.s.r, g: a.s.g, b: a.s.b, a: a.s.a }, m: { fa: a.m.fa, ga: a.m.ga } } } }; b.H8 = function(a) { if (!a) return []; for (var d = [], e = 0; e < a.length; e++) d.push(b.vI(a[e])); return d }; b.yd = function(a, d, e, f, g) { this.Zc = f || new ArrayBuffer(b.yd.BYTES_PER_ELEMENT); this.va = g || 0; f = this.Zc; g = this.va; var h = b.Vb.BYTES_PER_ELEMENT; this.Pa = a ? new b.Vb(a.x, a.y, f, g) : new b.Vb(0, 0, f, g); this.Qq = d ? b.color(d.r, d.g, d.b, d.a, f, g + h) : b.color(0, 0, 0, 0, f, g + h); this.Pf = e ? new b.bk(e.fa, e.ga, f, g + h + b.yf.BYTES_PER_ELEMENT) : new b.bk(0, 0, f, g + h + b.yf.BYTES_PER_ELEMENT) }; b.yd.BYTES_PER_ELEMENT = 20; Object.defineProperties(b.yd.prototype, { f: { get: function() { return this.Pa }, set: function(a) { this.Pa.x = a.x; this.Pa.y = a.y }, enumerable: !0 }, s: { get: function() { return this.Qq }, set: function(a) { var d = this.Qq; d.r = a.r; d.g = a.g; d.b = a.b; d.a = a.a }, enumerable: !0 }, m: { get: function() { return this.Pf }, set: function(a) { this.Pf.fa = a.fa; this.Pf.ga = a.ga }, enumerable: !0 } }); b.Ub = function(a, d, e, f, g) { this.Zc = f || new ArrayBuffer(b.Ub.BYTES_PER_ELEMENT); this.va = g || 0; f = this.Zc; g = this.va; var h = b.yd.BYTES_PER_ELEMENT; this.FI = a ? new b.yd(a.f, a.s, a.m, f, g) : new b.yd(null, null, null, f, g); this.NI = d ? new b.yd(d.f, d.s, d.m, f, g + h) : new b.yd(null, null, null, f, g + h); this.SI = e ? new b.yd(e.f, e.s, e.m, f, g + 2 * h) : new b.yd(null, null, null, f, g + 2 * h) }; b.Ub.BYTES_PER_ELEMENT = 60; Object.defineProperties(b.Ub.prototype, { a: { get: function() { return this.FI }, set: function(a) { var d = this.FI; d.f = a.f; d.s = a.s; d.m = a.m }, enumerable: !0 }, b: { get: function() { return this.NI }, set: function(a) { var d = this.NI; d.f = a.f; d.s = a.s; d.m = a.m }, enumerable: !0 }, B: { get: function() { return this.SI }, set: function(a) { var d = this.SI; d.f = a.f; d.s = a.s; d.m = a.m }, enumerable: !0 } }) }; b.F.zz = function() { var a = b.color; a.wW = function() { return a(255, 255, 255) }; a.xW = function() { return a(255, 255, 0) }; a.UV = function() { return a(0, 0, 255) }; a.bW = function() { return a(0, 255, 0) }; a.mW = function() { return a(255, 0, 0) }; a.gW = function() { return a(255, 0, 255) }; a.TV = function() { return a(0, 0, 0) }; a.kW = function() { return a(255, 127, 0) }; a.aW = function() { return a(166, 166, 166) }; b.i(a, "WHITE", a.wW); b.i(a, "YELLOW", a.xW); b.i(a, "BLUE", a.UV); b.i(a, "GREEN", a.bW); b.i(a, "RED", a.mW); b.i(a, "MAGENTA", a.gW); b.i(a, "BLACK", a.TV); b.i(a, "ORANGE", a.kW); b.i(a, "GRAY", a.aW); b.ec.vV = function() { return new b.ec(b.ONE, b.ZERO) }; b.ec.MU = function() { return new b.ec(b.ONE, b.ONE_MINUS_SRC_ALPHA) }; b.ec.LU = function() { return new b.ec(b.SRC_ALPHA, b.ONE_MINUS_SRC_ALPHA) }; b.ec.KU = function() { return new b.ec(b.SRC_ALPHA, b.ONE) }; b.i(b.ec, "DISABLE", b.ec.vV); b.i(b.ec, "ALPHA_PREMULTIPLIED", b.ec.MU); b.i(b.ec, "ALPHA_NON_PREMULTIPLIED", b.ec.LU); b.i(b.ec, "ADDITIVE", b.ec.KU) }; b.yf = function(a, c, d, e) { this.r = a || 0; this.g = c || 0; this.b = d || 0; this.a = e || 255 }; b.color = function(a, c, d, e) { return void 0 === a ? { r: 0, g: 0, b: 0, a: 255 } : "string" === typeof a ? b.BN(a) : "object" === typeof a ? { r: a.r, g: a.g, b: a.b, a: a.a || 255 } : { r: a, g: c, b: d, a: e || 255 } }; b.w$ = function(a, c) { return a.r === c.r && a.g === c.g && a.b === c.b }; b.dQ = function() { this.timestamp = this.z = this.y = this.x = 0 }; b.Vb = function(a, c) { this.x = a || 0; this.y = c || 0 }; b.uc = function(a, c, d) { this.x = a || 0; this.y = c || 0; this.z = d || 0 }; b.bk = function(a, c) { this.fa = a || 0; this.ga = c || 0 }; b.ec = function(a, c) { this.src = a; this.S = c }; b.l$ = function() { return new b.ec(b.ONE, b.ZERO) }; b.BN = function(a) { a = a.replace(/^#?/, "0x"); a = parseInt(a); return b.color(a >> 16, (a >> 8) % 256, a % 256) }; b.x$ = function(a) { var c = a.r.toString(16), d = a.g.toString(16), e = a.b.toString(16); return "#" + (16 > a.r ? "0" + c : c) + (16 > a.g ? "0" + d : d) + (16 > a.b ? "0" + e : e) }; b.eu = 0; b.Al = 1; b.KH = 2; b.Bq = 0; b.uU = 1; b.xI = 2; b.P8 = b.oa.extend({ no: null, Yr: null, EA: 0, ctor: function() { this.no = {}; this.Yr = {}; this.EA = 2 << (0 | 10 * Math.random()) }, EU: function() { this.EA++; return "key_" + this.EA }, fja: function(a, c) { if (null != c) { var d = this.EU(); this.no[d] = c; this.Yr[d] = a } }, F2: function(a) { if (null == a) return null; var c = this.no, d; for (d in c) if (c[d] === a) return this.Yr[d]; return null }, Oka: function(a) { return this.F2(a) }, r3: function(a) { if (null != a) { var c = this.no, d; for (d in c) if (c[d] === a) { delete this.Yr[d]; delete c[d]; break } } }, Oha: function(a) { if (null != a) for (var c = 0; c < a.length; c++) this.r3(a[c]) }, fZ: function() { var a = [], c = this.no, d; for (d in c) a.push(c[d]); return a }, Iha: function() { this.no = {}; this.Yr = {} }, count: function() { return this.fZ().length } }); b.RG = function() { this.fontName = "Arial"; this.fontSize = 12; this.textAlign = b.Al; this.verticalAlign = b.Bq; this.fillStyle = b.color(255, 255, 255, 255); this.boundingHeight = this.boundingWidth = 0; this.mG = !1; this.strokeStyle = b.color(255, 255, 255, 255); this.lineWidth = 1; this.AP = !1; this.shadowBlur = this.shadowOffsetY = this.shadowOffsetX = 0; this.shadowOpacity = 1 }; b.A === b.U && (b.assert("function" === typeof b.F.wA, b.e.jd, "CCTypesWebGL.js"), b.F.wA(), delete b.F.wA); b.assert("function" === typeof b.F.zz, b.e.jd, "CCTypesPropertyDefine.js"); b.F.zz(); delete b.F.zz; b.C8 = []; b.D8 = {}; b.Uy = b.oa.extend({ Z8: null, ie: null, On: null, Dk: null, qe: null, xi: null, FC: !1, LA: !0, Kl: 1, ID: "", CC: null, ka: 1, IK: 1, La: 1, JK: 1, eo: 0, XB: 5, oh: null, fL: null, jL: null, iL: null, gL: null, hL: null, kr: !1, W8: !1, H9: null, dK: null, eK: null, D9: !1, bB: null, xk: null, sB: 1, uu: !1, nK: !0, ctor: function() { var a = document, c = b.Vj, d = b.lg; this.xk = b.ym.parentNode === a.body ? a.documentElement : b.ym.parentNode; this.ie = N(0, 0); this.HB(); var a = b.Va.width, e = b.Va.height; this.On = N(a, e); this.Dk = N(a, e); this.qe = O(0, 0, a, e); this.xi = O(0, 0, a, e); this.bB = { left: 0, top: 0 }; this.ID = "Cocos2dHTML5"; a = b.hb; this.o_(a.yF == a.eH || a.yF == a.fH); b.Sj && b.Sj.da(this.xi); this.fL = new b.ze(c.tt, d.Xy); this.jL = new b.ze(c.vS, d.SHOW_ALL); this.iL = new b.ze(c.tt, d.pz); this.gL = new b.ze(c.tt, d.Yy); this.hL = new b.ze(c.tt, d.Lt); this.dK = b.Va; this.eK = b.l }, DC: function() { var a = this.Dk.width, c = this.Dk.height; this.CC && (this.HB(), this.CC.call()); 0 < a && this.fy(a, c, this.oh) }, x3: function(a) { a ? this.uu || (this.uu = !0, a = this.DC.bind(this), b.Ga(window, "resize", a, !1)) : this.uu && (this.uu = !0, a = this.DC.bind(this), window.removeEventListener("resize", a, !1)) }, wja: function(a) { if ("function" == typeof a || null == a) this.CC = a }, HB: function() { var a = this.ie; a.width = this.xk.clientWidth; a.height = this.xk.clientHeight }, Q8: function() { var a = this.Dk.width, c = this.Dk.height; 0 < a && this.fy(a, c, this.oh) }, sY: function() { if (this.nK) { var a = { "user-scalable": "no", "maximum-scale": "1.0", "initial-scale": "1.0" }, c = document.getElementsByName("viewport"), d; 0 == c.length ? (c = b.Sb("meta"), c.name = "viewport", c.content = "", document.head.appendChild(c)) : c = c[0]; if (b.hb.Jh && b.hb.wm == b.hb.Jp) c.content = "initial-scale:1"; else { d = c.content; for (var e in a) RegExp(e).test(d) || (d += ("" == d ? "" : ",") + e + "\x3d" + a[e]); c.content = d } } }, Xv: function() { var a = b.pb(); this.La = this.ka = a }, Pv: function() { this.ka = this.IK; this.La = this.JK }, R8: function() {}, z1: function() { this.kr = !0 }, aZ: function(a) { this.nK = a }, o_: function(a) { this.FC = a ? !0 : !1 }, dea: function() { return this.FC }, Daa: function(a) { this.LA = a ? !0 : !1 }, Qda: function() { return this.LA }, end: function() {}, aea: function() { return null != this.dK && null != this.eK }, Mia: function(a) { this.sB = a; b.I.Xm(b.I.pi) }, vka: function() {}, Ria: function() {}, xia: function(a, c) { this.bB = { left: a, top: c } }, rba: function() { return this.bB }, Rba: function() { return N(this.ie.width, this.ie.height) }, Lia: function(a, c) { this.ie.width = a; this.ie.height = c; this.xk.style.width = a + "px"; this.xk.style.height = c + "px"; this.DC(); b.I.Xm(b.I.pi) }, r$: function() {}, vs: function() { return N(this.xi.width, this.xi.height) }, PE: function() { return C(this.xi.x, this.xi.y) }, o$: function() { return !0 }, Mca: function() { return this.oh }, s4: function(a) { if (a instanceof b.ze) this.oh = a; else { var c = b.ze; a === c.Xy && (this.oh = this.fL); a === c.SHOW_ALL && (this.oh = this.jL); a === c.pz && (this.oh = this.iL); a === c.Yy && (this.oh = this.gL); a === c.Lt && (this.oh = this.hL) } }, fy: function(a, c, d) { if (isNaN(a) || 0 == a || isNaN(c) || 0 == c) b.log(b.e.UQ); else { this.s4(d); var e = this.oh; if (e) { e.Rm(this); var f = this.ie.width, g = this.ie.height; b.hb.Jh && this.sY(this.ie.width, this.ie.height); this.HB(); if (d != this.oh || a != this.Dk.width || c != this.Dk.height || f != this.ie.width || g != this.ie.height) this.On = N(a, c), this.Dk = N(a, c), a = e.apply(this, this.On), a.scale && 2 == a.scale.length && (this.ka = a.scale[0], this.La = a.scale[1]), a.viewport && (a = this.qe = a.viewport, c = this.xi, c.width = b.Va.width / this.ka, c.height = b.Va.height / this.La, c.x = -a.x / this.ka, c.y = -a.y / this.La), a = b.I, b.Tj.width = a.mc.width = this.xi.width, b.Tj.height = a.mc.height = this.xi.height, e.Qm(this), b.A == b.U && (a.Ln(), a.fP()), this.IK = this.ka, this.JK = this.La, b.LQ && b.LQ.v9(), b.Sj && b.Sj.da(this.xi) } else b.log(b.e.VQ) } }, BE: function() { return N(this.On.width, this.On.height) }, M4: function(a, c, d, e) { var f = this.sB, g = this.ka, h = this.La; b.l.viewport(a * g * f + this.qe.x * f, c * h * f + this.qe.y * f, d * g * f, e * h * f) }, yja: function(a, c, d, e) { var f = this.sB, g = this.ka, h = this.La; b.l.scissor(a * g * f + this.qe.x * f, c * h * f + this.qe.y * f, d * g * f, e * h * f) }, fea: function() { var a = b.l; return a.isEnabled(a.SCISSOR_TEST) }, Rca: function() { var a = b.l, c = this.ka, d = this.La, a = a.getParameter(a.SCISSOR_BOX); return O((a[0] - this.qe.x) / c, (a[1] - this.qe.y) / d, a[2] / c, a[3] / d) }, hka: function(a) { null != a && 0 < a.length && (this.ID = a) }, yda: function() { return this.ID }, zda: function() { return this.qe }, kN: function() { return this.ka }, lN: function() { return this.La }, zba: function() { return this.Kl }, hE: function(a, c, d) { return { x: this.Kl * (a - d.left), y: this.Kl * (d.top + d.height - c) } }, pV: function(a, c) { var d = this.qe; a.x = (this.Kl * (a.x - c.left) - d.x) / this.ka; a.y = (this.Kl * (c.top + c.height - a.y) - d.y) / this.La }, Mu: function(a) { for (var c = this.qe, d = this.ka, e = this.La, f, g, h, k = 0; k < a.length; k++) f = a[k], g = f.Cd, h = f.oi, f.VC((g.x - c.x) / d, (g.y - c.y) / e), f.uo((h.x - c.x) / d, (h.y - c.y) / e) } }); b.Uy.yB = function() { this.mv || (this.mv = this.mv || new b.Uy, this.mv.z1()); return this.mv }; b.Vj = b.oa.extend({ Rm: function() {}, apply: function() {}, Qm: function() {}, ZC: function(a, c, d) { var e = a.xk; b.view.LA && b.hb.Jh && e == document.documentElement && b.screen.uZ(e); var e = b.Va, f = b.ym; f.style.width = e.style.width = c + "px"; f.style.height = e.style.height = d + "px"; f = a.Kl = 1; a.FC && (f = a.Kl = window.devicePixelRatio || 1); e.width = c * f; e.height = d * f; a = document.body; var g; a && (g = a.style) && (g.paddingTop = g.paddingTop || "0px", g.paddingRight = g.paddingRight || "0px", g.paddingBottom = g.paddingBottom || "0px", g.paddingLeft = g.paddingLeft || "0px", g.borderTop = g.borderTop || "0px", g.borderRight = g.borderRight || "0px", g.borderBottom = g.borderBottom || "0px", g.borderLeft = g.borderLeft || "0px", g.marginTop = g.marginTop || "0px", g.marginRight = g.marginRight || "0px", g.marginBottom = g.marginBottom || "0px", g.marginLeft = g.marginLeft || "0px") }, RJ: function() { document.body.insertBefore(b.ym, document.body.firstChild); var a = document.body.style; a.width = window.innerWidth + "px"; a.height = window.innerHeight + "px"; a.overflow = "hidden"; a = b.ym.style; a.position = "fixed"; a.left = a.top = "0px"; document.body.scrollTop = 0 } }); b.lg = b.oa.extend({ EC: { scale: [1, 1], viewport: null }, Lq: function(a, c, d, e, f, g) { 2 > Math.abs(a - d) && (d = a); 2 > Math.abs(c - e) && (e = c); a = O(Math.round((a - d) / 2), Math.round((c - e) / 2), d, e); b.A == b.Ba && b.l.translate(a.x, a.y + e); this.EC.scale = [f, g]; this.EC.viewport = a; return this.EC }, Rm: function() {}, apply: function() { return { scale: [1, 1] } }, Qm: function() {} }); (function() { var a = b.Vj.extend({ apply: function(a) { this.ZC(a, a.ie.width, a.ie.height) } }), c = b.Vj.extend({ apply: function(a, c) { var d = a.ie.width, e = a.ie.height, f = b.ym.style, r = c.width, s = c.height, u = d / r, t = e / s, v, w; u < t ? (v = d, w = s * u) : (v = r * t, w = e); r = Math.round((d - v) / 2); w = Math.round((e - w) / 2); this.ZC(a, d - 2 * r, e - 2 * w); f.marginLeft = r + "px"; f.marginRight = r + "px"; f.marginTop = w + "px"; f.marginBottom = w + "px" } }); a.extend({ Rm: function(a) { this._super(a); a.xk = document.documentElement }, apply: function(a) { this._super(a); this.RJ() } }); c.extend({ Rm: function(a) { this._super(a); a.xk = document.documentElement }, apply: function(a, c) { this._super(a, c); this.RJ() } }); var d = b.Vj.extend({ apply: function(a) { this.ZC(a, b.Va.width, b.Va.height) } }); b.Vj.tt = new a; b.Vj.vS = new c; b.Vj.U7 = new d; var a = b.lg.extend({ apply: function(a, c) { var d = b.Va.width, e = b.Va.height; return this.Lq(d, e, d, e, d / c.width, e / c.height) } }), c = b.lg.extend({ apply: function(a, c) { var d = b.Va.width, e = b.Va.height, f = c.width, r = c.height, s = d / f, u = e / r, t = 0, v, w; s < u ? (t = s, v = d, w = r * t) : (t = u, v = f * t, w = e); return this.Lq(d, e, v, w, t, t) } }), d = b.lg.extend({ apply: function(a, c) { var d = b.Va.width, e = b.Va.height, f = c.width, r = c.height, s = d / f, u = e / r, t, v, w; s < u ? (t = u, v = f * t, w = e) : (t = s, v = d, w = r * t); return this.Lq(d, e, v, w, t, t) } }), e = b.lg.extend({ apply: function(a, c) { var d = b.Va.width, e = b.Va.height, f = e / c.height; return this.Lq(d, e, d, e, f, f) }, Qm: function(a) { b.I.mc = a.vs() } }), f = b.lg.extend({ apply: function(a, c) { var d = b.Va.width, e = b.Va.height, f = d / c.width; return this.Lq(d, e, d, e, f, f) }, Qm: function(a) { b.I.mc = a.vs() } }); b.lg.Xy = new a; b.lg.SHOW_ALL = new c; b.lg.pz = new d; b.lg.Yy = new e; b.lg.Lt = new f })(); b.ze = b.oa.extend({ Ku: null, Lu: null, ctor: function(a, c) { this.R3(a); this.S3(c) }, Rm: function(a) { this.Ku.Rm(a); this.Lu.Rm(a) }, apply: function(a, c) { this.Ku.apply(a, c); return this.Lu.apply(a, c) }, Qm: function(a) { this.Ku.Qm(a); this.Lu.Qm(a) }, R3: function(a) { a instanceof b.Vj && (this.Ku = a) }, S3: function(a) { a instanceof b.lg && (this.Lu = a) } }); b.ze.Xy = 0; b.ze.pz = 1; b.ze.SHOW_ALL = 2; b.ze.Yy = 3; b.ze.Lt = 4; b.ze.sU = 5; b.screen = { kw: !1, pC: null, sD: "", wk: null, HV: [ ["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" ] ], da: function() { this.wk = {}; var a, c, d = this.HV, e; a = 0; for (l = d.length; a < l; a++) if ((c = d[a]) && c[1] in document) { a = 0; for (e = c.length; a < e; a++) this.wk[d[0][a]] = c[a]; break } this.kw = void 0 != this.wk.requestFullscreen; this.sD = "ontouchstart" in window ? "touchstart" : "mousedown" }, fullScreen: function() { return this.kw && document[this.wk.fullscreenEnabled] }, NO: function(a, c) { if (this.kw) { a = a || document.documentElement; a[this.wk.requestFullscreen](); if (c) { var d = this.wk.Xaa; this.pC && document.removeEventListener(d, this.pC); this.pC = c; b.Ga(document, d, c, !1) } return a[this.wk.requestFullscreen]() } }, Gaa: function() { return this.kw ? document[this.wk.exitFullscreen]() : !0 }, uZ: function(a, c) { function d() { f.NO(a, c); e.removeEventListener(f.sD, d) } a = a || document.body; var e = b.Va || a, f = this; this.NO(a, c); b.Ga(e, this.sD, d) } }; b.screen.da(); b.Sj = { MP: C(0, 0), NP: C(0, 0), top: C(0, 0), Aw: C(0, 0), hM: C(0, 0), bottom: C(0, 0), ks: C(0, 0), left: C(0, 0), right: C(0, 0), width: 0, height: 0, da: function(a) { var c = this.width = a.width, d = this.height = a.height, e = a.x; a = a.y; var f = a + d, g = e + c; this.MP.x = e; this.MP.y = f; this.NP.x = g; this.NP.y = f; this.top.x = e + c / 2; this.top.y = f; this.Aw.x = e; this.Aw.y = a; this.hM.x = g; this.hM.y = a; this.bottom.x = e + c / 2; this.bottom.y = a; this.ks.x = e + c / 2; this.ks.y = a + d / 2; this.left.x = e; this.left.y = a + d / 2; this.right.x = g; this.right.y = a + d / 2 } }; b.hU = -90; b.iU = 90; b.jU = 180; b.E8 = 0; b.PN = { po: !1, rK: !1, PK: C(0, 0), zX: C(0, 0), QK: [], qC: 0, Uk: [], tD: {}, eo: 0, XB: 5, wu: !1, xu: 1 / 30, HI: 1, Fl: 0, GA: null, vu: null, uW: function() { for (var a = this.eo, c = 0; c < this.XB; c++) { if (!(a & 1)) return this.eo |= 1 << c, c; a >>= 1 } return -1 }, GX: function(a) { 0 > a || a >= this.XB || (a = ~(1 << a), this.eo &= a) }, zk: null, SE: function(a) { for (var c, d, e, f = [], g = this.tD, h = 0, k = a.length; h < k; h++) c = a[h], e = c.hh, d = g[e], null == d && (d = this.uW(), -1 == d ? b.log(b.e.A1, d) : (c = this.Uk[d] = c, g[e] = d, f.push(c))); 0 < f.length && (this.zk.Mu(f), a = new b.mg(f), a.sk = b.mg.hn.Ey, b.ra.dispatchEvent(a)) }, TE: function(a) { for (var c, d, e = [], f = this.Uk, g = 0, h = a.length; g < h; g++) c = a[g], d = c.hh, d = this.tD[d], null != d && f[d] && (f[d].VC(c.Cd), f[d].uo(c.oi), e.push(f[d])); 0 < e.length && (this.zk.Mu(e), a = new b.mg(e), a.sk = b.mg.hn.lz, b.ra.dispatchEvent(a)) }, $w: function(a) { a = this.mN(a); 0 < a.length && (this.zk.Mu(a), a = new b.mg(a), a.sk = b.mg.hn.Vy, b.ra.dispatchEvent(a)) }, zN: function(a) { a = this.mN(a); 0 < a.length && (this.zk.Mu(a), a = new b.mg(a), a.sk = b.mg.hn.Ly, b.ra.dispatchEvent(a)) }, mN: function(a) { for (var c, d, e, f = [], g = this.Uk, h = this.tD, k = 0, m = a.length; k < m; k++) c = a[k], e = c.hh, d = h[e], null != d && g[d] && (g[d].VC(c.Cd), g[d].uo(c.oi), f.push(g[d]), this.GX(d), delete h[e]); return f }, Fh: function(a) { var c = document.documentElement, d = window, e = null, e = "function" === typeof a.getBoundingClientRect ? a.getBoundingClientRect() : a instanceof HTMLCanvasElement ? { left: 0, top: 0, width: a.width, height: a.height } : { left: 0, top: 0, width: parseInt(a.style.width), height: parseInt(a.style.height) }; return { left: e.left + d.pageXOffset - c.clientLeft, top: e.top + d.pageYOffset - c.clientTop, width: e.width, height: e.height } }, I0: function(a) { for (var c = null, d = this.QK, e = a.hh, f = d.length - 1; 0 <= f; f--) if (d[f].hh == e) { c = d[f]; break } c || (c = a); return c }, r4: function(a) { for (var c = !1, d = this.QK, e = a.hh, f = d.length - 1; 0 <= f; f--) if (d[f].hh == e) { d[f] = a; c = !0; break } c || (50 >= d.length ? d.push(a) : (d[this.qC] = a, this.qC = (this.qC + 1) % 50)) }, us: function(a, c, d) { var e = this.PK; a = this.zk.hE(a, c, d); c = new b.jA(a.x, a.y); c.uo(e.x, e.y); e.x = a.x; e.y = a.y; return c }, bp: function(a, c, d) { var e = this.zX; this.zk.pV(a, c); c = new b.Pc(d); c.f4(a.x, a.y); c.ZX(e.x, e.y); e.x = a.x; e.y = a.y; return c }, dp: function(a, c) { if (null != a.pageX) return { x: a.pageX, y: a.pageY }; c.left -= document.body.scrollLeft; c.top -= document.body.scrollTop; return { x: a.clientX, y: a.clientY } }, Xw: function(a, c) { for (var d = [], e = this.zk, f, g, h = this.PK, k = a.changedTouches.length, m = 0; m < k; m++) if (f = a.changedTouches[m]) { var p; p = b.hb.Jp === b.hb.wm ? e.hE(f.pageX, f.pageY, c) : e.hE(f.clientX, f.clientY, c); null != f.identifier ? (f = new b.jA(p.x, p.y, f.identifier), g = this.I0(f).ts(), f.uo(g.x, g.y), this.r4(f)) : (f = new b.jA(p.x, p.y), f.uo(h.x, h.y)); h.x = p.x; h.y = p.y; d.push(f) } return d }, l3: function(a) { if (!this.rK) { var c = this.zk = b.view, d = this, e = "touches" in b.hb.aE; "mouse" in b.hb.aE && (b.Ga(window, "mousedown", function() { d.po = !0 }, !1), b.Ga(window, "mouseup", function(c) { var f = d.po; d.po = !1; if (f) { var f = d.Fh(a), g = d.dp(c, f); b.EO(new b.xH(f.left, f.top, f.width, f.height), g) || (e || d.$w([d.us(g.x, g.y, f)]), f = d.bp(g, f, b.Pc.tA), f.Wm(c.button), b.ra.dispatchEvent(f)) } }, !1), b.Ga(a, "mousedown", function(c) { d.po = !0; var f = d.Fh(a), g = d.dp(c, f); e || d.SE([d.us(g.x, g.y, f)]); f = d.bp(g, f, b.Pc.KG); f.Wm(c.button); b.ra.dispatchEvent(f); c.stopPropagation(); c.preventDefault(); a.focus() }, !1), b.Ga(a, "mouseup", function(c) { d.po = !1; var f = d.Fh(a), g = d.dp(c, f); e || d.$w([d.us(g.x, g.y, f)]); f = d.bp(g, f, b.Pc.tA); f.Wm(c.button); b.ra.dispatchEvent(f); c.stopPropagation(); c.preventDefault() }, !1), b.Ga(a, "mousemove", function(c) { var f = d.Fh(a), g = d.dp(c, f); e || d.TE([d.us(g.x, g.y, f)]); f = d.bp(g, f, b.Pc.$G); d.po ? f.Wm(c.button) : f.Wm(null); b.ra.dispatchEvent(f); c.stopPropagation(); c.preventDefault() }, !1), b.Ga(a, "mousewheel", function(c) { var e = d.Fh(a), f = d.dp(c, e), e = d.bp(f, e, b.Pc.Mz); e.Wm(c.button); e.uP(0, c.wheelDelta); b.ra.dispatchEvent(e); c.stopPropagation(); c.preventDefault() }, !1), b.Ga(a, "DOMMouseScroll", function(c) { var e = d.Fh(a), f = d.dp(c, e), e = d.bp(f, e, b.Pc.Mz); e.Wm(c.button); e.uP(0, -120 * c.detail); b.ra.dispatchEvent(e); c.stopPropagation(); c.preventDefault() }, !1)); if (window.navigator.msPointerEnabled) { var f = { MSPointerDown: d.SE, MSPointerMove: d.TE, MSPointerUp: d.$w, MSPointerCancel: d.zN }, g; for (g in f)(function(c, e) { b.Ga(a, c, function(c) { var f = d.Fh(a); f.left -= document.documentElement.scrollLeft; f.top -= document.documentElement.scrollTop; e.call(d, [d.us(c.clientX, c.clientY, f)]); c.stopPropagation() }, !1) })(g, f[g]) } e && (b.Ga(a, "touchstart", function(c) { if (c.changedTouches) { var e = d.Fh(a); e.left -= document.body.scrollLeft; e.top -= document.body.scrollTop; d.SE(d.Xw(c, e)); c.stopPropagation(); c.preventDefault(); a.focus() } }, !1), b.Ga(a, "touchmove", function(c) { if (c.changedTouches) { var e = d.Fh(a); e.left -= document.body.scrollLeft; e.top -= document.body.scrollTop; d.TE(d.Xw(c, e)); c.stopPropagation(); c.preventDefault() } }, !1), b.Ga(a, "touchend", function(c) { if (c.changedTouches) { var e = d.Fh(a); e.left -= document.body.scrollLeft; e.top -= document.body.scrollTop; d.$w(d.Xw(c, e)); c.stopPropagation(); c.preventDefault() } }, !1), b.Ga(a, "touchcancel", function(e) { if (e.changedTouches) { var f = d.Fh(a); f.left -= document.body.scrollLeft; f.top -= document.body.scrollTop; c.zN(d.Xw(e, f)); e.stopPropagation(); e.preventDefault() } }, !1)); this.$K(); this.ZK(); this.rK = !0 } }, $K: function() {}, ZK: function() {}, update: function(a) { this.Fl > this.xu && (this.Fl -= this.xu, b.ra.dispatchEvent(new b.$Q(this.GA))); this.Fl += a } }; var n = b.PN; n.fia = function(a) { this.wu !== a && (this.wu = a, a = b.I.$k(), this.wu ? (this.Fl = 0, a.OF(this)) : (this.Fl = 0, a.ot(this))) }; n.gia = function(a) { this.xu !== a && (this.xu = a) }; n.$K = function() { b.Ga(b.Va, "keydown", function(a) { b.ra.dispatchEvent(new b.OG(a.keyCode, !0)); a.stopPropagation(); a.preventDefault() }, !1); b.Ga(b.Va, "keyup", function(a) { b.ra.dispatchEvent(new b.OG(a.keyCode, !1)); a.stopPropagation(); a.preventDefault() }, !1) }; n.ZK = function() { var a = window; this.GA = new b.dQ; this.vu = a.DeviceMotionEvent || a.DeviceOrientationEvent; b.hb.wm == b.hb.DG && (this.vu = window.DeviceOrientationEvent); b.Ga(a, this.vu == a.DeviceMotionEvent ? "devicemotion" : "deviceorientation", this.SZ.bind(this), !1) }; n.SZ = function(a) { var c = window; if (this.wu) { var d = this.GA; if (this.vu == window.DeviceMotionEvent) { var e = a.accelerationIncludingGravity; d.x = this.HI * e.x * 0.1; d.y = this.HI * e.y * 0.1; d.z = 0.1 * e.z } else d.x = a.gamma / 90 * 0.981, d.y = 0.981 * -(a.beta / 90), d.z = a.alpha / 90 * 0.981; d.timestamp = a.timeStamp || Date.now(); a = d.x; c.orientation === b.iU ? (d.x = -d.y, d.y = a) : c.orientation === b.hU ? (d.x = d.y, d.y = -a) : c.orientation === b.jU && (d.x = -d.x, d.y = -d.y) } }; delete n; b.p6 = function(a, c, d, e, f, g) { this.a = a; this.b = c; this.B = d; this.H = e; this.Ia = f; this.Ja = g }; b.V9 = function(a, c, d, e, f, g) { return { a: a, b: c, B: d, H: e, Ia: f, Ja: g } }; b.zO = function(a, c) { return { x: c.a * a.x + c.B * a.y + c.Ia, y: c.b * a.x + c.H * a.y + c.Ja } }; b.Gk = function(a, c, d) { return { x: d.a * a + d.B * c + d.Ia, y: d.b * a + d.H * c + d.Ja } }; b.jka = function(a, c) { return { width: c.a * a.width + c.B * a.height, height: c.b * a.width + c.H * a.height } }; b.W9 = function() { return { a: 1, b: 0, B: 0, H: 1, Ia: 0, Ja: 0 } }; b.U9 = function() { return { a: 1, b: 0, B: 0, H: 1, Ia: 0, Ja: 0 } }; b.GF = function(a, c) { var d = b.up(a), e = b.tp(a), f = b.Xs(a), g = b.Ys(a), h = b.Gk(e, d, c), d = b.Gk(f, d, c), e = b.Gk(e, g, c), k = b.Gk(f, g, c), f = Math.min(h.x, d.x, e.x, k.x), g = Math.max(h.x, d.x, e.x, k.x), m = Math.min(h.y, d.y, e.y, k.y), h = Math.max(h.y, d.y, e.y, k.y); return O(f, m, g - f, h - m) }; b.AX = function(a, c) { var d = b.up(a), e = b.tp(a), f = b.Xs(a), g = b.Ys(a), h = b.Gk(e, d, c), d = b.Gk(f, d, c), e = b.Gk(e, g, c), k = b.Gk(f, g, c), f = Math.min(h.x, d.x, e.x, k.x), g = Math.max(h.x, d.x, e.x, k.x), m = Math.min(h.y, d.y, e.y, k.y), h = Math.max(h.y, d.y, e.y, k.y); a.x = f; a.y = m; a.width = g - f; a.height = h - m; return a }; b.bZ = function(a, c, d) { return { a: a.a, b: a.b, B: a.B, H: a.H, Ia: a.Ia + a.a * c + a.B * d, Ja: a.Ja + a.b * c + a.H * d } }; b.Y9 = function(a, c, d) { return { a: a.a * c, b: a.b * c, B: a.B * d, H: a.H * d, Ia: a.Ia, Ja: a.Ja } }; b.X9 = function(a, c) { var d = Math.sin(c), e = Math.cos(c); return { a: a.a * e + a.B * d, b: a.b * e + a.H * d, B: a.B * e - a.a * d, H: a.H * e - a.b * d, Ia: a.Ia, Ja: a.Ja } }; b.tm = function(a, c) { return { a: a.a * c.a + a.b * c.B, b: a.a * c.b + a.b * c.H, B: a.B * c.a + a.H * c.B, H: a.B * c.b + a.H * c.H, Ia: a.Ia * c.a + a.Ja * c.B + c.Ia, Ja: a.Ia * c.b + a.Ja * c.H + c.Ja } }; b.T9 = function(a, c) { return a.a === c.a && a.b === c.b && a.B === c.B && a.H === c.H && a.Ia === c.Ia && a.Ja === c.Ja }; b.XL = function(a) { var c = 1 / (a.a * a.H - a.b * a.B); return { a: c * a.H, b: -c * a.b, B: -c * a.B, H: c * a.a, Ia: c * (a.B * a.Ja - a.H * a.Ia), Ja: c * (a.b * a.Ia - a.a * a.Ja) } }; b.jH = parseFloat("1.192092896e-07F"); b.AF = function(a) { return C(-a.x, -a.y) }; b.Hi = function(a, c) { return C(a.x + c.x, a.y + c.y) }; b.Jd = function(a, c) { return C(a.x - c.x, a.y - c.y) }; b.Ii = function(a, c) { return C(a.x * c, a.y * c) }; b.vO = function(a, c) { return b.Ii(b.Hi(a, c), 0.5) }; b.qp = function(a, c) { return a.x * c.x + a.y * c.y }; b.I2 = function(a, c) { return a.x * c.y - a.y * c.x }; b.Qx = function(a) { return C(-a.y, a.x) }; b.Tga = function(a) { return C(a.y, -a.x) }; b.Sga = function(a, c) { return b.Ii(c, b.qp(a, c) / b.qp(c, c)) }; b.Uga = function(a, c) { return C(a.x * c.x - a.y * c.y, a.x * c.y + a.y * c.x) }; b.Xga = function(a, c) { return C(a.x * c.x + a.y * c.y, a.y * c.x - a.x * c.y) }; b.tO = function(a) { return b.qp(a, a) }; b.sO = function(a, c) { return b.tO(b.Jd(a, c)) }; b.il = function(a) { return Math.sqrt(b.tO(a)) }; b.Nga = function(a, c) { return b.il(b.Jd(a, c)) }; b.Kg = function(a) { return b.Ii(a, 1 / b.il(a)) }; b.Oga = function(a) { return C(Math.cos(a), Math.sin(a)) }; b.L2 = function(a) { return Math.atan2(a.y, a.x) }; b.Vc = function(a, c, d) { if (c > d) { var e = c; c = d; d = e } return a < c ? c : a < d ? a : d }; b.rO = function(a) { var c = C(0, 0), d = C(1, 1); return C(b.Vc(a.x, c.x, d.x), b.Vc(a.y, c.y, d.y)) }; b.Pga = function(a) { return C(a.width, a.height) }; b.Mga = function(a, c) { return C(c(a.x), c(a.y)) }; b.uO = function(a, c, d) { return b.Hi(b.Ii(a, 1 - d), b.Ii(c, d)) }; b.Qga = function(a, c, d) { return a.x - d <= c.x && c.x <= a.x + d && a.y - d <= c.y && c.y <= a.y + d ? !0 : !1 }; b.Lga = function(a, c) { return C(a.x * c.x, a.y * c.y) }; b.Kga = function(a, c) { var d = b.Kg(a), e = b.Kg(c), d = Math.atan2(d.x * e.y - d.y * e.x, b.qp(d, e)); return Math.abs(d) < b.jH ? 0 : d }; b.Jga = function(a, c) { var d = Math.acos(b.qp(b.Kg(a), b.Kg(c))); return Math.abs(d) < b.jH ? 0 : d }; b.K2 = function(a, c, d) { a = b.Jd(a, c); var e = Math.cos(d); d = Math.sin(d); var f = a.x; a.x = f * e - a.y * d + c.x; a.y = f * d + a.y * e + c.y; return a }; b.zF = function(a, c, d, e, f) { if (a.x == c.x && a.y == c.y || d.x == e.x && d.y == e.y) return !1; var g = c.x - a.x; c = c.y - a.y; var h = e.x - d.x; e = e.y - d.y; var k = a.x - d.x; a = a.y - d.y; d = e * g - h * c; f.x = h * a - e * k; f.y = g * a - c * k; if (0 == d) return 0 == f.x || 0 == f.y ? !0 : !1; f.x /= d; f.y /= d; return !0 }; b.Wga = function(a, c, d, e) { var f = C(0, 0); return b.zF(a, c, d, e, f) && 0 <= f.x && 1 >= f.x && 0 <= f.y && 1 >= f.y ? !0 : !1 }; b.Rga = function(a, c, d, e) { var f = C(0, 0); return b.zF(a, c, d, e, f) ? (d = C(0, 0), d.x = a.x + f.x * (c.x - a.x), d.y = a.y + f.x * (c.y - a.y), d) : C(0, 0) }; b.Vga = function(a, c) { return null != a && null != c ? a.x == c.x && a.y == c.y : !1 }; b.Rx = function(a) { a.x = 0; a.y = 0 }; b.Lj = function(a, c) { a.x = c.x; a.y = c.y }; b.rp = function(a, c) { a.x *= c; a.y *= c }; b.wO = function(a, c) { a.x -= c.x; a.y -= c.y }; b.Px = function(a, c) { a.x += c.x; a.y += c.y }; b.J2 = function(a) { b.rp(a, 1 / Math.sqrt(a.x * a.x + a.y * a.y)) }; b.tG = function(a, c, d, e, f) { f += e; if (!(1 >= f)) { c *= 0.5; for (var g, h = f - 1, k = e; k < f; k++) { g = 2 * k; var m = C(a[2 * k], a[2 * k + 1]), p; if (0 === k) p = b.Qx(b.Kg(b.Jd(m, C(a[2 * (k + 1)], a[2 * (k + 1) + 1])))); else if (k === h) p = b.Qx(b.Kg(b.Jd(C(a[2 * (k - 1)], a[2 * (k - 1) + 1]), m))); else { p = C(a[2 * (k - 1)], a[2 * (k - 1) + 1]); var r = C(a[2 * (k + 1)], a[2 * (k + 1) + 1]), s = b.Kg(b.Jd(r, m)), u = b.Kg(b.Jd(p, m)), t = Math.acos(b.qp(s, u)); p = t < b.Sf(70) ? b.Qx(b.Kg(b.vO(s, u))) : t < b.Sf(170) ? b.Kg(b.vO(s, u)) : b.Qx(b.Kg(b.Jd(r, p))) } p = b.Ii(p, c); d[2 * g] = m.x + p.x; d[2 * g + 1] = m.y + p.y; d[2 * (g + 1)] = m.x - p.x; d[2 * (g + 1) + 1] = m.y - p.y } for (k = 0 == e ? 0 : e - 1; k < h; k++) g = 2 * k, a = g + 2, c = new b.Vb(d[2 * g], d[2 * g + 1]), f = new b.Vb(d[2 * (g + 1)], d[2 * (g + 1) + 1]), g = new b.Vb(d[2 * a], d[2 * a]), e = new b.Vb(d[2 * (a + 1)], d[2 * (a + 1) + 1]), c = !b.O5(c.x, c.y, e.x, e.y, f.x, f.y, g.x, g.y), !c.Cs && (0 > c.value || 1 < c.value) && (c.Cs = !0), c.Cs && (d[2 * a] = e.x, d[2 * a + 1] = e.y, d[2 * (a + 1)] = g.x, d[2 * (a + 1) + 1] = g.y) } }; b.O5 = function(a, c, d, e, f, g, h, k) { if (a == d && c == e || f == h && g == k) return { Cs: !1, value: 0 }; d -= a; e -= c; f -= a; g -= c; h -= a; k -= c; a = Math.sqrt(d * d + e * e); d /= a; e /= a; c = f * d + g * e; g = g * d - f * e; f = c; c = h * d + k * e; k = k * d - h * e; h = c; return g == k ? { Cs: !1, value: 0 } : { Cs: !0, value: (h + (f - h) * k / (k - g)) / a } }; b.Pka = function(a) { for (var c = 0, d = a.length; c < d; c++) { var e = a[(c + 1) % d]; if (0 < b.I2(b.Jd(e, a[c]), b.Jd(a[(c + 2) % d], e))) return !1 } return !0 }; b.I6 = function(a, c) { c[2] = c[3] = c[6] = c[7] = c[8] = c[9] = c[11] = c[14] = 0; c[10] = c[15] = 1; c[0] = a.a; c[4] = a.B; c[12] = a.Ia; c[1] = a.b; c[5] = a.H; c[13] = a.Ja }; b.d7 = function(a, c) { c.a = a[0]; c.B = a[4]; c.Ia = a[12]; c.b = a[1]; c.H = a[5]; c.Ja = a[13] }; b.jA = b.oa.extend({ Cd: null, oi: null, hh: 0, AL: !1, Lr: null, ctor: function(a, c, d) { this.Cd = C(a || 0, c || 0); this.hh = d || 0 }, ts: function() { return { x: this.Cd.x, y: this.Cd.y } }, u0: function() { return this.Cd.x }, v0: function() { return this.Cd.y }, Fca: function() { return { x: this.oi.x, y: this.oi.y } }, Wca: function() { return { x: this.Lr.x, y: this.Lr.y } }, AE: function() { return b.Jd(this.Cd, this.oi) }, t0: function() { return { x: this.Cd.x, y: this.Cd.y } }, Gca: function() { return { x: this.oi.x, y: this.oi.y } }, Xca: function() { return { x: this.Lr.x, y: this.Lr.y } }, Vba: function() { return this.hh }, Wba: function() { return this.hh }, Qja: function(a, c, d) { this.oi = this.Cd; this.Cd = C(c || 0, d || 0); this.hh = a; this.AL || (this.Lr = C(this.Cd), this.AL = !0) }, VC: function(a, c) { void 0 === c ? (this.Cd.x = a.x, this.Cd.y = a.y) : (this.Cd.x = a, this.Cd.y = c) }, uo: function(a, c) { this.oi = void 0 === c ? C(a.x, a.y) : C(a || 0, c || 0) } }); b.qc = b.oa.extend({ kc: 0, Ql: !1, ib: null, NC: function(a) { this.ib = a }, ctor: function(a) { this.kc = a }, OE: function() { return this.kc }, stopPropagation: function() { this.Ql = !0 }, jea: function() { return this.Ql }, tba: function() { return this.ib } }); b.qc.hu = 0; b.qc.mn = 1; b.qc.cn = 2; b.qc.pn = 3; b.qc.Kp = 4; b.Si = b.qc.extend({ oB: null, NL: null, ctor: function(a) { b.qc.prototype.ctor.call(this, b.qc.Kp); this.oB = a }, setUserData: function(a) { this.NL = a }, getUserData: function() { return this.NL }, Lba: function() { return this.oB } }); b.Pc = b.qc.extend({ NJ: 0, RI: 0, yh: 0, Oe: 0, sC: 0, tC: 0, lL: 0, mL: 0, ctor: function(a) { b.qc.prototype.ctor.call(this, b.qc.pn); this.NJ = a }, uP: function(a, c) { this.lL = a; this.mL = c }, Sca: function() { return this.lL }, Tca: function() { return this.mL }, f4: function(a, c) { this.yh = a; this.Oe = c }, ts: function() { return { x: this.yh, y: this.Oe } }, t0: function() { return { x: this.yh, y: b.view.On.height - this.Oe } }, ZX: function(a, c) { this.sC = a; this.tC = c }, AE: function() { return { x: this.yh - this.sC, y: this.Oe - this.tC } }, xba: function() { return this.yh - this.sC }, yba: function() { return this.Oe - this.tC }, Wm: function(a) { this.RI = a }, fba: function() { return this.RI }, u0: function() { return this.yh }, v0: function() { return this.Oe } }); b.Pc.NONE = 0; b.Pc.KG = 1; b.Pc.tA = 2; b.Pc.$G = 3; b.Pc.Mz = 4; b.Pc.D6 = 0; b.Pc.F6 = 2; b.Pc.E6 = 1; b.Pc.y6 = 3; b.Pc.z6 = 4; b.Pc.A6 = 5; b.Pc.B6 = 6; b.Pc.C6 = 7; b.mg = b.qc.extend({ sk: 0, Uk: null, ctor: function(a) { b.qc.prototype.ctor.call(this, b.qc.hu); this.Uk = a || [] }, Kba: function() { return this.sk }, pda: function() { return this.Uk }, z9: function(a) { this.sk = a }, B9: function(a) { this.Uk = a } }); b.mg.E7 = 5; b.mg.hn = { Ey: 0, lz: 1, Vy: 2, Ly: 3 }; b.sa = b.oa.extend({ $B: null, kc: 0, hi: null, mf: !1, vk: 0, kf: null, jc: !1, jo: !0, ctor: function(a, c, d) { this.$B = d; this.kc = a || 0; this.hi = c || "" }, UC: function(a) { this.jc = a }, m9: function() { return this.jc }, Dr: function(a) { this.mf = a }, OW: function() { return this.mf }, k9: function() { return this.kc }, h9: function() { return this.hi }, OC: function(a) { this.vk = a }, g9: function() { return this.vk }, Er: function(a) { this.kf = a }, i9: function() { return this.kf }, Yk: function() { return null != this.$B }, j: function() { return null }, ve: function(a) { this.jo = a }, isEnabled: function() { return this.jo }, $x: function() {}, Ki: function() {} }); b.sa.sU = 0; b.sa.ju = 1; b.sa.iu = 2; b.sa.mn = 3; b.sa.pn = 4; b.sa.cn = 5; b.sa.Kp = 6; b.Cq = b.sa.extend({ ur: null, ctor: function(a, c) { this.ur = c; var d = this; b.sa.prototype.ctor.call(this, b.sa.Kp, a, function(a) { null != d.ur && d.ur(a) }) }, Yk: function() { return b.sa.prototype.Yk.call(this) && null != this.ur }, j: function() { return new b.Cq(this.hi, this.ur) } }); b.Cq.create = function(a, c) { return new b.Cq(a, c) }; b.ik = b.sa.extend({ Jx: null, Mx: null, Kx: null, Lx: null, ctor: function() { var a = this; b.sa.prototype.ctor.call(this, b.sa.pn, b.ik.rc, function(c) { var d = b.Pc; switch (c.NJ) { case d.KG: a.Jx && a.Jx(c); break; case d.tA: a.Mx && a.Mx(c); break; case d.$G: a.Kx && a.Kx(c); break; case d.Mz: a.Lx && a.Lx(c) } }) }, j: function() { var a = new b.ik; a.Jx = this.Jx; a.Mx = this.Mx; a.Kx = this.Kx; a.Lx = this.Lx; return a }, Yk: function() { return !0 } }); b.ik.rc = "__cc_mouse"; b.ik.create = function() { return new b.ik }; b.Xh = b.sa.extend({ In: null, jt: !1, hl: null, Os: null, Ns: null, Ms: null, ctor: function() { b.sa.prototype.ctor.call(this, b.sa.ju, b.Xh.rc, null); this.In = [] }, Gja: function(a) { this.jt = a }, j: function() { var a = new b.Xh; a.hl = this.hl; a.Os = this.Os; a.Ns = this.Ns; a.Ms = this.Ms; a.jt = this.jt; return a }, Yk: function() { return this.hl ? !0 : (b.log(b.e.zU), !1) } }); b.Xh.rc = "__cc_touch_one_by_one"; b.Xh.create = function() { return new b.Xh }; b.Wh = b.sa.extend({ pp: null, Rs: null, Qs: null, Ps: null, ctor: function() { b.sa.prototype.ctor.call(this, b.sa.iu, b.Wh.rc, null) }, j: function() { var a = new b.Wh; a.pp = this.pp; a.Rs = this.Rs; a.Qs = this.Qs; a.Ps = this.Ps; return a }, Yk: function() { return null == this.pp && null == this.Rs && null == this.Qs && null == this.Ps ? (b.log(b.e.yU), !1) : !0 } }); b.Wh.rc = "__cc_touch_all_at_once"; b.Wh.create = function() { return new b.Wh }; b.sa.create = function(a) { b.assert(a && a.event, b.e.aR); var c = a.event; delete a.event; var d = null; c === b.sa.ju ? d = new b.Xh : c === b.sa.iu ? d = new b.Wh : c === b.sa.pn ? d = new b.ik : c === b.sa.Kp ? (d = new b.Cq(a.y_, a.YD), delete a.y_, delete a.YD) : c === b.sa.mn ? d = new b.hk : c === b.sa.cn && (d = new b.gk(a.YD), delete a.YD); for (var e in a) d[e] = a[e]; return d }; b.pM = function(a) { var c, d = a.length, e = Array(d); for (c = 0; c < d; c += 1) e[c] = a[c]; return e }; b.AU = b.oa.extend({ Gf: null, Mf: null, yN: 0, ctor: function() { this.Gf = []; this.Mf = [] }, size: function() { return this.Gf.length + this.Mf.length }, empty: function() { return 0 === this.Gf.length && 0 === this.Mf.length }, push: function(a) { 0 == a.vk ? this.Mf.push(a) : this.Gf.push(a) }, HZ: function() { this.Mf.length = 0 }, GZ: function() { this.Gf.length = 0 }, clear: function() { this.Mf.length = 0; this.Gf.length = 0 }, Nba: function() { return this.Gf }, Qca: function() { return this.Mf } }); b.su = function(a) { var c = b.qc, d = a.kc; if (d === c.cn) return b.gk.rc; if (d === c.Kp) return a.oB; if (d === c.mn) return b.hk.rc; if (d === c.pn) return b.ik.rc; d === c.hu && b.log(b.e.su); return "" }; b.ra = { Sy: 0, rt: 1, Np: 2, S6: 3, xg: {}, Ar: {}, ji: {}, yv: {}, bK: {}, Fo: [], Wq: [], Ol: 0, jo: !1, FK: 0, NW: [b.Jb.ut, b.Jb.Op], Uv: function(a) { null != this.ji[a.ta] && this.Wq.push(a); a = a.t; for (var c = 0, d = a.length; c < d; c++) this.Uv(a[c]) }, sp: function(a, c) { var d = this.ji[a.ta], e, f; if (d) for (e = 0, f = d.length; e < f; e++) d[e].UC(!0); if (!0 === c) for (d = a.t, e = 0, f = d.length; e < f; e++) this.sp(d[e], !0) }, Oj: function(a, c) { var d = this.ji[a.ta], e, f; if (d) for (e = 0, f = d.length; e < f; e++) d[e].UC(!1); this.Uv(a); if (!0 === c) for (d = a.t, e = 0, f = d.length; e < f; e++) this.Oj(d[e], !0) }, KI: function(a) { 0 === this.Ol ? this.TJ(a) : this.Fo.push(a) }, TJ: function(a) { var c = a.hi, d = this.xg[c]; d || (d = new b.AU, this.xg[c] = d); d.push(a); 0 == a.vk ? (this.Lk(c, this.Np), c = a.kf, null == c && b.log(b.e.r_), this.RU(c, a), c.qh && this.Oj(c)) : this.Lk(c, this.rt) }, BB: function(a) { return this.xg[a] }, MY: function() { if (0 != this.Wq.length) { for (var a = this.Wq, c, d, e = this.ji, f = 0, g = a.length; f < g; f++) if (c = e[a[f].ta]) for (var h = 0, k = c.length; h < k; h++)(d = c[h]) && this.Lk(d.hi, this.Np); this.Wq.length = 0 } }, aL: function(a) { if (a) for (var c, d = 0; d < a.length;) c = a[d], c.Dr(!1), null != c.kf && (this.fJ(c.kf, c), c.Er(null)), 0 === this.Ol ? b.Pe(a, c) : ++d }, am: function(a) { var c = this.xg[a]; if (c) { var d = c.Gf; this.aL(c.Mf); this.aL(d); delete this.Ar[a]; this.Ol || (c.clear(), delete this.xg[a]) } for (var d = this.Fo, e, c = 0; c < d.length;)(e = d[c]) && e.hi == a ? b.Pe(d, e) : ++c }, bD: function(a) { var c = this.Sy, d = this.Ar; d[a] && (c = d[a]); c != this.Sy && (d[a] = this.Sy, c & this.rt && this.yY(a), c & this.Np && ((c = b.I.cd) ? this.AY(a, c) : d[a] = this.Np)) }, AY: function(a, c) { var d = this.BB(a); if (d) { var e = d.Mf; e && 0 !== e.length && (this.FK = 0, this.yv = {}, this.JD(c, !0), d.Mf.sort(this.xY)) } }, xY: function(a, c) { var d = b.ra.yv; return d[c.kf.ta] - d[a.kf.ta] }, yY: function(a) { if (a = this.xg[a]) { var c = a.Gf; if (c && 0 !== c.length) { c.sort(this.zY); for (var d = 0, e = c.length; d < e && !(0 <= c[d].vk);)++d; a.yN = d } } }, zY: function(a, c) { return a.vk - c.vk }, aC: function(a) { if (a = this.xg[a]) { var c = a.Gf, d = a.Mf, e, f; if (d) for (e = 0; e < d.length;) f = d[e], f.mf ? ++e : b.Pe(d, f); if (c) for (e = 0; e < c.length;) f = c[e], f.mf ? ++e : b.Pe(c, f); d && 0 === d.length && a.HZ(); c && 0 === c.length && a.GZ() } }, rw: function(a) { var c = this.Ol; b.assert(0 < c, b.e.bR); a.kc == b.qc.hu ? (this.aC(b.Xh.rc), this.aC(b.Wh.rc)) : this.aC(b.su(a)); if (!(1 < c)) { b.assert(1 == c, b.e.cR); a = this.xg; var c = this.Ar, d; for (d in a) a[d].empty() && (delete c[d], delete a[d]); d = this.Fo; if (0 !== d.length) { a = 0; for (c = d.length; a < c; a++) this.TJ(d[a]); this.Fo.length = 0 } } }, kX: function(a, c) { if (!a.OW) return !1; var d = c.event, e = c.VO; d.NC(a.kf); var f = !1, g, h = d.sk, k = b.mg.hn; h == k.Ey ? a.hl && (f = a.hl(e, d)) && a.mf && a.In.push(e) : 0 < a.In.length && -1 != (g = a.In.indexOf(e)) && (f = !0, h === k.lz && a.Os ? a.Os(e, d) : h === k.Vy ? (a.Ns && a.Ns(e, d), a.mf && a.In.splice(g, 1)) : h === k.Ly && (a.Ms && a.Ms(e, d), a.mf && a.In.splice(g, 1))); return d.Ql ? (b.ra.rw(d), !0) : f && a.mf && a.jt ? (c.C2 && c.touches.splice(e, 1), !0) : !1 }, yV: function(a) { this.bD(b.Xh.rc); this.bD(b.Wh.rc); var c = this.BB(b.Xh.rc), d = this.BB(b.Wh.rc); if (null != c || null != d) { var e = a.Uk, f = b.pM(e), g = { event: a, C2: c && d, touches: f, VO: null }; if (c) for (var h = 0; h < e.length; h++) if (g.VO = e[h], this.gB(c, this.kX, g), a.Ql) return; if (d && 0 < f.length && (this.gB(d, this.mX, { event: a, touches: f }), a.Ql)) return; this.rw(a) } }, mX: function(a, c) { if (!a.mf) return !1; var d = b.mg.hn, e = c.event, f = c.touches, g = e.sk; e.NC(a.kf); g == d.Ey && a.pp ? a.pp(f, e) : g == d.lz && a.Rs ? a.Rs(f, e) : g == d.Vy && a.Qs ? a.Qs(f, e) : g == d.Ly && a.Ps && a.Ps(f, e); return e.Ql ? (b.ra.rw(e), !0) : !1 }, RU: function(a, c) { var d = this.ji[a.ta]; d || (d = [], this.ji[a.ta] = d); d.push(c) }, fJ: function(a, c) { var d = this.ji[a.ta]; d && (b.Pe(d, c), 0 === d.length && delete this.ji[a.ta]) }, gB: function(a, c, d) { var e = !1, f = a.Gf, g = a.Mf, h = 0, k; if (f && 0 !== f.length) for (; h < a.yN; ++h) if (k = f[h], k.isEnabled() && !k.jc && k.mf && c(k, d)) { e = !0; break } if (g && !e) for (a = 0; a < g.length; a++) if (k = g[a], k.isEnabled() && !k.jc && k.mf && c(k, d)) { e = !0; break } if (f && !e) for (; h < f.length && (k = f[h], !k.isEnabled() || k.jc || !k.mf || !c(k, d)); ++h); }, Lk: function(a, c) { var d = this.Ar; d[a] = null == d[a] ? c : c | d[a] }, JD: function(a, c) { var d = a.t, e = 0, f = d.length, g = this.bK, h = this.ji; if (0 < f) { for (var k; e < f; e++) if ((k = d[e]) && 0 > k.Bb) this.JD(k, !1); else break; null != h[a.ta] && (g[a.bj] || (g[a.bj] = []), g[a.bj].push(a.ta)); for (; e < f; e++)(k = d[e]) && this.JD(k, !1) } else null != h[a.ta] && (g[a.bj] || (g[a.bj] = []), g[a.bj].push(a.ta)); if (c) { var d = [], m; for (m in g) d.push(m); d.sort(this.BY); m = d.length; k = this.yv; for (e = 0; e < m; e++) for (f = g[d[e]], h = 0; h < f.length; h++) k[f[h]] = ++this.FK; this.bK = {} } }, BY: function(a, c) { return a - c }, addListener: function(a, c) { b.assert(a && c, b.e.t_); if (!(a instanceof b.sa)) b.assert("number" !== typeof c, b.e.u_), a = b.sa.create(a); else if (a.mf) { b.log(b.e.v_); return } a.Yk() && ("number" == typeof c ? 0 == c ? b.log(b.e.s_) : (a.Er(null), a.OC(c), a.Dr(!0), a.UC(!1), this.KI(a)) : (a.Er(c), a.OC(0), a.Dr(!0), this.KI(a))) }, PD: function(a, c) { var d = b.Cq.create(a, c); this.addListener(d, 1); return d }, removeListener: function(a) { if (null != a) { var c, d = this.xg, e; for (e in d) { var f = d[e], g = f.Gf; (c = this.bL(f.Mf, a)) ? this.Lk(a.hi, this.Np): (c = this.bL(g, a)) && this.Lk(a.hi, this.rt); f.empty() && (delete this.Ar[a.hi], delete d[e]); if (c) break } if (!c) for (c = this.Fo, d = 0, e = c.length; d < e; d++) if (f = c[d], f == a) { b.Pe(c, f); break } } }, bL: function(a, c) { if (null == a) return !1; for (var d = 0, e = a.length; d < e; d++) { var f = a[d]; if (f == c) return f.Dr(!1), null != f.kf && (this.fJ(f.kf, f), f.Er(null)), 0 == this.Ol && b.Pe(a, f), !0 } return !1 }, JO: function(a, c) { if (a instanceof b.k) { delete this.yv[a.ta]; b.Pe(this.Wq, a); var d = this.ji[a.ta]; if (d) { for (var e = b.pM(d), d = 0; d < e.length; d++) this.removeListener(e[d]); e.length = 0; e = this.Fo; for (d = 0; d < e.length;) { var f = e[d]; f.kf == a ? (f.Er(null), f.Dr(!1), e.splice(d, 1)) : ++d } if (!0 === c) for (e = a.t, d = 0, f = e.length; d < f; d++) this.JO(e[d], !0) } } else a == b.sa.ju ? this.am(b.Xh.rc) : a == b.sa.iu ? this.am(b.Wh.rc) : a == b.sa.pn ? this.am(b.ik.rc) : a == b.sa.cn ? this.am(b.gk.rc) : a == b.sa.mn ? this.am(b.hk.rc) : b.log(b.e.w_) }, Mha: function(a) { this.am(a) }, Hha: function() { var a = this.xg, c = this.NW, d; for (d in a) - 1 === c.indexOf(d) && this.am(d) }, rja: function(a, c) { if (null != a) { var d = this.xg, e; for (e in d) { var f = d[e].Gf; if (f && -1 != f.indexOf(a)) { null != a.kf && b.log(b.e.x_); a.vk !== c && (a.OC(c), this.Lk(a.hi, this.rt)); break } } } }, ve: function(a) { this.jo = a }, isEnabled: function() { return this.jo }, dispatchEvent: function(a) { if (this.jo) { this.MY(); this.Ol++; if (!a || !a.OE) throw "event is undefined"; if (a.kc == b.qc.hu) this.yV(a); else { var c = b.su(a); this.bD(c); c = this.xg[c]; null != c && this.gB(c, this.eX, a); this.rw(a) } this.Ol-- } }, eX: function(a, c) { c.NC(a.kf); a.$B(c); return c.Ql }, S$: function(a, c) { var d = new b.Si(a); d.setUserData(c); this.dispatchEvent(d) } }; b.$Q = b.qc.extend({ GI: null, ctor: function(a) { b.qc.prototype.ctor.call(this, b.qc.cn); this.GI = a } }); b.OG = b.qc.extend({ PB: 0, qK: !1, ctor: function(a, c) { b.qc.prototype.ctor.call(this, b.qc.mn); this.PB = a; this.qK = c } }); b.gk = b.sa.extend({ Bv: null, ctor: function(a) { this.Bv = a; var c = this; b.sa.prototype.ctor.call(this, b.sa.cn, b.gk.rc, function(a) { c.Bv(a.GI, a) }) }, Yk: function() { b.assert(this.Bv, b.e.wU); return !0 }, j: function() { return new b.gk(this.Bv) } }); b.gk.rc = "__cc_acceleration"; b.gk.create = function(a) { return new b.gk(a) }; b.hk = b.sa.extend({ Ks: null, Ls: null, ctor: function() { var a = this; b.sa.prototype.ctor.call(this, b.sa.mn, b.hk.rc, function(c) { c.qK ? a.Ks && a.Ks(c.PB, c) : a.Ls && a.Ls(c.PB, c) }) }, j: function() { var a = new b.hk; a.Ks = this.Ks; a.Ls = this.Ls; return a }, Yk: function() { return null == this.Ks && null == this.Ls ? (b.log(b.e.xU), !1) : !0 } }); b.hk.rc = "__cc_keyboard"; b.hk.create = function() { return new b.hk }; b.F.vA = function() { var a = b.k.prototype; a.uD = null; a.iD = null; a.FB = null; a.Yi = null; a.ctor = function() { this.IB(); var a = new b.ba; a.c[2] = a.c[3] = a.c[6] = a.c[7] = a.c[8] = a.c[9] = a.c[11] = a.c[14] = 0; a.c[10] = a.c[15] = 1; this.uD = a; this.FB = 0; this.iD = new b.ba }; a.Ha = function() { !1 === this.xj && (this.xj = this.nv = !0) }; a.R = function() { if (this.lc) { var a = b.l, d, e = b.Pb; e.stack.push(e.top); b.Gj(this.iD, e.top); e.top = this.iD; var f = this.grid; f && f.kk && f.is(); this.transform(); var g = this.t; if (g && 0 < g.length) { var h = g.length; this.Wc(); for (d = 0; d < h; d++) if (g[d] && 0 > g[d].Bb) g[d].R(); else break; for (this.Y(a); d < h; d++) g[d] && g[d].R() } else this.Y(a); this.arrivalOrder = 0; f && f.kk && f.fs(this); e.top = e.stack.pop() } }; a.transform = function() { var a = this.uD, d = b.Pb.top, e = this.np(), f = a.c; f[0] = e.a; f[4] = e.B; f[12] = e.Ia; f[1] = e.b; f[5] = e.H; f[13] = e.Ja; f[14] = this.$r; b.Ei(d, d, a); null == this.Yi || null != this.grid && this.grid.vf() || (a = this.Ab.x, d = this.Ab.y, 0 !== a || 0 !== d ? (b.Qz || (a |= 0, d |= 0), b.jp(a, d), this.Yi.Is(), b.jp(-a, -d)) : this.Yi.Is()) }; a.zi = a.hW }; b.F.yz = function() { var a = b.k.prototype; b.i(a, "x", a.Gd, a.kP); b.i(a, "y", a.tf, a.lP); b.i(a, "width", a.eh, a.rj); b.i(a, "height", a.yk, a.qj); b.i(a, "anchorX", a.QV, a.KC); b.i(a, "anchorY", a.RV, a.LC); b.i(a, "skewX", a.S0, a.x4); b.i(a, "skewY", a.T0, a.y4); b.i(a, "zIndex", a.s0, a.hd); b.i(a, "vertexZ", a.b1, a.K4); b.i(a, "rotation", a.L0, a.$F); b.i(a, "rotationX", a.N0, a.v4); b.i(a, "rotationY", a.O0, a.w4); b.i(a, "scale", a.P0, a.Li); b.i(a, "scaleX", a.kN, a.bt); b.i(a, "scaleY", a.lN, a.ct); b.i(a, "children", a.V_); b.i(a, "childrenCount", a.W_); b.i(a, "parent", a.getParent, a.jP); b.i(a, "visible", a.L1, a.ry); b.i(a, "running", a.J1); b.i(a, "ignoreAnchor", a.G1, a.dx); b.i(a, "actionManager", a.Mw, a.WO); b.i(a, "scheduler", a.$k, a.tP); b.i(a, "shaderProgram", a.JE, a.bG); b.i(a, "glServerState", a.j0, a.c4); b.i(a, "opacity", a.Ig, a.Sa); b.i(a, "opacityModifyRGB", a.Wf, a.Ue); b.i(a, "cascadeOpacity", a.SN, a.$O); b.i(a, "color", a.Hg, a.cb); b.i(a, "cascadeColor", a.RN, a.ZO) }; b.dH = -1; b.NF = 1; b.k = b.oa.extend({ Bb: 0, bj: 0, $r: 0, oj: 0, cm: 0, ka: 1, La: 1, wa: null, sh: 0, th: 0, t: null, lc: !0, Qc: null, Ab: null, O: null, qh: !1, Sc: null, ej: !1, tag: b.dH, userData: null, userObject: null, xj: !0, nv: !0, tg: !0, En: null, E9: null, lm: null, mK: null, Yd: !1, Eb: null, arrivalOrder: 0, rg: null, Nf: null, d9: null, kK: !1, Fq: !1, yu: null, ok: null, OB: !1, to: 0, Rv: 0, vb: "Node", $C: !1, qo: "", fb: 255, Bg: 255, ya: null, Xd: null, ah: !1, ai: !1, G9: !1, l9: 0, IB: function() { this.Qc = C(0, 0); this.Ab = C(0, 0); this.O = N(0, 0); this.wa = C(0, 0); this.t = []; this.lm = { a: 1, b: 0, B: 0, H: 1, Ia: 0, Ja: 0 }; var a = b.I; this.rg = a.Mw(); this.Nf = a.$k(); this.kK = !0; this.yu = { a: 1, b: 0, B: 0, H: 1, Ia: 0, Ja: 0 }; b.EQ && (this.ok = new b.EQ(this)); this.Bg = this.fb = 255; this.ya = b.color(255, 255, 255, 255); this.Xd = b.color(255, 255, 255, 255); this.ai = this.ah = !1 }, da: function() { !1 === this.kK && this.IB(); return !0 }, sg: function(a, c) { if (a && 0 !== a.length) { var d, e = a.length, f; d = b.k.zf; switch (c) { case d.Z: for (d = 0; d < e; d++)(f = a[d]) && f.Z(); break; case d.sb: for (d = 0; d < e; d++)(f = a[d]) && f.sb(); break; case d.Mh: for (d = 0; d < e; d++)(f = a[d]) && f.Mh(); break; case d.Qe: for (d = 0; d < e; d++)(f = a[d]) && f.Qe(); break; case d.Ze: for (d = 0; d < e; d++)(f = a[d]) && f.Ze(); break; case d.Xf: for (d = 0; d < e; d++)(f = a[d]) && f.Xf(); break; case d.Wc: for (d = 0; d < e; d++)(f = a[d]) && f.Wc(); break; default: b.assert(0, b.e.OR) } } }, Ha: null, Ic: function(a) { for (var c in a) this[c] = a[c] }, S0: function() { return this.sh }, x4: function(a) { this.sh = a; this.Ha() }, T0: function() { return this.th }, y4: function(a) { this.th = a; this.Ha() }, hd: function(a) { this.Bb = a; this.Sc && this.Sc.vp(this, a); b.ra.Uv(this) }, Vv: function(a) { this.Bb = a }, s0: function() { return this.Bb }, Ada: function() { b.log(b.e.UR); return this.Bb }, ika: function(a) { b.log(b.e.eS); this.hd(a) }, Oia: function(a) { this.bj != a && (this.bj = a, b.ra.Uv(this)) }, Tba: function() { return this.bj }, b1: function() { return this.$r }, K4: function(a) { this.$r = a }, L0: function() { this.oj !== this.cm && b.log(b.e.SR); return this.oj }, $F: function(a) { this.oj = this.cm = a; this.to = 0.017453292519943295 * this.oj; this.Rv = 0.017453292519943295 * this.cm; this.Ha() }, N0: function() { return this.oj }, v4: function(a) { this.oj = a; this.to = 0.017453292519943295 * this.oj; this.Ha() }, O0: function() { return this.cm }, w4: function(a) { this.cm = a; this.Rv = 0.017453292519943295 * this.cm; this.Ha() }, P0: function() { this.ka !== this.La && b.log(b.e.TR); return this.ka }, Li: function(a, c) { this.ka = a; this.La = c || 0 === c ? c : a; this.Ha() }, kN: function() { return this.ka }, bt: function(a) { this.ka = a; this.Ha() }, lN: function() { return this.La }, ct: function(a) { this.La = a; this.Ha() }, P: function(a, c) { var d = this.wa; void 0 === c ? (d.x = a.x, d.y = a.y) : (d.x = a, d.y = c); this.Ha() }, Rw: function() { return C(this.wa) }, Gd: function() { return this.wa.x }, kP: function(a) { this.wa.x = a; this.Ha() }, tf: function() { return this.wa.y }, lP: function(a) { this.wa.y = a; this.Ha() }, W_: function() { return this.t.length }, V_: function() { return this.t }, L1: function() { return this.lc }, ry: function(a) { this.lc != a && (this.lc = a) && this.Ha() }, $aa: function() { return C(this.Qc) }, ll: function(a, c) { var d = this.Qc; if (void 0 === c) { if (a.x === d.x && a.y === d.y) return; d.x = a.x; d.y = a.y } else { if (a === d.x && c === d.y) return; d.x = a; d.y = c } var e = this.Ab, f = this.O; e.x = f.width * d.x; e.y = f.height * d.y; this.Ha() }, f9: function() { return this.Qc }, nL: function(a) { var c = a.x; a = a.y; this.Qc.x !== c && (this.Qc.x = c, this.Ab.x = this.O.width * c); this.Qc.y !== a && (this.Qc.y = a, this.Ab.y = this.O.height * a); this.Ha() }, QV: function() { return this.Qc.x }, KC: function(a) { this.Qc.x !== a && (this.Qc.x = a, this.Ab.x = this.O.width * a, this.Ha()) }, RV: function() { return this.Qc.y }, LC: function(a) { this.Qc.y !== a && (this.Qc.y = a, this.Ab.y = this.O.height * a, this.Ha()) }, Nw: function() { return C(this.Ab) }, eh: function() { return this.O.width }, rj: function(a) { this.O.width = a; this.Ab.x = a * this.Qc.x; this.Ha() }, yk: function() { return this.O.height }, qj: function(a) { this.O.height = a; this.Ab.y = a * this.Qc.y; this.Ha() }, se: function() { return N(this.O) }, Kd: function(a, c) { var d = this.O; if (void 0 === c) { if (a.width === d.width && a.height === d.height) return; d.width = a.width; d.height = a.height } else { if (a === d.width && c === d.height) return; d.width = a; d.height = c } var e = this.Ab, f = this.Qc; e.x = d.width * f.x; e.y = d.height * f.y; this.Ha() }, J1: function() { return this.qh }, getParent: function() { return this.Sc }, jP: function(a) { this.Sc = a }, G1: function() { return this.ej }, dx: function(a) { a != this.ej && (this.ej = a, this.Ha()) }, LE: function() { return this.tag }, qy: function(a) { this.tag = a }, j4: function(a) { this.qo = a }, getName: function() { return this.qo }, getUserData: function() { return this.userData }, setUserData: function(a) { this.userData = a }, vda: function() { return this.userObject }, fka: function(a) { this.userObject != a && (this.userObject = a) }, uca: function() { return this.arrivalOrder }, m4: function(a) { if (NaN == this.arrivalOrder) debugger; this.arrivalOrder = a }, Mw: function() { this.rg || (this.rg = b.I.Mw()); return this.rg }, WO: function(a) { this.rg != a && (this.it(), this.rg = a) }, $k: function() { this.Nf || (this.Nf = b.I.$k()); return this.Nf }, tP: function(a) { this.Nf != a && (this.yy(), this.Nf = a) }, n$: function() { b.log(b.e.QR); return this.S_() }, S_: function() { return b.AX(O(0, 0, this.O.width, this.O.height), this.zi()) }, Qe: function() { this.it(); this.yy(); b.ra.JO(this); this.sg(this.t, b.k.zf.Qe) }, Eh: function(a) { var c = this.t; if (null != c) for (var d = 0; d < c.length; d++) { var e = c[d]; if (e && e.tag == a) return e } return null }, lba: function(a) { if (!a) return b.log("Invalid name"), null; for (var c = this.t, d = 0, e = c.length; d < e; d++) if (c[d].qo == a) return c[d]; return null }, X: function(a, c, d) { c = void 0 === c ? a.Bb : c; var e, f = !1; switch (typeof d) { case "undefined": d = void 0; e = a.qo; break; case "string": e = d; d = void 0; break; case "number": f = !0, e = "" } b.assert(a, b.e.PR); b.assert(null === a.Sc, "child already added. It can't be added again"); this.YY(a, c, d, e, f) }, YY: function(a, c, d, e, f) { this.t || (this.t = []); this.JW(a, c); f ? a.qy(d) : a.j4(e); a.jP(this); a.m4(b.NF++); this.qh && (a.Z(), this.OB && a.Mh()); this.ah && this.LJ(); this.ai && this.MJ() }, IF: function(a) { this.Sc && (null == a && (a = !0), this.Sc.removeChild(this, a)) }, Nha: function(a) { b.log(b.e.ZR); this.IF(a) }, removeChild: function(a, c) { 0 !== this.t.length && (null == c && (c = !0), -1 < this.t.indexOf(a) && this.uV(a, c), this.Ha()) }, Wx: function(a, c) { a === b.dH && b.log(b.e.XR); var d = this.Eh(a); null == d ? b.log(b.e.YR, a) : this.removeChild(d, c) }, Fha: function(a) { b.log(b.e.WR); this.Lg(a) }, Lg: function(a) { var c = this.t; if (null != c) { null == a && (a = !0); for (var d = 0; d < c.length; d++) { var e = c[d]; e && (this.qh && (e.Xf(), e.sb()), a && e.Qe(), e.parent = null) } this.t.length = 0 } }, uV: function(a, c) { this.qh && (a.Xf(), a.sb()); c && a.Qe(); a.parent = null; b.Pe(this.t, a) }, JW: function(a, c) { this.Yd = !0; this.t.push(a); a.Vv(c) }, vp: function(a, c) { b.assert(a, b.e.$R); this.Yd = !0; a.arrivalOrder = b.NF; b.NF++; a.Vv(c); this.Ha() }, Wc: function() { if (this.Yd) { var a = this.t, c = a.length, d, e, f; for (d = 1; d < c; d++) { f = a[d]; for (e = d - 1; 0 <= e;) { if (f.Bb < a[e].Bb) a[e + 1] = a[e]; else if (f.Bb === a[e].Bb && f.arrivalOrder < a[e].arrivalOrder) a[e + 1] = a[e]; else break; e-- } a[e + 1] = f } this.Yd = !1 } }, Y: function() {}, xy: function() { null != this.Sc && (this.Sc.xy(), this.Sc.transform()) }, Z: function() { this.OB = !1; this.qh = !0; this.sg(this.t, b.k.zf.Z); this.wp() }, Mh: function() { this.OB = !0; this.sg(this.t, b.k.zf.Mh) }, Xf: function() { this.sg(this.t, b.k.zf.Xf) }, sb: function() { this.qh = !1; this.pause(); this.sg(this.t, b.k.zf.sb) }, ea: function(a) { b.assert(a, b.e.bS); this.actionManager.XY(a, this, !this.qh); return a }, it: function() { this.actionManager && this.actionManager.HO(this) }, h5: function(a) { this.actionManager.GO(a) }, i5: function(a) { a === b.dn ? b.log(b.e.fS) : this.actionManager.n3(a, this) }, xE: function(a) { return a === b.dn ? (b.log(b.e.RR), null) : this.actionManager.xE(a, this) }, qca: function() { return this.actionManager.E2(this) }, H3: function() { this.UO(0) }, UO: function(a) { this.scheduler.OF(this, a, !this.qh) }, TP: function() { this.scheduler.ot(this) }, Um: function(a, c, d, e) { c = c || 0; b.assert(a, b.e.cS); b.assert(0 <= c, b.e.dS); d = null == d ? b.qq : d; this.scheduler.G3(this, a, c, d, e || 0, !this.qh) }, bia: function(a, c) { this.Um(a, 0, 0, c) }, an: function(a) { a && this.scheduler.SP(this, a) }, yy: function() { this.scheduler.RP(this) }, Wha: function() { b.log(b.e.aS); this.wp() }, wp: function() { this.scheduler.Oj(this); this.actionManager && this.actionManager.Oj(this); b.ra.Oj(this) }, dha: function() { b.log(b.e.VR); this.pause() }, pause: function() { this.scheduler.sp(this); this.actionManager && this.actionManager.sp(this); b.ra.sp(this) }, hia: function(a) { this.yu = a; this.Fq = this.xj = !0 }, F0: function() { this.nv && (this.mK = b.XL(this.zi()), this.nv = !1); return this.mK }, aha: function() { return this.F0() }, GE: function() { for (var a = this.zi(), c = this.Sc; null != c; c = c.parent) a = b.tm(a, c.zi()); return a }, Gx: function() { return this.GE() }, wN: function() { return b.XL(this.GE()) }, Tka: function() { return this.wN() }, iE: function(a) { return b.zO(a, this.wN()) }, Fw: function(a) { a = a || C(0, 0); return b.zO(a, this.GE()) }, MZ: function(a) { return b.Jd(this.iE(a), this.Ab) }, A$: function(a) { a = a || C(0, 0); return this.Fw(b.Hi(a, this.Ab)) }, Y8: function(a) { a = this.Fw(a); return b.I.NZ(a) }, B$: function(a) { return this.iE(a.ts()) }, C$: function(a) { a = a.ts(); a = b.I.LZ(a); return this.MZ(a) }, update: function(a) { this.ok && !this.ok.Wda() && this.ok.R(a) }, Ze: function() { this.sg(this.t, b.k.zf.Ze) }, $x: function() {}, Ki: function() {}, Y_: function(a) { return this.ok.Y_(a) }, J9: function(a) { this.ok.add(a) }, Lha: function(a) { return this.ok.remove(a) }, Gha: function() { this.ok.Dha() }, grid: null, ctor: null, R: null, transform: null, np: function() { return this.zi() }, zi: null, ti: function() { if (!1 === this.tg) { this.tg = !0; var a = this.En; a && a != this && a.ti() } }, MC: function(a) { if (this.En != a) { this.En = a; for (var c = this.t, d = 0, e = c.length; d < e; d++) c[d].MC(a) } }, Jm: function() { this.Yi || (this.Yi = new b.Lp); return this.Yi }, ss: function() { return this.grid }, d4: function(a) { this.grid = a }, JE: function() { return this.Eb }, bG: function(a) { this.Eb = a }, j0: function() { return this.FB }, c4: function(a) { this.FB = a }, T_: function() { var a = O(0, 0, this.O.width, this.O.height), c = this.Gx(), a = b.GF(a, this.Gx()); if (!this.t) return a; for (var d = this.t, e = 0; e < d.length; e++) { var f = d[e]; f && f.lc && (f = f.dr(c)) && (a = b.Vx(a, f)) } return a }, dr: function(a) { var c = O(0, 0, this.O.width, this.O.height); a = null == a ? this.zi() : b.tm(this.zi(), a); c = b.GF(c, a); if (!this.t) return c; for (var d = this.t, e = 0; e < d.length; e++) { var f = d[e]; f && f.lc && (f = f.dr(a)) && (c = b.Vx(c, f)) } return c }, hW: function() { if (this.xj) { var a = this.wa.x, c = this.wa.y, d = this.Ab.x, e = -d, f = this.Ab.y, g = -f, h = this.ka, k = this.La; this.ej && (a += d, c += f); var m = 1, p = 0, r = 1, s = 0; if (0 !== this.oj || 0 !== this.cm) m = Math.cos(-this.to), p = Math.sin(-this.to), r = Math.cos(-this.Rv), s = Math.sin(-this.Rv); var u = this.sh || this.th; u || 0 === d && 0 === f || (a += r * e * h + -p * g * k, c += s * e * h + m * g * k); var t = this.lm; t.a = r * h; t.b = s * h; t.B = -p * k; t.H = m * k; t.Ia = a; t.Ja = c; u && (t = b.tm({ a: 1, b: Math.tan(b.Sf(this.th)), B: Math.tan(b.Sf(this.sh)), H: 1, Ia: 0, Ja: 0 }, t), 0 !== d || 0 !== f) && (t = b.bZ(t, e, g)); this.Fq && (t = b.tm(t, this.yu), this.Fq = !1); this.lm = t; this.xj = !1 } return this.lm }, bc: function() {}, Ig: function() { return this.Bg }, d0: function() { return this.fb }, Sa: function(a) { this.fb = this.Bg = a; var c = 255, d = this.Sc; d && d.cascadeOpacity && (c = d.fb); this.Bc(c); this.ya.a = this.Xd.a = a }, Bc: function(a) { this.fb = this.Bg * a / 255; if (this.ai) { a = this.t; for (var c = 0; c < a.length; c++) { var d = a[c]; d && d.Bc(this.fb) } } }, SN: function() { return this.ai }, $O: function(a) { this.ai !== a && ((this.ai = a) ? this.MJ() : this.xV()) }, MJ: function() { var a = 255, c = this.Sc; c && c.cascadeOpacity && (a = c.fb); this.Bc(a) }, xV: function() { this.fb = this.Bg; for (var a = this.t, c = 0; c < a.length; c++) { var d = a[c]; d && d.Bc(255) } }, Hg: function() { var a = this.Xd; return b.color(a.r, a.g, a.b, a.a) }, Pw: function() { var a = this.ya; return b.color(a.r, a.g, a.b, a.a) }, cb: function(a) { var c = this.ya, d = this.Xd; c.r = d.r = a.r; c.g = d.g = a.g; c.b = d.b = a.b; a = (a = this.Sc) && a.cascadeColor ? a.Pw() : b.color.WHITE; this.Nc(a) }, Nc: function(a) { var c = this.ya, d = this.Xd; c.r = 0 | d.r * a.r / 255; c.g = 0 | d.g * a.g / 255; c.b = 0 | d.b * a.b / 255; if (this.ah) for (a = this.t, d = 0; d < a.length; d++) { var e = a[d]; e && e.Nc(c) } }, RN: function() { return this.ah }, ZO: function(a) { this.ah !== a && ((this.ah = a) ? this.LJ() : this.wV()) }, LJ: function() { var a; a = (a = this.Sc) && a.cascadeColor ? a.Pw() : b.color.WHITE; this.Nc(a) }, wV: function() { var a = this.ya, c = this.Xd; a.r = c.r; a.g = c.g; a.b = c.b; for (var a = this.t, c = b.color.WHITE, d = 0; d < a.length; d++) { var e = a[d]; e && e.Nc(c) } }, Ue: function() {}, Wf: function() { return !1 } }); b.k.create = function() { return new b.k }; b.k.zf = { Z: 1, sb: 2, Qe: 3, Mh: 4, Ze: 5, Xf: 6, Wc: 7 }; b.A === b.Ba ? (n = b.k.prototype, n.ctor = function() { this.IB() }, n.Ha = function() { this.ti(); !1 === this.xj && (this.xj = this.nv = !0) }, n.R = function(a) { if (this.lc) { a = a || b.l; var c, d = this.t, e; a.save(); this.transform(a); var f = d.length; if (0 < f) { this.Wc(); for (c = 0; c < f; c++) if (e = d[c], 0 > e.Bb) e.R(a); else break; for (this.Y(a); c < f; c++) d[c].R(a) } else this.Y(a); this.tg = !1; this.arrivalOrder = 0; a.restore() } }, n.transform = function(a) { a = a || b.l; var c = b.view, d = this.zi(); a.transform(d.a, d.B, d.b, d.H, d.Ia * c.ka, -d.Ja * c.La) }, n.zi = function() { if (this.xj) { var a = this.lm; a.Ia = this.wa.x; a.Ja = this.wa.y; var c = 1, d = 0; this.oj && (c = Math.cos(this.to), d = Math.sin(this.to)); a.a = a.H = c; a.b = -d; a.B = d; var e = this.ka, f = this.La, g = this.Ab.x, h = this.Ab.y, k = 1E-6 > e && -1E-6 < e ? 1E-6 : e, m = 1E-6 > f && -1E-6 < f ? 1E-6 : f; if (this.sh || this.th) { var p = Math.tan(-this.sh * Math.PI / 180), r = Math.tan(-this.th * Math.PI / 180); Infinity === p && (p = 99999999); Infinity === r && (r = 99999999); var s = h * p * k, u = g * r * m; a.a = c + -d * r; a.b = c * p + -d; a.B = d + c * r; a.H = d * p + c; a.Ia += c * s + -d * u; a.Ja += d * s + c * u } if (1 !== e || 1 !== f) a.a *= k, a.B *= k, a.b *= m, a.H *= m; a.Ia += c * -g * k + -d * h * m; a.Ja -= d * -g * k + c * h * m; this.ej && (a.Ia += g, a.Ja += h); this.Fq && (this.lm = b.tm(a, this.yu), this.Fq = !1); this.xj = !1 } return this.lm }, n = null) : (b.assert("function" === typeof b.F.vA, b.e.jd, "BaseNodesWebGL.js"), b.F.vA(), delete b.F.vA); b.assert("function" === typeof b.F.yz, b.e.jd, "BaseNodesPropertyDefine.js"); b.F.yz(); delete b.F.yz; b.k.M7 = 0; b.k.O7 = 1; b.k.N7 = 2; b.k.P7 = 3; b.k.L7 = 4; b.Qi = b.k.extend({ textureAtlas: null, quadsToDraw: 0, mo: 0, uK: 0, gi: 0, jh: 0, Il: null, Oa: !1, p: null, kv: !1, vb: "AtlasNode", ctor: function(a, c, d, e) { b.k.prototype.ctor.call(this); this.Il = b.color.WHITE; this.p = { src: b.dc, S: b.cc }; this.kv = !1; void 0 !== e && this.v1(a, c, d, e) }, Gp: function() { b.log(b.e.hQ) }, Hg: function() { return this.Oa ? this.Il : b.k.prototype.Hg.call(this) }, Ue: function(a) { var c = this.color; this.Oa = a; this.color = c }, Wf: function() { return this.Oa }, Dh: function() { return this.p }, Se: function(a, c) { this.p = void 0 === c ? a : { src: a, S: c } }, eG: function(a) { this.textureAtlas = a }, ME: function() { return this.textureAtlas }, Jca: function() { return this.quadsToDraw }, sja: function(a) { this.quadsToDraw = a }, Sk: null, xc: null, wD: null, Oq: null, v1: function(a, c, d, e) { if (!a) throw "cc.AtlasNode.initWithTileFile(): title should not be null"; a = b.Da.Hc(a); return this.qa(a, c, d, e) }, qa: null, JB: function(a, c, d, e) { this.gi = c; this.jh = d; this.Oa = !0; this.xc = a; if (!this.xc) return b.log(b.e.yG), !1; this.Sk = this.xc; this.Gu(); this.quadsToDraw = e; return !0 }, KB: function(a, c, d, e) { this.gi = c; this.jh = d; this.Il = b.color.WHITE; this.Oa = !0; this.p.src = b.dc; this.p.S = b.cc; c = this.Xd; this.Oq = new Float32Array([c.r / 255, c.g / 255, c.b / 255, this.Bg / 255]); this.textureAtlas = new b.Vh; this.textureAtlas.qa(a, e); if (!this.textureAtlas) return b.log(b.e.yG), !1; this.Qf(); this.ML(); this.Gu(); this.quadsToDraw = e; this.shaderProgram = b.Md.nc(b.Oz); this.wD = b.l.getUniformLocation(this.shaderProgram.Lm(), "u_color"); return !0 }, Y: null, aj: function(a) { a = a || b.l; b.Js(this); b.Hh(this.p.src, this.p.S); this.wD && this.Oq && (a.uniform4fv(this.wD, this.Oq), this.textureAtlas.HM(this.quadsToDraw)) }, cb: null, RX: function(a) { var c = this.Xd; if (c.r != a.r || c.g != a.g || c.b != a.b) { c = b.color(a.r, a.g, a.b); this.Il = a; if (this.Oa) { var d = this.fb; c.r = c.r * d / 255; c.g = c.g * d / 255; c.b = c.b * d / 255 } b.k.prototype.cb.call(this, a); this.ee() } }, ee: function() { var a = this.za(); if (a && this.xc) { var c = this.xc.Wa; if (c) { var d = a.Wa, a = O(0, 0, c.width, c.height); d instanceof HTMLCanvasElement ? b.Hm(c, this.ya, a, d) : (d = b.Hm(c, this.ya, a), a = new b.aa, a.Kc(d), a.rb(), this.Ya(a)) } } }, SX: function(a) { var c = b.color(a.r, a.g, a.b); this.Il = a; var d = this.fb; this.Oa && (c.r = c.r * d / 255, c.g = c.g * d / 255, c.b = c.b * d / 255); b.k.prototype.cb.call(this, a); a = this.ya; this.Oq = new Float32Array([a.r / 255, a.g / 255, a.b / 255, d / 255]) }, Sa: function() {}, SC: function(a) { b.k.prototype.Sa.call(this, a); this.Oa && (this.color = this.Il) }, TC: function(a) { b.k.prototype.Sa.call(this, a); this.Oa ? this.color = this.Il : (a = this.ya, this.Oq = new Float32Array([a.r / 255, a.g / 255, a.b / 255, this.fb / 255])) }, za: null, er: function() { return this.Sk }, EB: function() { return this.textureAtlas.texture }, Ya: null, XC: function(a) { this.Sk = a }, YC: function(a) { this.textureAtlas.texture = a; this.Qf(); this.ML() }, Gu: null, ZU: function() { var a = this.texture.se(); this.uK = 0 | a.height / this.jh; this.mo = 0 | a.width / this.gi }, $U: function() { var a = this.texture, c = a.se(); this.kv && (c = a.O); this.uK = 0 | c.height / this.jh; this.mo = 0 | c.width / this.gi }, Qf: function() { this.textureAtlas.texture.Ai() || (this.p.src = b.SRC_ALPHA, this.p.S = b.ONE_MINUS_SRC_ALPHA) }, ML: function() { this.Oa = this.textureAtlas.texture.Ai() }, PC: function(a) { this.kv = a } }); n = b.Qi.prototype; b.A === b.U ? (n.qa = n.KB, n.Y = n.aj, n.cb = n.SX, n.Sa = n.TC, n.za = n.EB, n.Ya = n.YC, n.Gu = n.$U) : (n.qa = n.JB, n.Y = b.k.prototype.Y, n.cb = n.RX, n.Sa = n.SC, n.za = n.er, n.Ya = n.XC, n.Gu = n.ZU, b.hb.hw || (n.ee = function() { var a, c = this.za(); if (c && this.xc && (a = c.Wa)) { var d = this.xc.Wa; if (c = b.Da.Ww(d)) d = O(0, 0, d.width, d.height), a instanceof HTMLCanvasElement ? b.Gm(a, c, this.ya, d, a) : (a = b.Gm(a, c, this.ya, d), c = new b.aa, c.Kc(a), c.rb(), this.Ya(c)) } })); b.i(n, "opacity", n.Ig, n.Sa); b.i(n, "color", n.Hg, n.cb); b.i(n, "texture", n.za, n.Ya); b.Qi.create = function(a, c, d, e) { return new b.Qi(a, c, d, e) }; b.F.BA = function() { b.aa = b.oa.extend({ t9: !0, mi: null, mj: 0, lj: 0, qo: "", O: null, Fi: 0, Gi: 0, jv: !1, co: !1, shaderProgram: null, wc: !1, Wa: null, Zd: null, url: null, gb: null, ctor: function() { this.O = N(0, 0); this.mi = b.aa.yM }, HF: function() { this.Zd && b.l.deleteTexture(this.Zd); b.T.Ki(this.url) }, bN: function() { return this.mi }, dN: function() { return this.mj }, cN: function() { return this.lj }, getName: function() { return this.Zd }, se: function() { return N(this.O.width / b.pb(), this.O.height / b.pb()) }, eh: function() { return this.O.width / b.pb() }, yk: function() { return this.O.height / b.pb() }, Z_: function() { return this.O }, x0: function() { return this.Fi }, g4: function(a) { this.Fi = a }, y0: function() { return this.Gi }, h4: function(a) { this.Gi = a }, JE: function() { return this.shaderProgram }, bG: function(a) { this.shaderProgram = a }, Ai: function() { return this.jv }, j1: function() { return this.co }, description: function() { return "\x3ccc.Texture2D | Name \x3d " + this.qo + " | Dimensions \x3d " + this.mj + " x " + this.lj + " | Coordinates \x3d (" + this.Fi + ", " + this.Gi + ")\x3e" }, m3: function() {}, R1: function(a) { return a }, Bs: function(a, c, d, e, f) { var g = b.aa, h = b.l, k = h.RGBA, m = h.UNSIGNED_BYTE, p = d * b.aa.BI[c] / 8; 0 === p % 8 ? h.pixelStorei(h.UNPACK_ALIGNMENT, 8) : 0 === p % 4 ? h.pixelStorei(h.UNPACK_ALIGNMENT, 4) : 0 === p % 2 ? h.pixelStorei(h.UNPACK_ALIGNMENT, 2) : h.pixelStorei(h.UNPACK_ALIGNMENT, 1); this.Zd = h.createTexture(); b.te(this); h.texParameteri(h.TEXTURE_2D, h.TEXTURE_MIN_FILTER, h.LINEAR); h.texParameteri(h.TEXTURE_2D, h.TEXTURE_MAG_FILTER, h.LINEAR); h.texParameteri(h.TEXTURE_2D, h.TEXTURE_WRAP_S, h.CLAMP_TO_EDGE); h.texParameteri(h.TEXTURE_2D, h.TEXTURE_WRAP_T, h.CLAMP_TO_EDGE); switch (c) { case g.Vi: k = h.RGBA; break; case g.pq: k = h.RGB; break; case g.Tt: m = h.UNSIGNED_SHORT_4_4_4_4; break; case g.St: m = h.UNSIGNED_SHORT_5_5_5_1; break; case g.oq: m = h.UNSIGNED_SHORT_5_6_5; break; case g.rz: k = h.LUMINANCE_ALPHA; break; case g.nq: k = h.ALPHA; break; case g.sz: k = h.LUMINANCE; break; default: b.assert(0, b.e.LT) } h.texImage2D(h.TEXTURE_2D, 0, k, d, e, 0, k, m, a); this.O.width = f.width; this.O.height = f.height; this.mj = d; this.lj = e; this.mi = c; this.Fi = f.width / d; this.Gi = f.height / e; this.co = this.jv = !1; this.shaderProgram = b.Md.nc(b.tq); return this.wc = !0 }, XZ: function(a) { var c = [0, this.Gi, this.Fi, this.Gi, 0, 0, this.Fi, 0], d = this.mj * this.Fi, e = this.lj * this.Gi; a = [a.x, a.y, 0, d + a.x, a.y, 0, a.x, e + a.y, 0, d + a.x, e + a.y, 0]; b.Jc(b.Qd | b.tn); this.Eb.Oc(); this.Eb.ft(); b.te(this); d = b.l; d.vertexAttribPointer(b.qb, 2, d.FLOAT, !1, 0, a); d.vertexAttribPointer(b.zd, 2, d.FLOAT, !1, 0, c); d.drawArrays(d.TRIANGLE_STRIP, 0, 4) }, $Z: function(a) { var c = [0, this.Gi, this.Fi, this.Gi, 0, 0, this.Fi, 0]; a = [a.x, a.y, a.x + a.width, a.y, a.x, a.y + a.height, a.x + a.width, a.y + a.height ]; b.Jc(b.Qd | b.tn); this.Eb.Oc(); this.Eb.ft(); b.te(this); var d = b.l; d.vertexAttribPointer(b.qb, 2, d.FLOAT, !1, 0, a); d.vertexAttribPointer(b.zd, 2, d.FLOAT, !1, 0, c); d.drawArrays(d.TRIANGLE_STRIP, 0, 4) }, IN: function(a) { if (null == a) return b.log(b.e.OT), !1; var c = a.d1(), d = a.l0(), e = b.Ro.rr; if (c > e || d > e) return b.log(b.e.PT, c, d, e, e), !1; this.wc = !0; return this.EW(a, c, d) }, Kc: function(a) { a && (this.Zd = b.l.createTexture(), this.Wa = a) }, n0: function() { return this.Wa }, H1: function() { return this.wc }, rb: function() { if (b.Ov) { if (!this.Wa) { var a = b.T.Hd(this.url); if (!a) return; this.Kc(a) } this.Wa.width && this.Wa.height && (this.wc = !0, a = b.l, b.te(this), a.pixelStorei(a.UNPACK_ALIGNMENT, 4), a.texImage2D(a.TEXTURE_2D, 0, a.RGBA, a.RGBA, a.UNSIGNED_BYTE, this.Wa), 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.Md.nc(b.tq), b.te(null), a = this.Wa.height, this.mj = this.O.width = this.Wa.width, this.lj = this.O.height = a, this.mi = b.aa.Vi, this.Gi = this.Fi = 1, this.co = this.jv = !1, this.Sd()) } }, sd: function() { b.log(b.e.UT); return null }, q1: function() { b.log(b.e.NT); return !1 }, s1: function() { b.log(b.e.RT); return !1 }, t1: function() { b.log(b.e.TT); return !1 }, D4: function(a) { var c = b.l; b.assert(this.mj == b.Xj(this.mj) && this.lj == b.Xj(this.lj) || a.U5 == c.CLAMP_TO_EDGE && a.V5 == c.CLAMP_TO_EDGE, "WebGLRenderingContext.CLAMP_TO_EDGE should be used in NPOT textures"); b.te(this); c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MIN_FILTER, a.lga); c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MAG_FILTER, a.iga); c.texParameteri(c.TEXTURE_2D, c.TEXTURE_WRAP_S, a.U5); c.texParameteri(c.TEXTURE_2D, c.TEXTURE_WRAP_T, a.V5) }, M3: function() { var a = b.l; b.te(this); this.co ? 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.NEAREST) }, PF: function() { var a = b.l; b.te(this); this.co ? 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.mj == b.Xj(this.mj) && this.lj == b.Xj(this.lj), "Mimpap texture only works in POT textures"); b.te(this); b.l.generateMipmap(b.l.TEXTURE_2D); this.co = !0 }, n5: function() { return b.aa.CU[this.mi] }, zZ: function(a) { a = a || this.mi; var c = b.aa.BI[a]; if (null != c) return c; b.log(b.e.KT, a); return -1 }, EW: function(a, c, d) { var e = b.aa, f = a.getData(), g = null, g = null, h = a.Ida(), k = N(a.d1(), a.l0()), m = e.yM, p = a.eba(); h || (8 <= p ? m = e.pq : (b.log(b.e.HT), m = e.oq)); var r = c * d; if (m == e.oq) if (h) for (f = new Uint16Array(c * d), g = a.getData(), p = 0; p < r; ++p) f[p] = (g[p] >> 0 & 255) >> 3 << 11 | (g[p] >> 8 & 255) >> 2 << 5 | (g[p] >> 16 & 255) >> 3 << 0; else for (f = new Uint16Array(c * d), g = a.getData(), p = 0; p < r; ++p) f[p] = (g[p] & 255) >> 3 << 11 | (g[p] & 255) >> 2 << 5 | (g[p] & 255) >> 3 << 0; else if (m == e.Tt) for (f = new Uint16Array(c * d), g = a.getData(), p = 0; p < r; ++p) f[p] = (g[p] >> 0 & 255) >> 4 << 12 | (g[p] >> 8 & 255) >> 4 << 8 | (g[p] >> 16 & 255) >> 4 << 4 | (g[p] >> 24 & 255) >> 4 << 0; else if (m == e.St) for (f = new Uint16Array(c * d), g = a.getData(), p = 0; p < r; ++p) f[p] = (g[p] >> 0 & 255) >> 3 << 11 | (g[p] >> 8 & 255) >> 3 << 6 | (g[p] >> 16 & 255) >> 3 << 1 | (g[p] >> 24 & 255) >> 7 << 0; else if (m == e.nq) for (f = new Uint8Array(c * d), g = a.getData(), p = 0; p < r; ++p) f[p] = g >> 24 & 255; if (h && m == e.pq) for (g = a.getData(), f = new Uint8Array(c * d * 3), p = 0; p < r; ++p) f[3 * p] = g >> 0 & 255, f[3 * p + 1] = g >> 8 & 255, f[3 * p + 2] = g >> 16 & 255; this.Bs(f, m, c, d, k); a.getData(); this.jv = a.cea(); return !0 }, $d: function(a, c) { this.gb || (this.gb = []); this.gb.push({ Bh: a, Uf: c }) }, q3: function(a) { if (this.gb) for (var c = this.gb, d = 0; d < c.length; d++) c[d].Uf == a && c.splice(d, 1) }, Sd: function() { if (this.gb) { for (var a = this.gb, c = 0, d = a.length; c < d; c++) { var e = a[c]; e.Bh.call(e.Uf, this) } a.length = 0 } } }) }; b.F.CA = function() { var a = b.Vh.prototype; a.em = function() { var a = b.l; this.vc[0] = a.createBuffer(); this.vc[1] = a.createBuffer(); this.$l = a.createBuffer(); this.wv() }; a.wv = function() { var a = b.l; a.bindBuffer(a.ARRAY_BUFFER, this.$l); a.bufferData(a.ARRAY_BUFFER, this.bd, a.DYNAMIC_DRAW); a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, this.vc[1]); a.bufferData(a.ELEMENT_ARRAY_BUFFER, this.lb, a.STATIC_DRAW) }; a.HM = function(a) { var d; d = 0; if (0 !== a && this.texture && this.texture.wc) { var e = b.l; b.te(this.texture); b.Jc(b.El); e.bindBuffer(e.ARRAY_BUFFER, this.$l); this.dirty && e.bufferData(e.ARRAY_BUFFER, this.bd, e.DYNAMIC_DRAW); e.vertexAttribPointer(b.qb, 3, e.FLOAT, !1, 24, 0); e.vertexAttribPointer(b.Ce, 4, e.UNSIGNED_BYTE, !0, 24, 12); e.vertexAttribPointer(b.zd, 2, e.FLOAT, !1, 24, 16); this.dirty && (this.dirty = !1); e.bindBuffer(e.ELEMENT_ARRAY_BUFFER, this.vc[1]); b.HH ? e.drawElements(e.TRIANGLE_STRIP, 6 * a, e.UNSIGNED_SHORT, 6 * d * this.lb.BYTES_PER_ELEMENT) : e.drawElements(e.TRIANGLES, 6 * a, e.UNSIGNED_SHORT, 6 * d * this.lb.BYTES_PER_ELEMENT); b.sf++ } } }; b.F.DA = function() { var a = b.Da; a.rb = function(a) { var d = this.Gc; b.Ov || (d = this.qr); var e = d[a]; e || (e = d[a] = new b.aa, e.url = a); e.rb() }; a.Hc = function(a, d, e) { b.assert(a, b.e.JT); var f = this.Gc; b.Ov || (f = this.qr); var g = f[a] || f[b.T.Gl[a]]; if (g) return d && d.call(e), g; b.T.Hd(a) || (b.T.TI(a) ? b.T.load(a, function() { d && d.call(e) }) : b.T.Rf[a] = b.T.Gs(a, function(e, f) { if (e) return d ? d(e) : e; b.Da.rb(a); d && d(null, f) })); g = f[a] = new b.aa; g.url = a; return g }; delete a }; b.F.Ez = function() { var a = b.aa; a.X7 = function(a) { b.wS = a }; a.Vi = 2; a.pq = 3; a.oq = 4; a.nq = 5; a.sz = 6; a.rz = 7; a.Tt = 8; a.St = 7; a.iH = 9; a.hH = 10; a.nS = a.Vi; var c = b.aa.CU = {}; c[a.Vi] = "RGBA8888"; c[a.pq] = "RGB888"; c[a.oq] = "RGB565"; c[a.nq] = "A8"; c[a.sz] = "I8"; c[a.rz] = "AI88"; c[a.Tt] = "RGBA4444"; c[a.St] = "RGB5A1"; c[a.iH] = "PVRTC4"; c[a.hH] = "PVRTC2"; c = b.aa.BI = {}; c[a.Vi] = 32; c[a.pq] = 24; c[a.oq] = 16; c[a.nq] = 8; c[a.sz] = 8; c[a.rz] = 16; c[a.Tt] = 16; c[a.St] = 16; c[a.iH] = 4; c[a.hH] = 3; c = b.aa.prototype; b.i(c, "name", c.getName); b.i(c, "pixelFormat", c.bN); b.i(c, "pixelsWidth", c.dN); b.i(c, "pixelsHeight", c.cN); b.i(c, "width", c.eh); b.i(c, "height", c.yk); a.yM = a.nS }; b.F.Fz = function() { var a = b.Vh.prototype; b.i(a, "totalQuads", a.vN); b.i(a, "capacity", a.UM); b.i(a, "quads", a.fN, a.oP) }; b.c6 = 51; b.f6 = 19; b.h6 = 18; b.e6 = 50; b.b6 = 34; b.Z5 = 35; b.a6 = 33; b.d6 = 49; b.g6 = 17; b.wS = !1; b.A === b.Ba ? b.aa = b.oa.extend({ O: null, wc: !1, Wa: null, gb: null, url: null, ctor: function() { this.O = N(0, 0); this.wc = !1; this.Wa = null }, dN: function() { return this.O.width }, cN: function() { return this.O.height }, se: function() { var a = b.pb(); return N(this.O.width / a, this.O.height / a) }, eh: function() { return this.O.width / b.pb() }, yk: function() { return this.O.height / b.pb() }, Z_: function() { return this.O }, Kc: function(a) { a && (this.Wa = a) }, n0: function() { return this.Wa }, H1: function() { return this.wc }, rb: function() { if (!this.wc) { if (!this.Wa) { var a = b.T.Hd(this.url); if (!a) return; this.Kc(a) } this.wc = !0; a = this.Wa; this.O.width = a.width; this.O.height = a.height; this.Sd() } }, description: function() { return "\x3ccc.Texture2D | width \x3d " + this.O.width + " height " + this.O.height + "\x3e" }, Bs: function() { return !1 }, IN: function() { return !1 }, sd: function() { return !1 }, HF: function() {}, getName: function() { return null }, x0: function() { return 1 }, g4: function() {}, y0: function() { return 1 }, h4: function() {}, bN: function() { return null }, JE: function() { return null }, bG: function() {}, Ai: function() { return !1 }, j1: function() { return !1 }, m3: function() {}, R1: function(a) { return a }, XZ: function() {}, $Z: function() {}, q1: function() { b.log(b.e.MT); return !1 }, s1: function() { b.log(b.e.QT); return !1 }, t1: function() { b.log(b.e.ST); return !1 }, D4: function() {}, M3: function() {}, PF: function() {}, generateMipmap: function() {}, n5: function() { return "" }, zZ: function() { return -1 }, $d: function(a, c) { this.gb || (this.gb = []); this.gb.push({ Bh: a, Uf: c }) }, q3: function(a) { if (this.gb) for (var c = this.gb, d = 0; d < c.length; d++) c[d].Uf == a && c.splice(d, 1) }, Sd: function() { if (this.gb) { for (var a = this.gb, c = 0, d = a.length; c < d; c++) { var e = a[c]; e.Bh.call(e.Uf, this) } a.length = 0 } } }) : (b.assert("function" === typeof b.F.BA, b.e.jd, "TexturesWebGL.js"), b.F.BA(), delete b.F.BA); b.assert("function" === typeof b.F.Ez, b.e.jd, "TexturesPropertyDefine.js"); b.F.Ez(); delete b.F.Ez; b.Da = { Gc: {}, Qr: {}, rD: 0 | 1E3 * Math.random(), qr: {}, IW: function() { var a, c = this.qr, d = this.Gc; for (a in c) { var e = c[a]; e.rb(); d[a] = e } this.qr = {} }, N9: function() { b.log(b.e.s5) }, K9: function() { b.log(b.e.q5) }, description: function() { return "\x3cTextureCache | Number of textures \x3d " + this.Gc.length + "\x3e" }, Ym: function(a) { return this.Gc[a] || this.Gc[b.T.Gl[a]] }, p0: function(a) { for (var c in this.Gc) if (this.Gc[c] == a) return c; return null }, NV: function() { this.rD++; return "_textureKey_" + this.rD }, Ww: function(a) { var c = this.p0(a); c || (c = a instanceof HTMLImageElement ? a.src : this.NV()); this.Qr[c] || (this.Qr[c] = b.Yo(a)); return this.Qr[c] }, M9: function() { b.log(b.e.r5) }, Jha: function() { var a = this.Gc, c; for (c in a) a[c] && a[c].HF(); this.Gc = {} }, Tha: function(a) { if (a) { var c = this.Gc, d; for (d in c) c[d] == a && (c[d].HF(), delete c[d]) } }, Uha: function(a) { null != a && this.Gc[a] && delete this.Gc[a] }, AZ: function(a, c) { if (c instanceof b.aa) this.Gc[a] = c; else { var d = new b.aa; d.Kc(c); d.rb(); this.Gc[a] = d } }, S9: function(a, c) { b.assert(a, b.e.u5); if (c && this.Gc[c]) return this.Gc[c]; var d = new b.aa; d.IN(a); null != c && null != d ? this.Gc[c] = d : b.log(b.e.t5); return d }, aaa: function() { var a = 0, c = 0, d = this.Gc, e; for (e in d) { var f = d[e]; a++; f.Wa instanceof HTMLImageElement ? b.log(b.e.v5, e, f.Wa.src, f.pixelsWidth, f.pixelsHeight) : b.log(b.e.JP, e, f.pixelsWidth, f.pixelsHeight); c += f.pixelsWidth * f.pixelsHeight * 4 } d = this.Qr; for (e in d) { var f = d[e], g; for (g in f) { var h = f[g]; a++; b.log(b.e.JP, e, h.width, h.height); c += h.width * h.height * 4 } } b.log(b.e.w5, a, c / 1024, (c / 1048576).toFixed(2)) }, nk: function() { this.Gc = {}; this.Qr = {}; this.rD = 0 | 1E3 * Math.random(); this.qr = {} } }; b.A === b.Ba ? (n = b.Da, n.rb = function(a) { var c = this.Gc, d = c[a]; d || (d = c[a] = new b.aa, d.url = a); d.rb() }, n.Hc = function(a, c, d) { b.assert(a, b.e.IT); var e = this.Gc, f = e[a] || e[b.T.Gl[a]]; if (f) return c && c.call(d), f; f = e[a] = new b.aa; f.url = a; b.T.Hd(a) ? f.rb() : b.T.TI(a) ? b.T.load(a, function() { c && c.call(d) }) : b.T.Rf[a] = b.T.Gs(a, function(d, e) { if (d) return c ? c(d) : d; b.Da.rb(a); c && c(null, e) }); return f }, n = null) : (b.assert("function" === typeof b.F.DA, b.e.jd, "TexturesWebGL.js"), b.F.DA(), delete b.F.DA); b.Vh = b.oa.extend({ dirty: !1, texture: null, lb: null, vc: null, Ad: 0, Dc: null, bd: null, $l: null, Lf: null, ctor: function(a, c) { this.vc = []; "string" == typeof a ? this.bl(a, c) : a instanceof b.aa && this.qa(a, c) }, vN: function() { return this.Ma }, UM: function() { return this.Ad }, za: function() { return this.texture }, Ya: function(a) { this.texture = a }, bP: function(a) { this.dirty = a }, hF: function() { return this.dirty }, fN: function() { return this.Dc }, oP: function(a) { this.Dc = a }, qV: function(a, c) { if (a) for (var d = 0; d < a.length; d++) this.Wv(a[d], c + d) }, Wv: function(a, c) { var d = this.Dc; d[c] ? (d[c].C = a.C, d[c].L = a.L, d[c].K = a.K, d[c].J = a.J) : d[c] = new b.zb(a.K, a.C, a.J, a.L, this.bd, c * b.zb.BYTES_PER_ELEMENT) }, description: function() { return "\x3ccc.TextureAtlas | totalQuads \x3d" + this.Ma + "\x3e" }, tL: function() { if (0 !== this.Ad) for (var a = this.lb, c = this.Ad, d = 0; d < c; d++) b.HH ? (a[6 * d + 0] = 4 * d + 0, a[6 * d + 1] = 4 * d + 0, a[6 * d + 2] = 4 * d + 2, a[6 * d + 3] = 4 * d + 1, a[6 * d + 4] = 4 * d + 3, a[6 * d + 5] = 4 * d + 3) : (a[6 * d + 0] = 4 * d + 0, a[6 * d + 1] = 4 * d + 1, a[6 * d + 2] = 4 * d + 2, a[6 * d + 3] = 4 * d + 3, a[6 * d + 4] = 4 * d + 2, a[6 * d + 5] = 4 * d + 1) }, em: function() { var a = b.l; this.vc[0] = a.createBuffer(); this.vc[1] = a.createBuffer(); this.$l = a.createBuffer(); this.wv() }, wv: function() { var a = b.l; a.bindBuffer(a.ARRAY_BUFFER, this.$l); a.bufferData(a.ARRAY_BUFFER, this.bd, a.DYNAMIC_DRAW); a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, this.vc[1]); a.bufferData(a.ELEMENT_ARRAY_BUFFER, this.lb, a.STATIC_DRAW) }, bl: function(a, c) { var d = b.Da.Hc(a); if (d) return this.qa(d, c); b.log(b.e.VT, a); return !1 }, qa: function(a, c) { b.assert(a, b.e.WT); this.Ad = c |= 0; this.Ma = 0; this.texture = a; this.Dc = []; this.lb = new Uint16Array(6 * c); var d = b.zb.BYTES_PER_ELEMENT; this.bd = new ArrayBuffer(d * c); this.Lf = new Uint8Array(this.bd); if ((!this.Dc || !this.lb) && 0 < c) return !1; for (var e = this.Dc, f = 0; f < c; f++) e[f] = new b.zb(null, null, null, null, this.bd, f * d); this.tL(); this.em(); return this.dirty = !0 }, Ay: function(a, c) { b.assert(a, b.e.fU); b.assert(0 <= c && c < this.Ad, b.e.gU); this.Ma = Math.max(c + 1, this.Ma); this.Wv(a, c); this.dirty = !0 }, fF: function(a, c) { b.assert(c < this.Ad, b.e.ZT); this.Ma++; if (this.Ma > this.Ad) b.log(b.e.PH); else { var d = b.zb.BYTES_PER_ELEMENT, e = c * d, f = (this.Ma - 1 - c) * d; this.Dc[this.Ma - 1] = new b.zb(null, null, null, null, this.bd, (this.Ma - 1) * d); this.Lf.set(this.Lf.subarray(e, e + f), e + d); this.Wv(a, c); this.dirty = !0 } }, Oda: function(a, c, d) { d = d || a.length; b.assert(c + d <= this.Ad, b.e.$T); var e = b.zb.BYTES_PER_ELEMENT; this.Ma += d; if (this.Ma > this.Ad) b.log(b.e.PH); else { var f = c * e, g = (this.Ma - 1 - c - d) * e, h = this.Ma - 1 - d, k; for (k = 0; k < d; k++) this.Dc[h + k] = new b.zb(null, null, null, null, this.bd, (this.Ma - 1) * e); this.Lf.set(this.Lf.subarray(f, f + g), f + e * d); for (k = 0; k < d; k++) this.Wv(a[k], c + k); this.dirty = !0 } }, Nda: function(a, c) { if (a !== c) { b.assert(0 <= c || c < this.Ma, b.e.XT); b.assert(0 <= a || a < this.Ma, b.e.YT); var d = b.zb.BYTES_PER_ELEMENT, e = this.Lf, f = e.subarray(a * d, d), g; a > c ? (g = c * d, e.set(e.subarray(g, g + (a - c) * d), g + d), e.set(f, g)) : (g = (a + 1) * d, e.set(e.subarray(g, g + (c - a) * d), g - d), e.set(f, c * d)); this.dirty = !0 } }, KO: function(a) { b.assert(a < this.Ma, b.e.dU); var c = b.zb.BYTES_PER_ELEMENT; this.Ma--; this.Dc.length = this.Ma; if (a !== this.Ma) { var d = (a + 1) * c; this.Lf.set(this.Lf.subarray(d, d + (this.Ma - a) * c), d - c) } this.dirty = !0 }, s3: function(a, c) { b.assert(a + c <= this.Ma, b.e.eU); this.Ma -= c; if (a !== this.Ma) { var d = b.zb.BYTES_PER_ELEMENT, e = (a + c) * d; this.Lf.set(this.Lf.subarray(e, e + (this.Ma - a) * d), a * d) } this.dirty = !0 }, IO: function() { this.Ma = this.Dc.length = 0 }, Lk: function(a) { this.dirty = a }, JF: function(a) { if (a == this.Ad) return !0; var c = b.zb.BYTES_PER_ELEMENT, d = this.Ad; this.Ma = Math.min(this.Ma, a); var e = this.Ad = 0 | a, f = this.Ma; if (null == this.Dc) for (this.Dc = [], this.bd = new ArrayBuffer(c * e), this.Lf = new Uint8Array(this.bd), a = 0; a < e; a++) this.Dc = new b.zb(null, null, null, null, this.bd, a * c); else { var g, h, k = this.Dc; if (e > d) { g = []; h = new ArrayBuffer(c * e); for (a = 0; a < f; a++) g[a] = new b.zb(k[a].K, k[a].C, k[a].J, k[a].L, h, a * c); for (; a < e; a++) g[a] = new b.zb(null, null, null, null, h, a * c) } else for (f = Math.max(f, e), g = [], h = new ArrayBuffer(c * e), a = 0; a < f; a++) g[a] = new b.zb(k[a].K, k[a].C, k[a].J, k[a].L, h, a * c); this.Lf = new Uint8Array(h); this.Dc = g; this.bd = h } null == this.lb ? this.lb = new Uint16Array(6 * e) : e > d ? (c = new Uint16Array(6 * e), c.set(this.lb, 0), this.lb = c) : this.lb = this.lb.subarray(0, 6 * e); this.tL(); this.wv(); return this.dirty = !0 }, CN: function(a) { this.Ma += a }, mO: function(a, c, d) { if (void 0 === d) { if (d = c, c = this.Ma - a, b.assert(d + (this.Ma - a) <= this.Ad, b.e.aU), 0 === c) return } else if (b.assert(d + c <= this.Ma, b.e.bU), b.assert(a < this.Ma, b.e.cU), a == d) return; var e = b.zb.BYTES_PER_ELEMENT, f = a * e, g = c * e, h = this.Lf, k = h.subarray(f, f + g), m = d * e; d < a ? (c = d * e, h.set(h.subarray(c, c + (a - d) * e), c + g)) : (c = (a + c) * e, h.set(h.subarray(c, c + (d - a) * e), f)); h.set(k, m); this.dirty = !0 }, NM: function(a, c) { for (var d = c * b.zb.BYTES_PER_ELEMENT, e = new Uint8Array(this.bd, a * b.zb.BYTES_PER_ELEMENT, d), f = 0; f < d; f++) e[f] = 0 }, IM: function() { this.HM(this.Ma) }, u9: function() { var a = b.l; this.vc && (this.vc[0] && a.deleteBuffer(this.vc[0]), this.vc[1] && a.deleteBuffer(this.vc[1])); this.$l && a.deleteBuffer(this.$l) } }); n = b.Vh.prototype; b.i(n, "totalQuads", n.vN); b.i(n, "capacity", n.UM); b.i(n, "quads", n.fN, n.oP); b.Vh.create = function(a, c) { return new b.Vh(a, c) }; b.Vh.jE = b.Vh.create; b.A === b.U && (b.assert("function" === typeof b.F.CA, b.e.jd, "TexturesWebGL.js"), b.F.CA(), delete b.F.CA); b.assert("function" === typeof b.F.Fz, b.e.jd, "TexturesPropertyDefine.js"); b.F.Fz(); delete b.F.Fz; b.Zj = b.k.extend({ vb: "Scene", ctor: function() { b.k.prototype.ctor.call(this); this.ej = !0; this.ll(0.5, 0.5); this.Kd(b.I.Aa()) } }); b.Zj.create = function() { return new b.Zj }; b.ZG = b.Zj.extend({ fj: null, pr: 0, Jl: 0, Xb: null, vb: "LoaderScene", da: function() { var a = this, c = 200, d = a.QA = b.Yc.create(b.color(32, 32, 32, 255)); d.P(b.Sj.Aw); a.X(d, 0); var e = 24, f = -c / 2 + 100; b.CK && (b.T.Gs(b.CK, { gF: !1 }, function(d, e) { c = e.height; a.hK(e, b.Sj.ks) }), e = 14, f = -c / 2 - 10); e = a.Xb = b.M.create("Loading... 0%", "Arial", e); e.P(b.Hi(b.Sj.ks, C(0, f))); e.cb(b.color(180, 180, 180)); d.X(this.Xb, 10); return !0 }, hK: function(a, c) { var d = new b.aa; d.Kc(a); d.rb(); d = b.N.create(d); d.Li(b.pb()); d.x = c.x; d.y = c.y; this.QA.X(d, 10) }, Z: function() { b.k.prototype.Z.call(this); this.Um(this.Kr, 0.3) }, sb: function() { b.k.prototype.sb.call(this); this.Xb.Kb("Loading... 0%") }, ZE: function(a, c) { "string" == typeof a && (a = [a]); this.KF = a || []; this.ed = c }, Kr: function() { var a = this; a.an(a.Kr); var c = a.KF; a.pr = c.length; a.Jl = 0; b.T.load(c, function(c, e) { a.Jl = e }, function() { a.ed && a.ed() }); a.Um(a.Wr) }, Wr: function() { var a = this.Jl, c = this.pr, d; d = Math.min(a / c * 100 | 0, 100); this.Xb.Kb("Loading... " + d + "%"); a >= c && this.an(this.Wr) } }); b.ZG.Tx = function(a, c) { var d = b; d.Hs || (d.Hs = new b.ZG, d.Hs.da()); d.Hs.ZE(a, c); b.I.dy(d.Hs); return d.Hs }; b.F.kz = function() { var a = b.sc.prototype; a.eM = function() {}; a.QP = function() {}; a.R = b.k.prototype.R }; b.F.yA = function() { var a = b.Yc.prototype; a.$v = null; a.fD = null; a.HD = null; a.aB = null; a.hD = null; a.gD = null; a.ctor = function(a, d, e) { this.hD = new ArrayBuffer(32); this.gD = new ArrayBuffer(16); var f = this.hD, g = this.gD, h = b.Vb.BYTES_PER_ELEMENT, k = b.yf.BYTES_PER_ELEMENT; this.$v = [new b.Vb(0, 0, f, 0), new b.Vb(0, 0, f, h), new b.Vb(0, 0, f, 2 * h), new b.Vb(0, 0, f, 3 * h)]; this.fD = [b.color(0, 0, 0, 255, g, 0), b.color(0, 0, 0, 255, g, k), b.color(0, 0, 0, 255, g, 2 * k), b.color(0, 0, 0, 255, g, 3 * k)]; this.HD = b.l.createBuffer(); this.aB = b.l.createBuffer(); b.sc.prototype.ctor.call(this); this.p = new b.ec(b.dc, b.cc); b.Yc.prototype.da.call(this, a, d, e) }; a.Kd = function(a, d) { var e = this.$v; void 0 === d ? (e[1].x = a.width, e[2].y = a.height, e[3].x = a.width, e[3].y = a.height) : (e[1].x = a, e[2].y = d, e[3].x = a, e[3].y = d); this.RA(); b.sc.prototype.Kd.call(this, a, d) }; a.rj = function(a) { var d = this.$v; d[1].x = a; d[3].x = a; this.RA(); b.sc.prototype.rj.call(this, a) }; a.qj = function(a) { var d = this.$v; d[2].y = a; d[3].y = a; this.RA(); b.sc.prototype.qj.call(this, a) }; a.bc = function() { for (var a = this.ya, d = this.fb, e = this.fD, f = 0; 4 > f; f++) e[f].r = a.r, e[f].g = a.g, e[f].b = a.b, e[f].a = d; this.OI() }; a.Y = function(a) { a = a || b.l; b.Js(this); b.Jc(b.Qd | b.ou); a.bindBuffer(a.ARRAY_BUFFER, this.HD); a.vertexAttribPointer(b.qb, 2, a.FLOAT, !1, 0, 0); a.bindBuffer(a.ARRAY_BUFFER, this.aB); a.vertexAttribPointer(b.Ce, 4, a.UNSIGNED_BYTE, !0, 0, 0); b.Hh(this.p.src, this.p.S); a.drawArrays(a.TRIANGLE_STRIP, 0, 4) }; a.RA = function() { var a = b.l; a.bindBuffer(a.ARRAY_BUFFER, this.HD); a.bufferData(a.ARRAY_BUFFER, this.hD, a.STATIC_DRAW) }; a.OI = function() { var a = b.l; a.bindBuffer(a.ARRAY_BUFFER, this.aB); a.bufferData(a.ARRAY_BUFFER, this.gD, a.STATIC_DRAW) } }; b.F.zA = function() { var a = b.vl.prototype; a.Y = b.Yc.prototype.Y; a.bc = function() { var a = this.lk, d = b.il(a); if (0 !== d) { var e = Math.sqrt(2), a = C(a.x / d, a.y / d); this.Ju && (a = b.Ii(a, 1 / (Math.abs(a.x) + Math.abs(a.y)) * e)); var f = this.fb / 255, d = this.ya, g = this.Ge, d = { r: d.r, g: d.g, b: d.b, a: this.yo * f }, f = { r: g.r, g: g.g, b: g.b, a: this.Qn * f }, h = this.fD, g = h[0], k = h[1], m = h[2], h = h[3]; g.r = f.r + (e + a.x + a.y) / (2 * e) * (d.r - f.r); g.g = f.g + (e + a.x + a.y) / (2 * e) * (d.g - f.g); g.b = f.b + (e + a.x + a.y) / (2 * e) * (d.b - f.b); g.a = f.a + (e + a.x + a.y) / (2 * e) * (d.a - f.a); k.r = f.r + (e - a.x + a.y) / (2 * e) * (d.r - f.r); k.g = f.g + (e - a.x + a.y) / (2 * e) * (d.g - f.g); k.b = f.b + (e - a.x + a.y) / (2 * e) * (d.b - f.b); k.a = f.a + (e - a.x + a.y) / (2 * e) * (d.a - f.a); m.r = f.r + (e + a.x - a.y) / (2 * e) * (d.r - f.r); m.g = f.g + (e + a.x - a.y) / (2 * e) * (d.g - f.g); m.b = f.b + (e + a.x - a.y) / (2 * e) * (d.b - f.b); m.a = f.a + (e + a.x - a.y) / (2 * e) * (d.a - f.a); h.r = f.r + (e - a.x - a.y) / (2 * e) * (d.r - f.r); h.g = f.g + (e - a.x - a.y) / (2 * e) * (d.g - f.g); h.b = f.b + (e - a.x - a.y) / (2 * e) * (d.b - f.b); h.a = f.a + (e - a.x - a.y) / (2 * e) * (d.a - f.a); this.OI() } } }; b.F.Bz = function() { var a = b.Yc.prototype; b.i(a, "width", a.eh, a.rj); b.i(a, "height", a.yk, a.qj) }; b.F.Cz = function() { var a = b.vl.prototype; b.i(a, "startColor", a.Vw, a.We); b.i(a, "endColor", a.Qw, a.Te); b.i(a, "startOpacity", a.V0, a.A4); b.i(a, "endOpacity", a.e0, a.Y3); b.i(a, "vector", a.a1, a.J4) }; b.sc = b.k.extend({ Pl: !1, Du: null, vb: "Layer", ctor: function() { var a = b.k.prototype; a.ctor.call(this); this.ej = !0; a.ll.call(this, 0.5, 0.5); a.Kd.call(this, b.Tj) }, da: function() { this.ej = !0; this.ll(0.5, 0.5); this.Kd(b.Tj); this.cascadeColor = this.cascadeOpacity = !1; return !0 }, eM: null, QP: null, Sda: function() { return this.Pl }, R: null }); b.sc.create = function() { return new b.sc }; if (b.A === b.Ba) { var ca = b.sc.prototype; ca.eM = function() { if (!this.Pl) { this.Pl = this.tg = !0; this.En = this; for (var a = this.t, c = 0, d = a.length; c < d; c++) a[c].MC(this); this.Du || (this.Du = new b.oQ) } }; ca.QP = function() { if (this.Pl) { this.Pl = !1; this.tg = !0; this.En = null; for (var a = this.t, c = 0, d = a.length; c < d; c++) a[c].MC(null) } }; ca.R = function(a) { if (this.Pl) { a = a || b.l; var c, d = this.t, e = d.length; if (this.lc && 0 !== e) { var f = this.Du; a.save(); this.transform(a); if (this.tg) { c = this.vB(); c.width |= 0; c.height |= 0; var g = f.ce; f.OO(c.width, c.height); g.translate(0 - c.x, c.height + c.y); var h = f.Nw(); f.P(h.x + c.x, h.y + c.y); this.Wc(); b.view.Xv(); for (c = 0; c < e; c++) d[c].R(g); b.view.Pv(); this.tg = !1 } f.R(a); this.arrivalOrder = 0; a.restore() } } else b.k.prototype.R.call(this, a) }; ca.vB = function() { var a = null; if (!this.t || 0 === this.t.length) return O(0, 0, 10, 10); for (var c = this.t, d = 0; d < c.length; d++) { var e = c[d]; e && e.lc && (a ? (e = e.dr()) && (a = b.Vx(a, e)) : a = e.dr()) } return a }; ca = null } else b.assert("function" === typeof b.F.kz, b.e.jd, "CCLayerWebGL.js"), b.F.kz(), delete b.F.kz; b.Yc = b.sc.extend({ p: null, vb: "LayerColor", Dh: function() { return this.p }, u$: function(a, c) { this.width = a; this.height = c }, t$: function(a) { this.width = a }, s$: function(a) { this.height = a }, Ue: function() {}, Wf: function() { return !1 }, cb: function(a) { b.sc.prototype.cb.call(this, a); this.bc() }, Sa: function(a) { b.sc.prototype.Sa.call(this, a); this.bc() }, ko: !1, ctor: null, da: function(a, c, d) { b.A !== b.Ba && (this.shaderProgram = b.Md.nc(b.au)); var e = b.I.Aa(); a = a || b.color(0, 0, 0, 255); c = void 0 === c ? e.width : c; d = void 0 === d ? e.height : d; e = this.ya; e.r = a.r; e.g = a.g; e.b = a.b; e = this.Xd; e.r = a.r; e.g = a.g; e.b = a.b; this.Bg = this.fb = a.a; a = b.Yc.prototype; a.Kd.call(this, c, d); a.bc.call(this); return !0 }, Se: function(a, c) { this.p = void 0 === c ? a : { src: a, S: c }; b.A === b.Ba && (this.ko = this.p && 1 == this.p.src && 771 == this.p.S) }, rj: null, qj: null, bc: null, Nc: function(a) { b.sc.prototype.Nc.call(this, a); this.bc() }, Bc: function(a) { b.sc.prototype.Bc.call(this, a); this.bc() }, Y: null }); b.Yc.create = function(a, c, d) { return new b.Yc(a, c, d) }; b.A === b.Ba ? (n = b.Yc.prototype, n.ctor = function(a, c, d) { b.sc.prototype.ctor.call(this); this.p = new b.ec(b.dc, b.cc); b.Yc.prototype.da.call(this, a, c, d) }, n.rj = b.sc.prototype.rj, n.qj = b.sc.prototype.qj, n.bc = function() {}, n.Y = function(a) { a = a || b.l; var c = b.view, d = this.ya; a.fillStyle = "rgba(" + (0 | d.r) + "," + (0 | d.g) + "," + (0 | d.b) + "," + this.fb / 255 + ")"; a.fillRect(0, 0, this.width * c.ka, -this.height * c.La); b.sf++ }, n.R = function(a) { if (this.Pl) { a = a || b.l; var c, d = this.t, e = d.length; if (this.lc) { var f = this.Du; a.save(); this.transform(a); if (this.tg) { c = this.vB(); c.width |= 0; c.height |= 0; var g = f.ce; f.OO(c.width, c.height); var h = f.Nw(), k = this.wa; if (this.ej) g.translate(0 - c.x + k.x, c.height + c.y - k.y), f.P(h.x + c.x - k.x, h.y + c.y - k.y); else { var m = this.Nw(), p = k.x - m.x, k = k.y - m.y; g.translate(0 - c.x + p, c.height + c.y - k); f.P(h.x + c.x - p, h.y + c.y - k) } b.view.Xv(); if (0 < e) { this.Wc(); for (c = 0; c < e; c++) if (h = d[c], 0 > h.Bb) h.R(g); else break; for (this.Y(g); c < e; c++) d[c].R(g) } else this.Y(g); b.view.Pv(); this.tg = !1 } f.R(a); this.arrivalOrder = 0; a.restore() } } else b.k.prototype.R.call(this, a) }, n.vB = function() { var a = O(0, 0, this.O.width, this.O.height), c = this.Gx(), a = b.GF(a, this.Gx()); if (!this.t || 0 === this.t.length) return a; for (var d = this.t, e = 0; e < d.length; e++) { var f = d[e]; f && f.lc && (f = f.dr(c), a = b.Vx(a, f)) } return a }, n = null) : (b.assert("function" === typeof b.F.yA, b.e.jd, "CCLayerWebGL.js"), b.F.yA(), delete b.F.yA); b.assert("function" === typeof b.F.Bz, b.e.jd, "CCLayerPropertyDefine.js"); b.F.Bz(); delete b.F.Bz; b.vl = b.Yc.extend({ vh: null, Ge: null, yo: 255, Qn: 255, lk: null, Ju: !1, bo: null, ao: null, vb: "LayerGradient", ctor: function(a, c, d) { b.Yc.prototype.ctor.call(this); this.vh = b.color(0, 0, 0, 255); this.Ge = b.color(0, 0, 0, 255); this.lk = C(0, -1); this.Qn = this.yo = 255; this.bo = C(0, 0); this.ao = C(0, 0); b.vl.prototype.da.call(this, a, c, d) }, da: function(a, c, d) { a = a || b.color(0, 0, 0, 255); c = c || b.color(0, 0, 0, 255); d = d || C(0, -1); var e = this.vh, f = this.Ge; e.r = a.r; e.g = a.g; e.b = a.b; this.yo = a.a; f.r = c.r; f.g = c.g; f.b = c.b; this.Qn = c.a; this.lk = d; this.Ju = !0; this.bo = C(0, 0); this.ao = C(0, 0); b.Yc.prototype.da.call(this, b.color(a.r, a.g, a.b, 255)); b.vl.prototype.bc.call(this); return !0 }, Kd: function(a, c) { b.Yc.prototype.Kd.call(this, a, c); this.bc() }, rj: function(a) { b.Yc.prototype.rj.call(this, a); this.bc() }, qj: function(a) { b.Yc.prototype.qj.call(this, a); this.bc() }, Vw: function() { return this.Xd }, We: function(a) { this.color = a }, Te: function(a) { this.Ge = a; this.bc() }, Qw: function() { return this.Ge }, A4: function(a) { this.yo = a; this.bc() }, V0: function() { return this.yo }, Y3: function(a) { this.Qn = a; this.bc() }, e0: function() { return this.Qn }, J4: function(a) { this.lk.x = a.x; this.lk.y = a.y; this.bc() }, a1: function() { return C(this.lk.x, this.lk.y) }, Uda: function() { return this.Ju }, uia: function(a) { this.Ju = a; this.bc() }, c9: null, bc: null }); b.vl.create = function(a, c, d) { return new b.vl(a, c, d) }; b.A === b.Ba ? (n = b.vl.prototype, n.Y = function(a) { a = a || b.l; this.ko && (a.globalCompositeOperation = "lighter"); a.save(); var c = this.fb / 255, d = b.view.ka, e = b.view.La, f = this.width * d, g = this.height * e, d = a.createLinearGradient(this.bo.x * d, this.bo.y * e, this.ao.x * d, this.ao.y * e), e = this.ya, h = this.Ge; d.addColorStop(0, "rgba(" + Math.round(e.r) + "," + Math.round(e.g) + "," + Math.round(e.b) + "," + (this.yo / 255 * c).toFixed(4) + ")"); d.addColorStop(1, "rgba(" + Math.round(h.r) + "," + Math.round(h.g) + "," + Math.round(h.b) + "," + (this.Qn / 255 * c).toFixed(4) + ")"); a.fillStyle = d; a.fillRect(0, 0, f, -g); 0 != this.w9 && a.rotate(this.x9); a.restore(); b.sf++ }, n.bc = function() { var a = this.lk, c = 0.5 * this.width, d = 0.5 * this.height; this.bo.x = c * -a.x + c; this.bo.y = d * a.y - d; this.ao.x = c * a.x + c; this.ao.y = d * -a.y - d }, n = null) : (b.assert("function" === typeof b.F.zA, b.e.jd, "CCLayerWebGL.js"), b.F.zA(), delete b.F.zA); b.assert("function" === typeof b.F.Cz, b.e.jd, "CCLayerPropertyDefine.js"); b.F.Cz(); delete b.F.Cz; b.Qt = b.sc.extend({ Nl: 0, je: null, vb: "LayerMultiplex", ctor: function(a) { b.sc.prototype.ctor.call(this); a instanceof Array ? b.Qt.prototype.KN.call(this, a) : b.Qt.prototype.KN.call(this, Array.prototype.slice.call(arguments)) }, KN: function(a) { 0 < a.length && null == a[a.length - 1] && b.log(b.e.HR); this.je = a; this.Nl = 0; this.X(this.je[this.Nl]); return !0 }, wka: function(a) { a >= this.je.length ? b.log(b.e.IR) : (this.removeChild(this.je[this.Nl], !0), this.Nl = a, this.X(this.je[a])) }, xka: function(a) { a >= this.je.length ? b.log(b.e.JR) : (this.removeChild(this.je[this.Nl], !0), this.je[this.Nl] = null, this.Nl = a, this.X(this.je[a])) }, L9: function(a) { a ? this.je.push(a) : b.log(b.e.GR) } }); b.Qt.create = function() { return new b.Qt(Array.prototype.slice.call(arguments)) }; b.F.AA = function() { var a = b.N.prototype; a.eD = function(a) { this.Ha(!0); this.tb(a.Gh(), a.le, a.cp()); this.Sd() }; a.Ue = function(a) { this.Oa !== a && (this.Oa = a, this.pt()) }; a.Bc = function(a) { b.k.prototype.Bc.call(this, a); this.pt() }; a.ctor = function(a, d, e) { b.k.prototype.ctor.call(this); this.Nk = !1; this.Hb = C(0, 0); this.xh = C(0, 0); this.p = { src: b.dc, S: b.cc }; this.ia = O(0, 0, 0, 0); this.Ob = new b.zb; this.Lv = b.l.createBuffer(); this.ma = this.Ie = !0; this.yL(a, d, e) }; a.Se = function(a, d) { var e = this.p; void 0 === d ? (e.src = a.src, e.S = a.S) : (e.src = a, e.S = d) }; a.da = function() { if (0 < arguments.length) return this.bl(arguments[0], arguments[1]); b.k.prototype.da.call(this); this.dirty = this.nh = !1; this.Oa = !0; this.p.src = b.dc; this.p.S = b.cc; this.texture = null; this.ma = !0; this.Lb = this.Mb = !1; this.anchorY = this.anchorX = 0.5; this.Hb.x = 0; this.Hb.y = 0; this.fi = !1; var a = { r: 255, g: 255, b: 255, a: 255 }; this.Ob.C.s = a; this.Ob.L.s = a; this.Ob.K.s = a; this.Ob.J.s = a; this.Ie = !0; this.tb(O(0, 0, 0, 0), !1, N(0, 0)); return !0 }; a.qa = function(a, d, e) { b.assert(0 != arguments.length, b.e.pT); e = e || !1; if (!b.k.prototype.da.call(this)) return !1; this.V = null; this.dirty = this.nh = !1; this.Oa = !0; this.p.src = b.dc; this.p.S = b.cc; this.Lb = this.Mb = !1; this.anchorY = this.anchorX = 0.5; this.Hb.x = 0; this.Hb.y = 0; this.fi = !1; var f = b.color(255, 255, 255, 255), g = this.Ob; g.C.s = f; g.L.s = f; g.K.s = f; g.J.s = f; this.ma = f = a.wc; if (!f) return this.Ec = e || !1, d && (f = this.ia, f.x = d.x, f.y = d.y, f.width = d.width, f.height = d.height), a.$d(this.mw, this), !0; d || (d = O(0, 0, a.width, a.height)); a && a.url && (e ? (f = d.x + d.height, g = d.y + d.width) : (f = d.x + d.width, g = d.y + d.height), f > a.width && b.error(b.e.Iz, a.url), g > a.height && b.error(b.e.Hz, a.url)); this.texture = a; this.tb(d, e); this.batchNode = null; return this.Ie = !0 }; a.mw = function(a) { if (!this.ma) { this.ma = !0; var d = this.ia; d ? b.zC(d) && (d.width = a.width, d.height = a.height) : d = O(0, 0, a.width, a.height); this.texture = a; this.tb(d, this.Ec); this.batchNode = this.V; this.Ie = !0; this.Sd() } }; a.tb = function(a, d, e) { this.Ec = d || !1; this.Kd(e || a); this.iG(a); this.qL(a); a = this.xh; this.Lb && (a.x = -a.x); this.Mb && (a.y = -a.y); var f = this.ia; this.Hb.x = a.x + (this.O.width - f.width) / 2; this.Hb.y = a.y + (this.O.height - f.height) / 2; if (this.V) this.dirty = !0; else { a = 0 + this.Hb.x; d = 0 + this.Hb.y; e = a + f.width; var f = d + f.height, g = this.Ob; g.C.f = { x: a, y: d, z: 0 }; g.L.f = { x: e, y: d, z: 0 }; g.K.f = { x: a, y: f, z: 0 }; g.J.f = { x: e, y: f, z: 0 }; this.Ie = !0 } }; a.Ze = function() { if (this.dirty) { var a = this.Ob, d = this.Sc; if (!this.lc || d && d != this.V && d.Nk) a.L.f = a.K.f = a.J.f = a.C.f = { x: 0, y: 0, z: 0 }, this.Nk = !0; else { this.Nk = !1; var e = this.nm = d && d != this.V ? b.tm(this.np(), d.nm) : this.np(), f = this.ia, d = this.Hb.x, g = this.Hb.y, h = d + f.width, k = g + f.height, m = e.Ia, p = e.Ja, r = e.a, s = e.b, u = e.H, t = -e.B, e = d * r - g * t + m, f = d * s + g * u + p, v = h * r - g * t + m, g = h * s + g * u + p, w = h * r - k * t + m, h = h * s + k * u + p, m = d * r - k * t + m, d = d * s + k * u + p, k = this.$r; b.Qz || (e |= 0, f |= 0, v |= 0, g |= 0, w |= 0, h |= 0, m |= 0, d |= 0); a.C.f = { x: e, y: f, z: k }; a.L.f = { x: v, y: g, z: k }; a.K.f = { x: m, y: d, z: k }; a.J.f = { x: w, y: h, z: k } } this.textureAtlas.Ay(a, this.atlasIndex); this.dirty = this.nh = !1 } this.fi && this.sg(this.t, b.k.zf.Ze); b.Yj && b.Fe.ae([C(this.Ob.C.f.x, this.Ob.C.f.y), C(this.Ob.L.f.x, this.Ob.L.f.y), C(this.Ob.J.f.x, this.Ob.J.f.y), C(this.Ob.K.f.x, this.Ob.K.f.y)], 4, !0) }; a.X = function(a, d, e) { b.assert(a, b.e.gT); null == d && (d = a.Bb); null == e && (e = a.tag); if (this.V) { if (!(a instanceof b.N)) { b.log(b.e.eT); return } a.texture.Zd !== this.textureAtlas.texture.Zd && b.log(b.e.fT); this.V.appendChild(a); this.Yd || this.WC() } b.k.prototype.X.call(this, a, d, e); this.fi = !0 }; a.Sa = function(a) { b.k.prototype.Sa.call(this, a); this.pt() }; a.cb = function(a) { b.k.prototype.cb.call(this, a); this.pt() }; a.Nc = function(a) { b.k.prototype.Nc.call(this, a); this.pt() }; a.nl = function(a) { var d = this; "string" == typeof a && (a = b.Rj.Bj(a), b.assert(a, b.e.yT)); d.Ha(!0); var e = a.Km(); d.xh.x = e.x; d.xh.y = e.y; e = a.za(); a.ma || (d.ma = !1, a.$d(function(a) { d.ma = !0; var c = a.za(); c != d.G && (d.texture = c); d.tb(a.Gh(), a.le, a.cp()); d.Sd() }, d)); e != d.G && (d.texture = e); d.Ec = a.le; d.tb(a.Gh(), d.Ec, a.cp()) }; a.UN = function(a) { return b.FO(a.Gh(), this.ia) && a.za().getName() == this.G.getName() && b.DF(a.Km(), this.xh) }; a.ml = function(a) { if (this.V = a) this.nm = { a: 1, b: 0, B: 0, H: 1, Ia: 0, Ja: 0 }, this.textureAtlas = this.V.textureAtlas; else { this.atlasIndex = b.N.gz; this.textureAtlas = null; this.dirty = this.nh = !1; a = this.Hb.x; var d = this.Hb.y, e = a + this.ia.width, f = d + this.ia.height, g = this.Ob; g.C.f = { x: a, y: d, z: 0 }; g.L.f = { x: e, y: d, z: 0 }; g.K.f = { x: a, y: f, z: 0 }; g.J.f = { x: e, y: f, z: 0 }; this.Ie = !0 } }; a.Ya = function(a) { a && "string" === typeof a ? (a = b.Da.Hc(a), this.Ya(a), a = a.se(), this.tb(O(0, 0, a.width, a.height))) : (b.assert(!a || a instanceof b.aa, b.e.AT), this.V && this.V.texture != a ? b.log(b.e.zT) : (this.shaderProgram = a ? b.Md.nc(b.Wi) : b.Md.nc(b.au), this.V || this.G == a || (this.G = a, this.Qf()))) }; a.Y = function() { if (this.ma) { var a = b.l, d = this.G; d ? d.wc && (this.Eb.Oc(), this.Eb.Ye(), b.Hh(this.p.src, this.p.S), b.QE(0, d), b.Jc(b.El), a.bindBuffer(a.ARRAY_BUFFER, this.Lv), this.Ie && (a.bufferData(a.ARRAY_BUFFER, this.Ob.xw, a.DYNAMIC_DRAW), this.Ie = !1), a.vertexAttribPointer(0, 3, a.FLOAT, !1, 24, 0), a.vertexAttribPointer(1, 4, a.UNSIGNED_BYTE, !0, 24, 12), a.vertexAttribPointer(2, 2, a.FLOAT, !1, 24, 16), a.drawArrays(a.TRIANGLE_STRIP, 0, 4)) : (this.Eb.Oc(), this.Eb.Ye(), b.Hh(this.p.src, this.p.S), b.te(null), b.Jc(b.Qd | b.ou), a.bindBuffer(a.ARRAY_BUFFER, this.Lv), this.Ie && (b.l.bufferData(b.l.ARRAY_BUFFER, this.Ob.xw, b.l.STATIC_DRAW), this.Ie = !1), a.vertexAttribPointer(b.qb, 3, a.FLOAT, !1, 24, 0), a.vertexAttribPointer(b.Ce, 4, a.UNSIGNED_BYTE, !0, 24, 12), a.drawArrays(a.TRIANGLE_STRIP, 0, 4)); b.sf++; if (0 !== b.Yj || this.$C) 1 === b.Yj || this.$C ? (a = this.Ob, b.Fe.ae([C(a.K.f.x, a.K.f.y), C(a.C.f.x, a.C.f.y), C(a.L.f.x, a.L.f.y), C(a.J.f.x, a.J.f.y)], 4, !0)) : 2 === b.Yj && (a = this.uN(), d = this.E0(), b.Fe.ae([C(d.x, d.y), C(d.x + a.width, d.y), C(d.x + a.width, d.y + a.height), C(d.x, d.y + a.height)], 4, !0)) } }; delete a }; b.F.Dz = function() { var a = b.N.prototype; b.i(a, "opacityModifyRGB", a.Wf, a.Ue); b.i(a, "opacity", a.Ig, a.Sa); b.i(a, "color", a.Hg, a.cb); b.i(a, "flippedX", a.D1, a.gy); b.i(a, "flippedY", a.E1, a.UF); b.i(a, "offsetX", a.iW); b.i(a, "offsetY", a.jW); b.i(a, "texture", a.za, a.Ya); b.i(a, "textureRectRotated", a.K1); b.i(a, "batchNode", a.yE, a.ml); b.i(a, "quad", a.J0) }; b.Hm = function(a, c, d, e) { e = e || b.Sb("canvas"); d = d || O(0, 0, a.width, a.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(" + c.r + "," + c.g + "," + c.b + ")"; f.fillRect(0, 0, d.width, d.height); f.globalCompositeOperation = "multiply"; f.drawImage(a, d.x, d.y, d.width, d.height, 0, 0, d.width, d.height); f.globalCompositeOperation = "destination-atop"; f.drawImage(a, d.x, d.y, d.width, d.height, 0, 0, d.width, d.height); return e }; b.Gm = function(a, c, d, e, f) { e || (e = O(0, 0, a.width, a.height)); a = d.r / 255; var g = d.g / 255; d = d.b / 255; var h = Math.min(e.width, c[0].width), k = Math.min(e.height, c[0].height), m; f ? (m = f.getContext("2d"), m.clearRect(0, 0, h, k)) : (f = b.Sb("canvas"), f.width = h, f.height = k, m = f.getContext("2d")); m.save(); m.globalCompositeOperation = "lighter"; var p = m.globalAlpha; 0 < a && (m.globalAlpha = a * p, m.drawImage(c[0], e.x, e.y, h, k, 0, 0, h, k)); 0 < g && (m.globalAlpha = g * p, m.drawImage(c[1], e.x, e.y, h, k, 0, 0, h, k)); 0 < d && (m.globalAlpha = d * p, m.drawImage(c[2], e.x, e.y, h, k, 0, 0, h, k)); 1 > a + g + d && (m.globalAlpha = p, m.drawImage(c[3], e.x, e.y, h, k, 0, 0, h, k)); m.restore(); return f }; b.Yo = function(a) { function c() { var c = b.Yo, e = a.width, h = a.height; d[0].width = e; d[0].height = h; d[1].width = e; d[1].height = h; d[2].width = e; d[2].height = h; d[3].width = e; d[3].height = h; c.canvas.width = e; c.canvas.height = h; var k = c.canvas.getContext("2d"); k.drawImage(a, 0, 0); c.oG.width = e; c.oG.height = h; for (var k = k.getImageData(0, 0, e, h).data, m = 0; 4 > m; m++) { var p = d[m].getContext("2d"); p.getImageData(0, 0, e, h).data; c.IP.drawImage(a, 0, 0); for (var r = c.IP.getImageData(0, 0, e, h), s = r.data, u = 0; u < k.length; u += 4) s[u] = 0 === m ? k[u] : 0, s[u + 1] = 1 === m ? k[u + 1] : 0, s[u + 2] = 2 === m ? k[u + 2] : 0, s[u + 3] = k[u + 3]; p.putImageData(r, 0, 0) } a.onload = null } if (a.nM) return a.nM; var d = [b.Sb("canvas"), b.Sb("canvas"), b.Sb("canvas"), b.Sb("canvas")]; try { c() } catch (e) { a.onload = c } return a.nM = d }; b.Yo.canvas = b.Sb("canvas"); b.Yo.oG = b.Sb("canvas"); b.Yo.IP = b.Yo.oG.getContext("2d"); b.lE = function(a, c) { if (!a) return null; if (!c) return a; var d = b.Sb("canvas"); d.width = c.width; d.height = c.height; var e = d.getContext("2d"); e.translate(d.width / 2, d.height / 2); e.rotate(-1.5707963267948966); e.drawImage(a, c.x, c.y, c.height, c.width, -c.height / 2, -c.width / 2, c.height, c.width); return d }; b.N = b.k.extend({ dirty: !1, atlasIndex: 0, textureAtlas: null, V: null, nh: null, fi: null, Nk: !1, nm: null, p: null, G: null, ia: null, Ec: !1, Hb: null, xh: null, Oa: !1, Lb: !1, Mb: !1, ma: !1, gb: null, xv: null, vb: "Sprite", HK: b.color.WHITE, kt: function() { return this.ma }, $d: function(a, c) { this.gb || (this.gb = []); this.gb.push({ Bh: a, Uf: c }) }, Sd: function() { if (this.gb) { for (var a = this.gb, c = 0, d = a.length; c < d; c++) { var e = a[c]; e.Bh.call(e.Uf, this) } a.length = 0 } }, hF: function() { return this.dirty }, bP: function(a) { this.dirty = a }, K1: function() { return this.Ec }, $o: function() { return this.atlasIndex }, QF: function(a) { this.atlasIndex = a }, uN: function() { return O(this.ia.x, this.ia.y, this.ia.width, this.ia.height) }, ME: function() { return this.textureAtlas }, eG: function(a) { this.textureAtlas = a }, E0: function() { return C(this.Hb) }, iW: function() { return this.Hb.x }, jW: function() { return this.Hb.y }, Dh: function() { return this.p }, Ci: function(a) { b.assert(a, b.e.mT); a.ma || (this.ma = !1, a.$d(this.eD, this)); var c = b.A === b.Ba ? !1 : a.le, c = this.qa(a.za(), a.Gh(), c); this.nl(a); return c }, eD: null, $E: function(a) { b.assert(a, b.e.nT); var c = b.Rj.Bj(a); b.assert(c, a + b.e.oT); return this.Ci(c) }, Lka: function(a) { this.textureAtlas = a.textureAtlas; this.V = a }, iG: function(a) { this.ia.x = a.x; this.ia.y = a.y; this.ia.width = a.width; this.ia.height = a.height }, Wc: function() { if (this.Yd) { var a = this.t, c = a.length, d, e, f; for (d = 1; d < c; d++) { f = a[d]; for (e = d - 1; 0 <= e;) { if (f.Bb < a[e].Bb) a[e + 1] = a[e]; else if (f.Bb === a[e].Bb && f.arrivalOrder < a[e].arrivalOrder) a[e + 1] = a[e]; else break; e-- } a[e + 1] = f } this.V && this.sg(a, b.k.zf.Wc); this.Yd = !1 } }, vp: function(a, c) { b.assert(a, b.e.tT); - 1 === this.t.indexOf(a) ? b.log(b.e.sT) : c !== a.zIndex && (this.V && !this.Yd && (this.WC(), this.V.LO(!0)), b.k.prototype.vp.call(this, a, c)) }, removeChild: function(a, c) { this.V && this.V.Sm(a); b.k.prototype.removeChild.call(this, a, c) }, ry: function(a) { b.k.prototype.ry.call(this, a); this.SF(!0) }, Lg: function(a) { var c = this.t, d = this.V; if (d && null != c) for (var e = 0, f = c.length; e < f; e++) d.Sm(c[e]); b.k.prototype.Lg.call(this, a); this.fi = !1 }, SF: function(a) { this.dirty = this.nh = a; a = this.t; for (var c, d = a ? a.length : 0, e = 0; e < d; e++) c = a[e], c instanceof b.N && c.SF(!0) }, Ha: function(a) { b.k.prototype.Ha.call(this); a || !this.V || this.nh || (this.fi ? this.SF(!0) : this.dirty = this.nh = !0) }, dx: function(a) { this.V ? b.log(b.e.kT) : b.k.prototype.dx.call(this, a) }, gy: function(a) { this.Lb != a && (this.Lb = a, this.tb(this.ia, this.Ec, this.O), this.Ha(!0)) }, UF: function(a) { this.Mb != a && (this.Mb = a, this.tb(this.ia, this.Ec, this.O), this.Ha(!0)) }, D1: function() { return this.Lb }, E1: function() { return this.Mb }, Ue: null, Wf: function() { return this.Oa }, Bc: null, Eia: function(a, c) { b.assert(a, b.e.xT); var d = b.ww.SM(a); d ? (d = d.Vd[c]) ? this.nl(d.Bj()) : b.log(b.e.wT) : b.log(b.e.vT) }, yE: function() { return this.V }, WC: function() { if (!this.Yd) { this.Yd = !0; for (var a = this.Sc; a && a != this.V;) a.WC(), a = a.parent } }, za: function() { return this.G }, Ob: null, Lv: null, Ie: !1, Pq: !1, ko: !1, xc: null, im: null, iB: null, ctor: null, yL: function(a, c, d) { if (void 0 === a) b.N.prototype.da.call(this); else if ("string" === typeof a) "#" === a[0] ? (a = b.Rj.Bj(a.substr(1, a.length - 1)), this.Ci(a)) : b.N.prototype.da.call(this, a, c); else if ("object" === typeof a) if (a instanceof b.aa) this.qa(a, c, d); else if (a instanceof b.Be) this.Ci(a); else if (a instanceof HTMLImageElement || a instanceof HTMLCanvasElement) c = new b.aa, c.Kc(a), c.rb(), this.qa(c) }, J0: function() { return this.Ob }, Se: null, da: null, bl: function(a, c) { b.assert(a, b.e.lT); var d = b.Da.Ym(a); if (d) { if (!c) { var e = d.se(); c = O(0, 0, e.width, e.height) } return this.qa(d, c) } d = b.Da.Hc(a); return this.qa(d, c || O(0, 0, d.O.width, d.O.height)) }, qa: null, mw: null, tb: null, Ze: null, X: null, pt: function() { var a = this.ya, c = this.fb, a = { r: a.r, g: a.g, b: a.b, a: c }; this.Oa && (a.r *= c / 255, a.g *= c / 255, a.b *= c / 255); c = this.Ob; c.C.s = a; c.L.s = a; c.K.s = a; c.J.s = a; this.V && (this.atlasIndex != b.N.gz ? this.textureAtlas.Ay(c, this.atlasIndex) : this.dirty = !0); this.Ie = !0 }, Sa: null, cb: null, Nc: null, nl: null, V3: function(a) { b.log(b.e.uT); this.nl(a) }, UN: null, WZ: function() { return b.Be.create(this.G, b.Zs(this.ia), this.Ec, b.Y2(this.xh), b.T4(this.O)) }, ml: null, Ya: null, Qf: function() { this.V ? b.log(b.e.dT) : this.G && this.G.Ai() ? (this.p.src = b.dc, this.p.S = b.cc, this.opacityModifyRGB = !0) : (this.p.src = b.SRC_ALPHA, this.p.S = b.ONE_MINUS_SRC_ALPHA, this.opacityModifyRGB = !1) }, ee: function() { var a, c = this.G, d = this.im; c && d.bn && this.xc && (a = c.Wa) && (this.Pq = !0, a instanceof HTMLCanvasElement && !this.Ec && !this.xv ? b.Hm(this.xc.Wa, this.ya, d, a) : (a = b.Hm(this.xc.Wa, this.ya, d), c = new b.aa, c.Kc(a), c.rb(), this.texture = c)) }, qL: function(a) { a = b.Zs(a); var c = this.V ? this.textureAtlas.texture : this.G; if (c) { var d = c.pixelsWidth, e = c.pixelsHeight, f, g = this.Ob; this.Ec ? (b.jn ? (c = (2 * a.x + 1) / (2 * d), d = c + (2 * a.height - 2) / (2 * d), f = (2 * a.y + 1) / (2 * e), a = f + (2 * a.width - 2) / (2 * e)) : (c = a.x / d, d = (a.x + a.height) / d, f = a.y / e, a = (a.y + a.width) / e), this.Lb && (e = f, f = a, a = e), this.Mb && (e = c, c = d, d = e), g.C.m.fa = c, g.C.m.ga = f, g.L.m.fa = c, g.L.m.ga = a, g.K.m.fa = d, g.K.m.ga = f, g.J.m.fa = d, g.J.m.ga = a) : (b.jn ? (c = (2 * a.x + 1) / (2 * d), d = c + (2 * a.width - 2) / (2 * d), f = (2 * a.y + 1) / (2 * e), a = f + (2 * a.height - 2) / (2 * e)) : (c = a.x / d, d = (a.x + a.width) / d, f = a.y / e, a = (a.y + a.height) / e), this.Lb && (e = c, c = d, d = e), this.Mb && (e = f, f = a, a = e), g.C.m.fa = c, g.C.m.ga = a, g.L.m.fa = d, g.L.m.ga = a, g.K.m.fa = c, g.K.m.ga = f, g.J.m.fa = d, g.J.m.ga = f); this.Ie = !0 } }, Y: null }); b.N.create = function(a, c, d) { return new b.N(a, c, d) }; b.N.jE = b.N.create; b.N.G$ = b.N.create; b.N.F$ = b.N.create; b.N.gz = -1; b.A === b.Ba ? (n = b.N.prototype, n.eD = function(a) { this.Ha(!0); this.tb(a.Gh(), a.le, a.cp()); a = this.color; 255 === a.r && 255 === a.g && 255 === a.b || this.ee(); this.Sd() }, n.Ue = function(a) { this.Oa !== a && (this.Oa = a, this.Ha(!0)) }, n.Bc = function(a) { b.k.prototype.Bc.call(this, a); this.ti() }, n.ctor = function(a, c, d) { b.k.prototype.ctor.call(this); this.Nk = !1; this.Hb = C(0, 0); this.xh = C(0, 0); this.p = { src: b.dc, S: b.cc }; this.ia = O(0, 0, 0, 0); this.xv = !1; this.ma = !0; this.im = { x: 0, y: 0, width: 0, height: 0, bn: !1 }; this.iB = N(0, 0); this.yL(a, c, d) }, n.Se = function(a, c) { var d = this.p; void 0 === c ? (d.src = a.src, d.S = a.S) : (d.src = a, d.S = c); this.ko = d && (d.src == b.SRC_ALPHA && d.S == b.ONE || d.src == b.ONE && d.S == b.ONE) }, n.da = function() { if (0 < arguments.length) return this.bl(arguments[0], arguments[1]); b.k.prototype.da.call(this); this.dirty = this.nh = !1; this.Oa = !0; this.p.src = b.dc; this.p.S = b.cc; this.texture = null; this.ma = !0; this.Lb = this.Mb = !1; this.anchorY = this.anchorX = 0.5; this.Hb.x = 0; this.Hb.y = 0; this.fi = !1; this.tb(O(0, 0, 0, 0), !1, N(0, 0)); return !0 }, n.qa = function(a, c, d) { b.assert(0 != arguments.length, b.e.vQ); if ((d = d || !1) && a.wc) { var e = a.Wa, e = b.lE(e, c), f = new b.aa; f.Kc(e); f.rb(); a = f; this.ia = O(0, 0, c.width, c.height) } if (!b.k.prototype.da.call(this)) return !1; this.V = null; this.dirty = this.nh = !1; this.Oa = !0; this.p.src = b.dc; this.p.S = b.cc; this.Lb = this.Mb = !1; this.anchorY = this.anchorX = 0.5; this.Hb.x = 0; this.Hb.y = 0; this.fi = !1; this.ma = e = a.wc; if (!e) return this.Ec = d, c && (this.ia.x = c.x, this.ia.y = c.y, this.ia.width = c.width, this.ia.height = c.height), a.$d(this.mw, this), !0; c || (c = O(0, 0, a.width, a.height)); a && a.url && (e = c.y + c.height, c.x + c.width > a.width && b.error(b.e.Iz, a.url), e > a.height && b.error(b.e.Hz, a.url)); this.texture = this.xc = a; this.tb(c, d); this.batchNode = null; return !0 }, n.mw = function(a) { if (!this.ma) { this.ma = !0; var c = this.ia; c ? b.zC(c) && (c.width = a.width, c.height = a.height) : c = O(0, 0, a.width, a.height); this.texture = this.xc = a; this.tb(c, this.Ec); a = this.ya; 255 == a.r && 255 == a.g && 255 == a.b || this.ee(); this.batchNode = this.V; this.Sd() } }, n.tb = function(a, c, d) { this.Ec = c || !1; this.Kd(d || a); this.iG(a); c = this.im; d = b.pb(); c.x = 0 | a.x * d; c.y = 0 | a.y * d; c.width = 0 | a.width * d; c.height = 0 | a.height * d; c.bn = !(0 === c.width || 0 === c.height || 0 > c.x || 0 > c.y); a = this.xh; this.Lb && (a.x = -a.x); this.Mb && (a.y = -a.y); this.Hb.x = a.x + (this.O.width - this.ia.width) / 2; this.Hb.y = a.y + (this.O.height - this.ia.height) / 2; this.V && (this.dirty = !0) }, n.Ze = function() { if (this.dirty) { var a = this.Sc; !this.lc || a && a != this.V && a.Nk ? this.Nk = !0 : (this.Nk = !1, this.nm = a && a != this.V ? b.tm(this.np(), a.nm) : this.np()); this.dirty = this.nh = !1 } this.fi && this.sg(this.t, b.k.zf.Ze) }, n.X = function(a, c, d) { b.assert(a, b.e.tQ); null == c && (c = a.Bb); null == d && (d = a.tag); b.k.prototype.X.call(this, a, c, d); this.fi = !0 }, n.Sa = function(a) { b.k.prototype.Sa.call(this, a); this.ti() }, n.cb = function(a) { var c = this.color; this.HK = c; c.r === a.r && c.g === a.g && c.b === a.b || b.k.prototype.cb.call(this, a) }, n.Nc = function(a) { b.k.prototype.Nc.call(this, a); a = this.HK; var c = this.ya; if (a.r !== c.r || a.g !== c.g || a.b !== c.b) this.ee(), this.ti() }, n.nl = function(a) { var c = this; "string" == typeof a && (a = b.Rj.Bj(a), b.assert(a, b.e.yQ)); c.Ha(!0); var d = a.Km(); c.xh.x = d.x; c.xh.y = d.y; c.Ec = a.le; var d = a.za(), e = a.ma; e || (c.ma = !1, a.$d(function(a) { c.ma = !0; var d = a.za(); d != c.G && (c.texture = d); c.tb(a.Gh(), a.le, a.cp()); c.Sd() }, c)); d != c.G && (c.texture = d); c.Ec && (c.xc = d); c.tb(a.Gh(), c.Ec, a.cp()); c.Pq = !1; e && (a = c.color, 255 === a.r && 255 === a.g && 255 === a.b || c.ee()) }, n.UN = function(a) { return a.za() != this.G ? !1 : b.FO(a.Gh(), this.ia) }, n.ml = function(a) { (this.V = a) ? (this.nm = { a: 1, b: 0, B: 0, H: 1, Ia: 0, Ja: 0 }, this.textureAtlas = this.V.textureAtlas) : (this.atlasIndex = b.N.gz, this.textureAtlas = null, this.dirty = this.nh = !1) }, n.Ya = function(a) { a && "string" === typeof a ? (a = b.Da.Hc(a), this.Ya(a), a = a.se(), this.tb(O(0, 0, a.width, a.height))) : (b.assert(!a || a instanceof b.aa, b.e.zQ), this.G != a && (a && a.Wa instanceof HTMLImageElement && (this.xc = a), this.G = a)) }, n.Y = function(a) { if (this.ma) { a = a || b.l; this.ko && (a.globalCompositeOperation = "lighter"); var c = b.view.ka, d = b.view.La; a.globalAlpha = this.fb / 255; var e = this.ia, f = this.O, g = this.Hb, h = this.iB, k = 0 | g.x, m = -g.y - e.height, p = this.im; h.width = e.width * c; h.height = e.height * d; if (this.Lb || this.Mb) a.save(), this.Lb && (k = -g.x - e.width, a.scale(-1, 1)), this.Mb && (m = g.y, a.scale(1, -1)); k *= c; m *= d; this.G && p.bn ? (f = this.G.Wa, this.Pq ? a.drawImage(f, 0, 0, p.width, p.height, k, m, h.width, h.height) : a.drawImage(f, p.x, p.y, p.width, p.height, k, m, h.width, h.height)) : !this.G && p.bn && (h = this.color, a.fillStyle = "rgba(" + h.r + "," + h.g + "," + h.b + ",1)", a.fillRect(k, m, f.width * c, f.height * d)); 1 === b.Yj || this.$C ? (a.strokeStyle = "rgba(0,255,0,1)", k /= c, m = -(m / d), b.Fe.ae([C(k, m), C(k + e.width, m), C(k + e.width, m - e.height), C(k, m - e.height)], 4, !0)) : 2 === b.Yj && (a.strokeStyle = "rgba(0,255,0,1)", c = this.ia, m = -m, b.Fe.ae([C(k, m), C(k + c.width, m), C(k + c.width, m - c.height), C(k, m - c.height)], 4, !0)); (this.Lb || this.Mb) && a.restore(); b.sf++ } }, b.hb.hw || (n.ee = function() { var a, c = this.G, d = this.im; c && d.bn && this.xc && (a = c.Wa) && (c = b.Da.Ww(this.xc.Wa)) && (this.Pq = !0, a instanceof HTMLCanvasElement && !this.Ec && !this.xv ? b.Gm(a, c, this.ya, d, a) : (a = b.Gm(a, c, this.ya, d), c = new b.aa, c.Kc(a), c.rb(), this.texture = c)) }), delete n) : (b.assert("function" === typeof b.F.AA, b.e.jd, "SpritesWebGL.js"), b.F.AA(), delete b.F.AA); b.assert("function" === typeof b.F.Dz, b.e.jd, "SpritesPropertyDefine.js"); b.F.Dz(); delete b.F.Dz; b.Qy = 29; b.Ae = b.k.extend({ textureAtlas: null, p: null, Bd: null, vb: "SpriteBatchNode", $Y: function(a, c, d) { b.assert(a, b.e.YS); if (!(a instanceof b.N)) return b.log(b.e.XS), null; a.atlasIndex = c; var e = 0, f = this.Bd; if (f && 0 < f.length) for (var g = 0; g < f.length; g++) { var h = f[g]; h && h.atlasIndex >= c && ++e } f.splice(e, 0, a); b.k.prototype.X.call(this, a, c, d); this.LO(!1); return this }, ME: function() { return this.textureAtlas }, eG: function(a) { a != this.textureAtlas && (this.textureAtlas = a) }, a0: function() { return this.Bd }, bl: function(a, c) { var d = b.Da.Ym(a); d || (d = b.Da.Hc(a)); return this.qa(d, c) }, ti: function() { this.tg = !0 }, da: function(a, c) { var d = b.Da.Ym(a); d || (d = b.Da.Hc(a)); return this.qa(d, c) }, gx: function() { var a = this.textureAtlas.capacity, c = Math.floor(4 * (a + 1) / 3); b.log(b.e.ZS, a, c); this.textureAtlas.JF(c) || b.log(b.e.$S) }, o3: function(a, c) { this.removeChild(this.t[a], c) }, DO: function(a, c) { var d = a.children; if (d && 0 < d.length) for (var e = 0; e < d.length; e++) { var f = d[e]; f && 0 > f.zIndex && (c = this.DO(f, c)) }!a == this && (a.atlasIndex = c, c++); if (d && 0 < d.length) for (e = 0; e < d.length; e++)(f = d[e]) && 0 <= f.zIndex && (c = this.DO(f, c)); return c }, VE: function(a) { var c = a.children; return c && 0 != c.length ? this.VE(c[c.length - 1]) : a.atlasIndex }, y2: function(a) { var c = a.children; return c && 0 != c.length ? this.y2(c[c.length - 1]) : a.atlasIndex }, qZ: function(a, c) { var d = a.parent, e = d.children, f = e.indexOf(a), g = null; 0 < f && f < b.tI && (g = e[f - 1]); return d == this ? 0 == f ? 0 : this.VE(g) + 1 : 0 == f ? 0 > c ? d.atlasIndex : d.atlasIndex + 1 : 0 > g.zIndex && 0 > c || 0 <= g.zIndex && 0 <= c ? this.VE(g) + 1 : d.atlasIndex + 1 }, LO: function(a) { this.Yd = a }, Se: function(a, c) { this.p = void 0 === c ? a : { src: a, S: c } }, Dh: function() { return this.p }, vp: function(a, c) { b.assert(a, b.e.cT); - 1 === this.t.indexOf(a) ? b.log(b.e.bT) : c !== a.zIndex && (b.k.prototype.vp.call(this, a, c), this.Ha()) }, removeChild: function(a, c) { null != a && (-1 === this.t.indexOf(a) ? b.log(b.e.aT) : (this.Sm(a), b.k.prototype.removeChild.call(this, a, c))) }, bX: null, Sk: null, F9: !1, xc: null, ctor: null, Rq: function(a, c) { b.k.prototype.ctor.call(this); var d; c = c || b.Qy; "string" == typeof a ? (d = b.Da.Ym(a)) || (d = b.Da.Hc(a)) : a instanceof b.aa && (d = a); d && this.qa(d, c) }, Sq: function(a, c) { b.k.prototype.ctor.call(this); this.bX = new b.ba; var d; c = c || b.Qy; "string" == typeof a ? (d = b.Da.Ym(a)) || (d = b.Da.Hc(a)) : a instanceof b.aa && (d = a); d && this.qa(d, c) }, WP: null, PY: function(a, c) { b.assert(a, b.e.AQ); a instanceof b.N ? (a.batchNode = this, a.atlasIndex = c, a.dirty = !0, a.Ze()) : b.log(b.e.My) }, QY: function(a, c) { b.assert(a, b.e.My); if (a instanceof b.N) { for (var d = this.textureAtlas.capacity; c >= d || d == this.textureAtlas.totalQuads;) this.gx(); a.batchNode = this; a.atlasIndex = c; a.dirty = !0; a.Ze() } else b.log(b.e.My) }, Rk: function(a, c) { var d = this.Bd, e = this.textureAtlas, f = e.quads, g = d[a], h = b.vI(f[a]); d[c].atlasIndex = a; d[a] = d[c]; e.Ay(f[c], a); d[c] = g; e.Ay(h, c) }, lx: null, KW: function(a, c) { b.assert(a, b.e.xQ); a instanceof b.N ? (a.batchNode = this, a.atlasIndex = c, a.dirty = !0, a.Ze(), this.t.splice(c, 0, a)) : b.log(b.e.wQ) }, LW: function(a, c) { b.assert(a, b.e.rT); if (a instanceof b.N) { for (var d = this.textureAtlas; c >= d.capacity || d.capacity === d.totalQuads;) this.gx(); a.batchNode = this; a.atlasIndex = c; d.fF(a.quad, c); a.dirty = !0; a.Ze() } else b.log(b.e.qT) }, LL: function(a, c) { var d = 0, e = a.children; e && (d = e.length); var f = 0; if (0 === d) f = a.atlasIndex, a.atlasIndex = c, a.arrivalOrder = 0, f != c && this.Rk(f, c), c++; else { f = !0; 0 <= e[0].zIndex && (f = a.atlasIndex, a.atlasIndex = c, a.arrivalOrder = 0, f != c && this.Rk(f, c), c++, f = !1); for (d = 0; d < e.length; d++) { var g = e[d]; f && 0 <= g.zIndex && (f = a.atlasIndex, a.atlasIndex = c, a.arrivalOrder = 0, f != c && this.Rk(f, c), c++, f = !1); c = this.LL(g, c) } f && (f = a.atlasIndex, a.atlasIndex = c, a.arrivalOrder = 0, f != c && this.Rk(f, c), c++) } return c }, Qf: function() { this.textureAtlas.texture.Ai() || (this.p.src = b.SRC_ALPHA, this.p.S = b.ONE_MINUS_SRC_ALPHA) }, qa: null, JB: function(a) { this.t = []; this.Bd = []; this.p = new b.ec(b.dc, b.cc); this.Sk = this.xc = a; return !0 }, KB: function(a, c) { this.t = []; this.Bd = []; this.p = new b.ec(b.dc, b.cc); c = c || b.Qy; this.textureAtlas = new b.Vh; this.textureAtlas.qa(a, c); this.Qf(); this.shaderProgram = b.Md.nc(b.Wi); return !0 }, eF: function(a, c) { a.batchNode = this; a.atlasIndex = c; a.dirty = !0; var d = this.textureAtlas; d.totalQuads >= d.capacity && this.gx(); d.fF(a.quad, c); this.Bd.splice(c, 0, a); var d = c + 1, e = this.Bd; if (e && 0 < e.length) for (; d < e.length; d++) e[d].atlasIndex++; var e = a.children, f; if (e) for (d = 0, l = e.length || 0; d < l; d++)(f = e[d]) && this.eF(f, this.qZ(f, f.zIndex)) }, appendChild: null, NU: function(a) { this.Yd = !0; a.batchNode = this; a.dirty = !0; this.Bd.push(a); a.atlasIndex = this.Bd.length - 1; a = a.children; for (var c = 0, d = a.length || 0; c < d; c++) this.appendChild(a[c]) }, OU: function(a) { this.Yd = !0; a.batchNode = this; a.dirty = !0; this.Bd.push(a); var c = this.Bd.length - 1; a.atlasIndex = c; var d = this.textureAtlas; d.totalQuads == d.capacity && this.gx(); d.fF(a.quad, c); a = a.children; c = 0; for (d = a.length || 0; c < d; c++) this.appendChild(a[c]) }, Sm: null, EX: function(a) { a.batchNode = null; var c = this.Bd, d = c.indexOf(a); if (-1 != d) { c.splice(d, 1); for (var e = c.length; d < e; ++d) c[d].atlasIndex-- } if (a = a.children) for (c = 0, d = a.length || 0; c < d; c++) a[c] && this.Sm(a[c]) }, FX: function(a) { this.textureAtlas.KO(a.atlasIndex); a.batchNode = null; var c = this.Bd, d = c.indexOf(a); if (-1 != d) { c.splice(d, 1); for (var e = c.length; d < e; ++d) c[d].atlasIndex-- } if (a = a.children) for (c = 0, d = a.length || 0; c < d; c++) a[c] && this.Sm(a[c]) }, za: null, er: function() { return this.Sk }, EB: function() { return this.textureAtlas.texture }, Ya: null, XC: function(a) { this.Sk = a; for (var c = this.t, d = 0; d < c.length; d++) c[d].texture = a }, YC: function(a) { this.textureAtlas.texture = a; this.Qf() }, R: null, pm: function(a) { var c = a || b.l; if (this.lc) { c.save(); this.transform(a); var d = this.t; if (d) for (this.Wc(), a = 0; a < d.length; a++) d[a] && d[a].R(c); c.restore() } }, as: function(a) { a = a || b.l; if (this.lc) { b.Fj(); var c = this.grid; c && c.vf() && (c.is(), this.xy()); this.Wc(); this.transform(a); this.Y(a); c && c.vf() && c.fs(this); b.Ej(); this.arrivalOrder = 0 } }, X: null, HA: function(a, c, d) { b.assert(null != a, b.e.uQ); a instanceof b.N ? (c = null == c ? a.zIndex : c, d = null == d ? a.tag : d, b.k.prototype.X.call(this, a, c, d), this.appendChild(a), this.Ha()) : b.log(b.e.sQ) }, IU: function(a, c, d) { b.assert(null != a, b.e.jT); a instanceof b.N ? a.texture != this.textureAtlas.texture ? b.log(b.e.iT) : (c = null == c ? a.zIndex : c, d = null == d ? a.tag : d, b.k.prototype.X.call(this, a, c, d), this.appendChild(a), this.Ha()) : b.log(b.e.hT) }, Lg: null, CX: function(a) { var c = this.Bd; if (c && 0 < c.length) for (var d = 0, e = c.length; d < e; d++) c[d] && (c[d].batchNode = null); b.k.prototype.Lg.call(this, a); this.Bd.length = 0 }, DX: function(a) { var c = this.Bd; if (c && 0 < c.length) for (var d = 0, e = c.length; d < e; d++) c[d] && (c[d].batchNode = null); b.k.prototype.Lg.call(this, a); this.Bd.length = 0; this.textureAtlas.IO() }, Wc: null, vY: function() { if (this.Yd) { var a, c = 0, d = this.t, e = d.length, f; for (a = 1; a < e; a++) { var g = d[a], c = a - 1; for (f = d[c]; 0 <= c && (g.Bb < f.Bb || g.Bb == f.Bb && g.arrivalOrder < f.arrivalOrder);) d[c + 1] = f, c -= 1, f = d[c]; d[c + 1] = g } 0 < d.length && this.sg(d, b.k.zf.Wc); this.Yd = !1 } }, wY: function() { if (this.Yd) { var a = this.t, c, d = 0, e = a.length, f; for (c = 1; c < e; c++) { var g = a[c], d = c - 1; for (f = a[d]; 0 <= d && (g.Bb < f.Bb || g.Bb == f.Bb && g.arrivalOrder < f.arrivalOrder);) a[d + 1] = f, d -= 1, f = a[d]; a[d + 1] = g } if (0 < a.length) for (this.sg(a, b.k.zf.Wc), c = d = 0; c < a.length; c++) d = this.LL(a[c], d); this.Yd = !1 } }, Y: null, aj: function() { 0 !== this.textureAtlas.totalQuads && (this.Eb.Oc(), this.Eb.Ye(), this.sg(this.t, b.k.zf.Ze), b.Hh(this.p.src, this.p.S), this.textureAtlas.IM()) } }); n = b.Ae.prototype; b.A === b.U ? (n.ctor = n.Sq, n.WP = n.QY, n.lx = n.LW, n.qa = n.KB, n.appendChild = n.OU, n.Sm = n.FX, n.za = n.EB, n.Ya = n.YC, n.R = n.as, n.X = n.IU, n.Lg = n.DX, n.Wc = n.wY, n.Y = n.aj) : (n.ctor = n.Rq, n.WP = n.PY, n.lx = n.KW, n.qa = n.JB, n.appendChild = n.NU, n.Sm = n.EX, n.za = n.er, n.Ya = n.XC, n.R = n.pm, n.Lg = n.CX, n.X = n.HA, n.Wc = n.vY, n.Y = b.k.prototype.Y); b.i(n, "texture", n.za, n.Ya); b.i(n, "descendants", n.a0); b.Ae.create = function(a, c) { return new b.Ae(a, c) }; b.Ae.jE = b.Ae.create; b.oQ = b.N.extend({ be: null, ce: null, ctor: function() { b.N.prototype.ctor.call(this); var a = document.createElement("canvas"); a.width = a.height = 10; this.be = a; this.ce = a.getContext("2d"); var c = new b.aa; c.Kc(a); c.rb(); this.Ya(c) }, hba: function() { return this.ce }, gba: function() { return this.be }, OO: function(a, c) { void 0 === c && (c = a.height, a = a.width); var d = this.be; d.width = a; d.height = c; this.za().rb(); this.tb(O(0, 0, a, c), !1) } }); b.jg = b.oa.extend({ wo: null, Ud: 0, Io: null, ctor: function(a, c, d) { this.wo = a || null; this.Ud = c || 0; this.Io = d || null }, j: function() { var a = new b.jg; a.Ci(this.wo.j(), this.Ud, this.Io); return a }, Hw: function() { return b.j(this) }, copy: function() { var a = new b.jg; a.Ci(this.wo.j(), this.Ud, this.Io); return a }, Ci: function(a, c, d) { this.wo = a; this.Ud = c; this.Io = d; return !0 }, Bj: function() { return this.wo }, nl: function(a) { this.wo = a }, vba: function() { return this.Ud }, Bia: function(a) { this.Ud = a }, uda: function() { return this.Io }, eka: function(a) { this.Io = a } }); b.jg.create = function(a, c, d) { return new b.jg(a, c, d) }; b.Pi = b.oa.extend({ Vd: null, hj: 0, bm: !1, o: 0, Ud: 0, wi: 0, ctor: function(a, c, d) { this.Vd = []; if (void 0 === a) this.ON(null, 0); else { var e = a[0]; e && (e instanceof b.Be ? this.ON(a, c, d) : e instanceof b.jg && this.hx(a, c, d)) } }, Sba: function() { return this.Vd }, Nia: function(a) { this.Vd = a }, QD: function(a) { var c = new b.jg; c.Ci(a, 1, null); this.Vd.push(c); this.wi++ }, P9: function(a) { a = b.Da.Hc(a); var c = O(0, 0, 0, 0); c.width = a.width; c.height = a.height; a = b.Be.create(a, c); this.QD(a) }, Q9: function(a, c) { var d = b.Be.create(a, c); this.QD(d) }, hx: function(a, c, d) { b.Lo(a, b.jg); this.Ud = c; this.hj = void 0 === d ? 1 : d; this.wi = 0; c = this.Vd; for (d = c.length = 0; d < a.length; d++) { var e = a[d]; c.push(e); this.wi += e.Ud } return !0 }, j: function() { var a = new b.Pi; a.hx(this.WI(), this.Ud, this.hj); a.ny(this.bm); return a }, Hw: function() { var a = new b.Pi; a.hx(this.WI(), this.Ud, this.hj); a.ny(this.bm); return a }, WI: function() { for (var a = [], c = 0; c < this.Vd.length; c++) a.push(this.Vd[c].j()); return a }, copy: function() { return this.Hw(null) }, hca: function() { return this.hj }, Zia: function(a) { this.hj = a }, ny: function(a) { this.bm = a }, Nca: function() { return this.bm }, ap: function() { return this.wi * this.Ud }, uba: function() { return this.Ud }, Aia: function(a) { this.Ud = a }, nda: function() { return this.wi }, ON: function(a, c, d) { b.Lo(a, b.Be); this.hj = void 0 === d ? 1 : d; this.Ud = c || 0; this.wi = 0; c = this.Vd; c.length = 0; if (a) { for (d = 0; d < a.length; d++) { var e = a[d], f = new b.jg; f.Ci(e, 1, null); c.push(f) } this.wi += a.length } return !0 }, $x: function() {}, Ki: function() {} }); b.Pi.create = function(a, c, d) { return new b.Pi(a, c, d) }; b.Pi.D$ = b.Pi.create; b.ww = { vn: {}, TL: function(a, c) { this.vn[c] = a }, Kha: function(a) { a && this.vn[a] && delete this.vn[a] }, SM: function(a) { return this.vn[a] ? this.vn[a] : null }, HU: function(a, c) { var d = a.animations; if (d) { var e = 1, f = a.properties; if (f) for (var e = null != f.format ? parseInt(f.format) : e, f = f.spritesheets, g = b.Rj, h = b.path, k = 0; k < f.length; k++) g.WL(h.Oo(c, f[k])); switch (e) { case 1: this.sX(d); break; case 2: this.tX(d); break; default: b.log(b.e.hZ) } } else b.log(b.e.gZ) }, I9: function(a) { b.assert(a, b.e.pZ); var c = b.T.Hd(a); c ? this.HU(c, a) : b.log(b.e.oZ) }, sX: function(a) { var c = b.Rj, d; for (d in a) { var e = a[d], f = e.frames, e = parseFloat(e.delay) || 0, g = null; if (f) { for (var g = [], h = 0; h < f.length; h++) { var k = c.Bj(f[h]); if (k) { var m = new b.jg; m.Ci(k, 1, null); g.push(m) } else b.log(b.e.jZ, d, f[h]) } 0 === g.length ? b.log(b.e.kZ, d) : (g.length != f.length && b.log(b.e.lZ, d), g = b.Pi.create(g, e, 1), b.ww.TL(g, d)) } else b.log(b.e.iZ, d) } }, tX: function(a) { var c = b.Rj, d; for (d in a) { var e = a[d], f = parseInt(e.loops), f = e.loop ? b.qq : isNaN(f) ? 1 : f, g = e.restoreOriginalFrame && !0 == e.restoreOriginalFrame ? !0 : !1, h = e.frames; if (h) { for (var k = [], m = 0; m < h.length; m++) { var p = h[m], r = p.spriteframe, s = c.Bj(r); if (s) { var r = parseFloat(p.delayUnits) || 0, p = p.notification, u = new b.jg; u.Ci(s, r, p); k.push(u) } else b.log(b.e.nZ, d, r) } e = parseFloat(e.delayPerUnit) || 0; h = new b.Pi; h.hx(k, e, f); h.ny(g); b.ww.TL(h, d) } else b.log(b.e.mZ, d) } }, nk: function() { this.vn = {} } }; b.Be = b.oa.extend({ va: null, Ek: null, Ke: null, le: !1, ia: null, zg: null, Kf: null, G: null, Co: "", ma: !1, Zu: null, ctor: function(a, c, d, e, f) { this.va = C(0, 0); this.zg = C(0, 0); this.Ek = N(0, 0); this.le = !1; this.Kf = N(0, 0); this.Co = ""; this.G = null; this.ma = !1; void 0 !== a && void 0 !== c && (void 0 === d || void 0 === e || void 0 === f ? this.qa(a, c) : this.qa(a, c, d, e, f)) }, kt: function() { return this.ma }, $d: function(a, c) { null == this.Zu && (this.Zu = []); this.Zu.push({ Bh: a, Uf: c }) }, Sd: function() { var a = this.Zu; if (a) { for (var c = 0, d = a.length; c < d; c++) { var e = a[c]; e.Bh.call(e.Uf, this) } a.length = 0 } }, K0: function() { var a = this.Ke; return O(a.x, a.y, a.width, a.height) }, vja: function(a) { this.Ke || (this.Ke = O(0, 0, 0, 0)); this.Ke.x = a.x; this.Ke.y = a.y; this.Ke.width = a.width; this.Ke.height = a.height; this.ia = b.kl(a) }, eea: function() { return this.le }, xja: function(a) { this.le = a }, Gh: function() { var a = this.ia; return O(a.x, a.y, a.width, a.height) }, pP: function(a) { this.ia || (this.ia = O(0, 0, 0, 0)); this.ia.x = a.x; this.ia.y = a.y; this.ia.width = a.width; this.ia.height = a.height; this.Ke = b.Zs(this.ia) }, D0: function() { return C(this.zg) }, gja: function(a) { this.zg.x = a.x; this.zg.y = a.y; b.jC(this.zg, this.va) }, wca: function() { return N(this.Kf) }, jja: function(a) { this.Kf.width = a.width; this.Kf.height = a.height }, cp: function() { return N(this.Ek) }, ija: function(a) { this.Ek.width = a.width; this.Ek.height = a.height }, za: function() { if (this.G) return this.G; if ("" !== this.Co) { var a = b.Da.Hc(this.Co); a && (this.ma = a.wc); return a } return null }, Ya: function(a) { if (this.G != a) { var c = a.wc; this.ma = c; this.G = a; c || a.$d(function(a) { this.ma = !0; if (this.le && b.A === b.Ba) { var c = a.Wa, c = b.lE(c, this.Gh()), f = new b.aa; f.Kc(c); f.rb(); this.Ya(f); c = this.Gh(); this.pP(O(0, 0, c.width, c.height)) } c = this.ia; 0 === c.width && 0 === c.height && (c = a.width, a = a.height, this.ia.width = c, this.ia.height = a, this.Ke = b.Zs(this.ia), this.Kf.width = this.Ke.width, this.Kf.height = this.Ke.height, this.Ek.width = c, this.Ek.height = a); this.Sd() }, this) } }, Km: function() { return C(this.va) }, ly: function(a) { this.va.x = a.x; this.va.y = a.y }, j: function() { var a = new b.Be; a.qa(this.Co, this.Ke, this.le, this.zg, this.Kf); a.Ya(this.G); return a }, Hw: function() { var a = new b.Be; a.qa(this.Co, this.Ke, this.le, this.zg, this.Kf); a.Ya(this.G); return a }, copy: function() { return this.Hw() }, qa: function(a, c, d, e, f) { 2 === arguments.length && (c = b.Zs(c)); e = e || C(0, 0); f = f || c; d = d || !1; "string" == typeof a ? (this.G = null, this.Co = a) : a instanceof b.aa && this.Ya(a); if ((a = this.za()) && a.url) { var g, h; d ? (g = c.x + c.height, h = c.y + c.width) : (g = c.x + c.width, h = c.y + c.height); g > a.width && b.error(b.e.Iz, a.url); h > a.height && b.error(b.e.Hz, a.url) } this.Ke = c; this.ia = b.kl(c); this.zg.x = e.x; this.zg.y = e.y; b.jC(e, this.va); this.Kf.width = f.width; this.Kf.height = f.height; b.xL(f, this.Ek); this.le = d; return !0 } }); b.Be.create = function(a, c, d, e, f) { return new b.Be(a, c, d, e, f) }; b.Be.jE = b.Be.create; b.Be.e9 = function(a, c, d, e, f) { var g = new b.Be; g.G = a; g.Ke = c; g.ia = b.kl(c); g.zg.x = e.x; g.zg.y = e.y; b.jC(g.zg, g.va); g.Kf.width = f.width; g.Kf.height = f.height; b.xL(g.Kf, g.Ek); g.le = d; return g }; b.Rj = { CI: /^\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*$/, vU: /^\s*\{\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*,\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*\}\s*$/, uh: {}, tj: {}, Yn: {}, YK: function(a) { return (a = this.vU.exec(a)) ? O(parseFloat(a[1]), parseFloat(a[2]), parseFloat(a[3]), parseFloat(a[4])) : O(0, 0, 0, 0) }, OK: function(a) { return (a = this.CI.exec(a)) ? C(parseFloat(a[1]), parseFloat(a[2])) : C(0, 0) }, aD: function(a) { return (a = this.CI.exec(a)) ? N(parseFloat(a[1]), parseFloat(a[2])) : N(0, 0) }, ZV: function(a) { var c = b.T.Hd(a); b.assert(c, b.e.b5, a); b.T.Ki(a); if (c.fo) return this.Yn[a] = c; var d = c.frames, e = c.metadata || c.meta, c = {}, f = {}, g = 0; e && (g = e.format, g = 1 >= g.length ? parseInt(g) : g, f.m1 = e.textureFileName || e.textureFileName || e.image); for (var h in d) { var k = d[h]; if (k) { e = {}; if (0 == g) { e.rect = O(k.x, k.y, k.width, k.height); e.cy = !1; e.offset = C(k.offsetX, k.offsetY); var m = k.originalWidth, k = k.originalHeight; m && k || b.log(b.e.a5); m = Math.abs(m); k = Math.abs(k); e.size = N(m, k) } else if (1 == g || 2 == g) e.rect = this.YK(k.frame), e.cy = k.rotated || !1, e.offset = this.OK(k.offset), e.size = this.aD(k.sourceSize); else if (3 == g) { var m = this.aD(k.spriteSize), p = this.YK(k.textureRect); m && (p = O(p.x, p.y, m.width, m.height)); e.rect = p; e.cy = k.textureRotated || !1; e.offset = this.OK(k.spriteOffset); e.size = this.aD(k.spriteSourceSize); e.dZ = k.aliases } else m = k.frame, p = k.sourceSize, h = k.filename || h, e.rect = O(m.x, m.y, m.w, m.h), e.cy = k.rotated || !1, e.offset = C(0, 0), e.size = N(p.w, p.h); c[h] = e } } return this.Yn[a] = { fo: !0, frames: c, B2: f } }, WL: function(a, c) { b.assert(a, b.e.d5); var d = this.Yn[a] || b.T.Hd(a); if (d && d.frames) { var e = this.Yn[a] || this.ZV(a), d = e.frames, e = e.B2; c ? c instanceof b.aa || ("string" == typeof c ? c = b.Da.Hc(c) : b.assert(0, b.e.e5)) : c = b.Da.Hc(b.path.Oo(a, e.m1 || ".png")); var e = this.tj, f = this.uh, g; for (g in d) { var h = d[g], k = f[g]; if (!k) { k = b.Be.create(c, h.rect, h.cy, h.offset, h.size); if (h = h.dZ) for (var m = 0, p = h.length; m < p; m++) { var r = h[m]; e[r] && b.log(b.e.c5, r); e[r] = g } b.A === b.Ba && k.le && k.za().wc && (h = k.za().Wa, h = b.lE(h, k.K0()), m = new b.aa, m.Kc(h), m.rb(), k.Ya(m), h = k.ia, k.pP(O(0, 0, h.width, h.height))); f[g] = k } } } }, X8: function(a) { a = a.frames; for (var c in a) this.uh[c] && b.log(b.e.Z4, c) }, QD: function(a, c) { this.uh[c] = a }, Qha: function() { this.uh = {}; this.tj = {} }, Pha: function(a) { a && (this.tj[a] && delete this.tj[a], this.uh[a] && delete this.uh[a]) }, Rha: function(a) { var c = this.uh, d = this.tj; if (a = this.Yn[a]) { a = a.frames; for (var e in a) if (c[e]) { delete c[e]; for (var f in d) d[f] == e && delete d[f] } } }, Sha: function(a) { var c = this.uh, d = this.tj, e; for (e in c) { var f = c[e]; if (f && f.za() == a) { delete c[e]; for (var g in d) d[g] == e && delete d[g] } } }, Bj: function(a) { var c = this.uh[a]; if (!c) { var d = this.tj[a]; d && ((c = this.uh[d.toString()]) || delete this.tj[a]) } c || b.log(b.e.f5, a); return c }, nk: function() { this.uh = {}; this.tj = {}; this.Yn = {} } }; b.Ro = { Y6: 0, d8: 1, INT: 2, T6: 3, t6: 4, rr: 0, $W: 0, pD: !1, lw: !1, nD: !1, oD: !1, qD: !1, q9: 0, WB: 0, ru: "", Xr: {}, fo: !1, jr: function() { var a = this.Xr; a["cocos2d.x.version"] = b.Wy; a["cocos2d.x.compiled_with_profiler"] = !1; a["cocos2d.x.compiled_with_gl_state_cache"] = b.Wg; this.fo = !0 }, mca: function() { return this.rr }, lca: function() { return this.$W }, nca: function() { return this.WB }, rka: function() { return this.lw }, ska: function() { return this.pD }, qka: function() { return !1 }, tka: function() { return !1 }, nka: function() { return !1 }, oka: function() { return this.nD }, pka: function() { return this.oD }, uka: function() { return this.qD }, Po: function(a) { return -1 < this.ru.indexOf(a) }, wda: function(a, c) { this.fo || this.jr(); var d = this.Xr; return d[a] ? d[a] : c }, gka: function(a, c) { this.Xr[a] = c }, f_: function() { 0 === b.Wg && (b.log(""), b.log(b.e.IZ), b.log("")) }, P_: function() { if (b.A !== b.Ba) { this.fo || this.jr(); var a = b.l, c = this.Xr; c["gl.vendor"] = a.getParameter(a.VENDOR); c["gl.renderer"] = a.getParameter(a.RENDERER); c["gl.version"] = a.getParameter(a.VERSION); this.ru = ""; for (var d = a.getSupportedExtensions(), e = 0; e < d.length; e++) this.ru += d[e] + " "; this.rr = a.getParameter(a.MAX_TEXTURE_SIZE); c["gl.max_texture_size"] = this.rr; this.WB = a.getParameter(a.MAX_COMBINED_TEXTURE_IMAGE_UNITS); c["gl.max_texture_units"] = this.WB; this.pD = this.Po("GL_IMG_texture_compression_pvrtc"); c["gl.supports_PVRTC"] = this.pD; this.lw = !1; c["gl.supports_NPOT"] = this.lw; this.nD = this.Po("GL_IMG_texture_format_BGRA888"); c["gl.supports_BGRA8888"] = this.nD; this.oD = this.Po("GL_EXT_discard_framebuffer"); c["gl.supports_discard_framebuffer"] = this.oD; this.qD = this.Po("vertex_array_object"); c["gl.supports_vertex_array_object"] = this.qD; b.Qo() } }, hga: function(a) { this.fo || this.jr(); var c = b.T.Hd(a); if (!c) throw "Please load the resource first : " + a; b.assert(c, b.e.KZ, a); if (c = c.data) for (var d in c) this.Xr[d] = c[d]; else b.log(b.e.JZ, a) } }; b.F.Ty = function() { b.V6 = b.oa.extend({ Jka: function() {} }); var a = b.Ta.prototype; a.Xm = function(a) { var d = this.mc; this.zP(); var e = this.lh, f = e.qe.x / e.ka, e = e.qe.y / e.La; switch (a) { case b.Ta.sS: b.wf(b.Yg); b.dl(); f = new b.ba; b.nF(f, 0, d.width, 0, d.height, -1024, 1024); b.ip(f); b.wf(b.Xg); b.dl(); break; case b.Ta.kH: var g = this.xs(), h = new b.ba, k = new b.ba; b.wf(b.Yg); b.dl(); b.d2(h, d.width / d.height, 2 * g); b.ip(h); b.wf(b.Xg); b.dl(); g = b.kp(null, -f + d.width / 2, -e + d.height / 2, g); b.XN(k, g, b.kp(null, -f + d.width / 2, -e + d.height / 2, 0), b.kp(null, 0, 1, 0)); b.ip(k); break; case b.Ta.tS: break; default: b.log(b.e.PQ) } this.pi = a; b.ra.dispatchEvent(this.$u); b.nP() }; a.aP = function(a) { var d = b.l; a ? (d.clearDepth(1), d.enable(d.DEPTH_TEST), d.depthFunc(d.LEQUAL)) : d.disable(d.DEPTH_TEST) }; a.YF = function(a) { this.mc.width = b.Va.width; this.mc.height = b.Va.height; this.lh = a || b.view; a = b.Ro; a.P_(); a.f_(); this.Ln(); this.fP(); b.ra && b.ra.ve(!0) }; a.nk = function() { var a = b.l; a.clear(a.COLOR_BUFFER_BIT | a.DEPTH_BUFFER_BIT) }; a.OA = function() { b.Fj() }; a.IA = function() { b.Ej() }; a.Ln = function() { if (!b.Th) this.rV(); else if (null != b.Ta.UJ && !1 != b.Ta.UJ) { var a = new b.aa; a.Kc(b.Ta.Xn); a.rb(); var d = b.view.BE().height / 320; 0 === d && (d = this.mc.height / 320); var e = new b.Th; e.PC(!0); e.sd("00.0", a, 12, 32, "."); e.scale = d; this.Af = e; e = new b.Th; e.PC(!0); e.sd("0.000", a, 12, 32, "."); e.scale = d; this.Bf = e; e = new b.Th; e.PC(!0); e.sd("000", a, 12, 32, "."); e.scale = d; this.Ef = e; a = b.Ry; this.Ef.P(a.x, 34 * d + a.y); this.Bf.P(a.x, 17 * d + a.y); this.Af.P(a) } }; a.rV = function() { var a = 0, a = this.mc.width > this.mc.height ? 0 | this.mc.height / 320 * 24 : 0 | this.mc.width / 320 * 24; this.Af = b.M.create("000.0", "Arial", a); this.Bf = b.M.create("0.000", "Arial", a); this.Ef = b.M.create("0000", "Arial", a); a = b.Ry; this.Ef.P(this.Ef.width / 2 + a.x, 5 * this.Ef.height / 2 + a.y); this.Bf.P(this.Bf.width / 2 + a.x, 3 * this.Bf.height / 2 + a.y); this.Af.P(this.Af.width / 2 + a.x, this.Af.height / 2 + a.y) }; a.LZ = function(a) { var d = new b.ba; b.SG(d); var e = new b.ba; b.c2(e, d); var f = this.lh.BE(), g = new b.wb; b.gO(g, new b.wb(2 * a.x / f.width - 1, 1 - 2 * a.y / f.height, d.c[14] / d.c[15]), e); return C(g.x, g.y) }; a.NZ = function(a) { var d = new b.ba; b.SG(d); var e = new b.wb; b.gO(e, new b.wb(a.x, a.y, 0), d); a = this.lh.BE(); return C(a.width * (0.5 * e.x + 0.5), a.height * (0.5 * -e.y + 0.5)) }; a.vs = function() { return this.lh.vs() }; a.PE = function() { return this.lh.PE() }; a.xs = function() { return this.mc.height / 1.1566 }; a.zP = function() { var a = this.lh; if (a) { var d = this.mc; a.M4(-a.qe.x / a.ka, -a.qe.y / a.La, d.width, d.height) } }; a.tca = function() { return this.lh }; a.Ica = function() { return this.pi }; a.K3 = function() { b.Hh(b.dc, b.cc) }; a.fP = function() { this.K3(); this.aP(!1); this.Xm(this.pi); b.l.clearColor(0, 0, 0, 1) } }; b.sf = 0; b.SG = function(a) { var c = new b.ba; b.qx(b.Yg, c); var d = new b.ba; b.qx(b.Xg, d); b.Ei(a, c, d) }; b.Ta = b.oa.extend({ o9: !1, sr: !1, jc: !1, Kv: !1, Jk: !1, Iq: 0, ZB: 0, pi: 0, un: 0, bh: 1, Xq: !1, pk: 0, rB: 0, Af: null, Bf: null, Ef: null, mc: null, Bk: null, ii: null, zv: null, lh: null, si: null, wC: null, cd: null, Vd: 0, ow: 0, IC: 0, b9: null, Nf: null, rg: null, $u: null, lB: null, nB: null, mB: null, ctor: function() { var a = this; a.Bk = Date.now(); b.ra.PD(b.Jb.Op, function() { a.Bk = Date.now() }) }, da: function() { this.ZB = this.Iq = 1 / b.RZ; this.si = []; this.pi = b.Ta.uS; this.wC = null; this.rB = this.un = 0; this.Xq = !1; this.ow = this.Vd = 0; this.Bk = Date.now(); this.Kv = this.jc = !1; this.mc = N(0, 0); this.lh = null; this.bh = 1; this.Nf = new b.uq; this.rg = b.wG ? new b.wG : null; this.Nf.OF(this.rg, b.uq.Ut, !1); this.lB = new b.Si(b.Ta.WQ); this.lB.setUserData(this); this.nB = new b.Si(b.Ta.YQ); this.nB.setUserData(this); this.mB = new b.Si(b.Ta.XQ); this.mB.setUserData(this); this.$u = new b.Si(b.Ta.ZQ); this.$u.setUserData(this); return !0 }, BZ: function() { var a = Date.now(); this.sr ? (this.pk = 0, this.sr = !1) : this.pk = (a - this.Bk) / 1E3; 0 < b.Jb.re[b.Jb.kg.ns] && 0.2 < this.pk && (this.pk = 1 / 60); this.Bk = a }, d_: function() { this.BZ(); this.jc || (this.Nf.update(this.pk), b.ra.dispatchEvent(this.mB)); this.nk(); this.ii && this.k4(); this.OA && this.OA(); this.cd && (this.cd.R(), b.ra.dispatchEvent(this.nB)); this.zv && this.zv.R(); this.Xq && this.uY(); this.IA && this.IA(); b.ra.dispatchEvent(this.lB); this.ow++; this.Xq && this.YU() }, OA: null, IA: null, end: function() { this.Kv = !0 }, qba: function() { return this.bh }, pca: function() { return this.zv }, Aa: function() { return N(this.mc) }, ws: function() { return N(this.mc.width * this.bh, this.mc.height * this.bh) }, pause: function() { this.jc || (this.ZB = this.Iq, this.XO(0.25), this.jc = !0) }, gha: function() { b.assert(this.cd, b.e.MQ); this.si.pop(); var a = this.si.length; 0 == a ? this.end() : (this.Jk = !0, this.ii = this.si[a - 1]) }, f3: function() { b.ww.nk(); b.Rj.nk(); b.Da.nk() }, g3: function() { this.$k().yy(); b.ra && b.ra.ve(!1); this.cd && (this.cd.Xf(), this.cd.sb(), this.cd.Qe()); this.ii = this.cd = null; this.si.length = 0; this.GP(); this.f3(); b.Qo() }, h3: function(a) { b.assert(a, b.e.MG); this.Jk = !1; this.si.push(a); this.ii = a }, dy: function(a) { b.assert(a, b.e.MG); if (this.cd) { var c = this.si.length; 0 === c ? (this.Jk = !0, this.si[c] = a) : (this.Jk = !0, this.si[c - 1] = a); this.ii = a } else this.h3(a), this.EP() }, wp: function() { this.jc && (this.XO(this.ZB), (this.Bk = Date.now()) || b.log(b.e.OQ), this.jc = !1, this.pk = 0) }, wia: function(a) { a != this.bh && (this.bh = a, this.Ln()) }, zia: function() {}, cja: function(a) { this.sr = a }, k4: function() { var a = !1, c = !1; b.ca && (a = this.cd ? this.cd instanceof b.ca : !1, c = this.ii ? this.ii instanceof b.ca : !1); if (!c) { if (c = this.cd) c.Xf(), c.sb(); this.Jk && c && c.Qe() } this.cd = this.ii; this.ii = null; a || null == this.cd || (this.cd.Z(), this.cd.Mh()) }, eja: function(a) { this.zv = a }, $_: function() { return this.wC }, T3: function(a) { this.wC = a }, uY: function() { this.Vd++; this.un += this.pk; this.Af && this.Bf && this.Ef ? (this.un > b.JQ && (this.Bf.string = this.IC.toFixed(3), this.rB = this.Vd / this.un, this.un = this.Vd = 0, this.Af.string = this.rB.toFixed(1), this.Ef.string = (0 | b.sf).toString()), this.Af.R(), this.Bf.R(), this.Ef.R()) : this.Ln(); b.sf = 0 }, hea: function() { return this.Jk }, Pca: function() { return this.cd }, cba: function() { return this.Iq }, Vda: function() { return this.Xq }, W3: function(a) { this.Xq = a }, Uca: function() { return this.IC }, $da: function() { return this.sr }, bea: function() { return this.jc }, oda: function() { return this.ow }, hha: function() { this.Z2(1) }, Z2: function(a) { b.assert(this.cd, b.e.NQ); var c = this.si, d = c.length; if (0 == d) this.end(); else if (!(a > d)) { for (; d > a;) { var e = c.pop(); e.running && (e.Xf(), e.sb()); e.Qe(); d-- } this.ii = c[c.length - 1]; this.Jk = !1 } }, $k: function() { return this.Nf }, tP: function(a) { this.Nf != a && (this.Nf = a) }, Mw: function() { return this.rg }, WO: function(a) { this.rg != a && (this.rg = a) }, wba: function() { return this.pk }, Ln: null, YU: function() { this.IC = (Date.now() - this.Bk) / 1E3 } }); b.Ta.ZQ = "director_projection_changed"; b.Ta.WQ = "director_after_draw"; b.Ta.YQ = "director_after_visit"; b.Ta.XQ = "director_after_update"; b.QQ = b.Ta.extend({ mx: !1, EP: function() { this.sr = !0; this.mx = !1 }, z2: function() { this.Kv ? (this.Kv = !1, this.g3()) : this.mx || this.d_() }, GP: function() { this.mx = !0 }, XO: function(a) { this.Iq = a; this.mx || (this.GP(), this.EP()) } }); b.Ta.jG = null; b.Ta.OM = !0; b.Ta.yB = function() { b.Ta.OM && (b.Ta.OM = !1, b.Ta.jG = new b.QQ, b.Ta.jG.da()); return b.Ta.jG }; b.RZ = 60; b.Ta.sS = 0; b.Ta.kH = 1; b.Ta.tS = 3; b.Ta.uS = b.Ta.kH; b.A === b.Ba ? (n = b.Ta.prototype, n.Xm = function(a) { this.pi = a; b.ra.dispatchEvent(this.$u) }, n.aP = function() {}, n.YF = function(a) { this.mc.width = b.Va.width; this.mc.height = b.Va.height; this.lh = a || b.view; b.ra && b.ra.ve(!0) }, n.nk = function() { var a = this.lh.qe; b.l.clearRect(-a.x, a.y, a.width, -a.height) }, n.Ln = function() { var a = 0, a = this.mc.width > this.mc.height ? 0 | this.mc.height / 320 * 24 : 0 | this.mc.width / 320 * 24; this.Af = b.M.create("000.0", "Arial", a); this.Bf = b.M.create("0.000", "Arial", a); this.Ef = b.M.create("0000", "Arial", a); a = b.Ry; this.Ef.P(this.Ef.width / 2 + a.x, 5 * this.Ef.height / 2 + a.y); this.Bf.P(this.Bf.width / 2 + a.x, 3 * this.Bf.height / 2 + a.y); this.Af.P(this.Af.width / 2 + a.x, this.Af.height / 2 + a.y) }, n.vs = function() { return this.Aa() }, n.PE = function() { return C(0, 0) }) : (b.Ta.Xn = new Image, b.Ga(b.Ta.Xn, "load", function() { b.Ta.UJ = !0 }), b.Xn && (b.Ta.Xn.src = b.Xn), b.assert("function" === typeof b.F.Ty, b.e.jd, "CCDirectorWebGL.js"), b.F.Ty(), delete b.F.Ty); b.Lp = b.oa.extend({ Zq: null, $q: null, ar: null, Fn: null, Gn: null, Hn: null, Tr: null, Ur: null, Vr: null, jb: null, vv: null, ctor: function() { this.vv = new b.ba; this.restore() }, description: function() { return "\x3cCCCamera | center \x3d(" + this.Fn + "," + this.Gn + "," + this.Hn + ")\x3e" }, bP: function(a) { this.jb = a }, hF: function() { return this.jb }, restore: function() { this.Zq = this.$q = 0; this.ar = b.Lp.xs(); this.Tr = this.Fn = this.Gn = this.Hn = 0; this.Ur = 1; this.Vr = 0; b.Nm(this.vv); this.jb = !1 }, Is: function() { if (this.jb) { var a = new b.wb, c = new b.wb, d = new b.wb; b.kp(a, this.Zq, this.$q, this.ar); b.kp(c, this.Fn, this.Gn, this.Hn); b.kp(d, this.Tr, this.Ur, this.Vr); b.XN(this.vv, a, c, d); this.jb = !1 } b.ip(this.vv) }, Gia: function(a, c, d) { this.eP(a, c, d) }, eP: function(a, c, d) { this.Zq = a; this.$q = c; this.ar = d; this.jb = !0 }, pia: function(a, c, d) { this.P3(a, c, d) }, P3: function(a, c, d) { this.Fn = a; this.Gn = c; this.Hn = d; this.jb = !0 }, dka: function(a, c, d) { this.I4(a, c, d) }, I4: function(a, c, d) { this.Tr = a; this.Ur = c; this.Vr = d; this.jb = !0 }, Mba: function() { return { x: this.Zq, y: this.$q, z: this.ar } }, ZM: function() { return { x: this.Zq, y: this.$q, z: this.ar } }, jba: function() { return { x: this.Fn, y: this.Gn, z: this.Hn } }, VM: function() { return { x: this.Fn, y: this.Gn, z: this.Hn } }, tda: function() { return { x: this.Tr, y: this.Ur, z: this.Vr } }, Z0: function() { return { x: this.Tr, y: this.Ur, z: this.Vr } }, O8: function() {} }); b.Lp.xs = function() { return b.Mt }; b.W7 = b.Ut + 1; b.Lo = function(a, c) { if (a && 0 < a.length) for (var d = 0; d < a.length; d++) if (!(a[d] instanceof c)) return b.log(b.e.Lo), !1; return !0 }; b.Pe = function(a, c) { for (var d = 0, e = a.length; d < e; d++) if (a[d] == c) { a.splice(d, 1); break } }; b.g$ = function(a, c) { for (var d = 0, e = c.length; d < e; d++) b.Pe(a, c[d]) }; b.f$ = function(a, c, d) { a.splice.apply(a, [d, 0].concat(c)); return a }; b.YG = function(a, c, d) { this.next = null; this.target = a; this.d3 = c; this.paused = d; this.Ex = !1 }; b.TG = function(a, c, d) { this.list = a; this.Em = c; this.target = d; this.bx = null }; b.kR = function(a, c) { this.Ni = null; this.target = a; this.Ep = 0; this.ms = this.ls = null; this.paused = c; this.bx = null }; b.QH = b.oa.extend({ fj: 0, de: null, ne: null, kb: 0, kL: !1, vw: !1, Do: 0, BC: 0, Pu: 0, Yba: function() { return this.fj }, setInterval: function(a) { this.fj = a }, iba: function() { return this.de }, ctor: function(a, c, d, e, f) { this.ne = a; this.de = c; this.kb = -1; this.fj = d || 0; this.Pu = f || 0; this.vw = 0 < this.Pu; this.BC = null == e ? b.qq : e; this.kL = this.BC == b.qq }, hB: function() { if ("string" == typeof this.de) this.ne[this.de](this.kb); else this.de.call(this.ne, this.kb) }, update: function(a) { if (-1 == this.kb) this.Do = this.kb = 0; else { var c = this.ne, d = this.de; this.kb += a; this.kL && !this.vw ? this.kb >= this.fj && (c && d && this.hB(), this.kb = 0) : (this.vw ? this.kb >= this.Pu && (c && d && this.hB(), this.kb -= this.Pu, this.Do += 1, this.vw = !1) : this.kb >= this.fj && (c && d && this.hB(), this.kb = 0, this.Do += 1), this.Do > this.BC && b.I.$k().SP(c, d)) } } }); b.uq = b.oa.extend({ Sr: 1, om: null, dj: null, Bu: null, cj: null, T8: null, ib: null, ci: !1, pw: !1, ctor: function() { this.Sr = 1; this.om = [ [], [], [] ]; this.dj = {}; this.Bu = []; this.cj = {}; this.Jq = []; this.ib = null; this.pw = this.ci = !1 }, AC: function(a) { delete this.cj[a.target.ta]; b.Pe(this.Jq, a); a.QH = null; a.target = null }, cL: function(a) { if (a = this.dj[a.target.ta]) b.Pe(a.list, a.Em), delete this.dj[a.target.ta], b.Pe(this.Bu, a), a.Em = null, a.target = null }, SK: function(a, c, d, e) { e = new b.YG(c, d, e); if (a) { for (var f = a.length - 1, g = 0; g <= f && !(d < a[g].d3); g++); a.splice(g, 0, e) } else a = [], a.push(e); d = new b.TG(a, e, c); this.Bu.push(d); this.dj[c.ta] = d; return a }, PU: function(a, c, d) { d = new b.YG(c, 0, d); a.push(d); a = new b.TG(a, d, c); this.Bu.push(a); this.dj[c.ta] = a }, Pja: function(a) { this.Sr = a }, mda: function() { return this.Sr }, update: function(a) { var c = this.om, d = this.Jq, e, f, g; this.pw = !0; 1 != this.Sr && (a *= this.Sr); f = 0; for (g = c.length; f < g && 0 <= f; f++) for (var h = this.om[f], k = 0, m = h.length; k < m; k++) e = h[k], e.paused || e.Ex || e.target.update(a); f = 0; for (g = d.length; f < g; f++) { e = d[f]; if (!e) break; this.ib = e; this.ci = !1; if (!e.paused) for (e.Ep = 0; e.Ep < e.Ni.length; e.Ep++) e.ls = e.Ni[e.Ep], e.ms = !1, e.ls.update(a), e.ls = null; this.ci && 0 == e.Ni.length && (this.AC(e), f--) } f = 0; for (g = c.length; f < g; f++) for (h = this.om[f], k = 0, m = h.length; k < m;) { e = h[k]; if (!e) break; e.Ex ? this.cL(e) : k++ } this.pw = !1; this.ib = null }, G3: function(a, c, d, e, f, g) { b.assert(c, b.e.VS); b.assert(a, b.e.WS); d = d || 0; e = null == e ? b.qq : e; f = f || 0; g = g || !1; var h = this.cj[a.ta]; h || (h = new b.kR(a, g), this.Jq.push(h), this.cj[a.ta] = h); if (null == h.Ni) h.Ni = []; else for (var k = 0; k < h.Ni.length; k++) if (g = h.Ni[k], c == g.de) { b.log(b.e.US, g.fj.toFixed(4), d.toFixed(4)); g.fj = d; return } g = new b.QH(a, c, d, e, f); h.Ni.push(g) }, OF: function(a, c, d) { if (null !== a) { var e = this.om, f = this.dj[a.ta]; f ? f.Em.Ex = !1 : 0 == c ? this.PU(e[1], a, d) : 0 > c ? e[0] = this.SK(e[0], a, c, d) : e[2] = this.SK(e[2], a, c, d) } }, SP: function(a, c) { if (null != a && null != c) { var d = this.cj[a.ta]; if (d) for (var e = d.Ni, f = 0, g = e.length; f < g; f++) { var h = e[f]; if (c == h.de) { h != d.ls || d.ms || (d.ms = !0); e.splice(f, 1); d.Ep >= f && d.Ep--; 0 == e.length && (this.ib == d ? this.ci = !0 : this.AC(d)); break } } } }, ot: function(a) { null != a && (a = this.dj[a.ta], null != a && (this.pw ? a.Em.Ex = !0 : this.cL(a.Em))) }, RP: function(a) { if (null != a) { var c = this.cj[a.ta]; if (c) { var d = c.Ni; !c.ms && 0 <= d.indexOf(c.ls) && (c.ms = !0); d.length = 0; this.ib == c ? this.ci = !0 : this.AC(c) } this.ot(a) } }, yy: function() { this.G5(b.uq.Ut) }, G5: function(a) { for (var c = this.Jq, d = this.om, e = 0, f = c.length; e < f; e++) this.RP(c[e].target); for (e = 2; 0 <= e; e--) if (!(1 == e && 0 < a || 0 == e && 0 <= a)) for (var c = d[e], f = 0, g = c.length; f < g; f++) this.ot(c[f].target) }, cha: function() { return this.R2(b.uq.Ut) }, R2: function() { for (var a = [], c, d = this.Jq, e = this.om, f = 0, g = d.length; f < g; f++) if (c = d[f]) c.paused = !0, a.push(c.target); f = 0; for (g = e.length; f < g; f++) for (var d = e[f], h = 0, k = d.length; h < k; h++) if (c = d[h]) c.paused = !0, a.push(c.target); return a }, B3: function(a) { if (a) for (var c = 0; c < a.length; c++) this.Oj(a[c]) }, sp: function(a) { b.assert(a, b.e.SS); var c = this.cj[a.ta]; c && (c.paused = !0); (a = this.dj[a.ta]) && (a.Em.paused = !0) }, Oj: function(a) { b.assert(a, b.e.TS); var c = this.cj[a.ta]; c && (c.paused = !1); (a = this.dj[a.ta]) && (a.Em.paused = !1) }, kea: function(a) { b.assert(a, b.e.RS); return (a = this.cj[a.ta]) ? a.paused : !1 } }); b.uq.Ut = -2147483648; b.gH = 2 * Math.PI; b.NG = b.oa.extend({ TA: [], l: null, ctor: function(a) { this.l = a }, a_: function(a, c) { c || (c = 1); var d = b.view.ka, e = C(a.x * d, a.y * b.view.La); this.l.beginPath(); this.l.arc(e.x, -e.y, c * d, 0, 2 * Math.PI, !1); this.l.closePath(); this.l.fill() }, b_: function(a, c, d) { if (null != a) { d || (d = 1); c = this.l; var e = b.view.ka, f = b.view.La; c.beginPath(); for (var g = 0, h = a.length; g < h; g++) c.arc(a[g].x * e, -a[g].y * f, d * e, 0, 2 * Math.PI, !1); c.closePath(); c.fill() } }, Aj: function(a, c) { var d = this.l, e = b.view.ka, f = b.view.La; d.beginPath(); d.moveTo(a.x * e, -a.y * f); d.lineTo(c.x * e, -c.y * f); d.closePath(); d.stroke() }, sE: function(a, c) { this.Aj(C(a.x, a.y), C(c.x, a.y)); this.Aj(C(c.x, a.y), C(c.x, c.y)); this.Aj(C(c.x, c.y), C(a.x, c.y)); this.Aj(C(a.x, c.y), C(a.x, a.y)) }, JM: function(a, c, d) { this.uE([a, C(c.x, a.y), c, C(a.x, c.y)], 4, d) }, ae: function(a, c, d, e) { e = e || !1; if (null != a) { if (3 > a.length) throw Error("Polygon's point must greater than 2"); var f = a[0]; c = this.l; var g = b.view.ka, h = b.view.La; c.beginPath(); c.moveTo(f.x * g, -f.y * h); for (var f = 1, k = a.length; f < k; f++) c.lineTo(a[f].x * g, -a[f].y * h); d && c.closePath(); e ? c.fill() : c.stroke() } }, uE: function(a, c, d) { this.yp(d.r, d.g, d.b, d.a); this.ae(a, c, !0, !0) }, oE: function(a, c, d, e, f) { f = f || !1; e = this.l; var g = b.view.ka, h = b.view.La; e.beginPath(); e.arc(0 | a.x * g, 0 | -(a.y * h), c * g, -d, -(d - 2 * Math.PI), !1); f && e.lineTo(0 | a.x * g, 0 | -(a.y * h)); e.stroke() }, rE: function(a, c, d, e) { for (var f = this.TA, g = f.length = 0, h = 0; h < e; h++) f.push(C(Math.pow(1 - g, 2) * a.x + 2 * (1 - g) * g * c.x + g * g * d.x, Math.pow(1 - g, 2) * a.y + 2 * (1 - g) * g * c.y + g * g * d.y)), g += 1 / e; f.push(C(d.x, d.y)); this.ae(f, e + 1, !1, !1) }, pE: function(a, c, d, e, f) { for (var g = this.TA, h = g.length = 0, k = 0; k < f; k++) g.push(C(Math.pow(1 - h, 3) * a.x + 3 * Math.pow(1 - h, 2) * h * c.x + 3 * (1 - h) * h * h * d.x + h * h * h * e.x, Math.pow(1 - h, 3) * a.y + 3 * Math.pow(1 - h, 2) * h * c.y + 3 * (1 - h) * h * h * d.y + h * h * h * e.y)), h += 1 / f; g.push(C(e.x, e.y)); this.ae(g, f + 1, !1, !1) }, nE: function(a, c) { this.Bm(a, 0.5, c) }, Bm: function(a, c, d) { b.l.strokeStyle = "rgba(255,255,255,1)"; var e = this.TA; e.length = 0; for (var f, g, h = 1 / a.length, k = 0; k < d + 1; k++) g = k / d, 1 == g ? (f = a.length - 1, g = 1) : (f = 0 | g / h, g = (g - h * f) / h), f = b.DQ(b.gd(a, f - 1), b.gd(a, f - 0), b.gd(a, f + 1), b.gd(a, f + 2), c, g), e.push(f); this.ae(e, d + 1, !1, !1) }, drawImage: function(a, c, d, e, f) { switch (arguments.length) { case 2: this.l.drawImage(a, c.x, -(c.y + a.height)); break; case 3: this.l.drawImage(a, c.x, -(c.y + d.height), d.width, d.height); break; case 5: this.l.drawImage(a, c.x, c.y, d.width, d.height, e.x, -(e.y + f.height), f.width, f.height); break; default: throw Error("Argument must be non-nil"); } }, e_: function(a, c, d) { a = a || this.l; c *= b.view.ka; d = "rgba(" + (0 | d.r) + "," + (0 | d.g) + "," + (0 | d.b); a.fillStyle = d + ",1)"; var e = c / 10; a.beginPath(); a.moveTo(-c, c); a.lineTo(0, e); a.lineTo(c, c); a.lineTo(e, 0); a.lineTo(c, -c); a.lineTo(0, -e); a.lineTo(-c, -c); a.lineTo(-e, 0); a.lineTo(-c, c); a.closePath(); a.fill(); var f = a.createRadialGradient(0, 0, e, 0, 0, c); f.addColorStop(0, d + ", 1)"); f.addColorStop(0.3, d + ", 0.8)"); f.addColorStop(1, d + ", 0.0)"); a.fillStyle = f; a.beginPath(); a.arc(0, 0, c - e, 0, b.gH, !1); a.closePath(); a.fill() }, YZ: function(a, c, d) { a = a || this.l; c *= b.view.ka; d = "rgba(" + (0 | d.r) + "," + (0 | d.g) + "," + (0 | d.b); var e = a.createRadialGradient(0, 0, c / 10, 0, 0, c); e.addColorStop(0, d + ", 1)"); e.addColorStop(0.3, d + ", 0.8)"); e.addColorStop(0.6, d + ", 0.4)"); e.addColorStop(1, d + ", 0.0)"); a.fillStyle = e; a.beginPath(); a.arc(0, 0, c, 0, b.gH, !1); a.closePath(); a.fill() }, fillText: function(a, c, d) { this.l.fillText(a, c, -d) }, yp: function(a, c, d, e) { this.l.fillStyle = "rgba(" + a + "," + c + "," + d + "," + e / 255 + ")"; this.l.strokeStyle = "rgba(" + a + "," + c + "," + d + "," + e / 255 + ")" }, o4: function() {}, WF: function(a) { this.l.lineWidth = a * b.view.ka } }); b.TQ = b.oa.extend({ l: null, kr: !1, yc: null, bi: -1, df: null, lC: -1, kC: -1, ctor: function(a) { null == a && (a = b.l); if (!a instanceof WebGLRenderingContext) throw "Can't initialise DrawingPrimitiveWebGL. context need is WebGLRenderingContext"; this.l = a; this.df = new Float32Array([1, 1, 1, 1]) }, Ij: function() { this.kr || (this.yc = b.Md.nc(b.Pz), this.bi = this.l.getUniformLocation(this.yc.Lm(), "u_color"), this.lC = this.l.getUniformLocation(this.yc.Lm(), "u_pointSize"), this.kr = !0) }, Z$: function() { this.kr = !1 }, a_: function(a) { this.Ij(); var c = this.l; this.yc.Oc(); this.yc.Ye(); b.Jc(b.Qd); c.uniform4fv(this.bi, this.df); this.yc.dt(this.lC, this.kC); var d = c.createBuffer(); c.bindBuffer(c.ARRAY_BUFFER, d); c.bufferData(c.ARRAY_BUFFER, new Float32Array([a.x, a.y]), c.STATIC_DRAW); c.vertexAttribPointer(b.qb, 2, c.FLOAT, !1, 0, 0); c.drawArrays(c.POINTS, 0, 1); c.deleteBuffer(d); b.Vf() }, b_: function(a) { if (a && 0 != a.length) { this.Ij(); var c = this.l; this.yc.Oc(); this.yc.Ye(); b.Jc(b.Qd); c.uniform4fv(this.bi, this.df); this.yc.dt(this.lC, this.kC); var d = c.createBuffer(); c.bindBuffer(c.ARRAY_BUFFER, d); c.bufferData(c.ARRAY_BUFFER, this.Iv(a), c.STATIC_DRAW); c.vertexAttribPointer(b.qb, 2, c.FLOAT, !1, 0, 0); c.drawArrays(c.POINTS, 0, a.length); c.deleteBuffer(d); b.Vf() } }, Iv: function(a) { for (var c = new Float32Array(2 * a.length), d = 0; d < a.length; d++) c[2 * d] = a[d].x, c[2 * d + 1] = a[d].y; return c }, Aj: function(a, c) { this.Ij(); var d = this.l; this.yc.Oc(); this.yc.Ye(); b.Jc(b.Qd); d.uniform4fv(this.bi, this.df); var e = d.createBuffer(); d.bindBuffer(d.ARRAY_BUFFER, e); d.bufferData(d.ARRAY_BUFFER, this.Iv([a, c]), d.STATIC_DRAW); d.vertexAttribPointer(b.qb, 2, d.FLOAT, !1, 0, 0); d.drawArrays(d.LINES, 0, 2); d.deleteBuffer(e); b.Vf() }, sE: function(a, c) { this.Aj(C(a.x, a.y), C(c.x, a.y)); this.Aj(C(c.x, a.y), C(c.x, c.y)); this.Aj(C(c.x, c.y), C(a.x, c.y)); this.Aj(C(a.x, c.y), C(a.x, a.y)) }, JM: function(a, c, d) { this.uE([a, C(c.x, a.y), c, C(a.x, c.y)], 4, d) }, ae: function(a, c, d) { this.Ij(); c = this.l; this.yc.Oc(); this.yc.Ye(); b.Jc(b.Qd); c.uniform4fv(this.bi, this.df); var e = c.createBuffer(); c.bindBuffer(c.ARRAY_BUFFER, e); c.bufferData(c.ARRAY_BUFFER, this.Iv(a), c.STATIC_DRAW); c.vertexAttribPointer(b.qb, 2, c.FLOAT, !1, 0, 0); d ? c.drawArrays(c.LINE_LOOP, 0, a.length) : c.drawArrays(c.LINE_STRIP, 0, a.length); c.deleteBuffer(e); b.Vf() }, uE: function(a, c, d) { this.Ij(); d && this.yp(d.r, d.g, d.b, d.a); c = this.l; this.yc.Oc(); this.yc.Ye(); b.Jc(b.Qd); c.uniform4fv(this.bi, this.df); d = c.createBuffer(); c.bindBuffer(c.ARRAY_BUFFER, d); c.bufferData(c.ARRAY_BUFFER, this.Iv(a), c.STATIC_DRAW); c.vertexAttribPointer(b.qb, 2, c.FLOAT, !1, 0, 0); c.drawArrays(c.TRIANGLE_FAN, 0, a.length); c.deleteBuffer(d); b.Vf() }, oE: function(a, c, d, e, f) { this.Ij(); var g = 1; f && g++; var h = 2 * Math.PI / e; if (f = new Float32Array(2 * (e + 2))) { for (var k = 0; k <= e; k++) { var m = k * h, p = c * Math.sin(m + d) + a.y; f[2 * k] = c * Math.cos(m + d) + a.x; f[2 * k + 1] = p } f[2 * (e + 1)] = a.x; f[2 * (e + 1) + 1] = a.y; a = this.l; this.yc.Oc(); this.yc.Ye(); b.Jc(b.Qd); a.uniform4fv(this.bi, this.df); c = a.createBuffer(); a.bindBuffer(a.ARRAY_BUFFER, c); a.bufferData(a.ARRAY_BUFFER, f, a.STATIC_DRAW); a.vertexAttribPointer(b.qb, 2, a.FLOAT, !1, 0, 0); a.drawArrays(a.LINE_STRIP, 0, e + g); a.deleteBuffer(c); b.Vf() } }, rE: function(a, c, d, e) { this.Ij(); for (var f = new Float32Array(2 * (e + 1)), g = 0, h = 0; h < e; h++) f[2 * h] = Math.pow(1 - g, 2) * a.x + 2 * (1 - g) * g * c.x + g * g * d.x, f[2 * h + 1] = Math.pow(1 - g, 2) * a.y + 2 * (1 - g) * g * c.y + g * g * d.y, g += 1 / e; f[2 * e] = d.x; f[2 * e + 1] = d.y; a = this.l; this.yc.Oc(); this.yc.Ye(); b.Jc(b.Qd); a.uniform4fv(this.bi, this.df); c = a.createBuffer(); a.bindBuffer(a.ARRAY_BUFFER, c); a.bufferData(a.ARRAY_BUFFER, f, a.STATIC_DRAW); a.vertexAttribPointer(b.qb, 2, a.FLOAT, !1, 0, 0); a.drawArrays(a.LINE_STRIP, 0, e + 1); a.deleteBuffer(c); b.Vf() }, pE: function(a, c, d, e, f) { this.Ij(); for (var g = new Float32Array(2 * (f + 1)), h = 0, k = 0; k < f; k++) g[2 * k] = Math.pow(1 - h, 3) * a.x + 3 * Math.pow(1 - h, 2) * h * c.x + 3 * (1 - h) * h * h * d.x + h * h * h * e.x, g[2 * k + 1] = Math.pow(1 - h, 3) * a.y + 3 * Math.pow(1 - h, 2) * h * c.y + 3 * (1 - h) * h * h * d.y + h * h * h * e.y, h += 1 / f; g[2 * f] = e.x; g[2 * f + 1] = e.y; a = this.l; this.yc.Oc(); this.yc.Ye(); b.Jc(b.Qd); a.uniform4fv(this.bi, this.df); c = a.createBuffer(); a.bindBuffer(a.ARRAY_BUFFER, c); a.bufferData(a.ARRAY_BUFFER, g, a.STATIC_DRAW); a.vertexAttribPointer(b.qb, 2, a.FLOAT, !1, 0, 0); a.drawArrays(a.LINE_STRIP, 0, f + 1); a.deleteBuffer(c); b.Vf() }, nE: function(a, c) { this.Bm(a, 0.5, c) }, Bm: function(a, c, d) { this.Ij(); for (var e = new Float32Array(2 * (d + 1)), f, g, h = 1 / a.length, k = 0; k < d + 1; k++) g = k / d, 1 == g ? (f = a.length - 1, g = 1) : (f = 0 | g / h, g = (g - h * f) / h), f = b.DQ(b.gd(a, f - 1), b.gd(a, f), b.gd(a, f + 1), b.gd(a, f + 2), c, g), e[2 * k] = f.x, e[2 * k + 1] = f.y; a = this.l; this.yc.Oc(); this.yc.Ye(); b.Jc(b.Qd); a.uniform4fv(this.bi, this.df); c = a.createBuffer(); a.bindBuffer(a.ARRAY_BUFFER, c); a.bufferData(a.ARRAY_BUFFER, e, a.STATIC_DRAW); a.vertexAttribPointer(b.qb, 2, a.FLOAT, !1, 0, 0); a.drawArrays(a.LINE_STRIP, 0, d + 1); a.deleteBuffer(c); b.Vf() }, yp: function(a, c, d, e) { this.df[0] = a / 255; this.df[1] = c / 255; this.df[2] = d / 255; this.df[3] = e / 255 }, o4: function(a) { this.kC = a * b.pb() }, WF: function(a) { this.l.lineWidth && this.l.lineWidth(a) } }); b.F.xA = function() { var a = b.M.prototype; a.cb = b.N.prototype.cb; a.nf = function() { this.nb = !0; var a = this.gm, d = this.hm; this.Zv = "rgba(128,128,128," + this.sj + ")"; this.cv = "rgba(" + (0 | d.r) + "," + (0 | d.g) + "," + (0 | d.b) + ", 1)"; this.dw = "rgba(" + (0 | a.r) + "," + (0 | a.g) + "," + (0 | a.b) + ", 1)" }; a.Nc = b.N.prototype.Nc; a.Sa = b.N.prototype.Sa; a.Bc = b.N.prototype.Bc; a.aF = function(a, d) { if (!b.N.prototype.da.call(this)) return !1; this.shaderProgram = b.Md.nc(b.M.DU); this.zD(d, !1); this.string = a; return !0 }; a.hy = function(a) { var d = this.hm; if (d.r != a.r || d.g != a.g || d.b != a.b) d.r = a.r, d.g = a.g, d.b = a.b, this.nf(), this.nb = !0 }; a.Y = function(a) { if (this.Ib && "" != this.Ib) { a = a || b.l; var d = this.G; d && d.wc && (this.Eb.Oc(), this.Eb.Ye(), b.Hh(this.p.src, this.p.S), b.te(d), b.Jc(b.El), a.bindBuffer(a.ARRAY_BUFFER, this.Lv), this.Ie && (a.bufferData(a.ARRAY_BUFFER, this.Ob.xw, a.STATIC_DRAW), this.Ie = !1), a.vertexAttribPointer(b.qb, 3, a.FLOAT, !1, 24, 0), a.vertexAttribPointer(b.zd, 2, a.FLOAT, !1, 24, 16), a.vertexAttribPointer(b.Ce, 4, a.UNSIGNED_BYTE, !0, 24, 12), a.drawArrays(a.TRIANGLE_STRIP, 0, 4)); if (1 === b.Yj) a = this.Ob, b.Fe.ae([C(a.K.f.x, a.K.f.y), C(a.C.f.x, a.C.f.y), C(a.L.f.x, a.L.f.y), C(a.J.f.x, a.J.f.y)], 4, !0); else if (2 === b.Yj) { a = this.uN(); var d = this.offsetX, e = this.offsetY; b.Fe.ae([C(d, e), C(d + a.width, e), C(d + a.width, e + a.height), C(d, e + a.height)], 4, !0) } b.sf++ } }; a.tb = b.N.prototype.tb }; b.F.Az = function() { var a = b.M.prototype; b.i(a, "color", a.Hg, a.cb); b.i(a, "opacity", a.Ig, a.Sa); b.i(a, "string", a.al, a.Kb); b.i(a, "textAlign", a.m0, a.VF); b.i(a, "verticalAlign", a.c1, a.L4); b.i(a, "fontSize", a.DE, a.jy); b.i(a, "fontName", a.CE, a.iy); b.i(a, "font", a.YV, a.UX); b.i(a, "boundingWidth", a.wB, a.OX); b.i(a, "boundingHeight", a.VV, a.NX); b.i(a, "fillStyle", a.XV, a.hy); b.i(a, "strokeStyle", a.tW, a.pY); b.i(a, "lineWidth", a.fW, a.YX); b.i(a, "shadowOffsetX", a.oW, a.fY); b.i(a, "shadowOffsetY", a.pW, a.gY); b.i(a, "shadowOpacity", a.qW, a.hY); b.i(a, "shadowBlur", a.nW, a.eY) }; b.M = b.N.extend({ hc: null, Ak: b.Al, Vk: b.Bq, Wb: null, Nb: 0, Ib: "", dC: null, lo: !1, dh: null, nd: !1, Ed: null, sj: 0, Mk: 0, Zv: null, Dg: !1, gm: null, uj: 0, dw: null, hm: null, cv: null, lD: 0, mD: 0, nb: !1, qv: null, rv: null, xK: null, vb: "LabelTTF", ctor: function(a, c, d, e, f, g) { b.N.prototype.ctor.call(this); this.hc = N(0, 0); this.Ak = b.eu; this.Vk = b.Bq; this.Oa = !1; this.dh = ""; this.Wb = "Arial"; this.nd = this.lo = !1; this.Ed = C(0, 0); this.Mk = this.sj = 0; this.Zv = "rgba(128, 128, 128, 0.5)"; this.Dg = !1; this.gm = b.color(255, 255, 255, 255); this.uj = 0; this.dw = ""; this.hm = b.color(255, 255, 255, 255); this.cv = "rgba(255,255,255,1)"; this.mD = this.lD = 0; this.nb = !1; this.xK = []; this.nf(); c && c instanceof b.RG ? this.aF(a, c) : b.M.prototype.sd.call(this, a, c, d, e, f, g) }, da: function() { return this.sd(" ", this.Wb, this.Nb) }, aX: function() { this.zB().font = this.dh }, oo: function(a) { return this.zB().measureText(a).width }, description: function() { return "\x3ccc.LabelTTF | FontName \x3d" + this.Wb + " FontSize \x3d " + this.Nb.toFixed(1) + "\x3e" }, cb: null, nf: null, Nc: null, Sa: null, Bc: null, Ika: function(a) { b.k.prototype.Bc.call(this, a); this.nf() }, al: function() { return this.Ib }, m0: function() { return this.Ak }, c1: function() { return this.Vk }, Aba: function() { return N(this.hc) }, DE: function() { return this.Nb }, CE: function() { return this.Wb }, sd: function(a, c, d, e, f, g) { a = a ? a + "" : ""; d = d || 16; e = e || N(0, d); f = f || b.eu; g = g || b.Bq; this.Oa = !1; this.hc = N(e.width, e.height); this.Wb = c || "Arial"; this.Ak = f; this.Vk = g; this.Nb = d; this.dh = this.Nb + "px '" + c + "'"; this.ei = b.M.Dq(c, this.Nb); this.string = a; this.nf(); this.uw(); this.nb = !1; return !0 }, aF: null, Jja: function(a) { a && this.zD(a, !0) }, gda: function() { return this.yX(!1) }, p_: function(a, c, d, e) { d = d || 0.5; !1 === this.nd && (this.nd = !0); var f = this.Ed; if (f && f.x != a || f.Oe != c) f.x = a, f.y = c; this.sj != d && (this.sj = d); this.nf(); this.Mk != e && (this.Mk = e); this.nb = !0 }, oW: function() { return this.Ed.x }, fY: function(a) { !1 === this.nd && (this.nd = !0); this.Ed.x != a && (this.Ed.x = a, this.nb = !0) }, pW: function() { return this.Ed.Oe }, gY: function(a) { !1 === this.nd && (this.nd = !0); this.Ed.Oe != a && (this.Ed.Oe = a, this.nb = !0) }, j9: function() { return C(this.Ed.x, this.Ed.y) }, A9: function(a) { !1 === this.nd && (this.nd = !0); if (this.Ed.x != a.x || this.Ed.y != a.y) this.Ed.x = a.x, this.Ed.y = a.y, this.nb = !0 }, qW: function() { return this.sj }, hY: function(a) { !1 === this.nd && (this.nd = !0); this.sj != a && (this.sj = a, this.nf(), this.nb = !0) }, nW: function() { return this.Mk }, eY: function(a) { !1 === this.nd && (this.nd = !0); this.Mk != a && (this.Mk = a, this.nb = !0) }, Q$: function() { this.nd && (this.nd = !1, this.nb = !0) }, q_: function(a, c) { !1 === this.Dg && (this.Dg = !0); var d = this.gm; if (d.r !== a.r || d.g !== a.g || d.b !== a.b) d.r = a.r, d.g = a.g, d.b = a.b, this.nf(); this.uj !== c && (this.uj = c || 0); this.nb = !0 }, tW: function() { return this.gm }, pY: function(a) { !1 === this.Dg && (this.Dg = !0); var c = this.gm; if (c.r !== a.r || c.g !== a.g || c.b !== a.b) c.r = a.r, c.g = a.g, c.b = a.b, this.nf(), this.nb = !0 }, fW: function() { return this.uj }, YX: function(a) { !1 === this.Dg && (this.Dg = !0); this.uj !== a && (this.uj = a || 0, this.nb = !0) }, R$: function() { this.Dg && (this.Dg = !1, this.nb = !0) }, hy: null, XV: function() { return this.hm }, zD: function(a, c) { a.Vaa ? (this.hc.width = a.boundingWidth, this.hc.height = a.boundingHeight) : (this.hc.width = 0, this.hc.height = 0); this.Ak = a.textAlign; this.Vk = a.verticalAlign; this.Wb = a.fontName; this.Nb = a.fontSize || 12; this.dh = this.Nb + "px '" + this.Wb + "'"; this.ei = b.M.Dq(this.Wb, this.Nb); a.AP && this.p_(a.shadowOffsetX, a.shadowOffsetY, a.shadowOpacity, a.shadowBlur); a.mG && this.q_(a.strokeStyle, a.lineWidth); this.hy(a.fillStyle); c && this.uw() }, yX: function(a) { var c = new b.RG; a ? (c.fontSize = this.Nb, c.boundingWidth = b.pb() * this.hc.width, c.boundingHeight = b.pb() * this.hc.height) : (c.fontSize = this.Nb, c.boundingWidth = this.hc.width, c.boundingHeight = this.hc.height); c.fontName = this.Wb; c.textAlign = this.Ak; c.verticalAlign = this.Vk; if (this.Dg) { c.mG = !0; var d = this.gm; c.strokeStyle = b.color(d.r, d.g, d.b); c.lineWidth = this.uj } else c.mG = !1; this.nd ? (c.AP = !0, c.shadowBlur = this.Mk, c.shadowOpacity = this.sj, c.shadowOffsetX = (a ? b.pb() : 1) * this.Ed.x, c.shadowOffsetY = (a ? b.pb() : 1) * this.Ed.y) : c.nd = !1; a = this.hm; c.fillStyle = b.color(a.r, a.g, a.b); return c }, ei: 18, Kb: function(a) { a = String(a); this.dC != a && (this.dC = a + "", this.sw(), this.nb = !0) }, sw: function() { this.Ib = this.dC }, VF: function(a) { a !== this.Ak && (this.Ak = a, this.nb = !0) }, L4: function(a) { a != this.Vk && (this.Vk = a, this.nb = !0) }, Cia: function(a, c) { var d; void 0 === c ? (d = a.width, c = a.height) : d = a; if (d != this.hc.width || c != this.hc.height) this.hc.width = d, this.hc.height = c, this.sw(), this.nb = !0 }, wB: function() { return this.hc.width }, OX: function(a) { a != this.hc.width && (this.hc.width = a, this.sw(), this.nb = !0) }, VV: function() { return this.hc.height }, NX: function(a) { a != this.hc.height && (this.hc.height = a, this.sw(), this.nb = !0) }, jy: function(a) { this.Nb !== a && (this.Nb = a, this.dh = a + "px '" + this.Wb + "'", this.ei = b.M.Dq(this.Wb, a), this.nb = !0) }, iy: function(a) { this.Wb && this.Wb != a && (this.Wb = a, this.dh = this.Nb + "px '" + a + "'", this.ei = b.M.Dq(a, this.Nb), this.nb = !0) }, YV: function() { return this.dh }, UX: function(a) { var c = b.M.KV.exec(a); c && (this.Nb = parseInt(c[1]), this.Wb = c[2], this.dh = a, this.ei = b.M.Dq(this.Wb, this.Nb), this.nb = !0) }, DV: function(a) { if (a) { var c = this.lD, d = this.mD, e = this.O.height - d, f = this.Vk, g = this.Ak, h = this.ei, k = this.uj; a.setTransform(1, 0, 0, 1, 0 + 0.5 * c, e + 0.5 * d); a.font != this.dh && (a.font = this.dh); a.fillStyle = this.cv; var m = d = 0, p = this.Dg; p && (a.lineWidth = 2 * k, a.strokeStyle = this.dw); this.nd && (k = this.Ed, a.shadowColor = this.Zv, a.shadowOffsetX = k.x, a.shadowOffsetY = -k.y, a.shadowBlur = this.Mk); a.textBaseline = b.M.FY[f]; a.textAlign = b.M.EY[g]; c = this.O.width - c; d = g === b.KH ? d + c : g === b.Al ? d + c / 2 : d + 0; if (this.lo) for (g = this.ui.length, f === b.xI ? m = h + e - h * g : f === b.uU && (m = h / 2 + (e - h * g) / 2), f = 0; f < g; f++) c = this.ui[f], k = -e + h * f + m, p && a.strokeText(c, d, k), a.fillText(c, d, k); else f !== b.xI && (m = f === b.Bq ? m - e : m - 0.5 * e), p && a.strokeText(this.Ib, d, m), a.fillText(this.Ib, d, m) } }, zB: function() { if (this.rv) return this.rv; if (!this.qv) { var a = b.Sb("canvas"), c = new b.aa; c.Kc(a); this.texture = c; this.qv = a } return this.rv = this.qv.getContext("2d") }, dV: function(a, c, d) { var e = a[c], f = this.oo(e); if (f > d && 1 < e.length) { for (var g = d / f * e.length | 0, h = e.substr(g), k = f - this.oo(h), m, p = 0, r = 0; k > d && 100 > r++;) g *= d / k, g |= 0, h = e.substr(g), k = f - this.oo(h); for (r = 0; k < d && 100 > r++;) h && (p = (m = b.M.UY.exec(h)) ? m[0].length : 1, m = h), g += p, h = e.substr(g), k = f - this.oo(h); g -= p; d = e.substr(0, g); b.M.T5 && b.M.DY.test(m || h) && (f = b.M.TW.exec(d), g -= f ? f[0].length : 0, m = e.substr(g), d = e.substr(0, g)); b.M.GV.test(m) && (f = b.M.SW.exec(d)) && d !== f[0] && (g -= f[0].length, m = e.substr(g), d = e.substr(0, g)); a[c] = m || h; a.splice(c, 0, d) } }, tw: function() { var a = this.hc.width, c, d, e = this.xK; e.length = 0; this.lo = !1; this.aX(); if (0 !== a) for (this.ui = this.Ib.split("\n"), c = 0; c < this.ui.length; c++) this.dV(this.ui, c, a); else for (this.ui = this.Ib.split("\n"), c = 0, d = this.ui.length; c < d; c++) e.push(this.oo(this.ui[c])); 0 < this.ui.length && (this.lo = !0); d = c = 0; this.Dg && (c = d = 2 * this.uj); if (this.nd) { var f = this.Ed; c += 2 * Math.abs(f.x); d += 2 * Math.abs(f.y) } a = 0 === a ? this.lo ? N(0 | Math.max.apply(Math, e) + c, 0 | this.ei * this.ui.length + d) : N(0 | this.oo(this.Ib) + c, 0 | this.ei + d) : 0 === this.hc.height ? this.lo ? N(0 | a + c, 0 | this.ei * this.ui.length + d) : N(0 | a + c, 0 | this.ei + d) : N(0 | a + c, 0 | this.hc.height + d); this.Kd(a); this.lD = c; this.mD = d; e = this.Qc; this.Ab.x = 0.5 * c + (a.width - c) * e.x; this.Ab.y = 0.5 * d + (a.height - d) * e.y }, se: function() { this.nb && this.tw(); return b.N.prototype.se.call(this) }, eh: function() { this.nb && this.tw(); return b.N.prototype.eh.call(this) }, yk: function() { this.nb && this.tw(); return b.N.prototype.yk.call(this) }, uw: function() { var a = this.zB(), c = this.qv, d = this.O; if (0 === this.Ib.length) return c.width = 1, c.height = d.height || 1, this.G && this.G.rb(), this.tb(O(0, 0, 1, d.height)), !0; a.font = this.dh; this.tw(); var e = d.width, d = d.height, f = c.width == e && c.height == d; c.width = e; c.height = d; f && a.clearRect(0, 0, e, d); this.DV(a); this.G && this.G.rb(); this.tb(O(0, 0, e, d)); return !0 }, R: function(a) { this.Ib && "" != this.Ib && (this.nb && (this.nb = !1, this.uw()), b.N.prototype.R.call(this, a || b.l)) }, Y: null, qL: function(a) { var c = this.V ? this.textureAtlas.texture : this.G; if (c) { var d = c.pixelsWidth, e = c.pixelsHeight, f, g = this.Ob; this.Ec ? (b.jn ? (c = (2 * a.x + 1) / (2 * d), d = c + (2 * a.height - 2) / (2 * d), f = (2 * a.y + 1) / (2 * e), a = f + (2 * a.width - 2) / (2 * e)) : (c = a.x / d, d = (a.x + a.height) / d, f = a.y / e, a = (a.y + a.width) / e), this.Lb && (e = f, f = a, a = e), this.Mb && (e = c, c = d, d = e), g.C.m.fa = c, g.C.m.ga = f, g.L.m.fa = c, g.L.m.ga = a, g.K.m.fa = d, g.K.m.ga = f, g.J.m.fa = d, g.J.m.ga = a) : (b.jn ? (c = (2 * a.x + 1) / (2 * d), d = c + (2 * a.width - 2) / (2 * d), f = (2 * a.y + 1) / (2 * e), a = f + (2 * a.height - 2) / (2 * e)) : (c = a.x / d, d = (a.x + a.width) / d, f = a.y / e, a = (a.y + a.height) / e), this.Lb && (e = c, c = d, d = e), this.Mb && (e = f, f = a, a = e), g.C.m.fa = c, g.C.m.ga = a, g.L.m.fa = d, g.L.m.ga = a, g.K.m.fa = c, g.K.m.ga = f, g.J.m.fa = d, g.J.m.ga = f); this.Ie = !0 } } }); b.A === b.Ba ? (n = b.M.prototype, n.cb = function(a) { b.k.prototype.cb.call(this, a); this.nf() }, n.nf = function() { this.nb = !0; var a = this.ya, c = this.fb, d = this.gm, e = this.hm; this.Zv = "rgba(" + (0 | 0.5 * a.r) + "," + (0 | 0.5 * a.g) + "," + (0 | 0.5 * a.b) + "," + this.sj + ")"; this.cv = "rgba(" + (0 | a.r / 255 * e.r) + "," + (0 | a.g / 255 * e.g) + "," + (0 | a.b / 255 * e.b) + ", " + c / 255 + ")"; this.dw = "rgba(" + (0 | a.r / 255 * d.r) + "," + (0 | a.g / 255 * d.g) + "," + (0 | a.b / 255 * d.b) + ", " + c / 255 + ")" }, n.Nc = function(a) { b.k.prototype.Nc.call(this, a); this.nf() }, n.Sa = function(a) { this.Wd !== a && (b.N.prototype.Sa.call(this, a), this.nf(), this.nb = !0) }, n.Bc = b.N.prototype.Bc, n.aF = function(a, c) { this.zD(c, !1); this.string = a; return !0 }, n.hy = function(a) { var c = this.hm; if (c.r != a.r || c.g != a.g || c.b != a.b) c.r = a.r, c.g = a.g, c.b = a.b, this.nf(), this.nb = !0 }, n.Y = b.N.prototype.Y, n.tb = function(a, c, d) { this.Ec = c || !1; this.Kd(d || a); this.iG(a); c = this.im; c.x = a.x; c.y = a.y; c.width = a.width; c.height = a.height; c.bn = !(0 === c.width || 0 === c.height || 0 > c.x || 0 > c.y); a = this.xh; this.Lb && (a.x = -a.x); this.Mb && (a.y = -a.y); this.Hb.x = a.x + (this.O.width - this.ia.width) / 2; this.Hb.y = a.y + (this.O.height - this.ia.height) / 2; this.V && (this.dirty = !0) }, n = null) : (b.assert("function" === typeof b.F.xA, b.e.jd, "LabelTTFWebGL.js"), b.F.xA(), delete b.F.xA); b.assert("function" === typeof b.F.Az, b.e.jd, "LabelTTFPropertyDefine.js"); b.F.Az(); delete b.F.Az; b.M.EY = ["left", "center", "right"]; b.M.FY = ["top", "middle", "bottom"]; b.M.T5 = !0; b.M.UY = /([a-zA-Z0-9\u00c4\u00d6\u00dc\u00e4\u00f6\u00fc\u00df\u00e9\u00e8\u00e7\u00e0\u00f9\u00ea\u00e2\u00ee\u00f4\u00fb]+|\S)/; b.M.DY = /^[!,.:;}\]%\?>\u3001\u2018\u201c\u300b\uff1f\u3002\uff0c\uff01]/; b.M.TW = /([a-zA-Z0-9\u00c4\u00d6\u00dc\u00e4\u00f6\u00fc\u00df\u00e9\u00e8\u00e7\u00e0\u00f9\u00ea\u00e2\u00ee\u00f4\u00fb]+|\S)$/; b.M.SW = /[a-zA-Z0-9\u00c4\u00d6\u00dc\u00e4\u00f6\u00fc\u00df\u00e9\u00e8\u00e7\u00e0\u00f9\u00ea\u00e2\u00ee\u00f4\u00fb]+$/; b.M.GV = /^[a-zA-Z0-9\u00c4\u00d6\u00dc\u00e4\u00f6\u00fc\u00df\u00e9\u00e8\u00e7\u00e0\u00f9\u00ea\u00e2\u00ee\u00f4\u00fb]/; b.M.KV = /^(\d+)px\s+['"]?([\w\s\d]+)['"]?$/; b.M.create = function(a, c, d, e, f, g) { return new b.M(a, c, d, e, f, g) }; b.M.E$ = b.M.create; b.M.DU = b.tU ? b.Wi : b.Nz; b.M.jk = b.Sb("div"); b.M.jk.style.fontFamily = "Arial"; b.M.jk.style.position = "absolute"; b.M.jk.style.left = "-100px"; b.M.jk.style.top = "-100px"; b.M.jk.style.lineHeight = "normal"; document.body ? document.body.appendChild(b.M.jk) : b.Ga(window, "load", function() { this.removeEventListener("load", arguments.callee, !1); document.body.appendChild(b.M.jk) }, !1); b.M.Dq = function(a, c) { var d = b.M.DI[a + "." + c]; if (0 < d) return d; var e = b.M.jk; e.innerHTML = "ajghl~!"; e.style.fontFamily = a; e.style.fontSize = c + "px"; d = e.clientHeight; b.M.DI[a + "." + c] = d; e.innerHTML = ""; return d }; b.M.DI = {}; b.jR = b.oa.extend({ Ac: null, target: null, sm: 0, rf: null, zm: !1, paused: !1, bx: null, ctor: function() { this.Ac = []; this.target = null; this.sm = 0; this.rf = null; this.paused = this.zm = !1; this.bx = null } }); b.wG = b.oa.extend({ gh: null, wn: null, ib: null, ci: !1, y9: function(a, c) { for (var d = 0; d < a.length; d++) if (c == a[d].target) return a[d]; return null }, ctor: function() { this.gh = {}; this.wn = []; this.ib = null; this.ci = !1 }, XY: function(a, c, d) { if (!a) throw "cc.ActionManager.addAction(): action must be non-null"; if (!c) throw "cc.ActionManager.addAction(): action must be non-null"; var e = this.gh[c.ta]; e || (e = new b.jR, e.paused = d, e.target = c, this.gh[c.ta] = e, this.wn.push(e)); this.GU(e); e.Ac.push(a); a.v(c) }, Eha: function() { for (var a = this.wn, c = 0; c < a.length; c++) { var d = a[c]; d && this.HO(d.target, !0) } }, HO: function(a, c) { if (null != a) { var d = this.gh[a.ta]; d && (-1 === d.Ac.indexOf(d.rf) || d.zm || (d.zm = !0), d.Ac.length = 0, this.ib != d || c ? this.dB(d) : this.ci = !0) } }, GO: function(a) { if (null != a) { var c = this.gh[a.originalTarget.ta]; if (c) for (var d = 0; d < c.Ac.length; d++) { if (c.Ac[d] == a) { c.Ac.splice(d, 1); break } } else b.log(b.e.gQ) } }, n3: function(a, c) { a == b.dn && b.log(b.e.xG); b.assert(c, b.e.xG); var d = this.gh[c.ta]; if (d) for (var e = d.Ac.length, f = 0; f < e; ++f) { var g = d.Ac[f]; if (g && g.LE() === a && g.originalTarget == c) { this.BX(f, d); break } } }, xE: function(a, c) { a == b.dn && b.log(b.e.eQ); var d = this.gh[c.ta]; if (d) { if (null != d.Ac) for (var e = 0; e < d.Ac.length; ++e) { var f = d.Ac[e]; if (f && f.LE() === a) return f } b.log(b.e.fQ, a) } return null }, E2: function(a) { return (a = this.gh[a.ta]) ? a.Ac ? a.Ac.length : 0 : 0 }, sp: function(a) { (a = this.gh[a.ta]) && (a.paused = !0) }, Oj: function(a) { (a = this.gh[a.ta]) && (a.paused = !1) }, bha: function() { for (var a = [], c = this.wn, d = 0; d < c.length; d++) { var e = c[d]; e && !e.paused && (e.paused = !0, a.push(e.target)) } return a }, B3: function(a) { if (a) for (var c = 0; c < a.length; c++) a[c] && this.Oj(a[c]) }, mha: function() { b.I.$k().ot(this) }, BX: function(a, c) { c.Ac[a] != c.rf || c.zm || (c.zm = !0); c.Ac.splice(a, 1); c.sm >= a && c.sm--; 0 == c.Ac.length && (this.ib == c ? this.ci = !0 : this.dB(c)) }, dB: function(a) { a && (delete this.gh[a.target.ta], b.Pe(this.wn, a), a.Ac = null, a.target = null) }, GU: function(a) { null == a.Ac && (a.Ac = []) }, update: function(a) { for (var c = this.wn, d, e = 0; e < c.length; e++) { d = this.ib = c[e]; if (!d.paused) for (d.sm = 0; d.sm < d.Ac.length; d.sm++) if (d.rf = d.Ac[d.sm], d.rf) { d.zm = !1; d.rf.step(a * (d.rf.Ir ? d.rf.me : 1)); if (d.zm) d.rf = null; else if (d.rf.Jg()) { d.rf.stop(); var f = d.rf; d.rf = null; this.GO(f) } d.rf = null } this.ci && 0 === d.Ac.length && this.dB(d) } } }); b.Bfa = Number; b.rea = Number; b.sea = Number; b.nn = 0; b.on = 1; b.oF = 3.141592; b.g2 = 0.017453; b.h2 = 57.295779; b.xa = 0.015625; b.Lc = function(a) { return a * a }; b.Ds = function(a) { return a * b.g2 }; b.wfa = function(a) { return a * b.h2 }; b.tx = function(a, c) { return a < c ? a : c }; b.sx = function(a, c) { return a > c ? a : c }; b.qea = function(a, c) { return a + b.xa > c && a - b.xa < c }; b.Kh = function() { this.y = this.x = 0 }; b.Ffa = function(a, c, d) { a.x = c; a.y = d; return a }; b.vx = function(a) { return Math.sqrt(b.Lc(a.x) + b.Lc(a.y)) }; b.Gfa = function(a) { return b.Lc(a.x) + b.Lc(a.y) }; b.n2 = function(a, c) { var d = 1 / b.vx(c), e = new b.Kh; e.x = c.x * d; e.y = c.y * d; a.x = e.x; a.y = e.y }; b.Cfa = function(a, c, d) { a.x = c.x + d.x; a.y = c.y + d.y; return a }; b.Efa = function(a, c) { return a.x * c.x + a.y * c.y }; b.wx = function(a, c, d) { a.x = c.x - d.x; a.y = c.y - d.y; return a }; b.Ifa = function(a, c, d) { var e = new b.Kh; e.x = c.x * d.c[0] + c.y * d.c[3] + d.c[6]; e.y = c.x * d.c[1] + c.y * d.c[4] + d.c[7]; a.x = e.x; a.y = e.y; return a }; b.Jfa = function() { return null }; b.Hfa = function(a, c, d) { a.x = c.x * d; a.y = c.y * d; return a }; b.Dfa = function(a, c) { return a.x < c.x + b.xa && a.x > c.x - b.xa && a.y < c.y + b.xa && a.y > c.y - b.xa }; b.wb = function(a, c, d) { this.x = a || 0; this.y = c || 0; this.z = d || 0 }; b.kp = function(a, c, d, e) { if (!a) return new b.wb(c, d, e); a.x = c; a.y = d; a.z = e; return a }; b.eO = function(a) { return Math.sqrt(b.Lc(a.x) + b.Lc(a.y) + b.Lc(a.z)) }; b.fO = function(a) { return b.Lc(a.x) + b.Lc(a.y) + b.Lc(a.z) }; b.xf = function(a, c) { var d = 1 / b.eO(c); a.x = c.x * d; a.y = c.y * d; a.z = c.z * d }; b.el = function(a, c, d) { a.x = c.y * d.z - c.z * d.y; a.y = c.z * d.x - c.x * d.z; a.z = c.x * d.y - c.y * d.x }; b.qF = function(a, c) { return a.x * c.x + a.y * c.y + a.z * c.z }; b.dO = function(a, c, d) { a.x = c.x + d.x; a.y = c.y + d.y; a.z = c.z + d.z }; b.sF = function(a, c, d) { a.x = c.x - d.x; a.y = c.y - d.y; a.z = c.z - d.z }; b.Ofa = function(a, c, d) { a.x = c.x * d.c[0] + c.y * d.c[4] + c.z * d.c[8] + d.c[12]; a.y = c.x * d.c[1] + c.y * d.c[5] + c.z * d.c[9] + d.c[13]; a.z = c.x * d.c[2] + c.y * d.c[6] + c.z * d.c[10] + d.c[14]; return a }; b.Pfa = function(a, c, d) { a.x = c.x * d.c[0] + c.y * d.c[4] + c.z * d.c[8]; a.y = c.x * d.c[1] + c.y * d.c[5] + c.z * d.c[9]; a.z = c.x * d.c[2] + c.y * d.c[6] + c.z * d.c[10]; return a }; b.gO = function(a, c, d) { var e = new b.hO, f = new b.hO; b.o2(f, c.x, c.y, c.z); b.iO(e, f, d); a.x = e.x / e.D; a.y = e.y / e.D; a.z = e.z / e.D }; b.rF = function(a, c, d) { a.x = c.x * d; a.y = c.y * d; a.z = c.z * d; return a }; b.Kfa = function(a, c) { return a.x < c.x + b.xa && a.x > c.x - b.xa && a.y < c.y + b.xa && a.y > c.y - b.xa && a.z < c.z + b.xa && a.z > c.z - b.xa ? 1 : 0 }; b.Lfa = function(a, c, d) { c = new b.wb(c.x - d.c[12], c.y - d.c[13], c.z - d.c[14]); a.x = c.x * d.c[0] + c.y * d.c[1] + c.z * d.c[2]; a.y = c.x * d.c[4] + c.y * d.c[5] + c.z * d.c[6]; a.z = c.x * d.c[8] + c.y * d.c[9] + c.z * d.c[10]; return a }; b.Mfa = function(a, c, d) { a.x = c.x * d.c[0] + c.y * d.c[1] + c.z * d.c[2]; a.y = c.x * d.c[4] + c.y * d.c[5] + c.z * d.c[6]; a.z = c.x * d.c[8] + c.y * d.c[9] + c.z * d.c[10]; return a }; b.Es = function(a, c) { a != c && (a.x = c.x, a.y = c.y, a.z = c.z) }; b.Qfa = function(a) { a.x = 0; a.y = 0; a.z = 0; return a }; b.Nfa = function(a) { if (!a) return null; var c = new Float32Array(3); c[0] = a.x; c[1] = a.y; c[2] = a.z; return c }; b.hO = function() { this.D = this.z = this.y = this.x = 0 }; b.o2 = function(a, c, d, e) { a.x = c; a.y = d; a.z = e; a.D = 1 }; b.Rfa = function(a, c, d) { a.x = c.x + d.x; a.y = c.y + d.y; a.z = c.z + d.z; a.D = c.D + d.D; return a }; b.Ufa = function(a, c) { return a.x * c.x + a.y * c.y + a.z * c.z + a.D * c.D }; b.p2 = function(a) { return Math.sqrt(b.Lc(a.x) + b.Lc(a.y) + b.Lc(a.z) + b.Lc(a.D)) }; b.Vfa = function(a) { return b.Lc(a.x) + b.Lc(a.y) + b.Lc(a.z) + b.Lc(a.D) }; b.Wfa = function(a) { return a }; b.q2 = function(a, c) { var d = 1 / b.p2(c); a.x *= d; a.y *= d; a.z *= d; a.D *= d }; b.Xfa = function(a, c, d) { b.q2(a, c); a.x *= d; a.y *= d; a.z *= d; a.D *= d; return a }; b.Yfa = function(a, c, d) { a.x = c.x - d.x; a.y = c.y - d.y; a.z = c.z - d.z; a.D = c.D - d.D; return a }; b.iO = function(a, c, d) { a.x = c.x * d.c[0] + c.y * d.c[4] + c.z * d.c[8] + c.D * d.c[12]; a.y = c.x * d.c[1] + c.y * d.c[5] + c.z * d.c[9] + c.D * d.c[13]; a.z = c.x * d.c[2] + c.y * d.c[6] + c.z * d.c[10] + c.D * d.c[14]; a.D = c.x * d.c[3] + c.y * d.c[7] + c.z * d.c[11] + c.D * d.c[15] }; b.$fa = function(a, c, d, e, f, g) { for (var h = 0; h < g;) b.iO(a + h * c, d + h * e, f), ++h; return a }; b.Sfa = function(a, c) { return a.x < c.x + b.xa && a.x > c.x - b.xa && a.y < c.y + b.xa && a.y > c.y - b.xa && a.z < c.z + b.xa && a.z > c.z - b.xa && a.D < c.D + b.xa && a.D > c.D - b.xa }; b.Tfa = function(a, c) { if (a == c) return b.log("destVec and srcVec are same object"), a; a.x = c.x; a.y = c.y; a.z = c.z; a.D = c.D; return a }; b.Zfa = function(a) { if (!a) return null; var c = new Float32Array(4); c[0] = a.x; c[1] = a.y; c[2] = a.z; c[3] = a.D; return c }; b.xfa = function(a) { this.start = a || new b.Kh; this.start = a || new b.Kh }; b.yfa = function(a, c, d, e, f) { a.start.x = c; a.start.y = d; a.dir.x = e; a.dir.y = f }; b.pF = function(a, c, d, e) { var f = a.start.x, g = a.start.y, h = a.start.x + a.dir.x; a = a.start.y + a.dir.y; var k = c.x, m = c.y, p = d.x, r = d.y, s = (r - m) * (h - f) - (p - k) * (a - g); if (s > -b.xa && s < b.xa) return b.nn; m = ((p - k) * (g - m) - (r - m) * (f - k)) / s; k = f + m * (h - f); m = g + m * (a - g); if (k < b.tx(c.x, d.x) - b.xa || k > b.sx(c.x, d.x) + b.xa || m < b.tx(c.y, d.y) - b.xa || m > b.sx(c.y, d.y) + b.xa || k < b.tx(f, h) - b.xa || k > b.sx(f, h) + b.xa || m < b.tx(g, a) - b.xa || m > b.sx(g, a) + b.xa) return b.nn; e.x = k; e.y = m; return b.on }; b.XD = function(a, c, d) { var e = new b.Kh; b.wx(e, c, a); d.x = -e.y; d.y = e.x; b.n2(d, d) }; b.Afa = function(a, c, d, e, f, g) { var h = new b.Kh, k = new b.Kh, m = new b.Kh, p = 1E4, r = b.nn, s; b.pF(a, c, d, h) && (s = new b.Kh, r = b.on, s = b.vx(b.wx(s, h, a.start)), s < p && (k.x = h.x, k.y = h.y, p = s, b.XD(c, d, m))); b.pF(a, d, e, h) && (s = new b.Kh, r = b.on, s = b.vx(b.wx(s, h, a.start)), s < p && (k.x = h.x, k.y = h.y, p = s, b.XD(d, e, m))); b.pF(a, e, c, h) && (s = new b.Kh, r = b.on, s = b.vx(b.wx(s, h, a.start)), s < p && (k.x = h.x, k.y = h.y, b.XD(e, c, m))); r && (f.x = k.x, f.y = k.y, g && (g.x = m.x, g.y = m.y)); return r }; b.zfa = function() { b.log("cc.kmRay2IntersectCircle() has not been implemented.") }; var Float32Array = Float32Array || Array; b.rx = function() { this.c = new Float32Array([0, 0, 0, 0, 0, 0, 0, 0, 0]) }; b.Aea = function(a, c) { for (var d = 0; 9 > d; d++) a.c[d] = c; return a }; b.Z1 = function(a, c) { a.c[0] = c.c[4] * c.c[8] - c.c[5] * c.c[7]; a.c[1] = c.c[2] * c.c[7] - c.c[1] * c.c[8]; a.c[2] = c.c[1] * c.c[5] - c.c[2] * c.c[4]; a.c[3] = c.c[5] * c.c[6] - c.c[3] * c.c[8]; a.c[4] = c.c[0] * c.c[8] - c.c[2] * c.c[6]; a.c[5] = c.c[2] * c.c[3] - c.c[0] * c.c[5]; a.c[6] = c.c[3] * c.c[7] - c.c[4] * c.c[6]; a.c[8] = c.c[0] * c.c[4] - c.c[1] * c.c[3] }; b.WN = function(a) { a.c[1] = a.c[2] = a.c[3] = a.c[5] = a.c[6] = a.c[7] = 0; a.c[0] = a.c[4] = a.c[8] = 1 }; b.Bea = function(a, c, d) { var e = new b.rx; if (0 === c) return null; c = 1 / c; b.Z1(e, d); b.a2(a, e, c); return a }; b.rx.GB = new Float32Array([1, 0, 0, 0, 1, 0, 0, 0, 1]); b.Cea = function(a) { for (var c = 0; 9 > c; c++) if (b.rx.GB[c] !== a.c[c]) return !1; return !0 }; b.Nea = function(a, c) { var d, e; for (d = 0; 3 > d; ++d) for (e = 0; 3 > e; ++e) a.c[3 * d + e] = c.c[3 * e + d]; return a }; b.zea = function(a) { var c; c = a.c[0] * a.c[4] * a.c[8] + a.c[1] * a.c[5] * a.c[6] + a.c[2] * a.c[3] * a.c[7]; return c -= a.c[2] * a.c[4] * a.c[6] + a.c[0] * a.c[5] * a.c[7] + a.c[1] * a.c[3] * a.c[8] }; b.Dea = function(a, c, d) { c = c.c; d = d.c; a.c[0] = c[0] * d[0] + c[3] * d[1] + c[6] * d[2]; a.c[1] = c[1] * d[0] + c[4] * d[1] + c[7] * d[2]; a.c[2] = c[2] * d[0] + c[5] * d[1] + c[8] * d[2]; a.c[3] = c[0] * d[3] + c[3] * d[4] + c[6] * d[5]; a.c[4] = c[1] * d[3] + c[4] * d[4] + c[7] * d[5]; a.c[5] = c[2] * d[3] + c[5] * d[4] + c[8] * d[5]; a.c[6] = c[0] * d[6] + c[3] * d[7] + c[6] * d[8]; a.c[7] = c[1] * d[6] + c[4] * d[7] + c[7] * d[8]; a.c[8] = c[2] * d[6] + c[5] * d[7] + c[8] * d[8]; return a }; b.a2 = function(a, c, d) { for (var e = 0; 9 > e; e++) a.c[e] = c.c[e] * d }; b.Fea = function(a, c, d) { var e = Math.cos(d); d = Math.sin(d); a.c[0] = e + c.x * c.x * (1 - e); a.c[1] = c.z * d + c.y * c.x * (1 - e); a.c[2] = -c.y * d + c.z * c.x * (1 - e); a.c[3] = -c.z * d + c.x * c.y * (1 - e); a.c[4] = e + c.y * c.y * (1 - e); a.c[5] = c.x * d + c.z * c.y * (1 - e); a.c[6] = c.y * d + c.x * c.z * (1 - e); a.c[7] = -c.x * d + c.y * c.z * (1 - e); a.c[8] = e + c.z * c.z * (1 - e); return a }; b.yea = function(a, c) { if (a == c) return b.log("cc.kmMat3Assign(): pOut equals pIn"), a; for (var d = 0; 9 > d; d++) a.c[d] = c.c[d]; return a }; b.xea = function(a, c) { if (a == c) return !0; for (var d = 0; 9 > d; ++d) if (!(a.c[d] + b.xa > c.c[d] && a.c[d] - b.xa < c.c[d])) return !1; return !0 }; b.Iea = function(a, c) { a.c[0] = 1; a.c[1] = 0; a.c[2] = 0; a.c[3] = 0; a.c[4] = Math.cos(c); a.c[5] = Math.sin(c); a.c[6] = 0; a.c[7] = -Math.sin(c); a.c[8] = Math.cos(c); return a }; b.Jea = function(a, c) { a.c[0] = Math.cos(c); a.c[1] = 0; a.c[2] = -Math.sin(c); a.c[3] = 0; a.c[4] = 1; a.c[5] = 0; a.c[6] = Math.sin(c); a.c[7] = 0; a.c[8] = Math.cos(c); return a }; b.Kea = function(a, c) { a.c[0] = Math.cos(c); a.c[1] = -Math.sin(c); a.c[2] = 0; a.c[3] = Math.sin(c); a.c[4] = Math.cos(c); a.c[5] = 0; a.c[6] = 0; a.c[7] = 0; a.c[8] = 1; return a }; b.Eea = function(a, c) { a.c[0] = Math.cos(c); a.c[1] = Math.sin(c); a.c[2] = 0; a.c[3] = -Math.sin(c); a.c[4] = Math.cos(c); a.c[5] = 0; a.c[6] = 0; a.c[7] = 0; a.c[8] = 1; return a }; b.Lea = function(a, c, d) { b.WN(a); a.c[0] = c; a.c[4] = d; return a }; b.Mea = function(a, c, d) { b.WN(a); a.c[6] = c; a.c[7] = d; return a }; b.Gea = function(a, c) { if (!c || !a) return null; a.c[0] = 1 - 2 * (c.y * c.y + c.z * c.z); a.c[1] = 2 * (c.x * c.y - c.D * c.z); a.c[2] = 2 * (c.x * c.z + c.D * c.y); a.c[3] = 2 * (c.x * c.y + c.D * c.z); a.c[4] = 1 - 2 * (c.x * c.x + c.z * c.z); a.c[5] = 2 * (c.y * c.z - c.D * c.x); a.c[6] = 2 * (c.x * c.z - c.D * c.y); a.c[7] = 2 * (c.y * c.z + c.D * c.x); a.c[8] = 1 - 2 * (c.x * c.x + c.y * c.y); return a }; b.Hea = function(a, c, d) { b.bO(void 0, d); b.cO(void 0, a); return a }; b.ba = function() { this.c = new Float32Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]) }; b.Qea = function(a, c) { a.c[0] = a.c[1] = a.c[2] = a.c[3] = a.c[4] = a.c[5] = a.c[6] = a.c[7] = a.c[8] = a.c[9] = a.c[10] = a.c[11] = a.c[12] = a.c[13] = a.c[14] = a.c[15] = c }; b.Nm = function(a) { a.c[1] = a.c[2] = a.c[3] = a.c[4] = a.c[6] = a.c[7] = a.c[8] = a.c[9] = a.c[11] = a.c[12] = a.c[13] = a.c[14] = 0; a.c[0] = a.c[5] = a.c[10] = a.c[15] = 1 }; b.ba.Hf = function(a, c, d) { return a.c[c + 4 * d] }; b.ba.Kk = function(a, c, d, e) { a.c[c + 4 * d] = e }; b.ba.Rk = function(a, c, d, e, f) { var g = b.ba.Hf(a, c, d); b.ba.Kk(a, c, d, b.ba.Hf(a, e, f)); b.ba.Kk(a, e, f, g) }; b.ba.MV = function(a, c) { var d, e = 0, f = 0, g, h, k, m = [0, 0, 0, 0], p = [0, 0, 0, 0], r = [0, 0, 0, 0]; for (d = 0; 4 > d; d++) { for (g = k = 0; 4 > g; g++) if (1 != r[g]) for (h = 0; 4 > h; h++) 0 == r[h] && Math.abs(b.ba.Hf(a, g, h)) >= k && (k = Math.abs(b.ba.Hf(a, g, h)), f = g, e = h); ++r[e]; if (f != e) { for (g = 0; 4 > g; g++) b.ba.Rk(a, f, g, e, g); for (g = 0; 4 > g; g++) b.ba.Rk(c, f, g, e, g) } p[d] = f; m[d] = e; if (0 == b.ba.Hf(a, e, e)) return b.nn; h = 1 / b.ba.Hf(a, e, e); b.ba.Kk(a, e, e, 1); for (g = 0; 4 > g; g++) b.ba.Kk(a, e, g, b.ba.Hf(a, e, g) * h); for (g = 0; 4 > g; g++) b.ba.Kk(c, e, g, b.ba.Hf(c, e, g) * h); for (h = 0; 4 > h; h++) if (h != e) { k = b.ba.Hf(a, h, e); b.ba.Kk(a, h, e, 0); for (g = 0; 4 > g; g++) b.ba.Kk(a, h, g, b.ba.Hf(a, h, g) - b.ba.Hf(a, e, g) * k); for (g = 0; 4 > g; g++) b.ba.Kk(c, h, g, b.ba.Hf(a, h, g) - b.ba.Hf(c, e, g) * k) } } for (g = 3; 0 <= g; g--) if (p[g] != m[g]) for (h = 0; 4 > h; h++) b.ba.Rk(a, h, p[g], h, m[g]); return b.on }; b.ba.GB = new Float32Array([1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]); b.c2 = function(a, c) { var d = new b.ba, e = new b.ba; b.Gj(d, c); b.Nm(e); b.ba.MV(d, e) != b.nn && b.Gj(a, d) }; b.Uea = function(a) { for (var c = 0; 16 > c; c++) if (b.ba.GB[c] != a.c[c]) return !1; return !0 }; b.bfa = function(a, c) { var d, e, f = a.c, g = c.c; for (e = 0; 4 > e; ++e) for (d = 0; 4 > d; ++d) f[4 * e + d] = g[4 * d + e]; return a }; b.Ei = function(a, c, d) { a = a.c; var e = c.c[0], f = c.c[1], g = c.c[2], h = c.c[3], k = c.c[4], m = c.c[5], p = c.c[6], r = c.c[7], s = c.c[8], u = c.c[9], t = c.c[10], v = c.c[11], w = c.c[12], y = c.c[13], B = c.c[14]; c = c.c[15]; var G = d.c[0], I = d.c[1], E = d.c[2], A = d.c[3], D = d.c[4], x = d.c[5], F = d.c[6], K = d.c[7], L = d.c[8], J = d.c[9], P = d.c[10], T = d.c[11], R = d.c[12], X = d.c[13], M = d.c[14]; d = d.c[15]; a[0] = G * e + I * k + E * s + A * w; a[1] = G * f + I * m + E * u + A * y; a[2] = G * g + I * p + E * t + A * B; a[3] = G * h + I * r + E * v + A * c; a[4] = D * e + x * k + F * s + K * w; a[5] = D * f + x * m + F * u + K * y; a[6] = D * g + x * p + F * t + K * B; a[7] = D * h + x * r + F * v + K * c; a[8] = L * e + J * k + P * s + T * w; a[9] = L * f + J * m + P * u + T * y; a[10] = L * g + J * p + P * t + T * B; a[11] = L * h + J * r + P * v + T * c; a[12] = R * e + X * k + M * s + d * w; a[13] = R * f + X * m + M * u + d * y; a[14] = R * g + X * p + M * t + d * B; a[15] = R * h + X * r + M * v + d * c }; b.w0 = function() { var a = b.jl.top.c, c = b.Kj.top.c, d = new Float32Array(16); d[0] = a[0] * c[0] + a[4] * c[1] + a[8] * c[2] + a[12] * c[3]; d[1] = a[1] * c[0] + a[5] * c[1] + a[9] * c[2] + a[13] * c[3]; d[2] = a[2] * c[0] + a[6] * c[1] + a[10] * c[2] + a[14] * c[3]; d[3] = a[3] * c[0] + a[7] * c[1] + a[11] * c[2] + a[15] * c[3]; d[4] = a[0] * c[4] + a[4] * c[5] + a[8] * c[6] + a[12] * c[7]; d[5] = a[1] * c[4] + a[5] * c[5] + a[9] * c[6] + a[13] * c[7]; d[6] = a[2] * c[4] + a[6] * c[5] + a[10] * c[6] + a[14] * c[7]; d[7] = a[3] * c[4] + a[7] * c[5] + a[11] * c[6] + a[15] * c[7]; d[8] = a[0] * c[8] + a[4] * c[9] + a[8] * c[10] + a[12] * c[11]; d[9] = a[1] * c[8] + a[5] * c[9] + a[9] * c[10] + a[13] * c[11]; d[10] = a[2] * c[8] + a[6] * c[9] + a[10] * c[10] + a[14] * c[11]; d[11] = a[3] * c[8] + a[7] * c[9] + a[11] * c[10] + a[15] * c[11]; d[12] = a[0] * c[12] + a[4] * c[13] + a[8] * c[14] + a[12] * c[15]; d[13] = a[1] * c[12] + a[5] * c[13] + a[9] * c[14] + a[13] * c[15]; d[14] = a[2] * c[12] + a[6] * c[13] + a[10] * c[14] + a[14] * c[15]; d[15] = a[3] * c[12] + a[7] * c[13] + a[11] * c[14] + a[15] * c[15]; return d }; b.kca = function(a, c, d) { a = a.c; c = c.c; var e = d.c; e[0] = a[0] * c[0] + a[4] * c[1] + a[8] * c[2] + a[12] * c[3]; e[1] = a[1] * c[0] + a[5] * c[1] + a[9] * c[2] + a[13] * c[3]; e[2] = a[2] * c[0] + a[6] * c[1] + a[10] * c[2] + a[14] * c[3]; e[3] = a[3] * c[0] + a[7] * c[1] + a[11] * c[2] + a[15] * c[3]; e[4] = a[0] * c[4] + a[4] * c[5] + a[8] * c[6] + a[12] * c[7]; e[5] = a[1] * c[4] + a[5] * c[5] + a[9] * c[6] + a[13] * c[7]; e[6] = a[2] * c[4] + a[6] * c[5] + a[10] * c[6] + a[14] * c[7]; e[7] = a[3] * c[4] + a[7] * c[5] + a[11] * c[6] + a[15] * c[7]; e[8] = a[0] * c[8] + a[4] * c[9] + a[8] * c[10] + a[12] * c[11]; e[9] = a[1] * c[8] + a[5] * c[9] + a[9] * c[10] + a[13] * c[11]; e[10] = a[2] * c[8] + a[6] * c[9] + a[10] * c[10] + a[14] * c[11]; e[11] = a[3] * c[8] + a[7] * c[9] + a[11] * c[10] + a[15] * c[11]; e[12] = a[0] * c[12] + a[4] * c[13] + a[8] * c[14] + a[12] * c[15]; e[13] = a[1] * c[12] + a[5] * c[13] + a[9] * c[14] + a[13] * c[15]; e[14] = a[2] * c[12] + a[6] * c[13] + a[10] * c[14] + a[14] * c[15]; e[15] = a[3] * c[12] + a[7] * c[13] + a[11] * c[14] + a[15] * c[15]; return d.c }; b.Gj = function(a, c) { if (a == c) b.log("cc.kmMat4Assign(): pOut equals pIn"); else { var d = a.c, e = c.c; d[0] = e[0]; d[1] = e[1]; d[2] = e[2]; d[3] = e[3]; d[4] = e[4]; d[5] = e[5]; d[6] = e[6]; d[7] = e[7]; d[8] = e[8]; d[9] = e[9]; d[10] = e[10]; d[11] = e[11]; d[12] = e[12]; d[13] = e[13]; d[14] = e[14]; d[15] = e[15] } }; b.Oea = function(a, c) { if (a == c) return b.log("cc.kmMat4AreEqual(): pMat1 and pMat2 are same object."), !0; for (var d = 0; 16 > d; d++) if (!(a.c[d] + b.xa > c.c[d] && a.c[d] - b.xa < c.c[d])) return !1; return !0 }; b.Zea = function(a, c) { a.c[0] = 1; a.c[1] = 0; a.c[2] = 0; a.c[3] = 0; a.c[4] = 0; a.c[5] = Math.cos(c); a.c[6] = Math.sin(c); a.c[7] = 0; a.c[8] = 0; a.c[9] = -Math.sin(c); a.c[10] = Math.cos(c); a.c[11] = 0; a.c[12] = 0; a.c[13] = 0; a.c[14] = 0; a.c[15] = 1; return a }; b.$ea = function(a, c) { a.c[0] = Math.cos(c); a.c[1] = 0; a.c[2] = -Math.sin(c); a.c[3] = 0; a.c[4] = 0; a.c[5] = 1; a.c[6] = 0; a.c[7] = 0; a.c[8] = Math.sin(c); a.c[9] = 0; a.c[10] = Math.cos(c); a.c[11] = 0; a.c[12] = 0; a.c[13] = 0; a.c[14] = 0; a.c[15] = 1; return a }; b.afa = function(a, c) { a.c[0] = Math.cos(c); a.c[1] = Math.sin(c); a.c[2] = 0; a.c[3] = 0; a.c[4] = -Math.sin(c); a.c[5] = Math.cos(c); a.c[6] = 0; a.c[7] = 0; a.c[8] = 0; a.c[9] = 0; a.c[10] = 1; a.c[11] = 0; a.c[12] = 0; a.c[13] = 0; a.c[14] = 0; a.c[15] = 1; return a }; b.Vea = function(a, c, d, e) { var f = Math.cos(c); c = Math.sin(c); var g = Math.cos(d); d = Math.sin(d); var h = Math.cos(e); e = Math.sin(e); var k = c * d, m = f * d; a.c[0] = g * h; a.c[4] = g * e; a.c[8] = -d; a.c[1] = k * h - f * e; a.c[5] = k * e + f * h; a.c[9] = c * g; a.c[2] = m * h + c * e; a.c[6] = m * e - c * h; a.c[10] = f * g; a.c[3] = a.c[7] = a.c[11] = 0; a.c[15] = 1; return a }; b.Wea = function(a, c) { a.c[0] = 1 - 2 * (c.y * c.y + c.z * c.z); a.c[1] = 2 * (c.x * c.y + c.z * c.D); a.c[2] = 2 * (c.x * c.z - c.y * c.D); a.c[3] = 0; a.c[4] = 2 * (c.x * c.y - c.z * c.D); a.c[5] = 1 - 2 * (c.x * c.x + c.z * c.z); a.c[6] = 2 * (c.z * c.y + c.x * c.D); a.c[7] = 0; a.c[8] = 2 * (c.x * c.z + c.y * c.D); a.c[9] = 2 * (c.y * c.z - c.x * c.D); a.c[10] = 1 - 2 * (c.x * c.x + c.y * c.y); a.c[11] = 0; a.c[12] = 0; a.c[13] = 0; a.c[14] = 0; a.c[15] = 1; return a }; b.Yea = function(a, c, d) { a.c[0] = c.c[0]; a.c[1] = c.c[1]; a.c[2] = c.c[2]; a.c[3] = 0; a.c[4] = c.c[3]; a.c[5] = c.c[4]; a.c[6] = c.c[5]; a.c[7] = 0; a.c[8] = c.c[6]; a.c[9] = c.c[7]; a.c[10] = c.c[8]; a.c[11] = 0; a.c[12] = d.x; a.c[13] = d.y; a.c[14] = d.z; a.c[15] = 1; return a }; b.f2 = function(a, c, d, e) { a.c[0] = c; a.c[5] = d; a.c[10] = e; a.c[15] = 1; a.c[1] = a.c[2] = a.c[3] = a.c[4] = a.c[6] = a.c[7] = a.c[8] = a.c[9] = a.c[11] = a.c[12] = a.c[13] = a.c[14] = 0 }; b.YN = function(a, c, d, e) { a.c[0] = a.c[5] = a.c[10] = a.c[15] = 1; a.c[1] = a.c[2] = a.c[3] = a.c[4] = a.c[6] = a.c[7] = a.c[8] = a.c[9] = a.c[11] = 0; a.c[12] = c; a.c[13] = d; a.c[14] = e }; b.Tea = function(a, c) { a.x = c.c[4]; a.y = c.c[5]; a.z = c.c[6]; b.xf(a, a); return a }; b.Sea = function(a, c) { a.x = c.c[0]; a.y = c.c[1]; a.z = c.c[2]; b.xf(a, a); return a }; b.Rea = function(a, c) { a.x = c.c[8]; a.y = c.c[9]; a.z = c.c[10]; b.xf(a, a); return a }; b.d2 = function(a, c, d) { var e = b.Ds(30), f = d - 0.1, g = Math.sin(e); 0 != f && 0 != g && 0 != c && (e = Math.cos(e) / g, b.Nm(a), a.c[0] = e / c, a.c[5] = e, a.c[10] = -(d + 0.1) / f, a.c[11] = -1, a.c[14] = -0.2 * d / f, a.c[15] = 0) }; b.nF = function(a, c, d, e, f, g, h) { b.Nm(a); a.c[0] = 2 / (d - c); a.c[5] = 2 / (f - e); a.c[10] = -2 / (h - g); a.c[12] = -((d + c) / (d - c)); a.c[13] = -((f + e) / (f - e)); a.c[14] = -((h + g) / (h - g)) }; b.XN = function(a, c, d, e) { var f = new b.wb, g = new b.wb, h = new b.wb, k = new b.wb, m = new b.ba; b.sF(f, d, c); b.xf(f, f); b.Es(g, e); b.xf(g, g); b.el(h, f, g); b.xf(h, h); b.el(k, h, f); b.xf(h, h); b.Nm(a); a.c[0] = h.x; a.c[4] = h.y; a.c[8] = h.z; a.c[1] = k.x; a.c[5] = k.y; a.c[9] = k.z; a.c[2] = -f.x; a.c[6] = -f.y; a.c[10] = -f.z; b.YN(m, -c.x, -c.y, -c.z); b.Ei(a, a, m) }; b.e2 = function(a, c, d) { var e = Math.cos(d); d = Math.sin(d); var f = new b.wb; b.xf(f, c); a.c[0] = e + f.x * f.x * (1 - e); a.c[1] = f.z * d + f.y * f.x * (1 - e); a.c[2] = -f.y * d + f.z * f.x * (1 - e); a.c[3] = 0; a.c[4] = -f.z * d + f.x * f.y * (1 - e); a.c[5] = e + f.y * f.y * (1 - e); a.c[6] = f.x * d + f.z * f.y * (1 - e); a.c[7] = 0; a.c[8] = f.y * d + f.x * f.z * (1 - e); a.c[9] = -f.x * d + f.y * f.z * (1 - e); a.c[10] = e + f.z * f.z * (1 - e); a.c[11] = 0; a.c[12] = 0; a.c[13] = 0; a.c[14] = 0; a.c[15] = 1 }; b.b2 = function(a, c) { a.c[0] = c.c[0]; a.c[1] = c.c[1]; a.c[2] = c.c[2]; a.c[3] = c.c[4]; a.c[4] = c.c[5]; a.c[5] = c.c[6]; a.c[6] = c.c[8]; a.c[7] = c.c[9]; a.c[8] = c.c[10] }; b.Pea = function(a, c, d) { switch (d) { case b.zR: a.a = c.c[3] - c.c[0]; a.b = c.c[7] - c.c[4]; a.B = c.c[11] - c.c[8]; a.H = c.c[15] - c.c[12]; break; case b.xR: a.a = c.c[3] + c.c[0]; a.b = c.c[7] + c.c[4]; a.B = c.c[11] + c.c[8]; a.H = c.c[15] + c.c[12]; break; case b.vR: a.a = c.c[3] + c.c[1]; a.b = c.c[7] + c.c[5]; a.B = c.c[11] + c.c[9]; a.H = c.c[15] + c.c[13]; break; case b.AR: a.a = c.c[3] - c.c[1]; a.b = c.c[7] - c.c[5]; a.B = c.c[11] - c.c[9]; a.H = c.c[15] - c.c[13]; break; case b.wR: a.a = c.c[3] - c.c[2]; a.b = c.c[7] - c.c[6]; a.B = c.c[11] - c.c[10]; a.H = c.c[15] - c.c[14]; break; case b.yR: a.a = c.c[3] + c.c[2]; a.b = c.c[7] + c.c[6]; a.B = c.c[11] + c.c[10]; a.H = c.c[15] + c.c[14]; break; default: b.log("cc.kmMat4ExtractPlane(): Invalid plane index") } c = Math.sqrt(a.a * a.a + a.b * a.b + a.B * a.B); a.a /= c; a.b /= c; a.B /= c; a.H /= c; return a }; b.Xea = function(a, c, d) { c = new da; var e = new b.rx; b.b2(e, d); b.bO(c, e); b.cO(c, a); return a }; b.xR = 0; b.zR = 1; b.vR = 2; b.AR = 3; b.yR = 4; b.wR = 5; b.cfa = function(a, c, d, e) { this.a = a || 0; this.b = c || 0; this.B = d || 0; this.H = e || 0 }; b.qS = 0; b.pS = 1; b.rS = 2; b.efa = function(a, c) { return a.a * c.x + a.b * c.y + a.B * c.z + a.H * c.D }; b.ffa = function(a, c) { return a.a * c.x + a.b * c.y + a.B * c.z + a.H }; b.gfa = function(a, c) { return a.a * c.x + a.b * c.y + a.B * c.z }; b.hfa = function(a, c, d) { a.a = d.x; a.b = d.y; a.B = d.z; a.H = -b.qF(d, c); return a }; b.ifa = function(a, c, d, e) { var f = new b.wb, g = new b.wb, h = new b.wb; b.sF(g, d, c); b.sF(h, e, c); b.el(f, g, h); b.xf(f, f); a.a = f.x; a.b = f.y; a.B = f.z; a.H = b.qF(b.rF(f, f, -1), c); return a }; b.jfa = function() { throw "cc.kmPlaneIntersectLine() hasn't been implemented."; }; b.kfa = function(a, c) { var d = new b.wb; d.x = c.a; d.y = c.b; d.z = c.B; var e = 1 / b.eO(d); b.xf(d, d); a.a = d.x; a.b = d.y; a.B = d.z; a.H = c.H * e; return a }; b.lfa = function() { b.log("cc.kmPlaneScale() has not been implemented.") }; b.dfa = function(a, c) { var d = a.a * c.x + a.b * c.y + a.B * c.z + a.H; return 0.001 < d ? b.qS : -0.001 > d ? b.pS : b.rS }; function da() { this.D = this.z = this.y = this.x = 0 } b.j2 = function(a, c) { a.x = -c.x; a.y = -c.y; a.z = -c.z; a.D = c.D; return a }; b.k2 = function(a, c) { return a.D * c.D + a.x * c.x + a.y * c.y + a.z * c.z }; b.nfa = function(a) { return a }; b.l2 = function(a) { a.x = 0; a.y = 0; a.z = 0; a.D = 1 }; b.ofa = function(a, c) { var d = b.ZN(c), e = new da; if (Math.abs(d) > b.xa) return a.x = 0, a.y = 0, a.z = 0, a.D = 0, a; b.ux(a, b.j2(e, c), 1 / d); return a }; b.pfa = function(a) { return 0 == a.x && 0 == a.y && 0 == a.z && 1 == a.D }; b.ZN = function(a) { return Math.sqrt(b.m2(a)) }; b.m2 = function(a) { return a.x * a.x + a.y * a.y + a.z * a.z + a.D * a.D }; b.qfa = function(a) { return a }; b.rfa = function(a, c, d) { a.D = c.D * d.D - c.x * d.x - c.y * d.y - c.z * d.z; a.x = c.D * d.x + c.x * d.D + c.y * d.z - c.z * d.y; a.y = c.D * d.y + c.y * d.D + c.z * d.x - c.x * d.z; a.z = c.D * d.z + c.z * d.D + c.x * d.y - c.y * d.x; return a }; b.$N = function(a, c) { var d = b.ZN(c); if (Math.abs(d) <= b.xa) throw "cc.kmQuaternionNormalize(): pIn is an invalid value"; b.ux(a, c, 1 / d) }; b.aO = function(a, c) { var d = 0.5 * b.oF, e = Math.sin(d); a.D = Math.cos(d); a.x = c.x * e; a.y = c.y * e; a.z = c.z * e }; b.bO = function(a, c) { var d, e, f, g; d = []; e = g = 0; if (c) { d[0] = c.c[0]; d[1] = c.c[3]; d[2] = c.c[6]; d[4] = c.c[1]; d[5] = c.c[4]; d[6] = c.c[7]; d[8] = c.c[2]; d[9] = c.c[5]; d[10] = c.c[8]; d[15] = 1; var h = d[0]; e = h[0] + h[5] + h[10] + 1; e > b.xa ? (g = 2 * Math.sqrt(e), d = (h[9] - h[6]) / g, e = (h[2] - h[8]) / g, f = (h[4] - h[1]) / g, g *= 0.25) : h[0] > h[5] && h[0] > h[10] ? (g = 2 * Math.sqrt(1 + h[0] - h[5] - h[10]), d = 0.25 * g, e = (h[4] + h[1]) / g, f = (h[2] + h[8]) / g, g = (h[9] - h[6]) / g) : h[5] > h[10] ? (g = 2 * Math.sqrt(1 + h[5] - h[0] - h[10]), d = (h[4] + h[1]) / g, e = 0.25 * g, f = (h[9] + h[6]) / g, g = (h[2] - h[8]) / g) : (g = 2 * Math.sqrt(1 + h[10] - h[0] - h[5]), d = (h[2] + h[8]) / g, e = (h[9] + h[6]) / g, f = 0.25 * g, g = (h[4] - h[1]) / g); a.x = d; a.y = e; a.z = f; a.D = g } }; b.ufa = function(a, c, d, e) { var f, g, h, k, m; f = b.Ds(d) / 2; g = b.Ds(c) / 2; h = b.Ds(e) / 2; e = Math.cos(f); c = Math.cos(g); d = Math.cos(h); f = Math.sin(f); g = Math.sin(g); h = Math.sin(h); k = c * d; m = g * h; a.D = e * k + f * m; a.x = f * k - e * m; a.y = e * g * d + f * c * h; a.z = e * c * h - f * g * d; b.$N(a, a); return a }; b.vfa = function(a, c, d, e) { if (c.x == d.x && c.y == d.y && c.z == d.z && c.D == d.D) return a.x = c.x, a.y = c.y, a.z = c.z, a.D = c.D, a; var f = b.k2(c, d), g = Math.acos(f), f = Math.sqrt(1 - b.Lc(f)), h = Math.sin(e * g) / f, k = new da, m = new da; b.ux(k, c, Math.sin((1 - e) * g) / f); b.ux(m, d, h); b.i2(a, k, m); return a }; b.cO = function(a, c) { var d; d = Math.sqrt(b.Lc(a.x) + b.Lc(a.y) + b.Lc(a.z)); d > -b.xa && d < b.xa || d < 2 * b.oF + b.xa && d > 2 * b.oF - b.xa ? (c.x = 0, c.y = 0, c.z = 1) : (c.x = a.x / d, c.y = a.y / d, c.z = a.z / d, b.xf(c, c)) }; b.ux = function(a, c, d) { a.x = c.x * d; a.y = c.y * d; a.z = c.z * d; a.D = c.D * d }; b.mfa = function(a, c) { a.x = c.x; a.y = c.y; a.z = c.z; a.D = c.D; return a }; b.i2 = function(a, c, d) { a.x = c.x + d.x; a.y = c.y + d.y; a.z = c.z + d.z; a.D = c.D + d.D }; b.tfa = function(a, c, d, e) { var f = new b.wb, g = new b.wb; b.Es(f, c); b.Es(g, d); b.xf(f, f); b.xf(g, g); d = b.qF(f, g); if (1 <= d) return b.l2(a), a; - 0.999999 > d ? Math.abs(b.fO(e)) < b.xa ? b.aO(a, e) : (f = new b.wb, g = new b.wb, g.x = 1, g.y = 0, g.z = 0, b.el(f, g, c), Math.abs(b.fO(f)) < b.xa && (g = new b.wb, g.x = 0, g.y = 1, g.z = 0, b.el(f, g, c)), b.xf(f, f), b.aO(a, f)) : (c = Math.sqrt(2 * (1 + d)), e = 1 / c, d = new b.wb, b.el(d, f, g), a.x = d.x * e, a.y = d.y * e, a.z = d.z * e, a.D = 0.5 * c, b.$N(a, a)); return a }; b.sfa = function(a, c, d) { var e = new b.wb, f = new b.wb, g = new b.wb; g.x = c.x; g.y = c.y; g.z = c.z; b.el(e, g, d); b.el(f, g, e); b.rF(e, e, 2 * c.D); b.rF(f, f, 2); b.dO(a, d, e); b.dO(a, a, f); return a }; b.mea = function(a, c) { this.min = a || new b.wb; this.max = c || new b.wb }; b.oea = function(a, c) { return a.x >= c.min.x && a.x <= c.max.x && a.y >= c.min.y && a.y <= c.max.y && a.z >= c.min.z && a.z <= c.max.z ? b.on : b.nn }; b.nea = function(a, c) { b.Es(a.min, c.min); b.Es(a.max, c.max); return a }; b.pea = function() { b.log("cc.kmAABBScale hasn't been supported.") }; b.xx = function(a, c, d, e) { this.top = d; this.stack = e }; b.xx.k7 = 30; b.tF = function(a) { a.stack = []; a.top = null }; b.yx = function(a, c) { a.stack.push(a.top); a.top = new b.ba; b.Gj(a.top, c) }; b.aga = function(a) { a.top = a.stack.pop() }; b.uF = function(a) { a.stack = null; a.top = null }; b.Xg = 5888; b.Yg = 5889; b.VG = 5890; b.Kj = new b.xx; b.jl = new b.xx; b.lt = new b.xx; b.Pb = null; b.dF = !1; b.s2 = function() { if (!b.dF) { var a = new b.ba; b.tF(b.Kj); b.tF(b.jl); b.tF(b.lt); b.Pb = b.Kj; b.dF = !0; b.Nm(a); b.yx(b.Kj, a); b.yx(b.jl, a); b.yx(b.lt, a) } }; b.s2(); b.Y1 = function() { b.uF(b.Kj); b.uF(b.jl); b.uF(b.lt); b.dF = !1; b.Pb = null }; b.Fj = function() { b.yx(b.Pb, b.Pb.top) }; b.uea = function(a) { b.Pb.stack.push(b.Pb.top); b.Gj(a, b.Pb.top); b.Pb.top = a }; b.Ej = function() { b.Pb.top = b.Pb.stack.pop() }; b.wf = function(a) { switch (a) { case b.Xg: b.Pb = b.Kj; break; case b.Yg: b.Pb = b.jl; break; case b.VG: b.Pb = b.lt; break; default: throw "Invalid matrix mode specified"; } }; b.dl = function() { b.Nm(b.Pb.top) }; b.tea = function(a) { b.Gj(b.Pb.top, a) }; b.ip = function(a) { b.Ei(b.Pb.top, b.Pb.top, a) }; b.jp = function(a, c) { var d = new b.ba; b.YN(d, a, c, 0); b.Ei(b.Pb.top, b.Pb.top, d) }; b.vea = function(a, c, d, e) { c = new b.wb(c, d, e); d = new b.ba; b.e2(d, c, b.Ds(a)); b.Ei(b.Pb.top, b.Pb.top, d) }; b.wea = function(a, c, d) { var e = new b.ba; b.f2(e, a, c, d); b.Ei(b.Pb.top, b.Pb.top, e) }; b.qx = function(a, c) { switch (a) { case b.Xg: b.Gj(c, b.Kj.top); break; case b.Yg: b.Gj(c, b.jl.top); break; case b.VG: b.Gj(c, b.lt.top); break; default: throw "Invalid matrix mode specified"; } }; b.MS = "precision lowp float;\nvarying vec4 v_fragmentColor;\nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor; \n}\n"; b.NS = "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.AS = "precision lowp float; \nvarying vec4 v_fragmentColor; \nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor; \n} "; b.DS = "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.BS = "// #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.CS = "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.IS = "precision lowp float; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nvoid main() \n{ \n gl_FragColor \x3d texture2D(CC_Texture0, v_texCoord); \n}"; b.LS = "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.JS = "precision lowp float; \nuniform vec4 u_color; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nvoid main() \n{ \n gl_FragColor \x3d texture2D(CC_Texture0, v_texCoord) * u_color; \n}"; b.KS = "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.ES = "precision lowp float; \nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nvoid main() \n{ \n gl_FragColor \x3d vec4( v_fragmentColor.rgb, \n v_fragmentColor.a * texture2D(CC_Texture0, v_texCoord).a \n ); \n}"; b.FS = "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.HS = "precision lowp float;\nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor * texture2D(CC_Texture0, v_texCoord); \n}"; b.CH = "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.GS = "precision lowp float; \nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nuniform float CC_alpha_value; \nvoid main() \n{ \n vec4 texColor \x3d texture2D(CC_Texture0, v_texCoord); \n // mimic: glAlphaFunc(GL_GREATER) \n //pass if ( incoming_pixel \x3e\x3d CC_alpha_value ) \x3d\x3e fail if incoming_pixel \x3c CC_alpha_value \n if ( texColor.a \x3c\x3d CC_alpha_value ) \n discard; \n gl_FragColor \x3d texColor * v_fragmentColor; \n}"; b.b8 = "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.Md = { Zz: 0, $z: 1, Xz: 2, Yz: 3, bA: 4, aA: 5, cA: 6, OH: 7, y8: 8, md: {}, jr: function() { this.w2(); return !0 }, He: function(a, c) { switch (c) { case this.Zz: a.Di(b.CH, b.HS); a.rd(b.ql, b.qb); a.rd(b.Ip, b.Ce); a.rd(b.en, b.zd); break; case this.$z: a.Di(b.CH, b.GS); a.rd(b.ql, b.qb); a.rd(b.Ip, b.Ce); a.rd(b.en, b.zd); break; case this.Xz: a.Di(b.DS, b.AS); a.rd(b.ql, b.qb); a.rd(b.Ip, b.Ce); break; case this.Yz: a.Di(b.LS, b.IS); a.rd(b.ql, b.qb); a.rd(b.en, b.zd); break; case this.bA: a.Di(b.KS, b.JS); a.rd(b.ql, b.qb); a.rd(b.en, b.zd); break; case this.aA: a.Di(b.FS, b.ES); a.rd(b.ql, b.qb); a.rd(b.Ip, b.Ce); a.rd(b.en, b.zd); break; case this.cA: a.Di(b.NS, b.MS); a.rd("aVertex", b.qb); break; case this.OH: a.Di(b.CS, b.BS); a.rd(b.ql, b.qb); a.rd(b.en, b.zd); a.rd(b.Ip, b.Ce); break; default: b.log("cocos2d: cc.shaderCache._loadDefaultShader, error shader type"); return } a.link(); a.L5() }, w2: function() { var a = new b.Rh; this.He(a, this.Zz); this.md[b.Wi] = a; this.md.ShaderPositionTextureColor = a; a = new b.Rh; this.He(a, this.$z); this.md[b.bu] = a; this.md.ShaderPositionTextureColorAlphaTest = a; a = new b.Rh; this.He(a, this.Xz); this.md[b.au] = a; this.md.ShaderPositionColor = a; a = new b.Rh; this.He(a, this.Yz); this.md[b.tq] = a; this.md.ShaderPositionTexture = a; a = new b.Rh; this.He(a, this.bA); this.md[b.Oz] = a; this.md.ShaderPositionTextureUColor = a; a = new b.Rh; this.He(a, this.aA); this.md[b.Nz] = a; this.md.ShaderPositionTextureA8Color = a; a = new b.Rh; this.He(a, this.cA); this.md[b.Pz] = a; this.md.ShaderPositionUColor = a; a = new b.Rh; this.He(a, this.OH); this.md[b.BH] = a; this.md.ShaderPositionLengthTextureColor = a }, Cha: function() { var a = this.nc(b.Wi); a.reset(); this.He(a, this.Zz); a = this.nc(b.bu); a.reset(); this.He(a, this.$z); a = this.nc(b.au); a.reset(); this.He(a, this.Xz); a = this.nc(b.tq); a.reset(); this.He(a, this.Yz); a = this.nc(b.Oz); a.reset(); this.He(a, this.bA); a = this.nc(b.Nz); a.reset(); this.He(a, this.aA); a = this.nc(b.Pz); a.reset(); this.He(a, this.cA) }, nc: function(a) { return this.md[a] }, Lm: function(a) { return this.md[a] }, O9: function(a, c) { this.md[c] = a } }; b.lR = function() { this.location = this.value = void 0; this.bx = {} }; b.Rh = b.oa.extend({ ha: null, Db: null, of: null, wg: null, xb: null, fh: null, OL: !1, Ne: function(a, c) { if (null == a) return !1; for (var d = !0, e = null, f = 0; f < this.fh.length; f++) this.fh[f].location == a && (e = this.fh[f]); e ? e.value == c ? d = !1 : e.value = c : (e = new b.lR, e.location = a, e.value = c, this.fh.push(e)); return d }, a9: function() { return "\x3cCCGLProgram \x3d " + this.toString() + " | Program \x3d " + this.Db.toString() + ", VertexShader \x3d " + this.of.toString() + ", FragmentShader \x3d " + this.wg.toString() + "\x3e" }, UI: function(a, c, d) { if (!d || !a) return !1; this.ha.shaderSource(a, "precision highp float; \nuniform 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; \n//CC INCLUDES END \n" + d); this.ha.compileShader(a); d = this.ha.getShaderParameter(a, this.ha.COMPILE_STATUS); d || (b.log("cocos2d: ERROR: Failed to compile shader:\n" + this.ha.getShaderSource(a)), c == this.ha.VERTEX_SHADER ? b.log("cocos2d: \n" + this.P5()) : b.log("cocos2d: \n" + this.O_())); return 1 == d }, ctor: function(a, c, d) { this.xb = []; this.fh = []; this.ha = d || b.l; a && c && this.da(a, c) }, O$: function() { this.fh = this.xb = this.wg = this.of = null; this.ha.deleteProgram(this.Db) }, Di: function(a, c) { var d = this.ha; this.Db = d.createProgram(); this.wg = this.of = null; a && (this.of = d.createShader(d.VERTEX_SHADER), this.UI(this.of, d.VERTEX_SHADER, a) || b.log("cocos2d: ERROR: Failed to compile vertex shader")); c && (this.wg = d.createShader(d.FRAGMENT_SHADER), this.UI(this.wg, d.FRAGMENT_SHADER, c) || b.log("cocos2d: ERROR: Failed to compile fragment shader")); this.of && d.attachShader(this.Db, this.of); b.Qo(); this.wg && d.attachShader(this.Db, this.wg); this.fh.length = 0; b.Qo(); return !0 }, sd: function(a, c) { return this.Di(a, c) }, y1: function(a, c) { var d = b.T.Hd(a); if (!d) throw "Please load the resource firset : " + a; var e = b.T.Hd(c); if (!e) throw "Please load the resource firset : " + c; return this.Di(d, e) }, da: function(a, c) { return this.y1(a, c) }, rd: function(a, c) { this.ha.bindAttribLocation(this.Db, c, a) }, link: function() { if (!this.Db) return b.log("cc.GLProgram.link(): Cannot link invalid program"), !1; this.ha.linkProgram(this.Db); this.of && this.ha.deleteShader(this.of); this.wg && this.ha.deleteShader(this.wg); this.wg = this.of = null; return b.Jb.re[b.Jb.kg.ns] && !this.ha.getProgramParameter(this.Db, this.ha.LINK_STATUS) ? (b.log("cocos2d: ERROR: Failed to link program: " + this.ha.getProgramInfoLog(this.Db)), b.e1(this.Db), this.Db = null, !1) : !0 }, Oc: function() { b.RE(this.Db) }, L5: function() { this.xb[b.oA] = this.ha.getUniformLocation(this.Db, b.nU); this.xb[b.nA] = this.ha.getUniformLocation(this.Db, b.lU); this.xb[b.Aq] = this.ha.getUniformLocation(this.Db, b.mU); this.xb[b.sA] = this.ha.getUniformLocation(this.Db, b.rU); this.xb[b.rA] = this.ha.getUniformLocation(this.Db, b.qU); this.xb[b.mA] = this.ha.getUniformLocation(this.Db, b.kU); this.OL = null != this.xb[b.sA] || null != this.xb[b.rA] || null != this.xb[b.mA]; this.xb[b.pA] = this.ha.getUniformLocation(this.Db, b.oU); this.xb[b.qA] = this.ha.getUniformLocation(this.Db, b.pU); this.Oc(); this.yP(this.xb[b.qA], 0) }, qda: function(a) { if (!a) throw "cc.GLProgram.getUniformLocationForName(): uniform name should be non-null"; if (!this.Db) throw "cc.GLProgram.getUniformLocationForName(): Invalid operation. Cannot get uniform location when program is not initialized"; return this.ha.getUniformLocation(this.Db, a) }, rda: function() { return this.xb[b.Aq] }, sda: function() { return this.xb[b.qA] }, yP: function(a, c) { this.Ne(a, c) && this.ha.uniform1i(a, c) }, Wja: function(a, c, d) { this.Ne(a, [c, d]) && this.ha.uniform2i(a, c, d) }, Zja: function(a, c, d, e) { this.Ne(a, [c, d, e]) && this.ha.uniform3i(a, c, d, e) }, bka: function(a, c, d, e, f) { this.Ne(a, [c, d, e, f]) && this.ha.uniform4i(a, c, d, e, f) }, Xja: function(a, c) { this.Ne(a, c) && this.ha.uniform2iv(a, c) }, $ja: function(a, c) { this.Ne(a, c) && this.ha.uniform3iv(a, c) }, cka: function(a, c) { this.Ne(a, c) && this.ha.uniform4iv(a, c) }, Uja: function(a, c) { this.yP(a, c) }, dt: function(a, c) { this.Ne(a, c) && this.ha.uniform1f(a, c) }, G4: function(a, c, d) { this.Ne(a, [c, d]) && this.ha.uniform2f(a, c, d) }, H4: function(a, c, d, e) { this.Ne(a, [c, d, e]) && this.ha.uniform3f(a, c, d, e) }, et: function(a, c, d, e, f) { this.Ne(a, [c, d, e, f]) && this.ha.uniform4f(a, c, d, e, f) }, Vja: function(a, c) { this.Ne(a, c) && this.ha.uniform2fv(a, c) }, Yja: function(a, c) { this.Ne(a, c) && this.ha.uniform3fv(a, c) }, aka: function(a, c) { this.Ne(a, c) && this.ha.uniform4fv(a, c) }, hG: function(a, c) { this.Ne(a, c) && this.ha.uniformMatrix4fv(a, !1, c) }, Tja: function() { if (!(2 > arguments.length)) switch (arguments.length) { case 2: this.dt(arguments[0], arguments[1]); break; case 3: this.G4(arguments[0], arguments[1], arguments[2]); break; case 4: this.H4(arguments[0], arguments[1], arguments[2], arguments[3]); break; case 5: this.et(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4]) } }, ft: function() { var a = new b.ba, c = new b.ba, d = new b.ba; b.qx(b.Yg, a); b.qx(b.Xg, c); b.Ei(d, a, c); this.hG(this.xb[b.oA], a.c, 1); this.hG(this.xb[b.nA], c.c, 1); this.hG(this.xb[b.Aq], d.c, 1); this.OL && (a = b.I, a = a.ow * a.Iq, this.et(this.xb[b.sA], a / 10, a, 2 * a, 4 * a), this.et(this.xb[b.rA], a / 8, a / 4, a / 2, Math.sin(a)), this.et(this.xb[b.mA], a / 8, a / 4, a / 2, Math.cos(a))); - 1 != this.xb[b.pA] && this.et(this.xb[b.pA], Math.random(), Math.random(), Math.random(), Math.random()) }, Rja: function() { this.ha.uniformMatrix4fv(this.xb[b.Aq], !1, b.w0()) }, Sja: function(a) { b.Ei(a, b.jl.top, b.Kj.top); this.ha.uniformMatrix4fv(this.xb[b.Aq], !1, a.c) }, Ye: function() { this.ha.uniformMatrix4fv(this.xb[b.nA], !1, b.Kj.top.c); this.ha.uniformMatrix4fv(this.xb[b.oA], !1, b.jl.top.c) }, P5: function() { return this.ha.getShaderInfoLog(this.of) }, xda: function() { return this.ha.getShaderInfoLog(this.of) }, Qba: function() { return this.ha.getShaderInfoLog(this.of) }, O_: function() { return this.ha.getShaderInfoLog(this.wg) }, jha: function() { return this.ha.getProgramInfoLog(this.Db) }, Hca: function() { return this.ha.getProgramInfoLog(this.Db) }, reset: function() { this.wg = this.of = null; this.xb.length = 0; this.ha.deleteProgram(this.Db); this.Db = null; for (var a = 0; a < this.fh.length; a++) this.fh[a].value = null, this.fh[a] = null; this.fh.length = 0 }, Lm: function() { return this.Db }, $x: function() {}, Ki: function() {} }); b.Rh.create = function(a, c) { return new b.Rh(a, c) }; b.$I = -1; b.DD = !1; b.CD = !1; b.ED = !1; b.Wg && (b.LR = 16, b.Uq = -1, b.Tq = [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], b.An = -1, b.zn = -1, b.BU = 0, b.Uz && (b.HL = 0)); b.Fda = function() { b.Y1(); b.$I = -1; b.DD = !1; b.CD = !1; b.ED = !1; if (b.Wg) { b.Uq = -1; for (var a = 0; a < b.LR; a++) b.Tq[a] = -1; b.An = -1; b.zn = -1; b.BU = 0 } }; b.RE = function(a) { a !== b.Uq && (b.Uq = a, b.l.useProgram(a)) }; b.Wg || (b.RE = function(a) { b.l.useProgram(a) }); b.e1 = function(a) { b.Wg && a === b.Uq && (b.Uq = -1); gl.deleteProgram(a) }; b.Hh = function(a, c) { if (a !== b.An || c !== b.zn) b.An = a, b.zn = c, b.ey(a, c) }; b.ey = function(a, c) { var d = b.l; a === d.ONE && c === d.ZERO ? d.disable(d.BLEND) : (d.enable(d.BLEND), b.l.blendFunc(a, c)) }; b.xN = function(a, c) { if (a !== b.An || c !== b.zn) { b.An = a; b.zn = c; var d = b.l; a === d.ONE && c === d.ZERO ? d.disable(d.BLEND) : (d.enable(d.BLEND), d.blendFuncSeparate(d.SRC_ALPHA, c, a, c)) } }; b.Wg || (b.Hh = b.ey); b.Cda = function() { var a = b.l; a.blendEquation(a.FUNC_ADD); b.Wg ? b.ey(b.An, b.zn) : b.ey(a.dc, a.cc) }; b.nP = function() { b.$I = -1 }; b.Jc = function(a) { var c = b.l, d = a & b.Qd; d !== b.DD && (d ? c.enableVertexAttribArray(b.qb) : c.disableVertexAttribArray(b.qb), b.DD = d); d = a & b.ou; d !== b.CD && (d ? c.enableVertexAttribArray(b.Ce) : c.disableVertexAttribArray(b.Ce), b.CD = d); a &= b.tn; a !== b.ED && (a ? c.enableVertexAttribArray(b.zd) : c.disableVertexAttribArray(b.zd), b.ED = a) }; b.te = function(a) { b.QE(0, a) }; b.QE = function(a, c) { if (b.Tq[a] != c) { b.Tq[a] = c; var d = b.l; d.activeTexture(d.TEXTURE0 + a); c ? d.bindTexture(d.TEXTURE_2D, c.Zd) : d.bindTexture(d.TEXTURE_2D, null) } }; b.Wg || (b.QE = function(a, c) { var d = b.l; d.activeTexture(d.TEXTURE0 + a); c ? d.bindTexture(d.TEXTURE_2D, c.Zd) : d.bindTexture(d.TEXTURE_2D, null) }); b.Dda = function(a) { b.f1(a) }; b.f1 = function(a) { b.Wg && a == b.Tq[0] && (b.Tq[0] = -1); b.l.deleteTexture(a) }; b.Bda = function(a) { b.Uz && b.Wg && b.HL != a && (b.HL = a) }; b.Eda = function() {}; b.f7 = 0; b.g7 = 1; b.h7 = 9; b.Xj = function(a) { a -= 1; a |= a >> 1; a |= a >> 2; a |= a >> 4; a |= a >> 8; return (a | a >> 16) + 1 }; b.sn = b.k.extend({ sprite: null, Dw: 0, cE: 0, gs: !1, be: null, ce: null, bv: 0, Vq: 0, ki: 0, G: null, Rr: null, IY: null, mi: b.aa.Vi, Zi: null, dE: 0, $A: null, vb: "RenderTexture", ctor: null, Rq: function(a, c, d, e) { b.k.prototype.ctor.call(this); this.Zi = b.color(255, 255, 255, 255); this.$A = "rgba(255,255,255,1)"; this.be = b.Sb("canvas"); this.ce = this.be.getContext("2d"); this.anchorY = this.anchorX = 0; void 0 !== a && void 0 !== c && (d = d || b.aa.Vi, this.kx(a, c, d, e || 0)) }, Sq: function(a, c, d, e) { b.k.prototype.ctor.call(this); this.Zi = b.color(0, 0, 0, 0); void 0 !== a && void 0 !== c && (d = d || b.aa.Vi, this.kx(a, c, d, e || 0)) }, Qe: null, eV: function() { b.k.prototype.sb.call(this); this.be = this.ce = null }, fV: function() { b.k.prototype.sb.call(this); this.Rr = null; var a = b.l; a.deleteFramebuffer(this.bv); this.Vq && a.deleteRenderbuffer(this.Vq); this.IY = null }, oN: function() { return this.sprite }, py: function(a) { this.sprite = a }, kx: null, GW: function(a, c) { var d = this.be, e = b.pb(); d.width = 0 | a * e; d.height = 0 | c * e; this.ce.translate(0, d.height); e = new b.aa; e.Kc(d); e.rb(); this.sprite = b.N.create(e); return !0 }, HW: function(a, c, d, e) { d == b.aa.nq && b.log("cc.RenderTexture._initWithWidthAndHeightForWebGL() : only RGB and RGBA formats are valid for a render texture;"); var f = b.l, g = b.pb(); a = 0 | a * g; c = 0 | c * g; this.ki = f.getParameter(f.FRAMEBUFFER_BINDING); var h; b.Ro.lw ? (g = a, h = c) : (g = b.Xj(a), h = b.Xj(c)); for (var k = new Uint8Array(g * h * 4), m = 0; m < g * h * 4; m++) k[m] = 0; this.mi = d; this.G = new b.aa; if (!this.G) return !1; m = this.G; m.Bs(k, this.mi, g, h, N(a, c)); d = f.getParameter(f.RENDERBUFFER_BINDING); if (b.Ro.Po("GL_QCOM")) { this.Rr = new b.aa; if (!this.Rr) return !1; this.Rr.Bs(k, this.mi, g, h, N(a, c)) } this.bv = f.createFramebuffer(); f.bindFramebuffer(f.FRAMEBUFFER, this.bv); f.framebufferTexture2D(f.FRAMEBUFFER, f.COLOR_ATTACHMENT0, f.TEXTURE_2D, m.Zd, 0); 0 != e && (this.Vq = f.createRenderbuffer(), f.bindRenderbuffer(f.RENDERBUFFER, this.Vq), f.renderbufferStorage(f.RENDERBUFFER, e, g, h), f.framebufferRenderbuffer(f.FRAMEBUFFER, f.DEPTH_ATTACHMENT, f.RENDERBUFFER, this.Vq)); f.checkFramebufferStatus(f.FRAMEBUFFER) !== f.FRAMEBUFFER_COMPLETE && b.log("Could not attach texture to the framebuffer"); m.PF(); a = this.sprite = b.N.create(m); a.scaleY = -1; a.Se(f.ONE, f.ONE_MINUS_SRC_ALPHA); f.bindRenderbuffer(f.RENDERBUFFER, d); f.bindFramebuffer(f.FRAMEBUFFER, this.ki); this.gs = !1; this.X(a); return !0 }, Ah: null, TU: function() { b.l = this.ce; b.view.Xv() }, UU: function() { b.wf(b.Yg); b.Fj(); b.wf(b.Xg); b.Fj(); var a = b.I; a.Xm(a.pi); var c = this.G.O, d = b.I.ws(), a = d.width / c.width, d = d.height / c.height, e = b.l; e.viewport(0, 0, c.width, c.height); c = new b.ba; b.nF(c, -1 / a, 1 / a, -1 / d, 1 / d, -1, 1); b.ip(c); this.ki = e.getParameter(e.FRAMEBUFFER_BINDING); e.bindFramebuffer(e.FRAMEBUFFER, this.bv); b.Ro.Po("GL_QCOM") && (e.framebufferTexture2D(e.FRAMEBUFFER, e.COLOR_ATTACHMENT0, e.TEXTURE_2D, this.Rr.Zd, 0), e.clear(e.COLOR_BUFFER_BIT | e.DEPTH_BUFFER_BIT), e.framebufferTexture2D(e.FRAMEBUFFER, e.COLOR_ATTACHMENT0, e.TEXTURE_2D, this.G.Zd, 0)) }, xZ: function(a, c, d, e, f, g) { var h = b.l; f = f || h.COLOR_BUFFER_BIT; g = g || h.COLOR_BUFFER_BIT | h.DEPTH_BUFFER_BIT; this.PA(a / 255, c / 255, d / 255, e / 255, f, g, h.COLOR_BUFFER_BIT | h.DEPTH_BUFFER_BIT | h.STENCIL_BUFFER_BIT) }, PA: null, VU: function(a, c, d, e) { this.Ah(); a = a || 0; c = c || 0; d = d || 0; e = isNaN(e) ? 1 : e; var f = this.ce, g = this.be; f.save(); f.fillStyle = "rgba(" + (0 | a) + "," + (0 | c) + "," + (0 | d) + "," + e / 255 + ")"; f.clearRect(0, 0, g.width, -g.height); f.fillRect(0, 0, g.width, -g.height); f.restore() }, WU: function(a, c, d, e, f, g, h) { this.Ah(); var k = b.l, m = [0, 0, 0, 0], p = 0, r = 0; h & k.COLOR_BUFFER_BIT && (m = k.getParameter(k.COLOR_CLEAR_VALUE), k.clearColor(a, c, d, e)); h & k.DEPTH_BUFFER_BIT && (p = k.getParameter(k.DEPTH_CLEAR_VALUE), k.clearDepth(f)); h & k.STENCIL_BUFFER_BIT && (r = k.getParameter(k.STENCIL_CLEAR_VALUE), k.clearStencil(g)); k.clear(h); h & k.COLOR_BUFFER_BIT && k.clearColor(m[0], m[1], m[2], m[3]); h & k.DEPTH_BUFFER_BIT && k.clearDepth(p); h & k.STENCIL_BUFFER_BIT && k.clearStencil(r) }, end: null, EV: function() { b.l = b.ZW; b.view.Pv() }, FV: function() { var a = b.l, c = b.I; a.bindFramebuffer(a.FRAMEBUFFER, this.ki); c.zP(); b.wf(b.Yg); b.Ej(); b.wf(b.Xg); b.Ej() }, clear: function(a, c, d, e) { this.xZ(a, c, d, e); this.end() }, clearRect: null, iV: function(a, c, d, e) { this.ce.clearRect(a, c, d, -e) }, jV: function() {}, clearDepth: null, gV: function() { b.log("clearDepth isn't supported on Cocos2d-Html5") }, hV: function(a) { this.Ah(); var c = b.l, d = c.getParameter(c.DEPTH_CLEAR_VALUE); c.clearDepth(a); c.clear(c.DEPTH_BUFFER_BIT); c.clearDepth(d); this.end() }, clearStencil: null, kV: function() { b.log("clearDepth isn't supported on Cocos2d-Html5") }, lV: function(a) { var c = b.l, d = c.getParameter(c.STENCIL_CLEAR_VALUE); c.clearStencil(a); c.clear(c.STENCIL_BUFFER_BIT); c.clearStencil(d) }, R: null, pm: function(a) { this.lc && (a = a || b.l, a.save(), this.Y(a), this.transform(a), this.sprite.R(), a.restore(), this.arrivalOrder = 0) }, as: function(a) { if (this.lc) { b.Fj(); var c = this.grid; c && c.vf() && (c.is(), this.xy()); this.transform(a); this.sprite.R(); this.Y(a); c && c.vf() && c.fs(this); b.Ej(); this.arrivalOrder = 0 } }, Y: null, Ll: function(a) { a = a || b.l; if (this.gs) { this.Ah(); if (this.Dw) { var c = this.be; a.save(); a.fillStyle = this.$A; a.clearRect(0, 0, c.width, -c.height); a.fillRect(0, 0, c.width, -c.height); a.restore() } this.Wc(); a = this.t; for (var c = a.length, d = this.sprite, e = 0; e < c; e++) { var f = a[e]; f != d && f.R() } this.end() } }, aj: function() { var a = b.l; if (this.gs) { this.Ah(); var c = this.Dw; if (c) { var d = [0, 0, 0, 0], e = 0, f = 0; c & a.COLOR_BUFFER_BIT && (d = a.getParameter(a.COLOR_CLEAR_VALUE), a.clearColor(this.Zi.r / 255, this.Zi.g / 255, this.Zi.b / 255, this.Zi.a / 255)); c & a.DEPTH_BUFFER_BIT && (e = a.getParameter(a.DEPTH_CLEAR_VALUE), a.clearDepth(this.cE)); c & a.STENCIL_BUFFER_BIT && (f = a.getParameter(a.STENCIL_CLEAR_VALUE), a.clearStencil(this.dE)); a.clear(c); c & a.COLOR_BUFFER_BIT && a.clearColor(d[0], d[1], d[2], d[3]); c & a.DEPTH_BUFFER_BIT && a.clearDepth(e); c & a.STENCIL_BUFFER_BIT && a.clearStencil(f) } this.Wc(); a = this.t; for (c = 0; c < a.length; c++) d = a[c], d != this.sprite && d.R(); this.end() } }, mga: function() { b.log("saveToFile isn't supported on cocos2d-html5"); return null }, r9: function(a, c, d, e, f) { for (var g = 0; g < f; g++) a[c + g] = d[e + g] }, $ha: function() { b.log("saveToFile isn't supported on Cocos2d-Html5") }, dga: function() { b.log("listenToBackground isn't supported on Cocos2d-Html5") }, ega: function() { b.log("listenToForeground isn't supported on Cocos2d-Html5") }, nba: function() { return this.Dw }, ria: function(a) { this.Dw = a }, X_: function() { return this.Zi }, RF: null, PX: function(a) { var c = this.Zi; c.r = a.r; c.g = a.g; c.b = a.b; c.a = a.a; this.$A = "rgba(" + (0 | a.r) + "," + (0 | a.g) + "," + (0 | a.b) + "," + a.a / 255 + ")" }, QX: function(a) { var c = this.Zi; c.r = a.r; c.g = a.g; c.b = a.b; c.a = a.a }, mba: function() { return this.cE }, qia: function(a) { this.cE = a }, oba: function() { return this.dE }, sia: function(a) { this.dE = a }, Pda: function() { return this.gs }, jia: function(a) { this.gs = a } }); n = b.sn.prototype; b.A == b.U ? (n.ctor = n.Sq, n.Qe = n.fV, n.kx = n.HW, n.Ah = n.UU, n.PA = n.WU, n.end = n.FV, n.clearRect = n.jV, n.clearDepth = n.hV, n.clearStencil = n.lV, n.R = n.as, n.Y = n.aj, n.RF = n.QX) : (n.ctor = n.Rq, n.Qe = n.eV, n.kx = n.GW, n.Ah = n.TU, n.PA = n.VU, n.end = n.EV, n.clearRect = n.iV, n.clearDepth = n.gV, n.clearStencil = n.kV, n.R = n.pm, n.Y = n.Ll, n.RF = n.PX); b.i(n, "clearColorVal", n.X_, n.RF); b.sn.create = function(a, c, d, e) { return new b.sn(a, c, d, e) }; b.Th = b.Qi.extend({ Ib: null, TB: null, ma: !1, gb: null, vb: "LabelAtlas", ctor: function(a, c, d, e, f) { b.Qi.prototype.ctor.call(this); c && b.Th.prototype.sd.call(this, a, c, d, e, f) }, kt: function() { return this.ma }, $d: function(a, c) { this.gb || (this.gb = []); this.gb.push({ Bh: a, Uf: c }) }, Sd: function() { if (this.gb) { this.ma = !0; for (var a = this.gb, c = 0, d = a.length; c < d; c++) { var e = a[c]; e.Bh.call(e.Uf, this) } a.length = 0 } }, sd: function(a, c, d, e, f) { var g = a + "", h, k; if (void 0 === d) { d = b.T.Hd(c); if (1 !== parseInt(d.version, 10)) return b.log("cc.LabelAtlas.initWithString(): Unsupported version. Upgrade cocos2d version"), !1; c = b.path.Oo(c, d.textureFilename); e = b.pb(); h = parseInt(d.itemWidth, 10) / e; k = parseInt(d.itemHeight, 10) / e; d = String.fromCharCode(parseInt(d.firstChar, 10)) } else h = d || 0, k = e || 0, d = f || " "; var m = null, m = c instanceof b.aa ? c : b.Da.Hc(c); (this.ma = c = m.wc) || m.$d(function() { this.qa(m, h, k, g.length); this.string = g; this.Sd() }, this); return this.qa(m, h, k, g.length) ? (this.TB = d, this.string = g, !0) : !1 }, cb: function(a) { b.Qi.prototype.cb.call(this, a); this.Gp() }, al: function() { return this.Ib }, Y: function(a) { b.Qi.prototype.Y.call(this, a); b.CR && (a = this.size, b.Fe.ae([C(0, 0), C(a.width, 0), C(a.width, a.height), C(0, a.height)], 4, !0)) }, HA: function(a, c, d) { a.UW = !0; b.k.prototype.X.call(this, a, c, d) }, Gp: null, JY: function() { for (var a = this.Ib || "", c = a.length, d = this.texture, e = this.gi, f = this.jh, g = 0; g < c; g++) { var h = a.charCodeAt(g) - this.TB.charCodeAt(0), h = O(parseInt(h % this.mo, 10) * e, parseInt(h / this.mo, 10) * f, e, f), k = a.charCodeAt(g), m = this.Eh(g); m ? 32 == k ? (m.da(), m.tb(O(0, 0, 10, 10), !1, N(0, 0))) : (m.qa(d, h), m.visible = !0, m.opacity = this.fb) : (m = new b.N, 32 == k ? (m.da(), m.tb(O(0, 0, 10, 10), !1, N(0, 0))) : m.qa(d, h), b.k.prototype.X.call(this, m, 0, g)); m.P(g * e + e / 2, f / 2) } }, KY: function() { var a = this.Ib, c = a.length, d = this.textureAtlas, e = d.texture, f = e.pixelsWidth, e = e.pixelsHeight, g = this.gi, h = this.jh; this.kv || (g = this.gi * b.pb(), h = this.jh * b.pb()); c > d.Ad && b.log("cc.LabelAtlas._updateAtlasValues(): Invalid String length"); for (var k = d.quads, m = this.ya, m = { r: m.r, g: m.g, b: m.b, a: this.fb }, p = this.gi, r = 0; r < c; r++) { var s = a.charCodeAt(r) - this.TB.charCodeAt(0), u = s % this.mo, t = 0 | s / this.mo, v; b.jn ? (u = (2 * u * g + 1) / (2 * f), s = u + (2 * g - 2) / (2 * f), t = (2 * t * h + 1) / (2 * e), v = t + (2 * h - 2) / (2 * e)) : (u = u * g / f, s = u + g / f, t = t * h / e, v = t + h / e); var w = k[r], y = w.K, B = w.J, G = w.C, w = w.L; y.m.fa = u; y.m.ga = t; B.m.fa = s; B.m.ga = t; G.m.fa = u; G.m.ga = v; w.m.fa = s; w.m.ga = v; G.f.x = r * p; G.f.y = 0; G.f.z = 0; w.f.x = r * p + p; w.f.y = 0; w.f.z = 0; y.f.x = r * p; y.f.y = this.jh; y.f.z = 0; B.f.x = r * p + p; B.f.y = this.jh; B.f.z = 0; y.s = m; B.s = m; G.s = m; w.s = m } 0 < c && (d.dirty = !0, a = d.totalQuads, c > a && d.CN(c - a)) }, Kb: null, mY: function(a) { a = String(a); var c = a.length; this.Ib = a; this.width = c * this.gi; this.height = this.jh; if (this.t) { a = this.t; for (var c = a.length, d = 0; d < c; d++) { var e = a[d]; e && !e.UW && (e.visible = !1) } } this.Gp(); this.quadsToDraw = c }, oY: function(a) { a = String(a); var c = a.length; c > this.textureAtlas.totalQuads && this.textureAtlas.JF(c); this.Ib = a; this.width = c * this.gi; this.height = this.jh; this.Gp(); this.quadsToDraw = c }, Sa: null, SC: function(a) { if (this.fb !== a) { b.Qi.prototype.Sa.call(this, a); for (var c = this.t, d = 0, e = c.length; d < e; d++) c[d] && (c[d].opacity = a) } }, TC: function(a) { this.Wd !== a && b.Qi.prototype.Sa.call(this, a) } }); n = b.Th.prototype; b.A === b.U ? (n.Gp = n.KY, n.Kb = n.oY, n.Sa = n.TC) : (n.Gp = n.JY, n.Kb = n.mY, n.Sa = n.SC, n.X = n.HA); b.i(n, "opacity", n.Ig, n.Sa); b.i(n, "string", n.al, n.Kb); b.Th.create = function(a, c, d, e, f) { return new b.Th(a, c, d, e, f) }; b.o7 = -1; b.jz = b.Ae.extend({ Oa: !1, Ib: "", Cf: null, ev: "", ho: "", Gq: b.Al, bs: -1, wK: !1, lv: null, eL: null, fb: 255, Bg: 255, ya: null, Xd: null, ah: !0, ai: !0, ma: !1, gb: null, vb: "LabelBMFont", pL: function(a, c) { c ? this.ho = a : this.Ib = a; var d = this.t; if (d) for (var e = 0; e < d.length; e++) { var f = d[e]; f && f.ry(!1) } this.ma && (this.Iw(), c && this.gg()) }, ctor: function(a, c, d, e, f) { b.Ae.prototype.ctor.call(this); this.lv = C(0, 0); this.ya = b.color(255, 255, 255, 255); this.Xd = b.color(255, 255, 255, 255); this.eL = []; this.sd(a, c, d, e, f) }, kt: function() { return this.ma }, $d: function(a, c) { this.gb || (this.gb = []); this.gb.push({ Bh: a, Uf: c }) }, Sd: function() { if (this.gb) { for (var a = this.gb, c = 0, d = a.length; c < d; c++) { var e = a[c]; e.Bh.call(e.Uf, this) } a.length = 0 } }, Y: function(a) { b.Ae.prototype.Y.call(this, a); if (b.DR) { a = this.se(); var c = C(0 | -this.Ab.x, 0 | -this.Ab.y); a = [C(c.x, c.y), C(c.x + a.width, c.y), C(c.x + a.width, c.y + a.height), C(c.x, c.y + a.height)]; b.Fe.yp(0, 255, 0, 255); b.Fe.ae(a, 4, !0) } }, cb: function(a) { var c = this.ya, d = this.Xd; if (d.r != a.r || d.g != a.g || d.b != a.b || d.a != a.a) c.r = d.r = a.r, c.g = d.g = a.g, c.b = d.b = a.b, this.ma && this.ah && (a = b.color.WHITE, (c = this.Sc) && c.cascadeColor && (a = c.Pw()), this.Nc(a)) }, Wf: function() { return this.Oa }, Ue: function(a) { this.Oa = a; if (a = this.t) for (var c = 0; c < a.length; c++) { var d = a[c]; d && (d.opacityModifyRGB = this.Oa) } }, Ig: function() { return this.Bg }, d0: function() { return this.fb }, Sa: function(a) { this.fb = this.Bg = a; if (this.ai) { var c = 255, d = this.Sc; d && d.cascadeOpacity && (c = d.fb); this.Bc(c) } this.ya.a = this.Xd.a = a }, Bc: function(a) { this.fb = this.Bg * a / 255; a = this.t; for (var c = 0; c < a.length; c++) { var d = a[c]; b.A == b.U ? d.Bc(this.fb) : (b.k.prototype.Bc.call(d, this.fb), d.Ha()) } this.ee() }, SN: function() { return !1 }, $O: function(a) { this.ai = a }, Hg: function() { var a = this.Xd; return b.color(a.r, a.g, a.b, a.a) }, Pw: function() { return this.ya }, Nc: function(a) { var c = this.ya, d = this.Xd; c.r = d.r * a.r / 255; c.g = d.g * a.g / 255; c.b = d.b * a.b / 255; a = this.t; for (c = 0; c < a.length; c++) d = a[c], b.A == b.U ? d.Nc(this.ya) : (b.k.prototype.Nc.call(d, this.ya), d.Ha()); this.ee() }, ee: function() { if (b.A != b.U) { var a = this.za(); if (a && 0 < a.se().width) { var c = this.xc.Wa; if (c) { var d = a.Wa, e = O(0, 0, c.width, c.height); d instanceof HTMLCanvasElement && !this.Ec ? b.Hm(c, this.ya, e, d) : (d = b.Hm(c, this.ya, e), a = new b.aa, a.Kc(d), a.rb()); this.Ya(a) } } } }, RN: function() { return !1 }, ZO: function(a) { this.ah = a }, da: function() { return this.sd(null, null, null, null, null) }, sd: function(a, c, d, e, f) { a = a || ""; this.Cf && b.log("cc.LabelBMFont.initWithString(): re-init is no longer supported"); if (c) { var g = b.T.Hd(c); if (!g) return b.log("cc.LabelBMFont.initWithString(): Impossible to create font. Please check file"), !1; this.Cf = g; this.ev = c; c = b.Da.Hc(g.aM); (this.ma = g = c.wc) || c.$d(function(a) { this.ma = !0; this.qa(a, this.ho.length); this.Kb(this.ho, !0); this.Sd() }, this) } else c = new b.aa, g = new Image, c.Kc(g), this.ma = !1; return this.qa(c, a.length) ? (this.Gq = e || b.eu, this.lv = f || C(0, 0), this.bs = null == d ? -1 : d, this.fb = this.Bg = 255, this.ya = b.color(255, 255, 255, 255), this.Xd = b.color(255, 255, 255, 255), this.ah = this.ai = !0, this.O.width = 0, this.O.height = 0, this.ll(0.5, 0.5), b.A === b.U && (d = this.textureAtlas.texture, this.Oa = d.Ai(), e = this.eL = new b.N, e.qa(d, O(0, 0, 0, 0), !1), e.batchNode = this), this.Kb(a, !0), !0) : !1 }, Iw: function() { var a = b.A, c = a === b.Ba ? this.texture : this.textureAtlas.texture, d = 0, e = N(0, 0), f = 0, g = 1, h = this.Ib, k = h ? h.length : 0; if (0 !== k) { var m, p = this.Cf, r = p.S1, s = p.fE, u = p.N_; for (m = 0; m < k - 1; m++) 10 == h.charCodeAt(m) && g++; var t = s * g, g = -(s - s * g), v = -1; for (m = 0; m < k; m++) if (s = h.charCodeAt(m), 0 != s) if (10 === s) d = 0, g -= p.fE; else { var w = r[v << 16 | s & 65535] || 0, y = u[s]; if (y) { var B = O(y.rect.x, y.rect.y, y.rect.width, y.rect.height), B = b.kl(B); B.x += this.lv.x; B.y += this.lv.y; (v = this.Eh(m)) ? 32 === s && a === b.Ba ? v.tb(B, !1, N(0, 0)) : (v.tb(B, !1), v.visible = !0): (v = new b.N, 32 === s && a === b.Ba && (B = O(0, 0, 0, 0)), v.qa(c, B, !1), v.xv = !0, this.X(v, 0, m)); v.opacityModifyRGB = this.Oa; b.A == b.U ? (v.Nc(this.ya), v.Bc(this.fb)) : (b.k.prototype.Nc.call(v, this.ya), b.k.prototype.Bc.call(v, this.fb), v.Ha()); B = C(d + y.aQ + 0.5 * y.rect.width + w, g + (p.fE - y.bQ) - 0.5 * B.height * b.pb()); v.P(b.EF(B)); d += y.W5 + w; v = s; f < d && (f = d) } else b.log("cocos2d: LabelBMFont: character not found " + h[m]) } e.width = f; e.height = t; this.Kd(b.BP(e)) } }, Kka: function(a) { var c = this.t; if (c) for (var d = 0, e = c.length; d < e; d++) { var f = c[d]; f && (f.visible = !1) } this.Cf && this.Iw(); a || this.gg() }, al: function() { return this.ho }, Kb: function(a, c) { a = String(a); null == c && (c = !0); if (null == a || "string" != typeof a) a += ""; this.ho = a; this.pL(a, c) }, nY: function(a) { this.Kb(a, !1) }, nia: function(a) { this.Kb(a, !0) }, gg: function() { this.string = this.ho; if (0 < this.bs) { for (var a = this.Ib.length, c = [], d = [], e = 1, f = 0, g = !1, h = !1, k = -1, m = -1, p = 0, r, s = 0, u = this.t.length; s < u; s++) { for (var t = 0; !(r = this.Eh(s + p + t));) t++; p += t; if (f >= a) break; var v = this.Ib[f]; h || (m = this.AB(r), h = !0); g || (k = m, g = !0); if (10 == v.charCodeAt(0)) { d.push("\n"); c = c.concat(d); d.length = 0; g = h = !1; k = m = -1; s--; p -= t; e++; if (f >= a) break; m || (m = this.AB(r), h = !0); k || (k = m, g = !0); f++ } else if (b.kF(v)) d.push(v), c = c.concat(d), d.length = 0, h = !1, m = -1, f++; else if (this.eW(r) - k > this.bs) if (this.wK) { b.XP(d); d.push("\n"); c = c.concat(d); d.length = 0; g = h = !1; k = m = -1; e++; if (f >= a) break; m || (m = this.AB(r), h = !0); k || (k = m, g = !0); s-- } else d.push(v), -1 != c.lastIndexOf(" ") ? b.XP(c) : c = [], 0 < c.length && c.push("\n"), e++, g = !1, k = -1, f++; else d.push(v), f++ } c = c.concat(d); s = c.length; r = ""; for (f = 0; f < s; ++f) r += c[f]; r += String.fromCharCode(0); this.pL(r, !1) } if (this.Gq != b.eu) for (c = f = 0, a = this.Ib.length, d = [], e = 0; e < a; e++) if (10 == this.Ib[e].charCodeAt(0) || 0 == this.Ib[e].charCodeAt(0)) if (s = 0, g = d.length, 0 == g) c++; else { if (r = f + g - 1 + c, !(0 > r) && (s = this.Eh(r), null != s)) { s = s.Gd() + s.eh() / 2; h = 0; switch (this.Gq) { case b.Al: h = this.width / 2 - s / 2; break; case b.KH: h = this.width - s } if (0 != h) for (s = 0; s < g; s++)(r = f + s + c, 0 > r || !(r = this.Eh(r))) || (r.x += h); f += g; c++; d.length = 0 } } else d.push(this.Ib[f]) }, J3: function(a) { this.Gq = a; this.gg() }, PV: function() { return this.Gq }, O3: function(a) { this.bs = a; this.gg() }, wB: function() { return this.bs }, Yia: function(a) { this.wK = a; this.gg() }, Li: function(a, c) { b.k.prototype.Li.call(this, a, c); this.gg() }, bt: function(a) { b.k.prototype.bt.call(this, a); this.gg() }, ct: function(a) { b.k.prototype.ct.call(this, a); this.gg() }, Iia: function(a) { if (null != a && a != this.ev) { var c = b.T.Hd(a); c ? (this.ev = a, this.Cf = c, a = b.Da.Hc(c.aM), this.ma = c = a.wc, this.texture = a, b.A === b.Ba && (this.xc = this.texture), c ? this.Iw() : a.$d(function(a) { this.ma = !0; this.texture = a; this.Iw(); this.ee(); this.gg(); this.Sd() }, this)) : b.log("cc.LabelBMFont.setFntFile() : Impossible to create font. Please check file") } }, Oba: function() { return this.ev }, ll: function(a, c) { b.k.prototype.ll.call(this, a, c); this.gg() }, nL: function(a) { b.k.prototype.nL.call(this, a); this.gg() }, KC: function(a) { b.k.prototype.KC.call(this, a); this.gg() }, LC: function(a) { b.k.prototype.LC.call(this, a); this.gg() }, U8: function() {}, n9: function(a, c) { var d = 0; if (this.oV.T1) { var e = this.oV.T1[(a << 16 | c & 65535).toString()]; e && (d = e.e$) } return d }, AB: function(a) { return a.Gd() * this.ka - a.eh() * this.ka * a.Qc.x }, eW: function(a) { return a.Gd() * this.ka + a.eh() * this.ka * a.Qc.x } }); n = b.jz.prototype; b.A !== b.Ba || b.hb.hw || (n.ee = function() { if (b.A != b.U) { var a, c = this.za(); c && 0 < c.se().width && (a = c.Wa) && (c = b.Da.Ww(this.xc.Wa)) && (a instanceof HTMLCanvasElement && !this.Ec ? b.Gm(a, c, this.ya, null, a) : (a = b.Gm(a, c, this.ya), c = new b.aa, c.Kc(a), c.rb(), this.Ya(c))) } }); b.i(n, "string", n.al, n.nY); b.i(n, "boundingWidth", n.wB, n.O3); b.i(n, "textAlign", n.PV, n.J3); b.jz.create = function(a, c, d, e, f) { return new b.jz(a, c, d, e, f) }; b.kF = 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 }; b.XP = function(a) { var c = a.length; if (!(0 >= c) && (c -= 1, b.kF(a[c]))) { for (var d = c - 1; 0 <= d; --d) if (b.kF(a[d])) c = d; else break; b.N5(a, c) } }; b.N5 = function(a, c) { var d = a.length; c >= d || 0 > c || a.splice(c, d) }; b.IV = { nR: /info [^\n]*(\n|$)/gi, CQ: /common [^\n]*(\n|$)/gi, mS: /page [^\n]*(\n|$)/gi, BQ: /char [^\n]*(\n|$)/gi, uR: /kerning [^\n]*(\n|$)/gi, pR: /\w+=[^ \r\n]+/gi, oR: /^[\-]?\d+$/, wr: function(a) { a = a.match(this.pR); var c = {}; if (a) for (var d = 0, e = a.length; d < e; d++) { var f = a[d], g = f.indexOf("\x3d"), h = f.substring(0, g), f = f.substring(g + 1); f.match(this.oR) ? f = parseInt(f) : '"' == f[0] && (f = f.substring(1, f.length - 1)); c[h] = f } return c }, N2: function(a, c) { var d = {}; this.wr(a.match(this.nR)[0]); var e = this.wr(a.match(this.CQ)[0]); d.fE = e.lineHeight; if (b.A === b.U) { var f = b.Ro.rr; (e.scaleW > f.width || e.scaleH > f.height) && b.log("cc.LabelBMFont._parseCommonArguments(): page can't be larger than supported") } 1 !== e.pages && b.log("cc.LabelBMFont._parseCommonArguments(): only supports 1 page"); e = this.wr(a.match(this.mS)[0]); 0 !== e.id && b.log("cc.LabelBMFont._parseImageFileName() : file could not be found"); d.aM = b.path.Oo(c, e.file); for (var g = a.match(this.BQ), h = d.N_ = {}, e = 0, f = g.length; e < f; e++) { var k = this.wr(g[e]); h[k.id] = { rect: { x: k.x, y: k.y, width: k.width, height: k.height }, aQ: k.xoffset, bQ: k.yoffset, W5: k.xadvance } } g = d.S1 = {}; if (h = a.match(this.uR)) for (e = 0, f = h.length; e < f; e++) k = this.wr(h[e]), g[k.first << 16 | k.second & 65535] = k.amount; return d }, load: function(a, c, d, e) { var f = this; b.T.Cx(a, function(a, d) { if (a) return e(a); e(null, f.N2(d, c)) }) } }; b.T.Nj(["fnt"], b.IV); b.bH = b.k.extend({ texture: null, Wo: !1, Mi: !1, p: null, Or: 0, pB: 0, Vl: 0, VB: 0, Ck: 0, uC: 0, nC: null, mC: null, Pa: null, Jn: null, Pf: null, dd: null, Kn: null, Bo: null, vb: "MotionStreak", ctor: function(a, c, d, e, f) { b.k.prototype.ctor.call(this); this.Ag = C(0, 0); this.p = new b.ec(b.SRC_ALPHA, b.ONE_MINUS_SRC_ALPHA); this.FD = b.l.createBuffer(); this.Mi = this.Wo = !1; this.texture = null; this.uC = this.Ck = this.VB = this.Vl = this.pB = this.Or = 0; this.Bo = this.Kn = this.dd = this.Pf = this.Jn = this.Pa = this.mC = this.nC = null; void 0 !== f && this.r1(a, c, d, e, f) }, za: function() { return this.texture }, Ya: function(a) { this.texture != a && (this.texture = a) }, Dh: function() { return this.p }, Se: function(a, c) { void 0 === c ? this.p = a : (this.p.src = a, this.p.S = c) }, Ig: function() { b.log("cc.MotionStreak.getOpacity has not been supported."); return 0 }, Sa: function() { b.log("cc.MotionStreak.setOpacity has not been supported.") }, Ue: function() {}, Wf: function() { return !1 }, sb: function() { b.k.prototype.sb.call(this); this.dd && b.l.deleteBuffer(this.dd); this.Bo && b.l.deleteBuffer(this.Bo); this.Kn && b.l.deleteBuffer(this.Kn) }, Xda: function() { return this.Wo }, Hia: function(a) { this.Wo = a }, iea: function() { return this.Mi }, Cja: function(a) { this.Mi = a }, r1: function(a, c, d, e, f) { if (!f) throw "cc.MotionStreak.initWithFade(): Invalid filename or texture"; "string" === typeof f && (f = b.Da.Hc(f)); b.k.prototype.P.call(this, C(0, 0)); this.anchorY = this.anchorX = 0; this.ignoreAnchor = !0; this.Mi = !1; this.Wo = !0; this.Vl = -1 == c ? d / 5 : c; this.Vl *= this.Vl; this.Or = d; this.pB = 1 / a; a = (0 | 60 * a) + 2; this.Ck = 0; this.mC = new Float32Array(a); this.nC = new Float32Array(2 * a); this.Pa = new Float32Array(4 * a); this.Pf = new Float32Array(4 * a); this.Jn = new Uint8Array(8 * a); this.VB = a; a = b.l; this.dd = a.createBuffer(); this.Bo = a.createBuffer(); this.Kn = a.createBuffer(); this.p.src = a.SRC_ALPHA; this.p.S = a.ONE_MINUS_SRC_ALPHA; this.shaderProgram = b.Md.nc(b.Wi); this.texture = f; this.color = e; this.H3(); a.bindBuffer(a.ARRAY_BUFFER, this.dd); a.bufferData(a.ARRAY_BUFFER, this.Pa, a.DYNAMIC_DRAW); a.bindBuffer(a.ARRAY_BUFFER, this.Bo); a.bufferData(a.ARRAY_BUFFER, this.Pf, a.DYNAMIC_DRAW); a.bindBuffer(a.ARRAY_BUFFER, this.Kn); a.bufferData(a.ARRAY_BUFFER, this.Jn, a.DYNAMIC_DRAW); return !0 }, Eka: function(a) { this.color = a; for (var c = this.Jn, d = 0, e = 2 * this.Ck; d < e; d++) c[4 * d] = a.r, c[4 * d + 1] = a.g, c[4 * d + 2] = a.b }, reset: function() { this.Ck = 0 }, P: function(a, c) { this.Mi = !0; void 0 === c ? (this.Ag.x = a.x, this.Ag.y = a.y) : (this.Ag.x = a, this.Ag.y = c) }, Gd: function() { return this.Ag.x }, kP: function(a) { this.Ag.x = a; this.Mi || (this.Mi = !0) }, tf: function() { return this.Ag.y }, lP: function(a) { this.Ag.y = a; this.Mi || (this.Mi = !0) }, Y: function(a) { 1 >= this.Ck || !this.texture || !this.texture.wc || (a = a || b.l, b.Js(this), b.Jc(b.El), b.Hh(this.p.src, this.p.S), b.te(this.texture), a.bindBuffer(a.ARRAY_BUFFER, this.dd), a.bufferData(a.ARRAY_BUFFER, this.Pa, a.DYNAMIC_DRAW), a.vertexAttribPointer(b.qb, 2, a.FLOAT, !1, 0, 0), a.bindBuffer(a.ARRAY_BUFFER, this.Bo), a.bufferData(a.ARRAY_BUFFER, this.Pf, a.DYNAMIC_DRAW), a.vertexAttribPointer(b.zd, 2, a.FLOAT, !1, 0, 0), a.bindBuffer(a.ARRAY_BUFFER, this.Kn), a.bufferData(a.ARRAY_BUFFER, this.Jn, a.DYNAMIC_DRAW), a.vertexAttribPointer(b.Ce, 4, a.UNSIGNED_BYTE, !0, 0, 0), a.drawArrays(a.TRIANGLE_STRIP, 0, 2 * this.Ck), b.sf++) }, update: function(a) { if (this.Mi) { a *= this.pB; var c, d, e, f, g = 0, h = this.Ck, k = this.mC, m = this.nC, p = this.Pa, r = this.Jn; for (e = 0; e < h; e++) k[e] -= a, 0 >= k[e] ? g++ : (c = e - g, 0 < g ? (k[c] = k[e], m[2 * c] = m[2 * e], m[2 * c + 1] = m[2 * e + 1], f = 2 * e, d = 2 * c, p[2 * d] = p[2 * f], p[2 * d + 1] = p[2 * f + 1], p[2 * (d + 1)] = p[2 * (f + 1)], p[2 * (d + 1) + 1] = p[2 * (f + 1) + 1], f *= 4, d *= 4, r[d + 0] = r[f + 0], r[d + 1] = r[f + 1], r[d + 2] = r[f + 2], r[d + 4] = r[f + 4], r[d + 5] = r[f + 5], r[d + 6] = r[f + 6]) : d = 8 * c, c = 255 * k[c], r[d + 3] = c, r[d + 7] = c); h -= g; e = !0; h >= this.VB ? e = !1 : 0 < h && (a = 1 == h ? !1 : b.sO(C(m[2 * (h - 2)], m[2 * (h - 2) + 1]), this.Ag) < 2 * this.Vl, b.sO(C(m[2 * (h - 1)], m[2 * (h - 1) + 1]), this.Ag) < this.Vl || a) && (e = !1); e && (m[2 * h] = this.Ag.x, m[2 * h + 1] = this.Ag.y, k[h] = 1, e = 8 * h, k = this.ya, r[e] = k.r, r[e + 1] = k.g, r[e + 2] = k.b, r[e + 4] = k.r, r[e + 5] = k.g, r[e + 6] = k.b, r[e + 3] = 255, r[e + 7] = 255, 0 < h && this.Wo && (1 < h ? b.tG(m, this.Or, this.Pa, h, 1) : b.tG(m, this.Or, this.Pa, 0, 2)), h++); this.Wo || b.tG(m, this.Or, this.Pa, 0, h); if (h && this.uC != h) { m = 1 / h; r = this.Pf; for (e = 0; e < h; e++) r[4 * e] = 0, r[4 * e + 1] = m * e, r[2 * (2 * e + 1)] = 1, r[2 * (2 * e + 1) + 1] = m * e; this.uC = h } this.Ck = h } } }); b.bH.create = function(a, c, d, e, f) { return new b.bH(a, c, d, e, f) }; b.qz = b.k.extend({ grid: null, ne: null, ss: function() { return this.grid }, d4: function(a) { this.grid = a }, dG: function(a) { this.ne = a }, X: function(a, c, d) { b.k.prototype.X.call(this, a, c, d); a && !this.ne && (this.ne = a) }, R: function() { if (this.lc) { var a = b.A == b.U, c = this.grid; a && c && c.kk && c.is(); this.transform(); var d = this.t; if (d && 0 < d.length) { var e = d.length; this.Wc(); for (Q = 0; Q < e; Q++) { var f = d[Q]; f && f.R() } } a && c && c.kk && c.fs(this.ne) } }, HY: function() { var a = this.uD, c = b.Pb.top, d = this.np(), e = a.c; e[0] = d.a; e[4] = d.B; e[12] = d.Ia; e[1] = d.b; e[5] = d.H; e[13] = d.Ja; e[14] = this.$r; b.Ei(c, c, a); null == this.Yi || this.grid && this.grid.vf() || (a = this.Ab.x, c = this.Ab.y, 0 !== a || 0 !== c ? (b.Qz || (a |= 0, c |= 0), b.jp(a, c), this.Yi.Is(), b.jp(-a, -c)) : this.Yi.Is()) } }); n = b.qz.prototype; b.A === b.U && (n.transform = n.HY); b.i(n, "target", null, n.dG); b.qz.create = function() { return new b.qz }; b.Nka = function() { return { x: 0, y: 0 } }; b.pl = function(a, c) { return { x: a, y: c } }; b.we = function(a, c) { return b.pl(a.x + c.x, a.y + c.y) }; b.pc = function(a, c) { return b.pl(a.x - c.x, a.y - c.y) }; b.vd = function(a, c) { return b.pl(a.x * c, a.y * c) }; b.Hp = function(a) { return b.pl(-a.y, a.x) }; b.hg = function(a) { return b.pl(-a.x, -a.y) }; b.YP = function(a, c) { return a.x * c.x + a.y * c.y }; b.Mka = function(a) { return b.pl(Math.cos(a), Math.sin(a)) }; b.qt = function(a) { a = b.Kg(C(a.x, a.y)); return b.pl(a.x, a.y) }; b.De = function(a) { return b.pl(a.x, a.y) }; b.Fa = function(a) { return { fa: a.x, ga: a.y } }; b.RQ = b.k.extend({ ab: null, p: null, $c: 1, gf: null, vb: "DrawNodeCanvas", ctor: function() { b.k.prototype.ctor.call(this); this.ab = []; this.gf = b.color(255, 255, 255, 255); this.p = new b.ec(b.dc, b.cc); this.da() }, Dh: function() { return this.p }, Se: function(a, c) { void 0 === c ? (this.p.src = a.src, this.p.S = a.S) : (this.p.src = a, this.p.S = c) }, WF: function(a) { this.$c = a }, r0: function() { return this.$c }, yp: function(a) { var c = this.gf; c.r = a.r; c.g = a.g; c.b = a.b; c.a = null == a.a ? 255 : a.a }, Fd: function() { return b.color(this.gf.r, this.gf.g, this.gf.b, this.gf.a) }, sE: function(a, c, d, e, f) { e = e || this.$c; f = f || this.Fd(); null == f.a && (f.a = 255); a = [a, C(c.x, a.y), c, C(a.x, c.y)]; c = new b.fk(b.Od.ak); c.ig = a; c.lineWidth = e; c.Jj = f; c.nx = !0; c.cl = !0; c.lineCap = "butt"; if (c.fillColor = d) null == d.a && (d.a = 255), c.iF = !0; this.ab.push(c) }, oE: function(a, c, d, e, f, g, h) { g = g || this.$c; h = h || this.Fd(); null == h.a && (h.a = 255); for (var k = 2 * Math.PI / e, m = [], p = 0; p <= e; p++) { var r = p * k; m.push(C(c * Math.cos(r + d) + a.x, c * Math.sin(r + d) + a.y)) } f && m.push(C(a.x, a.y)); a = new b.fk(b.Od.ak); a.ig = m; a.lineWidth = g; a.Jj = h; a.nx = !0; a.cl = !0; this.ab.push(a) }, rE: function(a, c, d, e, f, g) { f = f || this.$c; g = g || this.Fd(); null == g.a && (g.a = 255); for (var h = [], k = 0, m = 0; m < e; m++) h.push(C(Math.pow(1 - k, 2) * a.x + 2 * (1 - k) * k * c.x + k * k * d.x, Math.pow(1 - k, 2) * a.y + 2 * (1 - k) * k * c.y + k * k * d.y)), k += 1 / e; h.push(C(d.x, d.y)); a = new b.fk(b.Od.ak); a.ig = h; a.lineWidth = f; a.Jj = g; a.cl = !0; a.lineCap = "round"; this.ab.push(a) }, pE: function(a, c, d, e, f, g, h) { g = g || this.$c; h = h || this.Fd(); null == h.a && (h.a = 255); for (var k = [], m = 0, p = 0; p < f; p++) k.push(C(Math.pow(1 - m, 3) * a.x + 3 * Math.pow(1 - m, 2) * m * c.x + 3 * (1 - m) * m * m * d.x + m * m * m * e.x, Math.pow(1 - m, 3) * a.y + 3 * Math.pow(1 - m, 2) * m * c.y + 3 * (1 - m) * m * m * d.y + m * m * m * e.y)), m += 1 / f; k.push(C(e.x, e.y)); a = new b.fk(b.Od.ak); a.ig = k; a.lineWidth = g; a.Jj = h; a.cl = !0; a.lineCap = "round"; this.ab.push(a) }, nE: function(a, c, d, e) { this.Bm(a, 0.5, c, d, e) }, Bm: function(a, c, d, e, f) { e = e || this.$c; f = f || this.Fd(); null == f.a && (f.a = 255); for (var g = [], h, k, m = 1 / a.length, p = 0; p < d + 1; p++) k = p / d, 1 == k ? (h = a.length - 1, k = 1) : (h = 0 | k / m, k = (k - m * h) / m), h = b.bE(b.gd(a, h - 1), b.gd(a, h - 0), b.gd(a, h + 1), b.gd(a, h + 2), c, k), g.push(h); a = new b.fk(b.Od.ak); a.ig = g; a.lineWidth = e; a.Jj = f; a.cl = !0; a.lineCap = "round"; this.ab.push(a) }, qE: function(a, c, d) { d = d || this.Fd(); null == d.a && (d.a = 255); var e = new b.fk(b.Od.NH); e.ig = [a]; e.lineWidth = c; e.fillColor = d; this.ab.push(e) }, ZZ: function(a, c, d) { if (a && 0 != a.length) { d = d || this.Fd(); null == d.a && (d.a = 255); for (var e = 0, f = a.length; e < f; e++) this.qE(a[e], c, d) } }, tE: function(a, c, d, e) { d = d || this.$c; e = e || this.Fd(); null == e.a && (e.a = 255); var f = new b.fk(b.Od.ak); f.ig = [a, c]; f.lineWidth = 2 * d; f.Jj = e; f.cl = !0; f.lineCap = "round"; this.ab.push(f) }, c_: function(a, c, d, e) { d = d || this.$c; e = e || this.Fd(); null == e.a && (e.a = 255); var f = new b.fk(b.Od.ak); f.ig = a; f.fillColor = c; f.lineWidth = d; f.Jj = e; f.nx = !0; f.cl = !0; f.lineCap = "round"; c && (f.iF = !0); this.ab.push(f) }, ae: function(a, c, d, e) { for (var f = [], g = 0; g < a.length; g++) f.push(C(a[g].x, a[g].y)); return this.c_(f, c, d, e) }, Y: function(a) { a = a || b.l; this.p && this.p.src == b.SRC_ALPHA && this.p.S == b.ONE && (a.globalCompositeOperation = "lighter"); for (var c = 0; c < this.ab.length; c++) { var d = this.ab[c]; switch (d.type) { case b.Od.NH: this.AV(a, d); break; case b.Od.GT: this.CV(a, d); break; case b.Od.ak: this.BV(a, d) } } }, AV: function(a, c) { var d = c.fillColor, e = c.ig[0], f = c.lineWidth, g = b.view.ka, h = b.view.La; a.fillStyle = "rgba(" + (0 | d.r) + "," + (0 | d.g) + "," + (0 | d.b) + "," + d.a / 255 + ")"; a.beginPath(); a.arc(e.x * g, -e.y * h, f * g, 0, 2 * Math.PI, !1); a.closePath(); a.fill() }, CV: function(a, c) { var d = c.Jj, e = c.ig[0], f = c.ig[1], g = c.lineWidth, h = c.lineCap, k = b.view.ka, m = b.view.La; a.strokeStyle = "rgba(" + (0 | d.r) + "," + (0 | d.g) + "," + (0 | d.b) + "," + d.a / 255 + ")"; a.lineWidth = g * k; a.beginPath(); a.lineCap = h; a.moveTo(e.x * k, -e.y * m); a.lineTo(f.x * k, -f.y * m); a.stroke() }, BV: function(a, c) { var d = c.ig, e = c.lineCap, f = c.fillColor, g = c.lineWidth, h = c.Jj, k = c.nx, m = c.iF, p = c.cl; if (null != d) { var r = d[0], s = b.view.ka, u = b.view.La; a.lineCap = e; f && (a.fillStyle = "rgba(" + (0 | f.r) + "," + (0 | f.g) + "," + (0 | f.b) + "," + f.a / 255 + ")"); g && (a.lineWidth = g * s); h && (a.strokeStyle = "rgba(" + (0 | h.r) + "," + (0 | h.g) + "," + (0 | h.b) + "," + h.a / 255 + ")"); a.beginPath(); a.moveTo(r.x * s, -r.y * u); e = 1; for (f = d.length; e < f; e++) a.lineTo(d[e].x * s, -d[e].y * u); k && a.closePath(); m && a.fill(); p && a.stroke() } }, clear: function() { this.ab.length = 0 } }); b.SQ = b.k.extend({ Dn: 0, ab: null, yj: null, EL: null, DL: null, $c: 1, gf: null, p: null, jb: !1, vb: "DrawNodeWebGL", Dh: function() { return this.p }, Se: function(a, c) { void 0 === c ? (this.p.src = a.src, this.p.S = a.S) : (this.p.src = a, this.p.S = c) }, ctor: function() { b.k.prototype.ctor.call(this); this.ab = []; this.p = new b.ec(b.dc, b.cc); this.gf = b.color(255, 255, 255, 255); this.da() }, da: function() { return b.k.prototype.da.call(this) ? (this.shaderProgram = b.Md.nc(b.BH), this.Yq(64), this.EL = b.l.createBuffer(), this.jb = !0) : !1 }, WF: function(a) { this.$c = a }, r0: function() { return this.$c }, yp: function(a) { var c = this.gf; c.r = a.r; c.g = a.g; c.b = a.b; c.a = a.a }, Fd: function() { return b.color(this.gf.r, this.gf.g, this.gf.b, this.gf.a) }, sE: function(a, c, d, e, f) { e = e || this.$c; f = f || this.Fd(); null == f.a && (f.a = 255); a = [a, C(c.x, a.y), c, C(a.x, c.y)]; null == d ? this.Tu(a, e, f, !0) : this.ae(a, d, e, f) }, oE: function(a, c, d, e, f, g, h) { g = g || this.$c; h = h || this.Fd(); null == h.a && (h.a = 255); var k = 2 * Math.PI / e, m = [], p; for (p = 0; p <= e; p++) { var r = p * k; m.push(C(c * Math.cos(r + d) + a.x, c * Math.sin(r + d) + a.y)) } f && m.push(C(a.x, a.y)); g *= 0.5; p = 0; for (a = m.length; p < a - 1; p++) this.tE(m[p], m[p + 1], g, h) }, rE: function(a, c, d, e, f, g) { f = f || this.$c; g = g || this.Fd(); null == g.a && (g.a = 255); for (var h = [], k = 0, m = 0; m < e; m++) h.push(C(Math.pow(1 - k, 2) * a.x + 2 * (1 - k) * k * c.x + k * k * d.x, Math.pow(1 - k, 2) * a.y + 2 * (1 - k) * k * c.y + k * k * d.y)), k += 1 / e; h.push(C(d.x, d.y)); this.Tu(h, f, g, !1) }, pE: function(a, c, d, e, f, g, h) { g = g || this.$c; h = h || this.Fd(); null == h.a && (h.a = 255); for (var k = [], m = 0, p = 0; p < f; p++) k.push(C(Math.pow(1 - m, 3) * a.x + 3 * Math.pow(1 - m, 2) * m * c.x + 3 * (1 - m) * m * m * d.x + m * m * m * e.x, Math.pow(1 - m, 3) * a.y + 3 * Math.pow(1 - m, 2) * m * c.y + 3 * (1 - m) * m * m * d.y + m * m * m * e.y)), m += 1 / f; k.push(C(e.x, e.y)); this.Tu(k, g, h, !1) }, nE: function(a, c, d, e) { this.Bm(a, 0.5, c, d, e) }, Bm: function(a, c, d, e, f) { e = e || this.$c; f = f || this.Fd(); null == f.a && (f.a = 255); for (var g = [], h, k, m = 1 / a.length, p = 0; p < d + 1; p++) k = p / d, 1 == k ? (h = a.length - 1, k = 1) : (h = 0 | k / m, k = (k - m * h) / m), h = b.bE(b.gd(a, h - 1), b.gd(a, h - 0), b.gd(a, h + 1), b.gd(a, h + 2), c, k), g.push(h); e *= 0.5; a = 0; for (c = g.length; a < c - 1; a++) this.tE(g[a], g[a + 1], e, f) }, HX: function() { var a = b.l; b.Jc(b.El); a.bindBuffer(a.ARRAY_BUFFER, this.EL); this.jb && (a.bufferData(a.ARRAY_BUFFER, this.yj, a.STREAM_DRAW), this.jb = !1); var c = b.yd.BYTES_PER_ELEMENT; a.vertexAttribPointer(b.qb, 2, a.FLOAT, !1, c, 0); a.vertexAttribPointer(b.Ce, 4, a.UNSIGNED_BYTE, !0, c, 8); a.vertexAttribPointer(b.zd, 2, a.FLOAT, !1, c, 12); a.drawArrays(a.TRIANGLES, 0, 3 * this.ab.length); b.Vf() }, Yq: function(a) { var c = this.ab; if (c.length + a > this.Dn) { var d = b.Ub.BYTES_PER_ELEMENT; this.Dn += Math.max(this.Dn, a); if (null == c || 0 === c.length) this.ab = [], this.yj = new ArrayBuffer(d * this.Dn), this.DL = new Uint8Array(this.yj); else { a = []; for (var e = new ArrayBuffer(d * this.Dn), f = 0; f < c.length; f++) a[f] = new b.Ub(c[f].a, c[f].b, c[f].B, e, f * d); this.DL = new Uint8Array(e); this.yj = e; this.ab = a } } }, Y: function() { b.Hh(this.p.src, this.p.S); this.Eb.Oc(); this.Eb.ft(); this.HX() }, qE: function(a, c, d) { d = d || this.Fd(); null == d.a && (d.a = 255); var e = { r: 0 | d.r, g: 0 | d.g, b: 0 | d.b, a: 0 | d.a }; d = { f: { x: a.x - c, y: a.y - c }, s: e, m: { fa: -1, ga: -1 } }; var f = { f: { x: a.x - c, y: a.y + c }, s: e, m: { fa: -1, ga: 1 } }, g = { f: { x: a.x + c, y: a.y + c }, s: e, m: { fa: 1, ga: 1 } }; a = { f: { x: a.x + c, y: a.y - c }, s: e, m: { fa: 1, ga: -1 } }; this.Yq(6); this.ab.push(new b.Ub(d, f, g, this.yj, this.ab.length * b.Ub.BYTES_PER_ELEMENT)); this.ab.push(new b.Ub(d, g, a, this.yj, this.ab.length * b.Ub.BYTES_PER_ELEMENT)); this.jb = !0 }, ZZ: function(a, c, d) { if (a && 0 != a.length) { d = d || this.Fd(); null == d.a && (d.a = 255); for (var e = 0, f = a.length; e < f; e++) this.qE(a[e], c, d) } }, tE: function(a, c, d, e) { e = e || this.Fd(); null == e.a && (e.a = 255); d = d || 0.5 * this.$c; this.Yq(18); e = { r: 0 | e.r, g: 0 | e.g, b: 0 | e.b, a: 0 | e.a }; var f = b.De(a); c = b.De(c); a = b.qt(b.Hp(b.pc(c, f))); var g = b.Hp(a), h = b.vd(a, d); d = b.vd(g, d); var k = b.we(c, b.pc(h, d)), m = b.pc(c, h), p = b.we(c, h), r = b.pc(f, h), s = b.we(f, h), u = b.pc(f, b.pc(h, d)), f = b.we(f, b.we(h, d)), t = b.Ub.BYTES_PER_ELEMENT, v = this.yj, w = this.ab; w.push(new b.Ub({ f: b.pc(c, b.we(h, d)), s: e, m: b.Fa(b.hg(b.we(a, g))) }, { f: k, s: e, m: b.Fa(b.pc(a, g)) }, { f: m, s: e, m: b.Fa(b.hg(a)) }, v, w.length * t)); w.push(new b.Ub({ f: p, s: e, m: b.Fa(a) }, { f: k, s: e, m: b.Fa(b.pc(a, g)) }, { f: m, s: e, m: b.Fa(b.hg(a)) }, v, w.length * t)); w.push(new b.Ub({ f: p, s: e, m: b.Fa(a) }, { f: r, s: e, m: b.Fa(b.hg(a)) }, { f: m, s: e, m: b.Fa(b.hg(a)) }, v, w.length * t)); w.push(new b.Ub({ f: p, s: e, m: b.Fa(a) }, { f: r, s: e, m: b.Fa(b.hg(a)) }, { f: s, s: e, m: b.Fa(a) }, v, w.length * t)); w.push(new b.Ub({ f: u, s: e, m: b.Fa(b.pc(g, a)) }, { f: r, s: e, m: b.Fa(b.hg(a)) }, { f: s, s: e, m: b.Fa(a) }, v, w.length * t)); w.push(new b.Ub({ f: u, s: e, m: b.Fa(b.pc(g, a)) }, { f: f, s: e, m: b.Fa(b.we(a, g)) }, { f: s, s: e, m: b.Fa(a) }, v, w.length * t)); this.jb = !0 }, ae: function(a, c, d, e) { if (null == c) this.Tu(a, d, e, !0); else { null == c.a && (c.a = 255); null == e.a && (e.a = 255); d = d || this.$c; d *= 0.5; c = { r: 0 | c.r, g: 0 | c.g, b: 0 | c.b, a: 0 | c.a }; e = { r: 0 | e.r, g: 0 | e.g, b: 0 | e.b, a: 0 | e.a }; var f = [], g, h, k, m, p = a.length; for (g = 0; g < p; g++) { h = b.De(a[(g - 1 + p) % p]); k = b.De(a[g]); m = b.De(a[(g + 1) % p]); var r = b.qt(b.Hp(b.pc(k, h))); k = b.qt(b.Hp(b.pc(m, k))); f[g] = { offset: b.vd(b.we(r, k), 1 / (b.YP(r, k) + 1)), fl: k } } r = 0 < d; this.Yq(3 * (3 * p - 2)); var s = b.Ub.BYTES_PER_ELEMENT, u = this.yj, t = this.ab, v = !1 == r ? 0.5 : 0; for (g = 0; g < p - 2; g++) h = b.pc(b.De(a[0]), b.vd(f[0].offset, v)), k = b.pc(b.De(a[g + 1]), b.vd(f[g + 1].offset, v)), m = b.pc(b.De(a[g + 2]), b.vd(f[g + 2].offset, v)), t.push(new b.Ub({ f: h, s: c, m: b.Fa({ x: 0, y: 0 }) }, { f: k, s: c, m: b.Fa({ x: 0, y: 0 }) }, { f: m, s: c, m: b.Fa({ x: 0, y: 0 }) }, u, t.length * s)); for (g = 0; g < p; g++) { v = (g + 1) % p; h = b.De(a[g]); k = b.De(a[v]); m = f[g].fl; var w = f[g].offset, y = f[v].offset, v = r ? b.pc(h, b.vd(w, d)) : b.pc(h, b.vd(w, 0.5)), B = r ? b.pc(k, b.vd(y, d)) : b.pc(k, b.vd(y, 0.5)); h = r ? b.we(h, b.vd(w, d)) : b.we(h, b.vd(w, 0.5)); k = r ? b.we(k, b.vd(y, d)) : b.we(k, b.vd(y, 0.5)); r ? (t.push(new b.Ub({ f: v, s: e, m: b.Fa(b.hg(m)) }, { f: B, s: e, m: b.Fa(b.hg(m)) }, { f: k, s: e, m: b.Fa(m) }, u, t.length * s)), t.push(new b.Ub({ f: v, s: e, m: b.Fa(b.hg(m)) }, { f: h, s: e, m: b.Fa(m) }, { f: k, s: e, m: b.Fa(m) }, u, t.length * s))) : (t.push(new b.Ub({ f: v, s: c, m: b.Fa({ x: 0, y: 0 }) }, { f: B, s: c, m: b.Fa({ x: 0, y: 0 }) }, { f: k, s: c, m: b.Fa(m) }, u, t.length * s)), t.push(new b.Ub({ f: v, s: c, m: b.Fa({ x: 0, y: 0 }) }, { f: h, s: c, m: b.Fa(m) }, { f: k, s: c, m: b.Fa(m) }, u, t.length * s))) } this.jb = !0 } }, Tu: function(a, c, d, e) { c = c || this.$c; d = d || this.gf; null == d.a && (d.a = 255); c *= 0.5; if (!(0 >= c)) { d = { r: 0 | d.r, g: 0 | d.g, b: 0 | d.b, a: 0 | d.a }; var f = [], g, h, k, m, p = a.length; for (g = 0; g < p; g++) { h = b.De(a[(g - 1 + p) % p]); k = b.De(a[g]); m = b.De(a[(g + 1) % p]); var r = b.qt(b.Hp(b.pc(k, h))); k = b.qt(b.Hp(b.pc(m, k))); f[g] = { offset: b.vd(b.we(r, k), 1 / (b.YP(r, k) + 1)), fl: k } } this.Yq(3 * (3 * p - 2)); m = b.Ub.BYTES_PER_ELEMENT; var r = this.yj, s = this.ab; e = e ? p : p - 1; for (g = 0; g < e; g++) { var u = (g + 1) % p; h = b.De(a[g]); k = b.De(a[u]); var t = f[g].fl, v = f[g].offset, u = f[u].offset, w = b.pc(h, b.vd(v, c)); h = b.we(h, b.vd(v, c)); v = b.we(k, b.vd(u, c)); s.push(new b.Ub({ f: w, s: d, m: b.Fa(b.hg(t)) }, { f: b.pc(k, b.vd(u, c)), s: d, m: b.Fa(b.hg(t)) }, { f: v, s: d, m: b.Fa(t) }, r, s.length * m)); s.push(new b.Ub({ f: w, s: d, m: b.Fa(b.hg(t)) }, { f: h, s: d, m: b.Fa(t) }, { f: v, s: d, m: b.Fa(t) }, r, s.length * m)) } this.jb = !0 } }, clear: function() { this.ab.length = 0; this.jb = !0 } }); b.Od = b.A == b.U ? b.SQ : b.RQ; b.Od.create = function() { return new b.Od }; b.fk = function(a) { this.type = a; this.fillColor = this.ig = null; this.lineWidth = 0; this.Jj = null; this.lineCap = "butt"; this.cl = this.iF = this.nx = !1 }; b.Od.NH = 0; b.Od.GT = 1; b.Od.ak = 2; b.ht = -1; b.mP = function(a, c) { a.shaderProgram = c; var d = a.children; if (d) for (var e = 0; e < d.length; e++) b.mP(d[e], c) }; b.fc = b.k.extend({ um: 0, Ih: !1, od: null, cK: !1, ctor: function(a) { b.k.prototype.ctor.call(this); this.od = null; this.um = 0; this.Ih = !1; b.fc.prototype.da.call(this, a || null) }, da: null, vb: "ClippingNode", DW: function(a) { this.od = a; this.um = 1; this.Ih = !1; b.fc.LB = !0; b.fc.LB && (b.ht = b.l.getParameter(b.l.STENCIL_BITS), 0 >= b.ht && b.log("Stencil buffer is not enabled."), b.fc.LB = !1); return !0 }, BW: function(a) { this.od = a; this.um = 1; this.Ih = !1 }, Z: function() { b.k.prototype.Z.call(this); this.od.Z() }, Mh: function() { b.k.prototype.Mh.call(this); this.od.Mh() }, Xf: function() { this.od.Xf(); b.k.prototype.Xf.call(this) }, sb: function() { this.od.sb(); b.k.prototype.sb.call(this) }, R: null, as: function(a) { var c = a || b.l; if (1 > b.ht) b.k.prototype.R.call(this, a); else if (this.od && this.od.visible) if (b.fc.sv + 1 == b.ht) b.fc.KD = !0, b.fc.KD && (b.log("Nesting more than " + b.ht + "stencils is not supported. Everything will be drawn without stencil for this node and its childs."), b.fc.KD = !1), b.k.prototype.R.call(this, a); else { b.fc.sv++; var d = 1 << b.fc.sv, e = d | d - 1, f = c.isEnabled(c.STENCIL_TEST), g = c.getParameter(c.STENCIL_WRITEMASK), h = c.getParameter(c.STENCIL_FUNC), k = c.getParameter(c.STENCIL_REF), m = c.getParameter(c.STENCIL_VALUE_MASK), p = c.getParameter(c.STENCIL_FAIL), r = c.getParameter(c.STENCIL_PASS_DEPTH_FAIL), s = c.getParameter(c.STENCIL_PASS_DEPTH_PASS); c.enable(c.STENCIL_TEST); c.stencilMask(d); var u = c.getParameter(c.DEPTH_WRITEMASK); c.depthMask(!1); c.stencilFunc(c.NEVER, d, d); c.stencilOp(this.Ih ? c.REPLACE : c.ZERO, c.KEEP, c.KEEP); b.wf(b.Yg); b.Fj(); b.dl(); b.wf(b.Xg); b.Fj(); b.dl(); b.Fe.JM(C(-1, -1), C(1, 1), b.color(255, 255, 255, 255)); b.wf(b.Yg); b.Ej(); b.wf(b.Xg); b.Ej(); c.stencilFunc(c.NEVER, d, d); c.stencilOp(this.Ih ? c.ZERO : c.REPLACE, c.KEEP, c.KEEP); if (1 > this.um) { var d = b.Md.nc(b.bu), t = c.getUniformLocation(d.Lm(), b.uI); b.RE(d.Lm()); d.dt(t, this.um); b.mP(this.od, d) } b.Fj(); this.transform(); this.od.R(); b.Ej(); c.depthMask(u); c.stencilFunc(c.EQUAL, e, e); c.stencilOp(c.KEEP, c.KEEP, c.KEEP); b.k.prototype.R.call(this, a); c.stencilFunc(h, k, m); c.stencilOp(p, r, s); c.stencilMask(g); f || c.disable(c.STENCIL_TEST); b.fc.sv-- } else this.Ih && b.k.prototype.R.call(this, a) }, pm: function(a) { if (this.od && this.od.visible) { a = a || b.l; var c = a.canvas; if (this.VA() || this.od instanceof b.N) { var d = b.fc.rW(); d.width = c.width; d.height = c.height; d.getContext("2d").drawImage(c, 0, 0); a.save(); b.k.prototype.R.call(this, a); a.globalCompositeOperation = this.Ih ? "destination-out" : "destination-in"; this.transform(a); this.od.R(); a.restore(); a.save(); a.setTransform(1, 0, 0, 1, 0, 0); a.globalCompositeOperation = "destination-over"; a.drawImage(d, 0, 0) } else { var d = this.t, e; a.save(); this.transform(a); this.od.R(a); this.Ih && (a.save(), a.setTransform(1, 0, 0, 1, 0, 0), a.moveTo(0, 0), a.lineTo(0, c.height), a.lineTo(c.width, c.height), a.lineTo(c.width, 0), a.lineTo(0, 0), a.restore()); a.clip(); this.VA(!0); var f = d.length; if (0 < f) { this.Wc(); for (c = 0; c < f; c++) if (e = d[c], 0 > e.Bb) e.R(a); else break; for (this.Y(a); c < f; c++) d[c].R(a) } else this.Y(a); this.VA(!1) } a.restore() } else this.Ih && b.k.prototype.R.call(this, a) }, W0: function() { return this.od }, cG: null, lY: function(a) { this.od = a }, kY: function(a) { this.od = a; var c = b.l; !(a instanceof b.N) && a instanceof b.Od && (a.Y = function() { var d = b.view.ka, e = b.view.La; c.beginPath(); for (var f = 0; f < a.ab.length; f++) { var g = a.ab[f].ig, h = g[0]; c.moveTo(h.x * d, -h.y * e); for (var h = 1, k = g.length; h < k; h++) c.lineTo(g[h].x * d, -g[h].y * e) } }) }, Zaa: function() { return this.um }, iia: function(a) { this.um = a }, Yda: function() { return this.Ih }, Sia: function(a) { this.Ih = a }, VA: function(a) { if (!0 === a || !1 === a) b.fc.prototype.cK = a; return b.fc.prototype.cK } }); n = b.fc.prototype; b.A === b.U ? (n.da = n.DW, n.R = n.as, n.cG = n.lY) : (n.da = n.BW, n.R = n.pm, n.cG = n.kY); b.i(n, "stencil", n.W0, n.cG); b.fc.LB = null; b.fc.KD = null; b.fc.sv = -1; b.fc.vL = null; b.fc.rW = function() { return b.fc.vL || (b.fc.vL = document.createElement("canvas")) }; b.fc.create = function(a) { return new b.fc(a) }; b.kn = b.oa.extend({ kk: !1, qi: 0, W: null, G: null, Cg: null, $n: null, Rl: !1, Eb: null, fB: 0, jb: !1, ctor: function(a, c, d) { b.ZA(); this.kk = !1; this.qi = 0; this.G = this.W = null; this.Cg = C(0, 0); this.$n = null; this.Rl = !1; this.Eb = null; this.fB = 0; this.jb = !1; void 0 !== a && this.jx(a, c, d) }, vf: function() { return this.kk }, setActive: function(a) { this.kk = a; a || (a = b.I, a.Xm(a.pi)) }, Oca: function() { return this.qi }, t4: function(a) { this.qi = a }, k0: function() { return N(this.W.width, this.W.height) }, Pia: function(a) { this.W.width = parseInt(a.width); this.W.height = parseInt(a.height) }, KE: function() { return C(this.Cg.x, this.Cg.y) }, Dja: function(a) { this.Cg.x = a.x; this.Cg.y = a.y }, lea: function() { return this.Rl }, Kja: function(a) { this.Rl != a && (this.Rl = a, this.Cw()) }, jx: function(a, c, d) { if (!c) { var e = b.I.ws(), f = b.Xj(e.width), g = b.Xj(e.height), h = new Uint8Array(f * g * 4); if (!h) return b.log("cocos2d: CCGrid: not enough memory."), !1; c = new b.aa; c.Bs(h, b.aa.Vi, f, g, e); if (!c) return b.log("cocos2d: CCGrid: error creating texture"), !1 } this.kk = !1; this.qi = 0; this.W = a; this.G = c; this.Rl = d || !1; this.Cg.x = this.G.width / a.width; this.Cg.y = this.G.height / a.height; this.$n = new b.hR; if (!this.$n) return !1; this.$n.g1(this.G); this.Eb = b.Md.nc(b.tq); this.Cw(); return !0 }, is: function() { this.fB = b.I.pi; this.I3(); this.$n.wZ(this.G) }, fs: function(a) { this.$n.cZ(this.G); b.I.Xm(this.fB); if (a.Jm().hF()) { var c = a.Nw(); b.jp(c.x, c.y); a.Jm().Is(); b.jp(-c.x, -c.y) } b.te(this.G); this.TD() }, TD: function() { b.log("cc.GridBase.blit(): Shall be overridden in subclass.") }, LF: function() { b.log("cc.GridBase.reuse(): Shall be overridden in subclass.") }, Cw: function() { b.log("cc.GridBase.calculateVertexPoints(): Shall be overridden in subclass.") }, I3: function() { var a = b.I.ws(); b.l.viewport(0, 0, a.width, a.height); b.wf(b.Yg); b.dl(); var c = new b.ba; b.nF(c, 0, a.width, 0, a.height, -1, 1); b.ip(c); b.wf(b.Xg); b.dl(); b.nP() } }); b.kn.create = function(a, c, d) { return new b.kn(a, c, d) }; b.dz = b.kn.extend({ Eg: null, Pa: null, jj: null, lb: null, Of: null, dd: null, If: null, ctor: function(a, c, d) { b.kn.prototype.ctor.call(this); this.If = this.dd = this.Of = this.lb = this.jj = this.Pa = this.Eg = null; void 0 !== a && this.jx(a, c, d) }, $P: function(a) { a.x === (0 | a.x) && a.y === (0 | a.y) || b.log("cc.Grid3D.vertex() : Numbers must be integers"); a = 0 | 3 * (a.x * (this.W.height + 1) + a.y); var c = this.Pa; return new b.uc(c[a], c[a + 1], c[a + 2]) }, Mc: function(a) { a.x === (0 | a.x) && a.y === (0 | a.y) || b.log("cc.Grid3D.originalVertex() : Numbers must be integers"); a = 0 | 3 * (a.x * (this.W.height + 1) + a.y); var c = this.jj; return new b.uc(c[a], c[a + 1], c[a + 2]) }, Ld: function(a, c) { a.x === (0 | a.x) && a.y === (0 | a.y) || b.log("cc.Grid3D.setVertex() : Numbers must be integers"); var d = 0 | 3 * (a.x * (this.W.height + 1) + a.y), e = this.Pa; e[d] = c.x; e[d + 1] = c.y; e[d + 2] = c.z; this.jb = !0 }, TD: function() { var a = this.W.width * this.W.height; b.Jc(b.Qd | b.tn); this.Eb.Oc(); this.Eb.ft(); var c = b.l, d = this.jb; c.bindBuffer(c.ARRAY_BUFFER, this.dd); d && c.bufferData(c.ARRAY_BUFFER, this.Pa, c.DYNAMIC_DRAW); c.vertexAttribPointer(b.qb, 3, c.FLOAT, !1, 0, 0); c.bindBuffer(c.ARRAY_BUFFER, this.Of); d && c.bufferData(c.ARRAY_BUFFER, this.Eg, c.DYNAMIC_DRAW); c.vertexAttribPointer(b.zd, 2, c.FLOAT, !1, 0, 0); c.bindBuffer(c.ELEMENT_ARRAY_BUFFER, this.If); d && c.bufferData(c.ELEMENT_ARRAY_BUFFER, this.lb, c.STATIC_DRAW); c.drawElements(c.TRIANGLES, 6 * a, c.UNSIGNED_SHORT, 0); d && (this.jb = !1); b.Vf() }, LF: function() { if (0 < this.qi) { for (var a = this.jj, c = this.Pa, d = 0, e = this.Pa.length; d < e; d++) a[d] = c[d]; --this.qi } }, Cw: function() { var a = b.l, c = this.G.pixelsWidth, d = this.G.pixelsHeight, e = this.G.O.height, f = this.W, g = (f.width + 1) * (f.height + 1); this.Pa = new Float32Array(3 * g); this.Eg = new Float32Array(2 * g); this.lb = new Uint16Array(f.width * f.height * 6); this.dd && a.deleteBuffer(this.dd); this.dd = a.createBuffer(); this.Of && a.deleteBuffer(this.Of); this.Of = a.createBuffer(); this.If && a.deleteBuffer(this.If); this.If = a.createBuffer(); for (var h, k, m = this.lb, p = this.Eg, r = this.Rl, s = this.Pa, g = 0; g < f.width; ++g) for (h = 0; h < f.height; ++h) { var u = h * f.width + g; k = g * this.Cg.x; var t = k + this.Cg.x, v = h * this.Cg.y, w = v + this.Cg.y, y = g * (f.height + 1) + h, B = (g + 1) * (f.height + 1) + h, G = (g + 1) * (f.height + 1) + (h + 1), I = g * (f.height + 1) + (h + 1); m[6 * u] = y; m[6 * u + 1] = B; m[6 * u + 2] = I; m[6 * u + 3] = B; m[6 * u + 4] = G; m[6 * u + 5] = I; var u = [3 * y, 3 * B, 3 * G, 3 * I], E = [{ x: k, y: v, z: 0 }, { x: t, y: v, z: 0 }, { x: t, y: w, z: 0 }, { x: k, y: w, z: 0 }], y = [2 * y, 2 * B, 2 * G, 2 * I], t = [C(k, v), C(t, v), C(t, w), C(k, w)]; for (k = 0; 4 > k; ++k) s[u[k]] = E[k].x, s[u[k] + 1] = E[k].y, s[u[k] + 2] = E[k].z, p[y[k]] = t[k].x / c, p[y[k] + 1] = r ? (e - t[k].y) / d : t[k].y / d } this.jj = new Float32Array(this.Pa); a.bindBuffer(a.ARRAY_BUFFER, this.dd); a.bufferData(a.ARRAY_BUFFER, this.Pa, a.DYNAMIC_DRAW); a.bindBuffer(a.ARRAY_BUFFER, this.Of); a.bufferData(a.ARRAY_BUFFER, this.Eg, a.DYNAMIC_DRAW); a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, this.If); a.bufferData(a.ELEMENT_ARRAY_BUFFER, this.lb, a.STATIC_DRAW); this.jb = !0 } }); b.dz.create = function(a, c, d) { return new b.dz(a, c, d) }; b.gA = b.kn.extend({ Eg: null, Pa: null, jj: null, lb: null, Of: null, dd: null, If: null, ctor: function(a, c, d) { b.kn.prototype.ctor.call(this); this.If = this.dd = this.Of = this.lb = this.jj = this.Pa = this.Eg = null; void 0 !== a && this.jx(a, c, d) }, KP: function(a) { a.x === (0 | a.x) && a.y === (0 | a.y) || b.log("cc.TiledGrid3D.tile() : Numbers must be integers"); a = 12 * (this.W.height * a.x + a.y); var c = this.Pa; return new b.Xt(new b.uc(c[a], c[a + 1], c[a + 2]), new b.uc(c[a + 3], c[a + 4], c[a + 5]), new b.uc(c[a + 6], c[a + 7], c[a + 8]), new b.uc(c[a + 9], c[a + 10], c[a + 11])) }, Yf: function(a) { a.x === (0 | a.x) && a.y === (0 | a.y) || b.log("cc.TiledGrid3D.originalTile() : Numbers must be integers"); a = 12 * (this.W.height * a.x + a.y); var c = this.jj; return new b.Xt(new b.uc(c[a], c[a + 1], c[a + 2]), new b.uc(c[a + 3], c[a + 4], c[a + 5]), new b.uc(c[a + 6], c[a + 7], c[a + 8]), new b.uc(c[a + 9], c[a + 10], c[a + 11])) }, Xe: function(a, c) { a.x === (0 | a.x) && a.y === (0 | a.y) || b.log("cc.TiledGrid3D.setTile() : Numbers must be integers"); var d = 12 * (this.W.height * a.x + a.y), e = this.Pa; e[d] = c.C.x; e[d + 1] = c.C.y; e[d + 2] = c.C.z; e[d + 3] = c.L.x; e[d + 4] = c.L.y; e[d + 5] = c.L.z; e[d + 6] = c.K.x; e[d + 7] = c.K.y; e[d + 8] = c.K.z; e[d + 9] = c.J.x; e[d + 10] = c.J.y; e[d + 11] = c.J.z; this.jb = !0 }, TD: function() { var a = this.W.width * this.W.height; this.Eb.Oc(); this.Eb.ft(); var c = b.l, d = this.jb; b.Jc(b.Qd | b.tn); c.bindBuffer(c.ARRAY_BUFFER, this.dd); d && c.bufferData(c.ARRAY_BUFFER, this.Pa, c.DYNAMIC_DRAW); c.vertexAttribPointer(b.qb, 3, c.FLOAT, !1, 0, this.Pa); c.bindBuffer(c.ARRAY_BUFFER, this.Of); d && c.bufferData(c.ARRAY_BUFFER, this.Eg, c.DYNAMIC_DRAW); c.vertexAttribPointer(b.zd, 2, c.FLOAT, !1, 0, this.Eg); c.bindBuffer(c.ELEMENT_ARRAY_BUFFER, this.If); d && c.bufferData(c.ELEMENT_ARRAY_BUFFER, this.lb, c.STATIC_DRAW); c.drawElements(c.TRIANGLES, 6 * a, c.UNSIGNED_SHORT, 0); d && (this.jb = !1); b.Vf() }, LF: function() { if (0 < this.qi) { for (var a = this.Pa, c = this.jj, d = 0; d < a.length; d++) c[d] = a[d]; --this.qi } }, Cw: function() { var a = this.G.pixelsWidth, c = this.G.pixelsHeight, d = this.G.O.height, e = this.W, f = e.width * e.height; this.Pa = new Float32Array(12 * f); this.Eg = new Float32Array(8 * f); this.lb = new Uint16Array(6 * f); var g = b.l; this.dd && g.deleteBuffer(this.dd); this.dd = g.createBuffer(); this.Of && g.deleteBuffer(this.Of); this.Of = g.createBuffer(); this.If && g.deleteBuffer(this.If); this.If = g.createBuffer(); var h, k, m = 0, p = this.Cg, r = this.Pa, s = this.Eg, u = this.Rl; for (h = 0; h < e.width; h++) for (k = 0; k < e.height; k++) { var t = h * p.x, v = t + p.x, w = k * p.y, y = w + p.y; r[12 * m] = t; r[12 * m + 1] = w; r[12 * m + 2] = 0; r[12 * m + 3] = v; r[12 * m + 4] = w; r[12 * m + 5] = 0; r[12 * m + 6] = t; r[12 * m + 7] = y; r[12 * m + 8] = 0; r[12 * m + 9] = v; r[12 * m + 10] = y; r[12 * m + 11] = 0; var B = w, G = y; u && (B = d - w, G = d - y); s[8 * m] = t / a; s[8 * m + 1] = B / c; s[8 * m + 2] = v / a; s[8 * m + 3] = B / c; s[8 * m + 4] = t / a; s[8 * m + 5] = G / c; s[8 * m + 6] = v / a; s[8 * m + 7] = G / c; m++ } a = this.lb; for (h = 0; h < f; h++) a[6 * h + 0] = 4 * h + 0, a[6 * h + 1] = 4 * h + 1, a[6 * h + 2] = 4 * h + 2, a[6 * h + 3] = 4 * h + 1, a[6 * h + 4] = 4 * h + 2, a[6 * h + 5] = 4 * h + 3; this.jj = new Float32Array(this.Pa); g.bindBuffer(g.ARRAY_BUFFER, this.dd); g.bufferData(g.ARRAY_BUFFER, this.Pa, g.DYNAMIC_DRAW); g.bindBuffer(g.ARRAY_BUFFER, this.Of); g.bufferData(g.ARRAY_BUFFER, this.Eg, g.DYNAMIC_DRAW); g.bindBuffer(g.ELEMENT_ARRAY_BUFFER, this.If); g.bufferData(g.ELEMENT_ARRAY_BUFFER, this.lb, g.DYNAMIC_DRAW); this.jb = !0 } }); b.gA.create = function(a, c, d) { return new b.gA(a, c, d) }; b.hR = b.oa.extend({ qu: null, ki: null, GK: null, Zn: null, ctor: function() { b.ZA(); this.Zn = b.l; this.GK = [0, 0, 0, 0]; this.ki = null; this.qu = this.Zn.createFramebuffer() }, g1: function(a) { var c = this.Zn; this.ki = c.getParameter(c.FRAMEBUFFER_BINDING); c.bindFramebuffer(c.FRAMEBUFFER, this.qu); c.framebufferTexture2D(c.FRAMEBUFFER, c.COLOR_ATTACHMENT0, c.TEXTURE_2D, a.Zd, 0); c.checkFramebufferStatus(c.FRAMEBUFFER) != c.FRAMEBUFFER_COMPLETE && b.log("Frame Grabber: could not attach texture to frmaebuffer"); c.bindFramebuffer(c.FRAMEBUFFER, this.ki) }, wZ: function() { var a = this.Zn; this.ki = a.getParameter(a.FRAMEBUFFER_BINDING); a.bindFramebuffer(a.FRAMEBUFFER, this.qu); this.GK = a.getParameter(a.COLOR_CLEAR_VALUE); a.clearColor(0, 0, 0, 0); a.clear(a.COLOR_BUFFER_BIT | a.DEPTH_BUFFER_BIT) }, cZ: function() { var a = this.Zn; a.bindFramebuffer(a.FRAMEBUFFER, this.ki); a.colorMask(!0, !0, !0, !0) }, M$: function() { this.Zn.deleteFramebuffer(this.qu) } }); b.dn = -1; b.wd = b.oa.extend({ originalTarget: null, target: null, tag: b.dn, ctor: function() { this.target = this.originalTarget = null; this.tag = b.dn }, copy: function() { b.log("copy is deprecated. Please use clone instead."); return this.j() }, j: function() { var a = new b.wd; a.originalTarget = null; a.target = null; a.tag = this.tag; return a }, Jg: function() { return !0 }, v: 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") }, eda: function() { return this.target }, dG: function(a) { this.target = a }, xca: function() { return this.originalTarget }, kja: function(a) { this.originalTarget = a }, LE: function() { return this.tag }, qy: function(a) { this.tag = a }, $x: function() {}, Ki: function() {} }); b.action = function() { return new b.wd }; b.wd.create = b.action; b.Ui = b.wd.extend({ o: 0, ctor: function() { b.wd.prototype.ctor.call(this); this.o = 0 }, ap: function() { return this.o * (this.ac || 1) }, Zf: function(a) { this.o = a }, reverse: function() { b.log("cocos2d: FiniteTimeAction#reverse: Implement me"); return null }, j: function() { return new b.Ui } }); b.du = b.wd.extend({ me: 0, mb: null, ctor: function(a, c) { b.wd.prototype.ctor.call(this); this.me = 0; this.mb = null; a && this.$(a, c) }, Uw: function() { return this.me }, Ve: function(a) { this.me = a }, $: function(a, c) { if (!a) throw "cc.Speed.initWithAction(): action must be non nil"; this.mb = a; this.me = c; return !0 }, j: function() { var a = new b.du; a.$(this.mb.j(), this.me); return a }, v: function(a) { b.wd.prototype.v.call(this, a); this.mb.v(a) }, stop: function() { this.mb.stop(); b.wd.prototype.stop.call(this) }, step: function(a) { this.mb.step(a * this.me) }, Jg: function() { return this.mb.Jg() }, reverse: function() { return b.du.create(this.mb.reverse(), this.me) }, gP: function(a) { this.mb != a && (this.mb = a) }, EE: function() { return this.mb } }); b.speed = function(a, c) { return new b.du(a, c) }; b.du.create = b.speed; b.cz = b.wd.extend({ Vn: null, Bn: !1, Fu: !1, iv: null, br: null, Om: 0, Tm: 0, Zm: 0, vm: 0, ND: null, ctor: function(a, c) { b.wd.prototype.ctor.call(this); this.Vn = null; this.Fu = this.Bn = !1; this.br = this.iv = null; this.vm = this.Zm = this.Tm = this.Om = 0; this.ND = O(0, 0, 0, 0); a && (c ? this.hp(a, c) : this.hp(a)) }, j: function() { var a = new b.cz, c = this.ND; a.hp(this.Vn, new b.xH(c.x, c.y, c.width, c.height)); return a }, Tda: function() { return this.Bn }, mia: function(a) { this.Bn = a }, hp: function(a, c) { if (!a) throw "cc.Follow.initWithAction(): followedNode must be non nil"; c = c || O(0, 0, 0, 0); this.Vn = a; this.ND = c; this.Bn = !b.zC(c); this.Fu = !1; var d = b.I.Aa(); this.br = C(d.width, d.height); this.iv = b.Ii(this.br, 0.5); this.Bn && (this.Om = -(c.x + c.width - this.br.x), this.Tm = -c.x, this.Zm = -c.y, this.vm = -(c.y + c.height - this.br.y), this.Tm < this.Om && (this.Tm = this.Om = (this.Om + this.Tm) / 2), this.Zm < this.vm && (this.Zm = this.vm = (this.Zm + this.vm) / 2), this.Zm == this.vm && this.Om == this.Tm && (this.Fu = !0)); return !0 }, step: function() { var a = this.Vn.x, c = this.Vn.y, a = this.iv.x - a, c = this.iv.y - c; this.Bn ? this.Fu || this.target.P(b.Vc(a, this.Om, this.Tm), b.Vc(c, this.vm, this.Zm)) : this.target.P(a, c) }, Jg: function() { return !this.Vn.running }, stop: function() { this.target = null; b.wd.prototype.stop.call(this) } }); b.M_ = function(a, c) { return new b.cz(a, c) }; b.cz.create = b.M_; b.u = b.Ui.extend({ kb: 0, dv: !1, vg: null, ac: 1, Cr: !1, so: !1, me: 1, Ir: !1, ctor: function(a) { this.ac = this.me = 1; this.Cr = !1; this.MAX_VALUE = 2; this.Ir = this.so = !1; b.Ui.prototype.ctor.call(this); void 0 !== a && this.d(a) }, Dba: function() { return this.kb }, d: function(a) { this.o = 0 === a ? b.Mt : a; this.kb = 0; return this.dv = !0 }, Jg: function() { return this.kb >= this.o }, ua: function(a) { a.Cr = this.Cr; a.me = this.me; a.ac = this.ac; a.vg = this.vg; a.Ir = this.Ir; a.so = this.so }, ke: function(a) { if (this.vg) { a.vg = []; for (var c = 0; c < this.vg.length; c++) a.vg.push(this.vg[c].reverse()) } }, j: function() { var a = new b.u(this.o); this.ua(a); return a }, Qa: function(a) { this.vg ? this.vg.length = 0 : this.vg = []; for (var c = 0; c < arguments.length; c++) this.vg.push(arguments[c]); return this }, kd: function(a) { var c = this.vg; if (!c || 0 === c.length) return a; for (var d = 0, e = c.length; d < e; d++) a = c[d].Qa(a); return a }, step: function(a) { this.dv ? (this.dv = !1, this.kb = 0) : this.kb += a; a = this.kb / (1.192092896E-7 < this.o ? this.o : 1.192092896E-7); a = 1 > a ? a : 1; this.update(0 < a ? a : 0); this.so && 1 < this.ac && this.Jg() && (this.Cr || this.ac--, this.v(this.target), this.step(this.kb - this.o)) }, v: function(a) { b.wd.prototype.v.call(this, a); this.kb = 0; this.dv = !0 }, reverse: function() { b.log("cc.IntervalAction: reverse not implemented."); return null }, Vm: function() { b.log("cc.ActionInterval.setAmplitudeRate(): it should be overridden in subclass.") }, Im: 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.Ir = !0; this.me *= a; return this }, Uw: function() { return this.me }, Ve: function(a) { this.me = a; return this }, repeat: function(a) { a = Math.round(a); if (isNaN(a) || 1 > a) return b.log("The repeat parameter error"), this; this.so = !0; this.ac *= a; return this }, Yx: function() { this.so = !0; this.ac = this.MAX_VALUE; this.Cr = !0; return this } }); b.WY = function(a) { return new b.u(a) }; b.u.create = b.WY; b.Ka = b.u.extend({ $h: null, zL: null, or: 0, ctor: function(a) { b.u.prototype.ctor.call(this); this.$h = []; var c = a instanceof Array ? a : arguments, d = c.length - 1; 0 <= d && null == c[d] && b.log("parameters should not be ending with null in Javascript"); if (0 <= d) { for (var e = c[0], f = 1; f < d; f++) c[f] && (e = b.Ka.Xi(e, c[f])); this.Mm(e, c[d]) } }, Mm: function(a, c) { if (!a || !c) throw "cc.Sequence.initWithTwoActions(): arguments must all be non nil"; this.d(a.o + c.o); this.$h[0] = a; this.$h[1] = c; return !0 }, j: function() { var a = new b.Ka; this.ua(a); a.Mm(this.$h[0].j(), this.$h[1].j()); return a }, v: function(a) { b.u.prototype.v.call(this, a); this.zL = this.$h[0].o / this.o; this.or = -1 }, stop: function() { -1 !== this.or && this.$h[this.or].stop(); b.wd.prototype.stop.call(this) }, update: function(a) { a = this.kd(a); var c = 0, d = this.zL, e = this.$h, f = this.or; a < d ? (a = 0 !== d ? a / d : 1, 0 === c && 1 === f && (e[1].update(0), e[1].stop())) : (c = 1, a = 1 === d ? 1 : (a - d) / (1 - d), -1 === f && (e[0].v(this.target), e[0].update(1), e[0].stop()), f || (e[0].update(1), e[0].stop())); f === c && e[c].Jg() || (f !== c && e[c].v(this.target), e[c].update(a), this.or = c) }, reverse: function() { var a = b.Ka.Xi(this.$h[1].reverse(), this.$h[0].reverse()); this.ua(a); this.ke(a); return a } }); b.oc = function(a) { var c = a instanceof Array ? a : arguments; 0 < c.length && null == c[c.length - 1] && b.log("parameters should not be ending with null in Javascript"); for (var d = c[0], e = 1; e < c.length; e++) c[e] && (d = b.Ka.Xi(d, c[e])); return d }; b.Ka.create = b.oc; b.Ka.Xi = function(a, c) { var d = new b.Ka; d.Mm(a, c); return d }; b.Jz = b.u.extend({ ac: 0, Tk: 0, YB: 0, JI: !1, mb: null, ctor: function(a, c) { b.u.prototype.ctor.call(this); void 0 !== c && this.$(a, c) }, $: function(a, c) { return this.d(a.o * c) ? (this.ac = c, this.mb = a, a instanceof b.xe && (this.JI = !0, this.ac -= 1), this.Tk = 0, !0) : !1 }, j: function() { var a = new b.Jz; this.ua(a); a.$(this.mb.j(), this.ac); return a }, v: function(a) { this.Tk = 0; this.YB = this.mb.o / this.o; b.u.prototype.v.call(this, a); this.mb.v(a) }, stop: function() { this.mb.stop(); b.wd.prototype.stop.call(this) }, update: function(a) { a = this.kd(a); var c = this.mb, d = this.o, e = this.ac, f = this.YB; if (a >= f) { for (; a > f && this.Tk < e;) c.update(1), this.Tk++, c.stop(), c.v(this.target), this.YB = f += c.o / d; 1 <= a && this.Tk < e && this.Tk++; this.JI || (this.Tk === e ? (c.update(1), c.stop()) : c.update(a - (f - c.o / d))) } else c.update(a * e % 1) }, Jg: function() { return this.Tk == this.ac }, reverse: function() { var a = b.repeat(this.mb.reverse(), this.ac); this.ua(a); this.ke(a); return a }, gP: function(a) { this.mb != a && (this.mb = a) }, EE: function() { return this.mb } }); b.repeat = function(a, c) { return new b.Jz(a, c) }; b.Jz.create = b.repeat; b.Kz = b.u.extend({ mb: null, ctor: function(a) { b.u.prototype.ctor.call(this); this.mb = null; a && this.$(a) }, $: function(a) { if (!a) throw "cc.RepeatForever.initWithAction(): action must be non null"; this.mb = a; return !0 }, j: function() { var a = new b.Kz; this.ua(a); a.$(this.mb.j()); return a }, v: function(a) { b.u.prototype.v.call(this, a); this.mb.v(a) }, step: function(a) { var c = this.mb; c.step(a); c.Jg() && (c.v(this.target), c.step(c.kb - c.o)) }, Jg: function() { return !1 }, reverse: function() { var a = b.Yx(this.mb.reverse()); this.ua(a); this.ke(a); return a }, gP: function(a) { this.mb != a && (this.mb = a) }, EE: function() { return this.mb } }); b.Yx = function(a) { return new b.Kz(a) }; b.Kz.create = b.Yx; b.af = b.u.extend({ ij: null, zj: null, ctor: function(a) { b.u.prototype.ctor.call(this); this.zj = this.ij = null; var c = a instanceof Array ? a : arguments, d = c.length - 1; 0 <= d && null == c[d] && b.log("parameters should not be ending with null in Javascript"); if (0 <= d) { for (var e = c[0], f = 1; f < d; f++) c[f] && (e = b.af.Xi(e, c[f])); this.Mm(e, c[d]) } }, Mm: function(a, c) { if (!a || !c) throw "cc.Spawn.initWithTwoActions(): arguments must all be non null"; var d = !1, e = a.o, f = c.o; this.d(Math.max(e, f)) && (this.ij = a, this.zj = c, e > f ? this.zj = b.Ka.Xi(c, b.fd(e - f)) : e < f && (this.ij = b.Ka.Xi(a, b.fd(f - e))), d = !0); return d }, j: function() { var a = new b.af; this.ua(a); a.Mm(this.ij.j(), this.zj.j()); return a }, v: function(a) { b.u.prototype.v.call(this, a); this.ij.v(a); this.zj.v(a) }, stop: function() { this.ij.stop(); this.zj.stop(); b.wd.prototype.stop.call(this) }, update: function(a) { a = this.kd(a); this.ij && this.ij.update(a); this.zj && this.zj.update(a) }, reverse: function() { var a = b.af.Xi(this.ij.reverse(), this.zj.reverse()); this.ua(a); this.ke(a); return a } }); b.V4 = function(a) { var c = a instanceof Array ? a : arguments; 0 < c.length && null == c[c.length - 1] && b.log("parameters should not be ending with null in Javascript"); for (var d = c[0], e = 1; e < c.length; e++) null != c[e] && (d = b.af.Xi(d, c[e])); return d }; b.af.create = b.V4; b.af.Xi = function(a, c) { var d = new b.af; d.Mm(a, c); return d }; b.Lz = b.u.extend({ Uu: 0, Jr: 0, dJ: 0, jB: 0, xo: 0, eJ: 0, ctor: function(a, c, d) { b.u.prototype.ctor.call(this); void 0 !== c && this.d(a, c, d) }, d: function(a, c, d) { return b.u.prototype.d.call(this, a) ? (this.Uu = c || 0, this.jB = d || this.Uu, !0) : !1 }, j: function() { var a = new b.Lz; this.ua(a); a.d(this.o, this.Uu, this.jB); return a }, v: function(a) { b.u.prototype.v.call(this, a); var c = a.rotationX % 360, d = this.Uu - c; 180 < d && (d -= 360); - 180 > d && (d += 360); this.Jr = c; this.dJ = d; this.xo = a.rotationY % 360; a = this.jB - this.xo; 180 < a && (a -= 360); - 180 > a && (a += 360); this.eJ = a }, reverse: function() { b.log("cc.RotateTo.reverse(): it should be overridden in subclass.") }, update: function(a) { a = this.kd(a); this.target && (this.target.rotationX = this.Jr + this.dJ * a, this.target.rotationY = this.xo + this.eJ * a) } }); b.E3 = function(a, c, d) { return new b.Lz(a, c, d) }; b.Lz.create = b.E3; b.Zt = b.u.extend({ $g: 0, Jr: 0, Au: 0, xo: 0, ctor: function(a, c, d) { b.u.prototype.ctor.call(this); void 0 !== c && this.d(a, c, d) }, d: function(a, c, d) { return b.u.prototype.d.call(this, a) ? (this.$g = c || 0, this.Au = d || this.$g, !0) : !1 }, j: function() { var a = new b.Zt; this.ua(a); a.d(this.o, this.$g, this.Au); return a }, v: function(a) { b.u.prototype.v.call(this, a); this.Jr = a.rotationX; this.xo = a.rotationY }, update: function(a) { a = this.kd(a); this.target && (this.target.rotationX = this.Jr + this.$g * a, this.target.rotationY = this.xo + this.Au * a) }, reverse: function() { var a = b.SO(this.o, -this.$g, -this.Au); this.ua(a); this.ke(a); return a } }); b.SO = function(a, c, d) { return new b.Zt(a, c, d) }; b.Zt.create = b.SO; b.Zg = b.u.extend({ ni: null, Fc: null, Tc: null, ctor: function(a, c, d) { b.u.prototype.ctor.call(this); this.ni = C(0, 0); this.Fc = C(0, 0); this.Tc = C(0, 0); void 0 !== c && this.d(a, c, d) }, d: function(a, c, d) { return b.u.prototype.d.call(this, a) ? (void 0 !== c.x && (d = c.y, c = c.x), this.ni.x = c, this.ni.y = d, !0) : !1 }, j: function() { var a = new b.Zg; this.ua(a); a.d(this.o, this.ni); return a }, v: function(a) { b.u.prototype.v.call(this, a); var c = a.Gd(); a = a.tf(); this.Tc.x = c; this.Tc.y = a; this.Fc.x = c; this.Fc.y = a }, update: function(a) { a = this.kd(a); if (this.target) { var c = this.ni.x * a; a *= this.ni.y; var d = this.Fc; if (b.st) { var e = this.target.tf(), f = this.Tc; d.x = d.x + this.target.Gd() - f.x; d.y = d.y + e - f.y; c += d.x; a += d.y; f.x = c; f.y = a; this.target.P(c, a) } else this.target.P(d.x + c, d.y + a) } }, reverse: function() { var a = b.moveBy(this.o, C(-this.ni.x, -this.ni.y)); this.ua(a); this.ke(a); return a } }); b.moveBy = function(a, c, d) { return new b.Zg(a, c, d) }; b.Zg.create = b.moveBy; b.Rt = b.Zg.extend({ Ff: null, ctor: function(a, c, d) { b.Zg.prototype.ctor.call(this); this.Ff = C(0, 0); void 0 !== c && this.d(a, c, d) }, d: function(a, c, d) { return b.Zg.prototype.d.call(this, a, c, d) ? (void 0 !== c.x && (d = c.y, c = c.x), this.Ff.x = c, this.Ff.y = d, !0) : !1 }, j: function() { var a = new b.Rt; this.ua(a); a.d(this.o, this.Ff); return a }, v: function(a) { b.Zg.prototype.v.call(this, a); this.ni.x = this.Ff.x - a.Gd(); this.ni.y = this.Ff.y - a.tf() } }); b.moveTo = function(a, c, d) { return new b.Rt(a, c, d) }; b.Rt.create = b.moveTo; b.yl = b.u.extend({ sh: 0, th: 0, aw: 0, bw: 0, Xu: 0, Yu: 0, ef: 0, ff: 0, ctor: function(a, c, d) { b.u.prototype.ctor.call(this); void 0 !== d && this.d(a, c, d) }, d: function(a, c, d) { var e = !1; b.u.prototype.d.call(this, a) && (this.Xu = c, this.Yu = d, e = !0); return e }, j: function() { var a = new b.yl; this.ua(a); a.d(this.o, this.Xu, this.Yu); return a }, v: function(a) { b.u.prototype.v.call(this, a); this.aw = a.skewX % 180; this.ef = this.Xu - this.aw; 180 < this.ef && (this.ef -= 360); - 180 > this.ef && (this.ef += 360); this.bw = a.skewY % 360; this.ff = this.Yu - this.bw; 180 < this.ff && (this.ff -= 360); - 180 > this.ff && (this.ff += 360) }, update: function(a) { a = this.kd(a); this.target.skewX = this.aw + this.ef * a; this.target.skewY = this.bw + this.ff * a } }); b.U4 = function(a, c, d) { return new b.yl(a, c, d) }; b.yl.create = b.U4; b.Rz = b.yl.extend({ ctor: function(a, c, d) { b.yl.prototype.ctor.call(this); void 0 !== d && this.d(a, c, d) }, d: function(a, c, d) { var e = !1; b.yl.prototype.d.call(this, a, c, d) && (this.sh = c, this.th = d, e = !0); return e }, j: function() { var a = new b.Rz; this.ua(a); a.d(this.o, this.sh, this.th); return a }, v: function(a) { b.yl.prototype.v.call(this, a); this.ef = this.sh; this.ff = this.th; this.Xu = this.aw + this.ef; this.Yu = this.bw + this.ff }, reverse: function() { var a = b.CP(this.o, -this.sh, -this.th); this.ua(a); this.ke(a); return a } }); b.CP = function(a, c, d) { return new b.Rz(a, c, d) }; b.Rz.create = b.CP; b.Wj = b.u.extend({ Fc: null, di: null, ir: 0, gj: 0, Tc: null, ctor: function(a, c, d, e, f) { b.u.prototype.ctor.call(this); this.Fc = C(0, 0); this.Tc = C(0, 0); this.di = C(0, 0); void 0 !== e && this.d(a, c, d, e, f) }, d: function(a, c, d, e, f) { return b.u.prototype.d.call(this, a) ? (void 0 === f && (f = e, e = d, d = c.y, c = c.x), this.di.x = c, this.di.y = d, this.ir = e, this.gj = f, !0) : !1 }, j: function() { var a = new b.Wj; this.ua(a); a.d(this.o, this.di, this.ir, this.gj); return a }, v: function(a) { b.u.prototype.v.call(this, a); var c = a.Gd(); a = a.tf(); this.Tc.x = c; this.Tc.y = a; this.Fc.x = c; this.Fc.y = a }, update: function(a) { a = this.kd(a); if (this.target) { var c = a * this.gj % 1, c = 4 * this.ir * c * (1 - c), c = c + this.di.y * a; a *= this.di.x; var d = this.Fc; if (b.st) { var e = this.target.tf(), f = this.Tc; d.x = d.x + this.target.Gd() - f.x; d.y = d.y + e - f.y; a += d.x; c += d.y; f.x = a; f.y = c; this.target.P(a, c) } else this.target.P(d.x + a, d.y + c) } }, reverse: function() { var a = b.VN(this.o, C(-this.di.x, -this.di.y), this.ir, this.gj); this.ua(a); this.ke(a); return a } }); b.VN = function(a, c, d, e, f) { return new b.Wj(a, c, d, e, f) }; b.Wj.create = b.VN; b.iz = b.Wj.extend({ Ff: null, ctor: function(a, c, d, e, f) { b.Wj.prototype.ctor.call(this); this.Ff = C(0, 0); void 0 !== e && this.d(a, c, d, e, f) }, d: function(a, c, d, e, f) { return b.Wj.prototype.d.call(this, a, c, d, e, f) ? (void 0 === f && (d = c.y, c = c.x), this.Ff.x = c, this.Ff.y = d, !0) : !1 }, v: function(a) { b.Wj.prototype.v.call(this, a); this.di.x = this.Ff.x - this.Fc.x; this.di.y = this.Ff.y - this.Fc.y }, j: function() { var a = new b.iz; this.ua(a); a.d(this.o, this.Ff, this.ir, this.gj); return a } }); b.P1 = function(a, c, d, e, f) { return new b.iz(a, c, d, e, f) }; b.iz.create = b.P1; b.fM = function(a, c, d, e) { return 0 * Math.pow(1 - e, 3) + 3 * e * Math.pow(1 - e, 2) * a + 3 * Math.pow(e, 2) * (1 - e) * c + Math.pow(e, 3) * d }; b.fn = b.u.extend({ Cf: null, Fc: null, Tc: null, ctor: function(a, c) { b.u.prototype.ctor.call(this); this.Cf = []; this.Fc = C(0, 0); this.Tc = C(0, 0); c && this.d(a, c) }, d: function(a, c) { return b.u.prototype.d.call(this, a) ? (this.Cf = c, !0) : !1 }, j: function() { var a = new b.fn; this.ua(a); for (var c = [], d = 0; d < this.Cf.length; d++) { var e = this.Cf[d]; c.push(C(e.x, e.y)) } a.d(this.o, c); return a }, v: function(a) { b.u.prototype.v.call(this, a); var c = a.Gd(); a = a.tf(); this.Tc.x = c; this.Tc.y = a; this.Fc.x = c; this.Fc.y = a }, update: function(a) { a = this.kd(a); if (this.target) { var c = this.Cf, d = b.fM(c[0].x, c[1].x, c[2].x, a); a = b.fM(c[0].y, c[1].y, c[2].y, a); c = this.Fc; if (b.st) { var e = this.target.tf(), f = this.Tc; c.x = c.x + this.target.Gd() - f.x; c.y = c.y + e - f.y; d += c.x; a += c.y; f.x = d; f.y = a; this.target.P(d, a) } else this.target.P(c.x + d, c.y + a) } }, reverse: function() { var a = this.Cf, a = b.gM(this.o, [b.Hi(a[1], b.AF(a[2])), b.Hi(a[0], b.AF(a[2])), b.AF(a[2])]); this.ua(a); this.ke(a); return a } }); b.gM = function(a, c) { return new b.fn(a, c) }; b.fn.create = b.gM; b.Jy = b.fn.extend({ nw: null, ctor: function(a, c) { b.fn.prototype.ctor.call(this); this.nw = []; c && this.d(a, c) }, d: function(a, c) { return b.u.prototype.d.call(this, a) ? (this.nw = c, !0) : !1 }, j: function() { var a = new b.Jy; this.ua(a); a.d(this.o, this.nw); return a }, v: function(a) { b.fn.prototype.v.call(this, a); a = this.Fc; var c = this.nw, d = this.Cf; d[0] = b.Jd(c[0], a); d[1] = b.Jd(c[1], a); d[2] = b.Jd(c[2], a) } }); b.yZ = function(a, c) { return new b.Jy(a, c) }; b.Jy.create = b.yZ; b.Pd = b.u.extend({ ka: 1, La: 1, Mr: 1, Nr: 1, Rn: 0, Sn: 0, ef: 0, ff: 0, ctor: function(a, c, d) { b.u.prototype.ctor.call(this); void 0 !== c && this.d(a, c, d) }, d: function(a, c, d) { return b.u.prototype.d.call(this, a) ? (this.Rn = c, this.Sn = null != d ? d : c, !0) : !1 }, j: function() { var a = new b.Pd; this.ua(a); a.d(this.o, this.Rn, this.Sn); return a }, v: function(a) { b.u.prototype.v.call(this, a); this.Mr = a.scaleX; this.Nr = a.scaleY; this.ef = this.Rn - this.Mr; this.ff = this.Sn - this.Nr }, update: function(a) { a = this.kd(a); this.target && (this.target.scaleX = this.Mr + this.ef * a, this.target.scaleY = this.Nr + this.ff * a) } }); b.ue = function(a, c, d) { return new b.Pd(a, c, d) }; b.Pd.create = b.ue; b.cu = b.Pd.extend({ v: function(a) { b.Pd.prototype.v.call(this, a); this.ef = this.Mr * this.Rn - this.Mr; this.ff = this.Nr * this.Sn - this.Nr }, reverse: function() { var a = b.TO(this.o, 1 / this.Rn, 1 / this.Sn); this.ua(a); this.ke(a); return a }, j: function() { var a = new b.cu; this.ua(a); a.d(this.o, this.Rn, this.Sn); return a } }); b.TO = function(a, c, d) { return new b.cu(a, c, d) }; b.cu.create = b.TO; b.Ky = b.u.extend({ ac: 0, KK: !1, ctor: function(a, c) { b.u.prototype.ctor.call(this); void 0 !== c && this.d(a, c) }, d: function(a, c) { return b.u.prototype.d.call(this, a) ? (this.ac = c, !0) : !1 }, j: function() { var a = new b.Ky; this.ua(a); a.d(this.o, this.ac); return a }, update: function(a) { a = this.kd(a); if (this.target && !this.Jg()) { var c = 1 / this.ac; this.target.visible = a % c > c / 2 } }, v: function(a) { b.u.prototype.v.call(this, a); this.KK = a.visible }, stop: function() { this.target.visible = this.KK; b.u.prototype.stop.call(this) }, reverse: function() { var a = b.blink(this.o, this.ac); this.ua(a); this.ke(a); return a } }); b.blink = function(a, c) { return new b.Ky(a, c) }; b.Ky.create = b.blink; b.Ti = b.u.extend({ Go: 0, gv: 0, ctor: function(a, c) { b.u.prototype.ctor.call(this); void 0 !== c && this.d(a, c) }, d: function(a, c) { return b.u.prototype.d.call(this, a) ? (this.Go = c, !0) : !1 }, j: function() { var a = new b.Ti; this.ua(a); a.d(this.o, this.Go); return a }, update: function(a) { a = this.kd(a); var c = void 0 !== this.gv ? this.gv : 255; this.target.opacity = c + (this.Go - c) * a }, v: function(a) { b.u.prototype.v.call(this, a); this.gv = a.opacity } }); b.F_ = function(a, c) { return new b.Ti(a, c) }; b.Ti.create = b.F_; b.fq = b.Ti.extend({ HC: null, ctor: function(a) { b.Ti.prototype.ctor.call(this); a && this.d(a, 255) }, reverse: function() { var a = new b.gq; a.d(this.o, 0); this.ua(a); this.ke(a); return a }, j: function() { var a = new b.fq; this.ua(a); a.d(this.o, this.Go); return a }, v: function(a) { this.HC && (this.Go = this.HC.gv); b.Ti.prototype.v.call(this, a) } }); b.z_ = function(a) { return new b.fq(a) }; b.fq.create = b.z_; b.gq = b.Ti.extend({ ctor: function(a) { b.Ti.prototype.ctor.call(this); a && this.d(a, 0) }, reverse: function() { var a = new b.fq; a.HC = this; a.d(this.o, 255); this.ua(a); this.ke(a); return a }, j: function() { var a = new b.gq; this.ua(a); a.d(this.o, this.Go); return a } }); b.A_ = function(a) { return new b.gq(a) }; b.gq.create = b.A_; b.iA = b.u.extend({ pd: null, Rc: null, ctor: function(a, c, d, e) { b.u.prototype.ctor.call(this); this.pd = b.color(0, 0, 0); this.Rc = b.color(0, 0, 0); void 0 !== e && this.d(a, c, d, e) }, d: function(a, c, d, e) { return b.u.prototype.d.call(this, a) ? (this.pd = b.color(c, d, e), !0) : !1 }, j: function() { var a = new b.iA; this.ua(a); var c = this.pd; a.d(this.o, c.r, c.g, c.b); return a }, v: function(a) { b.u.prototype.v.call(this, a); this.Rc = this.target.color }, update: function(a) { a = this.kd(a); var c = this.Rc, d = this.pd; c && (this.target.color = b.color(c.r + (d.r - c.r) * a, c.g + (d.g - c.g) * a, c.b + (d.b - c.b) * a)) } }); b.z5 = function(a, c, d, e) { return new b.iA(a, c, d, e) }; b.iA.create = b.z5; b.hA = b.u.extend({ Su: 0, Ru: 0, Qu: 0, XJ: 0, WJ: 0, VJ: 0, ctor: function(a, c, d, e) { b.u.prototype.ctor.call(this); void 0 !== e && this.d(a, c, d, e) }, d: function(a, c, d, e) { return b.u.prototype.d.call(this, a) ? (this.Su = c, this.Ru = d, this.Qu = e, !0) : !1 }, j: function() { var a = new b.hA; this.ua(a); a.d(this.o, this.Su, this.Ru, this.Qu); return a }, v: function(a) { b.u.prototype.v.call(this, a); a = a.color; this.XJ = a.r; this.WJ = a.g; this.VJ = a.b }, update: function(a) { a = this.kd(a); this.target.color = b.color(this.XJ + this.Su * a, this.WJ + this.Ru * a, this.VJ + this.Qu * a) }, reverse: function() { var a = b.LP(this.o, -this.Su, -this.Ru, -this.Qu); this.ua(a); this.ke(a); return a } }); b.LP = function(a, c, d, e) { return new b.hA(a, c, d, e) }; b.hA.create = b.LP; b.xd = b.u.extend({ update: function() {}, reverse: function() { var a = b.fd(this.o); this.ua(a); this.ke(a); return a }, j: function() { var a = new b.xd; this.ua(a); a.d(this.o); return a } }); b.fd = function(a) { return new b.xd(a) }; b.xd.create = b.fd; b.rq = b.u.extend({ kj: null, ctor: function(a) { b.u.prototype.ctor.call(this); this.kj = null; a && this.$(a) }, $: function(a) { if (!a) throw "cc.ReverseTime.initWithAction(): action must be non null"; if (a == this.kj) throw "cc.ReverseTime.initWithAction(): the action was already passed in."; return b.u.prototype.d.call(this, a.o) ? (this.kj = a, !0) : !1 }, j: function() { var a = new b.rq; this.ua(a); a.$(this.kj.j()); return a }, v: function(a) { b.u.prototype.v.call(this, a); this.kj.v(a) }, update: function(a) { a = this.kd(a); this.kj && this.kj.update(1 - a) }, reverse: function() { return this.kj.j() }, stop: function() { this.kj.stop(); b.wd.prototype.stop.call(this) } }); b.RO = function(a) { return new b.rq(a) }; b.rq.create = b.RO; b.Dy = b.u.extend({ mk: null, tr: 0, cC: null, av: 0, dD: null, ctor: function(a) { b.u.prototype.ctor.call(this); this.dD = []; a && this.EN(a) }, SM: function() { return this.mk }, L3: function(a) { this.mk = a }, EN: function(a) { if (!a) throw "cc.Animate.initWithAnimation(): animation must be non-NULL"; var c = a.ap(); if (this.d(c * a.hj)) { this.tr = 0; this.L3(a); this.cC = null; this.av = 0; var d = this.dD, e = d.length = 0, f = c / a.wi; a = a.Vd; b.Lo(a, b.jg); for (var g = 0; g < a.length; g++) { var h = e * f / c, e = e + a[g].Ud; d.push(h) } return !0 } return !1 }, j: function() { var a = new b.Dy; this.ua(a); a.EN(this.mk.j()); return a }, v: function(a) { b.u.prototype.v.call(this, a); this.mk.bm && (this.cC = a.WZ()); this.av = this.tr = 0 }, update: function(a) { a = this.kd(a); 1 > a && (a *= this.mk.hj, (0 | a) > this.av && (this.tr = 0, this.av++), a %= 1); for (var c = this.mk.Vd, d = c.length, e = this.dD, f = this.tr; f < d; f++) if (e[f] <= a) this.target.nl(c[f].Bj()), this.tr = f + 1; else break }, reverse: function() { var a = this.mk, c = a.Vd, d = []; b.Lo(c, b.jg); if (0 < c.length) for (var e = c.length - 1; 0 <= e; e--) { var f = c[e]; if (!f) break; d.push(f.j()) } c = b.Pi.create(d, a.Ud, a.hj); c.ny(a.bm); a = b.ZL(c); this.ua(a); this.ke(a); return a }, stop: function() { this.mk.bm && this.target && this.target.nl(this.cC); b.wd.prototype.stop.call(this) } }); b.ZL = function(a) { return new b.Dy(a) }; b.Dy.create = b.ZL; b.eA = b.u.extend({ Eq: null, Wn: null, ctor: function(a, c) { b.u.prototype.ctor.call(this); c && this.hp(a, c) }, hp: function(a, c) { return this.d(c.o) ? (this.Wn = a, this.Eq = c, !0) : !1 }, j: function() { var a = new b.eA; this.ua(a); a.hp(this.Wn, this.Eq.j()); return a }, v: function(a) { b.u.prototype.v.call(this, a); this.Eq.v(this.Wn) }, stop: function() { this.Eq.stop() }, update: function(a) { a = this.kd(a); this.Eq.update(a) }, Pba: function() { return this.Wn }, Jia: function(a) { this.Wn != a && (this.Wn = a) } }); b.p5 = function(a, c) { return new b.eA(a, c) }; b.eA.create = b.p5; b.xe = b.Ui.extend({ Jg: function() { return !0 }, step: function() { this.update(1) }, update: function() {}, reverse: function() { return this.j() }, j: function() { return new b.xe } }); b.pg = b.xe.extend({ update: function() { this.target.visible = !0 }, reverse: function() { return b.Sh.create() }, j: function() { return new b.pg } }); b.show = function() { return new b.pg }; b.pg.create = b.show; b.Sh = b.xe.extend({ update: function() { this.target.visible = !1 }, reverse: function() { return b.pg.create() }, j: function() { return new b.Sh } }); b.l1 = function() { return new b.Sh }; b.Sh.create = b.l1; b.mu = b.xe.extend({ update: function() { this.target.visible = !this.target.visible }, reverse: function() { return new b.mu }, j: function() { return new b.mu } }); b.A5 = function() { return new b.mu }; b.mu.create = b.A5; b.Yt = b.xe.extend({ ov: !0, ctor: function(a) { b.Ui.prototype.ctor.call(this); void 0 !== a && this.da(a) }, update: function() { this.target.IF(this.ov) }, da: function(a) { this.ov = a; return !0 }, reverse: function() { return new b.Yt(this.ov) }, j: function() { return new b.Yt(this.ov) } }); b.t3 = function(a) { return new b.Yt(a) }; b.Yt.create = b.t3; b.Ot = b.xe.extend({ Lb: !1, ctor: function(a) { b.Ui.prototype.ctor.call(this); this.Lb = !1; void 0 !== a && this.GN(a) }, GN: function(a) { this.Lb = a; return !0 }, update: function() { this.target.flippedX = this.Lb }, reverse: function() { return b.Ot.create(!this.Lb) }, j: function() { var a = new b.Ot; a.GN(this.Lb); return a } }); b.I_ = function(a) { return new b.Ot(a) }; b.Ot.create = b.I_; b.Pt = b.xe.extend({ Mb: !1, ctor: function(a) { b.Ui.prototype.ctor.call(this); this.Mb = !1; void 0 !== a && this.HN(a) }, HN: function(a) { this.Mb = a; return !0 }, update: function() { this.target.flippedY = this.Mb }, reverse: function() { return b.Pt.create(!this.Mb) }, j: function() { var a = new b.Pt; a.HN(this.Mb); return a } }); b.K_ = function(a) { return new b.Pt(a) }; b.Pt.create = b.K_; b.uz = b.xe.extend({ yh: 0, Oe: 0, ctor: function(a, c) { b.Ui.prototype.ctor.call(this); this.Oe = this.yh = 0; void 0 !== a && (void 0 !== a.x && (c = a.y, a = a.x), this.MN(a, c)) }, MN: function(a, c) { this.yh = a; this.Oe = c; return !0 }, update: function() { this.target.P(this.yh, this.Oe) }, j: function() { var a = new b.uz; a.MN(this.yh, this.Oe); return a } }); b.U2 = function(a, c) { return new b.uz(a, c) }; b.uz.create = b.U2; b.Tb = b.xe.extend({ pj: null, Hu: null, cr: null, Nn: null, ctor: function(a, c, d) { b.Ui.prototype.ctor.call(this); void 0 !== a && (void 0 === c ? this.ix(a) : this.ix(a, c, d)) }, ix: function(a, c, d) { c ? (this.Nn = d, this.Hu = a, this.pj = c) : a && (this.cr = a); return !0 }, execute: function() { null != this.Hu ? this.Hu.call(this.pj, this.target, this.Nn) : this.cr && this.cr.call(null, this.target) }, update: function() { this.execute() }, fda: function() { return this.pj }, Ija: function(a) { a != this.pj && (this.pj && (this.pj = null), this.pj = a) }, j: function() { var a = new b.Tb; this.pj ? a.ix(this.Hu, this.pj, this.Nn) : this.cr && a.ix(this.cr); return a } }); b.Xk = function(a, c, d) { return new b.Tb(a, c, d) }; b.Tb.create = b.Xk; b.By = b.u.extend({ WA: 0, XA: 0, YA: 0, OJ: 0, PJ: 0, QJ: 0, IL: 0, JL: 0, KL: 0, ctor: function() { b.u.prototype.ctor.call(this); this.KL = this.JL = this.IL = this.QJ = this.PJ = this.OJ = this.YA = this.XA = this.WA = 0 }, v: function(a) { b.u.prototype.v.call(this, a); a = a.Jm(); var c = a.VM(); this.WA = c.x; this.XA = c.y; this.YA = c.z; c = a.ZM(); this.OJ = c.x; this.PJ = c.y; this.QJ = c.z; a = a.Z0(); this.IL = a.x; this.JL = a.y; this.KL = a.z }, j: function() { return new b.By }, reverse: function() { return b.RO(this) } }); b.ye = b.By.extend({ Je: 0, eB: 0, Hq: 0, bJ: 0, $g: 0, aJ: 0, WK: 0, UK: 0, VK: 0, TK: 0, ctor: function(a, c, d, e, f, g, h) { b.By.prototype.ctor.call(this); void 0 !== h && this.d(a, c, d, e, f, g, h) }, d: function(a, c, d, e, f, g, h) { return b.u.prototype.d.call(this, a) ? (this.Je = c, this.eB = d, this.Hq = e, this.bJ = f, this.$g = g, this.aJ = h, this.UK = b.Sf(f), this.TK = b.Sf(h), !0) : !1 }, W4: function() { var a = this.target.Jm(), c = a.ZM(), d = a.VM(), a = c.x - d.x, e = c.y - d.y, c = c.z - d.z, d = Math.sqrt(Math.pow(a, 2) + Math.pow(e, 2) + Math.pow(c, 2)), f = Math.sqrt(Math.pow(a, 2) + Math.pow(e, 2)); 0 === f && (f = b.Mt); 0 === d && (d = b.Mt); return { D2: d / b.Lp.xs(), X5: Math.acos(c / d), azimuth: 0 > a ? Math.PI - Math.asin(e / f) : Math.asin(e / f) } }, v: function(a) { b.u.prototype.v.call(this, a); a = this.W4(); isNaN(this.Je) && (this.Je = a.D2); isNaN(this.Hq) && (this.Hq = b.FF(a.X5)); isNaN(this.$g) && (this.$g = b.FF(a.azimuth)); this.WK = b.Sf(this.Hq); this.VK = b.Sf(this.$g) }, j: function() { var a = new b.ye; a.d(this.o, this.Je, this.eB, this.Hq, this.bJ, this.$g, this.aJ); return a }, update: function(a) { a = this.kd(a); var c = (this.Je + this.eB * a) * b.Lp.xs(), d = this.WK + this.UK * a, e = this.VK + this.TK * a; a = Math.sin(d) * Math.cos(e) * c + this.WA; e = Math.sin(d) * Math.sin(e) * c + this.XA; c = Math.cos(d) * c + this.YA; this.target.Jm().eP(a, e, c) } }); b.G2 = function(a, c, d, e, f, g, h) { return new b.ye(a, c, d, e, f, g, h) }; b.ye.create = b.G2; b.Na = b.u.extend({ q: null, ctor: function(a) { b.u.prototype.ctor.call(this); a && this.$(a) }, $: function(a) { if (!a) throw "cc.ActionEase.initWithAction(): action must be non nil"; return this.d(a.ap()) ? (this.q = a, !0) : !1 }, j: function() { var a = new b.Na; a.$(this.q.j()); return a }, v: function(a) { b.u.prototype.v.call(this, a); this.q.v(this.target) }, stop: function() { this.q.stop(); b.u.prototype.stop.call(this) }, update: function(a) { this.q.update(a) }, reverse: function() { return b.Na.create(this.q.reverse()) }, EE: function() { return this.q } }); b.VY = function(a) { return new b.Na(a) }; b.Na.create = b.VY; b.ul = b.Na.extend({ Zb: 0, ctor: function(a, c) { b.Na.prototype.ctor.call(this); void 0 !== c && this.$(a, c) }, tja: function(a) { this.Zb = a }, Kca: function() { return this.Zb }, $: function(a, c) { return b.Na.prototype.$.call(this, a) ? (this.Zb = c, !0) : !1 }, j: function() { var a = new b.ul; a.$(this.q.j(), this.Zb); return a }, reverse: function() { return b.ul.create(this.q.reverse(), 1 / this.Zb) } }); b.n_ = function(a, c) { return new b.ul(a, c) }; b.ul.create = b.n_; b.Ht = b.ul.extend({ update: function(a) { this.q.update(Math.pow(a, this.Zb)) }, reverse: function() { return b.Ht.create(this.q.reverse(), 1 / this.Zb) }, j: function() { var a = new b.Ht; a.$(this.q.j(), this.Zb); return a } }); b.Ht.create = function(a, c) { return new b.Ht(a, c) }; b.k_ = function(a) { return { Zb: a, Qa: function(a) { return Math.pow(a, this.Zb) }, reverse: function() { return b.k_(1 / this.Zb) } } }; b.tl = b.ul.extend({ update: function(a) { this.q.update(Math.pow(a, 1 / this.Zb)) }, reverse: function() { return b.tl.create(this.q.reverse(), 1 / this.Zb) }, j: function() { var a = new b.tl; a.$(this.q.j(), this.Zb); return a } }); b.tl.create = function(a, c) { return new b.tl(a, c) }; b.m_ = function(a) { return { Zb: a, Qa: function(a) { return Math.pow(a, 1 / this.Zb) }, reverse: function() { return b.m_(1 / this.Zb) } } }; b.Wp = b.ul.extend({ update: function(a) { a *= 2; 1 > a ? this.q.update(0.5 * Math.pow(a, this.Zb)) : this.q.update(1 - 0.5 * Math.pow(2 - a, this.Zb)) }, j: function() { var a = new b.Wp; a.$(this.q.j(), this.Zb); return a }, reverse: function() { return b.Wp.create(this.q.reverse(), this.Zb) } }); b.Wp.create = function(a, c) { return new b.Wp(a, c) }; b.l_ = function(a) { return { Zb: a, Qa: function(a) { a *= 2; return 1 > a ? 0.5 * Math.pow(a, this.Zb) : 1 - 0.5 * Math.pow(2 - a, this.Zb) }, reverse: function() { return b.l_(this.Zb) } } }; b.Et = b.Na.extend({ update: function(a) { this.q.update(0 === a ? 0 : Math.pow(2, 10 * (a - 1))) }, reverse: function() { return b.Gt.create(this.q.reverse()) }, j: function() { var a = new b.Et; a.$(this.q.j()); return a } }); b.Et.create = function(a) { return new b.Et(a) }; b.vJ = { Qa: function(a) { return 0 === a ? 0 : Math.pow(2, 10 * (a - 1)) }, reverse: function() { return b.xJ } }; b.oaa = function() { return b.vJ }; b.Gt = b.Na.extend({ update: function(a) { this.q.update(1 == a ? 1 : -Math.pow(2, -10 * a) + 1) }, reverse: function() { return b.Et.create(this.q.reverse()) }, j: function() { var a = new b.Gt; a.$(this.q.j()); return a } }); b.Gt.create = function(a) { return new b.Gt(a) }; b.xJ = { Qa: function(a) { return 1 == a ? 1 : -Math.pow(2, -10 * a) + 1 }, reverse: function() { return b.vJ } }; b.qaa = function() { return b.xJ }; b.Ft = b.Na.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.q.update(a) }, reverse: function() { return b.Ft.create(this.q.reverse()) }, j: function() { var a = new b.Ft; a.$(this.q.j()); return a } }); b.Ft.create = function(a) { return new b.Ft(a) }; b.wJ = { Qa: 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.wJ } }; b.paa = function() { return b.wJ }; b.It = b.Na.extend({ update: function(a) { a = 0 === a || 1 === a ? a : -1 * Math.cos(a * Math.PI / 2) + 1; this.q.update(a) }, reverse: function() { return b.Kt.create(this.q.reverse()) }, j: function() { var a = new b.It; a.$(this.q.j()); return a } }); b.It.create = function(a) { return new b.It(a) }; b.HJ = { Qa: function(a) { return 0 === a || 1 === a ? a : -1 * Math.cos(a * Math.PI / 2) + 1 }, reverse: function() { return b.JJ } }; b.Aaa = function() { return b.HJ }; b.Kt = b.Na.extend({ update: function(a) { a = 0 === a || 1 === a ? a : Math.sin(a * Math.PI / 2); this.q.update(a) }, reverse: function() { return b.It.create(this.q.reverse()) }, j: function() { var a = new b.Kt; a.$(this.q.j()); return a } }); b.Kt.create = function(a) { return new b.Kt(a) }; b.JJ = { Qa: function(a) { return 0 === a || 1 == a ? a : Math.sin(a * Math.PI / 2) }, reverse: function() { return b.HJ } }; b.Caa = function() { return b.JJ }; b.Jt = b.Na.extend({ update: function(a) { a = 0 === a || 1 === a ? a : -0.5 * (Math.cos(Math.PI * a) - 1); this.q.update(a) }, j: function() { var a = new b.Jt; a.$(this.q.j()); return a }, reverse: function() { return b.Jt.create(this.q.reverse()) } }); b.Jt.create = function(a) { return new b.Jt(a) }; b.IJ = { Qa: function(a) { return 0 === a || 1 === a ? a : -0.5 * (Math.cos(Math.PI * a) - 1) }, reverse: function() { return b.IJ } }; b.Baa = function() { return b.IJ }; b.gn = b.Na.extend({ Cb: 0.3, ctor: function(a, c) { b.Na.prototype.ctor.call(this); a && this.$(a, c) }, Cca: function() { return this.Cb }, pja: function(a) { this.Cb = a }, $: function(a, c) { b.Na.prototype.$.call(this, a); this.Cb = null == c ? 0.3 : c; return !0 }, reverse: function() { b.log("cc.EaseElastic.reverse(): it should be overridden in subclass."); return null }, j: function() { var a = new b.gn; a.$(this.q.j(), this.Cb); return a } }); b.gn.create = function(a, c) { return new b.gn(a, c) }; b.Bt = b.gn.extend({ update: function(a) { var c = 0; 0 === a || 1 === a ? c = a : (c = this.Cb / 4, a -= 1, c = -Math.pow(2, 10 * a) * Math.sin((a - c) * Math.PI * 2 / this.Cb)); this.q.update(c) }, reverse: function() { return b.Dt.create(this.q.reverse(), this.Cb) }, j: function() { var a = new b.Bt; a.$(this.q.j(), this.Cb); return a } }); b.Bt.create = function(a, c) { return new b.Bt(a, c) }; b.tJ = { Qa: 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.uJ } }; b.h_ = function(a) { return a && 0.3 !== a ? { Cb: a, Qa: function(a) { if (0 === a || 1 === a) return a; a -= 1; return -Math.pow(2, 10 * a) * Math.sin((a - this.Cb / 4) * Math.PI * 2 / this.Cb) }, reverse: function() { return b.j_(this.Cb) } } : b.tJ }; b.Dt = b.gn.extend({ update: function(a) { var c = 0, c = 0 === a || 1 == a ? a : Math.pow(2, -10 * a) * Math.sin((a - this.Cb / 4) * Math.PI * 2 / this.Cb) + 1; this.q.update(c) }, reverse: function() { return b.Bt.create(this.q.reverse(), this.Cb) }, j: function() { var a = new b.Dt; a.$(this.q.j(), this.Cb); return a } }); b.Dt.create = function(a, c) { return new b.Dt(a, c) }; b.uJ = { Qa: 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.tJ } }; b.j_ = function(a) { return a && 0.3 !== a ? { Cb: a, Qa: function(a) { return 0 === a || 1 === a ? a : Math.pow(2, -10 * a) * Math.sin((a - this.Cb / 4) * Math.PI * 2 / this.Cb) + 1 }, reverse: function() { return b.h_(this.Cb) } } : b.uJ }; b.Ct = b.gn.extend({ update: function(a) { var c = 0, c = this.Cb; if (0 === a || 1 == a) c = a; else { c || (c = this.Cb = 0.3 * 1.5); var d = c / 4; a = 2 * a - 1; c = 0 > a ? -0.5 * Math.pow(2, 10 * a) * Math.sin((a - d) * Math.PI * 2 / c) : Math.pow(2, -10 * a) * Math.sin((a - d) * Math.PI * 2 / c) * 0.5 + 1 } this.q.update(c) }, reverse: function() { return b.Ct.create(this.q.reverse(), this.Cb) }, j: function() { var a = new b.Ct; a.$(this.q.j(), this.Cb); return a } }); b.Ct.create = function(a, c) { return new b.Ct(a, c) }; b.i_ = function(a) { return { Cb: a || 0.3, Qa: function(a) { var d = 0, d = this.Cb; if (0 === a || 1 === a) d = a; else { d || (d = this.Cb = 0.3 * 1.5); var e = d / 4; a = 2 * a - 1; d = 0 > a ? -0.5 * Math.pow(2, 10 * a) * Math.sin((a - e) * Math.PI * 2 / d) : Math.pow(2, -10 * a) * Math.sin((a - e) * Math.PI * 2 / d) * 0.5 + 1 } return d }, reverse: function() { return b.i_(this.Cb) } } }; b.sl = b.Na.extend({ Bw: 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 }, j: function() { var a = new b.sl; a.$(this.q.j()); return a }, reverse: function() { return b.sl.create(this.q.reverse()) } }); b.sl.create = function(a) { return new b.sl(a) }; b.yt = b.sl.extend({ update: function(a) { this.q.update(1 - this.Bw(1 - a)) }, reverse: function() { return b.At.create(this.q.reverse()) }, j: function() { var a = new b.yt; a.$(this.q.j()); return a } }); b.yt.create = function(a) { return new b.yt(a) }; b.Eu = 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.kJ = { Qa: function(a) { return 1 - b.Eu(1 - a) }, reverse: function() { return b.mJ } }; b.faa = function() { return b.kJ }; b.At = b.sl.extend({ update: function(a) { this.q.update(this.Bw(a)) }, reverse: function() { return b.yt.create(this.q.reverse()) }, j: function() { var a = new b.At; a.$(this.q.j()); return a } }); b.At.create = function(a) { return new b.At(a) }; b.mJ = { Qa: function(a) { return b.Eu(a) }, reverse: function() { return b.kJ } }; b.haa = function() { return b.mJ }; b.zt = b.sl.extend({ update: function(a) { var c = 0, c = 0.5 > a ? 0.5 * (1 - this.Bw(1 - 2 * a)) : 0.5 * this.Bw(2 * a - 1) + 0.5; this.q.update(c) }, j: function() { var a = new b.zt; a.$(this.q.j()); return a }, reverse: function() { return b.zt.create(this.q.reverse()) } }); b.zt.create = function(a) { return new b.zt(a) }; b.lJ = { Qa: function(a) { return a = 0.5 > a ? 0.5 * (1 - b.Eu(1 - 2 * a)) : 0.5 * b.Eu(2 * a - 1) + 0.5 }, reverse: function() { return b.lJ } }; b.gaa = function() { return b.lJ }; b.vt = b.Na.extend({ update: function(a) { this.q.update(0 === a || 1 == a ? a : a * a * (2.70158 * a - 1.70158)) }, reverse: function() { return b.xt.create(this.q.reverse()) }, j: function() { var a = new b.vt; a.$(this.q.j()); return a } }); b.vt.create = function(a) { return new b.vt(a) }; b.hJ = { Qa: function(a) { return 0 === a || 1 === a ? a : a * a * (2.70158 * a - 1.70158) }, reverse: function() { return b.jJ } }; b.caa = function() { return b.hJ }; b.xt = b.Na.extend({ update: function(a) { a -= 1; this.q.update(a * a * (2.70158 * a + 1.70158) + 1) }, reverse: function() { return b.vt.create(this.q.reverse()) }, j: function() { var a = new b.xt; a.$(this.q.j()); return a } }); b.xt.create = function(a) { return new b.xt(a) }; b.jJ = { Qa: function(a) { a -= 1; return a * a * (2.70158 * a + 1.70158) + 1 }, reverse: function() { return b.hJ } }; b.eaa = function() { return b.jJ }; b.wt = b.Na.extend({ update: function(a) { a *= 2; 1 > a ? this.q.update(a * a * (3.5949095 * a - 2.5949095) / 2) : (a -= 2, this.q.update(a * a * (3.5949095 * a + 2.5949095) / 2 + 1)) }, j: function() { var a = new b.wt; a.$(this.q.j()); return a }, reverse: function() { return b.wt.create(this.q.reverse()) } }); b.wt.create = function(a) { return new b.wt(a) }; b.iJ = { Qa: 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.iJ } }; b.daa = function() { return b.iJ }; b.Pp = b.Na.extend({ Dv: null, Ev: null, Fv: null, Gv: null, ctor: function(a) { b.Na.prototype.ctor.call(this, a) }, na: function(a, c, d, e, f) { return Math.pow(1 - f, 3) * a + 3 * f * Math.pow(1 - f, 2) * c + 3 * Math.pow(f, 2) * (1 - f) * d + Math.pow(f, 3) * e }, update: function(a) { this.q.update(this.na(this.Dv, this.Ev, this.Fv, this.Gv, a)) }, j: function() { var a = new b.Pp; a.$(this.q.j()); a.YO(this.Dv, this.Ev, this.Fv, this.Gv); return a }, reverse: function() { var a = b.Pp.create(this.q.reverse()); a.YO(this.Gv, this.Fv, this.Ev, this.Dv); return a }, YO: function(a, c, d, e) { this.Dv = a || 0; this.Ev = c || 0; this.Fv = d || 0; this.Gv = e || 0 } }); b.Pp.create = function(a) { return new b.Pp(a) }; b.g_ = function(a, c, d, e) { return { Qa: function(f) { return b.Pp.prototype.na(a, c, d, e, f) }, reverse: function() { return b.g_(e, d, c, a) } } }; b.Xp = b.Na.extend({ na: function(a) { return Math.pow(a, 2) }, update: function(a) { this.q.update(this.na(a)) }, j: function() { var a = new b.Xp; a.$(this.q.j()); return a }, reverse: function() { return b.Xp.create(this.q.reverse()) } }); b.Xp.create = function(a) { return new b.Xp(a) }; b.yJ = { Qa: b.Xp.prototype.na, reverse: function() { return b.yJ } }; b.raa = function() { return b.yJ }; b.Zp = b.Na.extend({ na: function(a) { return -a * (a - 2) }, update: function(a) { this.q.update(this.na(a)) }, j: function() { var a = new b.Zp; a.$(); return a }, reverse: function() { return b.Zp.create(this.q.reverse()) } }); b.Zp.create = function(a) { return new b.Zp(a) }; b.AJ = { Qa: b.Zp.prototype.na, reverse: function() { return b.AJ } }; b.taa = function() { return b.AJ }; b.Yp = b.Na.extend({ na: function(a) { var c = a; a *= 2; 1 > a ? c = a * a * 0.5 : (--a, c = -0.5 * (a * (a - 2) - 1)); return c }, update: function(a) { this.q.update(this.na(a)) }, j: function() { var a = new b.Yp; a.$(this.q.j()); return a }, reverse: function() { return b.Yp.create(this.q.reverse()) } }); b.Yp.create = function(a) { return new b.Yp(a) }; b.zJ = { Qa: b.Yp.prototype.na, reverse: function() { return b.zJ } }; b.saa = function() { return b.zJ }; b.$p = b.Na.extend({ na: function(a) { return a * a * a * a }, update: function(a) { this.q.update(this.na(a)) }, j: function() { var a = new b.$p; a.$(this.q.j()); return a }, reverse: function() { return b.$p.create(this.q.reverse()) } }); b.$p.create = function(a) { return new b.$p(a) }; b.BJ = { Qa: b.$p.prototype.na, reverse: function() { return b.BJ } }; b.uaa = function() { return b.BJ }; b.bq = b.Na.extend({ na: function(a) { a -= 1; return -(a * a * a * a - 1) }, update: function(a) { this.q.update(this.na(a)) }, j: function() { var a = new b.bq; a.$(this.q.j()); return a }, reverse: function() { return b.bq.create(this.q.reverse()) } }); b.bq.create = function(a) { return new b.bq(a) }; b.DJ = { Qa: b.bq.prototype.na, reverse: function() { return b.DJ } }; b.waa = function() { return b.DJ }; b.aq = b.Na.extend({ na: 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.q.update(this.na(a)) }, j: function() { var a = new b.aq; a.$(this.q.j()); return a }, reverse: function() { return b.aq.create(this.q.reverse()) } }); b.aq.create = function(a) { return new b.aq(a) }; b.CJ = { Qa: b.aq.prototype.na, reverse: function() { return b.CJ } }; b.vaa = function() { return b.CJ }; b.cq = b.Na.extend({ na: function(a) { return a * a * a * a * a }, update: function(a) { this.q.update(this.na(a)) }, j: function() { var a = new b.cq; a.$(this.q.j()); return a }, reverse: function() { return b.cq.create(this.q.reverse()) } }); b.cq.create = function(a) { return new b.cq(a) }; b.EJ = { Qa: b.cq.prototype.na, reverse: function() { return b.EJ } }; b.xaa = function() { return b.EJ }; b.eq = b.Na.extend({ na: function(a) { a -= 1; return a * a * a * a * a + 1 }, update: function(a) { this.q.update(this.na(a)) }, j: function() { var a = new b.eq; a.$(this.q.j()); return a }, reverse: function() { return b.eq.create(this.q.reverse()) } }); b.eq.create = function(a) { return new b.eq(a) }; b.GJ = { Qa: b.eq.prototype.na, reverse: function() { return b.GJ } }; b.zaa = function() { return b.GJ }; b.dq = b.Na.extend({ na: 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.q.update(this.na(a)) }, j: function() { var a = new b.dq; a.$(this.q.j()); return a }, reverse: function() { return b.dq.create(this.q.reverse()) } }); b.dq.create = function(a) { return new b.dq(a) }; b.FJ = { Qa: b.dq.prototype.na, reverse: function() { return b.FJ } }; b.yaa = function() { return b.FJ }; b.Qp = b.Na.extend({ na: function(a) { return -1 * (Math.sqrt(1 - a * a) - 1) }, update: function(a) { this.q.update(this.na(a)) }, j: function() { var a = new b.Qp; a.$(this.q.j()); return a }, reverse: function() { return b.Qp.create(this.q.reverse()) } }); b.Qp.create = function(a) { return new b.Qp(a) }; b.nJ = { Qa: b.Qp.prototype.na, reverse: function() { return b.nJ } }; b.iaa = function() { return b.nJ }; b.Sp = b.Na.extend({ na: function(a) { a -= 1; return Math.sqrt(1 - a * a) }, update: function(a) { this.q.update(this.na(a)) }, j: function() { var a = new b.Sp; a.$(this.q.j()); return a }, reverse: function() { return b.Sp.create(this.q.reverse()) } }); b.Sp.create = function(a) { return new b.Sp(a) }; b.pJ = { Qa: b.Sp.prototype.na, reverse: function() { return b.pJ } }; b.kaa = function() { return b.pJ }; b.Rp = b.Na.extend({ na: 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.q.update(this.na(a)) }, j: function() { var a = new b.Rp; a.$(this.q.j()); return a }, reverse: function() { return b.Rp.create(this.q.reverse()) } }); b.Rp.create = function(a) { return new b.Rp(a) }; b.oJ = { Qa: b.Rp.prototype.na, reverse: function() { return b.oJ } }; b.jaa = function() { return b.oJ }; b.Tp = b.Na.extend({ na: function(a) { return a * a * a }, update: function(a) { this.q.update(this.na(a)) }, j: function() { var a = new b.Tp; a.$(this.q.j()); return a }, reverse: function() { return b.Tp.create(this.q.reverse()) } }); b.Tp.create = function(a) { return new b.Tp(a) }; b.qJ = { Qa: b.Tp.prototype.na, reverse: function() { return b.qJ } }; b.laa = function() { return b.qJ }; b.Vp = b.Na.extend({ na: function(a) { a -= 1; return a * a * a + 1 }, update: function(a) { this.q.update(this.na(a)) }, j: function() { var a = new b.Vp; a.$(this.q.j()); return a }, reverse: function() { return b.Vp.create(this.q.reverse()) } }); b.Vp.create = function(a) { return new b.Vp(a) }; b.sJ = { Qa: b.Vp.prototype.na, reverse: function() { return b.sJ } }; b.naa = function() { return b.sJ }; b.Up = b.Na.extend({ na: 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.q.update(this.na(a)) }, j: function() { var a = new b.Up; a.$(this.q.j()); return a }, reverse: function() { return b.Up.create(this.q.reverse()) } }); b.Up.create = function(a) { return new b.Up(a) }; b.rJ = { Qa: b.Up.prototype.na, reverse: function() { return b.rJ } }; b.maa = function() { return b.rJ }; b.bE = function(a, c, d, e, f, g) { var h = g * g, k = h * g, m = (1 - f) / 2; f = m * (-k + 2 * h - g); var p = m * (-k + h) + (2 * k - 3 * h + 1); g = m * (k - 2 * h + g) + (-2 * k + 3 * h); h = m * (k - h); return C(a.x * f + c.x * p + d.x * g + e.x * h, a.y * f + c.y * p + d.y * g + e.y * h) }; b.QO = function(a) { for (var c = [], d = a.length - 1; 0 <= d; d--) c.push(C(a[d].x, a[d].y)); return c }; b.Gw = function(a) { for (var c = [], d = 0; d < a.length; d++) c.push(C(a[d].x, a[d].y)); return c }; b.gd = function(a, c) { var d = Math.min(a.length - 1, Math.max(c, 0)); return a[d] }; b.Xha = function(a) { for (var c = a.length, d = 0 | c / 2, e = 0; e < d; ++e) { var f = a[e]; a[e] = a[c - e - 1]; a[c - e - 1] = f } }; b.Ri = b.u.extend({ mh: null, cJ: 0, Ao: 0, Tc: null, II: null, ctor: function(a, c, d) { b.u.prototype.ctor.call(this); this.mh = []; void 0 !== d && this.d(a, c, d) }, d: function(a, c, d) { if (!c || 0 == c.length) throw "Invalid configuration. It must at least have one control point"; return b.u.prototype.d.call(this, a) ? (this.p4(c), this.Ao = d, !0) : !1 }, j: function() { var a = new b.Ri; a.d(this.o, b.Gw(this.mh), this.Ao); return a }, v: function(a) { b.u.prototype.v.call(this, a); this.cJ = 1 / (this.mh.length - 1); this.Tc = C(this.target.Gd(), this.target.tf()); this.II = C(0, 0) }, update: function(a) { a = this.kd(a); var c, d = this.mh; if (1 == a) c = d.length - 1, a = 1; else { var e = this.cJ; c = 0 | a / e; a = (a - e * c) / e } c = b.bE(b.gd(d, c - 1), b.gd(d, c - 0), b.gd(d, c + 1), b.gd(d, c + 2), this.Ao, a); b.st && (d = this.target.Gd() - this.Tc.x, a = this.target.tf() - this.Tc.y, 0 != d || 0 != a) && (e = this.II, d = e.x + d, a = e.y + a, e.x = d, e.y = a, c.x += d, c.y += a); this.VP(c) }, reverse: function() { var a = b.QO(this.mh); return b.kM(this.o, a, this.Ao) }, VP: function(a) { this.target.P(a); this.Tc = a }, Dca: function() { return this.mh }, p4: function(a) { this.mh = a } }); b.kM = function(a, c, d) { return new b.Ri(a, c, d) }; b.Ri.create = b.kM; b.Mp = b.Ri.extend({ Fc: null, ctor: function(a, c, d) { b.Ri.prototype.ctor.call(this); this.Fc = C(0, 0); void 0 !== d && this.d(a, c, d) }, v: function(a) { b.Ri.prototype.v.call(this, a); this.Fc.x = a.Gd(); this.Fc.y = a.tf() }, reverse: function() { for (var a = this.mh.slice(), c, d = a[0], e = 1; e < a.length; ++e) c = a[e], a[e] = b.Jd(c, d), d = c; a = b.QO(a); d = a[a.length - 1]; a.pop(); d.x = -d.x; d.y = -d.y; a.unshift(d); for (e = 1; e < a.length; ++e) c = a[e], c.x = -c.x, c.y = -c.y, c.x += d.x, c.y += d.y, d = a[e] = c; return b.jM(this.o, a, this.Ao) }, VP: function(a) { var c = this.Fc, d = a.x + c.x; a = a.y + c.y; this.Tc.x = d; this.Tc.y = a; this.target.P(d, a) }, j: function() { var a = new b.Mp; a.d(this.o, b.Gw(this.mh), this.Ao); return a } }); b.jM = function(a, c, d) { return new b.Mp(a, c, d) }; b.Mp.create = b.jM; b.Oy = b.Ri.extend({ ctor: function(a, c) { c && this.d(a, c) }, d: function(a, c) { return b.Ri.prototype.d.call(this, a, c, 0.5) }, j: function() { var a = new b.Oy; a.d(this.o, b.Gw(this.mh)); return a } }); b.DZ = function(a, c) { return new b.Oy(a, c) }; b.Oy.create = b.DZ; b.Ny = b.Mp.extend({ ctor: function(a, c) { b.Mp.prototype.ctor.call(this); c && this.d(a, c) }, d: function(a, c) { return b.Ri.prototype.d.call(this, a, c, 0.5) }, j: function() { var a = new b.Ny; a.d(this.o, b.Gw(this.mh)); return a } }); b.CZ = function(a, c) { return new b.Ny(a, c) }; b.Ny.create = b.CZ; b.o6 = b.oa.extend({ K5: function() {} }); b.Cy = b.u.extend({ key: "", Lw: 0, wy: 0, os: 0, ctor: function(a, c, d, e) { b.u.prototype.ctor.call(this); this.key = ""; void 0 !== e && this.d(a, c, d, e) }, d: function(a, c, d, e) { return b.u.prototype.d.call(this, a) ? (this.key = c, this.wy = e, this.Lw = d, !0) : !1 }, v: function(a) { if (!a || !a.K5) throw "cc.ActionTween.startWithTarget(): target must be non-null, and target must implement updateTweenAction function"; b.u.prototype.v.call(this, a); this.os = this.wy - this.Lw }, update: function() {}, reverse: function() { return b.SL(this.duration, this.key, this.wy, this.Lw) }, j: function() { var a = new b.Cy; a.d(this.o, this.key, this.Lw, this.wy); return a } }); b.SL = function(a, c, d, e) { return new b.Cy(a, c, d, e) }; b.Cy.create = b.SL; b.gc = b.u.extend({ W: null, ctor: function(a, c) { b.ZA(); b.u.prototype.ctor.call(this); this.W = N(0, 0); c && this.d(a, c) }, j: function() { var a = new b.gc, c = this.W; a.d(this.o, N(c.width, c.height)); return a }, v: function(a) { b.u.prototype.v.call(this, a); var c = this.ss(), d = this.target; (a = d.grid) && 0 < a.qi ? (c = a.k0(), a.vf() && c.width == this.W.width && c.height == this.W.height && a.LF()) : (a && a.vf() && a.setActive(!1), d.grid = c, d.grid.setActive(!0)) }, reverse: function() { return b.rq.create(this) }, d: function(a, c) { return b.u.prototype.d.call(this, a) ? (this.W.width = c.width, this.W.height = c.height, !0) : !1 }, ss: function() { b.log("cc.GridAction.getGrid(): it should be overridden in subclass.") } }); b.i1 = function(a, c) { return new b.gc(a, c) }; b.gc.create = b.i1; b.Xc = b.gc.extend({ ss: function() { return b.dz.create(this.W) }, $P: function(a) { return this.target.grid.$P(a) }, Mc: function(a) { return this.target.grid.Mc(a) }, Ld: function(a, c) { this.target.grid.Ld(a, c) } }); b.h1 = function(a, c) { return new b.Xc(a, c) }; b.Xc.create = b.h1; b.tc = b.gc.extend({ KP: function(a) { return this.target.grid.KP(a) }, Yf: function(a) { return this.target.grid.Yf(a) }, Xe: function(a, c) { this.target.grid.Xe(a, c) }, ss: function() { return b.gA.create(this.W) } }); b.y5 = function(a, c) { return new b.tc(a, c) }; b.tc.create = b.y5; b.zl = b.xe.extend({ v: function(a) { b.xe.prototype.v.call(this, a); (a = this.target.grid) && a.vf() && a.setActive(!1) } }); b.k5 = function() { return new b.zl }; b.zl.create = b.k5; b.yH = b.xe.extend({ ac: null, ctor: function(a) { b.xe.prototype.ctor.call(this); void 0 !== a && this.x1(a) }, x1: function(a) { this.ac = a; return !0 }, v: function(a) { b.xe.prototype.v.call(this, a); this.target.grid && this.target.grid.vf() && this.target.grid.t4(this.target.grid.qi + this.ac) } }); b.C3 = function(a) { return new b.yH(a) }; b.yH.create = b.C3; b.zI = b.Xc.extend({ qf: 0, Za: 0, $a: 0, ctor: function(a, c, d, e) { b.gc.prototype.ctor.call(this); void 0 !== e && this.d(a, c, d, e) }, Zo: function() { return this.Za }, xp: function(a) { this.Za = a }, Im: function() { return this.$a }, Vm: function(a) { this.$a = a }, d: function(a, c, d, e) { return b.Xc.prototype.d.call(this, a, c) ? (this.qf = d, this.Za = e, this.$a = 1, !0) : !1 }, update: function(a) { for (var c = this.W, d = this.Za, e = C(0, 0), f = this.$a, g = this.qf, h = 0; h < c.width + 1; ++h) for (var k = 0; k < c.height + 1; ++k) { e.x = h; e.y = k; var m = this.Mc(e); m.z += Math.sin(Math.PI * a * g * 2 + 0.01 * (m.y + m.x)) * d * f; this.Ld(e, m) } } }); b.R5 = function(a, c, d, e) { return new b.zI(a, c, d, e) }; b.zI.create = b.R5; b.bz = b.Xc.extend({ ctor: function(a) { void 0 !== a ? b.gc.prototype.ctor.call(this, a, N(1, 1)) : b.gc.prototype.ctor.call(this) }, d: function(a) { return b.Xc.prototype.d.call(this, a, N(1, 1)) }, jx: function(a, c) { return 1 != a.width || 1 != a.height ? (b.log("Grid size must be (1,1)"), !1) : b.Xc.prototype.d.call(this, c, a) }, update: function(a) { var c = Math.PI * a; a = Math.sin(c); var d = Math.cos(c / 2), c = new b.uc, e = C(0, 0); e.x = e.y = 1; var f = this.Mc(e); e.x = e.y = 0; var e = this.Mc(e), g = f.x, h = e.x, k, m; g > h ? (f = C(0, 0), e = C(0, 1), k = C(1, 0), m = C(1, 1)) : (k = C(0, 0), m = C(0, 1), f = C(1, 0), e = C(1, 1), g = h); c.x = g - g * d; c.z = Math.abs(parseFloat(g * a / 4)); a = this.Mc(f); a.x = c.x; a.z += c.z; this.Ld(f, a); a = this.Mc(e); a.x = c.x; a.z += c.z; this.Ld(e, a); a = this.Mc(k); a.x -= c.x; a.z -= c.z; this.Ld(k, a); a = this.Mc(m); a.x -= c.x; a.z -= c.z; this.Ld(m, a) } }); b.J_ = function(a) { return new b.bz(a) }; b.bz.create = b.J_; b.QG = b.bz.extend({ ctor: function(a) { void 0 !== a ? b.gc.prototype.ctor.call(this, a, N(1, 1)) : b.gc.prototype.ctor.call(this) }, update: function(a) { var c = Math.PI * a; a = Math.sin(c); var d = Math.cos(c / 2), c = new b.uc, e = C(0, 0); e.x = e.y = 1; var f = this.Mc(e); e.x = e.y = 0; var e = this.Mc(e), g = f.y, h = e.y, k, m; g > h ? (f = C(0, 0), e = C(0, 1), k = C(1, 0), m = C(1, 1)) : (e = C(0, 0), f = C(0, 1), m = C(1, 0), k = C(1, 1), g = h); c.y = g - g * d; c.z = Math.abs(parseFloat(g * a) / 4); a = this.Mc(f); a.y = c.y; a.z += c.z; this.Ld(f, a); a = this.Mc(e); a.y -= c.y; a.z -= c.z; this.Ld(e, a); a = this.Mc(k); a.y = c.y; a.z += c.z; this.Ld(k, a); a = this.Mc(m); a.y -= c.y; a.z -= c.z; this.Ld(m, a) } }); b.L_ = function(a) { return new b.QG(a) }; b.QG.create = b.L_; b.WG = b.Xc.extend({ wa: null, Je: 0, tv: 0, nV: !1, jb: !1, ctor: function(a, c, d, e) { b.gc.prototype.ctor.call(this); this.wa = C(0, 0); void 0 !== e && this.d(a, c, d, e) }, eca: function() { return this.tv }, Xia: function(a) { this.tv = a }, via: function(a) { this.nV = a }, Rw: function() { return this.wa }, P: function(a) { b.DF(a, this.wa) || (this.wa.x = a.x, this.wa.y = a.y, this.jb = !0) }, d: function(a, c, d, e) { return b.Xc.prototype.d.call(this, a, c) ? (this.P(d), this.Je = e, this.tv = 0.7, this.jb = !0) : !1 }, update: function() { if (this.jb) { for (var a = this.W.width, c = this.W.height, d = this.Je, e = this.tv, f = C(0, 0), g = C(0, 0), h, k, m, p = 0; p < a + 1; ++p) for (var r = 0; r < c + 1; ++r) f.x = p, f.y = r, h = this.Mc(f), g.x = this.wa.x - h.x, g.y = this.wa.y - h.y, k = b.il(g), k < d && (k = d - k, k /= d, 0 == k && (k = 0.001), k = Math.log(k) * e, m = Math.exp(k) * d, k = b.il(g), 0 < k && (g.x /= k, g.y /= k, g.x *= m, g.y *= m, h.z += b.il(g) * e)), this.Ld(f, h); this.jb = !1 } } }); b.t2 = function(a, c, d, e) { return new b.WG(a, c, d, e) }; b.WG.create = b.t2; b.zH = b.Xc.extend({ wa: null, Je: 0, qf: 0, Za: 0, $a: 0, ctor: function(a, c, d, e, f, g) { b.gc.prototype.ctor.call(this); this.wa = C(0, 0); void 0 !== g && this.d(a, c, d, e, f, g) }, Rw: function() { return this.wa }, P: function(a) { this.wa.x = a.x; this.wa.y = a.y }, Zo: function() { return this.Za }, xp: function(a) { this.Za = a }, Im: function() { return this.$a }, Vm: function(a) { this.$a = a }, d: function(a, c, d, e, f, g) { return b.Xc.prototype.d.call(this, a, c) ? (this.P(d), this.Je = e, this.qf = f, this.Za = g, this.$a = 1, !0) : !1 }, update: function(a) { for (var c = this.W.width, d = this.W.height, e = C(0, 0), f = this.Je, g = this.qf, h = this.Za, k = this.$a, m, p, r = C(0, 0), s = 0; s < c + 1; ++s) for (var u = 0; u < d + 1; ++u) e.x = s, e.y = u, m = this.Mc(e), r.x = this.wa.x - m.x, r.y = this.wa.y - m.y, p = b.il(r), p < f && (p = f - p, m.z += Math.sin(a * Math.PI * g * 2 + 0.1 * p) * h * k * Math.pow(p / f, 2)), this.Ld(e, m) } }); b.D3 = function(a, c, d, e, f, g) { return new b.zH(a, c, d, e, f, g) }; b.zH.create = b.D3; b.DH = b.Xc.extend({ Ik: 0, Hr: !1, ctor: function(a, c, d, e) { b.gc.prototype.ctor.call(this); void 0 !== e && this.d(a, c, d, e) }, d: function(a, c, d, e) { return b.Xc.prototype.d.call(this, a, c) ? (this.Ik = d, this.Hr = e, !0) : !1 }, update: function() { for (var a = this.W.width, c = this.W.height, d = this.Ik, e = this.Hr, f = C(0, 0), g, h = 0; h < a + 1; ++h) for (var k = 0; k < c + 1; ++k) f.x = h, f.y = k, g = this.Mc(f), g.x += b.yb() % (2 * d) - d, g.y += b.yb() % (2 * d) - d, e && (g.z += b.yb() % (2 * d) - d), this.Ld(f, g) } }); b.O4 = function(a, c, d, e) { return new b.DH(a, c, d, e) }; b.DH.create = b.O4; b.XG = b.Xc.extend({ qf: 0, Za: 0, $a: 0, ctor: function(a, c, d, e) { b.gc.prototype.ctor.call(this); void 0 !== e && this.d(a, c, d, e) }, Zo: function() { return this.Za }, xp: function(a) { this.Za = a }, Im: function() { return this.$a }, Vm: function(a) { this.$a = a }, d: function(a, c, d, e) { return b.Xc.prototype.d.call(this, a, c) ? (this.qf = d, this.Za = e, this.$a = 1, !0) : !1 }, update: function(a) { for (var c = this.W.width, d = this.W.height, e = C(0, 0), f = this.qf, g = this.Za, h = this.$a, k, m = 1; m < c; ++m) for (var p = 1; p < d; ++p) e.x = m, e.y = p, k = this.Mc(e), k.x += Math.sin(a * Math.PI * f * 2 + 0.01 * k.x) * g * h, k.y += Math.sin(a * Math.PI * f * 2 + 0.01 * k.y) * g * h, this.Ld(e, k) } }); b.u2 = function(a, c, d, e) { return new b.XG(a, c, d, e) }; b.XG.create = b.u2; b.yI = b.Xc.extend({ qf: 0, Za: 0, $a: 0, QL: !1, gK: !1, ctor: function(a, c, d, e, f, g) { b.gc.prototype.ctor.call(this); void 0 !== g && this.d(a, c, d, e, f, g) }, Zo: function() { return this.Za }, xp: function(a) { this.Za = a }, Im: function() { return this.$a }, Vm: function(a) { this.$a = a }, d: function(a, c, d, e, f, g) { return b.Xc.prototype.d.call(this, a, c) ? (this.qf = d, this.Za = e, this.$a = 1, this.gK = f, this.QL = g, !0) : !1 }, update: function(a) { for (var c = this.W.width, d = this.W.height, e = C(0, 0), f = this.QL, g = this.gK, h = this.qf, k = this.Za, m = this.$a, p, r = 0; r < c + 1; ++r) for (var s = 0; s < d + 1; ++s) e.x = r, e.y = s, p = this.Mc(e), f && (p.x += Math.sin(a * Math.PI * h * 2 + 0.01 * p.y) * k * m), g && (p.y += Math.sin(a * Math.PI * h * 2 + 0.01 * p.x) * k * m), this.Ld(e, p) } }); b.Q5 = function(a, c, d, e, f, g) { return new b.yI(a, c, d, e, f, g) }; b.yI.create = b.Q5; b.sI = b.Xc.extend({ wa: null, FL: 0, Za: 0, $a: 0, ctor: function(a, c, d, e, f) { b.gc.prototype.ctor.call(this); this.wa = C(0, 0); void 0 !== f && this.d(a, c, d, e, f) }, Rw: function() { return this.wa }, P: function(a) { this.wa.x = a.x; this.wa.y = a.y }, Zo: function() { return this.Za }, xp: function(a) { this.Za = a }, Im: function() { return this.$a }, Vm: function(a) { this.$a = a }, d: function(a, c, d, e, f) { return b.Xc.prototype.d.call(this, a, c) ? (this.P(d), this.FL = e, this.Za = f, this.$a = 1, !0) : !1 }, update: function(a) { for (var c = this.wa, d = this.W.width, e = this.W.height, f = C(0, 0), g = 0.1 * this.Za * this.$a, h = this.FL, k, m, p, r = C(0, 0), s = 0; s < d + 1; ++s) for (var u = 0; u < e + 1; ++u) f.x = s, f.y = u, k = this.Mc(f), r.x = s - d / 2, r.y = u - e / 2, m = b.il(r) * Math.cos(Math.PI / 2 + a * Math.PI * h * 2) * g, p = Math.sin(m) * (k.y - c.y) + Math.cos(m) * (k.x - c.x), m = Math.cos(m) * (k.y - c.y) - Math.sin(m) * (k.x - c.x), k.x = c.x + p, k.y = c.y + m, this.Ld(f, k) } }); b.D5 = function(a, c, d, e, f) { return new b.sI(a, c, d, e, f) }; b.sI.create = b.D5; b.EH = b.tc.extend({ Ik: 0, Hr: !1, ctor: function(a, c, d, e) { b.gc.prototype.ctor.call(this); void 0 !== e && this.d(a, c, d, e) }, d: function(a, c, d, e) { return b.tc.prototype.d.call(this, a, c) ? (this.Ik = d, this.Hr = e, !0) : !1 }, update: function() { for (var a = this.W, c = this.Ik, d = C(0, 0), e = 0; e < a.width; ++e) for (var f = 0; f < a.height; ++f) { d.x = e; d.y = f; var g = this.Yf(d); g.C.x += b.yb() % (2 * c) - c; g.L.x += b.yb() % (2 * c) - c; g.K.x += b.yb() % (2 * c) - c; g.J.x += b.yb() % (2 * c) - c; g.C.y += b.yb() % (2 * c) - c; g.L.y += b.yb() % (2 * c) - c; g.K.y += b.yb() % (2 * c) - c; g.J.y += b.yb() % (2 * c) - c; this.Hr && (g.C.z += b.yb() % (2 * c) - c, g.L.z += b.yb() % (2 * c) - c, g.K.z += b.yb() % (2 * c) - c, g.J.z += b.yb() % (2 * c) - c); this.Xe(d, g) } } }); b.P4 = function(a, c, d, e) { return new b.EH(a, c, d, e) }; b.EH.create = b.P4; b.FH = b.tc.extend({ Ik: 0, bC: !1, wL: !1, ctor: function(a, c, d, e) { b.gc.prototype.ctor.call(this); void 0 !== e && this.d(a, c, d, e) }, d: function(a, c, d, e) { return b.tc.prototype.d.call(this, a, c) ? (this.bC = !1, this.Ik = d, this.wL = e, !0) : !1 }, update: function() { if (!1 === this.bC) { for (var a = this.W, c = this.Ik, d, e = C(0, 0), f = 0; f < a.width; ++f) for (var g = 0; g < a.height; ++g) e.x = f, e.y = g, d = this.Yf(e), d.C.x += b.yb() % (2 * c) - c, d.L.x += b.yb() % (2 * c) - c, d.K.x += b.yb() % (2 * c) - c, d.J.x += b.yb() % (2 * c) - c, d.C.y += b.yb() % (2 * c) - c, d.L.y += b.yb() % (2 * c) - c, d.K.y += b.yb() % (2 * c) - c, d.J.y += b.yb() % (2 * c) - c, this.wL && (d.C.z += b.yb() % (2 * c) - c, d.L.z += b.yb() % (2 * c) - c, d.K.z += b.yb() % (2 * c) - c, d.J.z += b.yb() % (2 * c) - c), this.Xe(e, d); this.bC = !0 } } }); b.Q4 = function(a, c, d, e) { return new b.FH(a, c, d, e) }; b.FH.create = b.Q4; function ea() { this.position = C(0, 0); this.g5 = C(0, 0); this.os = C(0, 0) } b.GH = b.tc.extend({ JC: 0, wj: 0, vi: null, Me: null, ctor: function(a, c, d) { b.gc.prototype.ctor.call(this); this.vi = []; this.Me = []; void 0 !== d && this.d(a, c, d) }, d: function(a, c, d) { return b.tc.prototype.d.call(this, a, c) ? (this.JC = d, this.vi.length = 0, this.Me.length = 0, !0) : !1 }, kG: function(a, c) { for (var d = c - 1; 0 <= d; d--) { var e = 0 | b.yb() % (d + 1), f = a[d]; a[d] = a[e]; a[e] = f } }, AE: function(a) { var c = this.W, d = a.width * c.height + a.height; return N(this.vi[d] / c.height - a.width, this.vi[d] % c.height - a.height) }, V2: function(a, c) { var d = this.Yf(a), e = this.target.grid.KE(), f = c.position; d.C.x += f.x * e.x; d.C.y += f.y * e.y; d.L.x += f.x * e.x; d.L.y += f.y * e.y; d.K.x += f.x * e.x; d.K.y += f.y * e.y; d.J.x += f.x * e.x; d.J.y += f.y * e.y; this.Xe(a, d) }, v: function(a) { b.tc.prototype.v.call(this, a); a = this.W; this.wj = a.width * a.height; for (var c = this.vi, d = c.length = 0; d < this.wj; ++d) c[d] = d; this.kG(c, this.wj); for (var c = this.Me, d = c.length = 0, e = N(0, 0), f = 0; f < a.width; ++f) for (var g = 0; g < a.height; ++g) c[d] = new ea, c[d].position = C(f, g), c[d].g5 = C(f, g), e.width = f, e.height = g, c[d].os = this.AE(e), ++d }, update: function(a) { for (var c = 0, d = this.W, e = this.Me, f, g = C(0, 0), h = 0; h < d.width; ++h) for (var k = 0; k < d.height; ++k) g.x = h, g.y = k, f = e[c], f.position.x = f.os.width * a, f.position.y = f.os.height * a, this.V2(g, f), ++c } }); b.S4 = function(a, c, d) { return new b.GH(a, c, d) }; b.GH.create = b.S4; b.hq = b.tc.extend({ vy: function(a, c) { var d = this.W.width * c, e = this.W.height * c; return 0 == d + e ? 1 : Math.pow((a.width + a.height) / (d + e), 6) }, rG: function(a) { this.Xe(a, this.Yf(a)) }, qG: function(a) { this.Xe(a, new b.Xt) }, OP: function(a, c) { var d = this.Yf(a), e = this.target.grid.KE(); d.C.x += e.x / 2 * (1 - c); d.C.y += e.y / 2 * (1 - c); d.L.x -= e.x / 2 * (1 - c); d.L.y += e.y / 2 * (1 - c); d.K.x += e.x / 2 * (1 - c); d.K.y -= e.y / 2 * (1 - c); d.J.x -= e.x / 2 * (1 - c); d.J.y -= e.y / 2 * (1 - c); this.Xe(a, d) }, update: function(a) { for (var c = this.W, d = C(0, 0), e = N(0, 0), f, g = 0; g < c.width; ++g) for (var h = 0; h < c.height; ++h) d.x = g, d.y = h, e.width = g, e.height = h, f = this.vy(e, a), 0 == f ? this.qG(d) : 1 > f ? this.OP(d, f) : this.rG(d) } }); b.D_ = function(a, c) { return new b.hq(a, c) }; b.hq.create = b.D_; b.$y = b.hq.extend({ vy: function(a, c) { return 0 == a.width + a.height ? 1 : Math.pow((this.W.width * (1 - c) + this.W.height * (1 - c)) / (a.width + a.height), 6) } }); b.B_ = function(a, c) { return new b.$y(a, c) }; b.$y.create = b.B_; b.Nt = b.hq.extend({ vy: function(a, c) { var d = this.W.height * c; return 0 == d ? 1 : Math.pow(a.height / d, 6) }, OP: function(a, c) { var d = this.Yf(a), e = this.target.grid.KE(); d.C.y += e.y / 2 * (1 - c); d.L.y += e.y / 2 * (1 - c); d.K.y -= e.y / 2 * (1 - c); d.J.y -= e.y / 2 * (1 - c); this.Xe(a, d) } }); b.E_ = function(a, c) { return new b.Nt(a, c) }; b.Nt.create = b.E_; b.az = b.Nt.extend({ vy: function(a, c) { return 0 == a.height ? 1 : Math.pow(this.W.height * (1 - c) / a.height, 6) } }); b.C_ = function(a, c) { return new b.az(a, c) }; b.az.create = b.C_; b.lA = b.tc.extend({ JC: null, wj: 0, vi: null, ctor: function(a, c, d) { b.gc.prototype.ctor.call(this); this.vi = []; void 0 !== c && this.d(a, c, d) }, d: function(a, c, d) { return b.tc.prototype.d.call(this, a, c) ? (this.JC = d || 0, this.vi.length = 0, !0) : !1 }, kG: function(a, c) { for (var d = c - 1; 0 <= d; d--) { var e = 0 | b.yb() % (d + 1), f = a[d]; a[d] = a[e]; a[e] = f } }, rG: function(a) { this.Xe(a, this.Yf(a)) }, qG: function(a) { this.Xe(a, new b.Xt) }, v: function(a) { b.tc.prototype.v.call(this, a); this.wj = this.W.width * this.W.height; a = this.vi; for (var c = a.length = 0; c < this.wj; ++c) a[c] = c; this.kG(a, this.wj) }, update: function(a) { a = 0 | a * this.wj; for (var c = this.W, d, e = C(0, 0), f = this.vi, g = 0; g < this.wj; g++) d = f[g], e.x = 0 | d / c.height, e.y = d % (0 | c.height), g < a ? this.qG(e) : this.rG(e) } }); b.C5 = function(a, c, d) { return new b.lA(a, c, d) }; b.lA.create = b.C5; b.AI = b.tc.extend({ qf: 0, Za: 0, $a: 0, ctor: function(a, c, d, e) { b.gc.prototype.ctor.call(this); void 0 !== e && this.d(a, c, d, e) }, Zo: function() { return this.Za }, xp: function(a) { this.Za = a }, Im: function() { return this.$a }, Vm: function(a) { this.$a = a }, d: function(a, c, d, e) { return b.tc.prototype.d.call(this, a, c) ? (this.qf = d, this.Za = e, this.$a = 1, !0) : !1 }, update: function(a) { for (var c = this.W, d = this.qf, e = this.Za, f = this.$a, g = C(0, 0), h, k = 0; k < c.width; k++) for (var m = 0; m < c.height; m++) g.x = k, g.y = m, h = this.Yf(g), h.C.z = Math.sin(a * Math.PI * d * 2 + 0.01 * (h.C.y + h.C.x)) * e * f, h.L.z = h.C.z, h.K.z = h.C.z, h.J.z = h.C.z, this.Xe(g, h) } }); b.S5 = function(a, c, d, e) { return new b.AI(a, c, d, e) }; b.AI.create = b.S5; b.UG = b.tc.extend({ gj: 0, Za: 0, $a: 0, ctor: function(a, c, d, e) { b.gc.prototype.ctor.call(this); void 0 !== e && this.d(a, c, d, e) }, Zo: function() { return this.Za }, xp: function(a) { this.Za = a }, Im: function() { return this.$a }, Vm: function(a) { this.$a = a }, d: function(a, c, d, e) { return b.tc.prototype.d.call(this, a, c) ? (this.gj = d, this.Za = e, this.$a = 1, !0) : !1 }, update: function(a) { var c = Math.sin(Math.PI * a * this.gj * 2) * this.Za * this.$a; a = Math.sin(Math.PI * (a * this.gj * 2 + 1)) * this.Za * this.$a; for (var d = this.W, e = this.target.grid, f, g = C(0, 0), h = 0; h < d.width; h++) for (var k = 0; k < d.height; k++) g.x = h, g.y = k, f = e.Yf(g), 0 == (h + k) % 2 ? (f.C.z += c, f.L.z += c, f.K.z += c, f.J.z += c) : (f.C.z += a, f.L.z += a, f.K.z += a, f.J.z += a), e.Xe(g, f) } }); b.O1 = function(a, c, d, e) { return new b.UG(a, c, d, e) }; b.UG.create = b.O1; b.Tz = b.tc.extend({ IX: 0, cs: null, ctor: function(a, c) { b.gc.prototype.ctor.call(this); void 0 !== c && this.d(a, c) }, d: function(a, c) { this.IX = c; return b.tc.prototype.d.call(this, a, N(1, c)) }, update: function(a) { for (var c = this.W, d = this.cs.width, e, f, g = C(0, 0), h = 0; h < c.height; ++h) g.y = h, e = this.Yf(g), f = 1, 0 == h % 2 && (f = -1), e.C.x += f * d * a, e.L.x += f * d * a, e.K.x += f * d * a, e.J.x += f * d * a, this.Xe(g, e) }, v: function(a) { b.tc.prototype.v.call(this, a); this.cs = b.I.ws() } }); b.Y4 = function(a, c) { return new b.Tz(a, c) }; b.Tz.create = b.Y4; b.Sz = b.tc.extend({ mV: 0, cs: null, ctor: function(a, c) { b.gc.prototype.ctor.call(this); void 0 !== c && this.d(a, c) }, d: function(a, c) { this.mV = c; return b.tc.prototype.d.call(this, a, N(c, 1)) }, update: function(a) { for (var c = this.W.width, d = this.cs.height, e, f, g = C(0, 0), h = 0; h < c; ++h) g.x = h, e = this.Yf(g), f = 1, 0 == h % 2 && (f = -1), e.C.y += f * d * a, e.L.y += f * d * a, e.K.y += f * d * a, e.J.y += f * d * a, this.Xe(g, e) }, v: function(a) { b.tc.prototype.v.call(this, a); this.cs = b.I.ws() } }); b.X4 = function(a, c) { return new b.Sz(a, c) }; b.Sz.create = b.X4; b.Vt = b.Xc.extend({ update: function(a) { var c = Math.max(0, a - 0.25), c = -100 - c * c * 500, d = +Math.PI / 2 + -Math.PI / 2 * Math.sqrt(a); a = Math.sin(d); for (var d = Math.cos(d), e = this.W, f = C(0, 0), g = 0; g <= e.width; ++g) for (var h = 0; h <= e.height; ++h) { f.x = g; f.y = h; var k = this.Mc(f), m = Math.sqrt(k.x * k.x + (k.y - c) * (k.y - c)), p = m * a, r = Math.asin(k.x / m) / a, s = Math.cos(r); k.x = r <= Math.PI ? p * Math.sin(r) : 0; k.y = m + c - p * (1 - s) * a; k.z = p * (1 - s) * d / 7; 0.5 > k.z && (k.z = 0.5); this.Ld(f, k) } } }); b.M2 = function(a, c) { return new b.Vt(a, c) }; b.Vt.create = b.M2; b.Ua = b.k.extend({ kc: null, li: 0, $b: null, kh: null, Hl: null, Dd: !1, vb: "ProgressTimer", z0: function() { return C(this.kh.x, this.kh.y) }, i4: function(a) { this.kh = b.rO(a) }, Q_: function() { return C(this.Hl.x, this.Hl.y) }, N3: function(a) { this.Hl = b.rO(a) }, OE: function() { return this.kc }, G0: function() { return this.li }, oN: function() { return this.$b }, n4: function(a) { this.li != a && (this.li = b.Vc(a, 0, 100), this.yD()) }, Ue: function() {}, Wf: function() { return !1 }, I1: function() { return this.Dd }, SA: function(a) { if (a < b.Ua.IH) { var c = b.Ua.BT; return this.Dd ? C(c >> 7 - (a << 1) & 1, c >> 7 - ((a << 1) + 1) & 1) : C(c >> (a << 1) + 1 & 1, c >> (a << 1) & 1) } return C(0, 0) }, Cv: null, jD: 270, kB: 270, Je: 0, cB: !1, NA: null, qd: 0, zc: null, pf: null, FD: null, Zr: !1, ctor: null, Rq: function(a) { b.k.prototype.ctor.call(this); this.kc = b.Ua.Uh; this.li = 0; this.kh = C(0, 0); this.Hl = C(0, 0); this.Dd = !1; this.$b = null; this.Cv = C(0, 0); this.kB = this.jD = 270; this.Je = 0; this.cB = !1; this.NA = O(0, 0, 0, 0); a && this.iK(a) }, Sq: function(a) { b.k.prototype.ctor.call(this); this.kc = b.Ua.Uh; this.li = 0; this.kh = C(0, 0); this.Hl = C(0, 0); this.Dd = !1; this.$b = null; this.FD = b.l.createBuffer(); this.qd = 0; this.pf = this.zc = null; this.Zr = !1; a && this.jK(a) }, cb: function(a) { this.$b.color = a; this.bc() }, Sa: function(a) { this.$b.opacity = a; this.bc() }, Hg: function() { return this.$b.color }, Ig: function() { return this.$b.opacity }, qP: null, cY: function(a) { this.Dd !== a && (this.Dd = a) }, dY: function(a) { this.Dd !== a && (this.Dd = a, this.pf = this.zc = null, this.qd = 0) }, py: null, iY: function(a) { this.$b != a && (this.$b = a, this.width = this.$b.width, this.height = this.$b.height) }, jY: function(a) { a && this.$b != a && (this.$b = a, this.width = a.width, this.height = a.height, this.zc && (this.pf = this.zc = null, this.qd = 0)) }, gG: null, qY: function(a) { a !== this.kc && (this.kc = a) }, rY: function(a) { a !== this.kc && (this.zc && (this.pf = this.zc = null, this.qd = 0), this.kc = a) }, ZF: null, aY: function(a) { this.Dd !== a && (this.Dd = a) }, bY: function(a) { this.Dd !== a && (this.Dd = a, this.pf = this.zc = null, this.qd = 0) }, oe: function(a) { var c = this.$b; if (!c) return { fa: 0, ga: 0 }; var d = c.quad, e = C(d.C.m.fa, d.C.m.ga), d = C(d.J.m.fa, d.J.m.ga); c.textureRectRotated && (c = a.x, a.x = a.y, a.y = c); return { fa: e.x * (1 - a.x) + d.x * a.x, ga: e.y * (1 - a.y) + d.y * a.y } }, pe: function(a) { if (!this.$b) return { x: 0, y: 0 }; var c = this.$b.quad, d = C(c.C.f.x, c.C.f.y), c = C(c.J.f.x, c.J.f.y); return { x: d.x * (1 - a.x) + c.x * a.x, y: d.y * (1 - a.y) + c.y * a.y } }, NN: null, iK: function(a) { this.percentage = 0; this.anchorY = this.anchorX = 0.5; this.kc = b.Ua.Uh; this.Dd = !1; this.midPoint = C(0.5, 0.5); this.barChangeRate = C(1, 1); this.sprite = a; return !0 }, jK: function(a) { this.percentage = 0; this.pf = this.zc = null; this.qd = 0; this.anchorY = this.anchorX = 0.5; this.kc = b.Ua.Uh; this.Dd = !1; this.midPoint = C(0.5, 0.5); this.barChangeRate = C(1, 1); this.sprite = a; this.shaderProgram = b.Md.nc(b.Wi); return !0 }, Y: null, Ll: function(a) { a = a || b.l; var c = this.$b; c.ko && (a.globalCompositeOperation = "lighter"); var d = b.view.ka, e = b.view.La; a.globalAlpha = c.fb / 255; var f = c.ia, g = c.O, h = c.Hb, k = c.iB, m = 0 | h.x, p = -h.y - f.height, r = c.im; k.width = f.width * d; k.height = f.height * e; a.save(); c.Lb && (m = -h.x - f.width, a.scale(-1, 1)); c.Mb && (p = h.y, a.scale(1, -1)); m *= d; p *= e; this.kc == b.Ua.Dl ? (f = this.NA, a.beginPath(), a.rect(f.x * d, f.y * e, f.width * d, f.height * e), a.clip(), a.closePath()) : this.kc == b.Ua.Uh && (f = this.Cv.x * d, h = this.Cv.y * e, a.beginPath(), a.arc(f, h, this.Je * e, Math.PI / 180 * this.jD, Math.PI / 180 * this.kB, this.cB), a.lineTo(f, h), a.clip(), a.closePath()); c.G && r.bn ? (d = c.G.Wa, this.Pq ? a.drawImage(d, 0, 0, r.width, r.height, m, p, k.width, k.height) : a.drawImage(d, r.x, r.y, r.width, r.height, m, p, k.width, k.height)) : 0 !== g.width && (k = this.color, a.fillStyle = "rgba(" + k.r + "," + k.g + "," + k.b + ",1)", a.fillRect(m, p, g.width * d, g.height * e)); a.restore(); b.Vf() }, aj: function(a) { a = a || b.l; if (this.zc && this.$b) { b.Js(this); var c = this.$b.Dh(); b.Hh(c.src, c.S); b.Jc(b.El); b.te(this.$b.texture); a.bindBuffer(a.ARRAY_BUFFER, this.FD); this.Zr && (a.bufferData(a.ARRAY_BUFFER, this.pf, a.DYNAMIC_DRAW), this.Zr = !1); c = b.yd.BYTES_PER_ELEMENT; a.vertexAttribPointer(b.qb, 2, a.FLOAT, !1, c, 0); a.vertexAttribPointer(b.Ce, 4, a.UNSIGNED_BYTE, !0, c, 8); a.vertexAttribPointer(b.zd, 2, a.FLOAT, !1, c, 12); this.kc === b.Ua.Uh ? a.drawArrays(a.TRIANGLE_FAN, 0, this.qd) : this.kc == b.Ua.Dl && (this.Dd ? (a.drawArrays(a.TRIANGLE_STRIP, 0, this.qd / 2), a.drawArrays(a.TRIANGLE_STRIP, 4, this.qd / 2), b.sf++) : a.drawArrays(a.TRIANGLE_STRIP, 0, this.qd)); b.sf++ } }, RY: function() { if (this.$b) { var a, c = this.kh; a = this.li / 100; var d = C(c.x, 1), e = b.K2(d, c, 2 * b.PI * (this.Dd ? a : 1 - a)), f = 0; if (0 == a) e = d, f = 0; else if (1 == a) e = d, f = 4; else { var g = b.eR, h = b.Ua.IH; for (a = 0; a <= h; ++a) { var k = this.SA(a % h), m = this.SA((a + (h - 1)) % h); 0 == a ? m = b.uO(k, m, 1 - c.x) : 4 == a && (k = b.uO(k, m, 1 - c.x)); var p = C(0, 0); b.zF(k, m, c, e, p) && (0 != a && 4 != a || 0 <= p.x && 1 >= p.x) && 0 <= p.y && p.y < g && (g = p.y, f = a) } e = b.Hi(c, b.Ii(b.Jd(e, c), g)) } g = !0; this.qd != f + 3 && (g = !1, this.pf = this.zc = null, this.qd = 0); if (!this.zc) { h = this.qd = f + 3; k = b.yd.BYTES_PER_ELEMENT; this.pf = new ArrayBuffer(h * k); m = []; for (a = 0; a < h; a++) m[a] = new b.yd(null, null, null, this.pf, a * k); this.zc = m; if (!this.zc) { b.log("cc.ProgressTimer._updateRadial() : Not enough memory"); return } } this.bc(); h = this.zc; if (!g) for (h[0].m = this.oe(c), h[0].f = this.pe(c), h[1].m = this.oe(d), h[1].f = this.pe(d), a = 0; a < f; a++) c = this.SA(a), h[a + 2].m = this.oe(c), h[a + 2].f = this.pe(c); h[this.qd - 1].m = this.oe(e); h[this.qd - 1].f = this.pe(e) } }, LY: function() { if (this.$b) { var a, c = this.li / 100, d = this.Hl, d = b.Ii(C(1 - d.x + c * d.x, 1 - d.y + c * d.y), 0.5), c = b.Jd(this.kh, d), d = b.Hi(this.kh, d); 0 > c.x && (d.x += -c.x, c.x = 0); 1 < d.x && (c.x -= d.x - 1, d.x = 1); 0 > c.y && (d.y += -c.y, c.y = 0); 1 < d.y && (c.y -= d.y - 1, d.y = 1); if (this.Dd) { if (!this.zc) { this.qd = 8; var e = b.yd.BYTES_PER_ELEMENT; this.pf = new ArrayBuffer(8 * e); var f = []; for (a = 0; 8 > a; a++) f[a] = new b.yd(null, null, null, this.pf, a * e); f[0].m = this.oe(C(0, 1)); f[0].f = this.pe(C(0, 1)); f[1].m = this.oe(C(0, 0)); f[1].f = this.pe(C(0, 0)); f[6].m = this.oe(C(1, 1)); f[6].f = this.pe(C(1, 1)); f[7].m = this.oe(C(1, 0)); f[7].f = this.pe(C(1, 0)); this.zc = f } a = this.zc; a[2].m = this.oe(C(c.x, d.y)); a[2].f = this.pe(C(c.x, d.y)); a[3].m = this.oe(C(c.x, c.y)); a[3].f = this.pe(C(c.x, c.y)); a[4].m = this.oe(C(d.x, d.y)); a[4].f = this.pe(C(d.x, d.y)); a[5].m = this.oe(C(d.x, c.y)); a[5].f = this.pe(C(d.x, c.y)) } else { if (!this.zc) for (this.qd = 4, e = b.yd.BYTES_PER_ELEMENT, this.pf = new ArrayBuffer(4 * e), this.zc = [], a = 0; 4 > a; a++) this.zc[a] = new b.yd(null, null, null, this.pf, a * e); a = this.zc; a[0].m = this.oe(C(c.x, d.y)); a[0].f = this.pe(C(c.x, d.y)); a[1].m = this.oe(C(c.x, c.y)); a[1].f = this.pe(C(c.x, c.y)); a[2].m = this.oe(C(d.x, d.y)); a[2].f = this.pe(C(d.x, d.y)); a[3].m = this.oe(C(d.x, c.y)); a[3].f = this.pe(C(d.x, c.y)) } this.bc() } }, bc: function() { if (this.$b && this.zc) { for (var a = this.$b.quad.K.s, c = this.zc, d = 0, e = this.qd; d < e; ++d) c[d].s = a; this.Zr = !0 } }, yD: null, NY: function() { var a = this.$b, c = a.width, d = a.height, e = this.kh; if (this.kc == b.Ua.Uh) { this.Je = Math.round(Math.sqrt(c * c + d * d)); var f, g = !1, h = this.Cv; h.x = c * e.x; h.y = -d * e.y; this.Dd ? (f = 270, e = 270 - 3.6 * this.li) : (e = -90, f = -90 + 3.6 * this.li); a.Lb && (h.x -= 2 * c * this.kh.x, e = -e - 180, f = -f - 180, g = !g); a.Mb && (h.y += 2 * d * this.kh.y, g = !g, e = -e, f = -f); this.jD = e; this.kB = f; this.cB = g } else { f = this.Hl; h = this.li / 100; g = this.NA; f = N(c * (1 - f.x), d * (1 - f.y)); var h = N((c - f.width) * h, (d - f.height) * h), h = N(f.width + h.width, f.height + h.height), k = C(c * e.x, d * e.y); f = k.x - h.width / 2; 0.5 < e.x && h.width / 2 >= c - k.x && (f = c - h.width); c = k.y - h.height / 2; 0.5 < e.y && h.height / 2 >= d - k.y && (c = d - h.height); g.x = 0; d = 1; a.Lb && (g.x -= h.width, d = -1); 0 < f && (g.x += f * d); g.y = 0; d = 1; a.Mb && (g.y += h.height, d = -1); 0 < c && (g.y -= c * d); g.width = h.width; g.height = -h.height } }, OY: function() { var a = this.kc; a === b.Ua.Uh ? this.RY() : a === b.Ua.Dl && this.LY(); this.Zr = !0 } }); n = b.Ua.prototype; b.A == b.U ? (n.ctor = n.Sq, n.qP = n.dY, n.py = n.jY, n.gG = n.rY, n.ZF = n.bY, n.NN = n.jK, n.Y = n.aj, n.yD = n.OY) : (n.ctor = n.Rq, n.qP = n.cY, n.py = n.iY, n.gG = n.qY, n.ZF = n.aY, n.NN = n.iK, n.Y = n.Ll, n.yD = b.Ua.prototype.NY); b.i(n, "midPoint", n.z0, n.i4); b.i(n, "barChangeRate", n.Q_, n.N3); b.i(n, "type", n.OE, n.gG); b.i(n, "percentage", n.G0, n.n4); b.i(n, "sprite", n.oN, n.py); b.i(n, "reverseDir", n.I1, n.ZF); b.Ua.create = function(a) { return new b.Ua(a) }; b.Ua.IH = 4; b.Ua.BT = 75; b.Ua.Uh = 0; b.Ua.Dl = 1; b.xz = b.u.extend({ pd: 0, Rc: 0, ctor: function(a, c) { b.u.prototype.ctor.call(this); this.Rc = this.pd = 0; void 0 !== c && this.d(a, c) }, d: function(a, c) { return b.u.prototype.d.call(this, a) ? (this.pd = c, !0) : !1 }, j: function() { var a = new b.xz; a.d(this.o, this.pd); return a }, reverse: function() { b.log("cc.ProgressTo.reverse(): reverse hasn't been supported."); return null }, v: function(a) { b.u.prototype.v.call(this, a); this.Rc = a.percentage; 100 == this.Rc && (this.Rc = 0) }, update: function(a) { this.target instanceof b.Ua && (this.target.percentage = this.Rc + (this.pd - this.Rc) * a) } }); b.e3 = function(a, c) { return new b.xz(a, c) }; b.xz.create = b.e3; b.Wt = b.u.extend({ pd: 0, Rc: 0, ctor: function(a, c, d) { b.u.prototype.ctor.call(this); this.Rc = this.pd = 0; void 0 !== d && this.d(a, c, d) }, d: function(a, c, d) { return b.u.prototype.d.call(this, a) ? (this.pd = d, this.Rc = c, !0) : !1 }, j: function() { var a = new b.Wt; a.d(this.o, this.Rc, this.pd); return a }, reverse: function() { return b.Wt.create(this.o, this.pd, this.Rc) }, v: function(a) { b.u.prototype.v.call(this, a) }, update: function(a) { this.target instanceof b.Ua && (this.target.percentage = this.Rc + (this.pd - this.Rc) * a) } }); b.AO = function(a, c, d) { return new b.Wt(a, c, d) }; b.Wt.create = b.AO; b.sq = 4208917214; b.w8 = 0; b.$j = 1; b.ku = 0; b.v8 = 1; b.ca = b.Zj.extend({ la: null, bb: null, o: null, ih: !1, sK: !1, vb: "TransitionScene", ctor: function(a, c) { b.Zj.prototype.ctor.call(this); void 0 !== a && void 0 !== c && this.d(a, c) }, oL: function() { this.an(this.oL); var a = b.I; this.sK = a.Jk; a.dy(this.la); b.ra.ve(!0); this.bb.visible = !0 }, ri: function() { this.ih = !0 }, Y: function() { this.ih ? (this.bb.R(), this.la.R()) : (this.la.R(), this.bb.R()) }, Z: function() { b.k.prototype.Z.call(this); b.ra.ve(!1); this.bb.Xf(); this.la.Z() }, sb: function() { b.k.prototype.sb.call(this); b.ra.ve(!0); this.bb.sb(); this.la.Mh() }, Qe: function() { b.k.prototype.Qe.call(this); this.sK && this.bb.Qe() }, d: function(a, c) { if (!c) throw "cc.TransitionScene.initWithDuration(): Argument scene must be non-nil"; if (this.da()) { this.o = a; this.Ic({ x: 0, y: 0, anchorX: 0, anchorY: 0 }); this.la = c; this.bb = b.I.cd; this.bb || (this.bb = b.Zj.create(), this.bb.da()); if (this.la == this.bb) throw "cc.TransitionScene.initWithDuration(): Incoming scene must be different from the outgoing scene"; this.ri(); return !0 } return !1 }, finish: function() { this.la.Ic({ visible: !0, x: 0, y: 0, scale: 1, rotation: 0 }); b.A === b.U && this.la.Jm().restore(); this.bb.Ic({ visible: !1, x: 0, y: 0, scale: 1, rotation: 0 }); b.A === b.U && this.bb.Jm().restore(); this.Um(this.oL, 0) }, cx: function() { this.la.visible = !0; this.bb.visible = !1 } }); b.ca.create = function(a, c) { return new b.ca(a, c) }; b.cf = b.ca.extend({ Xl: 0, ctor: function(a, c, d) { b.ca.prototype.ctor.call(this); void 0 != d && this.d(a, c, d) }, d: function(a, c, d) { b.ca.prototype.d.call(this, a, c) && (this.Xl = d); return !0 } }); b.cf.create = function(a, c, d) { return new b.cf(a, c, d) }; b.iI = b.ca.extend({ ctor: function(a, c) { b.ca.prototype.ctor.call(this); c && this.d(a, c) }, Z: function() { b.ca.prototype.Z.call(this); this.la.Ic({ scale: 0.001, anchorX: 0.5, anchorY: 0.5 }); this.bb.Ic({ scale: 1, anchorX: 0.5, anchorY: 0.5 }); var a = b.Ka.create(b.af.create(b.cu.create(this.o / 2, 0.001), b.Zt.create(this.o / 2, 720)), b.xd.create(this.o / 2)); this.bb.ea(a); this.la.ea(b.Ka.create(a.reverse(), b.Tb.create(this.finish, this))) } }); b.iI.create = function(a, c) { return new b.iI(a, c) }; b.ZH = b.ca.extend({ ctor: function(a, c) { b.ca.prototype.ctor.call(this); c && this.d(a, c) }, Z: function() { b.ca.prototype.Z.call(this); var a = b.I.Aa(); this.la.Ic({ scale: 0.5, x: a.width, y: 0, anchorX: 0.5, anchorY: 0.5 }); this.bb.anchorX = 0.5; this.bb.anchorY = 0.5; var c = b.Wj.create(this.o / 4, C(-a.width, 0), a.width / 4, 2), d = b.Pd.create(this.o / 4, 1), a = b.Pd.create(this.o / 4, 0.5), a = b.Ka.create(a, c), c = b.Ka.create(c, d), d = b.xd.create(this.o / 2); this.bb.ea(a); this.la.ea(b.Ka.create(d, c, b.Tb.create(this.finish, this))) } }); b.ZH.create = function(a, c) { return new b.ZH(a, c) }; b.dk = b.ca.extend({ ctor: function(a, c) { b.ca.prototype.ctor.call(this); c && this.d(a, c) }, Z: function() { b.ca.prototype.Z.call(this); this.Dj(); var a = this.action(); this.la.ea(b.Ka.create(this.Tf(a), b.Tb.create(this.finish, this))) }, Dj: function() { this.la.P(-b.I.Aa().width, 0) }, action: function() { return b.Rt.create(this.o, C(0, 0)) }, Tf: function(a) { return b.tl.create(a, 2) } }); b.dk.create = function(a, c) { return new b.dk(a, c) }; b.aI = b.dk.extend({ ctor: function(a, c) { b.dk.prototype.ctor.call(this); c && this.d(a, c) }, Dj: function() { this.la.P(b.I.Aa().width, 0) } }); b.aI.create = function(a, c) { return new b.aI(a, c) }; b.bI = b.dk.extend({ ctor: function(a, c) { b.dk.prototype.ctor.call(this); c && this.d(a, c) }, Dj: function() { this.la.P(0, b.I.Aa().height) } }); b.bI.create = function(a, c) { return new b.bI(a, c) }; b.$H = b.dk.extend({ ctor: function(a, c) { b.dk.prototype.ctor.call(this); c && this.d(a, c) }, Dj: function() { this.la.P(0, -b.I.Aa().height) } }); b.$H.create = function(a, c) { return new b.$H(a, c) }; b.Uj = 0.5; b.ek = b.ca.extend({ ctor: function(a, c) { b.ca.prototype.ctor.call(this); c && this.d(a, c) }, ri: function() { this.ih = !1 }, Z: function() { b.ca.prototype.Z.call(this); this.Dj(); var a = this.action(), c = this.action(), a = this.Tf(a), c = b.Ka.create(this.Tf(c), b.Tb.create(this.finish, this)); this.la.ea(a); this.bb.ea(c) }, Dj: function() { this.la.P(-b.I.Aa().width + b.Uj, 0) }, action: function() { return b.Zg.create(this.o, C(b.I.Aa().width - b.Uj, 0)) }, Tf: function(a) { return b.tl.create(a, 2) } }); b.ek.create = function(a, c) { return new b.ek(a, c) }; b.lI = b.ek.extend({ ctor: function(a, c) { b.ek.prototype.ctor.call(this); c && this.d(a, c) }, ri: function() { this.ih = !0 }, Dj: function() { this.la.P(b.I.Aa().width - b.Uj, 0) }, action: function() { return b.Zg.create(this.o, C(-(b.I.Aa().width - b.Uj), 0)) } }); b.lI.create = function(a, c) { return new b.lI(a, c) }; b.kI = b.ek.extend({ ctor: function(a, c) { b.ek.prototype.ctor.call(this); c && this.d(a, c) }, ri: function() { this.ih = !1 }, Dj: function() { this.la.P(0, -(b.I.Aa().height - b.Uj)) }, action: function() { return b.Zg.create(this.o, C(0, b.I.Aa().height - b.Uj)) } }); b.kI.create = function(a, c) { return new b.kI(a, c) }; b.mI = b.ek.extend({ ctor: function(a, c) { b.ek.prototype.ctor.call(this); c && this.d(a, c) }, ri: function() { this.ih = !0 }, Dj: function() { this.la.P(0, b.I.Aa().height - b.Uj) }, action: function() { return b.Zg.create(this.o, C(0, -(b.I.Aa().height - b.Uj))) } }); b.mI.create = function(a, c) { return new b.mI(a, c) }; b.jI = b.ca.extend({ ctor: function(a, c) { b.ca.prototype.ctor.call(this); c && this.d(a, c) }, Z: function() { b.ca.prototype.Z.call(this); this.la.Ic({ scale: 0.001, anchorX: 2 / 3, anchorY: 0.5 }); this.bb.Ic({ scale: 1, anchorX: 1 / 3, anchorY: 0.5 }); var a = b.Pd.create(this.o, 0.01), c = b.Pd.create(this.o, 1); this.la.ea(this.Tf(c)); this.bb.ea(b.Ka.create(this.Tf(a), b.Tb.create(this.finish, this))) }, Tf: function(a) { return b.tl.create(a, 2) } }); b.jI.create = function(a, c) { return new b.jI(a, c) }; b.XH = b.cf.extend({ ctor: function(a, c, d) { b.cf.prototype.ctor.call(this); d = d || b.$j; c && this.d(a, c, d) }, Z: function() { b.ca.prototype.Z.call(this); var a, c; this.la.visible = !1; var d; this.Xl === b.$j ? (a = 90, d = 270, c = 90) : (a = -90, d = 90, c = -90); a = b.Ka.create(b.xd.create(this.o / 2), b.pg.create(), b.ye.create(this.o / 2, 1, 0, d, a, 0, 0), b.Tb.create(this.finish, this)); c = b.Ka.create(b.ye.create(this.o / 2, 1, 0, 0, c, 0, 0), b.Sh.create(), b.xd.create(this.o / 2)); this.la.ea(a); this.bb.ea(c) } }); b.XH.create = function(a, c, d) { return new b.XH(a, c, d) }; b.YH = b.cf.extend({ ctor: function(a, c, d) { b.cf.prototype.ctor.call(this); d = d || b.ku; c && this.d(a, c, d) }, Z: function() { b.ca.prototype.Z.call(this); var a, c; this.la.visible = !1; var d; this.Xl == b.ku ? (a = 90, d = 270, c = 90) : (a = -90, d = 90, c = -90); a = b.Ka.create(b.xd.create(this.o / 2), b.pg.create(), b.ye.create(this.o / 2, 1, 0, d, a, 90, 0), b.Tb.create(this.finish, this)); c = b.Ka.create(b.ye.create(this.o / 2, 1, 0, 0, c, 90, 0), b.Sh.create(), b.xd.create(this.o / 2)); this.la.ea(a); this.bb.ea(c) } }); b.YH.create = function(a, c, d) { return new b.YH(a, c, d) }; b.WH = b.cf.extend({ ctor: function(a, c, d) { b.cf.prototype.ctor.call(this); d = d || b.$j; c && this.d(a, c, d) }, Z: function() { b.ca.prototype.Z.call(this); var a, c; this.la.visible = !1; var d; this.Xl === b.$j ? (a = 90, d = 270, c = 90) : (a = -90, d = 90, c = -90); a = b.Ka.create(b.xd.create(this.o / 2), b.pg.create(), b.ye.create(this.o / 2, 1, 0, d, a, -45, 0), b.Tb.create(this.finish, this)); c = b.Ka.create(b.ye.create(this.o / 2, 1, 0, 0, c, 45, 0), b.Sh.create(), b.xd.create(this.o / 2)); this.la.ea(a); this.bb.ea(c) } }); b.WH.create = function(a, c, d) { return new b.WH(a, c, d) }; b.qI = b.cf.extend({ ctor: function(a, c, d) { b.cf.prototype.ctor.call(this); d = d || b.$j; c && this.d(a, c, d) }, Z: function() { b.ca.prototype.Z.call(this); var a, c; this.la.visible = !1; var d; this.Xl === b.$j ? (a = 90, d = 270, c = 90) : (a = -90, d = 90, c = -90); a = b.Ka.create(b.xd.create(this.o / 2), b.af.create(b.ye.create(this.o / 2, 1, 0, d, a, 0, 0), b.Pd.create(this.o / 2, 1), b.pg.create()), b.Tb.create(this.finish, this)); c = b.Ka.create(b.af.create(b.ye.create(this.o / 2, 1, 0, 0, c, 0, 0), b.Pd.create(this.o / 2, 0.5)), b.Sh.create(), b.xd.create(this.o / 2)); this.la.scale = 0.5; this.la.ea(a); this.bb.ea(c) } }); b.qI.create = function(a, c, d) { return new b.qI(a, c, d) }; b.rI = b.cf.extend({ ctor: function(a, c, d) { b.cf.prototype.ctor.call(this); d = d || b.ku; c && this.d(a, c, d) }, Z: function() { b.ca.prototype.Z.call(this); var a, c; this.la.visible = !1; var d; this.Xl === b.ku ? (a = 90, d = 270, c = 90) : (a = -90, d = 90, c = -90); a = b.Ka.create(b.xd.create(this.o / 2), b.af.create(b.ye.create(this.o / 2, 1, 0, d, a, 90, 0), b.Pd.create(this.o / 2, 1), b.pg.create()), b.Tb.create(this.finish, this)); c = b.Ka.create(b.af.create(b.ye.create(this.o / 2, 1, 0, 0, c, 90, 0), b.Pd.create(this.o / 2, 0.5)), b.Sh.create(), b.xd.create(this.o / 2)); this.la.scale = 0.5; this.la.ea(a); this.bb.ea(c) } }); b.rI.create = function(a, c, d) { return new b.rI(a, c, d) }; b.pI = b.cf.extend({ ctor: function(a, c, d) { b.cf.prototype.ctor.call(this); d = d || b.$j; c && this.d(a, c, d) }, Z: function() { b.ca.prototype.Z.call(this); var a, c; this.la.visible = !1; var d; this.Xl === b.$j ? (a = 90, d = 270, c = 90) : (a = -90, d = 90, c = -90); a = b.Ka.create(b.xd.create(this.o / 2), b.af.create(b.ye.create(this.o / 2, 1, 0, d, a, -45, 0), b.Pd.create(this.o / 2, 1), b.pg.create()), b.pg.create(), b.Tb.create(this.finish, this)); c = b.Ka.create(b.af.create(b.ye.create(this.o / 2, 1, 0, 0, c, 45, 0), b.Pd.create(this.o / 2, 0.5)), b.Sh.create(), b.xd.create(this.o / 2)); this.la.scale = 0.5; this.la.ea(a); this.bb.ea(c) } }); b.pI.create = function(a, c, d) { return new b.pI(a, c, d) }; b.SH = b.ca.extend({ fe: null, ctor: function(a, c, d) { b.ca.prototype.ctor.call(this); this.fe = b.color(); c && this.d(a, c, d) }, Z: function() { b.ca.prototype.Z.call(this); var a = b.Yc.create(this.fe); this.la.visible = !1; this.X(a, 2, b.sq); var a = this.Eh(b.sq), c = b.Ka.create(b.fq.create(this.o / 2), b.Tb.create(this.cx, this), b.gq.create(this.o / 2), b.Tb.create(this.finish, this)); a.ea(c) }, sb: function() { b.ca.prototype.sb.call(this); this.Wx(b.sq, !1) }, d: function(a, c, d) { d = d || b.color.BLACK; b.ca.prototype.d.call(this, a, c) && (this.fe.r = d.r, this.fe.g = d.g, this.fe.b = d.b, this.fe.a = 0); return !0 } }); b.SH.create = function(a, c, d) { return new b.SH(a, c, d) }; b.RH = b.ca.extend({ ctor: function(a, c) { b.ca.prototype.ctor.call(this); c && this.d(a, c) }, Z: function() { b.ca.prototype.Z.call(this); var a = b.color(0, 0, 0, 0), c = b.I.Aa(), a = b.Yc.create(a), d = b.sn.create(c.width, c.height); if (null != d) { d.sprite.anchorX = 0.5; d.sprite.anchorY = 0.5; d.Ic({ x: c.width / 2, y: c.height / 2, anchorX: 0.5, anchorY: 0.5 }); d.Ah(); this.la.R(); d.end(); var e = b.sn.create(c.width, c.height); e.P(c.width / 2, c.height / 2); e.sprite.anchorX = e.anchorX = 0.5; e.sprite.anchorY = e.anchorY = 0.5; e.Ah(); this.bb.R(); e.end(); d.sprite.Se(b.ONE, b.ONE); e.sprite.Se(b.SRC_ALPHA, b.ONE_MINUS_SRC_ALPHA); a.X(d); a.X(e); d.sprite.opacity = 255; e.sprite.opacity = 255; c = b.Ka.create(b.Ti.create(this.o, 0), b.Tb.create(this.cx, this), b.Tb.create(this.finish, this)); e.sprite.ea(c); this.X(a, 2, b.sq) } }, sb: function() { this.Wx(b.sq, !1); b.ca.prototype.sb.call(this) }, Y: function() {} }); b.RH.create = function(a, c) { return new b.RH(a, c) }; b.oI = b.ca.extend({ ctor: function(a, c) { b.ca.prototype.ctor.call(this); c && this.d(a, c) }, ri: function() { this.ih = !1 }, Z: function() { b.ca.prototype.Z.call(this); var a = b.I.Aa(), a = b.lA.create(this.o, N(0 | a.width / a.height * 12, 12)), a = this.Tf(a); this.bb.ea(b.Ka.create(a, b.Tb.create(this.finish, this), b.zl.create())) }, Tf: function(a) { return a } }); b.oI.create = function(a, c) { return new b.oI(a, c) }; b.nu = b.ca.extend({ ctor: function(a, c) { b.ca.prototype.ctor.call(this); c && this.d(a, c) }, Z: function() { b.ca.prototype.Z.call(this); this.la.visible = !1; var a = this.action(), a = b.Ka.create(a, b.Tb.create(this.cx, this), a.reverse()); this.ea(b.Ka.create(this.Tf(a), b.Tb.create(this.finish, this), b.zl.create())) }, Tf: function(a) { return b.Wp.create(a, 3) }, action: function() { return b.Sz.create(this.o / 2, 3) } }); b.nu.create = function(a, c) { return new b.nu(a, c) }; b.nI = b.nu.extend({ ctor: function(a, c) { b.nu.prototype.ctor.call(this); c && this.d(a, c) }, action: function() { return b.Tz.create(this.o / 2, 3) } }); b.nI.create = function(a, c) { return new b.nI(a, c) }; b.ck = b.ca.extend({ ctor: function(a, c) { b.ca.prototype.ctor.call(this); c && this.d(a, c) }, ri: function() { this.ih = !1 }, Z: function() { b.ca.prototype.Z.call(this); var a = b.I.Aa(), a = this.Jo(N(0 | a.width / a.height * 12, 12)); this.bb.ea(b.Ka.create(this.Tf(a), b.Tb.create(this.finish, this), b.zl.create())) }, Tf: function(a) { return a }, Jo: function(a) { return b.hq.create(this.o, a) } }); b.ck.create = function(a, c) { return new b.ck(a, c) }; b.TH = b.ck.extend({ ctor: function(a, c) { b.ck.prototype.ctor.call(this); c && this.d(a, c) }, Jo: function(a) { return b.$y.create(this.o, a) } }); b.TH.create = function(a, c) { return new b.TH(a, c) }; b.VH = b.ck.extend({ ctor: function(a, c) { b.ck.prototype.ctor.call(this); c && this.d(a, c) }, Jo: function(a) { return b.Nt.create(this.o, a) } }); b.VH.create = function(a, c) { return new b.VH(a, c) }; b.UH = b.ck.extend({ ctor: function(a, c) { b.ck.prototype.ctor.call(this); c && this.d(a, c) }, Jo: function(a) { return b.az.create(this.o, a) } }); b.UH.create = function(a, c) { return new b.UH(a, c) }; b.AH = 49153; b.bf = b.ca.extend({ pd: 0, Rc: 0, Tv: null, vb: "TransitionProgress", ctor: function(a, c) { b.ca.prototype.ctor.call(this); c && this.d(a, c) }, dm: function(a, c, d) { a.Ic({ x: c, y: d, anchorX: 0.5, anchorY: 0.5 }) }, Z: function() { b.ca.prototype.Z.call(this); this.uL(); var a = b.I.Aa(), c = b.sn.create(a.width, a.height); c.sprite.anchorX = 0.5; c.sprite.anchorY = 0.5; this.dm(c, a.width / 2, a.height / 2); c.clear(0, 0, 0, 1); c.Ah(); this.Tv.R(); c.end(); this.Tv == this.bb && this.cx(); a = this.Zl(c); c = b.oc(b.AO(this.o, this.Rc, this.pd), b.Xk(this.finish, this)); a.ea(c); this.X(a, 2, b.AH) }, sb: function() { this.Wx(b.AH, !0); b.ca.prototype.sb.call(this) }, uL: function() { this.Tv = this.bb; this.Rc = 100; this.pd = 0 }, Zl: function() { b.log("cc.TransitionProgress._progressTimerNodeWithRenderTexture(): should be overridden in subclass"); return null }, ri: function() { this.ih = !1 } }); b.bf.create = function(a, c) { return new b.bf(a, c) }; b.gI = b.bf.extend({ ctor: function(a, c) { b.bf.prototype.ctor.call(this); c && this.d(a, c) }, Zl: function(a) { var c = b.I.Aa(); a = b.Ua.create(a.sprite); b.A === b.U && (a.sprite.flippedY = !0); a.type = b.Ua.Uh; a.reverseDir = !1; a.percentage = 100; this.dm(a, c.width / 2, c.height / 2); return a } }); b.gI.create = function(a, c) { return new b.gI(a, c) }; b.kA = b.bf.extend({ ctor: function(a, c) { b.bf.prototype.ctor.call(this); c && this.d(a, c) }, Zl: function(a) { var c = b.I.Aa(); a = b.Ua.create(a.sprite); b.A === b.U && (a.sprite.flippedY = !0); a.type = b.Ua.Uh; a.reverseDir = !0; a.percentage = 100; this.dm(a, c.width / 2, c.height / 2); return a } }); b.kA.create = function(a, c) { var d = new b.kA; return null != d && d.d(a, c) ? d : new b.kA(a, c) }; b.dI = b.bf.extend({ ctor: function(a, c) { b.bf.prototype.ctor.call(this); c && this.d(a, c) }, Zl: function(a) { var c = b.I.Aa(); a = b.Ua.create(a.sprite); b.A === b.U && (a.sprite.flippedY = !0); a.type = b.Ua.Dl; a.midPoint = C(1, 0); a.barChangeRate = C(1, 0); a.percentage = 100; this.dm(a, c.width / 2, c.height / 2); return a } }); b.dI.create = function(a, c) { return new b.dI(a, c) }; b.hI = b.bf.extend({ ctor: function(a, c) { b.bf.prototype.ctor.call(this); c && this.d(a, c) }, Zl: function(a) { var c = b.I.Aa(); a = b.Ua.create(a.sprite); b.A === b.U && (a.sprite.flippedY = !0); a.type = b.Ua.Dl; a.midPoint = C(0, 0); a.barChangeRate = C(0, 1); a.percentage = 100; this.dm(a, c.width / 2, c.height / 2); return a } }); b.hI.create = function(a, c) { return new b.hI(a, c) }; b.eI = b.bf.extend({ ctor: function(a, c) { b.bf.prototype.ctor.call(this); c && this.d(a, c) }, Zl: function(a) { var c = b.I.Aa(); a = b.Ua.create(a.sprite); b.A === b.U && (a.sprite.flippedY = !0); a.type = b.Ua.Dl; a.midPoint = C(0.5, 0.5); a.barChangeRate = C(1, 1); a.percentage = 0; this.dm(a, c.width / 2, c.height / 2); return a }, ri: function() { this.ih = !1 }, uL: function() { this.Tv = this.la; this.Rc = 0; this.pd = 100 } }); b.eI.create = function(a, c) { return new b.eI(a, c) }; b.fI = b.bf.extend({ ctor: function(a, c) { b.bf.prototype.ctor.call(this); c && this.d(a, c) }, Zl: function(a) { var c = b.I.Aa(); a = b.Ua.create(a.sprite); b.A === b.U && (a.sprite.flippedY = !0); a.type = b.Ua.Dl; a.midPoint = C(0.5, 0.5); a.barChangeRate = C(1, 1); a.percentage = 100; this.dm(a, c.width / 2, c.height / 2); return a } }); b.fI.create = function(a, c) { return new b.fI(a, c) }; b.cI = b.ca.extend({ ctor: function(a, c, d) { b.ca.prototype.ctor.call(this); this.d(a, c, d) }, Cu: !0, vb: "TransitionPageTurn", d: function(a, c, d) { this.Cu = d; b.ca.prototype.d.call(this, a, c); return !0 }, Jo: function(a) { return this.Cu ? b.rq.create(b.Vt.create(this.o, a)) : b.Vt.create(this.o, a) }, Z: function() { b.ca.prototype.Z.call(this); var a = b.I.Aa(), c; a.width > a.height ? (a = 16, c = 12) : (a = 12, c = 16); a = this.Jo(N(a, c)); this.Cu ? (this.la.visible = !1, this.la.ea(b.Ka.create(b.pg.create(), a, b.Tb.create(this.finish, this), b.zl.create()))) : this.bb.ea(b.Ka.create(a, b.Tb.create(this.finish, this), b.zl.create())) }, ri: function() { this.ih = this.Cu } }); b.cI.create = function(a, c, d) { return new b.cI(a, c, d) }; b.ja = { name: "Jacob__Codec" }; b.H5 = function() { return b.ja.Ea.Zw.apply(b.ja.Ea, arguments) }; b.I5 = function() { var a = b.ja.rl.vM.apply(b.ja.rl, arguments); return b.ja.Ea.Zw.apply(b.ja.Ea, [a]) }; b.UP = function(a, c) { c = c || 1; var d = this.I5(a), e = [], f, g, h; f = 0; for (h = d.length / c; f < h; f++) for (e[f] = 0, g = c - 1; 0 <= g; --g) e[f] += d.charCodeAt(f * c + g) << 8 * g; return e }; b.Gka = function(a, c) { c = c || 1; var d = this.H5(a), e = [], f, g, h; f = 0; for (h = d.length / c; f < h; f++) for (e[f] = 0, g = c - 1; 0 <= g; --g) e[f] += d.charCodeAt(f * c + g) << 8 * g; return e }; b.h8 = function(a) { a = a.split(","); var c = [], d; for (d = 0; d < a.length; d++) c.push(parseInt(a[d])); return c }; b.ja.rl = { name: "Jacob__Codec__Base64" }; b.ja.rl.pv = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d"; b.ja.rl.vM = function(a) { var c = [], d, e, f, g, h, k = 0; for (a = a.replace(/[^A-Za-z0-9\+\/\=]/g, ""); k < a.length;) d = this.pv.indexOf(a.charAt(k++)), e = this.pv.indexOf(a.charAt(k++)), g = this.pv.indexOf(a.charAt(k++)), h = this.pv.indexOf(a.charAt(k++)), d = d << 2 | e >> 4, e = (e & 15) << 4 | g >> 2, f = (g & 3) << 6 | h, c.push(String.fromCharCode(d)), 64 != g && c.push(String.fromCharCode(e)), 64 != h && c.push(String.fromCharCode(f)); return c = c.join("") }; b.ja.rl.wM = function(a, c) { var d = this.vM(a), e = [], f, g, h; f = 0; for (h = d.length / c; f < h; f++) for (e[f] = 0, g = c - 1; 0 <= g; --g) e[f] += d.charCodeAt(f * c + g) << 8 * g; return e }; b.E5 = function(a) { if (0 != a.length % 4) return null; for (var c = a.length / 4, d = window.G8 ? new Uint32Array(c) : [], e = 0; e < c; e++) { var f = 4 * e; d[e] = a[f] + 256 * a[f + 1] + 65536 * a[f + 2] + 16777216 * a[f + 3] } return d }; b.ja.Ea = function(a) { this.data = a; this.debug = !1; this.Cj = void 0; this.files = 0; this.zy = []; this.UD = Array(32768); this.zh = 0; this.Fx = !1; this.iM = 0; this.yi = 1; this.Mo = 0; this.mp = []; this.MM = void 0; this.Fs = Array(b.ja.Ea.FR); this.Am = Array(32); this.nt = 0; this.vz = null; this.Lh = 0; this.Xo = Array(17); this.Xo[0] = 0; this.RM = this.PM = void 0 }; b.ja.Ea.Zw = function(a) { return (new b.ja.Ea(a)).Zw()[0][0] }; b.ja.Ea.ez = function() { this.zw = this.yw = 0; this.mF = null; this.Q1 = -1 }; b.ja.Ea.FR = 288; b.ja.Ea.cH = 256; b.ja.Ea.SD = [0, 128, 64, 192, 32, 160, 96, 224, 16, 144, 80, 208, 48, 176, 112, 240, 8, 136, 72, 200, 40, 168, 104, 232, 24, 152, 88, 216, 56, 184, 120, 248, 4, 132, 68, 196, 36, 164, 100, 228, 20, 148, 84, 212, 52, 180, 116, 244, 12, 140, 76, 204, 44, 172, 108, 236, 28, 156, 92, 220, 60, 188, 124, 252, 2, 130, 66, 194, 34, 162, 98, 226, 18, 146, 82, 210, 50, 178, 114, 242, 10, 138, 74, 202, 42, 170, 106, 234, 26, 154, 90, 218, 58, 186, 122, 250, 6, 134, 70, 198, 38, 166, 102, 230, 22, 150, 86, 214, 54, 182, 118, 246, 14, 142, 78, 206, 46, 174, 110, 238, 30, 158, 94, 222, 62, 190, 126, 254, 1, 129, 65, 193, 33, 161, 97, 225, 17, 145, 81, 209, 49, 177, 113, 241, 9, 137, 73, 201, 41, 169, 105, 233, 25, 153, 89, 217, 57, 185, 121, 249, 5, 133, 69, 197, 37, 165, 101, 229, 21, 149, 85, 213, 53, 181, 117, 245, 13, 141, 77, 205, 45, 173, 109, 237, 29, 157, 93, 221, 61, 189, 125, 253, 3, 131, 67, 195, 35, 163, 99, 227, 19, 147, 83, 211, 51, 179, 115, 243, 11, 139, 75, 203, 43, 171, 107, 235, 27, 155, 91, 219, 59, 187, 123, 251, 7, 135, 71, 199, 39, 167, 103, 231, 23, 151, 87, 215, 55, 183, 119, 247, 15, 143, 79, 207, 47, 175, 111, 239, 31, 159, 95, 223, 63, 191, 127, 255 ]; b.ja.Ea.sM = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0]; b.ja.Ea.tM = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 99, 99]; b.ja.Ea.rM = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577]; b.ja.Ea.So = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13]; b.ja.Ea.border = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]; b.ja.Ea.prototype.Zw = function() { this.Ss = []; fa(this); return this.zy }; b.ja.Ea.prototype.Q = function() { this.Mo += 8; return this.iM < this.data.length ? this.data.charCodeAt(this.iM++) : -1 }; function ha(a) { var c; a.Mo++; c = a.yi & 1; a.yi >>= 1; 0 == a.yi && (a.yi = a.Q(), c = a.yi & 1, a.yi = a.yi >> 1 | 128); return c } function S(a, c) { for (var d = 0, e = c; e--;) d = d << 1 | ha(a); c && (d = b.ja.Ea.SD[d] >> 8 - c); return d } function ia(a, c) { a.UD[a.zh++] = c; a.Ss.push(String.fromCharCode(c)); 32768 == a.zh && (a.zh = 0) } function ma(a) { for (;;) { if (a.Xo[a.Lh] >= a.RM) return -1; if (a.PM[a.Xo[a.Lh]] == a.Lh) return a.Xo[a.Lh]++; a.Xo[a.Lh]++ } } function na(a) { var c = a.vz[a.nt], d; if (17 == a.Lh) return -1; a.nt++; a.Lh++; d = ma(a); if (0 <= d) c.yw = d; else if (c.yw = 32768, na(a)) return -1; d = ma(a); if (0 <= d) c.zw = d, c.mF = null; else if (c.zw = 32768, c.mF = a.vz[a.nt], c.Q1 = a.nt, na(a)) return -1; a.Lh--; return 0 } function oa(a, c, d, e) { a.vz = c; a.nt = 0; a.PM = e; a.RM = d; for (c = 0; 17 > c; c++) a.Xo[c] = 0; a.Lh = 0; return na(a) ? -1 : 0 } function pa(a, c) { for (var d, e, f = 0, g = c[f];;) if (d = ha(a)) { if (!(g.zw & 32768)) return g.zw; g = g.mF; d = c.length; for (e = 0; e < d; e++) if (c[e] === g) { f = e; break } } else { if (!(g.yw & 32768)) return g.yw; f++; g = c[f] } return -1 } function qa(a) { var c, d, e, f, g; do if (c = ha(a), e = S(a, 2), 0 == e) for (a.yi = 1, e = a.Q(), e |= a.Q() << 8, d = a.Q(), d |= a.Q() << 8, (e ^ ~d) & 65535 && document.write("BlockLen checksum mismatch\n"); e--;) d = a.Q(), ia(a, d); else if (1 == e) for (;;) if (e = b.ja.Ea.SD[S(a, 7)] >> 1, 23 < e ? (e = e << 1 | ha(a), 199 < e ? (e -= 128, e = e << 1 | ha(a)) : (e -= 48, 143 < e && (e += 136))) : e += 256, 256 > e) ia(a, e); else if (256 == e) break; else { var h; e -= 257; g = S(a, b.ja.Ea.tM[e]) + b.ja.Ea.sM[e]; e = b.ja.Ea.SD[S(a, 5)] >> 3; 8 < b.ja.Ea.So[e] ? (h = S(a, 8), h |= S(a, b.ja.Ea.So[e] - 8) << 8) : h = S(a, b.ja.Ea.So[e]); h += b.ja.Ea.rM[e]; for (e = 0; e < g; e++) d = a.UD[a.zh - h & 32767], ia(a, d) } else if (2 == e) { var k = Array(320); d = 257 + S(a, 5); h = 1 + S(a, 5); f = 4 + S(a, 4); for (e = 0; 19 > e; e++) k[e] = 0; for (e = 0; e < f; e++) k[b.ja.Ea.border[e]] = S(a, 3); g = a.Am.length; for (f = 0; f < g; f++) a.Am[f] = new b.ja.Ea.ez; if (oa(a, a.Am, 19, k)) { a.zh = 0; return } g = d + h; f = 0; for (var m = -1; f < g;) if (m++, e = pa(a, a.Am), 16 > e) k[f++] = e; else if (16 == e) { var p; e = 3 + S(a, 2); if (f + e > g) { a.zh = 0; return } for (p = f ? k[f - 1] : 0; e--;) k[f++] = p } else { e = 17 == e ? 3 + S(a, 3) : 11 + S(a, 7); if (f + e > g) { a.zh = 0; return } for (; e--;) k[f++] = 0 } g = a.Fs.length; for (f = 0; f < g; f++) a.Fs[f] = new b.ja.Ea.ez; if (oa(a, a.Fs, d, k)) { a.zh = 0; return } g = a.Fs.length; for (f = 0; f < g; f++) a.Am[f] = new b.ja.Ea.ez; e = []; for (f = d; f < k.length; f++) e[f - d] = k[f]; if (oa(a, a.Am, h, e)) { a.zh = 0; return } for (;;) if (e = pa(a, a.Fs), 256 <= e) { e -= 256; if (0 == e) break; e--; g = S(a, b.ja.Ea.tM[e]) + b.ja.Ea.sM[e]; e = pa(a, a.Am); 8 < b.ja.Ea.So[e] ? (h = S(a, 8), h |= S(a, b.ja.Ea.So[e] - 8) << 8) : h = S(a, b.ja.Ea.So[e]); for (h += b.ja.Ea.rM[e]; g--;) d = a.UD[a.zh - h & 32767], ia(a, d) } else ia(a, e) } while (!c); a.zh = 0; a.yi = 1 } function fa(a) { a.Ss = []; a.Fx = !1; var c = []; c[0] = a.Q(); c[1] = a.Q(); 120 == c[0] && 218 == c[1] && (qa(a), a.zy[a.files] = [a.Ss.join(""), "geonext.gxt"], a.files++); 31 == c[0] && 139 == c[1] && (ra(a), a.zy[a.files] = [a.Ss.join(""), "file"], a.files++); if (80 == c[0] && 75 == c[1] && (a.Fx = !0, c[2] = a.Q(), c[3] = a.Q(), 3 == c[2] && 4 == c[3])) { c[0] = a.Q(); c[1] = a.Q(); a.Cj = a.Q(); a.Cj |= a.Q() << 8; c = a.Q(); c |= a.Q() << 8; a.Q(); a.Q(); a.Q(); a.Q(); a.Q(); a.Q(); a.Q(); a.Q(); a.Q(); a.Q(); a.Q(); a.Q(); var d = a.Q(), d = d | a.Q() << 8, e = a.Q(), e = e | a.Q() << 8, f = 0; for (a.mp = []; d--;) { var g = a.Q(); "/" == g | ":" == g ? f = 0 : f < b.ja.Ea.cH - 1 && (a.mp[f++] = String.fromCharCode(g)) } a.MM || (a.MM = a.mp); for (var f = 0; f < e;) a.Q(), f++; 8 == c && (qa(a), a.zy[a.files] = [a.Ss.join(""), a.mp.join("")], a.files++); ra(a) } } function ra(a) { var c = [], d; a.Cj & 8 && (c[0] = a.Q(), c[1] = a.Q(), c[2] = a.Q(), c[3] = a.Q(), a.Q(), a.Q(), a.Q(), a.Q(), a.Q(), a.Q(), a.Q(), a.Q()); a.Fx && fa(a); c[0] = a.Q(); if (8 == c[0]) { a.Cj = a.Q(); a.Q(); a.Q(); a.Q(); a.Q(); a.Q(); a.Q(); if (a.Cj & 4) for (c[0] = a.Q(), c[2] = a.Q(), a.Lh = c[0] + 256 * c[1], c = 0; c < a.Lh; c++) a.Q(); if (a.Cj & 8) for (c = 0, a.mp = []; d = a.Q();) { if ("7" == d || ":" == d) c = 0; c < b.ja.Ea.cH - 1 && (a.mp[c++] = d) } if (a.Cj & 16) for (; a.Q();); a.Cj & 2 && (a.Q(), a.Q()); qa(a); a.Q(); a.Q(); a.Q(); a.Q(); a.Fx && fa(a) } }; /* zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */ (function() { function a(a) { throw a; } function c(a, c) { var d = a.split("."), e = E; d[0] in e || !e.execScript || e.execScript("var " + d[0]); for (var f; d.length && (f = d.shift());) d.length || c === G ? e = e[f] ? e[f] : e[f] = {} : e[f] = c } function d(a) { if ("string" === typeof a) { a = a.split(""); var c, d; c = 0; for (d = a.length; c < d; c++) a[c] = (a[c].charCodeAt(0) & 255) >>> 0 } c = 1; d = 0; for (var e = a.length, f, g = 0; 0 < e;) { f = 1024 < e ? 1024 : e; e -= f; do c += a[g++], d += c; while (--f); c %= 65521; d %= 65521 } return (d << 16 | c) >>> 0 } function e(c, d) { this.index = "number" === typeof d ? d : 0; this.zs = 0; this.buffer = c instanceof(A ? Uint8Array : Array) ? c : new(A ? Uint8Array : Array)(32768); 2 * this.buffer.length <= this.index && a(Error("invalid index")); this.buffer.length <= this.index && this.Ch() } function f(a) { this.buffer = new(A ? Uint16Array : Array)(2 * a); this.length = 0 } function g(a) { var c = a.length, d = 0, e = Number.POSITIVE_INFINITY, f, g, h, k, m, p, r, s, t; for (s = 0; s < c; ++s) a[s] > d && (d = a[s]), a[s] < e && (e = a[s]); f = 1 << d; g = new(A ? Uint32Array : Array)(f); h = 1; k = 0; for (m = 2; h <= d;) { for (s = 0; s < c; ++s) if (a[s] === h) { p = 0; r = k; for (t = 0; t < h; ++t) p = p << 1 | r & 1, r >>= 1; for (t = p; t < f; t += m) g[t] = h << 16 | s; ++k }++h; k <<= 1; m <<= 1 } return [g, d, e] } function h(a, c) { this.fp = P; this.D = 0; this.input = a; this.b = 0; c && (c.r2 && (this.D = c.r2), "number" === typeof c.gE && (this.fp = c.gE), c.Nx && (this.a = A && c.Nx instanceof Array ? new Uint8Array(c.Nx) : c.Nx), "number" === typeof c.H2 && (this.b = c.H2)); this.a || (this.a = new(A ? Uint8Array : Array)(32768)) } function k(a, c) { this.length = a; this.gR = c } function m() { var c = R; switch (I) { case 3 === c: return [257, c - 3, 0]; case 4 === c: return [258, c - 4, 0]; case 5 === c: return [259, c - 5, 0 ]; case 6 === c: return [260, c - 6, 0]; case 7 === c: return [261, c - 7, 0]; case 8 === c: return [262, c - 8, 0]; case 9 === c: return [263, c - 9, 0]; case 10 === c: return [264, c - 10, 0]; case 12 >= c: return [265, c - 11, 1]; case 14 >= c: return [266, c - 13, 1]; case 16 >= c: return [267, c - 15, 1]; case 18 >= c: return [268, c - 17, 1]; case 22 >= c: return [269, c - 19, 2]; case 26 >= c: return [270, c - 23, 2]; case 30 >= c: return [271, c - 27, 2]; case 34 >= c: return [272, c - 31, 2]; case 42 >= c: return [273, c - 35, 3]; case 50 >= c: return [274, c - 43, 3]; case 58 >= c: return [275, c - 51, 3]; case 66 >= c: return [276, c - 59, 3 ]; case 82 >= c: return [277, c - 67, 4]; case 98 >= c: return [278, c - 83, 4]; case 114 >= c: return [279, c - 99, 4]; case 130 >= c: return [280, c - 115, 4]; case 162 >= c: return [281, c - 131, 5]; case 194 >= c: return [282, c - 163, 5]; case 226 >= c: return [283, c - 195, 5]; case 257 >= c: return [284, c - 227, 5]; case 258 === c: return [285, c - 258, 0]; default: a("invalid length: " + c) } } function p(c, d) { function e(c, d) { var f = c.gR, g = [], h = 0, k; k = X[c.length]; g[h++] = k & 65535; g[h++] = k >> 16 & 255; g[h++] = k >> 24; var m; switch (I) { case 1 === f: m = [0, f - 1, 0]; break; case 2 === f: m = [1, f - 2, 0 ]; break; case 3 === f: m = [2, f - 3, 0]; break; case 4 === f: m = [3, f - 4, 0]; break; case 6 >= f: m = [4, f - 5, 1]; break; case 8 >= f: m = [5, f - 7, 1]; break; case 12 >= f: m = [6, f - 9, 2]; break; case 16 >= f: m = [7, f - 13, 2]; break; case 24 >= f: m = [8, f - 17, 3]; break; case 32 >= f: m = [9, f - 25, 3]; break; case 48 >= f: m = [10, f - 33, 4]; break; case 64 >= f: m = [11, f - 49, 4]; break; case 96 >= f: m = [12, f - 65, 5]; break; case 128 >= f: m = [13, f - 97, 5]; break; case 192 >= f: m = [14, f - 129, 6]; break; case 256 >= f: m = [15, f - 193, 6]; break; case 384 >= f: m = [16, f - 257, 7]; break; case 512 >= f: m = [17, f - 385, 7]; break; case 768 >= f: m = [18, f - 513, 8]; break; case 1024 >= f: m = [19, f - 769, 8]; break; case 1536 >= f: m = [20, f - 1025, 9]; break; case 2048 >= f: m = [21, f - 1537, 9]; break; case 3072 >= f: m = [22, f - 2049, 10]; break; case 4096 >= f: m = [23, f - 3073, 10]; break; case 6144 >= f: m = [24, f - 4097, 11]; break; case 8192 >= f: m = [25, f - 6145, 11]; break; case 12288 >= f: m = [26, f - 8193, 12]; break; case 16384 >= f: m = [27, f - 12289, 12]; break; case 24576 >= f: m = [28, f - 16385, 13]; break; case 32768 >= f: m = [29, f - 24577, 13]; break; default: a("invalid distance") } k = m; g[h++] = k[0]; g[h++] = k[1]; g[h++] = k[2]; f = 0; for (h = g.length; f < h; ++f) t[u++] = g[f]; w[g[0]]++; x[g[3]]++; v = c.length + d - 1; s = null } var f, g, h, m, p, r = {}, s, t = A ? new Uint16Array(2 * d.length) : [], u = 0, v = 0, w = new(A ? Uint32Array : Array)(286), x = new(A ? Uint32Array : Array)(30), B = c.D, y; if (!A) { for (h = 0; 285 >= h;) w[h++] = 0; for (h = 0; 29 >= h;) x[h++] = 0 } w[256] = 1; f = 0; for (g = d.length; f < g; ++f) { h = p = 0; for (m = 3; h < m && f + h !== g; ++h) p = p << 8 | d[f + h]; r[p] === G && (r[p] = []); h = r[p]; if (!(0 < v--)) { for (; 0 < h.length && 32768 < f - h[0];) h.shift(); if (f + 3 >= g) { s && e(s, -1); h = 0; for (m = g - f; h < m; ++h) y = d[f + h], t[u++] = y, ++w[y]; break } if (0 < h.length) { p = m = G; var D = 0, F = G, E = G, J = F = G, M = d.length, E = 0, J = h.length; a: for (; E < J; E++) { m = h[J - E - 1]; F = 3; if (3 < D) { for (F = D; 3 < F; F--) if (d[m + F - 1] !== d[f + F - 1]) continue a; F = D } for (; 258 > F && f + F < M && d[m + F] === d[f + F];)++F; F > D && (p = m, D = F); if (258 === F) break } m = new k(D, f - p); s ? s.length < m.length ? (y = d[f - 1], t[u++] = y, ++w[y], e(m, 0)) : e(s, -1) : m.length < B ? s = m : e(m, 0) } else s ? e(s, -1) : (y = d[f], t[u++] = y, ++w[y]) } h.push(f) } t[u++] = 256; w[256]++; c.BR = w; c.tR = x; return A ? t.subarray(0, u) : t } function r(a, c) { function d(a) { var c = t[a][u[a]]; c === r ? (d(a + 1), d(a + 1)) : --s[c]; ++u[a] } var e = a.length, g = new f(572), h = new(A ? Uint8Array : Array)(e), k, m, p; if (!A) for (m = 0; m < e; m++) h[m] = 0; for (m = 0; m < e; ++m) 0 < a[m] && g.push(m, a[m]); e = Array(g.length / 2); k = new(A ? Uint32Array : Array)(g.length / 2); if (1 === e.length) return h[g.pop().index] = 1, h; m = 0; for (p = g.length / 2; m < p; ++m) e[m] = g.pop(), k[m] = e[m].value; var r = k.length; m = new(A ? Uint16Array : Array)(c); var g = new(A ? Uint8Array : Array)(c), s = new(A ? Uint8Array : Array)(r); p = Array(c); var t = Array(c), u = Array(c), v = (1 << c) - r, w = 1 << c - 1, x, y, B; m[c - 1] = r; for (x = 0; x < c; ++x) v < w ? g[x] = 0 : (g[x] = 1, v -= w), v <<= 1, m[c - 2 - x] = (m[c - 1 - x] / 2 | 0) + r; m[0] = g[0]; p[0] = Array(m[0]); t[0] = Array(m[0]); for (x = 1; x < c; ++x) m[x] > 2 * m[x - 1] + g[x] && (m[x] = 2 * m[x - 1] + g[x]), p[x] = Array(m[x]), t[x] = Array(m[x]); for (v = 0; v < r; ++v) s[v] = c; for (w = 0; w < m[c - 1]; ++w) p[c - 1][w] = k[w], t[c - 1][w] = w; for (v = 0; v < c; ++v) u[v] = 0; 1 === g[c - 1] && (--s[0], ++u[c - 1]); for (x = c - 2; 0 <= x; --x) { y = v = 0; B = u[x + 1]; for (w = 0; w < m[x]; w++) y = p[x + 1][B] + p[x + 1][B + 1], y > k[v] ? (p[x][w] = y, t[x][w] = r, B += 2) : (p[x][w] = k[v], t[x][w] = v, ++v); u[x] = 0; 1 === g[x] && d(x) } k = s; m = 0; for (p = e.length; m < p; ++m) h[e[m].index] = k[m]; return h } function s(c) { var d = new(A ? Uint16Array : Array)(c.length), e = [], f = [], g = 0, h, k, m; h = 0; for (k = c.length; h < k; h++) e[c[h]] = (e[c[h]] | 0) + 1; h = 1; for (k = 16; h <= k; h++) f[h] = g, g += e[h] | 0, g > 1 << h && a("overcommitted"), g <<= 1; 65536 > g && a("undercommitted"); h = 0; for (k = c.length; h < k; h++) for (g = f[c[h]], f[c[h]] += 1, e = d[h] = 0, m = c[h]; e < m; e++) d[h] = d[h] << 1 | g & 1, g >>>= 1; return d } function u(a, c) { this.input = a; this.a = new(A ? Uint8Array : Array)(32768); this.fp = M.ox; var d = {}, e; !c && (c = {}) || "number" !== typeof c.gE || (this.fp = c.gE); for (e in c) d[e] = c[e]; d.Nx = this.a; this.z = new h(this.input, d) } function t(c, d) { this.px = []; this.zx = 32768; this.Gg = this.g = this.B = this.Ux = 0; this.input = A ? new Uint8Array(c) : c; this.MF = !1; this.Dx = ja; this.BG = !1; if (d || !(d = {})) d.index && (this.B = d.index), d.VD && (this.zx = d.VD), d.WD && (this.Dx = d.WD), d.resize && (this.BG = d.resize); switch (this.Dx) { case ua: this.b = 32768; this.a = new(A ? Uint8Array : Array)(32768 + this.zx + 258); break; case ja: this.b = 0; this.a = new(A ? Uint8Array : Array)(this.zx); this.Ch = this.sR; this.nG = this.iR; this.Hx = this.mR; break; default: a(Error("invalid inflate mode")) } } function v(c, d) { for (var e = c.g, f = c.Gg, g = c.input, h = c.B, k; f < d;) k = g[h++], k === G && a(Error("input buffer is broken")), e |= k << f, f += 8; c.g = e >>> d; c.Gg = f - d; c.B = h; return e & (1 << d) - 1 } function w(c, d) { for (var e = c.g, f = c.Gg, g = c.input, h = c.B, k = d[0], m = d[1], p; f < m;) p = g[h++], p === G && a(Error("input buffer is broken")), e |= p << f, f += 8; g = k[e & (1 << m) - 1]; k = g >>> 16; c.g = e >> k; c.Gg = f - k; c.B = h; return g & 65535 } function y(a) { function c(a, d, e) { var f, g, h, k; for (k = 0; k < a;) switch (f = w(this, d), f) { case 16: for (h = 3 + v(this, 2); h--;) e[k++] = g; break; case 17: for (h = 3 + v(this, 3); h--;) e[k++] = 0; g = 0; break; case 18: for (h = 11 + v(this, 7); h--;) e[k++] = 0; g = 0; break; default: g = e[k++] = f } return e } var d = v(a, 5) + 257, e = v(a, 5) + 1, f = v(a, 4) + 4, h = new(A ? Uint8Array : Array)(ya.length), k; for (k = 0; k < f; ++k) h[ya[k]] = v(a, 3); f = g(h); h = new(A ? Uint8Array : Array)(d); k = new(A ? Uint8Array : Array)(e); a.Hx(g(c.call(a, d, f, h)), g(c.call(a, e, f, k))) } function B(c, d) { var e, f; this.input = c; this.B = 0; if (d || !(d = {})) d.index && (this.B = d.index), d.ZP && (this.KR = d.ZP); e = c[this.B++]; f = c[this.B++]; switch (e & 15) { case ga: this.method = ga; break; default: a(Error("unsupported compression method")) } 0 !== ((e << 8) + f) % 31 && a(Error("invalid fcheck flag:" + ((e << 8) + f) % 31)); f & 32 && a(Error("fdict flag is not supported")); this.uG = new t(c, { index: this.B, VD: d.VD, WD: d.WD, resize: d.resize }) } var G = void 0, I = !0, E = this, A = "undefined" !== typeof Uint8Array && "undefined" !== typeof Uint16Array && "undefined" !== typeof Uint32Array; e.prototype.Ch = function() { var a = this.buffer, c, d = a.length, e = new(A ? Uint8Array : Array)(d << 1); if (A) e.set(a); else for (c = 0; c < d; ++c) e[c] = a[c]; return this.buffer = e }; e.prototype.H = function(a, c, d) { var e = this.buffer, f = this.index, g = this.zs, h = e[f]; d && 1 < c && (a = 8 < c ? (J[a & 255] << 24 | J[a >>> 8 & 255] << 16 | J[a >>> 16 & 255] << 8 | J[a >>> 24 & 255]) >> 32 - c : J[a] >> 8 - c); if (8 > c + g) h = h << c | a, g += c; else for (d = 0; d < c; ++d) h = h << 1 | a >> c - d - 1 & 1, 8 === ++g && (g = 0, e[f++] = J[h], h = 0, f === e.length && (e = this.Ch())); e[f] = h; this.buffer = e; this.zs = g; this.index = f }; e.prototype.finish = function() { var a = this.buffer, c = this.index, d; 0 < this.zs && (a[c] <<= 8 - this.zs, a[c] = J[a[c]], c++); A ? d = a.subarray(0, c) : (a.length = c, d = a); return d }; var D = new(A ? Uint8Array : Array)(256), x; for (x = 0; 256 > x; ++x) { for (var F = x, K = F, L = 7, F = F >>> 1; F; F >>>= 1) K <<= 1, K |= F & 1, --L; D[x] = (K << L & 255) >>> 0 } var J = D, D = [0, 1996959894, 3993919788, 2567524794, 124634137, 1886057615, 3915621685, 2657392035, 249268274, 2044508324, 3772115230, 2547177864, 162941995, 2125561021, 3887607047, 2428444049, 498536548, 1789927666, 4089016648, 2227061214, 450548861, 1843258603, 4107580753, 2211677639, 325883990, 1684777152, 4251122042, 2321926636, 335633487, 1661365465, 4195302755, 2366115317, 997073096, 1281953886, 3579855332, 2724688242, 1006888145, 1258607687, 3524101629, 2768942443, 901097722, 1119000684, 3686517206, 2898065728, 853044451, 1172266101, 3705015759, 2882616665, 651767980, 1373503546, 3369554304, 3218104598, 565507253, 1454621731, 3485111705, 3099436303, 671266974, 1594198024, 3322730930, 2970347812, 795835527, 1483230225, 3244367275, 3060149565, 1994146192, 31158534, 2563907772, 4023717930, 1907459465, 112637215, 2680153253, 3904427059, 2013776290, 251722036, 2517215374, 3775830040, 2137656763, 141376813, 2439277719, 3865271297, 1802195444, 476864866, 2238001368, 4066508878, 1812370925, 453092731, 2181625025, 4111451223, 1706088902, 314042704, 2344532202, 4240017532, 1658658271, 366619977, 2362670323, 4224994405, 1303535960, 984961486, 2747007092, 3569037538, 1256170817, 1037604311, 2765210733, 3554079995, 1131014506, 879679996, 2909243462, 3663771856, 1141124467, 855842277, 2852801631, 3708648649, 1342533948, 654459306, 3188396048, 3373015174, 1466479909, 544179635, 3110523913, 3462522015, 1591671054, 702138776, 2966460450, 3352799412, 1504918807, 783551873, 3082640443, 3233442989, 3988292384, 2596254646, 62317068, 1957810842, 3939845945, 2647816111, 81470997, 1943803523, 3814918930, 2489596804, 225274430, 2053790376, 3826175755, 2466906013, 167816743, 2097651377, 4027552580, 2265490386, 503444072, 1762050814, 4150417245, 2154129355, 426522225, 1852507879, 4275313526, 2312317920, 282753626, 1742555852, 4189708143, 2394877945, 397917763, 1622183637, 3604390888, 2714866558, 953729732, 1340076626, 3518719985, 2797360999, 1068828381, 1219638859, 3624741850, 2936675148, 906185462, 1090812512, 3747672003, 2825379669, 829329135, 1181335161, 3412177804, 3160834842, 628085408, 1382605366, 3423369109, 3138078467, 570562233, 1426400815, 3317316542, 2998733608, 733239954, 1555261956, 3268935591, 3050360625, 752459403, 1541320221, 2607071920, 3965973030, 1969922972, 40735498, 2617837225, 3943577151, 1913087877, 83908371, 2512341634, 3803740692, 2075208622, 213261112, 2463272603, 3855990285, 2094854071, 198958881, 2262029012, 4057260610, 1759359992, 534414190, 2176718541, 4139329115, 1873836001, 414664567, 2282248934, 4279200368, 1711684554, 285281116, 2405801727, 4167216745, 1634467795, 376229701, 2685067896, 3608007406, 1308918612, 956543938, 2808555105, 3495958263, 1231636301, 1047427035, 2932959818, 3654703836, 1088359270, 936918E3, 2847714899, 3736837829, 1202900863, 817233897, 3183342108, 3401237130, 1404277552, 615818150, 3134207493, 3453421203, 1423857449, 601450431, 3009837614, 3294710456, 1567103746, 711928724, 3020668471, 3272380065, 1510334235, 755167117 ]; A && new Uint32Array(D); f.prototype.getParent = function(a) { return 2 * ((a - 2) / 4 | 0) }; f.prototype.push = function(a, c) { var d, e, f = this.buffer, g; d = this.length; f[this.length++] = c; for (f[this.length++] = a; 0 < d;) if (e = this.getParent(d), f[d] > f[e]) g = f[d], f[d] = f[e], f[e] = g, g = f[d + 1], f[d + 1] = f[e + 1], f[e + 1] = g, d = e; else break; return this.length }; f.prototype.pop = function() { var a, c, d = this.buffer, e, f, g; c = d[0]; a = d[1]; this.length -= 2; d[0] = d[this.length]; d[1] = d[this.length + 1]; for (g = 0;;) { f = 2 * g + 2; if (f >= this.length) break; f + 2 < this.length && d[f + 2] > d[f] && (f += 2); if (d[f] > d[g]) e = d[g], d[g] = d[f], d[f] = e, e = d[g + 1], d[g + 1] = d[f + 1], d[f + 1] = e; else break; g = f } return { index: a, value: c, length: this.length } }; var P = 2, D = { NONE: 0, r: 1, ox: P, G7: 3 }, T = []; for (x = 0; 288 > x; x++) switch (I) { case 143 >= x: T.push([x + 48, 8]); break; case 255 >= x: T.push([x - 144 + 400, 9]); break; case 279 >= x: T.push([x - 256 + 0, 7]); break; case 287 >= x: T.push([x - 280 + 192, 8]); break; default: a("invalid literal: " + x) } h.prototype.fl = function() { var c, d, f, g, h = this.input; switch (this.fp) { case 0: f = 0; for (g = h.length; f < g;) { d = A ? h.subarray(f, f + 65535) : h.slice(f, f + 65535); f += d.length; var k = f === g, m = G, t = m = G, t = m = G, u = this.a, v = this.b; if (A) { for (u = new Uint8Array(this.a.buffer); u.length <= v + d.length + 5;) u = new Uint8Array(u.length << 1); u.set(this.a) } m = k ? 1 : 0; u[v++] = m | 0; m = d.length; t = ~m + 65536 & 65535; u[v++] = m & 255; u[v++] = m >>> 8 & 255; u[v++] = t & 255; u[v++] = t >>> 8 & 255; if (A) u.set(d, v), v += d.length, u = u.subarray(0, v); else { m = 0; for (t = d.length; m < t; ++m) u[v++] = d[m]; u.length = v } this.b = v; this.a = u } break; case 1: f = new e(new Uint8Array(this.a.buffer), this.b); f.H(1, 1, I); f.H(1, 2, I); h = p(this, h); d = 0; for (k = h.length; d < k; d++) if (g = h[d], e.prototype.H.apply(f, T[g]), 256 < g) f.H(h[++d], h[++d], I), f.H(h[++d], 5), f.H(h[++d], h[++d], I); else if (256 === g) break; this.a = f.finish(); this.b = this.a.length; break; case P: g = new e(new Uint8Array(this.a), this.b); var w, x, y, B = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], F, D, m = Array(19), H, u = P; g.H(1, 1, I); g.H(u, 2, I); h = p(this, h); t = r(this.BR, 15); F = s(t); u = r(this.tR, 7); v = s(u); for (w = 286; 257 < w && 0 === t[w - 1]; w--); for (x = 30; 1 < x && 0 === u[x - 1]; x--); var E = w, J = x; c = new(A ? Uint32Array : Array)(E + J); var M = new(A ? Uint32Array : Array)(316), K, L; D = new(A ? Uint8Array : Array)(19); for (H = y = 0; H < E; H++) c[y++] = t[H]; for (H = 0; H < J; H++) c[y++] = u[H]; if (!A) for (H = 0, J = D.length; H < J; ++H) D[H] = 0; H = K = 0; for (J = c.length; H < J; H += y) { for (y = 1; H + y < J && c[H + y] === c[H]; ++y); E = y; if (0 === c[H]) if (3 > E) for (; 0 < E--;) M[K++] = 0, D[0]++; else for (; 0 < E;) L = 138 > E ? E : 138, L > E - 3 && L < E && (L = E - 3), 10 >= L ? (M[K++] = 17, M[K++] = L - 3, D[17]++) : (M[K++] = 18, M[K++] = L - 11, D[18]++), E -= L; else if (M[K++] = c[H], D[c[H]]++, E--, 3 > E) for (; 0 < E--;) M[K++] = c[H], D[c[H]]++; else for (; 0 < E;) L = 6 > E ? E : 6, L > E - 3 && L < E && (L = E - 3), M[K++] = 16, M[K++] = L - 3, D[16]++, E -= L } c = A ? M.subarray(0, K) : M.slice(0, K); D = r(D, 7); for (H = 0; 19 > H; H++) m[H] = D[B[H]]; for (y = 19; 4 < y && 0 === m[y - 1]; y--); B = s(D); g.H(w - 257, 5, I); g.H(x - 1, 5, I); g.H(y - 4, 4, I); for (H = 0; H < y; H++) g.H(m[H], 3, I); H = 0; for (m = c.length; H < m; H++) if (d = c[H], g.H(B[d], D[d], I), 16 <= d) { H++; switch (d) { case 16: k = 2; break; case 17: k = 3; break; case 18: k = 7; break; default: a("invalid code: " + d) } g.H(c[H], k, I) } k = [F, t]; v = [v, u]; d = k[0]; k = k[1]; u = v[0]; F = v[1]; v = 0; for (m = h.length; v < m; ++v) if (f = h[v], g.H(d[f], k[f], I), 256 < f) g.H(h[++v], h[++v], I), t = h[++v], g.H(u[t], F[t], I), g.H(h[++v], h[++v], I); else if (256 === f) break; this.a = g.finish(); this.b = this.a.length; break; default: a("invalid compression type") } return this.a }; x = []; var R; for (R = 3; 258 >= R; R++) F = m(), x[R] = F[2] << 24 | F[1] << 16 | F[0]; var X = A ? new Uint32Array(x) : x, M = D; u.prototype.fl = function() { var c, e, f, g, h = 0; g = this.a; c = ga; switch (c) { case ga: e = Math.LOG2E * Math.log(32768) - 8; break; default: a(Error("invalid compression method")) } e = e << 4 | c; g[h++] = e; switch (c) { case ga: switch (this.fp) { case M.NONE: f = 0; break; case M.r: f = 1; break; case M.ox: f = 2; break; default: a(Error("unsupported compression type")) } break; default: a(Error("invalid compression method")) } c = f << 6 | 0; g[h++] = c | 31 - (256 * e + c) % 31; c = d(this.input); this.z.b = h; g = this.z.fl(); h = g.length; A && (g = new Uint8Array(g.buffer), g.length <= h + 4 && (this.a = new Uint8Array(g.length + 4), this.a.set(g), g = this.a), g = g.subarray(0, h + 4)); g[h++] = c >> 24 & 255; g[h++] = c >> 16 & 255; g[h++] = c >> 8 & 255; g[h++] = c & 255; return g }; c("Zlib.Deflate", u); c("Zlib.Deflate.compress", function(a, c) { return (new u(a, c)).fl() }); c("Zlib.Deflate.CompressionType", M); c("Zlib.Deflate.CompressionType.NONE", M.NONE); c("Zlib.Deflate.CompressionType.FIXED", M.r); c("Zlib.Deflate.CompressionType.DYNAMIC", M.ox); var ua = 0, ja = 1, D = { FQ: ua, rQ: ja }; t.prototype.Ox = function() { for (; !this.MF;) { var c = v(this, 3); c & 1 && (this.MF = I); c >>>= 1; switch (c) { case 0: var c = this.input, d = this.B, e = this.a, f = this.b, g = G, h = G, k = G, m = e.length, g = G; this.Gg = this.g = 0; g = c[d++]; g === G && a(Error("invalid uncompressed block header: LEN (first byte)")); h = g; g = c[d++]; g === G && a(Error("invalid uncompressed block header: LEN (second byte)")); h |= g << 8; g = c[d++]; g === G && a(Error("invalid uncompressed block header: NLEN (first byte)")); k = g; g = c[d++]; g === G && a(Error("invalid uncompressed block header: NLEN (second byte)")); k |= g << 8; h === ~k && a(Error("invalid uncompressed block header: length verify")); d + h > c.length && a(Error("input buffer is broken")); switch (this.Dx) { case ua: for (; f + h > e.length;) { g = m - f; h -= g; if (A) e.set(c.subarray(d, d + g), f), f += g, d += g; else for (; g--;) e[f++] = c[d++]; this.b = f; e = this.Ch(); f = this.b } break; case ja: for (; f + h > e.length;) e = this.Ch({ ga: 2 }); break; default: a(Error("invalid inflate mode")) } if (A) e.set(c.subarray(d, d + h), f), f += h, d += h; else for (; h--;) e[f++] = c[d++]; this.B = d; this.b = f; this.a = e; break; case 1: this.Hx(Da, Ea); break; case 2: y(this); break; default: a(Error("unknown BTYPE: " + c)) } } return this.nG() }; x = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]; var ya = A ? new Uint16Array(x) : x; x = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 258, 258]; var za = A ? new Uint16Array(x) : x; x = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 0, 0 ]; var ka = A ? new Uint8Array(x) : x; x = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577]; var Aa = A ? new Uint16Array(x) : x; x = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13]; var la = A ? new Uint8Array(x) : x; x = new(A ? Uint8Array : Array)(288); F = 0; for (K = x.length; F < K; ++F) x[F] = 143 >= F ? 8 : 255 >= F ? 9 : 279 >= F ? 7 : 8; var Da = g(x); x = new(A ? Uint8Array : Array)(30); F = 0; for (K = x.length; F < K; ++F) x[F] = 5; var Ea = g(x); t.prototype.Hx = function(a, c) { var d = this.a, e = this.b; this.fa = a; for (var f = d.length - 258, g, h, k; 256 !== (g = w(this, a));) if (256 > g) e >= f && (this.b = e, d = this.Ch(), e = this.b), d[e++] = g; else for (g -= 257, k = za[g], 0 < ka[g] && (k += v(this, ka[g])), g = w(this, c), h = Aa[g], 0 < la[g] && (h += v(this, la[g])), e >= f && (this.b = e, d = this.Ch(), e = this.b); k--;) d[e] = d[e++-h]; for (; 8 <= this.Gg;) this.Gg -= 8, this.B--; this.b = e }; t.prototype.mR = function(a, c) { var d = this.a, e = this.b; this.fa = a; for (var f = d.length, g, h, k; 256 !== (g = w(this, a));) if (256 > g) e >= f && (d = this.Ch(), f = d.length), d[e++] = g; else for (g -= 257, k = za[g], 0 < ka[g] && (k += v(this, ka[g])), g = w(this, c), h = Aa[g], 0 < la[g] && (h += v(this, la[g])), e + k > f && (d = this.Ch(), f = d.length); k--;) d[e] = d[e++-h]; for (; 8 <= this.Gg;) this.Gg -= 8, this.B--; this.b = e }; t.prototype.Ch = function() { var a = new(A ? Uint8Array : Array)(this.b - 32768), c = this.b - 32768, d, e, f = this.a; if (A) a.set(f.subarray(32768, a.length)); else for (d = 0, e = a.length; d < e; ++d) a[d] = f[d + 32768]; this.px.push(a); this.Ux += a.length; if (A) f.set(f.subarray(c, c + 32768)); else for (d = 0; 32768 > d; ++d) f[d] = f[c + d]; this.b = 32768; return f }; t.prototype.sR = function(a) { var c, d = this.input.length / this.B + 1 | 0, e, f, g, h = this.input, k = this.a; a && ("number" === typeof a.ga && (d = a.ga), "number" === typeof a.dR && (d += a.dR)); 2 > d ? (e = (h.length - this.B) / this.fa[2], g = e / 2 * 258 | 0, f = g < k.length ? k.length + g : k.length << 1) : f = k.length * d; A ? (c = new Uint8Array(f), c.set(k)) : c = k; return this.a = c }; t.prototype.nG = function() { var a = 0, c = this.a, d = this.px, e, f = new(A ? Uint8Array : Array)(this.Ux + (this.b - 32768)), g, h, k, m; if (0 === d.length) return A ? this.a.subarray(32768, this.b) : this.a.slice(32768, this.b); g = 0; for (h = d.length; g < h; ++g) for (e = d[g], k = 0, m = e.length; k < m; ++k) f[a++] = e[k]; g = 32768; for (h = this.b; g < h; ++g) f[a++] = c[g]; this.px = []; return this.buffer = f }; t.prototype.iR = function() { var a, c = this.b; A ? this.BG ? (a = new Uint8Array(c), a.set(this.a.subarray(0, c))) : a = this.a.subarray(0, c) : (this.a.length > c && (this.a.length = c), a = this.a); return this.buffer = a }; B.prototype.Ox = function() { var c = this.input, e, f; e = this.uG.Ox(); this.B = this.uG.B; this.KR && (f = (c[this.B++] << 24 | c[this.B++] << 16 | c[this.B++] << 8 | c[this.B++]) >>> 0, f !== d(e) && a(Error("invalid adler-32 checksum"))); return e }; c("Zlib.Inflate", B); c("Zlib.Inflate.BufferType", D); D.Y5 = D.rQ; D.s6 = D.FQ; c("Zlib.Inflate.prototype.decompress", B.prototype.Ox); D = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]; A && new Uint16Array(D); D = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 258, 258]; A && new Uint16Array(D); D = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 0, 0]; A && new Uint8Array(D); D = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577 ]; A && new Uint16Array(D); D = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13]; A && new Uint8Array(D); D = new(A ? Uint8Array : Array)(288); x = 0; for (F = D.length; x < F; ++x) D[x] = 143 >= x ? 8 : 255 >= x ? 9 : 279 >= x ? 7 : 8; g(D); D = new(A ? Uint8Array : Array)(30); x = 0; for (F = D.length; x < F; ++x) D[x] = 5; g(D); var ga = 8 }).call(this); n = window; n = n.N8 = n.Zlib; n.LG = n.Deflate; n.LG.z$ = n.LG.compress; n.ln = n.Inflate; n.ln.H6 = n.ln.BufferType; n.ln.prototype.xM = n.ln.prototype.decompress; b.oS = b.oa.extend({ ctor: function(a) { var c, d, e, f; this.data = a; this.Xa = 8; this.BF = []; this.fx = []; this.$m = {}; this.RD = null; this.text = {}; for (e = null;;) { c = this.Mj(); f = a = void 0; f = []; for (a = 0; 4 > a; ++a) f.push(String.fromCharCode(this.data[this.Xa++])); a = f.join(""); switch (a) { case "IHDR": this.width = this.Mj(); this.height = this.Mj(); this.Mo = this.data[this.Xa++]; this.eE = this.data[this.Xa++]; this.Xa++; this.Xa++; this.Xa++; break; case "acTL": this.RD = { yga: this.Mj(), zga: this.Mj() || Infinity, frames: [] }; break; case "PLTE": this.BF = this.Vs(c); break; case "fcTL": e && this.RD.frames.push(e); this.Xa += 4; e = { width: this.Mj(), height: this.Mj(), aQ: this.Mj(), bQ: this.Mj() }; a = this.CO(); c = this.CO() || 100; e.K$ = 1E3 * a / c; e.X$ = this.data[this.Xa++]; e.m$ = this.data[this.Xa++]; e.data = []; break; case "IDAT": case "fdAT": "fdAT" === a && (this.Xa += 4, c -= 4); a = (null != e ? e.data : void 0) || this.fx; for (f = 0; 0 <= c ? f < c : f > c; 0 <= c ? ++f : --f) a.push(this.data[this.Xa++]); break; case "tRNS": this.$m = {}; switch (this.eE) { case 3: this.$m.WE = this.Vs(c); c = 255 - this.$m.WE.length; if (0 < c) for (a = 0; 0 <= c ? a < c : a > c; 0 <= c ? ++a : --a) this.$m.WE.push(255); break; case 0: this.$m.Hda = this.Vs(c)[0]; break; case 2: this.$m.Zha = this.Vs(c) } break; case "tEXt": f = this.Vs(c); c = f.indexOf(0); a = String.fromCharCode.apply(String, f.slice(0, c)); this.text[a] = String.fromCharCode.apply(String, f.slice(c + 1)); break; case "IEND": e && this.RD.frames.push(e); a: { switch (this.eE) { case 0: case 3: case 4: e = 1; break a; case 2: case 6: e = 3; break a } e = void 0 } this.s = e; this.AN = 4 === (d = this.eE) || 6 === d; d = this.s + (this.AN ? 1 : 0); this.T2 = this.Mo * d; Uint8Array != Array && (this.fx = new Uint8Array(this.fx)); return; default: this.Xa += c } this.Xa += 4; if (this.Xa > this.data.length) throw Error("Incomplete or corrupt PNG file"); } }, Vs: function(a) { var c, d; d = []; for (c = 0; 0 <= a ? c < a : c > a; 0 <= a ? ++c : --c) d.push(this.data[this.Xa++]); return d }, Mj: function() { var a, c, d, e; a = this.data[this.Xa++] << 24; c = this.data[this.Xa++] << 16; d = this.data[this.Xa++] << 8; e = this.data[this.Xa++]; return a | c | d | e }, CO: function() { var a, c; a = this.data[this.Xa++] << 8; c = this.data[this.Xa++]; return a | c }, QZ: function(a) { var c, d, e, f, g, h, k, m, p, r, s, u, t, v, w; null == a && (a = this.fx); if (0 === a.length) return new Uint8Array(0); a = (new Zlib.ln(a, { index: 0, ZP: !1 })).xM(); m = this.T2 / 8; u = m * this.width; p = new Uint8Array(u * this.height); h = a.length; for (d = r = s = 0; r < h;) { switch (a[r++]) { case 0: for (c = 0; c < u; c += 1) p[d++] = a[r++]; break; case 1: for (f = t = 0; t < u; f = t += 1) c = a[r++], g = f < m ? 0 : p[d - m], p[d++] = (c + g) % 256; break; case 2: for (f = g = 0; g < u; f = g += 1) c = a[r++], e = (f - f % m) / m, t = s && p[(s - 1) * u + e * m + f % m], p[d++] = (t + c) % 256; break; case 3: for (f = w = 0; w < u; f = w += 1) c = a[r++], e = (f - f % m) / m, g = f < m ? 0 : p[d - m], t = s && p[(s - 1) * u + e * m + f % m], p[d++] = (c + Math.floor((g + t) / 2)) % 256; break; case 4: for (f = w = 0; w < u; f = w += 1) c = a[r++], e = (f - f % m) / m, g = f < m ? 0 : p[d - m], 0 === s ? t = v = 0 : (t = p[(s - 1) * u + e * m + f % m], v = e && p[(s - 1) * u + (e - 1) * m + f % m]), k = g + t - v, f = Math.abs(k - g), e = Math.abs(k - t), k = Math.abs(k - v), g = f <= e && f <= k ? g : e <= k ? t : v, p[d++] = (c + g) % 256; break; default: throw Error("Invalid filter algorithm: " + a[r - 1]); } s++ } return p }, OZ: function(a, c) { var d, e, f, g, h, k, m, p; e = this.s; p = null; d = this.AN; this.BF.length && (p = null != (f = this.tV) ? f : this.tV = this.PZ(), e = 4, d = !0); f = a.data || a; m = f.length; h = p || c; g = k = 0; if (1 === e) for (; g < m;) e = p ? 4 * c[g / 4] : k, k = h[e++], f[g++] = k, f[g++] = k, f[g++] = k, f[g++] = d ? h[e++] : 255, k = e; else for (; g < m;) e = p ? 4 * c[g / 4] : k, f[g++] = h[e++], f[g++] = h[e++], f[g++] = h[e++], f[g++] = d ? h[e++] : 255, k = e }, PZ: function() { var a, c, d, e, f, g, h, k, m; d = this.BF; g = this.$m.WE || []; f = new Uint8Array((g.length || 0) + d.length); c = h = a = e = 0; for (k = d.length; h < k; c = h += 3) f[e++] = d[c], f[e++] = d[c + 1], f[e++] = d[c + 2], f[e++] = null != (m = g[a++]) ? m : 255; return f }, v3: function(a) { var c; a.width = this.width; a.height = this.height; a = a.getContext("2d"); c = a.createImageData(this.width, this.height); this.OZ(c, this.QZ()); return a.putImageData(c, 0, 0) } }); b.x5 = { yK: !1, jm: null, qB: [], getUint8: function(a) { return this.jm[a] }, getUint16: function(a) { return this.yK ? this.jm[a + 1] << 8 | this.jm[a] : this.jm[a] << 8 | this.jm[a + 1] }, getUint32: function(a) { var c = this.jm; return this.yK ? c[a + 3] << 24 | c[a + 2] << 16 | c[a + 1] << 8 | c[a] : c[a] << 24 | c[a + 1] << 16 | c[a + 2] << 8 | c[a + 3] }, EZ: function() { var a = this.getUint16(0); if (18761 === a) this.vF = !0; else if (19789 === a) this.vF = !1; else throw console.log(a), TypeError("Invalid byte order value."); return this.vF }, k1: function() { if (42 !== this.getUint16(2)) throw RangeError("You forgot your towel!"); return !0 }, h0: function(a) { var c = this.H_; return a in c ? c[a] : null }, f0: function(a) { var c = this.G_; if (a in c) return c[a]; console.log("Unknown Field Tag:", a); return "Tag" + a }, g0: function(a) { return -1 !== ["BYTE", "ASCII", "SBYTE", "UNDEFINED"].indexOf(a) ? 1 : -1 !== ["SHORT", "SSHORT"].indexOf(a) ? 2 : -1 !== ["LONG", "SLONG", "FLOAT"].indexOf(a) ? 4 : -1 !== ["RATIONAL", "SRATIONAL", "DOUBLE"].indexOf(a) ? 8 : null }, i0: function(a, c, d, e) { a = []; var f = this.g0(c); if (4 >= f * d)!1 === this.vF ? a.push(e >>> 8 * (4 - f)) : a.push(e); else for (var g = 0; g < d; g++) { var h = f * g; 8 <= f ? -1 !== ["RATIONAL", "SRATIONAL"].indexOf(c) ? (a.push(this.getUint32(e + h)), a.push(this.getUint32(e + h + 4))) : b.log("Can't handle this field type or size") : a.push(this.TM(f, e + h)) } "ASCII" === c && a.forEach(function(a, c, d) { d[c] = String.fromCharCode(a) }); return a }, TM: function(a, c) { if (0 >= a) b.log("No bytes requested"); else { if (1 >= a) return this.getUint8(c); if (2 >= a) return this.getUint16(c); if (3 >= a) return this.getUint32(c) >>> 8; if (4 >= a) return this.getUint32(c); b.log("Too many bytes requested") } }, R_: function(a, c, d) { d = d || 0; c += Math.floor(d / 8); var e = d + a; a = 32 - a; var f, g; 0 >= e ? console.log("No bits requested") : 8 >= e ? (f = 24 + d, g = this.getUint8(c)) : 16 >= e ? (f = 16 + d, g = this.getUint16(c)) : 32 >= e ? (f = d, g = this.getUint32(c)) : console.log("Too many bits requested"); return { bits: g << f >>> a, byteOffset: c + Math.floor(e / 8), bitOffset: e % 8 } }, xO: function(a) { var c = this.getUint16(a), d = []; a += 2; for (var e = 0; e < c; a += 12, e++) { var f = this.getUint16(a), g = this.getUint16(a + 2), h = this.getUint32(a + 4), k = this.getUint32(a + 8), f = this.f0(f), g = this.h0(g), h = this.i0(f, g, h, k); d[f] = { type: g, Ph: h } } this.qB.push(d); c = this.getUint32(a); 0 !== c && this.xO(c) }, xm: function(a, c) { var d = Math.pow(2, 8 - c); return Math.floor(a * d + (d - 1)) }, O2: function(a, c) { c = c || b.Sb("canvas"); this.jm = a; this.canvas = c; this.EZ(); if (this.k1()) { var d = this.getUint32(4); this.qB.length = 0; this.xO(d); var e = this.qB[0], d = e.ImageWidth.Ph[0], f = e.ImageLength.Ph[0]; this.canvas.width = d; this.canvas.height = f; var g = [], h = e.Compression ? e.Compression.Ph[0] : 1, k = e.SamplesPerPixel.Ph[0], m = [], p = 0, r = !1; e.BitsPerSample.Ph.forEach(function(a, c) { m[c] = { No: a, ax: !1, js: void 0 }; 0 === a % 8 && (m[c].ax = !0, m[c].js = a / 8); p += a }, this); if (0 === p % 8) var r = !0, s = p / 8; var u = e.StripOffsets.Ph, t = u.length; if (e.StripByteCounts) var v = e.StripByteCounts.Ph; else if (b.log("Missing StripByteCounts!"), 1 === t) v = [Math.ceil(d * f * p / 8)]; else throw Error("Cannot recover from missing StripByteCounts"); for (var w = 0; w < t; w++) { var y = u[w]; g[w] = []; for (var B = v[w], G = 0, I = 0, E = 1, A = !0, D = [], x = 0, F = 0, K = 0; G < B; G += E) switch (h) { case 1: E = 0; for (D = []; E < k; E++) if (m[E].ax) D.push(this.TM(m[E].js, y + G + m[E].js * E)); else { var L = this.R_(m[E].No, y + G, I); D.push(L.Mo); G = L.byteOffset - y; I = L.k$; throw RangeError("Cannot handle sub-byte bits per sample"); } g[w].push(D); if (r) E = s; else throw E = 0, RangeError("Cannot handle sub-byte bits per pixel"); break; case 32773: if (A) { var A = !1, J = 1, P = 1, E = this.getInt8(y + G); 0 <= E && 127 >= E ? J = E + 1 : -127 <= E && -1 >= E ? P = -E + 1 : A = !0 } else { for (var T = this.getUint8(y + G), E = 0; E < P; E++) { if (m[F].ax) K = K << 8 * x | T, x++, x === m[F].js && (D.push(K), K = x = 0, F++); else throw RangeError("Cannot handle sub-byte bits per sample"); F === k && (g[w].push(D), D = [], F = 0) } J--; 0 === J && (A = !0) } E = 1 } } if (c.getContext) { s = this.canvas.getContext("2d"); s.fillStyle = "rgba(255, 255, 255, 0)"; w = e.RowsPerStrip ? e.RowsPerStrip.Ph[0] : f; y = g.length; f %= w; f = 0 === f ? w : f; G = w; h = 0; D = e.PhotometricInterpretation.Ph[0]; J = []; P = 0; e.ExtraSamples && (J = e.ExtraSamples.Ph, P = J.length); if (e.ColorMap) var L = e.ColorMap.Ph, R = Math.pow(2, m[0].No); for (w = 0; w < y; w++) { w + 1 === y && (G = f); e = g[w].length; h *= w; for (r = k = 0; k < G, r < e; k++) for (u = 0; u < d; u++, r++) { v = g[w][r]; A = I = B = 0; t = 1; if (0 < P) for (B = 0; B < P; B++) if (1 === J[B] || 2 === J[B]) { t = v[3 + B] / 256; break } switch (D) { case 0: if (m[0].ax) var X = Math.pow(16, 2 * m[0].js); v.forEach(function(a, c, d) { d[c] = X - a }); case 1: B = I = A = this.xm(v[0], m[0].No); break; case 2: B = this.xm(v[0], m[0].No); I = this.xm(v[1], m[1].No); A = this.xm(v[2], m[2].No); break; case 3: if (void 0 === L) throw Error("Palette image missing color map"); v = v[0]; B = this.xm(L[v], 16); I = this.xm(L[R + v], 16); A = this.xm(L[2 * R + v], 16); break; default: throw RangeError("Unknown Photometric Interpretation:", D); } s.fillStyle = "rgba(" + B + ", " + I + ", " + A + ", " + t + ")"; s.fillRect(u, h + k, 1, 1) } h = G } } return this.canvas } }, G_: { 315: "Artist", 258: "BitsPerSample", 265: "CellLength", 264: "CellWidth", 320: "ColorMap", 259: "Compression", 33432: "Copyright", 306: "DateTime", 338: "ExtraSamples", 266: "FillOrder", 289: "FreeByteCounts", 288: "FreeOffsets", 291: "GrayResponseCurve", 290: "GrayResponseUnit", 316: "HostComputer", 270: "ImageDescription", 257: "ImageLength", 256: "ImageWidth", 271: "Make", 281: "MaxSampleValue", 280: "MinSampleValue", 272: "Model", 254: "NewSubfileType", 274: "Orientation", 262: "PhotometricInterpretation", 284: "PlanarConfiguration", 296: "ResolutionUnit", 278: "RowsPerStrip", 277: "SamplesPerPixel", 305: "Software", 279: "StripByteCounts", 273: "StripOffsets", 255: "SubfileType", 263: "Threshholding", 282: "XResolution", 283: "YResolution", 326: "BadFaxLines", 327: "CleanFaxData", 343: "ClipPath", 328: "ConsecutiveBadFaxLines", 433: "Decode", 434: "DefaultImageColor", 269: "DocumentName", 336: "DotRange", 321: "HalftoneHints", 346: "Indexed", 347: "JPEGTables", 285: "PageName", 297: "PageNumber", 317: "Predictor", 319: "PrimaryChromaticities", 532: "ReferenceBlackWhite", 339: "SampleFormat", 559: "StripRowCounts", 330: "SubIFDs", 292: "T4Options", 293: "T6Options", 325: "TileByteCounts", 323: "TileLength", 324: "TileOffsets", 322: "TileWidth", 301: "TransferFunction", 318: "WhitePoint", 344: "XClipPathUnits", 286: "XPosition", 529: "YCbCrCoefficients", 531: "YCbCrPositioning", 530: "YCbCrSubSampling", 345: "YClipPathUnits", 287: "YPosition", 37378: "ApertureValue", 40961: "ColorSpace", 36868: "DateTimeDigitized", 36867: "DateTimeOriginal", 34665: "Exif IFD", 36864: "ExifVersion", 33434: "ExposureTime", 41728: "FileSource", 37385: "Flash", 40960: "FlashpixVersion", 33437: "FNumber", 42016: "ImageUniqueID", 37384: "LightSource", 37500: "MakerNote", 37377: "ShutterSpeedValue", 37510: "UserComment", 33723: "IPTC", 34675: "ICC Profile", 700: "XMP", 42112: "GDAL_METADATA", 42113: "GDAL_NODATA", 34377: "Photoshop" }, H_: { 1: "BYTE", 2: "ASCII", 3: "SHORT", 4: "LONG", 5: "RATIONAL", 6: "SBYTE", 7: "UNDEFINED", 8: "SSHORT", 9: "SLONG", 10: "SRATIONAL", 11: "FLOAT", 12: "DOUBLE" } }; b.ng = function(a, c, d, e, f, g, h, k, m, p, r, s) { this.Xa = a ? a : C(0, 0); this.ty = c ? c : C(0, 0); this.color = d ? d : { r: 0, g: 0, b: 0, a: 255 }; this.ps = e ? e : { r: 0, g: 0, b: 0, a: 255 }; this.size = f || 0; this.mE = g || 0; this.rotation = h || 0; this.DM = k || 0; this.ol = m || 0; this.atlasIndex = p || 0; this.Rb = r ? r : new b.ng.nz; this.Id = s ? s : new b.ng.oz; this.TN = !1; this.rs = C(0, 0) }; b.ng.nz = function(a, c, d) { this.dir = a ? a : C(0, 0); this.radialAccel = c || 0; this.tangentialAccel = d || 0 }; b.ng.oz = function(a, c, d, e) { this.Fg = a || 0; this.zM = c || 0; this.Us = d || 0; this.CM = e || 0 }; b.ng.lu = [C(), C(), C(), C()]; b.n = b.k.extend({ iC: "", kb: 0, gJ: !1, Rb: null, Id: null, vb: "ParticleSystem", oC: C(0, 0), Fk: null, Ml: 0, lf: 0, V: null, atlasIndex: 0, mm: !1, zu: 0, Jw: null, sy: null, io: !1, td: 0, duration: 0, vo: null, Hk: null, Re: 0, lp: 0, Fg: 0, Ko: 0, Ap: 0, Bp: 0, Dm: 0, To: 0, vh: null, Ok: null, Ge: null, rk: null, Cp: 0, Dp: 0, Uo: 0, Vo: 0, Cm: 0, ob: 0, G: null, p: null, Oa: !1, Ji: null, hs: !1, Ca: 0, Dc: null, lb: null, vc: null, zr: null, ma: null, bd: null, ctor: function(a) { b.k.prototype.ctor.call(this); this.Ca = b.n.eb; this.Rb = new b.n.nz; this.Id = new b.n.oz; this.p = { src: b.dc, S: b.cc }; this.Fk = []; this.vo = C(0, 0); this.Hk = C(0, 0); this.vh = b.color(255, 255, 255, 255); this.Ok = b.color(255, 255, 255, 255); this.Ge = b.color(255, 255, 255, 255); this.rk = b.color(255, 255, 255, 255); this.iC = ""; this.kb = 0; this.gJ = !1; this.oC = C(0, 0); this.lf = this.Ml = 0; this.V = null; this.atlasIndex = 0; this.mm = !1; this.zu = 0; this.Jw = b.n.OS; this.sy = b.n.iQ; this.io = !1; this.ob = this.Cm = this.Vo = this.Uo = this.Dp = this.Cp = this.To = this.Dm = this.Bp = this.Ap = this.Ko = this.Fg = this.lp = this.Re = this.duration = this.td = 0; this.G = null; this.Oa = !1; this.Ji = b.n.zq; this.hs = !1; this.vc = [0, 0]; this.Dc = []; this.lb = []; this.zr = O(0, 0, 0, 0); this.ma = !0; b.A === b.U && (this.bd = null); a && "number" !== typeof a ? a && this.bl(a) : (a = a || 100, this.X3(b.n.JH), this.Qb(a)) }, XE: function() { for (var a = this.lb, c = 0, d = this.ob; c < d; ++c) { var e = 6 * c, f = 4 * c; a[e + 0] = f + 0; a[e + 1] = f + 1; a[e + 2] = f + 2; a[e + 5] = f + 1; a[e + 4] = f + 2; a[e + 3] = f + 3 } }, DN: function(a) { var c = b.pb(), d = O(a.x * c, a.y * c, a.width * c, a.height * c), e = a.width, f = a.height; this.G && (e = this.G.pixelsWidth, f = this.G.pixelsHeight); if (b.A !== b.Ba) { b.jn ? (a = (2 * d.x + 1) / (2 * e), c = (2 * d.y + 1) / (2 * f), e = a + (2 * d.width - 2) / (2 * e), d = c + (2 * d.height - 2) / (2 * f)) : (a = d.x / e, c = d.y / f, e = a + d.width / e, d = c + d.height / f); var f = d, d = c, c = f, g = 0, h = 0; this.V ? (f = this.V.textureAtlas.quads, g = this.atlasIndex, h = this.atlasIndex + this.ob) : (f = this.Dc, g = 0, h = this.ob); for (; g < h; g++) { f[g] || (f[g] = b.wI()); var k = f[g]; k.C.m.fa = a; k.C.m.ga = c; k.L.m.fa = e; k.L.m.ga = c; k.K.m.fa = a; k.K.m.ga = d; k.J.m.fa = e; k.J.m.ga = d } } }, yE: function() { return this.V }, ml: function(a) { if (this.V != a) { var c = this.V; if (this.V = a) for (var d = this.Fk, e = 0; e < this.ob; e++) d[e].atlasIndex = e; a ? c || (this.V.textureAtlas.qV(this.Dc, this.atlasIndex), b.l.deleteBuffer(this.vc[1])) : (this.LI(), this.XE(), this.Ya(c.za()), this.em()) } }, $o: function() { return this.atlasIndex }, QF: function(a) { this.atlasIndex = a }, Bba: function() { return this.Jw }, X3: function(a) { this.Jw = a }, Vca: function() { return this.sy }, Aja: function(a) { this.sy = a }, vf: function() { return this.io }, Bca: function() { return this.td }, oja: function(a) { this.td = a }, ap: function() { return this.duration }, Zf: function(a) { this.duration = a }, U0: function() { return { x: this.vo.x, y: this.vo.y } }, z4: function(a) { this.vo = a }, HE: function() { return { x: this.Hk.x, y: this.Hk.y } }, Tg: function(a) { this.Hk = a }, fca: function() { return this.Re }, Rg: function(a) { this.Re = a }, gca: function() { return this.lp }, Sg: function(a) { this.lp = a }, aba: function() { return this.Fg }, Mg: function(a) { this.Fg = a }, bba: function() { return this.Ko }, Ng: function(a) { this.Ko = a }, $M: function() { this.Ca !== b.n.eb && b.log("cc.ParticleBatchNode.getGravity() : Particle Mode should be Gravity"); var a = this.Rb.gravity; return C(a.x, a.y) }, ag: function(a) { this.Ca !== b.n.eb && b.log("cc.ParticleBatchNode.setGravity() : Particle Mode should be Gravity"); this.Rb.gravity = a }, Uw: function() { this.Ca !== b.n.eb && b.log("cc.ParticleBatchNode.getSpeed() : Particle Mode should be Gravity"); return this.Rb.speed }, Ve: function(a) { this.Ca !== b.n.eb && b.log("cc.ParticleBatchNode.setSpeed() : Particle Mode should be Gravity"); this.Rb.speed = a }, nN: function() { this.Ca !== b.n.eb && b.log("cc.ParticleBatchNode.getSpeedVar() : Particle Mode should be Gravity"); return this.Rb.speedVar }, dg: function(a) { this.Ca !== b.n.eb && b.log("cc.ParticleBatchNode.setSpeedVar() : Particle Mode should be Gravity"); this.Rb.speedVar = a }, sN: function() { this.Ca !== b.n.eb && b.log("cc.ParticleBatchNode.getTangentialAccel() : Particle Mode should be Gravity"); return this.Rb.tangentialAccel }, Pj: function(a) { this.Ca !== b.n.eb && b.log("cc.ParticleBatchNode.setTangentialAccel() : Particle Mode should be Gravity"); this.Rb.tangentialAccel = a }, tN: function() { this.Ca !== b.n.eb && b.log("cc.ParticleBatchNode.getTangentialAccelVar() : Particle Mode should be Gravity"); return this.Rb.tangentialAccelVar }, Qj: function(a) { this.Ca !== b.n.eb && b.log("cc.ParticleBatchNode.setTangentialAccelVar() : Particle Mode should be Gravity"); this.Rb.tangentialAccelVar = a }, gN: function() { this.Ca !== b.n.eb && b.log("cc.ParticleBatchNode.getRadialAccel() : Particle Mode should be Gravity"); return this.Rb.radialAccel }, bg: function(a) { this.Ca !== b.n.eb && b.log("cc.ParticleBatchNode.setRadialAccel() : Particle Mode should be Gravity"); this.Rb.radialAccel = a }, hN: function() { this.Ca !== b.n.eb && b.log("cc.ParticleBatchNode.getRadialAccelVar() : Particle Mode should be Gravity"); return this.Rb.radialAccelVar }, cg: function(a) { this.Ca !== b.n.eb && b.log("cc.ParticleBatchNode.setRadialAccelVar() : Particle Mode should be Gravity"); this.Rb.radialAccelVar = a }, M0: function() { this.Ca !== b.n.eb && b.log("cc.ParticleBatchNode.getRotationIsDir() : Particle Mode should be Gravity"); return this.Rb.rotationIsDir }, u4: function(a) { this.Ca !== b.n.eb && b.log("cc.ParticleBatchNode.setRotationIsDir() : Particle Mode should be Gravity"); this.Rb.rotationIsDir = a }, qN: function() { this.Ca !== b.n.$e && b.log("cc.ParticleBatchNode.getStartRadius() : Particle Mode should be Radius"); return this.Id.startRadius }, vP: function(a) { this.Ca !== b.n.$e && b.log("cc.ParticleBatchNode.setStartRadius() : Particle Mode should be Radius"); this.Id.startRadius = a }, rN: function() { this.Ca !== b.n.$e && b.log("cc.ParticleBatchNode.getStartRadiusVar() : Particle Mode should be Radius"); return this.Id.startRadiusVar }, wP: function(a) { this.Ca !== b.n.$e && b.log("cc.ParticleBatchNode.setStartRadiusVar() : Particle Mode should be Radius"); this.Id.startRadiusVar = a }, XM: function() { this.Ca !== b.n.$e && b.log("cc.ParticleBatchNode.getEndRadius() : Particle Mode should be Radius"); return this.Id.endRadius }, cP: function(a) { this.Ca !== b.n.$e && b.log("cc.ParticleBatchNode.setEndRadius() : Particle Mode should be Radius"); this.Id.endRadius = a }, YM: function() { this.Ca !== b.n.$e && b.log("cc.ParticleBatchNode.getEndRadiusVar() : Particle Mode should be Radius"); return this.Id.endRadiusVar }, dP: function(a) { this.Ca !== b.n.$e && b.log("cc.ParticleBatchNode.setEndRadiusVar() : Particle Mode should be Radius"); this.Id.endRadiusVar = a }, iN: function() { this.Ca !== b.n.$e && b.log("cc.ParticleBatchNode.getRotatePerSecond() : Particle Mode should be Radius"); return this.Id.ay }, rP: function(a) { this.Ca !== b.n.$e && b.log("cc.ParticleBatchNode.setRotatePerSecond() : Particle Mode should be Radius"); this.Id.ay = a }, jN: function() { this.Ca !== b.n.$e && b.log("cc.ParticleBatchNode.getRotatePerSecondVar() : Particle Mode should be Radius"); return this.Id.by }, sP: function(a) { this.Ca !== b.n.$e && b.log("cc.ParticleBatchNode.setRotatePerSecondVar() : Particle Mode should be Radius"); this.Id.by = a }, Li: function(a, c) { this.mm = !0; b.k.prototype.Li.call(this, a, c) }, $F: function(a) { this.mm = !0; b.k.prototype.$F.call(this, a) }, bt: function(a) { this.mm = !0; b.k.prototype.bt.call(this, a) }, ct: function(a) { this.mm = !0; b.k.prototype.ct.call(this, a) }, Yca: function() { return this.Ap }, Ug: function(a) { this.Ap = a }, Zca: function() { return this.Bp }, Vg: function(a) { this.Bp = a }, Gba: function() { return this.Dm }, Qg: function(a) { this.Dm = a }, Hba: function() { return this.To }, Z3: function(a) { this.To = a }, Vw: function() { return b.color(this.vh.r, this.vh.g, this.vh.b, this.vh.a) }, We: function(a) { this.vh = b.color(a) }, pN: function() { return b.color(this.Ok.r, this.Ok.g, this.Ok.b, this.Ok.a) }, eg: function(a) { this.Ok = b.color(a) }, Qw: function() { return b.color(this.Ge.r, this.Ge.g, this.Ge.b, this.Ge.a) }, Te: function(a) { this.Ge = b.color(a) }, WM: function() { return b.color(this.rk.r, this.rk.g, this.rk.b, this.rk.a) }, $f: function(a) { this.rk = b.color(a) }, $ca: function() { return this.Cp }, B4: function(a) { this.Cp = a }, ada: function() { return this.Dp }, C4: function(a) { this.Dp = a }, Iba: function() { return this.Uo }, a4: function(a) { this.Uo = a }, Jba: function() { return this.Vo }, b4: function(a) { this.Vo = a }, Eba: function() { return this.Cm }, Og: function(a) { this.Cm = a }, Y0: function() { return this.ob }, F4: function(a) { if (b.A === b.Ba) this.ob = 200 > a ? a : 200; else { if (a > this.zu) { var c = b.zb.BYTES_PER_ELEMENT; this.lb = new Uint16Array(6 * a); var d = new ArrayBuffer(a * c), e = this.Fk; e.length = 0; for (var f = this.Dc, g = f.length = 0; g < a; g++) e[g] = new b.ng, f[g] = new b.zb(null, null, null, null, d, g * c); this.ob = this.zu = a; if (this.V) for (c = 0; c < a; c++) e[c].atlasIndex = c; this.bd = d; this.XE(); this.em(); this.G && this.DN(O(0, 0, this.G.width, this.G.height)) } else this.ob = a; this.w3() } }, za: function() { return this.G }, Ya: function(a) { a.wc ? this.fG(a, O(0, 0, a.width, a.height)) : (this.ma = !1, a.$d(function(a) { this.ma = !0; this.fG(a, O(0, 0, a.width, a.height)) }, this)) }, Dh: function() { return this.p }, Se: function(a, c) { if (void 0 === c) this.p != a && (this.p = a, this.Qf()); else if (this.p.src != a || this.p.S != c) this.p = { src: a, S: c }, this.Qf() }, Wf: function() { return this.Oa }, Ue: function(a) { this.Oa = a }, C1: function() { return this.p.src == b.SRC_ALPHA && this.p.S == b.ONE || this.p.src == b.ONE && this.p.S == b.ONE }, Nh: function(a) { var c = this.p; a ? (c.src = b.SRC_ALPHA, c.S = b.ONE) : b.A === b.U ? this.G && !this.G.Ai() ? (c.src = b.SRC_ALPHA, c.S = b.ONE_MINUS_SRC_ALPHA) : (c.src = b.dc, c.S = b.cc) : (c.src = b.dc, c.S = b.cc) }, Eca: function() { return this.Ji }, qja: function(a) { this.Ji = a }, Rda: function() { return this.hs }, kia: function(a) { this.hs = a }, Fba: function() { return this.Ca }, Pg: function(a) { this.Ca = a }, da: function() { return this.Qb(150) }, bl: function(a) { this.iC = a; a = b.T.Hd(a); return a ? this.p1(a, "") : (b.log("cc.ParticleSystem.initWithFile(): Particles: file not found"), !1) }, T_: function() { return O(0, 0, b.Va.width, b.Va.height) }, p1: function(a) { var c = !1, d = null, d = this.TY, e = parseInt(d("maxParticles", a)); if (this.Qb(e)) { this.Fg = parseFloat(d("angle", a)); this.Ko = parseFloat(d("angleVariance", a)); this.duration = parseFloat(d("duration", a)); this.p.src = parseInt(d("blendFuncSource", a)); this.p.S = parseInt(d("blendFuncDestination", a)); c = this.vh; c.r = 255 * parseFloat(d("startColorRed", a)); c.g = 255 * parseFloat(d("startColorGreen", a)); c.b = 255 * parseFloat(d("startColorBlue", a)); c.a = 255 * parseFloat(d("startColorAlpha", a)); c = this.Ok; c.r = 255 * parseFloat(d("startColorVarianceRed", a)); c.g = 255 * parseFloat(d("startColorVarianceGreen", a)); c.b = 255 * parseFloat(d("startColorVarianceBlue", a)); c.a = 255 * parseFloat(d("startColorVarianceAlpha", a)); c = this.Ge; c.r = 255 * parseFloat(d("finishColorRed", a)); c.g = 255 * parseFloat(d("finishColorGreen", a)); c.b = 255 * parseFloat(d("finishColorBlue", a)); c.a = 255 * parseFloat(d("finishColorAlpha", a)); c = this.rk; c.r = 255 * parseFloat(d("finishColorVarianceRed", a)); c.g = 255 * parseFloat(d("finishColorVarianceGreen", a)); c.b = 255 * parseFloat(d("finishColorVarianceBlue", a)); c.a = 255 * parseFloat(d("finishColorVarianceAlpha", a)); this.Ap = parseFloat(d("startParticleSize", a)); this.Bp = parseFloat(d("startParticleSizeVariance", a)); this.Dm = parseFloat(d("finishParticleSize", a)); this.To = parseFloat(d("finishParticleSizeVariance", a)); this.P(parseFloat(d("sourcePositionx", a)), parseFloat(d("sourcePositiony", a))); this.Hk.x = parseFloat(d("sourcePositionVariancex", a)); this.Hk.y = parseFloat(d("sourcePositionVariancey", a)); this.Cp = parseFloat(d("rotationStart", a)); this.Dp = parseFloat(d("rotationStartVariance", a)); this.Uo = parseFloat(d("rotationEnd", a)); this.Vo = parseFloat(d("rotationEndVariance", a)); this.Ca = parseInt(d("emitterType", a)); if (this.Ca == b.n.eb) c = this.Rb, c.gravity.x = parseFloat(d("gravityx", a)), c.gravity.y = parseFloat(d("gravityy", a)), c.speed = parseFloat(d("speed", a)), c.speedVar = parseFloat(d("speedVariance", a)), e = d("radialAcceleration", a), c.radialAccel = e ? parseFloat(e) : 0, e = d("radialAccelVariance", a), c.radialAccelVar = e ? parseFloat(e) : 0, e = d("tangentialAcceleration", a), c.tangentialAccel = e ? parseFloat(e) : 0, e = d("tangentialAccelVariance", a), c.tangentialAccelVar = e ? parseFloat(e) : 0, e = d("rotationIsDir", a).toLowerCase(), c.rotationIsDir = null != e && ("true" === e || "1" === e); else if (this.Ca == b.n.$e) c = this.Id, c.startRadius = parseFloat(d("maxRadius", a)), c.startRadiusVar = parseFloat(d("maxRadiusVariance", a)), c.endRadius = parseFloat(d("minRadius", a)), c.endRadiusVar = 0, c.ay = parseFloat(d("rotatePerSecond", a)), c.by = parseFloat(d("rotatePerSecondVariance", a)); else return b.log("cc.ParticleSystem.initWithDictionary(): Invalid emitterType in config file"), !1; this.Re = parseFloat(d("particleLifespan", a)); this.lp = parseFloat(d("particleLifespanVariance", a)); this.Cm = this.ob / this.Re; if (!this.V) if (this.Oa = !1, c = d("textureFileName", a), c = b.path.Oo(this.iC, c), e = b.Da.Ym(c)) this.Ya(e); else if ((a = d("textureImageData", a)) && 0 !== a.length) { d = b.UP(a, 1); if (!d) return b.log("cc.ParticleSystem: error decoding or ungzipping textureImageData"), !1; a = b.o0(d); if (a !== b.PG && a !== b.Zy) return b.log("cc.ParticleSystem: unknown image format with Data"), !1; e = b.Sb("canvas"); a === b.Zy ? (new b.oS(d)).v3(e) : b.x5.O2(d, e); b.Da.AZ(c, e); (a = b.Da.Ym(c)) || b.log("cc.ParticleSystem.initWithDictionary() : error loading the texture"); this.Ya(a) } else { e = b.Da.Hc(c); if (!e) return !1; this.Ya(e) } c = !0 } return c }, Qb: function(a) { this.ob = a; var c, d = this.Fk; for (c = d.length = 0; c < a; c++) d[c] = new b.ng; if (!d) return b.log("Particle system: not enough memory"), !1; this.zu = a; if (this.V) for (c = 0; c < this.ob; c++) d[c].atlasIndex = c; this.io = !0; this.p.src = b.dc; this.p.S = b.cc; this.Ji = b.n.zq; this.Ca = b.n.eb; this.mm = this.hs = !1; this.UO(1); if (b.A === b.U) { if (!this.LI()) return !1; this.XE(); this.em(); this.shaderProgram = b.Md.nc(b.Wi) } return !0 }, N$: function() { this.TP() }, ZY: function() { if (this.F1()) return !1; var a, c = this.Fk; b.A === b.Ba ? this.td < c.length ? a = c[this.td] : (a = new b.ng, c.push(a)) : a = c[this.td]; this.n1(a); ++this.td; return !0 }, n1: function(a) { var c = b.i3; a.ol = this.Re + this.lp * c(); a.ol = Math.max(0, a.ol); a.Xa.x = this.vo.x + this.Hk.x * c(); a.Xa.y = this.vo.y + this.Hk.y * c(); var d, e; d = this.vh; var f = this.Ok, g = this.Ge; e = this.rk; b.A === b.Ba ? (d = b.color(b.Vc(d.r + f.r * c(), 0, 255), b.Vc(d.g + f.g * c(), 0, 255), b.Vc(d.b + f.b * c(), 0, 255), b.Vc(d.a + f.a * c(), 0, 255)), e = b.color(b.Vc(g.r + e.r * c(), 0, 255), b.Vc(g.g + e.g * c(), 0, 255), b.Vc(g.b + e.b * c(), 0, 255), b.Vc(g.a + e.a * c(), 0, 255))) : (d = { r: b.Vc(d.r + f.r * c(), 0, 255), g: b.Vc(d.g + f.g * c(), 0, 255), b: b.Vc(d.b + f.b * c(), 0, 255), a: b.Vc(d.a + f.a * c(), 0, 255) }, e = { r: b.Vc(g.r + e.r * c(), 0, 255), g: b.Vc(g.g + e.g * c(), 0, 255), b: b.Vc(g.b + e.b * c(), 0, 255), a: b.Vc(g.a + e.a * c(), 0, 255) }); a.color = d; f = a.ps; g = a.ol; f.r = (e.r - d.r) / g; f.g = (e.g - d.g) / g; f.b = (e.b - d.b) / g; f.a = (e.a - d.a) / g; d = this.Ap + this.Bp * c(); d = Math.max(0, d); a.size = d; this.Dm === b.n.og ? a.mE = 0 : (e = this.Dm + this.To * c(), e = Math.max(0, e), a.mE = (e - d) / g); d = this.Cp + this.Dp * c(); e = this.Uo + this.Vo * c(); a.rotation = d; a.DM = (e - d) / g; this.Ji == b.n.zq ? a.ty = this.Fw(this.oC) : this.Ji == b.n.dA && (a.ty.x = this.wa.x, a.ty.y = this.wa.y); d = b.Sf(this.Fg + this.Ko * c()); if (this.Ca === b.n.eb) g = this.Rb, e = a.Rb, f = g.speed + g.speedVar * c(), e.dir.x = Math.cos(d), e.dir.y = Math.sin(d), b.rp(e.dir, f), e.radialAccel = g.radialAccel + g.radialAccelVar * c(), e.tangentialAccel = g.tangentialAccel + g.tangentialAccelVar * c(), g.rotationIsDir && (a.rotation = -b.FF(b.L2(e.dir))); else { e = this.Id; a = a.Id; var f = e.startRadius + e.startRadiusVar * c(), h = e.endRadius + e.endRadiusVar * c(); a.Us = f; a.CM = e.endRadius === b.n.PS ? 0 : (h - f) / g; a.Fg = d; a.zM = b.Sf(e.ay + e.by * c()) } }, m5: function() { this.io = !1; this.kb = this.duration; this.Ml = 0 }, w3: function() { this.io = !0; this.kb = 0; var a = this.Fk; for (this.lf = 0; this.lf < this.td; ++this.lf) a[this.lf].ol = 0 }, F1: function() { return this.td >= this.ob }, J5: function(a, c) { var d = null; this.V ? (d = this.V.textureAtlas.quads[this.atlasIndex + a.atlasIndex], this.V.textureAtlas.dirty = !0) : d = this.Dc[this.lf]; var e, f, g, h; this.Oa ? (e = 0 | a.color.r * a.color.a / 255, f = 0 | a.color.g * a.color.a / 255, g = 0 | a.color.b * a.color.a / 255) : (e = 0 | a.color.r, f = 0 | a.color.g, g = 0 | a.color.b); h = 0 | a.color.a; var k = d.C.s; k.r = e; k.g = f; k.b = g; k.a = h; k = d.L.s; k.r = e; k.g = f; k.b = g; k.a = h; k = d.K.s; k.r = e; k.g = f; k.b = g; k.a = h; k = d.J.s; k.r = e; k.g = f; k.b = g; k.a = h; e = a.size / 2; if (a.rotation) { f = -e; g = -e; h = c.x; var k = c.y, m = -b.Sf(a.rotation), p = Math.cos(m), m = Math.sin(m); d.C.f.x = f * p - g * m + h; d.C.f.y = f * m + g * p + k; d.L.f.x = e * p - g * m + h; d.L.f.y = e * m + g * p + k; d.K.f.x = f * p - e * m + h; d.K.f.y = f * m + e * p + k; d.J.f.x = e * p - e * m + h; d.J.f.y = e * m + e * p + k } else d.C.f.x = c.x - e, d.C.f.y = c.y - e, d.L.f.x = c.x + e, d.L.f.y = c.y - e, d.K.f.x = c.x - e, d.K.f.y = c.y + e, d.J.f.x = c.x + e, d.J.f.y = c.y + e }, a3: function() { if (b.A === b.U) { var a = b.l; a.bindBuffer(a.ARRAY_BUFFER, this.vc[0]); a.bufferData(a.ARRAY_BUFFER, this.bd, a.DYNAMIC_DRAW) } }, update: function(a) { if (this.io && this.Cm) { var c = 1 / this.Cm; this.td < this.ob && (this.Ml += a); for (; this.td < this.ob && this.Ml > c;) this.ZY(), this.Ml -= c; this.kb += a; - 1 != this.duration && this.duration < this.kb && this.m5() } this.lf = 0; c = b.ng.lu[0]; this.Ji == b.n.zq ? b.Lj(c, this.Fw(this.oC)) : this.Ji == b.n.dA && (c.x = this.wa.x, c.y = this.wa.y); if (this.lc) { for (var d = b.ng.lu[1], e = b.ng.lu[2], f = b.ng.lu[3], g = this.Fk; this.lf < this.td;) { b.Rx(d); b.Rx(e); b.Rx(f); var h = g[this.lf]; h.ol -= a; if (0 < h.ol) { if (this.Ca == b.n.eb) { var k = f, m = d, p = e; h.Xa.x || h.Xa.y ? (b.Lj(m, h.Xa), b.J2(m)) : b.Rx(m); b.Lj(p, m); b.rp(m, h.Rb.radialAccel); var r = p.x; p.x = -p.y; p.y = r; b.rp(p, h.Rb.tangentialAccel); b.Lj(k, m); b.Px(k, p); b.Px(k, this.Rb.gravity); b.rp(k, a); b.Px(h.Rb.dir, k); b.Lj(k, h.Rb.dir); b.rp(k, a); b.Px(h.Xa, k) } else k = h.Id, k.Fg += k.zM * a, k.Us += k.CM * a, h.Xa.x = -Math.cos(k.Fg) * k.Us, h.Xa.y = -Math.sin(k.Fg) * k.Us; this.gJ && b.A !== b.U || (h.color.r += 0 | h.ps.r * a, h.color.g += 0 | h.ps.g * a, h.color.b += 0 | h.ps.b * a, h.color.a += 0 | h.ps.a * a, h.TN = !0); h.size += h.mE * a; h.size = Math.max(0, h.size); h.rotation += h.DM * a; k = d; this.Ji == b.n.zq || this.Ji == b.n.dA ? (m = e, b.Lj(m, c), b.wO(m, h.ty), b.Lj(k, h.Xa), b.wO(k, m)) : b.Lj(k, h.Xa); this.V && (k.x += this.wa.x, k.y += this.wa.y); b.A == b.U ? this.J5(h, k) : b.Lj(h.rs, k); ++this.lf } else if (h = h.atlasIndex, this.lf !== this.td - 1 && (k = g[this.lf], g[this.lf] = g[this.td - 1], g[this.td - 1] = k), this.V && (this.V.VZ(this.atlasIndex + h), g[this.td - 1].atlasIndex = h), --this.td, 0 == this.td && this.hs) { this.TP(); this.Sc.removeChild(this, !0); return } } this.mm = !1 } this.V || this.a3() }, M5: function() { this.update(0) }, TY: function(a, c) { if (c) { var d = c[a]; return null != d ? d : "" } return "" }, Qf: function() { if (this.V) b.log("Can't change blending functions when the particle is being batched"); else { var a = this.G; if (a && a instanceof b.aa) { this.Oa = !1; var c = this.p; c.src == b.dc && c.S == b.cc && (a.Ai() ? this.Oa = !0 : (c.src = b.SRC_ALPHA, c.S = b.ONE_MINUS_SRC_ALPHA)) } } }, j: function() { var a = new b.n; if (a.Qb(this.ob)) { a.Mg(this.Fg); a.Ng(this.Ko); a.Zf(this.ap()); var c = this.Dh(); a.Se(c.src, c.S); a.We(this.Vw()); a.eg(this.pN()); a.Te(this.Qw()); a.$f(this.WM()); a.Ug(this.Ap); a.Vg(this.Bp); a.Qg(this.Dm); a.Z3(this.To); a.P(C(this.x, this.y)); a.Tg(C(this.HE().x, this.HE().y)); a.B4(this.Cp || 0); a.C4(this.Dp || 0); a.a4(this.Uo || 0); a.b4(this.Vo || 0); a.Pg(this.Ca); this.Ca == b.n.eb ? (c = this.$M(), a.ag(C(c.x, c.y)), a.Ve(this.Uw()), a.dg(this.nN()), a.bg(this.gN()), a.cg(this.hN()), a.Pj(this.sN()), a.Qj(this.tN())) : this.Ca == b.n.$e && (a.vP(this.qN()), a.wP(this.rN()), a.cP(this.XM()), a.dP(this.YM()), a.rP(this.iN()), a.sP(this.jN())); a.Rg(this.Re); a.Sg(this.lp); a.Og(this.Cm); if (!this.V && (a.Ue(this.Wf()), c = this.za())) { var d = c.se(); a.fG(c, O(0, 0, d.width, d.height)) } } return a }, V3: function(a) { var c = a.D0(); 0 == c.x && 0 == c.y || b.log("cc.ParticleSystem.setDisplayFrame(): QuadParticle only supports SpriteFrames with no offsets"); b.A === b.U && (this.G && a.za().Zd == this.G.Zd || this.Ya(a.za())) }, fG: function(a, c) { var d = this.G; b.A === b.U ? d && a.Zd == d.Zd || d == a || (this.G = a, this.Qf()) : d && a == d || d == a || (this.G = a, this.Qf()); this.zr = c; this.DN(c) }, Y: function(a) { this.ma && !this.V && (b.A === b.Ba ? this.Ll(a) : this.aj(a), b.sf++) }, Ll: function(a) { a = a || b.l; a.save(); a.globalCompositeOperation = this.C1() ? "lighter" : "source-over"; for (var c = this.G.Wa, d = 0; d < this.td; d++) { var e = this.Fk[d], f = 0 | 0.5 * e.size; if (this.Jw == b.n.JH) { if (c.width && c.height) { a.save(); a.globalAlpha = e.color.a / 255; a.translate(0 | e.rs.x, -(0 | e.rs.y)); var f = 4 * Math.floor(e.size / 4), g = this.zr.width, h = this.zr.height; a.scale(Math.max(1 / g * f, 1E-6), Math.max(1 / h * f, 1E-6)); e.rotation && a.rotate(b.Sf(e.rotation)); a.translate(-(0 | g / 2), -(0 | h / 2)); (e = e.TN ? this.ee(c, e.color, this.zr) : c) && a.drawImage(e, 0, 0); a.restore() } } else a.save(), a.globalAlpha = e.color.a / 255, a.translate(0 | e.rs.x, -(0 | e.rs.y)), this.sy == b.n.QS ? (e.rotation && a.rotate(b.Sf(e.rotation)), b.Fe.e_(a, f, e.color)) : b.Fe.YZ(a, f, e.color), a.restore() } a.restore() }, ee: function(a, c, d) { c.r |= 0; c.g |= 0; c.b |= 0; a.Oi || (a.Oi = document.createElement("canvas"), a.Oi.width = a.width, a.Oi.height = a.height); return b.Hm(a, c, d, a.Oi) }, aj: function(a) { this.G && (a = a || b.l, this.Eb.Oc(), this.Eb.Ye(), b.te(this.G), b.xN(this.p.src, this.p.S), b.Jc(b.El), a.bindBuffer(a.ARRAY_BUFFER, this.vc[0]), a.vertexAttribPointer(b.qb, 3, a.FLOAT, !1, 24, 0), a.vertexAttribPointer(b.Ce, 4, a.UNSIGNED_BYTE, !0, 24, 12), a.vertexAttribPointer(b.zd, 2, a.FLOAT, !1, 24, 16), a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, this.vc[1]), a.drawElements(a.TRIANGLES, 6 * this.lf, a.UNSIGNED_SHORT, 0)) }, cga: function() { b.Uz || this.em() }, C9: function() {}, em: function() { if (b.A != b.Ba) { var a = b.l; this.vc[0] = a.createBuffer(); a.bindBuffer(a.ARRAY_BUFFER, this.vc[0]); a.bufferData(a.ARRAY_BUFFER, this.bd, a.DYNAMIC_DRAW); this.vc[1] = a.createBuffer(); a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, this.vc[1]); a.bufferData(a.ELEMENT_ARRAY_BUFFER, this.lb, a.STATIC_DRAW) } }, LI: function() { if (b.A === b.Ba) return !0; if (this.V) return b.log("cc.ParticleSystem._allocMemory(): Memory should not be allocated when not using batchNode"), !1; var a = b.zb.BYTES_PER_ELEMENT, c = this.ob, d = this.Dc; d.length = 0; this.lb = new Uint16Array(6 * c); for (var e = new ArrayBuffer(a * c), f = 0; f < c; f++) d[f] = new b.zb(null, null, null, null, e, f * a); if (!d || !this.lb) return b.log("cocos2d: Particle system: not enough memory"), !1; this.bd = e; return !0 } }); n = b.n.prototype; b.A !== b.Ba || b.hb.hw || (n.ee = function(a, c, d) { var e = b.Da.Ww(a); return e ? (e.Oi || (e.Oi = document.createElement("canvas"), e.Oi.width = a.width, e.Oi.height = a.height), b.Gm(a, e, c, d, e.Oi), e.Oi) : null }); b.i(n, "opacityModifyRGB", n.Wf, n.Ue); b.i(n, "batchNode", n.yE, n.ml); b.i(n, "active", n.vf); b.i(n, "sourcePos", n.U0, n.z4); b.i(n, "posVar", n.HE, n.Tg); b.i(n, "gravity", n.$M, n.ag); b.i(n, "speed", n.Uw, n.Ve); b.i(n, "speedVar", n.nN, n.dg); b.i(n, "tangentialAccel", n.sN, n.Pj); b.i(n, "tangentialAccelVar", n.tN, n.Qj); b.i(n, "radialAccel", n.gN, n.bg); b.i(n, "radialAccelVar", n.hN, n.cg); b.i(n, "rotationIsDir", n.M0, n.u4); b.i(n, "startRadius", n.qN, n.vP); b.i(n, "startRadiusVar", n.rN, n.wP); b.i(n, "endRadius", n.XM, n.cP); b.i(n, "endRadiusVar", n.YM, n.dP); b.i(n, "rotatePerS", n.iN, n.rP); b.i(n, "rotatePerSVar", n.jN, n.sP); b.i(n, "startColor", n.Vw, n.We); b.i(n, "startColorVar", n.pN, n.eg); b.i(n, "endColor", n.Qw, n.Te); b.i(n, "endColorVar", n.WM, n.$f); b.i(n, "totalParticles", n.Y0, n.F4); b.i(n, "texture", n.za, n.Ya); b.n.create = function(a) { return new b.n(a) }; b.n.H$ = b.n.create; b.n.nz = function(a, c, d, e, f, g, h, k) { this.gravity = a ? a : C(0, 0); this.speed = c || 0; this.speedVar = d || 0; this.tangentialAccel = e || 0; this.tangentialAccelVar = f || 0; this.radialAccel = g || 0; this.radialAccelVar = h || 0; this.rotationIsDir = k || !1 }; b.n.oz = function(a, c, d, e, f, g) { this.startRadius = a || 0; this.startRadiusVar = c || 0; this.endRadius = d || 0; this.endRadiusVar = e || 0; this.ay = f || 0; this.by = g || 0 }; b.n.OS = 0; b.n.JH = 1; b.n.QS = 0; b.n.iQ = 1; b.n.Qh = -1; b.n.og = -1; b.n.PS = -1; b.n.eb = 0; b.n.$e = 1; b.n.zq = 0; b.n.dA = 1; b.n.x8 = 2; b.nH = b.n.extend({ ctor: function() { b.n.prototype.ctor.call(this, b.A === b.U ? 300 : 150) }, Qb: function(a) { return b.n.prototype.Qb.call(this, a) ? (this.Zf(b.n.Qh), this.Pg(b.n.eb), this.ag(C(0, 0)), this.bg(0), this.cg(0), this.Ve(60), this.dg(20), this.Mg(90), this.Ng(10), this.P(b.I.Aa().width / 2, 60), this.Tg(C(40, 20)), this.Rg(3), this.Sg(0.25), this.Ug(54), this.Vg(10), this.Qg(b.n.og), this.Og(this.ob / this.Re), this.We(b.color(194, 64, 31, 255)), this.eg(b.color(0, 0, 0, 0)), this.Te(b.color(0, 0, 0, 255)), this.$f(b.color(0, 0, 0, 0)), this.Nh(!0), !0) : !1 } }); b.nH.create = function() { return new b.nH }; b.oH = b.n.extend({ ctor: function() { b.n.prototype.ctor.call(this, b.A === b.U ? 1500 : 150) }, Qb: function(a) { return b.n.prototype.Qb.call(this, a) ? (this.Zf(b.n.Qh), this.Pg(b.n.eb), this.ag(C(0, -90)), this.bg(0), this.cg(0), this.Ve(180), this.dg(50), a = b.I.Aa(), this.P(a.width / 2, a.height / 2), this.Mg(90), this.Ng(20), this.Rg(3.5), this.Sg(1), this.Og(this.ob / this.Re), this.We(b.color(128, 128, 128, 255)), this.eg(b.color(128, 128, 128, 255)), this.Te(b.color(26, 26, 26, 51)), this.$f(b.color(26, 26, 26, 51)), this.Ug(8), this.Vg(2), this.Qg(b.n.og), this.Nh(!1), !0) : !1 } }); b.oH.create = function() { return new b.oH }; b.wH = b.n.extend({ ctor: function() { b.n.prototype.ctor.call(this, b.A === b.U ? 350 : 150) }, Qb: function(a) { return b.n.prototype.Qb.call(this, a) ? (this.Nh(!0), this.Zf(b.n.Qh), this.Pg(b.n.eb), this.ag(C(0, 0)), this.bg(0), this.cg(0), this.Ve(20), this.dg(5), this.Mg(90), this.Ng(360), a = b.I.Aa(), this.P(a.width / 2, a.height / 2), this.Tg(C(0, 0)), this.Rg(1), this.Sg(0.5), this.Ug(30), this.Vg(10), this.Qg(b.n.og), this.Og(this.ob / this.Re), this.We(b.color(194, 64, 31, 255)), this.eg(b.color(0, 0, 0, 0)), this.Te(b.color(0, 0, 0, 255)), this.$f(b.color(0, 0, 0, 0)), !0) : !1 } }); b.wH.create = function() { return new b.wH }; b.qH = b.n.extend({ ctor: function() { b.n.prototype.ctor.call(this, b.A === b.U ? 200 : 100) }, Qb: function(a) { return b.n.prototype.Qb.call(this, a) ? (this.Zf(b.n.Qh), this.Pg(b.n.eb), this.ag(C(0, 0)), this.Ve(60), this.dg(10), this.bg(-80), this.cg(0), this.Pj(80), this.Qj(0), this.Mg(90), this.Ng(360), a = b.I.Aa(), this.P(a.width / 2, a.height / 2), this.Tg(C(0, 0)), this.Rg(4), this.Sg(1), this.Ug(37), this.Vg(10), this.Qg(b.n.og), this.Og(this.ob / this.Re), this.We(b.color(31, 64, 194, 255)), this.eg(b.color(0, 0, 0, 0)), this.Te(b.color(0, 0, 0, 255)), this.$f(b.color(0, 0, 0, 0)), this.Nh(!0), !0) : !1 } }); b.qH.create = function() { return new b.qH }; b.pH = b.n.extend({ ctor: function() { b.n.prototype.ctor.call(this, b.A === b.U ? 250 : 100) }, Qb: function(a) { return b.n.prototype.Qb.call(this, a) ? (this.Zf(b.n.Qh), this.Pg(b.n.eb), this.ag(C(0, 0)), this.Ve(80), this.dg(10), this.bg(-60), this.cg(0), this.Pj(15), this.Qj(0), this.Mg(90), this.Ng(360), a = b.I.Aa(), this.P(a.width / 2, a.height / 2), this.Tg(C(0, 0)), this.Rg(4), this.Sg(1), this.Ug(30), this.Vg(10), this.Qg(b.n.og), this.Og(this.ob / this.Re), this.We(b.color(128, 128, 128, 255)), this.eg(b.color(128, 128, 128, 128)), this.Te(b.color(0, 0, 0, 255)), this.$f(b.color(0, 0, 0, 0)), this.Nh(!0), !0) : !1 } }); b.pH.create = function() { return new b.pH }; b.rH = b.n.extend({ ctor: function() { b.n.prototype.ctor.call(this, b.A === b.U ? 150 : 100) }, Qb: function(a) { return b.n.prototype.Qb.call(this, a) ? (this.Zf(b.n.Qh), this.Pg(b.n.eb), this.ag(C(-200, 200)), this.Ve(15), this.dg(5), this.bg(0), this.cg(0), this.Pj(0), this.Qj(0), this.Mg(90), this.Ng(360), a = b.I.Aa(), this.P(a.width / 2, a.height / 2), this.Tg(C(0, 0)), this.Rg(2), this.Sg(1), this.Ug(60), this.Vg(10), this.Qg(b.n.og), this.Og(this.ob / this.Re), this.We(b.color(51, 102, 179)), this.eg(b.color(0, 0, 51, 26)), this.Te(b.color(0, 0, 0, 255)), this.$f(b.color(0, 0, 0, 0)), this.Nh(!0), !0) : !1 } }); b.rH.create = function() { return new b.rH }; b.vH = b.n.extend({ ctor: function() { b.n.prototype.ctor.call(this, b.A === b.U ? 500 : 100) }, Qb: function(a) { return b.n.prototype.Qb.call(this, a) ? (this.Zf(b.n.Qh), this.Pg(b.n.eb), this.ag(C(0, 0)), this.Ve(150), this.dg(0), this.bg(-380), this.cg(0), this.Pj(45), this.Qj(0), this.Mg(90), this.Ng(0), a = b.I.Aa(), this.P(a.width / 2, a.height / 2), this.Tg(C(0, 0)), this.Rg(12), this.Sg(0), this.Ug(20), this.Vg(0), this.Qg(b.n.og), this.Og(this.ob / this.Re), this.We(b.color(128, 128, 128, 255)), this.eg(b.color(128, 128, 128, 0)), this.Te(b.color(128, 128, 128, 255)), this.$f(b.color(128, 128, 128, 0)), this.Nh(!1), !0) : !1 } }); b.vH.create = function() { return new b.vH }; b.mH = b.n.extend({ ctor: function() { b.n.prototype.ctor.call(this, b.A === b.U ? 700 : 300) }, Qb: function(a) { return b.n.prototype.Qb.call(this, a) ? (this.Zf(0.1), this.Pg(b.n.eb), this.ag(C(0, 0)), this.Ve(70), this.dg(40), this.bg(0), this.cg(0), this.Pj(0), this.Qj(0), this.Mg(90), this.Ng(360), a = b.I.Aa(), this.P(a.width / 2, a.height / 2), this.Tg(C(0, 0)), this.Rg(5), this.Sg(2), this.Ug(15), this.Vg(10), this.Qg(b.n.og), this.Og(this.ob / this.ap()), this.We(b.color(179, 26, 51, 255)), this.eg(b.color(128, 128, 128, 0)), this.Te(b.color(128, 128, 128, 0)), this.$f(b.color(128, 128, 128, 0)), this.Nh(!1), !0) : !1 } }); b.mH.create = function() { return new b.mH }; b.tH = b.n.extend({ ctor: function() { b.n.prototype.ctor.call(this, b.A === b.U ? 200 : 100) }, Qb: function(a) { return b.n.prototype.Qb.call(this, a) ? (this.Zf(b.n.Qh), this.Pg(b.n.eb), this.ag(C(0, 0)), this.bg(0), this.cg(0), this.Ve(25), this.dg(10), this.Mg(90), this.Ng(5), this.P(b.I.Aa().width / 2, 0), this.Tg(C(20, 0)), this.Rg(4), this.Sg(1), this.Ug(60), this.Vg(10), this.Qg(b.n.og), this.Og(this.ob / this.Re), this.We(b.color(204, 204, 204, 255)), this.eg(b.color(5, 5, 5, 0)), this.Te(b.color(0, 0, 0, 255)), this.$f(b.color(0, 0, 0, 0)), this.Nh(!1), !0) : !1 } }); b.tH.create = function() { return new b.tH }; b.uH = b.n.extend({ ctor: function() { b.n.prototype.ctor.call(this, b.A === b.U ? 700 : 250) }, Qb: function(a) { return b.n.prototype.Qb.call(this, a) ? (this.Zf(b.n.Qh), this.Pg(b.n.eb), this.ag(C(0, -1)), this.Ve(5), this.dg(1), this.bg(0), this.cg(1), this.Pj(0), this.Qj(1), a = b.I.Aa(), this.P(a.width / 2, a.height + 10), this.Tg(C(a.width / 2, 0)), this.Mg(-90), this.Ng(5), this.Rg(45), this.Sg(15), this.Ug(10), this.Vg(5), this.Qg(b.n.og), this.Og(10), this.We(b.color(255, 255, 255, 255)), this.eg(b.color(0, 0, 0, 0)), this.Te(b.color(255, 255, 255, 0)), this.$f(b.color(0, 0, 0, 0)), this.Nh(!1), !0) : !1 } }); b.uH.create = function() { return new b.uH }; b.sH = b.n.extend({ ctor: function() { b.n.prototype.ctor.call(this, b.A === b.U ? 1E3 : 300) }, Qb: function(a) { return b.n.prototype.Qb.call(this, a) ? (this.Zf(b.n.Qh), this.Pg(b.n.eb), this.ag(C(10, -10)), this.bg(0), this.cg(1), this.Pj(0), this.Qj(1), this.Ve(130), this.dg(30), this.Mg(-90), this.Ng(5), a = b.I.Aa(), this.P(a.width / 2, a.height), this.Tg(C(a.width / 2, 0)), this.Rg(4.5), this.Sg(0), this.Ug(4), this.Vg(2), this.Qg(b.n.og), this.Og(20), this.We(b.color(179, 204, 255, 255)), this.eg(b.color(0, 0, 0, 0)), this.Te(b.color(179, 204, 255, 128)), this.$f(b.color(0, 0, 0, 0)), this.Nh(!1), !0) : !1 } }); b.sH.create = function() { return new b.sH }; b.V7 = 500; b.tz = b.k.extend({ textureAtlas: null, B8: !0, p: null, vb: "ParticleBatchNode", ctor: function(a, c) { b.k.prototype.ctor.call(this); this.p = { src: b.dc, S: b.cc }; "string" == typeof a ? this.da(a, c) : a instanceof b.aa && this.qa(a, c) }, qa: function(a, c) { this.textureAtlas = new b.Vh; this.textureAtlas.qa(a, c); this.t.length = 0; b.A === b.U && (this.shaderProgram = b.Md.nc(b.Wi)); return !0 }, bl: function(a, c) { var d = b.Da.Hc(a); return this.qa(d, c) }, da: function(a, c) { var d = b.A8.Xba().Hc(a); return this.qa(d, c) }, X: function(a, c, d) { if (!a) throw "cc.ParticleBatchNode.addChild() : child should be non-null"; if (!(a instanceof b.n)) throw "cc.ParticleBatchNode.addChild() : only supports cc.ParticleSystem as children"; c = null == c ? a.zIndex : c; d = null == d ? a.tag : d; if (a.za() != this.textureAtlas.texture) throw "cc.ParticleSystem.addChild() : the child is not using the same texture id"; var e = a.Dh(); if (0 === this.t.length) this.Se(e); else if (e.src != this.p.src || e.S != this.p.S) { b.log("cc.ParticleSystem.addChild() : Can't add a ParticleSystem that uses a different blending function"); return } c = this.JU(a, c, d); d = 0; 0 != c ? (c = this.t[c - 1], d = c.$o() + c.ob) : d = 0; this.eF(a, d); a.ml(this) }, eF: function(a, c) { var d = a.ob, e = this.textureAtlas, f = e.totalQuads; a.QF(c); f + d > e.Ad && (this.zW(f + d), e.NM(e.Ad - d, d)); a.$o() + d != f && e.mO(c, c + d); e.CN(d); this.xD() }, removeChild: function(a, c) { if (null != a) { if (!(a instanceof b.n)) throw "cc.ParticleBatchNode.removeChild(): only supports cc.ParticleSystem as children"; if (-1 == this.t.indexOf(a)) b.log("cc.ParticleBatchNode.removeChild(): doesn't contain the sprite. Can't remove it"); else { b.k.prototype.removeChild.call(this, a, c); var d = this.textureAtlas; d.s3(a.$o(), a.ob); d.NM(d.totalQuads, a.ob); a.ml(null); this.xD() } } }, vp: function(a, c) { if (!a) throw "cc.ParticleBatchNode.reorderChild(): child should be non-null"; if (!(a instanceof b.n)) throw "cc.ParticleBatchNode.reorderChild(): only supports cc.QuadParticleSystems as children"; if (-1 === this.t.indexOf(a)) b.log("cc.ParticleBatchNode.reorderChild(): Child doesn't belong to batch"); else if (c != a.zIndex) { if (1 < this.t.length) { var d = this.WV(a, c); if (d.oO != d.nO) { this.t.splice(d.oO, 1); this.t.splice(d.nO, 0, a); d = a.$o(); this.xD(); for (var e = 0, f = this.t, g = 0; g < f.length; g++) if (f[g] == a) { e = a.$o(); break } this.textureAtlas.mO(d, a.ob, e); a.M5() } } a.Vv(c) } }, o3: function(a, c) { this.removeChild(this.t[Q], c) }, Lg: function(a) { for (var c = this.t, d = 0; d < c.length; d++) c[d].ml(null); b.k.prototype.Lg.call(this, a); this.textureAtlas.IO() }, VZ: function(a) { a = this.textureAtlas.quads[a]; a.L.f.x = a.L.f.y = a.J.f.x = a.J.f.y = a.K.f.x = a.K.f.y = a.C.f.x = a.C.f.y = 0; this.textureAtlas.Lk(!0) }, Y: function() { b.A !== b.Ba && 0 != this.textureAtlas.totalQuads && (b.Js(this), b.xN(this.p.src, this.p.S), this.textureAtlas.IM()) }, za: function() { return this.textureAtlas.texture }, Ya: function(a) { this.textureAtlas.texture = a; var c = this.p; a && !a.Ai() && c.src == b.dc && c.S == b.cc && (c.src = b.SRC_ALPHA, c.S = b.ONE_MINUS_SRC_ALPHA) }, Se: function(a, c) { void 0 === c ? (this.p.src = a.src, this.p.S = a.S) : (this.p.src = a, this.p.src = c) }, Dh: function() { return { src: this.p.src, S: this.p.S } }, R: function(a) { b.A !== b.Ba && this.lc && (b.Fj(), this.grid && this.grid.vf() && (this.grid.is(), this.xy()), this.transform(a), this.Y(a), this.grid && this.grid.vf() && this.grid.fs(this), b.Ej()) }, xD: function() { for (var a = 0, c = this.t, d = 0; d < c.length; d++) { var e = c[d]; e.QF(a); a += e.ob } }, zW: function(a) { b.log("cocos2d: cc.ParticleBatchNode: resizing TextureAtlas capacity from [" + this.textureAtlas.Ad + "] to [" + a + "]."); this.textureAtlas.JF(a) || b.log("cc.ParticleBatchNode._increaseAtlasCapacityTo() : WARNING: Not enough memory to resize the atlas") }, JX: function(a) { for (var c = this.t, d = c.length, e = 0; e < d; e++) if (c[e].zIndex > a) return e; return d }, WV: function(a, c) { for (var d = !1, e = !1, f = 0, g = 0, h = 0, k = this.t, m = k.length, p = 0; p < m; p++) { var r = k[p]; if (r.zIndex > c && !e && (f = p, e = !0, d && e)) break; if (a == r && (g = p, d = !0, e || (h = -1), d && e)) break } e || (f = m); return { nO: f + h, oO: g } }, JU: function(a, c, d) { if (!a) throw "cc.ParticleBatchNode._addChildHelper(): child should be non-null"; if (a.parent) return b.log("cc.ParticleBatchNode._addChildHelper(): child already added. It can't be added again"), null; this.t || (this.t = []); var e = this.JX(c); this.t.splice(e, 0, a); a.tag = d; a.Vv(c); a.parent = this; this.qh && (a.Z(), a.Mh()); return e }, Qf: function() { this.textureAtlas.texture.Ai() || (this.p.src = b.SRC_ALPHA, this.p.S = b.ONE_MINUS_SRC_ALPHA) }, ME: function() { return this.textureAtlas }, eG: function(a) { this.textureAtlas = a } }); n = b.tz.prototype; b.i(n, "texture", n.za, n.Ya); b.tz.create = function(a, c) { return new b.tz(a, c) }; b.j7 = function(a, c, d) { this.Ah = a || O(0, 0, 0, 0); this.end = c || O(0, 0, 0, 0); this.duration = d || 0 }; b.i7 = b.oa.extend({ ctor: function() { b.Bi.VL(this) }, Xx: function() { b.Bi.Xx(this) }, rZ: function() { return b.Bi.bM(this) }, FM: function() { return b.Bi.EM(this) }, ZD: function() { return !1 }, TZ: function() {}, $D: function() { return !1 }, UZ: function() {}, QN: function() {}, BM: function() {}, zE: function() { return "" }, X1: function() {}, V1: function() {}, W1: function() {}, U1: function() {} }); b.fz = b.oa.extend({ ic: null, Ra: null, $i: "", Sl: null, ctor: function() { this.Ra = new b.fz.rR; this.Sl = C(0, 0) }, da: function() { if (!b.hb.Jh) { this.ic = b.ub("#imeDispatcherInput"); this.ic || (this.ic = b.cQ(), this.ic.setAttribute("type", "text"), this.ic.setAttribute("id", "imeDispatcherInput"), this.ic.resize(0, 0), this.ic.PP(0, 0), this.ic.style.opacity = "0", this.ic.style.fontSize = "1px", this.ic.setAttribute("tabindex", 2), this.ic.style.position = "absolute", this.ic.style.top = 0, this.ic.style.left = 0, document.body.appendChild(this.ic)); var a = this; b.Ga(this.ic, "input", function() { a.vC(a.ic.value) }, !1); b.Ga(this.ic, "keydown", function(c) { c.keyCode === b.iq.o5 ? (c.stopPropagation(), c.preventDefault()) : c.keyCode == b.iq.LM && (a.qs("\n", 1), c.stopPropagation(), c.preventDefault()) }, !1); /msie/i.test(navigator.userAgent) && b.Ga(this.ic, "keyup", function(c) { c.keyCode == b.iq.dM && a.vC(a.ic.value) }, !1); b.Ga(window, "mousedown", function(c) { var d = c.pageY || 0; a.Sl.x = c.pageX || 0; a.Sl.y = d }, !1) } }, vC: function(a) { var c, d; c = this.$i.length < a.length ? this.$i.length : a.length; for (d = 0; d < c && a[d] === this.$i[d]; d++); var e = this.$i.length - d, f = a.length - d; for (c = 0; c < e; c++) this.GM(); for (c = 0; c < f; c++) this.qs(a[d + c], 1); this.$i = a }, qs: function(a, c) { !this.Ra || !a || 0 >= c || this.Ra.ge && this.Ra.ge.QN(a, c) }, GM: function() { this.Ra && this.Ra.ge && this.Ra.ge.BM() }, zE: function() { if (this.Ra && this.Ra.ge) { var a = this.Ra.ge.zE(); return a ? a : "" } return "" }, W$: function() { if (this.Ra) for (var a = 0; a < this.Ra.ug.length; a++); }, U$: function() { if (this.Ra) for (var a = 0; a < this.Ra.ug.length; a++); }, V$: function() { if (this.Ra) for (var a = 0; a < this.Ra.ug.length; a++); }, T$: function() { if (this.Ra) for (var a = 0; a < this.Ra.ug.length; a++); }, VL: function(a) { a && this.Ra && (-1 < this.Ra.ug.indexOf(a) || this.Ra.ug.splice(0, 0, a)) }, bM: function(a) { if (!this.Ra || !a || -1 == this.Ra.ug.indexOf(a)) return !1; if (this.Ra.ge) { if (!this.Ra.ge.$D() || !a.ZD()) return !1; this.Ra.ge = null; this.SJ(a); return !0 } if (!a.ZD()) return !1; this.SJ(a); return !0 }, SJ: function(a) { b.hb.Jh ? (this.Ra.ge = a, this.$i = a.string || "", a = prompt("please enter your word:", this.$i), null != a && this.vC(a), this.qs("\n", 1)) : (this.Ra.ge = a, this.$i = a.string || "", this.ic.focus(), this.ic.value = this.$i, this.zV()) }, zV: function() { /msie/i.test(navigator.userAgent) ? (this.ic.style.left = this.Sl.x + "px", this.ic.style.top = this.Sl.y + "px") : this.ic.PP(this.Sl.x, this.Sl.y) }, EM: function(a) { if (!this.Ra || !a || this.Ra.ge != a || !a.$D()) return !1; this.Ra.ge = null; b.Va.focus(); return !0 }, Xx: function(a) { this.Ra && a && -1 != this.Ra.ug.indexOf(a) && (this.Ra.ge && a == this.Ra.ge && (this.Ra.ge = null), b.Pe(this.Ra.ug, a)) }, iha: function(a) { 32 > a ? a == b.iq.dM ? this.GM() : a == b.iq.LM && this.qs("\n", 1) : 255 > a && this.qs(String.fromCharCode(a), 1) } }); b.fz.rR = b.oa.extend({ ge: null, ug: null, ctor: function() { this.ug = [] }, Taa: function(a) { for (var c = 0; c < this.ug.length; c++) if (this.ug[c] == a) return c; return null } }); b.Bi = new b.fz; document.body ? b.Bi.da() : b.Ga(window, "load", function() { b.Bi.da() }, !1); b.z8 = b.oa.extend({ Ega: function() { return !1 }, Gga: function() { return !1 }, Hga: function() { return !1 }, Fga: function() { return !1 }, Cga: function() { return !1 } }); b.fA = b.M.extend({ AM: null, Ew: null, p9: null, Jf: "", Yl: "", Iu: 0, vb: "TextFieldTTF", ctor: function(a, c, d, e, f) { this.Ew = b.color(127, 127, 127); b.Bi.VL(this); b.M.prototype.ctor.call(this); void 0 !== f ? (this.u1("", c, d, e, f), a && this.at(a)) : void 0 === e && void 0 !== d && (this.sd("", c, d), a && this.at(a)) }, $_: function() { return this.AM }, T3: function(a) { this.AM = a }, U_: function() { return this.Iu }, pba: function() { return this.Ew }, tia: function(a) { this.Ew = a }, u1: function(a, c, d, e, f) { switch (arguments.length) { case 5: return a && this.at(a), this.sd(this.Yl, e, f, c, d); case 3: return a && this.at(a), this.sd(this.Yl, arguments[1], arguments[2]); default: throw "Argument must be non-nil "; } }, Kb: function(a) { this.Jf = (a = String(a)) || ""; this.Jf.length ? b.M.prototype.Kb.call(this, this.Jf) : b.M.prototype.Kb.call(this, this.Yl); this.Iu = this.Jf.length }, al: function() { return this.Jf }, at: function(a) { this.Yl = a || ""; this.Jf.length || b.M.prototype.Kb.call(this, this.Yl) }, H0: function() { return this.Yl }, Y: function(a) { a = a || b.l; if (this.Jf && 0 < this.Jf.length) b.M.prototype.Y.call(this, a); else { var c = this.color; this.color = this.Ew; b.A === b.Ba && this.uw(); b.M.prototype.Y.call(this, a); this.color = c } }, R: function(a) { this._super(a) }, rZ: function() { return b.Bi.bM(this) }, FM: function() { return b.Bi.EM(this) }, ZD: function() { return !0 }, TZ: function() {}, $D: function() { return !0 }, UZ: function() {}, BM: function() { var a = this.Jf.length; 0 != a && (1 >= a ? (this.Jf = "", this.Iu = 0, b.M.prototype.Kb.call(this, this.Yl)) : this.string = this.Jf.substring(0, a - 1)) }, Xx: function() { b.Bi.Xx(this) }, QN: function(a) { var c = a; a = c.indexOf("\n"); - 1 < a && (c = c.substring(0, a)); 0 < c.length && (c = this.Jf + c, this.Iu = c.length, this.string = c); - 1 != a && this.FM() }, zE: function() { return this.Jf }, X1: function() {}, V1: function() {}, W1: function() {}, U1: function() {} }); n = b.fA.prototype; b.i(n, "charCount", n.U_); b.i(n, "placeHolder", n.H0, n.at); b.fA.create = function(a, c, d, e, f) { return new b.fA(a, c, d, e, f) }; b.hv = b.qR; b.hr = "Arial"; b.aK = !1; b.Cc = b.k.extend({ hf: !1, ne: null, de: null, mr: !1, vb: "MenuItem", ctor: function(a, c) { var d = b.k.prototype; d.ctor.call(this); this.de = this.ne = null; this.hf = this.mr = !1; d.ll.call(this, 0.5, 0.5); this.ne = c || null; if (this.de = a || null) this.hf = !0 }, gea: function() { return this.mr }, Ue: function() {}, Wf: function() { return !1 }, dG: function(a, c) { this.ne = c; this.de = a }, isEnabled: function() { return this.hf }, ve: function(a) { this.hf = a }, As: function(a, c) { this.anchorY = this.anchorX = 0.5; this.ne = c; this.de = a; this.hf = !0; this.mr = !1; return !0 }, rect: function() { var a = this.wa, c = this.O, d = this.Qc; return O(a.x - c.width * d.x, a.y - c.height * d.y, c.width, c.height) }, selected: function() { this.mr = !0 }, Oh: function() { this.mr = !1 }, oia: function(a, c) { this.ne = c; this.de = a }, ds: function() { if (this.hf) { var a = this.ne, c = this.de; if (c) if (a && "string" == typeof c) a[c](this); else a && "function" == typeof c ? c.call(a, this) : c(this) } } }); n = b.Cc.prototype; b.i(n, "enabled", n.isEnabled, n.ve); b.Cc.create = function(a, c) { return new b.Cc(a, c) }; b.xl = b.Cc.extend({ Pn: null, Xb: null, nX: 0, Nq: null, ctor: function(a, c, d) { b.Cc.prototype.ctor.call(this, c, d); this.Xb = this.Pn = null; this.nX = 0; this.Nq = null; a && (this.vr = 1, this.Nq = b.color.WHITE, this.Pn = b.color(126, 126, 126), this.ky(a), this.cascadeOpacity = this.cascadeColor = !0) }, b0: function() { return this.Pn }, U3: function(a) { this.Pn = a }, q0: function() { return this.Xb }, ky: function(a) { a && (this.X(a), a.anchorX = 0, a.anchorY = 0, this.width = a.width, this.height = a.height); this.Xb && this.removeChild(this.Xb, !0); this.Xb = a }, ve: function(a) { if (this.hf != a) { var c = this.Xb; a ? c.color = this.Nq : (this.Nq = c.color, c.color = this.Pn) } b.Cc.prototype.ve.call(this, a) }, Sa: function(a) { this.Xb.opacity = a }, Ig: function() { return this.Xb.opacity }, cb: function(a) { this.Xb.color = a }, Hg: function() { return this.Xb.color }, JN: function(a, c, d) { this.As(c, d); this.vr = 1; this.Nq = b.color.WHITE; this.Pn = b.color(126, 126, 126); this.ky(a); return this.cascadeOpacity = this.cascadeColor = !0 }, Kb: function(a) { this.Xb.string = a; this.width = this.Xb.width; this.height = this.Xb.height }, al: function() { return this.Xb.string }, ds: function() { this.hf && (this.it(), this.scale = this.vr, b.Cc.prototype.ds.call(this)) }, selected: function() { if (this.hf) { b.Cc.prototype.selected.call(this); var a = this.xE(b.pu); a ? this.h5(a) : this.vr = this.scale; a = b.Pd.create(0.1, 1.2 * this.vr); a.qy(b.pu); this.ea(a) } }, Oh: function() { if (this.hf) { b.Cc.prototype.Oh.call(this); this.i5(b.pu); var a = b.Pd.create(0.1, this.vr); a.qy(b.pu); this.ea(a) } } }); n = b.xl.prototype; b.i(n, "string", n.al, n.Kb); b.i(n, "disabledColor", n.b0, n.U3); b.i(n, "label", n.q0, n.ky); b.xl.create = function(a, c, d) { return new b.xl(a, c, d) }; b.aH = b.xl.extend({ ctor: function(a, c, d, e, f, g, h) { var k; a && 0 < a.length && (k = b.Th.create(a, c, d, e, f)); b.xl.prototype.ctor.call(this, k, g, h) }, sd: function(a, c, d, e, f, g, h) { if (!a || 0 == a.length) throw "cc.MenuItemAtlasFont.initWithString(): value should be non-null and its length should be greater than 0"; var k = new b.Th; k.sd(a, c, d, e, f); this.JN(k, g, h); return !0 } }); b.aH.create = function(a, c, d, e, f, g, h) { return new b.aH(a, c, d, e, f, g, h) }; b.wl = b.xl.extend({ Nb: null, Wb: null, ctor: function(a, c, d) { var e; a && 0 < a.length ? (this.Wb = b.hr, this.Nb = b.hv, e = b.M.create(a, this.Wb, this.Nb)) : (this.Nb = 0, this.Wb = ""); b.xl.prototype.ctor.call(this, e, c, d) }, sd: function(a, c, d) { if (!a || 0 == a.length) throw "Value should be non-null and its length should be greater than 0"; this.Wb = b.hr; this.Nb = b.hv; a = b.M.create(a, this.Wb, this.Nb); this.JN(a, c, d); return !0 }, jy: function(a) { this.Nb = a; this.XK() }, DE: function() { return this.Nb }, iy: function(a) { this.Wb = a; this.XK() }, CE: function() { return this.Wb }, XK: function() { var a = b.M.create(this.Xb.string, this.Wb, this.Nb); this.ky(a) } }); b.wl.jy = function(a) { b.hv = a }; b.wl.fontSize = function() { return b.hv }; b.wl.iy = function(a) { b.aK && (b.hr = ""); b.hr = a; b.aK = !0 }; n = b.wl.prototype; b.i(n, "fontSize", n.DE, n.jy); b.i(n, "fontName", n.CE, n.iy); b.wl.fontName = function() { return b.hr }; b.wl.create = function(a, c, d) { return new b.wl(a, c, d) }; b.rn = b.Cc.extend({ ld: null, Le: null, Ee: null, ctor: function(a, c, d, e, f) { b.Cc.prototype.ctor.call(this); this.Ee = this.Le = this.ld = null; if (void 0 !== c) { var g, h, k; void 0 !== f ? (g = d, k = e, h = f) : void 0 !== e && "function" === typeof e ? (g = d, k = e) : void 0 !== e && "function" === typeof d ? (h = e, k = d, g = b.N.create(c)) : void 0 === d && (g = b.N.create(c)); this.LN(a, c, g, k, h) } }, C0: function() { return this.ld }, XF: function(a) { this.ld != a && (a && (this.X(a, 0, b.NR), a.anchorX = 0, a.anchorY = 0), this.ld && this.removeChild(this.ld, !0), this.ld = a, this.width = this.ld.width, this.height = this.ld.height, this.qw(), a.kt && !a.ma && a.$d(function(a) { this.width = a.width; this.height = a.height }, this)) }, Q0: function() { return this.Le }, aG: function(a) { this.Le != a && (a && (this.X(a, 0, b.zS), a.anchorX = 0, a.anchorY = 0), this.Le && this.removeChild(this.Le, !0), this.Le = a, this.qw()) }, c0: function() { return this.Ee }, TF: function(a) { this.Ee != a && (a && (this.X(a, 0, b.KQ), a.anchorX = 0, a.anchorY = 0), this.Ee && this.removeChild(this.Ee, !0), this.Ee = a, this.qw()) }, LN: function(a, c, d, e, f) { this.As(e, f); this.XF(a); this.aG(c); this.TF(d); if (a = this.ld) this.width = a.width, this.height = a.height, a.kt && !a.ma && a.$d(function(a) { this.width = a.width; this.height = a.height; this.cascadeOpacity = this.cascadeColor = !0 }, this); return this.cascadeOpacity = this.cascadeColor = !0 }, cb: function(a) { this.ld.color = a; this.Le && (this.Le.color = a); this.Ee && (this.Ee.color = a) }, Hg: function() { return this.ld.color }, Sa: function(a) { this.ld.opacity = a; this.Le && (this.Le.opacity = a); this.Ee && (this.Ee.opacity = a) }, Ig: function() { return this.ld.opacity }, selected: function() { b.Cc.prototype.selected.call(this); this.ld && (this.Ee && (this.Ee.visible = !1), this.Le ? (this.ld.visible = !1, this.Le.visible = !0) : this.ld.visible = !0) }, Oh: function() { b.Cc.prototype.Oh.call(this); this.ld && (this.ld.visible = !0, this.Le && (this.Le.visible = !1), this.Ee && (this.Ee.visible = !1)) }, ve: function(a) { this.hf != a && (b.Cc.prototype.ve.call(this, a), this.qw()) }, qw: function() { var a = this.ld, c = this.Le, d = this.Ee; this.hf ? (a && (a.visible = !0), c && (c.visible = !1), d && (d.visible = !1)) : d ? (a && (a.visible = !1), c && (c.visible = !1), d && (d.visible = !0)) : (a && (a.visible = !0), c && (c.visible = !1)) } }); n = b.rn.prototype; b.i(n, "normalImage", n.C0, n.XF); b.i(n, "selectedImage", n.Q0, n.aG); b.i(n, "disabledImage", n.c0, n.TF); b.rn.create = function(a, c, d, e, f) { return new b.rn(a, c, d, e, f || void 0) }; b.mq = b.rn.extend({ ctor: function(a, c, d, e, f) { var g = null, h = null, k = null, m = null, p = null; void 0 === a ? b.rn.prototype.ctor.call(this) : (g = b.N.create(a), c && (h = b.N.create(c)), void 0 === e ? m = d : void 0 === f ? (m = d, p = e) : f && (k = b.N.create(d), m = e, p = f), b.rn.prototype.ctor.call(this, g, h, k, m, p)) }, dja: function(a) { this.XF(b.N.create(a)) }, zja: function(a) { this.aG(b.N.create(a)) }, Dia: function(a) { this.TF(b.N.create(a)) }, Lda: function(a, c, d, e, f) { var g = null, h = null, k = null; a && (g = b.N.create(a)); c && (h = b.N.create(c)); d && (k = b.N.create(d)); return this.LN(g, h, k, e, f) } }); b.mq.create = function(a, c, d, e, f) { return new b.mq(a, c, d, e, f) }; b.mz = b.Cc.extend({ ud: null, rh: 0, Wd: null, fe: null, ctor: function() { b.Cc.prototype.ctor.call(this); this.rh = 0; this.ud = []; this.Wd = 0; this.fe = b.color.WHITE; 0 < arguments.length && this.YE(Array.prototype.slice.apply(arguments)) }, Ig: function() { return this.Wd }, Sa: function(a) { this.Wd = a; if (this.ud && 0 < this.ud.length) for (var c = 0; c < this.ud.length; c++) this.ud[c].opacity = a; this.fe.a = a }, Hg: function() { var a = this.fe; return b.color(a.r, a.g, a.b, a.a) }, cb: function(a) { var c = this.fe; c.r = a.r; c.g = a.g; c.b = a.b; if (this.ud && 0 < this.ud.length) for (c = 0; c < this.ud.length; c++) this.ud[c].cb(a); void 0 === a.a || a.RL || this.Sa(a.a) }, R0: function() { return this.rh }, oy: function(a) { if (a != this.rh) { this.rh = a; (a = this.Eh(b.EG)) && a.IF(!1); a = this.ud[this.rh]; this.X(a, 0, b.EG); var c = a.width, d = a.height; this.width = c; this.height = d; a.P(c / 2, d / 2) } }, cda: function() { return this.ud }, Fja: function(a) { this.ud = a }, YE: function(a) { var c = a.length; "function" === typeof a[a.length - 2] ? (this.As(a[a.length - 2], a[a.length - 1]), c -= 2) : "function" === typeof a[a.length - 1] ? (this.As(a[a.length - 1], null), c -= 1) : this.As(null, null); for (var d = this.ud, e = d.length = 0; e < c; e++) a[e] && d.push(a[e]); this.rh = b.tI; this.oy(0); return this.cascadeOpacity = this.cascadeColor = !0 }, R9: function(a) { this.ud.push(a) }, ds: function() { this.hf && this.oy((this.rh + 1) % this.ud.length); b.Cc.prototype.ds.call(this) }, selected: function() { b.Cc.prototype.selected.call(this); this.ud[this.rh].selected() }, Oh: function() { b.Cc.prototype.Oh.call(this); this.ud[this.rh].Oh() }, ve: function(a) { if (this.hf != a) { b.Cc.prototype.ve.call(this, a); var c = this.ud; if (c && 0 < c.length) for (var d = 0; d < c.length; d++) c[d].enabled = a } }, dia: function() { return this.ud[this.rh] }, Z: function() { b.k.prototype.Z.call(this); this.oy(this.rh) } }); n = b.mz.prototype; b.i(n, "selectedIndex", n.R0, n.oy); b.mz.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.mz; a.YE(Array.prototype.slice.apply(arguments)); return a }; b.lq = 0; b.kq = 1; b.F7 = -128; b.IG = 5; b.qn = b.sc.extend({ enabled: !1, fe: null, Wd: 0, Uc: null, wh: -1, CL: null, vb: "Menu", ctor: function(a) { b.sc.prototype.ctor.call(this); this.fe = b.color.WHITE; this.enabled = !1; this.Wd = 255; this.Uc = null; this.wh = -1; this.CL = b.sa.create({ event: b.sa.ju, jt: !0, hl: this.hX, Os: this.lX, Ns: this.jX, Ms: this.iX }); 0 < arguments.length && null == arguments[arguments.length - 1] && b.log("parameters should not be ending with null in Javascript"); var c = arguments.length, d; if (0 == c) d = []; else if (1 == c) d = a instanceof Array ? a : [a]; else if (1 < c) { d = []; for (var e = 0; e < c; e++) arguments[e] && d.push(arguments[e]) } this.FN(d) }, Z: function() { var a = this.CL; a.mf || b.ra.addListener(a, this); b.k.prototype.Z.call(this) }, Hg: function() { var a = this.fe; return b.color(a.r, a.g, a.b, a.a) }, cb: function(a) { var c = this.fe; c.r = a.r; c.g = a.g; c.b = a.b; if ((c = this.t) && 0 < c.length) for (var d = 0; d < c.length; d++) c[d].cb(a); void 0 === a.a || a.RL || this.Sa(a.a) }, Ig: function() { return this.Wd }, Sa: function(a) { this.Wd = a; var c = this.t; if (c && 0 < c.length) for (var d = 0; d < c.length; d++) c[d].Sa(a); this.fe.a = a }, isEnabled: function() { return this.enabled }, ve: function(a) { this.enabled = a }, YE: function(a) { var c = []; if (a) for (var d = 0; d < a.length; d++) a[d] && c.push(a[d]); return this.FN(c) }, FN: function(a) { if (b.sc.prototype.da.call(this)) { this.enabled = !0; var c = b.Tj; this.P(c.width / 2, c.height / 2); this.Kd(c); this.ll(0.5, 0.5); this.dx(!0); if (a) for (c = 0; c < a.length; c++) this.X(a[c], c); this.Uc = null; this.wh = b.lq; return this.cascadeOpacity = this.cascadeColor = !0 } return !1 }, X: function(a, c, d) { if (!(a instanceof b.Cc)) throw "cc.Menu.addChild() : Menu only supports MenuItem objects as children"; b.sc.prototype.X.call(this, a, c, d) }, c$: function() { this.YL(b.IG) }, YL: function(a) { var c = -a, d = this.t, e, f, g, h; if (d && 0 < d.length) { f = 0; for (e = d.length; f < e; f++) c += d[f].height * d[f].scaleY + a; var k = c / 2; f = 0; for (e = d.length; f < e; f++) h = d[f], g = h.height, c = h.scaleY, h.P(0, k - g * c / 2), k -= g * c + a } }, Z9: function() { this.eZ(b.IG) }, eZ: function(a) { var c = -a, d = this.t, e, f, g, h; if (d && 0 < d.length) { e = 0; for (f = d.length; e < f; e++) c += d[e].width * d[e].scaleX + a; var k = -c / 2; e = 0; for (f = d.length; e < f; e++) h = d[e], c = h.scaleX, g = d[e].width, h.P(k + g * c / 2, 0), k += g * c + a } }, a$: function() { 0 < arguments.length && null == arguments[arguments.length - 1] && b.log("parameters should not be ending with null in Javascript"); for (var a = [], c = 0; c < arguments.length; c++) a.push(arguments[c]); var d = -5, e = 0, f = 0, g = 0, h, k, m, p = this.t; if (p && 0 < p.length) for (c = 0, m = p.length; c < m; c++) e >= a.length || !(h = a[e]) || (k = p[c].height, f = f >= k || isNaN(k) ? f : k, ++g, g >= h && (d += f + 5, f = g = 0, ++e)); var r = b.I.Aa(), s = h = f = e = 0, u = 0, d = d / 2; if (p && 0 < p.length) for (c = 0, m = p.length; c < m; c++) { var t = p[c]; 0 == h && (h = a[e], u = s = r.width / (1 + h)); k = t.yk(); f = f >= k || isNaN(k) ? f : k; t.P(u - r.width / 2, d - k / 2); u += s; ++g; g >= h && (d -= f + 5, f = h = g = 0, ++e) } }, b$: function() { 0 < arguments.length && null == arguments[arguments.length - 1] && b.log("parameters should not be ending with null in Javascript"); var a = [], c; for (c = 0; c < arguments.length; c++) a.push(arguments[c]); var d = [], e = [], f = -10, g = -5, h = 0, k = 0, m = 0, p, r, s, u, t = this.t; if (t && 0 < t.length) for (c = 0, s = t.length; c < s; c++)(r = t[c], h >= a.length || !(p = a[h])) || (u = r.width, k = k >= u || isNaN(u) ? k : u, g += r.height + 5, ++m, m >= p && (d.push(k), e.push(g), f += k + 10, k = m = 0, g = -5, ++h)); g = b.I.Aa(); p = k = h = 0; var f = -f / 2, v = 0; if (t && 0 < t.length) for (c = 0, s = t.length; c < s; c++) r = t[c], 0 == p && (p = a[h], v = e[h]), u = r.eh(), k = k >= u || isNaN(u) ? k : u, r.P(f + d[h] / 2, v - g.height / 2), v -= r.height + 10, ++m, m >= p && (f += k + 5, k = p = m = 0, ++h) }, removeChild: function(a, c) { null != a && (a instanceof b.Cc ? (this.Uc == a && (this.Uc = null), b.k.prototype.removeChild.call(this, a, c)) : b.log("cc.Menu.removeChild():Menu only supports MenuItem objects as children")) }, hX: function(a, c) { var d = c.ib; if (d.wh != b.lq || !d.lc || !d.enabled) return !1; for (var e = d.parent; null != e; e = e.parent) if (!e.lc) return !1; d.Uc = d.tK(a); return d.Uc ? (d.wh = b.kq, d.Uc.selected(), !0) : !1 }, jX: function(a, c) { var d = c.ib; d.wh !== b.kq ? b.log("cc.Menu.onTouchEnded(): invalid state") : (d.Uc && (d.Uc.Oh(), d.Uc.ds()), d.wh = b.lq) }, iX: function(a, c) { var d = c.ib; d.wh !== b.kq ? b.log("cc.Menu.onTouchCancelled(): invalid state") : (this.Uc && d.Uc.Oh(), d.wh = b.lq) }, lX: function(a, c) { var d = c.ib; if (d.wh !== b.kq) b.log("cc.Menu.onTouchMoved(): invalid state"); else { var e = d.tK(a); e != d.Uc && (d.Uc && d.Uc.Oh(), d.Uc = e, d.Uc && d.Uc.selected()) } }, sb: function() { this.wh == b.kq && (this.Uc && (this.Uc.Oh(), this.Uc = null), this.wh = b.lq); b.k.prototype.sb.call(this) }, Ue: function() {}, Wf: function() { return !1 }, tK: function(a) { a = a.ts(); var c = this.t, d; if (c && 0 < c.length) for (var e = 0; e < c.length; e++) if (d = c[e], d.lc && d.isEnabled()) { var f = d.iE(a), g = d.rect(); g.x = 0; g.y = 0; if (b.EO(g, f)) return d } return null } }); n = b.qn.prototype; b.qn.create = function(a) { var c = arguments.length; 0 < c && null == arguments[c - 1] && b.log("parameters should not be ending with null in Javascript"); return 0 == c ? new b.qn : 1 == c ? new b.qn(a) : new b.qn(Array.prototype.slice.call(arguments, 0)) }; b.o8 = 0; b.k8 = 1; b.n8 = 2; b.l8 = 3; b.m8 = 4; b.j8 = 5; b.Aka = function(a, c, d) { var e = 2; if (e + 1 > c) return !1; a = new b.qQ(a); a.ly(e); d.type = a.Q(); e += 10; if (e + 4 + 1 > c) return !1; a.ly(e); d.width = a.k3(); d.height = a.j3(); d.pixelDepth = a.Q(); if (e + 5 + 1 > c) return !1; c = a.Q(); d.QM = 0; c & 32 && (d.QM = 1); return !0 }; b.Bka = function(a, c, d) { var e, f; e = 0 | d.pixelDepth / 2; f = d.height * d.width * e; if (18 + f > c) return !1; d.uf = b.tu(a, 18, 18 + f); if (3 <= e) for (a = 0; a < f; a += e) c = d.uf[a], d.uf[a] = d.uf[a + 2], d.uf[a + 2] = c; return !0 }; b.Dka = function(a) { var c, d; if (8 !== a.pixelDepth) { var e = a.pixelDepth / 8, f = new Uint8Array(a.height * a.width); if (null !== f) { for (d = c = 0; d < a.width * a.height; c += e, d++) f[d] = 0.3 * a.uf[c] + 0.59 * a.uf[c + 1] + 0.11 * a.uf[c + 2]; a.pixelDepth = 8; a.type = 3; a.uf = f } } }; b.yka = function(a) { a && (a.uf = null) }; b.Cka = function(a, c, d) { var e, f, g, h = 0, k = 0, m = 0, p = [], r = 0, s = 18; e = d.pixelDepth / 8; f = d.height * d.width; for (g = 0; g < f; g++) { if (0 != r) r--, k = 0 != m; else { if (s + 1 > c) break; r = a[s]; s += 1; (m = r & 128) && (r -= 128); k = 0 } if (!k) { if (s + e > c) break; p = b.tu(a, s, s + e); s += e; 3 <= e && (k = p[0], p[0] = p[2], p[2] = k) } for (k = 0; k < e; k++) d.uf[h + k] = p[k]; h += e } return !0 }; b.zka = function(a) { for (var c = a.pixelDepth / 8 * a.width, d = 0; d < a.height / 2; d++) { var e = b.tu(a.uf, d * c, d * c + c); b.EI(b.tu(a.uf, (a.height - (d + 1)) * c, c), a.uf, d * c); b.EI(e, a.uf, (a.height - (d + 1)) * c) } a.QM = 0 }; b.tu = function(a, c, d) { return a instanceof Array ? a.slice(c, d) : a.subarray(c, d) }; b.EI = function(a, c, d) { for (var e = 0; e < a.length; e++) c[d + e] = a[e] }; b.qQ = b.oa.extend({ xn: null, va: 0, ctor: function(a) { this.xn = a }, lia: function(a) { this.xn = a; this.va = 0 }, dba: function() { return this.xn }, cV: function(a) { if (!(this.va + Math.ceil(a / 8) < this.Nn.length)) throw Error("Index out of bound"); }, sV: function(a, c) { var d = a + c + 1, e = d >> 3; this.cV(d); var d = Math.pow(2, c - 1) - 1, f = this.yC(a + c, 1, e), g = this.yC(a, c, e), h = 0, k = 2, m = 0; do for (var p = this.Mv(++m, e), r = a % 8 || 8, s = 1 << r; s >>= 1;) p & s && (h += 1 / k), k *= 2; while (a -= r); this.va += e; return g == (d << 1) + 1 ? h ? NaN : f ? -Infinity : Infinity : (1 + -2 * f) * (g || h ? g ? Math.pow(2, g - d) * (1 + h) : Math.pow(2, -d + 1) * h : 0) }, Mv: function(a, c) { return this.Nn[this.va + c - a - 1] }, Ou: function(a, c) { var d = this.yC(0, a, a / 8), e = Math.pow(2, a); this.va += a / 8; return c && d >= e / 2 ? d - e : d }, tY: function(a, c) { for (++c; --c; a = 1073741824 == ((a %= 2147483648) & 1073741824) ? 2 * a : 2 * (a - 1073741824) + 2147483648); return a }, yC: function(a, c, d) { var e = (a + c) % 8, f = a % 8, g = d - (a >> 3) - 1; a = d + (-(a + c) >> 3); var h = g - a; c = this.Mv(g, d) >> f & (1 << (h ? 8 - f : c)) - 1; for (h && e && (c += (this.Mv(a++, d) & (1 << e) - 1) << (h-- << 3) - f); h;) c += this.tY(this.Mv(a++, d), (h-- << 3) - f); return c }, rha: function() { return this.Ou(32, !0) }, j3: function() { return this.Ou(32, !1) }, tha: function() { return this.sV(23, 8) }, sha: function() { return this.Ou(16, !0) }, k3: function() { return this.Ou(16, !1) }, Q: function() { var a = this.Nn[this.va]; this.va += 1; return a }, oha: function(a, c) { return this.xn instanceof Array ? this.xn.slice(a, c) : this.xn.subarray(a, c) }, ly: function(a) { this.va = a }, Km: function() { return this.va } }); b.gu = 0; b.Cl = 1; b.fu = 2; b.Vz = b.k.extend({ Gb: null, wF: null, op: null, ad: null, Fb: null, vj: null, vb: "TMXTiledMap", ctor: function(a, c) { b.k.prototype.ctor.call(this); this.ad = N(0, 0); this.Fb = N(0, 0); void 0 !== c ? this.cF(a, c) : void 0 !== a && this.bF(a) }, FE: function() { return N(this.ad.width, this.ad.height) }, hP: function(a) { this.ad.width = a.width; this.ad.height = a.height }, DB: function() { return this.ad.width }, RC: function(a) { this.ad.width = a }, CB: function() { return this.ad.height }, QC: function(a) { this.ad.height = a }, ep: function() { return N(this.Fb.width, this.Fb.height) }, xP: function(a) { this.Fb.width = a.width; this.Fb.height = a.height }, gr: function() { return this.Fb.width }, Gr: function(a) { this.Fb.width = a }, fr: function() { return this.Fb.height }, Fr: function(a) { this.Fb.height = a }, ica: function() { return this.wF }, $ia: function(a) { this.wF = a }, aN: function() { return this.op }, iP: function(a) { this.op = a }, Tw: function() { return this.Gb }, my: function(a) { this.Gb = a }, bF: function(a) { if (!a || 0 == a.length) throw "cc.TMXTiledMap.initWithTMXFile(): tmxFile should be non-null or non-empty string."; this.height = this.width = 0; a = b.wq.create(a); if (!a) return !1; var c = a.km; c && 0 !== c.length || b.log("cc.TMXTiledMap.initWithTMXFile(): Map not found. Please check the filename."); this.QI(a); return !0 }, cF: function(a, c) { this.height = this.width = 0; var d = b.wq.create(a, c), e = d.km; e && 0 !== e.length || b.log("cc.TMXTiledMap.initWithXML(): Map not found. Please check the filename."); this.QI(d); return !0 }, QI: function(a) { this.ad = a.FE(); this.Fb = a.ep(); this.wF = a.orientation; this.op = a.aN(); this.Gb = a.Gb; this.vj = a.vj; var c = 0, d = a.je; if (d) for (var e = null, f = 0, g = d.length; f < g; f++)(e = d[f]) && e.visible && (e = this.rX(e, a), this.X(e, c, c), this.width = Math.max(this.width, e.width), this.height = Math.max(this.height, e.height), c++) }, d$: function() { for (var a = [], c = this.t, d = 0, e = c.length; d < e; d++) { var f = c[d]; f && f instanceof b.vq && a.push(f) } return a }, Zba: function(a) { if (!a || 0 === a.length) throw "cc.TMXTiledMap.getLayer(): layerName should be non-null or non-empty string."; for (var c = this.t, d = 0; d < c.length; d++) { var e = c[d]; if (e && e.Bx == a) return e } return null }, rca: function(a) { if (!a || 0 === a.length) throw "cc.TMXTiledMap.getObjectGroup(): groupName should be non-null or non-empty string."; if (this.op) for (var c = 0; c < this.op.length; c++) { var d = this.op[c]; if (d && d.ys == a) return d } return null }, IE: function(a) { return this.Gb[a.toString()] }, kha: function(a) { return this.vj[a] }, rX: function(a, c) { var d = this.GY(a, c), d = b.vq.create(d, a, c); a.qO = !1; d.N4(); return d }, GY: function(a, c) { var d = a.pa, e = c.km; if (e) for (var f = e.length - 1; 0 <= f; f--) { var g = e[f]; if (g) for (var h = 0; h < d.height; h++) for (var k = 0; k < d.width; k++) { var m = a.Me[k + d.width * h]; if (0 != m && (m & b.Wz) >>> 0 >= g.Fm) return g } } b.log("cocos2d: Warning: TMX Layer " + a.name + " has no tiles"); return null } }); n = b.Vz.prototype; b.i(n, "mapWidth", n.DB, n.RC); b.i(n, "mapHeight", n.CB, n.QC); b.i(n, "tileWidth", n.gr, n.Gr); b.i(n, "tileHeight", n.fr, n.Fr); b.Vz.create = function(a, c) { return new b.Vz(a, c) }; b.ET = 0; b.r8 = 1; b.q8 = 2; b.t8 = 3; b.s8 = 4; b.u8 = 5; b.xq = 2147483648; b.yq = 1073741824; b.LH = 536870912; b.MH = (b.xq | b.yq | b.LH) >>> 0; b.Wz = ~b.MH >>> 0; b.Bl = b.oa.extend({ Gb: null, name: "", pa: null, Me: null, visible: null, Wd: null, qO: !0, Ul: 1E5, Tl: 0, offset: null, ctor: function() { this.Gb = []; this.name = ""; this.pa = null; this.Me = []; this.visible = !0; this.Wd = 0; this.qO = !0; this.Ul = 1E5; this.Tl = 0; this.offset = C(0, 0) }, Tw: function() { return this.Gb }, my: function(a) { this.Gb = a } }); b.DT = b.oa.extend({ name: "", Fm: 0, Fb: null, gt: 0, margin: 0, DP: "", ex: null, ctor: function() { this.Fb = N(0, 0); this.ex = N(0, 0) }, Ws: function(a) { var c = O(0, 0, 0, 0); c.width = this.Fb.width; c.height = this.Fb.height; a &= b.Wz; a -= parseInt(this.Fm, 10); var d = parseInt((this.ex.width - 2 * this.margin + this.gt) / (this.Fb.width + this.gt), 10); c.x = parseInt(a % d * (this.Fb.width + this.gt) + this.margin, 10); c.y = parseInt(parseInt(a / d, 10) * (this.Fb.height + this.gt) + this.margin, 10); return c } }); b.wq = b.$t.extend({ Gb: null, orientation: null, parentElement: null, Sx: null, Ax: 0, lG: !1, Fp: null, kE: null, Av: null, ad: null, Fb: null, je: null, km: null, vj: null, Qv: "", ZI: 0, ctor: function(a, c) { b.$t.prototype.ctor.apply(this); this.ad = N(0, 0); this.Fb = N(0, 0); this.je = []; this.km = []; this.Av = []; this.Gb = []; this.vj = {}; this.ZI = 0; void 0 !== c ? this.cF(a, c) : void 0 !== a && this.bF(a) }, vca: function() { return this.orientation }, hja: function(a) { this.orientation = a }, FE: function() { return N(this.ad.width, this.ad.height) }, hP: function(a) { this.ad.width = a.width; this.ad.height = a.height }, DB: function() { return this.ad.width }, RC: function(a) { this.ad.width = a }, CB: function() { return this.ad.height }, QC: function(a) { this.ad.height = a }, ep: function() { return N(this.Fb.width, this.Fb.height) }, xP: function(a) { this.Fb.width = a.width; this.Fb.height = a.height }, gr: function() { return this.Fb.width }, Gr: function(a) { this.Fb.width = a }, fr: function() { return this.Fb.height }, Fr: function(a) { this.Fb.height = a }, dca: function() { return this.je }, e4: function(a) { this.je.push(a) }, lda: function() { return this.km }, E4: function(a) { this.km.push(a) }, aN: function() { return this.Av }, iP: function(a) { this.Av.push(a) }, zca: function() { return this.parentElement }, mja: function(a) { this.parentElement = a }, Aca: function() { return this.Sx }, nja: function(a) { this.Sx = a }, $ba: function() { return this.Ax }, Tia: function(a) { this.Ax = a }, bda: function() { return this.lG }, Eja: function(a) { this.lG = a }, Tw: function() { return this.Gb }, my: function(a) { this.Gb = a }, bF: function(a) { this.lK(a, null); return this.CF(a) }, cF: function(a, c) { this.lK(null, c); return this.P2(a) }, CF: function(a, c) { var d = (c = c || !1) ? a : b.T.Hd(a); if (!d) throw "Please load the resource first : " + a; var e, f, d = this.fC(d).documentElement; e = d.getAttribute("version"); f = d.getAttribute("orientation"); if ("map" == d.nodeName && ("1.0" != e && null !== e && b.log("cocos2d: TMXFormat: Unsupported TMX version:" + e), "orthogonal" == f ? this.orientation = b.gu : "isometric" == f ? this.orientation = b.fu : "hexagonal" == f ? this.orientation = b.Cl : null !== f && b.log("cocos2d: TMXFomat: Unsupported orientation:" + f), e = N(0, 0), e.width = parseFloat(d.getAttribute("width")), e.height = parseFloat(d.getAttribute("height")), this.hP(e), e = N(0, 0), e.width = parseFloat(d.getAttribute("tilewidth")), e.height = parseFloat(d.getAttribute("tileheight")), this.xP(e), f = d.querySelectorAll("map \x3e properties \x3e property"))) { var g = {}; for (e = 0; e < f.length; e++) g[f[e].getAttribute("name")] = f[e].getAttribute("value"); this.Gb = g } g = d.getElementsByTagName("tileset"); "map" !== d.nodeName && (g = [], g.push(d)); for (e = 0; e < g.length; e++) { f = g[e]; var h = f.getAttribute("source"); if (h) f = c ? b.path.join(this.Qv, h) : b.path.Oo(a, h), this.CF(f); else { h = new b.DT; h.name = f.getAttribute("name") || ""; h.Fm = parseInt(f.getAttribute("firstgid")) || 0; h.gt = parseInt(f.getAttribute("spacing")) || 0; h.margin = parseInt(f.getAttribute("margin")) || 0; var k = N(0, 0); k.width = parseFloat(f.getAttribute("tilewidth")); k.height = parseFloat(f.getAttribute("tileheight")); h.Fb = k; var k = f.getElementsByTagName("image")[0].getAttribute("source"), m = -1; this.Fp && (m = this.Fp.lastIndexOf("/")); h.DP = -1 !== m ? this.Fp.substr(0, m + 1) + k : this.Qv + (this.Qv ? "/" : "") + k; this.E4(h); if (k = f.getElementsByTagName("tile")) for (m = 0; m < k.length; m++) { f = k[m]; this.Sx = parseInt(h.Fm) + parseInt(f.getAttribute("id") || 0); var p = f.querySelectorAll("properties \x3e property"); if (p) { var r = {}; for (f = 0; f < p.length; f++) { var s = p[f].getAttribute("name"); r[s] = p[f].getAttribute("value") } this.vj[this.Sx] = r } } } } if (g = d.getElementsByTagName("layer")) for (e = 0; e < g.length; e++) { k = g[e]; m = k.getElementsByTagName("data")[0]; h = new b.Bl; h.name = k.getAttribute("name"); f = N(0, 0); f.width = parseFloat(k.getAttribute("width")); f.height = parseFloat(k.getAttribute("height")); h.pa = f; f = k.getAttribute("visible"); h.visible = "0" != f; f = k.getAttribute("opacity") || 1; h.Wd = f ? parseInt(255 * parseFloat(f)) : 255; h.offset = C(parseFloat(k.getAttribute("x")) || 0, parseFloat(k.getAttribute("y")) || 0); p = ""; for (f = 0; f < m.childNodes.length; f++) p += m.childNodes[f].nodeValue; p = p.trim(); f = m.getAttribute("compression"); r = m.getAttribute("encoding"); if (f && "gzip" !== f && "zlib" !== f) return b.log("cc.TMXMapInfo.parseXMLFile(): unsupported compression method"), null; switch (f) { case "gzip": h.Me = b.UP(p, 4); break; case "zlib": f = new Zlib.ln(b.ja.rl.wM(p, 1)); h.Me = b.E5(f.xM()); break; case null: case "": if ("base64" == r) h.Me = b.ja.rl.wM(p, 4); else if ("csv" === r) for (h.Me = [], f = p.split(","), m = 0; m < f.length; m++) h.Me.push(parseInt(f[m])); else for (f = m.getElementsByTagName("tile"), h.Me = [], m = 0; m < f.length; m++) h.Me.push(parseInt(f[m].getAttribute("gid"))); break; default: this.Ax == b.Bl.vG && b.log("cc.TMXMapInfo.parseXMLFile(): Only base64 and/or gzip/zlib maps are supported") } if (k = k.querySelectorAll("properties \x3e property")) { m = {}; for (f = 0; f < k.length; f++) m[k[f].getAttribute("name")] = k[f].getAttribute("value"); h.Gb = m } this.e4(h) } if (g = d.getElementsByTagName("objectgroup")) for (e = 0; e < g.length; e++) { k = g[e]; h = new b.CT; h.ys = k.getAttribute("name"); h.q4(C(parseFloat(k.getAttribute("x")) * this.ep().width || 0, parseFloat(k.getAttribute("y")) * this.ep().height || 0)); if (m = k.querySelectorAll("objectgroup \x3e properties \x3e property")) for (f = 0; f < m.length; f++) p = {}, p[m[f].getAttribute("name")] = m[f].getAttribute("value"), h.Gb = p; if (k = k.querySelectorAll("object")) for (f = 0; f < k.length; f++) { p = k[f]; m = {}; m.name = p.getAttribute("name") || ""; m.type = p.getAttribute("type") || ""; m.x = parseInt(p.getAttribute("x") || 0) + h.eN().x; r = parseInt(p.getAttribute("y") || 0) + h.eN().y; m.width = parseInt(p.getAttribute("width")) || 0; m.height = parseInt(p.getAttribute("height")) || 0; m.y = parseInt(this.FE().height * this.ep().height) - r - m.height; if (r = p.querySelectorAll("properties \x3e property")) for (s = 0; s < r.length; s++) m[r[s].getAttribute("name")] = r[s].getAttribute("value"); (r = p.querySelectorAll("polygon")) && 0 < r.length && (r = r[0].getAttribute("points")) && (m.polygonPoints = this.LK(r)); (p = p.querySelectorAll("polyline")) && 0 < p.length && (p = p[0].getAttribute("points")) && (m.polylinePoints = this.LK(p)); h.l4(m) } this.iP(h) } return d }, LK: function(a) { if (!a) return null; var c = []; a = a.split(" "); for (var d = 0; d < a.length; d++) { var e = a[d].split(","); c.push({ x: e[0], y: e[1] }) } return c }, P2: function(a) { return this.CF(a, !0) }, ida: function() { return this.vj }, Mja: function(a) { this.vj.push(a) }, sba: function() { return this.kE }, yia: function(a) { this.kE = a }, dda: function() { return this.Fp }, Hja: function(a) { this.Fp = a }, lK: function(a, c) { this.km.length = 0; this.je.length = 0; this.Fp = a; c && (this.Qv = c); this.Av.length = 0; this.Gb.length = 0; this.vj.length = 0; this.kE = ""; this.lG = !1; this.Ax = b.Bl.vG; this.parentElement = b.ET; this.ZI = 0 } }); n = b.wq.prototype; b.i(n, "mapWidth", n.DB, n.RC); b.i(n, "mapHeight", n.CB, n.QC); b.i(n, "tileWidth", n.gr, n.Gr); b.i(n, "tileHeight", n.fr, n.Fr); b.wq.create = function(a, c) { return new b.wq(a, c) }; b.T.Nj(["tmx", "tsx"], b.GL); b.Bl.vG = 1; b.Bl.j6 = 2; b.Bl.k6 = 4; b.Bl.l6 = 8; b.CT = b.oa.extend({ Gb: null, ys: "", Jv: null, ro: null, ctor: function() { this.ys = ""; this.Jv = C(0, 0); this.Gb = []; this.ro = [] }, eN: function() { return C(this.Jv) }, q4: function(a) { this.Jv.x = a.x; this.Jv.y = a.y }, Tw: function() { return this.Gb }, my: function(a) { this.Gb.push(a) }, Uba: function() { return this.ys.toString() }, Qia: function(a) { this.ys = a }, lha: function(a) { return this.Gb[a] }, Bga: function(a) { if (this.ro && 0 < this.ro.length) for (var c = this.ro, d = 0, e = c.length; d < e; d++) { var f = c[d].name; if (f && f == a) return c[d] } return null }, sca: function() { return this.ro }, l4: function(a) { this.ro.push(a) } }); b.vq = b.Ae.extend({ Nd: null, fg: null, Hj: null, Gb: null, Bx: "", pa: null, Yb: null, Wd: 255, Ul: null, Tl: null, GD: null, AD: null, S8: null, ph: null, Rd: null, bh: null, be: null, ce: null, UA: null, ew: null, fw: null, Qk: 0, gw: 0, EK: 1E7, vb: "TMXLayer", ctor: function(a, c, d) { b.Ae.prototype.ctor.call(this); this.Bd = []; this.pa = N(0, 0); this.Yb = N(0, 0); if (b.A === b.Ba) { var e = b.Va, f = b.Sb("canvas"); f.width = e.width; f.height = e.height; this.be = f; this.ce = this.be.getContext("2d"); var g = new b.aa; g.Kc(f); g.rb(); this.UA = g; this.width = e.width; this.height = e.height; this.En = this } void 0 !== d && this.w1(a, c, d) }, Kd: function(a, c) { var d = this.O; b.k.prototype.Kd.call(this, a, c); if (b.A === b.Ba) { var e = this.be, f = b.pb(); e.width = 0 | 1.5 * d.width * f; e.height = 0 | 1.5 * d.height * f; this.Hj === b.Cl ? this.ce.translate(0, e.height - 0.5 * this.Yb.height) : this.ce.translate(0, e.height); d = this.UA.O; d.width = e.width; d.height = e.height; d = e.width * e.height; if (d > this.EK) { this.ew || (this.ew = []); this.fw || (this.fw = []); this.Qk = Math.ceil(d / this.EK); d = this.ew; for (f = 0; f < this.Qk; f++) { d[f] || (d[f] = document.createElement("canvas"), this.fw[f] = d[f].getContext("2d")); var g = d[f]; g.width = this.gw = Math.round(e.width / this.Qk); g.height = e.height } for (f = this.Qk; f < d.length; f++) g.width = 0, g.height = 0 } else this.Qk = 0 } }, za: null, er: function() { return this.UA }, R: null, pm: function(a) { var c = a || b.l; if (this.lc) { c.save(); this.transform(a); var d, e = this.t; if (this.tg) { var f = b.view; f.Xv(); var g = this.ce, h = this.be; g.clearRect(0, 0, h.width, -h.height); g.save(); g.translate(this.Ab.x, -this.Ab.y); if (e) for (this.Wc(), d = 0; d < e.length; d++) e[d] && e[d].R(g); g.restore(); if (0 < this.Qk) for (e = this.gw, g = h.height, d = 0; d < this.Qk; d++) this.fw[d].drawImage(h, d * e, 0, e, g, 0, 0, e, g); f.Pv(); this.tg = !1 } this.Y(a); c.restore() } }, Y: null, Ll: function(a) { a = a || b.l; var c = 0 | -this.Ab.x, d = 0 | -this.Ab.y, e = b.view, f = this.be; if (f) { var g = this.Qk, h = f.height * e.La, k = 0.5 * this.Yb.height * e.La; if (0 < g) for (var f = this.ew, m = 0; m < g; m++) { var p = f[m]; this.Hj === b.Cl ? a.drawImage(f[m], 0, 0, p.width, p.height, c + m * this.gw, -(d + h) + k, p.width * e.ka, h) : a.drawImage(f[m], 0, 0, p.width, p.height, c + m * this.gw, -(d + h), p.width * e.ka, h) } else this.Hj === b.Cl ? a.drawImage(f, 0, 0, f.width, f.height, c, -(d + h) + k, f.width * e.ka, h) : a.drawImage(f, 0, 0, f.width, f.height, c, -(d + h), f.width * e.ka, h) } }, cca: function() { return N(this.pa.width, this.pa.height) }, Wia: function(a) { this.pa.width = a.width; this.pa.height = a.height }, dW: function() { return this.pa.width }, XX: function(a) { this.pa.width = a }, cW: function() { return this.pa.height }, WX: function(a) { this.pa.height = a }, jca: function() { return N(this.Yb.width, this.Yb.height) }, aja: function(a) { this.Yb.width = a.width; this.Yb.height = a.height }, gr: function() { return this.Yb.width }, Gr: function(a) { this.Yb.width = a }, fr: function() { return this.Yb.height }, Fr: function(a) { this.Yb.height = a }, jda: function() { return this.Nd }, Nja: function(a) { this.Nd = a }, kda: function() { return this.fg }, Oja: function(a) { this.fg = a }, bca: function() { return this.Hj }, Via: function(a) { this.Hj = a }, Tw: function() { return this.Gb }, my: function(a) { this.Gb = a }, w1: function(a, c, d) { var e = c.pa, f = 0.35 * parseInt(e.width * e.height) + 1, g; a && (g = b.Da.Hc(a.DP)); return this.qa(g, f) ? (this.Bx = c.name, this.pa = e, this.Nd = c.Me, this.Ul = c.Ul, this.Tl = c.Tl, this.Wd = c.Wd, this.Gb = c.Gb, this.bh = b.I.bh, this.fg = a, this.Yb = d.ep(), this.Hj = d.orientation, a = this.XU(c.offset), this.P(b.EF(a)), this.Rd = [], this.Kd(b.BP(N(this.pa.width * this.Yb.width, this.pa.height * this.Yb.height))), this.AD = !1, this.GD = 0, !0) : !1 }, Bha: function() { this.Nd && (this.Nd = null); this.Rd && (this.Rd = null) }, hda: function(a, c) { if (!a) throw "cc.TMXLayer.getTileAt(): pos should be non-null"; void 0 !== c && (a = C(a, c)); if (a.x >= this.pa.width || a.y >= this.pa.height || 0 > a.x || 0 > a.y) throw "cc.TMXLayer.getTileAt(): invalid position"; if (!this.Nd || !this.Rd) return b.log("cc.TMXLayer.getTileAt(): TMXLayer: the tiles map has been released"), null; var d = null, e = this.NE(a); if (0 === e) return d; var f = 0 | a.x + a.y * this.pa.width, d = this.Eh(f); d || (e = this.fg.Ws(e), e = b.kl(e), d = new b.N, d.qa(this.texture, e), d.batchNode = this, d.P(this.Sw(a)), d.vertexZ = this.PL(a), d.anchorX = 0, d.anchorY = 0, d.opacity = this.Wd, e = this.JA(f), this.$Y(d, e, f)); return d }, NE: function(a, c) { if (!a) throw "cc.TMXLayer.getTileGIDAt(): pos should be non-null"; void 0 !== c && (a = C(a, c)); if (a.x >= this.pa.width || a.y >= this.pa.height || 0 > a.x || 0 > a.y) throw "cc.TMXLayer.getTileGIDAt(): invalid position"; return this.Nd && this.Rd ? (this.Nd[0 | a.x + a.y * this.pa.width] & b.Wz) >>> 0 : (b.log("cc.TMXLayer.getTileGIDAt(): TMXLayer: the tiles map has been released"), null) }, X0: function(a, c) { if (!a) throw "cc.TMXLayer.getTileFlagsAt(): pos should be non-null"; void 0 !== c && (a = C(a, c)); if (a.x >= this.pa.width || a.y >= this.pa.height || 0 > a.x || 0 > a.y) throw "cc.TMXLayer.getTileFlagsAt(): invalid position"; return this.Nd && this.Rd ? (this.Nd[0 | a.x + a.y * this.pa.width] & b.MH) >>> 0 : (b.log("cc.TMXLayer.getTileFlagsAt(): TMXLayer: the tiles map has been released"), null) }, Lja: function(a, c, d, e) { if (!c) throw "cc.TMXLayer.setTileGID(): pos should be non-null"; void 0 !== e ? c = C(c, d) : e = d; if (c.x >= this.pa.width || c.y >= this.pa.height || 0 > c.x || 0 > c.y) throw "cc.TMXLayer.setTileGID(): invalid position"; if (this.Nd && this.Rd) if (0 !== a && a < this.fg.Fm) b.log("cc.TMXLayer.setTileGID(): invalid gid:" + a); else { e = e || 0; this.ti(); d = this.X0(c); var f = this.NE(c); if (f != a || d != e) if (d = (a | e) >>> 0, 0 === a) this.u3(c); else if (0 === f) this.MW(d, c); else { var f = c.x + c.y * this.pa.width, g = this.Eh(f); g ? (a = this.fg.Ws(a), a = b.kl(a), g.tb(a, !1), null != e && this.Yv(g, c, d), this.Nd[f] = d) : this.SY(d, c) } } else b.log("cc.TMXLayer.setTileGID(): TMXLayer: the tiles map has been released") }, u3: function(a, c) { if (!a) throw "cc.TMXLayer.removeTileAt(): pos should be non-null"; void 0 !== c && (a = C(a, c)); if (a.x >= this.pa.width || a.y >= this.pa.height || 0 > a.x || 0 > a.y) throw "cc.TMXLayer.removeTileAt(): invalid position"; if (!this.Nd || !this.Rd) b.log("cc.TMXLayer.removeTileAt(): TMXLayer: the tiles map has been released"); else if (0 !== this.NE(a)) { b.A === b.Ba && this.ti(); var d = 0 | a.x + a.y * this.pa.width, e = this.JA(d); this.Nd[d] = 0; this.Rd.splice(e, 1); if (d = this.Eh(d)) b.Ae.prototype.removeChild.call(this, d, !0); else if (b.A === b.U && this.textureAtlas.KO(e), this.t) for (var d = this.t, f = 0, g = d.length; f < g; f++) { var h = d[f]; if (h) { var k = h.atlasIndex; k >= e && (h.atlasIndex = k - 1) } } } }, Sw: function(a, c) { void 0 !== c && (a = C(a, c)); var d = C(0, 0); switch (this.Hj) { case b.gu: d = this.xX(a); break; case b.fu: d = this.wX(a); break; case b.Cl: d = this.vX(a) } return b.EF(d) }, IE: function(a) { return this.Gb[a] }, N4: function() { b.A === b.Ba ? this.fg.ex = this.xc.O : (this.fg.ex = this.textureAtlas.texture.O, this.textureAtlas.texture.PF()); this.qX(); b.A === b.Ba && this.ti(); for (var a = this.pa.height, c = this.pa.width, d = 0; d < a; d++) for (var e = 0; e < c; e++) { var f = this.Nd[e + c * d]; 0 !== f && (this.QU(f, C(e, d)), this.Ul = Math.min(f, this.Ul), this.Tl = Math.max(f, this.Tl)) } this.Tl >= this.fg.Fm && this.Ul >= this.fg.Fm || b.log("cocos2d:TMX: Only 1 tileset per layer is supported") }, X: function() { b.log("addChild: is not supported on cc.TMXLayer. Instead use setTileGID or tileAt.") }, removeChild: function(a, c) { if (a) if (-1 === this.t.indexOf(a)) b.log("cc.TMXLayer.removeChild(): Tile does not belong to TMXLayer"); else { b.A === b.Ba && this.ti(); var d = a.atlasIndex; this.Nd[this.Rd[d]] = 0; this.Rd.splice(d, 1); b.Ae.prototype.removeChild.call(this, a, c) } }, aca: function() { return this.Bx }, Uia: function(a) { this.Bx = a }, wX: function(a) { return C(this.Yb.width / 2 * (this.pa.width + a.x - a.y - 1), this.Yb.height / 2 * (2 * this.pa.height - a.x - a.y - 2)) }, xX: function(a) { return C(a.x * this.Yb.width, (this.pa.height - a.y - 1) * this.Yb.height) }, vX: function(a) { return C(a.x * this.Yb.width * 3 / 4, (this.pa.height - a.y - 1) * this.Yb.height + (1 == a.x % 2 ? -this.Yb.height / 2 : 0)) }, XU: function(a) { var c = C(0, 0); switch (this.Hj) { case b.gu: c = C(a.x * this.Yb.width, -a.y * this.Yb.height); break; case b.fu: c = C(this.Yb.width / 2 * (a.x - a.y), this.Yb.height / 2 * (-a.x - a.y)); break; case b.Cl: 0 === a.x && 0 === a.y || b.log("offset for hexagonal map not implemented yet") } return c }, QU: function(a, c) { var d = this.fg.Ws(a), d = b.kl(d), e = 0 | c.x + c.y * this.pa.width, d = this.GC(d); this.Yv(d, c, a); var f = this.Rd.length; this.lx(d, f); this.Rd.splice(f, 0, e); return d }, MW: function(a, c) { var d = this.fg.Ws(a), d = b.kl(d), e = 0 | c.x + c.y * this.pa.width, d = this.GC(d); this.Yv(d, c, a); var f = this.SU(e); this.lx(d, f); this.Rd.splice(f, 0, e); if (this.t) for (var g = this.t, h = 0, k = g.length; h < k; h++) { var m = g[h]; if (m) { var p = m.atlasIndex; p >= f && (m.atlasIndex = p + 1) } } this.Nd[e] = a; return d }, SY: function(a, c) { var d = this.fg.Ws(a), e = this.bh, d = O(d.x / e, d.y / e, d.width / e, d.height / e), e = c.x + c.y * this.pa.width, d = this.GC(d); this.Yv(d, c, a); d.atlasIndex = this.JA(e); d.dirty = !0; d.Ze(); this.Nd[e] = a; return d }, qX: function() { var a = this.IE("cc_vertexz"); if (a) if ("automatic" == a) { this.AD = !0; var c = this.IE("cc_alpha_func"), a = 0; c && (a = parseFloat(c)); b.A === b.U && (this.shaderProgram = b.Md.nc(b.bu), c = b.l.getUniformLocation(this.shaderProgram.Lm(), b.uI), this.shaderProgram.Oc(), this.shaderProgram.dt(c, a)) } else this.GD = parseInt(a, 10) }, Yv: function(a, c, d) { var e = c.x + c.y * this.pa.width; a.P(this.Sw(c)); b.A === b.U ? a.vertexZ = this.PL(c) : a.tag = e; a.anchorX = 0; a.anchorY = 0; a.opacity = this.Wd; b.A === b.U && (a.rotation = 0); a.gy(!1); a.UF(!1); (d & b.LH) >>> 0 ? (a.anchorX = 0.5, a.anchorY = 0.5, a.x = this.Sw(c).x + a.width / 2, a.y = this.Sw(c).y + a.height / 2, c = (d & (b.xq | b.yq) >>> 0) >>> 0, c == b.xq ? a.rotation = 90 : c == b.yq ? a.rotation = 270 : (a.rotation = c == (b.yq | b.xq) >>> 0 ? 90 : 270, a.gy(!0))) : ((d & b.xq) >>> 0 && a.gy(!0), (d & b.yq) >>> 0 && a.UF(!0)) }, GC: function(a) { b.A === b.U ? (this.ph ? (this.ph.batchNode = null, this.ph.tb(a, !1)) : (this.ph = new b.N, this.ph.qa(this.texture, a, !1)), this.ph.batchNode = this) : (this.ph = new b.N, this.ph.qa(this.Sk, a, !1), this.ph.batchNode = this, this.ph.parent = this); return this.ph }, PL: function(a) { var c = 0, d = 0; if (this.AD) switch (this.Hj) { case b.fu: d = this.pa.width + this.pa.height; c = -(d - (a.x + a.y)); break; case b.gu: c = -(this.pa.height - a.y); break; case b.Cl: b.log("TMX Hexa zOrder not supported"); break; default: b.log("TMX invalid value") } else c = this.GD; return c }, JA: function(a) { var c; if (this.Rd) for (var d = this.Rd, e = 0, f = d.length; e < f && (c = d[e], c != a); e++); "number" != typeof c && b.log("cc.TMXLayer._atlasIndexForExistantZ(): TMX atlas index not found. Shall not happen"); return e }, SU: function(a) { for (var c = this.Rd, d = 0, e = c.length; d < e && !(a < c[d]); d++); return d } }); n = b.vq.prototype; b.A == b.U ? (n.Y = b.Ae.prototype.Y, n.R = b.Ae.prototype.R, n.za = b.Ae.prototype.za) : (n.Y = n.Ll, n.R = n.pm, n.za = n.er); b.i(n, "texture", n.za, n.Ya); b.i(n, "layerWidth", n.dW, n.XX); b.i(n, "layerHeight", n.cW, n.WX); b.i(n, "tileWidth", n.gr, n.Gr); b.i(n, "tileHeight", n.fr, n.Fr); b.vq.create = function(a, c, d) { return new b.vq(a, c, d) }; b.wz = b.oa.extend({ Br: null, va: null, Mq: null, Lca: function() { return this.Br }, uja: function(a) { this.Br = a }, Km: function() { return this.va }, ly: function(a) { this.va = a }, kba: function() { return this.Mq }, Q3: function(a) { this.Mq = a }, o1: function(a, c) { this.Br = a; this.va = c; this.Mq = null; return !0 } }); b.wz.create = function(a, c) { var d = new b.wz; d.o1(a, c); return d }; b.lH = b.k.extend({ Pm: null, QB: null, vb: "ParallaxNode", yca: function() { return this.Pm }, lja: function(a) { this.Pm = a }, ctor: function() { b.k.prototype.ctor.call(this); this.Pm = []; this.QB = C(-100, -100) }, X: function(a, c, d, e) { if (3 === arguments.length) b.log("ParallaxNode: use addChild(child, z, ratio, offset) instead"); else { if (!a) throw "cc.ParallaxNode.addChild(): child should be non-null"; var f = b.wz.create(d, e); f.Q3(a); this.Pm.push(f); a.P(this.wa.x * d.x + e.x, this.wa.y * d.y + e.y); b.k.prototype.X.call(this, a, c, a.tag) } }, removeChild: function(a, c) { for (var d = this.Pm, e = 0; e < d.length; e++) if (d[e].Mq == a) { d.splice(e, 1); break } b.k.prototype.removeChild.call(this, a, c) }, Lg: function(a) { this.Pm.length = 0; b.k.prototype.Lg.call(this, a) }, R: function() { var a = this.FU(); if (!b.DF(a, this.QB)) { for (var c = this.Pm, d = 0, e = c.length; d < e; d++) { var f = c[d]; f.Mq.P(-a.x + a.x * f.Br.x + f.Km().x, -a.y + a.y * f.Br.y + f.Km().y) } this.QB = a } b.k.prototype.R.call(this) }, FU: function() { for (var a = this.wa, c = this; null != c.parent;) c = c.parent, a = b.Hi(a, c.Rw()); return a } }); b.lH.create = function() { return new b.lH }; if (b.hb.iw) { var U = b.Qka = new(window.AudioContext || window.webkitAudioContext || window.mozAudioContext); b.uA = b.oa.extend({ Tn: null, ab: null, fm: null, MD: null, src: null, Tx: null, autoplay: null, controls: null, kga: null, currentTime: 0, startTime: 0, duration: 0, SB: null, LD: 1, Hv: 0, jc: !1, zo: !0, yg: -1, ctor: function(a) { this.Tn = {}; this.src = a; this.MD = U.createGain ? U.createGain() : U.createGainNode(); this.gX = this.fX.bind(this); this.dX = this.cX.bind(this) }, gC: function(a) { var c = this, d = c.fm = U.createBufferSource(), e = c.MD; a = a || 0; d.buffer = c.ab; e.gain.value = c.LD; d.connect(e); e.connect(U.destination); d.loop = c.SB; d.onended = function() { c.zo = !0 }; c.jc = !1; c.zo = !1; d.start ? d.start(0, a) : d.noteGrainOn ? (e = d.buffer.duration, c.loop ? d.noteGrainOn(0, a, e) : d.noteGrainOn(0, a, e - a)) : d.noteOn(0); c.Hv = 0 }, BL: function() { var a = this.fm; this.zo || (a.stop ? a.stop(0) : a.nga(0), this.zo = !0) }, play: function() { if (-1 == this.yg) this.yg = 0; else if (1 == this.yg) { var a = this.fm; if (this.zo || !a || 2 != a.playbackState) this.startTime = U.currentTime, this.gC(0) } }, pause: function() { this.Hv = U.currentTime; this.jc = !0; this.BL() }, wp: function() { this.jc && this.gC(this.ab ? (this.Hv - this.startTime) % this.ab.duration : 0) }, stop: function() { this.Hv = 0; this.jc = !1; this.BL() }, load: function() { var a = this; if (1 != a.yg) { a.yg = -1; a.played = !1; a.ended = !0; var c = new XMLHttpRequest; c.open("GET", a.src, !0); c.responseType = "arraybuffer"; c.onload = function() { U.decodeAudioData(c.response, a.gX, a.dX) }; c.send() } }, addEventListener: function(a, c) { this.Tn[a] = c.bind(this) }, removeEventListener: function(a) { delete this.Tn[a] }, p$: function() { return b.hb.iw }, fX: function(a) { this.ab = a; a = this.Tn.success; var c = this.Tn.canplaythrough; a && a(); c && c(); 0 != this.yg && "autoplay" != this.autoplay && !0 != this.autoplay || this.gC(); this.yg = 1 }, cX: function() { var a = this.Tn.error; a && a(); this.yg = -2 }, cloneNode: function() { var a = new b.uA(this.src); a.volume = this.volume; a.yg = this.yg; a.ab = this.ab; 0 != a.yg && -1 != a.yg || a.load(); return a } }); n = b.uA.prototype; b.i(n, "loop", function() { return this.SB }, function(a) { this.SB = a; this.fm && (this.fm.loop = a) }); b.i(n, "volume", function() { return this.LD }, function(a) { this.LD = a; this.MD.gain.value = a }); b.i(n, "paused", function() { return this.jc }); b.i(n, "ended", function() { var a = this.fm; return !this.jc && (this.zo || !a || 3 == a.playbackState) }); b.i(n, "played", function() { var a = this.fm; return a && 2 == a.playbackState }) } b.zG = b.oa.extend({ cD: !1, Td: null, Nu: null, jf: 0, MI: 0, he: {}, Kq: {}, Wu: 1, UB: 5, qk: null, yr: [], ctor: function() { this.cD = 0 < b.KA.jw.length; this.qk && (this.qk = this.qk.bind(this)) }, Ska: function() { return !1 }, Cba: function() { return this.Wu }, fha: function(a, c) { if (this.cD) { var d = this.Td; d && this.Pk(d); a != this.Nu && (this.Td = d = this.uB(a), this.Nu = a); d && (d.loop = c || !1, this.hC(d)) } }, uB: function(a) { var c = b.T, d = c.Hd(a); d || (c.load(a), d = c.Hd(a)); return d }, hC: function(a) { a.ended || (a.stop ? a.stop() : (a.pause(), a.currentTime = 0)); this.jf = 2; a.play() }, l5: function(a) { if (0 < this.jf) { var c = this.Td; c && this.Pk(c) && (a && b.T.Ki(this.Nu), this.Nu = this.Td = null, this.jf = 0) } }, Pk: function(a) { return a && !a.ended ? (a.stop ? a.stop() : a.duration && Infinity != a.duration ? a.currentTime = a.duration : a.pause(), !0) : !1 }, yO: function() { 2 == this.jf && (this.Td.pause(), this.jf = 1) }, A3: function() { 1 == this.jf && (this.nj(this.Td), this.jf = 2) }, nj: function(a) { a && !a.ended && (a.wp ? a.wp() : a.play()) }, Yha: function() { this.Td && this.hC(this.Td) }, oca: function() { return 0 == this.jf ? 0 : this.Td.volume }, bja: function(a) { 0 < this.jf && (this.Td.volume = Math.min(Math.max(a, 0), 1)) }, jF: function() { return 2 == this.jf && this.Td && !this.Td.ended }, xB: function(a) { var c = this.Kq[a]; c || (c = this.Kq[a] = []); return c }, ZJ: function(a) { var c; if (!this.cD) return null; for (var d = this.xB(a), e = 0, f = d.length; e < f; e++) { var g = d[e]; if (g.ended) { c = g; c.currentTime = 0; window.chrome && c.load(); break } } if (!c) { if (d.length >= this.UB) return b.log("Error: " + a + " greater than " + this.UB), null; c = this.uB(a); if (!c) return null; c = c.cloneNode(!0); this.qk && b.Ga(c, "pause", this.qk); c.volume = this.Wu; d.push(c) } return c }, W2: function(a, c) { var d = this.ZJ(a); if (!d) return null; d.loop = c || !1; d.play(); var e = this.MI++; this.he[e] = d; return e }, Fia: function(a) { a = this.Wu = Math.min(Math.max(a, 0), 1); var c = this.he, d; for (d in c) c[d].volume = a }, S2: function(a) { (a = this.he[a]) && !a.ended && a.pause() }, Q2: function() { var a = this.he, c; for (c in a) { var d = a[c]; d.ended || d.pause() } }, z3: function(a) { this.nj(this.he[a]) }, y3: function() { var a = this.he, c; for (c in a) this.nj(a[c]) }, j5: function(a) { this.Pk(this.he[a]); delete this.he[a] }, FP: function() { var a = this.he, c; for (c in a) this.Pk(a[c]), delete a[c] }, F5: function(a) { var c = b.T, d = this.he, e = this.xB(a); c.Ki(a); if (0 != e.length) { c = e[0].src; delete this.Kq[a]; for (var f in d) d[f].src == c && (this.Pk(d[f]), delete d[f]) } }, end: function() { this.l5(); this.FP() }, NK: function() { var a = this.he, c, d; for (d in a)!(c = a[d]) || c.ended || c.paused || (this.yr.push(c), c.pause()); this.jF() && (this.yr.push(this.Td), this.Td.pause()) }, dL: function() { for (var a = this.yr, c = 0, d = a.length; c < d; c++) this.nj(a[c]); a.length = 0 } }); !b.hb.iw && 0 > b.hb.CY && (b.AG = b.zG.extend({ Wk: [], xr: [], Df: null, UB: 2, Vu: {}, Wl: !1, Un: 0, MB: !1, hC: function(a) { this.kD(); this._super(a) }, A3: function() { 1 == this.jf && (this.kD(), this.Wl = !1, this.Un = 0, this._super()) }, W2: function(a, c) { var d = this.Df, e = c ? this.ZJ(a) : this.sW(a); if (!e) return null; e.loop = c || !1; var f = this.MI++; this.he[f] = e; this.jF() && (this.yO(), this.Wl = !0); d ? (d != e && this.Wk.push(this.Mn), this.Wk.push(f), d.pause()) : (this.Df = e, this.Mn = f, e.play()); return f }, S2: function() { b.log("pauseEffect not supported in single audio mode!") }, Q2: function() { var a = this.Wk, c = this.xr, d = this.Df; if (d) { for (var e = 0, f = a.length; e < f; e++) c.push(a[e]); a.length = 0; c.push(this.Mn); d.pause() } }, z3: function() { b.log("resumeEffect not supported in single audio mode!") }, y3: function() { var a = this.Wk, c = this.xr; this.jF() && (this.yO(), this.Wl = !0); for (var d = 0, e = c.length; d < e; d++) a.push(c[d]); c.length = 0; !this.Df && 0 <= a.length && (a = a.pop(), c = this.he[a]) && (this.Mn = a, this.Df = c, this.nj(c)) }, j5: function(a) { var c = this.Df, d = this.Wk, e = this.xr; c && this.Mn == a ? this.Pk(c) : (c = d.indexOf(a), 0 <= c ? d.splice(c, 1) : (c = e.indexOf(a), 0 <= c && e.splice(c, 1))) }, FP: function() { this.kD(); !this.Df && this.Wl && (this.nj(this.Td), this.jf = 2, this.Wl = !1, this.Un = 0) }, F5: function(a) { var c = b.T, d = this.he, e = this.Vu, f = this.xB(a), g = this.Df; c.Ki(a); if (0 != f.length || e[a]) { c = 0 < f.length ? f[0].src : e[a].src; delete this.Kq[a]; delete e[a]; for (var h in d) d[h].src == c && delete d[h]; g && g.src == c && this.Pk(g) } }, sW: function(a) { var c = this.Vu[a], d = this.Wk, e = this.xr, f = this.he; if (c) c.currentTime = 0; else { c = this.uB(a); if (!c) return null; c = c.cloneNode(!0); this.qk && b.Ga(c, "pause", this.qk); c.volume = this.Wu; this.Vu[a] = c } a = 0; for (var g = d.length; a < g;) f[d[a]] == c ? d.splice(a, 1) : a++; a = 0; for (g = e.length; a < g;) f[e[a]] == c ? e.splice(a, 1) : a++; c.nr = !0; return c }, kD: function() { var a = this.Df, c = this.Kq, d = this.Vu, e = this.Wk, f = this.xr; if (a || 0 != e.length || 0 != f.length) { for (var g in d) { var h = d[g]; h.duration && Infinity != h.duration && (h.currentTime = h.duration) } e.length = 0; f.length = 0; for (g in c) for (d = c[g], e = 0, f = d.length; e < f; e++) h = d[e], h.loop = !1, h.duration && Infinity != h.duration && (h.currentTime = h.duration); a && this.Pk(a) } }, qk: function() { if (!this.MB) { var a = this.vW(); if (a) a.nr ? (delete a.nr, a.play()) : this.nj(a); else if (this.Wl) { a = this.Td; if (a.duration && Infinity != a.duration) { var c = a.currentTime + this.Un, c = c - a.duration * (c / a.duration | 0); a.currentTime = c } this.Un = 0; this.nj(a); this.jf = 2; this.Wl = !1 } } }, vW: function() { var a = this.Wk, c = this.he, d = this.Df, e = d ? d.currentTime - (d.startTime || 0) : 0; for (this.Un += e; 0 != a.length;) { var f = a.pop(); if (d = c[f]) { if (d.nr || d.loop || d.duration && d.currentTime + e < d.duration) return this.Mn = f, this.Df = d, !d.nr && d.duration && Infinity != d.duration && (a = d.currentTime + e, a -= d.duration * (a / d.duration | 0), d.currentTime = a), d.nr = !1, d; d.duration && Infinity != d.duration && (d.currentTime = d.duration) } } return this.Df = this.Mn = null }, NK: function() { var a = this.Df; this.MB = !0; if (a = 2 == this.jf ? this.Td : a) this.yr.push(a), a.pause() }, dL: function() { var a = this.yr; this.MB = !1; 0 < a.length && (this.nj(a[0]), a.length = 0) } })); b.KA = { jw: null, Ow: function() { return b.T.sZ }, RB: function(a, c, d, e, f, g, h) { var k = this, m = b.T, p = b.path, r = this.jw, s = ""; if (0 == r.length) return h("can not support audio!"); if (-1 == e) s = (p.Zk(a) || "").toLowerCase(), k.tZ(s) || (s = r[0], e = 0); else if (e < r.length) s = r[e]; else return h("can not found the resource of audio! Last match url is : " + a); if (0 <= f.indexOf(s)) return k.RB(a, c, d, e + 1, f, g, h); a = p.mM(a, s); f.push(s); g = k.VW(a, g, function(m) { if (m) return k.RB(a, c, d, e + 1, f, g, h); h(null, g) }, e == r.length - 1); m.Rf[c] = g }, tZ: function(a) { return a ? 0 <= this.jw.indexOf(a.toLowerCase()) : !1 }, VW: function(a, c, d, e) { var f = "file://" == location.origin ? Audio : b.uA || Audio; 2 == arguments.length ? (d = c, c = new f) : 3 < arguments.length && !c && (c = new f); c.src = a; c.Tx = "auto"; f = navigator.userAgent; /Mobile/.test(f) && (/iPhone OS/.test(f) || /iPad/.test(f) || /Firefox/.test(f)) || /MSIE/.test(f) ? (c.load(), d(null, c)) : (b.Ga(c, "canplaythrough", function() { d(null, c); this.removeEventListener("canplaythrough", arguments.callee, !1); this.removeEventListener("error", arguments.callee, !1) }, !1), b.Ga(c, "error", function() { d("load " + a + " failed"); e && (this.removeEventListener("canplaythrough", arguments.callee, !1), this.removeEventListener("error", arguments.callee, !1)) }, !1), c.load()); return c }, load: function(a, c, d, e) { this.RB(a, c, d, -1, [], null, e) } }; b.KA.jw = function() { var a = b.Sb("audio"), c = []; if (a.canPlayType) { var d = function(c) { c = a.canPlayType(c); return "no" != c && "" != c }; d('audio/ogg; codecs\x3d"vorbis"') && c.push(".ogg"); d("audio/mpeg") && c.push(".mp3"); d('audio/wav; codecs\x3d"1"') && c.push(".wav"); d("audio/mp4") && c.push(".mp4"); (d("audio/x-m4a") || d("audio/aac")) && c.push(".m4a") } return c }(); b.T.Nj(["mp3", "ogg", "wav", "mp4", "m4a"], b.KA); b.cM = b.AG ? new b.AG : new b.zG; b.ra.PD(b.Jb.ut, function() { b.cM.NK() }); b.ra.PD(b.Jb.Op, function() { b.cM.dL() }); var sa = { pQ: "res/bikong.plist", G6: "res/bikong.png" }, ta = [], Q; for (Q in sa) ta.push(sa[Q]); var V, W, Y, Z, $, va, wa, xa, Ba, Ca, Fa = b.sc.extend({ sprite: null, ctor: function() { this._super(); b.Rj.WL(sa.pQ); var a = b.Tj, c = new b.Yc(b.color(255, 255, 255, 255), a.width, a.height); this.X(c, 0); $ = 0; Z = 10; Y = 1; xa = !0; Ca = Ba = !1; wa = new b.M("" + $, "Arial", 30); wa.Ic({ x: a.width - 10, y: a.height - 20, anchorX: 1, anchorY: 1, color: b.color(0, 0, 0) }); this.X(wa, 30); va = new b.M(Z.toFixed(2), "Arial", 30); va.Ic({ x: 0, y: a.height - 20, anchorX: 0, anchorY: 1, color: b.color(0, 0, 0) }); this.X(va, 30); V = new b.N; V.Ic({ anchorX: 0.5, anchorY: 0.5 }); this.X(V, 1); W = new b.N("#nose1.png"); W.Ic({ x: a.width / 2, y: a.height - 17 * W.se().height / 45, anchorX: 0.5, anchorY: 28 / 45, scale: 1 }); this.X(W, 2); nose2Sprite = new b.N("#nose2.png"); nose2Sprite.Ic({ x: a.width / 2, y: a.height - 17 * nose2Sprite.se().height / 45, anchorX: 0.5, anchorY: 28 / 45, scale: 1 }); this.X(nose2Sprite, 0); nose3Sprite = new b.N("#nose3.png"); nose3Sprite.Ic({ x: a.width / 2, y: a.height - 17 * nose3Sprite.se().height / 45, anchorX: 0.5, anchorY: 28 / 45, scale: 1 }); this.X(nose3Sprite, 0); b.ra.addListener({ event: b.sa.iu, pp: this.hl }, this); this.es(); xa = !1; return !0 }, hl: function(a, c) { if (Ca) { Ca = !1; var d = b.Tj; V.it(); var e = b.moveBy(0.5, C(0, W.tf() - V.tf() - 100 + 20)), f = b.fd(1); c.ib.an(c.ib.sG); switch (Y) { case 1: 15 > Math.abs(V.Gd() - d.width / 2) ? (V.hd(1), nose2Sprite.hd(0), nose3Sprite.hd(0), V.ea(b.oc(e, f, b.Xk(c.ib.Ix, c.ib)))) : (V.hd(3), nose2Sprite.hd(2), nose3Sprite.hd(2), W.ea(b.oc(b.fd(0.4), b.ue(0.1, 1.1, 1.2))), nose2Sprite.ea(b.oc(b.fd(0.4), b.ue(0.1, 1.2, 2))), nose3Sprite.ea(b.oc(b.fd(0.4), b.ue(0.1, 1.2, 2))), V.ea(b.oc(e, f, b.Xk(c.ib.es, c.ib)))); break; case 2: d = V.Gd() + 65; 155 <= d && 200 >= d || 250 <= d && 290 >= d ? (V.hd(1), nose2Sprite.hd(0), nose3Sprite.hd(0), V.ea(b.oc(e, f, b.Xk(c.ib.Ix, c.ib)))) : (V.hd(3), nose2Sprite.hd(2), nose3Sprite.hd(2), 155 > d ? (W.ea(b.oc(b.fd(0.4), b.ue(0.1, 1.1, 1.2))), nose2Sprite.ea(b.oc(b.fd(0.4), b.ue(0.1, 1.2, 2)))) : (290 < d ? W.ea(b.oc(b.fd(0.4), b.ue(0.1, 1.1, 1.2))) : (W.ea(b.oc(b.fd(0.4), b.ue(0.1, 1.1, 1.2))), nose2Sprite.ea(b.oc(b.fd(0.4), b.ue(0.1, 1.2, 2)))), nose3Sprite.ea(b.oc(b.fd(0.4), b.ue(0.1, 1.2, 2)))), V.ea(b.oc(e, f, b.Xk(c.ib.es, c.ib)))); break; case 3: d = V.Gd() + 65, 170 <= d && 195 >= d || 255 <= d && 285 >= d ? (V.hd(1), nose2Sprite.hd(0), nose3Sprite.hd(0), V.ea(b.oc(e, f, b.Xk(c.ib.Ix, c.ib)))) : (V.hd(3), nose2Sprite.hd(2), nose3Sprite.hd(2), 170 > d ? (W.ea(b.oc(b.fd(0.4), b.ue(0.1, 1.1, 1.2))), nose2Sprite.ea(b.oc(b.fd(0.4), b.ue(0.1, 1.2, 2)))) : (285 < d ? W.ea(b.oc(b.fd(0.4), b.ue(0.1, 1.1, 1.2))) : (W.ea(b.oc(b.fd(0.4), b.ue(0.1, 1.1, 1.2))), nose2Sprite.ea(b.oc(b.fd(0.4), b.ue(0.1, 1.2, 2)))), nose3Sprite.ea(b.oc(b.fd(0.4), b.ue(0.1, 1.2, 2)))), V.ea(b.oc(e, f, b.Xk(c.ib.es, c.ib)))) } } }, Ix: function() { var a = b.Tj; this.Um(this.sG, 0.01); Ba && ($++, wa.Kb($), Z = 10, va.Kb(Z.toFixed(2)), Ca = !0); Y = 3 * Math.random(); 2 <= Y ? (Y = 3, V.$E("finger3.png")) : 1 <= Y ? (Y = 2, V.$E("finger2.png")) : 0 <= Y && (Y = 1, V.$E("finger1.png")); V.Ic({ x: a.width / 5, y: 70 }); var a = b.moveBy(0.7, C(3 * a.width / 5, 0)), c = a.reverse(), a = b.oc(a, c).Yx(); V.ea(a); W.Li(1); nose2Sprite.Li(1); nose3Sprite.Li(1) }, sG: function() { Z -= 0.01; va.Kb(Z.toFixed(2)); 0 >= Z && (Z = 0, va.Kb(Z.toFixed(2)), V.it(), Ca = !1, this.an(this.sG), this.es()) }, es: function() { var a = b.Tj, c = new b.N, d = a.width, e = a.height, f = b.color(220, 220, 220, 255); c.Kd(N(d, e)); c.tb(O(0, 0, d, e)); c.cb(f); c.Ic({ x: a.width / 2, y: a.height / 2, anchorX: 0.5, anchorY: 0.5 }); this.X(c, 31, 101); xa ? (d = new b.M("\u6311\u6218\u6316\u9f3b\u5b54", "Arial", 40), d.Ic({ x: a.width / 2, y: 4 * a.height / 5, anchorX: 0.5, anchorY: 0.5, color: b.color(0, 0, 0) }), c.X(d, 2), e = new b.M("\u7b49\u624b\u6307\u79fb\u52a8\u5230\u5408\u9002\u4f4d\u7f6e\uff0c\u70b9\u51fb\u6233\u4e2d\u9f3b\u5b54\u5c31\u5f97\u4e00\u5206\uff01", "Arial", 14), e.VF(b.Al), e.Ic({ x: a.width / 2, y: 3 * a.height / 5 + 40, anchorX: 0.5, anchorY: 0.5, color: b.color(0, 0, 0) }), c.X(e, 2), d = new b.mq("#start1.png", "#start2.png", this.lO, this)) : (d = new b.mq("#replay1.png", "#replay2.png", this.lO, this), e = "\u5e74\u8f7b\u4eba\uff0c\u4f60\u6316\u4e2d\u4e86" + $ + "\u4e2a\u9f3b\u5b54\uff0c\u5feb\u544a\u8bc9\u4f60\u7684\u5c0f\u4f19\u4f34\u4eec\u5427\uff01", e = new b.M(e, "Arial", 18, N(240, 66)), e.VF(b.Al), e.Ic({ x: a.width / 2, y: 3 * a.height / 5 + 50, anchorX: 0.5, anchorY: 0.5, color: b.color(0, 0, 0) }), c.X(e, 2), document.getElementById('sharebtn').style.display = 'block', dp_submitScore($)); e = new b.M("", "Arial", 9); /*power by teabox.cc*/ e.Ic({ x: a.width / 2, y: a.height / 5, anchorX: 0.5, anchorY: 0.5, color: b.color(0, 0, 0) }); c.X(e, 2); e = new b.mq("#more1.png", "#more2.png", this.A2, this); d = new b.qn(d, e); d.x = a.width / 2; d.y = 2 * a.height / 5; d.YL(15); c.X(d, 3); }, lO: function() { xa || ($ = 0, wa.Kb($), document.getElementById('sharebtn').style.display = 'none', Z = 10, va.Kb(Z.toFixed(2)), Ba = !1); this.Wx(101); this.Ix(); Ca = Ba = !0 }, A2: function() { clickMore(); } }), Ga = b.Zj.extend({ Z: function() { this._super(); var a = new Fa; this.X(a) } }); Loading = b.Zj.extend({ fj: null, pr: 0, Jl: 0, Xb: null, vb: "Loading", da: function() { var a = this.QA = b.Yc.create(b.color(255, 255, 255, 255)); a.P(b.Sj.Aw); this.X(a, 0); var c = this.Xb = b.M.create("\u52a0\u8f7d\u4e2d... 0%", "Arial", 14); c.P(b.Hi(b.Sj.ks, C(0, -48.5))); c.cb(b.color(127, 127, 127)); a.X(this.Xb, 10); return !0 }, hK: function(a, c) { var d = new b.aa; d.Kc(a); d.rb(); d = b.N.create(d); d.Li(b.pb() / 2); d.x = c.x; d.y = c.y; this.QA.X(d, 10) }, Z: function() { b.k.prototype.Z.call(this); this.Um(this.Kr, 0.3) }, sb: function() { b.k.prototype.sb.call(this); this.Xb.Kb("\u52a0\u8f7d\u4e2d... 0%") }, ZE: function(a, c) { "string" == typeof a && (a = [a]); this.KF = a || []; this.ed = c }, Kr: function() { var a = this; a.an(a.Kr); var c = a.KF; a.pr = c.length; a.Jl = 0; b.T.load(c, function(c, e) { a.Jl = e }, function() { a.ed && a.ed() }); a.Um(a.Wr) }, Wr: function() { var a = this.Jl, c = this.pr, d; d = Math.min(a / c * 100 | 0, 100); this.Xb.Kb("\u52a0\u8f7d\u4e2d... " + d + "%"); a >= c && this.an(this.Wr) } }); Loading.Tx = function(a, c) { var d = b; d.jq || (d.jq = new Loading, d.jq.da()); d.jq.ZE(a, c); b.I.dy(d.jq); return d.jq }; b.Jb.xF = function() { b.view.aZ(!0); b.hb.Jh ? b.view.fy(320, 500, b.ze.Lt) : b.view.fy(320, 480, b.ze.SHOW_ALL); b.view.x3(!0); Loading.Tx(ta, function() { this.ea(b.Ka.create(b.xd.create(1), b.Tb.create(function() { b.I.dy(new Ga) }, this))) }, this) }; b.Jb.F3();